(self["webpackChunkclassroom"]=self["webpackChunkclassroom"]||[]).push([[544],{206:function(e,t,r){"use strict";var n=r(1702);e.exports=n([].slice)},9363:function(e){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},6833:function(e,t,r){"use strict";var n=r(8113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},2805:function(e,t,r){"use strict";var n=r(7854),i=r(4326);e.exports="process"===i(n.process)},2104:function(e,t,r){"use strict";var n=r(4374),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},9974:function(e,t,r){"use strict";var n=r(1470),i=r(9662),o=r(4374),s=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},1470:function(e,t,r){"use strict";var n=r(4326),i=r(1702);e.exports=function(e){if("Function"===n(e))return i(e)}},490:function(e,t,r){"use strict";var n=r(5005);e.exports=n("document","documentElement")},7066:function(e,t,r){"use strict";var n=r(9670);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},7152:function(e,t,r){"use strict";var n=r(7854),i=r(2104),o=r(614),s=r(9363),a=r(8113),l=r(206),c=r(8053),u=n.Function,d=/MSIE .\./.test(a)||s&&function(){var e=n.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var r=t?2:1;return d?function(n,s){var a=c(arguments.length,1)>r,d=o(n)?n:u(n),h=a?l(arguments,r):[],f=a?function(){i(d,this,h)}:d;return t?e(f,s):e(f)}:e}},261:function(e,t,r){"use strict";var n,i,o,s,a=r(7854),l=r(2104),c=r(9974),u=r(614),d=r(2597),h=r(7293),f=r(490),p=r(206),g=r(317),m=r(8053),v=r(6833),y=r(2805),b=a.setImmediate,x=a.clearImmediate,w=a.process,C=a.Dispatch,S=a.Function,A=a.MessageChannel,k=a.String,T=0,P={},E="onreadystatechange";h((function(){n=a.location}));var _=function(e){if(d(P,e)){var t=P[e];delete P[e],t()}},O=function(e){return function(){_(e)}},M=function(e){_(e.data)},z=function(e){a.postMessage(k(e),n.protocol+"//"+n.host)};b&&x||(b=function(e){m(arguments.length,1);var t=u(e)?e:S(e),r=p(arguments,1);return P[++T]=function(){l(t,void 0,r)},i(T),T},x=function(e){delete P[e]},y?i=function(e){w.nextTick(O(e))}:C&&C.now?i=function(e){C.now(O(e))}:A&&!v?(o=new A,s=o.port2,o.port1.onmessage=M,i=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!h(z)?(i=z,a.addEventListener("message",M,!1)):i=E in g("script")?function(e){f.appendChild(g("script"))[E]=function(){f.removeChild(this),_(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:b,clear:x}},2087:function(e,t,r){"use strict";var n=r(7854),i=r(9781),o=r(7045),s=r(7066),a=r(7293),l=n.RegExp,c=l.prototype,u=i&&a((function(){var e=!0;try{l(".","d")}catch(u){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",i=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(o.hasIndices="d"),o)i(s,o[s]);var a=Object.getOwnPropertyDescriptor(c,"flags").get.call(t);return a!==n||r!==n}));u&&o(c,"flags",{configurable:!0,get:s})},7336:function(e,t,r){"use strict";var n=r(2109),i=r(7854),o=r(261).clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},4633:function(e,t,r){"use strict";r(7336),r(2986)},2986:function(e,t,r){"use strict";var n=r(2109),i=r(7854),o=r(261).set,s=r(7152),a=i.setImmediate?s(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==a},{setImmediate:a})},6346:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});r(7658);var n=r(3396),i=r(7139),o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAA8CAMAAAD43KLwAAAAaVBMVEUAAAD////88+P98+P88uP88+P98+P98+P/9en////98uP98uP88uP98+P99OP/8uX/+OX//+r98+P98+P98+P98+P98+P89OT/8+T/9eX///D98uL98uL98+P89OL/9OX/9uP//+T88uIA/aeuAAAAInRSTlMABML1trGYZBgH8u7IqnU7Iwv34s+kfV1TMBHfjYBZRTYT0FswqwAAALVJREFUSMfNyycCwkAAAEEuvSeQHvr+/5EIDHYd4+f0n6bk3gc1AKpskANoBzuIczsgPdtBdBbDFH7NevDQoy7s4KZH/LaDRY9JDwo9Vj0yPRo9LsEOdj1yPTI9Gj0uwQ52PXI9Mj0aPeJgBy89Oj1SParSDjY9Wj3iww46PcZgB6se19IOOj3qwg4iPVj0oNdjPOwg1YNZD9pgB2lpB0lpB9FgB1VuBySFHdSbHRD1dkDy/IYP8jKhNSdnIDsAAAAASUVORK5CYII=",s=r(2483);const a=e=>((0,n.dD)("data-v-8e68e1f2"),e=e(),(0,n.Cn)(),e),l={class:"navContainer"},c={class:"container"},u={class:"navCon"},d=["src"],h=a((()=>(0,n._)("img",{class:"horn",src:o},null,-1))),f=["onClick"],p={key:0,class:"arrow"};var g=(0,n.aZ)({__name:"navContainer",props:{headImg:{default:()=>({img:r(9407),url:"back"})},navs:{}},setup(e){const t=e,r=(0,s.tv)();function o(e){e&&("back"===e?r.back():r.push(e))}return(e,r)=>((0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",c,[(0,n._)("div",u,[(0,n._)("div",{class:(0,i.C_)(["navImg",{cursor:t.headImg.url}])},[(0,n._)("img",{src:t.headImg.img,onClick:r[0]||(r[0]=e=>o(t.headImg.url))},null,8,d)],2),h,((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(e.navs,((t,r)=>((0,n.wg)(),(0,n.iD)("div",{class:"nav",key:t.name},[(0,n._)("div",{class:(0,i.C_)(["name",{cursor:t.url}]),onClick:e=>o(t.url)},(0,i.zw)(t.name),11,f),e.navs.length>r+1?((0,n.wg)(),(0,n.iD)("div",p,">")):(0,n.kq)("",!0)])))),128))]),(0,n.WI)(e.$slots,"default")])]))}}),m=r(89);const v=(0,m.Z)(g,[["__scopeId","data-v-8e68e1f2"]]);var y=v,b=y},7480:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(3396),i=r(9242),o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAk1BMVEUAAAD/gVb/gVT/gFf/hFj/gFf/gFf/gFf/gFf/gFb/gFf/gVf/gFf/gFf/gFf/gFf/gFf/gFf/glb/gEj/gFf/gFf/gFf/gFf/gVf/gFf/gFf/gFf/gFf/gVf/gFj/gFb/gFb/glj/gFj/gFj/gFf/gFj/gFf/gFf/gFf/gFb/glj/gVf/gVf/gFf/f1f/glf/gFdgjBAJAAAAMHRSTlMACQ1CEvz2Y+24+t+7q4zkvl0aBtnCpWpN8s2Wem5JMyUex8OxnnRRPTg3MIWDLFiK4Dr0AAABkElEQVQ4y42T55aCQAyFQ2+KNLEhqGtvm/d/uj0TmIUheOT+S/JNSO4M0JHxnAS25Wb5Yg+fpRcz/JflGZ84x0VV3mBXfYpMqwvnzDUOyNqyfg1nH+O3qe2NMGvQRQ+c1g3ydqo4oJR/Vfeo24mRtNJJ6mE8SgZad0CXuDtAsrERpS85ka8OWFDmF6CkExJMD7S62YLk8xTA8BGPy7aw80Wh3dygRXZiAnsJXW1E5QBSIV0DpVUOHtRCl2FUG5au8Ag9kUdXZcQKjLoh99eRkS2iRJhp9sFQuR1LRDokVQV9PUXpLCMybwdDOikd19JlLtqzVI6FQ5xuKx+L6fIZxSumX5vARa9y03NrZjJui0KPNnGjRJT2uCt9yeMPfKopnOEisyOpc+t3m0rPPpI85fjSoqR1qpr9nAClIp39NbRTHob5wcKO5goZ+8g0TN6zsaRWuErVu0xQ6kchQXciu6kE4QNA8zgppd3i7dkpkyZiPbkYOU/Hki8YSc5gJGnDSHL+hZMu+Tf4qrTIVtEd/gCssmQzfH+BlQAAAABJRU5ErkJggg==",s=r(4870),a=r(1407);const l={key:1,class:"imgSs",src:o};var c=(0,n.aZ)({__name:"myInput",props:{width:{},height:{}},emits:["handleQuery"],setup(e,{emit:t}){const r=e;(0,i.sj)((e=>({73017252:o.value,"594443ca":c.value})));const o=(0,n.Fl)((()=>r.width?(r.width/a.cM).toFixed(5)+"rem":"100%")),c=(0,n.Fl)((()=>((r.height||32)/a.cM).toFixed(5)+"rem")),u=(0,s.iH)(!1);function d(){u.value=!0}function h(){u.value=!1}function f(){t("handleQuery")}return(e,t)=>{const r=(0,n.up)("el-input");return(0,n.wg)(),(0,n.j4)(r,(0,n.dG)({class:"h_myInput"},e.$attrs,{onFocus:d,onBlur:h,class:{isInputFocus:u.value}}),{prepend:(0,n.w5)((()=>[e.$slots.prepend?(0,n.WI)(e.$slots,"prepend",{key:0}):((0,n.wg)(),(0,n.iD)("img",l))])),append:(0,n.w5)((()=>[e.$slots.append?(0,n.WI)(e.$slots,"append",{key:0}):((0,n.wg)(),(0,n.iD)("div",{key:1,class:"btnSelect",onClick:f},"搜索"))])),_:3},16,["class"])}}});const u=c;var d=u,h=d},5864:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return rh}});var n=r(3396),i=(r(7658),r(4870)),o={cloudPractice:"gUdkNCWuR1AAeoTAFNeP",elScrollbar:"NA1ZVMJUmXc6XZFnzHz9","el-scrollbar__view":"hbiSB3qfNNYceVJMxjvx","el-scrollbar__wrap":"rlSvvjDW43eEcTLbze30",leftContainer:"xnWYT0SgcEn5sZkaKQRL",details:"pQQsm3vGgeLZVyGbWaVw",leftSection:"obDcSqqbaq8i4TSzU3Co",leftSection_item:"Jcng1JooTs9ykuV2hlxg",leftSection_item__active:"MjOrHV2WPNcnrM0uxZAn",musicList:"zAJ1ND58F6oUiQCp4e_X",searchHeader:"cpEkZtlIiw06g5AW3jwW",categorySection:"lR2KHijk3Zk8YSNtyNzx",iconTagName:"l20SutocM2Qh7x8On7fP",show:"hV6__2vwdEBehYSWluNO",searchMore:"w9G7GL2NokcUPh_oX6l8",searchSection:"wL5SFevLbk1axGl0qe3v",btnSearch:"NxBu5tg8pIs7GnL_5WR4",btnSearchActive:"w6cpkWky0gfRhQBv0g9K",wrapList:"zGVnMLKl8Yh4dQ2P8Esb",wrapListEmpty:"jFWRzXEYIcjsBZLWczUK",empty:"pNaQOgDFVrARkRmiGTAf",item:"u4LgXM7YjY0Lg9iwEa0t",img:"QkcaQ8Xp_s8DK1XD6fKf",showPlayLoading:"NELQPnO3nEkkmvpSiRln",itemInfo:"GwR7KuIr7UYtXQRuGFdo",titleName:"XYBFpenumPoYJHkTj3Vw",btn:"YQaNXgg8qgNPsanwj47E",loadingWrap:"zQyz8qajH7MiULhq_AqT",showLoading:"n_QNnhkua5svTwn10f7m",rightContainer:"QpvmlaeJdmQiZxA4QnGF",leftArrow:"zg9PK3hFsr8wlIlxPiBH",goBtn:"X2mAclqFOOk2CAdSMkg4",musicName:"BmtJ43rAz4010sBs9zVs",staffImgs:"u3uGV6NZ14E6hsBHgFx7",staffImgsEmpty:"mIm7moZpwIOIhkxrYZzw",rightBtns:"xgboCsqX5cMxG24VyvFD",transBtn:"JRdOwye3O_EBTuxvVEXJ",disableBtn:"CG6uw_ZF3uEsan3Qjmse"},s=r(6346),a=r(7178),l=r(243),c=r(3870),u=r(3515),d=r(7480),h=r(8385),f=r(5600),p=r(3269),g=r(7477),m=r(4498);function v(e,t){return(0,n.Fl)((()=>{for(const r of t)if(void 0!==e[r])return e[r];return e[t[t.length-1]]}))}var y=r(3542),b=r(4501),x=r(9627);function w(e,t=!0,r=[]){return e.forEach((e=>{if(null!==e)if("object"===typeof e)if(Array.isArray(e))w(e,t,r);else if(e.type===n.HY){if(null===e.children)return;Array.isArray(e.children)&&w(e.children,t,r)}else{if(e.type===n.sv&&t)return;r.push(e)}else"string"!==typeof e&&"number"!==typeof e||r.push((0,n.Uk)(String(e)))})),r}var C=r(4258);function S(e,t="default",r=void 0){const n=e[t];if(!n)return(0,C.ZK)("getFirstSlotVNode",`slot[${t}] is empty`),null;const i=w(n(r));return 1===i.length?i[0]:((0,C.ZK)("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function A(e,t=[],r){const n={};return t.forEach((t=>{n[t]=e[t]})),Object.assign(n,r)}var k=r(6067),T=r(9242);function P(e=8){return Math.random().toString(16).slice(2,2+e)}function E(e){return e.composedPath()[0]||null}var _=r(5755);function O(e){return e instanceof HTMLElement}function M(e){for(let t=0;t=0;t--){const r=e.childNodes[t];if(O(r)&&(R(r)||z(r)))return!0}return!1}function R(e){if(!B(e))return!1;try{e.focus({preventScroll:!0})}catch(uc){}return document.activeElement===e}function B(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}function I(e){return"string"===typeof e?document.querySelector(e):e()}let N=[];const L=(0,n.aZ)({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=P(),r=(0,i.iH)(null),o=(0,i.iH)(null);let s=!1,a=!1;const l="undefined"===typeof document?null:document.activeElement;function c(){const e=N[N.length-1];return e===t}function u(t){var r;"Escape"===t.code&&c()&&(null===(r=e.onEsc)||void 0===r||r.call(e,t))}function d(e){if(!a&&c()){const t=h();if(null===t)return;if(t.contains(E(e)))return;g("first")}}function h(){const e=r.value;if(null===e)return null;let t=e;while(1){if(t=t.nextSibling,null===t)break;if(t instanceof Element&&"DIV"===t.tagName)break}return t}function f(){var r;if(!e.disabled){if(N.push(t),e.autoFocus){const{initialFocusTo:t}=e;void 0===t?g("first"):null===(r=I(t))||void 0===r||r.focus({preventScroll:!0})}s=!0,document.addEventListener("focus",d,!0)}}function p(){var r;if(e.disabled)return;if(document.removeEventListener("focus",d,!0),N=N.filter((e=>e!==t)),c())return;const{finalFocusTo:n}=e;void 0!==n?null===(r=I(n))||void 0===r||r.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(a=!0,l.focus({preventScroll:!0}),a=!1)}function g(t){if(c()&&e.active){const e=r.value,n=o.value;if(null!==e&&null!==n){const r=h();if(null==r||r===n)return a=!0,e.focus({preventScroll:!0}),void(a=!1);a=!0;const i="first"===t?M(r):z(r);a=!1,i||(a=!0,e.focus({preventScroll:!0}),a=!1)}}}function m(e){if(a)return;const t=h();null!==t&&(null!==e.relatedTarget&&t.contains(e.relatedTarget)?g("last"):g("first"))}function v(e){a||(null!==e.relatedTarget&&e.relatedTarget===r.value?g("last"):g("first"))}return(0,n.bv)((()=>{(0,n.YP)((()=>e.active),(e=>{e?(f(),(0,_.on)("keydown",document,u)):((0,_.S)("keydown",document,u),s&&p())}),{immediate:!0})})),(0,n.Jd)((()=>{(0,_.S)("keydown",document,u),s&&p()})),{focusableStartRef:r,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:m,handleEndFocus:v}},render(){const{default:e}=this.$slots;if(void 0===e)return null;if(this.disabled)return e();const{active:t,focusableStyle:r}=this;return(0,n.h)(n.HY,null,[(0,n.h)("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:r,onFocus:this.handleStartFocus}),e(),(0,n.h)("div",{"aria-hidden":"true",style:r,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});var F=r(9766);const D="@@coContext",H={mounted(e,{value:t,modifiers:r}){e[D]={handler:void 0},"function"===typeof t&&(e[D].handler=t,(0,_.on)("clickoutside",e,t,{capture:r.capture}))},updated(e,{value:t,modifiers:r}){const n=e[D];"function"===typeof t?n.handler?n.handler!==t&&((0,_.S)("clickoutside",e,n.handler,{capture:r.capture}),n.handler=t,(0,_.on)("clickoutside",e,t,{capture:r.capture})):(e[D].handler=t,(0,_.on)("clickoutside",e,t,{capture:r.capture})):n.handler&&((0,_.S)("clickoutside",e,n.handler,{capture:r.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:r}=e[D];r&&(0,_.S)("clickoutside",e,r,{capture:t.capture}),e[D].handler=void 0}};var W=H;const V="@@mmoContext",U={mounted(e,{value:t}){e[V]={handler:void 0},"function"===typeof t&&(e[V].handler=t,(0,_.on)("mousemoveoutside",e,t))},updated(e,{value:t}){const r=e[V];"function"===typeof t?r.handler?r.handler!==t&&((0,_.S)("mousemoveoutside",e,r.handler),r.handler=t,(0,_.on)("mousemoveoutside",e,t)):(e[V].handler=t,(0,_.on)("mousemoveoutside",e,t)):r.handler&&((0,_.S)("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted(e){const{handler:t}=e[V];t&&(0,_.S)("mousemoveoutside",e,t),e[V].handler=void 0}};var j,Z=U,G=[],X=function(){return G.some((function(e){return e.activeTargets.length>0}))},Y=function(){return G.some((function(e){return e.skippedTargets.length>0}))},$="ResizeObserver loop completed with undelivered notifications.",q=function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:$}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=$),window.dispatchEvent(e)};(function(e){e["BORDER_BOX"]="border-box",e["CONTENT_BOX"]="content-box",e["DEVICE_PIXEL_CONTENT_BOX"]="device-pixel-content-box"})(j||(j={}));var Q,J=function(e){return Object.freeze(e)},K=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,J(this)}return e}(),ee=function(){function e(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,J(this)}return e.prototype.toJSON=function(){var e=this,t=e.x,r=e.y,n=e.top,i=e.right,o=e.bottom,s=e.left,a=e.width,l=e.height;return{x:t,y:r,top:n,right:i,bottom:o,left:s,width:a,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),te=function(e){return e instanceof SVGElement&&"getBBox"in e},re=function(e){if(te(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},ne=function(e){var t;if(e instanceof Element)return!0;var r=null===(t=null===e||void 0===e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},ie=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},oe="undefined"!==typeof window?window:{},se=new WeakMap,ae=/auto|scroll/,le=/^tb|vertical/,ce=/msie|trident/i.test(oe.navigator&&oe.navigator.userAgent),ue=function(e){return parseFloat(e||"0")},de=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===r&&(r=!1),new K((r?t:e)||0,(r?e:t)||0)},he=J({devicePixelContentBoxSize:de(),borderBoxSize:de(),contentBoxSize:de(),contentRect:new ee(0,0,0,0)}),fe=function(e,t){if(void 0===t&&(t=!1),se.has(e)&&!t)return se.get(e);if(re(e))return se.set(e,he),he;var r=getComputedStyle(e),n=te(e)&&e.ownerSVGElement&&e.getBBox(),i=!ce&&"border-box"===r.boxSizing,o=le.test(r.writingMode||""),s=!n&&ae.test(r.overflowY||""),a=!n&&ae.test(r.overflowX||""),l=n?0:ue(r.paddingTop),c=n?0:ue(r.paddingRight),u=n?0:ue(r.paddingBottom),d=n?0:ue(r.paddingLeft),h=n?0:ue(r.borderTopWidth),f=n?0:ue(r.borderRightWidth),p=n?0:ue(r.borderBottomWidth),g=n?0:ue(r.borderLeftWidth),m=d+c,v=l+u,y=g+f,b=h+p,x=a?e.offsetHeight-b-e.clientHeight:0,w=s?e.offsetWidth-y-e.clientWidth:0,C=i?m+y:0,S=i?v+b:0,A=n?n.width:ue(r.width)-C-w,k=n?n.height:ue(r.height)-S-x,T=A+m+w+y,P=k+v+x+b,E=J({devicePixelContentBoxSize:de(Math.round(A*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:de(T,P,o),contentBoxSize:de(A,k,o),contentRect:new ee(d,l,A,k)});return se.set(e,E),E},pe=function(e,t,r){var n=fe(e,r),i=n.borderBoxSize,o=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case j.DEVICE_PIXEL_CONTENT_BOX:return s;case j.BORDER_BOX:return i;default:return o}},ge=function(){function e(e){var t=fe(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=J([t.borderBoxSize]),this.contentBoxSize=J([t.contentBoxSize]),this.devicePixelContentBoxSize=J([t.devicePixelContentBoxSize])}return e}(),me=function(e){if(re(e))return 1/0;var t=0,r=e.parentNode;while(r)t+=1,r=r.parentNode;return t},ve=function(){var e=1/0,t=[];G.forEach((function(r){if(0!==r.activeTargets.length){var n=[];r.activeTargets.forEach((function(t){var r=new ge(t.target),i=me(t.target);n.push(r),t.lastReportedSize=pe(t.target,t.observedBox),ie?t.activeTargets.push(r):t.skippedTargets.push(r))}))}))},be=function(){var e=0;ye(e);while(X())e=ve(),ye(e);return Y()&&q(),e>0},xe=[],we=function(){return xe.splice(0).forEach((function(e){return e()}))},Ce=function(e){if(!Q){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver((function(){return we()})).observe(r,n),Q=function(){r.textContent="".concat(t?t--:t++)}}xe.push(e),Q()},Se=function(e){Ce((function(){requestAnimationFrame(e)}))},Ae=0,ke=function(){return!!Ae},Te=250,Pe={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ee=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],_e=function(e){return void 0===e&&(e=0),Date.now()+e},Oe=!1,Me=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=Te),!Oe){Oe=!0;var r=_e(e);Se((function(){var n=!1;try{n=be()}finally{if(Oe=!1,e=r-_e(),!ke())return;n?t.run(1e3):e>0?t.run(e):t.start()}}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Pe)};document.body?t():oe.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ee.forEach((function(t){return oe.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Ee.forEach((function(t){return oe.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}(),ze=new Me,Re=function(e){!Ae&&e>0&&ze.start(),Ae+=e,!Ae&&ze.stop()},Be=function(e){return!te(e)&&!ie(e)&&"inline"===getComputedStyle(e).display},Ie=function(){function e(e,t){this.target=e,this.observedBox=t||j.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=pe(this.target,this.observedBox,!0);return Be(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ne=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Le=new WeakMap,Fe=function(e,t){for(var r=0;r=0&&(i&&G.splice(G.indexOf(r),1),r.observationTargets.splice(n,1),Re(-1))},e.disconnect=function(e){var t=this,r=Le.get(e);r.observationTargets.slice().forEach((function(r){return t.unobserve(e,r.target)})),r.activeTargets.splice(0,r.activeTargets.length)},e}(),He=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");De.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ne(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");De.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ne(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");De.unobserve(this,e)},e.prototype.disconnect=function(){De.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class We{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new("undefined"!==typeof window&&window.ResizeObserver||He)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const e=this.elHandlersMap.get(t.target);void 0!==e&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}var Ve=new We;function Ue(e,t){console.error(`[vueuc/${e}]: ${t}`)}var je=(0,n.aZ)({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const r=(0,n.FN)().proxy;function i(t){const{onResize:r}=e;void 0!==r&&r(t)}(0,n.bv)((()=>{const e=r.$el;void 0!==e?e.nextElementSibling===e.nextSibling||3!==e.nodeType||""===e.nodeValue?null!==e.nextElementSibling&&(Ve.registerHandler(e.nextElementSibling,i),t=!0):Ue("resize-observer","$el can not be observed (it may be a text node)."):Ue("resize-observer","$el does not exist.")})),(0,n.Jd)((()=>{t&&Ve.unregisterHandler(r.$el.nextElementSibling)}))},render(){return(0,n.WI)(this.$slots,"default")}});const Ze="undefined"!==typeof window&&(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream;function Ge(){return Ze}var Xe=r(5606),Ye=r(5690);function $e(e,t){if(void 0===e)return!1;if(t){const{context:{ids:r}}=t;return r.has(e)}return null!==(0,Ye.$F)(e)}var qe=r(1496),Qe=r(1474);function Je(e,t,r){if(!t)return;const i=(0,qe.O)(),o=(0,n.Fl)((()=>{const{value:r}=t;if(!r)return;const n=r[e];return n||void 0})),s=()=>{(0,n.m0)((()=>{const{value:t}=r,n=`${t}${e}Rtl`;if($e(n,i))return;const{value:s}=o;s&&s.style.mount({id:n,head:!0,anchorMetaName:Qe.A,props:{bPrefix:t?`.${t}-`:void 0},ssr:i})}))};return i?s():(0,n.wF)(s),o}var Ke=r(3443);function et(e){const t={isDeactivated:!1};let r=!1;return(0,n.dl)((()=>{t.isDeactivated=!1,r?e():r=!0})),(0,n.se)((()=>{t.isDeactivated=!0,r||(r=!0)})),t}const tt=(0,n.aZ)({render(){var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}});var rt=r(1218);const nt=e=>{const{scrollbarColor:t,scrollbarColorHover:r}=e;return{color:t,colorHover:r}},it={name:"Scrollbar",common:rt.Z,self:nt};var ot=it,st=r(4914),at=r(3267);const{cubicBezierEaseInOut:lt}=at["default"];function ct({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:r="0.2s",enterCubicBezier:n=lt,leaveCubicBezier:i=lt}={}){return[(0,st.c)(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),(0,st.c)(`&.${e}-transition-leave-active`,{transition:`all ${r} ${i}!important`}),(0,st.c)(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),(0,st.c)(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var ut=(0,st.cB)("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[(0,st.c)(">",[(0,st.cB)("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n min-height: inherit;\n max-height: inherit;\n scrollbar-width: none;\n ",[(0,st.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),(0,st.c)(">",[(0,st.cB)("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),(0,st.c)(">, +",[(0,st.cB)("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n ",[(0,st.cM)("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--n-scrollbar-height);\n ",[(0,st.c)(">",[(0,st.cE)("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),(0,st.cM)("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--n-scrollbar-width);\n ",[(0,st.c)(">",[(0,st.cE)("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),(0,st.cM)("disabled",[(0,st.c)(">",[(0,st.cE)("scrollbar","pointer-events: none;")])]),(0,st.c)(">",[(0,st.cE)("scrollbar","\n z-index: 1;\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[ct(),(0,st.c)("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]);const dt=Object.assign(Object.assign({},k.Z.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),ht=(0,n.aZ)({name:"Scrollbar",props:dt,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:o}=(0,Xe.ZP)(e),s=Je("Scrollbar",o,t),a=(0,i.iH)(null),l=(0,i.iH)(null),c=(0,i.iH)(null),u=(0,i.iH)(null),d=(0,i.iH)(null),h=(0,i.iH)(null),f=(0,i.iH)(null),p=(0,i.iH)(null),g=(0,i.iH)(null),m=(0,i.iH)(null),v=(0,i.iH)(null),y=(0,i.iH)(0),b=(0,i.iH)(0),x=(0,i.iH)(!1),w=(0,i.iH)(!1);let C,S,A=!1,T=!1,P=0,O=0,M=0,z=0;const R=Ge(),B=(0,n.Fl)((()=>{const{value:t}=p,{value:r}=h,{value:n}=m;return null===t||null===r||null===n?0:Math.min(t,n*t/r+1.5*e.size)})),I=(0,n.Fl)((()=>`${B.value}px`)),N=(0,n.Fl)((()=>{const{value:t}=g,{value:r}=f,{value:n}=v;return null===t||null===r||null===n?0:n*t/r+1.5*e.size})),L=(0,n.Fl)((()=>`${N.value}px`)),F=(0,n.Fl)((()=>{const{value:e}=p,{value:t}=y,{value:r}=h,{value:n}=m;if(null===e||null===r||null===n)return 0;{const i=r-e;return i?t/i*(n-B.value):0}})),D=(0,n.Fl)((()=>`${F.value}px`)),H=(0,n.Fl)((()=>{const{value:e}=g,{value:t}=b,{value:r}=f,{value:n}=v;if(null===e||null===r||null===n)return 0;{const i=r-e;return i?t/i*(n-N.value):0}})),W=(0,n.Fl)((()=>`${H.value}px`)),V=(0,n.Fl)((()=>{const{value:e}=p,{value:t}=h;return null!==e&&null!==t&&t>e})),U=(0,n.Fl)((()=>{const{value:e}=g,{value:t}=f;return null!==e&&null!==t&&t>e})),j=(0,n.Fl)((()=>{const{trigger:t}=e;return"none"===t||x.value})),Z=(0,n.Fl)((()=>{const{trigger:t}=e;return"none"===t||w.value})),G=(0,n.Fl)((()=>{const{container:t}=e;return t?t():l.value})),X=(0,n.Fl)((()=>{const{content:t}=e;return t?t():c.value})),Y=et((()=>{e.container||Q({top:y.value,left:b.value})})),$=()=>{Y.isDeactivated||de()},q=t=>{if(Y.isDeactivated)return;const{onResize:r}=e;r&&r(t),de()},Q=(t,r)=>{if(!e.scrollable)return;if("number"===typeof t)return void K(t,null!==r&&void 0!==r?r:0,0,!1,"auto");const{left:n,top:i,index:o,elSize:s,position:a,behavior:l,el:c,debounce:u=!0}=t;void 0===n&&void 0===i||K(null!==n&&void 0!==n?n:0,null!==i&&void 0!==i?i:0,0,!1,l),void 0!==c?K(0,c.offsetTop,c.offsetHeight,u,l):void 0!==o&&void 0!==s?K(0,o*s,s,u,l):"bottom"===a?K(0,Number.MAX_SAFE_INTEGER,0,!1,l):"top"===a&&K(0,0,0,!1,l)},J=(t,r)=>{if(!e.scrollable)return;const{value:n}=G;n&&("object"===typeof t?n.scrollBy(t):n.scrollBy(t,r||0))};function K(e,t,r,n,i){const{value:o}=G;if(o){if(n){const{scrollTop:n,offsetHeight:s}=o;if(t>n)return void(t+r<=n+s||o.scrollTo({left:e,top:t+r-s,behavior:i}))}o.scrollTo({left:e,top:t,behavior:i})}}function ee(){oe(),se(),de()}function te(){re()}function re(){ne(),ie()}function ne(){void 0!==S&&window.clearTimeout(S),S=window.setTimeout((()=>{w.value=!1}),e.duration)}function ie(){void 0!==C&&window.clearTimeout(C),C=window.setTimeout((()=>{x.value=!1}),e.duration)}function oe(){void 0!==C&&window.clearTimeout(C),x.value=!0}function se(){void 0!==S&&window.clearTimeout(S),w.value=!0}function ae(t){const{onScroll:r}=e;r&&r(t),le()}function le(){const{value:e}=G;e&&(y.value=e.scrollTop,b.value=e.scrollLeft*((null===s||void 0===s?void 0:s.value)?-1:1))}function ce(){const{value:e}=X;e&&(h.value=e.offsetHeight,f.value=e.offsetWidth);const{value:t}=G;t&&(p.value=t.offsetHeight,g.value=t.offsetWidth);const{value:r}=d,{value:n}=u;r&&(v.value=r.offsetWidth),n&&(m.value=n.offsetHeight)}function ue(){const{value:e}=G;e&&(y.value=e.scrollTop,b.value=e.scrollLeft*((null===s||void 0===s?void 0:s.value)?-1:1),p.value=e.offsetHeight,g.value=e.offsetWidth,h.value=e.scrollHeight,f.value=e.scrollWidth);const{value:t}=d,{value:r}=u;t&&(v.value=t.offsetWidth),r&&(m.value=r.offsetHeight)}function de(){e.scrollable&&(e.useUnifiedContainer?ue():(ce(),le()))}function he(e){var t;return!(null===(t=a.value)||void 0===t?void 0:t.contains(E(e)))}function fe(e){e.preventDefault(),e.stopPropagation(),T=!0,(0,_.on)("mousemove",window,pe,!0),(0,_.on)("mouseup",window,ge,!0),O=b.value,M=(null===s||void 0===s?void 0:s.value)?window.innerWidth-e.clientX:e.clientX}function pe(t){if(!T)return;void 0!==C&&window.clearTimeout(C),void 0!==S&&window.clearTimeout(S);const{value:r}=g,{value:n}=f,{value:i}=N;if(null===r||null===n)return;const o=(null===s||void 0===s?void 0:s.value)?window.innerWidth-t.clientX-M:t.clientX-M,a=o*(n-r)/(r-i),l=n-r;let c=O+a;c=Math.min(l,c),c=Math.max(c,0);const{value:u}=G;if(u){u.scrollLeft=c*((null===s||void 0===s?void 0:s.value)?-1:1);const{internalOnUpdateScrollLeft:t}=e;t&&t(c)}}function ge(e){e.preventDefault(),e.stopPropagation(),(0,_.S)("mousemove",window,pe,!0),(0,_.S)("mouseup",window,ge,!0),T=!1,de(),he(e)&&re()}function me(e){e.preventDefault(),e.stopPropagation(),A=!0,(0,_.on)("mousemove",window,ve,!0),(0,_.on)("mouseup",window,ye,!0),P=y.value,z=e.clientY}function ve(e){if(!A)return;void 0!==C&&window.clearTimeout(C),void 0!==S&&window.clearTimeout(S);const{value:t}=p,{value:r}=h,{value:n}=B;if(null===t||null===r)return;const i=e.clientY-z,o=i*(r-t)/(t-n),s=r-t;let a=P+o;a=Math.min(s,a),a=Math.max(a,0);const{value:l}=G;l&&(l.scrollTop=a)}function ye(e){e.preventDefault(),e.stopPropagation(),(0,_.S)("mousemove",window,ve,!0),(0,_.S)("mouseup",window,ye,!0),A=!1,de(),he(e)&&re()}(0,n.m0)((()=>{const{value:e}=U,{value:r}=V,{value:n}=t,{value:i}=d,{value:o}=u;i&&(e?i.classList.remove(`${n}-scrollbar-rail--disabled`):i.classList.add(`${n}-scrollbar-rail--disabled`)),o&&(r?o.classList.remove(`${n}-scrollbar-rail--disabled`):o.classList.add(`${n}-scrollbar-rail--disabled`))})),(0,n.bv)((()=>{e.container||de()})),(0,n.Jd)((()=>{void 0!==C&&window.clearTimeout(C),void 0!==S&&window.clearTimeout(S),(0,_.S)("mousemove",window,ve,!0),(0,_.S)("mouseup",window,ye,!0)}));const be=(0,k.Z)("Scrollbar","-scrollbar",ut,ot,e,t),xe=(0,n.Fl)((()=>{const{common:{cubicBezierEaseInOut:e,scrollbarBorderRadius:t,scrollbarHeight:r,scrollbarWidth:n},self:{color:i,colorHover:o}}=be.value;return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":i,"--n-scrollbar-color-hover":o,"--n-scrollbar-border-radius":t,"--n-scrollbar-width":n,"--n-scrollbar-height":r}})),we=r?(0,Ke.F)("scrollbar",void 0,xe,e):void 0,Ce={scrollTo:Q,scrollBy:J,sync:de,syncUnifiedContainer:ue,handleMouseEnterWrapper:ee,handleMouseLeaveWrapper:te};return Object.assign(Object.assign({},Ce),{mergedClsPrefix:t,rtlEnabled:s,containerScrollTop:y,wrapperRef:a,containerRef:l,contentRef:c,yRailRef:u,xRailRef:d,needYBar:V,needXBar:U,yBarSizePx:I,xBarSizePx:L,yBarTopPx:D,xBarLeftPx:W,isShowXBar:j,isShowYBar:Z,isIos:R,handleScroll:ae,handleContentResize:$,handleContainerResize:q,handleYScrollMouseDown:me,handleXScrollMouseDown:fe,cssVars:r?void 0:xe,themeClass:null===we||void 0===we?void 0:we.themeClass,onRender:null===we||void 0===we?void 0:we.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:r,triggerDisplayManually:i,rtlEnabled:o,internalHoistYRail:s}=this;if(!this.scrollable)return null===(e=t.default)||void 0===e?void 0:e.call(t);const a="none"===this.trigger,l=(e,t)=>(0,n.h)("div",{ref:"yRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--vertical`,e],"data-scrollbar-rail":!0,style:[t||"",this.verticalRailStyle],"aria-hidden":!0},(0,n.h)(a?tt:T.uT,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?(0,n.h)("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),c=()=>{var e,c;return null===(e=this.onRender)||void 0===e||e.call(this),(0,n.h)("div",(0,n.dG)(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${r}-scrollbar`,this.themeClass,o&&`${r}-scrollbar--rtl`],style:this.cssVars,onMouseenter:i?void 0:this.handleMouseEnterWrapper,onMouseleave:i?void 0:this.handleMouseLeaveWrapper}),[this.container?null===(c=t.default)||void 0===c?void 0:c.call(t):(0,n.h)("div",{role:"none",ref:"containerRef",class:[`${r}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},(0,n.h)(je,{onResize:this.handleContentResize},{default:()=>(0,n.h)("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${r}-scrollbar-content`,this.contentClass]},t)})),s?null:l(void 0,void 0),this.xScrollable&&(0,n.h)("div",{ref:"xRailRef",class:[`${r}-scrollbar-rail`,`${r}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},(0,n.h)(a?tt:T.uT,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?(0,n.h)("div",{class:`${r}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},u=this.container?c():(0,n.h)(je,{onResize:this.handleContainerResize},{default:c});return s?(0,n.h)(n.HY,null,u,l(this.themeClass,this.cssVars)):u}});var ft=ht;const pt=ht;var gt=r(4294),mt=r(1499);let vt;function yt(){return void 0===vt&&(vt=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),vt}const bt=/^(\d|\.)+$/,xt=/(\d|\.)+/;function wt(e,{c:t=1,offset:r=0,attachPx:n=!0}={}){if("number"===typeof e){const n=(e+r)*t;return 0===n?"0":`${n}px`}if("string"===typeof e){if(bt.test(e)){const i=(Number(e)+r)*t;return n?0===i?"0":`${i}px`:`${i}`}{const n=xt.exec(e);return n?e.replace(xt,String((Number(n[0])+r)*t)):e}}return e}var Ct=r(8005),St={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};const At=e=>{const{boxShadow2:t,popoverColor:r,textColor2:n,borderRadius:i,fontSize:o,dividerColor:s}=e;return Object.assign(Object.assign({},St),{fontSize:o,borderRadius:i,color:r,dividerColor:s,textColor:n,boxShadow:t})},kt={name:"Popover",common:rt.Z,self:At};var Tt=kt,Pt=r(4970),Et=r(9913);const _t={top:"bottom",bottom:"top",left:"right",right:"left"},Ot="var(--n-arrow-height) * 1.414";var Mt=(0,st.c)([(0,st.cB)("popover","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n position: relative;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n box-shadow: var(--n-box-shadow);\n word-break: break-word;\n ",[(0,st.c)(">",[(0,st.cB)("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),(0,st.u4)("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[(0,st.u4)("scrollable",[(0,st.u4)("show-header-or-footer","padding: var(--n-padding);")])]),(0,st.cE)("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),(0,st.cE)("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),(0,st.cM)("scrollable, show-header-or-footer",[(0,st.cE)("content","\n padding: var(--n-padding);\n ")])]),(0,st.cB)("popover-shared","\n transform-origin: inherit;\n ",[(0,st.cB)("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[(0,st.cB)("popover-arrow",`\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(${Ot});\n height: calc(${Ot});\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n `)]),(0,st.c)("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),(0,st.c)("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),(0,st.c)("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),(0,st.c)("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),Rt("top-start",`\n top: calc(${Ot} / -2);\n left: calc(${zt("top-start")} - var(--v-offset-left));\n `),Rt("top",`\n top: calc(${Ot} / -2);\n transform: translateX(calc(${Ot} / -2)) rotate(45deg);\n left: 50%;\n `),Rt("top-end",`\n top: calc(${Ot} / -2);\n right: calc(${zt("top-end")} + var(--v-offset-left));\n `),Rt("bottom-start",`\n bottom: calc(${Ot} / -2);\n left: calc(${zt("bottom-start")} - var(--v-offset-left));\n `),Rt("bottom",`\n bottom: calc(${Ot} / -2);\n transform: translateX(calc(${Ot} / -2)) rotate(45deg);\n left: 50%;\n `),Rt("bottom-end",`\n bottom: calc(${Ot} / -2);\n right: calc(${zt("bottom-end")} + var(--v-offset-left));\n `),Rt("left-start",`\n left: calc(${Ot} / -2);\n top: calc(${zt("left-start")} - var(--v-offset-top));\n `),Rt("left",`\n left: calc(${Ot} / -2);\n transform: translateY(calc(${Ot} / -2)) rotate(45deg);\n top: 50%;\n `),Rt("left-end",`\n left: calc(${Ot} / -2);\n bottom: calc(${zt("left-end")} + var(--v-offset-top));\n `),Rt("right-start",`\n right: calc(${Ot} / -2);\n top: calc(${zt("right-start")} - var(--v-offset-top));\n `),Rt("right",`\n right: calc(${Ot} / -2);\n transform: translateY(calc(${Ot} / -2)) rotate(45deg);\n top: 50%;\n `),Rt("right-end",`\n right: calc(${Ot} / -2);\n bottom: calc(${zt("right-end")} + var(--v-offset-top));\n `),...(0,Et.Z)({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},((e,t)=>{const r=["right","left"].includes(t),n=r?"width":"height";return e.map((e=>{const i="end"===e.split("-")[1],o=`var(--v-target-${n}, 0px)`,s=`calc((${o} - ${Ot}) / 2)`,a=zt(e);return(0,st.c)(`[v-placement="${e}"] >`,[(0,st.cB)("popover-shared",[(0,st.cM)("center-arrow",[(0,st.cB)("popover-arrow",`${t}: calc(max(${s}, ${a}) ${i?"+":"-"} var(--v-offset-${r?"left":"top"}));`)])])])}))}))]);function zt(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function Rt(e,t){const r=e.split("-")[0],n=["top","bottom"].includes(r)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return(0,st.c)(`[v-placement="${e}"] >`,[(0,st.cB)("popover-shared",`\n margin-${_t[r]}: var(--n-space);\n `,[(0,st.cM)("show-arrow",`\n margin-${_t[r]}: var(--n-space-arrow);\n `),(0,st.cM)("overlap","\n margin: 0;\n "),(0,st.kE)("popover-arrow-wrapper",`\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ${r}: 100%;\n ${_t[r]}: auto;\n ${n}\n `,[(0,st.cB)("popover-arrow",t)])])])}const Bt=Object.assign(Object.assign({},k.Z.props),{to:b.n.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),It=({arrowClass:e,arrowStyle:t,arrowWrapperClass:r,arrowWrapperStyle:i,clsPrefix:o})=>(0,n.h)("div",{key:"__popover-arrow__",style:i,class:[`${o}-popover-arrow-wrapper`,r]},(0,n.h)("div",{class:[`${o}-popover-arrow`,e],style:t}));var Nt=(0,n.aZ)({name:"PopoverBody",inheritAttrs:!1,props:Bt,setup(e,{slots:t,attrs:r}){const{namespaceRef:o,mergedClsPrefixRef:s,inlineThemeDisabled:a}=(0,Xe.ZP)(e),l=(0,k.Z)("Popover","-popover",Mt,Tt,e,s),c=(0,i.iH)(null),u=(0,n.f3)("NPopover"),d=(0,i.iH)(null),h=(0,i.iH)(e.show),f=(0,i.iH)(!1);(0,n.m0)((()=>{const{show:t}=e;!t||yt()||e.internalDeactivateImmediately||(f.value=!0)}));const p=(0,n.Fl)((()=>{const{trigger:t,onClickoutside:r}=e,n=[],{positionManuallyRef:{value:i}}=u;return i||("click"!==t||r||n.push([W,S,void 0,{capture:!0}]),"hover"===t&&n.push([Z,C])),r&&n.push([W,S,void 0,{capture:!0}]),("show"===e.displayDirective||e.animated&&f.value)&&n.push([T.F8,e.show]),n})),g=(0,n.Fl)((()=>{const t="trigger"===e.width?void 0:wt(e.width),r=[];t&&r.push({width:t});const{maxWidth:n,minWidth:i}=e;return n&&r.push({maxWidth:wt(n)}),i&&r.push({maxWidth:wt(i)}),a||r.push(m.value),r})),m=(0,n.Fl)((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:r},self:{space:n,spaceArrow:i,padding:o,fontSize:s,textColor:a,dividerColor:c,color:u,boxShadow:d,borderRadius:h,arrowHeight:f,arrowOffset:p,arrowOffsetVertical:g}}=l.value;return{"--n-box-shadow":d,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":r,"--n-font-size":s,"--n-text-color":a,"--n-color":u,"--n-divider-color":c,"--n-border-radius":h,"--n-arrow-height":f,"--n-arrow-offset":p,"--n-arrow-offset-vertical":g,"--n-padding":o,"--n-space":n,"--n-space-arrow":i}})),v=a?(0,Ke.F)("popover",void 0,m,e):void 0;function y(){var e;null===(e=c.value)||void 0===e||e.syncPosition()}function x(t){"hover"===e.trigger&&e.keepAliveOnHover&&e.show&&u.handleMouseEnter(t)}function w(t){"hover"===e.trigger&&e.keepAliveOnHover&&u.handleMouseLeave(t)}function C(t){"hover"!==e.trigger||A().contains(E(t))||u.handleMouseMoveOutside(t)}function S(t){("click"===e.trigger&&!A().contains(E(t))||e.onClickoutside)&&u.handleClickOutside(t)}function A(){return u.getTriggerElement()}function P(){null===v||void 0===v||v.onRender();const i="show"===e.displayDirective||e.show||e.animated&&f.value;if(!i)return null;let o;const a=u.internalRenderBodyRef.value,{value:l}=s;if(a)o=a([`${l}-popover-shared`,null===v||void 0===v?void 0:v.themeClass.value,e.overlap&&`${l}-popover-shared--overlap`,e.showArrow&&`${l}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${l}-popover-shared--center-arrow`],d,g.value,x,w);else{const{value:i}=u.extraClassRef,{internalTrapFocus:s}=e,a=!(0,Ct.aD)(t.header)||!(0,Ct.aD)(t.footer),c=()=>{var r,i;const o=a?(0,n.h)(n.HY,null,(0,Ct.K9)(t.header,(t=>t?(0,n.h)("div",{class:[`${l}-popover__header`,e.headerClass],style:e.headerStyle},t):null)),(0,Ct.K9)(t.default,(r=>r?(0,n.h)("div",{class:[`${l}-popover__content`,e.contentClass],style:e.contentStyle},t):null)),(0,Ct.K9)(t.footer,(t=>t?(0,n.h)("div",{class:[`${l}-popover__footer`,e.footerClass],style:e.footerStyle},t):null))):e.scrollable?null===(r=t.default)||void 0===r?void 0:r.call(t):(0,n.h)("div",{class:[`${l}-popover__content`,e.contentClass],style:e.contentStyle},t),s=e.scrollable?(0,n.h)(pt,{contentClass:a?void 0:`${l}-popover__content ${null!==(i=e.contentClass)&&void 0!==i?i:""}`,contentStyle:a?void 0:e.contentStyle},{default:()=>o}):o,c=e.showArrow?It({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:l}):null;return[s,c]};o=(0,n.h)("div",(0,n.dG)({class:[`${l}-popover`,`${l}-popover-shared`,null===v||void 0===v?void 0:v.themeClass.value,i.map((e=>`${l}-${e}`)),{[`${l}-popover--scrollable`]:e.scrollable,[`${l}-popover--show-header-or-footer`]:a,[`${l}-popover--raw`]:e.raw,[`${l}-popover-shared--overlap`]:e.overlap,[`${l}-popover-shared--show-arrow`]:e.showArrow,[`${l}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:d,style:g.value,onKeydown:u.handleKeydown,onMouseenter:x,onMouseleave:w},r),s?(0,n.h)(L,{active:e.show,autoFocus:!0},{default:c}):c())}return(0,n.wy)(o,p.value)}return u.setBodyInstance({syncPosition:y}),(0,n.Jd)((()=>{u.setBodyInstance(null)})),(0,n.YP)((0,i.Vh)(e,"show"),(t=>{e.animated||(h.value=!!t)})),(0,n.JJ)(Pt.c,d),(0,n.JJ)(gt.H,null),(0,n.JJ)(mt.ZJ,null),{displayed:f,namespace:o,isMounted:u.isMountedRef,zIndex:u.zIndexRef,followerRef:c,adjustedTo:(0,b.n)(e),followerEnabled:h,renderContentNode:P}},render(){return(0,n.h)(F.Z,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===b.n.tdkey},{default:()=>this.animated?(0,n.h)(T.uT,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;null===(e=this.internalOnAfterLeave)||void 0===e||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}});const Lt=Object.keys(Bt),Ft={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function Dt(e,t,r){Ft[t].forEach((t=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[t],i=r[t];e.props[t]=n?(...e)=>{n(...e),i(...e)}:i}))}const Ht={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:b.n.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Wt=Object.assign(Object.assign(Object.assign({},k.Z.props),Ht),{internalOnAfterLeave:Function,internalRenderBody:Function});var Vt=(0,n.aZ)({name:"Popover",inheritAttrs:!1,props:Wt,__popover__:!0,setup(e){const t=(0,p.Z)(),r=(0,i.iH)(null),o=(0,n.Fl)((()=>e.show)),s=(0,i.iH)(e.defaultShow),a=(0,g.Z)(o,s),l=(0,m.Z)((()=>!e.disabled&&a.value)),c=()=>{if(e.disabled)return!0;const{getDisabled:t}=e;return!!(null===t||void 0===t?void 0:t())},u=()=>!c()&&a.value,d=v(e,["arrow","showArrow"]),h=(0,n.Fl)((()=>!e.overlap&&d.value));let f=null;const y=(0,i.iH)(null),b=(0,i.iH)(null),w=(0,m.Z)((()=>void 0!==e.x&&void 0!==e.y));function C(t){const{"onUpdate:show":r,onUpdateShow:n,onShow:i,onHide:o}=e;s.value=t,r&&(0,x.R)(r,t),n&&(0,x.R)(n,t),t&&i&&(0,x.R)(i,!0),t&&o&&(0,x.R)(o,!1)}function S(){f&&f.syncPosition()}function A(){const{value:e}=y;e&&(window.clearTimeout(e),y.value=null)}function k(){const{value:e}=b;e&&(window.clearTimeout(e),b.value=null)}function T(){const t=c();if("focus"===e.trigger&&!t){if(u())return;C(!0)}}function P(){const t=c();if("focus"===e.trigger&&!t){if(!u())return;C(!1)}}function E(){const t=c();if("hover"===e.trigger&&!t){if(k(),null!==y.value)return;if(u())return;const t=()=>{C(!0),y.value=null},{delay:r}=e;0===r?t():y.value=window.setTimeout(t,r)}}function _(){const t=c();if("hover"===e.trigger&&!t){if(A(),null!==b.value)return;if(!u())return;const t=()=>{C(!1),b.value=null},{duration:r}=e;0===r?t():b.value=window.setTimeout(t,r)}}function O(){_()}function M(t){var r;u()&&("click"===e.trigger&&(A(),k(),C(!1)),null===(r=e.onClickoutside)||void 0===r||r.call(e,t))}function z(){if("click"===e.trigger&&!c()){A(),k();const e=!u();C(e)}}function R(t){e.internalTrapFocus&&"Escape"===t.key&&(A(),k(),C(!1))}function B(e){s.value=e}function I(){var e;return null===(e=r.value)||void 0===e?void 0:e.targetRef}function N(e){f=e}(0,n.JJ)("NPopover",{getTriggerElement:I,handleKeydown:R,handleMouseEnter:E,handleMouseLeave:_,handleClickOutside:M,handleMouseMoveOutside:O,setBodyInstance:N,positionManuallyRef:w,isMountedRef:t,zIndexRef:(0,i.Vh)(e,"zIndex"),extraClassRef:(0,i.Vh)(e,"internalExtraClass"),internalRenderBodyRef:(0,i.Vh)(e,"internalRenderBody")}),(0,n.m0)((()=>{a.value&&c()&&C(!1)}));const L={binderInstRef:r,positionManually:w,mergedShowConsideringDisabledProp:l,uncontrolledShow:s,mergedShowArrow:h,getMergedShow:u,setShow:B,handleClick:z,handleMouseEnter:E,handleMouseLeave:_,handleFocus:T,handleBlur:P,syncPosition:S};return L},render(){var e;const{positionManually:t,$slots:r}=this;let i,o=!1;if(!t&&(i=r.activator?S(r,"activator"):S(r,"trigger"),i)){i=(0,n.Ho)(i),i=i.type===n.xv?(0,n.h)("span",[i]):i;const r={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=i.type)||void 0===e?void 0:e.__popover__)o=!0,i.props||(i.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),i.props.internalSyncTargetWithParent=!0,i.props.internalInheritedEventHandlers?i.props.internalInheritedEventHandlers=[r,...i.props.internalInheritedEventHandlers]:i.props.internalInheritedEventHandlers=[r];else{const{internalInheritedEventHandlers:e}=this,n=[r,...e],o={onBlur:e=>{n.forEach((t=>{t.onBlur(e)}))},onFocus:e=>{n.forEach((t=>{t.onFocus(e)}))},onClick:e=>{n.forEach((t=>{t.onClick(e)}))},onMouseenter:e=>{n.forEach((t=>{t.onMouseenter(e)}))},onMouseleave:e=>{n.forEach((t=>{t.onMouseleave(e)}))}};Dt(i,e?"nested":t?"manual":this.trigger,o)}}return(0,n.h)(h.Z,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const e=this.getMergedShow();return[this.internalTrapFocus&&e?(0,n.wy)((0,n.h)("div",{style:{position:"fixed",inset:0}}),[[y.Z,{enabled:e,zIndex:this.zIndex}]]):null,t?null:(0,n.h)(f.Z,null,{default:()=>i}),(0,n.h)(Nt,A(this.$props,Lt,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),{default:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)},header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},footer:()=>{var e,t;return null===(t=(e=this.$slots).footer)||void 0===t?void 0:t.call(e)}})]}})}});function Ut(e){return Array.isArray(e)?e:[e]}const jt={STOP:"STOP"};function Zt(e,t){const r=t(e);void 0!==e.children&&r!==jt.STOP&&e.children.forEach((e=>Zt(e,t)))}function Gt(e,t={}){const{preserveGroup:r=!1}=t,n=[],i=r?e=>{e.isLeaf||(n.push(e.key),o(e.children))}:e=>{e.isLeaf||(e.isGroup||n.push(e.key),o(e.children))};function o(e){e.forEach(i)}return o(e),n}function Xt(e,t){const{isLeaf:r}=e;return void 0!==r?r:!t(e)}function Yt(e){return e.children}function $t(e){return e.key}function qt(){return!1}function Qt(e,t){const{isLeaf:r}=e;return!(!1===r&&!Array.isArray(t(e)))}function Jt(e){return!0===e.disabled}function Kt(e,t){return!1===e.isLeaf&&!Array.isArray(t(e))}function er(e){var t;return void 0===e||null===e?[]:Array.isArray(e)?e:null!==(t=e.checkedKeys)&&void 0!==t?t:[]}function tr(e){var t;return void 0===e||null===e||Array.isArray(e)?[]:null!==(t=e.indeterminateKeys)&&void 0!==t?t:[]}function rr(e,t){const r=new Set(e);return t.forEach((e=>{r.has(e)||r.add(e)})),Array.from(r)}function nr(e,t){const r=new Set(e);return t.forEach((e=>{r.has(e)&&r.delete(e)})),Array.from(r)}function ir(e){return"group"===(null===e||void 0===e?void 0:e.type)}function or(e){const t=new Map;return e.forEach(((e,r)=>{t.set(e.key,r)})),e=>{var r;return null!==(r=t.get(e))&&void 0!==r?r:null}}class sr extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function ar(e,t,r,n){return dr(t.concat(e),r,n,!1)}function lr(e,t){const r=new Set;return e.forEach((e=>{const n=t.treeNodeMap.get(e);if(void 0!==n){let e=n.parent;while(null!==e){if(e.disabled)break;if(r.has(e.key))break;r.add(e.key),e=e.parent}}})),r}function cr(e,t,r,n){const i=dr(t,r,n,!1),o=dr(e,r,n,!0),s=lr(e,r),a=[];return i.forEach((e=>{(o.has(e)||s.has(e))&&a.push(e)})),a.forEach((e=>i.delete(e))),i}function ur(e,t){const{checkedKeys:r,keysToCheck:n,keysToUncheck:i,indeterminateKeys:o,cascade:s,leafOnly:a,checkStrategy:l,allowNotLoaded:c}=e;if(!s)return void 0!==n?{checkedKeys:rr(r,n),indeterminateKeys:Array.from(o)}:void 0!==i?{checkedKeys:nr(r,i),indeterminateKeys:Array.from(o)}:{checkedKeys:Array.from(r),indeterminateKeys:Array.from(o)};const{levelTreeNodeMap:u}=t;let d;d=void 0!==i?cr(i,r,t,c):void 0!==n?ar(n,r,t,c):dr(r,t,c,!1);const h="parent"===l,f="child"===l||a,p=d,g=new Set,m=Math.max.apply(null,Array.from(u.keys()));for(let v=m;v>=0;v-=1){const e=0===v,t=u.get(v);for(const r of t){if(r.isLeaf)continue;const{key:t,shallowLoaded:n}=r;if(f&&n&&r.children.forEach((e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&p.has(e.key)&&p.delete(e.key)})),r.disabled||!n)continue;let i=!0,o=!1,s=!0;for(const e of r.children){const t=e.key;if(!e.disabled)if(s&&(s=!1),p.has(t))o=!0;else{if(g.has(t)){o=!0,i=!1;break}if(i=!1,o)break}}i&&!s?(h&&r.children.forEach((e=>{!e.disabled&&p.has(e.key)&&p.delete(e.key)})),p.add(t)):o&&g.add(t),e&&f&&p.has(t)&&p.delete(t)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function dr(e,t,r,n){const{treeNodeMap:i,getChildren:o}=t,s=new Set,a=new Set(e);return e.forEach((e=>{const t=i.get(e);void 0!==t&&Zt(t,(e=>{if(e.disabled)return jt.STOP;const{key:t}=e;if(!s.has(t)&&(s.add(t),a.add(t),Kt(e.rawNode,o))){if(n)return jt.STOP;if(!r)throw new sr}}))})),a}function hr(e,{includeGroup:t=!1,includeSelf:r=!0},n){var i;const o=n.treeNodeMap;let s=null===e||void 0===e?null:null!==(i=o.get(e))&&void 0!==i?i:null;const a={keyPath:[],treeNodePath:[],treeNode:s};if(null===s||void 0===s?void 0:s.ignored)return a.treeNode=null,a;while(s)s.ignored||!t&&s.isGroup||a.treeNodePath.push(s),s=s.parent;return a.treeNodePath.reverse(),r||a.treeNodePath.pop(),a.keyPath=a.treeNodePath.map((e=>e.key)),a}function fr(e){if(0===e.length)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function pr(e,t){const r=e.siblings,n=r.length,{index:i}=e;return t?r[(i+1)%n]:i===r.length-1?null:r[i+1]}function gr(e,t,{loop:r=!1,includeDisabled:n=!1}={}){const i="prev"===t?mr:pr,o={reverse:"prev"===t};let s=!1,a=null;function l(t){if(null!==t){if(t===e)if(s){if(!e.disabled&&!e.isGroup)return void(a=e)}else s=!0;else if((!t.disabled||n)&&!t.ignored&&!t.isGroup)return void(a=t);if(t.isGroup){const e=yr(t,o);null!==e?a=e:l(i(t,r))}else{const e=i(t,!1);if(null!==e)l(e);else{const e=vr(t);(null===e||void 0===e?void 0:e.isGroup)?l(i(e,r)):r&&l(i(t,!0))}}}}return l(e),a}function mr(e,t){const r=e.siblings,n=r.length,{index:i}=e;return t?r[(i-1+n)%n]:0===i?null:r[i-1]}function vr(e){return e.parent}function yr(e,t={}){const{reverse:r=!1}=t,{children:n}=e;if(n){const{length:e}=n,i=r?e-1:0,o=r?-1:e,s=r?-1:1;for(let r=i;r!==o;r+=s){const e=n[r];if(!e.disabled&&!e.ignored){if(!e.isGroup)return e;{const r=yr(e,t);if(null!==r)return r}}}}return null}const br={getChild(){return this.ignored?null:yr(this)},getParent(){const{parent:e}=this;return(null===e||void 0===e?void 0:e.isGroup)?e.getParent():e},getNext(e={}){return gr(this,"next",e)},getPrev(e={}){return gr(this,"prev",e)}};function xr(e,t){const r=t?new Set(t):void 0,n=[];function i(e){e.forEach((e=>{n.push(e),e.isLeaf||!e.children||e.ignored||(e.isGroup||void 0===r||r.has(e.key))&&i(e.children)}))}return i(e),n}function wr(e,t){const r=e.key;while(t){if(t.key===r)return!0;t=t.parent}return!1}function Cr(e,t,r,n,i,o=null,s=0){const a=[];return e.forEach(((l,c)=>{var u;const d=Object.create(n);if(d.rawNode=l,d.siblings=a,d.level=s,d.index=c,d.isFirstChild=0===c,d.isLastChild=c+1===e.length,d.parent=o,!d.ignored){const e=i(l);Array.isArray(e)&&(d.children=Cr(e,t,r,n,i,d,s+1))}a.push(d),t.set(d.key,d),r.has(s)||r.set(s,[]),null===(u=r.get(s))||void 0===u||u.push(d)})),a}function Sr(e,t={}){var r;const n=new Map,i=new Map,{getDisabled:o=Jt,getIgnored:s=qt,getIsGroup:a=ir,getKey:l=$t}=t,c=null!==(r=t.getChildren)&&void 0!==r?r:Yt,u=t.ignoreEmptyChildren?e=>{const t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return o(this.rawNode)},get isGroup(){return a(this.rawNode)},get isLeaf(){return Xt(this.rawNode,u)},get shallowLoaded(){return Qt(this.rawNode,u)},get ignored(){return s(this.rawNode)},contains(e){return wr(this,e)}},br),h=Cr(e,n,i,d,u);function f(e){if(null===e||void 0===e)return null;const t=n.get(e);return!t||t.isGroup||t.ignored?null:t}function p(e){if(null===e||void 0===e)return null;const t=n.get(e);return t&&!t.ignored?t:null}function g(e,t){const r=p(e);return r?r.getPrev(t):null}function m(e,t){const r=p(e);return r?r.getNext(t):null}function v(e){const t=p(e);return t?t.getParent():null}function y(e){const t=p(e);return t?t.getChild():null}const b={treeNodes:h,treeNodeMap:n,levelTreeNodeMap:i,maxLevel:Math.max(...i.keys()),getChildren:u,getFlattenedNodes(e){return xr(h,e)},getNode:f,getPrev:g,getNext:m,getParent:v,getChild:y,getFirstAvailableNode(){return fr(h)},getPath(e,t={}){return hr(e,t,b)},getCheckedKeys(e,t={}){const{cascade:r=!0,leafOnly:n=!1,checkStrategy:i="all",allowNotLoaded:o=!1}=t;return ur({checkedKeys:er(e),indeterminateKeys:tr(e),cascade:r,leafOnly:n,checkStrategy:i,allowNotLoaded:o},b)},check(e,t,r={}){const{cascade:n=!0,leafOnly:i=!1,checkStrategy:o="all",allowNotLoaded:s=!1}=r;return ur({checkedKeys:er(t),indeterminateKeys:tr(t),keysToCheck:void 0===e||null===e?[]:Ut(e),cascade:n,leafOnly:i,checkStrategy:o,allowNotLoaded:s},b)},uncheck(e,t,r={}){const{cascade:n=!0,leafOnly:i=!1,checkStrategy:o="all",allowNotLoaded:s=!1}=r;return ur({checkedKeys:er(t),indeterminateKeys:tr(t),keysToUncheck:null===e||void 0===e?[]:Ut(e),cascade:n,leafOnly:i,checkStrategy:o,allowNotLoaded:s},b)},getNonLeafKeys(e={}){return Gt(h,e)}};return b}function Ar(e,t){let{target:r}=e;while(r){if(r.dataset&&void 0!==r.dataset[t])return!0;r=r.parentElement}return!1}function kr(e){return"group"===e.type}function Tr(e){return"ignored"===e.type}function Pr(e,t){const r={getIsGroup:kr,getIgnored:Tr,getKey(t){return kr(t)?t.name||t.key||"key-required":t[e]},getChildren(e){return e[t]}};return r}function Er(e){return"string"===typeof e?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function _r(e){if(void 0!==e&&null!==e)return"number"===typeof e?`${e}px`:e.endsWith("px")?e:`${e}px`}function Or(e,t){const r=e.trim().split(/\s+/g),n={top:r[0]};switch(r.length){case 1:n.right=r[0],n.bottom=r[0],n.left=r[0];break;case 2:n.right=r[1],n.left=r[1],n.bottom=r[0];break;case 3:n.right=r[1],n.bottom=r[2],n.left=r[1];break;case 4:n.right=r[1],n.bottom=r[2],n.left=r[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return void 0===t?n:n[t]}var Mr=r(5805),zr=r(8224);function Rr(e){return e&-e}class Br{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let n=0;nn)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*r;while(e>0)i+=t[e],e-=Rr(e);return i}getBound(e){let t=0,r=this.l;while(r>t){const n=Math.floor((t+r)/2),i=this.sum(n);if(i>e)r=n;else{if(!(i[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=(0,qe.O)();Dr.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:zr.A,ssr:t}),(0,n.bv)((()=>{const{defaultScrollIndex:t,defaultScrollKey:r}=e;void 0!==t&&null!==t?v({index:t}):void 0!==r&&null!==r&&v({key:r})}));let r=!1,o=!1;(0,n.dl)((()=>{r=!1,o?v({top:f.value,left:h}):o=!0})),(0,n.se)((()=>{r=!0,o||(o=!0)}));const s=(0,n.Fl)((()=>{const t=new Map,{keyField:r}=e;return e.items.forEach(((e,n)=>{t.set(e[r],n)})),t})),a=(0,i.iH)(null),l=(0,i.iH)(void 0),c=new Map,u=(0,n.Fl)((()=>{const{items:t,itemSize:r,keyField:n}=e,i=new Br(t.length,r);return t.forEach(((e,t)=>{const r=e[n],o=c.get(r);void 0!==o&&i.add(t,o)})),i})),d=(0,i.iH)(0);let h=0;const f=(0,i.iH)(0),p=(0,m.Z)((()=>Math.max(u.value.getBound(f.value-Er(e.paddingTop))-1,0))),g=(0,n.Fl)((()=>{const{value:t}=l;if(void 0===t)return[];const{items:r,itemSize:n}=e,i=p.value,o=Math.min(i+Math.ceil(t/n+1),r.length-1),s=[];for(let e=i;e<=o;++e)s.push(r[e]);return s})),v=(e,t)=>{if("number"===typeof e)return void w(e,t,"auto");const{left:r,top:n,index:i,key:o,position:a,behavior:l,debounce:c=!0}=e;if(void 0!==r||void 0!==n)w(r,n,l);else if(void 0!==i)x(i,l,c);else if(void 0!==o){const e=s.value.get(o);void 0!==e&&x(e,l,c)}else"bottom"===a?w(0,Number.MAX_SAFE_INTEGER,l):"top"===a&&w(0,0,l)};let y,b=null;function x(t,r,n){const{value:i}=u,o=i.sum(t)+Er(e.paddingTop);if(n){y=t,null!==b&&window.clearTimeout(b),b=window.setTimeout((()=>{y=void 0,b=null}),16);const{scrollTop:e,offsetHeight:n}=a.value;if(o>e){const s=i.get(t);o+s<=e+n||a.value.scrollTo({left:0,top:o+s-n,behavior:r})}else a.value.scrollTo({left:0,top:o,behavior:r})}else a.value.scrollTo({left:0,top:o,behavior:r})}function w(e,t,r){a.value.scrollTo({left:e,top:t,behavior:r})}function C(t,n){var i,o,l;if(r)return;if(e.ignoreItemResize)return;if(_(n.target))return;const{value:h}=u,f=s.value.get(t),p=h.get(f),g=null!==(l=null===(o=null===(i=n.borderBoxSize)||void 0===i?void 0:i[0])||void 0===o?void 0:o.blockSize)&&void 0!==l?l:n.contentRect.height;if(g===p)return;const m=g-e.itemSize;0===m?c.delete(t):c.set(t,g-e.itemSize);const v=g-p;if(0===v)return;h.add(f,v);const b=a.value;if(null!=b){if(void 0===y){const e=h.sum(f);b.scrollTop>e&&b.scrollBy(0,v)}else if(fb.scrollTop+b.offsetHeight&&b.scrollBy(0,v)}E()}d.value++}const S=!Lr();let A=!1;function k(t){var r;null===(r=e.onScroll)||void 0===r||r.call(e,t),S&&A||E()}function T(t){var r;if(null===(r=e.onWheel)||void 0===r||r.call(e,t),S){const e=a.value;if(null!=e){if(0===t.deltaX){if(0===e.scrollTop&&t.deltaY<=0)return;if(e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0)return}t.preventDefault(),e.scrollTop+=t.deltaY/Fr(),e.scrollLeft+=t.deltaX/Fr(),E(),A=!0,(0,Mr.J)((()=>{A=!1}))}}}function P(t){if(r)return;if(_(t.target))return;if(t.contentRect.height===l.value)return;l.value=t.contentRect.height;const{onResize:n}=e;void 0!==n&&n(t)}function E(){const{value:e}=a;null!=e&&(f.value=e.scrollTop,h=e.scrollLeft)}function _(e){let t=e;while(null!==t){if("none"===t.style.display)return!0;t=t.parentElement}return!1}return{listHeight:l,listStyle:{overflow:"auto"},keyToIndex:s,itemsStyle:(0,n.Fl)((()=>{const{itemResizable:t}=e,r=_r(u.value.sum());return d.value,[e.itemsStyle,{boxSizing:"content-box",height:t?"":r,minHeight:t?r:"",paddingTop:_r(e.paddingTop),paddingBottom:_r(e.paddingBottom)}]})),visibleItemsStyle:(0,n.Fl)((()=>(d.value,{transform:`translateY(${_r(u.value.sum(p.value))})`}))),viewportItems:g,listElRef:a,itemsElRef:(0,i.iH)(null),scrollTo:v,handleListResize:P,handleListScroll:k,handleListWheel:T,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:r,visibleItemsTag:i}=this;return(0,n.h)(je,{onResize:this.handleListResize},{default:()=>{var o,s;return(0,n.h)("div",(0,n.dG)(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[0!==this.items.length?(0,n.h)("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[(0,n.h)(i,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map((i=>{const o=i[t],s=r.get(o),a=this.$slots.default({item:i,index:s})[0];return e?(0,n.h)(je,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>a}):(a.key=o,a)}))})]):null===(s=(o=this.$slots).empty)||void 0===s?void 0:s.call(o)])}})}}),Wr=r(4956),Vr=r(8934);function Ur(e,t,r){if(!t)return void 0;const i=(0,qe.O)(),o=(0,n.f3)(Wr.Y,null),s=()=>{const n=r.value;t.mount({id:void 0===n?e:n+e,head:!0,anchorMetaName:Qe.A,props:{bPrefix:n?`.${n}-`:void 0},ssr:i}),(null===o||void 0===o?void 0:o.preflightStyleDisabled)||Vr.Z.mount({id:"n-global",head:!0,anchorMetaName:Qe.A,ssr:i})};i?s():(0,n.wF)(s)}var jr=(0,st.cB)("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[(0,st.c)("svg","\n height: 1em;\n width: 1em;\n ")]),Zr=(0,n.aZ)({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Ur("-base-icon",jr,(0,i.Vh)(e,"clsPrefix"))},render(){return(0,n.h)("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Gr=(0,n.aZ)({name:"Empty",render(){return(0,n.h)("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),(0,n.h)("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}});const Xr={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"yyyy-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};var Yr=Xr,$r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qr=function(e,t,r){var n,i=$r[e];return n="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},Qr=qr;function Jr(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Kr={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},en={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},tn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rn={date:Jr({formats:Kr,defaultWidth:"full"}),time:Jr({formats:en,defaultWidth:"full"}),dateTime:Jr({formats:tn,defaultWidth:"full"})},nn=rn,on={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sn=function(e,t,r,n){return on[e]},an=sn;function ln(e){return function(t,r){var n,i=null!==r&&void 0!==r&&r.context?String(r.context):"standalone";if("formatting"===i&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=null!==r&&void 0!==r&&r.width?String(r.width):o;n=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=null!==r&&void 0!==r&&r.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[a]}var c=e.argumentCallback?e.argumentCallback(t):t;return n[c]}}var cn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},un={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},gn=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},mn={ordinalNumber:gn,era:ln({values:cn,defaultWidth:"wide"}),quarter:ln({values:un,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ln({values:dn,defaultWidth:"wide"}),day:ln({values:hn,defaultWidth:"wide"}),dayPeriod:ln({values:fn,defaultWidth:"wide",formattingValues:pn,defaultFormattingWidth:"wide"})},vn=mn;function yn(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s,a=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?xn(l,(function(e){return e.test(a)})):bn(l,(function(e){return e.test(a)}));s=e.valueCallback?e.valueCallback(c):c,s=r.valueCallback?r.valueCallback(s):s;var u=t.slice(a.length);return{value:s,rest:u}}}function bn(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function xn(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var Cn=/^(\d+)(th|st|nd|rd)?/i,Sn=/\d+/i,An={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},kn={any:[/^b/i,/^(a|c)/i]},Tn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Pn={any:[/1/i,/2/i,/3/i,/4/i]},En={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_n={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},On={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Mn={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},zn={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Rn={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bn={ordinalNumber:wn({matchPattern:Cn,parsePattern:Sn,valueCallback:function(e){return parseInt(e,10)}}),era:yn({matchPatterns:An,defaultMatchWidth:"wide",parsePatterns:kn,defaultParseWidth:"any"}),quarter:yn({matchPatterns:Tn,defaultMatchWidth:"wide",parsePatterns:Pn,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:yn({matchPatterns:En,defaultMatchWidth:"wide",parsePatterns:_n,defaultParseWidth:"any"}),day:yn({matchPatterns:On,defaultMatchWidth:"wide",parsePatterns:Mn,defaultParseWidth:"any"}),dayPeriod:yn({matchPatterns:zn,defaultMatchWidth:"any",parsePatterns:Rn,defaultParseWidth:"any"})},In=Bn,Nn={code:"en-US",formatDistance:Qr,formatLong:nn,formatRelative:an,localize:vn,match:In,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ln=Nn;const Fn={name:"en-US",locale:Ln};var Dn=Fn;function Hn(e){const{mergedLocaleRef:t,mergedDateLocaleRef:r}=(0,n.f3)(Wr.Y,null)||{},i=(0,n.Fl)((()=>{var r,n;return null!==(n=null===(r=null===t||void 0===t?void 0:t.value)||void 0===r?void 0:r[e])&&void 0!==n?n:Yr[e]})),o=(0,n.Fl)((()=>{var e;return null!==(e=null===r||void 0===r?void 0:r.value)&&void 0!==e?e:Dn}));return{dateLocaleRef:o,localeRef:i}}var Wn={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};const Vn=e=>{const{textColorDisabled:t,iconColor:r,textColor2:n,fontSizeSmall:i,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:a}=e;return Object.assign(Object.assign({},Wn),{fontSizeSmall:i,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:a,textColor:t,iconColor:r,extraTextColor:n})},Un={name:"Empty",common:rt.Z,self:Vn};var jn=Un,Zn=(0,st.cB)("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--n-font-size);\n",[(0,st.cE)("icon","\n width: var(--n-icon-size);\n height: var(--n-icon-size);\n font-size: var(--n-icon-size);\n line-height: var(--n-icon-size);\n color: var(--n-icon-color);\n transition:\n color .3s var(--n-bezier);\n ",[(0,st.c)("+",[(0,st.cE)("description","\n margin-top: 8px;\n ")])]),(0,st.cE)("description","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),(0,st.cE)("extra","\n text-align: center;\n transition: color .3s var(--n-bezier);\n margin-top: 12px;\n color: var(--n-extra-text-color);\n ")]);const Gn=Object.assign(Object.assign({},k.Z.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var Xn=(0,n.aZ)({name:"Empty",props:Gn,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=(0,Xe.ZP)(e),i=(0,k.Z)("Empty","-empty",Zn,jn,e,t),{localeRef:o}=Hn("Empty"),s=(0,n.f3)(Wr.Y,null),a=(0,n.Fl)((()=>{var t,r,n;return null!==(t=e.description)&&void 0!==t?t:null===(n=null===(r=null===s||void 0===s?void 0:s.mergedComponentPropsRef.value)||void 0===r?void 0:r.Empty)||void 0===n?void 0:n.description})),l=(0,n.Fl)((()=>{var e,t;return(null===(t=null===(e=null===s||void 0===s?void 0:s.mergedComponentPropsRef.value)||void 0===e?void 0:e.Empty)||void 0===t?void 0:t.renderIcon)||(()=>(0,n.h)(Gr,null))})),c=(0,n.Fl)((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:r},self:{[(0,st.Tl)("iconSize",t)]:n,[(0,st.Tl)("fontSize",t)]:o,textColor:s,iconColor:a,extraTextColor:l}}=i.value;return{"--n-icon-size":n,"--n-font-size":o,"--n-bezier":r,"--n-text-color":s,"--n-icon-color":a,"--n-extra-text-color":l}})),u=r?(0,Ke.F)("empty",(0,n.Fl)((()=>{let t="";const{size:r}=e;return t+=r[0],t})),c,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:(0,n.Fl)((()=>a.value||o.value.description)),cssVars:r?void 0:c,themeClass:null===u||void 0===u?void 0:u.themeClass,onRender:null===u||void 0===u?void 0:u.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:r}=this;return null===r||void 0===r||r(),(0,n.h)("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?(0,n.h)("div",{class:`${t}-empty__icon`},e.icon?e.icon():(0,n.h)(Zr,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?(0,n.h)("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?(0,n.h)("div",{class:`${t}-empty__extra`},e.extra()):null)}});function Yn(e,t){t&&((0,n.bv)((()=>{const{value:r}=e;r&&Ve.registerHandler(r,t)})),(0,n.Jd)((()=>{const{value:t}=e;t&&Ve.unregisterHandler(t)})))}var $n=(0,n.aZ)({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const r=(0,p.Z)();return()=>(0,n.h)(T.uT,{name:"icon-switch-transition",appear:r.value},t)}});const{cubicBezierEaseInOut:qn}=at["default"];function Qn({originalTransform:e="",left:t=0,top:r=0,transition:n=`all .3s ${qn} !important`}={}){return[(0,st.c)("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:r,opacity:0}),(0,st.c)("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:r,opacity:1}),(0,st.c)("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:r,transition:n})]}var Jn=(0,st.c)([(0,st.c)("@keyframes rotator","\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }"),(0,st.cB)("base-loading","\n position: relative;\n line-height: 0;\n width: 1em;\n height: 1em;\n ",[(0,st.cE)("transition-wrapper","\n position: absolute;\n width: 100%;\n height: 100%;\n ",[Qn()]),(0,st.cE)("placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[Qn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),(0,st.cE)("container","\n animation: rotator 3s linear infinite both;\n ",[(0,st.cE)("icon","\n height: 1em;\n width: 1em;\n ")])])]);const Kn="1.6s",ei={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}};var ti=(0,n.aZ)({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},ei),setup(e){Ur("-base-loading",Jn,(0,i.Vh)(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:r,stroke:i,scale:o}=this,s=t/o;return(0,n.h)("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},(0,n.h)($n,null,{default:()=>this.show?(0,n.h)("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},(0,n.h)("div",{class:`${e}-base-loading__container`},(0,n.h)("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*s} ${2*s}`,xmlns:"http://www.w3.org/2000/svg",style:{color:i}},(0,n.h)("g",null,(0,n.h)("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${s} ${s};270 ${s} ${s}`,begin:"0s",dur:Kn,fill:"freeze",repeatCount:"indefinite"}),(0,n.h)("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":r,"stroke-linecap":"round",cx:s,cy:s,r:t-r/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},(0,n.h)("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${s} ${s};135 ${s} ${s};450 ${s} ${s}`,begin:"0s",dur:Kn,fill:"freeze",repeatCount:"indefinite"}),(0,n.h)("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:Kn,fill:"freeze",repeatCount:"indefinite"})))))):(0,n.h)("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),ri=(0,n.aZ)({props:{onFocus:Function,onBlur:Function},setup(e){return()=>(0,n.h)("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),ni=ri,ii={height:"calc(var(--n-option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};const oi=e=>{const{borderRadius:t,popoverColor:r,textColor3:n,dividerColor:i,textColor2:o,primaryColorPressed:s,textColorDisabled:a,primaryColor:l,opacityDisabled:c,hoverColor:u,fontSizeSmall:d,fontSizeMedium:h,fontSizeLarge:f,fontSizeHuge:p,heightSmall:g,heightMedium:m,heightLarge:v,heightHuge:y}=e;return Object.assign(Object.assign({},ii),{optionFontSizeSmall:d,optionFontSizeMedium:h,optionFontSizeLarge:f,optionFontSizeHuge:p,optionHeightSmall:g,optionHeightMedium:m,optionHeightLarge:v,optionHeightHuge:y,borderRadius:t,color:r,groupHeaderTextColor:n,actionDividerColor:i,optionTextColor:o,optionTextColorPressed:s,optionTextColorDisabled:a,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:o,loadingColor:l})},si=(0,k.j)({name:"InternalSelectMenu",common:rt.Z,peers:{Scrollbar:ot,Empty:jn},self:oi});var ai=si;const li=(e,...t)=>"function"===typeof e?e(...t):"string"===typeof e?(0,n.Uk)(e):"number"===typeof e?(0,n.Uk)(String(e)):null;function ci(e){const t=e.filter((e=>void 0!==e));if(0!==t.length)return 1===t.length?t[0]:t=>{e.forEach((e=>{e&&e(t)}))}}var ui=(0,n.aZ)({name:"Checkmark",render(){return(0,n.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},(0,n.h)("g",{fill:"none"},(0,n.h)("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),di=r(9744);function hi(e,t){return(0,n.h)(T.uT,{name:"fade-in-scale-up-transition"},{default:()=>e?(0,n.h)(Zr,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>(0,n.h)(ui)}):null})}var fi=(0,n.aZ)({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:r,multipleRef:i,valueSetRef:o,renderLabelRef:s,renderOptionRef:a,labelFieldRef:l,valueFieldRef:c,showCheckmarkRef:u,nodePropsRef:d,handleOptionClick:h,handleOptionMouseEnter:f}=(0,n.f3)(di.M),p=(0,m.Z)((()=>{const{value:t}=r;return!!t&&e.tmNode.key===t.key}));function g(t){const{tmNode:r}=e;r.disabled||h(t,r)}function v(t){const{tmNode:r}=e;r.disabled||f(t,r)}function y(t){const{tmNode:r}=e,{value:n}=p;r.disabled||n||f(t,r)}return{multiple:i,isGrouped:(0,m.Z)((()=>{const{tmNode:t}=e,{parent:r}=t;return r&&"group"===r.rawNode.type})),showCheckmark:u,nodeProps:d,isPending:p,isSelected:(0,m.Z)((()=>{const{value:r}=t,{value:n}=i;if(null===r)return!1;const s=e.tmNode.rawNode[c.value];if(n){const{value:e}=o;return e.has(s)}return r===s})),labelField:l,renderLabel:s,renderOption:a,handleMouseMove:y,handleMouseEnter:v,handleClick:g}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:r,isPending:i,isGrouped:o,showCheckmark:s,nodeProps:a,renderOption:l,renderLabel:c,handleClick:u,handleMouseEnter:d,handleMouseMove:h}=this,f=hi(r,e),p=c?[c(t,r),s&&f]:[li(t[this.labelField],t,r),s&&f],g=null===a||void 0===a?void 0:a(t),m=(0,n.h)("div",Object.assign({},g,{class:[`${e}-base-select-option`,t.class,null===g||void 0===g?void 0:g.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:r,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:i,[`${e}-base-select-option--show-checkmark`]:s}],style:[(null===g||void 0===g?void 0:g.style)||"",t.style||""],onClick:ci([u,null===g||void 0===g?void 0:g.onClick]),onMouseenter:ci([d,null===g||void 0===g?void 0:g.onMouseenter]),onMousemove:ci([h,null===g||void 0===g?void 0:g.onMousemove])}),(0,n.h)("div",{class:`${e}-base-select-option__content`},p));return t.render?t.render({node:m,option:t,selected:r}):l?l({node:m,option:t,selected:r}):m}}),pi=(0,n.aZ)({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:r,nodePropsRef:i}=(0,n.f3)(di.M);return{labelField:r,nodeProps:i,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:r,nodeProps:i,tmNode:{rawNode:o}}=this,s=null===i||void 0===i?void 0:i(o),a=t?t(o,!1):li(o[this.labelField],o,!1),l=(0,n.h)("div",Object.assign({},s,{class:[`${e}-base-select-group-header`,null===s||void 0===s?void 0:s.class]}),a);return o.render?o.render({node:l,option:o}):r?r({node:l,option:o,selected:!1}):l}}),gi=r(1486),mi=(0,st.cB)("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--n-border-radius);\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n background-color: var(--n-color);\n",[(0,st.cB)("scrollbar","\n max-height: var(--n-height);\n "),(0,st.cB)("virtual-list","\n max-height: var(--n-height);\n "),(0,st.cB)("base-select-option","\n min-height: var(--n-option-height);\n font-size: var(--n-option-font-size);\n display: flex;\n align-items: center;\n ",[(0,st.cE)("content","\n z-index: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),(0,st.cB)("base-select-group-header","\n min-height: var(--n-option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),(0,st.cB)("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),(0,st.cE)("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),(0,st.cE)("loading","\n color: var(--n-loading-color);\n font-size: var(--n-loading-size);\n "),(0,st.cE)("header","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),(0,st.cE)("action","\n padding: 8px var(--n-option-padding-left);\n font-size: var(--n-option-font-size);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n border-top: 1px solid var(--n-action-divider-color);\n color: var(--n-action-text-color);\n "),(0,st.cB)("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--n-option-padding);\n color: var(--n-group-header-text-color);\n "),(0,st.cB)("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--n-option-padding);\n transition:\n color .3s var(--n-bezier),\n opacity .3s var(--n-bezier);\n box-sizing: border-box;\n color: var(--n-option-text-color);\n opacity: 1;\n ",[(0,st.cM)("show-checkmark","\n padding-right: calc(var(--n-option-padding-right) + 20px);\n "),(0,st.c)("&::before",'\n content: "";\n position: absolute;\n left: 4px;\n right: 4px;\n top: 0;\n bottom: 0;\n border-radius: var(--n-border-radius);\n transition: background-color .3s var(--n-bezier);\n '),(0,st.c)("&:active","\n color: var(--n-option-text-color-pressed);\n "),(0,st.cM)("grouped","\n padding-left: calc(var(--n-option-padding-left) * 1.5);\n "),(0,st.cM)("pending",[(0,st.c)("&::before","\n background-color: var(--n-option-color-pending);\n ")]),(0,st.cM)("selected","\n color: var(--n-option-text-color-active);\n ",[(0,st.c)("&::before","\n background-color: var(--n-option-color-active);\n "),(0,st.cM)("pending",[(0,st.c)("&::before","\n background-color: var(--n-option-color-active-pending);\n ")])]),(0,st.cM)("disabled","\n cursor: not-allowed;\n ",[(0,st.u4)("selected","\n color: var(--n-option-text-color-disabled);\n "),(0,st.cM)("selected","\n opacity: var(--n-option-opacity-disabled);\n ")]),(0,st.cE)("check","\n font-size: 16px;\n position: absolute;\n right: calc(var(--n-option-padding-right) - 4px);\n top: calc(50% - 7px);\n color: var(--n-option-check-color);\n transition: color .3s var(--n-bezier);\n ",[(0,gi.h)({enterScale:"0.5"})])])]),vi=(0,n.aZ)({name:"InternalSelectMenu",props:Object.assign(Object.assign({},k.Z.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:r}=(0,Xe.ZP)(e),o=Je("InternalSelectMenu",r,t),s=(0,k.Z)("InternalSelectMenu","-internal-select-menu",mi,ai,e,(0,i.Vh)(e,"clsPrefix")),a=(0,i.iH)(null),l=(0,i.iH)(null),c=(0,i.iH)(null),u=(0,n.Fl)((()=>e.treeMate.getFlattenedNodes())),d=(0,n.Fl)((()=>or(u.value))),h=(0,i.iH)(null);function f(){const{treeMate:t}=e;let r=null;const{value:n}=e;null===n?r=t.getFirstAvailableNode():(r=e.multiple?t.getNode((n||[])[(n||[]).length-1]):t.getNode(n),r&&!r.disabled||(r=t.getFirstAvailableNode())),R(r||null)}function p(){const{value:t}=h;t&&!e.treeMate.getNode(t.key)&&(h.value=null)}let g;(0,n.YP)((()=>e.show),(t=>{t?g=(0,n.YP)((()=>e.treeMate),(()=>{e.resetMenuOnOptionsChange?(e.autoPending?f():p(),(0,n.Y3)(B)):p()}),{immediate:!0}):null===g||void 0===g||g()}),{immediate:!0}),(0,n.Jd)((()=>{null===g||void 0===g||g()}));const m=(0,n.Fl)((()=>Er(s.value.self[(0,st.Tl)("optionHeight",e.size)]))),v=(0,n.Fl)((()=>Or(s.value.self[(0,st.Tl)("padding",e.size)]))),y=(0,n.Fl)((()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set)),b=(0,n.Fl)((()=>{const e=u.value;return e&&0===e.length}));function x(t){const{onToggle:r}=e;r&&r(t)}function w(t){const{onScroll:r}=e;r&&r(t)}function C(e){var t;null===(t=c.value)||void 0===t||t.sync(),w(e)}function S(){var e;null===(e=c.value)||void 0===e||e.sync()}function A(){const{value:e}=h;return e||null}function T(e,t){t.disabled||R(t,!1)}function P(e,t){t.disabled||x(t)}function E(t){var r;Ar(t,"action")||null===(r=e.onKeyup)||void 0===r||r.call(e,t)}function _(t){var r;Ar(t,"action")||null===(r=e.onKeydown)||void 0===r||r.call(e,t)}function O(t){var r;null===(r=e.onMousedown)||void 0===r||r.call(e,t),e.focusable||t.preventDefault()}function M(){const{value:e}=h;e&&R(e.getNext({loop:!0}),!0)}function z(){const{value:e}=h;e&&R(e.getPrev({loop:!0}),!0)}function R(e,t=!1){h.value=e,t&&B()}function B(){var t,r;const n=h.value;if(!n)return;const i=d.value(n.key);null!==i&&(e.virtualScroll?null===(t=l.value)||void 0===t||t.scrollTo({index:i}):null===(r=c.value)||void 0===r||r.scrollTo({index:i,elSize:m.value}))}function I(t){var r,n;(null===(r=a.value)||void 0===r?void 0:r.contains(t.target))&&(null===(n=e.onFocus)||void 0===n||n.call(e,t))}function N(t){var r,n;(null===(r=a.value)||void 0===r?void 0:r.contains(t.relatedTarget))||null===(n=e.onBlur)||void 0===n||n.call(e,t)}(0,n.JJ)(di.M,{handleOptionMouseEnter:T,handleOptionClick:P,valueSetRef:y,pendingTmNodeRef:h,nodePropsRef:(0,i.Vh)(e,"nodeProps"),showCheckmarkRef:(0,i.Vh)(e,"showCheckmark"),multipleRef:(0,i.Vh)(e,"multiple"),valueRef:(0,i.Vh)(e,"value"),renderLabelRef:(0,i.Vh)(e,"renderLabel"),renderOptionRef:(0,i.Vh)(e,"renderOption"),labelFieldRef:(0,i.Vh)(e,"labelField"),valueFieldRef:(0,i.Vh)(e,"valueField")}),(0,n.JJ)(di.G,a),(0,n.bv)((()=>{const{value:e}=c;e&&e.sync()}));const L=(0,n.Fl)((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:r},self:{height:n,borderRadius:i,color:o,groupHeaderTextColor:a,actionDividerColor:l,optionTextColorPressed:c,optionTextColor:u,optionTextColorDisabled:d,optionTextColorActive:h,optionOpacityDisabled:f,optionCheckColor:p,actionTextColor:g,optionColorPending:m,optionColorActive:v,loadingColor:y,loadingSize:b,optionColorActivePending:x,[(0,st.Tl)("optionFontSize",t)]:w,[(0,st.Tl)("optionHeight",t)]:C,[(0,st.Tl)("optionPadding",t)]:S}}=s.value;return{"--n-height":n,"--n-action-divider-color":l,"--n-action-text-color":g,"--n-bezier":r,"--n-border-radius":i,"--n-color":o,"--n-option-font-size":w,"--n-group-header-text-color":a,"--n-option-check-color":p,"--n-option-color-pending":m,"--n-option-color-active":v,"--n-option-color-active-pending":x,"--n-option-height":C,"--n-option-opacity-disabled":f,"--n-option-text-color":u,"--n-option-text-color-active":h,"--n-option-text-color-disabled":d,"--n-option-text-color-pressed":c,"--n-option-padding":S,"--n-option-padding-left":Or(S,"left"),"--n-option-padding-right":Or(S,"right"),"--n-loading-color":y,"--n-loading-size":b}})),{inlineThemeDisabled:F}=e,D=F?(0,Ke.F)("internal-select-menu",(0,n.Fl)((()=>e.size[0])),L,e):void 0,H={selfRef:a,next:M,prev:z,getPendingTmNode:A};return Yn(a,e.onResize),Object.assign({mergedTheme:s,mergedClsPrefix:t,rtlEnabled:o,virtualListRef:l,scrollbarRef:c,itemSize:m,padding:v,flattenedNodes:u,empty:b,virtualListContainer(){const{value:e}=l;return null===e||void 0===e?void 0:e.listElRef},virtualListContent(){const{value:e}=l;return null===e||void 0===e?void 0:e.itemsElRef},doScroll:w,handleFocusin:I,handleFocusout:N,handleKeyUp:E,handleKeyDown:_,handleMouseDown:O,handleVirtualListResize:S,handleVirtualListScroll:C,cssVars:F?void 0:L,themeClass:null===D||void 0===D?void 0:D.themeClass,onRender:null===D||void 0===D?void 0:D.onRender},H)},render(){const{$slots:e,virtualScroll:t,clsPrefix:r,mergedTheme:i,themeClass:o,onRender:s}=this;return null===s||void 0===s||s(),(0,n.h)("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${r}-base-select-menu`,this.rtlEnabled&&`${r}-base-select-menu--rtl`,o,this.multiple&&`${r}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},(0,Ct.K9)(e.header,(e=>e&&(0,n.h)("div",{class:`${r}-base-select-menu__header`,"data-header":!0,key:"header"},e))),this.loading?(0,n.h)("div",{class:`${r}-base-select-menu__loading`},(0,n.h)(ti,{clsPrefix:r,strokeWidth:20})):this.empty?(0,n.h)("div",{class:`${r}-base-select-menu__empty`,"data-empty":!0},(0,Ct.gI)(e.empty,(()=>[(0,n.h)(Xn,{theme:i.peers.Empty,themeOverrides:i.peerOverrides.Empty})]))):(0,n.h)(ft,{ref:"scrollbarRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?(0,n.h)(Hr,{ref:"virtualListRef",class:`${r}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?(0,n.h)(pi,{key:e.key,clsPrefix:r,tmNode:e}):e.ignored?null:(0,n.h)(fi,{clsPrefix:r,key:e.key,tmNode:e})}):(0,n.h)("div",{class:`${r}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map((e=>e.isGroup?(0,n.h)(pi,{key:e.key,clsPrefix:r,tmNode:e}):(0,n.h)(fi,{clsPrefix:r,key:e.key,tmNode:e}))))}),(0,Ct.K9)(e.action,(e=>e&&[(0,n.h)("div",{class:`${r}-base-select-menu__action`,"data-action":!0,key:"action"},e),(0,n.h)(ni,{onFocus:this.onTabOut,key:"focus-detector"})])))}});function yi(e){return Object.keys(e)}function bi(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const xi=(0,k.j)({name:"Popselect",common:rt.Z,peers:{Popover:Tt,InternalSelectMenu:ai},self:bi});var wi=xi,Ci=r(7525);const Si=(0,Ci.U)("n-popselect");var Ai=(0,st.cB)("popselect-menu","\n box-shadow: var(--n-menu-box-shadow);\n");const ki={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Ti=yi(ki);var Pi=(0,n.aZ)({name:"PopselectPanel",props:ki,setup(e){const t=(0,n.f3)(Si),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=(0,Xe.ZP)(e),s=(0,k.Z)("Popselect","-pop-select",Ai,wi,t.props,r),a=(0,n.Fl)((()=>Sr(e.options,Pr("value","children"))));function l(t,r){const{onUpdateValue:n,"onUpdate:value":i,onChange:o}=e;n&&(0,x.R)(n,t,r),i&&(0,x.R)(i,t,r),o&&(0,x.R)(o,t,r)}function c(e){d(e.key)}function u(e){Ar(e,"action")||Ar(e,"empty")||Ar(e,"header")||e.preventDefault()}function d(r){const{value:{getNode:i}}=a;if(e.multiple)if(Array.isArray(e.value)){const t=[],n=[];let o=!0;e.value.forEach((e=>{if(e===r)return void(o=!1);const s=i(e);s&&(t.push(s.key),n.push(s.rawNode))})),o&&(t.push(r),n.push(i(r).rawNode)),l(t,n)}else{const e=i(r);e&&l([r],[e.rawNode])}else if(e.value===r&&e.cancelable)l(null,null);else{const e=i(r);e&&l(r,e.rawNode);const{"onUpdate:show":n,onUpdateShow:o}=t.props;n&&(0,x.R)(n,!1),o&&(0,x.R)(o,!1),t.setShow(!1)}(0,n.Y3)((()=>{t.syncPosition()}))}(0,n.YP)((0,i.Vh)(e,"options"),(()=>{(0,n.Y3)((()=>{t.syncPosition()}))}));const h=(0,n.Fl)((()=>{const{self:{menuBoxShadow:e}}=s.value;return{"--n-menu-box-shadow":e}})),f=o?(0,Ke.F)("select",void 0,h,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:r,treeMate:a,handleToggle:c,handleMenuMousedown:u,cssVars:o?void 0:h,themeClass:null===f||void 0===f?void 0:f.themeClass,onRender:null===f||void 0===f?void 0:f.onRender}},render(){var e;return null===(e=this.onRender)||void 0===e||e.call(this),(0,n.h)(vi,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var e,t;return(null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))||[]},action:()=>{var e,t;return(null===(t=(e=this.$slots).action)||void 0===t?void 0:t.call(e))||[]},empty:()=>{var e,t;return(null===(t=(e=this.$slots).empty)||void 0===t?void 0:t.call(e))||[]}})}});function Ei(e,t=[],r){const n={},i=Object.getOwnPropertyNames(e);return i.forEach((r=>{t.includes(r)||(n[r]=e[r])})),Object.assign(n,r)}function _i(e){return t=>{e.value=t?t.$el:null}}const Oi=Object.assign(Object.assign(Object.assign(Object.assign({},k.Z.props),Ei(Ht,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ht.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),ki);var Mi=(0,n.aZ)({name:"Popselect",props:Oi,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=(0,Xe.ZP)(e),r=(0,k.Z)("Popselect","-popselect",void 0,wi,e,t),o=(0,i.iH)(null);function s(){var e;null===(e=o.value)||void 0===e||e.syncPosition()}function a(e){var t;null===(t=o.value)||void 0===t||t.setShow(e)}(0,n.JJ)(Si,{props:e,mergedThemeRef:r,syncPosition:s,setShow:a});const l={syncPosition:s,setShow:a};return Object.assign(Object.assign({},l),{popoverInstRef:o,mergedTheme:r})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(e,t,r,i,o)=>{const{$attrs:s}=this;return(0,n.h)(Pi,Object.assign({},s,{class:[s.class,e],style:[s.style,...r]},A(this.$props,Ti),{ref:_i(t),onMouseenter:ci([i,s.onMouseenter]),onMouseleave:ci([o,s.onMouseleave])}),{header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},action:()=>{var e,t;return null===(t=(e=this.$slots).action)||void 0===t?void 0:t.call(e)},empty:()=>{var e,t;return null===(t=(e=this.$slots).empty)||void 0===t?void 0:t.call(e)}})}};return(0,n.h)(Vt,Object.assign({},Ei(this.$props,Ti),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}})}});const zi="undefined"!==typeof document&&"undefined"!==typeof window,Ri=zi&&"loading"in document.createElement("img"),Bi=Object.assign(Object.assign({},k.Z.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),Ii=(0,Ci.U)("n-image"),Ni=(e={})=>{var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):null!==(t=e.threshold)&&void 0!==t?t:"0"}`,options:Object.assign(Object.assign({},e),{root:("string"===typeof r?document.querySelector(r):r)||document.documentElement})}},Li=new WeakMap,Fi=new WeakMap,Di=new WeakMap,Hi=(e,t,r)=>{if(!e)return()=>{};const n=Ni(t),{root:i}=n.options;let o;const s=Li.get(i);let a,l;s?o=s:(o=new Map,Li.set(i,o)),o.has(n.hash)?(l=o.get(n.hash),l[1].has(e)||(a=l[0],l[1].add(e),a.observe(e))):(a=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=Fi.get(e.target),r=Di.get(e.target);t&&t(),r&&(r.value=!0)}}))}),n.options),a.observe(e),l=[a,new Set([e])],o.set(n.hash,l));let c=!1;const u=()=>{c||(Fi.delete(e),Di.delete(e),c=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&o.delete(n.hash),o.size||Li.delete(i))};return Fi.set(e,u),Di.set(e,r),u};var Wi=r(7139),Vi=r(5638);function Ui(e,t,r,n){var i=-1,o=null==e?0:e.length;n&&o&&(r=e[++i]);while(++i=n?e:(0,cs.Z)(e,t,r)}var ds=us,hs="\\ud800-\\udfff",fs="\\u0300-\\u036f",ps="\\ufe20-\\ufe2f",gs="\\u20d0-\\u20ff",ms=fs+ps+gs,vs="\\ufe0e\\ufe0f",ys="\\u200d",bs=RegExp("["+ys+hs+ms+vs+"]");function xs(e){return bs.test(e)}var ws=xs;function Cs(e){return e.split("")}var Ss=Cs,As="\\ud800-\\udfff",ks="\\u0300-\\u036f",Ts="\\ufe20-\\ufe2f",Ps="\\u20d0-\\u20ff",Es=ks+Ts+Ps,_s="\\ufe0e\\ufe0f",Os="["+As+"]",Ms="["+Es+"]",zs="\\ud83c[\\udffb-\\udfff]",Rs="(?:"+Ms+"|"+zs+")",Bs="[^"+As+"]",Is="(?:\\ud83c[\\udde6-\\uddff]){2}",Ns="[\\ud800-\\udbff][\\udc00-\\udfff]",Ls="\\u200d",Fs=Rs+"?",Ds="["+_s+"]?",Hs="(?:"+Ls+"(?:"+[Bs,Is,Ns].join("|")+")"+Ds+Fs+")*",Ws=Ds+Fs+Hs,Vs="(?:"+[Bs+Ms+"?",Ms,Is,Ns,Os].join("|")+")",Us=RegExp(zs+"(?="+zs+")|"+Vs+Ws,"g");function js(e){return e.match(Us)||[]}var Zs=js;function Gs(e){return ws(e)?Zs(e):Ss(e)}var Xs=Gs;function Ys(e){return function(t){t=(0,qi.Z)(t);var r=ws(t)?Xs(t):void 0,n=r?r[0]:t.charAt(0),i=r?ds(r,1).join(""):t.slice(1);return n[e]()+i}}var $s=Ys,qs=$s("toUpperCase"),Qs=qs;function Js(e,t){return(0,n.aZ)({name:Qs(e),setup(){var r;const i=null===(r=(0,n.f3)(Wr.Y,null))||void 0===r?void 0:r.mergedIconsRef;return()=>{var r;const n=null===(r=null===i||void 0===i?void 0:i.value)||void 0===r?void 0:r[e];return n?n():t}}})}var Ks=Js("rotateClockwise",(0,n.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),(0,n.h)("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),ea=Js("rotateClockwise",(0,n.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),(0,n.h)("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),ta=(0,n.aZ)({name:"ResizeSmall",render(){return(0,n.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,n.h)("g",{fill:"none"},(0,n.h)("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),ra=Js("zoomOut",(0,n.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),(0,n.h)("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),na=Js("zoomIn",(0,n.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),(0,n.h)("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"})));const ia=(e,t)=>{if(!e)return;const r=document.createElement("a");r.href=e,void 0!==t&&(r.download=t),document.body.appendChild(r),r.click(),document.body.removeChild(r)};var oa={padding:"8px 14px"},sa=r(4750);const aa=e=>{const{borderRadius:t,boxShadow2:r,baseColor:n}=e;return Object.assign(Object.assign({},oa),{borderRadius:t,boxShadow:r,color:(0,sa.h$)(n,"rgba(0, 0, 0, .85)"),textColor:n})},la=(0,k.j)({name:"Tooltip",common:rt.Z,peers:{Popover:Tt},self:aa});var ca=la;const ua=Object.assign(Object.assign({},Ht),k.Z.props);var da=(0,n.aZ)({name:"Tooltip",props:ua,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=(0,Xe.ZP)(e),r=(0,k.Z)("Tooltip","-tooltip",void 0,ca,e,t),o=(0,i.iH)(null),s={syncPosition(){o.value.syncPosition()},setShow(e){o.value.setShow(e)}};return Object.assign(Object.assign({},s),{popoverRef:o,mergedTheme:r,popoverThemeOverrides:(0,n.Fl)((()=>r.value.self))})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return(0,n.h)(Vt,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}});function ha(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const fa=(0,k.j)({name:"Image",common:rt.Z,peers:{Tooltip:ca},self:ha}),pa=(0,n.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),ga=(0,n.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),ma=(0,n.h)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),va=(0,n.h)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 1024 1024"},(0,n.h)("path",{fill:"currentColor",d:"M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}));var ya=(0,st.c)([(0,st.c)("body >",[(0,st.cB)("image-container","position: fixed;")]),(0,st.cB)("image-preview-container","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n "),(0,st.cB)("image-preview-overlay","\n z-index: -1;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0, 0, 0, .3);\n ",[ct()]),(0,st.cB)("image-preview-toolbar","\n z-index: 1;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n border-radius: var(--n-toolbar-border-radius);\n height: 48px;\n bottom: 40px;\n padding: 0 12px;\n background: var(--n-toolbar-color);\n box-shadow: var(--n-toolbar-box-shadow);\n color: var(--n-toolbar-icon-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[(0,st.cB)("base-icon","\n padding: 0 8px;\n font-size: 28px;\n cursor: pointer;\n "),ct()]),(0,st.cB)("image-preview-wrapper","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n pointer-events: none;\n ",[(0,gi.h)()]),(0,st.cB)("image-preview","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: all;\n margin: auto;\n max-height: calc(100vh - 32px);\n max-width: calc(100vw - 32px);\n transition: transform .3s var(--n-bezier);\n "),(0,st.cB)("image","\n display: inline-flex;\n max-height: 100%;\n max-width: 100%;\n ",[(0,st.u4)("preview-disabled","\n cursor: pointer;\n "),(0,st.c)("img","\n border-radius: inherit;\n ")])]);const ba=32;var xa=(0,n.aZ)({name:"ImagePreview",props:Object.assign(Object.assign({},Bi),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const t=(0,k.Z)("Image","-image",ya,fa,e,(0,i.Vh)(e,"clsPrefix"));let r=null;const o=(0,i.iH)(null),s=(0,i.iH)(null),a=(0,i.iH)(void 0),l=(0,i.iH)(!1),c=(0,i.iH)(!1),{localeRef:u}=Hn("Image");function d(){const{value:e}=s;if(!r||!e)return;const{style:t}=e,n=r.getBoundingClientRect(),i=n.left+n.width/2,o=n.top+n.height/2;t.transformOrigin=`${i}px ${o}px`}function h(t){var r,n;switch(t.key){case" ":t.preventDefault();break;case"ArrowLeft":null===(r=e.onPrev)||void 0===r||r.call(e);break;case"ArrowRight":null===(n=e.onNext)||void 0===n||n.call(e);break;case"Escape":X();break}}(0,n.YP)(l,(e=>{e?(0,_.on)("keydown",document,h):(0,_.S)("keydown",document,h)})),(0,n.Jd)((()=>{(0,_.S)("keydown",document,h)}));let f=0,g=0,m=0,v=0,y=0,b=0,x=0,w=0,C=!1;function S(e){const{clientX:t,clientY:r}=e;m=t-f,v=r-g,(0,Mr.J)(G)}function A(e){const{mouseUpClientX:t,mouseUpClientY:r,mouseDownClientX:n,mouseDownClientY:i}=e,o=n-t,s=i-r,a="vertical"+(s>0?"Top":"Bottom"),l="horizontal"+(o>0?"Left":"Right");return{moveVerticalDirection:a,moveHorizontalDirection:l,deltaHorizontal:o,deltaVertical:s}}function T(e){const{value:t}=o;if(!t)return{offsetX:0,offsetY:0};const r=t.getBoundingClientRect(),{moveVerticalDirection:n,moveHorizontalDirection:i,deltaHorizontal:s,deltaVertical:a}=e||{};let l=0,c=0;return l=r.width<=window.innerWidth?0:r.left>0?(r.width-window.innerWidth)/2:r.right0?(r.height-window.innerHeight)/2:r.bottom.5){const e=B;R-=1,B=Math.max(.5,Math.pow(z,R));const t=e-B;G(!1);const r=T();B+=t,G(!1),B-=t,m=r.offsetX,v=r.offsetY,G()}}function Z(){const e=a.value;e&&ia(e,void 0)}function G(e=!0){var t;const{value:r}=o;if(!r)return;const{style:n}=r,i=(0,Wi.j5)(null===(t=null===E||void 0===E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.style);let s="";if("string"===typeof i)s=i+";";else for(const o in i)s+=`${ls(o)}: ${i[o]};`;const a=`transform-origin: center; transform: translateX(${m}px) translateY(${v}px) rotate(${I}deg) scale(${B});`;n.cssText=C?s+"cursor: grabbing; transition: none;"+a:s+"cursor: grab;"+a+(e?"":"transition: none;"),e||r.offsetHeight}function X(){l.value=!l.value,c.value=!0}function Y(){B=V(),R=Math.ceil(Math.log(B)/Math.log(z)),m=0,v=0,G()}const $={setPreviewSrc:e=>{a.value=e},setThumbnailEl:e=>{r=e},toggleShow:X};function q(r,i){if(e.showToolbarTooltip){const{value:e}=t;return(0,n.h)(da,{to:!1,theme:e.peers.Tooltip,themeOverrides:e.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>u.value[i],trigger:()=>r})}return r}const Q=(0,n.Fl)((()=>{const{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:r,toolbarBorderRadius:n,toolbarBoxShadow:i,toolbarColor:o}}=t.value;return{"--n-bezier":e,"--n-toolbar-icon-color":r,"--n-toolbar-color":o,"--n-toolbar-border-radius":n,"--n-toolbar-box-shadow":i}})),{inlineThemeDisabled:J}=(0,Xe.ZP)(),K=J?(0,Ke.F)("image-preview",void 0,Q,e):void 0;return Object.assign({previewRef:o,previewWrapperRef:s,previewSrc:a,show:l,appear:(0,p.Z)(),displayed:c,previewedImgProps:null===E||void 0===E?void 0:E.previewedImgPropsRef,handleWheel(e){e.preventDefault()},handlePreviewMousedown:O,handlePreviewDblclick:M,syncTransformOrigin:d,handleAfterLeave:()=>{N(),I=0,c.value=!1},handleDragStart:e=>{var t,r;null===(r=null===(t=null===E||void 0===E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.onDragstart)||void 0===r||r.call(t,e),e.preventDefault()},zoomIn:U,zoomOut:j,handleDownloadClick:Z,rotateCounterclockwise:D,rotateClockwise:H,handleSwitchPrev:L,handleSwitchNext:F,withTooltip:q,resizeToOrignalImageSize:Y,cssVars:J?void 0:Q,themeClass:null===K||void 0===K?void 0:K.themeClass,onRender:null===K||void 0===K?void 0:K.onRender},$)},render(){var e,t;const{clsPrefix:r}=this;return(0,n.h)(n.HY,null,null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e),(0,n.h)(Vi.Z,{show:this.show},{default:()=>{var e;return this.show||this.displayed?(null===(e=this.onRender)||void 0===e||e.call(this),(0,n.wy)((0,n.h)("div",{class:[`${r}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},(0,n.h)(T.uT,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?(0,n.h)("div",{class:`${r}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?(0,n.h)(T.uT,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:e}=this;return(0,n.h)("div",{class:`${r}-image-preview-toolbar`},this.onPrev?(0,n.h)(n.HY,null,e((0,n.h)(Zr,{clsPrefix:r,onClick:this.handleSwitchPrev},{default:()=>pa}),"tipPrevious"),e((0,n.h)(Zr,{clsPrefix:r,onClick:this.handleSwitchNext},{default:()=>ga}),"tipNext")):null,e((0,n.h)(Zr,{clsPrefix:r,onClick:this.rotateCounterclockwise},{default:()=>(0,n.h)(Ks,null)}),"tipCounterclockwise"),e((0,n.h)(Zr,{clsPrefix:r,onClick:this.rotateClockwise},{default:()=>(0,n.h)(ea,null)}),"tipClockwise"),e((0,n.h)(Zr,{clsPrefix:r,onClick:this.resizeToOrignalImageSize},{default:()=>(0,n.h)(ta,null)}),"tipOriginalSize"),e((0,n.h)(Zr,{clsPrefix:r,onClick:this.zoomOut},{default:()=>(0,n.h)(ra,null)}),"tipZoomOut"),e((0,n.h)(Zr,{clsPrefix:r,onClick:this.zoomIn},{default:()=>(0,n.h)(na,null)}),"tipZoomIn"),e((0,n.h)(Zr,{clsPrefix:r,onClick:this.handleDownloadClick},{default:()=>va}),"tipDownload"),e((0,n.h)(Zr,{clsPrefix:r,onClick:this.toggleShow},{default:()=>ma}),"tipClose"))}}):null,(0,n.h)(T.uT,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:e={}}=this;return(0,n.wy)((0,n.h)("div",{class:`${r}-image-preview-wrapper`,ref:"previewWrapperRef"},(0,n.h)("img",Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${r}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[T.F8,this.show]])}})),[[y.Z,{enabled:this.show}]])):null}}))}});const wa=(0,Ci.U)("n-image-group"),Ca=Bi;(0,n.aZ)({name:"ImageGroup",props:Ca,setup(e){let t;const{mergedClsPrefixRef:r}=(0,Xe.ZP)(e),o=`c${P()}`,s=(0,n.FN)(),a=e=>{var r;t=e,null===(r=c.value)||void 0===r||r.setPreviewSrc(e)};function l(r){var n,i;if(!(null===s||void 0===s?void 0:s.proxy))return;const l=s.proxy.$el.parentElement,c=l.querySelectorAll(`[data-group-id=${o}]:not([data-error=true])`);if(!c.length)return;const u=Array.from(c).findIndex((e=>e.dataset.previewSrc===t));a(~u?c[(u+r+c.length)%c.length].dataset.previewSrc:c[0].dataset.previewSrc),1===r?null===(n=e.onPreviewNext)||void 0===n||n.call(e):null===(i=e.onPreviewPrev)||void 0===i||i.call(e)}(0,n.JJ)(wa,{mergedClsPrefixRef:r,setPreviewSrc:a,setThumbnailEl:e=>{var t;null===(t=c.value)||void 0===t||t.setThumbnailEl(e)},toggleShow:()=>{var e;null===(e=c.value)||void 0===e||e.toggleShow()},groupId:o});const c=(0,i.iH)(null);return{mergedClsPrefix:r,previewInstRef:c,next:()=>{l(1)},prev:()=>{l(-1)}}},render(){return(0,n.h)(xa,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}});const Sa=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},Bi);var Aa=(0,n.aZ)({name:"Image",props:Sa,inheritAttrs:!1,setup(e){const t=(0,i.iH)(null),r=(0,i.iH)(!1),o=(0,i.iH)(null),s=(0,n.f3)(wa,null),{mergedClsPrefixRef:a}=s||(0,Xe.ZP)(e),l={click:()=>{if(e.previewDisabled||r.value)return;const n=e.previewSrc||e.src;if(s)return s.setPreviewSrc(n),s.setThumbnailEl(t.value),void s.toggleShow();const{value:i}=o;i&&(i.setPreviewSrc(n),i.setThumbnailEl(t.value),i.toggleShow())}},c=(0,i.iH)(!e.lazy);(0,n.bv)((()=>{var e;null===(e=t.value)||void 0===e||e.setAttribute("data-group-id",(null===s||void 0===s?void 0:s.groupId)||"")})),(0,n.bv)((()=>{if(e.lazy&&e.intersectionObserverOptions){let r;const i=(0,n.m0)((()=>{null===r||void 0===r||r(),r=void 0,r=Hi(t.value,e.intersectionObserverOptions,c)}));(0,n.Jd)((()=>{i(),null===r||void 0===r||r()}))}})),(0,n.m0)((()=>{var t;e.src||null===(t=e.imgProps)||void 0===t||t.src,r.value=!1}));const u=(0,i.iH)(!1);return(0,n.JJ)(Ii,{previewedImgPropsRef:(0,i.Vh)(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:a,groupId:null===s||void 0===s?void 0:s.groupId,previewInstRef:o,imageRef:t,showError:r,shouldStartLoading:c,loaded:u,mergedOnClick:t=>{var r,n;l.click(),null===(n=null===(r=e.imgProps)||void 0===r?void 0:r.onClick)||void 0===n||n.call(r,t)},mergedOnError:t=>{if(!c.value)return;r.value=!0;const{onError:n,imgProps:{onError:i}={}}=e;null===n||void 0===n||n(t),null===i||void 0===i||i(t)},mergedOnLoad:t=>{const{onLoad:r,imgProps:{onLoad:n}={}}=e;null===r||void 0===r||r(t),null===n||void 0===n||n(t),u.value=!0}},l)},render(){var e,t;const{mergedClsPrefix:r,imgProps:i={},loaded:o,$attrs:s,lazy:a}=this,l=null===(t=(e=this.$slots).placeholder)||void 0===t?void 0:t.call(e),c=this.src||i.src,u=(0,n.h)("img",Object.assign(Object.assign({},i),{ref:"imageRef",width:this.width||i.width,height:this.height||i.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?c:void 0:c,alt:this.alt||i.alt,"aria-label":this.alt||i.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Ri&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[i.style||"",l&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return(0,n.h)("div",Object.assign({},s,{role:"none",class:[s.class,`${r}-image`,(this.previewDisabled||this.showError)&&`${r}-image--preview-disabled`]}),this.groupId?u:(0,n.h)(xa,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:r,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>u}),!o&&l)}});const ka=e=>{const{opacityDisabled:t,heightTiny:r,heightSmall:n,heightMedium:i,heightLarge:o,heightHuge:s,primaryColor:a,fontSize:l}=e;return{fontSize:l,textColor:a,sizeTiny:r,sizeSmall:n,sizeMedium:i,sizeLarge:o,sizeHuge:s,color:a,opacitySpinning:t}},Ta={name:"Spin",common:rt.Z,self:ka};var Pa=Ta,Ea=(0,st.c)([(0,st.c)("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),(0,st.cB)("spin-container","\n position: relative;\n ",[(0,st.cB)("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[ct()])]),(0,st.cB)("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),(0,st.cB)("spin","\n display: inline-flex;\n height: var(--n-size);\n width: var(--n-size);\n font-size: var(--n-size);\n color: var(--n-color);\n ",[(0,st.cM)("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),(0,st.cB)("spin-description","\n display: inline-block;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition: color .3s var(--n-bezier);\n margin-top: 8px;\n "),(0,st.cB)("spin-content","\n opacity: 1;\n transition: opacity .3s var(--n-bezier);\n pointer-events: all;\n ",[(0,st.cM)("spinning","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: none;\n opacity: var(--n-opacity-spinning);\n ")])]);const _a={small:20,medium:18,large:16},Oa=Object.assign(Object.assign({},k.Z.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number});var Ma=(0,n.aZ)({name:"Spin",props:Oa,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:r}=(0,Xe.ZP)(e),o=(0,k.Z)("Spin","-spin",Ea,Pa,e,t),s=(0,n.Fl)((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:r},self:n}=o.value,{opacitySpinning:i,color:s,textColor:a}=n,l="number"===typeof t?_r(t):n[(0,st.Tl)("size",t)];return{"--n-bezier":r,"--n-opacity-spinning":i,"--n-size":l,"--n-color":s,"--n-text-color":a}})),a=r?(0,Ke.F)("spin",(0,n.Fl)((()=>{const{size:t}=e;return"number"===typeof t?String(t):t[0]})),s,e):void 0,l=v(e,["spinning","show"]),c=(0,i.iH)(!1);return(0,n.m0)((t=>{let r;if(l.value){const{delay:n}=e;if(n)return r=window.setTimeout((()=>{c.value=!0}),n),void t((()=>{clearTimeout(r)}))}c.value=l.value})),{mergedClsPrefix:t,active:c,mergedStrokeWidth:(0,n.Fl)((()=>{const{strokeWidth:t}=e;if(void 0!==t)return t;const{size:r}=e;return _a["number"===typeof r?"medium":r]})),cssVars:r?void 0:s,themeClass:null===a||void 0===a?void 0:a.themeClass,onRender:null===a||void 0===a?void 0:a.onRender}},render(){var e,t;const{$slots:r,mergedClsPrefix:i,description:o}=this,s=r.icon&&this.rotate,a=(o||r.description)&&(0,n.h)("div",{class:`${i}-spin-description`},o||(null===(e=r.description)||void 0===e?void 0:e.call(r))),l=r.icon?(0,n.h)("div",{class:[`${i}-spin-body`,this.themeClass]},(0,n.h)("div",{class:[`${i}-spin`,s&&`${i}-spin--rotate`],style:r.default?"":this.cssVars},r.icon()),a):(0,n.h)("div",{class:[`${i}-spin-body`,this.themeClass]},(0,n.h)(ti,{clsPrefix:i,style:r.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${i}-spin`}),a);return null===(t=this.onRender)||void 0===t||t.call(this),r.default?(0,n.h)("div",{class:[`${i}-spin-container`,this.themeClass],style:this.cssVars},(0,n.h)("div",{class:[`${i}-spin-content`,this.active&&`${i}-spin-content--spinning`,this.contentClass],style:this.contentStyle},r),(0,n.h)(T.uT,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),za={container:"lPbxVRza_ucngkPAetn5",previewcontainer:"OC1v0Vvgl6Yj6ssxhhQS",containerModal:"BNAavG4dGlo_bIC0VVjw",hidden:"XLDBEPLfVoakrXLGSMSD",item:"H_AI8LlO4qgKdVheIhoS",img:"oM3FwCdbt24s6UmlfTN7",rotateImg:"GC6lXUqNEwOe7bR6y1YQ",imgRotate:"Th89Gftv9xI9EMiy98uj",svgcontainer:"rDzL6BcrIkOJfcqMJZ6W",progress:"WWsZVylEdMY3zPp8cItW",title:"nsic8BkCFA4y8eKa6lLE",titleName:"Qqk2fsfCRk55Z5xV1hn5",titleDes:"XGk53wGUmk2tMOk0TJBf",playBtns:"VW6hy1jKGTYbUsJyr7rS",disabled:"EdJNwrIB0dotKi19Of4n",playBtn:"SzJSqhdpsZIZZoBJlebC",timeWrap:"Xxt7ECyluMI3tuZ1rNV2",timeProgress:"mwlXdWmem3cMVD6gOdzE",time:"fK670HRLI8ljPg0ZFEVI",iconArrow:"Cxurr3QsZBgHQRF0AWIT",down:"xdoecdaVwUFrDx0Zaytr"};const Ra=e=>{const{infoColor:t,successColor:r,warningColor:n,errorColor:i,textColor2:o,progressRailColor:s,fontSize:a,fontWeight:l}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:l,railColor:s,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:r,iconColorWarning:n,iconColorError:i,textColorCircle:o,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:o,fillColor:t,fillColorInfo:t,fillColorSuccess:r,fillColorWarning:n,fillColorError:i,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},Ba={name:"Progress",common:rt.Z,self:Ra};var Ia=Ba,Na=(0,st.c)([(0,st.cB)("progress",{display:"inline-block"},[(0,st.cB)("progress-icon","\n color: var(--n-icon-color);\n transition: color .3s var(--n-bezier);\n "),(0,st.cM)("line","\n width: 100%;\n display: block;\n ",[(0,st.cB)("progress-content","\n display: flex;\n align-items: center;\n ",[(0,st.cB)("progress-graph",{flex:1})]),(0,st.cB)("progress-custom-content",{marginLeft:"14px"}),(0,st.cB)("progress-icon","\n width: 30px;\n padding-left: 14px;\n height: var(--n-icon-size-line);\n line-height: var(--n-icon-size-line);\n font-size: var(--n-icon-size-line);\n ",[(0,st.cM)("as-text","\n color: var(--n-text-color-line-outer);\n text-align: center;\n width: 40px;\n font-size: var(--n-font-size);\n padding-left: 4px;\n transition: color .3s var(--n-bezier);\n ")])]),(0,st.cM)("circle, dashboard",{width:"120px"},[(0,st.cB)("progress-custom-content","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n "),(0,st.cB)("progress-text","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: inherit;\n font-size: var(--n-font-size-circle);\n color: var(--n-text-color-circle);\n font-weight: var(--n-font-weight-circle);\n transition: color .3s var(--n-bezier);\n white-space: nowrap;\n "),(0,st.cB)("progress-icon","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n color: var(--n-icon-color);\n font-size: var(--n-icon-size-circle);\n ")]),(0,st.cM)("multiple-circle","\n width: 200px;\n color: inherit;\n ",[(0,st.cB)("progress-text","\n font-weight: var(--n-font-weight-circle);\n color: var(--n-text-color-circle);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n transition: color .3s var(--n-bezier);\n ")]),(0,st.cB)("progress-content",{position:"relative"}),(0,st.cB)("progress-graph",{position:"relative"},[(0,st.cB)("progress-graph-circle",[(0,st.c)("svg",{verticalAlign:"bottom"}),(0,st.cB)("progress-graph-circle-fill","\n stroke: var(--n-fill-color);\n transition:\n opacity .3s var(--n-bezier),\n stroke .3s var(--n-bezier),\n stroke-dasharray .3s var(--n-bezier);\n ",[(0,st.cM)("empty",{opacity:0})]),(0,st.cB)("progress-graph-circle-rail","\n transition: stroke .3s var(--n-bezier);\n overflow: hidden;\n stroke: var(--n-rail-color);\n ")]),(0,st.cB)("progress-graph-line",[(0,st.cM)("indicator-inside",[(0,st.cB)("progress-graph-line-rail","\n height: 16px;\n line-height: 16px;\n border-radius: 10px;\n ",[(0,st.cB)("progress-graph-line-fill","\n height: inherit;\n border-radius: 10px;\n "),(0,st.cB)("progress-graph-line-indicator","\n background: #0000;\n white-space: nowrap;\n text-align: right;\n margin-left: 14px;\n margin-right: 14px;\n height: inherit;\n font-size: 12px;\n color: var(--n-text-color-line-inner);\n transition: color .3s var(--n-bezier);\n ")])]),(0,st.cM)("indicator-inside-label","\n height: 16px;\n display: flex;\n align-items: center;\n ",[(0,st.cB)("progress-graph-line-rail","\n flex: 1;\n transition: background-color .3s var(--n-bezier);\n "),(0,st.cB)("progress-graph-line-indicator","\n background: var(--n-fill-color);\n font-size: 12px;\n transform: translateZ(0);\n display: flex;\n vertical-align: middle;\n height: 16px;\n line-height: 16px;\n padding: 0 10px;\n border-radius: 10px;\n position: absolute;\n white-space: nowrap;\n color: var(--n-text-color-line-inner);\n transition:\n right .2s var(--n-bezier),\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n ")]),(0,st.cB)("progress-graph-line-rail","\n position: relative;\n overflow: hidden;\n height: var(--n-rail-height);\n border-radius: 5px;\n background-color: var(--n-rail-color);\n transition: background-color .3s var(--n-bezier);\n ",[(0,st.cB)("progress-graph-line-fill","\n background: var(--n-fill-color);\n position: relative;\n border-radius: 5px;\n height: inherit;\n width: 100%;\n max-width: 0%;\n transition:\n background-color .3s var(--n-bezier),\n max-width .2s var(--n-bezier);\n ",[(0,st.cM)("processing",[(0,st.c)("&::after",'\n content: "";\n background-image: var(--n-line-bg-processing);\n animation: progress-processing-animation 2s var(--n-bezier) infinite;\n ')])])])])])]),(0,st.c)("@keyframes progress-processing-animation","\n 0% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 100%;\n opacity: 1;\n }\n 66% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n 100% {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 0;\n }\n ")]),La=Js("success",(0,n.h)("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},(0,n.h)("g",{"fill-rule":"nonzero"},(0,n.h)("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),Fa=Js("error",(0,n.h)("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},(0,n.h)("g",{"fill-rule":"nonzero"},(0,n.h)("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Da=Js("warning",(0,n.h)("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},(0,n.h)("g",{"fill-rule":"nonzero"},(0,n.h)("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),Ha=Js("info",(0,n.h)("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,n.h)("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},(0,n.h)("g",{"fill-rule":"nonzero"},(0,n.h)("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"})))));const Wa={success:(0,n.h)(La,null),error:(0,n.h)(Fa,null),warning:(0,n.h)(Da,null),info:(0,n.h)(Ha,null)};var Va=(0,n.aZ)({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:String,status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const r=(0,n.Fl)((()=>wt(e.height))),i=(0,n.Fl)((()=>void 0!==e.railBorderRadius?wt(e.railBorderRadius):void 0!==e.height?wt(e.height,{c:.5}):"")),o=(0,n.Fl)((()=>void 0!==e.fillBorderRadius?wt(e.fillBorderRadius):void 0!==e.railBorderRadius?wt(e.railBorderRadius):void 0!==e.height?wt(e.height,{c:.5}):""));return()=>{const{indicatorPlacement:s,railColor:a,railStyle:l,percentage:c,unit:u,indicatorTextColor:d,status:h,showIndicator:f,fillColor:p,processing:g,clsPrefix:m}=e;return(0,n.h)("div",{class:`${m}-progress-content`,role:"none"},(0,n.h)("div",{class:`${m}-progress-graph`,"aria-hidden":!0},(0,n.h)("div",{class:[`${m}-progress-graph-line`,{[`${m}-progress-graph-line--indicator-${s}`]:!0}]},(0,n.h)("div",{class:`${m}-progress-graph-line-rail`,style:[{backgroundColor:a,height:r.value,borderRadius:i.value},l]},(0,n.h)("div",{class:[`${m}-progress-graph-line-fill`,g&&`${m}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,backgroundColor:p,height:r.value,lineHeight:r.value,borderRadius:o.value}},"inside"===s?(0,n.h)("div",{class:`${m}-progress-graph-line-indicator`,style:{color:d}},t.default?t.default():`${c}${u}`):null)))),f&&"outside"===s?(0,n.h)("div",null,t.default?(0,n.h)("div",{class:`${m}-progress-custom-content`,style:{color:d},role:"none"},t.default()):"default"===h?(0,n.h)("div",{role:"none",class:`${m}-progress-icon ${m}-progress-icon--as-text`,style:{color:d}},c,u):(0,n.h)("div",{class:`${m}-progress-icon`,"aria-hidden":!0},(0,n.h)(Zr,{clsPrefix:m},{default:()=>Wa[h]}))):null)}}});const Ua={success:(0,n.h)(La,null),error:(0,n.h)(Fa,null),warning:(0,n.h)(Da,null),info:(0,n.h)(Ha,null)};var ja=(0,n.aZ)({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:String,railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function r(t,r,n){const{gapDegree:i,viewBoxWidth:o,strokeWidth:s}=e,a=50,l=0,c=a,u=0,d=2*a,h=50+s/2,f=`M ${h},${h} m ${l},${c}\n a ${a},${a} 0 1 1 ${u},${-d}\n a ${a},${a} 0 1 1 ${-u},${d}`,p=2*Math.PI*a,g={stroke:n,strokeDasharray:`${t/100*(p-i)}px ${8*o}px`,strokeDashoffset:`-${i/2}px`,transformOrigin:r?"center":void 0,transform:r?`rotate(${r}deg)`:void 0};return{pathString:f,pathStyle:g}}return()=>{const{fillColor:i,railColor:o,strokeWidth:s,offsetDegree:a,status:l,percentage:c,showIndicator:u,indicatorTextColor:d,unit:h,gapOffsetDegree:f,clsPrefix:p}=e,{pathString:g,pathStyle:m}=r(100,0,o),{pathString:v,pathStyle:y}=r(c,a,i),b=100+s;return(0,n.h)("div",{class:`${p}-progress-content`,role:"none"},(0,n.h)("div",{class:`${p}-progress-graph`,"aria-hidden":!0},(0,n.h)("div",{class:`${p}-progress-graph-circle`,style:{transform:f?`rotate(${f}deg)`:void 0}},(0,n.h)("svg",{viewBox:`0 0 ${b} ${b}`},(0,n.h)("g",null,(0,n.h)("path",{class:`${p}-progress-graph-circle-rail`,d:g,"stroke-width":s,"stroke-linecap":"round",fill:"none",style:m})),(0,n.h)("g",null,(0,n.h)("path",{class:[`${p}-progress-graph-circle-fill`,0===c&&`${p}-progress-graph-circle-fill--empty`],d:v,"stroke-width":s,"stroke-linecap":"round",fill:"none",style:y}))))),u?(0,n.h)("div",null,t.default?(0,n.h)("div",{class:`${p}-progress-custom-content`,role:"none"},t.default()):"default"!==l?(0,n.h)("div",{class:`${p}-progress-icon`,"aria-hidden":!0},(0,n.h)(Zr,{clsPrefix:p},{default:()=>Ua[l]})):(0,n.h)("div",{class:`${p}-progress-text`,style:{color:d},role:"none"},(0,n.h)("span",{class:`${p}-progress-text__percentage`},c),(0,n.h)("span",{class:`${p}-progress-text__unit`},h))):null)}}});function Za(e,t,r=100){return`m ${r/2} ${r/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var Ga=(0,n.aZ)({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const r=(0,n.Fl)((()=>{const t=e.percentage.map(((t,r)=>`${Math.PI*t/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*r)-e.circleGap*r)*2}, ${8*e.viewBoxWidth}`));return t}));return()=>{const{viewBoxWidth:i,strokeWidth:o,circleGap:s,showIndicator:a,fillColor:l,railColor:c,railStyle:u,percentage:d,clsPrefix:h}=e;return(0,n.h)("div",{class:`${h}-progress-content`,role:"none"},(0,n.h)("div",{class:`${h}-progress-graph`,"aria-hidden":!0},(0,n.h)("div",{class:`${h}-progress-graph-circle`},(0,n.h)("svg",{viewBox:`0 0 ${i} ${i}`},d.map(((e,t)=>(0,n.h)("g",{key:t},(0,n.h)("path",{class:`${h}-progress-graph-circle-rail`,d:Za(i/2-o/2*(1+2*t)-s*t,o,i),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:c[t]},u[t]]}),(0,n.h)("path",{class:[`${h}-progress-graph-circle-fill`,0===e&&`${h}-progress-graph-circle-fill--empty`],d:Za(i/2-o/2*(1+2*t)-s*t,o,i),"stroke-width":o,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:r.value[t],strokeDashoffset:0,stroke:l[t]}}))))))),a&&t.default?(0,n.h)("div",null,(0,n.h)("div",{class:`${h}-progress-text`},t.default())):null)}}});const Xa=Object.assign(Object.assign({},k.Z.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number});var Ya=(0,n.aZ)({name:"Progress",props:Xa,setup(e){const t=(0,n.Fl)((()=>e.indicatorPlacement||e.indicatorPosition)),r=(0,n.Fl)((()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0)),{mergedClsPrefixRef:i,inlineThemeDisabled:o}=(0,Xe.ZP)(e),s=(0,k.Z)("Progress","-progress",Na,Ia,e,i),a=(0,n.Fl)((()=>{const{status:t}=e,{common:{cubicBezierEaseInOut:r},self:{fontSize:n,fontSizeCircle:i,railColor:o,railHeight:a,iconSizeCircle:l,iconSizeLine:c,textColorCircle:u,textColorLineInner:d,textColorLineOuter:h,lineBgProcessing:f,fontWeightCircle:p,[(0,st.Tl)("iconColor",t)]:g,[(0,st.Tl)("fillColor",t)]:m}}=s.value;return{"--n-bezier":r,"--n-fill-color":m,"--n-font-size":n,"--n-font-size-circle":i,"--n-font-weight-circle":p,"--n-icon-color":g,"--n-icon-size-circle":l,"--n-icon-size-line":c,"--n-line-bg-processing":f,"--n-rail-color":o,"--n-rail-height":a,"--n-text-color-circle":u,"--n-text-color-line-inner":d,"--n-text-color-line-outer":h}})),l=o?(0,Ke.F)("progress",(0,n.Fl)((()=>e.status[0])),a,e):void 0;return{mergedClsPrefix:i,mergedIndicatorPlacement:t,gapDeg:r,cssVars:o?void 0:a,themeClass:null===l||void 0===l?void 0:l.themeClass,onRender:null===l||void 0===l?void 0:l.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:r,showIndicator:i,status:o,railColor:s,railStyle:a,color:l,percentage:c,viewBoxWidth:u,strokeWidth:d,mergedIndicatorPlacement:h,unit:f,borderRadius:p,fillBorderRadius:g,height:m,processing:v,circleGap:y,mergedClsPrefix:b,gapDeg:x,gapOffsetDegree:w,themeClass:C,$slots:S,onRender:A}=this;return null===A||void 0===A||A(),(0,n.h)("div",{class:[C,`${b}-progress`,`${b}-progress--${e}`,`${b}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,role:"circle"===e||"line"===e||"dashboard"===e?"progressbar":"none"},"circle"===e||"dashboard"===e?(0,n.h)(ja,{clsPrefix:b,status:o,showIndicator:i,indicatorTextColor:r,railColor:s,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:c,viewBoxWidth:u,strokeWidth:d,gapDegree:void 0===x?"dashboard"===e?75:0:x,gapOffsetDegree:w,unit:f},S):"line"===e?(0,n.h)(Va,{clsPrefix:b,status:o,showIndicator:i,indicatorTextColor:r,railColor:s,fillColor:l,railStyle:a,percentage:c,processing:v,indicatorPlacement:h,unit:f,fillBorderRadius:g,railBorderRadius:p,height:m},S):"multiple-circle"===e?(0,n.h)(Ga,{clsPrefix:b,strokeWidth:d,railColor:s,fillColor:l,railStyle:a,viewBoxWidth:u,percentage:c,showIndicator:i,circleGap:y},S):null)}});function $a(e){return(0,sa.h$)(e,[255,255,255,.16])}function qa(e){return(0,sa.h$)(e,[0,0,0,.12])}const Qa=(0,Ci.U)("n-button-group"),Ja=zi&&"chrome"in window,Ka=(zi&&navigator.userAgent.includes("Firefox"),zi&&navigator.userAgent.includes("Safari")&&!Ja);var el=r(9229),tl=(0,n.aZ)({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function r(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function i(t){e.width?t.style.maxWidth="0":t.style.maxHeight="0",t.offsetWidth;const{onLeave:r}=e;r&&r()}function o(t){e.width?t.style.maxWidth="":t.style.maxHeight="";const{onAfterLeave:r}=e;r&&r()}function s(t){if(t.style.transition="none",e.width){const e=t.offsetWidth;t.style.maxWidth="0",t.offsetWidth,t.style.transition="",t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition="",t.style.maxHeight="0";else{const e=t.offsetHeight;t.style.maxHeight="0",t.offsetWidth,t.style.transition="",t.style.maxHeight=`${e}px`}t.offsetWidth}function a(t){var r;e.width?t.style.maxWidth="":e.reverse||(t.style.maxHeight=""),null===(r=e.onAfterEnter)||void 0===r||r.call(e)}return()=>{const{group:l,width:c,appear:u,mode:d}=e,h=l?T.W3:T.uT,f={name:c?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:u,onEnter:s,onAfterEnter:a,onBeforeLeave:r,onLeave:i,onAfterLeave:o};return l||(f.mode=d),(0,n.h)(h,f,t)}}}),rl=(0,st.cB)("base-wave","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n"),nl=(0,n.aZ)({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Ur("-base-wave",rl,(0,i.Vh)(e,"clsPrefix"));const t=(0,i.iH)(null),r=(0,i.iH)(!1);let o=null;return(0,n.Jd)((()=>{null!==o&&window.clearTimeout(o)})),{active:r,selfRef:t,play(){null!==o&&(window.clearTimeout(o),r.value=!1,o=null),(0,n.Y3)((()=>{var e;null===(e=t.value)||void 0===e||e.offsetHeight,r.value=!0,o=window.setTimeout((()=>{r.value=!1,o=null}),1e3)}))}}},render(){const{clsPrefix:e}=this;return(0,n.h)("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}});function il(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}var ol={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};const sl=e=>{const{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:i,borderRadius:o,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:h,primaryColorHover:f,primaryColorPressed:p,borderColor:g,primaryColor:m,baseColor:v,infoColor:y,infoColorHover:b,infoColorPressed:x,successColor:w,successColorHover:C,successColorPressed:S,warningColor:A,warningColorHover:k,warningColorPressed:T,errorColor:P,errorColorHover:E,errorColorPressed:_,fontWeight:O,buttonColor2:M,buttonColor2Hover:z,buttonColor2Pressed:R,fontWeightStrong:B}=e;return Object.assign(Object.assign({},ol),{heightTiny:t,heightSmall:r,heightMedium:n,heightLarge:i,borderRadiusTiny:o,borderRadiusSmall:o,borderRadiusMedium:o,borderRadiusLarge:o,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:M,colorSecondaryHover:z,colorSecondaryPressed:R,colorTertiary:M,colorTertiaryHover:z,colorTertiaryPressed:R,colorQuaternary:"#0000",colorQuaternaryHover:z,colorQuaternaryPressed:R,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:h,textColorHover:f,textColorPressed:p,textColorFocus:f,textColorDisabled:d,textColorText:d,textColorTextHover:f,textColorTextPressed:p,textColorTextFocus:f,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:f,textColorGhostPressed:p,textColorGhostFocus:f,textColorGhostDisabled:d,border:`1px solid ${g}`,borderHover:`1px solid ${f}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${f}`,borderDisabled:`1px solid ${g}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:f,colorPressedPrimary:p,colorFocusPrimary:f,colorDisabledPrimary:m,textColorPrimary:v,textColorHoverPrimary:v,textColorPressedPrimary:v,textColorFocusPrimary:v,textColorDisabledPrimary:v,textColorTextPrimary:m,textColorTextHoverPrimary:f,textColorTextPressedPrimary:p,textColorTextFocusPrimary:f,textColorTextDisabledPrimary:d,textColorGhostPrimary:m,textColorGhostHoverPrimary:f,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:f,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${f}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${f}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:y,colorHoverInfo:b,colorPressedInfo:x,colorFocusInfo:b,colorDisabledInfo:y,textColorInfo:v,textColorHoverInfo:v,textColorPressedInfo:v,textColorFocusInfo:v,textColorDisabledInfo:v,textColorTextInfo:y,textColorTextHoverInfo:b,textColorTextPressedInfo:x,textColorTextFocusInfo:b,textColorTextDisabledInfo:d,textColorGhostInfo:y,textColorGhostHoverInfo:b,textColorGhostPressedInfo:x,textColorGhostFocusInfo:b,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${b}`,borderPressedInfo:`1px solid ${x}`,borderFocusInfo:`1px solid ${b}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:C,colorPressedSuccess:S,colorFocusSuccess:C,colorDisabledSuccess:w,textColorSuccess:v,textColorHoverSuccess:v,textColorPressedSuccess:v,textColorFocusSuccess:v,textColorDisabledSuccess:v,textColorTextSuccess:w,textColorTextHoverSuccess:C,textColorTextPressedSuccess:S,textColorTextFocusSuccess:C,textColorTextDisabledSuccess:d,textColorGhostSuccess:w,textColorGhostHoverSuccess:C,textColorGhostPressedSuccess:S,textColorGhostFocusSuccess:C,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${C}`,borderPressedSuccess:`1px solid ${S}`,borderFocusSuccess:`1px solid ${C}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:A,colorHoverWarning:k,colorPressedWarning:T,colorFocusWarning:k,colorDisabledWarning:A,textColorWarning:v,textColorHoverWarning:v,textColorPressedWarning:v,textColorFocusWarning:v,textColorDisabledWarning:v,textColorTextWarning:A,textColorTextHoverWarning:k,textColorTextPressedWarning:T,textColorTextFocusWarning:k,textColorTextDisabledWarning:d,textColorGhostWarning:A,textColorGhostHoverWarning:k,textColorGhostPressedWarning:T,textColorGhostFocusWarning:k,textColorGhostDisabledWarning:A,borderWarning:`1px solid ${A}`,borderHoverWarning:`1px solid ${k}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${k}`,borderDisabledWarning:`1px solid ${A}`,rippleColorWarning:A,colorError:P,colorHoverError:E,colorPressedError:_,colorFocusError:E,colorDisabledError:P,textColorError:v,textColorHoverError:v,textColorPressedError:v,textColorFocusError:v,textColorDisabledError:v,textColorTextError:P,textColorTextHoverError:E,textColorTextPressedError:_,textColorTextFocusError:E,textColorTextDisabledError:d,textColorGhostError:P,textColorGhostHoverError:E,textColorGhostPressedError:_,textColorGhostFocusError:E,textColorGhostDisabledError:P,borderError:`1px solid ${P}`,borderHoverError:`1px solid ${E}`,borderPressedError:`1px solid ${_}`,borderFocusError:`1px solid ${E}`,borderDisabledError:`1px solid ${P}`,rippleColorError:P,waveOpacity:"0.6",fontWeight:O,fontWeightStrong:B})},al={name:"Button",common:rt.Z,self:sl};var ll=al;const{cubicBezierEaseInOut:cl}=at["default"];function ul({duration:e=".2s",delay:t=".1s"}={}){return[(0,st.c)("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),(0,st.c)("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from","\n opacity: 0!important;\n margin-left: 0!important;\n margin-right: 0!important;\n "),(0,st.c)("&.fade-in-width-expand-transition-leave-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${cl},\n max-width ${e} ${cl} ${t},\n margin-left ${e} ${cl} ${t},\n margin-right ${e} ${cl} ${t};\n `),(0,st.c)("&.fade-in-width-expand-transition-enter-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${cl} ${t},\n max-width ${e} ${cl},\n margin-left ${e} ${cl},\n margin-right ${e} ${cl};\n `)]}var dl=(0,st.c)([(0,st.cB)("button","\n margin: 0;\n font-weight: var(--n-font-weight);\n line-height: 1;\n font-family: inherit;\n padding: var(--n-padding);\n height: var(--n-height);\n font-size: var(--n-font-size);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n width: var(--n-width);\n white-space: nowrap;\n outline: none;\n position: relative;\n z-index: auto;\n border: none;\n display: inline-flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n user-select: none;\n -webkit-user-select: none;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[(0,st.cM)("color",[(0,st.cE)("border",{borderColor:"var(--n-border-color)"}),(0,st.cM)("disabled",[(0,st.cE)("border",{borderColor:"var(--n-border-color-disabled)"})]),(0,st.u4)("disabled",[(0,st.c)("&:focus",[(0,st.cE)("state-border",{borderColor:"var(--n-border-color-focus)"})]),(0,st.c)("&:hover",[(0,st.cE)("state-border",{borderColor:"var(--n-border-color-hover)"})]),(0,st.c)("&:active",[(0,st.cE)("state-border",{borderColor:"var(--n-border-color-pressed)"})]),(0,st.cM)("pressed",[(0,st.cE)("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),(0,st.cM)("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[(0,st.cE)("border",{border:"var(--n-border-disabled)"})]),(0,st.u4)("disabled",[(0,st.c)("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[(0,st.cE)("state-border",{border:"var(--n-border-focus)"})]),(0,st.c)("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[(0,st.cE)("state-border",{border:"var(--n-border-hover)"})]),(0,st.c)("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[(0,st.cE)("state-border",{border:"var(--n-border-pressed)"})]),(0,st.cM)("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[(0,st.cE)("state-border",{border:"var(--n-border-pressed)"})])]),(0,st.cM)("loading","cursor: wait;"),(0,st.cB)("base-wave","\n pointer-events: none;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation-iteration-count: 1;\n animation-duration: var(--n-ripple-duration);\n animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);\n ",[(0,st.cM)("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),zi&&"MozBoxSizing"in document.createElement("div").style?(0,st.c)("&::moz-focus-inner",{border:0}):null,(0,st.cE)("border, state-border","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n transition: border-color .3s var(--n-bezier);\n pointer-events: none;\n "),(0,st.cE)("border",{border:"var(--n-border)"}),(0,st.cE)("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),(0,st.cE)("icon","\n margin: var(--n-icon-margin);\n margin-left: 0;\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n max-width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n position: relative;\n flex-shrink: 0;\n ",[(0,st.cB)("icon-slot","\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n ",[Qn({top:"50%",originalTransform:"translateY(-50%)"})]),ul()]),(0,st.cE)("content","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n min-width: 0;\n ",[(0,st.c)("~",[(0,st.cE)("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),(0,st.cM)("block","\n display: flex;\n width: 100%;\n "),(0,st.cM)("dashed",[(0,st.cE)("border, state-border",{borderStyle:"dashed !important"})]),(0,st.cM)("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),(0,st.c)("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),(0,st.c)("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]);const hl=Object.assign(Object.assign({},k.Z.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Ka}}),fl=(0,n.aZ)({name:"Button",props:hl,setup(e){const t=(0,i.iH)(null),r=(0,i.iH)(null),o=(0,i.iH)(!1),s=(0,m.Z)((()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered)),a=(0,n.f3)(Qa,{}),{mergedSizeRef:l}=(0,el.Z)({},{defaultSize:"medium",mergedSize:t=>{const{size:r}=e;if(r)return r;const{size:n}=a;if(n)return n;const{mergedSize:i}=t||{};return i?i.value:"medium"}}),c=(0,n.Fl)((()=>e.focusable&&!e.disabled)),u=r=>{var n;c.value||r.preventDefault(),e.nativeFocusBehavior||(r.preventDefault(),e.disabled||c.value&&(null===(n=t.value)||void 0===n||n.focus({preventScroll:!0})))},d=t=>{var n;if(!e.disabled&&!e.loading){const{onClick:i}=e;i&&(0,x.R)(i,t),e.text||null===(n=r.value)||void 0===n||n.play()}},h=t=>{switch(t.key){case"Enter":if(!e.keyboard)return;o.value=!1}},f=t=>{switch(t.key){case"Enter":if(!e.keyboard||e.loading)return void t.preventDefault();o.value=!0}},p=()=>{o.value=!1},{inlineThemeDisabled:g,mergedClsPrefixRef:v,mergedRtlRef:y}=(0,Xe.ZP)(e),b=(0,k.Z)("Button","-button",dl,ll,e,v),w=Je("Button",y,v),C=(0,n.Fl)((()=>{const t=b.value,{common:{cubicBezierEaseInOut:r,cubicBezierEaseOut:n},self:i}=t,{rippleDuration:o,opacityDisabled:s,fontWeight:a,fontWeightStrong:c}=i,u=l.value,{dashed:d,type:h,ghost:f,text:p,color:g,round:m,circle:v,textColor:y,secondary:x,tertiary:w,quaternary:C,strong:S}=e,A={"font-weight":S?c:a};let k={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const T="tertiary"===h,P="default"===h,E=T?"default":h;if(p){const e=y||g,t=e||i[(0,st.Tl)("textColorText",E)];k={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":t,"--n-text-color-hover":e?$a(e):i[(0,st.Tl)("textColorTextHover",E)],"--n-text-color-pressed":e?qa(e):i[(0,st.Tl)("textColorTextPressed",E)],"--n-text-color-focus":e?$a(e):i[(0,st.Tl)("textColorTextHover",E)],"--n-text-color-disabled":e||i[(0,st.Tl)("textColorTextDisabled",E)]}}else if(f||d){const e=y||g;k={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":g||i[(0,st.Tl)("rippleColor",E)],"--n-text-color":e||i[(0,st.Tl)("textColorGhost",E)],"--n-text-color-hover":e?$a(e):i[(0,st.Tl)("textColorGhostHover",E)],"--n-text-color-pressed":e?qa(e):i[(0,st.Tl)("textColorGhostPressed",E)],"--n-text-color-focus":e?$a(e):i[(0,st.Tl)("textColorGhostHover",E)],"--n-text-color-disabled":e||i[(0,st.Tl)("textColorGhostDisabled",E)]}}else if(x){const e=P?i.textColor:T?i.textColorTertiary:i[(0,st.Tl)("color",E)],t=g||e,r="default"!==h&&"tertiary"!==h;k={"--n-color":r?(0,sa.zX)(t,{alpha:Number(i.colorOpacitySecondary)}):i.colorSecondary,"--n-color-hover":r?(0,sa.zX)(t,{alpha:Number(i.colorOpacitySecondaryHover)}):i.colorSecondaryHover,"--n-color-pressed":r?(0,sa.zX)(t,{alpha:Number(i.colorOpacitySecondaryPressed)}):i.colorSecondaryPressed,"--n-color-focus":r?(0,sa.zX)(t,{alpha:Number(i.colorOpacitySecondaryHover)}):i.colorSecondaryHover,"--n-color-disabled":i.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(w||C){const e=P?i.textColor:T?i.textColorTertiary:i[(0,st.Tl)("color",E)],t=g||e;w?(k["--n-color"]=i.colorTertiary,k["--n-color-hover"]=i.colorTertiaryHover,k["--n-color-pressed"]=i.colorTertiaryPressed,k["--n-color-focus"]=i.colorSecondaryHover,k["--n-color-disabled"]=i.colorTertiary):(k["--n-color"]=i.colorQuaternary,k["--n-color-hover"]=i.colorQuaternaryHover,k["--n-color-pressed"]=i.colorQuaternaryPressed,k["--n-color-focus"]=i.colorQuaternaryHover,k["--n-color-disabled"]=i.colorQuaternary),k["--n-ripple-color"]="#0000",k["--n-text-color"]=t,k["--n-text-color-hover"]=t,k["--n-text-color-pressed"]=t,k["--n-text-color-focus"]=t,k["--n-text-color-disabled"]=t}else k={"--n-color":g||i[(0,st.Tl)("color",E)],"--n-color-hover":g?$a(g):i[(0,st.Tl)("colorHover",E)],"--n-color-pressed":g?qa(g):i[(0,st.Tl)("colorPressed",E)],"--n-color-focus":g?$a(g):i[(0,st.Tl)("colorFocus",E)],"--n-color-disabled":g||i[(0,st.Tl)("colorDisabled",E)],"--n-ripple-color":g||i[(0,st.Tl)("rippleColor",E)],"--n-text-color":y||(g?i.textColorPrimary:T?i.textColorTertiary:i[(0,st.Tl)("textColor",E)]),"--n-text-color-hover":y||(g?i.textColorHoverPrimary:i[(0,st.Tl)("textColorHover",E)]),"--n-text-color-pressed":y||(g?i.textColorPressedPrimary:i[(0,st.Tl)("textColorPressed",E)]),"--n-text-color-focus":y||(g?i.textColorFocusPrimary:i[(0,st.Tl)("textColorFocus",E)]),"--n-text-color-disabled":y||(g?i.textColorDisabledPrimary:i[(0,st.Tl)("textColorDisabled",E)])};let _={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};_=p?{"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:{"--n-border":i[(0,st.Tl)("border",E)],"--n-border-hover":i[(0,st.Tl)("borderHover",E)],"--n-border-pressed":i[(0,st.Tl)("borderPressed",E)],"--n-border-focus":i[(0,st.Tl)("borderFocus",E)],"--n-border-disabled":i[(0,st.Tl)("borderDisabled",E)]};const{[(0,st.Tl)("height",u)]:O,[(0,st.Tl)("fontSize",u)]:M,[(0,st.Tl)("padding",u)]:z,[(0,st.Tl)("paddingRound",u)]:R,[(0,st.Tl)("iconSize",u)]:B,[(0,st.Tl)("borderRadius",u)]:I,[(0,st.Tl)("iconMargin",u)]:N,waveOpacity:L}=i,F={"--n-width":v&&!p?O:"initial","--n-height":p?"initial":O,"--n-font-size":M,"--n-padding":v||p?"initial":m?R:z,"--n-icon-size":B,"--n-icon-margin":N,"--n-border-radius":p?"initial":v||m?O:I};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":r,"--n-bezier-ease-out":n,"--n-ripple-duration":o,"--n-opacity-disabled":s,"--n-wave-opacity":L},A),k),_),F)})),S=g?(0,Ke.F)("button",(0,n.Fl)((()=>{let t="";const{dashed:r,type:n,ghost:i,text:o,color:s,round:a,circle:c,textColor:u,secondary:d,tertiary:h,quaternary:f,strong:p}=e;r&&(t+="a"),i&&(t+="b"),o&&(t+="c"),a&&(t+="d"),c&&(t+="e"),d&&(t+="f"),h&&(t+="g"),f&&(t+="h"),p&&(t+="i"),s&&(t+="j"+il(s)),u&&(t+="k"+il(u));const{value:g}=l;return t+="l"+g[0],t+="m"+n[0],t})),C,e):void 0;return{selfElRef:t,waveElRef:r,mergedClsPrefix:v,mergedFocusable:c,mergedSize:l,showBorder:s,enterPressed:o,rtlEnabled:w,handleMousedown:u,handleKeydown:f,handleBlur:p,handleKeyup:h,handleClick:d,customColorCssVars:(0,n.Fl)((()=>{const{color:t}=e;if(!t)return null;const r=$a(t);return{"--n-border-color":t,"--n-border-color-hover":r,"--n-border-color-pressed":qa(t),"--n-border-color-focus":r,"--n-border-color-disabled":t}})),cssVars:g?void 0:C,themeClass:null===S||void 0===S?void 0:S.themeClass,onRender:null===S||void 0===S?void 0:S.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:r}=this;null===r||void 0===r||r();const i=(0,Ct.K9)(this.$slots.default,(t=>t&&(0,n.h)("span",{class:`${e}-button__content`},t)));return(0,n.h)(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},"right"===this.iconPlacement&&i,(0,n.h)(tl,{width:!0},{default:()=>(0,Ct.K9)(this.$slots.icon,(t=>(this.loading||this.renderIcon||t)&&(0,n.h)("span",{class:`${e}-button__icon`,style:{margin:(0,Ct.aD)(this.$slots.default)?"0":""}},(0,n.h)($n,null,{default:()=>this.loading?(0,n.h)(ti,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):(0,n.h)("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():t)}))))}),"left"===this.iconPlacement&&i,this.text?null:(0,n.h)(nl,{ref:"waveElRef",clsPrefix:e}),this.showBorder?(0,n.h)("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?(0,n.h)("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}});var pl=fl;var gl=r(119),ml="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAtFBMVEUAAAD39/f39/f39/fy8vL////////39/f29vb19fX39/f39/f29vb29vb39/f39/f29vb39/f29vb39/f4+Pj4+Pj4+Pj4+Pj5+fn4+Pj39/f39/f39/f4+Pj29vYzMzPi4uJHR0fz8/Ps7OxCQkKZmZmCgoLv7+/a2tq1tbWLi4t7e3tOTk48PDygoKBiYmJaWlo3Nzfo6OjHx8fDw8OpqamQkJBxcXFTU1PS0tLPz8+GhoYFZuBsAAAAHnRSTlMAkkwdEwkG3NHw3/jr5eHVxbqxnI5xbGhRRT/w0id38BxYAAACMklEQVRYw6zSh1LCQBSF4ZuQkEJLDwlwli6IKDo6Ovr+7yVFM0A2yaZ8D/DPzt5DBZQokGzd7HY6XVO3pSBSqDpV9nSk6J6sUhWxO0KGkRtTSe1QQy4tbJM41e+hUM9XSZCsQYgmk4iWA2FOiwoNDZRgDIuOIaEkKfc4ioXSLCXn+waoYJD5kZM+KulPiKvVR0V97huVASobKJz7WqjBSt9aQi1Sas+oaXh3EAM1GbeHcVCbQ1dkNECmhGqiAZqaBH00wk8m2EMjev9jDNGQkC40cC3W++VqjpTN6mc7B49GZzH4duzoGXceHtnRYQGemE5ccC3YyRduvT+xszV43PNmDHBN2ckM19527M8SPCM1GbVQcDtjiexxe6LB6SdjRUGPiHTB4MeeFQd1IgVCwc0LuwU+hSKR4Hz1ysSCEQUCwe8DSwFfQFJB8DJl4aBEdkEwmbJY0KZxfnC5Y3zgG5OZHcwFPpO6zQa71Gk22PltztxRAISBICpC8NPaqY0gFoKKCIL3v5iFEmyS7MArzAEWQiY7s2/xgviV+UcpE7KZtIJlWtiHJmzL1zt34euZmsMlNAdj+1oXa/vCG6xgAaPJAniT4m3UdYLRe5kPAaNXo4iX+RyIInJYemW+xcKSHufmWJzjAycfifnQnrmCqFc4evChRzN8eKTHW3oAxxEBDTFozEKDIBpV0TCNxn0wkMSRqeXkNQl1eezMg3GP7qvgUzTtH5YLn/VH/6w/esv64wZAtk/bE0EUFgAAAABJRU5ErkJggg==",vl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAAtFBMVEUAAAD39/f39/f39/fy8vL////////39/f29vb19fX39/f39/f29vb29vb39/f39/f29vb39/f29vb39/f4+Pj4+Pj4+Pj4+Pj5+fn4+Pj39/f39/f39/f4+Pj29vYzMzPi4uJHR0fz8/Ps7OxCQkKZmZmCgoLv7+/a2tq1tbWLi4t7e3tOTk48PDygoKBiYmJaWlo3Nzfo6OjHx8fDw8OpqamQkJBxcXFTU1PS0tLPz8+GhoYFZuBsAAAAHnRSTlMAkkwdEwkG3NHw3/jr5eHVxbqxnI5xbGhRRT/w0id38BxYAAACL0lEQVRYw82ZW3uiMBCGA4UGUOsBj2g/aqtuq2sPez78//+13WzX1JqQCcxF38tcvA8ww2QyEQ6i2TjoJ1m71WpnST8YzyJRnzgcJjghGYZxLV2Rz2Fhnhe+tvOJRCVycu7zrqMOnHRG5DcPJUjIkKQ7G4DM4Mztm6bwIJ26ghHAk6AyOFEP3vSiis/XRQ261g95eYFaXFxank/7fI3GZ4y6qE03MsS3hwb0TmMdoBHBST6jIdM3AUnRkPQ4MAM0ZnBUX8BAqH1xBgakro8jsDA6pGAHLHT+J+METExehBImru9+r28Ny+vVfnMDI1IoCpi4eSyf2X7AG+7/Lu9gplDCHCY2peLjFxzzQy1bHjFXOZPCxKp8YfcJr1mqxStLBxDbk7o8sLyjCHVyD21CzfcrqnD4LEzcwnL/lShMhIhQIdQ83JKEiMSMJiyf1tcU4UyMHULN4y+CcCwCqlCluVMYiD5ZqNLcJeyLBUWo2a2qhQuR0YUauzATbV5hW7R4hS12Ifsr8wcl8RNuHGmTeCb2Z3diB3Th0zfCr+dTHH5SigO5fO3vaeWLvcDStoAVfQvg36T4t9F4DhPLQyp7bfT2VmR7SGW/VsTeLD2oVPZslqrbuW2tdo6/4eRvifmbdhFLMCBj/oMP/9GM//DIf7zlP4Dzjwj4hxj8Yxb+QRD/qIp/mMY/7uMfSPKPTDVhxjjU5R878w/G9eg+tYYiL97D5cKr64/Fv+uPBeX64w9I4E/bKpx53wAAAABJRU5ErkJggg==",yl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAnFBMVEUAAAD29vb29vb39/f9/f339/f29vb29vb39/f39/f4+Pj09PT39/f39/f29vb39/f19fX29vb39/f29vb4+Pj39/f4+Pj39/f39/f09PT4+Pj09PT////////39/f29vYzMzOzs7NkZGRISEioqKjw8PDp6eng4ODT09PDw8N3d3dVVVU/Pz84ODiKioqhoaGdnZ1xcXFgYGCLi4tO2qlNAAAAH3RSTlMA/MmQHPXu5t7ZIhbwu7Cdm46Eb2tcV05DMCcTDQU98KU5MgAAAiVJREFUaN6001dawzAUROGR5IrTe2UMhN5h/3uDJDykmFg3kv4NnM++I9gqJn3T0lkSKxUnmW6Z/qSAT9GwnbFC1h5G8GLWy3lC3pvB0XygWUsP5i6/ycS0EpsI57noKFpTnQvILYyiiDILCI1SiqUj2TGaPEtTcJpxwjMlY9hZdumgu4SFQtOJLiyGm9NRXjvmaUpn6RQnXTboQePy5Hc06EVjeuIeKT1J/71LkdObvEClpaZHeokqXXrVRYUxPRvjSJTQsyTCoSa9a+LAiAGMsGeRMoB0gV2GQZi9p64YhNp9+B0G0tmZr2IgKhJcxP0q85jBxHNsDRjQAFuaAWlszGhl9fW1UpSbYa1HG+/lr+t7ivWwltPGTbn2ckWpHL8iWin/PN1RKAIwJCWR8uaRMkMAbQoiG9+3lGgDyMSR8vmBAhlQUB4pXz8U7RWYyCPSMU/Ql0ekY+7DiCPiMRu0xBHxmFvQgsiRN6sxa2TiiHjMGRKnSPm6Yq0EsSBSqX5lMZRr5JN11E+1dkIEQAjDUFTLImD9y8MCpcwjKGCGoyT5IYuQ7SIHT64weYxkrJABSUY9+bTI9yuExJYk+ouSiIg7IlOF4CbWoWKCvjEaJgjYOWBMgcUWYQGJPUSAQ6IoEaqReFAEnSKyJeGziNEFECBoQ0AagZsEOBMI8D7MPINlMwBzH5XnQP9WfSGtiLFZKcksx1RrPtmFpcXq1SslsgN1uAnlErM0ney5zwAAAABJRU5ErkJggg==",bl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAAbFBMVEUAAAD39/f29vb9/f319fX29vb29vb29vb39/f29vb39/f39/f4+Pj39/f29vb39/f39/f29vb29vb39/f39/f4+Pj39/f39/f09PT4+Pj4+Pj////29vb39/f4+Pj29vYzMzM9PT3Y2NhxcXGpyuxtAAAAH3RSTlMA98kcFvzu5tycj20i8N/Xu7COhFxXTkMwJw8FkT2RBm8EVAAAAftJREFUaN601cdyg0AURNGeQEY5WSC5Qfz/P1rJJbmEGcK8s+zNrdm8QV/2kKUrHYcqCFQY61WaHSx8MttkzhbzZGvgxXGzYIfF5oiJbKbppDOL8cxJsRd1MhgnTxR7U0mO4Yo04CBBWmCgXcTBoh2GMEuOsjTobR9ypHCPfso1J1iX6MFqTqItnPKYE8U5HL4iThZ9odN5Rg9m5853zOjFrOMteURPohz/sDG9iS1alZoe6RJt1vRqjRZ7erbHBxPSs9B8RJb0bvnxf1DADn8UEQVEBd6lFJHiTR5QRJDjJaGQ5NUwikKUwa9vijnhySqKURYPGQVleNAUpHF3pKgjbjZ0ujR13VxaN6cNbhbuRl1d1ZfWzWWBK0OnprprWjcnA2BLp7q6q1s3p22/k1I9dWyO0zKXjswBS+kILQ7ykQMy+UiGVD6SYiUfWUHLRzRi+UiMUD4SQslHFAL5SPBTrb2YAAxCMRQtuIbY/bcs3UD8HKMLFKo+k9yQj5DfRTaeHGFyGclYIQOSjHryaJHnVwgJIomIuCMyVQhuYh2ICRJ2jhhTabGf+m5blcQeIsAhUZQI1Ug8KIJOEdmS8FnE6AIIELQhII3ATQKcCQR4HmauwbIZgHkeledA/6n6QloRY7BSklmO+VdpvTWfVrILS53Vq1tKZAvqcB/Np7EUnqiIqgAAAABJRU5ErkJggg==",xl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAUJJREFUSEvtlD1OxEAMhT0uVnQUSFTcAXEHOpBoLNNR0HEBDsEB6GjokgkREqLiEHAKCgokOrRS9GCiySqwzM4PaBuScuLMl/f8bENrfsyaeTQB/9zxf2RpVVWnzHwB4JmITlT16Td+tm2723XdNYAdIjpX1St3X29pXdczAG/GmA0PeWXmfRF5LIE2TbMH4AHAlv/+nYg2VXXeAwGwtfaFiIYCd1wE/QHW30VE26raLUJjrT0EcENEs5GqLGgANmdmEZG7haUDwFp7BKAuga6AHYvI7cBYGosSaCpsSWGJ0hxYEOhepCjNha0ExqA+3ePouyMXkC89+z5W0dUWUmqMwWjOkmBRhZGejn8+qiyY0tBmCShNVpYNDPQ0WVkR0O/dg881den38Jmq3ufs22hoci5LqZ2AKS5l1UyWZtmVUvwBFlDmHXz7F4EAAAAASUVORK5CYII=",wl=r(3857),Cl=(0,n.aZ)({name:"playItem",props:{item:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},playState:{type:String,default:"pause"},type:{type:String,default:""},songPrevNextStatus:{type:Object,default:()=>({})}},emits:["change","show"],setup(e,{emit:t}){let r=null;const o=(0,i.qj)({isFirst:!0,duration:0,currentTime:0}),s=(0,i.iH)(),a=()=>{o.duration=s.value?.duration,o.isFirst?o.isFirst=!1:("play"===e.playState&&s.value.play(),e.item.audioFileUrl||e.item.metronomeUrl||t("change","pause"))},l=t=>{s.value.pause(),o.currentTime=t,clearTimeout(r),r=setTimeout((()=>{s.value.currentTime=t,"play"===e.playState&&s.value.play(),r=null}),300)},c=(0,n.Fl)((()=>`${(0,wl.aO)(o.currentTime)} / ${(0,wl.aO)(o.duration)}`));return(0,n.YP)((()=>e.playState),(e=>{"play"===e?s.value.play().catch((()=>{s.value.play()})):s.value.pause()})),(0,n.YP)((()=>e.item),(()=>{e.item.audioFileUrl||e.item.metronomeUrl||t("change","pause")})),()=>(0,n.Wm)("div",{class:[za.container,"preview"===e.type&&za.previewcontainer,"modal"===e.type&&za.containerModal,e.show?za.show:za.hidden]},[(0,n.Wm)("div",{class:[za.item]},[(0,n.Wm)("div",{class:[za.img,"play"!==e.playState&&za.imgRotate]},[(0,n.Wm)(Aa,{lazy:!0,objectFit:"cover",previewDisabled:!0,src:e.item.titleImg||"https://oss.dayaedu.com/klx/16983720423251690789356356.png",onLoad:e=>{e.target.dataset.loaded="true"}},null),(0,n.Wm)("svg",{class:za.svgcontainer},[(0,n.Wm)("defs",null,[(0,n.Wm)("linearGradient",{id:"GradientProgress"},[(0,n.Wm)("stop",{"stop-color":"#FF5B20",offset:"0%"},null),(0,n.Wm)("stop",{"stop-color":"#FF9946",offset:"100%"},null)])])]),(0,n.Wm)(Ya,{type:"circle",class:za.progress,showIndicator:!1,percentage:o.currentTime/o.duration*100},null)]),(0,n.Wm)("div",{class:za.title},[(0,n.Wm)("div",{class:za.titleName},[e.item.name])]),(0,n.Wm)("div",{class:za.playBtns},[(0,n.Wm)(pl,{color:"rgba(246,246,246,1)",class:!e.songPrevNextStatus.prev&&za.disabled,circle:!0,bordered:!1,onClick:()=>t("change","pre")},{default:()=>[(0,n.Wm)("img",{src:ml},null)]}),(0,n.Wm)(pl,{color:"rgba(246,246,246,1)",class:za.playBtn,circle:!0,bordered:!1,onClick:()=>t("change","pause"===e.playState?"play":"pause")},{default:()=>[(0,n.Wm)("img",{style:{display:"pause"===e.playState?"":"none"},src:yl},null),(0,n.Wm)("img",{style:{display:"play"===e.playState?"":"none"},src:bl},null)]}),(0,n.Wm)(pl,{color:"rgba(246,246,246,1)",class:!e.songPrevNextStatus.next&&za.disabled,circle:!0,bordered:!1,onClick:()=>t("change","next")},{default:()=>[(0,n.Wm)("img",{src:vl},null)]})]),(0,n.Wm)("div",{class:za.timeWrap},[(0,n.Wm)(gl.Z,{tooltip:!1,step:.01,class:za.timeProgress,value:o.currentTime,max:o.duration,"onUpdate:value":e=>l(e)},null),(0,n.Wm)("div",{class:za.time},[c.value]),(0,n.Wm)("audio",{ref:s,src:e.item.audioFileUrl||e.item.metronomeUrl,onLoadedmetadata:a,onEnded:()=>{t("change","pause")},onTimeupdate:()=>{r||(o.currentTime=s.value?.currentTime)}},null)])]),(0,n.Wm)("div",{class:[za.iconArrow,e.show?"":za.down],onClick:()=>{t("show",!e.show)}},[(0,n.Wm)("img",{src:xl},null)])])}}),Sl=r.p+"img/icon_default.20dca3c0.png",Al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAN5JREFUSEvtljEKwkAQRd9XEE/gAbRXsPUWFnaezs7CW9gK2psDeAIRdDSgkEQyszbBYtMmb192spP5ouNLHftwhWY2BMZAIema8nIR0yo0swWwA0bABVhK2nvSFMYTHl/CaUVwkjQLhCHjCe9AryJ4SOoHwpDxhNZcXFL0zUMmC2tVzSU1s3xo2v+lKeVp9mkKk/sw92GtAvnQlOXw2uLRuG+SqgP5axabWch4wvM7QH0WLoPUJJj4IeMJV8AGGAA3YC1pGwhDJooMZUScAwdJRWJMdJn/CsIpO/r1mSeg8tQdPGjT3AAAAABJRU5ErkJggg==",kl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAASlJREFUSEu91jFKBEEQRuH3jAwMBU9g4hU8hCBiJCgYmoiphzAUL6CBLgrmegDBQBMx9QAKBmqgLQWzsLswM7uz0z1pQ3/TTVX1L4U/C3s0gimlWF8DftWXPn6uFkwprQADYL2CHoB99XkeuAm8BLYmNv8GjoETNXWBm8AvYLFm0ztgT32bFW0C207wDhyoF7Og84BD57yCP6aB+wDDiavdVe/b0L7AcP6imKKo1J86uE9waDwBO3XtkwMMONrnUD2bPGkuMJyo8g31dhTNCYYzUMeGR27wWt0sdcK40m31qgQYRXOknpYommJtUbTxi462YsO79+fpE1gq+QBHnhlr2mpGZosYy8DNSIh6rGJFnhA1vMqU0iqwALx2DU5TTZq2l7vrevHk/Q+3eJAdiFua+AAAAABJRU5ErkJggg==",Tl=r.p+"img/btn-submit.74928013.png",Pl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAAjVBMVEUAAAD88uL98+T/7eD////98+L88uL88uL88+P98+L98uP88uP/9eb78uL88eL98uL98+L88+P99OP98+P88uL88uH+8+L/9OX99OL/9+f/8ub98+P88uL+ckD80Lj9sZD84c39oHr8xKf+d0b8v6L86tj9g1X+fE381r78u539uZn9rIr+dEL9qYX9l25apyH/AAAAHHRSTlMA+1oOBfbr28iojmMz0PPt08CcgU9MSUU5IBTP1NloqAAAAl9JREFUaN7N2oty2jAQBdCVLVt+YsAQnPg6PFJCmqT9/8/rDDOtpiWyJFs75XyA7sQReuyK3MRV1OaZahIhkkZleRtVMYUSb4ta4Iaoi22AkLhcCRiJVTkv4yFPYJHkDzSRjJZwsozklOFLBWeq9I7oenjpO/LxtIa39RM526SYIN2QG1lgokKSg8cMk2WPZFWlmCGtyGK3wCyLHY2KBGYSkW18zoSdQADC+JWqBYJYVIb5mSKQ9MvZKjMEk0m6VSCggm5sENTmZv1MEVT679q6RmBr+kuH4DoiTdYIrpaklWBQ6vGlAgOl/4QILPSqtwSL5Z/zG5j8PvPlmGB/eYZNTldxAn8fw/BiTUjiyXP0+zDoBNtMXU0NsCesrl9IYIK9U4KIiWgL8CVsrxsNS4LeeHowJtT6X8CTIGKqAM6EamShO+2tXq0JEbUw+RxcvRxg0o4sRIO7D5jklIUI2MMkIwWTy+Dq9QwTRQ1MDs+O3mDWUAJWCQmwEuwB/J+oAauGFFgpysAqoxxm54Oj88hS0ZqH/+n+U4ZJO7Jcvw/uYBKNbDg/QgRUI1vm26wAfW6pYXIari5Hq/eRTZ8K2BK+YbJCH7x4Erb66MiSIGJ9+GVJWOnjO09CqS8gLAlJrK9Q9oQTvOX6EuiQsIe3B32NtScc4W3pfhE/fR7hL/IoJZzhT0nuYghzOaeX3AUp7pIae1GQu6zJXZhlLy1zF8e5y/vcDQruFgt3k4i7zcXdqPv/rcZ5zdL7aPdyNqy1roaXuru3RwOezx7u8+EG/9MT/Xim/yJE9E6PZ9if//wCGcwWH542ib8AAAAASUVORK5CYII=",El="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABgCAYAAADmbacFAAAAAXNSR0IArs4c6QAACfFJREFUeF7tnW2MXFUZx///e7fNLjt3eS+23VteYtgoIqStNa1WpRCrAiUGU9RQtRBRPphGQ/FDGxGMJlpBPkAiWIjBNDZa5EXDizUlCjSYaF8wBmpjITu7faFQYGdot+zc+9d7dzud3e7s3Dtz32Z25kPT7H3Oc57z/O45555znnMOkdGfpE68N3CxI/YRbh/EPlEXELQgWSAtQBbADkgFkAVABYkFEAdJ7BG0xzTMPehyXyXtIxktqm8Ws2Kc7/ji4BIXuELSMhKLJHVEZR/BvaC2CcY2E+ZztGYfjkp3FHpSBeE53ykOroC0itRVEjqjKFQtHSQFYBeoTQY6NzE362CtNHE/TwWEjg4sdh2thrRSwOlxF3Iq/SQdCVth6BGz295CciQNexIFoWL/ckdYB2FpGoWtlSfJPIANRg4bSftYLfkonycCQkOD1zlw1gNYGKXxcekicQjiPYZl3kfOORpXPpV6YwWh4cE+Z8S9H9KVSRQm6jxI9hvSGvbMezxq3RP1xQJCyne5RXk14DYJM+MuRPz6+ZQ5c+Z32HnevrjyihyEjuYXuSVtFnBhXEanoZfEMMC1pmXfF0f+kYJwigPfhdyfSpgRh7GZ0Ek+aua6bybPejdKeyIBIb1zplMY+jWAFVEal1VdBPYZZscN7J7zj6hsbBiEju0/3x1x/izo4qiMagY9XlNlCF+JqiNvCIQK/R9xgWclzGkG50Vt49hg8NsdPfbGRnXXDUJD+z/povRHAWc0akSzpyeN9abV++NGylEXCB0dXOI67l8kdTWSeSulJflD07LvrLdMoUGocODDrkrPCzqr3kxbNR1p3Gpavb+sp3yhQOjooO067nZJvfVk1uppSLoGsJKW/WjYsgYGIR223OKxv0v4UNhMppM8ieOGaS7jaXO3hyl3YBBOoX+zhBvCKJ+usiQHjBwvJ3vfCuqDQCCcwsC3JLeuti+oIa0nx6dMq/easUWomsWrCULFgctcuS8ltXpW0+ImEiD4fbPH/lkQk6cEIWmGW8zvlHBJEGVtmfEeIFkyiPnM2f+q5ZspQTjF/Fq5CkS0VkbT9jnxgpmzP1WriaoKwv9ULbmvCOqetk6MquCGsboj1+tNilb9VQVRKuS3QLo+Klumsx6Sh42c1Uee8XY1P0wKwptHclB6fjo7L+qyE/y52WOvDQWiNJR/GtDnojZmOusjWDQsnF8t4vCUGqH39i9wnFJkCx7T2fkTy07yLtOy75jMJ6eAKBXyf4D0xUw58I0BGL+9F3j7jWBmndsL98trgLPPCyafkBSBdwyr+3zy7KFTIFX+QcP5D7oj+I+kmgO9hGz3s+FjD4K7XwiVpT52JXT110OlSUKYhvE9M9f7iylBOIX8nZJ+kIRBYfIwNt8LvLojTBLo0sXQ9beGSpOEMMndpmVfXhWEVwvcQv6/WQyDaSUQHgDT4GXM2S9Xwig3QRrav9RB6W9JvBVh82g1EIRxt9nTe9ukIJxC/gFJt4R1UhLyLQeCOGDk7F5vIemE/8o1wink+yXZSTg2bB6tBsJvnkxzAbvnljs+H4T3teS8r71hHZSUfCuCoIHbzNy8u8fVCKeQv0XSA0k5Nmw+rQgC4FMdPfbVE0Bkexm0FUEQLBhW71nemoU/VvL+cQr5AUlzw76pScm3IojRfqJjIbvn/NMH4UVnOIVjpwy5k3JykHxaFQQM3tiRszeNgmiCSb5WBUEaPzKtXn8mg6Vi/qtw5VPJ6q91QeB3pjXPD1FiqvNL774F4+nfAENVF65G340jh4DhkHsKu7qBM2dN/W6dfg7cq1cBuXTiqCvnnegMDTwsuKvTqA188iFwx1/TyLqcpz7+WejzN6ZiA8EjZo999mjTVMj/HtKX0rCELz0LPpNuq6gVN0HzP5NG8UFixLTm+Zs9PRDPQFqeiiWeAU88BO5Mp1Zo0VXQF76WVtH9fE3L7iR5nKWh/IuAlqRpDZ/cCO5IduI3CxB8EOg4lz1z3vQ665clXZomCL9qJggjKxB8EDNmXsSuD7zmgdgt6aNpg4A0CmNnvFE8WVtCNWfMuJBds19nqdD/AoRPpA7CMyBmGFmDMNpHGOd44fupd9anvAAxwcgihPGddYqfr1VroQfjiY3grmiaqaxCGPf5muaAbsrmMCIYWrgMuuYbmWh5JxoxbkCX6hRHLfd4MB7/VeiYphNqswzB/1KsCK3J/qRfnTC0YBl0bTZrwokXhayY9GuGaXD/a+pxL9rvxVp1yH/eDBBGa0TFNHgzLAyNejcYDC24Aro2lTnMQC/JOKHKhSHvQdaXSsvGezAeewB8efItzE0FYeJS6SiIbAcPjHuLqsDwZlC9mdRm+VULHsh0OM2kg76KmqH5n4ZW3NwsDMbsnCScJusBZlU9/PorgGEA8/qaDAIwaYDZWD+R2ZDLpvNyAINN05zP7rk7y5+yJ/6T5SDkAOVqKhFOFYSc5bD8pvJyAGOnDMtPbKOK6wL7/g0eT/To7ZruUedpwEWXeKOsmrKNCky5UWWsn4h965Y/dxTRrGqjDpmYPolZ2ppbt/zBawKbGY2ffBN4/3jUPoxGX3cP3LWxHHRcti/QZkZPOu7tvcaDdwD7X4vGcVFrmdcH96Z1UWs9CSHo9l6/VsQdC/vmQXD7n8Dh4dgKXI9idXZBS1cAZ55bT/JAaUJtePdrRfsIiECODSMU+ggIv1a0D0UJ4+NAsgQ3mD327dWE28cEBXJjY0J1HxPk14r2wVmNeb8ydSMHZ/njivZRco3DaPQoOb9WtA9XbAhEZIcr+jDax43WDYMGbzdz9oYgCgJNrLQP4A3iyokyER/Ae0J9Uy2n1uO3CNPEdiT1aH/RPqQ9CKvYD2kvf9K2ry2oyiORawtO5N6+yKN6vUjsIo8yjNGrbbZKOi1IdZ0OMv8/cvoO07Lvqresgb6aJlPevuzppFdSu+zpZDPVvv5MQrrXn5VhtC8EjORm37qbpsrmqn1FZr09Q0Xz1riKkxral8bW781IasS42tG+RrkuGpGDGB2Fty8WD0sjFhDljnx4sM8Zce+HdGVYw7IgT7LfkNZEdUPvVGWKFUQZyNDgdQ6c9QAWZsHBtWwgcQjiPYZl3kfOCXlQVC3tkz9PBEQZSLF/uSOsg7C0PnPjTUUyD2CDkcNG0k40JjRRECenSAYWu45WQ1op4PR43Tu19rE7qbfC0CNmt72F5Ega9qQCogxE6nSKgysgrSJ1VVKXDo5dRbYL1CYDnZuYm3UwDedX5pkqiPGDQnWiOLjEhbtM4hUkFknqiMpBBPeC2iYY20yYz9GafTgq3VHoyQyIiYWR1In3Bi52xD7C7YPYJ+oCgj2QciAtQBbADkgFkAVABYlFEAdI7BG0xzTMPehyX612yVIUToxCx/8A9/+5neupe+AAAAAASUVORK5CYII=",_l=r(3420),Ol=r(7053);const Ml=()=>Ol.Z9.axioseRquest({method:"get",url:"/api-teacher/sysMusicScoreCategories/queryTree"}),zl=e=>Ol.Z9.axioseRquest({method:"get",url:"/api-teacher/sysMusicScoreAccompaniment/querySubjectIds",params:e}),Rl=e=>Ol.Z9.axioseRquest({method:"get",url:"/api-teacher/sysMusicScore/queryPage2",params:e}),Bl=e=>Ol.rO.axioseRquest({method:"post",url:"/api-teacher/musicSheetCategories/page",data:e}),Il=e=>Ol.rO.axioseRquest({method:"get",url:"/api-teacher/subject/musicList",params:e}),Nl=e=>Ol.rO.axioseRquest({method:"post",url:"/api-teacher/musicSheet/page",data:e}),Ll=e=>Ol.Vk.axioseRquest({method:"get",url:"/api-teacher/tenantGroupAlbum/buyAlbumInfo",params:e}),Fl=e=>Ol.Vk.axioseRquest({method:"get",url:"/api-teacher/open/subject/queryPage",params:e}),Dl=e=>Ol.Vk.axioseRquest({method:"post",url:"/api-teacher/tenantAlbumMusic/page",data:e}),Hl=e=>Ol.Vk.axioseRquest({method:"post",url:"/api-teacher/tenantGroupAlbum/selectCondition",data:e});var Wl=r(4161);const Vl={"Acoustic Grand Piano":"大钢琴","Bright Acoustic Piano":"明亮的钢琴","Electric Grand Piano":"电钢琴","Rhodes Piano":"柔和的电钢琴","Chorused Piano":"加合唱效果的电钢琴",Harpsichord:"羽管键琴",Clavichord:"科拉维科特琴",Celesta:"钢片琴",Glockenspiel:"钢片琴","Music box":"八音盒",Vibraphone:"颤音琴",Marimba:"马林巴",Xylophone:"木琴","Tubular Bells":"管钟",Dulcimer:"大扬琴","Hammond Organ":"击杆风琴","Percussive Organ":"打击式风琴","Rock Organ":"摇滚风琴","Church Organ":"教堂风琴","Reed Organ":"簧管风琴",Accordian:"手风琴",Harmonica:"口琴","Tango Accordian":"探戈手风琴","Acoustic Guitar":"钢弦吉他","Electric Guitar":"闷音电吉他","Overdriven Guitar":"加驱动效果的电吉他","Distortion Guitar":"加失真效果的电吉他","Guitar Harmonics":"吉他和音","Acoustic Bass":"大贝司","Electric Bass":"电贝司","Fretless Bass":"无品贝司","Slap Bass":"掌击","Synth Bass":"电子合成",Violin:"小提琴",Viola:"中提琴",Cello:"大提琴",Contrabass:"低音大提琴","Tremolo Strings":"弦乐群颤音音色","Pizzicato Strings":"弦乐群拨弦音色","Orchestral Harp":"竖琴",Timpani:"定音鼓","String Ensemble":"弦乐合奏音色","Synth Strings":"合成弦乐合奏音色","Choir Aahs":"人声合唱","Voice Oohs":"人声","Synth Voice":"合成人声","Orchestra Hit":"管弦乐敲击齐奏",Trumpet:"小号",Trombone:"长号",Tuba:"大号","Muted Trumpet":"加弱音器小号","French Horn":"法国号","Brass Section":"铜管组","Synth Brass":"合成铜管音色","Soprano Sax":"高音萨克斯管","Alto Sax":"中音萨克斯管","Tenor Sax":"次中音萨克斯管","Baritone Sax":"低音萨克斯管",Oboe:"双簧管","English Horn":"英国管",Bassoon:"巴松","Soprano Saxophone":"高音萨克斯管","Alto Saxophone":"中音萨克斯管","Tenor Saxophone":"次中音萨克斯管","Baritone Saxophone":"低音萨克斯管",Piccolo:"短笛",Flute:"长笛",Recorder:"竖笛","Soprano Recorder":"高音竖笛","Pan Flute":"排箫","Bottle Blow":"瓶木管",Whistle:"口哨声",Ocarina:"陶笛",Lead:"合成主音","Lead lead":"合成主音","Pad age":"合成音色",Pad:"合成音色",FX:"合成效果 科幻",Sitar:"西塔尔",Banjo:"班卓琴",Shamisen:"三昧线",Koto:"十三弦筝",Kalimba:"卡林巴",Bagpipe:"风笛",Fiddle:"民族提琴",Shanai:"山奈","Tinkle Bell":"叮当铃",Agogos:"阿戈戈铃","Steel Drums":"钢鼓","Taiko Drum":"太鼓","Melodic Toms":"嗵嗵鼓","Synth Drums":"合成鼓","Reverse Cymbals":"反向镲","Agogo Bells":"阿戈戈铃","Taiko Drums":"太鼓",Bongos:"邦戈鼓","Bongo Bell":"邦戈铃",Congas:"康加鼓",Guiro:"刮壶","Guitar Fret Noise":"吉他换把杂音","Breath Noise":"呼吸声",Seashore:"海浪声","Bird Tweet":"鸟鸣","Telephone Ring":"电话铃",Helicopter:"直升机",Applause:"鼓掌声",Gunshot:"枪声","Acoustic Bass Drum":"大鼓","Bass Drum":"大鼓","Side Drum":"小鼓鼓边","Acoustic Snare":"小鼓","Hand Claps":"拍手","Electric Snare":"小鼓","Low Floor Tom":"低音嗵鼓","Closed Hi-Hat":"闭合踩镲","High Floor Tom":"高音落地嗵鼓","Pedal Hi-Hat":"脚踏踩镲","Low Tom":"低音嗵鼓","Open Hi-Hat":"开音踩镲","Low-Mid Tom":"中低音嗵鼓","Hi Mid Tom":"高音鼓","Crash Cymbals":"对镲","High Tom":"高音嗵鼓","Ride Cymbals":"叮叮镲","Chinese Cymbals":"中国镲","Ride Bell":"圆铃",Tambourine:"铃鼓","Splash Cymbal":"溅音镲",Cowbell:"牛铃","Crash Cymbal":"强音钹","Vibra-Slap":"颤音器","Ride Cymbal":"打点钹","Hi Bongo":"高音邦戈鼓","Low Bongo":"低音邦戈鼓","Mute Hi Conga":"弱音高音康加鼓","Open Hi Conga":"强音高音康加鼓","Low Conga":"低音康加鼓","High Timbale":"高音天巴鼓","Low Timbale":"低音天巴鼓","High Agogo":"高音阿戈戈铃","Low Agogo":"低音阿戈戈铃",Cabasa:"卡巴萨",Maracas:"沙锤","Short Whistle":"短口哨","Long Whistle":"长口哨","Short Guiro":"短刮壶","Long Guiro":"长刮壶",Claves:"响棒","Hi Wood Block":"高音木鱼","Low Wood Block":"低音木鱼","Mute Triangle":"弱音三角铁","Open Triangle":"强音三角铁","Drum Set":"架子鼓","Hulusi flute":"葫芦丝",Melodica:"口风琴","Snare Drum":"小军鼓","Horn in F":"圆号",Triangle:"三角铁",Vibrato:"颤音琴","Suspend Cymbals":"吊镲","Suspended Cymbals":"吊镲","Tom-Toms":"嗵嗵鼓",Bell:"铃铛",Bells:"铃铛","Alto Clarinet":"中音单簧管","Bass Clarinet":"低音单簧管",Clarinet:"单簧管",Cornet:"短号",Euphonium:"上低音号","crash cymbals":"对镲",Castanets:"响板",Shaker:"沙锤","Mark tree":"音树",Chimes:"管钟","Mark Tree":"音树","Tom-toms":"嗵嗵鼓","Hi-Hat":"踩镲","Sleigh Bells":"雪橇铃",Flexatone:"弹音器","Brake drum":"闸鼓",Gong:"锣","concert tom":"音乐会嗵嗵鼓","brake drum":"车轮鼓","finger cymbal":"指钹","ride cymbal":"叮叮镲","Concert Toms":"音乐会嗵嗵鼓",Vibraslap:"弹音器","Wood Blocks":"木鱼","Temple Blocks":"木鱼","Wood Block":"木鱼","Field Drum":"军鼓","Quad-Toms":"筒鼓",Quads:"筒鼓","Drums set":"架子鼓","High Bongo":"邦戈",Timbales:"天巴鼓","rain stick":"雨棒","String Bass":"弦乐低音","Floor Tom":"侧嗵鼓","Brake Drum":"闸鼓","Tam-tam":"大锣",Cymbal:"镲",Cymbals:"镲"},Ul=e=>{const t=e.replace(/ /g," ").toLocaleLowerCase(),r=Object.keys(Vl);for(let n=0;n{if(!e)return"";const t=(new DOMParser).parseFromString(e,"text/xml"),r=t.getElementsByTagName("measure");let n=-1,i=-1;for(const o of r){-1===n&&o.getElementsByTagName("beats").length&&(n=parseInt(o.getElementsByTagName("beats")[0].textContent||"4")),-1===i&&o.getElementsByTagName("beat-type").length&&(i=parseInt(o.getElementsByTagName("beat-type")[0].textContent||"4"));const e=parseInt(o.getElementsByTagName("divisions")[0]?.textContent||"256");if(0===o.getElementsByTagName("note").length){const t=o.getElementsByTagName("forward")[0]?.getElementsByTagName("duration")[0];t&&(t.textContent="0"),o.innerHTML=o.innerHTML+`\n \n \n ${e*n}\n 1\n whole\n `}}return(new XMLSerializer).serializeToString(t)},Zl=(e,t)=>{if(!e)return"";const r=(new DOMParser).parseFromString(e,"text/xml"),n=r.getElementsByTagName("part-list")?.[0]?.getElementsByTagName("score-part")||[],i=Array.from(n).map((e=>e.getElementsByTagName("part-name")?.[0].textContent||"")),o=r.getElementsByTagName("part"),s=o[0],a=[...s.getElementsByTagName("measure")],l=[...s.getElementsByTagName("metronome")];"COMMON"===i[0]?.toLocaleUpperCase?.()&&(t++,i.shift());const c=n[t];if(c){const e=c.getAttribute("id");Array.from(o).forEach((t=>{if(t&&t.getAttribute("id")!==e)t.parentNode?.removeChild(t);else if(t&&"P1"!==t.getAttribute("id")){const e={};for(let t=0;t{const r=e.parentElement?.parentElement,n=r?.parentElement,i=[...n?.childNodes||[]],o=r?i.indexOf(r):-1;if(n&&o>-1){const e=a.indexOf(n),i=t.getElementsByTagName("measure")[e];Xl(r,n,i)}}))}if(t&&t.getAttribute("id")===e){const e=t.getElementsByTagName("barline"),r=e[e.length-1]?.parentElement;if("barline"!==r?.lastElementChild?.tagName){const e=r?.children||[];for(const t of e)if("barline"===t.tagName){r?.appendChild(t);break}}}})),Array.from(n).forEach((t=>{t&&t.getAttribute("id")!==e&&t.parentNode?.removeChild(t)}))}return(new XMLSerializer).serializeToString(Gl(r))},Gl=e=>{if(!e)return e;const t=e.querySelectorAll("grace");if(!t.length)return e;const r=e=>e.querySelector("grace")?r(e?.nextElementSibling):e;for(const n of t){const e=n.parentElement?.querySelector("notations");if(e&&e.querySelectorAll("slur").length>1){const t=r(n.parentElement?.nextElementSibling);if(t&&t.querySelectorAll("slur").length>0){const r=Array.from(t.querySelector("notations")?.children||[]).map((e=>e.getAttribute("number"))),n=e.querySelectorAll("slur");for(const e of n)r.includes(e.getAttribute("number"))||t.querySelector("notations")?.appendChild(e)}}}return e},Xl=(e,t,r)=>{let n=0;if(t){for(let r=0;r0){let t=0;const i=Array.from(r.childNodes).filter((e=>"note"===e.nodeName)),o=i[i.length-1];if(n>=i.length&&o)return void r.insertBefore(e,r.childNodes[Array.from(r.childNodes).indexOf(o)]);for(let s=0;s{const t={showSpeed:!0,parsedXML:e},r=(new DOMParser).parseFromString(e,"text/xml"),n=r.getElementsByTagName("words");for(const i of n)i&&"隐藏速度"===i.textContent?.trim()&&(t.showSpeed=!1,i.textContent=""),i&&"@"===i.textContent?.trim()&&(i.textContent="segno");return t.parsedXML=(new XMLSerializer).serializeToString(r),t};var $l=r(6636),ql=r(5402),Ql=r(2529);const Jl=()=>{const e=(0,Ql.Z)(),t=(0,i.iH)(!1),r=(0,i.iH)(!1),n=(0,i.iH)("");function o(t,i=0){const o={GYT:`${$l.PJ}?id=${t}&modelType=practice&modeType=json&part-index=${i}&Authorization=${(0,ql.LP)()}&isYjt=1&&isHideBack=false`,GYM:`${$l.bz}#/detail/${t}?Authorization=${(0,ql.LP)()}&platform=web&part-index=${i}&liveConfig=1&isYjt=1`,KLX:`${$l.lI}?Authorization=${(0,ql.LP)()}&id=${t}&limitModel=practice&part-index=${i}&isYjt=1&client=teacher`};r.value=!0,n.value=o[e.roles]}function s(){r.value=!1,n.value=""}return{loading:t,goToCloud:o,isPracticeShow:r,practiceUrl:n,handlePracticeClose:s}};var Kl={audioAnimate:"tXDJ8GvGkvcrWdultB0M",musicWave:"hejY4OGHmECfu3KlJGcU"},ec=(0,n.aZ)({name:"playLoading",setup(){return()=>(0,n.Wm)("div",{class:Kl.audioAnimate},[(0,n.Wm)("div",null,null),(0,n.Wm)("div",null,null),(0,n.Wm)("div",null,null),(0,n.Wm)("div",null,null)])}}),tc=r(2761),rc=r(6154),nc=r(4730),ic=r.n(nc),oc=r(7327),sc=(r(2801),r(6790)),ac=r(6290),lc=function(e,t){return(lc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function cc(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}lc(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function uc(e){var t="";Array.isArray(e)||(e=[e]);for(var r=0;re.phi1&&(e.phi2-=2*fc),1===e.sweepFlag&&e.phi2n)return[];if(0===n)return[[e*r/(e*e+t*t),t*r/(e*e+t*t)]];var i=Math.sqrt(n);return[[(e*r+t*i)/(e*e+t*t),(t*r-e*i)/(e*e+t*t)],[(e*r-t*i)/(e*e+t*t),(t*r+e*i)/(e*e+t*t)]]}var mc,vc=Math.PI/180;function yc(e,t,r){return(1-r)*e+r*t}function bc(e,t,r,n){return e+Math.cos(n/180*fc)*t+Math.sin(n/180*fc)*r}function xc(e,t,r,n){var i=1e-6,o=t-e,s=r-t,a=3*o+3*(n-r)-6*s,l=6*(s-o),c=3*o;return Math.abs(a)m&&(i.sweepFlag=+!i.sweepFlag),i}))}function s(){return function(e){var t={};for(var r in e)t[r]=e[r];return t}}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),hc(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i((function(e,t,r){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=r),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=r),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=r),e.relative=!0),e}))},e.NORMALIZE_HVZ=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),i((function(n,i,o,s,a){if(isNaN(s)&&!(n.type&Pc.MOVE_TO))throw new Error("path must start with moveto");return t&&n.type&Pc.HORIZ_LINE_TO&&(n.type=Pc.LINE_TO,n.y=n.relative?0:o),r&&n.type&Pc.VERT_LINE_TO&&(n.type=Pc.LINE_TO,n.x=n.relative?0:i),e&&n.type&Pc.CLOSE_PATH&&(n.type=Pc.LINE_TO,n.x=n.relative?s-i:s,n.y=n.relative?a-o:a),n.type&Pc.ARC&&(0===n.rX||0===n.rY)&&(n.type=Pc.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},e.NORMALIZE_ST=r,e.QT_TO_C=n,e.INFO=i,e.SANITIZE=function(e){void 0===e&&(e=0),hc(e);var t=NaN,r=NaN,n=NaN,o=NaN;return i((function(i,s,a,l,c){var u=Math.abs,d=!1,h=0,f=0;if(i.type&Pc.SMOOTH_CURVE_TO&&(h=isNaN(t)?0:s-t,f=isNaN(r)?0:a-r),i.type&(Pc.CURVE_TO|Pc.SMOOTH_CURVE_TO)?(t=i.relative?s+i.x2:i.x2,r=i.relative?a+i.y2:i.y2):(t=NaN,r=NaN),i.type&Pc.SMOOTH_QUAD_TO?(n=isNaN(n)?s:2*s-n,o=isNaN(o)?a:2*a-o):i.type&Pc.QUAD_TO?(n=i.relative?s+i.x1:i.x1,o=i.relative?a+i.y1:i.y2):(n=NaN,o=NaN),i.type&Pc.LINE_COMMANDS||i.type&Pc.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&Pc.CURVE_TO||i.type&Pc.SMOOTH_CURVE_TO||i.type&Pc.QUAD_TO||i.type&Pc.SMOOTH_QUAD_TO){var p=void 0===i.x?0:i.relative?i.x:i.x-s,g=void 0===i.y?0:i.relative?i.y:i.y-a;h=isNaN(n)?void 0===i.x1?h:i.relative?i.x:i.x1-s:n-s,f=isNaN(o)?void 0===i.y1?f:i.relative?i.y:i.y1-a:o-a;var m=void 0===i.x2?0:i.relative?i.x:i.x2-s,v=void 0===i.y2?0:i.relative?i.y:i.y2-a;u(p)<=e&&u(g)<=e&&u(h)<=e&&u(f)<=e&&u(m)<=e&&u(v)<=e&&(d=!0)}return i.type&Pc.CLOSE_PATH&&u(s-l)<=e&&u(a-c)<=e&&(d=!0),d?[]:i}))},e.MATRIX=o,e.ROTATE=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),hc(e,t,r);var n=Math.sin(e),i=Math.cos(e);return o(i,n,-n,i,t-t*i+r*n,r-t*n-r*i)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),hc(e,t),o(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),hc(e,t),o(e,0,0,t,0,0)},e.SKEW_X=function(e){return hc(e),o(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return hc(e),o(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),hc(e),o(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),hc(e),o(1,0,0,-1,0,e)},e.A_TO_C=function(){return i((function(e,t,r){return Pc.ARC===e.type?function(e,t,r){var n,i,o,s;e.cX||pc(e,t,r);for(var a=Math.min(e.phi1,e.phi2),l=Math.max(e.phi1,e.phi2)-a,c=Math.ceil(l/90),u=new Array(c),d=t,h=r,f=0;fl.maxX&&(l.maxX=e),el.maxY&&(l.maxY=e),eE&&c(wc(r,i.x1,i.x2,i.x,E));for(var f=0,p=xc(n,i.y1,i.y2,i.y);fE&&u(wc(n,i.y1,i.y2,i.y,E))}if(i.type&Pc.ARC){c(i.x),u(i.y),pc(i,r,n);for(var g=i.xRot/180*Math.PI,m=Math.cos(g)*i.rX,v=Math.sin(g)*i.rX,y=-Math.sin(g)*i.rY,b=Math.cos(g)*i.rY,x=i.phi1i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],w=x[0],C=x[1],S=function(e){var t=e[0],r=e[1],n=180*Math.atan2(r,t)/Math.PI;return nw&&Ew&&El)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(l),this.curArgs.length===Ec[this.curCommandType]&&(Pc.HORIZ_LINE_TO===this.curCommandType?n({type:Pc.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):Pc.VERT_LINE_TO===this.curCommandType?n({type:Pc.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===Pc.MOVE_TO||this.curCommandType===Pc.LINE_TO||this.curCommandType===Pc.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Pc.MOVE_TO===this.curCommandType&&(this.curCommandType=Pc.LINE_TO)):this.curCommandType===Pc.CURVE_TO?n({type:Pc.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Pc.SMOOTH_CURVE_TO?n({type:Pc.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Pc.QUAD_TO?n({type:Pc.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Pc.ARC&&n({type:Pc.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Ac(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(a)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=Pc.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=Pc.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=Pc.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=Pc.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=Pc.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=Pc.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=Pc.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=Pc.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=Pc.ARC,this.curCommandRelative="a"===o}else t.push({type:Pc.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,t);n>>w;if(a[b+3]=Y,0!==Y){var $=255/Y;a[b]=(N*x>>>w)*$,a[b+1]=(L*x>>>w)*$,a[b+2]=(F*x>>>w)*$}else a[b]=a[b+1]=a[b+2]=0;N-=z,L-=R,F-=B,D-=I,z-=m.r,R-=m.g,B-=m.b,I-=m.a;var q=X+o+1;q=y+(q>>w,se>0?(se=255/se,a[Ae]=(de*x>>>w)*se,a[Ae+1]=(he*x>>>w)*se,a[Ae+2]=(fe*x>>>w)*se):a[Ae]=a[Ae+1]=a[Ae+2]=0,de-=ae,he-=le,fe-=ce,pe-=ue,ae-=m.r,le-=m.g,ce-=m.b,ue-=m.a,Ae=re+((Ae=Se+d)0&&void 0!==arguments[0]?arguments[0]:{};const t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},async createImage(e){const t=await fetch(e),r=await t.blob(),n=await createImageBitmap(r);return n}};return"undefined"===typeof globalThis.DOMParser&&"undefined"!==typeof e||Reflect.deleteProperty(t,"DOMParser"),t}function Fc(e){let{DOMParser:t,canvas:r,fetch:n}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:n,createCanvas:r.createCanvas,createImage:r.loadImage}}var Dc=Object.freeze({__proto__:null,offscreen:Lc,node:Fc});function Hc(e){return e.replace(/(?!\u3000)\s+/gm," ")}function Wc(e){return e.replace(/^[\n \t]+/,"")}function Vc(e){return e.replace(/[\n \t]+$/,"")}function Uc(e){const t=e.match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm);return t?t.map(parseFloat):[]}function jc(e){const t=Uc(e),r=[t[0]||0,t[1]||0,t[2]||0,t[3]||0,t[4]||0,t[5]||0];return r}const Zc=/^[A-Z-]+$/;function Gc(e){return Zc.test(e)?e.toLowerCase():e}function Xc(e){const t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e);return t&&(t[2]||t[3]||t[4])||""}function Yc(e){if(!e.startsWith("rgb"))return e;let t=3;const r=e.replace(/\d+(\.\d+)?/g,((e,r)=>t--&&r?String(Math.round(parseFloat(e))):e));return r}const $c=/(\[[^\]]+\])/g,qc=/(#[^\s+>~.[:]+)/g,Qc=/(\.[^\s+>~.[:]+)/g,Jc=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Kc=/(:[\w-]+\([^)]*\))/gi,eu=/(:[^\s+>~.[:]+)/g,tu=/([^\s+>~.[:]+)/g;function ru(e,t){const r=t.exec(e);return r?[e.replace(t," "),r.length]:[e,0]}function nu(e){const t=[0,0,0];let r=e.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[r,n]=ru(r,$c),t[1]+=n,[r,n]=ru(r,qc),t[0]+=n,[r,n]=ru(r,Qc),t[1]+=n,[r,n]=ru(r,Jc),t[2]+=n,[r,n]=ru(r,Kc),t[1]+=n,[r,n]=ru(r,eu),t[1]+=n,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,n]=ru(r,tu),t[2]+=n,t.join("")}const iu=1e-8;function ou(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function su(e,t){return(e[0]*t[0]+e[1]*t[1])/(ou(e)*ou(t))}function au(e,t){return(e[0]*t[1]0&&void 0!==arguments[0]?arguments[0]:" ";const{document:t,name:r}=this;return Hc(this.getString()).trim().split(e).map((e=>new gu(t,r,e)))}hasValue(e){const t=this.value;return null!==t&&""!==t&&(e||0!==t)&&"undefined"!==typeof t}isString(e){const{value:t}=this,r="string"===typeof t;return r&&e?e.test(t):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;const e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return"undefined"===typeof e||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return"undefined"===typeof e?0:parseFloat(e);const{value:t}=this;let r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(e){return"undefined"===typeof e||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(e)}getColor(e){let t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Yc(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;const[r,n]="boolean"===typeof e?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&n:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:{const e=this.getNumber();return t&&e<1?e*i.computeSize(r):e}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){const e=this.getString(),t=/#([^)'"]+)/.exec(e),r=(null===t||void 0===t?void 0:t[1])||e;return this.document.definitions[r]}getFillStyleDefinition(e,t){let r=this.getDefinition();if(!r)return null;if("function"===typeof r.createGradient&&"getBoundingBox"in e)return r.createGradient(this.document.ctx,e,t);if("function"===typeof r.createPattern){if(r.getHrefAttribute().hasValue()){const e=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),r&&e.hasValue()&&r.getAttribute("patternTransform",!0).setValue(e.value)}if(r)return r.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){if(!this.hasValue())return null;const e=this.getString();return gu.textBaselineMapping[e]||null}addOpacity(e){let t=this.getColor();const r=t.length;let n=0;for(let i=0;i1&&void 0!==arguments[1]?arguments[1]:0;const[r=t,n=t]=Uc(e);return new yu(r,n)}static parseScale(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[r=t,n=r]=Uc(e);return new yu(r,n)}static parsePath(e){const t=Uc(e),r=t.length,n=[];for(let i=0;i0}runEvents(){if(!this.working)return;const{screen:e,events:t,eventElements:r}=this,{style:n}=e.ctx.canvas;let i;n&&(n.cursor=""),t.forEach(((e,t)=>{let{run:n}=e;i=r[t];while(i)n(i),i=i.parent})),this.events=[],this.eventElements=[]}checkPath(e,t){if(!this.working||!t)return;const{events:r,eventElements:n}=this;r.forEach(((r,i)=>{let{x:o,y:s}=r;!n[i]&&t.isPointInPath&&t.isPointInPath(o,s)&&(n[i]=e)}))}checkBoundingBox(e,t){if(!this.working||!t)return;const{events:r,eventElements:n}=this;r.forEach(((r,i)=>{let{x:o,y:s}=r;!n[i]&&t.isPointInBox(o,s)&&(n[i]=e)}))}mapXY(e,t){const{window:r,ctx:n}=this.screen,i=new yu(e,t);let o=n.canvas;while(o)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return(null===r||void 0===r?void 0:r.scrollX)&&(i.x+=r.scrollX),(null===r||void 0===r?void 0:r.scrollY)&&(i.y+=r.scrollY),i}onClick(e){const{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:r,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){const{x:t,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(e){e.onMouseMove&&e.onMouseMove()}})}constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}}const xu="undefined"!==typeof window?window:null,wu="undefined"!==typeof fetch?fetch.bind(void 0):void 0;class Cu{wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;const e=this.waits.every((e=>e()));return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){let{document:t,ctx:r,aspectRatio:n,width:i,desiredWidth:o,height:s,desiredHeight:a,minX:l=0,minY:c=0,refX:u,refY:d,clip:h=!1,clipX:f=0,clipY:p=0}=e;const g=Hc(n).replace(/^defer\s/,""),[m,v]=g.split(" "),y=m||"xMidYMid",b=v||"meet",x=i/o,w=s/a,C=Math.min(x,w),S=Math.max(x,w);let A=o,k=a;"meet"===b&&(A*=C,k*=C),"slice"===b&&(A*=S,k*=S);const T=new gu(t,"refX",u),P=new gu(t,"refY",d),E=T.hasValue()&&P.hasValue();if(E&&r.translate(-C*T.getPixels("x"),-C*P.getPixels("y")),h){const e=C*f,t=C*p;r.beginPath(),r.moveTo(e,t),r.lineTo(i,t),r.lineTo(i,s),r.lineTo(e,s),r.closePath(),r.clip()}if(!E){const e="meet"===b&&C===w,t="slice"===b&&S===w,n="meet"===b&&C===x,o="slice"===b&&S===x;y.startsWith("xMid")&&(e||t)&&r.translate(i/2-A/2,0),y.endsWith("YMid")&&(n||o)&&r.translate(0,s/2-k/2),y.startsWith("xMax")&&(e||t)&&r.translate(i-A,0),y.endsWith("YMax")&&(n||o)&&r.translate(0,s-k)}switch(!0){case"none"===y:r.scale(x,w);break;case"meet"===b:r.scale(C,C);break;case"slice"===b:r.scale(S,S);break}r.translate(-l,-c)}start(e){let{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:a,scaleHeight:l,offsetX:c,offsetY:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{mouse:d}=this,h=1e3/Cu.FRAMERATE;if(this.isReadyLock=!1,this.frameDuration=h,this.readyPromise=new Promise((e=>{this.resolveReady=e})),this.isReady()&&this.render(e,i,o,a,l,c,u),!t)return;let f=Date.now(),p=f,g=0;const m=()=>{f=Date.now(),g=f-p,g>=h&&(p=f-g%h,this.shouldUpdate(n,s)&&(this.render(e,i,o,a,l,c,u),d.runEvents())),this.intervalId=sc(m)};r||d.start(),this.intervalId=sc(m)}stop(){this.intervalId&&(sc.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){const{frameDuration:e}=this,t=this.animations.reduce(((t,r)=>r.update(e)||t),!1);if(t)return!0}return!("function"!==typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(e,t,r,n,i,o,s){const{viewPort:a,ctx:l,isFirstRender:c}=this,u=l.canvas;a.clear(),u.width&&u.height&&a.setCurrent(u.width,u.height);const d=e.getStyle("width"),h=e.getStyle("height");!t&&(c||"number"!==typeof n&&"number"!==typeof i)&&(d.hasValue()&&(u.width=d.getPixels("x"),u.style&&(u.style.width="".concat(u.width,"px"))),h.hasValue()&&(u.height=h.getPixels("y"),u.style&&(u.style.height="".concat(u.height,"px"))));let f=u.clientWidth||u.width,p=u.clientHeight||u.height;if(t&&d.hasValue()&&h.hasValue()&&(f=d.getPixels("x"),p=h.getPixels("y")),a.setCurrent(f,p),"number"===typeof o&&e.getAttribute("x",!0).setValue(o),"number"===typeof s&&e.getAttribute("y",!0).setValue(s),"number"===typeof n||"number"===typeof i){const t=Uc(e.getAttribute("viewBox").getString());let r=0,o=0;if("number"===typeof n){const i=e.getStyle("width");i.hasValue()?r=i.getPixels("x")/n:t[2]&&!isNaN(t[2])&&(r=t[2]/n)}if("number"===typeof i){const r=e.getStyle("height");r.hasValue()?o=r.getPixels("y")/i:t[3]&&!isNaN(t[3])&&(o=t[3]/i)}r||(r=o),o||(o=r),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(i);const s=e.getStyle("transform",!0,!0);s.setValue("".concat(s.getString()," scale(").concat(1/r,", ").concat(1/o,")"))}r||l.clearRect(0,0,f,p),e.render(l),c&&(this.isFirstRender=!1)}constructor(e,{fetch:t=wu,window:r=xu}={}){if(this.ctx=e,this.viewPort=new mu,this.mouse=new bu(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,!t)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");this.fetch=t}}Cu.defaultWindow=xu,Cu.defaultFetch=wu,Cu.FRAMERATE=30,Cu.MAX_VIRTUAL_PIXELS=3e4;const{defaultFetch:Su}=Cu,Au="undefined"!==typeof DOMParser?DOMParser:void 0;class ku{async parse(e){return e.startsWith("<")?this.parseFromString(e):this.load(e)}parseFromString(e){const t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(r){return this.checkDocument(t.parseFromString(e,"text/xml"))}}checkDocument(e){const t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent||"Unknown parse error");return e}async load(e){const t=await this.fetch(e),r=await t.text();return this.parseFromString(r)}constructor({fetch:e=Su,DOMParser:t=Au}={}){if(!e)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");if(!t)throw new Error("Can't find 'DOMParser' in 'globalThis', please provide it via options");this.fetch=e,this.DOMParser=t}}class Tu{apply(e){const{x:t,y:r}=this.point;e.translate(t||0,r||0)}unapply(e){const{x:t,y:r}=this.point;e.translate(-1*t||0,-1*r||0)}applyToPoint(e){const{x:t,y:r}=this.point;e.applyTransform([1,0,0,1,t||0,r||0])}constructor(e,t){this.type="translate",this.point=yu.parse(t)}}class Pu{apply(e){const{cx:t,cy:r,originX:n,originY:i,angle:o}=this,s=t+n.getPixels("x"),a=r+i.getPixels("y");e.translate(s,a),e.rotate(o.getRadians()),e.translate(-s,-a)}unapply(e){const{cx:t,cy:r,originX:n,originY:i,angle:o}=this,s=t+n.getPixels("x"),a=r+i.getPixels("y");e.translate(s,a),e.rotate(-1*o.getRadians()),e.translate(-s,-a)}applyToPoint(e){const{cx:t,cy:r,angle:n}=this,i=n.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}constructor(e,t,r){this.type="rotate";const n=Uc(t);this.angle=new gu(e,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}}class Eu{apply(e){const{scale:{x:t,y:r},originX:n,originY:i}=this,o=n.getPixels("x"),s=i.getPixels("y");e.translate(o,s),e.scale(t,r||t),e.translate(-o,-s)}unapply(e){const{scale:{x:t,y:r},originX:n,originY:i}=this,o=n.getPixels("x"),s=i.getPixels("y");e.translate(o,s),e.scale(1/t,1/r||t),e.translate(-o,-s)}applyToPoint(e){const{x:t,y:r}=this.scale;e.applyTransform([t||0,0,0,r||0,0,0])}constructor(e,t,r){this.type="scale";const n=yu.parseScale(t);0!==n.x&&0!==n.y||(n.x=iu,n.y=iu),this.scale=n,this.originX=r[0],this.originY=r[1]}}class _u{apply(e){const{originX:t,originY:r,matrix:n}=this,i=t.getPixels("x"),o=r.getPixels("y");e.translate(i,o),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.translate(-i,-o)}unapply(e){const{originX:t,originY:r,matrix:n}=this,i=n[0],o=n[2],s=n[4],a=n[1],l=n[3],c=n[5],u=0,d=0,h=1,f=1/(i*(l*h-c*d)-o*(a*h-c*u)+s*(a*d-l*u)),p=t.getPixels("x"),g=r.getPixels("y");e.translate(p,g),e.transform(f*(l*h-c*d),f*(c*u-a*h),f*(s*d-o*h),f*(i*h-s*u),f*(o*c-s*l),f*(s*a-i*c)),e.translate(-p,-g)}applyToPoint(e){e.applyTransform(this.matrix)}constructor(e,t,r){this.type="matrix",this.matrix=jc(t),this.originX=r[0],this.originY=r[1]}}class Ou extends _u{constructor(e,t,r){super(e,t,r),this.type="skew",this.angle=new gu(e,"angle",t)}}class Mu extends Ou{constructor(e,t,r){super(e,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class zu extends Ou{constructor(e,t,r){super(e,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function Ru(e){return Hc(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Bu(e){const[t="",r=""]=e.split("(");return[t.trim(),r.trim().replace(")","")]}class Iu{static fromElement(e,t){const r=t.getStyle("transform",!1,!0);if(r.hasValue()){const[n,i=n]=t.getStyle("transform-origin",!1,!0).split();if(n&&i){const t=[n,i];return new Iu(e,r.getString(),t)}}return null}apply(e){this.transforms.forEach((t=>t.apply(e)))}unapply(e){this.transforms.forEach((t=>t.unapply(e)))}applyToPoint(e){this.transforms.forEach((t=>t.applyToPoint(e)))}constructor(e,t,r){this.document=e,this.transforms=[];const n=Ru(t);n.forEach((e=>{if("none"===e)return;const[t,n]=Bu(e),i=Iu.transformTypes[t];i&&this.transforms.push(new i(this.document,n,r))}))}}Iu.transformTypes={translate:Tu,rotate:Pu,scale:Eu,matrix:_u,skewX:Mu,skewY:zu};class Nu{getAttribute(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=this.attributes[e];if(!r&&t){const t=new gu(this.document,e,"");return this.attributes[e]=t,t}return r||gu.empty(this.document)}getHrefAttribute(){let e;for(const t in this.attributes)if("href"===t||t.endsWith(":href")){e=this.attributes[t];break}return e||gu.empty(this.document)}getStyle(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.styles[e];if(n)return n;const i=this.getAttribute(e);if(i.hasValue())return this.styles[e]=i,i;if(!r){const{parent:t}=this;if(t){const r=t.getStyle(e);if(r.hasValue())return r}}if(t){const t=new gu(this.document,e,"");return this.styles[e]=t,t}return gu.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){const t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){const t=this.getStyle("filter").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){const t=Iu.fromElement(this.document,this);t&&t.apply(e);const r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){const t=r.getDefinition();t&&t.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach((t=>{t.render(e)}))}addChild(e){const t=e instanceof Nu?e:this.document.createElement(e);t.parent=this,Nu.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t;const{node:r}=this;if("function"===typeof r.matches)return r.matches(e);const n=null===(t=r.getAttribute)||void 0===t?void 0:t.call(r,"class");return!(!n||""===n)&&n.split(" ").some((t=>".".concat(t)===e))}addStylesFromStyleDefinition(){const{styles:e,stylesSpecificity:t}=this.document;let r;for(const n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){const i=e[n],o=t[n];if(i)for(const e in i){let t=this.stylesSpecificity[e];"undefined"===typeof t&&(t="000"),o&&o>=t&&(r=i[e],r&&(this.styles[e]=r),this.stylesSpecificity[e]=o)}}}removeStyles(e,t){const r=t.reduce(((t,r)=>{const n=e.getStyle(r);if(!n.hasValue())return t;const i=n.getString();return n.setValue(""),[...t,[r,i]]}),[]);return r}restoreStyles(e,t){t.forEach((t=>{let[r,n]=t;e.getStyle(r,!0).setValue(n)}))}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}constructor(e,t,r=!1){if(this.document=e,this.node=t,this.captureTextNodes=r,this.type="",this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!t||1!==t.nodeType)return;if(Array.from(t.attributes).forEach((t=>{const r=Gc(t.nodeName);this.attributes[r]=new gu(e,r,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){const t=this.getAttribute("style").getString().split(";").map((e=>e.trim()));t.forEach((t=>{if(!t)return;const[r,n]=t.split(":").map((e=>e.trim()));r&&(this.styles[r]=new gu(e,r,n))}))}const{definitions:n}=e,i=this.getAttribute("id");i.hasValue()&&(n[i.getString()]||(n[i.getString()]=this)),Array.from(t.childNodes).forEach((t=>{if(1===t.nodeType)this.addChild(t);else if(r&&(3===t.nodeType||4===t.nodeType)){const r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}}))}}Nu.ignoreChildTypes=["title"];class Lu extends Nu{constructor(e,t,r){super(e,t,r)}}function Fu(e){const t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Du(e){return"undefined"===typeof process?e:e.trim().split(",").map(Fu).join(",")}function Hu(e){if(!e)return"";const t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Wu(e){if(!e)return"";const t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class Vu{static parse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",n="",i="",o="",s="";const a=Hc(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return a.forEach((e=>{switch(!0){case!l.fontStyle&&Vu.styles.includes(e):"inherit"!==e&&(r=e),l.fontStyle=!0;break;case!l.fontVariant&&Vu.variants.includes(e):"inherit"!==e&&(n=e),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&Vu.weights.includes(e):"inherit"!==e&&(i=e),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:"inherit"!==e&&(o=e.split("/")[0]||""),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:"inherit"!==e&&(s+=e)}})),new Vu(r,n,i,o,s,t)}toString(){return[Hu(this.fontStyle),this.fontVariant,Wu(this.fontWeight),this.fontSize,Du(this.fontFamily)].join(" ").trim()}constructor(e,t,r,n,i,o){const s=o?"string"===typeof o?Vu.parse(o):o:{};this.fontFamily=i||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}}Vu.styles="normal|italic|oblique|inherit",Vu.variants="normal|small-caps|inherit",Vu.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Uu{get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){"undefined"!==typeof e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),"undefined"!==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}addX(e){this.addPoint(e,0)}addY(e){this.addPoint(0,e)}addBoundingBox(e){if(!e)return;const{x1:t,y1:r,x2:n,y2:i}=e;this.addPoint(t,r),this.addPoint(n,i)}sumCubic(e,t,r,n,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*i}bezierCurveAdd(e,t,r,n,i){const o=6*t-12*r+6*n,s=-3*t+9*r-9*n+3*i,a=3*r-3*t;if(0===s){if(0===o)return;const s=-a/o;return void(01&&void 0!==arguments[1]&&arguments[1];if(!t){const t=this.getStyle("fill"),r=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),i=this.getStyle("stroke-opacity");if(t.isUrlDefinition()){const n=t.getFillStyleDefinition(this,r);n&&(e.fillStyle=n)}else if(t.hasValue()){"currentColor"===t.getString()&&t.setValue(this.getStyle("color").getColor());const r=t.getColor();"inherit"!==r&&(e.fillStyle="none"===r?"rgba(0,0,0,0)":r)}if(r.hasValue()){const t=new gu(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=t}if(n.isUrlDefinition()){const t=n.getFillStyleDefinition(this,i);t&&(e.strokeStyle=t)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());const t=n.getString();"inherit"!==t&&(e.strokeStyle="none"===t?"rgba(0,0,0,0)":t)}if(i.hasValue()){const t=new gu(this.document,"stroke",e.strokeStyle).addOpacity(i).getString();e.strokeStyle=t}const o=this.getStyle("stroke-width");if(o.hasValue()){const t=o.getPixels();e.lineWidth=t||iu}const s=this.getStyle("stroke-linecap"),a=this.getStyle("stroke-linejoin"),l=this.getStyle("stroke-miterlimit"),c=this.getStyle("stroke-dasharray"),u=this.getStyle("stroke-dashoffset");if(s.hasValue()&&(e.lineCap=s.getString()),a.hasValue()&&(e.lineJoin=a.getString()),l.hasValue()&&(e.miterLimit=l.getNumber()),c.hasValue()&&"none"!==c.getString()){const t=Uc(c.getString());"undefined"!==typeof e.setLineDash?e.setLineDash(t):"undefined"!==typeof e.webkitLineDash?e.webkitLineDash=t:"undefined"===typeof e.mozDash||1===t.length&&0===t[0]||(e.mozDash=t);const r=u.getPixels();"undefined"!==typeof e.lineDashOffset?e.lineDashOffset=r:"undefined"!==typeof e.webkitLineDashOffset?e.webkitLineDashOffset=r:"undefined"!==typeof e.mozDashOffset&&(e.mozDashOffset=r)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof e.font){const t=this.getStyle("font"),r=this.getStyle("font-style"),n=this.getStyle("font-variant"),i=this.getStyle("font-weight"),o=this.getStyle("font-size"),s=this.getStyle("font-family"),a=new Vu(r.getString(),n.getString(),i.getString(),o.hasValue()?"".concat(o.getPixels(!0),"px"):"",s.getString(),Vu.parse(t.getString(),e.font));r.setValue(a.fontStyle),n.setValue(a.fontVariant),i.setValue(a.fontWeight),o.setValue(a.fontSize),s.setValue(a.fontFamily),e.font=a.toString(),o.isPixels()&&(this.document.emSize=o.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}constructor(...e){super(...e),this.modifiedEmSizeStack=!1}}class Zu extends ju{setContext(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(e,t);const r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);let t=null;return this.children.forEach(((r,n)=>{const i=this.getChildBoundingBox(e,this,this,n);t?t.addBoundingBox(i):t=i})),t}getFontSize(){const{document:e,parent:t}=this,r=Vu.parse(e.ctx.font).fontSize,n=t.getStyle("font-size").getNumber(r);return n}getTElementBoundingBox(e){const t=this.getFontSize();return new Uu(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,r){const n=t[r];let i;if(e.isArabic){var o;const s=t.length,a=t[r-1],l=t[r+1];let c="isolated";(0===r||" "===a)&&r0&&" "!==a&&r0&&" "!==a&&(r===s-1||" "===l)&&(c="initial"),i=(null===(o=e.arabicGlyphs[n])||void 0===o?void 0:o[c])||e.glyphs[n]}else i=e.glyphs[n];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){const t=e||this.node,r=Array.from(t.parentNode.childNodes),n=r.indexOf(t),i=r.length-1;let o=Hc(t.textContent||"");return 0===n&&(o=Wc(o)),n===i&&(o=Vc(o)),o}renderChildren(e){if("text"!==this.type)return void this.renderTElementChildren(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach(((t,r)=>{this.renderChild(e,this,this,r)}));const{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){const{document:t,parent:r}=this,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i){const{unitsPerEm:o}=i.fontFace,s=Vu.parse(t.ctx.font),a=r.getStyle("font-size").getNumber(s.fontSize),l=r.getStyle("font-style").getString(s.fontStyle),c=a/o,u=i.isRTL?n.split("").reverse().join(""):n,d=Uc(r.getAttribute("dx").getString()),h=u.length;for(let t=0;t=this.leafTexts.length)return;const e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),r=!1;let n=0;n="start"===t&&!r||"end"===t&&r?e.x-this.minX:"end"===t&&!r||"start"===t&&r?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(let i=this.textChunkStart;i{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,r,n){const i=r.children[n];i.children.length>0?i.children.forEach(((r,n)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,n)})):this.adjustChildCoordinates(e,t,r,n)}adjustChildCoordinates(e,t,r,n){const i=r.children[n];if("function"!==typeof i.measureText)return i;e.save(),i.setContext(e,!0);const o=i.getAttribute("x"),s=i.getAttribute("y"),a=i.getAttribute("dx"),l=i.getAttribute("dy"),c=i.getStyle("font-family").getDefinition(),u=Boolean(null===c||void 0===c?void 0:c.isRTL);0===n&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),a.hasValue()||a.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));const d=i.measureText(e);return u&&(t.x-=d),o.hasValue()?(t.applyAnchoring(),i.x=o.getPixels("x"),a.hasValue()&&(i.x+=a.getPixels("x"))):(a.hasValue()&&(t.x+=a.getPixels("x")),i.x=t.x),t.x=i.x,u||(t.x+=d),s.hasValue()?(i.y=s.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+d),t.maxX=Math.max(t.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,r,n){const i=r.children[n];if("function"!==typeof i.getBoundingBox)return null;const o=i.getBoundingBox(e);return o&&i.children.forEach(((r,n)=>{const s=t.getChildBoundingBox(e,t,i,n);o.addBoundingBox(s)})),o}renderChild(e,t,r,n){const i=r.children[n];i.render(e),i.children.forEach(((r,n)=>{t.renderChild(e,t,i,n)}))}measureText(e){const{measureCache:t}=this;if(~t)return t;const r=this.getText(),n=this.measureTargetText(e,r);return this.measureCache=n,n}measureTargetText(e,t){if(!t.length)return 0;const{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){const e=this.getFontSize(),i=n.isRTL?t.split("").reverse().join(""):t,o=Uc(r.getAttribute("dx").getString()),s=i.length;let a=0;for(let t=0;t0?"":this.getTextFromNode()}}class Xu extends Gu{constructor(...e){super(...e),this.type="textNode"}}class Yu extends Pc{reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new yu(0,0),this.control=new yu(0,0),this.current=new yu(0,0),this.points=[],this.angles=[]}isEnd(){const{i:e,commands:t}=this;return e>=t.length-1}next(){const e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";const r=new yu(this.command[e],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(e,t){const r=this.getPoint(e,t);return this.control=r,r}getAsCurrentPoint(e,t){const r=this.getPoint(e,t);return this.current=r,r}getReflectedControlPoint(){const e=this.previousCommand.type;if(e!==Pc.CURVE_TO&&e!==Pc.SMOOTH_CURVE_TO&&e!==Pc.QUAD_TO&&e!==Pc.SMOOTH_QUAD_TO)return this.current;const{current:{x:t,y:r},control:{x:n,y:i}}=this,o=new yu(2*t-n,2*r-i);return o}makeAbsolute(e){if(this.command.relative){const{x:t,y:r}=this.current;e.x+=t,e.y+=r}return e}addMarker(e,t,r){const{points:n,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){const{angles:e}=this,t=e.length;for(let r=0;r[e,r[t]]));return n}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);const t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());const r=this.getMarkers();if(r){const t=r.length-1,n=this.getStyle("marker-start"),i=this.getStyle("marker-mid"),o=this.getStyle("marker-end");if(n.isUrlDefinition()){const t=n.getDefinition(),[i,o]=r[0];t.render(e,i,o)}if(i.isUrlDefinition()){const n=i.getDefinition();for(let i=1;i1&&(n*=Math.sqrt(d),i*=Math.sqrt(d));let h=(s===a?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(u.y,2)-Math.pow(i,2)*Math.pow(u.x,2))/(Math.pow(n,2)*Math.pow(u.y,2)+Math.pow(i,2)*Math.pow(u.x,2)));isNaN(h)&&(h=0);const f=new yu(h*n*u.y/i,h*-i*u.x/n),p=new yu((t.x+c.x)/2+Math.cos(l)*f.x-Math.sin(l)*f.y,(t.y+c.y)/2+Math.sin(l)*f.x+Math.cos(l)*f.y),g=au([1,0],[(u.x-f.x)/n,(u.y-f.y)/i]),m=[(u.x-f.x)/n,(u.y-f.y)/i],v=[(-u.x-f.x)/n,(-u.y-f.y)/i];let y=au(m,v);return su(m,v)<=-1&&(y=Math.PI),su(m,v)>=1&&(y=0),{currentPoint:c,rX:n,rY:i,sweepFlag:a,xAxisRotation:l,centp:p,a1:g,ad:y}}pathA(e,t){const{pathParser:r}=this,{currentPoint:n,rX:i,rY:o,sweepFlag:s,xAxisRotation:a,centp:l,a1:c,ad:u}=$u.pathA(r),d=1-s?1:-1,h=c+d*(u/2),f=new yu(l.x+i*Math.cos(h),l.y+o*Math.sin(h));if(r.addMarkerAngle(f,h-d*Math.PI/2),r.addMarkerAngle(n,h-d*Math.PI),t.addPoint(n.x,n.y),e&&!isNaN(c)&&!isNaN(u)){const t=i>o?i:o,r=i>o?1:i/o,n=i>o?o/i:1;e.translate(l.x,l.y),e.rotate(a),e.scale(r,n),e.arc(0,0,t,c,c+u,Boolean(1-s)),e.scale(1/r,1/n),e.rotate(-a),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){$u.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}constructor(e,t,r){super(e,t,r),this.type="path",this.pathParser=new Yu(this.getAttribute("d").getString())}}class qu extends ju{setContext(e){var t;const{document:r}=this,{screen:n,window:i}=r,o=e.canvas;if(n.setDefaults(e),"style"in o&&"undefined"!==typeof e.font&&i&&"undefined"!==typeof i.getComputedStyle){e.font=i.getComputedStyle(o).getPropertyValue("font");const t=new gu(r,"fontSize",Vu.parse(e.font).fontSize);t.hasValue()&&(r.rootEmSize=t.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);let{width:s,height:a}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");const l=this.getAttribute("refX"),c=this.getAttribute("refY"),u=this.getAttribute("viewBox"),d=u.hasValue()?Uc(u.getString()):null,h=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden");let f=0,p=0,g=0,m=0;d&&(f=d[0],p=d[1]),this.root||(s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=f,m=p,f=0,p=0)),n.viewPort.setCurrent(s,a),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(s=d[2],a=d[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:s,height:n.viewPort.height,desiredHeight:a,minX:f,minY:p,refX:l.getValue(),refY:c.getValue(),clip:h,clipX:g,clipY:m}),d&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(s,a))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),a=n.getNumber(0),l=i.getNumber(0);if(r)if("string"===typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{const e=this.getAttribute("preserveAspectRatio");e.hasValue()&&e.setValue(e.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(e),i.setValue(t),o.hasValue()||o.setValue("0 0 ".concat(a||e," ").concat(l||t)),s.hasValue()){const r=this.getStyle("width"),n=this.getStyle("height");r.hasValue()&&r.setValue("".concat(e,"px")),n.hasValue()&&n.setValue("".concat(t,"px"))}}constructor(...e){super(...e),this.type="svg",this.root=!1}}class Qu extends $u{path(e){const t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry");let a=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=a),s.hasValue()&&!o.hasValue()&&(a=l),a=Math.min(a,n/2),l=Math.min(l,i/2),e){const o=(Math.sqrt(2)-1)/3*4;e.beginPath(),i>0&&n>0&&(e.moveTo(t+a,r),e.lineTo(t+n-a,r),e.bezierCurveTo(t+n-a+o*a,r,t+n,r+l-o*l,t+n,r+l),e.lineTo(t+n,r+i-l),e.bezierCurveTo(t+n,r+i-l+o*l,t+n-a+o*a,r+i,t+n-a,r+i),e.lineTo(t+a,r+i),e.bezierCurveTo(t+a-o*a,r+i,t,r+i-l+o*l,t,r+i-l),e.lineTo(t,r+l),e.bezierCurveTo(t,r+l-o*l,t+a-o*a,r,t+a,r),e.closePath())}return new Uu(t,r,t+n,r+i)}getMarkers(){return null}constructor(...e){super(...e),this.type="rect"}}class Ju extends $u{path(e){const t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(t,r,n,0,2*Math.PI,!1),e.closePath()),new Uu(t-n,r-n,t+n,r+n)}getMarkers(){return null}constructor(...e){super(...e),this.type="circle"}}class Ku extends $u{path(e){const t=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&r>0&&n>0&&(e.beginPath(),e.moveTo(i+r,o),e.bezierCurveTo(i+r,o+t*n,i+t*r,o+n,i,o+n),e.bezierCurveTo(i-t*r,o+n,i-r,o+t*n,i-r,o),e.bezierCurveTo(i-r,o-t*n,i-t*r,o-n,i,o-n),e.bezierCurveTo(i+t*r,o-n,i+r,o-t*n,i+r,o),e.closePath()),new Uu(i-r,o-n,i+r,o+n)}getMarkers(){return null}constructor(...e){super(...e),this.type="ellipse"}}class ed extends $u{getPoints(){return[new yu(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new yu(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){const[{x:t,y:r},{x:n,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,r),e.lineTo(n,i)),new Uu(t,r,n,i)}getMarkers(){const[e,t]=this.getPoints(),r=e.angleTo(t);return[[e,r],[t,r]]}constructor(...e){super(...e),this.type="line"}}class td extends $u{path(e){const{points:t}=this,[{x:r,y:n}]=t,i=new Uu(r,n);return e&&(e.beginPath(),e.moveTo(r,n)),t.forEach((t=>{let{x:r,y:n}=t;i.addPoint(r,n),e&&e.lineTo(r,n)})),i}getMarkers(){const{points:e}=this,t=e.length-1,r=[];return e.forEach(((n,i)=>{i!==t&&r.push([n,n.angleTo(e[i+1])])})),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}constructor(e,t,r){super(e,t,r),this.type="polyline",this.points=[],this.points=yu.parsePath(this.getAttribute("points").getString())}}class rd extends td{path(e){const t=super.path(e),[{x:r,y:n}]=this.points;return e&&(e.lineTo(r,n),e.closePath()),t}constructor(...e){super(...e),this.type="polygon"}}class nd extends Nu{createPattern(e,t,r){const n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new qu(this.document,null);o.attributes.viewBox=new gu(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new gu(this.document,"width","".concat(n,"px")),o.attributes.height=new gu(this.document,"height","".concat(i,"px")),o.attributes.transform=new gu(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;const s=this.document.createCanvas(n,i),a=s.getContext("2d"),l=this.getAttribute("x"),c=this.getAttribute("y");l.hasValue()&&c.hasValue()&&a.translate(l.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(let d=-1;d<=1;d++)for(let e=-1;e<=1;e++)a.save(),o.attributes.x=new gu(this.document,"x",d*s.width),o.attributes.y=new gu(this.document,"y",e*s.height),o.render(a),a.restore();const u=e.createPattern(s,"repeat");return u}constructor(...e){super(...e),this.type="pattern"}}class id extends Nu{render(e,t,r){if(!t)return;const{x:n,y:i}=t,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(n,i),"auto"===o&&e.rotate(r),"strokeWidth"===s&&e.scale(e.lineWidth,e.lineWidth),e.save();const a=new qu(this.document);a.type=this.type,a.attributes.viewBox=new gu(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new gu(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new gu(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new gu(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new gu(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new gu(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new gu(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new gu(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(e),e.restore(),"strokeWidth"===s&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===o&&e.rotate(-r),e.translate(-n,-i)}constructor(...e){super(...e),this.type="marker"}}class od extends Nu{render(){}constructor(...e){super(...e),this.type="defs"}}class sd extends ju{getBoundingBox(e){const t=new Uu;return this.children.forEach((r=>{t.addBoundingBox(r.getBoundingBox(e))})),t}constructor(...e){super(...e),this.type="g"}}class ad extends Nu{getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,r){let n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));const{stops:i}=n,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach((e=>{o.addColorStop(e.offset,this.addParentOpacity(r,e.color))})),this.getAttribute("gradientTransform").hasValue()){const{document:e}=this,{MAX_VIRTUAL_PIXELS:t}=Cu,{viewPort:r}=e.screen,n=r.getRoot(),i=new Qu(e);i.attributes.x=new gu(e,"x",-t/3),i.attributes.y=new gu(e,"y",-t/3),i.attributes.width=new gu(e,"width",t),i.attributes.height=new gu(e,"height",t);const s=new sd(e);s.attributes.transform=new gu(e,"transform",this.getAttribute("gradientTransform").getValue()),s.children=[i];const a=new qu(e);a.attributes.x=new gu(e,"x",0),a.attributes.y=new gu(e,"y",0),a.attributes.width=new gu(e,"width",n.width),a.attributes.height=new gu(e,"height",n.height),a.children=[s];const l=e.createCanvas(n.width,n.height),c=l.getContext("2d");return c.fillStyle=o,a.render(c),c.createPattern(l,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach((t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())}))}addParentOpacity(e,t){if(e.hasValue()){const r=new gu(this.document,"color",t);return r.addOpacity(e).getColor()}return t}constructor(e,t,r){super(e,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];const{stops:n,children:i}=this;i.forEach((e=>{"stop"===e.type&&n.push(e)}))}}class ld extends ad{getGradient(e,t){const r="objectBoundingBox"===this.getGradientUnits(),n=r?t.getBoundingBox(e):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));const i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&o===a?null:e.createLinearGradient(i,o,s,a)}constructor(e,t,r){super(e,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}}class cd extends ad{getGradient(e,t){const r="objectBoundingBox"===this.getGradientUnits(),n=t.getBoundingBox(e);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");const i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y");let s=i,a=o;this.getAttribute("fx").hasValue()&&(s=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));const l=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,a,c,i,o,l)}constructor(e,t,r){super(e,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}}class ud extends Nu{constructor(e,t,r){super(e,t,r),this.type="stop";const n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity");let o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=n,this.color=o.getColor()}}class dd extends Nu{getProperty(){const e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){const{initialUnits:e}=this,{progress:t,from:r,to:n}=this.getProgress();let i=r.getNumber()+(n.getNumber()-r.getNumber())*t;return"%"===e&&(i*=100),"".concat(i).concat(e)}update(e){const{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){const e=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==e||this.frozen){if("remove"===e&&!this.removed)return this.removed=!0,t&&r&&r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t&&r&&(t.animationFrozen=!0,t.animationFrozenValue=r.getString());return!1}this.duration+=e;let n=!1;if(this.begin{const n=i[r];return t+(n-t)*e})).join(" ");return o}constructor(...e){super(...e),this.type="animateTransform"}}class pd extends Nu{constructor(e,t,r){super(e,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class gd extends $u{constructor(e,t,r){super(e,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class md extends gd{constructor(...e){super(...e),this.type="missing-glyph",this.horizAdvX=0}}class vd extends Nu{render(){}constructor(e,t,r){super(e,t,r),this.type="font",this.isArabic=!1,this.glyphs={},this.arabicGlyphs={},this.isRTL=!1,this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();const{definitions:n}=e,{children:i}=this;for(const o of i)if(o instanceof pd){this.fontFace=o;const e=o.getStyle("font-family");e.hasValue()&&(n[e.getString()]=this)}else if(o instanceof md)this.missingGlyph=o;else if(o instanceof gd)if(o.arabicForm){this.isRTL=!0,this.isArabic=!0;const e=this.arabicGlyphs[o.unicode];"undefined"===typeof e?this.arabicGlyphs[o.unicode]={[o.arabicForm]:o}:e[o.arabicForm]=o}else this.glyphs[o.unicode]=o}}class yd extends Zu{getText(){const e=this.getHrefAttribute().getDefinition();if(e){const t=e.children[0];if(t)return t.getText()}return""}constructor(...e){super(...e),this.type="tref"}}class bd extends Zu{getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);const{document:t,x:r,y:n}=this,{mouse:i}=t.screen,o=new gu(t,"fontSize",Vu.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Uu(r,n-o.getPixels("y"),r+this.measureText(e),n))}else if(this.children.length>0){const t=new sd(this.document);t.children=this.children,t.parent=this,t.render(e)}}onClick(){const{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){const e=this.document.ctx;e.canvas.style.cursor="pointer"}constructor(e,t,r){super(e,t,r),this.type="a";const{childNodes:n}=t,i=n[0],o=n.length>0&&Array.from(n).every((e=>3===e.nodeType));this.hasText=o,this.text=o?this.getTextFromNode(i):""}}class xd extends Zu{getText(){return this.text}path(e){const{dataArray:t}=this;e&&e.beginPath(),t.forEach((t=>{let{type:r,points:n}=t;switch(r){case Yu.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case Yu.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case Yu.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case Yu.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case Yu.ARC:{const[t,r,i,o,s,a,l,c]=n,u=i>o?i:o,d=i>o?1:i/o,h=i>o?o/i:1;e&&(e.translate(t,r),e.rotate(l),e.scale(d,h),e.arc(0,0,u,s,s+a,Boolean(1-c)),e.scale(1/d,1/h),e.rotate(-l),e.translate(-t,-r));break}case Yu.CLOSE_PATH:e&&e.closePath();break}}))}renderChildren(e){this.setTextData(e),e.save();const t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,i=e.fillStyle;"underline"===t&&e.beginPath(),n.forEach(((n,i)=>{const{p0:o,p1:s,rotation:a,text:l}=n;e.save(),e.translate(o.x,o.y),e.rotate(a),e.fillStyle&&e.fillText(l,0,0),e.strokeStyle&&e.strokeText(l,0,0),e.restore(),"underline"===t&&(0===i&&e.moveTo(o.x,o.y+r/8),e.lineTo(s.x,s.y+r/5))})),"underline"===t&&(e.lineWidth=r/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,r,n,i,o,s,a,l){let c=o,u=this.measureText(e,a);" "===a&&"justify"===t&&r-1&&(c+=this.getLetterSpacingAt(l));const d=this.textHeight/20,h=this.getEquidistantPointOnPath(c,d,0),f=this.getEquidistantPointOnPath(c+u,d,0),p={p0:h,p1:f},g=h&&f?Math.atan2(f.y-h.y,f.x-h.x):0;if(s){const e=Math.cos(Math.PI/2+g)*s,t=Math.cos(-g)*s;p.p0={...h,x:h.x+e,y:h.y+t},p.p1={...f,x:f.x+e,y:f.y+t}}return c+=u,{offset:c,segment:p,rotation:g}}measureText(e,t){const{measuresCache:r}=this,n=t||this.getText();if(r.has(n))return r.get(n);const i=this.measureTargetText(e,n);return r.set(n,i),i}setTextData(e){if(this.glyphInfo)return;const t=this.getText(),r=t.split(""),n=t.split(" ").length-1,i=this.parent.getAttribute("dx").split().map((e=>e.getPixels("x"))),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),a=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing");let c=0;a.hasValue()&&"inherit"!==a.getValue()?a.hasValue()&&"initial"!==a.getValue()&&"unset"!==a.getValue()&&(c=a.getPixels()):c=l.getPixels();const u=[],d=t.length;this.letterSpacingCache=u;for(let y=0;y0===r?0:e+t||0),0),f=this.measureText(e),p=Math.max(f+h,0);this.textWidth=f,this.textHeight=this.getFontSize(),this.glyphInfo=[];const g=this.getPathLength(),m=this.getStyle("startOffset").getNumber(0)*g;let v=0;"middle"!==s&&"center"!==s||(v=-p/2),"end"!==s&&"right"!==s||(v=-p),v+=m,r.forEach(((t,i)=>{const{offset:a,segment:l,rotation:c}=this.findSegmentToFitChar(e,s,p,g,n,v,o,t,i);v=a,l.p0&&l.p1&&this.glyphInfo.push({text:r[i],p0:l.p0,p1:l.p1,rotation:c})}))}parsePathData(e){if(this.pathLength=-1,!e)return[];const t=[],{pathParser:r}=e;r.reset();while(!r.isEnd()){const{current:e}=r,n=e?e.x:0,i=e?e.y:0,o=r.next();let s=o.type,a=[];switch(o.type){case Yu.MOVE_TO:this.pathM(r,a);break;case Yu.LINE_TO:s=this.pathL(r,a);break;case Yu.HORIZ_LINE_TO:s=this.pathH(r,a);break;case Yu.VERT_LINE_TO:s=this.pathV(r,a);break;case Yu.CURVE_TO:this.pathC(r,a);break;case Yu.SMOOTH_CURVE_TO:s=this.pathS(r,a);break;case Yu.QUAD_TO:this.pathQ(r,a);break;case Yu.SMOOTH_QUAD_TO:s=this.pathT(r,a);break;case Yu.ARC:a=this.pathA(r);break;case Yu.CLOSE_PATH:$u.pathZ(r);break}o.type!==Yu.CLOSE_PATH?t.push({type:s,points:a,start:{x:n,y:i},pathLength:this.calcLength(n,i,s,a)}):t.push({type:Yu.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){const{x:r,y:n}=$u.pathM(e).point;t.push(r,n)}pathL(e,t){const{x:r,y:n}=$u.pathL(e).point;return t.push(r,n),Yu.LINE_TO}pathH(e,t){const{x:r,y:n}=$u.pathH(e).point;return t.push(r,n),Yu.LINE_TO}pathV(e,t){const{x:r,y:n}=$u.pathV(e).point;return t.push(r,n),Yu.LINE_TO}pathC(e,t){const{point:r,controlPoint:n,currentPoint:i}=$u.pathC(e);t.push(r.x,r.y,n.x,n.y,i.x,i.y)}pathS(e,t){const{point:r,controlPoint:n,currentPoint:i}=$u.pathS(e);return t.push(r.x,r.y,n.x,n.y,i.x,i.y),Yu.CURVE_TO}pathQ(e,t){const{controlPoint:r,currentPoint:n}=$u.pathQ(e);t.push(r.x,r.y,n.x,n.y)}pathT(e,t){const{controlPoint:r,currentPoint:n}=$u.pathT(e);return t.push(r.x,r.y,n.x,n.y),Yu.QUAD_TO}pathA(e){let{rX:t,rY:r,sweepFlag:n,xAxisRotation:i,centp:o,a1:s,ad:a}=$u.pathA(e);return 0===n&&a>0&&(a-=2*Math.PI),1===n&&a<0&&(a+=2*Math.PI),[o.x,o.y,t,r,s,a,i,n]}calcLength(e,t,r,n){let i=0,o=null,s=null,a=0;switch(r){case Yu.LINE_TO:return this.getLineLength(e,t,n[0],n[1]);case Yu.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),a=.01;a<=1;a+=.01)s=this.getPointOnCubicBezier(a,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case Yu.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,e,t,n[0],n[1],n[2],n[3]),a=.01;a<=1;a+=.01)s=this.getPointOnQuadraticBezier(a,e,t,n[0],n[1],n[2],n[3]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case Yu.ARC:{i=0;const e=n[4],t=n[5],r=n[4]+t;let l=Math.PI/180;if(Math.abs(e-r)r;a-=l)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],a,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(a=e+l;a5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r;const a=(i-r)/(n-t+iu);let l=Math.sqrt(e*e/(1+a*a));nt)return null;const{dataArray:i}=this;for(const o of i){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5=0&&i>s)break;n=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],i,o.points[6]);break}case Yu.CURVE_TO:i=t/o.pathLength,i>1&&(i=1),n=this.getPointOnCubicBezier(i,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case Yu.QUAD_TO:i=t/o.pathLength,i>1&&(i=1),n=this.getPointOnQuadraticBezier(i,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(n)return n;break}return null}getLineLength(e,t,r,n){return Math.sqrt((r-e)*(r-e)+(n-t)*(n-t))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((e,t)=>t.pathLength>0?e+t.pathLength:e),0)),this.pathLength}getPointOnCubicBezier(e,t,r,n,i,o,s,a,l){const c=a*lu(e)+o*cu(e)+n*uu(e)+t*du(e),u=l*lu(e)+s*cu(e)+i*uu(e)+r*du(e);return{x:c,y:u}}getPointOnQuadraticBezier(e,t,r,n,i,o,s){const a=o*hu(e)+n*fu(e)+t*pu(e),l=s*hu(e)+i*fu(e)+r*pu(e);return{x:a,y:l}}getPointOnEllipticalArc(e,t,r,n,i,o){const s=Math.cos(o),a=Math.sin(o),l={x:r*Math.cos(i),y:n*Math.sin(i)};return{x:e+(l.x*s-l.y*a),y:t+(l.x*a+l.y*s)}}buildEquidistantCache(e,t){const r=this.getPathLength(),n=t||.25,i=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};let e=0;for(let t=0;t<=r;t+=n){const r=this.getPointOnPath(t),o=this.getPointOnPath(t+n);r&&o&&(e+=this.getLineLength(r.x,r.y,o.x,o.y),e>=i&&(this.equidistantCache.points.push({x:r.x,y:r.y,distance:t}),e-=i))}}}getEquidistantPointOnPath(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;const n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}constructor(e,t,r){super(e,t,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);const n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}}const wd=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Cd extends ju{async loadImage(e){try{const t=await this.document.createImage(e);this.image=t}catch(t){console.error('Error while loading image "'.concat(e,'":'),t)}this.loaded=!0}async loadSvg(e){const t=wd.exec(e);if(t){const e=t[5];e&&("base64"===t[4]?this.image=atob(e):this.image=decodeURIComponent(e))}else try{const t=await this.document.fetch(e),r=await t.text();this.image=r}catch(r){console.error('Error while loading image "'.concat(e,'":'),r)}this.loaded=!0}renderChildren(e){const{document:t,image:r,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(n&&r&&s&&a){if(e.save(),e.translate(i,o),"string"===typeof r){const n=t.canvg.forkString(e,r,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:a}),{documentElement:i}=n.document;i&&(i.parent=this),n.render()}else t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:r.width,height:a,desiredHeight:r.height}),this.loaded&&("complete"in r&&!r.complete||e.drawImage(r,0,0));e.restore()}}getBoundingBox(){const e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Uu(e,t,e+r,t+n)}constructor(e,t,r){super(e,t,r),this.type="image",this.loaded=!1;const n=this.getHrefAttribute().getString();if(!n)return;const i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);e.images.push(this),i?this.loadSvg(n):this.loadImage(n)}}class Sd extends ju{render(e){}constructor(...e){super(...e),this.type="symbol"}}class Ad{async load(e,t){try{const{document:r}=this,n=await r.canvg.parser.load(t),i=n.getElementsByTagName("font");Array.from(i).forEach((t=>{const n=r.createElement(t);r.definitions[e]=n}))}catch(r){console.error('Error while loading font "'.concat(t,'":'),r)}this.loaded=!0}constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}}class kd extends Nu{constructor(e,t,r){super(e,t,r),this.type="style";const n=Hc(Array.from(t.childNodes).map((e=>e.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=n.split("}");i.forEach((t=>{const r=t.trim();if(!r)return;const n=r.split("{"),i=n[0].split(","),o=n[1].split(";");i.forEach((t=>{const r=t.trim();if(!r)return;const n=e.styles[r]||{};if(o.forEach((t=>{const r=t.indexOf(":"),i=t.substr(0,r).trim(),o=t.substr(r+1,t.length-r).trim();i&&o&&(n[i]=new gu(e,i,o))})),e.styles[r]=n,e.stylesSpecificity[r]=nu(r),"@font-face"===r){const t=n["font-family"].getString().replace(/"|'/g,""),r=n.src.getString().split(",");r.forEach((r=>{if(r.indexOf('format("svg")')>0){const n=Xc(r);n&&new Ad(e).load(t,n)}}))}}))}))}}kd.parseExternalUrl=Xc;class Td extends ju{setContext(e){super.setContext(e);const t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){const{element:t}=this;t&&t.path(e)}renderChildren(e){const{document:t,element:r}=this;if(r){let n=r;if("symbol"===r.type&&(n=new qu(t),n.attributes.viewBox=new gu(t,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new gu(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new gu(t,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new gu(t,"opacity",this.calculateOpacity())),"svg"===n.type){const e=this.getStyle("width",!1,!0),r=this.getStyle("height",!1,!0);e.hasValue()&&(n.attributes.width=new gu(t,"width",e.getString())),r.hasValue()&&(n.attributes.height=new gu(t,"height",r.getString()))}const i=n.parent;n.parent=this,n.render(e),n.parent=i}}getBoundingBox(e){const{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){const{document:e,element:t}=this;return t?Iu.fromElement(e,t):null}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}constructor(...e){super(...e),this.type="use"}}function Pd(e,t,r,n,i,o){return e[r*n*4+4*t+o]}function Ed(e,t,r,n,i,o,s){e[r*n*4+4*t+o]=s}function _d(e,t,r){const n=e[t];return n*r}function Od(e,t,r,n){return t+Math.cos(e)*r+Math.sin(e)*n}class Md extends Nu{apply(e,t,r,n,i){const{includeOpacity:o,matrix:s}=this,a=e.getImageData(0,0,n,i);for(let l=0;l{t.addBoundingBox(r.getBoundingBox(e))})),n=Math.floor(t.x1),i=Math.floor(t.y1),o=Math.floor(t.width),s=Math.floor(t.height)}const a=this.removeStyles(t,zd.ignoreStyles),l=r.createCanvas(n+o,i+s),c=l.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new Md(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,n+o,i+s);const u=r.createCanvas(n+o,i+s),d=u.getContext("2d");r.screen.setDefaults(d),t.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=c.createPattern(l,"no-repeat"),d.fillRect(0,0,n+o,i+s),e.fillStyle=d.createPattern(u,"no-repeat"),e.fillRect(0,0,n+o,i+s),this.restoreStyles(t,a)}render(e){}constructor(...e){super(...e),this.type="mask"}}zd.ignoreStyles=["mask","transform","clip-path"];const Rd=()=>{};class Bd extends Nu{apply(e){const{document:t}=this,r=Reflect.getPrototypeOf(e),{beginPath:n,closePath:i}=e;r&&(r.beginPath=Rd,r.closePath=Rd),Reflect.apply(n,e,[]),this.children.forEach((n=>{if(!("path"in n))return;let o="elementTransform"in n?n.elementTransform():null;o||(o=Iu.fromElement(t,n)),o&&o.apply(e),n.path(e),r&&(r.closePath=i),o&&o.unapply(e)})),Reflect.apply(i,e,[]),e.clip(),r&&(r.beginPath=n,r.closePath=i)}render(e){}constructor(...e){super(...e),this.type="clipPath"}}class Id extends Nu{apply(e,t){const{document:r,children:n}=this,i="getBoundingBox"in t?t.getBoundingBox(e):null;if(!i)return;let o=0,s=0;n.forEach((e=>{const t=e.extraFilterDistance||0;o=Math.max(o,t),s=Math.max(s,t)}));const a=Math.floor(i.width),l=Math.floor(i.height),c=a+2*o,u=l+2*s;if(c<1||u<1)return;const d=Math.floor(i.x),h=Math.floor(i.y),f=this.removeStyles(t,Id.ignoreStyles),p=r.createCanvas(c,u),g=p.getContext("2d");r.screen.setDefaults(g),g.translate(-d+o,-h+s),t.render(g),n.forEach((e=>{"function"===typeof e.apply&&e.apply(g,0,0,c,u)})),e.drawImage(p,0,0,c,u,d-o,h-s,c,u),this.restoreStyles(t,f)}render(e){}constructor(...e){super(...e),this.type="filter"}}Id.ignoreStyles=["filter","transform","clip-path"];class Nd extends Nu{apply(e,t,r,n,i){}constructor(e,t,r){super(e,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}}class Ld extends Nu{apply(e,t,r,n,i){}constructor(...e){super(...e),this.type="feMorphology"}}class Fd extends Nu{apply(e,t,r,n,i){}constructor(...e){super(...e),this.type="feComposite"}}class Dd extends Nu{apply(e,t,r,n,i){const{document:o,blurRadius:s}=this,a=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),a&&(l.style.display="none",a.appendChild(l)),Bc(l,t,r,n,i,s),a&&a.removeChild(l)}constructor(e,t,r){super(e,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}}class Hd extends Nu{constructor(...e){super(...e),this.type="title"}}class Wd extends Nu{constructor(...e){super(...e),this.type="desc"}}const Vd={svg:qu,rect:Qu,circle:Ju,ellipse:Ku,line:ed,polyline:td,polygon:rd,path:$u,pattern:nd,marker:id,defs:od,linearGradient:ld,radialGradient:cd,stop:ud,animate:dd,animateColor:hd,animateTransform:fd,font:vd,"font-face":pd,"missing-glyph":md,glyph:gd,text:Zu,tspan:Gu,tref:yd,a:bd,textPath:xd,image:Cd,g:sd,symbol:Sd,style:kd,use:Td,mask:zd,clipPath:Bd,filter:Id,feDropShadow:Nd,feMorphology:Ld,feComposite:Fd,feColorMatrix:Md,feGaussianBlur:Dd,title:Hd,desc:Wd};function Ud(e,t){const r=document.createElement("canvas");return r.width=e,r.height=t,r}async function jd(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=document.createElement("img");return t&&(r.crossOrigin="Anonymous"),new Promise(((t,n)=>{r.onload=()=>{t(r)},r.onerror=(e,t,r,i,o)=>{n(o)},r.src=e}))}const Zd=12;class Gd{bindCreateImage(e,t){return"boolean"===typeof t?(r,n)=>e(r,"boolean"===typeof n?n:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){const{emSizeStack:e}=this;return e[e.length-1]||Zd}set emSize(e){const{emSizeStack:t}=this;t.push(e)}popEmSize(){const{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((e=>e.loaded))}isFontsLoaded(){return this.fonts.every((e=>e.loaded))}createDocumentElement(e){const t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(e){const t=e.nodeName.replace(/^[^:]+:/,""),r=Gd.elementTypes[t];return r?new r(this,e):new Lu(this,e)}createTextNode(e){return new Xu(this,e)}setViewBox(e){this.screen.setViewBox({document:this,...e})}constructor(e,{rootEmSize:t=Zd,emSize:r=Zd,createCanvas:n=Gd.createCanvas,createImage:i=Gd.createImage,anonymousCrossOrigin:o}={}){this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(i,o),this.screen.wait((()=>this.isImagesLoaded())),this.screen.wait((()=>this.isFontsLoaded()))}}Gd.createCanvas=Ud,Gd.createImage=jd,Gd.elementTypes=Vd;class Xd{static async from(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=new ku(r),i=await n.parse(t);return new Xd(e,i,r)}static fromString(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=new ku(r),i=n.parseFromString(t);return new Xd(e,i,r)}fork(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Xd.from(e,t,{...this.options,...r})}forkString(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Xd.fromString(e,t,{...this.options,...r})}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}async render(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.start({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0,...e}),await this.ready(),this.stop()}start(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{documentElement:t,screen:r,options:n}=this;r.start(t,{enableRedraw:!0,...n,...e})}stop(){this.screen.stop()}resize(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,r)}constructor(e,t,r={}){this.parser=new ku(r),this.screen=new Cu(e,r),this.options=r;const n=new Gd(this,r),i=n.createDocumentElement(t);this.document=n,this.documentElement=i}}window.OffscreenCanvas||(window.OffscreenCanvas=class{constructor(e,t){return(0,oc.Z)(this,"canvas",void 0),this.canvas=document.createElement("canvas"),this.canvas.width=e,this.canvas.height=t,this.canvas.convertToBlob=()=>new Promise((e=>{this.canvas.toBlob(e)})),this.canvas}});const Yd=Dc.offscreen(),$d=e=>new Promise((t=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.readAsDataURL(e)}));let qd=null;const Qd=async(e,t,r)=>{qd||(qd=new OffscreenCanvas(t,r));const n=qd.getContext("2d");let i=await Xd.fromString(n,e,Yd);i.resize(2*t,2*r,"xMidYMid meet"),await i.start();const o=await Kd(qd);return n.clearRect(0,0,qd.width,qd.height),await i.stop(),i=null,o},Jd=e=>new Promise((t=>{e.toBlob(t)})),Kd=async e=>{const t=document.createElement("canvas");t.width=e.width+400,t.height=e.height+100;const r=t.getContext("2d"),n=e.getContext("2d"),i=n.getImageData(0,0,e.width,e.height);r.clearRect(0,0,t.width,t.height),r.putImageData(i,200,50);const o=await Jd(t),s=await $d(o);return r.clearRect(0,0,t.width,t.height),s};function eh(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,n.lA)(e)}var th=(0,n.aZ)({name:"cloudPractice",setup(){const e=(0,Ql.Z)(),{goToCloud:t,isPracticeShow:h,practiceUrl:f,handlePracticeClose:p}=Jl(),g=[{name:"主页",url:"/"},{name:"云练习"}],m=(0,i.iH)(),v=(0,i.qj)({finshed:!1,reshing:!1,page:1,rows:20,iframeSrc:"",listActive:0,firstTreeId:null,categoryId:null,categoryName:"",categoryList:[],levelList:[],levelId:null,typeList:[],typeId:-1,subjectList:[],subjectId:-1,list:[],searchStatus:!1,queryStr:"",partList:[],partNames:[],selectedPartName:"",selectedTrack:"",selectedPartIndex:0,partXmlIndex:0,musicPdfUrl:"",imgs:[],categoryShow:!1,playState:"pause",showPlayer:!1}),y=(0,i.iH)([]),b=(0,n.Fl)((()=>{const t=v.list[v.listActive]||{};let r={};if("GYM"===e.roles){const e=t.background?.[0],n="CONCERT"===e?.musicSheetType?e?.metronomeUrl:e?.metronomeMp3Url||e?.mp3Url;r={id:e?.id,name:e?.examSongName,background:t?.background,xmlUrl:e?.xmlUrl,musicSheetType:e?.musicSheetType,audioFileUrl:n,isComberRender:e?.isScoreRender,musicPdfUrl:e?.musicPdfUrl}}else if("GYT"===e.roles)r={id:t?.id,name:t?.musicSheetName,background:t?.background,xmlUrl:t?.xmlFileUrl,musicSheetType:t?.musicSheetType,audioFileUrl:t?.audioFileUrl,titleImg:t?.titleImg,isComberRender:"1"===t?.musicSubjectId,musicPdfUrl:t?.musicPdfUrl};else if("KLX"===e.roles){const e=t.background?.[0];r={id:t?.id,name:t?.musicSheetName,background:t?.background,xmlUrl:t?.xmlFileUrl,musicSheetType:t?.musicSheetType,audioFileUrl:e?.audioFileUrl,titleImg:t?.titleImg,isComberRender:!1,musicPdfUrl:t?.musicPdfUrl}}return r})),x=(0,n.Fl)((()=>{let e=!0,t=!0;return 0===v.listActive&&(e=!1),v.listActive>=v.list.length-1&&(t=!1),{prev:e,next:t}})),w=(0,i.iH)(!1),C=(0,i.iH)(!1),S=(0,i.iH)(!1),A=(0,i.XI)([]),k=async()=>{C.value=!0,await(0,_l.Jj)(Ml).then((async e=>{C.value=!1,200===e.code&&(A.value=e.data||[],await F())}))},T=async()=>{C.value=!0,await(0,_l.Jj)(zl,{categoriesId:v.categoryId||v.firstTreeId}).then((t=>{if(C.value=!1,200===t.code){const r=t.data||[];v.subjectList=r.map((e=>({label:e.name,value:e.id}))),v.subjectList.unshift({label:"全部声部",value:-1});const n=e.userInfo.subjectId;if(n){const e=n.split(",")[0];v.subjectList.forEach((t=>{t.value===Number(e)&&(v.subjectId=Number(e))}))}}}))},P=async()=>{C.value=!0;const e={page:v.page,rows:v.rows,subjectId:-1===v.subjectId?null:v.subjectId,categoriesId:-1===v.typeId?v.levelId:v.typeId,search:v.queryStr};await(0,_l.Jj)(Rl,e).then((e=>{if(C.value=!1,200===e.code){const t=e.data||[];v.reshing&&(v.list=[],v.reshing=!1),Array.isArray(t.rows)?(v.list=[...v.list,...t.rows],v.finshed=v.page>=t.totalPage):v.finshed=!0}else v.finshed=!0}))},E=async()=>{C.value=!0,await(0,_l.Jj)(Bl,{enable:!0,page:1,parentId:0,rows:10}).then((e=>{C.value=!1,200===e.code&&(A.value=e.data||[],F())}))},_=async()=>{C.value=!0,await(0,_l.Jj)(Il,{enableFlag:!0,page:1,rows:100}).then((t=>{if(C.value=!1,200===t.code){const r=t.data||[];v.subjectList=r.map((e=>({label:e.name,value:e.id}))),v.subjectList.unshift({label:"全部声部",value:-1});const n=e.userInfo.subjectId;if(n){const e=n.split(",")[0];v.subjectList.forEach((t=>{t.value===Number(e)&&(v.subjectId=Number(e))}))}}}))},O=async()=>{C.value=!0;const e={page:v.page,rows:v.rows,musicSubject:-1===v.subjectId?null:v.subjectId,musicSheetCategoriesId:-1===v.typeId?v.levelId:v.typeId,keyword:v.queryStr,detailFlag:!0,status:1};await(0,_l.Jj)(Nl,e).then((e=>{if(C.value=!1,200===e.code){const t=e.data||{};v.reshing&&(v.list=[],v.reshing=!1),Array.isArray(t.rows)?(t.rows.forEach((e=>{e.name=e.musicSheetName})),v.list=[...v.list,...t.rows],v.finshed=v.page>=t.pages):v.finshed=!0}else v.finshed=!0}))},M=async()=>{C.value=!0,await(0,_l.Jj)(Ll,{enable:!0,page:1,parentId:0,rows:10}).then((e=>{if(C.value=!1,200===e.code){const t=e.data||[],r=[];t.forEach((e=>{if(e.musicNum>0){const t=!!e.subjectCounts,n=!!e.musicCounts,i=!!e.ensembleCounts,o=[];t&&o.push({label:"基础云练",value:"SUBJECT"}),n&&o.push({label:"独奏云练",value:"MUSIC"}),i&&o.push({label:"合奏云练",value:"ENSEMBLE"}),r.push({value:e.id,label:e.name,musicSheetCategoriesList:o})}})),v.categoryList=r,F()}})).catch((()=>{v.finshed=!0}))},z=async()=>{C.value=!0,await(0,_l.Jj)(Fl,{queryType:"list",page:1,rows:100}).then((t=>{if(C.value=!1,200===t.code){const r=t.data?.rows||[];v.subjectList=r.map((e=>({label:e.name,value:e.id}))),v.subjectList.unshift({label:"全部声部",value:-1});const n=e.userInfo.subjectId;if(n){const e=n.split(",")[0];v.subjectList.forEach((t=>{t.value===Number(e)&&(v.subjectId=Number(e))}))}}}))},R=async()=>{if(!v.categoryId)return;C.value=!0;const e={page:v.page,rows:v.rows,albumId:v.categoryId,subjectId:-1===v.subjectId?null:v.subjectId,subjectType:v.firstTreeId,level:-1===v.levelId?null:v.levelId,type:-1===v.typeId?null:v.typeId,keyword:v.queryStr};await(0,_l.Jj)(Dl,e).then((e=>{if(C.value=!1,200===e.code){const t=e.data||{};v.reshing&&(v.list=[],v.reshing=!1),Array.isArray(t.rows)?(t.rows.forEach((e=>{e.name=e.musicSheetName})),v.list=[...v.list,...t.rows],v.finshed=v.page>=t.totalPage):v.finshed=!0}else v.finshed=!0}))},B=async()=>{if(!v.categoryId||!v.firstTreeId)return;C.value=!0;const e={tenantAlbumId:v.categoryId,subjectType:v.firstTreeId};await(0,_l.Jj)(Hl,e).then((e=>{if(C.value=!1,200===e.code){const t=e.data||{};t.levelList&&t.levelList.length>0?(v.levelList=t.levelList.map((e=>({label:e.value,value:e.id}))),v.levelList.unshift({label:"全部级别",value:-1}),v.levelId=-1):v.levelList=[],t.typeList&&t.typeList.length>0?(v.typeList=t.typeList.map((e=>({label:e.value,value:e.id}))),v.typeList.unshift({label:"全部类型",value:-1}),v.typeId=-1):v.typeList=[]}}))},I=async()=>{"GYM"===e.roles?await k():"GYT"===e.roles?await E():"KLX"===e.roles&&await M()},N=async()=>{"GYM"===e.roles?await T():"GYT"===e.roles?await _():"KLX"===e.roles&&await z()},L=async()=>{"GYM"===e.roles?await P():"GYT"===e.roles?await O():"KLX"===e.roles&&await R()},F=async t=>{"GYM"===e.roles?await D(t):"GYT"===e.roles?H(t):"KLX"===e.roles&&await W(t)},D=async e=>{if(A.value.length>0&&!["category","level","type"].includes(e)){let t=[];"first"===e&&v.firstTreeId?t=A.value.find((e=>e.id===v.firstTreeId))?.sysMusicScoreCategoriesList||[]:(v.firstTreeId=A.value[0]?.id,t=A.value[0]?.sysMusicScoreCategoriesList||[]),v.categoryList=t.map((e=>({label:e.name,value:e.id,sysMusicScoreCategoriesList:e.sysMusicScoreCategoriesList||[]}))),v.categoryId=null,v.categoryName=null,v.levelId=null,v.typeId=-1}if(v.categoryList.length>0&&!["level","type"].includes(e)){let t=[];"category"===e&&v.categoryId?t=v.categoryList.find((e=>e.value===v.categoryId))?.sysMusicScoreCategoriesList||[]:(v.categoryId=v.categoryList[0]?.value,v.categoryName=v.categoryList[0]?.label,t=v.categoryList[0]?.sysMusicScoreCategoriesList||[]),v.levelList=t.map((e=>({label:e.name,value:e.id,sysMusicScoreCategoriesList:e.sysMusicScoreCategoriesList||[]}))),await T()}if(v.levelList.length>0){let t=[];"level"===e&&v.levelId?(t=v.levelList.find((e=>e.value===v.levelId))?.sysMusicScoreCategoriesList,v.typeId=-1):(v.levelId=v.levelList[0]?.value,t=v.levelList[0]?.sysMusicScoreCategoriesList||[]),v.typeList=t.map((e=>({label:e.name,value:e.id}))),v.typeList.unshift({label:"全部",value:-1})}},H=e=>{if(A.value.length>0&&!["level","type"].includes(e)){let t=[];"first"===e&&v.firstTreeId?t=A.value.find((e=>e.id===v.firstTreeId))?.musicSheetCategoriesList||[]:(v.firstTreeId=A.value[0]?.id,t=A.value[0]?.musicSheetCategoriesList||[]),v.levelList=t.map((e=>({label:e.name,value:e.id,musicSheetCategoriesList:e.musicSheetCategoriesList||[]}))),v.levelId=null,v.typeId=-1}if(v.levelList.length>0){let t=[];"level"===e&&v.levelId?t=v.levelList.find((e=>e.value===v.levelId))?.musicSheetCategoriesList:(v.levelId=v.levelList[0]?.value,t=v.levelList[0]?.musicSheetCategoriesList||[]),v.typeList=t.map((e=>({label:e.name,value:e.id}))),v.typeList.unshift({label:"全部",value:-1}),v.typeId=-1}},W=async e=>{if(v.categoryList.length>0&&!["level","type","first"].includes(e)){let t=[];"category"===e&&v.categoryId?t=v.categoryList.find((e=>e.value===v.categoryId))?.musicSheetCategoriesList||[]:(v.categoryId=v.categoryList[0]?.value,v.categoryName=v.categoryList[0]?.label,t=v.categoryList[0]?.musicSheetCategoriesList||[]),A.value=t.map((e=>({id:e.value,name:e.label})))}A.value.length>0&&!["level","type"].includes(e)&&("first"===e&&v.firstTreeId||(v.firstTreeId=A.value[0]?.id),await B(),v.levelId=-1,v.typeId=-1)},V=async()=>{await I(),await N(),await L(),await Z(),$()};V();const U=()=>{C.value||v.finshed||(v.page=v.page+1,L())},j=async()=>{C.value||(v.listActive=0,v.showPlayer=!1,v.playState="pause",v.partNames=[],v.partList=[],v.selectedPartName="",v.selectedTrack="",v.selectedPartIndex=0,v.partXmlIndex=0,document.querySelector(".musicList-container")?.scroll(0,0),v.page=1,v.finshed=!1,v.reshing=!0,v.list=[],await L())},Z=async()=>{const t=b.value;if("SINGLE"===t.musicSheetType)return C.value=!1,void(v.musicPdfUrl=t.musicPdfUrl);v.partNames=await G(t.xmlUrl);let r=t.background||[];r=r.filter((e=>!e.track?.toLocaleUpperCase()?.includes("COMMON"))),y.value=r.map(((t,r)=>{const n=Ul(t.track),i=v.partNames.findIndex((e=>e===t.track));let o="";return"GYM"===e.roles?o=t.soundMusicPdfUrl:("GYT"===e.roles||"KLX"===e.roles)&&(o=t.musicPdfUrl),{label:t.track+(n?`(${n})`:""),instrumentName:n,track:t.track,musicPdfUrl:o,xmlIndex:i,value:r}}));const n=y.value[v.selectedPartIndex];v.selectedPartName=n?.instrumentName,v.selectedTrack=n?.track,v.partXmlIndex=n?.xmlIndex,t.isComberRender?v.musicPdfUrl=t?.musicPdfUrl||"":v.musicPdfUrl=n?.musicPdfUrl||""},G=async e=>{const t=[];try{const r=await Wl.Z.get(e),n=(new DOMParser).parseFromString(r.data,"text/xml");for(const e of n.getElementsByTagName("part-name"))e.textContent&&t.push(e.textContent)}catch(r){}return t.filter((e=>"COMMON"!==e.toLocaleUpperCase()))||[]},X=async()=>{const e=document.getElementById("staffIframeRef");if(e&&e.contentWindow.renderXml){S.value=!0;const t=await Wl.Z.get(b.value.xmlUrl),r=Yl(t.data),n=jl(r.parsedXML);if(b.value.isComberRender)e.contentWindow.renderXml(n,v.partXmlIndex,b.value.isComberRender);else{const t=Zl(n,v.partXmlIndex);e.contentWindow.renderXml(t,v.partXmlIndex,b.value.isComberRender)}}},Y=async()=>{const e=document.getElementById("staffIframeRef");if(e&&e.contentWindow.renderXml){S.value=!0;const t=await Wl.Z.get(b.value.xmlUrl),r=Yl(t.data),n=jl(r.parsedXML);if(b.value.isComberRender)e.contentWindow.renderXml(n,v.partXmlIndex,b.value.isComberRender);else{const t=Zl(n,v.partXmlIndex);e.contentWindow.renderXml(t,0,b.value.isComberRender)}}},$=async()=>{try{v.musicPdfUrl?v.iframeSrc="/pdf/web/viewer.html?file="+encodeURIComponent(v.musicPdfUrl)+"&t="+Date.now():v.iframeSrc="/osmd/index.html"}catch(e){}},q=e=>{"play"===e?v.playState="play":"pause"===e?v.playState="pause":"pre"===e?v.list[v.listActive-1]&&Q(v.list[v.listActive-1]):"next"===e&&v.list[v.listActive+1]&&Q(v.list[v.listActive+1])},Q=e=>{const t=v.list.findIndex((t=>t.id===e.id));t>-1&&(v.listActive===t?v.playState="play"===v.playState?"pause":"play":v.playState="play",v.showPlayer=!0,v.listActive=t)},J=async e=>{const t=document.createElement("img");t.setAttribute("crossOrigin","anonymous"),e&&"string"==typeof e&&e.includes("data:image")?t.src=e:t.src=e+"?t="+ +new Date,await new Promise((e=>t.onload=e));const r=document.createElement("canvas");r.width=t.width,r.height=t.height;const n=r.getContext("2d");return n.fillStyle="rgb(255, 255, 255)",n.fillStyle="#fff",n.fillRect(0,0,t.width,t.height),n.drawImage(t,0,0),r},K=async(e,t="image/png")=>{const r=await J(e);return new Promise(((e,n)=>{r.toBlob((t=>{t?e(t):n(new Error("转换失败"))}),t)}))},ee=(e,t)=>{const r=new(ic()),n=[];for(const i in e){const t=K(e[i].url).then((t=>{r.file(e[i].name,t,{binary:!0})}));n.push(t)}Promise.all(n).then((()=>{r.generateAsync({type:"blob"}).then((e=>{(0,rc.saveAs)(e,t?t+".zip":`文件夹${Date.now()}.zip`)}))})).catch((()=>{a.z8.error("下载失败")})),w.value=!1},te=async e=>{if("musicStaffRender"===e.data?.api){try{const t=e.data.osmdImg,r=[];for(let e=0;e{await Z(),b.value?.id&&(v.musicPdfUrl?(S.value=!0,$()):-1!==v.iframeSrc.indexOf("pdf/web")?$():Y())},ne=()=>{if(w.value||S.value)return;const e=b.value.name+("CONCERT"===b.value.musicSheetType&&v.selectedPartName||v.selectedTrack?`(${v.selectedPartName||v.selectedTrack})`:"");w.value=!0,v.musicPdfUrl?fetch(v.musicPdfUrl).then((e=>e.blob())).then((t=>{(0,rc.saveAs)(t,e),w.value=!1})).catch((()=>{a.z8.error("下载失败"),w.value=!1})):ee(v.imgs,e)};return(0,n.bv)((()=>{const e=new IntersectionObserver((e=>{e[0].intersectionRatio>0&&U()}));e.observe(m.value),window.addEventListener("message",te)})),()=>{let e;return(0,n.Wm)(s.Z,{navs:g},{default:()=>[(0,n.Wm)("div",{class:o.cloudPractice},[(0,n.Wm)("div",{class:o.leftContainer},[(0,n.Wm)("div",{class:o.details},[A.value.length>0&&(0,n.Wm)(l.Mr,{class:o.leftSection},eh(e=A.value.map((e=>(0,n.Wm)("div",{class:[o.leftSection_item,e.id===v.firstTreeId&&o.leftSection_item__active],onClick:async()=>{C.value||(v.firstTreeId=e.id,await F("first"),await j(),re())}},[e.name]))))?e:{default:()=>[e]}),(0,n.Wm)("div",{class:[o.musicList,"musicList-container"]},[(0,n.Wm)("div",{class:o.searchHeader},[v.categoryList.length>1&&(0,n.Wm)("div",{class:[o.categorySection]},[(0,n.Wm)(Mi,{placement:"bottom-start",disabled:C.value,options:v.categoryList,value:v.categoryId,"onUpdate:value":[e=>v.categoryId=e,async e=>{const t=v.categoryList.find((t=>t.value===e));t&&(v.categoryName=t.label,v.categoryId=t.value,await F("category"),await j(),re())}],"onUpdate:show":e=>{v.categoryShow=e},trigger:"click",class:"PopSelect"},{default:()=>[(0,n.Wm)("span",{class:[o.iconTagName,v.categoryShow&&o.show]},[(0,n.Wm)("span",null,[v.categoryName])])]})]),(0,n.Wm)("div",{class:o.searchMore},[(0,n.Wm)("div",{class:o.searchSection},[(0,n.Wm)(u.Z,{clearable:!1,popperClass:"classTypePopper",modelValue:v.subjectId,"onUpdate:modelValue":e=>v.subjectId=e,height:42,options:v.subjectList,placeholder:"全部声部",onChange:async()=>{await j(),re()}},null),v.levelList.length?(0,n.Wm)(u.Z,{clearable:!1,popperClass:"classTypePopper",modelValue:v.levelId,"onUpdate:modelValue":e=>v.levelId=e,height:42,options:v.levelList,placeholder:"级别",onChange:async()=>{F("level"),await j(),re()}},null):null,v.typeList.length>0?(0,n.Wm)(u.Z,{clearable:!1,popperClass:"classTypePopper",modelValue:v.typeId,"onUpdate:modelValue":e=>v.typeId=e,height:42,options:v.typeList,propsOpt:{labelField:"name",valueField:"id"},placeholder:"分类",onChange:async()=>{await j(),re()}},null):null]),(0,n.Wm)("div",{class:[o.btnSearch,v.searchStatus&&o.btnSearchActive],onClick:()=>v.searchStatus=!v.searchStatus},null)]),v.searchStatus&&(0,n.Wm)(d.Z,{class:"queryCp",modelValue:v.queryStr,"onUpdate:modelValue":e=>v.queryStr=e,height:42,placeholder:"请输入曲目关键词",onKeyup:async e=>{"Enter"!==e.code&&"Enter"!==e.key||(await j(),re())},onHandleQuery:async()=>{await j(),re()},clearable:!0},null)]),(0,n.Wm)("div",{class:[o.wrapList,!v.list.length&&!C.value&&o.wrapListEmpty]},[v.list.map(((e,t)=>(0,n.Wm)("div",{class:[o.item,t===v.listActive&&o.active],onClick:async()=>{t!==v.listActive&&(v.listActive=t,v.selectedPartIndex=0,v.partXmlIndex=0,re())}},[(0,n.Wm)("div",{class:o.itemInfo},[(0,n.Wm)("div",{class:o.img},[(0,n.Wm)(Aa,{lazy:!0,objectFit:"cover",previewDisabled:!0,src:e.titleImg||Sl,onLoad:e=>{e.target.dataset.loaded="true"}},null),(0,n.Wm)(ec,{class:[v.listActive===t&&"play"===v.playState?"":o.showPlayLoading]},null)]),(0,n.Wm)("div",{class:o.title},[(0,n.Wm)("div",{class:o.titleName},[(0,n.Wm)((0,n.up)("ellipsisScroll"),{title:e.name},null)])])]),(0,n.Wm)("div",{class:o.btnSection},[(0,n.Wm)("div",{class:o.btn,onClick:r=>{r.stopPropagation(),Q(e),v.listActive!==t&&Y()}},[v.listActive===t&&(0,n.Wm)(n.HY,null,["pause"===v.playState?"播放":"暂停",(0,n.Wm)("img",{src:"pause"===v.playState?kl:Al},null)]),v.listActive!==t&&(0,n.Wm)(n.HY,null,[(0,n.Uk)("播放"),(0,n.Wm)("img",{src:kl},null)])])])]))),!v.list.length&&!C.value&&(0,n.Wm)(c.GT,{class:o.empty,image:r(9449),description:"暂无内容"},null),(0,n.Wm)("div",{ref:m,class:[o.loadingWrap,v.finshed&&o.showLoading]},[(0,n.Wm)(Ma,{show:!0,stroke:"#FF531C"},null)])])])])]),(0,n.Wm)("div",{class:o.rightContainer},[(0,n.Wm)(Ma,{show:S.value,stroke:"#FF531C"},{default:()=>[b.value?.id?v.musicPdfUrl?(0,n.Wm)("div",{class:[o.staffImgs]},[(0,n.Wm)("iframe",{style:{width:"100%",height:"100%"},src:v.iframeSrc,onLoad:()=>{C.value=!1,S.value=!1}},null)]):(0,n.Wm)(n.HY,null,[(0,n.Wm)("div",{class:o.musicName},[b.value.name,"CONCERT"===b.value.musicSheetType&&(v.selectedPartName||v.selectedTrack?`(${v.selectedPartName||v.selectedTrack})`:"")]),(0,n.Wm)("div",{class:[o.staffImgs]},[(0,n.Wm)("iframe",{id:"staffIframeRef",style:{width:"100%",height:"100%"},src:v.iframeSrc,onLoad:X},null)])]):(0,n.Wm)("div",{class:[o.staffImgs,!C.value&&!b.value?.id&&o.staffImgsEmpty]},[!C.value&&!b.value?.id&&(0,n.Wm)(c.GT,{class:o.empty,image:r(9449),description:"暂无内容"},null)])]}),(0,n.Wm)("img",{style:{display:b.value?.id?"":"none"},class:[o.goBtn],src:Tl,onClick:()=>{q("pause"),t(b.value.id,v.partXmlIndex)}},null),(0,n.Wm)("div",{class:o.rightBtns,style:{display:b.value.id?"":"none"}},[(0,n.Wm)("div",null,[(0,n.Wm)(da,{showArrow:!1},{trigger:()=>(0,n.Wm)("img",{onClick:ne,class:[o.transBtn,(w.value||S.value)&&o.disableBtn],src:El},null),default:"下载曲谱"})]),(0,n.Wm)("div",{style:{display:"CONCERT"===b.value.musicSheetType?"":"none"}},[(0,n.Wm)(Mi,{options:y.value,placement:"bottom-end",trigger:"click",value:v.selectedPartIndex,"onUpdate:value":[e=>v.selectedPartIndex=e,async e=>{const t=y.value.find((t=>t.value===e));v.selectedPartIndex=e,v.selectedPartName=t.instrumentName,v.selectedTrack=t.track,v.partXmlIndex=t.xmlIndex,(0,n.Y3)((()=>{let e="";b.value?.isComberRender?b.value?.musicPdfUrl&&(e=b.value?.musicPdfUrl):e=t.musicPdfUrl,e?(v.musicPdfUrl=e,S.value=!0,$()):(v.musicPdfUrl="",C.value=!0,-1!==v.iframeSrc.indexOf("pdf/web")?$():Y())}))}],scrollable:!0,class:["PopSelect","PopSelectPart"]},{empty:()=>"暂无数据",default:()=>(0,n.Wm)(da,{showArrow:!1},{trigger:()=>(0,n.Wm)("img",{class:o.transBtn,src:Pl},null),default:"切换声轨"})})])])])]),0!==v.list.length&&b.value.audioFileUrl&&(0,n.Wm)(Cl,{show:v.showPlayer,playState:v.playState,songPrevNextStatus:x.value,item:b.value,onChange:e=>q(e),onShow:e=>{v.showPlayer=e}},null),(0,n.Wm)(tc.Z,{modelValue:h.value,"onUpdate:modelValue":e=>h.value=e,practiceUrl:f.value,onClose:p},null)]})}}}),rh=th},6154:function(e,t,r){var n,i,o;(function(r,s){i=[],n=s,o="function"===typeof n?n.apply(t,i):n,void 0===o||(e.exports=o)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,t,r){var a=s.URL||s.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):i(l.href)?n(e,t,r):o(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,r,s){if(r=r||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),r);else if(i(e))n(e,r,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,r);var o="application/octet-stream"===e.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=l.saveAs=l,e.exports=l}))},4730:function(e,t,r){r(7658),r(1439),r(7585),r(5315),r(4633),r(2087),function(t){e.exports=t()}((function(){return function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var l=void 0;if(!a&&l)return require(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[s]={exports:{}};t[s][0].call(u.exports,(function(e){var r=t[s][1][e];return i(r||e)}),u,u.exports,e,t,r,n)}return r[s].exports}for(var o=void 0,s=0;s>2,a=(3&t)<<4|r>>4,l=1>6:64,c=2>4,r=(15&s)<<4|(a=o.indexOf(e.charAt(c++)))>>2,n=(3&a)<<6|(l=o.indexOf(e.charAt(c++))),h[u++]=t,64!==a&&(h[u++]=r),64!==l&&(h[u++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function a(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=i,s=n+r;e^=-1;for(var a=n;a>>8^o[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=i,s=n+r;e^=-1;for(var a=n;a>>8^o[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),s=e("./stream/GenericWorker"),a=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r>>=8;return n}function i(e,t,r,i,s,u){var d,h,f=e.file,p=e.compression,g=u!==a.utf8encode,m=o.transformTo("string",u(f.name)),v=o.transformTo("string",a.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",u(y)),x=o.transformTo("string",a.utf8encode(y)),w=v.length!==f.name.length,C=x.length!==y.length,S="",A="",k="",T=f.dir,P=f.date,E={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var _=0;t&&(_|=8),g||!w&&!C||(_|=2048);var O=0,M=0;T&&(O|=16),"UNIX"===s?(M=798,O|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,T)):(M=20,O|=function(e){return 63&(e||0)}(f.dosPermissions)),d=P.getUTCHours(),d<<=6,d|=P.getUTCMinutes(),d<<=5,d|=P.getUTCSeconds()/2,h=P.getUTCFullYear()-1980,h<<=4,h|=P.getUTCMonth()+1,h<<=5,h|=P.getUTCDate(),w&&(A=n(1,1)+n(l(m),4)+v,S+="up"+n(A.length,2)+A),C&&(k=n(1,1)+n(l(b),4)+x,S+="uc"+n(k.length,2)+k);var z="";return z+="\n\0",z+=n(_,2),z+=p.magic,z+=n(d,2),z+=n(h,2),z+=n(E.crc32,4),z+=n(E.compressedSize,4),z+=n(E.uncompressedSize,4),z+=n(m.length,2),z+=n(S.length,2),{fileRecord:c.LOCAL_FILE_HEADER+z+m+S,dirRecord:c.CENTRAL_FILE_HEADER+n(M,2)+z+n(b.length,2)+"\0\0\0\0"+n(O,4)+n(i,4)+m+S+b}}var o=e("../utils"),s=e("../stream/GenericWorker"),a=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,s),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),s=e("./StringReader"),a=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new l(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),a=e("../support"),l=e("../external"),c=null;if(a.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t){return new l.Promise((function(r,i){var o=[],a=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,r){o.push(e),t&&t(r)})).on("error",(function(e){o=[],i(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,o=0;for(r=0;r>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,s=e.length,l=new Array(2*s);for(t=r=0;t>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,s),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}(t),l=t;s!==t.length&&(i.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,s),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),s=e("./external");function a(e){return e}function l(e,t){for(var r=0;r>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r>10&1023,c[n++]=56320|1023&i)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,s=i+r;e^=-1;for(var a=i;a>>8^o[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){"use strict";var n,i=e("../utils/common"),o=e("./trees"),s=e("./adler32"),a=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,h=-2,f=-1,p=4,g=2,m=8,v=9,y=286,b=30,x=19,w=2*y+1,C=15,S=3,A=258,k=A+S+1,T=42,P=113,E=1,_=2,O=3,M=4;function z(e,t){return e.msg=l[t],t}function R(e){return(e<<1)-(4e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function N(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,I(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function D(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+A,f=c[o+s-1],p=c[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(c[(r=t)+s]===p&&c[r+s-1]===f&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&ol&&0!=--i);return s<=e.lookahead?s:e.lookahead}function H(e){var t,r,n,o,l,c,u,d,h,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-k)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=o,f=void 0,f=c.avail_in,h=S)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=S&&(e.ins_h=(e.ins_h<=S)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=S&&(e.ins_h=(e.ins_h<=S&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-S,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(H(e),0===e.lookahead&&t===c)return E;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,N(e,!1),0===e.strm.avail_out))return E;if(e.strstart-e.block_start>=e.w_size-k&&(N(e,!1),0===e.strm.avail_out))return E}return e.insert=0,t===u?(N(e,!0),0===e.strm.avail_out?O:M):(e.strstart>e.block_start&&(N(e,!1),e.strm.avail_out),E)})),new U(4,4,8,4,W),new U(4,5,16,8,W),new U(4,6,32,32,W),new U(4,4,16,16,V),new U(8,16,32,32,V),new U(8,16,128,128,V),new U(8,32,128,256,V),new U(32,128,258,1024,V),new U(32,258,258,4096,V)],r.deflateInit=function(e,t){return X(e,t,m,15,8,0)},r.deflateInit2=X,r.deflateReset=G,r.deflateResetKeep=Z,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},r.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||5>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,3),i.status=P);else{var f=m+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=P,F(i,f),0!==i.strstart&&(F(i,e.adler>>>16),F(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),I(e),s=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),I(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexs&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),I(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexs&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&I(e),i.pending+2<=i.pending_buf_size&&(L(i,255&e.adler),L(i,e.adler>>8&255),e.adler=0,i.status=P)):i.status=P),0!==i.pending){if(I(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&R(t)<=R(r)&&t!==u)return z(e,-5);if(666===i.status&&0!==e.avail_in)return z(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(H(e),0===e.lookahead)){if(t===c)return E;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(N(e,!1),0===e.strm.avail_out))return E}return e.insert=0,t===u?(N(e,!0),0===e.strm.avail_out?O:M):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?E:_}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=A){if(H(e),e.lookahead<=A&&t===c)return E;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=S&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(r=o._tr_tally(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(N(e,!1),0===e.strm.avail_out))return E}return e.insert=0,t===u?(N(e,!0),0===e.strm.avail_out?O:M):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?E:_}(i,t):n[i.level].func(i,t);if(p!==O&&p!==M||(i.status=666),p===E||p===O)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===_&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(B(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),I(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(L(i,255&e.adler),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,255&e.total_in),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(F(i,e.adler>>>16),F(i,65535&e.adler)),I(e),0=r.w_size&&(0===a&&(B(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,p=r.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,H(r);r.lookahead>=S;){for(n=r.strstart,o=r.lookahead-(S-1);r.ins_h=(r.ins_h<>>=x=b>>>24,p-=x,0===(x=b>>>16&255))T[o++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=g[(65535&b)+(f&(1<>>=x,p-=x),p<15&&(f+=k[n++]<>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(f&(1<>>=x,p-=x,(x=o-s)>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,r.check=o(r.check,H,2,0),w=x=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&x)){e.msg="unknown compression method",r.mode=30;break}if(w-=4,I=8+(15&(x>>>=4)),0===r.wbits)r.wbits=I;else if(I>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<>8&1),512&r.flags&&(H[0]=255&x,H[1]=x>>>8&255,r.check=o(r.check,H,2,0)),w=x=0,r.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,x+=f[m++]<>>8&255,H[2]=x>>>16&255,H[3]=x>>>24&255,r.check=o(r.check,H,4,0)),w=x=0,r.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,x+=f[m++]<>8),512&r.flags&&(H[0]=255&x,H[1]=x>>>8&255,r.check=o(r.check,H,2,0)),w=x=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===y)break e;y--,x+=f[m++]<>>8&255,r.check=o(r.check,H,2,0)),w=x=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(y<(T=r.length)&&(T=y),T&&(r.head&&(I=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,m,T,I)),512&r.flags&&(r.check=o(r.check,f,T,m)),y-=T,m+=T,r.length-=T),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;for(T=0;I=f[m+T++],r.head&&I&&r.length<65536&&(r.head.name+=String.fromCharCode(I)),I&&T>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===y)break e;y--,x+=f[m++]<>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===y)break e;y--,x+=f[m++]<>>=1)){case 0:r.mode=14;break;case 1:if(A(r),r.mode=20,6!==t)break;x>>>=2,w-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}x>>>=2,w-=2;break;case 14:for(x>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,x+=f[m++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&x,w=x=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(T=r.length){if(y>>=5,w-=5,r.ndist=1+(31&x),x>>>=5,w-=5,r.ncode=4+(15&x),x>>>=4,w-=4,286>>=3,w-=3}for(;r.have<19;)r.lens[W[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,L={bits:r.lenbits},N=a(0,r.lens,0,19,r.lencode,0,r.work,L),r.lenbits=L.bits,N){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,M=65535&D,!((_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<>>=_,w-=_,r.lens[r.have++]=M;else{if(16===M){for(F=_+2;w>>=_,w-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}I=r.lens[r.have-1],T=3+(3&x),x>>>=2,w-=2}else if(17===M){for(F=_+3;w>>=_)),x>>>=3,w-=3}else{for(F=_+7;w>>=_)),x>>>=7,w-=7}if(r.have+T>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;T--;)r.lens[r.have++]=I}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,L={bits:r.lenbits},N=a(l,r.lens,0,r.nlen,r.lencode,0,r.work,L),r.lenbits=L.bits,N){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,L={bits:r.distbits},N=a(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,L),r.distbits=L.bits,N){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=y&&258<=b){e.next_out=v,e.avail_out=b,e.next_in=m,e.avail_in=y,r.hold=x,r.bits=w,s(e,S),v=e.next_out,p=e.output,b=e.avail_out,m=e.next_in,f=e.input,y=e.avail_in,x=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;O=(D=r.lencode[x&(1<>>16&255,M=65535&D,!((_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<>z)])>>>16&255,M=65535&D,!(z+(_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<>>=z,w-=z,r.back+=z}if(x>>>=_,w-=_,r.back+=_,r.length=M,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=12;break}if(64&O){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(F=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(D=r.distcode[x&(1<>>16&255,M=65535&D,!((_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<>z)])>>>16&255,M=65535&D,!(z+(_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<>>=z,w-=z,r.back+=z}if(x>>>=_,w-=_,r.back+=_,64&O){e.msg="invalid distance code",r.mode=30;break}r.offset=M,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(F=r.extra;w>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===b)break e;if(T=S-b,r.offset>T){if((T=r.offset-T)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}P=T>r.wnext?(T-=r.wnext,r.wsize-T):r.wnext-T,T>r.length&&(T=r.length),E=r.window}else E=p,P=v-r.offset,T=r.length;for(by?(x=L[F+d[A]],R[B+d[A]]):(x=96,0),f=1<>_)+(p-=f)]=b<<24|x<<16|w|0,0!==p;);for(f=1<>=1;if(0!==f?(z&=f-1,z+=f):z=0,A++,0==--I[S]){if(S===T)break;S=t[r+d[A]]}if(P>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,r){e.bi_valid>g-r?(e.bi_buf|=t<>g-e.bi_valid,e.bi_valid+=r-g):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function W(e,t,r){var n,i,o=new Array(p+1),s=0;for(n=1;n<=p;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=H(o[a]++,a))}}function V(e){var t;for(t=0;t>1;1<=r;r--)Z(e,o,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Z(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,Z(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r>=7;n>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t>>3,(a=e.static_len+3+7>>>3)<=s&&(s=a)):s=a=r+5,r+4<=s&&-1!==t?Q(e,t,r,n):4===e.strategy||a===s?(F(e,2+(n?1:0),3),G(e,k,T)):(F(e,4+(n?1:0),3),function(e,t,r,n){var i;for(F(e,t-257,5),F(e,r-1,5),F(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(E[r]+c+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){F(e,2,3),D(e,v,k),function(e){16===e.bi_valid?(L(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,i,o,s=1,a={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r},this.getHelpXML=function(){for(var e=new Array,n=0;n "+c.toRGB()+" -> "+c.toHex());l.appendChild(u),l.appendChild(d),a.appendChild(l)}catch(h){}return a}}},9407:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABaCAMAAAARv4GDAAAC+lBMVEUAAAD/vTr/vTf/vTjkpir/qiz8ujT9uzX/vTnnqSv+vDb/vTv/vTr/vjr/xEf/12Dkpyr/22jlqCvuri/vsDDzszH3tjP/vjr/vDj/vjr/0Uz/11f3uTTpqy3/z1Htri7/2GL/1l3/1l3/vjn/2GT/w0D/vzr8yUr/0FT/zlDoqiz/2mf/0FP/12D/3GnvsC7/1mD/1l7/12H/vTn/vjv/2mL/v0D/tjf/3GrztzT/2GL/1F3wszL/zEv/22jpqy7yszL/22n/zU//2GD/1WD/3Wr/22r/8Mj/78n6pgn/89j/9N3/8tP5ogz/89r4nRD/8tX/8dHjpij/2mb5oA7/8c7/2GP6pAr6owv/8Mr/9d/vsB3//fn+7sX/1mD+7sf125f/2GX/+e//22j/+/P3mhPjpSnkpybtrxz3mxH/12H//vv/9+b/9uP2lhf/+/X/1Fv/1V39673/9+j+7cP/+ez/0FX01ITlqCT/+vH23Jv22pP/zU73lxX01orysR7/0Vf757P114v96br33Jj12ZH967/54ab/z1LzsyH+zE73mRT12I711oj/0lj2tyj/9eH01Yb/yUf86Lb/01n/xkH65Kz+z1P/y0r/x0T8x0P7wjv9vjL97ML/+Or75a/436D325X9xD3+wDb1tST2tCH9y0r6wDn5vzX5uiz2kxn97879yUb+wTn2vDL5tyjmqSL0sh/7vC/3uy75tiX87MX857X43534mhn646f6xD/5vTL8uy365rf746n54KP23Z392Z36rT//wzvsrSL55LD8yHj5qT//xT77vzbzymbyxlroqij98NL+56n22pDusC7xti37uCnztCjxsB3+7MD8zH/94K7926L94Zb80Y78yoT00oDxwU/srSfwryH3nB796bf94pv63JH93IX93H/zzG36v2z+12r70WPyyGL5s1fyv0Xvuz/4oTX3nyvtsiToqyP4nRb5sE/5oiXvrxz51n/403f6w3P5uGL7y1Hssib2lyP81ZJGYxOFAAAAR3RSTlMAZWpn9wRzcF7TbGRSRhn68OvkqJuNfFotIwsH/r6zrnNuY2I5NSf87unh0dHMsKKSW0I6KyIUDvjz8PDr37i3ioiIVVXe3tLqSuMAAAxgSURBVFjDnNS/a+JgHMfxLl0bsuoSJUOLVbQglBYKpb0bmlIOBAeRijGTFy+RkEC2jIdDcBCy5Xb/l8tWjowtCpaD2ws33Of7xEhM44/rGxqe8vC8fPJFPNiWWLyulD7z571E5/ynUuW6KB58pKNChe9tia8Ujv5PzNeueo1GD39UtCKpsVbvqpbfm8wJfGPPeCG3F3ko8N2oBqJntE78n9znhcPdplhqdlGTPdkqXXKfKom7hllNAf1+/5Hqs1ar5lrVraOtl5MchEUYPEkD01aW2eZAegrCBeEJuVzfbJ5d9KMYOJw/q183pD7Ph3BXXZxtMm+4RwSQxGZg0Ol2ZrRjBE24MczdZJtFZjJx2P2hMFBDSioNMVgJukO4UVwxy7zlYlLXQzkSMUQ5I9tWIlcOdT12uduMeXJDFsjFPUiIBJqmb6TzfRMwXLD3C7BR3Lu51i9j0p3JICEin8RBOlVVAZMLVp65MXtZT30/yzpr4jovdEsbJ2TTMFR1MG6lGiOScV+bbvviuBOdVc6vodWYtAKYuKWmyD4TN0WuYcp02cBylmo1aYr6BDGT3txU2oqM125JW4JLLGZAqovjuJWY+A05jUjHC2HKZrutmCrIXRHr02VDzwGLTg9XaMGlHMub0zR9rW2b6lhCe7BQMdm5h8tShdjMHeNzHJivvmabBjNbD6skCY+fHSleExZvgR1gBJr/CpXY49wSFRyHSG/UUcDJZOJUsi9v0+mfXw9ZQVUx2M7IA4uEyMyfWOi7N5qRqWrvzbvfU/S3k61KY1JnI8+Cap3kGVqzKG/kjWmUtoJ3v1vv7Rv1j3E6aEkkDOMAPp+gj+AhCAu67Afo0sXRqR2FxBTE0xwEnUPZzTmEEaEXESwd0YOHURrpNksMzKEF1y5zrahL5CEi2IVtKYg97P95Z7RRdOl/0IF5nx/P+77PnN6GZgUsqVkADPrCUJ/Tp/aAac9mZpiPslIqKbJ8NxMFK2QxsQ9a8eQIlI/MhZMjpFh8L++1ssIe3dFkzQ+lJElpSQE6X23tld+LRZJOFmieHFMb7rYyCQGmEAqH3dV4Ct8pUloURahA2Rvve4TURKa1O9QclabKh/98UevpGfRYhvk17M2tIoniFqmlq/C8kJrRe1oxD4z2v5zPk/lUzpaFUAKf0cTyi3MyEVGUgM5VBZQ/QQW2zHFLeYaqBwnat4D52fDk5p7Mzc1NqOmrjbmBmkgcqECRJW7RadQ0BAEe5s679vpeSsOkoFWgc4PLEgzVaXWRW8evpql+OwQT78Luqgjy7Y+U3oK5vb0NdRKl994nlNt+qODWOV8+X9N66psdDjEv8pHCL+oTZCwGlaGRGWFVGyi334DWajUft4rfXs981e3pksOfzt5hQqVj/Y2cjyPLf18KHtrWX021B26VW6vVKj3VHOr2VAPJQck1g8Ggq9JkIRKFvrHTQfSjwNaHQCu12hq3AlQ1G8e6HolEPeG/e0xXJXYc2Ip8eu0uB67rxw1TBbrC+Vmjnb6h614z/uIxXRUswW7AQr0ZV+i60e+wVv1cpVKpA7UMXveaz4pEZgzmSAXrui6Oj8yL8oYFtA7QQRtdy0jFPeijXMIwOX16WLiMZjp9ZCM0Ho/GU4bVbbgozDZD+fg417LiDJPLTdMIUyXlYlzDM7RNKlev16tmp2s1gUZHC6hRkR3o3EDF/ifQptXtmFWAHMxqo3NmNbH/cQZySSQ0+J+gVRyqBzWa1lmnUa06aBvo/mEuFYjHAwH2fiBLn0C3CA1QFSWVO9wH2ia0WgXaBYpD5fmAk2d2T5/aPi3nqTJlAMWhAgR6SWh/J5dMBdzwt3RRs9AYMnlRo5pUKrfTJ/TSgxaayY9O+QEb0ymVKGRipIDyTl2yWXDRy3+d2UloE1EYB/A3aWqzNFJqba0oPYg9ePGgKIKgN70JgwchlM7F15w8hIJlBlsyyTgEJ4QQyEUliY1ohRprS0IxNtHErQl0cUVbl4uCu6ggiOD3vZksJnXBvxAdZ/Lz+773ZoyGnLl95sw5RI9jpfuNpD5gqajWkkgZQRO6P1Jpv7/vOKLnzgBITkKhgEauumGlqol+aLhN6+9SvKGqlUL3VyOAQqknybnb+fE7VyZVD/RfmSnk4RemHvr9A+XwCXygsNb17j3q5Plz4/nb58iGPENjN15A/8ZUWWaeH66qxsKwZ5OeE+zR97l8NXQfvhGbvHJnPJ/fQHblxxEVIh7on6H7jddHoB5kKgTNL9erucXybbB8NXTviQiIjud3kd06uqRGX9yHpaoNqjjX8l8nN6t9VMek/9yPa68u6ehusiU/PgrorDrjcfft//Xia2UVTESrWAPf5/bMqLOAjo7ntxDrKEOLWTVat1Twih8lYAIQvH2g0rrzlde+QW9UzRYZOmolezaMjp66MnkxFsNScaq1dfxgH1DKqA6sUGc/FhqLXZy8cmp0dMMe0jEP6OXJYDyXjXjhVq1r8THWioEtdLNxnuWJ3vdGs7l4cOwyoPMdpJMiOhZ8KeamcQPUv+HxCaj1ALt9Gmda3fie6Zz4UkdpJ+kybziF6NucLxYJ471alycnyh8lbzKiMVBoOBITc28RPbXB3EVarfMMvSsJviyuFRtr7XZ5UP7Qa6D4WredoHmfIN1l6Ly1lTjWUB197ZNEFQbQ1zC3m0eOQY5c+M0+7YPmVVHwvdZRusZBNq+i8wxd8MWl9EzKPdi4D78Z/5BYaZ+imZpJS3HfAkPn6arNpJez0suZTDLonxUUUMPsaV3X6KsLkPenV9in/WhG0pIizPqDyczly9TK9ZIdXAedz2TGgokFQVLisUgK1fo2n7z/8Ca1r3GfogmLFFckYSERHMtk5mkHt4MQi6mNjmXGkgn/sqBoTIXV6q/bNg1hD2ZYI3cKTE0Rlv2JJDC0zWQhhDi4NbSUWUwGE/4lQdNgAh7v8XKxdXQNqJd53OuBeWqasORPBJOLmRJdwzkA3c7Z2ujdzCKgC5KkyVJajYZxE9SW1wjDaWw9qqYlWYbmAV3M3KVtNm47oOvtUCofXEwmEv63oiIPz4nZiMfrPg3V9jc+OiqND552ez2RrG9uWFbEt6zQIA+F2tcT1n9TOy0lk1MJ/0gRVS0Oxeosur/uBTgEUSehzLiGZnHEn5hKJku0vQm6x3Rz3F5KS4uoOmdBDchzvpga8YTd7vuDgyDXZXDwvtsb9kTUmG9ODgwr4qzTn0gkF0uU7uW4boY2d3HcRkqfslJBleRQQJZ8aXUm6gl7vW738dq43W6vN5yKzqhpH1wZkiUwWaFPKd3IcV3NhGUdx5naQZ2aOgtqURS0ALBzcTGmTkeiUU8qFa4klfJEo5FpNSbGocrQsCaIRTDPTk2B2W7iuHVET7OF4zrNlDfUd4KgDIdC8AYl7kvHsllVVaeNqNNqNhtL++KKxi5RBOGdYfLU3MlxFii0Uiq31szzpamzqC4sicgePRoIyNqcJMXjvkricUma0+QAnEVSXFpA8+xUiefNazkstJJWOOyglC/B+YkRp2tZAFYOHIWEAiwyZjiACQEIf6AMpLDsdI5MQCUlntIOQFpJNavt8BtbKc8PPGOq8+NreIekDWNFjcHRSHDB649OVuezAZ6nW4GwryY12cZhrTAB/tMEU10fi0oOXEXR5OFfImuKAmJOKX50sTonPvHQewcK20htmnEATWtRHShMTDDW9W5Wy+VEUaiLKOZy2uw7F5IjExOFATTXNmHzdf87v9OCaucWClcMFUC95/zqcrm+LxdfhqDVSiQt9LK4/B1OfXXeQ3KIh9a3dKJp2dnwXckmDmLbiIMdGCo8GwEW4loxcALIkWeFoQEc50YbB9m0mjSk286xEbQDC+4lw4WCnfWeIV4CEch2aB1i7yYrpFdXbT04WSx36FOhoBO6VP1lofBpCIuEmHtsutlLVkw3TADZlp42nQUYcmnoUk3gcAhBnWzraQESe+/+7XdQFl01tWy1Ut6AUa7NAAMx1Lq1xaSblj98N7WzlTNYU2eP1ay7+KMSdogxW3s6TUhiWneSP6R5m91gm0y2lrVrNlrb28Cujbmt3bpxzdoWm6nJIO3bmv/2NRwUW3FNNlsLZFVN8NhmMzHRKHM1+XvWwWQrMMgNaQKwEss68k9pXtfF/WO61mHn/8h2O+x/F+2Obkb+e9Zvd1j+JFoc29eT/8mO3s2O1i7Lplpsk6Wr1bG5dwf5Q34CGjHxqPOxsVIAAAAASUVORK5CYII="},9449:function(e,t,r){"use strict";e.exports=r.p+"img/empty.4ca451f0.png"}}]);