ezllm 0.0.1
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/LICENSE +21 -0
- package/README.md +57 -0
- package/bin/ellm-proxy.js +3 -0
- package/dist/cli.js +27667 -0
- package/dist/package.json +1 -0
- package/dist/server.js +42403 -0
- package/dist/web-ui/assets/DashboardView-DwlQExQv.css +1 -0
- package/dist/web-ui/assets/DashboardView-fRDkGq0g.js +1 -0
- package/dist/web-ui/assets/LayoutView-CK_MaWN7.js +1 -0
- package/dist/web-ui/assets/LayoutView-kZ2yGen8.css +1 -0
- package/dist/web-ui/assets/LoginView-B1naaT8E.js +1 -0
- package/dist/web-ui/assets/LoginView-CSfb59pE.css +1 -0
- package/dist/web-ui/assets/LogsView-CCjJTjvZ.css +1 -0
- package/dist/web-ui/assets/LogsView-YtH8gJPU.js +9 -0
- package/dist/web-ui/assets/ProvidersView-Caqpg_0F.css +1 -0
- package/dist/web-ui/assets/ProvidersView-DWtS_e7t.js +31 -0
- package/dist/web-ui/assets/ServiceStatusView-D3ybS2T-.js +39 -0
- package/dist/web-ui/assets/ServiceStatusView-DrPoYMN-.css +1 -0
- package/dist/web-ui/assets/SettingsView-D1kbH5Ev.css +1 -0
- package/dist/web-ui/assets/SettingsView-DepOaZYg.js +1 -0
- package/dist/web-ui/assets/SetupView-BwDwokAd.js +1 -0
- package/dist/web-ui/assets/SetupView-pS9nSnLg.css +1 -0
- package/dist/web-ui/assets/clipboard-aCBIMfw7.js +1 -0
- package/dist/web-ui/assets/config-CdOq1p3C.js +1 -0
- package/dist/web-ui/assets/format-kTdM4RVv.js +1 -0
- package/dist/web-ui/assets/index-BecfPmag.css +1 -0
- package/dist/web-ui/assets/index-CgzCvxTY.js +96 -0
- package/dist/web-ui/assets/providers-i7t_wEzk.js +1 -0
- package/dist/web-ui/assets/useLoadError-UA3r7sR9.js +1 -0
- package/dist/web-ui/assets/useManagerApi-CBQNomtR.js +1 -0
- package/dist/web-ui/assets/useToast-DNMhOOeI.js +1 -0
- package/dist/web-ui/assets/version-BKHjE_LF.js +1 -0
- package/dist/web-ui/config.js +7 -0
- package/dist/web-ui/index.html +15 -0
- package/docs/DESIGN.md +90 -0
- package/ezllm.config.example.json +33 -0
- package/package.json +55 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import{N as Kn,B as Mt,C as Ge,D as cr,G as Lt,H as jo,I as Os,J as ia,K as Is,L as aa,M as Ns,O as Kt,P as sa,Q as xi,R as Cs,S as As,T as xs,U as Ps,V as Ds,W as Xr,X as Rs,Y as Kr,Z as Ms,$ as Ls,a0 as ws,a1 as Vs,a2 as gn,A as Yt,d as Jt,a as z,o as ee,c as De,w as D,f as X,t as Te,e as Be,F as Bo,z as ko,a3 as fo,a4 as Fs,i as Q,g as se,j as Ze,h as x,a5 as $s,p as Gt,r as Pe,_ as cn,a6 as Xo,a7 as Nt,l as la,a8 as Us,E as Ao,a9 as js,aa as Bs,ab as ks,ac as Xs}from"./index-CgzCvxTY.js";import{u as un}from"./useToast-DNMhOOeI.js";import{u as Ko}from"./providers-i7t_wEzk.js";import{u as Ks}from"./useLoadError-UA3r7sR9.js";import{c as ca}from"./clipboard-aCBIMfw7.js";import"./config-CdOq1p3C.js";var yr={exports:{}},po={exports:{}},ho={};/**
|
|
2
|
+
* @vue/compiler-core v3.5.42
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/const Sn=Symbol(""),En=Symbol(""),Hr=Symbol(""),Jn=Symbol(""),Ho=Symbol(""),zt=Symbol(""),Go=Symbol(""),Wo=Symbol(""),Gr=Symbol(""),Wr=Symbol(""),An=Symbol(""),Yr=Symbol(""),Yo=Symbol(""),zr=Symbol(""),Jr=Symbol(""),Qr=Symbol(""),_r=Symbol(""),Zr=Symbol(""),qr=Symbol(""),zo=Symbol(""),Jo=Symbol(""),tr=Symbol(""),Qn=Symbol(""),eo=Symbol(""),to=Symbol(""),bn=Symbol(""),xn=Symbol(""),no=Symbol(""),Dr=Symbol(""),ua=Symbol(""),Rr=Symbol(""),_n=Symbol(""),fa=Symbol(""),da=Symbol(""),ro=Symbol(""),pa=Symbol(""),ha=Symbol(""),oo=Symbol(""),Qo=Symbol(""),on={[Sn]:"Fragment",[En]:"Teleport",[Hr]:"Suspense",[Jn]:"KeepAlive",[Ho]:"BaseTransition",[zt]:"openBlock",[Go]:"createBlock",[Wo]:"createElementBlock",[Gr]:"createVNode",[Wr]:"createElementVNode",[An]:"createCommentVNode",[Yr]:"createTextVNode",[Yo]:"createStaticVNode",[zr]:"resolveComponent",[Jr]:"resolveDynamicComponent",[Qr]:"resolveDirective",[_r]:"resolveFilter",[Zr]:"withDirectives",[qr]:"renderList",[zo]:"renderSlot",[Jo]:"createSlots",[tr]:"toDisplayString",[Qn]:"mergeProps",[eo]:"normalizeClass",[to]:"normalizeStyle",[bn]:"normalizeProps",[xn]:"guardReactiveProps",[no]:"toHandlers",[Dr]:"camelize",[ua]:"capitalize",[Rr]:"toHandlerKey",[_n]:"setBlockTracking",[fa]:"pushScopeId",[da]:"popScopeId",[ro]:"withCtx",[pa]:"unref",[ha]:"isRef",[oo]:"withMemo",[Qo]:"isMemoSame"};function ma(e){Object.getOwnPropertySymbols(e).forEach(t=>{on[t]=e[t]})}const Hs={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Gs={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},Ws={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Ys={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},ze={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function va(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ze}}function Tn(e,t,n,o,i,a,r,s=!1,l=!1,c=!1,f=ze){return e&&(s?(e.helper(zt),e.helper(ln(e.inSSR,c))):e.helper(sn(e.inSSR,c)),r&&e.helper(Zr)),{type:13,tag:t,props:n,children:o,patchFlag:i,dynamicProps:a,directives:r,isBlock:s,disableTracking:l,isComponent:c,loc:f}}function Wt(e,t=ze){return{type:17,loc:t,elements:e}}function mt(e,t=ze){return{type:15,loc:t,properties:e}}function He(e,t){return{type:16,loc:ze,key:Ge(e)?le(e,!0):e,value:t}}function le(e,t=!1,n=ze,o=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:o}}function zs(e,t){return{type:5,loc:t,content:Ge(e)?le(e,!1,t):e}}function yt(e,t=ze){return{type:8,loc:t,children:e}}function Ye(e,t=[],n=ze){return{type:14,loc:n,callee:e,arguments:t}}function an(e,t=void 0,n=!1,o=!1,i=ze){return{type:18,params:e,returns:t,newline:n,isSlot:o,loc:i}}function Mr(e,t,n,o=!0){return{type:19,test:e,consequent:t,alternate:n,newline:o,loc:ze}}function ga(e,t,n=!1,o=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:o,needArraySpread:!1,loc:ze}}function ya(e){return{type:21,body:e,loc:ze}}function Js(e){return{type:22,elements:e,loc:ze}}function Qs(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:ze}}function _s(e,t){return{type:24,left:e,right:t,loc:ze}}function Zs(e){return{type:25,expressions:e,loc:ze}}function qs(e){return{type:26,returns:e,loc:ze}}function sn(e,t){return e||t?Gr:Wr}function ln(e,t){return e||t?Go:Wo}function io(e,{helper:t,removeHelper:n,inSSR:o}){e.isBlock||(e.isBlock=!0,n(sn(o,e.isComponent)),t(zt),t(ln(o,e.isComponent)))}const Pi=new Uint8Array([123,123]),Di=new Uint8Array([125,125]);function Ri(e){return e>=97&&e<=122||e>=65&&e<=90}function ht(e){return e===32||e===10||e===9||e===12||e===13}function jt(e){return e===47||e===62||ht(e)}function Lr(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const qe={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class el{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Pi,this.delimiterClose=Di,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Pi,this.delimiterClose=Di}getPos(t){let n=1,o=t+1;const i=this.newlines.length;let a=-1;if(i>100){let r=-1,s=i;for(;r+1<s;){const l=r+s>>>1;this.newlines[l]<t?r=l:s=l}a=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){a=r;break}return a>=0&&(n=a+2,o=t-this.newlines[a]),{column:o,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?jt(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||ht(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const o=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=o}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===qe.TitleEnd||this.currentSequence===qe.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===qe.Cdata[this.sequenceIndex]?++this.sequenceIndex===qe.Cdata.length&&(this.state=28,this.currentSequence=qe.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):Ri(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){jt(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(jt(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(Lr("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){ht(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Ri(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||ht(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):ht(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):ht(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||jt(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||jt(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||jt(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||jt(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||jt(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):ht(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):ht(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){ht(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=qe.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===qe.ScriptEnd[3]?this.startSpecial(qe.ScriptEnd,4):t===qe.StyleEnd[3]?this.startSpecial(qe.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===qe.TitleEnd[3]?this.startSpecial(qe.TitleEnd,4):t===qe.TextareaEnd[3]?this.startSpecial(qe.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===qe.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const tl={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},nl={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function xo(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function tn(e,t){const n=xo("MODE",t),o=xo(e,t);return n===3?o===!0:o!==!1}function On(e,t,n,...o){return tn(e,t)}function rl(e,t,n,...o){if(xo(e,t)==="suppress-warning")return;const{message:a,link:r}=nl[e],s=`(deprecation ${e}) ${typeof a=="function"?a(...o):a}${r?`
|
|
6
|
+
Details: ${r}`:""}`,l=new SyntaxError(s);l.code=e,n&&(l.loc=n),t.onWarn(l)}function _o(e){throw e}function Ea(e){}function Ae(e,t,n,o){const i=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(i));return a.code=e,a.loc=t,a}const ol={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_V_MODEL_ON_CONST:45,45:"X_V_MODEL_ON_CONST",X_INVALID_EXPRESSION:46,46:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:47,47:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:48,48:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:49,49:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:50,50:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:51,51:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:52,52:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:54,54:"__EXTEND_POINT__"},il={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '<' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",53:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
7
|
+
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"v-model cannot be used on a const binding because it is not writable.",46:"Error parsing JavaScript expression: ",47:"<KeepAlive> expects exactly one child component.",52:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",48:'"prefixIdentifiers" option is not supported in this build of compiler.',49:"ES module mode is not supported in this build of compiler.",50:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',51:'"scopeId" option is only supported in module mode.',54:""};function al(e,t,n=!1,o=[],i=Object.create(null)){}function sl(e,t,n){return!1}function ll(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const o=t[n];if(o.type==="AssignmentExpression")return!0;if(o.type!=="ObjectProperty"&&!o.type.endsWith("Pattern"))break}}return!1}function cl(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function ul(e,t){for(const n of e.params)for(const o of Ct(n))t(o)}function Sa(e,t){const n=e.type==="SwitchCase"?e.consequent:e.body;for(const o of n)if(o.type==="VariableDeclaration"){if(o.declare)continue;for(const i of o.declarations)for(const a of Ct(i.id))t(a)}else if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){if(o.declare||!o.id)continue;t(o.id)}else fl(o)?dl(o,!0,t):o.type==="SwitchStatement"&&pl(o,!0,t)}function fl(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function dl(e,t,n){const o=e.type==="ForStatement"?e.init:e.left;if(o&&o.type==="VariableDeclaration"&&(o.kind==="var"?t:!t))for(const i of o.declarations)for(const a of Ct(i.id))n(a)}function pl(e,t,n){for(const o of e.cases){for(const i of o.consequent)if(i.type==="VariableDeclaration"&&(i.kind==="var"?t:!t))for(const a of i.declarations)for(const r of Ct(a.id))n(r);Sa(o,n)}}function Ct(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const o of e.properties)o.type==="RestElement"?Ct(o.argument,t):Ct(o.value,t);break;case"ArrayPattern":e.elements.forEach(o=>{o&&Ct(o,t)});break;case"RestElement":Ct(e.argument,t);break;case"AssignmentPattern":Ct(e.left,t);break}return t}const hl=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),ba=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,ml=(e,t)=>ba(t)&&t.key===e,Ta=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Oa(e){return Ta.includes(e.type)?Oa(e.expression):e}const nt=e=>e.type===4&&e.isStatic;function Zo(e){switch(e){case"Teleport":case"teleport":return En;case"Suspense":case"suspense":return Hr;case"KeepAlive":case"keep-alive":return Jn;case"BaseTransition":case"base-transition":return Ho}}const vl=/^$|^\d|[^\$\w\xA0-\uFFFF]/,nr=e=>!vl.test(e),qo=/[A-Za-z_$\xA0-\uFFFF]/,gl=/[\.\?\w$\xA0-\uFFFF]/,yl=/\s+[.[]\s*|\s*[.[]\s+/g,Ia=e=>e.type===4?e.content:e.loc.source,Na=e=>{const t=Ia(e).trim().replace(yl,s=>s.trim());let n=0,o=[],i=0,a=0,r=null;for(let s=0;s<t.length;s++){const l=t.charAt(s);switch(n){case 0:if(l==="[")o.push(n),n=1,i++;else if(l==="(")o.push(n),n=2,a++;else if(!(s===0?qo:gl).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(o.push(n),n=3,r=l):l==="["?i++:l==="]"&&(--i||(n=o.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")o.push(n),n=3,r=l;else if(l==="(")a++;else if(l===")"){if(s===t.length-1)return!1;--a||(n=o.pop())}break;case 3:l===r&&(n=o.pop(),r=null);break}}return!i&&!a},El=Kn,ei=Na,Sl=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ca=e=>Sl.test(Ia(e)),bl=Kn,Aa=Ca;function Tl(e,t,n=t.length){return xa({offset:e.offset,line:e.line,column:e.column},t,n)}function xa(e,t,n=t.length){let o=0,i=-1;for(let a=0;a<n;a++)t.charCodeAt(a)===10&&(o++,i=a);return e.offset+=n,e.line+=o,e.column=i===-1?e.column+n:n-i,e}function Ol(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function at(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&(n||i.exp)&&(Ge(t)?i.name===t:t.test(i.name)))return i}}function rr(e,t,n=!1,o=!1){for(let i=0;i<e.props.length;i++){const a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||o))return a}else if(a.name==="bind"&&(a.exp||o)&&nn(a.arg,t))return a}}function nn(e,t){return!!(e&&nt(e)&&e.content===t)}function Pa(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Er(e){return e.type===5||e.type===2}function Po(e){return e.type===7&&e.name==="pre"}function ti(e){return e.type===7&&e.name==="slot"}function In(e){return e.type===1&&e.tagType===3}function Zn(e){return e.type===1&&e.tagType===2}const Il=new Set([bn,xn]);function ni(e,t=[]){if(e&&!Ge(e)&&e.type===14){const n=e.callee;if(!Ge(n)&&Il.has(n))return ni(e.arguments[0],t.concat(e))}return[e,t]}function qn(e,t,n){if(e.type!==13&&Nl(e,t))return;let o,i=e.type===13?e.props:e.arguments[2],a=[],r;if(i&&!Ge(i)&&i.type===14){const s=ni(i);i=s[0],a=s[1],r=a[a.length-1]}if(i==null||Ge(i))o=mt([t]);else if(i.type===14){const s=i.arguments[0];!Ge(s)&&s.type===15?Do(t,s)||s.properties.unshift(t):i.callee===no?o=Ye(n.helper(Qn),[mt([t]),i]):i.arguments.unshift(mt([t])),!o&&(o=i)}else i.type===15?(Do(t,i)||i.properties.unshift(t),o=i):(o=Ye(n.helper(Qn),[mt([t]),i]),r&&r.callee===xn&&(r=a[a.length-2]));e.type===13?r?r.arguments[0]=o:e.props=o:r?r.arguments[0]=o:e.arguments[2]=o}function Nl(e,t){var n,o,i;if(t.key.type!==4||t.key.content!=="key")return!1;const a=e.arguments[2];if(a&&!Ge(a)){const[r]=ni(a);if(r&&!Ge(r)&&r.type===15&&Do(t,r))return!0}return(n=e.arguments)[2]||(n[2]="{}"),(o=e.arguments)[3]||(o[3]="undefined"),(i=e.arguments)[4]||(i[4]="undefined"),e.arguments[5]=t.value,!0}function Do(e,t){let n=!1;if(e.key.type===4){const o=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===o)}return n}function Nn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,o)=>n==="-"?"_":e.charCodeAt(o).toString())}`}function Ot(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const o=e.props[n];if(o.type===7&&(Ot(o.arg,t)||Ot(o.exp,t)))return!0}return e.children.some(n=>Ot(n,t));case 11:return Ot(e.source,t)?!0:e.children.some(n=>Ot(n,t));case 9:return e.branches.some(n=>Ot(n,t));case 10:return Ot(e.condition,t)?!0:e.children.some(n=>Ot(n,t));case 4:return!e.isStatic&&nr(e.content)&&!!t[e.content];case 8:return e.children.some(n=>aa(n)&&Ot(n,t));case 5:case 12:return Ot(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Da(e){return e.type===14&&e.callee===oo?e.arguments[1].returns:e}const Ra=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function ri(e){for(let t=0;t<e.length;t++)if(!ht(e.charCodeAt(t)))return!1;return!0}function ao(e){return e.type===2&&ri(e.content)||e.type===12&&ao(e.content)}function oi(e){return e.type===3||ao(e)}const Ma={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:cr,isPreTag:cr,isIgnoreNewlineTag:cr,isCustomElement:cr,onError:_o,onWarn:Ea,comments:!1,prefixIdentifiers:!1};let Ee=Ma,er=null,wt="",tt=null,he=null,ut="",Rt=-1,Zt=-1,ii=0,Bt=!1,Ro=null;const xe=[],ke=new el(xe,{onerr:Dt,ontext(e,t){ur(_e(e,t),e,t)},ontextentity(e,t,n){ur(e,t,n)},oninterpolation(e,t){if(Bt)return ur(_e(e,t),e,t);let n=e+ke.delimiterOpen.length,o=t-ke.delimiterClose.length;for(;ht(wt.charCodeAt(n));)n++;for(;ht(wt.charCodeAt(o-1));)o--;let i=_e(n,o);i.includes("&")&&(i=Ee.decodeEntities(i,!1)),Mo({type:5,content:br(i,!1,Ke(n,o)),loc:Ke(e,t)})},onopentagname(e,t){const n=_e(e,t);tt={type:1,tag:n,ns:Ee.getNamespace(n,xe[0],Ee.ns),tagType:0,props:[],children:[],loc:Ke(e-1,t),codegenNode:void 0}},onopentagend(e){Li(e)},onclosetag(e,t){const n=_e(e,t);if(!Ee.isVoidTag(n)){let o=!1;for(let i=0;i<xe.length;i++)if(xe[i].tag.toLowerCase()===n.toLowerCase()){o=!0,i>0&&Dt(24,xe[0].loc.start.offset);for(let r=0;r<=i;r++){const s=xe.shift();Sr(s,t,r<i)}break}o||Dt(23,La(e,60))}},onselfclosingtag(e){const t=tt.tag;tt.isSelfClosing=!0,Li(e),xe[0]&&xe[0].tag===t&&Sr(xe.shift(),e)},onattribname(e,t){he={type:6,name:_e(e,t),nameLoc:Ke(e,t),value:void 0,loc:Ke(e)}},ondirname(e,t){const n=_e(e,t),o=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!Bt&&o===""&&Dt(26,e),Bt||o==="")he={type:6,name:n,nameLoc:Ke(e,t),value:void 0,loc:Ke(e)};else if(he={type:7,name:o,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[le("prop")]:[],loc:Ke(e)},o==="pre"){Bt=ke.inVPre=!0,Ro=tt;const i=tt.props;for(let a=0;a<i.length;a++)i[a].type===7&&(i[a]=Vl(i[a]))}},ondirarg(e,t){if(e===t)return;const n=_e(e,t);if(Bt&&!Po(he))he.name+=n,en(he.nameLoc,t);else{const o=n[0]!=="[";he.arg=br(o?n:n.slice(1,-1),o,Ke(e,t),o?3:0)}},ondirmodifier(e,t){const n=_e(e,t);if(Bt&&!Po(he))he.name+="."+n,en(he.nameLoc,t);else if(he.name==="slot"){const o=he.arg;o&&(o.content+="."+n,en(o.loc,t))}else{const o=le(n,!0,Ke(e,t));he.modifiers.push(o)}},onattribdata(e,t){ut+=_e(e,t),Rt<0&&(Rt=e),Zt=t},onattribentity(e,t,n){ut+=e,Rt<0&&(Rt=t),Zt=n},onattribnameend(e){const t=he.loc.start.offset,n=_e(t,e);he.type===7&&(he.rawName=n),tt.props.some(o=>(o.type===7?o.rawName:o.name)===n)&&Dt(2,t)},onattribend(e,t){if(tt&&he){if(en(he.loc,t),e!==0)if(ut.includes("&")&&(ut=Ee.decodeEntities(ut,!0)),he.type===6)he.name==="class"&&(ut=Va(ut).trim()),e===1&&!ut&&Dt(13,t),he.value={type:2,content:ut,loc:e===1?Ke(Rt,Zt):Ke(Rt-1,Zt+1)},ke.inSFCRoot&&tt.tag==="template"&&he.name==="lang"&&ut&&ut!=="html"&&ke.enterRCDATA(Lr("</template"),0);else{let n=0;he.exp=br(ut,!1,Ke(Rt,Zt),0,n),he.name==="for"&&(he.forParseResult=Al(he.exp));let o=-1;he.name==="bind"&&(o=he.modifiers.findIndex(i=>i.content==="sync"))>-1&&On("COMPILER_V_BIND_SYNC",Ee,he.loc,he.arg.loc.source)&&(he.name="model",he.modifiers.splice(o,1))}(he.type!==7||he.name!=="pre")&&tt.props.push(he)}ut="",Rt=Zt=-1},oncomment(e,t){Ee.comments&&Mo({type:3,content:_e(e,t),loc:Ke(e-4,t+3)})},onend(){const e=wt.length;for(let t=0;t<xe.length;t++)Sr(xe[t],e-1),Dt(24,xe[t].loc.start.offset)},oncdata(e,t){(xe[0]?xe[0].ns:Ee.ns)!==0?ur(_e(e,t),e,t):Dt(1,e-9)},onprocessinginstruction(e){(xe[0]?xe[0].ns:Ee.ns)===0&&Dt(21,e-1)}}),Mi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Cl=/^\(|\)$/g;function Al(e){const t=e.loc,n=e.content,o=n.match(Ra);if(!o)return;const[,i,a]=o,r=(u,p,d=!1)=>{const m=t.start.offset+p,h=m+u.length;return br(u,!1,Ke(m,h),0,d?1:0)},s={source:r(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Cl,"").trim();const c=i.indexOf(l),f=l.match(Mi);if(f){l=l.replace(Mi,"").trim();const u=f[1].trim();let p;if(u&&(p=n.indexOf(u,c+l.length),s.key=r(u,p,!0)),f[2]){const d=f[2].trim();d&&(s.index=r(d,n.indexOf(d,s.key?p+u.length:c+l.length),!0))}}return l&&(s.value=r(l,c,!0)),s}function _e(e,t){return wt.slice(e,t)}function Li(e){ke.inSFCRoot&&(tt.innerLoc=Ke(e+1,e+1)),Mo(tt);const{tag:t,ns:n}=tt;n===0&&Ee.isPreTag(t)&&ii++,Ee.isVoidTag(t)?Sr(tt,e):(xe.unshift(tt),(n===1||n===2)&&(ke.inXML=!0)),tt=null}function ur(e,t,n){{const a=xe[0]&&xe[0].tag;a!=="script"&&a!=="style"&&e.includes("&")&&(e=Ee.decodeEntities(e,!1))}const o=xe[0]||er,i=o.children[o.children.length-1];i&&i.type===2?(i.content+=e,en(i.loc,n)):o.children.push({type:2,content:e,loc:Ke(t,n)})}function Sr(e,t,n=!1){n?en(e.loc,La(t,60)):en(e.loc,xl(t,62)+1),ke.inSFCRoot&&(e.children.length?e.innerLoc.end=Mt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Mt({},e.innerLoc.start),e.innerLoc.source=_e(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i,children:a}=e;if(Bt||(o==="slot"?e.tagType=2:wi(e)?e.tagType=3:Dl(e)&&(e.tagType=1)),ke.inRCDATA||(e.children=wa(a)),i===0&&Ee.isIgnoreNewlineTag(o)){const r=a[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&Ee.isPreTag(o)&&ii--,Ro===e&&(Bt=ke.inVPre=!1,Ro=null),ke.inXML&&(xe[0]?xe[0].ns:Ee.ns)===0&&(ke.inXML=!1);{const r=e.props;if(!ke.inSFCRoot&&tn("COMPILER_NATIVE_TEMPLATE",Ee)&&e.tag==="template"&&!wi(e)){const l=xe[0]||er,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const s=r.find(l=>l.type===6&&l.name==="inline-template");s&&On("COMPILER_INLINE_TEMPLATE",Ee,s.loc)&&e.children.length&&(s.value={type:2,content:_e(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function xl(e,t){let n=e;for(;wt.charCodeAt(n)!==t&&n<wt.length-1;)n++;return n}function La(e,t){let n=e;for(;wt.charCodeAt(n)!==t&&n>=0;)n--;return n}const Pl=new Set(["if","else","else-if","for","slot"]);function wi({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Pl.has(t[n].name))return!0}return!1}function Dl({tag:e,props:t}){if(Ee.isCustomElement(e))return!1;if(e==="component"||Rl(e.charCodeAt(0))||Zo(e)||Ee.isBuiltInComponent&&Ee.isBuiltInComponent(e)||Ee.isNativeTag&&!Ee.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const o=t[n];if(o.type===6){if(o.name==="is"&&o.value){if(o.value.content.startsWith("vue:"))return!0;if(On("COMPILER_IS_ON_ELEMENT",Ee,o.loc))return!0}}else if(o.name==="bind"&&nn(o.arg,"is")&&On("COMPILER_IS_ON_ELEMENT",Ee,o.loc))return!0}return!1}function Rl(e){return e>64&&e<91}const Ml=/\r\n/g;function wa(e){const t=Ee.whitespace!=="preserve";let n=!1;for(let o=0;o<e.length;o++){const i=e[o];if(i.type===2)if(ii)i.content=i.content.replace(Ml,`
|
|
8
|
+
`);else if(ri(i.content)){const a=e[o-1]&&e[o-1].type,r=e[o+1]&&e[o+1].type;!a||!r||t&&(a===3&&(r===3||r===1)||a===1&&(r===3||r===1&&Ll(i.content)))?(n=!0,e[o]=null):i.content=" "}else t&&(i.content=Va(i.content))}return n?e.filter(Boolean):e}function Ll(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Va(e){let t="",n=!1;for(let o=0;o<e.length;o++)ht(e.charCodeAt(o))?n||(t+=" ",n=!0):(t+=e[o],n=!1);return t}function Mo(e){(xe[0]||er).children.push(e)}function Ke(e,t){return{start:ke.getPos(e),end:t==null?t:ke.getPos(t),source:t==null?t:_e(e,t)}}function wl(e){return Ke(e.start.offset,e.end.offset)}function en(e,t){e.end=ke.getPos(t),e.source=_e(e.start.offset,t)}function Vl(e){const t={type:6,name:e.rawName,nameLoc:Ke(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function br(e,t=!1,n,o=0,i=0){return le(e,t,n,o)}function Dt(e,t,n){Ee.onError(Ae(e,Ke(t,t)))}function Fl(){ke.reset(),tt=null,he=null,ut="",Rt=-1,Zt=-1,xe.length=0}function ai(e,t){if(Fl(),wt=e,Ee=Mt({},Ma),t){let i;for(i in t)t[i]!=null&&(Ee[i]=t[i])}ke.mode=Ee.parseMode==="html"?1:Ee.parseMode==="sfc"?2:0,ke.inXML=Ee.ns===1||Ee.ns===2;const n=t&&t.delimiters;n&&(ke.delimiterOpen=Lr(n[0]),ke.delimiterClose=Lr(n[1]));const o=er=va([],e);return ke.parse(wt),o.loc=Ke(0,e.length),o.children=wa(o.children),er=null,o}function $l(e,t){Tr(e,void 0,t,!!Fa(e))}function Fa(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!Zn(t[0])?t[0]:null}function Tr(e,t,n,o=!1,i=!1){const{children:a}=e,r=[];for(let f=0;f<a.length;f++){const u=a[f];if(u.type===1&&u.tagType===0){const p=o?0:ft(u,n);if(p>0){if(p>=2){u.codegenNode.patchFlag=-1,r.push(u);continue}}else{const d=u.codegenNode;if(d.type===13){const m=d.patchFlag;if((m===void 0||m===512||m===1)&&Ua(u,n)>=2){const h=ja(u);h&&(d.props=n.hoist(h))}d.dynamicProps&&(d.dynamicProps=n.hoist(d.dynamicProps))}}}else if(u.type===12&&(o?0:ft(u,n))>=2){u.codegenNode.type===14&&u.codegenNode.arguments.length>0&&u.codegenNode.arguments.push("-1"),r.push(u);continue}if(u.type===1){const p=u.tagType===1;p&&n.scopes.vSlot++,Tr(u,e,n,!1,i),p&&n.scopes.vSlot--}else if(u.type===11)Tr(u,e,n,u.children.length===1,!0);else if(u.type===9)for(let p=0;p<u.branches.length;p++)Tr(u.branches[p],e,n,u.branches[p].children.length===1,i)}let s=!1;if(r.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Kt(e.codegenNode.children))e.codegenNode.children=l(Wt(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Kt(e.codegenNode.children)&&e.codegenNode.children.type===15){const f=c(e.codegenNode,"default");f&&(f.returns=l(Wt(f.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Kt(t.codegenNode.children)&&t.codegenNode.children.type===15){const f=at(e,"slot",!0),u=f&&f.arg&&c(t.codegenNode,f.arg);u&&(u.returns=l(Wt(u.returns)),s=!0)}}if(!s)for(const f of r)f.codegenNode=n.cache(f.codegenNode);function l(f){const u=n.cache(f);return u.needArraySpread=!0,u}function c(f,u){if(f.children&&!Kt(f.children)&&f.children.type===15){const p=f.children.properties.find(d=>d.key===u||d.key.content===u);return p&&p.value}}r.length&&n.transformHoist&&n.transformHoist(a,n,e)}function ft(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const o=n.get(e);if(o!==void 0)return o;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const s=Ua(e,t);if(s===0)return n.set(e,0),0;s<r&&(r=s);for(let l=0;l<e.children.length;l++){const c=ft(e.children[l],t);if(c===0)return n.set(e,0),0;c<r&&(r=c)}if(r>1)for(let l=0;l<e.props.length;l++){const c=e.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const f=ft(c.exp,t);if(f===0)return n.set(e,0),0;f<r&&(r=f)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(zt),t.removeHelper(ln(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(sn(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return ft(e.content,t);case 4:return e.constType;case 8:let a=3;for(let r=0;r<e.children.length;r++){const s=e.children[r];if(Ge(s)||jo(s))continue;const l=ft(s,t);if(l===0)return 0;l<a&&(a=l)}return a;case 20:return 2;default:return 0}}const Ul=new Set([eo,to,bn,xn]);function $a(e,t){if(e.type===14&&!Ge(e.callee)&&Ul.has(e.callee)){const n=e.arguments[0];if(n.type===4)return ft(n,t);if(n.type===14)return $a(n,t)}return 0}function Ua(e,t){let n=3;const o=ja(e);if(o&&o.type===15){const{properties:i}=o;for(let a=0;a<i.length;a++){const{key:r,value:s}=i[a],l=ft(r,t);if(l===0)return l;l<n&&(n=l);let c;if(s.type===4?c=ft(s,t):s.type===14?c=$a(s,t):c=0,c===0)return c;c<n&&(n=c)}}return n}function ja(e){const t=e.codegenNode;if(t.type===13)return t.props}function Ba(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:r=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:c=Kn,isCustomElement:f=Kn,expressionPlugins:u=[],scopeId:p=null,slotted:d=!0,ssr:m=!1,inSSR:h=!1,ssrCssVars:v="",bindingMetadata:g=Is,inline:y=!1,isTS:I=!1,onError:S=_o,onWarn:N=Ea,compatConfig:C}){const j=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),V={filename:t,selfName:j&&ia(Lt(j[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:a,nodeTransforms:r,directiveTransforms:s,transformHoist:l,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:u,scopeId:p,slotted:d,ssr:m,inSSR:h,ssrCssVars:v,bindingMetadata:g,inline:y,isTS:I,onError:S,onWarn:N,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,vForMemoKeyedNodes:new WeakSet,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(O){const L=V.helpers.get(O)||0;return V.helpers.set(O,L+1),O},removeHelper(O){const L=V.helpers.get(O);if(L){const U=L-1;U?V.helpers.set(O,U):V.helpers.delete(O)}},helperString(O){return`_${on[V.helper(O)]}`},replaceNode(O){V.parent.children[V.childIndex]=V.currentNode=O},removeNode(O){const L=V.parent.children,U=O?L.indexOf(O):V.currentNode?V.childIndex:-1;!O||O===V.currentNode?(V.currentNode=null,V.onNodeRemoved()):V.childIndex>U&&(V.childIndex--,V.onNodeRemoved()),V.parent.children.splice(U,1)},onNodeRemoved:Kn,addIdentifiers(O){},removeIdentifiers(O){},hoist(O){Ge(O)&&(O=le(O)),V.hoists.push(O);const L=le(`_hoisted_${V.hoists.length}`,!1,O.loc,2);return L.hoisted=O,L},cache(O,L=!1,U=!1){const k=ga(V.cached.length,O,L,U);return V.cached.push(k),k}};return V.filters=new Set,V}function ka(e,t){const n=Ba(e,t);or(e,n),t.hoistStatic&&$l(e,n),t.ssr||jl(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function jl(e,t){const{helper:n}=t,{children:o}=e;if(o.length===1){const i=Fa(e);if(i&&i.codegenNode){const a=i.codegenNode;a.type===13&&io(a,t),e.codegenNode=a}else e.codegenNode=o[0]}else if(o.length>1){let i=64;e.codegenNode=Tn(t,n(Sn),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function Bl(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];Ge(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=o,or(i,t))}}function or(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let a=0;a<n.length;a++){const r=n[a](e,t);if(r&&(Kt(r)?o.push(...r):o.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(An);break;case 5:t.ssr||t.helper(tr);break;case 9:for(let a=0;a<e.branches.length;a++)or(e.branches[a],t);break;case 10:case 11:case 1:case 0:Bl(e,t);break}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function si(e,t){const n=Ge(e)?o=>o===e:o=>e.test(o);return(o,i)=>{if(o.type===1){const{props:a}=o;if(o.tagType===3&&a.some(ti))return;const r=[];for(let s=0;s<a.length;s++){const l=a[s];if(l.type===7&&n(l.name)){a.splice(s,1),s--;const c=t(o,l,i);c&&r.push(c)}}return r}}}const so="/*@__PURE__*/",Xa=e=>`${on[e]}: _${on[e]}`;function kl(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:o=!1,filename:i="template.vue.html",scopeId:a=null,optimizeImports:r=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:f=!1,isTS:u=!1,inSSR:p=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:o,filename:i,scopeId:a,optimizeImports:r,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:f,isTS:u,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(h){return`_${on[h]}`},push(h,v=-2,g){d.code+=h},indent(){m(++d.indentLevel)},deindent(h=!1){h?--d.indentLevel:m(--d.indentLevel)},newline(){m(d.indentLevel)}};function m(h){d.push(`
|
|
9
|
+
`+" ".repeat(h),0)}return d}function Ka(e,t={}){const n=kl(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:o,push:i,prefixIdentifiers:a,indent:r,deindent:s,newline:l,scopeId:c,ssr:f}=n,u=Array.from(e.helpers),p=u.length>0,d=!a&&o!=="module";Xl(e,n);const h=f?"ssrRender":"render",g=(f?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${h}(${g}) {`),r(),d&&(i("with (_ctx) {"),r(),p&&(i(`const { ${u.map(Xa).join(", ")} } = _Vue
|
|
10
|
+
`,-1),l())),e.components.length&&(mo(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(mo(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),mo(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let y=0;y<e.temps;y++)i(`${y>0?", ":""}_temp${y}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
11
|
+
`,0),l()),f||i("return "),e.codegenNode?ot(e.codegenNode,n):i("null"),d&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Xl(e,t){const{ssr:n,prefixIdentifiers:o,push:i,newline:a,runtimeModuleName:r,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,f=Array.from(e.helpers);if(f.length>0&&(i(`const _Vue = ${c}
|
|
12
|
+
`,-1),e.hoists.length)){const u=[Gr,Wr,An,Yr,Yo].filter(p=>f.includes(p)).map(Xa).join(", ");i(`const { ${u} } = _Vue
|
|
13
|
+
`,-1)}Kl(e.hoists,t),a(),i("return ")}function mo(e,t,{helper:n,push:o,newline:i,isTS:a}){const r=n(t==="filter"?_r:t==="component"?zr:Qr);for(let s=0;s<e.length;s++){let l=e[s];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),o(`const ${Nn(l,t)} = ${r}(${JSON.stringify(l)}${c?", true":""})${a?"!":""}`),s<e.length-1&&i()}}function Kl(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:o}=t;o();for(let i=0;i<e.length;i++){const a=e[i];a&&(n(`const _hoisted_${i+1} = `),ot(a,t),o())}t.pure=!1}function li(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),ir(e,t,n),n&&t.deindent(),t.push("]")}function ir(e,t,n=!1,o=!0){const{push:i,newline:a}=t;for(let r=0;r<e.length;r++){const s=e[r];Ge(s)?i(s,-3):Kt(s)?li(s,t):ot(s,t),r<e.length-1&&(n?(o&&i(","),a()):o&&i(", "))}}function ot(e,t){if(Ge(e)){t.push(e,-3);return}if(jo(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:ot(e.codegenNode,t);break;case 2:Hl(e,t);break;case 4:Ha(e,t);break;case 5:Gl(e,t);break;case 12:ot(e.codegenNode,t);break;case 8:Ga(e,t);break;case 3:Yl(e,t);break;case 13:zl(e,t);break;case 14:Ql(e,t);break;case 15:_l(e,t);break;case 17:Zl(e,t);break;case 18:ql(e,t);break;case 19:ec(e,t);break;case 20:tc(e,t);break;case 21:ir(e.body,t,!0,!1);break}}function Hl(e,t){t.push(JSON.stringify(e.content),-3,e)}function Ha(e,t){const{content:n,isStatic:o}=e;t.push(o?JSON.stringify(n):n,-3,e)}function Gl(e,t){const{push:n,helper:o,pure:i}=t;i&&n(so),n(`${o(tr)}(`),ot(e.content,t),n(")")}function Ga(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];Ge(o)?t.push(o,-3):ot(o,t)}}function Wl(e,t){const{push:n}=t;if(e.type===8)n("["),Ga(e,t),n("]");else if(e.isStatic){const o=nr(e.content)?e.content:JSON.stringify(e.content);n(o,-2,e)}else n(`[${e.content}]`,-3,e)}function Yl(e,t){const{push:n,helper:o,pure:i}=t;i&&n(so),n(`${o(An)}(${JSON.stringify(e.content)})`,-3,e)}function zl(e,t){const{push:n,helper:o,pure:i}=t,{tag:a,props:r,children:s,patchFlag:l,dynamicProps:c,directives:f,isBlock:u,disableTracking:p,isComponent:d}=e;let m;l&&(m=String(l)),f&&n(o(Zr)+"("),u&&n(`(${o(zt)}(${p?"true":""}), `),i&&n(so);const h=u?ln(t.inSSR,d):sn(t.inSSR,d);n(o(h)+"(",-2,e),ir(Jl([a,r,s,m,c]),t),n(")"),u&&n(")"),f&&(n(", "),ot(f,t),n(")"))}function Jl(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Ql(e,t){const{push:n,helper:o,pure:i}=t,a=Ge(e.callee)?e.callee:o(e.callee);i&&n(so),n(a+"(",-2,e),ir(e.arguments,t),n(")")}function _l(e,t){const{push:n,indent:o,deindent:i,newline:a}=t,{properties:r}=e;if(!r.length){n("{}",-2,e);return}const s=r.length>1||!1;n(s?"{":"{ "),s&&o();for(let l=0;l<r.length;l++){const{key:c,value:f}=r[l];Wl(c,t),n(": "),ot(f,t),l<r.length-1&&(n(","),a())}s&&i(),n(s?"}":" }")}function Zl(e,t){li(e.elements,t)}function ql(e,t){const{push:n,indent:o,deindent:i}=t,{params:a,returns:r,body:s,newline:l,isSlot:c}=e;c&&n(`_${on[ro]}(`),n("(",-2,e),Kt(a)?ir(a,t):a&&ot(a,t),n(") => "),(l||s)&&(n("{"),o()),r?(l&&n("return "),Kt(r)?li(r,t):ot(r,t)):s&&ot(s,t),(l||s)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function ec(e,t){const{test:n,consequent:o,alternate:i,newline:a}=e,{push:r,indent:s,deindent:l,newline:c}=t;if(n.type===4){const u=!nr(n.content);u&&r("("),Ha(n,t),u&&r(")")}else r("("),ot(n,t),r(")");a&&s(),t.indentLevel++,a||r(" "),r("? "),ot(o,t),t.indentLevel--,a&&c(),a||r(" "),r(": ");const f=i.type===19;f||t.indentLevel++,ot(i,t),f||t.indentLevel--,a&&l(!0)}function tc(e,t){const{push:n,helper:o,indent:i,deindent:a,newline:r}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(i(),n(`${o(_n)}(-1`),e.inVOnce&&n(", true"),n("),"),r(),n("(")),n(`_cache[${e.index}] = `),ot(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),r(),n(`${o(_n)}(1),`),r(),n(`_cache[${e.index}]`),a()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const nc=(e,t)=>{if(e.type===5)e.content=Or(e.content,t);else if(e.type===1){const n=at(e,"memo");for(let o=0;o<e.props.length;o++){const i=e.props[o];if(i.type===7&&i.name!=="for"){const a=i.exp,r=i.arg;a&&a.type===4&&!(i.name==="on"&&r)&&!(n&&t.vForMemoKeyedNodes.has(e)&&r&&r.type===4&&r.content==="key")&&(i.exp=Or(a,t,i.name==="slot")),r&&r.type===4&&!r.isStatic&&(i.arg=Or(r,t))}}}};function Or(e,t,n=!1,o=!1,i=Object.create(t.identifiers)){return e}function Wa(e){return Ge(e)?e:e.type===4?e.content:e.children.map(Wa).join("")}const rc=si(/^(?:if|else|else-if)$/,(e,t,n)=>Ya(e,t,n,(o,i,a)=>{const r=n.parent.children;let s=r.indexOf(o),l=0;for(;s-->=0;){const c=r[s];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(a)o.codegenNode=Fi(i,l,n);else{const c=oc(o.codegenNode);c.alternate=Fi(i,l+o.branches.length-1,n)}}}));function Ya(e,t,n,o){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(Ae(28,t.loc)),t.exp=le("true",!1,i)}if(t.name==="if"){const i=Vi(e,t),a={type:9,loc:wl(e.loc),branches:[i]};if(n.replaceNode(a),o)return o(a,i,!0)}else{const i=n.parent.children;let a=i.indexOf(e);for(;a-->=-1;){const r=i[a];if(r&&oi(r)){n.removeNode(r);continue}if(r&&r.type===9){(t.name==="else-if"||t.name==="else")&&r.branches[r.branches.length-1].condition===void 0&&n.onError(Ae(30,e.loc)),n.removeNode();const s=Vi(e,t);r.branches.push(s);const l=o&&o(r,s,!1);or(s,n),l&&l(),n.currentNode=null}else n.onError(Ae(30,e.loc));break}}}function Vi(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!at(e,"for")?e.children:[e],userKey:rr(e,"key"),isTemplateIf:n}}function Fi(e,t,n){return e.condition?Mr(e.condition,$i(e,t,n),Ye(n.helper(An),['""',"true"])):$i(e,t,n)}function $i(e,t,n){const{helper:o}=n,i=He("key",le(`${t}`,!1,ze,2)),{children:a}=e,r=a[0];if(a.length!==1||r.type!==1)if(a.length===1&&r.type===11){const l=r.codegenNode;return qn(l,i,n),l}else return Tn(n,o(Sn),mt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=r.codegenNode,c=Da(l);return c.type===13&&io(c,n),qn(c,i,n),l}}function oc(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const ic=si("for",(e,t,n)=>{const{helper:o,removeHelper:i}=n;return za(e,t,n,a=>{const r=Ye(o(qr),[a.source]),s=In(e),l=at(e,"memo"),c=rr(e,"key",!1,!0);c&&c.type;let f=c&&(c.type===6?c.value?le(c.value.content,!0):void 0:c.exp);const u=f?He("key",f):null,p=a.source.type===4&&a.source.constType>0,d=p?64:c?128:256;return a.codegenNode=Tn(n,o(Sn),void 0,r,d,void 0,void 0,!0,!p,!1,e.loc),()=>{var m;let h;const{children:v}=a,g=v.length!==1||v[0].type!==1,y=Zn(e)?e:s&&e.children.length===1&&Zn(e.children[0])?e.children[0]:null;if(y)h=y.codegenNode,s&&u&&qn(h,u,n);else if(g)h=Tn(n,o(Sn),u?mt([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{h=v[0].codegenNode,s&&u&&qn(h,u,n);const I=!p||h.isBlockRequired===!0;h.isBlock!==I&&(h.isBlock?(i(zt),i(ln(n.inSSR,h.isComponent))):i(sn(n.inSSR,h.isComponent))),h.isBlock=I,h.isBlock?(o(zt),o(ln(n.inSSR,h.isComponent))):(o(sn(n.inSSR,h.isComponent)),h.needsPatch&&(h.patchFlag=((m=h.patchFlag)!=null?m:0)|512))}if(l){const I=an(wr(a.parseResult,[le("_cached")]));I.body=ya([yt(["const _memo = (",l.exp,")"]),yt(["if (_cached && _cached.el",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(Qo)}(_cached, _memo)) return _cached`]),yt(["const _item = ",h]),le("_item.memo = _memo"),le("return _item")]),r.arguments.push(I,le("_cache"),le(String(n.cached.length))),n.cached.push(null)}else r.arguments.push(an(wr(a.parseResult),h,!0))}})});function za(e,t,n,o){if(!t.exp){n.onError(Ae(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(Ae(32,t.loc));return}ci(i);const{addIdentifiers:a,removeIdentifiers:r,scopes:s}=n,{source:l,value:c,key:f,index:u}=i,p={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:f,objectIndexAlias:u,parseResult:i,children:In(e)?e.children:[e]};n.replaceNode(p),s.vFor++;const d=o&&o(p);return()=>{s.vFor--,d&&d()}}function ci(e,t){e.finalized||(e.finalized=!0)}function wr({value:e,key:t,index:n},o=[]){return ac([e,t,n,...o])}function ac(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,o)=>n||le("_".repeat(o+1),!1))}const Ui=le("undefined",!1),Ja=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=at(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},sc=(e,t)=>{let n;if(In(e)&&e.props.some(ti)&&(n=at(e,"for"))){const o=n.forParseResult;if(o){ci(o);const{value:i,key:a,index:r}=o,{addIdentifiers:s,removeIdentifiers:l}=t;return i&&s(i),a&&s(a),r&&s(r),()=>{i&&l(i),a&&l(a),r&&l(r)}}}},lc=(e,t,n,o)=>an(e,n,!1,!0,n.length?n[0].loc:o);function Qa(e,t,n=lc){t.helper(ro);const{children:o,loc:i}=e,a=[],r=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=at(e,"slot",!0);if(l){const{arg:v,exp:g}=l;v&&!nt(v)&&(s=!0),a.push(He(v||le("default",!0),n(g,void 0,o,i)))}let c=!1,f=!1;const u=[],p=new Set;let d=0;for(let v=0;v<o.length;v++){const g=o[v];let y;if(!In(g)||!(y=at(g,"slot",!0))){g.type!==3&&u.push(g);continue}if(l){t.onError(Ae(37,y.loc));break}c=!0;const{children:I,loc:S}=g,{arg:N=le("default",!0),exp:C,loc:j}=y;let V;nt(N)?V=N?N.content:"default":s=!0;const O=at(g,"for"),L=n(C,O,I,S);let U,k;if(U=at(g,"if"))s=!0,r.push(Mr(U.exp,fr(N,L,d++),Ui));else if(k=at(g,/^else(?:-if)?$/,!0)){let M=v,E;for(;M--&&(E=o[M],!!oi(E)););if(E&&In(E)&&at(E,/^(?:else-)?if$/)){let P=r[r.length-1];for(;P.alternate.type===19;)P=P.alternate;P.alternate=k.exp?Mr(k.exp,fr(N,L,d++),Ui):fr(N,L,d++)}else t.onError(Ae(30,k.loc))}else if(O){s=!0;const M=O.forParseResult;M?(ci(M),r.push(Ye(t.helper(qr),[M.source,an(wr(M),fr(N,L),!0)]))):t.onError(Ae(32,O.loc))}else{if(V){if(p.has(V)){t.onError(Ae(38,j));continue}p.add(V),V==="default"&&(f=!0)}a.push(He(N,L))}}if(!l){const v=(g,y)=>{const I=n(g,void 0,y,i);return t.compatConfig&&(I.isNonScopedSlot=!0),He("default",I)};c?u.length&&!u.every(ao)&&(f?t.onError(Ae(39,u[0].loc)):a.push(v(void 0,u))):a.push(v(void 0,o))}const m=s?2:Ir(e.children)?3:1;let h=mt(a.concat(He("_",le(m+"",!1))),i);return r.length&&(h=Ye(t.helper(Jo),[h,Wt(r)])),{slots:h,hasDynamicSlots:s}}function fr(e,t,n){const o=[He("name",e),He("fn",t)];return n!=null&&o.push(He("key",le(String(n),!0))),mt(o)}function Ir(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Ir(n.children))return!0;break;case 9:if(Ir(n.branches))return!0;break;case 10:case 11:if(Ir(n.children))return!0;break}}return!1}const _a=new WeakMap,Za=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:o,props:i}=e,a=e.tagType===1;let r=a?qa(e,t):`"${o}"`;const s=aa(r)&&r.callee===Jr;let l,c,f=0,u,p,d,m=!1,h=!1,v=s||r===En||r===Hr||!a&&(o==="svg"||o==="foreignObject"||o==="math");if(i.length>0){const y=ui(e,t,void 0,a,s);l=y.props,f=y.patchFlag,p=y.dynamicPropNames,m=y.needsPatch,h=y.isBlockRequired;const I=y.directives;d=I&&I.length?Wt(I.map(S=>es(S,t))):void 0,y.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(r===Jn&&(v=!0,f|=1024),a&&r!==En&&r!==Jn){const{slots:I,hasDynamicSlots:S}=Qa(e,t);c=I,S&&(f|=1024)}else if(e.children.length===1&&r!==En){const I=e.children[0],S=I.type,N=S===5||S===8;N&&ft(I,t)===0&&(f|=1),N||S===2?c=I:c=e.children}else c=e.children;p&&p.length&&(u=uc(p));const g=e.codegenNode=Tn(t,r,l,c,f===0?void 0:f,u,d,!!v,!1,a,e.loc);m=m&&(f===0||f===32),m&&(g.needsPatch=!0),h&&(g.isBlockRequired=!0)};function qa(e,t,n=!1){let{tag:o}=e;const i=Lo(o),a=rr(e,"is",!1,!0);if(a)if(i||tn("COMPILER_IS_ON_ELEMENT",t)){let s;if(a.type===6?s=a.value&&le(a.value.content,!0):(s=a.exp,s||(s=le("is",!1,a.arg.loc))),s)return Ye(t.helper(Jr),[s])}else a.type===6&&a.value.content.startsWith("vue:")&&(o=a.value.content.slice(4));const r=Zo(o)||t.isBuiltInComponent(o);return r?(n||t.helper(r),r):(t.helper(zr),t.components.add(o),Nn(o,"component"))}function ui(e,t,n=e.props,o,i,a=!1){const{tag:r,loc:s,children:l}=e;let c=[];const f=[],u=[],p=l.length>0;let d=!1,m=!1,h=0,v=!1,g=!1,y=!1,I=!1,S=!1,N=!1;const C=[],j=k=>{c.length&&(f.push(mt(ji(c),s)),c=[]),k&&f.push(k)},V=()=>{t.scopes.vFor>0&&c.push(He(le("ref_for",!0),le("true")))},O=({key:k,value:M})=>{if(nt(k)){const E=k.content,P=sa(E);if(P&&(!o||i)&&E.toLowerCase()!=="onclick"&&E!=="onUpdate:modelValue"&&!xi(E)&&(I=!0),P&&xi(E)&&(N=!0),E==="ref"&&(v=!0),P&&M.type===14&&(M=M.arguments[0]),M.type===20||(M.type===4||M.type===8)&&ft(M,t)>0)return;E==="class"?g=!0:E==="style"?y=!0:E!=="ref"&&E!=="key"&&!C.includes(E)&&C.push(E),o&&(E==="class"||E==="style")&&!C.includes(E)&&C.push(E)}else S=!0};for(let k=0;k<n.length;k++){const M=n[k];if(M.type===6){const{loc:E,name:P,nameLoc:w,value:F}=M;let J=!0;if(P==="ref"&&(v=!0,V()),P==="is"&&(Lo(r)||F&&F.content.startsWith("vue:")||tn("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(He(le(P,!0,w),le(F?F.content:"",J,F?F.loc:E)))}else{const{name:E,arg:P,exp:w,loc:F,modifiers:J}=M,te=E==="bind",ie=E==="on";if(E==="slot"){o||t.onError(Ae(40,F));continue}if(E==="once"||E==="memo"||E==="is"||te&&nn(P,"is")&&(Lo(r)||tn("COMPILER_IS_ON_ELEMENT",t))||ie&&a)continue;if(te&&nn(P,"key")&&(d=!0),ie&&p&&P&&nt(P)&&Lt(P.content)==="vue:beforeUpdate"&&(d=!0,m=!0),te&&nn(P,"ref")&&V(),!P&&(te||ie)){if(S=!0,w)if(te){if(j(),tn("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(w);continue}V(),j(),f.push(w)}else j({type:14,loc:F,callee:t.helper(no),arguments:o?[w]:[w,"true"]});else t.onError(Ae(te?34:35,F));continue}te&&J.some(ye=>ye.content==="prop")&&(h|=32);const pe=t.directiveTransforms[E];if(pe){const{props:ye,needRuntime:Oe}=pe(M,e,t);!a&&ye.forEach(O),ie&&P&&!nt(P)?j(mt(ye,s)):c.push(...ye),Oe&&(u.push(M),jo(Oe)&&_a.set(M,Oe))}else Os(E)||(u.push(M),p&&(d=!0,m=!0))}}let L;f.length?(j(),f.length>1?L=Ye(t.helper(Qn),f,s):L=f[0]):c.length&&(L=mt(ji(c),s)),S?h|=16:(g&&!o&&(h|=2),y&&!o&&(h|=4),C.length&&(h|=8),I&&(h|=32));const U=(h===0||h===32)&&(v||N||u.length>0);if(!d&&U&&(h|=512),!t.inSSR&&L)switch(L.type){case 15:let k=-1,M=-1,E=!1;for(let F=0;F<L.properties.length;F++){const J=L.properties[F].key;nt(J)?J.content==="class"?k=F:J.content==="style"&&(M=F):J.isHandlerKey||(E=!0)}const P=L.properties[k],w=L.properties[M];E?L=Ye(t.helper(bn),[L]):(P&&!nt(P.value)&&(P.value=Ye(t.helper(eo),[P.value])),w&&(y||w.value.type===4&&w.value.content.trim()[0]==="["||w.value.type===17)&&(w.value=Ye(t.helper(to),[w.value])));break;case 14:break;default:L=Ye(t.helper(bn),[Ye(t.helper(xn),[L])]);break}return{props:L,directives:u,patchFlag:h,dynamicPropNames:C,shouldUseBlock:d,needsPatch:U,isBlockRequired:m}}function ji(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const i=e[o];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const a=i.key.content,r=t.get(a);r?(a==="style"||a==="class"||sa(a))&&cc(r,i):(t.set(a,i),n.push(i))}return n}function cc(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Wt([e.value,t.value],e.loc)}function es(e,t){const n=[],o=_a.get(e);o?n.push(t.helperString(o)):(t.helper(Qr),t.directives.add(e.name),n.push(Nn(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const a=le("true",!1,i);n.push(mt(e.modifiers.map(r=>He(r,a)),i))}return Wt(n,e.loc)}function uc(e){let t="[";for(let n=0,o=e.length;n<o;n++)t+=JSON.stringify(e[n]),n<o-1&&(t+=", ");return t+"]"}function Lo(e){return e==="component"||e==="Component"}const fc=(e,t)=>{if(Zn(e)){const{children:n,loc:o}=e,{slotName:i,slotProps:a}=ts(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;a&&(r[2]=a,s=3),n.length&&(r[3]=an([],n,!1,!1,o),s=4),t.scopeId&&!t.slotted&&(s=5),r.splice(s),e.codegenNode=Ye(t.helper(zo),r,o)}};function ts(e,t){let n='"default"',o;const i=[];for(let a=0;a<e.props.length;a++){const r=e.props[a];if(r.type===6)r.value&&(r.name==="name"?n=JSON.stringify(r.value.content):(r.name=Lt(r.name),i.push(r)));else if(r.name==="bind"&&nn(r.arg,"name")){if(r.exp)n=r.exp;else if(r.arg&&r.arg.type===4){const s=Lt(r.arg.content);n=r.exp=le(s,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&nt(r.arg)&&(r.arg.content=Lt(r.arg.content)),i.push(r)}if(i.length>0){const{props:a,directives:r}=ui(e,t,i,!1,!1);o=a,r.length&&t.onError(Ae(36,r[0].loc))}return{slotName:n,slotProps:o}}const fi=(e,t,n,o)=>{const{loc:i,modifiers:a,arg:r}=e;!e.exp&&!a.length&&n.onError(Ae(35,i));let s;if(r.type===4)if(r.isStatic){let u=r.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const p=t.tagType!==0||u.startsWith("vnode")||!/[A-Z]/.test(u)?Ns(Lt(u)):`on:${u}`;s=le(p,!0,r.loc)}else s=yt([`${n.helperString(Rr)}(`,r,")"]);else s=r,s.children.unshift(`${n.helperString(Rr)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const u=ei(l),p=!(u||Aa(l)),d=l.content.includes(";");(p||c&&u)&&(l=yt([`${p?"$event":"(...args)"} => ${d?"{":"("}`,l,d?"}":")"]))}let f={props:[He(s,l||le("() => {}",!1,i))]};return o&&(f=o(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach(u=>u.key.isHandlerKey=!0),f},ns=(e,t,n)=>{const{modifiers:o,loc:i}=e,a=e.arg;let{exp:r}=e;return r&&r.type===4&&!r.content.trim()&&(r=void 0),a.type!==4?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=a.content?`${a.content} || ""`:'""'),o.some(s=>s.content==="camel")&&(a.type===4?a.isStatic?a.content=Lt(a.content):a.content=`${n.helperString(Dr)}(${a.content})`:(a.children.unshift(`${n.helperString(Dr)}(`),a.children.push(")"))),n.inSSR||(o.some(s=>s.content==="prop")&&Bi(a,"."),o.some(s=>s.content==="attr")&&Bi(a,"^")),{props:[He(a,r)]}},Bi=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},dc=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let o,i=!1;for(let a=0;a<n.length;a++){const r=n[a];if(Er(r)){i=!0;for(let s=a+1;s<n.length;s++){const l=n[s];if(Er(l))o||(o=n[a]=yt([r],r.loc)),o.children.push(" + ",l),n.splice(s,1),s--;else{o=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(a=>a.type===7&&!t.directiveTransforms[a.name])&&e.tag!=="template")))for(let a=0;a<n.length;a++){const r=n[a];if(Er(r)||r.type===8){const s=[];(r.type!==2||r.content!==" ")&&s.push(r),!t.ssr&&ft(r,t)===0&&s.push("1"),n[a]={type:12,content:r,loc:r.loc,codegenNode:Ye(t.helper(Yr),s)}}}}},ki=new WeakSet,pc=(e,t)=>{if(e.type===1&&at(e,"once",!0))return ki.has(e)||t.inVOnce||t.inSSR?void 0:(ki.add(e),t.inVOnce=!0,t.helper(_n),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},di=(e,t,n)=>{const{exp:o,arg:i}=e;if(!o)return n.onError(Ae(41,e.loc)),Vn();const a=o.loc.source.trim(),r=o.type===4?o.content:a,s=n.bindingMetadata[a];if(s==="props"||s==="props-aliased")return n.onError(Ae(44,o.loc)),Vn();if(s==="literal-const"||s==="setup-const")return n.onError(Ae(45,o.loc)),Vn();if(!r.trim()||!ei(o))return n.onError(Ae(42,o.loc)),Vn();const l=i||le("modelValue",!0),c=i?nt(i)?`onUpdate:${Lt(i.content)}`:yt(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;const u=n.isTS?"($event: any)":"$event";f=yt([`${u} => ((`,o,") = $event)"]);const p=[He(l,e.exp),He(c,f)];if(e.modifiers.length&&t.tagType===1){const d=e.modifiers.map(h=>h.content).map(h=>(nr(h)?h:JSON.stringify(h))+": true").join(", "),m=i?nt(i)?`${i.content}Modifiers`:yt([i,' + "Modifiers"']):"modelModifiers";p.push(He(m,le(`{ ${d} }`,!1,e.loc,2)))}return Vn(p)};function Vn(e=[]){return{props:e}}const hc=/[\w).+\-_$\]]/,mc=(e,t)=>{tn("COMPILER_FILTERS",t)&&(e.type===5?Vr(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Vr(n.exp,t)}))};function Vr(e,t){if(e.type===4)Xi(e,t);else for(let n=0;n<e.children.length;n++){const o=e.children[n];typeof o=="object"&&(o.type===4?Xi(o,t):o.type===8?Vr(o,t):o.type===5&&Vr(o.content,t))}}function Xi(e,t){const n=e.content;let o=!1,i=!1,a=!1,r=!1,s=0,l=0,c=0,f=0,u,p,d,m,h=[];for(d=0;d<n.length;d++)if(p=u,u=n.charCodeAt(d),o)u===39&&p!==92&&(o=!1);else if(i)u===34&&p!==92&&(i=!1);else if(a)u===96&&p!==92&&(a=!1);else if(r)u===47&&p!==92&&(r=!1);else if(u===124&&n.charCodeAt(d+1)!==124&&n.charCodeAt(d-1)!==124&&!s&&!l&&!c)m===void 0?(f=d+1,m=n.slice(0,d).trim()):v();else{switch(u){case 34:i=!0;break;case 39:o=!0;break;case 96:a=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:s++;break;case 125:s--;break}if(u===47){let g=d-1,y;for(;g>=0&&(y=n.charAt(g),y===" ");g--);(!y||!hc.test(y))&&(r=!0)}}m===void 0?m=n.slice(0,d).trim():f!==0&&v();function v(){h.push(n.slice(f,d).trim()),f=d+1}if(h.length){for(d=0;d<h.length;d++)m=vc(m,h[d],t);e.content=m,e.ast=void 0}}function vc(e,t,n){n.helper(_r);const o=t.indexOf("(");if(o<0)return n.filters.add(t),`${Nn(t,"filter")}(${e})`;{const i=t.slice(0,o),a=t.slice(o+1);return n.filters.add(i),`${Nn(i,"filter")}(${e}${a!==")"?","+a:a}`}}const Ki=new WeakSet,gc=(e,t)=>{if(e.type===1){const n=at(e,"memo");return!n||Ki.has(e)||t.inSSR?void 0:(Ki.add(e),()=>{const o=e.codegenNode||t.currentNode.codegenNode;o&&o.type===13&&(e.tagType!==1&&io(o,t),e.codegenNode=Ye(t.helper(oo),[n.exp,an(void 0,o),"_cache",String(t.cached.length)]),t.cached.push(null))})}},rs=(e,t)=>{if(e.type===1){for(const n of e.props)if(n.type===7&&n.name==="bind"&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){const o=n.arg;if(o.type!==4||!o.isStatic)t.onError(Ae(53,o.loc)),n.exp=le("",!0,o.loc);else{const i=Lt(o.content);(qo.test(i[0])||i[0]==="-")&&(n.exp=le(i,!1,o.loc))}}}};function os(e){return[[rs,pc,rc,gc,ic,mc,fc,Za,Ja,dc],{on:fi,bind:ns,model:di}]}function is(e,t={}){const n=t.onError||_o,o=t.mode==="module";t.prefixIdentifiers===!0?n(Ae(48)):o&&n(Ae(49));const i=!1;t.cacheHandlers&&n(Ae(50)),t.scopeId&&!o&&n(Ae(51));const a=Mt({},t,{prefixIdentifiers:i}),r=Ge(e)?ai(e,a):e,[s,l]=os();return ka(r,Mt({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:Mt({},l,t.directiveTransforms||{})})),Ka(r,a)}const yc={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},as=()=>({props:[]});/**
|
|
14
|
+
* @vue/compiler-dom v3.5.42
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/const pi=Symbol(""),hi=Symbol(""),mi=Symbol(""),vi=Symbol(""),Fr=Symbol(""),gi=Symbol(""),yi=Symbol(""),Ei=Symbol(""),Si=Symbol(""),bi=Symbol("");ma({[pi]:"vModelRadio",[hi]:"vModelCheckbox",[mi]:"vModelText",[vi]:"vModelSelect",[Fr]:"vModelDynamic",[gi]:"withModifiers",[yi]:"withKeys",[Ei]:"vShow",[Si]:"Transition",[bi]:"TransitionGroup"});let dn;function Ec(e,t=!1){return dn||(dn=document.createElement("div")),t?(dn.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,dn.children[0].getAttribute("foo")):(dn.innerHTML=e,dn.textContent)}const Ti={parseMode:"html",isVoidTag:Cs,isNativeTag:e=>As(e)||xs(e)||Ps(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:Ec,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return Si;if(e==="TransitionGroup"||e==="transition-group")return bi},getNamespace(e,t,n){let o=t?t.ns:n;if(t&&o===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(o=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(o=0);else t&&o===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(o=0);if(o===0){if(e==="svg")return 1;if(e==="math")return 2}return o}},ss=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:le("style",!0,t.loc),exp:Sc(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Sc=(e,t)=>{const n=Ds(e);return le(JSON.stringify(n),!1,t,3)};function Vt(e,t){return Ae(e,t)}const bc={X_V_HTML_NO_EXPRESSION:54,54:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:55,55:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:56,56:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:57,57:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:58,58:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:59,59:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:61,61:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:62,62:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:63,63:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:64,64:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:65,65:"__EXTEND_POINT__"},Tc={54:"v-html is missing expression.",55:"v-html will override element children.",56:"v-text is missing expression.",57:"v-text will override element children.",58:"v-model can only be used on <input>, <textarea> and <select> elements.",59:"v-model argument is not supported on plain elements.",60:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",61:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",62:"v-show is missing expression.",63:"<Transition> expects exactly one child element or component.",64:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Oc=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Vt(54,i)),t.children.length&&(n.onError(Vt(55,i)),t.children.length=0),{props:[He(le("innerHTML",!0,i),o||le("",!0))]}},Ic=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Vt(56,i)),t.children.length&&(n.onError(Vt(57,i)),t.children.length=0),{props:[He(le("textContent",!0),o?ft(o,n)>0?o:Ye(n.helperString(tr),[o],i):le("",!0))]}},Nc=(e,t,n)=>{const o=di(e,t,n);if(!o.props.length||t.tagType===1)return o;e.arg&&n.onError(Vt(59,e.arg.loc));const{tag:i}=t,a=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||a){let r=mi,s=!1;if(i==="input"||a){const l=rr(t,"type");if(l){if(l.type===7)r=Fr;else if(l.value)switch(l.value.content){case"radio":r=pi;break;case"checkbox":r=hi;break;case"file":s=!0,n.onError(Vt(60,e.loc));break}}else Pa(t)&&(r=Fr)}else i==="select"&&(r=vi);s||(o.needRuntime=n.helper(r))}else n.onError(Vt(58,e.loc));return o.props=o.props.filter(r=>!(r.key.type===4&&r.key.content==="modelValue")),o},Cc=Xr("passive,once,capture"),Ac=Xr("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),xc=Xr("left,right"),ls=Xr("onkeyup,onkeydown,onkeypress"),Pc=(e,t,n,o)=>{const i=[],a=[],r=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&On("COMPILER_V_ON_NATIVE",n)||Cc(l)?r.push(l):xc(l)?nt(e)?ls(e.content.toLowerCase())?i.push(l):a.push(l):(i.push(l),a.push(l)):Ac(l)?a.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:r}},Hi=(e,t)=>nt(e)&&e.content.toLowerCase()==="onclick"?le(t,!0):e.type!==4?yt(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Dc=(e,t,n)=>fi(e,t,n,o=>{const{modifiers:i}=e;if(!i.length)return o;let{key:a,value:r}=o.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:c}=Pc(a,i,n,e.loc);if(l.includes("right")&&(a=Hi(a,"onContextmenu")),l.includes("middle")&&(a=Hi(a,"onMouseup")),l.length&&(r=Ye(n.helper(gi),[r,JSON.stringify(l)])),s.length&&(!nt(a)||ls(a.content.toLowerCase()))&&(r=Ye(n.helper(yi),[r,JSON.stringify(s)])),c.length){const f=c.map(ia).join("");a=nt(a)?le(`${a.content}${f}`,!0):yt(["(",a,`) + "${f}"`])}return{props:[He(a,r)]}}),Rc=(e,t,n)=>{const{exp:o,loc:i}=e;return o||n.onError(Vt(62,i)),{props:[],needRuntime:n.helper(Ei)}},Mc=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},cs=[ss],us={cloak:as,html:Oc,text:Ic,model:Nc,on:Dc,show:Rc};function Lc(e,t={}){return is(e,Mt({},Ti,t,{nodeTransforms:[Mc,...cs,...t.nodeTransforms||[]],directiveTransforms:Mt({},us,t.directiveTransforms||{}),transformHoist:null}))}function wc(e,t={}){return ai(e,Mt({},Ti,t))}const Vc=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:Ho,BindingTypes:yc,CAMELIZE:Dr,CAPITALIZE:ua,CREATE_BLOCK:Go,CREATE_COMMENT:An,CREATE_ELEMENT_BLOCK:Wo,CREATE_ELEMENT_VNODE:Wr,CREATE_SLOTS:Jo,CREATE_STATIC:Yo,CREATE_TEXT:Yr,CREATE_VNODE:Gr,CompilerDeprecationTypes:tl,ConstantTypes:Ys,DOMDirectiveTransforms:us,DOMErrorCodes:bc,DOMErrorMessages:Tc,DOMNodeTransforms:cs,ElementTypes:Ws,ErrorCodes:ol,FRAGMENT:Sn,GUARD_REACTIVE_PROPS:xn,IS_MEMO_SAME:Qo,IS_REF:ha,KEEP_ALIVE:Jn,MERGE_PROPS:Qn,NORMALIZE_CLASS:eo,NORMALIZE_PROPS:bn,NORMALIZE_STYLE:to,Namespaces:Hs,NodeTypes:Gs,OPEN_BLOCK:zt,POP_SCOPE_ID:da,PUSH_SCOPE_ID:fa,RENDER_LIST:qr,RENDER_SLOT:zo,RESOLVE_COMPONENT:zr,RESOLVE_DIRECTIVE:Qr,RESOLVE_DYNAMIC_COMPONENT:Jr,RESOLVE_FILTER:_r,SET_BLOCK_TRACKING:_n,SUSPENSE:Hr,TELEPORT:En,TO_DISPLAY_STRING:tr,TO_HANDLERS:no,TO_HANDLER_KEY:Rr,TRANSITION:Si,TRANSITION_GROUP:bi,TS_NODE_TYPES:Ta,UNREF:pa,V_MODEL_CHECKBOX:hi,V_MODEL_DYNAMIC:Fr,V_MODEL_RADIO:pi,V_MODEL_SELECT:vi,V_MODEL_TEXT:mi,V_ON_WITH_KEYS:yi,V_ON_WITH_MODIFIERS:gi,V_SHOW:Ei,WITH_CTX:ro,WITH_DIRECTIVES:Zr,WITH_MEMO:oo,advancePositionWithClone:Tl,advancePositionWithMutation:xa,assert:Ol,baseCompile:is,baseParse:ai,buildDirectiveArgs:es,buildProps:ui,buildSlots:Qa,checkCompatEnabled:On,compile:Lc,convertToBlock:io,createArrayExpression:Wt,createAssignmentExpression:_s,createBlockStatement:ya,createCacheExpression:ga,createCallExpression:Ye,createCompilerError:Ae,createCompoundExpression:yt,createConditionalExpression:Mr,createDOMCompilerError:Vt,createForLoopParams:wr,createFunctionExpression:an,createIfStatement:Qs,createInterpolation:zs,createObjectExpression:mt,createObjectProperty:He,createReturnStatement:qs,createRoot:va,createSequenceExpression:Zs,createSimpleExpression:le,createStructuralDirectiveTransform:si,createTemplateLiteral:Js,createTransformContext:Ba,createVNodeCall:Tn,errorMessages:il,extractIdentifiers:Ct,findDir:at,findProp:rr,forAliasRE:Ra,generate:Ka,generateCodeFrame:Rs,getBaseTransformPreset:os,getConstantType:ft,getMemoedVNodeCall:Da,getVNodeBlockHelper:ln,getVNodeHelper:sn,hasDynamicKeyVBind:Pa,hasScopeRef:Ot,helperNameMap:on,injectProp:qn,isAllWhitespace:ri,isCommentOrWhitespace:oi,isCoreComponent:Zo,isFnExpression:Aa,isFnExpressionBrowser:Ca,isFnExpressionNode:bl,isFunctionType:hl,isInDestructureAssignment:ll,isInNewExpression:cl,isMemberExpression:ei,isMemberExpressionBrowser:Na,isMemberExpressionNode:El,isReferencedIdentifier:sl,isSimpleIdentifier:nr,isSlotOutlet:Zn,isStaticArgOf:nn,isStaticExp:nt,isStaticProperty:ba,isStaticPropertyKey:ml,isTemplateNode:In,isText:Er,isVPre:Po,isVSlot:ti,isWhitespaceText:ao,locStub:ze,noopDirectiveTransform:as,parse:wc,parserOptions:Ti,processExpression:Or,processFor:za,processIf:Ya,processSlotOutlet:ts,registerRuntimeHelpers:ma,resolveComponentType:qa,stringifyExpression:Wa,toValidAssetId:Nn,trackSlotScopes:Ja,trackVForSlotScopes:sc,transform:ka,transformBind:ns,transformElement:Za,transformExpression:nc,transformModel:di,transformOn:fi,transformStyle:ss,transformVBindShorthand:rs,traverseNode:or,unwrapTSNode:Oa,validFirstIdentCharRE:qo,walkBlockDeclarations:Sa,walkFunctionParams:ul,walkIdentifiers:al,warnDeprecation:rl},Symbol.toStringTag,{value:"Module"})),Fc=Kr(Vc),$c=Kr(Ms),Uc=Kr(Ls);/**
|
|
18
|
+
* vue v3.5.42
|
|
19
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
20
|
+
* @license MIT
|
|
21
|
+
**/var Gi;function jc(){return Gi||(Gi=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Fc,n=$c,o=Uc;function i(l){var c=Object.create(null);if(l)for(var f in l)c[f]=l[f];return c.default=l,Object.freeze(c)}var a=i(n);const r=Object.create(null);function s(l,c){if(!o.isString(l))if(l.nodeType)l=l.innerHTML;else return o.NOOP;const f=o.genCacheKey(l,c),u=r[f];if(u)return u;if(l[0]==="#"){const h=document.querySelector(l);l=h?h.innerHTML:""}const p=o.extend({hoistStatic:!0,onError:void 0,onWarn:o.NOOP},c);!p.isCustomElement&&typeof customElements<"u"&&(p.isCustomElement=h=>!!customElements.get(h));const{code:d}=t.compile(l,p),m=new Function("Vue",d)(a);return m._rc=!0,r[f]=m}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})})(ho)),ho}var Wi;function Bc(){return Wi||(Wi=1,po.exports=jc()),po.exports}/**!
|
|
22
|
+
* Sortable 1.14.0
|
|
23
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
24
|
+
* @author owenm <owen23355@gmail.com>
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yi(Object(n),!0).forEach(function(o){kc(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Nr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Nr=function(t){return typeof t}:Nr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(){return Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Et.apply(this,arguments)}function Xc(e,t){if(e==null)return{};var n={},o=Object.keys(e),i,a;for(a=0;a<o.length;a++)i=o[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Kc(e,t){if(e==null)return{};var n=Xc(e,t),o,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)o=a[i],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Hc(e){return Gc(e)||Wc(e)||Yc(e)||zc()}function Gc(e){if(Array.isArray(e))return wo(e)}function Wc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yc(e,t){if(e){if(typeof e=="string")return wo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wo(e,t)}}function wo(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function zc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Jc="1.14.0";function Ft(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var $t=Ft(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ar=Ft(/Edge/i),zi=Ft(/firefox/i),Hn=Ft(/safari/i)&&!Ft(/chrome/i)&&!Ft(/android/i),fs=Ft(/iP(ad|od|hone)/i),Qc=Ft(/chrome/i)&&Ft(/android/i),ds={capture:!1,passive:!1};function me(e,t,n){e.addEventListener(t,n,!$t&&ds)}function de(e,t,n){e.removeEventListener(t,n,!$t&&ds)}function $r(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 _c(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function It(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&$r(e,t):$r(e,t))||o&&e===n)return e;if(e===n)break}while(e=_c(e))}return null}var Ji=/\s+/g;function we(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Ji," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Ji," ")}}function G(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 rn(e,t){var n="";if(typeof e=="string")n=e;else do{var o=G(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function ps(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,a=o.length;if(n)for(;i<a;i++)n(o[i],i);return o}return[]}function At(){var e=document.scrollingElement;return e||document.documentElement}function Le(e,t,n,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,r,s,l,c,f,u;if(e!==window&&e.parentNode&&e!==At()?(a=e.getBoundingClientRect(),r=a.top,s=a.left,l=a.bottom,c=a.right,f=a.height,u=a.width):(r=0,s=0,l=window.innerHeight,c=window.innerWidth,f=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!$t))do if(i&&i.getBoundingClientRect&&(G(i,"transform")!=="none"||n&&G(i,"position")!=="static")){var p=i.getBoundingClientRect();r-=p.top+parseInt(G(i,"border-top-width")),s-=p.left+parseInt(G(i,"border-left-width")),l=r+a.height,c=s+a.width;break}while(i=i.parentNode);if(o&&e!==window){var d=rn(i||e),m=d&&d.a,h=d&&d.d;d&&(r/=h,s/=m,u/=m,f/=h,l=r+f,c=s+u)}return{top:r,left:s,bottom:l,right:c,width:u,height:f}}}function Qi(e,t,n){for(var o=Ht(e,!0),i=Le(e)[t];o;){var a=Le(o)[n],r=void 0;if(r=i>=a,!r)return o;if(o===At())break;o=Ht(o,!1)}return!1}function Cn(e,t,n,o){for(var i=0,a=0,r=e.children;a<r.length;){if(r[a].style.display!=="none"&&r[a]!==Z.ghost&&(o||r[a]!==Z.dragged)&&It(r[a],n.draggable,e,!1)){if(i===t)return r[a];i++}a++}return null}function Oi(e,t){for(var n=e.lastElementChild;n&&(n===Z.ghost||G(n,"display")==="none"||t&&!$r(n,t));)n=n.previousElementSibling;return n||null}function je(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Z.clone&&(!t||$r(e,t))&&n++;return n}function _i(e){var t=0,n=0,o=At();if(e)do{var i=rn(e),a=i.a,r=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*r}while(e!==o&&(e=e.parentNode));return[t,n]}function Zc(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 Ht(e,t){if(!e||!e.getBoundingClientRect)return At();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=G(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return At();if(o||t)return n;o=!0}}while(n=n.parentNode);return At()}function qc(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function vo(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 Gn;function hs(e,t){return function(){if(!Gn){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),Gn=setTimeout(function(){Gn=void 0},t)}}}function eu(){clearTimeout(Gn),Gn=void 0}function ms(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ii(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 Zi(e,t){G(e,"position","absolute"),G(e,"top",t.top),G(e,"left",t.left),G(e,"width",t.width),G(e,"height",t.height)}function go(e){G(e,"position",""),G(e,"top",""),G(e,"left",""),G(e,"width",""),G(e,"height","")}var rt="Sortable"+new Date().getTime();function tu(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(G(i,"display")==="none"||i===Z.ghost)){e.push({target:i,rect:Le(i)});var a=xt({},e[e.length-1].rect);if(i.thisAnimationDuration){var r=rn(i,!0);r&&(a.top-=r.f,a.left-=r.e)}i.fromRect=a}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(Zc(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var a=!1,r=0;e.forEach(function(s){var l=0,c=s.target,f=c.fromRect,u=Le(c),p=c.prevFromRect,d=c.prevToRect,m=s.rect,h=rn(c,!0);h&&(u.top-=h.f,u.left-=h.e),c.toRect=u,c.thisAnimationDuration&&vo(p,u)&&!vo(f,u)&&(m.top-u.top)/(m.left-u.left)===(f.top-u.top)/(f.left-u.left)&&(l=ru(m,p,d,i.options)),vo(u,f)||(c.prevFromRect=f,c.prevToRect=u,l||(l=i.options.animation),i.animate(c,m,u,l)),l&&(a=!0,r=Math.max(r,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),a?t=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),e=[]},animate:function(o,i,a,r){if(r){G(o,"transition",""),G(o,"transform","");var s=rn(this.el),l=s&&s.a,c=s&&s.d,f=(i.left-a.left)/(l||1),u=(i.top-a.top)/(c||1);o.animatingX=!!f,o.animatingY=!!u,G(o,"transform","translate3d("+f+"px,"+u+"px,0)"),this.forRepaintDummy=nu(o),G(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),G(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){G(o,"transition",""),G(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function nu(e){return e.offsetWidth}function ru(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 pn=[],yo={initializeByDefault:!0},sr={mount:function(t){for(var n in yo)yo.hasOwnProperty(n)&&!(n in t)&&(t[n]=yo[n]);pn.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),pn.push(t)},pluginEvent:function(t,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var a=t+"Global";pn.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][a]&&n[r.pluginName][a](xt({sortable:n},o)),n.options[r.pluginName]&&n[r.pluginName][t]&&n[r.pluginName][t](xt({sortable:n},o)))})},initializePlugins:function(t,n,o,i){pn.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var c=new s(t,n,t.options);c.sortable=t,c.options=t.options,t[l]=c,Et(o,c.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var r=this.modifyOption(t,a,t.options[a]);typeof r<"u"&&(t.options[a]=r)}},getEventProperties:function(t,n){var o={};return pn.forEach(function(i){typeof i.eventProperties=="function"&&Et(o,i.eventProperties.call(n[i.pluginName],t))}),o},modifyOption:function(t,n,o){var i;return pn.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[n]=="function"&&(i=a.optionListeners[n].call(t[a.pluginName],o))}),i}};function jn(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,a=e.cloneEl,r=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,f=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,d=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[rt],!!t){var h,v=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!$t&&!ar?h=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(o,!0,!0)),h.to=r||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=l,h.newIndex=c,h.oldDraggableIndex=f,h.newDraggableIndex=u,h.originalEvent=p,h.pullMode=d?d.lastPutMode:void 0;var y=xt(xt({},m),sr.getEventProperties(o,t));for(var I in y)h[I]=y[I];n&&n.dispatchEvent(h),v[g]&&v[g].call(t,h)}}var ou=["evt"],lt=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,a=Kc(o,ou);sr.pluginEvent.bind(Z)(t,n,xt({dragEl:B,parentEl:$e,ghostEl:ce,rootEl:Me,nextEl:qt,lastDownEl:Cr,cloneEl:Ue,cloneHidden:Xt,dragStarted:Bn,putSortable:Qe,activeSortable:Z.active,originalEvent:i,oldIndex:yn,oldDraggableIndex:Wn,newIndex:pt,newDraggableIndex:kt,hideGhostForTarget:Es,unhideGhostForTarget:Ss,cloneNowHidden:function(){Xt=!0},cloneNowShown:function(){Xt=!1},dispatchSortableEvent:function(s){it({sortable:n,name:s,originalEvent:i})}},a))};function it(e){jn(xt({putSortable:Qe,cloneEl:Ue,targetEl:B,rootEl:Me,oldIndex:yn,oldDraggableIndex:Wn,newIndex:pt,newDraggableIndex:kt},e))}var B,$e,ce,Me,qt,Cr,Ue,Xt,yn,pt,Wn,kt,dr,Qe,vn=!1,Ur=!1,jr=[],Qt,bt,Eo,So,qi,ea,Bn,hn,Yn,zn=!1,pr=!1,Ar,et,bo=[],Vo=!1,Br=[],lo=typeof document<"u",hr=fs,ta=ar||$t?"cssFloat":"float",iu=lo&&!Qc&&!fs&&"draggable"in document.createElement("div"),vs=(function(){if(lo){if($t)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),gs=function(t,n){var o=G(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),a=Cn(t,0,n),r=Cn(t,1,n),s=a&&G(a),l=r&&G(r),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Le(a).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Le(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(a&&s.float&&s.float!=="none"){var u=s.float==="left"?"left":"right";return r&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return a&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=i&&o[ta]==="none"||r&&o[ta]==="none"&&c+f>i)?"vertical":"horizontal"},au=function(t,n,o){var i=o?t.left:t.top,a=o?t.right:t.bottom,r=o?t.width:t.height,s=o?n.left:n.top,l=o?n.right:n.bottom,c=o?n.width:n.height;return i===s||a===l||i+r/2===s+c/2},su=function(t,n){var o;return jr.some(function(i){var a=i[rt].options.emptyInsertThreshold;if(!(!a||Oi(i))){var r=Le(i),s=t>=r.left-a&&t<=r.right+a,l=n>=r.top-a&&n<=r.bottom+a;if(s&&l)return o=i}}),o},ys=function(t){function n(a,r){return function(s,l,c,f){var u=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(a==null&&(r||u))return!0;if(a==null||a===!1)return!1;if(r&&a==="clone")return a;if(typeof a=="function")return n(a(s,l,c,f),r)(s,l,c,f);var p=(r?s:l).options.group.name;return a===!0||typeof a=="string"&&a===p||a.join&&a.indexOf(p)>-1}}var o={},i=t.group;(!i||Nr(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,t.group=o},Es=function(){!vs&&ce&&G(ce,"display","none")},Ss=function(){!vs&&ce&&G(ce,"display","")};lo&&document.addEventListener("click",function(e){if(Ur)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ur=!1,!1},!0);var _t=function(t){if(B){t=t.touches?t.touches[0]:t;var n=su(t.clientX,t.clientY);if(n){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[rt]._onDragOver(o)}}},lu=function(t){B&&B.parentNode[rt]._isOutsideThisEl(t.target)};function Z(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=Et({},t),e[rt]=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 gs(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:Z.supportPointer!==!1&&"PointerEvent"in window&&!Hn,emptyInsertThreshold:5};sr.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);ys(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:iu,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?me(e,"pointerdown",this._onTapStart):(me(e,"mousedown",this._onTapStart),me(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(me(e,"dragover",this),me(e,"dragenter",this)),jr.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Et(this,tu())}Z.prototype={constructor:Z,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(hn=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,B):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,i=this.options,a=i.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,f=i.filter;if(vu(o),!B&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Hn&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=It(l,i.draggable,o,!1),!(l&&l.animated)&&Cr!==l)){if(yn=je(l),Wn=je(l,i.draggable),typeof f=="function"){if(f.call(this,t,l,this)){it({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:o,fromEl:o}),lt("filter",n,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(u){if(u=It(c,u.trim(),o,!1),u)return it({sortable:n,rootEl:u,name:"filter",targetEl:l,fromEl:o,toEl:o}),lt("filter",n,{evt:t}),!0}),f)){a&&t.cancelable&&t.preventDefault();return}i.handle&&!It(c,i.handle,o,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,o){var i=this,a=i.el,r=i.options,s=a.ownerDocument,l;if(o&&!B&&o.parentNode===a){var c=Le(o);if(Me=a,B=o,$e=B.parentNode,qt=B.nextSibling,Cr=o,dr=r.group,Z.dragged=B,Qt={target:B,clientX:(n||t).clientX,clientY:(n||t).clientY},qi=Qt.clientX-c.left,ea=Qt.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,B.style["will-change"]="all",l=function(){if(lt("delayEnded",i,{evt:t}),Z.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!zi&&i.nativeDraggable&&(B.draggable=!0),i._triggerDragStart(t,n),it({sortable:i,name:"choose",originalEvent:t}),we(B,r.chosenClass,!0)},r.ignore.split(",").forEach(function(f){ps(B,f.trim(),To)}),me(s,"dragover",_t),me(s,"mousemove",_t),me(s,"touchmove",_t),me(s,"mouseup",i._onDrop),me(s,"touchend",i._onDrop),me(s,"touchcancel",i._onDrop),zi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,B.draggable=!0),lt("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(ar||$t))){if(Z.eventCanceled){this._onDrop();return}me(s,"mouseup",i._disableDelayedDrag),me(s,"touchend",i._disableDelayedDrag),me(s,"touchcancel",i._disableDelayedDrag),me(s,"mousemove",i._delayedDragTouchMoveHandler),me(s,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&me(s,"pointermove",i._delayedDragTouchMoveHandler),i._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(){B&&To(B),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?me(document,"pointermove",this._onTouchMove):n?me(document,"touchmove",this._onTouchMove):me(document,"mousemove",this._onTouchMove):(me(B,"dragend",this),me(Me,"dragstart",this._onDragStart));try{document.selection?xr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(vn=!1,Me&&B){lt("dragStarted",this,{evt:n}),this.nativeDraggable&&me(document,"dragover",lu);var o=this.options;!t&&we(B,o.dragClass,!1),we(B,o.ghostClass,!0),Z.active=this,t&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Es();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY),t!==n);)n=t;if(B.parentNode[rt]._isOutsideThisEl(t),n)do{if(n[rt]){var o=void 0;if(o=n[rt]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Ss()}},_onTouchMove:function(t){if(Qt){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,a=t.touches?t.touches[0]:t,r=ce&&rn(ce,!0),s=ce&&r&&r.a,l=ce&&r&&r.d,c=hr&&et&&_i(et),f=(a.clientX-Qt.clientX+i.x)/(s||1)+(c?c[0]-bo[0]:0)/(s||1),u=(a.clientY-Qt.clientY+i.y)/(l||1)+(c?c[1]-bo[1]:0)/(l||1);if(!Z.active&&!vn){if(o&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(ce){r?(r.e+=f-(Eo||0),r.f+=u-(So||0)):r={a:1,b:0,c:0,d:1,e:f,f:u};var p="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");G(ce,"webkitTransform",p),G(ce,"mozTransform",p),G(ce,"msTransform",p),G(ce,"transform",p),Eo=f,So=u,bt=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ce){var t=this.options.fallbackOnBody?document.body:Me,n=Le(B,!0,hr,!0,t),o=this.options;if(hr){for(et=t;G(et,"position")==="static"&&G(et,"transform")==="none"&&et!==document;)et=et.parentNode;et!==document.body&&et!==document.documentElement?(et===document&&(et=At()),n.top+=et.scrollTop,n.left+=et.scrollLeft):et=At(),bo=_i(et)}ce=B.cloneNode(!0),we(ce,o.ghostClass,!1),we(ce,o.fallbackClass,!0),we(ce,o.dragClass,!0),G(ce,"transition",""),G(ce,"transform",""),G(ce,"box-sizing","border-box"),G(ce,"margin",0),G(ce,"top",n.top),G(ce,"left",n.left),G(ce,"width",n.width),G(ce,"height",n.height),G(ce,"opacity","0.8"),G(ce,"position",hr?"absolute":"fixed"),G(ce,"zIndex","100000"),G(ce,"pointerEvents","none"),Z.ghost=ce,t.appendChild(ce),G(ce,"transform-origin",qi/parseInt(ce.style.width)*100+"% "+ea/parseInt(ce.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,i=t.dataTransfer,a=o.options;if(lt("dragStart",this,{evt:t}),Z.eventCanceled){this._onDrop();return}lt("setupClone",this),Z.eventCanceled||(Ue=Ii(B),Ue.draggable=!1,Ue.style["will-change"]="",this._hideClone(),we(Ue,this.options.chosenClass,!1),Z.clone=Ue),o.cloneId=xr(function(){lt("clone",o),!Z.eventCanceled&&(o.options.removeCloneOnHide||Me.insertBefore(Ue,B),o._hideClone(),it({sortable:o,name:"clone"}))}),!n&&we(B,a.dragClass,!0),n?(Ur=!0,o._loopId=setInterval(o._emulateDragOver,50)):(de(document,"mouseup",o._onDrop),de(document,"touchend",o._onDrop),de(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",a.setData&&a.setData.call(o,i,B)),me(document,"drop",o),G(B,"transform","translateZ(0)")),vn=!0,o._dragStartId=xr(o._dragStarted.bind(o,n,t)),me(document,"selectstart",o),Bn=!0,Hn&&G(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,i,a,r,s=this.options,l=s.group,c=Z.active,f=dr===l,u=s.sort,p=Qe||c,d,m=this,h=!1;if(Vo)return;function v(J,te){lt(J,m,xt({evt:t,isOwner:f,axis:d?"vertical":"horizontal",revert:r,dragRect:i,targetRect:a,canSort:u,fromSortable:p,target:o,completed:y,onMove:function(pe,ye){return mr(Me,n,B,i,pe,Le(pe),t,ye)},changed:I},te))}function g(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function y(J){return v("dragOverCompleted",{insertion:J}),J&&(f?c._hideClone():c._showClone(m),m!==p&&(we(B,Qe?Qe.options.ghostClass:c.options.ghostClass,!1),we(B,s.ghostClass,!0)),Qe!==m&&m!==Z.active?Qe=m:m===Z.active&&Qe&&(Qe=null),p===m&&(m._ignoreWhileAnimating=o),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(o===B&&!B.animated||o===n&&!o.animated)&&(hn=null),!s.dragoverBubble&&!t.rootEl&&o!==document&&(B.parentNode[rt]._isOutsideThisEl(t.target),!J&&_t(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),h=!0}function I(){pt=je(B),kt=je(B,s.draggable),it({sortable:m,name:"change",toEl:n,newIndex:pt,newDraggableIndex:kt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=It(o,s.draggable,n,!0),v("dragOver"),Z.eventCanceled)return h;if(B.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||m._ignoreWhileAnimating===o)return y(!1);if(Ur=!1,c&&!s.disabled&&(f?u||(r=$e!==Me):Qe===this||(this.lastPutMode=dr.checkPull(this,c,B,t))&&l.checkPut(this,c,B,t))){if(d=this._getDirection(t,o)==="vertical",i=Le(B),v("dragOverValid"),Z.eventCanceled)return h;if(r)return $e=Me,g(),this._hideClone(),v("revert"),Z.eventCanceled||(qt?Me.insertBefore(B,qt):Me.appendChild(B)),y(!0);var S=Oi(n,s.draggable);if(!S||du(t,d,this)&&!S.animated){if(S===B)return y(!1);if(S&&n===t.target&&(o=S),o&&(a=Le(o)),mr(Me,n,B,i,o,a,t,!!o)!==!1)return g(),n.appendChild(B),$e=n,I(),y(!0)}else if(S&&fu(t,d,this)){var N=Cn(n,0,s,!0);if(N===B)return y(!1);if(o=N,a=Le(o),mr(Me,n,B,i,o,a,t,!1)!==!1)return g(),n.insertBefore(B,N),$e=n,I(),y(!0)}else if(o.parentNode===n){a=Le(o);var C=0,j,V=B.parentNode!==n,O=!au(B.animated&&B.toRect||i,o.animated&&o.toRect||a,d),L=d?"top":"left",U=Qi(o,"top","top")||Qi(B,"top","top"),k=U?U.scrollTop:void 0;hn!==o&&(j=a[L],zn=!1,pr=!O&&s.invertSwap||V),C=pu(t,o,a,d,O?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,pr,hn===o);var M;if(C!==0){var E=je(B);do E-=C,M=$e.children[E];while(M&&(G(M,"display")==="none"||M===ce))}if(C===0||M===o)return y(!1);hn=o,Yn=C;var P=o.nextElementSibling,w=!1;w=C===1;var F=mr(Me,n,B,i,o,a,t,w);if(F!==!1)return(F===1||F===-1)&&(w=F===1),Vo=!0,setTimeout(uu,30),g(),w&&!P?n.appendChild(B):o.parentNode.insertBefore(B,w?P:o),U&&ms(U,0,k-U.scrollTop),$e=B.parentNode,j!==void 0&&!pr&&(Ar=Math.abs(j-Le(o)[L])),I(),y(!0)}if(n.contains(B))return y(!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",_t),de(document,"mousemove",_t),de(document,"touchmove",_t)},_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(pt=je(B),kt=je(B,o.draggable),lt("drop",this,{evt:t}),$e=B&&B.parentNode,pt=je(B),kt=je(B,o.draggable),Z.eventCanceled){this._nulling();return}vn=!1,pr=!1,zn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fo(this.cloneId),Fo(this._dragStartId),this.nativeDraggable&&(de(document,"drop",this),de(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Hn&&G(document.body,"user-select",""),G(B,"transform",""),t&&(Bn&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),ce&&ce.parentNode&&ce.parentNode.removeChild(ce),(Me===$e||Qe&&Qe.lastPutMode!=="clone")&&Ue&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),B&&(this.nativeDraggable&&de(B,"dragend",this),To(B),B.style["will-change"]="",Bn&&!vn&&we(B,Qe?Qe.options.ghostClass:this.options.ghostClass,!1),we(B,this.options.chosenClass,!1),it({sortable:this,name:"unchoose",toEl:$e,newIndex:null,newDraggableIndex:null,originalEvent:t}),Me!==$e?(pt>=0&&(it({rootEl:$e,name:"add",toEl:$e,fromEl:Me,originalEvent:t}),it({sortable:this,name:"remove",toEl:$e,originalEvent:t}),it({rootEl:$e,name:"sort",toEl:$e,fromEl:Me,originalEvent:t}),it({sortable:this,name:"sort",toEl:$e,originalEvent:t})),Qe&&Qe.save()):pt!==yn&&pt>=0&&(it({sortable:this,name:"update",toEl:$e,originalEvent:t}),it({sortable:this,name:"sort",toEl:$e,originalEvent:t})),Z.active&&((pt==null||pt===-1)&&(pt=yn,kt=Wn),it({sortable:this,name:"end",toEl:$e,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){lt("nulling",this),Me=B=$e=ce=qt=Ue=Cr=Xt=Qt=bt=Bn=pt=kt=yn=Wn=hn=Yn=Qe=dr=Z.dragged=Z.ghost=Z.clone=Z.active=null,Br.forEach(function(t){t.checked=!0}),Br.length=Eo=So=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":B&&(this._onDragOver(t),cu(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,i=0,a=o.length,r=this.options;i<a;i++)n=o[i],It(n,r.draggable,this.el,!1)&&t.push(n.getAttribute(r.dataIdAttr)||mu(n));return t},sort:function(t,n){var o={},i=this.el;this.toArray().forEach(function(a,r){var s=i.children[r];It(s,this.options.draggable,i,!1)&&(o[a]=s)},this),n&&this.captureAnimationState(),t.forEach(function(a){o[a]&&(i.removeChild(o[a]),i.appendChild(o[a]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return It(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var i=sr.modifyOption(this,t,n);typeof i<"u"?o[t]=i:o[t]=n,t==="group"&&ys(o)},destroy:function(){lt("destroy",this);var t=this.el;t[rt]=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(),jr.splice(jr.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Xt){if(lt("hideClone",this),Z.eventCanceled)return;G(Ue,"display","none"),this.options.removeCloneOnHide&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),Xt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Xt){if(lt("showClone",this),Z.eventCanceled)return;B.parentNode==Me&&!this.options.group.revertClone?Me.insertBefore(Ue,B):qt?Me.insertBefore(Ue,qt):Me.appendChild(Ue),this.options.group.revertClone&&this.animate(B,Ue),G(Ue,"display",""),Xt=!1}}};function cu(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function mr(e,t,n,o,i,a,r,s){var l,c=e[rt],f=c.options.onMove,u;return window.CustomEvent&&!$t&&!ar?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=i||t,l.relatedRect=a||Le(t),l.willInsertAfter=s,l.originalEvent=r,e.dispatchEvent(l),f&&(u=f.call(c,l,r)),u}function To(e){e.draggable=!1}function uu(){Vo=!1}function fu(e,t,n){var o=Le(Cn(n.el,0,n.options,!0)),i=10;return t?e.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}function du(e,t,n){var o=Le(Oi(n.el,n.options.draggable)),i=10;return t?e.clientX>o.right+i||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+i}function pu(e,t,n,o,i,a,r,s){var l=o?e.clientY:e.clientX,c=o?n.height:n.width,f=o?n.top:n.left,u=o?n.bottom:n.right,p=!1;if(!r){if(s&&Ar<c*i){if(!zn&&(Yn===1?l>f+c*a/2:l<u-c*a/2)&&(zn=!0),zn)p=!0;else if(Yn===1?l<f+Ar:l>u-Ar)return-Yn}else if(l>f+c*(1-i)/2&&l<u-c*(1-i)/2)return hu(t)}return p=p||r,p&&(l<f+c*a/2||l>u-c*a/2)?l>f+c/2?1:-1:0}function hu(e){return je(B)<je(e)?1:-1}function mu(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 vu(e){Br.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Br.push(o)}}function xr(e){return setTimeout(e,0)}function Fo(e){return clearTimeout(e)}lo&&me(document,"touchmove",function(e){(Z.active||vn)&&e.cancelable&&e.preventDefault()});Z.utils={on:me,off:de,css:G,find:ps,is:function(t,n){return!!It(t,n,t,!1)},extend:qc,throttle:hs,closest:It,toggleClass:we,clone:Ii,index:je,nextTick:xr,cancelNextTick:Fo,detectDirection:gs,getChild:Cn};Z.get=function(e){return e[rt]};Z.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&&(Z.utils=xt(xt({},Z.utils),o.utils)),sr.mount(o)})};Z.create=function(e,t){return new Z(e,t)};Z.version=Jc;var We=[],kn,$o,Uo=!1,Oo,Io,kr,Xn;function gu(){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?me(document,"dragover",this._handleAutoScroll):this.options.supportPointer?me(document,"pointermove",this._handleFallbackAutoScroll):o.touches?me(document,"touchmove",this._handleFallbackAutoScroll):me(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)),na(),Pr(),eu()},nulling:function(){kr=$o=kn=Uo=Xn=Oo=Io=null,We.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,a=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(a,r);if(kr=n,o||this.options.forceAutoScrollFallback||ar||$t||Hn){No(n,this.options,s,o);var l=Ht(s,!0);Uo&&(!Xn||a!==Oo||r!==Io)&&(Xn&&na(),Xn=setInterval(function(){var c=Ht(document.elementFromPoint(a,r),!0);c!==l&&(l=c,Pr()),No(n,i.options,c,o)},10),Oo=a,Io=r)}else{if(!this.options.bubbleScroll||Ht(s,!0)===At()){Pr();return}No(n,this.options,Ht(s,!1),!1)}}},Et(e,{pluginName:"scroll",initializeByDefault:!0})}function Pr(){We.forEach(function(e){clearInterval(e.pid)}),We=[]}function na(){clearInterval(Xn)}var No=hs(function(e,t,n,o){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,s=t.scrollSpeed,l=At(),c=!1,f;$o!==n&&($o=n,Pr(),kn=t.scroll,f=t.scrollFn,kn===!0&&(kn=Ht(n,!0)));var u=0,p=kn;do{var d=p,m=Le(d),h=m.top,v=m.bottom,g=m.left,y=m.right,I=m.width,S=m.height,N=void 0,C=void 0,j=d.scrollWidth,V=d.scrollHeight,O=G(d),L=d.scrollLeft,U=d.scrollTop;d===l?(N=I<j&&(O.overflowX==="auto"||O.overflowX==="scroll"||O.overflowX==="visible"),C=S<V&&(O.overflowY==="auto"||O.overflowY==="scroll"||O.overflowY==="visible")):(N=I<j&&(O.overflowX==="auto"||O.overflowX==="scroll"),C=S<V&&(O.overflowY==="auto"||O.overflowY==="scroll"));var k=N&&(Math.abs(y-i)<=r&&L+I<j)-(Math.abs(g-i)<=r&&!!L),M=C&&(Math.abs(v-a)<=r&&U+S<V)-(Math.abs(h-a)<=r&&!!U);if(!We[u])for(var E=0;E<=u;E++)We[E]||(We[E]={});(We[u].vx!=k||We[u].vy!=M||We[u].el!==d)&&(We[u].el=d,We[u].vx=k,We[u].vy=M,clearInterval(We[u].pid),(k!=0||M!=0)&&(c=!0,We[u].pid=setInterval((function(){o&&this.layer===0&&Z.active._onTouchMove(kr);var P=We[this.layer].vy?We[this.layer].vy*s:0,w=We[this.layer].vx?We[this.layer].vx*s:0;typeof f=="function"&&f.call(Z.dragged.parentNode[rt],w,P,e,kr,We[this.layer].el)!=="continue"||ms(We[this.layer].el,w,P)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==l&&(p=Ht(p,!1)));Uo=c}},30),bs=function(t){var n=t.originalEvent,o=t.putSortable,i=t.dragEl,a=t.activeSortable,r=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var c=o||a;s();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(f.clientX,f.clientY);l(),c&&!c.el.contains(u)&&(r("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function Ni(){}Ni.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 i=Cn(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:bs};Et(Ni,{pluginName:"revertOnSpill"});function Ci(){}Ci.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:bs};Et(Ci,{pluginName:"removeOnSpill"});var gt;function yu(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var o=n.dragEl;gt=o},dragOverValid:function(n){var o=n.completed,i=n.target,a=n.onMove,r=n.activeSortable,s=n.changed,l=n.cancel;if(r.options.swap){var c=this.sortable.el,f=this.options;if(i&&i!==c){var u=gt;a(i)!==!1?(we(i,f.swapClass,!0),gt=i):gt=null,u&&u!==gt&&we(u,f.swapClass,!1)}s(),o(!0),l()}},drop:function(n){var o=n.activeSortable,i=n.putSortable,a=n.dragEl,r=i||this.sortable,s=this.options;gt&&we(gt,s.swapClass,!1),gt&&(s.swap||i&&i.options.swap)&&a!==gt&&(r.captureAnimationState(),r!==o&&o.captureAnimationState(),Eu(a,gt),r.animateAll(),r!==o&&o.animateAll())},nulling:function(){gt=null}},Et(e,{pluginName:"swap",eventProperties:function(){return{swapItem:gt}}})}function Eu(e,t){var n=e.parentNode,o=t.parentNode,i,a;!n||!o||n.isEqualNode(t)||o.isEqualNode(e)||(i=je(e),a=je(t),n.isEqualNode(o)&&i<a&&a++,n.insertBefore(t,n.children[i]),o.insertBefore(e,o.children[a]))}var ae=[],dt=[],Fn,Tt,$n=!1,ct=!1,mn=!1,Ce,Un,vr;function Su(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?me(document,"pointerup",this._deselectMultiDrag):(me(document,"mouseup",this._deselectMultiDrag),me(document,"touchend",this._deselectMultiDrag)),me(document,"keydown",this._checkKeyDown),me(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,a){var r="";ae.length&&Tt===t?ae.forEach(function(s,l){r+=(l?", ":"")+s.textContent}):r=a.textContent,i.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var o=n.dragEl;Ce=o},delayEnded:function(){this.isMultiDrag=~ae.indexOf(Ce)},setupClone:function(n){var o=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var a=0;a<ae.length;a++)dt.push(Ii(ae[a])),dt[a].sortableIndex=ae[a].sortableIndex,dt[a].draggable=!1,dt[a].style["will-change"]="",we(dt[a],this.options.selectedClass,!1),ae[a]===Ce&&we(dt[a],this.options.chosenClass,!1);o._hideClone(),i()}},clone:function(n){var o=n.sortable,i=n.rootEl,a=n.dispatchSortableEvent,r=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ae.length&&Tt===o&&(ra(!0,i),a("clone"),r()))},showClone:function(n){var o=n.cloneNowShown,i=n.rootEl,a=n.cancel;this.isMultiDrag&&(ra(!1,i),dt.forEach(function(r){G(r,"display","")}),o(),vr=!1,a())},hideClone:function(n){var o=this;n.sortable;var i=n.cloneNowHidden,a=n.cancel;this.isMultiDrag&&(dt.forEach(function(r){G(r,"display","none"),o.options.removeCloneOnHide&&r.parentNode&&r.parentNode.removeChild(r)}),i(),vr=!0,a())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Tt&&Tt.multiDrag._deselectMultiDrag(),ae.forEach(function(o){o.sortableIndex=je(o)}),ae=ae.sort(function(o,i){return o.sortableIndex-i.sortableIndex}),mn=!0},dragStarted:function(n){var o=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){ae.forEach(function(r){r!==Ce&&G(r,"position","absolute")});var a=Le(Ce,!1,!0,!0);ae.forEach(function(r){r!==Ce&&Zi(r,a)}),ct=!0,$n=!0}i.animateAll(function(){ct=!1,$n=!1,o.options.animation&&ae.forEach(function(r){go(r)}),o.options.sort&&gr()})}},dragOver:function(n){var o=n.target,i=n.completed,a=n.cancel;ct&&~ae.indexOf(o)&&(i(!1),a())},revert:function(n){var o=n.fromSortable,i=n.rootEl,a=n.sortable,r=n.dragRect;ae.length>1&&(ae.forEach(function(s){a.addAnimationState({target:s,rect:ct?Le(s):r}),go(s),s.fromRect=r,o.removeAnimationState(s)}),ct=!1,bu(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var o=n.sortable,i=n.isOwner,a=n.insertion,r=n.activeSortable,s=n.parentEl,l=n.putSortable,c=this.options;if(a){if(i&&r._hideClone(),$n=!1,c.animation&&ae.length>1&&(ct||!i&&!r.options.sort&&!l)){var f=Le(Ce,!1,!0,!0);ae.forEach(function(p){p!==Ce&&(Zi(p,f),s.appendChild(p))}),ct=!0}if(!i)if(ct||gr(),ae.length>1){var u=vr;r._showClone(o),r.options.animation&&!vr&&u&&dt.forEach(function(p){r.addAnimationState({target:p,rect:Un}),p.fromRect=Un,p.thisAnimationDuration=null})}else r._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,i=n.isOwner,a=n.activeSortable;if(ae.forEach(function(s){s.thisAnimationDuration=null}),a.options.animation&&!i&&a.multiDrag.isMultiDrag){Un=Et({},o);var r=rn(Ce,!0);Un.top-=r.f,Un.left-=r.e}},dragOverAnimationComplete:function(){ct&&(ct=!1,gr())},drop:function(n){var o=n.originalEvent,i=n.rootEl,a=n.parentEl,r=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,c=n.putSortable,f=c||this.sortable;if(o){var u=this.options,p=a.children;if(!mn)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),we(Ce,u.selectedClass,!~ae.indexOf(Ce)),~ae.indexOf(Ce))ae.splice(ae.indexOf(Ce),1),Fn=null,jn({sortable:r,rootEl:i,name:"deselect",targetEl:Ce});else{if(ae.push(Ce),jn({sortable:r,rootEl:i,name:"select",targetEl:Ce}),o.shiftKey&&Fn&&r.el.contains(Fn)){var d=je(Fn),m=je(Ce);if(~d&&~m&&d!==m){var h,v;for(m>d?(v=d,h=m):(v=m,h=d+1);v<h;v++)~ae.indexOf(p[v])||(we(p[v],u.selectedClass,!0),ae.push(p[v]),jn({sortable:r,rootEl:i,name:"select",targetEl:p[v]}))}}else Fn=Ce;Tt=f}if(mn&&this.isMultiDrag){if(ct=!1,(a[rt].options.sort||a!==i)&&ae.length>1){var g=Le(Ce),y=je(Ce,":not(."+this.options.selectedClass+")");if(!$n&&u.animation&&(Ce.thisAnimationDuration=null),f.captureAnimationState(),!$n&&(u.animation&&(Ce.fromRect=g,ae.forEach(function(S){if(S.thisAnimationDuration=null,S!==Ce){var N=ct?Le(S):g;S.fromRect=N,f.addAnimationState({target:S,rect:N})}})),gr(),ae.forEach(function(S){p[y]?a.insertBefore(S,p[y]):a.appendChild(S),y++}),l===je(Ce))){var I=!1;ae.forEach(function(S){if(S.sortableIndex!==je(S)){I=!0;return}}),I&&s("update")}ae.forEach(function(S){go(S)}),f.animateAll()}Tt=f}(i===a||c&&c.lastPutMode!=="clone")&&dt.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=mn=!1,dt.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 mn<"u"&&mn)&&Tt===this.sortable&&!(n&&It(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ae.length;){var o=ae[0];we(o,this.options.selectedClass,!1),ae.shift(),jn({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)}},Et(e,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[rt];!o||!o.options.multiDrag||~ae.indexOf(n)||(Tt&&Tt!==o&&(Tt.multiDrag._deselectMultiDrag(),Tt=o),we(n,o.options.selectedClass,!0),ae.push(n))},deselect:function(n){var o=n.parentNode[rt],i=ae.indexOf(n);!o||!o.options.multiDrag||!~i||(we(n,o.options.selectedClass,!1),ae.splice(i,1))}},eventProperties:function(){var n=this,o=[],i=[];return ae.forEach(function(a){o.push({multiDragElement:a,index:a.sortableIndex});var r;ct&&a!==Ce?r=-1:ct?r=je(a,":not(."+n.options.selectedClass+")"):r=je(a),i.push({multiDragElement:a,index:r})}),{items:Hc(ae),clones:[].concat(dt),oldIndicies:o,newIndicies:i}},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 bu(e,t){ae.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function ra(e,t){dt.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function gr(){ae.forEach(function(e){e!==Ce&&e.parentNode&&e.parentNode.removeChild(e)})}Z.mount(new gu);Z.mount(Ci,Ni);const Tu=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:Su,Sortable:Z,Swap:yu,default:Z},Symbol.toStringTag,{value:"Module"})),Ou=Kr(Tu);var Iu=yr.exports,oa;function Nu(){return oa||(oa=1,(function(e,t){(function(o,i){e.exports=i(Bc(),Ou)})(typeof self<"u"?self:Iu,function(n,o){return(function(i){var a={};function r(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,r),l.l=!0,l.exports}return r.m=i,r.c=a,r.d=function(s,l,c){r.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:c})},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 c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var f in s)r.d(c,f,(function(u){return s[u]}).bind(null,f));return c},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(i,a,r){var s=r("b622"),l=s("toStringTag"),c={};c[l]="z",i.exports=String(c)==="[object z]"}),"0366":(function(i,a,r){var s=r("1c0b");i.exports=function(l,c,f){if(s(l),c===void 0)return l;switch(f){case 0:return function(){return l.call(c)};case 1:return function(u){return l.call(c,u)};case 2:return function(u,p){return l.call(c,u,p)};case 3:return function(u,p,d){return l.call(c,u,p,d)}}return function(){return l.apply(c,arguments)}}}),"057f":(function(i,a,r){var s=r("fc6a"),l=r("241c").f,c={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(p){try{return l(p)}catch{return f.slice()}};i.exports.f=function(d){return f&&c.call(d)=="[object Window]"?u(d):l(s(d))}}),"06cf":(function(i,a,r){var s=r("83ab"),l=r("d1e7"),c=r("5c6c"),f=r("fc6a"),u=r("c04e"),p=r("5135"),d=r("0cfb"),m=Object.getOwnPropertyDescriptor;a.f=s?m:function(v,g){if(v=f(v),g=u(g,!0),d)try{return m(v,g)}catch{}if(p(v,g))return c(!l.f.call(v,g),v[g])}}),"0cfb":(function(i,a,r){var s=r("83ab"),l=r("d039"),c=r("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(i,a,r){var s=r("23e7"),l=r("d58f").left,c=r("a640"),f=r("ae40"),u=c("reduce"),p=f("reduce",{1:0});s({target:"Array",proto:!0,forced:!u||!p},{reduce:function(m){return l(this,m,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(i,a,r){var s=r("c6b6"),l=r("9263");i.exports=function(c,f){var u=c.exec;if(typeof u=="function"){var p=u.call(c,f);if(typeof p!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return p}if(s(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,f)}}),"159b":(function(i,a,r){var s=r("da84"),l=r("fdbc"),c=r("17c2"),f=r("9112");for(var u in l){var p=s[u],d=p&&p.prototype;if(d&&d.forEach!==c)try{f(d,"forEach",c)}catch{d.forEach=c}}}),"17c2":(function(i,a,r){var s=r("b727").forEach,l=r("a640"),c=r("ae40"),f=l("forEach"),u=c("forEach");i.exports=!f||!u?function(d){return s(this,d,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(i,a,r){var s=r("d066");i.exports=s("document","documentElement")}),"1c0b":(function(i,a){i.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}}),"1c7e":(function(i,a,r){var s=r("b622"),l=s("iterator"),c=!1;try{var f=0,u={next:function(){return{done:!!f++}},return:function(){c=!0}};u[l]=function(){return this},Array.from(u,function(){throw 2})}catch{}i.exports=function(p,d){if(!d&&!c)return!1;var m=!1;try{var h={};h[l]=function(){return{next:function(){return{done:m=!0}}}},p(h)}catch{}return m}}),"1d80":(function(i,a){i.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}}),"1dde":(function(i,a,r){var s=r("d039"),l=r("b622"),c=r("2d00"),f=l("species");i.exports=function(u){return c>=51||!s(function(){var p=[],d=p.constructor={};return d[f]=function(){return{foo:1}},p[u](Boolean).foo!==1})}}),"23cb":(function(i,a,r){var s=r("a691"),l=Math.max,c=Math.min;i.exports=function(f,u){var p=s(f);return p<0?l(p+u,0):c(p,u)}}),"23e7":(function(i,a,r){var s=r("da84"),l=r("06cf").f,c=r("9112"),f=r("6eeb"),u=r("ce4e"),p=r("e893"),d=r("94ca");i.exports=function(m,h){var v=m.target,g=m.global,y=m.stat,I,S,N,C,j,V;if(g?S=s:y?S=s[v]||u(v,{}):S=(s[v]||{}).prototype,S)for(N in h){if(j=h[N],m.noTargetGet?(V=l(S,N),C=V&&V.value):C=S[N],I=d(g?N:v+(y?".":"#")+N,m.forced),!I&&C!==void 0){if(typeof j==typeof C)continue;p(j,C)}(m.sham||C&&C.sham)&&c(j,"sham",!0),f(S,N,j,m)}}}),"241c":(function(i,a,r){var s=r("ca84"),l=r("7839"),c=l.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(u){return s(u,c)}}),"25f0":(function(i,a,r){var s=r("6eeb"),l=r("825a"),c=r("d039"),f=r("ad6d"),u="toString",p=RegExp.prototype,d=p[u],m=c(function(){return d.call({source:"a",flags:"b"})!="/a/b"}),h=d.name!=u;(m||h)&&s(RegExp.prototype,u,function(){var g=l(this),y=String(g.source),I=g.flags,S=String(I===void 0&&g instanceof RegExp&&!("flags"in p)?f.call(g):I);return"/"+y+"/"+S},{unsafe:!0})}),"2ca0":(function(i,a,r){var s=r("23e7"),l=r("06cf").f,c=r("50c4"),f=r("5a34"),u=r("1d80"),p=r("ab13"),d=r("c430"),m="".startsWith,h=Math.min,v=p("startsWith"),g=!d&&!v&&!!(function(){var y=l(String.prototype,"startsWith");return y&&!y.writable})();s({target:"String",proto:!0,forced:!g&&!v},{startsWith:function(I){var S=String(u(this));f(I);var N=c(h(arguments.length>1?arguments[1]:void 0,S.length)),C=String(I);return m?m.call(S,C,N):S.slice(N,N+C.length)===C}})}),"2d00":(function(i,a,r){var s=r("da84"),l=r("342f"),c=s.process,f=c&&c.versions,u=f&&f.v8,p,d;u?(p=u.split("."),d=p[0]+p[1]):l&&(p=l.match(/Edge\/(\d+)/),(!p||p[1]>=74)&&(p=l.match(/Chrome\/(\d+)/),p&&(d=p[1]))),i.exports=d&&+d}),"342f":(function(i,a,r){var s=r("d066");i.exports=s("navigator","userAgent")||""}),"35a1":(function(i,a,r){var s=r("f5df"),l=r("3f8c"),c=r("b622"),f=c("iterator");i.exports=function(u){if(u!=null)return u[f]||u["@@iterator"]||l[s(u)]}}),"37e8":(function(i,a,r){var s=r("83ab"),l=r("9bf2"),c=r("825a"),f=r("df75");i.exports=s?Object.defineProperties:function(p,d){c(p);for(var m=f(d),h=m.length,v=0,g;h>v;)l.f(p,g=m[v++],d[g]);return p}}),"3bbe":(function(i,a,r){var s=r("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(i,a,r){var s=r("6547").charAt,l=r("69f3"),c=r("7dd0"),f="String Iterator",u=l.set,p=l.getterFor(f);c(String,"String",function(d){u(this,{type:f,string:String(d),index:0})},function(){var m=p(this),h=m.string,v=m.index,g;return v>=h.length?{value:void 0,done:!0}:(g=s(h,v),m.index+=g.length,{value:g,done:!1})})}),"3f8c":(function(i,a){i.exports={}}),4160:(function(i,a,r){var s=r("23e7"),l=r("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(i,a,r){var s=r("da84");i.exports=s}),"44ad":(function(i,a,r){var s=r("d039"),l=r("c6b6"),c="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?c.call(f,""):Object(f)}:Object}),"44d2":(function(i,a,r){var s=r("b622"),l=r("7c73"),c=r("9bf2"),f=s("unscopables"),u=Array.prototype;u[f]==null&&c.f(u,f,{configurable:!0,value:l(null)}),i.exports=function(p){u[f][p]=!0}}),"44e7":(function(i,a,r){var s=r("861d"),l=r("c6b6"),c=r("b622"),f=c("match");i.exports=function(u){var p;return s(u)&&((p=u[f])!==void 0?!!p:l(u)=="RegExp")}}),4930:(function(i,a,r){var s=r("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})}),"4d64":(function(i,a,r){var s=r("fc6a"),l=r("50c4"),c=r("23cb"),f=function(u){return function(p,d,m){var h=s(p),v=l(h.length),g=c(m,v),y;if(u&&d!=d){for(;v>g;)if(y=h[g++],y!=y)return!0}else for(;v>g;g++)if((u||g in h)&&h[g]===d)return u||g||0;return!u&&-1}};i.exports={includes:f(!0),indexOf:f(!1)}}),"4de4":(function(i,a,r){var s=r("23e7"),l=r("b727").filter,c=r("1dde"),f=r("ae40"),u=c("filter"),p=f("filter");s({target:"Array",proto:!0,forced:!u||!p},{filter:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(i,a,r){var s=r("0366"),l=r("7b0b"),c=r("9bdd"),f=r("e95a"),u=r("50c4"),p=r("8418"),d=r("35a1");i.exports=function(h){var v=l(h),g=typeof this=="function"?this:Array,y=arguments.length,I=y>1?arguments[1]:void 0,S=I!==void 0,N=d(v),C=0,j,V,O,L,U,k;if(S&&(I=s(I,y>2?arguments[2]:void 0,2)),N!=null&&!(g==Array&&f(N)))for(L=N.call(v),U=L.next,V=new g;!(O=U.call(L)).done;C++)k=S?c(L,I,[O.value,C],!0):O.value,p(V,C,k);else for(j=u(v.length),V=new g(j);j>C;C++)k=S?I(v[C],C):v[C],p(V,C,k);return V.length=C,V}}),"4fad":(function(i,a,r){var s=r("23e7"),l=r("6f53").entries;s({target:"Object",stat:!0},{entries:function(f){return l(f)}})}),"50c4":(function(i,a,r){var s=r("a691"),l=Math.min;i.exports=function(c){return c>0?l(s(c),9007199254740991):0}}),5135:(function(i,a){var r={}.hasOwnProperty;i.exports=function(s,l){return r.call(s,l)}}),5319:(function(i,a,r){var s=r("d784"),l=r("825a"),c=r("7b0b"),f=r("50c4"),u=r("a691"),p=r("1d80"),d=r("8aa5"),m=r("14c3"),h=Math.max,v=Math.min,g=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,I=/\$([$&'`]|\d\d?)/g,S=function(N){return N===void 0?N:String(N)};s("replace",2,function(N,C,j,V){var O=V.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=V.REPLACE_KEEPS_$0,U=O?"$":"$0";return[function(E,P){var w=p(this),F=E==null?void 0:E[N];return F!==void 0?F.call(E,w,P):C.call(String(w),E,P)},function(M,E){if(!O&&L||typeof E=="string"&&E.indexOf(U)===-1){var P=j(C,M,this,E);if(P.done)return P.value}var w=l(M),F=String(this),J=typeof E=="function";J||(E=String(E));var te=w.global;if(te){var ie=w.unicode;w.lastIndex=0}for(var pe=[];;){var ye=m(w,F);if(ye===null||(pe.push(ye),!te))break;var Oe=String(ye[0]);Oe===""&&(w.lastIndex=d(F,f(w.lastIndex),ie))}for(var K="",R=0,fe=0;fe<pe.length;fe++){ye=pe[fe];for(var Y=String(ye[0]),Ie=h(v(u(ye.index),F.length),0),be=[],Je=1;Je<ye.length;Je++)be.push(S(ye[Je]));var Re=ye.groups;if(J){var Ve=[Y].concat(be,Ie,F);Re!==void 0&&Ve.push(Re);var Ne=String(E.apply(void 0,Ve))}else Ne=k(Y,F,Ie,be,Re,E);Ie>=R&&(K+=F.slice(R,Ie)+Ne,R=Ie+Y.length)}return K+F.slice(R)}];function k(M,E,P,w,F,J){var te=P+M.length,ie=w.length,pe=I;return F!==void 0&&(F=c(F),pe=y),C.call(J,pe,function(ye,Oe){var K;switch(Oe.charAt(0)){case"$":return"$";case"&":return M;case"`":return E.slice(0,P);case"'":return E.slice(te);case"<":K=F[Oe.slice(1,-1)];break;default:var R=+Oe;if(R===0)return ye;if(R>ie){var fe=g(R/10);return fe===0?ye:fe<=ie?w[fe-1]===void 0?Oe.charAt(1):w[fe-1]+Oe.charAt(1):ye}K=w[R-1]}return K===void 0?"":K})}})}),5692:(function(i,a,r){var s=r("c430"),l=r("c6cd");(i.exports=function(c,f){return l[c]||(l[c]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,a,r){var s=r("d066"),l=r("241c"),c=r("7418"),f=r("825a");i.exports=s("Reflect","ownKeys")||function(p){var d=l.f(f(p)),m=c.f;return m?d.concat(m(p)):d}}),"5a34":(function(i,a,r){var s=r("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(i,a){i.exports=function(r,s){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:s}}}),"5db7":(function(i,a,r){var s=r("23e7"),l=r("a2bf"),c=r("7b0b"),f=r("50c4"),u=r("1c0b"),p=r("65f0");s({target:"Array",proto:!0},{flatMap:function(m){var h=c(this),v=f(h.length),g;return u(m),g=p(h,0),g.length=l(g,h,h,v,0,1,m,arguments.length>1?arguments[1]:void 0),g}})}),6547:(function(i,a,r){var s=r("a691"),l=r("1d80"),c=function(f){return function(u,p){var d=String(l(u)),m=s(p),h=d.length,v,g;return m<0||m>=h?f?"":void 0:(v=d.charCodeAt(m),v<55296||v>56319||m+1===h||(g=d.charCodeAt(m+1))<56320||g>57343?f?d.charAt(m):v:f?d.slice(m,m+2):(v-55296<<10)+(g-56320)+65536)}};i.exports={codeAt:c(!1),charAt:c(!0)}}),"65f0":(function(i,a,r){var s=r("861d"),l=r("e8b5"),c=r("b622"),f=c("species");i.exports=function(u,p){var d;return l(u)&&(d=u.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:s(d)&&(d=d[f],d===null&&(d=void 0))),new(d===void 0?Array:d)(p===0?0:p)}}),"69f3":(function(i,a,r){var s=r("7f9a"),l=r("da84"),c=r("861d"),f=r("9112"),u=r("5135"),p=r("f772"),d=r("d012"),m=l.WeakMap,h,v,g,y=function(O){return g(O)?v(O):h(O,{})},I=function(O){return function(L){var U;if(!c(L)||(U=v(L)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return U}};if(s){var S=new m,N=S.get,C=S.has,j=S.set;h=function(O,L){return j.call(S,O,L),L},v=function(O){return N.call(S,O)||{}},g=function(O){return C.call(S,O)}}else{var V=p("state");d[V]=!0,h=function(O,L){return f(O,V,L),L},v=function(O){return u(O,V)?O[V]:{}},g=function(O){return u(O,V)}}i.exports={set:h,get:v,has:g,enforce:y,getterFor:I}}),"6eeb":(function(i,a,r){var s=r("da84"),l=r("9112"),c=r("5135"),f=r("ce4e"),u=r("8925"),p=r("69f3"),d=p.get,m=p.enforce,h=String(String).split("String");(i.exports=function(v,g,y,I){var S=I?!!I.unsafe:!1,N=I?!!I.enumerable:!1,C=I?!!I.noTargetGet:!1;if(typeof y=="function"&&(typeof g=="string"&&!c(y,"name")&&l(y,"name",g),m(y).source=h.join(typeof g=="string"?g:"")),v===s){N?v[g]=y:f(g,y);return}else S?!C&&v[g]&&(N=!0):delete v[g];N?v[g]=y:l(v,g,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&d(this).source||u(this)})}),"6f53":(function(i,a,r){var s=r("83ab"),l=r("df75"),c=r("fc6a"),f=r("d1e7").f,u=function(p){return function(d){for(var m=c(d),h=l(m),v=h.length,g=0,y=[],I;v>g;)I=h[g++],(!s||f.call(m,I))&&y.push(p?[I,m[I]]:m[I]);return y}};i.exports={entries:u(!0),values:u(!1)}}),"73d9":(function(i,a,r){var s=r("44d2");s("flatMap")}),7418:(function(i,a){a.f=Object.getOwnPropertySymbols}),"746f":(function(i,a,r){var s=r("428f"),l=r("5135"),c=r("e538"),f=r("9bf2").f;i.exports=function(u){var p=s.Symbol||(s.Symbol={});l(p,u)||f(p,u,{value:c.f(u)})}}),7839:(function(i,a){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,a,r){var s=r("1d80");i.exports=function(l){return Object(s(l))}}),"7c73":(function(i,a,r){var s=r("825a"),l=r("37e8"),c=r("7839"),f=r("d012"),u=r("1be4"),p=r("cc12"),d=r("f772"),m=">",h="<",v="prototype",g="script",y=d("IE_PROTO"),I=function(){},S=function(O){return h+g+m+O+h+"/"+g+m},N=function(O){O.write(S("")),O.close();var L=O.parentWindow.Object;return O=null,L},C=function(){var O=p("iframe"),L="java"+g+":",U;return O.style.display="none",u.appendChild(O),O.src=String(L),U=O.contentWindow.document,U.open(),U.write(S("document.F=Object")),U.close(),U.F},j,V=function(){try{j=document.domain&&new ActiveXObject("htmlfile")}catch{}V=j?N(j):C();for(var O=c.length;O--;)delete V[v][c[O]];return V()};f[y]=!0,i.exports=Object.create||function(L,U){var k;return L!==null?(I[v]=s(L),k=new I,I[v]=null,k[y]=L):k=V(),U===void 0?k:l(k,U)}}),"7dd0":(function(i,a,r){var s=r("23e7"),l=r("9ed3"),c=r("e163"),f=r("d2bb"),u=r("d44e"),p=r("9112"),d=r("6eeb"),m=r("b622"),h=r("c430"),v=r("3f8c"),g=r("ae93"),y=g.IteratorPrototype,I=g.BUGGY_SAFARI_ITERATORS,S=m("iterator"),N="keys",C="values",j="entries",V=function(){return this};i.exports=function(O,L,U,k,M,E,P){l(U,L,k);var w=function(fe){if(fe===M&&pe)return pe;if(!I&&fe in te)return te[fe];switch(fe){case N:return function(){return new U(this,fe)};case C:return function(){return new U(this,fe)};case j:return function(){return new U(this,fe)}}return function(){return new U(this)}},F=L+" Iterator",J=!1,te=O.prototype,ie=te[S]||te["@@iterator"]||M&&te[M],pe=!I&&ie||w(M),ye=L=="Array"&&te.entries||ie,Oe,K,R;if(ye&&(Oe=c(ye.call(new O)),y!==Object.prototype&&Oe.next&&(!h&&c(Oe)!==y&&(f?f(Oe,y):typeof Oe[S]!="function"&&p(Oe,S,V)),u(Oe,F,!0,!0),h&&(v[F]=V))),M==C&&ie&&ie.name!==C&&(J=!0,pe=function(){return ie.call(this)}),(!h||P)&&te[S]!==pe&&p(te,S,pe),v[L]=pe,M)if(K={values:w(C),keys:E?pe:w(N),entries:w(j)},P)for(R in K)(I||J||!(R in te))&&d(te,R,K[R]);else s({target:L,proto:!0,forced:I||J},K);return K}}),"7f9a":(function(i,a,r){var s=r("da84"),l=r("8925"),c=s.WeakMap;i.exports=typeof c=="function"&&/native code/.test(l(c))}),"825a":(function(i,a,r){var s=r("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(i,a,r){var s=r("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(i,a,r){var s=r("c04e"),l=r("9bf2"),c=r("5c6c");i.exports=function(f,u,p){var d=s(u);d in f?l.f(f,d,c(0,p)):f[d]=p}}),"861d":(function(i,a){i.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}}),8875:(function(i,a,r){var s,l,c;(function(f,u){l=[],s=u,c=typeof s=="function"?s.apply(a,l):s,c!==void 0&&(i.exports=c)})(typeof self<"u"?self:this,function(){function f(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(j){var p=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,m=p.exec(j.stack)||d.exec(j.stack),h=m&&m[1]||!1,v=m&&m[2]||!1,g=document.location.href.replace(document.location.hash,""),y,I,S,N=document.getElementsByTagName("script");h===g&&(y=document.documentElement.outerHTML,I=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),S=y.replace(I,"$1").trim());for(var C=0;C<N.length;C++)if(N[C].readyState==="interactive"||N[C].src===h||h===g&&N[C].innerHTML&&N[C].innerHTML.trim()===S)return N[C];return null}}return f})}),8925:(function(i,a,r){var s=r("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(c){return l.call(c)}),i.exports=s.inspectSource}),"8aa5":(function(i,a,r){var s=r("6547").charAt;i.exports=function(l,c,f){return c+(f?s(l,c).length:1)}}),"8bbf":(function(i,a){i.exports=n}),"90e3":(function(i,a){var r=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++r+s).toString(36)}}),9112:(function(i,a,r){var s=r("83ab"),l=r("9bf2"),c=r("5c6c");i.exports=s?function(f,u,p){return l.f(f,u,c(1,p))}:function(f,u,p){return f[u]=p,f}}),9263:(function(i,a,r){var s=r("ad6d"),l=r("9f7f"),c=RegExp.prototype.exec,f=String.prototype.replace,u=c,p=(function(){var v=/a/,g=/b*/g;return c.call(v,"a"),c.call(g,"a"),v.lastIndex!==0||g.lastIndex!==0})(),d=l.UNSUPPORTED_Y||l.BROKEN_CARET,m=/()??/.exec("")[1]!==void 0,h=p||m||d;h&&(u=function(g){var y=this,I,S,N,C,j=d&&y.sticky,V=s.call(y),O=y.source,L=0,U=g;return j&&(V=V.replace("y",""),V.indexOf("g")===-1&&(V+="g"),U=String(g).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&g[y.lastIndex-1]!==`
|
|
28
|
+
`)&&(O="(?: "+O+")",U=" "+U,L++),S=new RegExp("^(?:"+O+")",V)),m&&(S=new RegExp("^"+O+"$(?!\\s)",V)),p&&(I=y.lastIndex),N=c.call(j?S:y,U),j?N?(N.input=N.input.slice(L),N[0]=N[0].slice(L),N.index=y.lastIndex,y.lastIndex+=N[0].length):y.lastIndex=0:p&&N&&(y.lastIndex=y.global?N.index+N[0].length:I),m&&N&&N.length>1&&f.call(N[0],S,function(){for(C=1;C<arguments.length-2;C++)arguments[C]===void 0&&(N[C]=void 0)}),N}),i.exports=u}),"94ca":(function(i,a,r){var s=r("d039"),l=/#|\.prototype\./,c=function(m,h){var v=u[f(m)];return v==d?!0:v==p?!1:typeof h=="function"?s(h):!!h},f=c.normalize=function(m){return String(m).replace(l,".").toLowerCase()},u=c.data={},p=c.NATIVE="N",d=c.POLYFILL="P";i.exports=c}),"99af":(function(i,a,r){var s=r("23e7"),l=r("d039"),c=r("e8b5"),f=r("861d"),u=r("7b0b"),p=r("50c4"),d=r("8418"),m=r("65f0"),h=r("1dde"),v=r("b622"),g=r("2d00"),y=v("isConcatSpreadable"),I=9007199254740991,S="Maximum allowed index exceeded",N=g>=51||!l(function(){var O=[];return O[y]=!1,O.concat()[0]!==O}),C=h("concat"),j=function(O){if(!f(O))return!1;var L=O[y];return L!==void 0?!!L:c(O)},V=!N||!C;s({target:"Array",proto:!0,forced:V},{concat:function(L){var U=u(this),k=m(U,0),M=0,E,P,w,F,J;for(E=-1,w=arguments.length;E<w;E++)if(J=E===-1?U:arguments[E],j(J)){if(F=p(J.length),M+F>I)throw TypeError(S);for(P=0;P<F;P++,M++)P in J&&d(k,M,J[P])}else{if(M>=I)throw TypeError(S);d(k,M++,J)}return k.length=M,k}})}),"9bdd":(function(i,a,r){var s=r("825a");i.exports=function(l,c,f,u){try{return u?c(s(f)[0],f[1]):c(f)}catch(d){var p=l.return;throw p!==void 0&&s(p.call(l)),d}}}),"9bf2":(function(i,a,r){var s=r("83ab"),l=r("0cfb"),c=r("825a"),f=r("c04e"),u=Object.defineProperty;a.f=s?u:function(d,m,h){if(c(d),m=f(m,!0),c(h),l)try{return u(d,m,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(d[m]=h.value),d}}),"9ed3":(function(i,a,r){var s=r("ae93").IteratorPrototype,l=r("7c73"),c=r("5c6c"),f=r("d44e"),u=r("3f8c"),p=function(){return this};i.exports=function(d,m,h){var v=m+" Iterator";return d.prototype=l(s,{next:c(1,h)}),f(d,v,!1,!0),u[v]=p,d}}),"9f7f":(function(i,a,r){var s=r("d039");function l(c,f){return RegExp(c,f)}a.UNSUPPORTED_Y=s(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),a.BROKEN_CARET=s(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})}),a2bf:(function(i,a,r){var s=r("e8b5"),l=r("50c4"),c=r("0366"),f=function(u,p,d,m,h,v,g,y){for(var I=h,S=0,N=g?c(g,y,3):!1,C;S<m;){if(S in d){if(C=N?N(d[S],S,p):d[S],v>0&&s(C))I=f(u,p,C,l(C.length),I,v-1)-1;else{if(I>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[I]=C}I++}S++}return I};i.exports=f}),a352:(function(i,a){i.exports=o}),a434:(function(i,a,r){var s=r("23e7"),l=r("23cb"),c=r("a691"),f=r("50c4"),u=r("7b0b"),p=r("65f0"),d=r("8418"),m=r("1dde"),h=r("ae40"),v=m("splice"),g=h("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,I=Math.min,S=9007199254740991,N="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!v||!g},{splice:function(j,V){var O=u(this),L=f(O.length),U=l(j,L),k=arguments.length,M,E,P,w,F,J;if(k===0?M=E=0:k===1?(M=0,E=L-U):(M=k-2,E=I(y(c(V),0),L-U)),L+M-E>S)throw TypeError(N);for(P=p(O,E),w=0;w<E;w++)F=U+w,F in O&&d(P,w,O[F]);if(P.length=E,M<E){for(w=U;w<L-E;w++)F=w+E,J=w+M,F in O?O[J]=O[F]:delete O[J];for(w=L;w>L-E+M;w--)delete O[w-1]}else if(M>E)for(w=L-E;w>U;w--)F=w+E-1,J=w+M-1,F in O?O[J]=O[F]:delete O[J];for(w=0;w<M;w++)O[w+U]=arguments[w+2];return O.length=L-E+M,P}})}),a4d3:(function(i,a,r){var s=r("23e7"),l=r("da84"),c=r("d066"),f=r("c430"),u=r("83ab"),p=r("4930"),d=r("fdbf"),m=r("d039"),h=r("5135"),v=r("e8b5"),g=r("861d"),y=r("825a"),I=r("7b0b"),S=r("fc6a"),N=r("c04e"),C=r("5c6c"),j=r("7c73"),V=r("df75"),O=r("241c"),L=r("057f"),U=r("7418"),k=r("06cf"),M=r("9bf2"),E=r("d1e7"),P=r("9112"),w=r("6eeb"),F=r("5692"),J=r("f772"),te=r("d012"),ie=r("90e3"),pe=r("b622"),ye=r("e538"),Oe=r("746f"),K=r("d44e"),R=r("69f3"),fe=r("b727").forEach,Y=J("hidden"),Ie="Symbol",be="prototype",Je=pe("toPrimitive"),Re=R.set,Ve=R.getterFor(Ie),Ne=Object[be],Fe=l.Symbol,vt=c("JSON","stringify"),re=k.f,oe=M.f,Pt=L.f,co=E.f,St=F("symbols"),Ut=F("op-symbols"),fn=F("string-to-symbol-registry"),Pn=F("symbol-to-string-registry"),Dn=F("wks"),Rn=l.QObject,Mn=!Rn||!Rn[be]||!Rn[be].findChild,Ln=u&&m(function(){return j(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!=7})?function(ne,W,_){var ve=re(Ne,W);ve&&delete Ne[W],oe(ne,W,_),ve&&ne!==Ne&&oe(Ne,W,ve)}:oe,wn=function(ne,W){var _=St[ne]=j(Fe[be]);return Re(_,{type:Ie,tag:ne,description:W}),u||(_.description=W),_},T=d?function(ne){return typeof ne=="symbol"}:function(ne){return Object(ne)instanceof Fe},b=function(W,_,ve){W===Ne&&b(Ut,_,ve),y(W);var ge=N(_,!0);return y(ve),h(St,ge)?(ve.enumerable?(h(W,Y)&&W[Y][ge]&&(W[Y][ge]=!1),ve=j(ve,{enumerable:C(0,!1)})):(h(W,Y)||oe(W,Y,C(1,{})),W[Y][ge]=!0),Ln(W,ge,ve)):oe(W,ge,ve)},A=function(W,_){y(W);var ve=S(_),ge=V(ve).concat(Se(ve));return fe(ge,function(st){(!u||H.call(ve,st))&&b(W,st,ve[st])}),W},$=function(W,_){return _===void 0?j(W):A(j(W),_)},H=function(W){var _=N(W,!0),ve=co.call(this,_);return this===Ne&&h(St,_)&&!h(Ut,_)?!1:ve||!h(this,_)||!h(St,_)||h(this,Y)&&this[Y][_]?ve:!0},q=function(W,_){var ve=S(W),ge=N(_,!0);if(!(ve===Ne&&h(St,ge)&&!h(Ut,ge))){var st=re(ve,ge);return st&&h(St,ge)&&!(h(ve,Y)&&ve[Y][ge])&&(st.enumerable=!0),st}},ue=function(W){var _=Pt(S(W)),ve=[];return fe(_,function(ge){!h(St,ge)&&!h(te,ge)&&ve.push(ge)}),ve},Se=function(W){var _=W===Ne,ve=Pt(_?Ut:S(W)),ge=[];return fe(ve,function(st){h(St,st)&&(!_||h(Ne,st))&&ge.push(St[st])}),ge};if(p||(Fe=function(){if(this instanceof Fe)throw TypeError("Symbol is not a constructor");var W=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),_=ie(W),ve=function(ge){this===Ne&&ve.call(Ut,ge),h(this,Y)&&h(this[Y],_)&&(this[Y][_]=!1),Ln(this,_,C(1,ge))};return u&&Mn&&Ln(Ne,_,{configurable:!0,set:ve}),wn(_,W)},w(Fe[be],"toString",function(){return Ve(this).tag}),w(Fe,"withoutSetter",function(ne){return wn(ie(ne),ne)}),E.f=H,M.f=b,k.f=q,O.f=L.f=ue,U.f=Se,ye.f=function(ne){return wn(pe(ne),ne)},u&&(oe(Fe[be],"description",{configurable:!0,get:function(){return Ve(this).description}}),f||w(Ne,"propertyIsEnumerable",H,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:Fe}),fe(V(Dn),function(ne){Oe(ne)}),s({target:Ie,stat:!0,forced:!p},{for:function(ne){var W=String(ne);if(h(fn,W))return fn[W];var _=Fe(W);return fn[W]=_,Pn[_]=W,_},keyFor:function(W){if(!T(W))throw TypeError(W+" is not a symbol");if(h(Pn,W))return Pn[W]},useSetter:function(){Mn=!0},useSimple:function(){Mn=!1}}),s({target:"Object",stat:!0,forced:!p,sham:!u},{create:$,defineProperty:b,defineProperties:A,getOwnPropertyDescriptor:q}),s({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:ue,getOwnPropertySymbols:Se}),s({target:"Object",stat:!0,forced:m(function(){U.f(1)})},{getOwnPropertySymbols:function(W){return U.f(I(W))}}),vt){var Xe=!p||m(function(){var ne=Fe();return vt([ne])!="[null]"||vt({a:ne})!="{}"||vt(Object(ne))!="{}"});s({target:"JSON",stat:!0,forced:Xe},{stringify:function(W,_,ve){for(var ge=[W],st=1,uo;arguments.length>st;)ge.push(arguments[st++]);if(uo=_,!(!g(_)&&W===void 0||T(W)))return v(_)||(_=function(Ts,lr){if(typeof uo=="function"&&(lr=uo.call(this,Ts,lr)),!T(lr))return lr}),ge[1]=_,vt.apply(null,ge)}})}Fe[be][Je]||P(Fe[be],Je,Fe[be].valueOf),K(Fe,Ie),te[Y]=!0}),a630:(function(i,a,r){var s=r("23e7"),l=r("4df4"),c=r("1c7e"),f=!c(function(u){Array.from(u)});s({target:"Array",stat:!0,forced:f},{from:l})}),a640:(function(i,a,r){var s=r("d039");i.exports=function(l,c){var f=[][l];return!!f&&s(function(){f.call(null,c||function(){throw 1},1)})}}),a691:(function(i,a){var r=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:r)(l)}}),ab13:(function(i,a,r){var s=r("b622"),l=s("match");i.exports=function(c){var f=/./;try{"/./"[c](f)}catch{try{return f[l]=!1,"/./"[c](f)}catch{}}return!1}}),ac1f:(function(i,a,r){var s=r("23e7"),l=r("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(i,a,r){var s=r("825a");i.exports=function(){var l=s(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}}),ae40:(function(i,a,r){var s=r("83ab"),l=r("d039"),c=r("5135"),f=Object.defineProperty,u={},p=function(d){throw d};i.exports=function(d,m){if(c(u,d))return u[d];m||(m={});var h=[][d],v=c(m,"ACCESSORS")?m.ACCESSORS:!1,g=c(m,0)?m[0]:p,y=c(m,1)?m[1]:void 0;return u[d]=!!h&&!l(function(){if(v&&!s)return!0;var I={length:-1};v?f(I,1,{enumerable:!0,get:p}):I[1]=1,h.call(I,g,y)})}}),ae93:(function(i,a,r){var s=r("e163"),l=r("9112"),c=r("5135"),f=r("b622"),u=r("c430"),p=f("iterator"),d=!1,m=function(){return this},h,v,g;[].keys&&(g=[].keys(),"next"in g?(v=s(s(g)),v!==Object.prototype&&(h=v)):d=!0),h==null&&(h={}),!u&&!c(h,p)&&l(h,p,m),i.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:d}}),b041:(function(i,a,r){var s=r("00ee"),l=r("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(i,a,r){var s=r("83ab"),l=r("9bf2").f,c=Function.prototype,f=c.toString,u=/^\s*function ([^ (]*)/,p="name";s&&!(p in c)&&l(c,p,{configurable:!0,get:function(){try{return f.call(this).match(u)[1]}catch{return""}}})}),b622:(function(i,a,r){var s=r("da84"),l=r("5692"),c=r("5135"),f=r("90e3"),u=r("4930"),p=r("fdbf"),d=l("wks"),m=s.Symbol,h=p?m:m&&m.withoutSetter||f;i.exports=function(v){return c(d,v)||(u&&c(m,v)?d[v]=m[v]:d[v]=h("Symbol."+v)),d[v]}}),b64b:(function(i,a,r){var s=r("23e7"),l=r("7b0b"),c=r("df75"),f=r("d039"),u=f(function(){c(1)});s({target:"Object",stat:!0,forced:u},{keys:function(d){return c(l(d))}})}),b727:(function(i,a,r){var s=r("0366"),l=r("44ad"),c=r("7b0b"),f=r("50c4"),u=r("65f0"),p=[].push,d=function(m){var h=m==1,v=m==2,g=m==3,y=m==4,I=m==6,S=m==5||I;return function(N,C,j,V){for(var O=c(N),L=l(O),U=s(C,j,3),k=f(L.length),M=0,E=V||u,P=h?E(N,k):v?E(N,0):void 0,w,F;k>M;M++)if((S||M in L)&&(w=L[M],F=U(w,M,O),m)){if(h)P[M]=F;else if(F)switch(m){case 3:return!0;case 5:return w;case 6:return M;case 2:p.call(P,w)}else if(y)return!1}return I?-1:g||y?y:P}};i.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6)}}),c04e:(function(i,a,r){var s=r("861d");i.exports=function(l,c){if(!s(l))return l;var f,u;if(c&&typeof(f=l.toString)=="function"&&!s(u=f.call(l))||typeof(f=l.valueOf)=="function"&&!s(u=f.call(l))||!c&&typeof(f=l.toString)=="function"&&!s(u=f.call(l)))return u;throw TypeError("Can't convert object to primitive value")}}),c430:(function(i,a){i.exports=!1}),c6b6:(function(i,a){var r={}.toString;i.exports=function(s){return r.call(s).slice(8,-1)}}),c6cd:(function(i,a,r){var s=r("da84"),l=r("ce4e"),c="__core-js_shared__",f=s[c]||l(c,{});i.exports=f}),c740:(function(i,a,r){var s=r("23e7"),l=r("b727").findIndex,c=r("44d2"),f=r("ae40"),u="findIndex",p=!0,d=f(u);u in[]&&Array(1)[u](function(){p=!1}),s({target:"Array",proto:!0,forced:p||!d},{findIndex:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),c(u)}),c8ba:(function(i,a){var r;r=(function(){return this})();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}i.exports=r}),c975:(function(i,a,r){var s=r("23e7"),l=r("4d64").indexOf,c=r("a640"),f=r("ae40"),u=[].indexOf,p=!!u&&1/[1].indexOf(1,-0)<0,d=c("indexOf"),m=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:p||!d||!m},{indexOf:function(v){return p?u.apply(this,arguments)||0:l(this,v,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(i,a,r){var s=r("5135"),l=r("fc6a"),c=r("4d64").indexOf,f=r("d012");i.exports=function(u,p){var d=l(u),m=0,h=[],v;for(v in d)!s(f,v)&&s(d,v)&&h.push(v);for(;p.length>m;)s(d,v=p[m++])&&(~c(h,v)||h.push(v));return h}}),caad:(function(i,a,r){var s=r("23e7"),l=r("4d64").includes,c=r("44d2"),f=r("ae40"),u=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!u},{includes:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}}),c("includes")}),cc12:(function(i,a,r){var s=r("da84"),l=r("861d"),c=s.document,f=l(c)&&l(c.createElement);i.exports=function(u){return f?c.createElement(u):{}}}),ce4e:(function(i,a,r){var s=r("da84"),l=r("9112");i.exports=function(c,f){try{l(s,c,f)}catch{s[c]=f}return f}}),d012:(function(i,a){i.exports={}}),d039:(function(i,a){i.exports=function(r){try{return!!r()}catch{return!0}}}),d066:(function(i,a,r){var s=r("428f"),l=r("da84"),c=function(f){return typeof f=="function"?f:void 0};i.exports=function(f,u){return arguments.length<2?c(s[f])||c(l[f]):s[f]&&s[f][u]||l[f]&&l[f][u]}}),d1e7:(function(i,a,r){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!s.call({1:2},1);a.f=c?function(u){var p=l(this,u);return!!p&&p.enumerable}:s}),d28b:(function(i,a,r){var s=r("746f");s("iterator")}),d2bb:(function(i,a,r){var s=r("825a"),l=r("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var c=!1,f={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(f,[]),c=f instanceof Array}catch{}return function(d,m){return s(d),l(m),c?u.call(d,m):d.__proto__=m,d}})():void 0)}),d3b7:(function(i,a,r){var s=r("00ee"),l=r("6eeb"),c=r("b041");s||l(Object.prototype,"toString",c,{unsafe:!0})}),d44e:(function(i,a,r){var s=r("9bf2").f,l=r("5135"),c=r("b622"),f=c("toStringTag");i.exports=function(u,p,d){u&&!l(u=d?u:u.prototype,f)&&s(u,f,{configurable:!0,value:p})}}),d58f:(function(i,a,r){var s=r("1c0b"),l=r("7b0b"),c=r("44ad"),f=r("50c4"),u=function(p){return function(d,m,h,v){s(m);var g=l(d),y=c(g),I=f(g.length),S=p?I-1:0,N=p?-1:1;if(h<2)for(;;){if(S in y){v=y[S],S+=N;break}if(S+=N,p?S<0:I<=S)throw TypeError("Reduce of empty array with no initial value")}for(;p?S>=0:I>S;S+=N)S in y&&(v=m(v,y[S],S,g));return v}};i.exports={left:u(!1),right:u(!0)}}),d784:(function(i,a,r){r("ac1f");var s=r("6eeb"),l=r("d039"),c=r("b622"),f=r("9263"),u=r("9112"),p=c("species"),d=!l(function(){var y=/./;return y.exec=function(){var I=[];return I.groups={a:"7"},I},"".replace(y,"$<a>")!=="7"}),m=(function(){return"a".replace(/./,"$0")==="$0"})(),h=c("replace"),v=(function(){return/./[h]?/./[h]("a","$0")==="":!1})(),g=!l(function(){var y=/(?:)/,I=y.exec;y.exec=function(){return I.apply(this,arguments)};var S="ab".split(y);return S.length!==2||S[0]!=="a"||S[1]!=="b"});i.exports=function(y,I,S,N){var C=c(y),j=!l(function(){var M={};return M[C]=function(){return 7},""[y](M)!=7}),V=j&&!l(function(){var M=!1,E=/a/;return y==="split"&&(E={},E.constructor={},E.constructor[p]=function(){return E},E.flags="",E[C]=/./[C]),E.exec=function(){return M=!0,null},E[C](""),!M});if(!j||!V||y==="replace"&&!(d&&m&&!v)||y==="split"&&!g){var O=/./[C],L=S(C,""[y],function(M,E,P,w,F){return E.exec===f?j&&!F?{done:!0,value:O.call(E,P,w)}:{done:!0,value:M.call(P,E,w)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),U=L[0],k=L[1];s(String.prototype,y,U),s(RegExp.prototype,C,I==2?function(M,E){return k.call(M,this,E)}:function(M){return k.call(M,this)})}N&&u(RegExp.prototype[C],"sham",!0)}}),d81d:(function(i,a,r){var s=r("23e7"),l=r("b727").map,c=r("1dde"),f=r("ae40"),u=c("map"),p=f("map");s({target:"Array",proto:!0,forced:!u||!p},{map:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(i,a,r){(function(s){var l=function(c){return c&&c.Math==Math&&c};i.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(i,a,r){var s=r("23e7"),l=r("83ab"),c=r("56ef"),f=r("fc6a"),u=r("06cf"),p=r("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(m){for(var h=f(m),v=u.f,g=c(h),y={},I=0,S,N;g.length>I;)N=v(h,S=g[I++]),N!==void 0&&p(y,S,N);return y}})}),dbf1:(function(i,a,r){(function(s){r.d(a,"a",function(){return c});function l(){return typeof window<"u"?window.console:s.console}var c=l()}).call(this,r("c8ba"))}),ddb0:(function(i,a,r){var s=r("da84"),l=r("fdbc"),c=r("e260"),f=r("9112"),u=r("b622"),p=u("iterator"),d=u("toStringTag"),m=c.values;for(var h in l){var v=s[h],g=v&&v.prototype;if(g){if(g[p]!==m)try{f(g,p,m)}catch{g[p]=m}if(g[d]||f(g,d,h),l[h]){for(var y in c)if(g[y]!==c[y])try{f(g,y,c[y])}catch{g[y]=c[y]}}}}}),df75:(function(i,a,r){var s=r("ca84"),l=r("7839");i.exports=Object.keys||function(f){return s(f,l)}}),e01a:(function(i,a,r){var s=r("23e7"),l=r("83ab"),c=r("da84"),f=r("5135"),u=r("861d"),p=r("9bf2").f,d=r("e893"),m=c.Symbol;if(l&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var h={},v=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),j=this instanceof v?new m(C):C===void 0?m():m(C);return C===""&&(h[j]=!0),j};d(v,m);var g=v.prototype=m.prototype;g.constructor=v;var y=g.toString,I=String(m("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;p(g,"description",{configurable:!0,get:function(){var C=u(this)?this.valueOf():this,j=y.call(C);if(f(h,C))return"";var V=I?j.slice(7,-1):j.replace(S,"$1");return V===""?void 0:V}}),s({global:!0,forced:!0},{Symbol:v})}}),e163:(function(i,a,r){var s=r("5135"),l=r("7b0b"),c=r("f772"),f=r("e177"),u=c("IE_PROTO"),p=Object.prototype;i.exports=f?Object.getPrototypeOf:function(d){return d=l(d),s(d,u)?d[u]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?p:null}}),e177:(function(i,a,r){var s=r("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(i,a,r){var s=r("fc6a"),l=r("44d2"),c=r("3f8c"),f=r("69f3"),u=r("7dd0"),p="Array Iterator",d=f.set,m=f.getterFor(p);i.exports=u(Array,"Array",function(h,v){d(this,{type:p,target:s(h),index:0,kind:v})},function(){var h=m(this),v=h.target,g=h.kind,y=h.index++;return!v||y>=v.length?(h.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:v[y],done:!1}:{value:[y,v[y]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")}),e439:(function(i,a,r){var s=r("23e7"),l=r("d039"),c=r("fc6a"),f=r("06cf").f,u=r("83ab"),p=l(function(){f(1)}),d=!u||p;s({target:"Object",stat:!0,forced:d,sham:!u},{getOwnPropertyDescriptor:function(h,v){return f(c(h),v)}})}),e538:(function(i,a,r){var s=r("b622");a.f=s}),e893:(function(i,a,r){var s=r("5135"),l=r("56ef"),c=r("06cf"),f=r("9bf2");i.exports=function(u,p){for(var d=l(p),m=f.f,h=c.f,v=0;v<d.length;v++){var g=d[v];s(u,g)||m(u,g,h(p,g))}}}),e8b5:(function(i,a,r){var s=r("c6b6");i.exports=Array.isArray||function(c){return s(c)=="Array"}}),e95a:(function(i,a,r){var s=r("b622"),l=r("3f8c"),c=s("iterator"),f=Array.prototype;i.exports=function(u){return u!==void 0&&(l.Array===u||f[c]===u)}}),f5df:(function(i,a,r){var s=r("00ee"),l=r("c6b6"),c=r("b622"),f=c("toStringTag"),u=l((function(){return arguments})())=="Arguments",p=function(d,m){try{return d[m]}catch{}};i.exports=s?l:function(d){var m,h,v;return d===void 0?"Undefined":d===null?"Null":typeof(h=p(m=Object(d),f))=="string"?h:u?l(m):(v=l(m))=="Object"&&typeof m.callee=="function"?"Arguments":v}}),f772:(function(i,a,r){var s=r("5692"),l=r("90e3"),c=s("keys");i.exports=function(f){return c[f]||(c[f]=l(f))}}),fb15:(function(i,a,r){if(r.r(a),typeof window<"u"){var s=window.document.currentScript;{var l=r("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(r.p=c[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(T,b,A){return b in T?Object.defineProperty(T,b,{value:A,enumerable:!0,configurable:!0,writable:!0}):T[b]=A,T}function u(T,b){var A=Object.keys(T);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(T);b&&($=$.filter(function(H){return Object.getOwnPropertyDescriptor(T,H).enumerable})),A.push.apply(A,$)}return A}function p(T){for(var b=1;b<arguments.length;b++){var A=arguments[b]!=null?arguments[b]:{};b%2?u(Object(A),!0).forEach(function($){f(T,$,A[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(A)):u(Object(A)).forEach(function($){Object.defineProperty(T,$,Object.getOwnPropertyDescriptor(A,$))})}return T}function d(T){if(Array.isArray(T))return T}r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");function m(T,b){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(T)))){var A=[],$=!0,H=!1,q=void 0;try{for(var ue=T[Symbol.iterator](),Se;!($=(Se=ue.next()).done)&&(A.push(Se.value),!(b&&A.length===b));$=!0);}catch(Xe){H=!0,q=Xe}finally{try{!$&&ue.return!=null&&ue.return()}finally{if(H)throw q}}return A}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function h(T,b){(b==null||b>T.length)&&(b=T.length);for(var A=0,$=new Array(b);A<b;A++)$[A]=T[A];return $}function v(T,b){if(T){if(typeof T=="string")return h(T,b);var A=Object.prototype.toString.call(T).slice(8,-1);if(A==="Object"&&T.constructor&&(A=T.constructor.name),A==="Map"||A==="Set")return Array.from(T);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return h(T,b)}}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(T,b){return d(T)||m(T,b)||v(T,b)||g()}function I(T){if(Array.isArray(T))return h(T)}function S(T){if(typeof Symbol<"u"&&Symbol.iterator in Object(T))return Array.from(T)}function N(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
30
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(T){return I(T)||S(T)||v(T)||N()}var j=r("a352"),V=r.n(j);function O(T){T.parentElement!==null&&T.parentElement.removeChild(T)}function L(T,b,A){var $=A===0?T.children[0]:T.children[A-1].nextSibling;T.insertBefore(b,$)}var U=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");function k(T){var b=Object.create(null);return function($){var H=b[$];return H||(b[$]=T($))}}var M=/-(\w)/g,E=k(function(T){return T.replace(M,function(b,A){return A.toUpperCase()})});r("5db7"),r("73d9");var P=["Start","Add","Remove","Update","End"],w=["Choose","Unchoose","Sort","Filter","Clone"],F=["Move"],J=[F,P,w].flatMap(function(T){return T}).map(function(T){return"on".concat(T)}),te={manage:F,manageAndEmit:P,emit:w};function ie(T){return J.indexOf(T)!==-1}r("caad"),r("2ca0");var pe=["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 ye(T){return pe.includes(T)}function Oe(T){return["transition-group","TransitionGroup"].includes(T)}function K(T){return["id","class","role","style"].includes(T)||T.startsWith("data-")||T.startsWith("aria-")||T.startsWith("on")}function R(T){return T.reduce(function(b,A){var $=y(A,2),H=$[0],q=$[1];return b[H]=q,b},{})}function fe(T){var b=T.$attrs,A=T.componentData,$=A===void 0?{}:A,H=R(Object.entries(b).filter(function(q){var ue=y(q,2),Se=ue[0];return ue[1],K(Se)}));return p(p({},H),$)}function Y(T){var b=T.$attrs,A=T.callBackBuilder,$=R(Ie(b));Object.entries(A).forEach(function(q){var ue=y(q,2),Se=ue[0],Xe=ue[1];te[Se].forEach(function(ne){$["on".concat(ne)]=Xe(ne)})});var H="[data-draggable]".concat($.draggable||"");return p(p({},$),{},{draggable:H})}function Ie(T){return Object.entries(T).filter(function(b){var A=y(b,2),$=A[0];return A[1],!K($)}).map(function(b){var A=y(b,2),$=A[0],H=A[1];return[E($),H]}).filter(function(b){var A=y(b,2),$=A[0];return A[1],!ie($)})}r("c740");function be(T,b){if(!(T instanceof b))throw new TypeError("Cannot call a class as a function")}function Je(T,b){for(var A=0;A<b.length;A++){var $=b[A];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(T,$.key,$)}}function Re(T,b,A){return b&&Je(T.prototype,b),T}var Ve=function(b){var A=b.el;return A},Ne=function(b,A){return b.__draggable_context=A},Fe=function(b){return b.__draggable_context},vt=(function(){function T(b){var A=b.nodes,$=A.header,H=A.default,q=A.footer,ue=b.root,Se=b.realList;be(this,T),this.defaultNodes=H,this.children=[].concat(C($),C(H),C(q)),this.externalComponent=ue.externalComponent,this.rootTransition=ue.transition,this.tag=ue.tag,this.realList=Se}return Re(T,[{key:"render",value:function(A,$){var H=this.tag,q=this.children,ue=this._isRootComponent,Se=ue?{default:function(){return q}}:q;return A(H,$,Se)}},{key:"updated",value:function(){var A=this.defaultNodes,$=this.realList;A.forEach(function(H,q){Ne(Ve(H),{element:$[q],index:q})})}},{key:"getUnderlyingVm",value:function(A){return Fe(A)}},{key:"getVmIndexFromDomIndex",value:function(A,$){var H=this.defaultNodes,q=H.length,ue=$.children,Se=ue.item(A);if(Se===null)return q;var Xe=Fe(Se);if(Xe)return Xe.index;if(q===0)return 0;var ne=Ve(H[0]),W=C(ue).findIndex(function(_){return _===ne});return A<W?0:q}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),T})(),re=r("8bbf");function oe(T,b){var A=T[b];return A?A():[]}function Pt(T){var b=T.$slots,A=T.realList,$=T.getKey,H=A||[],q=["header","footer"].map(function(_){return oe(b,_)}),ue=y(q,2),Se=ue[0],Xe=ue[1],ne=b.item;if(!ne)throw new Error("draggable element must have an item slot");var W=H.flatMap(function(_,ve){return ne({element:_,index:ve}).map(function(ge){return ge.key=$(_),ge.props=p(p({},ge.props||{}),{},{"data-draggable":!0}),ge})});if(W.length!==H.length)throw new Error("Item slot must have only one child");return{header:Se,footer:Xe,default:W}}function co(T){var b=Oe(T),A=!ye(T)&&!b;return{transition:b,externalComponent:A,tag:A?Object(re.resolveComponent)(T):b?re.TransitionGroup:T}}function St(T){var b=T.$slots,A=T.tag,$=T.realList,H=T.getKey,q=Pt({$slots:b,realList:$,getKey:H}),ue=co(A);return new vt({nodes:q,root:ue,realList:$})}function Ut(T,b){var A=this;Object(re.nextTick)(function(){return A.$emit(T.toLowerCase(),b)})}function fn(T){var b=this;return function(A,$){if(b.realList!==null)return b["onDrag".concat(T)](A,$)}}function Pn(T){var b=this,A=fn.call(this,T);return function($,H){A.call(b,$,H),Ut.call(b,T,$)}}var Dn=null,Rn={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(b){return b}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Mn=["update:modelValue","change"].concat(C([].concat(C(te.manageAndEmit),C(te.emit)).map(function(T){return T.toLowerCase()}))),Ln=Object(re.defineComponent)({name:"draggable",inheritAttrs:!1,props:Rn,emits:Mn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var b=this.$slots,A=this.$attrs,$=this.tag,H=this.componentData,q=this.realList,ue=this.getKey,Se=St({$slots:b,tag:$,realList:q,getKey:ue});this.componentStructure=Se;var Xe=fe({$attrs:A,componentData:H});return Se.render(re.h,Xe)}catch(ne){return this.error=!0,Object(re.h)("pre",{style:{color:"red"}},ne.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&U.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var b=this;if(!this.error){var A=this.$attrs,$=this.$el,H=this.componentStructure;H.updated();var q=Y({$attrs:A,callBackBuilder:{manageAndEmit:function(Xe){return Pn.call(b,Xe)},emit:function(Xe){return Ut.bind(b,Xe)},manage:function(Xe){return fn.call(b,Xe)}}}),ue=$.nodeType===1?$:$.parentElement;this._sortable=new V.a(ue,q),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 b=this.list;return b||this.modelValue},getKey:function(){var b=this.itemKey;return typeof b=="function"?b:function(A){return A[b]}}},watch:{$attrs:{handler:function(b){var A=this._sortable;A&&Ie(b).forEach(function($){var H=y($,2),q=H[0],ue=H[1];A.option(q,ue)})},deep:!0}},methods:{getUnderlyingVm:function(b){return this.componentStructure.getUnderlyingVm(b)||null},getUnderlyingPotencialDraggableComponent:function(b){return b.__draggable_component__},emitChanges:function(b){var A=this;Object(re.nextTick)(function(){return A.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var A=C(this.modelValue);b(A),this.$emit("update:modelValue",A)},spliceList:function(){var b=arguments,A=function(H){return H.splice.apply(H,C(b))};this.alterList(A)},updatePosition:function(b,A){var $=function(q){return q.splice(A,0,q.splice(b,1)[0])};this.alterList($)},getRelatedContextFromMoveEvent:function(b){var A=b.to,$=b.related,H=this.getUnderlyingPotencialDraggableComponent(A);if(!H)return{component:H};var q=H.realList,ue={list:q,component:H};if(A!==$&&q){var Se=H.getUnderlyingVm($)||{};return p(p({},Se),ue)}return ue},getVmIndexFromDomIndex:function(b){return this.componentStructure.getVmIndexFromDomIndex(b,this.targetDomElement)},onDragStart:function(b){this.context=this.getUnderlyingVm(b.item),b.item._underlying_vm_=this.clone(this.context.element),Dn=b.item},onDragAdd:function(b){var A=b.item._underlying_vm_;if(A!==void 0){O(b.item);var $=this.getVmIndexFromDomIndex(b.newIndex);this.spliceList($,0,A);var H={element:A,newIndex:$};this.emitChanges({added:H})}},onDragRemove:function(b){if(L(this.$el,b.item,b.oldIndex),b.pullMode==="clone"){O(b.clone);return}var A=this.context,$=A.index,H=A.element;this.spliceList($,1);var q={element:H,oldIndex:$};this.emitChanges({removed:q})},onDragUpdate:function(b){O(b.item),L(b.from,b.item,b.oldIndex);var A=this.context.index,$=this.getVmIndexFromDomIndex(b.newIndex);this.updatePosition(A,$);var H={element:this.context.element,oldIndex:A,newIndex:$};this.emitChanges({moved:H})},computeFutureIndex:function(b,A){if(!b.element)return 0;var $=C(A.to.children).filter(function(Se){return Se.style.display!=="none"}),H=$.indexOf(A.related),q=b.component.getVmIndexFromDomIndex(H),ue=$.indexOf(Dn)!==-1;return ue||!A.willInsertAfter?q:q+1},onDragMove:function(b,A){var $=this.move,H=this.realList;if(!$||!H)return!0;var q=this.getRelatedContextFromMoveEvent(b),ue=this.computeFutureIndex(q,b),Se=p(p({},this.context),{},{futureIndex:ue}),Xe=p(p({},b),{},{relatedContext:q,draggedContext:Se});return $(Xe,A)},onDragEnd:function(){Dn=null}}}),wn=Ln;a.default=wn}),fb6a:(function(i,a,r){var s=r("23e7"),l=r("861d"),c=r("e8b5"),f=r("23cb"),u=r("50c4"),p=r("fc6a"),d=r("8418"),m=r("b622"),h=r("1dde"),v=r("ae40"),g=h("slice"),y=v("slice",{ACCESSORS:!0,0:0,1:2}),I=m("species"),S=[].slice,N=Math.max;s({target:"Array",proto:!0,forced:!g||!y},{slice:function(j,V){var O=p(this),L=u(O.length),U=f(j,L),k=f(V===void 0?L:V,L),M,E,P;if(c(O)&&(M=O.constructor,typeof M=="function"&&(M===Array||c(M.prototype))?M=void 0:l(M)&&(M=M[I],M===null&&(M=void 0)),M===Array||M===void 0))return S.call(O,U,k);for(E=new(M===void 0?Array:M)(N(k-U,0)),P=0;U<k;U++,P++)U in O&&d(E,P,O[U]);return E.length=P,E}})}),fc6a:(function(i,a,r){var s=r("44ad"),l=r("1d80");i.exports=function(c){return s(l(c))}}),fdbc:(function(i,a){i.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(i,a,r){var s=r("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(yr)),yr.exports}var Cu=Nu();const Au=ws(Cu),Ai=Vs("testResults",()=>{const e=gn({}),t=gn({}),n=gn({}),o=gn({});function i(s){for(const[l,c]of Object.entries(s))e[l]=c.status,t[l]=c.message||"",n[l]=c.time?new Date(c.time).toLocaleString():"",o[l]=c.latency||0}async function a(){try{const s=await Yt.get("/api/test/results");i(s)}catch{}}async function r(s){e[s]="testing",t[s]="";try{const l=await Yt.post("/api/test/proxy",{model:s});e[s]=l.status,t[s]=l.message||"",n[s]=new Date().toLocaleString(),o[s]=l.latency||0}catch(l){e[s]="error",t[s]=l.message,n[s]=new Date().toLocaleString(),o[s]=0}}return{modelStatus:e,modelMessage:t,modelTime:n,modelLatency:o,loadResults:a,testProxy:r}}),xu={class:"card-header"},Pu={class:"card-title"},Du={class:"provider-name"},Ru={class:"card-meta"},Mu={class:"meta-row"},Lu=["title"],wu={class:"meta-row"},Vu={class:"meta-value"},Fu={key:0,class:"model-tags"},$u=["onClick"],Uu={key:0,class:"badge-mark"},ju={key:1,class:"badge-mark"},Bu={key:1,class:"text-empty"},ku={class:"card-footer"},Xu=Jt({__name:"ProviderCard",props:{provider:{}},emits:["clone","delete","edit","open-models","copy-model"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Ai(),r=f=>f?f.length<=8?f:`${f.substring(0,6)}...${f.substring(f.length-4)}`:"-",s=Gt(()=>{const f=n.provider;return f.name||f.alias||r(f.apiKey||"")}),l=Pe(!1),c=async()=>{const f=n.provider.models;l.value=!0;try{await Promise.all(f.map(p=>a.testProxy(p.modelName)));const u=f.filter(p=>a.modelStatus[p.modelName]==="ok").length;i(`${s.value}: ${u}/${f.length} 个模型通过`,u===f.length?"success":"error")}catch{i("测试出错","error")}finally{l.value=!1}};return(f,u)=>{const p=z("el-tag"),d=z("el-icon"),m=z("el-button"),h=z("el-card");return ee(),De(h,{shadow:"never",class:"provider-card"},{header:D(()=>[X("div",xu,[X("div",Pu,[X("span",Du,Te(s.value),1),e.provider.alias&&e.provider.name!==e.provider.alias?(ee(),De(p,{key:0,type:"info",size:"small"},{default:D(()=>[se(Te(e.provider.alias),1)]),_:1})):Ze("",!0)]),x(d,{class:"drag-hint-icon"},{default:D(()=>[x(Q($s))]),_:1})])]),default:D(()=>[X("div",Ru,[X("div",Mu,[u[6]||(u[6]=X("span",{class:"meta-label"},"接口地址",-1)),X("span",{class:"meta-value",title:e.provider.apiBase},Te(e.provider.apiBase||"-"),9,Lu)]),X("div",wu,[u[7]||(u[7]=X("span",{class:"meta-label"},"密钥",-1)),X("span",Vu,Te(r(e.provider.apiKey||"")),1)])]),e.provider.models.length?(ee(),Be("div",Fu,[(ee(!0),Be(Bo,null,ko(e.provider.models,v=>(ee(),Be("span",{key:v.modelName,class:Fs(["model-tag",{ok:Q(a).modelStatus[v.modelName]==="ok",error:Q(a).modelStatus[v.modelName]==="error"}]),onClick:fo(g=>o("copy-model",v.modelName),["stop"])},[se(Te(v.modelName)+" ",1),Q(a).modelStatus[v.modelName]==="ok"?(ee(),Be("span",Uu,"✓")):Ze("",!0),Q(a).modelStatus[v.modelName]==="error"?(ee(),Be("span",ju,"✗")):Ze("",!0)],10,$u))),128))])):(ee(),Be("div",Bu,"暂无模型")),X("div",ku,[X("span",{class:"model-count",onClick:u[0]||(u[0]=fo(v=>o("open-models"),["stop"]))},Te(e.provider.models.length)+" 个模型",1),X("div",{class:"card-actions",onClick:u[5]||(u[5]=fo(()=>{},["stop"]))},[x(m,{size:"small",loading:l.value,disabled:l.value||!e.provider.models.length,onClick:c},{default:D(()=>[se(Te(l.value?"测试中...":"一键测试"),1)]),_:1},8,["loading","disabled"]),x(m,{size:"small",onClick:u[1]||(u[1]=v=>o("clone"))},{default:D(()=>[...u[8]||(u[8]=[se("复制",-1)])]),_:1}),x(m,{size:"small",onClick:u[2]||(u[2]=v=>o("delete"))},{default:D(()=>[...u[9]||(u[9]=[se("删除",-1)])]),_:1}),x(m,{size:"small",onClick:u[3]||(u[3]=v=>o("open-models"))},{default:D(()=>[...u[10]||(u[10]=[se("模型",-1)])]),_:1}),x(m,{size:"small",onClick:u[4]||(u[4]=v=>o("edit"))},{default:D(()=>[...u[11]||(u[11]=[se("编辑",-1)])]),_:1})])])]),_:1})}}}),Ku=cn(Xu,[["__scopeId","data-v-e96d8595"]]),Co=[{id:"deepseek",name:"DeepSeek(按量 API)",alias:"ds",website:"https://platform.deepseek.com",keyUrl:"https://platform.deepseek.com/api_keys",keyNote:"登录 DeepSeek 开放平台 →「API keys」→ 创建。官方原生支持 Anthropic 协议:本模板已指向 Anthropic 兼容地址(api.deepseek.com/anthropic),配合 Claude Code 等客户端可原生保留缓存控制。同一把 Key 也可改用 OpenAI 协议地址 https://api.deepseek.com。",apiBase:"https://api.deepseek.com/anthropic",autoV1:!1,protocol:"anthropic",presetModels:["deepseek-v4-pro","deepseek-v4-flash"]},{id:"kimi",name:"月之暗面 Kimi(按量 API)",alias:"kimi",website:"https://platform.kimi.com",keyUrl:"https://platform.kimi.com/console/api-keys",keyNote:"登录 Kimi 开放平台 →「API Key 管理」→ 新建。本模板指向 Anthropic 兼容地址(api.moonshot.cn/anthropic),配合 Claude Code 使用;1M 上下文模型名需加 [1m] 后缀(如 kimi-k3[1m])。同一把 Key 也可改用 OpenAI 协议地址 https://api.moonshot.cn/v1。",apiBase:"https://api.moonshot.cn/anthropic",autoV1:!1,protocol:"anthropic",presetModels:["kimi-k3","kimi-k2.7-code"]},{id:"zhipu",name:"智谱 GLM(按量 API)",alias:"zhipu",website:"https://open.bigmodel.cn",keyUrl:"https://bigmodel.cn/usercenter/proj-mgmt/apikeys",keyNote:"登录智谱开放平台 →「API Keys」→ 创建。按量付费用此 Key + 本模板地址(OpenAI 兼容 /api/paas/v4)。若购买的是 Coding Plan 套餐,请改用下方「智谱 GLM(Coding Plan)」模板——套餐 Key 与按量 Key 不通用。",apiBase:"https://open.bigmodel.cn/api/paas/v4",autoV1:!1,protocol:"openai",presetModels:["glm-5.3","glm-5.3-flash"]},{id:"zhipu-coding",name:"智谱 GLM(Coding Plan)",alias:"zhipu-code",website:"https://bigmodel.cn/coding-plan/personal/overview",keyUrl:"https://bigmodel.cn/coding-plan/personal/overview",keyNote:"Coding Plan 套餐专用:Key 在套餐页面单独获取,与按量付费 Key 不通用。本模板指向套餐 Anthropic 端点(/api/anthropic),供 Claude Code 等客户端使用;注意地址填错会把套餐额度按按量计费扣费。",apiBase:"https://open.bigmodel.cn/api/anthropic",autoV1:!1,protocol:"anthropic",presetModels:["glm-5.3","glm-5.3-flash"]},{id:"ark",name:"火山方舟(按量 API)",alias:"ark",website:"https://console.volcengine.com/ark",keyUrl:"https://console.volcengine.com/ark/region:cn-beijing/apikey",keyNote:"火山方舟控制台 →「API Key 管理」→ 创建。API Key 鉴权可直接填模型名(如 doubao-seed-2.1-turbo);若使用 Access Key 鉴权则需填推理接入点 ID(ep-xxx)。购买 Coding Plan 套餐请改用下方「火山方舟(Coding Plan)」模板。",apiBase:"https://ark.cn-beijing.volces.com/api/v3",autoV1:!1,protocol:"openai"},{id:"ark-coding",name:"火山方舟(Coding Plan)",alias:"ark-code",website:"https://console.volcengine.com/ark",keyUrl:"https://console.volcengine.com/ark/region:cn-beijing/apikey",keyNote:"Coding Plan 套餐专用端点(/api/coding/v3),模型直接填模型名(如 ark-code-latest 自动切换、doubao-seed-evolving、glm-5.3、deepseek-v4-flash 等),无需接入点。注意:误用按量地址(/api/v3)会把套餐额度按按量计费扣费。",apiBase:"https://ark.cn-beijing.volces.com/api/coding/v3",autoV1:!1,protocol:"openai",presetModels:["ark-code-latest","doubao-seed-evolving"]},{id:"dashscope",name:"阿里云百炼(按量 API)",alias:"ali",website:"https://bailian.console.aliyun.com",keyUrl:"https://bailian.console.aliyun.com/?apiKey=1",keyNote:"登录阿里云百炼控制台 →右上角「API-KEY」→ 创建。本模板为 OpenAI 兼容地址(旧域名,仍可用);开通 Token Plan / Coding Plan 套餐的用户请到对应套餐控制台获取专属 Key 和地址。",apiBase:"https://dashscope.aliyuncs.com/compatible-mode/v1",autoV1:!1,protocol:"openai",presetModels:["qwen3.8-max","qwen3.7-plus"]},{id:"openai",name:"OpenAI(按量 API)",alias:"openai",website:"https://platform.openai.com",keyUrl:"https://platform.openai.com/api-keys",keyNote:"登录 OpenAI 平台 →「API keys」→ 创建新密钥。官方支持 /v1/chat/completions 与 /v1/responses 两种协议(不支持 Anthropic 协议)。",apiBase:"https://api.openai.com/v1",autoV1:!1,protocol:"openai",presetModels:["gpt-5.6-sol","gpt-5.5"]},{id:"st",name:"商汤",alias:"st",website:"https://senseaudio.cn/login?inviteCode=X5VH5PZY",apiBase:"https://api.senseaudio.cn",autoV1:!0,protocol:"openai",presetModels:["glm-5.3-flash","deepseek-v4-pro-0813","deepseek-v4-flash-0731"]},{id:"custom",name:"自定义 / OpenAI 兼容中转",alias:"",keyNote:"不使用模板预填,按中转站文档填写即可;协议拿不准先用「测试」验证。",apiBase:"",autoV1:!0,protocol:"openai"}];function Hu(e){const{toast:t}=un(),n=Pe(!1),o=Pe(null),i=gn({}),a=()=>{for(const f of Object.keys(i))delete i[f]},r=()=>{o.value=null},s=async()=>{const f=e.api_key.trim(),u=e.api_base.trim();if(!(!f||!u)){o.value={loading:!0};try{const p=await Yt.post("/api/test",{api_base:u,api_key:f,protocol:e.protocol,autoV1:e.autoV1});p.status==="ok"?(o.value={loading:!1,status:"ok",msg:`连接成功 (${p.models??0} 个模型)`},t("连接成功","success")):(o.value={loading:!1,status:"fail",msg:p.message},t(`连接失败: ${p.message}`,"error"))}catch(p){o.value={loading:!1,status:"fail",msg:p.message},t(p.message,"error")}}},l=async f=>{i[f.full_name]={loading:!0};try{const u=await Yt.post("/api/test/model",{model:f.upstream,api_base:e.api_base.trim(),api_key:e.api_key.trim(),protocol:f.protocol||e.protocol,autoV1:e.autoV1});i[f.full_name]={loading:!1,status:u.status==="ok"?"ok":"fail",msg:u.status==="ok"&&u.latency!=null?`${u.message} · ${u.latency}ms`:u.message,request:u.request,response:u.response},t(u.status==="ok"?"模型可用":`模型不可用: ${u.message}`,u.status==="ok"?"success":"error")}catch(u){i[f.full_name]={loading:!1,status:"fail",msg:u.message},t(u.message,"error")}};return{testingAll:n,keyStatus:o,modelTest:i,testKey:s,testModel:l,testAll:async()=>{const f=[...e.models];if(f.length){n.value=!0;try{await Promise.all(f.map(u=>l(u)))}finally{n.value=!1}}},clearModelTest:a,resetKeyStatus:r}}const Gu={key:0,class:"detail-body"},Wu={class:"detail-head"},Yu={class:"detail-name"},zu={class:"muted-sm"},Ju={class:"detail-pre"},Qu={class:"detail-pre"},_u=Jt({__name:"TestDetailDialog",props:{modelValue:{type:Boolean},detail:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=t,i=Pe("request");Xo(()=>n.modelValue,r=>{r&&(i.value="request")});const a=r=>{if(r==null)return"(无)";try{const s=new WeakSet;return JSON.stringify(r,(l,c)=>{if(c&&typeof c=="object"){if(s.has(c))return"[circular]";s.add(c)}return c},2)}catch{return String(r)}};return(r,s)=>{const l=z("el-tag"),c=z("el-tab-pane"),f=z("el-tabs"),u=z("el-button"),p=z("el-dialog");return ee(),De(p,{"model-value":e.modelValue,title:"测试详情",width:"900px",top:"5vh","align-center":"","append-to-body":"","onUpdate:modelValue":s[2]||(s[2]=d=>o("update:modelValue",d))},{footer:D(()=>[x(u,{type:"primary",onClick:s[1]||(s[1]=d=>o("update:modelValue",!1))},{default:D(()=>[...s[3]||(s[3]=[se("关闭",-1)])]),_:1})]),default:D(()=>[e.detail?(ee(),Be("div",Gu,[X("div",Wu,[X("span",Yu,Te(e.detail.name),1),x(l,{type:e.detail.status==="ok"?"success":"danger",size:"small"},{default:D(()=>[se(Te(e.detail.status==="ok"?"成功":"失败"),1)]),_:1},8,["type"]),X("span",zu,Te(e.detail.msg),1)]),x(f,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=d=>i.value=d)},{default:D(()=>[x(c,{label:"请求参数 (Request)",name:"request"},{default:D(()=>[X("pre",Ju,Te(a(e.detail.request)),1)]),_:1}),x(c,{label:"响应数据 (Response)",name:"response"},{default:D(()=>[X("pre",Qu,Te(a(e.detail.response)),1)]),_:1})]),_:1},8,["modelValue"])])):Ze("",!0)]),_:1},8,["model-value"])}}}),Zu=cn(_u,[["__scopeId","data-v-08dfa117"]]),qu={class:"protocol-help"},ef={class:"help-item"},tf={class:"help-title"},nf={class:"help-item"},rf={class:"help-title"},of={class:"help-item"},af={class:"help-title"},sf={class:"help-item"},lf=Jt({__name:"ProtocolHelpDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=t,o=[{client:"Claude Code",endpoint:"/v1/messages",note:"Anthropic 协议入口;上游优先选 Anthropic Messages(官方支持时),缓存/思维链原生保留"},{client:"Codex CLI",endpoint:"/v1/chat/completions",note:"OpenAI Chat 协议入口;上游协议随意,网关自动转换"},{client:"其他 OpenAI SDK / 工具",endpoint:"/v1/chat/completions",note:"OpenAI Chat 协议入口(chat/completions 是事实标准)"}];return(i,a)=>{const r=z("el-tag"),s=z("el-divider"),l=z("el-table-column"),c=z("el-table"),f=z("el-button"),u=z("el-dialog");return ee(),De(u,{"model-value":e.modelValue,title:"上游协议怎么选?",width:"760px","align-center":"","append-to-body":"","onUpdate:modelValue":a[1]||(a[1]=p=>n("update:modelValue",p))},{footer:D(()=>[x(f,{type:"primary",onClick:a[0]||(a[0]=p=>n("update:modelValue",!1))},{default:D(()=>[...a[15]||(a[15]=[se("我知道了",-1)])]),_:1})]),default:D(()=>[X("div",qu,[a[13]||(a[13]=X("p",{class:"help-intro"}," 协议就是上游 API「说话的格式」——同样的模型,接口路径、请求和响应的字段都不一样。选错格式,请求会直接失败。 ",-1)),X("div",ef,[X("div",tf,[a[3]||(a[3]=se("OpenAI Chat Completions ",-1)),x(r,{size:"small",type:"primary"},{default:D(()=>[...a[2]||(a[2]=[se("最常用",-1)])]),_:1})]),a[4]||(a[4]=X("p",null,"业界事实标准。DeepSeek、通义、Kimi、智谱、火山方舟等绝大多数国内外厂商,以及各类 OpenAI 兼容中转站,都用这套格式。",-1))]),X("div",nf,[X("div",rf,[a[6]||(a[6]=se("Anthropic Messages ",-1)),x(r,{size:"small",type:"success"},{default:D(()=>[...a[5]||(a[5]=[se("推荐优先",-1)])]),_:1})]),a[7]||(a[7]=X("p",null,[se(" Claude 官方格式,以 /v1/messages 为标志。DeepSeek 官方 API 等少数厂商原生支持。 "),X("strong",null,"如果上游官方支持,优先选它"),se("——尤其在 Claude Code 这类客户端场景下,能原生保留缓存控制(省 token 费用)、思维链等能力,避免协议来回转换造成损耗。 ")],-1))]),X("div",of,[X("div",af,[a[9]||(a[9]=se("OpenAI Responses ",-1)),x(r,{size:"small",type:"info"},{default:D(()=>[...a[8]||(a[8]=[se("小众",-1)])]),_:1})]),a[10]||(a[10]=X("p",null,"OpenAI 官方推出的新一代接口(/v1/responses),目前基本只有 OpenAI 自家在用。",-1))]),x(s),X("div",sf,[a[11]||(a[11]=X("div",{class:"help-title"},"常用客户端对照表",-1)),a[12]||(a[12]=X("p",{class:"help-table-note"},"客户端接入本网关后用哪个入口,是客户端自己的属性,与上游协议选择无关;网关负责两边互转。",-1)),x(c,{data:o,size:"small",border:"",class:"help-table"},{default:D(()=>[x(l,{prop:"client",label:"客户端",width:"150"}),x(l,{prop:"endpoint",label:"网关入口",width:"190"}),x(l,{prop:"note",label:"说明","min-width":"220"})]),_:1})]),a[14]||(a[14]=X("div",{class:"help-item"},[X("div",{class:"help-title"},"还是拿不准?"),X("p",null,"先选 OpenAI Chat Completions,添加模型后用「测试」按钮验证:成功即选对;报 404 / format 类错误时,换 Anthropic Messages 再试。")],-1))])]),_:1},8,["model-value"])}}}),cf=cn(lf,[["__scopeId","data-v-2248b61a"]]),uf={class:"full-width mb-8"},ff={class:"flex-gap-8 mb-8"},df={class:"model-select-wrap"},pf={class:"muted-13"},hf={key:0,class:"muted-12"},mf=Jt({__name:"ProviderModelEditor",props:{form:{},modelTest:{},testingAll:{type:Boolean},editingName:{}},emits:["test-model","test-all","show-test-detail"],setup(e,{expose:t,emit:n}){const o=e,i=n,{toast:a}=un(),r=Pe([]),s=Pe([]),l=Gt(()=>r.value.filter(v=>!o.form.models.some(g=>g.full_name===(o.form.alias.trim()?`${o.form.alias.trim()}/${v}`:v)))),c=()=>{const v=o.form.alias.trim();for(const g of s.value){const y=g.trim();if(!y)continue;r.value.includes(y)||r.value.push(y);let I=v?`${v}/${y}`:y,S=2;for(;o.form.models.some(N=>N.full_name===I);)I=`${v?`${v}/`:""}${y}-${S}`,S+=1;o.form.models.push({full_name:I,upstream:y,protocol:o.form.protocol})}s.value=[]},f=v=>{o.form.models.splice(v,1)};t({loadCachedModels:async v=>{const g=await Yt.get(`/api/test/models-cache/${encodeURIComponent(v)}`).catch(()=>({models:[]}));r.value=g.models||[]},addPresetModels:v=>{r.value=[...v],s.value=[...v],c()},resetState:()=>{r.value=[],s.value=[]}});const m=Pe(!1),h=async()=>{var v;m.value=!0;try{const g=o.editingName!=null?o.editingName:`new::${o.form.api_base.trim()}`,y=await Yt.post("/api/test/fetch-models",{api_base:o.form.api_base.trim(),api_key:o.form.api_key.trim(),keyId:g,protocol:o.form.protocol,autoV1:o.form.autoV1});y.status==="ok"&&((v=y.models)==null?void 0:v.length)>0?(r.value=[...new Set([...r.value,...y.models])],a(`已获取 ${y.models.length} 个模型`,"success")):/404/.test(y.message||"")?a("该上游不支持获取模型列表(404),请手动输入模型名,或到官网文档查看支持的模型","error"):a(y.message||"未获取到模型","error")}catch(g){a(g.message,"error")}finally{m.value=!1}};return(v,g)=>{const y=z("el-icon"),I=z("el-tooltip"),S=z("el-alert"),N=z("el-option"),C=z("el-select"),j=z("el-button"),V=z("el-table-column"),O=z("el-input"),L=z("el-switch"),U=z("el-link"),k=z("el-table"),M=z("el-form-item");return ee(),De(M,{prop:"models"},{label:D(()=>[g[2]||(g[2]=X("span",null,"模型列表",-1)),x(I,{placement:"top",content:"这家供应商下你要用哪些模型。至少添加一个才能保存;客户端请求时填「模型全名」即可路由到这里。"},{default:D(()=>[x(y,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1})]),default:D(()=>[X("div",uf,[x(S,{type:"info",closable:!1,"show-icon":"",title:"此处测试为直连上游(不经过网关),仅验证连通性;保存后可在列表卡片中测试完整代理链路。"})]),X("div",ff,[X("div",df,[x(C,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=E=>s.value=E),multiple:"","collapse-tags":"",filterable:"","allow-create":"","default-first-option":"",placeholder:"搜索或输入模型名"},{default:D(()=>[(ee(!0),Be(Bo,null,ko(l.value,E=>(ee(),De(N,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),x(j,{onClick:c,disabled:!s.value.length},{default:D(()=>[...g[3]||(g[3]=[se("添加",-1)])]),_:1},8,["disabled"]),x(j,{loading:m.value,disabled:!e.form.api_base||!e.form.api_key,onClick:h},{default:D(()=>[se(Te(m.value?"":"获取模型列表"),1)]),_:1},8,["loading","disabled"]),x(j,{loading:e.testingAll,disabled:!e.form.models.length||!e.form.api_base||!e.form.api_key,onClick:g[1]||(g[1]=E=>i("test-all"))},{default:D(()=>[se(Te(e.testingAll?"":"测试全部"),1)]),_:1},8,["loading","disabled"])]),x(k,{border:"",data:e.form.models,class:"full-width","empty-text":"暂无模型"},{default:D(()=>[x(V,{type:"index",label:"#",width:"50",align:"center"}),x(V,{"min-width":"260"},{header:D(()=>[g[4]||(g[4]=X("span",{class:"col-help"},"模型全名(可编辑)",-1)),x(I,{placement:"top",content:"发请求时实际使用的模型名称(客户端填的 model 参数),默认 = 别名/上游模型名,可自由修改;全局唯一,点击可复制。"},{default:D(()=>[x(y,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1})]),default:D(({row:E})=>[x(O,{modelValue:E.full_name,"onUpdate:modelValue":P=>E.full_name=P},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),x(V,{prop:"upstream","min-width":"180"},{header:D(()=>[g[5]||(g[5]=X("span",{class:"col-help"},"上游模型",-1)),x(I,{placement:"top",content:"供应商 API 真实的模型标识(如 deepseek-chat、gpt-4o),请求会被转发给这个模型;同一上游模型可添加多次(如配不同协议),但模型全名不能重复。"},{default:D(()=>[x(y,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1})]),default:D(({row:E})=>[X("span",pf,Te(E.upstream),1)]),_:1}),x(V,{width:"230"},{header:D(()=>[g[6]||(g[6]=X("span",{class:"col-help"},"上游协议",-1)),x(I,{placement:"top",content:"请求该模型时使用的 API 格式,默认继承上方供应商协议;个别模型可单独改(如同一供应商既有 OpenAI 风格又有 Anthropic 风格的模型)。"},{default:D(()=>[x(y,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1})]),default:D(({row:E})=>[x(C,{modelValue:E.protocol,"onUpdate:modelValue":P=>E.protocol=P,class:"full-width",size:"small"},{default:D(()=>[x(N,{label:"Anthropic Messages",value:"anthropic"}),x(N,{label:"OpenAI Chat Completions",value:"openai"}),x(N,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue","onUpdate:modelValue"])]),_:1}),x(V,{width:"120",align:"center"},{header:D(()=>[g[7]||(g[7]=X("span",{class:"col-help"},"完整透传",-1)),x(I,{placement:"top",content:"开启后请求此模型不做任何参数加工(不注入、不补字段、不重建流),请求与响应都原样转发上游;仅保留模型名替换与 [DONE] 兜底。要求客户端协议与上游协议一致——用其它协议调用会直接报 400,不会自动转换。日志仍完整记录入站/上游/客户端三段原文。"},{default:D(()=>[x(y,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1})]),default:D(({row:E})=>[x(L,{modelValue:E.rawPassthrough,"onUpdate:modelValue":P=>E.rawPassthrough=P},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),x(V,{label:"测试结果(直连)",width:"170",align:"center"},{default:D(({row:E})=>{var P,w;return[(P=e.modelTest[E.full_name])!=null&&P.loading?(ee(),Be("span",hf,"测试中...")):(w=e.modelTest[E.full_name])!=null&&w.status?(ee(),De(U,{key:1,type:e.modelTest[E.full_name].status==="ok"?"success":"danger",class:"test-result-link",onClick:F=>i("show-test-detail",E.full_name)},{default:D(()=>[se(Te(e.modelTest[E.full_name].msg),1)]),_:2},1032,["type","onClick"])):Ze("",!0)]}),_:1}),x(V,{width:"140",align:"center",label:"操作"},{default:D(({row:E})=>{var P;return[x(j,{link:"",loading:(P=e.modelTest[E.full_name])==null?void 0:P.loading,disabled:!e.form.api_base||!e.form.api_key,onClick:w=>i("test-model",E)},{default:D(()=>[...g[8]||(g[8]=[se("测试",-1)])]),_:1},8,["loading","disabled","onClick"]),x(j,{link:"",type:"danger",onClick:w=>f(e.form.models.indexOf(E))},{default:D(()=>[...g[9]||(g[9]=[se("删除",-1)])]),_:1},8,["onClick"])]}),_:1})]),_:1},8,["data"])]),_:1})}}}),vf=cn(mf,[["__scopeId","data-v-cd73a0be"]]),gf={class:"dialog-body"},yf={class:"flex-gap-8 full-width"},Ef={class:"full-url-toggle label-inline-toggle"},Sf={key:0,class:"muted-sm"},bf={key:0,class:"mt-4"},Tf={key:0,class:"test-ok-text"},Of={key:1,class:"test-fail-text"},If={key:1,class:"muted-sm"},Nf={class:"flex-gap-8 flex-center"},Cf=Jt({__name:"ProviderModal",props:{editName:{},provider:{},cloneOf:{}},emits:["close","saved"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Ko(),r=Pe(n.editName),s=Gt(()=>n.editName!=null),l=Pe(""),c=Gt(()=>Co.find(K=>K.id===l.value)),f=K=>{var fe;const R=Co.find(Y=>Y.id===K);R&&(d.name=R.name,d.alias=R.alias,d.website=R.website||"",d.api_base=R.apiBase,d.autoV1=R.autoV1,d.protocol=R.protocol,(fe=R.presetModels)!=null&&fe.length&&!d.models.length&&V(R.presetModels))},u=()=>{var R;const K=(R=c.value)==null?void 0:R.keyUrl;K&&window.open(K,"_blank","noopener")},p=()=>{const K=d.website.trim();K&&k(K)&&window.open(K,"_blank","noopener")},d=gn({name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,models:[]}),{testingAll:m,keyStatus:h,modelTest:v,testKey:g,testModel:y,testAll:I,clearModelTest:S,resetKeyStatus:N}=Hu(d),C=Pe(null),j=K=>{var R;return(R=C.value)==null?void 0:R.loadCachedModels(K)},V=K=>{var R;return(R=C.value)==null?void 0:R.addPresetModels(K)},O=()=>{var K;return(K=C.value)==null?void 0:K.resetState()},L=Pe(),U=Pe(!1),k=K=>{try{const R=new URL(K);return R.protocol==="http:"||R.protocol==="https:"}catch{return!1}},M=(K,R,fe)=>{!R||k(R)?fe():fe(new Error("请输入有效的 URL(以 http:// 或 https:// 开头)"))},E={name:[{required:!0,message:"请输入供应商名称",trigger:"blur"}],alias:[{required:!0,message:"请输入供应商英文名称(别名)",trigger:"blur"}],website:[{validator:M,trigger:"blur"}],api_base:[{required:!0,message:"请输入请求地址 (API Base)",trigger:"blur"},{validator:M,trigger:"blur"}],api_key:[{required:!0,message:"请输入 API Key",trigger:"blur"}]},P={anthropic:"/messages",openai:"/chat/completions","openai-responses":"/responses"},w=Gt(()=>{const K=d.api_base.trim().replace(/\/+$/,"");if(!K)return"";const R=P[d.protocol]||"";return d.autoV1&&!/\/v\d+$/i.test(K)?`${K}/v1${R}`:`${K}${R}`}),F=()=>{var K;Object.assign(d,{name:"",alias:"",website:"",api_base:"",protocol:"anthropic",api_key:"",autoV1:!0,models:[]}),(K=L.value)==null||K.clearValidate(),l.value="",O(),N(),S(),te.value=!1,pe.value=null},J=async()=>{var R,fe;F();const K=n.provider;if(n.editName!=null&&K)await j(K.name),Object.assign(d,{name:K.name||"",alias:K.alias||"",website:K.website||"",api_base:K.apiBase||"",protocol:K.customLlmProvider||"anthropic",api_key:K.apiKey||"",autoV1:K.autoV1!==!1,models:K.models.map(Y=>({full_name:Y.modelName,upstream:Y.model,protocol:Y.customLlmProvider||K.customLlmProvider||"anthropic",rawPassthrough:Y.rawPassthrough===!0}))});else if(n.cloneOf){const Y=n.cloneOf;Y.name&&await j(Y.name);const Ie=(R=Y.alias)==null?void 0:R.trim(),be=Ie?`${Ie}-copy`:"copy",Je=`${((fe=Y.name)==null?void 0:fe.trim())||Ie||"供应商"}副本`;Object.assign(d,{name:Je,alias:be,website:Y.website||"",api_base:Y.apiBase||"",protocol:Y.customLlmProvider||"anthropic",api_key:Y.apiKey||"",autoV1:Y.autoV1!==!1,models:(Y.models||[]).map(Re=>{let Ve=Re.modelName;return Ie&&Ve.startsWith(`${Ie}/`)&&(Ve=`${be}/${Ve.slice(Ie.length+1)}`),{full_name:Ve,upstream:Re.model,protocol:Re.customLlmProvider||Y.customLlmProvider||"anthropic",rawPassthrough:Re.rawPassthrough===!0}})})}};la(()=>{r.value=n.editName,J()}),Xo(()=>n.editName,async K=>{r.value=K,await J()});const te=Pe(!1),ie=Pe(!1),pe=Pe(null),ye=K=>{const R=v[K];!R||R.loading||(pe.value={name:K,status:R.status||"",msg:R.msg||"",request:R.request,response:R.response},te.value=!0)},Oe=async()=>{var vt;if(!await((vt=L.value)==null?void 0:vt.validate().catch(()=>!1))||!d.models.length)return;const R=d.models.map(re=>({full_name:re.full_name.trim(),upstream:re.upstream.trim(),protocol:re.protocol||d.protocol,rawPassthrough:re.rawPassthrough===!0})).filter(re=>re.full_name);if(!R.length){i("请至少填写一个有效的模型名称","error");return}const fe=d.name.trim(),Y=d.alias.trim(),Ie=d.website.trim(),be=d.api_base.trim(),Je=d.api_key.trim(),Re=a.suppliers.filter(re=>re.name!==r.value);if(Re.some(re=>re.name===fe)){i(`供应商名称已存在: ${fe}`,"error");return}if(Y&&Re.some(re=>(re.alias??"").trim()===Y)){i(`供应商别名已存在: ${Y}`,"error");return}const Ve={name:fe,...Y?{alias:Y}:{},...Ie?{website:Ie}:{},customLlmProvider:d.protocol,apiKey:Je,apiBase:be,...d.autoV1?{}:{autoV1:!1},models:R.map(re=>({modelName:re.full_name,model:re.upstream,...re.rawPassthrough?{rawPassthrough:!0}:{},...re.protocol&&re.protocol!==d.protocol?{customLlmProvider:re.protocol}:{}}))},Ne=[...Re.flatMap(re=>re.models.map(oe=>oe.modelName)),...R.map(re=>re.full_name)],Fe=new Set;for(const re of Ne){if(Fe.has(re)){i(`模型名称重复: ${re}`,"error");return}Fe.add(re)}U.value=!0;try{const re=r.value==null,oe=await a.saveProviders(re?[Ve,...Re]:[...Re,Ve]);re&&a.moveProviderToTop(fe),i(oe.message||"供应商已保存","success"),o("saved")}catch(re){i(re.message,"error")}finally{U.value=!1}};return(K,R)=>{const fe=z("el-alert"),Y=z("el-option"),Ie=z("el-select"),be=z("el-form-item"),Je=z("el-icon"),Re=z("el-tooltip"),Ve=z("el-input"),Ne=z("el-button"),Fe=z("el-switch"),vt=z("el-form"),re=z("el-dialog");return ee(),De(re,{"model-value":!0,title:r.value?"编辑供应商":"添加供应商",width:"1200px",top:"3vh","align-center":"","close-on-click-modal":!1,onClose:R[12]||(R[12]=oe=>o("close"))},{footer:D(()=>[X("div",Nf,[x(Ne,{onClick:R[11]||(R[11]=oe=>o("close")),disabled:U.value},{default:D(()=>[...R[27]||(R[27]=[se(" 取消 ",-1)])]),_:1},8,["disabled"]),x(Ne,{type:"primary",loading:U.value,onClick:Oe,disabled:!d.models.length||!d.api_base||!d.api_key||U.value},{default:D(()=>[se(Te(U.value?"保存中...":r.value?"保存":"添加供应商"),1)]),_:1},8,["loading","disabled"])])]),default:D(()=>[X("div",gf,[!s.value&&!n.cloneOf?(ee(),De(fe,{key:0,class:"mb-16",type:"info",closable:!1,"show-icon":"",title:"添加流程:选模板 → 去平台创建 API Key → 粘贴 Key → 测试 → 保存。全新手建议从「供应商模板」开始。"})):Ze("",!0),x(vt,{ref_key:"formRef",ref:L,model:d,rules:E,"label-position":"top"},{default:D(()=>[!s.value&&!n.cloneOf?(ee(),De(be,{key:0,label:"供应商模板"},{default:D(()=>[X("div",yf,[x(Ie,{modelValue:l.value,"onUpdate:modelValue":R[0]||(R[0]=oe=>l.value=oe),class:"full-width",placeholder:"选择模板快速填充,或选「自定义」手动填写",onChange:f},{default:D(()=>[(ee(!0),Be(Bo,null,ko(Q(Co),oe=>(ee(),De(Y,{key:oe.id,label:oe.name,value:oe.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),R[13]||(R[13]=X("div",{class:"muted-sm"},"内置常用厂商的地址和配置,选中后自动填充下方所有字段,仍可自由修改",-1))]),_:1})):Ze("",!0),x(be,{prop:"name"},{label:D(()=>[R[14]||(R[14]=X("span",null,"供应商名称",-1)),x(Re,{placement:"top",content:"给你接入的 AI 服务起个名字,只在管理界面显示,随便起(如:DeepSeek、公司中转、朋友的号)。"},{default:D(()=>[x(Je,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1})]),default:D(()=>[x(Ve,{modelValue:d.name,"onUpdate:modelValue":R[1]||(R[1]=oe=>d.name=oe),modelModifiers:{trim:!0},placeholder:"如:DeepSeek(仅用于界面展示)"},null,8,["modelValue"])]),_:1}),x(be,{prop:"alias"},{label:D(()=>[R[15]||(R[15]=X("span",null,"供应商英文名称(别名)",-1)),x(Re,{placement:"top",content:"模型名的统一前缀。添加模型后名字会变成 前缀/模型名(如 ds/deepseek-chat),客户端选择模型时一眼能看出属于哪家。仅限英文小写。"},{default:D(()=>[x(Je,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1})]),default:D(()=>[x(Ve,{modelValue:d.alias,"onUpdate:modelValue":R[2]||(R[2]=oe=>d.alias=oe),modelModifiers:{trim:!0},placeholder:"如:ds"},null,8,["modelValue"]),R[16]||(R[16]=X("div",{class:"muted-sm"},"添加模型时的默认名称前缀,如 ds/deepseek-chat",-1))]),_:1}),x(be,{prop:"website"},{label:D(()=>[R[18]||(R[18]=X("span",null,"官网链接",-1)),x(Re,{placement:"top",content:"选填。方便以后回来查文档、看模型列表;填了之后这里会出现「打开链接」按钮。"},{default:D(()=>[x(Je,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1}),d.website?(ee(),De(Ne,{key:0,class:"label-action-btn",link:"",type:"primary",onClick:p},{default:D(()=>[...R[17]||(R[17]=[se("打开链接",-1)])]),_:1})):Ze("",!0)]),default:D(()=>[x(Ve,{modelValue:d.website,"onUpdate:modelValue":R[3]||(R[3]=oe=>d.website=oe),modelModifiers:{trim:!0},placeholder:"https://platform.deepseek.com(可选)"},null,8,["modelValue"])]),_:1}),x(be,{prop:"api_base"},{label:D(()=>[R[20]||(R[20]=X("span",null,"请求地址 (API Base)",-1)),x(Re,{placement:"top",content:"网关往哪发请求。官方厂商在「API 文档」里找,通常长得像 https://api.xxx.com;中转站会直接给你这个地址。模板会自动填好。"},{default:D(()=>[x(Je,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1}),X("div",Ef,[R[19]||(R[19]=X("span",{class:"muted-13"},"自动补全 /v1",-1)),x(Fe,{modelValue:d.autoV1,"onUpdate:modelValue":R[4]||(R[4]=oe=>d.autoV1=oe)},null,8,["modelValue"])])]),default:D(()=>[x(Ve,{modelValue:d.api_base,"onUpdate:modelValue":R[5]||(R[5]=oe=>d.api_base=oe),modelModifiers:{trim:!0},placeholder:"https://api.deepseek.com"},null,8,["modelValue"]),w.value?(ee(),Be("div",Sf," 实际请求地址:"+Te(w.value)+"(开启自动补全时,地址末尾无 /v1~v9 版本段会插入 /v1;上游无版本前缀请关闭) ",1)):Ze("",!0)]),_:1}),x(be,null,{label:D(()=>[R[22]||(R[22]=X("span",null,"上游协议 (Protocol)",-1)),x(Ne,{class:"label-action-btn",link:"",type:"primary",onClick:R[6]||(R[6]=oe=>ie.value=!0)},{default:D(()=>[...R[21]||(R[21]=[se(" 如何选择 ",-1)])]),_:1})]),default:D(()=>[x(Ie,{modelValue:d.protocol,"onUpdate:modelValue":R[7]||(R[7]=oe=>d.protocol=oe)},{default:D(()=>[x(Y,{label:"Anthropic Messages",value:"anthropic"}),x(Y,{label:"OpenAI Chat Completions",value:"openai"}),x(Y,{label:"OpenAI Responses",value:"openai-responses"})]),_:1},8,["modelValue"]),R[23]||(R[23]=X("div",{class:"muted-sm protocol-hint"},"上游接口的 API 风格,选错会请求失败;拿不准时先用下方「测试」逐个验证。",-1))]),_:1}),x(be,{prop:"api_key"},{label:D(()=>{var oe,Pt;return[R[26]||(R[26]=X("span",null,"API Key",-1)),x(Re,{placement:"top",content:"你在上游平台的「钥匙」,证明请求是你发的、从你账户扣费。在平台控制台创建,形如 sk- 开头的一串字符,粘贴到这里即可。"},{default:D(()=>[x(Je,{class:"col-help-icon"},{default:D(()=>[x(Q(Nt))]),_:1})]),_:1}),(oe=c.value)!=null&&oe.keyUrl?(ee(),De(Ne,{key:0,class:"label-action-btn",link:"",type:"primary",onClick:u},{default:D(()=>[...R[24]||(R[24]=[se("获取 Key",-1)])]),_:1})):Ze("",!0),x(Ne,{class:"label-action-btn",link:"",type:"primary",loading:(Pt=Q(h))==null?void 0:Pt.loading,disabled:!d.api_base||!d.api_key,onClick:Q(g)},{default:D(()=>[...R[25]||(R[25]=[se("测试",-1)])]),_:1},8,["loading","disabled","onClick"])]}),default:D(()=>{var oe;return[x(Ve,{modelValue:d.api_key,"onUpdate:modelValue":R[8]||(R[8]=Pt=>d.api_key=Pt),modelModifiers:{trim:!0},placeholder:"如:sk-xxxxxxxx(DeepSeek 开放平台密钥)",onKeyup:Us(Q(g),["enter"])},null,8,["modelValue","onKeyup"]),Q(h)&&!Q(h).loading?(ee(),Be("div",bf,[Q(h).status==="ok"?(ee(),Be("span",Tf,Te(Q(h).msg),1)):Q(h).status==="fail"?(ee(),Be("span",Of,Te(Q(h).msg),1)):Ze("",!0)])):Ze("",!0),(oe=c.value)!=null&&oe.keyNote?(ee(),Be("div",If,Te(c.value.keyNote),1)):Ze("",!0)]}),_:1}),x(vf,{ref_key:"modelEditorRef",ref:C,form:d,"model-test":Q(v),"testing-all":Q(m),"editing-name":r.value,onTestModel:Q(y),onTestAll:Q(I),onShowTestDetail:ye},null,8,["form","model-test","testing-all","editing-name","onTestModel","onTestAll"])]),_:1},8,["model"])]),x(Zu,{modelValue:te.value,"onUpdate:modelValue":R[9]||(R[9]=oe=>te.value=oe),detail:pe.value},null,8,["modelValue","detail"]),x(cf,{modelValue:ie.value,"onUpdate:modelValue":R[10]||(R[10]=oe=>ie.value=oe)},null,8,["modelValue"])]),_:1},8,["title"])}}}),Af=cn(Cf,[["__scopeId","data-v-05bf13ed"]]),xf={class:"models-dialog-body"},Pf=["onClick"],Df={class:"muted-13"},Rf={key:3,class:"muted-disabled"},Mf={key:0,class:"muted-12"},Lf={key:1,class:"muted-disabled"},wf={key:0,class:"muted-12"},Vf={key:1,class:"muted-disabled"},Ff=Jt({__name:"ProviderModelsDialog",props:{modelValue:{type:Boolean},providerName:{}},emits:["update:modelValue","copy-model","changed"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Ko(),r=Ai(),s=Gt(()=>n.providerName!=null?a.suppliers.find(f=>f.name===n.providerName):void 0),l=Gt(()=>{const f=s.value;return f?f.alias&&f.alias!==f.name?`${f.name}(${f.alias})`:f.name:""}),c=async f=>{try{await Ao.confirm(`确定删除模型 "${f}"?`,"确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),await a.deleteModel(f),o("changed"),i("模型已删除","success")}catch(u){u!=="cancel"&&i(u.message,"error")}};return(f,u)=>{const p=z("el-alert"),d=z("el-table-column"),m=z("el-tag"),h=z("el-tooltip"),v=z("el-button"),g=z("el-table"),y=z("el-empty"),I=z("el-dialog");return ee(),De(I,{"model-value":e.modelValue,title:l.value,width:"1200px",top:"3vh","destroy-on-close":"","onUpdate:modelValue":u[0]||(u[0]=S=>o("update:modelValue",S))},{default:D(()=>[X("div",xf,[s.value?(ee(),De(p,{key:0,class:"mb-8",type:"info",closable:!1,"show-icon":"",title:"测试走网关代理:请求经本网关转发至上游(含协议转换、计费记录),验证完整链路;编辑弹窗内测试为直连上游,仅验证连通性。"})):Ze("",!0),s.value&&s.value.models.length?(ee(),De(g,{key:1,border:"",data:s.value.models,stripe:"",class:"models-table full-width"},{default:D(()=>[x(d,{prop:"modelName",label:"模型名称","min-width":"220"},{default:D(({row:S})=>[X("span",{class:"link-blue",onClick:N=>o("copy-model",S.modelName),title:"点击复制"},Te(S.modelName),9,Pf)]),_:1}),x(d,{prop:"model",label:"上游模型","min-width":"180"},{default:D(({row:S})=>[X("span",Df,Te(S.model),1)]),_:1}),x(d,{prop:"customLlmProvider",label:"上游协议",width:"100",align:"center"},{default:D(({row:S})=>[x(m,{type:"info"},{default:D(()=>[se(Te(S.customLlmProvider||s.value.customLlmProvider),1)]),_:2},1024)]),_:1}),x(d,{label:"状态",width:"150",align:"center"},{default:D(({row:S})=>[Q(r).modelStatus[S.modelName]==="ok"?(ee(),De(m,{key:0,type:"success"},{default:D(()=>[...u[1]||(u[1]=[se("通过",-1)])]),_:1})):Q(r).modelStatus[S.modelName]==="error"?(ee(),De(h,{key:1,content:Q(r).modelMessage[S.modelName],placement:"top","show-after":300},{default:D(()=>[x(m,{type:"danger",class:"error-tag"},{default:D(()=>[se(Te(Q(r).modelMessage[S.modelName]),1)]),_:2},1024)]),_:2},1032,["content"])):Q(r).modelStatus[S.modelName]==="testing"?(ee(),De(m,{key:2,type:"warning"},{default:D(()=>[...u[2]||(u[2]=[se("测试中",-1)])]),_:1})):(ee(),Be("span",Rf,"-"))]),_:1}),x(d,{label:"耗时",width:"80",align:"center"},{default:D(({row:S})=>[Q(r).modelLatency[S.modelName]?(ee(),Be("span",Mf,Te((Q(r).modelLatency[S.modelName]/1e3).toFixed(1))+"s ",1)):(ee(),Be("span",Lf,"-"))]),_:1}),x(d,{label:"上次测试","min-width":"160"},{default:D(({row:S})=>[Q(r).modelTime[S.modelName]?(ee(),Be("span",wf,Te(Q(r).modelTime[S.modelName]),1)):(ee(),Be("span",Vf,"未测试"))]),_:1}),x(d,{label:"操作",width:"140",align:"center"},{default:D(({row:S})=>[x(v,{link:"",loading:Q(r).modelStatus[S.modelName]==="testing",onClick:N=>Q(r).testProxy(S.modelName)},{default:D(()=>[...u[3]||(u[3]=[se(" 测试 ",-1)])]),_:1},8,["loading","onClick"]),x(v,{link:"",type:"danger",onClick:N=>c(S.modelName)},{default:D(()=>[...u[4]||(u[4]=[se(" 删除 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])):s.value?(ee(),De(y,{key:2,description:"暂无模型","image-size":64})):Ze("",!0)])]),_:1},8,["model-value","title"])}}}),$f=cn(Ff,[["__scopeId","data-v-a79f8c7b"]]),Uf={class:"muted-sm mb-8"},jf={class:"flex-between"},Bf={class:"flex-gap-8"},kf=Jt({__name:"ConfigFileDialog",props:{modelValue:{type:Boolean}},emits:["update:modelValue","saved"],setup(e,{emit:t}){const n=e,o=t,{toast:i}=un(),a=Pe(""),r=Pe(""),s=Pe(!1);Xo(()=>n.modelValue,async f=>{if(f){a.value="";try{const u=await Yt.get("/api/config");a.value=JSON.stringify(u,null,2)+`
|
|
31
|
+
`,r.value="ezllm.config.json"}catch(u){i(u.message,"error")}}});const l=async()=>{const f=await ca(a.value);i(f?"已复制":"复制失败",f?"success":"error")},c=async()=>{s.value=!0;try{const f=JSON.parse(a.value),u=await Yt.put("/api/config",f);o("update:modelValue",!1),i(u.message||"配置已保存","success"),u.restartHint&&i(u.restartHint,"warning"),o("saved")}catch(f){f instanceof SyntaxError?i(`JSON 解析失败: ${f.message}`,"error"):i(f.message,"error")}finally{s.value=!1}};return(f,u)=>{const p=z("el-input"),d=z("el-button"),m=z("el-dialog");return ee(),De(m,{"model-value":e.modelValue,title:"配置文件",width:"800px",top:"5vh","destroy-on-close":"","onUpdate:modelValue":u[2]||(u[2]=h=>o("update:modelValue",h))},{footer:D(()=>[X("div",jf,[x(d,{onClick:l},{default:D(()=>[...u[3]||(u[3]=[se("复制",-1)])]),_:1}),X("div",Bf,[x(d,{onClick:u[1]||(u[1]=h=>o("update:modelValue",!1))},{default:D(()=>[...u[4]||(u[4]=[se("取消",-1)])]),_:1}),x(d,{type:"primary",loading:s.value,onClick:c},{default:D(()=>[...u[5]||(u[5]=[se("保存并生效",-1)])]),_:1},8,["loading"])])])]),default:D(()=>[X("div",Uf," 配置文件:"+Te(r.value)+"(原样保存,校验通过后热更新生效) ",1),x(p,{type:"textarea",rows:24,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=h=>a.value=h),placeholder:"loading...",spellcheck:"false",class:"full-width"},null,8,["modelValue"])]),_:1},8,["model-value"])}}}),Xf={class:"flex-end mb-16"},Kf={key:1,class:"loading-block"},Hf=Jt({__name:"ProvidersView",setup(e){const{toast:t}=un(),n=Ko(),o=Ai(),{loadError:i,run:a}=Ks(),r=Pe(!1),s=Pe(null),l=Pe(null),c=Pe(!1),f=Pe(null),u=Pe(!1),p=Pe(null),d=Gt({get:()=>n.orderedProviders,set:E=>n.reorderProviders(E)});function m(){}const h=()=>a(async()=>{await Promise.all([n.loadProviders(),o.loadResults()])}),v=()=>{const E={version:2,exported_at:new Date().toISOString(),providers:n.suppliers},P=new Blob([JSON.stringify(E,null,2)],{type:"application/json"}),w=URL.createObjectURL(P),F=document.createElement("a");F.href=w,F.download=`ezllm-providers-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(F),F.click(),document.body.removeChild(F),URL.revokeObjectURL(w),t("已导出供应商配置","success")},g=()=>{var E;(E=p.value)==null||E.click()},y=E=>{var P,w;return E.customLlmProvider!==void 0||((w=(P=E.models)==null?void 0:P[0])==null?void 0:w.modelName)!==void 0?E:{name:String(E.name??""),...E.alias?{alias:String(E.alias)}:{},customLlmProvider:String(E.protocol??"openai"),...E.api_key?{apiKey:String(E.api_key)}:{},...E.api_base?{apiBase:String(E.api_base)}:{},models:(E.models??[]).map(F=>({modelName:String(F.full_name??""),model:String(F.upstream_model??F.full_name??""),...F.protocol&&F.protocol!==E.protocol?{customLlmProvider:String(F.protocol)}:{},...F.info!==void 0?{info:F.info}:{}}))}},I=async E=>{var F;const P=E.target,w=(F=P.files)==null?void 0:F[0];if(P.value="",!!w)try{const J=await w.text(),te=JSON.parse(J),ie=Array.isArray(te)?te:Array.isArray(te.providers)?te.providers:Array.isArray(te.suppliers)?te.suppliers:null;if(!ie){t("文件格式错误:未找到 providers","error");return}const pe=ie.map(Oe=>y(Oe));await Ao.confirm(`确定导入 ${pe.length} 个供应商?将覆盖当前配置。`,"导入确认",{confirmButtonText:"导入",cancelButtonText:"取消",type:"warning"});const ye=await n.saveProviders(pe);await h(),t(ye.message||"导入成功","success")}catch(J){J!=="cancel"&&t(J.message||"导入失败","error")}},S=()=>{s.value=null,l.value=null,r.value=!0},N=E=>{s.value=E,l.value=null,r.value=!0},C=E=>{const P=n.suppliers.find(w=>w.name===E);P&&(s.value=null,l.value=P,r.value=!0)},j=()=>{r.value=!1,l.value=null},V=async()=>{r.value=!1,l.value=null,await h()},O=E=>E?E.length<=8?E:`${E.substring(0,6)}...${E.substring(E.length-4)}`:"-",L=E=>E.name||E.alias||O(E.apiKey||""),U=async E=>{try{const P=n.suppliers.find(w=>w.name===E);if(!P)return;await Ao.confirm(`确定删除该供应商(${L(P)})及其所有模型?`,"确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}),await n.deleteProvider(P),await h(),t("供应商已删除","success")}catch(P){P!=="cancel"&&t(P.message,"error")}},k=E=>{f.value=E,c.value=!0},M=async E=>{await ca(E)?t(`已复制: ${E}`,"success"):t("复制失败","error")};return la(h),(E,P)=>{const w=z("el-icon"),F=z("el-button"),J=z("el-alert"),te=z("el-empty");return ee(),Be("div",null,[X("div",Xf,[x(F,{onClick:v},{default:D(()=>[x(w,null,{default:D(()=>[x(Q(js))]),_:1}),P[4]||(P[4]=se(" 导出 ",-1))]),_:1}),x(F,{onClick:g},{default:D(()=>[x(w,null,{default:D(()=>[x(Q(Bs))]),_:1}),P[5]||(P[5]=se(" 导入 ",-1))]),_:1}),x(F,{onClick:P[0]||(P[0]=ie=>u.value=!0)},{default:D(()=>[x(w,null,{default:D(()=>[x(Q(ks))]),_:1}),P[6]||(P[6]=se(" 配置文件 ",-1))]),_:1}),x(F,{type:"primary",onClick:S},{default:D(()=>[x(w,null,{default:D(()=>[x(Q(Xs))]),_:1}),P[7]||(P[7]=se(" 添加供应商 ",-1))]),_:1})]),Q(i)?(ee(),De(J,{key:0,title:Q(i),type:"error","show-icon":"",closable:!1,class:"mb-16"},{default:D(()=>[x(F,{size:"small",onClick:h},{default:D(()=>[...P[8]||(P[8]=[se("重试",-1)])]),_:1})]),_:1},8,["title"])):Ze("",!0),Q(n).loading?(ee(),Be("div",Kf,"加载中...")):!Q(i)&&Q(n).orderedProviders.length===0?(ee(),De(te,{key:2,description:"暂无供应商,点击上方按钮添加"})):(ee(),De(Q(Au),{key:3,modelValue:d.value,"onUpdate:modelValue":P[1]||(P[1]=ie=>d.value=ie),"item-key":"name",filter:".card-actions","prevent-on-filter":!1,"ghost-class":"ghost","drag-class":"dragging",class:"provider-grid",onChange:m},{item:D(({element:ie})=>[x(Ku,{provider:ie,onClone:pe=>C(ie.name),onDelete:pe=>U(ie.name),onEdit:pe=>N(ie.name),onOpenModels:pe=>k(ie.name),onCopyModel:M},null,8,["provider","onClone","onDelete","onEdit","onOpenModels"])]),_:1},8,["modelValue"])),r.value?(ee(),De(Af,{key:4,"edit-name":s.value,provider:s.value!=null?Q(n).suppliers.find(ie=>ie.name===s.value):void 0,"clone-of":l.value,onClose:j,onSaved:V},null,8,["edit-name","provider","clone-of"])):Ze("",!0),x($f,{modelValue:c.value,"onUpdate:modelValue":P[2]||(P[2]=ie=>c.value=ie),"provider-name":f.value,onCopyModel:M,onChanged:h},null,8,["modelValue","provider-name"]),x(kf,{modelValue:u.value,"onUpdate:modelValue":P[3]||(P[3]=ie=>u.value=ie),onSaved:h},null,8,["modelValue"]),X("input",{ref_key:"fileInput",ref:p,type:"file",accept:".json,application/json",style:{display:"none"},onChange:I},null,544)])}}}),_f=cn(Hf,[["__scopeId","data-v-f3ad9421"]]);export{_f as default};
|