879.7cd444eb.js 433 KB

1
  1. (self["webpackChunkclassroom"]=self["webpackChunkclassroom"]||[]).push([[879],{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 oh}});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<e.childNodes.length;t++){const r=e.childNodes[t];if(O(r)&&(R(r)||M(r)))return!0}return!1}function z(e){for(let t=e.childNodes.length-1;t>=0;t--){const r=e.childNodes[t];if(O(r)&&(R(r)||z(r)))return!0}return!1}function R(e){if(!I(e))return!1;try{e.focus({preventScroll:!0})}catch(uc){}return document.activeElement===e}function I(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 B(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=B(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=B(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),i<e&&(e=i)})),t.push((function(){r.callback.call(r.observer,n,r.observer)})),r.activeTargets.splice(0,r.activeTargets.length)}}));for(var r=0,n=t;r<n.length;r++){var i=n[r];i()}return e},ye=function(e){G.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(r){r.isActive()&&(me(r.target)>e?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()},Ie=function(e){return!te(e)&&!ie(e)&&"inline"===getComputedStyle(e).display},Be=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 Ie(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<e.length;r+=1)if(e[r].target===t)return r;return-1},De=function(){function e(){}return e.connect=function(e,t){var r=new Ne(e,t);Le.set(e,r)},e.observe=function(e,t,r){var n=Le.get(e),i=0===n.observationTargets.length;Fe(n.observationTargets,t)<0&&(i&&G.push(n),n.observationTargets.push(new Be(t,r&&r.box)),Re(1),ze.schedule())},e.unobserve=function(e,t){var r=Le.get(e),n=Fe(r.observationTargets,t),i=1===r.observationTargets.length;n>=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(),I=(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)})),B=(0,n.Fl)((()=>`${I.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-I.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}=I;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:B,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 It=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}),Bt=({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:It,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?Bt({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(It),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 I(e){s.value=e}function B(){var e;return null===(e=r.value)||void 0===e?void 0:e.targetRef}function N(e){f=e}(0,n.JJ)("NPopover",{getTriggerElement:B,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:I,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 Ir{constructor(e,t){this.l=e,this.min=t;const r=new Array(e+1);for(let n=0;n<e+1;++n)r[n]=0;this.ft=r}add(e,t){if(0===t)return;const{l:r,ft:n}=this;e+=1;while(e<=r)n[e]+=t,e+=Rr(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(void 0===e&&(e=this.l),e<=0)return 0;const{ft:t,min:r,l:n}=this;if(e>n)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<e))return n;if(t===n)return this.sum(t+1)<=e?t+1:n;t=n}}return t}}let Br,Nr;function Lr(){return"undefined"!==typeof document&&(void 0===Br&&(Br="matchMedia"in window&&window.matchMedia("(pointer:coarse)").matches),Br)}function Fr(){return"undefined"===typeof document?1:(void 0===Nr&&(Nr="chrome"in window?window.devicePixelRatio:1),Nr)}const Dr=(0,zr.c)(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[(0,zr.c)("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[(0,zr.c)("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var Hr=(0,n.aZ)({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},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 Ir(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(f<y)b.scrollBy(0,v);else if(f===y){const e=h.sum(f);g+e>b.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;r<e.length;r++)if(t(e[r]))return r}function wn(e){return function(t){var r=arguments.length>1&&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}},In={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"})},Bn=In,Nn={code:"en-US",formatDistance:Qr,formatLong:nn,formatRelative:an,localize:vn,match:Bn,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)(I)):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&&I()}function I(){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 B(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:B,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"),Ii=Object.assign(Object.assign({},k.Z.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),Bi=(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<o)r=t(r,e[i],i,e);return r}var ji=Ui;function Zi(e){return function(t){return null==e?void 0:e[t]}}var Gi=Zi,Xi={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Yi=Gi(Xi),$i=Yi,qi=r(5554),Qi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ji="\\u0300-\\u036f",Ki="\\ufe20-\\ufe2f",eo="\\u20d0-\\u20ff",to=Ji+Ki+eo,ro="["+to+"]",no=RegExp(ro,"g");function io(e){return e=(0,qi.Z)(e),e&&e.replace(Qi,$i).replace(no,"")}var oo=io,so=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ao(e){return e.match(so)||[]}var lo=ao,co=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function uo(e){return co.test(e)}var ho=uo,fo="\\ud800-\\udfff",po="\\u0300-\\u036f",go="\\ufe20-\\ufe2f",mo="\\u20d0-\\u20ff",vo=po+go+mo,yo="\\u2700-\\u27bf",bo="a-z\\xdf-\\xf6\\xf8-\\xff",xo="\\xac\\xb1\\xd7\\xf7",wo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Co="\\u2000-\\u206f",So=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ao="A-Z\\xc0-\\xd6\\xd8-\\xde",ko="\\ufe0e\\ufe0f",To=xo+wo+Co+So,Po="['’]",Eo="["+To+"]",_o="["+vo+"]",Oo="\\d+",Mo="["+yo+"]",zo="["+bo+"]",Ro="[^"+fo+To+Oo+yo+bo+Ao+"]",Io="\\ud83c[\\udffb-\\udfff]",Bo="(?:"+_o+"|"+Io+")",No="[^"+fo+"]",Lo="(?:\\ud83c[\\udde6-\\uddff]){2}",Fo="[\\ud800-\\udbff][\\udc00-\\udfff]",Do="["+Ao+"]",Ho="\\u200d",Wo="(?:"+zo+"|"+Ro+")",Vo="(?:"+Do+"|"+Ro+")",Uo="(?:"+Po+"(?:d|ll|m|re|s|t|ve))?",jo="(?:"+Po+"(?:D|LL|M|RE|S|T|VE))?",Zo=Bo+"?",Go="["+ko+"]?",Xo="(?:"+Ho+"(?:"+[No,Lo,Fo].join("|")+")"+Go+Zo+")*",Yo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$o="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",qo=Go+Zo+Xo,Qo="(?:"+[Mo,Lo,Fo].join("|")+")"+qo,Jo=RegExp([Do+"?"+zo+"+"+Uo+"(?="+[Eo,Do,"$"].join("|")+")",Vo+"+"+jo+"(?="+[Eo,Do+Wo,"$"].join("|")+")",Do+"?"+Wo+"+"+Uo,Do+"+"+jo,$o,Yo,Oo,Qo].join("|"),"g");function Ko(e){return e.match(Jo)||[]}var es=Ko;function ts(e,t,r){return e=(0,qi.Z)(e),t=r?void 0:t,void 0===t?ho(e)?es(e):lo(e):e.match(t)||[]}var rs=ts,ns="['’]",is=RegExp(ns,"g");function os(e){return function(t){return ji(rs(oo(t).replace(is,"")),e,"")}}var ss=os,as=ss((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),ls=as,cs=r(7874);function us(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=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+")",Is="[^"+As+"]",Bs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ns="[\\ud800-\\udbff][\\udc00-\\udfff]",Ls="\\u200d",Fs=Rs+"?",Ds="["+_s+"]?",Hs="(?:"+Ls+"(?:"+[Is,Bs,Ns].join("|")+")"+Ds+Fs+")*",Ws=Ds+Fs+Hs,Vs="(?:"+[Is+Ms+"?",Ms,Bs,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({},Ii),{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.right<window.innerWidth?-(r.width-window.innerWidth)/2:"horizontalRight"===i?Math.min((r.width-window.innerWidth)/2,y-(null!==s&&void 0!==s?s:0)):Math.max(-(r.width-window.innerWidth)/2,y-(null!==s&&void 0!==s?s:0)),c=r.height<=window.innerHeight?0:r.top>0?(r.height-window.innerHeight)/2:r.bottom<window.innerHeight?-(r.height-window.innerHeight)/2:"verticalBottom"===n?Math.min((r.height-window.innerHeight)/2,b-(null!==a&&void 0!==a?a:0)):Math.max(-(r.height-window.innerHeight)/2,b-(null!==a&&void 0!==a?a:0)),{offsetX:l,offsetY:c}}function P(e){(0,_.S)("mousemove",document,S),(0,_.S)("mouseup",document,P);const{clientX:t,clientY:r}=e;C=!1;const n=A({mouseUpClientX:t,mouseUpClientY:r,mouseDownClientX:x,mouseDownClientY:w}),i=T(n);m=i.offsetX,v=i.offsetY,G()}const E=(0,n.f3)(Bi,null);function O(e){var t,r;if(null===(r=null===(t=null===E||void 0===E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.onMousedown)||void 0===r||r.call(t,e),0!==e.button)return;const{clientX:n,clientY:i}=e;C=!0,f=n-m,g=i-v,y=m,b=v,x=n,w=i,G(),(0,_.on)("mousemove",document,S),(0,_.on)("mouseup",document,P)}function M(e){var t,r;null===(r=null===(t=null===E||void 0===E?void 0:E.previewedImgPropsRef.value)||void 0===t?void 0:t.onDblclick)||void 0===r||r.call(t,e);const n=V();I=I===n?1:n,G()}const z=1.5;let R=0,I=1,B=0;function N(){I=1,R=0}function L(){var t;N(),B=0,null===(t=e.onPrev)||void 0===t||t.call(e)}function F(){var t;N(),B=0,null===(t=e.onNext)||void 0===t||t.call(e)}function D(){B-=90,G()}function H(){B+=90,G()}function W(){const{value:e}=o;if(!e)return 1;const{innerWidth:t,innerHeight:r}=window,n=Math.max(1,e.naturalHeight/(r-ba)),i=Math.max(1,e.naturalWidth/(t-ba));return Math.max(3,2*n,2*i)}function V(){const{value:e}=o;if(!e)return 1;const{innerWidth:t,innerHeight:r}=window,n=e.naturalHeight/(r-ba),i=e.naturalWidth/(t-ba);return n<1&&i<1?1:Math.max(n,i)}function U(){const e=W();I<e&&(R+=1,I=Math.min(e,Math.pow(z,R)),G())}function j(){if(I>.5){const e=I;R-=1,I=Math.max(.5,Math.pow(z,R));const t=e-I;G(!1);const r=T();I+=t,G(!1),I-=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(${B}deg) scale(${I});`;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(){I=V(),R=Math.ceil(Math.log(I)/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(),B=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=Ii;(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},Ii);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)(Bi,{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%)"}},Ia={name:"Progress",common:rt.Z,self:Ra};var Ba=Ia,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,Ba,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:I}=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:I})},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)]:I,[(0,st.Tl)("borderRadius",u)]:B,[(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":I,"--n-icon-margin":N,"--n-border-radius":p?"initial":v||m?O:B};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(3954),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}),Il=e=>Ol.rO.axioseRquest({method:"post",url:"/api-teacher/musicSheetCategories/page",data:e}),Bl=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:"镲",Whip:"乐鞭",whip:"乐鞭"},Ul=e=>{const t=e.replace(/ /g," ").toLocaleLowerCase(),r=Object.keys(Vl);for(let n=0;n<r.length;n++){const e=r[n].replace(/ /g," ").toLocaleLowerCase();if(e===t)return Vl[r[n]]||""}for(let n=0;n<r.length;n++){const e=r[n].replace(/ /g," ").toLocaleLowerCase();if(t.includes(e))return Vl[r[n]]||""}return""};const jl=e=>{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 <note>\n <rest measure="yes"/>\n <duration>${e*n}</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>`}}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<l.length;t++){const r=l[t],n=r.parentElement?.parentElement?.parentElement;if(n){const t=a.indexOf(n);e[t]=r}}Object.values(e).forEach((e=>{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;r<t.childNodes.length;r++){const i=t.childNodes[r];if("note"===i.nodeName&&n++,i===e)break}if(0===n&&r)r.insertBefore(e,r.childNodes[0]);else if(r&&r.childNodes.length>0){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<i.length;s++){const o=i[s];if("note"===o.nodeName&&(t+=1,t===n)){r.insertBefore(e,o);break}}}}},Yl=e=>{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}#/?id=${t}&Authorization=${(0,ql.LP)()}&platform=pc&part-index=${i}&isYjt=1&isHideMusicList=true&systemType=teacher`,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=""}function a(t,r=0){const n={GYT:`${$l.PJ}?id=${t}&modelType=practice&modeType=json&part-index=${r}&Authorization=${(0,ql.LP)()}&isYjt=1&&isHideBack=false`,GYM:`${$l.bz}?t=${Date.now()}#/?id=${t}&Authorization=${(0,ql.LP)()}&part-index=${r}&isPreView=true&systemType=teacher`,KLX:`${$l.lI}?Authorization=${(0,ql.LP)()}&id=${t}&limitModel=practice&part-index=${r}&isYjt=1&client=teacher`};return n[e.roles]}return{loading:t,goToCloud:o,getPreViewCloud:a,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(1600),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;r<e.length;r++){var n=e[r];if(n.type===Pc.CLOSE_PATH)t+="z";else if(n.type===Pc.HORIZ_LINE_TO)t+=(n.relative?"h":"H")+n.x;else if(n.type===Pc.VERT_LINE_TO)t+=(n.relative?"v":"V")+n.y;else if(n.type===Pc.MOVE_TO)t+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Pc.LINE_TO)t+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Pc.CURVE_TO)t+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Pc.SMOOTH_CURVE_TO)t+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Pc.QUAD_TO)t+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Pc.SMOOTH_QUAD_TO)t+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Pc.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");t+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return t}function dc(e,t){var r=e[0],n=e[1];return[r*Math.cos(t)-n*Math.sin(t),r*Math.sin(t)+n*Math.cos(t)]}function hc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++)if("number"!=typeof e[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof e[r]+" == typeof "+e[r]);return!0}var fc=Math.PI;function pc(e,t,r){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var n=e.rX,i=e.rY,o=e.x,s=e.y;n=Math.abs(e.rX),i=Math.abs(e.rY);var a=dc([(t-o)/2,(r-s)/2],-e.xRot/180*fc),l=a[0],c=a[1],u=Math.pow(l,2)/Math.pow(n,2)+Math.pow(c,2)/Math.pow(i,2);1<u&&(n*=Math.sqrt(u),i*=Math.sqrt(u)),e.rX=n,e.rY=i;var d=Math.pow(n,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(l,2),h=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-d)/d)),f=n*c/i*h,p=-i*l/n*h,g=dc([f,p],e.xRot/180*fc);e.cX=g[0]+(t+o)/2,e.cY=g[1]+(r+s)/2,e.phi1=Math.atan2((c-p)/i,(l-f)/n),e.phi2=Math.atan2((-c-p)/i,(-l-f)/n),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*fc),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*fc),e.phi1*=180/fc,e.phi2*=180/fc}function gc(e,t,r){hc(e,t,r);var n=e*e+t*t-r*r;if(0>n)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)<i?[-c/l]:function(e,t,r){void 0===r&&(r=1e-6);var n=e*e/4-t;if(n<-r)return[];if(n<=r)return[-e/2];var i=Math.sqrt(n);return[-e/2-i,-e/2+i]}(l/a,c/a,i)}function wc(e,t,r,n,i){var o=1-i;return e*(o*o*o)+t*(3*o*o*i)+r*(3*o*i*i)+n*(i*i*i)}!function(e){function t(){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=!1),e}))}function r(){var e=NaN,t=NaN,r=NaN,n=NaN;return i((function(i,o,s){return i.type&Pc.SMOOTH_CURVE_TO&&(i.type=Pc.CURVE_TO,e=isNaN(e)?o:e,t=isNaN(t)?s:t,i.x1=i.relative?o-e:2*o-e,i.y1=i.relative?s-t:2*s-t),i.type&Pc.CURVE_TO?(e=i.relative?o+i.x2:i.x2,t=i.relative?s+i.y2:i.y2):(e=NaN,t=NaN),i.type&Pc.SMOOTH_QUAD_TO&&(i.type=Pc.QUAD_TO,r=isNaN(r)?o:r,n=isNaN(n)?s:n,i.x1=i.relative?o-r:2*o-r,i.y1=i.relative?s-n:2*s-n),i.type&Pc.QUAD_TO?(r=i.relative?o+i.x1:i.x1,n=i.relative?s+i.y1:i.y1):(r=NaN,n=NaN),i}))}function n(){var e=NaN,t=NaN;return i((function(r,n,i){if(r.type&Pc.SMOOTH_QUAD_TO&&(r.type=Pc.QUAD_TO,e=isNaN(e)?n:e,t=isNaN(t)?i:t,r.x1=r.relative?n-e:2*n-e,r.y1=r.relative?i-t:2*i-t),r.type&Pc.QUAD_TO){e=r.relative?n+r.x1:r.x1,t=r.relative?i+r.y1:r.y1;var o=r.x1,s=r.y1;r.type=Pc.CURVE_TO,r.x1=((r.relative?0:n)+2*o)/3,r.y1=((r.relative?0:i)+2*s)/3,r.x2=(r.x+2*o)/3,r.y2=(r.y+2*s)/3}else e=NaN,t=NaN;return r}))}function i(e){var t=0,r=0,n=NaN,i=NaN;return function(o){if(isNaN(n)&&!(o.type&Pc.MOVE_TO))throw new Error("path must start with moveto");var s=e(o,t,r,n,i);return o.type&Pc.CLOSE_PATH&&(t=n,r=i),void 0!==o.x&&(t=o.relative?t+o.x:o.x),void 0!==o.y&&(r=o.relative?r+o.y:o.y),o.type&Pc.MOVE_TO&&(n=t,i=r),s}}function o(e,t,r,n,o,s){return hc(e,t,r,n,o,s),i((function(i,a,l,c){var u=i.x1,d=i.x2,h=i.relative&&!isNaN(c),f=void 0!==i.x?i.x:h?0:a,p=void 0!==i.y?i.y:h?0:l;function g(e){return e*e}i.type&Pc.HORIZ_LINE_TO&&0!==t&&(i.type=Pc.LINE_TO,i.y=i.relative?0:l),i.type&Pc.VERT_LINE_TO&&0!==r&&(i.type=Pc.LINE_TO,i.x=i.relative?0:a),void 0!==i.x&&(i.x=i.x*e+p*r+(h?0:o)),void 0!==i.y&&(i.y=f*t+i.y*n+(h?0:s)),void 0!==i.x1&&(i.x1=i.x1*e+i.y1*r+(h?0:o)),void 0!==i.y1&&(i.y1=u*t+i.y1*n+(h?0:s)),void 0!==i.x2&&(i.x2=i.x2*e+i.y2*r+(h?0:o)),void 0!==i.y2&&(i.y2=d*t+i.y2*n+(h?0:s));var m=e*n-t*r;if(void 0!==i.xRot&&(1!==e||0!==t||0!==r||1!==n))if(0===m)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=Pc.LINE_TO;else{var v=i.xRot*Math.PI/180,y=Math.sin(v),b=Math.cos(v),x=1/g(i.rX),w=1/g(i.rY),C=g(b)*x+g(y)*w,S=2*y*b*(x-w),A=g(y)*x+g(b)*w,k=C*n*n-S*t*n+A*t*t,T=S*(e*n+t*r)-2*(C*r*n+A*e*t),P=C*r*r-S*e*r+A*e*e,E=(Math.atan2(T,k-P)+Math.PI)%Math.PI/2,_=Math.sin(E),O=Math.cos(E);i.rX=Math.abs(m)/Math.sqrt(k*g(O)+T*_*O+P*g(_)),i.rY=Math.abs(m)/Math.sqrt(k*g(_)-T*_*O+P*g(O)),i.xRot=180*E/Math.PI}return void 0!==i.sweepFlag&&0>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;f<c;f++){var p=yc(e.phi1,e.phi2,f/c),g=yc(e.phi1,e.phi2,(f+1)/c),m=g-p,v=4/3*Math.tan(m*vc/4),y=[Math.cos(p*vc)-v*Math.sin(p*vc),Math.sin(p*vc)+v*Math.cos(p*vc)],b=y[0],x=y[1],w=[Math.cos(g*vc),Math.sin(g*vc)],C=w[0],S=w[1],A=[C+v*Math.sin(g*vc),S-v*Math.cos(g*vc)],k=A[0],T=A[1];u[f]={relative:e.relative,type:Pc.CURVE_TO};var P=function(t,r){var n=dc([t*e.rX,r*e.rY],e.xRot),i=n[0],o=n[1];return[e.cX+i,e.cY+o]};n=P(b,x),u[f].x1=n[0],u[f].y1=n[1],i=P(k,T),u[f].x2=i[0],u[f].y2=i[1],o=P(C,S),u[f].x=o[0],u[f].y=o[1],e.relative&&(u[f].x1-=d,u[f].y1-=h,u[f].x2-=d,u[f].y2-=h,u[f].x-=d,u[f].y-=h),d=(s=[u[f].x,u[f].y])[0],h=s[1]}return u}(e,e.relative?0:t,e.relative?0:r):e}))},e.ANNOTATE_ARCS=function(){return i((function(e,t,r){return e.relative&&(t=0,r=0),Pc.ARC===e.type&&pc(e,t,r),e}))},e.CLONE=s,e.CALCULATE_BOUNDS=function(){var e=function(e){var t={};for(var r in e)t[r]=e[r];return t},o=t(),s=n(),a=r(),l=i((function(t,r,n){var i=a(s(o(e(t))));function c(e){e>l.maxX&&(l.maxX=e),e<l.minX&&(l.minX=e)}function u(e){e>l.maxY&&(l.maxY=e),e<l.minY&&(l.minY=e)}if(i.type&Pc.DRAWING_COMMANDS&&(c(r),u(n)),i.type&Pc.HORIZ_LINE_TO&&c(i.x),i.type&Pc.VERT_LINE_TO&&u(i.y),i.type&Pc.LINE_TO&&(c(i.x),u(i.y)),i.type&Pc.CURVE_TO){c(i.x),u(i.y);for(var d=0,h=xc(r,i.x1,i.x2,i.x);d<h.length;d++)0<(E=h[d])&&1>E&&c(wc(r,i.x1,i.x2,i.x,E));for(var f=0,p=xc(n,i.y1,i.y2,i.y);f<p.length;f++)0<(E=p[f])&&1>E&&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.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.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 n<w?n+360:n},A=0,k=gc(y,-m,0).map(S);A<k.length;A++)(E=k[A])>w&&E<C&&c(bc(i.cX,m,y,E));for(var T=0,P=gc(b,-v,0).map(S);T<P.length;T++){var E;(E=P[T])>w&&E<C&&u(bc(i.cY,v,b,E))}}return t}));return l.minX=1/0,l.maxX=-1/0,l.minY=1/0,l.maxY=-1/0,l}}(mc||(mc={}));var Cc,Sc=function(){function e(){}return e.prototype.round=function(e){return this.transform(mc.ROUND(e))},e.prototype.toAbs=function(){return this.transform(mc.TO_ABS())},e.prototype.toRel=function(){return this.transform(mc.TO_REL())},e.prototype.normalizeHVZ=function(e,t,r){return this.transform(mc.NORMALIZE_HVZ(e,t,r))},e.prototype.normalizeST=function(){return this.transform(mc.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(mc.QT_TO_C())},e.prototype.aToC=function(){return this.transform(mc.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(mc.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(mc.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(mc.SCALE(e,t))},e.prototype.rotate=function(e,t,r){return this.transform(mc.ROTATE(e,t,r))},e.prototype.matrix=function(e,t,r,n,i,o){return this.transform(mc.MATRIX(e,t,r,n,i,o))},e.prototype.skewX=function(e){return this.transform(mc.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(mc.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(mc.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(mc.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(mc.ANNOTATE_ARCS())},e}(),Ac=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},kc=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},Tc=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return cc(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var r=this;void 0===t&&(t=[]);for(var n=function(e){t.push(e),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<e.length;i++){var o=e[i],s=!(this.curCommandType!==Pc.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),a=kc(o)&&("0"===this.curNumber&&"0"===o||s);if(!kc(o)||a)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||s){if(this.curNumber&&-1!==this.curCommandType){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===Pc.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>l)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<i.length;n++){var o=i[n],s=e(o);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return r}}})},t}(Sc),Pc=function(e){function t(r){var n=e.call(this)||this;return n.commands="string"==typeof r?t.parse(r):r,n}return cc(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=mc.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],r=0,n=this.commands;r<n.length;r++){var i=e(n[r]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},t.encode=function(e){return uc(e)},t.parse=function(e){var t=new Tc,r=[];return t.parse(e,r),t.finish(r),r},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(Sc),Ec=((Cc={})[Pc.MOVE_TO]=2,Cc[Pc.LINE_TO]=2,Cc[Pc.HORIZ_LINE_TO]=1,Cc[Pc.VERT_LINE_TO]=1,Cc[Pc.CLOSE_PATH]=0,Cc[Pc.QUAD_TO]=4,Cc[Pc.SMOOTH_QUAD_TO]=2,Cc[Pc.CURVE_TO]=6,Cc[Pc.SMOOTH_CURVE_TO]=4,Cc[Pc.ARC]=7,Cc);function _c(e){return _c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_c(e)}function Oc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Mc=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],zc=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Rc(e,t,r,n,i){if("string"===typeof e&&(e=document.getElementById(e)),!e||"object"!==_c(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=e.getContext("2d");try{return o.getImageData(t,r,n,i)}catch(uc){throw new Error("unable to access image data: "+uc)}}function Ic(e,t,r,n,i,o){if(!(isNaN(o)||o<1)){o|=0;var s=Rc(e,t,r,n,i);s=Bc(s,t,r,n,i,o),e.getContext("2d").putImageData(s,t,r)}}function Bc(e,t,r,n,i,o){for(var s,a=e.data,l=2*o+1,c=n-1,u=i-1,d=o+1,h=d*(d+1)/2,f=new Nc,p=f,g=1;g<l;g++)p=p.next=new Nc,g===d&&(s=p);p.next=f;for(var m=null,v=null,y=0,b=0,x=Mc[o],w=zc[o],C=0;C<i;C++){p=f;for(var S=a[b],A=a[b+1],k=a[b+2],T=a[b+3],P=0;P<d;P++)p.r=S,p.g=A,p.b=k,p.a=T,p=p.next;for(var E=0,_=0,O=0,M=0,z=d*S,R=d*A,I=d*k,B=d*T,N=h*S,L=h*A,F=h*k,D=h*T,H=1;H<d;H++){var W=b+((c<H?c:H)<<2),V=a[W],U=a[W+1],j=a[W+2],Z=a[W+3],G=d-H;N+=(p.r=V)*G,L+=(p.g=U)*G,F+=(p.b=j)*G,D+=(p.a=Z)*G,E+=V,_+=U,O+=j,M+=Z,p=p.next}m=f,v=s;for(var X=0;X<n;X++){var Y=D*x>>>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-=I,D-=B,z-=m.r,R-=m.g,I-=m.b,B-=m.a;var q=X+o+1;q=y+(q<c?q:c)<<2,E+=m.r=a[q],_+=m.g=a[q+1],O+=m.b=a[q+2],M+=m.a=a[q+3],N+=E,L+=_,F+=O,D+=M,m=m.next;var Q=v,J=Q.r,K=Q.g,ee=Q.b,te=Q.a;z+=J,R+=K,I+=ee,B+=te,E-=J,_-=K,O-=ee,M-=te,v=v.next,b+=4}y+=n}for(var re=0;re<n;re++){b=re<<2;var ne=a[b],ie=a[b+1],oe=a[b+2],se=a[b+3],ae=d*ne,le=d*ie,ce=d*oe,ue=d*se,de=h*ne,he=h*ie,fe=h*oe,pe=h*se;p=f;for(var ge=0;ge<d;ge++)p.r=ne,p.g=ie,p.b=oe,p.a=se,p=p.next;for(var me=n,ve=0,ye=0,be=0,xe=0,we=1;we<=o;we++){b=me+re<<2;var Ce=d-we;de+=(p.r=ne=a[b])*Ce,he+=(p.g=ie=a[b+1])*Ce,fe+=(p.b=oe=a[b+2])*Ce,pe+=(p.a=se=a[b+3])*Ce,xe+=ne,ve+=ie,ye+=oe,be+=se,p=p.next,we<u&&(me+=n)}b=re,m=f,v=s;for(var Se=0;Se<i;Se++){var Ae=b<<2;a[Ae+3]=se=pe*x>>>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)<u?Ae:u)*n<<2,de+=xe+=m.r=a[Ae],he+=ve+=m.g=a[Ae+1],fe+=ye+=m.b=a[Ae+2],pe+=be+=m.a=a[Ae+3],m=m.next,ae+=ne=v.r,le+=ie=v.g,ce+=oe=v.b,ue+=se=v.a,xe-=ne,ve-=ie,ye-=oe,be-=se,v=v.next,b+=n}}return e}var Nc=function e(){Oc(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function Lc(){let{DOMParser:e}=arguments.length>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]<e[1]*t[0]?-1:1)*Math.acos(su(e,t))}function lu(e){return e*e*e}function cu(e){return 3*e*e*(1-e)}function uu(e){return 3*e*(1-e)*(1-e)}function du(e){return(1-e)*(1-e)*(1-e)}function hu(e){return e*e}function fu(e){return 2*e*(1-e)}function pu(e){return(1-e)*(1-e)}class gu{static empty(e){return new gu(e,"EMPTY","")}split(){let e=arguments.length>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;i<r;i++)if(","===t[i]&&n++,3===n)break;if(e.hasValue()&&this.isString()&&3!==n){const r=new ac(t);r.ok&&(r.alpha=e.getNumber(),t=r.toRGBA())}return new gu(this.document,this.name,t)}constructor(e,t,r){this.document=e,this.name=t,this.value=r,this.isNormalizedColor=!1}}gu.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class mu{clear(){this.viewPorts=[]}setCurrent(e,t){this.viewPorts.push({width:e,height:t})}removeCurrent(){this.viewPorts.pop()}getRoot(){const[e]=this.viewPorts;return e||vu()}getCurrent(){const{viewPorts:e}=this,t=e[e.length-1];return t||vu()}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return"number"===typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}constructor(){this.viewPorts=[]}}function vu(){return{width:mu.DEFAULT_VIEWPORT_WIDTH,height:mu.DEFAULT_VIEWPORT_HEIGHT}}mu.DEFAULT_VIEWPORT_WIDTH=800,mu.DEFAULT_VIEWPORT_HEIGHT=600;class yu{static parse(e){let t=arguments.length>1&&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;i<r;i+=2)n.push(new yu(t[i],t[i+1]));return n}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){const{x:t,y:r}=this,n=t*e[0]+r*e[2]+e[4],i=t*e[1]+r*e[3]+e[5];this.x=n,this.y=i}constructor(e,t){this.x=e,this.y=t}}class bu{isWorking(){return this.working}start(){if(this.working)return;const{screen:e,onClick:t,onMouseMove:r}=this,n=e.ctx.canvas;n.onclick=t,n.onmousemove=r,this.working=!0}stop(){if(!this.working)return;const e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}hasEvents(){return this.working&&this.events.length>0}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 Iu(e){const[t="",r=""]=e.split("(");return[t.trim(),r.trim().replace(")","")]}class Bu{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 Bu(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]=Iu(e),i=Bu.transformTypes[t];i&&this.transforms.push(new i(this.document,n,r))}))}}Bu.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=Bu.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),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),"undefined"!==typeof t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.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(0<s&&s<1&&(e?this.addX(this.sumCubic(s,t,r,n,i)):this.addY(this.sumCubic(s,t,r,n,i))))}const l=Math.pow(o,2)-4*a*s;if(l<0)return;const c=(-o+Math.sqrt(l))/(2*s);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,r,n,i)):this.addY(this.sumCubic(c,t,r,n,i)));const u=(-o-Math.sqrt(l))/(2*s);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,r,n,i)):this.addY(this.sumCubic(u,t,r,n,i)))}addBezierCurve(e,t,r,n,i,o,s,a){this.addPoint(e,t),this.addPoint(s,a),this.bezierCurveAdd(!0,e,r,i,s),this.bezierCurveAdd(!1,t,n,o,a)}addQuadraticCurve(e,t,r,n,i,o){const s=e+2/3*(r-e),a=t+2/3*(n-t),l=s+1/3*(i-e),c=a+1/3*(o-t);this.addBezierCurve(e,t,s,l,a,c,i,o)}isPointInBox(e,t){const{x1:r,y1:n,x2:i,y2:o}=this;return r<=e&&e<=i&&n<=t&&t<=o}constructor(e=Number.NaN,t=Number.NaN,r=Number.NaN,n=Number.NaN){this.x1=e,this.y1=t,this.x2=r,this.y2=n,this.addPoint(e,t),this.addPoint(r,n)}}class ju extends Nu{calculateOpacity(){let e=1,t=this;while(t){const r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}setContext(e){let t=arguments.length>1&&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)&&r<s-1&&" "!==l&&(c="terminal"),r>0&&" "!==a&&r<s-1&&" "!==l&&(c="medial"),r>0&&" "!==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<h;t++){const r=this.getGlyph(i,u,t);e.translate(this.x,this.y),e.scale(c,-c);const n=e.lineWidth;e.lineWidth=e.lineWidth*o/a,"italic"===l&&e.transform(1,0,.4,1,0,0),r.render(e),"italic"===l&&e.transform(1,0,-.4,1,0,0),e.lineWidth=n,e.scale(1/c,-1/c),e.translate(-this.x,-this.y),this.x+=a*(r.horizAdvX||i.horizAdvX)/o,"undefined"===typeof d[t]||isNaN(d[t])||(this.x+=d[t])}return}const{x:o,y:s}=this;e.fillStyle&&e.fillText(n,o,s),e.strokeStyle&&e.strokeText(n,o,s)}applyAnchoring(){if(this.textChunkStart>=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.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}adjustChildCoordinatesRecursive(e){this.children.forEach(((t,r)=>{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;t<s;t++){const r=this.getGlyph(n,i,t);a+=(r.horizAdvX||n.horizAdvX)*e/n.fontFace.unitsPerEm,"undefined"===typeof o[t]||isNaN(o[t])||(a+=o[t])}return a}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);const{width:i}=e.measureText(t);return this.clearContext(e),e.restore(),i}getInheritedAttribute(e){let t=this;while(t instanceof Zu&&t.isFirstChild()&&t.parent){const r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getString("0");t=t.parent}return null}constructor(e,t,r){super(e,t,new.target===Zu||r),this.type="text",this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.measureCache=-1}}class Gu extends Zu{getText(){return this.text}constructor(e,t,r){super(e,t,new.target===Gu||r),this.type="tspan",this.text=this.children.length>0?"":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<t;r++)if(!e[r])for(let n=r+1;n<t;n++)if(e[n]){e[r]=e[n];break}return e}constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=new yu(0,0),this.start=new yu(0,0),this.current=new yu(0,0),this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}}class $u extends ju{path(e){const{pathParser:t}=this,r=new Uu;t.reset(),e&&e.beginPath();while(!t.isEnd())switch(t.next().type){case Yu.MOVE_TO:this.pathM(e,r);break;case Yu.LINE_TO:this.pathL(e,r);break;case Yu.HORIZ_LINE_TO:this.pathH(e,r);break;case Yu.VERT_LINE_TO:this.pathV(e,r);break;case Yu.CURVE_TO:this.pathC(e,r);break;case Yu.SMOOTH_CURVE_TO:this.pathS(e,r);break;case Yu.QUAD_TO:this.pathQ(e,r);break;case Yu.SMOOTH_QUAD_TO:this.pathT(e,r);break;case Yu.ARC:this.pathA(e,r);break;case Yu.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){const{pathParser:e}=this,t=e.getMarkerPoints(),r=e.getMarkerAngles(),n=t.map(((e,t)=>[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;i<t;i++){const[t,o]=r[i];n.render(e,t,o)}}if(o.isUrlDefinition()){const n=o.getDefinition(),[i,s]=r[t];n.render(e,i,s)}}}static pathM(e){const t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){const{pathParser:r}=this,{point:n}=$u.pathM(r),{x:i,y:o}=n;r.addMarker(n),t.addPoint(i,o),e&&e.moveTo(i,o)}static pathL(e){const{current:t}=e,r=e.getAsCurrentPoint();return{current:t,point:r}}pathL(e,t){const{pathParser:r}=this,{current:n,point:i}=$u.pathL(r),{x:o,y:s}=i;r.addMarker(i,n),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathH(e){const{current:t,command:r}=e,n=new yu((r.relative?t.x:0)+r.x,t.y);return e.current=n,{current:t,point:n}}pathH(e,t){const{pathParser:r}=this,{current:n,point:i}=$u.pathH(r),{x:o,y:s}=i;r.addMarker(i,n),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathV(e){const{current:t,command:r}=e,n=new yu(t.x,(r.relative?t.y:0)+r.y);return e.current=n,{current:t,point:n}}pathV(e,t){const{pathParser:r}=this,{current:n,point:i}=$u.pathV(r),{x:o,y:s}=i;r.addMarker(i,n),t.addPoint(o,s),e&&e.lineTo(o,s)}static pathC(e){const{current:t}=e,r=e.getPoint("x1","y1"),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:n,currentPoint:i}}pathC(e,t){const{pathParser:r}=this,{current:n,point:i,controlPoint:o,currentPoint:s}=$u.pathC(r);r.addMarker(s,o,i),t.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathS(e){const{current:t}=e,r=e.getReflectedControlPoint(),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:t,point:r,controlPoint:n,currentPoint:i}}pathS(e,t){const{pathParser:r}=this,{current:n,point:i,controlPoint:o,currentPoint:s}=$u.pathS(r);r.addMarker(s,o,i),t.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,s.x,s.y),e&&e.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathQ(e){const{current:t}=e,r=e.getAsControlPoint("x1","y1"),n=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:n}}pathQ(e,t){const{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:o}=$u.pathQ(r);r.addMarker(o,i,i),t.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathT(e){const{current:t}=e,r=e.getReflectedControlPoint();e.control=r;const n=e.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:n}}pathT(e,t){const{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:o}=$u.pathT(r);r.addMarker(o,i,i),t.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),e&&e.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathA(e){const{current:t,command:r}=e;let{rX:n,rY:i,xRot:o,lArcFlag:s,sweepFlag:a}=r;const l=o*(Math.PI/180),c=e.getAsCurrentPoint(),u=new yu(Math.cos(l)*(t.x-c.x)/2+Math.sin(l)*(t.y-c.y)/2,-Math.sin(l)*(t.x-c.x)/2+Math.cos(l)*(t.y-c.y)/2),d=Math.pow(u.x,2)/Math.pow(n,2)+Math.pow(u.y,2)/Math.pow(i,2);d>1&&(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<this.duration){let e=this.calcValue();const t=this.getAttribute("type");if(t.hasValue()){const r=t.getString();e="".concat(r,"(").concat(e,")")}r.setValue(e),n=!0}return n}getProgress(){const{document:e,values:t}=this;let r,n,i=(this.duration-this.begin)/(this.maxDuration-this.begin);if(t.hasValue()){const o=i*(t.getValue().length-1),s=Math.floor(o),a=Math.ceil(o);let l;l=t.getValue()[s],r=new gu(e,"from",l?parseFloat(l):0),l=t.getValue()[a],n=new gu(e,"to",l?parseFloat(l):0),i=(o-s)/(a-s)}else r=this.from,n=this.to;return{progress:i,from:r,to:n}}constructor(e,t,r){super(e,t,r),this.type="animate",this.duration=0,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new gu(e,"values",null);const n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}}class hd extends dd{calcValue(){const{progress:e,from:t,to:r}=this.getProgress(),n=new ac(t.getColor()),i=new ac(r.getColor());if(n.ok&&i.ok){const t=n.r+(i.r-n.r)*e,r=n.g+(i.g-n.g)*e,o=n.b+(i.b-n.b)*e;return"rgb(".concat(Math.floor(t),", ").concat(Math.floor(r),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}constructor(...e){super(...e),this.type="animateColor"}}class fd extends dd{calcValue(){const{progress:e,from:t,to:r}=this.getProgress(),n=Uc(t.getString()),i=Uc(r.getString()),o=n.map(((t,r)=>{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<n&&(u+=(n-r)/i),l>-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;y<d;y++)u.push("undefined"!==typeof i[y]?i[y]:c);const h=u.reduce(((e,t,r)=>0===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)<l&&(l=Math.abs(e-r)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],e,0),t<0)for(a=e-l;a>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;a<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;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],r,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),i}}return 0}getPointOnLine(e,t,r,n,i){let o=arguments.length>5&&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));n<t&&(l*=-1);let c=a*l,u=null;if(n===t)u={x:o,y:s+c};else if((s-r)/(o-t+iu)===a)u={x:o+l,y:s+c};else{let d=0,h=0;const f=this.getLineLength(t,r,n,i);if(f<iu)return null;let p=(o-t)*(n-t)+(s-r)*(i-r);p/=f*f,d=t+p*(n-t),h=r+p*(i-r);const g=this.getLineLength(o,s,d,h),m=Math.sqrt(e*e-g*g);l=Math.sqrt(m*m/(1+a*a)),n<t&&(l*=-1),c=a*l,u={x:d+l,y:h+c}}return u}getPointOnPath(e){const t=this.getPathLength();let r=0,n=null;if(e<-5e-5||e-5e-5>t)return null;const{dataArray:i}=this;for(const o of i){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5<e)){r+=o.pathLength;continue}const t=e-r;let i=0;switch(o.type){case Yu.LINE_TO:n=this.getPointOnLine(t,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case Yu.ARC:{const e=o.points[4],r=o.points[5],s=o.points[4]+r;if(i=e+t/o.pathLength*r,r<0&&i<s||r>=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?Bu.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<i;l++)for(let e=0;e<n;e++){const t=Pd(a.data,e,l,n,i,0),r=Pd(a.data,e,l,n,i,1),c=Pd(a.data,e,l,n,i,2),u=Pd(a.data,e,l,n,i,3);let d=_d(s,0,t)+_d(s,1,r)+_d(s,2,c)+_d(s,3,u)+_d(s,4,1),h=_d(s,5,t)+_d(s,6,r)+_d(s,7,c)+_d(s,8,u)+_d(s,9,1),f=_d(s,10,t)+_d(s,11,r)+_d(s,12,c)+_d(s,13,u)+_d(s,14,1),p=_d(s,15,t)+_d(s,16,r)+_d(s,17,c)+_d(s,18,u)+_d(s,19,1);o&&(d=0,h=0,f=0,p*=u/255),Ed(a.data,e,l,n,i,0,d),Ed(a.data,e,l,n,i,1,h),Ed(a.data,e,l,n,i,2,f),Ed(a.data,e,l,n,i,3,p)}e.clearRect(0,0,n,i),e.putImageData(a,0,0)}constructor(e,t,r){super(e,t,r),this.type="feColorMatrix";let n=Uc(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{const e=n[0];n=[.213+.787*e,.715-.715*e,.072-.072*e,0,0,.213-.213*e,.715+.285*e,.072-.072*e,0,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{const e=n[0]*Math.PI/180;n=[Od(e,.213,.787,-.213),Od(e,.715,-.715,-.715),Od(e,.072,-.072,.928),0,0,Od(e,.213,-.213,.143),Od(e,.715,.285,.14),Od(e,.072,-.072,-.283),0,0,Od(e,.213,-.213,-.787),Od(e,.715,-.715,.715),Od(e,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}}class zd extends Nu{apply(e,t){const{document:r}=this;let n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){const t=new Uu;this.children.forEach((r=>{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 Id 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=Bu.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 Bd 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,Bd.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"}}Bd.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)),Ic(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:Id,filter:Bd,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();let $d=null;const qd=async(e,t,r,n)=>{$d||($d=new OffscreenCanvas(t,r));const i=$d.getContext("2d");let o=await Xd.fromString(i,e,Yd);o.resize(2*t,2*r,"xMidYMid meet"),await o.start();const s=await Jd($d,n);return i.clearRect(0,0,$d.width,$d.height),await o.stop(),o=null,s},Qd=(e,t="image/png")=>new Promise(((r,n)=>{e.toBlob((e=>{e?r(e):n(new Error("转换失败"))}),t)})),Jd=async(e,t)=>{const r=document.createElement("canvas");r.width=e.width+400,r.height=e.height+200;const n=r.getContext("2d");n.clearRect(0,0,r.width,r.height),n.fillStyle="#fff",n.fillRect(0,0,r.width,r.height),n.font="66pt Calibri",n.fillStyle="#000",n.textAlign="center",n.drawImage(e,200,240),n.fillText(t,r.width/2,200);const i=await Qd(r);return n.clearRect(0,0,r.width,r.height),i},Kd=async(e,t)=>{const r=document.createElement("canvas");r.width=e.width,r.height=e.height+90;const n=r.getContext("2d");n.clearRect(0,0,r.width,r.height),n.fillStyle="#fff",n.fillRect(0,0,r.width,r.height),n.font="30pt Calibri",n.fillStyle="#000",n.textAlign="center",n.drawImage(e,0,70),n.fillText(t,r.width/2,100);const i=await Qd(r);return n.clearRect(0,0,r.width,r.height),i},eh=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};var th=r(3537),rh=r(7666);function nh(e){return"function"===typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,n.lA)(e)}var ih=(0,n.aZ)({name:"cloudPractice",setup(){const e=(0,Ql.Z)(),{goToCloud:t,getPreViewCloud:h,isPracticeShow:f,practiceUrl:p,handlePracticeClose:g}=Jl(),m=[{name:"主页",url:"/"},{name:"云练习"}],v=(0,i.iH)(),y=(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}),b=(0,i.iH)([]),x=(0,n.Fl)((()=>{const t=y.list[y.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,musicImg:t.musicImg,musicJianImg:t.musicJianSvg,musicFirstImg:t.musicFirstSvg,isScoreRender:e?.isScoreRender,defaultScoreRender:e?.defaultScoreRender,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,musicImg:t.musicImg,musicJianImg:t.musicJianSvg,musicFirstImg:t.musicFirstSvg,isScoreRender:t?.isScoreRender,defaultScoreRender:t?.defaultScoreRender,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,musicImg:t.musicImg,musicJianImg:t.musicJianSvg,musicFirstImg:t.musicFirstSvg,isScoreRender:!1,defaultScoreRender:!1,musicPdfUrl:t?.musicPdfUrl}}return r})),w=(0,n.Fl)((()=>{let e=!0,t=!0;return 0===y.listActive&&(e=!1),y.listActive>=y.list.length-1&&(t=!1),{prev:e,next:t}})),C=(0,i.iH)(!1),S=(0,i.iH)(!1),A=(0,i.iH)(!1),k=(0,i.XI)([]),T=async()=>{S.value=!0,await(0,_l.Jj)(Ml).then((async e=>{S.value=!1,200===e.code&&(k.value=e.data||[],await D())}))},P=async()=>{S.value=!0,await(0,_l.Jj)(zl,{categoriesId:y.categoryId||y.firstTreeId}).then((t=>{if(S.value=!1,200===t.code){const r=t.data||[];y.subjectList=r.map((e=>({label:e.name,value:e.id}))),y.subjectList.unshift({label:"全部声部",value:-1});const n=e.userInfo.subjectId;if(n){const e=n.split(",")[0];y.subjectList.forEach((t=>{t.value===Number(e)&&(y.subjectId=Number(e))}))}}}))},E=async()=>{S.value=!0;const e={page:y.page,rows:y.rows,subjectId:-1===y.subjectId?null:y.subjectId,categoriesId:-1===y.typeId?y.levelId:y.typeId,search:y.queryStr};await(0,_l.Jj)(Rl,e).then((e=>{if(S.value=!1,200===e.code){const t=e.data||[];y.reshing&&(y.list=[],y.reshing=!1),Array.isArray(t.rows)?(y.list=[...y.list,...t.rows],y.finshed=y.page>=t.totalPage):y.finshed=!0}else y.finshed=!0}))},_=async()=>{S.value=!0,await(0,_l.Jj)(Il,{enable:!0,page:1,parentId:0,rows:10}).then((e=>{S.value=!1,200===e.code&&(k.value=e.data||[],D())}))},O=async()=>{S.value=!0,await(0,_l.Jj)(Bl,{enableFlag:!0,page:1,rows:100}).then((t=>{if(S.value=!1,200===t.code){const r=t.data||[];y.subjectList=r.map((e=>({label:e.name,value:e.id}))),y.subjectList.unshift({label:"全部声部",value:-1});const n=e.userInfo.subjectId;if(n){const e=n.split(",")[0];y.subjectList.forEach((t=>{t.value===Number(e)&&(y.subjectId=Number(e))}))}}}))},M=async()=>{S.value=!0;const e={page:y.page,rows:y.rows,musicSubject:-1===y.subjectId?null:y.subjectId,musicSheetCategoriesId:-1===y.typeId?y.levelId:y.typeId,keyword:y.queryStr,detailFlag:!0,status:1};await(0,_l.Jj)(Nl,e).then((e=>{if(S.value=!1,200===e.code){const t=e.data||{};y.reshing&&(y.list=[],y.reshing=!1),Array.isArray(t.rows)?(t.rows.forEach((e=>{e.name=e.musicSheetName})),y.list=[...y.list,...t.rows],y.finshed=y.page>=t.pages):y.finshed=!0}else y.finshed=!0}))},z=async()=>{S.value=!0,await(0,_l.Jj)(Ll,{enable:!0,page:1,parentId:0,rows:10}).then((async e=>{if(S.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})}})),y.categoryList=r,await D()}else y.finshed=!0}))},R=async()=>{S.value=!0,await(0,_l.Jj)(Fl,{queryType:"list",page:1,rows:100}).then((t=>{if(S.value=!1,200===t.code){const r=t.data?.rows||[];y.subjectList=r.map((e=>({label:e.name,value:e.id}))),y.subjectList.unshift({label:"全部声部",value:-1});const n=e.userInfo.subjectId;if(n){const e=n.split(",")[0];y.subjectList.forEach((t=>{t.value===Number(e)&&(y.subjectId=Number(e))}))}}}))},I=async()=>{if(!y.categoryId)return;S.value=!0;const e={page:y.page,rows:y.rows,albumId:y.categoryId,subjectId:-1===y.subjectId?null:y.subjectId,subjectType:y.firstTreeId,level:-1===y.levelId?null:y.levelId,type:-1===y.typeId?null:y.typeId,keyword:y.queryStr};await(0,_l.Jj)(Dl,e).then((e=>{if(S.value=!1,200===e.code){const t=e.data||{};y.reshing&&(y.list=[],y.reshing=!1),Array.isArray(t.rows)?(t.rows.forEach((e=>{e.name=e.musicSheetName})),y.list=[...y.list,...t.rows],y.finshed=y.page>=t.totalPage):y.finshed=!0}else y.finshed=!0}))},B=async()=>{if(!y.categoryId||!y.firstTreeId)return;S.value=!0;const e={tenantAlbumId:y.categoryId,subjectType:y.firstTreeId};await(0,_l.Jj)(Hl,e).then((e=>{if(S.value=!1,200===e.code){const t=e.data||{};t.levelList&&t.levelList.length>0?(y.levelList=t.levelList.map((e=>({label:e.value,value:e.id}))),y.levelList.unshift({label:"全部级别",value:-1}),y.levelId=-1):y.levelList=[],t.typeList&&t.typeList.length>0?(y.typeList=t.typeList.map((e=>({label:e.value,value:e.id}))),y.typeList.unshift({label:"全部类型",value:-1}),y.typeId=-1):y.typeList=[]}}))},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()=>{"GYM"===e.roles?await E():"GYT"===e.roles?await M():"KLX"===e.roles&&await I()},D=async t=>{"GYM"===e.roles?await H(t):"GYT"===e.roles?W(t):"KLX"===e.roles&&await V(t)},H=async e=>{if(k.value.length>0&&!["category","level","type"].includes(e)){let t=[];"first"===e&&y.firstTreeId?t=k.value.find((e=>e.id===y.firstTreeId))?.sysMusicScoreCategoriesList||[]:(y.firstTreeId=k.value[0]?.id,t=k.value[0]?.sysMusicScoreCategoriesList||[]),y.categoryList=t.map((e=>({label:e.name,value:e.id,sysMusicScoreCategoriesList:e.sysMusicScoreCategoriesList||[]}))),y.categoryId=null,y.categoryName=null,y.levelId=null,y.typeId=-1}if(y.categoryList.length>0&&!["level","type"].includes(e)){let t=[];"category"===e&&y.categoryId?t=y.categoryList.find((e=>e.value===y.categoryId))?.sysMusicScoreCategoriesList||[]:(y.categoryId=y.categoryList[0]?.value,y.categoryName=y.categoryList[0]?.label,t=y.categoryList[0]?.sysMusicScoreCategoriesList||[]),y.levelList=t.map((e=>({label:e.name,value:e.id,sysMusicScoreCategoriesList:e.sysMusicScoreCategoriesList||[]}))),await P()}if(y.levelList.length>0){let t=[];"level"===e&&y.levelId?(t=y.levelList.find((e=>e.value===y.levelId))?.sysMusicScoreCategoriesList,y.typeId=-1):(y.levelId=y.levelList[0]?.value,t=y.levelList[0]?.sysMusicScoreCategoriesList||[]),y.typeList=t.map((e=>({label:e.name,value:e.id}))),y.typeList.unshift({label:"全部",value:-1})}},W=e=>{if(k.value.length>0&&!["level","type"].includes(e)){let t=[];"first"===e&&y.firstTreeId?t=k.value.find((e=>e.id===y.firstTreeId))?.musicSheetCategoriesList||[]:(y.firstTreeId=k.value[0]?.id,t=k.value[0]?.musicSheetCategoriesList||[]),y.levelList=t.map((e=>({label:e.name,value:e.id,musicSheetCategoriesList:e.musicSheetCategoriesList||[]}))),y.levelId=null,y.typeId=-1}if(y.levelList.length>0){let t=[];"level"===e&&y.levelId?t=y.levelList.find((e=>e.value===y.levelId))?.musicSheetCategoriesList:(y.levelId=y.levelList[0]?.value,t=y.levelList[0]?.musicSheetCategoriesList||[]),y.typeList=t.map((e=>({label:e.name,value:e.id}))),y.typeList.unshift({label:"全部",value:-1}),y.typeId=-1}},V=async e=>{if(y.categoryList.length>0&&!["level","type","first"].includes(e)){let t=[];"category"===e&&y.categoryId?t=y.categoryList.find((e=>e.value===y.categoryId))?.musicSheetCategoriesList||[]:(y.categoryId=y.categoryList[0]?.value,y.categoryName=y.categoryList[0]?.label,t=y.categoryList[0]?.musicSheetCategoriesList||[]),k.value=t.map((e=>({id:e.value,name:e.label})))}k.value.length>0&&!["level","type"].includes(e)&&("first"===e&&y.firstTreeId||(y.firstTreeId=k.value[0]?.id),await B(),y.levelId=-1,y.typeId=-1)},U=async()=>{await N(),await L(),await F(),await G(),q()};(0,rh.U)(!0,!1),U();const j=()=>{S.value||y.finshed||(y.page=y.page+1,F())},Z=async()=>{S.value||(y.listActive=0,y.showPlayer=!1,y.playState="pause",y.partNames=[],y.partList=[],y.selectedPartName="",y.selectedTrack="",y.selectedPartIndex=0,y.partXmlIndex=0,document.querySelector(".musicList-container")?.scroll(0,0),y.page=1,y.finshed=!1,y.reshing=!0,y.list=[],await F())},G=async()=>{const t=x.value;if(y.imgs=[],"SINGLE"===t.musicSheetType){if(S.value=!1,y.musicPdfUrl=t.musicPdfUrl,"GYM"===e.roles){const e=t.musicImg?t.musicImg.split(","):[];e.forEach((async(e,r)=>{const n=await eh(e),i=await Kd(n,t.name);y.imgs.push({name:r+1+".png",url:i})}))}return}y.partNames=await X(t.xmlUrl);let r=t.background||[];r=r.filter((e=>!e.track?.toLocaleUpperCase()?.includes("COMMON"))),b.value=r.map(((t,r)=>{const n=Ul(t.track),i=y.partNames.findIndex((e=>e.trim()===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}})),t.isScoreRender&&(b.value.unshift({label:"总谱",instrumentName:null,track:null,musicPdfUrl:"",xmlIndex:999,value:999}),t.defaultScoreRender&&(y.selectedPartIndex=999));const n=b.value.find((e=>e.value===y.selectedPartIndex));y.selectedPartName=n?.instrumentName,y.selectedTrack=n?.track,y.partXmlIndex=n?.xmlIndex,t.isScoreRender&&t.defaultScoreRender?y.musicPdfUrl=t?.musicPdfUrl||"":y.musicPdfUrl=n?.musicPdfUrl||""},X=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()))||[]},Y=async()=>{if("GYM"===e.roles)return S.value=!1,void(A.value=!1);const t=document.getElementById("staffIframeRef");if(t&&t.contentWindow?.renderXml){A.value=!0;const e=await Wl.Z.get(x.value.xmlUrl),r=Yl(e.data),n=jl(r.parsedXML);if(console.log(x.value,"activeItem.value"),x.value.isScoreRender){const e=[],r=x.value.background||[];r.forEach((t=>{e.push(t.track)})),t.contentWindow.renderXml(n,x.value.isScoreRender)}else{const e=Zl(n,y.partXmlIndex);t.contentWindow.renderXml(e)}}},$=async()=>{const t=document.getElementById("staffIframeRef");if("GYM"!==e.roles){if(t&&t.contentWindow?.renderXml){A.value=!0;const e=await Wl.Z.get(x.value.xmlUrl),r=Yl(e.data),n=jl(r.parsedXML);if(x.value.isScoreRender)t.contentWindow.renderXml(n,x.value.isScoreRender);else{const e=Zl(n,y.partXmlIndex);t.contentWindow.renderXml(e)}}}else t.contentWindow.location.replace(h(x.value.id,y.partXmlIndex))},q=async()=>{try{y.musicPdfUrl?y.iframeSrc="/pdf/web/viewer.html?file="+encodeURIComponent(y.musicPdfUrl)+"&t="+Date.now():"GYM"===e.roles?y.iframeSrc=h(x.value.id,y.partXmlIndex):y.iframeSrc="/osmd/index.html"}catch(t){}},Q=e=>{"play"===e?y.playState="play":"pause"===e?y.playState="pause":"pre"===e?y.list[y.listActive-1]&&J(y.list[y.listActive-1]):"next"===e&&y.list[y.listActive+1]&&J(y.list[y.listActive+1])},J=e=>{const t=y.list.findIndex((t=>t.id===e.id));t>-1&&(y.listActive===t?y.playState="play"===y.playState?"pause":"play":y.playState="play",y.showPlayer=!0,y.listActive=t)},K=(e,t)=>{const r=new(ic());for(const n in e)r.file(e[n].name,e[n].url,{binary:!0});r.generateAsync({type:"blob"}).then((e=>{(0,rc.saveAs)(e,t?t+".zip":`文件夹${Date.now()}.zip`)})),C.value=!1},ee=async e=>{if("musicStaffRender"===e.data?.api){const t=x.value.name+("CONCERT"===x.value.musicSheetType&&y.selectedPartName||y.selectedTrack?`(${y.selectedPartName||y.selectedTrack})`:"");try{const r=e.data.osmdImg,n=[];for(let e=0;e<r.length;e++){const i=await qd(r[e].img,r[e].width,r[e].height,t);n.push({url:i,name:e+1+".png"})}y.imgs=n}catch(e){}A.value=e.data.loading,S.value=e.data.loading}},te=async()=>{await G(),x.value?.id&&(y.musicPdfUrl?(A.value=!0,q()):-1!==y.iframeSrc.indexOf("pdf/web")?q():$())},re=()=>{if(C.value||A.value)return;const e=x.value.name+("CONCERT"===x.value.musicSheetType&&y.selectedPartName||y.selectedTrack?`(${y.selectedPartName||y.selectedTrack})`:"");C.value=!0,y.musicPdfUrl?fetch(y.musicPdfUrl).then((e=>e.blob())).then((t=>{(0,rc.saveAs)(t,e),C.value=!1})).catch((()=>{a.z8.error("下载失败"),C.value=!1})):K(y.imgs,e)};return(0,n.YP)((()=>[th.K4.value,th.ys.value]),(()=>{(th.K4.value||th.ys.value)&&Q("pause")})),(0,n.bv)((()=>{const e=new IntersectionObserver((e=>{e[0].intersectionRatio>0&&j()}));e.observe(v.value),window.addEventListener("message",ee)})),()=>{let e;return(0,n.Wm)(s.Z,{navs:m},{default:()=>[(0,n.Wm)("div",{class:o.cloudPractice},[(0,n.Wm)("div",{class:o.leftContainer},[(0,n.Wm)("div",{class:o.details},[k.value.length>0&&(0,n.Wm)(l.Mr,{class:o.leftSection},nh(e=k.value.map((e=>(0,n.Wm)("div",{class:[o.leftSection_item,e.id===y.firstTreeId&&o.leftSection_item__active],onClick:async()=>{S.value||(y.firstTreeId=e.id,await D("first"),await Z(),te())}},[e.name]))))?e:{default:()=>[e]}),(0,n.Wm)("div",{class:[o.musicList,"musicList-container"]},[(0,n.Wm)("div",{class:o.searchHeader},[y.categoryList.length>1&&(0,n.Wm)("div",{class:[o.categorySection]},[(0,n.Wm)(Mi,{placement:"bottom-start",disabled:S.value,options:y.categoryList,value:y.categoryId,"onUpdate:value":[e=>y.categoryId=e,async e=>{const t=y.categoryList.find((t=>t.value===e));t&&(y.categoryName=t.label,y.categoryId=t.value,await D("category"),await Z(),te())}],"onUpdate:show":e=>{y.categoryShow=e},trigger:"click",class:"PopSelect"},{default:()=>[(0,n.Wm)("span",{class:[o.iconTagName,y.categoryShow&&o.show]},[(0,n.Wm)("span",null,[y.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:y.subjectId,"onUpdate:modelValue":e=>y.subjectId=e,height:42,options:y.subjectList,placeholder:"全部声部",onChange:async()=>{await Z(),te()}},null),y.levelList.length?(0,n.Wm)(u.Z,{clearable:!1,popperClass:"classTypePopper",modelValue:y.levelId,"onUpdate:modelValue":e=>y.levelId=e,height:42,options:y.levelList,placeholder:"级别",onChange:async()=>{D("level"),await Z(),te()}},null):null,y.typeList.length>0?(0,n.Wm)(u.Z,{clearable:!1,popperClass:"classTypePopper",modelValue:y.typeId,"onUpdate:modelValue":e=>y.typeId=e,height:42,options:y.typeList,propsOpt:{labelField:"name",valueField:"id"},placeholder:"分类",onChange:async()=>{await Z(),te()}},null):null]),(0,n.Wm)("div",{class:[o.btnSearch,y.searchStatus&&o.btnSearchActive],onClick:()=>y.searchStatus=!y.searchStatus},null)]),y.searchStatus&&(0,n.Wm)(d.Z,{class:"queryCp",modelValue:y.queryStr,"onUpdate:modelValue":e=>y.queryStr=e,height:42,placeholder:"请输入曲目关键词",onKeyup:async e=>{"Enter"!==e.code&&"Enter"!==e.key||(await Z(),te())},onHandleQuery:async()=>{await Z(),te()},clearable:!0},null)]),(0,n.Wm)("div",{class:[o.wrapList,!y.list.length&&!S.value&&o.wrapListEmpty]},[y.list.map(((e,t)=>(0,n.Wm)("div",{class:[o.item,t===y.listActive&&o.active],onClick:async()=>{t!==y.listActive&&(y.listActive=t,y.selectedPartIndex=0,y.partXmlIndex=0,te())}},[(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:[y.listActive===t&&"play"===y.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(),J(e),y.listActive!==t&&$()}},[y.listActive===t&&(0,n.Wm)(n.HY,null,["pause"===y.playState?"播放":"暂停",(0,n.Wm)("img",{src:"pause"===y.playState?kl:Al},null)]),y.listActive!==t&&(0,n.Wm)(n.HY,null,[(0,n.Uk)("播放"),(0,n.Wm)("img",{src:kl},null)])])])]))),!y.list.length&&!S.value&&(0,n.Wm)(c.GT,{class:o.empty,image:r(9449),description:"暂无内容"},null),(0,n.Wm)("div",{ref:v,class:[o.loadingWrap,y.finshed&&o.showLoading]},[(0,n.Wm)(Ma,{show:!0,stroke:"#FF531C"},null)])])])])]),(0,n.Wm)("div",{class:o.rightContainer},[(0,n.Wm)(Ma,{show:A.value,stroke:"#FF531C"},{default:()=>[x.value?.id?y.musicPdfUrl?(0,n.Wm)("div",{class:[o.staffImgs]},[(0,n.Wm)("iframe",{style:{width:"100%",height:"100%"},src:y.iframeSrc,onLoad:()=>{S.value=!1,A.value=!1}},null)]):(0,n.Wm)(n.HY,null,[(0,n.Wm)("div",{class:o.musicName},[x.value.name,"CONCERT"===x.value.musicSheetType&&(y.selectedPartName||y.selectedTrack?`(${y.selectedPartName||y.selectedTrack})`:"")]),(0,n.Wm)("div",{class:[o.staffImgs]},[(0,n.Wm)("iframe",{id:"staffIframeRef",style:{width:"100%",height:"100%"},src:y.iframeSrc,onLoad:Y},null)])]):(0,n.Wm)("div",{class:[o.staffImgs,!S.value&&!x.value?.id&&o.staffImgsEmpty]},[!S.value&&!x.value?.id&&(0,n.Wm)(c.GT,{class:o.empty,image:r(9449),description:"暂无内容"},null)])]}),(0,n.Wm)("img",{style:{display:x.value?.id?"":"none"},class:[o.goBtn],src:Tl,onClick:()=>{Q("pause"),t(x.value.id,y.partXmlIndex)}},null),(0,n.Wm)("div",{class:o.rightBtns,style:{display:x.value.id?"":"none"}},[(0,n.Wm)("div",{style:{display:y.musicPdfUrl||y.imgs.length>0?"":"none"}},[(0,n.Wm)(da,{showArrow:!1},{trigger:()=>(0,n.Wm)("img",{onClick:re,class:[o.transBtn,(C.value||A.value)&&o.disableBtn],src:El},null),default:"下载曲谱"})]),(0,n.Wm)("div",{style:{display:"CONCERT"===x.value.musicSheetType?"":"none"}},[(0,n.Wm)(Mi,{options:b.value,placement:"bottom-end",trigger:"click",value:y.selectedPartIndex,"onUpdate:value":[e=>y.selectedPartIndex=e,async e=>{const t=b.value.find((t=>t.value===e));y.selectedPartIndex=e,y.selectedPartName=t.instrumentName,y.selectedTrack=t.track,y.partXmlIndex=t.xmlIndex,(0,n.Y3)((()=>{let r="";x.value?.isScoreRender&&999===e?x.value?.musicPdfUrl&&(r=x.value?.musicPdfUrl):r=t.musicPdfUrl,r?(y.musicPdfUrl=r,A.value=!0,q()):(y.musicPdfUrl="",S.value=!0,-1!==y.iframeSrc.indexOf("pdf/web")?q():$())}))}],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!==y.list.length&&x.value.audioFileUrl&&(0,n.Wm)(Cl,{show:y.showPlayer,playState:y.playState,songPrevNextStatus:w.value,item:x.value,onChange:e=>Q(e),onShow:e=>{y.showPlayer=e}},null),(0,n.Wm)(tc.Z,{modelValue:f.value,"onUpdate:modelValue":e=>f.value=e,practiceUrl:p.value,onClose:g},null)]})}}}),oh=ih},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<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,s,a,l,c,u=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),s=t>>2,a=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|i>>6:64,c=2<f?63&i:64,u.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,s,a,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(s=o.indexOf(e.charAt(c++)))>>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<s;a++)e=e>>>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<s;a++)e=e>>>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<t;r++)n+=String.fromCharCode(255&e),e>>>=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.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=function(e,t,r,i,s){var a=o.transformTo("string",s(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(a.length,2)+a}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach((function(e,r){s++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),a=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(i,a).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./external"),o=e("./utf8"),s=e("./zipEntries"),a=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new a);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new s(t);return r.load(e),r})).then((function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(c(n[o]));return i.Promise.all(r)})).then((function(e){for(var i=e.shift(),o=i.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,c=n.resolve(a.fileNameStr);r.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders}),a.dir||(r.file(c).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),r&&r(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){"use strict";function n(e,t,r){var n,i=o.getTypeOf(t),a=o.extend(r||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=g(e)),a.createFolders&&(n=p(e))&&m.call(this,n,!0);var d="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!d),(t instanceof c&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var v=null;v=t instanceof c||t instanceof s?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var y=new u(e,v,a);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),s=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(v(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=m.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new s("error")).error(e)}return new a(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];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}],18:[function(e,t,r){"use strict";var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;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<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+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<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,o),c);r(e)}catch(e){i(e)}o=[]})).resume()}))}function d(e,t,r){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=r,n.checkSupport(s),this._worker=e.pipe(new i(s)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,r)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),s=e("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|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<s;)if((i=e[t++])<128)l[r++]=i;else if(4<(o=a[i]))l[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<s;)i=i<<6|63&e[t++],o--;1<o?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>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<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,n){r.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var h={};h.string={string:a,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},h.array={string:u,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:a},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,a,c){return s.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(c?t=i.decode(t):o&&!0!==a&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),s=e("./zipEntry"),a=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),s=e("./crc32"),a=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>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<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){"use strict";function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),s=e("./utf8"),a=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new s.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),r=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||r()}}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){"use strict";var n=e("immediate");function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n((function(){var n;try{n=t(r)}catch(n){return o.reject(e,n)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var s=p((function(){t(i,n)}));"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==l?d(r,this.state===a?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s=new Array(r),a=0,l=-1,c=new this(i);++l<r;)u(e[l],l);return c;function u(e,i){t.resolve(e).then((function(e){s[i]=e,++a!==r||n||(n=!0,o.resolve(c,s))}),(function(e){n||(n=!0,o.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s,a=-1,l=new this(i);++a<r;)s=e[a],t.resolve(s).then((function(e){n||(n=!0,o.resolve(l,e))}),(function(e){n||(n=!0,o.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/messages"),a=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(s[r]);this._dict_set=!0}}function p(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(e,t){var r,s,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(u),a.next_out=0,a.avail_out=u),1!==(r=n.deflate(a,s))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==s||(this.onEnd(c),!(a.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=f,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/constants"),a=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}d.prototype.push=function(e,t){var r,a,l,c,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,r=n.inflateSetDictionary(this.strm,h)),r===s.Z_BUF_ERROR&&!0===m&&(r=s.Z_OK,m=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==s.Z_STREAM_END&&(0!==f.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),c=f.next_out-l,d=o.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&i.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){"use strict";var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,i,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|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},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<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,a=t||e.length,c=new Array(2*a);for(r=n=0;r<a;)if((i=e[r++])<128)c[n++]=i;else if(4<(o=s[i]))c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<a;)i=i<<6|63&e[r++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>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<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,r){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){"use strict";var n=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,r,i){var o=n,s=i+r;e^=-1;for(var a=i;a<s;a++)e=e>>>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)-(4<e?9:0)}function I(e){for(var t=e.length;0<=--t;)e[t]=0}function B(e){var t=e.state,r=t.pending;r>e.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,B(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]&&o<h);if(n=A-(h-o),o=h-A,s<n){if(e.match_start=t,a<=(s=n))break;f=c[o+s-1],p=c[o+s]}}}while((t=d[t&u])>l&&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<f&&(f=h),r=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=s(c.adler,u,f,d):2===c.state.wrap&&(c.adler=a(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=S)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+S-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function W(e,t){for(var r,n;;){if(e.lookahead<k){if(H(e),e.lookahead<k&&t===c)return E;if(0===e.lookahead)break}if(r=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-k&&(e.match_length=D(e,r)),e.match_length>=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<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(N(e,!1),0===e.strm.avail_out))return E}return e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(N(e,!0),0===e.strm.avail_out?O:M):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?E:_}function V(e,t){for(var r,n,i;;){if(e.lookahead<k){if(H(e),e.lookahead<k&&t===c)return E;if(0===e.lookahead)break}if(r=0,e.lookahead>=S&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-k&&(e.match_length=D(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===S&&4096<e.strstart-e.match_start)&&(e.match_length=S-1)),e.prev_length>=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.hash_shift^e.window[e.strstart+S-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=S-1,e.strstart++,n&&(N(e,!1),0===e.strm.avail_out))return E}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&N(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return E}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,t===u?(N(e,!0),0===e.strm.avail_out?O:M):e.last_lit&&(N(e,!1),0===e.strm.avail_out)?E:_}function U(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*x+1)),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*y+1),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),I(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Z(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:P,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),d):z(e,h)}function G(e){var t=Z(e);return t===d&&function(e){e.window_size=2*e.w_size,I(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0}(e.state),t}function X(e,t,r,n,o,s){if(!e)return h;var a=1;if(t===f&&(t=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||v<o||r!==m||n<8||15<n||t<0||9<t||s<0||p<s)return z(e,h);8===n&&(n=9);var l=new j;return(e.state=l).strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+S-1)/S),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,G(e)}n=[new U(0,0,0,0,(function(e,t){var r=65535;for(r>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<t||t<0)return e?z(e,h):h;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return z(e,0===e.avail_out?-5:h);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>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)),B(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)),B(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,L(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(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)),B(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,L(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(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&&B(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(B(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&&0<e.strstart&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+A;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=A-(s-i),e.match_length>e.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&&(I(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),B(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)),B(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==P&&666!==t?z(e,h):(e.state=null,t===P?z(e,-3):d):h},r.deflateSetDictionary=function(e,t){var r,n,o,a,l,c,u,f,p=t.length;if(!e||!e.state)return h;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==T||r.lookahead)return h;for(1===a&&(e.adler=s(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===a&&(I(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<<r.hash_shift^r.window[n+S-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=S-1,H(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=S-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,r.wrap=a,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){"use strict";t.exports=function(e,t){var r,n,i,o,s,a,l,c,u,d,h,f,p,g,m,v,y,b,x,w,C,S,A,k,T;r=e.state,n=e.next_in,k=e.input,i=n+(e.avail_in-5),o=e.next_out,T=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,g=r.lencode,m=r.distcode,v=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{p<15&&(f+=k[n++]<<p,p+=8,f+=k[n++]<<p,p+=8),b=g[f&v];t:for(;;){if(f>>>=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)-1)];continue t}if(32&x){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&b,(x&=15)&&(p<x&&(f+=k[n++]<<p,p+=8),w+=f&(1<<x)-1,f>>>=x,p-=x),p<15&&(f+=k[n++]<<p,p+=8,f+=k[n++]<<p,p+=8),b=m[f&y];r:for(;;){if(f>>>=x=b>>>24,p-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(f&(1<<x)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(C=65535&b,p<(x&=15)&&(f+=k[n++]<<p,(p+=8)<x&&(f+=k[n++]<<p,p+=8)),l<(C+=f&(1<<x)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=x,p-=x,(x=o-s)<C){if(u<(x=C-x)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(A=h,(S=0)===d){if(S+=c-x,x<w){for(w-=x;T[o++]=h[S++],--x;);S=o-C,A=T}}else if(d<x){if(S+=c+d-x,(x-=d)<w){for(w-=x;T[o++]=h[S++],--x;);if(S=0,d<w){for(w-=x=d;T[o++]=h[S++],--x;);S=o-C,A=T}}}else if(S+=d-x,x<w){for(w-=x;T[o++]=h[S++],--x;);S=o-C,A=T}for(;2<w;)T[o++]=A[S++],T[o++]=A[S++],T[o++]=A[S++],w-=3;w&&(T[o++]=A[S++],1<w&&(T[o++]=A[S++]))}else{for(S=o-C;T[o++]=T[S++],T[o++]=T[S++],T[o++]=T[S++],2<(w-=3););w&&(T[o++]=T[S++],1<w&&(T[o++]=T[S++]))}break}}break}}while(n<i&&o<a);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<a?a-o+257:257-(o-a),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){"use strict";var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),s=e("./inffast"),a=e("./inftrees"),l=1,c=2,u=0,d=-2,h=1,f=852,p=592;function g(e){return(e>>>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<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,y(e))):d}function x(e,t){var r,n;return e?(n=new m,(e.state=n).window=null,(r=b(e,t))!==u&&(e.state=null),r):d}var w,C,S=!0;function A(e){if(S){var t;for(w=new n.Buf32(512),C=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(l,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(c,e.lens,0,32,C,0,e.work,{bits:5}),S=!1}e.lencode=w,e.lenbits=9,e.distcode=C,e.distbits=5}function k(e,t,r,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=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<s.wsize&&(s.whave+=o))),0}r.inflateReset=y,r.inflateReset2=b,r.inflateResetKeep=v,r.inflateInit=function(e){return x(e,15)},r.inflateInit2=x,r.inflate=function(e,t){var r,f,p,m,v,y,b,x,w,C,S,T,P,E,_,O,M,z,R,I,B,N,L,F,D=0,H=new n.Buf8(4),W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(r=e.state).mode&&(r.mode=13),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,C=y,S=b,N=u;e:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(2&r.wrap&&35615===x){H[r.check=0]=255&x,H[1]=x>>>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,B=8+(15&(x>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=512&x?10:12,w=x=0;break;case 2:for(;w<16;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(r.flags=x,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=x>>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++]<<w,w+=8}r.head&&(r.head.time=x),512&r.flags&&(H[0]=255&x,H[1]=x>>>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++]<<w,w+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>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++]<<w,w+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(H[0]=255&x,H[1]=x>>>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&&(B=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,B)),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;B=f[m+T++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&T<y;);if(512&r.flags&&(r.check=o(r.check,f,T,m)),y-=T,m+=T,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break e;for(T=0;B=f[m+T++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&T<y;);if(512&r.flags&&(r.check=o(r.check,f,T,m)),y-=T,m+=T,B)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(x!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}w=x=0}r.head&&(r.head.hcrc=r.flags>>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++]<<w,w+=8}e.adler=r.check=g(x),w=x=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=v,e.avail_out=b,e.next_in=m,e.avail_in=y,r.hold=x,r.bits=w,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){x>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}switch(r.last=1&x,w-=1,3&(x>>>=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++]<<w,w+=8}if((65535&x)!=(x>>>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<T&&(T=y),b<T&&(T=b),0===T)break e;n.arraySet(p,f,m,T,v),y-=T,m+=T,b-=T,v+=T,r.length-=T;break}r.mode=12;break;case 17:for(;w<14;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(r.nlen=257+(31&x),x>>>=5,w-=5,r.ndist=1+(31&x),x>>>=5,w-=5,r.ncode=4+(15&x),x>>>=4,w-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}r.lens[W[r.have++]]=7&x,x>>>=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<r.nlen+r.ndist;){for(;O=(D=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,M=65535&D,!((_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(M<16)x>>>=_,w-=_,r.lens[r.have++]=M;else{if(16===M){for(F=_+2;w<F;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(x>>>=_,w-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],T=3+(3&x),x>>>=2,w-=2}else if(17===M){for(F=_+3;w<F;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}w-=_,B=0,T=3+(7&(x>>>=_)),x>>>=3,w-=3}else{for(F=_+7;w<F;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}w-=_,B=0,T=11+(127&(x>>>=_)),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++]=B}}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<<r.lenbits)-1])>>>16&255,M=65535&D,!((_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(O&&0==(240&O)){for(z=_,R=O,I=M;O=(D=r.lencode[I+((x&(1<<z+R)-1)>>z)])>>>16&255,M=65535&D,!(z+(_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}x>>>=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<F;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}r.length+=x&(1<<r.extra)-1,x>>>=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<<r.distbits)-1])>>>16&255,M=65535&D,!((_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(0==(240&O)){for(z=_,R=O,I=M;O=(D=r.distcode[I+((x&(1<<z+R)-1)>>z)])>>>16&255,M=65535&D,!(z+(_=D>>>24)<=w);){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}x>>>=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<F;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}r.offset+=x&(1<<r.extra)-1,x>>>=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(b<T&&(T=b),b-=T,r.length-=T;p[v++]=E[P++],--T;);0===r.length&&(r.mode=21);break;case 26:if(0===b)break e;p[v++]=r.length,b--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===y)break e;y--,x|=f[m++]<<w,w+=8}if(S-=b,e.total_out+=S,r.total+=S,S&&(e.adler=r.check=r.flags?o(r.check,p,S,v-S):i(r.check,p,S,v-S)),S=b,(r.flags?x:g(x))!==r.check){e.msg="incorrect data check",r.mode=30;break}w=x=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===y)break e;y--,x+=f[m++]<<w,w+=8}if(x!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}w=x=0}r.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=v,e.avail_out=b,e.next_in=m,e.avail_in=y,r.hold=x,r.bits=w,(r.wsize||S!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&k(e,e.output,e.next_out,S-e.avail_out)?(r.mode=31,-4):(C-=e.avail_in,S-=e.avail_out,e.total_in+=C,e.total_out+=S,r.total+=S,r.wrap&&S&&(e.adler=r.check=r.flags?o(r.check,p,S,e.next_out-S):i(r.check,p,S,e.next_out-S)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==C&&0===S||4===t)&&N===u&&(N=-5),N)},r.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?d:((r.head=t).done=!1,u):d},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?d:11===r.mode&&i(1,t,n,0)!==r.check?-3:k(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){"use strict";var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,c,u,d,h){var f,p,g,m,v,y,b,x,w,C=h.bits,S=0,A=0,k=0,T=0,P=0,E=0,_=0,O=0,M=0,z=0,R=null,I=0,B=new n.Buf16(16),N=new n.Buf16(16),L=null,F=0;for(S=0;S<=15;S++)B[S]=0;for(A=0;A<l;A++)B[t[r+A]]++;for(P=C,T=15;1<=T&&0===B[T];T--);if(T<P&&(P=T),0===T)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(k=1;k<T&&0===B[k];k++);for(P<k&&(P=k),S=O=1;S<=15;S++)if(O<<=1,(O-=B[S])<0)return-1;if(0<O&&(0===e||1!==T))return-1;for(N[1]=0,S=1;S<15;S++)N[S+1]=N[S]+B[S];for(A=0;A<l;A++)0!==t[r+A]&&(d[N[t[r+A]]++]=A);if(y=0===e?(R=L=d,19):1===e?(R=i,I-=257,L=o,F-=257,256):(R=s,L=a,-1),S=k,v=u,_=A=z=0,g=-1,m=(M=1<<(E=P))-1,1===e&&852<M||2===e&&592<M)return 1;for(;;){for(b=S-_,w=d[A]<y?(x=0,d[A]):d[A]>y?(x=L[F+d[A]],R[I+d[A]]):(x=96,0),f=1<<S-_,k=p=1<<E;c[v+(z>>_)+(p-=f)]=b<<24|x<<16|w|0,0!==p;);for(f=1<<S-1;z&f;)f>>=1;if(0!==f?(z&=f-1,z+=f):z=0,A++,0==--B[S]){if(S===T)break;S=t[r+d[A]]}if(P<S&&(z&m)!==g){for(0===_&&(_=P),v+=k,O=1<<(E=S-_);E+_<T&&!((O-=B[E+_])<=0);)E++,O<<=1;if(M+=1<<E,1===e&&852<M||2===e&&592<M)return 1;c[g=z&m]=P<<24|E<<16|v-u|0}}return 0!==z&&(c[v+z]=S-_<<24|64<<16|0),h.bits=P,0}},{"../utils/common":41}],51:[function(e,t,r){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){"use strict";var n=e("../utils/common"),i=0,o=1;function s(e){for(var t=e.length;0<=--t;)e[t]=0}var a=0,l=29,c=256,u=c+1+l,d=30,h=19,f=2*u+1,p=15,g=16,m=7,v=256,y=16,b=17,x=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(u+2));s(k);var T=new Array(2*d);s(T);var P=new Array(512);s(P);var E=new Array(256);s(E);var _=new Array(l);s(_);var O,M,z,R=new Array(d);function I(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function B(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function N(e){return e<256?P[e]:P[256+(e>>>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<<e.bi_valid&65535,L(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=r-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function D(e,t,r){F(e,r[2*t],r[2*t+1])}function H(e,t){for(var r=0;r|=1&e,e>>>=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<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function U(e){8<e.bi_valid?L(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function Z(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&j(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!j(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function G(e,t,r){var n,i,o,s,a=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],i=e.pending_buf[e.l_buf+a],a++,0===n?D(e,i,t):(D(e,(o=E[i])+c+1,t),0!==(s=w[o])&&F(e,i-=_[o],s),D(e,o=N(--n),r),0!==(s=C[o])&&F(e,n-=R[o],s)),a<e.last_lit;);D(e,v,t)}function X(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=f,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=c,r=e.heap_len>>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<f;r++)m<(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(o=m,v++),l[2*n+1]=o,c<n||(e.bl_count[o]++,s=0,g<=n&&(s=h[n-g]),a=l[2*n],e.opt_len+=a*(o+s),d&&(e.static_len+=a*(u[2*n+1]+s)));if(0!==v){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(o=m;0!==o;o--)for(n=e.bl_count[o];0!==n;)c<(i=e.heap[--r])||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),W(o,c,e.bl_count)}function Y(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a<l&&i===s||(a<c?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):a<=10?e.bl_tree[2*b]++:e.bl_tree[2*x]++,o=i,c=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4))}function $(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++a<l&&i===s)){if(a<c)for(;D(e,i,e.bl_tree),0!=--a;);else 0!==i?(i!==o&&(D(e,i,e.bl_tree),a--),D(e,y,e.bl_tree),F(e,a-3,2)):a<=10?(D(e,b,e.bl_tree),F(e,a-3,3)):(D(e,x,e.bl_tree),F(e,a-11,7));o=i,c=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4)}}s(R);var q=!1;function Q(e,t,r,i){F(e,(a<<1)+(i?1:0),3),function(e,t,r,i){U(e),i&&(L(e,r),L(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}r._tr_init=function(e){q||(function(){var e,t,r,n,i,o=new Array(p+1);for(n=r=0;n<l-1;n++)for(_[n]=r,e=0;e<1<<w[n];e++)E[r++]=n;for(E[r-1]=n,n=i=0;n<16;n++)for(R[n]=i,e=0;e<1<<C[n];e++)P[i++]=n;for(i>>=7;n<d;n++)for(R[n]=i<<7,e=0;e<1<<C[n]-7;e++)P[256+i++]=n;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,o[8]++;for(;e<=255;)k[2*e+1]=9,e++,o[9]++;for(;e<=279;)k[2*e+1]=7,e++,o[7]++;for(;e<=287;)k[2*e+1]=8,e++,o[8]++;for(W(k,u+1,o),e=0;e<d;e++)T[2*e+1]=5,T[2*e]=H(e,5);O=new I(k,w,c+1,u,p),M=new I(T,C,0,d,p),z=new I(new Array(0),S,0,h,m)}(),q=!0),e.l_desc=new B(e.dyn_ltree,O),e.d_desc=new B(e.dyn_dtree,M),e.bl_desc=new B(e.bl_tree,z),e.bi_buf=0,e.bi_valid=0,V(e)},r._tr_stored_block=Q,r._tr_flush_block=function(e,t,r,n){var s,a,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=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<c;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),X(e,e.l_desc),X(e,e.d_desc),l=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),X(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*A[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),s=e.opt_len+3+7>>>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<n;i++)F(e,e.bl_tree[2*A[i]+1],3);$(e,e.dyn_ltree,t-1),$(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),G(e,e.dyn_ltree,e.dyn_dtree)),V(e),n&&U(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>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;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return a[s]=i,r(s),s++},u.clearImmediate=d}function d(e){delete a[e]}function h(e){if(l)setTimeout(h,0,e);else{var r=a[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))},810:function(e){(function(){var t,r,n,i,o,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-o)/1e6},r=process.hrtime,t=function(){var e;return e=r(),1e9*e[0]+e[1]},i=t(),s=1e9*process.uptime(),o=i-s):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},6790:function(e,t,r){r(7658);for(var n=r(810),i="undefined"===typeof window?r.g:window,o=["moz","webkit"],s="AnimationFrame",a=i["request"+s],l=i["cancel"+s]||i["cancelRequest"+s],c=0;!a&&c<o.length;c++)a=i[o[c]+"Request"+s],l=i[o[c]+"Cancel"+s]||i[o[c]+"CancelRequest"+s];if(!a||!l){var u=0,d=0,h=[],f=1e3/60;a=function(e){if(0===h.length){var t=n(),r=Math.max(0,f-(t-u));u=r+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(r){setTimeout((function(){throw r}),0)}}),Math.round(r))}return h.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return a.call(i,e)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(e){e||(e=i),e.requestAnimationFrame=a,e.cancelAnimationFrame=l}},6290:function(e){e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,s=i.exec(e);if(s){var a=o(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(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<r.length;n++)for(var i=r[n].example,o=0;o<i.length;o++)e[e.length]=i[o];for(var s in t)e[e.length]=s;var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(n=0;n<e.length;n++)try{var l=document.createElement("li"),c=new RGBColor(e[n]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),u.appendChild(document.createTextNode("test"));var d=document.createTextNode(" "+e[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"}}]);