diff --git a/assets/401-BIkHzDoS.css b/assets/401-BIkHzDoS.css new file mode 100644 index 00000000..d6ac225d --- /dev/null +++ b/assets/401-BIkHzDoS.css @@ -0,0 +1 @@ +.errPage-container[data-v-9001f8b1]{width:800px;max-width:100%;margin:100px auto}.errPage-container .pan-back-btn[data-v-9001f8b1]{color:#fff;background:#008489;border:none!important}.errPage-container .pan-gif[data-v-9001f8b1]{display:block;margin:0 auto}.errPage-container .pan-img[data-v-9001f8b1]{display:block;width:100%;margin:0 auto}.errPage-container .text-jumbo[data-v-9001f8b1]{font-size:60px;font-weight:700;color:#484848}.errPage-container .list-unstyled[data-v-9001f8b1]{font-size:14px}.errPage-container .list-unstyled li[data-v-9001f8b1]{padding-bottom:5px}.errPage-container .list-unstyled a[data-v-9001f8b1]{color:#008489;text-decoration:none}.errPage-container .list-unstyled a[data-v-9001f8b1]:hover{text-decoration:underline} diff --git a/assets/401-CoefrlKD.js b/assets/401-CoefrlKD.js new file mode 100644 index 00000000..1ff39e73 --- /dev/null +++ b/assets/401-CoefrlKD.js @@ -0,0 +1 @@ +import{a as s,c as a}from"./index-CV6Kdia6.js";import{j as e,I as t,J as i,k as r,l as o}from"./vue-CfXu-DEr.js";import"./element-plus-Dy-NuVsF.js";import"./lodash-es-DIelbCxD.js";import"./fabric-Dlz3ta-n.js";import"./clipper-lib-Cdu7DM5D.js";const p={class:"errPage-container"},l=a(e({__name:"401",setup(a){const e=t({ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1});return i(e),s(),(s,a)=>(r(),o("div",p))}}),[["__scopeId","data-v-9001f8b1"]]);export{l as default}; diff --git a/assets/404-CTCp2S_w.js b/assets/404-CTCp2S_w.js new file mode 100644 index 00000000..eaa1e766 --- /dev/null +++ b/assets/404-CTCp2S_w.js @@ -0,0 +1 @@ +var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,p=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;import{j as i,k as c,l as n}from"./vue-CfXu-DEr.js";import{c as l}from"./index-CV6Kdia6.js";import"./element-plus-Dy-NuVsF.js";import"./lodash-es-DIelbCxD.js";import"./fabric-Dlz3ta-n.js";import"./clipper-lib-Cdu7DM5D.js";const b={class:"wscn-http404-container"},j=i((m=((e,r)=>{for(var t in r||(r={}))a.call(r,t)&&p(e,t,r[t]);if(o)for(var t of o(r))s.call(r,t)&&p(e,t,r[t]);return e})({},{name:"Page404"}),r(m,t({setup:e=>(e,r)=>(c(),n("div",b))}))));var m;const f=l(j,[["__scopeId","data-v-7aedc72b"]]);export{f as default}; diff --git a/assets/404-DQrWRSfw.css b/assets/404-DQrWRSfw.css new file mode 100644 index 00000000..214955ae --- /dev/null +++ b/assets/404-DQrWRSfw.css @@ -0,0 +1 @@ +.wscn-http404-container[data-v-7aedc72b]{position:absolute;top:40%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.wscn-http404[data-v-7aedc72b]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-7aedc72b]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-7aedc72b]{width:100%}.wscn-http404 .pic-404__child[data-v-7aedc72b]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-7aedc72b]{top:17px;left:220px;width:80px;opacity:0;-webkit-animation-name:cloudLeft-7aedc72b;animation-name:cloudLeft-7aedc72b;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .pic-404__child.mid[data-v-7aedc72b]{top:10px;left:420px;width:46px;opacity:0;-webkit-animation-name:cloudMid-7aedc72b;animation-name:cloudMid-7aedc72b;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-delay:1.2s;animation-delay:1.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .pic-404__child.right[data-v-7aedc72b]{top:100px;left:500px;width:62px;opacity:0;-webkit-animation-name:cloudRight-7aedc72b;animation-name:cloudRight-7aedc72b;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes cloudLeft-7aedc72b{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-7aedc72b{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-7aedc72b{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-7aedc72b{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-7aedc72b{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-7aedc72b{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-7aedc72b]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-7aedc72b]{margin-bottom:20px;font-size:32px;font-weight:700;line-height:40px;color:#1482f0;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-7aedc72b]{margin-bottom:10px;font-size:20px;font-weight:700;line-height:24px;color:#222;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-7aedc72b]{margin-bottom:30px;font-size:13px;line-height:21px;color:gray;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__return-home[data-v-7aedc72b]{display:block;float:left;width:110px;height:36px;font-size:14px;line-height:36px;color:#fff;text-align:center;cursor:pointer;background:#1482f0;border-radius:100px;opacity:0;-webkit-animation-name:slideUp-7aedc72b;animation-name:slideUp-7aedc72b;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-7aedc72b{0%{opacity:0;-webkit-transform:translateY(60px);transform:translateY(60px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes slideUp-7aedc72b{0%{opacity:0;-webkit-transform:translateY(60px);transform:translateY(60px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}} diff --git a/assets/clipper-lib-Cdu7DM5D.js b/assets/clipper-lib-Cdu7DM5D.js new file mode 100644 index 00000000..43b2782a --- /dev/null +++ b/assets/clipper-lib-Cdu7DM5D.js @@ -0,0 +1 @@ +var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var i=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,n.get?n:{enumerable:!0,get:function(){return t[e]}})})),i}var n,o={exports:{}};n=o,function(){var t,e={version:"6.4.2.2",use_lines:!0,use_xyz:!1},i=!1;if(n.exports?(n.exports=e,i=!0):"undefined"!=typeof document?window.ClipperLib=e:self.ClipperLib=e,i)o="chrome",t="Netscape";else{var o=navigator.userAgent.toString().toLowerCase();t=navigator.appName}var r,s={};function l(t,i,n){e.biginteger_used=1,null!=t&&("number"==typeof t&&void 0===i?this.fromInt(t):"number"==typeof t?this.fromNumber(t,i,n):null==i&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,i))}function p(){return new l(null,void 0,void 0)}-1!=o.indexOf("chrome")&&-1==o.indexOf("chromium")?s.chrome=1:s.chrome=0,-1!=o.indexOf("chromium")?s.chromium=1:s.chromium=0,-1!=o.indexOf("safari")&&-1==o.indexOf("chrome")&&-1==o.indexOf("chromium")?s.safari=1:s.safari=0,-1!=o.indexOf("firefox")?s.firefox=1:s.firefox=0,-1!=o.indexOf("firefox/17")?s.firefox17=1:s.firefox17=0,-1!=o.indexOf("firefox/15")?s.firefox15=1:s.firefox15=0,-1!=o.indexOf("firefox/3")?s.firefox3=1:s.firefox3=0,-1!=o.indexOf("opera")?s.opera=1:s.opera=0,-1!=o.indexOf("msie 10")?s.msie10=1:s.msie10=0,-1!=o.indexOf("msie 9")?s.msie9=1:s.msie9=0,-1!=o.indexOf("msie 8")?s.msie8=1:s.msie8=0,-1!=o.indexOf("msie 7")?s.msie7=1:s.msie7=0,-1!=o.indexOf("msie ")?s.msie=1:s.msie=0,e.biginteger_used=null,"Microsoft Internet Explorer"==t?(l.prototype.am=function(t,e,i,n,o,r){for(var s=32767&e,l=e>>15;--r>=0;){var p=32767&this[t],u=this[t++]>>15,h=l*p+u*s;o=((p=s*p+((32767&h)<<15)+i[n]+(1073741823&o))>>>30)+(h>>>15)+l*u+(o>>>30),i[n++]=1073741823&p}return o},r=30):"Netscape"!=t?(l.prototype.am=function(t,e,i,n,o,r){for(;--r>=0;){var s=e*this[t++]+i[n]+o;o=Math.floor(s/67108864),i[n++]=67108863&s}return o},r=26):(l.prototype.am=function(t,e,i,n,o,r){for(var s=16383&e,l=e>>14;--r>=0;){var p=16383&this[t],u=this[t++]>>14,h=l*p+u*s;o=((p=s*p+((16383&h)<<14)+i[n]+o)>>28)+(h>>14)+l*u,i[n++]=268435455&p}return o},r=28),l.prototype.DB=r,l.prototype.DM=(1<>>16)&&(t=e,i+=16),0!=(e=t>>8)&&(t=e,i+=8),0!=(e=t>>4)&&(t=e,i+=4),0!=(e=t>>2)&&(t=e,i+=2),0!=(e=t>>1)&&(t=e,i+=1),i}function c(t){this.m=t}function v(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function E(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function T(){}function g(t){return t}function X(t){this.r2=p(),this.q3=p(),l.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}c.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},c.prototype.revert=function(t){return t},c.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},c.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},c.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},v.prototype.convert=function(t){var e=p();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(l.ZERO)>0&&this.m.subTo(e,e),e},v.prototype.revert=function(t){var e=p();return t.copyTo(e),this.reduce(e),e},v.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[i=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[i]>=t.DV;)t[i]-=t.DV,t[++i]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},v.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},v.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},l.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},l.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},l.prototype.fromString=function(t,e){var i;if(16==e)i=4;else if(8==e)i=3;else if(256==e)i=8;else if(2==e)i=1;else if(32==e)i=5;else{if(4!=e)return void this.fromRadix(t,e);i=2}this.t=0,this.s=0;for(var n=t.length,o=!1,r=0;--n>=0;){var s=8==i?255&t[n]:P(t,n);s<0?"-"==t.charAt(n)&&(o=!0):(o=!1,0==r?this[this.t++]=s:r+i>this.DB?(this[this.t-1]|=(s&(1<>this.DB-r):this[this.t-1]|=s<=this.DB&&(r-=this.DB))}8==i&&128&t[0]&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},l.prototype.dlShiftTo=function(t,e){var i;for(i=this.t-1;i>=0;--i)e[i+t]=this[i];for(i=t-1;i>=0;--i)e[i]=0;e.t=this.t+t,e.s=this.s},l.prototype.drShiftTo=function(t,e){for(var i=t;i=0;--i)e[i+s+1]=this[i]>>o|l,l=(this[i]&r)<=0;--i)e[i]=0;e[s]=l,e.t=this.t+s+1,e.s=this.s,e.clamp()},l.prototype.rShiftTo=function(t,e){e.s=this.s;var i=Math.floor(t/this.DB);if(i>=this.t)e.t=0;else{var n=t%this.DB,o=this.DB-n,r=(1<>n;for(var s=i+1;s>n;n>0&&(e[this.t-i-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[i++]=this.DV+n:n>0&&(e[i++]=n),e.t=i,e.clamp()},l.prototype.multiplyTo=function(t,e){var i=this.abs(),n=t.abs(),o=i.t;for(e.t=o+n.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[i]=0;for(i=0;i=e.DV&&(t[i+e.t]-=e.DV,t[i+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(i,e[i],t,2*i,0,1)),t.s=0,t.clamp()},l.prototype.divRemTo=function(t,e,i){var n=t.abs();if(!(n.t<=0)){var o=this.abs();if(o.t0?(n.lShiftTo(h,r),o.lShiftTo(h,i)):(n.copyTo(r),o.copyTo(i));var a=r.t,f=r[a-1];if(0!=f){var d=f*(1<1?r[a-2]>>this.F2:0),P=this.FV/d,m=(1<=0&&(i[i.t++]=1,i.subTo(I,i)),l.ONE.dlShiftTo(a,I),I.subTo(r,r);r.t=0;){var x=i[--v]==f?this.DM:Math.floor(i[v]*P+(i[v-1]+c)*m);if((i[v]+=r.am(0,x,i,C,0,a))0&&i.rShiftTo(h,i),s<0&&l.ZERO.subTo(i,i)}}},l.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},l.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},l.prototype.exp=function(t,e){if(t>4294967295||t<1)return l.ONE;var i=p(),n=p(),o=e.convert(this),r=y(t)-1;for(o.copyTo(i);--r>=0;)if(e.sqrTo(i,n),(t&1<0)e.mulTo(n,o,i);else{var s=i;i=n,n=s}return e.revert(i)},l.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var i,n=(1<0)for(l>l)>0&&(o=!0,r=d(i));s>=0;)l>(l+=this.DB-e)):(i=this[s]>>(l-=e)&n,l<=0&&(l+=this.DB,--s)),i>0&&(o=!0),o&&(r+=d(i));return o?r:"0"},l.prototype.negate=function(){var t=p();return l.ZERO.subTo(this,t),t},l.prototype.abs=function(){return this.s<0?this.negate():this},l.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var i=this.t;if(0!=(e=i-t.t))return this.s<0?-e:e;for(;--i>=0;)if(0!=(e=this[i]-t[i]))return e;return 0},l.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)},l.prototype.mod=function(t){var e=p();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(l.ZERO)>0&&t.subTo(e,e),e},l.prototype.modPowInt=function(t,e){var i;return i=t<256||e.isEven()?new c(e):new v(e),this.exp(t,i)},l.ZERO=m(0),l.ONE=m(1),T.prototype.convert=g,T.prototype.revert=g,T.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i)},T.prototype.sqrTo=function(t,e){t.squareTo(e)},X.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=p();return t.copyTo(e),this.reduce(e),e},X.prototype.revert=function(t){return t},X.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},X.prototype.mulTo=function(t,e,i){t.multiplyTo(e,i),this.reduce(i)},X.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var O=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],N=(1<<26)/O[O.length-1];l.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},l.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),i=Math.pow(t,e),n=m(i),o=p(),r=p(),s="";for(this.divRemTo(n,o,r);o.signum()>0;)s=(i+r.intValue()).toString(t).substr(1)+s,o.divRemTo(n,o,r);return r.intValue().toString(t)+s},l.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var i=this.chunkSize(e),n=Math.pow(e,i),o=!1,r=0,s=0,p=0;p=i&&(this.dMultiply(n),this.dAddOffset(s,0),r=0,s=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(s,0)),o&&l.ZERO.subTo(this,this)},l.prototype.fromNumber=function(t,e,i){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(l.ONE.shiftLeft(t-1),I,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(l.ONE.shiftLeft(t-1),this);else{var n=new Array,o=7&t;n.length=1+(t>>3),e.nextBytes(n),o>0?n[0]&=(1<>=this.DB;if(t.t>=this.DB;n+=this.s}else{for(n+=this.s;i>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[i++]=n:n<-1&&(e[i++]=this.DV+n),e.t=i,e.clamp()},l.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},l.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},l.prototype.multiplyLowerTo=function(t,e,i){var n,o=Math.min(this.t+t.t,e);for(i.s=0,i.t=o;o>0;)i[--o]=0;for(n=i.t-this.t;o=0;)i[n]=0;for(n=Math.max(e-this.t,0);n0)if(0==e)i=this[0]%t;else for(var n=this.t-1;n>=0;--n)i=(e*i+this[n])%t;return i},l.prototype.millerRabin=function(t){var e=this.subtract(l.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var n=e.shiftRight(i);(t=t+1>>1)>O.length&&(t=O.length);for(var o=p(),r=0;r>24},l.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},l.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},l.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var i,n=this.DB-t*this.DB%8,o=0;if(t-- >0)for(n>n)!=(this.s&this.DM)>>n&&(e[o++]=i|this.s<=0;)n<8?(i=(this[t]&(1<>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),128&i&&(i|=-256),0==o&&(128&this.s)!=(128&i)&&++o,(o>0||i!=this.s)&&(e[o++]=i);return e},l.prototype.equals=function(t){return 0==this.compareTo(t)},l.prototype.min=function(t){return this.compareTo(t)<0?this:t},l.prototype.max=function(t){return this.compareTo(t)>0?this:t},l.prototype.and=function(t){var e=p();return this.bitwiseTo(t,C,e),e},l.prototype.or=function(t){var e=p();return this.bitwiseTo(t,I,e),e},l.prototype.xor=function(t){var e=p();return this.bitwiseTo(t,x,e),e},l.prototype.andNot=function(t){var e=p();return this.bitwiseTo(t,_,e),e},l.prototype.not=function(){for(var t=p(),e=0;e=this.t?0!=this.s:!!(this[e]&1<1){var a=p();for(n.sqrTo(s[1],a);l<=h;)s[l]=p(),n.mulTo(a,s[l-2],s[l]),l+=2}var f,d,P=t.t-1,C=!0,I=p();for(o=y(t[P])-1;P>=0;){for(o>=u?f=t[P]>>o-u&h:(f=(t[P]&(1<0&&(f|=t[P-1]>>this.DB+o-u)),l=i;!(1&f);)f>>=1,--l;if((o-=l)<0&&(o+=this.DB,--P),C)s[f].copyTo(r),C=!1;else{for(;l>1;)n.sqrTo(r,I),n.sqrTo(I,r),l-=2;l>0?n.sqrTo(r,I):(d=r,r=I,I=d),n.mulTo(I,s[f],r)}for(;P>=0&&!(t[P]&1<=0?(i.subTo(n,i),e&&o.subTo(s,o),r.subTo(p,r)):(n.subTo(i,n),e&&s.subTo(o,s),p.subTo(r,p))}return 0!=n.compareTo(l.ONE)?l.ZERO:p.compareTo(t)>=0?p.subtract(t):p.signum()<0?(p.addTo(t,p),p.signum()<0?p.add(t):p):p},l.prototype.pow=function(t){return this.exp(t,new T)},l.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(e.compareTo(i)<0){var n=e;e=i,i=n}var o=e.getLowestSetBit(),r=i.getLowestSetBit();if(r<0)return e;for(o0&&(e.rShiftTo(r,e),i.rShiftTo(r,i));e.signum()>0;)(o=e.getLowestSetBit())>0&&e.rShiftTo(o,e),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),e.compareTo(i)>=0?(e.subTo(i,e),e.rShiftTo(1,e)):(i.subTo(e,i),i.rShiftTo(1,i));return r>0&&i.lShiftTo(r,i),i},l.prototype.isProbablePrime=function(t){var e,i=this.abs();if(1==i.t&&i[0]<=O[O.length-1]){for(e=0;e0},Y.op_LessThan=function(t,e){return t.compareTo(e)<0},Y.op_Addition=function(t,e){return new Y(t,void 0,void 0).add(new Y(e,void 0,void 0))},Y.op_Subtraction=function(t,e){return new Y(t,void 0,void 0).subtract(new Y(e,void 0,void 0))},Y.Int128Mul=function(t,e){return new Y(t,void 0,void 0).multiply(new Y(e,void 0,void 0))},Y.op_Division=function(t,e){return t.divide(e)},Y.prototype.ToDouble=function(){return parseFloat(this.toString())};var S=function(t,e){var i;if(void 0===Object.getOwnPropertyNames){for(i in e.prototype)void 0!==t.prototype[i]&&t.prototype[i]!==Object.prototype[i]||(t.prototype[i]=e.prototype[i]);for(i in e)void 0===t[i]&&(t[i]=e[i]);t.$baseCtor=e}else{for(var n=Object.getOwnPropertyNames(e.prototype),o=0;o0?this.m_Childs[0]:this.GetNextSiblingUp()},e.PolyNode.prototype.GetNextSiblingUp=function(){return null===this.m_Parent?null:this.m_Index===this.m_Parent.m_Childs.length-1?this.m_Parent.GetNextSiblingUp():this.m_Parent.m_Childs[this.m_Index+1]},e.PolyNode.prototype.Childs=function(){return this.m_Childs},e.PolyNode.prototype.Parent=function(){return this.m_Parent},e.PolyNode.prototype.IsHole=function(){return this.IsHoleNode()},e.PolyTree=function(){this.m_AllPolys=[],e.PolyNode.call(this)},e.PolyTree.prototype.Clear=function(){for(var t=0,e=this.m_AllPolys.length;t0?this.m_Childs[0]:null},e.PolyTree.prototype.Total=function(){var t=this.m_AllPolys.length;return t>0&&this.m_Childs[0]!==this.m_AllPolys[0]&&t--,t},S(e.PolyTree,e.PolyNode),e.Math_Abs_Int64=e.Math_Abs_Int32=e.Math_Abs_Double=function(t){return Math.abs(t)},e.Math_Max_Int32_Int32=function(t,e){return Math.max(t,e)},s.msie||s.opera||s.safari?e.Cast_Int32=function(t){return 0|t}:e.Cast_Int32=function(t){return~~t},void 0===Number.toInteger&&(Number.toInteger=null),s.chrome?e.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):~~t}:s.firefox&&"function"==typeof Number.toInteger?e.Cast_Int64=function(t){return Number.toInteger(t)}:s.msie7||s.msie8?e.Cast_Int64=function(t){return parseInt(t,10)}:s.msie?e.Cast_Int64=function(t){return t<-2147483648||t>2147483647?t<0?Math.ceil(t):Math.floor(t):0|t}:e.Cast_Int64=function(t){return t<0?Math.ceil(t):Math.floor(t)},e.Clear=function(t){t.length=0},e.PI=3.141592653589793,e.PI2=6.283185307179586,e.IntPoint=function(){var t=arguments,i=t.length;if(this.X=0,this.Y=0,e.use_xyz)if(this.Z=0,3===i)this.X=t[0],this.Y=t[1],this.Z=t[2];else if(2===i)this.X=t[0],this.Y=t[1],this.Z=0;else if(1===i)if(t[0]instanceof e.DoublePoint){var n=t[0];this.X=e.Clipper.Round(n.X),this.Y=e.Clipper.Round(n.Y),this.Z=0}else void 0===(o=t[0]).Z&&(o.Z=0),this.X=o.X,this.Y=o.Y,this.Z=o.Z;else this.X=0,this.Y=0,this.Z=0;else if(2===i)this.X=t[0],this.Y=t[1];else if(1===i)if(t[0]instanceof e.DoublePoint)n=t[0],this.X=e.Clipper.Round(n.X),this.Y=e.Clipper.Round(n.Y);else{var o=t[0];this.X=o.X,this.Y=o.Y}else this.X=0,this.Y=0},e.IntPoint.op_Equality=function(t,e){return t.X===e.X&&t.Y===e.Y},e.IntPoint.op_Inequality=function(t,e){return t.X!==e.X||t.Y!==e.Y},e.IntPoint0=function(){this.X=0,this.Y=0,e.use_xyz&&(this.Z=0)},e.IntPoint0.prototype=e.IntPoint.prototype,e.IntPoint1=function(t){this.X=t.X,this.Y=t.Y,e.use_xyz&&(void 0===t.Z?this.Z=0:this.Z=t.Z)},e.IntPoint1.prototype=e.IntPoint.prototype,e.IntPoint1dp=function(t){this.X=e.Clipper.Round(t.X),this.Y=e.Clipper.Round(t.Y),e.use_xyz&&(this.Z=0)},e.IntPoint1dp.prototype=e.IntPoint.prototype,e.IntPoint2=function(t,i,n){this.X=t,this.Y=i,e.use_xyz&&(this.Z=void 0===n?0:n)},e.IntPoint2.prototype=e.IntPoint.prototype,e.IntRect=function(){var t=arguments,e=t.length;if(4===e)this.left=t[0],this.top=t[1],this.right=t[2],this.bottom=t[3];else if(1===e){var i=t[0];this.left=i.left,this.top=i.top,this.right=i.right,this.bottom=i.bottom}else this.left=0,this.top=0,this.right=0,this.bottom=0},e.IntRect0=function(){this.left=0,this.top=0,this.right=0,this.bottom=0},e.IntRect0.prototype=e.IntRect.prototype,e.IntRect1=function(t){this.left=t.left,this.top=t.top,this.right=t.right,this.bottom=t.bottom},e.IntRect1.prototype=e.IntRect.prototype,e.IntRect4=function(t,e,i,n){this.left=t,this.top=e,this.right=i,this.bottom=n},e.IntRect4.prototype=e.IntRect.prototype,e.ClipType={ctIntersection:0,ctUnion:1,ctDifference:2,ctXor:3},e.PolyType={ptSubject:0,ptClip:1},e.PolyFillType={pftEvenOdd:0,pftNonZero:1,pftPositive:2,pftNegative:3},e.JoinType={jtSquare:0,jtRound:1,jtMiter:2},e.EndType={etOpenSquare:0,etOpenRound:1,etOpenButt:2,etClosedLine:3,etClosedPolygon:4},e.EdgeSide={esLeft:0,esRight:1},e.Direction={dRightToLeft:0,dLeftToRight:1},e.TEdge=function(){this.Bot=new e.IntPoint0,this.Curr=new e.IntPoint0,this.Top=new e.IntPoint0,this.Delta=new e.IntPoint0,this.Dx=0,this.PolyTyp=e.PolyType.ptSubject,this.Side=e.EdgeSide.esLeft,this.WindDelta=0,this.WindCnt=0,this.WindCnt2=0,this.OutIdx=0,this.Next=null,this.Prev=null,this.NextInLML=null,this.NextInAEL=null,this.PrevInAEL=null,this.NextInSEL=null,this.PrevInSEL=null},e.IntersectNode=function(){this.Edge1=null,this.Edge2=null,this.Pt=new e.IntPoint0},e.MyIntersectNodeSort=function(){},e.MyIntersectNodeSort.Compare=function(t,e){var i=e.Pt.Y-t.Pt.Y;return i>0?1:i<0?-1:0},e.LocalMinima=function(){this.Y=0,this.LeftBound=null,this.RightBound=null,this.Next=null},e.Scanbeam=function(){this.Y=0,this.Next=null},e.Maxima=function(){this.X=0,this.Next=null,this.Prev=null},e.OutRec=function(){this.Idx=0,this.IsHole=!1,this.IsOpen=!1,this.FirstLeft=null,this.Pts=null,this.BottomPt=null,this.PolyNode=null},e.OutPt=function(){this.Idx=0,this.Pt=new e.IntPoint0,this.Next=null,this.Prev=null},e.Join=function(){this.OutPt1=null,this.OutPt2=null,this.OffPt=new e.IntPoint0},e.ClipperBase=function(){this.m_MinimaList=null,this.m_CurrentLM=null,this.m_edges=new Array,this.m_UseFullRange=!1,this.m_HasOpenPaths=!1,this.PreserveCollinear=!1,this.m_Scanbeam=null,this.m_PolyOuts=null,this.m_ActiveEdges=null},e.ClipperBase.horizontal=-9007199254740992,e.ClipperBase.Skip=-2,e.ClipperBase.Unassigned=-1,e.ClipperBase.tolerance=1e-20,e.ClipperBase.loRange=47453132,e.ClipperBase.hiRange=0xfffffffffffff,e.ClipperBase.near_zero=function(t){return t>-e.ClipperBase.tolerance&&te.X==t.Xe.Y==t.Ye.X==t.Xe.Y==t.Ye.ClipperBase.hiRange||t.Y>e.ClipperBase.hiRange||-t.X>e.ClipperBase.hiRange||-t.Y>e.ClipperBase.hiRange)&&e.Error("Coordinate outside allowed range in RangeTest()."):(t.X>e.ClipperBase.loRange||t.Y>e.ClipperBase.loRange||-t.X>e.ClipperBase.loRange||-t.Y>e.ClipperBase.loRange)&&(i.Value=!0,this.RangeTest(t,i))},e.ClipperBase.prototype.InitEdge=function(t,i,n,o){t.Next=i,t.Prev=n,t.Curr.X=o.X,t.Curr.Y=o.Y,e.use_xyz&&(t.Curr.Z=o.Z),t.OutIdx=-1},e.ClipperBase.prototype.InitEdge2=function(t,i){t.Curr.Y>=t.Next.Curr.Y?(t.Bot.X=t.Curr.X,t.Bot.Y=t.Curr.Y,e.use_xyz&&(t.Bot.Z=t.Curr.Z),t.Top.X=t.Next.Curr.X,t.Top.Y=t.Next.Curr.Y,e.use_xyz&&(t.Top.Z=t.Next.Curr.Z)):(t.Top.X=t.Curr.X,t.Top.Y=t.Curr.Y,e.use_xyz&&(t.Top.Z=t.Curr.Z),t.Bot.X=t.Next.Curr.X,t.Bot.Y=t.Next.Curr.Y,e.use_xyz&&(t.Bot.Z=t.Next.Curr.Z)),this.SetDx(t),t.PolyTyp=i},e.ClipperBase.prototype.FindNextLocMin=function(t){for(var i;;){for(;e.IntPoint.op_Inequality(t.Bot,t.Prev.Bot)||e.IntPoint.op_Equality(t.Curr,t.Top);)t=t.Next;if(t.Dx!==e.ClipperBase.horizontal&&t.Prev.Dx!==e.ClipperBase.horizontal)break;for(;t.Prev.Dx===e.ClipperBase.horizontal;)t=t.Prev;for(i=t;t.Dx===e.ClipperBase.horizontal;)t=t.Next;if(t.Top.Y!==t.Prev.Bot.Y){i.Prev.Bot.Xr.Next.Top.X&&(r=o.Prev)}for(;t!==r;)t.NextInLML=t.Next,t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Prev.Top.X&&this.ReverseHorizontal(t),t=t.Next;t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Prev.Top.X&&this.ReverseHorizontal(t),r=r.Next}else{for(;r.Top.Y===r.Prev.Bot.Y&&r.Prev.OutIdx!==e.ClipperBase.Skip;)r=r.Prev;if(r.Dx===e.ClipperBase.horizontal&&r.Prev.OutIdx!==e.ClipperBase.Skip){for(o=r;o.Next.Dx===e.ClipperBase.horizontal;)o=o.Next;(o.Next.Top.X===r.Prev.Top.X||o.Next.Top.X>r.Prev.Top.X)&&(r=o.Next)}for(;t!==r;)t.NextInLML=t.Prev,t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Next.Top.X&&this.ReverseHorizontal(t),t=t.Prev;t.Dx===e.ClipperBase.horizontal&&t!==n&&t.Bot.X!==t.Next.Top.X&&this.ReverseHorizontal(t),r=r.Prev}return r},e.ClipperBase.prototype.AddPath=function(t,i,n){e.use_lines?n||i!==e.PolyType.ptClip||e.Error("AddPath: Open paths must be subject."):n||e.Error("AddPath: Open paths have been disabled.");var o=t.length-1;if(n)for(;o>0&&e.IntPoint.op_Equality(t[o],t[0]);)--o;for(;o>0&&e.IntPoint.op_Equality(t[o],t[o-1]);)--o;if(n&&o<2||!n&&o<1)return!1;for(var r=new Array,s=0;s<=o;s++)r.push(new e.TEdge);var l=!0;r[1].Curr.X=t[1].X,r[1].Curr.Y=t[1].Y,e.use_xyz&&(r[1].Curr.Z=t[1].Z);var p={Value:this.m_UseFullRange};for(this.RangeTest(t[0],p),this.m_UseFullRange=p.Value,p.Value=this.m_UseFullRange,this.RangeTest(t[o],p),this.m_UseFullRange=p.Value,this.InitEdge(r[0],r[1],r[o],t[0]),this.InitEdge(r[o],r[0],r[o-1],t[o]),s=o-1;s>=1;--s)p.Value=this.m_UseFullRange,this.RangeTest(t[s],p),this.m_UseFullRange=p.Value,this.InitEdge(r[s],r[s+1],r[s-1],t[s]);for(var u,h=r[0],a=h,f=h;;)if(a.Curr!==a.Next.Curr||!n&&a.Next===h){if(a.Prev===a.Next)break;if(!n||!e.ClipperBase.SlopesEqual4(a.Prev.Curr,a.Curr,a.Next.Curr,this.m_UseFullRange)||this.PreserveCollinear&&this.Pt2IsBetweenPt1AndPt3(a.Prev.Curr,a.Curr,a.Next.Curr)){if((a=a.Next)===f||!n&&a.Next===h)break}else a===h&&(h=a.Next),f=a=(a=this.RemoveEdge(a)).Prev}else{if(a===a.Next)break;a===h&&(h=a.Next),f=a=this.RemoveEdge(a)}if(!n&&a===a.Next||n&&a.Prev===a.Next)return!1;n||(this.m_HasOpenPaths=!0,h.Prev.OutIdx=e.ClipperBase.Skip),a=h;do{this.InitEdge2(a,i),a=a.Next,l&&a.Curr.Y!==h.Curr.Y&&(l=!1)}while(a!==h);if(l){if(n)return!1;for(a.Prev.OutIdx=e.ClipperBase.Skip,(P=new e.LocalMinima).Next=null,P.Y=a.Bot.Y,P.LeftBound=null,P.RightBound=a,P.RightBound.Side=e.EdgeSide.esRight,P.RightBound.WindDelta=0;a.Bot.X!==a.Prev.Top.X&&this.ReverseHorizontal(a),a.Next.OutIdx!==e.ClipperBase.Skip;)a.NextInLML=a.Next,a=a.Next;return this.InsertLocalMinima(P),this.m_edges.push(r),!0}this.m_edges.push(r);var d=null;for(e.IntPoint.op_Equality(a.Prev.Bot,a.Prev.Top)&&(a=a.Next);(a=this.FindNextLocMin(a))!==d;){var P;null===d&&(d=a),(P=new e.LocalMinima).Next=null,P.Y=a.Bot.Y,a.Dxt.X==i.Xt.Y==i.Y=this.m_MinimaList.Y)t.Next=this.m_MinimaList,this.m_MinimaList=t;else{for(var e=this.m_MinimaList;null!==e.Next&&t.Ythis.m_Scanbeam.Y){var i=new e.Scanbeam;i.Y=t,i.Next=this.m_Scanbeam,this.m_Scanbeam=i}else{for(var n=this.m_Scanbeam;null!==n.Next&&t<=n.Next.Y;)n=n.Next;if(t===n.Y)return;var o=new e.Scanbeam;o.Y=t,o.Next=n.Next,n.Next=o}},e.ClipperBase.prototype.PopScanbeam=function(t){return null===this.m_Scanbeam?(t.v=0,!1):(t.v=this.m_Scanbeam.Y,this.m_Scanbeam=this.m_Scanbeam.Next,!0)},e.ClipperBase.prototype.LocalMinimaPending=function(){return null!==this.m_CurrentLM},e.ClipperBase.prototype.CreateOutRec=function(){var t=new e.OutRec;return t.Idx=e.ClipperBase.Unassigned,t.IsHole=!1,t.IsOpen=!1,t.FirstLeft=null,t.Pts=null,t.BottomPt=null,t.PolyNode=null,this.m_PolyOuts.push(t),t.Idx=this.m_PolyOuts.length-1,t},e.ClipperBase.prototype.DisposeOutRec=function(t){var e=this.m_PolyOuts[t];e.Pts=null,e=null,this.m_PolyOuts[t]=null},e.ClipperBase.prototype.UpdateEdgeIntoAEL=function(t){null===t.NextInLML&&e.Error("UpdateEdgeIntoAEL: invalid call");var i=t.PrevInAEL,n=t.NextInAEL;return t.NextInLML.OutIdx=t.OutIdx,null!==i?i.NextInAEL=t.NextInLML:this.m_ActiveEdges=t.NextInLML,null!==n&&(n.PrevInAEL=t.NextInLML),t.NextInLML.Side=t.Side,t.NextInLML.WindDelta=t.WindDelta,t.NextInLML.WindCnt=t.WindCnt,t.NextInLML.WindCnt2=t.WindCnt2,(t=t.NextInLML).Curr.X=t.Bot.X,t.Curr.Y=t.Bot.Y,t.PrevInAEL=i,t.NextInAEL=n,e.ClipperBase.IsHorizontal(t)||this.InsertScanbeam(t.Top.Y),t},e.ClipperBase.prototype.SwapPositionsInAEL=function(t,e){if(t.NextInAEL!==t.PrevInAEL&&e.NextInAEL!==e.PrevInAEL){if(t.NextInAEL===e){var i=e.NextInAEL;null!==i&&(i.PrevInAEL=t);var n=t.PrevInAEL;null!==n&&(n.NextInAEL=e),e.PrevInAEL=n,e.NextInAEL=t,t.PrevInAEL=e,t.NextInAEL=i}else if(e.NextInAEL===t){var o=t.NextInAEL;null!==o&&(o.PrevInAEL=e);var r=e.PrevInAEL;null!==r&&(r.NextInAEL=t),t.PrevInAEL=r,t.NextInAEL=e,e.PrevInAEL=t,e.NextInAEL=o}else{var s=t.NextInAEL,l=t.PrevInAEL;t.NextInAEL=e.NextInAEL,null!==t.NextInAEL&&(t.NextInAEL.PrevInAEL=t),t.PrevInAEL=e.PrevInAEL,null!==t.PrevInAEL&&(t.PrevInAEL.NextInAEL=t),e.NextInAEL=s,null!==e.NextInAEL&&(e.NextInAEL.PrevInAEL=e),e.PrevInAEL=l,null!==e.PrevInAEL&&(e.PrevInAEL.NextInAEL=e)}null===t.PrevInAEL?this.m_ActiveEdges=t:null===e.PrevInAEL&&(this.m_ActiveEdges=e)}},e.ClipperBase.prototype.DeleteFromAEL=function(t){var e=t.PrevInAEL,i=t.NextInAEL;null===e&&null===i&&t!==this.m_ActiveEdges||(null!==e?e.NextInAEL=i:this.m_ActiveEdges=i,null!==i&&(i.PrevInAEL=e),t.NextInAEL=null,t.PrevInAEL=null)},e.Clipper=function(t){void 0===t&&(t=0),this.m_PolyOuts=null,this.m_ClipType=e.ClipType.ctIntersection,this.m_Scanbeam=null,this.m_Maxima=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=null,this.m_IntersectNodeComparer=null,this.m_ExecuteLocked=!1,this.m_ClipFillType=e.PolyFillType.pftEvenOdd,this.m_SubjFillType=e.PolyFillType.pftEvenOdd,this.m_Joins=null,this.m_GhostJoins=null,this.m_UsingPolyTree=!1,this.ReverseSolution=!1,this.StrictlySimple=!1,e.ClipperBase.call(this),this.m_Scanbeam=null,this.m_Maxima=null,this.m_ActiveEdges=null,this.m_SortedEdges=null,this.m_IntersectList=new Array,this.m_IntersectNodeComparer=e.MyIntersectNodeSort.Compare,this.m_ExecuteLocked=!1,this.m_UsingPolyTree=!1,this.m_PolyOuts=new Array,this.m_Joins=new Array,this.m_GhostJoins=new Array,this.ReverseSolution=!!(1&t),this.StrictlySimple=!!(2&t),this.PreserveCollinear=!!(4&t),e.use_xyz&&(this.ZFillFunction=null)},e.Clipper.ioReverseSolution=1,e.Clipper.ioStrictlySimple=2,e.Clipper.ioPreserveCollinear=4,e.Clipper.prototype.Clear=function(){0!==this.m_edges.length&&(this.DisposeAllPolyPts(),e.ClipperBase.prototype.Clear.call(this))},e.Clipper.prototype.InsertMaxima=function(t){var i=new e.Maxima;if(i.X=t,null===this.m_Maxima)this.m_Maxima=i,this.m_Maxima.Next=null,this.m_Maxima.Prev=null;else if(t=n.Next.X;)n=n.Next;if(t===n.X)return;i.Next=n.Next,i.Prev=n,null!==n.Next&&(n.Next.Prev=i),n.Next=i}},e.Clipper.prototype.Execute=function(){var t=arguments,i=t.length,n=t[1]instanceof e.PolyTree;if(4===i&&!n){var o=t[0],r=t[1],s=t[2],l=t[3];if(this.m_ExecuteLocked)return!1;this.m_HasOpenPaths&&e.Error("Error: PolyTree struct is needed for open path clipping."),this.m_ExecuteLocked=!0,e.Clear(r),this.m_SubjFillType=s,this.m_ClipFillType=l,this.m_ClipType=o,this.m_UsingPolyTree=!1;try{(u=this.ExecuteInternal())&&this.BuildResult(r)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return u}if(4===i&&n){o=t[0];var p=t[1];if(s=t[2],l=t[3],this.m_ExecuteLocked)return!1;this.m_ExecuteLocked=!0,this.m_SubjFillType=s,this.m_ClipFillType=l,this.m_ClipType=o,this.m_UsingPolyTree=!0;try{var u;(u=this.ExecuteInternal())&&this.BuildResult2(p)}finally{this.DisposeAllPolyPts(),this.m_ExecuteLocked=!1}return u}return 2!==i||n?2===i&&n?(o=t[0],p=t[1],this.Execute(o,p,e.PolyFillType.pftEvenOdd,e.PolyFillType.pftEvenOdd)):void 0:(o=t[0],r=t[1],this.Execute(o,r,e.PolyFillType.pftEvenOdd,e.PolyFillType.pftEvenOdd))},e.Clipper.prototype.FixHoleLinkage=function(t){if(null!==t.FirstLeft&&(t.IsHole===t.FirstLeft.IsHole||null===t.FirstLeft.Pts)){for(var e=t.FirstLeft;null!==e&&(e.IsHole===t.IsHole||null===e.Pts);)e=e.FirstLeft;t.FirstLeft=e}},e.Clipper.prototype.ExecuteInternal=function(){try{this.Reset(),this.m_SortedEdges=null,this.m_Maxima=null;var t,e,i,n={},o={};if(!this.PopScanbeam(n))return!1;for(this.InsertLocalMinimaIntoAEL(n.v);this.PopScanbeam(o)||this.LocalMinimaPending();){if(this.ProcessHorizontals(),this.m_GhostJoins.length=0,!this.ProcessIntersections(o.v))return!1;this.ProcessEdgesAtTopOfScanbeam(o.v),n.v=o.v,this.InsertLocalMinimaIntoAEL(n.v)}for(e=0,i=this.m_PolyOuts.length;e0&&this.ReversePolyPtLinks(t.Pts);for(this.JoinCommonEdges(),e=0,i=this.m_PolyOuts.length;e0&&0!==n.WindDelta)for(var s=0,l=this.m_GhostJoins.length;s=0&&null!==i.PrevInAEL&&i.PrevInAEL.Curr.X===i.Bot.X&&i.PrevInAEL.OutIdx>=0&&e.ClipperBase.SlopesEqual5(i.PrevInAEL.Curr,i.PrevInAEL.Top,i.Curr,i.Top,this.m_UseFullRange)&&0!==i.WindDelta&&0!==i.PrevInAEL.WindDelta){var u=this.AddOutPt(i.PrevInAEL,i.Bot);this.AddJoin(r,u,i.Top)}if(i.NextInAEL!==n){n.OutIdx>=0&&n.PrevInAEL.OutIdx>=0&&e.ClipperBase.SlopesEqual5(n.PrevInAEL.Curr,n.PrevInAEL.Top,n.Curr,n.Top,this.m_UseFullRange)&&0!==n.WindDelta&&0!==n.PrevInAEL.WindDelta&&(u=this.AddOutPt(n.PrevInAEL,n.Bot),this.AddJoin(r,u,n.Top));var h=i.NextInAEL;if(null!==h)for(;h!==n;)this.IntersectEdges(n,h,i.Curr),h=h.NextInAEL}}}},e.Clipper.prototype.InsertEdgeIntoAEL=function(t,e){if(null===this.m_ActiveEdges)t.PrevInAEL=null,t.NextInAEL=null,this.m_ActiveEdges=t;else if(null===e&&this.E2InsertsBeforeE1(this.m_ActiveEdges,t))t.PrevInAEL=null,t.NextInAEL=this.m_ActiveEdges,this.m_ActiveEdges.PrevInAEL=t,this.m_ActiveEdges=t;else{for(null===e&&(e=this.m_ActiveEdges);null!==e.NextInAEL&&!this.E2InsertsBeforeE1(e.NextInAEL,t);)e=e.NextInAEL;t.NextInAEL=e.NextInAEL,null!==e.NextInAEL&&(e.NextInAEL.PrevInAEL=t),t.PrevInAEL=e,e.NextInAEL=t}},e.Clipper.prototype.E2InsertsBeforeE1=function(t,i){return i.Curr.X===t.Curr.X?i.Top.Y>t.Top.Y?i.Top.Xe.Clipper.TopX(i,t.Top.Y):i.Curr.X0;default:return t.WindCnt2<0}case e.ClipType.ctUnion:switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0===t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}case e.ClipType.ctDifference:if(t.PolyTyp===e.PolyType.ptSubject)switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0===t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}else switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0!==t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2>0;default:return t.WindCnt2<0}case e.ClipType.ctXor:if(0!==t.WindDelta)return!0;switch(n){case e.PolyFillType.pftEvenOdd:case e.PolyFillType.pftNonZero:return 0===t.WindCnt2;case e.PolyFillType.pftPositive:return t.WindCnt2<=0;default:return t.WindCnt2>=0}}return!0},e.Clipper.prototype.SetWindingCount=function(t){for(var i=t.PrevInAEL;null!==i&&(i.PolyTyp!==t.PolyTyp||0===i.WindDelta);)i=i.PrevInAEL;if(null===i){var n=t.PolyTyp===e.PolyType.ptSubject?this.m_SubjFillType:this.m_ClipFillType;0===t.WindDelta?t.WindCnt=n===e.PolyFillType.pftNegative?-1:1:t.WindCnt=t.WindDelta,t.WindCnt2=0,i=this.m_ActiveEdges}else if(0===t.WindDelta&&this.m_ClipType!==e.ClipType.ctUnion)t.WindCnt=1,t.WindCnt2=i.WindCnt2,i=i.NextInAEL;else if(this.IsEvenOddFillType(t)){if(0===t.WindDelta){for(var o=!0,r=i.PrevInAEL;null!==r;)r.PolyTyp===i.PolyTyp&&0!==r.WindDelta&&(o=!o),r=r.PrevInAEL;t.WindCnt=o?0:1}else t.WindCnt=t.WindDelta;t.WindCnt2=i.WindCnt2,i=i.NextInAEL}else i.WindCnt*i.WindDelta<0?Math.abs(i.WindCnt)>1?i.WindDelta*t.WindDelta<0?t.WindCnt=i.WindCnt:t.WindCnt=i.WindCnt+t.WindDelta:t.WindCnt=0===t.WindDelta?1:t.WindDelta:0===t.WindDelta?t.WindCnt=i.WindCnt<0?i.WindCnt-1:i.WindCnt+1:i.WindDelta*t.WindDelta<0?t.WindCnt=i.WindCnt:t.WindCnt=i.WindCnt+t.WindDelta,t.WindCnt2=i.WindCnt2,i=i.NextInAEL;if(this.IsEvenOddAltFillType(t))for(;i!==t;)0!==i.WindDelta&&(t.WindCnt2=0===t.WindCnt2?1:0),i=i.NextInAEL;else for(;i!==t;)t.WindCnt2+=i.WindDelta,i=i.NextInAEL},e.Clipper.prototype.AddEdgeToSEL=function(t){null===this.m_SortedEdges?(this.m_SortedEdges=t,t.PrevInSEL=null,t.NextInSEL=null):(t.NextInSEL=this.m_SortedEdges,t.PrevInSEL=null,this.m_SortedEdges.PrevInSEL=t,this.m_SortedEdges=t)},e.Clipper.prototype.PopEdgeFromSEL=function(t){if(t.v=this.m_SortedEdges,null===t.v)return!1;var e=t.v;return this.m_SortedEdges=t.v.NextInSEL,null!==this.m_SortedEdges&&(this.m_SortedEdges.PrevInSEL=null),e.NextInSEL=null,e.PrevInSEL=null,!0},e.Clipper.prototype.CopyAELToSEL=function(){var t=this.m_ActiveEdges;for(this.m_SortedEdges=t;null!==t;)t.PrevInSEL=t.PrevInAEL,t.NextInSEL=t.NextInAEL,t=t.NextInAEL},e.Clipper.prototype.SwapPositionsInSEL=function(t,e){if(!(null===t.NextInSEL&&null===t.PrevInSEL||null===e.NextInSEL&&null===e.PrevInSEL)){if(t.NextInSEL===e)null!==(i=e.NextInSEL)&&(i.PrevInSEL=t),null!==(n=t.PrevInSEL)&&(n.NextInSEL=e),e.PrevInSEL=n,e.NextInSEL=t,t.PrevInSEL=e,t.NextInSEL=i;else if(e.NextInSEL===t)null!==(i=t.NextInSEL)&&(i.PrevInSEL=e),null!==(n=e.PrevInSEL)&&(n.NextInSEL=t),t.PrevInSEL=n,t.NextInSEL=e,e.PrevInSEL=t,e.NextInSEL=i;else{var i=t.NextInSEL,n=t.PrevInSEL;t.NextInSEL=e.NextInSEL,null!==t.NextInSEL&&(t.NextInSEL.PrevInSEL=t),t.PrevInSEL=e.PrevInSEL,null!==t.PrevInSEL&&(t.PrevInSEL.NextInSEL=t),e.NextInSEL=i,null!==e.NextInSEL&&(e.NextInSEL.PrevInSEL=e),e.PrevInSEL=n,null!==e.PrevInSEL&&(e.PrevInSEL.NextInSEL=e)}null===t.PrevInSEL?this.m_SortedEdges=t:null===e.PrevInSEL&&(this.m_SortedEdges=e)}},e.Clipper.prototype.AddLocalMaxPoly=function(t,e,i){this.AddOutPt(t,i),0===e.WindDelta&&this.AddOutPt(e,i),t.OutIdx===e.OutIdx?(t.OutIdx=-1,e.OutIdx=-1):t.OutIdxi.Dx?(o=this.AddOutPt(t,n),i.OutIdx=t.OutIdx,t.Side=e.EdgeSide.esLeft,i.Side=e.EdgeSide.esRight,s=(r=t).PrevInAEL===i?i.PrevInAEL:r.PrevInAEL):(o=this.AddOutPt(i,n),t.OutIdx=i.OutIdx,t.Side=e.EdgeSide.esRight,i.Side=e.EdgeSide.esLeft,s=(r=i).PrevInAEL===t?t.PrevInAEL:r.PrevInAEL),null!==s&&s.OutIdx>=0&&s.Top.Ye&&(o=t,t=e,e=o),i>n&&(o=i,i=n,n=o),t=0&&0!==i.WindDelta&&(null===n?n=i:n.OutIdx===i.OutIdx&&(n=null)),i=i.PrevInAEL;null===n?(e.FirstLeft=null,e.IsHole=!1):(e.FirstLeft=this.m_PolyOuts[n.OutIdx],e.IsHole=!e.FirstLeft.IsHole)},e.Clipper.prototype.GetDx=function(t,i){return t.Y===i.Y?e.ClipperBase.horizontal:(i.X-t.X)/(i.Y-t.Y)},e.Clipper.prototype.FirstIsBottomPt=function(t,i){for(var n=t.Prev;e.IntPoint.op_Equality(n.Pt,t.Pt)&&n!==t;)n=n.Prev;var o=Math.abs(this.GetDx(t.Pt,n.Pt));for(n=t.Next;e.IntPoint.op_Equality(n.Pt,t.Pt)&&n!==t;)n=n.Next;var r=Math.abs(this.GetDx(t.Pt,n.Pt));for(n=i.Prev;e.IntPoint.op_Equality(n.Pt,i.Pt)&&n!==i;)n=n.Prev;var s=Math.abs(this.GetDx(i.Pt,n.Pt));for(n=i.Next;e.IntPoint.op_Equality(n.Pt,i.Pt)&&n!==i;)n=n.Next;var l=Math.abs(this.GetDx(i.Pt,n.Pt));return Math.max(o,r)===Math.max(s,l)&&Math.min(o,r)===Math.min(s,l)?this.Area(t)>0:o>=s&&o>=l||r>=s&&r>=l},e.Clipper.prototype.GetBottomPt=function(t){for(var i=null,n=t.Next;n!==t;)n.Pt.Y>t.Pt.Y?(t=n,i=null):n.Pt.Y===t.Pt.Y&&n.Pt.X<=t.Pt.X&&(n.Pt.Xn.Pt.Y?t:i.Pt.Yn.Pt.X||i.Next===i?e:n.Next===n||this.FirstIsBottomPt(i,n)?t:e},e.Clipper.prototype.OutRec1RightOfOutRec2=function(t,e){do{if((t=t.FirstLeft)===e)return!0}while(null!==t);return!1},e.Clipper.prototype.GetOutRec=function(t){for(var e=this.m_PolyOuts[t];e!==this.m_PolyOuts[e.Idx];)e=this.m_PolyOuts[e.Idx];return e},e.Clipper.prototype.AppendPolygon=function(t,i){var n,o=this.m_PolyOuts[t.OutIdx],r=this.m_PolyOuts[i.OutIdx];n=this.OutRec1RightOfOutRec2(o,r)?r:this.OutRec1RightOfOutRec2(r,o)?o:this.GetLowermostRec(o,r);var s=o.Pts,l=s.Prev,p=r.Pts,u=p.Prev;t.Side===e.EdgeSide.esLeft?i.Side===e.EdgeSide.esLeft?(this.ReversePolyPtLinks(p),p.Next=s,s.Prev=p,l.Next=u,u.Prev=l,o.Pts=u):(u.Next=s,s.Prev=u,p.Prev=l,l.Next=p,o.Pts=p):i.Side===e.EdgeSide.esRight?(this.ReversePolyPtLinks(p),l.Next=u,u.Prev=l,p.Next=s,s.Prev=p):(l.Next=p,p.Prev=l,s.Prev=u,u.Next=s),o.BottomPt=null,n===r&&(r.FirstLeft!==o&&(o.FirstLeft=r.FirstLeft),o.IsHole=r.IsHole),r.Pts=null,r.BottomPt=null,r.FirstLeft=o;var h=t.OutIdx,a=i.OutIdx;t.OutIdx=-1,i.OutIdx=-1;for(var f=this.m_ActiveEdges;null!==f;){if(f.OutIdx===a){f.OutIdx=h,f.Side=t.Side;break}f=f.NextInAEL}r.Idx=o.Idx},e.Clipper.prototype.ReversePolyPtLinks=function(t){if(null!==t){var e,i;e=t;do{i=e.Next,e.Next=e.Prev,e.Prev=i,e=i}while(e!==t)}},e.Clipper.SwapSides=function(t,e){var i=t.Side;t.Side=e.Side,e.Side=i},e.Clipper.SwapPolyIndexes=function(t,e){var i=t.OutIdx;t.OutIdx=e.OutIdx,e.OutIdx=i},e.Clipper.prototype.IntersectEdges=function(t,i,n){var o=t.OutIdx>=0,r=i.OutIdx>=0;if(e.use_xyz&&this.SetZ(n,t,i),!e.use_lines||0!==t.WindDelta&&0!==i.WindDelta){if(t.PolyTyp===i.PolyTyp)if(this.IsEvenOddFillType(t)){var s=t.WindCnt;t.WindCnt=i.WindCnt,i.WindCnt=s}else t.WindCnt+i.WindDelta===0?t.WindCnt=-t.WindCnt:t.WindCnt+=i.WindDelta,i.WindCnt-t.WindDelta==0?i.WindCnt=-i.WindCnt:i.WindCnt-=t.WindDelta;else this.IsEvenOddFillType(i)?t.WindCnt2=0===t.WindCnt2?1:0:t.WindCnt2+=i.WindDelta,this.IsEvenOddFillType(t)?i.WindCnt2=0===i.WindCnt2?1:0:i.WindCnt2-=t.WindDelta;var l,p,u,h,a,f;switch(t.PolyTyp===e.PolyType.ptSubject?(l=this.m_SubjFillType,u=this.m_ClipFillType):(l=this.m_ClipFillType,u=this.m_SubjFillType),i.PolyTyp===e.PolyType.ptSubject?(p=this.m_SubjFillType,h=this.m_ClipFillType):(p=this.m_ClipFillType,h=this.m_SubjFillType),l){case e.PolyFillType.pftPositive:a=t.WindCnt;break;case e.PolyFillType.pftNegative:a=-t.WindCnt;break;default:a=Math.abs(t.WindCnt)}switch(p){case e.PolyFillType.pftPositive:f=i.WindCnt;break;case e.PolyFillType.pftNegative:f=-i.WindCnt;break;default:f=Math.abs(i.WindCnt)}if(o&&r)0!==a&&1!==a||0!==f&&1!==f||t.PolyTyp!==i.PolyTyp&&this.m_ClipType!==e.ClipType.ctXor?this.AddLocalMaxPoly(t,i,n):(this.AddOutPt(t,n),this.AddOutPt(i,n),e.Clipper.SwapSides(t,i),e.Clipper.SwapPolyIndexes(t,i));else if(o)0!==f&&1!==f||(this.AddOutPt(t,n),e.Clipper.SwapSides(t,i),e.Clipper.SwapPolyIndexes(t,i));else if(r)0!==a&&1!==a||(this.AddOutPt(i,n),e.Clipper.SwapSides(t,i),e.Clipper.SwapPolyIndexes(t,i));else if(!(0!==a&&1!==a||0!==f&&1!==f)){var d,P;switch(u){case e.PolyFillType.pftPositive:d=t.WindCnt2;break;case e.PolyFillType.pftNegative:d=-t.WindCnt2;break;default:d=Math.abs(t.WindCnt2)}switch(h){case e.PolyFillType.pftPositive:P=i.WindCnt2;break;case e.PolyFillType.pftNegative:P=-i.WindCnt2;break;default:P=Math.abs(i.WindCnt2)}if(t.PolyTyp!==i.PolyTyp)this.AddLocalMinPoly(t,i,n);else if(1===a&&1===f)switch(this.m_ClipType){case e.ClipType.ctIntersection:d>0&&P>0&&this.AddLocalMinPoly(t,i,n);break;case e.ClipType.ctUnion:d<=0&&P<=0&&this.AddLocalMinPoly(t,i,n);break;case e.ClipType.ctDifference:(t.PolyTyp===e.PolyType.ptClip&&d>0&&P>0||t.PolyTyp===e.PolyType.ptSubject&&d<=0&&P<=0)&&this.AddLocalMinPoly(t,i,n);break;case e.ClipType.ctXor:this.AddLocalMinPoly(t,i,n)}else e.Clipper.SwapSides(t,i)}}else{if(0===t.WindDelta&&0===i.WindDelta)return;t.PolyTyp===i.PolyTyp&&t.WindDelta!==i.WindDelta&&this.m_ClipType===e.ClipType.ctUnion?0===t.WindDelta?r&&(this.AddOutPt(t,n),o&&(t.OutIdx=-1)):o&&(this.AddOutPt(i,n),r&&(i.OutIdx=-1)):t.PolyTyp!==i.PolyTyp&&(0!==t.WindDelta||1!==Math.abs(i.WindCnt)||this.m_ClipType===e.ClipType.ctUnion&&0!==i.WindCnt2?0!==i.WindDelta||1!==Math.abs(t.WindCnt)||this.m_ClipType===e.ClipType.ctUnion&&0!==t.WindCnt2||(this.AddOutPt(i,n),r&&(i.OutIdx=-1)):(this.AddOutPt(t,n),o&&(t.OutIdx=-1)))}},e.Clipper.prototype.DeleteFromSEL=function(t){var e=t.PrevInSEL,i=t.NextInSEL;null===e&&null===i&&t!==this.m_SortedEdges||(null!==e?e.NextInSEL=i:this.m_SortedEdges=i,null!==i&&(i.PrevInSEL=e),t.NextInSEL=null,t.PrevInSEL=null)},e.Clipper.prototype.ProcessHorizontals=function(){for(var t={};this.PopEdgeFromSEL(t);)this.ProcessHorizontal(t.v)},e.Clipper.prototype.GetHorzDirection=function(t,i){t.Bot.X=l.Top.X&&(u=null)}else{for(;null!==u.Next&&u.Next.X=0&&!s&&this.AddOutPt(t,new e.IntPoint2(u.X,t.Bot.Y)),u=u.Next;else for(;null!==u&&u.X>f.Curr.X;)t.OutIdx>=0&&!s&&this.AddOutPt(t,new e.IntPoint2(u.X,t.Bot.Y)),u=u.Prev;if(n===e.Direction.dLeftToRight&&f.Curr.X>r||n===e.Direction.dRightToLeft&&f.Curr.X=0&&!s){e.use_xyz&&(n===e.Direction.dLeftToRight?this.SetZ(f.Curr,t,f):this.SetZ(f.Curr,f,t)),h=this.AddOutPt(t,f.Curr);for(var d=this.m_SortedEdges;null!==d;){if(d.OutIdx>=0&&this.HorzSegmentsOverlap(t.Bot.X,t.Top.X,d.Bot.X,d.Top.X)){var P=this.GetLastOutPt(d);this.AddJoin(P,h,d.Top)}d=d.NextInSEL}this.AddGhostJoin(h,t.Bot)}if(f===p&&a)return t.OutIdx>=0&&this.AddLocalMaxPoly(t,p,t.Top),this.DeleteFromAEL(t),void this.DeleteFromAEL(p);if(n===e.Direction.dLeftToRight){var m=new e.IntPoint2(f.Curr.X,t.Curr.Y);this.IntersectEdges(t,f,m)}else m=new e.IntPoint2(f.Curr.X,t.Curr.Y),this.IntersectEdges(f,t,m);var y=this.GetNextInAEL(f,n);this.SwapPositionsInAEL(t,f),f=y}if(null===t.NextInLML||!e.ClipperBase.IsHorizontal(t.NextInLML))break;(t=this.UpdateEdgeIntoAEL(t)).OutIdx>=0&&this.AddOutPt(t,t.Bot),i={Dir:n,Left:o,Right:r},this.GetHorzDirection(t,i),n=i.Dir,o=i.Left,r=i.Right}if(t.OutIdx>=0&&null===h){for(h=this.GetLastOutPt(t),d=this.m_SortedEdges;null!==d;)d.OutIdx>=0&&this.HorzSegmentsOverlap(t.Bot.X,t.Top.X,d.Bot.X,d.Top.X)&&(P=this.GetLastOutPt(d),this.AddJoin(P,h,d.Top)),d=d.NextInSEL;this.AddGhostJoin(h,t.Top)}if(null!==t.NextInLML)if(t.OutIdx>=0){if(h=this.AddOutPt(t,t.Top),0===(t=this.UpdateEdgeIntoAEL(t)).WindDelta)return;var c=t.PrevInAEL;y=t.NextInAEL,null!==c&&c.Curr.X===t.Bot.X&&c.Curr.Y===t.Bot.Y&&0===c.WindDelta&&c.OutIdx>=0&&c.Curr.Y>c.Top.Y&&e.ClipperBase.SlopesEqual3(t,c,this.m_UseFullRange)?(P=this.AddOutPt(c,t.Bot),this.AddJoin(h,P,t.Top)):null!==y&&y.Curr.X===t.Bot.X&&y.Curr.Y===t.Bot.Y&&0!==y.WindDelta&&y.OutIdx>=0&&y.Curr.Y>y.Top.Y&&e.ClipperBase.SlopesEqual3(t,y,this.m_UseFullRange)&&(P=this.AddOutPt(y,t.Bot),this.AddJoin(h,P,t.Top))}else t=this.UpdateEdgeIntoAEL(t);else t.OutIdx>=0&&this.AddOutPt(t,t.Top),this.DeleteFromAEL(t)},e.Clipper.prototype.GetNextInAEL=function(t,i){return i===e.Direction.dLeftToRight?t.NextInAEL:t.PrevInAEL},e.Clipper.prototype.IsMinima=function(t){return null!==t&&t.Prev.NextInLML!==t&&t.Next.NextInLML!==t},e.Clipper.prototype.IsMaxima=function(t,e){return null!==t&&t.Top.Y===e&&null===t.NextInLML},e.Clipper.prototype.IsIntermediate=function(t,e){return t.Top.Y===e&&null!==t.NextInLML},e.Clipper.prototype.GetMaximaPair=function(t){return e.IntPoint.op_Equality(t.Next.Top,t.Top)&&null===t.Next.NextInLML?t.Next:e.IntPoint.op_Equality(t.Prev.Top,t.Top)&&null===t.Prev.NextInLML?t.Prev:null},e.Clipper.prototype.GetMaximaPairEx=function(t){var i=this.GetMaximaPair(t);return null===i||i.OutIdx===e.ClipperBase.Skip||i.NextInAEL===i.PrevInAEL&&!e.ClipperBase.IsHorizontal(i)?null:i},e.Clipper.prototype.ProcessIntersections=function(t){if(null===this.m_ActiveEdges)return!0;try{if(this.BuildIntersectList(t),0===this.m_IntersectList.length)return!0;if(1!==this.m_IntersectList.length&&!this.FixupIntersectionOrder())return!1;this.ProcessIntersectList()}catch(i){this.m_SortedEdges=null,this.m_IntersectList.length=0,e.Error("ProcessIntersections error")}return this.m_SortedEdges=null,!0},e.Clipper.prototype.BuildIntersectList=function(t){if(null!==this.m_ActiveEdges){var i=this.m_ActiveEdges;for(this.m_SortedEdges=i;null!==i;)i.PrevInSEL=i.PrevInAEL,i.NextInSEL=i.NextInAEL,i.Curr.X=e.Clipper.TopX(i,t),i=i.NextInAEL;for(var n=!0;n&&null!==this.m_SortedEdges;){for(n=!1,i=this.m_SortedEdges;null!==i.NextInSEL;){var o=i.NextInSEL,r=new e.IntPoint0;if(i.Curr.X>o.Curr.X){this.IntersectPoint(i,o,r),r.Y2147483647?Math.floor(t):0|t}:e.Clipper.Round=function(t){return t<0?Math.ceil(t-.5):Math.floor(t+.5)},e.Clipper.TopX=function(t,i){return i===t.Top.Y?t.Top.X:t.Bot.X+e.Clipper.Round(t.Dx*(i-t.Bot.Y))},e.Clipper.prototype.IntersectPoint=function(t,i,n){var o,r;if(n.X=0,n.Y=0,t.Dx===i.Dx)return n.Y=t.Curr.Y,void(n.X=e.Clipper.TopX(t,n.Y));if(0===t.Delta.X)n.X=t.Bot.X,e.ClipperBase.IsHorizontal(i)?n.Y=i.Bot.Y:(r=i.Bot.Y-i.Bot.X/i.Dx,n.Y=e.Clipper.Round(n.X/i.Dx+r));else if(0===i.Delta.X)n.X=i.Bot.X,e.ClipperBase.IsHorizontal(t)?n.Y=t.Bot.Y:(o=t.Bot.Y-t.Bot.X/t.Dx,n.Y=e.Clipper.Round(n.X/t.Dx+o));else{o=t.Bot.X-t.Bot.Y*t.Dx;var s=((r=i.Bot.X-i.Bot.Y*i.Dx)-o)/(t.Dx-i.Dx);n.Y=e.Clipper.Round(s),Math.abs(t.Dx)i.Top.Y)return n.Y=t.Top.Y,n.X=e.Clipper.TopX(i,t.Top.Y),n.Xt.Curr.Y&&(n.Y=t.Curr.Y,Math.abs(t.Dx)>Math.abs(i.Dx)?n.X=e.Clipper.TopX(i,n.Y):n.X=e.Clipper.TopX(t,n.Y))},e.Clipper.prototype.ProcessEdgesAtTopOfScanbeam=function(t){for(var i=this.m_ActiveEdges;null!==i;){var n=this.IsMaxima(i,t);if(n){var o=this.GetMaximaPairEx(i);n=null===o||!e.ClipperBase.IsHorizontal(o)}if(n){this.StrictlySimple&&this.InsertMaxima(i.Top.X);var r=i.PrevInAEL;this.DoMaxima(i),i=null===r?this.m_ActiveEdges:r.NextInAEL}else{if(this.IsIntermediate(i,t)&&e.ClipperBase.IsHorizontal(i.NextInLML)?((i=this.UpdateEdgeIntoAEL(i)).OutIdx>=0&&this.AddOutPt(i,i.Bot),this.AddEdgeToSEL(i)):(i.Curr.X=e.Clipper.TopX(i,t),i.Curr.Y=t),e.use_xyz&&(i.Top.Y===t?i.Curr.Z=i.Top.Z:i.Bot.Y===t?i.Curr.Z=i.Bot.Z:i.Curr.Z=0),this.StrictlySimple&&(r=i.PrevInAEL,i.OutIdx>=0&&0!==i.WindDelta&&null!==r&&r.OutIdx>=0&&r.Curr.X===i.Curr.X&&0!==r.WindDelta)){var s=new e.IntPoint1(i.Curr);e.use_xyz&&this.SetZ(s,r,i);var l=this.AddOutPt(r,s),p=this.AddOutPt(i,s);this.AddJoin(l,p,s)}i=i.NextInAEL}}for(this.ProcessHorizontals(),this.m_Maxima=null,i=this.m_ActiveEdges;null!==i;){if(this.IsIntermediate(i,t)){l=null,i.OutIdx>=0&&(l=this.AddOutPt(i,i.Top)),r=(i=this.UpdateEdgeIntoAEL(i)).PrevInAEL;var u=i.NextInAEL;null!==r&&r.Curr.X===i.Bot.X&&r.Curr.Y===i.Bot.Y&&null!==l&&r.OutIdx>=0&&r.Curr.Y===r.Top.Y&&e.ClipperBase.SlopesEqual5(i.Curr,i.Top,r.Curr,r.Top,this.m_UseFullRange)&&0!==i.WindDelta&&0!==r.WindDelta?(p=this.AddOutPt(ePrev2,i.Bot),this.AddJoin(l,p,i.Top)):null!==u&&u.Curr.X===i.Bot.X&&u.Curr.Y===i.Bot.Y&&null!==l&&u.OutIdx>=0&&u.Curr.Y===u.Top.Y&&e.ClipperBase.SlopesEqual5(i.Curr,i.Top,u.Curr,u.Top,this.m_UseFullRange)&&0!==i.WindDelta&&0!==u.WindDelta&&(p=this.AddOutPt(u,i.Bot),this.AddJoin(l,p,i.Top))}i=i.NextInAEL}},e.Clipper.prototype.DoMaxima=function(t){var i=this.GetMaximaPairEx(t);if(null===i)return t.OutIdx>=0&&this.AddOutPt(t,t.Top),void this.DeleteFromAEL(t);for(var n=t.NextInAEL;null!==n&&n!==i;)this.IntersectEdges(t,n,t.Top),this.SwapPositionsInAEL(t,n),n=t.NextInAEL;-1===t.OutIdx&&-1===i.OutIdx?(this.DeleteFromAEL(t),this.DeleteFromAEL(i)):t.OutIdx>=0&&i.OutIdx>=0?(t.OutIdx>=0&&this.AddLocalMaxPoly(t,i,t.Top),this.DeleteFromAEL(t),this.DeleteFromAEL(i)):e.use_lines&&0===t.WindDelta?(t.OutIdx>=0&&(this.AddOutPt(t,t.Top),t.OutIdx=e.ClipperBase.Unassigned),this.DeleteFromAEL(t),i.OutIdx>=0&&(this.AddOutPt(i,t.Top),i.OutIdx=e.ClipperBase.Unassigned),this.DeleteFromAEL(i)):e.Error("DoMaxima error")},e.Clipper.ReversePaths=function(t){for(var e=0,i=t.length;e=0},e.Clipper.prototype.PointCount=function(t){if(null===t)return 0;var e=0,i=t;do{e++,i=i.Next}while(i!==t);return e},e.Clipper.prototype.BuildResult=function(t){e.Clear(t);for(var i=0,n=this.m_PolyOuts.length;ii.Pt.X?e.Direction.dRightToLeft:e.Direction.dLeftToRight,p=n.Pt.X>o.Pt.X?e.Direction.dRightToLeft:e.Direction.dLeftToRight;if(l===p)return!1;if(l===e.Direction.dLeftToRight){for(;t.Next.Pt.X<=r.X&&t.Next.Pt.X>=t.Pt.X&&t.Next.Pt.Y===r.Y;)t=t.Next;s&&t.Pt.X!==r.X&&(t=t.Next),i=this.DupOutPt(t,!s),e.IntPoint.op_Inequality(i.Pt,r)&&((t=i).Pt.X=r.X,t.Pt.Y=r.Y,e.use_xyz&&(t.Pt.Z=r.Z),i=this.DupOutPt(t,!s))}else{for(;t.Next.Pt.X>=r.X&&t.Next.Pt.X<=t.Pt.X&&t.Next.Pt.Y===r.Y;)t=t.Next;s||t.Pt.X===r.X||(t=t.Next),i=this.DupOutPt(t,s),e.IntPoint.op_Inequality(i.Pt,r)&&((t=i).Pt.X=r.X,t.Pt.Y=r.Y,e.use_xyz&&(t.Pt.Z=r.Z),i=this.DupOutPt(t,s))}if(p===e.Direction.dLeftToRight){for(;n.Next.Pt.X<=r.X&&n.Next.Pt.X>=n.Pt.X&&n.Next.Pt.Y===r.Y;)n=n.Next;s&&n.Pt.X!==r.X&&(n=n.Next),o=this.DupOutPt(n,!s),e.IntPoint.op_Inequality(o.Pt,r)&&((n=o).Pt.X=r.X,n.Pt.Y=r.Y,e.use_xyz&&(n.Pt.Z=r.Z),o=this.DupOutPt(n,!s))}else{for(;n.Next.Pt.X>=r.X&&n.Next.Pt.X<=n.Pt.X&&n.Next.Pt.Y===r.Y;)n=n.Next;s||n.Pt.X===r.X||(n=n.Next),o=this.DupOutPt(n,s),e.IntPoint.op_Inequality(o.Pt,r)&&((n=o).Pt.X=r.X,n.Pt.Y=r.Y,e.use_xyz&&(n.Pt.Z=r.Z),o=this.DupOutPt(n,s))}return l===e.Direction.dLeftToRight===s?(t.Prev=n,n.Next=t,i.Next=o,o.Prev=i):(t.Next=n,n.Prev=t,i.Prev=o,o.Next=i),!0},e.Clipper.prototype.JoinPoints=function(t,i,n){var o=t.OutPt1,r=new e.OutPt,s=t.OutPt2,l=new e.OutPt,p=t.OutPt1.Pt.Y===t.OffPt.Y;if(p&&e.IntPoint.op_Equality(t.OffPt,t.OutPt1.Pt)&&e.IntPoint.op_Equality(t.OffPt,t.OutPt2.Pt)){if(i!==n)return!1;for(r=t.OutPt1.Next;r!==o&&e.IntPoint.op_Equality(r.Pt,t.OffPt);)r=r.Next;var u=r.Pt.Y>t.OffPt.Y;for(l=t.OutPt2.Next;l!==s&&e.IntPoint.op_Equality(l.Pt,t.OffPt);)l=l.Next;return u!==l.Pt.Y>t.OffPt.Y&&(u?(r=this.DupOutPt(o,!1),l=this.DupOutPt(s,!0),o.Prev=s,s.Next=o,r.Next=l,l.Prev=r,t.OutPt1=o,t.OutPt2=r,!0):(r=this.DupOutPt(o,!0),l=this.DupOutPt(s,!1),o.Next=s,s.Prev=o,r.Prev=l,l.Next=r,t.OutPt1=o,t.OutPt2=r,!0))}if(p){for(r=o;o.Prev.Pt.Y===o.Pt.Y&&o.Prev!==r&&o.Prev!==s;)o=o.Prev;for(;r.Next.Pt.Y===r.Pt.Y&&r.Next!==o&&r.Next!==s;)r=r.Next;if(r.Next===o||r.Next===s)return!1;for(l=s;s.Prev.Pt.Y===s.Pt.Y&&s.Prev!==l&&s.Prev!==r;)s=s.Prev;for(;l.Next.Pt.Y===l.Pt.Y&&l.Next!==s&&l.Next!==o;)l=l.Next;if(l.Next===s||l.Next===o)return!1;var h={Left:null,Right:null};if(!this.GetOverlap(o.Pt.X,r.Pt.X,s.Pt.X,l.Pt.X,h))return!1;var a,f=h.Left,d=h.Right,P=new e.IntPoint0;return o.Pt.X>=f&&o.Pt.X<=d?(P.X=o.Pt.X,P.Y=o.Pt.Y,e.use_xyz&&(P.Z=o.Pt.Z),a=o.Pt.X>r.Pt.X):s.Pt.X>=f&&s.Pt.X<=d?(P.X=s.Pt.X,P.Y=s.Pt.Y,e.use_xyz&&(P.Z=s.Pt.Z),a=s.Pt.X>l.Pt.X):r.Pt.X>=f&&r.Pt.X<=d?(P.X=r.Pt.X,P.Y=r.Pt.Y,e.use_xyz&&(P.Z=r.Pt.Z),a=r.Pt.X>o.Pt.X):(P.X=l.Pt.X,P.Y=l.Pt.Y,e.use_xyz&&(P.Z=l.Pt.Z),a=l.Pt.X>s.Pt.X),t.OutPt1=o,t.OutPt2=s,this.JoinHorz(o,r,s,l,P,a)}for(r=o.Next;e.IntPoint.op_Equality(r.Pt,o.Pt)&&r!==o;)r=r.Next;var m=r.Pt.Y>o.Pt.Y||!e.ClipperBase.SlopesEqual4(o.Pt,r.Pt,t.OffPt,this.m_UseFullRange);if(m){for(r=o.Prev;e.IntPoint.op_Equality(r.Pt,o.Pt)&&r!==o;)r=r.Prev;if(r.Pt.Y>o.Pt.Y||!e.ClipperBase.SlopesEqual4(o.Pt,r.Pt,t.OffPt,this.m_UseFullRange))return!1}for(l=s.Next;e.IntPoint.op_Equality(l.Pt,s.Pt)&&l!==s;)l=l.Next;var y=l.Pt.Y>s.Pt.Y||!e.ClipperBase.SlopesEqual4(s.Pt,l.Pt,t.OffPt,this.m_UseFullRange);if(y){for(l=s.Prev;e.IntPoint.op_Equality(l.Pt,s.Pt)&&l!==s;)l=l.Prev;if(l.Pt.Y>s.Pt.Y||!e.ClipperBase.SlopesEqual4(s.Pt,l.Pt,t.OffPt,this.m_UseFullRange))return!1}return!(r===o||l===s||r===l||i===n&&m===y||(m?(r=this.DupOutPt(o,!1),l=this.DupOutPt(s,!0),o.Prev=s,s.Next=o,r.Next=l,l.Prev=r,t.OutPt1=o,t.OutPt2=r,0):(r=this.DupOutPt(o,!0),l=this.DupOutPt(s,!1),o.Next=s,s.Prev=o,r.Prev=l,l.Next=r,t.OutPt1=o,t.OutPt2=r,0)))},e.Clipper.GetBounds=function(t){for(var i=0,n=t.length;io.right&&(o.right=t[i][r].X),t[i][r].Yo.bottom&&(o.bottom=t[i][r].Y);return o},e.Clipper.prototype.GetBounds2=function(t){var i=t,n=new e.IntRect;for(n.left=t.Pt.X,n.right=t.Pt.X,n.top=t.Pt.Y,n.bottom=t.Pt.Y,t=t.Next;t!==i;)t.Pt.Xn.right&&(n.right=t.Pt.X),t.Pt.Yn.bottom&&(n.bottom=t.Pt.Y),t=t.Next;return n},e.Clipper.PointInPolygon=function(t,e){var i=0,n=e.length;if(n<3)return 0;for(var o=e[0],r=1;r<=n;++r){var s=r===n?e[0]:e[r];if(s.Y===t.Y&&(s.X===t.X||o.Y===t.Y&&s.X>t.X==o.X=t.X)if(s.X>t.X)i=1-i;else{if(0==(l=(o.X-t.X)*(s.Y-t.Y)-(s.X-t.X)*(o.Y-t.Y)))return-1;l>0==s.Y>o.Y&&(i=1-i)}else if(s.X>t.X){var l;if(0==(l=(o.X-t.X)*(s.Y-t.Y)-(s.X-t.X)*(o.Y-t.Y)))return-1;l>0==s.Y>o.Y&&(i=1-i)}o=s}return i},e.Clipper.prototype.PointInPolygon=function(t,e){var i=0,n=e,o=t.X,r=t.Y,s=e.Pt.X,l=e.Pt.Y;do{var p=(e=e.Next).Pt.X,u=e.Pt.Y;if(u===r&&(p===o||l===r&&p>o==s=o)if(p>o)i=1-i;else{if(0==(h=(s-o)*(u-r)-(p-o)*(l-r)))return-1;h>0==u>l&&(i=1-i)}else if(p>o){var h;if(0==(h=(s-o)*(u-r)-(p-o)*(l-r)))return-1;h>0==u>l&&(i=1-i)}s=p,l=u}while(n!==e);return i},e.Clipper.prototype.Poly2ContainsPoly1=function(t,e){var i=t;do{var n=this.PointInPolygon(i.Pt,e);if(n>=0)return n>0;i=i.Next}while(i!==t);return!0},e.Clipper.prototype.FixupFirstLefts1=function(t,i){for(var n,o,r=0,s=this.m_PolyOuts.length;r0&&this.ReversePolyPtLinks(r.Pts)):this.Poly2ContainsPoly1(o.Pts,r.Pts)?(r.IsHole=o.IsHole,o.IsHole=!r.IsHole,r.FirstLeft=o.FirstLeft,o.FirstLeft=r,this.m_UsingPolyTree&&this.FixupFirstLefts2(o,r),(o.IsHole^this.ReverseSolution)==this.Area$1(o)>0&&this.ReversePolyPtLinks(o.Pts)):(r.IsHole=o.IsHole,r.FirstLeft=o.FirstLeft,this.m_UsingPolyTree&&this.FixupFirstLefts1(o,r))):(r.Pts=null,r.BottomPt=null,r.Idx=o.Idx,o.IsHole=i.IsHole,i===r&&(o.FirstLeft=r.FirstLeft),r.FirstLeft=o,this.m_UsingPolyTree&&this.FixupFirstLefts3(r,o)))))}},e.Clipper.prototype.UpdateOutPtIdxs=function(t){var e=t.Pts;do{e.Idx=t.Idx,e=e.Prev}while(e!==t.Pts)},e.Clipper.prototype.DoSimplePolygons=function(){for(var t=0;tMath.abs(t.Y-i.Y)?t.X>i.X==t.Xt.X==i.Xi.Y==t.Yt.Y==i.Y0&&o&&n.push(t.m_polygon);for(var r=0,s=t.Childs(),l=s.length,p=s[r];r0&&e.IntPoint.op_Equality(t[0],t[o]);)o--;r.m_polygon.push(t[0]);for(var s=0,l=0,p=1;p<=o;p++)e.IntPoint.op_Inequality(r.m_polygon[s],t[p])&&(s++,r.m_polygon.push(t[p]),(t[p].Y>r.m_polygon[l].Y||t[p].Y===r.m_polygon[l].Y&&t[p].Xu.Y||r.m_polygon[l].Y===u.Y&&r.m_polygon[l].X=0&&!e.Clipper.Orientation(this.m_polyNodes.Childs()[this.m_lowest.X].m_polygon))for(var t=0;t2?this.m_miterLim=2/(this.MiterLimit*this.MiterLimit):this.m_miterLim=.5,n=this.ArcTolerance<=0?e.ClipperOffset.def_arc_tolerance:this.ArcTolerance>Math.abs(t)*e.ClipperOffset.def_arc_tolerance?Math.abs(t)*e.ClipperOffset.def_arc_tolerance:this.ArcTolerance;var o=3.14159265358979/Math.acos(1-n/Math.abs(t));for(this.m_sin=Math.sin(e.ClipperOffset.two_pi/o),this.m_cos=Math.cos(e.ClipperOffset.two_pi/o),this.m_StepsPerRad=o/e.ClipperOffset.two_pi,t<0&&(this.m_sin=-this.m_sin),i=0;i0;f--)this.m_normals[f]=new e.DoublePoint2(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);for(this.m_normals[0]=new e.DoublePoint2(-p.X,-p.Y),l=0,f=s-1;f>=0;f--)l=this.OffsetPoint(f,l,r.m_jointype);this.m_destPolys.push(this.m_destPoly)}else{var u;for(l=0,f=1;f0;f--)this.m_normals[f]=new e.DoublePoint2(-this.m_normals[f-1].X,-this.m_normals[f-1].Y);for(this.m_normals[0]=new e.DoublePoint2(-this.m_normals[1].X,-this.m_normals[1].Y),f=(l=s-1)-1;f>0;--f)l=this.OffsetPoint(f,l,r.m_jointype);r.m_endtype===e.EndType.etOpenButt?(u=new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X-this.m_normals[0].X*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y-this.m_normals[0].Y*t)),this.m_destPoly.push(u),u=new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X+this.m_normals[0].X*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y+this.m_normals[0].Y*t)),this.m_destPoly.push(u)):(l=1,this.m_sinA=0,r.m_endtype===e.EndType.etOpenSquare?this.DoSquare(0,1):this.DoRound(0,1)),this.m_destPolys.push(this.m_destPoly)}}else{if(r.m_jointype===e.JoinType.jtRound)for(var h=1,a=0,f=1;f<=o;f++){this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X+h*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y+a*t)));var d=h;h=h*this.m_cos-this.m_sin*a,a=d*this.m_sin+a*this.m_cos}else{h=-1,a=-1;for(var f=0;f<4;++f)this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[0].X+h*t),e.ClipperOffset.Round(this.m_srcPoly[0].Y+a*t))),h<0?h=1:a<0?a=1:h=-1}this.m_destPolys.push(this.m_destPoly)}}}},e.ClipperOffset.prototype.Execute=function(){var t=arguments;if(t[0]instanceof e.PolyTree)if(s=t[1],(r=t[0]).Clear(),this.FixOrientations(),this.DoOffset(s),(o=new e.Clipper(0)).AddPaths(this.m_destPolys,e.PolyType.ptSubject,!0),s>0)o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftPositive,e.PolyFillType.pftPositive);else if(p=e.Clipper.GetBounds(this.m_destPolys),(l=new e.Path).push(new e.IntPoint2(p.left-10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.top-10)),l.push(new e.IntPoint2(p.left-10,p.top-10)),o.AddPath(l,e.PolyType.ptSubject,!0),o.ReverseSolution=!0,o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftNegative,e.PolyFillType.pftNegative),1===r.ChildCount()&&r.Childs()[0].ChildCount()>0){var i=r.Childs()[0];r.Childs()[0]=i.Childs()[0],r.Childs()[0].m_Parent=r;for(var n=1;n0)o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftPositive,e.PolyFillType.pftPositive);else{var l,p=e.Clipper.GetBounds(this.m_destPolys);(l=new e.Path).push(new e.IntPoint2(p.left-10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.bottom+10)),l.push(new e.IntPoint2(p.right+10,p.top-10)),l.push(new e.IntPoint2(p.left-10,p.top-10)),o.AddPath(l,e.PolyType.ptSubject,!0),o.ReverseSolution=!0,o.Execute(e.ClipType.ctUnion,r,e.PolyFillType.pftNegative,e.PolyFillType.pftNegative),r.length>0&&r.splice(0,1)}}},e.ClipperOffset.prototype.OffsetPoint=function(t,i,n){if(this.m_sinA=this.m_normals[i].X*this.m_normals[t].Y-this.m_normals[t].X*this.m_normals[i].Y,Math.abs(this.m_sinA*this.m_delta)<1){if(this.m_normals[i].X*this.m_normals[t].X+this.m_normals[t].Y*this.m_normals[i].Y>0)return this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[i].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[i].Y*this.m_delta))),i}else this.m_sinA>1?this.m_sinA=1:this.m_sinA<-1&&(this.m_sinA=-1);if(this.m_sinA*this.m_delta<0)this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[i].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[i].Y*this.m_delta))),this.m_destPoly.push(new e.IntPoint1(this.m_srcPoly[t])),this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_normals[t].X*this.m_delta),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_normals[t].Y*this.m_delta)));else switch(n){case e.JoinType.jtMiter:var o=this.m_normals[t].X*this.m_normals[i].X+this.m_normals[t].Y*this.m_normals[i].Y+1;o>=this.m_miterLim?this.DoMiter(t,i,o):this.DoSquare(t,i);break;case e.JoinType.jtSquare:this.DoSquare(t,i);break;case e.JoinType.jtRound:this.DoRound(t,i)}return i=t},e.ClipperOffset.prototype.DoSquare=function(t,i){var n=Math.tan(Math.atan2(this.m_sinA,this.m_normals[i].X*this.m_normals[t].X+this.m_normals[i].Y*this.m_normals[t].Y)/4);this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[i].X-this.m_normals[i].Y*n)),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[i].Y+this.m_normals[i].X*n)))),this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+this.m_delta*(this.m_normals[t].X+this.m_normals[t].Y*n)),e.ClipperOffset.Round(this.m_srcPoly[t].Y+this.m_delta*(this.m_normals[t].Y-this.m_normals[t].X*n))))},e.ClipperOffset.prototype.DoMiter=function(t,i,n){var o=this.m_delta/n;this.m_destPoly.push(new e.IntPoint2(e.ClipperOffset.Round(this.m_srcPoly[t].X+(this.m_normals[i].X+this.m_normals[t].X)*o),e.ClipperOffset.Round(this.m_srcPoly[t].Y+(this.m_normals[i].Y+this.m_normals[t].Y)*o)))},e.ClipperOffset.prototype.DoRound=function(t,i){for(var n,o=Math.atan2(this.m_sinA,this.m_normals[i].X*this.m_normals[t].X+this.m_normals[i].Y*this.m_normals[t].Y),r=Math.max(e.Cast_Int32(e.ClipperOffset.Round(this.m_StepsPerRad*Math.abs(o))),1),s=this.m_normals[i].X,l=this.m_normals[i].Y,p=0;p1?(c=h.X,v=h.Y):y>0&&(c+=P*y,v+=m*y)),(P=a.X-c)*P+(m=a.Y-v)*m<=x&&(f[o+1]=1,o++);for(l.push({X:r[0].X,Y:r[0].Y}),o=1;o2&&_.push(l)}return C||(_=_[0]),void 0===_&&(_=[]),_},e.JS.PerimeterOfPath=function(t,e,i){if(void 0===t)return 0;var n,o,r=Math.sqrt,s=0,l=0,p=0,u=0,h=0,a=t.length;if(a<2)return 0;for(e&&(t[a]=t[0],a++);--a;)l=(n=t[a]).X,p=n.Y,s+=r((l-(u=(o=t[a-1]).X))*(l-u)+(p-(h=o.Y))*(p-h));return e&&t.pop(),s/i},e.JS.PerimeterOfPaths=function(t,i,n){n||(n=1);for(var o=0,r=0;rn in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,s=(e,t)=>{for(var n in t||(t={}))l.call(t,n)&&i(e,n,t[n]);if(o)for(var n of o(t))a.call(t,n)&&i(e,n,t[n]);return e},u=(e,o)=>t(e,n(o)),c=(e,t)=>{var n={};for(var r in e)l.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&o)for(var r of o(e))t.indexOf(r)<0&&a.call(e,r)&&(n[r]=e[r]);return n},d=(e,t,n)=>new Promise(((o,l)=>{var a=e=>{try{i(n.next(e))}catch(t){l(t)}},r=e=>{try{i(n.throw(e))}catch(t){l(t)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(a,r);i((n=n.apply(e,t)).next())}));import{u as p,g as f,o as v,r as m,w as g,a as h,b,c as y,n as w,s as x,d as k,e as C,i as S,f as E,h as I,j as O,k as T,l as B,m as M,p as _,q as L,t as A,N as R,v as $,x as F,y as V,z as P,A as N,B as z,C as D,D as j,E as H,F as q,G as W,H as K,I as U,J as Y,K as G,L as X,M as Z,O as J,P as Q,Q as ee,R as te,S as ne,T as oe,U as le,V as ae,W as re,X as ie,Y as se,Z as ue,_ as ce,$ as de,a0 as pe,a1 as fe,a2 as ve,a3 as me,a4 as ge,a5 as he,a6 as be,a7 as ye,a8 as we,a9 as xe,aa as ke,ab as Ce,ac as Se,ad as Ee,ae as Ie,af as Oe,ag as Te,ah as Be,ai as Me,aj as _e,ak as Le,al as Ae,am as Re,an as $e,ao as Fe,ap as Ve,aq as Pe,ar as Ne,as as ze,at as De}from"./vue-CfXu-DEr.js";import{i as je,g as He,s as qe,f as We,p as Ke,c as Ue,a as Ye,b as Ge,t as Xe,d as Ze,e as Je,h as Qe,j as et,o as tt}from"./lodash-es-DIelbCxD.js";var nt=!1;const ot=e=>Array.from(e.querySelectorAll('a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])')).filter((e=>lt(e)&&(e=>"fixed"!==getComputedStyle(e).position&&null!==e.offsetParent)(e))),lt=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.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}},at=function(e,t,...n){let o;o=t.includes("mouse")||t.includes("click")?"MouseEvents":t.includes("key")?"KeyboardEvent":"HTMLEvents";const l=document.createEvent(o);return l.initEvent(t,...n),e.dispatchEvent(l),e},rt=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const l=null==e?void 0:e(o);if(!1===n||!l)return null==t?void 0:t(o)},it=e=>t=>"mouse"===t.pointerType?e(t):void 0;var st,ut=Object.defineProperty,ct=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,mt=(e,t,n)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function gt(e,t){const n=x();var o,l;return k((()=>{n.value=e()}),(o=((e,t)=>{for(var n in t||(t={}))ft.call(t,n)&&mt(e,n,t[n]);if(pt)for(var n of pt(t))vt.call(t,n)&&mt(e,n,t[n]);return e})({},t),l={flush:null!=void 0?void 0:"sync"},ct(o,dt(l)))),h(n)}const ht="undefined"!=typeof window,bt=e=>"string"==typeof e,yt=()=>{},wt=ht&&(null==(st=null==window?void 0:window.navigator)?void 0:st.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function xt(e){return"function"==typeof e?e():p(e)}function kt(e,t){return function(...n){return new Promise(((o,l)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(o).catch(l)}))}}function Ct(e){return!!f()&&(v(e),!0)}function St(e,t=200,n={}){return kt(function(e,t={}){let n,o,l=yt;const a=e=>{clearTimeout(e),l(),l=yt};return r=>{const i=xt(e),s=xt(t.maxWait);return n&&a(n),i<=0||void 0!==s&&s<=0?(o&&(a(o),o=null),Promise.resolve(r())):new Promise(((e,u)=>{l=t.rejectOnCancel?u:e,s&&!o&&(o=setTimeout((()=>{n&&a(n),o=null,e(r())}),s)),n=setTimeout((()=>{o&&a(o),o=null,e(r())}),i)}))}}(t,n),e)}function Et(e,t=200,n=!1,o=!0,l=!1){return kt(function(e,t=!0,n=!0,o=!1){let l,a,r=0,i=!0,s=yt;const u=()=>{l&&(clearTimeout(l),l=void 0,s(),s=yt)};return c=>{const d=xt(e),p=Date.now()-r,f=()=>a=c();return u(),d<=0?(r=Date.now(),f()):(p>d&&(n||!i)?(r=Date.now(),f()):t&&(a=new Promise(((e,t)=>{s=o?t:e,l=setTimeout((()=>{r=Date.now(),i=!0,e(f()),u()}),Math.max(0,d-p))}))),n||l||(l=setTimeout((()=>i=!0),d)),i=!1,a)}}(t,n,o,l),e)}function It(e,t,n={}){const{immediate:o=!0}=n,l=m(!1);let a=null;function r(){a&&(clearTimeout(a),a=null)}function i(){l.value=!1,r()}function s(...n){r(),l.value=!0,a=setTimeout((()=>{l.value=!1,a=null,e(...n)}),xt(t))}return o&&(l.value=!0,ht&&s()),Ct(i),{isPending:h(l),start:s,stop:i}}function Ot(e){var t;const n=xt(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Tt=ht?window:void 0,Bt=ht?window.document:void 0;function Mt(...e){let t,n,o,l;if(bt(e[0])||Array.isArray(e[0])?([n,o,l]=e,t=Tt):[t,n,o,l]=e,!t)return yt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],r=()=>{a.forEach((e=>e())),a.length=0},i=g((()=>[Ot(t),xt(l)]),(([e,t])=>{r(),e&&a.push(...n.flatMap((n=>o.map((o=>((e,t,n,o)=>(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)))(e,n,o,t))))))}),{immediate:!0,flush:"post"}),s=()=>{i(),r()};return Ct(s),s}let _t=!1;function Lt(e,t=!1){const n=m(),o=()=>n.value=Boolean(e());return o(),function(e,t=!0){b()?y(e):t?e():w(e)}(o,t),n}const At="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Rt="__vueuse_ssr_handlers__";At[Rt]=At[Rt]||{};var $t=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;function Pt(e,t,n={}){const o=n,{window:l=Tt}=o,a=((e,t)=>{var n={};for(var o in e)Ft.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&$t)for(var o of $t(e))t.indexOf(o)<0&&Vt.call(e,o)&&(n[o]=e[o]);return n})(o,["window"]);let r;const i=Lt((()=>l&&"ResizeObserver"in l)),s=()=>{r&&(r.disconnect(),r=void 0)},u=g((()=>Ot(e)),(e=>{s(),i.value&&l&&e&&(r=new ResizeObserver(t),r.observe(e,a))}),{immediate:!0,flush:"post"}),c=()=>{s(),u()};return Ct(c),{isSupported:i,stop:c}}var Nt,zt,Dt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable;function qt(e,t,n={}){const o=n,{window:l=Tt}=o,a=((e,t)=>{var n={};for(var o in e)jt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&Dt)for(var o of Dt(e))t.indexOf(o)<0&&Ht.call(e,o)&&(n[o]=e[o]);return n})(o,["window"]);let r;const i=Lt((()=>l&&"MutationObserver"in l)),s=()=>{r&&(r.disconnect(),r=void 0)},u=g((()=>Ot(e)),(e=>{s(),i.value&&l&&e&&(r=new MutationObserver(t),r.observe(e,a))}),{immediate:!0}),c=()=>{s(),u()};return Ct(c),{isSupported:i,stop:c}}(zt=Nt||(Nt={})).UP="UP",zt.RIGHT="RIGHT",zt.DOWN="DOWN",zt.LEFT="LEFT",zt.NONE="NONE";var Wt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Gt=(e,t,n)=>t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Xt(e,t,n,o={}){var l,a,r;const{clone:i=!1,passive:s=!1,eventName:u,deep:c=!1,defaultValue:d}=o,p=b(),f=n||(null==p?void 0:p.emit)||(null==(l=null==p?void 0:p.$emit)?void 0:l.bind(p))||(null==(r=null==(a=null==p?void 0:p.proxy)?void 0:a.$emit)?void 0:r.bind(null==p?void 0:p.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const h=e=>{return i?(e=>"function"==typeof e)(i)?i(e):(t=e,JSON.parse(JSON.stringify(t))):e;var t},y=()=>void 0!==e[t]?h(e[t]):d;if(s){const n=y(),o=m(n);return g((()=>e[t]),(e=>o.value=h(e))),g(o,(n=>{(n!==e[t]||c)&&f(v,n)}),{deep:c}),o}return C({get:()=>y(),set(e){f(v,e)}})}((e,t)=>{for(var n in t||(t={}))Ut.call(t,n)&&Gt(e,n,t[n]);if(Kt)for(var n of Kt(t))Yt.call(t,n)&&Gt(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Zt=e=>void 0===e,Jt=e=>"boolean"==typeof e,Qt=e=>"number"==typeof e,en=e=>"undefined"!=typeof Element&&e instanceof Element,tn=e=>je(e),nn=e=>E(e),on=e=>Object.keys(e),ln=(e,t,n)=>({get value(){return He(e,t,n)},set value(n){qe(e,t,n)}});class an extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function rn(e,t){throw new an(`[${e}] ${t}`)}const sn=(e="")=>e.split(" ").filter((e=>!!e.trim())),un=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},cn=(e,t)=>{e&&t.trim()&&e.classList.add(...sn(t))},dn=(e,t)=>{e&&t.trim()&&e.classList.remove(...sn(t))},pn=(e,t)=>{var n;if(!ht||!e||!t)return"";let o=I(t);"float"===o&&(o="cssFloat");try{const t=e.style[o];if(t)return t;const l=null==(n=document.defaultView)?void 0:n.getComputedStyle(e,"");return l?l[o]:""}catch(l){return e.style[o]}};function fn(e,t="px"){return e?Qt(e)||S(n=e)&&!Number.isNaN(Number(n))?`${e}${t}`:S(e)?e:void 0:"";var n}const vn=(e,t)=>{if(!ht)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=pn(e,n);return["scroll","auto","overlay"].some((e=>o.includes(e)))};let mn; +/*! Element Plus Icons Vue v2.3.1 */ +var gn=O({name:"ArrowDown",__name:"arrow-down",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}),hn=O({name:"ArrowLeft",__name:"arrow-left",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}),bn=O({name:"ArrowRight",__name:"arrow-right",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}),yn=O({name:"ArrowUp",__name:"arrow-up",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}),wn=O({name:"Check",__name:"check",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}),xn=O({name:"CircleCheck",__name:"circle-check",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),M("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}),kn=O({name:"CircleCloseFilled",__name:"circle-close-filled",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}),Cn=O({name:"CircleClose",__name:"circle-close",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),M("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}),Sn=O({name:"Close",__name:"close",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}),En=O({name:"Delete",__name:"delete",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}),In=O({name:"Document",__name:"document",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}),On=O({name:"FullScreen",__name:"full-screen",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}),Tn=O({name:"Hide",__name:"hide",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),M("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}),Bn=O({name:"InfoFilled",__name:"info-filled",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}),Mn=O({name:"Loading",__name:"loading",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}),_n=O({name:"Lock",__name:"lock",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),M("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}),Ln=O({name:"Message",__name:"message",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),M("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224H205.056"})]))}),An=O({name:"Minus",__name:"minus",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}),Rn=O({name:"More",__name:"more",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}),$n=O({name:"Plus",__name:"plus",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}),Fn=O({name:"RefreshLeft",__name:"refresh-left",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}),Vn=O({name:"RefreshRight",__name:"refresh-right",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}),Pn=O({name:"ScaleToOriginal",__name:"scale-to-original",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}),Nn=O({name:"Search",__name:"search",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}),zn=O({name:"SuccessFilled",__name:"success-filled",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}),Dn=O({name:"UploadFilled",__name:"upload-filled",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}),jn=O({name:"View",__name:"view",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}),Hn=O({name:"WarningFilled",__name:"warning-filled",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}),qn=O({name:"ZoomIn",__name:"zoom-in",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}),Wn=O({name:"ZoomOut",__name:"zoom-out",setup:e=>(e,t)=>(T(),B("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[M("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))});const Kn="__epPropKey",Un=(e,t)=>{if(!_(e)||_(n=e)&&n[Kn])return e;var n;const{values:o,required:l,default:a,type:r,validator:i}=e,s=o||i?n=>{let l=!1,r=[];if(o&&(r=Array.from(o),L(e,"default")&&r.push(a),l||(l=r.includes(n))),i&&(l||(l=i(n))),!l&&r.length>0){const e=[...new Set(r)].map((e=>JSON.stringify(e))).join(", ");A(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(n)}.`)}return l}:void 0,u={type:r,required:!!l,validator:s,[Kn]:!0};return L(e,"default")&&(u.default=a),u},Yn=e=>We(Object.entries(e).map((([e,t])=>[e,Un(t,e)]))),Gn=[String,Object,Function],Xn={Close:Sn},Zn={Close:Sn,SuccessFilled:zn,InfoFilled:Bn,WarningFilled:Hn,CircleCloseFilled:kn},Jn={success:zn,warning:Hn,error:kn,info:Bn},Qn={validating:Mn,success:xn,error:Cn},eo=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(null!=t?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},to=e=>(e.install=R,e),no=(...e)=>t=>{e.forEach((e=>{$(e)?e(t):e.value=t}))},oo={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},lo="update:modelValue",ao="change",ro="input",io=["","default","small","large"],so=e=>["",...io].includes(e);var uo=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(uo||{});const co=e=>{const t=F(e)?e:[e],n=[];return t.forEach((e=>{var t;F(e)?n.push(...co(e)):V(e)&&F(e.children)?n.push(...co(e.children)):(n.push(e),V(e)&&(null==(t=e.component)?void 0:t.subTree)&&n.push(...co(e.component.subTree)))})),n},po=["class","style"],fo=/^on[A-Z]/,vo=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=C((()=>((null==n?void 0:n.value)||[]).concat(po))),l=b();return C(l?()=>{var e;return We(Object.entries(null==(e=l.proxy)?void 0:e.$attrs).filter((([e])=>!(o.value.includes(e)||t&&fo.test(e)))))}:()=>({}))},mo=({from:e,replacement:t,scope:n,version:o,ref:l,type:a="API"},r)=>{g((()=>p(r)),(e=>{}),{immediate:!0})},go=(e,t,n,o)=>{let l={offsetX:0,offsetY:0};const a=t=>{const n=t.clientX,a=t.clientY,{offsetX:r,offsetY:i}=l,s=e.value.getBoundingClientRect(),u=s.left,c=s.top,d=s.width,p=s.height,f=document.documentElement.clientWidth,v=document.documentElement.clientHeight,m=-u+r,g=-c+i,h=f-u-d+r,b=v-c-p+i,y=t=>{let s=r+t.clientX-n,u=i+t.clientY-a;(null==o?void 0:o.value)||(s=Math.min(Math.max(s,m),h),u=Math.min(Math.max(u,g),b)),l={offsetX:s,offsetY:u},e.value&&(e.value.style.transform=`translate(${fn(s)}, ${fn(u)})`)},w=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",w)},r=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};return y((()=>{k((()=>{n.value?t.value&&e.value&&t.value.addEventListener("mousedown",a):r()}))})),P((()=>{r()})),{resetPosition:()=>{l={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")}}};var ho={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const bo=e=>(t,n)=>yo(t,n,p(e)),yo=(e,t,n)=>He(n,e,e).replace(/\{(\w+)\}/g,((e,n)=>{var o;return`${null!=(o=null==t?void 0:t[n])?o:`{${n}}`}`})),wo=Symbol("localeContextKey"),xo=e=>{const t=e||N(wo,m());return(e=>({lang:C((()=>p(e).name)),locale:z(e)?e:m(e),t:bo(e)}))(C((()=>t.value||ho)))},ko="el",Co=(e,t,n,o,l)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),l&&(a+=`--${l}`),a},So=Symbol("namespaceContextKey"),Eo=e=>{const t=e||(b()?N(So,m(ko)):m(ko));return C((()=>p(t)||ko))},Io=(e,t)=>{const n=Eo(t);return{namespace:n,b:(t="")=>Co(n.value,e,t,"",""),e:t=>t?Co(n.value,e,"",t,""):"",m:t=>t?Co(n.value,e,"","",t):"",be:(t,o)=>t&&o?Co(n.value,e,t,o,""):"",em:(t,o)=>t&&o?Co(n.value,e,"",t,o):"",bm:(t,o)=>t&&o?Co(n.value,e,t,"",o):"",bem:(t,o,l)=>t&&o&&l?Co(n.value,e,t,o,l):"",is:(e,...t)=>{const n=!(t.length>=1)||t[0];return e&&n?`is-${e}`:""},cssVar:e=>{const t={};for(const o in e)e[o]&&(t[`--${n.value}-${o}`]=e[o]);return t},cssVarName:e=>`--${n.value}-${e}`,cssVarBlock:t=>{const o={};for(const l in t)t[l]&&(o[`--${n.value}-${e}-${l}`]=t[l]);return o},cssVarBlockName:t=>`--${n.value}-${e}-${t}`}},Oo=(e,t={})=>{z(e)||rn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Io("popup"),o=C((()=>n.bm("parent","hidden")));if(!ht||un(document.body,o.value))return;let l=0,a=!1,r="0";const i=()=>{setTimeout((()=>{dn(null==document?void 0:document.body,o.value),a&&document&&(document.body.style.width=r)}),200)};g(e,(e=>{if(!e)return void i();a=!un(document.body,o.value),a&&(r=document.body.style.width),l=(e=>{var t;if(!ht)return 0;if(void 0!==mn)return mn;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const a=l.offsetWidth;return null==(t=n.parentNode)||t.removeChild(n),mn=o-a,mn})(n.namespace.value);const t=document.documentElement.clientHeight0&&(t||"scroll"===s)&&a&&(document.body.style.width=`calc(100% - ${l}px)`),cn(document.body,o.value)})),v((()=>i()))},To=Un({type:Boolean,default:null}),Bo=Un({type:Function}),Mo=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t];return{useModelToggle:({indicator:o,toggleReason:l,shouldHideWhenRouteChanges:a,shouldProceed:r,onShow:i,onHide:u})=>{const c=b(),{emit:d}=c,p=c.props,f=C((()=>$(p[n]))),v=C((()=>null===p[e])),m=e=>{!0!==o.value&&(o.value=!0,l&&(l.value=e),$(i)&&i(e))},h=e=>{!1!==o.value&&(o.value=!1,l&&(l.value=e),$(u)&&u(e))},w=e=>{if(!0===p.disabled||$(r)&&!r())return;const n=f.value&&ht;n&&d(t,!0),!v.value&&n||m(e)},x=e=>{if(!0===p.disabled||!ht)return;const n=f.value&&ht;n&&d(t,!1),!v.value&&n||h(e)},k=e=>{Jt(e)&&(p.disabled&&e?f.value&&d(t,!1):o.value!==e&&(e?m():h()))};return g((()=>p[e]),k),a&&void 0!==c.appContext.config.globalProperties.$route&&g((()=>s({},c.proxy.$route)),(()=>{a.value&&o.value&&x()})),y((()=>{k(p[e])})),{hide:x,show:w,toggle:()=>{o.value?x():w()},hasUpdateHandler:f}},useModelToggleProps:{[e]:To,[n]:Bo},useModelToggleEmits:o}};Mo("modelValue");const _o=e=>{const t=b();return C((()=>{var n,o;return null==(o=null==(n=null==t?void 0:t.proxy)?void 0:n.$props)?void 0:o[e]}))};var Lo="top",Ao="bottom",Ro="right",$o="left",Fo="auto",Vo=[Lo,Ao,Ro,$o],Po="start",No="end",zo="clippingParents",Do="viewport",jo="popper",Ho="reference",qo=Vo.reduce((function(e,t){return e.concat([t+"-"+Po,t+"-"+No])}),[]),Wo=[].concat(Vo,[Fo]).reduce((function(e,t){return e.concat([t,t+"-"+Po,t+"-"+No])}),[]),Ko=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Uo(e){return e?(e.nodeName||"").toLowerCase():null}function Yo(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Go(e){return e instanceof Yo(e).Element||e instanceof Element}function Xo(e){return e instanceof Yo(e).HTMLElement||e instanceof HTMLElement}function Zo(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Yo(e).ShadowRoot||e instanceof ShadowRoot)}var Jo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},l=t.elements[e];!Xo(l)||!Uo(l)||(Object.assign(l.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?l.removeAttribute(e):l.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],l=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!Xo(o)||!Uo(o)||(Object.assign(o.style,a),Object.keys(l).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Qo(e){return e.split("-")[0]}var el=Math.max,tl=Math.min,nl=Math.round;function ol(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,l=1;if(Xo(e)&&t){var a=e.offsetHeight,r=e.offsetWidth;r>0&&(o=nl(n.width)/r||1),a>0&&(l=nl(n.height)/a||1)}return{width:n.width/o,height:n.height/l,top:n.top/l,right:n.right/o,bottom:n.bottom/l,left:n.left/o,x:n.left/o,y:n.top/l}}function ll(e){var t=ol(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function al(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zo(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function rl(e){return Yo(e).getComputedStyle(e)}function il(e){return["table","td","th"].indexOf(Uo(e))>=0}function sl(e){return((Go(e)?e.ownerDocument:e.document)||window.document).documentElement}function ul(e){return"html"===Uo(e)?e:e.assignedSlot||e.parentNode||(Zo(e)?e.host:null)||sl(e)}function cl(e){return Xo(e)&&"fixed"!==rl(e).position?e.offsetParent:null}function dl(e){for(var t=Yo(e),n=cl(e);n&&il(n)&&"static"===rl(n).position;)n=cl(n);return n&&("html"===Uo(n)||"body"===Uo(n)&&"static"===rl(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Xo(e)&&"fixed"===rl(e).position)return null;var n=ul(e);for(Zo(n)&&(n=n.host);Xo(n)&&["html","body"].indexOf(Uo(n))<0;){var o=rl(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function pl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fl(e,t,n){return el(e,tl(t,n))}function vl(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ml(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var gl={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,l=e.options,a=n.elements.arrow,r=n.modifiersData.popperOffsets,i=Qo(n.placement),s=pl(i),u=[$o,Ro].indexOf(i)>=0?"height":"width";if(a&&r){var c=function(e,t){return vl("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ml(e,Vo))}(l.padding,n),d=ll(a),p="y"===s?Lo:$o,f="y"===s?Ao:Ro,v=n.rects.reference[u]+n.rects.reference[s]-r[s]-n.rects.popper[u],m=r[s]-n.rects.reference[s],g=dl(a),h=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=v/2-m/2,y=c[p],w=h-d[u]-c[f],x=h/2-d[u]/2+b,k=fl(y,x,w),C=s;n.modifiersData[o]=((t={})[C]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||!al(t.elements.popper,o)||(t.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hl(e){return e.split("-")[1]}var bl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yl(e){var t,n=e.popper,o=e.popperRect,l=e.placement,a=e.variation,r=e.offsets,i=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=r.x,f=void 0===p?0:p,v=r.y,m=void 0===v?0:v,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var h=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),y=$o,w=Lo,x=window;if(u){var k=dl(n),C="clientHeight",S="clientWidth";if(k===Yo(n)&&("static"!==rl(k=sl(n)).position&&"absolute"===i&&(C="scrollHeight",S="scrollWidth")),l===Lo||(l===$o||l===Ro)&&a===No)w=Ao,m-=(d&&k===x&&x.visualViewport?x.visualViewport.height:k[C])-o.height,m*=s?1:-1;if(l===$o||(l===Lo||l===Ao)&&a===No)y=Ro,f-=(d&&k===x&&x.visualViewport?x.visualViewport.width:k[S])-o.width,f*=s?1:-1}var E,I=Object.assign({position:i},u&&bl),O=!0===c?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:nl(t*o)/o||0,y:nl(n*o)/o||0}}({x:f,y:m}):{x:f,y:m};return f=O.x,m=O.y,s?Object.assign({},I,((E={})[w]=b?"0":"",E[y]=h?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},I,((t={})[w]=b?m+"px":"",t[y]=h?f+"px":"",t.transform="",t))}var wl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,l=void 0===o||o,a=n.adaptive,r=void 0===a||a,i=n.roundOffsets,s=void 0===i||i,u={placement:Qo(t.placement),variation:hl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,yl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,yl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},xl={passive:!0};var kl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,l=o.scroll,a=void 0===l||l,r=o.resize,i=void 0===r||r,s=Yo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,xl)})),i&&s.addEventListener("resize",n.update,xl),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,xl)})),i&&s.removeEventListener("resize",n.update,xl)}},data:{}},Cl={left:"right",right:"left",bottom:"top",top:"bottom"};function Sl(e){return e.replace(/left|right|bottom|top/g,(function(e){return Cl[e]}))}var El={start:"end",end:"start"};function Il(e){return e.replace(/start|end/g,(function(e){return El[e]}))}function Ol(e){var t=Yo(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tl(e){return ol(sl(e)).left+Ol(e).scrollLeft}function Bl(e){var t=rl(e),n=t.overflow,o=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+o)}function Ml(e){return["html","body","#document"].indexOf(Uo(e))>=0?e.ownerDocument.body:Xo(e)&&Bl(e)?e:Ml(ul(e))}function _l(e,t){var n;void 0===t&&(t=[]);var o=Ml(e),l=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Yo(o),r=l?[a].concat(a.visualViewport||[],Bl(o)?o:[]):o,i=t.concat(r);return l?i:i.concat(_l(ul(r)))}function Ll(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Al(e,t){return t===Do?Ll(function(e){var t=Yo(e),n=sl(e),o=t.visualViewport,l=n.clientWidth,a=n.clientHeight,r=0,i=0;return o&&(l=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,i=o.offsetTop)),{width:l,height:a,x:r+Tl(e),y:i}}(e)):Go(t)?function(e){var t=ol(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Ll(function(e){var t,n=sl(e),o=Ol(e),l=null==(t=e.ownerDocument)?void 0:t.body,a=el(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),r=el(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-o.scrollLeft+Tl(e),s=-o.scrollTop;return"rtl"===rl(l||n).direction&&(i+=el(n.clientWidth,l?l.clientWidth:0)-a),{width:a,height:r,x:i,y:s}}(sl(e)))}function Rl(e,t,n){var o="clippingParents"===t?function(e){var t=_l(ul(e)),n=["absolute","fixed"].indexOf(rl(e).position)>=0&&Xo(e)?dl(e):e;return Go(n)?t.filter((function(e){return Go(e)&&al(e,n)&&"body"!==Uo(e)})):[]}(e):[].concat(t),l=[].concat(o,[n]),a=l[0],r=l.reduce((function(t,n){var o=Al(e,n);return t.top=el(o.top,t.top),t.right=tl(o.right,t.right),t.bottom=tl(o.bottom,t.bottom),t.left=el(o.left,t.left),t}),Al(e,a));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function $l(e){var t,n=e.reference,o=e.element,l=e.placement,a=l?Qo(l):null,r=l?hl(l):null,i=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(a){case Lo:t={x:i,y:n.y-o.height};break;case Ao:t={x:i,y:n.y+n.height};break;case Ro:t={x:n.x+n.width,y:s};break;case $o:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var u=a?pl(a):null;if(null!=u){var c="y"===u?"height":"width";switch(r){case Po:t[u]=t[u]-(n[c]/2-o[c]/2);break;case No:t[u]=t[u]+(n[c]/2-o[c]/2)}}return t}function Fl(e,t){void 0===t&&(t={});var n=t,o=n.placement,l=void 0===o?e.placement:o,a=n.boundary,r=void 0===a?zo:a,i=n.rootBoundary,s=void 0===i?Do:i,u=n.elementContext,c=void 0===u?jo:u,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,v=void 0===f?0:f,m=vl("number"!=typeof v?v:ml(v,Vo)),g=c===jo?Ho:jo,h=e.rects.popper,b=e.elements[p?g:c],y=Rl(Go(b)?b:b.contextElement||sl(e.elements.popper),r,s),w=ol(e.elements.reference),x=$l({reference:w,element:h,strategy:"absolute",placement:l}),k=Ll(Object.assign({},h,x)),C=c===jo?k:w,S={top:y.top-C.top+m.top,bottom:C.bottom-y.bottom+m.bottom,left:y.left-C.left+m.left,right:C.right-y.right+m.right},E=e.modifiersData.offset;if(c===jo&&E){var I=E[l];Object.keys(S).forEach((function(e){var t=[Ro,Ao].indexOf(e)>=0?1:-1,n=[Lo,Ao].indexOf(e)>=0?"y":"x";S[e]+=I[n]*t}))}return S}var Vl={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var l=n.mainAxis,a=void 0===l||l,r=n.altAxis,i=void 0===r||r,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,v=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,h=Qo(g),b=s||(h===g||!v?[Sl(g)]:function(e){if(Qo(e)===Fo)return[];var t=Sl(e);return[Il(e),t,Il(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(Qo(n)===Fo?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,l=n.boundary,a=n.rootBoundary,r=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?Wo:s,c=hl(o),d=c?i?qo:qo.filter((function(e){return hl(e)===c})):Vo,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Fl(e,{placement:n,boundary:l,rootBoundary:a,padding:r})[Qo(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,k=new Map,C=!0,S=y[0],E=0;E=0,M=B?"width":"height",_=Fl(t,{placement:I,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),L=B?T?Ro:$o:T?Ao:Lo;w[M]>x[M]&&(L=Sl(L));var A=Sl(L),R=[];if(a&&R.push(_[O]<=0),i&&R.push(_[L]<=0,_[A]<=0),R.every((function(e){return e}))){S=I,C=!1;break}k.set(I,R)}if(C)for(var $=function(e){var t=y.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},F=v?3:1;F>0;F--){if("break"===$(F))break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Pl(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Nl(e){return[Lo,Ro,Ao,$o].some((function(t){return e[t]>=0}))}var zl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,l=t.rects.popper,a=t.modifiersData.preventOverflow,r=Fl(t,{elementContext:"reference"}),i=Fl(t,{altBoundary:!0}),s=Pl(r,o),u=Pl(i,l,a),c=Nl(s),d=Nl(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var Dl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,l=n.offset,a=void 0===l?[0,0]:l,r=Wo.reduce((function(e,n){return e[n]=function(e,t,n){var o=Qo(e),l=[$o,Lo].indexOf(o)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=a[0],i=a[1];return r=r||0,i=(i||0)*l,[$o,Ro].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}(n,t.rects,a),e}),{}),i=r[t.placement],s=i.x,u=i.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=r}};var jl={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=$l({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Hl={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,l=n.mainAxis,a=void 0===l||l,r=n.altAxis,i=void 0!==r&&r,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,v=n.tetherOffset,m=void 0===v?0:v,g=Fl(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),h=Qo(t.placement),b=hl(t.placement),y=!b,w=pl(h),x=function(e){return"x"===e?"y":"x"}(w),k=t.modifiersData.popperOffsets,C=t.rects.reference,S=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,I="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(k){if(a){var B,M="y"===w?Lo:$o,_="y"===w?Ao:Ro,L="y"===w?"height":"width",A=k[w],R=A+g[M],$=A-g[_],F=f?-S[L]/2:0,V=b===Po?C[L]:S[L],P=b===Po?-S[L]:-C[L],N=t.elements.arrow,z=f&&N?ll(N):{width:0,height:0},D=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=D[M],H=D[_],q=fl(0,C[L],z[L]),W=y?C[L]/2-F-q-j-I.mainAxis:V-q-j-I.mainAxis,K=y?-C[L]/2+F+q+H+I.mainAxis:P+q+H+I.mainAxis,U=t.elements.arrow&&dl(t.elements.arrow),Y=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,G=null!=(B=null==O?void 0:O[w])?B:0,X=A+K-G,Z=fl(f?tl(R,A+W-G-Y):R,A,f?el($,X):$);k[w]=Z,T[w]=Z-A}if(i){var J,Q="x"===w?Lo:$o,ee="x"===w?Ao:Ro,te=k[x],ne="y"===x?"height":"width",oe=te+g[Q],le=te-g[ee],ae=-1!==[Lo,$o].indexOf(h),re=null!=(J=null==O?void 0:O[x])?J:0,ie=ae?oe:te-C[ne]-S[ne]-re+I.altAxis,se=ae?te+C[ne]+S[ne]-re-I.altAxis:le,ue=f&&ae?function(e,t,n){var o=fl(e,t,n);return o>n?n:o}(ie,te,se):fl(f?ie:oe,te,f?se:le);k[x]=ue,T[x]=ue-te}t.modifiersData[o]=T}},requiresIfExists:["offset"]};function ql(e,t,n){void 0===n&&(n=!1);var o=Xo(t),l=Xo(t)&&function(e){var t=e.getBoundingClientRect(),n=nl(t.width)/e.offsetWidth||1,o=nl(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),a=sl(t),r=ol(e,l),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&(("body"!==Uo(t)||Bl(a))&&(i=function(e){return e!==Yo(e)&&Xo(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Ol(e)}(t)),Xo(t)?((s=ol(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Tl(a))),{x:r.left+i.scrollLeft-s.x,y:r.top+i.scrollTop-s.y,width:r.width,height:r.height}}function Wl(e){var t=new Map,n=new Set,o=[];function l(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&l(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||l(e)})),o}function Kl(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Ul={placement:"bottom",modifiers:[],strategy:"absolute"};function Yl(){for(var e=arguments.length,t=new Array(e),n=0;n{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=function(e){const t=Object.keys(e.elements),n=We(t.map((t=>[t,e.styles[t]||{}]))),o=We(t.map((t=>[t,e.attributes[t]])));return{styles:n,attributes:o}}(e);Object.assign(r.value,t)},requires:["computeStyles"]},l=C((()=>{const{onFirstUpdate:e,placement:t,strategy:l,modifiers:a}=p(n);return{onFirstUpdate:e,placement:t||"bottom",strategy:l||"absolute",modifiers:[...a||[],o,{name:"applyStyles",enabled:!1}]}})),a=x(),r=m({styles:{popper:{position:p(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return g(l,(e=>{const t=p(a);t&&t.setOptions(e)}),{deep:!0}),g([e,t],(([e,t])=>{i(),e&&t&&(a.value=Xl(e,t,p(l)))})),P((()=>{i()})),{state:C((()=>{var e;return s({},(null==(e=p(a))?void 0:e.state)||{})})),styles:C((()=>p(r).styles)),attributes:C((()=>p(r).attributes)),update:()=>{var e;return null==(e=p(a))?void 0:e.update()},forceUpdate:()=>{var e;return null==(e=p(a))?void 0:e.forceUpdate()},instanceRef:C((()=>p(a)))}};const Jl=e=>{if(!e)return{onClick:R,onMousedown:R,onMouseup:R};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{n=e.target===e.currentTarget}}};function Ql(){let e;const t=()=>window.clearTimeout(e);return Ct((()=>t())),{registerTimeout:(n,o)=>{t(),e=window.setTimeout(n,o)},cancelTimeout:t}}const ea={prefix:Math.floor(1e4*Math.random()),current:0},ta=Symbol("elIdInjection"),na=()=>b()?N(ta,ea):ea,oa=e=>{const t=na(),n=Eo();return C((()=>p(e)||`${n.value}-id-${t.prefix}-${t.current++}`))};let la=[];const aa=e=>{const t=e;t.key===oo.esc&&la.forEach((e=>e(t)))};let ra;const ia=()=>{const e=Eo(),t=na(),n=C((()=>`${e.value}-popper-container-${t.prefix}`)),o=C((()=>`#${n.value}`));return{id:n,selector:o}},sa=()=>{const{id:e,selector:t}=ia();return D((()=>{ht&&(ra&&document.body.querySelector(t.value)||(ra=(e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t})(e.value)))})),{id:e,selector:t}},ua=Yn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),ca=Symbol("elForwardRef"),da={current:0},pa=m(0),fa=2e3,va=Symbol("elZIndexContextKey"),ma=Symbol("zIndexContextKey"),ga=e=>{const t=b()?N(va,da):da,n=e||(b()?N(ma,void 0):void 0),o=C((()=>{const e=p(n);return Qt(e)?e:fa})),l=C((()=>o.value+pa.value));return!ht&&N(va),{initialZIndex:o,currentZIndex:l,nextZIndex:()=>(t.current++,pa.value=t.current,l.value)}},ha=Math.min,ba=Math.max,ya=Math.round,wa=Math.floor,xa=e=>({x:e,y:e}),ka={left:"right",right:"left",bottom:"top",top:"bottom"},Ca={start:"end",end:"start"};function Sa(e,t,n){return ba(e,ha(t,n))}function Ea(e,t){return"function"==typeof e?e(t):e}function Ia(e){return e.split("-")[0]}function Oa(e){return e.split("-")[1]}function Ta(e){return"x"===e?"y":"x"}function Ba(e){return"y"===e?"height":"width"}function Ma(e){return["top","bottom"].includes(Ia(e))?"y":"x"}function _a(e){return Ta(Ma(e))}function La(e){return e.replace(/start|end/g,(e=>Ca[e]))}function Aa(e){return e.replace(/left|right|bottom|top/g,(e=>ka[e]))}function Ra(e){return"number"!=typeof e?function(e){return s({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function $a(e){const{x:t,y:n,width:o,height:l}=e;return{width:o,height:l,top:n,left:t,right:t+o,bottom:n+l,x:t,y:n}}function Fa(e,t,n){let{reference:o,floating:l}=e;const a=Ma(t),r=_a(t),i=Ba(r),s=Ia(t),u="y"===a,c=o.x+o.width/2-l.width/2,d=o.y+o.height/2-l.height/2,p=o[i]/2-l[i]/2;let f;switch(s){case"top":f={x:c,y:o.y-l.height};break;case"bottom":f={x:c,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:d};break;case"left":f={x:o.x-l.width,y:d};break;default:f={x:o.x,y:o.y}}switch(Oa(t)){case"start":f[r]-=p*(n&&u?-1:1);break;case"end":f[r]+=p*(n&&u?-1:1)}return f}function Va(e,t){return d(this,null,(function*(){var n;void 0===t&&(t={});const{x:o,y:l,platform:a,rects:r,elements:i,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Ea(t,e),v=Ra(f),m=i[p?"floating"===d?"reference":"floating":d],g=$a(yield a.getClippingRect({element:null==(n=yield null==a.isElement?void 0:a.isElement(m))||n?m:m.contextElement||(yield null==a.getDocumentElement?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:s})),h="floating"===d?{x:o,y:l,width:r.floating.width,height:r.floating.height}:r.reference,b=yield null==a.getOffsetParent?void 0:a.getOffsetParent(i.floating),y=(yield null==a.isElement?void 0:a.isElement(b))&&(yield null==a.getScale?void 0:a.getScale(b))||{x:1,y:1},w=$a(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:h,offsetParent:b,strategy:s}):h);return{top:(g.top-w.top+v.top)/y.y,bottom:(w.bottom-g.bottom+v.bottom)/y.y,left:(g.left-w.left+v.left)/y.x,right:(w.right-g.right+v.right)/y.x}}))}function Pa(e){return Da(e)?(e.nodeName||"").toLowerCase():"#document"}function Na(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function za(e){var t;return null==(t=(Da(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Da(e){return e instanceof Node||e instanceof Na(e).Node}function ja(e){return e instanceof Element||e instanceof Na(e).Element}function Ha(e){return e instanceof HTMLElement||e instanceof Na(e).HTMLElement}function qa(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Na(e).ShadowRoot)}function Wa(e){const{overflow:t,overflowX:n,overflowY:o,display:l}=Za(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(l)}function Ka(e){return["table","td","th"].includes(Pa(e))}function Ua(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function Ya(e){const t=Ga(),n=ja(e)?Za(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Ga(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Xa(e){return["html","body","#document"].includes(Pa(e))}function Za(e){return Na(e).getComputedStyle(e)}function Ja(e){return ja(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qa(e){if("html"===Pa(e))return e;const t=e.assignedSlot||e.parentNode||qa(e)&&e.host||za(e);return qa(t)?t.host:t}function er(e){const t=Qa(e);return Xa(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ha(t)&&Wa(t)?t:er(t)}function tr(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const l=er(e),a=l===(null==(o=e.ownerDocument)?void 0:o.body),r=Na(l);if(a){const e=nr(r);return t.concat(r,r.visualViewport||[],Wa(l)?l:[],e&&n?tr(e):[])}return t.concat(l,tr(l,[],n))}function nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function or(e){const t=Za(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const l=Ha(e),a=l?e.offsetWidth:n,r=l?e.offsetHeight:o,i=ya(n)!==a||ya(o)!==r;return i&&(n=a,o=r),{width:n,height:o,$:i}}function lr(e){return ja(e)?e:e.contextElement}function ar(e){const t=lr(e);if(!Ha(t))return xa(1);const n=t.getBoundingClientRect(),{width:o,height:l,$:a}=or(t);let r=(a?ya(n.width):n.width)/o,i=(a?ya(n.height):n.height)/l;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}const rr=xa(0);function ir(e){const t=Na(e);return Ga()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:rr}function sr(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect(),a=lr(e);let r=xa(1);t&&(o?ja(o)&&(r=ar(o)):r=ar(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Na(e))&&t}(a,n,o)?ir(a):xa(0);let s=(l.left+i.x)/r.x,u=(l.top+i.y)/r.y,c=l.width/r.x,d=l.height/r.y;if(a){const e=Na(a),t=o&&ja(o)?Na(o):o;let n=e,l=nr(n);for(;l&&o&&t!==n;){const e=ar(l),t=l.getBoundingClientRect(),o=Za(l),a=t.left+(l.clientLeft+parseFloat(o.paddingLeft))*e.x,r=t.top+(l.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=a,u+=r,n=Na(l),l=nr(n)}}return $a({width:c,height:d,x:s,y:u})}function ur(e){return sr(za(e)).left+Ja(e).scrollLeft}function cr(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Na(e),o=za(e),l=n.visualViewport;let a=o.clientWidth,r=o.clientHeight,i=0,s=0;if(l){a=l.width,r=l.height;const e=Ga();(!e||e&&"fixed"===t)&&(i=l.offsetLeft,s=l.offsetTop)}return{width:a,height:r,x:i,y:s}}(e,n);else if("document"===t)o=function(e){const t=za(e),n=Ja(e),o=e.ownerDocument.body,l=ba(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=ba(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+ur(e);const i=-n.scrollTop;return"rtl"===Za(o).direction&&(r+=ba(t.clientWidth,o.clientWidth)-l),{width:l,height:a,x:r,y:i}}(za(e));else if(ja(t))o=function(e,t){const n=sr(e,!0,"fixed"===t),o=n.top+e.clientTop,l=n.left+e.clientLeft,a=Ha(e)?ar(e):xa(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:l*a.x,y:o*a.y}}(t,n);else{const n=ir(e);o=u(s({},t),{x:t.x-n.x,y:t.y-n.y})}return $a(o)}function dr(e,t){const n=Qa(e);return!(n===t||!ja(n)||Xa(n))&&("fixed"===Za(n).position||dr(n,t))}function pr(e,t,n){const o=Ha(t),l=za(t),a="fixed"===n,r=sr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const s=xa(0);if(o||!o&&!a)if(("body"!==Pa(t)||Wa(l))&&(i=Ja(t)),o){const e=sr(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else l&&(s.x=ur(l));return{x:r.left+i.scrollLeft-s.x,y:r.top+i.scrollTop-s.y,width:r.width,height:r.height}}function fr(e){return"static"===Za(e).position}function vr(e,t){return Ha(e)&&"fixed"!==Za(e).position?t?t(e):e.offsetParent:null}function mr(e,t){const n=Na(e);if(Ua(e))return n;if(!Ha(e)){let t=Qa(e);for(;t&&!Xa(t);){if(ja(t)&&!fr(t))return t;t=Qa(t)}return n}let o=vr(e,t);for(;o&&Ka(o)&&fr(o);)o=vr(o,t);return o&&Xa(o)&&fr(o)&&!Ya(o)?n:o||function(e){let t=Qa(e);for(;Ha(t)&&!Xa(t);){if(Ya(t))return t;if(Ua(t))return null;t=Qa(t)}return null}(e)||n}const gr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:l}=e;const a="fixed"===l,r=za(o),i=!!t&&Ua(t.floating);if(o===r||i&&a)return n;let s={scrollLeft:0,scrollTop:0},u=xa(1);const c=xa(0),d=Ha(o);if((d||!d&&!a)&&(("body"!==Pa(o)||Wa(r))&&(s=Ja(o)),Ha(o))){const e=sr(o);u=ar(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:za,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e;const a=[..."clippingAncestors"===n?Ua(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=tr(e,[],!1).filter((e=>ja(e)&&"body"!==Pa(e))),l=null;const a="fixed"===Za(e).position;let r=a?Qa(e):e;for(;ja(r)&&!Xa(r);){const t=Za(r),n=Ya(r);n||"fixed"!==t.position||(l=null),(a?!n&&!l:!n&&"static"===t.position&&l&&["absolute","fixed"].includes(l.position)||Wa(r)&&!n&&dr(e,r))?o=o.filter((e=>e!==r)):l=t,r=Qa(r)}return t.set(e,o),o}(t,this._c):[].concat(n),o],r=a[0],i=a.reduce(((e,n)=>{const o=cr(t,n,l);return e.top=ba(o.top,e.top),e.right=ha(o.right,e.right),e.bottom=ha(o.bottom,e.bottom),e.left=ba(o.left,e.left),e}),cr(t,r,l));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:mr,getElementRects:function(e){return d(this,null,(function*(){const t=this.getOffsetParent||mr,n=this.getDimensions,o=yield n(e.floating);return{reference:pr(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}}))},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=or(e);return{width:t,height:n}},getScale:ar,isElement:ja,isRTL:function(e){return"rtl"===Za(e).direction}};function hr(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:c=!1}=o,d=lr(e),p=l||a?[...d?tr(d):[],...tr(t)]:[];p.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const f=d&&i?function(e,t){let n,o=null;const l=za(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function r(i,c){void 0===i&&(i=!1),void 0===c&&(c=1),a();const{left:d,top:p,width:f,height:v}=e.getBoundingClientRect();if(i||t(),!f||!v)return;const m={rootMargin:-wa(p)+"px "+-wa(l.clientWidth-(d+f))+"px "+-wa(l.clientHeight-(p+v))+"px "+-wa(d)+"px",threshold:ba(0,ha(1,c))||1};let g=!0;function h(e){const t=e[0].intersectionRatio;if(t!==c){if(!g)return r();t?r(!1,t):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}g=!1}try{o=new IntersectionObserver(h,u(s({},m),{root:l.ownerDocument}))}catch(b){o=new IntersectionObserver(h,m)}o.observe(e)}(!0),a}(d,n):null;let v,m=-1,g=null;r&&(g=new ResizeObserver((e=>{let[o]=e;o&&o.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),d&&!c&&g.observe(d),g.observe(t));let h=c?sr(e):null;return c&&function t(){const o=sr(e);!h||o.x===h.x&&o.y===h.y&&o.width===h.width&&o.height===h.height||n();h=o,v=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==f||f(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const br=Va,yr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn(t){return d(this,null,(function*(){var n,o;const{x:l,y:a,placement:r,middlewareData:i}=t,c=yield function(e,t){return d(this,null,(function*(){const{placement:n,platform:o,elements:l}=e,a=yield null==o.isRTL?void 0:o.isRTL(l.floating),r=Ia(n),i=Oa(n),u="y"===Ma(n),c=["left","top"].includes(r)?-1:1,d=a&&u?-1:1,p=Ea(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:s({mainAxis:0,crossAxis:0,alignmentAxis:null},p);return i&&"number"==typeof m&&(v="end"===i?-1*m:m),u?{x:v*d,y:f*c}:{x:f*c,y:v*d}}))}(t,e);return r===(null==(n=i.offset)?void 0:n.placement)&&null!=(o=i.arrow)&&o.alignmentOffset?{}:{x:l+c.x,y:a+c.y,data:u(s({},c),{placement:r})}}))}}},wr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn(t){return d(this,null,(function*(){const{x:n,y:o,placement:l}=t,a=Ea(e,t),{mainAxis:r=!0,crossAxis:i=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=a,p=c(a,["mainAxis","crossAxis","limiter"]),f={x:n,y:o},v=yield Va(t,p),m=Ma(Ia(l)),g=Ta(m);let h=f[g],b=f[m];if(r){const e="y"===g?"bottom":"right";h=Sa(h+v["y"===g?"top":"left"],h,h-v[e])}if(i){const e="y"===m?"bottom":"right";b=Sa(b+v["y"===m?"top":"left"],b,b-v[e])}const y=d.fn(u(s({},t),{[g]:h,[m]:b}));return u(s({},y),{data:{x:y.x-n,y:y.y-o}})}))}}},xr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn(t){return d(this,null,(function*(){var n,o;const{placement:l,middlewareData:a,rects:r,initialPlacement:i,platform:s,elements:u}=t,d=Ea(e,t),{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0}=d,b=c(d,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const y=Ia(l),w=Ma(i),x=Ia(i)===i,k=yield null==s.isRTL?void 0:s.isRTL(u.floating),C=v||(x||!h?[Aa(i)]:function(e){const t=Aa(e);return[La(e),t,La(t)]}(i)),S="none"!==g;!v&&S&&C.push(...function(e,t,n,o){const l=Oa(e);let a=function(e,t,n){const o=["left","right"],l=["right","left"],a=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?l:o:t?o:l;case"left":case"right":return t?a:r;default:return[]}}(Ia(e),"start"===n,o);return l&&(a=a.map((e=>e+"-"+l)),t&&(a=a.concat(a.map(La)))),a}(i,h,g,k));const E=[i,...C],I=yield Va(t,b),O=[];let T=(null==(o=a.flip)?void 0:o.overflows)||[];if(p&&O.push(I[y]),f){const e=function(e,t,n){void 0===n&&(n=!1);const o=Oa(e),l=_a(e),a=Ba(l);let r="x"===l?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(r=Aa(r)),[r,Aa(r)]}(l,r,k);O.push(I[e[0]],I[e[1]])}if(T=[...T,{placement:l,overflows:O}],!O.every((e=>e<=0))){var B,M;const e=((null==(B=a.flip)?void 0:B.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(M=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(m){case"bestFit":{var _;const e=null==(_=T.filter((e=>{if(S){const t=Ma(e.placement);return t===w||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0];e&&(n=e);break}case"initialPlacement":n=i}if(l!==n)return{reset:{placement:n}}}return{}}))}}},kr=e=>({name:"arrow",options:e,fn(t){return d(this,null,(function*(){const{x:n,y:o,placement:l,rects:a,platform:r,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=Ea(e,t)||{};if(null==c)return{};const p=Ra(d),f={x:n,y:o},v=_a(l),m=Ba(v),g=yield r.getDimensions(c),h="y"===v,b=h?"top":"left",y=h?"bottom":"right",w=h?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[v]-f[v]-a.floating[m],k=f[v]-a.reference[v],C=yield null==r.getOffsetParent?void 0:r.getOffsetParent(c);let S=C?C[w]:0;S&&(yield null==r.isElement?void 0:r.isElement(C))||(S=i.floating[w]||a.floating[m]);const E=x/2-k/2,I=S/2-g[m]/2-1,O=ha(p[b],I),T=ha(p[y],I),B=O,M=S-g[m]-T,_=S/2-g[m]/2+E,L=Sa(B,_,M),A=!u.arrow&&null!=Oa(l)&&_!==L&&a.reference[m]/2-(_{const o=new Map,l=s({platform:gr},n),a=u(s({},l.platform),{_c:o});return((e,t,n)=>d(void 0,null,(function*(){const{placement:o="bottom",strategy:l="absolute",middleware:a=[],platform:r}=n,i=a.filter(Boolean),c=yield null==r.isRTL?void 0:r.isRTL(t);let d=yield r.getElementRects({reference:e,floating:t,strategy:l}),{x:p,y:f}=Fa(d,o,c),v=o,m={},g=0;for(let n=0;n{const n={},o=x([]);return{children:o,addChild:l=>{n[l.uid]=l,o.value=((e,t,n)=>co(e.subTree).filter((e=>{var n;return V(e)&&(null==(n=e.type)?void 0:n.name)===t&&!!e.component})).map((e=>e.component.uid)).map((e=>n[e])).filter((e=>!!e)))(e,t,n)},removeChild:e=>{delete n[e],o.value=o.value.filter((t=>t.uid!==e))}}},Er=Un({type:String,values:io,required:!1}),Ir=Symbol("size");function Or(e,{beforeFocus:t,afterFocus:n,beforeBlur:o,afterBlur:l}={}){const a=b(),{emit:r}=a,i=x(),s=m(!1),u=e=>{!!$(t)&&t(e)||s.value||(s.value=!0,r("focus",e),null==n||n())},c=e=>{var t;!!$(o)&&o(e)||e.relatedTarget&&(null==(t=i.value)?void 0:t.contains(e.relatedTarget))||(s.value=!1,r("blur",e),null==l||l())};return g(i,(e=>{e&&e.setAttribute("tabindex","-1")})),Mt(i,"focus",u,!0),Mt(i,"blur",c,!0),Mt(i,"click",(()=>{var t,n;(null==(t=i.value)?void 0:t.contains(document.activeElement))&&i.value!==document.activeElement||null==(n=e.value)||n.focus()}),!0),{isFocused:s,wrapperRef:i,handleFocus:u,handleBlur:c}}function Tr({afterComposition:e,emit:t}){const n=m(!1),o=e=>{var o;null==t||t("compositionupdate",e);const l=null==(o=e.target)?void 0:o.value,a=l[l.length-1]||"";n.value=!(e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e))(a)},l=o=>{null==t||t("compositionend",o),n.value&&(n.value=!1,w((()=>e(o))))};return{isComposing:n,handleComposition:e=>{"compositionend"===e.type?l(e):o(e)},handleCompositionStart:e=>{null==t||t("compositionstart",e),n.value=!0},handleCompositionUpdate:o,handleCompositionEnd:l}}const Br=Symbol("emptyValuesContextKey"),Mr=["",void 0,null],_r=Yn({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>$(e)?!e():!e}}),Lr=Yn({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Ar=e=>Ke(Lr,e),Rr=Symbol(),$r=m();function Fr(e,t=void 0){const n=b()?N(Rr,$r):$r;return e?C((()=>{var o,l;return null!=(l=null==(o=n.value)?void 0:o[e])?l:t})):n}function Vr(e,t){const n=Fr(),o=Io(e,C((()=>{var e;return(null==(e=n.value)?void 0:e.namespace)||ko}))),l=xo(C((()=>{var e;return null==(e=n.value)?void 0:e.locale}))),a=ga(C((()=>{var e;return(null==(e=n.value)?void 0:e.zIndex)||fa}))),r=C((()=>{var e;return p(t)||(null==(e=n.value)?void 0:e.size)||""}));return Pr(C((()=>p(n)||{}))),{ns:o,locale:l,zIndex:a,size:r}}const Pr=(e,t,n=!1)=>{const o=!!b(),l=o?Fr():void 0,a=null!=void 0?undefined:o?j:void 0;if(!a)return;const r=C((()=>{const t=p(e);return(null==l?void 0:l.value)?Nr(l.value,t):t}));return a(Rr,r),a(wo,C((()=>r.value.locale))),a(So,C((()=>r.value.namespace))),a(ma,C((()=>r.value.zIndex))),a(Ir,{size:C((()=>r.value.size||""))}),a(Br,C((()=>({emptyValues:r.value.emptyValues,valueOnClear:r.value.valueOnClear})))),!n&&$r.value||($r.value=r.value),r},Nr=(e,t)=>{const n=[...new Set([...on(e),...on(t)])],o={};for(const l of n)o[l]=void 0!==t[l]?t[l]:e[l];return o},zr=Yn(s({a11y:{type:Boolean,default:!0},locale:{type:Object},size:Er,button:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"}},_r)),Dr={},jr=eo(O({name:"ElConfigProvider",props:zr,setup(e,{slots:t}){g((()=>e.message),(e=>{Object.assign(Dr,null!=e?e:{})}),{immediate:!0,deep:!0});const n=Pr(e);return()=>H(t,"default",{config:null==n?void 0:n.value})}}));var Hr=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n};const qr=Yn({size:{type:[Number,String]},color:{type:String}}),Wr=O({name:"ElIcon",inheritAttrs:!1});const Kr=eo(Hr(O(u(s({},Wr),{props:qr,setup(e){const t=e,n=Io("icon"),o=C((()=>{const{size:e,color:n}=t;return e||n?{fontSize:Zt(e)?void 0:fn(e),"--color":n}:{}}));return(e,t)=>(T(),B("i",q({class:p(n).b(),style:p(o)},e.$attrs),[H(e.$slots,"default")],16))}})),[["__file","icon.vue"]])),Ur=Symbol("formContextKey"),Yr=Symbol("formItemContextKey"),Gr=(e,t={})=>{const n=m(void 0),o=t.prop?n:_o("size"),l=t.global?n:(()=>{const e=N(Ir,{});return C((()=>p(e.size)||""))})(),a=t.form?{size:void 0}:N(Ur,void 0),r=t.formItem?{size:void 0}:N(Yr,void 0);return C((()=>o.value||p(e)||(null==r?void 0:r.size)||(null==a?void 0:a.size)||l.value||""))},Xr=e=>{const t=_o("disabled"),n=N(Ur,void 0);return C((()=>t.value||p(e)||(null==n?void 0:n.disabled)||!1))},Zr=()=>({form:N(Ur,void 0),formItem:N(Yr,void 0)}),Jr=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=m(!1)),o||(o=m(!1));const l=m();let a;const r=C((()=>{var n;return!!(!e.label&&!e.ariaLabel&&t&&t.inputIds&&(null==(n=t.inputIds)?void 0:n.length)<=1)}));return y((()=>{a=g([W(e,"id"),n],(([e,n])=>{const a=null!=e?e:n?void 0:oa().value;a!==l.value&&((null==t?void 0:t.removeInputId)&&(l.value&&t.removeInputId(l.value),(null==o?void 0:o.value)||n||!a||t.addInputId(a)),l.value=a)}),{immediate:!0})})),K((()=>{a&&a(),(null==t?void 0:t.removeInputId)&&l.value&&t.removeInputId(l.value)})),{isLabeledByFormItem:r,inputId:l}},Qr=Yn({size:{type:String,values:io},disabled:Boolean}),ei=Yn(u(s({},Qr),{model:Object,rules:{type:Object},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}})),ti={validate:(e,t,n)=>(F(e)||S(e))&&Jt(t)&&S(n)};const ni=(e,t)=>{const n=Ue(t);return n.length>0?e.filter((e=>e.prop&&n.includes(e.prop))):e},oi=O({name:"ElForm"});var li=Hr(O(u(s({},oi),{props:ei,emits:ti,setup(e,{expose:t,emit:n}){const o=e,l=[],a=Gr(),r=Io("form"),i=C((()=>{const{labelPosition:e,inline:t}=o;return[r.b(),r.m(a.value||"default"),{[r.m(`label-${e}`)]:e,[r.m("inline")]:t}]})),c=(e=[])=>{o.model&&ni(l,e).forEach((e=>e.resetField()))},f=(e=[])=>{ni(l,e).forEach((e=>e.clearValidate()))},v=C((()=>!!o.model)),h=e=>d(this,null,(function*(){return y(void 0,e)})),b=(...e)=>d(this,[...e],(function*(e=[]){if(!v.value)return!1;const t=(e=>{if(0===l.length)return[];const t=ni(l,e);return t.length?t:[]})(e);if(0===t.length)return!0;let n={};for(const l of t)try{yield l.validate("")}catch(o){n=s(s({},n),o)}return 0===Object.keys(n).length||Promise.reject(n)})),y=(...e)=>d(this,[...e],(function*(e=[],t){const n=!$(t);try{const n=yield b(e);return!0===n&&(yield null==t?void 0:t(n)),n}catch(l){if(l instanceof Error)throw l;const e=l;return o.scrollToError&&w(Object.keys(e)[0]),yield null==t?void 0:t(!1,e),n&&Promise.reject(e)}})),w=e=>{var t;const n=ni(l,e)[0];n&&(null==(t=n.$el)||t.scrollIntoView(o.scrollIntoViewOptions))};return g((()=>o.rules),(()=>{o.validateOnRuleChange&&h().catch((e=>{}))}),{deep:!0}),j(Ur,U(s(u(s({},Y(o)),{emit:n,resetFields:c,clearValidate:f,validateField:y,getField:e=>l.find((t=>t.prop===e)),addField:e=>{l.push(e)},removeField:e=>{e.prop&&l.splice(l.indexOf(e),1)}}),function(){const e=m([]),t=C((()=>{if(!e.value.length)return"0";const t=Math.max(...e.value);return t?`${t}px`:""}));function n(n){const o=e.value.indexOf(n);return-1===o&&t.value,o}return{autoLabelWidth:t,registerLabelWidth:function(t,o){if(t&&o){const l=n(o);e.value.splice(l,1,t)}else t&&e.value.push(t)},deregisterLabelWidth:function(t){const o=n(t);o>-1&&e.value.splice(o,1)}}}()))),t({validate:h,validateField:y,resetFields:c,clearValidate:f,scrollToField:w,fields:l}),(e,t)=>(T(),B("form",{class:G(p(i))},[H(e.$slots,"default")],2))}})),[["__file","form.vue"]]);function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),o=1;o=a)return e;switch(e){case"%s":return String(n[l++]);case"%d":return Number(n[l++]);case"%j":try{return JSON.stringify(n[l++])}catch(t){return"[Circular]"}break;default:return e}})):e}function vi(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function mi(e,t,n){var o=0,l=e.length;!function a(r){if(r&&r.length)n(r);else{var i=o;o+=1,i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Ci=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Si={integer:function(e){return Si.number(e)&&parseInt(e,10)===e},float:function(e){return Si.number(e)&&!Si.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!Si.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(ki)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(wi)return wi;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",l=("\n(?:\n(?:"+o+":){7}(?:"+o+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+o+":){6}(?:"+n+"|:"+o+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+o+":){5}(?::"+n+"|(?::"+o+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+o+"){0,5}:"+n+"|(?::"+o+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),r=new RegExp("^"+n+"$"),i=new RegExp("^"+l+"$"),s=function(e){return e&&e.exact?a:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+l+t(e)+")","g")};s.v4=function(e){return e&&e.exact?r:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?i:new RegExp(""+t(e)+l+t(e),"g")};var u=s.v4().source,c=s.v6().source;return wi=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+c+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(Ci)}},Ei="enum",Ii={required:xi,whitespace:function(e,t,n,o,l){(/^\s+$/.test(t)||""===t)&&o.push(fi(l.messages.whitespace,e.fullField))},type:function(e,t,n,o,l){if(e.required&&void 0===t)xi(e,t,n,o,l);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?Si[a](t)||o.push(fi(l.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&o.push(fi(l.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,o,l){var a="number"==typeof e.len,r="number"==typeof e.min,i="number"==typeof e.max,s=t,u=null,c="number"==typeof t,d="string"==typeof t,p=Array.isArray(t);if(c?u="number":d?u="string":p&&(u="array"),!u)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?s!==e.len&&o.push(fi(l.messages[u].len,e.fullField,e.len)):r&&!i&&se.max?o.push(fi(l.messages[u].max,e.fullField,e.max)):r&&i&&(se.max)&&o.push(fi(l.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,l){e[Ei]=Array.isArray(e[Ei])?e[Ei]:[],-1===e[Ei].indexOf(t)&&o.push(fi(l.messages[Ei],e.fullField,e[Ei].join(", ")))},pattern:function(e,t,n,o,l){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(fi(l.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(fi(l.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},Oi=function(e,t,n,o,l){var a=e.type,r=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t,a)&&!e.required)return n();Ii.required(e,t,o,r,l,a),vi(t,a)||Ii.type(e,t,o,r,l)}n(r)},Ti={string:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t,"string")&&!e.required)return n();Ii.required(e,t,o,a,l,"string"),vi(t,"string")||(Ii.type(e,t,o,a,l),Ii.range(e,t,o,a,l),Ii.pattern(e,t,o,a,l),!0===e.whitespace&&Ii.whitespace(e,t,o,a,l))}n(a)},method:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),void 0!==t&&Ii.type(e,t,o,a,l)}n(a)},number:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),void 0!==t&&(Ii.type(e,t,o,a,l),Ii.range(e,t,o,a,l))}n(a)},boolean:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),void 0!==t&&Ii.type(e,t,o,a,l)}n(a)},regexp:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),vi(t)||Ii.type(e,t,o,a,l)}n(a)},integer:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),void 0!==t&&(Ii.type(e,t,o,a,l),Ii.range(e,t,o,a,l))}n(a)},float:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),void 0!==t&&(Ii.type(e,t,o,a,l),Ii.range(e,t,o,a,l))}n(a)},array:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();Ii.required(e,t,o,a,l,"array"),null!=t&&(Ii.type(e,t,o,a,l),Ii.range(e,t,o,a,l))}n(a)},object:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),void 0!==t&&Ii.type(e,t,o,a,l)}n(a)},enum:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l),void 0!==t&&Ii.enum(e,t,o,a,l)}n(a)},pattern:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t,"string")&&!e.required)return n();Ii.required(e,t,o,a,l),vi(t,"string")||Ii.pattern(e,t,o,a,l)}n(a)},date:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t,"date")&&!e.required)return n();var r;if(Ii.required(e,t,o,a,l),!vi(t,"date"))r=t instanceof Date?t:new Date(t),Ii.type(e,r,o,a,l),r&&Ii.range(e,r.getTime(),o,a,l)}n(a)},url:Oi,hex:Oi,email:Oi,required:function(e,t,n,o,l){var a=[],r=Array.isArray(t)?"array":typeof t;Ii.required(e,t,o,a,l,r),n(a)},any:function(e,t,n,o,l){var a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(vi(t)&&!e.required)return n();Ii.required(e,t,o,a,l)}n(a)}};function Bi(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Mi=Bi(),_i=function(){function e(e){this.rules=null,this._messages=Mi,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]}))},t.messages=function(e){return e&&(this._messages=yi(Bi(),e)),this._messages},t.validate=function(t,n,o){var l=this;void 0===n&&(n={}),void 0===o&&(o=function(){});var a=t,r=n,i=o;if("function"==typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,a),Promise.resolve(a);if(r.messages){var s=this.messages();s===Mi&&(s=Bi()),yi(s,r.messages),r.messages=s}else r.messages=this.messages();var u={};(r.keys||Object.keys(this.rules)).forEach((function(e){var n=l.rules[e],o=a[e];n.forEach((function(n){var r=n;"function"==typeof r.transform&&(a===t&&(a=ai({},a)),o=a[e]=r.transform(o)),(r="function"==typeof r?{validator:r}:ai({},r)).validator=l.getValidationMethod(r),r.validator&&(r.field=e,r.fullField=r.fullField||e,r.type=l.getType(r),u[e]=u[e]||[],u[e].push({rule:r,value:o,source:a,field:e}))}))}));var c={};return hi(u,r,(function(t,n){var o,l=t.rule,i=!("object"!==l.type&&"array"!==l.type||"object"!=typeof l.fields&&"object"!=typeof l.defaultField);function s(e,t){return ai({},t,{fullField:l.fullField+"."+e,fullFields:l.fullFields?[].concat(l.fullFields,[e]):[e]})}function u(o){void 0===o&&(o=[]);var u=Array.isArray(o)?o:[o];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==l.message&&(u=[].concat(l.message));var d=u.map(bi(l,a));if(r.first&&d.length)return c[l.field]=1,n(d);if(i){if(l.required&&!t.value)return void 0!==l.message?d=[].concat(l.message).map(bi(l,a)):r.error&&(d=[r.error(l,fi(r.messages.required,l.field))]),n(d);var p={};l.defaultField&&Object.keys(t.value).map((function(e){p[e]=l.defaultField})),p=ai({},p,t.rule.fields);var f={};Object.keys(p).forEach((function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(s.bind(null,e))}));var v=new e(f);v.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),v.validate(t.value,t.rule.options||r,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(i=i&&(l.required||!l.required&&t.value),l.field=t.field,l.asyncValidator)o=l.asyncValidator(l,t.value,u,t.source,r);else if(l.validator){try{o=l.validator(l,t.value,u,t.source,r)}catch(d){console.error,r.suppressValidatorError||setTimeout((function(){throw d}),0),u(d.message)}!0===o?u():!1===o?u("function"==typeof l.message?l.message(l.fullField||l.field):l.message||(l.fullField||l.field)+" fails"):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){for(var t,n,o=[],l={},r=0;r");const l=Io("form"),a=m(),r=m(0),i=(o="update")=>{w((()=>{t.default&&e.isAutoWidth&&("update"===o?r.value=(()=>{var e;if(null==(e=a.value)?void 0:e.firstElementChild){const e=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(e))}return 0})():"remove"===o&&(null==n||n.deregisterLabelWidth(r.value)))}))},s=()=>i("update");return y((()=>{s()})),P((()=>{i("remove")})),X((()=>s())),g(r,((t,o)=>{e.updateAll&&(null==n||n.registerLabelWidth(t,o))})),Pt(C((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.firstElementChild)?t:null})),s),()=>{var i,s;if(!t)return null;const{isAutoWidth:u}=e;if(u){const e=null==n?void 0:n.autoLabelWidth,s={};if((null==o?void 0:o.hasLabel)&&e&&"auto"!==e){const t=Math.max(0,Number.parseInt(e,10)-r.value),l=o.labelPosition||n.labelPosition;t&&(s["left"===l?"marginRight":"marginLeft"]=`${t}px`)}return Z("div",{ref:a,class:[l.be("item","label-wrap")],style:s},[null==(i=t.default)?void 0:i.call(t)])}return Z(J,{ref:a},[null==(s=t.default)?void 0:s.call(t)])}}});const $i=O({name:"ElFormItem"});var Fi=Hr(O(u(s({},$i),{props:Li,setup(e,{expose:t}){const n=e,o=Q(),l=N(Ur,void 0),a=N(Yr,void 0),r=Gr(void 0,{formItem:!1}),i=Io("form-item"),f=oa().value,v=m([]),h=m(""),b=function(e,t=200,n={}){const o=m(e.value),l=St((()=>{o.value=e.value}),t,n);return g(e,(()=>l())),o}(h,100),x=m(""),k=m();let E,I=!1;const O=C((()=>n.labelPosition||(null==l?void 0:l.labelPosition))),_=C((()=>{if("top"===O.value)return{};const e=fn(n.labelWidth||(null==l?void 0:l.labelWidth)||"");return e?{width:e}:{}})),L=C((()=>{if("top"===O.value||(null==l?void 0:l.inline))return{};if(!n.label&&!n.labelWidth&&W)return{};const e=fn(n.labelWidth||(null==l?void 0:l.labelWidth)||"");return n.label||o.label?{}:{marginLeft:e}})),A=C((()=>[i.b(),i.m(r.value),i.is("error","error"===h.value),i.is("validating","validating"===h.value),i.is("success","success"===h.value),i.is("required",se.value||n.required),i.is("no-asterisk",null==l?void 0:l.hideRequiredAsterisk),"right"===(null==l?void 0:l.requireAsteriskPosition)?"asterisk-right":"asterisk-left",{[i.m("feedback")]:null==l?void 0:l.statusIcon,[i.m(`label-${O.value}`)]:O.value}])),R=C((()=>Jt(n.inlineMessage)?n.inlineMessage:(null==l?void 0:l.inlineMessage)||!1)),F=C((()=>[i.e("error"),{[i.em("error","inline")]:R.value}])),V=C((()=>n.prop?S(n.prop)?n.prop:n.prop.join("."):"")),z=C((()=>!(!n.label&&!o.label))),D=C((()=>n.for||(1===v.value.length?v.value[0]:void 0))),q=C((()=>!D.value&&z.value)),W=!!a,K=C((()=>{const e=null==l?void 0:l.model;if(e&&n.prop)return ln(e,n.prop).value})),X=C((()=>{const{required:e}=n,t=[];n.rules&&t.push(...Ue(n.rules));const o=null==l?void 0:l.rules;if(o&&n.prop){const e=ln(o,n.prop).value;e&&t.push(...Ue(e))}if(void 0!==e){const n=t.map(((e,t)=>[e,t])).filter((([e])=>Object.keys(e).includes("required")));if(n.length>0)for(const[o,l]of n)o.required!==e&&(t[l]=u(s({},o),{required:e}));else t.push({required:e})}return t})),J=C((()=>X.value.length>0)),se=C((()=>X.value.some((e=>e.required)))),ue=C((()=>{var e;return"error"===b.value&&n.showMessage&&(null==(e=null==l?void 0:l.showMessage)||e)})),ce=C((()=>`${n.label||""}${(null==l?void 0:l.labelSuffix)||""}`)),de=e=>{h.value=e},pe=e=>d(this,null,(function*(){const t=V.value;return new _i({[t]:e}).validate({[t]:K.value},{firstFields:!0}).then((()=>(de("success"),null==l||l.emit("validate",n.prop,!0,""),!0))).catch((e=>((e=>{var t,o;const{errors:a,fields:r}=e;de("error"),x.value=a?null!=(o=null==(t=null==a?void 0:a[0])?void 0:t.message)?o:`${n.prop} is required`:"",null==l||l.emit("validate",n.prop,!1,x.value)})(e),Promise.reject(e))))})),fe=(e,t)=>d(this,null,(function*(){if(I||!n.prop)return!1;const o=$(t);if(!J.value)return null==t||t(!1),!1;const l=(e=>X.value.filter((t=>!t.trigger||!e||(Array.isArray(t.trigger)?t.trigger.includes(e):t.trigger===e))).map((e=>{var t=e,{trigger:n}=t;return c(t,["trigger"])})))(e);return 0===l.length?(null==t||t(!0),!0):(de("validating"),pe(l).then((()=>(null==t||t(!0),!0))).catch((e=>{const{fields:n}=e;return null==t||t(!1,n),!o&&Promise.reject(n)})))})),ve=()=>{de(""),x.value="",I=!1},me=()=>d(this,null,(function*(){const e=null==l?void 0:l.model;if(!e||!n.prop)return;const t=ln(e,n.prop);I=!0,t.value=Ye(E),yield w(),ve(),I=!1}));g((()=>n.error),(e=>{x.value=e||"",de(e?"error":"")}),{immediate:!0}),g((()=>n.validateStatus),(e=>de(e||"")));const ge=U(u(s({},Y(n)),{$el:k,size:r,validateState:h,labelId:f,inputIds:v,isGroup:q,hasLabel:z,fieldValue:K,addInputId:e=>{v.value.includes(e)||v.value.push(e)},removeInputId:e=>{v.value=v.value.filter((t=>t!==e))},resetField:me,clearValidate:ve,validate:fe}));return j(Yr,ge),y((()=>{n.prop&&(null==l||l.addField(ge),E=Ye(K.value))})),P((()=>{null==l||l.removeField(ge)})),t({size:r,validateMessage:x,validateState:h,validate:fe,clearValidate:ve,resetField:me}),(e,t)=>{var n;return T(),B("div",{ref_key:"formItemRef",ref:k,class:G(p(A)),role:p(q)?"group":void 0,"aria-labelledby":p(q)?p(f):void 0},[Z(p(Ri),{"is-auto-width":"auto"===p(_).width,"update-all":"auto"===(null==(n=p(l))?void 0:n.labelWidth)},{default:ee((()=>[p(z)?(T(),te(ne(p(D)?"label":"div"),{key:0,id:p(f),for:p(D),class:G(p(i).e("label")),style:oe(p(_))},{default:ee((()=>[H(e.$slots,"label",{label:p(ce)},(()=>[le(ae(p(ce)),1)]))])),_:3},8,["id","for","class","style"])):re("v-if",!0)])),_:3},8,["is-auto-width","update-all"]),M("div",{class:G(p(i).e("content")),style:oe(p(L))},[H(e.$slots,"default"),Z(ie,{name:`${p(i).namespace.value}-zoom-in-top`},{default:ee((()=>[p(ue)?H(e.$slots,"error",{key:0,error:x.value},(()=>[M("div",{class:G(p(F))},ae(x.value),3)])):re("v-if",!0)])),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}})),[["__file","form-item.vue"]]);const Vi=eo(li,{FormItem:Fi}),Pi=to(Fi);let Ni;const zi=`\n height:0 !important;\n visibility:hidden !important;\n ${ht&&/firefox/i.test(window.navigator.userAgent)?"":"overflow:hidden !important;"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`,Di=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function ji(e,t=1,n){var o;Ni||(Ni=document.createElement("textarea"),document.body.appendChild(Ni));const{paddingSize:l,borderSize:a,boxSizing:r,contextStyle:i}=function(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Di.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:o,borderSize:l,boxSizing:n}}(e);Ni.setAttribute("style",`${i};${zi}`),Ni.value=e.value||e.placeholder||"";let s=Ni.scrollHeight;const u={};"border-box"===r?s+=a:"content-box"===r&&(s-=l),Ni.value="";const c=Ni.scrollHeight-l;if(Qt(t)){let e=c*t;"border-box"===r&&(e=e+l+a),s=Math.max(e,s),u.minHeight=`${e}px`}if(Qt(n)){let e=c*n;"border-box"===r&&(e=e+l+a),s=Math.min(e,s)}return u.height=`${s}px`,null==(o=Ni.parentNode)||o.removeChild(Ni),Ni=void 0,u}const Hi=Yn(s({id:{type:String,default:void 0},size:Er,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:Gn},prefixIcon:{type:Gn},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})},autofocus:Boolean,rows:{type:Number,default:2}},Ar(["ariaLabel"]))),qi={[lo]:e=>S(e),input:e=>S(e),change:e=>S(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Wi=O({name:"ElInput",inheritAttrs:!1});const Ki=eo(Hr(O(u(s({},Wi),{props:Hi,emits:qi,setup(e,{expose:t,emit:n}){const o=e,l=se(),a=Q(),r=C((()=>{const e={};return"combobox"===o.containerRole&&(e["aria-haspopup"]=l["aria-haspopup"],e["aria-owns"]=l["aria-owns"],e["aria-expanded"]=l["aria-expanded"]),e})),i=C((()=>["textarea"===o.type?E.b():S.b(),S.m(b.value),S.is("disabled",k.value),S.is("exceed",ve.value),{[S.b("group")]:a.prepend||a.append,[S.m("prefix")]:a.prefix||o.prefixIcon,[S.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[S.bm("suffix","password-clear")]:ce.value&&de.value,[S.b("hidden")]:"hidden"===o.type},l.class])),u=C((()=>[S.e("wrapper"),S.is("focus",N.value)])),c=vo({excludeKeys:C((()=>Object.keys(r.value)))}),{form:f,formItem:v}=Zr(),{inputId:h}=Jr(o,{formItemContext:v}),b=Gr(),k=Xr(),S=Io("input"),E=Io("textarea"),I=x(),O=x(),L=m(!1),A=m(!1),$=m(),F=x(o.inputStyle),V=C((()=>I.value||O.value)),{wrapperRef:P,isFocused:N,handleFocus:z,handleBlur:D}=Or(V,{beforeFocus:()=>k.value,afterBlur(){var e;o.validateEvent&&(null==(e=null==v?void 0:v.validate)||e.call(v,"blur").catch((e=>{})))}}),j=C((()=>{var e;return null!=(e=null==f?void 0:f.statusIcon)&&e})),K=C((()=>(null==v?void 0:v.validateState)||"")),U=C((()=>K.value&&Qn[K.value])),Y=C((()=>A.value?jn:Tn)),X=C((()=>[l.style])),le=C((()=>[o.inputStyle,F.value,{resize:o.resize}])),ie=C((()=>je(o.modelValue)?"":String(o.modelValue))),ce=C((()=>o.clearable&&!k.value&&!o.readonly&&!!ie.value&&(N.value||L.value))),de=C((()=>o.showPassword&&!k.value&&!o.readonly&&!!ie.value&&(!!ie.value||N.value))),pe=C((()=>o.showWordLimit&&!!o.maxlength&&("text"===o.type||"textarea"===o.type)&&!k.value&&!o.readonly&&!o.showPassword)),fe=C((()=>ie.value.length)),ve=C((()=>!!pe.value&&fe.value>Number(o.maxlength))),me=C((()=>!!a.suffix||!!o.suffixIcon||ce.value||o.showPassword||pe.value||!!K.value&&j.value)),[ge,he]=function(e){let t;return[function(){if(null==e.value)return;const{selectionStart:n,selectionEnd:o,value:l}=e.value;if(null==n||null==o)return;const a=l.slice(0,Math.max(0,n)),r=l.slice(Math.max(0,o));t={selectionStart:n,selectionEnd:o,value:l,beforeTxt:a,afterTxt:r}},function(){if(null==e.value||null==t)return;const{value:n}=e.value,{beforeTxt:o,afterTxt:l,selectionStart:a}=t;if(null==o||null==l||null==a)return;let r=n.length;if(n.endsWith(l))r=n.length-l.length;else if(n.startsWith(o))r=o.length;else{const e=o[a-1],t=n.indexOf(e,a-1);-1!==t&&(r=t+1)}e.value.setSelectionRange(r,r)}]}(I);Pt(O,(e=>{if(ye(),!pe.value||"both"!==o.resize)return;const t=e[0],{width:n}=t.contentRect;$.value={right:`calc(100% - ${n+15+6}px)`}}));const be=()=>{const{type:e,autosize:t}=o;if(ht&&"textarea"===e&&O.value)if(t){const e=_(t)?t.minRows:void 0,n=_(t)?t.maxRows:void 0,o=ji(O.value,e,n);F.value=s({overflowY:"hidden"},o),w((()=>{O.value.offsetHeight,F.value=o}))}else F.value={minHeight:ji(O.value).minHeight}},ye=(e=>{let t=!1;return()=>{var n;if(t||!o.autosize)return;null===(null==(n=O.value)?void 0:n.offsetParent)||(e(),t=!0)}})(be),we=()=>{const e=V.value,t=o.formatter?o.formatter(ie.value):ie.value;e&&e.value!==t&&(e.value=t)},xe=e=>d(this,null,(function*(){ge();let{value:t}=e.target;o.formatter&&(t=o.parser?o.parser(t):t),Ce.value||(t!==ie.value?(n(lo,t),n("input",t),yield w(),we(),he()):we())})),ke=e=>{n("change",e.target.value)},{isComposing:Ce,handleCompositionStart:Se,handleCompositionUpdate:Ee,handleCompositionEnd:Ie}=Tr({emit:n,afterComposition:xe}),Oe=()=>{A.value=!A.value,Te()},Te=()=>d(this,null,(function*(){var e;yield w(),null==(e=V.value)||e.focus()})),Be=e=>{L.value=!1,n("mouseleave",e)},Me=e=>{L.value=!0,n("mouseenter",e)},_e=e=>{n("keydown",e)},Le=()=>{n(lo,""),n("change",""),n("clear"),n("input","")};return g((()=>o.modelValue),(()=>{var e;w((()=>be())),o.validateEvent&&(null==(e=null==v?void 0:v.validate)||e.call(v,"change").catch((e=>{})))})),g(ie,(()=>we())),g((()=>o.type),(()=>d(this,null,(function*(){yield w(),we(),be()})))),y((()=>{!o.formatter&&o.parser,we(),w(be)})),t({input:I,textarea:O,ref:V,textareaStyle:le,autosize:W(o,"autosize"),isComposing:Ce,focus:Te,blur:()=>{var e;return null==(e=V.value)?void 0:e.blur()},select:()=>{var e;null==(e=V.value)||e.select()},clear:Le,resizeTextarea:be}),(e,t)=>(T(),B("div",q(p(r),{class:[p(i),{[p(S).bm("group","append")]:e.$slots.append,[p(S).bm("group","prepend")]:e.$slots.prepend}],style:p(X),role:e.containerRole,onMouseenter:Me,onMouseleave:Be}),[re(" input "),"textarea"!==e.type?(T(),B(J,{key:0},[re(" prepend slot "),e.$slots.prepend?(T(),B("div",{key:0,class:G(p(S).be("group","prepend"))},[H(e.$slots,"prepend")],2)):re("v-if",!0),M("div",{ref_key:"wrapperRef",ref:P,class:G(p(u))},[re(" prefix slot "),e.$slots.prefix||e.prefixIcon?(T(),B("span",{key:0,class:G(p(S).e("prefix"))},[M("span",{class:G(p(S).e("prefix-inner"))},[H(e.$slots,"prefix"),e.prefixIcon?(T(),te(p(Kr),{key:0,class:G(p(S).e("icon"))},{default:ee((()=>[(T(),te(ne(e.prefixIcon)))])),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),M("input",q({id:p(h),ref_key:"input",ref:I,class:p(S).e("inner")},p(c),{minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?A.value?"text":"password":e.type,disabled:p(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,onCompositionstart:p(Se),onCompositionupdate:p(Ee),onCompositionend:p(Ie),onInput:xe,onChange:ke,onKeydown:_e}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),re(" suffix slot "),p(me)?(T(),B("span",{key:1,class:G(p(S).e("suffix"))},[M("span",{class:G(p(S).e("suffix-inner"))},[p(ce)&&p(de)&&p(pe)?re("v-if",!0):(T(),B(J,{key:0},[H(e.$slots,"suffix"),e.suffixIcon?(T(),te(p(Kr),{key:0,class:G(p(S).e("icon"))},{default:ee((()=>[(T(),te(ne(e.suffixIcon)))])),_:1},8,["class"])):re("v-if",!0)],64)),p(ce)?(T(),te(p(Kr),{key:1,class:G([p(S).e("icon"),p(S).e("clear")]),onMousedown:ue(p(R),["prevent"]),onClick:Le},{default:ee((()=>[Z(p(Cn))])),_:1},8,["class","onMousedown"])):re("v-if",!0),p(de)?(T(),te(p(Kr),{key:2,class:G([p(S).e("icon"),p(S).e("password")]),onClick:Oe},{default:ee((()=>[(T(),te(ne(p(Y))))])),_:1},8,["class"])):re("v-if",!0),p(pe)?(T(),B("span",{key:3,class:G(p(S).e("count"))},[M("span",{class:G(p(S).e("count-inner"))},ae(p(fe))+" / "+ae(e.maxlength),3)],2)):re("v-if",!0),p(K)&&p(U)&&p(j)?(T(),te(p(Kr),{key:4,class:G([p(S).e("icon"),p(S).e("validateIcon"),p(S).is("loading","validating"===p(K))])},{default:ee((()=>[(T(),te(ne(p(U))))])),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),e.$slots.append?(T(),B("div",{key:1,class:G(p(S).be("group","append"))},[H(e.$slots,"append")],2)):re("v-if",!0)],64)):(T(),B(J,{key:1},[re(" textarea "),M("textarea",q({id:p(h),ref_key:"textarea",ref:O,class:[p(E).e("inner"),p(S).is("focus",p(N))]},p(c),{minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:p(k),readonly:e.readonly,autocomplete:e.autocomplete,style:p(le),"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,onCompositionstart:p(Se),onCompositionupdate:p(Ee),onCompositionend:p(Ie),onInput:xe,onFocus:p(z),onBlur:p(D),onChange:ke,onKeydown:_e}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),p(pe)?(T(),B("span",{key:0,style:oe($.value),class:G(p(S).e("count"))},ae(p(fe))+" / "+ae(e.maxlength),7)):re("v-if",!0)],64))],16,["role"]))}})),[["__file","input.vue"]])),Ui={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Yi=Symbol("scrollbarContextKey"),Gi=Yn({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean});var Xi=Hr(O({__name:"thumb",props:Gi,setup(e){const t=e,n=N(Yi),o=Io("scrollbar");n||rn("Thumb","can not inject scrollbar context");const l=m(),a=m(),i=m({}),s=m(!1);let u=!1,c=!1,d=ht?document.onselectstart:null;const f=C((()=>Ui[t.vertical?"vertical":"horizontal"])),v=C((()=>(({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}))({size:t.size,move:t.move,bar:f.value}))),g=C((()=>r(l.value[f.value.offset],2)/n.wrapElement[f.value.scrollSize]/t.ratio/a.value[f.value.offset])),h=e=>{var t;if(e.stopPropagation(),e.ctrlKey||[1,2].includes(e.button))return;null==(t=window.getSelection())||t.removeAllRanges(),y(e);const n=e.currentTarget;n&&(i.value[f.value.axis]=n[f.value.offset]-(e[f.value.client]-n.getBoundingClientRect()[f.value.direction]))},b=e=>{if(!a.value||!l.value||!n.wrapElement)return;const t=100*(Math.abs(e.target.getBoundingClientRect()[f.value.direction]-e[f.value.client])-a.value[f.value.offset]/2)*g.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=t*n.wrapElement[f.value.scrollSize]/100},y=e=>{e.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),d=document.onselectstart,document.onselectstart=()=>!1},w=e=>{if(!l.value||!a.value)return;if(!1===u)return;const t=i.value[f.value.axis];if(!t)return;const o=100*(-1*(l.value.getBoundingClientRect()[f.value.direction]-e[f.value.client])-(a.value[f.value.offset]-t))*g.value/l.value[f.value.offset];n.wrapElement[f.value.scroll]=o*n.wrapElement[f.value.scrollSize]/100},x=()=>{u=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),k(),c&&(s.value=!1)};P((()=>{k(),document.removeEventListener("mouseup",x)}));const k=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Mt(W(n,"scrollbarElement"),"mousemove",(()=>{c=!1,s.value=!!t.size})),Mt(W(n,"scrollbarElement"),"mouseleave",(()=>{c=!0,s.value=u})),(e,t)=>(T(),te(pe,{name:p(o).b("fade"),persisted:""},{default:ee((()=>[ce(M("div",{ref_key:"instance",ref:l,class:G([p(o).e("bar"),p(o).is(p(f).key)]),onMousedown:b},[M("div",{ref_key:"thumb",ref:a,class:G(p(o).e("thumb")),style:oe(p(v)),onMousedown:h},null,38)],34),[[de,e.always||s.value]])])),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const Zi=Yn({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Ji=Hr(O({__name:"bar",props:Zi,setup(e,{expose:t}){const n=e,o=N(Yi),l=m(0),a=m(0),i=m(""),s=m(""),u=m(1),c=m(1);return t({handleScroll:e=>{if(e){const t=e.offsetHeight-4,n=e.offsetWidth-4;a.value=100*e.scrollTop/t*u.value,l.value=100*e.scrollLeft/n*c.value}},update:()=>{const e=null==o?void 0:o.wrapElement;if(!e)return;const t=e.offsetHeight-4,l=e.offsetWidth-4,a=r(t,2)/e.scrollHeight,d=r(l,2)/e.scrollWidth,p=Math.max(a,n.minSize),f=Math.max(d,n.minSize);u.value=a/(t-a)/(p/(t-p)),c.value=d/(l-d)/(f/(l-f)),s.value=p+4(T(),B(J,null,[Z(Xi,{move:l.value,ratio:c.value,size:i.value,always:e.always},null,8,["move","ratio","size","always"]),Z(Xi,{move:a.value,ratio:u.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Qi=Yn(s({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String},Ar(["ariaLabel","ariaOrientation"]))),es={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Qt)},ts=O({name:"ElScrollbar"});const ns=eo(Hr(O(u(s({},ts),{props:Qi,emits:es,setup(e,{expose:t,emit:n}){const o=e,l=Io("scrollbar");let a,r,i=0,s=0;const u=m(),c=m(),d=m(),f=m(),v=C((()=>{const e={};return o.height&&(e.height=fn(o.height)),o.maxHeight&&(e.maxHeight=fn(o.maxHeight)),[o.wrapStyle,e]})),h=C((()=>[o.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!o.native}])),b=C((()=>[l.e("view"),o.viewClass])),x=()=>{var e;c.value&&(null==(e=f.value)||e.handleScroll(c.value),i=c.value.scrollTop,s=c.value.scrollLeft,n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};const k=()=>{var e;null==(e=f.value)||e.update()};return g((()=>o.noresize),(e=>{e?(null==a||a(),null==r||r()):(({stop:a}=Pt(d,k)),r=Mt("resize",k))}),{immediate:!0}),g((()=>[o.maxHeight,o.height]),(()=>{o.native||w((()=>{var e;k(),c.value&&(null==(e=f.value)||e.handleScroll(c.value))}))})),j(Yi,U({scrollbarElement:u,wrapElement:c})),fe((()=>{c.value.scrollTop=i,c.value.scrollLeft=s})),y((()=>{o.native||w((()=>{k()}))})),X((()=>k())),t({wrapRef:c,update:k,scrollTo:function(e,t){_(e)?c.value.scrollTo(e):Qt(e)&&Qt(t)&&c.value.scrollTo(e,t)},setScrollTop:e=>{Qt(e)&&(c.value.scrollTop=e)},setScrollLeft:e=>{Qt(e)&&(c.value.scrollLeft=e)},handleScroll:x}),(e,t)=>(T(),B("div",{ref_key:"scrollbarRef",ref:u,class:G(p(l).b())},[M("div",{ref_key:"wrapRef",ref:c,class:G(p(h)),style:oe(p(v)),onScroll:x},[(T(),te(ne(e.tag),{id:e.id,ref_key:"resizeRef",ref:d,class:G(p(b)),style:oe(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),e.native?re("v-if",!0):(T(),te(Ji,{key:0,ref_key:"barRef",ref:f,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}})),[["__file","scrollbar.vue"]])),os=Symbol("popper"),ls=Symbol("popperContent"),as=Yn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),rs=O({name:"ElPopper",inheritAttrs:!1});var is=Hr(O(u(s({},rs),{props:as,setup(e,{expose:t}){const n=e,o={triggerRef:m(),popperInstanceRef:m(),contentRef:m(),referenceRef:m(),role:C((()=>n.role))};return t(o),j(os,o),(e,t)=>H(e.$slots,"default")}})),[["__file","popper.vue"]]);const ss=Yn({arrowOffset:{type:Number,default:5}}),us=O({name:"ElPopperArrow",inheritAttrs:!1});var cs=Hr(O(u(s({},us),{props:ss,setup(e,{expose:t}){const n=e,o=Io("popper"),{arrowOffset:l,arrowRef:a,arrowStyle:r}=N(ls,void 0);return g((()=>n.arrowOffset),(e=>{l.value=e})),P((()=>{a.value=void 0})),t({arrowRef:a}),(e,t)=>(T(),B("span",{ref_key:"arrowRef",ref:a,class:G(p(o).e("arrow")),style:oe(p(r)),"data-popper-arrow":""},null,6))}})),[["__file","arrow.vue"]]);const ds=O({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var o;const l=N(ca),a=(r=null!=(o=null==l?void 0:l.setForwardRef)?o:R,{mounted(e){r(e)},updated(e){r(e)},unmounted(){r(null)}});var r;return()=>{var e;const o=null==(e=t.default)?void 0:e.call(t,n);if(!o)return null;if(o.length>1)return null;const l=ps(o);return l?ce(ve(l,n),[[a]]):null}}});function ps(e){if(!e)return null;const t=e;for(const n of t){if(_(n))switch(n.type){case ge:continue;case me:case"svg":return fs(n);case J:return ps(n.children);default:return n}return fs(n)}return null}function fs(e){const t=Io("only-child");return Z("span",{class:t.e("content")},[e])}const vs=Yn({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onContextmenu:{type:Function},id:String,open:Boolean}),ms=O({name:"ElPopperTrigger",inheritAttrs:!1});var gs=Hr(O(u(s({},ms),{props:vs,setup(e,{expose:t}){const n=e,{role:o,triggerRef:l}=N(os,void 0);var a;a=l,j(ca,{setForwardRef:e=>{a.value=e}});const r=C((()=>s.value?n.id:void 0)),i=C((()=>{if(o&&"tooltip"===o.value)return n.open&&n.id?n.id:void 0})),s=C((()=>{if(o&&"tooltip"!==o.value)return o.value})),u=C((()=>s.value?`${n.open}`:void 0));let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return y((()=>{g((()=>n.virtualRef),(e=>{e&&(l.value=Ot(e))}),{immediate:!0}),g(l,((e,t)=>{null==c||c(),c=void 0,en(e)&&(d.forEach((o=>{var l;const a=n[o];a&&(e.addEventListener(o.slice(2).toLowerCase(),a),null==(l=null==t?void 0:t.removeEventListener)||l.call(t,o.slice(2).toLowerCase(),a))})),c=g([r,i,s,u],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((n,o)=>{je(t[o])?e.removeAttribute(n):e.setAttribute(n,t[o])}))}),{immediate:!0})),en(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),P((()=>{if(null==c||c(),c=void 0,l.value&&en(l.value)){const e=l.value;d.forEach((t=>{const o=n[t];o&&e.removeEventListener(t.slice(2).toLowerCase(),o)})),l.value=void 0}})),t({triggerRef:l}),(e,t)=>e.virtualTriggering?re("v-if",!0):(T(),te(p(ds),q({key:0},e.$attrs,{"aria-controls":p(r),"aria-describedby":p(i),"aria-expanded":p(u),"aria-haspopup":p(s)}),{default:ee((()=>[H(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}})),[["__file","trigger.vue"]]);const hs="focus-trap.focus-after-trapped",bs="focus-trap.focus-after-released",ys={cancelable:!0,bubbles:!1},ws={cancelable:!0,bubbles:!1},xs="focusAfterTrapped",ks="focusAfterReleased",Cs=Symbol("elFocusTrap"),Ss=m(),Es=m(0),Is=m(0);let Os=0;const Ts=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Bs=(e,t)=>{for(const n of e)if(!Ms(n,t))return n},Ms=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},_s=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Is.value=window.performance.now(),e!==n&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Ls(e,t){const n=[...e],o=e.indexOf(t);return-1!==o&&n.splice(o,1),n}const As=(()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=Ls(e,t),e.unshift(t)},remove:t=>{var n,o;e=Ls(e,t),null==(o=null==(n=e[0])?void 0:n.resume)||o.call(n)}}})(),Rs=()=>{Ss.value="pointer",Es.value=window.performance.now()},$s=()=>{Ss.value="keyboard",Es.value=window.performance.now()},Fs=e=>new CustomEvent("focus-trap.focusout-prevented",u(s({},ws),{detail:e}));var Vs=Hr(O({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[xs,ks,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=m();let o,l;const{focusReason:a}=(y((()=>{0===Os&&(document.addEventListener("mousedown",Rs),document.addEventListener("touchstart",Rs),document.addEventListener("keydown",$s)),Os++})),P((()=>{Os--,Os<=0&&(document.removeEventListener("mousedown",Rs),document.removeEventListener("touchstart",Rs),document.removeEventListener("keydown",$s))})),{focusReason:Ss,lastUserFocusTimestamp:Es,lastAutomatedFocusTimestamp:Is});var r;r=n=>{e.trapped&&!i.paused&&t("release-requested",n)},y((()=>{0===la.length&&document.addEventListener("keydown",aa),ht&&la.push(r)})),P((()=>{la=la.filter((e=>e!==r)),0===la.length&&ht&&document.removeEventListener("keydown",aa)}));const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=n=>{if(!e.loop&&!e.trapped)return;if(i.paused)return;const{key:o,altKey:l,ctrlKey:r,metaKey:s,currentTarget:u,shiftKey:c}=n,{loop:d}=e,p=o===oo.tab&&!l&&!r&&!s,f=document.activeElement;if(p&&f){const e=u,[o,l]=(e=>{const t=Ts(e);return[Bs(t,e),Bs(t.reverse(),e)]})(e);if(o&&l)if(c||f!==l){if(c&&[o,e].includes(f)){const e=Fs({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&_s(l,!0))}}else{const e=Fs({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),d&&_s(o,!0))}else if(f===e){const e=Fs({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};j(Cs,{focusTrapRef:n,onKeydown:c}),g((()=>e.focusTrapEl),(e=>{e&&(n.value=e)}),{immediate:!0}),g([n],(([e],[t])=>{e&&(e.addEventListener("keydown",c),e.addEventListener("focusin",h),e.addEventListener("focusout",b)),t&&(t.removeEventListener("keydown",c),t.removeEventListener("focusin",h),t.removeEventListener("focusout",b))}));const f=e=>{t(xs,e)},v=e=>t(ks,e),h=a=>{const r=p(n);if(!r)return;const s=a.target,u=a.relatedTarget,c=s&&r.contains(s);if(!e.trapped){u&&r.contains(u)||(o=u)}c&&t("focusin",a),i.paused||e.trapped&&(c?l=s:_s(l,!0))},b=o=>{const r=p(n);if(!i.paused&&r)if(e.trapped){const n=o.relatedTarget;je(n)||r.contains(n)||setTimeout((()=>{if(!i.paused&&e.trapped){const e=Fs({focusReason:a.value});t("focusout-prevented",e),e.defaultPrevented||_s(l,!0)}}),0)}else{const e=o.target;e&&r.contains(e)||t("focusout",o)}};function x(){return d(this,null,(function*(){yield w();const t=p(n);if(t){As.push(i);const n=t.contains(document.activeElement)?o:document.activeElement;o=n;if(!t.contains(n)){const o=new Event(hs,ys);t.addEventListener(hs,f),t.dispatchEvent(o),o.defaultPrevented||w((()=>{let o=e.focusStartEl;S(o)||(_s(o),document.activeElement!==o&&(o="first")),"first"===o&&((e,t=!1)=>{const n=document.activeElement;for(const o of e)if(_s(o,t),document.activeElement!==n)return})(Ts(t),!0),document.activeElement!==n&&"container"!==o||_s(t)}))}}}))}function k(){const e=p(n);if(e){e.removeEventListener(hs,f);const t=new CustomEvent(bs,u(s({},ys),{detail:{focusReason:a.value}}));e.addEventListener(bs,v),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=a.value&&Es.value>Is.value&&!e.contains(document.activeElement)||_s(null!=o?o:document.body),e.removeEventListener(bs,v),As.remove(i)}}return y((()=>{e.trapped&&x(),g((()=>e.trapped),(e=>{e?x():k()}))})),P((()=>{e.trapped&&k(),n.value&&(n.value.removeEventListener("keydown",c),n.value.removeEventListener("focusin",h),n.value.removeEventListener("focusout",b),n.value=void 0)})),{onKeydown:c}}}),[["render",function(e,t,n,o,l,a){return H(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","focus-trap.vue"]]);const Ps=Yn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Wo,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Ns=Yn(s(u(s({},Ps),{id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number}),Ar(["ariaLabel"]))),zs={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0};function Ds(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}const js=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:l}=N(os,void 0),a=m(),r=m(),i=C((()=>({name:"eventListeners",enabled:!!e.visible}))),c=C((()=>{var e;const t=p(a),n=null!=(e=p(r))?e:0;return{name:"arrow",enabled:!Ge(t),options:{element:t,padding:n}}})),d=C((()=>s({onFirstUpdate:()=>{w()}},((e,t=[])=>{const{placement:n,strategy:o,popperOptions:l}=e,a=u(s({placement:n,strategy:o},l),{modifiers:[...Ds(e),...t]});return function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(a,null==l?void 0:l.modifiers),a})(e,[p(c),p(i)])))),f=C((()=>(e=>{if(ht)return Ot(e)})(e.referenceEl)||p(o))),{attributes:v,state:h,styles:b,update:w,forceUpdate:x,instanceRef:k}=Zl(f,n,d);return g(k,(e=>t.value=e)),y((()=>{g((()=>{var e;return null==(e=p(f))?void 0:e.getBoundingClientRect()}),(()=>{w()}))})),{attributes:v,arrowRef:a,contentRef:n,instanceRef:k,state:h,styles:b,role:l,forceUpdate:x,update:w}},Hs=O({name:"ElPopperContent"});var qs=Hr(O(u(s({},Hs),{props:Ns,emits:zs,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:l,trapped:a,onFocusAfterReleased:r,onFocusAfterTrapped:i,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=((e,t)=>{const n=m(!1),o=m();return{focusStartRef:o,trapped:n,onFocusAfterReleased:e=>{var n;"pointer"!==(null==(n=e.detail)?void 0:n.focusReason)&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:t=>{e.visible&&!n.value&&(t.target&&(o.value=t.target),n.value=!0)},onFocusoutPrevented:t=>{e.trapping||("pointer"===t.detail.focusReason&&t.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}})(o,n),{attributes:v,arrowRef:h,contentRef:b,styles:w,instanceRef:x,role:k,update:S}=js(o),{ariaModal:E,arrowStyle:I,contentAttrs:O,contentClass:M,contentStyle:_,updateZIndex:L}=((e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:l}=ga(),a=Io("popper"),r=C((()=>p(t).popper)),i=m(Qt(e.zIndex)?e.zIndex:l()),s=C((()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass])),u=C((()=>[{zIndex:p(i)},p(n).popper,e.popperStyle||{}]));return{ariaModal:C((()=>"dialog"===o.value?"false":void 0)),arrowStyle:C((()=>p(n).arrow||{})),contentAttrs:r,contentClass:s,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=Qt(e.zIndex)?e.zIndex:l()}}})(o,{styles:w,attributes:v,role:k}),A=N(Yr,void 0),$=m();let F;j(ls,{arrowStyle:I,arrowRef:h,arrowOffset:$}),A&&j(Yr,u(s({},A),{addInputId:R,removeInputId:R}));const V=(e=!0)=>{S(),e&&L()},z=()=>{V(!1),o.visible&&o.focusOnShow?a.value=!0:!1===o.visible&&(a.value=!1)};return y((()=>{g((()=>o.triggerTargetEl),((e,t)=>{null==F||F(),F=void 0;const n=p(e||b.value),l=p(t||b.value);en(n)&&(F=g([k,()=>o.ariaLabel,E,()=>o.id],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,o)=>{je(e[o])?n.removeAttribute(t):n.setAttribute(t,e[o])}))}),{immediate:!0})),l!==n&&en(l)&&["role","aria-label","aria-modal","id"].forEach((e=>{l.removeAttribute(e)}))}),{immediate:!0}),g((()=>o.visible),z,{immediate:!0})})),P((()=>{null==F||F(),F=void 0})),t({popperContentRef:b,popperInstanceRef:x,updatePopper:V,contentStyle:_}),(e,t)=>(T(),B("div",q({ref_key:"contentRef",ref:b},p(O),{style:p(_),class:p(M),tabindex:"-1",onMouseenter:t=>e.$emit("mouseenter",t),onMouseleave:t=>e.$emit("mouseleave",t)}),[Z(p(Vs),{trapped:p(a),"trap-on-focus-in":!0,"focus-trap-el":p(b),"focus-start-el":p(l),onFocusAfterTrapped:p(i),onFocusAfterReleased:p(r),onFocusin:p(c),onFocusoutPrevented:p(d),onReleaseRequested:p(f)},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}})),[["__file","content.vue"]]);const Ws=eo(is),Ks=Symbol("elTooltip"),Us=Yn(s(u(s(s({},ua),Ns),{appendTo:{type:[String,Object]},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Boolean,default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Ar(["ariaLabel"]))),Ys=Yn(u(s({},vs),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[oo.enter,oo.space]}})),{useModelToggleProps:Gs,useModelToggleEmits:Xs,useModelToggle:Zs}=Mo("visible"),Js=Yn(u(s(s(s(s(s({},as),Gs),Us),Ys),ss),{showArrow:{type:Boolean,default:!0}})),Qs=[...Xs,"before-show","before-hide","show","hide","open","close"],eu=(e,t,n)=>o=>{((e,t)=>F(e)?e.includes(t):e===t)(p(e),t)&&n(o)},tu=O({name:"ElTooltipTrigger"});var nu=Hr(O(u(s({},tu),{props:Ys,setup(e,{expose:t}){const n=e,o=Io("tooltip"),{controlled:l,id:a,open:r,onOpen:i,onClose:s,onToggle:u}=N(Ks,void 0),c=m(null),d=()=>{if(p(l)||n.disabled)return!0},f=W(n,"trigger"),v=rt(d,eu(f,"hover",i)),g=rt(d,eu(f,"hover",s)),h=rt(d,eu(f,"click",(e=>{0===e.button&&u(e)}))),b=rt(d,eu(f,"focus",i)),y=rt(d,eu(f,"focus",s)),w=rt(d,eu(f,"contextmenu",(e=>{e.preventDefault(),u(e)}))),x=rt(d,(e=>{const{code:t}=e;n.triggerKeys.includes(t)&&(e.preventDefault(),u(e))}));return t({triggerRef:c}),(e,t)=>(T(),te(p(gs),{id:p(a),"virtual-ref":e.virtualRef,open:p(r),"virtual-triggering":e.virtualTriggering,class:G(p(o).e("trigger")),onBlur:p(y),onClick:p(h),onContextmenu:p(w),onFocus:p(b),onMouseenter:p(v),onMouseleave:p(g),onKeydown:p(x)},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}})),[["__file","trigger.vue"]]);const ou=Yn({to:{type:[String,Object],required:!0},disabled:Boolean});const lu=eo(Hr(O({__name:"teleport",props:ou,setup:e=>(e,t)=>e.disabled?H(e.$slots,"default",{key:0}):(T(),te(he,{key:1,to:e.to},[H(e.$slots,"default")],8,["to"]))}),[["__file","teleport.vue"]])),au=O({name:"ElTooltipContent",inheritAttrs:!1});var ru=Hr(O(u(s({},au),{props:Us,setup(e,{expose:t}){const n=e,{selector:o}=ia(),l=Io("tooltip"),a=m(null);let r;const{controlled:i,id:s,open:u,trigger:c,onClose:d,onOpen:f,onShow:v,onHide:h,onBeforeShow:b,onBeforeHide:y}=N(Ks,void 0),w=C((()=>n.transition||`${l.namespace.value}-fade-in-linear`)),x=C((()=>n.persistent));P((()=>{null==r||r()}));const k=C((()=>!!p(x)||p(u))),S=C((()=>!n.disabled&&p(u))),E=C((()=>n.appendTo||o.value)),I=C((()=>{var e;return null!=(e=n.style)?e:{}})),O=C((()=>!p(u))),B=()=>{h()},M=()=>{if(p(i))return!0},_=rt(M,(()=>{n.enterable&&"hover"===p(c)&&f()})),L=rt(M,(()=>{"hover"===p(c)&&d()})),A=()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e),null==b||b()},R=()=>{null==y||y()},$=()=>{v(),r=function(e,t,n={}){const{window:o=Tt,ignore:l=[],capture:a=!0,detectIframe:r=!1}=n;if(!o)return;wt&&!_t&&(_t=!0,Array.from(o.document.body.children).forEach((e=>e.addEventListener("click",yt))));let i=!0;const s=e=>l.some((t=>{if("string"==typeof t)return Array.from(o.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=Ot(t);return n&&(e.target===n||e.composedPath().includes(n))}})),u=[Mt(o,"click",(n=>{const o=Ot(e);o&&o!==n.target&&!n.composedPath().includes(o)&&(0===n.detail&&(i=!s(n)),i?t(n):i=!0)}),{passive:!0,capture:a}),Mt(o,"pointerdown",(t=>{const n=Ot(e);n&&(i=!t.composedPath().includes(n)&&!s(t))}),{passive:!0}),r&&Mt(o,"blur",(n=>{var l;const a=Ot(e);"IFRAME"!==(null==(l=o.document.activeElement)?void 0:l.tagName)||(null==a?void 0:a.contains(o.document.activeElement))||t(n)}))].filter(Boolean);return()=>u.forEach((e=>e()))}(C((()=>{var e;return null==(e=a.value)?void 0:e.popperContentRef})),(()=>{if(p(i))return;"hover"!==p(c)&&d()}))},F=()=>{n.virtualTriggering||d()};return g((()=>p(u)),(e=>{e||null==r||r()}),{flush:"post"}),g((()=>n.content),(()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.updatePopper)||t.call(e)})),t({contentRef:a}),(e,t)=>(T(),te(p(lu),{disabled:!e.teleported,to:p(E)},{default:ee((()=>[Z(pe,{name:p(w),onAfterLeave:B,onBeforeEnter:A,onAfterEnter:$,onBeforeLeave:R},{default:ee((()=>[p(k)?ce((T(),te(p(qs),q({key:0,id:p(s),ref_key:"contentRef",ref:a},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":p(O),"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,p(I)],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:p(S),"z-index":e.zIndex,onMouseenter:p(_),onMouseleave:p(L),onBlur:F,onClose:p(d)}),{default:ee((()=>[H(e.$slots,"default")])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[de,p(S)]]):re("v-if",!0)])),_:3},8,["name"])])),_:3},8,["disabled","to"]))}})),[["__file","content.vue"]]);const iu=O({name:"ElTooltip"});const su=eo(Hr(O(u(s({},iu),{props:Js,emits:Qs,setup(e,{expose:t,emit:n}){const o=e;sa();const l=oa(),a=m(),r=m(),i=()=>{var e;const t=p(a);t&&(null==(e=t.popperInstanceRef)||e.update())},s=m(!1),u=m(),{show:c,hide:d,hasUpdateHandler:f}=Zs({indicator:s,toggleReason:u}),{onOpen:v,onClose:b}=(({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:a}=Ql(),{registerTimeout:r,cancelTimeout:i}=Ql();return{onOpen:t=>{a((()=>{o(t);const e=p(n);Qt(e)&&e>0&&r((()=>{l(t)}),e)}),p(e))},onClose:e=>{i(),a((()=>{l(e)}),p(t))}}})({showAfter:W(o,"showAfter"),hideAfter:W(o,"hideAfter"),autoClose:W(o,"autoClose"),open:c,close:d}),y=C((()=>Jt(o.visible)&&!f.value));j(Ks,{controlled:y,id:l,open:h(s),trigger:W(o,"trigger"),onOpen:e=>{v(e)},onClose:e=>{b(e)},onToggle:e=>{p(s)?b(e):v(e)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:i}),g((()=>o.disabled),(e=>{e&&s.value&&(s.value=!1)}));return be((()=>s.value&&d())),t({popperRef:a,contentRef:r,isFocusInsideContent:e=>{var t,n;const o=null==(n=null==(t=r.value)?void 0:t.contentRef)?void 0:n.popperContentRef,l=(null==e?void 0:e.relatedTarget)||document.activeElement;return o&&o.contains(l)},updatePopper:i,onOpen:v,onClose:b,hide:d}),(e,t)=>(T(),te(p(Ws),{ref_key:"popperRef",ref:a,role:e.role},{default:ee((()=>[Z(nu,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:ee((()=>[e.$slots.default?H(e.$slots,"default",{key:0}):re("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Z(ru,{ref_key:"contentRef",ref:r,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:ee((()=>[H(e.$slots,"content",{},(()=>[e.rawContent?(T(),B("span",{key:0,innerHTML:e.content},null,8,["innerHTML"])):(T(),B("span",{key:1},ae(e.content),1))])),e.showArrow?(T(),te(p(cs),{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):re("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"]))}})),[["__file","tooltip.vue"]])),uu=Yn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:[String,Object,Array]},offset:{type:Array,default:[0,0]},badgeClass:{type:String}}),cu=O({name:"ElBadge"});const du=eo(Hr(O(u(s({},cu),{props:uu,setup(e,{expose:t}){const n=e,o=Io("badge"),l=C((()=>n.isDot?"":Qt(n.value)&&Qt(n.max)?n.max{var e,t,o,l,a;return[{backgroundColor:n.color,marginRight:fn(-(null!=(t=null==(e=n.offset)?void 0:e[0])?t:0)),marginTop:fn(null!=(l=null==(o=n.offset)?void 0:o[1])?l:0)},null!=(a=n.badgeStyle)?a:{}]}));return t({content:l}),(e,t)=>(T(),B("div",{class:G(p(o).b())},[H(e.$slots,"default"),Z(pe,{name:`${p(o).namespace.value}-zoom-in-center`,persisted:""},{default:ee((()=>[ce(M("sup",{class:G([p(o).e("content"),p(o).em("content",e.type),p(o).is("fixed",!!e.$slots.default),p(o).is("dot",e.isDot),e.badgeClass]),style:oe(p(a)),textContent:ae(p(l))},null,14,["textContent"]),[[de,!e.hidden&&(p(l)||e.isDot)]])])),_:1},8,["name"])],2))}})),[["__file","badge.vue"]])),pu=Symbol("buttonGroupContextKey"),fu=Yn({size:Er,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Gn},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Gn,default:()=>Mn},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:[String,Object],default:"button"}}),vu={click:e=>e instanceof MouseEvent};function mu(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function gu(e){return Math.min(1,Math.max(0,e))}function hu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function bu(e){return e<=1?"".concat(100*Number(e),"%"):e}function yu(e){return 1===e.length?"0"+e:String(e)}function wu(e,t,n){e=mu(e,255),t=mu(t,255),n=mu(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),a=0,r=0,i=(o+l)/2;if(o===l)r=0,a=0;else{var s=o-l;switch(r=i>.5?s/(2-o-l):s/(o+l),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ku(e,t,n){e=mu(e,255),t=mu(t,255),n=mu(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),a=0,r=o,i=o-l,s=0===o?0:i/o;if(o===l)a=0;else{switch(o){case e:a=(t-n)/i+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var l=Ou(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:l.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=hu(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=ku(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=ku(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=wu(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=wu(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Cu(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,l){var a,r=[yu(Math.round(e).toString(16)),yu(Math.round(t).toString(16)),yu(Math.round(n).toString(16)),yu((a=o,Math.round(255*parseFloat(a)).toString(16)))];return l&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*mu(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*mu(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Cu(this.r,this.g,this.b,!1),t=0,n=Object.entries(Iu);t=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=gu(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=gu(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=gu(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=gu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var o=this.toRgb(),l=new e(t).toRgb(),a=n/100;return new e({r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var o=this.toHsl(),l=360/n,a=[this];for(o.h=(o.h-(l*t>>1)+720)%360;--t;)o.h=(o.h+l)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),o=n.h,l=n.s,a=n.v,r=[],i=1/t;t--;)r.push(new e({h:o,s:l,v:a})),a=(a+i)%1;return r},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),l=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/l,g:(n.g*n.a+o.g*o.a*(1-n.a))/l,b:(n.b*n.a+o.b*o.a*(1-n.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,l=[this],a=360/t,r=1;r{let o={},l=e.color;if(l){const a=l.match(/var\((.*?)\)/);a&&(l=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const r=new Au(l),i=e.dark?r.tint(20).toString():Ru(r,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?Ru(r,90):r.tint(90).toString(),"text-color":l,"border-color":e.dark?Ru(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ru(r,90):r.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?Ru(r,50):r.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?Ru(r,80):r.tint(80).toString());else{const a=e.dark?Ru(r,30):r.tint(30).toString(),s=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":l,"text-color":s,"border-color":l,"hover-bg-color":a,"hover-text-color":s,"hover-border-color":a,"active-bg-color":i,"active-border-color":i}),t.value){const t=e.dark?Ru(r,50):r.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=t,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=t}}}return o}))}(o),a=Io("button"),{_ref:r,_size:i,_type:s,_disabled:u,_props:c,shouldAddSpace:d,handleClick:f}=((e,t)=>{mo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},C((()=>"text"===e.type)));const n=N(pu,void 0),o=Fr("button"),{form:l}=Zr(),a=Gr(C((()=>null==n?void 0:n.size))),r=Xr(),i=m(),s=Q(),u=C((()=>e.type||(null==n?void 0:n.type)||"")),c=C((()=>{var t,n,l;return null!=(l=null!=(n=e.autoInsertSpace)?n:null==(t=o.value)?void 0:t.autoInsertSpace)&&l})),d=C((()=>"button"===e.tag?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{})),p=C((()=>{var e;const t=null==(e=s.default)?void 0:e.call(s);if(c.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===me){const t=e.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(t.trim())}}return!1}));return{_disabled:r,_size:a,_type:u,_ref:i,_props:d,shouldAddSpace:p,handleClick:n=>{r.value||e.loading?n.stopPropagation():("reset"===e.nativeType&&(null==l||l.resetFields()),t("click",n))}}})(o,n),v=C((()=>[a.b(),a.m(s.value),a.m(i.value),a.is("disabled",u.value),a.is("loading",o.loading),a.is("plain",o.plain),a.is("round",o.round),a.is("circle",o.circle),a.is("text",o.text),a.is("link",o.link),a.is("has-bg",o.bg)]));return t({ref:r,size:i,type:s,disabled:u,shouldAddSpace:d}),(e,t)=>(T(),te(ne(e.tag),q({ref_key:"_ref",ref:r},p(c),{class:p(v),style:p(l),onClick:p(f)}),{default:ee((()=>[e.loading?(T(),B(J,{key:0},[e.$slots.loading?H(e.$slots,"loading",{key:0}):(T(),te(p(Kr),{key:1,class:G(p(a).is("loading"))},{default:ee((()=>[(T(),te(ne(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(T(),te(p(Kr),{key:1},{default:ee((()=>[e.icon?(T(),te(ne(e.icon),{key:0})):H(e.$slots,"icon",{key:1})])),_:3})):re("v-if",!0),e.$slots.default?(T(),B("span",{key:2,class:G({[p(a).em("text","expand")]:p(d)})},[H(e.$slots,"default")],2)):re("v-if",!0)])),_:3},16,["class","style","onClick"]))}})),[["__file","button.vue"]]);const Vu={size:fu.size,type:fu.type},Pu=O({name:"ElButtonGroup"});var Nu=Hr(O(u(s({},Pu),{props:Vu,setup(e){const t=e;j(pu,U({size:W(t,"size"),type:W(t,"type")}));const n=Io("button");return(e,t)=>(T(),B("div",{class:G(p(n).b("group"))},[H(e.$slots,"default")],2))}})),[["__file","button-group.vue"]]);const zu=eo(Fu,{ButtonGroup:Nu}),Du=to(Nu),ju=new Map;if(ht){let e;document.addEventListener("mousedown",(t=>e=t)),document.addEventListener("mouseup",(t=>{if(e){for(const n of ju.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}}))}function Hu(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:en(t.arg)&&n.push(t.arg),function(o,l){const a=t.instance.popperRef,r=o.target,i=null==l?void 0:l.target,s=!t||!t.instance,u=!r||!i,c=e.contains(r)||e.contains(i),d=e===r,p=n.length&&n.some((e=>null==e?void 0:e.contains(r)))||n.length&&n.includes(i),f=a&&(a.contains(r)||a.contains(i));s||u||c||d||p||f||t.value(o,l)}}const qu={beforeMount(e,t){ju.has(e)||ju.set(e,[]),ju.get(e).push({documentHandler:Hu(e,t),bindingFn:t.value})},updated(e,t){ju.has(e)||ju.set(e,[]);const n=ju.get(e),o=n.findIndex((e=>e.bindingFn===t.oldValue)),l={documentHandler:Hu(e,t),bindingFn:t.value};o>=0?n.splice(o,1,l):n.push(l)},unmounted(e){ju.delete(e)}},Wu=100,Ku=600,Uu={beforeMount(e,t){const n=t.value,{interval:o=Wu,delay:l=Ku}=$(n)?{}:n;let a,r;const i=()=>$(n)?n():n.handler(),s=()=>{r&&(clearTimeout(r),r=void 0),a&&(clearInterval(a),a=void 0)};e.addEventListener("mousedown",(e=>{0===e.button&&(s(),i(),document.addEventListener("mouseup",(()=>s()),{once:!0}),r=setTimeout((()=>{a=setInterval((()=>{i()}),o)}),l))}))}},Yu="_trap-focus-children",Gu=[],Xu=e=>{if(0===Gu.length)return;const t=Gu[Gu.length-1][Yu];if(t.length>0&&e.code===oo.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,o=e.target===t[0],l=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),l&&!n&&(e.preventDefault(),t[0].focus())}},Zu={beforeMount(e){e[Yu]=ot(e),Gu.push(e),Gu.length<=1&&document.addEventListener("keydown",Xu)},updated(e){w((()=>{e[Yu]=ot(e)}))},unmounted(){Gu.shift(),0===Gu.length&&document.removeEventListener("keydown",Xu)}},Ju=Yn({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Qu={change:(e,t)=>[e,t].every(Qt)},ec=Symbol("carouselContextKey"),tc="ElCarouselItem",nc=(e,t,n)=>{const{children:o,addChild:l,removeChild:a}=Sr(b(),tc),r=Q(),i=m(-1),s=m(null),u=m(!1),c=m(),d=m(0),f=m(!0),v=m(!0),h=m(!1),w=C((()=>"never"!==e.arrow&&!p(I))),k=C((()=>o.value.some((e=>e.props.label.toString().length>0)))),E=C((()=>"card"===e.type)),I=C((()=>"vertical"===e.direction)),O=C((()=>"auto"!==e.height?{height:e.height}:{height:`${d.value}px`,overflow:"hidden"})),T=Xe((e=>{A(e)}),300,{trailing:!0}),B=Xe((t=>{!function(t){"hover"===e.trigger&&t!==i.value&&(i.value=t,v.value||(h.value=!0))}(t)}),300);function M(){s.value&&(clearInterval(s.value),s.value=null)}function _(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval((()=>L()),e.interval))}const L=()=>{v.value||(h.value=!0),v.value=!1,i.valuee.props.name===t));e.length>0&&(t=o.value.indexOf(e[0]))}if(t=Number(t),Number.isNaN(t)||t!==Math.floor(t))return;const n=o.value.length,l=i.value;i.value=t<0?e.loop?n-1:0:t>=n?e.loop?0:n-1:t,l===i.value&&R(l),$()}function R(e){o.value.forEach(((t,n)=>{t.translateItem(n,i.value,e)}))}function $(){M(),e.pauseOnHover||_()}g((()=>i.value),((e,n)=>{R(n),f.value&&(e%=2,n%=2),n>-1&&t("change",e,n)})),g((()=>e.autoplay),(e=>{e?_():M()})),g((()=>e.loop),(()=>{A(i.value)})),g((()=>e.interval),(()=>{$()}));const F=x();return y((()=>{g((()=>o.value),(()=>{o.value.length>0&&A(e.initialIndex)}),{immediate:!0}),F.value=Pt(c.value,(()=>{R()})),_()})),P((()=>{M(),c.value&&F.value&&F.value.stop()})),j(ec,{root:c,isCardType:E,isVertical:I,items:o,loop:e.loop,cardScale:e.cardScale,addItem:l,removeItem:a,setActiveItem:A,setContainerHeight:function(t){"auto"===e.height&&(d.value=t)}}),{root:c,activeIndex:i,arrowDisplay:w,hasLabel:k,hover:u,isCardType:E,isTransitioning:h,items:o,isVertical:I,containerStyle:O,isItemsTwoLength:f,handleButtonEnter:function(e){p(I)||o.value.forEach(((t,n)=>{e===function(e,t){var n,l,a,r;const i=p(o),s=i.length;if(0===s||!e.states.inStage)return!1;const u=t+1,c=t-1,d=s-1,f=i[d].states.active,v=i[0].states.active,m=null==(l=null==(n=i[u])?void 0:n.states)?void 0:l.active,g=null==(r=null==(a=i[c])?void 0:a.states)?void 0:r.active;return t===d&&v||m?"left":!!(0===t&&f||g)&&"right"}(t,n)&&(t.states.hover=!0)}))},handleTransitionEnd:function(){h.value=!1},handleButtonLeave:function(){p(I)||o.value.forEach((e=>{e.states.hover=!1}))},handleIndicatorClick:function(e){e!==i.value&&(v.value||(h.value=!0)),i.value=e},handleMouseEnter:function(){u.value=!0,e.pauseOnHover&&M()},handleMouseLeave:function(){u.value=!1,_()},setActiveItem:A,prev:function(){A(i.value-1)},next:function(){A(i.value+1)},PlaceholderItem:function(){var t;const n=null==(t=r.default)?void 0:t.call(r);if(!n)return null;const o=co(n).filter((e=>V(e)&&e.type.name===tc));return 2===(null==o?void 0:o.length)&&e.loop&&!E.value?(f.value=!0,o):(f.value=!1,null)},isTwoLengthShow:e=>!f.value||(i.value<=1?e<=1:e>1),throttledArrowClick:T,throttledIndicatorHover:B}},oc=O({name:"ElCarousel"});var lc=Hr(O(u(s({},oc),{props:Ju,emits:Qu,setup(e,{expose:t,emit:n}){const o=e,{root:l,activeIndex:a,arrowDisplay:r,hasLabel:i,hover:s,isCardType:u,items:c,isVertical:d,containerStyle:f,handleButtonEnter:v,handleButtonLeave:m,isTransitioning:g,handleIndicatorClick:h,handleMouseEnter:b,handleMouseLeave:y,handleTransitionEnd:w,setActiveItem:x,prev:k,next:S,PlaceholderItem:E,isTwoLengthShow:I,throttledArrowClick:O,throttledIndicatorHover:_}=nc(o,n),L=Io("carousel"),{t:A}=xo(),R=C((()=>{const e=[L.b(),L.m(o.direction)];return p(u)&&e.push(L.m("card")),e})),$=C((()=>{const e=[L.e("container")];return o.motionBlur&&p(g)&&e.push(p(d)?`${L.namespace.value}-transitioning-vertical`:`${L.namespace.value}-transitioning`),e})),F=C((()=>{const e=[L.e("indicators"),L.em("indicators",o.direction)];return p(i)&&e.push(L.em("indicators","labels")),"outside"===o.indicatorPosition&&e.push(L.em("indicators","outside")),p(d)&&e.push(L.em("indicators","right")),e}));return t({activeIndex:a,setActiveItem:x,prev:k,next:S}),(e,t)=>(T(),B("div",{ref_key:"root",ref:l,class:G(p(R)),onMouseenter:ue(p(b),["stop"]),onMouseleave:ue(p(y),["stop"])},[p(r)?(T(),te(pe,{key:0,name:"carousel-arrow-left",persisted:""},{default:ee((()=>[ce(M("button",{type:"button",class:G([p(L).e("arrow"),p(L).em("arrow","left")]),"aria-label":p(A)("el.carousel.leftArrow"),onMouseenter:e=>p(v)("left"),onMouseleave:p(m),onClick:ue((e=>p(O)(p(a)-1)),["stop"])},[Z(p(Kr),null,{default:ee((()=>[Z(p(hn))])),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[de,("always"===e.arrow||p(s))&&(o.loop||p(a)>0)]])])),_:1})):re("v-if",!0),p(r)?(T(),te(pe,{key:1,name:"carousel-arrow-right",persisted:""},{default:ee((()=>[ce(M("button",{type:"button",class:G([p(L).e("arrow"),p(L).em("arrow","right")]),"aria-label":p(A)("el.carousel.rightArrow"),onMouseenter:e=>p(v)("right"),onMouseleave:p(m),onClick:ue((e=>p(O)(p(a)+1)),["stop"])},[Z(p(Kr),null,{default:ee((()=>[Z(p(bn))])),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[de,("always"===e.arrow||p(s))&&(o.loop||p(a)ce((T(),B("li",{key:n,class:G([p(L).e("indicator"),p(L).em("indicator",e.direction),p(L).is("active",n===p(a))]),onMouseenter:e=>p(_)(n),onClick:ue((e=>p(h)(n)),["stop"])},[M("button",{class:G(p(L).e("button")),"aria-label":p(A)("el.carousel.indicator",{index:n+1})},[p(i)?(T(),B("span",{key:0},ae(t.props.label),1)):re("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[de,p(I)(n)]]))),128))],2)):re("v-if",!0),o.motionBlur?(T(),B("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[M("defs",null,[M("filter",{id:"elCarouselHorizontal"},[M("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),M("filter",{id:"elCarouselVertical"},[M("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):re("v-if",!0)],42,["onMouseenter","onMouseleave"]))}})),[["__file","carousel.vue"]]);const ac=Yn({name:{type:String,default:""},label:{type:[String,Number],default:""}}),rc=e=>{const t=N(ec),n=b(),o=m(),l=m(!1),a=m(0),r=m(1),i=m(!1),s=m(!1),u=m(!1),c=m(!1),{isCardType:d,isVertical:f,cardScale:v}=t;const g=(e,n,l)=>{var m;const g=p(d),h=null!=(m=t.items.value.length)?m:Number.NaN,b=e===n;g||Zt(l)||(c.value=b||e===l),!b&&h>2&&t.loop&&(e=function(e,t,n){const o=n-1,l=n/2;return 0===t&&e===o?-1:t===o&&0===e?n:e=l?n+1:e>t+1&&e-t>=l?-2:e}(e,n,h));const y=p(f);i.value=b,g?(u.value=Math.round(Math.abs(e-n))<=1,a.value=function(e,n){var o,l;const a=p(f)?(null==(o=t.root.value)?void 0:o.offsetHeight)||0:(null==(l=t.root.value)?void 0:l.offsetWidth)||0;return u.value?a*((2-v)*(e-n)+1)/4:e{t.addItem({props:e,states:U({hover:l,translate:a,scale:r,active:i,ready:s,inStage:u,animating:c}),uid:n.uid,translateItem:g})})),K((()=>{t.removeItem(n.uid)})),{carouselItemRef:o,active:i,animating:c,hover:l,inStage:u,isVertical:f,translate:a,isCardType:d,scale:r,ready:s,handleItemClick:function(){if(t&&p(d)){const e=t.items.value.findIndex((({uid:e})=>e===n.uid));t.setActiveItem(e)}}}},ic=O({name:tc});var sc=Hr(O(u(s({},ic),{props:ac,setup(e){const t=e,n=Io("carousel"),{carouselItemRef:o,active:l,animating:a,hover:r,inStage:i,isVertical:s,translate:u,isCardType:c,scale:d,ready:f,handleItemClick:v}=rc(t),m=C((()=>[n.e("item"),n.is("active",l.value),n.is("in-stage",i.value),n.is("hover",r.value),n.is("animating",a.value),{[n.em("item","card")]:c.value,[n.em("item","card-vertical")]:c.value&&s.value}])),g=C((()=>({transform:[`${"translate"+(p(s)?"Y":"X")}(${p(u)}px)`,`scale(${p(d)})`].join(" ")})));return(e,t)=>ce((T(),B("div",{ref_key:"carouselItemRef",ref:o,class:G(p(m)),style:oe(p(g)),onClick:p(v)},[p(c)?ce((T(),B("div",{key:0,class:G(p(n).e("mask"))},null,2)),[[de,!p(l)]]):re("v-if",!0),H(e.$slots,"default")],14,["onClick"])),[[de,p(f)]])}})),[["__file","carousel-item.vue"]]);const uc=eo(lc,{CarouselItem:sc}),cc=to(sc),dc=s({modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Er,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Ar(["ariaControls"])),pc={[lo]:e=>S(e)||Qt(e)||Jt(e),change:e=>S(e)||Qt(e)||Jt(e)},fc=Symbol("checkboxGroupContextKey"),vc=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:l,isLabeledByFormItem:a})=>{const r=N(fc,void 0),{formItem:i}=Zr(),{emit:s}=b();function u(t){var n,o,l,a;return[!0,e.trueValue,e.trueLabel].includes(t)?null==(o=null!=(n=e.trueValue)?n:e.trueLabel)||o:null!=(a=null!=(l=e.falseValue)?l:e.falseLabel)&&a}const c=C((()=>(null==r?void 0:r.validateEvent)||e.validateEvent));return g((()=>e.modelValue),(()=>{c.value&&(null==i||i.validate("change").catch((e=>{})))})),{handleChange:function(e){if(n.value)return;const t=e.target;s("change",u(t.checked),e)},onClickRoot:function(r){return d(this,null,(function*(){if(!n.value&&!o.value&&!l.value&&a.value){r.composedPath().some((e=>"LABEL"===e.tagName))||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),yield w(),function(e,t){s("change",u(e),t)}(t.value,r))}}))}}},mc=(e,t)=>{const{formItem:n}=Zr(),{model:o,isGroup:l,isLimitExceeded:a}=(e=>{const t=m(!1),{emit:n}=b(),o=N(fc,void 0),l=C((()=>!1===Zt(o))),a=m(!1),r=C({get(){var n,a;return l.value?null==(n=null==o?void 0:o.modelValue)?void 0:n.value:null!=(a=e.modelValue)?a:t.value},set(e){var i,s;l.value&&F(e)?(a.value=void 0!==(null==(i=null==o?void 0:o.max)?void 0:i.value)&&e.length>(null==o?void 0:o.max.value)&&e.length>r.value.length,!1===a.value&&(null==(s=null==o?void 0:o.changeEvent)||s.call(o,e))):(n(lo,e),t.value=e)}});return{model:r,isGroup:l,isLimitExceeded:a}})(e),{isFocused:r,isChecked:i,checkboxButtonSize:s,checkboxSize:u,hasOwnLabel:c,actualValue:d}=((e,t,{model:n})=>{const o=N(fc,void 0),l=m(!1),a=C((()=>tn(e.value)?e.label:e.value)),r=C((()=>{const t=n.value;return Jt(t)?t:F(t)?_(a.value)?t.map(we).some((e=>Ze(e,a.value))):t.map(we).includes(a.value):null!=t?t===e.trueValue||t===e.trueLabel:!!t}));return{checkboxButtonSize:Gr(C((()=>{var e;return null==(e=null==o?void 0:o.size)?void 0:e.value})),{prop:!0}),isChecked:r,isFocused:l,checkboxSize:Gr(C((()=>{var e;return null==(e=null==o?void 0:o.size)?void 0:e.value}))),hasOwnLabel:C((()=>!!t.default||!tn(a.value))),actualValue:a}})(e,t,{model:o}),{isDisabled:p}=(({model:e,isChecked:t})=>{const n=N(fc,void 0),o=C((()=>{var o,l;const a=null==(o=null==n?void 0:n.max)?void 0:o.value,r=null==(l=null==n?void 0:n.min)?void 0:l.value;return!Zt(a)&&e.value.length>=a&&!t.value||!Zt(r)&&e.value.length<=r&&t.value}));return{isDisabled:Xr(C((()=>(null==n?void 0:n.disabled.value)||o.value))),isLimitDisabled:o}})({model:o,isChecked:i}),{inputId:f,isLabeledByFormItem:v}=Jr(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:l}),{handleChange:g,onClickRoot:h}=vc(e,{model:o,isLimitExceeded:a,hasOwnLabel:c,isDisabled:p,isLabeledByFormItem:v});var y,w;return e.checked&&(F(o.value)&&!o.value.includes(d.value)?o.value.push(d.value):o.value=null==(w=null!=(y=e.trueValue)?y:e.trueLabel)||w),mo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C((()=>l.value&&tn(e.value)))),mo({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C((()=>!!e.trueLabel))),mo({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},C((()=>!!e.falseLabel))),{inputId:f,isLabeledByFormItem:v,isChecked:i,isDisabled:p,isFocused:r,checkboxButtonSize:s,checkboxSize:u,hasOwnLabel:c,model:o,actualValue:d,handleChange:g,onClickRoot:h}},gc=O({name:"ElCheckbox"});var hc=Hr(O(u(s({},gc),{props:dc,emits:pc,setup(e){const t=e,n=Q(),{inputId:o,isLabeledByFormItem:l,isChecked:a,isDisabled:r,isFocused:i,checkboxSize:s,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:v}=mc(t,n),m=Io("checkbox"),g=C((()=>[m.b(),m.m(s.value),m.is("disabled",r.value),m.is("bordered",t.border),m.is("checked",a.value)])),h=C((()=>[m.e("input"),m.is("disabled",r.value),m.is("checked",a.value),m.is("indeterminate",t.indeterminate),m.is("focus",i.value)]));return(e,t)=>(T(),te(ne(!p(u)&&p(l)?"span":"label"),{class:G(p(g)),"aria-controls":e.indeterminate?e.ariaControls:null,onClick:p(v)},{default:ee((()=>{var t,n;return[M("span",{class:G(p(h))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?ce((T(),B("input",{key:0,id:p(o),"onUpdate:modelValue":e=>z(c)?c.value=e:null,class:G(p(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:p(r),"true-value":null!=(t=e.trueValue)?t:e.trueLabel,"false-value":null!=(n=e.falseValue)?n:e.falseLabel,onChange:p(f),onFocus:e=>i.value=!0,onBlur:e=>i.value=!1,onClick:ue((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[xe,p(c)]]):ce((T(),B("input",{key:1,id:p(o),"onUpdate:modelValue":e=>z(c)?c.value=e:null,class:G(p(m).e("original")),type:"checkbox",indeterminate:e.indeterminate,disabled:p(r),value:p(d),name:e.name,tabindex:e.tabindex,onChange:p(f),onFocus:e=>i.value=!0,onBlur:e=>i.value=!1,onClick:ue((()=>{}),["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[xe,p(c)]]),M("span",{class:G(p(m).e("inner"))},null,2)],2),p(u)?(T(),B("span",{key:0,class:G(p(m).e("label"))},[H(e.$slots,"default"),e.$slots.default?re("v-if",!0):(T(),B(J,{key:0},[le(ae(e.label),1)],64))],2)):re("v-if",!0)]})),_:3},8,["class","aria-controls","onClick"]))}})),[["__file","checkbox.vue"]]);const bc=O({name:"ElCheckboxButton"});var yc=Hr(O(u(s({},bc),{props:dc,emits:pc,setup(e){const t=e,n=Q(),{isFocused:o,isChecked:l,isDisabled:a,checkboxButtonSize:r,model:i,actualValue:s,handleChange:u}=mc(t,n),c=N(fc,void 0),d=Io("checkbox"),f=C((()=>{var e,t,n,o;const l=null!=(t=null==(e=null==c?void 0:c.fill)?void 0:e.value)?t:"";return{backgroundColor:l,borderColor:l,color:null!=(o=null==(n=null==c?void 0:c.textColor)?void 0:n.value)?o:"",boxShadow:l?`-1px 0 0 0 ${l}`:void 0}})),v=C((()=>[d.b("button"),d.bm("button",r.value),d.is("disabled",a.value),d.is("checked",l.value),d.is("focus",o.value)]));return(e,t)=>{var n,r;return T(),B("label",{class:G(p(v))},[e.trueValue||e.falseValue||e.trueLabel||e.falseLabel?ce((T(),B("input",{key:0,"onUpdate:modelValue":e=>z(i)?i.value=e:null,class:G(p(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:p(a),"true-value":null!=(n=e.trueValue)?n:e.trueLabel,"false-value":null!=(r=e.falseValue)?r:e.falseLabel,onChange:p(u),onFocus:e=>o.value=!0,onBlur:e=>o.value=!1,onClick:ue((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[xe,p(i)]]):ce((T(),B("input",{key:1,"onUpdate:modelValue":e=>z(i)?i.value=e:null,class:G(p(d).be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:p(a),value:p(s),onChange:p(u),onFocus:e=>o.value=!0,onBlur:e=>o.value=!1,onClick:ue((()=>{}),["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[xe,p(i)]]),e.$slots.default||e.label?(T(),B("span",{key:2,class:G(p(d).be("button","inner")),style:oe(p(l)?p(f):void 0)},[H(e.$slots,"default",{},(()=>[le(ae(e.label),1)]))],6)):re("v-if",!0)],2)}}})),[["__file","checkbox-button.vue"]]);const wc=Yn(s({modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Er,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},Ar(["ariaLabel"]))),xc={[lo]:e=>F(e),change:e=>F(e)},kc=O({name:"ElCheckboxGroup"});var Cc=Hr(O(u(s({},kc),{props:wc,emits:xc,setup(e,{emit:t}){const n=e,o=Io("checkbox"),{formItem:l}=Zr(),{inputId:a,isLabeledByFormItem:r}=Jr(n,{formItemContext:l}),i=e=>d(this,null,(function*(){t(lo,e),yield w(),t("change",e)})),c=C({get:()=>n.modelValue,set(e){i(e)}});return j(fc,u(s({},Ke(Y(n),["size","min","max","disabled","validateEvent","fill","textColor"])),{modelValue:c,changeEvent:i})),g((()=>n.modelValue),(()=>{n.validateEvent&&(null==l||l.validate("change").catch((e=>{})))})),(e,t)=>{var n;return T(),te(ne(e.tag),{id:p(a),class:G(p(o).b("group")),role:"group","aria-label":p(r)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":p(r)?null==(n=p(l))?void 0:n.labelId:void 0},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["id","class","aria-label","aria-labelledby"])}}})),[["__file","checkbox-group.vue"]]);const Sc=eo(hc,{CheckboxButton:yc,CheckboxGroup:Cc}),Ec=to(yc),Ic=to(Cc),Oc=Yn({modelValue:{type:[String,Number,Boolean],default:void 0},size:Er,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Tc=Yn(u(s({},Oc),{border:Boolean})),Bc={[lo]:e=>S(e)||Qt(e)||Jt(e),[ao]:e=>S(e)||Qt(e)||Jt(e)},Mc=Symbol("radioGroupKey"),_c=(e,t)=>{const n=m(),o=N(Mc,void 0),l=C((()=>!!o)),a=C((()=>tn(e.value)?e.label:e.value)),r=C({get:()=>l.value?o.modelValue:e.modelValue,set(r){l.value?o.changeEvent(r):t&&t(lo,r),n.value.checked=e.modelValue===a.value}}),i=Gr(C((()=>null==o?void 0:o.size))),s=Xr(C((()=>null==o?void 0:o.disabled))),u=m(!1),c=C((()=>s.value||l.value&&r.value!==a.value?-1:0));return mo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},C((()=>l.value&&tn(e.value)))),{radioRef:n,isGroup:l,radioGroup:o,focus:u,size:i,disabled:s,tabIndex:c,modelValue:r,actualValue:a}},Lc=O({name:"ElRadio"});var Ac=Hr(O(u(s({},Lc),{props:Tc,emits:Bc,setup(e,{emit:t}){const n=e,o=Io("radio"),{radioRef:l,radioGroup:a,focus:r,size:i,disabled:s,modelValue:u,actualValue:c}=_c(n,t);function d(){w((()=>t("change",u.value)))}return(e,t)=>{var n;return T(),B("label",{class:G([p(o).b(),p(o).is("disabled",p(s)),p(o).is("focus",p(r)),p(o).is("bordered",e.border),p(o).is("checked",p(u)===p(c)),p(o).m(p(i))])},[M("span",{class:G([p(o).e("input"),p(o).is("disabled",p(s)),p(o).is("checked",p(u)===p(c))])},[ce(M("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":e=>z(u)?u.value=e:null,class:G(p(o).e("original")),value:p(c),name:e.name||(null==(n=p(a))?void 0:n.name),disabled:p(s),checked:p(u)===p(c),type:"radio",onFocus:e=>r.value=!0,onBlur:e=>r.value=!1,onChange:d,onClick:ue((()=>{}),["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[ke,p(u)]]),M("span",{class:G(p(o).e("inner"))},null,2)],2),M("span",{class:G(p(o).e("label")),onKeydown:ue((()=>{}),["stop"])},[H(e.$slots,"default",{},(()=>[le(ae(e.label),1)]))],42,["onKeydown"])],2)}}})),[["__file","radio.vue"]]);const Rc=Yn(s({},Oc)),$c=O({name:"ElRadioButton"});var Fc=Hr(O(u(s({},$c),{props:Rc,setup(e){const t=e,n=Io("radio"),{radioRef:o,focus:l,size:a,disabled:r,modelValue:i,radioGroup:s,actualValue:u}=_c(t),c=C((()=>({backgroundColor:(null==s?void 0:s.fill)||"",borderColor:(null==s?void 0:s.fill)||"",boxShadow:(null==s?void 0:s.fill)?`-1px 0 0 0 ${s.fill}`:"",color:(null==s?void 0:s.textColor)||""})));return(e,t)=>{var d;return T(),B("label",{class:G([p(n).b("button"),p(n).is("active",p(i)===p(u)),p(n).is("disabled",p(r)),p(n).is("focus",p(l)),p(n).bm("button",p(a))])},[ce(M("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":e=>z(i)?i.value=e:null,class:G(p(n).be("button","original-radio")),value:p(u),type:"radio",name:e.name||(null==(d=p(s))?void 0:d.name),disabled:p(r),onFocus:e=>l.value=!0,onBlur:e=>l.value=!1,onClick:ue((()=>{}),["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[ke,p(i)]]),M("span",{class:G(p(n).be("button","inner")),style:oe(p(i)===p(u)?p(c):{}),onKeydown:ue((()=>{}),["stop"])},[H(e.$slots,"default",{},(()=>[le(ae(e.label),1)]))],46,["onKeydown"])],2)}}})),[["__file","radio-button.vue"]]);const Vc=Yn(s({id:{type:String,default:void 0},size:Er,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}},Ar(["ariaLabel"]))),Pc=Bc,Nc=O({name:"ElRadioGroup"}),zc=O(u(s({},Nc),{props:Vc,emits:Pc,setup(e,{emit:t}){const n=e,o=Io("radio"),l=oa(),a=m(),{formItem:r}=Zr(),{inputId:i,isLabeledByFormItem:c}=Jr(n,{formItemContext:r});y((()=>{const e=a.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const d=C((()=>n.name||l.value));return j(Mc,U(u(s({},Y(n)),{changeEvent:e=>{t(lo,e),w((()=>t("change",e)))},name:d}))),g((()=>n.modelValue),(()=>{n.validateEvent&&(null==r||r.validate("change").catch((e=>{})))})),(e,t)=>(T(),B("div",{id:p(i),ref_key:"radioGroupRef",ref:a,class:G(p(o).b("group")),role:"radiogroup","aria-label":p(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":p(c)?p(r).labelId:void 0},[H(e.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}}));var Dc=Hr(zc,[["__file","radio-group.vue"]]);const jc=eo(Ac,{RadioButton:Fc,RadioGroup:Dc}),Hc=to(Dc),qc=to(Fc),Wc=Yn({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:io},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Kc={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Uc=O({name:"ElTag"});const Yc=eo(Hr(O(u(s({},Uc),{props:Wc,emits:Kc,setup(e,{emit:t}){const n=e,o=Gr(),l=Io("tag"),a=C((()=>{const{type:e,hit:t,effect:a,closable:r,round:i}=n;return[l.b(),l.is("closable",r),l.m(e||"primary"),l.m(o.value),l.m(a),l.is("hit",t),l.is("round",i)]})),r=e=>{t("close",e)},i=e=>{t("click",e)},s=e=>{e.component.subTree.component.bum=null};return(e,t)=>e.disableTransitions?(T(),B("span",{key:0,class:G(p(a)),style:oe({backgroundColor:e.color}),onClick:i},[M("span",{class:G(p(l).e("content"))},[H(e.$slots,"default")],2),e.closable?(T(),te(p(Kr),{key:0,class:G(p(l).e("close")),onClick:ue(r,["stop"])},{default:ee((()=>[Z(p(Sn))])),_:1},8,["class","onClick"])):re("v-if",!0)],6)):(T(),te(pe,{key:1,name:`${p(l).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:s},{default:ee((()=>[M("span",{class:G(p(a)),style:oe({backgroundColor:e.color}),onClick:i},[M("span",{class:G(p(l).e("content"))},[H(e.$slots,"default")],2),e.closable?(T(),te(p(Kr),{key:0,class:G(p(l).e("close")),onClick:ue(r,["stop"])},{default:ee((()=>[Z(p(Sn))])),_:1},8,["class","onClick"])):re("v-if",!0)],6)])),_:3},8,["name"]))}})),[["__file","tag.vue"]])),Gc=Symbol("rowContextKey"),Xc=Yn({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),Zc=O({name:"ElRow"});const Jc=eo(Hr(O(u(s({},Zc),{props:Xc,setup(e){const t=e,n=Io("row"),o=C((()=>t.gutter));j(Gc,{gutter:o});const l=C((()=>{const e={};return t.gutter?(e.marginRight=e.marginLeft=`-${t.gutter/2}px`,e):e})),a=C((()=>[n.b(),n.is(`justify-${t.justify}`,"start"!==t.justify),n.is(`align-${t.align}`,!!t.align)]));return(e,t)=>(T(),te(ne(e.tag),{class:G(p(a)),style:oe(p(l))},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["class","style"]))}})),[["__file","row.vue"]])),Qc=Yn({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:[Number,Object],default:()=>({})},sm:{type:[Number,Object],default:()=>({})},md:{type:[Number,Object],default:()=>({})},lg:{type:[Number,Object],default:()=>({})},xl:{type:[Number,Object],default:()=>({})}}),ed=O({name:"ElCol"});const td=eo(Hr(O(u(s({},ed),{props:Qc,setup(e){const t=e,{gutter:n}=N(Gc,{gutter:C((()=>0))}),o=Io("col"),l=C((()=>{const e={};return n.value&&(e.paddingLeft=e.paddingRight=n.value/2+"px"),e})),a=C((()=>{const e=[];["span","offset","pull","push"].forEach((n=>{const l=t[n];Qt(l)&&("span"===n?e.push(o.b(`${t[n]}`)):l>0&&e.push(o.b(`${n}-${t[n]}`)))}));return["xs","sm","md","lg","xl"].forEach((n=>{Qt(t[n])?e.push(o.b(`${n}-${t[n]}`)):_(t[n])&&Object.entries(t[n]).forEach((([t,l])=>{e.push("span"!==t?o.b(`${n}-${t}-${l}`):o.b(`${n}-${l}`))}))})),n.value&&e.push(o.is("guttered")),[o.b(),e]}));return(e,t)=>(T(),te(ne(e.tag),{class:G(p(a)),style:oe(p(l))},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["class","style"]))}})),[["__file","col.vue"]])),nd=O({name:"ElCollapseTransition"});const od=eo(Hr(O(u(s({},nd),{setup(e){const t=Io("collapse-transition"),n=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},o={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height&&(e.dataset.elExistsHeight=e.style.height),e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){requestAnimationFrame((()=>{e.dataset.oldOverflow=e.style.overflow,e.dataset.elExistsHeight?e.style.maxHeight=e.dataset.elExistsHeight:0!==e.scrollHeight?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"}))},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){n(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){0!==e.scrollHeight&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){n(e)},leaveCancelled(e){n(e)}};return(e,n)=>(T(),te(pe,q({name:p(t).b()},Ce(o)),{default:ee((()=>[H(e.$slots,"default")])),_:3},16,["name"]))}})),[["__file","collapse-transition.vue"]])),ld=O({name:"ElContainer"});var ad=Hr(O(u(s({},ld),{props:{direction:{type:String}},setup(e){const t=e,n=Q(),o=Io("container"),l=C((()=>{if("vertical"===t.direction)return!0;if("horizontal"===t.direction)return!1;if(n&&n.default){return n.default().some((e=>{const t=e.type.name;return"ElHeader"===t||"ElFooter"===t}))}return!1}));return(e,t)=>(T(),B("section",{class:G([p(o).b(),p(o).is("vertical",p(l))])},[H(e.$slots,"default")],2))}})),[["__file","container.vue"]]);const rd=O({name:"ElAside"});var id=Hr(O(u(s({},rd),{props:{width:{type:String,default:null}},setup(e){const t=e,n=Io("aside"),o=C((()=>t.width?n.cssVarBlock({width:t.width}):{}));return(e,t)=>(T(),B("aside",{class:G(p(n).b()),style:oe(p(o))},[H(e.$slots,"default")],6))}})),[["__file","aside.vue"]]);const sd=O({name:"ElFooter"});var ud=Hr(O(u(s({},sd),{props:{height:{type:String,default:null}},setup(e){const t=e,n=Io("footer"),o=C((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>(T(),B("footer",{class:G(p(n).b()),style:oe(p(o))},[H(e.$slots,"default")],6))}})),[["__file","footer.vue"]]);const cd=O({name:"ElHeader"});var dd=Hr(O(u(s({},cd),{props:{height:{type:String,default:null}},setup(e){const t=e,n=Io("header"),o=C((()=>t.height?n.cssVarBlock({height:t.height}):{}));return(e,t)=>(T(),B("header",{class:G(p(n).b()),style:oe(p(o))},[H(e.$slots,"default")],6))}})),[["__file","header.vue"]]);const pd=O({name:"ElMain"});var fd=Hr(O(u(s({},pd),{setup(e){const t=Io("main");return(e,n)=>(T(),B("main",{class:G(p(t).b())},[H(e.$slots,"default")],2))}})),[["__file","main.vue"]]);const vd=eo(ad,{Aside:id,Footer:ud,Header:dd,Main:fd}),md=to(id);to(ud);const gd=to(dd),hd=to(fd),bd=Yn({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}});const yd=O({name:"ElOverlay",props:bd,emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:n}){const o=Io("overlay"),{onClick:l,onMousedown:a,onMouseup:r}=Jl(e.customMaskEvent?void 0:e=>{n("click",e)});return()=>e.mask?Z("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:a,onMouseup:r},[H(t,"default")],uo.STYLE|uo.CLASS|uo.PROPS,["onClick","onMouseup","onMousedown"]):Se("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[H(t,"default")])}}),wd=Symbol("dialogInjectionKey"),xd=Yn({center:Boolean,alignCenter:Boolean,closeIcon:{type:Gn},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),kd=O({name:"ElDialogContent"});var Cd=Hr(O(u(s({},kd),{props:xd,emits:{close:()=>!0},setup(e,{expose:t}){const n=e,{t:o}=xo(),{Close:l}=Xn,{dialogRef:a,headerRef:r,bodyId:i,ns:s,style:u}=N(wd),{focusTrapRef:c}=N(Cs),d=C((()=>[s.b(),s.is("fullscreen",n.fullscreen),s.is("draggable",n.draggable),s.is("align-center",n.alignCenter),{[s.m("center")]:n.center}])),f=no(c,a),v=C((()=>n.draggable)),m=C((()=>n.overflow)),{resetPosition:g}=go(a,r,v,m);return t({resetPosition:g}),(e,t)=>(T(),B("div",{ref:p(f),class:G(p(d)),style:oe(p(u)),tabindex:"-1"},[M("header",{ref_key:"headerRef",ref:r,class:G([p(s).e("header"),{"show-close":e.showClose}])},[H(e.$slots,"header",{},(()=>[M("span",{role:"heading","aria-level":e.ariaLevel,class:G(p(s).e("title"))},ae(e.title),11,["aria-level"])])),e.showClose?(T(),B("button",{key:0,"aria-label":p(o)("el.dialog.close"),class:G(p(s).e("headerbtn")),type:"button",onClick:t=>e.$emit("close")},[Z(p(Kr),{class:G(p(s).e("close"))},{default:ee((()=>[(T(),te(ne(e.closeIcon||p(l))))])),_:1},8,["class"])],10,["aria-label","onClick"])):re("v-if",!0)],2),M("div",{id:p(i),class:G(p(s).e("body"))},[H(e.$slots,"default")],10,["id"]),e.$slots.footer?(T(),B("footer",{key:0,class:G(p(s).e("footer"))},[H(e.$slots,"footer")],2)):re("v-if",!0)],6))}})),[["__file","dialog-content.vue"]]);const Sd=Yn(u(s({},xd),{appendToBody:Boolean,appendTo:{type:[String,Object],default:"body"},beforeClose:{type:Function},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}})),Ed={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[lo]:e=>Jt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Id=O({name:"ElDialog",inheritAttrs:!1});const Od=eo(Hr(O(u(s({},Id),{props:Sd,emits:Ed,setup(e,{expose:t}){const n=e,o=Q();mo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},C((()=>!!o.title)));const l=Io("dialog"),a=m(),r=m(),i=m(),{visible:s,titleId:u,bodyId:c,style:d,overlayDialogStyle:f,rendered:v,zIndex:h,afterEnter:x,afterLeave:k,beforeLeave:S,handleClose:E,onModalClick:I,onOpenAutoFocus:O,onCloseAutoFocus:B,onCloseRequested:_,onFocusoutPrevented:L}=((e,t)=>{var n;const o=b().emit,{nextZIndex:l}=ga();let a="";const r=oa(),i=oa(),s=m(!1),u=m(!1),c=m(!1),d=m(null!=(n=e.zIndex)?n:l());let p,f;const v=Fr("namespace",ko),h=C((()=>{const t={},n=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(t[`${n}-margin-top`]=e.top),e.width&&(t[`${n}-width`]=fn(e.width))),t})),x=C((()=>e.alignCenter?{display:"flex"}:{}));function k(){null==f||f(),null==p||p(),e.openDelay&&e.openDelay>0?({stop:p}=It((()=>I()),e.openDelay)):I()}function S(){null==p||p(),null==f||f(),e.closeDelay&&e.closeDelay>0?({stop:f}=It((()=>O()),e.closeDelay)):O()}function E(){e.beforeClose?e.beforeClose((function(e){e||(u.value=!0,s.value=!1)})):S()}function I(){ht&&(s.value=!0)}function O(){s.value=!1}return e.lockScroll&&Oo(s),g((()=>e.modelValue),(n=>{n?(u.value=!1,k(),c.value=!0,d.value=Ge(e.zIndex)?l():d.value++,w((()=>{o("open"),t.value&&(t.value.scrollTop=0)}))):s.value&&S()})),g((()=>e.fullscreen),(e=>{t.value&&(e?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)})),y((()=>{e.modelValue&&(s.value=!0,c.value=!0,k())})),{afterEnter:function(){o("opened")},afterLeave:function(){o("closed"),o(lo,!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){o("close")},handleClose:E,onModalClick:function(){e.closeOnClickModal&&E()},close:S,doClose:O,onOpenAutoFocus:function(){o("openAutoFocus")},onCloseAutoFocus:function(){o("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&E()},onFocusoutPrevented:function(e){var t;"pointer"===(null==(t=e.detail)?void 0:t.focusReason)&&e.preventDefault()},titleId:r,bodyId:i,closed:u,style:h,overlayDialogStyle:x,rendered:c,visible:s,zIndex:d}})(n,a);j(wd,{dialogRef:a,headerRef:r,bodyId:c,ns:l,rendered:v,style:d});const A=Jl(I),R=C((()=>n.draggable&&!n.fullscreen));return t({visible:s,dialogContentRef:i,resetPosition:()=>{var e;null==(e=i.value)||e.resetPosition()}}),(e,t)=>(T(),te(p(lu),{to:e.appendTo,disabled:"body"===e.appendTo&&!e.appendToBody},{default:ee((()=>[Z(pe,{name:"dialog-fade",onAfterEnter:p(x),onAfterLeave:p(k),onBeforeLeave:p(S),persisted:""},{default:ee((()=>[ce(Z(p(yd),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":p(h)},{default:ee((()=>[M("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:p(u),"aria-describedby":p(c),class:G(`${p(l).namespace.value}-overlay-dialog`),style:oe(p(f)),onClick:p(A).onClick,onMousedown:p(A).onMousedown,onMouseup:p(A).onMouseup},[Z(p(Vs),{loop:"",trapped:p(s),"focus-start-el":"container",onFocusAfterTrapped:p(O),onFocusAfterReleased:p(B),onFocusoutPrevented:p(L),onReleaseRequested:p(_)},{default:ee((()=>[p(v)?(T(),te(Cd,q({key:0,ref_key:"dialogContentRef",ref:i},e.$attrs,{center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:p(R),overflow:e.overflow,fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:p(E)}),Ee({header:ee((()=>[e.$slots.title?H(e.$slots,"title",{key:1}):H(e.$slots,"header",{key:0,close:p(E),titleId:p(u),titleClass:p(l).e("title")})])),default:ee((()=>[H(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:ee((()=>[H(e.$slots,"footer")]))}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):re("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])])),_:3},8,["mask","overlay-class","z-index"]),[[de,p(s)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])])),_:3},8,["to","disabled"]))}})),[["__file","dialog.vue"]])),Td=Yn({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:String,default:"solid"}}),Bd=O({name:"ElDivider"});const Md=eo(Hr(O(u(s({},Bd),{props:Td,setup(e){const t=e,n=Io("divider"),o=C((()=>n.cssVar({"border-style":t.borderStyle})));return(e,t)=>(T(),B("div",{class:G([p(n).b(),p(n).m(e.direction)]),style:oe(p(o)),role:"separator"},[e.$slots.default&&"vertical"!==e.direction?(T(),B("div",{key:0,class:G([p(n).e("text"),p(n).is(e.contentPosition)])},[H(e.$slots,"default")],2)):re("v-if",!0)],6))}})),[["__file","divider.vue"]]));var _d=Hr(O({inheritAttrs:!1}),[["render",function(e,t,n,o,l,a){return H(e.$slots,"default")}],["__file","collection.vue"]]);var Ld=Hr(O({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,n,o,l,a){return H(e.$slots,"default")}],["__file","collection-item.vue"]]);const Ad="data-el-collection-item",Rd=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),l=Symbol(n),a=u(s({},_d),{name:t,setup(){const e=m(null),t=new Map;j(o,{itemMap:t,getItems:()=>{const n=p(e);if(!n)return[];const o=Array.from(n.querySelectorAll(`[${Ad}]`));return[...t.values()].sort(((e,t)=>o.indexOf(e.ref)-o.indexOf(t.ref)))},collectionRef:e})}}),r=u(s({},Ld),{name:n,setup(e,{attrs:t}){const n=m(null),a=N(o,void 0);j(l,{collectionItemRef:n}),y((()=>{const e=p(n);e&&a.itemMap.set(e,s({ref:e},t))})),P((()=>{const e=p(n);a.itemMap.delete(e)}))}});return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:l,ElCollection:a,ElCollectionItem:r}},$d=Yn({style:{type:[String,Array,Object]},currentTabId:{type:String},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:String},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Fd,ElCollectionItem:Vd,COLLECTION_INJECTION_KEY:Pd,COLLECTION_ITEM_INJECTION_KEY:Nd}=Rd("RovingFocusGroup"),zd=Symbol("elRovingFocusGroup"),Dd=Symbol("elRovingFocusGroupItem"),jd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Hd=e=>{const{activeElement:t}=document;for(const n of e){if(n===t)return;if(n.focus(),t!==document.activeElement)return}},qd="currentTabIdChange",Wd="rovingFocusGroup.entryFocus",Kd={bubbles:!1,cancelable:!0},Ud=O({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:$d,emits:[qd,"entryFocus"],setup(e,{emit:t}){var n;const o=m(null!=(n=e.currentTabId||e.defaultCurrentTabId)?n:null),l=m(!1),a=m(!1),r=m(null),{getItems:i}=N(Pd,void 0),s=C((()=>[{outline:"none"},e.style])),u=rt((t=>{var n;null==(n=e.onMousedown)||n.call(e,t)}),(()=>{a.value=!0})),c=rt((t=>{var n;null==(n=e.onFocus)||n.call(e,t)}),(e=>{const t=!p(a),{target:n,currentTarget:r}=e;if(n===r&&t&&!p(l)){const e=new Event(Wd,Kd);if(null==r||r.dispatchEvent(e),!e.defaultPrevented){const e=i().filter((e=>e.focusable)),t=[e.find((e=>e.active)),e.find((e=>e.id===p(o))),...e].filter(Boolean).map((e=>e.ref));Hd(t)}}a.value=!1})),d=rt((t=>{var n;null==(n=e.onBlur)||n.call(e,t)}),(()=>{l.value=!1}));j(zd,{currentTabbedId:h(o),loop:W(e,"loop"),tabIndex:C((()=>p(l)?-1:0)),rovingFocusGroupRef:r,rovingFocusGroupRootStyle:s,orientation:W(e,"orientation"),dir:W(e,"dir"),onItemFocus:e=>{t(qd,e)},onItemShiftTab:()=>{l.value=!0},onBlur:d,onFocus:c,onMousedown:u}),g((()=>e.currentTabId),(e=>{o.value=null!=e?e:null})),Mt(r,Wd,((...e)=>{t("entryFocus",...e)}))}});var Yd=Hr(O({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Fd,ElRovingFocusGroupImpl:Hr(Ud,[["render",function(e,t,n,o,l,a){return H(e.$slots,"default")}],["__file","roving-focus-group-impl.vue"]])}}),[["render",function(e,t,n,o,l,a){const r=Ie("el-roving-focus-group-impl"),i=Ie("el-focus-group-collection");return T(),te(i,null,{default:ee((()=>[Z(r,Oe(Te(e.$attrs)),{default:ee((()=>[H(e.$slots,"default")])),_:3},16)])),_:3})}],["__file","roving-focus-group.vue"]]);var Gd=Hr(O({components:{ElRovingFocusCollectionItem:Vd},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:l,onItemShiftTab:a}=N(zd,void 0),{getItems:r}=N(Pd,void 0),i=oa(),s=m(null),u=rt((e=>{t("mousedown",e)}),(t=>{e.focusable?l(p(i)):t.preventDefault()})),c=rt((e=>{t("focus",e)}),(()=>{l(p(i))})),d=rt((e=>{t("keydown",e)}),(e=>{const{key:t,shiftKey:n,target:l,currentTarget:i}=e;if(t===oo.tab&&n)return void a();if(l!==i)return;const s=(e=>{const t=e.key;return jd[t]})(e);if(s){e.preventDefault();let t=r().filter((e=>e.focusable)).map((e=>e.ref));switch(s){case"last":t.reverse();break;case"prev":case"next":{"prev"===s&&t.reverse();const e=t.indexOf(i);t=o.value?(c=e+1,(u=t).map(((e,t)=>u[(t+c)%u.length]))):t.slice(e+1);break}}w((()=>{Hd(t)}))}var u,c})),f=C((()=>n.value===p(i)));return j(Dd,{rovingFocusGroupItemRef:s,tabIndex:C((()=>p(f)?0:-1)),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:i,handleKeydown:d,handleFocus:c,handleMousedown:u}}}),[["render",function(e,t,n,o,l,a){const r=Ie("el-roving-focus-collection-item");return T(),te(r,{id:e.id,focusable:e.focusable,active:e.active},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["id","focusable","active"])}],["__file","roving-focus-item.vue"]]);const Xd=Yn({trigger:Ys.trigger,effect:u(s({},Us.effect),{default:"light"}),type:{type:String},placement:{type:String,default:"bottom"},popperOptions:{type:Object,default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:[Number,String],default:0},maxHeight:{type:[Number,String],default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:Object},teleported:Us.teleported}),Zd=Yn({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Gn}}),Jd=Yn({onKeydown:{type:Function}}),Qd=[oo.up,oo.pageUp,oo.end],ep=[...[oo.down,oo.pageDown,oo.home],...Qd],{ElCollection:tp,ElCollectionItem:np,COLLECTION_INJECTION_KEY:op,COLLECTION_ITEM_INJECTION_KEY:lp}=Rd("Dropdown"),ap=Symbol("elDropdown"),{ButtonGroup:rp}=zu;var ip=Hr(O({name:"ElDropdown",components:{ElButton:zu,ElButtonGroup:rp,ElScrollbar:ns,ElDropdownCollection:tp,ElTooltip:su,ElRovingFocusGroup:Yd,ElOnlyChild:ds,ElIcon:Kr,ArrowDown:gn},props:Xd,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=b(),o=Io("dropdown"),{t:l}=xo(),a=m(),r=m(),i=m(null),s=m(null),u=m(null),c=m(null),d=m(!1),f=[oo.enter,oo.space,oo.down],v=C((()=>({maxHeight:fn(e.maxHeight)}))),h=C((()=>[o.m(S.value)])),y=C((()=>Ue(e.trigger))),w=oa().value,x=C((()=>e.id||w));function k(){var e;null==(e=i.value)||e.onClose()}g([a,y],(([e,t],[n])=>{var o,l,a;(null==(o=null==n?void 0:n.$el)?void 0:o.removeEventListener)&&n.$el.removeEventListener("pointerenter",E),(null==(l=null==e?void 0:e.$el)?void 0:l.removeEventListener)&&e.$el.removeEventListener("pointerenter",E),(null==(a=null==e?void 0:e.$el)?void 0:a.addEventListener)&&t.includes("hover")&&e.$el.addEventListener("pointerenter",E)}),{immediate:!0}),P((()=>{var e,t;(null==(t=null==(e=a.value)?void 0:e.$el)?void 0:t.removeEventListener)&&a.value.$el.removeEventListener("pointerenter",E)}));const S=Gr();function E(){var e,t;null==(t=null==(e=a.value)?void 0:e.$el)||t.focus()}j(ap,{contentRef:s,role:C((()=>e.role)),triggerId:x,isUsingKeyboard:d,onItemEnter:function(){},onItemLeave:function(){const e=p(s);y.value.includes("hover")&&(null==e||e.focus()),c.value=null}}),j("elDropdown",{instance:n,dropdownSize:S,handleClick:function(){k()},commandHandler:function(...e){t("command",...e)},trigger:W(e,"trigger"),hideOnClick:W(e,"hideOnClick")});return{t:l,ns:o,scrollbar:u,wrapStyle:v,dropdownTriggerKls:h,dropdownSize:S,triggerId:x,triggerKeys:f,currentTabId:c,handleCurrentTabIdChange:function(e){c.value=e},handlerMainButtonClick:e=>{t("click",e)},handleEntryFocus:function(e){d.value||(e.preventDefault(),e.stopImmediatePropagation())},handleClose:k,handleOpen:function(){var e;null==(e=i.value)||e.onOpen()},handleBeforeShowTooltip:function(){t("visible-change",!0)},handleShowTooltip:function(e){"keydown"===(null==e?void 0:e.type)&&s.value.focus()},handleBeforeHideTooltip:function(){t("visible-change",!1)},onFocusAfterTrapped:e=>{var t,n;e.preventDefault(),null==(n=null==(t=s.value)?void 0:t.focus)||n.call(t,{preventScroll:!0})},popperRef:i,contentRef:s,triggeringElementRef:a,referenceElementRef:r}}}),[["render",function(e,t,n,o,l,a){var r;const i=Ie("el-dropdown-collection"),s=Ie("el-roving-focus-group"),u=Ie("el-scrollbar"),c=Ie("el-only-child"),d=Ie("el-tooltip"),p=Ie("el-button"),f=Ie("arrow-down"),v=Ie("el-icon"),m=Ie("el-button-group");return T(),B("div",{class:G([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Z(d,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":"hover"===e.trigger?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":null==(r=e.referenceElementRef)?void 0:r.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":"hover"===e.trigger?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ee({content:ee((()=>[Z(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ee((()=>[Z(s,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:ee((()=>[Z(i,null,{default:ee((()=>[H(e.$slots,"dropdown")])),_:3})])),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])])),_:3},8,["wrap-style","view-class"])])),_:2},[e.splitButton?void 0:{name:"default",fn:ee((()=>[Z(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["id","tabindex"])]))}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(T(),te(m,{key:0},{default:ee((()=>[Z(p,q({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ee((()=>[H(e.$slots,"default")])),_:3},16,["size","type","disabled","tabindex","onClick"]),Z(p,q({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ee((()=>[Z(v,{class:G(e.ns.e("icon"))},{default:ee((()=>[Z(f)])),_:1},8,["class"])])),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])])),_:3})):re("v-if",!0)],2)}],["__file","dropdown.vue"]]);const sp=O({name:"DropdownItemImpl",components:{ElIcon:Kr},props:Zd,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Io("dropdown"),{role:o}=N(ap,void 0),{collectionItemRef:l}=N(lp,void 0),{collectionItemRef:a}=N(Nd,void 0),{rovingFocusGroupItemRef:r,tabIndex:i,handleFocus:s,handleKeydown:u,handleMousedown:c}=N(Dd,void 0),d=no(l,a,r),p=C((()=>"menu"===o.value?"menuitem":"navigation"===o.value?"link":"button")),f=rt((e=>{const{code:n}=e;if(n===oo.enter||n===oo.space)return e.preventDefault(),e.stopImmediatePropagation(),t("clickimpl",e),!0}),u);return{ns:n,itemRef:d,dataset:{[Ad]:""},role:p,tabIndex:i,handleFocus:s,handleKeydown:f,handleMousedown:c}}});const up=()=>{const e=N("elDropdown",{}),t=C((()=>null==e?void 0:e.dropdownSize));return{elDropdown:e,_elDropdownSize:t}};var cp=Hr(O({name:"ElDropdownItem",components:{ElDropdownCollectionItem:np,ElRovingFocusItem:Gd,ElDropdownItemImpl:Hr(sp,[["render",function(e,t,n,o,l,a){const r=Ie("el-icon");return T(),B(J,null,[e.divided?(T(),B("li",q({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):re("v-if",!0),M("li",q({ref:e.itemRef},s(s({},e.dataset),e.$attrs),{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t=>e.$emit("clickimpl",t),onFocus:e.handleFocus,onKeydown:ue(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:t=>e.$emit("pointermove",t),onPointerleave:t=>e.$emit("pointerleave",t)}),[e.icon?(T(),te(r,{key:0},{default:ee((()=>[(T(),te(ne(e.icon)))])),_:1})):re("v-if",!0),H(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}],["__file","dropdown-item-impl.vue"]])},inheritAttrs:!1,props:Zd,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=up(),l=b(),a=m(null),r=C((()=>{var e,t;return null!=(t=null==(e=p(a))?void 0:e.textContent)?t:""})),{onItemEnter:i,onItemLeave:u}=N(ap,void 0),c=rt((e=>(t("pointermove",e),e.defaultPrevented)),it((t=>{if(e.disabled)return void u(t);const n=t.currentTarget;n===document.activeElement||n.contains(document.activeElement)||(i(t),t.defaultPrevented||null==n||n.focus())}))),d=rt((e=>(t("pointerleave",e),e.defaultPrevented)),it(u));return{handleClick:rt((n=>{if(!e.disabled)return t("click",n),"keydown"!==n.type&&n.defaultPrevented}),(t=>{var n,a,r;e.disabled?t.stopImmediatePropagation():((null==(n=null==o?void 0:o.hideOnClick)?void 0:n.value)&&(null==(a=o.handleClick)||a.call(o)),null==(r=o.commandHandler)||r.call(o,e.command,l,t))})),handlePointerMove:c,handlePointerLeave:d,textContent:r,propsAndAttrs:C((()=>s(s({},e),n)))}}}),[["render",function(e,t,n,o,l,a){var r;const i=Ie("el-dropdown-item-impl"),s=Ie("el-roving-focus-item"),u=Ie("el-dropdown-collection-item");return T(),te(u,{disabled:e.disabled,"text-value":null!=(r=e.textValue)?r:e.textContent},{default:ee((()=>[Z(s,{focusable:!e.disabled},{default:ee((()=>[Z(i,q(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ee((()=>[H(e.$slots,"default")])),_:3},16,["onPointerleave","onPointermove","onClickimpl"])])),_:3},8,["focusable"])])),_:3},8,["disabled","text-value"])}],["__file","dropdown-item.vue"]]);var dp=Hr(O({name:"ElDropdownMenu",props:Jd,setup(e){const t=Io("dropdown"),{_elDropdownSize:n}=up(),o=n.value,{focusTrapRef:l,onKeydown:a}=N(Cs,void 0),{contentRef:r,role:i,triggerId:s}=N(ap,void 0),{collectionRef:u,getItems:c}=N(op,void 0),{rovingFocusGroupRef:d,rovingFocusGroupRootStyle:f,tabIndex:v,onBlur:m,onFocus:g,onMousedown:h}=N(zd,void 0),{collectionRef:b}=N(Pd,void 0),y=C((()=>[t.b("menu"),t.bm("menu",null==o?void 0:o.value)])),w=no(r,u,l,d,b),x=rt((t=>{var n;null==(n=e.onKeydown)||n.call(e,t)}),(e=>{const{currentTarget:t,code:n,target:o}=e;if(t.contains(o),oo.tab===n&&e.stopImmediatePropagation(),e.preventDefault(),o!==p(r)||!ep.includes(n))return;const l=c().filter((e=>!e.disabled)).map((e=>e.ref));Qd.includes(n)&&l.reverse(),Hd(l)}));return{size:o,rovingFocusGroupRootStyle:f,tabIndex:v,dropdownKls:y,role:i,triggerId:s,dropdownListWrapperRef:w,handleKeydown:e=>{x(e),a(e)},onBlur:m,onFocus:g,onMousedown:h}}}),[["render",function(e,t,n,o,l,a){return T(),B("ul",{ref:e.dropdownListWrapperRef,class:G(e.dropdownKls),style:oe(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:ue(e.handleKeydown,["self"]),onMousedown:ue(e.onMousedown,["self"])},[H(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}],["__file","dropdown-menu.vue"]]);const pp=eo(ip,{DropdownItem:cp,DropdownMenu:dp}),fp=to(cp),vp=to(dp),mp=Yn({urlList:{type:Array,default:()=>[]},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:String}}),gp={close:()=>!0,switch:e=>Qt(e),rotate:e=>Qt(e)},hp=O({name:"ElImageViewer"});const bp=eo(Hr(O(u(s({},hp),{props:mp,emits:gp,setup(e,{expose:t,emit:n}){var o;const l=e,a={CONTAIN:{name:"contain",icon:Be(On)},ORIGINAL:{name:"original",icon:Be(Pn)}},{t:r}=xo(),i=Io("image-viewer"),{nextZIndex:c}=ga(),d=m(),f=m([]),v=Me(),h=m(!0),b=m(l.initialIndex),k=x(a.CONTAIN),S=m({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),E=m(null!=(o=l.zIndex)?o:c()),I=C((()=>{const{urlList:e}=l;return e.length<=1})),O=C((()=>0===b.value)),_=C((()=>b.value===l.urlList.length-1)),L=C((()=>l.urlList[b.value])),A=C((()=>[i.e("btn"),i.e("prev"),i.is("disabled",!l.infinite&&O.value)])),R=C((()=>[i.e("btn"),i.e("next"),i.is("disabled",!l.infinite&&_.value)])),$=C((()=>{const{scale:e,deg:t,offsetX:n,offsetY:o,enableTransition:l}=S.value;let r=n/e,i=o/e;const s=t*Math.PI/180,u=Math.cos(s),c=Math.sin(s);r=r*u+i*c,i=i*u-n/e*c;const d={transform:`scale(${e}) rotate(${t}deg) translate(${r}px, ${i}px)`,transition:l?"transform .3s":""};return k.value.name===a.CONTAIN.name&&(d.maxWidth=d.maxHeight="100%"),d}));function F(){v.stop(),n("close")}function V(){h.value=!1}function P(e){h.value=!1,e.target.alt=r("el.image.error")}function N(e){if(h.value||0!==e.button||!d.value)return;S.value.enableTransition=!1;const{offsetX:t,offsetY:n}=S.value,o=e.pageX,l=e.pageY,a=Xe((e=>{S.value=u(s({},S.value),{offsetX:t+e.pageX-o,offsetY:n+e.pageY-l})})),r=Mt(document,"mousemove",a);Mt(document,"mouseup",(()=>{r()})),e.preventDefault()}function z(){S.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function D(){if(h.value)return;const e=on(a),t=Object.values(a),n=k.value.name,o=(t.findIndex((e=>e.name===n))+1)%e.length;k.value=a[e[o]],z()}function j(e){const t=l.urlList.length;b.value=(e+t)%t}function q(){O.value&&!l.infinite||j(b.value-1)}function W(){_.value&&!l.infinite||j(b.value+1)}function K(e,t={}){if(h.value)return;const{minScale:o,maxScale:a}=l,{zoomRate:r,rotateDeg:i,enableTransition:u}=s({zoomRate:l.zoomRate,rotateDeg:90,enableTransition:!0},t);switch(e){case"zoomOut":S.value.scale>o&&(S.value.scale=Number.parseFloat((S.value.scale/r).toFixed(3)));break;case"zoomIn":S.value.scale{w((()=>{const e=f.value[0];(null==e?void 0:e.complete)||(h.value=!0)}))})),g(b,(e=>{z(),n("switch",e)})),y((()=>{var e,t;!function(){const e=Xe((e=>{switch(e.code){case oo.esc:l.closeOnPressEscape&&F();break;case oo.space:D();break;case oo.left:q();break;case oo.up:K("zoomIn");break;case oo.right:W();break;case oo.down:K("zoomOut")}})),t=Xe((e=>{K((e.deltaY||e.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:l.zoomRate,enableTransition:!1})}));v.run((()=>{Mt(document,"keydown",e),Mt(document,"wheel",t)}))}(),null==(t=null==(e=d.value)?void 0:e.focus)||t.call(e)})),t({setActiveItem:j}),(e,t)=>(T(),te(p(lu),{to:"body",disabled:!e.teleported},{default:ee((()=>[Z(pe,{name:"viewer-fade",appear:""},{default:ee((()=>[M("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:G(p(i).e("wrapper")),style:oe({zIndex:E.value})},[M("div",{class:G(p(i).e("mask")),onClick:ue((t=>e.hideOnClickModal&&F()),["self"])},null,10,["onClick"]),re(" CLOSE "),M("span",{class:G([p(i).e("btn"),p(i).e("close")]),onClick:F},[Z(p(Kr),null,{default:ee((()=>[Z(p(Sn))])),_:1})],2),re(" ARROW "),p(I)?re("v-if",!0):(T(),B(J,{key:0},[M("span",{class:G(p(A)),onClick:q},[Z(p(Kr),null,{default:ee((()=>[Z(p(hn))])),_:1})],2),M("span",{class:G(p(R)),onClick:W},[Z(p(Kr),null,{default:ee((()=>[Z(p(bn))])),_:1})],2)],64)),re(" ACTIONS "),M("div",{class:G([p(i).e("btn"),p(i).e("actions")])},[M("div",{class:G(p(i).e("actions__inner"))},[Z(p(Kr),{onClick:e=>K("zoomOut")},{default:ee((()=>[Z(p(Wn))])),_:1},8,["onClick"]),Z(p(Kr),{onClick:e=>K("zoomIn")},{default:ee((()=>[Z(p(qn))])),_:1},8,["onClick"]),M("i",{class:G(p(i).e("actions__divider"))},null,2),Z(p(Kr),{onClick:D},{default:ee((()=>[(T(),te(ne(p(k).icon)))])),_:1}),M("i",{class:G(p(i).e("actions__divider"))},null,2),Z(p(Kr),{onClick:e=>K("anticlockwise")},{default:ee((()=>[Z(p(Fn))])),_:1},8,["onClick"]),Z(p(Kr),{onClick:e=>K("clockwise")},{default:ee((()=>[Z(p(Vn))])),_:1},8,["onClick"])],2)],2),re(" CANVAS "),M("div",{class:G(p(i).e("canvas"))},[(T(!0),B(J,null,ye(e.urlList,((t,n)=>ce((T(),B("img",{ref_for:!0,ref:e=>f.value[n]=e,key:t,src:t,style:oe(p($)),class:G(p(i).e("img")),crossorigin:e.crossorigin,onLoad:V,onError:P,onMousedown:N},null,46,["src","crossorigin"])),[[de,n===b.value]]))),128))],2),H(e.$slots,"default")],6)])),_:3})])),_:3},8,["disabled"]))}})),[["__file","image-viewer.vue"]])),yp=Yn({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:[String,Object]},previewSrcList:{type:Array,default:()=>[]},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:String}}),wp={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Qt(e),close:()=>!0,show:()=>!0},xp=O({name:"ElImage",inheritAttrs:!1});const kp=eo(Hr(O(u(s({},xp),{props:yp,emits:wp,setup(e,{emit:t}){const n=e;let o="";const{t:l}=xo(),a=Io("image"),r=se(),i=C((()=>We(Object.entries(r).filter((([e])=>/^(data-|on[A-Z])/i.test(e)||["id","style"].includes(e)))))),s=vo({excludeListeners:!0,excludeKeys:C((()=>Object.keys(i.value)))}),u=m(),c=m(!1),f=m(!0),v=m(!1),h=m(),b=m(),x=ht&&"loading"in HTMLImageElement.prototype;let k,E;const I=C((()=>[a.e("inner"),_.value&&a.e("preview"),f.value&&a.is("loading")])),O=C((()=>{const{fit:e}=n;return ht&&e?{objectFit:e}:{}})),_=C((()=>{const{previewSrcList:e}=n;return Array.isArray(e)&&e.length>0})),L=C((()=>{const{previewSrcList:e,initialIndex:t}=n;let o=t;return t>e.length-1&&(o=0),o})),A=C((()=>"eager"!==n.loading&&(!x&&"lazy"===n.loading||n.lazy))),R=()=>{ht&&(f.value=!0,c.value=!1,u.value=n.src)};function $(e){f.value=!1,c.value=!1,t("load",e)}function F(e){f.value=!1,c.value=!0,t("error",e)}function V(){((e,t)=>{if(!ht||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return o=t instanceof Element?t.getBoundingClientRect():{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topo.top&&n.right>o.left&&n.left{if(!ht)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(vn(n,t))return n;n=n.parentNode}return n})(h.value)),b.value&&(k=Mt(b,"scroll",P),setTimeout((()=>V()),100))}))}function z(){ht&&b.value&&P&&(null==k||k(),b.value=void 0)}function D(e){if(e.ctrlKey)return e.deltaY<0||e.deltaY>0?(e.preventDefault(),!1):void 0}function j(){_.value&&(E=Mt("wheel",D,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",v.value=!0,t("show"))}function W(){null==E||E(),document.body.style.overflow=o,v.value=!1,t("close")}function K(e){t("switch",e)}return g((()=>n.src),(()=>{A.value?(f.value=!0,c.value=!1,z(),N()):R()})),y((()=>{A.value?N():R()})),(e,t)=>(T(),B("div",q({ref_key:"container",ref:h},p(i),{class:[p(a).b(),e.$attrs.class]}),[c.value?H(e.$slots,"error",{key:0},(()=>[M("div",{class:G(p(a).e("error"))},ae(p(l)("el.image.error")),3)])):(T(),B(J,{key:1},[void 0!==u.value?(T(),B("img",q({key:0},p(s),{src:u.value,loading:e.loading,style:p(O),class:p(I),crossorigin:e.crossorigin,onClick:j,onLoad:$,onError:F}),null,16,["src","loading","crossorigin"])):re("v-if",!0),f.value?(T(),B("div",{key:1,class:G(p(a).e("wrapper"))},[H(e.$slots,"placeholder",{},(()=>[M("div",{class:G(p(a).e("placeholder"))},null,2)]))],2)):re("v-if",!0)],64)),p(_)?(T(),B(J,{key:2},[v.value?(T(),te(p(bp),{key:0,"z-index":e.zIndex,"initial-index":p(L),infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"url-list":e.previewSrcList,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:W,onSwitch:K},{default:ee((()=>[e.$slots.viewer?(T(),B("div",{key:0},[H(e.$slots,"viewer")])):re("v-if",!0)])),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}})),[["__file","image.vue"]])),Cp=Yn(s({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Er,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||Qt(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}},Ar(["ariaLabel"]))),Sp={[ao]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ro]:e=>Qt(e)||je(e),[lo]:e=>Qt(e)||je(e)},Ep=O({name:"ElInputNumber"});const Ip=eo(Hr(O(u(s({},Ep),{props:Cp,emits:Sp,setup(e,{expose:t,emit:n}){const o=e,{t:l}=xo(),a=Io("input-number"),r=m(),i=U({currentValue:o.modelValue,userInput:null}),{formItem:s}=Zr(),u=C((()=>Qt(o.modelValue)&&o.modelValue<=o.min)),c=C((()=>Qt(o.modelValue)&&o.modelValue>=o.max)),d=C((()=>{const e=x(o.step);return Zt(o.precision)?Math.max(x(o.modelValue),e):(o.precision,o.precision)})),f=C((()=>o.controls&&"right"===o.controlsPosition)),v=Gr(),h=Xr(),b=C((()=>{if(null!==i.userInput)return i.userInput;let e=i.currentValue;if(je(e))return"";if(Qt(e)){if(Number.isNaN(e))return"";Zt(o.precision)||(e=e.toFixed(o.precision))}return e})),w=(e,t)=>{if(Zt(t)&&(t=d.value),0===t)return Math.round(e);let n=String(e);const o=n.indexOf(".");if(-1===o)return e;if(!n.replace(".","").split("")[o+t])return e;const l=n.length;return"5"===n.charAt(l-1)&&(n=`${n.slice(0,Math.max(0,l-1))}6`),Number.parseFloat(Number(n).toFixed(t))},x=e=>{if(je(e))return 0;const t=e.toString(),n=t.indexOf(".");let o=0;return-1!==n&&(o=t.length-n-1),o},k=(e,t=1)=>Qt(e)?w(e+o.step*t):i.currentValue,E=()=>{if(o.readonly||h.value||c.value)return;const e=Number(b.value)||0,t=k(e);M(t),n(ro,i.currentValue),$()},I=()=>{if(o.readonly||h.value||u.value)return;const e=Number(b.value)||0,t=k(e,-1);M(t),n(ro,i.currentValue),$()},O=(e,t)=>{const{max:l,min:a,step:r,precision:i,stepStrictly:s,valueOnClear:u}=o;ll||cl?l:a,t&&n(lo,c)),c},M=(e,t=!0)=>{var l;const a=i.currentValue,r=O(e);t?a===r&&e||(i.userInput=null,n(lo,r),a!==r&&n(ao,r,a),o.validateEvent&&(null==(l=null==s?void 0:s.validate)||l.call(s,"change").catch((e=>{}))),i.currentValue=r):n(lo,r)},_=e=>{i.userInput=e;const t=""===e?null:Number(e);n(ro,t),M(t,!1)},L=e=>{const t=""!==e?Number(e):"";(Qt(t)&&!Number.isNaN(t)||""===e)&&M(t),$(),i.userInput=null},A=e=>{n("focus",e)},R=e=>{var t;i.userInput=null,n("blur",e),o.validateEvent&&(null==(t=null==s?void 0:s.validate)||t.call(s,"blur").catch((e=>{})))},$=()=>{i.currentValue!==o.modelValue&&(i.currentValue=o.modelValue)},F=e=>{document.activeElement===e.target&&e.preventDefault()};return g((()=>o.modelValue),((e,t)=>{const n=O(e,!0);null===i.userInput&&n!==t&&(i.currentValue=n)}),{immediate:!0}),y((()=>{var e;const{min:t,max:l,modelValue:a}=o,s=null==(e=r.value)?void 0:e.input;if(s.setAttribute("role","spinbutton"),Number.isFinite(l)?s.setAttribute("aria-valuemax",String(l)):s.removeAttribute("aria-valuemax"),Number.isFinite(t)?s.setAttribute("aria-valuemin",String(t)):s.removeAttribute("aria-valuemin"),s.setAttribute("aria-valuenow",i.currentValue||0===i.currentValue?String(i.currentValue):""),s.setAttribute("aria-disabled",String(h.value)),!Qt(a)&&null!=a){let e=Number(a);Number.isNaN(e)&&(e=null),n(lo,e)}s.addEventListener("wheel",F,{passive:!1})})),X((()=>{var e,t;const n=null==(e=r.value)?void 0:e.input;null==n||n.setAttribute("aria-valuenow",`${null!=(t=i.currentValue)?t:""}`)})),t({focus:()=>{var e,t;null==(t=null==(e=r.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=r.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(T(),B("div",{class:G([p(a).b(),p(a).m(p(v)),p(a).is("disabled",p(h)),p(a).is("without-controls",!e.controls),p(a).is("controls-right",p(f))]),onDragstart:ue((()=>{}),["prevent"])},[e.controls?ce((T(),B("span",{key:0,role:"button","aria-label":p(l)("el.inputNumber.decrease"),class:G([p(a).e("decrease"),p(a).is("disabled",p(u))]),onKeydown:_e(I,["enter"])},[H(e.$slots,"decrease-icon",{},(()=>[Z(p(Kr),null,{default:ee((()=>[p(f)?(T(),te(p(gn),{key:0})):(T(),te(p(An),{key:1}))])),_:1})]))],42,["aria-label","onKeydown"])),[[p(Uu),I]]):re("v-if",!0),e.controls?ce((T(),B("span",{key:1,role:"button","aria-label":p(l)("el.inputNumber.increase"),class:G([p(a).e("increase"),p(a).is("disabled",p(c))]),onKeydown:_e(E,["enter"])},[H(e.$slots,"increase-icon",{},(()=>[Z(p(Kr),null,{default:ee((()=>[p(f)?(T(),te(p(yn),{key:0})):(T(),te(p($n),{key:1}))])),_:1})]))],42,["aria-label","onKeydown"])),[[p(Uu),E]]):re("v-if",!0),Z(p(Ki),{id:e.id,ref_key:"input",ref:r,type:"number",step:e.step,"model-value":p(b),placeholder:e.placeholder,readonly:e.readonly,disabled:p(h),size:p(v),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,onKeydown:[_e(ue(E,["prevent"]),["up"]),_e(ue(I,["prevent"]),["down"])],onBlur:R,onFocus:A,onInput:_,onChange:L},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}})),[["__file","input-number.vue"]]));let Op=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(t=>{t.addEventListener("keydown",(t=>{let n=!1;switch(t.code){case oo.down:this.gotoSubIndex(this.subIndex+1),n=!0;break;case oo.up:this.gotoSubIndex(this.subIndex-1),n=!0;break;case oo.tab:at(e,"mouseleave");break;case oo.enter:case oo.space:n=!0,t.currentTarget.click()}return n&&(t.preventDefault(),t.stopPropagation()),!1}))}))}},Tp=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new Op(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",(e=>{let t=!1;switch(e.code){case oo.down:at(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),t=!0;break;case oo.up:at(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),t=!0;break;case oo.tab:at(e.currentTarget,"mouseleave");break;case oo.enter:case oo.space:t=!0,e.currentTarget.click()}t&&e.preventDefault()}))}},Bp=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach((t=>{1===t.nodeType&&new Tp(t,e)}))}};var Mp=Hr(O({name:"ElMenuCollapseTransition",setup(){const e=Io("menu");return{listeners:{onBeforeEnter:e=>e.style.opacity="0.2",onEnter(t,n){cn(t,`${e.namespace.value}-opacity-transition`),t.style.opacity="1",n()},onAfterEnter(t){dn(t,`${e.namespace.value}-opacity-transition`),t.style.opacity=""},onBeforeLeave(t){t.dataset||(t.dataset={}),un(t,e.m("collapse"))?(dn(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),cn(t,e.m("collapse"))):(cn(t,e.m("collapse")),t.dataset.oldOverflow=t.style.overflow,t.dataset.scrollWidth=t.clientWidth.toString(),dn(t,e.m("collapse"))),t.style.width=`${t.scrollWidth}px`,t.style.overflow="hidden"},onLeave(e){cn(e,"horizontal-collapse-transition"),e.style.width=`${e.dataset.scrollWidth}px`}}}}}),[["render",function(e,t,n,o,l,a){return T(),te(pe,q({mode:"out-in"},e.listeners),{default:ee((()=>[H(e.$slots,"default")])),_:3},16)}],["__file","menu-collapse-transition.vue"]]);function _p(e,t){const n=C((()=>{let n=e.parent;const o=[t.value];for(;"ElMenu"!==n.type.name;)n.props.index&&o.unshift(n.props.index),n=n.parent;return o}));return{parentMenu:C((()=>{let t=e.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t})),indexPath:n}}function Lp(e){return C((()=>{const t=e.backgroundColor;return t?new Au(t).shade(20).toString():""}))}const Ap=(e,t)=>{const n=Io("menu");return C((()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Lp(e).value||"","active-color":e.activeTextColor||"",level:`${t}`})))},Rp=Yn({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Gn},expandOpenIcon:{type:Gn},collapseCloseIcon:{type:Gn},collapseOpenIcon:{type:Gn}}),$p="ElSubMenu";var Fp=O({name:$p,props:Rp,setup(e,{slots:t,expose:n}){const o=b(),{indexPath:l,parentMenu:a}=_p(o,C((()=>e.index))),r=Io("menu"),i=Io("sub-menu"),s=N("rootMenu");s||rn($p,"can not inject root menu");const u=N(`subMenu:${a.value.uid}`);u||rn($p,"can not inject sub menu");const c=m({}),d=m({});let p;const f=m(!1),v=m(),h=m(null),w=C((()=>"horizontal"===M.value&&k.value?"bottom-start":"right-start")),x=C((()=>"horizontal"===M.value&&k.value||"vertical"===M.value&&!s.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?T.value?e.expandOpenIcon:e.expandCloseIcon:gn:e.collapseCloseIcon&&e.collapseOpenIcon?T.value?e.collapseOpenIcon:e.collapseCloseIcon:bn)),k=C((()=>0===u.level)),E=C((()=>{const t=e.teleported;return void 0===t?k.value:t})),I=C((()=>s.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`)),O=C((()=>"horizontal"===M.value&&k.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"])),T=C((()=>s.openedMenus.includes(e.index))),B=C((()=>{let e=!1;return Object.values(c.value).forEach((t=>{t.active&&(e=!0)})),Object.values(d.value).forEach((t=>{t.active&&(e=!0)})),e})),M=C((()=>s.props.mode)),_=U({index:e.index,indexPath:l,active:B}),L=Ap(s.props,u.level+1),A=C((()=>{var t;return null!=(t=e.popperOffset)?t:s.props.popperOffset})),R=C((()=>{var t;return null!=(t=e.popperClass)?t:s.props.popperClass})),$=C((()=>{var t;return null!=(t=e.showTimeout)?t:s.props.showTimeout})),F=C((()=>{var t;return null!=(t=e.hideTimeout)?t:s.props.hideTimeout})),V=e=>{var t,n,o;e||null==(o=null==(n=null==(t=h.value)?void 0:t.popperRef)?void 0:n.popperInstanceRef)||o.destroy()},z=()=>{"hover"===s.props.menuTrigger&&"horizontal"===s.props.mode||s.props.collapse&&"vertical"===s.props.mode||e.disabled||s.handleSubMenuClick({index:e.index,indexPath:l.value,active:B.value})},D=(t,n=$.value)=>{var o;"focus"!==t.type&&("click"===s.props.menuTrigger&&"horizontal"===s.props.mode||!s.props.collapse&&"vertical"===s.props.mode||e.disabled?u.mouseInChild.value=!0:(u.mouseInChild.value=!0,null==p||p(),({stop:p}=It((()=>{s.openMenu(e.index,l.value)}),n)),E.value&&(null==(o=a.value.vnode.el)||o.dispatchEvent(new MouseEvent("mouseenter")))))},H=(t=!1)=>{var n;"click"===s.props.menuTrigger&&"horizontal"===s.props.mode||!s.props.collapse&&"vertical"===s.props.mode?u.mouseInChild.value=!1:(null==p||p(),u.mouseInChild.value=!1,({stop:p}=It((()=>!f.value&&s.closeMenu(e.index,l.value)),F.value)),E.value&&t&&(null==(n=u.handleMouseleave)||n.call(u,!0)))};g((()=>s.props.collapse),(e=>V(Boolean(e))));{const e=e=>{d.value[e.index]=e},t=e=>{delete d.value[e.index]};j(`subMenu:${o.uid}`,{addSubMenu:e,removeSubMenu:t,handleMouseleave:H,mouseInChild:f,level:u.level+1})}return n({opened:T}),y((()=>{s.addSubMenu(_),u.addSubMenu(_)})),P((()=>{u.removeSubMenu(_),s.removeSubMenu(_)})),()=>{var n;const l=[null==(n=t.title)?void 0:n.call(t),Se(Kr,{class:i.e("icon-arrow"),style:{transform:T.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&s.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>S(x.value)?Se(o.appContext.components[x.value]):Se(x.value)})],a=s.isMenuPopup?Se(su,{ref:h,visible:T.value,effect:"light",pure:!0,offset:A.value,showArrow:!1,persistent:!0,popperClass:R.value,placement:w.value,teleported:E.value,fallbackPlacements:O.value,transition:I.value,gpuAcceleration:!1},{content:()=>{var e;return Se("div",{class:[r.m(M.value),r.m("popup-container"),R.value],onMouseenter:e=>D(e,100),onMouseleave:()=>H(!0),onFocus:e=>D(e,100)},[Se("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${w.value}`)],style:L.value},[null==(e=t.default)?void 0:e.call(t)])])},default:()=>Se("div",{class:i.e("title"),onClick:z},l)}):Se(J,{},[Se("div",{class:i.e("title"),ref:v,onClick:z},l),Se(od,{},{default:()=>{var e;return ce(Se("ul",{role:"menu",class:[r.b(),r.m("inline")],style:L.value},[null==(e=t.default)?void 0:e.call(t)]),[[de,T.value]])}})]);return Se("li",{class:[i.b(),i.is("active",B.value),i.is("opened",T.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:D,onMouseleave:()=>H(),onFocus:D},[a])}}});const Vp=Yn({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Array,default:()=>[]},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Gn,default:()=>Rn},popperEffect:{type:String,default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),Pp=e=>Array.isArray(e)&&e.every((e=>S(e)));var Np=O({name:"ElMenu",props:Vp,emits:{close:(e,t)=>S(e)&&Pp(t),open:(e,t)=>S(e)&&Pp(t),select:(e,t,n,o)=>S(e)&&Pp(t)&&_(n)&&(void 0===o||o instanceof Promise)},setup(e,{emit:t,slots:n,expose:o}){const l=b(),a=l.appContext.config.globalProperties.$router,r=m(),i=Io("menu"),s=Io("sub-menu"),u=m(-1),c=m(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),d=m(e.defaultActive),p=m({}),f=m({}),v=C((()=>"horizontal"===e.mode||"vertical"===e.mode&&e.collapse)),h=(n,o)=>{c.value.includes(n)||(e.uniqueOpened&&(c.value=c.value.filter((e=>o.includes(e)))),c.value.push(n),t("open",n,o))},x=e=>{const t=c.value.indexOf(e);-1!==t&&c.value.splice(t,1)},S=(e,n)=>{x(e),t("close",e,n)},E=({index:e,indexPath:t})=>{c.value.includes(e)?S(e,t):h(e,t)},I=n=>{("horizontal"===e.mode||e.collapse)&&(c.value=[]);const{index:o,indexPath:l}=n;if(!je(o)&&!je(l))if(e.router&&a){const e=n.route||o,r=a.push(e).then((e=>(e||(d.value=o),e)));t("select",o,l,{index:o,indexPath:l,route:e},r)}else d.value=o,t("select",o,l,{index:o,indexPath:l})},O=()=>{var e,t;if(!r.value)return-1;const n=Array.from(null!=(t=null==(e=r.value)?void 0:e.childNodes)?t:[]).filter((e=>"#comment"!==e.nodeName&&("#text"!==e.nodeName||e.nodeValue))),o=getComputedStyle(r.value),l=Number.parseInt(o.paddingLeft,10),a=Number.parseInt(o.paddingRight,10),i=r.value.clientWidth-l-a;let s=0,u=0;return n.forEach(((e,t)=>{s+=(e=>{const t=getComputedStyle(e),n=Number.parseInt(t.marginLeft,10),o=Number.parseInt(t.marginRight,10);return e.offsetWidth+n+o||0})(e),s<=i-64&&(u=t+1)})),u===n.length?-1:u};let T=!0;const B=()=>{if(u.value===O())return;const e=()=>{u.value=-1,w((()=>{u.value=O()}))};T?e():((e,t=33.34)=>{let n;return()=>{n&&clearTimeout(n),n=setTimeout((()=>{e()}),t)}})(e)(),T=!1};let M;g((()=>e.defaultActive),(t=>{p.value[t]||(d.value=""),(t=>{const n=p.value,o=n[t]||d.value&&n[d.value]||n[e.defaultActive];d.value=o?o.index:t})(t)})),g((()=>e.collapse),(e=>{e&&(c.value=[])})),g(p.value,(()=>{const t=d.value&&p.value[d.value];if(!t||"horizontal"===e.mode||e.collapse)return;t.indexPath.forEach((e=>{const t=f.value[e];t&&h(e,t.indexPath)}))})),k((()=>{"horizontal"===e.mode&&e.ellipsis?M=Pt(r,B).stop:null==M||M()}));const _=m(!1);{const t=e=>{f.value[e.index]=e},n=e=>{delete f.value[e.index]},o=e=>{p.value[e.index]=e},a=e=>{delete p.value[e.index]};j("rootMenu",U({props:e,openedMenus:c,items:p,subMenus:f,activeIndex:d,isMenuPopup:v,addMenuItem:o,removeMenuItem:a,addSubMenu:t,removeSubMenu:n,openMenu:h,closeMenu:S,handleMenuItemClick:I,handleSubMenuClick:E})),j(`subMenu:${l.uid}`,{addSubMenu:t,removeSubMenu:n,mouseInChild:_,level:0})}y((()=>{"horizontal"===e.mode&&new Bp(l.vnode.el,i.namespace.value)}));o({open:e=>{const{indexPath:t}=f.value[e];t.forEach((e=>h(e,t)))},close:x,handleResize:B});return()=>{var o,l;let a=null!=(l=null==(o=n.default)?void 0:o.call(n))?l:[];const d=[];if("horizontal"===e.mode&&r.value){const t=co(a),n=-1===u.value?t:t.slice(0,u.value),o=-1===u.value?[]:t.slice(u.value);(null==o?void 0:o.length)&&e.ellipsis&&(a=n,d.push(Se(Fp,{index:"sub-menu-more",class:s.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>Se(Kr,{class:s.e("icon-more")},{default:()=>Se(e.ellipsisIcon)}),default:()=>o})))}const p=Ap(e,0),v=e.closeOnClickOutside?[[qu,()=>{c.value.length&&(_.value||(c.value.forEach((e=>{return t("close",e,(n=e,f.value[n].indexPath));var n})),c.value=[]))}]]:[],m=ce(Se("ul",{key:String(e.collapse),role:"menubar",ref:r,style:p.value,class:{[i.b()]:!0,[i.m(e.mode)]:!0,[i.m("collapse")]:e.collapse}},[...a,...d]),v);return e.collapseTransition&&"vertical"===e.mode?Se(Mp,(()=>m)):m}}});const zp=Yn({index:{type:[String,null],default:null},route:{type:[String,Object]},disabled:Boolean}),Dp="ElMenuItem";var jp=Hr(O({name:Dp,components:{ElTooltip:su},props:zp,emits:{click:e=>S(e.index)&&Array.isArray(e.indexPath)},setup(e,{emit:t}){const n=b(),o=N("rootMenu"),l=Io("menu"),a=Io("menu-item");o||rn(Dp,"can not inject root menu");const{parentMenu:r,indexPath:i}=_p(n,W(e,"index")),s=N(`subMenu:${r.value.uid}`);s||rn(Dp,"can not inject sub menu");const u=C((()=>e.index===o.activeIndex)),c=U({index:e.index,indexPath:i,active:u});return y((()=>{s.addSubMenu(c),o.addMenuItem(c)})),P((()=>{s.removeSubMenu(c),o.removeMenuItem(c)})),{parentMenu:r,rootMenu:o,active:u,nsMenu:l,nsMenuItem:a,handleClick:()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:i.value,route:e.route}),t("click",c))}}}}),[["render",function(e,t,n,o,l,a){const r=Ie("el-tooltip");return T(),B("li",{class:G([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},["ElMenu"===e.parentMenu.type.name&&e.rootMenu.props.collapse&&e.$slots.title?(T(),te(r,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:ee((()=>[H(e.$slots,"title")])),default:ee((()=>[M("div",{class:G(e.nsMenu.be("tooltip","trigger"))},[H(e.$slots,"default")],2)])),_:3},8,["effect"])):(T(),B(J,{key:1},[H(e.$slots,"default"),H(e.$slots,"title")],64))],10,["onClick"])}],["__file","menu-item.vue"]]);var Hp=Hr(O({name:"ElMenuItemGroup",props:{title:String},setup:()=>({ns:Io("menu-item-group")})}),[["render",function(e,t,n,o,l,a){return T(),B("li",{class:G(e.ns.b())},[M("div",{class:G(e.ns.e("title"))},[e.$slots.title?H(e.$slots,"title",{key:1}):(T(),B(J,{key:0},[le(ae(e.title),1)],64))],2),M("ul",null,[H(e.$slots,"default")])],2)}],["__file","menu-item-group.vue"]]);const qp=eo(Np,{MenuItem:jp,MenuItemGroup:Hp,SubMenu:Fp}),Wp=to(jp);to(Hp),to(Fp);const Kp=Symbol("ElSelectGroup"),Up=Symbol("ElSelect");var Yp=Hr(O({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Io("select"),n=oa(),o=C((()=>[t.be("dropdown","item"),t.is("disabled",p(i)),t.is("selected",p(r)),t.is("hovering",p(f))])),l=U({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:a,itemSelected:r,isDisabled:i,select:s,hoverItem:u,updateOption:c}=function(e,t){const n=N(Up),o=N(Kp,{disabled:!1}),l=C((()=>c(Ue(n.props.modelValue),e.value))),a=C((()=>{var e;if(n.props.multiple){const t=Ue(null!=(e=n.props.modelValue)?e:[]);return!l.value&&t.length>=n.props.multipleLimit&&n.props.multipleLimit>0}return!1})),r=C((()=>e.label||(_(e.value)?"":e.value))),i=C((()=>e.value||e.label||"")),s=C((()=>e.disabled||t.groupDisabled||a.value)),u=b(),c=(t=[],o)=>{if(_(e.value)){const e=n.props.valueKey;return t&&t.some((t=>we(He(t,e))===He(o,e)))}return t&&t.includes(o)};return g((()=>r.value),(()=>{e.created||n.props.remote||n.setSelected()})),g((()=>e.value),((t,o)=>{const{remote:l,valueKey:a}=n.props;if(t!==o&&(n.onOptionDestroy(o,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!l){if(a&&_(t)&&_(o)&&t[a]===o[a])return;n.setSelected()}})),g((()=>o.disabled),(()=>{t.groupDisabled=o.disabled}),{immediate:!0}),{select:n,currentLabel:r,currentValue:i,itemSelected:l,isDisabled:s,hoverItem:()=>{e.disabled||o.disabled||(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},updateOption:n=>{const o=new RegExp(((e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"))(n),"i");t.visible=o.test(r.value)||e.created}}}(e,l),{visible:d,hover:f}=Y(l),v=b().proxy;return s.onOptionCreate(v),P((()=>{const e=v.value,{selected:t}=s.states,n=(s.props.multiple?t:[t]).some((e=>e.value===v.value));w((()=>{s.states.cachedOptions.get(e)!==v||n||s.states.cachedOptions.delete(e)})),s.onOptionDestroy(e,v)})),{ns:t,id:n,containerKls:o,currentLabel:a,itemSelected:r,isDisabled:i,select:s,hoverItem:u,updateOption:c,visible:d,hover:f,selectOptionClick:function(){i.value||s.handleOptionSelect(v)},states:l}}}),[["render",function(e,t,n,o,l,a){return ce((T(),B("li",{id:e.id,class:G(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:ue(e.selectOptionClick,["stop"])},[H(e.$slots,"default",{},(()=>[M("span",null,ae(e.currentLabel),1)]))],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[de,e.visible]])}],["__file","option.vue"]]);var Gp=Hr(O({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=N(Up),t=Io("select"),n=C((()=>e.props.popperClass)),o=C((()=>e.props.multiple)),l=C((()=>e.props.fitInputWidth)),a=m("");function r(){var t;a.value=`${null==(t=e.selectRef)?void 0:t.offsetWidth}px`}return y((()=>{r(),Pt(e.selectRef,r)})),{ns:t,minWidth:a,popperClass:n,isMultiple:o,isFitInputWidth:l}}}),[["render",function(e,t,n,o,l,a){return T(),B("div",{class:G([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:oe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(T(),B("div",{key:0,class:G(e.ns.be("dropdown","header"))},[H(e.$slots,"header")],2)):re("v-if",!0),H(e.$slots,"default"),e.$slots.footer?(T(),B("div",{key:1,class:G(e.ns.be("dropdown","footer"))},[H(e.$slots,"footer")],2)):re("v-if",!0)],6)}],["__file","select-dropdown.vue"]]);const Xp=(e,t)=>{const{t:n}=xo(),o=oa(),l=Io("select"),a=Io("input"),r=U({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),i=m(null),s=m(null),u=m(null),c=m(null),d=m(null),p=m(null),f=m(null),v=m(null),h=m(null),x=m(null),S=m(null),E=m(null),{isComposing:I,handleCompositionStart:O,handleCompositionUpdate:T,handleCompositionEnd:B}=Tr({afterComposition:e=>ye(e)}),{wrapperRef:M,isFocused:L}=Or(d,{beforeFocus:()=>H.value,afterFocus(){e.automaticDropdown&&!A.value&&(A.value=!0,r.menuVisibleOnFocus=!0)},beforeBlur(e){var t,n;return(null==(t=u.value)?void 0:t.isFocusInsideContent(e))||(null==(n=c.value)?void 0:n.isFocusInsideContent(e))},afterBlur(){A.value=!1,r.menuVisibleOnFocus=!1}}),A=m(!1),R=m(),{form:V,formItem:P}=Zr(),{inputId:z}=Jr(e,{formItemContext:P}),{valueOnClear:D,isEmptyValue:j}=(e=>{const t=b()?N(Br,m({})):m({}),n=C((()=>e.emptyValues||t.value.emptyValues||Mr)),o=C((()=>$(e.valueOnClear)?e.valueOnClear():void 0!==e.valueOnClear?e.valueOnClear:$(t.value.valueOnClear)?t.value.valueOnClear():void 0!==t.value.valueOnClear?t.value.valueOnClear:void 0));return n.value.includes(o.value),{emptyValues:n,valueOnClear:o,isEmptyValue:e=>n.value.includes(e)}})(e),H=C((()=>e.disabled||(null==V?void 0:V.disabled))),q=C((()=>F(e.modelValue)?e.modelValue.length>0:!j(e.modelValue))),W=C((()=>e.clearable&&!H.value&&r.inputHovering&&q.value)),K=C((()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon)),Y=C((()=>l.is("reverse",K.value&&A.value))),G=C((()=>(null==P?void 0:P.validateState)||"")),X=C((()=>Qn[G.value])),Z=C((()=>e.remote?300:0)),J=C((()=>e.loading?e.loadingText||n("el.select.loading"):!(e.remote&&!r.inputValue&&0===r.options.size)&&(e.filterable&&r.inputValue&&r.options.size>0&&0===Q.value?e.noMatchText||n("el.select.noMatch"):0===r.options.size?e.noDataText||n("el.select.noData"):null))),Q=C((()=>ee.value.filter((e=>e.visible)).length)),ee=C((()=>{const e=Array.from(r.options.values()),t=[];return r.optionValues.forEach((n=>{const o=e.findIndex((e=>e.value===n));o>-1&&t.push(e[o])})),t.length>=e.length?t:e})),te=C((()=>Array.from(r.cachedOptions.values()))),ne=C((()=>{const t=ee.value.filter((e=>!e.created)).some((e=>e.currentLabel===r.inputValue));return e.filterable&&e.allowCreate&&""!==r.inputValue&&!t})),oe=()=>{e.filterable&&$(e.filterMethod)||e.filterable&&e.remote&&$(e.remoteMethod)||ee.value.forEach((e=>{var t;null==(t=e.updateOption)||t.call(e,r.inputValue)}))},le=Gr(),ae=C((()=>["small"].includes(le.value)?"small":"default")),re=C({get:()=>A.value&&!1!==J.value,set(e){A.value=e}}),ie=C((()=>{if(e.multiple&&!Zt(e.modelValue))return 0===Ue(e.modelValue).length&&!r.inputValue;const t=F(e.modelValue)?e.modelValue[0]:e.modelValue;return!e.filterable&&!Zt(t)||!r.inputValue})),se=C((()=>{var t;const o=null!=(t=e.placeholder)?t:n("el.select.placeholder");return e.multiple||!q.value?o:r.selectedLabel})),ue=C((()=>wt?null:"mouseenter"));g((()=>e.modelValue),((t,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(r.inputValue="",ce("")),pe(),!Ze(t,n)&&e.validateEvent&&(null==P||P.validate("change").catch((e=>{})))}),{flush:"post",deep:!0}),g((()=>A.value),(e=>{e?ce(r.inputValue):(r.inputValue="",r.previousQuery=null,r.isBeforeHide=!0),t("visible-change",e)})),g((()=>r.options.entries()),(()=>{var t;if(!ht)return;const n=(null==(t=i.value)?void 0:t.querySelectorAll("input"))||[];(e.filterable||e.defaultFirstOption||Zt(e.modelValue))&&Array.from(n).includes(document.activeElement)||pe(),e.defaultFirstOption&&(e.filterable||e.remote)&&Q.value&&de()}),{flush:"post"}),g((()=>r.hoveringIndex),(e=>{Qt(e)&&e>-1?R.value=ee.value[e]||{}:R.value={},ee.value.forEach((e=>{e.hover=R.value===e}))})),k((()=>{r.isBeforeHide||oe()}));const ce=t=>{r.previousQuery===t||I.value||(r.previousQuery=t,e.filterable&&$(e.filterMethod)?e.filterMethod(t):e.filterable&&e.remote&&$(e.remoteMethod)&&e.remoteMethod(t),e.defaultFirstOption&&(e.filterable||e.remote)&&Q.value?w(de):w(ve))},de=()=>{const e=ee.value.filter((e=>e.visible&&!e.disabled&&!e.states.groupDisabled)),t=e.find((e=>e.created)),n=e[0];r.hoveringIndex=Ee(ee.value,t||n)},pe=()=>{if(!e.multiple){const t=F(e.modelValue)?e.modelValue[0]:e.modelValue,n=fe(t);return r.selectedLabel=n.currentLabel,void(r.selected=[n])}r.selectedLabel="";const t=[];Zt(e.modelValue)||Ue(e.modelValue).forEach((e=>{t.push(fe(e))})),r.selected=t},fe=t=>{let n;const o="object"===Le(t).toLowerCase(),l="null"===Le(t).toLowerCase(),a="undefined"===Le(t).toLowerCase();for(let i=r.cachedOptions.size-1;i>=0;i--){const l=te.value[i];if(o?He(l.value,e.valueKey)===He(t,e.valueKey):l.value===t){n={value:t,currentLabel:l.currentLabel,get isDisabled(){return l.isDisabled}};break}}if(n)return n;return{value:t,currentLabel:o?t.label:l||a?"":t}},ve=()=>{r.hoveringIndex=ee.value.findIndex((e=>r.selected.some((t=>_e(t)===_e(e)))))},me=()=>{r.calculatorWidth=p.value.getBoundingClientRect().width},ge=()=>{var e,t;null==(t=null==(e=u.value)?void 0:e.updatePopper)||t.call(e)},he=()=>{var e,t;null==(t=null==(e=c.value)?void 0:e.updatePopper)||t.call(e)},be=()=>{r.inputValue.length>0&&!A.value&&(A.value=!0),ce(r.inputValue)},ye=t=>{if(r.inputValue=t.target.value,!e.remote)return be();xe()},xe=Je((()=>{be()}),Z.value),ke=n=>{Ze(e.modelValue,n)||t(ao,n)},Ce=n=>{n.stopPropagation();const o=e.multiple?[]:D.value;if(e.multiple)for(const e of r.selected)e.isDisabled&&o.push(e.value);t(lo,o),ke(o),r.hoveringIndex=-1,A.value=!1,t("clear"),Te()},Se=n=>{var o;if(e.multiple){const l=Ue(null!=(o=e.modelValue)?o:[]).slice(),a=Ee(l,n.value);a>-1?l.splice(a,1):(e.multipleLimit<=0||l.length{Ie(n)}))},Ee=(t=[],n)=>{if(!_(n))return t.indexOf(n);const o=e.valueKey;let l=-1;return t.some(((e,t)=>we(He(e,o))===He(n,o)&&(l=t,!0))),l},Ie=e=>{var t,n,o,a,r;const i=F(e)?e[0]:e;let s=null;if(null==i?void 0:i.value){const e=ee.value.filter((e=>e.value===i.value));e.length>0&&(s=e[0].$el)}if(u.value&&s){const e=null==(a=null==(o=null==(n=null==(t=u.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:o.querySelector)?void 0:a.call(o,`.${l.be("dropdown","wrap")}`);e&&function(e,t){if(!ht)return;if(!t)return void(e.scrollTop=0);const n=[];let o=t.offsetParent;for(;null!==o&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce(((e,t)=>e+t.offsetTop),0),a=l+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;li&&(e.scrollTop=a-e.clientHeight)}(e,s)}null==(r=E.value)||r.handleScroll()},Oe=C((()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.popperRef)?void 0:t.contentRef})),Te=()=>{var e;null==(e=d.value)||e.focus()},Be=()=>{var e;null==(e=d.value)||e.blur()},Me=()=>{H.value||(wt&&(r.inputHovering=!0),r.menuVisibleOnFocus?r.menuVisibleOnFocus=!1:A.value=!A.value)},_e=t=>_(t.value)?He(t.value,e.valueKey):t.value,Ae=C((()=>ee.value.filter((e=>e.visible)).every((e=>e.disabled)))),Re=C((()=>e.multiple?e.collapseTags?r.selected.slice(0,e.maxCollapseTags):r.selected:[])),$e=C((()=>e.multiple&&e.collapseTags?r.selected.slice(e.maxCollapseTags):[])),Fe=e=>{if(A.value){if(0!==r.options.size&&0!==r.filteredOptionsCount&&!I.value&&!Ae.value){"next"===e?(r.hoveringIndex++,r.hoveringIndex===r.options.size&&(r.hoveringIndex=0)):"prev"===e&&(r.hoveringIndex--,r.hoveringIndex<0&&(r.hoveringIndex=r.options.size-1));const t=ee.value[r.hoveringIndex];!0!==t.disabled&&!0!==t.states.groupDisabled&&t.visible||Fe(e),w((()=>Ie(R.value)))}}else A.value=!0},Ve=C((()=>{const t=(()=>{if(!s.value)return 0;const e=window.getComputedStyle(s.value);return Number.parseFloat(e.gap||"6px")})();return{maxWidth:`${S.value&&1===e.maxCollapseTags?r.selectionWidth-r.collapseItemWidth-t:r.selectionWidth}px`}})),Pe=C((()=>({maxWidth:`${r.selectionWidth}px`}))),Ne=C((()=>({width:`${Math.max(r.calculatorWidth,11)}px`})));return Pt(s,(()=>{r.selectionWidth=s.value.getBoundingClientRect().width})),Pt(p,me),Pt(h,ge),Pt(M,ge),Pt(x,he),Pt(S,(()=>{r.collapseItemWidth=S.value.getBoundingClientRect().width})),y((()=>{pe()})),{inputId:z,contentId:o,nsSelect:l,nsInput:a,states:r,isFocused:L,expanded:A,optionsArray:ee,hoverOption:R,selectSize:le,filteredOptionsCount:Q,resetCalculatorWidth:me,updateTooltip:ge,updateTagTooltip:he,debouncedOnInputChange:xe,onInput:ye,deletePrevTag:n=>{if(e.multiple&&n.code!==oo.delete&&n.target.value.length<=0){const n=Ue(e.modelValue).slice(),o=(e=>Qe(e,(e=>!r.disabledOptions.has(e))))(n);if(o<0)return;const l=n[o];n.splice(o,1),t(lo,n),ke(n),t("remove-tag",l)}},deleteTag:(n,o)=>{const l=r.selected.indexOf(o);if(l>-1&&!H.value){const n=Ue(e.modelValue).slice();n.splice(l,1),t(lo,n),ke(n),t("remove-tag",o.value)}n.stopPropagation(),Te()},deleteSelected:Ce,handleOptionSelect:Se,scrollToOption:Ie,hasModelValue:q,shouldShowPlaceholder:ie,currentPlaceholder:se,mouseEnterEventName:ue,showClose:W,iconComponent:K,iconReverse:Y,validateState:G,validateIcon:X,showNewOption:ne,updateOptions:oe,collapseTagSize:ae,setSelected:pe,selectDisabled:H,emptyText:J,handleCompositionStart:O,handleCompositionUpdate:T,handleCompositionEnd:B,onOptionCreate:e=>{r.options.set(e.value,e),r.cachedOptions.set(e.value,e),e.disabled&&r.disabledOptions.set(e.value,e)},onOptionDestroy:(e,t)=>{r.options.get(e)===t&&r.options.delete(e)},handleMenuEnter:()=>{r.isBeforeHide=!1,w((()=>Ie(r.selected)))},focus:Te,blur:Be,handleClearClick:e=>{Ce(e)},handleClickOutside:()=>{A.value=!1,L.value&&Be()},handleEsc:()=>{r.inputValue.length>0?r.inputValue="":A.value=!1},toggleMenu:Me,selectOption:()=>{A.value?ee.value[r.hoveringIndex]&&Se(ee.value[r.hoveringIndex]):Me()},getValueKey:_e,navigateOptions:Fe,dropdownMenuVisible:re,showTagList:Re,collapseTagList:$e,tagStyle:Ve,collapseTagStyle:Pe,inputStyle:Ne,popperRef:Oe,inputRef:d,tooltipRef:u,tagTooltipRef:c,calculatorRef:p,prefixRef:f,suffixRef:v,selectRef:i,wrapperRef:M,selectionRef:s,scrollbarRef:E,menuRef:h,tagMenuRef:x,collapseItemRef:S}};var Zp=O({name:"ElOptions",setup(e,{slots:t}){const n=N(Up);let o=[];return()=>{var e,l;const a=null==(e=t.default)?void 0:e.call(t),r=[];return a.length&&function e(t){F(t)&&t.forEach((t=>{var n,o,l,a;const i=null==(n=(null==t?void 0:t.type)||{})?void 0:n.name;"ElOptionGroup"===i?e(S(t.children)||F(t.children)||!$(null==(o=t.children)?void 0:o.default)?t.children:null==(l=t.children)?void 0:l.default()):"ElOption"===i?r.push(null==(a=t.props)?void 0:a.value):F(t.children)&&e(t.children)}))}(null==(l=a[0])?void 0:l.children),Ze(r,o)||(o=r,n&&(n.states.optionValues=r)),a}}});const Jp=Yn(s(s({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Er,effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Us.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Gn,default:Cn},fitInputWidth:Boolean,suffixIcon:{type:Gn,default:gn},tagType:u(s({},Wc.type),{default:"info"}),tagEffect:u(s({},Wc.effect),{default:"light"}),validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:String,values:Wo,default:"bottom-start"},fallbackPlacements:{type:Array,default:["bottom-start","top-start","right","left"]}},_r),Ar(["ariaLabel"]))),Qp="ElSelect";var ef=Hr(O({name:Qp,componentName:Qp,components:{ElSelectMenu:Gp,ElOption:Yp,ElOptions:Zp,ElTag:Yc,ElScrollbar:ns,ElTooltip:su,ElIcon:Kr},directives:{ClickOutside:qu},props:Jp,emits:[lo,ao,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=C((()=>{const{modelValue:t,multiple:n}=e,o=n?[]:void 0;return F(t)?n?t:o:n?o:t})),o=U(u(s({},Y(e)),{modelValue:n})),l=Xp(o,t);return j(Up,U({props:o,states:l.states,optionsArray:l.optionsArray,handleOptionSelect:l.handleOptionSelect,onOptionCreate:l.onOptionCreate,onOptionDestroy:l.onOptionDestroy,selectRef:l.selectRef,setSelected:l.setSelected})),u(s({},l),{modelValue:n})}}),[["render",function(e,t,n,o,l,a){const r=Ie("el-tag"),i=Ie("el-tooltip"),s=Ie("el-icon"),u=Ie("el-option"),c=Ie("el-options"),d=Ie("el-scrollbar"),p=Ie("el-select-menu"),f=Ae("click-outside");return ce((T(),B("div",{ref:"selectRef",class:G([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[$e(e.mouseEnterEventName)]:t=>e.states.inputHovering=!0,onMouseleave:t=>e.states.inputHovering=!1},[Z(i,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t=>e.states.isBeforeHide=!1},{default:ee((()=>{var t;return[M("div",{ref:"wrapperRef",class:G([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:ue(e.toggleMenu,["prevent"])},[e.$slots.prefix?(T(),B("div",{key:0,ref:"prefixRef",class:G(e.nsSelect.e("prefix"))},[H(e.$slots,"prefix")],2)):re("v-if",!0),M("div",{ref:"selectionRef",class:G([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?H(e.$slots,"tag",{key:0},(()=>[(T(!0),B(J,null,ye(e.showTagList,(t=>(T(),B("div",{key:e.getValueKey(t),class:G(e.nsSelect.e("selected-item"))},[Z(r,{closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:oe(e.tagStyle),onClose:n=>e.deleteTag(n,t)},{default:ee((()=>[M("span",{class:G(e.nsSelect.e("tags-text"))},[H(e.$slots,"label",{label:t.currentLabel,value:t.value},(()=>[le(ae(t.currentLabel),1)]))],2)])),_:2},1032,["closable","size","type","effect","style","onClose"])],2)))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(T(),te(i,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ee((()=>[M("div",{ref:"collapseItemRef",class:G(e.nsSelect.e("selected-item"))},[Z(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:oe(e.collapseTagStyle)},{default:ee((()=>[M("span",{class:G(e.nsSelect.e("tags-text"))}," + "+ae(e.states.selected.length-e.maxCollapseTags),3)])),_:1},8,["size","type","effect","style"])],2)])),content:ee((()=>[M("div",{ref:"tagMenuRef",class:G(e.nsSelect.e("selection"))},[(T(!0),B(J,null,ye(e.collapseTagList,(t=>(T(),B("div",{key:e.getValueKey(t),class:G(e.nsSelect.e("selected-item"))},[Z(r,{class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:n=>e.deleteTag(n,t)},{default:ee((()=>[M("span",{class:G(e.nsSelect.e("tags-text"))},[H(e.$slots,"label",{label:t.currentLabel,value:t.value},(()=>[le(ae(t.currentLabel),1)]))],2)])),_:2},1032,["closable","size","type","effect","onClose"])],2)))),128))],2)])),_:3},8,["disabled","effect","teleported"])):re("v-if",!0)])):re("v-if",!0),e.selectDisabled?re("v-if",!0):(T(),B("div",{key:1,class:G([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ce(M("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":t=>e.states.inputValue=t,type:"text",name:e.name,class:G([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:oe(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":(null==(t=e.hoverOption)?void 0:t.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[_e(ue((t=>e.navigateOptions("next")),["stop","prevent"]),["down"]),_e(ue((t=>e.navigateOptions("prev")),["stop","prevent"]),["up"]),_e(ue(e.handleEsc,["stop","prevent"]),["esc"]),_e(ue(e.selectOption,["stop","prevent"]),["enter"]),_e(ue(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:ue(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Re,e.states.inputValue]]),e.filterable?(T(),B("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:G(e.nsSelect.e("input-calculator")),textContent:ae(e.states.inputValue)},null,10,["textContent"])):re("v-if",!0)],2)),e.shouldShowPlaceholder?(T(),B("div",{key:2,class:G([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?H(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},(()=>[M("span",null,ae(e.currentPlaceholder),1)])):(T(),B("span",{key:1},ae(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),M("div",{ref:"suffixRef",class:G(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(T(),te(s,{key:0,class:G([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ee((()=>[(T(),te(ne(e.iconComponent)))])),_:1},8,["class"])):re("v-if",!0),e.showClose&&e.clearIcon?(T(),te(s,{key:1,class:G([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ee((()=>[(T(),te(ne(e.clearIcon)))])),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon?(T(),te(s,{key:2,class:G([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ee((()=>[(T(),te(ne(e.validateIcon)))])),_:1},8,["class"])):re("v-if",!0)],2)],10,["onClick"])]})),content:ee((()=>[Z(p,{ref:"menuRef"},{default:ee((()=>[e.$slots.header?(T(),B("div",{key:0,class:G(e.nsSelect.be("dropdown","header")),onClick:ue((()=>{}),["stop"])},[H(e.$slots,"header")],10,["onClick"])):re("v-if",!0),ce(Z(d,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:G([e.nsSelect.is("empty",0===e.filteredOptionsCount)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ee((()=>[e.showNewOption?(T(),te(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),Z(c,null,{default:ee((()=>[H(e.$slots,"default")])),_:3})])),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[de,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(T(),B("div",{key:1,class:G(e.nsSelect.be("dropdown","loading"))},[H(e.$slots,"loading")],2)):e.loading||0===e.filteredOptionsCount?(T(),B("div",{key:2,class:G(e.nsSelect.be("dropdown","empty"))},[H(e.$slots,"empty",{},(()=>[M("span",null,ae(e.emptyText),1)]))],2)):re("v-if",!0),e.$slots.footer?(T(),B("div",{key:3,class:G(e.nsSelect.be("dropdown","footer")),onClick:ue((()=>{}),["stop"])},[H(e.$slots,"footer")],10,["onClick"])):re("v-if",!0)])),_:3},512)])),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow","onHide"])],16,["onMouseleave"])),[[f,e.handleClickOutside,e.popperRef]])}],["__file","select.vue"]]);var tf=Hr(O({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Io("select"),n=m(null),o=b(),l=m([]);j(Kp,U(s({},Y(e))));const a=C((()=>l.value.some((e=>!0===e.visible)))),r=e=>{const t=Ue(e),n=[];return t.forEach((e=>{var t,o;(e=>{var t,n;return"ElOption"===(null==(t=e.type)?void 0:t.name)&&!!(null==(n=e.component)?void 0:n.proxy)})(e)?n.push(e.component.proxy):(null==(t=e.children)?void 0:t.length)?n.push(...r(e.children)):(null==(o=e.component)?void 0:o.subTree)&&n.push(...r(e.component.subTree))})),n},i=()=>{l.value=r(o.subTree)};return y((()=>{i()})),qt(n,i,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:a,ns:t}}}),[["render",function(e,t,n,o,l,a){return ce((T(),B("ul",{ref:"groupRef",class:G(e.ns.be("group","wrap"))},[M("li",{class:G(e.ns.be("group","title"))},ae(e.label),3),M("li",null,[M("ul",{class:G(e.ns.b("group"))},[H(e.$slots,"default")],2)])],2)),[[de,e.visible]])}],["__file","option-group.vue"]]);const nf=eo(ef,{Option:Yp,OptionGroup:tf}),of=to(Yp),lf=to(tf),af=Yn({trigger:Ys.trigger,placement:Xd.placement,disabled:Ys.disabled,visible:Us.visible,transition:Us.transition,popperOptions:Xd.popperOptions,tabindex:Xd.tabindex,content:Us.content,popperStyle:Us.popperStyle,popperClass:Us.popperClass,enterable:u(s({},Us.enterable),{default:!0}),effect:u(s({},Us.effect),{default:"light"}),teleported:Us.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),rf={"update:visible":e=>Jt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},sf=O({name:"ElPopover"}),uf=O(u(s({},sf),{props:af,emits:rf,setup(e,{expose:t,emit:n}){const o=e,l=C((()=>o["onUpdate:visible"])),a=Io("popover"),r=m(),i=C((()=>{var e;return null==(e=p(r))?void 0:e.popperRef})),s=C((()=>[{width:fn(o.width)},o.popperStyle])),u=C((()=>[a.b(),o.popperClass,{[a.m("plain")]:!!o.content}])),c=C((()=>o.transition===`${a.namespace.value}-fade-in-linear`)),d=()=>{n("before-enter")},f=()=>{n("before-leave")},v=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:i,hide:()=>{var e;null==(e=r.value)||e.hide()}}),(e,t)=>(T(),te(p(su),q({ref_key:"tooltipRef",ref:r},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(u),"popper-style":p(s),teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":p(c),"onUpdate:visible":p(l),onBeforeShow:d,onBeforeHide:f,onShow:v,onHide:g}),{content:ee((()=>[e.title?(T(),B("div",{key:0,class:G(p(a).e("title")),role:"title"},ae(e.title),3)):re("v-if",!0),H(e.$slots,"default",{},(()=>[le(ae(e.content),1)]))])),default:ee((()=>[e.$slots.reference?H(e.$slots,"reference",{key:0}):re("v-if",!0)])),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}}));const cf=(e,t)=>{const n=t.arg||t.value,o=null==n?void 0:n.popperRef;o&&(o.triggerRef=e)};var df,pf;const ff=eo(Hr(uf,[["__file","popover.vue"]]),{directive:(pf="popover",(df={mounted(e,t){cf(e,t)},updated(e,t){cf(e,t)}}).install=e=>{e.directive(pf,df)},df)}),vf=Yn({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Function,default:e=>`${e}%`}}),mf=O({name:"ElProgress"});const gf=eo(Hr(O(u(s({},mf),{props:vf,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},o=Io("progress"),l=C((()=>{const e={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},n=b(t.percentage);return n.includes("gradient")?e.background=n:e.backgroundColor=n,e})),a=C((()=>(t.strokeWidth/t.width*100).toFixed(1))),r=C((()=>["circle","dashboard"].includes(t.type)?Number.parseInt(""+(50-Number.parseFloat(a.value)/2),10):0)),i=C((()=>{const e=r.value,n="dashboard"===t.type;return`\n M 50 50\n m 0 ${n?"":"-"}${e}\n a ${e} ${e} 0 1 1 0 ${n?"-":""}${2*e}\n a ${e} ${e} 0 1 1 0 ${n?"":"-"}${2*e}\n `})),s=C((()=>2*Math.PI*r.value)),u=C((()=>"dashboard"===t.type?.75:1)),c=C((()=>`${-1*s.value*(1-u.value)/2}px`)),d=C((()=>({strokeDasharray:`${s.value*u.value}px, ${s.value}px`,strokeDashoffset:c.value}))),f=C((()=>({strokeDasharray:`${s.value*u.value*(t.percentage/100)}px, ${s.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"}))),v=C((()=>{let e;return e=t.color?b(t.percentage):n[t.status]||n.default,e})),m=C((()=>"warning"===t.status?Hn:"line"===t.type?"success"===t.status?xn:Cn:"success"===t.status?wn:Sn)),g=C((()=>"line"===t.type?12+.4*t.strokeWidth:.111111*t.width+2)),h=C((()=>t.format(t.percentage)));const b=e=>{var n;const{color:o}=t;if($(o))return o(e);if(S(o))return o;{const t=function(e){const t=100/e.length;return e.map(((e,n)=>S(e)?{color:e,percentage:(n+1)*t}:e)).sort(((e,t)=>e.percentage-t.percentage))}(o);for(const n of t)if(n.percentage>e)return n.color;return null==(n=t[t.length-1])?void 0:n.color}};return(e,t)=>(T(),B("div",{class:G([p(o).b(),p(o).m(e.type),p(o).is(e.status),{[p(o).m("without-text")]:!e.showText,[p(o).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},["line"===e.type?(T(),B("div",{key:0,class:G(p(o).b("bar"))},[M("div",{class:G(p(o).be("bar","outer")),style:oe({height:`${e.strokeWidth}px`})},[M("div",{class:G([p(o).be("bar","inner"),{[p(o).bem("bar","inner","indeterminate")]:e.indeterminate},{[p(o).bem("bar","inner","striped")]:e.striped},{[p(o).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:oe(p(l))},[(e.showText||e.$slots.default)&&e.textInside?(T(),B("div",{key:0,class:G(p(o).be("bar","innerText"))},[H(e.$slots,"default",{percentage:e.percentage},(()=>[M("span",null,ae(p(h)),1)]))],2)):re("v-if",!0)],6)],6)],2)):(T(),B("div",{key:1,class:G(p(o).b("circle")),style:oe({height:`${e.width}px`,width:`${e.width}px`})},[(T(),B("svg",{viewBox:"0 0 100 100"},[M("path",{class:G(p(o).be("circle","track")),d:p(i),stroke:`var(${p(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":p(a),fill:"none",style:oe(p(d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),M("path",{class:G(p(o).be("circle","path")),d:p(i),stroke:p(v),fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":p(a),style:oe(p(f))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),!e.showText&&!e.$slots.default||e.textInside?re("v-if",!0):(T(),B("div",{key:2,class:G(p(o).e("text")),style:oe({fontSize:`${p(g)}px`})},[H(e.$slots,"default",{percentage:e.percentage},(()=>[e.status?(T(),te(p(Kr),{key:1},{default:ee((()=>[(T(),te(ne(p(m))))])),_:1})):(T(),B("span",{key:0},ae(p(h)),1))]))],6))],10,["aria-valuenow"]))}})),[["__file","progress.vue"]])),hf=Symbol("sliderContextKey"),bf=Yn(s({modelValue:{type:[Number,Array],default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Er,inputSize:Er,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Function,default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Wo,default:"top"},marks:{type:Object},validateEvent:{type:Boolean,default:!0}},Ar(["ariaLabel"]))),yf=e=>Qt(e)||F(e)&&e.every(Qt),wf={[lo]:yf,[ro]:yf,[ao]:yf},xf=(e,t,n)=>{const{form:o,formItem:l}=Zr(),a=x(),r=m(),i=m(),s={firstButton:r,secondButton:i},u=C((()=>e.disabled||(null==o?void 0:o.disabled)||!1)),c=C((()=>Math.min(t.firstValue,t.secondValue))),p=C((()=>Math.max(t.firstValue,t.secondValue))),f=C((()=>e.range?100*(p.value-c.value)/(e.max-e.min)+"%":100*(t.firstValue-e.min)/(e.max-e.min)+"%")),v=C((()=>e.range?100*(c.value-e.min)/(e.max-e.min)+"%":"0%")),g=C((()=>e.vertical?{height:e.height}:{})),h=C((()=>e.vertical?{height:f.value,bottom:v.value}:{width:f.value,left:v.value})),b=()=>{a.value&&(t.sliderSize=a.value["client"+(e.vertical?"Height":"Width")])},y=n=>{const o=(n=>{const o=e.min+n*(e.max-e.min)/100;if(!e.range)return r;let l;return l=Math.abs(c.value-o)t.secondValue?"firstButton":"secondButton",s[l]})(n);return o.value.setPosition(n),o},k=e=>{n(lo,e),n(ro,e)},S=()=>d(void 0,null,(function*(){yield w(),n(ao,e.range?[c.value,p.value]:e.modelValue)})),E=n=>{var o,l,r,i,s,c;if(u.value||t.dragging)return;b();let d=0;if(e.vertical){const e=null!=(r=null==(l=null==(o=n.touches)?void 0:o.item(0))?void 0:l.clientY)?r:n.clientY;d=(a.value.getBoundingClientRect().bottom-e)/t.sliderSize*100}else{d=((null!=(c=null==(s=null==(i=n.touches)?void 0:i.item(0))?void 0:s.clientX)?c:n.clientX)-a.value.getBoundingClientRect().left)/t.sliderSize*100}return d<0||d>100?void 0:y(d)};return{elFormItem:l,slider:a,firstButton:r,secondButton:i,sliderDisabled:u,minValue:c,maxValue:p,runwayStyle:g,barStyle:h,resetSize:b,setPosition:y,emitChange:S,onSliderWrapperPrevent:e=>{var t,n;((null==(t=s.firstButton.value)?void 0:t.dragging)||(null==(n=s.secondButton.value)?void 0:n.dragging))&&e.preventDefault()},onSliderClick:e=>{E(e)&&S()},onSliderDown:e=>d(void 0,null,(function*(){const t=E(e);t&&(yield w(),t.value.onButtonDown(e))})),onSliderMarkerDown:e=>{u.value||t.dragging||y(e)},setFirstValue:n=>{t.firstValue=null!=n?n:e.min,k(e.range?[c.value,p.value]:null!=n?n:e.min)},setSecondValue:n=>{t.secondValue=n,e.range&&k([c.value,p.value])}}},{left:kf,down:Cf,right:Sf,up:Ef,home:If,end:Of,pageUp:Tf,pageDown:Bf}=oo,Mf=(e,t,n)=>{const{disabled:o,min:l,max:a,step:r,showTooltip:i,precision:s,sliderSize:u,formatTooltip:c,emitChange:p,resetSize:f,updateDragging:v}=N(hf),{tooltip:h,tooltipVisible:b,formatValue:y,displayTooltip:x,hideTooltip:k}=((e,t,n)=>{const o=m(),l=m(!1),a=C((()=>t.value instanceof Function)),r=C((()=>a.value&&t.value(e.modelValue)||e.modelValue)),i=Je((()=>{n.value&&(l.value=!0)}),50),s=Je((()=>{n.value&&(l.value=!1)}),50);return{tooltip:o,tooltipVisible:l,formatValue:r,displayTooltip:i,hideTooltip:s}})(e,c,i),S=m(),E=C((()=>(e.modelValue-l.value)/(a.value-l.value)*100+"%")),I=C((()=>e.vertical?{bottom:E.value}:{left:E.value})),O=e=>{o.value||(e.preventDefault(),M(e),window.addEventListener("mousemove",_),window.addEventListener("touchmove",_),window.addEventListener("mouseup",L),window.addEventListener("touchend",L),window.addEventListener("contextmenu",L),S.value.focus())},T=e=>{o.value||(t.newPosition=Number.parseFloat(E.value)+e/(a.value-l.value)*100,A(t.newPosition),p())},B=e=>{let t,n;return e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},M=n=>{t.dragging=!0,t.isClick=!0;const{clientX:o,clientY:l}=B(n);e.vertical?t.startY=l:t.startX=o,t.startPosition=Number.parseFloat(E.value),t.newPosition=t.startPosition},_=n=>{if(t.dragging){let o;t.isClick=!1,x(),f();const{clientX:l,clientY:a}=B(n);e.vertical?(t.currentY=a,o=(t.startY-t.currentY)/u.value*100):(t.currentX=l,o=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+o,A(t.newPosition)}},L=()=>{t.dragging&&(setTimeout((()=>{t.dragging=!1,t.hovering||k(),t.isClick||A(t.newPosition),p()}),0),window.removeEventListener("mousemove",_),window.removeEventListener("touchmove",_),window.removeEventListener("mouseup",L),window.removeEventListener("touchend",L),window.removeEventListener("contextmenu",L))},A=o=>d(void 0,null,(function*(){if(null===o||Number.isNaN(+o))return;o<0?o=0:o>100&&(o=100);const i=100/((a.value-l.value)/r.value);let u=Math.round(o/i)*i*(a.value-l.value)*.01+l.value;u=Number.parseFloat(u.toFixed(s.value)),u!==e.modelValue&&n(lo,u),t.dragging||e.modelValue===t.oldValue||(t.oldValue=e.modelValue),yield w(),t.dragging&&x(),h.value.updatePopper()}));return g((()=>t.dragging),(e=>{v(e)})),Mt(S,"touchstart",O,{passive:!1}),{disabled:o,button:S,tooltip:h,tooltipVisible:b,showTooltip:i,wrapperStyle:I,formatValue:y,handleMouseEnter:()=>{t.hovering=!0,x()},handleMouseLeave:()=>{t.hovering=!1,t.dragging||k()},onButtonDown:O,onKeyDown:e=>{let t=!0;[kf,Cf].includes(e.key)?T(-r.value):[Sf,Ef].includes(e.key)?T(r.value):e.key===If?o.value||(A(0),p()):e.key===Of?o.value||(A(100),p()):e.key===Bf?T(4*-r.value):e.key===Tf?T(4*r.value):t=!1,t&&e.preventDefault()},setPosition:A}},_f=Yn({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Wo,default:"top"}}),Lf={[lo]:e=>Qt(e)},Af=O({name:"ElSliderButton"});var Rf=Hr(O(u(s({},Af),{props:_f,emits:Lf,setup(e,{expose:t,emit:n}){const o=e,l=Io("slider"),a=U({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:o.modelValue}),{disabled:r,button:i,tooltip:s,showTooltip:u,tooltipVisible:c,wrapperStyle:d,formatValue:f,handleMouseEnter:v,handleMouseLeave:m,onButtonDown:g,onKeyDown:h,setPosition:b}=Mf(o,a,n),{hovering:y,dragging:w}=Y(a);return t({onButtonDown:g,onKeyDown:h,setPosition:b,hovering:y,dragging:w}),(e,t)=>(T(),B("div",{ref_key:"button",ref:i,class:G([p(l).e("button-wrapper"),{hover:p(y),dragging:p(w)}]),style:oe(p(d)),tabindex:p(r)?-1:0,onMouseenter:p(v),onMouseleave:p(m),onMousedown:p(g),onFocus:p(v),onBlur:p(m),onKeydown:p(h)},[Z(p(su),{ref_key:"tooltip",ref:s,visible:p(c),placement:e.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!p(u),persistent:""},{content:ee((()=>[M("span",null,ae(p(f)),1)])),default:ee((()=>[M("div",{class:G([p(l).e("button"),{hover:p(y),dragging:p(w)}])},null,2)])),_:1},8,["visible","placement","popper-class","disabled"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}})),[["__file","button.vue"]]);const $f=Yn({mark:{type:[String,Object],default:void 0}});var Ff=O({name:"ElSliderMarker",props:$f,setup(e){const t=Io("slider"),n=C((()=>S(e.mark)?e.mark:e.mark.label)),o=C((()=>S(e.mark)?void 0:e.mark.style));return()=>Se("div",{class:t.e("marks-text"),style:o.value},n.value)}});const Vf=O({name:"ElSlider"});const Pf=eo(Hr(O(u(s({},Vf),{props:bf,emits:wf,setup(e,{expose:t,emit:n}){const o=e,l=Io("slider"),{t:a}=xo(),r=U({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:i,slider:c,firstButton:f,secondButton:v,sliderDisabled:h,minValue:b,maxValue:x,runwayStyle:k,barStyle:S,resetSize:E,emitChange:I,onSliderWrapperPrevent:O,onSliderClick:_,onSliderDown:L,onSliderMarkerDown:A,setFirstValue:R,setSecondValue:$}=xf(o,r,n),{stops:F,getStopStyle:V}=((e,t,n,o)=>({stops:C((()=>{if(!e.showStops||e.min>e.max)return[];if(0===e.step)return[];const l=(e.max-e.min)/e.step,a=100*e.step/(e.max-e.min),r=Array.from({length:l-1}).map(((e,t)=>(t+1)*a));return e.range?r.filter((t=>t<100*(n.value-e.min)/(e.max-e.min)||t>100*(o.value-e.min)/(e.max-e.min))):r.filter((n=>n>100*(t.firstValue-e.min)/(e.max-e.min)))})),getStopStyle:t=>e.vertical?{bottom:`${t}%`}:{left:`${t}%`}}))(o,r,b,x),{inputId:P,isLabeledByFormItem:N}=Jr(o,{formItemContext:i}),z=Gr(),D=C((()=>o.inputSize||z.value)),H=C((()=>o.ariaLabel||a("el.slider.defaultLabel",{min:o.min,max:o.max}))),q=C((()=>o.range?o.rangeStartLabel||a("el.slider.defaultRangeStartLabel"):H.value)),W=C((()=>o.formatValueText?o.formatValueText(ae.value):`${ae.value}`)),K=C((()=>o.rangeEndLabel||a("el.slider.defaultRangeEndLabel"))),X=C((()=>o.formatValueText?o.formatValueText(ie.value):`${ie.value}`)),Q=C((()=>[l.b(),l.m(z.value),l.is("vertical",o.vertical),{[l.m("with-input")]:o.showInput}])),ee=(e=>C((()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort(((e,t)=>e-t)).filter((t=>t<=e.max&&t>=e.min)).map((t=>({point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}))):[])))(o);((e,t,n,o,l,a)=>{const r=e=>{l(lo,e),l(ro,e)},i=()=>e.range?![n.value,o.value].every(((e,n)=>e===t.oldValue[n])):e.modelValue!==t.oldValue,s=()=>{var n,o;e.min>e.max&&rn("Slider","min should not be greater than max.");const l=e.modelValue;e.range&&Array.isArray(l)?l[1]e.max?r([e.max,e.max]):l[0]e.max?r([l[0],e.max]):(t.firstValue=l[0],t.secondValue=l[1],i()&&(e.validateEvent&&(null==(n=null==a?void 0:a.validate)||n.call(a,"change").catch((e=>{}))),t.oldValue=l.slice())):e.range||"number"!=typeof l||Number.isNaN(l)||(le.max?r(e.max):(t.firstValue=l,i()&&(e.validateEvent&&(null==(o=null==a?void 0:a.validate)||o.call(a,"change").catch((e=>{}))),t.oldValue=l)))};s(),g((()=>t.dragging),(e=>{e||s()})),g((()=>e.modelValue),((e,n)=>{t.dragging||Array.isArray(e)&&Array.isArray(n)&&e.every(((e,t)=>e===n[t]))&&t.firstValue===e[0]&&t.secondValue===e[1]||s()}),{deep:!0}),g((()=>[e.min,e.max]),(()=>{s()}))})(o,r,b,x,n,i);const ne=C((()=>{const e=[o.min,o.max,o.step].map((e=>{const t=`${e}`.split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)})),{sliderWrapper:le}=((e,t,n)=>{const o=m();return y((()=>d(void 0,null,(function*(){e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):("number"!=typeof e.modelValue||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Mt(window,"resize",n),yield w(),n()})))),{sliderWrapper:o}})(o,r,E),{firstValue:ae,secondValue:ie,sliderSize:se}=Y(r);return Mt(le,"touchstart",O,{passive:!1}),Mt(le,"touchmove",O,{passive:!1}),j(hf,u(s({},Y(o)),{sliderSize:se,disabled:h,precision:ne,emitChange:I,resetSize:E,updateDragging:e=>{r.dragging=e}})),t({onSliderClick:_}),(e,t)=>{var n,o;return T(),B("div",{id:e.range?p(P):void 0,ref_key:"sliderWrapper",ref:le,class:G(p(Q)),role:e.range?"group":void 0,"aria-label":e.range&&!p(N)?p(H):void 0,"aria-labelledby":e.range&&p(N)?null==(n=p(i))?void 0:n.labelId:void 0},[M("div",{ref_key:"slider",ref:c,class:G([p(l).e("runway"),{"show-input":e.showInput&&!e.range},p(l).is("disabled",p(h))]),style:oe(p(k)),onMousedown:p(L),onTouchstartPassive:p(L)},[M("div",{class:G(p(l).e("bar")),style:oe(p(S))},null,6),Z(Rf,{id:e.range?void 0:p(P),ref_key:"firstButton",ref:f,"model-value":p(ae),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":e.range||!p(N)?p(q):void 0,"aria-labelledby":!e.range&&p(N)?null==(o=p(i))?void 0:o.labelId:void 0,"aria-valuemin":e.min,"aria-valuemax":e.range?p(ie):e.max,"aria-valuenow":p(ae),"aria-valuetext":p(W),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":p(h),"onUpdate:modelValue":p(R)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),e.range?(T(),te(Rf,{key:0,ref_key:"secondButton",ref:v,"model-value":p(ie),vertical:e.vertical,"tooltip-class":e.tooltipClass,placement:e.placement,role:"slider","aria-label":p(K),"aria-valuemin":p(ae),"aria-valuemax":e.max,"aria-valuenow":p(ie),"aria-valuetext":p(X),"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":p(h),"onUpdate:modelValue":p($)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),e.showStops?(T(),B("div",{key:1},[(T(!0),B(J,null,ye(p(F),((e,t)=>(T(),B("div",{key:t,class:G(p(l).e("stop")),style:oe(p(V)(e))},null,6)))),128))])):re("v-if",!0),p(ee).length>0?(T(),B(J,{key:2},[M("div",null,[(T(!0),B(J,null,ye(p(ee),((e,t)=>(T(),B("div",{key:t,style:oe(p(V)(e.position)),class:G([p(l).e("stop"),p(l).e("marks-stop")])},null,6)))),128))]),M("div",{class:G(p(l).e("marks"))},[(T(!0),B(J,null,ye(p(ee),((e,t)=>(T(),te(p(Ff),{key:t,mark:e.mark,style:oe(p(V)(e.position)),onMousedown:ue((t=>p(A)(e.position)),["stop"])},null,8,["mark","style","onMousedown"])))),128))],2)],64)):re("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),e.showInput&&!e.range?(T(),te(p(Ip),{key:0,ref:"input","model-value":p(ae),class:G(p(l).e("input")),step:e.step,disabled:p(h),controls:e.showInputControls,min:e.min,max:e.max,precision:p(ne),debounce:e.debounce,size:p(D),"onUpdate:modelValue":p(R),onChange:p(I)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}})),[["__file","slider.vue"]])),Nf=Yn(s({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:so},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Gn},activeActionIcon:{type:Gn},activeIcon:{type:Gn},inactiveIcon:{type:Gn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Function},id:String,tabindex:{type:[String,Number]}},Ar(["ariaLabel"]))),zf={[lo]:e=>Jt(e)||S(e)||Qt(e),[ao]:e=>Jt(e)||S(e)||Qt(e),[ro]:e=>Jt(e)||S(e)||Qt(e)},Df="ElSwitch",jf=O({name:Df});const Hf=eo(Hr(O(u(s({},jf),{props:Nf,emits:zf,setup(e,{expose:t,emit:n}){const o=e,{formItem:l}=Zr(),a=Gr(),r=Io("switch"),{inputId:i}=Jr(o,{formItemContext:l}),s=Xr(C((()=>o.loading))),u=m(!1!==o.modelValue),c=m(),d=m(),f=C((()=>[r.b(),r.m(a.value),r.is("disabled",s.value),r.is("checked",k.value)])),v=C((()=>[r.e("label"),r.em("label","left"),r.is("active",!k.value)])),h=C((()=>[r.e("label"),r.em("label","right"),r.is("active",k.value)])),b=C((()=>({width:fn(o.width)})));g((()=>o.modelValue),(()=>{u.value=!0}));const x=C((()=>!!u.value&&o.modelValue)),k=C((()=>x.value===o.activeValue));[o.activeValue,o.inactiveValue].includes(x.value)||(n(lo,o.inactiveValue),n(ao,o.inactiveValue),n(ro,o.inactiveValue)),g(k,(e=>{var t;c.value.checked=e,o.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"change").catch((e=>{})))}));const S=()=>{const e=k.value?o.inactiveValue:o.activeValue;n(lo,e),n(ao,e),n(ro,e),w((()=>{c.value.checked=k.value}))},E=()=>{if(s.value)return;const{beforeChange:e}=o;if(!e)return void S();const t=e();[Fe(t),Jt(t)].includes(!0)||rn(Df,"beforeChange must return type `Promise` or `boolean`"),Fe(t)?t.then((e=>{e&&S()})).catch((e=>{})):t&&S()};return y((()=>{c.value.checked=k.value})),t({focus:()=>{var e,t;null==(t=null==(e=c.value)?void 0:e.focus)||t.call(e)},checked:k}),(e,t)=>(T(),B("div",{class:G(p(f)),onClick:ue(E,["prevent"])},[M("input",{id:p(i),ref_key:"input",ref:c,class:G(p(r).e("input")),type:"checkbox",role:"switch","aria-checked":p(k),"aria-disabled":p(s),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:p(s),tabindex:e.tabindex,onChange:S,onKeydown:_e(E,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),e.inlinePrompt||!e.inactiveIcon&&!e.inactiveText?re("v-if",!0):(T(),B("span",{key:0,class:G(p(v))},[e.inactiveIcon?(T(),te(p(Kr),{key:0},{default:ee((()=>[(T(),te(ne(e.inactiveIcon)))])),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(T(),B("span",{key:1,"aria-hidden":p(k)},ae(e.inactiveText),9,["aria-hidden"])):re("v-if",!0)],2)),M("span",{ref_key:"core",ref:d,class:G(p(r).e("core")),style:oe(p(b))},[e.inlinePrompt?(T(),B("div",{key:0,class:G(p(r).e("inner"))},[e.activeIcon||e.inactiveIcon?(T(),te(p(Kr),{key:0,class:G(p(r).is("icon"))},{default:ee((()=>[(T(),te(ne(p(k)?e.activeIcon:e.inactiveIcon)))])),_:1},8,["class"])):e.activeText||e.inactiveText?(T(),B("span",{key:1,class:G(p(r).is("text")),"aria-hidden":!p(k)},ae(p(k)?e.activeText:e.inactiveText),11,["aria-hidden"])):re("v-if",!0)],2)):re("v-if",!0),M("div",{class:G(p(r).e("action"))},[e.loading?(T(),te(p(Kr),{key:0,class:G(p(r).is("loading"))},{default:ee((()=>[Z(p(Mn))])),_:1},8,["class"])):p(k)?H(e.$slots,"active-action",{key:1},(()=>[e.activeActionIcon?(T(),te(p(Kr),{key:0},{default:ee((()=>[(T(),te(ne(e.activeActionIcon)))])),_:1})):re("v-if",!0)])):p(k)?re("v-if",!0):H(e.$slots,"inactive-action",{key:2},(()=>[e.inactiveActionIcon?(T(),te(p(Kr),{key:0},{default:ee((()=>[(T(),te(ne(e.inactiveActionIcon)))])),_:1})):re("v-if",!0)]))],2)],6),e.inlinePrompt||!e.activeIcon&&!e.activeText?re("v-if",!0):(T(),B("span",{key:1,class:G(p(h))},[e.activeIcon?(T(),te(p(Kr),{key:0},{default:ee((()=>[(T(),te(ne(e.activeIcon)))])),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(T(),B("span",{key:1,"aria-hidden":!p(k)},ae(e.activeText),9,["aria-hidden"])):re("v-if",!0)],2))],10,["onClick"]))}})),[["__file","switch.vue"]])),qf=Symbol("tabsRootContextKey"),Wf=Yn({tabs:{type:Array,default:()=>[]}}),Kf="ElTabBar",Uf=O({name:Kf});var Yf=Hr(O(u(s({},Uf),{props:Wf,setup(e,{expose:t}){const n=e,o=b(),l=N(qf);l||rn(Kf,"");const a=Io("tabs"),r=m(),i=m(),s=()=>i.value=(()=>{let e=0,t=0;const a=["top","bottom"].includes(l.props.tabPosition)?"width":"height",r="width"===a?"x":"y",i="x"===r?"left":"top";return n.tabs.every((n=>{var l,r;const s=null==(r=null==(l=o.parent)?void 0:l.refs)?void 0:r[`tab-${n.uid}`];if(!s)return!1;if(!n.active)return!0;e=s[`offset${nn(i)}`],t=s[`client${nn(a)}`];const u=window.getComputedStyle(s);return"width"===a&&(t-=Number.parseFloat(u.paddingLeft)+Number.parseFloat(u.paddingRight),e+=Number.parseFloat(u.paddingLeft)),!1})),{[a]:`${t}px`,transform:`translate${nn(r)}(${e}px)`}})(),u=[];g((()=>n.tabs),(()=>d(this,null,(function*(){yield w(),s(),(()=>{var e;u.forEach((e=>e.stop())),u.length=0;const t=null==(e=o.parent)?void 0:e.refs;if(t)for(const n in t)if(n.startsWith("tab-")){const e=t[n];e&&u.push(Pt(e,s))}})()}))),{immediate:!0});const c=Pt(r,(()=>s()));return P((()=>{u.forEach((e=>e.stop())),u.length=0,c.stop()})),t({ref:r,update:s}),(e,t)=>(T(),B("div",{ref_key:"barRef",ref:r,class:G([p(a).e("active-bar"),p(a).is(p(l).props.tabPosition)]),style:oe(i.value)},null,6))}})),[["__file","tab-bar.vue"]]);const Gf=Yn({panes:{type:Array,default:()=>[]},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Xf="ElTabNav",Zf=O({name:Xf,props:Gf,emits:{tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},setup(e,{expose:t,emit:n}){const o=N(qf);o||rn(Xf,"");const l=Io("tabs"),a=function({document:e=Bt}={}){if(!e)return m("visible");const t=m(e.visibilityState);return Mt(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}(),r=function({window:e=Tt}={}){if(!e)return m(!1);const t=m(e.document.hasFocus());return Mt(e,"blur",(()=>{t.value=!1})),Mt(e,"focus",(()=>{t.value=!0})),t}(),i=m(),s=m(),u=m(),c=m(),p=m(!1),f=m(0),v=m(!1),h=m(!0),b=C((()=>["top","bottom"].includes(o.props.tabPosition)?"width":"height")),x=C((()=>({transform:`translate${"width"===b.value?"X":"Y"}(-${f.value}px)`}))),k=()=>{if(!i.value)return;const e=i.value[`offset${nn(b.value)}`],t=f.value;if(!t)return;const n=t>e?t-e:0;f.value=n},S=()=>{if(!i.value||!s.value)return;const e=s.value[`offset${nn(b.value)}`],t=i.value[`offset${nn(b.value)}`],n=f.value;if(e-n<=t)return;const o=e-n>2*t?n+t:e-t;f.value=o},E=()=>d(this,null,(function*(){const e=s.value;if(!(p.value&&u.value&&i.value&&e))return;yield w();const t=u.value.querySelector(".is-active");if(!t)return;const n=i.value,l=["top","bottom"].includes(o.props.tabPosition),a=t.getBoundingClientRect(),r=n.getBoundingClientRect(),c=l?e.offsetWidth-r.width:e.offsetHeight-r.height,d=f.value;let v=d;l?(a.leftr.right&&(v=d+a.right-r.right)):(a.topr.bottom&&(v=d+(a.bottom-r.bottom))),v=Math.max(v,0),f.value=Math.min(v,c)})),I=()=>{var t;if(!s.value||!i.value)return;e.stretch&&(null==(t=c.value)||t.update());const n=s.value[`offset${nn(b.value)}`],o=i.value[`offset${nn(b.value)}`],l=f.value;o0&&(f.value=0))},O=e=>{const t=e.code,{up:n,down:o,left:l,right:a}=oo;if(![n,o,l,a].includes(t))return;const r=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),i=r.indexOf(e.target);let s;s=t===l||t===n?0===i?r.length-1:i-1:i{h.value&&(v.value=!0)},B=()=>v.value=!1;return g(a,(e=>{"hidden"===e?h.value=!1:"visible"===e&&setTimeout((()=>h.value=!0),50)})),g(r,(e=>{e?setTimeout((()=>h.value=!0),50):h.value=!1})),Pt(u,I),y((()=>setTimeout((()=>E()),0))),X((()=>I())),t({scrollToActiveTab:E,removeFocus:B}),()=>{const t=p.value?[Z("span",{class:[l.e("nav-prev"),l.is("disabled",!p.value.prev)],onClick:k},[Z(Kr,null,{default:()=>[Z(hn,null,null)]})]),Z("span",{class:[l.e("nav-next"),l.is("disabled",!p.value.next)],onClick:S},[Z(Kr,null,{default:()=>[Z(bn,null,null)]})])]:null,a=e.panes.map(((t,a)=>{var r,i,s,u;const c=t.uid,d=t.props.disabled,p=null!=(i=null!=(r=t.props.name)?r:t.index)?i:`${a}`,f=!d&&(t.isClosable||e.editable);t.index=`${a}`;const m=f?Z(Kr,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[Z(Sn,null,null)]}):null,g=(null==(u=(s=t.slots).label)?void 0:u.call(s))||t.props.label,h=!d&&t.active?0:-1;return Z("div",{ref:`tab-${c}`,class:[l.e("item"),l.is(o.props.tabPosition),l.is("active",t.active),l.is("disabled",d),l.is("closable",f),l.is("focus",v.value)],id:`tab-${p}`,key:`tab-${c}`,"aria-controls":`pane-${p}`,role:"tab","aria-selected":t.active,tabindex:h,onFocus:()=>T(),onBlur:()=>B(),onClick:e=>{B(),n("tabClick",t,p,e)},onKeydown:e=>{!f||e.code!==oo.delete&&e.code!==oo.backspace||n("tabRemove",t,e)}},[g,m])}));return Z("div",{ref:u,class:[l.e("nav-wrap"),l.is("scrollable",!!p.value),l.is(o.props.tabPosition)]},[t,Z("div",{class:l.e("nav-scroll"),ref:i},[Z("div",{class:[l.e("nav"),l.is(o.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(o.props.tabPosition))],ref:s,style:x.value,role:"tablist",onKeydown:O},[e.type?null:Z(Yf,{ref:c,tabs:[...e.panes]},null),a])])])}}}),Jf=Yn({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:()=>!0},stretch:Boolean}),Qf=e=>S(e)||Qt(e),ev={[lo]:e=>Qf(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Qf(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Qf(e),tabAdd:()=>!0},tv=O({name:"ElTabs",props:Jf,emits:ev,setup(e,{emit:t,slots:n,expose:o}){var l;const a=Io("tabs"),r=C((()=>["left","right"].includes(e.tabPosition))),{children:i,addChild:s,removeChild:u}=Sr(b(),"ElTabPane"),c=m(),p=m(null!=(l=e.modelValue)?l:"0"),f=(n,o=!1)=>d(this,null,(function*(){var l,a,r;if(p.value!==n&&!Zt(n))try{!1!==(yield null==(l=e.beforeLeave)?void 0:l.call(e,n,p.value))&&(p.value=n,o&&(t(lo,n),t("tabChange",n)),null==(r=null==(a=c.value)?void 0:a.removeFocus)||r.call(a))}catch(i){}})),v=(e,n,o)=>{e.props.disabled||(f(n,!0),t("tabClick",e,o))},h=(e,n)=>{e.props.disabled||Zt(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},y=()=>{t("edit",void 0,"add"),t("tabAdd")};g((()=>e.modelValue),(e=>f(e))),g(p,(()=>d(this,null,(function*(){var e;yield w(),null==(e=c.value)||e.scrollToActiveTab()})))),j(qf,{props:e,currentName:p,registerPane:e=>{i.value.push(e)},sortPane:s,unregisterPane:u}),o({currentName:p});const x=({render:e})=>e();return()=>{const t=n["add-icon"],o=e.editable||e.addable?Z("div",{class:[a.e("new-tab"),r.value&&a.e("new-tab-vertical")],tabindex:"0",onClick:y,onKeydown:e=>{e.code===oo.enter&&y()}},[t?H(n,"add-icon"):Z(Kr,{class:a.is("icon-plus")},{default:()=>[Z($n,null,null)]})]):null,l=Z("div",{class:[a.e("header"),r.value&&a.e("header-vertical"),a.is(e.tabPosition)]},[Z(x,{render:()=>{const t=i.value.some((e=>e.slots.label));return Z(Zf,{ref:c,currentName:p.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:v,onTabRemove:h},{$stable:!t})}},null),o]),s=Z("div",{class:a.e("content")},[H(n,"default")]);return Z("div",{class:[a.b(),a.m(e.tabPosition),{[a.m("card")]:"card"===e.type,[a.m("border-card")]:"border-card"===e.type}]},[s,l])}}}),nv=Yn({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),ov="ElTabPane",lv=O({name:ov});var av=Hr(O(u(s({},lv),{props:nv,setup(e){const t=e,n=b(),o=Q(),l=N(qf);l||rn(ov,"usage: ");const a=Io("tab-pane"),r=m(),i=C((()=>t.closable||l.props.closable)),s=gt((()=>{var e;return l.currentName.value===(null!=(e=t.name)?e:r.value)})),u=m(s.value),c=C((()=>{var e;return null!=(e=t.name)?e:r.value})),d=gt((()=>!t.lazy||u.value||s.value));g(s,(e=>{e&&(u.value=!0)}));const f=U({uid:n.uid,slots:o,props:t,paneName:c,active:s,index:r,isClosable:i});return l.registerPane(f),y((()=>{l.sortPane(f)})),K((()=>{l.unregisterPane(f.uid)})),(e,t)=>p(d)?ce((T(),B("div",{key:0,id:`pane-${p(c)}`,class:G(p(a).b()),role:"tabpanel","aria-hidden":!p(s),"aria-labelledby":`tab-${p(c)}`},[H(e.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[de,p(s)]]):re("v-if",!0)}})),[["__file","tab-pane.vue"]]);const rv=eo(tv,{TabPane:av}),iv=to(av),sv=Symbol("uploadContextKey");class uv extends Error{constructor(e,t,n,o){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=o}}function cv(e,t,n){let o;return o=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new uv(o,n.status,t.method,e)}const dv=["text","picture","picture-card"];let pv=1;const fv=()=>Date.now()+pv++,vv=Yn({action:{type:String,default:"#"},headers:{type:Object},method:{type:String,default:"post"},data:{type:[Object,Function,Promise],default:()=>({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:dv,default:"text"},httpRequest:{type:Function,default:e=>{"undefined"==typeof XMLHttpRequest&&rn("ElUpload","XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const o=new FormData;if(e.data)for(const[a,r]of Object.entries(e.data))F(r)&&r.length?o.append(a,...r):o.append(a,r);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError(cv(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError(cv(n,e,t));e.onSuccess(function(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const l=e.headers||{};if(l instanceof Headers)l.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[a,r]of Object.entries(l))je(r)||t.setRequestHeader(a,String(r));return t.send(o),t}},disabled:Boolean,limit:Number}),mv=Yn(u(s({},vv),{beforeUpload:{type:Function,default:R},beforeRemove:{type:Function},onRemove:{type:Function,default:R},onChange:{type:Function,default:R},onPreview:{type:Function,default:R},onSuccess:{type:Function,default:R},onProgress:{type:Function,default:R},onError:{type:Function,default:R},onExceed:{type:Function,default:R},crossorigin:{type:String}})),gv=Yn({files:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},handlePreview:{type:Function,default:R},listType:{type:String,values:dv,default:"text"},crossorigin:{type:String}}),hv=O({name:"ElUploadList"});var bv=Hr(O(u(s({},hv),{props:gv,emits:{remove:e=>!!e},setup(e,{emit:t}){const n=e,{t:o}=xo(),l=Io("upload"),a=Io("icon"),r=Io("list"),i=Xr(),s=m(!1),u=C((()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",n.disabled)])),c=e=>{t("remove",e)};return(e,t)=>(T(),te(ie,{tag:"ul",class:G(p(u)),name:p(r).b()},{default:ee((()=>[(T(!0),B(J,null,ye(e.files,((t,n)=>(T(),B("li",{key:t.uid||t.name,class:G([p(l).be("list","item"),p(l).is(t.status),{focusing:s.value}]),tabindex:"0",onKeydown:_e((e=>!p(i)&&c(t)),["delete"]),onFocus:e=>s.value=!0,onBlur:e=>s.value=!1,onClick:e=>s.value=!1},[H(e.$slots,"default",{file:t,index:n},(()=>["picture"===e.listType||"uploading"!==t.status&&"picture-card"===e.listType?(T(),B("img",{key:0,class:G(p(l).be("list","item-thumbnail")),src:t.url,crossorigin:e.crossorigin,alt:""},null,10,["src","crossorigin"])):re("v-if",!0),"uploading"===t.status||"picture-card"!==e.listType?(T(),B("div",{key:1,class:G(p(l).be("list","item-info"))},[M("a",{class:G(p(l).be("list","item-name")),onClick:ue((n=>e.handlePreview(t)),["prevent"])},[Z(p(Kr),{class:G(p(a).m("document"))},{default:ee((()=>[Z(p(In))])),_:1},8,["class"]),M("span",{class:G(p(l).be("list","item-file-name")),title:t.name},ae(t.name),11,["title"])],10,["onClick"]),"uploading"===t.status?(T(),te(p(gf),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(t.percentage),style:oe("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),M("label",{class:G(p(l).be("list","item-status-label"))},["text"===e.listType?(T(),te(p(Kr),{key:0,class:G([p(a).m("upload-success"),p(a).m("circle-check")])},{default:ee((()=>[Z(p(xn))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(T(),te(p(Kr),{key:1,class:G([p(a).m("upload-success"),p(a).m("check")])},{default:ee((()=>[Z(p(wn))])),_:1},8,["class"])):re("v-if",!0)],2),p(i)?re("v-if",!0):(T(),te(p(Kr),{key:2,class:G(p(a).m("close")),onClick:e=>c(t)},{default:ee((()=>[Z(p(Sn))])),_:2},1032,["class","onClick"])),re(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),re(" This is a bug which needs to be fixed "),re(" TODO: Fix the incorrect navigation interaction "),p(i)?re("v-if",!0):(T(),B("i",{key:3,class:G(p(a).m("close-tip"))},ae(p(o)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(T(),B("span",{key:4,class:G(p(l).be("list","item-actions"))},[M("span",{class:G(p(l).be("list","item-preview")),onClick:n=>e.handlePreview(t)},[Z(p(Kr),{class:G(p(a).m("zoom-in"))},{default:ee((()=>[Z(p(qn))])),_:1},8,["class"])],10,["onClick"]),p(i)?re("v-if",!0):(T(),B("span",{key:0,class:G(p(l).be("list","item-delete")),onClick:e=>c(t)},[Z(p(Kr),{class:G(p(a).m("delete"))},{default:ee((()=>[Z(p(En))])),_:1},8,["class"])],10,["onClick"]))],2)):re("v-if",!0)]))],42,["onKeydown","onFocus","onBlur","onClick"])))),128)),H(e.$slots,"append")])),_:3},8,["class","name"]))}})),[["__file","upload-list.vue"]]);const yv=Yn({disabled:{type:Boolean,default:!1}}),wv={file:e=>F(e)},xv="ElUploadDrag",kv=O({name:xv});var Cv=Hr(O(u(s({},kv),{props:yv,emits:wv,setup(e,{emit:t}){N(sv)||rn(xv,"usage: ");const n=Io("upload"),o=m(!1),l=Xr(),a=e=>{if(l.value)return;o.value=!1,e.stopPropagation();const n=Array.from(e.dataTransfer.files);t("file",n)},r=()=>{l.value||(o.value=!0)};return(e,t)=>(T(),B("div",{class:G([p(n).b("dragger"),p(n).is("dragover",o.value)]),onDrop:ue(a,["prevent"]),onDragover:ue(r,["prevent"]),onDragleave:ue((e=>o.value=!1),["prevent"])},[H(e.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}})),[["__file","upload-dragger.vue"]]);const Sv=Yn(u(s({},vv),{beforeUpload:{type:Function,default:R},onRemove:{type:Function,default:R},onStart:{type:Function,default:R},onSuccess:{type:Function,default:R},onProgress:{type:Function,default:R},onError:{type:Function,default:R},onExceed:{type:Function,default:R}})),Ev=O({name:"ElUploadContent",inheritAttrs:!1});var Iv=Hr(O(u(s({},Ev),{props:Sv,setup(e,{expose:t}){const n=e,o=Io("upload"),l=Xr(),a=x({}),r=x(),i=e=>{if(0===e.length)return;const{autoUpload:t,limit:o,fileList:l,multiple:a,onStart:r,onExceed:i}=n;if(o&&l.length+e.length>o)i(e,l);else{a||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=fv(),r(e),t&&s(e)}}},s=e=>d(this,null,(function*(){if(r.value.value="",!n.beforeUpload)return c(e);let t,o={};try{const l=n.data,a=n.beforeUpload(e);o=Ve(n.data)?et(n.data):n.data,t=yield a,Ve(n.data)&&Ze(l,o)&&(o=et(n.data))}catch(a){t=!1}if(!1===t)return void n.onRemove(e);let l=e;t instanceof Blob&&(l=t instanceof File?t:new File([t],e.name,{type:e.type})),c(Object.assign(l,{uid:e.uid}),o)})),u=(e,t)=>d(this,null,(function*(){return $(e)?e(t):e})),c=(e,t)=>d(this,null,(function*(){const{headers:o,data:l,method:r,withCredentials:i,name:s,action:c,onProgress:d,onSuccess:p,onError:f,httpRequest:v}=n;try{t=yield u(null!=t?t:l,e)}catch(b){return void n.onRemove(e)}const{uid:m}=e,g={headers:o||{},withCredentials:i,file:e,data:t,method:r,filename:s,action:c,onProgress:t=>{d(t,e)},onSuccess:t=>{p(t,e),delete a.value[m]},onError:t=>{f(t,e),delete a.value[m]}},h=v(g);a.value[m]=h,h instanceof Promise&&h.then(g.onSuccess,g.onError)})),f=e=>{const t=e.target.files;t&&i(Array.from(t))},v=()=>{l.value||(r.value.value="",r.value.click())},m=()=>{v()};return t({abort:e=>{var t;(t=a.value,Object.entries(t)).filter(e?([t])=>String(e.uid)===t:()=>!0).forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete a.value[e]}))},upload:s}),(e,t)=>(T(),B("div",{class:G([p(o).b(),p(o).m(e.listType),p(o).is("drag",e.drag),p(o).is("disabled",p(l))]),tabindex:p(l)?"-1":"0",onClick:v,onKeydown:_e(ue(m,["self"]),["enter","space"])},[e.drag?(T(),te(Cv,{key:0,disabled:p(l),onFile:i},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["disabled"])):H(e.$slots,"default",{key:1}),M("input",{ref_key:"inputRef",ref:r,class:G(p(o).e("input")),name:e.name,disabled:p(l),multiple:e.multiple,accept:e.accept,type:"file",onChange:f,onClick:ue((()=>{}),["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}})),[["__file","upload-content.vue"]]);const Ov="ElUpload",Tv=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},Bv=O({name:"ElUpload"});const Mv=eo(Hr(O(u(s({},Bv),{props:mv,setup(e,{expose:t}){const n=e,o=Xr(),l=x(),{abort:a,submit:r,clearFiles:i,uploadFiles:c,handleStart:f,handleError:v,handleRemove:m,handleSuccess:h,handleProgress:b,revokeFileObjectURL:y}=((e,t)=>{const n=Xt(e,"fileList",void 0,{passive:!0}),o=e=>n.value.find((t=>t.uid===e.uid));function l(e){var n;null==(n=t.value)||n.abort(e)}function a(e){n.value=n.value.filter((t=>t!==e))}return g((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:o,url:l}=t;if(!l&&o)try{t.url=URL.createObjectURL(o)}catch(a){e.onError(a,t,n.value)}return t})))})),g(n,(e=>{for(const t of e)t.uid||(t.uid=fv()),t.status||(t.status="success")}),{immediate:!0,deep:!0}),{uploadFiles:n,abort:l,clearFiles:function(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))},handleError:(t,l)=>{const r=o(l);r&&(r.status="fail",a(r),e.onError(t,r,n.value),e.onChange(r,n.value))},handleProgress:(t,l)=>{const a=o(l);a&&(e.onProgress(t,a,n.value),a.status="uploading",a.percentage=Math.round(t.percent))},handleStart:t=>{je(t.uid)&&(t.uid=fv());const o={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{o.url=URL.createObjectURL(t)}catch(l){l.message,e.onError(l,o,n.value)}n.value=[...n.value,o],e.onChange(o,n.value)},handleSuccess:(t,l)=>{const a=o(l);a&&(a.status="success",a.response=t,e.onSuccess(t,a,n.value),e.onChange(a,n.value))},handleRemove:t=>d(void 0,null,(function*(){const r=t instanceof File?o(t):t;r||rn(Ov,"file to be removed not found");const i=t=>{l(t),a(t),e.onRemove(t,n.value),Tv(t)};e.beforeRemove?!1!==(yield e.beforeRemove(r,n.value))&&i(r):i(r)})),submit:function(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))},revokeFileObjectURL:Tv}})(n,l),w=C((()=>"picture-card"===n.listType)),k=C((()=>u(s({},n),{fileList:c.value,onStart:f,onProgress:b,onSuccess:h,onError:v,onRemove:m})));return P((()=>{c.value.forEach(y)})),j(sv,{accept:W(n,"accept")}),t({abort:a,submit:r,clearFiles:i,handleStart:f,handleRemove:m}),(e,t)=>(T(),B("div",null,[p(w)&&e.showFileList?(T(),te(bv,{key:0,disabled:p(o),"list-type":e.listType,files:p(c),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:p(m)},Ee({append:ee((()=>[Z(Iv,q({ref_key:"uploadRef",ref:l},p(k)),{default:ee((()=>[e.$slots.trigger?H(e.$slots,"trigger",{key:0}):re("v-if",!0),!e.$slots.trigger&&e.$slots.default?H(e.$slots,"default",{key:1}):re("v-if",!0)])),_:3},16)])),_:2},[e.$slots.file?{name:"default",fn:ee((({file:t,index:n})=>[H(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!p(w)||p(w)&&!e.showFileList?(T(),te(Iv,q({key:1,ref_key:"uploadRef",ref:l},p(k)),{default:ee((()=>[e.$slots.trigger?H(e.$slots,"trigger",{key:0}):re("v-if",!0),!e.$slots.trigger&&e.$slots.default?H(e.$slots,"default",{key:1}):re("v-if",!0)])),_:3},16)):re("v-if",!0),e.$slots.trigger?H(e.$slots,"default",{key:2}):re("v-if",!0),H(e.$slots,"tip"),!p(w)&&e.showFileList?(T(),te(bv,{key:3,disabled:p(o),"list-type":e.listType,files:p(c),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:p(m)},Ee({_:2},[e.$slots.file?{name:"default",fn:ee((({file:t,index:n})=>[H(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}})),[["__file","upload.vue"]])),_v=Yn({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:Object},targetAreaClickable:{type:Boolean,default:!0}}),Lv=(e,t,n,o,l)=>{const a=m(null),r=()=>{let t;return t=S(e.value)?document.querySelector(e.value):$(e.value)?e.value():e.value,t},i=()=>{const e=r();if(!e||!t.value)return void(a.value=null);!function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:l,bottom:a,left:r}=e.getBoundingClientRect();return o>=0&&r>=0&&l<=t&&a<=n}(e)&&t.value&&e.scrollIntoView(l.value);const{left:n,top:o,width:i,height:s}=e.getBoundingClientRect();a.value={left:n,top:o,width:i,height:s,radius:0}};y((()=>{g([t,e],(()=>{i()}),{immediate:!0}),window.addEventListener("resize",i)})),P((()=>{window.removeEventListener("resize",i)}));const s=e=>{var t;return null!=(t=F(n.value.offset)?n.value.offset[e]:n.value.offset)?t:6},u=C((()=>{var e;if(!a.value)return a.value;const t=s(0),o=s(1),l=(null==(e=n.value)?void 0:e.radius)||2;return{left:a.value.left-t,top:a.value.top-o,width:a.value.width+2*t,height:a.value.height+2*o,radius:l}})),c=C((()=>{const e=r();return o.value&&e&&window.DOMRect?{getBoundingClientRect(){var e,t,n,o;return window.DOMRect.fromRect({width:(null==(e=u.value)?void 0:e.width)||0,height:(null==(t=u.value)?void 0:t.height)||0,x:(null==(n=u.value)?void 0:n.left)||0,y:(null==(o=u.value)?void 0:o.top)||0})}}:e||void 0}));return{mergedPosInfo:u,triggerTarget:c}},Av=Symbol("ElTour");const Rv=()=>({name:"overflow",fn(e){return d(this,null,(function*(){const t=yield br(e);let n=0;t.left>0&&(n=t.left),t.right>0&&(n=t.right);return{data:{maxWidth:e.rects.floating.width-n}}}))}}),$v=O({name:"ElTourMask",inheritAttrs:!1});var Fv=Hr(O(u(s({},$v),{props:_v,setup(e){const t=e,{ns:n}=N(Av),o=C((()=>{var e,n;return null!=(n=null==(e=t.pos)?void 0:e.radius)?n:2})),l=C((()=>{const e=o.value,t=`a${e},${e} 0 0 1`;return{topRight:`${t} ${e},${e}`,bottomRight:`${t} ${-e},${e}`,bottomLeft:`${t} ${-e},${-e}`,topLeft:`${t} ${e},${-e}`}})),a=C((()=>{const e=window.innerWidth,n=window.innerHeight,a=l.value,r=`M${e},0 L0,0 L0,${n} L${e},${n} L${e},0 Z`,i=o.value;return t.pos?`${r} M${t.pos.left+i},${t.pos.top} h${t.pos.width-2*i} ${a.topRight} v${t.pos.height-2*i} ${a.bottomRight} h${-t.pos.width+2*i} ${a.bottomLeft} v${-t.pos.height+2*i} ${a.topLeft} z`:r})),r=C((()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"})));return Oo(W(t,"visible"),{ns:n}),(e,t)=>e.visible?(T(),B("div",q({key:0,class:p(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:e.zIndex,pointerEvents:e.pos&&e.targetAreaClickable?"none":"auto"}},e.$attrs),[(T(),B("svg",{style:{width:"100%",height:"100%"}},[M("path",{class:G(p(n).e("hollow")),style:oe(p(r)),d:p(a)},null,14,["d"])]))],16)):re("v-if",!0)}})),[["__file","mask.vue"]]);const Vv=Yn({placement:{type:String,values:["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],default:"bottom"},reference:{type:Object,default:null},strategy:{type:String,values:["absolute","fixed"],default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Pv=O({name:"ElTourContent"});var Nv=Hr(O(u(s({},Pv),{props:Vv,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,o=m(n.placement),l=m(n.strategy),a=m(null),r=m(null);g((()=>n.placement),(()=>{o.value=n.placement}));const{contentStyle:i,arrowStyle:s}=((e,t,n,o,l,a,r,i)=>{const s=m(),u=m(),c=m({}),f={x:s,y:u,placement:o,strategy:l,middlewareData:c},v=C((()=>{const e=[yr(p(a)),xr(),wr(),Rv()];return p(i)&&p(n)&&e.push(kr({element:p(n)})),e})),g=()=>d(void 0,null,(function*(){if(!ht)return;const n=p(e),a=p(t);if(!n||!a)return;const r=yield Cr(n,a,{placement:p(o),strategy:p(l),middleware:p(v)});on(f).forEach((e=>{f[e].value=r[e]}))})),h=C((()=>{if(!p(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:p(r)};const{overflow:t}=p(c);return{position:p(l),zIndex:p(r),top:null!=p(u)?`${p(u)}px`:"",left:null!=p(s)?`${p(s)}px`:"",maxWidth:(null==t?void 0:t.maxWidth)?`${null==t?void 0:t.maxWidth}px`:""}})),b=C((()=>{if(!p(i))return{};const{arrow:e}=p(c);return{left:null!=(null==e?void 0:e.x)?`${null==e?void 0:e.x}px`:"",top:null!=(null==e?void 0:e.y)?`${null==e?void 0:e.y}px`:""}}));let w;return y((()=>{const n=p(e),o=p(t);n&&o&&(w=hr(n,o,g)),k((()=>{g()}))})),P((()=>{w&&w()})),{update:g,contentStyle:h,arrowStyle:b}})(W(n,"reference"),a,r,o,l,W(n,"offset"),W(n,"zIndex"),W(n,"showArrow")),u=C((()=>o.value.split("-")[0])),{ns:c}=N(Av),f=()=>{t("close")},v=e=>{"pointer"===e.detail.focusReason&&e.preventDefault()};return(e,t)=>(T(),B("div",{ref_key:"contentRef",ref:a,style:oe(p(i)),class:G(p(c).e("content")),"data-side":p(u),tabindex:"-1"},[Z(p(Vs),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":a.value||void 0,onReleaseRequested:f,onFocusoutPrevented:v},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["focus-trap-el"]),e.showArrow?(T(),B("span",{key:0,ref_key:"arrowRef",ref:r,style:oe(p(s)),class:G(p(c).e("arrow"))},null,6)):re("v-if",!0)],14,["data-side"]))}})),[["__file","content.vue"]]),zv=O({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let o=0;return()=>{var l,a;const r=null==(l=t.default)?void 0:l.call(t),i=[];let s=0;var u;return r.length&&(u=co(null==(a=r[0])?void 0:a.children),F(u)&&u.forEach((e=>{var t;"ElTourStep"===(null==(t=(null==e?void 0:e.type)||{})?void 0:t.name)&&(i.push(e),s+=1)}))),o!==s&&(o=s,n("update-total",s)),i.length?i[e.current]:null}}});const Dv=Yn({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Gn},placement:Vv.placement,contentStyle:{type:[Object]},mask:{type:[Boolean,Object],default:!0},gap:{type:Object,default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:[Boolean,Object],default:()=>({block:"center"})},type:{type:String},appendTo:{type:[String,Object],default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),jv={[lo]:e=>Jt(e),"update:current":e=>Qt(e),close:e=>Qt(e),finish:()=>!0,change:e=>Qt(e)},Hv=O({name:"ElTour"});var qv=Hr(O(u(s({},Hv),{props:Dv,emits:jv,setup(e,{emit:t}){const n=e,o=Io("tour"),l=m(0),a=m(),r=Xt(n,"current",t,{passive:!0}),i=C((()=>{var e;return null==(e=a.value)?void 0:e.target})),s=C((()=>[o.b(),"primary"===y.value?o.m("primary"):""])),u=C((()=>{var e;return(null==(e=a.value)?void 0:e.placement)||n.placement})),c=C((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.contentStyle)?t:n.contentStyle})),d=C((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.mask)?t:n.mask})),f=C((()=>!!d.value&&n.modelValue)),v=C((()=>Jt(d.value)?void 0:d.value)),h=C((()=>{var e,t;return!!i.value&&(null!=(t=null==(e=a.value)?void 0:e.showArrow)?t:n.showArrow)})),b=C((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.scrollIntoViewOptions)?t:n.scrollIntoViewOptions})),y=C((()=>{var e,t;return null!=(t=null==(e=a.value)?void 0:e.type)?t:n.type})),{nextZIndex:w}=ga(),x=w(),k=C((()=>{var e;return null!=(e=n.zIndex)?e:x})),{mergedPosInfo:S,triggerTarget:E}=Lv(i,W(n,"modelValue"),W(n,"gap"),d,b);g((()=>n.modelValue),(e=>{e||(r.value=0)}));const I=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",r.value))},O=e=>{l.value=e},_=Q();return j(Av,{currentStep:a,current:r,total:l,showClose:W(n,"showClose"),closeIcon:W(n,"closeIcon"),mergedType:y,ns:o,slots:_,updateModelValue(e){t("update:modelValue",e)},onClose(){t("close",r.value)},onFinish(){t("finish")},onChange(){t("change",r.value)}}),(e,t)=>(T(),B(J,null,[Z(p(lu),{to:e.appendTo},{default:ee((()=>{var t,n;return[M("div",q({class:p(s)},e.$attrs),[Z(Fv,{visible:p(f),fill:null==(t=p(v))?void 0:t.color,style:oe(null==(n=p(v))?void 0:n.style),pos:p(S),"z-index":p(k),"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(T(),te(Nv,{key:p(r),reference:p(E),placement:p(u),"show-arrow":p(h),"z-index":p(k),style:oe(p(c)),onClose:I},{default:ee((()=>[Z(p(zv),{current:p(r),onUpdateTotal:O},{default:ee((()=>[H(e.$slots,"default")])),_:3},8,["current"])])),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)]})),_:3},8,["to"]),re(" just for IDE "),re("v-if",!0)],64))}})),[["__file","tour.vue"]]);const Wv=Yn({target:{type:[String,Object,Function]},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Gn},showArrow:{type:Boolean,default:void 0},placement:Vv.placement,mask:{type:[Boolean,Object],default:void 0},contentStyle:{type:[Object]},prevButtonProps:{type:Object},nextButtonProps:{type:Object},scrollIntoViewOptions:{type:[Boolean,Object],default:void 0},type:{type:String}}),Kv=O({name:"ElTourStep"});var Uv=Hr(O(u(s({},Kv),{props:Wv,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,{Close:o}=Xn,{t:l}=xo(),{currentStep:a,current:r,total:i,showClose:s,closeIcon:u,mergedType:c,ns:d,slots:f,updateModelValue:v,onClose:m,onFinish:h,onChange:b}=N(Av);g(n,(e=>{a.value=e}),{immediate:!0});const y=C((()=>{var e;return null!=(e=n.showClose)?e:s.value})),w=C((()=>{var e,t;return null!=(t=null!=(e=n.closeIcon)?e:u.value)?t:o})),x=e=>{if(e)return tt(e,["children","onClick"])},k=()=>{var e,t;r.value-=1,(null==(e=n.prevButtonProps)?void 0:e.onClick)&&(null==(t=n.prevButtonProps)||t.onClick()),b()},S=()=>{var e;r.value>=i.value-1?E():r.value+=1,(null==(e=n.nextButtonProps)?void 0:e.onClick)&&n.nextButtonProps.onClick(),b()},E=()=>{I(),h()},I=()=>{v(!1),m(),t("close")};return(e,t)=>(T(),B(J,null,[p(y)?(T(),B("button",{key:0,"aria-label":"Close",class:G(p(d).e("closebtn")),type:"button",onClick:I},[Z(p(Kr),{class:G(p(d).e("close"))},{default:ee((()=>[(T(),te(ne(p(w))))])),_:1},8,["class"])],2)):re("v-if",!0),M("header",{class:G([p(d).e("header"),{"show-close":p(s)}])},[H(e.$slots,"header",{},(()=>[M("span",{role:"heading",class:G(p(d).e("title"))},ae(e.title),3)]))],2),M("div",{class:G(p(d).e("body"))},[H(e.$slots,"default",{},(()=>[M("span",null,ae(e.description),1)]))],2),M("footer",{class:G(p(d).e("footer"))},[M("div",{class:G(p(d).b("indicators"))},[p(f).indicators?(T(),te(ne(p(f).indicators),{key:0,current:p(r),total:p(i)},null,8,["current","total"])):(T(!0),B(J,{key:1},ye(p(i),((e,t)=>(T(),B("span",{key:e,class:G([p(d).b("indicator"),t===p(r)?"is-active":""])},null,2)))),128))],2),M("div",{class:G(p(d).b("buttons"))},[p(r)>0?(T(),te(p(zu),q({key:0,size:"small",type:p(c)},x(e.prevButtonProps),{onClick:k}),{default:ee((()=>{var t,n;return[le(ae(null!=(n=null==(t=e.prevButtonProps)?void 0:t.children)?n:p(l)("el.tour.previous")),1)]})),_:1},16,["type"])):re("v-if",!0),p(r)<=p(i)-1?(T(),te(p(zu),q({key:1,size:"small",type:"primary"===p(c)?"default":"primary"},x(e.nextButtonProps),{onClick:S}),{default:ee((()=>{var t,n;return[le(ae(null!=(n=null==(t=e.nextButtonProps)?void 0:t.children)?n:p(r)===p(i)-1?p(l)("el.tour.finish"):p(l)("el.tour.next")),1)]})),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}})),[["__file","step.vue"]]);const Yv=eo(qv,{TourStep:Uv}),Gv=to(Uv);function Xv(e){let t;const n=m(!1),o=U(u(s({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function l(){var e,t;null==(t=null==(e=c.$el)?void 0:e.parentNode)||t.removeChild(c.$el)}function a(){if(!n.value)return;const e=o.parent;n.value=!1,e.vLoadingAddClassList=void 0,function(){const e=o.parent,t=c.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):(dn(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),dn(e,t.bm("parent","hidden"))}l(),i.unmount()}()}const r=O({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:l}=Vr("loading");return t({ns:n,zIndex:l}),()=>{const e=o.spinner||o.svg,t=Se("svg",s({class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50"},e?{innerHTML:e}:{}),[Se("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),l=o.text?Se("p",{class:n.b("text")},[o.text]):void 0;return Se(pe,{name:n.b("fade"),onAfterLeave:a},{default:ee((()=>[ce(Z("div",{style:{backgroundColor:o.background||""},class:[n.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[Se("div",{class:n.b("spinner")},[t,l])]),[[de,o.visible]])]))})}}}),i=Pe(r),c=i.mount(document.createElement("div"));return u(s({},Y(o)),{setText:function(e){o.text=e},removeElLoadingChild:l,close:function(){var l;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(a,400),o.visible=!1,null==(l=e.closed)||l.call(e))},handleAfterLeave:a,vm:c,get $el(){return c.$el}})}let Zv;const Jv=function(e={}){if(!ht)return;const t=Qv(e);if(t.fullscreen&&Zv)return Zv;const n=Xv(u(s({},t),{closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(Zv=void 0)}}));em(t,t.parent,n),tm(t,t.parent,n),t.parent.vLoadingAddClassList=()=>tm(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o=o?`${Number.parseInt(o)+1}`:"1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),w((()=>n.visible.value=t.visible)),t.fullscreen&&(Zv=n),n},Qv=e=>{var t,n,o,l;let a;return a=S(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(o=e.lock)&&o,customClass:e.customClass||"",visible:null==(l=e.visible)||l,beforeClose:e.beforeClose,closed:e.closed,target:a}},em=(e,t,n)=>d(void 0,null,(function*(){const{nextZIndex:o}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=pn(document.body,"position"),n.originalOverflow.value=pn(document.body,"overflow"),l.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=pn(document.body,"position"),yield w();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";l[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt(pn(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])l[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=pn(t,"position");for(const[e,t]of Object.entries(l))n.$el.style[e]=t})),tm=(e,t,n)=>{const o=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?dn(t,o.bm("parent","relative")):cn(t,o.bm("parent","relative")),e.fullscreen&&e.lock?cn(t,o.bm("parent","hidden")):dn(t,o.bm("parent","hidden"))},nm=Symbol("ElLoading"),om=(e,t)=>{var n,o,l,a;const r=t.instance,i=e=>_(t.value)?t.value[e]:void 0,s=t=>(e=>{const t=S(e)&&(null==r?void 0:r[e])||e;return t?m(t):t})(i(t)||e.getAttribute(`element-loading-${Ne(t)}`)),u=null!=(n=i("fullscreen"))?n:t.modifiers.fullscreen,c={text:s("text"),svg:s("svg"),svgViewBox:s("svgViewBox"),spinner:s("spinner"),background:s("background"),customClass:s("customClass"),fullscreen:u,target:null!=(o=i("target"))?o:u?void 0:e,body:null!=(l=i("body"))?l:t.modifiers.body,lock:null!=(a=i("lock"))?a:t.modifiers.lock};e[nm]={options:c,instance:Jv(c)}},lm={mounted(e,t){t.value&&om(e,t)},updated(e,t){const n=e[nm];t.oldValue!==t.value&&(t.value&&!t.oldValue?om(e,t):t.value&&t.oldValue?_(t.value)&&((e,t)=>{for(const n of Object.keys(t))z(t[n])&&(t[n].value=e[n])})(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[nm])||t.instance.close(),e[nm]=null}},am={install(e){e.directive("loading",lm),e.config.globalProperties.$loading=Jv},directive:lm,service:Jv},rm=["success","info","warning","error"],im={customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ht?document.body:void 0},sm=Yn({customClass:{type:String,default:im.customClass},center:{type:Boolean,default:im.center},dangerouslyUseHTMLString:{type:Boolean,default:im.dangerouslyUseHTMLString},duration:{type:Number,default:im.duration},icon:{type:Gn,default:im.icon},id:{type:String,default:im.id},message:{type:[String,Object,Function],default:im.message},onClose:{type:Function,default:im.onClose},showClose:{type:Boolean,default:im.showClose},type:{type:String,values:rm,default:im.type},plain:{type:Boolean,default:im.plain},offset:{type:Number,default:im.offset},zIndex:{type:Number,default:im.zIndex},grouping:{type:Boolean,default:im.grouping},repeatNum:{type:Number,default:im.repeatNum}}),um=ze([]),cm=e=>{const{prev:t}=(e=>{const t=um.findIndex((t=>t.id===e)),n=um[t];let o;return t>0&&(o=um[t-1]),{current:n,prev:o}})(e);return t?t.vm.exposed.bottom.value:0},dm=O({name:"ElMessage"});var pm=Hr(O(u(s({},dm),{props:sm,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{Close:o}=Zn,{ns:l,zIndex:a}=Vr("message"),{currentZIndex:r,nextZIndex:i}=a,s=m(),u=m(!1),c=m(0);let d;const f=C((()=>n.type?"error"===n.type?"danger":n.type:"info")),v=C((()=>{const e=n.type;return{[l.bm("icon",e)]:e&&Jn[e]}})),h=C((()=>n.icon||Jn[n.type]||"")),b=C((()=>cm(n.id))),w=C((()=>((e,t)=>um.findIndex((t=>t.id===e))>0?16:t)(n.id,n.offset)+b.value)),x=C((()=>c.value+w.value)),k=C((()=>({top:`${w.value}px`,zIndex:r.value})));function S(){0!==n.duration&&({stop:d}=It((()=>{I()}),n.duration))}function E(){null==d||d()}function I(){u.value=!1}return y((()=>{S(),i(),u.value=!0})),g((()=>n.repeatNum),(()=>{E(),S()})),Mt(document,"keydown",(function({code:e}){e===oo.esc&&I()})),Pt(s,(()=>{c.value=s.value.getBoundingClientRect().height})),t({visible:u,bottom:x,close:I}),(e,t)=>(T(),te(pe,{name:p(l).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:ee((()=>[ce(M("div",{id:e.id,ref_key:"messageRef",ref:s,class:G([p(l).b(),{[p(l).m(e.type)]:e.type},p(l).is("center",e.center),p(l).is("closable",e.showClose),p(l).is("plain",e.plain),e.customClass]),style:oe(p(k)),role:"alert",onMouseenter:E,onMouseleave:S},[e.repeatNum>1?(T(),te(p(du),{key:0,value:e.repeatNum,type:p(f),class:G(p(l).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),p(h)?(T(),te(p(Kr),{key:1,class:G([p(l).e("icon"),p(v)])},{default:ee((()=>[(T(),te(ne(p(h))))])),_:1},8,["class"])):re("v-if",!0),H(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(T(),B(J,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),M("p",{class:G(p(l).e("content")),innerHTML:e.message},null,10,["innerHTML"])],2112)):(T(),B("p",{key:0,class:G(p(l).e("content"))},ae(e.message),3))])),e.showClose?(T(),te(p(Kr),{key:2,class:G(p(l).e("closeBtn")),onClick:ue(I,["stop"])},{default:ee((()=>[Z(p(o))])),_:1},8,["class","onClick"])):re("v-if",!0)],46,["id"]),[[de,u.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}})),[["__file","message.vue"]]);let fm=1;const vm=e=>{const t=!e||S(e)||V(e)||$(e)?{message:e}:e,n=s(s({},im),t);if(n.appendTo){if(S(n.appendTo)){let e=document.querySelector(n.appendTo);en(e)||(e=document.body),n.appendTo=e}}else n.appendTo=document.body;return Jt(Dr.grouping)&&!n.grouping&&(n.grouping=Dr.grouping),Qt(Dr.duration)&&3e3===n.duration&&(n.duration=Dr.duration),Qt(Dr.offset)&&16===n.offset&&(n.offset=Dr.offset),Jt(Dr.showClose)&&!n.showClose&&(n.showClose=Dr.showClose),n},mm=(e,t)=>{var n=e,{appendTo:o}=n,l=c(n,["appendTo"]);const a="message_"+fm++,r=l.onClose,i=document.createElement("div"),d=u(s({},l),{id:a,onClose:()=>{null==r||r(),(e=>{const t=um.indexOf(e);if(-1===t)return;um.splice(t,1);const{handler:n}=e;n.close()})(m)},onDestroy:()=>{De(null,i)}}),p=Z(pm,d,$(d.message)||V(d.message)?{default:$(d.message)?d.message:()=>d.message}:null);p.appContext=t||gm._context,De(p,i),o.appendChild(i.firstElementChild);const f=p.component,v={close:()=>{f.exposed.visible.value=!1}},m={id:a,vnode:p,vm:f,handler:v,props:p.component.props};return m},gm=(e={},t)=>{if(!ht)return{close:()=>{}};const n=vm(e);if(n.grouping&&um.length){const e=um.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}if(Qt(Dr.max)&&um.length>=Dr.max)return{close:()=>{}};const o=mm(n,t);return um.push(o),o.handler};rm.forEach((e=>{gm[e]=(t={},n)=>{const o=vm(t);return gm(u(s({},o),{type:e}),n)}})),gm.closeAll=function(e){for(const t of um)e&&e!==t.props.type||t.handler.close()},gm._context=null;const hm=((e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e))(gm,"$message");var bm=Hr(O({name:"ElMessageBox",directives:{TrapFocus:Zu},components:s({ElButton:zu,ElFocusTrap:Vs,ElInput:Ki,ElOverlay:yd,ElIcon:Kr},Zn),inheritAttrs:!1,props:{buttonSize:{type:String,validator:so},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:l,size:a}=Vr("message-box",C((()=>e.buttonSize))),{t:r}=n,{nextZIndex:i}=o,c=m(!1),p=U({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Be(Mn),cancelButtonLoadingIcon:Be(Mn),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),f=C((()=>{const e=p.type;return{[l.bm("icon",e)]:e&&Jn[e]}})),v=oa(),h=oa(),b=C((()=>p.icon||Jn[p.type]||"")),x=C((()=>!!p.message)),k=m(),S=m(),E=m(),I=m(),O=m(),T=C((()=>p.confirmButtonClass));g((()=>p.inputValue),(t=>d(this,null,(function*(){yield w(),"prompt"===e.boxType&&null!==t&&$()}))),{immediate:!0}),g((()=>c.value),(t=>{var n,o;t&&("prompt"!==e.boxType&&(p.autofocus?E.value=null!=(o=null==(n=O.value)?void 0:n.$el)?o:k.value:E.value=k.value),p.zIndex=i()),"prompt"===e.boxType&&(t?w().then((()=>{var e;I.value&&I.value.$el&&(p.autofocus?E.value=null!=(e=F())?e:k.value:E.value=k.value)})):(p.editorErrorMessage="",p.validateError=!1))}));const B=C((()=>e.draggable)),M=C((()=>e.overflow));function _(){c.value&&(c.value=!1,w((()=>{p.action&&t("action",p.action)})))}go(k,S,B,M),y((()=>d(this,null,(function*(){yield w(),e.closeOnHashChange&&window.addEventListener("hashchange",_)})))),P((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",_)}));const L=()=>{e.closeOnClickModal&&R(p.distinguishCancelAndClose?"close":"cancel")},A=Jl(L),R=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||$())&&(p.action=t,p.beforeClose?null==(n=p.beforeClose)||n.call(p,t,p,_):_())},$=()=>{if("prompt"===e.boxType){const e=p.inputPattern;if(e&&!e.test(p.inputValue||""))return p.editorErrorMessage=p.inputErrorMessage||r("el.messagebox.error"),p.validateError=!0,!1;const t=p.inputValidator;if("function"==typeof t){const e=t(p.inputValue);if(!1===e)return p.editorErrorMessage=p.inputErrorMessage||r("el.messagebox.error"),p.validateError=!0,!1;if("string"==typeof e)return p.editorErrorMessage=e,p.validateError=!0,!1}}return p.editorErrorMessage="",p.validateError=!1,!0},F=()=>{const e=I.value.$refs;return e.input||e.textarea},V=()=>{R("close")};return e.lockScroll&&Oo(c),u(s({},Y(p)),{ns:l,overlayEvent:A,visible:c,hasMessage:x,typeClass:f,contentId:v,inputId:h,btnSize:a,iconComponent:b,confirmButtonClasses:T,rootRef:k,focusStartRef:E,headerRef:S,inputRef:I,confirmRef:O,doClose:_,handleClose:V,onCloseRequested:()=>{e.closeOnPressEscape&&V()},handleWrapperClick:L,handleInputEnter:e=>{if("textarea"!==p.inputType)return e.preventDefault(),R("confirm")},handleAction:R,t:r})}}),[["render",function(e,t,n,o,l,a){const r=Ie("el-icon"),i=Ie("close"),s=Ie("el-input"),u=Ie("el-button"),c=Ie("el-focus-trap"),d=Ie("el-overlay");return T(),te(pe,{name:"fade-in-linear",onAfterLeave:t=>e.$emit("vanish"),persisted:""},{default:ee((()=>[ce(Z(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ee((()=>[M("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:G(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[Z(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ee((()=>[M("div",{ref:"rootRef",class:G([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:oe(e.customStyle),tabindex:"-1",onClick:ue((()=>{}),["stop"])},[null!==e.title&&void 0!==e.title?(T(),B("div",{key:0,ref:"headerRef",class:G([e.ns.e("header"),{"show-close":e.showClose}])},[M("div",{class:G(e.ns.e("title"))},[e.iconComponent&&e.center?(T(),te(r,{key:0,class:G([e.ns.e("status"),e.typeClass])},{default:ee((()=>[(T(),te(ne(e.iconComponent)))])),_:1},8,["class"])):re("v-if",!0),M("span",null,ae(e.title),1)],2),e.showClose?(T(),B("button",{key:0,type:"button",class:G(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:_e(ue((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"])},[Z(r,{class:G(e.ns.e("close"))},{default:ee((()=>[Z(i)])),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):re("v-if",!0)],2)):re("v-if",!0),M("div",{id:e.contentId,class:G(e.ns.e("content"))},[M("div",{class:G(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(T(),te(r,{key:0,class:G([e.ns.e("status"),e.typeClass])},{default:ee((()=>[(T(),te(ne(e.iconComponent)))])),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(T(),B("div",{key:1,class:G(e.ns.e("message"))},[H(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(T(),te(ne(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(T(),te(ne(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ee((()=>[le(ae(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):re("v-if",!0)],2),ce(M("div",{class:G(e.ns.e("input"))},[Z(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t=>e.inputValue=t,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:G({invalid:e.validateError}),onKeydown:_e(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),M("div",{class:G(e.ns.e("errormsg")),style:oe({visibility:e.editorErrorMessage?"visible":"hidden"})},ae(e.editorErrorMessage),7)],2),[[de,e.showInput]])],10,["id"]),M("div",{class:G(e.ns.e("btns"))},[e.showCancelButton?(T(),te(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:G([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t=>e.handleAction("cancel"),onKeydown:_e(ue((t=>e.handleAction("cancel")),["prevent"]),["enter"])},{default:ee((()=>[le(ae(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):re("v-if",!0),ce(Z(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:G([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t=>e.handleAction("confirm"),onKeydown:_e(ue((t=>e.handleAction("confirm")),["prevent"]),["enter"])},{default:ee((()=>[le(ae(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[de,e.showConfirmButton]])],2)],14,["onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])])),_:3},8,["z-index","overlay-class","mask"]),[[de,e.visible]])])),_:3},8,["onAfterLeave"])}],["__file","index.vue"]]);const ym=new Map,wm=(e,t,n=null)=>{const o=Z(bm,e,$(e.message)||V(e.message)?{default:$(e.message)?e.message:()=>e.message}:null);return o.appContext=n,De(o,t),(e=>{let t=document.body;return e.appendTo&&(S(e.appendTo)&&(t=document.querySelector(e.appendTo)),en(e.appendTo)&&(t=e.appendTo),en(t)||(t=document.body)),t})(e).appendChild(t.firstElementChild),o.component},xm=(e,t)=>{const n=document.createElement("div");e.onVanish=()=>{De(null,n),ym.delete(l)},e.onAction=t=>{const n=ym.get(l);let a;a=e.showInput?{value:l.inputValue,action:t}:t,e.callback?e.callback(a,o.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(a)};const o=wm(e,n,t),l=o.proxy;for(const a in e)L(e,a)&&!L(l.$props,a)&&(l[a]=e[a]);return l.visible=!0,l};function km(e,t=null){if(!ht)return Promise.reject();let n;return S(e)||V(e)?e={message:e}:n=e.callback,new Promise(((o,l)=>{const a=xm(e,null!=t?t:km._context);ym.set(a,{options:e,callback:n,resolve:o,reject:l})}))}const Cm={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};["alert","confirm","prompt"].forEach((e=>{km[e]=function(e){return(t,n,o,l)=>{let a="";return _(n)?(o=n,a=""):a=Zt(n)?"":n,km(Object.assign(s({title:a,message:t,type:""},Cm[e]),o,{boxType:e}),l)}}(e)})),km.close=()=>{ym.forEach(((e,t)=>{t.doClose()})),ym.clear()},km._context=null;const Sm=km;Sm.install=e=>{Sm._context=e._context,e.config.globalProperties.$msgbox=Sm,e.config.globalProperties.$messageBox=Sm,e.config.globalProperties.$alert=Sm.alert,e.config.globalProperties.$confirm=Sm.confirm,e.config.globalProperties.$prompt=Sm.prompt};const Em=Sm;export{Vi as A,Nn as B,vd as C,Yc as D,jr as E,gd as F,Wp as G,qp as H,md as I,hd as J,su as K,fp as L,vp as M,pp as N,am as O,iv as P,rv as Q,Ec as R,cc as S,uc as T,Du as U,Md as V,lf as W,Ic as X,Sc as Y,Gv as Z,Yv as _,hm as a,Em as b,Ip as c,Od as d,Kr as e,Mv as f,fv as g,qc as h,nt as i,Hc as j,Pf as k,Hf as l,zu as m,of as n,nf as o,td as p,Jc as q,ff as r,jc as s,Ki as t,Dn as u,lm as v,Ln as w,_n as x,kp as y,Pi as z}; diff --git a/assets/element-plus-Dy-NuVsF.js.gz b/assets/element-plus-Dy-NuVsF.js.gz new file mode 100644 index 00000000..e0fc8179 Binary files /dev/null and b/assets/element-plus-Dy-NuVsF.js.gz differ diff --git a/assets/fabric-Dlz3ta-n.js b/assets/fabric-Dlz3ta-n.js new file mode 100644 index 00000000..8293f292 --- /dev/null +++ b/assets/fabric-Dlz3ta-n.js @@ -0,0 +1 @@ +var t=Math.pow,e=(t,e,s)=>new Promise(((i,r)=>{var n=t=>{try{a(s.next(t))}catch(e){r(e)}},o=t=>{try{a(s.throw(t))}catch(e){r(e)}},a=t=>t.done?i(t.value):Promise.resolve(t.value).then(n,o);a((s=s.apply(t,e)).next())}));function s(t,e,s){return(e="symbol"==typeof(i=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e))?i:i+"")in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t;var i}function i(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function r(t){for(var e=1;e=0)continue;s[i]=t[i]}return s}(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(i=0;i=0||{}.propertyIsEnumerable.call(t,s)&&(r[s]=t[s])}return r}function o(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}class a{constructor(){s(this,"browserShadowBlurConstant",1),s(this,"DPI",96),s(this,"devicePixelRatio","undefined"!=typeof window?window.devicePixelRatio:1),s(this,"perfLimitSizeTotal",2097152),s(this,"maxCacheSideLimit",4096),s(this,"minCacheSideLimit",256),s(this,"disableStyleCopyPaste",!1),s(this,"enableGLFiltering",!0),s(this,"textureSize",4096),s(this,"forceGLPutImageData",!1),s(this,"cachesBoundsOfCurve",!0),s(this,"fontPaths",{}),s(this,"NUM_FRACTION_DIGITS",4)}}const h=new class extends a{constructor(t){super(),this.configure(t)}configure(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.assign(this,t)}addFonts(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fontPaths=r(r({},this.fontPaths),t)}removeFonts(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{delete this.fontPaths[t]}))}clearFonts(){this.fontPaths={}}restoreDefaults(t){const e=new a,s=(null==t?void 0:t.reduce(((t,s)=>(t[s]=e[s],t)),{}))||e;this.configure(s)}},c=function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;ithis.testPrecision(e,t))),e.getExtension("WEBGL_lose_context").loseContext(),c("log","WebGL: max texture size ".concat(this.maxTextureSize)))}isSupported(t){return!!this.maxTextureSize&&this.maxTextureSize>=t}}const f={};let p;const m=()=>p||(p={document:document,window:window,isTouchSupported:"ontouchstart"in window||"ontouchstart"in document||window&&window.navigator&&window.navigator.maxTouchPoints>0,WebGLProbe:new g,dispose(){},copyPasteData:f}),v=()=>m().document,y=()=>m().window,_=()=>{var t;return Math.max(null!==(t=h.devicePixelRatio)&&void 0!==t?t:y().devicePixelRatio,1)},x=new class{constructor(){s(this,"charWidthsCache",{}),s(this,"boundsOfCurveCache",{})}getFontCache(t){let{fontFamily:e,fontStyle:s,fontWeight:i}=t;e=e.toLowerCase(),this.charWidthsCache[e]||(this.charWidthsCache[e]={});const r=this.charWidthsCache[e],n="".concat(s.toLowerCase(),"_").concat((i+"").toLowerCase());return r[n]||(r[n]={}),r[n]}clearFontCache(t){(t=(t||"").toLowerCase())?this.charWidthsCache[t]&&delete this.charWidthsCache[t]:this.charWidthsCache={}}limitDimsByArea(t){const{perfLimitSizeTotal:e}=h,s=Math.sqrt(e*t);return[Math.floor(s),Math.floor(e/s)]}},C="6.4.1";function b(){}const S=Math.PI/2,w=2*Math.PI,T=Math.PI/180,O=Object.freeze([1,0,0,1,0,0]),D=16,k=.4477152502,M="center",E="left",P="top",A="bottom",j="right",F="none",L=/\r?\n/,R="moving",I="scaling",B="rotating",X="rotate",Y="skewing",W="resizing",V="modifyPoly",H="modifyPath",G="changed",z="scale",N="scaleX",U="scaleY",q="skewX",K="skewY",J="fill",Q="stroke",Z="modified",$="json",tt="svg",et=new class{constructor(){this[$]=new Map,this[tt]=new Map}has(t){return this[$].has(t)}getClass(t){const e=this[$].get(t);if(!e)throw new l("No class registered for ".concat(t));return e}setClass(t,e){e?this[$].set(e,t):(this[$].set(t.type,t),this[$].set(t.type.toLowerCase(),t))}getSVGClass(t){return this[tt].get(t)}setSVGClass(t,e){this[tt].set(null!=e?e:t.type.toLowerCase(),t)}},st=new class extends Array{remove(t){const e=this.indexOf(t);e>-1&&this.splice(e,1)}cancelAll(){const t=this.splice(0);return t.forEach((t=>t.abort())),t}cancelByCanvas(t){if(!t)return[];const e=this.filter((e=>{var s;return e.target===t||"object"==typeof e.target&&(null===(s=e.target)||void 0===s?void 0:s.canvas)===t}));return e.forEach((t=>t.abort())),e}cancelByTarget(t){if(!t)return[];const e=this.filter((e=>e.target===t));return e.forEach((t=>t.abort())),e}};class it{constructor(){s(this,"__eventListeners",{})}on(t,e){if(this.__eventListeners||(this.__eventListeners={}),"object"==typeof t)return Object.entries(t).forEach((t=>{let[e,s]=t;this.on(e,s)})),()=>this.off(t);if(e){const s=t;return this.__eventListeners[s]||(this.__eventListeners[s]=[]),this.__eventListeners[s].push(e),()=>this.off(s,e)}return()=>!1}once(t,e){if("object"==typeof t){const e=[];return Object.entries(t).forEach((t=>{let[s,i]=t;e.push(this.once(s,i))})),()=>e.forEach((t=>t()))}if(e){const s=this.on(t,(function(){for(var t=arguments.length,i=new Array(t),r=0;r!1}_removeEventListener(t,e){if(this.__eventListeners[t])if(e){const s=this.__eventListeners[t],i=s.indexOf(e);i>-1&&s.splice(i,1)}else this.__eventListeners[t]=[]}off(t,e){if(this.__eventListeners)if(void 0===t)for(const s in this.__eventListeners)this._removeEventListener(s);else"object"==typeof t?Object.entries(t).forEach((t=>{let[e,s]=t;this._removeEventListener(e,s)})):this._removeEventListener(t,e)}fire(t,e){var s;if(!this.__eventListeners)return;const i=null===(s=this.__eventListeners[t])||void 0===s?void 0:s.concat();if(i)for(let r=0;r{const s=t.indexOf(e);return-1!==s&&t.splice(s,1),t},nt=t=>{if(0===t)return 1;switch(Math.abs(t)/S){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},ot=t=>{if(0===t)return 0;const e=t/S,s=Math.sign(t);switch(e){case 1:return s;case 2:return 0;case 3:return-s}return Math.sin(t)};class at{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;"object"==typeof t?(this.x=t.x,this.y=t.y):(this.x=t,this.y=e)}add(t){return new at(this.x+t.x,this.y+t.y)}addEquals(t){return this.x+=t.x,this.y+=t.y,this}scalarAdd(t){return new at(this.x+t,this.y+t)}scalarAddEquals(t){return this.x+=t,this.y+=t,this}subtract(t){return new at(this.x-t.x,this.y-t.y)}subtractEquals(t){return this.x-=t.x,this.y-=t.y,this}scalarSubtract(t){return new at(this.x-t,this.y-t)}scalarSubtractEquals(t){return this.x-=t,this.y-=t,this}multiply(t){return new at(this.x*t.x,this.y*t.y)}scalarMultiply(t){return new at(this.x*t,this.y*t)}scalarMultiplyEquals(t){return this.x*=t,this.y*=t,this}divide(t){return new at(this.x/t.x,this.y/t.y)}scalarDivide(t){return new at(this.x/t,this.y/t)}scalarDivideEquals(t){return this.x/=t,this.y/=t,this}eq(t){return this.x===t.x&&this.y===t.y}lt(t){return this.xt.x&&this.y>t.y}gte(t){return this.x>=t.x&&this.y>=t.y}lerp(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;return e=Math.max(Math.min(1,e),0),new at(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)}distanceFrom(t){const e=this.x-t.x,s=this.y-t.y;return Math.sqrt(e*e+s*s)}midPointFrom(t){return this.lerp(t)}min(t){return new at(Math.min(this.x,t.x),Math.min(this.y,t.y))}max(t){return new at(Math.max(this.x,t.x),Math.max(this.y,t.y))}toString(){return"".concat(this.x,",").concat(this.y)}setXY(t,e){return this.x=t,this.y=e,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setFromPoint(t){return this.x=t.x,this.y=t.y,this}swap(t){const e=this.x,s=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=s}clone(){return new at(this.x,this.y)}rotate(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht;const s=ot(t),i=nt(t),r=this.subtract(e);return new at(r.x*i-r.y*s,r.x*s+r.y*i).add(e)}transform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new at(t[0]*this.x+t[2]*this.y+(e?0:t[4]),t[1]*this.x+t[3]*this.y+(e?0:t[5]))}}const ht=new at(0,0),ct=t=>!!t&&Array.isArray(t._objects);function lt(t){class e extends t{constructor(){super(...arguments),s(this,"_objects",[])}_onObjectAdded(t){}_onObjectRemoved(t){}_onStackOrderChanged(t){}add(){for(var t=arguments.length,e=new Array(t),s=0;sthis._onObjectAdded(t))),i}insertAt(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;ithis._onObjectAdded(t))),this._objects.length}remove(){const t=this._objects,e=[];for(var s=arguments.length,i=new Array(s),r=0;r{const i=t.indexOf(s);-1!==i&&(t.splice(i,1),e.push(s),this._onObjectRemoved(s))})),e}forEachObject(t){this.getObjects().forEach(((e,s,i)=>t(e,s,i)))}getObjects(){for(var t=arguments.length,e=new Array(t),s=0;st.isType(...e)))}item(t){return this._objects[t]}isEmpty(){return 0===this._objects.length}size(){return this._objects.length}contains(t,s){return!!this._objects.includes(t)||!!s&&this._objects.some((s=>s instanceof e&&s.contains(t,!0)))}complexity(){return this._objects.reduce(((t,e)=>t+(e.complexity?e.complexity():0)),0)}sendObjectToBack(t){return!(!t||t===this._objects[0]||(rt(this._objects,t),this._objects.unshift(t),this._onStackOrderChanged(t),0))}bringObjectToFront(t){return!(!t||t===this._objects[this._objects.length-1]||(rt(this._objects,t),this._objects.push(t),this._onStackOrderChanged(t),0))}sendObjectBackwards(t,e){if(!t)return!1;const s=this._objects.indexOf(t);if(0!==s){const i=this.findNewLowerIndex(t,s,e);return rt(this._objects,t),this._objects.splice(i,0,t),this._onStackOrderChanged(t),!0}return!1}bringObjectForward(t,e){if(!t)return!1;const s=this._objects.indexOf(t);if(s!==this._objects.length-1){const i=this.findNewUpperIndex(t,s,e);return rt(this._objects,t),this._objects.splice(i,0,t),this._onStackOrderChanged(t),!0}return!1}moveObjectTo(t,e){return t!==this._objects[e]&&(rt(this._objects,t),this._objects.splice(e,0,t),this._onStackOrderChanged(t),!0)}findNewLowerIndex(t,e,s){let i;if(s){i=e;for(let s=e-1;s>=0;--s)if(t.isOverlapping(this._objects[s])){i=s;break}}else i=e-1;return i}findNewUpperIndex(t,e,s){let i;if(s){i=e;for(let s=e+1;s1&&void 0!==arguments[1]?arguments[1]:{};const o=[],a=new at(e,s),h=a.add(new at(i,r));for(let c=this._objects.length-1;c>=0;c--){const t=this._objects[c];t.selectable&&t.visible&&(n&&t.intersectsWithRect(a,h)||t.isContainedWithinRect(a,h)||n&&t.containsPoint(a)||n&&t.containsPoint(h))&&o.push(t)}return o}}return e}class ut extends it{_setOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(const e in t)this.set(e,t[e])}_setObject(t){for(const e in t)this._set(e,t[e])}set(t,e){return"object"==typeof t?this._setObject(t):this._set(t,e),this}_set(t,e){this[t]=e}toggle(t){const e=this.get(t);return"boolean"==typeof e&&this.set(t,!e),this}get(t){return this[t]}}function dt(t){return y().requestAnimationFrame(t)}function gt(t){return y().cancelAnimationFrame(t)}let ft=0;const pt=()=>ft++,mt=()=>{const t=v().createElement("canvas");if(!t||void 0===t.getContext)throw new l("Failed to create `canvas` element");return t},vt=()=>v().createElement("img"),yt=(t,e,s)=>t.toDataURL("image/".concat(e),s),_t=t=>t*T,xt=t=>t/T,Ct=t=>t.every(((t,e)=>t===O[e])),bt=(t,e,s)=>new at(t).transform(e,s),St=t=>{const e=1/(t[0]*t[3]-t[1]*t[2]),s=[e*t[3],-e*t[1],-e*t[2],e*t[0],0,0],{x:i,y:r}=new at(t[4],t[5]).transform(s,!0);return s[4]=-i,s[5]=-r,s},wt=(t,e,s)=>[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],s?0:t[0]*e[4]+t[2]*e[5]+t[4],s?0:t[1]*e[4]+t[3]*e[5]+t[5]],Tt=(t,e)=>t.reduceRight(((t,s)=>s&&t?wt(s,t,e):s||t),void 0)||O.concat(),Ot=t=>{let[e,s]=t;return Math.atan2(s,e)},Dt=t=>{const e=Ot(t),s=Math.pow(t[0],2)+Math.pow(t[1],2),i=Math.sqrt(s),r=(t[0]*t[3]-t[2]*t[1])/i,n=Math.atan2(t[0]*t[2]+t[1]*t[3],s);return{angle:xt(e),scaleX:i,scaleY:r,skewX:xt(n),skewY:0,translateX:t[4]||0,translateY:t[5]||0}},kt=function(t){return[1,0,0,1,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0]};function Mt(){let{angle:t=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{x:e=0,y:s=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=_t(t),r=nt(i),n=ot(i);return[r,n,-n,r,e?e-(r*e-n*s):0,s?s-(n*e+r*s):0]}const Et=function(t){return[t,0,0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,0,0]},Pt=t=>Math.tan(_t(t)),At=t=>[1,0,Pt(t),1,0,0],jt=t=>[1,Pt(t),0,1,0,0],Ft=t=>{let{scaleX:e=1,scaleY:s=1,flipX:i=!1,flipY:r=!1,skewX:n=0,skewY:o=0}=t,a=Et(i?-e:e,r?-s:s);return n&&(a=wt(a,At(n),!0)),o&&(a=wt(a,jt(o),!0)),a},Lt=t=>{const{translateX:e=0,translateY:s=0,angle:i=0}=t;let r=kt(e,s);i&&(r=wt(r,Mt({angle:i})));const n=Ft(t);return Ct(n)||(r=wt(r,n)),r},Rt=function(t){let{signal:e,crossOrigin:s=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i,r){if(e&&e.aborted)return r(new u("loadImage"));const n=vt();let o;e&&(o=function(t){n.src="",r(t)},e.addEventListener("abort",o,{once:!0}));const a=function(){n.onload=n.onerror=null,o&&(null==e||e.removeEventListener("abort",o)),i(n)};t?(n.onload=a,n.onerror=function(){o&&(null==e||e.removeEventListener("abort",o)),r(new l("Error loading ".concat(n.src)))},s&&(n.crossOrigin=s),n.src=t):a()}))},It=function(t){let{signal:e,reviver:s=b}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,r)=>{const n=[];e&&e.addEventListener("abort",r,{once:!0}),Promise.all(t.map((t=>et.getClass(t.type).fromObject(t,{signal:e}).then((e=>(s(t,e),n.push(e),e)))))).then(i).catch((t=>{n.forEach((t=>{t.dispose&&t.dispose()})),r(t)})).finally((()=>{e&&e.removeEventListener("abort",r)}))}))},Bt=function(t){let{signal:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((s,i)=>{const r=[];e&&e.addEventListener("abort",i,{once:!0});const n=Object.values(t).map((t=>t&&t.type&&et.has(t.type)?It([t],{signal:e}).then((t=>{let[e]=t;return r.push(e),e})):t)),o=Object.keys(t);Promise.all(n).then((t=>t.reduce(((t,e,s)=>(t[o[s]]=e,t)),{}))).then(s).catch((t=>{r.forEach((t=>{t.dispose&&t.dispose()})),i(t)})).finally((()=>{e&&e.removeEventListener("abort",i)}))}))},Xt=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).reduce(((e,s)=>(s in t&&(e[s]=t[s]),e)),{})},Yt=(t,e)=>Object.keys(t).reduce(((s,i)=>(e(t[i],i,t)&&(s[i]=t[i]),s)),{}),Wt={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#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",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",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:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#639",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32"},Vt=(t,e,s)=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t),Ht=(t,e,s,i)=>{t/=255,e/=255,s/=255;const r=Math.max(t,e,s),n=Math.min(t,e,s);let o,a;const h=(r+n)/2;if(r===n)o=a=0;else{const i=r-n;switch(a=h>.5?i/(2-r-n):i/(r+n),r){case t:o=(e-s)/i+(e0&&void 0!==arguments[0]?arguments[0]:"1";return parseFloat(t)/(t.endsWith("%")?100:1)},zt=t=>Math.min(Math.round(t),255).toString(16).toUpperCase().padStart(2,"0"),Nt=t=>{let[e,s,i,r=1]=t;const n=Math.round(.3*e+.59*s+.11*i);return[n,n,n,r]};class Ut{constructor(t){if(s(this,"isUnrecognised",!1),t)if(t instanceof Ut)this.setSource([...t._source]);else if(Array.isArray(t)){const[e,s,i,r=1]=t;this.setSource([e,s,i,r])}else this.setSource(this._tryParsingColor(t));else this.setSource([0,0,0,1])}_tryParsingColor(t){return t in Wt&&(t=Wt[t]),"transparent"===t?[255,255,255,0]:Ut.sourceFromHex(t)||Ut.sourceFromRgb(t)||Ut.sourceFromHsl(t)||(this.isUnrecognised=!0)&&[0,0,0,1]}getSource(){return this._source}setSource(t){this._source=t}toRgb(){const[t,e,s]=this.getSource();return"rgb(".concat(t,",").concat(e,",").concat(s,")")}toRgba(){return"rgba(".concat(this.getSource().join(","),")")}toHsl(){const[t,e,s]=Ht(...this.getSource());return"hsl(".concat(t,",").concat(e,"%,").concat(s,"%)")}toHsla(){const[t,e,s,i]=Ht(...this.getSource());return"hsla(".concat(t,",").concat(e,"%,").concat(s,"%,").concat(i,")")}toHex(){return this.toHexa().slice(0,6)}toHexa(){const[t,e,s,i]=this.getSource();return"".concat(zt(t)).concat(zt(e)).concat(zt(s)).concat(zt(Math.round(255*i)))}getAlpha(){return this.getSource()[3]}setAlpha(t){return this._source[3]=t,this}toGrayscale(){return this.setSource(Nt(this.getSource())),this}toBlackWhite(t){const[e,,,s]=Nt(this.getSource()),i=e<(t||127)?0:255;return this.setSource([i,i,i,s]),this}overlayWith(t){t instanceof Ut||(t=new Ut(t));const e=this.getSource(),s=t.getSource(),[i,r,n]=e.map(((t,e)=>Math.round(.5*t+.5*s[e])));return this.setSource([i,r,n,e[3]]),this}static fromRgb(t){return Ut.fromRgba(t)}static fromRgba(t){return new Ut(Ut.sourceFromRgb(t))}static sourceFromRgb(t){const e=t.match(/^rgba?\(\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*(?:\s*[,/]\s*(\d{0,3}(?:\.\d+)?%?)\s*)?\)$/i);if(e){const[t,s,i]=e.slice(1,4).map((t=>{const e=parseFloat(t);return t.endsWith("%")?Math.round(2.55*e):e}));return[t,s,i,Gt(e[4])]}}static fromHsl(t){return Ut.fromHsla(t)}static fromHsla(t){return new Ut(Ut.sourceFromHsl(t))}static sourceFromHsl(t){const e=t.match(/^hsla?\(\s*([+-]?\d{0,3}(?:\.\d+)?(?:deg|turn|rad)?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*[\s|,]\s*(\d{0,3}(?:\.\d+)?%?)\s*(?:\s*[,/]\s*(\d*(?:\.\d+)?%?)\s*)?\)$/i);if(!e)return;const s=(Ut.parseAngletoDegrees(e[1])%360+360)%360/360,i=parseFloat(e[2])/100,r=parseFloat(e[3])/100;let n,o,a;if(0===i)n=o=a=r;else{const t=r<=.5?r*(i+1):r+i-r*i,e=2*r-t;n=Vt(e,t,s+1/3),o=Vt(e,t,s),a=Vt(e,t,s-1/3)}return[Math.round(255*n),Math.round(255*o),Math.round(255*a),Gt(e[4])]}static fromHex(t){return new Ut(Ut.sourceFromHex(t))}static sourceFromHex(t){if(t.match(/^#?(([0-9a-f]){3,4}|([0-9a-f]{2}){3,4})$/i)){const e=t.slice(t.indexOf("#")+1);let s;s=e.length<=4?e.split("").map((t=>t+t)):e.match(/.{2}/g);const[i,r,n,o=255]=s.map((t=>parseInt(t,16)));return[i,r,n,o/255]}}static parseAngletoDegrees(t){const e=t.toLowerCase(),s=parseFloat(e);return e.includes("rad")?xt(s):e.includes("turn")?360*s:s}}const qt=(t,e)=>parseFloat(Number(t).toFixed(e)),Kt=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;const s=/\D{0,2}$/.exec(t),i=parseFloat(t),r=h.DPI;switch(null==s?void 0:s[0]){case"mm":return i*r/25.4;case"cm":return i*r/2.54;case"in":return i*r;case"pt":return i*r/72;case"pc":return i*r/72*12;case"em":return i*e;default:return i}},Jt=t=>{const[e,s]=t.trim().split(" "),[i,r]=(n=e)&&n!==F?[n.slice(1,4),n.slice(5,8)]:n===F?[n,n]:["Mid","Mid"];var n;return{meetOrSlice:s||"meet",alignX:i,alignY:r}},Qt=t=>"matrix("+t.map((t=>qt(t,h.NUM_FRACTION_DIGITS))).join(" ")+")",Zt=function(t,e){let s,i,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e)if(e.toLive)s="url(#SVGID_".concat(e.id,")");else{const t=new Ut(e),r=t.getAlpha();s=t.toRgb(),1!==r&&(i=r.toString())}else s="none";return r?"".concat(t,": ").concat(s,"; ").concat(i?"".concat(t,"-opacity: ").concat(i,"; "):""):"".concat(t,'="').concat(s,'" ').concat(i?"".concat(t,'-opacity="').concat(i,'" '):"")},$t=t=>!!t&&void 0!==t.toLive,te=t=>!!t&&"function"==typeof t.toObject,ee=t=>!!t&&void 0!==t.offsetX&&"source"in t,se=t=>!!t&&"function"==typeof t._renderText,ie=t=>!!t&&"multiSelectionStacking"in t;function re(t){const e=t&&ne(t);let s=0,i=0;if(!t||!e)return{left:s,top:i};let r=t;const n=e.documentElement,o=e.body||{scrollLeft:0,scrollTop:0};for(;r&&(r.parentNode||r.host)&&(r=r.parentNode||r.host,r===e?(s=o.scrollLeft||n.scrollLeft||0,i=o.scrollTop||n.scrollTop||0):(s+=r.scrollLeft||0,i+=r.scrollTop||0),1!==r.nodeType||"fixed"!==r.style.position););return{left:s,top:i}}const ne=t=>t.ownerDocument||null,oe=t=>{var e;return(null===(e=t.ownerDocument)||void 0===e?void 0:e.defaultView)||null},ae=function(t,e,s){let{width:i,height:r}=s,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;t.width=i,t.height=r,n>1&&(t.setAttribute("width",(i*n).toString()),t.setAttribute("height",(r*n).toString()),e.scale(n,n))},he=(t,e)=>{let{width:s,height:i}=e;s&&(t.style.width="number"==typeof s?"".concat(s,"px"):s),i&&(t.style.height="number"==typeof i?"".concat(i,"px"):i)};function ce(t){return void 0!==t.onselectstart&&(t.onselectstart=()=>!1),t.style.userSelect=F,t}class le{constructor(t){s(this,"_originalCanvasStyle",void 0),s(this,"lower",void 0);const e=this.createLowerCanvas(t);this.lower={el:e,ctx:e.getContext("2d")}}createLowerCanvas(t){const e=(s=t)&&void 0!==s.getContext?t:t&&v().getElementById(t)||mt();var s;if(e.hasAttribute("data-fabric"))throw new l("Trying to initialize a canvas that has already been initialized. Did you forget to dispose the canvas?");return this._originalCanvasStyle=e.style.cssText,e.setAttribute("data-fabric","main"),e.classList.add("lower-canvas"),e}cleanupDOM(t){let{width:e,height:s}=t;const{el:i}=this.lower;i.classList.remove("lower-canvas"),i.removeAttribute("data-fabric"),i.setAttribute("width","".concat(e)),i.setAttribute("height","".concat(s)),i.style.cssText=this._originalCanvasStyle||"",this._originalCanvasStyle=void 0}setDimensions(t,e){const{el:s,ctx:i}=this.lower;ae(s,i,t,e)}setCSSDimensions(t){he(this.lower.el,t)}calcOffset(){return function(t){var e;const s=t&&ne(t),i={left:0,top:0};if(!s)return i;const r=(null===(e=oe(t))||void 0===e?void 0:e.getComputedStyle(t,null))||{};i.left+=parseInt(r.borderLeftWidth,10)||0,i.top+=parseInt(r.borderTopWidth,10)||0,i.left+=parseInt(r.paddingLeft,10)||0,i.top+=parseInt(r.paddingTop,10)||0;let n={left:0,top:0};const o=s.documentElement;void 0!==t.getBoundingClientRect&&(n=t.getBoundingClientRect());const a=re(t);return{left:n.left+a.left-(o.clientLeft||0)+i.left,top:n.top+a.top-(o.clientTop||0)+i.top}}(this.lower.el)}dispose(){m().dispose(this.lower.el),delete this.lower}}const ue={backgroundVpt:!0,backgroundColor:"",overlayVpt:!0,overlayColor:"",includeDefaultValues:!0,svgViewportTransformation:!0,renderOnAddRemove:!0,skipOffscreen:!0,enableRetinaScaling:!0,imageSmoothingEnabled:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,viewportTransform:[...O]};class de extends(lt(ut)){get lowerCanvasEl(){var t;return null===(t=this.elements.lower)||void 0===t?void 0:t.el}get contextContainer(){var t;return null===(t=this.elements.lower)||void 0===t?void 0:t.ctx}static getDefaults(){return de.ownDefaults}constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.assign(this,this.constructor.getDefaults()),this.set(e),this.initElements(t),this._setDimensionsImpl({width:this.width||this.elements.lower.el.width||0,height:this.height||this.elements.lower.el.height||0}),this.skipControlsDrawing=!1,this.viewportTransform=[...this.viewportTransform],this.calcViewportBoundaries()}initElements(t){this.elements=new le(t)}add(){const t=super.add(...arguments);return arguments.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),t}insertAt(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i0&&this.renderOnAddRemove&&this.requestRenderAll(),r}remove(){const t=super.remove(...arguments);return t.length>0&&this.renderOnAddRemove&&this.requestRenderAll(),t}_onObjectAdded(t){t.canvas&&t.canvas!==this&&(c("warn","Canvas is trying to add an object that belongs to a different canvas.\nResulting to default behavior: removing object from previous canvas and adding to new canvas"),t.canvas.remove(t)),t._set("canvas",this),t.setCoords(),this.fire("object:added",{target:t}),t.fire("added",{target:this})}_onObjectRemoved(t){t._set("canvas",void 0),this.fire("object:removed",{target:t}),t.fire("removed",{target:this})}_onStackOrderChanged(){this.renderOnAddRemove&&this.requestRenderAll()}getRetinaScaling(){return this.enableRetinaScaling?_():1}calcOffset(){return this._offset=this.elements.calcOffset()}getWidth(){return this.width}getHeight(){return this.height}setWidth(t,e){return this.setDimensions({width:t},e)}setHeight(t,e){return this.setDimensions({height:t},e)}_setDimensionsImpl(t){let{cssOnly:e=!1,backstoreOnly:s=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e){const e=r({width:this.width,height:this.height},t);this.elements.setDimensions(e,this.getRetinaScaling()),this.hasLostContext=!0,this.width=e.width,this.height=e.height}s||this.elements.setCSSDimensions(t),this.calcOffset()}setDimensions(t,e){this._setDimensionsImpl(t,e),e&&e.cssOnly||this.requestRenderAll()}getZoom(){return this.viewportTransform[0]}setViewportTransform(t){this.viewportTransform=t,this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll()}zoomToPoint(t,e){const s=t,i=[...this.viewportTransform],r=bt(t,St(i));i[0]=e,i[3]=e;const n=bt(r,i);i[4]+=s.x-n.x,i[5]+=s.y-n.y,this.setViewportTransform(i)}setZoom(t){this.zoomToPoint(new at(0,0),t)}absolutePan(t){const e=[...this.viewportTransform];return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)}relativePan(t){return this.absolutePan(new at(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))}getElement(){return this.elements.lower.el}clearContext(t){t.clearRect(0,0,this.width,this.height)}getContext(){return this.elements.lower.ctx}clear(){this.remove(...this.getObjects()),this.backgroundImage=void 0,this.overlayImage=void 0,this.backgroundColor="",this.overlayColor="",this.clearContext(this.getContext()),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll()}renderAll(){this.cancelRequestedRender(),this.destroyed||this.renderCanvas(this.getContext(),this._objects)}renderAndReset(){this.nextRenderHandle=0,this.renderAll()}requestRenderAll(){this.nextRenderHandle||this.disposed||this.destroyed||(this.nextRenderHandle=dt((()=>this.renderAndReset())))}calcViewportBoundaries(){const t=this.width,e=this.height,s=St(this.viewportTransform),i=bt({x:0,y:0},s),r=bt({x:t,y:e},s),n=i.min(r),o=i.max(r);return this.vptCoords={tl:n,tr:new at(o.x,n.y),bl:new at(n.x,o.y),br:o}}cancelRequestedRender(){this.nextRenderHandle&&(gt(this.nextRenderHandle),this.nextRenderHandle=0)}drawControls(t){}renderCanvas(t,e){if(this.destroyed)return;const s=this.viewportTransform,i=this.clipPath;this.calcViewportBoundaries(),this.clearContext(t),t.imageSmoothingEnabled=this.imageSmoothingEnabled,t.patternQuality="best",this.fire("before:render",{ctx:t}),this._renderBackground(t),t.save(),t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._renderObjects(t,e),t.restore(),this.controlsAboveOverlay||this.skipControlsDrawing||this.drawControls(t),i&&(i._set("canvas",this),i.shouldCache(),i._transformDone=!0,i.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(t,i)),this._renderOverlay(t),this.controlsAboveOverlay&&!this.skipControlsDrawing&&this.drawControls(t),this.fire("after:render",{ctx:t}),this.__cleanupTask&&(this.__cleanupTask(),this.__cleanupTask=void 0)}drawClipPathOnCanvas(t,e){const s=this.viewportTransform;t.save(),t.transform(...s),t.globalCompositeOperation="destination-in",e.transform(t),t.scale(1/e.zoomX,1/e.zoomY),t.drawImage(e._cacheCanvas,-e.cacheTranslationX,-e.cacheTranslationY),t.restore()}_renderObjects(t,e){for(let s=0,i=e.length;s!t.excludeFromExport)).map((s=>this._toObject(s,t,e)))},this.__serializeBgOverlay(t,e)),i?{clipPath:i}:null)}_toObject(t,e,s){let i;this.includeDefaultValues||(i=t.includeDefaultValues,t.includeDefaultValues=!1);const r=t[e](s);return this.includeDefaultValues||(t.includeDefaultValues=!!i),r}__serializeBgOverlay(t,e){const s={},i=this.backgroundImage,r=this.overlayImage,n=this.backgroundColor,o=this.overlayColor;return $t(n)?n.excludeFromExport||(s.background=n.toObject(e)):n&&(s.background=n),$t(o)?o.excludeFromExport||(s.overlay=o.toObject(e)):o&&(s.overlay=o),i&&!i.excludeFromExport&&(s.backgroundImage=this._toObject(i,t,e)),r&&!r.excludeFromExport&&(s.overlayImage=this._toObject(r,t,e)),s}toSVG(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;t.reviver=e;const s=[];return this._setSVGPreamble(s,t),this._setSVGHeader(s,t),this.clipPath&&s.push('\n')),this._setSVGBgOverlayColor(s,"background"),this._setSVGBgOverlayImage(s,"backgroundImage",e),this._setSVGObjects(s,e),this.clipPath&&s.push("\n"),this._setSVGBgOverlayColor(s,"overlay"),this._setSVGBgOverlayImage(s,"overlayImage",e),s.push(""),s.join("")}_setSVGPreamble(t,e){e.suppressPreamble||t.push('\n','\n')}_setSVGHeader(t,e){const s=e.width||"".concat(this.width),i=e.height||"".concat(this.height),r=h.NUM_FRACTION_DIGITS,n=e.viewBox;let o;if(n)o='viewBox="'.concat(n.x," ").concat(n.y," ").concat(n.width," ").concat(n.height,'" ');else if(this.svgViewportTransformation){const t=this.viewportTransform;o='viewBox="'.concat(qt(-t[4]/t[0],r)," ").concat(qt(-t[5]/t[3],r)," ").concat(qt(this.width/t[0],r)," ").concat(qt(this.height/t[3],r),'" ')}else o='viewBox="0 0 '.concat(this.width," ").concat(this.height,'" ');t.push("\n',"Created with Fabric.js ",C,"\n","\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(e),"\n")}createSVGClipPathMarkup(t){const e=this.clipPath;return e?(e.clipPathId="CLIPPATH_".concat(pt()),'\n').concat(e.toClipPathSVG(t.reviver),"\n")):""}createSVGRefElementsMarkup(){return["background","overlay"].map((t=>{const e=this["".concat(t,"Color")];if($t(e)){const s=this["".concat(t,"Vpt")],i=this.viewportTransform,r={isType:()=>!1,width:this.width/(s?i[0]:1),height:this.height/(s?i[3]:1)};return e.toSVG(r,{additionalTransform:s?Qt(i):""})}})).join("")}createSVGFontFacesMarkup(){const t=[],e={},s=h.fontPaths;this._objects.forEach((function e(s){t.push(s),ct(s)&&s._objects.forEach(e)})),t.forEach((t=>{if(!se(t))return;const{styles:i,fontFamily:r}=t;!e[r]&&s[r]&&(e[r]=!0,i&&Object.values(i).forEach((t=>{Object.values(t).forEach((t=>{let{fontFamily:i=""}=t;!e[i]&&s[i]&&(e[i]=!0)}))})))}));const i=Object.keys(e).map((t=>"\t\t@font-face {\n\t\t\tfont-family: '".concat(t,"';\n\t\t\tsrc: url('").concat(s[t],"');\n\t\t}\n"))).join("");return i?'\t\n"):""}_setSVGObjects(t,e){this.forEachObject((s=>{s.excludeFromExport||this._setSVGObject(t,s,e)}))}_setSVGObject(t,e,s){t.push(e.toSVG(s))}_setSVGBgOverlayImage(t,e,s){const i=this[e];i&&!i.excludeFromExport&&i.toSVG&&t.push(i.toSVG(s))}_setSVGBgOverlayColor(t,e){const s=this["".concat(e,"Color")];if(s)if($t(s)){const i=s.repeat||"",r=this.width,n=this.height,o=this["".concat(e,"Vpt")]?Qt(St(this.viewportTransform)):"";t.push('\n'))}else t.push('\n")}loadFromJSON(t,e){let{signal:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return Promise.reject(new l("`json` is undefined"));const i="string"==typeof t?JSON.parse(t):t,{objects:r=[],backgroundImage:n,background:o,overlayImage:a,overlay:h,clipPath:c}=i,u=this.renderOnAddRemove;return this.renderOnAddRemove=!1,Promise.all([It(r,{reviver:e,signal:s}),Bt({backgroundImage:n,backgroundColor:o,overlayImage:a,overlayColor:h,clipPath:c},{signal:s})]).then((t=>{let[e,s]=t;return this.clear(),this.add(...e),this.set(i),this.set(s),this.renderOnAddRemove=u,this}))}clone(t){const e=this.toObject(t);return this.cloneWithoutData().loadFromJSON(e)}cloneWithoutData(){const t=mt();return t.width=this.width,t.height=this.height,new this.constructor(t)}toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{format:e="png",quality:s=1,multiplier:i=1,enableRetinaScaling:r=!1}=t,n=i*(r?this.getRetinaScaling():1);return yt(this.toCanvasElement(n,t),e,s)}toCanvasElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,{width:e,height:s,left:i,top:r,filter:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=(e||this.width)*t,a=(s||this.height)*t,h=this.getZoom(),c=this.width,l=this.height,u=this.skipControlsDrawing,d=h*t,g=this.viewportTransform,f=[d,0,0,d,(g[4]-(i||0))*t,(g[5]-(r||0))*t],p=this.enableRetinaScaling,m=mt(),v=n?this._objects.filter((t=>n(t))):this._objects;return m.width=o,m.height=a,this.enableRetinaScaling=!1,this.viewportTransform=f,this.width=o,this.height=a,this.skipControlsDrawing=!0,this.calcViewportBoundaries(),this.renderCanvas(m.getContext("2d"),v),this.viewportTransform=g,this.width=c,this.height=l,this.calcViewportBoundaries(),this.enableRetinaScaling=p,this.skipControlsDrawing=u,m}dispose(){return!this.disposed&&this.elements.cleanupDOM({width:this.width,height:this.height}),st.cancelByCanvas(this),this.disposed=!0,new Promise(((t,e)=>{const s=()=>{this.destroy(),t(!0)};s.kill=e,this.__cleanupTask&&this.__cleanupTask.kill("aborted"),this.destroyed?t(!1):this.nextRenderHandle?this.__cleanupTask=s:s()}))}destroy(){this.destroyed=!0,this.cancelRequestedRender(),this.forEachObject((t=>t.dispose())),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose(),this.backgroundImage=void 0,this.overlayImage&&this.overlayImage.dispose(),this.overlayImage=void 0,this.elements.dispose()}toString(){return"#")}}s(de,"ownDefaults",ue);const ge=["touchstart","touchmove","touchend"],fe=t=>{const e=re(t.target),s=function(t){const e=t.changedTouches;return e&&e[0]?e[0]:t}(t);return new at(s.clientX+e.left,s.clientY+e.top)},pe=t=>ge.includes(t.type)||"touch"===t.pointerType,me=t=>{t.preventDefault(),t.stopPropagation()},ve=t=>{if(0===t.length)return{left:0,top:0,width:0,height:0};const{min:e,max:s}=t.reduce(((t,e)=>{let{min:s,max:i}=t;return{min:s.min(e),max:i.max(e)}}),{min:new at(t[0]),max:new at(t[0])}),i=s.subtract(e);return{left:e.x,top:e.y,width:i.x,height:i.y}},ye=["translateX","translateY","scaleX","scaleY"],_e=(t,e)=>xe(t,wt(e,t.calcOwnMatrix())),xe=(t,e)=>{const s=Dt(e),{translateX:i,translateY:r,scaleX:o,scaleY:a}=s,h=n(s,ye),c=new at(i,r);t.flipX=!1,t.flipY=!1,Object.assign(t,h),t.set({scaleX:o,scaleY:a}),t.setPositionByOrigin(c,M,M)},Ce=t=>{t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},be=t=>({scaleX:t.scaleX,scaleY:t.scaleY,skewX:t.skewX,skewY:t.skewY,angle:t.angle,left:t.left,flipX:t.flipX,flipY:t.flipY,top:t.top}),Se=(t,e,s)=>{const i=t/2,r=e/2,n=[new at(-i,-r),new at(i,-r),new at(-i,r),new at(i,r)].map((t=>t.transform(s))),o=ve(n);return new at(o.width,o.height)},we=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;return wt(St(arguments.length>1&&void 0!==arguments[1]?arguments[1]:O),t)},Te=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return t.transform(we(e,s))},Oe=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return t.transform(we(e,s),!0)},De=(t,e,s)=>{const i=we(e,s);return xe(t,wt(i,t.calcOwnMatrix())),i},ke=(t,e)=>{var s;const{transform:{target:i}}=e;null===(s=i.canvas)||void 0===s||s.fire("object:".concat(t),r(r({},e),{},{target:i})),i.fire(t,e)},Me={left:-.5,top:-.5,center:0,bottom:.5,right:.5},Ee=t=>"string"==typeof t?Me[t]:t-.5,Pe="not-allowed";function Ae(t){return Ee(t.originX)===Ee(M)&&Ee(t.originY)===Ee(M)}function je(t){return.5-Ee(t)}const Fe=(t,e)=>t[e],Le=(t,e,s,i)=>({e:t,transform:e,pointer:new at(s,i)});function Re(t,e){const s=t.getTotalAngle()+xt(Math.atan2(e.y,e.x))+360;return Math.round(s%360/45)}function Ie(t,e,s,i,r){var n;let{target:o,corner:a}=t;const h=o.controls[a],c=(null===(n=o.canvas)||void 0===n?void 0:n.getZoom())||1,l=o.padding/c,u=function(t,e,s,i){const r=t.getRelativeCenterPoint(),n=void 0!==s&&void 0!==i?t.translateToGivenOrigin(r,M,M,s,i):new at(t.left,t.top);return(t.angle?e.rotate(-_t(t.angle),r):e).subtract(n)}(o,new at(i,r),e,s);return u.x>=l&&(u.x-=l),u.x<=-l&&(u.x+=l),u.y>=l&&(u.y-=l),u.y<=l&&(u.y+=l),u.x-=h.offsetX,u.y-=h.offsetY,u}const Be=(t,e,s,i)=>{const{target:r,offsetX:n,offsetY:o}=e,a=s-n,h=i-o,c=!Fe(r,"lockMovementX")&&r.left!==a,l=!Fe(r,"lockMovementY")&&r.top!==h;return c&&r.set(E,a),l&&r.set(P,h),(c||l)&&ke(R,Le(t,e,s,i)),c||l};class Xe{getSvgStyles(t){const e=this.fillRule?this.fillRule:"nonzero",s=this.strokeWidth?this.strokeWidth:"0",i=this.strokeDashArray?this.strokeDashArray.join(" "):F,r=this.strokeDashOffset?this.strokeDashOffset:"0",n=this.strokeLineCap?this.strokeLineCap:"butt",o=this.strokeLineJoin?this.strokeLineJoin:"miter",a=this.strokeMiterLimit?this.strokeMiterLimit:"4",h=void 0!==this.opacity?this.opacity:"1",c=this.visible?"":" visibility: hidden;",l=t?"":this.getSvgFilter(),u=Zt(J,this.fill);return[Zt(Q,this.stroke),"stroke-width: ",s,"; ","stroke-dasharray: ",i,"; ","stroke-linecap: ",n,"; ","stroke-dashoffset: ",r,"; ","stroke-linejoin: ",o,"; ","stroke-miterlimit: ",a,"; ",u,"fill-rule: ",e,"; ","opacity: ",h,";",l,c].join("")}getSvgFilter(){return this.shadow?"filter: url(#SVGID_".concat(this.shadow.id,");"):""}getSvgCommons(){return[this.id?'id="'.concat(this.id,'" '):"",this.clipPath?'clip-path="url(#'.concat(this.clipPath.clipPathId,')" '):""].join("")}getSvgTransform(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const s=t?this.calcTransformMatrix():this.calcOwnMatrix(),i='transform="'.concat(Qt(s));return"".concat(i).concat(e,'" ')}_toSVG(t){return[""]}toSVG(t){return this._createBaseSVGMarkup(this._toSVG(t),{reviver:t})}toClipPathSVG(t){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(t),{reviver:t})}_createBaseClipPathSVGMarkup(t){let{reviver:e,additionalTransform:s=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=[this.getSvgTransform(!0,s),this.getSvgCommons()].join(""),r=t.indexOf("COMMON_PARTS");return t[r]=i,e?e(t.join("")):t.join("")}_createBaseSVGMarkup(t){let{noStyle:e,reviver:s,withShadow:i,additionalTransform:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e?"":'style="'.concat(this.getSvgStyles(),'" '),o=i?'style="'.concat(this.getSvgFilter(),'" '):"",a=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",c=a&&a.absolutePositioned,l=this.stroke,u=this.fill,d=this.shadow,g=[],f=t.indexOf("COMMON_PARTS");let p;a&&(a.clipPathId="CLIPPATH_".concat(pt()),p='\n').concat(a.toClipPathSVG(s),"\n")),c&&g.push("\n"),g.push("\n");const m=[n,h,e?"":this.addPaintOrder()," ",r?'transform="'.concat(r,'" '):""].join("");return t[f]=m,$t(u)&&g.push(u.toSVG(this)),$t(l)&&g.push(l.toSVG(this)),d&&g.push(d.toSVG(this)),a&&g.push(p),g.push(t.join("")),g.push("\n"),c&&g.push("\n"),s?s(g.join("")):g.join("")}addPaintOrder(){return this.paintFirst!==J?' paint-order="'.concat(this.paintFirst,'" '):""}}function Ye(t){return new RegExp("^("+t.join("|")+")\\b","i")}var We,Ve;const He=String.raw(We||(We=o(["(?:[-+]?(?:d*.d+|d+.?)(?:[eE][-+]?d+)?)"],["(?:[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?)"]))),Ge="http://www.w3.org/2000/svg";String.raw(Ve||(Ve=o(["(?:s+,?s*|,s*|$)"],["(?:\\s+,?\\s*|,\\s*|$)"])));const ze=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+He+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+He+"))?\\s+(.*)"),Ne={cx:E,x:E,r:"radius",cy:P,y:P,display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},Ue="font-size",qe="clip-path",Ke=Ye(["path","circle","polygon","polyline","ellipse","rect","line","image","text"]),Je=Ye(["symbol","image","marker","pattern","view","svg"]),Qe=Ye(["symbol","g","a","svg","clipPath","defs"]),Ze=new RegExp("^\\s*("+He+"+)\\s*,?\\s*("+He+"+)\\s*,?\\s*("+He+"+)\\s*,?\\s*("+He+"+)\\s*$"),$e=new at(1,0),ts=new at,es=(t,e)=>t.rotate(e),ss=(t,e)=>new at(e).subtract(t),is=t=>t.distanceFrom(ts),rs=(t,e)=>Math.atan2(hs(t,e),cs(t,e)),ns=t=>rs($e,t),os=t=>t.eq(ts)?t:t.scalarDivide(is(t)),as=function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return os(new at(-t.y,t.x).scalarMultiply(e?1:-1))},hs=(t,e)=>t.x*e.y-t.y*e.x,cs=(t,e)=>t.x*e.x+t.y*e.y,ls=(t,e,s)=>{if(t.eq(e)||t.eq(s))return!0;const i=hs(e,s),r=hs(e,t),n=hs(s,t);return i>=0?r>=0&&n<=0:!(r<=0&&n>=0)},us="(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?",ds=new RegExp("(?:\\s|^)"+us+us+"("+He+"?(?:px)?)?(?:\\s?|$)(?:$|\\s)");class gs{constructor(t){const e="string"==typeof t?gs.parseShadow(t):t;Object.assign(this,gs.ownDefaults,e),this.id=pt()}static parseShadow(t){const e=t.trim(),[,s=0,i=0,r=0]=(ds.exec(e)||[]).map((t=>parseFloat(t)||0));return{color:(e.replace(ds,"")||"rgb(0,0,0)").trim(),offsetX:s,offsetY:i,blur:r}}toString(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")}toSVG(t){const e=es(new at(this.offsetX,this.offsetY),_t(-t.angle)),s=new Ut(this.color);let i=40,r=40;return t.width&&t.height&&(i=100*qt((Math.abs(e.x)+this.blur)/t.width,h.NUM_FRACTION_DIGITS)+20,r=100*qt((Math.abs(e.y)+this.blur)/t.height,h.NUM_FRACTION_DIGITS)+20),t.flipX&&(e.x*=-1),t.flipY&&(e.y*=-1),'\n\t\n\t\n\t\n\t\n\t\n\t\t\n\t\t\n\t\n\n')}toObject(){const t={color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling,type:this.constructor.type},e=gs.ownDefaults;return this.includeDefaultValues?t:Yt(t,((t,s)=>t!==e[s]))}static fromObject(t){return e(this,null,(function*(){return new this(t)}))}}s(gs,"ownDefaults",{color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1}),s(gs,"type","shadow"),et.setClass(gs,"shadow");const fs=(t,e,s)=>Math.max(t,Math.min(e,s)),ps=[P,E,N,U,"flipX","flipY","originX","originY","angle","opacity","globalCompositeOperation","shadow","visible",q,K],ms=[J,Q,"strokeWidth","strokeDashArray","width","height","paintFirst","strokeUniform","strokeLineCap","strokeDashOffset","strokeLineJoin","strokeMiterLimit","backgroundColor","clipPath"],vs={top:0,left:0,width:0,height:0,angle:0,flipX:!1,flipY:!1,scaleX:1,scaleY:1,minScaleLimit:0,skewX:0,skewY:0,originX:E,originY:P,strokeWidth:1,strokeUniform:!1,padding:0,opacity:1,paintFirst:J,fill:"rgb(0,0,0)",fillRule:"nonzero",stroke:null,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,globalCompositeOperation:"source-over",backgroundColor:"",shadow:null,visible:!0,includeDefaultValues:!0,excludeFromExport:!1,objectCaching:!0,clipPath:void 0,inverted:!1,absolutePositioned:!1,centeredRotation:!0,centeredScaling:!1,dirty:!0},ys=(t,e,s,i)=>(tt*Math.pow(2,10*(i-=1))*Math.sin((i*r-e)*w/s),xs=(t,e,s,i)=>-s*Math.cos(t/i*S)+s+e,Cs=(t,e,s,i)=>(t/=i)<1/2.75?s*(7.5625*t*t)+e:t<2/2.75?s*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?s*(7.5625*(t-=2.25/2.75)*t+.9375)+e:s*(7.5625*(t-=2.625/2.75)*t+.984375)+e,bs=(t,e,s,i)=>s-Cs(i-t,0,s,i)+e;var Ss=Object.freeze({__proto__:null,defaultEasing:xs,easeInBack:function(t,e,s,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return s*(t/=i)*t*((r+1)*t-r)+e},easeInBounce:bs,easeInCirc:(t,e,s,i)=>-s*(Math.sqrt(1-(t/=i)*t)-1)+e,easeInCubic:(e,s,i,r)=>i*t(e/r,3)+s,easeInElastic:(t,e,s,i)=>{const r=s;let n=0;if(0===t)return e;if(1==(t/=i))return e+s;n||(n=.3*i);const{a:o,s:a,p:h}=ys(r,s,n,1.70158);return-_s(o,a,h,t,i)+e},easeInExpo:(e,s,i,r)=>0===e?s:i*t(2,10*(e/r-1))+s,easeInOutBack:function(t,e,s,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return(t/=i/2)<1?s/2*(t*t*((1+(r*=1.525))*t-r))+e:s/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},easeInOutBounce:(t,e,s,i)=>t(e/=r/2)<1?-i/2*(Math.sqrt(1-t(e,2))-1)+s:i/2*(Math.sqrt(1-(e-=2)*e)+1)+s,easeInOutCubic:(e,s,i,r)=>(e/=r/2)<1?i/2*t(e,3)+s:i/2*(t(e-2,3)+2)+s,easeInOutElastic:(t,e,s,i)=>{const r=s;let n=0;if(0===t)return e;if(2==(t/=i/2))return e+s;n||(n=i*(.3*1.5));const{a:o,s:a,p:h,c:c}=ys(r,s,n,1.70158);return t<1?-.5*_s(o,a,h,t,i)+e:o*Math.pow(2,-10*(t-=1))*Math.sin((t*i-a)*w/h)*.5+c+e},easeInOutExpo:(e,s,i,r)=>0===e?s:e===r?s+i:(e/=r/2)<1?i/2*t(2,10*(e-1))+s:i/2*-(t(2,-10*--e)+2)+s,easeInOutQuad:(e,s,i,r)=>(e/=r/2)<1?i/2*t(e,2)+s:-i/2*(--e*(e-2)-1)+s,easeInOutQuart:(e,s,i,r)=>(e/=r/2)<1?i/2*t(e,4)+s:-i/2*((e-=2)*t(e,3)-2)+s,easeInOutQuint:(e,s,i,r)=>(e/=r/2)<1?i/2*t(e,5)+s:i/2*(t(e-2,5)+2)+s,easeInOutSine:(t,e,s,i)=>-s/2*(Math.cos(Math.PI*t/i)-1)+e,easeInQuad:(t,e,s,i)=>s*(t/=i)*t+e,easeInQuart:(e,s,i,r)=>i*(e/=r)*t(e,3)+s,easeInQuint:(e,s,i,r)=>i*t(e/r,5)+s,easeInSine:(t,e,s,i)=>-s*Math.cos(t/i*S)+s+e,easeOutBack:function(t,e,s,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.70158;return s*((t=t/i-1)*t*((r+1)*t+r)+1)+e},easeOutBounce:Cs,easeOutCirc:(t,e,s,i)=>s*Math.sqrt(1-(t=t/i-1)*t)+e,easeOutCubic:(e,s,i,r)=>i*(t(e/r-1,3)+1)+s,easeOutElastic:(e,s,i,r)=>{const n=i;let o=0;if(0===e)return s;if(1==(e/=r))return s+i;o||(o=.3*r);const{a:a,s:h,p:c,c:l}=ys(n,i,o,1.70158);return a*t(2,-10*e)*Math.sin((e*r-h)*w/c)+l+s},easeOutExpo:(e,s,i,r)=>e===r?s+i:i*-(t(2,-10*e/r)+1)+s,easeOutQuad:(t,e,s,i)=>-s*(t/=i)*(t-2)+e,easeOutQuart:(e,s,i,r)=>-i*((e=e/r-1)*t(e,3)-1)+s,easeOutQuint:(e,s,i,r)=>i*(t(e/r-1,5)+1)+s,easeOutSine:(t,e,s,i)=>s*Math.sin(t/i*S)+e});const ws=()=>!1;class Ts{constructor(t){let{startValue:e,byValue:i,duration:r=500,delay:n=0,easing:o=xs,onStart:a=b,onChange:h=b,onComplete:c=b,abort:l=ws,target:u}=t;s(this,"_state","pending"),s(this,"durationProgress",0),s(this,"valueProgress",0),this.tick=this.tick.bind(this),this.duration=r,this.delay=n,this.easing=o,this._onStart=a,this._onChange=h,this._onComplete=c,this._abort=l,this.target=u,this.startValue=e,this.byValue=i,this.value=this.startValue,this.endValue=Object.freeze(this.calculate(this.duration).value)}get state(){return this._state}isDone(){return"aborted"===this._state||"completed"===this._state}start(){const t=t=>{"pending"===this._state&&(this.startTime=t||+new Date,this._state="running",this._onStart(),this.tick(this.startTime))};this.register(),this.delay>0?setTimeout((()=>dt(t)),this.delay):dt(t)}tick(t){const e=(t||+new Date)-this.startTime,s=Math.min(e,this.duration);this.durationProgress=s/this.duration;const{value:i,valueProgress:r}=this.calculate(s);this.value=Object.freeze(i),this.valueProgress=r,"aborted"!==this._state&&(this._abort(this.value,this.valueProgress,this.durationProgress)?(this._state="aborted",this.unregister()):e>=this.duration?(this.durationProgress=this.valueProgress=1,this._onChange(this.endValue,this.valueProgress,this.durationProgress),this._state="completed",this._onComplete(this.endValue,this.valueProgress,this.durationProgress),this.unregister()):(this._onChange(this.value,this.valueProgress,this.durationProgress),dt(this.tick)))}register(){st.push(this)}unregister(){st.remove(this)}abort(){this._state="aborted",this.unregister()}}const Os=["startValue","endValue"];class Ds extends Ts{constructor(t){let{startValue:e=0,endValue:s=100}=t;super(r(r({},n(t,Os)),{},{startValue:e,byValue:s-e}))}calculate(t){const e=this.easing(t,this.startValue,this.byValue,this.duration);return{value:e,valueProgress:Math.abs((e-this.startValue)/this.byValue)}}}const ks=["startValue","endValue"];class Ms extends Ts{constructor(t){let{startValue:e=[0],endValue:s=[100]}=t;super(r(r({},n(t,ks)),{},{startValue:e,byValue:s.map(((t,s)=>t-e[s]))}))}calculate(t){const e=this.startValue.map(((e,s)=>this.easing(t,e,this.byValue[s],this.duration,s)));return{value:e,valueProgress:Math.abs((e[0]-this.startValue[0])/this.byValue[0])}}}const Es=["startValue","endValue","easing","onChange","onComplete","abort"],Ps=(t,e,s,i)=>e+s*(1-Math.cos(t/i*S)),As=t=>t&&((e,s,i)=>t(new Ut(e).toRgba(),s,i));class js extends Ts{constructor(t){let{startValue:e,endValue:s,easing:i=Ps,onChange:o,onComplete:a,abort:h}=t,c=n(t,Es);const l=new Ut(e).getSource(),u=new Ut(s).getSource();super(r(r({},c),{},{startValue:l,byValue:u.map(((t,e)=>t-l[e])),easing:i,onChange:As(o),onComplete:As(a),abort:As(h)}))}calculate(t){const[e,s,i,r]=this.startValue.map(((e,s)=>this.easing(t,e,this.byValue[s],this.duration,s))),n=[...[e,s,i].map(Math.round),fs(0,r,1)];return{value:n,valueProgress:n.map(((t,e)=>0!==this.byValue[e]?Math.abs((t-this.startValue[e])/this.byValue[e]):0)).find((t=>0!==t))||0}}}function Fs(t){const e=(s=t,Array.isArray(s.startValue)||Array.isArray(s.endValue)?new Ms(t):new Ds(t));var s;return e.start(),e}function Ls(t){const e=new js(t);return e.start(),e}class Rs{constructor(t){this.status=t,this.points=[]}includes(t){return this.points.some((e=>e.eq(t)))}append(){for(var t=arguments.length,e=new Array(t),s=0;s!this.includes(t)))),this}static isPointContained(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.eq(s))return t.eq(e);if(e.x===s.x)return t.x===e.x&&(i||t.y>=Math.min(e.y,s.y)&&t.y<=Math.max(e.y,s.y));if(e.y===s.y)return t.y===e.y&&(i||t.x>=Math.min(e.x,s.x)&&t.x<=Math.max(e.x,s.x));{const r=ss(e,s),n=ss(e,t).divide(r);return i?Math.abs(n.x)===Math.abs(n.y):n.x===n.y&&n.x>=0&&n.x<=1}}static isPointInPolygon(t,e){const s=new at(t).setX(Math.min(t.x-1,...e.map((t=>t.x))));let i=0;for(let r=0;r4&&void 0!==arguments[4])||arguments[4],n=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const o=e.x-t.x,a=e.y-t.y,h=i.x-s.x,c=i.y-s.y,l=t.x-s.x,u=t.y-s.y,d=h*u-c*l,g=o*u-a*l,f=c*o-h*a;if(0!==f){const e=d/f,s=g/f;return(r||0<=e&&e<=1)&&(n||0<=s&&s<=1)?new Rs("Intersection").append(new at(t.x+e*o,t.y+e*a)):new Rs}if(0===d||0===g){const o=r||n||Rs.isPointContained(t,s,i)||Rs.isPointContained(e,s,i)||Rs.isPointContained(s,t,e)||Rs.isPointContained(i,t,e);return new Rs(o?"Coincident":void 0)}return new Rs("Parallel")}static intersectSegmentLine(t,e,s,i){return Rs.intersectLineLine(t,e,s,i,!1,!0)}static intersectSegmentSegment(t,e,s,i){return Rs.intersectLineLine(t,e,s,i,!1,!1)}static intersectLinePolygon(t,e,s){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r=new Rs,n=s.length;for(let o,a,h,c=0;c0&&(r.status="Intersection"),r}static intersectSegmentPolygon(t,e,s){return Rs.intersectLinePolygon(t,e,s,!1)}static intersectPolygonPolygon(t,e){const s=new Rs,i=t.length,r=[];for(let n=0;n0&&r.length===t.length?new Rs("Coincident"):(s.points.length>0&&(s.status="Intersection"),s)}static intersectPolygonRectangle(t,e,s){const i=e.min(s),r=e.max(s),n=new at(r.x,i.y),o=new at(i.x,r.y);return Rs.intersectPolygonPolygon(t,[i,n,r,o])}}class Is extends ut{getX(){return this.getXY().x}setX(t){this.setXY(this.getXY().setX(t))}getY(){return this.getXY().y}setY(t){this.setXY(this.getXY().setY(t))}getRelativeX(){return this.left}setRelativeX(t){this.left=t}getRelativeY(){return this.top}setRelativeY(t){this.top=t}getXY(){const t=this.getRelativeXY();return this.group?bt(t,this.group.calcTransformMatrix()):t}setXY(t,e,s){this.group&&(t=bt(t,St(this.group.calcTransformMatrix()))),this.setRelativeXY(t,e,s)}getRelativeXY(){return new at(this.left,this.top)}setRelativeXY(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.originX,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.originY;this.setPositionByOrigin(t,e,s)}isStrokeAccountedForInDimensions(){return!1}getCoords(){const{tl:t,tr:e,br:s,bl:i}=this.aCoords||(this.aCoords=this.calcACoords()),r=[t,e,s,i];if(this.group){const t=this.group.calcTransformMatrix();return r.map((e=>bt(e,t)))}return r}intersectsWithRect(t,e){return"Intersection"===Rs.intersectPolygonRectangle(this.getCoords(),t,e).status}intersectsWithObject(t){const e=Rs.intersectPolygonPolygon(this.getCoords(),t.getCoords());return"Intersection"===e.status||"Coincident"===e.status||t.isContainedWithinObject(this)||this.isContainedWithinObject(t)}isContainedWithinObject(t){return this.getCoords().every((e=>t.containsPoint(e)))}isContainedWithinRect(t,e){const{left:s,top:i,width:r,height:n}=this.getBoundingRect();return s>=t.x&&s+r<=e.x&&i>=t.y&&i+n<=e.y}isOverlapping(t){return this.intersectsWithObject(t)||this.isContainedWithinObject(t)||t.isContainedWithinObject(this)}containsPoint(t){return Rs.isPointInPolygon(t,this.getCoords())}isOnScreen(){if(!this.canvas)return!1;const{tl:t,br:e}=this.canvas.vptCoords;return!!this.getCoords().some((s=>s.x<=e.x&&s.x>=t.x&&s.y<=e.y&&s.y>=t.y))||!!this.intersectsWithRect(t,e)||this.containsPoint(t.midPointFrom(e))}isPartiallyOnScreen(){if(!this.canvas)return!1;const{tl:t,br:e}=this.canvas.vptCoords;return!!this.intersectsWithRect(t,e)||this.getCoords().every((s=>(s.x>=e.x||s.x<=t.x)&&(s.y>=e.y||s.y<=t.y)))&&this.containsPoint(t.midPointFrom(e))}getBoundingRect(){return ve(this.getCoords())}getScaledWidth(){return this._getTransformedDimensions().x}getScaledHeight(){return this._getTransformedDimensions().y}scale(t){this._set(N,t),this._set(U,t),this.setCoords()}scaleToWidth(t){const e=this.getBoundingRect().width/this.getScaledWidth();return this.scale(t/this.width/e)}scaleToHeight(t){const e=this.getBoundingRect().height/this.getScaledHeight();return this.scale(t/this.height/e)}getCanvasRetinaScaling(){var t;return(null===(t=this.canvas)||void 0===t?void 0:t.getRetinaScaling())||1}getTotalAngle(){return this.group?xt(Ot(this.calcTransformMatrix())):this.angle}getViewportTransform(){var t;return(null===(t=this.canvas)||void 0===t?void 0:t.viewportTransform)||O.concat()}calcACoords(){const t=Mt({angle:this.angle}),{x:e,y:s}=this.getRelativeCenterPoint(),i=kt(e,s),r=wt(i,t),n=this._getTransformedDimensions(),o=n.x/2,a=n.y/2;return{tl:bt({x:-o,y:-a},r),tr:bt({x:o,y:-a},r),bl:bt({x:-o,y:a},r),br:bt({x:o,y:a},r)}}setCoords(){this.aCoords=this.calcACoords()}transformMatrixKey(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return!t&&this.group&&(e=this.group.transformMatrixKey(t)),e.push(this.top,this.left,this.width,this.height,this.scaleX,this.scaleY,this.angle,this.strokeWidth,this.skewX,this.skewY,+this.flipX,+this.flipY,Ee(this.originX),Ee(this.originY)),e}calcTransformMatrix(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.calcOwnMatrix();if(t||!this.group)return e;const s=this.transformMatrixKey(t),i=this.matrixCache;return i&&i.key.every(((t,e)=>t===s[e]))?i.value:(this.group&&(e=wt(this.group.calcTransformMatrix(!1),e)),this.matrixCache={key:s,value:e},e)}calcOwnMatrix(){const t=this.transformMatrixKey(!0),e=this.ownMatrixCache;if(e&&e.key===t)return e.value;const s=this.getRelativeCenterPoint(),i={angle:this.angle,translateX:s.x,translateY:s.y,scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY},r=Lt(i);return this.ownMatrixCache={key:t,value:r},r}_getNonTransformedDimensions(){return new at(this.width,this.height).scalarAdd(this.strokeWidth)}_calculateCurrentDimensions(t){return this._getTransformedDimensions(t).transform(this.getViewportTransform(),!0).scalarAdd(2*this.padding)}_getTransformedDimensions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=r({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,width:this.width,height:this.height,strokeWidth:this.strokeWidth},t),s=e.strokeWidth;let i=s,n=0;this.strokeUniform&&(i=0,n=s);const o=e.width+i,a=e.height+i;let h;return h=0===e.skewX&&0===e.skewY?new at(o*e.scaleX,a*e.scaleY):Se(o,a,Ft(e)),h.scalarAdd(n)}translateToGivenOrigin(t,e,s,i,r){let n=t.x,o=t.y;const a=Ee(i)-Ee(e),h=Ee(r)-Ee(s);if(a||h){const t=this._getTransformedDimensions();n+=a*t.x,o+=h*t.y}return new at(n,o)}translateToCenterPoint(t,e,s){if(e===M&&s===M)return t;const i=this.translateToGivenOrigin(t,e,s,M,M);return this.angle?i.rotate(_t(this.angle),t):i}translateToOriginPoint(t,e,s){const i=this.translateToGivenOrigin(t,M,M,e,s);return this.angle?i.rotate(_t(this.angle),t):i}getCenterPoint(){const t=this.getRelativeCenterPoint();return this.group?bt(t,this.group.calcTransformMatrix()):t}getRelativeCenterPoint(){return this.translateToCenterPoint(new at(this.left,this.top),this.originX,this.originY)}getPointByOrigin(t,e){return this.translateToOriginPoint(this.getRelativeCenterPoint(),t,e)}setPositionByOrigin(t,e,s){const i=this.translateToCenterPoint(t,e,s),r=this.translateToOriginPoint(i,this.originX,this.originY);this.set({left:r.x,top:r.y})}_getLeftTopCoords(){return this.translateToOriginPoint(this.getRelativeCenterPoint(),E,P)}}const Bs=["type"],Xs=["extraParam"];let Ys=class t extends Is{static getDefaults(){return t.ownDefaults}get type(){const t=this.constructor.type;return"FabricObject"===t?"object":t.toLowerCase()}set type(t){c("warn","Setting type has no effect",t)}constructor(e){super(),s(this,"_cacheContext",null),Object.assign(this,t.ownDefaults),this.setOptions(e)}_createCacheCanvas(){this._cacheCanvas=mt(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0}_limitCacheSize(t){const e=t.width,s=t.height,i=h.maxCacheSideLimit,r=h.minCacheSideLimit;if(e<=i&&s<=i&&e*s<=h.perfLimitSizeTotal)return ec&&(t.zoomX/=e/c,t.width=c,t.capped=!0),s>l&&(t.zoomY/=s/l,t.height=l,t.capped=!0),t}_getCacheCanvasDimensions(){const t=this.getTotalObjectScaling(),e=this._getTransformedDimensions({skewX:0,skewY:0}),s=e.x*t.x/this.scaleX,i=e.y*t.y/this.scaleY;return{width:s+2,height:i+2,zoomX:t.x,zoomY:t.y,x:s,y:i}}_updateCacheCanvas(){const t=this._cacheCanvas,e=this._cacheContext,s=this._limitCacheSize(this._getCacheCanvasDimensions()),i=h.minCacheSideLimit,r=s.width,n=s.height,o=s.zoomX,a=s.zoomY,c=r!==t.width||n!==t.height,l=this.zoomX!==o||this.zoomY!==a;if(!t||!e)return!1;let u,d,g=c||l,f=0,p=0,m=!1;if(c){const t=this._cacheCanvas.width,e=this._cacheCanvas.height,o=r>t||n>e;m=o||(r<.9*t||n<.9*e)&&t>i&&e>i,o&&!s.capped&&(r>i||n>i)&&(f=.1*r,p=.1*n)}return se(this)&&this.path&&(g=!0,m=!0,f+=this.getHeightOfLine(0)*this.zoomX,p+=this.getHeightOfLine(0)*this.zoomY),!!g&&(m?(t.width=Math.ceil(r+f),t.height=Math.ceil(n+p)):(e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height)),u=s.x/2,d=s.y/2,this.cacheTranslationX=Math.round(t.width/2-u)+u,this.cacheTranslationY=Math.round(t.height/2-d)+d,e.translate(this.cacheTranslationX,this.cacheTranslationY),e.scale(o,a),this.zoomX=o,this.zoomY=a,!0)}setOptions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setOptions(t)}transform(t){const e=this.group&&!this.group._transformDone||this.group&&this.canvas&&t===this.canvas.contextTop,s=this.calcTransformMatrix(!e);t.transform(s[0],s[1],s[2],s[3],s[4],s[5])}getObjectScaling(){if(!this.group)return new at(Math.abs(this.scaleX),Math.abs(this.scaleY));const t=Dt(this.calcTransformMatrix());return new at(Math.abs(t.scaleX),Math.abs(t.scaleY))}getTotalObjectScaling(){const t=this.getObjectScaling();if(this.canvas){const e=this.canvas.getZoom(),s=this.getCanvasRetinaScaling();return t.scalarMultiply(e*s)}return t}getObjectOpacity(){let t=this.opacity;return this.group&&(t*=this.group.getObjectOpacity()),t}_constrainScale(t){return Math.abs(t)0&&void 0!==arguments[0]&&arguments[0];if(this.isNotVisible())return!1;const e=this._cacheCanvas,s=this._cacheContext;return!(!e||!s||t||!this._updateCacheCanvas())||!!(this.dirty||this.clipPath&&this.clipPath.absolutePositioned)&&(e&&s&&!t&&(s.save(),s.setTransform(1,0,0,1,0,0),s.clearRect(0,0,e.width,e.height),s.restore()),!0)}_renderBackground(t){if(!this.backgroundColor)return;const e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}_setOpacity(t){this.group&&!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity}_setStrokeStyles(t,e){const s=e.stroke;s&&(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineDashOffset=e.strokeDashOffset,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,$t(s)?"percentage"===s.gradientUnits||s.gradientTransform||s.patternTransform?this._applyPatternForTransformedGradient(t,s):(t.strokeStyle=s.toLive(t),this._applyPatternGradientTransform(t,s)):t.strokeStyle=e.stroke)}_setFillStyles(t,e){let{fill:s}=e;s&&($t(s)?(t.fillStyle=s.toLive(t),this._applyPatternGradientTransform(t,s)):t.fillStyle=s)}_setClippingProperties(t){t.globalAlpha=1,t.strokeStyle="transparent",t.fillStyle="#000000"}_setLineDash(t,e){e&&0!==e.length&&(1&e.length&&e.push(...e),t.setLineDash(e))}_setShadow(t){if(!this.shadow)return;const e=this.shadow,s=this.canvas,i=this.getCanvasRetinaScaling(),[r,,,n]=(null==s?void 0:s.viewportTransform)||O,o=r*i,a=n*i,c=e.nonScaling?new at(1,1):this.getObjectScaling();t.shadowColor=e.color,t.shadowBlur=e.blur*h.browserShadowBlurConstant*(o+a)*(c.x+c.y)/4,t.shadowOffsetX=e.offsetX*o*c.x,t.shadowOffsetY=e.offsetY*a*c.y}_removeShadow(t){this.shadow&&(t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)}_applyPatternGradientTransform(t,e){if(!$t(e))return{offsetX:0,offsetY:0};const s=e.gradientTransform||e.patternTransform,i=-this.width/2+e.offsetX||0,r=-this.height/2+e.offsetY||0;return"percentage"===e.gradientUnits?t.transform(this.width,0,0,this.height,i,r):t.transform(1,0,0,1,i,r),s&&t.transform(s[0],s[1],s[2],s[3],s[4],s[5]),{offsetX:i,offsetY:r}}_renderPaintInOrder(t){this.paintFirst===Q?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))}_render(t){}_renderFill(t){this.fill&&(t.save(),this._setFillStyles(t,this),"evenodd"===this.fillRule?t.fill("evenodd"):t.fill(),t.restore())}_renderStroke(t){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this.strokeUniform){const e=this.getObjectScaling();t.scale(1/e.x,1/e.y)}this._setLineDash(t,this.strokeDashArray),this._setStrokeStyles(t,this),t.stroke(),t.restore()}}_applyPatternForTransformedGradient(t,e){var s;const i=this._limitCacheSize(this._getCacheCanvasDimensions()),r=mt(),n=this.getCanvasRetinaScaling(),o=i.x/this.scaleX/n,a=i.y/this.scaleY/n;r.width=Math.ceil(o),r.height=Math.ceil(a);const h=r.getContext("2d");h&&(h.beginPath(),h.moveTo(0,0),h.lineTo(o,0),h.lineTo(o,a),h.lineTo(0,a),h.closePath(),h.translate(o/2,a/2),h.scale(i.zoomX/this.scaleX/n,i.zoomY/this.scaleY/n),this._applyPatternGradientTransform(h,e),h.fillStyle=e.toLive(t),h.fill(),t.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),t.scale(n*this.scaleX/i.zoomX,n*this.scaleY/i.zoomY),t.strokeStyle=null!==(s=h.createPattern(r,"no-repeat"))&&void 0!==s?s:"")}_findCenterFromElement(){return new at(this.left+this.width/2,this.top+this.height/2)}clone(t){const e=this.toObject(t);return this.constructor.fromObject(e)}cloneAsImage(t){const e=this.toCanvasElement(t);return new(et.getClass("image"))(e)}toCanvasElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=be(this),s=this.group,i=this.shadow,r=Math.abs,n=t.enableRetinaScaling?_():1,o=(t.multiplier||1)*n,a=t.canvasProvider||(t=>new de(t,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1}));delete this.group,t.withoutTransform&&Ce(this),t.withoutShadow&&(this.shadow=null),t.viewportTransform&&De(this,this.getViewportTransform()),this.setCoords();const h=mt(),c=this.getBoundingRect(),l=this.shadow,u=new at;if(l){const t=l.blur,e=l.nonScaling?new at(1,1):this.getObjectScaling();u.x=2*Math.round(r(l.offsetX)+t)*r(e.x),u.y=2*Math.round(r(l.offsetY)+t)*r(e.y)}const d=c.width+u.x,g=c.height+u.y;h.width=Math.ceil(d),h.height=Math.ceil(g);const f=a(h);"jpeg"===t.format&&(f.backgroundColor="#fff"),this.setPositionByOrigin(new at(f.width/2,f.height/2),M,M);const p=this.canvas;f._objects=[this],this.set("canvas",f),this.setCoords();const m=f.toCanvasElement(o||1,t);return this.set("canvas",p),this.shadow=i,s&&(this.group=s),this.set(e),this.setCoords(),f._objects=[],f.destroy(),m}toDataURL(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return yt(this.toCanvasElement(t),t.format||"png",t.quality||1)}isType(){for(var t=arguments.length,e=new Array(t),s=0;s{let[i,r]=s;return t[i]=this._animate(i,r,e),t}),{})}_animate(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.split("."),n=this.constructor.colorProperties.includes(i[i.length-1]),{abort:o,startValue:a,onChange:h,onComplete:c}=s,l=r(r({},s),{},{target:this,startValue:null!=a?a:i.reduce(((t,e)=>t[e]),this),endValue:e,abort:null==o?void 0:o.bind(this),onChange:(t,e,s)=>{i.reduce(((e,s,r)=>(r===i.length-1&&(e[s]=t),e[s])),this),h&&h(t,e,s)},onComplete:(t,e,s)=>{this.setCoords(),c&&c(t,e,s)}});return n?Ls(l):Fs(l)}isDescendantOf(t){const{parent:e,group:s}=this;return e===t||s===t||!!e&&e.isDescendantOf(t)||!!s&&s!==e&&s.isDescendantOf(t)}getAncestors(){const t=[];let e=this;do{e=e.parent,e&&t.push(e)}while(e);return t}findCommonAncestors(t){if(this===t)return{fork:[],otherFork:[],common:[this,...this.getAncestors()]};const e=this.getAncestors(),s=t.getAncestors();if(0===e.length&&s.length>0&&this===s[s.length-1])return{fork:[],otherFork:[t,...s.slice(0,s.length-1)],common:[this]};for(let i,r=0;r-1&&n>o}toObject(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).concat(t.customProperties,this.constructor.customProperties||[]);let s;const i=h.NUM_FRACTION_DIGITS,{clipPath:n,fill:o,stroke:a,shadow:c,strokeDashArray:l,left:u,top:d,originX:g,originY:f,width:p,height:m,strokeWidth:v,strokeLineCap:y,strokeDashOffset:_,strokeLineJoin:x,strokeUniform:b,strokeMiterLimit:S,scaleX:w,scaleY:T,angle:O,flipX:D,flipY:k,opacity:M,visible:E,backgroundColor:P,fillRule:A,paintFirst:j,globalCompositeOperation:F,skewX:L,skewY:R}=this;n&&!n.excludeFromExport&&(s=n.toObject(e.concat("inverted","absolutePositioned")));const I=t=>qt(t,i),B=r(r({},Xt(this,e)),{},{type:this.constructor.type,version:C,originX:g,originY:f,left:I(u),top:I(d),width:I(p),height:I(m),fill:te(o)?o.toObject():o,stroke:te(a)?a.toObject():a,strokeWidth:I(v),strokeDashArray:l?l.concat():l,strokeLineCap:y,strokeDashOffset:_,strokeLineJoin:x,strokeUniform:b,strokeMiterLimit:I(S),scaleX:I(w),scaleY:I(T),angle:I(O),flipX:D,flipY:k,opacity:I(M),shadow:c?c.toObject():c,visible:E,backgroundColor:P,fillRule:A,paintFirst:j,globalCompositeOperation:F,skewX:I(L),skewY:I(R)},s?{clipPath:s}:null);return this.includeDefaultValues?B:this._removeDefaultValues(B)}toDatalessObject(t){return this.toObject(t)}_removeDefaultValues(t){const e=this.constructor.getDefaults(),s=Object.keys(e).length>0?e:Object.getPrototypeOf(this);return Yt(t,((t,e)=>{if(e===E||e===P||"type"===e)return!0;const i=s[e];return t!==i&&!(Array.isArray(t)&&Array.isArray(i)&&0===t.length&&0===i.length)}))}toString(){return"#<".concat(this.constructor.type,">")}static _fromObject(t){let e=n(t,Bs),s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{extraParam:i}=s,r=n(s,Xs);return Bt(e,r).then((t=>i?(delete t[i],new this(e[i],t)):new this(t)))}static fromObject(t,e){return this._fromObject(t,e)}};s(Ys,"stateProperties",ps),s(Ys,"cacheProperties",ms),s(Ys,"ownDefaults",vs),s(Ys,"type","FabricObject"),s(Ys,"colorProperties",[J,Q,"backgroundColor"]),s(Ys,"customProperties",[]),et.setClass(Ys),et.setClass(Ys,"object");const Ws=(t,e,s)=>(i,n,o,a)=>{const h=e(i,n,o,a);return h&&ke(t,r(r({},Le(i,n,o,a)),s)),h};function Vs(t){return(e,s,i,r)=>{const{target:n,originX:o,originY:a}=s,h=n.getRelativeCenterPoint(),c=n.translateToOriginPoint(h,o,a),l=t(e,s,i,r);return n.setPositionByOrigin(c,s.originX,s.originY),l}}const Hs=Ws(W,Vs(((t,e,s,i)=>{const r=Ie(e,e.originX,e.originY,s,i);if(Ee(e.originX)===Ee(M)||Ee(e.originX)===Ee(j)&&r.x<0||Ee(e.originX)===Ee(E)&&r.x>0){const{target:t}=e,s=t.strokeWidth/(t.strokeUniform?t.scaleX:1),i=Ae(e)?2:1,n=t.width,o=Math.ceil(Math.abs(r.x*i/t.scaleX)-s);return t.set("width",Math.max(o,0)),n!==t.width}return!1})));function Gs(t,e,s,i,r){i=i||{};const n=this.sizeX||i.cornerSize||r.cornerSize,o=this.sizeY||i.cornerSize||r.cornerSize,a=void 0!==i.transparentCorners?i.transparentCorners:r.transparentCorners,h=a?Q:J,c=!a&&(i.cornerStrokeColor||r.cornerStrokeColor);let l,u=e,d=s;t.save(),t.fillStyle=i.cornerColor||r.cornerColor||"",t.strokeStyle=i.cornerStrokeColor||r.cornerStrokeColor||"",n>o?(l=n,t.scale(1,o/n),d=s*n/o):o>n?(l=o,t.scale(n/o,1),u=e*o/n):l=n,t.lineWidth=1,t.beginPath(),t.arc(u,d,l/2,0,w,!1),t[h](),c&&t.stroke(),t.restore()}function zs(t,e,s,i,r){i=i||{};const n=this.sizeX||i.cornerSize||r.cornerSize,o=this.sizeY||i.cornerSize||r.cornerSize,a=void 0!==i.transparentCorners?i.transparentCorners:r.transparentCorners,h=a?Q:J,c=!a&&(i.cornerStrokeColor||r.cornerStrokeColor),l=n/2,u=o/2;t.save(),t.fillStyle=i.cornerColor||r.cornerColor||"",t.strokeStyle=i.cornerStrokeColor||r.cornerStrokeColor||"",t.lineWidth=1,t.translate(e,s);const d=r.getTotalAngle();t.rotate(_t(d)),t["".concat(h,"Rect")](-l,-u,n,o),c&&t.strokeRect(-l,-u,n,o),t.restore()}class Ns{constructor(t){s(this,"visible",!0),s(this,"actionName",z),s(this,"angle",0),s(this,"x",0),s(this,"y",0),s(this,"offsetX",0),s(this,"offsetY",0),s(this,"sizeX",0),s(this,"sizeY",0),s(this,"touchSizeX",0),s(this,"touchSizeY",0),s(this,"cursorStyle","crosshair"),s(this,"withConnection",!1),Object.assign(this,t)}shouldActivate(t,e,s,i){var r;let{tl:n,tr:o,br:a,bl:h}=i;return(null===(r=e.canvas)||void 0===r?void 0:r.getActiveObject())===e&&e.isControlVisible(t)&&Rs.isPointInPolygon(s,[n,o,a,h])}getActionHandler(t,e,s){return this.actionHandler}getMouseDownHandler(t,e,s){return this.mouseDownHandler}getMouseUpHandler(t,e,s){return this.mouseUpHandler}cursorStyleHandler(t,e,s){return e.cursorStyle}getActionName(t,e,s){return e.actionName}getVisibility(t,e){var s,i;return null!==(s=null===(i=t._controlsVisibility)||void 0===i?void 0:i[e])&&void 0!==s?s:this.visible}setVisibility(t,e,s){this.visible=t}positionHandler(t,e,s,i){return new at(this.x*t.x+this.offsetX,this.y*t.y+this.offsetY).transform(e)}calcCornerCoords(t,e,s,i,r,n){const o=Tt([kt(s,i),Mt({angle:t}),Et((r?this.touchSizeX:this.sizeX)||e,(r?this.touchSizeY:this.sizeY)||e)]);return{tl:new at(-.5,-.5).transform(o),tr:new at(.5,-.5).transform(o),br:new at(.5,.5).transform(o),bl:new at(-.5,.5).transform(o)}}render(t,e,s,i,r){"circle"===((i=i||{}).cornerStyle||r.cornerStyle)?Gs.call(this,t,e,s,i,r):zs.call(this,t,e,s,i,r)}}const Us=(t,e,s)=>s.lockRotation?Pe:e.cursorStyle,qs=Ws(B,Vs(((t,e,s,i)=>{let{target:r,ex:n,ey:o,theta:a,originX:h,originY:c}=e;const l=r.translateToOriginPoint(r.getRelativeCenterPoint(),h,c);if(Fe(r,"lockRotation"))return!1;const u=Math.atan2(o-l.y,n-l.x),d=Math.atan2(i-l.y,s-l.x);let g=xt(d-u+a);if(r.snapAngle&&r.snapAngle>0){const t=r.snapAngle,e=r.snapThreshold||t,s=Math.ceil(g/t)*t,i=Math.floor(g/t)*t;Math.abs(g-i){const i=Ks(t,s);if(Js(s,0!==e.x&&0===e.y?"x":0===e.x&&0!==e.y?"y":"",i))return Pe;const r=Re(s,e);return"".concat(Qs[r],"-resize")};function $s(t,e,s,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const n=e.target,o=r.by,a=Ks(t,n);let h,c,l,u,d,g;if(Js(n,o,a))return!1;if(e.gestureScale)c=e.scaleX*e.gestureScale,l=e.scaleY*e.gestureScale;else{if(h=Ie(e,e.originX,e.originY,s,i),d="y"!==o?Math.sign(h.x||e.signX||1):1,g="x"!==o?Math.sign(h.y||e.signY||1):1,e.signX||(e.signX=d),e.signY||(e.signY=g),Fe(n,"lockScalingFlip")&&(e.signX!==d||e.signY!==g))return!1;if(u=n._getTransformedDimensions(),a&&!o){const t=Math.abs(h.x)+Math.abs(h.y),{original:s}=e,i=t/(Math.abs(u.x*s.scaleX/n.scaleX)+Math.abs(u.y*s.scaleY/n.scaleY));c=s.scaleX*i,l=s.scaleY*i}else c=Math.abs(h.x*n.scaleX/u.x),l=Math.abs(h.y*n.scaleY/u.y);Ae(e)&&(c*=2,l*=2),e.signX!==d&&"y"!==o&&(e.originX=je(e.originX),c*=-1,e.signX=d),e.signY!==g&&"x"!==o&&(e.originY=je(e.originY),l*=-1,e.signY=g)}const f=n.scaleX,p=n.scaleY;return o?("x"===o&&n.set(N,c),"y"===o&&n.set(U,l)):(!Fe(n,"lockScalingX")&&n.set(N,c),!Fe(n,"lockScalingY")&&n.set(U,l)),f!==n.scaleX||p!==n.scaleY}const ti=Ws(I,Vs(((t,e,s,i)=>$s(t,e,s,i)))),ei=Ws(I,Vs(((t,e,s,i)=>$s(t,e,s,i,{by:"x"})))),si=Ws(I,Vs(((t,e,s,i)=>$s(t,e,s,i,{by:"y"})))),ii=["target","ex","ey","skewingSide"],ri={x:{counterAxis:"y",scale:N,skew:q,lockSkewing:"lockSkewingX",origin:"originX",flip:"flipX"},y:{counterAxis:"x",scale:U,skew:K,lockSkewing:"lockSkewingY",origin:"originY",flip:"flipY"}},ni=["ns","nesw","ew","nwse"],oi=(t,e,s)=>{if(0!==e.x&&Fe(s,"lockSkewingY"))return Pe;if(0!==e.y&&Fe(s,"lockSkewingX"))return Pe;const i=Re(s,e)%4;return"".concat(ni[i],"-resize")};function ai(t,e,s,i,o){const{target:a}=s,{counterAxis:h,origin:c,lockSkewing:l,skew:u,flip:d}=ri[t];if(Fe(a,l))return!1;const{origin:g,flip:f}=ri[h],p=Ee(s[g])*(a[f]?-1:1),m=-Math.sign(p)*(a[d]?-1:1),v=-(0===a[u]&&Ie(s,M,M,i,o)[t]>0||a[u]>0?1:-1)*m*.5+.5;return Ws(Y,Vs(((e,s,i,r)=>function(t,e,s){let{target:i,ex:r,ey:o,skewingSide:a}=e,h=n(e,ii);const{skew:c}=ri[t],l=s.subtract(new at(r,o)).divide(new at(i.scaleX,i.scaleY))[t],u=i[c],d=h[c],g=Math.tan(_t(d)),f="y"===t?i._getTransformedDimensions({scaleX:1,scaleY:1,skewX:0}).x:i._getTransformedDimensions({scaleX:1,scaleY:1}).y,p=2*l*a/Math.max(f,1)+g,m=xt(Math.atan(p));i.set(c,m);const v=u!==i[c];if(v&&"y"===t){const{skewX:t,scaleX:e}=i,s=i._getTransformedDimensions({skewY:u}),r=i._getTransformedDimensions(),n=0!==t?s.x/r.x:1;1!==n&&i.set(N,n*e)}return v}(t,s,new at(i,r)))))(e,r(r({},s),{},{[c]:v,skewingSide:m}),i,o)}const hi=(t,e,s,i)=>ai("x",t,e,s,i),ci=(t,e,s,i)=>ai("y",t,e,s,i);function li(t,e){return t[e.canvas.altActionKey]}const ui=(t,e,s)=>{const i=li(t,s);return 0===e.x?i?q:U:0===e.y?i?K:N:""},di=(t,e,s)=>li(t,s)?oi(0,e,s):Zs(t,e,s),gi=(t,e,s,i)=>li(t,e.target)?ci(t,e,s,i):ei(t,e,s,i),fi=(t,e,s,i)=>li(t,e.target)?hi(t,e,s,i):si(t,e,s,i),pi=()=>({ml:new Ns({x:-.5,y:0,cursorStyleHandler:di,actionHandler:gi,getActionName:ui}),mr:new Ns({x:.5,y:0,cursorStyleHandler:di,actionHandler:gi,getActionName:ui}),mb:new Ns({x:0,y:.5,cursorStyleHandler:di,actionHandler:fi,getActionName:ui}),mt:new Ns({x:0,y:-.5,cursorStyleHandler:di,actionHandler:fi,getActionName:ui}),tl:new Ns({x:-.5,y:-.5,cursorStyleHandler:Zs,actionHandler:ti}),tr:new Ns({x:.5,y:-.5,cursorStyleHandler:Zs,actionHandler:ti}),bl:new Ns({x:-.5,y:.5,cursorStyleHandler:Zs,actionHandler:ti}),br:new Ns({x:.5,y:.5,cursorStyleHandler:Zs,actionHandler:ti}),mtr:new Ns({x:0,y:-.5,actionHandler:qs,cursorStyleHandler:Us,offsetY:-40,withConnection:!0,actionName:X})}),mi=()=>({mr:new Ns({x:.5,y:0,actionHandler:Hs,cursorStyleHandler:di,actionName:W}),ml:new Ns({x:-.5,y:0,actionHandler:Hs,cursorStyleHandler:di,actionName:W})}),vi=()=>r(r({},pi()),mi());class yi extends Ys{static getDefaults(){return r(r({},super.getDefaults()),yi.ownDefaults)}constructor(t){super(),Object.assign(this,this.constructor.createControls(),yi.ownDefaults),this.setOptions(t)}static createControls(){return{controls:pi()}}_updateCacheCanvas(){const t=this.canvas;if(this.noScaleCache&&t&&t._currentTransform){const e=t._currentTransform,s=e.target,i=e.action;if(this===s&&i&&i.startsWith(z))return!1}return super._updateCacheCanvas()}getActiveControl(){const t=this.__corner;return t?{key:t,control:this.controls[t],coord:this.oCoords[t]}:void 0}findControl(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasControls||!this.canvas)return;this.__corner=void 0;const s=Object.entries(this.oCoords);for(let i=s.length-1;i>=0;i--){const[r,n]=s[i],o=this.controls[r];if(o.shouldActivate(r,this,t,e?n.touchCorner:n.corner))return this.__corner=r,{key:r,control:o,coord:this.oCoords[r]}}}calcOCoords(){const t=this.getViewportTransform(),e=this.getCenterPoint(),s=kt(e.x,e.y),i=Mt({angle:this.getTotalAngle()-(this.group&&this.flipX?180:0)}),r=wt(s,i),n=wt(t,r),o=wt(n,[1/t[0],0,0,1/t[3],0,0]),a=this.group?Dt(this.calcTransformMatrix()):void 0;a&&(a.scaleX=Math.abs(a.scaleX),a.scaleY=Math.abs(a.scaleY));const h=this._calculateCurrentDimensions(a),c={};return this.forEachControl(((t,e)=>{const s=t.positionHandler(h,o,this,t);c[e]=Object.assign(s,this._calcCornerCoords(t,s))})),c}_calcCornerCoords(t,e){const s=this.getTotalAngle();return{corner:t.calcCornerCoords(s,this.cornerSize,e.x,e.y,!1,this),touchCorner:t.calcCornerCoords(s,this.touchCornerSize,e.x,e.y,!0,this)}}setCoords(){super.setCoords(),this.canvas&&(this.oCoords=this.calcOCoords())}forEachControl(t){for(const e in this.controls)t(this.controls[e],e,this)}drawSelectionBackground(t){if(!this.selectionBackgroundColor||this.canvas&&this.canvas._activeObject!==this)return;t.save();const e=this.getRelativeCenterPoint(),s=this._calculateCurrentDimensions(),i=this.getViewportTransform();t.translate(e.x,e.y),t.scale(1/i[0],1/i[3]),t.rotate(_t(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-s.x/2,-s.y/2,s.x,s.y),t.restore()}strokeBorders(t,e){t.strokeRect(-e.x/2,-e.y/2,e.x,e.y)}_drawBorders(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=r({hasControls:this.hasControls,borderColor:this.borderColor,borderDashArray:this.borderDashArray},s);t.save(),t.strokeStyle=i.borderColor,this._setLineDash(t,i.borderDashArray),this.strokeBorders(t,e),i.hasControls&&this.drawControlsConnectingLines(t,e),t.restore()}_renderControls(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{hasBorders:s,hasControls:i}=this,n=r({hasBorders:s,hasControls:i},e),o=this.getViewportTransform(),a=n.hasBorders,h=n.hasControls,c=wt(o,this.calcTransformMatrix()),l=Dt(c);t.save(),t.translate(l.translateX,l.translateY),t.lineWidth=1*this.borderScaleFactor,this.group===this.parent&&(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(l.angle-=180),t.rotate(_t(this.group?l.angle:this.angle)),a&&this.drawBorders(t,l,e),h&&this.drawControls(t,e),t.restore()}drawBorders(t,e,s){let i;if(s&&s.forActiveSelection||this.group){const t=Se(this.width,this.height,Ft(e)),s=this.isStrokeAccountedForInDimensions()?ht:(this.strokeUniform?(new at).scalarAdd(this.canvas?this.canvas.getZoom():1):new at(e.scaleX,e.scaleY)).scalarMultiply(this.strokeWidth);i=t.add(s).scalarAdd(this.borderScaleFactor).scalarAdd(2*this.padding)}else i=this._calculateCurrentDimensions().scalarAdd(this.borderScaleFactor);this._drawBorders(t,i,s)}drawControlsConnectingLines(t,e){let s=!1;t.beginPath(),this.forEachControl(((i,r)=>{i.withConnection&&i.getVisibility(this,r)&&(s=!0,t.moveTo(i.x*e.x,i.y*e.y),t.lineTo(i.x*e.x+i.offsetX,i.y*e.y+i.offsetY))})),s&&t.stroke()}drawControls(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.save();const s=this.getCanvasRetinaScaling(),{cornerStrokeColor:i,cornerDashArray:n,cornerColor:o}=this,a=r({cornerStrokeColor:i,cornerDashArray:n,cornerColor:o},e);t.setTransform(s,0,0,s,0,0),t.strokeStyle=t.fillStyle=a.cornerColor,this.transparentCorners||(t.strokeStyle=a.cornerStrokeColor),this._setLineDash(t,a.cornerDashArray),this.forEachControl(((e,s)=>{if(e.getVisibility(this,s)){const i=this.oCoords[s];e.render(t,i.x,i.y,a,this)}})),t.restore()}isControlVisible(t){return this.controls[t]&&this.controls[t].getVisibility(this,t)}setControlVisible(t,e){this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[t]=e}setControlsVisibility(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(t).forEach((t=>{let[e,s]=t;return this.setControlVisible(e,s)}))}clearContextTop(t){if(!this.canvas)return;const e=this.canvas.contextTop;if(!e)return;const s=this.canvas.viewportTransform;e.save(),e.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this.transform(e);const i=this.width+4,r=this.height+4;return e.clearRect(-i/2,-r/2,i,r),t||e.restore(),e}onDeselect(t){return!1}onSelect(t){return!1}shouldStartDragging(t){return!1}onDragStart(t){return!1}canDrop(t){return!1}renderDragSourceEffect(t){}renderDropTargetEffect(t){}}function _i(t,e){return e.forEach((e=>{Object.getOwnPropertyNames(e.prototype).forEach((s=>{"constructor"!==s&&Object.defineProperty(t.prototype,s,Object.getOwnPropertyDescriptor(e.prototype,s)||Object.create(null))}))})),t}s(yi,"ownDefaults",{noScaleCache:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,cornerSize:13,touchCornerSize:24,transparentCorners:!0,cornerColor:"rgb(178,204,255)",cornerStrokeColor:"",cornerStyle:"rect",cornerDashArray:null,hasControls:!0,borderColor:"rgb(178,204,255)",borderDashArray:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,hasBorders:!0,selectionBackgroundColor:"",selectable:!0,evented:!0,perPixelTargetFind:!1,activeOn:"down",hoverCursor:null,moveCursor:null});class xi extends yi{}_i(xi,[Xe]),et.setClass(xi),et.setClass(xi,"object");const Ci=(t,e,s,i)=>{const r=2*(i=Math.round(i))+1,{data:n}=t.getImageData(e-i,s-i,r,r);for(let o=3;o0)return!1;return!0};class bi{constructor(t){this.options=t,this.strokeProjectionMagnitude=this.options.strokeWidth/2,this.scale=new at(this.options.scaleX,this.options.scaleY),this.strokeUniformScalar=this.options.strokeUniform?new at(1/this.options.scaleX,1/this.options.scaleY):new at(1,1)}createSideVector(t,e){const s=ss(t,e);return this.options.strokeUniform?s.multiply(this.scale):s}projectOrthogonally(t,e,s){return this.applySkew(t.add(this.calcOrthogonalProjection(t,e,s)))}isSkewed(){return 0!==this.options.skewX||0!==this.options.skewY}applySkew(t){const e=new at(t);return e.y+=e.x*Math.tan(_t(this.options.skewY)),e.x+=e.y*Math.tan(_t(this.options.skewX)),e}scaleUnitVector(t,e){return t.multiply(this.strokeUniformScalar).scalarMultiply(e)}}const Si=new at;class wi extends bi{static getOrthogonalRotationFactor(t,e){const s=e?rs(t,e):ns(t);return Math.abs(s)2&&void 0!==arguments[2]?arguments[2]:this.strokeProjectionMagnitude;const i=this.createSideVector(t,e),r=as(i),n=wi.getOrthogonalRotationFactor(r,this.bisector);return this.scaleUnitVector(r,s*n)}projectBevel(){const t=[];return(this.alpha%w==0?[this.B]:[this.B,this.C]).forEach((e=>{t.push(this.projectOrthogonally(this.A,e)),t.push(this.projectOrthogonally(this.A,e,-this.strokeProjectionMagnitude))})),t}projectMiter(){const t=[],e=Math.abs(this.alpha),s=1/Math.sin(e/2),i=this.scaleUnitVector(this.bisector,-this.strokeProjectionMagnitude*s),r=this.options.strokeUniform?is(this.scaleUnitVector(this.bisector,this.options.strokeMiterLimit)):this.options.strokeMiterLimit;return is(i)/this.strokeProjectionMagnitude<=r&&t.push(this.applySkew(this.A.add(i))),t.push(...this.projectBevel()),t}projectRoundNoSkew(t,e){const s=[],i=new at(wi.getOrthogonalRotationFactor(this.bisector),wi.getOrthogonalRotationFactor(new at(this.bisector.y,this.bisector.x)));return[new at(1,0).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(i),new at(0,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar).multiply(i)].forEach((i=>{ls(i,t,e)&&s.push(this.A.add(i))})),s}projectRoundWithSkew(e,s){const i=[],{skewX:r,skewY:n,scaleX:o,scaleY:a,strokeUniform:h}=this.options,c=new at(Math.tan(_t(r)),Math.tan(_t(n))),l=this.strokeProjectionMagnitude,u=h?l/a/Math.sqrt(1/t(a,2)+1/t(o,2)*t(c.y,2)):l/Math.sqrt(1+t(c.y,2)),d=new at(Math.sqrt(Math.max(t(l,2)-t(u,2),0)),u),g=h?l/Math.sqrt(1+t(c.x,2)*t(1/a,2)/t(1/o+1/o*c.x*c.y,2)):l/Math.sqrt(1+t(c.x,2)/t(1+c.x*c.y,2)),f=new at(g,Math.sqrt(Math.max(t(l,2)-t(g,2),0)));return[f,f.scalarMultiply(-1),d,d.scalarMultiply(-1)].map((t=>this.applySkew(h?t.multiply(this.strokeUniformScalar):t))).forEach((t=>{ls(t,e,s)&&i.push(this.applySkew(this.A).add(t))})),i}projectRound(){const t=[];t.push(...this.projectBevel());const e=this.alpha%w==0,s=this.applySkew(this.A),i=t[e?0:2].subtract(s),r=t[e?1:0].subtract(s),n=e?this.applySkew(this.AB.scalarMultiply(-1)):this.applySkew(this.bisector.multiply(this.strokeUniformScalar).scalarMultiply(-1)),o=hs(i,n)>0,a=o?i:r,h=o?r:i;return this.isSkewed()?t.push(...this.projectRoundWithSkew(a,h)):t.push(...this.projectRoundNoSkew(a,h)),t}projectPoints(){switch(this.options.strokeLineJoin){case"miter":return this.projectMiter();case"round":return this.projectRound();default:return this.projectBevel()}}project(){return this.projectPoints().map((t=>({originPoint:this.A,projectedPoint:t,angle:this.alpha,bisector:this.bisector})))}}class Ti extends bi{constructor(t,e,s){super(s),this.A=new at(t),this.T=new at(e)}calcOrthogonalProjection(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.strokeProjectionMagnitude;const i=this.createSideVector(t,e);return this.scaleUnitVector(as(i),s)}projectButt(){return[this.projectOrthogonally(this.A,this.T,this.strokeProjectionMagnitude),this.projectOrthogonally(this.A,this.T,-this.strokeProjectionMagnitude)]}projectRound(){const t=[];if(!this.isSkewed()&&this.A.eq(this.T)){const e=new at(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);t.push(this.applySkew(this.A.add(e)),this.applySkew(this.A.subtract(e)))}else t.push(...new wi(this.A,this.T,this.T,this.options).projectRound());return t}projectSquare(){const t=[];if(this.A.eq(this.T)){const e=new at(1,1).scalarMultiply(this.strokeProjectionMagnitude).multiply(this.strokeUniformScalar);t.push(this.A.add(e),this.A.subtract(e))}else{const e=this.calcOrthogonalProjection(this.A,this.T,this.strokeProjectionMagnitude),s=this.scaleUnitVector(os(this.createSideVector(this.A,this.T)),-this.strokeProjectionMagnitude),i=this.A.add(s);t.push(i.add(e),i.subtract(e))}return t.map((t=>this.applySkew(t)))}projectPoints(){switch(this.options.strokeLineCap){case"round":return this.projectRound();case"square":return this.projectSquare();default:return this.projectButt()}}project(){return this.projectPoints().map((t=>({originPoint:this.A,projectedPoint:t})))}}const Oi=function(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=[];if(0===t.length)return i;const r=t.reduce(((t,e)=>(t[t.length-1].eq(e)||t.push(new at(e)),t)),[new at(t[0])]);if(1===r.length)s=!0;else if(!s){const t=r[0],e=((t,e)=>{for(let s=t.length-1;s>=0;s--)if(e(t[s]))return s;return-1})(r,(e=>!e.eq(t)));r.splice(e+1)}return r.forEach(((t,r,n)=>{let o,a;0===r?(a=n[1],o=s?t:n[n.length-1]):r===n.length-1?(o=n[r-1],a=s?t:n[0]):(o=n[r-1],a=n[r+1]),s&&1===n.length?i.push(...new Ti(t,t,e).project()):!s||0!==r&&r!==n.length-1?i.push(...new wi(t,o,a,e).project()):i.push(...new Ti(t,0===r?a:o,e).project())})),i},Di=t=>{const e={};return Object.keys(t).forEach((s=>{e[s]={},Object.keys(t[s]).forEach((i=>{e[s][i]=r({},t[s][i])}))})),e},ki=t=>t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">"),Mi=t=>{const e=[];for(let s,i=0;i{const s=t.charCodeAt(e);if(isNaN(s))return"";if(s<55296||s>57343)return t.charAt(e);if(55296<=s&&s<=56319){if(t.length<=e+1)throw"High surrogate without following low surrogate";const s=t.charCodeAt(e+1);if(56320>s||s>57343)throw"High surrogate without following low surrogate";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw"Low surrogate without preceding high surrogate";const i=t.charCodeAt(e-1);if(55296>i||i>56319)throw"Low surrogate without preceding high surrogate";return!1};var Pi=Object.freeze({__proto__:null,capitalize:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"".concat(t.charAt(0).toUpperCase()).concat(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:ki,graphemeSplit:Mi});const Ai=function(t,e){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.textBackgroundColor!==e.textBackgroundColor||t.deltaY!==e.deltaY||s&&(t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough)},ji=(t,e)=>{const s=e.split("\n"),i=[];let r=-1,n={};t=Di(t);for(let o=0;o0&&(Ai(n,e,!0)?i.push({start:r,end:r+1,style:e}):i[i.length-1].end++),n=e||{}}else r+=e.length,n={}}return i},Fi=(t,e)=>{if(!Array.isArray(t))return Di(t);const s=e.split(L),i={};let n=-1,o=0;for(let a=0;a{var e;return null!==(e=Ne[t])&&void 0!==e?e:t},Xi=new RegExp("(".concat(He,")"),"gi"),Yi=t=>t.replace(Xi," $1 ").replace(/,/gi," ").replace(/\s+/gi," ");var Wi,Vi,Hi,Gi,zi,Ni,Ui;const qi="(".concat(He,")"),Ki=String.raw(Wi||(Wi=o(["(skewX)(",")"],["(skewX)\\(","\\)"])),qi),Ji=String.raw(Vi||(Vi=o(["(skewY)(",")"],["(skewY)\\(","\\)"])),qi),Qi=String.raw(Hi||(Hi=o(["(rotate)(","(?: "," ",")?)"],["(rotate)\\(","(?: "," ",")?\\)"])),qi,qi,qi),Zi=String.raw(Gi||(Gi=o(["(scale)(","(?: ",")?)"],["(scale)\\(","(?: ",")?\\)"])),qi,qi),$i=String.raw(zi||(zi=o(["(translate)(","(?: ",")?)"],["(translate)\\(","(?: ",")?\\)"])),qi,qi),tr=String.raw(Ni||(Ni=o(["(matrix)("," "," "," "," "," ",")"],["(matrix)\\("," "," "," "," "," ","\\)"])),qi,qi,qi,qi,qi,qi),er="(?:".concat(tr,"|").concat($i,"|").concat(Qi,"|").concat(Zi,"|").concat(Ki,"|").concat(Ji,")"),sr="(?:".concat(er,"*)"),ir=String.raw(Ui||(Ui=o(["^s*(?:","?)s*$"],["^\\s*(?:","?)\\s*$"])),sr),rr=new RegExp(ir),nr=new RegExp(er),or=new RegExp(er,"g");function ar(t){const e=[];if(!(t=Yi(t).replace(/\s*([()])\s*/gi,"$1"))||t&&!rr.test(t))return[...O];for(const s of t.matchAll(or)){const t=nr.exec(s[0]);if(!t)continue;let i=O;const r=t.filter((t=>!!t)),[,n,...o]=r,[a,h,c,l,u,d]=o.map((t=>parseFloat(t)));switch(n){case"translate":i=kt(a,h);break;case X:i=Mt({angle:a},{x:h,y:c});break;case z:i=Et(a,h);break;case q:i=At(a);break;case K:i=jt(a);break;case"matrix":i=[a,h,c,l,u,d]}e.push(i)}return Tt(e)}function hr(t,e,s,i){const r=Array.isArray(e);let n,o=e;if(t!==J&&t!==Q||e!==F){if("strokeUniform"===t)return"non-scaling-stroke"===e;if("strokeDashArray"===t)o=e===F?null:e.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===t)o=s&&s.transformMatrix?wt(s.transformMatrix,ar(e)):ar(e);else if("visible"===t)o=e!==F&&"hidden"!==e,s&&!1===s.visible&&(o=!1);else if("opacity"===t)o=parseFloat(e),s&&void 0!==s.opacity&&(o*=s.opacity);else if("textAnchor"===t)o="start"===e?E:"end"===e?j:M;else if("charSpacing"===t)n=Kt(e,i)/i*1e3;else if("paintFirst"===t){const t=e.indexOf(J),s=e.indexOf(Q);o=J,(t>-1&&s>-1&&s-1)&&(o=Q)}else{if("href"===t||"xlink:href"===t||"font"===t||"id"===t)return e;if("imageSmoothing"===t)return"optimizeQuality"===e;n=r?e.map(Kt):Kt(e,i)}}else o="";return!r&&isNaN(n)?o:n}function cr(t,e){t.replace(/;\s*$/,"").split(";").forEach((t=>{if(!t)return;const[s,i]=t.split(":");e[s.trim().toLowerCase()]=i.trim()}))}const lr={stroke:"strokeOpacity",fill:"fillOpacity"};function ur(t,e,s){if(!t)return{};let i,n={},o=D;t.parentNode&&Qe.test(t.parentNode.nodeName)&&(n=ur(t.parentElement,e,s),n.fontSize&&(i=o=Kt(n.fontSize)));const a=r(r(r({},e.reduce(((e,s)=>{const i=t.getAttribute(s);return i&&(e[s]=i),e}),{})),function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={};for(const i in e)Ii(t,i.split(" "))&&(s=r(r({},s),e[i]));return s}(t,s)),function(t){const e={},s=t.getAttribute("style");return s?("string"==typeof s?cr(s,e):(i=s,r=e,Object.entries(i).forEach((t=>{let[e,s]=t;void 0!==s&&(r[e.toLowerCase()]=s)}))),e):e;var i,r}(t));a[qe]&&t.setAttribute(qe,a[qe]),a[Ue]&&(i=Kt(a[Ue],o),a[Ue]="".concat(i));const h={};for(const r in a){const t=Bi(r),e=hr(t,a[r],n,i);h[t]=e}h&&h.font&&function(t,e){const s=t.match(ze);if(!s)return;const i=s[1],r=s[3],n=s[4],o=s[5],a=s[6];i&&(e.fontStyle=i),r&&(e.fontWeight=isNaN(parseFloat(r))?r:parseFloat(r)),n&&(e.fontSize=Kt(n)),a&&(e.fontFamily=a),o&&(e.lineHeight="normal"===o?1:o)}(h.font,h);const c=r(r({},n),h);return Qe.test(t.nodeName)?c:function(t){const e=xi.getDefaults();return Object.entries(lr).forEach((s=>{let[i,r]=s;if(void 0===t[r]||""===t[i])return;if(void 0===t[i]){if(!e[i])return;t[i]=e[i]}if(0===t[i].indexOf("url("))return;const n=new Ut(t[i]);t[i]=n.setAlpha(qt(n.getAlpha()*t[r],2)).toRgba()})),t}(c)}const dr=["left","top","width","height","visible"],gr=["rx","ry"];class fr extends xi{static getDefaults(){return r(r({},super.getDefaults()),fr.ownDefaults)}constructor(t){super(),Object.assign(this,fr.ownDefaults),this.setOptions(t),this._initRxRy()}_initRxRy(){const{rx:t,ry:e}=this;t&&!e?this.ry=t:e&&!t&&(this.rx=e)}_render(t){const{width:e,height:s}=this,i=-e/2,r=-s/2,n=this.rx?Math.min(this.rx,e/2):0,o=this.ry?Math.min(this.ry,s/2):0,a=0!==n||0!==o;t.beginPath(),t.moveTo(i+n,r),t.lineTo(i+e-n,r),a&&t.bezierCurveTo(i+e-k*n,r,i+e,r+k*o,i+e,r+o),t.lineTo(i+e,r+s-o),a&&t.bezierCurveTo(i+e,r+s-k*o,i+e-k*n,r+s,i+e-n,r+s),t.lineTo(i+n,r+s),a&&t.bezierCurveTo(i+k*n,r+s,i,r+s-k*o,i,r+s-o),t.lineTo(i,r+o),a&&t.bezierCurveTo(i,r+k*o,i+k*n,r,i+n,r),t.closePath(),this._renderPaintInOrder(t)}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...gr,...t])}_toSVG(){const{width:t,height:e,rx:s,ry:i}=this;return["\n')]}static fromElement(t,s,i){return e(this,null,(function*(){const e=ur(t,this.ATTRIBUTE_NAMES,i),{left:o=0,top:a=0,width:h=0,height:c=0,visible:l=!0}=e,u=n(e,dr);return new this(r(r(r({},s),u),{},{left:o,top:a,width:h,height:c,visible:Boolean(l&&h&&c)}))}))}}s(fr,"type","Rect"),s(fr,"cacheProperties",[...ms,...gr]),s(fr,"ownDefaults",{rx:0,ry:0}),s(fr,"ATTRIBUTE_NAMES",[...Li,"x","y","rx","ry","width","height"]),et.setClass(fr),et.setSVGClass(fr);const pr="initialization",mr="added",vr="removed",yr="imperative",_r=(t,e)=>{const{strokeUniform:s,strokeWidth:i,width:r,height:n,group:o}=e,a=o&&o!==t?we(o.calcTransformMatrix(),t.calcTransformMatrix()):null,h=a?e.getRelativeCenterPoint().transform(a):e.getRelativeCenterPoint(),c=!e.isStrokeAccountedForInDimensions(),l=s&&c?Oe(new at(i,i),void 0,t.calcTransformMatrix()):ht,u=!s&&c?i:0,d=Se(r+u,n+u,Tt([a,e.calcOwnMatrix()],!0)).add(l).scalarDivide(2);return[h.subtract(d),h.add(d)]};class xr{calcLayoutResult(t,e){if(this.shouldPerformLayout(t))return this.calcBoundingBox(e,t)}shouldPerformLayout(t){let{type:e,prevStrategy:s,strategy:i}=t;return e===pr||e===yr||!!s&&i!==s}shouldLayoutClipPath(t){let{type:e,target:{clipPath:s}}=t;return e!==pr&&s&&!s.absolutePositioned}getInitialSize(t,e){return e.size}calcBoundingBox(t,e){const{type:s,target:i}=e;if(s===yr&&e.overrides)return e.overrides;if(0===t.length)return;const{left:r,top:n,width:o,height:a}=ve(t.map((t=>_r(i,t))).reduce(((t,e)=>t.concat(e)),[])),h=new at(o,a),c=new at(r,n).add(h.scalarDivide(2));if(s===pr){const t=this.getInitialSize(e,{size:h,center:c});return{center:c,relativeCorrection:new at(0,0),size:t}}return{center:c.transform(i.calcOwnMatrix()),size:h}}}s(xr,"type","strategy");class Cr extends xr{shouldPerformLayout(t){return!0}}s(Cr,"type","fit-content"),et.setClass(Cr);const br=["strategy"],Sr=["target","strategy","bubbles","prevStrategy"],wr="layoutManager";class Tr{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Cr;s(this,"strategy",void 0),this.strategy=t,this._subscriptions=new Map}performLayout(t){const e=r(r({bubbles:!0,strategy:this.strategy},t),{},{prevStrategy:this._prevLayoutStrategy,stopPropagation(){this.bubbles=!1}});this.onBeforeLayout(e);const s=this.getLayoutResult(e);s&&this.commitLayout(e,s),this.onAfterLayout(e,s),this._prevLayoutStrategy=e.strategy}attachHandlers(t,e){const{target:s}=e;return[Z,R,W,B,I,Y,G,V,H].map((e=>t.on(e,(t=>this.performLayout(e===Z?{type:"object_modified",trigger:e,e:t,target:s}:{type:"object_modifying",trigger:e,e:t,target:s})))))}subscribe(t,e){this.unsubscribe(t,e);const s=this.attachHandlers(t,e);this._subscriptions.set(t,s)}unsubscribe(t,e){(this._subscriptions.get(t)||[]).forEach((t=>t())),this._subscriptions.delete(t)}unsubscribeTargets(t){t.targets.forEach((e=>this.unsubscribe(e,t)))}subscribeTargets(t){t.targets.forEach((e=>this.subscribe(e,t)))}onBeforeLayout(t){const{target:e,type:s}=t,{canvas:i}=e;if(s===pr||s===mr?this.subscribeTargets(t):s===vr&&this.unsubscribeTargets(t),e.fire("layout:before",{context:t}),i&&i.fire("object:layout:before",{target:e,context:t}),s===yr&&t.deep){const s=n(t,br);e.forEachObject((t=>t.layoutManager&&t.layoutManager.performLayout(r(r({},s),{},{bubbles:!1,target:t}))))}}getLayoutResult(t){const{target:e,strategy:s,type:i}=t,r=s.calcLayoutResult(t,e.getObjects());if(!r)return;const n=i===pr?new at:e.getRelativeCenterPoint(),{center:o,correction:a=new at,relativeCorrection:h=new at}=r,c=n.subtract(o).add(a).transform(i===pr?O:St(e.calcOwnMatrix()),!0).add(h);return{result:r,prevCenter:n,nextCenter:o,offset:c}}commitLayout(t,e){const{target:s}=t,{result:{size:i},nextCenter:r}=e;var n,o;s.set({width:i.x,height:i.y}),this.layoutObjects(t,e),t.type===pr?s.set({left:null!==(n=t.x)&&void 0!==n?n:r.x+i.x*Ee(s.originX),top:null!==(o=t.y)&&void 0!==o?o:r.y+i.y*Ee(s.originY)}):(s.setPositionByOrigin(r,M,M),s.setCoords(),s.set("dirty",!0))}layoutObjects(t,e){const{target:s}=t;s.forEachObject((i=>{i.group===s&&this.layoutObject(t,e,i)})),t.strategy.shouldLayoutClipPath(t)&&this.layoutObject(t,e,s.clipPath)}layoutObject(t,e,s){let{offset:i}=e;s.set({left:s.left+i.x,top:s.top+i.y})}onAfterLayout(t,e){const{target:s,strategy:i,bubbles:o,prevStrategy:a}=t,h=n(t,Sr),{canvas:c}=s;s.fire("layout:after",{context:t,result:e}),c&&c.fire("object:layout:after",{context:t,result:e,target:s});const l=s.parent;o&&null!=l&&l.layoutManager&&((h.path||(h.path=[])).push(s),l.layoutManager.performLayout(r(r({},h),{},{target:l}))),s.set("dirty",!0)}dispose(){const{_subscriptions:t}=this;t.forEach((t=>t.forEach((t=>t())))),t.clear()}toObject(){return{type:wr,strategy:this.strategy.constructor.type}}toJSON(){return this.toObject()}}et.setClass(Tr,wr);const Or=["type","objects","layoutManager"];class Dr extends Tr{performLayout(){}}class kr extends(lt(xi)){static getDefaults(){return r(r({},super.getDefaults()),kr.ownDefaults)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),s(this,"_activeObjects",[]),s(this,"__objectSelectionTracker",void 0),s(this,"__objectSelectionDisposer",void 0),Object.assign(this,kr.ownDefaults),this.setOptions(e),this.groupInit(t,e)}groupInit(t,e){var s;this._objects=[...t],this.__objectSelectionTracker=this.__objectSelectionMonitor.bind(this,!0),this.__objectSelectionDisposer=this.__objectSelectionMonitor.bind(this,!1),this.forEachObject((t=>{this.enterGroup(t,!1)})),this.layoutManager=null!==(s=e.layoutManager)&&void 0!==s?s:new Tr,this.layoutManager.performLayout({type:pr,target:this,targets:[...t],x:e.left,y:e.top})}canEnterGroup(t){return t===this||this.isDescendantOf(t)?(c("error","Group: circular object trees are not supported, this call has no effect"),!1):-1===this._objects.indexOf(t)||(c("error","Group: duplicate objects are not supported inside group, this call has no effect"),!1)}_filterObjectsBeforeEnteringGroup(t){return t.filter(((t,e,s)=>this.canEnterGroup(t)&&s.indexOf(t)===e))}add(){for(var t=arguments.length,e=new Array(t),s=0;s1?e-1:0),i=1;i{s._set(t,e)})),this}_shouldSetNestedCoords(){return this.subTargetCheck}removeAll(){return this._activeObjects=[],this.remove(...this._objects)}__objectSelectionMonitor(t,e){let{target:s}=e;const i=this._activeObjects;if(t)i.push(s),this._set("dirty",!0);else if(i.length>0){const t=i.indexOf(s);t>-1&&(i.splice(t,1),this._set("dirty",!0))}}_watchObject(t,e){t&&this._watchObject(!1,e),t?(e.on("selected",this.__objectSelectionTracker),e.on("deselected",this.__objectSelectionDisposer)):(e.off("selected",this.__objectSelectionTracker),e.off("deselected",this.__objectSelectionDisposer))}enterGroup(t,e){t.group&&t.group.remove(t),t._set("parent",this),this._enterGroup(t,e)}_enterGroup(t,e){e&&xe(t,wt(St(this.calcTransformMatrix()),t.calcTransformMatrix())),this._shouldSetNestedCoords()&&t.setCoords(),t._set("group",this),t._set("canvas",this.canvas),this._watchObject(!0,t);const s=this.canvas&&this.canvas.getActiveObject&&this.canvas.getActiveObject();s&&(s===t||t.isDescendantOf(s))&&this._activeObjects.push(t)}exitGroup(t,e){this._exitGroup(t,e),t._set("parent",void 0),t._set("canvas",void 0)}_exitGroup(t,e){t._set("group",void 0),e||(xe(t,wt(this.calcTransformMatrix(),t.calcTransformMatrix())),t.setCoords()),this._watchObject(!1,t);const s=this._activeObjects.length>0?this._activeObjects.indexOf(t):-1;s>-1&&this._activeObjects.splice(s,1)}shouldCache(){const t=xi.prototype.shouldCache.call(this);if(t)for(let e=0;et.setCoords()))}triggerLayout(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.layoutManager.performLayout(r({target:this,type:yr},t))}render(t){this._transformDone=!0,super.render(t),this._transformDone=!1}__serializeObjects(t,e){const s=this.includeDefaultValues;return this._objects.filter((function(t){return!t.excludeFromExport})).map((function(i){const r=i.includeDefaultValues;i.includeDefaultValues=s;const n=i[t||"toObject"](e);return i.includeDefaultValues=r,n}))}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=this.layoutManager.toObject();return r(r(r({},super.toObject(["subTargetCheck","interactive",...t])),"fit-content"!==e.strategy||this.includeDefaultValues?{layoutManager:e}:{}),{},{objects:this.__serializeObjects("toObject",t)})}toString(){return"#")}dispose(){this.layoutManager.unsubscribeTargets({targets:this.getObjects(),target:this}),this._activeObjects=[],this.forEachObject((t=>{this._watchObject(!1,t),t.dispose()})),super.dispose()}_createSVGBgRect(t){if(!this.backgroundColor)return"";const e=fr.prototype._toSVG.call(this),s=e.indexOf("COMMON_PARTS");e[s]='for="group" ';const i=e.join("");return t?t(i):i}_toSVG(t){const e=["\n"],s=this._createSVGBgRect(t);s&&e.push("\t\t",s);for(let i=0;i\n"),e}getSvgStyles(){const t=void 0!==this.opacity&&1!==this.opacity?"opacity: ".concat(this.opacity,";"):"",e=this.visible?"":" visibility: hidden;";return[t,this.getSvgFilter(),e].join("")}toClipPathSVG(t){const e=[],s=this._createSVGBgRect(t);s&&e.push("\t",s);for(let i=0;i{let[e,s]=t;const i=new this(e,r(r(r({},a),s),{},{layoutManager:new Dr}));if(o){const t=et.getClass(o.type),e=et.getClass(o.strategy);i.layoutManager=new t(new e)}else i.layoutManager=new Tr;return i.layoutManager.subscribeTargets({type:pr,target:i,targets:i.getObjects()}),i.setCoords(),i}))}}s(kr,"type","Group"),s(kr,"ownDefaults",{strokeWidth:0,subTargetCheck:!1,interactive:!1}),et.setClass(kr);const Mr=(t,e)=>Math.min(e.width/t.width,e.height/t.height),Er=(t,e)=>Math.max(e.width/t.width,e.height/t.height);var Pr;const Ar="(".concat(He,")"),jr="(M) (?:".concat(Ar," ").concat(Ar," ?)+"),Fr="(L) (?:".concat(Ar," ").concat(Ar," ?)+"),Lr="(H) (?:".concat(Ar," ?)+"),Rr="(V) (?:".concat(Ar," ?)+"),Ir=String.raw(Pr||(Pr=o(["(Z)s*"],["(Z)\\s*"]))),Br="(C) (?:".concat(Ar," ").concat(Ar," ").concat(Ar," ").concat(Ar," ").concat(Ar," ").concat(Ar," ?)+"),Xr="(S) (?:".concat(Ar," ").concat(Ar," ").concat(Ar," ").concat(Ar," ?)+"),Yr="(Q) (?:".concat(Ar," ").concat(Ar," ").concat(Ar," ").concat(Ar," ?)+"),Wr="(T) (?:".concat(Ar," ").concat(Ar," ?)+"),Vr="(A) (?:".concat(Ar," ").concat(Ar," ").concat(Ar," ([01]) ?([01]) ").concat(Ar," ").concat(Ar," ?)+"),Hr="(?:(?:".concat(jr,")")+"|(?:".concat(Fr,")")+"|(?:".concat(Lr,")")+"|(?:".concat(Rr,")")+"|(?:".concat(Ir,")")+"|(?:".concat(Br,")")+"|(?:".concat(Xr,")")+"|(?:".concat(Yr,")")+"|(?:".concat(Wr,")")+"|(?:".concat(Vr,"))"),Gr={m:"l",M:"L"},zr=(t,e,s,i,r,n,o,a,h,c,l)=>{const u=nt(t),d=ot(t),g=nt(e),f=ot(e),p=s*r*g-i*n*f+o,m=i*r*g+s*n*f+a;return["C",c+h*(-s*r*d-i*n*u),l+h*(-i*r*d+s*n*u),p+h*(s*r*f+i*n*g),m+h*(i*r*f-s*n*g),p,m]},Nr=(t,e,s,i)=>{const r=Math.atan2(e,t),n=Math.atan2(i,s);return n>=r?n-r:2*Math.PI-(r-n)};function Ur(t,e,s,i,r,n,o,a){let c;if(h.cachesBoundsOfCurve&&(c=[...arguments].join(),x.boundsOfCurveCache[c]))return x.boundsOfCurveCache[c];const l=Math.sqrt,u=Math.abs,d=[],g=[[0,0],[0,0]];let f=6*t-12*s+6*r,p=-3*t+9*s-9*r+3*o,m=3*s-3*t;for(let h=0;h<2;++h){if(h>0&&(f=6*e-12*i+6*n,p=-3*e+9*i-9*n+3*a,m=3*i-3*e),u(p)<1e-12){if(u(f)<1e-12)continue;const t=-m/f;0{let[r,n,o,a,h,c,l,u]=i;const d=((e,s,i,r,n,o,a)=>{if(0===i||0===r)return[];let h=0,c=0,l=0;const u=Math.PI,d=a*T,g=ot(d),f=nt(d),p=.5*(-f*e-g*s),m=.5*(-f*s+g*e),v=t(i,2),y=t(r,2),_=t(m,2),x=t(p,2),C=v*y-v*_-y*x;let b=Math.abs(i),S=Math.abs(r);if(C<0){const t=Math.sqrt(1-C/(v*y));b*=t,S*=t}else l=(n===o?-1:1)*Math.sqrt(C/(v*_+y*x));const w=l*b*m/S,O=-l*S*p/b,D=f*w-g*O+.5*e,k=g*w+f*O+.5*s;let M=Nr(1,0,(p-w)/b,(m-O)/S),E=Nr((p-w)/b,(m-O)/S,(-p-w)/b,(-m-O)/S);0===o&&E>0?E-=2*u:1===o&&E<0&&(E+=2*u);const P=Math.ceil(Math.abs(E/u*2)),A=[],j=E/P,F=8/3*Math.sin(j/4)*Math.sin(j/4)/Math.sin(j/2);let L=M+j;for(let t=0;t{let e=0,s=0,i=0,r=0;const n=[];let o,a=0,h=0;for(const c of t){const t=[...c];let l;switch(t[0]){case"l":t[1]+=e,t[2]+=s;case"L":e=t[1],s=t[2],l=["L",e,s];break;case"h":t[1]+=e;case"H":e=t[1],l=["L",e,s];break;case"v":t[1]+=s;case"V":s=t[1],l=["L",e,s];break;case"m":t[1]+=e,t[2]+=s;case"M":e=t[1],s=t[2],i=t[1],r=t[2],l=["M",e,s];break;case"c":t[1]+=e,t[2]+=s,t[3]+=e,t[4]+=s,t[5]+=e,t[6]+=s;case"C":a=t[3],h=t[4],e=t[5],s=t[6],l=["C",t[1],t[2],a,h,e,s];break;case"s":t[1]+=e,t[2]+=s,t[3]+=e,t[4]+=s;case"S":"C"===o?(a=2*e-a,h=2*s-h):(a=e,h=s),e=t[3],s=t[4],l=["C",a,h,t[1],t[2],e,s],a=l[3],h=l[4];break;case"q":t[1]+=e,t[2]+=s,t[3]+=e,t[4]+=s;case"Q":a=t[1],h=t[2],e=t[3],s=t[4],l=["Q",a,h,e,s];break;case"t":t[1]+=e,t[2]+=s;case"T":"Q"===o?(a=2*e-a,h=2*s-h):(a=e,h=s),e=t[1],s=t[2],l=["Q",a,h,e,s];break;case"a":t[6]+=e,t[7]+=s;case"A":qr(e,s,t).forEach((t=>n.push(t))),e=t[6],s=t[7];break;case"z":case"Z":e=i,s=r,l=["Z"]}l?(n.push(l),o=l[0]):o=""}return n},Jr=(e,s,i,r)=>Math.sqrt(t(i-e,2)+t(r-s,2)),Qr=(e,s,i,r,n,o,a,h)=>c=>{const l=t(c,3),u=3*t(f=c,2)*(1-f),d=(e=>3*e*t(1-e,2))(c),g=(e=>t(1-e,3))(c);var f;return new at(a*l+n*u+i*d+e*g,h*l+o*u+r*d+s*g)},Zr=e=>t(e,2),$r=t=>2*t*(1-t),tn=e=>t(1-e,2),en=(t,e,s,i,r,n,o,a)=>h=>{const c=Zr(h),l=$r(h),u=tn(h),d=3*(u*(s-t)+l*(r-s)+c*(o-r)),g=3*(u*(i-e)+l*(n-i)+c*(a-n));return Math.atan2(g,d)},sn=(t,e,s,i,r,n)=>o=>{const a=Zr(o),h=$r(o),c=tn(o);return new at(r*a+s*h+t*c,n*a+i*h+e*c)},rn=(t,e,s,i,r,n)=>o=>{const a=1-o,h=2*(a*(s-t)+o*(r-s)),c=2*(a*(i-e)+o*(n-i));return Math.atan2(c,h)},nn=(t,e,s)=>{let i=new at(e,s),r=0;for(let n=1;n<=100;n+=1){const e=t(n/100);r+=Jr(i.x,i.y,e.x,e.y),i=e}return r},on=t=>{let e,s,i=0,r=0,n=0,o=0,a=0;const h=[];for(const c of t){const t={x:r,y:n,command:c[0],length:0};switch(c[0]){case"M":s=t,s.x=o=r=c[1],s.y=a=n=c[2];break;case"L":s=t,s.length=Jr(r,n,c[1],c[2]),r=c[1],n=c[2];break;case"C":e=Qr(r,n,c[1],c[2],c[3],c[4],c[5],c[6]),s=t,s.iterator=e,s.angleFinder=en(r,n,c[1],c[2],c[3],c[4],c[5],c[6]),s.length=nn(e,r,n),r=c[5],n=c[6];break;case"Q":e=sn(r,n,c[1],c[2],c[3],c[4]),s=t,s.iterator=e,s.angleFinder=rn(r,n,c[1],c[2],c[3],c[4]),s.length=nn(e,r,n),r=c[3],n=c[4];break;case"Z":s=t,s.destX=o,s.destY=a,s.length=Jr(r,n,o,a),r=o,n=a}i+=s.length,h.push(s)}return h.push({length:i,x:r,y:n}),h},an=function(t,e){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:on(t),i=0;for(;e-s[i].length>0&&i{let s,i=0,n=0,o={x:t.x,y:t.y},a=r({},o),h=.01,c=0;const l=t.iterator,u=t.angleFinder;for(;n1e-4;)a=l(i),c=i,s=Jr(o.x,o.y,a.x,a.y),s+n>e?(i-=h,h/=2):(o=a,i+=h,n+=s);return r(r({},a),{},{angle:u(c)})})(n,e)}},hn=new RegExp(Hr,"gi"),cn=new RegExp(Hr,"i"),ln=t=>{t=Yi(t);const e=[];for(let[s]of t.matchAll(hn)){const t=[];let i;do{if(i=cn.exec(s),!i)break;const e=i.filter((t=>t));e.shift();const r=e.map((t=>{const e=Number.parseFloat(t);return Number.isNaN(e)?t:e}));if(t.push(r),e.length<=1)break;e.shift(),s=s.replace(new RegExp("".concat(e.join(" ?")," ?$")),"")}while(i);t.reverse().forEach(((t,s)=>{const i=Gr[t[0]];s>0&&("l"==i||"L"==i)&&(t[0]=i),e.push(t)}))}return e},un=(t,e)=>t.map((t=>t.map(((t,s)=>0===s||void 0===e?t:qt(t,e))).join(" "))).join(" ");function dn(t,e){const s=t.style;s&&e&&("string"==typeof e?s.cssText+=";"+e:Object.entries(e).forEach((t=>{let[e,i]=t;return s.setProperty(e,i)})))}const gn=(t,e)=>{let s=t._findCenterFromElement();t.transformMatrix&&((t=>{if(t.transformMatrix){const{scaleX:e,scaleY:s,angle:i,skewX:r}=Dt(t.transformMatrix);t.flipX=!1,t.flipY=!1,t.set(N,e),t.set(U,s),t.angle=i,t.skewX=r,t.skewY=0}})(t),s=s.transform(t.transformMatrix)),delete t.transformMatrix,e&&(t.scaleX*=e.scaleX,t.scaleY*=e.scaleY,t.cropX=e.cropX,t.cropY=e.cropY,s.x+=e.offsetLeft,s.y+=e.offsetTop,t.width=e.width,t.height=e.height),t.setPositionByOrigin(s,M,M)};var fn=Object.freeze({__proto__:null,addTransformToObject:_e,animate:Fs,animateColor:Ls,applyTransformToObject:xe,calcAngleBetweenVectors:rs,calcDimensionsMatrix:Ft,calcPlaneChangeMatrix:we,calcVectorRotation:ns,cancelAnimFrame:gt,capValue:fs,composeMatrix:Lt,copyCanvasElement:t=>{var e;const s=mt();return s.width=t.width,s.height=t.height,null===(e=s.getContext("2d"))||void 0===e||e.drawImage(t,0,0),s},cos:nt,createCanvasElement:mt,createImage:vt,createRotateMatrix:Mt,createScaleMatrix:Et,createSkewXMatrix:At,createSkewYMatrix:jt,createTranslateMatrix:kt,createVector:ss,crossProduct:hs,degreesToRadians:_t,dotProduct:cs,ease:Ss,enlivenObjectEnlivables:Bt,enlivenObjects:It,findScaleToCover:Er,findScaleToFit:Mr,getBoundsOfCurve:Ur,getOrthonormalVector:as,getPathSegmentsInfo:on,getPointOnPath:an,getPointer:fe,getRandomInt:(t,e)=>Math.floor(Math.random()*(e-t+1))+t,getRegularPolygonPath:(t,e)=>{const s=2*Math.PI/t;let i=-S;t%2==0&&(i+=s/2);const r=new Array(t+1);for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:0,s=new at(t[0]),i=new at(t[1]),r=1,n=0;const o=[],a=t.length,h=a>2;let c;for(h&&(r=t[2].xt[c-2].x?1:s.x===t[c-2].x?0:-1,n=s.y>t[c-2].y?1:s.y===t[c-2].y?0:-1),o.push(["L",s.x+r*e,s.y+n*e]),o},getSvgAttributes:t=>{const e=["instantiated_by_use","style","id","class"];switch(t){case"linearGradient":return e.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);case"radialGradient":return e.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);case"stop":return e.concat(["offset","stop-color","stop-opacity"])}return e},getUnitVector:os,groupSVGElements:(t,e)=>t&&1===t.length?t[0]:new kr(t,e),hasStyleChanged:Ai,invertTransform:St,isBetweenVectors:ls,isIdentityMatrix:Ct,isTouchEvent:pe,isTransparent:Ci,joinPath:un,loadImage:Rt,magnitude:is,makeBoundingBoxFromPoints:ve,makePathSimpler:Kr,matrixToSVG:Qt,mergeClipPaths:(t,e)=>{var s;let i=t,r=e;i.inverted&&!r.inverted&&(i=e,r=t),De(r,null===(s=r.group)||void 0===s?void 0:s.calcTransformMatrix(),i.calcTransformMatrix());const n=i.inverted&&r.inverted;return n&&(i.inverted=r.inverted=!1),new kr([i],{clipPath:r,inverted:n})},multiplyTransformMatrices:wt,multiplyTransformMatrixArray:Tt,parsePath:ln,parsePreserveAspectRatioAttribute:Jt,parseUnit:Kt,pick:Xt,projectStrokeOnPoints:Oi,qrDecompose:Dt,radiansToDegrees:xt,removeFromArray:rt,removeTransformFromObject:(t,e)=>{const s=St(e),i=wt(s,t.calcOwnMatrix());xe(t,i)},removeTransformMatrixForSvgParsing:gn,request:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e.onComplete||b,i=new(y().XMLHttpRequest),r=e.signal,n=function(){i.abort()},o=function(){r&&r.removeEventListener("abort",n),i.onerror=i.ontimeout=b};if(r&&r.aborted)throw new u("request");return r&&r.addEventListener("abort",n,{once:!0}),i.onreadystatechange=function(){4===i.readyState&&(o(),s(i),i.onreadystatechange=b)},i.onerror=i.ontimeout=o,i.open("get",t,!0),i.send(),i},requestAnimFrame:dt,resetObjectTransform:Ce,rotatePoint:(t,e,s)=>t.rotate(s,e),rotateVector:es,saveObjectTransform:be,sendObjectToPlane:De,sendPointToPlane:Te,sendVectorToPlane:Oe,setStyle:dn,sin:ot,sizeAfterTransform:Se,string:Pi,stylesFromArray:Fi,stylesToArray:ji,toDataURL:yt,toFixed:qt,transformPath:(t,e,s)=>(s&&(e=wt(e,[1,0,0,1,-s.x,-s.y])),t.map((t=>{const s=[...t];for(let i=1;i1&&void 0!==arguments[1]?arguments[1]:{};super(t),s(this,"upper",void 0),s(this,"container",void 0);const{el:r}=this.lower,n=this.createUpperCanvas();this.upper={el:n,ctx:n.getContext("2d")},this.applyCanvasStyle(r,{allowTouchScrolling:e}),this.applyCanvasStyle(n,{allowTouchScrolling:e,styles:{position:"absolute",left:"0",top:"0"}});const o=this.createContainerElement();o.classList.add(i),r.parentNode&&r.parentNode.replaceChild(o,r),o.append(r,n),this.container=o}createUpperCanvas(){const{el:t}=this.lower,e=mt();return e.className=t.className,e.classList.remove("lower-canvas"),e.classList.add("upper-canvas"),e.setAttribute("data-fabric","top"),e.style.cssText=t.style.cssText,e.setAttribute("draggable","true"),e}createContainerElement(){const t=v().createElement("div");return t.setAttribute("data-fabric","wrapper"),dn(t,{position:"relative"}),ce(t),t}applyCanvasStyle(t,e){const{styles:s,allowTouchScrolling:i}=e;dn(t,r(r({},s),{},{"touch-action":i?"manipulation":F})),ce(t)}setDimensions(t,e){super.setDimensions(t,e);const{el:s,ctx:i}=this.upper;ae(s,i,t,e)}setCSSDimensions(t){super.setCSSDimensions(t),he(this.upper.el,t),he(this.container,t)}cleanupDOM(t){const e=this.container,{el:s}=this.lower,{el:i}=this.upper;super.cleanupDOM(t),e.removeChild(i),e.removeChild(s),e.parentNode&&e.parentNode.replaceChild(s,e)}dispose(){super.dispose(),m().dispose(this.upper.el),delete this.upper,delete this.container}}class mn extends de{constructor(){super(...arguments),s(this,"targets",[]),s(this,"_hoveredTargets",[]),s(this,"_objectsToRender",void 0),s(this,"_currentTransform",null),s(this,"_groupSelector",null),s(this,"contextTopDirty",!1)}static getDefaults(){return r(r({},super.getDefaults()),mn.ownDefaults)}get upperCanvasEl(){var t;return null===(t=this.elements.upper)||void 0===t?void 0:t.el}get contextTop(){var t;return null===(t=this.elements.upper)||void 0===t?void 0:t.ctx}get wrapperEl(){return this.elements.container}initElements(t){this.elements=new pn(t,{allowTouchScrolling:this.allowTouchScrolling,containerClass:this.containerClass}),this._createCacheCanvas()}_onObjectAdded(t){this._objectsToRender=void 0,super._onObjectAdded(t)}_onObjectRemoved(t){this._objectsToRender=void 0,t===this._activeObject&&(this.fire("before:selection:cleared",{deselected:[t]}),this._discardActiveObject(),this.fire("selection:cleared",{deselected:[t]}),t.fire("deselected",{target:t})),t===this._hoveredTarget&&(this._hoveredTarget=void 0,this._hoveredTargets=[]),super._onObjectRemoved(t)}_onStackOrderChanged(){this._objectsToRender=void 0,super._onStackOrderChanged()}_chooseObjectsToRender(){const t=this._activeObject;return!this.preserveObjectStacking&&t?this._objects.filter((e=>!e.group&&e!==t)).concat(t):this._objects}renderAll(){this.cancelRequestedRender(),this.destroyed||(!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1),!this._objectsToRender&&(this._objectsToRender=this._chooseObjectsToRender()),this.renderCanvas(this.getContext(),this._objectsToRender))}renderTopLayer(t){t.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(t),this.contextTopDirty=!0),t.restore()}renderTop(){const t=this.contextTop;this.clearContext(t),this.renderTopLayer(t),this.fire("after:render",{ctx:t})}setTargetFindTolerance(t){t=Math.round(t),this.targetFindTolerance=t;const e=this.getRetinaScaling(),s=Math.ceil((2*t+1)*e);this.pixelFindCanvasEl.width=this.pixelFindCanvasEl.height=s,this.pixelFindContext.scale(e,e)}isTargetTransparent(t,e,s){const i=this.targetFindTolerance,r=this.pixelFindContext;this.clearContext(r),r.save(),r.translate(-e+i,-s+i),r.transform(...this.viewportTransform);const n=t.selectionBackgroundColor;t.selectionBackgroundColor="",t.render(r),t.selectionBackgroundColor=n,r.restore();const o=Math.round(i*this.getRetinaScaling());return Ci(r,o,o,o)}_isSelectionKeyPressed(t){const e=this.selectionKey;return!!e&&(Array.isArray(e)?!!e.find((e=>!!e&&!0===t[e])):t[e])}_shouldClearSelection(t,e){const s=this.getActiveObjects(),i=this._activeObject;return!!(!e||e&&i&&s.length>1&&-1===s.indexOf(e)&&i!==e&&!this._isSelectionKeyPressed(t)||e&&!e.evented||e&&!e.selectable&&i&&i!==e)}_shouldCenterTransform(t,e,s){if(!t)return;let i;return e===z||e===N||e===U||e===W?i=this.centeredScaling||t.centeredScaling:e===X&&(i=this.centeredRotation||t.centeredRotation),i?!s:s}_getOriginFromCorner(t,e){const s={x:t.originX,y:t.originY};return e?(["ml","tl","bl"].includes(e)?s.x=j:["mr","tr","br"].includes(e)&&(s.x=E),["tl","mt","tr"].includes(e)?s.y=A:["bl","mb","br"].includes(e)&&(s.y=P),s):s}_setupCurrentTransform(t,e,s){var i;const n=e.group?Te(this.getScenePoint(t),void 0,e.group.calcTransformMatrix()):this.getScenePoint(t),{key:o="",control:a}=e.getActiveControl()||{},h=s&&a?null===(i=a.getActionHandler(t,e,a))||void 0===i?void 0:i.bind(a):Be,c=((t,e,s,i)=>{if(!e||!t)return"drag";const r=i.controls[e];return r.getActionName(s,r,i)})(s,o,t,e),l=t[this.centeredKey],u=this._shouldCenterTransform(e,c,l)?{x:M,y:M}:this._getOriginFromCorner(e,o),d={target:e,action:c,actionHandler:h,actionPerformed:!1,corner:o,scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,offsetX:n.x-e.left,offsetY:n.y-e.top,originX:u.x,originY:u.y,ex:n.x,ey:n.y,lastX:n.x,lastY:n.y,theta:_t(e.angle),width:e.width,height:e.height,shiftKey:t.shiftKey,altKey:l,original:r(r({},be(e)),{},{originX:u.x,originY:u.y})};this._currentTransform=d,this.fire("before:transform",{e:t,transform:d})}setCursor(t){this.upperCanvasEl.style.cursor=t}_drawSelection(t){const{x:e,y:s,deltaX:i,deltaY:r}=this._groupSelector,n=new at(e,s).transform(this.viewportTransform),o=new at(e+i,s+r).transform(this.viewportTransform),a=this.selectionLineWidth/2;let h=Math.min(n.x,o.x),c=Math.min(n.y,o.y),l=Math.max(n.x,o.x),u=Math.max(n.y,o.y);this.selectionColor&&(t.fillStyle=this.selectionColor,t.fillRect(h,c,l-h,u-c)),this.selectionLineWidth&&this.selectionBorderColor&&(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,h+=a,c+=a,l-=a,u-=a,xi.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(h,c,l-h,u-c))}findTarget(t){if(this.skipTargetFind)return;const e=this.getViewportPoint(t),s=this._activeObject,i=this.getActiveObjects();if(this.targets=[],s&&i.length>=1){if(s.findControl(e,pe(t)))return s;if(i.length>1&&this.searchPossibleTargets([s],e))return s;if(s===this.searchPossibleTargets([s],e)){if(this.preserveObjectStacking){const i=this.targets;this.targets=[];const r=this.searchPossibleTargets(this._objects,e);return t[this.altSelectionKey]&&r&&r!==s?(this.targets=i,s):r}return s}}return this.searchPossibleTargets(this._objects,e)}_pointIsInObjectSelectionArea(t,e){let s=t.getCoords();const i=this.getZoom(),r=t.padding/i;if(r){const[t,e,i,n]=s,o=Math.atan2(e.y-t.y,e.x-t.x),a=nt(o)*r,h=ot(o)*r,c=a+h,l=a-h;s=[new at(t.x-l,t.y-c),new at(e.x+c,e.y-l),new at(i.x+l,i.y+c),new at(n.x-c,n.y+l)]}return Rs.isPointInPolygon(e,s)}_checkTarget(t,e){if(t&&t.visible&&t.evented&&this._pointIsInObjectSelectionArea(t,Te(e,void 0,this.viewportTransform))){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;if(!this.isTargetTransparent(t,e.x,e.y))return!0}return!1}_searchPossibleTargets(t,e){let s=t.length;for(;s--;){const i=t[s];if(this._checkTarget(i,e)){if(ct(i)&&i.subTargetCheck){const t=this._searchPossibleTargets(i._objects,e);t&&this.targets.push(t)}return i}}}searchPossibleTargets(t,e){const s=this._searchPossibleTargets(t,e);if(s&&ct(s)&&s.interactive&&this.targets[0]){const t=this.targets;for(let e=t.length-1;e>0;e--){const s=t[e];if(!ct(s)||!s.interactive)return s}return t[0]}return s}getViewportPoint(t){return this._pointer?this._pointer:this.getPointer(t,!0)}getScenePoint(t){return this._absolutePointer?this._absolutePointer:this.getPointer(t)}getPointer(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const s=this.upperCanvasEl,i=s.getBoundingClientRect();let r=fe(t),n=i.width||0,o=i.height||0;n&&o||(P in i&&A in i&&(o=Math.abs(i.top-i.bottom)),j in i&&E in i&&(n=Math.abs(i.right-i.left))),this.calcOffset(),r.x=r.x-this._offset.left,r.y=r.y-this._offset.top,e||(r=Te(r,void 0,this.viewportTransform));const a=this.getRetinaScaling();1!==a&&(r.x/=a,r.y/=a);const h=0===n||0===o?new at(1,1):new at(s.width/n,s.height/o);return r.multiply(h)}_setDimensionsImpl(t,e){this._resetTransformEventData(),super._setDimensionsImpl(t,e),this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop)}_createCacheCanvas(){this.pixelFindCanvasEl=mt(),this.pixelFindContext=this.pixelFindCanvasEl.getContext("2d",{willReadFrequently:!0}),this.setTargetFindTolerance(this.targetFindTolerance)}getTopContext(){return this.elements.upper.ctx}getSelectionContext(){return this.elements.upper.ctx}getSelectionElement(){return this.elements.upper.el}getActiveObject(){return this._activeObject}getActiveObjects(){const t=this._activeObject;return ie(t)?t.getObjects():t?[t]:[]}_fireSelectionEvents(t,e){let s=!1,i=!1;const r=this.getActiveObjects(),n=[],o=[];t.forEach((t=>{r.includes(t)||(s=!0,t.fire("deselected",{e:e,target:t}),o.push(t))})),r.forEach((i=>{t.includes(i)||(s=!0,i.fire("selected",{e:e,target:i}),n.push(i))})),t.length>0&&r.length>0?(i=!0,s&&this.fire("selection:updated",{e:e,selected:n,deselected:o})):r.length>0?(i=!0,this.fire("selection:created",{e:e,selected:n})):t.length>0&&(i=!0,this.fire("selection:cleared",{e:e,deselected:o})),i&&(this._objectsToRender=void 0)}setActiveObject(t,e){const s=this.getActiveObjects(),i=this._setActiveObject(t,e);return this._fireSelectionEvents(s,e),i}_setActiveObject(t,e){const s=this._activeObject;return!(s===t||!this._discardActiveObject(e,t)&&this._activeObject||t.onSelect({e:e})||(this._activeObject=t,ie(t)&&s!==t&&t.set("canvas",this),t.setCoords(),0))}_discardActiveObject(t,e){const s=this._activeObject;return!!s&&!s.onDeselect({e:t,object:e})&&(this._currentTransform&&this._currentTransform.target===s&&this.endCurrentTransform(t),ie(s)&&s===this._hoveredTarget&&(this._hoveredTarget=void 0),this._activeObject=void 0,!0)}discardActiveObject(t){const e=this.getActiveObjects(),s=this.getActiveObject();e.length&&this.fire("before:selection:cleared",{e:t,deselected:[s]});const i=this._discardActiveObject(t);return this._fireSelectionEvents(e,t),i}endCurrentTransform(t){const e=this._currentTransform;this._finalizeCurrentTransform(t),e&&e.target&&(e.target.isMoving=!1),this._currentTransform=null}_finalizeCurrentTransform(t){const e=this._currentTransform,s=e.target,i={e:t,target:s,transform:e,action:e.action};s._scaling&&(s._scaling=!1),s.setCoords(),e.actionPerformed&&(this.fire("object:modified",i),s.fire(Z,i))}setViewportTransform(t){super.setViewportTransform(t);const e=this._activeObject;e&&e.setCoords()}destroy(){const t=this._activeObject;ie(t)&&(t.removeAll(),t.dispose()),delete this._activeObject,super.destroy(),this.pixelFindContext=null,this.pixelFindCanvasEl=void 0}clear(){this.discardActiveObject(),this._activeObject=void 0,this.clearContext(this.contextTop),super.clear()}drawControls(t){const e=this._activeObject;e&&e._renderControls(t)}_toObject(t,e,s){const i=this._realizeGroupTransformOnObject(t),r=super._toObject(t,e,s);return t.set(i),r}_realizeGroupTransformOnObject(t){const{group:e}=t;if(e&&ie(e)&&this._activeObject===e){const s=Xt(t,["angle","flipX","flipY",E,N,U,q,K,P]);return _e(t,e.calcOwnMatrix()),s}return{}}_setSVGObject(t,e,s){const i=this._realizeGroupTransformOnObject(e);super._setSVGObject(t,e,s),e.set(i)}}s(mn,"ownDefaults",{uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",selection:!0,selectionKey:"shiftKey",selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,enablePointerEvents:!1,containerClass:"canvas-container",preserveObjectStacking:!1});class vn{constructor(t){s(this,"targets",[]),s(this,"__disposer",void 0);const e=()=>{const{hiddenTextarea:e}=t.getActiveObject()||{};e&&e.focus()},i=t.upperCanvasEl;i.addEventListener("click",e),this.__disposer=()=>i.removeEventListener("click",e)}exitTextEditing(){this.target=void 0,this.targets.forEach((t=>{t.isEditing&&t.exitEditing()}))}add(t){this.targets.push(t)}remove(t){this.unregister(t),rt(this.targets,t)}register(t){this.target=t}unregister(t){t===this.target&&(this.target=void 0)}onMouseMove(t){var e;(null===(e=this.target)||void 0===e?void 0:e.isEditing)&&this.target.updateSelectionOnMouseMove(t)}clear(){this.targets=[],this.target=void 0}dispose(){this.clear(),this.__disposer(),delete this.__disposer}}const yn=["target","oldTarget","fireCanvas","e"],_n={passive:!1},xn=(t,e)=>{const s=t.getViewportPoint(e),i=t.getScenePoint(e);return{viewportPoint:s,scenePoint:i,pointer:s,absolutePointer:i}},Cn=function(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:{}),s(this,"_isClick",void 0),s(this,"textEditingManager",new vn(this)),["_onMouseDown","_onTouchStart","_onMouseMove","_onMouseUp","_onTouchEnd","_onResize","_onMouseWheel","_onMouseOut","_onMouseEnter","_onContextMenu","_onDoubleClick","_onDragStart","_onDragEnd","_onDragProgress","_onDragOver","_onDragEnter","_onDragLeave","_onDrop"].forEach((t=>{this[t]=this[t].bind(this)})),this.addOrRemove(Cn,"add")}_getEventPrefix(){return this.enablePointerEvents?"pointer":"mouse"}addOrRemove(t,e){const s=this.upperCanvasEl,i=this._getEventPrefix();t(oe(s),"resize",this._onResize),t(s,i+"down",this._onMouseDown),t(s,"".concat(i,"move"),this._onMouseMove,_n),t(s,"".concat(i,"out"),this._onMouseOut),t(s,"".concat(i,"enter"),this._onMouseEnter),t(s,"wheel",this._onMouseWheel),t(s,"contextmenu",this._onContextMenu),t(s,"dblclick",this._onDoubleClick),t(s,"dragstart",this._onDragStart),t(s,"dragend",this._onDragEnd),t(s,"dragover",this._onDragOver),t(s,"dragenter",this._onDragEnter),t(s,"dragleave",this._onDragLeave),t(s,"drop",this._onDrop),this.enablePointerEvents||t(s,"touchstart",this._onTouchStart,_n)}removeListeners(){this.addOrRemove(bn,"remove");const t=this._getEventPrefix(),e=ne(this.upperCanvasEl);bn(e,"".concat(t,"up"),this._onMouseUp),bn(e,"touchend",this._onTouchEnd,_n),bn(e,"".concat(t,"move"),this._onMouseMove,_n),bn(e,"touchmove",this._onMouseMove,_n)}_onMouseWheel(t){this.__onMouseWheel(t)}_onMouseOut(t){const e=this._hoveredTarget,s=r({e:t},xn(this,t));this.fire("mouse:out",r(r({},s),{},{target:e})),this._hoveredTarget=void 0,e&&e.fire("mouseout",r({},s)),this._hoveredTargets.forEach((t=>{this.fire("mouse:out",r(r({},s),{},{target:t})),t&&t.fire("mouseout",r({},s))})),this._hoveredTargets=[]}_onMouseEnter(t){this._currentTransform||this.findTarget(t)||(this.fire("mouse:over",r({e:t},xn(this,t))),this._hoveredTarget=void 0,this._hoveredTargets=[])}_onDragStart(t){this._isClick=!1;const e=this.getActiveObject();if(e&&e.onDragStart(t)){this._dragSource=e;const s={e:t,target:e};return this.fire("dragstart",s),e.fire("dragstart",s),void Cn(this.upperCanvasEl,"drag",this._onDragProgress)}me(t)}_renderDragEffects(t,e,s){let i=!1;const r=this._dropTarget;r&&r!==e&&r!==s&&(r.clearContextTop(),i=!0),null==e||e.clearContextTop(),s!==e&&(null==s||s.clearContextTop());const n=this.contextTop;n.save(),n.transform(...this.viewportTransform),e&&(n.save(),e.transform(n),e.renderDragSourceEffect(t),n.restore(),i=!0),s&&(n.save(),s.transform(n),s.renderDropTargetEffect(t),n.restore(),i=!0),n.restore(),i&&(this.contextTopDirty=!0)}_onDragEnd(t){const e=!!t.dataTransfer&&t.dataTransfer.dropEffect!==F,s=e?this._activeObject:void 0,i={e:t,target:this._dragSource,subTargets:this.targets,dragSource:this._dragSource,didDrop:e,dropTarget:s};bn(this.upperCanvasEl,"drag",this._onDragProgress),this.fire("dragend",i),this._dragSource&&this._dragSource.fire("dragend",i),delete this._dragSource,this._onMouseUp(t)}_onDragProgress(t){const e={e:t,target:this._dragSource,dragSource:this._dragSource,dropTarget:this._draggedoverTarget};this.fire("drag",e),this._dragSource&&this._dragSource.fire("drag",e)}findDragTargets(t){return this.targets=[],{target:this._searchPossibleTargets(this._objects,this.getViewportPoint(t)),targets:[...this.targets]}}_onDragOver(t){const e="dragover",{target:s,targets:i}=this.findDragTargets(t),r=this._dragSource,n={e:t,target:s,subTargets:i,dragSource:r,canDrop:!1,dropTarget:void 0};let o;this.fire(e,n),this._fireEnterLeaveEvents(s,n),s&&(s.canDrop(t)&&(o=s),s.fire(e,n));for(let a=0;a0)return;this.__onMouseUp(t),this._resetTransformEventData(),delete this.mainTouchId;const e=this._getEventPrefix(),s=ne(this.upperCanvasEl);bn(s,"touchend",this._onTouchEnd,_n),bn(s,"touchmove",this._onMouseMove,_n),this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((()=>{Cn(this.upperCanvasEl,"".concat(e,"down"),this._onMouseDown),this._willAddMouseDown=0}),400)}_onMouseUp(t){this.__onMouseUp(t),this._resetTransformEventData();const e=this.upperCanvasEl,s=this._getEventPrefix();if(this._isMainEvent(t)){const t=ne(this.upperCanvasEl);bn(t,"".concat(s,"up"),this._onMouseUp),bn(t,"".concat(s,"move"),this._onMouseMove,_n),Cn(e,"".concat(s,"move"),this._onMouseMove,_n)}}_onMouseMove(t){const e=this.getActiveObject();!this.allowTouchScrolling&&(!e||!e.shouldStartDragging(t))&&t.preventDefault&&t.preventDefault(),this.__onMouseMove(t)}_onResize(){this.calcOffset(),this._resetTransformEventData()}_shouldRender(t){const e=this.getActiveObject();return!!e!=!!t||e&&t&&e!==t}__onMouseUp(t){var e;this._cacheTransformEventData(t),this._handleEvent(t,"up:before");const s=this._currentTransform,i=this._isClick,r=this._target,{button:n}=t;if(n)return(this.fireMiddleClick&&1===n||this.fireRightClick&&2===n)&&this._handleEvent(t,"up"),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)return void this._onMouseUpInDrawingMode(t);if(!this._isMainEvent(t))return;let o,a,h=!1;if(s&&(this._finalizeCurrentTransform(t),h=s.actionPerformed),!i){const e=r===this._activeObject;this.handleSelection(t),h||(h=this._shouldRender(r)||!e&&r===this._activeObject)}if(r){const e=r.findControl(this.getViewportPoint(t),pe(t)),{key:i,control:n}=e||{};if(a=i,r.selectable&&r!==this._activeObject&&"up"===r.activeOn)this.setActiveObject(r,t),h=!0;else if(n){const e=n.getMouseUpHandler(t,r,n);e&&(o=this.getScenePoint(t),e.call(n,t,s,o.x,o.y))}r.isMoving=!1}if(s&&(s.target!==r||s.corner!==a)){const e=s.target&&s.target.controls[s.corner],i=e&&e.getMouseUpHandler(t,s.target,e);o=o||this.getScenePoint(t),i&&i.call(e,t,s,o.x,o.y)}this._setCursorFromEvent(t,r),this._handleEvent(t,"up"),this._groupSelector=null,this._currentTransform=null,r&&(r.__corner=void 0),h?this.requestRenderAll():i||null!==(e=this._activeObject)&&void 0!==e&&e.isEditing||this.renderTop()}_basicEventHandler(t,e){const{target:s,subTargets:i=[]}=e;this.fire(t,e),s&&s.fire(t,e);for(let r=0;r{s=t.hoverCursor||s})),this.setCursor(s)}handleMultiSelection(t,e){const s=this._activeObject,i=ie(s);if(s&&this._isSelectionKeyPressed(t)&&this.selection&&e&&e.selectable&&(s!==e||i)&&(i||!e.isDescendantOf(s)&&!s.isDescendantOf(e))&&!e.onSelect({e:t})&&!s.getActiveControl()){if(i){const i=s.getObjects();if(e===s){const s=this.getViewportPoint(t);if(!(e=this.searchPossibleTargets(i,s)||this.searchPossibleTargets(this._objects,s))||!e.selectable)return!1}e.group===s?(s.remove(e),this._hoveredTarget=e,this._hoveredTargets=[...this.targets],1===s.size()&&this._setActiveObject(s.item(0),t)):(s.multiSelectAdd(e),this._hoveredTarget=s,this._hoveredTargets=[...this.targets]),this._fireSelectionEvents(i,t)}else{s.exitEditing&&s.exitEditing();const i=new(et.getClass("ActiveSelection"))([],{canvas:this});i.multiSelectAdd(s,e),this._hoveredTarget=i,this._setActiveObject(i,t),this._fireSelectionEvents([s],t)}return!0}return!1}handleSelection(t){if(!this.selection||!this._groupSelector)return!1;const{x:e,y:s,deltaX:i,deltaY:r}=this._groupSelector,n=new at(e,s),o=n.add(new at(i,r)),a=n.min(o),h=n.max(o).subtract(a),c=this.collectObjects({left:a.x,top:a.y,width:h.x,height:h.y},{includeIntersecting:!this.selectionFullyContained}),l=n.eq(o)?c[0]?[c[0]]:[]:c.length>1?c.filter((e=>!e.onSelect({e:t}))).reverse():c;if(1===l.length)this.setActiveObject(l[0],t);else if(l.length>1){const e=et.getClass("ActiveSelection");this.setActiveObject(new e(l,{canvas:this}),t)}return this._groupSelector=null,!0}clear(){this.textEditingManager.clear(),super.clear()}destroy(){this.removeListeners(),this.textEditingManager.dispose(),super.destroy()}}const Tn={x1:0,y1:0,x2:0,y2:0},On=r(r({},Tn),{},{r1:0,r2:0}),Dn=(t,e)=>isNaN(t)&&"number"==typeof e?e:t,kn=/^(\d+\.\d+)%|(\d+)%$/;function Mn(t){return t&&kn.test(t)}function En(t,e){const s="number"==typeof t?t:"string"==typeof t?parseFloat(t)/(Mn(t)?100:1):NaN;return fs(0,Dn(s,e),1)}const Pn=/\s*;\s*/,An=/\s*:\s*/;function jn(t,e){let s,i;const r=t.getAttribute("style");if(r){const t=r.split(Pn);""===t[t.length-1]&&t.pop();for(let e=t.length;e--;){const[r,n]=t[e].split(An).map((t=>t.trim()));"stop-color"===r?s=n:"stop-opacity"===r&&(i=n)}}const n=new Ut(s||t.getAttribute("stop-color")||"rgb(0,0,0)");return{offset:En(t.getAttribute("offset"),0),color:n.toRgb(),opacity:Dn(parseFloat(i||t.getAttribute("stop-opacity")||""),1)*n.getAlpha()*e}}function Fn(t,e){const s=[],i=t.getElementsByTagName("stop"),r=En(e,1);for(let n=i.length;n--;)s.push(jn(i[n],r));return s}function Ln(t){return"linearGradient"===t.nodeName||"LINEARGRADIENT"===t.nodeName?"linear":"radial"}function Rn(t){return"userSpaceOnUse"===t.getAttribute("gradientUnits")?"pixels":"percentage"}function In(t,e){return t.getAttribute(e)}function Bn(t,e){return function(t,e){let s,{width:i,height:r,gradientUnits:n}=e;return Object.keys(t).reduce(((e,o)=>{const a=t[o];return"Infinity"===a?s=1:"-Infinity"===a?s=0:(s="string"==typeof a?parseFloat(a):a,"string"==typeof a&&Mn(a)&&(s*=.01,"pixels"===n&&("x1"!==o&&"x2"!==o&&"r2"!==o||(s*=i),"y1"!==o&&"y2"!==o||(s*=r)))),e[o]=s,e}),{})}("linear"===Ln(t)?{x1:In(s=t,"x1")||0,y1:In(s,"y1")||0,x2:In(s,"x2")||"100%",y2:In(s,"y2")||0}:function(t){return{x1:In(t,"fx")||In(t,"cx")||"50%",y1:In(t,"fy")||In(t,"cy")||"50%",r1:0,x2:In(t,"cx")||"50%",y2:In(t,"cy")||"50%",r2:In(t,"r")||"50%"}}(t),r(r({},e),{},{gradientUnits:Rn(t)}));var s}class Xn{constructor(t){const{type:e="linear",gradientUnits:s="pixels",coords:i={},colorStops:n=[],offsetX:o=0,offsetY:a=0,gradientTransform:h,id:c}=t||{};Object.assign(this,{type:e,gradientUnits:s,coords:r(r({},"radial"===e?On:Tn),i),colorStops:n,offsetX:o,offsetY:a,gradientTransform:h,id:c?"".concat(c,"_").concat(pt()):pt()})}addColorStop(t){for(const e in t){const s=new Ut(t[e]);this.colorStops.push({offset:parseFloat(e),color:s.toRgb(),opacity:s.getAlpha()})}return this}toObject(t){return r(r({},Xt(this,t)),{},{type:this.type,coords:r({},this.coords),colorStops:this.colorStops.map((t=>r({},t))),offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?[...this.gradientTransform]:void 0})}toSVG(t){let{additionalTransform:e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=[],i=this.gradientTransform?this.gradientTransform.concat():O.concat(),n="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox",o=this.colorStops.map((t=>r({},t))).sort(((t,e)=>t.offset-e.offset));let a=-this.offsetX,h=-this.offsetY;var c;"objectBoundingBox"===n?(a/=t.width,h/=t.height):(a+=t.width/2,h+=t.height/2),(c=t)&&"function"==typeof c._renderPathCommands&&"percentage"!==this.gradientUnits&&(a-=t.pathOffset.x,h-=t.pathOffset.y),i[4]-=a,i[5]-=h;const l=['id="SVGID_'.concat(this.id,'"'),'gradientUnits="'.concat(n,'"'),'gradientTransform="'.concat(e?e+" ":"").concat(Qt(i),'"'),""].join(" ");if("linear"===this.type){const{x1:t,y1:e,x2:i,y2:r}=this.coords;s.push("\n')}else if("radial"===this.type){const{x1:t,y1:e,x2:i,y2:r,r1:n,r2:a}=this.coords,h=n>a;s.push("\n'),h&&(o.reverse(),o.forEach((t=>{t.offset=1-t.offset})));const c=Math.min(n,a);if(c>0){const t=c/Math.max(n,a);o.forEach((e=>{e.offset+=t*(1-e.offset)}))}}return o.forEach((t=>{let{color:e,offset:i,opacity:r}=t;s.push("\n')})),s.push("linear"===this.type?"":"","\n"),s.join("")}toLive(t){const{x1:e,y1:s,x2:i,y2:r,r1:n,r2:o}=this.coords,a="linear"===this.type?t.createLinearGradient(e,s,i,r):t.createRadialGradient(e,s,n,i,r,o);return this.colorStops.forEach((t=>{let{color:e,opacity:s,offset:i}=t;a.addColorStop(i,void 0!==s?new Ut(e).setAlpha(s).toRgba():e)})),a}static fromObject(t){return e(this,null,(function*(){const{colorStops:e,gradientTransform:s}=t;return new this(r(r({},t),{},{colorStops:e?e.map((t=>r({},t))):void 0,gradientTransform:s?[...s]:void 0}))}))}static fromElement(t,e,s){const i=Rn(t),n=e._findCenterFromElement();return new this(r({id:t.getAttribute("id")||void 0,type:Ln(t),coords:Bn(t,{width:s.viewBoxWidth||s.width,height:s.viewBoxHeight||s.height}),colorStops:Fn(t,s.opacity),gradientUnits:i,gradientTransform:ar(t.getAttribute("gradientTransform")||"")},"pixels"===i?{offsetX:e.width/2-n.x,offsetY:e.height/2-n.y}:{offsetX:0,offsetY:0}))}}s(Xn,"type","Gradient"),et.setClass(Xn,"gradient"),et.setClass(Xn,"linear"),et.setClass(Xn,"radial");const Yn=["type","source","patternTransform"];class Wn{get type(){return"pattern"}set type(t){c("warn","Setting type has no effect",t)}constructor(t){s(this,"repeat","repeat"),s(this,"offsetX",0),s(this,"offsetY",0),s(this,"crossOrigin",""),this.id=pt(),Object.assign(this,t)}isImageSource(){return!!this.source&&"string"==typeof this.source.src}isCanvasSource(){return!!this.source&&!!this.source.toDataURL}sourceToString(){return this.isImageSource()?this.source.src:this.isCanvasSource()?this.source.toDataURL():""}toLive(t){return this.source&&(!this.isImageSource()||this.source.complete&&0!==this.source.naturalWidth&&0!==this.source.naturalHeight)?t.createPattern(this.source,this.repeat):null}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const{repeat:e,crossOrigin:s}=this;return r(r({},Xt(this,t)),{},{type:"pattern",source:this.sourceToString(),repeat:e,crossOrigin:s,offsetX:qt(this.offsetX,h.NUM_FRACTION_DIGITS),offsetY:qt(this.offsetY,h.NUM_FRACTION_DIGITS),patternTransform:this.patternTransform?[...this.patternTransform]:null})}toSVG(t){let{width:e,height:s}=t;const{source:i,repeat:r,id:n}=this,o=Dn(this.offsetX/e,0),a=Dn(this.offsetY/s,0),h="repeat-y"===r||"no-repeat"===r?1+Math.abs(o||0):Dn(i.width/e,0),c="repeat-x"===r||"no-repeat"===r?1+Math.abs(a||0):Dn(i.height/s,0);return[''),''),"",""].join("\n")}static fromObject(t,s){return e(this,null,(function*(){let{type:e,source:i,patternTransform:o}=t,a=n(t,Yn);const h=yield Rt(i,r(r({},s),{},{crossOrigin:a.crossOrigin}));return new this(r(r({},a),{},{patternTransform:o&&o.slice(0),source:h}))}))}}s(Wn,"type","Pattern"),et.setClass(Wn),et.setClass(Wn,"pattern");const Vn=["path","left","top"],Hn=["d"];class Gn extends xi{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{path:s,left:i,top:r}=e,o=n(e,Vn);super(),Object.assign(this,Gn.ownDefaults),this.setOptions(o),this._setPath(t||[],!0),"number"==typeof i&&this.set(E,i),"number"==typeof r&&this.set(P,r)}_setPath(t,e){this.path=Kr(Array.isArray(t)?t:ln(t)),this.setBoundingBox(e)}_findCenterFromElement(){const t=this._calcBoundsFromPath();return new at(t.left+t.width/2,t.top+t.height/2)}_renderPathCommands(t){const e=-this.pathOffset.x,s=-this.pathOffset.y;t.beginPath();for(const i of this.path)switch(i[0]){case"L":t.lineTo(i[1]+e,i[2]+s);break;case"M":t.moveTo(i[1]+e,i[2]+s);break;case"C":t.bezierCurveTo(i[1]+e,i[2]+s,i[3]+e,i[4]+s,i[5]+e,i[6]+s);break;case"Q":t.quadraticCurveTo(i[1]+e,i[2]+s,i[3]+e,i[4]+s);break;case"Z":t.closePath()}}_render(t){this._renderPathCommands(t),this._renderPaintInOrder(t)}toString(){return"#")}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r(r({},super.toObject(t)),{},{path:this.path.map((t=>t.slice()))})}toDatalessObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=this.toObject(t);return this.sourcePath&&(delete e.path,e.sourcePath=this.sourcePath),e}_toSVG(){const t=un(this.path,h.NUM_FRACTION_DIGITS);return["\n')]}_getOffsetTransform(){const t=h.NUM_FRACTION_DIGITS;return" translate(".concat(qt(-this.pathOffset.x,t),", ").concat(qt(-this.pathOffset.y,t),")")}toClipPathSVG(t){const e=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})}toSVG(t){const e=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,additionalTransform:e})}complexity(){return this.path.length}setDimensions(){this.setBoundingBox()}setBoundingBox(t){const{width:e,height:s,pathOffset:i}=this._calcDimensions();this.set({width:e,height:s,pathOffset:i}),t&&this.setPositionByOrigin(i,M,M)}_calcBoundsFromPath(){const t=[];let e=0,s=0,i=0,r=0;for(const n of this.path)switch(n[0]){case"L":i=n[1],r=n[2],t.push(new at(e,s),new at(i,r));break;case"M":i=n[1],r=n[2],e=i,s=r;break;case"C":t.push(...Ur(i,r,n[1],n[2],n[3],n[4],n[5],n[6])),i=n[5],r=n[6];break;case"Q":t.push(...Ur(i,r,n[1],n[2],n[1],n[2],n[3],n[4])),i=n[3],r=n[4];break;case"Z":i=e,r=s}return ve(t)}_calcDimensions(){const t=this._calcBoundsFromPath();return r(r({},t),{},{pathOffset:new at(t.left+t.width/2,t.top+t.height/2)})}static fromObject(t){return this._fromObject(t,{extraParam:"path"})}static fromElement(t,s,i){return e(this,null,(function*(){const e=ur(t,this.ATTRIBUTE_NAMES,i),{d:o}=e;return new this(o,r(r(r({},n(e,Hn)),s),{},{left:void 0,top:void 0}))}))}}s(Gn,"type","Path"),s(Gn,"cacheProperties",[...ms,"path","fillRule"]),s(Gn,"ATTRIBUTE_NAMES",[...Li,"d"]),et.setClass(Gn),et.setSVGClass(Gn);const zn=["left","top","radius"],Nn=["radius","startAngle","endAngle","counterClockwise"];class Un extends xi{static getDefaults(){return r(r({},super.getDefaults()),Un.ownDefaults)}constructor(t){super(),Object.assign(this,Un.ownDefaults),this.setOptions(t)}_set(t,e){return super._set(t,e),"radius"===t&&this.setRadius(e),this}_render(t){t.beginPath(),t.arc(0,0,this.radius,_t(this.startAngle),_t(this.endAngle),this.counterClockwise),this._renderPaintInOrder(t)}getRadiusX(){return this.get("radius")*this.get(N)}getRadiusY(){return this.get("radius")*this.get(U)}setRadius(t){this.radius=t,this.set({width:2*t,height:2*t})}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...Nn,...t])}_toSVG(){const t=(this.endAngle-this.startAngle)%360;if(0===t)return["\n'];{const{radius:e}=this,s=_t(this.startAngle),i=_t(this.endAngle),r=nt(s)*e,n=ot(s)*e,o=nt(i)*e,a=ot(i)*e,h=t>180?1:0,c=this.counterClockwise?0:1;return['\n"]}}static fromElement(t,s,i){return e(this,null,(function*(){const e=ur(t,this.ATTRIBUTE_NAMES,i),{left:s=0,top:o=0,radius:a=0}=e;return new this(r(r({},n(e,zn)),{},{radius:a,left:s-a,top:o-a}))}))}static fromObject(t){return super._fromObject(t)}}s(Un,"type","Circle"),s(Un,"cacheProperties",[...ms,...Nn]),s(Un,"ownDefaults",{radius:0,startAngle:0,endAngle:360,counterClockwise:!1}),s(Un,"ATTRIBUTE_NAMES",["cx","cy","r",...Li]),et.setClass(Un),et.setSVGClass(Un);const qn=["x1","y1","x2","y2"],Kn=["x1","y1","x2","y2"],Jn=["x1","x2","y1","y2"];class Qn extends xi{constructor(){let[t,e,s,i]=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0,0,0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.assign(this,Qn.ownDefaults),this.setOptions(r),this.x1=t,this.x2=s,this.y1=e,this.y2=i,this._setWidthHeight();const{left:n,top:o}=r;"number"==typeof n&&this.set(E,n),"number"==typeof o&&this.set(P,o)}_setWidthHeight(){const{x1:t,y1:e,x2:s,y2:i}=this;this.width=Math.abs(s-t),this.height=Math.abs(i-e);const{left:r,top:n,width:o,height:a}=ve([{x:t,y:e},{x:s,y:i}]),h=new at(r+o/2,n+a/2);this.setPositionByOrigin(h,M,M)}_set(t,e){return super._set(t,e),Jn.includes(t)&&this._setWidthHeight(),this}_render(t){t.beginPath();const e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=this.strokeWidth;const s=t.strokeStyle;var i;$t(this.stroke)?t.strokeStyle=this.stroke.toLive(t):t.strokeStyle=null!==(i=this.stroke)&&void 0!==i?i:t.fillStyle,this.stroke&&this._renderStroke(t),t.strokeStyle=s}_findCenterFromElement(){return new at((this.x1+this.x2)/2,(this.y1+this.y2)/2)}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r(r({},super.toObject(t)),this.calcLinePoints())}_getNonTransformedDimensions(){const t=super._getNonTransformedDimensions();return"butt"===this.strokeLineCap&&(0===this.width&&(t.y-=this.strokeWidth),0===this.height&&(t.x-=this.strokeWidth)),t}calcLinePoints(){const{x1:t,x2:e,y1:s,y2:i,width:r,height:n}=this,o=t<=e?-1:1,a=s<=i?-1:1;return{x1:o*r/2,x2:o*-r/2,y1:a*n/2,y2:a*-n/2}}_toSVG(){const{x1:t,x2:e,y1:s,y2:i}=this.calcLinePoints();return["\n')]}static fromElement(t,s,i){return e(this,null,(function*(){const e=ur(t,this.ATTRIBUTE_NAMES,i),{x1:s=0,y1:r=0,x2:o=0,y2:a=0}=e;return new this([s,r,o,a],n(e,qn))}))}static fromObject(t){let{x1:e,y1:s,x2:i,y2:o}=t,a=n(t,Kn);return this._fromObject(r(r({},a),{},{points:[e,s,i,o]}),{extraParam:"points"})}}s(Qn,"type","Line"),s(Qn,"cacheProperties",[...ms,...Jn]),s(Qn,"ATTRIBUTE_NAMES",Li.concat(Jn)),et.setClass(Qn),et.setSVGClass(Qn);class Zn extends xi{static getDefaults(){return r(r({},super.getDefaults()),Zn.ownDefaults)}constructor(t){super(),Object.assign(this,Zn.ownDefaults),this.setOptions(t)}_render(t){const e=this.width/2,s=this.height/2;t.beginPath(),t.moveTo(-e,s),t.lineTo(0,-s),t.lineTo(e,s),t.closePath(),this._renderPaintInOrder(t)}_toSVG(){const t=this.width/2,e=this.height/2;return["']}}s(Zn,"type","Triangle"),s(Zn,"ownDefaults",{width:100,height:100}),et.setClass(Zn),et.setSVGClass(Zn);const $n=["rx","ry"];class to extends xi{static getDefaults(){return r(r({},super.getDefaults()),to.ownDefaults)}constructor(t){super(),Object.assign(this,to.ownDefaults),this.setOptions(t)}_set(t,e){switch(super._set(t,e),t){case"rx":this.rx=e,this.set("width",2*e);break;case"ry":this.ry=e,this.set("height",2*e)}return this}getRx(){return this.get("rx")*this.get(N)}getRy(){return this.get("ry")*this.get(U)}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject([...$n,...t])}_toSVG(){return["\n')]}_render(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,w,!1),t.restore(),this._renderPaintInOrder(t)}static fromElement(t,s,i){return e(this,null,(function*(){const e=ur(t,this.ATTRIBUTE_NAMES,i);return e.left=(e.left||0)-e.rx,e.top=(e.top||0)-e.ry,new this(e)}))}}s(to,"type","Ellipse"),s(to,"cacheProperties",[...ms,...$n]),s(to,"ownDefaults",{rx:0,ry:0}),s(to,"ATTRIBUTE_NAMES",[...Li,"cx","cy","rx","ry"]),et.setClass(to),et.setSVGClass(to);const eo=["left","top"],so={exactBoundingBox:!1};class io extends xi{static getDefaults(){return r(r({},super.getDefaults()),io.ownDefaults)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),s(this,"strokeDiff",void 0),Object.assign(this,io.ownDefaults),this.setOptions(e),this.points=t;const{left:i,top:r}=e;this.initialized=!0,this.setBoundingBox(!0),"number"==typeof i&&this.set(E,i),"number"==typeof r&&this.set(P,r)}isOpen(){return!0}_projectStrokeOnPoints(t){return Oi(this.points,t,this.isOpen())}_calcDimensions(t){t=r({scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,strokeLineCap:this.strokeLineCap,strokeLineJoin:this.strokeLineJoin,strokeMiterLimit:this.strokeMiterLimit,strokeUniform:this.strokeUniform,strokeWidth:this.strokeWidth},t||{});const e=this.exactBoundingBox?this._projectStrokeOnPoints(t).map((t=>t.projectedPoint)):this.points;if(0===e.length)return{left:0,top:0,width:0,height:0,pathOffset:new at,strokeOffset:new at,strokeDiff:new at};const s=ve(e),i=Ft(r(r({},t),{},{scaleX:1,scaleY:1})),n=ve(this.points.map((t=>bt(t,i,!0)))),o=new at(this.scaleX,this.scaleY);let a=s.left+s.width/2,h=s.top+s.height/2;return this.exactBoundingBox&&(a-=h*Math.tan(_t(this.skewX)),h-=a*Math.tan(_t(this.skewY))),r(r({},s),{},{pathOffset:new at(a,h),strokeOffset:new at(n.left,n.top).subtract(new at(s.left,s.top)).multiply(o),strokeDiff:new at(s.width,s.height).subtract(new at(n.width,n.height)).multiply(o)})}_findCenterFromElement(){const t=ve(this.points);return new at(t.left+t.width/2,t.top+t.height/2)}setDimensions(){this.setBoundingBox()}setBoundingBox(t){const{left:e,top:s,width:i,height:r,pathOffset:n,strokeOffset:o,strokeDiff:a}=this._calcDimensions();this.set({width:i,height:r,pathOffset:n,strokeOffset:o,strokeDiff:a}),t&&this.setPositionByOrigin(new at(e+i/2,s+r/2),M,M)}isStrokeAccountedForInDimensions(){return this.exactBoundingBox}_getNonTransformedDimensions(){return this.exactBoundingBox?new at(this.width,this.height):super._getNonTransformedDimensions()}_getTransformedDimensions(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.exactBoundingBox){let n;if(Object.keys(t).some((t=>this.strokeUniform||this.constructor.layoutProperties.includes(t)))){var e,s;const{width:i,height:r}=this._calcDimensions(t);n=new at(null!==(e=t.width)&&void 0!==e?e:i,null!==(s=t.height)&&void 0!==s?s:r)}else{var i,r;n=new at(null!==(i=t.width)&&void 0!==i?i:this.width,null!==(r=t.height)&&void 0!==r?r:this.height)}return n.multiply(new at(t.scaleX||this.scaleX,t.scaleY||this.scaleY))}return super._getTransformedDimensions(t)}_set(t,e){const s=this.initialized&&this[t]!==e,i=super._set(t,e);return this.exactBoundingBox&&s&&((t===N||t===U)&&this.strokeUniform&&this.constructor.layoutProperties.includes("strokeUniform")||this.constructor.layoutProperties.includes(t))&&this.setDimensions(),i}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r(r({},super.toObject(t)),{},{points:this.points.map((t=>{let{x:e,y:s}=t;return{x:e,y:s}}))})}_toSVG(){const t=[],e=this.pathOffset.x,s=this.pathOffset.y,i=h.NUM_FRACTION_DIGITS;for(let r=0,n=this.points.length;r\n')]}_render(t){const e=this.points.length,s=this.pathOffset.x,i=this.pathOffset.y;if(e&&!isNaN(this.points[e-1].y)){t.beginPath(),t.moveTo(this.points[0].x-s,this.points[0].y-i);for(let r=0;rvoid 0!==t));this._setStyleDeclaration(s,i,n)}getSelectionStyles(t,e,s){const i=[];for(let r=t;r<(e||t);r++)i.push(this.getStyleAtPosition(r,s));return i}getStyleAtPosition(t,e){const{lineIndex:s,charIndex:i}=this.get2DCursorLocation(t);return e?this.getCompleteStyleDeclaration(s,i):this._getStyleDeclaration(s,i)}setSelectionStyles(t,e,s){for(let i=e;i<(s||e);i++)this._extendStyles(i,t);this._forceClearCache=!0}_getStyleDeclaration(t,e){var s;const i=this.styles&&this.styles[t];return i&&null!==(s=i[e])&&void 0!==s?s:{}}getCompleteStyleDeclaration(t,e){return r(r({},Xt(this,this.constructor._styleProperties)),this._getStyleDeclaration(t,e))}_setStyleDeclaration(t,e,s){this.styles[t][e]=s}_deleteStyleDeclaration(t,e){delete this.styles[t][e]}_getLineStyle(t){return!!this.styles[t]}_setLineStyle(t){this.styles[t]={}}_deleteLineStyle(t){delete this.styles[t]}}s(mo,"_styleProperties",co);const vo=/ +/g,yo=/"/g;function _o(t,e,s,i,r){return"\t\t".concat(function(t,e){let{left:s,top:i,width:r,height:n}=e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.NUM_FRACTION_DIGITS;const a=Zt(J,t,!1),[c,l,u,d]=[s,i,r,n].map((t=>qt(t,o)));return"')}(t,{left:e,top:s,width:i,height:r}),"\n")}const xo=["textAnchor","textDecoration","dx","dy","top","left","fontSize","strokeWidth"];let Co;class bo extends mo{static getDefaults(){return r(r({},super.getDefaults()),bo.ownDefaults)}constructor(t,e){super(),s(this,"__charBounds",[]),Object.assign(this,bo.ownDefaults),this.setOptions(e),this.styles||(this.styles={}),this.text=t,this.initialized=!0,this.path&&this.setPathInfo(),this.initDimensions(),this.setCoords()}setPathInfo(){const t=this.path;t&&(t.segmentsInfo=on(t.path))}_splitText(){const t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t}initDimensions(){this._splitText(),this._clearCache(),this.dirty=!0,this.path?(this.width=this.path.width,this.height=this.path.height):(this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight()),this.textAlign.includes(uo)&&this.enlargeSpaces()}enlargeSpaces(){let t,e,s,i,r,n,o;for(let a=0,h=this._textLines.length;a')}_getCacheCanvasDimensions(){const t=super._getCacheCanvasDimensions(),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t}_render(t){const e=this.path;e&&!e.isNotVisible()&&e._render(t),this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,"underline"),this._renderText(t),this._renderTextDecoration(t,"overline"),this._renderTextDecoration(t,"linethrough")}_renderText(t){this.paintFirst===Q?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))}_setTextStyles(t,e,s){if(t.textBaseline="alphabetic",this.path)switch(this.pathAlign){case M:t.textBaseline="middle";break;case"ascender":t.textBaseline=P;break;case"descender":t.textBaseline=A}t.font=this._getFontDeclaration(e,s)}calcTextWidth(){let t=this.getLineWidth(0);for(let e=1,s=this._textLines.length;et&&(t=s)}return t}_renderTextLine(t,e,s,i,r,n){this._renderChars(t,e,s,i,r,n)}_renderTextLinesBackground(t){if(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))return;const e=t.fillStyle,s=this._getLeftOffset();let i=this._getTopOffset();for(let r=0,n=this._textLines.length;r=0:ie?t%=e:t<0&&(t+=e),this._setGraphemeOnPath(t,s),t+=s.kernedWidth}return{width:i,numOfSpaces:0}}_setGraphemeOnPath(t,e){const s=t+e.kernedWidth/2,i=this.path,r=an(i.path,s,i.segmentsInfo);e.renderLeft=r.x-i.pathOffset.x,e.renderTop=r.y-i.pathOffset.y,e.angle=r.angle+(this.pathSide===j?Math.PI:0)}_getGraphemeBox(t,e,s,i,r){const n=this.getCompleteStyleDeclaration(e,s),o=i?this.getCompleteStyleDeclaration(e,s-1):{},a=this._measureChar(t,n,i,o);let h,c=a.kernedWidth,l=a.width;0!==this.charSpacing&&(h=this._getWidthOfCharSpacing(),l+=h,c+=h);const u={width:l,left:0,height:n.fontSize,kernedWidth:c,deltaY:n.deltaY};if(s>0&&!r){const t=this.__charBounds[e][s-1];u.left=t.left+t.width+a.kernedWidth-a.width}return u}getHeightOfLine(t){if(this.__lineHeights[t])return this.__lineHeights[t];let e=this.getHeightOfChar(t,0);for(let s=1,i=this._textLines[t].length;s0){let e=i+u+f;"rtl"===this.direction&&(e=this.width-e-p),m&&v&&(t.fillStyle=v,t.fillRect(e,y+o*_+x,p,this.fontSize/15)),f=n.left,p=n.width,m=d,v=g,_=h,x=c}else p+=n.kernedWidth}let C=i+u+f;"rtl"===this.direction&&(C=this.width-C-p),t.fillStyle=g,d&&g&&t.fillRect(C,y+o*_+x,p-n,this.fontSize/15),s+=h}this._removeShadow(t)}_getFontDeclaration(){let{fontFamily:t=this.fontFamily,fontStyle:e=this.fontStyle,fontWeight:s=this.fontWeight,fontSize:i=this.fontSize}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const n=t.includes("'")||t.includes('"')||t.includes(",")||bo.genericFonts.includes(t.toLowerCase())?t:'"'.concat(t,'"');return[e,s,"".concat(r?this.CACHE_FONT_SIZE:i,"px"),n].join(" ")}render(t){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._forceClearCache&&this.initDimensions(),super.render(t)))}graphemeSplit(t){return Mi(t)}_splitTextIntoLines(t){const e=t.split(this._reNewline),s=new Array(e.length),i=["\n"];let r=[];for(let n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return r(r({},super.toObject([...ho,...t])),{},{styles:ji(this.styles,this.text)},this.path?{path:this.path.toObject()}:{})}set(t,e){const{textLayoutProperties:s}=this.constructor;super.set(t,e);let i=!1,r=!1;if("object"==typeof t)for(const n in t)"path"===n&&this.setPathInfo(),i=i||s.includes(n),r=r||"path"===n;else i=s.includes(t),r="path"===t;return r&&this.setPathInfo(),i&&this.initialized&&(this.initDimensions(),this.setCoords()),this}complexity(){return 1}static fromElement(t,s,i){return e(this,null,(function*(){const e=ur(t,bo.ATTRIBUTE_NAMES,i),o=r(r({},s),e),{textAnchor:a=E,textDecoration:h="",dx:c=0,dy:l=0,top:u=0,left:d=0,fontSize:g=D,strokeWidth:f=1}=o,p=n(o,xo),m=new this((t.textContent||"").replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," "),r({left:d+c,top:u+l,underline:h.includes("underline"),overline:h.includes("overline"),linethrough:h.includes("line-through"),strokeWidth:0,fontSize:g},p)),v=m.getScaledHeight()/m.height,y=((m.height+m.strokeWidth)*m.lineHeight-m.height)*v,_=m.getScaledHeight()+y;let x=0;return a===M&&(x=m.getScaledWidth()/2),a===j&&(x=m.getScaledWidth()),m.set({left:m.left-x,top:m.top-(_-m.fontSize*(.07+m._fontSizeFraction))/m.lineHeight,strokeWidth:f}),m}))}static fromObject(t){return this._fromObject(r(r({},t),{},{styles:Fi(t.styles||{},t.text)}),{extraParam:"text"})}}s(bo,"textLayoutProperties",ao),s(bo,"cacheProperties",[...ms,...ho]),s(bo,"ownDefaults",lo),s(bo,"type","Text"),s(bo,"genericFonts",["sans-serif","serif","cursive","fantasy","monospace"]),s(bo,"ATTRIBUTE_NAMES",Li.concat("x","y","dx","dy","font-family","font-style","font-weight","font-size","letter-spacing","text-decoration","text-anchor")),_i(bo,[class extends Xe{_toSVG(){const t=this._getSVGLeftTopOffsets(),e=this._getSVGTextAndBg(t.textTop,t.textLeft);return this._wrapSVGTextAndBg(e)}toSVG(t){return this._createBaseSVGMarkup(this._toSVG(),{reviver:t,noStyle:!0,withShadow:!0})}_getSVGLeftTopOffsets(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}}_wrapSVGTextAndBg(t){let{textBgRects:e,textSpans:s}=t;const i=this.getSvgTextDecoration(this);return[e.join(""),'\t\t",s.join(""),"\n"]}_getSVGTextAndBg(t,e){const s=[],i=[];let r,n=t;this.backgroundColor&&i.push(..._o(this.backgroundColor,-this.width/2,-this.height/2,this.width,this.height));for(let o=0,a=this._textLines.length;o").concat(ki(t),"")}_setSVGTextLineText(t,e,s,i){const r=this.getHeightOfLine(e),n=this.textAlign.includes(uo),o=this._textLines[e];let a,h,c,l,u,d="",g=0;i+=r*(1-this._fontSizeFraction)/this.lineHeight;for(let f=0,p=o.length-1;f<=p;f++)u=f===p||this.charSpacing,d+=o[f],c=this.__charBounds[e][f],0===g?(s+=c.kernedWidth-c.width,g+=c.width):g+=c.kernedWidth,n&&!u&&this._reSpaceAndTab.test(o[f])&&(u=!0),u||(a=a||this.getCompleteStyleDeclaration(e,f),h=this.getCompleteStyleDeclaration(e,f+1),u=Ai(a,h,!0)),u&&(l=this._getStyleDeclaration(e,f),t.push(this._createTextCharSpan(d,l,s,i)),d="",a=h,"rtl"===this.direction?s-=g:s+=g,g=0)}_setSVGTextLineBg(t,e,s,i){const r=this._textLines[e],n=this.getHeightOfLine(e)/this.lineHeight;let o,a=0,h=0,c=this.getValueOfPropertyAt(e,0,"textBackgroundColor");for(let l=0;lt[e.replace("-","")])).join(" ")}}]),et.setClass(bo),et.setSVGClass(bo);class So{constructor(t){s(this,"target",void 0),s(this,"__mouseDownInPlace",!1),s(this,"__dragStartFired",!1),s(this,"__isDraggingOver",!1),s(this,"__dragStartSelection",void 0),s(this,"__dragImageDisposer",void 0),s(this,"_dispose",void 0),this.target=t;const e=[this.target.on("dragenter",this.dragEnterHandler.bind(this)),this.target.on("dragover",this.dragOverHandler.bind(this)),this.target.on("dragleave",this.dragLeaveHandler.bind(this)),this.target.on("dragend",this.dragEndHandler.bind(this)),this.target.on("drop",this.dropHandler.bind(this))];this._dispose=()=>{e.forEach((t=>t())),this._dispose=void 0}}isPointerOverSelection(t){const e=this.target,s=e.getSelectionStartFromPointer(t);return e.isEditing&&s>=e.selectionStart&&s<=e.selectionEnd&&e.selectionStart{_.remove()},ne(t.target||this.target.hiddenTextarea).body.appendChild(_),null===(s=t.dataTransfer)||void 0===s||s.setDragImage(_,p.x,p.y)}onDragStart(t){this.__dragStartFired=!0;const e=this.target,s=this.isActive();if(s&&t.dataTransfer){const s=this.__dragStartSelection={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd},i=e._text.slice(s.selectionStart,s.selectionEnd).join(""),n=r({text:e.text,value:i},s);t.dataTransfer.setData("text/plain",i),t.dataTransfer.setData("application/fabric",JSON.stringify({value:i,styles:e.getSelectionStyles(s.selectionStart,s.selectionEnd,!0)})),t.dataTransfer.effectAllowed="copyMove",this.setDragImage(t,n)}return e.abortCursorAnimation(),s}canDrop(t){if(this.target.editable&&!this.target.getActiveControl()&&!t.defaultPrevented){if(this.isActive()&&this.__dragStartSelection){const e=this.target.getSelectionStartFromPointer(t),s=this.__dragStartSelection;return es.selectionEnd}return!0}return!1}targetCanDrop(t){return this.target.canDrop(t)}dragEnterHandler(t){let{e:e}=t;const s=this.targetCanDrop(e);!this.__isDraggingOver&&s&&(this.__isDraggingOver=!0)}dragOverHandler(t){const{e:e}=t,s=this.targetCanDrop(e);!this.__isDraggingOver&&s?this.__isDraggingOver=!0:this.__isDraggingOver&&!s&&(this.__isDraggingOver=!1),this.__isDraggingOver&&(e.preventDefault(),t.canDrop=!0,t.dropTarget=this.target)}dragLeaveHandler(){(this.__isDraggingOver||this.isActive())&&(this.__isDraggingOver=!1)}dropHandler(t){var e;const{e:s}=t,i=s.defaultPrevented;this.__isDraggingOver=!1,s.preventDefault();let r=null===(e=s.dataTransfer)||void 0===e?void 0:e.getData("text/plain");if(r&&!i){const e=this.target,i=e.canvas;let n=e.getSelectionStartFromPointer(s);const{styles:o}=s.dataTransfer.types.includes("application/fabric")?JSON.parse(s.dataTransfer.getData("application/fabric")):{},a=r[Math.max(0,r.length-1)],h=0;if(this.__dragStartSelection){const t=this.__dragStartSelection.selectionStart,s=this.__dragStartSelection.selectionEnd;n>t&&n<=s?n=t:n>s&&(n-=s-t),e.removeChars(t,s),delete this.__dragStartSelection}e._reNewline.test(a)&&(e._reNewline.test(e._text[n])||n===e._text.length)&&(r=r.trimEnd()),t.didDrop=!0,t.dropTarget=e,e.insertChars(r,o,n),i.setActiveObject(e),e.enterEditing(s),e.selectionStart=Math.min(n+h,e._text.length),e.selectionEnd=Math.min(e.selectionStart+r.length,e._text.length),e.hiddenTextarea.value=e.text,e._updateTextarea(),e.hiddenTextarea.focus(),e.fire(G,{index:n+h,action:"drop"}),i.fire("text:changed",{target:e}),i.contextTopDirty=!0,i.requestRenderAll()}}dragEndHandler(t){let{e:e}=t;if(this.isActive()&&this.__dragStartFired&&this.__dragStartSelection){var s;const t=this.target,i=this.target.canvas,{selectionStart:r,selectionEnd:n}=this.__dragStartSelection,o=(null===(s=e.dataTransfer)||void 0===s?void 0:s.dropEffect)||F;o===F?(t.selectionStart=r,t.selectionEnd=n,t._updateTextarea(),t.hiddenTextarea.focus()):(t.clearContextTop(),"move"===o&&(t.removeChars(r,n),t.selectionStart=t.selectionEnd=r,t.hiddenTextarea&&(t.hiddenTextarea.value=t.text),t._updateTextarea(),t.fire(G,{index:r,action:"dragend"}),i.fire("text:changed",{target:t}),i.requestRenderAll()),t.exitEditing())}this.__dragImageDisposer&&this.__dragImageDisposer(),delete this.__dragImageDisposer,delete this.__dragStartSelection,this.__isDraggingOver=!1}dispose(){this._dispose&&this._dispose()}}const wo=/[ \n\.,;!\?\-]/;class To extends bo{constructor(){super(...arguments),s(this,"_currentCursorOpacity",1)}initBehavior(){this._tick=this._tick.bind(this),this._onTickComplete=this._onTickComplete.bind(this),this.updateSelectionOnMouseMove=this.updateSelectionOnMouseMove.bind(this)}onDeselect(t){return this.isEditing&&this.exitEditing(),this.selected=!1,super.onDeselect(t)}_animateCursor(t){let{toValue:e,duration:s,delay:i,onComplete:r}=t;return Fs({startValue:this._currentCursorOpacity,endValue:e,duration:s,delay:i,onComplete:r,abort:()=>!this.canvas||this.selectionStart!==this.selectionEnd,onChange:t=>{this._currentCursorOpacity=t,this.renderCursorOrSelection()}})}_tick(t){this._currentTickState=this._animateCursor({toValue:0,duration:this.cursorDuration/2,delay:Math.max(t||0,100),onComplete:this._onTickComplete})}_onTickComplete(){var t;null===(t=this._currentTickCompleteState)||void 0===t||t.abort(),this._currentTickCompleteState=this._animateCursor({toValue:1,duration:this.cursorDuration,onComplete:this._tick})}initDelayedCursor(t){this.abortCursorAnimation(),this._tick(t?0:this.cursorDelay)}abortCursorAnimation(){let t=!1;[this._currentTickState,this._currentTickCompleteState].forEach((e=>{e&&!e.isDone()&&(t=!0,e.abort())})),this._currentCursorOpacity=1,t&&this.clearContextTop()}restartCursorIfNeeded(){[this._currentTickState,this._currentTickCompleteState].some((t=>!t||t.isDone()))&&this.initDelayedCursor()}selectAll(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this}getSelectedText(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")}findWordBoundaryLeft(t){let e=0,s=t-1;if(this._reSpace.test(this._text[s]))for(;this._reSpace.test(this._text[s]);)e++,s--;for(;/\S/.test(this._text[s])&&s>-1;)e++,s--;return t-e}findWordBoundaryRight(t){let e=0,s=t;if(this._reSpace.test(this._text[s]))for(;this._reSpace.test(this._text[s]);)e++,s++;for(;/\S/.test(this._text[s])&&s-1;)e++,s--;return t-e}findLineBoundaryRight(t){let e=0,s=t;for(;!/\n/.test(this._text[s])&&s0&&this._reSpace.test(s[t])&&(-1===e||!L.test(s[t-1]))?t-1:t,r=s[i];for(;i>0&&ithis.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=s):(this.selectionStart=s,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===i&&this.selectionEnd===r||(this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}_setEditingProps(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0}fromStringToGraphemeSelection(t,e,s){const i=s.slice(0,t),r=this.graphemeSplit(i).length;if(t===e)return{selectionStart:r,selectionEnd:r};const n=s.slice(t,e);return{selectionStart:r,selectionEnd:r+this.graphemeSplit(n).length}}fromGraphemeToStringSelection(t,e,s){const i=s.slice(0,t).join("").length;return t===e?{selectionStart:i,selectionEnd:i}:{selectionStart:i,selectionEnd:i+s.slice(t,e).join("").length}}_updateTextarea(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){const t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}}updateFromTextArea(){if(!this.hiddenTextarea)return;this.cursorOffsetCache={};const t=this.hiddenTextarea;this.text=t.value,this.set("dirty",!0),this.initDimensions(),this.setCoords();const e=this.fromStringToGraphemeSelection(t.selectionStart,t.selectionEnd,t.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}updateTextareaPosition(){if(this.selectionStart===this.selectionEnd){const t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}}_calcTextareaPosition(){if(!this.canvas)return{left:"1px",top:"1px"};const t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),s=this.get2DCursorLocation(t),i=s.lineIndex,r=s.charIndex,n=this.getValueOfPropertyAt(i,r,"fontSize")*this.lineHeight,o=e.leftOffset,a=this.getCanvasRetinaScaling(),h=this.canvas.upperCanvasEl,c=h.width/a,l=h.height/a,u=c-n,d=l-n,g=new at(e.left+o,e.top+e.topOffset+n).transform(this.calcTransformMatrix()).transform(this.canvas.viewportTransform).multiply(new at(h.clientWidth/c,h.clientHeight/l));return g.x<0&&(g.x=0),g.x>u&&(g.x=u),g.y<0&&(g.y=0),g.y>d&&(g.y=d),g.x+=this.canvas._offset.left,g.y+=this.canvas._offset.top,{left:"".concat(g.x,"px"),top:"".concat(g.y,"px"),fontSize:"".concat(n,"px"),charHeight:n}}_saveEditingProps(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}}_restoreEditingProps(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor||this.canvas.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor||this.canvas.moveCursor),delete this._savedProps)}_exitEditing(){const t=this.hiddenTextarea;this.selected=!1,this.isEditing=!1,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this.selectionStart!==this.selectionEnd&&this.clearContextTop()}exitEditing(){const t=this._textBeforeEdit!==this.text;return this._exitEditing(),this.selectionEnd=this.selectionStart,this._restoreEditingProps(),this._forceClearCache&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),t&&this.fire(Z),this.canvas&&(this.canvas.fire("text:editing:exited",{target:this}),t&&this.canvas.fire("object:modified",{target:this})),this}_removeExtraneousStyles(){for(const t in this.styles)this._textLines[t]||delete this.styles[t]}removeStyleFromTo(t,e){const{lineIndex:s,charIndex:i}=this.get2DCursorLocation(t,!0),{lineIndex:r,charIndex:n}=this.get2DCursorLocation(e,!0);if(s!==r){if(this.styles[s])for(let t=i;t=n&&(t[s-e]=t[i],delete t[i])}}}shiftLineStyles(t,e){const s=Object.assign({},this.styles);for(const i in this.styles){const r=parseInt(i,10);r>t&&(this.styles[r+e]=s[r],s[r-e]||delete this.styles[r])}}insertNewlineStyleObject(t,e,s,i){const n={},o=this._unwrappedTextLines[t].length,a=o===e;let h=!1;s||(s=1),this.shiftLineStyles(t,s);const c=this.styles[t]?this.styles[t][0===e?e:e-1]:void 0;for(const r in this.styles[t]){const s=parseInt(r,10);s>=e&&(h=!0,n[s-e]=this.styles[t][r],a&&0===e||delete this.styles[t][r])}let l=!1;for(h&&!a&&(this.styles[t+s]=n,l=!0),(l||o>e)&&s--;s>0;)i&&i[s-1]?this.styles[t+s]={0:r({},i[s-1])}:c?this.styles[t+s]={0:r({},c)}:delete this.styles[t+s],s--;this._forceClearCache=!0}insertCharStyleObject(t,e,s,i){this.styles||(this.styles={});const n=this.styles[t],o=n?r({},n):{};s||(s=1);for(const r in o){const t=parseInt(r,10);t>=e&&(n[t+s]=o[t],o[t-s]||delete n[t])}if(this._forceClearCache=!0,i){for(;s--;)Object.keys(i[s]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][e+s]=r({},i[s]));return}if(!n)return;const a=n[e?e-1:1];for(;a&&s--;)this.styles[t][e+s]=r({},a)}insertNewStyleBlock(t,e,s){const i=this.get2DCursorLocation(e,!0),r=[0];let n,o=0;for(let a=0;a0&&(this.insertCharStyleObject(i.lineIndex,i.charIndex,r[0],s),s=s&&s.slice(r[0]+1)),o&&this.insertNewlineStyleObject(i.lineIndex,i.charIndex+r[0],o),n=1;n0?this.insertCharStyleObject(i.lineIndex+n,0,r[n],s):s&&this.styles[i.lineIndex+n]&&s[0]&&(this.styles[i.lineIndex+n][0]=s[0]),s=s&&s.slice(r[n]+1);r[n]>0&&this.insertCharStyleObject(i.lineIndex+n,0,r[n],s)}removeChars(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t+1;this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}insertChars(t,e,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s;i>s&&this.removeStyleFromTo(s,i);const r=this.graphemeSplit(t);this.insertNewStyleBlock(r,s,e),this._text=[...this._text.slice(0,s),...r,...this._text.slice(i)],this.text=this._text.join(""),this.set("dirty",!0),this.initDimensions(),this.setCoords(),this._removeExtraneousStyles()}setSelectionStartEndWithShift(t,e,s){s<=t?(e===t?this._selectionDirection=E:this._selectionDirection===j&&(this._selectionDirection=E,this.selectionEnd=t),this.selectionStart=s):s>t&&s{let[s,i]=t;return e.setAttribute(s,i)}));const{top:s,left:i,fontSize:r}=this._calcTextareaPosition();e.style.cssText="position: absolute; top: ".concat(s,"; left: ").concat(i,"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: ").concat(r,";"),(this.hiddenTextareaContainer||t.body).appendChild(e),Object.entries({blur:"blur",keydown:"onKeyDown",keyup:"onKeyUp",input:"onInput",copy:"copy",cut:"copy",paste:"paste",compositionstart:"onCompositionStart",compositionupdate:"onCompositionUpdate",compositionend:"onCompositionEnd"}).map((t=>{let[s,i]=t;return e.addEventListener(s,this[i].bind(this))})),this.hiddenTextarea=e}blur(){this.abortCursorAnimation()}onKeyDown(t){if(!this.isEditing)return;const e="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(t.keyCode in e)this[e[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown)||!t.ctrlKey&&!t.metaKey)return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode>=33&&t.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}onKeyUp(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp&&(t.ctrlKey||t.metaKey)&&(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas&&this.canvas.requestRenderAll())}onInput(t){const e=this.fromPaste;if(this.fromPaste=!1,t&&t.stopPropagation(),!this.isEditing)return;const s=()=>{this.updateFromTextArea(),this.fire(G),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())};if(""===this.hiddenTextarea.value)return this.styles={},void s();const i=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,r=this._text.length,n=i.length,o=this.selectionStart,a=this.selectionEnd,c=o!==a;let l,u,d,g,f=n-r;const p=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),v=o>p.selectionStart;c?(u=this._text.slice(o,a),f+=a-o):nl[0]))),c?(d=o,g=a):v?(d=a-u.length,g=a):(d=a,g=a+u.length),this.removeStyleFromTo(d,g)),y.length){const{copyPasteData:t}=m();e&&y.join("")===t.copiedText&&!h.disableStyleCopyPaste&&(l=t.copiedTextStyle),this.insertNewStyleBlock(y,o,l)}s()}onCompositionStart(){this.inCompositionMode=!0}onCompositionEnd(){this.inCompositionMode=!1}onCompositionUpdate(t){let{target:e}=t;const{selectionStart:s,selectionEnd:i}=e;this.compositionStart=s,this.compositionEnd=i,this.updateTextareaPosition()}copy(){if(this.selectionStart===this.selectionEnd)return;const{copyPasteData:t}=m();t.copiedText=this.getSelectedText(),h.disableStyleCopyPaste?t.copiedTextStyle=void 0:t.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0}paste(){this.fromPaste=!0}_getWidthBeforeCursor(t,e){let s,i=this._getLineLeftOffset(t);return e>0&&(s=this.__charBounds[t][e-1],i+=s.left+s.width),i}getDownCursorOffset(t,e){const s=this._getSelectionForOffset(t,e),i=this.get2DCursorLocation(s),r=i.lineIndex;if(r===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-s;const n=i.charIndex,o=this._getWidthBeforeCursor(r,n),a=this._getIndexOnLine(r+1,o);return this._textLines[r].slice(n).length+a+1+this.missingNewlineOffset(r)}_getSelectionForOffset(t,e){return t.shiftKey&&this.selectionStart!==this.selectionEnd&&e?this.selectionEnd:this.selectionStart}getUpCursorOffset(t,e){const s=this._getSelectionForOffset(t,e),i=this.get2DCursorLocation(s),r=i.lineIndex;if(0===r||t.metaKey||33===t.keyCode)return-s;const n=i.charIndex,o=this._getWidthBeforeCursor(r,n),a=this._getIndexOnLine(r-1,o),h=this._textLines[r].slice(0,n),c=this.missingNewlineOffset(r-1);return-this._textLines[r-1].length+a-h.length+(1-c)}_getIndexOnLine(t,e){const s=this._textLines[t];let i,r,n=this._getLineLeftOffset(t),o=0;for(let a=0,h=s.length;ae){r=!0;const t=n-i,s=n,h=Math.abs(t-e);o=Math.abs(s-e)=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",t)}moveCursorUp(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",t)}_moveCursorUpOrDown(t,e){const s=this["get".concat(t,"CursorOffset")](e,this._selectionDirection===j);if(e.shiftKey?this.moveCursorWithShift(s):this.moveCursorWithoutShift(s),0!==s){const t=this.text.length;this.selectionStart=fs(0,this.selectionStart,t),this.selectionEnd=fs(0,this.selectionEnd,t),this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea()}}moveCursorWithShift(t){const e=this._selectionDirection===E?this.selectionStart+t:this.selectionEnd+t;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e),0!==t}moveCursorWithoutShift(t){return t<0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t}moveCursorLeft(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",t)}_move(t,e,s){let i;if(t.altKey)i=this["findWordBoundary".concat(s)](this[e]);else{if(!t.metaKey&&35!==t.keyCode&&36!==t.keyCode)return this[e]+="Left"===s?-1:1,!0;i=this["findLineBoundary".concat(s)](this[e])}return void 0!==i&&this[e]!==i&&(this[e]=i,!0)}_moveLeft(t,e){return this._move(t,e,"Left")}_moveRight(t,e){return this._move(t,e,"Right")}moveCursorLeftWithoutShift(t){let e=!0;return this._selectionDirection=E,this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(e=this._moveLeft(t,"selectionStart")),this.selectionEnd=this.selectionStart,e}moveCursorLeftWithShift(t){return this._selectionDirection===j&&this.selectionStart!==this.selectionEnd?this._moveLeft(t,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection=E,this._moveLeft(t,"selectionStart")):void 0}moveCursorRight(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",t)}_moveCursorLeftOrRight(t,e){const s="moveCursor".concat(t).concat(e.shiftKey?"WithShift":"WithoutShift");this._currentCursorOpacity=1,this[s](e)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())}moveCursorRightWithShift(t){return this._selectionDirection===E&&this.selectionStart!==this.selectionEnd?this._moveRight(t,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection=j,this._moveRight(t,"selectionEnd")):void 0}moveCursorRightWithoutShift(t){let e=!0;return this._selectionDirection=j,this.selectionStart===this.selectionEnd?(e=this._moveRight(t,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e}}const Do=t=>!!t.button;class ko extends Oo{constructor(){super(...arguments),s(this,"draggableTextDelegate",void 0)}initBehavior(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore),this.on("mouseup",this.mouseUpHandler),this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler),this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown),this.draggableTextDelegate=new So(this),super.initBehavior()}shouldStartDragging(){return this.draggableTextDelegate.isActive()}onDragStart(t){return this.draggableTextDelegate.onDragStart(t)}canDrop(t){return this.draggableTextDelegate.canDrop(t)}onMouseDown(t){if(!this.canvas)return;this.__newClickTime=+new Date;const e=t.pointer;this.isTripleClick(e)&&(this.fire("tripleclick",t),me(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastSelected=this.selected&&!this.getActiveControl()}isTripleClick(t){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===t.x&&this.__lastPointer.y===t.y}doubleClickHandler(t){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(t.e))}tripleClickHandler(t){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(t.e))}_mouseDownHandler(t){let{e:e}=t;this.canvas&&this.editable&&!Do(e)&&!this.getActiveControl()&&(this.draggableTextDelegate.start(e)||(this.canvas.textEditingManager.register(this),this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection())))}_mouseDownHandlerBefore(t){let{e:e}=t;this.canvas&&this.editable&&!Do(e)&&(this.selected=this===this.canvas._activeObject)}mouseUpHandler(t){let{e:e,transform:s}=t;const i=this.draggableTextDelegate.end(e);if(this.canvas){this.canvas.textEditingManager.unregister(this);const t=this.canvas._activeObject;if(t&&t!==this)return}!this.editable||this.group&&!this.group.interactive||s&&s.actionPerformed||Do(e)||i||(this.__lastSelected&&!this.getActiveControl()?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0)}setCursorByClick(t){const e=this.getSelectionStartFromPointer(t),s=this.selectionStart,i=this.selectionEnd;t.shiftKey?this.setSelectionStartEndWithShift(s,i,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())}getSelectionStartFromPointer(t){const e=this.canvas.getScenePoint(t).transform(St(this.calcTransformMatrix())).add(new at(-this._getLeftOffset(),-this._getTopOffset()));let s=0,i=0,r=0;for(let h=0;h0&&(i+=this._textLines[h-1].length+this.missingNewlineOffset(h-1));let n=Math.abs(this._getLineLeftOffset(r));const o=this._textLines[r].length,a=this.__charBounds[r];for(let h=0;h0&&void 0!==arguments[0]?arguments[0]:this.selectionStart||0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selectionEnd,s=arguments.length>2?arguments[2]:void 0;return super.getSelectionStyles(t,e,s)}setSelectionStyles(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selectionStart||0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.selectionEnd;return super.setSelectionStyles(t,e,s)}get2DCursorLocation(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart,e=arguments.length>1?arguments[1]:void 0;return super.get2DCursorLocation(t,e)}render(t){super.render(t),this.cursorOffsetCache={},this.renderCursorOrSelection()}toCanvasElement(t){const e=this.isEditing;this.isEditing=!1;const s=super.toCanvasElement(t);return this.isEditing=e,s}renderCursorOrSelection(){if(!this.isEditing)return;const t=this.clearContextTop(!0);if(!t)return;const e=this._getCursorBoundaries();this.selectionStart===this.selectionEnd?this.renderCursor(t,e):this.renderSelection(t,e),this.canvas.contextTopDirty=!0,t.restore()}_getCursorBoundaries(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectionStart,e=arguments.length>1?arguments[1]:void 0;const s=this._getLeftOffset(),i=this._getTopOffset(),r=this._getCursorBoundariesOffsets(t,e);return{left:s,top:i,leftOffset:r.left,topOffset:r.top}}_getCursorBoundariesOffsets(t,e){return e?this.__getCursorBoundariesOffsets(t):this.cursorOffsetCache&&"top"in this.cursorOffsetCache?this.cursorOffsetCache:this.cursorOffsetCache=this.__getCursorBoundariesOffsets(t)}__getCursorBoundariesOffsets(t){let e=0,s=0;const{charIndex:i,lineIndex:r}=this.get2DCursorLocation(t);for(let h=0;h0?s:0)};return"rtl"===this.direction&&(this.textAlign===j||this.textAlign===uo||this.textAlign===fo?a.left*=-1:this.textAlign===E||this.textAlign===go?a.left=n-(s>0?s:0):this.textAlign!==M&&this.textAlign!==po||(a.left=n-(s>0?s:0))),a}renderCursorAt(t){const e=this._getCursorBoundaries(t,!0);this._renderCursor(this.canvas.contextTop,e,t)}renderCursor(t,e){this._renderCursor(t,e,this.selectionStart)}_renderCursor(t,e,s){const i=this.get2DCursorLocation(s),r=i.lineIndex,n=i.charIndex>0?i.charIndex-1:0,o=this.getValueOfPropertyAt(r,n,"fontSize"),a=this.getObjectScaling().x*this.canvas.getZoom(),h=this.cursorWidth/a,c=this.getValueOfPropertyAt(r,n,"deltaY"),l=e.topOffset+(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-o*(1-this._fontSizeFraction);this.inCompositionMode&&this.renderSelection(t,e),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,n,J),t.globalAlpha=this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-h/2,l+e.top+c,h,o)}renderSelection(t,e){const s={selectionStart:this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,selectionEnd:this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd};this._renderSelection(t,s,e)}renderDragSourceEffect(){const t=this.draggableTextDelegate.getDragStartSelection();this._renderSelection(this.canvas.contextTop,t,this._getCursorBoundaries(t.selectionStart,!0))}renderDropTargetEffect(t){const e=this.getSelectionStartFromPointer(t);this.renderCursorAt(e)}_renderSelection(t,e,s){const i=e.selectionStart,r=e.selectionEnd,n=this.textAlign.includes(uo),o=this.get2DCursorLocation(i),a=this.get2DCursorLocation(r),h=o.lineIndex,c=a.lineIndex,l=o.charIndex<0?0:o.charIndex,u=a.charIndex<0?0:a.charIndex;for(let d=h;d<=c;d++){const e=this._getLineLeftOffset(d)||0;let i=this.getHeightOfLine(d),r=0,o=0,a=0;if(d===h&&(o=this.__charBounds[h][l].left),d>=h&&d1)&&(i/=this.lineHeight);let g=s.left+e+o,f=i,p=0;const m=a-o;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",f=1,p=i):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(this.textAlign===j||this.textAlign===uo||this.textAlign===fo?g=this.width-g-m:this.textAlign===E||this.textAlign===go?g=s.left+e-a:this.textAlign!==M&&this.textAlign!==po||(g=s.left+e-a)),t.fillRect(g,s.top+s.topOffset+p,m,f),s.topOffset+=r}}getCurrentCharFontSize(){const t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fontSize")}getCurrentCharColor(){const t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,J)}_getCurrentCharIndex(){const t=this.get2DCursorLocation(this.selectionStart,!0),e=t.charIndex>0?t.charIndex-1:0;return{l:t.lineIndex,c:e}}dispose(){this._exitEditing(),this.draggableTextDelegate.dispose(),super.dispose()}}s(Lo,"ownDefaults",Fo),s(Lo,"type","IText"),et.setClass(Lo),et.setClass(Lo,"i-text");class Ro extends Lo{static getDefaults(){return r(r({},super.getDefaults()),Ro.ownDefaults)}constructor(t,e){super(t,r(r({},Ro.ownDefaults),e))}static createControls(){return{controls:vi()}}initDimensions(){this.initialized&&(this.isEditing&&this.initDelayedCursor(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.includes(uo)&&this.enlargeSpaces(),this.height=this.calcTextHeight())}_generateStyleMap(t){let e=0,s=0,i=0;const r={};for(let n=0;n0?(s=0,i++,e++):!this.splitByGrapheme&&this._reSpaceAndTab.test(t.graphemeText[i])&&n>0&&(s++,i++),r[n]={line:e,offset:s},i+=t.graphemeLines[n].length,s+=t.graphemeLines[n].length;return r}styleHas(t,e){if(this._styleMap&&!this.isWrapping){const t=this._styleMap[e];t&&(e=t.line)}return super.styleHas(t,e)}isEmptyStyles(t){if(!this.styles)return!0;let e,s=0,i=t+1,r=!1;const n=this._styleMap[t],o=this._styleMap[t+1];n&&(t=n.line,s=n.offset),o&&(i=o.line,r=i===t,e=o.offset);const a=void 0===t?this.styles:{line:this.styles[t]};for(const h in a)for(const t in a[h]){const i=parseInt(t,10);if(i>=s&&(!r||i{let n=0;const o=e?this.graphemeSplit(t):this.wordSplit(t);return 0===o.length?[{word:[],width:0}]:o.map((t=>{const o=e?[t]:this.graphemeSplit(t),a=this._measureWord(o,r,n);return i=Math.max(a,i),n+=o.length+s.length,{word:o,width:a}}))})),largestWordWidth:i}}_measureWord(t,e){let s,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;for(let n=0,o=t.length;n3&&void 0!==arguments[3]?arguments[3]:0;const o=this._getWidthOfCharSpacing(),a=this.splitByGrapheme,h=[],c=a?"":" ";let l=0,u=[],d=0,g=0,f=!0;e-=n;const p=Math.max(e,i,this.dynamicMinWidth),m=r[t];let v;for(d=0,v=0;vp&&!f?(h.push(u),u=[],l=s,f=!0):l+=o,f||a||u.push(c),u=u.concat(e),g=a?0:this._measureWord([c],t,d),d++,f=!1}return v&&h.push(u),i+n>this.dynamicMinWidth&&(this.dynamicMinWidth=i-o+n),h}isEndOfWrapping(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line}missingNewlineOffset(t,e){return this.splitByGrapheme&&!e?this.isEndOfWrapping(t)?1:0:1}_splitTextIntoLines(t){const e=super._splitTextIntoLines(t),s=this._wrapText(e.lines,this.width),i=new Array(s.length);for(let r=0;r0&&void 0!==arguments[0]?arguments[0]:[];return super.toObject(["minWidth","splitByGrapheme",...t])}}s(Ro,"type","Textbox"),s(Ro,"textLayoutProperties",[...Lo.textLayoutProperties,"width"]),s(Ro,"ownDefaults",{minWidth:20,dynamicMinWidth:2,lockScalingFlip:!0,noScaleCache:!1,_wordJoiners:/[ \t\r]/,splitByGrapheme:!1}),et.setClass(Ro);class Io extends xr{shouldPerformLayout(t){return!!t.target.clipPath&&super.shouldPerformLayout(t)}shouldLayoutClipPath(){return!1}calcLayoutResult(t,e){const{target:s}=t,{clipPath:i,group:r}=s;if(!i||!this.shouldPerformLayout(t))return;const{width:n,height:o}=ve(_r(s,i)),a=new at(n,o);if(i.absolutePositioned)return{center:Te(i.getRelativeCenterPoint(),void 0,r?r.calcTransformMatrix():void 0),size:a};{const r=i.getRelativeCenterPoint().transform(s.calcOwnMatrix(),!0);if(this.shouldPerformLayout(t)){const{center:s=new at,correction:i=new at}=this.calcBoundingBox(e,t)||{};return{center:s.add(r),correction:i.subtract(r),size:a}}return{center:s.getRelativeCenterPoint().add(r),size:a}}}}s(Io,"type","clip-path"),et.setClass(Io);class Bo extends xr{getInitialSize(t,e){let{target:s}=t,{size:i}=e;return new at(s.width||i.x,s.height||i.y)}}s(Bo,"type","fixed"),et.setClass(Bo);class Xo extends Tr{subscribeTargets(t){const e=t.target;t.targets.reduce(((t,e)=>(e.parent&&t.add(e.parent),t)),new Set).forEach((t=>{t.layoutManager.subscribeTargets({target:t,targets:[e]})}))}unsubscribeTargets(t){const e=t.target,s=e.getObjects();t.targets.reduce(((t,e)=>(e.parent&&t.add(e.parent),t)),new Set).forEach((t=>{!s.some((e=>e.parent===t))&&t.layoutManager.unsubscribeTargets({target:t,targets:[e]})}))}}class Yo extends kr{static getDefaults(){return r(r({},super.getDefaults()),Yo.ownDefaults)}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),Object.assign(this,Yo.ownDefaults),this.setOptions(e);const{left:s,top:i,layoutManager:r}=e;this.groupInit(t,{left:s,top:i,layoutManager:null!=r?r:new Xo})}_shouldSetNestedCoords(){return!0}__objectSelectionMonitor(){}multiSelectAdd(){for(var t=arguments.length,e=new Array(t),s=0;s{const e=this._objects.findIndex((e=>e.isInFrontOf(t))),s=-1===e?this.size():e;this.insertAt(s,t)}))}canEnterGroup(t){return this.getObjects().some((e=>e.isDescendantOf(t)||t.isDescendantOf(e)))?(c("error","ActiveSelection: circular object trees are not supported, this call has no effect"),!1):super.canEnterGroup(t)}enterGroup(t,e){t.parent&&t.parent===t.group?t.parent._exitGroup(t):t.group&&t.parent!==t.group&&t.group.remove(t),this._enterGroup(t,e)}exitGroup(t,e){this._exitGroup(t,e),t.parent&&t.parent._enterGroup(t,!0)}_onAfterObjectsChange(t,e){super._onAfterObjectsChange(t,e);const s=new Set;e.forEach((t=>{const{parent:e}=t;e&&s.add(e)})),t===vr?s.forEach((t=>{t._onAfterObjectsChange(mr,e)})):s.forEach((t=>{t._set("dirty",!0)}))}onDeselect(){return this.removeAll(),!1}toString(){return"#")}shouldCache(){return!1}isOnACache(){return!1}_renderControls(t,e,s){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1;const i=r(r({hasControls:!1},s),{},{forActiveSelection:!0});for(let r=0;r{t.applyTo(o)}));const{imageData:a}=o;return a.width===s&&a.height===i||(r.width=a.width,r.height=a.height),n.putImageData(a,0,0),o}}class Vo{constructor(){let{tileSize:t=h.textureSize}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,"aPosition",new Float32Array([0,0,0,1,1,0,1,1])),s(this,"resources",{}),this.tileSize=t,this.setupGLContext(t,t),this.captureGPUInfo()}setupGLContext(t,e){this.dispose(),this.createWebGLCanvas(t,e)}createWebGLCanvas(t,e){const s=mt();s.width=t,s.height=e;const i=s.getContext("webgl",{alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1});i&&(i.clearColor(0,0,0,0),this.canvas=s,this.gl=i)}applyFilters(t,e,s,i,r,n){const o=this.gl,a=r.getContext("2d");if(!o||!a)return;let h;n&&(h=this.getCachedTexture(n,e));const c={originalWidth:e.width||e.originalWidth||0,originalHeight:e.height||e.originalHeight||0,sourceWidth:s,sourceHeight:i,destinationWidth:s,destinationHeight:i,context:o,sourceTexture:this.createTexture(o,s,i,h?void 0:e),targetTexture:this.createTexture(o,s,i),originalTexture:h||this.createTexture(o,s,i,h?void 0:e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:r},l=o.createFramebuffer();return o.bindFramebuffer(o.FRAMEBUFFER,l),t.forEach((t=>{t&&t.applyTo(c)})),function(t){const e=t.targetCanvas,s=e.width,i=e.height,r=t.destinationWidth,n=t.destinationHeight;s===r&&i===n||(e.width=r,e.height=n)}(c),this.copyGLTo2D(o,c),o.bindTexture(o.TEXTURE_2D,null),o.deleteTexture(c.sourceTexture),o.deleteTexture(c.targetTexture),o.deleteFramebuffer(l),a.setTransform(1,0,0,1,0,0),c}dispose(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()}clearWebGLCaches(){this.programCache={},this.textureCache={}}createTexture(t,e,s,i,r){const{NEAREST:n,TEXTURE_2D:o,RGBA:a,UNSIGNED_BYTE:h,CLAMP_TO_EDGE:c,TEXTURE_MAG_FILTER:l,TEXTURE_MIN_FILTER:u,TEXTURE_WRAP_S:d,TEXTURE_WRAP_T:g}=t,f=t.createTexture();return t.bindTexture(o,f),t.texParameteri(o,l,r||n),t.texParameteri(o,u,r||n),t.texParameteri(o,d,c),t.texParameteri(o,g,c),i?t.texImage2D(o,0,a,a,h,i):t.texImage2D(o,0,a,e,s,0,a,h,null),f}getCachedTexture(t,e,s){const{textureCache:i}=this;if(i[t])return i[t];{const r=this.createTexture(this.gl,e.width,e.height,e,s);return r&&(i[t]=r),r}}evictCachesForKey(t){this.textureCache[t]&&(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])}copyGLTo2D(t,e){const s=t.canvas,i=e.targetCanvas,r=i.getContext("2d");if(!r)return;r.translate(0,i.height),r.scale(1,-1);const n=s.height-i.height;r.drawImage(s,0,n,i.width,i.height,0,0,i.width,i.height)}copyGLTo2DPutImageData(t,e){const s=e.targetCanvas.getContext("2d"),i=e.destinationWidth,r=e.destinationHeight,n=i*r*4;if(!s)return;const o=new Uint8Array(this.imageBuffer,0,n),a=new Uint8ClampedArray(this.imageBuffer,0,n);t.readPixels(0,0,i,r,t.RGBA,t.UNSIGNED_BYTE,o);const h=new ImageData(a,i,r);s.putImageData(h,0,0)}captureGPUInfo(){if(this.gpuInfo)return this.gpuInfo;const t=this.gl,e={renderer:"",vendor:""};if(!t)return e;const s=t.getExtension("WEBGL_debug_renderer_info");if(s){const i=t.getParameter(s.UNMASKED_RENDERER_WEBGL),r=t.getParameter(s.UNMASKED_VENDOR_WEBGL);i&&(e.renderer=i.toLowerCase()),r&&(e.vendor=r.toLowerCase())}return this.gpuInfo=e,e}}let Ho;function Go(){return!Ho&&(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(Ho=function(){const{WebGLProbe:t}=m();return t.queryWebGL(mt()),h.enableGLFiltering&&t.isSupported(h.textureSize)?new Vo({tileSize:h.textureSize}):new Wo}()),Ho}const zo=["filters","resizeFilter","src","crossOrigin","type"],No=["cropX","cropY"];class Uo extends xi{static getDefaults(){return r(r({},super.getDefaults()),Uo.ownDefaults)}constructor(t,e){super(),s(this,"_lastScaleX",1),s(this,"_lastScaleY",1),s(this,"_filterScalingX",1),s(this,"_filterScalingY",1),this.filters=[],Object.assign(this,Uo.ownDefaults),this.setOptions(e),this.cacheKey="texture".concat(pt()),this.setElement("string"==typeof t?(this.canvas&&ne(this.canvas.getElement())||v()).getElementById(t):t,e)}getElement(){return this._element}setElement(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._element=t,this._originalElement=t,this._setWidthHeight(e),t.classList.add(Uo.CSS_CANVAS),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters()}removeTexture(t){const e=Go(!1);e instanceof Vo&&e.evictCachesForKey(t)}dispose(){super.dispose(),this.removeTexture(this.cacheKey),this.removeTexture("".concat(this.cacheKey,"_filtered")),this._cacheContext=null,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach((t=>{const e=this[t];e&&m().dispose(e),this[t]=void 0}))}getCrossOrigin(){return this._originalElement&&(this._originalElement.crossOrigin||null)}getOriginalSize(){const t=this.getElement();return t?{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height}:{width:0,height:0}}_stroke(t){if(!this.stroke||0===this.strokeWidth)return;const e=this.width/2,s=this.height/2;t.beginPath(),t.moveTo(-e,-s),t.lineTo(e,-s),t.lineTo(e,s),t.lineTo(-e,s),t.lineTo(-e,-s),t.closePath()}toObject(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const e=[];return this.filters.forEach((t=>{t&&e.push(t.toObject())})),r(r({},super.toObject([...No,...t])),{},{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:e},this.resizeFilter?{resizeFilter:this.resizeFilter.toObject()}:{})}hasCrop(){return!!this.cropX||!!this.cropY||this.width\n','\t\n',"\n"),o=' clip-path="url(#imageCrop_'+t+')" '}if(this.imageSmoothing||(a=' image-rendering="optimizeSpeed"'),t.push("\t\n")),this.stroke||this.strokeDashArray){const t=this.fill;this.fill=null,n=['\t\n')],this.fill=t}return r=this.paintFirst!==J?r.concat(n,t):r.concat(t,n),r}getSrc(t){const e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():this.srcFromAttribute?e.getAttribute("src")||"":e.src:this.src||""}getSvgSrc(t){return this.getSrc(t)}setSrc(t){let{crossOrigin:e,signal:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Rt(t,{crossOrigin:e,signal:s}).then((t=>{void 0!==e&&this.set({crossOrigin:e}),this.setElement(t)}))}toString(){return'#')}applyResizeFilters(){const t=this.resizeFilter,e=this.minimumScaleTrigger,s=this.getTotalObjectScaling(),i=s.x,r=s.y,n=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!t||i>e&&r>e)return this._element=n,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=i,void(this._lastScaleY=r);const o=mt(),a=n.width,h=n.height;o.width=a,o.height=h,this._element=o,this._lastScaleX=t.scaleX=i,this._lastScaleY=t.scaleY=r,Go().applyFilters([t],n,a,h,this._element),this._filterScalingX=o.width/this._originalElement.width,this._filterScalingY=o.height/this._originalElement.height}applyFilters(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.filters||[];if(t=t.filter((t=>t&&!t.isNeutralState())),this.set("dirty",!0),this.removeTexture("".concat(this.cacheKey,"_filtered")),0===t.length)return this._element=this._originalElement,this._filteredEl=void 0,this._filterScalingX=1,void(this._filterScalingY=1);const e=this._originalElement,s=e.naturalWidth||e.width,i=e.naturalHeight||e.height;if(this._element===this._originalElement){const t=mt();t.width=s,t.height=i,this._element=t,this._filteredEl=t}else this._filteredEl&&(this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,s,i),this._lastScaleX=1,this._lastScaleY=1);Go().applyFilters(t,this._originalElement,s,i,this._element),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height)}_render(t){t.imageSmoothingEnabled=this.imageSmoothing,!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(t),this._renderPaintInOrder(t)}drawCacheOnCanvas(t){t.imageSmoothingEnabled=this.imageSmoothing,super.drawCacheOnCanvas(t)}shouldCache(){return this.needsItsOwnCache()}_renderFill(t){const e=this._element;if(!e)return;const s=this._filterScalingX,i=this._filterScalingY,r=this.width,n=this.height,o=Math.max(this.cropX,0),a=Math.max(this.cropY,0),h=e.naturalWidth||e.width,c=e.naturalHeight||e.height,l=o*s,u=a*i,d=Math.min(r*s,h-l),g=Math.min(n*i,c-u),f=-r/2,p=-n/2,m=Math.min(r,h/s-o),v=Math.min(n,c/i-a);e&&t.drawImage(e,l,u,d,g,f,p,m,v)}_needsResize(){const t=this.getTotalObjectScaling();return t.x!==this._lastScaleX||t.y!==this._lastScaleY}_resetWidthHeight(){this.set(this.getOriginalSize())}_setWidthHeight(){let{width:t,height:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=this.getOriginalSize();this.width=t||s.width,this.height=e||s.height}parsePreserveAspectRatioAttribute(){const t=Jt(this.preserveAspectRatio||""),e=this.width,s=this.height,i={width:e,height:s};let r,n=this._element.width,o=this._element.height,a=1,h=1,c=0,l=0,u=0,d=0;return!t||t.alignX===F&&t.alignY===F?(a=e/n,h=s/o):("meet"===t.meetOrSlice&&(a=h=Mr(this._element,i),r=(e-n*a)/2,"Min"===t.alignX&&(c=-r),"Max"===t.alignX&&(c=r),r=(s-o*h)/2,"Min"===t.alignY&&(l=-r),"Max"===t.alignY&&(l=r)),"slice"===t.meetOrSlice&&(a=h=Er(this._element,i),r=n-e/a,"Mid"===t.alignX&&(u=r/2),"Max"===t.alignX&&(u=r),r=o-s/h,"Mid"===t.alignY&&(d=r/2),"Max"===t.alignY&&(d=r),n=e/a,o=s/h)),{width:n,height:o,scaleX:a,scaleY:h,offsetLeft:c,offsetTop:l,cropX:u,cropY:d}}static fromObject(t,e){let{filters:s,resizeFilter:i,src:o,crossOrigin:a,type:h}=t,c=n(t,zo);return Promise.all([Rt(o,r(r({},e),{},{crossOrigin:a})),s&&It(s,e),i&&It([i],e),Bt(c,e)]).then((t=>{let[e,s=[],[i]=[],n={}]=t;return new this(e,r(r({},c),{},{src:o,filters:s,resizeFilter:i},n))}))}static fromURL(t){let{crossOrigin:e=null,signal:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return Rt(t,{crossOrigin:e,signal:s}).then((t=>new this(t,i)))}static fromElement(t){return e(this,arguments,(function*(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const i=ur(t,this.ATTRIBUTE_NAMES,s);return this.fromURL(i["xlink:href"],e,i).catch((t=>(c("log","Unable to parse Image",t),null)))}))}}function qo(t){if(!Je.test(t.nodeName))return{};const e=t.getAttribute("viewBox");let s,i,r=1,n=1,o=0,a=0;const h=t.getAttribute("width"),c=t.getAttribute("height"),l=t.getAttribute("x")||0,u=t.getAttribute("y")||0,d=!(e&&Ze.test(e)),g=!h||!c||"100%"===h||"100%"===c;let f="",p=0,m=0;if(d&&(l||u)&&t.parentNode&&"#document"!==t.parentNode.nodeName&&(f=" translate("+Kt(l||"0")+" "+Kt(u||"0")+") ",s=(t.getAttribute("transform")||"")+f,t.setAttribute("transform",s),t.removeAttribute("x"),t.removeAttribute("y")),d&&g)return{width:0,height:0};const v={width:0,height:0};if(d)return v.width=Kt(h),v.height=Kt(c),v;const y=e.match(Ze);o=-parseFloat(y[1]),a=-parseFloat(y[2]);const _=parseFloat(y[3]),x=parseFloat(y[4]);v.minX=o,v.minY=a,v.viewBoxWidth=_,v.viewBoxHeight=x,g?(v.width=_,v.height=x):(v.width=Kt(h),v.height=Kt(c),r=v.width/_,n=v.height/x);const C=Jt(t.getAttribute("preserveAspectRatio")||"");if(C.alignX!==F&&("meet"===C.meetOrSlice&&(n=r=r>n?n:r),"slice"===C.meetOrSlice&&(n=r=r>n?r:n),p=v.width-_*r,m=v.height-x*r,"Mid"===C.alignX&&(p/=2),"Mid"===C.alignY&&(m/=2),"Min"===C.alignX&&(p=0),"Min"===C.alignY&&(m=0)),1===r&&1===n&&0===o&&0===a&&0===l&&0===u)return v;if((l||u)&&"#document"!==t.parentNode.nodeName&&(f=" translate("+Kt(l||"0")+" "+Kt(u||"0")+") "),s=f+" matrix("+r+" 0 0 "+n+" "+(o*r+p)+" "+(a*n+m)+") ","svg"===t.nodeName){for(i=t.ownerDocument.createElementNS(Ge,"g");t.firstChild;)i.appendChild(t.firstChild);t.appendChild(i)}else i=t,i.removeAttribute("x"),i.removeAttribute("y"),s=i.getAttribute("transform")+s;return i.setAttribute("transform",s),v}s(Uo,"type","Image"),s(Uo,"cacheProperties",[...ms,...No]),s(Uo,"ownDefaults",{strokeWidth:0,srcFromAttribute:!1,minimumScaleTrigger:.5,cropX:0,cropY:0,imageSmoothing:!0}),s(Uo,"CSS_CANVAS","canvas-img"),s(Uo,"ATTRIBUTE_NAMES",[...Li,"x","y","width","height","preserveAspectRatio","xlink:href","crossOrigin","image-rendering"]),et.setClass(Uo),et.setSVGClass(Uo);const Ko=t=>t.tagName.replace("svg:",""),Jo=Ye(["pattern","defs","symbol","metadata","clipPath","mask","desc"]);function Qo(t,e){let s,i,r,n,o=[];for(r=0,n=e.length;r{const s=r.getAttribute(t);!e.hasAttribute(t)&&s&&e.setAttribute(t,s)})),!e.children.length)){const t=r.cloneNode(!0);for(;t.firstChild;)e.appendChild(t.firstChild)}e.removeAttribute($o)}const ea=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"];const sa=t=>et.getSVGClass(Ko(t).toLowerCase());class ia{constructor(t,e,s,i,n){this.elements=t,this.options=e,this.reviver=s,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=i,this.clipPaths=n,this.gradientDefs=function(t){const e=Qo(t,ea),s={};let i=e.length;for(;i--;){const r=e[i];r.getAttribute("xlink:href")&&ta(t,r);const n=r.getAttribute("id");n&&(s[n]=r)}return s}(i),this.cssRules=function(t){const e=t.getElementsByTagName("style");let s,i;const n={};for(s=0,i=e.length;ss.length>1&&t.trim())).forEach((t=>{if((t.match(/{/g)||[]).length>1&&t.trim().startsWith("@"))return;const e=t.split("{"),o={},a=e[1].trim().split(";").filter((function(t){return t.trim()}));for(s=0,i=a.length;s{""!==(t=t.replace(/^svg/i,"").trim())&&(n[t]=r(r({},n[t]||{}),o))}))}))}return n}(i)}parse(){return Promise.all(this.elements.map((t=>this.createObject(t))))}createObject(t){return e(this,null,(function*(){const e=sa(t);if(e){const s=yield e.fromElement(t,this.options,this.cssRules);return this.resolveGradient(s,t,J),this.resolveGradient(s,t,Q),s instanceof Uo&&s._originalElement?gn(s,s.parsePreserveAspectRatioAttribute()):gn(s),yield this.resolveClipPath(s,t),this.reviver&&this.reviver(t,s),s}return null}))}extractPropertyDefinition(t,e,s){const i=t[e],r=this.regexUrl;if(!r.test(i))return;r.lastIndex=0;const n=r.exec(i)[1];return r.lastIndex=0,s[n]}resolveGradient(t,e,s){const i=this.extractPropertyDefinition(t,s,this.gradientDefs);if(i){const n=e.getAttribute(s+"-opacity"),o=Xn.fromElement(i,t,r(r({},this.options),{},{opacity:n}));t.set(s,o)}}resolveClipPath(t,s){return e(this,null,(function*(){const e=this.extractPropertyDefinition(t,"clipPath",this.clipPaths);if(e){const i=St(t.calcTransformMatrix()),r=e[0].parentElement;let n=s;for(;n.parentElement&&n.getAttribute("clip-path")!==t.clipPath;)n=n.parentElement;n.parentElement.appendChild(r);const o=ar("".concat(n.getAttribute("transform")||""," ").concat(r.getAttribute("originalTransform")||""));r.setAttribute("transform","matrix(".concat(o.join(","),")"));const a=yield Promise.all(e.map((t=>sa(t).fromElement(t,this.options,this.cssRules).then((t=>(gn(t),t.fillRule=t.clipRule,delete t.clipRule,t)))))),h=1===a.length?a[0]:new kr(a),c=wt(i,h.calcTransformMatrix());h.clipPath&&(yield this.resolveClipPath(h,n));const{scaleX:l,scaleY:u,angle:d,skewX:g,translateX:f,translateY:p}=Dt(c);h.set({flipX:!1,flipY:!1}),h.set({scaleX:l,scaleY:u,angle:d,skewX:g,skewY:0}),h.setPositionByOrigin(new at(f,p),M,M),t.clipPath=h}else delete t.clipPath}))}}const ra=t=>Ke.test(Ko(t)),na=()=>({objects:[],elements:[],options:{},allElements:[]});function oa(t,s,i){return function(t,s){return e(this,arguments,(function*(t,e){let{crossOrigin:s,signal:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(i&&i.aborted)return c("log",new u("parseSVGDocument")),na();const n=t.documentElement;!function(t){const e=Qo(t,["use","svg:use"]),s=["x","y","xlink:href","href","transform"];for(const i of e){const e=i.attributes,r={};for(const t of e)t.value&&(r[t.name]=t.value);const n=(r["xlink:href"]||r.href||"").slice(1);if(""===n)return;const o=t.getElementById(n);if(null===o)return;let a=o.cloneNode(!0);const h=a.attributes,c={};for(const t of h)t.value&&(c[t.name]=t.value);const{x:l=0,y:u=0,transform:d=""}=r,g="".concat(d," ").concat(c.transform||""," translate(").concat(l,", ").concat(u,")");if(qo(a),/^svg$/i.test(a.nodeName)){const t=a.ownerDocument.createElementNS(Ge,"g");Object.entries(c).forEach((e=>{let[s,i]=e;return t.setAttributeNS(Ge,s,i)})),t.append(...a.childNodes),a=t}for(const t of e){if(!t)continue;const{name:e,value:i}=t;if(!s.includes(e))if("style"===e){const t={};cr(i,t),Object.entries(c).forEach((e=>{let[s,i]=e;t[s]=i})),cr(c.style||"",t);const s=Object.entries(t).map((t=>t.join(":"))).join(";");a.setAttribute(e,s)}else!c[e]&&a.setAttribute(e,i)}a.setAttribute("transform",g),a.setAttribute("instantiated_by_use","1"),a.removeAttribute("id"),i.parentNode.replaceChild(a,i)}}(t);const o=Array.from(n.getElementsByTagName("*")),a=r(r({},qo(n)),{},{crossOrigin:s,signal:i}),h=o.filter((t=>(qo(t),ra(t)&&!function(t){let e=t;for(;e&&(e=e.parentElement);)if(e&&e.nodeName&&Jo.test(Ko(e))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}(t))));if(!h||h&&!h.length)return r(r({},na()),{},{options:a,allElements:o});const l={};o.filter((t=>"clipPath"===Ko(t))).forEach((t=>{t.setAttribute("originalTransform",t.getAttribute("transform")||"");const e=t.getAttribute("id");l[e]=Array.from(t.getElementsByTagName("*")).filter((t=>ra(t)))}));const d=new ia(h,a,e,t,l);return{objects:yield d.parse(),elements:h,options:a,allElements:o}}))}((new(y().DOMParser)).parseFromString(t.trim(),"text/xml"),s,i)}const aa=V,ha=t=>function(e,s,i){const{points:r,pathOffset:n}=i;return new at(r[t]).subtract(n).transform(wt(i.getViewportTransform(),i.calcTransformMatrix()))},ca=(t,e,s,i)=>{const{target:r,pointIndex:n}=e,o=r,a=Te(new at(s,i),void 0,o.calcOwnMatrix());return o.points[n]=a.add(o.pathOffset),o.setDimensions(),!0},la=(t,e)=>function(s,i,n,o){const a=i.target,h=new at(a.points[(t>0?t:a.points.length)-1]),c=h.subtract(a.pathOffset).transform(a.calcOwnMatrix()),l=e(s,r(r({},i),{},{pointIndex:t}),n,o),u=h.subtract(a.pathOffset).transform(a.calcOwnMatrix()).subtract(c);return a.left-=u.x,a.top-=u.y,l},ua=t=>Ws(aa,la(t,ca)),da=(t,e,s)=>{const{path:i,pathOffset:r}=t,n=i[e];return new at(n[s]-r.x,n[s+1]-r.y).transform(wt(t.getViewportTransform(),t.calcTransformMatrix()))};function ga(t,e,s){const{commandIndex:i,pointIndex:r}=this;return da(s,i,r)}function fa(t,e,s,i){const{target:n}=e,{commandIndex:o,pointIndex:a}=this,h=((t,e,s,i,r)=>{const{path:n,pathOffset:o}=t,a=n[(i>0?i:n.length)-1],h=new at(a[r],a[r+1]),c=h.subtract(o).transform(t.calcOwnMatrix()),l=Te(new at(e,s),void 0,t.calcOwnMatrix());n[i][r]=l.x+o.x,n[i][r+1]=l.y+o.y,t.setDimensions();const u=h.subtract(t.pathOffset).transform(t.calcOwnMatrix()).subtract(c);return t.left-=u.x,t.top-=u.y,t.set("dirty",!0),!0})(n,s,i,o,a);return ke(this.actionName,r(r({},Le(t,e,s,i)),{},{commandIndex:o,pointIndex:a})),h}class pa extends Ns{constructor(t){super(t)}render(t,e,s,i,n){const o=r(r({},i),{},{cornerColor:this.controlFill,cornerStrokeColor:this.controlStroke,transparentCorners:!this.controlFill});super.render(t,e,s,o,n)}}class ma extends pa{constructor(t){super(t)}render(t,e,s,i,r){const{path:n}=r,{commandIndex:o,pointIndex:a,connectToCommandIndex:h,connectToPointIndex:c}=this;t.save(),t.strokeStyle=this.controlStroke,this.connectionDashArray&&t.setLineDash(this.connectionDashArray);const[l]=n[o],u=da(r,h,c);if("Q"===l){const i=da(r,o,a+2);t.moveTo(i.x,i.y),t.lineTo(e,s)}else t.moveTo(e,s);t.lineTo(u.x,u.y),t.stroke(),t.restore(),super.render(t,e,s,i,r)}}const va=(t,e,s,i,n,o)=>new(s?ma:pa)(r(r({commandIndex:t,pointIndex:e,actionName:"modifyPath",positionHandler:ga,actionHandler:fa,connectToCommandIndex:n,connectToPointIndex:o},i),s?i.controlPointStyle:i.pointStyle));var ya=Object.freeze({__proto__:null,changeWidth:Hs,createObjectDefaultControls:pi,createPathControls:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s={};let i="M";return t.path.forEach(((t,r)=>{const n=t[0];switch("Z"!==n&&(s["c_".concat(r,"_").concat(n)]=va(r,t.length-2,!1,e)),n){case"C":s["c_".concat(r,"_C_CP_1")]=va(r,1,!0,e,r-1,(t=>"C"===t?5:"Q"===t?3:1)(i)),s["c_".concat(r,"_C_CP_2")]=va(r,3,!0,e,r,5);break;case"Q":s["c_".concat(r,"_Q_CP_1")]=va(r,1,!0,e,r,3)}i=n})),s},createPolyActionHandler:ua,createPolyControls:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s={};for(let i=0;i<("number"==typeof t?t:t.points.length);i++)s["p".concat(i)]=new Ns(r({actionName:aa,positionHandler:ha(i),actionHandler:ua(i)},e));return s},createPolyPositionHandler:ha,createResizeControls:mi,createTextboxDefaultControls:vi,dragHandler:Be,factoryPolyActionHandler:la,getLocalPoint:Ie,polyActionHandler:ca,renderCircleControl:Gs,renderSquareControl:zs,rotationStyleHandler:Us,rotationWithSnapping:qs,scaleCursorStyleHandler:Zs,scaleOrSkewActionName:ui,scaleSkewCursorStyleHandler:di,scalingEqually:ti,scalingX:ei,scalingXOrSkewingY:gi,scalingY:si,scalingYOrSkewingX:fi,skewCursorStyleHandler:oi,skewHandlerX:hi,skewHandlerY:ci,wrapWithFireEvent:Ws,wrapWithFixedAnchor:Vs});const _a=t=>void 0!==t.webgl,xa="precision highp float",Ca="\n ".concat(xa,";\n varying vec2 vTexCoord;\n uniform sampler2D uTexture;\n void main() {\n gl_FragColor = texture2D(uTexture, vTexCoord);\n }"),ba=["type"],Sa=["type"],wa=new RegExp(xa,"g");class Ta{get type(){return this.constructor.type}constructor(){let t=n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ba);Object.assign(this,this.constructor.defaults,t)}getFragmentSource(){return Ca}getVertexSource(){return"\n attribute vec2 aPosition;\n varying vec2 vTexCoord;\n void main() {\n vTexCoord = aPosition;\n gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n }"}createProgram(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getFragmentSource(),s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getVertexSource();const{WebGLProbe:{GLPrecision:i="highp"}}=m();"highp"!==i&&(e=e.replace(wa,xa.replace("highp",i)));const r=t.createShader(t.VERTEX_SHADER),n=t.createShader(t.FRAGMENT_SHADER),o=t.createProgram();if(!r||!n||!o)throw new l("Vertex, fragment shader or program creation error");if(t.shaderSource(r,s),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new l("Vertex shader compile error for ".concat(this.type,": ").concat(t.getShaderInfoLog(r)));if(t.shaderSource(n,e),t.compileShader(n),!t.getShaderParameter(n,t.COMPILE_STATUS))throw new l("Fragment shader compile error for ".concat(this.type,": ").concat(t.getShaderInfoLog(n)));if(t.attachShader(o,r),t.attachShader(o,n),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS))throw new l('Shader link error for "'.concat(this.type,'" ').concat(t.getProgramInfoLog(o)));const a=this.getUniformLocations(t,o)||{};return a.uStepW=t.getUniformLocation(o,"uStepW"),a.uStepH=t.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:this.getAttributeLocations(t,o),uniformLocations:a}}getAttributeLocations(t,e){return{aPosition:t.getAttribLocation(e,"aPosition")}}getUniformLocations(t,e){const s=this.constructor.uniformLocations,i={};for(let r=0;r1){const s=t.destinationWidth,i=t.destinationHeight;t.sourceWidth===s&&t.sourceHeight===i||(e.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(e,s,i)),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t.targetTexture,0)}else e.bindFramebuffer(e.FRAMEBUFFER,null),e.finish()}_swapTextures(t){t.passes--,t.pass++;const e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e}isNeutralState(t){return!1}applyTo(t){_a(t)?(this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)}applyTo2d(t){}getCacheKey(){return this.type}retrieveShader(t){const e=this.getCacheKey();return t.programCache[e]||(t.programCache[e]=this.createProgram(t.context)),t.programCache[e]}applyToWebGL(t){const e=t.context,s=this.retrieveShader(t);0===t.pass&&t.originalTexture?e.bindTexture(e.TEXTURE_2D,t.originalTexture):e.bindTexture(e.TEXTURE_2D,t.sourceTexture),e.useProgram(s.program),this.sendAttributeData(e,s.attributeLocations,t.aPosition),e.uniform1f(s.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(s.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,s.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)}bindAdditionalTexture(t,e,s){t.activeTexture(s),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)}unbindAdditionalTexture(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)}sendUniformData(t,e){}createHelpLayer(t){if(!t.helpLayer){const e=mt();e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}}toObject(){const t=Object.keys(this.constructor.defaults||{});return r({type:this.type},t.reduce(((t,e)=>(t[e]=this[e],t)),{}))}toJSON(){return this.toObject()}static fromObject(t,s){return e(this,null,(function*(){return new this(n(t,Sa))}))}}s(Ta,"type","BaseFilter"),s(Ta,"uniformLocations",[]);const Oa={multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",difference:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"\n if (uColor.r < 0.5) {\n gl_FragColor.r *= 2.0 * uColor.r;\n } else {\n gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n }\n if (uColor.g < 0.5) {\n gl_FragColor.g *= 2.0 * uColor.g;\n } else {\n gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n }\n if (uColor.b < 0.5) {\n gl_FragColor.b *= 2.0 * uColor.b;\n } else {\n gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n }\n ",tint:"\n gl_FragColor.rgb *= (1.0 - uColor.a);\n gl_FragColor.rgb += uColor.rgb;\n "};class Da extends Ta{getCacheKey(){return"".concat(this.type,"_").concat(this.mode)}getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec4 uColor;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n gl_FragColor = color;\n if (color.a > 0.0) {\n ".concat(Oa[this.mode],"\n }\n }\n ")}applyTo2d(t){let{imageData:{data:e}}=t;const s=new Ut(this.color).getSource(),i=s[0]*this.alpha,r=s[1]*this.alpha,n=s[2]*this.alpha,o=1-this.alpha;for(let a=0;anew this(r(r({},o),{},{image:t}))))}))}}s(Ea,"type","BlendImage"),s(Ea,"defaults",{mode:"multiply",alpha:1}),s(Ea,"uniformLocations",["uTransformMatrix","uImage"]),et.setClass(Ea);class Pa extends Ta{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec2 uDelta;\n varying vec2 vTexCoord;\n const float nSamples = 15.0;\n vec3 v3offset = vec3(12.9898, 78.233, 151.7182);\n float random(vec3 scale) {\n /* use the fragment position for a different seed per-pixel */\n return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n }\n void main() {\n vec4 color = vec4(0.0);\n float total = 0.0;\n float offset = random(v3offset);\n for (float t = -nSamples; t <= nSamples; t++) {\n float percent = (t + offset - 0.5) / nSamples;\n float weight = 1.0 - abs(percent);\n color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\n total += weight;\n }\n gl_FragColor = color / total;\n }\n "}applyTo(t){_a(t)?(this.aspectRatio=t.sourceWidth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)}applyTo2d(t){t.imageData=this.simpleBlur(t)}simpleBlur(t){let{ctx:e,imageData:s,filterBackend:{resources:i}}=t;const{width:r,height:n}=s;i.blurLayer1||(i.blurLayer1=mt(),i.blurLayer2=mt());const o=i.blurLayer1,a=i.blurLayer2;o.width===r&&o.height===n||(a.width=o.width=r,a.height=o.height=n);const h=o.getContext("2d"),c=a.getContext("2d"),l=.06*this.blur*.5;let u,d,g,f;for(h.putImageData(s,0,0),c.clearRect(0,0,r,n),f=-15;f<=15;f++)u=(Math.random()-.5)/4,d=f/15,g=l*d*r+u,c.globalAlpha=1-Math.abs(d),c.drawImage(o,g,u),h.drawImage(a,0,0),c.globalAlpha=1,c.clearRect(0,0,a.width,a.height);for(f=-15;f<=15;f++)u=(Math.random()-.5)/4,d=f/15,g=l*d*n+u,c.globalAlpha=1-Math.abs(d),c.drawImage(o,u,g),h.drawImage(a,0,0),c.globalAlpha=1,c.clearRect(0,0,a.width,a.height);e.drawImage(o,0,0);const p=e.getImageData(0,0,o.width,o.height);return h.globalAlpha=1,h.clearRect(0,0,o.width,o.height),p}sendUniformData(t,e){const s=this.chooseRightDelta();t.uniform2fv(e.uDelta,s)}isNeutralState(){return 0===this.blur}chooseRightDelta(){let t=1;const e=[0,0];this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio);const s=t*this.blur*.12;return this.horizontal?e[0]=s:e[1]=s,e}}s(Pa,"type","Blur"),s(Pa,"defaults",{blur:0}),s(Pa,"uniformLocations",["uDelta"]),et.setClass(Pa);class Aa extends Ta{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uBrightness;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n color.rgb += uBrightness;\n gl_FragColor = color;\n }\n"}applyTo2d(t){let{imageData:{data:e}}=t;const s=Math.round(255*this.brightness);for(let i=0;i0&&void 0!==arguments[0]?arguments[0]:{};super(t),this.subFilters=t.subFilters||[]}applyTo(t){_a(t)&&(t.passes+=this.subFilters.length-1),this.subFilters.forEach((e=>{e.applyTo(t)}))}toObject(){return{type:this.type,subFilters:this.subFilters.map((t=>t.toObject()))}}isNeutralState(){return!this.subFilters.some((t=>!t.isNeutralState()))}static fromObject(t,e){return Promise.all((t.subFilters||[]).map((t=>et.getClass(t.type).fromObject(t,e)))).then((t=>new this({subFilters:t})))}}s(Va,"type","Composed"),et.setClass(Va);class Ha extends Ta{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uContrast;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\n color.rgb = contrastF * (color.rgb - 0.5) + 0.5;\n gl_FragColor = color;\n }"}isNeutralState(){return 0===this.contrast}applyTo2d(t){let{imageData:{data:e}}=t;const s=Math.floor(255*this.contrast),i=259*(s+255)/(255*(259-s));for(let r=0;r=a||m<0||m>=o||(y=4*(v*o+m),_=i[S*r+b],u+=s[y]*_,d+=s[y+1]*_,g+=s[y+2]*_,l||(f+=s[y+3]*_));c[p]=u,c[p+1]=d,c[p+2]=g,c[p+3]=l?s[p+3]:f}t.imageData=h}sendUniformData(t,e){t.uniform1fv(e.uMatrix,this.matrix)}toObject(){return r(r({},super.toObject()),{},{opaque:this.opaque,matrix:[...this.matrix]})}}s(za,"type","Convolute"),s(za,"defaults",{opaque:!1,matrix:[0,0,0,0,1,0,0,0,0]}),s(za,"uniformLocations",["uMatrix","uOpaque","uHalfSize","uSize"]),et.setClass(za);const Na="Gamma";class Ua extends Ta{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform vec3 uGamma;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n vec3 correction = (1.0 / uGamma);\n color.r = pow(color.r, correction.r);\n color.g = pow(color.g, correction.g);\n color.b = pow(color.b, correction.b);\n gl_FragColor = color;\n gl_FragColor.rgb *= color.a;\n }\n"}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(t),this.gamma=t.gamma||this.constructor.defaults.gamma.concat()}applyTo2d(t){let{imageData:{data:e}}=t;const s=this.gamma,i=1/s[0],r=1/s[1],n=1/s[2];this.rgbValues||(this.rgbValues={r:new Uint8Array(256),g:new Uint8Array(256),b:new Uint8Array(256)});const o=this.rgbValues;for(let a=0;a<256;a++)o.r[a]=255*Math.pow(a/255,i),o.g[a]=255*Math.pow(a/255,r),o.b[a]=255*Math.pow(a/255,n);for(let a=0;ar[0]&&s>r[1]&&i>r[2]&&t"\n color += texture2D(uTexture, vTexCoord + ".concat(t,") * uTaps[").concat(e,"] + texture2D(uTexture, vTexCoord - ").concat(t,") * uTaps[").concat(e,"];\n sum += 2.0 * uTaps[").concat(e,"];\n "))).join("\n"),"\n gl_FragColor = color / sum;\n }\n ")}applyToForWebgl(t){t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,super.applyTo(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,super.applyTo(t),t.sourceHeight=t.destinationHeight}applyTo(t){_a(t)?this.applyToForWebgl(t):this.applyTo2d(t)}isNeutralState(){return 1===this.scaleX&&1===this.scaleY}lanczosCreate(t){return e=>{if(e>=t||e<=-t)return 0;if(e<1.1920929e-7&&e>-1.1920929e-7)return 1;const s=(e*=Math.PI)/t;return Math.sin(e)/e*Math.sin(s)/s}}applyTo2d(t){const e=t.imageData,s=this.scaleX,i=this.scaleY;this.rcpScaleX=1/s,this.rcpScaleY=1/i;const r=e.width,n=e.height,o=Math.round(r*s),a=Math.round(n*i);let h;h="sliceHack"===this.resizeType?this.sliceByTwo(t,r,n,o,a):"hermite"===this.resizeType?this.hermiteFastResize(t,r,n,o,a):"bilinear"===this.resizeType?this.bilinearFiltering(t,r,n,o,a):"lanczos"===this.resizeType?this.lanczosResize(t,r,n,o,a):new ImageData(o,a),t.imageData=h}sliceByTwo(t,e,s,i,r){const n=t.imageData,o=.5;let a=!1,h=!1,c=e*o,l=s*o;const u=t.filterBackend.resources;let d=0,g=0;const f=e;let p=0;u.sliceByTwo||(u.sliceByTwo=mt());const m=u.sliceByTwo;(m.width<1.5*e||m.height=e)){k=Math.floor(1e3*Math.abs(x-m.x)),p[k]||(p[k]={});for(let t=v.y-f;t<=v.y+f;t++)t<0||t>=s||(M=Math.floor(1e3*Math.abs(t-m.y)),p[k][M]||(p[k][M]=h(Math.sqrt(Math.pow(k*u,2)+Math.pow(M*d,2))/1e3)),C=p[k][M],C>0&&(b=4*(t*e+x),S+=C,w+=C*n[b],T+=C*n[b+1],O+=C*n[b+2],D+=C*n[b+3]))}b=4*(_*i+y),a[b]=w/S,a[b+1]=T/S,a[b+2]=O/S,a[b+3]=D/S}return++y1&&s<-1||(r=2*s*s*s-3*s*s+1,r>0&&(t=4*(h+i*e),v+=r*c[t+3],g+=r,c[t+3]<255&&(r=r*c[t+3]/250),f+=r*c[t],p+=r*c[t+1],m+=r*c[t+2],l+=r))}}u[s]=f/l,u[s+1]=p/l,u[s+2]=m/l,u[s+3]=v/g}return l}}s(eh,"type","Resize"),s(eh,"defaults",{resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3}),s(eh,"uniformLocations",["uDelta","uTaps"]),et.setClass(eh);class sh extends Ta{getFragmentSource(){return"\n precision highp float;\n uniform sampler2D uTexture;\n uniform float uSaturation;\n varying vec2 vTexCoord;\n void main() {\n vec4 color = texture2D(uTexture, vTexCoord);\n float rgMax = max(color.r, color.g);\n float rgbMax = max(rgMax, color.b);\n color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\n color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\n color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\n gl_FragColor = color;\n }\n"}applyTo2d(t){let{imageData:{data:e}}=t;const s=-this.saturation;for(let i=0;i{return a=this,s=null,o=function*(){const a=yield t({code:e});a.data&&a.data.data&&window.opener.postMessage(a.data.data,"*")},new Promise(((t,e)=>{var r=t=>{try{i(o.next(t))}catch(a){e(a)}},n=t=>{try{i(o.throw(t))}catch(a){e(a)}},i=e=>e.done?t(e.value):Promise.resolve(e.value).then(r,n);i((o=o.apply(a,s)).next())}));var a,s,o};return a((()=>{const t=(t=>{const e=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),a=window.location.search.substr(1).match(e);return null!=a?decodeURI(a[2]):null})("code");t&&n(t)})),(t,e)=>(s(),o("div",r))}});export{n as default}; diff --git a/assets/greyfloral-DDTxXL3F.png b/assets/greyfloral-DDTxXL3F.png new file mode 100644 index 00000000..a2c19364 Binary files /dev/null and b/assets/greyfloral-DDTxXL3F.png differ diff --git a/assets/honey_im_subtle-DTcn2moI.png b/assets/honey_im_subtle-DTcn2moI.png new file mode 100644 index 00000000..c0dda682 Binary files /dev/null and b/assets/honey_im_subtle-DTcn2moI.png differ diff --git a/assets/iconfont-BP-tiqG_.ttf b/assets/iconfont-BP-tiqG_.ttf new file mode 100644 index 00000000..6c35928a Binary files /dev/null and b/assets/iconfont-BP-tiqG_.ttf differ diff --git a/assets/iconfont-C-G435_5.woff b/assets/iconfont-C-G435_5.woff new file mode 100644 index 00000000..452cef67 Binary files /dev/null and b/assets/iconfont-C-G435_5.woff differ diff --git a/assets/iconfont-DCXhYSiS.woff2 b/assets/iconfont-DCXhYSiS.woff2 new file mode 100644 index 00000000..ee9f097e Binary files /dev/null and b/assets/iconfont-DCXhYSiS.woff2 differ diff --git a/assets/index-BCp-Amju.js b/assets/index-BCp-Amju.js new file mode 100644 index 00000000..fa4e794a --- /dev/null +++ b/assets/index-BCp-Amju.js @@ -0,0 +1,7 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,l=Math.pow,i=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,c=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&i(e,n,t[n]);if(o)for(var n of o(t))r.call(t,n)&&i(e,n,t[n]);return e},s=(e,o)=>t(e,n(o)),u=(e,t,n)=>i(e,"symbol"!=typeof t?t+"":t,n),f=(e,t,n)=>new Promise(((o,a)=>{var r=e=>{try{i(n.next(e))}catch(t){a(t)}},l=e=>{try{i(n.throw(e))}catch(t){a(t)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,l);i((n=n.apply(e,t)).next())}));import{d,e as p,E as h,A as v,L as m,f as g,g as y,h as b,i as _,j as w,k as x,l as k,s as E,m as C,n as S,c as O,a as A,b as L,o as T,p as F,S as D,q as j,r as P,t as M,v as I,w as B,P as V,x as R,y as $,z as N,G as U,B as z,C as G,W as H,D as X,F as Y,H as W,K as q,I as Z,J as K,M as J,N as Q,O as ee,T as te,Q as ne,R as oe,U as ae,V as re,X as le,Y as ie,Z as ce,$ as se,a0 as ue,a1 as fe,a2 as de,a3 as pe,a4 as he,a5 as ve,a6 as me,a7 as ge,a8 as ye,a9 as be,aa as _e,ab as we,ac as xe,ad as ke,ae as Ee,af as Ce,ag as Se,ah as Oe,ai as Ae,aj as Le,ak as Te,al as Fe,am as De,an as je,ao as Pe,ap as Me,aq as Ie,ar as Be,as as Ve,at as Re}from"./index-CV6Kdia6.js";import{j as $e,r as Ne,e as Ue,ae as ze,k as Ge,l as He,m as Xe,M as Ye,Q as We,U as qe,V as Ze,u as Ke,K as Je,_ as Qe,$ as et,O as tt,a7 as nt,R as ot,W as at,c as rt,n as lt,T as it,w as ct,B as st,aw as ut,Z as ft,al as dt,S as pt,H as ht,I as vt,F as mt}from"./vue-CfXu-DEr.js";import{K as gt,L as yt,M as bt,N as _t,r as wt,g as xt,f as kt,p as Et,q as Ct,v as St,B as Ot,b as At,O as Lt,a as Tt,t as Ft,P as Dt,h as jt,j as Pt,Q as Mt,m as It,R as Bt,D as Vt,y as Rt,d as $t,S as Nt,T as Ut,n as zt,o as Gt,k as Ht,s as Xt,U as Yt,V as Wt,l as qt,W as Zt,c as Kt,X as Jt,Y as Qt,Z as en,_ as tn,E as nn}from"./element-plus-Dy-NuVsF.js";import{C as on,_ as an,u as rn,f as ln,N as cn,G as sn,k as un,U as fn,a as dn,l as pn}from"./fabric-Dlz3ta-n.js";import{g as hn,a as vn,c as mn}from"./clipper-lib-Cdu7DM5D.js";import{a as gn,b as yn}from"./index-DCPCqU0q.js";import{e as bn,t as _n,n as wn}from"./lodash-es-DIelbCxD.js";import{o as xn}from"./opentype.js-QlGfLlyt.js";const kn=()=>({alignElement:e=>{const[t]=g(),{left:n,top:o,width:a,height:r,centerPoint:l}=d(),i=t.getActiveObject(),c=p();if(!i)return;let s={};if(i.type.toLowerCase()===h.ACTIVE){const t=i;switch(e){case v.LEFT:t._objects.forEach((e=>e.set({left:-t.width/2})));break;case v.RIGHT:t._objects.forEach((e=>e.set({left:t.width/2-e.width*e.scaleX})));break;case v.TOP:t._objects.forEach((e=>e.set({top:-t.height/2})));break;case v.BOTTOM:t._objects.forEach((e=>e.set({top:t.height/2-e.height*e.scaleY})));break;case v.HORIZONTAL:t._objects.forEach((e=>e.set({top:-e.height/2*e.scaleY})));break;case v.VERTICAL:t._objects.forEach((e=>e.set({left:-e.width/2*e.scaleX})));break;case v.CENTER:t._objects.forEach((e=>e.set({left:t.left-e.width/2*e.scaleX}))),t._objects.forEach((e=>e.set({top:t.top-e.height/2*e.scaleY})))}}else switch(t.discardActiveObject(),e){case v.LEFT:s={left:n},i.set(s);break;case v.RIGHT:s={left:n+a-i.width*i.scaleX},i.set(s);break;case v.TOP:s={top:o},i.set(s);break;case v.BOTTOM:s={top:o+r-i.height*i.scaleY},i.set(s);break;case v.HORIZONTAL:s={top:l.y-i.height/2*i.scaleY},i.set(s);break;case v.VERTICAL:s={left:l.x-i.width/2*i.scaleX},i.set(s);break;case v.CENTER:s={left:l.x-i.width/2*i.scaleX,top:l.y-i.height/2*i.scaleY},i.set(s)}t.setActiveObject(i),t.renderAll(),c.modifedElement(i,s)},layerElement:e=>{const[t]=g(),{setZindex:n}=y(),o=t.getActiveObject(),a=p();if(o){switch(e){case m.UP:t.bringObjectForward(o);break;case m.DOWN:t.sendObjectBackwards(o);break;case m.TOP:t.bringObjectToFront(o);break;case m.BOTTOM:t.sendObjectToBack(o)}n(t),t.renderAll(),a.modifedElement(o,{})}}}),En={class:"h-[59px] w-full flex justify-between px-[16px] border-b border-[#eee]"},Cn={class:"left-handler"},Sn={class:"center-handler"},On={class:"handler-dropdown"},An={class:"right-handler"},Ln={class:"viewport-size-preset"},Tn=["onClick"],Fn=O($e({__name:"index",setup(e){const t=b(),n=_();p();const{t:o}=w(),{setCanvasScalePercentage:a,scaleCanvas:r,resetCanvas:l}=x(),{combineElements:i,uncombineElements:c,intersectElements:s}=k(),{zoom:u}=E(t),{canvasObject:f}=E(n),d=Ne(),v=Ue((()=>Math.round(100*u.value)+"%")),m=[200,150,100,80,50],{canUndo:y,canRedo:O}=E(C()),{redo:A,undo:L}=S(),T=Ue((()=>f.value)),F=Ue((()=>!!T.value&&T.value.type===h.ACTIVE)),D=Ue((()=>!!T.value&&T.value.type===h.GROUP)),j=Ue((()=>{const[e]=g();if(!T.value)return!1;if(T.value.type===h.GROUP){const e=T.value,t=e._objects.filter((e=>e.type===h.PATH));return!(2!==e._objects.length||!t||2!==t.length)}if(T.value.type!==h.ACTIVE)return!1;const t=e.getActiveObjects();return 2===t.length&&2===t.filter((e=>e.type===h.PATH)).length})),P=e=>{T.value&&s(e)};return(e,t)=>{const n=ze("IconHome"),s=gt,u=ze("IconBack"),f=ze("IconNext"),p=ze("IconGroup"),b=ze("IconUngroup"),_=ze("IconRuler"),w=ze("IconUnionSelection"),x=ze("IconDown"),k=yt,E=ze("IconSubtractSelectionOne"),C=ze("IconIntersectSelection"),S=ze("IconExcludeSelection"),M=bt,I=_t,B=ze("IconMinus"),V=ze("IconFullScreen"),R=wt,$=ze("IconPlus");return Ge(),He("div",En,[Xe("div",Cn,[Ye(s,{placement:"top","hide-after":0,content:"首页"},{default:We((()=>[Ye(n,{class:"handler-item"})])),_:1}),Ye(s,{placement:"top","hide-after":0},{content:We((()=>[qe(Ze(Ke(o)("message.undo")),1)])),default:We((()=>[Ye(u,{class:Je(["handler-item",{disable:!Ke(y)}]),onClick:t[0]||(t[0]=e=>Ke(L)())},null,8,["class"])])),_:1}),Ye(s,{placement:"top","hide-after":0},{content:We((()=>[qe(Ze(Ke(o)("message.redo")),1)])),default:We((()=>[Ye(f,{class:Je(["handler-item",{disable:!Ke(O)}]),onClick:t[1]||(t[1]=e=>Ke(A)())},null,8,["class"])])),_:1}),Ye(s,{placement:"top","hide-after":0},{content:We((()=>[qe(Ze(Ke(o)("message.group")),1)])),default:We((()=>[Qe(Ye(p,{class:Je(["handler-item",{disable:!F.value}]),onClick:t[2]||(t[2]=e=>{T.value&&T.value.type===h.ACTIVE&&i()})},null,8,["class"]),[[et,F.value]])])),_:1}),Ye(s,{placement:"top","hide-after":0},{content:We((()=>[qe(Ze(Ke(o)("message.ungroup")),1)])),default:We((()=>[Qe(Ye(b,{class:Je(["handler-item",{disable:!D.value}]),onClick:t[3]||(t[3]=e=>{T.value&&T.value.type===h.GROUP&&c()})},null,8,["class"]),[[et,D.value]])])),_:1}),Ye(s,{placement:"top","hide-after":0},{content:We((()=>[qe(Ze(Ke(o)("message.ruler")),1)])),default:We((()=>[Ye(_,{class:"handler-item",onClick:t[4]||(t[4]=e=>(()=>{const[e]=g();e.ruler&&(e.ruler.enabled=!e.ruler.enabled)})())})])),_:1})]),Qe(Xe("div",Sn,[Ye(I,{trigger:"click"},{dropdown:We((()=>[Ye(M,null,{default:We((()=>[Ye(k,{onClick:t[5]||(t[5]=e=>P(0))},{default:We((()=>[Ye(w,{class:"handler-item"}),qe(Ze(Ke(o)("message.union")),1)])),_:1}),Ye(k,{onClick:t[6]||(t[6]=e=>P(1))},{default:We((()=>[Ye(E,{class:"handler-item"}),qe(Ze(Ke(o)("message.difference")),1)])),_:1}),Ye(k,{onClick:t[7]||(t[7]=e=>P(2))},{default:We((()=>[Ye(C,{class:"handler-item"}),qe(Ze(Ke(o)("message.intersection")),1)])),_:1}),Ye(k,{onClick:t[8]||(t[8]=e=>P(3))},{default:We((()=>[Ye(S,{class:"handler-item"}),qe(Ze(Ke(o)("message.xor")),1)])),_:1})])),_:1})])),default:We((()=>[Xe("span",On,[Ye(s,{placement:"top","hide-after":0},{content:We((()=>[qe(Ze(Ke(o)("message.union")),1)])),default:We((()=>[Ye(w,{class:"handler-icon"})])),_:1}),Ye(x,{class:"handler-icon icon-down"})])])),_:1})],512),[[et,j.value]]),Xe("div",An,[Ye(B,{class:"handler-item",onClick:t[9]||(t[9]=e=>Ke(r)("-"))}),Ye(R,{placement:"bottom",trigger:"click",width:"100","popper-class":"viewport-size"},{reference:We((()=>[Xe("span",{class:"text",ref_key:"scaleRef",ref:d},Ze(v.value),513)])),default:We((()=>[Xe("div",Ln,[(Ge(),He(tt,null,nt(m,(e=>Xe("div",{class:"preset-item",key:e,onClick:t=>{a(e)}},Ze(e)+"%",9,Tn))),64)),Xe("div",{class:"preset-item",onClick:t[10]||(t[10]=e=>Ke(l)())},[Ye(V,{class:"handler-item"})])])])),_:1}),Ye($,{class:"handler-item",onClick:t[11]||(t[11]=e=>Ke(r)("+"))})])])}}}),[["__scopeId","data-v-6960d653"]]),Dn={class:"left-bottom-tabs"},jn={class:"h-full border-r-[1px]"},Pn=["onClick"],Mn=["id"],In={class:"left-name"},Bn=O($e({__name:"index",setup(e){A();const t=_(),{poolType:n,poolShow:o}=E(t);Ne(),Ne(),Ne(!1);const a=[{key:"editor",label:"message.edit",icon:"editor",index:0},{key:"template",label:"message.template",icon:"template",index:1},{key:"material",label:"message.material",icon:"material",index:2},{key:"text",label:"message.text",icon:"text",index:3},{key:"image",label:"message.image",icon:"picture",index:4},{key:"toolkit",label:"message.tool",icon:"toolkit",index:5},{key:"chatgpt",label:"message.chatgpt",icon:"chatgpt",index:6}];return(e,r)=>{const l=L;return Ge(),He("div",null,[Xe("div",Dn,[Xe("div",jn,[(Ge(),He(tt,null,nt(a,(a=>Xe("div",{class:Je(["center-tab",{"left-active":a.key===Ke(n)}]),key:a.key,onClick:e=>(e=>{o.value&&e===n.value?o.value=!1:o.value="help"!==e,t.setPoolType(e)})(a.key)},[Xe("div",{class:"flex justify-center items-center flex-col",id:`left-tabs-${a.key}`},[Ye(l,{"icon-class":a.icon,className:"svg-size"},null,8,["icon-class"]),Xe("div",In,Ze(e.$t(a.label)),1)],8,Mn)],10,Pn))),64))])])])}}}),[["__scopeId","data-v-286561fa"]]);var Vn,Rn={exports:{}};Vn=Rn.exports,window;var $n=Rn.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(o,a,function(t){return e[t]}.bind(null,a));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=11)}([function(e,t,n){var o=n(5),a="object"==typeof self&&self&&self.Object===Object&&self,r=o.a||a||Function("return this")();t.a=r},function(e,t,n){(function(e){var o=n(5),a=Vn&&!Vn.nodeType&&Vn,r=a&&"object"==typeof e&&e&&!e.nodeType&&e,l=r&&r.exports===a&&o.a.process,i=function(){try{return r&&r.require&&r.require("util").types||l&&l.binding&&l.binding("util")}catch(e){}}();t.a=i}).call(this,n(6)(e))},function(e,t,n){function o(e){this._maxSize=e,this.clear()}o.prototype.clear=function(){this._size=0,this._values=Object.create(null)},o.prototype.get=function(e){return this._values[e]},o.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var a=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,l=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,c=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new o(512),u=new o(512),f=new o(512);function d(e){return s.get(e)||s.set(e,p(e).map((function(e){return e.replace(c,"$2")})))}function p(e){return e.match(a)}function h(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function v(e){return!h(e)&&((t=e).match(l)&&!t.match(r)||function(e){return i.test(e)}(e));var t}e.exports={Cache:o,split:p,normalizePath:d,setter:function(e){var t=d(e);return u.get(e)||u.set(e,(function(e,n){for(var o=0,a=t.length;o-1},ae=function(e,t){var n=this.__data__,o=Q(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},Ve=function(e){if("string"==typeof e||w(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Re=function(e,t,n){for(var o=-1,a=(t=Le(t,e)).length,r=!1;++o=0||(a[n]=e[n]);return a}var qn=n(4),Zn=/\$\{\s*(\w+)\s*\}/g,Kn=function(e){return function(t){return e.replace(Zn,(function(e,n){return Rn(t[n])}))}};function Jn(e,t,n,o){var a=this;this.name="ValidationError",this.value=t,this.path=n,this.type=o,this.errors=[],this.inner=[],e&&[].concat(e).forEach((function(e){a.errors=a.errors.concat(e.errors||e),e.inner&&(a.inner=a.inner.concat(e.inner.length?e.inner:e))})),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Jn)}Jn.prototype=Object.create(Error.prototype),Jn.prototype.constructor=Jn,Jn.isError=function(e){return e&&"ValidationError"===e.name},Jn.formatError=function(e,t){"string"==typeof e&&(e=Kn(e));var n=function(t){return t.path=t.label||t.path||"this","function"==typeof e?e(t):e};return 1===arguments.length?n:n(t)};var Qn=function(e){return e?qn.SynchronousPromise:Promise};function eo(e,t){return e?null:function(e){return t.push(e),e.value}}function to(e){var t,n=e.validations,o=e.value,a=e.path,r=e.sync,l=e.errors,i=e.sort;return void 0===(t=l)&&(t=[]),l=t.inner&&t.inner.length?t.inner:[].concat(t),function(e,t){var n=Qn(t);return n.all(e.map((function(e){return n.resolve(e).then((function(e){return{fulfilled:!0,value:e}}),(function(e){return{fulfilled:!1,value:e}}))})))}(n,r).then((function(e){var t=e.filter((function(e){return!e.fulfilled})).reduce((function(e,t){var n=t.value;if(!Jn.isError(n))throw n;return e.concat(n)}),[]);if(i&&t.sort(i),(l=t.concat(l)).length)throw new Jn(l,o,a);return o}))}function no(e){var t,n,o,a=e.endEarly,r=Wn(e,["endEarly"]);return a?(t=r.validations,n=r.value,o=r.sync,Qn(o).all(t).catch((function(e){throw"ValidationError"===e.name&&(e.value=n),e})).then((function(){return n}))):to(r)}var oo=function(e){return"[object Object]"===Object.prototype.toString.call(e)},ao=function(){return function(e,t,n){for(var o=-1,a=Object(e),r=n(e),l=r.length;l--;){var i=r[++o];if(!1===t(a[i],i,a))break}return e}}(),ro=function(e,t){return e&&ao(e,t,mt)},lo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},io=function(e){return this.__data__.has(e)};function co(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new me;++ti))return!1;var s=r.get(e);if(s&&r.get(t))return s==t;var u=-1,f=!0,d=2&n?new so:void 0;for(r.set(e,t),r.set(t,e);++u=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+i+", in the path: "+t+". because there is no value at that index. ");a=n,n=n&&n[d],e=e.innerType}if(!s){if(!e.fields||!e.fields[f])throw new Error("The schema does not contain the path: "+t+". (failed at: "+l+' which is a type: "'+e._type+'")');a=n,n=n&&n[f],e=e.fields[f]}r=f,l=c?"["+i+"]":"."+i})),{schema:e,parent:a,parentPath:r}):{parent:a,parentPath:t,schema:e}}var Xo=function(){function e(){this.list=new Set,this.refs=new Map}var t,n=e.prototype;return n.describe=function(){var e=[],t=this.list,n=Array.isArray(t),o=0;for(t=n?t:t[Symbol.iterator]();;){var a;if(n){if(o>=t.length)break;a=t[o++]}else{if((o=t.next()).done)break;a=o.value}var r=a;e.push(r)}var l=this.refs,i=Array.isArray(l),c=0;for(l=i?l:l[Symbol.iterator]();;){var s;if(i){if(c>=l.length)break;s=l[c++]}else{if((c=l.next()).done)break;s=c.value}var u=s[1];e.push(u.describe())}return e},n.toArray=function(){return Dn(this.list).concat(Dn(this.refs.values()))},n.add=function(e){No.isRef(e)?this.refs.set(e.key,e):this.list.add(e)},n.delete=function(e){No.isRef(e)?this.refs.delete(e.key):this.list.delete(e)},n.has=function(e,t){if(this.list.has(e))return!0;for(var n,o=this.refs.values();!(n=o.next()).done;)if(t(n.value)===e)return!0;return!1},n.clone=function(){var t=new e;return t.list=new Set(this.list),t.refs=new Map(this.refs),t},n.merge=function(e,t){var n=this.clone();return e.list.forEach((function(e){return n.add(e)})),e.refs.forEach((function(e){return n.add(e)})),t.list.forEach((function(e){return n.delete(e)})),t.refs.forEach((function(e){return n.delete(e)})),n},(t=[{key:"size",get:function(){return this.list.size+this.refs.size}}])&&a(e.prototype,t),e}();function Yo(e){var t=this;if(void 0===e&&(e={}),!(this instanceof Yo))return new Yo;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new Xo,this._blacklist=new Xo,this.tests=[],this.transforms=[],this.withMutation((function(){t.typeError($n.notType)})),$e(e,"default")&&(this._defaultDefault=e.default),this.type=e.type||"mixed",this._type=e.type||"mixed"}for(var Wo=Yo.prototype={__isYupSchema__:!0,constructor:Yo,clone:function(){var e=this;return this._mutate?this:sn(this,(function(t){if(Xn(t)&&t!==e)return t}))},label:function(e){var t=this.clone();return t._label=e,t},meta:function(e){if(0===arguments.length)return this._meta;var t=this.clone();return t._meta=o(t._meta||{},e),t},withMutation:function(e){var t=this._mutate;this._mutate=!0;var n=e(this);return this._mutate=t,n},concat:function(e){if(!e||e===this)return this;if(e._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+e._type);var t=function e(t,n){for(var o in n)if($e(n,o)){var a=n[o],r=t[o];if(void 0===r)t[o]=a;else{if(r===a)continue;Xn(r)?Xn(a)&&(t[o]=a.concat(r)):oo(r)?oo(a)&&(t[o]=e(r,a)):Array.isArray(r)&&Array.isArray(a)&&(t[o]=a.concat(r))}}return t}(e.clone(),this);return $e(e,"_default")&&(t._default=e._default),t.tests=this.tests,t._exclusive=this._exclusive,t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.withMutation((function(t){e.tests.forEach((function(e){t.test(e.OPTIONS)}))})),t},isType:function(e){return!(!this._nullable||null!==e)||!this._typeCheck||this._typeCheck(e)},resolve:function(e){var t=this;if(t._conditions.length){var n=t._conditions;(t=t.clone())._conditions=[],t=(t=n.reduce((function(t,n){return n.resolve(t,e)}),t)).resolve(e)}return t},cast:function(e,t){void 0===t&&(t={});var n=this.resolve(o({},t,{value:e})),a=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(a)){var r=Rn(e),l=Rn(a);throw new TypeError("The value of "+(t.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+r+" \n"+(l!==r?"result of cast: "+l:""))}return a},_cast:function(e){var t=this,n=void 0===e?e:this.transforms.reduce((function(n,o){return o.call(t,n,e)}),e);return void 0===n&&$e(this,"_default")&&(n=this.default()),n},_validate:function(e,t){var n=this;void 0===t&&(t={});var a=e,r=null!=t.originalValue?t.originalValue:e,l=this._option("strict",t),i=this._option("abortEarly",t),c=t.sync,s=t.path,u=this._label;l||(a=this._cast(a,o({assert:!1},t)));var f={value:a,path:s,schema:this,options:t,label:u,originalValue:r,sync:c};t.from&&(f.from=t.from);var d=[];return this._typeError&&d.push(this._typeError(f)),this._whitelistError&&d.push(this._whitelistError(f)),this._blacklistError&&d.push(this._blacklistError(f)),no({validations:d,endEarly:i,value:a,path:s,sync:c}).then((function(e){return no({path:s,sync:c,value:e,endEarly:i,validations:n.tests.map((function(e){return e(f)}))})}))},validate:function(e,t){return void 0===t&&(t={}),this.resolve(o({},t,{value:e}))._validate(e,t)},validateSync:function(e,t){var n,a;if(void 0===t&&(t={}),this.resolve(o({},t,{value:e}))._validate(e,o({},t,{sync:!0})).then((function(e){return n=e})).catch((function(e){return a=e})),a)throw a;return n},isValid:function(e,t){return this.validate(e,t).then((function(){return!0})).catch((function(e){if("ValidationError"===e.name)return!1;throw e}))},isValidSync:function(e,t){try{return this.validateSync(e,t),!0}catch(_e){if("ValidationError"===_e.name)return!1;throw _e}},getDefault:function(e){return void 0===e&&(e={}),this.resolve(e).default()},default:function(e){if(0===arguments.length){var t=$e(this,"_default")?this._default:this._defaultDefault;return"function"==typeof t?t.call(this):sn(t)}var n=this.clone();return n._default=e,n},strict:function(e){void 0===e&&(e=!0);var t=this.clone();return t._options.strict=e,t},_isPresent:function(e){return null!=e},required:function(e){return void 0===e&&(e=$n.required),this.test({message:e,name:"required",exclusive:!0,test:function(e){return this.schema._isPresent(e)}})},notRequired:function(){var e=this.clone();return e.tests=e.tests.filter((function(e){return"required"!==e.OPTIONS.name})),e},nullable:function(e){void 0===e&&(e=!0);var t=this.clone();return t._nullable=e,t},transform:function(e){var t=this.clone();return t.transforms.push(e),t},test:function(){var e;if(void 0===(e=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(e.message=$n.default),"function"!=typeof e.test)throw new TypeError("`test` is a required parameters");var t=this.clone(),n=Go(e),o=e.exclusive||e.name&&!0===t._exclusive[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t._exclusive[e.name]=!!e.exclusive,t.tests=t.tests.filter((function(t){if(t.OPTIONS.name===e.name){if(o)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t},when:function(e,t){1===arguments.length&&(t=e,e=".");var n=this.clone(),o=[].concat(e).map((function(e){return new No(e)}));return o.forEach((function(e){e.isSibling&&n._deps.push(e.key)})),n._conditions.push(new Yn(o,t)),n},typeError:function(e){var t=this.clone();return t._typeError=Go({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t},oneOf:function(e,t){void 0===t&&(t=$n.oneOf);var n=this.clone();return e.forEach((function(e){n._whitelist.add(e),n._blacklist.delete(e)})),n._whitelistError=Go({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist;return!!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},notOneOf:function(e,t){void 0===t&&(t=$n.notOneOf);var n=this.clone();return e.forEach((function(e){n._blacklist.add(e),n._whitelist.delete(e)})),n._blacklistError=Go({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist;return!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},strip:function(e){void 0===e&&(e=!0);var t=this.clone();return t._strip=e,t},_option:function(e,t){return $e(t,e)?t[e]:this._options[e]},describe:function(){var e=this.clone(),t={type:e._type,meta:e._meta,label:e._label,tests:e.tests.map((function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}})).filter((function(e,t,n){return n.findIndex((function(t){return t.name===e.name}))===t}))};return e._whitelist.size&&(t.oneOf=e._whitelist.describe()),e._blacklist.size&&(t.notOneOf=e._blacklist.describe()),t},defined:function(e){return void 0===e&&(e=$n.defined),this.nullable().test({message:e,name:"defined",exclusive:!0,test:function(e){return void 0!==e}})}},qo=function(){var e=Ko[Zo];Wo[e+"At"]=function(t,n,a){void 0===a&&(a={});var r=Ho(this,t,n,a.context),l=r.parent,i=r.parentPath;return r.schema[e](l&&l[i],o({},a,{parent:l,path:t}))}},Zo=0,Ko=["validate","validateSync"];Zo0},length:function(e,t){return void 0===t&&(t=Nn.length),this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return aa(t)||t.length===this.resolve(e)}})},min:function(e,t){return void 0===t&&(t=Nn.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return aa(t)||t.length>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=Nn.max),this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return aa(t)||t.length<=this.resolve(e)}})},matches:function(e,t){var n,o,a=!1;return t&&("object"==typeof t?(a=t.excludeEmptyString,n=t.message,o=t.name):n=t),this.test({name:o||"matches",message:n||Nn.matches,params:{regex:e},test:function(t){return aa(t)||""===t&&a||-1!==t.search(e)}})},email:function(e){return void 0===e&&(e=Nn.email),this.matches(ra,{name:"email",message:e,excludeEmptyString:!0})},url:function(e){return void 0===e&&(e=Nn.url),this.matches(la,{name:"url",message:e,excludeEmptyString:!0})},ensure:function(){return this.default("").transform((function(e){return null===e?"":e}))},trim:function(e){return void 0===e&&(e=Nn.trim),this.transform((function(e){return null!=e?e.trim():e})).test({message:e,name:"trim",test:ia})},lowercase:function(e){return void 0===e&&(e=Nn.lowercase),this.transform((function(e){return aa(e)?e:e.toLowerCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return aa(e)||e===e.toLowerCase()}})},uppercase:function(e){return void 0===e&&(e=Nn.uppercase),this.transform((function(e){return aa(e)?e:e.toUpperCase()})).test({message:e,name:"string_case",exclusive:!0,test:function(e){return aa(e)||e===e.toUpperCase()}})}}),na(sa,Yo,{_typeCheck:function(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!((t=e)!=+t);var t},min:function(e,t){return void 0===t&&(t=Un.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return aa(t)||t>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=Un.max),this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return aa(t)||t<=this.resolve(e)}})},lessThan:function(e,t){return void 0===t&&(t=Un.lessThan),this.test({message:t,name:"max",exclusive:!0,params:{less:e},test:function(t){return aa(t)||tthis.resolve(e)}})},positive:function(e){return void 0===e&&(e=Un.positive),this.moreThan(0,e)},negative:function(e){return void 0===e&&(e=Un.negative),this.lessThan(0,e)},integer:function(e){return void 0===e&&(e=Un.integer),this.test({name:"integer",message:e,test:function(e){return aa(e)||Number.isInteger(e)}})},truncate:function(){return this.transform((function(e){return aa(e)?e:0|e}))},round:function(e){var t=["ceil","floor","round","trunc"];if("trunc"===(e=e&&e.toLowerCase()||"round"))return this.truncate();if(-1===t.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+t.join(", "));return this.transform((function(t){return aa(t)?t:Math[e](t)}))}});var ua=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/,fa=new Date("");function da(){var e=this;if(!(this instanceof da))return new da;Yo.call(this,{type:"date"}),this.withMutation((function(){e.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,o=[1,4,5,6,7,10,11],a=0;if(n=ua.exec(e)){for(var r,l=0;r=o[l];++l)n[r]=+n[r]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(a=60*n[10]+n[11],"+"===n[9]&&(a=0-a)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+a,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?fa:new Date(e))}))}))}function pa(e,t){return t||(t=e.slice(0)),e.raw=t,e}na(da,Yo,{_typeCheck:function(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t},min:function(e,t){void 0===t&&(t=zn.min);var n=e;if(!No.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(e){return aa(e)||e>=this.resolve(n)}})},max:function(e,t){void 0===t&&(t=zn.max);var n=e;if(!No.isRef(n)&&(n=this.cast(e),!this._typeCheck(n)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(e){return aa(e)||e<=this.resolve(n)}})}});var ha=function(e,t,n,o){for(var a=-1,r=null==e?0:e.length;++aa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(a);++o=o?e:za(e,t,n)},Ha=function(e){return function(t){t=Ae(t);var n=mn(t)?An(t):void 0,o=n?n[0]:t.charAt(0),a=n?Ga(n,1).join(""):t.slice(1);return o[e]()+a}}("toUpperCase"),Xa=function(e){return Ha(Ae(e).toLowerCase())},Ya=Na((function(e,t,n){return t=t.toLowerCase(),e+(n?Xa(t):t)})),Wa=function(e,t){var n={};return t=Io(t),ro(e,(function(e,o,a){Ze(n,t(e,o,a),e)})),n},qa=n(9),Za=n.n(qa);function Ka(e,t){void 0===t&&(t=[]);var n=[],o=[];function a(e,a){var r=Object(Vo.split)(e)[0];~o.indexOf(r)||o.push(r),~t.indexOf(a+"-"+r)||n.push([a,r])}for(var r in e)if($e(e,r)){var l=e[r];~o.indexOf(r)||o.push(r),No.isRef(l)&&l.isSibling?a(l.path,r):Xn(l)&&l._deps&&l._deps.forEach((function(e){return a(e,r)}))}return Za.a.array(o,n).reverse()}function Ja(e,t){var n=1/0;return e.some((function(e,o){if(-1!==t.path.indexOf(e))return n=o,!0})),n}function Qa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o\n ').concat(e.listPoints(n,o).join(""),"\n \n ")}}function dr(e){this.mode=hr.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t65536?(o[0]=240|(1835008&a)>>>18,o[1]=128|(258048&a)>>>12,o[2]=128|(4032&a)>>>6,o[3]=128|63&a):a>2048?(o[0]=224|(61440&a)>>>12,o[1]=128|(4032&a)>>>6,o[2]=128|63&a):a>128?(o[0]=192|(1984&a)>>>6,o[1]=128|63&a):o[0]=a,this.parsedData.push(o)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function pr(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.position=[],this.dataCache=null,this.dataList=[]}na(ar,Yo,{_typeCheck:function(e){return or(e)||"function"==typeof e},_cast:function(e,t){var n=this;void 0===t&&(t={});var a=Yo.prototype._cast.call(this,e,t);if(void 0===a)return this.default();if(!this._typeCheck(a))return a;var r=this.fields,l=!0===this._option("stripUnknown",t),i=this._nodes.concat(Object.keys(a).filter((function(e){return-1===n._nodes.indexOf(e)}))),c={},s=o({},t,{parent:c,__validating:t.__validating||!1}),u=!1;return i.forEach((function(e){var n=r[e],o=$e(a,e);if(n){var i,f=n._options&&n._options.strict;if(s.path=Qa(nr(),t.path,e),s.value=a[e],!0===(n=n.resolve(s))._strip)return void(u=u||e in a);void 0!==(i=t.__validating&&f?a[e]:n.cast(a[e],s))&&(c[e]=i)}else o&&!l&&(c[e]=a[e]);c[e]!==a[e]&&(u=!0)})),u?c:a},_validate:function(e,t){var n,a,r=this;void 0===t&&(t={});var l=t.sync,i=[],c=null!=t.originalValue?t.originalValue:e,s=[{schema:this,value:c}].concat(t.from||[]);return n=this._option("abortEarly",t),a=this._option("recursive",t),t=o({},t,{__validating:!0,originalValue:c,from:s}),Yo.prototype._validate.call(this,e,t).catch(eo(n,i)).then((function(e){if(!a||!or(e)){if(i.length)throw i[0];return e}s=c?[].concat(s):[{schema:r,value:c||e}].concat(t.from||[]),c=c||e;var u,f,d=r._nodes.map((function(n){var a,i=-1===n.indexOf(".")?Qa(tr(),t.path,n):Qa(er(),t.path,n),u=r.fields[n],f=o({},t,{path:i,from:s,parent:e,originalValue:c[n]});return u&&u.validate?(f.strict=!0,u.validate(e[n],f)):(a=l,a?qn.SynchronousPromise:Promise).resolve(!0)}));return no({sync:l,validations:d,value:e,errors:i,endEarly:n,path:t.path,sort:(u=r.fields,f=Object.keys(u),function(e,t){return Ja(f,e)-Ja(f,t)})})}))},concat:function(e){var t=Yo.prototype.concat.call(this,e);return t._nodes=Ka(t.fields,t._excludedEdges),t},shape:function(e,t){void 0===t&&(t=[]);var n=this.clone(),a=o(n.fields,e);if(n.fields=a,t.length){Array.isArray(t[0])||(t=[t]);var r=t.map((function(e){return e[0]+"-"+e[1]}));n._excludedEdges=n._excludedEdges.concat(r)}return n._nodes=Ka(a,n._excludedEdges),n},from:function(e,t,n){var a=Object(Vo.getter)(e,!0);return this.transform((function(r){if(null==r)return r;var l=r;return $e(r,e)&&(l=o({},r),n||delete l[e],l[t]=a(r)),l}))},noUnknown:function(e,t){void 0===e&&(e=!0),void 0===t&&(t=Gn.noUnknown),"string"==typeof e&&(t=e,e=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:t,test:function(t){if(null==t)return!0;var n,o,a,r=(n=this.schema,o=t,a=Object.keys(n.fields),Object.keys(o).filter((function(e){return-1===a.indexOf(e)})));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n._options.stripUnknown=e,n},unknown:function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=Gn.noUnknown),this.noUnknown(!e,t)},transformKeys:function(e){return this.transform((function(t){return t&&Wa(t,(function(t,n){return e(n)}))}))},camelCase:function(){return this.transformKeys(Ya)},snakeCase:function(){return this.transformKeys(Ua)},constantCase:function(){return this.transformKeys((function(e){return Ua(e).toUpperCase()}))},describe:function(){var e=Yo.prototype.describe.call(this);return e.fields=Bo(this.fields,(function(e){return e.describe()})),e}}),na(ir,Yo,{_typeCheck:function(e){return Array.isArray(e)},_cast:function(e,t){var n=this,a=Yo.prototype._cast.call(this,e,t);if(!this._typeCheck(a)||!this.innerType)return a;var r=!1,l=a.map((function(e,a){var l=n.innerType.cast(e,o({},t,{path:Qa(lr(),t.path,a)}));return l!==e&&(r=!0),l}));return r?l:a},_validate:function(e,t){var n=this;void 0===t&&(t={});var a=[],r=t.sync,l=t.path,i=this.innerType,c=this._option("abortEarly",t),s=this._option("recursive",t),u=null!=t.originalValue?t.originalValue:e;return Yo.prototype._validate.call(this,e,t).catch(eo(c,a)).then((function(e){if(!s||!i||!n._typeCheck(e)){if(a.length)throw a[0];return e}u=u||e;var f=e.map((function(n,a){var r=Qa(rr(),t.path,a),l=o({},t,{path:r,strict:!0,parent:e,index:a,originalValue:u[a]});return!i.validate||i.validate(n,l)}));return no({sync:r,path:l,value:e,errors:a,endEarly:c,validations:f})}))},_isPresent:function(e){return Yo.prototype._isPresent.call(this,e)&&e.length>0},of:function(e){var t=this.clone();if(!1!==e&&!Xn(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+Rn(e));return t._subType=e,t.innerType=e,t},min:function(e,t){return t=t||Hn.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return aa(t)||t.length>=this.resolve(e)}})},max:function(e,t){return t=t||Hn.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test:function(t){return aa(t)||t.length<=this.resolve(e)}})},ensure:function(){var e=this;return this.default((function(){return[]})).transform((function(t,n){return e._typeCheck(t)?t:null==n?[]:[].concat(n)}))},compact:function(e){var t=e?function(t,n,o){return!e(t,n,o)}:function(e){return!!e};return this.transform((function(e){return null!=e?e.filter(t):e}))},describe:function(){var e=Yo.prototype.describe.call(this);return this.innerType&&(e.innerType=this.innerType.describe()),e}}),dr.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=pr.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var o=-1;o<=7;o++)t+o<=-1||this.moduleCount<=t+o||(this.modules[e+n][t+o]=0<=n&&n<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=o&&o<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var o=Or.getLostPoint(this);(0==n||e>o)&&(e=o,t=n)}return t},createMovieClip:function(e,t,n){var o=e.createEmptyMovieClip(t,n);this.make();for(var a=0;a>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=o}for(var a=0;a<18;a++){var r=!e&&1==(t>>a&1);this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,o=Or.getBCHTypeInfo(n),a=0;a<15;a++){var r=!e&&1==(o>>a&1);a<6?this.modules[a][8]=r:a<8?this.modules[a+1][8]=r:this.modules[this.moduleCount-15+a][8]=r}for(var l=0;l<15;l++){var i=!e&&1==(o>>l&1);l<8?this.modules[8][this.moduleCount-l-1]=i:l<9?this.modules[8][15-l-1+1]=i:this.modules[8][15-l-1]=i}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,o=this.moduleCount-1,a=7,r=0,l=this.moduleCount-1;l>0;l-=2)for(6==l&&l--;;){for(var i=0;i<2;i++)if(null==this.modules[o][l-i]){var c=!1;r>>a&1)),Or.getMask(t,o,l-i)&&(c=!c),this.modules[o][l-i]=c,-1==--a&&(r++,a=7)}if((o+=n)<0||this.moduleCount<=o){o-=n,n=-n;break}}}},pr.PAD0=236,pr.PAD1=17,pr.createData=function(e,t,n){for(var o=jr.getRSBlocks(e,t),a=new Pr,r=0;r8*i)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*i+")");for(a.getLengthInBits()+4<=8*i&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*i||(a.put(pr.PAD0,8),a.getLengthInBits()>=8*i));)a.put(pr.PAD1,8);return pr.createBytes(a,o)},pr.createBytes=function(e,t){for(var n=0,o=0,a=0,r=new Array(t.length),l=new Array(t.length),i=0;i=0?d.get(h):0}}for(var v=0,m=0;m=0;)t^=Or.G15<=0;)t^=Or.G18<>>=1;return t},getPatternPosition:function(e){return Or.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case br:return(t+n)%2==0;case _r:return t%2==0;case wr:return n%3==0;case xr:return(t+n)%3==0;case kr:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case Er:return t*n%2+t*n%3==0;case Cr:return(t*n%2+t*n%3)%2==0;case Sr:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Dr([1],0),n=0;n5&&(n+=3+r-5)}for(var s=0;s=256;)e-=255;return Ar.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Lr=0;Lr<8;Lr++)Ar.EXP_TABLE[Lr]=1<>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Vr=0,Rr=1,$r=2,Nr=3,Ur=4,zr=5,Gr=6,Hr=7;function Xr(e){if(!e.text||e.text.length<=0)return null;var t=new pr((e=Ir(Ir({},{render:"canvas",width:"100%",height:"100%",typeNumber:-1,correctLevel:1,background:"#ffffff",foreground:"#000000",isSpace:!0}),e)).typeNumber,e.correctLevel);return t.addData(e.text),t.make(),t.$options=e,t}function Yr(e){for(var t=e.getModuleCount(),n=e.getPositionTable(),o=[[3,3],[3,t-4],[t-4,3]],a=new Array(t),r=0;r=0&&o[u][0]+f=0&&o[u][1]+d')):1===r?a.push('')):2===r&&a.push(''));else if(o[h][v]===Rr)if(0===c)a.push(''));else if(1===c)a.push('')),a.push(''));else if(2===c){a.push('')),a.push(''));for(var m=0;m'));for(var g=0;g'))}else 3===c&&(a.push('')),a.push('')));else o[h][v]===$r?0===c&&a.push('')):0===r?a.push('')):1===r?a.push('')):2===r&&a.push(''));return a}function Zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return t=Kr(Kr({},{type:0,size:100,opacity:100,posType:0}),t),el(e,t)},nl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Kr(Kr({},{type:1,size:50,opacity:30,posType:1}),t),el(e,t)},ol=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Kr(Kr({},{type:2,size:80,opacity:100,posType:2}),t),el(e,t)};function al(e,t){if(!e)return[];var n=e.getModuleCount(),o=Yr(e),a=[],r=[],l=[],i=t[0]/100,c=t[1]/100,s=t[2]/100,u=t[3],f=0;i<=0&&(i=70),c<=0&&(c=70);for(var d=[],p=[],h=0;h')):1===u&&(a.push('')),a.push('')),a.push('')),a.push('')),a.push('')));else if(o[g][m]===$r)0===u&&a.push(''));else{if(d[g][m]&&p[g][m]&&g')),r.push('')),d[g][m]=!1,d[g+2][m]=!1,d[g][m+2]=!1,d[g+2][m+2]=!1,d[g+1][m+1]=!1;for(var w=0;w<3;w++)for(var x=0;x<3;x++)p[g+w][m+x]=!1}}if(d[g][m]&&p[g][m]&&g')),r.push(''));for(var S=0;S<2;S++)for(var O=0;O<2;O++)d[g+S][m+O]=!1,p[g+S][m+O]=!1}}if(d[g][m]&&p[g][m]&&(0===m||m>0&&(!e.isDark(g,m-1)||!p[g][m-1]))){for(var A=m,L=m,T=!0;T&&L2){for(var F=A;F')),l.push(''))}}if(d[g][m]&&p[g][m]&&(0===g||g>0&&(!e.isDark(g-1,m)||!p[g-1][m]))){for(var D=g,j=g,P=!0;P&&j1){for(var M=D;M'))}}d[g][m]&&a.push(''))}for(var I=0;I')),o.push(''))}}return o}var cl=function(e){return fr({listPoints:il})({qrcode:e})};function sl(e,t){if(!e)return[];var n=e.getModuleCount(),o=Yr(e),a=new Array(n),r=1.001,l=t[0],i=t[1],c=t[2],s=t[3],u=t[4],f=0,d=[-Math.sqrt(3)/2,.5],p=[Math.sqrt(3)/2,.5],h=[0,0],v="matrix("+String(d[0])+", "+String(d[1])+", "+String(p[0])+", "+String(p[1])+", "+String(h[0])+", "+String(h[1])+")";l<=0&&(l=1),i<=0&&(i=1);for(var m=0;m')),a.push('')),a.push(''))):(a.push('')),a.push('')),a.push(''))));return a}function ul(e){if(!e)return"0 0 0 0";var t=e.getModuleCount();return e.$options.isSpace?"".concat(-t," ").concat(-t/2," ").concat(2*t," ").concat(2*t):"".concat(3-t," ").concat(-t/2," ").concat(2*t-6," ").concat(2*t-6)}var fl=ar().shape({height:sa().default(.5),height2:sa().default(.5),upColor:ca().default("#FF7F89"),leftColor:ca().default("#FFD7D9"),rightColor:ca().default("#FFEBF3")}),dl=function(e,t){try{t=fl.validateSync(t)}catch(o){return""}var n=["height","height2","upColor","leftColor","rightColor"].map((function(e){return t[e]}));return fr({listPoints:sl,getViewBox:ul})({qrcode:e,params:n})};function pl(e,t){if(!e)return[];var n=e.getModuleCount(),o=Yr(e),a=new Array(n),r=t[1],l=t[2]/100/3,i=t[3]/100,c=t[4],s=t[5],u=t[6],f=t[7],d=0,p=[3,-3],h=[3,-3];l<=0&&(l=1),a.push(''));for(var v=0;v')):1===r&&a.push('')):0===r?a.push('')):1===r&&a.push(''));else if(o[v][m]===Rr){if(e.isDark(v,m))if(0===u)a.push(''));else if(1===u)a.push('')),a.push('')),a.push(''));else if(2===u){a.push('')),a.push('')),a.push(''));for(var g=0;g'));for(var y=0;y'))}}else o[v][m]===$r?e.isDark(v,m)?0===u&&a.push('')):0===u&&a.push('')):e.isDark(v,m)?0===r?a.push('')):1===r&&a.push('')):0===r?a.push('')):1===r&&a.push(''));return a}var hl=ar().shape({backgroudImage:ca(),type:Yo().oneOf([0,1]).default(0),size:sa().default(100),opacity:sa().default(100),otherColorDark:ca().default("#000000"),otherColorLight:ca().default("#FFFFFF"),posType:Yo().oneOf([0,1,2]).default(0),posColor:ca().default("#000000")}),vl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=hl.validateSync(t)}catch(o){return""}var n=["backgroudImage","type","size","opacity","otherColorDark","otherColorLight","posType","posColor"].map((function(e){return t[e]}));return fr({listPoints:pl})({qrcode:e,params:n})},ml=function(e){var t=e.qrcode,n=e.params,o=n[5],a=t.$options,r=a.width,l=a.height;return new Promise((function(e,a){(function(e,t,n){var o=document.createElement("canvas"),a=o.getContext("2d"),r=document.createElement("img"),l=[];o.style.imageRendering="pixelated",t*=3,r.src=e[0];var i=e[1]/100,c=e[2]/100;return new Promise((function(e){r.onload=function(){o.width=t,o.height=t,a.imageSmoothingEnabled=!1,a.drawImage(r,0,0,t,t);for(var s=0;s(d/255+c-.5)*(i+1)+.5&&(s%3!=1||u%3!=1)&&l.push(''))}var p,h,v;e(l)}}))})(n,t.getModuleCount(),"#S-black").then((function(a){var i='\n \n \n \n \n \n \n \n \n ').concat(a.concat(function(e,t){if(!e)return[];for(var n=e.getModuleCount(),o=Yr(e),a=new Array(n),r=t[3],l=t[4],i=t[6],c=0,s=0;s')):a.push('')):0===r?a.push('")):a.push('')):o[s][u]===zr?e.isDark(s,u)?2===l?a.push('')):a.push('')):0===l?a.push('')):a.push('')):o[s][u]===Rr?e.isDark(s,u)&&a.push('')):o[s][u]===$r?e.isDark(s,u)?a.push('')):a.push('')):e.isDark(s,u)&&a.push(''))}return a}(t,n)).join(""),"\n ");e(i)})).catch((function(t){e(t)}))}))},gl=ar().shape({backgroudImage:ca().default(),contrast:sa().default(0),exposure:sa().default(0),alignType:Yo().oneOf([0,1,2]).default(0),timingType:Yo().oneOf([0,1,2]).default(0),otherColor:ca().default("#000000"),posColor:ca().default("#000000")}),yl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=gl.validateSync(t)}catch(o){return""}var n=["backgroudImage","contrast","exposure","alignType","timingType","otherColor","posColor"].map((function(e){return t[e]}));return ml({qrcode:e,params:n})};function bl(e,t){if(!e)return[];for(var n=e.getModuleCount(),o=Yr(e),a=[],r=[],l=[],i=0,c=t[0],s=t[1],u=[],f=[],d=0;d')),a.push(''));else if(e.isDark(v,h)&&o[v][h]===$r);else{if(u[v][h]&&f[v][h]&&v')),e.isDark(v+1,h+1)&&r.push('')),u[v+1][h]=!1,u[v][h+1]=!1,u[v+2][h+1]=!1,u[v+1][h+2]=!1;for(var b=0;b<3;b++)for(var _=0;_<3;_++)f[v+b][h+_]=!1}}if(v'));for(var w=0;w<2;w++)for(var x=0;x<2;x++)u[v+w][h+x]=!1,f[v+w][h+x]=!1}u[v][h]&&h')),u[v][h]=!1,u[v][h+1]=!1),u[v][h]&&v')),u[v][h]=!1,u[v+1][h]=!1),u[v][h]&&(e.isDark(v,h)?a.push('')):o[v][h]===Vr&&Wr(0,1)>.85&&l.push('')))}for(var k=0;k'));for(var h=0;h'));else if(1===i)a.push('')),a.push(''));else if(2===i){a.push('')),a.push(''));for(var m=0;m'));for(var g=0;g'))}else 3===i&&(a.push('')),a.push('')));else if(e.isDark(h,v)&&o[h][v]===$r)0===i&&a.push(''));else{var y=Math.sqrt(Math.pow((n-1)/2-h,2)+Math.pow((n-1)/2-v,2))/(n/2*Math.sqrt(2));if(0===l){var b=(1-Math.cos(Math.PI*y))/6+.2,_=s,w=Number(e.isDark(h,v));0===r?(b+=.2,a.push(''))):1===r&&a.push(''))}if(1===l){var x=0,k=s,E=Number(e.isDark(h,v));y>.25&&y<.4?(x=.5,k=u,E=1):(x=1/4,0===r&&(x=.15)),0===r?(x=2*x+.1,e.isDark(h,v)?a.push('')):(x-=.1,a.push('')))):1===r&&(e.isDark(h,v)?a.push('')):a.push('')))}}return a}var kl=ar().shape({type:Yo().oneOf([0,1]).default(1),size:Yo().oneOf([0,1]).default(0),opacity:sa().default(100),posType:Yo().oneOf([0,1,2,3]).default(1),otherColor:ca().default("#000000"),otherColor2:ca().default("#000000"),posColor:ca().default("#000000")}),El=ar().shape({type:Yo().oneOf([0,1]).default(1),size:Yo().oneOf([0,1]).default(1),opacity:sa().default(100),posType:Yo().oneOf([0,1,2,3]).default(1),otherColor:ca().default("#ABB8C3"),otherColor2:ca().default("#000000"),posColor:ca().default("#000000")}),Cl=function(e,t){try{t=kl.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map((function(e){return t[e]}));return fr({listPoints:xl})({qrcode:e,params:n})},Sl=function(e,t){try{t=El.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","otherColor2","posColor"].map((function(e){return t[e]}));return fr({listPoints:xl})({qrcode:e,params:n})};function Ol(e,t){if(!e)return[];var n=e.getModuleCount(),o=Yr(e),a=new Array(n),r=t[0],l=t[1]/100,i=t[2]/100,c=t[3],s=0,u=t[4],f=t[5],d=[3,-3],p=[3,-3];l<=0&&(l=1);for(var h=[],v=[],m=0;m'));else if(1===c)a.push('')),a.push(''));else if(2===c){a.push('')),a.push(''));for(var _=0;_'));for(var w=0;w'))}else 3===c&&(a.push('')),a.push('')));else if(o[y][b]===$r)0===c&&a.push(''));else{if(0===r){if(0===y||y>0&&(!e.isDark(y-1,b)||!v[y-1][b])){for(var x=0,k=!0;k&&y+x1){for(var E=0;E'))}}h[y][b]&&a.push(''))}if(1===r){if(0===b||b>0&&(!e.isDark(y,b-1)||!v[y][b-1])){for(var C=0,S=!0;S&&b+C1){for(var O=0;O'))}}h[y][b]&&a.push(''))}if(2===r){if(0===b||b>0&&(!e.isDark(y,b-1)||!v[y][b-1])){for(var A=0,L=!0;L&&b+A1){for(var T=0;T'))}}if(0===y||y>0&&(!e.isDark(y-1,b)||!v[y-1][b])){for(var F=0,D=!0;D&&y+F1){for(var j=0;j'))}}h[y][b]&&a.push(''))}if(3===r){if(y>b^y+b0&&(!e.isDark(y,b-1)||!v[y][b-1])){for(var P=0,M=!0;M&&b+P1){for(var I=0;I'))}}}else if(0===y||y>0&&(!e.isDark(y-1,b)||!v[y-1][b])){for(var B=0,V=!0;V&&y+B1){for(var R=0;R'))}}h[y][b]&&a.push(''))}if(4===r){if(0===b||0===y||b>0&&y>0&&(!e.isDark(y-1,b-1)||!v[y-1][b-1])){for(var $=0,N=!0;N&&b+$1){for(var U=0;U<$;U++)v[y+U][b+U]=!1,h[y+U][b+U]=!1;a.push(''))}}h[y][b]&&a.push(''))}if(5===r){if(0===y||b===n-1||y>0&&b=0;)e.isDark(y+z,b-z)&&h[y+z][b-z]?z++:G=!1;if(z-0>1){for(var H=0;H'))}}h[y][b]&&a.push(''))}if(6===r){if(0===y||b===n-1||y>0&&b=0;)e.isDark(y+X,b-X)&&v[y+X][b-X]?X++:Y=!1;if(X-0>1){for(var W=0;W'))}}if(0===b||0===y||b>0&&y>0&&(!e.isDark(y-1,b-1)||!h[y-1][b-1])){for(var q=0,Z=!0;Z&&b+q1){for(var K=0;K'))}}a.push(''))}}return a}var Al=ar().shape({type:Yo().oneOf([0,1,2,3,4,5,6]).default(2),size:sa().default(50),opacity:sa().default(100),posType:Yo().oneOf([0,1,2,3]).default(3),otherColor:ca().default("#000000"),posColor:ca().default("#000000")}),Ll=ar().shape({type:Yo().oneOf([0,1,2,3,4,5,6]).default(6),size:sa().default(50),opacity:sa().default(100),posType:Yo().oneOf([0,1,2,3]).default(0),otherColor:ca().default("#000000"),posColor:ca().default("#000000")}),Tl=function(e,t){try{t=Al.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","posColor"].map((function(e){return t[e]}));return fr({listPoints:Ol})({qrcode:e,params:n})},Fl=function(e,t){try{t=Ll.validateSync(t)}catch(o){return""}var n=["type","size","opacity","posType","otherColor","posColor"].map((function(e){return t[e]}));return fr({listPoints:Ol})({qrcode:e,params:n})};t.default={rendererRect:tl,rendererRound:nl,rendererRandRound:ol,rendererDSJ:ll,rendererResImage:yl,rendererImage:vl,renderer25D:dl,rendererRandRect:cl,rendererCircle:wl,rendererFuncA:Cl,rendererFuncB:Sl,rendererLine:Tl,rendererLine2:Fl,encodeData:Xr}}]).default;const Nn=[{path:"M 0 0 L 20 20",style:"solid",points:["",""],data:[{x:0,y:0},{x:200,y:0}]}],Un=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"],data:[{x:0,y:0},{x:200,y:0}]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0,data:[{x:0,y:0},{x:0,y:100},{x:200,y:100}]},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0,data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0,data:[{x:0,y:0},{x:200,y:0}]}]}];var zn={},Gn={},Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.default=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.text=n.text||t,this.options=n},Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.CODE39=void 0;var Xn,Yn=function(){function e(e,t){for(var n=0;n=200){r=t.shift()-105;var l=vo.SWAP[r];void 0!==l?a=e.next(t,n+1,l):(o!==vo.SET_A&&o!==vo.SET_B||r!==vo.SHIFT||(t[0]=o===vo.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),a=e.next(t,n+1,o))}else r=e.correctIndex(t,o),a=e.next(t,n+1,o);var i=r*n;return{result:e.getBar(r)+a.result,checksum:i+a.checksum}}}]),e}();oo.default=mo;var go={};Object.defineProperty(go,"__esModule",{value:!0});var yo=ao,bo=function(e){return e.match(new RegExp("^"+yo.A_CHARS+"*"))[0].length},_o=function(e){return e.match(new RegExp("^"+yo.B_CHARS+"*"))[0].length},wo=function(e){return e.match(new RegExp("^"+yo.C_CHARS+"*"))[0]};function xo(e,t){var n=t?yo.A_CHARS:yo.B_CHARS,o=e.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+ko(e.substring(o[1].length));var a=e.match(new RegExp("^"+n+"+"))[0];return a.length===e.length?e:a+String.fromCharCode(t?205:206)+xo(e.substring(a.length),!t)}function ko(e){var t=wo(e),n=t.length;if(n===e.length)return e;e=e.substring(n);var o=bo(e)>=_o(e);return t+String.fromCharCode(o?206:205)+xo(e,o)}go.default=function(e){var t=void 0;if(wo(e).length>=2)t=yo.C_START_CHAR+ko(e);else{var n=bo(e)>_o(e);t=(n?yo.A_START_CHAR:yo.B_START_CHAR)+xo(e,n)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(e,t){return String.fromCharCode(203)+t}))},Object.defineProperty(no,"__esModule",{value:!0});var Eo=So(oo),Co=So(go);function So(e){return e&&e.__esModule?e:{default:e}}function Oo(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ao=function(){function e(t,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var o=Oo(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,Co.default)(t),n));else o=Oo(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return Oo(o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,Eo.default),e}();no.default=Ao;var Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});var To=function(){function e(e,t){for(var n=0;n10*n.width?10*n.width:n.fontSize,o.guardHeight=n.height+o.fontSize/2+n.textMargin,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,aa.default),ta(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,t){return this.text.substr(e,t)}},{key:"leftEncode",value:function(e,t){return(0,oa.default)(e,t)}},{key:"rightText",value:function(e,t){return this.text.substr(e,t)}},{key:"rightEncode",value:function(e,t){return(0,oa.default)(e,t)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:na.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:na.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:na.SIDE_BIN,options:t}]}},{key:"encodeFlat",value:function(){return{data:[na.SIDE_BIN,this.leftEncode(),na.MIDDLE_BIN,this.rightEncode(),na.SIDE_BIN].join(""),text:this.text}}}]),e}();Jo.default=la,Object.defineProperty(Zo,"__esModule",{value:!0});var ia=function(){function e(e,t){for(var n=0;n10*n.width?o.fontSize=10*n.width:o.fontSize=n.fontSize,o.guardHeight=n.height+o.fontSize/2+n.textMargin,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,Ia.default),Pa(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==Ra(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,Ma.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,Ma.default)(this.data.substr(6,6),"RRRRRR"),{data:e+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,Ma.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,Ma.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,Ma.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,Ma.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),e}();function Ra(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}ja.default=Va;var $a={};Object.defineProperty($a,"__esModule",{value:!0});var Na=function(){function e(e,t){for(var n=0;n10*n.width?o.fontSize=10*n.width:o.fontSize=n.fontSize,o.guardHeight=n.height+o.fontSize/2+n.textMargin,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,za.default),Na(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),{data:e+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],n=Wa[parseInt(t)][parseInt(e)];return(0,Ua.default)(this.middleDigits,n)}}]),e}();function Za(e,t){for(var n=parseInt(e[e.length-1]),o=Ya[n],a="",r=0,l=0;l=3&&this.number<=131070}}]),e}();Wr.pharmacode=Kr;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.codabar=void 0;var Qr=function(){function e(e,t){for(var n=0;n0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function Tl(e,t,n){if(n.displayValue&&tt&&(t=e[n].height);return t},Ol.getEncodingHeight=Ll,Ol.getBarcodePadding=Tl,Ol.calculateEncodingAttributes=function(e,t,n){for(var o=0;o0?(n=0,a.textAlign="left"):"right"==e.textAlign?(n=t.width-1,a.textAlign="right"):(n=t.width/2,a.textAlign="center"),a.fillText(t.text,n,o))}},{key:"moveCanvasDrawing",value:function(e){this.canvas.getContext("2d").translate(e.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),e}();Sl.default=Ml;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});var Bl=function(){function e(e,t){for(var n=0;n0&&(this.drawRect(l-t.width*r,o,t.width*r,t.height,e),r=0);r>0&&this.drawRect(l-t.width*(r-1),o,t.width*r,t.height,e)}},{key:"drawSVGText",value:function(e,t,n){var o,a,r=this.document.createElementNS($l,"text");t.displayValue&&(r.setAttribute("style","font:"+t.fontOptions+" "+t.fontSize+"px "+t.font),a="top"==t.textPosition?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,"left"==t.textAlign||n.barcodePadding>0?(o=0,r.setAttribute("text-anchor","start")):"right"==t.textAlign?(o=n.width-1,r.setAttribute("text-anchor","end")):(o=n.width/2,r.setAttribute("text-anchor","middle")),r.setAttribute("x",o),r.setAttribute("y",a),r.appendChild(this.document.createTextNode(n.text)),e.appendChild(r))}},{key:"setSvgAttributes",value:function(e,t){var n=this.svg;n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+e+" "+t),n.setAttribute("xmlns",$l),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(e,t,n){var o=this.document.createElementNS($l,"g");return o.setAttribute("transform","translate("+e+", "+t+")"),n.appendChild(o),o}},{key:"setGroupOptions",value:function(e,t){e.setAttribute("style","fill:"+t.lineColor+";")}},{key:"drawRect",value:function(e,t,n,o,a){var r=this.document.createElementNS($l,"rect");return r.setAttribute("x",e),r.setAttribute("y",t),r.setAttribute("width",n),r.setAttribute("height",o),a.appendChild(r),r}}]),e}();Il.default=Nl;var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});var zl=function(){function e(e,t){for(var n=0;n{const e={format:"pharmacode",lineColor:"#0aa",width:4,height:40,displayValue:!1};Ai("#barcode","1234",e);const t=document.getElementById("barcode");if(!t)return;const n=(new XMLSerializer).serializeToString(t),o="data:image/svg+xml;base64,"+btoa(n);a(o,"1234",e)},O=e=>{const t="data:image/svg+xml;base64,"+btoa(_[e](((e=118,t=118)=>{const n={text:h.value,width:e,height:t,correctLevel:m.value,isSpace:v.value};return $n.encodeData(n)})(118,118))),n={codeStyle:e,codeSpace:v.value,codeError:m.value};o(t,n,h.value)},A=()=>{b.value=!0},L=()=>{b.value=!1},V=e=>f(this,null,(function*(){const[o]=g(),a=e.file.name.split(".").pop();if(!k.value.split(",").includes(`.${a}`))return;if("svg"===a){const t=yield j(e.file),n=yield on(t);o.add(...n.objects),o.renderAll()}if("json"===a){const n=yield j(e.file),o=JSON.parse(n);t(o)}if(["jpg","jpeg","png","webp"].includes(a)){const t=yield P(e.file);r(t)}if(["mp4"].includes(a)){const t=URL.createObjectURL(e.file);d(t)}const l=yield M(e.file,a);if(E.value=!1,l&&200===l.data.code){const e=l.data.data;if(!e)return;yield t(e),n()}})),R=e=>{y.value.clearFiles();const t=e[0];t.uid=xt(),y.value.handleStart(t)},$=(e,t="transverse",n=!1)=>{l(e,t,n)},N=()=>{s(36)},U=()=>{p()};return(e,t)=>{const n=ze("IconUpload"),o=kt,a=Et,r=Ct,l=ze("IconH1"),s=ze("IconH3"),f=ze("IconTextRotationNone"),d=ze("IconTextRotationDown"),p=ze("IconText"),h=I,v=ze("IconInsertTable"),m=ze("IconPayCodeTwo"),g=ze("IconTwoDimensionalCodeTwo"),_=ze("IconMagicWand"),w=B,x=St;return Ge(),He("div",Li,[Xe("div",Ti,[Xe("div",Fi,Ze(e.$t("message.files")),1),Ye(r,{gutter:10,class:"mt-10"},{default:We((()=>[Ye(a,{span:8},{default:We((()=>[Qe((Ge(),ot(o,{ref_key:"uploadRef",ref:y,"on-exceed":R,action:"http","http-request":V,limit:1,accept:k.value,class:"edit-upload"},{default:We((()=>[Xe("div",Di,[Ye(n,{class:"icon-font"}),Xe("div",ji,Ze(e.$t("message.uploadFiles")),1)])])),_:1},8,["accept"])),[[x,E.value]])])),_:1})])),_:1})]),Xe("div",Pi,[Xe("div",Mi,Ze(e.$t("message.text")),1),Ye(r,{gutter:10,class:"mt-10"},{default:We((()=>[Ye(a,{span:8},{default:We((()=>[Xe("div",{class:"item-box",onClick:t[0]||(t[0]=e=>$(80))},[Ye(l,{class:"icon-font"}),Xe("div",Ii,Ze(e.$t("message.title")),1)])])),_:1}),Ye(a,{span:8,onClick:t[1]||(t[1]=e=>$(60))},{default:We((()=>[Xe("div",Bi,[Ye(s,{class:"icon-font"}),Xe("div",Vi,Ze(e.$t("message.subtitle")),1)])])),_:1}),Ye(a,{span:8,onClick:t[2]||(t[2]=e=>$(36))},{default:We((()=>[Xe("div",Ri,[Ye(f,{class:"icon-font"}),Xe("div",$i,Ze(e.$t("message.horizontalText")),1)])])),_:1}),Ye(a,{span:8,onClick:t[3]||(t[3]=e=>{u(36)})},{default:We((()=>[Xe("div",Ni,[Ye(d,{class:"icon-font"}),Xe("div",Ui,Ze(e.$t("message.verticalText")),1)])])),_:1}),Ye(a,{span:8,onClick:t[4]||(t[4]=e=>$(36,void 0,!0))},{default:We((()=>[Xe("div",zi,[Ye(p,{class:"icon-font"}),Xe("div",Gi,Ze(e.$t("message.hollowOutText")),1)])])),_:1}),Ye(a,{span:8,onClick:N},{default:We((()=>[Xe("div",Hi,[t[6]||(t[6]=Xe("i",{class:"icon-font iconfont icon-text-path"},null,-1)),Xe("div",Xi,Ze(e.$t("message.circularText")),1)])])),_:1})])),_:1})]),Xe("div",Yi,[Xe("div",Wi,Ze(e.$t("message.shape")),1),Ye(r,{gutter:10,class:"mt-10"},{default:We((()=>[(Ge(),He(tt,null,nt(C,((e,t)=>Ye(a,{span:8,key:t,onClick:t=>(e=>{i(e.path)})(e)},{default:We((()=>[Xe("div",qi,[(Ge(),He("svg",Zi,[Xe("g",{transform:`scale(${20/e.viewBox[0]}, ${20/e.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Xe("path",{class:Je(["shape-path",{outlined:e.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:e.outlined?"#999":"transparent",stroke:e.outlined?"transparent":"#999","stroke-width":"2",d:e.path},null,10,Ji)],8,Ki)]))])])),_:2},1032,["onClick"]))),64)),(Ge(!0),He(tt,null,nt(Ke(Nn),((e,t)=>(Ge(),ot(a,{span:8,key:t,onClick:t=>(e=>{const t="dashed"===e.style?[6,6]:void 0;c(e.data,e.points[0],e.points[1],t)})(e)},{default:We((()=>[Xe("div",Qi,[(Ge(),He("svg",ec,[Xe("defs",null,[e.points[0]?(Ge(),ot(h,{key:0,class:"line-marker",id:`preset-line-${t}`,position:"start",type:e.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0),e.points[1]?(Ge(),ot(h,{key:1,class:"line-marker",id:`preset-line-${t}`,position:"end",type:e.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0)]),Xe("path",{class:"line-path",d:e.path,stroke:"#999",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===e.style?"0, 0":"4, 1","marker-start":e.points[0]?`url(#preset-line-${t}-${e.points[0]}-start)`:"","marker-end":e.points[1]?`url(#preset-line-${t}-${e.points[1]}-end)`:""},null,8,tc)]))])])),_:2},1032,["onClick"])))),128))])),_:1})]),Xe("div",nc,[Xe("div",oc,Ze(e.$t("message.module")),1),Ye(r,{gutter:10,class:"mt-10"},{default:We((()=>[Ye(a,{span:8},{default:We((()=>[Xe("div",{class:"item-box",onClick:U},[Ye(v,{class:"icon-font"}),Xe("div",ac,Ze(e.$t("message.fabricTable")),1)])])),_:1}),Ye(a,{span:8},{default:We((()=>[Xe("div",{class:"item-box",onClick:S},[Ye(m,{class:"icon-font"}),Xe("div",rc,Ze(e.$t("message.barCode")),1)])])),_:1}),Ye(a,{span:8},{default:We((()=>[Xe("div",{class:"item-box",onClick:t[5]||(t[5]=e=>O("A1"))},[Ye(g,{class:"icon-font"}),Xe("div",lc,Ze(e.$t("message.QRCode")),1)])])),_:1}),Ye(a,{span:8},{default:We((()=>[Xe("div",{class:"item-box",onClick:A},[Ye(_,{class:"icon-font"}),Xe("div",ic,Ze(e.$t("message.AICutoutImage")),1)])])),_:1})])),_:1})]),Ye(w,{visible:b.value,onClose:L},null,8,["visible"])])}}}),[["__scopeId","data-v-a3b8d899"]]),sc=["src","onClick"],uc=O($e({__name:"TemplatePool",setup(e){const t=A(),n=p(),o=Ne([]),a=Ne("data"),r=Ne("buy"),l=Ne(1),i=Ne(1),c=Ne(),s=bn((()=>f(this,null,(function*(){const e=c.value;e.scrollHeight-(e.scrollTop+e.clientHeight)<=200&&l.valuef(this,null,(function*(){const e={page:l.value,size:V},t=yield gn(e);t.data&&200===t.data.code&&(l.value=t.data.data.page,i.value=t.data.data.total_pages,o.value=o.value.concat(t.data.data.items))})),d=e=>{At.confirm("是否确认更换模板?",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then((()=>f(this,null,(function*(){t.push(`${t.currentRoute.value.path}?template=${e.id}`);const o=R(e.data),a=Lt.service({fullscreen:!0,background:"rgba(122, 122, 122, 0.5)"});yield n.changeTemplate(o),lt((()=>a.close())),Tt({type:"success",message:"更换模板成功"})})))).catch((()=>{Tt({type:"error",message:"模板加载失败,请联系管理员修改bug了"})}))};return rt((()=>f(this,null,(function*(){yield u()})))),(e,t)=>{const n=Ft,l=Ct,i=Dt,u=jt,f=Pt,p=Mt;return Ge(),He("div",null,[Ye(l,{class:"layout-search"},{default:We((()=>[Ye(n,{"prefix-icon":Ke(Ot),placeholder:e.$t("message.searchTemp")},null,8,["prefix-icon","placeholder"])])),_:1}),Ye(p,{modelValue:a.value,"onUpdate:modelValue":t[2]||(t[2]=e=>a.value=e),class:"layout-tabs"},{default:We((()=>[Ye(i,{label:e.$t("message.recommendTemp"),name:"data"},{default:We((()=>[Xe("div",{class:"layout-templates",onScroll:t[0]||(t[0]=(...e)=>Ke(s)&&Ke(s)(...e)),ref_key:"templateRef",ref:c},[(Ge(!0),He(tt,null,nt(o.value,((e,t)=>(Ge(),He("div",{key:e.id,class:"thumbnail"},[Xe("img",{src:e.preview+"?x-oss-process=style/img_tum",alt:"",ref_for:!0,ref:e=>((e,t)=>{if(!e)return;const n=()=>{const n=e.parentElement;if(!n)return;const o=t>=2?2:0,a=Math.ceil(n.clientHeight/2)+o;n.style.gridRowEnd=`span ${a}`};n(),e.onload=n,e.onerror=function(){e.src=new URL(""+new URL("loading-BkKY1T9W.gif",import.meta.url).href,import.meta.url).href,n()}})(e,t),onClick:t=>d(e)},null,8,sc)])))),128))],544)])),_:1},8,["label"]),Ye(i,{label:e.$t("message.myTemp"),name:"self"},{default:We((()=>[Ye(f,{modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),size:"large",class:"full-ratio"},{default:We((()=>[Ye(u,{value:"buy",label:e.$t("message.myPurchases")},null,8,["label"]),Ye(u,{value:"collect",label:e.$t("message.myFavorites")},null,8,["label"])])),_:1},8,["modelValue"])])),_:1},8,["label"]),Ye(i,{label:e.$t("message.teamTemp"),name:"team"},{default:We((()=>[qe(Ze(e.$t("message.teamTemp")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-c70b4832"]]);D.ROUND_RECT,D.CUT_RECT_DIAGONAL,D.CUT_RECT_SINGLE,D.CUT_RECT_SAMESIDE,D.ROUND_RECT_DIAGONAL,D.ROUND_RECT_SINGLE,D.ROUND_RECT_SAMESIDE,D.MESSAGE,D.ROUND_MESSAGE,D.L,D.RING_RECT,D.PLUS,D.TRIANGLE,D.PARALLELOGRAM_LEFT,D.PARALLELOGRAM_RIGHT,D.TRAPEZOID,D.BULLET,D.INDICATOR;const fc=[{type:"矩形",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z",pathFormula:D.CUT_RECT_SAMESIDE},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 50 200 Q 0 200 0 150 L 0 0 Z",pathFormula:D.ROUND_RECT_DIAGONAL},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z",pathFormula:D.ROUND_RECT_SINGLE},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z",pathFormula:D.ROUND_RECT_SAMESIDE}]},{type:"常用形状",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:D.TRIANGLE},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:D.PARALLELOGRAM_LEFT},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:D.PARALLELOGRAM_RIGHT},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:D.TRAPEZOID},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:D.BULLET},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:D.INDICATOR},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:D.L},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:D.RING_RECT},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:D.PLUS},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:D.MESSAGE},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:D.ROUND_MESSAGE},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"}]},{type:"箭头",children:[{viewBox:[200,200],path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:[200,200],path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:[200,200],path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:[200,200],path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:[200,200],path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z"},{viewBox:[200,200],path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:[200,200],path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z"},{viewBox:[200,200],path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:[1024,1024],path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:[1024,1024],path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:[1024,1024],path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:[1024,1024],path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:[1024,1024],path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:[1024,1024],path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:[1024,1024],path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:[1024,1024],path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:[1024,1024],path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:[1024,1024],path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:[1024,1024],path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:[1024,1024],path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:[1024,1024],path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:[1024,1024],path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:[1024,1024],path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:[1024,1024],path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:[1024,1024],path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:[1024,1024],path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0},{viewBox:[1024,1024],path:"M997.8886764 504.17210418L537.2729208 43.89182982c-13.97838539-13.97838539-36.56745619-13.97838539-50.5458416 0L26.1113236 504.17210418c-13.41924998 13.41924998-21.02349164 31.64706454-21.02349163 50.65766867 0 39.47496036 32.09437288 71.56933323 71.56933324 71.56933323h48.53295408V954.83524937c0 19.79339373 15.99127289 35.78466661 35.78466663 35.78466662H440.43066677V740.12724968h125.24633315v250.49266631h297.34821416c19.79339373 0 35.78466661-15.99127289 35.78466663-35.78466662V626.39910608h48.53295408c19.01060414 0 37.23841869-7.49241457 50.65766869-21.02349163 27.84494371-27.95677079 27.84494371-73.24673948-0.11182708-101.20351027z",special:!0},{viewBox:[1024,1024],path:"M1009.13013121 349.27572283L674.72427717 14.86986879c-8.82158299-8.82158299-20.35749924-13.16451618-31.89341544-13.16451618s-23.07183245 4.34293316-31.89341547 13.16451618L392.29790453 233.6451272c-16.5574327-1.90003326-33.25058207-2.71433322-49.94373146-2.71433324-99.34459624 0-198.68919249 32.70771543-280.25490606 98.12314628-20.90036589 16.69314938-22.52896582 48.04369819-3.66434987 67.04403081l246.59717401 246.59717401-292.33368895 292.06225564c-3.52863319 3.52863319-5.83581644 8.27871636-6.24296642 13.30023282l-4.61436649 50.48659809c-1.22144996 12.75736619 8.95729967 23.6146991 21.57894918 23.6146991 0.6785833 0 1.35716662 0 2.03574992-0.13571666l50.48659809-4.61436649c5.02151649-0.40714999 9.77159962-2.71433322 13.30023282-6.24296643l292.33368896-292.33368896 246.59717402 246.59717401c8.82158299 8.82158299 20.35749924 13.16451618 31.89341544 13.16451618 13.16451618 0 26.19331567-5.70009979 35.15061536-16.82886604 76.40848044-95.40881307 108.16617924-214.83947521 95.27309638-330.33435417l218.63954175-218.63954173c17.50744934-17.37173267 17.50744934-45.8722316 0-63.51539759z",special:!0},{viewBox:[1024,1024],path:"M976.62005979 160.47737905c-0.39452595-0.39452595-80.35178503 78.64217259-239.47725131 237.50462156l-111.6508437-111.65084369 237.89914752-237.89914752c-125.19623464-75.35445635-286.03131335-56.02268482-390.31767264 48.26367449-81.92988882 81.92988882-112.57140424 200.15616502-83.37648398 310.09739626l2.36715569 8.81107954-372.82702222 372.69551356c-8.15353628 8.15353628-8.15353628 21.56741857 0 29.72095487l185.95323084 185.95323084c8.15353628 8.15353628 21.56741857 8.15353628 29.72095485 0l372.56400493-372.56400493 8.81107953 2.3671557c110.07273989 29.32642892 228.29901608-1.18357785 310.36041356-83.24497533 104.41786795-104.2863593 123.74963948-265.12143802 49.97328693-390.05465535z",special:!0}]},{type:"线性",children:[{viewBox:[1024,1024],path:"M953.5488 832.61667556c-24.08448-57.08913778-58.74574221-108.31644445-102.70947556-152.28017777-43.96373333-43.96373333-95.19104-78.49756444-152.28017777-102.70947558-0.50972445-0.25486222-1.01944888-0.38229333-1.52917334-0.63715555C776.41955556 519.64586667 828.02915556 426.23886221 828.02915556 320.85333332c0-174.58062221-141.44853334-316.02915556-316.02915556-316.02915554S195.97084444 146.27271111 195.97084444 320.85333332c0 105.38552889 51.6096 198.79253333 130.99918223 256.26396447-0.50972445 0.25486222-1.01944888 0.38229333-1.52917334 0.63715555-57.08913778 24.08448-108.31644445 58.61831112-152.28017777 102.70947554-43.96373333 43.96373333-78.49756444 95.19104-102.70947556 152.28017779C46.74901333 888.55893332 34.13333334 947.8144 32.85902222 1008.72647111c-0.12743111 5.7344 4.46008889 10.44935111 10.19448889 10.44935111h76.45866667c5.60696888 0 10.06705778-4.46008889 10.19448889-9.93962666 2.54862221-98.37681778 42.05226667-190.50951112 111.88451555-260.34176001 72.25344-72.25344 168.20906666-112.01194667 270.40881778-112.01194667s198.15537778 39.75850667 270.40881778 112.01194667C852.24106667 818.72668444 891.74471111 910.85937779 894.29333333 1009.23619556c0.12743111 5.60696888 4.58752 9.93962667 10.19448889 9.93962666h76.45866667c5.7344 0 10.32192-4.71495112 10.19448889-10.44935111-1.27431111-60.91207112-13.88999112-120.16753779-37.59217778-176.10979555zM512 540.03484444c-58.49088 0-113.54112-22.81016889-154.95623111-64.22527999S292.81848888 379.34421333 292.81848888 320.85333332c0-58.49088 22.81016889-113.54112 64.22528001-154.9562311S453.50912 101.67182221 512 101.67182221s113.54112 22.81016889 154.95623111 64.22528001S731.18151112 262.36245333 731.18151112 320.85333332c0 58.49088-22.81016889 113.54112-64.22528001 154.95623113S570.49088 540.03484444 512 540.03484444z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 111.50222222H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888889v728.17777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h946.6311111c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V147.91111111c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888889z m-45.5111111 126.06577778V830.57777778H84.19555555V237.568l-31.40266666-24.46222222 44.71466666-57.45777778 48.6968889 37.888h731.70488888l48.69688889-37.888 44.71466667 57.45777778-31.51644444 24.46222222z M877.90933333 193.42222222L512 477.86666667 146.09066667 193.42222222l-48.69688889-37.888-44.71466667 57.45777778 31.40266667 24.46222222 388.66488889 302.19377778c22.98311111 17.86311111 55.18222222 17.86311111 78.16533333 0L939.80444445 237.568l31.40266666-24.46222222-44.71466666-57.45777778-48.58311112 37.77422222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M985.31555555 88.74666667H38.68444445c-20.13866667 0-36.40888889 16.27022222-36.4088889 36.40888888v564.33777778c0 20.13866667 16.27022222 36.40888889 36.4088889 36.40888889h432.35555555v127.43111111H275.34222222c-10.01244445 0-18.20444445 8.192-18.20444444 18.20444445v54.61333333c0 5.00622222 4.096 9.10222222 9.10222222 9.10222222h491.52c5.00622222 0 9.10222222-4.096 9.10222222-9.10222222v-54.61333333c0-10.01244445-8.192-18.20444445-18.20444444-18.20444445H552.96V725.90222222h432.35555555c20.13866667 0 36.40888889-16.27022222 36.4088889-36.40888889V125.15555555c0-20.13866667-16.27022222-36.40888889-36.4088889-36.40888888z m-45.5111111 555.23555555H84.19555555V170.66666667h855.6088889v473.31555555z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M512 2.27555555C230.51377778 2.27555555 2.27555555 230.51377778 2.27555555 512s228.23822222 509.72444445 509.72444445 509.72444445 509.72444445-228.23822222 509.72444445-509.72444445S793.48622222 2.27555555 512 2.27555555z m0 932.97777778c-233.69955555 0-423.25333333-189.55377778-423.25333333-423.25333333 0-101.26222222 35.61244445-194.33244445 95.00444444-267.15022222l595.39911111 595.39911111C706.33244445 899.64088889 613.26222222 935.25333333 512 935.25333333z m328.24888889-156.10311111L244.84977778 183.75111111C317.66755555 124.35911111 410.73777778 88.74666667 512 88.74666667c233.69955555 0 423.25333333 189.55377778 423.25333333 423.25333333 0 101.26222222-35.61244445 194.33244445-95.00444444 267.15022222z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M901.80266667 257.82044445L656.95288889 12.97066667c-6.82666667-6.82666667-16.04266667-10.69511111-25.71377778-10.69511112H147.91111111c-20.13866667 0-36.40888889 16.27022222-36.40888889 36.4088889v946.6311111c0 20.13866667 16.27022222 36.40888889 36.40888889 36.4088889h728.17777778c20.13866667 0 36.40888889-16.27022222 36.40888889-36.4088889V283.648c0-9.67111111-3.86844445-19.00088889-10.69511111-25.82755555zM828.52977778 300.37333333H614.4V86.24355555L828.52977778 300.37333333z m2.048 639.43111112H193.42222222V84.19555555h343.60888889v245.76c0 26.39644445 21.39022222 47.78666667 47.78666667 47.78666667h245.76v562.06222223z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M981.07392 55.79662222H42.92608c-31.22062222 0-50.71758221 34.02410666-35.04355556 61.16693334L304.28728889 620.82616888V927.42542221c0 22.55530667 18.09521779 40.77795555 40.52309333 40.77795557h334.37923556c22.42787556 0 40.52309333-18.22264888 40.52309333-40.77795557V620.82616888L1016.24490667 116.96355556c15.54659555-27.14282666-3.95036444-61.16693333-35.17098667-61.16693334zM628.47203556 876.45297779H395.52796444V677.66044445h233.07150222v198.79253334z m12.23338666-301.50200891l-12.10595556 21.15356445h-233.19893332l-12.10595556-21.15356445L130.59868445 147.54702221h762.8026311L640.70542222 574.95096888z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M980.62285431 4.54099753H654.39920987c-4.2719763 0-7.76722963 3.49525333-7.76722962 7.76722964v72.4941432c0 4.2719763 3.49525333 7.76722963 7.76722962 7.76722963h207.64393877L604.04167111 350.57107753c-64.72691358-49.83972347-143.69374815-76.7661195-226.67365136-76.7661195-99.54999309 0-193.27456395 38.83614815-263.5679921 109.25903012S4.54099753 547.08198717 4.54099753 646.63198025s38.83614815 193.27456395 109.25903012 263.5679921C184.09345581 980.62285431 277.81802667 1019.45900247 377.36801975 1019.45900247s193.27456395-38.83614815 263.5679921-109.25903012C711.35889383 839.90654419 750.19504197 746.18197333 750.19504197 646.63198025c0-82.9799032-26.92639605-161.68783013-76.63666567-226.41474372L931.4304 162.34521283V369.60079013c0 4.2719763 3.49525333 7.76722963 7.76722963 7.76722962h72.4941432c4.2719763 0 7.76722963-3.49525333 7.76722964-7.76722962V43.37714569c0-21.35988148-17.47626667-38.83614815-38.83614816-38.83614816zM377.36801975 921.07409383c-151.33152395 0-274.44211358-123.11058963-274.44211358-274.44211358s123.11058963-274.44211358 274.44211358-274.44211358 274.44211358 123.11058963 274.44211358 274.44211358-123.11058963 274.44211358-274.44211358 274.44211358z",special:!0,outlined:!0},{viewBox:[1024,1024],path:"M591.98717801 512l405.34042913-483.16579151c6.79427767-8.02960089 1.08090782-20.22841761-9.41933951-20.2284176h-123.22349044c-7.25752386 0-14.20621693 3.24272343-18.99309439 8.80167789L511.38233839 415.95362022 177.07299399 17.40746878c-4.63246205-5.55895447-11.58115512-8.80167789-18.99309439-8.80167789H34.85640916c-10.50024731 0-16.21361717 12.19881672-9.41933952 20.2284176L430.77749876 512 25.43706964 995.16579151c-6.79427767 8.02960089-1.08090782 20.22841761 9.41933952 20.2284176h123.22349044c7.25752386 0 14.20621693-3.24272343 18.99309439-8.80167789l334.3093444-398.54615144 334.30934441 398.54615144c4.63246205 5.55895447 11.58115512 8.80167789 18.99309439 8.80167789h123.22349044c10.50024731 0 16.21361717-12.19881672 9.41933951-20.2284176L591.98717801 512z",special:!0,outlined:!0}]}],dc={class:"shape-pool"},pc={class:"category-name"},hc={class:"shape-list"},vc=["onClick"],mc={overflow:"visible",width:"20",height:"20"},gc=["transform"],yc=["fill","stroke","d"],bc=O($e({__name:"PathPool",emits:["select"],setup(e,{emit:t}){const n=t;return(e,t)=>(Ge(),He("div",dc,[(Ge(!0),He(tt,null,nt(Ke(fc),(e=>(Ge(),He("div",{class:"category",key:e.type},[Xe("div",pc,Ze(e.type),1),Xe("div",hc,[(Ge(!0),He(tt,null,nt(e.children,((e,t)=>(Ge(),He("div",{class:"shape-item",key:t},[Xe("div",{class:"shape-content",onClick:t=>{n("select",e)}},[(Ge(),He("svg",mc,[Xe("g",{transform:`scale(${20/e.viewBox[0]}, ${20/e.viewBox[1]}) translate(0,0) matrix(1,0,0,1,0,0)`},[Xe("path",{class:Je(["shape-path",{outlined:e.outlined}]),"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8",fill:e.outlined?"#999":"transparent",stroke:e.outlined?"transparent":"#999","stroke-width":"2",d:e.path},null,10,yc)],8,gc)]))],8,vc)])))),128))])])))),128))]))}}),[["__scopeId","data-v-a2164a4c"]]),_c={class:"line-pool"},wc={class:"category-name"},xc={class:"line-list"},kc=["onClick"],Ec={overflow:"visible",width:"20",height:"20"},Cc=["d","stroke-dasharray","marker-start","marker-end"],Sc=O($e({__name:"LinePool",emits:["select"],setup(e,{emit:t}){const n=t;return(e,t)=>{const o=I;return Ge(),He("div",_c,[(Ge(!0),He(tt,null,nt(Ke(Un),((e,t)=>(Ge(),He("div",{class:"category",key:e.type},[Xe("div",wc,Ze(e.type),1),Xe("div",xc,[(Ge(!0),He(tt,null,nt(e.children,((e,a)=>(Ge(),He("div",{class:"line-item",key:a},[Xe("div",{class:"line-content",onClick:t=>(e=>{n("select",e)})(e)},[(Ge(),He("svg",Ec,[Xe("defs",null,[e.points[0]?(Ge(),ot(o,{key:0,class:"line-marker",id:`preset-line-${t}-${a}`,position:"start",type:e.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0),e.points[1]?(Ge(),ot(o,{key:1,class:"line-marker",id:`preset-line-${t}-${a}`,position:"end",type:e.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):at("",!0)]),Xe("path",{class:"line-path",d:e.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===e.style?"0, 0":"4, 1","marker-start":e.points[0]?`url(#preset-line-${t}-${a}-${e.points[0]}-start)`:"","marker-end":e.points[1]?`url(#preset-line-${t}-${a}-${e.points[1]}-end)`:""},null,8,Cc)]))],8,kc)])))),128))])])))),128))])}}}),[["__scopeId","data-v-7acd00d9"]]),Oc={class:"layout-pool"},Ac=O($e({__name:"MaterialPool",setup(e){w();const{createLineElement:t,createPathElement:n}=F(),o=Ne("data"),a=(e,t)=>{const[n]=g();n.add(t)},r=e=>f(this,null,(function*(){const t=e[0],[n]=g();if(!t)return;const o=yield j(t);yield on(o,a),n.renderAll()}));return(e,a)=>{const l=ze("IconUpload"),i=It,c=gt,s=$,u=Et,f=Ft,d=Ct,p=Dt,h=Mt;return Ge(),He("div",Oc,[Ye(d,{class:"layout-search"},{default:We((()=>[Ye(u,{span:5},{default:We((()=>[Ye(s,{onChange:a[0]||(a[0]=e=>r(e))},{default:We((()=>[Ye(c,{placement:"top","hide-after":0,content:e.$t("message.searchMat")},{default:We((()=>[Ye(i,{type:"primary"},{default:We((()=>[Ye(l)])),_:1})])),_:1},8,["content"])])),_:1})])),_:1}),Ye(u,{span:19},{default:We((()=>[Ye(f,{"prefix-icon":Ke(Ot),placeholder:e.$t("message.searchMat")},null,8,["prefix-icon","placeholder"])])),_:1})])),_:1}),Xe("div",null,[Ye(h,{modelValue:o.value,"onUpdate:modelValue":a[3]||(a[3]=e=>o.value=e),class:"layout-tabs material-tab"},{default:We((()=>[Ye(p,{label:e.$t("message.recommendMat"),name:"data"},{default:We((()=>[Ye(Sc,{onSelect:a[1]||(a[1]=e=>(e=>{const n="dashed"===e.style?[6,6]:void 0;t(e.data,e.points[0],e.points[1],n)})(e))}),Ye(bc,{onSelect:a[2]||(a[2]=e=>{n(e.path)})})])),_:1},8,["label"]),Ye(p,{label:e.$t("message.myBookmarksMat"),name:"self"},{default:We((()=>[qe(Ze(e.$t("message.myBookmarksMat")),1)])),_:1},8,["label"]),Ye(p,{label:e.$t("message.myPurchasesMat"),name:"team"},{default:We((()=>[qe(Ze(e.$t("message.myPurchasesMat")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])])}}}),[["__scopeId","data-v-15b59151"]]),Lc={class:"layout-pool"},Tc={class:"large"},Fc={class:"middle"},Dc={class:"small"},jc=O($e({__name:"TextboxPool",setup(e){const{t:t}=w(),{createTextElement:n}=F(),o=Ne("transverse"),a=Ne(!1),r=Ne("data"),l=e=>{n(e,o.value,a.value)};return(e,n)=>{const i=Ft,c=Ct,s=ze("IconTextRotationNone"),u=jt,f=ze("IconTextRotationDown"),d=Pt,p=Et,h=ze("IconText"),v=Bt,m=Dt,g=Mt;return Ge(),He("div",Lc,[Ye(c,{class:"layout-search"},{default:We((()=>[Ye(i,{"prefix-icon":Ke(Ot),placeholder:Ke(t)("message.searchText")},null,8,["prefix-icon","placeholder"])])),_:1}),Ye(c,{class:"layout-text",onClick:n[0]||(n[0]=e=>l(80))},{default:We((()=>[Xe("div",Tc,Ze(Ke(t)("message.addTitle")),1)])),_:1}),Ye(c,{class:"layout-text",onClick:n[1]||(n[1]=e=>l(60))},{default:We((()=>[Xe("div",Fc,Ze(Ke(t)("message.addSubtitle")),1)])),_:1}),Ye(c,{class:"layout-text",onClick:n[2]||(n[2]=e=>l(36))},{default:We((()=>[Xe("div",Dc,Ze(Ke(t)("message.addBodyText")),1)])),_:1}),Ye(c,{class:"layout-style"},{default:We((()=>[Ye(p,{span:16},{default:We((()=>[Ye(d,{class:"full-ratio",modelValue:o.value,"onUpdate:modelValue":n[3]||(n[3]=e=>o.value=e)},{default:We((()=>[Ye(u,{label:Ke(t)("message.transverse"),value:"transverse"},{default:We((()=>[Ye(s)])),_:1},8,["label"]),Ye(u,{label:Ke(t)("message.direction"),value:"direction"},{default:We((()=>[Ye(f)])),_:1},8,["label"])])),_:1},8,["modelValue"])])),_:1}),Ye(p,{span:8},{default:We((()=>[Ye(v,{modelValue:a.value,"onUpdate:modelValue":n[4]||(n[4]=e=>a.value=e)},{default:We((()=>[Ye(h),qe(Ze(Ke(t)("message.hollowOut")),1)])),_:1},8,["modelValue"])])),_:1})])),_:1}),Ye(g,{modelValue:r.value,"onUpdate:modelValue":n[5]||(n[5]=e=>r.value=e),class:"layout-tabs"},{default:We((()=>[Ye(m,{label:Ke(t)("message.recommendText"),name:"data"},{default:We((()=>[qe(Ze(Ke(t)("message.recommendText")),1)])),_:1},8,["label"]),Ye(m,{label:Ke(t)("message.myBookmarksText"),name:"self"},{default:We((()=>[qe(Ze(Ke(t)("message.myTemplate")),1)])),_:1},8,["label"]),Ye(m,{label:Ke(t)("message.myPurchasesText"),name:"team"},{default:We((()=>[qe(Ze(Ke(t)("message.TeamTemplate")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-798d5106"]]);const Pc=["src","alt","onClick"],Mc=O($e({__name:"IllustrationCategory",setup(e){const t=_(),{illustrationCategoryType:n,illustrationCategoryData:o}=E(t),{createImageElement:a}=F(),r=Ne(),l=Ne(),i=Ne(0),c=Ne("all"),s=Ue((()=>o.value.filter((e=>e.type===c.value))[0])),u=_n((e=>f(this,null,(function*(){const t=yield(n={t:e},N({url:"api/design/illustration/category",method:"get",params:n}));var n;t&&200===t.data.code&&o.value.filter((t=>t.type===e)).map((e=>e.category=t.data.data))}))),100,{leading:!0,trailing:!1}),p=_n(((e,t)=>f(this,null,(function*(){const n=yield(a={t:e,page:t},N({url:"api/design/illustration/page",method:"get",params:a}));var a;n&&200===n.data.code&&o.value.filter((t=>t.type===e)).map((e=>e.total=n.data.data))}))),100,{leading:!0,trailing:!1}),h=()=>{let e=0,t=2;if(!r.value)return{startIndex:e,endIndex:t};const n=r.value.scrollTop,o=r.value.clientHeight;return e=Math.floor(n/132),t=Math.ceil((n+o)/132),{startIndex:e,endIndex:t}},v=()=>f(this,null,(function*(){const{startIndex:e,endIndex:t}=h();for(let a=e;af(this,null,(function*(){const{startIndex:e,endIndex:t}=h();for(let a=e;af(this,null,(function*(){r.value&&(i.value=r.value.scrollTop,c.value=e,yield p(e,1))})),b=(e,t)=>f(this,null,(function*(){const[n]=g();yield an.loadImage(e.largeImageURL),t.set({visible:!1}),n.renderAll()})),w=e=>f(this,null,(function*(){const[t]=g(),{centerPoint:n}=d();let o=t.loading;o?(o.set({visible:!0}),t.bringObjectToFront(o),t.renderAll()):(o=yield U.fromURL(new URL(""+new URL("loading-BkKY1T9W.gif",import.meta.url).href,import.meta.url).href),o.set({left:n.x-o.width/2,top:n.y-o.height/2}),t.add(o),t.renderAll(),t.loading=o),yield b(e,o),a(e.largeImageURL)}));return rt((()=>{r.value&&v()})),(e,t)=>{const n=Vt,a=Et,u=ze("IconRight"),f=It,d=Ct,p=Rt,h=ze("IconLeft"),g=St;return Ge(),He("div",null,["all"===c.value?(Ge(),He("div",{key:0,class:"category-container",ref_key:"categoryRef",ref:r,onScroll:v},[(Ge(!0),He(tt,null,nt(Ke(o),((t,o)=>(Ge(),He("div",{key:o},[Ye(d,{class:"col-tip mt-5"},{default:We((()=>[Ye(a,{span:5,class:"col-name"},{default:We((()=>[Ye(n,null,{default:We((()=>[qe(Ze(t.name),1)])),_:2},1024)])),_:2},1024),Ye(a,{span:7,class:"col-name"},{default:We((()=>[Ye(f,{text:"",onClick:e=>y(t.type)},{default:We((()=>[qe(Ze(e.$t("message.all")),1),Ye(u)])),_:2},1032,["onClick"])])),_:2},1024)])),_:2},1024),Qe((Ge(),ot(d,{class:"category-box mt-5"},{default:We((()=>[(Ge(!0),He(tt,null,nt(t.category,((e,t)=>(Ge(),He("div",{class:"box-image",key:t,style:it({height:(e.previewHeight<100?100:e.previewHeight)+"px"})},[Ye(p,{src:e.previewURL,alt:e.tags,onClick:t=>w(e),lazy:"",loading:"lazy"},null,8,["src","alt","onClick"])],4)))),128))])),_:2},1024)),[[g,0===t.category.length]])])))),128))],544)):(Ge(),He("div",{key:1,class:"category-container",ref_key:"totalRef",ref:l,onScroll:m},[Ye(d,{class:"col-tip mt-5"},{default:We((()=>[Ye(a,{span:7,class:"col-name"},{default:We((()=>[Ye(f,{text:"",onClick:t[0]||(t[0]=e=>(c.value="all",void(r.value&&r.value.scrollTo({top:i.value,behavior:"smooth"}))))},{default:We((()=>[Ye(h),qe(Ze(s.value.name),1)])),_:1})])),_:1})])),_:1}),Qe((Ge(),ot(d,{class:"total-box mt-5"},{default:We((()=>[(Ge(!0),He(tt,null,nt(s.value.total,((e,t)=>(Ge(),He("div",{class:"box-image",key:t},[Xe("img",{src:e.previewURL,alt:e.tags,onClick:t=>w(e),lazy:"",loading:"lazy",ref_for:!0,ref:e=>((e,t)=>{if(!e)return;const n=()=>{const n=e.parentElement;if(!n)return;const o=t>=2?2:0,a=Math.ceil(n.clientHeight/2)+o;n.style.gridRowEnd=`span ${a}`};n(),e.onload=n,e.onerror=function(){e.src=new URL(""+new URL("loading-BkKY1T9W.gif",import.meta.url).href,import.meta.url).href,n()}})(e,t)},null,8,Pc)])))),128))])),_:1})),[[g,0===s.value.total.length]])],544)),Ye(d,{class:"image-bottom"},{default:We((()=>[qe(Ze(e.$t("message.endOfContent")),1)])),_:1})])}}}),[["__scopeId","data-v-4d7511eb"]]),Ic={class:"layout-pool"},Bc=O($e({__name:"ImagePool",setup(e){w();const{createImageElement:t}=F(),n=Ne("data");return(e,o)=>{const a=ze("IconUpload"),r=It,l=gt,i=$,c=Et,s=Ft,u=Ct,f=Dt,d=Mt;return Ge(),He("div",Ic,[Ye(u,{class:"layout-search"},{default:We((()=>[Ye(c,{span:5},{default:We((()=>[Ye(i,{onChange:o[0]||(o[0]=e=>(e=>{const n=e[0];n&&P(n).then((e=>t(e)))})(e))},{default:We((()=>[Ye(l,{placement:"top","hide-after":0,content:e.$t("message.uploadImages")},{default:We((()=>[Ye(r,{type:"primary"},{default:We((()=>[Ye(a)])),_:1})])),_:1},8,["content"])])),_:1})])),_:1}),Ye(c,{span:19},{default:We((()=>[Ye(s,{"prefix-icon":Ke(Ot),placeholder:e.$t("message.searchImages")},null,8,["prefix-icon","placeholder"])])),_:1})])),_:1}),Ye(d,{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=e=>n.value=e),class:"layout-tabs"},{default:We((()=>[Ye(f,{label:e.$t("message.recommendImages"),name:"data"},{default:We((()=>[Ye(Mc)])),_:1},8,["label"]),Ye(f,{label:e.$t("message.myBookmarks"),name:"self"},{default:We((()=>[qe(Ze(e.$t("message.myBookmarks")),1)])),_:1},8,["label"]),Ye(f,{label:e.$t("message.teamTemplates"),name:"team"},{default:We((()=>[qe(Ze(e.$t("message.teamTemplates")),1)])),_:1},8,["label"])])),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-70a56dd9"]]),Vc={class:"dialog-footer"},Rc=$e({__name:"OpenGpt",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(e,{emit:t}){const n=t,o=e,a=Ne(!1),r=bn((function(){a.value=!1,n("close")}),250),l=bn((function(){return f(this,null,(function*(){(yield z("15972699417"))&&Tt.success("复制成功")}))}),250);return ct((()=>o.visible),(e=>{a.value=e})),(e,t)=>{const n=ze("IconCopyOne"),o=ze("IconWechat"),i=Vt,c=It,s=$t;return Ge(),ot(s,{modelValue:Ke(a),"onUpdate:modelValue":t[1]||(t[1]=e=>st(a)?a.value=e:null),width:500,title:e.$t("gpt.openGPTTitle"),class:"upload-dialog","before-close":Ke(r),"close-on-click-modal":!1},{footer:We((()=>[Xe("div",Vc,[Ye(c,{onClick:Ke(r)},{default:We((()=>[qe(Ze(e.$t("default.cancel")),1)])),_:1},8,["onClick"]),Ye(c,{type:"primary",onClick:Ke(r)},{default:We((()=>[qe(Ze(e.$t("default.ok")),1)])),_:1},8,["onClick"])])])),default:We((()=>[Xe("div",null,[t[5]||(t[5]=Xe("div",{class:"mb-[20px] text-center"},"初级变中级,中级变高级,让前端开发更轻松高效!",-1)),t[6]||(t[6]=Xe("div",{class:"mb-[20px] text-center"},"限时优惠,数量有限,先到先得!",-1)),Xe("div",{class:"cursor-pointer text-center text-[18px] font-bold",onClick:t[0]||(t[0]=(...e)=>Ke(l)&&Ke(l)(...e))},[Xe("div",null,[Ye(n),t[3]||(t[3]=qe("点击复制")),Ye(o),t[4]||(t[4]=qe("微信号 ")),Ye(i,null,{default:We((()=>t[2]||(t[2]=[qe("15972699417")]))),_:1})])])])])),_:1},8,["modelValue","title","before-close"])}}}),$c={class:"font-middle"},Nc={class:"font-little"},Uc={class:"font-middle"},zc={class:"font-little"},Gc={class:"font-middle"},Hc={class:"font-little"},Xc={class:"font-middle"},Yc={class:"font-little"},Wc=O($e({__name:"ToolkitPool",setup(e){w();const{createQRCodeElement:t,createBarCodeElement:n}=F(),o=Ne(window.location.href),a=Ne(!0),r=Ne(0),l=Ne(!1),i=Ne(!1),c=Ne(!1),s={A1:$n.rendererRect,A2:$n.rendererRound,A3:$n.rendererRandRound,SP1:$n.rendererDSJ,SP2:$n.rendererRandRect,SP3:$n.rendererCircle,B1:$n.renderer25D,C1:$n.rendererImage,A_a1:$n.rendererLine,A_a2:$n.rendererLine2,A_b1:$n.rendererFuncA,A_b2:$n.rendererFuncB},u=()=>{const e={format:"pharmacode",lineColor:"#0aa",width:4,height:40,displayValue:!1};Ai("#barcode","1234",e);const t=document.getElementById("barcode");if(!t)return;const o=(new XMLSerializer).serializeToString(t),a="data:image/svg+xml;base64,"+btoa(o);n(a,"1234",e)},f=e=>{const n="data:image/svg+xml;base64,"+btoa(s[e](((e=118,t=118)=>{const n={text:o.value,width:e,height:t,correctLevel:r.value,isSpace:a.value};return $n.encodeData(n)})(118,118))),l={codeStyle:e,codeSpace:a.value,codeError:r.value};t(n,l,o.value)},d=()=>{l.value=!0},p=()=>{l.value=!1},h=()=>{i.value=!0},v=()=>{i.value=!1};return bn((function(){At.alert("功能开发中,敬请期待","提示",{confirmButtonText:"我知道了",callback:e=>{}})}),250),bn((function(){c.value=!0}),250),(e,t)=>{const n=Ft,o=Ct,a=ze("IconPayCodeTwo"),r=Et,s=ze("IconTwoDimensionalCodeTwo"),m=ze("IconMagicWand"),g=ze("IconPlatte"),y=B,b=G,_=Rc;return Ge(),He("div",null,[Ye(o,{class:"layout-search"},{default:We((()=>[Ye(n,{"prefix-icon":Ke(Ot),placeholder:e.$t("message.searchTools")},null,8,["prefix-icon","placeholder"])])),_:1}),Ye(o,null,{default:We((()=>[Ye(o,{class:"code-common",onClick:u},{default:We((()=>[Ye(r,{span:4,class:"code-icon"},{default:We((()=>[Ye(a,{class:"icon-font"})])),_:1}),Ye(r,{span:20,class:"code-text"},{default:We((()=>[Xe("div",$c,Ze(e.$t("message.barCode")),1),Xe("div",Nc,Ze(e.$t("message.barCodeTips")),1)])),_:1})])),_:1})])),_:1}),Ye(o,null,{default:We((()=>[Ye(o,{class:"code-common",onClick:t[0]||(t[0]=e=>f("A1"))},{default:We((()=>[Ye(r,{span:4,class:"code-icon"},{default:We((()=>[Ye(s,{class:"icon-font"})])),_:1}),Ye(r,{span:20,class:"code-text"},{default:We((()=>[Xe("div",Uc,Ze(e.$t("message.QRCode")),1),Xe("div",zc,Ze(e.$t("message.QRCodeTips")),1)])),_:1})])),_:1})])),_:1}),Ye(o,null,{default:We((()=>[Ye(o,{class:"code-common",onClick:d},{default:We((()=>[Ye(r,{span:4,class:"code-icon"},{default:We((()=>[Ye(m,{class:"icon-font"})])),_:1}),Ye(r,{span:20,class:"code-text"},{default:We((()=>[Xe("div",Gc,Ze(e.$t("message.AICutoutImage")),1),Xe("div",Hc,Ze(e.$t("message.AICutoutImageTips")),1)])),_:1})])),_:1})])),_:1}),Ye(o,null,{default:We((()=>[Ye(o,{class:"code-common",onClick:h},{default:We((()=>[Ye(r,{span:4,class:"code-icon"},{default:We((()=>[Ye(g,{class:"icon-font"})])),_:1}),Ye(r,{span:20,class:"code-text"},{default:We((()=>[Xe("div",Xc,Ze(e.$t("message.ColorFillImage")),1),Xe("div",Yc,Ze(e.$t("message.ColorFillImageTips")),1)])),_:1})])),_:1})])),_:1}),Ye(y,{visible:l.value,onClose:p},null,8,["visible"]),Ye(b,{visible:i.value,onClose:v},null,8,["visible"]),Ye(_,{visible:c.value,onClose:t[1]||(t[1]=e=>c.value=!1)},null,8,["visible"])])}}}),[["__scopeId","data-v-26281644"]]),qc={class:"font-middle"},Zc={class:"font-little"},Kc={class:"font-middle"},Jc={class:"font-little"},Qc=O($e({__name:"ChatgptPool",setup(e){w(),F(),Ne(window.location.href),Ne(!0),Ne(0),Ne(!1),Ne(!1);const t=Ne(!1),n=bn((function(){At.alert("功能开发中,敬请期待","提示",{confirmButtonText:"我知道了",callback:e=>{}})}),250),o=bn((function(){t.value=!0}),250);return(e,a)=>{const r=Ft,l=Ct,i=Et,c=Rc;return Ge(),He("div",null,[Ye(l,{class:"layout-search"},{default:We((()=>[Ye(r,{"prefix-icon":Ke(Ot),placeholder:e.$t("message.searchTools")},null,8,["prefix-icon","placeholder"])])),_:1}),Ye(l,null,{default:We((()=>[Ye(l,{class:"code-common",onClick:Ke(n)},{default:We((()=>[Ye(i,{span:4,class:"code-icon"},{default:We((()=>a[1]||(a[1]=[Xe("i",{class:"iconfont icon-gpt"},null,-1)]))),_:1}),Ye(i,{span:20,class:"code-text"},{default:We((()=>[Xe("div",qc,Ze(e.$t("gpt.gptTitle")),1),Xe("div",Zc,Ze(e.$t("gpt.gptIntro")),1)])),_:1})])),_:1},8,["onClick"])])),_:1}),Ye(l,null,{default:We((()=>[Ye(l,{class:"code-common",onClick:Ke(o)},{default:We((()=>[Ye(i,{span:4,class:"code-icon"},{default:We((()=>a[2]||(a[2]=[Xe("i",{class:"iconfont icon-gpt"},null,-1)]))),_:1}),Ye(i,{span:20,class:"code-text"},{default:We((()=>[Xe("div",Kc,Ze(e.$t("gpt.openGPTTitle")),1),Xe("div",Jc,Ze(e.$t("gpt.openGPTIntro")),1)])),_:1})])),_:1},8,["onClick"])])),_:1}),Ye(c,{visible:t.value,onClose:a[0]||(a[0]=e=>t.value=!1)},null,8,["visible"])])}}}),[["__scopeId","data-v-dab5d425"]]),es=()=>{const{lockElement:e,deleteElement:t,cutElement:n,copyElement:o,pasteElement:a,uncombineElements:r,combineElements:l,resetElements:i}=k(),{alignElement:c,layerElement:s}=kn(),{canvasObject:u}=E(_()),f=u.value;return f?f.lockMovementX&&f.lockMovementY?[{text:"解锁",handler:()=>e(f.id,!1)}]:[{text:"剪切",subText:"Ctrl + X",handler:n},{text:"复制",subText:"Ctrl + C",handler:o},{text:"粘贴",subText:"Ctrl + V",handler:a},{divider:!0},{text:"水平居中",handler:()=>c(v.HORIZONTAL),children:[{text:"垂直居中",handler:()=>c(v.CENTER)},{text:"水平居中",handler:()=>c(v.HORIZONTAL)},{text:"左对齐",handler:()=>c(v.LEFT)},{text:"右对齐",handler:()=>c(v.RIGHT)}]},{text:"垂直居中",handler:()=>c(v.VERTICAL),children:[{text:"水平居中",handler:()=>c(v.CENTER)},{text:"垂直居中",handler:()=>c(v.VERTICAL)},{text:"顶部对齐",handler:()=>c(v.TOP)},{text:"底部对齐",handler:()=>c(v.BOTTOM)}]},{divider:!0},{text:"置于顶层",handler:()=>s(m.TOP),children:[{text:"置于顶层",handler:()=>s(m.TOP)},{text:"上移一层",handler:()=>s(m.UP)}]},{text:"置于底层",handler:()=>s(m.BOTTOM),children:[{text:"置于底层",handler:()=>s(m.BOTTOM)},{text:"下移一层",handler:()=>s(m.DOWN)}]},{divider:!0},{text:f.type===h.GROUP?"取消组合":"组合",subText:"Ctrl + G",handler:f.type===h.GROUP?r:l},{text:"全选",subText:"Ctrl + A"},{text:"锁定",subText:"Ctrl + L",handler:()=>e(f.id,!0)},{text:"删除",subText:"Delete",handler:()=>t(f.id)}]:[{text:"粘贴",subText:"Ctrl + V",handler:a},{text:"全选",subText:"Ctrl + A"},{text:"标尺"},{text:"网格"},{text:"重置",handler:i}]},ts=()=>[{text:"剪切",subText:"Ctrl + X"},{text:"复制",subText:"Ctrl + C"},{text:"粘贴",subText:"Ctrl + V"},{text:"全选",subText:"Ctrl + A"},{divider:!0},{text:"新建页面",subText:"Enter"},{text:"复制页面",subText:"Ctrl + D"},{text:"删除页面",subText:"Delete"},{divider:!0},{text:"从当前预览",subText:"Shift + F5"}];var ns={exports:{}};const os=vn(ut); +/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function rs(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function us(e){return function(e){if(Array.isArray(e))return fs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function ks(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Es(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&xs(e,t):xs(e,t))||o&&e===n)return e;if(e===n)break}while(e=ks(e))}return null}var Cs,Ss=/\s+/g;function Os(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Ss," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Ss," ")}}function As(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"==typeof n?"":"px")}}function Ls(e,t){var n="";if("string"==typeof e)n=e;else do{var o=As(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function Ts(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,r=o.length;if(n)for(;a=Ds(o)[n]))return o;if(o===Fs())break;o=Vs(o,!1)}return!1}function Ps(e,t,n,o){for(var a=0,r=0,l=e.children;r2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,a=ss(n,Ks);qs.pluginEvent.bind(Gu)(e,t,rs({dragEl:eu,parentEl:tu,ghostEl:nu,rootEl:ou,nextEl:au,lastDownEl:ru,cloneEl:lu,cloneHidden:iu,dragStarted:_u,putSortable:pu,activeSortable:Gu.active,originalEvent:o,oldIndex:cu,oldDraggableIndex:uu,newIndex:su,newDraggableIndex:fu,hideGhostForTarget:$u,unhideGhostForTarget:Nu,cloneNowHidden:function(){iu=!0},cloneNowShown:function(){iu=!1},dispatchSortableEvent:function(e){Qs({sortable:t,name:e,originalEvent:o})}},a))};function Qs(e){Zs(rs({putSortable:pu,cloneEl:lu,targetEl:eu,rootEl:ou,oldIndex:cu,oldDraggableIndex:uu,newIndex:su,newDraggableIndex:fu},e))}var eu,tu,nu,ou,au,ru,lu,iu,cu,su,uu,fu,du,pu,hu,vu,mu,gu,yu,bu,_u,wu,xu,ku,Eu,Cu=!1,Su=!1,Ou=[],Au=!1,Lu=!1,Tu=[],Fu=!1,Du=[],ju="undefined"!=typeof document,Pu=gs,Mu=hs||ps?"cssFloat":"float",Iu=ju&&!ys&&!gs&&"draggable"in document.createElement("div"),Bu=function(){if(ju){if(ps)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Vu=function(e,t){var n=As(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=Ps(e,0,t),r=Ps(e,1,t),l=a&&As(a),i=r&&As(r),c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ds(a).width,s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Ds(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&l.float&&"none"!==l.float){var u="left"===l.float?"left":"right";return!r||"both"!==i.clear&&i.clear!==u?"horizontal":"vertical"}return a&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||c>=o&&"none"===n[Mu]||r&&"none"===n[Mu]&&c+s>o)?"vertical":"horizontal"},Ru=function(e){function t(e,n){return function(o,a,r,l){var i=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==e&&(n||i))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(o,a,r,l),n)(o,a,r,l);var c=(n?o:a).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},o=e.group;o&&"object"==ls(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},$u=function(){!Bu&&nu&&As(nu,"display","none")},Nu=function(){!Bu&&nu&&As(nu,"display","")};ju&&document.addEventListener("click",(function(e){if(Su)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Su=!1,!1}),!0);var Uu=function(e){if(eu){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,r=e.clientY,Ou.some((function(e){var t=e[Hs].options.emptyInsertThreshold;if(t&&!Ms(e)){var n=Ds(e),o=a>=n.left-t&&a<=n.right+t,i=r>=n.top-t&&r<=n.bottom+t;return o&&i?l=e:void 0}})),l);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Hs]._onDragOver(n)}}var a,r,l},zu=function(e){eu&&eu.parentNode[Hs]._isOutsideThisEl(e.target)};function Gu(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=cs({},t),e[Hs]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Vu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Gu.supportPointer&&"PointerEvent"in window&&!ms,emptyInsertThreshold:5};for(var o in qs.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var a in Ru(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&Iu,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_s(e,"pointerdown",this._onTapStart):(_s(e,"mousedown",this._onTapStart),_s(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_s(e,"dragover",this),_s(e,"dragenter",this)),Ou.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),cs(this,Xs())}function Hu(e,t,n,o,a,r,l,i){var c,s,u=e[Hs],f=u.options.onMove;return!window.CustomEvent||ps||hs?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=o,c.related=a||t,c.relatedRect=r||Ds(t),c.willInsertAfter=i,c.originalEvent=l,e.dispatchEvent(c),f&&(s=f.call(u,c,l)),s}function Xu(e){e.draggable=!1}function Yu(){Fu=!1}function Wu(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function qu(e){return setTimeout(e,0)}function Zu(e){return clearTimeout(e)}Gu.prototype={constructor:Gu,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(wu=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,eu):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,o=this.options,a=o.preventOnFilter,r=e.type,l=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,i=(l||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||i,s=o.filter;if(function(e){Du.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var o=t[n];o.checked&&Du.push(o)}}(n),!eu&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||o.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!ms||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=Es(i,o.draggable,n,!1))&&i.animated||ru===i)){if(cu=Is(i),uu=Is(i,o.draggable),"function"==typeof s){if(s.call(this,e,i,this))return Qs({sortable:t,rootEl:c,name:"filter",targetEl:i,toEl:n,fromEl:n}),Js("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some((function(o){if(o=Es(c,o.trim(),n,!1))return Qs({sortable:t,rootEl:o,name:"filter",targetEl:i,fromEl:n,toEl:n}),Js("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());o.handle&&!Es(c,o.handle,n,!1)||this._prepareDragStart(e,l,i)}}},_prepareDragStart:function(e,t,n){var o,a=this,r=a.el,l=a.options,i=r.ownerDocument;if(n&&!eu&&n.parentNode===r){var c=Ds(n);if(ou=r,tu=(eu=n).parentNode,au=eu.nextSibling,ru=n,du=l.group,Gu.dragged=eu,hu={target:eu,clientX:(t||e).clientX,clientY:(t||e).clientY},yu=hu.clientX-c.left,bu=hu.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,eu.style["will-change"]="all",o=function(){Js("delayEnded",a,{evt:e}),Gu.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!vs&&a.nativeDraggable&&(eu.draggable=!0),a._triggerDragStart(e,t),Qs({sortable:a,name:"choose",originalEvent:e}),Os(eu,l.chosenClass,!0))},l.ignore.split(",").forEach((function(e){Ts(eu,e.trim(),Xu)})),_s(i,"dragover",Uu),_s(i,"mousemove",Uu),_s(i,"touchmove",Uu),_s(i,"mouseup",a._onDrop),_s(i,"touchend",a._onDrop),_s(i,"touchcancel",a._onDrop),vs&&this.nativeDraggable&&(this.options.touchStartThreshold=4,eu.draggable=!0),Js("delayStart",this,{evt:e}),!l.delay||l.delayOnTouchOnly&&!t||this.nativeDraggable&&(hs||ps))o();else{if(Gu.eventCanceled)return void this._onDrop();_s(i,"mouseup",a._disableDelayedDrag),_s(i,"touchend",a._disableDelayedDrag),_s(i,"touchcancel",a._disableDelayedDrag),_s(i,"mousemove",a._delayedDragTouchMoveHandler),_s(i,"touchmove",a._delayedDragTouchMoveHandler),l.supportPointer&&_s(i,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(o,l.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){eu&&Xu(eu),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ws(e,"mouseup",this._disableDelayedDrag),ws(e,"touchend",this._disableDelayedDrag),ws(e,"touchcancel",this._disableDelayedDrag),ws(e,"mousemove",this._delayedDragTouchMoveHandler),ws(e,"touchmove",this._delayedDragTouchMoveHandler),ws(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_s(document,"pointermove",this._onTouchMove):_s(document,t?"touchmove":"mousemove",this._onTouchMove):(_s(eu,"dragend",this),_s(ou,"dragstart",this._onDragStart));try{document.selection?qu((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Cu=!1,ou&&eu){Js("dragStarted",this,{evt:t}),this.nativeDraggable&&_s(document,"dragover",zu);var n=this.options;!e&&Os(eu,n.dragClass,!1),Os(eu,n.ghostClass,!0),Gu.active=this,e&&this._appendGhost(),Qs({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(vu){this._lastX=vu.clientX,this._lastY=vu.clientY,$u();for(var e=document.elementFromPoint(vu.clientX,vu.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(vu.clientX,vu.clientY))!==t;)t=e;if(eu.parentNode[Hs]._isOutsideThisEl(e),t)do{if(t[Hs]){if(t[Hs]._onDragOver({clientX:vu.clientX,clientY:vu.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Nu()}},_onTouchMove:function(e){if(hu){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=nu&&Ls(nu,!0),l=nu&&r&&r.a,i=nu&&r&&r.d,c=Pu&&Eu&&Bs(Eu),s=(a.clientX-hu.clientX+o.x)/(l||1)+(c?c[0]-Tu[0]:0)/(l||1),u=(a.clientY-hu.clientY+o.y)/(i||1)+(c?c[1]-Tu[1]:0)/(i||1);if(!Gu.active&&!Cu){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))o.right+a||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+a}(e,a,this)&&!v.animated){if(v===eu)return F(!1);if(v&&r===e.target&&(l=v),l&&(n=Ds(l)),!1!==Hu(ou,r,eu,t,l,n,e,!!l))return T(),r.appendChild(eu),tu=r,D(),F(!0)}else if(v&&function(e,t,n){var o=Ds(Ps(n.el,0,n.options,!0)),a=10;return t?e.clientXu+s*r/2:cf-ku)return-xu}else if(c>u+s*(1-a)/2&&cf-s*r/2))return c>u+s/2?1:-1;return 0}(e,l,n,a,w?1:i.swapThreshold,null==i.invertedSwapThreshold?i.swapThreshold:i.invertedSwapThreshold,Lu,wu===l),0!==g){var C=Is(eu);do{C-=g,b=tu.children[C]}while(b&&("none"===As(b,"display")||b===nu))}if(0===g||b===l)return F(!1);wu=l,xu=g;var S=l.nextElementSibling,O=!1,A=Hu(ou,r,eu,t,l,n,e,O=1===g);if(!1!==A)return 1!==A&&-1!==A||(O=1===A),Fu=!0,setTimeout(Yu,30),T(),O&&!S?r.appendChild(eu):l.parentNode.insertBefore(eu,O?S:l),k&&Ns(k,0,E-k.scrollTop),tu=eu.parentNode,void 0===y||Lu||(ku=Math.abs(y-Ds(l)[x])),D(),F(!0)}if(r.contains(eu))return F(!1)}return!1}function L(i,c){Js(i,p,rs({evt:e,isOwner:u,axis:a?"vertical":"horizontal",revert:o,dragRect:t,targetRect:n,canSort:f,fromSortable:d,target:l,completed:F,onMove:function(n,o){return Hu(ou,r,eu,t,n,Ds(n),e,o)},changed:D},c))}function T(){L("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function F(t){return L("dragOverCompleted",{insertion:t}),t&&(u?s._hideClone():s._showClone(p),p!==d&&(Os(eu,pu?pu.options.ghostClass:s.options.ghostClass,!1),Os(eu,i.ghostClass,!0)),pu!==p&&p!==Gu.active?pu=p:p===Gu.active&&pu&&(pu=null),d===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){L("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(l===eu&&!eu.animated||l===r&&!l.animated)&&(wu=null),i.dragoverBubble||e.rootEl||l===document||(eu.parentNode[Hs]._isOutsideThisEl(e.target),!t&&Uu(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function D(){su=Is(eu),fu=Is(eu,i.draggable),Qs({sortable:p,name:"change",toEl:r,newIndex:su,newDraggableIndex:fu,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ws(document,"mousemove",this._onTouchMove),ws(document,"touchmove",this._onTouchMove),ws(document,"pointermove",this._onTouchMove),ws(document,"dragover",Uu),ws(document,"mousemove",Uu),ws(document,"touchmove",Uu)},_offUpEvents:function(){var e=this.el.ownerDocument;ws(e,"mouseup",this._onDrop),ws(e,"touchend",this._onDrop),ws(e,"pointerup",this._onDrop),ws(e,"touchcancel",this._onDrop),ws(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;su=Is(eu),fu=Is(eu,n.draggable),Js("drop",this,{evt:e}),tu=eu&&eu.parentNode,su=Is(eu),fu=Is(eu,n.draggable),Gu.eventCanceled||(Cu=!1,Lu=!1,Au=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Zu(this.cloneId),Zu(this._dragStartId),this.nativeDraggable&&(ws(document,"drop",this),ws(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ms&&As(document.body,"user-select",""),As(eu,"transform",""),e&&(_u&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),nu&&nu.parentNode&&nu.parentNode.removeChild(nu),(ou===tu||pu&&"clone"!==pu.lastPutMode)&&lu&&lu.parentNode&&lu.parentNode.removeChild(lu),eu&&(this.nativeDraggable&&ws(eu,"dragend",this),Xu(eu),eu.style["will-change"]="",_u&&!Cu&&Os(eu,pu?pu.options.ghostClass:this.options.ghostClass,!1),Os(eu,this.options.chosenClass,!1),Qs({sortable:this,name:"unchoose",toEl:tu,newIndex:null,newDraggableIndex:null,originalEvent:e}),ou!==tu?(su>=0&&(Qs({rootEl:tu,name:"add",toEl:tu,fromEl:ou,originalEvent:e}),Qs({sortable:this,name:"remove",toEl:tu,originalEvent:e}),Qs({rootEl:tu,name:"sort",toEl:tu,fromEl:ou,originalEvent:e}),Qs({sortable:this,name:"sort",toEl:tu,originalEvent:e})),pu&&pu.save()):su!==cu&&su>=0&&(Qs({sortable:this,name:"update",toEl:tu,originalEvent:e}),Qs({sortable:this,name:"sort",toEl:tu,originalEvent:e})),Gu.active&&(null!=su&&-1!==su||(su=cu,fu=uu),Qs({sortable:this,name:"end",toEl:tu,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Js("nulling",this),ou=eu=tu=nu=au=lu=ru=iu=hu=vu=_u=su=fu=cu=uu=wu=xu=pu=du=Gu.dragged=Gu.ghost=Gu.clone=Gu.active=null,Du.forEach((function(e){e.checked=!0})),Du.length=mu=gu=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":eu&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,a=n.length,r=this.options;o1&&(yf.forEach((function(e){o.addAnimationState({target:e,rect:wf?Ds(e):a}),Gs(e),e.fromRect=a,t.removeAnimationState(e)})),wf=!1,function(e,t){yf.forEach((function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,o=e.insertion,a=e.activeSortable,r=e.parentEl,l=e.putSortable,i=this.options;if(o){if(n&&a._hideClone(),_f=!1,i.animation&&yf.length>1&&(wf||!n&&!a.options.sort&&!l)){var c=Ds(vf,!1,!0,!0);yf.forEach((function(e){e!==vf&&(zs(e,c),r.appendChild(e))})),wf=!0}if(!n)if(wf||Ef(),yf.length>1){var s=gf;a._showClone(t),a.options.animation&&!gf&&s&&bf.forEach((function(e){a.addAnimationState({target:e,rect:mf}),e.fromRect=mf,e.thisAnimationDuration=null}))}else a._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,o=e.activeSortable;if(yf.forEach((function(e){e.thisAnimationDuration=null})),o.options.animation&&!n&&o.multiDrag.isMultiDrag){mf=cs({},t);var a=Ls(vf,!0);mf.top-=a.f,mf.left-=a.e}},dragOverAnimationComplete:function(){wf&&(wf=!1,Ef())},drop:function(e){var t=e.originalEvent,n=e.rootEl,o=e.parentEl,a=e.sortable,r=e.dispatchSortableEvent,l=e.oldIndex,i=e.putSortable,c=i||this.sortable;if(t){var s=this.options,u=o.children;if(!xf)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Os(vf,s.selectedClass,!~yf.indexOf(vf)),~yf.indexOf(vf))yf.splice(yf.indexOf(vf),1),pf=null,Zs({sortable:a,rootEl:n,name:"deselect",targetEl:vf,originalEvt:t});else{if(yf.push(vf),Zs({sortable:a,rootEl:n,name:"select",targetEl:vf,originalEvt:t}),t.shiftKey&&pf&&a.el.contains(pf)){var f,d,p=Is(pf),h=Is(vf);if(~p&&~h&&p!==h)for(h>p?(d=p,f=h):(d=h,f=p+1);d1){var v=Ds(vf),m=Is(vf,":not(."+this.options.selectedClass+")");if(!_f&&s.animation&&(vf.thisAnimationDuration=null),c.captureAnimationState(),!_f&&(s.animation&&(vf.fromRect=v,yf.forEach((function(e){if(e.thisAnimationDuration=null,e!==vf){var t=wf?Ds(e):v;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),Ef(),yf.forEach((function(e){u[m]?o.insertBefore(e,u[m]):o.appendChild(e),m++})),l===Is(vf))){var g=!1;yf.forEach((function(e){e.sortableIndex===Is(e)||(g=!0)})),g&&r("update")}yf.forEach((function(e){Gs(e)})),c.animateAll()}hf=c}(n===o||i&&"clone"!==i.lastPutMode)&&bf.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=xf=!1,bf.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ws(document,"pointerup",this._deselectMultiDrag),ws(document,"mouseup",this._deselectMultiDrag),ws(document,"touchend",this._deselectMultiDrag),ws(document,"keydown",this._checkKeyDown),ws(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==xf&&xf||hf!==this.sortable||e&&Es(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;yf.length;){var t=yf[0];Os(t,this.options.selectedClass,!1),yf.shift(),Zs({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},cs(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[Hs];t&&t.options.multiDrag&&!~yf.indexOf(e)&&(hf&&hf!==t&&(hf.multiDrag._deselectMultiDrag(),hf=t),Os(e,t.options.selectedClass,!0),yf.push(e))},deselect:function(e){var t=e.parentNode[Hs],n=yf.indexOf(e);t&&t.options.multiDrag&&~n&&(Os(e,t.options.selectedClass,!1),yf.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return yf.forEach((function(o){var a;t.push({multiDragElement:o,index:o.sortableIndex}),a=wf&&o!==vf?-1:wf?Is(o,":not(."+e.options.selectedClass+")"):Is(o),n.push({multiDragElement:o,index:a})})),{items:us(yf),clones:[].concat(bf),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:Gu,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;cf=t},dragOverValid:function(e){var t=e.completed,n=e.target,o=e.onMove,a=e.activeSortable,r=e.changed,l=e.cancel;if(a.options.swap){var i=this.sortable.el,c=this.options;if(n&&n!==i){var s=cf;!1!==o(n)?(Os(n,c.swapClass,!0),cf=n):cf=null,s&&s!==cf&&Os(s,c.swapClass,!1)}r(),t(!0),l()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,o=e.dragEl,a=n||this.sortable,r=this.options;cf&&Os(cf,r.swapClass,!1),cf&&(r.swap||n&&n.options.swap)&&o!==cf&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),function(e,t){var n,o,a=e.parentNode,r=t.parentNode;if(!a||!r||a.isEqualNode(t)||r.isEqualNode(e))return;n=Is(e),o=Is(t),a.isEqualNode(r)&&n1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var o=n("c6b6"),a=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"159b":function(e,t,n){var o=n("da84"),a=n("fdbc"),r=n("17c2"),l=n("9112");for(var i in a){var c=o[i],s=c&&c.prototype;if(s&&s.forEach!==r)try{l(s,"forEach",r)}catch(u){s.forEach=r}}},"17c2":function(e,t,n){var o=n("b727").forEach,a=n("a640"),r=n("ae40"),l=a("forEach"),i=r("forEach");e.exports=l&&i?[].forEach:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var o=n("d066");e.exports=o("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var o=n("b622")("iterator"),a=!1;try{var r=0,l={next:function(){return{done:!!r++}},return:function(){a=!0}};l[o]=function(){return this},Array.from(l,(function(){throw 2}))}catch(i){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(i){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var o=n("d039"),a=n("b622"),r=n("2d00"),l=a("species");e.exports=function(e){return r>=51||!o((function(){var t=[];return(t.constructor={})[l]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var o=n("a691"),a=Math.max,r=Math.min;e.exports=function(e,t){var n=o(e);return n<0?a(n+t,0):r(n,t)}},"23e7":function(e,t,n){var o=n("da84"),a=n("06cf").f,r=n("9112"),l=n("6eeb"),i=n("ce4e"),c=n("e893"),s=n("94ca");e.exports=function(e,t){var n,u,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?o:m?o[h]||i(h,{}):(o[h]||{}).prototype)for(u in t){if(d=t[u],f=e.noTargetGet?(p=a(n,u))&&p.value:n[u],!s(v?u:h+(m?".":"#")+u,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(e.sham||f&&f.sham)&&r(d,"sham",!0),l(n,u,d,e)}}},"241c":function(e,t,n){var o=n("ca84"),a=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,a)}},"25f0":function(e,t,n){var o=n("6eeb"),a=n("825a"),r=n("d039"),l=n("ad6d"),i="toString",c=RegExp.prototype,s=c[i],u=r((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),f=s.name!=i;(u||f)&&o(RegExp.prototype,i,(function(){var e=a(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?l.call(e):n)}),{unsafe:!0})},"2ca0":function(e,t,n){var o,a=n("23e7"),r=n("06cf").f,l=n("50c4"),i=n("5a34"),c=n("1d80"),s=n("ab13"),u=n("c430"),f="".startsWith,d=Math.min,p=s("startsWith");a({target:"String",proto:!0,forced:!(!u&&!p&&(o=r(String.prototype,"startsWith"),o&&!o.writable)||p)},{startsWith:function(e){var t=String(c(this));i(e);var n=l(d(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return f?f.call(t,o,n):t.slice(n,n+o.length)===o}})},"2d00":function(e,t,n){var o,a,r=n("da84"),l=n("342f"),i=r.process,c=i&&i.versions,s=c&&c.v8;s?a=(o=s.split("."))[0]+o[1]:l&&(!(o=l.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=l.match(/Chrome\/(\d+)/))&&(a=o[1]),e.exports=a&&+a},"342f":function(e,t,n){var o=n("d066");e.exports=o("navigator","userAgent")||""},"35a1":function(e,t,n){var o=n("f5df"),a=n("3f8c"),r=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[o(e)]}},"37e8":function(e,t,n){var o=n("83ab"),a=n("9bf2"),r=n("825a"),l=n("df75");e.exports=o?Object.defineProperties:function(e,t){r(e);for(var n,o=l(t),i=o.length,c=0;i>c;)a.f(e,n=o[c++],t[n]);return e}},"3bbe":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var o=n("6547").charAt,a=n("69f3"),r=n("7dd0"),l="String Iterator",i=a.set,c=a.getterFor(l);r(String,"String",(function(e){i(this,{type:l,string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=o(n,a),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var o=n("23e7"),a=n("17c2");o({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"428f":function(e,t,n){var o=n("da84");e.exports=o},"44ad":function(e,t,n){var o=n("d039"),a=n("c6b6"),r="".split;e.exports=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?r.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var o=n("b622"),a=n("7c73"),r=n("9bf2"),l=o("unscopables"),i=Array.prototype;null==i[l]&&r.f(i,l,{configurable:!0,value:a(null)}),e.exports=function(e){i[l][e]=!0}},"44e7":function(e,t,n){var o=n("861d"),a=n("c6b6"),r=n("b622")("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==a(e))}},4930:function(e,t,n){var o=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var o=n("fc6a"),a=n("50c4"),r=n("23cb"),l=function(e){return function(t,n,l){var i,c=o(t),s=a(c.length),u=r(l,s);if(e&&n!=n){for(;s>u;)if((i=c[u++])!=i)return!0}else for(;s>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:l(!0),indexOf:l(!1)}},"4de4":function(e,t,n){var o=n("23e7"),a=n("b727").filter,r=n("1dde"),l=n("ae40"),i=r("filter"),c=l("filter");o({target:"Array",proto:!0,forced:!i||!c},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var o=n("0366"),a=n("7b0b"),r=n("9bdd"),l=n("e95a"),i=n("50c4"),c=n("8418"),s=n("35a1");e.exports=function(e){var t,n,u,f,d,p,h=a(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=s(h),_=0;if(y&&(g=o(g,m>2?arguments[2]:void 0,2)),null==b||v==Array&&l(b))for(n=new v(t=i(h.length));t>_;_++)p=y?g(h[_],_):h[_],c(n,_,p);else for(d=(f=b.call(h)).next,n=new v;!(u=d.call(f)).done;_++)p=y?r(f,g,[u.value,_],!0):u.value,c(n,_,p);return n.length=_,n}},"4fad":function(e,t,n){var o=n("23e7"),a=n("6f53").entries;o({target:"Object",stat:!0},{entries:function(e){return a(e)}})},"50c4":function(e,t,n){var o=n("a691"),a=Math.min;e.exports=function(e){return e>0?a(o(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var o=n("d784"),a=n("825a"),r=n("7b0b"),l=n("50c4"),i=n("a691"),c=n("1d80"),s=n("8aa5"),u=n("14c3"),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;o("replace",2,(function(e,t,n,o){var m=o.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=o.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,o){var a=c(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,a,o):t.call(String(a),n,o)},function(e,o){if(!m&&g||"string"==typeof o&&-1===o.indexOf(y)){var r=n(t,e,this,o);if(r.done)return r.value}var c=a(e),p=String(this),h="function"==typeof o;h||(o=String(o));var v=c.global;if(v){var _=c.unicode;c.lastIndex=0}for(var w=[];;){var x=u(c,p);if(null===x)break;if(w.push(x),!v)break;""===String(x[0])&&(c.lastIndex=s(p,l(c.lastIndex),_))}for(var k,E="",C=0,S=0;S=C&&(E+=p.slice(C,A)+j,C=A+O.length)}return E+p.slice(C)}];function b(e,n,o,a,l,i){var c=o+e.length,s=a.length,u=v;return void 0!==l&&(l=r(l),u=h),t.call(i,u,(function(t,r){var i;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,o);case"'":return n.slice(c);case"<":i=l[r.slice(1,-1)];break;default:var u=+r;if(0===u)return t;if(u>s){var f=p(u/10);return 0===f?t:f<=s?void 0===a[f-1]?r.charAt(1):a[f-1]+r.charAt(1):t}i=a[u-1]}return void 0===i?"":i}))}}))},5692:function(e,t,n){var o=n("c430"),a=n("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var o=n("d066"),a=n("241c"),r=n("7418"),l=n("825a");e.exports=o("Reflect","ownKeys")||function(e){var t=a.f(l(e)),n=r.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var o=n("44e7");e.exports=function(e){if(o(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){var o=n("23e7"),a=n("a2bf"),r=n("7b0b"),l=n("50c4"),i=n("1c0b"),c=n("65f0");o({target:"Array",proto:!0},{flatMap:function(e){var t,n=r(this),o=l(n.length);return i(e),(t=c(n,0)).length=a(t,n,n,o,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var o=n("a691"),a=n("1d80"),r=function(e){return function(t,n){var r,l,i=String(a(t)),c=o(n),s=i.length;return c<0||c>=s?e?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===s||(l=i.charCodeAt(c+1))<56320||l>57343?e?i.charAt(c):r:e?i.slice(c,c+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:r(!1),charAt:r(!0)}},"65f0":function(e,t,n){var o=n("861d"),a=n("e8b5"),r=n("b622")("species");e.exports=function(e,t){var n;return a(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!a(n.prototype)?o(n)&&null===(n=n[r])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var o,a,r,l=n("7f9a"),i=n("da84"),c=n("861d"),s=n("9112"),u=n("5135"),f=n("f772"),d=n("d012"),p=i.WeakMap;if(l){var h=new p,v=h.get,m=h.has,g=h.set;o=function(e,t){return g.call(h,e,t),t},a=function(e){return v.call(h,e)||{}},r=function(e){return m.call(h,e)}}else{var y=f("state");d[y]=!0,o=function(e,t){return s(e,y,t),t},a=function(e){return u(e,y)?e[y]:{}},r=function(e){return u(e,y)}}e.exports={set:o,get:a,has:r,enforce:function(e){return r(e)?a(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var o=n("da84"),a=n("9112"),r=n("5135"),l=n("ce4e"),i=n("8925"),c=n("69f3"),s=c.get,u=c.enforce,f=String(String).split("String");(e.exports=function(e,t,n,i){var c=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,d=!!i&&!!i.noTargetGet;"function"==typeof n&&("string"!=typeof t||r(n,"name")||a(n,"name",t),u(n).source=f.join("string"==typeof t?t:"")),e!==o?(c?!d&&e[t]&&(s=!0):delete e[t],s?e[t]=n:a(e,t,n)):s?e[t]=n:l(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||i(this)}))},"6f53":function(e,t,n){var o=n("83ab"),a=n("df75"),r=n("fc6a"),l=n("d1e7").f,i=function(e){return function(t){for(var n,i=r(t),c=a(i),s=c.length,u=0,f=[];s>u;)n=c[u++],o&&!l.call(i,n)||f.push(e?[n,i[n]]:i[n]);return f}};e.exports={entries:i(!0),values:i(!1)}},"73d9":function(e,t,n){n("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var o=n("428f"),a=n("5135"),r=n("e538"),l=n("9bf2").f;e.exports=function(e){var t=o.Symbol||(o.Symbol={});a(t,e)||l(t,e,{value:r.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var o=n("1d80");e.exports=function(e){return Object(o(e))}},"7c73":function(e,t,n){var o,a=n("825a"),r=n("37e8"),l=n("7839"),i=n("d012"),c=n("1be4"),s=n("cc12"),u=n("f772"),f="prototype",d="script",p=u("IE_PROTO"),h=function(){},v=function(e){return"<"+d+">"+e+""},m=function(){try{o=document.domain&&new ActiveXObject("htmlfile")}catch(r){}var e,t,n;m=o?function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t}(o):(t=s("iframe"),n="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F);for(var a=l.length;a--;)delete m[f][l[a]];return m()};i[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=a(e),n=new h,h[f]=null,n[p]=e):n=m(),void 0===t?n:r(n,t)}},"7dd0":function(e,t,n){var o=n("23e7"),a=n("9ed3"),r=n("e163"),l=n("d2bb"),i=n("d44e"),c=n("9112"),s=n("6eeb"),u=n("b622"),f=n("c430"),d=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g="keys",y="values",b="entries",_=function(){return this};e.exports=function(e,t,n,u,p,w,x){a(n,t,u);var k,E,C,S=function(e){if(e===p&&F)return F;if(!v&&e in L)return L[e];switch(e){case g:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},O=t+" Iterator",A=!1,L=e.prototype,T=L[m]||L["@@iterator"]||p&&L[p],F=!v&&T||S(p),D="Array"==t&&L.entries||T;if(D&&(k=r(D.call(new e)),h!==Object.prototype&&k.next&&(f||r(k)===h||(l?l(k,h):"function"!=typeof k[m]&&c(k,m,_)),i(k,O,!0,!0),f&&(d[O]=_))),p==y&&T&&T.name!==y&&(A=!0,F=function(){return T.call(this)}),f&&!x||L[m]===F||c(L,m,F),d[t]=F,p)if(E={values:S(y),keys:w?F:S(g),entries:S(b)},x)for(C in E)(v||A||!(C in L))&&s(L,C,E[C]);else o({target:t,proto:!0,forced:v||A},E);return E}},"7f9a":function(e,t,n){var o=n("da84"),a=n("8925"),r=o.WeakMap;e.exports="function"==typeof r&&/native code/.test(a(r))},"825a":function(e,t,n){var o=n("861d");e.exports=function(e){if(!o(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var o=n("d039");e.exports=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){var o=n("c04e"),a=n("9bf2"),r=n("5c6c");e.exports=function(e,t,n){var l=o(t);l in e?a.f(e,l,r(0,n)):e[l]=n}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},8875:function(e,t,n){var o,a,r;"undefined"!=typeof self&&self,a=[],void 0===(r="function"==typeof(o=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,o,a,r=/@([^@]*):(\d+):(\d+)\s*$/gi,l=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(d.stack)||r.exec(d.stack),i=l&&l[1]||!1,c=l&&l[2]||!1,s=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");i===s&&(n=document.documentElement.outerHTML,o=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*
正在加载中,请稍等 ...
\ No newline at end of file diff --git a/manifest.webmanifest b/manifest.webmanifest new file mode 100644 index 00000000..7d4f996d --- /dev/null +++ b/manifest.webmanifest @@ -0,0 +1 @@ +{"name":"yft-design","short_name":"yft-design","start_url":"./index.html","display":"standalone","background_color":"#000000","lang":"en","scope":"./","theme_color":"#d14424","icons":[{"src":"/img/icons/yft-design-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/img/icons/yft-design-512x512.png","sizes":"512x512","type":"image/png"},{"src":"/img/icons/yft-design-192x192.png","sizes":"192x192","type":"image/png","purpose":"maskable"},{"src":"/img/icons/yft-design-512x512.png","sizes":"512x512","type":"image/png","purpose":"maskable"}]} diff --git a/nYtBCuVtfK.txt b/nYtBCuVtfK.txt new file mode 100644 index 00000000..2bc33a0e --- /dev/null +++ b/nYtBCuVtfK.txt @@ -0,0 +1 @@ +65c72e7981788f7c732ed70fbd3d78c0 \ No newline at end of file diff --git a/resource/color/shading.json b/resource/color/shading.json new file mode 100644 index 00000000..e920f8d1 --- /dev/null +++ b/resource/color/shading.json @@ -0,0 +1 @@ +[{"title":"Waves - 1","slug":"waves-1","mode":"stroke","colors":5,"maxStroke":6.5,"maxScale":16,"maxSpacing":[0,10],"width":120,"height":80,"vHeight":20,"tags":["waves","curves"],"path":"~~~"},{"title":"Waves - 2","slug":"waves-2","mode":"stroke","colors":5,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,10],"width":80,"height":80,"vHeight":20,"tags":["waves","curves"],"path":"~~~"},{"title":"Waves - 3","slug":"waves-3","mode":"stroke","colors":5,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,10],"width":40,"height":80,"vHeight":20,"tags":["waves","curves"],"path":"~~~"},{"title":"Waves - 5","slug":"waves-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":15.825,"height":26.667,"vHeight":0,"tags":["waves","curves"],"path":"~"},{"title":"Waves - 4","slug":"waves-4","mode":"stroke","colors":2,"maxStroke":4,"maxScale":10,"maxSpacing":[0,0],"width":70,"height":8,"vHeight":0,"tags":["waves","curves"],"path":""},{"title":"Waves - 6","slug":"waves-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":16.591,"height":26.667,"vHeight":0,"tags":["waves","curves"],"path":"~"},{"title":"Waves - 7","slug":"waves-7","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":35.584,"height":30.585,"vHeight":0,"tags":["waves","curves"],"path":"~"},{"title":"Chevron - 1","slug":"chevron-1","mode":"stroke-join","colors":5,"maxStroke":10,"maxScale":16,"maxSpacing":[0,10],"width":40,"height":80,"vHeight":20,"tags":["chevron","lines"],"path":"~~~"},{"title":"Chevron - 2","slug":"chevron-2","mode":"stroke-join","colors":5,"maxStroke":4.5,"maxScale":16,"maxSpacing":[0,10],"width":40,"height":80,"vHeight":20,"tags":["chevron","lines"],"path":"~~~"},{"title":"Chevron - 3","slug":"chevron-3","mode":"stroke-join","colors":5,"maxStroke":7,"maxScale":16,"maxSpacing":[0,10],"width":20,"height":80,"vHeight":20,"tags":["chevron","lines"],"path":"~~~"},{"title":"Straight Lines","slug":"straight-lines","mode":"stroke","colors":5,"maxStroke":19.5,"maxScale":12,"maxSpacing":[10,10],"width":20,"height":80,"vHeight":20,"tags":["straight lines"],"path":"~~~"},{"title":"Brick Wall - 2","slug":"brick-wall-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":30,"vHeight":0,"tags":["brick wall","lines"],"path":"~"},{"title":"Cross Section","slug":"cross-section","mode":"stroke","colors":2,"maxStroke":19.5,"maxScale":12,"maxSpacing":[10,10],"width":20,"height":20,"vHeight":0,"tags":["cross section","lines"],"path":""},{"title":"Brick Wall - 1","slug":"brick-wall-1","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,0],"width":30,"height":30,"vHeight":0,"tags":["brick wall","lines"],"path":""},{"title":"Herringbone - 2","slug":"herringbone-2","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Herringbone - 3","slug":"herringbone-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 1","slug":"herringbone-1","mode":"stroke","colors":2,"maxStroke":8.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":20,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Herringbone - 4","slug":"herringbone-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 5","slug":"herringbone-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 6","slug":"herringbone-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":"~"},{"title":"Herringbone - 7","slug":"herringbone-7","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Herringbone - 8","slug":"herringbone-8","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["herringbone","lines"],"path":""},{"title":"Flower - 1","slug":"flower-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["flower","floral"],"path":"~"},{"title":"Flower - 2","slug":"flower-2","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["flower","floral"],"path":"~"},{"title":"Flower - 3","slug":"flower-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[20,20],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":""},{"title":"Flower - 4","slug":"flower-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":""},{"title":"Flower - 5","slug":"flower-5","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":"~~~"},{"title":"Flower - 6","slug":"flower-6","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":40,"vHeight":0,"tags":["flower","floral"],"path":""},{"title":"Flower - 7","slug":"flower-7","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["flower","floral"],"path":"~~"},{"title":"Plus - 1","slug":"plus-1","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,10],"width":20,"height":20,"vHeight":0,"tags":["plus","cross"],"path":""},{"title":"Plus - 2","slug":"plus-2","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[6,6],"width":20,"height":20,"vHeight":0,"tags":["plus","cross"],"path":""},{"title":"Plus - 4","slug":"plus-4","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":32,"height":32,"vHeight":0,"tags":["plus","cross"],"path":"~"},{"title":"Circles - 1","slug":"circles-1","mode":"stroke","colors":3,"maxStroke":15,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Plus - 3","slug":"plus-3","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":32,"height":32,"vHeight":0,"tags":["plus","cross"],"path":"~"},{"title":"Circles - 2","slug":"circles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Circles - 3","slug":"circles-3","mode":"stroke","colors":2,"maxStroke":15,"maxScale":16,"maxSpacing":[20,20],"width":20,"height":20,"vHeight":0,"tags":["circles"],"path":""},{"title":"Circles - 4","slug":"circles-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[20,20],"width":40,"height":40,"vHeight":0,"tags":["circles"],"path":""},{"title":"Circles - 5","slug":"circles-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Circles - 7","slug":"circles-7","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["circles"],"path":""},{"title":"Circles - 6","slug":"circles-6","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Concentric Circles - 1","slug":"concentric-circles-1","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":48,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Concentric Circles - 2","slug":"concentric-circles-2","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":36,"height":36,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Adjointed Diamonds","slug":"adjointed-diamonds","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["adjointed diamonds"],"path":"~"},{"title":"Concentric Circles - 3","slug":"concentric-circles-3","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":46.5,"height":46.5,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Adjointed Circles","slug":"adjointed-circles","mode":"stroke","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["adjointed circles"],"path":"~"},{"title":"Diamonds - 2","slug":"diamonds-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":100,"vHeight":0,"tags":["diamonds","rhombus"],"path":"~"},{"title":"Diamonds - 3","slug":"diamonds-3","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[10,0],"width":32,"height":32,"vHeight":0,"tags":["diamonds","rhombus"],"path":""},{"title":"Hexagon - 1","slug":"hexagon-1","mode":"stroke","colors":2,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":29,"height":50.115,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 2","slug":"hexagon-2","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[10,10],"width":29,"height":50.115,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 3","slug":"hexagon-3","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[10,10],"width":29,"height":50.115,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 4","slug":"hexagon-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":58,"height":66.981,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 5","slug":"hexagon-5","mode":"stroke-join","colors":2,"maxStroke":8,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":59.428,"vHeight":0,"tags":["hexagon"],"path":""},{"title":"Hexagon - 6","slug":"hexagon-6","mode":"stroke-join","colors":2,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,0],"width":58,"height":100.23,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Diamonds - 1","slug":"diamonds-1","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["diamonds","rhombus"],"path":""},{"title":"Hexagon - 7","slug":"hexagon-7","mode":"stroke-join","colors":2,"maxStroke":5.5,"maxScale":16,"maxSpacing":[0,0],"width":58,"height":100.23,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Hexagon - 8","slug":"hexagon-8","mode":"stroke","colors":2,"maxStroke":6.5,"maxScale":16,"maxSpacing":[0,0],"width":50.41,"height":87,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Overlapping Hexagons","slug":"overlapping-hexagons","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":68,"height":61.151,"vHeight":0,"tags":["overlapping hexagons"],"path":""},{"title":"Squares & Squares - 2","slug":"squares-and-squares-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":80,"height":80,"vHeight":0,"tags":["squares & squares"],"path":"~"},{"title":"Squares & Squares - 1","slug":"squares-and-squares-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & squares"],"path":"~"},{"title":"Squares & Diamonds","slug":"squares-and-diamonds","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & diamonds"],"path":"~"},{"title":"Squares & Circles - 2","slug":"squares-and-circles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["squares & circles"],"path":"~"},{"title":"Squares & Plus - 1","slug":"squares-and-plus-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & plus","cross"],"path":"~"},{"title":"Squares & Plus - 2","slug":"squares-and-plus-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["squares & plus","cross"],"path":"~"},{"title":"Squares & Stars - 1","slug":"squares-and-stars-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & stars"],"path":"~"},{"title":"Squares & Stars - 2","slug":"squares-and-stars-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & stars"],"path":"~"},{"title":"Stars & Lines - 1","slug":"stars-and-lines-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,10],"width":20,"height":40,"vHeight":0,"tags":["stars & lines","stripes"],"path":"~"},{"title":"Stars & Lines - 2","slug":"stars-and-lines-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,5],"width":20,"height":35,"vHeight":0,"tags":["stars & lines","stripes"],"path":"~"},{"title":"Triangles - 1","slug":"triangles-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[40,40],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 2","slug":"triangles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[20,20],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 3","slug":"triangles-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Squares & Circles - 1","slug":"squares-and-circles-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[10,10],"width":40,"height":40,"vHeight":0,"tags":["squares & circles"],"path":"~"},{"title":"Triangles - 5","slug":"triangles-5","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 7","slug":"triangles-7","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":30,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 6","slug":"triangles-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 8","slug":"triangles-8","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":20,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 9","slug":"triangles-9","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":80,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 10","slug":"triangles-10","mode":"stroke-join","colors":2,"maxStroke":4.5,"maxScale":16,"maxSpacing":[0,0],"width":23.07,"height":40,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Inverted Triangles","slug":"inverted-triangles","mode":"stroke","colors":2,"maxStroke":5.5,"maxScale":10,"maxSpacing":[0,0],"width":16.5,"height":32.877,"vHeight":0,"tags":["inverted triangles"],"path":""},{"title":"Checkerboard","slug":"checkerboard","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["checkerboard","lines","squares"],"path":"~"},{"title":"Triangles - 4","slug":"triangles-4","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":40,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Japanese Pattern - 1","slug":"japanese-pattern-1","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":69.283,"height":40,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 2","slug":"japanese-pattern-2","mode":"stroke","colors":2,"maxStroke":6.5,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":69.282,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 3","slug":"japanese-pattern-3","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,10],"width":69.141,"height":40,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 4","slug":"japanese-pattern-4","mode":"stroke","colors":2,"maxStroke":6.5,"maxScale":10,"maxSpacing":[0,0],"width":69.282,"height":40,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Japanese Pattern - 6","slug":"japanese-pattern-6","mode":"stroke-join","colors":2,"maxStroke":4,"maxScale":16,"maxSpacing":[0,0],"width":50.222,"height":29.003,"vHeight":0,"tags":["japanese pattern","country","hexagon"],"path":""},{"title":"Eyes - 1","slug":"eyes-1","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[11.5,0],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Japanese Pattern - 5","slug":"japanese-pattern-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":10,"maxSpacing":[0,30],"width":34.129,"height":45,"vHeight":0,"tags":["japanese pattern","country","waves"],"path":""},{"title":"Eyes - 2","slug":"eyes-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[11,0],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Jigsaw","slug":"jigsaw","mode":"stroke","colors":2,"maxStroke":7,"maxScale":10,"maxSpacing":[0,0],"width":160,"height":160,"vHeight":0,"tags":["jigsaw","puzzle"],"path":""},{"title":"Eyes - 4","slug":"eyes-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,40],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Eyes - 3","slug":"eyes-3","mode":"stroke","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,40],"width":40,"height":40,"vHeight":0,"tags":["eyes","curves"],"path":""},{"title":"Octagons - 2","slug":"octagons-2","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["octagons"],"path":""},{"title":"Octagons - 1","slug":"octagons-1","mode":"stroke-join","colors":3,"maxStroke":9.5,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["octagons"],"path":"~"},{"title":"Railroad","slug":"railroad","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":16,"maxSpacing":[10,0],"width":30,"height":30,"vHeight":0,"tags":["railroad","lines"],"path":""},{"title":"Lines - 2","slug":"lines-2","mode":"stroke-join","colors":3,"maxStroke":15,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["lines"],"path":"~"},{"title":"Scales - 1","slug":"scales-1","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Lines - 1","slug":"lines-1","mode":"stroke-join","colors":3,"maxStroke":15,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["lines"],"path":"~"},{"title":"Scales - 2","slug":"scales-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Scales - 3","slug":"scales-3","mode":"stroke","colors":2,"maxStroke":2,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":13,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Scales - 4","slug":"scales-4","mode":"stroke","colors":2,"maxStroke":2,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":13,"vHeight":0,"tags":["scales","clouds","fish"],"path":""},{"title":"Leaves - 2","slug":"leaves-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 1","slug":"leaves-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 3","slug":"leaves-3","mode":"stroke-join","colors":3,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 4","slug":"leaves-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["leaves"],"path":""},{"title":"Leaves - 6","slug":"leaves-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":38.907,"height":70,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 5","slug":"leaves-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":44.921,"height":50,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Leaves - 7","slug":"leaves-7","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["leaves"],"path":"~~"},{"title":"Leaves - 8","slug":"leaves-8","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":68.436,"vHeight":0,"tags":["leaves"],"path":"~"},{"title":"Zebra","slug":"zebra","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["zebra","animals"],"path":""},{"title":"Memphis Pattern - 2","slug":"memphis-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~"},{"title":"Pipes","slug":"pipes","mode":"stroke-join","colors":2,"maxStroke":5,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["pipes"],"path":""},{"title":"Memphis Pattern - 1","slug":"memphis-1","mode":"stroke-join","colors":5,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":70,"height":70,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Memphis Pattern - 3","slug":"memphis-3","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~"},{"title":"Memphis Pattern - 4","slug":"memphis-4","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Memphis Pattern - 6","slug":"memphis-6","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Greek Key","slug":"greek-key","mode":"stroke-join","colors":2,"maxStroke":5,"maxScale":16,"maxSpacing":[20,20],"width":62,"height":68,"vHeight":0,"tags":["greek key","country"],"path":""},{"title":"Memphis Pattern - 5","slug":"memphis-5","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":45,"height":110,"vHeight":0,"tags":["memphis pattern"],"path":"~~~"},{"title":"Chinese Pattern - 1","slug":"chinese-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"Chinese Pattern - 2","slug":"chinese-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["chinese pattern","country"],"path":""},{"title":"Chinese Pattern - 3","slug":"chinese-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"Chinese Pattern - 9","slug":"chinese-9","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"Chinese Pattern - 4","slug":"chinese-4","mode":"stroke-join","colors":2,"maxStroke":9.5,"maxScale":10,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["chinese pattern","country"],"path":""},{"title":"Chinese Pattern - 5","slug":"chinese-5","mode":"stroke-join","colors":5,"maxStroke":7,"maxScale":10,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["chinese pattern","country"],"path":"~~~"},{"title":"Chinese Pattern - 7","slug":"chinese-7","mode":"stroke-join","colors":4,"maxStroke":5,"maxScale":10,"maxSpacing":[0,0],"width":48,"height":48,"vHeight":0,"tags":["chinese pattern","country"],"path":"~~"},{"title":"Chinese Pattern - 8","slug":"chinese-8","mode":"stroke-join","colors":3,"maxStroke":9.5,"maxScale":10,"maxSpacing":[0,0],"width":36,"height":36,"vHeight":0,"tags":["chinese pattern","country"],"path":"~"},{"title":"New Pattern - 1","slug":"new-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":48,"vHeight":0,"tags":["new pattern"],"path":"~"},{"title":"New Pattern - 3","slug":"new-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Chinese Pattern - 6","slug":"chinese-6","mode":"stroke-join","colors":2,"maxStroke":5,"maxScale":10,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["chinese pattern","country"],"path":""},{"title":"New Pattern - 4","slug":"new-4","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":"~~~"},{"title":"New Pattern - 5","slug":"new-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 2","slug":"new-2","mode":"stroke-join","colors":2,"maxStroke":8,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 6","slug":"new-6","mode":"stroke-join","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 8","slug":"new-8","mode":"stroke-join","colors":4,"maxStroke":3.5,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":"~~"},{"title":"New Pattern - 9","slug":"new-9","mode":"stroke-join","colors":4,"maxStroke":5,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":"~~"},{"title":"New Pattern - 10","slug":"new-10","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 11","slug":"new-11","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 14","slug":"new-14","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 13","slug":"new-13","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 7","slug":"new-7","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":25,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 15","slug":"new-15","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":29,"height":33.487,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"New Pattern - 16","slug":"new-16","mode":"stroke-join","colors":2,"maxStroke":12,"maxScale":16,"maxSpacing":[0,0],"width":87,"height":50.232,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Double Bubble - 1","slug":"double-bubble-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["double bubbles"],"path":"~"},{"title":"New Pattern - 17","slug":"new-17","mode":"stroke","colors":2,"maxStroke":8.5,"maxScale":16,"maxSpacing":[0,0],"width":20,"height":20,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Double Bubble - 2","slug":"double-bubble-2","mode":"stroke","colors":3,"maxStroke":5,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["double bubbles"],"path":"~"},{"title":"Stars - 1","slug":"stars-1","mode":"stroke-join","colors":3,"maxStroke":8,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["stars"],"path":"~"},{"title":"Stars - 3","slug":"stars-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["stars"],"path":"~"},{"title":"Stars - 2","slug":"stars-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["stars"],"path":"~"},{"title":"Stars - 4","slug":"stars-4","mode":"fill","colors":4,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["stars"],"path":"~~"},{"title":"Stars - 5","slug":"stars-5","mode":"fill","colors":4,"maxStroke":1,"maxScale":20,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["stars"],"path":"~~"},{"title":"Stars - 6","slug":"stars-6","mode":"fill","colors":4,"maxStroke":1,"maxScale":20,"maxSpacing":[0,0],"width":100,"height":80,"vHeight":0,"tags":["stars"],"path":"~~"},{"title":"Semicircles - 1","slug":"semicircles-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["semicircles"],"path":"~"},{"title":"Songket Pattern - 1","slug":"songket-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":61.125,"height":63.75,"vHeight":0,"tags":["songket pattern","malaysia"],"path":"~~~"},{"title":"Christmas Tree - 1","slug":"christmas-tree-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":70,"vHeight":0,"tags":["christmas","tree","holidays"],"path":"~~~"},{"title":"Candy Cane - 1","slug":"candy-cane-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":40,"vHeight":0,"tags":["christmas","candy","cane","holidays","santaclaus"],"path":"~"},{"title":"Christmas Bells - 1","slug":"christmas-bells-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["christmas","jingle","bells","holidays","santaclaus"],"path":"~"},{"title":"Christmas Pattern - 1","slug":"christmas-pattern-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":""},{"title":"Christmas Pattern - 2","slug":"christmas-pattern-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"New Pattern - 12","slug":"new-12","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["new pattern"],"path":""},{"title":"Snowflakes - 1","slug":"snowflakes-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["christmas","snowflakes","holidays","winter","santaclaus"],"path":"~"},{"title":"Christmas Pattern - 3","slug":"christmas-pattern-3","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"Santa Claus","slug":"santa-claus","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[30,30],"width":36.92,"height":45,"vHeight":0,"tags":["christmas","holidays","winter","santaclaus"],"path":"~~~"},{"title":"Christmas Gift","slug":"christmas-gift","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":40,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"Cubes - 1","slug":"cubes-1","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Christmas Tree Balls","slug":"christmas-tree-balls","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":90,"height":90,"vHeight":0,"tags":["christmas","tree","holidays","santaclaus"],"path":"~"},{"title":"Cubes - 3","slug":"cubes-3","mode":"stroke","colors":2,"maxStroke":9,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Cubes - 2","slug":"cubes-2","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Stained Glass","slug":"stained-glass","mode":"stroke","colors":2,"maxStroke":7,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":30,"vHeight":0,"tags":["cubes","squares","lines"],"path":""},{"title":"Tiles - 1","slug":"tiles-1","mode":"stroke","colors":2,"maxStroke":12,"maxScale":16,"maxSpacing":[0,0],"width":45,"height":51.96,"vHeight":0,"tags":["tiles","circles"],"path":""},{"title":"Mexican Pattern - 1","slug":"mexican-pattern-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["mexican pattern"],"path":"~~~"},{"title":"Mexican Pattern - 2","slug":"mexican-pattern-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["mexican pattern"],"path":"~~"},{"title":"Rectangles & Squares - 1","slug":"rectangles-and-squares-1","mode":"stroke","colors":2,"maxStroke":9,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":60,"vHeight":0,"tags":["rectangles & squares"],"path":""},{"title":"Ethnic Pattern - 1","slug":"ethnic-pattern-1","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["ethnic pattern"],"path":"~~"},{"title":"Plaid Pattern - 1","slug":"plaid-pattern-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":30,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":"~"},{"title":"Ethnic Pattern - 2","slug":"ethnic-pattern-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["ethnic pattern"],"path":"~~"},{"title":"Ethnic Pattern - 3","slug":"ethnic-pattern-3","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["ethnic pattern"],"path":"~~"},{"title":"Plaid Pattern - 3","slug":"plaid-pattern-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":"~"},{"title":"Plaid Pattern - 4","slug":"plaid-pattern-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":"~"},{"title":"Doodle Pattern - 1","slug":"doodle-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["doodle pattern"],"path":"~"},{"title":"Doodle Pattern - 2","slug":"doodle-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["doodle pattern"],"path":"~"},{"title":"Batik Pattern - 2","slug":"batik-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower"],"path":"~"},{"title":"Plaid Pattern - 2","slug":"plaid-pattern-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["plaid pattern","tartan","buffalo"],"path":""},{"title":"Batik Pattern - 4","slug":"batik-4","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower","diamonds"],"path":"~~"},{"title":"Batik Pattern - 5","slug":"batik-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower"],"path":"~"},{"title":"Batik Pattern - 6","slug":"batik-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","floral","flower"],"path":"~"},{"title":"Batik Pattern - 3","slug":"batik-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","diamonds"],"path":"~"},{"title":"African Pattern - 1","slug":"african-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":96,"height":144,"vHeight":0,"tags":["african pattern"],"path":""},{"title":"African Pattern - 2","slug":"african-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":96,"vHeight":0,"tags":["african pattern"],"path":""},{"title":"Batik Pattern - 1","slug":"batik-1","mode":"stroke-join","colors":3,"maxStroke":6,"maxScale":16,"maxSpacing":[0,0],"width":80,"height":80,"vHeight":0,"tags":["batik pattern","diamonds"],"path":"~"},{"title":"African Pattern - 3","slug":"african-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":96,"vHeight":0,"tags":["african pattern"],"path":""},{"title":"African Pattern - 4","slug":"african-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":48,"height":96,"vHeight":0,"tags":["african pattern"],"path":"~"},{"title":"Hexagon - 9","slug":"hexagon-9","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":73.612,"height":85,"vHeight":0,"tags":["hexagon","triangles"],"path":"~~"},{"title":"Triangles - 11","slug":"triangles-11","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":82,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Tiles - 2","slug":"tiles-2","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["tiles"],"path":"~"},{"title":"Tiles - 3","slug":"tiles-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["tiles","squares"],"path":"~"},{"title":"Tribal Pattern - 1","slug":"tribal-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":120,"height":120.1,"vHeight":0,"tags":["tribal pattern"],"path":""},{"title":"Waves - 8","slug":"waves-8","mode":"fill","colors":2,"maxStroke":1,"maxScale":10,"maxSpacing":[0,0],"width":63,"height":63.6,"vHeight":0,"tags":["waves","curves"],"path":""},{"title":"Leaves - 9","slug":"leaves-9","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["leaves"],"path":"~~~"},{"title":"Tribal Pattern - 2","slug":"tribal-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":120,"height":120.1,"vHeight":0,"tags":["tribal pattern"],"path":""},{"title":"Blobs","slug":"blobs","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["blobs"],"path":"~~~"},{"title":"African Pattern - 5","slug":"african-5","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":60,"height":120,"vHeight":0,"tags":["african pattern"],"path":"~~"},{"title":"Squares & Triangles - 1","slug":"squares-and-triangles-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["squares & squares"],"path":""},{"title":"Triangles - 12","slug":"triangles-12","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":200,"height":100,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Circles - 8","slug":"circles-8","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["circles"],"path":""},{"title":"Tribal Pattern - 3","slug":"tribal-3","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":98.25,"height":98.25,"vHeight":0,"tags":["tribal pattern","greek key","country"],"path":"~"},{"title":"Triangles - 13","slug":"triangles-13","mode":"fill","colors":2,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":75,"height":150,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Triangles - 14","slug":"triangles-14","mode":"fill","colors":3,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":65.5,"height":55.2,"vHeight":0,"tags":["triangles"],"path":"~"},{"title":"Triangles - 15","slug":"triangles-15","mode":"fill","colors":2,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":122.75,"height":125.8,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Triangles - 16","slug":"triangles-16","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":90.6,"height":90.6,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Concentric Circles - 4","slug":"concentric-circles-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":120,"height":69.336,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Concentric Circles - 5","slug":"concentric-circles-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["concentric circles"],"path":"~"},{"title":"Circles - 9","slug":"circles-9","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":65,"height":65,"vHeight":0,"tags":["circles"],"path":"~~~"},{"title":"Concentric Circles - 6","slug":"concentric-circles-6","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":90,"height":90,"vHeight":0,"tags":["concentric circles"],"path":"~~~"},{"title":"Stripes - 1","slug":"stripes-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["straight lines","stripes","lines"],"path":"~~~"},{"title":"Stripes - 2","slug":"stripes-2","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["straight lines","stripes","lines"],"path":"~~~"},{"title":"Chevron - 4","slug":"chevron-4","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":50,"vHeight":0,"tags":["chevron","lines"],"path":"~"},{"title":"Chevron - 5","slug":"chevron-5","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":65.5,"height":55.2,"vHeight":0,"tags":["chevron","lines"],"path":"~~"},{"title":"Terrazzo - 1","slug":"terrazzo-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":200,"height":200,"vHeight":0,"tags":["terrazzo","mosaic","tiles"],"path":"~~~"},{"title":"Geometric Pattern - 1","slug":"geometric-1","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":97.5,"height":49.15,"vHeight":0,"tags":["geometric","triangles","hexagon","diamond","rhombus"],"path":"~~"},{"title":"Halloween Pattern - 1","slug":"halloween-1","mode":"fill","colors":3,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["halloween","bats"],"path":"~"},{"title":"Halloween Pattern - 2","slug":"halloween-2","mode":"fill","colors":4,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["halloween","bats","skull"],"path":"~~"},{"title":"Halloween Pattern - 3","slug":"halloween-3","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["halloween","pumpkin"],"path":"~~~"},{"title":"Halloween Pattern - 4","slug":"halloween-4","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["halloween","candy","trick","treat"],"path":"~~~"},{"title":"Halloween Pattern - 5","slug":"halloween-5","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":75,"height":100,"vHeight":0,"tags":["halloween","pumpkin"],"path":"~~~"},{"title":"Halloween Pattern - 6","slug":"halloween-6","mode":"fill","colors":3,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":60,"height":80,"vHeight":0,"tags":["halloween","pumpkin"],"path":"~"},{"title":"Hexagon - 10","slug":"hexagon-10","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":69.3,"height":46.8,"vHeight":0,"tags":["hexagon","triangles"],"path":""},{"title":"Hexagon - 11","slug":"hexagon-11","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":94.4,"height":51.6,"vHeight":0,"tags":["hexagon","triangles"],"path":"~~"},{"title":"Squares - 1","slug":"squares-1","mode":"fill","colors":5,"maxStroke":1,"maxScale":12,"maxSpacing":[0,0],"width":150,"height":150,"vHeight":0,"tags":["squares"],"path":"~~~"},{"title":"Sprinkles - 1","slug":"sprinkles-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["sprinkles"],"path":""},{"title":"Squares - 2","slug":"squares-2","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":65,"height":65,"vHeight":0,"tags":["squares"],"path":"~~~"},{"title":"Geometric Pattern - 2","slug":"geometric-2","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":180,"height":45,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Geometric Pattern - 4","slug":"geometric-4","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Cubes - 4","slug":"cubes-4","mode":"fill","colors":3,"maxStroke":9,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":60,"vHeight":0,"tags":["cubes","squares","lines"],"path":"~"},{"title":"Circles - 10","slug":"circles-10","mode":"fill","colors":2,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":25,"height":50,"vHeight":0,"tags":["circles"],"path":""},{"title":"Geometric Pattern - 3","slug":"geometric-3","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":90,"height":45,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Circles - 12","slug":"circles-12","mode":"fill","colors":3,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Triangles - 17","slug":"triangles-17","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":150,"height":130,"vHeight":0,"tags":["triangles"],"path":"~~"},{"title":"Geometric Pattern - 5","slug":"geometric-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":116.75,"height":120,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Triangles - 18","slug":"triangles-18","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":40,"height":40,"vHeight":0,"tags":["triangles"],"path":""},{"title":"Circles - 11","slug":"circles-11","mode":"fill","colors":3,"maxStroke":10,"maxScale":16,"maxSpacing":[0,0],"width":24.96,"height":71.38,"vHeight":0,"tags":["circles"],"path":"~"},{"title":"Geometric Pattern - 6","slug":"geometric-6","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":75,"height":75,"vHeight":0,"tags":["geometric"],"path":""},{"title":"Squiggle","slug":"squiggle-1","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["squiggle"],"path":""},{"title":"Moroccan Pattern - 1","slug":"moroccan-1","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":100,"height":100,"vHeight":0,"tags":["moroccan"],"path":"~~"},{"title":"Moroccan Pattern - 2","slug":"moroccan-2","mode":"fill","colors":5,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":50,"height":50,"vHeight":0,"tags":["moroccan"],"path":"~~~"},{"title":"Japanese Pattern - 7","slug":"japanese-pattern-7","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":72.69,"height":42,"vHeight":0,"tags":["japanese pattern","country","bamboo","interlocked"],"path":"~~"},{"title":"Christmas Pattern - 4","slug":"christmas-pattern-4","mode":"fill","colors":4,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":19.46,"height":175.14,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~~"},{"title":"Christmas Pattern - 5","slug":"christmas-pattern-5","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":53.78,"height":119.06,"vHeight":0,"tags":["christmas","jingle","bells","holidays","tree","gift","leaves","santaclaus"],"path":"~"},{"title":"Plaid Pattern - 5","slug":"plaid-pattern-5","mode":"fill","colors":2,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":39.975,"height":50,"vHeight":0,"tags":["plaid pattern","tartan","buffalo","diamonds"],"path":""},{"title":"Waves - 9","slug":"waves-9","mode":"fill","colors":3,"maxStroke":1,"maxScale":16,"maxSpacing":[0,0],"width":30,"height":52,"vHeight":0,"tags":["waves","curves"],"path":"~"}] \ No newline at end of file diff --git a/resource/color/shading.json.gz b/resource/color/shading.json.gz new file mode 100644 index 00000000..6b64463b Binary files /dev/null and b/resource/color/shading.json.gz differ diff --git a/robots.txt b/robots.txt new file mode 100644 index 00000000..eb053628 --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/sw.js b/sw.js new file mode 100644 index 00000000..c811029f --- /dev/null +++ b/sw.js @@ -0,0 +1 @@ +if(!self.define){let e,s={};const i=(i,a)=>(i=new URL(i+".js",a).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(a,c)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let n={};const d=e=>i(e,r),f={module:{uri:r},exports:n,require:d};s[r]=Promise.all(a.map((e=>f[e]||d(e)))).then((e=>(c(...e),n)))}}define(["./workbox-55ed8c96"],(function(e){"use strict";e.setCacheNameDetails({prefix:"yft-design-cache"}),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/401-BIkHzDoS.css",revision:"f998d7a33315beebe022d41299b588b0"},{url:"assets/401-CoefrlKD.js",revision:"c933af182cfa9711e05e559ae96efdbd"},{url:"assets/404-CTCp2S_w.js",revision:"a59a901d88b4d7c08a46ce36469ed5bf"},{url:"assets/404-DQrWRSfw.css",revision:"28974868014ebcce41b3949a6fd0010c"},{url:"assets/clipper-lib-Cdu7DM5D.js",revision:"2e58a0a801a6718e5ee80744b0831328"},{url:"assets/element-plus-Dy-NuVsF.js",revision:"5737a2cfc1ecc737da769ebf127b34c7"},{url:"assets/fabric-Dlz3ta-n.js",revision:"390811954203cfb680f6ff6a1f581f95"},{url:"assets/github-wcmNPNiu.js",revision:"ed0de9943e64689100cd09000d3d46aa"},{url:"assets/index-BCp-Amju.js",revision:"88d5a53a8d2ae9293d3742bd6f26569b"},{url:"assets/index-CNm_-FBR.css",revision:"b81f3119b2f09fdbd216b226375f6466"},{url:"assets/index-CV6Kdia6.js",revision:"bb414ecc991bbc95178f33472b4672d3"},{url:"assets/index-DCPCqU0q.js",revision:"3097a8b9cdae0182c592f7876ce10b77"},{url:"assets/index-DHLu7O71.css",revision:"db43eb5c8f6a99b5967138d9d282a294"},{url:"assets/index-DiUOXnuw.css",revision:"76a55e0e5cad958551cd5f620dea6d32"},{url:"assets/index-DpGeSDfh.js",revision:"cfa7a27ef24246e64ae754a16105e3f1"},{url:"assets/lodash-es-DIelbCxD.js",revision:"8e11f86e452b95080759df1a2a7afb00"},{url:"assets/opentype.js-QlGfLlyt.js",revision:"9514a5efa3a4e9d3fb1d7b8ccb95acc6"},{url:"assets/pixi-_8LqhXwz.js",revision:"f8ca8c6abe322f6ad71d9f1c2fc32c60"},{url:"assets/vue-CfXu-DEr.js",revision:"83e0d0214924c3b2347d94f811a97ba1"},{url:"assets/workbox-window.prod.es5-CIVDLvzL.js",revision:"d9134a8bccb546c09144189a66f619b6"},{url:"index.html",revision:"509aaa0f25c7812c9535428b03ca83e1"},{url:"img/icons/yft-design-192x192.png",revision:"9e4ff4f2c2ad88ba102bdc924f71a993"},{url:"img/icons/yft-design-512x512.png",revision:"59ad554042e1d1e3e2e5f8b25788f3de"},{url:"manifest.webmanifest",revision:"78ee5d33f4217faa1ba27e4cc2d45b1f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"))),e.registerRoute(/.*/i,new e.NetworkFirst({cacheName:"interface-cache",plugins:[]}),"GET"),e.registerRoute(/(.*?)\.(js|css|ts)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps)/,new e.CacheFirst({cacheName:"image-cache",plugins:[]}),"GET")})); diff --git a/workbox-55ed8c96.js b/workbox-55ed8c96.js new file mode 100644 index 00000000..cde99222 --- /dev/null +++ b/workbox-55ed8c96.js @@ -0,0 +1 @@ +define(["exports"],(function(t){"use strict";try{self["workbox:core:6.5.4"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.4"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class r{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class i extends r{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:r,route:i}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=i&&i.handler;const a=t.method;if(!o&&this.i.has(a)&&(o=this.i.get(a)),!o)return;let c;try{c=o.handle({url:s,request:t,event:e,params:r})}catch(t){c=Promise.reject(t)}const h=i&&i.catchHandler;return c instanceof Promise&&(this.o||h)&&(c=c.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:r})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),c}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const r=this.t.get(s.method)||[];for(const i of r){let r;const o=i.match({url:t,sameOrigin:e,request:s,event:n});if(o)return r=o,(Array.isArray(r)&&0===r.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(r=void 0),{route:i,params:r}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let a;const c=()=>(a||(a=new o,a.addFetchListener(),a.addCacheListener()),a);function h(t,e,n){let o;if("string"==typeof t){const s=new URL(t,location.href);o=new r((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)o=new i(t,e,n);else if("function"==typeof t)o=new r(t,e,n);else{if(!(t instanceof r))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return c().registerRoute(o),o}try{self["workbox:strategies:6.5.4"]&&_()}catch(t){}const u={cacheWillUpdate:async({response:t})=>200===t.status||0===t.status?t:null},l={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},f=t=>[l.prefix,t,l.suffix].filter((t=>t&&t.length>0)).join("-"),w=t=>{(t=>{for(const e of Object.keys(l))t(e)})((e=>{"string"==typeof t[e]&&(l[e]=t[e])}))},d=t=>t||f(l.precache),p=t=>t||f(l.runtime);function y(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class g{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const m=new Set;function R(t){return"string"==typeof t?new Request(t):t}class v{constructor(t,e){this.h={},Object.assign(this,e),this.event=e.event,this.u=t,this.l=new g,this.p=[],this.m=[...t.plugins],this.R=new Map;for(const t of this.m)this.R.set(t,{});this.event.waitUntil(this.l.promise)}async fetch(t){const{event:e}=this;let n=R(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const r=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const i=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.u.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:i,response:t});return t}catch(t){throw r&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:r.clone(),request:i.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=R(t);let s;const{cacheName:n,matchOptions:r}=this.u,i=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},r),{cacheName:n});s=await caches.match(i,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:r,cachedResponse:s,request:i,event:this.event})||void 0;return s}async cachePut(t,e){const n=R(t);var r;await(r=0,new Promise((t=>setTimeout(t,r))));const i=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=i.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const a=await this.v(e);if(!a)return!1;const{cacheName:c,matchOptions:h}=this.u,u=await self.caches.open(c),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const r=y(e.url,s);if(e.url===r)return t.match(e,n);const i=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,i);for(const e of o)if(r===y(e.url,s))return t.match(e,n)}(u,i.clone(),["__WB_REVISION__"],h):null;try{await u.put(i,l?a.clone():a)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of m)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:c,oldResponse:f,newResponse:a.clone(),request:i,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.h[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=R(await t({mode:e,request:n,event:this.event,params:this.params}));this.h[s]=n}return this.h[s]}hasCallback(t){for(const e of this.u.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.u.plugins)if("function"==typeof e[t]){const s=this.R.get(e),n=n=>{const r=Object.assign(Object.assign({},n),{state:s});return e[t](r)};yield n}}waitUntil(t){return this.p.push(t),t}async doneWaiting(){let t;for(;t=this.p.shift();)await t}destroy(){this.l.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class q{constructor(t={}){this.cacheName=p(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,r=new v(this,{event:e,request:s,params:n}),i=this.q(r,s,e);return[i,this.U(i,r,s,e)]}async q(t,e,n){let r;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(r=await this.L(e,t),!r||"error"===r.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const i of t.iterateCallbacks("handlerDidError"))if(r=await i({error:s,event:n,request:e}),r)break;if(!r)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))r=await s({event:n,request:e,response:r});return r}async U(t,e,s,n){let r,i;try{r=await t}catch(i){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:r}),await e.doneWaiting()}catch(t){t instanceof Error&&(i=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:r,error:i}),e.destroy(),i)throw i}}function U(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.5.4"]&&_()}catch(t){}function b(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const r=new URL(n,location.href),i=new URL(n,location.href);return r.searchParams.set("__WB_REVISION__",e),{cacheKey:r.href,url:i.href}}class L{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class E{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this._.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this._=t}}let x,C;async function O(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const r=t.clone(),i={headers:new Headers(r.headers),status:r.status,statusText:r.statusText},o=e?e(i):i,a=function(){if(void 0===x){const t=new Response("");if("body"in t)try{new Response(t.body),x=!0}catch(t){x=!1}x=!1}return x}()?r.body:await r.blob();return new Response(a,o)}class N extends q{constructor(t={}){t.cacheName=d(t.cacheName),super(t),this.C=!1!==t.fallbackToNetwork,this.plugins.push(N.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.O(t,e):await this.N(t,e))}async N(t,e){let n;const r=e.params||{};if(!this.C)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=r.integrity,i=t.integrity,o=!i||i===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?i||s:void 0})),s&&o&&"no-cors"!==t.mode&&(this.P(),await e.cachePut(t,n.clone()))}return n}async O(t,e){this.P();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}P(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==N.copyRedirectedCacheableResponsesPlugin&&(n===N.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(N.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}N.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},N.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await O(t):t};class P{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.T=new Map,this.W=new Map,this.k=new Map,this.u=new N({cacheName:d(t),plugins:[...e,new E({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.u}precache(t){this.addToCacheList(t),this.j||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.j=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:r}=b(n),i="string"!=typeof n&&n.revision?"reload":"default";if(this.T.has(r)&&this.T.get(r)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.T.get(r),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.k.has(t)&&this.k.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:r});this.k.set(t,n.integrity)}if(this.T.set(r,t),this.W.set(r,i),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return U(t,(async()=>{const e=new L;this.strategy.plugins.push(e);for(const[e,s]of this.T){const n=this.k.get(s),r=this.W.get(e),i=new Request(e,{integrity:n,cache:r,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:i,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return U(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.T.values()),n=[];for(const r of e)s.has(r.url)||(await t.delete(r),n.push(r.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.T}getCachedURLs(){return[...this.T.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.T.get(e.href)}getIntegrityForCacheKey(t){return this.k.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}const T=()=>(C||(C=new P),C);class W extends r{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const r of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:r}={}){const i=new URL(t,location.href);i.hash="",yield i.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(i,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(r){const t=r({url:i});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(r);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.CacheFirst=class extends q{async L(t,e){let n,r=await e.cacheMatch(t);if(!r)try{r=await e.fetchAndCachePut(t)}catch(t){t instanceof Error&&(n=t)}if(!r)throw new s("no-response",{url:t.url,error:n});return r}},t.NavigationRoute=class extends r{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super((t=>this.K(t)),t),this.M=e,this.S=s}K({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.S)if(t.test(s))return!1;return!!this.M.some((t=>t.test(s)))}},t.NetworkFirst=class extends q{constructor(t={}){super(t),this.plugins.some((t=>"cacheWillUpdate"in t))||this.plugins.unshift(u),this.D=t.networkTimeoutSeconds||0}async L(t,e){const n=[],r=[];let i;if(this.D){const{id:s,promise:o}=this.I({request:t,logs:n,handler:e});i=s,r.push(o)}const o=this.F({timeoutId:i,request:t,logs:n,handler:e});r.push(o);const a=await e.waitUntil((async()=>await e.waitUntil(Promise.race(r))||await o)());if(!a)throw new s("no-response",{url:t.url});return a}I({request:t,logs:e,handler:s}){let n;return{promise:new Promise((e=>{n=setTimeout((async()=>{e(await s.cacheMatch(t))}),1e3*this.D)})),id:n}}async F({timeoutId:t,request:e,logs:s,handler:n}){let r,i;try{i=await n.fetchAndCachePut(e)}catch(t){t instanceof Error&&(r=t)}return t&&clearTimeout(t),!r&&i||(i=await n.cacheMatch(e)),i}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=d();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.clientsClaim=function(){self.addEventListener("activate",(()=>self.clients.claim()))},t.createHandlerBoundToURL=function(t){return T().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){T().precache(t)}(t),function(t){const e=T();h(new W(e,t))}(e)},t.registerRoute=h,t.setCacheNameDetails=function(t){w(t)}}));