(self["webpackChunkvue_online_editor"]=self["webpackChunkvue_online_editor"]||[]).push([[504],{38798:function(e,t,n){"use strict";n.d(t,{cM:function(){return b},uy:function(){return w},z1:function(){return C}});var r=n(62456),o=n(76250),i=2,a=.16,s=.05,l=.05,u=.15,c=5,f=4,d=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function h(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function p(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function v(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function g(e,t,n){var r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t,r<0?r+=360:r>=360&&(r-=360),r}function m(e,t,n){return 0===e.h&&0===e.s?e.s:(r=n?e.s-a*t:t===f?e.s+a:e.s+s*t,r>1&&(r=1),n&&t===c&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function y(e,t,n){var r;return r=n?e.v+l*t:e.v-u*t,r>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=c;i>0;i-=1){var a=h(r),s=p((0,o.RO)({h:g(a,i,!0),s:m(a,i,!0),v:y(a,i,!0)}));n.push(s)}n.push(p(r));for(var l=1;l<=f;l+=1){var u=h(r),b=p((0,o.RO)({h:g(u,l),s:m(u,l),v:y(u,l)}));n.push(b)}return"dark"===t.theme?d.map((function(e){var r=e.index,i=e.opacity,a=p(v((0,o.RO)(t.backgroundColor||"#141414"),(0,o.RO)(n[r]),100*i));return a})):n}var w={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A={},x={};Object.keys(w).forEach((function(e){A[e]=b(w[e]),A[e].primary=A[e][5],x[e]=b(w[e],{theme:"dark",backgroundColor:"#141414"}),x[e].primary=x[e][5]}));A.red,A.volcano,A.gold,A.orange,A.yellow,A.lime,A.green,A.cyan;var C=A.blue;A.geekblue,A.purple,A.magenta,A.grey},94619:function(e,t){"use strict";var n={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};t.A=n},98535:function(e,t){"use strict";var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};t.A=n},26211:function(e,t){"use strict";var n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};t.A=n},37525:function(e,t,n){"use strict";n.d(t,{A:function(){return ce}});var r=n(29726),o=n(38798),i=Symbol("iconContext"),a=function(){return(0,r.WQ)(i,{prefixCls:(0,r.KR)("anticon"),rootClassName:(0,r.KR)(""),csp:(0,r.KR)()})};function s(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function l(e,t){return!!e&&(!!e.contains&&e.contains(t))}var u="data-vc-order",c="vc-icon-key",f=new Map;function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):c}function h(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function p(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function v(e){return Array.from((f.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!s())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(u,p(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var i=h(t),a=i.firstChild;if(r){if("queue"===r){var l=v(i).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(u))}));if(l.length)return i.insertBefore(o,l[l.length-1].nextSibling),o}i.insertBefore(o,a)}else i.appendChild(o);return o}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(t);return v(n).find((function(n){return n.getAttribute(d(t))===e}))}function y(e,t){var n=f.get(e);if(!n||!l(document,n)){var r=g("",t),o=r.parentNode;f.set(e,o),e.removeChild(r)}}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=h(n);y(r,n);var o=m(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var i=g(e,n);return i.setAttribute(d(n),t),i}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){A(e,t,n[t])}))}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){0}function C(e,t){x(e,"[@ant-design/icons-vue] ".concat(t))}function S(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function _(e,t,n){return n?(0,r.h)(e.tag,w({key:t},n,e.attrs),(e.children||[]).map((function(n,r){return _(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):(0,r.h)(e.tag,w({key:t},e.attrs),(e.children||[]).map((function(n,r){return _(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function k(e){return(0,o.cM)(e)[0]}function E(e){return e?Array.isArray(e)?e:[e]:[]}var O="\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";function F(e){return e&&e.getRootNode&&e.getRootNode()}function T(e){return!!s()&&F(e)instanceof ShadowRoot}function P(e){return T(e)?F(e):null}var N=function(){var e=a(),t=e.prefixCls,n=e.csp,o=(0,r.nI)(),i=O;t&&(i=i.replace(/anticon/g,t.value)),(0,r.dY)((function(){if(s()){var e=o.vnode.el,t=P(e);b(i,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:t})}}))},M=["icon","primaryColor","secondaryColor"];function L(e,t){if(null==e)return{};var n,r,o=I(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function I(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){j(e,t,n[t])}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=(0,r.Kh)({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function B(e){var t=e.primaryColor,n=e.secondaryColor;D.primaryColor=t,D.secondaryColor=n||k(t),D.calculated=!!n}function W(){return R({},D)}var z=function(e,t){var n=R({},e,t.attrs),r=n.icon,o=n.primaryColor,i=n.secondaryColor,a=L(n,M),s=D;if(o&&(s={primaryColor:o,secondaryColor:i||k(o)}),C(S(r),"icon should be icon definiton, but got ".concat(r)),!S(r))return null;var l=r;return l&&"function"===typeof l.icon&&(l=R({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),_(l.icon,"svg-".concat(l.name),R({},a,{"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};z.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},z.inheritAttrs=!1,z.displayName="IconBase",z.getTwoToneColors=W,z.setTwoToneColors=B;var U=z;function K(e,t){return Y(e)||G(e,t)||H(e,t)||V()}function V(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function H(e,t){if(e){if("string"===typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function Y(e){if(Array.isArray(e))return e}function $(e){var t=E(e),n=K(t,2),r=n[0],o=n[1];return U.setTwoToneColors({primaryColor:r,secondaryColor:o})}function X(){var e=U.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var J=(0,r.pM)({name:"InsertStyles",setup:function(){return N(),function(){return null}}}),Q=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Z(e,t){return oe(e)||re(e,t)||te(e,t)||ee()}function ee(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function te(e,t){if(e){if("string"===typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function re(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function oe(e){if(Array.isArray(e))return e}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ae(e,t,n[t])}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){if(null==e)return{};var n,r,o=le(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function le(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}$(o.z1.primary);var ue=function(e,t){var n,o=ie({},e,t.attrs),i=o["class"],s=o.icon,l=o.spin,u=o.rotate,c=o.tabindex,f=o.twoToneColor,d=o.onClick,h=se(o,Q),p=a(),v=p.prefixCls,g=p.rootClassName,m=(n={},ae(n,g.value,!!g.value),ae(n,v.value,!0),ae(n,"".concat(v.value,"-").concat(s.name),Boolean(s.name)),ae(n,"".concat(v.value,"-spin"),!!l||"loading"===s.name),n),y=c;void 0===y&&d&&(y=-1);var b=u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0,w=E(f),A=Z(w,2),x=A[0],C=A[1];return(0,r.bF)("span",ie({role:"img","aria-label":s.name},h,{onClick:d,class:[m,i],tabindex:y}),[(0,r.bF)(U,{icon:s,primaryColor:x,secondaryColor:C,style:b},null),(0,r.bF)(J,null,null)])};ue.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},ue.displayName="AntdIcon",ue.inheritAttrs=!1,ue.getTwoToneColor=X,ue.setTwoToneColor=$;var ce=ue},88489:function(e,t,n){"use strict";var r=n(29726),o=n(94619),i=n(37525);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){var n=a({},e,t.attrs);return(0,r.bF)(i.A,a({},n,{icon:o.A}),null)};l.displayName="CloseOutlined",l.inheritAttrs=!1,t.A=l},26209:function(e,t,n){"use strict";var r=n(29726),o=n(98535),i=n(37525);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){var n=a({},e,t.attrs);return(0,r.bF)(i.A,a({},n,{icon:o.A}),null)};l.displayName="DownOutlined",l.inheritAttrs=!1,t.A=l},78561:function(e,t,n){"use strict";var r=n(29726),o=n(26211),i=n(37525);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){var n=a({},e,t.attrs);return(0,r.bF)(i.A,a({},n,{icon:o.A}),null)};l.displayName="LoadingOutlined",l.inheritAttrs=!1,t.A=l},62456:function(e,t,n){"use strict";n.d(t,{H:function(){return f},K6:function(){return i},Me:function(){return u},Ob:function(){return c},YL:function(){return s},_:function(){return o},g8:function(){return p},n6:function(){return h},oS:function(){return v},wE:function(){return l}});var r=n(89244);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var u=o-i;switch(s=l>.5?u/(2-o-i):u/(o+i),o){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break;default:break}a/=6}return{h:a,s:s,l:l}}function a(e,t,n){return n<0&&(n+=1),n>1&&(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 s(e,t,n){var o,i,s;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,s=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;o=a(u,l,e+1/3),i=a(u,l,e),s=a(u,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,u=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break;default:break}a/=6}return{h:a,s:u,v:s}}function u(e,t,n){e=6*(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100);var o=Math.floor(e),i=e-o,a=n*(1-t),s=n*(1-i*t),l=n*(1-(1-i)*t),u=o%6,c=[n,s,a,a,l,n][u],f=[l,n,n,s,a,a][u],d=[a,a,l,n,n,s][u];return{r:255*c,g:255*f,b:255*d}}function c(e,t,n,o){var i=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function f(e,t,n,o,i){var a=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(d(o))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function d(e){return Math.round(255*parseFloat(e)).toString(16)}function h(e){return p(e)/255}function p(e){return parseInt(e,16)}function v(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},42434:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},76250:function(e,t,n){"use strict";n.d(t,{RO:function(){return a}});var r=n(62456),o=n(42434),i=n(89244);function a(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,s=null,l=!1,u=!1;return"string"===typeof e&&(e=h(e)),"object"===typeof e&&(p(e.r)&&p(e.g)&&p(e.b)?(t=(0,r._)(e.r,e.g,e.b),l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):p(e.h)&&p(e.s)&&p(e.v)?(o=(0,i.Px)(e.s),a=(0,i.Px)(e.v),t=(0,r.Me)(e.h,o,a),l=!0,u="hsv"):p(e.h)&&p(e.s)&&p(e.l)&&(o=(0,i.Px)(e.s),s=(0,i.Px)(e.l),t=(0,r.YL)(e.h,o,s),l=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="[-\\+]?\\d+%?",l="[-\\+]?\\d*\\.\\d+%?",u="(?:".concat(l,")|(?:").concat(s,")"),c="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),f="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),d={CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+f),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+f),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+f),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function h(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=d.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=d.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=d.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=d.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=d.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=d.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=d.hex8.exec(e),n?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"}:(n=d.hex6.exec(e),n?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"}:(n=d.hex4.exec(e),n?{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"}:(n=d.hex3.exec(e),!!n&&{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"})))))))))}function p(e){return Boolean(d.CSS_UNIT.exec(String(e)))}},89244:function(e,t,n){"use strict";function r(e,t){i(e)&&(e="100%");var n=a(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)),e)}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"===typeof e&&-1!==e.indexOf("%")}function s(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function u(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:function(){return r},J$:function(){return o},Px:function(){return l},TV:function(){return s},wl:function(){return u}})},99378:function(e,t){"use strict";function n(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}t.A=n},58777:function(e,t,n){"use strict";var r=n(82681);function o(){for(var e=[],t=0;t<arguments.length;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];if(n)if((0,r.Kg)(n))e.push(n);else if((0,r.cy)(n))for(var i=0;i<n.length;i++){var a=o(n[i]);a&&e.push(a)}else if((0,r.Gv)(n))for(var s in n)n[s]&&e.push(s)}return e.join(" ")}t.A=o},65482:function(e,t,n){"use strict";var r=n(29726),o=n(33786);t.A=function(e,t){var n=(0,r.WQ)("configProvider",o.VG),i=(0,r.EW)((function(){return n.getPrefixCls(e,t.prefixCls)})),a=(0,r.EW)((function(){var e;return null!==(e=t.direction)&&void 0!==e?e:n.direction})),s=(0,r.EW)((function(){return n.getPrefixCls()})),l=(0,r.EW)((function(){return n.autoInsertSpaceInButton})),u=(0,r.EW)((function(){return n.renderEmpty})),c=(0,r.EW)((function(){return n.space})),f=(0,r.EW)((function(){return n.pageHeader})),d=(0,r.EW)((function(){return n.form})),h=(0,r.EW)((function(){return t.getTargetContainer||n.getTargetContainer})),p=(0,r.EW)((function(){return t.getPopupContainer||n.getPopupContainer})),v=(0,r.EW)((function(){var e;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:n.dropdownMatchSelectWidth})),g=(0,r.EW)((function(){return(void 0===t.virtual?!1!==n.virtual:!1!==t.virtual)&&!1!==v.value})),m=(0,r.EW)((function(){return t.size||n.componentSize})),y=(0,r.EW)((function(){var e;return t.autocomplete||(null===(e=n.input)||void 0===e?void 0:e.autocomplete)})),b=(0,r.EW)((function(){return n.csp}));return{configProvider:n,prefixCls:i,direction:a,size:m,getTargetContainer:h,getPopupContainer:p,space:c,pageHeader:f,form:d,autoInsertSpaceInButton:l,renderEmpty:u,virtual:g,dropdownMatchSelectWidth:v,rootPrefixCls:s,getPrefixCls:n.getPrefixCls,autocomplete:y,csp:b}}},63751:function(e,t){"use strict";var n=function(e){return void 0!==e&&null!==e&&""!==e};t.A=n},74495:function(e,t,n){"use strict";n.d(t,{$c:function(){return p},Gk:function(){return S},K6:function(){return C},MI:function(){return h},Oq:function(){return g},Po:function(){return A},QQ:function(){return m},cH:function(){return _},cK:function(){return d},fR:function(){return c},gd:function(){return w},kQ:function(){return y},oK:function(){return v},rU:function(){return E},sG:function(){return x},t0:function(){return b},ul:function(){return f},zO:function(){return k}});var r=n(38339),o=n(89379),i=n(82284),a=n(58777),s=n(29726),l=n(82681),u=n(63751),c=function(e){for(var t=Object.keys(e),n={},r={},o={},i=0,a=t.length;i<a;i++){var s=t[i];(0,l.Mp)(s)?(n[s[2].toLowerCase()+s.slice(3)]=e[s],r[s]=e[s]):o[s]=e[s]}return{onEvents:r,events:n,extraAttrs:o}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n={},r=/;(?![^(]*\))/g,o=/:(.+)/;return"object"===(0,i.A)(e)?e:(e.split(r).forEach((function(e){if(e){var r=e.split(o);if(r.length>1){var i=t?(0,l.PT)(r[0].trim()):r[0].trim();n[i]=r[1].trim()}}})),n)},d=function(e,t){return void 0!==e[t]},h=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=Array.isArray(t)?t:[t],i=[];return o.forEach((function(t){Array.isArray(t)?i.push.apply(i,(0,r.A)(e(t,n))):t&&t.type===s.FK?i.push.apply(i,(0,r.A)(e(t.children,n))):t&&(0,s.vv)(t)?n&&!x(t)?i.push(t):n||i.push(t):(0,u.A)(t)&&i.push(t)})),i},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,s.vv)(e))return e.type===s.FK?"default"===t?h(e.children):[]:e.children&&e.children[t]?h(e.children[t](n)):[];var r=e.$slots[t]&&e.$slots[t](n);return h(r)},v=function(e){var t,n=(null===e||void 0===e||null===(t=e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);while(n&&!n.tagName)n=n.nextSibling;return n},g=function(e){var t={};if(e.$&&e.$.vnode){var n=e.$.vnode.props||{};Object.keys(e.$props).forEach((function(r){var o=e.$props[r],i=(0,l.Tg)(r);(void 0!==o||i in n)&&(t[r]=o)}))}else if((0,s.vv)(e)&&"object"===(0,i.A)(e.type)){var r=e.props||{},o={};Object.keys(r).forEach((function(e){o[(0,l.PT)(e)]=r[e]}));var a=e.type.props||{};Object.keys(a).forEach((function(e){var n=(0,l.rQ)(a,o,e,o[e]);(void 0!==n||e in o)&&(t[e]=n)}))}return t},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=void 0;if(e.$){var i=e[t];if(void 0!==i)return"function"===typeof i&&r?i(n):i;o=e.$slots[t],o=r&&o?o(n):o}else if((0,s.vv)(e)){var a=e.props&&e.props[t];if(void 0!==a&&null!==e.props)return"function"===typeof a&&r?a(n):a;e.type===s.FK?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=r&&o?o(n):o)}return Array.isArray(o)&&(o=h(o),o=1===o.length?o[0]:o,o=0===o.length?void 0:o),o};function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?(0,o.A)((0,o.A)({},n),e.$attrs):(0,o.A)((0,o.A)({},n),e.props),c(n)[t?"onEvents":"events"]}function b(e){var t=((0,s.vv)(e)?e.props:e.$attrs)||{},n=t.class||{},r={};return"string"===typeof n?n.split(" ").forEach((function(e){r[e.trim()]=!0})):Array.isArray(n)?(0,a.A)(n).split(" ").forEach((function(e){r[e.trim()]=!0})):r=(0,o.A)((0,o.A)({},r),n),r}function w(e,t){var n=((0,s.vv)(e)?e.props:e.$attrs)||{},r=n.style||{};if("string"===typeof r)r=f(r,t);else if(t&&r){var o={};return Object.keys(r).forEach((function(e){return o[(0,l.PT)(e)]=r[e]})),o}return r}function A(e){return void 0===e||null===e||""===e||Array.isArray(e)&&0===e.length}function x(e){return e&&(e.type===s.Mw||e.type===s.FK&&0===e.children.length||e.type===s.EY&&""===e.children.trim())}function C(e){return e&&e.type===s.EY}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,(0,r.A)(e)):(null===e||void 0===e?void 0:e.type)===s.FK?t.push.apply(t,(0,r.A)(S(e.children))):t.push(e)})),t.filter((function(e){return!x(e)}))}function _(e){if(e){var t=S(e);return t.length?t:void 0}return e}function k(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!==(0,i.A)(e.type)}function E(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";return null!==(n=t[o])&&void 0!==n?n:null===(r=e[o])||void 0===r?void 0:r.call(e)}},65586:function(e,t,n){"use strict";n.d(t,{TL:function(){return a},by:function(){return u},ce:function(){return s},zg:function(){return l}});var r=n(89379),o=n(29726),i=n(30869),a=((0,i.PV)("bottomLeft","bottomRight","topLeft","topRight"),function(e){return void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down"}),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e?(0,r.A)({name:e,appear:!0,enterFromClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e,"-enter ").concat(e,"-enter-prepare"),enterToClass:"".concat(e,"-enter ").concat(e,"-enter-active"),leaveFromClass:" ".concat(e,"-leave"),leaveActiveClass:"".concat(e,"-leave ").concat(e,"-leave-active"),leaveToClass:"".concat(e,"-leave ").concat(e,"-leave-active")},t):(0,r.A)({css:!1},t);return n},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e?(0,r.A)({name:e,appear:!0,appearActiveClass:"".concat(e),appearToClass:"".concat(e,"-appear ").concat(e,"-appear-active"),enterFromClass:"".concat(e,"-appear ").concat(e,"-enter ").concat(e,"-appear-prepare ").concat(e,"-enter-prepare"),enterActiveClass:"".concat(e),enterToClass:"".concat(e,"-enter ").concat(e,"-appear ").concat(e,"-appear-active ").concat(e,"-enter-active"),leaveActiveClass:"".concat(e," ").concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-active")},t):(0,r.A)({css:!1},t);return n},u=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.Ay=o.eB},30869:function(e,t,n){"use strict";n.d(t,{GU:function(){return i},PV:function(){return r},pf:function(){return o}});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},i=function(e){var t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e}},82681:function(e,t,n){"use strict";n.d(t,{BM:function(){return w},Gv:function(){return s},Kg:function(){return a},Mp:function(){return u},PT:function(){return d},Tg:function(){return p},cl:function(){return b},cy:function(){return i},rQ:function(){return m},xc:function(){return y}});var r=n(82284),o=function(e){return"function"===typeof e},i=(Symbol("controlDefaultValue"),Array.isArray),a=function(e){return"string"===typeof e},s=function(e){return null!==e&&"object"===(0,r.A)(e)},l=/^on[^a-z]/,u=function(e){return l.test(e)},c=function(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}},f=/-(\w)/g,d=c((function(e){return e.replace(f,(function(e,t){return t?t.toUpperCase():""}))})),h=/\B([A-Z])/g,p=c((function(e){return e.replace(h,"-$1").toLowerCase()})),v=(c((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),Object.prototype.hasOwnProperty),g=function(e,t){return v.call(e,t)};function m(e,t,n,r){var i=e[n];if(null!=i){var a=g(i,"default");if(a&&void 0===r){var s=i.default;r=i.type!==Function&&o(s)?s():s}i.type===Boolean&&(g(t,n)||a?""===r&&(r=!0):r=!1)}return r}function y(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}function b(e){return"number"===typeof e?"".concat(e,"px"):e}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return"function"===typeof e?e(t):null!==e&&void 0!==e?e:n}},65801:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function l(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}n.d(t,{A:function(){return $},t:function(){return Y}});var u=Object.prototype,c=u.toString,f=u.hasOwnProperty,d=/^\s*function (\w+)/;function h(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var r=n.toString().match(d);return r?r[1]:""}return""}var p=function(e){var t,n;return!1!==l(e)&&"function"==typeof(t=e.constructor)&&!1!==l(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},v=function(e){return e},g=v,m=function(e,t){return f.call(e,t)},y=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},b=Array.isArray||function(e){return"[object Array]"===c.call(e)},w=function(e){return"[object Function]"===c.call(e)},A=function(e){return p(e)&&m(e,"_vueTypes_name")},x=function(e){return p(e)&&(m(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return m(e,t)})))};function C(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function S(e,t,n){var r;void 0===n&&(n=!1);var o=!0,i="";r=p(e)?e:{type:e};var a=A(r)?r._vueTypes_name+" - ":"";if(x(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&void 0===t)return o;b(r.type)?(o=r.type.some((function(e){return!0===S(e,t,!0)})),i=r.type.map((function(e){return h(e)})).join(" or ")):o="Array"===(i=h(r))?b(t):"Object"===i?p(t):"String"===i||"Number"===i||"Boolean"===i||"Function"===i?function(e){if(null==e)return"";var t=e.constructor.toString().match(d);return t?t[1]:""}(t)===i:t instanceof r.type}if(!o){var s=a+'value "'+t+'" should be of type "'+i+'"';return!1===n?(g(s),!1):s}if(m(r,"validator")&&w(r.validator)){var l=g,u=[];if(g=function(e){u.push(e)},o=r.validator(t),g=l,!o){var c=(u.length>1?"* ":"")+u.join("\n* ");return u.length=0,!1===n?(g(c),o):c}}return o}function _(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?w(e)||!0===S(this,e,!0)?(this.default=b(e)?function(){return[].concat(e)}:p(e)?function(){return Object.assign({},e)}:e,this):(g(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),r=n.validator;return w(r)&&(n.validator=C(r,n)),n}function k(e,t){var n=_(e,t);return Object.defineProperty(n,"validate",{value:function(e){return w(this.validator)&&g(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=C(e,this),this}})}function E(e,t,n){var r,o,i=(r=t,o={},Object.getOwnPropertyNames(r).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(r,e)})),Object.defineProperties({},o));if(i._vueTypes_name=e,!p(n))return i;var a,l,u=n.validator,c=s(n,["validator"]);if(w(u)){var f=i.validator;f&&(f=null!==(l=(a=f).__original)&&void 0!==l?l:a),i.validator=C(f?function(e){return f.call(this,e)&&u.call(this,e)}:u,i)}return Object.assign(i,c)}function O(e){return e.replace(/^(?!\s*$)/gm,"  ")}var F=function(){return k("any",{})},T=function(){return k("function",{type:Function})},P=function(){return k("boolean",{type:Boolean})},N=function(){return k("string",{type:String})},M=function(){return k("number",{type:Number})},L=function(){return k("array",{type:Array})},I=function(){return k("object",{type:Object})},R=function(){return _("integer",{type:Number,validator:function(e){return y(e)}})},j=function(){return _("symbol",{validator:function(e){return"symbol"==typeof e}})};function D(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return _(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||g(this._vueTypes_name+" - "+t),r}})}function B(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);return _("oneOf",{type:n.length>0?n:void 0,validator:function(n){var r=-1!==e.indexOf(n);return r||g(t),r}})}function W(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var o=e[r];if(x(o)){if(A(o)&&"oneOf"===o._vueTypes_name){n=n.concat(o.type);continue}if(w(o.validator)&&(t=!0),!0!==o.type&&o.type){n=n.concat(o.type);continue}}n.push(o)}return n=n.filter((function(e,t){return n.indexOf(e)===t})),_("oneOfType",t?{type:n,validator:function(t){var n=[],r=e.some((function(e){var r=S(A(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||g("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+O(n.join("\n"))),r}}:{type:n})}function z(e){return _("arrayOf",{type:Array,validator:function(t){var n,r=t.every((function(t){return!0===(n=S(e,t,!0))}));return r||g("arrayOf - value validation error:\n"+O(n)),r}})}function U(e){return _("instanceOf",{type:e})}function K(e){return _("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every((function(r){return!0===(n=S(e,t[r],!0))}));return r||g("objectOf - value validation error:\n"+O(n)),r}})}function V(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!!(null===(n=e[t])||void 0===n?void 0:n.required)})),r=_("shape",{type:Object,validator:function(r){var o=this;if(!p(r))return!1;var i=Object.keys(r);if(n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))){var a=n.filter((function(e){return-1===i.indexOf(e)}));return g(1===a.length?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return i.every((function(n){if(-1===t.indexOf(n))return!0===o._vueTypes_isLoose||(g('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var i=S(e[n],r[n],!0);return"string"==typeof i&&g('shape - "'+n+'" property validation error:\n '+O(i)),!0===i}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var H=function(){function e(){}return e.extend=function(e){var t=this;if(b(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,r=e.validate,o=void 0!==r&&r,i=e.getter,a=void 0!==i&&i,l=s(e,["name","validate","getter"]);if(m(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var u,c=l.type;return A(c)?(delete l.type,Object.defineProperty(this,n,a?{get:function(){return E(n,c,l)}}:{value:function(){var e,t=E(n,c,l);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(u=a?{get:function(){var e=Object.assign({},l);return o?k(n,e):_(n,e)},enumerable:!0}:{value:function(){var e,t,r=Object.assign({},l);return e=o?k(n,r):_(n,r),r.validator&&(e.validator=(t=r.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,u))},o(e,null,[{key:"any",get:function(){return F()}},{key:"func",get:function(){return T().def(this.defaults.func)}},{key:"bool",get:function(){return P().def(this.defaults.bool)}},{key:"string",get:function(){return N().def(this.defaults.string)}},{key:"number",get:function(){return M().def(this.defaults.number)}},{key:"array",get:function(){return L().def(this.defaults.array)}},{key:"object",get:function(){return I().def(this.defaults.object)}},{key:"integer",get:function(){return R().def(this.defaults.integer)}},{key:"symbol",get:function(){return j()}}]),e}();function q(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return a(n,t),o(n,null,[{key:"sensibleDefaults",get:function(){return i({},this.defaults)},set:function(t){this.defaults=!1!==t?i({},!0!==t?t:e):{}}}]),n}(H)).defaults=i({},e),t}H.defaults={},H.custom=D,H.oneOf=B,H.instanceOf=U,H.oneOfType=W,H.arrayOf=z,H.objectOf=K,H.shape=V,H.utils={validate:function(e,t){return!0===S(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?k(e,t):_(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}a(t,e)})(q());var G=q({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});function Y(e){return e.default=void 0,e}G.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);var $=G},11041:function(e,t,n){"use strict";var r=n(57646);t.A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";(0,r.Ay)(e,"[antdv: ".concat(t,"] ").concat(n))}},55353:function(e,t,n){"use strict";var r=n(33927);t.A=r.A},83963:function(e,t,n){"use strict";n.d(t,{AR:function(){return i},M7:function(){return a},yA:function(){return s}});var r=n(29726),o=Symbol("GlobalFormContextKey"),i=function(e){(0,r.Gt)(o,e)},a=function(){return(0,r.WQ)(o,{validateMessages:(0,r.EW)((function(){}))})},s=(Symbol("GlobalConfigContextKey"),function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}})},33786:function(e,t,n){"use strict";n.d(t,{Ay:function(){return V},VG:function(){return K},cr:function(){return z},Vm:function(){return B}});var r=n(89379),o=n(58168),i=n(29726),a=n(2970),s=n(65482),l=function(e){var t=(0,s.A)("empty",e),n=t.prefixCls,r=function(e){switch(e){case"Table":case"List":return(0,i.bF)(a.A,{image:a.A.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return(0,i.bF)(a.A,{image:a.A.PRESENTED_IMAGE_SIMPLE,class:"".concat(n.value,"-small")},null);default:return(0,i.bF)(a.A,null,null)}};return r(e.componentName)};function u(e){return(0,i.bF)(l,{componentName:e},null)}var c=u,f=n(83724),d=n(38377),h=n(18787),p=n(56427),v=n(62456),g=n(42434),m=n(76250),y=n(89244),b=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,v.oS)(t)),this.originalInput=t;var o=(0,m.RO)(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.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=o.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,t,n,r=this.toRgb(),o=r.r/255,i=r.g/255,a=r.b/255;return e=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,y.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var e=this.toHsl().s;return 0===e},e.prototype.toHsv=function(){var e=(0,v.wE)(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=(0,v.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,v.K6)(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=(0,v.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,v.Ob)(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),(0,v.H)(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*(0,y.Cg)(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*(0,y.Cg)(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="#"+(0,v.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(g.D);t<n.length;t++){var r=n[t],o=r[0],i=r[1];if(e===i)return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0,o=!t&&r&&(e.startsWith("hex")||"name"===e);return o?"name"===e&&0===this.a?this.toName():this.toRgbString():("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())},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=(0,y.J$)(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=(0,y.J$)(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=(0,y.J$)(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=(0,y.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},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);var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;while(t--)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},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(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},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(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var w=n(38798),A=n(99378),x="vc-util-key";function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):x}function S(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function _(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,A.A)())return null;var r,o=document.createElement("style");null!==(t=n.csp)&&void 0!==t&&t.nonce&&(o.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);o.innerHTML=e;var i=S(n),a=i.firstChild;return n.prepend&&i.prepend?i.prepend(o):n.prepend&&a?i.insertBefore(o,a):i.appendChild(o),o}var k=new Map;function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=S(t);return Array.from(k.get(n).children).find((function(n){return"STYLE"===n.tagName&&n.getAttribute(C(t))===e}))}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=S(n);if(!k.has(r)){var o=_("",n),i=o.parentNode;k.set(r,i),i.removeChild(o)}var a=E(t,n);if(a){var s,l,u;if(null!==(s=n.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=n.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(u=n.csp)||void 0===u?void 0:u.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var c=_(e,n);return c.setAttribute(C(n),t),c}var F=n(37025),T="-ant-".concat(Date.now(),"-").concat(Math.random());function P(e,t){var n={},r=function(e,t){var n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},o=function(e,t){var o=new b(e),i=(0,w.cM)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=i[1],n["".concat(t,"-color-hover")]=i[4],n["".concat(t,"-color-active")]=i[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=i[1],n["".concat(t,"-color-deprecated-border")]=i[3]};if(t.primaryColor){o(t.primaryColor,"primary");var i=new b(t.primaryColor),a=(0,w.cM)(i.toRgbString());a.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(i,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(i,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(i,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(i,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(i,(function(e){return e.setAlpha(.12*e.getAlpha())}));var s=new b(a[0]);n["primary-color-active-deprecated-f-30"]=r(s,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(s,(function(e){return e.darken(2)}))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");var l=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));(0,A.A)()?O("\n  :root {\n    ".concat(l.join("\n"),"\n  }\n  "),"".concat(T,"-dynamic-theme")):(0,F.A)(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var N=n(48959),M=n(83963),L="ant";function I(){return B.prefixCls||L}var R,j=(0,i.Kh)({}),D=(0,i.Kh)({}),B=(0,i.Kh)({});(0,i.nT)((function(){(0,o.A)(B,j,D),B.prefixCls=I(),B.getPrefixCls=function(e,t){return t||(e?"".concat(B.prefixCls,"-").concat(e):B.prefixCls)},B.getRootPrefixCls=function(e,t){return e||(B.prefixCls?B.prefixCls:t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):I())}}));var W=function(e){R&&R(),R=(0,i.nT)((function(){(0,o.A)(D,(0,i.Kh)(e)),(0,o.A)(B,(0,i.Kh)(e))})),e.theme&&P(I(),e.theme)},z=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(I(),"-").concat(e):I())},getRootPrefixCls:function(e,t){return e||(B.prefixCls?B.prefixCls:t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):I())}}},U=(0,i.pM)({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:(0,M.yA)(),setup:function(e,t){var n=t.slots,a=function(t,n){var r=e.prefixCls,o=void 0===r?"ant":r;return n||(t?"".concat(o,"-").concat(t):o)},s=function(t){var r=e.renderEmpty||n.renderEmpty||c;return r(t)},l=function(t,n){var r=e.prefixCls;if(n)return n;var o=r||a("");return t?"".concat(o,"-").concat(t):o},u=(0,i.Kh)((0,r.A)((0,r.A)({},e),{},{getPrefixCls:l,renderEmpty:s}));Object.keys(e).forEach((function(t){(0,i.wB)((function(){return e[t]}),(function(){u[t]=e[t]}))})),e.notUpdateGlobalConfig||((0,o.A)(j,u),(0,i.wB)(u,(function(){(0,o.A)(j,u)})));var v=(0,i.EW)((function(){var t,n,o={};e.locale&&(o=(null===(t=e.locale.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=N.A.Form)||void 0===n?void 0:n.defaultValidateMessages)||{});return e.form&&e.form.validateMessages&&(o=(0,r.A)((0,r.A)({},o),e.form.validateMessages)),o}));(0,M.AR)({validateMessages:v}),(0,i.Gt)("configProvider",u);var g=function(t){var r;return(0,i.bF)(f.A,{locale:e.locale||t,ANT_MARK__:f.M},{default:function(){return[null===(r=n.default)||void 0===r?void 0:r.call(n)]}})};return(0,i.nT)((function(){e.direction&&(h.Ay.config({rtl:"rtl"===e.direction}),p.A.config({rtl:"rtl"===e.direction}))})),function(){return(0,i.bF)(d.A,{children:function(e,t,n){return g(n)}},null)}}}),K=(0,i.Kh)({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:c,direction:"ltr"});U.config=W,U.install=function(e){e.component(U.name,U)};var V=U},33927:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(89379),o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},i=o,a=n(68265),s={lang:(0,r.A)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},i),timePickerLocale:(0,r.A)({},a.A)},l=s},2970:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(64467),o=n(89379),i=n(82305),a=n(29726),s=n(58777),l=n(38377),u=n(65482),c=function(){var e=(0,u.A)("empty",{}),t=e.getPrefixCls,n=t("empty-img-default");return(0,a.bF)("svg",{class:n,width:"184",height:"152",viewBox:"0 0 184 152"},[(0,a.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,a.bF)("g",{transform:"translate(24 31.67)"},[(0,a.bF)("ellipse",{class:"".concat(n,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),(0,a.bF)("path",{class:"".concat(n,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"},null),(0,a.bF)("path",{class:"".concat(n,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"},null),(0,a.bF)("path",{class:"".concat(n,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"},null),(0,a.bF)("path",{class:"".concat(n,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"},null)]),(0,a.bF)("path",{class:"".concat(n,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"},null),(0,a.bF)("g",{class:"".concat(n,"-g"),transform:"translate(149.65 15.383)"},[(0,a.bF)("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),(0,a.bF)("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])};c.PRESENTED_IMAGE_DEFAULT=!0;var f=c,d=function(){var e=(0,u.A)("empty",{}),t=e.getPrefixCls,n=t("empty-img-simple");return(0,a.bF)("svg",{class:n,width:"64",height:"41",viewBox:"0 0 64 41"},[(0,a.bF)("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[(0,a.bF)("ellipse",{class:"".concat(n,"-ellipse"),fill:"#F5F5F5",cx:"32",cy:"33",rx:"32",ry:"7"},null),(0,a.bF)("g",{class:"".concat(n,"-g"),"fill-rule":"nonzero",stroke:"#D9D9D9"},[(0,a.bF)("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),(0,a.bF)("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:"#FAFAFA",class:"".concat(n,"-path")},null)])])])};d.PRESENTED_IMAGE_SIMPLE=!0;var h=d,p=n(74495),v=n(65801),g=n(30869),m=["image","description","imageStyle","class"],y=(0,a.bF)(f,null,null),b=(0,a.bF)(h,null,null),w=function(e,t){var n,c=t.slots,f=void 0===c?{}:c,d=t.attrs,h=(0,u.A)("empty",e),v=h.direction,g=h.prefixCls,w=g.value,A=(0,o.A)((0,o.A)({},e),d),x=A.image,C=void 0===x?y:x,S=A.description,_=void 0===S?(null===(n=f.description)||void 0===n?void 0:n.call(f))||void 0:S,k=A.imageStyle,E=A.class,O=void 0===E?"":E,F=(0,i.A)(A,m);return(0,a.bF)(l.A,{componentName:"Empty",children:function(e){var t,n="undefined"!==typeof _?_:e.description,i="string"===typeof n?n:"empty",l=null;return l="string"===typeof C?(0,a.bF)("img",{alt:i,src:C},null):C,(0,a.bF)("div",(0,o.A)({class:(0,s.A)(w,O,(t={},(0,r.A)(t,"".concat(w,"-normal"),C===b),(0,r.A)(t,"".concat(w,"-rtl"),"rtl"===v.value),t))},F),[(0,a.bF)("div",{class:"".concat(w,"-image"),style:k},[l]),n&&(0,a.bF)("p",{class:"".concat(w,"-description")},[n]),f.default&&(0,a.bF)("div",{class:"".concat(w,"-footer")},[(0,p.Gk)(f.default())])])}},null)};w.displayName="AEmpty",w.PRESENTED_IMAGE_DEFAULT=y,w.PRESENTED_IMAGE_SIMPLE=b,w.inheritAttrs=!1,w.props={prefixCls:String,image:v.A.any,description:v.A.any,imageStyle:{type:Object,default:void 0}};var A=(0,g.GU)(w)},32710:function(e,t,n){"use strict";n.d(t,{Ay:function(){return yq}});var r={};n.r(r),n.d(r,{Affix:function(){return pe},Alert:function(){return Xs},Anchor:function(){return Le},AnchorLink:function(){return Me},AutoComplete:function(){return js},AutoCompleteOptGroup:function(){return Is},AutoCompleteOption:function(){return Ls},Avatar:function(){return ql},AvatarGroup:function(){return Hl},BackTop:function(){return tu},Badge:function(){return gu},BadgeRibbon:function(){return fu},Breadcrumb:function(){return ed},BreadcrumbItem:function(){return Sc},BreadcrumbSeparator:function(){return Zf},Button:function(){return tc},ButtonGroup:function(){return ec},Calendar:function(){return Vg},Card:function(){return Fb},CardGrid:function(){return Ob},CardMeta:function(){return kb},Carousel:function(){return qw},Cascader:function(){return fx},CheckableTag:function(){return Fx},Checkbox:function(){return Ax},CheckboxGroup:function(){return wx},Col:function(){return cb},Collapse:function(){return Rb},CollapsePanel:function(){return Ib},Comment:function(){return Sx},ConfigProvider:function(){return al.Ay},DatePicker:function(){return tS},Descriptions:function(){return gS},DescriptionsItem:function(){return lS},DirectoryTree:function(){return Tz},Divider:function(){return bS},Drawer:function(){return p_},Dropdown:function(){return AS},DropdownButton:function(){return hc},Empty:function(){return v_.A},Form:function(){return IO},FormItem:function(){return BE},FormItemRest:function(){return As},Grid:function(){return RO},Image:function(){return lP},ImagePreviewGroup:function(){return aP},Input:function(){return GF},InputGroup:function(){return XO},InputNumber:function(){return zP},InputPassword:function(){return qF},InputSearch:function(){return mF},Layout:function(){return fN},LayoutContent:function(){return cN},LayoutFooter:function(){return lN},LayoutHeader:function(){return sN},LayoutSider:function(){return uN},List:function(){return eM},ListItem:function(){return JN},ListItemMeta:function(){return GN},LocaleProvider:function(){return pq.A},Mentions:function(){return MM},MentionsOption:function(){return NM},Menu:function(){return qf},MenuDivider:function(){return Hf},MenuItem:function(){return Af},MenuItemGroup:function(){return Kf},Modal:function(){return tL},MonthPicker:function(){return $C},PageHeader:function(){return QL},Pagination:function(){return HN},Popconfirm:function(){return rI},Popover:function(){return Ul},Progress:function(){return PI},QuarterPicker:function(){return QC},Radio:function(){return NI},RadioButton:function(){return Mg},RadioGroup:function(){return Ng},RangePicker:function(){return ZC},Rate:function(){return qI},Result:function(){return dR},Row:function(){return ab},Select:function(){return Es},SelectOptGroup:function(){return ks},SelectOption:function(){return _s},Skeleton:function(){return SR},SkeletonAvatar:function(){return CR},SkeletonButton:function(){return vR},SkeletonImage:function(){return wR},SkeletonInput:function(){return mR},SkeletonTitle:function(){return lL},Slider:function(){return sj},Space:function(){return dj},Spin:function(){return yN},Statistic:function(){return NL},StatisticCountdown:function(){return PL},Step:function(){return xj},Steps:function(){return Cj},SubMenu:function(){return Mf},Switch:function(){return Ej},TabPane:function(){return Ky},Table:function(){return cU},TableColumn:function(){return rU},TableColumnGroup:function(){return oU},TableSummary:function(){return uU},TableSummaryCell:function(){return lU},TableSummaryRow:function(){return sU},Tabs:function(){return Hy},Tag:function(){return Lx},Textarea:function(){return TF},TimePicker:function(){return kK},TimeRangePicker:function(){return SK},Timeline:function(){return PK},TimelineItem:function(){return OK},Tooltip:function(){return Bl},Transfer:function(){return RU},Tree:function(){return Nz},TreeNode:function(){return Pz},TreeSelect:function(){return yK},TreeSelectNode:function(){return mK},Typography:function(){return WV},TypographyLink:function(){return OV},TypographyParagraph:function(){return PV},TypographyText:function(){return LV},TypographyTitle:function(){return BV},Upload:function(){return hq},UploadDragger:function(){return dq},WeekPicker:function(){return YC},message:function(){return tM.Ay},notification:function(){return ML.A}});var o=n(89379),i=n(64467),a=n(58168),s=n(29726),l=n(58777),u=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),c="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,f=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),d=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(f):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),h=2;function p(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){d(i)}function s(){var e=Date.now();if(n){if(e-o<h)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}var v=20,g=["top","right","bottom","left","width","height","size","weight"],m="undefined"!==typeof MutationObserver,y=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=p(this.refresh.bind(this),v)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){c&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){c&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=g.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},w=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||f},A=P(0,0,0,0);function x(e){return parseFloat(e)||0}function C(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+x(r)}),0)}function S(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=x(a)}return n}function _(e){var t=e.getBBox();return P(0,0,t.width,t.height)}function k(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return A;var r=w(e).getComputedStyle(e),o=S(r),i=o.left+o.right,a=o.top+o.bottom,s=x(r.width),l=x(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=C(r,"left","right")+i),Math.round(l+a)!==n&&(l-=C(r,"top","bottom")+a)),!O(e)){var u=Math.round(s+i)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return P(o.left,o.top,s,l)}var E=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof w(e).SVGGraphicsElement}:function(e){return e instanceof w(e).SVGElement&&"function"===typeof e.getBBox}}();function O(e){return e===w(e).document.documentElement}function F(e){return c?E(e)?_(e):k(e):A}function T(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return b(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function P(e,t,n,r){return{x:e,y:t,width:n,height:r}}var N=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=P(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=F(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),M=function(){function e(e,t){var n=T(t);b(this,{target:e,contentRect:n})}return e}(),L=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new u,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof w(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new N(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof w(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new M(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),I="undefined"!==typeof WeakMap?new WeakMap:new u,R=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=y.getInstance(),r=new L(t,n,this);I.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){R.prototype[e]=function(){var t;return(t=I.get(this))[e].apply(t,arguments)}}));var j=function(){return"undefined"!==typeof f.ResizeObserver?f.ResizeObserver:R}(),D=j,B=n(74495),W=(0,s.pM)({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup:function(e,t){var n=t.slots,r=(0,s.Kh)({width:0,height:0,offsetHeight:0,offsetWidth:0}),i=null,l=null,u=function(){l&&(l.disconnect(),l=null)},c=function(t){var n=e.onResize,i=t[0].target,s=i.getBoundingClientRect(),l=s.width,u=s.height,c=i.offsetWidth,f=i.offsetHeight,d=Math.floor(l),h=Math.floor(u);if(r.width!==d||r.height!==h||r.offsetWidth!==c||r.offsetHeight!==f){var p={width:d,height:h,offsetWidth:c,offsetHeight:f};(0,a.A)(r,p),n&&Promise.resolve().then((function(){n((0,o.A)((0,o.A)({},p),{},{offsetWidth:c,offsetHeight:f}),i)}))}},f=(0,s.nI)(),d=function(){var t=e.disabled;if(t)u();else{var n=(0,B.oK)(f),r=n!==i;r&&(u(),i=n),!l&&n&&(l=new D(c),l.observe(n))}};return(0,s.sV)((function(){d()})),(0,s.$u)((function(){d()})),(0,s.hi)((function(){u()})),(0,s.wB)((function(){return e.disabled}),(function(){d()}),{flush:"post"}),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}}),z=n(38339),U=function(e){return setTimeout(e,16)},K=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(U=function(e){return window.requestAnimationFrame(e)},K=function(e){return window.cancelAnimationFrame(e)});var V=0,H=new Map;function q(e){H.delete(e)}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;V+=1;var n=V;function r(t){if(0===t)q(n),e();else{var o=U((function(){r(t-1)}));H.set(n,o)}}return r(t),n}function Y(e){var t,n=function(n){return function(){t=null,e.apply(void 0,(0,z.A)(n))}},r=function(){if(null==t){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=G(n(r))}};return r.cancel=function(){return G.cancel(t)},r}G.cancel=function(e){var t=H.get(e);return q(t),K(t)};var $=n(30869),X=!1;try{var J=Object.defineProperty({},"passive",{get:function(){X=!0}});window.addEventListener("testPassive",null,J),window.removeEventListener("testPassive",null,J)}catch(UE){}var Q=X;function Z(e,t,n,r){if(e&&e.addEventListener){var o=r;void 0!==o||!Q||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o={passive:!1}),e.addEventListener(t,n,o)}return{remove:function(){e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function ee(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function te(e,t,n){if(void 0!==n&&t.top>e.top-n)return"".concat(n+t.top,"px")}function ne(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n){var r=window.innerHeight-t.bottom;return"".concat(n+r,"px")}}var re=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],oe=[];function ie(e,t){if(e){var n=oe.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},oe.push(n),re.forEach((function(t){n.eventHandlers[t]=Z(e,t,(function(){n.affixList.forEach((function(e){var t=e.exposed.lazyUpdatePosition;t()}),!("touchstart"!==t&&"touchmove"!==t||!Q)&&{passive:!0})}))})))}}function ae(e){var t=oe.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(oe=oe.filter((function(e){return e!==t})),re.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}var se=n(65482);function le(e,t){for(var n=(0,a.A)({},e),r=0;r<t.length;r+=1){var o=t[r];delete n[o]}return n}var ue,ce=le;function fe(){return"undefined"!==typeof window?window:null}(function(e){e[e["None"]=0]="None",e[e["Prepare"]=1]="Prepare"})(ue||(ue={}));var de=function(){return{offsetTop:Number,offsetBottom:Number,target:{type:Function,default:fe},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}},he=(0,s.pM)({compatConfig:{MODE:3},name:"AAffix",props:de(),setup:function(e,t){var n=t.slots,r=t.emit,u=t.expose,c=(0,s.KR)(),f=(0,s.KR)(),d=(0,s.Kh)({affixStyle:void 0,placeholderStyle:void 0,status:ue.None,lastAffix:!1,prevTarget:null,timeout:null}),h=(0,s.nI)(),p=(0,s.EW)((function(){return void 0===e.offsetBottom&&void 0===e.offsetTop?0:e.offsetTop})),v=(0,s.EW)((function(){return e.offsetBottom})),g=function(){var t=d.status,n=d.lastAffix,o=e.target;if(t===ue.Prepare&&f.value&&c.value&&o){var i=o();if(i){var s={status:ue.None},l=ee(i),u=ee(c.value),h=te(u,l,p.value),g=ne(u,l,v.value);void 0!==h?(s.affixStyle={position:"fixed",top:h,width:u.width+"px",height:u.height+"px"},s.placeholderStyle={width:u.width+"px",height:u.height+"px"}):void 0!==g&&(s.affixStyle={position:"fixed",bottom:g,width:u.width+"px",height:u.height+"px"},s.placeholderStyle={width:u.width+"px",height:u.height+"px"}),s.lastAffix=!!s.affixStyle,n!==s.lastAffix&&r("change",s.lastAffix),(0,a.A)(d,s)}}},m=function(){(0,a.A)(d,{status:ue.Prepare,affixStyle:void 0,placeholderStyle:void 0}),h.update()},y=Y((function(){m()})),b=Y((function(){var t=e.target,n=d.affixStyle;if(t&&n){var r=t();if(r&&c.value){var o=ee(r),i=ee(c.value),a=te(i,o,p.value),s=ne(i,o,v.value);if(void 0!==a&&n.top===a||void 0!==s&&n.bottom===s)return}}m()}));u({updatePosition:y,lazyUpdatePosition:b}),(0,s.wB)((function(){return e.target}),(function(e){var t=(null===e||void 0===e?void 0:e())||null;d.prevTarget!==t&&(ae(h),t&&(ie(t,h),y()),d.prevTarget=t)})),(0,s.wB)((function(){return[e.offsetTop,e.offsetBottom]}),y),(0,s.sV)((function(){var t=e.target;t&&(d.timeout=setTimeout((function(){ie(t(),h),y()})))})),(0,s.$u)((function(){g()})),(0,s.hi)((function(){clearTimeout(d.timeout),ae(h),y.cancel(),b.cancel()}));var w=(0,se.A)("affix",e),A=w.prefixCls;return function(){var t,r=d.affixStyle,a=d.placeholderStyle,u=(0,l.A)((0,i.A)({},A.value,r)),h=ce(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return(0,s.bF)(W,{onResize:y},{default:function(){return[(0,s.bF)("div",(0,o.A)((0,o.A)({},h),{},{style:a,ref:c}),[(0,s.bF)("div",{class:u,ref:f,style:r},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])]}})}}}),pe=(0,$.GU)(he);function ve(e){return null!==e&&void 0!==e&&e===e.window}function ge(e,t){if("undefined"===typeof window)return 0;var n,r=t?"scrollTop":"scrollLeft",o=0;(ve(e)?o=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?o=e.documentElement[r]:e&&(o=e[r]),e&&!ve(e)&&"number"!==typeof o)&&(o=null===(n=(e.ownerDocument||e).documentElement)||void 0===n?void 0:n[r]);return o}function me(e,t,n,r){var o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getContainer,r=void 0===n?function(){return window}:n,o=t.callback,i=t.duration,a=void 0===i?450:i,s=r(),l=ge(s,!0),u=Date.now(),c=function t(){var n=Date.now(),r=n-u,i=me(r>a?a:r,l,e,a);ve(s)?s.scrollTo(window.pageXOffset,i):s instanceof HTMLDocument||"HTMLDocument"===s.constructor.name?s.documentElement.scrollTop=i:s.scrollTop=i,r<a?G(t):"function"===typeof o&&o()};G(c)}function be(){}var we=Symbol("anchorContextKey"),Ae=function(e){(0,s.Gt)(we,e)},xe=function(){return(0,s.WQ)(we,{registerLink:be,unregisterLink:be,scrollTo:be,activeLink:(0,s.EW)((function(){return""})),handleClick:be})},Ce=Ae;function Se(){return window}function _e(e,t){if(!e.getClientRects().length)return 0;var n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}var ke=/#([\S ]+)$/,Ee=function(){return{prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,onChange:Function,onClick:Function}},Oe=(0,s.pM)({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:Ee(),setup:function(e,t){var n=t.emit,r=t.attrs,a=t.slots,u=t.expose,c=(0,se.A)("anchor",e),f=c.prefixCls,d=c.getTargetContainer,h=c.direction,p=(0,s.KR)(),v=(0,s.KR)(),g=(0,s.Kh)({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),m=(0,s.KR)(null),y=(0,s.EW)((function(){var t=e.getContainer;return t||d.value||Se})),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=[],r=y.value();if(g.links.forEach((function(o){var i=ke.exec(o.toString());if(i){var a=document.getElementById(i[1]);if(a){var s=_e(a,r);s<e+t&&n.push({link:o,top:s})}}})),n.length){var o=n.reduce((function(e,t){return t.top>e.top?t:e}));return o.link}return""},w=function(t){var r=e.getCurrentAnchor;m.value!==t&&(m.value="function"===typeof r?r():t,n("change",t))},A=function(t){var n=e.offsetTop,r=e.targetOffset;w(t);var o=y.value(),i=ge(o,!0),a=ke.exec(t);if(a){var s=document.getElementById(a[1]);if(s){var l=_e(s,o),u=i+l;u-=void 0!==r?r:n||0,g.animating=!0,ye(u,{callback:function(){g.animating=!1},getContainer:y.value})}}};u({scrollTo:A});var x=function(){if(!g.animating){var t=e.offsetTop,n=e.bounds,r=e.targetOffset,o=b(void 0!==r?r:t||0,n);w(o)}},C=function(){var e=v.value.getElementsByClassName("".concat(f.value,"-link-title-active"))[0];e&&(p.value.style.top="".concat(e.offsetTop+e.clientHeight/2-4.5,"px"))};return Ce({registerLink:function(e){g.links.includes(e)||g.links.push(e)},unregisterLink:function(e){var t=g.links.indexOf(e);-1!==t&&g.links.splice(t,1)},activeLink:m,scrollTo:A,handleClick:function(e,t){n("click",e,t)}}),(0,s.sV)((function(){(0,s.dY)((function(){var e=y.value();g.scrollContainer=e,g.scrollEvent=Z(g.scrollContainer,"scroll",x),x()}))})),(0,s.xo)((function(){g.scrollEvent&&g.scrollEvent.remove()})),(0,s.$u)((function(){if(g.scrollEvent){var e=y.value();g.scrollContainer!==e&&(g.scrollContainer=e,g.scrollEvent.remove(),g.scrollEvent=Z(g.scrollContainer,"scroll",x),x())}C()})),function(){var t,n=e.offsetTop,u=e.affix,c=e.showInkInFixed,d=f.value,g=(0,l.A)("".concat(d,"-ink-ball"),{visible:m.value}),b=(0,l.A)(e.wrapperClass,"".concat(d,"-wrapper"),(0,i.A)({},"".concat(d,"-rtl"),"rtl"===h.value)),w=(0,l.A)(d,(0,i.A)({},"".concat(d,"-fixed"),!u&&!c)),A=(0,o.A)({maxHeight:n?"calc(100vh - ".concat(n,"px)"):"100vh"},e.wrapperStyle),x=(0,s.bF)("div",{class:b,style:A,ref:v},[(0,s.bF)("div",{class:w},[(0,s.bF)("div",{class:"".concat(d,"-ink")},[(0,s.bF)("span",{class:g,ref:p},null)]),null===(t=a.default)||void 0===t?void 0:t.call(a)])]);return u?(0,s.bF)(pe,(0,o.A)((0,o.A)({},r),{},{offsetTop:n,target:y.value}),{default:function(){return[x]}}):x}}}),Fe=n(65801),Te=function(e,t){var n=(0,o.A)({},e);return Object.keys(t).forEach((function(e){var r=n[e];if(!r)throw new Error("not have ".concat(e," prop"));r.type||r.default?r.default=t[e]:r.def?r.def(t[e]):n[e]={type:r,default:t[e]}})),n},Pe=Te,Ne=function(){return{prefixCls:String,href:String,title:Fe.A.any,target:String}},Me=(0,s.pM)({compatConfig:{MODE:3},name:"AAnchorLink",props:Pe(Ne(),{href:"#"}),slots:["title"],setup:function(e,t){var n=t.slots,r=null,o=xe(),a=o.handleClick,u=o.scrollTo,c=o.unregisterLink,f=o.registerLink,d=o.activeLink,h=(0,se.A)("anchor",e),p=h.prefixCls,v=function(t){var n=e.href;a(t,{title:r,href:n}),u(n)};return(0,s.wB)((function(){return e.href}),(function(e,t){(0,s.dY)((function(){c(t),f(e)}))})),(0,s.sV)((function(){f(e.href)})),(0,s.xo)((function(){c(e.href)})),function(){var t,o=e.href,a=e.target,u=p.value,c=(0,B.rU)(n,e,"title");r=c;var f=d.value===o,h=(0,l.A)("".concat(u,"-link"),(0,i.A)({},"".concat(u,"-link-active"),f)),g=(0,l.A)("".concat(u,"-link-title"),(0,i.A)({},"".concat(u,"-link-title-active"),f));return(0,s.bF)("div",{class:h},[(0,s.bF)("a",{class:g,href:o,title:"string"===typeof c?c:"",target:a,onClick:v},[c]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});Oe.Link=Me,Oe.install=function(e){return e.component(Oe.name,Oe),e.component(Oe.Link.name,Oe.Link),e};var Le=Oe,Ie=n(82284),Re=n(80641),je=n(82305),De=n(96369),Be=n(73893),We=n(27800),ze=n(76562);function Ue(e){return(0,De.A)(e)||(0,Be.A)(e)||(0,We.A)(e)||(0,ze.A)()}var Ke=n(57646);function Ve(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(t)}function He(e,t){var n=e||{},r=n.label,o=n.value,i=n.options;return{label:r||(t?"children":"label"),value:o||"value",options:i||"options"}}function qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=He(n,!1),a=i.label,s=i.value,l=i.options;function u(e,t){e.forEach((function(e){var n=e[a];if(t||!(l in e)){var i=e[s];o.push({key:Ve(e,o.length),groupOption:t,data:e,label:n,value:i})}else{var c=n;void 0===c&&r&&(c=e.label),o.push({key:Ve(e,o.length),group:!0,data:e,label:c}),u(e[l],!0)}}))}return u(e,!1),o}function Ge(e){var t=(0,o.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,Ke.$e)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function Ye(e,t){if(!t||!t.length)return null;var n=!1;function r(e,t){var o=Ue(t),i=o[0],a=o.slice(1);if(!i)return[e];var s=e.split(i);return n=n||s.length>1,s.reduce((function(e,t){return[].concat((0,z.A)(e),(0,z.A)(r(t,a)))}),[]).filter((function(e){return e}))}var o=r(e,t);return n?o:null}function $e(e,t){return!!e&&e.contains(t)}var Xe=["moz","ms","webkit"];function Je(){var e=0;return function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),o=window.setTimeout((function(){t(n+r)}),r);return e=n+r,o}}function Qe(){if("undefined"===typeof window)return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var e=Xe.filter((function(e){return"".concat(e,"RequestAnimationFrame")in window}))[0];return e?window["".concat(e,"RequestAnimationFrame")]:Je()}function Ze(e){if("undefined"===typeof window)return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(e);var t=Xe.filter((function(e){return"".concat(e,"CancelAnimationFrame")in window||"".concat(e,"CancelRequestAnimationFrame")in window}))[0];return t?(window["".concat(t,"CancelAnimationFrame")]||window["".concat(t,"CancelRequestAnimationFrame")]).call(this,e):clearTimeout(e)}var et=Qe(),tt=function(e){return Ze(e.id)},nt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Date.now();function r(){Date.now()-n>=t?e.call():o.id=et(r)}var o={id:et(r)};return o},rt={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},ot=(0,o.A)((0,o.A)({},rt),{},{mobile:{type:Object}}),it=(0,o.A)((0,o.A)({},rt),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function at(e){var t=e.prefixCls,n=e.animation,r=e.transitionName;return n?{name:"".concat(t,"-").concat(n)}:r?{name:r}:{}}function st(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,i=e.mask,a=e.maskAnimation,l=e.maskTransitionName;if(!i)return null;var u={};return(l||a)&&(u=at({prefixCls:t,transitionName:l,animation:a})),(0,s.bF)(s.eB,(0,o.A)({appear:!0},u),{default:function(){return[(0,s.bo)((0,s.bF)("div",{style:{zIndex:r},class:"".concat(t,"-mask")},null),[[(0,s.gN)("if"),n]])]}})}st.displayName="Mask";var lt,ut=(0,s.pM)({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:ot,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var n=t.expose,r=t.slots,i=(0,s.KR)();return n({forceAlign:function(){},getElement:function(){return i.value}}),function(){var t,n=e.zIndex,a=e.visible,u=e.prefixCls,c=e.mobile,f=void 0===c?{}:c,d=f.popupClassName,h=f.popupStyle,p=f.popupMotion,v=void 0===p?{}:p,g=f.popupRender,m=(0,o.A)({zIndex:n},h),y=(0,B.MI)(null===(t=r.default)||void 0===t?void 0:t.call(r));if(y.length>1){(function(){})();y=(0,s.bF)("div",{class:"".concat(u,"-content")},[y])}g&&(y=g(y));var b=(0,l.A)(u,d);return(0,s.bF)(s.eB,(0,o.A)({ref:i},v),{default:function(){return[a?(0,s.bF)("div",{class:b,style:m},[y]):null]}})}}}),ct=n(10467),ft=n(54756),dt=n.n(ft),ht=["measure","align",null,"motion"],pt=function(e,t){var n=(0,s.KR)(null),r=(0,s.KR)(),o=(0,s.KR)(!1);function i(e){o.value||(n.value=e)}function a(){G.cancel(r.value)}function l(e){a(),r.value=G((function(){var t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable";break;default:}i(t),null===e||void 0===e||e()}))}return(0,s.wB)(e,(function(){i("measure")}),{immediate:!0,flush:"post"}),(0,s.sV)((function(){(0,s.wB)(n,(function(){switch(n.value){case"measure":t();break;default:}n.value&&(r.value=G((0,ct.A)(dt().mark((function e(){var t,r;return dt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=ht.indexOf(n.value),r=ht[t+1],r&&-1!==t&&i(r);case 3:case"end":return e.stop()}}),e)})))))}),{immediate:!0,flush:"post"})})),(0,s.xo)((function(){o.value=!0,a()})),[n,l]},vt=function(e){var t=(0,s.KR)({width:0,height:0});function n(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}var r=(0,s.EW)((function(){var n={};if(e.value){var r=t.value,o=r.width,i=r.height;-1!==e.value.indexOf("height")&&i?n.height="".concat(i,"px"):-1!==e.value.indexOf("minHeight")&&i&&(n.minHeight="".concat(i,"px")),-1!==e.value.indexOf("width")&&o?n.width="".concat(o,"px"):-1!==e.value.indexOf("minWidth")&&o&&(n.minWidth="".concat(o,"px"))}return n}));return[r,n]};function gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(n),!0).forEach((function(t){bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yt(e){return yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(e)}function bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wt={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function At(){if(void 0!==lt)return lt;lt="";var e=document.createElement("p").style,t="Transform";for(var n in wt)n+t in e&&(lt=n);return lt}function xt(){return At()?"".concat(At(),"TransitionProperty"):"transitionProperty"}function Ct(){return At()?"".concat(At(),"Transform"):"transform"}function St(e,t){var n=xt();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function _t(e,t){var n=Ct();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}function kt(e){return e.style.transitionProperty||e.style[xt()]}function Et(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(Ct());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var Ot=/matrix\((.*)\)/,Ft=/matrix3d\((.*)\)/;function Tt(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(Ct());if(r&&"none"!==r){var o,i=r.match(Ot);if(i)i=i[1],o=i.split(",").map((function(e){return parseFloat(e,10)})),o[4]=t.x,o[5]=t.y,_t(e,"matrix(".concat(o.join(","),")"));else{var a=r.match(Ft)[1];o=a.split(",").map((function(e){return parseFloat(e,10)})),o[12]=t.x,o[13]=t.y,_t(e,"matrix3d(".concat(o.join(","),")"))}}else _t(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var Pt,Nt=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function Mt(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Lt(e,t,n){var r=n;if("object"!==yt(t))return"undefined"!==typeof r?("number"===typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):Pt(e,t);for(var o in t)t.hasOwnProperty(o)&&Lt(e,o,t[o])}function It(e){var t,n,r,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),n-=a.clientLeft||i.clientLeft||0,r-=a.clientTop||i.clientTop||0,{left:n,top:r}}function Rt(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;n=o.documentElement[r],"number"!==typeof n&&(n=o.body[r])}return n}function jt(e){return Rt(e)}function Dt(e){return Rt(e,!0)}function Bt(e){var t=It(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=jt(r),t.top+=Dt(r),t}function Wt(e){return null!==e&&void 0!==e&&e==e.window}function zt(e){return Wt(e)?e.document:9===e.nodeType?e:e.ownerDocument}function Ut(e,t,n){var r=n,o="",i=zt(e);return r=r||i.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}var Kt=new RegExp("^(".concat(Nt,")(?!px)[a-z%]+$"),"i"),Vt=/^(top|right|bottom|left)$/,Ht="currentStyle",qt="runtimeStyle",Gt="left",Yt="px";function $t(e,t){var n=e[Ht]&&e[Ht][t];if(Kt.test(n)&&!Vt.test(t)){var r=e.style,o=r[Gt],i=e[qt][Gt];e[qt][Gt]=e[Ht][Gt],r[Gt]="fontSize"===t?"1em":n||0,n=r.pixelLeft+Yt,r[Gt]=o,e[qt][Gt]=i}return""===n?"auto":n}function Xt(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function Jt(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function Qt(e,t,n){"static"===Lt(e,"position")&&(e.style.position="relative");var r=-999,o=-999,i=Xt("left",n),a=Xt("top",n),s=Jt(i),l=Jt(a);"left"!==i&&(r=999),"top"!==a&&(o=999);var u="",c=Bt(e);("left"in t||"top"in t)&&(u=kt(e)||"",St(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(o,"px")),Mt(e);var f=Bt(e),d={};for(var h in t)if(t.hasOwnProperty(h)){var p=Xt(h,n),v="left"===h?r:o,g=c[h]-f[h];d[p]=p===h?v+g:v-g}Lt(e,d),Mt(e),("left"in t||"top"in t)&&St(e,u);var m={};for(var y in t)if(t.hasOwnProperty(y)){var b=Xt(y,n),w=t[y]-c[y];m[b]=y===b?d[b]+w:d[b]-w}Lt(e,m)}function Zt(e,t){var n=Bt(e),r=Et(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),Tt(e,o)}function en(e,t,n){if(n.ignoreShake){var r=Bt(e),o=r.left.toFixed(0),i=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(o===a&&i===s)return}n.useCssRight||n.useCssBottom?Qt(e,t,n):n.useCssTransform&&Ct()in document.body.style?Zt(e,t):Qt(e,t,n)}function tn(e,t){for(var n=0;n<e.length;n++)t(e[n])}function nn(e){return"border-box"===Pt(e,"boxSizing")}"undefined"!==typeof window&&(Pt=window.getComputedStyle?Ut:$t);var rn=["margin","border","padding"],on=-1,an=2,sn=1,ln=0;function un(e,t,n){var r,o={},i=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=i[r],i[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(i[r]=o[r])}function cn(e,t,n){var r,o,i,a=0;for(o=0;o<t.length;o++)if(r=t[o],r)for(i=0;i<n.length;i++){var s=void 0;s="border"===r?"".concat(r).concat(n[i],"Width"):r+n[i],a+=parseFloat(Pt(e,s))||0}return a}var fn={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function dn(e,t,n){var r=n;if(Wt(e))return"width"===t?fn.viewportWidth(e):fn.viewportHeight(e);if(9===e.nodeType)return"width"===t?fn.docWidth(e):fn.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=nn(e),s=0;(null===i||void 0===i||i<=0)&&(i=void 0,s=Pt(e,t),(null===s||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),void 0===r&&(r=a?sn:on);var l=void 0!==i||a,u=i||s;return r===on?l?u-cn(e,["border","padding"],o):s:l?r===sn?u:u+(r===an?-cn(e,["border"],o):cn(e,["margin"],o)):s+cn(e,rn.slice(r),o)}tn(["Width","Height"],(function(e){fn["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],fn["viewport".concat(e)](n))},fn["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,i=r.documentElement,a=i[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}}));var hn={position:"absolute",visibility:"hidden",display:"block"};function pn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=dn.apply(void 0,t):un(o,hn,(function(){r=dn.apply(void 0,t)})),r}function vn(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}tn(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);fn["outer".concat(t)]=function(t,n){return t&&pn(t,e,n?ln:sn)};var n="width"===e?["Left","Right"]:["Top","Bottom"];fn[e]=function(t,r){var o=r;if(void 0===o)return t&&pn(t,e,on);if(t){var i=nn(t);return i&&(o+=cn(t,["padding","border"],n)),Lt(t,e,o)}}}));var gn={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:zt,offset:function(e,t,n){if("undefined"===typeof t)return Bt(e);en(e,t,n||{})},isWindow:Wt,each:tn,css:Lt,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);var r=e.overflow;if(r)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:vn,getWindowScrollLeft:function(e){return jt(e)},getWindowScrollTop:function(e){return Dt(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)gn.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};vn(gn,fn);var mn=gn.getParent;function yn(e){if(gn.isWindow(e)||9===e.nodeType)return null;var t,n=gn.getDocument(e),r=n.body,o=gn.css(e,"position"),i="fixed"===o||"absolute"===o;if(!i)return"html"===e.nodeName.toLowerCase()?null:mn(e);for(t=mn(e);t&&t!==r&&9!==t.nodeType;t=mn(t))if(o=gn.css(t,"position"),"static"!==o)return t;return null}var bn=gn.getParent;function wn(e){if(gn.isWindow(e)||9===e.nodeType)return!1;var t=gn.getDocument(e),n=t.body,r=null;for(r=bn(e);r&&r!==n&&r!==t;r=bn(r)){var o=gn.css(r,"position");if("fixed"===o)return!0}return!1}function An(e,t){var n={left:0,right:1/0,top:0,bottom:1/0},r=yn(e),o=gn.getDocument(e),i=o.defaultView||o.parentWindow,a=o.body,s=o.documentElement;while(r){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===gn.css(r,"overflow")){if(r===a||r===s)break}else{var l=gn.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=yn(r)}var u=null;if(!gn.isWindow(e)&&9!==e.nodeType){u=e.style.position;var c=gn.css(e,"position");"absolute"===c&&(e.style.position="fixed")}var f=gn.getWindowScrollLeft(i),d=gn.getWindowScrollTop(i),h=gn.viewportWidth(i),p=gn.viewportHeight(i),v=s.scrollWidth,g=s.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(v=i.innerWidth),"hidden"===m.overflowY&&(g=i.innerHeight),e.style&&(e.style.position=u),t||wn(e))n.left=Math.max(n.left,f),n.top=Math.max(n.top,d),n.right=Math.min(n.right,f+h),n.bottom=Math.min(n.bottom,d+p);else{var y=Math.max(v,f+h);n.right=Math.min(n.right,y);var b=Math.max(g,d+p);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function xn(e,t,n,r){var o=gn.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),gn.mix(o,i)}function Cn(e){var t,n,r;if(gn.isWindow(e)||9===e.nodeType){var o=gn.getWindow(e);t={left:gn.getWindowScrollLeft(o),top:gn.getWindowScrollTop(o)},n=gn.viewportWidth(o),r=gn.viewportHeight(o)}else t=gn.offset(e),n=gn.outerWidth(e),r=gn.outerHeight(e);return t.width=n,t.height=r,t}function Sn(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,s=e.top;return"c"===n?s+=i/2:"b"===n&&(s+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:s}}function _n(e,t,n,r,o){var i=Sn(t,n[1]),a=Sn(e,n[0]),s=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function kn(e,t,n){return e.left<n.left||e.left+t.width>n.right}function En(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function On(e,t,n){return e.left>n.right||e.left+t.width<n.left}function Fn(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function Tn(e,t,n){var r=[];return gn.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Pn(e,t){return e[t]=-e[t],e}function Nn(e,t){var n;return n=/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10),n||0}function Mn(e,t){e[0]=Nn(e[0],t.width),e[1]=Nn(e[1],t.height)}function Ln(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;i=[].concat(i),a=[].concat(a),s=s||{};var u={},c=0,f=!(!s||!s.alwaysByViewport),d=An(l,f),h=Cn(l);Mn(i,h),Mn(a,t);var p=_n(h,t,o,i,a),v=gn.merge(h,p);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&kn(p,h,d)){var g=Tn(o,/[lr]/gi,{l:"r",r:"l"}),m=Pn(i,0),y=Pn(a,0),b=_n(h,t,g,m,y);On(b,h,d)||(c=1,o=g,i=m,a=y)}if(s.adjustY&&En(p,h,d)){var w=Tn(o,/[tb]/gi,{t:"b",b:"t"}),A=Pn(i,1),x=Pn(a,1),C=_n(h,t,w,A,x);Fn(C,h,d)||(c=1,o=w,i=A,a=x)}c&&(p=_n(h,t,o,i,a),gn.mix(v,p));var S=kn(p,h,d),_=En(p,h,d);if(S||_){var k=o;S&&(k=Tn(o,/[lr]/gi,{l:"r",r:"l"})),_&&(k=Tn(o,/[tb]/gi,{t:"b",b:"t"})),o=k,i=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&S,u.adjustY=s.adjustY&&_,(u.adjustX||u.adjustY)&&(v=xn(p,h,d,u))}return v.width!==h.width&&gn.css(l,"width",gn.width(l)+v.width-h.width),v.height!==h.height&&gn.css(l,"height",gn.height(l)+v.height-h.height),gn.offset(l,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:u}}function In(e,t){var n=An(e,t),r=Cn(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function Rn(e,t,n){var r=n.target||t,o=Cn(r),i=!In(r,n.overflow&&n.overflow.alwaysByViewport);return Ln(e,o,n,i)}function jn(e,t,n){var r,o,i=gn.getDocument(e),a=i.defaultView||i.parentWindow,s=gn.getWindowScrollLeft(a),l=gn.getWindowScrollTop(a),u=gn.viewportWidth(a),c=gn.viewportHeight(a);r="pageX"in t?t.pageX:s+t.clientX,o="pageY"in t?t.pageY:l+t.clientY;var f={left:r,top:o,width:0,height:0},d=r>=0&&r<=s+u&&o>=0&&o<=l+c,h=[n.points[0],"cc"];return Ln(e,f,mt(mt({},n),{},{points:h}),d)}Rn.__getOffsetParent=yn,Rn.__getVisibleRectForElement=An;var Dn=n(11041);function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e;if(Array.isArray(e)&&(i=(0,B.Gk)(e)[0]),!i)return null;var a=(0,s.E3)(i,t,r);return a.props=n?(0,o.A)((0,o.A)({},a.props),t):a.props,(0,Dn.A)("object"!==(0,Ie.A)(a.props.class),"class must be string"),a}function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e.map((function(e){return Bn(e,t,n)}))}function zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(e))return e.map((function(e){return zn(e,t,n,r)}));var o=Bn(e,t,n,r);return Array.isArray(o.children)&&(o.children=zn(o.children)),o}var Un=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function Kn(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function Vn(e,t){e!==document.activeElement&&$e(t,e)&&"function"===typeof e.focus&&e.focus()}function Hn(e,t){var n=null,r=null;function o(e){var o=(0,Re.A)(e,1),i=o[0].target;if(document.documentElement.contains(i)){var a=i.getBoundingClientRect(),s=a.width,l=a.height,u=Math.floor(s),c=Math.floor(l);n===u&&r===c||Promise.resolve().then((function(){t({width:u,height:c})})),n=u,r=c}}var i=new D(o);return e&&i.observe(e),function(){i.disconnect()}}var qn=function(e,t){var n=!1,r=null;function o(){clearTimeout(r)}function i(a){if(n&&!0!==a)o(),r=setTimeout((function(){n=!1,i()}),t.value);else{if(!1===e())return;n=!0,o(),r=setTimeout((function(){n=!1}),t.value)}}return[i,function(){n=!1,o()}]},Gn=n(11754),Yn=n(29471),$n="__lodash_hash_undefined__";function Xn(e){return this.__data__.set(e,$n),this}var Jn=Xn;function Qn(e){return this.__data__.has(e)}var Zn=Qn;function er(e){var t=-1,n=null==e?0:e.length;this.__data__=new Yn.A;while(++t<n)this.add(e[t])}er.prototype.add=er.prototype.push=Jn,er.prototype.has=Zn;var tr=er;function nr(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var rr=nr;function or(e,t){return e.has(t)}var ir=or,ar=1,sr=2;function lr(e,t,n,r,o,i){var a=n&ar,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&sr?new tr:void 0;i.set(e,t),i.set(t,e);while(++f<s){var p=e[f],v=t[f];if(r)var g=a?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!rr(t,(function(e,t){if(!ir(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(p!==v&&!o(p,v,n,r,i)){d=!1;break}}return i["delete"](e),i["delete"](t),d}var ur=lr,cr=n(241),fr=n(43988),dr=n(66984);function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}var pr=hr;function vr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var gr=vr,mr=1,yr=2,br="[object Boolean]",wr="[object Date]",Ar="[object Error]",xr="[object Map]",Cr="[object Number]",Sr="[object RegExp]",_r="[object Set]",kr="[object String]",Er="[object Symbol]",Or="[object ArrayBuffer]",Fr="[object DataView]",Tr=cr.A?cr.A.prototype:void 0,Pr=Tr?Tr.valueOf:void 0;function Nr(e,t,n,r,o,i,a){switch(n){case Fr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Or:return!(e.byteLength!=t.byteLength||!i(new fr.A(e),new fr.A(t)));case br:case wr:case Cr:return(0,dr.A)(+e,+t);case Ar:return e.name==t.name&&e.message==t.message;case Sr:case kr:return e==t+"";case xr:var s=pr;case _r:var l=r&mr;if(s||(s=gr),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=yr,a.set(e,t);var c=ur(s(e),s(t),r,o,i,a);return a["delete"](e),c;case Er:if(Pr)return Pr.call(e)==Pr.call(t)}return!1}var Mr=Nr,Lr=n(19042),Ir=1,Rr=Object.prototype,jr=Rr.hasOwnProperty;function Dr(e,t,n,r,o,i){var a=n&Ir,s=(0,Lr.A)(e),l=s.length,u=(0,Lr.A)(t),c=u.length;if(l!=c&&!a)return!1;var f=l;while(f--){var d=s[f];if(!(a?d in t:jr.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);var g=a;while(++f<l){d=s[f];var m=e[d],y=t[d];if(r)var b=a?r(y,m,d,t,e,i):r(m,y,d,e,t,i);if(!(void 0===b?m===y||o(m,y,n,r,i):b)){v=!1;break}g||(g="constructor"==d)}if(v&&!g){var w=e.constructor,A=t.constructor;w==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof A&&A instanceof A||(v=!1)}return i["delete"](e),i["delete"](t),v}var Br=Dr,Wr=n(9779),zr=n(92049),Ur=n(99912),Kr=n(33858),Vr=1,Hr="[object Arguments]",qr="[object Array]",Gr="[object Object]",Yr=Object.prototype,$r=Yr.hasOwnProperty;function Xr(e,t,n,r,o,i){var a=(0,zr.A)(e),s=(0,zr.A)(t),l=a?qr:(0,Wr.A)(e),u=s?qr:(0,Wr.A)(t);l=l==Hr?Gr:l,u=u==Hr?Gr:u;var c=l==Gr,f=u==Gr,d=l==u;if(d&&(0,Ur.A)(e)){if(!(0,Ur.A)(t))return!1;a=!0,c=!1}if(d&&!c)return i||(i=new Gn.A),a||(0,Kr.A)(e)?ur(e,t,n,r,o,i):Mr(e,t,l,n,r,o,i);if(!(n&Vr)){var h=c&&$r.call(e,"__wrapped__"),p=f&&$r.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,g=p?t.value():t;return i||(i=new Gn.A),o(v,g,n,r,i)}}return!!d&&(i||(i=new Gn.A),Br(e,t,n,r,o,i))}var Jr=Xr,Qr=n(53098);function Zr(e,t,n,r,o){return e===t||(null==e||null==t||!(0,Qr.A)(e)&&!(0,Qr.A)(t)?e!==e&&t!==t:Jr(e,t,n,r,Zr,o))}var eo=Zr;function to(e,t){return eo(e,t)}var no=to,ro={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function oo(e){return"function"!==typeof e?null:e()}function io(e){return"object"===(0,Ie.A)(e)&&e?e:null}var ao=(0,s.pM)({compatConfig:{MODE:3},name:"Align",props:ro,emits:["align"],setup:function(e,t){var n=t.expose,r=t.slots,o=(0,s.KR)({}),i=(0,s.KR)(),a=qn((function(){var t=e.disabled,n=e.target,r=e.align,a=e.onAlign;if(!t&&n&&i.value){var s,l=i.value,u=oo(n),c=io(n);o.value.element=u,o.value.point=c,o.value.align=r;var f=document,d=f.activeElement;return u&&Un(u)?s=Rn(l,u,r):c&&(s=jn(l,c,r)),Vn(d,l),a&&s&&a(l,s),!0}return!1}),(0,s.EW)((function(){return e.monitorBufferTime}))),l=(0,Re.A)(a,2),u=l[0],c=l[1],f=(0,s.KR)({cancel:function(){}}),d=(0,s.KR)({cancel:function(){}}),h=function(){var t=e.target,n=oo(t),r=io(t);i.value!==d.value.element&&(d.value.cancel(),d.value.element=i.value,d.value.cancel=Hn(i.value,u)),o.value.element===n&&Kn(o.value.point,r)&&no(o.value.align,e.align)||(u(),f.value.element!==n&&(f.value.cancel(),f.value.element=n,f.value.cancel=Hn(n,u)))};(0,s.sV)((function(){(0,s.dY)((function(){h()}))})),(0,s.$u)((function(){(0,s.dY)((function(){h()}))})),(0,s.wB)((function(){return e.disabled}),(function(e){e?c():u()}),{immediate:!0,flush:"post"});var p=(0,s.KR)(null);return(0,s.wB)((function(){return e.monitorWindowResize}),(function(e){e?p.value||(p.value=Z(window,"resize",u)):p.value&&(p.value.remove(),p.value=null)}),{flush:"post"}),(0,s.hi)((function(){f.value.cancel(),d.value.cancel(),p.value&&p.value.remove(),c()})),n({forceAlign:function(){return u(!0)}}),function(){var e=null===r||void 0===r?void 0:r.default();return e?Bn(e[0],{ref:i},!0,!0):null}}}),so=n(65586),lo=(0,s.pM)({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:rt,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var n,r=t.expose,a=t.attrs,u=t.slots,c=(0,s.KR)(),f=(0,s.KR)(),d=(0,s.KR)(),h=vt((0,s.lW)(e,"stretch")),p=(0,Re.A)(h,2),v=p[0],g=p[1],m=function(){e.stretch&&g(e.getRootDomNode())},y=(0,s.KR)(!1);(0,s.wB)((function(){return e.visible}),(function(t){clearTimeout(n),t?n=setTimeout((function(){y.value=e.visible})):y.value=!1}),{immediate:!0});var b=pt(y,m),w=(0,Re.A)(b,2),A=w[0],x=w[1],C=(0,s.KR)(),S=function(){return e.point?e.point:e.getRootDomNode},_=function(){var e;null===(e=c.value)||void 0===e||e.forceAlign()},k=function(t,n){var r,o=e.getClassNameFromAlign(n),i=d.value;(d.value!==o&&(d.value=o),"align"===A.value)&&(i!==o?Promise.resolve().then((function(){_()})):x((function(){var e;null===(e=C.value)||void 0===e||e.call(C)})),null===(r=e.onAlign)||void 0===r||r.call(e,t,n))},E=(0,s.EW)((function(){var t="object"===(0,Ie.A)(e.animation)?e.animation:at(e);return["onAfterEnter","onAfterLeave"].forEach((function(e){var n=t[e];t[e]=function(e){x(),A.value="stable",null===n||void 0===n||n(e)}})),t})),O=function(){return new Promise((function(e){C.value=e}))};(0,s.wB)([E,A],(function(){E.value||"motion"!==A.value||x()}),{immediate:!0}),r({forceAlign:_,getElement:function(){return f.value.$el||f.value}});var F=(0,s.EW)((function(){var t;return null===(t=e.align)||void 0===t||!t.points||"align"!==A.value&&"stable"!==A.value}));return function(){var t,n=e.zIndex,r=e.align,h=e.prefixCls,p=e.destroyPopupOnHide,g=e.onMouseenter,m=e.onMouseleave,b=e.onTouchstart,w=void 0===b?function(){}:b,x=e.onMousedown,C=A.value,_=[(0,o.A)((0,o.A)({},v.value),{},{zIndex:n,opacity:"motion"!==C&&"stable"!==C&&y.value?0:null,pointerEvents:y.value||"stable"===C?null:"none"}),a.style],T=(0,B.MI)(null===(t=u.default)||void 0===t?void 0:t.call(u,{visible:e.visible}));if(T.length>1){(function(){})();T=(0,s.bF)("div",{class:"".concat(h,"-content")},[T])}var P=(0,l.A)(h,a.class,d.value),N=y.value||!e.visible,M=N?(0,so.ce)(E.value.name,E.value):{};return(0,s.bF)(s.eB,(0,o.A)((0,o.A)({ref:f},M),{},{onBeforeEnter:O}),{default:function(){return!p||e.visible?(0,s.bo)((0,s.bF)(ao,{target:S(),key:"popup",ref:c,monitorWindowResize:!0,disabled:F.value,align:r,onAlign:k},{default:function(){return(0,s.bF)("div",(0,o.A)((0,o.A)({class:P,onMouseenter:g,onMouseleave:m,onMousedown:(0,s.D$)(x,["capture"])},(0,i.A)({},Q?"onTouchstartPassive":"onTouchstart",(0,s.D$)(w,["capture"]))),{},{style:_}),[T])}}),[[s.aG,y.value]]):null}})}}}),uo=(0,s.pM)({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:it,setup:function(e,t){var n=t.attrs,r=t.slots,i=t.expose,a=(0,s.KR)(!1),l=(0,s.KR)(!1),u=(0,s.KR)();return(0,s.wB)([function(){return e.visible},function(){return e.mobile}],(function(){a.value=e.visible,e.visible&&e.mobile&&(l.value=!0)}),{immediate:!0,flush:"post"}),i({forceAlign:function(){var e;null===(e=u.value)||void 0===e||e.forceAlign()},getElement:function(){var e;return null===(e=u.value)||void 0===e?void 0:e.getElement()}}),function(){var t=(0,o.A)((0,o.A)((0,o.A)({},e),n),{},{visible:a.value}),i=l.value?(0,s.bF)(ut,(0,o.A)((0,o.A)({},t),{},{mobile:e.mobile,ref:u}),{default:r.default}):(0,s.bF)(lo,(0,o.A)((0,o.A)({},t),{},{ref:u}),{default:r.default});return(0,s.bF)("div",null,[(0,s.bF)(st,t,null),i])}}});function co(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function fo(e,t,n){var r=e[t]||{};return(0,o.A)((0,o.A)({},r),n)}function ho(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s=i[a];if(co(e[s].points,o,r))return"".concat(t,"-placement-").concat(s)}return""}var po={methods:{setState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"===typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var r=this.getDerivedStateFromProps((0,B.Oq)(this),(0,o.A)((0,o.A)({},this.$data),n));if(null===r)return;n=(0,o.A)((0,o.A)({},n),r||{})}(0,a.A)(this.$data,n),this._.isMounted&&this.$forceUpdate(),(0,s.dY)((function(){t&&t()}))},__emit:function(){var e=[].slice.call(arguments,0),t=e[0];t="on".concat(t[0].toUpperCase()).concat(t.substring(1));var n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)n[r].apply(n,(0,z.A)(e.slice(1)));else n.apply(void 0,(0,z.A)(e.slice(1)))}}},vo=Symbol("TriggerContextKey"),go=function(){var e=null;return(0,s.Gt)(vo,{setPortal:function(t){e=t},popPortal:!0}),function(){return e}},mo=function(e){return e?(0,s.WQ)(vo,{setPortal:function(){},popPortal:!1}):{setPortal:function(){},popPortal:!1}},yo=Symbol("PortalContextKey"),bo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0};(0,s.Gt)(yo,{inTriggerContext:t.inTriggerContext,shouldRender:(0,s.EW)((function(){var t=e||{},n=t.sPopupVisible,r=t.popupRef,o=t.forceRender,i=t.autoDestroy,a=!1;return(n||r||o)&&(a=!0),!n&&i&&(a=!1),a}))})},wo=function(){bo({},{inTriggerContext:!1});var e=(0,s.WQ)(yo,{shouldRender:(0,s.EW)((function(){return!1})),inTriggerContext:!1});return{shouldRender:(0,s.EW)((function(){return e.shouldRender.value||!1===e.inTriggerContext}))}},Ao=(0,s.pM)({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Fe.A.func.isRequired,didUpdate:Function},setup:function(e,t){var n,r=t.slots,o=!0,i=wo(),a=i.shouldRender;(0,s.KC)((function(){o=!1,a.value&&(n=e.getContainer())}));var l=(0,s.wB)(a,(function(){a.value&&!n&&(n=e.getContainer()),n&&l()}));return(0,s.$u)((function(){(0,s.dY)((function(){var t;a.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))}))})),(0,s.xo)((function(){n&&n.parentNode&&n.parentNode.removeChild(n)})),function(){return a.value?o?null===(e=r.default)||void 0===e?void 0:e.call(r):n?(0,s.bF)(s.Im,{to:n},r):null:null;var e}}});function xo(){}function Co(){return""}function So(e){return e?e.ownerDocument:window.document}var _o=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],ko=(0,s.pM)({compatConfig:{MODE:3},name:"Trigger",mixins:[po],inheritAttrs:!1,props:{action:Fe.A.oneOfType([Fe.A.string,Fe.A.arrayOf(Fe.A.string)]).def([]),showAction:Fe.A.any.def([]),hideAction:Fe.A.any.def([]),getPopupClassNameFromAlign:Fe.A.any.def(Co),onPopupVisibleChange:Function,afterPopupVisibleChange:Fe.A.func.def(xo),popup:Fe.A.any,popupStyle:{type:Object,default:void 0},prefixCls:Fe.A.string.def("rc-trigger-popup"),popupClassName:Fe.A.string.def(""),popupPlacement:String,builtinPlacements:Fe.A.object,popupTransitionName:String,popupAnimation:Fe.A.any,mouseEnterDelay:Fe.A.number.def(0),mouseLeaveDelay:Fe.A.number.def(.1),zIndex:Number,focusDelay:Fe.A.number.def(0),blurDelay:Fe.A.number.def(.15),getPopupContainer:Function,getDocument:Fe.A.func.def(So),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Fe.A.object.def((function(){return{}})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function,tryPopPortal:Boolean},setup:function(e){var t=(0,s.EW)((function(){var t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?fo(r,t,n):n})),n=mo(e.tryPopPortal),r=n.setPortal,o=n.popPortal,i=(0,s.KR)(null),a=function(e){i.value=e};return{popPortal:o,setPortal:r,vcTriggerContext:(0,s.WQ)("vcTriggerContext",{}),popupRef:i,setPopupRef:a,triggerRef:(0,s.KR)(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data:function(){var e,t,n=this,r=this.$props;return t=void 0!==this.popupVisible?!!r.popupVisible:!!r.defaultPopupVisible,_o.forEach((function(e){n["fire".concat(e)]=function(t){n.fireEvents(e,t)}})),null===(e=this.setPortal)||void 0===e||e.call(this,(0,s.bF)(Ao,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible:function(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){(0,s.Gt)("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),bo(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick((function(){e.updatedCal()}))},updated:function(){var e=this;this.$nextTick((function(){e.updatedCal()}))},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),G.cancel(this.attachId)},methods:{updatedCal:function(){var e,t=this.$props,n=this.$data;n.sPopupVisible?(this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Z(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Z(e,"touchstart",this.onDocumentClick,!!Q&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Z(e,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Z(window,"blur",this.onContextmenuClose))):this.clearOutsideHandler()},onMouseenter:function(e){var t=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var t;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&$e(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){$e(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();var n=!this.$data.sPopupVisible;(this.isClickToHide()&&!n||n&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,t=this.vcTriggerContext,n=void 0===t?{}:t;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((function(){e.hasPopupMouseDown=!1}),0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},onDocumentClick:function(e){if(!this.$props.mask||this.$props.maskClosable){var t=e.target,n=this.getRootDomNode(),r=this.getPopupDomNode();$e(n,t)&&!this.isContextMenuOnly()||$e(r,t)||this.hasPopupMouseDown||this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var t=(0,B.oK)(this.triggerRef);return(0,B.oK)(e(t))}try{var n=(0,B.oK)(this.triggerRef);if(n)return n}catch(r){}return(0,B.oK)(this)},handleGetPopupClassFromAlign:function(e){var t=[],n=this.$props,r=n.popupPlacement,o=n.builtinPlacements,i=n.prefixCls,a=n.alignPoint,s=n.getPopupClassNameFromAlign;return r&&o&&t.push(ho(o,i,e,a)),s&&t.push(s(e)),t.join(" ")},getPopupAlign:function(){var e=this.$props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?fo(r,t,n):n},getComponent:function(){var e=this,t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Q?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var n=this.handleGetPopupClassFromAlign,r=this.getRootDomNode,i=this.getContainer,a=this.$attrs,l=this.$props,u=l.prefixCls,c=l.destroyPopupOnHide,f=l.popupClassName,d=l.popupAnimation,h=l.popupTransitionName,p=l.popupStyle,v=l.mask,g=l.maskAnimation,m=l.maskTransitionName,y=l.zIndex,b=l.stretch,w=l.alignPoint,A=l.mobile,x=l.forceRender,C=this.$data,S=C.sPopupVisible,_=C.point,k=(0,o.A)((0,o.A)({prefixCls:u,destroyPopupOnHide:c,visible:S,point:w?_:null,align:this.align,animation:d,getClassNameFromAlign:n,stretch:b,getRootDomNode:r,mask:v,zIndex:y,transitionName:h,maskAnimation:g,maskTransitionName:m,getContainer:i,class:f,style:p,onAlign:a.onPopupAlign||xo},t),{},{ref:this.setPopupRef,mobile:A,forceRender:x});return(0,s.bF)(uo,k,{default:this.$slots.popup||function(){return(0,B.QQ)(e,"popup")}})},attachParent:function(e){var t=this;G.cancel(this.attachId);var n,r=this.$props,o=r.getPopupContainer,i=r.getDocument,a=this.getRootDomNode();o?(a||0===o.length)&&(n=o(a)):n=i(this.getRootDomNode()).body,n?n.appendChild(e):this.attachId=G((function(){t.attachParent(e)}))},getContainer:function(){var e=this.$props,t=e.getDocument,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible:function(e,t){var n=this.alignPoint,r=this.sPopupVisible,o=this.onPopupVisibleChange;this.clearDelayTimer(),r!==e&&((0,B.cK)(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:r}),o&&o(e)),n&&t&&e&&this.setPoint(t)},setPoint:function(e){var t=this.$props.alignPoint;t&&e&&this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=nt((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)},clearDelayTimer:function(){this.delayTimer&&(tt(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var t=function(){},n=(0,B.kQ)(this);return this.childOriginEvents[e]&&n[e]?this["fire".concat(e)]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isContextMenuOnly:function(){var e=this.$props.action;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextmenu")||-1!==n.indexOf("contextmenu")},isClickToHide:function(){var e=this.$props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},isMouseEnterToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseenter")},isMouseLeaveToHide:function(){var e=this.$props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseleave")},isFocusToShow:function(){var e=this.$props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},isBlurToHide:function(){var e=this.$props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},forcePopupAlign:function(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents:function(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);var n=this.$props[e]||this.$attrs[e];n&&n(t)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,t=this.$attrs,n=(0,B.Gk)((0,B.$c)(this)),r=this.$props.alignPoint,i=n[0];this.childOriginEvents=(0,B.kQ)(i);var a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[Q?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[Q?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,r&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=function(t){!t||t.relatedTarget&&$e(t.target,t.relatedTarget)||e.createTwoChains("onBlur")(t)});var u=(0,l.A)(i&&i.props&&i.props.class,t.class);u&&(a.class=u);var c=Bn(i,(0,o.A)((0,o.A)({},a),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return c;var f=(0,s.bF)(Ao,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return(0,s.bF)(s.FK,null,[f,c])}}),Eo=ko,Oo=["empty"],Fo=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},To=(0,s.pM)({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Fe.A.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Fe.A.oneOfType([Number,Boolean]).def(!0),popupElement:Fe.A.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose,u=(0,s.EW)((function(){var t=e.dropdownMatchSelectWidth;return Fo(t)})),c=(0,s.KR)();return a({getPopupElement:function(){return c.value}}),function(){var t=(0,o.A)((0,o.A)({},e),r),a=t.empty,f=void 0!==a&&a,d=(0,je.A)(t,Oo),h=d.visible,p=d.dropdownAlign,v=d.prefixCls,g=d.popupElement,m=d.dropdownClassName,y=d.dropdownStyle,b=d.direction,w=void 0===b?"ltr":b,A=d.placement,x=d.dropdownMatchSelectWidth,C=d.containerWidth,S=d.dropdownRender,_=d.animation,k=d.transitionName,E=d.getPopupContainer,O=d.getTriggerDOMNode,F=d.onPopupVisibleChange,T=d.onPopupMouseEnter,P="".concat(v,"-dropdown"),N=g;S&&(N=S({menuNode:g,props:e}));var M=_?"".concat(P,"-").concat(_):k,L=(0,o.A)({minWidth:"".concat(C,"px")},y);return"number"===typeof x?L.width="".concat(x,"px"):x&&(L.width="".concat(C,"px")),(0,s.bF)(Eo,(0,o.A)((0,o.A)({},e),{},{showAction:F?["click"]:[],hideAction:F?["click"]:[],popupPlacement:A||("rtl"===w?"bottomRight":"bottomLeft"),builtinPlacements:u.value,prefixCls:P,popupTransitionName:M,popupAlign:p,popupVisible:h,getPopupContainer:E,popupClassName:(0,l.A)(m,(0,i.A)({},"".concat(P,"-empty"),f)),popupStyle:L,getTriggerDOMNode:O,onPopupVisibleChange:F}),{default:n.default,popup:function(){return(0,s.bF)("div",{ref:c,onMouseenter:T},[N])}})}}}),Po=To,No={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=No.F1&&t<=No.F12)return!1;switch(t){case No.ALT:case No.CAPS_LOCK:case No.CONTEXT_MENU:case No.CTRL:case No.DOWN:case No.END:case No.ESC:case No.HOME:case No.INSERT:case No.LEFT:case No.MAC_FF_META:case No.META:case No.NUMLOCK:case No.NUM_CENTER:case No.PAGE_DOWN:case No.PAGE_UP:case No.PAUSE:case No.PRINT_SCREEN:case No.RIGHT:case No.SHIFT:case No.UP:case No.WIN_KEY:case No.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=No.ZERO&&e<=No.NINE)return!0;if(e>=No.NUM_ZERO&&e<=No.NUM_MULTIPLY)return!0;if(e>=No.A&&e<=No.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case No.SPACE:case No.QUESTION_MARK:case No.NUM_PLUS:case No.NUM_MINUS:case No.NUM_PERIOD:case No.NUM_DIVISION:case No.SEMICOLON:case No.DASH:case No.EQUALS:case No.COMMA:case No.PERIOD:case No.SLASH:case No.APOSTROPHE:case No.SINGLE_QUOTE:case No.OPEN_SQUARE_BRACKET:case No.BACKSLASH:case No.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Mo=No,Lo=function(e,t){var n,r,o=t.slots,i=e.class,a=e.customizeIcon,l=e.customizeIconProps,u=e.onMousedown,c=e.onClick;return r="function"===typeof a?a(l):a,(0,s.bF)("span",{class:i,onMousedown:function(e){e.preventDefault(),u&&u(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},[void 0!==r?r:(0,s.bF)("span",{class:i.split(/\s+/).map((function(e){return"".concat(e,"-icon")}))},[null===(n=o.default)||void 0===n?void 0:n.call(o)])])};Lo.inheritAttrs=!1,Lo.displayName="TransBtn",Lo.props={class:String,customizeIcon:Fe.A.any,customizeIconProps:Fe.A.any,onMousedown:Function,onClick:Function};var Io=Lo;function Ro(e){e.target.composing=!0}function jo(e){e.target.composing&&(e.target.composing=!1,Do(e.target,"input"))}function Do(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Bo(e,t,n,r){e.addEventListener(t,n,r)}var Wo={created:function(e,t){t.modifiers&&t.modifiers.lazy||(Bo(e,"compositionstart",Ro),Bo(e,"compositionend",jo),Bo(e,"change",jo))}},zo=Wo,Uo={inputRef:Fe.A.any,prefixCls:String,id:String,inputElement:Fe.A.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),attrs:Fe.A.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Ko=(0,s.pM)({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:Uo,setup:function(e){var t=null,n=(0,s.WQ)("VCSelectContainerEvent");return function(){var r,i,u=e.prefixCls,c=e.id,f=e.inputElement,d=e.disabled,h=e.tabindex,p=e.autofocus,v=e.autocomplete,g=e.editable,m=e.activeDescendantId,y=e.value,b=e.onKeydown,w=e.onMousedown,A=e.onChange,x=e.onPaste,C=e.onCompositionstart,S=e.onCompositionend,_=e.onFocus,k=e.onBlur,E=e.open,O=e.inputRef,F=e.attrs,T=f||(0,s.bo)((0,s.bF)("input",null,null),[[zo]]),P=T.props||{},N=P.onKeydown,M=P.onInput,L=P.onFocus,I=P.onBlur,R=P.onMousedown,j=P.onCompositionstart,D=P.onCompositionend,B=P.style;return T=Bn(T,(0,a.A)((0,o.A)((0,o.A)((0,o.A)({type:"search"},P),{},{id:c,ref:O,disabled:d,tabindex:h,autocomplete:v||"off",autofocus:p,class:(0,l.A)("".concat(u,"-selection-search-input"),null===(r=T)||void 0===r||null===(i=r.props)||void 0===i?void 0:i.class),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":"".concat(c,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(c,"_list"),"aria-activedescendant":m},F),{},{value:g?y:"",readonly:!g,unselectable:g?null:"on",style:(0,o.A)((0,o.A)({},B),{},{opacity:g?null:0}),onKeydown:function(e){b(e),N&&N(e)},onMousedown:function(e){w(e),R&&R(e)},onInput:function(e){A(e),M&&M(e)},onCompositionstart:function(e){C(e),j&&j(e)},onCompositionend:function(e){S(e),D&&D(e)},onPaste:x,onFocus:function(){clearTimeout(t),L&&L(arguments.length<=0?void 0:arguments[0]),_&&_(arguments.length<=0?void 0:arguments[0]),null===n||void 0===n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=setTimeout((function(){I&&I(r[0]),k&&k(r[0]),null===n||void 0===n||n.blur(r[0])}),100)}}),"textarea"===T.type?{}:{type:"search"}),!0,!0),T}}}),Vo=Ko,Ho="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap",qo="onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n    onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n    onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n    onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n    onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n    onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n    onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError",Go="".concat(Ho," ").concat(qo).split(/[\s\n]+/),Yo="aria-",$o="data-";function Xo(e,t){return 0===e.indexOf(t)}function Jo(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,o.A)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||Xo(n,Yo))||t.data&&Xo(n,$o)||t.attr&&(Go.includes(n)||Go.includes(n.toLowerCase())))&&(r[n]=e[n])})),r}var Qo=Symbol("OverflowContextProviderKey"),Zo=(0,s.pM)({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,t){var n=t.slots;return(0,s.Gt)(Qo,(0,s.EW)((function(){return e.value}))),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),ei=function(){return(0,s.WQ)(Qo,(0,s.EW)((function(){return null})))},ti=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],ni=void 0,ri=(0,s.pM)({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:Fe.A.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:Fe.A.any,invalidate:Boolean},setup:function(e,t){var n=t.slots,r=t.expose,i=(0,s.EW)((function(){return e.responsive&&!e.display})),a=(0,s.KR)();function u(t){e.registerSize(e.itemKey,t)}return r({itemNodeRef:a}),(0,s.hi)((function(){u(null)})),function(){var t,r,c=e.prefixCls,f=e.invalidate,d=e.item,h=e.renderItem,p=e.responsive,v=(e.registerSize,e.itemKey,e.display,e.order),g=e.component,m=void 0===g?"div":g,y=(0,je.A)(e,ti),b=null===(t=n.default)||void 0===t?void 0:t.call(n),w=h&&d!==ni?h(d):b;f||(r={opacity:i.value?0:1,height:i.value?0:ni,overflowY:i.value?"hidden":ni,order:p?v:ni,pointerEvents:i.value?"none":ni,position:i.value?"absolute":ni});var A={};return i.value&&(A["aria-hidden"]=!0),(0,s.bF)(W,{disabled:!p,onResize:function(e){var t=e.offsetWidth;u(t)}},{default:function(){return(0,s.bF)(m,(0,o.A)((0,o.A)((0,o.A)({class:(0,l.A)(!f&&c),style:r},A),y),{},{ref:a}),{default:function(){return[w]}})}})}}}),oi=["component"],ii=["className"],ai=["class"],si=(0,s.pM)({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:Fe.A.any,title:Fe.A.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,t){var n=t.slots,r=t.attrs,i=ei();return function(){if(!i.value){var t,a=e.component,u=void 0===a?"div":a,c=(0,je.A)(e,oi);return(0,s.bF)(u,(0,o.A)((0,o.A)({},c),r),{default:function(){return[null===(t=n.default)||void 0===t?void 0:t.call(n)]}})}var f=i.value,d=f.className,h=(0,je.A)(f,ii),p=r.class,v=(0,je.A)(r,ai);return(0,s.bF)(Zo,{value:null},{default:function(){return[(0,s.bF)(ri,(0,o.A)((0,o.A)((0,o.A)({class:(0,l.A)(d,p)},h),v),e),n)]}})}}}),li=["class","style"],ui="responsive",ci="invalidate";function fi(e){return"+ ".concat(e.length," ...")}var di=function(){return{id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:Fe.A.any,component:String,itemComponent:Fe.A.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},hi=(0,s.pM)({name:"Overflow",inheritAttrs:!1,props:di(),emits:["visibleChange"],setup:function(e,t){var n=t.attrs,r=t.emit,i=t.slots,a=(0,s.EW)((function(){return"full"===e.ssr})),u=(0,s.KR)(null),c=(0,s.EW)((function(){return u.value||0})),f=(0,s.KR)(new Map),d=(0,s.KR)(0),h=(0,s.KR)(0),p=(0,s.KR)(0),v=(0,s.KR)(null),g=(0,s.KR)(null),m=(0,s.EW)((function(){return null===g.value&&a.value?Number.MAX_SAFE_INTEGER:g.value||0})),y=(0,s.KR)(!1),b=(0,s.EW)((function(){return"".concat(e.prefixCls,"-item")})),w=(0,s.EW)((function(){return Math.max(d.value,h.value)})),A=(0,s.EW)((function(){return!(!e.data.length||e.maxCount!==ui)})),x=(0,s.EW)((function(){return e.maxCount===ci})),C=(0,s.EW)((function(){return A.value||"number"===typeof e.maxCount&&e.data.length>e.maxCount})),S=(0,s.EW)((function(){var t=e.data;return A.value?t=null===u.value&&a.value?e.data:e.data.slice(0,Math.min(e.data.length,c.value/e.itemWidth)):"number"===typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t})),_=(0,s.EW)((function(){return A.value?e.data.slice(m.value+1):e.data.slice(S.value.length)})),k=function(t,n){var r;return"function"===typeof e.itemKey?e.itemKey(t):null!==(r=e.itemKey&&(null===t||void 0===t?void 0:t[e.itemKey]))&&void 0!==r?r:n},E=(0,s.EW)((function(){return e.renderItem||function(e){return e}})),O=function(t,n){g.value=t,n||(y.value=t<e.data.length-1,r("visibleChange",t))},F=function(e,t){u.value=t.clientWidth},T=function(e,t){var n=new Map(f.value);null===t?n.delete(e):n.set(e,t),f.value=n},P=function(e,t){d.value=h.value,h.value=t},N=function(e,t){p.value=t},M=function(e){return f.value.get(k(S.value[e],e))};return(0,s.wB)([c,f,h,p,function(){return e.itemKey},S],(function(){if(c.value&&w.value&&S.value){var t=p.value,n=S.value.length,r=n-1;if(!n)return O(0),void(v.value=null);for(var o=0;o<n;o+=1){var i=M(o);if(void 0===i){O(o-1,!0);break}if(t+=i,0===r&&t<=c.value||o===r-1&&t+M(r)<=c.value){O(r),v.value=null;break}if(t+w.value>c.value){O(o-1),v.value=t-i-p.value+h.value;break}}e.suffix&&M(0)+p.value>c.value&&(v.value=null)}})),function(){var t=y.value&&!!_.value.length,r=e.itemComponent,a=e.renderRawItem,u=e.renderRawRest,c=e.renderRest,f=e.prefixCls,d=void 0===f?"rc-overflow":f,h=e.suffix,p=e.component,g=void 0===p?"div":p,w=e.id,O=e.onMousedown,M=n.class,L=n.style,I=(0,je.A)(n,li),R={};null!==v.value&&A.value&&(R={position:"absolute",left:"".concat(v.value,"px"),top:0});var j={prefixCls:b.value,responsive:A.value,component:r,invalidate:x.value},D=a?function(e,t){var n=k(e,t);return(0,s.bF)(Zo,{key:n,value:(0,o.A)((0,o.A)({},j),{},{order:t,item:e,itemKey:n,registerSize:T,display:t<=m.value})},{default:function(){return[a(e,t)]}})}:function(e,t){var n=k(e,t);return(0,s.bF)(ri,(0,o.A)((0,o.A)({},j),{},{order:t,key:n,item:e,renderItem:E.value,itemKey:n,registerSize:T,display:t<=m.value}),null)},B=function(){return null},z={order:t?m.value:Number.MAX_SAFE_INTEGER,className:"".concat(b.value," ").concat(b.value,"-rest"),registerSize:P,display:t};if(u)u&&(B=function(){return(0,s.bF)(Zo,{value:(0,o.A)((0,o.A)({},j),z)},{default:function(){return[u(_.value)]}})});else{var U=c||fi;B=function(){return(0,s.bF)(ri,(0,o.A)((0,o.A)({},j),z),{default:function(){return"function"===typeof U?U(_.value):U}})}}var K=function(){var e;return(0,s.bF)(g,(0,o.A)({id:w,class:(0,l.A)(!x.value&&d,M),style:L,onMousedown:O},I),{default:function(){return[S.value.map(D),C.value?B():null,h&&(0,s.bF)(ri,(0,o.A)((0,o.A)({},j),{},{order:m.value,class:"".concat(b.value,"-suffix"),registerSize:N,display:!0,style:R}),{default:function(){return h}}),null===(e=i.default)||void 0===e?void 0:e.call(i)]}})};return(0,s.bF)(W,{disabled:!A.value,onResize:F},{default:K})}}});hi.Item=si,hi.RESPONSIVE=ui,hi.INVALIDATE=ci;var pi=hi,vi=pi,gi=Symbol("TreeSelectLegacyContextPropsKey");function mi(e){return(0,s.Gt)(gi,e)}function yi(){return(0,s.WQ)(gi,{})}var bi={id:String,prefixCls:String,values:Fe.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Fe.A.any,placeholder:Fe.A.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),removeIcon:Fe.A.any,choiceTransitionName:String,maxTagCount:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),maxTagTextLength:Number,maxTagPlaceholder:Fe.A.any.def((function(){return function(e){return"+ ".concat(e.length," ...")}})),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},wi=function(e){e.preventDefault(),e.stopPropagation()},Ai=(0,s.pM)({name:"MultipleSelectSelector",inheritAttrs:!1,props:bi,setup:function(e){var t=(0,s.KR)(),n=(0,s.KR)(0),r=(0,s.KR)(!1),o=yi(),a=(0,s.EW)((function(){return"".concat(e.prefixCls,"-selection")})),u=(0,s.EW)((function(){return e.open||"tags"===e.mode?e.searchValue:""})),c=(0,s.EW)((function(){return"tags"===e.mode||e.showSearch&&(e.open||r.value)}));function f(t,n,r,o,u){return(0,s.bF)("span",{class:(0,l.A)("".concat(a.value,"-item"),(0,i.A)({},"".concat(a.value,"-item-disabled"),r)),title:"string"===typeof t||"number"===typeof t?t.toString():void 0},[(0,s.bF)("span",{class:"".concat(a.value,"-item-content")},[n]),o&&(0,s.bF)(Io,{class:"".concat(a.value,"-item-remove"),onMousedown:wi,onClick:u,customizeIcon:e.removeIcon},{default:function(){return[(0,s.eW)("×")]}})])}function d(t,n,r,i,a,l){var u,c=function(t){wi(t),e.onToggleOpen(!open)},f=l;o.keyEntities&&(f=(null===(u=o.keyEntities[t])||void 0===u?void 0:u.node)||{});return(0,s.bF)("span",{key:t,onMousedown:c},[e.tagRender({label:n,value:t,disabled:r,closable:i,onClose:a,option:f})])}function h(t){var n=t.disabled,r=t.label,o=t.value,i=t.option,a=!e.disabled&&!n,s=r;if("number"===typeof e.maxTagTextLength&&("string"===typeof r||"number"===typeof r)){var l=String(s);l.length>e.maxTagTextLength&&(s="".concat(l.slice(0,e.maxTagTextLength),"..."))}var u=function(n){var r;n&&n.stopPropagation(),null===(r=e.onRemove)||void 0===r||r.call(e,t)};return"function"===typeof e.tagRender?d(o,s,n,a,u,i):f(r,s,n,a,u)}function p(t){var n=e.maxTagPlaceholder,r=void 0===n?function(e){return"+ ".concat(e.length," ...")}:n,o="function"===typeof r?r(t):r;return f(o,o,!1)}return(0,s.sV)((function(){(0,s.wB)(u,(function(){n.value=t.value.scrollWidth}),{flush:"post",immediate:!0})})),function(){var o=e.id,i=e.prefixCls,l=e.values,f=e.open,d=e.inputRef,v=e.placeholder,g=e.disabled,m=e.autofocus,y=e.autocomplete,b=e.activeDescendantId,w=e.tabindex,A=e.onInputChange,x=e.onInputPaste,C=e.onInputKeyDown,S=e.onInputMouseDown,_=e.onInputCompositionStart,k=e.onInputCompositionEnd,E=(0,s.bF)("div",{class:"".concat(a.value,"-search"),style:{width:n.value+"px"},key:"input"},[(0,s.bF)(Vo,{inputRef:d,open:f,prefixCls:i,id:o,inputElement:null,disabled:g,autofocus:m,autocomplete:y,editable:c.value,activeDescendantId:b,value:u.value,onKeydown:C,onMousedown:S,onChange:A,onPaste:x,onCompositionstart:_,onCompositionend:k,tabindex:w,attrs:Jo(e,!0),onFocus:function(){return r.value=!0},onBlur:function(){return r.value=!1}},null),(0,s.bF)("span",{ref:t,class:"".concat(a.value,"-search-mirror"),"aria-hidden":!0},[u.value,(0,s.eW)(" ")])]),O=(0,s.bF)(vi,{prefixCls:"".concat(a.value,"-overflow"),data:l,renderItem:h,renderRest:p,suffix:E,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return(0,s.bF)(s.FK,null,[O,!l.length&&!u.value&&(0,s.bF)("span",{class:"".concat(a.value,"-placeholder")},[v])])}}}),xi=Ai,Ci={inputElement:Fe.A.any,id:String,prefixCls:String,values:Fe.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Fe.A.any,placeholder:Fe.A.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Si=(0,s.pM)({name:"SingleSelector",setup:function(e){var t=(0,s.KR)(!1),n=(0,s.EW)((function(){return"combobox"===e.mode})),r=(0,s.EW)((function(){return n.value||e.showSearch})),o=(0,s.EW)((function(){var r=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(r=e.activeValue),r})),i=yi();(0,s.wB)([n,function(){return e.activeValue}],(function(){n.value&&(t.value=!1)}),{immediate:!0});var a=(0,s.EW)((function(){return!("combobox"!==e.mode&&!e.open&&!e.showSearch)&&!!o.value})),l=(0,s.EW)((function(){var t=e.values[0];return!t||"string"!==typeof t.label&&"number"!==typeof t.label?void 0:t.label.toString()})),u=function(){if(e.values[0])return null;var t=a.value?{visibility:"hidden"}:void 0;return(0,s.bF)("span",{class:"".concat(e.prefixCls,"-selection-placeholder"),style:t},[e.placeholder])};return function(){var c,f=e.inputElement,d=e.prefixCls,h=e.id,p=e.values,v=e.inputRef,g=e.disabled,m=e.autofocus,y=e.autocomplete,b=e.activeDescendantId,w=e.open,A=e.tabindex,x=e.optionLabelRender,C=e.onInputKeyDown,S=e.onInputMouseDown,_=e.onInputChange,k=e.onInputPaste,E=e.onInputCompositionStart,O=e.onInputCompositionEnd,F=p[0],T=null;if(F&&i.customSlots){var P,N,M,L=null!==(P=F.key)&&void 0!==P?P:F.value,I=(null===(N=i.keyEntities[L])||void 0===N?void 0:N.node)||{};T=i.customSlots[null===(M=I.slots)||void 0===M?void 0:M.title]||i.customSlots.title||F.label,"function"===typeof T&&(T=T(I))}else T=x&&F?x(F.option):null===F||void 0===F?void 0:F.label;return(0,s.bF)(s.FK,null,[(0,s.bF)("span",{class:"".concat(d,"-selection-search")},[(0,s.bF)(Vo,{inputRef:v,prefixCls:d,id:h,open:w,inputElement:f,disabled:g,autofocus:m,autocomplete:y,editable:r.value,activeDescendantId:b,value:o.value,onKeydown:C,onMousedown:S,onChange:function(e){t.value=!0,_(e)},onPaste:k,onCompositionstart:E,onCompositionend:O,tabindex:A,attrs:Jo(e,!0)},null)]),!n.value&&F&&!a.value&&(0,s.bF)("span",{class:"".concat(d,"-selection-item"),title:l.value},[(0,s.bF)(s.FK,{key:null!==(c=F.key)&&void 0!==c?c:F.value},[T])]),u()])}}});Si.props=Ci,Si.inheritAttrs=!1;var _i=Si;function ki(e){return![Mo.ESC,Mo.SHIFT,Mo.BACKSPACE,Mo.TAB,Mo.WIN_KEY,Mo.ALT,Mo.META,Mo.WIN_KEY_RIGHT,Mo.CTRL,Mo.SEMICOLON,Mo.EQUALS,Mo.CAPS_LOCK,Mo.CONTEXT_MENU,Mo.F1,Mo.F2,Mo.F3,Mo.F4,Mo.F5,Mo.F6,Mo.F7,Mo.F8,Mo.F9,Mo.F10,Mo.F11,Mo.F12].includes(e)}function Ei(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;function r(r){(r||null===n)&&(n=r),clearTimeout(e),e=setTimeout((function(){n=null}),t)}return(0,s.xo)((function(){clearTimeout(e)})),[function(){return n},r]}function Oi(){var e=function e(t){e.current=t};return e}var Fi=Oi,Ti=(0,s.pM)({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Fe.A.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Fe.A.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),disabled:{type:Boolean,default:void 0},placeholder:Fe.A.any,removeIcon:Fe.A.any,maxTagCount:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),maxTagTextLength:Number,maxTagPlaceholder:Fe.A.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup:function(e,t){var n=t.expose,r=Fi(),i=!1,a=Ei(0),l=(0,Re.A)(a,2),u=l[0],c=l[1],f=function(t){var n=t.which;n!==Mo.UP&&n!==Mo.DOWN||t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n!==Mo.ENTER||"tags"!==e.mode||i||e.open||e.onSearchSubmit(t.target.value),ki(n)&&e.onToggleOpen(!0)},d=function(){c(!0)},h=null,p=function(t){!1!==e.onSearch(t,!0,i)&&e.onToggleOpen(!0)},v=function(){i=!0},g=function(t){i=!1,"combobox"!==e.mode&&p(t.target.value)},m=function(t){var n=t.target.value;if(e.tokenWithEnter&&h&&/[\r\n]/.test(h)){var r=h.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(r,h)}h=null,p(n)},y=function(e){var t=e.clipboardData,n=t.getData("text");h=n},b=function(e){var t=e.target;if(t!==r.current){var n=void 0!==document.body.style.msTouchAction;n?setTimeout((function(){r.current.focus()})):r.current.focus()}},w=function(t){var n=u();t.target===r.current||n||t.preventDefault(),("combobox"===e.mode||e.showSearch&&n)&&e.open||(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:function(){r.current.focus()},blur:function(){r.current.blur()}}),function(){var t=e.prefixCls,n=e.domRef,i=e.mode,a={inputRef:r,onInputKeyDown:f,onInputMouseDown:d,onInputChange:m,onInputPaste:y,onInputCompositionStart:v,onInputCompositionEnd:g},l="multiple"===i||"tags"===i?(0,s.bF)(xi,(0,o.A)((0,o.A)({},e),a),null):(0,s.bF)(_i,(0,o.A)((0,o.A)({},e),a),null);return(0,s.bF)("div",{ref:n,class:"".concat(t,"-selector"),onClick:b,onMousedown:w},[l])}}}),Pi=Ti;function Ni(e,t,n){function r(r){var o,i,a,s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);var l=[null===(o=e[0])||void 0===o?void 0:o.value,null===(i=e[1])||void 0===i||null===(a=i.value)||void 0===a?void 0:a.getPopupElement()];t.value&&l.every((function(e){return e&&!e.contains(s)&&e!==s}))&&n(!1)}(0,s.sV)((function(){window.addEventListener("mousedown",r)})),(0,s.xo)((function(){window.removeEventListener("mousedown",r)}))}function Mi(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=(0,s.KR)(!1),r=function(){clearTimeout(e)};(0,s.sV)((function(){r()}));var o=function(o,i){r(),e=setTimeout((function(){n.value=o,i&&i()}),t)};return[n,o,r]}var Li=Symbol("BaseSelectContextKey");function Ii(e){return(0,s.Gt)(Li,e)}function Ri(){return(0,s.WQ)(Li,{})}var ji=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4)))};function Di(e){if(!(0,s.i9)(e))return(0,s.Kh)(e);var t=new Proxy({},{get:function(t,n,r){return Reflect.get(e.value,n,r)},set:function(t,n,r){return e.value[n]=r,!0},deleteProperty:function(t,n){return Reflect.deleteProperty(e.value,n)},has:function(t,n){return Reflect.has(e.value,n)},ownKeys:function(){return Object.keys(e.value)},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}}});return(0,s.Kh)(t)}var Bi=["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"],Wi=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],zi=function(){return{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:Fe.A.any,emptyOptions:Boolean}},Ui=function(){return{showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Fe.A.any,placeholder:Fe.A.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:Fe.A.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Fe.A.any,clearIcon:Fe.A.any,removeIcon:Fe.A.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}},Ki=function(){return(0,o.A)((0,o.A)({},zi()),Ui())};function Vi(e){return"tags"===e||"multiple"===e}var Hi=(0,s.pM)({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Pe(Ki(),{showAction:[],notFoundContent:"Not Found"}),setup:function(e,t){var n=t.attrs,r=t.expose,a=t.slots,u=(0,s.EW)((function(){return Vi(e.mode)})),c=(0,s.EW)((function(){return void 0!==e.showSearch?e.showSearch:u.value||"combobox"===e.mode})),f=(0,s.KR)(!1);(0,s.sV)((function(){f.value=ji()}));var d=yi(),h=(0,s.KR)(null),p=Fi(),v=(0,s.KR)(null),g=(0,s.KR)(null),m=(0,s.KR)(null),y=Mi(),b=(0,Re.A)(y,3),w=b[0],A=b[1],x=b[2],C=function(){var e;null===(e=g.value)||void 0===e||e.focus()},S=function(){var e;null===(e=g.value)||void 0===e||e.blur()};r({focus:C,blur:S,scrollTo:function(e){var t;return null===(t=m.value)||void 0===t?void 0:t.scrollTo(e)}});var _=(0,s.EW)((function(){var t;if("combobox"!==e.mode)return e.searchValue;var n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"===typeof n||"number"===typeof n?String(n):""})),k=void 0!==e.open?e.open:e.defaultOpen,E=(0,s.KR)(k),O=(0,s.KR)(k),F=function(t){E.value=void 0!==e.open?e.open:t,O.value=E.value};(0,s.wB)((function(){return e.open}),(function(){F(e.open)}));var T=(0,s.EW)((function(){return!e.notFoundContent&&e.emptyOptions}));(0,s.nT)((function(){O.value=E.value,(e.disabled||T.value&&O.value&&"combobox"===e.mode)&&(O.value=!1)}));var P=(0,s.EW)((function(){return!T.value&&O.value})),N=function(t){var n=void 0!==t?t:!O.value;E.value===n||e.disabled||(F(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n))},M=(0,s.EW)((function(){return(e.tokenSeparators||[]).some((function(e){return["\n","\r\n"].includes(e)}))})),L=function(t,n,r){var o,i=!0,a=t;null===(o=e.onActiveValueChange)||void 0===o||o.call(e,null);var s,l=r?null:Ye(t,e.tokenSeparators);"combobox"!==e.mode&&l&&(a="",null===(s=e.onSearchSplit)||void 0===s||s.call(e,l),N(!1),i=!1);return e.onSearch&&_.value!==a&&e.onSearch(a,{source:n?"typing":"effect"}),i},I=function(t){var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};(0,s.wB)(O,(function(){O.value||u.value||"combobox"===e.mode||L("",!1,!1)}),{immediate:!0,flush:"post"}),(0,s.wB)((function(){return e.disabled}),(function(){E.value&&e.disabled&&F(!1)}),{immediate:!0});var R=Ei(),j=(0,Re.A)(R,2),D=j[0],W=j[1],U=function(t){var n,r,o=D(),i=t.which;if(i===Mo.ENTER&&("combobox"!==e.mode&&t.preventDefault(),O.value||N(!0)),W(!!_.value),i===Mo.BACKSPACE&&!o&&u.value&&!_.value&&e.displayValues.length){for(var a=(0,z.A)(e.displayValues),s=null,l=a.length-1;l>=0;l-=1){var c=a[l];if(!c.disabled){a.splice(l,1),s=c;break}}s&&e.onDisplayValuesChange(a,{type:"remove",values:[s]})}for(var f=arguments.length,d=new Array(f>1?f-1:0),h=1;h<f;h++)d[h-1]=arguments[h];O.value&&m.value&&(r=m.value).onKeydown.apply(r,[t].concat(d));null===(n=e.onKeydown)||void 0===n||n.call.apply(n,[e,t].concat(d))},K=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i;O.value&&m.value&&(i=m.value).onKeyup.apply(i,[t].concat(r));e.onKeyup&&e.onKeyup.apply(e,[t].concat(r))},V=function(t){var n=e.displayValues.filter((function(e){return e!==t}));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},H=(0,s.KR)(!1),q=function(){A(!0),e.disabled||(e.onFocus&&!H.value&&e.onFocus.apply(e,arguments),e.showAction&&e.showAction.includes("focus")&&N(!0)),H.value=!0},G=function(){if(A(!1,(function(){H.value=!1,N(!1)})),!e.disabled){var t=_.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur.apply(e,arguments)}};(0,s.Gt)("VCSelectContainerEvent",{focus:q,blur:G});var Y=[];(0,s.sV)((function(){Y.forEach((function(e){return clearTimeout(e)})),Y.splice(0,Y.length)})),(0,s.xo)((function(){Y.forEach((function(e){return clearTimeout(e)})),Y.splice(0,Y.length)}));var $=function(t){var n,r,o=t.target,i=null===(n=v.value)||void 0===n?void 0:n.getPopupElement();if(i&&i.contains(o)){var a=setTimeout((function(){var e,t=Y.indexOf(a);(-1!==t&&Y.splice(t,1),x(),f.value||i.contains(document.activeElement))||(null===(e=g.value)||void 0===e||e.focus())}));Y.push(a)}for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];null===(r=e.onMousedown)||void 0===r||r.call.apply(r,[e,t].concat(l))},X=(0,s.KR)(null),J=(0,s.nI)(),Q=function(){J.update()};return(0,s.sV)((function(){(0,s.wB)(P,(function(){if(P.value){var e,t=Math.ceil(null===(e=h.value)||void 0===e?void 0:e.offsetWidth);X.value===t||Number.isNaN(t)||(X.value=t)}}),{immediate:!0,flush:"post"})})),Ni([h,v],P,N),Ii(Di((0,o.A)((0,o.A)({},(0,s.QW)(e)),{},{open:O,triggerOpen:P,showSearch:c,multiple:u,toggleOpen:N}))),function(){var t,r,f=(0,o.A)((0,o.A)({},e),n),y=f.prefixCls,b=f.id,A=(f.open,f.defaultOpen,f.mode),x=(f.showSearch,f.searchValue,f.onSearch,f.allowClear),C=f.clearIcon,S=f.showArrow,k=f.inputIcon,E=f.disabled,F=f.loading,T=f.getInputElement,R=f.getPopupContainer,j=f.placement,D=f.animation,W=f.transitionName,z=f.dropdownStyle,H=f.dropdownClassName,q=f.dropdownMatchSelectWidth,G=f.dropdownRender,Y=f.dropdownAlign,J=(f.showAction,f.direction),Z=(f.tokenSeparators,f.tagRender),ee=f.optionLabelRender,te=(f.onPopupScroll,f.onDropdownVisibleChange,f.onFocus,f.onBlur,f.onKeyup,f.onKeydown,f.onMousedown,f.onClear),ne=f.omitDomProps,re=f.getRawInputElement,oe=f.displayValues,ie=f.onDisplayValuesChange,ae=f.emptyOptions,se=f.activeDescendantId,le=f.activeValue,ue=f.OptionList,ce=(0,je.A)(f,Bi),fe="combobox"===A&&T&&T()||null,de="function"===typeof re&&re(),he=(0,o.A)({},ce);de&&(r=function(e){N(e)}),Wi.forEach((function(e){delete he[e]})),null===ne||void 0===ne||ne.forEach((function(e){delete he[e]}));var pe,ve,ge=void 0!==S?S:F||!u.value&&"combobox"!==A;ge&&(pe=(0,s.bF)(Io,{class:(0,l.A)("".concat(y,"-arrow"),(0,i.A)({},"".concat(y,"-arrow-loading"),F)),customizeIcon:k,customizeIconProps:{loading:F,searchValue:_.value,open:O.value,focused:w.value,showSearch:c.value}},null));var me=function(){null===te||void 0===te||te(),ie([],{type:"clear",values:oe}),L("",!1,!1)};!E&&x&&(oe.length||_.value)&&(ve=(0,s.bF)(Io,{class:"".concat(y,"-clear"),onMousedown:me,customizeIcon:C},{default:function(){return[(0,s.eW)("×")]}}));var ye,be=(0,s.bF)(ue,{ref:m},(0,o.A)((0,o.A)({},d.customSlots),{},{option:a.option})),we=(0,l.A)(y,n.class,(t={},(0,i.A)(t,"".concat(y,"-focused"),w.value),(0,i.A)(t,"".concat(y,"-multiple"),u.value),(0,i.A)(t,"".concat(y,"-single"),!u.value),(0,i.A)(t,"".concat(y,"-allow-clear"),x),(0,i.A)(t,"".concat(y,"-show-arrow"),ge),(0,i.A)(t,"".concat(y,"-disabled"),E),(0,i.A)(t,"".concat(y,"-loading"),F),(0,i.A)(t,"".concat(y,"-open"),O.value),(0,i.A)(t,"".concat(y,"-customize-input"),fe),(0,i.A)(t,"".concat(y,"-show-search"),c.value),t)),Ae=(0,s.bF)(Po,{ref:v,disabled:E,prefixCls:y,visible:P.value,popupElement:be,containerWidth:X.value,animation:D,transitionName:W,dropdownStyle:z,dropdownClassName:H,direction:J,dropdownMatchSelectWidth:q,dropdownRender:G,dropdownAlign:Y,placement:j,getPopupContainer:R,empty:ae,getTriggerDOMNode:function(){return p.current},onPopupVisibleChange:r,onPopupMouseEnter:Q},{default:function(){return de?(0,B.zO)(de)&&Bn(de,{ref:p},!1,!0):(0,s.bF)(Pi,(0,o.A)((0,o.A)({},e),{},{domRef:p,prefixCls:y,inputElement:fe,ref:g,id:b,showSearch:c.value,mode:A,activeDescendantId:se,tagRender:Z,optionLabelRender:ee,values:oe,open:O.value,onToggleOpen:N,activeValue:le,searchValue:_.value,onSearch:L,onSearchSubmit:I,onRemove:V,tokenWithEnter:M.value}),null)}});return ye=de?Ae:(0,s.bF)("div",(0,o.A)((0,o.A)({},he),{},{class:we,ref:h,onMousedown:$,onKeydown:U,onKeyup:K}),[w.value&&!O.value&&(0,s.bF)("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},["".concat(oe.map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,Ie.A)(t))?t:n})).join(", "))]),Ae,pe,ve]),ye}}}),qi=function(e,t){var n,r=e.height,a=e.offset,u=e.prefixCls,c=e.onInnerResize,f=t.slots,d={},h={display:"flex",flexDirection:"column"};return void 0!==a&&(d={height:"".concat(r,"px"),position:"relative",overflow:"hidden"},h=(0,o.A)((0,o.A)({},h),{},{transform:"translateY(".concat(a,"px)"),position:"absolute",left:0,right:0,top:0})),(0,s.bF)("div",{style:d},[(0,s.bF)(W,{onResize:function(e){var t=e.offsetHeight;t&&c&&c()}},{default:function(){return[(0,s.bF)("div",{style:h,class:(0,l.A)((0,i.A)({},"".concat(u,"-holder-inner"),u))},[null===(n=f.default)||void 0===n?void 0:n.call(f)])]}})])};qi.displayName="Filter",qi.inheritAttrs=!1,qi.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};var Gi=qi,Yi=function(e,t){var n,r=e.setRef,o=t.slots,i=(0,B.MI)(null===(n=o.default)||void 0===n?void 0:n.call(o));return i&&i.length?(0,s.E3)(i[0],{ref:r}):i};Yi.props={setRef:{type:Function,default:function(){}}};var $i=Yi,Xi=20;function Ji(e){return"touches"in e?e.touches[0].pageY:e.pageY}var Qi=(0,s.pM)({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:function(){return{moveRaf:null,scrollbarRef:Fi(),thumbRef:Fi(),visibleTimeout:null,state:(0,s.Kh)({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler:function(){this.delayHidden()},flush:"post"}},mounted:function(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!Q&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!Q&&{passive:!1})},beforeUnmount:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden:function(){var e=this;clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((function(){e.state.visible=!1}),2e3)},onScrollbarTouchStart:function(e){e.preventDefault()},onContainerMouseDown:function(e){e.stopPropagation(),e.preventDefault()},patchEvents:function(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!Q&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents:function(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!Q&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!Q&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!Q&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),G.cancel(this.moveRaf)},onMouseDown:function(e){var t=this.$props.onStartMove;(0,a.A)(this.state,{dragging:!0,pageY:Ji(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove:function(e){var t=this.state,n=t.dragging,r=t.pageY,o=t.startTop,i=this.$props.onScroll;if(G.cancel(this.moveRaf),n){var a=Ji(e)-r,s=o+a,l=this.getEnableScrollRange(),u=this.getEnableHeightRange(),c=u?s/u:0,f=Math.ceil(c*l);this.moveRaf=G((function(){i(f)}))}},onMouseUp:function(){var e=this.$props.onStopMove;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight:function(){var e=this.$props,t=e.height,n=e.count,r=t/n*10;return r=Math.max(r,Xi),r=Math.min(r,t/2),Math.floor(r)},getEnableScrollRange:function(){var e=this.$props,t=e.scrollHeight,n=e.height;return t-n||0},getEnableHeightRange:function(){var e=this.$props.height,t=this.getSpinHeight();return e-t||0},getTop:function(){var e=this.$props.scrollTop,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();if(0===e||0===t)return 0;var r=e/t;return r*n},showScroll:function(){var e=this.$props,t=e.height,n=e.scrollHeight;return n>t}},render:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.$props.prefixCls,o=this.getSpinHeight()+"px",a=this.getTop()+"px",u=this.showScroll(),c=u&&n;return(0,s.bF)("div",{ref:this.scrollbarRef,class:(0,l.A)("".concat(r,"-scrollbar"),(0,i.A)({},"".concat(r,"-scrollbar-show"),u)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:c?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[(0,s.bF)("div",{ref:this.thumbRef,class:(0,l.A)("".concat(r,"-scrollbar-thumb"),(0,i.A)({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:o,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function Zi(e,t,n,r){var o=new Map,i=new Map,a=(0,s.KR)(Symbol("update"));(0,s.wB)(e,(function(){a.value=Symbol("update")}));var l=void 0;function u(){G.cancel(l)}function c(){u(),l=G((function(){o.forEach((function(e,t){if(e&&e.offsetParent){var n=e.offsetHeight;i.get(t)!==n&&(a.value=Symbol("update"),i.set(t,e.offsetHeight))}}))}))}function f(e,i){var a=t(e),s=o.get(a);i?(o.set(a,i.$el||i),c()):o.delete(a),!s!==!i&&(i?null===n||void 0===n||n(e):null===r||void 0===r||r(e))}return(0,s.hi)((function(){u()})),[f,c,i,a]}function ea(e,t,n,r,o,i,a,s){var l;return function(u){if(null!==u&&void 0!==u){G.cancel(l);var c=t.value,f=r.itemHeight;if("number"===typeof u)a(u);else if(u&&"object"===(0,Ie.A)(u)){var d,h=u.align;d="index"in u?u.index:c.findIndex((function(e){return o(e)===u.key}));var p=u.offset,v=void 0===p?0:p,g=function t(r,s){if(!(r<0)&&e.value){var u=e.value.clientHeight,p=!1,g=s;if(u){for(var m=s||h,y=0,b=0,w=0,A=Math.min(c.length,d),x=0;x<=A;x+=1){var C=o(c[x]);b=y;var S=n.get(C);w=b+(void 0===S?f:S),y=w,x===d&&void 0===S&&(p=!0)}var _=e.value.scrollTop,k=null;switch(m){case"top":k=b-v;break;case"bottom":k=w-u+v;break;default:var E=_+u;b<_?g="top":w>E&&(g="bottom")}null!==k&&k!==_&&a(k)}l=G((function(){p&&i(),t(r-1,g)}),2)}};g(5)}}else s()}}var ta="object"===("undefined"===typeof navigator?"undefined":(0,Ie.A)(navigator))&&/Firefox/i.test(navigator.userAgent),na=ta,ra=function(e,t){var n=!1,r=null;function o(){clearTimeout(r),n=!0,r=setTimeout((function(){n=!1}),50)}return function(i){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=i<0&&e.value||i>0&&t.value;return a&&s?(clearTimeout(r),n=!1):s&&!n||o(),!n&&s}};function oa(e,t,n,r){var o=0,i=null,a=null,s=!1,l=ra(t,n);function u(t){if(e.value){G.cancel(i);var n=t.deltaY;o+=n,a=n,l(n)||(na||t.preventDefault(),i=G((function(){var e=s?10:1;r(o*e),o=0})))}}function c(t){e.value&&(s=t.detail===a)}return[u,c]}var ia=14/15;function aa(e,t,n){var r=!1,o=0,i=null,a=null,l=function(){i&&(i.removeEventListener("touchmove",u),i.removeEventListener("touchend",c))},u=function(e){if(r){var t=Math.ceil(e.touches[0].pageY),i=o-t;o=t,n(i)&&e.preventDefault(),clearInterval(a),a=setInterval((function(){i*=ia,(!n(i,!0)||Math.abs(i)<=.1)&&clearInterval(a)}),16)}},c=function(){r=!1,l()},f=function(e){l(),1!==e.touches.length||r||(r=!0,o=Math.ceil(e.touches[0].pageY),i=e.target,i.addEventListener("touchmove",u,{passive:!1}),i.addEventListener("touchend",c))},d=function(){};(0,s.sV)((function(){document.addEventListener("touchmove",d,{passive:!1}),(0,s.wB)(e,(function(e){t.value.removeEventListener("touchstart",f),l(),clearInterval(a),e&&t.value.addEventListener("touchstart",f,{passive:!1})}),{immediate:!0})})),(0,s.xo)((function(){document.removeEventListener("touchmove",d)}))}var sa=["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"],la=[],ua={overflowY:"auto",overflowAnchor:"none"};function ca(e,t,n,r,o,i){var a=i.getKey;return e.slice(t,n+1).map((function(e,n){var i=t+n,l=o(e,i,{}),u=a(e);return(0,s.bF)($i,{key:u,setRef:function(t){return r(e,t)}},{default:function(){return[l]}})}))}var fa=(0,s.pM)({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Fe.A.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(e,t){var n=t.expose,r=(0,s.EW)((function(){var t=e.height,n=e.itemHeight,r=e.virtual;return!(!1===r||!t||!n)})),l=(0,s.EW)((function(){var t=e.height,n=e.itemHeight,o=e.data;return r.value&&o&&n*o.length>t})),u=(0,s.Kh)({scrollTop:0,scrollMoving:!1}),c=(0,s.EW)((function(){return e.data||la})),f=(0,s.IJ)([]);(0,s.wB)(c,(function(){f.value=(0,s.ux)(c.value).slice()}),{immediate:!0});var d=(0,s.IJ)((function(e){}));(0,s.wB)((function(){return e.itemKey}),(function(e){d.value="function"===typeof e?e:function(t){return null===t||void 0===t?void 0:t[e]}}),{immediate:!0});var h=(0,s.KR)(),p=(0,s.KR)(),v=(0,s.KR)(),g=function(e){return d.value(e)},m={getKey:g};function y(e){var t;t="function"===typeof e?e(u.scrollTop):e;var n=O(t);h.value&&(h.value.scrollTop=n),u.scrollTop=n}var b=Zi(f,g,null,null),w=(0,Re.A)(b,4),A=w[0],x=w[1],C=w[2],S=w[3],_=(0,s.Kh)({scrollHeight:void 0,start:0,end:0,offset:void 0}),k=(0,s.KR)(0);(0,s.sV)((function(){(0,s.dY)((function(){var e;k.value=(null===(e=p.value)||void 0===e?void 0:e.offsetHeight)||0}))})),(0,s.$u)((function(){(0,s.dY)((function(){var e;k.value=(null===(e=p.value)||void 0===e?void 0:e.offsetHeight)||0}))})),(0,s.wB)([r,f],(function(){r.value||(0,a.A)(_,{scrollHeight:void 0,start:0,end:f.value.length-1,offset:void 0})}),{immediate:!0}),(0,s.wB)([r,f,k,l],(function(){r.value&&!l.value&&(0,a.A)(_,{scrollHeight:k.value,start:0,end:f.value.length-1,offset:void 0}),h.value&&(u.scrollTop=h.value.scrollTop)}),{immediate:!0}),(0,s.wB)([l,r,function(){return u.scrollTop},f,S,function(){return e.height},k],(function(){if(r.value&&l.value){for(var t,n,o,i=0,s=f.value.length,c=f.value,d=u.scrollTop,h=e.itemHeight,p=e.height,v=d+p,m=0;m<s;m+=1){var y=c[m],b=g(y),w=C.get(b);void 0===w&&(w=h);var A=i+w;void 0===t&&A>=d&&(t=m,n=i),void 0===o&&A>v&&(o=m),i=A}void 0===t&&(t=0,n=0,o=Math.ceil(p/h)),void 0===o&&(o=s-1),o=Math.min(o+1,s),(0,a.A)(_,{scrollHeight:i,start:t,end:o,offset:n})}}),{immediate:!0});var E=(0,s.EW)((function(){return _.scrollHeight-e.height}));function O(e){var t=e;return Number.isNaN(E.value)||(t=Math.min(t,E.value)),t=Math.max(t,0),t}var F=(0,s.EW)((function(){return u.scrollTop<=0})),T=(0,s.EW)((function(){return u.scrollTop>=E.value})),P=ra(F,T);function N(e){var t=e;y(t)}function M(t){var n,r=t.currentTarget.scrollTop;r!==u.scrollTop&&y(r),null===(n=e.onScroll)||void 0===n||n.call(e,t)}var L=oa(r,F,T,(function(e){y((function(t){var n=t+e;return n}))})),I=(0,Re.A)(L,2),R=I[0],j=I[1];function D(e){r.value&&e.preventDefault()}aa(r,h,(function(e,t){return!P(e,t)&&(R({preventDefault:function(){},deltaY:e}),!0)}));var B=function(){h.value&&(h.value.removeEventListener("wheel",R,!!Q&&{passive:!1}),h.value.removeEventListener("DOMMouseScroll",j),h.value.removeEventListener("MozMousePixelScroll",D))};(0,s.nT)((function(){(0,s.dY)((function(){h.value&&(B(),h.value.addEventListener("wheel",R,!!Q&&{passive:!1}),h.value.addEventListener("DOMMouseScroll",j),h.value.addEventListener("MozMousePixelScroll",D))}))})),(0,s.xo)((function(){B()}));var W=ea(h,f,C,e,g,x,y,(function(){var e;null===(e=v.value)||void 0===e||e.delayHidden()}));n({scrollTo:W});var z=(0,s.EW)((function(){var t=null;return e.height&&(t=(0,o.A)((0,i.A)({},e.fullHeight?"height":"maxHeight",e.height+"px"),ua),r.value&&(t.overflowY="hidden",u.scrollMoving&&(t.pointerEvents="none"))),t}));return(0,s.wB)([function(){return _.start},function(){return _.end},f],(function(){if(e.onVisibleChange){var t=f.value.slice(_.start,_.end+1);e.onVisibleChange(t,f.value)}}),{flush:"post"}),{state:u,mergedData:f,componentStyle:z,onFallbackScroll:M,onScrollBar:N,componentRef:h,useVirtual:r,calRes:_,collectHeight:x,setInstance:A,sharedConfig:m,scrollBarRef:v,fillerInnerRef:p}},render:function(){var e=this,t=(0,o.A)((0,o.A)({},this.$props),this.$attrs),n=t.prefixCls,r=void 0===n?"rc-virtual-list":n,i=t.height,a=(t.itemHeight,t.fullHeight,t.data,t.itemKey,t.virtual,t.component),u=void 0===a?"div":a,c=(t.onScroll,t.children),f=void 0===c?this.$slots.default:c,d=t.style,h=t.class,p=(0,je.A)(t,sa),v=(0,l.A)(r,h),g=this.state.scrollTop,m=this.calRes,y=m.scrollHeight,b=m.offset,w=m.start,A=m.end,x=this.componentStyle,C=this.onFallbackScroll,S=this.onScrollBar,_=this.useVirtual,k=this.collectHeight,E=this.sharedConfig,O=this.setInstance,F=this.mergedData;return(0,s.bF)("div",(0,o.A)({style:(0,o.A)((0,o.A)({},d),{},{position:"relative"}),class:v},p),[(0,s.bF)(u,{class:"".concat(r,"-holder"),style:x,ref:"componentRef",onScroll:C},{default:function(){return[(0,s.bF)(Gi,{prefixCls:r,height:y,offset:b,onInnerResize:k,ref:"fillerInnerRef"},{default:function(){return ca(F,w,A,O,f,E)}})]}}),_&&(0,s.bF)(Qi,{ref:"scrollBarRef",prefixCls:r,scrollTop:g,height:i,scrollHeight:y,count:F.length,onScroll:S,onStartMove:function(){e.state.scrollMoving=!0},onStopMove:function(){e.state.scrollMoving=!1}},null)])}}),da=fa,ha=da;function pa(e,t,n){var r=(0,s.KR)(e());return(0,s.wB)(t,(function(t,o){n?n(t,o)&&(r.value=e()):r.value=e()})),r}function va(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ga=Symbol("SelectContextKey");function ma(e){return(0,s.Gt)(ga,e)}function ya(){return(0,s.WQ)(ga,{})}var ba=["disabled","title","children","style","class","className"];function wa(e){return"string"===typeof e||"number"===typeof e}var Aa=(0,s.pM)({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["option"],setup:function(e,t){var n=t.expose,r=t.slots,a=Ri(),u=ya(),c=(0,s.EW)((function(){return"".concat(a.prefixCls,"-item")})),f=pa((function(){return u.flattenOptions}),[function(){return a.open},function(){return u.flattenOptions}],(function(e){return e[0]})),d=Fi(),h=function(e){e.preventDefault()},p=function(e){d.current&&d.current.scrollTo("number"===typeof e?{index:e}:e)},v=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=f.value.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=f.value[o],a=i.group,s=i.data;if(!a&&!s.disabled)return o}return-1},g=(0,s.Kh)({activeIndex:v(0)}),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.activeIndex=e;var n={source:t?"keyboard":"mouse"},r=f.value[e];r?u.onActiveValue(r.value,e,n):u.onActiveValue(null,-1,n)};(0,s.wB)([function(){return f.value.length},function(){return a.searchValue}],(function(){m(!1!==u.defaultActiveFirstOption?v(0):-1)}),{immediate:!0});var y=function(e){return u.rawValues.has(e)&&"combobox"!==a.mode};(0,s.wB)([function(){return a.open},function(){return a.searchValue}],(function(){if(!a.multiple&&a.open&&1===u.rawValues.size){var e=Array.from(u.rawValues)[0],t=(0,s.ux)(f.value).findIndex((function(t){var n=t.data;return n[u.fieldNames.value]===e}));-1!==t&&(m(t),(0,s.dY)((function(){p(t)})))}a.open&&(0,s.dY)((function(){var e;null===(e=d.current)||void 0===e||e.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});var b=function(e){void 0!==e&&u.onSelect(e,{selected:!u.rawValues.has(e)}),a.multiple||a.toggleOpen(!1)},w=function(e){return"function"===typeof e.label?e.label():e.label};function A(e){var t=f.value[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,l=Jo(n,!0),u=w(t);return t?(0,s.bF)("div",(0,o.A)((0,o.A)({"aria-label":"string"!==typeof u||i?null:u},l),{},{key:e,role:i?"presentation":"option",id:"".concat(a.id,"_list_").concat(e),"aria-selected":y(r)}),[r]):null}var x=function(e){var t=e.which,n=e.ctrlKey;switch(t){case Mo.N:case Mo.P:case Mo.UP:case Mo.DOWN:var r=0;if(t===Mo.UP?r=-1:t===Mo.DOWN?r=1:va()&&n&&(t===Mo.N?r=1:t===Mo.P&&(r=-1)),0!==r){var o=v(g.activeIndex+r,r);p(o),m(o,!0)}break;case Mo.ENTER:var i=f.value[g.activeIndex];i&&!i.data.disabled?b(i.value):b(void 0),a.open&&e.preventDefault();break;case Mo.ESC:a.toggleOpen(!1),a.open&&e.stopPropagation()}},C=function(){},S=function(e){p(e)};return n({onKeydown:x,onKeyup:C,scrollTo:S}),function(){var e=a.id,t=a.notFoundContent,n=a.onPopupScroll,p=u.menuItemSelectedIcon,v=u.fieldNames,x=u.virtual,C=u.listHeight,S=u.listItemHeight,_=r.option,k=g.activeIndex,E=Object.keys(v).map((function(e){return v[e]}));return 0===f.value.length?(0,s.bF)("div",{role:"listbox",id:"".concat(e,"_list"),class:"".concat(c.value,"-empty"),onMousedown:h},[t]):(0,s.bF)(s.FK,null,[(0,s.bF)("div",{role:"listbox",id:"".concat(e,"_list"),style:{height:0,width:0,overflow:"hidden"}},[A(k-1),A(k),A(k+1)]),(0,s.bF)(ha,{itemKey:"key",ref:d,data:f.value,height:C,itemHeight:S,fullHeight:!1,onMousedown:h,onScroll:n,virtual:x},{default:function(e,t){var n,r=e.group,a=e.groupOption,u=e.data,f=e.value,d=u.key,h="function"===typeof e.label?e.label():e.label;if(r){var v,g=null!==(v=u.title)&&void 0!==v?v:wa(h)&&h;return(0,s.bF)("div",{class:(0,l.A)(c.value,"".concat(c.value,"-group")),title:g},[_?_(u):void 0!==h?h:d])}var A=u.disabled,x=u.title,C=(u.children,u.style),S=u.class,O=u.className,F=(0,je.A)(u,ba),T=ce(F,E),P=y(f),N="".concat(c.value,"-option"),M=(0,l.A)(c.value,N,S,O,(n={},(0,i.A)(n,"".concat(N,"-grouped"),a),(0,i.A)(n,"".concat(N,"-active"),k===t&&!A),(0,i.A)(n,"".concat(N,"-disabled"),A),(0,i.A)(n,"".concat(N,"-selected"),P),n)),L=w(e),I=!p||"function"===typeof p||P,R="number"===typeof L?L:L||f,j=wa(R)?R.toString():void 0;return void 0!==x&&(j=x),(0,s.bF)("div",(0,o.A)((0,o.A)({},T),{},{"aria-selected":P,class:M,title:j,onMousemove:function(e){F.onMousemove&&F.onMousemove(e),k===t||A||m(t)},onClick:function(e){A||b(f),F.onClick&&F.onClick(e)},style:C}),[(0,s.bF)("div",{class:"".concat(N,"-content")},[_?_(u):R]),(0,B.zO)(p)||P,I&&(0,s.bF)(Io,{class:"".concat(c.value,"-option-state"),customizeIcon:p,customizeIconProps:{isSelected:P}},{default:function(){return[P?"✓":null]}})])}})])}}}),xa=Aa,Ca=["value","disabled"];function Sa(e){var t=e.key,n=e.children,r=e.props,i=r.value,a=r.disabled,s=(0,je.A)(r,Ca),l=null===n||void 0===n?void 0:n.default;return(0,o.A)({key:t,value:void 0!==i?i:t,children:l,disabled:a||""===a},s)}function _a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,B.MI)(e).map((function(e,n){var r;if(!(0,B.zO)(e)||!e.type)return null;var i=e.type.isSelectOptGroup,a=e.key,s=e.children,l=e.props;if(t||!i)return Sa(e);var u=s&&s.default?s.default():void 0,c=(null===l||void 0===l?void 0:l.label)||(null===(r=s.label)||void 0===r?void 0:r.call(s))||a;return(0,o.A)((0,o.A)({key:"__RC_SELECT_GRP__".concat(null===a?n:String(a),"__")},l),{},{label:c,options:_a(u||[])})})).filter((function(e){return e}));return n}function ka(e,t,n){var r=(0,s.IJ)(),o=(0,s.IJ)(),i=(0,s.IJ)(),a=(0,s.IJ)([]);return(0,s.wB)([e,t],(function(){e.value?a.value=(0,s.ux)(e.value).slice():a.value=_a(t.value)}),{immediate:!0,deep:!0}),(0,s.nT)((function(){var e=a.value,t=new Map,s=new Map,l=n.value;function u(e){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;r<e.length;r+=1){var o=e[r];!o[l.options]||n?(t.set(o[l.value],o),s.set(o[l.label],o)):u(o[l.options],!0)}}u(e),r.value=e,o.value=t,i.value=s})),{options:r,valueOptions:o,labelOptions:i}}var Ea=n(99378),Oa=0,Fa=(0,Ea.A)();function Ta(){var e;return Fa?(e=Oa,Oa+=1):e="TEST_OR_SSR",e}function Pa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,s.KR)(""),t="rc_select_".concat(Ta());return e.value||t}function Na(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!==typeof window&&window.document&&window.document.documentElement;function Ma(e,t){return Na(e).join("").toUpperCase().includes(t)}var La=function(e,t,n,r,a){return(0,s.EW)((function(){var s=n.value,l=null===a||void 0===a?void 0:a.value,u=null===r||void 0===r?void 0:r.value;if(!s||!1===u)return e.value;var c=t.value,f=c.options,d=c.label,h=c.value,p=[],v="function"===typeof u,g=s.toUpperCase(),m=v?u:function(e,t){return l?Ma(t[l],g):t[f]?Ma(t["children"!==d?d:"label"],g):Ma(t[h],g)},y=v?function(e){return Ge(e)}:function(e){return e};return e.value.forEach((function(e){if(e[f]){var t=m(s,y(e));if(t)p.push(e);else{var n=e[f].filter((function(e){return m(s,y(e))}));n.length&&p.push((0,o.A)((0,o.A)({},e),{},(0,i.A)({},f,n)))}}else m(s,y(e))&&p.push(e)})),p}))},Ia=function(e,t){var n=(0,s.IJ)({values:new Map,options:new Map}),r=(0,s.EW)((function(){var r=n.value,i=r.values,a=r.options,s=e.value.map((function(e){var t;return void 0===e.label?(0,o.A)((0,o.A)({},e),{},{label:null===(t=i.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,u=new Map;return s.forEach((function(e){l.set(e.value,e),u.set(e.value,t.value.get(e.value)||a.get(e.value))})),n.value.values=l,n.value.options=u,s})),i=function(e){return t.value.get(e)||n.value.options.get(e)};return[r,i]};function Ra(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=void 0===o?(0,s.KR)():o,a="function"===typeof e?e():e;void 0!==i.value&&(a=(0,s.R1)(i)),void 0!==r&&(a="function"===typeof r?r():r);var l=(0,s.KR)(a),u=(0,s.KR)(a);function c(e){var n=u.value;l.value=e,(0,s.ux)(u.value)!==e&&t.onChange&&t.onChange(e,n)}return(0,s.nT)((function(){var e=void 0!==i.value?i.value:l.value;t.postState&&(e=t.postState(e)),u.value=e})),(0,s.wB)(i,(function(){l.value=i.value})),[u,c]}function ja(e){var t="function"===typeof e?e():e,n=(0,s.KR)(t);function r(e){n.value=e}return[n,r]}var Da=["inputValue"];function Ba(){return(0,o.A)((0,o.A)({},Ui()),{},{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:Fe.A.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Fe.A.any,defaultValue:Fe.A.any,onChange:Function,children:Array})}function Wa(e){return!e||"object"!==(0,Ie.A)(e)}var za=(0,s.pM)({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:Pe(Ba(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup:function(e,t){var n=t.expose,r=t.attrs,a=t.slots,l=Pa((0,s.lW)(e,"id")),u=(0,s.EW)((function(){return Vi(e.mode)})),c=(0,s.EW)((function(){return!(e.options||!e.children)})),f=(0,s.EW)((function(){return(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption})),d=(0,s.EW)((function(){return He(e.fieldNames,c.value)})),h=Ra("",{value:(0,s.EW)((function(){return void 0!==e.searchValue?e.searchValue:e.inputValue})),postState:function(e){return e||""}}),p=(0,Re.A)(h,2),v=p[0],g=p[1],m=ka((0,s.lW)(e,"options"),(0,s.lW)(e,"children"),d),y=m.valueOptions,b=m.labelOptions,w=m.options,A=function(t){var n=Na(t);return n.map((function(t){var n,r,o,i,a;Wa(t)?n=t:(o=t.key,r=t.label,n=null!==(a=t.value)&&void 0!==a?a:o);var s,l=y.value.get(n);l&&(void 0===r&&(r=null===l||void 0===l?void 0:l[e.optionLabelProp||d.value.label]),void 0===o&&(o=null!==(s=null===l||void 0===l?void 0:l.key)&&void 0!==s?s:n),i=null===l||void 0===l?void 0:l.disabled);return{label:r,value:n,key:o,disabled:i,option:l}}))},x=Ra(e.defaultValue,{value:(0,s.lW)(e,"value")}),C=(0,Re.A)(x,2),S=C[0],_=C[1],k=(0,s.EW)((function(){var t,n=A(S.value);return"combobox"!==e.mode||null!==(t=n[0])&&void 0!==t&&t.value?n:[]})),E=Ia(k,y),O=(0,Re.A)(E,2),F=O[0],T=O[1],P=(0,s.EW)((function(){if(!e.mode&&1===F.value.length){var t=F.value[0];if(null===t.value&&(null===t.label||void 0===t.label))return[]}return F.value.map((function(e){var t;return(0,o.A)((0,o.A)({},e),{},{label:null!==(t="function"===typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})}))})),N=(0,s.EW)((function(){return new Set(F.value.map((function(e){return e.value})))}));(0,s.nT)((function(){if("combobox"===e.mode){var t,n=null===(t=F.value[0])||void 0===t?void 0:t.value;void 0!==n&&null!==n&&g(String(n))}}),{flush:"post"});var M=function(e,t){var n,r=null!==t&&void 0!==t?t:e;return n={},(0,i.A)(n,d.value.value,e),(0,i.A)(n,d.value.label,r),n},L=(0,s.IJ)();(0,s.nT)((function(){if("tags"===e.mode){var t=w.value.slice(),n=function(e){return y.value.has(e)};(0,z.A)(F.value).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(e){var r=e.value;n(r)||t.push(M(r,e.label))})),L.value=t}else L.value=w.value}));var I=La(L,d,v,f,(0,s.lW)(e,"optionFilterProp")),R=(0,s.EW)((function(){return"tags"!==e.mode||!v.value||I.value.some((function(t){return t[e.optionFilterProp||"value"]===v.value}))?I.value:[M(v.value)].concat((0,z.A)(I.value))})),j=(0,s.EW)((function(){return e.filterSort?(0,z.A)(R.value).sort((function(t,n){return e.filterSort(t,n)})):R.value})),D=(0,s.EW)((function(){return qe(j.value,{fieldNames:d.value,childrenAsData:c.value})})),B=function(t){var n=A(t);if(_(n),e.onChange&&(n.length!==F.value.length||n.some((function(e,t){var n;return(null===(n=F.value[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)})))){var r=e.labelInValue?n.map((function(e){return(0,o.A)((0,o.A)({},e),{},{originLabel:e.label,label:"function"===typeof e.label?e.label():e.label})})):n.map((function(e){return e.value})),i=n.map((function(e){return Ge(T(e.value))}));e.onChange(u.value?r:r[0],u.value?i:i[0])}},W=ja(null),U=(0,Re.A)(W,2),K=U[0],V=U[1],H=ja(0),q=(0,Re.A)(H,2),G=q[0],Y=q[1],$=(0,s.EW)((function(){return void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode})),X=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.source,i=void 0===o?"keyboard":o;Y(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===i&&V(String(t))},J=function(t,n){var r=function(){var n,r=T(t),o=null===r||void 0===r?void 0:r[d.value.label];return[e.labelInValue?{label:"function"===typeof o?o():o,originLabel:o,value:t,key:null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:t}:t,Ge(r)]};if(n&&e.onSelect){var o=r(),i=(0,Re.A)(o,2),a=i[0],s=i[1];e.onSelect(a,s)}else if(!n&&e.onDeselect){var l=r(),u=(0,Re.A)(l,2),c=u[0],f=u[1];e.onDeselect(c,f)}},Q=function(t,n){var r,o=!u.value||n.selected;r=o?u.value?[].concat((0,z.A)(F.value),[t]):[t]:F.value.filter((function(e){return e.value!==t})),B(r),J(t,o),"combobox"===e.mode?V(""):u.value&&!e.autoClearSearchValue||(g(""),V(""))},Z=function(e,t){B(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach((function(e){J(e.value,!1)}))},ee=function(t,n){if(g(t),V(null),"submit"!==n.source){var r;if("blur"!==n.source)"combobox"===e.mode&&B(t),null===(r=e.onSearch)||void 0===r||r.call(e,t)}else{var o=(t||"").trim();if(o){var i=Array.from(new Set([].concat((0,z.A)(N.value),[o])));B(i),J(o,!0),g("")}}},te=function(t){var n=t;"tags"!==e.mode&&(n=t.map((function(e){var t=b.value.get(e);return null===t||void 0===t?void 0:t.value})).filter((function(e){return void 0!==e})));var r=Array.from(new Set([].concat((0,z.A)(N.value),(0,z.A)(n))));B(r),r.forEach((function(e){J(e,!0)}))},ne=(0,s.EW)((function(){return!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth}));ma(Di((0,o.A)((0,o.A)({},m),{},{flattenOptions:D,onActiveValue:X,defaultActiveFirstOption:$,onSelect:Q,menuItemSelectedIcon:(0,s.lW)(e,"menuItemSelectedIcon"),rawValues:N,fieldNames:d,virtual:ne,listHeight:(0,s.lW)(e,"listHeight"),listItemHeight:(0,s.lW)(e,"listItemHeight"),childrenAsData:c})));var re=(0,s.KR)();n({focus:function(){var e;null===(e=re.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=re.value)||void 0===e||e.blur()},scrollTo:function(e){var t;null===(t=re.value)||void 0===t||t.scrollTo(e)}});var oe=(0,s.EW)((function(){return ce(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])}));return function(){return(0,s.bF)(Hi,(0,o.A)((0,o.A)((0,o.A)({},oe.value),r),{},{id:l,prefixCls:e.prefixCls,ref:re,omitDomProps:Da,mode:e.mode,displayValues:P.value,onDisplayValuesChange:Z,searchValue:v.value,onSearch:ee,onSearchSplit:te,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:xa,emptyOptions:!D.value.length,activeValue:K.value,activeDescendantId:"".concat(l,"_list_").concat(G.value)}),a)}}}),Ua=function(){return null};Ua.isSelectOption=!0,Ua.displayName="ASelectOption";var Ka=Ua,Va=function(){return null};Va.isSelectOptGroup=!0,Va.displayName="ASelectOptGroup";var Ha=Va,qa=za,Ga=n(98535),Ya=n(27620);function $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xa(e,t,n[t])}))}return e}function Xa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ja=function(e,t){var n=$a({},e,t.attrs);return(0,s.bF)(Ya.A,$a({},n,{icon:Ga.A}),null)};Ja.displayName="DownOutlined",Ja.inheritAttrs=!1;var Qa=Ja,Za=n(17766),es={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},ts=es;function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rs(e,t,n[t])}))}return e}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var os=function(e,t){var n=ns({},e,t.attrs);return(0,s.bF)(Ya.A,ns({},n,{icon:ts}),null)};os.displayName="CheckOutlined",os.inheritAttrs=!1;var is=os,as=n(86354),ss=n(95540),ls={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},us=ls;function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fs(e,t,n[t])}))}return e}function fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ds=function(e,t){var n=cs({},e,t.attrs);return(0,s.bF)(Ya.A,cs({},n,{icon:us}),null)};ds.displayName="SearchOutlined",ds.inheritAttrs=!1;var hs=ds;function ps(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.loading,r=e.multiple,o=e.prefixCls,i=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),a=e.clearIcon||t.clearIcon&&t.clearIcon(),l=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),u=e.removeIcon||t.removeIcon&&t.removeIcon(),c=a;a||(c=(0,s.bF)(ss.A,null,null));var f=null;if(void 0!==i)f=i;else if(n)f=(0,s.bF)(Za.A,{spin:!0},null);else{var d="".concat(o,"-suffix");f=function(e){var t=e.open,n=e.showSearch;return t&&n?(0,s.bF)(hs,{class:d},null):(0,s.bF)(Qa,{class:d},null)}}var h=null;h=void 0!==l?l:r?(0,s.bF)(is,null,null):null;var p=null;return p=void 0!==u?u:(0,s.bF)(as.A,null,null),{clearIcon:c,suffixIcon:f,itemIcon:h,removeIcon:p}}var vs=Symbol("ContextProps"),gs=Symbol("InternalContextProps"),ms=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.EW)((function(){return!0})),n=(0,s.KR)(new Map),r=function(e,t){n.value.set(e,t),n.value=new Map(n.value)},o=function(e){n.value.delete(e),n.value=new Map(n.value)};(0,s.nI)();(0,s.wB)([t,n],(function(){})),(0,s.Gt)(vs,e),(0,s.Gt)(gs,{addFormItemField:r,removeFormItemField:o})},ys={id:(0,s.EW)((function(){})),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},bs={addFormItemField:function(){},removeFormItemField:function(){}},ws=function(){var e=(0,s.WQ)(gs,bs),t=Symbol("FormItemFieldKey"),n=(0,s.nI)();return e.addFormItemField(t,n.type),(0,s.xo)((function(){e.removeFormItemField(t)})),(0,s.Gt)(gs,bs),(0,s.Gt)(vs,ys),(0,s.WQ)(vs,ys)},As=(0,s.pM)({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(e,t){var n=t.slots;return(0,s.Gt)(gs,bs),(0,s.Gt)(vs,ys),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),xs=function(){return(0,o.A)((0,o.A)({},ce(Ba(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{},{value:{type:[Array,Object,String,Number]},defaultValue:{type:[Array,Object,String,Number]},notFoundContent:Fe.A.any,suffixIcon:Fe.A.any,itemIcon:Fe.A.any,size:String,mode:String,bordered:{type:Boolean,default:!0},transitionName:String,choiceTransitionName:{type:String,default:""},"onUpdate:value":Function})},Cs="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ss=(0,s.pM)({compatConfig:{MODE:3},name:"ASelect",Option:Ka,OptGroup:Ha,inheritAttrs:!1,props:Pe(xs(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:Cs,slots:["notFoundContent","suffixIcon","itemIcon","removeIcon","clearIcon","dropdownRender","option","placeholder","tagRender","maxTagPlaceholder","optionLabel"],setup:function(e,t){var n=t.attrs,r=t.emit,a=t.slots,u=t.expose,c=(0,s.KR)(),f=ws(),d=function(){var e;null===(e=c.value)||void 0===e||e.focus()},h=function(){var e;null===(e=c.value)||void 0===e||e.blur()},p=function(e){var t;null===(t=c.value)||void 0===t||t.scrollTo(e)},v=(0,s.EW)((function(){var t=e.mode;if("combobox"!==t)return t===Cs?"combobox":t})),g=(0,se.A)("select",e),m=g.prefixCls,y=g.direction,b=g.configProvider,w=g.size,A=g.getPrefixCls,x=(0,s.EW)((function(){return A()})),C=(0,s.EW)((function(){return(0,so.by)(x.value,"slide-up",e.transitionName)})),S=(0,s.EW)((function(){var t;return(0,l.A)((t={},(0,i.A)(t,"".concat(m.value,"-lg"),"large"===w.value),(0,i.A)(t,"".concat(m.value,"-sm"),"small"===w.value),(0,i.A)(t,"".concat(m.value,"-rtl"),"rtl"===y.value),(0,i.A)(t,"".concat(m.value,"-borderless"),!e.bordered),t))})),_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r("update:value",t[0]),r.apply(void 0,["change"].concat(t)),f.onFieldChange()},k=function(e){r("blur",e),f.onFieldBlur()};u({blur:h,focus:d,scrollTo:p});var E=(0,s.EW)((function(){return"multiple"===v.value||"tags"===v.value}));return function(){var t,r,u,d=e.notFoundContent,h=e.listHeight,p=void 0===h?256:h,g=e.listItemHeight,w=void 0===g?24:g,A=e.getPopupContainer,x=e.dropdownClassName,O=e.virtual,F=e.dropdownMatchSelectWidth,T=e.id,P=void 0===T?f.id.value:T,N=e.placeholder,M=void 0===N?null===(t=a.placeholder)||void 0===t?void 0:t.call(a):N,L=b.renderEmpty,I=b.getPopupContainer;u=void 0!==d?d:a.notFoundContent?a.notFoundContent():"combobox"===v.value?null:L("Select");var R=ps((0,o.A)((0,o.A)({},e),{},{multiple:E.value,prefixCls:m.value}),a),j=R.suffixIcon,D=R.itemIcon,B=R.removeIcon,W=R.clearIcon,z=ce(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),U=(0,l.A)(x,(0,i.A)({},"".concat(m.value,"-dropdown-").concat(y.value),"rtl"===y.value));return(0,s.bF)(qa,(0,o.A)((0,o.A)((0,o.A)({ref:c,virtual:O,dropdownMatchSelectWidth:F},z),n),{},{placeholder:M,listHeight:p,listItemHeight:w,mode:v.value,prefixCls:m.value,direction:y.value,inputIcon:j,menuItemSelectedIcon:D,removeIcon:B,clearIcon:W,notFoundContent:u,class:[S.value,n.class],getPopupContainer:A||I,dropdownClassName:U,onChange:_,onBlur:k,id:P,dropdownRender:z.dropdownRender||a.dropdownRender,transitionName:C.value,children:null===(r=a.default)||void 0===r?void 0:r.call(a),tagRender:e.tagRender||a.tagRender,optionLabelRender:a.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||a.maxTagPlaceholder}),{option:a.option})}}});Ss.install=function(e){return e.component(Ss.name,Ss),e.component(Ss.Option.displayName,Ss.Option),e.component(Ss.OptGroup.displayName,Ss.OptGroup),e};var _s=Ss.Option,ks=Ss.OptGroup,Es=Ss,Os=function(){return null};Os.isSelectOption=!0,Os.displayName="AAutoCompleteOption";var Fs=Os,Ts=function(){return null};Ts.isSelectOptGroup=!0,Ts.displayName="AAutoCompleteOptGroup";var Ps=Ts;function Ns(e){var t,n;return(null===e||void 0===e||null===(t=e.type)||void 0===t?void 0:t.isSelectOption)||(null===e||void 0===e||null===(n=e.type)||void 0===n?void 0:n.isSelectOptGroup)}var Ms=function(){return(0,o.A)((0,o.A)({},ce(xs(),["loading","mode","optionLabelProp","labelInValue"])),{},{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0}})},Ls=Fs,Is=Ps,Rs=(0,s.pM)({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:Ms(),slots:["option"],setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose;(0,Dn.A)(!("dataSource"in n),"AutoComplete","`dataSource` slot is deprecated, please use props `options` instead."),(0,Dn.A)(!("options"in n),"AutoComplete","`options` slot is deprecated, please use props `options` instead.");var l=(0,s.KR)(),u=function(){var e,t=(0,B.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n)),r=t.length?t[0]:void 0;return r},c=function(){var e;null===(e=l.value)||void 0===e||e.focus()},f=function(){var e;null===(e=l.value)||void 0===e||e.blur()};a({focus:c,blur:f});var d=(0,se.A)("select",e),h=d.prefixCls;return function(){var t,a,c,f=e.size,d=e.dataSource,p=e.notFoundContent,v=void 0===p?null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n):p,g=r.class,m=(a={},(0,i.A)(a,g,!!g),(0,i.A)(a,"".concat(h.value,"-lg"),"large"===f),(0,i.A)(a,"".concat(h.value,"-sm"),"small"===f),(0,i.A)(a,"".concat(h.value,"-show-search"),!0),(0,i.A)(a,"".concat(h.value,"-auto-complete"),!0),a);if(void 0===e.options){var y,b,w=(null===(y=n.dataSource)||void 0===y?void 0:y.call(n))||(null===(b=n.options)||void 0===b?void 0:b.call(n))||[];c=w.length&&Ns(w[0])?w:d?d.map((function(e){if((0,B.zO)(e))return e;switch((0,Ie.A)(e)){case"string":return(0,s.bF)(Fs,{key:e,value:e},{default:function(){return[e]}});case"object":return(0,s.bF)(Fs,{key:e.value,value:e.value},{default:function(){return[e.text]}});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[]}var A=ce((0,o.A)((0,o.A)((0,o.A)({},e),r),{},{mode:Es.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:u,notFoundContent:v,class:m,ref:l}),["dataSource","loading"]);return(0,s.bF)(Es,A,(0,o.A)({default:function(){return[c]}},ce(n,["default","dataSource","options"])))}}}),js=(0,a.A)(Rs,{Option:Fs,OptGroup:Ps,install:function(e){return e.component(Rs.name,Rs),e.component(Fs.displayName,Fs),e.component(Ps.displayName,Ps),e}}),Ds=n(48469),Bs=n(39493),Ws=n(99426),zs=n(65653),Us=n(38068),Ks=n(45601),Vs=n(47913),Hs={success:Us.A,info:Vs.A,error:ss.A,warning:Ks.A},qs={success:Ds.A,info:Ws.A,error:zs.A,warning:Bs.A},Gs=(0,$.PV)("success","info","warning","error"),Ys=function(){return{type:Fe.A.oneOf(Gs),closable:{type:Boolean,default:void 0},closeText:Fe.A.any,message:Fe.A.any,description:Fe.A.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:Fe.A.any,closeIcon:Fe.A.any,onClose:Function}},$s=(0,s.pM)({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:Ys(),setup:function(e,t){var n=t.slots,r=t.emit,a=t.attrs,u=t.expose,c=(0,se.A)("alert",e),f=c.prefixCls,d=c.direction,h=(0,s.KR)(!1),p=(0,s.KR)(!1),v=(0,s.KR)(),g=function(e){e.preventDefault();var t=v.value;t.style.height="".concat(t.offsetHeight,"px"),t.style.height="".concat(t.offsetHeight,"px"),h.value=!0,r("close",e)},m=function(){var t;h.value=!1,p.value=!0,null===(t=e.afterClose)||void 0===t||t.call(e)};u({animationEnd:m});var y=(0,s.KR)({});return function(){var t,r,u=e.banner,c=e.closeIcon,b=void 0===c?null===(t=n.closeIcon)||void 0===t?void 0:t.call(n):c,w=e.closable,A=e.type,x=e.showIcon,C=(0,B.rU)(n,e,"closeText"),S=(0,B.rU)(n,e,"description"),_=(0,B.rU)(n,e,"message"),k=(0,B.rU)(n,e,"icon");x=!(!u||void 0!==x)||x,A=u&&void 0===A?"warning":A||"info";var E=(S?qs:Hs)[A]||null;C&&(w=!0);var O=f.value,F=(0,l.A)(O,(r={},(0,i.A)(r,"".concat(O,"-").concat(A),!0),(0,i.A)(r,"".concat(O,"-closing"),h.value),(0,i.A)(r,"".concat(O,"-with-description"),!!S),(0,i.A)(r,"".concat(O,"-no-icon"),!x),(0,i.A)(r,"".concat(O,"-banner"),!!u),(0,i.A)(r,"".concat(O,"-closable"),w),(0,i.A)(r,"".concat(O,"-rtl"),"rtl"===d.value),r)),T=w?(0,s.bF)("button",{type:"button",onClick:g,class:"".concat(O,"-close-icon"),tabindex:0},[C?(0,s.bF)("span",{class:"".concat(O,"-close-text")},[C]):void 0===b?(0,s.bF)(as.A,null,null):b]):null,P=k&&((0,B.zO)(k)?Bn(k,{class:"".concat(O,"-icon")}):(0,s.bF)("span",{class:"".concat(O,"-icon")},[k]))||(0,s.bF)(E,{class:"".concat(O,"-icon")},null),N=(0,so.ce)("".concat(O,"-motion"),{appear:!1,css:!0,onAfterLeave:m,onBeforeLeave:function(e){e.style.maxHeight="".concat(e.offsetHeight,"px")},onLeave:function(e){e.style.maxHeight="0px"}});return p.value?null:(0,s.bF)(s.eB,N,{default:function(){return[(0,s.bo)((0,s.bF)("div",(0,o.A)((0,o.A)({role:"alert"},a),{},{style:[a.style,y.value],class:[a.class,F],"data-show":!h.value,ref:v}),[x?P:null,(0,s.bF)("div",{class:"".concat(O,"-content")},[_?(0,s.bF)("div",{class:"".concat(O,"-message")},[_]):null,S?(0,s.bF)("div",{class:"".concat(O,"-description")},[S]):null]),T]),[[s.aG,!h.value]])]}})}}}),Xs=(0,$.GU)($s),Js=["xxxl","xxl","xl","lg","md","sm","xs"],Qs={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},Zs=new Map,el=-1,tl={},nl={matchHandlers:{},dispatch:function(e){return tl=e,Zs.forEach((function(e){return e(tl)})),Zs.size>=1},subscribe:function(e){return Zs.size||this.register(),el+=1,Zs.set(el,e),e(tl),el},unsubscribe:function(e){Zs.delete(e),Zs.size||this.unregister()},unregister:function(){var e=this;Object.keys(Qs).forEach((function(t){var n=Qs[t],r=e.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),Zs.clear()},register:function(){var e=this;Object.keys(Qs).forEach((function(t){var n=Qs[t],r=function(n){var r=n.matches;e.dispatch((0,o.A)((0,o.A)({},tl),{},(0,i.A)({},t,r)))},a=window.matchMedia(n);a.addListener(r),e.matchHandlers[n]={mql:a,listener:r},r(a)}))}},rl=nl;function ol(){var e=(0,s.KR)({}),t=null;return(0,s.sV)((function(){t=rl.subscribe((function(t){e.value=t}))})),(0,s.hi)((function(){rl.unsubscribe(t)})),e}var il=ol,al=n(33786),sl=Symbol("SizeProvider"),ll=function(e){var t=(0,s.WQ)("configProvider",al.VG),n=(0,s.EW)((function(){return e.size||t.componentSize}));return(0,s.Gt)(sl,n),n},ul=function(e){var t=e?(0,s.EW)((function(){return e.size})):(0,s.WQ)(sl,(0,s.EW)((function(){return"default"})));return t},cl=ll;function fl(e){var t=(0,s.IJ)();return(0,s.nT)((function(){t.value=e()}),{flush:"sync"}),t}var dl=function(){return{prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:function(){return"default"}},src:String,srcset:String,icon:Fe.A.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}},hl=(0,s.pM)({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:dl(),slots:["icon"],setup:function(e,t){var n=t.slots,r=t.attrs,a=(0,s.KR)(!0),l=(0,s.KR)(!1),u=(0,s.KR)(1),c=(0,s.KR)(null),f=(0,s.KR)(null),d=(0,se.A)("avatar",e),h=d.prefixCls,p=ul(),v=(0,s.EW)((function(){return"default"===e.size?p.value:e.size})),g=il(),m=fl((function(){if("object"===(0,Ie.A)(e.size)){var t=Js.find((function(e){return g.value[e]})),n=e.size[t];return n}})),y=function(e){return m.value?{width:"".concat(m.value,"px"),height:"".concat(m.value,"px"),lineHeight:"".concat(m.value,"px"),fontSize:"".concat(e?m.value/2:18,"px")}:{}},b=function(){if(c.value&&f.value){var t=c.value.offsetWidth,n=f.value.offsetWidth;if(0!==t&&0!==n){var r=e.gap,o=void 0===r?4:r;2*o<n&&(u.value=n-2*o<t?(n-2*o)/t:1)}}},w=function(){var t=e.loadError,n=null===t||void 0===t?void 0:t();!1!==n&&(a.value=!1)};return(0,s.wB)((function(){return e.src}),(function(){(0,s.dY)((function(){a.value=!0,u.value=1}))})),(0,s.wB)((function(){return e.gap}),(function(){(0,s.dY)((function(){b()}))})),(0,s.sV)((function(){(0,s.dY)((function(){b(),l.value=!0}))})),function(){var t,d,p,g=e.shape,m=e.src,A=e.alt,x=e.srcset,C=e.draggable,S=e.crossOrigin,_=(0,B.rU)(n,e,"icon"),k=h.value,E=(t={},(0,i.A)(t,"".concat(r.class),!!r.class),(0,i.A)(t,k,!0),(0,i.A)(t,"".concat(k,"-lg"),"large"===v.value),(0,i.A)(t,"".concat(k,"-sm"),"small"===v.value),(0,i.A)(t,"".concat(k,"-").concat(g),g),(0,i.A)(t,"".concat(k,"-image"),m&&a.value),(0,i.A)(t,"".concat(k,"-icon"),_),t),O="number"===typeof v.value?{width:"".concat(v.value,"px"),height:"".concat(v.value,"px"),lineHeight:"".concat(v.value,"px"),fontSize:_?"".concat(v.value/2,"px"):"18px"}:{},F=null===(d=n.default)||void 0===d?void 0:d.call(n);if(m&&a.value)p=(0,s.bF)("img",{draggable:C,src:m,srcset:x,onError:w,alt:A,crossorigin:S},null);else if(_)p=_;else if(l.value||1!==u.value){var T="scale(".concat(u.value,") translateX(-50%)"),P={msTransform:T,WebkitTransform:T,transform:T},N="number"===typeof v.value?{lineHeight:"".concat(v.value,"px")}:{};p=(0,s.bF)(W,{onResize:b},{default:function(){return[(0,s.bF)("span",{class:"".concat(k,"-string"),ref:c,style:(0,o.A)((0,o.A)({},N),P)},[F])]}})}else p=(0,s.bF)("span",{class:"".concat(k,"-string"),ref:c,style:{opacity:0}},[F]);return(0,s.bF)("span",(0,o.A)((0,o.A)({},r),{},{ref:f,class:E,style:[O,y(!!_),r.style]}),[p])}}}),pl=hl,vl={adjustX:1,adjustY:1},gl=[0,0],ml={left:{points:["cr","cl"],overflow:vl,offset:[-4,0],targetOffset:gl},right:{points:["cl","cr"],overflow:vl,offset:[4,0],targetOffset:gl},top:{points:["bc","tc"],overflow:vl,offset:[0,-4],targetOffset:gl},bottom:{points:["tc","bc"],overflow:vl,offset:[0,4],targetOffset:gl},topLeft:{points:["bl","tl"],overflow:vl,offset:[0,-4],targetOffset:gl},leftTop:{points:["tr","tl"],overflow:vl,offset:[-4,0],targetOffset:gl},topRight:{points:["br","tr"],overflow:vl,offset:[0,-4],targetOffset:gl},rightTop:{points:["tl","tr"],overflow:vl,offset:[4,0],targetOffset:gl},bottomRight:{points:["tr","br"],overflow:vl,offset:[0,4],targetOffset:gl},rightBottom:{points:["bl","br"],overflow:vl,offset:[4,0],targetOffset:gl},bottomLeft:{points:["tl","bl"],overflow:vl,offset:[0,4],targetOffset:gl},leftBottom:{points:["br","bl"],overflow:vl,offset:[-4,0],targetOffset:gl}},yl={prefixCls:String,id:String,overlayInnerStyle:Fe.A.any},bl=(0,s.pM)({compatConfig:{MODE:3},name:"Content",props:yl,slots:["overlay"],setup:function(e,t){var n=t.slots;return function(){var t;return(0,s.bF)("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}}),wl=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function Al(){}var xl=(0,s.pM)({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:Fe.A.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:Fe.A.string.def("right"),transitionName:String,animation:Fe.A.any,afterVisibleChange:Fe.A.func.def((function(){})),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Fe.A.string.def("rc-tooltip"),mouseEnterDelay:Fe.A.number.def(.1),mouseLeaveDelay:Fe.A.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Fe.A.object.def((function(){return{}})),arrowContent:Fe.A.any.def(null),tipId:String,builtinPlacements:Fe.A.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,t){var n=t.slots,r=t.attrs,i=t.expose,a=(0,s.KR)(),l=function(){var t=e.prefixCls,r=e.tipId,o=e.overlayInnerStyle;return[(0,s.bF)("div",{class:"".concat(t,"-arrow"),key:"arrow"},[(0,B.rU)(n,e,"arrowContent")]),(0,s.bF)(bl,{key:"content",prefixCls:t,id:r,overlayInnerStyle:o},{overlay:n.overlay})]},u=function(){return a.value.getPopupDomNode()};i({getPopupDomNode:u,triggerDOM:a,forcePopupAlign:function(){var e;return null===(e=a.value)||void 0===e?void 0:e.forcePopupAlign()}});var c=(0,s.KR)(!1),f=(0,s.KR)(!1);return(0,s.nT)((function(){var t=e.destroyTooltipOnHide;if("boolean"===typeof t)c.value=t;else if(t&&"object"===(0,Ie.A)(t)){var n=t.keepParent;c.value=!0===n,f.value=!1===n}})),function(){var t=e.overlayClassName,i=e.trigger,u=e.mouseEnterDelay,d=e.mouseLeaveDelay,h=e.overlayStyle,p=e.prefixCls,v=e.afterVisibleChange,g=e.transitionName,m=e.animation,y=e.placement,b=e.align,w=(e.destroyTooltipOnHide,e.defaultVisible),A=(0,je.A)(e,wl),x=(0,o.A)({},A);void 0!==e.visible&&(x.popupVisible=e.visible);var C=(0,o.A)((0,o.A)((0,o.A)({popupClassName:t,prefixCls:p,action:i,builtinPlacements:ml,popupPlacement:y,popupAlign:b,afterPopupVisibleChange:v,popupTransitionName:g,popupAnimation:m,defaultPopupVisible:w,destroyPopupOnHide:c.value,autoDestroy:f.value,mouseLeaveDelay:d,popupStyle:h,mouseEnterDelay:u},x),r),{},{onPopupVisibleChange:e.onVisibleChange||Al,onPopupAlign:e.onPopupAlign||Al,ref:a,popup:l()});return(0,s.bF)(Eo,C,{default:n.default})}}}),Cl=xl,Sl=(0,$.PV)("success","processing","error","default","warning"),_l=(0,$.PV)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),kl=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}},El={adjustX:1,adjustY:1},Ol={adjustX:0,adjustY:0},Fl=[0,0];function Tl(e){return"boolean"===typeof e?e?El:Ol:(0,o.A)((0,o.A)({},Ol),e)}function Pl(e){var t=e.arrowWidth,n=void 0===t?4:t,r=e.horizontalArrowShift,i=void 0===r?16:r,a=e.verticalArrowShift,s=void 0===a?8:a,l=e.autoAdjustOverflow,u=e.arrowPointAtCenter,c={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(s+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(s+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,s+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,s+n]}};return Object.keys(c).forEach((function(e){c[e]=u?(0,o.A)((0,o.A)({},c[e]),{},{overflow:Tl(l),targetOffset:Fl}):(0,o.A)((0,o.A)({},ml[e]),{},{overflow:Tl(l)}),c[e].ignoreShake=!0})),c}function Nl(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=0,n=e.length;t<n;t++)if(void 0!==e[t])return e[t]}var Ml=Nl,Ll=function(e,t){var n={},r=(0,o.A)({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}},Il=new RegExp("^(".concat(_l.join("|"),")(-inverse)?$")),Rl=function(){return(0,o.A)((0,o.A)({},kl()),{},{title:Fe.A.any})},jl=function(){return{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}},Dl=(0,s.pM)({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Pe(Rl(),{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:["title"],setup:function(e,t){var n,r=t.slots,a=t.emit,u=t.attrs,c=t.expose,f=(0,se.A)("tooltip",e),d=f.prefixCls,h=f.getPopupContainer,p=(0,s.KR)(Ml([e.visible,e.defaultVisible])),v=(0,s.KR)();(0,s.sV)((function(){(0,Dn.A)(void 0===e.defaultVisible,"Tooltip","'defaultVisible' is deprecated, please use 'v-model:visible'")})),(0,s.wB)((function(){return e.visible}),(function(e){G.cancel(n),n=G((function(){p.value=!!e}))}));var g=function(){var t,n=null!==(t=e.title)&&void 0!==t?t:r.title;return!n&&0!==n},m=function(t){var n=g();void 0===e.visible&&(p.value=!n&&t),n||(a("update:visible",t),a("visibleChange",t))},y=function(){return v.value.getPopupDomNode()};c({getPopupDomNode:y,visible:p,forcePopupAlign:function(){var e;return null===(e=v.value)||void 0===e?void 0:e.forcePopupAlign()}});var b=(0,s.EW)((function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||Pl({arrowPointAtCenter:n,autoAdjustOverflow:r})})),w=function(e){return e||""===e},A=function(e){var t=e.type;if("object"===(0,Ie.A)(t)&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&w(e.props.disabled)||!0===t.__ANT_SWITCH&&(w(e.props.disabled)||w(e.props.loading)))){var n=Ll((0,B.gd)(e),["position","left","right","top","bottom","float","display","zIndex"]),r=n.picked,i=n.omitted,a=(0,o.A)((0,o.A)({display:"inline-block"},r),{},{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":null}),l=(0,o.A)((0,o.A)({},i),{},{pointerEvents:"none"}),u=Bn(e,{style:l},!0);return(0,s.bF)("span",{style:a,class:"".concat(d.value,"-disabled-compatible-wrapper")},[u])}return e},x=function(){var t,n;return null!==(t=e.title)&&void 0!==t?t:null===(n=r.title)||void 0===n?void 0:n.call(r)},C=function(e,t){var n=b.value,r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];if(r){var o=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}};return function(){var t,n,a,c=e.openClassName,f=e.color,y=e.overlayClassName,w=null!==(t=(0,B.Gk)(null===(n=r.default)||void 0===n?void 0:n.call(r)))&&void 0!==t?t:null;w=1===w.length?w[0]:w;var S=p.value;if(void 0===e.visible&&g()&&(S=!1),!w)return null;var _,k,E=A((0,B.zO)(w)?w:(0,s.bF)("span",null,[w])),O=(0,l.A)((a={},(0,i.A)(a,c||"".concat(d.value,"-open"),!0),(0,i.A)(a,E.props&&E.props.class,E.props&&E.props.class),a)),F=(0,l.A)(y,(0,i.A)({},"".concat(d.value,"-").concat(f),f&&Il.test(f)));f&&!Il.test(f)&&(_={backgroundColor:f},k={backgroundColor:f});var T=(0,o.A)((0,o.A)((0,o.A)({},u),e),{},{prefixCls:d.value,getPopupContainer:h.value,builtinPlacements:b.value,visible:S,ref:v,overlayClassName:F,overlayInnerStyle:_,onVisibleChange:m,onPopupAlign:C});return(0,s.bF)(Cl,T,{default:function(){return[p.value?Bn(E,{class:O}):E]},arrowContent:function(){return(0,s.bF)("span",{class:"".concat(d.value,"-arrow-content"),style:k},null)},overlay:x})}}}),Bl=(0,$.GU)(Dl),Wl=function(){return(0,o.A)((0,o.A)({},kl()),{},{content:Fe.A.any,title:Fe.A.any})},zl=(0,s.pM)({compatConfig:{MODE:3},name:"APopover",props:Pe(Wl(),(0,o.A)((0,o.A)({},jl()),{},{trigger:"hover",transitionName:"zoom-big",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup:function(e,t){var n=t.expose,r=t.slots,i=(0,s.KR)();n({getPopupDomNode:function(){var e,t;return null===(e=i.value)||void 0===e||null===(t=e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});var a=(0,se.A)("popover",e),l=a.prefixCls,u=a.configProvider,c=(0,s.EW)((function(){return u.getPrefixCls()})),f=function(){var t,n,o=e.title,i=void 0===o?(0,B.Gk)(null===(t=r.title)||void 0===t?void 0:t.call(r)):o,a=e.content,u=void 0===a?(0,B.Gk)(null===(n=r.content)||void 0===n?void 0:n.call(r)):a,c=!!(Array.isArray(i)?i.length:i),f=!!(Array.isArray(u)?u.length:i);if(c||f)return(0,s.bF)(s.FK,null,[c&&(0,s.bF)("div",{class:"".concat(l.value,"-title")},[i]),(0,s.bF)("div",{class:"".concat(l.value,"-inner-content")},[u])])};return function(){return(0,s.bF)(Bl,(0,o.A)((0,o.A)({},ce(e,["title","content"])),{},{prefixCls:l.value,ref:i,transitionName:(0,so.by)(c.value,"zoom-big",e.transitionName)}),{title:f,default:r.default})}}}),Ul=(0,$.GU)(zl),Kl=function(){return{prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"}}},Vl=(0,s.pM)({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:Kl(),setup:function(e,t){var n=t.slots,r=t.attrs,a=(0,se.A)("avatar-group",e),l=a.prefixCls,u=a.direction;return cl(e),function(){var t,a=e.maxPopoverPlacement,c=void 0===a?"top":a,f=e.maxCount,d=e.maxStyle,h=e.maxPopoverTrigger,p=void 0===h?"hover":h,v=(t={},(0,i.A)(t,l.value,!0),(0,i.A)(t,"".concat(l.value,"-rtl"),"rtl"===u.value),(0,i.A)(t,"".concat(r.class),!!r.class),t),g=(0,B.rU)(n,e),m=(0,B.MI)(g).map((function(e,t){return Bn(e,{key:"avatar-key-".concat(t)})})),y=m.length;if(f&&f<y){var b=m.slice(0,f),w=m.slice(f,y);return b.push((0,s.bF)(Ul,{key:"avatar-popover-key",content:w,trigger:p,placement:c,overlayClassName:"".concat(l.value,"-popover")},{default:function(){return[(0,s.bF)(pl,{style:d},{default:function(){return["+".concat(y-f)]}})]}})),(0,s.bF)("div",(0,o.A)((0,o.A)({},r),{},{class:v,style:r.style}),[b])}return(0,s.bF)("div",(0,o.A)((0,o.A)({},r),{},{class:v,style:r.style}),[m])}}}),Hl=Vl;pl.Group=Hl,pl.install=function(e){return e.component(pl.name,pl),e.component(Hl.name,Hl),e};var ql=pl,Gl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},Yl=Gl;function $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xl(e,t,n[t])}))}return e}function Xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jl=function(e,t){var n=$l({},e,t.attrs);return(0,s.bF)(Ya.A,$l({},n,{icon:Yl}),null)};Jl.displayName="VerticalAlignTopOutlined",Jl.inheritAttrs=!1;var Ql=Jl,Zl=function(){return{visibilityHeight:{type:Number,default:400},duration:{type:Number,default:450},target:Function,prefixCls:String,onClick:Function}},eu=(0,s.pM)({compatConfig:{MODE:3},name:"ABackTop",inheritAttrs:!1,props:Zl(),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.emit,l=(0,se.A)("back-top",e),u=l.prefixCls,c=l.direction,f=(0,s.KR)(),d=(0,s.Kh)({visible:!1,scrollEvent:null}),h=function(){return f.value&&f.value.ownerDocument?f.value.ownerDocument:window},p=function(t){var n=e.target,r=void 0===n?h:n,o=e.duration;ye(0,{getContainer:r,duration:o}),a("click",t)},v=Y((function(t){var n=e.visibilityHeight,r=ge(t.target,!0);d.visible=r>n})),g=function(){var t=e.target,n=t||h,r=n();d.scrollEvent=Z(r,"scroll",(function(e){v(e)})),v({target:r})},m=function(){d.scrollEvent&&d.scrollEvent.remove(),v.cancel()};return(0,s.wB)((function(){return e.target}),(function(){m(),(0,s.dY)((function(){g()}))})),(0,s.sV)((function(){(0,s.dY)((function(){g()}))})),(0,s.n)((function(){(0,s.dY)((function(){g()}))})),(0,s.Y4)((function(){m()})),(0,s.xo)((function(){m()})),function(){var e,t,a=(0,s.bF)("div",{class:"".concat(u.value,"-content")},[(0,s.bF)("div",{class:"".concat(u.value,"-icon")},[(0,s.bF)(Ql,null,null)])]),l=(0,o.A)((0,o.A)({},r),{},{onClick:p,class:(e={},(0,i.A)(e,"".concat(u.value),!0),(0,i.A)(e,"".concat(r.class),r.class),(0,i.A)(e,"".concat(u.value,"-rtl"),"rtl"===c.value),e)}),h=(0,so.ce)("fade");return(0,s.bF)(s.eB,h,{default:function(){return[(0,s.bo)((0,s.bF)("div",(0,o.A)((0,o.A)({},l),{},{ref:f}),[(null===(t=n.default)||void 0===t?void 0:t.call(n))||a]),[[s.aG,d.visible]])]}})}}}),tu=(0,$.GU)(eu);function nu(e){var t,n=e.prefixCls,r=e.value,o=e.current,i=e.offset,a=void 0===i?0:i;return a&&(t={position:"absolute",top:"".concat(a,"00%"),left:0}),(0,s.bF)("p",{style:t,class:(0,l.A)("".concat(n,"-only-unit"),{current:o})},[r])}function ru(e,t,n){var r=e,o=0;while((r+10)%10!==t)r+=n,o+=n;return o}var ou=(0,s.pM)({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup:function(e){var t=(0,s.EW)((function(){return Number(e.value)})),n=(0,s.EW)((function(){return Math.abs(e.count)})),r=(0,s.Kh)({prevValue:t.value,prevCount:n.value}),i=function(){r.prevValue=t.value,r.prevCount=n.value},a=(0,s.KR)();return(0,s.wB)(t,(function(){clearTimeout(a.value),a.value=setTimeout((function(){i()}),1e3)}),{flush:"post"}),(0,s.hi)((function(){clearTimeout(a.value)})),function(){var a,l={},u=t.value;if(r.prevValue===u||Number.isNaN(u)||Number.isNaN(r.prevValue))a=[nu((0,o.A)((0,o.A)({},e),{},{current:!0}))],l={transition:"none"};else{a=[];for(var c=u+10,f=[],d=u;d<=c;d+=1)f.push(d);var h=f.findIndex((function(e){return e%10===r.prevValue}));a=f.map((function(t,n){var r=t%10;return nu((0,o.A)((0,o.A)({},e),{},{value:r,offset:n-h,current:n===h}))}));var p=r.prevCount<n.value?1:-1;l={transform:"translateY(".concat(-ru(r.prevValue,u,p),"00%)")}}return(0,s.bF)("span",{class:"".concat(e.prefixCls,"-only"),style:l,onTransitionend:function(){return i()}},[a])}}}),iu=["prefixCls","count","title","show","component","class","style"],au={prefixCls:String,count:Fe.A.any,component:String,title:Fe.A.any,show:Boolean},su=(0,s.pM)({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:au,setup:function(e,t){var n=t.attrs,r=t.slots,i=(0,se.A)("scroll-number",e),a=i.prefixCls;return function(){var t,i=(0,o.A)((0,o.A)({},e),n),u=(i.prefixCls,i.count),c=i.title,f=(i.show,i.component),d=void 0===f?"sup":f,h=i.class,p=i.style,v=(0,je.A)(i,iu),g=(0,o.A)((0,o.A)({},v),{},{style:p,"data-show":e.show,class:(0,l.A)(a.value,h),title:c}),m=u;if(u&&Number(u)%1===0){var y=String(u).split("");m=y.map((function(e,t){return(0,s.bF)(ou,{prefixCls:a.value,count:Number(u),value:e,key:y.length-t},null)}))}p&&p.borderColor&&(g.style=(0,o.A)((0,o.A)({},p),{},{boxShadow:"0 0 0 1px ".concat(p.borderColor," inset")}));var b=(0,B.Gk)(null===(t=r.default)||void 0===t?void 0:t.call(r));return b&&b.length?Bn(b,{class:(0,l.A)("".concat(a.value,"-custom-component"))},!1):(0,s.bF)(d,g,{default:function(){return[m]}})}}});function lu(e){return-1!==_l.indexOf(e)}var uu=["class","style"],cu=function(){return{prefix:String,color:{type:String},text:Fe.A.any,placement:{type:String,default:"end"}}},fu=(0,s.pM)({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:cu(),slots:["text"],setup:function(e,t){var n=t.attrs,r=t.slots,a=(0,se.A)("ribbon",e),l=a.prefixCls,u=a.direction,c=(0,s.EW)((function(){return lu(e.color)})),f=(0,s.EW)((function(){var t;return[l.value,"".concat(l.value,"-placement-").concat(e.placement),(t={},(0,i.A)(t,"".concat(l.value,"-rtl"),"rtl"===u.value),(0,i.A)(t,"".concat(l.value,"-color-").concat(e.color),c.value),t)]}));return function(){var t,i,a=n.class,u=n.style,d=(0,je.A)(n,uu),h={},p={};return e.color&&!c.value&&(h.background=e.color,p.color=e.color),(0,s.bF)("div",(0,o.A)({class:"".concat(l.value,"-wrapper")},d),[null===(t=r.default)||void 0===t?void 0:t.call(r),(0,s.bF)("div",{class:[f.value,a],style:(0,o.A)((0,o.A)({},h),u)},[(0,s.bF)("span",{class:"".concat(l.value,"-text")},[e.text||(null===(i=r.text)||void 0===i?void 0:i.call(r))]),(0,s.bF)("div",{class:"".concat(l.value,"-corner"),style:p},null)])])}}}),du=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},hu=du,pu=function(){return{count:Fe.A.any,showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:Fe.A.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}},vu=(0,s.pM)({compatConfig:{MODE:3},name:"ABadge",Ribbon:fu,inheritAttrs:!1,props:pu(),slots:["text","count"],setup:function(e,t){var n=t.slots,r=t.attrs,a=(0,se.A)("badge",e),u=a.prefixCls,c=a.direction,f=(0,s.EW)((function(){return e.count>e.overflowCount?"".concat(e.overflowCount,"+"):e.count})),d=(0,s.EW)((function(){return null!==e.status&&void 0!==e.status||null!==e.color&&void 0!==e.color})),h=(0,s.EW)((function(){return"0"===f.value||0===f.value})),p=(0,s.EW)((function(){return e.dot&&!h.value})),v=(0,s.EW)((function(){return p.value?"":f.value})),g=(0,s.EW)((function(){var t=null===v.value||void 0===v.value||""===v.value;return(t||h.value&&!e.showZero)&&!p.value})),m=(0,s.KR)(e.count),y=(0,s.KR)(v.value),b=(0,s.KR)(p.value);(0,s.wB)([function(){return e.count},v,p],(function(){g.value||(m.value=e.count,y.value=v.value,b.value=p.value)}),{immediate:!0});var w=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(u.value,"-status-dot"),d.value),(0,i.A)(t,"".concat(u.value,"-status-").concat(e.status),!!e.status),(0,i.A)(t,"".concat(u.value,"-status-").concat(e.color),lu(e.color)),t})),A=(0,s.EW)((function(){return e.color&&!lu(e.color)?{background:e.color}:{}})),x=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(u.value,"-dot"),b.value),(0,i.A)(t,"".concat(u.value,"-count"),!b.value),(0,i.A)(t,"".concat(u.value,"-count-sm"),"small"===e.size),(0,i.A)(t,"".concat(u.value,"-multiple-words"),!b.value&&y.value&&y.value.toString().length>1),(0,i.A)(t,"".concat(u.value,"-status-").concat(e.status),!!e.status),(0,i.A)(t,"".concat(u.value,"-status-").concat(e.color),lu(e.color)),t}));return function(){var t,a,f,h=e.offset,p=e.title,v=e.color,b=r.style,C=(0,B.rU)(n,e,"text"),S=u.value,_=m.value,k=(0,B.MI)(null===(t=n.default)||void 0===t?void 0:t.call(n));k=k.length?k:null;var E=!(g.value&&!n.count),O=function(){if(!h)return(0,o.A)({},b);var e={marginTop:hu(h[1])?"".concat(h[1],"px"):h[1]};return"rtl"===c.value?e.left="".concat(parseInt(h[0],10),"px"):e.right="".concat(-parseInt(h[0],10),"px"),(0,o.A)((0,o.A)({},e),b)}(),F=null!==p&&void 0!==p?p:"string"===typeof _||"number"===typeof _?_:void 0,T=E||!C?null:(0,s.bF)("span",{class:"".concat(S,"-status-text")},[C]),P="object"===(0,Ie.A)(_)||void 0===_&&n.count?Bn(null!==_&&void 0!==_?_:null===(a=n.count)||void 0===a?void 0:a.call(n),{style:O},!1):null,N=(0,l.A)(S,(f={},(0,i.A)(f,"".concat(S,"-status"),d.value),(0,i.A)(f,"".concat(S,"-not-a-wrapper"),!k),(0,i.A)(f,"".concat(S,"-rtl"),"rtl"===c.value),f),r.class);if(!k&&d.value){var M=O.color;return(0,s.bF)("span",(0,o.A)((0,o.A)({},r),{},{class:N,style:O}),[(0,s.bF)("span",{class:w.value,style:A.value},null),(0,s.bF)("span",{style:{color:M},class:"".concat(S,"-status-text")},[C])])}var L=(0,so.ce)(k?"".concat(S,"-zoom"):"",{appear:!1}),I=(0,o.A)((0,o.A)({},O),e.numberStyle);return v&&!lu(v)&&(I=I||{},I.background=v),(0,s.bF)("span",(0,o.A)((0,o.A)({},r),{},{class:N}),[k,(0,s.bF)(s.eB,L,{default:function(){return[(0,s.bo)((0,s.bF)(su,{prefixCls:e.scrollNumberPrefixCls,show:E,class:x.value,count:y.value,title:F,style:I,key:"scrollNumber"},{default:function(){return[P]}}),[[s.aG,E]])]}}),T])}}});vu.install=function(e){return e.component(vu.name,vu),e.component(fu.name,fu),e};var gu=vu,mu={adjustX:1,adjustY:1},yu=[0,0],bu={topLeft:{points:["bl","tl"],overflow:mu,offset:[0,-4],targetOffset:yu},topCenter:{points:["bc","tc"],overflow:mu,offset:[0,-4],targetOffset:yu},topRight:{points:["br","tr"],overflow:mu,offset:[0,-4],targetOffset:yu},bottomLeft:{points:["tl","bl"],overflow:mu,offset:[0,4],targetOffset:yu},bottomCenter:{points:["tc","bc"],overflow:mu,offset:[0,4],targetOffset:yu},bottomRight:{points:["tr","br"],overflow:mu,offset:[0,4],targetOffset:yu}},wu=bu,Au=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"],xu=(0,s.pM)({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:Fe.A.string.def("rc-dropdown"),transitionName:String,overlayClassName:Fe.A.string.def(""),openClassName:String,animation:Fe.A.any,align:Fe.A.object,overlayStyle:{type:Object,default:void 0},placement:Fe.A.string.def("bottomLeft"),overlay:Fe.A.any,trigger:Fe.A.oneOfType([Fe.A.string,Fe.A.arrayOf(Fe.A.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:Fe.A.array,hideAction:Fe.A.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:Fe.A.number.def(.15),mouseLeaveDelay:Fe.A.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,t){var n=t.slots,r=t.emit,a=t.expose,u=(0,s.KR)(!!e.visible);(0,s.wB)((function(){return e.visible}),(function(e){void 0!==e&&(u.value=e)}));var c=(0,s.KR)();a({triggerRef:c});var f=function(t){void 0===e.visible&&(u.value=!1),r("overlayClick",t)},d=function(t){void 0===e.visible&&(u.value=t),r("visibleChange",t)},h=function(){var t,r=null===(t=n.overlay)||void 0===t?void 0:t.call(n),o={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:f,getPopupContainer:function(){return c.value.getPopupDomNode()}};return(0,s.bF)(s.FK,null,[e.arrow&&(0,s.bF)("div",{class:"".concat(e.prefixCls,"-arrow")},null),Bn(r,o,!1)])},p=(0,s.EW)((function(){var t=e.minOverlayWidthMatchTrigger,n=void 0===t?!e.alignPoint:t;return n})),v=function(){var t,r=null===(t=n.default)||void 0===t?void 0:t.call(n);return u.value&&r?Bn(r[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):r},g=(0,s.EW)((function(){return e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]}));return function(){var t=e.prefixCls,n=e.arrow,r=e.showAction,a=e.overlayStyle,f=e.trigger,m=e.placement,y=e.align,b=e.getPopupContainer,w=e.transitionName,A=e.animation,x=e.overlayClassName,C=(0,je.A)(e,Au);return(0,s.bF)(Eo,(0,o.A)((0,o.A)({},C),{},{prefixCls:t,ref:c,popupClassName:(0,l.A)(x,(0,i.A)({},"".concat(t,"-show-arrow"),n)),popupStyle:a,builtinPlacements:wu,action:f,showAction:r,hideAction:g.value||[],popupPlacement:m,popupAlign:y,popupTransitionName:w,popupAnimation:A,popupVisible:u.value,stretch:p.value?"minWidth":"",onPopupVisibleChange:d,getPopupContainer:b}),{popup:h,default:v})}}}),Cu=xu,Su={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},_u={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},ku=[],Eu=[];function Ou(){var e=document.createElement("div"),t=e.style;function n(e,n){for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];for(var i in o)if(i in t){n.push(o[i]);break}}}"AnimationEvent"in window||(delete Su.animationstart.animation,delete _u.animationend.animation),"TransitionEvent"in window||(delete Su.transitionstart.transition,delete _u.transitionend.transition),n(Su,ku),n(_u,Eu)}function Fu(e,t,n){e.addEventListener(t,n,!1)}function Tu(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!==typeof window&&"undefined"!==typeof document&&Ou();var Pu,Nu={startEvents:ku,addStartEventListener:function(e,t){0!==ku.length?ku.forEach((function(n){Fu(e,n,t)})):setTimeout(t,0)},removeStartEventListener:function(e,t){0!==ku.length&&ku.forEach((function(n){Tu(e,n,t)}))},endEvents:Eu,addEndEventListener:function(e,t){0!==Eu.length?Eu.forEach((function(n){Fu(e,n,t)})):setTimeout(t,0)},removeEndEventListener:function(e,t){0!==Eu.length&&Eu.forEach((function(n){Tu(e,n,t)}))}},Mu=Nu;function Lu(e){return!e||null===e.offsetParent}function Iu(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var Ru=(0,s.pM)({compatConfig:{MODE:3},name:"Wave",props:{insertExtraNode:Boolean,disabled:Boolean},setup:function(e,t){var n=t.slots,r=t.expose,o=(0,s.nI)(),i=(0,se.A)("",e),a=i.csp,l=i.prefixCls;r({csp:a});var u=null,c=null,f=null,d=!1,h=null,p=!1,v=function(e){if(!p){var t=(0,B.oK)(o);e&&e.target===t&&(d||b(t))}},g=function(e){e&&"fadeEffect"===e.animationName&&b(e.target)},m=function(){var t=e.insertExtraNode;return"".concat(l.value,t?"-click-animating":"-click-animating-without-extra-node")},y=function(t,n){var r=e.insertExtraNode,o=e.disabled;if(!(o||!t||Lu(t)||t.className.indexOf("-leave")>=0)){h=document.createElement("div"),h.className="".concat(l.value,"-click-animating-node");var i,s=m();if(t.removeAttribute(s),t.setAttribute(s,"true"),Pu=Pu||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&Iu(n)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(n)&&"transparent"!==n)null!==(i=a.value)&&void 0!==i&&i.nonce&&(Pu.nonce=a.value.nonce),h.style.borderColor=n,Pu.innerHTML="\n        [".concat(l.value,"-click-animating-without-extra-node='true']::after, .").concat(l.value,"-click-animating-node {\n          --antd-wave-shadow-color: ").concat(n,";\n        }"),document.body.contains(Pu)||document.body.appendChild(Pu);r&&t.appendChild(h),Mu.addStartEventListener(t,v),Mu.addEndEventListener(t,g)}},b=function(t){if(t&&t!==h&&t instanceof Element){var n=e.insertExtraNode,r=m();t.setAttribute(r,"false"),Pu&&(Pu.innerHTML=""),n&&h&&t.contains(h)&&t.removeChild(h),Mu.removeStartEventListener(t,v),Mu.removeEndEventListener(t,g)}},w=function(e){if(e&&e.getAttribute&&!e.getAttribute("disabled")&&!(e.className.indexOf("disabled")>=0)){var t=function(t){if("INPUT"!==t.target.tagName&&!Lu(t.target)){b(e);var n=getComputedStyle(e).getPropertyValue("border-top-color")||getComputedStyle(e).getPropertyValue("border-color")||getComputedStyle(e).getPropertyValue("background-color");c=setTimeout((function(){return y(e,n)}),0),G.cancel(f),d=!0,f=G((function(){d=!1}),10)}};return e.addEventListener("click",t,!0),{cancel:function(){e.removeEventListener("click",t,!0)}}}};return(0,s.sV)((function(){(0,s.dY)((function(){var e=(0,B.oK)(o);1===e.nodeType&&(u=w(e))}))})),(0,s.xo)((function(){u&&u.cancel(),clearTimeout(c),p=!0})),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}});function ju(e){return"danger"===e?{danger:!0}:{type:e}}var Du=function(){return{prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:function(){return!1}},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Fe.A.any,href:String,target:String,title:String,onClick:{type:Function},onMousedown:{type:Function}}},Bu=Du,Wu=n(37025),zu=function(e){e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Uu=function(e){(0,s.dY)((function(){e&&(e.style.width="".concat(e.scrollWidth,"px"),e.style.opacity="1",e.style.transform="scale(1)")}))},Ku=function(e){e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},Vu=(0,s.pM)({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup:function(e){return function(){var t=e.existIcon,n=e.prefixCls,r=e.loading;if(t)return(0,s.bF)("span",{class:"".concat(n,"-loading-icon")},[(0,s.bF)(Za.A,null,null)]);var o=!!r;return(0,s.bF)(so.Ay,{name:"".concat(n,"-loading-icon-motion"),onBeforeEnter:zu,onEnter:Uu,onAfterEnter:Ku,onBeforeLeave:Uu,onLeave:function(e){setTimeout((function(){zu(e)}))},onAfterLeave:Ku},{default:function(){return[o?(0,s.bF)("span",{class:"".concat(n,"-loading-icon")},[(0,s.bF)(Za.A,null,null)]):null]}})}}}),Hu=/^[\u4e00-\u9fa5]{2}$/,qu=Hu.test.bind(Hu);function Gu(e){return"text"===e||"link"===e}var Yu=(0,s.pM)({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Pe(Bu(),{type:"default"}),slots:["icon"],setup:function(e,t){var n=t.slots,r=t.attrs,a=t.emit,l=t.expose,u=(0,se.A)("btn",e),c=u.prefixCls,f=u.autoInsertSpaceInButton,d=u.direction,h=u.size,p=(0,s.KR)(null),v=(0,s.KR)(void 0),g=!1,m=(0,s.KR)(!1),y=(0,s.KR)(!1),b=(0,s.EW)((function(){return!1!==f.value})),w=(0,s.EW)((function(){return"object"===(0,Ie.A)(e.loading)&&e.loading.delay?e.loading.delay||!0:!!e.loading}));(0,s.wB)(w,(function(e){clearTimeout(v.value),"number"===typeof w.value?v.value=setTimeout((function(){m.value=e}),w.value):m.value=e}),{immediate:!0});var A=(0,s.EW)((function(){var t,n=e.type,r=e.shape,o=void 0===r?"default":r,a=e.ghost,s=e.block,l=e.danger,u=c.value,f={large:"lg",small:"sm",middle:void 0},p=h.value,v=p&&f[p]||"";return t={},(0,i.A)(t,"".concat(u),!0),(0,i.A)(t,"".concat(u,"-").concat(n),n),(0,i.A)(t,"".concat(u,"-").concat(o),"default"!==o&&o),(0,i.A)(t,"".concat(u,"-").concat(v),v),(0,i.A)(t,"".concat(u,"-loading"),m.value),(0,i.A)(t,"".concat(u,"-background-ghost"),a&&!Gu(n)),(0,i.A)(t,"".concat(u,"-two-chinese-chars"),y.value&&b.value),(0,i.A)(t,"".concat(u,"-block"),s),(0,i.A)(t,"".concat(u,"-dangerous"),!!l),(0,i.A)(t,"".concat(u,"-rtl"),"rtl"===d.value),t})),x=function(){var e=p.value;if(e&&!1!==f.value){var t=e.textContent;g&&qu(t)?y.value||(y.value=!0):y.value&&(y.value=!1)}},C=function(t){m.value||e.disabled?t.preventDefault():a("click",t)},S=function(e,t){var n=t?" ":"";if(e.type===s.EY){var r=e.children.trim();return qu(r)&&(r=r.split("").join(n)),(0,s.bF)("span",null,[r])}return e};(0,s.nT)((function(){(0,Wu.A)(!(e.ghost&&Gu(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")})),(0,s.sV)(x),(0,s.$u)(x),(0,s.xo)((function(){v.value&&clearTimeout(v.value)}));var _=function(){var e;null===(e=p.value)||void 0===e||e.focus()},k=function(){var e;null===(e=p.value)||void 0===e||e.blur()};return l({focus:_,blur:k}),function(){var t,a,l=e.icon,u=void 0===l?null===(t=n.icon)||void 0===t?void 0:t.call(n):l,f=(0,B.MI)(null===(a=n.default)||void 0===a?void 0:a.call(n));g=1===f.length&&!u&&!Gu(e.type);var d=e.type,h=e.htmlType,v=e.disabled,y=e.href,w=e.title,x=e.target,_=e.onMousedown,k=m.value?"loading":u,E=(0,o.A)((0,o.A)({},r),{},{title:w,disabled:v,class:[A.value,r.class,(0,i.A)({},"".concat(c.value,"-icon-only"),0===f.length&&!!k)],onClick:C,onMousedown:_});v||delete E.disabled;var O=u&&!m.value?u:(0,s.bF)(Vu,{existIcon:!!u,prefixCls:c.value,loading:!!m.value},null),F=f.map((function(e){return S(e,g&&b.value)}));if(void 0!==y)return(0,s.bF)("a",(0,o.A)((0,o.A)({},E),{},{href:y,target:x,ref:p}),[O,F]);var T=(0,s.bF)("button",(0,o.A)((0,o.A)({},E),{},{ref:p,type:h}),[O,F]);return Gu(d)?T:(0,s.bF)(Ru,{ref:"wave",disabled:!!m.value},{default:function(){return[T]}})}}}),$u=n(98406);function Xu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,$u.A)(r.key),r)}}function Ju(e,t,n){return t&&Xu(e.prototype,t),n&&Xu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Zu=function(){return{prefixCls:String,size:{type:String}}},ec=(0,s.pM)({compatConfig:{MODE:3},name:"AButtonGroup",props:Zu(),setup:function(e,t){var n=t.slots,r=(0,se.A)("btn-group",e),o=r.prefixCls,a=r.direction,l=(0,s.EW)((function(){var t,n=e.size,r="";switch(n){case"large":r="lg";break;case"small":r="sm";break;case"middle":case void 0:break;default:}return t={},(0,i.A)(t,"".concat(o.value),!0),(0,i.A)(t,"".concat(o.value,"-").concat(r),r),(0,i.A)(t,"".concat(o.value,"-rtl"),"rtl"===a.value),t}));return function(){var e;return(0,s.bF)("div",{class:l.value},[(0,B.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n))])}}});Yu.Group=ec,Yu.install=function(e){return e.component(Yu.name,Yu),e.component(ec.name,ec),e};var tc=Yu,nc=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:Fe.A.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},rc=Bu(),oc=function(){return(0,o.A)((0,o.A)({},nc()),{},{type:rc.type,size:String,htmlType:rc.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:Fe.A.any,title:String,loading:rc.loading,onClick:{type:Function}})},ic={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ac=ic;function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lc(e,t,n[t])}))}return e}function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uc=function(e,t){var n=sc({},e,t.attrs);return(0,s.bF)(Ya.A,sc({},n,{icon:ac}),null)};uc.displayName="EllipsisOutlined",uc.inheritAttrs=!1;var cc=uc,fc=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],dc=tc.Group,hc=(0,s.pM)({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Pe(oc(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(e,t){var n=t.slots,r=t.attrs,i=t.emit,a=function(e){i("update:visible",e),i("visibleChange",e)},u=(0,se.A)("dropdown-button",e),c=u.prefixCls,f=u.direction,d=u.getPopupContainer;return function(){var t,i,u=(0,o.A)((0,o.A)({},e),r),h=u.type,p=void 0===h?"default":h,v=u.disabled,g=u.loading,m=u.htmlType,y=u.class,b=void 0===y?"":y,w=u.overlay,A=void 0===w?null===(t=n.overlay)||void 0===t?void 0:t.call(n):w,x=u.trigger,C=u.align,S=u.visible,_=(u.onVisibleChange,u.placement),k=void 0===_?"rtl"===f.value?"bottomLeft":"bottomRight":_,E=u.href,O=u.title,F=u.icon,T=void 0===F?(null===(i=n.icon)||void 0===i?void 0:i.call(n))||(0,s.bF)(cc,null,null):F,P=u.mouseEnterDelay,N=u.mouseLeaveDelay,M=u.overlayClassName,L=u.overlayStyle,I=u.destroyPopupOnHide,R=u.onClick,j=(u["onUpdate:visible"],(0,je.A)(u,fc)),D={align:C,disabled:v,trigger:v?[]:x,placement:k,getPopupContainer:d.value,onVisibleChange:a,mouseEnterDelay:P,mouseLeaveDelay:N,visible:S,overlayClassName:M,overlayStyle:L,destroyPopupOnHide:I},B=(0,s.bF)(tc,{type:p,disabled:v,loading:g,onClick:R,htmlType:m,href:E,title:O},{default:n.default}),W=(0,s.bF)(tc,{type:p,icon:T},null);return(0,s.bF)(dc,(0,o.A)((0,o.A)({},j),{},{class:(0,l.A)(c.value,b)}),{default:function(){return[n.leftButton?n.leftButton({button:B}):B,(0,s.bF)(Ac,D,{default:function(){return[n.rightButton?n.rightButton({button:W}):W]},overlay:function(){return A}})]}})}}}),pc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},vc=pc;function gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mc(e,t,n[t])}))}return e}function mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yc=function(e,t){var n=gc({},e,t.attrs);return(0,s.bF)(Ya.A,gc({},n,{icon:vc}),null)};yc.displayName="RightOutlined",yc.inheritAttrs=!1;var bc=yc,wc=(0,s.pM)({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Pe(nc(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(e,t){var n=t.slots,r=t.attrs,u=t.emit,c=(0,se.A)("dropdown",e),f=c.prefixCls,d=c.rootPrefixCls,h=c.direction,p=c.getPopupContainer,v=(0,s.EW)((function(){var t=e.placement,n=void 0===t?"":t,r=e.transitionName;return void 0!==r?r:n.indexOf("top")>=0?"".concat(d.value,"-slide-down"):"".concat(d.value,"-slide-up")})),g=function(){var t,r,o,i=e.overlay||(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),a=Array.isArray(i)?i[0]:i;if(!a)return null;var l=a.props||{};(0,Wu.A)(!l.mode||"vertical"===l.mode,"Dropdown",'mode="'.concat(l.mode,"\" is not supported for Dropdown's Menu."));var u=l.selectable,c=void 0!==u&&u,d=l.expandIcon,h=void 0===d?null===(r=a.children)||void 0===r||null===(o=r.expandIcon)||void 0===o?void 0:o.call(r):d,p="undefined"!==typeof h&&(0,B.zO)(h)?h:(0,s.bF)("span",{class:"".concat(f.value,"-menu-submenu-arrow")},[(0,s.bF)(bc,{class:"".concat(f.value,"-menu-submenu-arrow-icon")},null)]),v=(0,B.zO)(a)?Bn(a,{mode:"vertical",selectable:c,expandIcon:function(){return p}}):a;return v},m=(0,s.EW)((function(){var t=e.placement;if(!t)return"rtl"===h.value?"bottomRight":"bottomLeft";if(t.includes("Center")){var n=t.slice(0,t.indexOf("Center"));return(0,Wu.A)(!t.includes("Center"),"Dropdown","You are using '".concat(t,"' placement in Dropdown, which is deprecated. Try to use '").concat(n,"' instead.")),n}return t})),y=function(e){u("update:visible",e),u("visibleChange",e)};return function(){var t,u,c,d=e.arrow,b=e.trigger,w=e.disabled,A=e.overlayClassName,x=null===(t=n.default)||void 0===t?void 0:t.call(n)[0],C=Bn(x,(0,a.A)({class:(0,l.A)(null===x||void 0===x||null===(u=x.props)||void 0===u?void 0:u.class,(0,i.A)({},"".concat(f.value,"-rtl"),"rtl"===h.value),"".concat(f.value,"-trigger"))},w?{disabled:w}:{})),S=(0,l.A)(A,(0,i.A)({},"".concat(f.value,"-rtl"),"rtl"===h.value)),_=w?[]:b;_&&-1!==_.indexOf("contextmenu")&&(c=!0);var k=Pl({arrowPointAtCenter:"object"===(0,Ie.A)(d)&&d.pointAtCenter,autoAdjustOverflow:!0}),E=ce((0,o.A)((0,o.A)((0,o.A)({},e),r),{},{builtinPlacements:k,overlayClassName:S,arrow:d,alignPoint:c,prefixCls:f.value,getPopupContainer:p.value,transitionName:v.value,trigger:_,onVisibleChange:y,placement:m.value}),["overlay","onUpdate:visible"]);return(0,s.bF)(Cu,E,{default:function(){return[C]},overlay:g})}}});wc.Button=hc;var Ac=wc,xc=["class","style"],Cc=function(){return{prefixCls:String,href:String,separator:Fe.A.any,overlay:Fe.A.any,onClick:Function}},Sc=(0,s.pM)({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:Cc(),slots:["separator","overlay"],setup:function(e,t){var n=t.slots,r=t.attrs,i=(0,se.A)("breadcrumb",e),a=i.prefixCls,l=function(t,r){var o=(0,B.rU)(n,e,"overlay");return o?(0,s.bF)(Ac,{overlay:o,placement:"bottom"},{default:function(){return[(0,s.bF)("span",{class:"".concat(r,"-overlay-link")},[t,(0,s.bF)(Qa,null,null)])]}}):t};return function(){var t,i,u=null!==(t=(0,B.rU)(n,e,"separator"))&&void 0!==t?t:"/",c=(0,B.rU)(n,e),f=r.class,d=r.style,h=(0,je.A)(r,xc);return i=void 0!==e.href?(0,s.bF)("a",(0,o.A)({class:"".concat(a.value,"-link"),onClick:e.onClick},h),[c]):(0,s.bF)("span",(0,o.A)({class:"".concat(a.value,"-link"),onClick:e.onClick},h),[c]),i=l(i,a.value),c?(0,s.bF)("span",{class:f,style:d},[i,u&&(0,s.bF)("span",{class:"".concat(a.value,"-separator")},[u])]):null}}});function _c(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==(0,Ie.A)(e)||!e||"object"!==(0,Ie.A)(t)||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],f=t[u];if(o=n?n.call(r,c,f,u):void 0,!1===o||void 0===o&&c!==f)return!1}return!0}function kc(e,t,n,r){return _c((0,s.ux)(e),(0,s.ux)(t),n,r)}var Ec=Symbol("menuContextKey"),Oc=function(e){(0,s.Gt)(Ec,e)},Fc=function(){return(0,s.WQ)(Ec)},Tc=Symbol("ForceRenderKey"),Pc=function(e){(0,s.Gt)(Tc,e)},Nc=function(){return(0,s.WQ)(Tc,!1)},Mc=Symbol("menuFirstLevelContextKey"),Lc=function(e){(0,s.Gt)(Mc,e)},Ic=function(){return(0,s.WQ)(Mc,!0)},Rc=(0,s.pM)({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0},isRootMenu:{type:Boolean,default:void 0}},setup:function(e,t){var n=t.slots,r=Fc(),i=(0,o.A)({},r);return void 0!==e.mode&&(i.mode=(0,s.lW)(e,"mode")),void 0!==e.isRootMenu&&(i.isRootMenu=(0,s.lW)(e,"isRootMenu")),void 0!==e.overflowDisabled&&(i.overflowDisabled=(0,s.lW)(e,"overflowDisabled")),Oc(i),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),jc=Oc;function Dc(e,t,n,r){var o=e.length,i=n+(r?1:-1);while(r?i--:++i<o)if(t(e[i],i,e))return i;return-1}var Bc=Dc;function Wc(e){return e!==e}var zc=Wc;function Uc(e,t,n){var r=n-1,o=e.length;while(++r<o)if(e[r]===t)return r;return-1}var Kc=Uc;function Vc(e,t,n){return t===t?Kc(e,t,n):Bc(e,zc,n)}var Hc=Vc;function qc(e,t){var n=null==e?0:e.length;return!!n&&Hc(e,t,0)>-1}var Gc=qc;function Yc(e,t,n){var r=-1,o=null==e?0:e.length;while(++r<o)if(n(t,e[r]))return!0;return!1}var $c=Yc,Xc=n(39857);function Jc(){}var Qc=Jc,Zc=1/0,ef=Xc.A&&1/gr(new Xc.A([,-0]))[1]==Zc?function(e){return new Xc.A(e)}:Qc,tf=ef,nf=200;function rf(e,t,n){var r=-1,o=Gc,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=$c;else if(i>=nf){var u=t?null:tf(e);if(u)return gr(u);a=!1,o=ir,l=new tr}else l=t?[]:s;e:while(++r<i){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f===f){var d=l.length;while(d--)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else o(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}var of=rf;function af(e){return e&&e.length?of(e):[]}var sf=af,lf=Symbol("siderCollapsed"),uf=Symbol("siderHookProvider"),cf="$$__vc-menu-more__key",ff=Symbol("KeyPathContext"),df=function(){return(0,s.WQ)(ff,{parentEventKeys:(0,s.EW)((function(){return[]})),parentKeys:(0,s.EW)((function(){return[]})),parentInfo:{}})},hf=function(e,t,n){var r=df(),o=r.parentEventKeys,i=r.parentKeys,a=(0,s.EW)((function(){return[].concat((0,z.A)(o.value),[e])})),l=(0,s.EW)((function(){return[].concat((0,z.A)(i.value),[t])}));return(0,s.Gt)(ff,{parentEventKeys:a,parentKeys:l,parentInfo:n}),l},pf=Symbol("measure"),vf=(0,s.pM)({compatConfig:{MODE:3},setup:function(e,t){var n=t.slots;return(0,s.Gt)(pf,!0),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),gf=function(){return(0,s.WQ)(pf,!1)},mf=hf;function yf(e){var t=Fc(),n=t.mode,r=t.rtl,o=t.inlineIndent;return(0,s.EW)((function(){return"inline"!==n.value?null:r.value?{paddingRight:"".concat(e.value*o.value,"px")}:{paddingLeft:"".concat(e.value*o.value,"px")}}))}var bf=0,wf=function(){return{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Fe.A.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function}},Af=(0,s.pM)({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:wf(),slots:["icon","title"],setup:function(e,t){var n=t.slots,r=t.emit,a=t.attrs,l=(0,s.nI)(),u=gf(),c="symbol"===(0,Ie.A)(l.vnode.key)?String(l.vnode.key):l.vnode.key;(0,Wu.A)("symbol"!==(0,Ie.A)(l.vnode.key),"MenuItem",'MenuItem `:key="'.concat(String(c),'"` not support Symbol type'));var f="menu_item_".concat(++bf,"_$$_").concat(c),d=df(),h=d.parentEventKeys,p=d.parentKeys,v=Fc(),g=v.prefixCls,m=v.activeKeys,y=v.disabled,b=v.changeActiveKeys,w=v.rtl,A=v.inlineCollapsed,x=v.siderCollapsed,C=v.onItemClick,S=v.selectedKeys,_=v.registerMenuInfo,k=v.unRegisterMenuInfo,E=Ic(),O=(0,s.KR)(!1),F=(0,s.EW)((function(){return[].concat((0,z.A)(p.value),[c])})),T={eventKey:f,key:c,parentEventKeys:h,parentKeys:p,isLeaf:!0};_(f,T),(0,s.xo)((function(){k(f)})),(0,s.wB)(m,(function(){O.value=!!m.value.find((function(e){return e===c}))}),{immediate:!0});var P=(0,s.EW)((function(){return y.value||e.disabled})),N=(0,s.EW)((function(){return S.value.includes(c)})),M=(0,s.EW)((function(){var t,n="".concat(g.value,"-item");return t={},(0,i.A)(t,"".concat(n),!0),(0,i.A)(t,"".concat(n,"-danger"),e.danger),(0,i.A)(t,"".concat(n,"-active"),O.value),(0,i.A)(t,"".concat(n,"-selected"),N.value),(0,i.A)(t,"".concat(n,"-disabled"),P.value),t})),L=function(t){return{key:c,eventKey:f,keyPath:F.value,eventKeyPath:[].concat((0,z.A)(h.value),[f]),domEvent:t,item:(0,o.A)((0,o.A)({},e),a)}},I=function(e){if(!P.value){var t=L(e);r("click",e),C(t)}},R=function(e){P.value||(b(F.value),r("mouseenter",e))},j=function(e){P.value||(b([]),r("mouseleave",e))},D=function(e){if(r("keydown",e),e.which===Mo.ENTER){var t=L(e);r("click",e),C(t)}},W=function(e){b(F.value),r("focus",e)},U=function(e,t){var n=(0,s.bF)("span",{class:"".concat(g.value,"-title-content")},[t]);return(!e||(0,B.zO)(t)&&"span"===t.type)&&t&&A.value&&E&&"string"===typeof t?(0,s.bF)("div",{class:"".concat(g.value,"-inline-collapsed-noicon")},[t.charAt(0)]):n},K=yf((0,s.EW)((function(){return F.value.length})));return function(){var t,r,l,f;if(u)return null;var d=null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n),h=(0,B.MI)(null===(l=n.default)||void 0===l?void 0:l.call(n)),p=h.length,v=d;"undefined"===typeof d?v=E&&p?h:"":!1===d&&(v="");var m={title:v};x.value||A.value||(m.title=null,m.visible=!1);var y={};"option"===e.role&&(y["aria-selected"]=N.value);var b=(0,B.rU)(n,e,"icon");return(0,s.bF)(Bl,(0,o.A)((0,o.A)({},m),{},{placement:w.value?"left":"right",overlayClassName:"".concat(g.value,"-inline-collapsed-tooltip")}),{default:function(){return[(0,s.bF)(vi.Item,(0,o.A)((0,o.A)((0,o.A)({component:"li"},a),{},{id:e.id,style:(0,o.A)((0,o.A)({},a.style||{}),K.value),class:[M.value,(f={},(0,i.A)(f,"".concat(a.class),!!a.class),(0,i.A)(f,"".concat(g.value,"-item-only-child"),1===(b?p+1:p)),f)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":c,"aria-disabled":e.disabled},y),{},{onMouseenter:R,onMouseleave:j,onClick:I,onKeydown:D,onFocus:W,title:"string"===typeof d?d:void 0}),{default:function(){return[Bn(b,{class:"".concat(g.value,"-item-icon")},!1),U(b,h)]}})]}})}}}),xf={adjustX:1,adjustY:1},Cf={topLeft:{points:["bl","tl"],overflow:xf,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xf,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:xf,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:xf,offset:[4,0]}},Sf={topLeft:{points:["bl","tl"],overflow:xf,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:xf,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:xf,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:xf,offset:[4,0]}},_f={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},kf=(0,s.pM)({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,t){var n=t.slots,r=t.emit,a=(0,s.KR)(!1),u=Fc(),c=u.getPopupContainer,f=u.rtl,d=u.subMenuOpenDelay,h=u.subMenuCloseDelay,p=u.builtinPlacements,v=u.triggerSubMenuAction,g=u.isRootMenu,m=u.forceSubMenuRender,y=u.motion,b=u.defaultMotions,w=Nc(),A=(0,s.EW)((function(){return f.value?(0,o.A)((0,o.A)({},Sf),p.value):(0,o.A)((0,o.A)({},Cf),p.value)})),x=(0,s.EW)((function(){return _f[e.mode]})),C=(0,s.KR)();(0,s.wB)((function(){return e.visible}),(function(e){G.cancel(C.value),C.value=G((function(){a.value=e}))}),{immediate:!0}),(0,s.xo)((function(){G.cancel(C.value)}));var S=function(e){r("visibleChange",e)},_=(0,s.EW)((function(){var t,n,r=y.value||(null===(t=b.value)||void 0===t?void 0:t[e.mode])||(null===(n=b.value)||void 0===n?void 0:n.other),o="function"===typeof r?r():r;return o?(0,so.ce)(o.name,{css:!0}):void 0}));return function(){var t=e.prefixCls,r=e.popupClassName,o=e.mode,u=e.popupOffset,p=e.disabled;return(0,s.bF)(Eo,{prefixCls:t,popupClassName:(0,l.A)("".concat(t,"-popup"),(0,i.A)({},"".concat(t,"-rtl"),f.value),r),stretch:"horizontal"===o?"minWidth":null,getPopupContainer:g.value?c.value:function(e){return e.parentNode},builtinPlacements:A.value,popupPlacement:x.value,popupVisible:a.value,popupAlign:u&&{offset:u},action:p?[]:[v.value],mouseEnterDelay:d.value,mouseLeaveDelay:h.value,onPopupVisibleChange:S,forceRender:w||m.value,popupAnimation:_.value},{popup:n.popup,default:n.default})}}}),Ef=function(e,t){var n,r=t.slots,i=t.attrs,a=Fc(),u=a.prefixCls,c=a.mode;return(0,s.bF)("ul",(0,o.A)((0,o.A)({},i),{},{class:(0,l.A)(u.value,"".concat(u.value,"-sub"),"".concat(u.value,"-").concat("inline"===c.value?"inline":"vertical")),"data-menu-list":!0}),[null===(n=r.default)||void 0===n?void 0:n.call(r)])};Ef.displayName="SubMenuList";var Of=Ef,Ff=(0,s.pM)({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,t){var n=t.slots,r=(0,s.EW)((function(){return"inline"})),i=Fc(),a=i.motion,l=i.mode,u=i.defaultMotions,c=(0,s.EW)((function(){return l.value===r.value})),f=(0,s.KR)(!c.value),d=(0,s.EW)((function(){return!!c.value&&e.open}));(0,s.wB)(l,(function(){c.value&&(f.value=!1)}),{flush:"post"});var h=(0,s.EW)((function(){var t,n,i=a.value||(null===(t=u.value)||void 0===t?void 0:t[r.value])||(null===(n=u.value)||void 0===n?void 0:n.other),s="function"===typeof i?i():i;return(0,o.A)((0,o.A)({},s),{},{appear:e.keyPath.length<=1})}));return function(){var t;return f.value?null:(0,s.bF)(Rc,{mode:r.value},{default:function(){return[(0,s.bF)(so.Ay,h.value,{default:function(){return[(0,s.bo)((0,s.bF)(Of,{id:e.id},{default:function(){return[null===(t=n.default)||void 0===t?void 0:t.call(n)]}}),[[s.aG,d.value]])]}})]}})}}}),Tf=n(63751),Pf=0,Nf=function(){return{icon:Fe.A.any,title:Fe.A.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}},Mf=(0,s.pM)({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Nf(),slots:["icon","title","expandIcon"],setup:function(e,t){var n,r,a=t.slots,u=t.attrs,c=t.emit;Lc(!1);var f=gf(),d=(0,s.nI)(),h="symbol"===(0,Ie.A)(d.vnode.key)?String(d.vnode.key):d.vnode.key;(0,Wu.A)("symbol"!==(0,Ie.A)(d.vnode.key),"SubMenu",'SubMenu `:key="'.concat(String(h),'"` not support Symbol type'));var p=(0,Tf.A)(h)?h:"sub_menu_".concat(++Pf,"_$$_not_set_key"),v=null!==(n=e.eventKey)&&void 0!==n?n:(0,Tf.A)(h)?"sub_menu_".concat(++Pf,"_$$_").concat(h):p,g=df(),m=g.parentEventKeys,y=g.parentInfo,b=g.parentKeys,w=(0,s.EW)((function(){return[].concat((0,z.A)(b.value),[p])})),A=(0,s.KR)([]),x={eventKey:v,key:p,parentEventKeys:m,childrenEventKeys:A,parentKeys:b};null===(r=y.childrenEventKeys)||void 0===r||r.value.push(v),(0,s.xo)((function(){var e;y.childrenEventKeys&&(y.childrenEventKeys.value=null===(e=y.childrenEventKeys)||void 0===e?void 0:e.value.filter((function(e){return e!=v})))})),mf(v,p,x);var C=Fc(),S=C.prefixCls,_=C.activeKeys,k=C.disabled,E=C.changeActiveKeys,O=C.mode,F=C.inlineCollapsed,T=C.antdMenuTheme,P=C.openKeys,N=C.overflowDisabled,M=C.onOpenChange,L=C.registerMenuInfo,I=C.unRegisterMenuInfo,R=C.selectedSubMenuKeys,j=C.expandIcon,D=void 0!==h&&null!==h,W=!f&&(Nc()||!D);Pc(W),(f&&D||!f&&!D||W)&&(L(v,x),(0,s.xo)((function(){I(v)})));var U=(0,s.EW)((function(){return"".concat(S.value,"-submenu")})),K=(0,s.EW)((function(){return k.value||e.disabled})),V=(0,s.KR)(),H=(0,s.KR)(),q=(0,s.EW)((function(){return P.value.includes(p)})),G=(0,s.EW)((function(){return!N.value&&q.value})),Y=(0,s.EW)((function(){return R.value.includes(p)})),$=(0,s.KR)(!1);(0,s.wB)(_,(function(){$.value=!!_.value.find((function(e){return e===p}))}),{immediate:!0});var X=function(e){K.value||(c("titleClick",e,p),"inline"===O.value&&M(p,!q.value))},J=function(e){K.value||(E(w.value),c("mouseenter",e))},Q=function(e){K.value||(E([]),c("mouseleave",e))},Z=yf((0,s.EW)((function(){return w.value.length}))),ee=function(e){"inline"!==O.value&&M(p,e)},te=function(){E(w.value)},ne=v&&"".concat(v,"-popup"),re=(0,s.EW)((function(){return(0,l.A)(S.value,"".concat(S.value,"-").concat(T.value),e.popupClassName)})),oe=function(e,t){if(!t)return F.value&&!b.value.length&&e&&"string"===typeof e?(0,s.bF)("div",{class:"".concat(S.value,"-inline-collapsed-noicon")},[e.charAt(0)]):(0,s.bF)("span",{class:"".concat(S.value,"-title-content")},[e]);var n=(0,B.zO)(e)&&"span"===e.type;return(0,s.bF)(s.FK,null,[Bn(t,{class:"".concat(S.value,"-item-icon")},!1),n?e:(0,s.bF)("span",{class:"".concat(S.value,"-title-content")},[e])])},ie=(0,s.EW)((function(){return"inline"!==O.value&&w.value.length>1?"vertical":O.value})),ae=(0,s.EW)((function(){return"horizontal"===O.value?"vertical":O.value})),se=(0,s.EW)((function(){return"horizontal"===ie.value?"vertical":ie.value})),le=function(){var t=U.value,n=(0,B.rU)(a,e,"icon"),r=e.expandIcon||a.expandIcon||j.value,i=oe((0,B.rU)(a,e,"title"),n);return(0,s.bF)("div",{style:Z.value,class:"".concat(t,"-title"),tabindex:K.value?null:-1,ref:V,title:"string"===typeof i?i:null,"data-menu-id":p,"aria-expanded":G.value,"aria-haspopup":!0,"aria-controls":ne,"aria-disabled":K.value,onClick:X,onFocus:te},[i,"horizontal"!==O.value&&r?r((0,o.A)((0,o.A)({},e),{},{isOpen:G.value})):(0,s.bF)("i",{class:"".concat(t,"-arrow")},null)])};return function(){var t,n;if(f)return D?null===(n=a.default)||void 0===n?void 0:n.call(a):null;var r=U.value,c=function(){return null};return c=N.value||"inline"===O.value?function(){return(0,s.bF)(kf,null,{default:le})}:function(){return(0,s.bF)(kf,{mode:ie.value,prefixCls:r,visible:!e.internalPopupClose&&G.value,popupClassName:re.value,popupOffset:e.popupOffset,disabled:K.value,onVisibleChange:ee},{default:function(){return[le()]},popup:function(){return(0,s.bF)(Rc,{mode:se.value,isRootMenu:!1},{default:function(){return[(0,s.bF)(Of,{id:ne,ref:H},{default:a.default})]}})}})},(0,s.bF)(Rc,{mode:ae.value},{default:function(){return[(0,s.bF)(vi.Item,(0,o.A)((0,o.A)({component:"li"},u),{},{role:"none",class:(0,l.A)(r,"".concat(r,"-").concat(O.value),u.class,(t={},(0,i.A)(t,"".concat(r,"-open"),G.value),(0,i.A)(t,"".concat(r,"-active"),$.value),(0,i.A)(t,"".concat(r,"-selected"),Y.value),(0,i.A)(t,"".concat(r,"-disabled"),K.value),t)),onMouseenter:J,onMouseleave:Q,"data-submenu-id":p}),{default:function(){return(0,s.bF)(s.FK,null,[c(),!N.value&&(0,s.bF)(Ff,{id:ne,open:G.value,keyPath:w.value},{default:a.default})])}})]}})}}});function Lf(e,t){if(e.classList)return e.classList.contains(t);var n=e.className;return" ".concat(n," ").indexOf(" ".concat(t," "))>-1}function If(e,t){e.classList?e.classList.add(t):Lf(e,t)||(e.className="".concat(e.className," ").concat(t))}function Rf(e,t){if(e.classList)e.classList.remove(t);else if(Lf(e,t)){var n=e.className;e.className=" ".concat(n," ").replace(" ".concat(t," ")," ")}}var jf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{name:e,appear:t,css:!0,onBeforeEnter:function(t){t.style.height="0px",t.style.opacity="0",If(t,e)},onEnter:function(e){(0,s.dY)((function(){e.style.height="".concat(e.scrollHeight,"px"),e.style.opacity="1"}))},onAfterEnter:function(t){t&&(Rf(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:function(t){If(t,e),t.style.height="".concat(t.offsetHeight,"px"),t.style.opacity=null},onLeave:function(e){setTimeout((function(){e.style.height="0px",e.style.opacity="0"}))},onAfterLeave:function(t){t&&(Rf(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}},Df=jf,Bf=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}},Wf=[],zf=(0,s.pM)({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Bf(),slots:["expandIcon","overflowedIndicator"],setup:function(e,t){var n=t.slots,r=t.emit,a=t.attrs,l=(0,se.A)("menu",e),u=l.prefixCls,c=l.direction,f=l.getPrefixCls,d=(0,s.KR)({}),h=(0,s.WQ)(lf,(0,s.KR)(void 0)),p=(0,s.EW)((function(){return void 0!==h.value?h.value:e.inlineCollapsed})),v=(0,s.KR)(!1);(0,s.sV)((function(){v.value=!0})),(0,s.nT)((function(){(0,Wu.A)(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),(0,Wu.A)(!(void 0!==h.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")}));var g=(0,s.KR)([]),m=(0,s.KR)([]),y=(0,s.KR)({});(0,s.wB)(d,(function(){for(var e={},t=0,n=Object.values(d.value);t<n.length;t++){var r=n[t];e[r.key]=r}y.value=e}),{flush:"post"}),(0,s.nT)((function(){if(void 0!==e.activeKey){var t=[],n=e.activeKey?y.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?sf([].concat((0,s.R1)(n.parentKeys),e.activeKey)):[],kc(g.value,t)||(g.value=t)}})),(0,s.wB)((function(){return e.selectedKeys}),(function(e){e&&(m.value=e.slice())}),{immediate:!0,deep:!0});var b=(0,s.KR)([]);(0,s.wB)([y,m],(function(){var e=[];m.value.forEach((function(t){var n=y.value[t];n&&(e=e.concat((0,s.R1)(n.parentKeys)))})),e=sf(e),kc(b.value,e)||(b.value=e)}),{immediate:!0});var w,A=function(t){if(e.selectable){var n,i=t.key,a=m.value.includes(i);n=e.multiple?a?m.value.filter((function(e){return e!==i})):[].concat((0,z.A)(m.value),[i]):[i];var s=(0,o.A)((0,o.A)({},t),{},{selectedKeys:n});kc(n,m.value)||(void 0===e.selectedKeys&&(m.value=n),r("update:selectedKeys",n),a&&e.multiple?r("deselect",s):r("select",s)),"inline"!==k.value&&!e.multiple&&x.value.length&&F(Wf)}},x=(0,s.KR)([]);(0,s.wB)((function(){return e.openKeys}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.value;kc(x.value,e)||(x.value=e.slice())}),{immediate:!0,deep:!0});var C=function(t){clearTimeout(w),w=setTimeout((function(){void 0===e.activeKey&&(g.value=t),r("update:activeKey",t[t.length-1])}))},S=(0,s.EW)((function(){return!!e.disabled})),_=(0,s.EW)((function(){return"rtl"===c.value})),k=(0,s.KR)("vertical"),E=(0,s.KR)(!1);(0,s.nT)((function(){"inline"!==e.mode&&"vertical"!==e.mode||!p.value?(k.value=e.mode,E.value=!1):(k.value="vertical",E.value=p.value)}));var O=(0,s.EW)((function(){return"inline"===k.value})),F=function(e){x.value=e,r("update:openKeys",e),r("openChange",e)},T=(0,s.KR)(x.value),P=(0,s.KR)(!1);(0,s.wB)(x,(function(){O.value&&(T.value=x.value)}),{immediate:!0}),(0,s.wB)(O,(function(){P.value?O.value?x.value=T.value:F(Wf):P.value=!0}),{immediate:!0});var N=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(u.value),!0),(0,i.A)(t,"".concat(u.value,"-root"),!0),(0,i.A)(t,"".concat(u.value,"-").concat(k.value),!0),(0,i.A)(t,"".concat(u.value,"-inline-collapsed"),E.value),(0,i.A)(t,"".concat(u.value,"-rtl"),_.value),(0,i.A)(t,"".concat(u.value,"-").concat(e.theme),!0),t})),M=(0,s.EW)((function(){return f()})),L=(0,s.EW)((function(){return{horizontal:{name:"".concat(M.value,"-slide-up")},inline:Df,other:{name:"".concat(M.value,"-zoom-big")}}}));Lc(!0);var I=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=d.value;return t.forEach((function(t){var o=r[t],i=o.key,a=o.childrenEventKeys;n.push.apply(n,[i].concat((0,z.A)(e((0,s.R1)(a)))))})),n},R=function(e){r("click",e),A(e)},j=function(e,t){var n,r=(null===(n=y.value[e])||void 0===n?void 0:n.childrenEventKeys)||[],o=x.value.filter((function(t){return t!==e}));if(t)o.push(e);else if("inline"!==k.value){var i=I((0,s.R1)(r));o=sf(o.filter((function(e){return!i.includes(e)})))}kc(x,o)||F(o)},D=function(e,t){d.value=(0,o.A)((0,o.A)({},d.value),{},(0,i.A)({},e,t))},W=function(e){delete d.value[e],d.value=(0,o.A)({},d.value)},U=(0,s.KR)(0),K=(0,s.EW)((function(){return e.expandIcon||n.expandIcon?function(t){var r=e.expandIcon||n.expandIcon;return r="function"===typeof r?r(t):r,Bn(r,{class:"".concat(u.value,"-submenu-expand-icon")},!1)}:null}));return jc({store:d,prefixCls:u,activeKeys:g,openKeys:x,selectedKeys:m,changeActiveKeys:C,disabled:S,rtl:_,mode:k,inlineIndent:(0,s.EW)((function(){return e.inlineIndent})),subMenuCloseDelay:(0,s.EW)((function(){return e.subMenuCloseDelay})),subMenuOpenDelay:(0,s.EW)((function(){return e.subMenuOpenDelay})),builtinPlacements:(0,s.EW)((function(){return e.builtinPlacements})),triggerSubMenuAction:(0,s.EW)((function(){return e.triggerSubMenuAction})),getPopupContainer:(0,s.EW)((function(){return e.getPopupContainer})),inlineCollapsed:E,antdMenuTheme:(0,s.EW)((function(){return e.theme})),siderCollapsed:h,defaultMotions:(0,s.EW)((function(){return v.value?L.value:null})),motion:(0,s.EW)((function(){return v.value?e.motion:null})),overflowDisabled:(0,s.KR)(void 0),onOpenChange:j,onItemClick:R,registerMenuInfo:D,unRegisterMenuInfo:W,selectedSubMenuKeys:b,isRootMenu:(0,s.KR)(!0),expandIcon:K,forceSubMenuRender:(0,s.EW)((function(){return e.forceSubMenuRender}))}),function(){var t,r,i=(0,B.MI)(null===(t=n.default)||void 0===t?void 0:t.call(n)),l=U.value>=i.length-1||"horizontal"!==k.value||e.disabledOverflow,c="horizontal"!==k.value||e.disabledOverflow?i:i.map((function(e,t){return(0,s.bF)(Rc,{key:e.key,overflowDisabled:t>U.value},{default:function(){return e}})})),f=(null===(r=n.overflowedIndicator)||void 0===r?void 0:r.call(n))||(0,s.bF)(cc,null,null);return(0,s.bF)(vi,(0,o.A)((0,o.A)({},a),{},{onMousedown:e.onMousedown,prefixCls:"".concat(u.value,"-overflow"),component:"ul",itemComponent:Af,class:[N.value,a.class],role:"menu",id:e.id,data:c,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?i.slice(-t):null;return(0,s.bF)(s.FK,null,[(0,s.bF)(Mf,{eventKey:cf,key:cf,title:f,disabled:l,internalPopupClose:0===t},{default:function(){return n}}),(0,s.bF)(vf,null,{default:function(){return[(0,s.bF)(Mf,{eventKey:cf,key:cf,title:f,disabled:l,internalPopupClose:0===t},{default:function(){return n}})]}})])},maxCount:"horizontal"!==k.value||e.disabledOverflow?vi.INVALIDATE:vi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){U.value=e}}),{default:function(){return[(0,s.bF)(s.Im,{to:"body"},{default:function(){return[(0,s.bF)("div",{style:{display:"none"},"aria-hidden":!0},[(0,s.bF)(vf,null,{default:function(){return[c]}})])]}})]}})}}}),Uf=function(){return{title:Fe.A.any}},Kf=(0,s.pM)({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:Uf(),slots:["title"],setup:function(e,t){var n=t.slots,r=t.attrs,i=Fc(),a=i.prefixCls,l=(0,s.EW)((function(){return"".concat(a.value,"-item-group")})),u=gf();return function(){var t,i;return u?null===(t=n.default)||void 0===t?void 0:t.call(n):(0,s.bF)("li",(0,o.A)((0,o.A)({},r),{},{onClick:function(e){return e.stopPropagation()},class:l.value}),[(0,s.bF)("div",{title:"string"===typeof e.title?e.title:void 0,class:"".concat(l.value,"-title")},[(0,B.rU)(n,e,"title")]),(0,s.bF)("ul",{class:"".concat(l.value,"-list")},[null===(i=n.default)||void 0===i?void 0:i.call(n)])])}}}),Vf=function(){return{prefixCls:String,dashed:Boolean}},Hf=(0,s.pM)({compatConfig:{MODE:3},name:"AMenuDivider",props:Vf(),setup:function(e){var t=(0,se.A)("menu",e),n=t.prefixCls,r=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(n.value,"-item-divider"),!0),(0,i.A)(t,"".concat(n.value,"-item-divider-dashed"),!!e.dashed),t}));return function(){return(0,s.bF)("li",{class:r.value},null)}}});zf.install=function(e){return e.component(zf.name,zf),e.component(Af.name,Af),e.component(Mf.name,Mf),e.component(Hf.name,Hf),e.component(Kf.name,Kf),e},zf.Item=Af,zf.Divider=Hf,zf.SubMenu=Mf,zf.ItemGroup=Kf;var qf=zf,Gf=function(){return{prefixCls:String,routes:{type:Array},params:Fe.A.any,separator:Fe.A.any,itemRender:{type:Function}}};function Yf(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|"),r=e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}));return r}function $f(e){var t=e.route,n=e.params,r=e.routes,o=e.paths,i=r.indexOf(t)===r.length-1,a=Yf(t,n);return i?(0,s.bF)("span",null,[a]):(0,s.bF)("a",{href:"#/".concat(o.join("/"))},[a])}var Xf=(0,s.pM)({compatConfig:{MODE:3},name:"ABreadcrumb",props:Gf(),slots:["separator","itemRender"],setup:function(e,t){var n=t.slots,r=(0,se.A)("breadcrumb",e),o=r.prefixCls,a=r.direction,l=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},u=function(e,t,n){var r=(0,z.A)(e),o=l(t||"",n);return o&&r.push(o),r},c=function(e){var t=e.routes,n=void 0===t?[]:t,r=e.params,o=void 0===r?{}:r,i=e.separator,a=e.itemRender,c=void 0===a?$f:a,f=[];return n.map((function(e){var t=l(e.path,o);t&&f.push(t);var r=[].concat(f),a=null;return e.children&&e.children.length&&(a=(0,s.bF)(qf,null,{default:function(){return[e.children.map((function(e){return(0,s.bF)(qf.Item,{key:e.path||e.breadcrumbName},{default:function(){return[c({route:e,params:o,routes:n,paths:u(r,e.path,o)})]}})}))]}})),(0,s.bF)(Sc,{overlay:a,separator:i,key:t||e.breadcrumbName},{default:function(){return[c({route:e,params:o,routes:n,paths:r})]}})}))};return function(){var t,r,l,u=e.routes,f=e.params,d=void 0===f?{}:f,h=(0,B.MI)((0,B.rU)(n,e)),p=null!==(t=(0,B.rU)(n,e,"separator"))&&void 0!==t?t:"/",v=e.itemRender||n.itemRender||$f;u&&u.length>0?l=c({routes:u,params:d,separator:p,itemRender:v}):h.length&&(l=h.map((function(e,t){return(0,Dn.A)("object"===(0,Ie.A)(e.type)&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),(0,s.E3)(e,{separator:p,key:t})})));var g=(r={},(0,i.A)(r,o.value,!0),(0,i.A)(r,"".concat(o.value,"-rtl"),"rtl"===a.value),r);return(0,s.bF)("div",{class:g},[l])}}}),Jf=["separator","class"],Qf=function(){return{prefixCls:String}},Zf=(0,s.pM)({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:Qf(),setup:function(e,t){var n=t.slots,r=t.attrs,i=(0,se.A)("breadcrumb",e),a=i.prefixCls;return function(){r.separator;var e,t=r.class,i=(0,je.A)(r,Jf),l=(0,B.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n));return(0,s.bF)("span",(0,o.A)({class:["".concat(a.value,"-separator"),t]},i),[l.length>0?l:"/"])}}});Xf.Item=Sc,Xf.Separator=Zf,Xf.install=function(e){return e.component(Xf.name,Xf),e.component(Sc.name,Sc),e.component(Zf.name,Zf),e};var ed=Xf;function td(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,We.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}}}var nd=n(74353),rd=n.n(nd),od=n(46986),id=n.n(od),ad=n(21840),sd=n.n(ad),ld=n(8134),ud=n.n(ld),cd=n(28623),fd=n.n(cd),dd=n(41816),hd=n.n(dd),pd=n(97375),vd=n.n(pd),gd=n(90445),md=n.n(gd);rd().extend(md()),rd().extend(vd()),rd().extend(id()),rd().extend(sd()),rd().extend(ud()),rd().extend(fd()),rd().extend(hd()),rd().extend((function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}}));var yd={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},bd=function(e){var t=yd[e];return t||e.split("_")[0]},wd=function(){(0,Ke.g9)(!1,"Not match any format. Please help to fire a issue about this.")},Ad=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function xd(e,t,n){for(var r=(0,z.A)(new Set(e.split(n))),o=0,i=0;i<r.length;i++){var a=r[i];if(o+=a.length,o>t)return a;o+=n.length}}var Cd=function(e,t){if(!e)return null;if(rd().isDayjs(e))return e;var n=t.matchAll(Ad),r=rd()(e,t);if(null===n)return r;var o,i=td(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=a[0],l=a["index"];if("Q"===s){var u=e.slice(l-1,l),c=xd(e,l,u).match(/\d+/)[0];r=r.quarter(parseInt(c))}if("wo"===s.toLowerCase()){var f=e.slice(l-1,l),d=xd(e,l,f).match(/\d+/)[0];r=r.week(parseInt(d))}"ww"===s.toLowerCase()&&(r=r.week(parseInt(e.slice(l,l+s.length)))),"w"===s.toLowerCase()&&(r=r.week(parseInt(e.slice(l,l+s.length+1))))}}catch(h){i.e(h)}finally{i.f()}return r},Sd={getNow:function(){return rd()()},getFixedDate:function(e){return rd()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return rd()().locale(bd(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(bd(e)).weekday(0)},getWeek:function(e,t){return t.locale(bd(e)).week()},getShortWeekDays:function(e){return rd()().locale(bd(e)).localeData().weekdaysMin()},getShortMonths:function(e){return rd()().locale(bd(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(bd(e)).format(n)},parse:function(e,t,n){for(var r=bd(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var s=a.split("-")[0],l=a.split("-")[1],u=rd()(s,"YYYY").startOf("year").locale(r),c=0;c<=52;c+=1){var f=u.add(c,"week");if(f.format("Wo")===l)return f}return wd(),null}var d=rd()(a,i,!0).locale(r);if(d.isValid())return d}return t||wd(),null}},toDate:function(e,t){return Array.isArray(e)?e.map((function(e){return Cd(e,t)})):Cd(e,t)},toString:function(e,t){return Array.isArray(e)?e.map((function(e){return rd().isDayjs(e)?e.format(t):e})):rd().isDayjs(e)?e.format(t):e}},_d=Sd,kd=9007199254740991,Ed=Math.floor;function Od(e,t){var n="";if(!e||t<1||t>kd)return n;do{t%2&&(n+=e),t=Ed(t/2),t&&(e+=e)}while(t);return n}var Fd=Od;function Td(e,t){var n=-1,r=null==e?0:e.length,o=Array(r);while(++n<r)o[n]=t(e[n],n,e);return o}var Pd=Td,Nd=n(61882),Md=1/0,Ld=cr.A?cr.A.prototype:void 0,Id=Ld?Ld.toString:void 0;function Rd(e){if("string"==typeof e)return e;if((0,zr.A)(e))return Pd(e,Rd)+"";if((0,Nd.A)(e))return Id?Id.call(e):"";var t=e+"";return"0"==t&&1/e==-Md?"-0":t}var jd=Rd;function Dd(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;var i=Array(o);while(++r<o)i[r]=e[r+t];return i}var Bd=Dd;function Wd(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Bd(e,t,n)}var zd=Wd,Ud="\\ud800-\\udfff",Kd="\\u0300-\\u036f",Vd="\\ufe20-\\ufe2f",Hd="\\u20d0-\\u20ff",qd=Kd+Vd+Hd,Gd="\\ufe0e\\ufe0f",Yd="\\u200d",$d=RegExp("["+Yd+Ud+qd+Gd+"]");function Xd(e){return $d.test(e)}var Jd=Xd;function Qd(e){return function(t){return null==t?void 0:t[e]}}var Zd=Qd,eh=Zd("length"),th=eh,nh="\\ud800-\\udfff",rh="\\u0300-\\u036f",oh="\\ufe20-\\ufe2f",ih="\\u20d0-\\u20ff",ah=rh+oh+ih,sh="\\ufe0e\\ufe0f",lh="["+nh+"]",uh="["+ah+"]",ch="\\ud83c[\\udffb-\\udfff]",fh="(?:"+uh+"|"+ch+")",dh="[^"+nh+"]",hh="(?:\\ud83c[\\udde6-\\uddff]){2}",ph="[\\ud800-\\udbff][\\udc00-\\udfff]",vh="\\u200d",gh=fh+"?",mh="["+sh+"]?",yh="(?:"+vh+"(?:"+[dh,hh,ph].join("|")+")"+mh+gh+")*",bh=mh+gh+yh,wh="(?:"+[dh+uh+"?",uh,hh,ph,lh].join("|")+")",Ah=RegExp(ch+"(?="+ch+")|"+wh+bh,"g");function xh(e){var t=Ah.lastIndex=0;while(Ah.test(e))++t;return t}var Ch=xh;function Sh(e){return Jd(e)?Ch(e):th(e)}var _h=Sh;function kh(e){return e.split("")}var Eh=kh,Oh="\\ud800-\\udfff",Fh="\\u0300-\\u036f",Th="\\ufe20-\\ufe2f",Ph="\\u20d0-\\u20ff",Nh=Fh+Th+Ph,Mh="\\ufe0e\\ufe0f",Lh="["+Oh+"]",Ih="["+Nh+"]",Rh="\\ud83c[\\udffb-\\udfff]",jh="(?:"+Ih+"|"+Rh+")",Dh="[^"+Oh+"]",Bh="(?:\\ud83c[\\udde6-\\uddff]){2}",Wh="[\\ud800-\\udbff][\\udc00-\\udfff]",zh="\\u200d",Uh=jh+"?",Kh="["+Mh+"]?",Vh="(?:"+zh+"(?:"+[Dh,Bh,Wh].join("|")+")"+Kh+Uh+")*",Hh=Kh+Uh+Vh,qh="(?:"+[Dh+Ih+"?",Ih,Bh,Wh,Lh].join("|")+")",Gh=RegExp(Rh+"(?="+Rh+")|"+qh+Hh,"g");function Yh(e){return e.match(Gh)||[]}var $h=Yh;function Xh(e){return Jd(e)?$h(e):Eh(e)}var Jh=Xh,Qh=Math.ceil;function Zh(e,t){t=void 0===t?" ":jd(t);var n=t.length;if(n<2)return n?Fd(t,e):t;var r=Fd(t,Qh(e/_h(t)));return Jd(t)?zd(Jh(r),0,e).join(""):r.slice(0,e)}var ep=Zh,tp=n(71733),np=1/0,rp=17976931348623157e292;function op(e){if(!e)return 0===e?e:0;if(e=(0,tp.A)(e),e===np||e===-np){var t=e<0?-1:1;return t*rp}return e===e?e:0}var ip=op;function ap(e){var t=ip(e),n=t%1;return t===t?n?t-n:t:0}var sp=ap;function lp(e){return null==e?"":jd(e)}var up=lp;function cp(e,t,n){e=up(e),t=sp(t);var r=t?_h(e):0;return t&&r<t?ep(t-r,n)+e:e}var fp=cp;function dp(e){var t=(0,s.OA)();return(0,o.A)((0,o.A)({},e),t)}var hp=Symbol("PanelContextProps"),pp=function(e){(0,s.Gt)(hp,e)},vp=function(){return(0,s.WQ)(hp,{})},gp={visibility:"hidden"};function mp(e,t){var n,r=t.slots,o=dp(e),i=o.prefixCls,a=o.prevIcon,l=void 0===a?"‹":a,u=o.nextIcon,c=void 0===u?"›":u,f=o.superPrevIcon,d=void 0===f?"«":f,h=o.superNextIcon,p=void 0===h?"»":h,v=o.onSuperPrev,g=o.onSuperNext,m=o.onPrev,y=o.onNext,b=vp(),w=b.hideNextBtn,A=b.hidePrevBtn;return(0,s.bF)("div",{class:i},[v&&(0,s.bF)("button",{type:"button",onClick:v,tabindex:-1,class:"".concat(i,"-super-prev-btn"),style:A.value?gp:{}},[d]),m&&(0,s.bF)("button",{type:"button",onClick:m,tabindex:-1,class:"".concat(i,"-prev-btn"),style:A.value?gp:{}},[l]),(0,s.bF)("div",{class:"".concat(i,"-view")},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),y&&(0,s.bF)("button",{type:"button",onClick:y,tabindex:-1,class:"".concat(i,"-next-btn"),style:w.value?gp:{}},[c]),g&&(0,s.bF)("button",{type:"button",onClick:g,tabindex:-1,class:"".concat(i,"-super-next-btn"),style:w.value?gp:{}},[p])])}mp.displayName="Header",mp.inheritAttrs=!1;var yp=mp;function bp(e){var t=dp(e),n=t.prefixCls,r=t.generateConfig,i=t.viewDate,a=t.onPrevDecades,l=t.onNextDecades,u=vp(),c=u.hideHeader;if(c)return null;var f="".concat(n,"-header"),d=r.getYear(i),h=Math.floor(d/Yp)*Yp,p=h+Yp-1;return(0,s.bF)(yp,(0,o.A)((0,o.A)({},t),{},{prefixCls:f,onSuperPrev:a,onSuperNext:l}),{default:function(){return[h,(0,s.eW)("-"),p]}})}bp.displayName="DecadeHeader",bp.inheritAttrs=!1;var wp=bp;function Ap(e,t,n,r,o){var i=e.setHour(t,n);return i=e.setMinute(i,r),i=e.setSecond(i,o),i}function xp(e,t,n){if(!n)return t;var r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function Cp(e,t,n,r,o,i){var a=Math.floor(e/r)*r;if(a<e)return[a,60-o,60-i];var s=Math.floor(t/o)*o;if(s<t)return[a,s,60-i];var l=Math.floor(n/i)*i;return[a,s,l]}function Sp(e,t){var n=e.getYear(t),r=e.getMonth(t)+1,o=e.getEndDate(e.getFixedDate("".concat(n,"-").concat(r,"-01"))),i=e.getDate(o),a=r<10?"0".concat(r):"".concat(r);return"".concat(n,"-").concat(a,"-").concat(i)}function _p(e){for(var t=dp(e),n=t.prefixCls,r=t.disabledDate,a=t.onSelect,u=t.picker,c=t.rowNum,f=t.colNum,d=t.prefixColumn,h=t.rowClassName,p=t.baseDate,v=t.getCellClassName,g=t.getCellText,m=t.getCellNode,y=t.getCellDate,b=t.generateConfig,w=t.titleCell,A=t.headerCells,x=vp(),C=x.onDateMouseenter,S=x.onDateMouseleave,_=x.mode,k="".concat(n,"-cell"),E=[],O=0;O<c;O+=1){for(var F=[],T=void 0,P=function(){var e,t=O*f+N,n=y(p,t),c=hv({cellDate:n,mode:_.value,disabledDate:r,generateConfig:b});0===N&&(T=n,d&&F.push(d(T)));var h=w&&w(n);F.push((0,s.bF)("td",{key:N,title:h,class:(0,l.A)(k,(0,o.A)((e={},(0,i.A)(e,"".concat(k,"-disabled"),c),(0,i.A)(e,"".concat(k,"-start"),1===g(n)||"year"===u&&Number(h)%10===0),(0,i.A)(e,"".concat(k,"-end"),h===Sp(b,n)||"year"===u&&Number(h)%10===9),e),v(n))),onClick:function(){c||a(n)},onMouseenter:function(){!c&&C&&C(n)},onMouseleave:function(){!c&&S&&S(n)}},[m?m(n):(0,s.bF)("div",{class:"".concat(k,"-inner")},[g(n)])]))},N=0;N<f;N+=1)P();E.push((0,s.bF)("tr",{key:O,class:h&&h(T)},[F]))}return(0,s.bF)("div",{class:"".concat(n,"-body")},[(0,s.bF)("table",{class:"".concat(n,"-content")},[A&&(0,s.bF)("thead",null,[(0,s.bF)("tr",null,[A])]),(0,s.bF)("tbody",null,[E])])])}_p.displayName="PanelBody",_p.inheritAttrs=!1;var kp=_p,Ep=3,Op=4;function Fp(e){var t=dp(e),n=Gp-1,r=t.prefixCls,a=t.viewDate,l=t.generateConfig,u="".concat(r,"-cell"),c=l.getYear(a),f=Math.floor(c/Gp)*Gp,d=Math.floor(c/Yp)*Yp,h=d+Yp-1,p=l.setYear(a,d-Math.ceil((Ep*Op*Gp-Yp)/2)),v=function(e){var t,r=l.getYear(e),o=r+n;return t={},(0,i.A)(t,"".concat(u,"-in-view"),d<=r&&o<=h),(0,i.A)(t,"".concat(u,"-selected"),r===f),t};return(0,s.bF)(kp,(0,o.A)((0,o.A)({},t),{},{rowNum:Op,colNum:Ep,baseDate:p,getCellText:function(e){var t=l.getYear(e);return"".concat(t,"-").concat(t+n)},getCellClassName:v,getCellDate:function(e,t){return l.addYear(e,t*Gp)}}),null)}Fp.displayName="DecadeBody",Fp.inheritAttrs=!1;var Tp=Fp,Pp=new Map;function Np(e,t){var n;function r(){Un(e)?t():n=G((function(){r()}))}return r(),function(){G.cancel(n)}}function Mp(e,t,n){if(Pp.get(e)&&G.cancel(Pp.get(e)),n<=0)Pp.set(e,G((function(){e.scrollTop=t})));else{var r=t-e.scrollTop,o=r/n*10;Pp.set(e,G((function(){e.scrollTop+=o,e.scrollTop!==t&&Mp(e,t,n-10)})))}}function Lp(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,o=t.onUpDown,i=t.onPageUpDown,a=t.onEnter,s=e.which,l=e.ctrlKey,u=e.metaKey;switch(s){case Mo.LEFT:if(l||u){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case Mo.RIGHT:if(l||u){if(r)return r(1),!0}else if(n)return n(1),!0;break;case Mo.UP:if(o)return o(-1),!0;break;case Mo.DOWN:if(o)return o(1),!0;break;case Mo.PAGE_UP:if(i)return i(-1),!0;break;case Mo.PAGE_DOWN:if(i)return i(1),!0;break;case Mo.ENTER:if(a)return a(),!0;break}return!1}function Ip(e,t,n,r){var o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function Rp(e,t,n){var r="time"===e?8:10,o="function"===typeof t?t(n.getNow()).length:t.length;return Math.max(r,o)+2}var jp=null,Dp=new Set;function Bp(e){return!jp&&"undefined"!==typeof window&&window.addEventListener&&(jp=function(e){(0,z.A)(Dp).forEach((function(t){t(e)}))},window.addEventListener("mousedown",jp)),Dp.add(e),function(){Dp.delete(e),0===Dp.size&&(window.removeEventListener("mousedown",jp),jp=null)}}function Wp(e){var t,n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}var zp=function(e){return"month"===e||"date"===e?"year":e},Up=function(e){return"date"===e?"month":e},Kp=function(e){return"month"===e||"date"===e?"quarter":e},Vp=function(e){return"date"===e?"week":e},Hp={year:zp,month:Up,quarter:Kp,week:Vp,time:null,date:null};function qp(e,t){return e.some((function(e){return e&&e.contains(t)}))}var Gp=10,Yp=10*Gp;function $p(e){var t=dp(e),n=t.prefixCls,r=t.onViewDateChange,i=t.generateConfig,a=t.viewDate,l=t.operationRef,u=t.onSelect,c=t.onPanelChange,f="".concat(n,"-decade-panel");l.value={onKeydown:function(e){return Lp(e,{onLeftRight:function(e){u(i.addYear(a,e*Gp),"key")},onCtrlLeftRight:function(e){u(i.addYear(a,e*Yp),"key")},onUpDown:function(e){u(i.addYear(a,e*Gp*Ep),"key")},onEnter:function(){c("year",a)}})}};var d=function(e){var t=i.addYear(a,e*Yp);r(t),c(null,t)},h=function(e){u(e,"mouse"),c("year",e)};return(0,s.bF)("div",{class:f},[(0,s.bF)(wp,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onPrevDecades:function(){d(-1)},onNextDecades:function(){d(1)}}),null),(0,s.bF)(Tp,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onSelect:h}),null)])}$p.displayName="DecadePanel",$p.inheritAttrs=!1;var Xp=$p,Jp=7;function Qp(e,t){return!e&&!t||!(!e||!t)&&void 0}function Zp(e,t,n){var r=Qp(t,n);if("boolean"===typeof r)return r;var o=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return o===i}function ev(e,t,n){var r=Qp(t,n);return"boolean"===typeof r?r:e.getYear(t)===e.getYear(n)}function tv(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function nv(e,t,n){var r=Qp(t,n);return"boolean"===typeof r?r:ev(e,t,n)&&tv(e,t)===tv(e,n)}function rv(e,t,n){var r=Qp(t,n);return"boolean"===typeof r?r:ev(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function ov(e,t,n){var r=Qp(t,n);return"boolean"===typeof r?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function iv(e,t,n){var r=Qp(t,n);return"boolean"===typeof r?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function av(e,t,n,r){var o=Qp(n,r);return"boolean"===typeof o?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function sv(e,t,n){return ov(e,t,n)&&iv(e,t,n)}function lv(e,t,n,r){return!!(t&&n&&r)&&(!ov(e,t,r)&&!ov(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r))}function uv(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function cv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function fv(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return"function"===typeof o?o(e):n.locale.format(r.locale,e,o)}function dv(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return e&&"function"!==typeof o[0]?n.locale.parse(r.locale,e,o):null}function hv(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var i=function(e,n,i){var a=n;while(a<=i){var s=void 0;switch(e){case"date":if(s=o.setDate(t,a),!r(s))return!1;break;case"month":if(s=o.setMonth(t,a),!hv({cellDate:s,mode:"month",generateConfig:o,disabledDate:r}))return!1;break;case"year":if(s=o.setYear(t,a),!hv({cellDate:s,mode:"year",generateConfig:o,disabledDate:r}))return!1;break}a+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":var a=1,s=o.getDate(o.getEndDate(t));return i("date",a,s);case"quarter":var l=3*Math.floor(o.getMonth(t)/3),u=l+2;return i("month",l,u);case"year":return i("month",0,11);case"decade":var c=o.getYear(t),f=Math.floor(c/Gp)*Gp,d=f+Gp-1;return i("year",f,d)}}function pv(e){var t=dp(e),n=vp(),r=n.hideHeader;if(r.value)return null;var o=t.prefixCls,i=t.generateConfig,a=t.locale,l=t.value,u=t.format,c="".concat(o,"-header");return(0,s.bF)(yp,{prefixCls:c},{default:function(){return[l?fv(l,{locale:a,format:u,generateConfig:i}):" "]}})}pv.displayName="TimeHeader",pv.inheritAttrs=!1;var vv=pv,gv=(0,s.pM)({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup:function(e){var t=vp(),n=t.open,r=(0,s.KR)(null),o=(0,s.KR)(new Map),a=(0,s.KR)();return(0,s.wB)((function(){return e.value}),(function(){var t=o.value.get(e.value);t&&!1!==n.value&&Mp(r.value,t.offsetTop,120)})),(0,s.xo)((function(){var e;null===(e=a.value)||void 0===e||e.call(a)})),(0,s.wB)(n,(function(){var t;null===(t=a.value)||void 0===t||t.call(a),(0,s.dY)((function(){if(n.value){var t=o.value.get(e.value);t&&(a.value=Np(t,(function(){Mp(r.value,t.offsetTop,0)})))}}))}),{immediate:!0,flush:"post"}),function(){var t=e.prefixCls,n=e.units,a=e.onSelect,u=e.value,c=e.active,f=e.hideDisabledOptions,d="".concat(t,"-cell");return(0,s.bF)("ul",{class:(0,l.A)("".concat(t,"-column"),(0,i.A)({},"".concat(t,"-column-active"),c)),ref:r,style:{position:"relative"}},[n.map((function(e){var t;return f&&e.disabled?null:(0,s.bF)("li",{key:e.value,ref:function(t){o.value.set(e.value,t)},class:(0,l.A)(d,(t={},(0,i.A)(t,"".concat(d,"-disabled"),e.disabled),(0,i.A)(t,"".concat(d,"-selected"),u===e.value),t)),onClick:function(){e.disabled||a(e.value)}},[(0,s.bF)("div",{class:"".concat(d,"-inner")},[e.label])])}))])}}});function mv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);while(r.length<t)r="".concat(n).concat(e);return r}var yv=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};function bv(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function wv(e){var t={};return Object.keys(e).forEach((function(n){"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n&&"name"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n])})),t}function Av(e,t){return e?e[t]:null}function xv(e,t,n){var r=[Av(e,0),Av(e,1)];return r[n]="function"===typeof t?t(r[n]):t,r[0]||r[1]?r:null}function Cv(e,t,n,r){for(var o=[],i=e;i<=t;i+=n)o.push({label:mv(i,2),value:i,disabled:(r||[]).includes(i)});return o}var Sv=(0,s.pM)({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup:function(e){var t=(0,s.EW)((function(){return e.value?e.generateConfig.getHour(e.value):-1})),n=(0,s.EW)((function(){return!!e.use12Hours&&t.value>=12})),r=(0,s.EW)((function(){return e.use12Hours?t.value%12:t.value})),i=(0,s.EW)((function(){return e.value?e.generateConfig.getMinute(e.value):-1})),a=(0,s.EW)((function(){return e.value?e.generateConfig.getSecond(e.value):-1})),l=(0,s.KR)(e.generateConfig.getNow()),u=(0,s.KR)(),c=(0,s.KR)(),f=(0,s.KR)();(0,s.Ic)((function(){l.value=e.generateConfig.getNow()})),(0,s.nT)((function(){if(e.disabledTime){var t=e.disabledTime(l),n=[t.disabledHours,t.disabledMinutes,t.disabledSeconds];u.value=n[0],c.value=n[1],f.value=n[2]}else{var r=[e.disabledHours,e.disabledMinutes,e.disabledSeconds];u.value=r[0],c.value=r[1],f.value=r[2]}}));var d=function(t,n,r,o){var i=e.value||e.generateConfig.getNow(),a=Math.max(0,n),s=Math.max(0,r),l=Math.max(0,o);return i=Ap(e.generateConfig,i,e.use12Hours&&t?a+12:a,s,l),i},h=(0,s.EW)((function(){var t;return Cv(0,23,null!==(t=e.hourStep)&&void 0!==t?t:1,u.value&&u.value())})),p=(0,s.EW)((function(){if(!e.use12Hours)return[!1,!1];var t=[!0,!0];return h.value.forEach((function(e){var n=e.disabled,r=e.value;n||(r>=12?t[1]=!1:t[0]=!1)})),t})),v=(0,s.EW)((function(){return e.use12Hours?h.value.filter(n.value?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":mv(t,2);return(0,o.A)((0,o.A)({},e),{},{label:n,value:t})})):h.value})),g=(0,s.EW)((function(){var n;return Cv(0,59,null!==(n=e.minuteStep)&&void 0!==n?n:1,c.value&&c.value(t.value))})),m=(0,s.EW)((function(){var n;return Cv(0,59,null!==(n=e.secondStep)&&void 0!==n?n:1,f.value&&f.value(t.value,i.value))}));return function(){var t=e.prefixCls,o=e.operationRef,l=e.activeColumnIndex,u=e.showHour,c=e.showMinute,f=e.showSecond,h=e.use12Hours,y=e.hideDisabledOptions,b=e.onSelect,w=[],A="".concat(t,"-content"),x="".concat(t,"-time-panel");function C(e,t,n,r,o){!1!==e&&w.push({node:Bn(t,{prefixCls:x,value:n,active:l===w.length,onSelect:o,units:r,hideDisabledOptions:y}),onSelect:o,value:n,units:r})}o.value={onUpDown:function(e){var t=w[l];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,o=1;o<r;o+=1){var i=t.units[(n+e*o+r)%r];if(!0!==i.disabled){t.onSelect(i.value);break}}}},C(u,(0,s.bF)(gv,{key:"hour"},null),r.value,v.value,(function(e){b(d(n.value,e,i.value,a.value),"mouse")})),C(c,(0,s.bF)(gv,{key:"minute"},null),i.value,g.value,(function(e){b(d(n.value,r.value,e,a.value),"mouse")})),C(f,(0,s.bF)(gv,{key:"second"},null),a.value,m.value,(function(e){b(d(n.value,r.value,i.value,e),"mouse")}));var S=-1;return"boolean"===typeof n.value&&(S=n.value?1:0),C(!0===h,(0,s.bF)(gv,{key:"12hours"},null),S,[{label:"AM",value:0,disabled:p.value[0]},{label:"PM",value:1,disabled:p.value[1]}],(function(e){b(d(!!e,r.value,i.value,a.value),"mouse")})),(0,s.bF)("div",{class:A},[w.map((function(e){var t=e.node;return t}))])}}}),_v=Sv,kv=function(e){return e.filter((function(e){return!1!==e})).length};function Ev(e){var t=dp(e),n=t.generateConfig,r=t.format,a=void 0===r?"HH:mm:ss":r,u=t.prefixCls,c=t.active,f=t.operationRef,d=t.showHour,h=t.showMinute,p=t.showSecond,v=t.use12Hours,g=void 0!==v&&v,m=t.onSelect,y=t.value,b="".concat(u,"-time-panel"),w=(0,s.KR)(),A=(0,s.KR)(-1),x=kv([d,h,p,g]);return f.value={onKeydown:function(e){return Lp(e,{onLeftRight:function(e){A.value=(A.value+e+x)%x},onUpDown:function(e){-1===A.value?A.value=0:w.value&&w.value.onUpDown(e)},onEnter:function(){m(y||n.getNow(),"key"),A.value=-1}})},onBlur:function(){A.value=-1}},(0,s.bF)("div",{class:(0,l.A)(b,(0,i.A)({},"".concat(b,"-active"),c))},[(0,s.bF)(vv,(0,o.A)((0,o.A)({},t),{},{format:a,prefixCls:u}),null),(0,s.bF)(_v,(0,o.A)((0,o.A)({},t),{},{prefixCls:u,activeColumnIndex:A.value,operationRef:w}),null)])}Ev.displayName="TimePanel",Ev.inheritAttrs=!1;var Ov=Ev;function Fv(e){var t=e.cellPrefixCls,n=e.generateConfig,r=e.rangedValue,o=e.hoverRangedValue,a=e.isInView,s=e.isSameCell,l=e.offsetCell,u=e.today,c=e.value;function f(e){var f,d=l(e,-1),h=l(e,1),p=Av(r,0),v=Av(r,1),g=Av(o,0),m=Av(o,1),y=lv(n,g,m,e);function b(e){return s(p,e)}function w(e){return s(v,e)}var A=s(g,e),x=s(m,e),C=(y||x)&&(!a(d)||w(d)),S=(y||A)&&(!a(h)||b(h));return f={},(0,i.A)(f,"".concat(t,"-in-view"),a(e)),(0,i.A)(f,"".concat(t,"-in-range"),lv(n,p,v,e)),(0,i.A)(f,"".concat(t,"-range-start"),b(e)),(0,i.A)(f,"".concat(t,"-range-end"),w(e)),(0,i.A)(f,"".concat(t,"-range-start-single"),b(e)&&!v),(0,i.A)(f,"".concat(t,"-range-end-single"),w(e)&&!p),(0,i.A)(f,"".concat(t,"-range-start-near-hover"),b(e)&&(s(d,g)||lv(n,g,m,d))),(0,i.A)(f,"".concat(t,"-range-end-near-hover"),w(e)&&(s(h,m)||lv(n,g,m,h))),(0,i.A)(f,"".concat(t,"-range-hover"),y),(0,i.A)(f,"".concat(t,"-range-hover-start"),A),(0,i.A)(f,"".concat(t,"-range-hover-end"),x),(0,i.A)(f,"".concat(t,"-range-hover-edge-start"),C),(0,i.A)(f,"".concat(t,"-range-hover-edge-end"),S),(0,i.A)(f,"".concat(t,"-range-hover-edge-start-near-range"),C&&s(d,v)),(0,i.A)(f,"".concat(t,"-range-hover-edge-end-near-range"),S&&s(h,p)),(0,i.A)(f,"".concat(t,"-today"),s(u,e)),(0,i.A)(f,"".concat(t,"-selected"),s(c,e)),f}return f}var Tv=Symbol("RangeContextProps"),Pv=function(e){(0,s.Gt)(Tv,e)},Nv=function(){return(0,s.WQ)(Tv,{rangedValue:(0,s.KR)(),hoverRangedValue:(0,s.KR)(),inRange:(0,s.KR)(),panelPosition:(0,s.KR)()})},Mv=(0,s.pM)({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:function(){return{}}}},setup:function(e,t){var n=t.slots,r={rangedValue:(0,s.KR)(e.value.rangedValue),hoverRangedValue:(0,s.KR)(e.value.hoverRangedValue),inRange:(0,s.KR)(e.value.inRange),panelPosition:(0,s.KR)(e.value.panelPosition)};return Pv(r),s.lW,(0,s.wB)((function(){return e.value}),(function(){Object.keys(e.value).forEach((function(t){r[t]&&(r[t].value=e.value[t])}))})),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function Lv(e){var t=dp(e),n=t.prefixCls,r=t.generateConfig,i=t.prefixColumn,a=t.locale,l=t.rowCount,u=t.viewDate,c=t.value,f=t.dateRender,d=Nv(),h=d.rangedValue,p=d.hoverRangedValue,v=uv(a.locale,r,u),g="".concat(n,"-cell"),m=r.locale.getWeekFirstDay(a.locale),y=r.getNow(),b=[],w=a.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(a.locale):[]);i&&b.push((0,s.bF)("th",{key:"empty","aria-label":"empty cell"},null));for(var A=0;A<Jp;A+=1)b.push((0,s.bF)("th",{key:A},[w[(A+m)%Jp]]));var x=Fv({cellPrefixCls:g,today:y,value:c,generateConfig:r,rangedValue:i?null:h.value,hoverRangedValue:i?null:p.value,isSameCell:function(e,t){return ov(r,e,t)},isInView:function(e){return rv(r,e,u)},offsetCell:function(e,t){return r.addDate(e,t)}}),C=f?function(e){return f({current:e,today:y})}:void 0;return(0,s.bF)(kp,(0,o.A)((0,o.A)({},t),{},{rowNum:l,colNum:Jp,baseDate:v,getCellNode:C,getCellText:r.getDate,getCellClassName:x,getCellDate:r.addDate,titleCell:function(e){return fv(e,{locale:a,format:"YYYY-MM-DD",generateConfig:r})},headerCells:b}),null)}Lv.displayName="DateBody",Lv.inheritAttrs=!1,Lv.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];var Iv=Lv;function Rv(e){var t=dp(e),n=t.prefixCls,r=t.generateConfig,i=t.locale,a=t.viewDate,l=t.onNextMonth,u=t.onPrevMonth,c=t.onNextYear,f=t.onPrevYear,d=t.onYearClick,h=t.onMonthClick,p=vp(),v=p.hideHeader;if(v.value)return null;var g="".concat(n,"-header"),m=i.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(i.locale):[]),y=r.getMonth(a),b=(0,s.bF)("button",{type:"button",key:"year",onClick:d,tabindex:-1,class:"".concat(n,"-year-btn")},[fv(a,{locale:i,format:i.yearFormat,generateConfig:r})]),w=(0,s.bF)("button",{type:"button",key:"month",onClick:h,tabindex:-1,class:"".concat(n,"-month-btn")},[i.monthFormat?fv(a,{locale:i,format:i.monthFormat,generateConfig:r}):m[y]]),A=i.monthBeforeYear?[w,b]:[b,w];return(0,s.bF)(yp,(0,o.A)((0,o.A)({},t),{},{prefixCls:g,onSuperPrev:f,onPrev:u,onNext:l,onSuperNext:c}),{default:function(){return[A]}})}Rv.displayName="DateHeader",Rv.inheritAttrs=!1;var jv=Rv,Dv=6;function Bv(e){var t=dp(e),n=t.prefixCls,r=t.panelName,a=void 0===r?"date":r,u=t.keyboardConfig,c=t.active,f=t.operationRef,d=t.generateConfig,h=t.value,p=t.viewDate,v=t.onViewDateChange,g=t.onPanelChange,m=t.onSelect,y="".concat(n,"-").concat(a,"-panel");f.value={onKeydown:function(e){return Lp(e,(0,o.A)({onLeftRight:function(e){m(d.addDate(h||p,e),"key")},onCtrlLeftRight:function(e){m(d.addYear(h||p,e),"key")},onUpDown:function(e){m(d.addDate(h||p,e*Jp),"key")},onPageUpDown:function(e){m(d.addMonth(h||p,e),"key")}},u))}};var b=function(e){var t=d.addYear(p,e);v(t),g(null,t)},w=function(e){var t=d.addMonth(p,e);v(t),g(null,t)};return(0,s.bF)("div",{class:(0,l.A)(y,(0,i.A)({},"".concat(y,"-active"),c))},[(0,s.bF)(jv,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,value:h,viewDate:p,onPrevYear:function(){b(-1)},onNextYear:function(){b(1)},onPrevMonth:function(){w(-1)},onNextMonth:function(){w(1)},onMonthClick:function(){g("month",p)},onYearClick:function(){g("year",p)}}),null),(0,s.bF)(Iv,(0,o.A)((0,o.A)({},t),{},{onSelect:function(e){return m(e,"mouse")},prefixCls:n,value:h,viewDate:p,rowCount:Dv}),null)])}Bv.displayName="DatePanel",Bv.inheritAttrs=!1;var Wv=Bv,zv=yv("date","time");function Uv(e){var t=dp(e),n=t.prefixCls,r=t.operationRef,a=t.generateConfig,u=t.value,c=t.defaultValue,f=t.disabledTime,d=t.showTime,h=t.onSelect,p="".concat(n,"-datetime-panel"),v=(0,s.KR)(null),g=(0,s.KR)({}),m=(0,s.KR)({}),y="object"===(0,Ie.A)(d)?(0,o.A)({},d):{};function b(e){var t=zv.indexOf(v.value)+e,n=zv[t]||null;return n}var w=function(e){m.value.onBlur&&m.value.onBlur(e),v.value=null};r.value={onKeydown:function(e){if(e.which===Mo.TAB){var t=b(e.shiftKey?-1:1);return v.value=t,t&&e.preventDefault(),!0}if(v.value){var n="date"===v.value?g:m;return n.value&&n.value.onKeydown&&n.value.onKeydown(e),!0}return!![Mo.LEFT,Mo.RIGHT,Mo.UP,Mo.DOWN].includes(e.which)&&(v.value="date",!0)},onBlur:w,onClose:w};var A=function(e,t){var n=e;"date"===t&&!u&&y.defaultValue?(n=a.setHour(n,a.getHour(y.defaultValue)),n=a.setMinute(n,a.getMinute(y.defaultValue)),n=a.setSecond(n,a.getSecond(y.defaultValue))):"time"===t&&!u&&c&&(n=a.setYear(n,a.getYear(c)),n=a.setMonth(n,a.getMonth(c)),n=a.setDate(n,a.getDate(c))),h&&h(n,"mouse")},x=f?f(u||null):{};return(0,s.bF)("div",{class:(0,l.A)(p,(0,i.A)({},"".concat(p,"-active"),v.value))},[(0,s.bF)(Wv,(0,o.A)((0,o.A)({},t),{},{operationRef:g,active:"date"===v.value,onSelect:function(e){A(xp(a,e,u||"object"!==(0,Ie.A)(d)?null:d.defaultValue),"date")}}),null),(0,s.bF)(Ov,(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},t),{},{format:void 0},y),x),{},{disabledTime:null,defaultValue:void 0,operationRef:m,active:"time"===v.value,onSelect:function(e){A(e,"time")}}),null)])}Uv.displayName="DatetimePanel",Uv.inheritAttrs=!1;var Kv=Uv;function Vv(e){var t=dp(e),n=t.prefixCls,r=t.generateConfig,a=t.locale,u=t.value,c="".concat(n,"-cell"),f=function(e){return(0,s.bF)("td",{key:"week",class:(0,l.A)(c,"".concat(c,"-week"))},[r.locale.getWeek(a.locale,e)])},d="".concat(n,"-week-panel-row"),h=function(e){return(0,l.A)(d,(0,i.A)({},"".concat(d,"-selected"),av(r,a.locale,u,e)))};return(0,s.bF)(Wv,(0,o.A)((0,o.A)({},t),{},{panelName:"week",prefixColumn:f,rowClassName:h,keyboardConfig:{onLeftRight:null}}),null)}Vv.displayName="WeekPanel",Vv.inheritAttrs=!1;var Hv=Vv;function qv(e){var t=dp(e),n=t.prefixCls,r=t.generateConfig,i=t.locale,a=t.viewDate,l=t.onNextYear,u=t.onPrevYear,c=t.onYearClick,f=vp(),d=f.hideHeader;if(d.value)return null;var h="".concat(n,"-header");return(0,s.bF)(yp,(0,o.A)((0,o.A)({},t),{},{prefixCls:h,onSuperPrev:u,onSuperNext:l}),{default:function(){return[(0,s.bF)("button",{type:"button",onClick:c,class:"".concat(n,"-year-btn")},[fv(a,{locale:i,format:i.yearFormat,generateConfig:r})])]}})}qv.displayName="MonthHeader",qv.inheritAttrs=!1;var Gv=qv,Yv=3,$v=4;function Xv(e){var t=dp(e),n=t.prefixCls,r=t.locale,i=t.value,a=t.viewDate,l=t.generateConfig,u=t.monthCellRender,c=Nv(),f=c.rangedValue,d=c.hoverRangedValue,h="".concat(n,"-cell"),p=Fv({cellPrefixCls:h,value:i,generateConfig:l,rangedValue:f.value,hoverRangedValue:d.value,isSameCell:function(e,t){return rv(l,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return l.addMonth(e,t)}}),v=r.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(r.locale):[]),g=l.setMonth(a,0),m=u?function(e){return u({current:e,locale:r})}:void 0;return(0,s.bF)(kp,(0,o.A)((0,o.A)({},t),{},{rowNum:$v,colNum:Yv,baseDate:g,getCellNode:m,getCellText:function(e){return r.monthFormat?fv(e,{locale:r,format:r.monthFormat,generateConfig:l}):v[l.getMonth(e)]},getCellClassName:p,getCellDate:l.addMonth,titleCell:function(e){return fv(e,{locale:r,format:"YYYY-MM",generateConfig:l})}}),null)}Xv.displayName="MonthBody",Xv.inheritAttrs=!1;var Jv=Xv;function Qv(e){var t=dp(e),n=t.prefixCls,r=t.operationRef,i=t.onViewDateChange,a=t.generateConfig,l=t.value,u=t.viewDate,c=t.onPanelChange,f=t.onSelect,d="".concat(n,"-month-panel");r.value={onKeydown:function(e){return Lp(e,{onLeftRight:function(e){f(a.addMonth(l||u,e),"key")},onCtrlLeftRight:function(e){f(a.addYear(l||u,e),"key")},onUpDown:function(e){f(a.addMonth(l||u,e*Yv),"key")},onEnter:function(){c("date",l||u)}})}};var h=function(e){var t=a.addYear(u,e);i(t),c(null,t)};return(0,s.bF)("div",{class:d},[(0,s.bF)(Gv,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onYearClick:function(){c("year",u)}}),null),(0,s.bF)(Jv,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onSelect:function(e){f(e,"mouse"),c("date",e)}}),null)])}Qv.displayName="MonthPanel",Qv.inheritAttrs=!1;var Zv=Qv;function eg(e){var t=dp(e),n=t.prefixCls,r=t.generateConfig,i=t.locale,a=t.viewDate,l=t.onNextYear,u=t.onPrevYear,c=t.onYearClick,f=vp(),d=f.hideHeader;if(d.value)return null;var h="".concat(n,"-header");return(0,s.bF)(yp,(0,o.A)((0,o.A)({},t),{},{prefixCls:h,onSuperPrev:u,onSuperNext:l}),{default:function(){return[(0,s.bF)("button",{type:"button",onClick:c,class:"".concat(n,"-year-btn")},[fv(a,{locale:i,format:i.yearFormat,generateConfig:r})])]}})}eg.displayName="QuarterHeader",eg.inheritAttrs=!1;var tg=eg,ng=4,rg=1;function og(e){var t=dp(e),n=t.prefixCls,r=t.locale,i=t.value,a=t.viewDate,l=t.generateConfig,u=Nv(),c=u.rangedValue,f=u.hoverRangedValue,d="".concat(n,"-cell"),h=Fv({cellPrefixCls:d,value:i,generateConfig:l,rangedValue:c.value,hoverRangedValue:f.value,isSameCell:function(e,t){return nv(l,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return l.addMonth(e,3*t)}}),p=l.setDate(l.setMonth(a,0),1);return(0,s.bF)(kp,(0,o.A)((0,o.A)({},t),{},{rowNum:rg,colNum:ng,baseDate:p,getCellText:function(e){return fv(e,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:l})},getCellClassName:h,getCellDate:function(e,t){return l.addMonth(e,3*t)},titleCell:function(e){return fv(e,{locale:r,format:"YYYY-[Q]Q",generateConfig:l})}}),null)}og.displayName="QuarterBody",og.inheritAttrs=!1;var ig=og;function ag(e){var t=dp(e),n=t.prefixCls,r=t.operationRef,i=t.onViewDateChange,a=t.generateConfig,l=t.value,u=t.viewDate,c=t.onPanelChange,f=t.onSelect,d="".concat(n,"-quarter-panel");r.value={onKeydown:function(e){return Lp(e,{onLeftRight:function(e){f(a.addMonth(l||u,3*e),"key")},onCtrlLeftRight:function(e){f(a.addYear(l||u,e),"key")},onUpDown:function(e){f(a.addYear(l||u,e),"key")}})}};var h=function(e){var t=a.addYear(u,e);i(t),c(null,t)};return(0,s.bF)("div",{class:d},[(0,s.bF)(tg,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onYearClick:function(){c("year",u)}}),null),(0,s.bF)(ig,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onSelect:function(e){f(e,"mouse")}}),null)])}ag.displayName="QuarterPanel",ag.inheritAttrs=!1;var sg=ag;function lg(e){var t=dp(e),n=t.prefixCls,r=t.generateConfig,i=t.viewDate,a=t.onPrevDecade,l=t.onNextDecade,u=t.onDecadeClick,c=vp(),f=c.hideHeader;if(f.value)return null;var d="".concat(n,"-header"),h=r.getYear(i),p=Math.floor(h/pg)*pg,v=p+pg-1;return(0,s.bF)(yp,(0,o.A)((0,o.A)({},t),{},{prefixCls:d,onSuperPrev:a,onSuperNext:l}),{default:function(){return[(0,s.bF)("button",{type:"button",onClick:u,class:"".concat(n,"-decade-btn")},[p,(0,s.eW)("-"),v])]}})}lg.displayName="YearHeader",lg.inheritAttrs=!1;var ug=lg,cg=3,fg=4;function dg(e){var t=dp(e),n=t.prefixCls,r=t.value,i=t.viewDate,a=t.locale,l=t.generateConfig,u=Nv(),c=u.rangedValue,f=u.hoverRangedValue,d="".concat(n,"-cell"),h=l.getYear(i),p=Math.floor(h/pg)*pg,v=p+pg-1,g=l.setYear(i,p-Math.ceil((cg*fg-pg)/2)),m=function(e){var t=l.getYear(e);return p<=t&&t<=v},y=Fv({cellPrefixCls:d,value:r,generateConfig:l,rangedValue:c.value,hoverRangedValue:f.value,isSameCell:function(e,t){return ev(l,e,t)},isInView:m,offsetCell:function(e,t){return l.addYear(e,t)}});return(0,s.bF)(kp,(0,o.A)((0,o.A)({},t),{},{rowNum:fg,colNum:cg,baseDate:g,getCellText:l.getYear,getCellClassName:y,getCellDate:l.addYear,titleCell:function(e){return fv(e,{locale:a,format:"YYYY",generateConfig:l})}}),null)}dg.displayName="YearBody",dg.inheritAttrs=!1;var hg=dg,pg=10;function vg(e){var t=dp(e),n=t.prefixCls,r=t.operationRef,i=t.onViewDateChange,a=t.generateConfig,l=t.value,u=t.viewDate,c=t.sourceMode,f=t.onSelect,d=t.onPanelChange,h="".concat(n,"-year-panel");r.value={onKeydown:function(e){return Lp(e,{onLeftRight:function(e){f(a.addYear(l||u,e),"key")},onCtrlLeftRight:function(e){f(a.addYear(l||u,e*pg),"key")},onUpDown:function(e){f(a.addYear(l||u,e*cg),"key")},onEnter:function(){d("date"===c?"date":"month",l||u)}})}};var p=function(e){var t=a.addYear(u,10*e);i(t),d(null,t)};return(0,s.bF)("div",{class:h},[(0,s.bF)(ug,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onPrevDecade:function(){p(-1)},onNextDecade:function(){p(1)},onDecadeClick:function(){d("decade",u)}}),null),(0,s.bF)(hg,(0,o.A)((0,o.A)({},t),{},{prefixCls:n,onSelect:function(e){d("date"===c?"date":"month",e),f(e,"mouse")}}),null)])}vg.displayName="YearPanel",vg.inheritAttrs=!1;var gg=vg;function mg(e,t,n){return n?(0,s.bF)("div",{class:"".concat(e,"-footer-extra")},[n(t)]):null}function yg(e){var t,n,r=e.prefixCls,o=e.rangeList,i=void 0===o?[]:o,a=e.components,l=void 0===a?{}:a,u=e.needConfirmButton,c=e.onNow,f=e.onOk,d=e.okDisabled,h=e.showNow,p=e.locale;if(i.length){var v=l.rangeItem||"span";t=(0,s.bF)(s.FK,null,[i.map((function(e){var t=e.label,n=e.onClick,o=e.onMouseenter,i=e.onMouseleave;return(0,s.bF)("li",{key:t,class:"".concat(r,"-preset")},[(0,s.bF)(v,{onClick:n,onMouseenter:o,onMouseleave:i},{default:function(){return[t]}})])}))])}if(u){var g=l.button||"button";c&&!t&&!1!==h&&(t=(0,s.bF)("li",{class:"".concat(r,"-now")},[(0,s.bF)("a",{class:"".concat(r,"-now-btn"),onClick:c},[p.now])])),n=u&&(0,s.bF)("li",{class:"".concat(r,"-ok")},[(0,s.bF)(g,{disabled:d,onClick:f},{default:function(){return[p.ok]}})])}return t||n?(0,s.bF)("ul",{class:"".concat(r,"-ranges")},[t,n]):null}function bg(){return(0,s.pM)({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup:function(e,t){var n=t.attrs,r=(0,s.EW)((function(){return"date"===e.picker&&!!e.showTime||"time"===e.picker})),a=(0,s.EW)((function(){return 24%e.hourStep===0})),u=(0,s.EW)((function(){return 60%e.minuteStep===0})),c=(0,s.EW)((function(){return 60%e.secondStep===0}));var f=vp(),d=f.operationRef,h=f.panelRef,p=f.onSelect,v=f.hideRanges,g=f.defaultOpenValue,m=Nv(),y=m.inRange,b=m.panelPosition,w=m.rangedValue,A=m.hoverRangedValue,x=(0,s.KR)({}),C=Ra(null,{value:(0,s.lW)(e,"value"),defaultValue:e.defaultValue,postState:function(t){return!t&&null!==g&&void 0!==g&&g.value&&"time"===e.picker?g.value:t}}),S=(0,Re.A)(C,2),_=S[0],k=S[1],E=Ra(null,{value:(0,s.lW)(e,"pickerValue"),defaultValue:e.defaultPickerValue||_.value,postState:function(t){var n=e.generateConfig,r=e.showTime,o=e.defaultValue,i=n.getNow();return t?!_.value&&e.showTime?"object"===(0,Ie.A)(r)?xp(n,Array.isArray(t)?t[0]:t,r.defaultValue||i):xp(n,Array.isArray(t)?t[0]:t,o||i):t:i}}),O=(0,Re.A)(E,2),F=O[0],T=O[1],P=function(t){T(t),e.onPickerValueChange&&e.onPickerValueChange(t)},N=function(t){var n=Hp[e.picker];return n?n(t):t},M=Ra((function(){return"time"===e.picker?"time":N("date")}),{value:(0,s.lW)(e,"mode")}),L=(0,Re.A)(M,2),I=L[0],R=L[1];(0,s.wB)((function(){return e.picker}),(function(){R(e.picker)}));var j=(0,s.KR)(I.value),D=function(e){j.value=e},B=function(t,n){var r=e.onPanelChange,o=e.generateConfig,i=N(t||I.value);D(I.value),R(i),r&&(I.value!==i||sv(o,F.value,F.value))&&r(n,i)},W=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.picker,i=e.generateConfig,a=e.onSelect,s=e.onChange,l=e.disabledDate;(I.value===o||r)&&(k(t),a&&a(t),p&&p(t,n),!s||sv(i,t,_.value)||null!==l&&void 0!==l&&l(t)||s(t))},z=function(e){return x.value&&x.value.onKeydown?([Mo.LEFT,Mo.RIGHT,Mo.UP,Mo.DOWN,Mo.PAGE_UP,Mo.PAGE_DOWN,Mo.ENTER].includes(e.which)&&e.preventDefault(),x.value.onKeydown(e)):((0,Ke.$e)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},U=function(e){x.value&&x.value.onBlur&&x.value.onBlur(e)},K=function(){var t=e.generateConfig,n=e.hourStep,r=e.minuteStep,o=e.secondStep,i=t.getNow(),s=Cp(t.getHour(i),t.getMinute(i),t.getSecond(i),a.value?n:1,u.value?r:1,c.value?o:1),l=Ap(t,i,s[0],s[1],s[2]);W(l,"submit")},V=(0,s.EW)((function(){var t,n=e.prefixCls,r=e.direction;return(0,l.A)("".concat(n,"-panel"),(t={},(0,i.A)(t,"".concat(n,"-panel-has-range"),w&&w.value&&w.value[0]&&w.value[1]),(0,i.A)(t,"".concat(n,"-panel-has-range-hover"),A&&A.value&&A.value[0]&&A.value[1]),(0,i.A)(t,"".concat(n,"-panel-rtl"),"rtl"===r),t))}));return pp((0,o.A)((0,o.A)({},f),{},{mode:I,hideHeader:(0,s.EW)((function(){var t;return void 0!==e.hideHeader?e.hideHeader:null===(t=f.hideHeader)||void 0===t?void 0:t.value})),hidePrevBtn:(0,s.EW)((function(){return y.value&&"right"===b.value})),hideNextBtn:(0,s.EW)((function(){return y.value&&"left"===b.value}))})),(0,s.wB)((function(){return e.value}),(function(){e.value&&T(e.value)})),function(){var t,i=e.prefixCls,a=void 0===i?"ant-picker":i,u=e.locale,c=e.generateConfig,f=e.disabledDate,p=e.picker,g=void 0===p?"date":p,m=e.tabindex,y=void 0===m?0:m,w=e.showNow,A=e.showTime,C=e.showToday,S=e.renderExtraFooter,k=e.onMousedown,E=e.onOk,O=e.components;d&&"right"!==b.value&&(d.value={onKeydown:z,onClose:function(){x.value&&x.value.onClose&&x.value.onClose()}});var T,N,M,L=(0,o.A)((0,o.A)((0,o.A)({},n),e),{},{operationRef:x,prefixCls:a,viewDate:F.value,value:_.value,onViewDateChange:P,sourceMode:j.value,onPanelChange:B,disabledDate:f});switch(delete L.onChange,delete L.onSelect,I.value){case"decade":t=(0,s.bF)(Xp,(0,o.A)((0,o.A)({},L),{},{onSelect:function(e,t){P(e),W(e,t)}}),null);break;case"year":t=(0,s.bF)(gg,(0,o.A)((0,o.A)({},L),{},{onSelect:function(e,t){P(e),W(e,t)}}),null);break;case"month":t=(0,s.bF)(Zv,(0,o.A)((0,o.A)({},L),{},{onSelect:function(e,t){P(e),W(e,t)}}),null);break;case"quarter":t=(0,s.bF)(sg,(0,o.A)((0,o.A)({},L),{},{onSelect:function(e,t){P(e),W(e,t)}}),null);break;case"week":t=(0,s.bF)(Hv,(0,o.A)((0,o.A)({},L),{},{onSelect:function(e,t){P(e),W(e,t)}}),null);break;case"time":delete L.showTime,t=(0,s.bF)(Ov,(0,o.A)((0,o.A)((0,o.A)({},L),"object"===(0,Ie.A)(A)?A:null),{},{onSelect:function(e,t){P(e),W(e,t)}}),null);break;default:t=A?(0,s.bF)(Kv,(0,o.A)((0,o.A)({},L),{},{onSelect:function(e,t){P(e),W(e,t)}}),null):(0,s.bF)(Wv,(0,o.A)((0,o.A)({},L),{},{onSelect:function(e,t){P(e),W(e,t)}}),null)}if(null!==v&&void 0!==v&&v.value||(T=mg(a,I.value,S),N=yg({prefixCls:a,components:O,needConfirmButton:r.value,okDisabled:!_.value||f&&f(_.value),locale:u,showNow:w,onNow:r.value&&K,onOk:function(){_.value&&(W(_.value,"submit",!0),E&&E(_.value))}})),C&&"date"===I.value&&"date"===g&&!A){var R=c.getNow(),D="".concat(a,"-today-btn"),H=f&&f(R);M=(0,s.bF)("a",{class:(0,l.A)(D,H&&"".concat(D,"-disabled")),"aria-disabled":H,onClick:function(){H||W(R,"mouse",!0)}},[u.today])}return(0,s.bF)("div",{tabindex:y,class:(0,l.A)(V.value,n.class),style:n.style,onKeydown:z,onBlur:U,onMousedown:k,ref:h},[t,T||N||M?(0,s.bF)("div",{class:"".concat(a,"-footer")},[T,N,M]):null])}}})}var wg=bg(),Ag=function(e){return(0,s.bF)(wg,e)},xg=n(38377),Cg=n(55353),Sg=["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"],_g={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:Fe.A.any,required:Boolean},kg=(0,s.pM)({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Pe(_g,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup:function(e,t){var n=t.attrs,r=t.emit,a=t.expose,u=(0,s.KR)(void 0===e.checked?e.defaultChecked:e.checked),c=(0,s.KR)();(0,s.wB)((function(){return e.checked}),(function(){u.value=e.checked})),a({focus:function(){var e;null===(e=c.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=c.value)||void 0===e||e.blur()}});var f=(0,s.KR)(),d=function(t){if(!e.disabled){void 0===e.checked&&(u.value=t.target.checked),t.shiftKey=f.value;var n={target:(0,o.A)((0,o.A)({},e),{},{checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(c.value.checked=!!e.checked),r("change",n),f.value=!1}},h=function(e){r("click",e),f.value=e.shiftKey};return function(){var t,r=e.prefixCls,a=e.name,f=e.id,p=e.type,v=e.disabled,g=e.readonly,m=e.tabindex,y=e.autofocus,b=e.value,w=e.required,A=(0,je.A)(e,Sg),x=n.class,C=n.onFocus,S=n.onBlur,_=n.onKeydown,k=n.onKeypress,E=n.onKeyup,O=(0,o.A)((0,o.A)({},A),n),F=Object.keys(O).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=O[t]),e}),{}),T=(0,l.A)(r,x,(t={},(0,i.A)(t,"".concat(r,"-checked"),u.value),(0,i.A)(t,"".concat(r,"-disabled"),v),t)),P=(0,o.A)((0,o.A)({name:a,id:f,type:p,readonly:g,disabled:v,tabindex:m,class:"".concat(r,"-input"),checked:!!u.value,autofocus:y,value:b},F),{},{onChange:d,onClick:h,onFocus:C,onBlur:S,onKeydown:_,onKeypress:k,onKeyup:E,required:w});return(0,s.bF)("span",{class:T},[(0,s.bF)("input",(0,o.A)({ref:c},P),null),(0,s.bF)("span",{class:"".concat(r,"-inner")},null)])}}}),Eg=["prefixCls","id"],Og=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Fe.A.any,name:String,id:String,autofocus:{type:Boolean,default:void 0},onChange:Function,onFocus:Function,onBlur:Function,onClick:Function,"onUpdate:checked":Function,"onUpdate:value":Function}},Fg=(0,s.pM)({compatConfig:{MODE:3},name:"ARadio",props:Og(),setup:function(e,t){var n=t.emit,r=t.expose,a=t.slots,u=ws(),c=(0,s.KR)(),f=(0,s.WQ)("radioGroupContext",void 0),d=(0,se.A)("radio",e),h=d.prefixCls,p=d.direction,v=function(){c.value.focus()},g=function(){c.value.blur()};r({focus:v,blur:g});var m=function(e){var t=e.target.checked;n("update:checked",t),n("update:value",t),n("change",e),u.onFieldChange()},y=function(e){n("change",e),f&&f.onRadioChange&&f.onRadioChange(e)};return function(){var t,n=f,r=(e.prefixCls,e.id),d=void 0===r?u.id.value:r,v=(0,je.A)(e,Eg),g=(0,o.A)({prefixCls:h.value,id:d},ce(v,["onUpdate:checked","onUpdate:value"]));n?(g.name=n.props.name,g.onChange=y,g.checked=e.value===n.stateValue.value,g.disabled=e.disabled||n.props.disabled):g.onChange=m;var b=(0,l.A)((t={},(0,i.A)(t,"".concat(h.value,"-wrapper"),!0),(0,i.A)(t,"".concat(h.value,"-wrapper-checked"),g.checked),(0,i.A)(t,"".concat(h.value,"-wrapper-disabled"),g.disabled),(0,i.A)(t,"".concat(h.value,"-wrapper-rtl"),"rtl"===p.value),t));return(0,s.bF)("label",{class:b},[(0,s.bF)(kg,(0,o.A)((0,o.A)({},g),{},{type:"radio",ref:c}),null),a.default&&(0,s.bF)("span",null,[a.default()])])}}}),Tg=(0,$.PV)("large","default","small"),Pg=function(){return{prefixCls:String,value:Fe.A.any,size:Fe.A.oneOf(Tg),options:{type:Array},disabled:{type:Boolean,default:void 0},name:String,buttonStyle:{type:String,default:"outline"},id:String,optionType:{type:String,default:"default"},onChange:Function,"onUpdate:value":Function}},Ng=(0,s.pM)({compatConfig:{MODE:3},name:"ARadioGroup",props:Pg(),setup:function(e,t){var n=t.slots,r=t.emit,o=ws(),a=(0,se.A)("radio",e),u=a.prefixCls,c=a.direction,f=a.size,d=(0,s.KR)(e.value),h=(0,s.KR)(!1);(0,s.wB)((function(){return e.value}),(function(e){d.value=e,h.value=!1}));var p=function(t){var n=d.value,i=t.target.value;"value"in e||(d.value=i),h.value||i===n||(h.value=!0,r("update:value",i),r("change",t),o.onFieldChange()),(0,s.dY)((function(){h.value=!1}))};return(0,s.Gt)("radioGroupContext",{onRadioChange:p,stateValue:d,props:e}),function(){var t,r=e.options,a=e.optionType,h=e.buttonStyle,p=e.id,v=void 0===p?o.id.value:p,g="".concat(u.value,"-group"),m=(0,l.A)(g,"".concat(g,"-").concat(h),(t={},(0,i.A)(t,"".concat(g,"-").concat(f.value),f.value),(0,i.A)(t,"".concat(g,"-rtl"),"rtl"===c.value),t)),y=null;if(r&&r.length>0){var b="button"===a?"".concat(u.value,"-button"):u.value;y=r.map((function(t){if("string"===typeof t||"number"===typeof t)return(0,s.bF)(Fg,{key:t,prefixCls:b,disabled:e.disabled,value:t,checked:d.value===t},{default:function(){return[t]}});var n=t.value,r=t.disabled,o=t.label;return(0,s.bF)(Fg,{key:"radio-group-value-options-".concat(n),prefixCls:b,disabled:r||e.disabled,value:n,checked:d.value===n},{default:function(){return[o]}})}))}else{var w;y=null===(w=n.default)||void 0===w?void 0:w.call(n)}return(0,s.bF)("div",{class:m,id:v},[y])}}}),Mg=(0,s.pM)({compatConfig:{MODE:3},name:"ARadioButton",props:Og(),setup:function(e,t){var n=t.slots,r=(0,se.A)("radio-button",e),i=r.prefixCls,a=(0,s.WQ)("radioGroupContext",void 0);return function(){var t,r=(0,o.A)((0,o.A)({},e),{},{prefixCls:i.value});return a&&(r.onChange=a.onRadioChange,r.checked=r.value===a.stateValue.value,r.disabled=r.disabled||a.props.disabled),(0,s.bF)(Fg,r,{default:function(){return[null===(t=n.default)||void 0===t?void 0:t.call(n)]}})}}}),Lg=10,Ig=20;function Rg(e){var t=e.fullscreen,n=e.validRange,r=e.generateConfig,o=e.locale,i=e.prefixCls,a=e.value,l=e.onChange,u=e.divRef,c=r.getYear(a||r.getNow()),f=c-Lg,d=f+Ig;n&&(f=r.getYear(n[0]),d=r.getYear(n[1])+1);for(var h=o&&"年"===o.year?"年":"",p=[],v=f;v<d;v++)p.push({label:"".concat(v).concat(h),value:v});return(0,s.bF)(Es,{size:t?void 0:"small",options:p,value:c,class:"".concat(i,"-year-select"),onChange:function(e){var t=r.setYear(a,e);if(n){var o=(0,Re.A)(n,2),i=o[0],s=o[1],u=r.getYear(t),c=r.getMonth(t);u===r.getYear(s)&&c>r.getMonth(s)&&(t=r.setMonth(t,r.getMonth(s))),u===r.getYear(i)&&c<r.getMonth(i)&&(t=r.setMonth(t,r.getMonth(i)))}l(t)},getPopupContainer:function(){return u.value}},null)}function jg(e){var t=e.prefixCls,n=e.fullscreen,r=e.validRange,o=e.value,i=e.generateConfig,a=e.locale,l=e.onChange,u=e.divRef,c=i.getMonth(o||i.getNow()),f=0,d=11;if(r){var h=(0,Re.A)(r,2),p=h[0],v=h[1],g=i.getYear(o);i.getYear(v)===g&&(d=i.getMonth(v)),i.getYear(p)===g&&(f=i.getMonth(p))}for(var m=a.shortMonths||i.locale.getShortMonths(a.locale),y=[],b=f;b<=d;b+=1)y.push({label:m[b],value:b});return(0,s.bF)(Es,{size:n?void 0:"small",class:"".concat(t,"-month-select"),value:c,options:y,onChange:function(e){l(i.setMonth(o,e))},getPopupContainer:function(){return u.value}},null)}function Dg(e){var t=e.prefixCls,n=e.locale,r=e.mode,o=e.fullscreen,i=e.onModeChange;return(0,s.bF)(Ng,{onChange:function(e){var t=e.target.value;i(t)},value:r,size:o?void 0:"small",class:"".concat(t,"-mode-switch")},{default:function(){return[(0,s.bF)(Mg,{value:"month"},{default:function(){return[n.month]}}),(0,s.bF)(Mg,{value:"year"},{default:function(){return[n.year]}})]}})}Rg.inheritAttrs=!1,jg.inheritAttrs=!1,Dg.inheritAttrs=!1;var Bg=(0,s.pM)({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup:function(e,t){var n=t.attrs,r=(0,s.KR)(null);return function(){var t=(0,o.A)((0,o.A)({},e),n),i=t.prefixCls,a=t.fullscreen,l=t.mode,u=t.onChange,c=t.onModeChange,f=(0,o.A)((0,o.A)({},t),{},{onChange:u,fullscreen:a,divRef:r});return(0,s.bF)("div",{class:"".concat(i,"-header"),ref:r},[(0,s.bF)(Rg,f,null),"month"===l&&(0,s.bF)(jg,f,null),(0,s.bF)(Dg,(0,o.A)((0,o.A)({},f),{},{onModeChange:c}),null)])}}});function Wg(e){function t(t,n){return t&&n&&e.getYear(t)===e.getYear(n)}function n(n,r){return t(n,r)&&e.getMonth(n)===e.getMonth(r)}function r(t,r){return n(t,r)&&e.getDate(t)===e.getDate(r)}var a=(0,s.pM)({name:"ACalendar",inheritAttrs:!1,props:["prefixCls","locale","validRange","disabledDate","dateFullCellRender","dateCellRender","monthFullCellRender","monthCellRender","headerRender","value","defaultValue","mode","fullscreen","onChange","onPanelChange","onSelect","valueFormat"],slots:["dateFullCellRender","dateCellRender","monthFullCellRender","monthCellRender","headerRender"],setup:function(a,u){var c=u.emit,f=u.slots,d=u.attrs,h=(0,se.A)("picker",a),p=h.prefixCls,v=h.direction,g=(0,s.EW)((function(){return"".concat(p.value,"-calendar")})),m=function(t){return a.valueFormat?e.toString(t,a.valueFormat):t},y=(0,s.EW)((function(){return a.value?a.valueFormat?e.toDate(a.value,a.valueFormat):a.value:""===a.value?void 0:a.value})),b=(0,s.EW)((function(){return a.defaultValue?a.valueFormat?e.toDate(a.defaultValue,a.valueFormat):a.defaultValue:""===a.defaultValue?void 0:a.defaultValue})),w=Ra((function(){return y.value||e.getNow()}),{defaultValue:b.value,value:y}),A=(0,Re.A)(w,2),x=A[0],C=A[1],S=Ra("month",{value:(0,s.lW)(a,"mode")}),_=(0,Re.A)(S,2),k=_[0],E=_[1],O=(0,s.EW)((function(){return"year"===k.value?"month":"date"})),F=(0,s.EW)((function(){return function(t){var n,r=!!a.validRange&&(e.isAfter(a.validRange[0],t)||e.isAfter(t,a.validRange[1]));return r||!(null===(n=a.disabledDate)||void 0===n||!n.call(a,t))}})),T=function(e,t){c("panelChange",m(e),t)},P=function(e){if(C(e),!r(e,x.value)){("date"===O.value&&!n(e,x.value)||"month"===O.value&&!t(e,x.value))&&T(e,k.value);var o=m(e);c("update:value",o),c("change",o)}},N=function(e){E(e),T(x.value,e)},M=function(e){P(e),c("select",m(e))},L=(0,s.EW)((function(){var e=a.locale,t=(0,o.A)((0,o.A)({},Cg.A),e);return t.lang=(0,o.A)((0,o.A)({},t.lang),(e||{}).lang),t})),I=(0,xg.n)("Calendar",L),R=(0,Re.A)(I,1),j=R[0];return function(){var t,u=e.getNow(),c=a.dateFullCellRender,h=void 0===c?null===f||void 0===f?void 0:f.dateFullCellRender:c,m=a.dateCellRender,y=void 0===m?null===f||void 0===f?void 0:f.dateCellRender:m,b=a.monthFullCellRender,w=void 0===b?null===f||void 0===f?void 0:f.monthFullCellRender:b,A=a.monthCellRender,C=void 0===A?null===f||void 0===f?void 0:f.monthCellRender:A,S=a.headerRender,_=void 0===S?null===f||void 0===f?void 0:f.headerRender:S,E=a.fullscreen,T=void 0===E||E,P=a.validRange,L=function(t){var n=t.current;return h?h({current:n}):(0,s.bF)("div",{class:(0,l.A)("".concat(p.value,"-cell-inner"),"".concat(g.value,"-date"),(0,i.A)({},"".concat(g.value,"-date-today"),r(u,n)))},[(0,s.bF)("div",{class:"".concat(g.value,"-date-value")},[fp(String(e.getDate(n)),2,"0")]),(0,s.bF)("div",{class:"".concat(g.value,"-date-content")},[y&&y({current:n})])])},I=function(t,r){var o=t.current;if(w)return w({current:o});var a=r.shortMonths||e.locale.getShortMonths(r.locale);return(0,s.bF)("div",{class:(0,l.A)("".concat(p.value,"-cell-inner"),"".concat(g.value,"-date"),(0,i.A)({},"".concat(g.value,"-date-today"),n(u,o)))},[(0,s.bF)("div",{class:"".concat(g.value,"-date-value")},[a[e.getMonth(o)]]),(0,s.bF)("div",{class:"".concat(g.value,"-date-content")},[C&&C({current:o})])])};return(0,s.bF)("div",(0,o.A)((0,o.A)({},d),{},{class:(0,l.A)(g.value,(t={},(0,i.A)(t,"".concat(g.value,"-full"),T),(0,i.A)(t,"".concat(g.value,"-mini"),!T),(0,i.A)(t,"".concat(g.value,"-rtl"),"rtl"===v.value),t),d.class)}),[_?_({value:x.value,type:k.value,onChange:M,onTypeChange:N}):(0,s.bF)(Bg,{prefixCls:g.value,value:x.value,generateConfig:e,mode:k.value,fullscreen:T,locale:j.value.lang,validRange:P,onChange:M,onModeChange:N},null),(0,s.bF)(Ag,{value:x.value,prefixCls:p.value,locale:j.value.lang,generateConfig:e,dateRender:L,monthCellRender:function(e){return I(e,j.value.lang)},onSelect:M,mode:O.value,picker:O.value,disabledDate:F.value,hideHeader:!0},null)])}}});return a.install=function(e){return e.component(a.name,a),e},a}var zg=Wg,Ug=zg(_d),Kg=(0,$.GU)(Ug),Vg=Kg;function Hg(e){var t=(0,s.KR)(),n=(0,s.KR)(!1);function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];n.value||(G.cancel(t.value),t.value=G((function(){e.apply(void 0,o)})))}return(0,s.xo)((function(){n.value=!0,G.cancel(t.value)})),r}function qg(e){var t=(0,s.KR)([]),n=(0,s.KR)("function"===typeof e?e():e),r=Hg((function(){var e=n.value;t.value.forEach((function(t){e=t(e)})),t.value=[],n.value=e}));function o(e){t.value.push(e),r()}return[n,o]}var Gg=(0,s.pM)({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup:function(e,t){var n=t.expose,r=t.attrs,o=(0,s.KR)();function a(t){var n;null!==(n=e.tab)&&void 0!==n&&n.disabled||e.onClick(t)}function u(t){var n;t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:null===(n=e.tab)||void 0===n?void 0:n.key,event:t})}n({domRef:o});var c=(0,s.EW)((function(){var t;return e.editable&&!1!==e.closable&&!(null!==(t=e.tab)&&void 0!==t&&t.disabled)}));return function(){var t,n,f=e.prefixCls,d=e.id,h=e.active,p=e.tab,v=p.key,g=p.tab,m=p.disabled,y=p.closeIcon,b=e.renderWrapper,w=e.removeAriaLabel,A=e.editable,x=e.onFocus,C="".concat(f,"-tab"),S=(0,s.bF)("div",{key:v,ref:o,class:(0,l.A)(C,(t={},(0,i.A)(t,"".concat(C,"-with-remove"),c.value),(0,i.A)(t,"".concat(C,"-active"),h),(0,i.A)(t,"".concat(C,"-disabled"),m),t)),style:r.style,onClick:a},[(0,s.bF)("div",{role:"tab","aria-selected":h,id:d&&"".concat(d,"-tab-").concat(v),class:"".concat(C,"-btn"),"aria-controls":d&&"".concat(d,"-panel-").concat(v),"aria-disabled":m,tabindex:m?null:0,onClick:function(e){e.stopPropagation(),a(e)},onKeydown:function(e){[Mo.SPACE,Mo.ENTER].includes(e.which)&&(e.preventDefault(),a(e))},onFocus:x},["function"===typeof g?g():g]),c.value&&(0,s.bF)("button",{type:"button","aria-label":w||"remove",tabindex:0,class:"".concat(C,"-remove"),onClick:function(e){e.stopPropagation(),u(e)}},[(null===y||void 0===y?void 0:y())||(null===(n=A.removeIcon)||void 0===n?void 0:n.call(A))||"×"])]);return b?b(S):S}}}),Yg={width:0,height:0,left:0,top:0};function $g(e,t){var n=(0,s.KR)(new Map);return(0,s.nT)((function(){for(var r,i=new Map,a=e.value,s=t.value.get(null===(r=a[0])||void 0===r?void 0:r.key)||Yg,l=s.left+s.width,u=0;u<a.length;u+=1){var c,f=a[u].key,d=t.value.get(f);if(!d)d=t.value.get(null===(c=a[u-1])||void 0===c?void 0:c.key)||Yg;var h=i.get(f)||(0,o.A)({},d);h.right=l-h.left-h.width,i.set(f,h)}n.value=new Map(i)})),n}var Xg=(0,s.pM)({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup:function(e,t){var n=t.expose,r=t.attrs,o=(0,s.KR)();return n({domRef:o}),function(){var t=e.prefixCls,n=e.editable,i=e.locale;return n&&!1!==n.showAdd?(0,s.bF)("button",{ref:o,type:"button",class:"".concat(t,"-nav-add"),style:r.style,"aria-label":(null===i||void 0===i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},[n.addIcon?n.addIcon():"+"]):null}}}),Jg={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Fe.A.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function}},Qg=(0,s.pM)({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:Jg,emits:["tabClick"],slots:["moreIcon"],setup:function(e,t){var n=t.attrs,r=t.slots,o=ja(!1),a=(0,Re.A)(o,2),u=a[0],c=a[1],f=ja(null),d=(0,Re.A)(f,2),h=d[0],p=d[1],v=function(t){for(var n=e.tabs.filter((function(e){return!e.disabled})),r=n.findIndex((function(e){return e.key===h.value}))||0,o=n.length,i=0;i<o;i+=1){r=(r+t+o)%o;var a=n[r];if(!a.disabled)return void p(a.key)}},g=function(t){var n=t.which;if(u.value)switch(n){case Mo.UP:v(-1),t.preventDefault();break;case Mo.DOWN:v(1),t.preventDefault();break;case Mo.ESC:c(!1);break;case Mo.SPACE:case Mo.ENTER:null!==h.value&&e.onTabClick(h.value,t);break}else[Mo.DOWN,Mo.SPACE,Mo.ENTER].includes(n)&&(c(!0),t.preventDefault())},m=(0,s.EW)((function(){return"".concat(e.id,"-more-popup")})),y=(0,s.EW)((function(){return null!==h.value?"".concat(m.value,"-").concat(h.value):null})),b=function(t,n){t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:n,event:t})};return(0,s.sV)((function(){(0,s.wB)(h,(function(){var e=document.getElementById(y.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),{flush:"post",immediate:!0})})),(0,s.wB)(u,(function(){u.value||p(null)})),function(){var t,o=e.prefixCls,a=e.id,f=e.tabs,d=e.locale,p=e.mobile,v=e.moreIcon,w=void 0===v?(null===(t=r.moreIcon)||void 0===t?void 0:t.call(r))||(0,s.bF)(cc,null,null):v,A=e.moreTransitionName,x=e.editable,C=e.tabBarGutter,S=e.rtl,_=e.onTabClick,k="".concat(o,"-dropdown"),E=null===d||void 0===d?void 0:d.dropdownAriaLabel,O=(0,i.A)({},S?"marginRight":"marginLeft",C);f.length||(O.visibility="hidden",O.order=1);var F=(0,l.A)((0,i.A)({},"".concat(k,"-rtl"),S)),T=p?null:(0,s.bF)(Cu,{prefixCls:k,trigger:["hover"],visible:u.value,transitionName:A,onVisibleChange:c,overlayClassName:F,mouseEnterDelay:.1,mouseLeaveDelay:.1},{overlay:function(){return(0,s.bF)(qf,{onClick:function(e){var t=e.key,n=e.domEvent;_(t,n),c(!1)},id:m.value,tabindex:-1,role:"listbox","aria-activedescendant":y.value,selectedKeys:[h.value],"aria-label":void 0!==E?E:"expanded dropdown"},{default:function(){return[f.map((function(t){var n,r,o=x&&!1!==t.closable&&!t.disabled;return(0,s.bF)(Af,{key:t.key,id:"".concat(m.value,"-").concat(t.key),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(t.key),disabled:t.disabled},{default:function(){return[(0,s.bF)("span",null,["function"===typeof t.tab?t.tab():t.tab]),o&&(0,s.bF)("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:"".concat(k,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),b(e,t.key)}},[(null===(n=t.closeIcon)||void 0===n?void 0:n.call(t))||(null===(r=x.removeIcon)||void 0===r?void 0:r.call(x))||"×"])]}})}))]}})},default:function(){return(0,s.bF)("button",{type:"button",class:"".concat(o,"-nav-more"),style:O,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":m.value,id:"".concat(a,"-more"),"aria-expanded":u.value,onKeydown:g},[w])}});return(0,s.bF)("div",{class:(0,l.A)("".concat(o,"-nav-operations"),n.class),style:n.style},[T,(0,s.bF)(Xg,{prefixCls:o,locale:d,editable:x},null)])}}}),Zg=Symbol("tabsContextKey"),em=function(e){(0,s.Gt)(Zg,e)},tm=function(){return(0,s.WQ)(Zg,{tabs:(0,s.KR)([]),prefixCls:(0,s.KR)()})},nm=((0,s.pM)({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup:function(e,t){var n=t.slots;return em((0,s.QW)(e)),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),.1),rm=.01,om=20,im=Math.pow(.995,om);function am(e,t){var n=ja(),r=(0,Re.A)(n,2),o=r[0],i=r[1],a=ja(0),l=(0,Re.A)(a,2),u=l[0],c=l[1],f=ja(0),d=(0,Re.A)(f,2),h=d[0],p=d[1],v=ja(),g=(0,Re.A)(v,2),m=g[0],y=g[1],b=(0,s.KR)();function w(e){var t=e.touches[0],n=t.screenX,r=t.screenY;i({x:n,y:r}),clearInterval(b.value)}function A(e){if(o.value){e.preventDefault();var n=e.touches[0],r=n.screenX,a=n.screenY,s=r-o.value.x,l=a-o.value.y;t(s,l),i({x:r,y:a});var f=Date.now();p(f-u.value),c(f),y({x:s,y:l})}}function x(){if(o.value){var e=m.value;if(i(null),y(null),e){var n=e.x/h.value,r=e.y/h.value,a=Math.abs(n),s=Math.abs(r);if(Math.max(a,s)<nm)return;var l=n,u=r;b.value=setInterval((function(){Math.abs(l)<rm&&Math.abs(u)<rm?clearInterval(b.value):(l*=im,u*=im,t(l*om,u*om))}),om)}}}var C=(0,s.KR)();function S(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===C.value?n:r:i>a?(o=n,C.value="x"):(o=r,C.value="y"),t(-o,-o)&&e.preventDefault()}var _=(0,s.KR)({onTouchStart:w,onTouchMove:A,onTouchEnd:x,onWheel:S});function k(e){_.value.onTouchStart(e)}function E(e){_.value.onTouchMove(e)}function O(e){_.value.onTouchEnd(e)}function F(e){_.value.onWheel(e)}(0,s.sV)((function(){var t,n;document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",O,{passive:!1}),null===(t=e.value)||void 0===t||t.addEventListener("touchstart",k,{passive:!1}),null===(n=e.value)||void 0===n||n.addEventListener("wheel",F,{passive:!1})})),(0,s.xo)((function(){document.removeEventListener("touchmove",E),document.removeEventListener("touchend",O)}))}function sm(e,t){var n=(0,s.KR)(e);function r(e){var r="function"===typeof e?e(n.value):e;r!==n.value&&t(r,n.value),n.value=r}return[n,r]}var lm=n(82681),um=function(){var e=(0,s.KR)(new Map),t=function(t){return function(n){e.value.set(t,n)}};return(0,s.Ic)((function(){e.value=new Map})),[t,e]},cm=um,fm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dm=/^\w*$/;function hm(e,t){if((0,zr.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,Nd.A)(e))||(dm.test(e)||!fm.test(e)||null!=t&&e in Object(t))}var pm=hm,vm="Expected a function";function gm(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(vm);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(gm.Cache||Yn.A),n}gm.Cache=Yn.A;var mm=gm,ym=500;function bm(e){var t=mm(e,(function(e){return n.size===ym&&n.clear(),e})),n=t.cache;return t}var wm=bm,Am=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xm=/\\(\\)?/g,Cm=wm((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Am,(function(e,n,r,o){t.push(r?o.replace(xm,"$1"):n||e)})),t})),Sm=Cm;function _m(e,t){return(0,zr.A)(e)?e:pm(e,t)?[e]:Sm(up(e))}var km=_m,Em=1/0;function Om(e){if("string"==typeof e||(0,Nd.A)(e))return e;var t=e+"";return"0"==t&&1/e==-Em?"-0":t}var Fm=Om;function Tm(e,t){t=km(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Fm(t[n++])];return n&&n==r?e:void 0}var Pm=Tm,Nm=n(52851),Mm=n(25353),Lm=n(23149);function Im(e,t,n,r){if(!(0,Lm.A)(e))return e;t=km(t,e);var o=-1,i=t.length,a=i-1,s=e;while(null!=s&&++o<i){var l=Fm(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=s[l];u=r?r(c,l,s):void 0,void 0===u&&(u=(0,Lm.A)(c)?c:(0,Mm.A)(t[o+1])?[]:{})}(0,Nm.A)(s,l,u),s=s[l]}return e}var Rm=Im;function jm(e,t,n){var r=-1,o=t.length,i={};while(++r<o){var a=t[r],s=Pm(e,a);n(s,a)&&Rm(i,km(a,e),s)}return i}var Dm=jm;function Bm(e,t){return null!=e&&t in Object(e)}var Wm=Bm,zm=n(52274),Um=n(5254);function Km(e,t,n){t=km(t,e);var r=-1,o=t.length,i=!1;while(++r<o){var a=Fm(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=null==e?0:e.length,!!o&&(0,Um.A)(o)&&(0,Mm.A)(a,o)&&((0,zr.A)(e)||(0,zm.A)(e)))}var Vm=Km;function Hm(e,t){return null!=e&&Vm(e,t,Wm)}var qm=Hm;function Gm(e,t){return Dm(e,t,(function(t,n){return qm(e,n)}))}var Ym=Gm,$m=n(76912),Xm=cr.A?cr.A.isConcatSpreadable:void 0;function Jm(e){return(0,zr.A)(e)||(0,zm.A)(e)||!!(Xm&&e&&e[Xm])}var Qm=Jm;function Zm(e,t,n,r,o){var i=-1,a=e.length;n||(n=Qm),o||(o=[]);while(++i<a){var s=e[i];t>0&&n(s)?t>1?Zm(s,t-1,n,r,o):(0,$m.A)(o,s):r||(o[o.length]=s)}return o}var ey=Zm;function ty(e){var t=null==e?0:e.length;return t?ey(e,1):[]}var ny=ty;function ry(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var oy=ry,iy=Math.max;function ay(e,t,n){return t=iy(void 0===t?e.length-1:t,0),function(){var r=arguments,o=-1,i=iy(r.length-t,0),a=Array(i);while(++o<i)a[o]=r[t+o];o=-1;var s=Array(t+1);while(++o<t)s[o]=r[o];return s[t]=n(a),oy(e,this,s)}}var sy=ay;function ly(e){return function(){return e}}var uy=ly,cy=n(84171);function fy(e){return e}var dy=fy,hy=cy.A?function(e,t){return(0,cy.A)(e,"toString",{configurable:!0,enumerable:!1,value:uy(t),writable:!0})}:dy,py=hy,vy=800,gy=16,my=Date.now;function yy(e){var t=0,n=0;return function(){var r=my(),o=gy-(r-n);if(n=r,o>0){if(++t>=vy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var by=yy,wy=by(py),Ay=wy;function xy(e){return Ay(sy(e,void 0,ny),e+"")}var Cy=xy,Sy=Cy((function(e,t){return null==e?{}:Ym(e,t)})),_y=Sy,ky={width:0,height:0,left:0,top:0,right:0},Ey=function(){return{id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:{type:Object,default:void 0},editable:{type:Object},moreIcon:Fe.A.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:{type:Object,default:void 0},onTabClick:{type:Function},onTabScroll:{type:Function}}},Oy=(0,s.pM)({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:Ey(),slots:["moreIcon","leftExtra","rightExtra","tabBarExtraContent"],emits:["tabClick","tabScroll"],setup:function(e,t){var n=t.attrs,r=t.slots,a=tm(),u=a.tabs,c=a.prefixCls,f=(0,s.KR)(),d=(0,s.KR)(),h=(0,s.KR)(),p=(0,s.KR)(),v=cm(),g=(0,Re.A)(v,2),m=g[0],y=g[1],b=(0,s.EW)((function(){return"top"===e.tabPosition||"bottom"===e.tabPosition})),w=sm(0,(function(t,n){b.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"left":"right"})})),A=(0,Re.A)(w,2),x=A[0],C=A[1],S=sm(0,(function(t,n){!b.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"top":"bottom"})})),_=(0,Re.A)(S,2),k=_[0],E=_[1],O=ja(0),F=(0,Re.A)(O,2),T=F[0],P=F[1],N=ja(0),M=(0,Re.A)(N,2),L=M[0],I=M[1],R=ja(null),j=(0,Re.A)(R,2),D=j[0],B=j[1],U=ja(null),K=(0,Re.A)(U,2),V=K[0],H=K[1],q=ja(0),Y=(0,Re.A)(q,2),$=Y[0],X=Y[1],J=ja(0),Q=(0,Re.A)(J,2),Z=Q[0],ee=Q[1],te=qg(new Map),ne=(0,Re.A)(te,2),re=ne[0],oe=ne[1],ie=$g(u,re),ae=(0,s.EW)((function(){return"".concat(c.value,"-nav-operations-hidden")})),se=(0,s.KR)(0),le=(0,s.KR)(0);(0,s.nT)((function(){b.value?e.rtl?(se.value=0,le.value=Math.max(0,T.value-D.value)):(se.value=Math.min(0,D.value-T.value),le.value=0):(se.value=Math.min(0,V.value-L.value),le.value=0)}));var ue=function(e){return e<se.value?se.value:e>le.value?le.value:e},ce=(0,s.KR)(),fe=ja(),de=(0,Re.A)(fe,2),he=de[0],pe=de[1],ve=function(){pe(Date.now())},ge=function(){clearTimeout(ce.value)},me=function(e,t){e((function(e){var n=ue(e+t);return n}))};am(f,(function(e,t){if(b.value){if(D.value>=T.value)return!1;me(C,e)}else{if(V.value>=L.value)return!1;me(E,t)}return ge(),ve(),!0})),(0,s.wB)(he,(function(){ge(),he.value&&(ce.value=setTimeout((function(){pe(0)}),100))}));var ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activeKey,n=ie.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(b.value){var r=x.value;e.rtl?n.right<x.value?r=n.right:n.right+n.width>x.value+D.value&&(r=n.right+n.width-D.value):n.left<-x.value?r=-n.left:n.left+n.width>-x.value+D.value&&(r=-(n.left+n.width-D.value)),E(0),C(ue(r))}else{var o=k.value;n.top<-k.value?o=-n.top:n.top+n.height>-k.value+V.value&&(o=-(n.top+n.height-V.value)),C(0),E(ue(o))}},be=(0,s.KR)(0),we=(0,s.KR)(0);(0,s.nT)((function(){var t,n,r,o,i,a,s,l=ie.value;["top","bottom"].includes(e.tabPosition)?(n="width",i=D.value,a=T.value,s=$.value,r=e.rtl?"right":"left",o=Math.abs(x.value)):(n="height",i=V.value,a=T.value,s=Z.value,r="top",o=-k.value);var c=i;a+s>i&&a<i&&(c=i-s);var f,d=u.value;if(!d.length)return f=[0,0],be.value=f[0],we.value=f[1],f;for(var h=d.length,p=h,v=0;v<h;v+=1){var g=l.get(d[v].key)||ky;if(g[r]+g[n]>o+c){p=v-1;break}}for(var m=0,y=h-1;y>=0;y-=1){var b=l.get(d[y].key)||ky;if(b[r]<o){m=y+1;break}}return t=[m,p],be.value=t[0],we.value=t[1],t}));var Ae=function(){var e,t,n,r,o,i=(null===(e=f.value)||void 0===e?void 0:e.offsetWidth)||0,a=(null===(t=f.value)||void 0===t?void 0:t.offsetHeight)||0,s=(null===(n=p.value)||void 0===n?void 0:n.$el)||{},l=s.offsetWidth||0,c=s.offsetHeight||0;B(i),H(a),X(l),ee(c);var h=((null===(r=d.value)||void 0===r?void 0:r.offsetWidth)||0)-l,v=((null===(o=d.value)||void 0===o?void 0:o.offsetHeight)||0)-c;P(h),I(v),oe((function(){var e=new Map;return u.value.forEach((function(t){var n=t.key,r=y.value.get(n),o=(null===r||void 0===r?void 0:r.$el)||r;o&&e.set(n,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})})),e}))},xe=(0,s.EW)((function(){return[].concat((0,z.A)(u.value.slice(0,be.value)),(0,z.A)(u.value.slice(we.value+1)))})),Ce=ja(),Se=(0,Re.A)(Ce,2),_e=Se[0],ke=Se[1],Ee=(0,s.EW)((function(){return ie.value.get(e.activeKey)})),Oe=(0,s.KR)(),Fe=function(){G.cancel(Oe.value)};(0,s.wB)([Ee,b,function(){return e.rtl}],(function(){var t={};Ee.value&&(b.value?(e.rtl?t.right=(0,lm.cl)(Ee.value.right):t.left=(0,lm.cl)(Ee.value.left),t.width=(0,lm.cl)(Ee.value.width)):(t.top=(0,lm.cl)(Ee.value.top),t.height=(0,lm.cl)(Ee.value.height))),Fe(),Oe.value=G((function(){ke(t)}))})),(0,s.wB)([function(){return e.activeKey},Ee,ie,b],(function(){ye()}),{flush:"post"}),(0,s.wB)([function(){return e.rtl},function(){return e.tabBarGutter},function(){return e.activeKey},function(){return u.value}],(function(){Ae()}),{flush:"post"});var Te=function(e){var t=e.position,n=e.prefixCls,r=e.extra;if(!r)return null;var o=null===r||void 0===r?void 0:r({position:t});return o?(0,s.bF)("div",{class:"".concat(n,"-extra-content")},[o]):null};return(0,s.xo)((function(){ge(),Fe()})),function(){var t,a,v,g,y,w=e.id,A=e.animated,C=e.activeKey,S=e.rtl,_=e.editable,E=e.locale,O=e.tabPosition,F=e.tabBarGutter,P=e.onTabClick,N=n.class,M=n.style,I=c.value,R=!!xe.value.length,j="".concat(I,"-nav-wrap");b.value?S?(v=x.value>0,a=x.value+D.value<T.value):(a=x.value<0,v=-x.value+D.value<T.value):(g=k.value<0,y=-k.value+V.value<L.value);var B={};"top"===O||"bottom"===O?B[S?"marginRight":"marginLeft"]="number"===typeof F?"".concat(F,"px"):F:B.marginTop="number"===typeof F?"".concat(F,"px"):F;var z=u.value.map((function(e,t){var n=e.key;return(0,s.bF)(Gg,{id:w,prefixCls:I,key:n,tab:e,style:0===t?void 0:B,closable:e.closable,editable:_,active:n===C,removeAriaLabel:null===E||void 0===E?void 0:E.removeAriaLabel,ref:m(n),onClick:function(e){P(n,e)},onFocus:function(){ye(n),ve(),f.value&&(S||(f.value.scrollLeft=0),f.value.scrollTop=0)}},r)}));return(0,s.bF)("div",{role:"tablist",class:(0,l.A)("".concat(I,"-nav"),N),style:M,onKeydown:function(){ve()}},[(0,s.bF)(Te,{position:"left",prefixCls:I,extra:r.leftExtra},null),(0,s.bF)(W,{onResize:Ae},{default:function(){return[(0,s.bF)("div",{class:(0,l.A)(j,(t={},(0,i.A)(t,"".concat(j,"-ping-left"),a),(0,i.A)(t,"".concat(j,"-ping-right"),v),(0,i.A)(t,"".concat(j,"-ping-top"),g),(0,i.A)(t,"".concat(j,"-ping-bottom"),y),t)),ref:f},[(0,s.bF)(W,{onResize:Ae},{default:function(){return[(0,s.bF)("div",{ref:d,class:"".concat(I,"-nav-list"),style:{transform:"translate(".concat(x.value,"px, ").concat(k.value,"px)"),transition:he.value?"none":void 0}},[z,(0,s.bF)(Xg,{ref:p,prefixCls:I,locale:E,editable:_,style:(0,o.A)((0,o.A)({},0===z.length?void 0:B),{},{visibility:R?"hidden":null})},null),(0,s.bF)("div",{class:(0,l.A)("".concat(I,"-ink-bar"),(0,i.A)({},"".concat(I,"-ink-bar-animated"),A.inkBar)),style:_e.value},null)])]}})])]}}),(0,s.bF)(Qg,(0,o.A)((0,o.A)({},e),{},{removeAriaLabel:null===E||void 0===E?void 0:E.removeAriaLabel,ref:h,prefixCls:I,tabs:xe.value,class:!R&&ae.value}),_y(r,["moreIcon"])),(0,s.bF)(Te,{position:"right",prefixCls:I,extra:r.rightExtra},null),(0,s.bF)(Te,{position:"right",prefixCls:I,extra:r.tabBarExtraContent},null)])}}}),Fy=(0,s.pM)({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup:function(e){var t=tm(),n=t.tabs,r=t.prefixCls;return function(){var t=e.id,o=e.activeKey,a=e.animated,l=e.tabPosition,u=e.rtl,c=e.destroyInactiveTabPane,f=a.tabPane,d=r.value,h=n.value.findIndex((function(e){return e.key===o}));return(0,s.bF)("div",{class:"".concat(d,"-content-holder")},[(0,s.bF)("div",{class:["".concat(d,"-content"),"".concat(d,"-content-").concat(l),(0,i.A)({},"".concat(d,"-content-animated"),f)],style:h&&f?(0,i.A)({},u?"marginRight":"marginLeft","-".concat(h,"00%")):null},[n.value.map((function(e){return Bn(e.node,{key:e.key,prefixCls:d,tabKey:e.key,id:t,animated:f,active:e.key===o,destroyInactiveTabPane:c})}))])])}}}),Ty={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Py=Ty;function Ny(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){My(e,t,n[t])}))}return e}function My(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ly=function(e,t){var n=Ny({},e,t.attrs);return(0,s.bF)(Ya.A,Ny({},n,{icon:Py}),null)};Ly.displayName="PlusOutlined",Ly.inheritAttrs=!1;var Iy=Ly,Ry=0,jy=function(){return{prefixCls:{type:String},id:{type:String},activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:{type:String},animated:{type:[Boolean,Object]},renderTabBar:{type:Function},tabBarGutter:{type:Number},tabBarStyle:{type:Object},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean},hideAdd:Boolean,type:{type:String},size:{type:String},centered:Boolean,onEdit:{type:Function},onChange:{type:Function},onTabClick:{type:Function},onTabScroll:{type:Function},"onUpdate:activeKey":{type:Function},locale:{type:Object,default:void 0},onPrevClick:Function,onNextClick:Function,tabBarExtraContent:Fe.A.any}};function Dy(e){return e.map((function(e){if((0,B.zO)(e)){for(var t=(0,o.A)({},e.props||{}),n=0,r=Object.entries(t);n<r.length;n++){var i=(0,Re.A)(r[n],2),a=i[0],l=i[1];delete t[a],t[(0,s.PT)(a)]=l}var u=e.children||{},c=void 0!==e.key?e.key:void 0,f=t.tab,d=void 0===f?u.tab:f,h=t.disabled,p=t.forceRender,v=t.closable,g=t.animated,m=t.active,y=t.destroyInactiveTabPane;return(0,o.A)((0,o.A)({key:c},t),{},{node:e,closeIcon:u.closeIcon,tab:d,disabled:""===h||h,forceRender:""===p||p,closable:""===v||v,animated:""===g||g,active:""===m||m,destroyInactiveTabPane:""===y||y})}return null})).filter((function(e){return e}))}var By=(0,s.pM)({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},Pe(jy(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{},{tabs:{type:Array}}),slots:["tabBarExtraContent","leftExtra","rightExtra","moreIcon","addIcon","removeIcon","renderTabBar"],setup:function(e,t){var n=t.attrs,r=t.slots;(0,Wu.A)(!(void 0!==e.onPrevClick)&&!(void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),(0,Wu.A)(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),(0,Wu.A)(!(void 0!==r.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");var a=(0,se.A)("tabs",e),u=a.prefixCls,c=a.direction,f=a.size,d=a.rootPrefixCls,h=(0,s.EW)((function(){return"rtl"===c.value})),p=(0,s.EW)((function(){var t=e.animated,n=e.tabPosition;return!1===t||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:(0,o.A)({inkBar:!0,tabPane:!1},"object"===(0,Ie.A)(t)?t:{})})),v=ja(!1),g=(0,Re.A)(v,2),m=g[0],y=g[1];(0,s.sV)((function(){y(ji())}));var b=Ra((function(){var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key}),{value:(0,s.EW)((function(){return e.activeKey})),defaultValue:e.defaultActiveKey}),w=(0,Re.A)(b,2),A=w[0],x=w[1],C=ja((function(){return e.tabs.findIndex((function(e){return e.key===A.value}))})),S=(0,Re.A)(C,2),_=S[0],k=S[1];(0,s.nT)((function(){var t,n=e.tabs.findIndex((function(e){return e.key===A.value}));-1===n&&(n=Math.max(0,Math.min(_.value,e.tabs.length-1)),x(null===(t=e.tabs[n])||void 0===t?void 0:t.key));k(n)}));var E=Ra(null,{value:(0,s.EW)((function(){return e.id}))}),O=(0,Re.A)(E,2),F=O[0],T=O[1],P=(0,s.EW)((function(){return m.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition}));(0,s.sV)((function(){e.id||(T("rc-tabs-".concat(Ry)),Ry+=1)}));var N=function(t,n){var r;null===(r=e.onTabClick)||void 0===r||r.call(e,t,n);var o,i=t!==A.value;(x(t),i)&&(null===(o=e.onChange)||void 0===o||o.call(e,t))};return em({tabs:(0,s.EW)((function(){return e.tabs})),prefixCls:u}),function(){var t,a,c,v=e.id,g=e.type,y=e.tabBarGutter,b=e.tabBarStyle,w=e.locale,x=e.destroyInactiveTabPane,C=e.renderTabBar,S=void 0===C?r.renderTabBar:C,_=e.onTabScroll,k=e.hideAdd,E=e.centered,O={id:F.value,activeKey:A.value,animated:p.value,tabPosition:P.value,rtl:h.value,mobile:m.value};"editable-card"===g&&(a={onEdit:function(t,n){var r,o=n.key,i=n.event;null===(r=e.onEdit)||void 0===r||r.call(e,"add"===t?i:o,t)},removeIcon:function(){return(0,s.bF)(as.A,null,null)},addIcon:r.addIcon?r.addIcon:function(){return(0,s.bF)(Iy,null,null)},showAdd:!0!==k});var T=(0,o.A)((0,o.A)({},O),{},{moreTransitionName:"".concat(d.value,"-slide-up"),editable:a,locale:w,tabBarGutter:y,onTabClick:N,onTabScroll:_,style:b});c=S?S((0,o.A)((0,o.A)({},T),{},{DefaultTabBar:Oy})):(0,s.bF)(Oy,T,_y(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));var M=u.value;return(0,s.bF)("div",(0,o.A)((0,o.A)({},n),{},{id:v,class:(0,l.A)(M,"".concat(M,"-").concat(P.value),(t={},(0,i.A)(t,"".concat(M,"-").concat(f.value),f.value),(0,i.A)(t,"".concat(M,"-card"),["card","editable-card"].includes(g)),(0,i.A)(t,"".concat(M,"-editable-card"),"editable-card"===g),(0,i.A)(t,"".concat(M,"-centered"),E),(0,i.A)(t,"".concat(M,"-mobile"),m.value),(0,i.A)(t,"".concat(M,"-editable"),"editable-card"===g),(0,i.A)(t,"".concat(M,"-rtl"),h.value),t),n.class)}),[c,(0,s.bF)(Fy,(0,o.A)((0,o.A)({destroyInactiveTabPane:x},O),{},{animated:p.value}),null)])}}}),Wy=(0,s.pM)({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Pe(jy(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:["tabBarExtraContent","leftExtra","rightExtra","moreIcon","addIcon","removeIcon","renderTabBar"],setup:function(e,t){var n=t.attrs,r=t.slots,i=t.emit,a=function(e){i("update:activeKey",e),i("change",e)};return function(){var t,i=Dy((0,B.MI)(null===(t=r.default)||void 0===t?void 0:t.call(r)));return(0,s.bF)(By,(0,o.A)((0,o.A)((0,o.A)({},ce(e,["onUpdate:activeKey"])),n),{},{onChange:a,tabs:i}),r)}}}),zy=Wy,Uy=function(){return{tab:Fe.A.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}},Ky=(0,s.pM)({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:Uy(),slots:["closeIcon","tab"],setup:function(e,t){var n=t.attrs,r=t.slots,o=(0,s.KR)(e.forceRender);(0,s.wB)([function(){return e.active},function(){return e.destroyInactiveTabPane}],(function(){e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)}),{immediate:!0});var i=(0,s.EW)((function(){return e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"}}));return function(){var t,a=e.prefixCls,l=e.forceRender,u=e.id,c=e.active,f=e.tabKey;return(0,s.bF)("div",{id:u&&"".concat(u,"-panel-").concat(f),role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&"".concat(u,"-tab-").concat(f),"aria-hidden":!c,style:[i.value,n.style],class:["".concat(a,"-tabpane"),c&&"".concat(a,"-tabpane-active"),n.class]},[(c||o.value||l)&&(null===(t=r.default)||void 0===t?void 0:t.call(r))])}}});zy.TabPane=Ky,zy.install=function(e){return e.component(zy.name,zy),e.component(Ky.name,Ky),e};var Vy,Hy=zy,qy=function(){return(0,Ea.A)()&&window.document.documentElement},Gy=function(e){if((0,Ea.A)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1},Yy=function(e,t){if(!Gy(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function $y(e,t){return Array.isArray(e)||void 0===t?Gy(e):Yy(e,t)}var Xy=function(){if(!qy())return!1;if(void 0!==Vy)return Vy;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Vy=1===e.scrollHeight,document.body.removeChild(e),Vy},Jy=$y,Qy=function(){var e=(0,s.KR)(!1);return(0,s.sV)((function(){e.value=Xy()})),e},Zy=Symbol("rowContextKey"),eb=function(e){(0,s.Gt)(Zy,e)},tb=function(){return(0,s.WQ)(Zy,{gutter:(0,s.EW)((function(){})),wrap:(0,s.EW)((function(){})),supportFlexGap:(0,s.EW)((function(){}))})},nb=eb,rb=((0,$.PV)("top","middle","bottom","stretch"),(0,$.PV)("start","end","center","space-around","space-between"),function(){return{align:String,justify:String,prefixCls:String,gutter:{type:[Number,Array,Object],default:0},wrap:{type:Boolean,default:void 0}}}),ob=(0,s.pM)({compatConfig:{MODE:3},name:"ARow",props:rb(),setup:function(e,t){var n,r=t.slots,o=(0,se.A)("row",e),a=o.prefixCls,u=o.direction,c=(0,s.KR)({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0}),f=Qy();(0,s.sV)((function(){n=rl.subscribe((function(t){var n=e.gutter||0;(!Array.isArray(n)&&"object"===(0,Ie.A)(n)||Array.isArray(n)&&("object"===(0,Ie.A)(n[0])||"object"===(0,Ie.A)(n[1])))&&(c.value=t)}))})),(0,s.xo)((function(){rl.unsubscribe(n)}));var d=(0,s.EW)((function(){var t=[0,0],n=e.gutter,r=void 0===n?0:n,o=Array.isArray(r)?r:[r,0];return o.forEach((function(e,n){if("object"===(0,Ie.A)(e))for(var r=0;r<Js.length;r++){var o=Js[r];if(c.value[o]&&void 0!==e[o]){t[n]=e[o];break}}else t[n]=e||0})),t}));nb({gutter:d,supportFlexGap:f,wrap:(0,s.EW)((function(){return e.wrap}))});var h=(0,s.EW)((function(){var t;return(0,l.A)(a.value,(t={},(0,i.A)(t,"".concat(a.value,"-no-wrap"),!1===e.wrap),(0,i.A)(t,"".concat(a.value,"-").concat(e.justify),e.justify),(0,i.A)(t,"".concat(a.value,"-").concat(e.align),e.align),(0,i.A)(t,"".concat(a.value,"-rtl"),"rtl"===u.value),t))})),p=(0,s.EW)((function(){var e=d.value,t={},n=e[0]>0?"".concat(e[0]/-2,"px"):void 0,r=e[1]>0?"".concat(e[1]/-2,"px"):void 0;return n&&(t.marginLeft=n,t.marginRight=n),f.value?t.rowGap="".concat(e[1],"px"):r&&(t.marginTop=r,t.marginBottom=r),t}));return function(){var e;return(0,s.bF)("div",{class:h.value,style:p.value},[null===(e=r.default)||void 0===e?void 0:e.call(r)])}}}),ib=ob,ab=(0,$.GU)(ib);function sb(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}var lb=function(){return{span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},xxxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}},ub=(0,s.pM)({compatConfig:{MODE:3},name:"ACol",props:lb(),setup:function(e,t){var n=t.slots,r=tb(),a=r.gutter,u=r.supportFlexGap,c=r.wrap,f=(0,se.A)("col",e),d=f.prefixCls,h=f.direction,p=(0,s.EW)((function(){var t,n=e.span,r=e.order,a=e.offset,s=e.push,u=e.pull,c=d.value,f={};return["xs","sm","md","lg","xl","xxl","xxxl"].forEach((function(t){var n,r={},a=e[t];"number"===typeof a?r.span=a:"object"===(0,Ie.A)(a)&&(r=a||{}),f=(0,o.A)((0,o.A)({},f),{},(n={},(0,i.A)(n,"".concat(c,"-").concat(t,"-").concat(r.span),void 0!==r.span),(0,i.A)(n,"".concat(c,"-").concat(t,"-order-").concat(r.order),r.order||0===r.order),(0,i.A)(n,"".concat(c,"-").concat(t,"-offset-").concat(r.offset),r.offset||0===r.offset),(0,i.A)(n,"".concat(c,"-").concat(t,"-push-").concat(r.push),r.push||0===r.push),(0,i.A)(n,"".concat(c,"-").concat(t,"-pull-").concat(r.pull),r.pull||0===r.pull),(0,i.A)(n,"".concat(c,"-rtl"),"rtl"===h.value),n))})),(0,l.A)(c,(t={},(0,i.A)(t,"".concat(c,"-").concat(n),void 0!==n),(0,i.A)(t,"".concat(c,"-order-").concat(r),r),(0,i.A)(t,"".concat(c,"-offset-").concat(a),a),(0,i.A)(t,"".concat(c,"-push-").concat(s),s),(0,i.A)(t,"".concat(c,"-pull-").concat(u),u),t),f)})),v=(0,s.EW)((function(){var t=e.flex,n=a.value,r={};if(n&&n[0]>0){var o="".concat(n[0]/2,"px");r.paddingLeft=o,r.paddingRight=o}if(n&&n[1]>0&&!u.value){var i="".concat(n[1]/2,"px");r.paddingTop=i,r.paddingBottom=i}return t&&(r.flex=sb(t),!1!==c.value||r.minWidth||(r.minWidth=0)),r}));return function(){var e;return(0,s.bF)("div",{class:p.value,style:v.value},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),cb=(0,$.GU)(ub),fb=n(88496),db=n(15647),hb="[object Object]",pb=Function.prototype,vb=Object.prototype,gb=pb.toString,mb=vb.hasOwnProperty,yb=gb.call(Object);function bb(e){if(!(0,Qr.A)(e)||(0,fb.A)(e)!=hb)return!1;var t=(0,db.A)(e);if(null===t)return!0;var n=mb.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&gb.call(n)==yb}var wb=bb,Ab=Hy.TabPane,xb=function(){return{prefixCls:String,title:Fe.A.any,extra:Fe.A.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:Fe.A.any,tabList:{type:Array},tabBarExtraContent:Fe.A.any,activeTabKey:String,defaultActiveTabKey:String,cover:Fe.A.any,onTabChange:{type:Function}}},Cb=(0,s.pM)({compatConfig:{MODE:3},name:"ACard",props:xb(),slots:["title","extra","tabBarExtraContent","actions","cover","customTab"],setup:function(e,t){var n=t.slots,r=(0,se.A)("card",e),o=r.prefixCls,a=r.direction,l=r.size,u=function(e){var t=e.map((function(t,n){return(0,s.vv)(t)&&!(0,B.sG)(t)||!(0,s.vv)(t)?(0,s.bF)("li",{style:{width:"".concat(100/e.length,"%")},key:"action-".concat(n)},[(0,s.bF)("span",null,[t])]):null}));return t},c=function(t){var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},f=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.forEach((function(t){t&&wb(t.type)&&t.type.__ANT_CARD_GRID&&(e=!0)})),e};return function(){var t,r,d,h,p,v,g,m,y,b=e.headStyle,w=void 0===b?{}:b,A=e.bodyStyle,x=void 0===A?{}:A,C=e.loading,S=e.bordered,_=void 0===S||S,k=e.type,E=e.tabList,O=e.hoverable,F=e.activeTabKey,T=e.defaultActiveTabKey,P=e.tabBarExtraContent,N=void 0===P?(0,B.cH)(null===(t=n.tabBarExtraContent)||void 0===t?void 0:t.call(n)):P,M=e.title,L=void 0===M?(0,B.cH)(null===(r=n.title)||void 0===r?void 0:r.call(n)):M,I=e.extra,R=void 0===I?(0,B.cH)(null===(d=n.extra)||void 0===d?void 0:d.call(n)):I,j=e.actions,D=void 0===j?(0,B.cH)(null===(h=n.actions)||void 0===h?void 0:h.call(n)):j,W=e.cover,z=void 0===W?(0,B.cH)(null===(p=n.cover)||void 0===p?void 0:p.call(n)):W,U=(0,B.MI)(null===(v=n.default)||void 0===v?void 0:v.call(n)),K=o.value,V=(g={},(0,i.A)(g,"".concat(K),!0),(0,i.A)(g,"".concat(K,"-loading"),C),(0,i.A)(g,"".concat(K,"-bordered"),_),(0,i.A)(g,"".concat(K,"-hoverable"),!!O),(0,i.A)(g,"".concat(K,"-contain-grid"),f(U)),(0,i.A)(g,"".concat(K,"-contain-tabs"),E&&E.length),(0,i.A)(g,"".concat(K,"-").concat(l.value),l.value),(0,i.A)(g,"".concat(K,"-type-").concat(k),!!k),(0,i.A)(g,"".concat(K,"-rtl"),"rtl"===a.value),g),H=0===x.padding||"0px"===x.padding?{padding:"24px"}:void 0,q=(0,s.bF)("div",{class:"".concat(K,"-loading-block")},null),G=(0,s.bF)("div",{class:"".concat(K,"-loading-content"),style:H},[(0,s.bF)(ab,{gutter:8},{default:function(){return[(0,s.bF)(cb,{span:22},{default:function(){return[q]}})]}}),(0,s.bF)(ab,{gutter:8},{default:function(){return[(0,s.bF)(cb,{span:8},{default:function(){return[q]}}),(0,s.bF)(cb,{span:15},{default:function(){return[q]}})]}}),(0,s.bF)(ab,{gutter:8},{default:function(){return[(0,s.bF)(cb,{span:6},{default:function(){return[q]}}),(0,s.bF)(cb,{span:18},{default:function(){return[q]}})]}}),(0,s.bF)(ab,{gutter:8},{default:function(){return[(0,s.bF)(cb,{span:13},{default:function(){return[q]}}),(0,s.bF)(cb,{span:9},{default:function(){return[q]}})]}}),(0,s.bF)(ab,{gutter:8},{default:function(){return[(0,s.bF)(cb,{span:4},{default:function(){return[q]}}),(0,s.bF)(cb,{span:3},{default:function(){return[q]}}),(0,s.bF)(cb,{span:16},{default:function(){return[q]}})]}})]),Y=void 0!==F,$=(m={size:"large"},(0,i.A)(m,Y?"activeKey":"defaultActiveKey",Y?F:T),(0,i.A)(m,"onChange",c),(0,i.A)(m,"class","".concat(K,"-head-tabs")),m),X=E&&E.length?(0,s.bF)(Hy,$,{default:function(){return[E.map((function(e){var t=e.tab,r=e.slots,o=null===r||void 0===r?void 0:r.tab;(0,Wu.A)(!r,"Card","tabList slots is deprecated, Please use `customTab` instead.");var i=void 0!==t?t:n[o]?n[o](e):null;return i=(0,s.RG)(n,"customTab",e,(function(){return[i]})),(0,s.bF)(Ab,{tab:i,key:e.key,disabled:e.disabled},null)}))]},rightExtra:N?function(){return N}:null}):null;(L||R||X)&&(y=(0,s.bF)("div",{class:"".concat(K,"-head"),style:w},[(0,s.bF)("div",{class:"".concat(K,"-head-wrapper")},[L&&(0,s.bF)("div",{class:"".concat(K,"-head-title")},[L]),R&&(0,s.bF)("div",{class:"".concat(K,"-extra")},[R])]),X]));var J=z?(0,s.bF)("div",{class:"".concat(K,"-cover")},[z]):null,Q=(0,s.bF)("div",{class:"".concat(K,"-body"),style:x},[C?G:U]),Z=D&&D.length?(0,s.bF)("ul",{class:"".concat(K,"-actions")},[u(D)]):null;return(0,s.bF)("div",{class:V,ref:"cardContainerRef"},[y,J,U&&U.length?Q:null,Z])}}}),Sb=Cb,_b=function(){return{prefixCls:String,title:Fe.A.any,description:Fe.A.any,avatar:Fe.A.any}},kb=(0,s.pM)({compatConfig:{MODE:3},name:"ACardMeta",props:_b(),slots:["title","description","avatar"],setup:function(e,t){var n=t.slots,r=(0,se.A)("card",e),o=r.prefixCls;return function(){var t=(0,i.A)({},"".concat(o.value,"-meta"),!0),r=(0,B.rU)(n,e,"avatar"),a=(0,B.rU)(n,e,"title"),l=(0,B.rU)(n,e,"description"),u=r?(0,s.bF)("div",{class:"".concat(o.value,"-meta-avatar")},[r]):null,c=a?(0,s.bF)("div",{class:"".concat(o.value,"-meta-title")},[a]):null,f=l?(0,s.bF)("div",{class:"".concat(o.value,"-meta-description")},[l]):null,d=c||f?(0,s.bF)("div",{class:"".concat(o.value,"-meta-detail")},[c,f]):null;return(0,s.bF)("div",{class:t},[u,d])}}}),Eb=function(){return{prefixCls:String,hoverable:{type:Boolean,default:!0}}},Ob=(0,s.pM)({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:Eb(),setup:function(e,t){var n=t.slots,r=(0,se.A)("card",e),o=r.prefixCls,a=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(o.value,"-grid"),!0),(0,i.A)(t,"".concat(o.value,"-grid-hoverable"),e.hoverable),t}));return function(){var e;return(0,s.bF)("div",{class:a.value},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}});Sb.Meta=kb,Sb.Grid=Ob,Sb.install=function(e){return e.component(Sb.name,Sb),e.component(kb.name,kb),e.component(Ob.name,Ob),e};var Fb=Sb,Tb=function(){return{prefixCls:String,activeKey:{type:[Array,Number,String]},defaultActiveKey:{type:[Array,Number,String]},accordion:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},expandIcon:Function,openAnimation:Fe.A.object,expandIconPosition:Fe.A.oneOf((0,$.PV)("left","right")),collapsible:{type:String},ghost:{type:Boolean,default:void 0},onChange:Function,"onUpdate:activeKey":Function}},Pb=function(){return{openAnimation:Fe.A.object,prefixCls:String,header:Fe.A.any,headerClass:String,showArrow:{type:Boolean,default:void 0},isActive:{type:Boolean,default:void 0},destroyInactivePanel:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},accordion:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},expandIcon:Function,extra:Fe.A.any,panelKey:Fe.A.oneOfType([Fe.A.string,Fe.A.number]),collapsible:{type:String},role:String,onItemClick:{type:Function}}};function Nb(e){var t=e;if(!Array.isArray(t)){var n=(0,Ie.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map((function(e){return String(e)}))}var Mb=(0,s.pM)({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Pe(Tb(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:Df("ant-motion-collapse",!1),expandIconPosition:"left"}),slots:["expandIcon"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.emit,u=(0,s.KR)(Nb(Ml([e.activeKey,e.defaultActiveKey])));(0,s.wB)((function(){return e.activeKey}),(function(){u.value=Nb(e.activeKey)}),{deep:!0});var c=(0,se.A)("collapse",e),f=c.prefixCls,d=c.direction,h=(0,s.EW)((function(){var t=e.expandIconPosition;return void 0!==t?t:"rtl"===d.value?"right":"left"})),p=function(t){var n=e.expandIcon,o=void 0===n?r.expandIcon:n,i=o?o(t):(0,s.bF)(bc,{rotate:t.isActive?90:void 0},null);return(0,s.bF)("div",null,[(0,B.zO)(Array.isArray(o)?i[0]:i)?Bn(i,{class:"".concat(f.value,"-arrow")},!1):i])},v=function(t){void 0===e.activeKey&&(u.value=t);var n=e.accordion?t[0]:t;a("update:activeKey",n),a("change",n)},g=function(t){var n=u.value;if(e.accordion)n=n[0]===t?[]:[t];else{n=(0,z.A)(n);var r=n.indexOf(t),o=r>-1;o?n.splice(r,1):n.push(t)}v(n)},m=function(t,n){var r,o,i;if(!(0,B.sG)(t)){var a=u.value,s=e.accordion,l=e.destroyInactivePanel,c=e.collapsible,d=e.openAnimation,h=String(null!==(r=t.key)&&void 0!==r?r:n),v=t.props||{},m=v.header,y=void 0===m?null===(o=t.children)||void 0===o||null===(i=o.header)||void 0===i?void 0:i.call(o):m,b=v.headerClass,w=v.collapsible,A=v.disabled,x=!1;x=s?a[0]===h:a.indexOf(h)>-1;var C=null!==w&&void 0!==w?w:c;(A||""===A)&&(C="disabled");var S={key:h,panelKey:h,header:y,headerClass:b,isActive:x,prefixCls:f.value,destroyInactivePanel:l,openAnimation:d,accordion:s,onItemClick:"disabled"===C?null:g,expandIcon:p,collapsible:C};return Bn(t,S)}},y=function(){var e;return(0,B.MI)(null===(e=r.default)||void 0===e?void 0:e.call(r)).map(m)};return function(){var t,r=e.accordion,a=e.bordered,u=e.ghost,c=(0,l.A)((t={},(0,i.A)(t,f.value,!0),(0,i.A)(t,"".concat(f.value,"-borderless"),!a),(0,i.A)(t,"".concat(f.value,"-icon-position-").concat(h.value),!0),(0,i.A)(t,"".concat(f.value,"-rtl"),"rtl"===d.value),(0,i.A)(t,"".concat(f.value,"-ghost"),!!u),(0,i.A)(t,n.class,!!n.class),t));return(0,s.bF)("div",(0,o.A)((0,o.A)({class:c},(0,lm.xc)(n)),{},{style:n.style,role:r?"tablist":null}),[y()])}}}),Lb=(0,s.pM)({compatConfig:{MODE:3},name:"PanelContent",props:Pb(),setup:function(e,t){var n=t.slots,r=(0,s.KR)(!1);return(0,s.nT)((function(){(e.isActive||e.forceRender)&&(r.value=!0)})),function(){var t,o;if(!r.value)return null;var a=e.prefixCls,u=e.isActive,c=e.role;return(0,s.bF)("div",{ref:s.KR,class:(0,l.A)("".concat(a,"-content"),(t={},(0,i.A)(t,"".concat(a,"-content-active"),u),(0,i.A)(t,"".concat(a,"-content-inactive"),!u),t)),role:c},[(0,s.bF)("div",{class:"".concat(a,"-content-box")},[null===(o=n.default)||void 0===o?void 0:o.call(n)])])}}}),Ib=(0,s.pM)({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Pe(Pb(),{showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1}),slots:["expandIcon","extra","header"],setup:function(e,t){var n=t.slots,r=t.emit,a=t.attrs;(0,Wu.A)(void 0===e.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');var u=(0,se.A)("collapse",e),c=u.prefixCls,f=function(){r("itemClick",e.panelKey)},d=function(e){"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||f()};return function(){var t,r,u,h,p=e.header,v=void 0===p?null===(t=n.header)||void 0===t?void 0:t.call(n):p,g=e.headerClass,m=e.isActive,y=e.showArrow,b=e.destroyInactivePanel,w=e.accordion,A=e.forceRender,x=e.openAnimation,C=e.expandIcon,S=void 0===C?n.expandIcon:C,_=e.extra,k=void 0===_?null===(r=n.extra)||void 0===r?void 0:r.call(n):_,E=e.collapsible,O="disabled"===E,F=c.value,T=(0,l.A)("".concat(F,"-header"),(u={},(0,i.A)(u,g,g),(0,i.A)(u,"".concat(F,"-header-collapsible-only"),"header"===E),u)),P=(0,l.A)((h={},(0,i.A)(h,"".concat(F,"-item"),!0),(0,i.A)(h,"".concat(F,"-item-active"),m),(0,i.A)(h,"".concat(F,"-item-disabled"),O),(0,i.A)(h,"".concat(F,"-no-arrow"),!y),(0,i.A)(h,"".concat(a.class),!!a.class),h)),N=(0,s.bF)("i",{class:"arrow"},null);y&&"function"===typeof S&&(N=S(e));var M=(0,s.bo)((0,s.bF)(Lb,{prefixCls:F,isActive:m,forceRender:A,role:w?"tabpanel":null},{default:n.default}),[[s.aG,m]]),L=(0,o.A)({appear:!1,css:!1},x);return(0,s.bF)("div",(0,o.A)((0,o.A)({},a),{},{class:P}),[(0,s.bF)("div",{class:T,onClick:function(){return"header"!==E&&f()},role:w?"tab":"button",tabindex:O?-1:0,"aria-expanded":m,onKeypress:d},[y&&N,"header"===E?(0,s.bF)("span",{onClick:f,class:"".concat(F,"-header-text")},[v]):v,k&&(0,s.bF)("div",{class:"".concat(F,"-extra")},[k])]),(0,s.bF)(so.Ay,L,{default:function(){return[!b||m?M:null]}})])}}});Mb.Panel=Ib,Mb.install=function(e){return e.component(Mb.name,Mb),e.component(Ib.name,Ib),e};var Rb=Mb,jb=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()},Db=function(e){var t=/[height|width]$/;return t.test(e)},Bb=function(e){var t="",n=Object.keys(e);return n.forEach((function(r,o){var i=e[r];r=jb(r),Db(r)&&"number"===typeof i&&(i+="px"),t+=!0===i?r:!1===i?"not "+r:"("+r+": "+i+")",o<n.length-1&&(t+=" and ")})),t};function Wb(e){var t="";return"string"===typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=Bb(n),r<e.length-1&&(t+=", ")})),t):Bb(e)}var zb=n(63366),Ub={accessibility:{type:Boolean,default:!0},adaptiveHeight:{type:Boolean,default:!1},afterChange:Fe.A.any.def(null),arrows:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},autoplaySpeed:Fe.A.number.def(3e3),beforeChange:Fe.A.any.def(null),centerMode:{type:Boolean,default:!1},centerPadding:Fe.A.string.def("50px"),cssEase:Fe.A.string.def("ease"),dots:{type:Boolean,default:!1},dotsClass:Fe.A.string.def("slick-dots"),draggable:{type:Boolean,default:!0},unslick:{type:Boolean,default:!1},easing:Fe.A.string.def("linear"),edgeFriction:Fe.A.number.def(.35),fade:{type:Boolean,default:!1},focusOnSelect:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},initialSlide:Fe.A.number.def(0),lazyLoad:Fe.A.any.def(null),verticalSwiping:{type:Boolean,default:!1},asNavFor:Fe.A.any.def(null),pauseOnDotsHover:{type:Boolean,default:!1},pauseOnFocus:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},responsive:Fe.A.array,rows:Fe.A.number.def(1),rtl:{type:Boolean,default:!1},slide:Fe.A.string.def("div"),slidesPerRow:Fe.A.number.def(1),slidesToScroll:Fe.A.number.def(1),slidesToShow:Fe.A.number.def(1),speed:Fe.A.number.def(500),swipe:{type:Boolean,default:!0},swipeEvent:Fe.A.any.def(null),swipeToSlide:{type:Boolean,default:!1},touchMove:{type:Boolean,default:!0},touchThreshold:Fe.A.number.def(5),useCSS:{type:Boolean,default:!0},useTransform:{type:Boolean,default:!0},variableWidth:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},waitForAnimate:{type:Boolean,default:!0},children:Fe.A.array,__propsSymbol__:Fe.A.any},Kb=Ub,Vb={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},Hb=Vb;function qb(e,t,n){return Math.max(t,Math.min(e,n))}var Gb=function(e){var t=["touchstart","touchmove","wheel"];t.includes(e.type)||e.preventDefault()},Yb=function(e){for(var t=[],n=$b(e),r=Xb(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},$b=function(e){return e.currentSlide-Jb(e)},Xb=function(e){return e.currentSlide+Qb(e)},Jb=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},Qb=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},Zb=function(e){return e&&e.offsetWidth||0},ew=function(e){return e&&e.offsetHeight||0},tw=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.startX-e.curX,o=e.startY-e.curY,i=Math.atan2(o,r);return t=Math.round(180*i/Math.PI),t<0&&(t=360-Math.abs(t)),t<=45&&t>=0||t<=360&&t>=315?"left":t>=135&&t<=225?"right":!0===n?t>=35&&t<=135?"up":"down":"vertical"},nw=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},rw=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},ow=function(e){var t,n=e.children.length,r=e.listRef,i=Math.ceil(Zb(r)),a=e.trackRef,s=Math.ceil(Zb(a));if(e.vertical)t=i;else{var l=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(l*=i/100),t=Math.ceil((i-l)/e.slidesToShow)}var u=r&&ew(r.querySelector('[data-index="0"]')),c=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var d=e.lazyLoadedList||[],h=Yb((0,o.A)((0,o.A)({},e),{},{currentSlide:f,lazyLoadedList:d}),e);d=d.concat(h);var p={slideCount:n,slideWidth:t,listWidth:i,trackWidth:s,currentSlide:f,slideHeight:u,listHeight:c,lazyLoadedList:d};return null===e.autoplaying&&e.autoplay&&(p["autoplaying"]="playing"),p},iw=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,a=e.index,s=e.slideCount,l=e.lazyLoad,u=e.currentSlide,c=e.centerMode,f=e.slidesToScroll,d=e.slidesToShow,h=e.useCSS,p=e.lazyLoadedList;if(t&&n)return{};var v,g,m,y=a,b={},w={},A=i?a:qb(a,0,s-1);if(r){if(!i&&(a<0||a>=s))return{};a<0?y=a+s:a>=s&&(y=a-s),l&&p.indexOf(y)<0&&(p=p.concat(y)),b={animating:!0,currentSlide:y,lazyLoadedList:p,targetSlide:y},w={animating:!1,targetSlide:y}}else v=y,y<0?(v=y+s,i?s%f!==0&&(v=s-s%f):v=0):!nw(e)&&y>u?y=v=u:c&&y>=s?(y=i?s:s-1,v=i?0:s-1):y>=s&&(v=y-s,i?s%f!==0&&(v=0):v=s-d),!i&&y+d>=s&&(v=s-d),g=mw((0,o.A)((0,o.A)({},e),{},{slideIndex:y})),m=mw((0,o.A)((0,o.A)({},e),{},{slideIndex:v})),i||(g===m&&(y=v),g=m),l&&(p=p.concat(Yb((0,o.A)((0,o.A)({},e),{},{currentSlide:y})))),h?(b={animating:!0,currentSlide:v,trackStyle:gw((0,o.A)((0,o.A)({},e),{},{left:g})),lazyLoadedList:p,targetSlide:A},w={animating:!1,currentSlide:v,trackStyle:vw((0,o.A)((0,o.A)({},e),{},{left:m})),swipeLeft:null,targetSlide:A}):b={currentSlide:v,trackStyle:vw((0,o.A)((0,o.A)({},e),{},{left:m})),lazyLoadedList:p,targetSlide:A};return{state:b,nextState:w}},aw=function(e,t){var n,r,i,a=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,u=e.currentSlide,c=e.targetSlide,f=e.lazyLoad,d=e.infinite,h=l%a!==0,p=h?0:(l-u)%a;if("previous"===t.message)r=0===p?a:s-p,i=u-r,f&&!d&&(n=u-r,i=-1===n?l-1:n),d||(i=c-a);else if("next"===t.message)r=0===p?a:p,i=u+r,f&&!d&&(i=(u+a)%l+p),d||(i=c+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,d){var v=Aw((0,o.A)((0,o.A)({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===v?i-=l:i<t.currentSlide&&"right"===v&&(i+=l)}}else"index"===t.message&&(i=Number(t.index));return i},sw=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},lw=function(e,t,n){return"IMG"===e.target.tagName&&Gb(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},uw=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,a=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,u=t.currentSlide,c=t.edgeFriction,f=t.edgeDragged,d=t.onEdge,h=t.swiped,p=t.swiping,v=t.slideCount,g=t.slidesToScroll,m=t.infinite,y=t.touchObject,b=t.swipeEvent,w=t.listHeight,A=t.listWidth;if(!n){if(r)return Gb(e);var x;i&&a&&s&&Gb(e);var C={},S=mw(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var _=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!s&&!p&&_>10)return{scrolling:!0};s&&(y.swipeLength=_);var k=(l?-1:1)*(y.curX>y.startX?1:-1);s&&(k=y.curY>y.startY?1:-1);var E=Math.ceil(v/g),O=tw(t.touchObject,s),F=y.swipeLength;return m||(0===u&&("right"===O||"down"===O)||u+1>=E&&("left"===O||"up"===O)||!nw(t)&&("left"===O||"up"===O))&&(F=y.swipeLength*c,!1===f&&d&&(d(O),C["edgeDragged"]=!0)),!h&&b&&(b(O),C["swiped"]=!0),x=i?S+F*(w/A)*k:l?S-F*k:S+F*k,s&&(x=S+F*k),C=(0,o.A)((0,o.A)({},C),{},{touchObject:y,swipeLeft:x,trackStyle:vw((0,o.A)((0,o.A)({},t),{},{left:x}))}),Math.abs(y.curX-y.startX)<.8*Math.abs(y.curY-y.startY)?C:(y.swipeLength>10&&(C["swiping"]=!0,Gb(e)),C)}},cw=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,a=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,u=t.listHeight,c=t.swipeToSlide,f=t.scrolling,d=t.onSwipe,h=t.targetSlide,p=t.currentSlide,v=t.infinite;if(!n)return r&&Gb(e),{};var g=l?u/s:a/s,m=tw(i,l),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return y;if(!i.swipeLength)return y;if(i.swipeLength>g){var b,w;Gb(e),d&&d(m);var A=v?p:h;switch(m){case"left":case"up":w=A+hw(t),b=c?dw(t,w):w,y["currentDirection"]=0;break;case"right":case"down":w=A-hw(t),b=c?dw(t,w):w,y["currentDirection"]=1;break;default:b=A}y["triggerSlideHandler"]=b}else{var x=mw(t);y["trackStyle"]=gw((0,o.A)((0,o.A)({},t),{},{left:x}))}return y},fw=function(e){var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];while(n<t)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o},dw=function(e,t){var n=fw(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},hw=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every((function(r){if(e.vertical){if(r.offsetTop+ew(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+Zb(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide,a=Math.abs(n.dataset.index-i)||1;return a}return e.slidesToScroll},pw=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:void 0},vw=function(e){var t,n;pw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=ww(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=(0,o.A)((0,o.A)({},i),{},{WebkitTransform:a,transform:s,msTransform:l})}else e.vertical?i["top"]=e.left:i["left"]=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t+"px"),n&&(i.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},gw=function(e){pw(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=vw(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},mw=function(e){if(e.unslick)return 0;pw(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,s=e.slideCount,l=e.slidesToShow,u=e.slidesToScroll,c=e.slideWidth,f=e.listWidth,d=e.variableWidth,h=e.slideHeight,p=e.fade,v=e.vertical,g=0,m=0;if(p||1===e.slideCount)return 0;var y=0;if(i?(y=-yw(e),s%u!==0&&r+u>s&&(y=-(r>s?l-(r-s):s%u)),a&&(y+=parseInt(l/2))):(s%u!==0&&r+u>s&&(y=l-s%u),a&&(y=parseInt(l/2))),g=y*c,m=y*h,t=v?r*h*-1+m:r*c*-1+g,!0===d){var b,w=o;if(b=r+yw(e),n=w&&w.childNodes[b],t=n?-1*n.offsetLeft:0,!0===a){b=i?r+yw(e):r,n=w&&w.children[b],t=0;for(var A=0;A<b;A++)t-=w&&w.children[A]&&w.children[A].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(f-n.offsetWidth)/2}}return t},yw=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},bw=function(e){return e.unslick||!e.infinite?0:e.slideCount},ww=function(e){return 1===e.slideCount?1:yw(e)+e.slideCount+bw(e)},Aw=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+xw(e)?"left":"right":e.targetSlide<e.currentSlide-Cw(e)?"right":"left"},xw=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2===0&&(i+=1),i}return r?0:t-1},Cw=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!==0||(i+=1),i}return r?t-1:0},Sw=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)},_w=function(e){var t,n,r,o;o=e.rtl?e.slideCount-1-e.index:e.index;var i,a=o<0||o>=e.slideCount;e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,i=e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide;var s=o===i;return{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":a,"slick-current":s}},kw=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth+("number"===typeof e.slideWidth?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},Ew=function(e,t){return e.key+"-"+t},Ow=function(e,t){var n,r=[],i=[],a=[],u=t.length,c=$b(e),f=Xb(e);return t.forEach((function(t,d){var h,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};h=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?t:(0,s.bF)("div");var v=kw((0,o.A)((0,o.A)({},e),{},{index:d})),g=h.props.class||"",m=_w((0,o.A)((0,o.A)({},e),{},{index:d}));if(r.push(zn(h,{key:"original"+Ew(h,d),tabindex:"-1","data-index":d,"aria-hidden":!m["slick-active"],class:(0,l.A)(m,g),style:(0,o.A)((0,o.A)({outline:"none"},h.props.style||{}),v),onClick:function(){e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&!1===e.fade){var y=u-d;y<=yw(e)&&u!==e.slidesToShow&&(n=-y,n>=c&&(h=t),m=_w((0,o.A)((0,o.A)({},e),{},{index:n})),i.push(zn(h,{key:"precloned"+Ew(h,n),class:(0,l.A)(m,g),tabindex:"-1","data-index":n,"aria-hidden":!m["slick-active"],style:(0,o.A)((0,o.A)({},h.props.style||{}),v),onClick:function(){e.focusOnSelect&&e.focusOnSelect(p)}}))),u!==e.slidesToShow&&(n=u+d,n<f&&(h=t),m=_w((0,o.A)((0,o.A)({},e),{},{index:n})),a.push(zn(h,{key:"postcloned"+Ew(h,n),tabindex:"-1","data-index":n,"aria-hidden":!m["slick-active"],class:(0,l.A)(m,g),style:(0,o.A)((0,o.A)({},h.props.style||{}),v),onClick:function(){e.focusOnSelect&&e.focusOnSelect(p)}})))}})),e.rtl?i.concat(r,a).reverse():i.concat(r,a)},Fw=function(e,t){var n=t.attrs,r=t.slots,i=Ow(n,(0,B.MI)(null===r||void 0===r?void 0:r.default())),a=n.onMouseenter,l=n.onMouseover,u=n.onMouseleave,c={onMouseenter:a,onMouseover:l,onMouseleave:u},f=(0,o.A)({class:"slick-track",style:n.trackStyle},c);return(0,s.bF)("div",f,[i])};Fw.inheritAttrs=!1;var Tw=Fw,Pw=function(e){var t;return t=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},Nw=function(e,t){for(var n=t.attrs,r=n.slideCount,i=n.slidesToScroll,a=n.slidesToShow,u=n.infinite,c=n.currentSlide,f=n.appendDots,d=n.customPaging,h=n.clickHandler,p=n.dotsClass,v=n.onMouseenter,g=n.onMouseover,m=n.onMouseleave,y=Pw({slideCount:r,slidesToScroll:i,slidesToShow:a,infinite:u}),b={onMouseenter:v,onMouseover:g,onMouseleave:m},w=[],A=function(){var e=(x+1)*i-1,t=u?e:qb(e,0,r-1),n=t-(i-1),o=u?n:qb(n,0,r-1),a=(0,l.A)({"slick-active":u?c>=o&&c<=t:c===o}),f={message:"dots",index:x,slidesToScroll:i,currentSlide:c};function p(e){e&&e.preventDefault(),h(f)}w=w.concat((0,s.bF)("li",{key:x,class:a},[Bn(d({i:x}),{onClick:p})]))},x=0;x<y;x++)A();return Bn(f({dots:w}),(0,o.A)({class:p},b))};Nw.inheritAttrs=!1;var Mw=Nw;function Lw(){}function Iw(e,t,n){n&&n.preventDefault(),t(e,n)}var Rw=function(e,t){var n=t.attrs,r=n.clickHandler,i=n.infinite,a=n.currentSlide,l=n.slideCount,u=n.slidesToShow,c={"slick-arrow":!0,"slick-prev":!0},f=function(e){Iw({message:"previous"},r,e)};!i&&(0===a||l<=u)&&(c["slick-disabled"]=!0,f=Lw);var d,h={key:"0","data-role":"none",class:c,style:{display:"block"},onClick:f},p={currentSlide:a,slideCount:l};return d=n.prevArrow?Bn(n.prevArrow((0,o.A)((0,o.A)({},h),p)),{key:"0",class:c,style:{display:"block"},onClick:f},!1):(0,s.bF)("button",(0,o.A)({key:"0",type:"button"},h),[" ",(0,s.eW)("Previous")]),d};Rw.inheritAttrs=!1;var jw=function(e,t){var n=t.attrs,r=n.clickHandler,i=n.currentSlide,a=n.slideCount,u={"slick-arrow":!0,"slick-next":!0},c=function(e){Iw({message:"next"},r,e)};nw(n)||(u["slick-disabled"]=!0,c=Lw);var f,d={key:"1","data-role":"none",class:(0,l.A)(u),style:{display:"block"},onClick:c},h={currentSlide:i,slideCount:a};return f=n.nextArrow?Bn(n.nextArrow((0,o.A)((0,o.A)({},d),h)),{key:"1",class:(0,l.A)(u),style:{display:"block"},onClick:c},!1):(0,s.bF)("button",(0,o.A)({key:"1",type:"button"},d),[" ",(0,s.eW)("Next")]),f};jw.inheritAttrs=!1;var Dw=["animating"];function Bw(){}var Ww={name:"InnerSlider",mixins:[po],inheritAttrs:!1,props:(0,o.A)({},Kb),data:function(){this.preProps=(0,o.A)({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null;var e=this.ssrInit();return(0,o.A)((0,o.A)({},Hb),{},{currentSlide:this.initialSlide,slideCount:this.children.length},e)},watch:{__propsSymbol__:function(){for(var e=this,t=this.$props,n=(0,o.A)((0,o.A)({listRef:this.list,trackRef:this.track},t),this.$data),r=!1,i=0,a=Object.keys(this.preProps);i<a.length;i++){var s=a[i];if(!t.hasOwnProperty(s)){r=!0;break}if("object"!==(0,Ie.A)(t[s])&&"function"!==typeof t[s]&&"symbol"!==(0,Ie.A)(t[s])&&t[s]!==this.preProps[s]){r=!0;break}}this.updateState(n,r,(function(){e.currentSlide>=t.children.length&&e.changeSlide({message:"index",index:t.children.length-t.slidesToShow,currentSlide:e.currentSlide}),!e.preProps.autoplay&&t.autoplay?e.handleAutoPlay("playing"):t.autoplay?e.handleAutoPlay("update"):e.pause("paused")})),this.preProps=(0,o.A)({},t)}},mounted:function(){var e=this;if(this.__emit("init"),this.lazyLoad){var t=Yb((0,o.A)((0,o.A)({},this.$props),this.$data));t.length>0&&(this.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),this.__emit("lazyLoad",t))}this.$nextTick((function(){var t=(0,o.A)({listRef:e.list,trackRef:e.track,children:e.children},e.$props);e.updateState(t,!0,(function(){e.adaptHeight(),e.autoplay&&e.handleAutoPlay("playing")})),"progressive"===e.lazyLoad&&(e.lazyLoadTimer=setInterval(e.progressiveLazyLoad,1e3)),e.ro=new D((function(){e.animating?(e.onWindowResized(!1),e.callbackTimers.push(setTimeout((function(){return e.onWindowResized()}),e.speed))):e.onWindowResized()})),e.ro.observe(e.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(t){t.onfocus=e.$props.pauseOnFocus?e.onSlideFocus:null,t.onblur=e.$props.pauseOnFocus?e.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",e.onWindowResized):window.attachEvent("onresize",e.onWindowResized)}))},beforeUnmount:function(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach((function(e){return clearTimeout(e)})),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),null===(e=this.ro)||void 0===e||e.disconnect()},updated:function(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){var e=Yb((0,o.A)((0,o.A)({},this.$props),this.$data));e.length>0&&(this.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler:function(e){this.list=e},trackRefHandler:function(e){this.track=e},adaptHeight:function(){if(this.adaptiveHeight&&this.list){var e=this.list.querySelector('[data-index="'.concat(this.currentSlide,'"]'));this.list.style.height=ew(e)+"px"}},onWindowResized:function(e){var t=this;this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=(0,zb.A)((function(){return t.resizeWindow(e)}),50),this.debouncedResize()},resizeWindow:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Boolean(this.track);if(n){var r=(0,o.A)((0,o.A)({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(r,t,(function(){e.autoplay?e.handleAutoPlay("update"):e.pause("paused")})),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback}},updateState:function(e,t,n){var r=ow(e);e=(0,o.A)((0,o.A)((0,o.A)({},e),r),{},{slideIndex:r.currentSlide});var i=mw(e);e=(0,o.A)((0,o.A)({},e),{},{left:i});var a=vw(e);(t||this.children.length!==e.children.length)&&(r["trackStyle"]=a),this.setState(r,n)},ssrInit:function(){var e=this.children;if(this.variableWidth){var t=0,n=0,r=[],i=yw((0,o.A)((0,o.A)((0,o.A)({},this.$props),this.$data),{},{slideCount:e.length})),a=bw((0,o.A)((0,o.A)((0,o.A)({},this.$props),this.$data),{},{slideCount:e.length}));e.forEach((function(e){var n,o,i=(null===(n=e.props.style)||void 0===n||null===(o=n.width)||void 0===o?void 0:o.split("px")[0])||0;r.push(i),t+=i}));for(var s=0;s<i;s++)n+=r[r.length-1-s],t+=r[r.length-1-s];for(var l=0;l<a;l++)t+=r[l];for(var u=0;u<this.currentSlide;u++)n+=r[u];var c={width:t+"px",left:-n+"px"};if(this.centerMode){var f="".concat(r[this.currentSlide],"px");c.left="calc(".concat(c.left," + (100% - ").concat(f,") / 2 ) ")}return{trackStyle:c}}var d=e.length,h=(0,o.A)((0,o.A)((0,o.A)({},this.$props),this.$data),{},{slideCount:d}),p=yw(h)+bw(h)+d,v=100/this.slidesToShow*p,g=100/p,m=-g*(yw(h)+this.currentSlide)*v/100;this.centerMode&&(m+=(100-g*v/100)/2);var y={width:v+"%",left:m+"%"};return{slideWidth:g+"%",trackStyle:y}},checkImagesLoad:function(){var e=this,t=this.list&&this.list.querySelectorAll&&this.list.querySelectorAll(".slick-slide img")||[],n=t.length,r=0;Array.prototype.forEach.call(t,(function(t){var o=function(){return++r&&r>=n&&e.onWindowResized()};if(t.onclick){var i=t.onclick;t.onclick=function(){i(),t.parentNode.focus()}}else t.onclick=function(){return t.parentNode.focus()};t.onload||(e.$props.lazyLoad?t.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.speed))}:(t.onload=o,t.onerror=function(){o(),e.__emit("lazyLoadError")}))}))},progressiveLazyLoad:function(){for(var e=[],t=(0,o.A)((0,o.A)({},this.$props),this.$data),n=this.currentSlide;n<this.slideCount+bw(t);n++)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=this.currentSlide-1;r>=-yw(t);r--)if(this.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(this.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.$props,i=r.asNavFor,a=r.currentSlide,s=r.beforeChange,l=r.speed,u=r.afterChange,c=iw((0,o.A)((0,o.A)((0,o.A)({index:e},this.$props),this.$data),{},{trackRef:this.track,useCSS:this.useCSS&&!n})),f=c.state,d=c.nextState;if(f){s&&s(a,f.currentSlide);var h=f.lazyLoadedList.filter((function(e){return t.lazyLoadedList.indexOf(e)<0}));this.$attrs.onLazyLoad&&h.length>0&&this.__emit("lazyLoad",h),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),u&&u(a),delete this.animationEndCallback),this.setState(f,(function(){i&&t.asNavForIndex!==e&&(t.asNavForIndex=e,i.innerSlider.slideHandler(e)),d&&(t.animationEndCallback=setTimeout((function(){var e=d.animating,n=(0,je.A)(d,Dw);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),u&&u(f.currentSlide),delete t.animationEndCallback}))}),l))}))}},changeSlide:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,o.A)((0,o.A)({},this.$props),this.$data),r=aw(n,e);if((0===r||r)&&(!0===t?this.slideHandler(r,t):this.slideHandler(r),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){var i=this.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}},clickHandler:function(e){!1===this.clickable&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler:function(e){var t=sw(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},selectHandler:function(e){this.changeSlide(e)},disableBodyScroll:function(){var e=function(e){e=e||window.event,e.preventDefault&&e.preventDefault(),e.returnValue=!1};window.ontouchmove=e},enableBodyScroll:function(){window.ontouchmove=null},swipeStart:function(e){this.verticalSwiping&&this.disableBodyScroll();var t=lw(e,this.swipe,this.draggable);""!==t&&this.setState(t)},swipeMove:function(e){var t=uw(e,(0,o.A)((0,o.A)((0,o.A)({},this.$props),this.$data),{},{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t["swiping"]&&(this.clickable=!1),this.setState(t))},swipeEnd:function(e){var t=cw(e,(0,o.A)((0,o.A)((0,o.A)({},this.$props),this.$data),{},{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(t){var n=t["triggerSlideHandler"];delete t["triggerSlideHandler"],this.setState(t),void 0!==n&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())}},touchEnd:function(e){this.swipeEnd(e),this.clickable=!0},slickPrev:function(){var e=this;this.callbackTimers.push(setTimeout((function(){return e.changeSlide({message:"previous"})}),0))},slickNext:function(){var e=this;this.callbackTimers.push(setTimeout((function(){return e.changeSlide({message:"next"})}),0))},slickGoTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.currentSlide},n)}),0))},play:function(){var e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!nw((0,o.A)((0,o.A)({},this.$props),this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},handleAutoPlay:function(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);var t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause:function(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);var t=this.autoplaying;"paused"===e?this.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||this.setState({autoplaying:"focused"}):"playing"===t&&this.setState({autoplaying:"hovered"})},onDotsOver:function(){this.autoplay&&this.pause("hovered")},onDotsLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onTrackOver:function(){this.autoplay&&this.pause("hovered")},onTrackLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onSlideFocus:function(){this.autoplay&&this.pause("focused")},onSlideBlur:function(){this.autoplay&&"focused"===this.autoplaying&&this.handleAutoPlay("blur")},customPaging:function(e){var t=e.i;return(0,s.bF)("button",null,[t+1])},appendDots:function(e){var t=e.dots;return(0,s.bF)("ul",{style:{display:"block"}},[t])}},render:function(){var e,t,n,r,a=this,u=(0,l.A)("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),c=(0,o.A)((0,o.A)({},this.$props),this.$data),f=rw(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),d=this.$props.pauseOnHover;if(f=(0,o.A)((0,o.A)({},f),{},{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:d?this.onTrackLeave:Bw,onMouseover:d?this.onTrackOver:Bw}),!0===this.dots&&this.slideCount>=this.slidesToShow){var h=rw(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);h.customPaging=this.customPaging,h.appendDots=this.appendDots;var p=this.$slots,v=p.customPaging,g=p.appendDots;v&&(h.customPaging=v),g&&(h.appendDots=g);var m=this.$props.pauseOnDotsHover;h=(0,o.A)((0,o.A)({},h),{},{clickHandler:this.changeSlide,onMouseover:m?this.onDotsOver:Bw,onMouseleave:m?this.onDotsLeave:Bw}),t=(0,s.bF)(Mw,h,null)}var y=rw(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);y.clickHandler=this.changeSlide;var b=this.$slots,w=b.prevArrow,A=b.nextArrow;w&&(y.prevArrow=w),A&&(y.nextArrow=A),this.arrows&&(n=(0,s.bF)(Rw,y,null),r=(0,s.bF)(jw,y,null));var x=null;this.vertical&&(x={height:"number"===typeof this.listHeight?"".concat(this.listHeight,"px"):this.listHeight});var C=null;!1===this.vertical?!0===this.centerMode&&(C={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(C={padding:this.centerPadding+" 0px"});var S=(0,o.A)((0,o.A)({},x),C),_=this.touchMove,k=(e={ref:this.listRefHandler,class:"slick-list",style:S,onClick:this.clickHandler,onMousedown:_?this.swipeStart:Bw,onMousemove:this.dragging&&_?this.swipeMove:Bw,onMouseup:_?this.swipeEnd:Bw,onMouseleave:this.dragging&&_?this.swipeEnd:Bw},(0,i.A)(e,Q?"onTouchstartPassive":"onTouchstart",_?this.swipeStart:Bw),(0,i.A)(e,Q?"onTouchmovePassive":"onTouchmove",this.dragging&&_?this.swipeMove:Bw),(0,i.A)(e,"onTouchend",_?this.touchEnd:Bw),(0,i.A)(e,"onTouchcancel",this.dragging&&_?this.swipeEnd:Bw),(0,i.A)(e,"onKeydown",this.accessibility?this.keyHandler:Bw),e),E={class:u,dir:"ltr",style:this.$attrs.style};return this.unslick&&(k={class:"slick-list",ref:this.listRefHandler},E={class:u}),(0,s.bF)("div",E,[this.unslick?"":n,(0,s.bF)("div",k,[(0,s.bF)(Tw,f,{default:function(){return[a.children]}})]),this.unslick?"":r,this.unslick?"":t])}},zw=(0,s.pM)({name:"Slider",mixins:[po],inheritAttrs:!1,props:(0,o.A)({},Kb),data:function(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted:function(){var e=this;if(this.responsive){var t=this.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=Wb(0===r?{minWidth:0,maxWidth:n}:{minWidth:t[r-1]+1,maxWidth:n}),Sw()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=Wb({minWidth:t.slice(-1)[0]});Sw()&&this.media(n,(function(){e.setState({breakpoint:null})}))}},beforeUnmount:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))},methods:{innerSliderRefHandler:function(e){this.innerSlider=e},media:function(e,t){var n=window.matchMedia(e),r=function(e){var n=e.matches;n&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})},slickPrev:function(){var e;null===(e=this.innerSlider)||void 0===e||e.slickPrev()},slickNext:function(){var e;null===(e=this.innerSlider)||void 0===e||e.slickNext()},slickGoTo:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null===(t=this.innerSlider)||void 0===t||t.slickGoTo(e,n)},slickPause:function(){var e;null===(e=this.innerSlider)||void 0===e||e.pause("paused")},slickPlay:function(){var e;null===(e=this.innerSlider)||void 0===e||e.handleAutoPlay("play")}},render:function(){var e,t,n=this;this.breakpoint?(t=this.responsive.filter((function(e){return e.breakpoint===n.breakpoint})),e="unslick"===t[0].settings?"unslick":(0,o.A)((0,o.A)({},this.$props),t[0].settings)):e=(0,o.A)({},this.$props),e.centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var r=(0,B.$c)(this)||[];r=r.filter((function(e){return"string"===typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(e.variableWidth=!1);for(var i=[],a=null,l=0;l<r.length;l+=e.rows*e.slidesPerRow){for(var u=[],c=l;c<l+e.rows*e.slidesPerRow;c+=e.slidesPerRow){for(var f=[],d=c;d<c+e.slidesPerRow;d+=1){var h;if(e.variableWidth&&null!==(h=r[d].props)&&void 0!==h&&h.style&&(a=r[d].props.style.width),d>=r.length)break;f.push(Bn(r[d],{key:100*l+10*c+d,tabindex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}))}u.push((0,s.bF)("div",{key:10*l+c},[f]))}e.variableWidth?i.push((0,s.bF)("div",{key:l,style:{width:a}},[u])):i.push((0,s.bF)("div",{key:l},[u]))}if("unslick"===e){var p="regular slider "+(this.className||"");return(0,s.bF)("div",{class:p},[r])}i.length<=e.slidesToShow&&(e.unslick=!0);var v=(0,o.A)((0,o.A)((0,o.A)({},this.$attrs),e),{},{children:i,ref:this.innerSliderRefHandler});return(0,s.bF)(Ww,(0,o.A)((0,o.A)({},v),{},{__propsSymbol__:[]}),this.$slots)}}),Uw=zw,Kw=["class","style"],Vw=function(){return{effect:String,dots:{type:Boolean,default:!0},vertical:{type:Boolean,default:void 0},autoplay:{type:Boolean,default:void 0},easing:String,beforeChange:Function,afterChange:Function,prefixCls:String,accessibility:{type:Boolean,default:void 0},nextArrow:Fe.A.any,prevArrow:Fe.A.any,pauseOnHover:{type:Boolean,default:void 0},adaptiveHeight:{type:Boolean,default:void 0},arrows:{type:Boolean,default:!1},autoplaySpeed:Number,centerMode:{type:Boolean,default:void 0},centerPadding:String,cssEase:String,dotsClass:String,draggable:{type:Boolean,default:!1},fade:{type:Boolean,default:void 0},focusOnSelect:{type:Boolean,default:void 0},infinite:{type:Boolean,default:void 0},initialSlide:Number,lazyLoad:String,rtl:{type:Boolean,default:void 0},slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:{type:Boolean,default:void 0},swipeToSlide:{type:Boolean,default:void 0},swipeEvent:Function,touchMove:{type:Boolean,default:void 0},touchThreshold:Number,variableWidth:{type:Boolean,default:void 0},useCSS:{type:Boolean,default:void 0},slickGoTo:Number,responsive:Array,dotPosition:{type:String,default:void 0},verticalSwiping:{type:Boolean,default:!1}}},Hw=(0,s.pM)({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:Vw(),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose,u=(0,s.KR)(),c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];null===(t=u.value)||void 0===t||t.slickGoTo(e,n)};a({goTo:c,autoplay:function(e){var t,n;null===(t=u.value)||void 0===t||null===(n=t.innerSlider)||void 0===n||n.handleAutoPlay(e)},prev:function(){var e;null===(e=u.value)||void 0===e||e.slickPrev()},next:function(){var e;null===(e=u.value)||void 0===e||e.slickNext()},innerSlider:(0,s.EW)((function(){var e;return null===(e=u.value)||void 0===e?void 0:e.innerSlider}))}),(0,s.nT)((function(){(0,Dn.A)(void 0===e.vertical,"Carousel","`vertical` is deprecated, please use `dotPosition` instead.")}));var f=(0,se.A)("carousel",e),d=f.prefixCls,h=f.direction,p=(0,s.EW)((function(){return e.dotPosition?e.dotPosition:void 0!==e.vertical&&e.vertical?"right":"bottom"})),v=(0,s.EW)((function(){return"left"===p.value||"right"===p.value})),g=(0,s.EW)((function(){var t,n="slick-dots";return(0,l.A)((t={},(0,i.A)(t,n,!0),(0,i.A)(t,"".concat(n,"-").concat(p.value),!0),(0,i.A)(t,"".concat(e.dotsClass),!!e.dotsClass),t))}));return function(){var t,a=e.dots,c=e.arrows,f=e.draggable,p=e.effect,m=r.class,y=r.style,b=(0,je.A)(r,Kw),w="fade"===p||e.fade,A=(0,l.A)(d.value,(t={},(0,i.A)(t,"".concat(d.value,"-rtl"),"rtl"===h.value),(0,i.A)(t,"".concat(d.value,"-vertical"),v.value),(0,i.A)(t,"".concat(m),!!m),t));return(0,s.bF)("div",{class:A,style:y},[(0,s.bF)(Uw,(0,o.A)((0,o.A)((0,o.A)({ref:u},e),b),{},{dots:!!a,dotsClass:g.value,arrows:c,draggable:f,fade:w,vertical:v.value}),n)])}}}),qw=(0,$.GU)(Hw),Gw="__RC_CASCADER_SPLIT__",Yw="SHOW_PARENT",$w="SHOW_CHILD";function Xw(e){return e.join(Gw)}function Jw(e){return e.map(Xw)}function Qw(e){return e.split(Gw)}function Zw(e){var t=e||{},n=t.label,r=t.value,o=t.children,i=r||"value";return{label:n||"label",value:i,key:i,children:o||"children"}}function eA(e,t){var n,r;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(r=e[t.children])&&void 0!==r&&r.length)}function tA(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function nA(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function rA(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function oA(e){return e.split("-")}function iA(e,t){return"".concat(e,"-").concat(t)}function aA(e){return e&&e.type&&e.type.isTreeNode}function sA(e,t){var n=[],r=t[e];function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){var t=e.key,r=e.children;n.push(t),o(r)}))}return o(r.children),n}function lA(e){if(e.parent){var t=oA(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function uA(e){var t=oA(e.pos);return 0===Number(t[t.length-1])}function cA(e,t,n,r,o,i,a,s,l,u){var c,f=e.clientX,d=e.clientY,h=e.target.getBoundingClientRect(),p=h.top,v=h.height,g=("rtl"===u?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-f),m=(g-12)/r,y=s[n.eventKey];if(d<p+v/2){var b=a.findIndex((function(e){return e.key===y.key})),w=b<=0?0:b-1,A=a[w].key;y=s[A]}var x=y.key,C=y,S=y.key,_=0,k=0;if(!l.has(x))for(var E=0;E<m;E+=1){if(!lA(y))break;y=y.parent,k+=1}var O=t.eventData,F=y.node,T=!0;return uA(y)&&0===y.level&&d<p+v/2&&i({dragNode:O,dropNode:F,dropPosition:-1})&&y.key===n.eventKey?_=-1:(C.children||[]).length&&l.has(S)?i({dragNode:O,dropNode:F,dropPosition:0})?_=0:T=!1:0===k?m>-1.5?i({dragNode:O,dropNode:F,dropPosition:1})?_=1:T=!1:i({dragNode:O,dropNode:F,dropPosition:0})?_=0:i({dragNode:O,dropNode:F,dropPosition:1})?_=1:T=!1:i({dragNode:O,dropNode:F,dropPosition:1})?_=1:T=!1,{dropPosition:_,dropLevelOffset:k,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:S,dropContainerKey:0===_?null:(null===(c=y.parent)||void 0===c?void 0:c.key)||null,dropAllowed:T}}function fA(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function dA(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,Ie.A)(e))return(0,Ke.$e)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function hA(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=t[e];if(o){n.add(e);var i=o.parent,a=o.node;a.disabled||i&&r(i.key)}}}return(e||[]).forEach((function(e){r(e)})),(0,z.A)(n)}var pA=["title","icon","switcherIcon"];function vA(e,t){return null!==e&&void 0!==e?e:t}function gA(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function mA(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,B.Gk)(e);return n.map((function(e){var n,r,i,a;if(!aA(e))return(0,Ke.$e)(!e,"Tree/TreeNode can only accept TreeNode as children."),null;for(var l=e.children||{},u=e.key,c={},f=0,d=Object.entries(e.props);f<d.length;f++){var h=(0,Re.A)(d[f],2),p=h[0],v=h[1];c[(0,s.PT)(p)]=v}var g=c.isLeaf,m=c.checkable,y=c.selectable,b=c.disabled,w=c.disableCheckbox,A={isLeaf:g||""===g||void 0,checkable:m||""===m||void 0,selectable:y||""===y||void 0,disabled:b||""===b||void 0,disableCheckbox:w||""===w||void 0},x=(0,o.A)((0,o.A)({},c),A),C=c.title,S=void 0===C?null===(n=l.title)||void 0===n?void 0:n.call(l,x):C,_=c.icon,k=void 0===_?null===(r=l.icon)||void 0===r?void 0:r.call(l,x):_,E=c.switcherIcon,O=void 0===E?null===(i=l.switcherIcon)||void 0===i?void 0:i.call(l,x):E,F=(0,je.A)(c,pA),T=null===(a=l.default)||void 0===a?void 0:a.call(l),P=(0,o.A)((0,o.A)({},F),{},{title:S,icon:k,switcherIcon:O,key:u,isLeaf:g},A),N=t(T);return N.length&&(P.children=N),P}))}return t(e)}function yA(e,t,n){var r=gA(n),i=r._title,a=r.key,s=r.children,l=new Set(!0===t?[]:t),u=[];function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(r,f){for(var d,h=iA(n?n.pos:"0",f),p=vA(r[a],h),v=0;v<i.length;v+=1){var g=i[v];if(void 0!==r[g]){d=r[g];break}}var m=(0,o.A)((0,o.A)({},ce(r,[].concat((0,z.A)(i),[a,s]))),{},{title:d,key:p,parent:n,pos:h,children:null,data:r,isStart:[].concat((0,z.A)(n?n.isStart:[]),[0===f]),isEnd:[].concat((0,z.A)(n?n.isEnd:[]),[f===e.length-1])});return u.push(m),!0===t||l.has(p)?m.children=c(r[s]||[],m):m.children=[],m}))}return c(e),u}function bA(e,t,n){var r={};r="object"===(0,Ie.A)(n)?n:{externalGetKey:n},r=r||{};var o,i=r,a=i.childrenPropName,s=i.externalGetKey,l=i.fieldNames,u=gA(l),c=u.key,f=u.children,d=a||f;function h(n,r,i,a){var s=n?n[d]:e,l=n?iA(i.pos,r):"0",u=n?[].concat((0,z.A)(a),[n]):[];if(n){var c=o(n,l),f={node:n,index:r,pos:l,key:c,parentPos:i.node?i.pos:null,level:i.level+1,nodes:u};t(f)}s&&s.forEach((function(e,t){h(e,t,{node:n,pos:l,level:i?i.level+1:-1},u)}))}s?"string"===typeof s?o=function(e){return e[s]}:"function"===typeof s&&(o=function(e){return s(e)}):o=function(e,t){return vA(e[c],t)},h(null)}function wA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,u=i||l,c={},f={},d={posEntities:c,keyEntities:f};return n&&(d=n(d)||d),bA(e,(function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,s=e.level,l=e.nodes,u={node:t,nodes:l,index:n,key:i,pos:o,level:s},h=vA(i,o);c[o]=u,f[h]=u,u.parent=c[a],u.parent&&(u.parent.children=u.parent.children||[],u.parent.children.push(u)),r&&r(u,d)}),{externalGetKey:u,childrenPropName:a,fieldNames:s}),o&&o(d),d}function AA(e,t){var n=t.expandedKeysSet,r=t.selectedKeysSet,o=t.loadedKeysSet,i=t.loadingKeysSet,a=t.checkedKeysSet,s=t.halfCheckedKeysSet,l=t.dragOverNodeKey,u=t.dropPosition,c=t.keyEntities,f=c[e],d={eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:o.has(e),loading:i.has(e),checked:a.has(e),halfChecked:s.has(e),pos:String(f?f.pos:""),parent:f.parent,dragOver:l===e&&0===u,dragOverGapTop:l===e&&-1===u,dragOverGapBottom:l===e&&1===u};return d}function xA(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,a=e.loaded,s=e.loading,l=e.halfChecked,u=e.dragOver,c=e.dragOverGapTop,f=e.dragOverGapBottom,d=e.pos,h=e.active,p=e.eventKey,v=(0,o.A)((0,o.A)({dataRef:t},t),{},{expanded:n,selected:r,checked:i,loaded:a,loading:s,halfChecked:l,dragOver:u,dragOverGapTop:c,dragOverGapBottom:f,pos:d,active:h,eventKey:p,key:p});return"props"in v||Object.defineProperty(v,"props",{get:function(){return(0,Ke.$e)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}var CA=function(e,t){var n=(0,s.EW)((function(){return wA(e.value,{fieldNames:t.value,initWrapper:function(e){return(0,o.A)((0,o.A)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var r=e.nodes.map((function(e){return e[t.value.value]})).join(Gw);n.pathKeyEntities[r]=e,e.key=r}}).pathKeyEntities}));return n};function SA(e){var t=(0,s.KR)(!1),n=(0,s.KR)({});return(0,s.nT)((function(){if(!e.value)return t.value=!1,void(n.value={});var r={matchInputWidth:!0,limit:50};e.value&&"object"===(0,Ie.A)(e.value)&&(r=(0,o.A)((0,o.A)({},r),e.value)),r.limit<=0&&delete r.limit,t.value=!0,n.value=r})),{showSearch:t,searchConfig:n}}var _A="__rc_cascader_search_mark__",kA=function(e,t,n){var r=n.label;return t.some((function(t){return String(t[r]).toLowerCase().includes(e.toLowerCase())}))},EA=function(e){var t=e.path,n=e.fieldNames;return t.map((function(e){return e[n.label]})).join(" / ")},OA=function(e,t,n,r,a,l){return(0,s.EW)((function(){var s=a.value,u=s.filter,c=void 0===u?kA:u,f=s.render,d=void 0===f?EA:f,h=s.limit,p=void 0===h?50:h,v=s.sort,g=[];if(!e.value)return[];function m(t,a){t.forEach((function(t){if(!(!v&&p>0&&g.length>=p)){var s,u=[].concat((0,z.A)(a),[t]),f=t[n.value.children];if(!f||0===f.length||l.value)if(c(e.value,u,{label:n.value.label}))g.push((0,o.A)((0,o.A)({},t),{},(s={},(0,i.A)(s,n.value.label,d({inputValue:e.value,path:u,prefixCls:r.value,fieldNames:n.value})),(0,i.A)(s,_A,u),s)));f&&m(t[n.value.children],u)}}))}return m(t.value,[]),v&&g.sort((function(t,r){return v(t[_A],r[_A],e.value,n.value)})),p>0?g.slice(0,p):g}))};function FA(e,t,n){var r=new Set(e);return e.filter((function(e){var o=t[e],i=o?o.parent:null,a=o?o.children:null;return n===$w?!(a&&a.some((function(e){return e.key&&r.has(e.key)}))):!(i&&!i.node.disabled&&r.has(i.key))}))}function TA(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t,i=[],a=function(){var t,a,l,u=e[s],c=null===(t=o)||void 0===t?void 0:t.findIndex((function(e){var t=e[n.value];return r?String(t)===String(u):t===u})),f=-1!==c?null===(a=o)||void 0===a?void 0:a[c]:null;i.push({value:null!==(l=null===f||void 0===f?void 0:f[n.value])&&void 0!==l?l:u,index:c,option:f}),o=null===f||void 0===f?void 0:f[n.children]},s=0;s<e.length;s+=1)a();return i}var PA=function(e,t,n){return(0,s.EW)((function(){var r=[],o=[];return n.value.forEach((function(n){var i=TA(n,e.value,t.value);i.every((function(e){return e.option}))?o.push(n):r.push(n)})),[o,r]}))};function NA(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function MA(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function LA(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach((function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}))}for(var l=new Set,u=n;u>=0;u-=1){var c=t.get(u)||new Set;c.forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,s=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),s||!n&&!i.has(t)||(s=!0)})),a&&o.add(t.key),s&&i.add(t.key),l.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(NA(i,o))}}function IA(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||s.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}))}a=new Set;for(var u=new Set,c=r;c>=0;c-=1){var f=n.get(c)||new Set;f.forEach((function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!u.has(e.parent.key))if(o(e.parent.node))u.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)})),r||i.delete(t.key),s&&a.add(t.key),u.add(t.key)}}))}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(NA(a,i))}}function RA(e,t,n,r,o,i){var a,s=[];a=i||MA;var l,u=new Set(e.filter((function(e){var t=!!n[e];return t||s.push(e),t})));return(0,Ke.N4)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),l=!0===t?LA(u,o,r,a):IA(u,t.halfCheckedKeys,o,r,a),l}var jA=function(e,t,n,r,o){return(0,s.EW)((function(){var i=o.value||function(e){var t=e.labels,n=r.value?t.slice(-1):t,o=" / ";return n.every((function(e){return["string","number"].includes((0,Ie.A)(e))}))?n.join(o):n.reduce((function(e,t,n){var r=(0,B.zO)(t)?Bn(t,{key:n}):t;return 0===n?[r]:[].concat((0,z.A)(e),[o,r])}),[])};return e.value.map((function(e){var r=TA(e,t.value,n.value),o=i({labels:r.map((function(e){var t,r=e.option,o=e.value;return null!==(t=null===r||void 0===r?void 0:r[n.value.label])&&void 0!==t?t:o})),selectedOptions:r.map((function(e){var t=e.option;return t}))}),a=Xw(e);return{label:o,value:a,key:a,valueCells:e}}))}))},DA=Symbol("CascaderContextKey"),BA=function(e){(0,s.Gt)(DA,e)},WA=function(){return(0,s.WQ)(DA)},zA=function(){var e=Ri(),t=WA(),n=t.values,r=ja([]),o=(0,Re.A)(r,2),i=o[0],a=o[1];return(0,s.wB)((function(){return e.open}),(function(){if(e.open&&!e.multiple){var t=n.value[0];a(t||[])}}),{immediate:!0}),[i,a]},UA=function(e,t,n,r,o,i){var a=Ri(),l=(0,s.EW)((function(){return"rtl"===a.direction})),u=[(0,s.KR)([]),(0,s.KR)(),(0,s.KR)([])],c=u[0],f=u[1],d=u[2];(0,s.nT)((function(){for(var e=-1,o=t.value,i=[],a=[],s=r.value.length,l=function(t){var s=o.findIndex((function(e){return e[n.value.value]===r.value[t]}));if(-1===s)return"break";e=s,i.push(e),a.push(r.value[t]),o=o[e][n.value.children]},u=0;u<s&&o;u+=1){var h=l(u);if("break"===h)break}for(var p=t.value,v=0;v<i.length-1;v+=1)p=p[i[v]][n.value.children];var g=[a,e,p];c.value=g[0],f.value=g[1],d.value=g[2]}));var h=function(e){o(e)},p=function(e){var t=d.value.length,r=f.value;-1===r&&e<0&&(r=t);for(var o=0;o<t;o+=1){r=(r+e+t)%t;var i=d.value[r];if(i&&!i.disabled){var a=i[n.value.value],s=c.value.slice(0,-1).concat(a);return void h(s)}}},v=function(){if(c.value.length>1){var e=c.value.slice(0,-1);h(e)}else a.toggleOpen(!1)},g=function(){var e,t=(null===(e=d.value[f.value])||void 0===e?void 0:e[n.value.children])||[],r=t.find((function(e){return!e.disabled}));if(r){var o=[].concat((0,z.A)(c.value),[r[n.value.value]]);h(o)}};e.expose({onKeydown:function(e){var t=e.which;switch(t){case Mo.UP:case Mo.DOWN:var r=0;t===Mo.UP?r=-1:t===Mo.DOWN&&(r=1),0!==r&&p(r);break;case Mo.LEFT:l.value?g():v();break;case Mo.RIGHT:l.value?v():g();break;case Mo.BACKSPACE:a.searchValue||v();break;case Mo.ENTER:if(c.value.length){var o=d.value[f.value],s=(null===o||void 0===o?void 0:o[_A])||[];s.length?i(s.map((function(e){return e[n.value.value]})),s[s.length-1]):i(c.value,o)}break;case Mo.ESC:a.toggleOpen(!1),open&&e.stopPropagation()}},onKeyup:function(){}})};function KA(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,a=e.disabled,l=e.onClick,u=WA(),c=u.customSlots,f=u.checkable,d=!1!==f.value?c.value.checkable:f.value,h="function"===typeof d?d():"boolean"===typeof d?null:d;return(0,s.bF)("span",{class:(t={},(0,i.A)(t,n,!0),(0,i.A)(t,"".concat(n,"-checked"),r),(0,i.A)(t,"".concat(n,"-indeterminate"),!r&&o),(0,i.A)(t,"".concat(n,"-disabled"),a),t),onClick:l},[h])}KA.props=["prefixCls","checked","halfChecked","disabled","onClick"],KA.displayName="Checkbox",KA.inheritAttrs=!1;var VA="__cascader_fix_label__";function HA(e){var t,n,r,o,a,l,u=e.prefixCls,c=e.multiple,f=e.options,d=e.activeValue,h=e.prevValuePath,p=e.onToggleOpen,v=e.onSelect,g=e.onActive,m=e.checkedSet,y=e.halfCheckedSet,b=e.loadingKeys,w=e.isSelectable,A="".concat(u,"-menu"),x="".concat(u,"-menu-item"),C=WA(),S=C.fieldNames,_=C.changeOnSelect,k=C.expandTrigger,E=C.expandIcon,O=C.loadingIcon,F=C.dropdownMenuColumnStyle,T=C.customSlots,P=null!==(t=E.value)&&void 0!==t?t:null===(n=(r=T.value).expandIcon)||void 0===n?void 0:n.call(r),N=null!==(o=O.value)&&void 0!==o?o:null===(a=(l=T.value).loadingIcon)||void 0===a?void 0:a.call(l),M="hover"===k.value;return(0,s.bF)("ul",{class:A,role:"menu"},[f.map((function(e){var t,n,r,o=e.disabled,a=e[_A],l=null!==(t=e[VA])&&void 0!==t?t:e[S.value.label],f=e[S.value.value],A=eA(e,S.value),C=a?a.map((function(e){return e[S.value.value]})):[].concat((0,z.A)(h),[f]),k=Xw(C),E=b.includes(k),O=m.has(k),T=y.has(k),L=function(){o||M&&A||g(C)},I=function(){w(e)&&v(C,A)};return"string"===typeof e.title?r=e.title:"string"===typeof l&&(r=l),(0,s.bF)("li",{key:k,class:[x,(n={},(0,i.A)(n,"".concat(x,"-expand"),!A),(0,i.A)(n,"".concat(x,"-active"),d===f),(0,i.A)(n,"".concat(x,"-disabled"),o),(0,i.A)(n,"".concat(x,"-loading"),E),n)],style:F.value,role:"menuitemcheckbox",title:r,"aria-checked":O,"data-path-key":k,onClick:function(){L(),c&&!A||I()},onDblclick:function(){_.value&&p(!1)},onMouseenter:function(){M&&L()},onMousedown:function(e){e.preventDefault()}},[c&&(0,s.bF)(KA,{prefixCls:"".concat(u,"-checkbox"),checked:O,halfChecked:T,disabled:o,onClick:function(e){e.stopPropagation(),I()}},null),(0,s.bF)("div",{class:"".concat(x,"-content")},[l]),!E&&P&&!A&&(0,s.bF)("div",{class:"".concat(x,"-expand-icon")},[P]),E&&N&&(0,s.bF)("div",{class:"".concat(x,"-loading-icon")},[N])])}))])}HA.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"],HA.displayName="Column",HA.inheritAttrs=!1;var qA=(0,s.pM)({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup:function(e,t){var n=t.attrs,r=t.slots,a=Ri(),l=(0,s.KR)(),u=(0,s.EW)((function(){return"rtl"===a.direction})),c=WA(),f=c.options,d=c.values,h=c.halfValues,p=c.fieldNames,v=c.changeOnSelect,g=c.onSelect,m=c.searchOptions,y=c.dropdownPrefixCls,b=c.loadData,w=c.expandTrigger,A=c.customSlots,x=(0,s.EW)((function(){return y.value||a.prefixCls})),C=(0,s.IJ)([]),S=function(e){if(b.value&&!a.searchValue){var t=TA(e,f.value,p.value),n=t.map((function(e){var t=e.option;return t})),r=n[n.length-1];if(r&&!eA(r,p.value)){var o=Xw(e);C.value=[].concat((0,z.A)(C.value),[o]),b.value(n)}}};(0,s.nT)((function(){C.value.length&&C.value.forEach((function(e){var t=Qw(e),n=TA(t,f.value,p.value,!0).map((function(e){var t=e.option;return t})),r=n[n.length-1];(!r||r[p.value.children]||eA(r,p.value))&&(C.value=C.value.filter((function(t){return t!==e})))}))}));var _=(0,s.EW)((function(){return new Set(Jw(d.value))})),k=(0,s.EW)((function(){return new Set(Jw(h.value))})),E=zA(),O=(0,Re.A)(E,2),F=O[0],T=O[1],P=function(e){T(e),S(e)},N=function(e){var t=e.disabled,n=eA(e,p.value);return!t&&(n||v.value||a.multiple)},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];g(e),!a.multiple&&(t||v.value&&("hover"===w.value||n))&&a.toggleOpen(!1)},L=(0,s.EW)((function(){return a.searchValue?m.value:f.value})),I=(0,s.EW)((function(){for(var e=[{options:L.value}],t=L.value,n=function(){var n=F.value[r],o=t.find((function(e){return e[p.value.value]===n})),i=null===o||void 0===o?void 0:o[p.value.children];if(null===i||void 0===i||!i.length)return"break";t=i,e.push({options:i})},r=0;r<F.value.length;r+=1){var o=n();if("break"===o)break}return e})),R=function(e,t){N(t)&&M(e,eA(t,p.value),!0)};UA(t,L,p,F,P,R);var j=function(e){e.preventDefault()};return(0,s.sV)((function(){(0,s.wB)(F,(function(e){for(var t=0;t<e.length;t+=1){var n,r=e.slice(0,t+1),o=Xw(r),i=null===(n=l.value)||void 0===n?void 0:n.querySelector('li[data-path-key="'.concat(o.replace(/\\{0,2}"/g,'\\"'),'"]'));i&&tA(i)}}),{flush:"post",immediate:!0})})),function(){var e,t,c,f,d,h,v,g=a.notFoundContent,m=void 0===g?(null===(e=r.notFoundContent)||void 0===e?void 0:e.call(r))||(null===(t=(c=A.value).notFoundContent)||void 0===t?void 0:t.call(c)):g,y=a.multiple,b=a.toggleOpen,w=!(null!==(f=I.value[0])&&void 0!==f&&null!==(d=f.options)&&void 0!==d&&d.length),S=[(h={},(0,i.A)(h,p.value.value,"__EMPTY__"),(0,i.A)(h,VA,m),(0,i.A)(h,"disabled",!0),h)],E=(0,o.A)((0,o.A)({},n),{},{multiple:!w&&y,onSelect:M,onActive:P,onToggleOpen:b,checkedSet:_.value,halfCheckedSet:k.value,loadingKeys:C.value,isSelectable:N}),O=w?[{options:S}]:I.value,T=O.map((function(e,t){var n=F.value.slice(0,t),r=F.value[t];return(0,s.bF)(HA,(0,o.A)((0,o.A)({key:t},E),{},{prefixCls:x.value,options:e.options,prevValuePath:n,activeValue:r}),null)}));return(0,s.bF)("div",{class:["".concat(x.value,"-menus"),(v={},(0,i.A)(v,"".concat(x.value,"-menu-empty"),w),(0,i.A)(v,"".concat(x.value,"-rtl"),u.value),v)],onMousedown:j,ref:l},[T])}}});function GA(e){var t=(0,s.KR)(0),n=(0,s.IJ)();return(0,s.nT)((function(){var r=new Map,o=0,i=e.value||{};for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)){var s=i[a],l=s.level,u=r.get(l);u||(u=new Set,r.set(l,u)),u.add(s),o=Math.max(o,l)}t.value=o,n.value=r})),{maxLevel:t,levelEntities:n}}function YA(){return(0,o.A)((0,o.A)({},ce(Ui(),["tokenSeparators","mode","showSearch"])),{},{id:String,prefixCls:String,fieldNames:Object,children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:Yw},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Fe.A.any,loadingIcon:Fe.A.any})}function $A(){return(0,o.A)((0,o.A)({},YA()),{},{onChange:Function,customSlots:Object})}function XA(e){return Array.isArray(e)&&Array.isArray(e[0])}function JA(e){return e?XA(e)?e:(0===e.length?[]:[e]).map((function(e){return Array.isArray(e)?e:[e]})):[]}var QA=(0,s.pM)({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Pe($A(),{}),setup:function(e,t){var n=t.attrs,r=t.expose,i=t.slots,a=Pa((0,s.lW)(e,"id")),l=(0,s.EW)((function(){return!!e.checkable})),u=Ra(e.defaultValue,{value:(0,s.EW)((function(){return e.value})),postState:JA}),c=(0,Re.A)(u,2),f=c[0],d=c[1],h=(0,s.EW)((function(){return Zw(e.fieldNames)})),p=(0,s.EW)((function(){return e.options||[]})),v=CA(p,h),g=function(e){var t=v.value;return e.map((function(e){var n=t[e].nodes;return n.map((function(e){return e[h.value.value]}))}))},m=Ra("",{value:(0,s.EW)((function(){return e.searchValue})),postState:function(e){return e||""}}),y=(0,Re.A)(m,2),b=y[0],w=y[1],A=function(t,n){w(t),"blur"!==n.source&&e.onSearch&&e.onSearch(t)},x=SA((0,s.lW)(e,"showSearch")),C=x.showSearch,S=x.searchConfig,_=OA(b,p,h,(0,s.EW)((function(){return e.dropdownPrefixCls||e.prefixCls})),S,(0,s.lW)(e,"changeOnSelect")),k=PA(p,h,f),E=[(0,s.KR)([]),(0,s.KR)([]),(0,s.KR)([])],O=E[0],F=E[1],T=E[2],P=GA(v),N=P.maxLevel,M=P.levelEntities;(0,s.nT)((function(){var e=(0,Re.A)(k.value,2),t=e[0],n=e[1];if(!l.value||!f.value.length){var r=[t,[],n];return O.value=r[0],F.value=r[1],void(T.value=r[2])}var o=Jw(t),i=v.value,a=RA(o,!0,i,N.value,M.value),s=a.checkedKeys,u=a.halfCheckedKeys,c=[g(s),g(u),n];O.value=c[0],F.value=c[1],T.value=c[2]}));var L=(0,s.EW)((function(){var t=Jw(O.value),n=FA(t,v.value,e.showCheckedStrategy);return[].concat((0,z.A)(T.value),(0,z.A)(g(n)))})),I=jA(L,p,h,l,(0,s.lW)(e,"displayRender")),R=function(t){if(d(t),e.onChange){var n=JA(t),r=n.map((function(e){return TA(e,p.value,h.value).map((function(e){return e.option}))})),o=l.value?n:n[0],i=l.value?r:r[0];e.onChange(o,i)}},j=function(t){if(w(""),l.value){var n=Xw(t),r=Jw(O.value),o=Jw(F.value),i=r.includes(n),a=T.value.some((function(e){return Xw(e)===n})),s=O.value,u=T.value;if(a&&!i)u=T.value.filter((function(e){return Xw(e)!==n}));else{var c,f=i?r.filter((function(e){return e!==n})):[].concat((0,z.A)(r),[n]);if(i){var d=RA(f,{checked:!1,halfCheckedKeys:o},v.value,N.value,M.value);c=d.checkedKeys}else{var h=RA(f,!0,v.value,N.value,M.value);c=h.checkedKeys}var p=FA(c,v.value,e.showCheckedStrategy);s=g(p)}R([].concat((0,z.A)(u),(0,z.A)(s)))}else R(t)},D=function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;j(n)}else R([])};var B=(0,s.EW)((function(){return void 0!==e.open?e.open:e.popupVisible})),W=(0,s.EW)((function(){return e.dropdownClassName||e.popupClassName})),U=(0,s.EW)((function(){return e.dropdownStyle||e.popupStyle||{}})),K=(0,s.EW)((function(){return e.placement||e.popupPlacement})),V=function(t){var n,r;null===(n=e.onDropdownVisibleChange)||void 0===n||n.call(e,t),null===(r=e.onPopupVisibleChange)||void 0===r||r.call(e,t)},H=(0,s.QW)(e),q=H.changeOnSelect,G=H.checkable,Y=H.dropdownPrefixCls,$=H.loadData,X=H.expandTrigger,J=H.expandIcon,Q=H.loadingIcon,Z=H.dropdownMenuColumnStyle,ee=H.customSlots;BA({options:p,fieldNames:h,values:O,halfValues:F,changeOnSelect:q,onSelect:j,checkable:G,searchOptions:_,dropdownPrefixCls:Y,loadData:$,expandTrigger:X,expandIcon:J,loadingIcon:Q,dropdownMenuColumnStyle:Z,customSlots:ee});var te=(0,s.KR)();r({focus:function(){var e;null===(e=te.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=te.value)||void 0===e||e.blur()},scrollTo:function(e){var t;null===(t=te.value)||void 0===t||t.scrollTo(e)}});var ne=(0,s.EW)((function(){return ce(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"])}));return function(){var t=!(b.value?_.value:p.value).length,r=e.dropdownMatchSelectWidth,u=void 0!==r&&r,c=b.value&&S.value.matchInputWidth||t?{}:{minWidth:"auto"};return(0,s.bF)(Hi,(0,o.A)((0,o.A)((0,o.A)({},ne.value),n),{},{ref:te,id:a,prefixCls:e.prefixCls,dropdownMatchSelectWidth:u,dropdownStyle:(0,o.A)((0,o.A)({},U.value),c),displayValues:I.value,onDisplayValuesChange:D,mode:l.value?"multiple":void 0,searchValue:b.value,onSearch:A,showSearch:C.value,OptionList:qA,emptyOptions:t,open:B.value,dropdownClassName:W.value,placement:K.value,onDropdownVisibleChange:V,getRawInputElement:function(){var e;return null===(e=i.default)||void 0===e?void 0:e.call(i)}}),i)}}}),ZA=QA,ex={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},tx=ex;function nx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rx(e,t,n[t])}))}return e}function rx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ox=function(e,t){var n=nx({},e,t.attrs);return(0,s.bF)(Ya.A,nx({},n,{icon:tx}),null)};ox.displayName="LeftOutlined",ox.inheritAttrs=!1;var ix=ox,ax=["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"];function sx(e,t,n){var r=e.toLowerCase().split(t).reduce((function(e,n,r){return 0===r?[n]:[].concat((0,z.A)(e),[t,n])}),[]),o=[],i=0;return r.forEach((function(t,r){var a=i+t.length,l=e.slice(i,a);if(i=a,r%2===1){(function(){})();l=(0,s.bF)("span",{class:"".concat(n,"-menu-item-keyword"),key:"seperator"},[l])}o.push(l)})),o}var lx=function(e){var t=e.inputValue,n=e.path,r=e.prefixCls,o=e.fieldNames,i=[],a=t.toLowerCase();return n.forEach((function(e,t){0!==t&&i.push(" / ");var n=e[o.label],s=(0,Ie.A)(n);"string"!==s&&"number"!==s||(n=sx(String(n),a,r)),i.push(n)})),i};function ux(){return(0,o.A)((0,o.A)({},ce($A(),["customSlots","checkable","options"])),{},{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Fe.A.any,options:Array,"onUpdate:value":Function})}var cx=(0,s.pM)({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Pe(ux(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup:function(e,t){var n=t.attrs,r=t.expose,a=t.slots,u=t.emit,c=ws(),f=(0,se.A)("cascader",e),d=f.prefixCls,h=f.rootPrefixCls,p=f.getPrefixCls,v=f.direction,g=f.getPopupContainer,m=f.renderEmpty,y=f.size,b=(0,s.EW)((function(){return p("select",e.prefixCls)})),w=(0,s.EW)((function(){return"rtl"===v.value}));var A=(0,s.EW)((function(){if(!e.showSearch)return e.showSearch;var t={render:lx};return"object"===(0,Ie.A)(e.showSearch)&&(t=(0,o.A)((0,o.A)({},t),e.showSearch)),t})),x=(0,s.EW)((function(){return(0,l.A)(e.dropdownClassName||e.popupClassName,"".concat(d.value,"-dropdown"),(0,i.A)({},"".concat(d.value,"-dropdown-rtl"),w.value))})),C=(0,s.KR)();r({focus:function(){var e;null===(e=C.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=C.value)||void 0===e||e.blur()}});var S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u("update:value",t[0]),u.apply(void 0,["change"].concat(t)),c.onFieldChange()},_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u.apply(void 0,["blur"].concat(t)),c.onFieldBlur()},k=(0,s.EW)((function(){return void 0!==e.showArrow?e.showArrow:e.loading||!e.multiple})),E=(0,s.EW)((function(){return void 0!==e.placement?e.placement:"rtl"===v.value?"bottomRight":"bottomLeft"}));return function(){var t,r,l,u=e.notFoundContent,f=void 0===u?null===(t=a.notFoundContent)||void 0===t?void 0:t.call(a):u,p=e.expandIcon,O=void 0===p?null===(r=a.expandIcon)||void 0===r?void 0:r.call(a):p,F=e.multiple,T=e.bordered,P=e.allowClear,N=e.choiceTransitionName,M=e.transitionName,L=e.id,I=void 0===L?c.id.value:L,R=(0,je.A)(e,ax),j=f||m.value("Cascader"),D=O;O||(D=w.value?(0,s.bF)(ix,null,null):(0,s.bF)(bc,null,null));var B=(0,s.bF)("span",{class:"".concat(b.value,"-menu-item-loading-icon")},[(0,s.bF)(Za.A,{spin:!0},null)]),W=ps((0,o.A)((0,o.A)({},e),{},{multiple:F,prefixCls:b.value,showArrow:k.value}),a),z=W.suffixIcon,U=W.removeIcon,K=W.clearIcon;return(0,s.bF)(ZA,(0,o.A)((0,o.A)((0,o.A)({},R),n),{},{id:I,prefixCls:b.value,class:[d.value,(l={},(0,i.A)(l,"".concat(b.value,"-lg"),"large"===y.value),(0,i.A)(l,"".concat(b.value,"-sm"),"small"===y.value),(0,i.A)(l,"".concat(b.value,"-rtl"),w.value),(0,i.A)(l,"".concat(b.value,"-borderless"),!T),l),n.class],direction:v.value,placement:E.value,notFoundContent:j,allowClear:P,showSearch:A.value,expandIcon:D,inputIcon:z,removeIcon:U,clearIcon:K,loadingIcon:B,checkable:!!F,dropdownClassName:x.value,dropdownPrefixCls:d.value,choiceTransitionName:(0,so.by)(h.value,"",N),transitionName:(0,so.by)(h.value,(0,so.TL)(E.value),M),getPopupContainer:g.value,customSlots:(0,o.A)((0,o.A)({},a),{},{checkable:function(){return(0,s.bF)("span",{class:"".concat(d.value,"-checkbox-inner")},null)}}),tagRender:e.tagRender||a.tagRender,displayRender:e.displayRender||a.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||a.maxTagPlaceholder,showArrow:e.showArrow,onChange:S,onBlur:_,ref:C}),a)}}}),fx=(0,$.GU)(cx),dx=function(){return{name:String,prefixCls:String,options:{type:Array,default:function(){return[]}},disabled:Boolean,id:String}},hx=function(){return(0,o.A)((0,o.A)({},dx()),{},{defaultValue:{type:Array},value:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function}})},px=function(){return{prefixCls:String,defaultChecked:{type:Boolean,default:void 0},checked:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},isGroup:{type:Boolean,default:void 0},value:Fe.A.any,name:String,id:String,indeterminate:{type:Boolean,default:void 0},type:{type:String,default:"checkbox"},autofocus:{type:Boolean,default:void 0},onChange:Function,"onUpdate:checked":Function,onClick:Function,skipGroup:{type:Boolean,default:!1}}},vx=function(){return(0,o.A)((0,o.A)({},px()),{},{indeterminate:{type:Boolean,default:!1}})},gx=Symbol("CheckboxGroupContext"),mx=["indeterminate","skipGroup","id"],yx=["onMouseenter","onMouseleave","onInput","class","style"],bx=(0,s.pM)({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:vx(),setup:function(e,t){var n=t.emit,r=t.attrs,a=t.slots,u=t.expose,c=ws(),f=(0,se.A)("checkbox",e),d=f.prefixCls,h=f.direction,p=(0,s.WQ)(gx,void 0),v=Symbol("checkboxUniId");(0,s.nT)((function(){!e.skipGroup&&p&&p.registerValue(v,e.value)})),(0,s.xo)((function(){p&&p.cancelValue(v)})),(0,s.sV)((function(){(0,Dn.A)(void 0!==e.checked||p||void 0===e.value,"Checkbox","`value` is not validate prop, do you mean `checked`?")}));var g=function(e){var t=e.target.checked;n("update:checked",t),n("change",e)},m=(0,s.KR)(),y=function(){var e;null===(e=m.value)||void 0===e||e.focus()},b=function(){var e;null===(e=m.value)||void 0===e||e.blur()};return u({focus:y,blur:b}),function(){var t,u,f=(0,B.MI)(null===(t=a.default)||void 0===t?void 0:t.call(a)),v=e.indeterminate,y=e.skipGroup,b=e.id,w=void 0===b?c.id.value:b,A=(0,je.A)(e,mx),x=r.onMouseenter,C=r.onMouseleave,S=(r.onInput,r.class),_=r.style,k=(0,je.A)(r,yx),E=(0,o.A)((0,o.A)({},A),{},{id:w,prefixCls:d.value},k);p&&!y?(E.onChange=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];n.apply(void 0,["change"].concat(r)),p.toggleOption({label:f,value:e.value})},E.name=p.name.value,E.checked=-1!==p.mergedValue.value.indexOf(e.value),E.disabled=e.disabled||p.disabled.value,E.indeterminate=v):E.onChange=g;var O=(0,l.A)((u={},(0,i.A)(u,"".concat(d.value,"-wrapper"),!0),(0,i.A)(u,"".concat(d.value,"-rtl"),"rtl"===h.value),(0,i.A)(u,"".concat(d.value,"-wrapper-checked"),E.checked),(0,i.A)(u,"".concat(d.value,"-wrapper-disabled"),E.disabled),u),S),F=(0,l.A)((0,i.A)({},"".concat(d.value,"-indeterminate"),v));return(0,s.bF)("label",{class:O,style:_,onMouseenter:x,onMouseleave:C},[(0,s.bF)(kg,(0,o.A)((0,o.A)({},E),{},{class:F,ref:m}),null),f.length?(0,s.bF)("span",null,[f]):null])}}}),wx=(0,s.pM)({compatConfig:{MODE:3},name:"ACheckboxGroup",props:hx(),setup:function(e,t){var n=t.slots,r=t.emit,o=t.expose,a=ws(),l=(0,se.A)("checkbox",e),u=l.prefixCls,c=l.direction,f=(0,s.KR)((void 0===e.value?e.defaultValue:e.value)||[]);(0,s.wB)((function(){return e.value}),(function(){f.value=e.value||[]}));var d=(0,s.EW)((function(){return e.options.map((function(e){return"string"===typeof e||"number"===typeof e?{label:e,value:e}:e}))})),h=(0,s.KR)(Symbol()),p=(0,s.KR)(new Map),v=function(e){p.value.delete(e),h.value=Symbol()},g=function(e,t){p.value.set(e,t),h.value=Symbol()},m=(0,s.KR)(new Map);(0,s.wB)(h,(function(){var e,t=new Map,n=td(p.value.values());try{for(n.s();!(e=n.n()).done;){var r=e.value;t.set(r,!0)}}catch(o){n.e(o)}finally{n.f()}m.value=t}));var y=function(t){var n=f.value.indexOf(t.value),o=(0,z.A)(f.value);-1===n?o.push(t.value):o.splice(n,1),void 0===e.value&&(f.value=o);var i=o.filter((function(e){return m.value.has(e)})).sort((function(e,t){var n=d.value.findIndex((function(t){return t.value===e})),r=d.value.findIndex((function(e){return e.value===t}));return n-r}));r("update:value",i),r("change",i),a.onFieldChange()};return(0,s.Gt)(gx,{cancelValue:v,registerValue:g,toggleOption:y,mergedValue:f,name:(0,s.EW)((function(){return e.name})),disabled:(0,s.EW)((function(){return e.disabled}))}),o({mergedValue:f}),function(){var t,r=e.id,o=void 0===r?a.id.value:r,l=null,h="".concat(u.value,"-group");return d.value&&d.value.length>0&&(l=d.value.map((function(t){var r;return(0,s.bF)(bx,{prefixCls:u.value,key:t.value.toString(),disabled:"disabled"in t?t.disabled:e.disabled,indeterminate:t.indeterminate,value:t.value,checked:-1!==f.value.indexOf(t.value),onChange:t.onChange,class:"".concat(h,"-item")},{default:function(){return[void 0===t.label?null===(r=n.label)||void 0===r?void 0:r.call(n,t):t.label]}})}))),(0,s.bF)("div",{class:[h,(0,i.A)({},"".concat(h,"-rtl"),"rtl"===c.value)],id:o},[l||(null===(t=n.default)||void 0===t?void 0:t.call(n))])}}});bx.Group=wx,bx.install=function(e){return e.component(bx.name,bx),e.component(wx.name,wx),e};var Ax=bx,xx=function(){return{actions:Array,author:Fe.A.any,avatar:Fe.A.any,content:Fe.A.any,prefixCls:String,datetime:Fe.A.any}},Cx=(0,s.pM)({compatConfig:{MODE:3},name:"AComment",props:xx(),slots:["actions","author","avatar","content","datetime"],setup:function(e,t){var n=t.slots,r=(0,se.A)("comment",e),o=r.prefixCls,a=r.direction,l=function(e,t){return(0,s.bF)("div",{class:"".concat(e,"-nested")},[t])},u=function(e){if(!e||!e.length)return null;var t=e.map((function(e,t){return(0,s.bF)("li",{key:"action-".concat(t)},[e])}));return t};return function(){var t,r,c,f,d,h,p,v,g,m,y,b=o.value,w=null!==(t=e.actions)&&void 0!==t?t:null===(r=n.actions)||void 0===r?void 0:r.call(n),A=null!==(c=e.author)&&void 0!==c?c:null===(f=n.author)||void 0===f?void 0:f.call(n),x=null!==(d=e.avatar)&&void 0!==d?d:null===(h=n.avatar)||void 0===h?void 0:h.call(n),C=null!==(p=e.content)&&void 0!==p?p:null===(v=n.content)||void 0===v?void 0:v.call(n),S=null!==(g=e.datetime)&&void 0!==g?g:null===(m=n.datetime)||void 0===m?void 0:m.call(n),_=(0,s.bF)("div",{class:"".concat(b,"-avatar")},["string"===typeof x?(0,s.bF)("img",{src:x,alt:"comment-avatar"},null):x]),k=w?(0,s.bF)("ul",{class:"".concat(b,"-actions")},[u(Array.isArray(w)?w:[w])]):null,E=(0,s.bF)("div",{class:"".concat(b,"-content-author")},[A&&(0,s.bF)("span",{class:"".concat(b,"-content-author-name")},[A]),S&&(0,s.bF)("span",{class:"".concat(b,"-content-author-time")},[S])]),O=(0,s.bF)("div",{class:"".concat(b,"-content")},[E,(0,s.bF)("div",{class:"".concat(b,"-content-detail")},[C]),k]),F=(0,s.bF)("div",{class:"".concat(b,"-inner")},[_,O]),T=(0,B.MI)(null===(y=n.default)||void 0===y?void 0:y.call(n));return(0,s.bF)("div",{class:[b,(0,i.A)({},"".concat(b,"-rtl"),"rtl"===a.value)]},[F,T&&T.length?l(b,T):null])}}}),Sx=(0,$.GU)(Cx),_x=function(e,t){var n=t.attrs,r=t.slots;return(0,s.bF)(tc,(0,o.A)((0,o.A)({size:"small",type:"primary"},e),n),r)},kx=_x,Ex=function(){return{prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}},Ox=(0,s.pM)({compatConfig:{MODE:3},name:"ACheckableTag",props:Ex(),setup:function(e,t){var n=t.slots,r=t.emit,o=(0,se.A)("tag",e),a=o.prefixCls,u=function(t){var n=e.checked;r("update:checked",!n),r("change",!n),r("click",t)},c=(0,s.EW)((function(){var t;return(0,l.A)(a.value,(t={},(0,i.A)(t,"".concat(a.value,"-checkable"),!0),(0,i.A)(t,"".concat(a.value,"-checkable-checked"),e.checked),t))}));return function(){var e;return(0,s.bF)("span",{class:c.value,onClick:u},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),Fx=Ox,Tx=new RegExp("^(".concat(_l.join("|"),")(-inverse)?$")),Px=new RegExp("^(".concat(Sl.join("|"),")$")),Nx=function(){return{prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:Fe.A.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},"onUpdate:visible":Function,icon:Fe.A.any}},Mx=(0,s.pM)({compatConfig:{MODE:3},name:"ATag",props:Nx(),slots:["closeIcon","icon"],setup:function(e,t){var n=t.slots,r=t.emit,o=t.attrs,a=(0,se.A)("tag",e),u=a.prefixCls,c=a.direction,f=(0,s.KR)(!0);(0,s.nT)((function(){void 0!==e.visible&&(f.value=e.visible)}));var d=function(t){t.stopPropagation(),r("update:visible",!1),r("close",t),t.defaultPrevented||void 0===e.visible&&(f.value=!1)},h=(0,s.EW)((function(){var t=e.color;return!!t&&(Tx.test(t)||Px.test(t))})),p=(0,s.EW)((function(){var t;return(0,l.A)(u.value,(t={},(0,i.A)(t,"".concat(u.value,"-").concat(e.color),h.value),(0,i.A)(t,"".concat(u.value,"-has-color"),e.color&&!h.value),(0,i.A)(t,"".concat(u.value,"-hidden"),!f.value),(0,i.A)(t,"".concat(u.value,"-rtl"),"rtl"===c.value),t))}));return function(){var t,r,i,a=e.icon,l=void 0===a?null===(t=n.icon)||void 0===t?void 0:t.call(n):a,c=e.color,f=e.closeIcon,v=void 0===f?null===(r=n.closeIcon)||void 0===r?void 0:r.call(n):f,g=e.closable,m=void 0!==g&&g,y=function(){return m?v?(0,s.bF)("span",{class:"".concat(u.value,"-close-icon"),onClick:d},[v]):(0,s.bF)(as.A,{class:"".concat(u.value,"-close-icon"),onClick:d},null):null},b={backgroundColor:c&&!h.value?c:void 0},w=l||null,A=null===(i=n.default)||void 0===i?void 0:i.call(n),x=w?(0,s.bF)(s.FK,null,[w,(0,s.bF)("span",null,[A])]):A,C="onClick"in o,S=(0,s.bF)("span",{class:p.value,style:b},[x,y()]);return C?(0,s.bF)(Ru,null,{default:function(){return[S]}}):S}}});Mx.CheckableTag=Fx,Mx.install=function(e){return e.component(Mx.name,Mx),e.component(Fx.name,Fx),e};var Lx=Mx;function Ix(e,t){var n=t.slots,r=t.attrs;return(0,s.bF)(Lx,(0,o.A)((0,o.A)({color:"blue"},e),r),n)}var Rx={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},jx=Rx;function Dx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Bx(e,t,n[t])}))}return e}function Bx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wx=function(e,t){var n=Dx({},e,t.attrs);return(0,s.bF)(Ya.A,Dx({},n,{icon:jx}),null)};Wx.displayName="CalendarOutlined",Wx.inheritAttrs=!1;var zx=Wx,Ux={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Kx=Ux;function Vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Hx(e,t,n[t])}))}return e}function Hx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qx=function(e,t){var n=Vx({},e,t.attrs);return(0,s.bF)(Ya.A,Vx({},n,{icon:Kx}),null)};qx.displayName="ClockCircleOutlined",qx.inheritAttrs=!1;var Gx=qx,Yx={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function $x(e,t){var n,r=t.slots,o=dp(e),a=o.prefixCls,u=o.popupStyle,c=o.visible,f=o.dropdownClassName,d=o.dropdownAlign,h=o.transitionName,p=o.getPopupContainer,v=o.range,g=o.popupPlacement,m=o.direction,y="".concat(a,"-dropdown"),b=function(){return void 0!==g?g:"rtl"===m?"bottomRight":"bottomLeft"};return(0,s.bF)(Eo,{showAction:[],hideAction:[],popupPlacement:b(),builtinPlacements:Yx,prefixCls:y,popupTransitionName:h,popupAlign:d,popupVisible:c,popupClassName:(0,l.A)(f,(n={},(0,i.A)(n,"".concat(y,"-range"),v),(0,i.A)(n,"".concat(y,"-rtl"),"rtl"===m),n)),popupStyle:u,getPopupContainer:p,tryPopPortal:!0},{default:r.default,popup:r.popupElement})}var Xx=$x;function Jx(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,i=e.forwardKeydown,a=e.onKeydown,l=e.blurToCancel,u=e.onSubmit,c=e.onCancel,f=e.onFocus,d=e.onBlur,h=(0,s.KR)(!1),p=(0,s.KR)(!1),v=(0,s.KR)(!1),g=(0,s.KR)(!1),m=(0,s.KR)(!1),y=(0,s.EW)((function(){return{onMousedown:function(){h.value=!0,o(!0)},onKeydown:function(e){var n=function(){m.value=!0};if(a(e,n),!m.value){switch(e.which){case Mo.ENTER:return t.value?!1!==u()&&(h.value=!0):o(!0),void e.preventDefault();case Mo.TAB:return void(h.value&&t.value&&!e.shiftKey?(h.value=!1,e.preventDefault()):!h.value&&t.value&&!i(e)&&e.shiftKey&&(h.value=!0,e.preventDefault()));case Mo.ESC:return h.value=!0,void c()}t.value||[Mo.SHIFT].includes(e.which)?h.value||i(e):o(!0)}},onFocus:function(e){h.value=!0,p.value=!0,f&&f(e)},onBlur:function(e){!v.value&&r(document.activeElement)?(l.value?setTimeout((function(){var e=document,t=e.activeElement;while(t&&t.shadowRoot)t=t.shadowRoot.activeElement;r(t)&&c()}),0):t.value&&(o(!1),g.value&&u()),p.value=!1,d&&d(e)):v.value=!1}}}));(0,s.wB)(t,(function(){g.value=!1})),(0,s.wB)(n,(function(){g.value=!0}));var b=(0,s.KR)();return(0,s.sV)((function(){b.value=Bp((function(e){var n=Wp(e);if(t.value){var i=r(n);i?p.value&&!i||o(!1):(v.value=!0,G((function(){v.value=!1})))}}))})),(0,s.xo)((function(){b.value&&b.value()})),[y,{focused:p,typing:h}]}function Qx(e){var t=e.valueTexts,n=e.onTextChange,r=(0,s.KR)("");function o(e){r.value=e,n(e)}function i(){r.value=t.value[0]}return(0,s.wB)((function(){return(0,z.A)(t.value)}),(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.join("||")!==n.join("||")&&t.value.every((function(e){return e!==r.value}))&&i()}),{immediate:!0}),[r,o,i]}function Zx(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale,i=pa((function(){if(!e.value)return[[""],""];for(var t="",i=[],a=0;a<n.value.length;a+=1){var s=n.value[a],l=fv(e.value,{generateConfig:r.value,locale:o.value,format:s});i.push(l),0===a&&(t=l)}return[i,t]}),[e,n],(function(e,t){return t[0]!==e[0]||!kc(t[1],e[1])})),a=(0,s.EW)((function(){return i.value[0]})),l=(0,s.EW)((function(){return i.value[1]}));return[a,l]}function eC(e,t){var n,r=t.formatList,o=t.generateConfig,i=t.locale,a=(0,s.KR)(null);function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];G.cancel(n),t?a.value=e:n=G((function(){a.value=e}))}var u=Zx(a,{formatList:r,generateConfig:o,locale:i}),c=(0,Re.A)(u,2),f=c[1];function d(e){l(e)}function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(null,e)}return(0,s.wB)(e,(function(){h(!0)})),(0,s.xo)((function(){G.cancel(n)})),[f,d,h]}function tC(){return(0,s.pM)({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup:function(e,t){var n=t.attrs,r=t.expose,a=(0,s.KR)(null),u=(0,s.EW)((function(){var t;return null!==(t=e.picker)&&void 0!==t?t:"date"})),c=(0,s.EW)((function(){return"date"===u.value&&!!e.showTime||"time"===u.value}));var f=(0,s.EW)((function(){return bv(Ip(e.format,u.value,e.showTime,e.use12Hours))})),d=(0,s.KR)(null),h=(0,s.KR)(null),p=(0,s.KR)(null),v=Ra(null,{value:(0,s.lW)(e,"value"),defaultValue:e.defaultValue}),g=(0,Re.A)(v,2),m=g[0],y=g[1],b=(0,s.KR)(m.value),w=function(e){b.value=e},A=(0,s.KR)(null),x=Ra(!1,{value:(0,s.lW)(e,"open"),defaultValue:e.defaultOpen,postState:function(t){return!e.disabled&&t},onChange:function(t){e.onOpenChange&&e.onOpenChange(t),!t&&A.value&&A.value.onClose&&A.value.onClose()}}),C=(0,Re.A)(x,2),S=C[0],_=C[1],k=Zx(b,{formatList:f,generateConfig:(0,s.lW)(e,"generateConfig"),locale:(0,s.lW)(e,"locale")}),E=(0,Re.A)(k,2),O=E[0],F=E[1],T=Qx({valueTexts:O,onTextChange:function(t){var n=dv(t,{locale:e.locale,formatList:f.value,generateConfig:e.generateConfig});!n||e.disabledDate&&e.disabledDate(n)||w(n)}}),P=(0,Re.A)(T,3),N=P[0],M=P[1],L=P[2],I=function(t){var n=e.onChange,r=e.generateConfig,o=e.locale;w(t),y(t),n&&!sv(r,m.value,t)&&n(t,t?fv(t,{generateConfig:r,locale:o,format:f.value[0]}):"")},R=function(t){e.disabled&&t||_(t)},j=function(e){return S.value&&A.value&&A.value.onKeydown?A.value.onKeydown(e):((0,Ke.$e)(!1,"Picker not correct forward Keydown operation. Please help to fire issue about this."),!1)},D=function(){e.onMouseup&&e.onMouseup.apply(e,arguments),a.value&&(a.value.focus(),R(!0))},B=Jx({blurToCancel:c,open:S,value:N,triggerOpen:R,forwardKeydown:j,isClickOutside:function(e){return!qp([d.value,h.value,p.value],e)},onSubmit:function(){return!(!b.value||e.disabledDate&&e.disabledDate(b.value))&&(I(b.value),R(!1),L(),!0)},onCancel:function(){R(!1),w(m.value),L()},onKeydown:function(t,n){var r;null===(r=e.onKeydown)||void 0===r||r.call(e,t,n)},onFocus:function(t){var n;null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(t){var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),W=(0,Re.A)(B,2),z=W[0],U=W[1],K=U.focused,V=U.typing;(0,s.wB)([S,O],(function(){S.value||(w(m.value),O.value.length&&""!==O.value[0]?F.value!==N.value&&L():M(""))})),(0,s.wB)(u,(function(){S.value||L()})),(0,s.wB)(m,(function(){w(m.value)}));var H=eC(N,{formatList:f,generateConfig:(0,s.lW)(e,"generateConfig"),locale:(0,s.lW)(e,"locale")}),q=(0,Re.A)(H,3),G=q[0],Y=q[1],$=q[2],X=function(e,t){("submit"===t||"key"!==t&&!c.value)&&(I(e),R(!1))};pp({operationRef:A,hideHeader:(0,s.EW)((function(){return"time"===u.value})),panelRef:d,onSelect:X,open:S,defaultOpenValue:(0,s.lW)(e,"defaultOpenValue"),onDateMouseenter:Y,onDateMouseleave:$}),r({focus:function(){a.value&&a.value.focus()},blur:function(){a.value&&a.value.blur()}});var J=go();return function(){var t,r=e.prefixCls,u=void 0===r?"rc-picker":r,c=e.id,d=e.tabindex,v=e.dropdownClassName,g=e.dropdownAlign,y=e.popupStyle,A=e.transitionName,x=e.generateConfig,C=e.locale,_=e.inputReadOnly,k=e.allowClear,E=e.autofocus,O=e.picker,F=void 0===O?"date":O,T=(e.defaultOpenValue,e.suffixIcon),P=e.clearIcon,L=e.disabled,j=e.placeholder,B=e.getPopupContainer,W=e.panelRender,U=e.onMousedown,H=e.onMouseenter,q=e.onMouseleave,Y=e.onContextmenu,X=e.onClick,Q=e.onSelect,Z=e.direction,ee=e.autocomplete,te=void 0===ee?"off":ee,ne=(0,o.A)((0,o.A)((0,o.A)({},e),n),{},{class:(0,l.A)((0,i.A)({},"".concat(u,"-panel-focused"),!V.value)),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),re=(0,s.bF)(Ag,(0,o.A)((0,o.A)({},ne),{},{generateConfig:x,value:b.value,locale:C,tabindex:-1,onSelect:function(e){null===Q||void 0===Q||Q(e),w(e)},direction:Z,onPanelChange:function(t,n){var r=e.onPanelChange;$(!0),null===r||void 0===r||r(t,n)}}),null);W&&(re=W(re));var oe,ie,ae=(0,s.bF)("div",{class:"".concat(u,"-panel-container"),onMousedown:function(e){e.preventDefault()}},[re]);T&&(oe=(0,s.bF)("span",{class:"".concat(u,"-suffix")},[T])),k&&m.value&&!L&&(ie=(0,s.bF)("span",{onMousedown:function(e){e.preventDefault(),e.stopPropagation()},onMouseup:function(e){e.preventDefault(),e.stopPropagation(),I(null),R(!1)},class:"".concat(u,"-clear"),role:"button"},[P||(0,s.bF)("span",{class:"".concat(u,"-clear-btn")},null)]));var se=(0,o.A)((0,o.A)((0,o.A)({id:c,tabindex:d,disabled:L,readonly:_||"function"===typeof f.value[0]||!V.value,value:G.value||N.value,onInput:function(e){M(e.target.value)},autofocus:E,placeholder:j,ref:a,title:N.value},z.value),{},{size:Rp(F,f.value[0],x)},wv(e)),{},{autocomplete:te}),le=e.inputRender?e.inputRender(se):(0,s.bF)("input",se,null);var ue="rtl"===Z?"bottomRight":"bottomLeft";return(0,s.bF)(Xx,{visible:S.value,popupStyle:y,prefixCls:u,dropdownClassName:v,dropdownAlign:g,getPopupContainer:B,transitionName:A,popupPlacement:ue,direction:Z},{default:function(){return[(0,s.bF)("div",{ref:p,class:(0,l.A)(u,n.class,(t={},(0,i.A)(t,"".concat(u,"-disabled"),L),(0,i.A)(t,"".concat(u,"-focused"),K.value),(0,i.A)(t,"".concat(u,"-rtl"),"rtl"===Z),t)),style:n.style,onMousedown:U,onMouseup:D,onMouseenter:H,onMouseleave:q,onContextmenu:Y,onClick:X},[(0,s.bF)("div",{class:(0,l.A)("".concat(u,"-input"),(0,i.A)({},"".concat(u,"-input-placeholder"),!!G.value)),ref:h},[le,oe,ie]),J()])]},popupElement:function(){return ae}})}}})}var nC=tC(),rC=nC,oC=n(33927);function iC(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function aC(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function sC(){return{id:String,dropdownClassName:String,dropdownAlign:{type:Object},popupStyle:{type:Object},transitionName:String,placeholder:String,allowClear:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},tabindex:Number,open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},inputReadOnly:{type:Boolean,default:void 0},format:{type:[String,Function,Array]},getPopupContainer:{type:Function},panelRender:{type:Function},onChange:{type:Function},"onUpdate:value":{type:Function},onOk:{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function},onFocus:{type:Function},onBlur:{type:Function},onMousedown:{type:Function},onMouseup:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onContextmenu:{type:Function},onKeydown:{type:Function},role:String,name:String,autocomplete:String,direction:{type:String},showToday:{type:Boolean,default:void 0},showTime:{type:[Boolean,Object],default:void 0},locale:{type:Object},size:{type:String},bordered:{type:Boolean,default:void 0},dateRender:{type:Function},disabledDate:{type:Function},mode:{type:String},picker:{type:String},valueFormat:String,disabledHours:Function,disabledMinutes:Function,disabledSeconds:Function}}function lC(){return{defaultPickerValue:{type:[String,Object]},defaultValue:{type:[String,Object]},value:{type:[String,Object]},disabledTime:{type:Function},renderExtraFooter:{type:Function},showNow:{type:Boolean,default:void 0},monthCellRender:{type:Function},monthCellContentRender:{type:Function}}}function uC(){return{allowEmpty:{type:Array},dateRender:{type:Function},defaultPickerValue:{type:Array},defaultValue:{type:Array},value:{type:Array},disabledTime:{type:Function},disabled:{type:[Boolean,Array]},renderExtraFooter:{type:Function},separator:{type:String},ranges:{type:Object},placeholder:Array,mode:{type:Array},onChange:{type:Function},"onUpdate:value":{type:Function},onCalendarChange:{type:Function},onPanelChange:{type:Function},onOk:{type:Function}}}var cC=["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"];function fC(e,t){function n(n,r){var a=(0,o.A)((0,o.A)((0,o.A)({},sC()),lC()),t);return(0,s.pM)({compatConfig:{MODE:3},name:r,inheritAttrs:!1,props:a,slots:["suffixIcon","prevIcon","nextIcon","superPrevIcon","superNextIcon","dateRender","renderExtraFooter","monthCellRender"],setup:function(t,r){var a=r.slots,u=r.expose,c=r.attrs,f=r.emit,d=t,h=ws();(0,Wu.A)(!(d.monthCellContentRender||a.monthCellContentRender),"DatePicker",'`monthCellContentRender` is deprecated. Please use `monthCellRender"` instead.'),(0,Wu.A)(!c.getCalendarContainer,"DatePicker",'`getCalendarContainer` is deprecated. Please use `getPopupContainer"` instead.');var p=(0,se.A)("picker",d),v=p.prefixCls,g=p.direction,m=p.getPopupContainer,y=p.size,b=p.rootPrefixCls,w=(0,s.KR)();u({focus:function(){var e;null===(e=w.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=w.value)||void 0===e||e.blur()}});var A=function(t){return d.valueFormat?e.toString(t,d.valueFormat):t},x=function(e,t){var n=A(e);f("update:value",n),f("change",n,t),h.onFieldChange()},C=function(e){f("update:open",e),f("openChange",e)},S=function(e){f("focus",e)},_=function(e){f("blur",e),h.onFieldBlur()},k=function(e,t){var n=A(e);f("panelChange",n,t)},E=function(e){var t=A(e);f("ok",t)},O=(0,xg.n)("DatePicker",oC.A),F=(0,Re.A)(O,1),T=F[0],P=(0,s.EW)((function(){return d.value?d.valueFormat?e.toDate(d.value,d.valueFormat):d.value:""===d.value?void 0:d.value})),N=(0,s.EW)((function(){return d.defaultValue?d.valueFormat?e.toDate(d.defaultValue,d.valueFormat):d.defaultValue:""===d.defaultValue?void 0:d.defaultValue})),M=(0,s.EW)((function(){return d.defaultPickerValue?d.valueFormat?e.toDate(d.defaultPickerValue,d.valueFormat):d.defaultPickerValue:""===d.defaultPickerValue?void 0:d.defaultPickerValue}));return function(){var t,r,u,f,p,A,O,F=(0,o.A)((0,o.A)({},T.value),d.locale),L=(0,o.A)((0,o.A)({},d),c),I=L.bordered,R=void 0===I||I,j=L.placeholder,D=L.suffixIcon,B=void 0===D?null===(t=a.suffixIcon)||void 0===t?void 0:t.call(a):D,W=L.showToday,z=void 0===W||W,U=L.transitionName,K=L.allowClear,V=void 0===K||K,H=L.dateRender,q=void 0===H?a.dateRender:H,G=L.renderExtraFooter,Y=void 0===G?a.renderExtraFooter:G,$=L.monthCellRender,X=void 0===$?a.monthCellRender||d.monthCellContentRender||a.monthCellContentRender:$,J=L.clearIcon,Q=void 0===J?null===(r=a.clearIcon)||void 0===r?void 0:r.call(a):J,Z=L.id,ee=void 0===Z?h.id.value:Z,te=(0,je.A)(L,cC),ne=""===L.showTime||L.showTime,re=L.format,oe={};n&&(oe.picker=n);var ie=n||L.picker||"date";oe=(0,o.A)((0,o.A)((0,o.A)({},oe),ne?KC((0,o.A)({format:re,picker:ie},"object"===(0,Ie.A)(ne)?ne:{})):{}),"time"===ie?KC((0,o.A)((0,o.A)({format:re},te),{},{picker:ie})):{});var ae=v.value;return(0,s.bF)(rC,(0,o.A)((0,o.A)((0,o.A)({monthCellRender:X,dateRender:q,renderExtraFooter:Y,ref:w,placeholder:iC(ie,F,j),suffixIcon:B||("time"===ie?(0,s.bF)(Gx,null,null):(0,s.bF)(zx,null,null)),clearIcon:Q||(0,s.bF)(ss.A,null,null),allowClear:V,transitionName:U||"".concat(b.value,"-slide-up")},te),oe),{},{id:ee,picker:ie,value:P.value,defaultValue:N.value,defaultPickerValue:M.value,showToday:z,locale:F.lang,class:(0,l.A)((u={},(0,i.A)(u,"".concat(ae,"-").concat(y.value),y.value),(0,i.A)(u,"".concat(ae,"-borderless"),!R),u),c.class),prefixCls:ae,getPopupContainer:c.getCalendarContainer||m.value,generateConfig:e,prevIcon:(null===(f=a.prevIcon)||void 0===f?void 0:f.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-prev-icon")},null),nextIcon:(null===(p=a.nextIcon)||void 0===p?void 0:p.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-next-icon")},null),superPrevIcon:(null===(A=a.superPrevIcon)||void 0===A?void 0:A.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-super-prev-icon")},null),superNextIcon:(null===(O=a.superNextIcon)||void 0===O?void 0:O.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-super-next-icon")},null),components:zC,direction:g.value,onChange:x,onOpenChange:C,onFocus:S,onBlur:_,onPanelChange:k,onOk:E}),null)}}})}var r=n(void 0,"ADatePicker"),a=n("week","AWeekPicker"),u=n("month","AMonthPicker"),c=n("year","AYearPicker"),f=n("time","TimePicker"),d=n("quarter","AQuarterPicker");return{DatePicker:r,WeekPicker:a,MonthPicker:u,YearPicker:c,TimePicker:f,QuarterPicker:d}}var dC={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},hC=dC;function pC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vC(e,t,n[t])}))}return e}function vC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gC=function(e,t){var n=pC({},e,t.attrs);return(0,s.bF)(Ya.A,pC({},n,{icon:hC}),null)};gC.displayName="SwapRightOutlined",gC.inheritAttrs=!1;var mC,yC,bC=gC;function wC(e,t){var n=e.picker,r=e.locale,o=e.selectedValue,i=e.disabledDate,a=e.disabled,l=e.generateConfig,u=(0,s.EW)((function(){return Av(o.value,0)})),c=(0,s.EW)((function(){return Av(o.value,1)}));function f(e){return l.value.locale.getWeekFirstDate(r.value.locale,e)}function d(e){var t=l.value.getYear(e),n=l.value.getMonth(e);return 100*t+n}function h(e){var t=l.value.getYear(e),n=tv(l.value,e);return 10*t+n}var p=function(e){var r;if(i&&null!==i&&void 0!==i&&null!==(r=i.value)&&void 0!==r&&r.call(i,e))return!0;if(a[1]&&c)return!ov(l.value,e,c.value)&&l.value.isAfter(e,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return h(e)>h(c.value);case"month":return d(e)>d(c.value);case"week":return f(e)>f(c.value);default:return!ov(l.value,e,c.value)&&l.value.isAfter(e,c.value)}return!1},v=function(e){var r;if(null!==(r=i.value)&&void 0!==r&&r.call(i,e))return!0;if(a[0]&&u)return!ov(l.value,e,c.value)&&l.value.isAfter(u.value,e);if(t.value[0]&&u.value)switch(n.value){case"quarter":return h(e)<h(u.value);case"month":return d(e)<d(u.value);case"week":return f(e)<f(u.value);default:return!ov(l.value,e,u.value)&&l.value.isAfter(u.value,e)}return!1};return[p,v]}function AC(e,t,n,r){var o=cv(e,n,r,1);function i(n){return n(e,t)?"same":n(o,t)?"closing":"far"}switch(n){case"year":return i((function(e,t){return Zp(r,e,t)}));case"quarter":case"month":return i((function(e,t){return ev(r,e,t)}));default:return i((function(e,t){return rv(r,e,t)}))}}function xC(e,t,n,r){var o=Av(e,0),i=Av(e,1);if(0===t)return o;if(o&&i){var a=AC(o,i,n,r);switch(a){case"same":return o;case"closing":return o;default:return cv(i,n,r,-1)}}return o}function CC(e){var t=e.values,n=e.picker,r=e.defaultDates,o=e.generateConfig,i=(0,s.KR)([Av(r,0),Av(r,1)]),a=(0,s.KR)(null),l=(0,s.EW)((function(){return Av(t.value,0)})),u=(0,s.EW)((function(){return Av(t.value,1)})),c=function(e){return i.value[e]?i.value[e]:Av(a.value,e)||xC(t.value,e,n.value,o.value)||l.value||u.value||o.value.getNow()},f=(0,s.KR)(null),d=(0,s.KR)(null);function h(e,n){if(e){var r=xv(a.value,e,n);i.value=xv(i.value,null,n)||[null,null];var o=(n+1)%2;Av(t.value,o)||(r=xv(r,e,o)),a.value=r}else(l.value||u.value)&&(a.value=null)}return(0,s.nT)((function(){f.value=c(0),d.value=c(1)})),[f,d,h]}function SC(e){return!!(0,s.o5)()&&((0,s.jr)(e),!0)}function _C(e){return"function"===typeof e?e():(0,s.R1)(e)}function kC(e){var t,n=_C(e);return null!==(t=null===n||void 0===n?void 0:n.$el)&&void 0!==t?t:n}function EC(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,s.nI)()?(0,s.sV)(e):t?e():(0,s.dY)(e)}function OC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,s.KR)(),r=function(){return n.value=Boolean(e())};return r(),EC(r,t),n}var FC="undefined"!==typeof window,TC=(Object.prototype.toString,FC&&(null===(mC=window)||void 0===mC||null===(yC=mC.navigator)||void 0===yC?void 0:yC.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),FC?window:void 0),PC=(FC&&window.document,FC&&window.navigator,FC&&window.location,["window"]);function NC(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.window,i=void 0===o?TC:o,a=(0,je.A)(r,PC),l=OC((function(){return i&&"ResizeObserver"in i})),u=function(){n&&(n.disconnect(),n=void 0)},c=(0,s.wB)((function(){return kC(e)}),(function(e){u(),l.value&&i&&e&&(n=new ResizeObserver(t),n.observe(e,a))}),{immediate:!0,flush:"post"}),f=function(){u(),c()};return SC(f),{isSupported:l,stop:f}}function MC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{width:0,height:0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.box,o=void 0===r?"content-box":r,i=(0,s.KR)(t.width),a=(0,s.KR)(t.height);return NC(e,(function(e){var t=(0,Re.A)(e,1),n=t[0],r="border-box"===o?n.borderBoxSize:"content-box"===o?n.contentBoxSize:n.devicePixelContentBoxSize;r?(i.value=r.reduce((function(e,t){var n=t.inlineSize;return e+n}),0),a.value=r.reduce((function(e,t){var n=t.blockSize;return e+n}),0)):(i.value=n.contentRect.width,a.value=n.contentRect.height)}),n),(0,s.wB)((function(){return kC(e)}),(function(e){i.value=e?t.width:0,a.value=e?t.height:0})),{width:i,height:a}}function LC(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function IC(e,t,n,r){return!!e||(!(!r||!r[t])||!!n[(t+1)%2])}function RC(){return(0,s.pM)({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes"],setup:function(e,t){var n=t.attrs,r=t.expose,a=(0,s.EW)((function(){return"date"===e.picker&&!!e.showTime||"time"===e.picker})),u=go(),c=(0,s.KR)({}),f=(0,s.KR)(null),d=(0,s.KR)(null),h=(0,s.KR)(null),p=(0,s.KR)(null),v=(0,s.KR)(null),g=(0,s.KR)(null),m=(0,s.KR)(null),y=(0,s.KR)(null);var b=(0,s.EW)((function(){return bv(Ip(e.format,e.picker,e.showTime,e.use12Hours))})),w=Ra(0,{value:(0,s.lW)(e,"activePickerIndex")}),A=(0,Re.A)(w,2),x=A[0],C=A[1],S=(0,s.KR)(null),_=(0,s.EW)((function(){var t=e.disabled;return Array.isArray(t)?t:[t||!1,t||!1]})),k=Ra(null,{value:(0,s.lW)(e,"value"),defaultValue:e.defaultValue,postState:function(t){return"time"!==e.picker||e.order?LC(t,e.generateConfig):t}}),E=(0,Re.A)(k,2),O=E[0],F=E[1],T=CC({values:O,picker:(0,s.lW)(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:(0,s.lW)(e,"generateConfig")}),P=(0,Re.A)(T,3),N=P[0],M=P[1],L=P[2],I=Ra(O.value,{postState:function(t){var n=t;if(_.value[0]&&_.value[1])return n;for(var r=0;r<2;r+=1)!_.value[r]||Av(n,r)||Av(e.allowEmpty,r)||(n=xv(n,e.generateConfig.getNow(),r));return n}}),R=(0,Re.A)(I,2),j=R[0],D=R[1],B=Ra([e.picker,e.picker],{value:(0,s.lW)(e,"mode")}),W=(0,Re.A)(B,2),z=W[0],U=W[1];(0,s.wB)((function(){return e.picker}),(function(){U([e.picker,e.picker])}));var K=function(t,n){var r;U(t),null===(r=e.onPanelChange)||void 0===r||r.call(e,n,t)},V=wC({picker:(0,s.lW)(e,"picker"),selectedValue:j,locale:(0,s.lW)(e,"locale"),disabled:_,disabledDate:(0,s.lW)(e,"disabledDate"),generateConfig:(0,s.lW)(e,"generateConfig")},c),H=(0,Re.A)(V,2),q=H[0],G=H[1],Y=Ra(!1,{value:(0,s.lW)(e,"open"),defaultValue:e.defaultOpen,postState:function(e){return!_.value[x.value]&&e},onChange:function(t){var n;null===(n=e.onOpenChange)||void 0===n||n.call(e,t),!t&&S.value&&S.value.onClose&&S.value.onClose()}}),$=(0,Re.A)(Y,2),X=$[0],J=$[1],Q=(0,s.EW)((function(){return X.value&&0===x.value})),Z=(0,s.EW)((function(){return X.value&&1===x.value})),ee=(0,s.KR)(0),te=(0,s.KR)(0),ne=(0,s.KR)(0),re=MC(f),oe=re.width;(0,s.wB)([X,oe],(function(){!X.value&&f.value&&(ne.value=oe.value)}));var ie=MC(d),ae=ie.width,se=MC(y),le=se.width,ue=MC(h),ce=ue.width,fe=MC(v),de=fe.width;(0,s.wB)([x,X,ae,le,ce,de,function(){return e.direction}],(function(){te.value=0,X.value&&x.value?h.value&&v.value&&d.value&&(te.value=ce.value+de.value,ae.value&&le.value&&te.value>ae.value-le.value-("rtl"===e.direction||y.value.offsetLeft>te.value?0:y.value.offsetLeft)&&(ee.value=te.value)):0===x.value&&(ee.value=0)}),{immediate:!0});var he=(0,s.KR)();function pe(e,t){if(e)clearTimeout(he.value),c.value[t]=!0,C(t),J(e),X.value||L(null,t);else if(x.value===t){J(e);var n=c.value;he.value=setTimeout((function(){n===c.value&&(c.value={})}))}}function ve(e){pe(!0,e),setTimeout((function(){var t=[g,m][e];t.value&&t.value.focus()}),0)}function ge(t,n){var r=t,o=Av(r,0),a=Av(r,1),s=e.generateConfig,l=e.locale,u=e.picker,f=e.order,d=e.onCalendarChange,h=e.allowEmpty,p=e.onChange,v=e.showTime;o&&a&&s.isAfter(o,a)&&("week"===u&&!av(s,l.locale,o,a)||"quarter"===u&&!nv(s,o,a)||"week"!==u&&"quarter"!==u&&"time"!==u&&!(v?sv(s,o,a):ov(s,o,a))?(0===n?(r=[o,null],a=null):(o=null,r=[null,a]),c.value=(0,i.A)({},n,!0)):"time"===u&&!1===f||(r=LC(r,s))),D(r);var g=r&&r[0]?fv(r[0],{generateConfig:s,locale:l,format:b.value[0]}):"",m=r&&r[1]?fv(r[1],{generateConfig:s,locale:l,format:b.value[0]}):"";if(d){var y={range:0===n?"start":"end"};d(r,[g,m],y)}var w=IC(o,0,_.value,h),A=IC(a,1,_.value,h),C=null===r||w&&A;C&&(F(r),!p||sv(s,Av(O.value,0),o)&&sv(s,Av(O.value,1),a)||p(r,[g,m]));var S=null;0!==n||_.value[1]?1!==n||_.value[0]||(S=0):S=1,null===S||S===x.value||c.value[S]&&Av(r,S)||!Av(r,n)?pe(!1,n):ve(S)}var me=function(e){return X&&S.value&&S.value.onKeydown?S.value.onKeydown(e):((0,Ke.$e)(!1,"Picker not correct forward Keydown operation. Please help to fire issue about this."),!1)},ye={formatList:b,generateConfig:(0,s.lW)(e,"generateConfig"),locale:(0,s.lW)(e,"locale")},be=Zx((0,s.EW)((function(){return Av(j.value,0)})),ye),we=(0,Re.A)(be,2),Ae=we[0],xe=we[1],Ce=Zx((0,s.EW)((function(){return Av(j.value,1)})),ye),Se=(0,Re.A)(Ce,2),_e=Se[0],ke=Se[1],Ee=function(t,n){var r=dv(t,{locale:e.locale,formatList:b.value,generateConfig:e.generateConfig}),o=0===n?q:G;r&&!o(r)&&(D(xv(j.value,r,n)),L(r,n))},Oe=Qx({valueTexts:Ae,onTextChange:function(e){return Ee(e,0)}}),Fe=(0,Re.A)(Oe,3),Te=Fe[0],Pe=Fe[1],Ne=Fe[2],Me=Qx({valueTexts:_e,onTextChange:function(e){return Ee(e,1)}}),Le=(0,Re.A)(Me,3),je=Le[0],De=Le[1],Be=Le[2],We=ja(null),ze=(0,Re.A)(We,2),Ue=ze[0],Ve=ze[1],He=ja(null),qe=(0,Re.A)(He,2),Ge=qe[0],Ye=qe[1],$e=eC(Te,ye),Xe=(0,Re.A)($e,3),Je=Xe[0],Qe=Xe[1],Ze=Xe[2],et=eC(je,ye),tt=(0,Re.A)(et,3),nt=tt[0],rt=tt[1],ot=tt[2],it=function(e){Ye(xv(j.value,e,x.value)),0===x.value?Qe(e):rt(e)},at=function(){Ye(xv(j.value,null,x.value)),0===x.value?Ze():ot()},st=function(t,n){return{forwardKeydown:me,onBlur:function(t){var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)},isClickOutside:function(e){return!qp([d.value,h.value,p.value,f.value],e)},onFocus:function(n){var r;C(t),null===(r=e.onFocus)||void 0===r||r.call(e,n)},triggerOpen:function(e){pe(e,t)},onSubmit:function(){if(!j.value||e.disabledDate&&e.disabledDate(j.value[t]))return!1;ge(j.value,t),n()},onCancel:function(){pe(!1,t),D(O.value),n()}}},lt=Jx((0,o.A)((0,o.A)({},st(0,Ne)),{},{blurToCancel:a,open:Q,value:Te,onKeydown:function(t,n){var r;null===(r=e.onKeydown)||void 0===r||r.call(e,t,n)}})),ut=(0,Re.A)(lt,2),ct=ut[0],ft=ut[1],dt=ft.focused,ht=ft.typing,pt=Jx((0,o.A)((0,o.A)({},st(1,Be)),{},{blurToCancel:a,open:Z,value:je,onKeydown:function(t,n){var r;null===(r=e.onKeydown)||void 0===r||r.call(e,t,n)}})),vt=(0,Re.A)(pt,2),gt=vt[0],mt=vt[1],yt=mt.focused,bt=mt.typing,wt=function(t){var n;null===(n=e.onClick)||void 0===n||n.call(e,t),X.value||g.value.contains(t.target)||m.value.contains(t.target)||(_.value[0]?_.value[1]||ve(1):ve(0))},At=function(t){var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t),!X.value||!dt.value&&!yt.value||g.value.contains(t.target)||m.value.contains(t.target)||t.preventDefault()},xt=(0,s.EW)((function(){var t;return null!==(t=O.value)&&void 0!==t&&t[0]?fv(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""})),Ct=(0,s.EW)((function(){var t;return null!==(t=O.value)&&void 0!==t&&t[1]?fv(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}));(0,s.wB)([X,Ae,_e],(function(){X.value||(D(O.value),Ae.value.length&&""!==Ae.value[0]?xe.value!==Te.value&&Ne():Pe(""),_e.value.length&&""!==_e.value[0]?ke.value!==je.value&&Be():De(""))})),(0,s.wB)([xt,Ct],(function(){D(O.value)})),r({focus:function(){g.value&&g.value.focus()},blur:function(){g.value&&g.value.blur(),m.value&&m.value.blur()}});var St=(0,s.EW)((function(){return Object.keys(e.ranges||{}).map((function(t){var n=e.ranges[t],r="function"===typeof n?n():n;return{label:t,onClick:function(){ge(r,null),pe(!1,x.value)},onMouseenter:function(){Ve(r)},onMouseleave:function(){Ve(null)}}}))})),_t=(0,s.EW)((function(){return X.value&&Ge.value&&Ge.value[0]&&Ge.value[1]&&e.generateConfig.isAfter(Ge.value[1],Ge.value[0])?Ge.value:null}));function kt(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.generateConfig,a=e.showTime,u=e.dateRender,c=e.direction,f=e.disabledTime,d=e.prefixCls,h=e.locale,p=a;if(a&&"object"===(0,Ie.A)(a)&&a.defaultValue){var v=a.defaultValue;p=(0,o.A)((0,o.A)({},a),{},{defaultValue:Av(v,x.value)||void 0})}var g=null;return u&&(g=function(e){var t=e.current,n=e.today;return u({current:t,today:n,info:{range:x.value?"end":"start"}})}),(0,s.bF)(Mv,{value:{inRange:!0,panelPosition:t,rangedValue:Ue.value||j.value,hoverRangedValue:_t.value}},{default:function(){return[(0,s.bF)(Ag,(0,o.A)((0,o.A)((0,o.A)({},e),n),{},{dateRender:g,showTime:p,mode:z.value[x.value],generateConfig:r,style:void 0,direction:c,disabledDate:0===x.value?q:G,disabledTime:function(e){return!!f&&f(e,0===x.value?"start":"end")},class:(0,l.A)((0,i.A)({},"".concat(d,"-panel-focused"),0===x.value?!ht.value:!bt.value)),value:Av(j.value,x.value),locale:h,tabIndex:-1,onPanelChange:function(e,n){0===x.value&&Ze(!0),1===x.value&&ot(!0),K(xv(z.value,n,x.value),xv(j.value,e,x.value));var o=e;"right"===t&&z.value[x.value]===n&&(o=cv(o,n,r,-1)),L(o,x.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:0===x.value?Av(j.value,1):Av(j.value,0)}),null)]}})}var Et=function(e,t){var n=xv(j.value,e,x.value);"submit"===t||"key"!==t&&!a.value?(ge(n,x.value),0===x.value?Ze():ot()):D(n)};return pp({operationRef:S,hideHeader:(0,s.EW)((function(){return"time"===e.picker})),onDateMouseenter:it,onDateMouseleave:at,hideRanges:(0,s.EW)((function(){return!0})),onSelect:Et,open:X}),function(){var t,r,c,w=e.prefixCls,A=void 0===w?"rc-picker":w,C=e.id,S=e.popupStyle,k=e.dropdownClassName,E=e.transitionName,F=e.dropdownAlign,T=e.getPopupContainer,P=e.generateConfig,I=e.locale,R=e.placeholder,D=e.autofocus,B=e.picker,W=void 0===B?"date":B,U=e.showTime,K=e.separator,V=void 0===K?"~":K,H=e.disabledDate,q=e.panelRender,G=e.allowClear,Y=e.suffixIcon,$=e.clearIcon,J=e.inputReadOnly,Q=e.renderExtraFooter,Z=e.onMouseenter,re=e.onMouseleave,oe=e.onMouseup,ie=e.onOk,ae=e.components,se=e.direction,le=e.autocomplete,ue=void 0===le?"off":le,ce="rtl"===se?{right:"".concat(te.value,"px")}:{left:"".concat(te.value,"px")};function fe(){var e,t=mg(A,z.value[x.value],Q),n=yg({prefixCls:A,components:ae,needConfirmButton:a.value,okDisabled:!Av(j.value,x.value)||H&&H(j.value[x.value]),locale:I,rangeList:St.value,onOk:function(){Av(j.value,x.value)&&(ge(j.value,x.value),ie&&ie(j.value))}});if("time"===W||U)e=kt();else{var r=0===x.value?N.value:M.value,o=cv(r,W,P),i=z.value[x.value],l=i===W,u=kt(!!l&&"left",{pickerValue:r,onPickerValueChange:function(e){L(e,x.value)}}),c=kt("right",{pickerValue:o,onPickerValueChange:function(e){L(cv(e,W,P,-1),x.value)}});e="rtl"===se?(0,s.bF)(s.FK,null,[c,l&&u]):(0,s.bF)(s.FK,null,[u,l&&c])}var f=(0,s.bF)(s.FK,null,[(0,s.bF)("div",{class:"".concat(A,"-panels")},[e]),(t||n)&&(0,s.bF)("div",{class:"".concat(A,"-footer")},[t,n])]);return q&&(f=q(f)),(0,s.bF)("div",{class:"".concat(A,"-panel-container"),style:{marginLeft:"".concat(ee.value,"px")},ref:d,onMousedown:function(e){e.preventDefault()}},[f])}var de,he,ve=(0,s.bF)("div",{class:(0,l.A)("".concat(A,"-range-wrapper"),"".concat(A,"-").concat(W,"-range-wrapper")),style:{minWidth:"".concat(ne.value,"px")}},[(0,s.bF)("div",{ref:y,class:"".concat(A,"-range-arrow"),style:ce},null),fe()]);Y&&(de=(0,s.bF)("span",{class:"".concat(A,"-suffix")},[Y])),G&&(Av(O.value,0)&&!_.value[0]||Av(O.value,1)&&!_.value[1])&&(he=(0,s.bF)("span",{onMousedown:function(e){e.preventDefault(),e.stopPropagation()},onMouseup:function(e){e.preventDefault(),e.stopPropagation();var t=O.value;_.value[0]||(t=xv(t,null,0)),_.value[1]||(t=xv(t,null,1)),ge(t,null),pe(!1,x.value)},class:"".concat(A,"-clear")},[$||(0,s.bF)("span",{class:"".concat(A,"-clear-btn")},null)]));var me={size:Rp(W,b.value[0],P)},ye=0,be=0;h.value&&p.value&&v.value&&(0===x.value?be=h.value.offsetWidth:(ye=te.value,be=p.value.offsetWidth));var we="rtl"===se?{right:"".concat(ye,"px")}:{left:"".concat(ye,"px")};return(0,s.bF)(Xx,{visible:X.value,popupStyle:S,prefixCls:A,dropdownClassName:k,dropdownAlign:F,getPopupContainer:T,transitionName:E,range:!0,direction:se},{default:function(){return[(0,s.bF)("div",(0,o.A)({ref:f,class:(0,l.A)(A,"".concat(A,"-range"),n.class,(t={},(0,i.A)(t,"".concat(A,"-disabled"),_.value[0]&&_.value[1]),(0,i.A)(t,"".concat(A,"-focused"),0===x.value?dt.value:yt.value),(0,i.A)(t,"".concat(A,"-rtl"),"rtl"===se),t)),style:n.style,onClick:wt,onMouseenter:Z,onMouseleave:re,onMousedown:At,onMouseup:oe},wv(e)),[(0,s.bF)("div",{class:(0,l.A)("".concat(A,"-input"),(r={},(0,i.A)(r,"".concat(A,"-input-active"),0===x.value),(0,i.A)(r,"".concat(A,"-input-placeholder"),!!Je.value),r)),ref:h},[(0,s.bF)("input",(0,o.A)((0,o.A)((0,o.A)({id:C,disabled:_.value[0],readonly:J||"function"===typeof b.value[0]||!ht.value,value:Je.value||Te.value,onInput:function(e){Pe(e.target.value)},autofocus:D,placeholder:Av(R,0)||"",ref:g},ct.value),me),{},{autocomplete:ue}),null)]),(0,s.bF)("div",{class:"".concat(A,"-range-separator"),ref:v},[V]),(0,s.bF)("div",{class:(0,l.A)("".concat(A,"-input"),(c={},(0,i.A)(c,"".concat(A,"-input-active"),1===x.value),(0,i.A)(c,"".concat(A,"-input-placeholder"),!!nt.value),c)),ref:p},[(0,s.bF)("input",(0,o.A)((0,o.A)((0,o.A)({disabled:_.value[1],readonly:J||"function"===typeof b.value[0]||!bt.value,value:nt.value||je.value,onInput:function(e){De(e.target.value)},placeholder:Av(R,1)||"",ref:m},gt.value),me),{},{autocomplete:ue}),null)]),(0,s.bF)("div",{class:"".concat(A,"-active-bar"),style:(0,o.A)((0,o.A)({},we),{},{width:"".concat(be,"px"),position:"absolute"})},null),de,he,u()])]},popupElement:function(){return ve}})}}})}var jC=RC(),DC=jC,BC=["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"];function WC(e,t){var n=(0,s.pM)({compatConfig:{MODE:3},name:"ARangePicker",inheritAttrs:!1,props:(0,o.A)((0,o.A)((0,o.A)({},sC()),uC()),t),slots:["suffixIcon","prevIcon","nextIcon","superPrevIcon","superNextIcon","dateRender","renderExtraFooter"],setup:function(t,n){var r=n.expose,a=n.slots,u=n.attrs,c=n.emit,f=t,d=ws();(0,Wu.A)(!u.getCalendarContainer,"DatePicker",'`getCalendarContainer` is deprecated. Please use `getPopupContainer"` instead.');var h=(0,se.A)("picker",f),p=h.prefixCls,v=h.direction,g=h.getPopupContainer,m=h.size,y=h.rootPrefixCls,b=(0,s.KR)();r({focus:function(){var e;null===(e=b.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=b.value)||void 0===e||e.blur()}});var w=function(t){return f.valueFormat?e.toString(t,f.valueFormat):t},A=function(e,t){var n=w(e);c("update:value",n),c("change",n,t),d.onFieldChange()},x=function(e){c("update:open",e),c("openChange",e)},C=function(e){c("focus",e)},S=function(e){c("blur",e),d.onFieldBlur()},_=function(e,t){var n=w(e);c("panelChange",n,t)},k=function(e){var t=w(e);c("ok",t)},E=function(e,t,n){var r=w(e);c("calendarChange",r,t,n)},O=(0,xg.n)("DatePicker",oC.A),F=(0,Re.A)(O,1),T=F[0],P=(0,s.EW)((function(){return f.value&&f.valueFormat?e.toDate(f.value,f.valueFormat):f.value})),N=(0,s.EW)((function(){return f.defaultValue&&f.valueFormat?e.toDate(f.defaultValue,f.valueFormat):f.defaultValue})),M=(0,s.EW)((function(){return f.defaultPickerValue&&f.valueFormat?e.toDate(f.defaultPickerValue,f.valueFormat):f.defaultPickerValue}));return function(){var t,n,r,c,h,w,O,F,L=(0,o.A)((0,o.A)({},T.value),f.locale),I=(0,o.A)((0,o.A)({},f),u),R=(I.prefixCls,I.bordered),j=void 0===R||R,D=I.placeholder,B=I.suffixIcon,W=void 0===B?null===(t=a.suffixIcon)||void 0===t?void 0:t.call(a):B,z=I.picker,U=void 0===z?"date":z,K=I.transitionName,V=I.allowClear,H=void 0===V||V,q=I.dateRender,G=void 0===q?a.dateRender:q,Y=I.renderExtraFooter,$=void 0===Y?a.renderExtraFooter:Y,X=I.separator,J=void 0===X?null===(n=a.separator)||void 0===n?void 0:n.call(a):X,Q=I.clearIcon,Z=void 0===Q?null===(r=a.clearIcon)||void 0===r?void 0:r.call(a):Q,ee=I.id,te=void 0===ee?d.id.value:ee,ne=(0,je.A)(I,BC);delete ne["onUpdate:value"],delete ne["onUpdate:open"];var re=I.format,oe=I.showTime,ie={};ie=(0,o.A)((0,o.A)((0,o.A)({},ie),oe?KC((0,o.A)({format:re,picker:U},oe)):{}),"time"===U?KC((0,o.A)((0,o.A)({format:re},ce(ne,["disabledTime"])),{},{picker:U})):{});var ae=p.value;return(0,s.bF)(DC,(0,o.A)((0,o.A)((0,o.A)({dateRender:G,renderExtraFooter:$,separator:J||(0,s.bF)("span",{"aria-label":"to",class:"".concat(ae,"-separator")},[(0,s.bF)(bC,null,null)]),ref:b,placeholder:aC(U,L,D),suffixIcon:W||("time"===U?(0,s.bF)(Gx,null,null):(0,s.bF)(zx,null,null)),clearIcon:Z||(0,s.bF)(ss.A,null,null),allowClear:H,transitionName:K||"".concat(y.value,"-slide-up")},ne),ie),{},{id:te,value:P.value,defaultValue:N.value,defaultPickerValue:M.value,picker:U,class:(0,l.A)((c={},(0,i.A)(c,"".concat(ae,"-").concat(m.value),m.value),(0,i.A)(c,"".concat(ae,"-borderless"),!j),c),u.class),locale:L.lang,prefixCls:ae,getPopupContainer:u.getCalendarContainer||g.value,generateConfig:e,prevIcon:(null===(h=a.prevIcon)||void 0===h?void 0:h.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-prev-icon")},null),nextIcon:(null===(w=a.nextIcon)||void 0===w?void 0:w.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-next-icon")},null),superPrevIcon:(null===(O=a.superPrevIcon)||void 0===O?void 0:O.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-super-prev-icon")},null),superNextIcon:(null===(F=a.superNextIcon)||void 0===F?void 0:F.call(a))||(0,s.bF)("span",{class:"".concat(ae,"-super-next-icon")},null),components:zC,direction:v.value,onChange:A,onOpenChange:x,onFocus:C,onBlur:S,onPanelChange:_,onOk:k,onCalendarChange:E}),null)}}});return n}var zC={button:kx,rangeItem:Ix};function UC(e){return e?Array.isArray(e)?e:[e]:[]}function KC(e){var t=e.format,n=e.picker,r=e.showHour,i=e.showMinute,a=e.showSecond,s=e.use12Hours,l=UC(t)[0],u=(0,o.A)({},e);return l&&"string"===typeof l&&(l.includes("s")||void 0!==a||(u.showSecond=!1),l.includes("m")||void 0!==i||(u.showMinute=!1),l.includes("H")||l.includes("h")||void 0!==r||(u.showHour=!1),(l.includes("a")||l.includes("A"))&&void 0===s&&(u.use12Hours=!0)),"time"===n?u:("function"===typeof l&&delete u.format,{showTime:u})}function VC(e,t){var n=fC(e,t),r=n.DatePicker,o=n.WeekPicker,i=n.MonthPicker,a=n.YearPicker,s=n.TimePicker,l=n.QuarterPicker,u=WC(e,t);return{DatePicker:r,WeekPicker:o,MonthPicker:i,YearPicker:a,TimePicker:s,QuarterPicker:l,RangePicker:u}}var HC=VC,qC=HC(_d),GC=qC.DatePicker,YC=qC.WeekPicker,$C=qC.MonthPicker,XC=qC.YearPicker,JC=qC.TimePicker,QC=qC.QuarterPicker,ZC=qC.RangePicker,eS=(0,a.A)(GC,{WeekPicker:YC,MonthPicker:$C,YearPicker:XC,RangePicker:ZC,TimePicker:JC,QuarterPicker:QC,install:function(e){return e.component(GC.name,GC),e.component(ZC.name,ZC),e.component($C.name,$C),e.component(YC.name,YC),e.component(QC.name,QC),e}}),tS=eS;function nS(e){return void 0!==e&&null!==e}var rS=function(e){var t,n=e.itemPrefixCls,r=e.component,o=e.span,a=e.labelStyle,l=e.contentStyle,u=e.bordered,c=e.label,f=e.content,d=e.colon,h=r;return u?(0,s.bF)(h,{class:[(t={},(0,i.A)(t,"".concat(n,"-item-label"),nS(c)),(0,i.A)(t,"".concat(n,"-item-content"),nS(f)),t)],colSpan:o},{default:function(){return[nS(c)&&(0,s.bF)("span",{style:a},[c]),nS(f)&&(0,s.bF)("span",{style:l},[f])]}}):(0,s.bF)(h,{class:["".concat(n,"-item")],colSpan:o},{default:function(){return[(0,s.bF)("div",{class:"".concat(n,"-item-container")},[c&&(0,s.bF)("span",{class:["".concat(n,"-item-label"),(0,i.A)({},"".concat(n,"-item-no-colon"),!d)],style:a},[c]),f&&(0,s.bF)("span",{class:"".concat(n,"-item-content"),style:l},[f])])]}})},oS=rS,iS=function(e){var t=function(e,t,n){var r=t.colon,i=t.prefixCls,a=t.bordered,l=n.component,u=n.type,c=n.showLabel,f=n.showContent,d=n.labelStyle,h=n.contentStyle;return e.map((function(e,t){var n,p,v=e.props||{},g=v.prefixCls,m=void 0===g?i:g,y=v.span,b=void 0===y?1:y,w=v.labelStyle,A=void 0===w?v["label-style"]:w,x=v.contentStyle,C=void 0===x?v["content-style"]:x,S=v.label,_=void 0===S?null===(n=e.children)||void 0===n||null===(p=n.label)||void 0===p?void 0:p.call(n):S,k=(0,B.$c)(e),E=(0,B.t0)(e),O=(0,B.gd)(e),F=e.key;return"string"===typeof l?(0,s.bF)(oS,{key:"".concat(u,"-").concat(String(F)||t),class:E,style:O,labelStyle:(0,o.A)((0,o.A)({},d),A),contentStyle:(0,o.A)((0,o.A)({},h),C),span:b,colon:r,component:l,itemPrefixCls:m,bordered:a,label:c?_:null,content:f?k:null},null):[(0,s.bF)(oS,{key:"label-".concat(String(F)||t),class:E,style:(0,o.A)((0,o.A)((0,o.A)({},d),O),A),span:1,colon:r,component:l[0],itemPrefixCls:m,bordered:a,label:_},null),(0,s.bF)(oS,{key:"content-".concat(String(F)||t),class:E,style:(0,o.A)((0,o.A)((0,o.A)({},h),O),C),span:2*b-1,component:l[1],itemPrefixCls:m,bordered:a,content:k},null)]}))},n=e.prefixCls,r=e.vertical,i=e.row,a=e.index,l=e.bordered,u=(0,s.WQ)(pS,{labelStyle:(0,s.KR)({}),contentStyle:(0,s.KR)({})}),c=u.labelStyle,f=u.contentStyle;return r?(0,s.bF)(s.FK,null,[(0,s.bF)("tr",{key:"label-".concat(a),class:"".concat(n,"-row")},[t(i,e,{component:"th",type:"label",showLabel:!0,labelStyle:c.value,contentStyle:f.value})]),(0,s.bF)("tr",{key:"content-".concat(a),class:"".concat(n,"-row")},[t(i,e,{component:"td",type:"content",showContent:!0,labelStyle:c.value,contentStyle:f.value})])]):(0,s.bF)("tr",{key:a,class:"".concat(n,"-row")},[t(i,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:c.value,contentStyle:f.value})])},aS=iS,sS=(Fe.A.any,function(){return{prefixCls:String,label:Fe.A.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}}),lS=(0,s.pM)({compatConfig:{MODE:3},name:"ADescriptionsItem",props:sS(),slots:["label"],setup:function(e,t){var n=t.slots;return function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),uS={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function cS(e,t){if("number"===typeof e)return e;if("object"===(0,Ie.A)(e))for(var n=0;n<Js.length;n++){var r=Js[n];if(t[r]&&void 0!==e[r])return e[r]||uS[r]}return 3}function fS(e,t,n){var r=e;return(void 0===t||t>n)&&(r=Bn(e,{span:n}),(0,Dn.A)(void 0===t,"Descriptions","Sum of column `span` in a line not match `column` of Descriptions.")),r}function dS(e,t){var n=(0,B.MI)(e),r=[],o=[],i=t;return n.forEach((function(e,a){var s,l=null===(s=e.props)||void 0===s?void 0:s.span,u=l||1;if(a===n.length-1)return o.push(fS(e,l,i)),void r.push(o);u<i?(i-=u,o.push(e)):(o.push(fS(e,u,i)),r.push(o),i=t,o=[])})),r}var hS=function(){return{prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:Fe.A.any,extra:Fe.A.any,column:{type:[Number,Object],default:function(){return uS}},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}},pS=Symbol("descriptionsContext"),vS=(0,s.pM)({compatConfig:{MODE:3},name:"ADescriptions",props:hS(),slots:["title","extra"],Item:lS,setup:function(e,t){var n,r=t.slots,o=(0,se.A)("descriptions",e),a=o.prefixCls,l=o.direction,u=(0,s.KR)({});(0,s.KC)((function(){n=rl.subscribe((function(t){"object"===(0,Ie.A)(e.column)&&(u.value=t)}))})),(0,s.xo)((function(){rl.unsubscribe(n)})),(0,s.Gt)(pS,{labelStyle:(0,s.lW)(e,"labelStyle"),contentStyle:(0,s.lW)(e,"contentStyle")});var c=(0,s.EW)((function(){return cS(e.column,u.value)}));return function(){var t,n,o,u,f=e.size,d=e.bordered,h=void 0!==d&&d,p=e.layout,v=void 0===p?"horizontal":p,g=e.colon,m=void 0===g||g,y=e.title,b=void 0===y?null===(t=r.title)||void 0===t?void 0:t.call(r):y,w=e.extra,A=void 0===w?null===(n=r.extra)||void 0===n?void 0:n.call(r):w,x=null===(o=r.default)||void 0===o?void 0:o.call(r),C=dS(x,c.value);return(0,s.bF)("div",{class:[a.value,(u={},(0,i.A)(u,"".concat(a.value,"-").concat(f),"default"!==f),(0,i.A)(u,"".concat(a.value,"-bordered"),!!h),(0,i.A)(u,"".concat(a.value,"-rtl"),"rtl"===l.value),u)]},[(b||A)&&(0,s.bF)("div",{class:"".concat(a.value,"-header")},[b&&(0,s.bF)("div",{class:"".concat(a.value,"-title")},[b]),A&&(0,s.bF)("div",{class:"".concat(a.value,"-extra")},[A])]),(0,s.bF)("div",{class:"".concat(a.value,"-view")},[(0,s.bF)("table",null,[(0,s.bF)("tbody",null,[C.map((function(e,t){return(0,s.bF)(aS,{key:t,index:t,colon:m,prefixCls:a.value,vertical:"vertical"===v,bordered:h,row:e},null)}))])])])])}}});vS.install=function(e){return e.component(vS.name,vS),e.component(vS.Item.name,vS.Item),e};var gS=vS,mS=function(){return{prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}},yS=(0,s.pM)({compatConfig:{MODE:3},name:"ADivider",props:mS(),setup:function(e,t){var n=t.slots,r=(0,se.A)("divider",e),a=r.prefixCls,l=r.direction,u=(0,s.EW)((function(){return"left"===e.orientation&&null!=e.orientationMargin})),c=(0,s.EW)((function(){return"right"===e.orientation&&null!=e.orientationMargin})),f=(0,s.EW)((function(){var t,n=e.type,r=e.dashed,o=e.plain,s=a.value;return t={},(0,i.A)(t,s,!0),(0,i.A)(t,"".concat(s,"-").concat(n),!0),(0,i.A)(t,"".concat(s,"-dashed"),!!r),(0,i.A)(t,"".concat(s,"-plain"),!!o),(0,i.A)(t,"".concat(s,"-rtl"),"rtl"===l.value),(0,i.A)(t,"".concat(s,"-no-default-orientation-margin-left"),u.value),(0,i.A)(t,"".concat(s,"-no-default-orientation-margin-right"),c.value),t})),d=(0,s.EW)((function(){var t="number"===typeof e.orientationMargin?"".concat(e.orientationMargin,"px"):e.orientationMargin;return(0,o.A)((0,o.A)({},u.value&&{marginLeft:t}),c.value&&{marginRight:t})})),h=(0,s.EW)((function(){return e.orientation.length>0?"-"+e.orientation:e.orientation}));return function(){var e,t=(0,B.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n));return(0,s.bF)("div",{class:[f.value,t.length?"".concat(a.value,"-with-text ").concat(a.value,"-with-text").concat(h.value):""],role:"separator"},[t.length?(0,s.bF)("span",{class:"".concat(a.value,"-inner-text"),style:d.value},[t]):null])}}}),bS=(0,$.GU)(yS);Ac.Button=hc,Ac.install=function(e){return e.component(Ac.name,Ac),e.component(hc.name,hc),e};var wS,AS=Ac;function xS(e){if("undefined"===typeof document)return 0;if(e||void 0===wS){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),wS=o-i}return wS}function CS(e){var t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?xS():n}function SS(e){if("undefined"===typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:CS(n),height:CS(r)}}var _S=function(){return{prefixCls:String,width:Fe.A.oneOfType([Fe.A.string,Fe.A.number]),height:Fe.A.oneOfType([Fe.A.string,Fe.A.number]),style:{type:Object,default:void 0},class:String,placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:{type:Object,default:void 0},autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0}}},kS=function(){return(0,o.A)((0,o.A)({},_S()),{},{forceRender:{type:Boolean,default:void 0},getContainer:Fe.A.oneOfType([Fe.A.string,Fe.A.func,Fe.A.object,Fe.A.looseBool])})},ES=function(){return(0,o.A)((0,o.A)({},_S()),{},{getContainer:Function,getOpenCount:Function,scrollLocker:Fe.A.any,switchScrollingEffect:Function})};function OS(e){return Array.isArray(e)?e:[e]}var FS={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},TS=Object.keys(FS).filter((function(e){if("undefined"===typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],PS=FS[TS];function NS(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function MS(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on".concat(t),n)}function LS(e,t){var n="function"===typeof e?e(t):e;return Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}var IS=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},RS=!("undefined"!==typeof window&&window.document&&window.document.createElement),jS=function e(t,n,r,o){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c="auto"===u.overflowY||"scroll"===u.overflowY,f="auto"===u.overflowX||"scroll"===u.overflowX,d=s&&c,h=l&&f;return!!(i&&(!d||d&&(n.scrollTop>=s&&o<0||n.scrollTop<=0&&o>0))||a&&(!h||h&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0)))&&e(t,n.parentNode,r,o)},DS=["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class"],BS={},WS=(0,s.pM)({compatConfig:{MODE:3},inheritAttrs:!1,props:ES(),emits:["close","handleClick","change"],setup:function(e,t){var n,r=t.emit,a=t.slots,u=(0,s.Kh)({startPos:{x:null,y:null}}),c=(0,s.KR)(),f=(0,s.KR)(),d=(0,s.KR)(),h=(0,s.KR)(),p=(0,s.KR)(),v=[],g="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),m=!(RS||!Q)&&{passive:!1};(0,s.sV)((function(){(0,s.dY)((function(){var t,n=e.open,r=e.getContainer,o=e.showMask,i=e.autofocus,a=null===r||void 0===r?void 0:r();(M(e),n)&&(a&&a.parentNode===document.body&&(BS[g]=n),k(),(0,s.dY)((function(){i&&y()})),o&&(null===(t=e.scrollLocker)||void 0===t||t.lock()))}))})),(0,s.wB)((function(){return e.level}),(function(){M(e)}),{flush:"post"}),(0,s.wB)((function(){return e.open}),(function(){var t=e.open,n=e.getContainer,r=e.scrollLocker,o=e.showMask,i=e.autofocus,a=null===n||void 0===n?void 0:n();a&&a.parentNode===document.body&&(BS[g]=!!t),k(),t?(i&&y(),o&&(null===r||void 0===r||r.lock())):null===r||void 0===r||r.unLock()}),{flush:"post"}),(0,s.hi)((function(){var t,n=e.open;delete BS[g],n&&(E(!1),document.body.style.touchAction=""),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),(0,s.wB)((function(){return e.placement}),(function(e){e&&(p.value=null)}));var y=function(){var e,t;null===(e=f.value)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e)},b=function(e){e.touches.length>1||(u.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},w=function(e){if(!(e.changedTouches.length>1)){var t=e.currentTarget,n=e.changedTouches[0].clientX-u.startPos.x,r=e.changedTouches[0].clientY-u.startPos.y;(t===d.value||t===h.value||t===p.value&&jS(t,e.target,n,r))&&e.cancelable&&e.preventDefault()}},A=function e(t){var n=t.target;MS(n,PS,e),n.style.transition=""},x=function(e){r("close",e)},C=function(e){e.keyCode===Mo.ESC&&(e.stopPropagation(),x(e))},S=function(t){var n=e.open,r=e.afterVisibleChange;t.target===c.value&&t.propertyName.match(/transform$/)&&(f.value.style.transition="",!n&&N()&&(document.body.style.overflowX="",d.value&&(d.value.style.left="",d.value.style.width="")),r&&r(!!n))},_=(0,s.EW)((function(){var t=e.placement,n="left"===t||"right"===t,r="translate".concat(n?"X":"Y");return{isHorizontal:n,placementName:r}})),k=function(){var t=e.open,n=e.width,r=e.height,o=_.value,i=o.isHorizontal,a=o.placementName,s=p.value?p.value.getBoundingClientRect()[i?"width":"height"]:0,l=(i?n:r)||s;O(t,a,l)},E=function(t,n,r,o){var i=e.placement,a=e.levelMove,s=e.duration,l=e.ease,u=e.showMask;v.forEach((function(e){e.style.transition="transform ".concat(s," ").concat(l),NS(e,PS,A);var c=t?r:0;if(a){var f=LS(a,{target:e,open:t});c=t?f[0]:f[1]||0}var d="number"===typeof c?"".concat(c,"px"):c,h="left"===i||"top"===i?d:"-".concat(d);h=u&&"right"===i&&o?"calc(".concat(h," + ").concat(o,"px)"):h,e.style.transform=c?"".concat(n,"(").concat(h,")"):""}))},O=function(e,t,n){if(!RS){var o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?xS(!0):0;E(e,t,n,o),F(o)}r("change",e)},F=function(t){var n=e.getContainer,r=e.showMask,o=e.open,i=null===n||void 0===n?void 0:n();if(i&&i.parentNode===document.body&&r){var a=["touchstart"],s=[document.body,d.value,h.value,p.value];o&&"hidden"!==document.body.style.overflow?(t&&T(t),document.body.style.touchAction="none",s.forEach((function(e,t){e&&NS(e,a[t]||"touchmove",t?w:b,m)}))):N()&&(document.body.style.touchAction="",t&&P(t),s.forEach((function(e,t){e&&MS(e,a[t]||"touchmove",t?w:b,m)})))}},T=function(t){var r=e.placement,o=e.duration,i=e.ease,a="width ".concat(o," ").concat(i),s="transform ".concat(o," ").concat(i);switch(f.value.style.transition="none",r){case"right":f.value.style.transform="translateX(-".concat(t,"px)");break;case"top":case"bottom":f.value.style.width="calc(100% - ".concat(t,"px)"),f.value.style.transform="translateZ(0)";break;default:break}clearTimeout(n),n=setTimeout((function(){f.value&&(f.value.style.transition="".concat(s,",").concat(a),f.value.style.width="",f.value.style.transform="")}))},P=function(t){var r,o=e.placement,i=e.duration,a=e.ease;f.value.style.transition="none";var s="width ".concat(i," ").concat(a),l="transform ".concat(i," ").concat(a);switch(o){case"left":f.value.style.width="100%",s="width 0s ".concat(a," ").concat(i);break;case"right":f.value.style.transform="translateX(".concat(t,"px)"),f.value.style.width="100%",s="width 0s ".concat(a," ").concat(i),d.value&&(d.value.style.left="-".concat(t,"px"),d.value.style.width="calc(100% + ".concat(t,"px)"));break;case"top":case"bottom":f.value.style.width="calc(100% + ".concat(t,"px)"),f.value.style.height="100%",f.value.style.transform="translateZ(0)",r="height 0s ".concat(a," ").concat(i);break;default:break}clearTimeout(n),n=setTimeout((function(){f.value&&(f.value.style.transition="".concat(l,",").concat(r?"".concat(r,","):"").concat(s),f.value.style.transform="",f.value.style.width="",f.value.style.height="")}))},N=function(){return!Object.keys(BS).some((function(e){return BS[e]}))},M=function(e){var t=e.level,n=e.getContainer;if(!RS){var r=null===n||void 0===n?void 0:n(),o=r?r.parentNode:null;if(v=[],"all"===t){var i=o?Array.prototype.slice.call(o.children):[];i.forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==r&&v.push(e)}))}else t&&OS(t).forEach((function(e){document.querySelectorAll(e).forEach((function(e){v.push(e)}))}))}},L=function(e){r("handleClick",e)},I=(0,s.KR)(!1);return(0,s.wB)(f,(function(){(0,s.dY)((function(){I.value=!0}))})),function(){var t,n,r,u=e.width,v=e.height,g=e.open,m=e.prefixCls,y=e.placement,b=(e.level,e.levelMove,e.ease,e.duration,e.getContainer,e.onChange,e.afterVisibleChange,e.showMask),w=e.maskClosable,A=e.maskStyle,k=e.keyboard,E=(e.getOpenCount,e.scrollLocker,e.contentWrapperStyle),O=e.style,F=e.class,T=(0,je.A)(e,DS),P=g&&I.value,N=(0,l.A)(m,(t={},(0,i.A)(t,"".concat(m,"-").concat(y),!0),(0,i.A)(t,"".concat(m,"-open"),P),(0,i.A)(t,F,!!F),(0,i.A)(t,"no-mask",!b),t)),M=_.value.placementName,R="left"===y||"top"===y?"-100%":"100%",j=P?"":"".concat(M,"(").concat(R,")");return(0,s.bF)("div",(0,o.A)((0,o.A)({},ce(T,["switchScrollingEffect","autofocus"])),{},{tabindex:-1,class:N,style:O,ref:f,onKeydown:P&&k?C:void 0,onTransitionend:S}),[b&&(0,s.bF)("div",{class:"".concat(m,"-mask"),onClick:w?x:void 0,style:A,ref:d},null),(0,s.bF)("div",{class:"".concat(m,"-content-wrapper"),style:(0,o.A)({transform:j,msTransform:j,width:IS(u)?"".concat(u,"px"):u,height:IS(v)?"".concat(v,"px"):v},E),ref:c},[(0,s.bF)("div",{class:"".concat(m,"-content"),ref:p},[null===(n=a.default)||void 0===n?void 0:n.call(a)]),a.handler?(0,s.bF)("div",{onClick:L,ref:h},[null===(r=a.handler)||void 0===r?void 0:r.call(a)]):null])])}}}),zS=WS;function US(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o}var KS=US;function VS(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var HS={},qS=function(e){if(VS()||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return KS(HS),HS={},void(document.body.className=r.replace(n,"").trim())}var o=xS();if(o&&(HS=KS({position:"relative",width:"calc(100% - ".concat(o,"px)")}),!n.test(r))){var i="".concat(r," ").concat(t);document.body.className=i.trim()}}},GS=[],YS="ant-scrolling-effect",$S=new RegExp("".concat(YS),"g"),XS=0,JS=new Map,QS=Ju((function e(t){var n=this;Qu(this,e),(0,i.A)(this,"getContainer",(function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container})),(0,i.A)(this,"reLock",(function(e){var t=GS.find((function(e){var t=e.target;return t===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())})),(0,i.A)(this,"lock",(function(){var e;if(!GS.some((function(e){var t=e.target;return t===n.lockTarget})))if(GS.some((function(e){var t,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))GS=[].concat((0,z.A)(GS),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&(t=xS());var o=r.className;if(0===GS.filter((function(e){var t,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&JS.set(r,KS({width:0!==t?"calc(100% - ".concat(t,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!$S.test(o)){var i="".concat(o," ").concat(YS);r.className=i.trim()}GS=[].concat((0,z.A)(GS),[{target:n.lockTarget,options:n.options}])}})),(0,i.A)(this,"unLock",(function(){var e,t=GS.find((function(e){var t=e.target;return t===n.lockTarget}));if(GS=GS.filter((function(e){var t=e.target;return t!==n.lockTarget})),t&&!GS.some((function(e){var n,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,o=r.className;$S.test(o)&&(KS(JS.get(r),{element:r}),JS.delete(r),r.className=r.className.replace($S,"").trim())}})),this.lockTarget=XS++,this.options=t})),ZS=0,e_=(0,Ea.A)();var t_={},n_=function(e){if(!e_)return null;if(e){if("string"===typeof e)return document.querySelectorAll(e)[0];if("function"===typeof e)return e();if("object"===(0,Ie.A)(e)&&e instanceof window.HTMLElement)return e}return document.body},r_=(0,s.pM)({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Fe.A.any,visible:{type:Boolean,default:void 0}},setup:function(e,t){var n=t.slots,r=(0,s.KR)(),o=(0,s.KR)(),i=(0,s.KR)(),a=new QS({container:n_(e.getContainer)}),l=function(){var e,t;null===(e=r.value)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(r.value)},u=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t||r.value&&!r.value.parentNode){var n=n_(e.getContainer);return!!n&&(n.appendChild(r.value),!0)}return!0},c=function(){return e_?(r.value||(r.value=document.createElement("div"),u(!0)),f(),r.value):null},f=function(){var t=e.wrapperClassName;r.value&&t&&t!==r.value.className&&(r.value.className=t)};(0,s.$u)((function(){f(),u()}));var d=function(){1!==ZS||Object.keys(t_).length?ZS||(KS(t_),t_={},qS(!0)):(qS(),t_=KS({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))},h=(0,s.nI)();return(0,s.sV)((function(){var t=!1;(0,s.wB)([function(){return e.visible},function(){return e.getContainer}],(function(n,r){var o=(0,Re.A)(n,2),i=o[0],s=o[1],u=(0,Re.A)(r,2),c=u[0],f=u[1];if(e_&&n_(e.getContainer)===document.body&&(i&&!c?ZS+=1:t&&(ZS-=1)),t){var d="function"===typeof s&&"function"===typeof f;(d?s.toString()!==f.toString():s!==f)&&l(),i&&i!==c&&e_&&n_(s)!==a.getContainer()&&a.reLock({container:n_(s)})}t=!0}),{immediate:!0,flush:"post"}),(0,s.dY)((function(){u()||(i.value=G((function(){h.update()})))}))})),(0,s.xo)((function(){var t=e.visible,n=e.getContainer;e_&&n_(n)===document.body&&(ZS=t&&ZS?ZS-1:ZS),l(),G.cancel(i.value)})),function(){var t=e.forceRender,r=e.visible,i=null,l={getOpenCount:function(){return ZS},getContainer:c,switchScrollingEffect:d,scrollLocker:a};return(t||r||o.value)&&(i=(0,s.bF)(Ao,{getContainer:c,ref:o},{default:function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n,l)}})),i}}}),o_=["afterVisibleChange","getContainer","wrapperClassName","forceRender"],i_=["visible","afterClose"],a_=(0,s.pM)({compatConfig:{MODE:3},inheritAttrs:!1,props:Pe(kS(),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:function(){},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],slots:["handler"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,s.KR)(null),a=function(e){n("handleClick",e)},l=function(e){n("close",e)};return function(){e.afterVisibleChange;var t=e.getContainer,n=e.wrapperClassName,u=e.forceRender,c=(0,je.A)(e,o_),f=null;if(!t)return(0,s.bF)("div",{class:n,ref:i},[(0,s.bF)(zS,(0,o.A)((0,o.A)({},c),{},{open:e.open,getContainer:function(){return i.value},onClose:l,onHandleClick:a}),r)]);var d=!!r.handler||u;return(d||e.open||i.value)&&(f=(0,s.bF)(r_,{visible:e.open,forceRender:d,getContainer:t,wrapperClassName:n},{default:function(t){var n=t.visible,u=t.afterClose,f=(0,je.A)(t,i_);return(0,s.bF)(zS,(0,o.A)((0,o.A)((0,o.A)({ref:i},c),f),{},{open:void 0!==n?n:e.open,afterVisibleChange:void 0!==u?u:e.afterVisibleChange,onClose:l,onHandleClick:a}),r)}})),f}}}),s_=a_,l_=s_,u_=["width","height","visible","placement","mask","wrapClassName","class"],c_=(0,$.PV)("top","right","bottom","left"),f_=((0,$.PV)("default","large"),{distance:180}),d_=function(){return{autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:Fe.A.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:Fe.A.any,maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},wrapStyle:{type:Object,default:void 0},style:{type:Object,default:void 0},class:Fe.A.any,wrapClassName:String,size:{type:String},drawerStyle:{type:Object,default:void 0},headerStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},contentWrapperStyle:{type:Object,default:void 0},title:Fe.A.any,visible:{type:Boolean,default:void 0},width:Fe.A.oneOfType([Fe.A.string,Fe.A.number]),height:Fe.A.oneOfType([Fe.A.string,Fe.A.number]),zIndex:Number,prefixCls:String,push:Fe.A.oneOfType([Fe.A.looseBool,{type:Object}]),placement:Fe.A.oneOf(c_),keyboard:{type:Boolean,default:void 0},extra:Fe.A.any,footer:Fe.A.any,footerStyle:{type:Object,default:void 0},level:Fe.A.any,levelMove:{type:[Number,Array,Function]},handle:Fe.A.any,afterVisibleChange:Function,onAfterVisibleChange:Function,"onUpdate:visible":Function,onClose:Function}},h_=(0,s.pM)({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Pe(d_(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:f_}),slots:["closeIcon","title","extra","footer","handle"],setup:function(e,t){var n=t.emit,r=t.slots,a=t.attrs,u=(0,s.KR)(!1),c=(0,s.KR)(!1),f=(0,s.KR)(null),d=(0,s.WQ)("parentDrawerOpts",null),h=(0,se.A)("drawer",e),p=h.prefixCls;(0,Wu.A)(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),(0,Wu.A)(void 0===e.wrapStyle,"Drawer","`wrapStyle` prop is deprecated, please use `style` instead"),(0,Wu.A)(void 0===e.wrapClassName,"Drawer","`wrapClassName` prop is deprecated, please use `class` instead");var v=function(){u.value=!0},g=function(){u.value=!1,(0,s.dY)((function(){m()}))};(0,s.Gt)("parentDrawerOpts",{setPush:v,setPull:g}),(0,s.sV)((function(){var t=e.visible;t&&d&&d.setPush()})),(0,s.hi)((function(){d&&d.setPull()})),(0,s.wB)((function(){return e.visible}),(function(e){d&&(e?d.setPush():d.setPull())}),{flush:"post"});var m=function(){var e,t;null===(e=f.value)||void 0===e||null===(t=e.domFocus)||void 0===t||t.call(e)},y=function(e){n("update:visible",!1),n("close",e)},b=function(t){var r;null===(r=e.afterVisibleChange)||void 0===r||r.call(e,t),n("afterVisibleChange",t)},w=(0,s.EW)((function(){return e.destroyOnClose&&!e.visible})),A=function(){var t=w.value;t&&(e.visible||(c.value=!0))},x=(0,s.EW)((function(){var t,n=e.push,r=e.placement;return t="boolean"===typeof n?n?f_.distance:0:n.distance,t=parseFloat(String(t||0)),"left"===r||"right"===r?"translateX(".concat("left"===r?t:-t,"px)"):"top"===r||"bottom"===r?"translateY(".concat("top"===r?t:-t,"px)"):null})),C=(0,s.EW)((function(){var t=e.visible,n=e.mask,r=e.placement,o=e.size,i=void 0===o?"default":o,a=e.width,s=e.height;if(!t&&!n)return{};var l={};if("left"===r||"right"===r){var u="large"===i?736:378;l.width="undefined"===typeof a?u:a,l.width="string"===typeof l.width?l.width:"".concat(l.width,"px")}else{var c="large"===i?736:378;l.height="undefined"===typeof s?c:s,l.height="string"===typeof l.height?l.height:"".concat(l.height,"px")}return l})),S=(0,s.EW)((function(){var t=e.zIndex,n=e.wrapStyle,r=e.mask,i=e.style,a=r?{}:C.value;return(0,o.A)((0,o.A)((0,o.A)({zIndex:t,transform:u.value?x.value:void 0},a),n),i)})),_=function(t){var n=e.closable,o=e.headerStyle,a=(0,B.rU)(r,e,"extra"),u=(0,B.rU)(r,e,"title");return u||n?(0,s.bF)("div",{class:(0,l.A)("".concat(t,"-header"),(0,i.A)({},"".concat(t,"-header-close-only"),n&&!u&&!a)),style:o},[(0,s.bF)("div",{class:"".concat(t,"-header-title")},[k(t),u&&(0,s.bF)("div",{class:"".concat(t,"-title")},[u])]),a&&(0,s.bF)("div",{class:"".concat(t,"-extra")},[a])]):null},k=function(t){var n,o=e.closable,i=r.closeIcon?null===(n=r.closeIcon)||void 0===n?void 0:n.call(r):e.closeIcon;return o&&(0,s.bF)("button",{key:"closer",onClick:y,"aria-label":"Close",class:"".concat(t,"-close")},[void 0===i?(0,s.bF)(as.A,null,null):i])},E=function(t){var n;if(c.value&&!e.visible)return null;c.value=!1;var i=e.bodyStyle,a=e.drawerStyle,l={},u=w.value;return u&&(l.opacity=0,l.transition="opacity .3s"),(0,s.bF)("div",{class:"".concat(t,"-wrapper-body"),style:(0,o.A)((0,o.A)({},l),a),onTransitionend:A},[_(t),(0,s.bF)("div",{key:"body",class:"".concat(t,"-body"),style:i},[null===(n=r.default)||void 0===n?void 0:n.call(r)]),O(t)])},O=function(t){var n=(0,B.rU)(r,e,"footer");if(!n)return null;var o="".concat(t,"-footer");return(0,s.bF)("div",{class:o,style:e.footerStyle},[n])};return function(){e.width,e.height;var t,n=e.visible,u=e.placement,c=e.mask,d=e.wrapClassName,h=e.class,v=(0,je.A)(e,u_),g=c?C.value:{},m=c?"":"no-mask",w=(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},a),ce(v,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","wrapStyle","onAfterVisibleChange","onClose","onUpdate:visible"])),g),{},{onClose:y,afterVisibleChange:b,handler:!1,prefixCls:p.value,open:n,showMask:c,placement:u,class:(0,l.A)((t={},(0,i.A)(t,h,h),(0,i.A)(t,d,!!d),(0,i.A)(t,m,!!m),t)),style:S.value,ref:f});return(0,s.bF)(l_,w,{handler:e.handle?function(){return e.handle}:r.handle,default:function(){return E(p.value)}})}}}),p_=(0,$.GU)(h_),v_=n(2970),g_=n(20903);function m_(){return m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m_.apply(this,arguments)}function y_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,w_(e,t)}function b_(e){return b_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b_(e)}function w_(e,t){return w_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w_(e,t)}function A_(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(UE){return!1}}function x_(e,t,n){return x_=A_()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=Function.bind.apply(e,r),i=new o;return n&&w_(i,n.prototype),i},x_.apply(null,arguments)}function C_(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function S_(e){var t="function"===typeof Map?new Map:void 0;return S_=function(e){if(null===e||!C_(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return x_(e,arguments,b_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),w_(n,e)},S_(e)}var __=/%[sdj%]/g,k_=function(){};function E_(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function O_(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var a=e.replace(__,(function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function F_(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function T_(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!F_(t)||"string"!==typeof e||e))}function P_(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,e||[]),o++,o===i&&n(r)}e.forEach((function(e){t(e,a)}))}function N_(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}i([])}function M_(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n]||[])})),t}var L_=function(e){function t(t,n){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=n,r}return y_(t,e),t}(S_(Error));function I_(e,t,n,r,o){if(t.first){var i=new Promise((function(t,i){var a=function(e){return r(e),e.length?i(new L_(e,E_(e))):t(o)},s=M_(e);N_(s,n,a)}));return i["catch"]((function(e){return e})),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],f=new Promise((function(t,i){var f=function(e){if(c.push.apply(c,e),u++,u===l)return r(c),c.length?i(new L_(c,E_(c))):t(o)};s.length||(r(c),t(o)),s.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?N_(r,n,f):P_(r,n,f)}))}));return f["catch"]((function(e){return e})),f}function R_(e){return!(!e||void 0===e.message)}function j_(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}function D_(e,t){return function(n){var r;return r=e.fullFields?j_(t,e.fullFields):t[n.field||e.fullField],R_(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function B_(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===typeof r&&"object"===typeof e[n]?e[n]=m_({},e[n],r):e[n]=r}return e}var W_,z_=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!T_(t,i||e.type)||r.push(O_(o.messages.required,e.fullField))},U_=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(O_(o.messages.whitespace,e.fullField))},K_=function(){if(W_)return W_;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}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)|                             // 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(?:"+r+":){5}(?::"+n+"|(?::"+r+"){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(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){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(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){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(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){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(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){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(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),l=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+o+t(e),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+p+v+")"+g+m;return W_=new RegExp("(?:^"+y+"$)","i"),W_},V_={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},H_={integer:function(e){return H_.number(e)&&parseInt(e,10)===e},float:function(e){return H_.number(e)&&!H_.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(UE){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&&!H_.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(V_.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(K_())},hex:function(e){return"string"===typeof e&&!!e.match(V_.hex)}},q_=function(e,t,n,r,o){if(e.required&&void 0===t)z_(e,t,n,r,o);else{var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;i.indexOf(a)>-1?H_[a](t)||r.push(O_(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(O_(o.messages.types[a],e.fullField,e.type))}},G_=function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,c=null,f="number"===typeof t,d="string"===typeof t,h=Array.isArray(t);if(f?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(u=t.length),d&&(u=t.replace(l,"_").length),i?u!==e.len&&r.push(O_(o.messages[c].len,e.fullField,e.len)):a&&!s&&u<e.min?r.push(O_(o.messages[c].min,e.fullField,e.min)):s&&!a&&u>e.max?r.push(O_(o.messages[c].max,e.fullField,e.max)):a&&s&&(u<e.min||u>e.max)&&r.push(O_(o.messages[c].range,e.fullField,e.min,e.max))},Y_="enum",$_=function(e,t,n,r,o){e[Y_]=Array.isArray(e[Y_])?e[Y_]:[],-1===e[Y_].indexOf(t)&&r.push(O_(o.messages[Y_],e.fullField,e[Y_].join(", ")))},X_=function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(O_(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var i=new RegExp(e.pattern);i.test(t)||r.push(O_(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}},J_={required:z_,whitespace:U_,type:q_,range:G_,enum:$_,pattern:X_},Q_=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t,"string")&&!e.required)return n();J_.required(e,t,r,i,o,"string"),T_(t,"string")||(J_.type(e,t,r,i,o),J_.range(e,t,r,i,o),J_.pattern(e,t,r,i,o),!0===e.whitespace&&J_.whitespace(e,t,r,i,o))}n(i)},Z_=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),void 0!==t&&J_.type(e,t,r,i,o)}n(i)},ek=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),void 0!==t&&(J_.type(e,t,r,i,o),J_.range(e,t,r,i,o))}n(i)},tk=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),void 0!==t&&J_.type(e,t,r,i,o)}n(i)},nk=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),T_(t)||J_.type(e,t,r,i,o)}n(i)},rk=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),void 0!==t&&(J_.type(e,t,r,i,o),J_.range(e,t,r,i,o))}n(i)},ok=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),void 0!==t&&(J_.type(e,t,r,i,o),J_.range(e,t,r,i,o))}n(i)},ik=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if((void 0===t||null===t)&&!e.required)return n();J_.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(J_.type(e,t,r,i,o),J_.range(e,t,r,i,o))}n(i)},ak=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),void 0!==t&&J_.type(e,t,r,i,o)}n(i)},sk="enum",lk=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o),void 0!==t&&J_[sk](e,t,r,i,o)}n(i)},uk=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t,"string")&&!e.required)return n();J_.required(e,t,r,i,o),T_(t,"string")||J_.pattern(e,t,r,i,o)}n(i)},ck=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t,"date")&&!e.required)return n();var s;if(J_.required(e,t,r,i,o),!T_(t,"date"))s=t instanceof Date?t:new Date(t),J_.type(e,s,r,i,o),s&&J_.range(e,s.getTime(),r,i,o)}n(i)},fk=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;J_.required(e,t,r,i,o,a),n(i)},dk=function(e,t,n,r,o){var i=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(T_(t,i)&&!e.required)return n();J_.required(e,t,r,a,o,i),T_(t,i)||J_.type(e,t,r,a,o)}n(a)},hk=function(e,t,n,r,o){var i=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(T_(t)&&!e.required)return n();J_.required(e,t,r,i,o)}n(i)},pk={string:Q_,method:Z_,number:ek,boolean:tk,regexp:nk,integer:rk,float:ok,array:ik,object:ak,enum:lk,pattern:uk,date:ck,url:dk,hex:dk,email:dk,required:fk,any:hk};function vk(){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 gk=vk(),mk=function(){function e(e){this.rules=null,this._messages=gk,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 r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=B_(vk(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,s=r;if("function"===typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,i),Promise.resolve(i);function l(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o<e.length;o++)r(e[o]);t.length?(n=E_(t),s(t,n)):s(null,i)}if(a.messages){var u=this.messages();u===gk&&(u=vk()),B_(u,a.messages),a.messages=u}else a.messages=this.messages();var c={},f=a.keys||Object.keys(this.rules);f.forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(i===t&&(i=m_({},i)),r=i[e]=a.transform(r)),a="function"===typeof a?{validator:a}:m_({},a),a.validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))}))}));var d={};return I_(c,a,(function(t,n){var r,o=t.rule,s=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function l(e,t){return m_({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!a.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==o.message&&(u=[].concat(o.message));var c=u.map(D_(o,i));if(a.first&&c.length)return d[o.field]=1,n(c);if(s){if(o.required&&!t.value)return void 0!==o.message?c=[].concat(o.message).map(D_(o,i)):a.error&&(c=[a.error(o,O_(a.messages.required,o.field))]),n(c);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=m_({},f,t.rule.fields);var h={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];h[e]=n.map(l.bind(null,e))}));var p=new e(h);p.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),p.validate(t.value,t.rule.options||a,(function(e){var t=[];c&&c.length&&t.push.apply(t,c),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(c)}if(s=s&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,u,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,u,t.source,a)}catch(c){console.error,a.suppressValidatorError||setTimeout((function(){throw c}),0),u(c.message)}!0===r?u():!1===r?u("function"===typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)}r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){l(e)}),i)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!pk.hasOwnProperty(e.type))throw new Error(O_("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?pk.required:pk[this.getType(e)]||void 0},e}();function yk(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function bk(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function wk(e,t,n,r){if(!t.length)return n;var i,a=Ue(t),s=a[0],l=a.slice(1);return i=e||"number"!==typeof s?Array.isArray(e)?(0,z.A)(e):(0,o.A)({},e):[],r&&void 0===n&&1===l.length?delete i[s][l[0]]:i[s]=wk(i[s],l,n,r),i}function Ak(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!bk(e,t.slice(0,-1))?e:wk(e,t,n,r)}function xk(e){return yk(e)}function Ck(e,t){var n=bk(e,t);return n}function Sk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Ak(e,t,n,r);return o}function _k(e,t){return e&&e.some((function(e){return Tk(e,t)}))}function kk(e){return"object"===(0,Ie.A)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function Ek(e,t){var n=Array.isArray(e)?(0,z.A)(e):(0,o.A)({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=kk(r)&&kk(o);n[e]=i?Ek(r,o||{}):o})),n):n}function Ok(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return Ek(e,t)}),e)}function Fk(e,t){var n={};return t.forEach((function(t){var r=Ck(e,t);n=Sk(n,t,r)})),n}function Tk(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}mk.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");pk[e]=t},mk.warning=k_,mk.messages=gk,mk.validators=pk;var Pk="'${name}' is not a valid ${type}",Nk={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Pk,method:Pk,array:Pk,object:Pk,number:Pk,date:Pk,boolean:Pk,integer:Pk,float:Pk,regexp:Pk,email:Pk,url:Pk,hex:Pk},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Mk=mk;function Lk(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}function Ik(e,t,n,r,o){return Rk.apply(this,arguments)}function Rk(){return Rk=(0,ct.A)(dt().mark((function e(t,n,r,a,l){var u,c,f,d,h,p,v,g;return dt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return u=(0,o.A)({},r),delete u.ruleIndex,delete u.trigger,c=null,u&&"array"===u.type&&u.defaultField&&(c=u.defaultField,delete u.defaultField),f=new Mk((0,i.A)({},t,[u])),d=Ok({},Nk,a.validateMessages),f.messages(d),h=[],e.prev=9,e.next=12,Promise.resolve(f.validate((0,i.A)({},t,n),(0,o.A)({},a)));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](9),h=e.t0.errors?e.t0.errors.map((function(e,t){var n=e.message;return(0,B.zO)(n)?(0,s.E3)(n,{key:"error_".concat(t)}):n})):[d.default()];case 17:if(h.length||!c){e.next=22;break}return e.next=20,Promise.all(n.map((function(e,n){return Ik("".concat(t,".").concat(n),e,c,a,l)})));case 20:return p=e.sent,e.abrupt("return",p.reduce((function(e,t){return[].concat((0,z.A)(e),(0,z.A)(t))}),[]));case 22:return v=(0,o.A)((0,o.A)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},l),g=h.map((function(e){return"string"===typeof e?Lk(e,v):e})),e.abrupt("return",g);case 25:case"end":return e.stop()}}),e,null,[[9,14]])}))),Rk.apply(this,arguments)}function jk(e,t,n,r,i,a){var s,l=e.join("."),u=n.map((function(e,t){var n=e.validator,r=(0,o.A)((0,o.A)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){(0,Ke.$e)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))},a=n(e,t,i);o=a&&"function"===typeof a.then&&"function"===typeof a.catch,(0,Ke.$e)(o,"`callback` is deprecated. Please return a promise instead."),o&&a.then((function(){r()})).catch((function(e){r(e||" ")}))}),r})).sort((function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n===!!o?r-i:n?1:-1}));if(!0===i)s=new Promise(function(){var e=(0,ct.A)(dt().mark((function e(n,o){var i,s,c;return dt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<u.length)){e.next=12;break}return s=u[i],e.next=5,Ik(l,t,s,r,a);case 5:if(c=e.sent,!c.length){e.next=9;break}return o([{errors:c,rule:s}]),e.abrupt("return");case 9:i+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=u.map((function(e){return Ik(l,t,e,r,a).then((function(t){return{errors:t,rule:e}}))}));s=(i?Wk(c):Dk(c)).then((function(e){return Promise.reject(e)}))}return s.catch((function(e){return e})),s}function Dk(e){return Bk.apply(this,arguments)}function Bk(){return Bk=(0,ct.A)(dt().mark((function e(t){return dt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t,n=(t=[]).concat.apply(t,(0,z.A)(e));return n})));case 1:case"end":return e.stop()}}),e)}))),Bk.apply(this,arguments)}function Wk(e){return zk.apply(this,arguments)}function zk(){return zk=(0,ct.A)(dt().mark((function e(t){var n;return dt().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.errors.length&&e([r]),n+=1,n===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),zk.apply(this,arguments)}var Uk=1,Kk=2;function Vk(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;e=Object(e);while(o--){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}while(++o<i){s=n[o];var l=s[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var f=new Gn.A;if(r)var d=r(u,c,l,e,t,f);if(!(void 0===d?eo(c,u,Uk|Kk,r,f):d))return!1}}return!0}var Hk=Vk;function qk(e){return e===e&&!(0,Lm.A)(e)}var Gk=qk,Yk=n(9084);function $k(e){var t=(0,Yk.A)(e),n=t.length;while(n--){var r=t[n],o=e[r];t[n]=[r,o,Gk(o)]}return t}var Xk=$k;function Jk(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var Qk=Jk;function Zk(e){var t=Xk(e);return 1==t.length&&t[0][2]?Qk(t[0][0],t[0][1]):function(n){return n===e||Hk(n,e,t)}}var eE=Zk;function tE(e,t,n){var r=null==e?void 0:Pm(e,t);return void 0===r?n:r}var nE=tE,rE=1,oE=2;function iE(e,t){return pm(e)&&Gk(t)?Qk(Fm(e),t):function(n){var r=nE(n,e);return void 0===r&&r===t?qm(n,e):eo(t,r,rE|oE)}}var aE=iE;function sE(e){return function(t){return Pm(t,e)}}var lE=sE;function uE(e){return pm(e)?Zd(Fm(e)):lE(e)}var cE=uE;function fE(e){return"function"==typeof e?e:null==e?dy:"object"==typeof e?(0,zr.A)(e)?aE(e[0],e[1]):eE(e):cE(e)}var dE=fE,hE=n(38446);function pE(e){return function(t,n,r){var o=Object(t);if(!(0,hE.A)(t)){var i=dE(n,3);t=(0,Yk.A)(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var vE=pE,gE=Math.max;function mE(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:sp(n);return o<0&&(o=gE(r+o,0)),Bc(e,dE(t,3),o)}var yE=mE,bE=vE(yE),wE=bE,AE=Symbol("formContextKey"),xE=function(e){(0,s.Gt)(AE,e)},CE=function(){return(0,s.WQ)(AE,{name:(0,s.EW)((function(){})),labelAlign:(0,s.EW)((function(){return"right"})),vertical:(0,s.EW)((function(){return!1})),addField:function(e,t){},removeField:function(e){},model:(0,s.EW)((function(){})),rules:(0,s.EW)((function(){})),colon:(0,s.EW)((function(){})),labelWrap:(0,s.EW)((function(){})),labelCol:(0,s.EW)((function(){})),requiredMark:(0,s.EW)((function(){return!1})),validateTrigger:(0,s.EW)((function(){})),onValidate:function(){},validateMessages:(0,s.EW)((function(){return Nk}))})},SE=Symbol("formItemPrefixContextKey"),_E=function(e){(0,s.Gt)(SE,e)},kE=function(){return(0,s.WQ)(SE,{prefixCls:(0,s.EW)((function(){return""}))})},EE=n(48959),OE=function(e,t){var n,r,a,u,c=t.slots,f=t.emit,d=t.attrs,h=(0,o.A)((0,o.A)({},e),d),p=h.prefixCls,v=h.htmlFor,g=h.labelCol,m=h.labelAlign,y=h.colon,b=h.required,w=h.requiredMark,A=(0,xg.n)("Form"),x=(0,Re.A)(A,1),C=x[0],S=null!==(n=e.label)&&void 0!==n?n:null===(r=c.label)||void 0===r?void 0:r.call(c);if(!S)return null;var _,k,E=CE(),O=E.vertical,F=E.labelAlign,T=E.labelCol,P=E.labelWrap,N=E.colon,M=g||(null===T||void 0===T?void 0:T.value)||{},L=m||(null===F||void 0===F?void 0:F.value),I="".concat(p,"-item-label"),R=(0,l.A)(I,"left"===L&&"".concat(I,"-left"),M.class,(0,i.A)({},"".concat(I,"-wrap"),!!P.value)),j=S,D=!0===y||!1!==(null===N||void 0===N?void 0:N.value)&&!1!==y,B=D&&!O.value;(B&&"string"===typeof S&&""!==S.trim()&&(j=S.replace(/[:|：]\s*$/,"")),j=(0,s.bF)(s.FK,null,[j,null===(a=c.tooltip)||void 0===a?void 0:a.call(c,{class:"".concat(p,"-item-tooltip")})]),"optional"!==w||b)||(j=(0,s.bF)(s.FK,null,[j,(0,s.bF)("span",{class:"".concat(p,"-item-optional")},[(null===(_=C.value)||void 0===_?void 0:_.optional)||(null===(k=EE.A.Form)||void 0===k?void 0:k.optional)])]));var W=(0,l.A)((u={},(0,i.A)(u,"".concat(p,"-item-required"),b),(0,i.A)(u,"".concat(p,"-item-required-mark-optional"),"optional"===w),(0,i.A)(u,"".concat(p,"-item-no-colon"),!D),u));return(0,s.bF)(ub,(0,o.A)((0,o.A)({},M),{},{class:R}),{default:function(){return[(0,s.bF)("label",{for:v,class:W,title:"string"===typeof S?S:"",onClick:function(e){return f("click",e)}},[j])]}})};OE.displayName="FormItemLabel",OE.inheritAttrs=!1;var FE=OE,TE=(0,s.pM)({compatConfig:{MODE:3},name:"ErrorList",props:["errors","help","onDomErrorVisibleChange","helpStatus","warnings"],setup:function(e){var t=(0,se.A)("",e),n=t.prefixCls,r=kE(),i=r.prefixCls,a=r.status,l=(0,s.EW)((function(){return"".concat(i.value,"-item-explain")})),u=(0,s.EW)((function(){return!(!e.errors||!e.errors.length)})),c=(0,s.KR)(a.value);return(0,s.wB)([u,a],(function(){u.value&&(c.value=a.value)})),function(){var t,r,i=Df("".concat(n.value,"-show-help-item")),a=(0,so.zg)("".concat(n.value,"-show-help-item"),i);return a.class=l.value,null!==(t=e.errors)&&void 0!==t&&t.length?(0,s.bF)(s.F,(0,o.A)((0,o.A)({},a),{},{tag:"div"}),{default:function(){return[null===(r=e.errors)||void 0===r?void 0:r.map((function(e,t){return(0,s.bF)("div",{key:t,role:"alert",class:c.value?"".concat(l.value,"-").concat(c.value):""},[e])}))]}}):null}}}),PE={success:Us.A,warning:Ks.A,error:ss.A,validating:Za.A},NE=(0,s.pM)({compatConfig:{MODE:3},slots:["help","extra","errors"],inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status"],setup:function(e,t){var n=t.slots,r=CE(),i=r.wrapperCol,a=(0,o.A)({},r);return delete a.labelCol,delete a.wrapperCol,xE(a),_E({prefixCls:(0,s.EW)((function(){return e.prefixCls})),status:(0,s.EW)((function(){return e.status}))}),function(){var t,r,a,u=e.prefixCls,c=e.wrapperCol,f=e.help,d=void 0===f?null===(t=n.help)||void 0===t?void 0:t.call(n):f,h=e.errors,p=void 0===h?null===(r=n.errors)||void 0===r?void 0:r.call(n):h,v=e.hasFeedback,g=e.status,m=e.extra,y=void 0===m?null===(a=n.extra)||void 0===a?void 0:a.call(n):m,b="".concat(u,"-item"),w=c||(null===i||void 0===i?void 0:i.value)||{},A=(0,l.A)("".concat(b,"-control"),w.class),x=g&&PE[g];return(0,s.bF)(ub,(0,o.A)((0,o.A)({},w),{},{class:A}),{default:function(){var e;return(0,s.bF)(s.FK,null,[(0,s.bF)("div",{class:"".concat(b,"-control-input")},[(0,s.bF)("div",{class:"".concat(b,"-control-input-content")},[null===(e=n.default)||void 0===e?void 0:e.call(n)]),v&&x?(0,s.bF)("span",{class:"".concat(b,"-children-icon")},[(0,s.bF)(x,null,null)]):null]),(0,s.bF)(TE,{errors:p,help:d,class:"".concat(b,"-explain-connected")},null),y?(0,s.bF)("div",{class:"".concat(b,"-extra")},[y]):null])}})}}}),ME=NE;function LE(e){var t=(0,s.IJ)(e.value.slice()),n=null;return(0,s.nT)((function(){clearTimeout(n),n=setTimeout((function(){t.value=e.value}),e.value.length?0:10)})),t}(0,$.PV)("success","warning","error","validating","");function IE(e,t,n){var r=e,o=t,i=0;try{for(var a=o.length;i<a-1;++i){if(!r&&!n)break;var s=o[i];if(!(s in r)){if(n)throw Error("please transfer a valid name path to form item!");break}r=r[s]}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch(l){}return{o:r,k:o[i],v:r?r[o[i]]:void 0}}var RE=function(){return{htmlFor:String,prefixCls:String,label:Fe.A.any,help:Fe.A.any,extra:Fe.A.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:Fe.A.oneOf((0,$.PV)("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean}},jE=0,DE="form_item",BE=(0,s.pM)({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:RE(),slots:["help","label","extra"],setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose;(0,Ke.$e)(void 0===e.prop,"`prop` is deprecated. Please use `name` instead.");var l="form-item-".concat(++jE),u=(0,se.A)("form",e),c=u.prefixCls,f=CE(),d=(0,s.EW)((function(){return e.name||e.prop})),h=(0,s.KR)([]),p=(0,s.KR)(!1),v=(0,s.KR)(),g=(0,s.EW)((function(){var e=d.value;return xk(e)})),m=(0,s.EW)((function(){if(g.value.length){var e=f.name.value,t=g.value.join("_");return e?"".concat(e,"_").concat(t):"".concat(DE,"_").concat(t)}})),y=function(){var e=f.model.value;return e&&d.value?IE(e,g.value,!0).v:void 0},b=(0,s.EW)((function(){return y()})),w=(0,s.KR)((0,g_.A)(b.value)),A=(0,s.EW)((function(){var t=void 0!==e.validateTrigger?e.validateTrigger:f.validateTrigger.value;return t=void 0===t?"change":t,yk(t)})),x=(0,s.EW)((function(){var t=f.rules.value,n=e.rules,r=void 0!==e.required?{required:!!e.required,trigger:A.value}:[],o=IE(t,g.value);t=t?o.o[o.k]||o.v:[];var i=[].concat(n||t||[]);return wE(i,(function(e){return e.required}))?i:i.concat(r)})),C=(0,s.EW)((function(){var t=x.value,n=!1;return t&&t.length&&t.every((function(e){return!e.required||(n=!0,!1)})),n||e.required})),S=(0,s.KR)();(0,s.nT)((function(){S.value=e.validateStatus}));var _=(0,s.EW)((function(){var t={};return"string"===typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=(0,o.A)((0,o.A)({},t),e.messageVariables)),t})),k=function(t){if(0!==g.value.length){var n=e.validateFirst,r=void 0!==n&&n,i=t||{},a=i.triggerName,l=x.value;if(a&&(l=l.filter((function(e){var t=e.trigger;if(!t&&!A.value.length)return!0;var n=yk(t||A.value);return n.includes(a)}))),!l.length)return Promise.resolve();var u=jk(g.value,b.value,l,(0,o.A)({validateMessages:f.validateMessages.value},t),r,_.value);return S.value="validating",h.value=[],u.catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===S.value){var t=e.filter((function(e){return e&&e.errors.length}));S.value=t.length?"error":"success",h.value=t.map((function(e){return e.errors})),f.onValidate(d.value,!h.value.length,h.value.length?(0,s.ux)(h.value[0]):null)}})),u}},E=function(){k({triggerName:"blur"})},O=function(){p.value?p.value=!1:k({triggerName:"change"})},F=function(){S.value=e.validateStatus,p.value=!1,h.value=[]},T=function(){S.value=e.validateStatus,p.value=!0,h.value=[];var t=f.model.value||{},n=b.value,r=IE(t,g.value,!0);Array.isArray(n)?r.o[r.k]=[].concat(w.value):r.o[r.k]=w.value,(0,s.dY)((function(){p.value=!1}))},P=(0,s.EW)((function(){return void 0===e.htmlFor?m.value:e.htmlFor})),N=function(){var e=P.value;if(e&&v.value){var t=v.value.$el.querySelector('[id="'.concat(e,'"]'));t&&t.focus&&t.focus()}};a({onFieldBlur:E,onFieldChange:O,clearValidate:F,resetField:T}),ms({id:m,onFieldBlur:function(){e.autoLink&&E()},onFieldChange:function(){e.autoLink&&O()},clearValidate:F},(0,s.EW)((function(){return!!(e.autoLink&&f.model.value&&d.value)})));var M=!1;(0,s.wB)(d,(function(e){e?M||(M=!0,f.addField(l,{fieldValue:b,fieldId:m,fieldName:d,resetField:T,clearValidate:F,namePath:g,validateRules:k,rules:x})):(M=!1,f.removeField(l))}),{immediate:!0}),(0,s.xo)((function(){f.removeField(l)}));var L=LE(h),I=(0,s.EW)((function(){return void 0!==e.validateStatus?e.validateStatus:L.value.length?"error":S.value})),R=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(c.value,"-item"),!0),(0,i.A)(t,"".concat(c.value,"-item-has-feedback"),I.value&&e.hasFeedback),(0,i.A)(t,"".concat(c.value,"-item-has-success"),"success"===I.value),(0,i.A)(t,"".concat(c.value,"-item-has-warning"),"warning"===I.value),(0,i.A)(t,"".concat(c.value,"-item-has-error"),"error"===I.value),(0,i.A)(t,"".concat(c.value,"-item-is-validating"),"validating"===I.value),(0,i.A)(t,"".concat(c.value,"-item-hidden"),e.hidden),t}));return function(){var t,i;if(e.noStyle)return null===(t=n.default)||void 0===t?void 0:t.call(n);var a=null!==(i=e.help)&&void 0!==i?i:n.help?(0,B.Gk)(n.help()):null;return(0,s.bF)(ib,(0,o.A)((0,o.A)({},r),{},{class:[R.value,void 0!==a&&null!==a||L.value.length?"".concat(c.value,"-item-with-help"):"",r.class],key:"row"}),{default:function(){var t,r,i,l;return(0,s.bF)(s.FK,null,[(0,s.bF)(FE,(0,o.A)((0,o.A)({},e),{},{htmlFor:P.value,required:C.value,requiredMark:f.requiredMark.value,prefixCls:c.value,onClick:N,label:null!==(t=e.label)&&void 0!==t?t:null===(r=n.label)||void 0===r?void 0:r.call(n)}),null),(0,s.bF)(ME,(0,o.A)((0,o.A)({},e),{},{errors:void 0!==a&&null!==a?yk(a):L.value,prefixCls:c.value,status:I.value,ref:v,help:a,extra:null!==(i=e.extra)&&void 0!==i?i:null===(l=n.extra)||void 0===l?void 0:l.call(n)}),{default:n.default})])}})}}});function WE(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}function zE(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function UE(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function KE(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return UE(n.overflowY,t)||UE(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function VE(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var HE=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!zE(e))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],h=e;zE(h)&&l(h);){if((h=null==(c=(u=h).parentElement)?u.getRootNode().host||null:c)===f){d.push(h);break}null!=h&&h===document.body&&KE(h)&&!KE(document.documentElement)||null!=h&&KE(h,s)&&d.push(h)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),b=y.height,w=y.width,A=y.top,x=y.right,C=y.bottom,S=y.left,_="start"===o||"nearest"===o?A:"end"===o?C:A+b/2,k="center"===i?S+w/2:"end"===i?x:S,E=[],O=0;O<d.length;O++){var F=d[O],T=F.getBoundingClientRect(),P=T.height,N=T.width,M=T.top,L=T.right,I=T.bottom,R=T.left;if("if-needed"===r&&A>=0&&S>=0&&C<=v&&x<=p&&A>=M&&C<=I&&S>=R&&x<=L)return E;var j=getComputedStyle(F),D=parseInt(j.borderLeftWidth,10),B=parseInt(j.borderTopWidth,10),W=parseInt(j.borderRightWidth,10),z=parseInt(j.borderBottomWidth,10),U=0,K=0,V="offsetWidth"in F?F.offsetWidth-F.clientWidth-D-W:0,H="offsetHeight"in F?F.offsetHeight-F.clientHeight-B-z:0,q="offsetWidth"in F?0===F.offsetWidth?0:N/F.offsetWidth:0,G="offsetHeight"in F?0===F.offsetHeight?0:P/F.offsetHeight:0;if(f===F)U="start"===o?_:"end"===o?_-v:"nearest"===o?VE(m,m+v,v,B,z,m+_,m+_+b,b):_-v/2,K="start"===i?k:"center"===i?k-p/2:"end"===i?k-p:VE(g,g+p,p,D,W,g+k,g+k+w,w),U=Math.max(0,U+m),K=Math.max(0,K+g);else{U="start"===o?_-M-B:"end"===o?_-I+z+H:"nearest"===o?VE(M,I,P,B,z+H,_,_+b,b):_-(M+P/2)+H/2,K="start"===i?k-R-D:"center"===i?k-(R+N/2)+V/2:"end"===i?k-L+W+V:VE(R,L,N,D,W+V,k,k+w,w);var Y=F.scrollLeft,$=F.scrollTop;_+=$-(U=Math.max(0,Math.min($+U/G,F.scrollHeight-P/G+H))),k+=Y-(K=Math.max(0,Math.min(Y+K/q,F.scrollWidth-N/q+V)))}E.push({el:F,top:U,left:K})}return E};function qE(e){return e===Object(e)&&0!==Object.keys(e).length}function GE(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}function YE(e){return!1===e?{block:"end",inline:"nearest"}:qE(e)?e:{block:"start",inline:"nearest"}}function $E(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(qE(t)&&"function"===typeof t.behavior)return t.behavior(n?HE(e,t):[]);if(n){var r=YE(t);return GE(HE(e,r),r.behavior)}}var XE=$E,JE=n(52789),QE=Math.min;function ZE(e,t,n){var r=n?$c:Gc,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];while(a--){var c=e[a];a&&t&&(c=Pd(c,(0,JE.A)(t))),l=QE(c.length,l),s[a]=!n&&(t||o>=120&&c.length>=120)?new tr(a&&c):void 0}c=e[0];var f=-1,d=s[0];e:while(++f<o&&u.length<l){var h=c[f],p=t?t(h):h;if(h=n||0!==h?h:0,!(d?ir(d,p):r(u,p,n))){a=i;while(--a){var v=s[a];if(!(v?ir(v,p):r(e[a],p,n)))continue e}d&&d.push(p),u.push(h)}}return u}var eO=ZE;function tO(e,t){return Ay(sy(e,t,dy),e+"")}var nO=tO;function rO(e){return(0,Qr.A)(e)&&(0,hE.A)(e)}var oO=rO;function iO(e){return oO(e)?e:[]}var aO=iO,sO=nO((function(e){var t=Pd(e,aO);return t.length&&t[0]===e[0]?eO(t):[]})),lO=sO,uO=n(62805);function cO(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var fO=cO;function dO(e,t){return t.length<2?e:Pm(e,Bd(t,0,-1))}var hO=dO;function pO(e,t){return t=km(t,e),e=hO(e,t),null==e||delete e[Fm(fO(t))]}var vO=pO,gO=n(22031);function mO(e){return wb(e)?void 0:e}var yO=mO,bO=n(83973),wO=1,AO=2,xO=4,CO=Cy((function(e,t){var n={};if(null==e)return n;var r=!1;t=Pd(t,(function(t){return t=km(t,e),r||(r=t.length>1),t})),(0,gO.A)(e,(0,bO.A)(e),n),r&&(n=(0,uO.A)(n,wO|AO|xO,yO));var o=t.length;while(o--)vO(n,t[o]);return n})),SO=CO;function _O(e){var t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t}function kO(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function EO(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var o=t.split("."),i=0,a=o.length;i<a-1;++i){if(!r&&!n)break;var s=o[i];if(!(s in r)){if(n)throw new Error("please transfer a valid name path to validate!");break}r=r[s]}return{o:r,k:o[i],v:r?r[o[i]]:null,isValid:r&&o[i]in r}}function OO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.KR)({}),n=arguments.length>2?arguments[2]:void 0,r=(0,g_.A)((0,s.R1)(e)),i=(0,s.Kh)({}),l=(0,s.IJ)([]),u=function(n){(0,a.A)((0,s.R1)(e),(0,o.A)((0,o.A)({},(0,g_.A)(r)),n)),(0,s.dY)((function(){Object.keys(i).forEach((function(e){i[e]={autoLink:!1,required:_O((0,s.R1)(t)[e])}}))}))},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter((function(e){var n=kO(e.trigger||"change");return lO(n,t).length})):e},f=null,d=function(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=[],a={},l=function(){var l=n[u],f=EO((0,s.R1)(e),l,o);if(!f.isValid)return"continue";a[l]=f.v;var d=c((0,s.R1)(t)[l],kO(r&&r.trigger));d.length&&i.push(h(l,f.v,d,r||{}).then((function(){return{name:l,errors:[],warnings:[]}})).catch((function(e){var t=[],n=[];return e.forEach((function(e){var r=e.rule.warningOnly,o=e.errors;r?n.push.apply(n,(0,z.A)(o)):t.push.apply(t,(0,z.A)(o))})),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}})))},u=0;u<n.length;u++)l();var d=WE(i);f=d;var p=d.then((function(){return f===d?Promise.resolve(a):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:a,errorFields:t,outOfDate:f!==d})}));return p.catch((function(e){return e})),p},h=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=jk([e],t,r,(0,o.A)({validateMessages:Nk},a),!!a.validateFirst);return i[e]?(i[e].validateStatus="validating",l.catch((function(e){return e})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===i[e].validateStatus){var r,o=t.filter((function(e){return e&&e.errors.length}));i[e].validateStatus=o.length?"error":"success",i[e].help=o.length?o.map((function(e){return e.errors})):null,null===n||void 0===n||null===(r=n.onValidate)||void 0===r||r.call(n,e,!o.length,o.length?(0,s.ux)(i[e].help[0]):null)}})),l):l.catch((function(e){return e}))},p=function(e,t){var n=[],r=!0;e?n=Array.isArray(e)?e:[e]:(r=!1,n=l.value);var o=d(n,t||{},r);return o.catch((function(e){return e})),o},v=function(e){var t=[];t=e?Array.isArray(e)?e:[e]:l.value,t.forEach((function(e){i[e]&&(0,a.A)(i[e],{validateStatus:"",help:null})}))},g=function(e){for(var t={autoLink:!1},n=[],r=Array.isArray(e)?e:[e],o=0;o<r.length;o++){var i=r[o];"error"===(null===i||void 0===i?void 0:i.validateStatus)&&(t.validateStatus="error",i.help&&n.push(i.help)),t.required=t.required||(null===i||void 0===i?void 0:i.required)}return t.help=n,t},m=r,y=!0,b=function(e){var t=[];l.value.forEach((function(r){var o=EO(e,r,!1),i=EO(m,r,!1),a=y&&(null===n||void 0===n?void 0:n.immediate)&&o.isValid;!a&&no(o.v,i.v)||t.push(r)})),p(t,{trigger:"change"}),y=!1,m=(0,g_.A)((0,s.ux)(e))},w=null===n||void 0===n?void 0:n.debounce,A=!0;return(0,s.wB)(t,(function(){l.value=t?Object.keys((0,s.R1)(t)):[],!A&&n&&n.validateOnRuleChange&&p(),A=!1}),{deep:!0,immediate:!0}),(0,s.wB)(l,(function(){var e={};for(var n in l.value.forEach((function(n){e[n]=(0,a.A)({},i[n],{autoLink:!1,required:_O((0,s.R1)(t)[n])}),delete i[n]})),i)Object.prototype.hasOwnProperty.call(i,n)&&delete i[n];(0,a.A)(i,e)}),{immediate:!0}),(0,s.wB)(e,w&&w.wait?(0,zb.A)(b,w.wait,SO(w,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:i,resetFields:u,validate:p,validateField:h,mergeValidateInfo:g,clearValidate:v}}var FO=OO,TO=n(83963),PO=function(){return{layout:Fe.A.oneOf((0,$.PV)("horizontal","inline","vertical")),labelCol:{type:Object},wrapperCol:{type:Object},colon:{type:Boolean,default:void 0},labelAlign:Fe.A.oneOf((0,$.PV)("left","right")),labelWrap:{type:Boolean,default:void 0},prefixCls:String,requiredMark:{type:[String,Boolean],default:void 0},hideRequiredMark:{type:Boolean,default:void 0},model:Fe.A.object,rules:{type:Object},validateMessages:{type:Object,default:void 0},validateOnRuleChange:{type:Boolean,default:void 0},scrollToFirstError:{type:[Boolean,Object]},onSubmit:Function,name:String,validateTrigger:{type:[String,Array]},size:{type:String},onValuesChange:{type:Function},onFieldsChange:{type:Function},onFinish:{type:Function},onFinishFailed:{type:Function},onValidate:{type:Function}}};function NO(e,t){return no(yk(e),yk(t))}var MO=(0,s.pM)({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Pe(PO(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:BE,useForm:FO,setup:function(e,t){var n=t.emit,r=t.slots,a=t.expose,u=t.attrs,c=ul(e),f=(0,se.A)("form",e),d=f.prefixCls,h=f.direction,p=f.form,v=(0,s.EW)((function(){return""===e.requiredMark||e.requiredMark})),g=(0,s.EW)((function(){var t;return void 0!==v.value?v.value:p&&void 0!==(null===(t=p.value)||void 0===t?void 0:t.requiredMark)?p.value.requiredMark:!e.hideRequiredMark})),m=(0,s.EW)((function(){var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=p.value)||void 0===n?void 0:n.colon})),y=(0,TO.M7)(),b=y.validateMessages,w=(0,s.EW)((function(){return(0,o.A)((0,o.A)((0,o.A)({},Nk),b.value),e.validateMessages)})),A=(0,s.EW)((function(){var t;return(0,l.A)(d.value,(t={},(0,i.A)(t,"".concat(d.value,"-").concat(e.layout),!0),(0,i.A)(t,"".concat(d.value,"-hide-required-mark"),!1===g.value),(0,i.A)(t,"".concat(d.value,"-rtl"),"rtl"===h.value),(0,i.A)(t,"".concat(d.value,"-").concat(c.value),c.value),t))})),x=(0,s.KR)(),C={},S=function(e,t){C[e]=t},_=function(e){delete C[e]},k=function(e){var t=!!e,n=t?yk(e).map(xk):[];return t?Object.values(C).filter((function(e){return n.findIndex((function(t){return NO(t,e.fieldName.value)}))>-1})):Object.values(C)},E=function(t){e.model?k(t).forEach((function(e){e.resetField()})):(0,Dn.A)(!1,"Form","model is required for resetFields to work.")},O=function(e){k(e).forEach((function(e){e.clearValidate()}))},F=function(t){var r=e.scrollToFirstError;if(n("finishFailed",t),r&&t.errorFields.length){var o={};"object"===(0,Ie.A)(r)&&(o=r),P(t.errorFields[0].name,o)}},T=function(){return L.apply(void 0,arguments)},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=k(e?[e]:void 0);if(n.length){var r=n[0].fieldId.value,i=r?document.getElementById(r):null;i&&XE(i,(0,o.A)({scrollMode:"if-needed",block:"nearest"},t))}},N=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){var n=[];return Object.values(C).forEach((function(e){var t=e.namePath;n.push(t.value)})),Fk(e.model,n)}return Fk(e.model,t)},M=function(t,n){if((0,Dn.A)(!(t instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!e.model)return(0,Dn.A)(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");var r=!!t,i=r?yk(t).map(xk):[],a=[];Object.values(C).forEach((function(e){var t;if(r||i.push(e.namePath.value),null!==(t=e.rules)&&void 0!==t&&t.value.length){var s=e.namePath.value;if(!r||_k(i,s)){var l=e.validateRules((0,o.A)({validateMessages:w.value},n));a.push(l.then((function(){return{name:s,errors:[],warnings:[]}})).catch((function(e){var t=[],n=[];return e.forEach((function(e){var r=e.rule.warningOnly,o=e.errors;r?n.push.apply(n,(0,z.A)(o)):t.push.apply(t,(0,z.A)(o))})),t.length?Promise.reject({name:s,errors:t,warnings:n}):{name:s,errors:t,warnings:n}})))}}}));var s=WE(a);x.value=s;var l=s.then((function(){return x.value===s?Promise.resolve(N(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:N(i),errorFields:t,outOfDate:x.value!==s})}));return l.catch((function(e){return e})),l},L=function(){return M.apply(void 0,arguments)},I=function(t){if(t.preventDefault(),t.stopPropagation(),n("submit",t),e.model){var r=M();r.then((function(e){n("finish",e)})).catch((function(e){F(e)}))}};return a({resetFields:E,clearValidate:O,validateFields:M,getFieldsValue:N,validate:T,scrollToField:P}),xE({model:(0,s.EW)((function(){return e.model})),name:(0,s.EW)((function(){return e.name})),labelAlign:(0,s.EW)((function(){return e.labelAlign})),labelCol:(0,s.EW)((function(){return e.labelCol})),labelWrap:(0,s.EW)((function(){return e.labelWrap})),wrapperCol:(0,s.EW)((function(){return e.wrapperCol})),vertical:(0,s.EW)((function(){return"vertical"===e.layout})),colon:m,requiredMark:g,validateTrigger:(0,s.EW)((function(){return e.validateTrigger})),rules:(0,s.EW)((function(){return e.rules})),addField:S,removeField:_,onValidate:function(e,t,r){n("validate",e,t,r)},validateMessages:w}),(0,s.wB)((function(){return e.rules}),(function(){e.validateOnRuleChange&&M()})),function(){var e;return(0,s.bF)("form",(0,o.A)((0,o.A)({},u),{},{onSubmit:I,class:[A.value,u.class]}),[null===(e=r.default)||void 0===e?void 0:e.call(r)])}}}),LO=MO;LO.useInjectFormItemContext=ws,LO.ItemRest=As,LO.install=function(e){return e.component(LO.name,LO),e.component(LO.Item.name,LO.Item),e.component(As.name,As),e};var IO=LO,RO={useBreakpoint:il},jO=(Symbol(),function(){return{id:String,prefixCls:String,inputPrefixCls:String,defaultValue:Fe.A.oneOfType([Fe.A.string,Fe.A.number]),value:{type:[String,Number,Symbol],default:void 0},placeholder:{type:[String,Number]},autocomplete:String,type:{type:String,default:"text"},name:String,size:{type:String},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},addonBefore:Fe.A.any,addonAfter:Fe.A.any,prefix:Fe.A.any,suffix:Fe.A.any,autofocus:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,valueModifiers:Object,hidden:Boolean}}),DO=jO,BO=function(){return(0,o.A)((0,o.A)({},ce(jO(),["prefix","addonBefore","addonAfter","suffix"])),{},{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object})};function WO(e,t,n,r,o){var a;return(0,l.A)(e,(a={},(0,i.A)(a,"".concat(e,"-sm"),"small"===n),(0,i.A)(a,"".concat(e,"-lg"),"large"===n),(0,i.A)(a,"".concat(e,"-disabled"),r),(0,i.A)(a,"".concat(e,"-rtl"),"rtl"===o),(0,i.A)(a,"".concat(e,"-borderless"),!t),a))}var zO=function(e){return void 0!==e&&null!==e&&(!Array.isArray(e)||(0,B.Gk)(e).length)};function UO(e){return zO(e.prefix)||zO(e.suffix)||zO(e.allowClear)}function KO(e){return zO(e.addonBefore)||zO(e.addonAfter)}var VO=["text","input"],HO=(0,s.pM)({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Fe.A.oneOf((0,$.PV)("text","input")),value:Fe.A.any,defaultValue:Fe.A.any,allowClear:{type:Boolean,default:void 0},element:Fe.A.any,handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:Fe.A.any,prefix:Fe.A.any,addonBefore:Fe.A.any,addonAfter:Fe.A.any,readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean},setup:function(e,t){var n=t.slots,r=t.attrs,o=(0,s.KR)(),a=function(t){var n;if(null!==(n=o.value)&&void 0!==n&&n.contains(t.target)){var r=e.triggerFocus;null===r||void 0===r||r()}},u=function(t){var r,o=e.allowClear,a=e.value,u=e.disabled,c=e.readonly,f=e.handleReset,d=e.suffix,h=void 0===d?n.suffix:d;if(!o)return null;var p=!u&&!c&&a,v="".concat(t,"-clear-icon");return(0,s.bF)(ss.A,{onClick:f,onMousedown:function(e){return e.preventDefault()},class:(0,l.A)((r={},(0,i.A)(r,"".concat(v,"-hidden"),!p),(0,i.A)(r,"".concat(v,"-has-suffix"),!!h),r),v),role:"button"},null)},c=function(t){var r,o=e.suffix,i=void 0===o?null===(r=n.suffix)||void 0===r?void 0:r.call(n):o,a=e.allowClear;return i||a?(0,s.bF)("span",{class:"".concat(t,"-suffix")},[u(t),i]):null},f=function(t,u){var f,d,h,p=e.focused,v=e.value,g=e.prefix,m=void 0===g?null===(f=n.prefix)||void 0===f?void 0:f.call(n):g,y=e.size,b=e.suffix,w=void 0===b?null===(d=n.suffix)||void 0===d?void 0:d.call(n):b,A=e.disabled,x=e.allowClear,C=e.direction,S=e.readonly,_=e.bordered,k=e.hidden,E=e.addonAfter,O=void 0===E?n.addonAfter:E,F=e.addonBefore,T=void 0===F?n.addonBefore:F,P=c(t);if(!UO({prefix:m,suffix:w,allowClear:x}))return Bn(u,{value:v});var N=m?(0,s.bF)("span",{class:"".concat(t,"-prefix")},[m]):null,M=(0,l.A)("".concat(t,"-affix-wrapper"),(h={},(0,i.A)(h,"".concat(t,"-affix-wrapper-focused"),p),(0,i.A)(h,"".concat(t,"-affix-wrapper-disabled"),A),(0,i.A)(h,"".concat(t,"-affix-wrapper-sm"),"small"===y),(0,i.A)(h,"".concat(t,"-affix-wrapper-lg"),"large"===y),(0,i.A)(h,"".concat(t,"-affix-wrapper-input-with-clear-btn"),w&&x&&v),(0,i.A)(h,"".concat(t,"-affix-wrapper-rtl"),"rtl"===C),(0,i.A)(h,"".concat(t,"-affix-wrapper-readonly"),S),(0,i.A)(h,"".concat(t,"-affix-wrapper-borderless"),!_),(0,i.A)(h,"".concat(r.class),!KO({addonAfter:O,addonBefore:T})&&r.class),h));return(0,s.bF)("span",{ref:o,class:M,style:r.style,onMouseup:a,hidden:k},[N,Bn(u,{style:null,value:v,class:WO(t,_,y,A)}),P])},d=function(t,o){var a,u,c,f=e.addonBefore,d=void 0===f?null===(a=n.addonBefore)||void 0===a?void 0:a.call(n):f,h=e.addonAfter,p=void 0===h?null===(u=n.addonAfter)||void 0===u?void 0:u.call(n):h,v=e.size,g=e.direction,m=e.hidden,y=e.disabled;if(!KO({addonBefore:d,addonAfter:p}))return o;var b="".concat(t,"-group"),w="".concat(b,"-addon"),A=(0,l.A)(w,(0,i.A)({},"".concat(w,"-disabled"),y)),x=d?(0,s.bF)("span",{class:A},[d]):null,C=p?(0,s.bF)("span",{class:A},[p]):null,S=(0,l.A)("".concat(t,"-wrapper"),b,(0,i.A)({},"".concat(b,"-rtl"),"rtl"===g)),_=(0,l.A)("".concat(t,"-group-wrapper"),(c={},(0,i.A)(c,"".concat(t,"-group-wrapper-sm"),"small"===v),(0,i.A)(c,"".concat(t,"-group-wrapper-lg"),"large"===v),(0,i.A)(c,"".concat(t,"-group-wrapper-rtl"),"rtl"===g),c),r.class);return(0,s.bF)("span",{class:_,style:r.style,hidden:m},[(0,s.bF)("span",{class:S},[x,Bn(o,{style:null}),C])])},h=function(t,o){var a,c=e.value,f=e.allowClear,d=e.direction,h=e.bordered,p=e.hidden,v=e.addonAfter,g=void 0===v?n.addonAfter:v,m=e.addonBefore,y=void 0===m?n.addonBefore:m;if(!f)return Bn(o,{value:c});var b=(0,l.A)("".concat(t,"-affix-wrapper"),"".concat(t,"-affix-wrapper-textarea-with-clear-btn"),(a={},(0,i.A)(a,"".concat(t,"-affix-wrapper-rtl"),"rtl"===d),(0,i.A)(a,"".concat(t,"-affix-wrapper-borderless"),!h),(0,i.A)(a,"".concat(r.class),!KO({addonAfter:g,addonBefore:y})&&r.class),a));return(0,s.bF)("span",{class:b,style:r.style,hidden:p},[Bn(o,{style:null,value:c}),u(t)])};return function(){var t,r=e.prefixCls,o=e.inputType,i=e.element,a=void 0===i?null===(t=n.element)||void 0===t?void 0:t.call(n):i;return o===VO[0]?h(r,a):d(r,f(r,a))}}});function qO(e){return"undefined"===typeof e||null===e?"":String(e)}function GO(e,t,n,r){if(n){var o=t;if("click"===t.type){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0});var i=e.cloneNode(!0);return o.target=i,o.currentTarget=i,i.value="",void n(o)}if(void 0!==r)return Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0}),o.target=e,o.currentTarget=e,e.value=r,void n(o);n(o)}}function YO(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var $O=(0,s.pM)({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:DO(),setup:function(e,t){var n,r=t.slots,a=t.attrs,u=t.expose,c=t.emit,f=(0,s.KR)(),d=(0,s.KR)(),h=ws(),p=(0,se.A)("input",e),v=p.direction,g=p.prefixCls,m=p.size,y=p.autocomplete,b=(0,s.KR)(void 0===e.value?e.defaultValue:e.value),w=(0,s.KR)(!1);(0,s.wB)((function(){return e.value}),(function(){b.value=e.value})),(0,s.wB)((function(){return e.disabled}),(function(){void 0!==e.value&&(b.value=e.value),e.disabled&&(w.value=!1)}));var A=function(){n=setTimeout((function(){var e;"password"===(null===(e=f.value)||void 0===e?void 0:e.getAttribute("type"))&&f.value.hasAttribute("value")&&f.value.removeAttribute("value")}))},x=function(e){YO(f.value,e)},C=function(){var e;null===(e=f.value)||void 0===e||e.blur()},S=function(e,t,n){var r;null===(r=f.value)||void 0===r||r.setSelectionRange(e,t,n)},_=function(){var e;null===(e=f.value)||void 0===e||e.select()};u({focus:x,blur:C,input:f,stateValue:b,setSelectionRange:S,select:_});var k=function(t){var n=e.onFocus;w.value=!0,null===n||void 0===n||n(t),(0,s.dY)((function(){A()}))},E=function(t){var n=e.onBlur;w.value=!1,null===n||void 0===n||n(t),h.onFieldBlur(),(0,s.dY)((function(){A()}))},O=function(e){c("update:value",e.target.value),c("change",e),c("input",e),h.onFieldChange()},F=(0,s.nI)(),T=function(t,n){b.value!==t&&(void 0===e.value?b.value=t:(0,s.dY)((function(){f.value.value!==b.value&&F.update()})),(0,s.dY)((function(){n&&n()})))},P=function(e){GO(f.value,e,O),T("",(function(){x()}))},N=function(t){var n=t.target,r=n.value,o=n.composing;if(!((t.isComposing||o)&&e.lazy||b.value===r)){var i=t.target.value;GO(f.value,t,O),T(i,(function(){A()}))}},M=function(e){13===e.keyCode&&c("pressEnter",e),c("keydown",e)};(0,s.sV)((function(){A()})),(0,s.xo)((function(){clearTimeout(n)}));var L=function(){var t,n=e.addonBefore,u=void 0===n?r.addonBefore:n,c=e.addonAfter,d=void 0===c?r.addonAfter:c,p=e.disabled,b=e.bordered,w=void 0===b||b,A=e.valueModifiers,x=void 0===A?{}:A,C=e.htmlSize,S=ce(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers"]),_=(0,o.A)((0,o.A)((0,o.A)({},S),a),{},{autocomplete:y.value,onChange:N,onInput:N,onFocus:k,onBlur:E,onKeydown:M,class:(0,l.A)(WO(g.value,w,m.value,p,v.value),(0,i.A)({},a.class,a.class&&!u&&!d)),ref:f,key:"ant-input",size:C,id:null!==(t=S.id)&&void 0!==t?t:h.id.value});x.lazy&&delete _.onInput,_.autofocus||delete _.autofocus;var O=(0,s.bF)("input",ce(_,["size"]),null);return(0,s.bo)(O,[[zo]])},I=function(){var t,n=b.value,o=e.maxlength,a=e.suffix,u=void 0===a?null===(t=r.suffix)||void 0===t?void 0:t.call(r):a,c=e.showCount,f=Number(o)>0;if(u||c){var d=(0,z.A)(qO(n)).length,h=null;return h="object"===(0,Ie.A)(c)?c.formatter({count:d,maxlength:o}):"".concat(d).concat(f?" / ".concat(o):""),(0,s.bF)(s.FK,null,[!!c&&(0,s.bF)("span",{class:(0,l.A)("".concat(g.value,"-show-count-suffix"),(0,i.A)({},"".concat(g.value,"-show-count-has-suffix"),!!u))},[h]),u])}return null};return function(){var t=(0,o.A)((0,o.A)((0,o.A)({},a),e),{},{prefixCls:g.value,inputType:"input",value:qO(b.value),handleReset:P,focused:w.value&&!e.disabled});return(0,s.bF)(HO,(0,o.A)((0,o.A)({},ce(t,["element","valueModifiers","suffix","showCount"])),{},{ref:d}),(0,o.A)((0,o.A)({},r),{},{element:L,suffix:I}))}}}),XO=(0,s.pM)({compatConfig:{MODE:3},name:"AInputGroup",props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0},onMouseenter:{type:Function},onMouseleave:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup:function(e,t){var n=t.slots,r=(0,se.A)("input-group",e),o=r.prefixCls,a=r.direction,l=(0,s.EW)((function(){var t,n=o.value;return t={},(0,i.A)(t,"".concat(n),!0),(0,i.A)(t,"".concat(n,"-lg"),"large"===e.size),(0,i.A)(t,"".concat(n,"-sm"),"small"===e.size),(0,i.A)(t,"".concat(n,"-compact"),e.compact),(0,i.A)(t,"".concat(n,"-rtl"),"rtl"===a.value),t}));return function(){var t;return(0,s.bF)("span",{class:l.value,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onFocus:e.onFocus,onBlur:e.onBlur},[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),JO=/iPhone/i,QO=/iPod/i,ZO=/iPad/i,eF=/\bAndroid(?:.+)Mobile\b/i,tF=/Android/i,nF=/\bAndroid(?:.+)SD4930UR\b/i,rF=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,oF=/Windows Phone/i,iF=/\bWindows(?:.+)ARM\b/i,aF=/BlackBerry/i,sF=/BB10/i,lF=/Opera Mini/i,uF=/\b(CriOS|Chrome)(?:.+)Mobile/i,cF=/Mobile(?:.+)Firefox\b/i;function fF(e,t){return e.test(t)}function dF(e){var t=e||("undefined"!==typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if("undefined"!==typeof n[1]){var r=n,o=(0,Re.A)(r,1);t=o[0]}if(n=t.split("Twitter"),"undefined"!==typeof n[1]){var i=n,a=(0,Re.A)(i,1);t=a[0]}var s={apple:{phone:fF(JO,t)&&!fF(oF,t),ipod:fF(QO,t),tablet:!fF(JO,t)&&fF(ZO,t)&&!fF(oF,t),device:(fF(JO,t)||fF(QO,t)||fF(ZO,t))&&!fF(oF,t)},amazon:{phone:fF(nF,t),tablet:!fF(nF,t)&&fF(rF,t),device:fF(nF,t)||fF(rF,t)},android:{phone:!fF(oF,t)&&fF(nF,t)||!fF(oF,t)&&fF(eF,t),tablet:!fF(oF,t)&&!fF(nF,t)&&!fF(eF,t)&&(fF(rF,t)||fF(tF,t)),device:!fF(oF,t)&&(fF(nF,t)||fF(rF,t)||fF(eF,t)||fF(tF,t))||fF(/\bokhttp\b/i,t)},windows:{phone:fF(oF,t),tablet:fF(iF,t),device:fF(oF,t)||fF(iF,t)},other:{blackberry:fF(aF,t),blackberry10:fF(sF,t),opera:fF(lF,t),firefox:fF(cF,t),chrome:fF(uF,t),device:fF(aF,t)||fF(sF,t)||fF(lF,t)||fF(cF,t)||fF(uF,t)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var hF,pF=(0,o.A)((0,o.A)({},dF()),{},{isMobile:dF}),vF=pF,gF=["disabled","loading","addonAfter","suffix"],mF=(0,s.pM)({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},DO()),{},{inputPrefixCls:String,enterButton:Fe.A.any,onSearch:{type:Function}}),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose,u=t.emit,c=(0,s.KR)(),f=function(){var e;null===(e=c.value)||void 0===e||e.focus()},d=function(){var e;null===(e=c.value)||void 0===e||e.blur()};a({focus:f,blur:d});var h=function(e){u("update:value",e.target.value),e&&e.target&&"click"===e.type&&u("search",e.target.value,e),u("change",e)},p=function(e){var t;document.activeElement===(null===(t=c.value)||void 0===t?void 0:t.input)&&e.preventDefault()},v=function(e){var t;u("search",null===(t=c.value)||void 0===t?void 0:t.stateValue,e),vF.tablet||c.value.focus()},g=(0,se.A)("input-search",e),m=g.prefixCls,y=g.getPrefixCls,b=g.direction,w=g.size,A=(0,s.EW)((function(){return y("input",e.inputPrefixCls)}));return function(){var t,a,u,f,d,g=e.disabled,y=e.loading,x=e.addonAfter,C=void 0===x?null===(t=n.addonAfter)||void 0===t?void 0:t.call(n):x,S=e.suffix,_=void 0===S?null===(a=n.suffix)||void 0===a?void 0:a.call(n):S,k=(0,je.A)(e,gF),E=e.enterButton,O=void 0===E?null!==(u=null===(f=n.enterButton)||void 0===f?void 0:f.call(n))&&void 0!==u&&u:E;O=O||""===O;var F,T="boolean"===typeof O?(0,s.bF)(hs,null,null):null,P="".concat(m.value,"-button"),N=Array.isArray(O)?O[0]:O,M=N.type&&wb(N.type)&&N.type.__ANT_BUTTON;if(M||"button"===N.tagName)F=Bn(N,(0,o.A)({onMousedown:p,onClick:v,key:"enterButton"},M?{class:P,size:w.value}:{}),!1);else{var L=T&&!O;F=(0,s.bF)(tc,{class:P,type:O?"primary":void 0,size:w.value,disabled:g,key:"enterButton",onMousedown:p,onClick:v,loading:y,icon:L?T:null},{default:function(){return[L?null:T||O]}})}C&&(F=[F,C]);var I=(0,l.A)(m.value,(d={},(0,i.A)(d,"".concat(m.value,"-rtl"),"rtl"===b.value),(0,i.A)(d,"".concat(m.value,"-").concat(w.value),!!w.value),(0,i.A)(d,"".concat(m.value,"-with-button"),!!O),d),r.class);return(0,s.bF)($O,(0,o.A)((0,o.A)((0,o.A)({ref:c},ce(k,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:v,size:w.value,prefixCls:A.value,addonAfter:F,suffix:_,onChange:h,class:I,disabled:g}),n)}}}),yF="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",bF=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],wF={};function AF(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&wF[n])return wF[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=bF.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(wF[n]=l),l}function xF(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;hF||(hF=document.createElement("textarea"),hF.setAttribute("tab-index","-1"),hF.setAttribute("aria-hidden","true"),document.body.appendChild(hF)),e.getAttribute("wrap")?hF.setAttribute("wrap",e.getAttribute("wrap")):hF.removeAttribute("wrap");var o=AF(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;hF.setAttribute("style","".concat(l,";").concat(yF)),hF.value=e.value||e.placeholder||"";var u,c=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER,d=hF.scrollHeight;if("border-box"===s?d+=a:"content-box"===s&&(d-=i),null!==n||null!==r){hF.value=" ";var h=hF.scrollHeight-i;null!==n&&(c=h*n,"border-box"===s&&(c=c+i+a),d=Math.max(c,d)),null!==r&&(f=h*r,"border-box"===s&&(f=f+i+a),u=d>f?"":"hidden",d=Math.min(f,d))}return{height:"".concat(d,"px"),minHeight:"".concat(c,"px"),maxHeight:"".concat(f,"px"),overflowY:u,resize:"none"}}var CF=0,SF=1,_F=2,kF=(0,s.pM)({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:BO(),setup:function(e,t){var n,r,a=t.attrs,u=t.emit,c=t.expose,f=(0,s.KR)(),d=(0,s.KR)({}),h=(0,s.KR)(CF);(0,s.xo)((function(){G.cancel(n),G.cancel(r)}));var p=function(){try{if(document.activeElement===f.value){var e=f.value.selectionStart,t=f.value.selectionEnd;f.value.setSelectionRange(e,t)}}catch(UE){}},v=function(){var t=e.autoSize||e.autosize;if(t&&f.value){var n=t.minRows,o=t.maxRows;d.value=xF(f.value,!1,n,o),h.value=SF,G.cancel(r),r=G((function(){h.value=_F,r=G((function(){h.value=CF,p()}))}))}},g=function(){G.cancel(n),n=G(v)},m=function(t){if(h.value===CF){u("resize",t);var n=e.autoSize||e.autosize;n&&g()}};(0,Dn.A)(void 0===e.autosize,"Input.TextArea","autosize is deprecated, please use autoSize instead.");var y=function(){var t=e.prefixCls,n=e.autoSize,r=e.autosize,u=e.disabled,c=ce(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),p=(0,l.A)(t,a.class,(0,i.A)({},"".concat(t,"-disabled"),u)),v=[a.style,d.value,h.value===SF?{overflowX:"hidden",overflowY:"hidden"}:null],g=(0,o.A)((0,o.A)((0,o.A)({},c),a),{},{style:v,class:p});return g.autofocus||delete g.autofocus,0===g.rows&&delete g.rows,(0,s.bF)(W,{onResize:m,disabled:!(n||r)},{default:function(){return[(0,s.bo)((0,s.bF)("textarea",(0,o.A)((0,o.A)({},g),{},{ref:f}),null),[[zo]])]}})};(0,s.wB)((function(){return e.value}),(function(){(0,s.dY)((function(){v()}))})),(0,s.sV)((function(){(0,s.dY)((function(){v()}))}));var b=(0,s.nI)();return c({resizeTextarea:v,textArea:f,instance:b}),function(){return y()}}}),EF=kF;function OF(e,t){return(0,z.A)(e||"").slice(0,t).join("")}function FF(e,t,n,r){var o=n;return e?o=OF(n,r):(0,z.A)(t||"").length<n.length&&(0,z.A)(n||"").length>r&&(o=t),o}var TF=(0,s.pM)({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:BO(),setup:function(e,t){var n=t.attrs,r=t.expose,a=t.emit,u=ws(),c=(0,s.KR)(void 0===e.value?e.defaultValue:e.value),f=(0,s.KR)(),d=(0,s.KR)(""),h=(0,se.A)("input",e),p=h.prefixCls,v=h.size,g=h.direction,m=(0,s.EW)((function(){return""===e.showCount||e.showCount||!1})),y=(0,s.EW)((function(){return Number(e.maxlength)>0})),b=(0,s.KR)(!1),w=(0,s.KR)(),A=(0,s.KR)(0),x=function(e){b.value=!0,w.value=d.value,A.value=e.currentTarget.selectionStart,a("compositionstart",e)},C=function(t){b.value=!1;var n=t.currentTarget.value;if(y.value){var r,o=A.value>=e.maxlength+1||A.value===(null===(r=w.value)||void 0===r?void 0:r.length);n=FF(o,w.value,n,e.maxlength)}n!==d.value&&(E(n),GO(t.currentTarget,t,T,n)),a("compositionend",t)},S=(0,s.nI)();(0,s.wB)((function(){return e.value}),(function(){var t;S.vnode.props,c.value=null!==(t=e.value)&&void 0!==t?t:""}));var _=function(e){var t;YO(null===(t=f.value)||void 0===t?void 0:t.textArea,e)},k=function(){var e,t;null===(e=f.value)||void 0===e||null===(t=e.textArea)||void 0===t||t.blur()},E=function(t,n){c.value!==t&&(void 0===e.value?c.value=t:(0,s.dY)((function(){var e,t,n;f.value.textArea.value!==d.value&&(null===(e=f.value)||void 0===e||null===(t=(n=e.instance).update)||void 0===t||t.call(n))})),(0,s.dY)((function(){n&&n()})))},O=function(e){13===e.keyCode&&a("pressEnter",e),a("keydown",e)},F=function(t){var n=e.onBlur;null===n||void 0===n||n(t),u.onFieldBlur()},T=function(e){a("update:value",e.target.value),a("change",e),a("input",e),u.onFieldChange()},P=function(e){GO(f.value.textArea,e,T),E("",(function(){_()}))},N=function(t){var n=t.target.composing,r=t.target.value;if(b.value=!(!t.isComposing&&!n),!(b.value&&e.lazy||c.value===r)){if(y.value){var o=t.target,i=o.selectionStart>=e.maxlength+1||o.selectionStart===r.length||!o.selectionStart;r=FF(i,d.value,r,e.maxlength)}GO(t.currentTarget,t,T,r),E(r)}},M=function(){var t,r,a,l=n.style,c=n.class,d=e.bordered,h=void 0===d||d,g=(0,o.A)((0,o.A)((0,o.A)({},ce(e,["allowClear"])),n),{},{style:m.value?{}:l,class:(t={},(0,i.A)(t,"".concat(p.value,"-borderless"),!h),(0,i.A)(t,"".concat(c),c&&!m.value),(0,i.A)(t,"".concat(p.value,"-sm"),"small"===v.value),(0,i.A)(t,"".concat(p.value,"-lg"),"large"===v.value),t),showCount:null,prefixCls:p.value,onInput:N,onChange:N,onBlur:F,onKeydown:O,onCompositionstart:x,onCompositionend:C});return null!==(r=e.valueModifiers)&&void 0!==r&&r.lazy&&delete g.onInput,(0,s.bF)(EF,(0,o.A)((0,o.A)({},g),{},{id:null!==(a=g.id)&&void 0!==a?a:u.id.value,ref:f,maxlength:e.maxlength}),null)};return r({focus:_,blur:k,resizableTextArea:f}),(0,s.nT)((function(){var t=qO(c.value);b.value||!y.value||null!==e.value&&void 0!==e.value||(t=OF(t,e.maxlength)),d.value=t})),function(){var t=e.maxlength,r=e.bordered,a=void 0===r||r,u=e.hidden,c=n.style,f=n.class,h=(0,o.A)((0,o.A)((0,o.A)({},e),n),{},{prefixCls:p.value,inputType:"text",handleReset:P,direction:g.value,bordered:a,style:m.value?void 0:c}),v=(0,s.bF)(HO,(0,o.A)((0,o.A)({},h),{},{value:d.value}),{element:M});if(m.value){var b=(0,z.A)(d.value).length,w="";w="object"===(0,Ie.A)(m.value)?m.value.formatter({count:b,maxlength:t}):"".concat(b).concat(y.value?" / ".concat(t):"");(function(){})();v=(0,s.bF)("div",{hidden:u,class:(0,l.A)("".concat(p.value,"-textarea"),(0,i.A)({},"".concat(p.value,"-textarea-rtl"),"rtl"===g.value),"".concat(p.value,"-textarea-show-count"),f),style:c,"data-count":"object"!==(0,Ie.A)(w)?w:void 0},[v])}return v}}}),PF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},NF=PF;function MF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){LF(e,t,n[t])}))}return e}function LF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var IF=function(e,t){var n=MF({},e,t.attrs);return(0,s.bF)(Ya.A,MF({},n,{icon:NF}),null)};IF.displayName="EyeOutlined",IF.inheritAttrs=!1;var RF=IF,jF={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},DF=jF;function BF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WF(e,t,n[t])}))}return e}function WF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zF=function(e,t){var n=BF({},e,t.attrs);return(0,s.bF)(Ya.A,BF({},n,{icon:DF}),null)};zF.displayName="EyeInvisibleOutlined",zF.inheritAttrs=!1;var UF=zF,KF=["size","visibilityToggle"],VF={click:"onClick",hover:"onMouseover"},HF=function(e){return e?(0,s.bF)(RF,null,null):(0,s.bF)(UF,null,null)},qF=(0,s.pM)({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},DO()),{},{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},iconRender:Function}),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose,u=(0,s.KR)(!1),c=function(){var t=e.disabled;t||(u.value=!u.value)},f=(0,s.KR)(),d=function(){var e;null===(e=f.value)||void 0===e||e.focus()},h=function(){var e;null===(e=f.value)||void 0===e||e.blur()};a({focus:d,blur:h});var p=function(t){var r,o=e.action,a=e.iconRender,l=void 0===a?n.iconRender||HF:a,f=VF[o]||"",d=l(u.value),h=(r={},(0,i.A)(r,f,c),(0,i.A)(r,"class","".concat(t,"-icon")),(0,i.A)(r,"key","passwordIcon"),(0,i.A)(r,"onMousedown",(function(e){e.preventDefault()})),(0,i.A)(r,"onMouseup",(function(e){e.preventDefault()})),r);return Bn((0,B.zO)(d)?d:(0,s.bF)("span",null,[d]),h)},v=(0,se.A)("input-password",e),g=v.prefixCls,m=v.getPrefixCls,y=(0,s.EW)((function(){return m("input",e.inputPrefixCls)})),b=function(){var t=e.size,a=e.visibilityToggle,c=(0,je.A)(e,KF),d=a&&p(g.value),h=(0,l.A)(g.value,r.class,(0,i.A)({},"".concat(g.value,"-").concat(t),!!t)),v=(0,o.A)((0,o.A)((0,o.A)({},ce(c,["suffix","iconRender","action"])),r),{},{type:u.value?"text":"password",class:h,prefixCls:y.value,suffix:d});return t&&(v.size=t),(0,s.bF)($O,(0,o.A)({ref:f},v),n)};return function(){return b()}}});$O.Group=XO,$O.Search=mF,$O.TextArea=TF,$O.Password=qF,$O.install=function(e){return e.component($O.name,$O),e.component($O.Group.name,$O.Group),e.component($O.Search.name,$O.Search),e.component($O.TextArea.name,$O.TextArea),e.component($O.Password.name,$O.Password),e};var GF=$O,YF="[object Number]";function $F(e){return"number"==typeof e||(0,Qr.A)(e)&&(0,fb.A)(e)==YF}var XF=$F;function JF(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function QF(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function ZF(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Fe.A.shape({x:Number,y:Number}).loose,title:Fe.A.any,footer:Fe.A.any,transitionName:String,maskTransitionName:String,animation:Fe.A.any,maskAnimation:Fe.A.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Fe.A.any,maskProps:Fe.A.any,wrapProps:Fe.A.any,getContainer:Fe.A.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Fe.A.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}var eT=ZF;function tT(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}var nT=-1;function rT(){return nT+=1,nT}function oT(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;n=o.documentElement[r],"number"!==typeof n&&(n=o.body[r])}return n}function iT(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=oT(o),n.top+=oT(o,!0),n}var aT={width:0,height:0,overflow:"hidden",outline:"none"},sT=(0,s.pM)({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},eT()),{},{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup:function(e,t){var n=t.expose,r=t.slots,i=t.attrs,a=(0,s.KR)(),l=(0,s.KR)(),u=(0,s.KR)();n({focus:function(){var e;null===(e=a.value)||void 0===e||e.focus()},changeActive:function(e){var t=document,n=t.activeElement;e&&n===l.value?a.value.focus():e||n!==a.value||l.value.focus()}});var c=(0,s.KR)(),f=(0,s.EW)((function(){var t=e.width,n=e.height,r={};return void 0!==t&&(r.width="number"===typeof t?"".concat(t,"px"):t),void 0!==n&&(r.height="number"===typeof n?"".concat(n,"px"):n),c.value&&(r.transformOrigin=c.value),r})),d=function(){(0,s.dY)((function(){if(u.value){var t=iT(u.value);c.value=e.mousePosition?"".concat(e.mousePosition.x-t.left,"px ").concat(e.mousePosition.y-t.top,"px"):""}}))},h=function(t){e.onVisibleChanged(t)};return function(){var t,n,c,p,v,g,m,y=e.prefixCls,b=e.footer,w=void 0===b?null===(t=r.footer)||void 0===t?void 0:t.call(r):b,A=e.title,x=void 0===A?null===(n=r.title)||void 0===n?void 0:n.call(r):A,C=e.ariaId,S=e.closable,_=e.closeIcon,k=void 0===_?null===(c=r.closeIcon)||void 0===c?void 0:c.call(r):_,E=e.onClose,O=e.bodyStyle,F=e.bodyProps,T=e.onMousedown,P=e.onMouseup,N=e.visible,M=e.modalRender,L=void 0===M?r.modalRender:M,I=e.destroyOnClose,R=e.motionName;w&&(v=(0,s.bF)("div",{class:"".concat(y,"-footer")},[w])),x&&(g=(0,s.bF)("div",{class:"".concat(y,"-header")},[(0,s.bF)("div",{class:"".concat(y,"-title"),id:C},[x])])),S&&(m=(0,s.bF)("button",{type:"button",onClick:E,"aria-label":"Close",class:"".concat(y,"-close")},[k||(0,s.bF)("span",{class:"".concat(y,"-close-x")},null)]));var j=(0,s.bF)("div",{class:"".concat(y,"-content")},[m,g,(0,s.bF)("div",(0,o.A)({class:"".concat(y,"-body"),style:O},F),[null===(p=r.default)||void 0===p?void 0:p.call(r)]),v]),D=(0,so.ce)(R);return(0,s.bF)(so.Ay,(0,o.A)((0,o.A)({},D),{},{onBeforeEnter:d,onAfterEnter:function(){return h(!0)},onAfterLeave:function(){return h(!1)}}),{default:function(){return[N||!I?(0,s.bo)((0,s.bF)("div",(0,o.A)((0,o.A)({},i),{},{ref:u,key:"dialog-element",role:"document",style:[f.value,i.style],class:[y,i.class],onMousedown:T,onMouseup:P}),[(0,s.bF)("div",{tabindex:0,ref:a,style:aT,"aria-hidden":"true"},null),L?L({originVNode:j}):j,(0,s.bF)("div",{tabindex:0,ref:l,style:aT,"aria-hidden":"true"},null)]),[[s.aG,N]]):null]}})}}});function lT(e){if(null==e)throw new TypeError("Cannot destructure "+e)}var uT=(0,s.pM)({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup:function(e,t){return lT(t),function(){var t=e.prefixCls,n=e.visible,r=e.maskProps,i=e.motionName,a=(0,so.ce)(i);return(0,s.bF)(so.Ay,a,{default:function(){return[(0,s.bo)((0,s.bF)("div",(0,o.A)({class:"".concat(t,"-mask")},r),null),[[s.aG,n]])]}})}}}),cT=(0,s.pM)({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:Pe((0,o.A)((0,o.A)({},eT()),{},{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:function(){return null},focusTriggerAfterClose:!0}),setup:function(e,t){var n=t.attrs,r=t.slots,i=(0,s.KR)(),a=(0,s.KR)(),u=(0,s.KR)(),c=(0,s.KR)(e.visible),f=(0,s.KR)("vcDialogTitle".concat(rT())),d=function(t){if(t){var n;if(!$e(a.value,document.activeElement))i.value=document.activeElement,null===(n=u.value)||void 0===n||n.focus()}else{var r,o=c.value;if(c.value=!1,e.mask&&i.value&&e.focusTriggerAfterClose){try{i.value.focus({preventScroll:!0})}catch(UE){}i.value=null}if(o)null===(r=e.afterClose)||void 0===r||r.call(e)}},h=function(t){var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},p=(0,s.KR)(!1),v=(0,s.KR)(),g=function(){clearTimeout(v.value),p.value=!0},m=function(){v.value=setTimeout((function(){p.value=!1}))},y=function(t){if(!e.maskClosable)return null;p.value?p.value=!1:a.value===t.target&&h(t)},b=function(t){if(e.keyboard&&t.keyCode===Mo.ESC)return t.stopPropagation(),void h(t);e.visible&&t.keyCode===Mo.TAB&&u.value.changeActive(!t.shiftKey)};return(0,s.wB)((function(){return e.visible}),(function(){e.visible&&(c.value=!0)}),{flush:"post"}),(0,s.xo)((function(){var t;clearTimeout(v.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()})),(0,s.nT)((function(){var t,n;(null===(t=e.scrollLocker)||void 0===t||t.unLock(),c.value)&&(null===(n=e.scrollLocker)||void 0===n||n.lock())})),function(){var t=e.prefixCls,i=e.mask,p=e.visible,v=e.maskTransitionName,w=e.maskAnimation,A=e.zIndex,x=e.wrapClassName,C=e.rootClassName,S=e.wrapStyle,_=e.closable,k=e.maskProps,E=e.maskStyle,O=e.transitionName,F=e.animation,T=e.wrapProps,P=e.title,N=void 0===P?r.title:P,M=n.style,L=n.class;return(0,s.bF)("div",(0,o.A)({class:["".concat(t,"-root"),C]},Jo(e,{data:!0})),[(0,s.bF)(uT,{prefixCls:t,visible:i&&p,motionName:tT(t,v,w),style:(0,o.A)({zIndex:A},E),maskProps:k},null),(0,s.bF)("div",(0,o.A)({tabIndex:-1,onKeydown:b,class:(0,l.A)("".concat(t,"-wrap"),x),ref:a,onClick:y,role:"dialog","aria-labelledby":N?f.value:null,style:(0,o.A)((0,o.A)({zIndex:A},S),{},{display:c.value?null:"none"})},T),[(0,s.bF)(sT,(0,o.A)((0,o.A)({},ce(e,["scrollLocker"])),{},{style:M,class:L,onMousedown:g,onMouseup:m,ref:u,closable:_,ariaId:f.value,prefixCls:t,visible:p,onClose:h,onVisibleChanged:d,motionName:tT(t,O,F)}),r)])])}}}),fT=eT(),dT=(0,s.pM)({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Pe(fT,{visible:!1}),setup:function(e,t){var n=t.attrs,r=t.slots,i=(0,s.KR)(e.visible);return bo({},{inTriggerContext:!1}),(0,s.wB)((function(){return e.visible}),(function(){e.visible&&(i.value=!0)}),{flush:"post"}),function(){var t=e.visible,a=e.getContainer,l=e.forceRender,u=e.destroyOnClose,c=void 0!==u&&u,f=e.afterClose,d=(0,o.A)((0,o.A)((0,o.A)({},e),n),{},{ref:"_component",key:"dialog"});return!1===a?(0,s.bF)(cT,(0,o.A)((0,o.A)({},d),{},{getOpenCount:function(){return 2}}),r):l||!c||i.value?(0,s.bF)(r_,{visible:t,forceRender:l,getContainer:a},{default:function(e){return d=(0,o.A)((0,o.A)((0,o.A)({},d),e),{},{afterClose:function(){null===f||void 0===f||f(),i.value=!1}}),(0,s.bF)(cT,d,r)}}):null}}}),hT=dT,pT=hT;function vT(e){var t=(0,s.KR)(null),n=(0,s.Kh)((0,o.A)({},e)),r=(0,s.KR)([]),i=function(e){null===t.value&&(r.value=[],t.value=G((function(){var e;r.value.forEach((function(t){e=(0,o.A)((0,o.A)({},e),t)})),(0,a.A)(n,e),t.value=null}))),r.value.push(e)};return(0,s.sV)((function(){t.value&&G.cancel(t.value)})),[n,i]}function gT(e,t,n,r){var o=t+n,a=(n-r)/2;if(n>r){if(t>0)return(0,i.A)({},e,a);if(t<0&&o<r)return(0,i.A)({},e,-a)}else if(t<0||o>r)return(0,i.A)({},e,t<0?a:-a);return{}}function mT(e,t,n,r){var i=JF(),a=i.width,s=i.height,l=null;return e<=a&&t<=s?l={x:0,y:0}:(e>a||t>s)&&(l=(0,o.A)((0,o.A)({},gT("x",n,e,a)),gT("y",r,t,s))),l}var yT=Symbol("previewGroupContext"),bT={provide:function(e){(0,s.Gt)(yT,e)},inject:function(){return(0,s.WQ)(yT,{isPreviewGroup:(0,s.KR)(!1),previewUrls:(0,s.EW)((function(){return new Map})),setPreviewUrls:function(){},current:(0,s.KR)(null),setCurrent:function(){},setShowPreview:function(){},setMousePosition:function(){},registerImage:null,rootClassName:""})}},wT=(0,s.pM)({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:function(){return{}}}},setup:function(e,t){var n=t.slots,r=(0,s.EW)((function(){var t={visible:void 0,onVisibleChange:function(){},getContainer:void 0,current:0};return"object"===(0,Ie.A)(e.preview)?OT(e.preview,t):t})),i=(0,s.Kh)(new Map),l=(0,s.KR)(),u=(0,s.EW)((function(){return r.value.visible})),c=(0,s.EW)((function(){return r.value.getContainer})),f=function(e,t){var n,o;null===(n=(o=r.value).onVisibleChange)||void 0===n||n.call(o,e,t)},d=Ra(!!u.value,{value:u,onChange:f}),h=(0,Re.A)(d,2),p=h[0],v=h[1],g=(0,s.KR)(null),m=(0,s.EW)((function(){return void 0!==u.value})),y=(0,s.EW)((function(){return Array.from(i.keys())})),b=(0,s.EW)((function(){return y.value[r.value.current]})),w=(0,s.EW)((function(){return new Map(Array.from(i).filter((function(e){var t=(0,Re.A)(e,2),n=t[1].canPreview;return!!n})).map((function(e){var t=(0,Re.A)(e,2),n=t[0],r=t[1].url;return[n,r]})))})),A=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];i.set(e,{url:t,canPreview:n})},x=function(e){l.value=e},C=function(e){g.value=e},S=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=function(){i.delete(e)};return i.set(e,{url:t,canPreview:n}),r},_=function(e){null===e||void 0===e||e.stopPropagation(),v(!1),C(null)};return(0,s.wB)(b,(function(e){x(e)}),{immediate:!0,flush:"post"}),(0,s.nT)((function(){p.value&&m.value&&x(b.value)}),{flush:"post"}),bT.provide({isPreviewGroup:(0,s.KR)(!0),previewUrls:w,setPreviewUrls:A,current:l,setCurrent:x,setShowPreview:v,setMousePosition:C,registerImage:S}),function(){var t=(0,a.A)({},(lT(r.value),r.value));return(0,s.bF)(s.FK,null,[n.default&&n.default(),(0,s.bF)(_T,(0,o.A)((0,o.A)({},t),{},{"ria-hidden":!p.value,visible:p.value,prefixCls:e.previewPrefixCls,onClose:_,mousePosition:g.value,src:w.value.get(l.value),icons:e.icons,getContainer:c.value}),null)])}}}),AT=wT,xT={x:0,y:0},CT=(0,o.A)((0,o.A)({},ZF()),{},{src:String,alt:String,rootClassName:String,icons:{type:Object,default:function(){return{}}}}),ST=(0,s.pM)({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:CT,emits:["close","afterClose"],setup:function(e,t){var n=t.emit,r=t.attrs,a=(0,s.Kh)(e.icons),u=a.rotateLeft,c=a.rotateRight,f=a.zoomIn,d=a.zoomOut,h=a.close,p=a.left,v=a.right,g=(0,s.KR)(1),m=(0,s.KR)(0),y=vT(xT),b=(0,Re.A)(y,2),w=b[0],A=b[1],x=function(){return n("close")},C=(0,s.KR)(),S=(0,s.Kh)({originX:0,originY:0,deltaX:0,deltaY:0}),_=(0,s.KR)(!1),k=bT.inject(),E=k.previewUrls,O=k.current,F=k.isPreviewGroup,T=k.setCurrent,P=(0,s.EW)((function(){return E.value.size})),N=(0,s.EW)((function(){return Array.from(E.value.keys())})),M=(0,s.EW)((function(){return N.value.indexOf(O.value)})),L=(0,s.EW)((function(){return F.value?E.value.get(O.value):e.src})),I=(0,s.EW)((function(){return F.value&&P.value>1})),R=(0,s.KR)({wheelDirection:0}),j=function(){g.value=1,m.value=0,A(xT),n("afterClose")},D=function(){g.value++,A(xT)},B=function(){g.value>1&&g.value--,A(xT)},W=function(){m.value+=90},z=function(){m.value-=90},U=function(e){e.preventDefault(),e.stopPropagation(),M.value>0&&T(N.value[M.value-1])},K=function(e){e.preventDefault(),e.stopPropagation(),M.value<P.value-1&&T(N.value[M.value+1])},V=(0,l.A)((0,i.A)({},"".concat(e.prefixCls,"-moving"),_.value)),H="".concat(e.prefixCls,"-operations-operation"),q="".concat(e.prefixCls,"-operations-icon"),G=[{icon:h,onClick:x,type:"close"},{icon:f,onClick:D,type:"zoomIn"},{icon:d,onClick:B,type:"zoomOut",disabled:(0,s.EW)((function(){return 1===g.value}))},{icon:c,onClick:W,type:"rotateRight"},{icon:u,onClick:z,type:"rotateLeft"}],Y=function(){if(e.visible&&_.value){var t=C.value.offsetWidth*g.value,n=C.value.offsetHeight*g.value,r=QF(C.value),i=r.left,a=r.top,s=m.value%180!==0;_.value=!1;var l=mT(s?n:t,s?t:n,i,a);l&&A((0,o.A)({},l))}},$=function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),S.deltaX=e.pageX-w.x,S.deltaY=e.pageY-w.y,S.originX=w.x,S.originY=w.y,_.value=!0)},X=function(t){e.visible&&_.value&&A({x:t.pageX-S.deltaX,y:t.pageY-S.deltaY})},J=function(t){if(e.visible){t.preventDefault();var n=t.deltaY;R.value={wheelDirection:n}}},Q=function(t){e.visible&&I.value&&(t.preventDefault(),t.keyCode===Mo.LEFT?M.value>0&&T(N.value[M.value-1]):t.keyCode===Mo.RIGHT&&M.value<P.value-1&&T(N.value[M.value+1]))},ee=function(){e.visible&&(1!==g.value&&(g.value=1),w.x===xT.x&&w.y===xT.y||A(xT))},te=function(){};return(0,s.sV)((function(){(0,s.wB)([function(){return e.visible},_],(function(){var e,t;te();var n=Z(window,"mouseup",Y,!1),r=Z(window,"mousemove",X,!1),o=Z(window,"wheel",J,{passive:!1}),i=Z(window,"keydown",Q,!1);try{window.top!==window.self&&(e=Z(window.top,"mouseup",Y,!1),t=Z(window.top,"mousemove",X,!1))}catch(a){(0,Ke.$e)(!1,"[vc-image] ".concat(a))}te=function(){n.remove(),r.remove(),o.remove(),i.remove(),e&&e.remove(),t&&t.remove()}}),{flush:"post",immediate:!0}),(0,s.wB)([R],(function(){var e=R.value.wheelDirection;e>0?B():e<0&&D()}))})),(0,s.hi)((function(){te()})),function(){var t=e.visible,n=e.prefixCls,a=e.rootClassName;return(0,s.bF)(pT,(0,o.A)((0,o.A)({},r),{},{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:x,afterClose:j,visible:t,wrapClassName:V,rootClassName:a,getContainer:e.getContainer}),{default:function(){return[(0,s.bF)("ul",{class:"".concat(e.prefixCls,"-operations")},[G.map((function(t){var n=t.icon,r=t.onClick,o=t.type,a=t.disabled;return(0,s.bF)("li",{class:(0,l.A)(H,(0,i.A)({},"".concat(e.prefixCls,"-operations-operation-disabled"),a&&(null===a||void 0===a?void 0:a.value))),onClick:r,key:o},[(0,s.E3)(n,{class:q})])}))]),(0,s.bF)("div",{class:"".concat(e.prefixCls,"-img-wrapper"),style:{transform:"translate3d(".concat(w.x,"px, ").concat(w.y,"px, 0)")}},[(0,s.bF)("img",{onMousedown:$,onDblclick:ee,ref:C,class:"".concat(e.prefixCls,"-img"),src:L.value,alt:e.alt,style:{transform:"scale3d(".concat(g.value,", ").concat(g.value,", 1) rotate(").concat(m.value,"deg)")}},null)]),I.value&&(0,s.bF)("div",{class:(0,l.A)("".concat(e.prefixCls,"-switch-left"),(0,i.A)({},"".concat(e.prefixCls,"-switch-left-disabled"),M.value<=0)),onClick:U},[p]),I.value&&(0,s.bF)("div",{class:(0,l.A)("".concat(e.prefixCls,"-switch-right"),(0,i.A)({},"".concat(e.prefixCls,"-switch-right-disabled"),M.value>=P.value-1)),onClick:K},[v])]}})}}}),_T=ST,kT=["icons","maskClassName"],ET=function(){return{src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:Fe.A.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}},OT=function(e,t){var n=(0,o.A)({},e);return Object.keys(t).forEach((function(r){void 0===e[r]&&(n[r]=t[r])})),n},FT=0,TT=(0,s.pM)({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:ET(),emits:["click","error"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.emit,u=(0,s.EW)((function(){return e.prefixCls})),c=(0,s.EW)((function(){return"".concat(u.value,"-preview")})),f=(0,s.EW)((function(){var t={visible:void 0,onVisibleChange:function(){},getContainer:void 0};return"object"===(0,Ie.A)(e.preview)?OT(e.preview,t):t})),d=(0,s.EW)((function(){var t;return null!==(t=f.value.src)&&void 0!==t?t:e.src})),h=(0,s.EW)((function(){return e.placeholder&&!0!==e.placeholder||r.placeholder})),p=(0,s.EW)((function(){return f.value.visible})),v=(0,s.EW)((function(){return f.value.getContainer})),g=(0,s.EW)((function(){return void 0!==p.value})),m=function(e,t){var n,r;null===(n=(r=f.value).onVisibleChange)||void 0===n||n.call(r,e,t)},y=Ra(!!p.value,{value:p,onChange:m}),b=(0,Re.A)(y,2),w=b[0],A=b[1];(0,s.wB)(w,(function(e,t){m(e,t)}));var x=(0,s.KR)(h.value?"loading":"normal");(0,s.wB)((function(){return e.src}),(function(){x.value=h.value?"loading":"normal"}));var C=(0,s.KR)(null),S=(0,s.EW)((function(){return"error"===x.value})),_=bT.inject(),k=_.isPreviewGroup,E=_.setCurrent,O=_.setShowPreview,F=_.setMousePosition,T=_.registerImage,P=(0,s.KR)(FT++),N=(0,s.EW)((function(){return e.preview&&!S.value})),M=function(){x.value="normal"},L=function(e){x.value="error",a("error",e)},I=function(e){if(!g.value){var t=QF(e.target),n=t.left,r=t.top;k.value?(E(P.value),F({x:n,y:r})):C.value={x:n,y:r}}k.value?O(!0):A(!0),a("click",e)},R=function(){A(!1),g.value||(C.value=null)},j=(0,s.KR)(null);(0,s.wB)((function(){return j}),(function(){"loading"===x.value&&j.value.complete&&(j.value.naturalWidth||j.value.naturalHeight)&&M()}));var D=function(){};(0,s.sV)((function(){(0,s.wB)([d,N],(function(){if(D(),!k.value)return function(){};D=T(P.value,d.value,N.value),N.value||D()}),{flush:"post",immediate:!0})})),(0,s.hi)((function(){D()}));var B=function(e){return XF(e)?e+"px":e};return function(){var t=e.prefixCls,u=e.wrapperClassName,h=e.fallback,p=e.src,g=e.placeholder,m=e.wrapperStyle,y=e.rootClassName,b=n.width,A=n.height,_=n.crossorigin,E=n.decoding,O=n.alt,F=n.sizes,T=n.srcset,P=n.usemap,D=n.class,W=n.style,z=f.value,U=z.icons,K=z.maskClassName,V=(0,je.A)(z,kT),H=(0,l.A)(t,u,y,(0,i.A)({},"".concat(t,"-error"),S.value)),q=S.value&&h?h:d.value,G={crossorigin:_,decoding:E,alt:O,sizes:F,srcset:T,usemap:P,class:(0,l.A)("".concat(t,"-img"),(0,i.A)({},"".concat(t,"-img-placeholder"),!0===g),D),style:(0,o.A)({height:A},W)};return(0,s.bF)(s.FK,null,[(0,s.bF)("div",{class:H,onClick:N.value?I:function(e){a("click",e)},style:(0,o.A)({width:B(b),height:B(A)},m)},[(0,s.bF)("img",(0,o.A)((0,o.A)((0,o.A)({},G),S.value&&h?{src:h}:{onLoad:M,onError:L,src:p}),{},{ref:j}),null),"loading"===x.value&&(0,s.bF)("div",{"aria-hidden":"true",class:"".concat(t,"-placeholder")},[g||r.placeholder&&r.placeholder()]),r.previewMask&&N.value&&(0,s.bF)("div",{class:["".concat(t,"-mask"),K]},[r.previewMask()])]),!k.value&&N.value&&(0,s.bF)(_T,(0,o.A)((0,o.A)({},V),{},{"aria-hidden":!w.value,visible:w.value,prefixCls:c.value,onClose:R,mousePosition:C.value,src:q,alt:O,getContainer:v.value,icons:U,rootClassName:y}),null)])}}});TT.PreviewGroup=AT;var PT=TT,NT=PT,MT=n(7042),LT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},IT=LT;function RT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jT(e,t,n[t])}))}return e}function jT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DT=function(e,t){var n=RT({},e,t.attrs);return(0,s.bF)(Ya.A,RT({},n,{icon:IT}),null)};DT.displayName="RotateLeftOutlined",DT.inheritAttrs=!1;var BT=DT,WT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},zT=WT;function UT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KT(e,t,n[t])}))}return e}function KT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VT=function(e,t){var n=UT({},e,t.attrs);return(0,s.bF)(Ya.A,UT({},n,{icon:zT}),null)};VT.displayName="RotateRightOutlined",VT.inheritAttrs=!1;var HT=VT,qT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},GT=qT;function YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$T(e,t,n[t])}))}return e}function $T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XT=function(e,t){var n=YT({},e,t.attrs);return(0,s.bF)(Ya.A,YT({},n,{icon:GT}),null)};XT.displayName="ZoomInOutlined",XT.inheritAttrs=!1;var JT=XT,QT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ZT=QT;function eP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tP(e,t,n[t])}))}return e}function tP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nP=function(e,t){var n=eP({},e,t.attrs);return(0,s.bF)(Ya.A,eP({},n,{icon:ZT}),null)};nP.displayName="ZoomOutOutlined",nP.inheritAttrs=!1;var rP=nP,oP={rotateLeft:(0,s.bF)(BT,null,null),rotateRight:(0,s.bF)(HT,null,null),zoomIn:(0,s.bF)(JT,null,null),zoomOut:(0,s.bF)(rP,null,null),close:(0,s.bF)(as.A,null,null),left:(0,s.bF)(ix,null,null),right:(0,s.bF)(bc,null,null)},iP=(0,s.pM)({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String},setup:function(e,t){var n=t.attrs,r=t.slots,i=(0,se.A)("image",e),a=i.getPrefixCls,l=(0,s.EW)((function(){return a("image-preview",e.previewPrefixCls)}));return function(){return(0,s.bF)(AT,(0,o.A)((0,o.A)({},(0,o.A)((0,o.A)({},n),e)),{},{icons:oP,previewPrefixCls:l.value}),r)}}}),aP=iP,sP=(0,s.pM)({name:"AImage",inheritAttrs:!1,props:ET(),setup:function(e,t){var n=t.slots,r=t.attrs,i=(0,se.A)("image",e),a=i.prefixCls,l=i.rootPrefixCls,u=i.configProvider,c=(0,s.EW)((function(){var t=e.preview;if(!1===t)return t;var n="object"===(0,Ie.A)(t)?t:{};return(0,o.A)((0,o.A)({icons:oP},n),{},{transitionName:(0,so.by)(l.value,"zoom",n.transitionName),maskTransitionName:(0,so.by)(l.value,"fade",n.maskTransitionName)})}));return function(){var t,i=(null===(t=u.locale)||void 0===t?void 0:t.Image)||MT["default"].Image,l=function(){return(0,s.bF)("div",{class:"".concat(a.value,"-mask-info")},[(0,s.bF)(RF,null,null),null===i||void 0===i?void 0:i.preview])},f=e.previewMask,d=void 0===f?n.previewMask||l:f;return(0,s.bF)(NT,(0,o.A)((0,o.A)({},(0,o.A)((0,o.A)((0,o.A)({},r),e),{},{prefixCls:a.value})),{},{preview:c.value}),(0,o.A)((0,o.A)({},n),{},{previewMask:"function"===typeof d?d:null}))}}});sP.PreviewGroup=aP,sP.install=function(e){return e.component(sP.name,sP),e.component(sP.PreviewGroup.name,sP.PreviewGroup),e};var lP=sP,uP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},cP=uP;function fP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dP(e,t,n[t])}))}return e}function dP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hP=function(e,t){var n=fP({},e,t.attrs);return(0,s.bF)(Ya.A,fP({},n,{icon:cP}),null)};hP.displayName="UpOutlined",hP.inheritAttrs=!1;var pP=hP;function vP(){return"function"===typeof BigInt}function gP(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function mP(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function yP(e){var t=String(e);if(mP(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!==r&&void 0!==r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&wP(t)?t.length-t.indexOf(".")-1:0}function bP(e){var t=String(e);if(mP(e)){if(e>Number.MAX_SAFE_INTEGER)return String(vP()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(vP()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(yP(t))}return gP(t).fullStr}function wP(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}function AP(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}var xP=function(){function e(t){Qu(this,e),(0,i.A)(this,"origin",""),AP(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ju(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(yP(this.number),yP(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":bP(this.number):this.origin}}]),e}(),CP=function(){function e(t){if(Qu(this,e),(0,i.A)(this,"origin",""),AP(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(mP(n)&&(n=Number(n)),n="string"===typeof n?n:bP(n),wP(n)){var r=gP(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}}return Ju(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(r),i=n.alignDecimal(r),a=(o+i).toString(),s=gP(a),l=s.negativeStr,u=s.trimStr,c="".concat(l).concat(u.padStart(r+1,"0"));return new e("".concat(c.slice(0,-r),".").concat(c.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":gP("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function SP(e){return vP()?new CP(e):new xP(e)}function _P(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=gP(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),u="".concat(i).concat(a);if(n>=0){var c=Number(s[n]);if(c>=5&&!r){var f=SP(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-c));return _P(f.toString(),t,n,r)}return 0===n?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return".0"===l?u:"".concat(u).concat(l)}var kP=200,EP=600,OP=(0,s.pM)({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:{type:Function}},slots:["upNode","downNode"],setup:function(e,t){var n=t.slots,r=t.emit,a=(0,s.KR)(),u=function(e,t){function n(){r("step",t),a.value=setTimeout(n,kP)}e.preventDefault(),r("step",t),a.value=setTimeout(n,EP)},c=function(){clearTimeout(a.value)};return(0,s.xo)((function(){c()})),function(){if(ji())return null;var t=e.prefixCls,r=e.upDisabled,a=e.downDisabled,f="".concat(t,"-handler"),d=(0,l.A)(f,"".concat(f,"-up"),(0,i.A)({},"".concat(f,"-up-disabled"),r)),h=(0,l.A)(f,"".concat(f,"-down"),(0,i.A)({},"".concat(f,"-down-disabled"),a)),p={unselectable:"on",role:"button",onMouseup:c,onMouseleave:c},v=n.upNode,g=n.downNode;return(0,s.bF)("div",{class:"".concat(f,"-wrap")},[(0,s.bF)("span",(0,o.A)((0,o.A)({},p),{},{onMousedown:function(e){u(e,!0)},"aria-label":"Increase Value","aria-disabled":r,class:d}),[(null===v||void 0===v?void 0:v())||(0,s.bF)("span",{unselectable:"on",class:"".concat(t,"-handler-up-inner")},null)]),(0,s.bF)("span",(0,o.A)((0,o.A)({},p),{},{onMousedown:function(e){u(e,!1)},"aria-label":"Decrease Value","aria-disabled":a,class:h}),[(null===g||void 0===g?void 0:g())||(0,s.bF)("span",{unselectable:"on",class:"".concat(t,"-handler-down-inner")},null)])])}}});function FP(e,t){var n=(0,s.KR)(null);function r(){try{var t=e.value,r=t.selectionStart,o=t.selectionEnd,i=t.value,a=i.substring(0,r),s=i.substring(o);n.value={start:r,end:o,value:i,beforeTxt:a,afterTxt:s}}catch(UE){}}function o(){if(e.value&&n.value&&t.value)try{var r=e.value.value,o=n.value,i=o.beforeTxt,a=o.afterTxt,s=o.start,l=r.length;if(r.endsWith(a))l=r.length-n.value.afterTxt.length;else if(r.startsWith(i))l=i.length;else{var u=i[s-1],c=r.indexOf(u,s-1);-1!==c&&(l=c+1)}e.value.setSelectionRange(l,l)}catch(UE){(0,Ke.$e)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(UE.message))}}return[r,o]}var TP=function(){var e=(0,s.KR)(0),t=function(){G.cancel(e.value)};return(0,s.xo)((function(){t()})),function(n){t(),e.value=G((function(){n()}))}},PP=["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"],NP=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},MP=function(e){var t=SP(e);return t.isInvalidate()?null:t},LP=function(){return{stringMode:{type:Boolean},defaultValue:{type:[String,Number]},value:{type:[String,Number]},prefixCls:{type:String},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number],default:1},tabindex:{type:Number},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{type:Function},formatter:{type:Function},precision:{type:Number},decimalSeparator:{type:String},onInput:{type:Function},onChange:{type:Function},onPressEnter:{type:Function},onStep:{type:Function},onBlur:{type:Function},onFocus:{type:Function}}},IP=(0,s.pM)({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},LP()),{},{lazy:Boolean}),slots:["upHandler","downHandler"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.emit,u=t.expose,c=(0,s.KR)(),f=(0,s.KR)(!1),d=(0,s.KR)(!1),h=(0,s.KR)(!1),p=(0,s.KR)(SP(e.value));function v(t){void 0===e.value&&(p.value=t)}var g=function(t,n){if(!n)return e.precision>=0?e.precision:Math.max(yP(t),yP(e.step))},m=function(t){var n=String(t);if(e.parser)return e.parser(n);var r=n;return e.decimalSeparator&&(r=r.replace(e.decimalSeparator,".")),r.replace(/[^\w.-]+/g,"")},y=(0,s.KR)(""),b=function(t,n){if(e.formatter)return e.formatter(t,{userTyping:n,input:String(y.value)});var r="number"===typeof t?bP(t):t;if(!n){var o=g(r,n);if(wP(r)&&(e.decimalSeparator||o>=0)){var i=e.decimalSeparator||".";r=_P(r,i,o)}}return r},w=function(){var t=e.value;return p.value.isInvalidate()&&["string","number"].includes((0,Ie.A)(t))?Number.isNaN(t)?"":t:b(p.value.toString(),!1)}();function A(e,t){y.value=b(e.isInvalidate()?e.toString(!1):e.toString(!t),t)}y.value=w;var x=(0,s.EW)((function(){return MP(e.max)})),C=(0,s.EW)((function(){return MP(e.min)})),S=(0,s.EW)((function(){return!(!x.value||!p.value||p.value.isInvalidate())&&x.value.lessEquals(p.value)})),_=(0,s.EW)((function(){return!(!C.value||!p.value||p.value.isInvalidate())&&p.value.lessEquals(C.value)})),k=FP(c,f),E=(0,Re.A)(k,2),O=E[0],F=E[1],T=function(e){return x.value&&!e.lessEquals(x.value)?x.value:C.value&&!C.value.lessEquals(e)?C.value:null},P=function(e){return!T(e)},N=function(t,n){var r=t,o=P(r)||r.isEmpty();if(r.isEmpty()||n||(r=T(r)||r,o=!0),!e.readonly&&!e.disabled&&o){var i,a=r.toString(),s=g(a,n);if(s>=0&&(r=SP(_P(a,".",s))),!r.equals(p.value))v(r),null===(i=e.onChange)||void 0===i||i.call(e,r.isEmpty()?null:NP(e.stringMode,r)),void 0===e.value&&A(r,n);return r}return p.value},M=TP(),L=function t(n){var r;if(O(),y.value=n,!h.value){var o=m(n),i=SP(o);i.isNaN()||N(i,!0)}null===(r=e.onInput)||void 0===r||r.call(e,n),M((function(){var r=n;e.parser||(r=n.replace(/。/g,".")),r!==n&&t(r)}))},I=function(){h.value=!0},R=function(){h.value=!1,L(c.value.value)},j=function(e){L(e.target.value)},D=function(t){var n,r;if(!(t&&S.value||!t&&_.value)){d.value=!1;var o=SP(e.step);t||(o=o.negate());var i=(p.value||SP(0)).add(o.toString()),a=N(i,!1);null===(n=e.onStep)||void 0===n||n.call(e,NP(e.stringMode,a),{offset:e.step,type:t?"up":"down"}),null===(r=c.value)||void 0===r||r.focus()}},B=function(t){var n=SP(m(y.value)),r=n;r=n.isNaN()?p.value:N(n,t),void 0!==e.value?A(p.value,!1):r.isNaN()||A(r,!1)},W=function(t){var n,r=t.which;(d.value=!0,r===Mo.ENTER)&&(h.value||(d.value=!1),B(!1),null===(n=e.onPressEnter)||void 0===n||n.call(e,t));!1!==e.keyboard&&!h.value&&[Mo.UP,Mo.DOWN].includes(r)&&(D(Mo.UP===r),t.preventDefault())},z=function(){d.value=!1},U=function(e){B(!1),f.value=!1,d.value=!1,a("blur",e)};return(0,s.wB)((function(){return e.precision}),(function(){p.value.isInvalidate()||A(p.value,!1)}),{flush:"post"}),(0,s.wB)((function(){return e.value}),(function(){var t=SP(e.value);p.value=t;var n=SP(m(y.value));t.equals(n)&&d.value&&!e.formatter||A(t,d.value)}),{flush:"post"}),(0,s.wB)(y,(function(){e.formatter&&F()}),{flush:"post"}),(0,s.wB)((function(){return e.disabled}),(function(e){e&&(f.value=!1)})),u({focus:function(){var e;null===(e=c.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=c.value)||void 0===e||e.blur()}}),function(){var t,u=(0,o.A)((0,o.A)({},n),e),d=u.prefixCls,h=void 0===d?"rc-input-number":d,v=u.min,g=u.max,m=u.step,b=void 0===m?1:m,w=(u.defaultValue,u.value,u.disabled),A=u.readonly,x=(u.keyboard,u.controls),C=void 0===x||x,k=u.autofocus,E=(u.stringMode,u.parser,u.formatter,u.precision,u.decimalSeparator,u.onChange,u.onInput,u.onPressEnter,u.onStep,u.lazy),O=u.class,F=u.style,T=(0,je.A)(u,PP),N=r.upHandler,M=r.downHandler,L="".concat(h,"-input"),B={};return E?B.onChange=j:B.onInput=j,(0,s.bF)("div",{class:(0,l.A)(h,O,(t={},(0,i.A)(t,"".concat(h,"-focused"),f.value),(0,i.A)(t,"".concat(h,"-disabled"),w),(0,i.A)(t,"".concat(h,"-readonly"),A),(0,i.A)(t,"".concat(h,"-not-a-number"),p.value.isNaN()),(0,i.A)(t,"".concat(h,"-out-of-range"),!p.value.isInvalidate()&&!P(p.value)),t)),style:F,onKeydown:W,onKeyup:z},[C&&(0,s.bF)(OP,{prefixCls:h,upDisabled:S.value,downDisabled:_.value,onStep:D},{upNode:N,downNode:M}),(0,s.bF)("div",{class:"".concat(L,"-wrap")},[(0,s.bF)("input",(0,o.A)((0,o.A)((0,o.A)({autofocus:k,autocomplete:"off",role:"spinbutton","aria-valuemin":v,"aria-valuemax":g,"aria-valuenow":p.value.isInvalidate()?null:p.value.toString(),step:b},T),{},{ref:c,class:L,value:y.value,disabled:w,readonly:A,onFocus:function(e){f.value=!0,a("focus",e)}},B),{},{onBlur:U,onCompositionstart:I,onCompositionend:R}),null)])])}}});function RP(e){return void 0!==e&&null!==e}var jP=["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"],DP=LP(),BP=function(){return(0,o.A)((0,o.A)({},DP),{},{size:{type:String},bordered:{type:Boolean,default:!0},placeholder:String,name:String,id:String,type:String,addonBefore:Fe.A.any,addonAfter:Fe.A.any,prefix:Fe.A.any,"onUpdate:value":DP.onChange,valueModifiers:Object})},WP=(0,s.pM)({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:BP(),slots:["addonBefore","addonAfter","prefix"],setup:function(e,t){var n=t.emit,r=t.expose,a=t.attrs,u=t.slots,c=ws(),f=(0,se.A)("input-number",e),d=f.prefixCls,h=f.size,p=f.direction,v=(0,s.KR)(void 0===e.value?e.defaultValue:e.value),g=(0,s.KR)(!1);(0,s.wB)((function(){return e.value}),(function(){v.value=e.value}));var m=(0,s.KR)(null),y=function(){var e;null===(e=m.value)||void 0===e||e.focus()},b=function(){var e;null===(e=m.value)||void 0===e||e.blur()};r({focus:y,blur:b});var w=function(t){void 0===e.value&&(v.value=t),n("update:value",t),n("change",t),c.onFieldChange()},A=function(e){g.value=!1,n("blur",e),c.onFieldBlur()},x=function(e){g.value=!0,n("focus",e)};return function(){var t,n,r,c,f=(0,o.A)((0,o.A)({},a),e),y=f.class,b=f.bordered,C=f.readonly,S=f.style,_=f.addonBefore,k=void 0===_?null===(t=u.addonBefore)||void 0===t?void 0:t.call(u):_,E=f.addonAfter,O=void 0===E?null===(n=u.addonAfter)||void 0===n?void 0:n.call(u):E,F=f.prefix,T=void 0===F?null===(r=u.prefix)||void 0===r?void 0:r.call(u):F,P=f.valueModifiers,N=void 0===P?{}:P,M=(0,je.A)(f,jP),L=d.value,I=h.value,R=(0,l.A)((c={},(0,i.A)(c,"".concat(L,"-lg"),"large"===I),(0,i.A)(c,"".concat(L,"-sm"),"small"===I),(0,i.A)(c,"".concat(L,"-rtl"),"rtl"===p.value),(0,i.A)(c,"".concat(L,"-readonly"),C),(0,i.A)(c,"".concat(L,"-borderless"),!b),c),y),j=(0,s.bF)(IP,(0,o.A)((0,o.A)({},ce(M,["size","defaultValue"])),{},{ref:m,lazy:!!N.lazy,value:v.value,class:R,prefixCls:L,readonly:C,onChange:w,onBlur:A,onFocus:x}),{upHandler:function(){return(0,s.bF)(pP,{class:"".concat(L,"-handler-up-inner")},null)},downHandler:function(){return(0,s.bF)(Qa,{class:"".concat(L,"-handler-down-inner")},null)}}),D=RP(k)||RP(O);if(RP(T)){var B,W=(0,l.A)("".concat(L,"-affix-wrapper"),(B={},(0,i.A)(B,"".concat(L,"-affix-wrapper-focused"),g.value),(0,i.A)(B,"".concat(L,"-affix-wrapper-disabled"),e.disabled),(0,i.A)(B,"".concat(L,"-affix-wrapper-rtl"),"rtl"===p.value),(0,i.A)(B,"".concat(L,"-affix-wrapper-readonly"),C),(0,i.A)(B,"".concat(L,"-affix-wrapper-borderless"),!b),(0,i.A)(B,"".concat(y),!D&&y),B));j=(0,s.bF)("div",{class:W,style:S,onMouseup:function(){return m.value.focus()}},[(0,s.bF)("span",{class:"".concat(L,"-prefix")},[T]),j])}if(D){var z,U="".concat(L,"-group"),K="".concat(U,"-addon"),V=k?(0,s.bF)("div",{class:K},[k]):null,H=O?(0,s.bF)("div",{class:K},[O]):null,q=(0,l.A)("".concat(L,"-wrapper"),U,(0,i.A)({},"".concat(U,"-rtl"),"rtl"===p.value)),G=(0,l.A)("".concat(L,"-group-wrapper"),(z={},(0,i.A)(z,"".concat(L,"-group-wrapper-sm"),"small"===I),(0,i.A)(z,"".concat(L,"-group-wrapper-lg"),"large"===I),(0,i.A)(z,"".concat(L,"-group-wrapper-rtl"),"rtl"===p.value),z),y);j=(0,s.bF)("div",{class:G,style:S},[(0,s.bF)("div",{class:q},[V,j,H])])}return Bn(j,{style:S})}}}),zP=(0,a.A)(WP,{install:function(e){return e.component(WP.name,WP),e}}),UP=function(){return{prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String}};function KP(e){var t=e.suffixCls,n=e.tagName,r=e.name;return function(e){var i=(0,s.pM)({compatConfig:{MODE:3},name:r,props:UP(),setup:function(r,i){var a=i.slots,l=(0,se.A)(t,r),u=l.prefixCls;return function(){var t=(0,o.A)((0,o.A)({},r),{},{prefixCls:u.value,tagName:n});return(0,s.bF)(e,t,a)}}});return i}}var VP=(0,s.pM)({compatConfig:{MODE:3},props:UP(),setup:function(e,t){var n=t.slots;return function(){return(0,s.bF)(e.tagName,{class:e.prefixCls},n)}}}),HP=(0,s.pM)({compatConfig:{MODE:3},props:UP(),setup:function(e,t){var n=t.slots,r=(0,se.A)("",e),o=r.direction,a=(0,s.KR)([]),l={addSider:function(e){a.value=[].concat((0,z.A)(a.value),[e])},removeSider:function(e){a.value=a.value.filter((function(t){return t!==e}))}};(0,s.Gt)(uf,l);var u=(0,s.EW)((function(){var t,n=e.prefixCls,r=e.hasSider;return t={},(0,i.A)(t,"".concat(n),!0),(0,i.A)(t,"".concat(n,"-has-sider"),"boolean"===typeof r?r:a.value.length>0),(0,i.A)(t,"".concat(n,"-rtl"),"rtl"===o.value),t}));return function(){var t=e.tagName;return(0,s.bF)(t,{class:u.value},n)}}}),qP=KP({suffixCls:"layout",tagName:"section",name:"ALayout"})(HP),GP=KP({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(VP),YP=KP({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(VP),$P=KP({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(VP),XP=qP,JP={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},QP=JP;function ZP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){eN(e,t,n[t])}))}return e}function eN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tN=function(e,t){var n=ZP({},e,t.attrs);return(0,s.bF)(Ya.A,ZP({},n,{icon:QP}),null)};tN.displayName="BarsOutlined",tN.inheritAttrs=!1;var nN=tN,rN={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},oN=function(){return{prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:Fe.A.any,width:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),collapsedWidth:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),breakpoint:Fe.A.oneOf((0,$.PV)("xs","sm","md","lg","xl","xxl","xxxl")),theme:Fe.A.oneOf((0,$.PV)("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}},iN=function(){var e=0;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),aN=(0,s.pM)({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:Pe(oN(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup:function(e,t){var n=t.emit,r=t.attrs,a=t.slots,u=(0,se.A)("layout-sider",e),c=u.prefixCls,f=(0,s.WQ)(uf,void 0),d=(0,s.KR)(!!(void 0!==e.collapsed?e.collapsed:e.defaultCollapsed)),h=(0,s.KR)(!1);(0,s.wB)((function(){return e.collapsed}),(function(){d.value=!!e.collapsed})),(0,s.Gt)(lf,d);var p,v=function(t,r){void 0===e.collapsed&&(d.value=t),n("update:collapsed",t),n("collapse",t,r)},g=(0,s.KR)((function(e){h.value=e.matches,n("breakpoint",e.matches),d.value!==e.matches&&v(e.matches,"responsive")}));function m(e){return g.value(e)}var y=iN("ant-sider-");f&&f.addSider(y),(0,s.sV)((function(){(0,s.wB)((function(){return e.breakpoint}),(function(){try{var t;null===(t=p)||void 0===t||t.removeEventListener("change",m)}catch(i){var n;null===(n=p)||void 0===n||n.removeListener(m)}if("undefined"!==typeof window){var r=window,o=r.matchMedia;if(o&&e.breakpoint&&e.breakpoint in rN){p=o("(max-width: ".concat(rN[e.breakpoint],")"));try{p.addEventListener("change",m)}catch(i){p.addListener(m)}m(p)}}}),{immediate:!0})})),(0,s.xo)((function(){try{var e;null===(e=p)||void 0===e||e.removeEventListener("change",m)}catch(n){var t;null===(t=p)||void 0===t||t.removeListener(m)}f&&f.removeSider(y)}));var b=function(){v(!d.value,"clickTrigger")};return function(){var t,n,u,f=c.value,p=e.collapsedWidth,v=e.width,g=e.reverseArrow,m=e.zeroWidthTriggerStyle,y=e.trigger,w=void 0===y?null===(t=a.trigger)||void 0===t?void 0:t.call(a):y,A=e.collapsible,x=e.theme,C=d.value?p:v,S=hu(C)?"".concat(C,"px"):String(C),_=0===parseFloat(String(p||0))?(0,s.bF)("span",{onClick:b,class:(0,l.A)("".concat(f,"-zero-width-trigger"),"".concat(f,"-zero-width-trigger-").concat(g?"right":"left")),style:m},[w||(0,s.bF)(nN,null,null)]):null,k={expanded:g?(0,s.bF)(bc,null,null):(0,s.bF)(ix,null,null),collapsed:g?(0,s.bF)(ix,null,null):(0,s.bF)(bc,null,null)},E=d.value?"collapsed":"expanded",O=k[E],F=null!==w?_||(0,s.bF)("div",{class:"".concat(f,"-trigger"),onClick:b,style:{width:S}},[w||O]):null,T=[r.style,{flex:"0 0 ".concat(S),maxWidth:S,minWidth:S,width:S}],P=(0,l.A)(f,"".concat(f,"-").concat(x),(n={},(0,i.A)(n,"".concat(f,"-collapsed"),!!d.value),(0,i.A)(n,"".concat(f,"-has-trigger"),A&&null!==w&&!_),(0,i.A)(n,"".concat(f,"-below"),!!h.value),(0,i.A)(n,"".concat(f,"-zero-width"),0===parseFloat(S)),n),r.class);return(0,s.bF)("aside",(0,o.A)((0,o.A)({},r),{},{class:P,style:T}),[(0,s.bF)("div",{class:"".concat(f,"-children")},[null===(u=a.default)||void 0===u?void 0:u.call(a)]),A||h.value&&_?F:null])}}}),sN=GP,lN=YP,uN=aN,cN=$P,fN=(0,a.A)(XP,{Header:GP,Footer:YP,Content:$P,Sider:aN,install:function(e){return e.component(XP.name,XP),e.component(GP.name,GP),e.component(YP.name,YP),e.component(aN.name,aN),e.component($P.name,$P),e}}),dN=["class","style"],hN=function(){return{prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Fe.A.any,delay:Number,indicator:Fe.A.any}},pN=null;function vN(e,t){return!!e&&!!t&&!isNaN(Number(t))}function gN(e){var t=e.indicator;pN="function"===typeof t?t:function(){return(0,s.bF)(t,null,null)}}var mN=(0,s.pM)({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Pe(hN(),{size:"default",spinning:!0,wrapperClassName:""}),setup:function(){return{originalUpdateSpinning:null,configProvider:(0,s.WQ)("configProvider",al.VG)}},data:function(){var e=this.spinning,t=this.delay,n=vN(e,t);return{sSpinning:e&&!n}},created:function(){this.originalUpdateSpinning=this.updateSpinning,this.debouncifyUpdateSpinning(this.$props)},mounted:function(){this.updateSpinning()},updated:function(){var e=this;(0,s.dY)((function(){e.debouncifyUpdateSpinning(),e.updateSpinning()}))},beforeUnmount:function(){this.cancelExistingSpin()},methods:{debouncifyUpdateSpinning:function(e){var t=e||this.$props,n=t.delay;n&&(this.cancelExistingSpin(),this.updateSpinning=(0,zb.A)(this.originalUpdateSpinning,n))},updateSpinning:function(){var e=this.spinning,t=this.sSpinning;t!==e&&(this.sSpinning=e)},cancelExistingSpin:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()},renderIndicator:function(e){var t="".concat(e,"-dot"),n=(0,B.QQ)(this,"indicator");return null===n?null:(Array.isArray(n)&&(n=1===n.length?n[0]:n),(0,s.vv)(n)?(0,s.E3)(n,{class:t}):pN&&(0,s.vv)(pN())?(0,s.E3)(pN(),{class:t}):(0,s.bF)("span",{class:"".concat(t," ").concat(e,"-dot-spin")},[(0,s.bF)("i",{class:"".concat(e,"-dot-item")},null),(0,s.bF)("i",{class:"".concat(e,"-dot-item")},null),(0,s.bF)("i",{class:"".concat(e,"-dot-item")},null),(0,s.bF)("i",{class:"".concat(e,"-dot-item")},null)]))}},render:function(){var e,t,n,r=this.$props,a=r.size,l=r.prefixCls,u=r.tip,c=void 0===u?null===(e=(t=this.$slots).tip)||void 0===e?void 0:e.call(t):u,f=r.wrapperClassName,d=this.$attrs,h=d.class,p=d.style,v=(0,je.A)(d,dN),g=this.configProvider,m=g.getPrefixCls,y=g.direction,b=m("spin",l),w=this.sSpinning,A=(n={},(0,i.A)(n,b,!0),(0,i.A)(n,"".concat(b,"-sm"),"small"===a),(0,i.A)(n,"".concat(b,"-lg"),"large"===a),(0,i.A)(n,"".concat(b,"-spinning"),w),(0,i.A)(n,"".concat(b,"-show-text"),!!c),(0,i.A)(n,"".concat(b,"-rtl"),"rtl"===y),(0,i.A)(n,h,!!h),n),x=(0,s.bF)("div",(0,o.A)((0,o.A)({},v),{},{style:p,class:A}),[this.renderIndicator(b),c?(0,s.bF)("div",{class:"".concat(b,"-text")},[c]):null]),C=(0,B.$c)(this);if(C&&C.length){var S,_=(S={},(0,i.A)(S,"".concat(b,"-container"),!0),(0,i.A)(S,"".concat(b,"-blur"),w),S);return(0,s.bF)("div",{class:["".concat(b,"-nested-loading"),f]},[w&&(0,s.bF)("div",{key:"loading"},[x]),(0,s.bF)("div",{class:_,key:"container"},[C])])}return x}});mN.setDefaultIndicator=gN,mN.install=function(e){return e.component(mN.name,mN),e};var yN=mN,bN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},wN=bN;function AN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xN(e,t,n[t])}))}return e}function xN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CN=function(e,t){var n=AN({},e,t.attrs);return(0,s.bF)(Ya.A,AN({},n,{icon:wN}),null)};CN.displayName="DoubleLeftOutlined",CN.inheritAttrs=!1;var SN=CN,_N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},kN=_N;function EN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ON(e,t,n[t])}))}return e}function ON(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FN=function(e,t){var n=EN({},e,t.attrs);return(0,s.bF)(Ya.A,EN({},n,{icon:kN}),null)};FN.displayName="DoubleRightOutlined",FN.inheritAttrs=!1;var TN=FN,PN=(0,s.pM)({compatConfig:{MODE:3},inheritAttrs:!1,props:xs(),Option:Es.Option,setup:function(e,t){var n=t.attrs,r=t.slots;return function(){var t=(0,o.A)((0,o.A)({},e),{},{size:"small"},n);return(0,s.bF)(Es,t,r)}}}),NN=(0,s.pM)({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:Fe.A.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:function(){}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup:function(e,t){var n=t.emit,r=t.attrs,o=function(){n("click",e.page)},a=function(t){n("keypress",t,o,e.page)};return function(){var t,n=e.showTitle,u=e.page,c=e.itemRender,f=r.class,d=r.style,h="".concat(e.rootPrefixCls,"-item"),p=(0,l.A)(h,"".concat(h,"-").concat(e.page),(t={},(0,i.A)(t,"".concat(h,"-active"),e.active),(0,i.A)(t,"".concat(h,"-disabled"),!e.page),t),f);return(0,s.bF)("li",{onClick:o,onKeypress:a,title:n?String(u):null,tabindex:"0",class:p,style:d},[c({page:u,type:"page",originalElement:(0,s.bF)("a",{rel:"nofollow"},[u])})])}}}),MN={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},LN=(0,s.pM)({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:Fe.A.any,current:Number,pageSizeOptions:Fe.A.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:Fe.A.object,rootPrefixCls:String,selectPrefixCls:String,goButton:Fe.A.any},setup:function(e){var t=(0,s.KR)(""),n=(0,s.EW)((function(){return!t.value||isNaN(t.value)?void 0:Number(t.value)})),r=function(t){return"".concat(t.value," ").concat(e.locale.items_per_page)},o=function(e){var n=e.target,r=n.value,o=n.composing;e.isComposing||o||t.value===r||(t.value=r)},i=function(r){var o=e.goButton,i=e.quickGo,a=e.rootPrefixCls;o||""===t.value||(r.relatedTarget&&(r.relatedTarget.className.indexOf("".concat(a,"-item-link"))>=0||r.relatedTarget.className.indexOf("".concat(a,"-item"))>=0)||i(n.value),t.value="")},a=function(r){""!==t.value&&(r.keyCode!==MN.ENTER&&"click"!==r.type||(e.quickGo(n.value),t.value=""))},l=(0,s.EW)((function(){var t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){var n=isNaN(Number(e))?0:Number(e),r=isNaN(Number(t))?0:Number(t);return n-r}))}));return function(){var n=e.rootPrefixCls,u=e.locale,c=e.changeSize,f=e.quickGo,d=e.goButton,h=e.selectComponentClass,p=e.selectPrefixCls,v=e.pageSize,g=e.disabled,m="".concat(n,"-options"),y=null,b=null,w=null;if(!c&&!f)return null;if(c&&h){var A=e.buildOptionText||r,x=l.value.map((function(e,t){return(0,s.bF)(h.Option,{key:t,value:e},{default:function(){return[A({value:e})]}})}));y=(0,s.bF)(h,{disabled:g,prefixCls:p,showSearch:!1,class:"".concat(m,"-size-changer"),optionLabelProp:"children",value:(v||l.value[0]).toString(),onChange:function(e){return c(Number(e))},getPopupContainer:function(e){return e.parentNode}},{default:function(){return[x]}})}return f&&(d&&(w="boolean"===typeof d?(0,s.bF)("button",{type:"button",onClick:a,onKeyup:a,disabled:g,class:"".concat(m,"-quick-jumper-button")},[u.jump_to_confirm]):(0,s.bF)("span",{onClick:a,onKeyup:a},[d])),b=(0,s.bF)("div",{class:"".concat(m,"-quick-jumper")},[u.jump_to,(0,s.bo)((0,s.bF)("input",{disabled:g,type:"text",value:t.value,onInput:o,onChange:o,onKeyup:a,onBlur:i},null),[[zo]]),u.page,w])),(0,s.bF)("li",{class:"".concat(m)},[y,b])}}}),IN=n(48931),RN=["class"];function jN(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}function DN(e){var t=e.originalElement;return t}function BN(e,t,n){var r="undefined"===typeof e?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}var WN=(0,s.pM)({compatConfig:{MODE:3},name:"Pagination",mixins:[po],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:Fe.A.string.def("rc-pagination"),selectPrefixCls:Fe.A.string.def("rc-select"),current:Number,defaultCurrent:Fe.A.number.def(1),total:Fe.A.number.def(0),pageSize:Number,defaultPageSize:Fe.A.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:Fe.A.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:Fe.A.oneOfType([Fe.A.looseBool,Fe.A.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:Fe.A.arrayOf(Fe.A.oneOfType([Fe.A.number,Fe.A.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:Fe.A.object.def(IN.A),itemRender:Fe.A.func.def(DN),prevIcon:Fe.A.any,nextIcon:Fe.A.any,jumpPrevIcon:Fe.A.any,jumpNextIcon:Fe.A.any,totalBoundaryShowSizeChanger:Fe.A.number.def(50)},data:function(){var e=this.$props,t=Ml([this.current,this.defaultCurrent]),n=Ml([this.pageSize,this.defaultPageSize]);return t=Math.min(t,BN(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current:function(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize:function(e){var t={},n=this.stateCurrent,r=BN(e,this.$data,this.$props);n=n>r?r:n,(0,B.cK)(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent:function(e,t){var n=this;this.$nextTick((function(){if(n.$refs.paginationNode){var e=n.$refs.paginationNode.querySelector(".".concat(n.prefixCls,"-item-").concat(t));e&&document.activeElement===e&&e.blur()}}))},total:function(){var e={},t=BN(this.pageSize,this.$data,this.$props);if((0,B.cK)(this,"current")){var n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{var r=this.stateCurrent;r=0===r&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=r}this.setState(e)}},methods:{getJumpPrevPage:function(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage:function(){return Math.min(BN(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon:function(e,t){var n=this.$props.prefixCls,r=(0,B.QQ)(this,e,this.$props)||(0,s.bF)("button",{type:"button","aria-label":t,class:"".concat(n,"-item-link")},null);return r},getValidValue:function(e){var t,n=e.target.value,r=BN(void 0,this.$data,this.$props),o=this.$data.stateCurrentInputValue;return t=""===n?n:isNaN(Number(n))?o:n>=r?r:Number(n),t},isValid:function(e){return jN(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper:function(){var e=this.$props,t=e.showQuickJumper,n=e.pageSize,r=e.total;return!(r<=n)&&t},handleKeyDown:function(e){e.keyCode!==MN.ARROW_UP&&e.keyCode!==MN.ARROW_DOWN||e.preventDefault()},handleKeyUp:function(e){if(!e.isComposing&&!e.target.composing){var t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===MN.ENTER?this.handleChange(t):e.keyCode===MN.ARROW_UP?this.handleChange(t-1):e.keyCode===MN.ARROW_DOWN&&this.handleChange(t+1)}},changePageSize:function(e){var t=this.stateCurrent,n=t,r=BN(e,this.$data,this.$props);t=t>r?r:t,0===r&&(t=this.stateCurrent),"number"===typeof e&&((0,B.cK)(this,"pageSize")||this.setState({statePageSize:e}),(0,B.cK)(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange:function(e){var t=this.$props.disabled,n=e;if(this.isValid(n)&&!t){var r=BN(void 0,this.$data,this.$props);return n>r?n=r:n<1&&(n=1),(0,B.cK)(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev:function(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next:function(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev:function(){this.handleChange(this.getJumpPrevPage())},jumpNext:function(){this.handleChange(this.getJumpNextPage())},hasPrev:function(){return this.stateCurrent>1},hasNext:function(){return this.stateCurrent<BN(void 0,this.$data,this.$props)},getShowSizeChanger:function(){var e=this.$props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>r},runIfEnter:function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}},runIfEnterPrev:function(e){this.runIfEnter(e,this.prev)},runIfEnterNext:function(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev:function(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext:function(e){this.runIfEnter(e,this.jumpNext)},handleGoTO:function(e){e.keyCode!==MN.ENTER&&"click"!==e.type||this.handleChange(this.stateCurrentInputValue)},renderPrev:function(e){var t=this.$props.itemRender,n=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),r=!this.hasPrev();return(0,B.zO)(n)?Bn(n,r?{disabled:r}:{}):n},renderNext:function(e){var t=this.$props.itemRender,n=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),r=!this.hasNext();return(0,B.zO)(n)?Bn(n,r?{disabled:r}:{}):n}},render:function(){var e,t=this.$props,n=t.prefixCls,r=t.disabled,a=t.hideOnSinglePage,u=t.total,c=t.locale,f=t.showQuickJumper,d=t.showLessItems,h=t.showTitle,p=t.showTotal,v=t.simple,g=t.itemRender,m=t.showPrevNextJumpers,y=t.jumpPrevIcon,b=t.jumpNextIcon,w=t.selectComponentClass,A=t.selectPrefixCls,x=t.pageSizeOptions,C=this.stateCurrent,S=this.statePageSize,_=(0,B.fR)(this.$attrs).extraAttrs,k=_.class,E=(0,je.A)(_,RN);if(!0===a&&this.total<=S)return null;var O=BN(void 0,this.$data,this.$props),F=[],T=null,P=null,N=null,M=null,L=null,I=f&&f.goButton,R=d?1:2,j=C-1>0?C-1:0,D=C+1<O?C+1:O,W=this.hasPrev(),z=this.hasNext();if(v){if(I){L="boolean"===typeof I?(0,s.bF)("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[c.jump_to_confirm]):(0,s.bF)("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[I]);(function(){})();L=(0,s.bF)("li",{title:h?"".concat(c.jump_to).concat(C,"/").concat(O):null,class:"".concat(n,"-simple-pager")},[L])}return(0,s.bF)("ul",(0,o.A)({class:(0,l.A)("".concat(n," ").concat(n,"-simple"),(0,i.A)({},"".concat(n,"-disabled"),r),k)},E),[(0,s.bF)("li",{title:h?c.prev_page:null,onClick:this.prev,tabindex:W?0:null,onKeypress:this.runIfEnterPrev,class:(0,l.A)("".concat(n,"-prev"),(0,i.A)({},"".concat(n,"-disabled"),!W)),"aria-disabled":!W},[this.renderPrev(j)]),(0,s.bF)("li",{title:h?"".concat(C,"/").concat(O):null,class:"".concat(n,"-simple-pager")},[(0,s.bo)((0,s.bF)("input",{type:"text",value:this.stateCurrentInputValue,disabled:r,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),[[zo]]),(0,s.bF)("span",{class:"".concat(n,"-slash")},[(0,s.eW)("／")]),O]),(0,s.bF)("li",{title:h?c.next_page:null,onClick:this.next,tabindex:z?0:null,onKeypress:this.runIfEnterNext,class:(0,l.A)("".concat(n,"-next"),(0,i.A)({},"".concat(n,"-disabled"),!z)),"aria-disabled":!z},[this.renderNext(D)]),L])}if(O<=3+2*R){var U={locale:c,rootPrefixCls:n,showTitle:h,itemRender:g,onClick:this.handleChange,onKeypress:this.runIfEnter};O||F.push((0,s.bF)(NN,(0,o.A)((0,o.A)({},U),{},{key:"noPager",page:1,class:"".concat(n,"-item-disabled")}),null));for(var K=1;K<=O;K+=1){var V=C===K;F.push((0,s.bF)(NN,(0,o.A)((0,o.A)({},U),{},{key:K,page:K,active:V}),null))}}else{var H=d?c.prev_3:c.prev_5,q=d?c.next_3:c.next_5;m&&(T=(0,s.bF)("li",{title:this.showTitle?H:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:(0,l.A)("".concat(n,"-jump-prev"),(0,i.A)({},"".concat(n,"-jump-prev-custom-icon"),!!y))},[g({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),P=(0,s.bF)("li",{title:this.showTitle?q:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:(0,l.A)("".concat(n,"-jump-next"),(0,i.A)({},"".concat(n,"-jump-next-custom-icon"),!!b))},[g({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),M=(0,s.bF)(NN,{locale:c,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeypress:this.runIfEnter,key:O,page:O,active:!1,showTitle:h,itemRender:g},null),N=(0,s.bF)(NN,{locale:c,rootPrefixCls:n,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:h,itemRender:g},null);var G=Math.max(1,C-R),Y=Math.min(C+R,O);C-1<=R&&(Y=1+2*R),O-C<=R&&(G=O-2*R);for(var $=G;$<=Y;$+=1){var X=C===$;F.push((0,s.bF)(NN,{locale:c,rootPrefixCls:n,onClick:this.handleChange,onKeypress:this.runIfEnter,key:$,page:$,active:X,showTitle:h,itemRender:g},null))}C-1>=2*R&&3!==C&&(F[0]=(0,s.bF)(NN,{locale:c,rootPrefixCls:n,onClick:this.handleChange,onKeypress:this.runIfEnter,key:G,page:G,class:"".concat(n,"-item-after-jump-prev"),active:!1,showTitle:this.showTitle,itemRender:g},null),F.unshift(T)),O-C>=2*R&&C!==O-2&&(F[F.length-1]=(0,s.bF)(NN,{locale:c,rootPrefixCls:n,onClick:this.handleChange,onKeypress:this.runIfEnter,key:Y,page:Y,class:"".concat(n,"-item-before-jump-next"),active:!1,showTitle:this.showTitle,itemRender:g},null),F.push(P)),1!==G&&F.unshift(N),Y!==O&&F.push(M)}var J=null;p&&(J=(0,s.bF)("li",{class:"".concat(n,"-total-text")},[p(u,[0===u?0:(C-1)*S+1,C*S>u?u:C*S])]));var Q=!W||!O,Z=!z||!O,ee=this.buildOptionText||this.$slots.buildOptionText;return(0,s.bF)("ul",(0,o.A)((0,o.A)({unselectable:"on",ref:"paginationNode"},E),{},{class:(0,l.A)((e={},(0,i.A)(e,"".concat(n),!0),(0,i.A)(e,"".concat(n,"-disabled"),r),e),k)}),[J,(0,s.bF)("li",{title:h?c.prev_page:null,onClick:this.prev,tabindex:Q?null:0,onKeypress:this.runIfEnterPrev,class:(0,l.A)("".concat(n,"-prev"),(0,i.A)({},"".concat(n,"-disabled"),Q)),"aria-disabled":Q},[this.renderPrev(j)]),F,(0,s.bF)("li",{title:h?c.next_page:null,onClick:this.next,tabindex:Z?null:0,onKeypress:this.runIfEnterNext,class:(0,l.A)("".concat(n,"-next"),(0,i.A)({},"".concat(n,"-disabled"),Z)),"aria-disabled":Z},[this.renderNext(D)]),(0,s.bF)(LN,{disabled:r,locale:c,rootPrefixCls:n,selectComponentClass:w,selectPrefixCls:A,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:C,pageSize:S,pageSizeOptions:x,buildOptionText:ee||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:I},null)])}}),zN=n(15709),UN=["size","itemRender","buildOptionText","selectComponentClass","responsive"],KN=function(){return{total:Number,defaultCurrent:Number,disabled:{type:Boolean,default:void 0},current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:{type:Boolean,default:void 0},showSizeChanger:{type:Boolean,default:void 0},pageSizeOptions:Array,buildOptionText:Function,showQuickJumper:{type:[Boolean,Object],default:void 0},showTotal:Function,size:String,simple:{type:Boolean,default:void 0},locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Function,role:String,responsive:Boolean,showLessItems:{type:Boolean,default:void 0},onChange:Function,onShowSizeChange:Function,"onUpdate:current":Function,"onUpdate:pageSize":Function}},VN=(0,s.pM)({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:KN(),setup:function(e,t){var n=t.slots,r=t.attrs,a=(0,se.A)("pagination",e),u=a.prefixCls,c=a.configProvider,f=a.direction,d=(0,s.EW)((function(){return c.getPrefixCls("select",e.selectPrefixCls)})),h=il(),p=(0,xg.n)("Pagination",zN.A,(0,s.lW)(e,"locale")),v=(0,Re.A)(p,1),g=v[0],m=function(e){var t=(0,s.bF)("span",{class:"".concat(e,"-item-ellipsis")},[(0,s.eW)("•••")]),n=(0,s.bF)("button",{class:"".concat(e,"-item-link"),type:"button",tabindex:-1},[(0,s.bF)(ix,null,null)]),r=(0,s.bF)("button",{class:"".concat(e,"-item-link"),type:"button",tabindex:-1},[(0,s.bF)(bc,null,null)]),o=(0,s.bF)("a",{rel:"nofollow",class:"".concat(e,"-item-link")},[(0,s.bF)("div",{class:"".concat(e,"-item-container")},[(0,s.bF)(SN,{class:"".concat(e,"-item-link-icon")},null),t])]),i=(0,s.bF)("a",{rel:"nofollow",class:"".concat(e,"-item-link")},[(0,s.bF)("div",{class:"".concat(e,"-item-container")},[(0,s.bF)(TN,{class:"".concat(e,"-item-link-icon")},null),t])]);if("rtl"===f.value){var a=[r,n];n=a[0],r=a[1];var l=[i,o];o=l[0],i=l[1]}return{prevIcon:n,nextIcon:r,jumpPrevIcon:o,jumpNextIcon:i}};return function(){var t,a=e.size,c=e.itemRender,p=void 0===c?n.itemRender:c,v=e.buildOptionText,y=void 0===v?n.buildOptionText:v,b=e.selectComponentClass,w=e.responsive,A=(0,je.A)(e,UN),x="small"===a||!(null===(t=h.value)||void 0===t||!t.xs||a||!w),C=(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},A),m(u.value)),{},{prefixCls:u.value,selectPrefixCls:d.value,selectComponentClass:b||(x?PN:Es),locale:g.value,buildOptionText:y},r),{},{class:(0,l.A)((0,i.A)({mini:x},"".concat(u.value,"-rtl"),"rtl"===f.value),r.class),itemRender:p});return(0,s.bF)(WN,C,null)}}}),HN=(0,$.GU)(VN),qN=function(){return{avatar:Fe.A.any,description:Fe.A.any,prefixCls:String,title:Fe.A.any}},GN=(0,s.pM)({compatConfig:{MODE:3},name:"AListItemMeta",props:qN(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:["avatar","description","title"],setup:function(e,t){var n=t.slots,r=(0,se.A)("list",e),o=r.prefixCls;return function(){var t,r,i,a,l,u,c="".concat(o.value,"-item-meta"),f=null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n),d=null!==(i=e.description)&&void 0!==i?i:null===(a=n.description)||void 0===a?void 0:a.call(n),h=null!==(l=e.avatar)&&void 0!==l?l:null===(u=n.avatar)||void 0===u?void 0:u.call(n),p=(0,s.bF)("div",{class:"".concat(o.value,"-item-meta-content")},[f&&(0,s.bF)("h4",{class:"".concat(o.value,"-item-meta-title")},[f]),d&&(0,s.bF)("div",{class:"".concat(o.value,"-item-meta-description")},[d])]);return(0,s.bF)("div",{class:c},[h&&(0,s.bF)("div",{class:"".concat(o.value,"-item-meta-avatar")},[h]),(f||d)&&p])}}}),YN=Symbol("ListContextKey"),$N=["class"],XN=function(){return{prefixCls:String,extra:Fe.A.any,actions:Fe.A.array,grid:Object,colStyle:{type:Object,default:void 0}}},JN=(0,s.pM)({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:GN,props:XN(),slots:["actions","extra"],setup:function(e,t){var n=t.slots,r=t.attrs,a=(0,s.WQ)(YN,{grid:(0,s.KR)(),itemLayout:(0,s.KR)()}),u=a.itemLayout,c=a.grid,f=(0,se.A)("list",e),d=f.prefixCls,h=function(){var e,t,r=(null===(e=n.default)||void 0===e?void 0:e.call(n))||[];return r.forEach((function(e){(0,B.K6)(e)&&!(0,B.sG)(e)&&(t=!0)})),t&&r.length>1},p=function(){var t,r,o=null!==(t=e.extra)&&void 0!==t?t:null===(r=n.extra)||void 0===r?void 0:r.call(n);return"vertical"===u.value?!!o:!h()};return function(){var t,a,f,h,v,g=r.class,m=(0,je.A)(r,$N),y=d.value,b=null!==(t=e.extra)&&void 0!==t?t:null===(a=n.extra)||void 0===a?void 0:a.call(n),w=null===(f=n.default)||void 0===f?void 0:f.call(n),A=null!==(h=e.actions)&&void 0!==h?h:(0,B.MI)(null===(v=n.actions)||void 0===v?void 0:v.call(n));A=A&&!Array.isArray(A)?[A]:A;var x=A&&A.length>0&&(0,s.bF)("ul",{class:"".concat(y,"-item-action"),key:"actions"},[A.map((function(e,t){return(0,s.bF)("li",{key:"".concat(y,"-item-action-").concat(t)},[e,t!==A.length-1&&(0,s.bF)("em",{class:"".concat(y,"-item-action-split")},null)])}))]),C=c.value?"div":"li",S=(0,s.bF)(C,(0,o.A)((0,o.A)({},m),{},{class:(0,l.A)("".concat(y,"-item"),(0,i.A)({},"".concat(y,"-item-no-flex"),!p()),g)}),{default:function(){return["vertical"===u.value&&b?[(0,s.bF)("div",{class:"".concat(y,"-item-main"),key:"content"},[w,x]),(0,s.bF)("div",{class:"".concat(y,"-item-extra"),key:"extra"},[b])]:[w,x,Bn(b,{key:"extra"})]]}});return c.value?(0,s.bF)(ub,{flex:1,style:e.colStyle},{default:function(){return[S]}}):S}}}),QN=function(){return{bordered:{type:Boolean,default:void 0},dataSource:Fe.A.array,extra:Fe.A.any,grid:{type:Object,default:void 0},itemLayout:String,loading:{type:[Boolean,Object],default:void 0},loadMore:Fe.A.any,pagination:{type:[Boolean,Object],default:void 0},prefixCls:String,rowKey:[String,Number,Function],renderItem:Function,size:String,split:{type:Boolean,default:void 0},header:Fe.A.any,footer:Fe.A.any,locale:{type:Object}}},ZN=(0,s.pM)({compatConfig:{MODE:3},name:"AList",Item:JN,props:Pe(QN(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:["extra","loadMore","renderItem","header","footer"],setup:function(e,t){var n,r,a=t.slots;(0,s.Gt)(YN,{grid:(0,s.lW)(e,"grid"),itemLayout:(0,s.lW)(e,"itemLayout")});var l={current:1,total:0},u=(0,se.A)("list",e),c=u.prefixCls,f=u.direction,d=u.renderEmpty,h=(0,s.EW)((function(){return e.pagination&&"object"===(0,Ie.A)(e.pagination)?e.pagination:{}})),p=(0,s.KR)(null!==(n=h.value.defaultCurrent)&&void 0!==n?n:1),v=(0,s.KR)(null!==(r=h.value.defaultPageSize)&&void 0!==r?r:10);(0,s.wB)(h,(function(){"current"in h.value&&(p.value=h.value.current),"pageSize"in h.value&&(v.value=h.value.pageSize)}));var g=[],m=function(e){return function(t,n){p.value=t,v.value=n,h.value[e]&&h.value[e](t,n)}},y=m("onChange"),b=m("onShowSizeChange"),w=function(t){var n;return(0,s.bF)("div",{class:"".concat(c.value,"-empty-text")},[(null===(n=e.locale)||void 0===n?void 0:n.emptyText)||t("List")])},A=(0,s.EW)((function(){return"boolean"===typeof e.loading?{spinning:e.loading}:e.loading})),x=(0,s.EW)((function(){return A.value&&A.value.spinning})),C=(0,s.EW)((function(){var t="";switch(e.size){case"large":t="lg";break;case"small":t="sm";break;default:break}return t})),S=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(c.value),!0),(0,i.A)(t,"".concat(c.value,"-vertical"),"vertical"===e.itemLayout),(0,i.A)(t,"".concat(c.value,"-").concat(C.value),C.value),(0,i.A)(t,"".concat(c.value,"-split"),e.split),(0,i.A)(t,"".concat(c.value,"-bordered"),e.bordered),(0,i.A)(t,"".concat(c.value,"-loading"),x.value),(0,i.A)(t,"".concat(c.value,"-grid"),!!e.grid),(0,i.A)(t,"".concat(c.value,"-rtl"),"rtl"===f.value),t})),_=(0,s.EW)((function(){var t=(0,o.A)((0,o.A)({},l),{},{total:e.dataSource.length,current:p.value,pageSize:v.value},e.pagination||{}),n=Math.ceil(t.total/t.pageSize);return t.current>n&&(t.current=n),t})),k=(0,s.EW)((function(){var t=(0,z.A)(e.dataSource);return e.pagination&&e.dataSource.length>(_.value.current-1)*_.value.pageSize&&(t=(0,z.A)(e.dataSource).splice((_.value.current-1)*_.value.pageSize,_.value.pageSize)),t})),E=il(),O=fl((function(){for(var e=0;e<Js.length;e+=1){var t=Js[e];if(E.value[t])return t}})),F=(0,s.EW)((function(){if(e.grid){var t=O.value&&e.grid[O.value]?e.grid[O.value]:e.grid.column;return t?{width:"".concat(100/t,"%"),maxWidth:"".concat(100/t,"%")}:void 0}})),T=function(t,n){var r,o,i=null!==(r=e.renderItem)&&void 0!==r?r:a.renderItem;if(!i)return null;var s=(0,Ie.A)(e.rowKey);return o="function"===s?e.rowKey(t):"string"===s||"number"===s?t[e.rowKey]:t.key,o||(o="list-item-".concat(n)),g[n]=o,i({item:t,index:n})};return function(){var t,n,r,l,u,f,h,p=null!==(t=e.loadMore)&&void 0!==t?t:null===(n=a.loadMore)||void 0===n?void 0:n.call(a),v=null!==(r=e.footer)&&void 0!==r?r:null===(l=a.footer)||void 0===l?void 0:l.call(a),m=null!==(u=e.header)&&void 0!==u?u:null===(f=a.header)||void 0===f?void 0:f.call(a),C=(0,B.MI)(null===(h=a.default)||void 0===h?void 0:h.call(a)),E=!!(p||e.pagination||v),O=(0,o.A)((0,o.A)({},S.value),{},(0,i.A)({},"".concat(c.value,"-something-after-last-item"),E)),P=e.pagination?(0,s.bF)("div",{class:"".concat(c.value,"-pagination")},[(0,s.bF)(HN,(0,o.A)((0,o.A)({},_.value),{},{onChange:y,onShowSizeChange:b}),null)]):null,N=x.value&&(0,s.bF)("div",{style:{minHeight:"53px"}},null);if(k.value.length>0){g.length=0;var M=k.value.map((function(e,t){return T(e,t)})),L=M.map((function(e,t){return(0,s.bF)("div",{key:g[t],style:F.value},[e])}));N=e.grid?(0,s.bF)(ib,{gutter:e.grid.gutter},{default:function(){return[L]}}):(0,s.bF)("ul",{class:"".concat(c.value,"-items")},[M])}else C.length||x.value||(N=w(d.value));var I=_.value.position||"bottom";return(0,s.bF)("div",{class:O},[("top"===I||"both"===I)&&P,m&&(0,s.bF)("div",{class:"".concat(c.value,"-header")},[m]),(0,s.bF)(yN,A.value,{default:function(){return[N,C]}}),v&&(0,s.bF)("div",{class:"".concat(c.value,"-footer")},[v]),p||("bottom"===I||"both"===I)&&P])}}});ZN.install=function(e){return e.component(ZN.name,ZN),e.component(ZN.Item.name,ZN.Item),e.component(ZN.Item.Meta.name,ZN.Item.Meta),e};var eM=ZN,tM=n(18787);function nM(e){var t=e.selectionStart;return e.value.slice(0,t)}function rM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Array.isArray(t)?t:[t];return n.reduce((function(t,n){var r=e.lastIndexOf(n);return r>t.location?{location:r,prefix:n}:t}),{location:-1,prefix:""})}function oM(e){return(e||"").toLowerCase()}function iM(e,t,n){var r=e[0];if(!r||r===n)return e;for(var o=e,i=t.length,a=0;a<i;a+=1){if(oM(o[a])!==oM(t[a])){o=o.slice(a);break}a===i-1&&(o=o.slice(i))}return o}function aM(e,t){var n=t.measureLocation,r=t.prefix,o=t.targetText,i=t.selectionStart,a=t.split,s=e.slice(0,n);s[s.length-a.length]===a&&(s=s.slice(0,s.length-a.length)),s&&(s="".concat(s).concat(a));var l=iM(e.slice(i),o.slice(i-n-r.length),a);l.slice(0,a.length)===a&&(l=l.slice(a.length));var u="".concat(s).concat(r).concat(o).concat(a);return{text:"".concat(u).concat(l),selectionLocation:u.length}}function sM(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}function lM(e,t){var n=t.split;return!n||-1===e.indexOf(n)}function uM(e,t){var n=t.value,r=void 0===n?"":n,o=e.toLowerCase();return-1!==r.toLowerCase().indexOf(o)}var cM=Symbol("MentionsContextKey"),fM=cM;function dM(){}var hM=(0,s.pM)({compatConfig:{MODE:3},name:"DropdownMenu",props:{prefixCls:String,options:{type:Array,default:function(){return[]}}},slots:["notFoundContent","option"],setup:function(e,t){var n,r=t.slots,o=(0,s.WQ)(fM,{activeIndex:(0,s.KR)(),loading:(0,s.KR)(!1)}),i=o.activeIndex,a=o.setActiveIndex,l=o.selectOption,u=o.onFocus,c=void 0===u?dM:u,f=o.loading,d=function(e){clearTimeout(n),n=setTimeout((function(){c(e)}))};return(0,s.xo)((function(){clearTimeout(n)})),function(){var t,n=e.prefixCls,o=e.options,u=o[i.value]||{};return(0,s.bF)(qf,{prefixCls:"".concat(n,"-menu"),activeKey:u.value,onSelect:function(e){var t=e.key,n=o.find((function(e){var n=e.value;return n===t}));l(n)},onMousedown:d},{default:function(){return[!f.value&&o.map((function(e,t){var n,o,i=e.value,l=e.disabled,u=e.label,c=void 0===u?e.value:u;return(0,s.bF)(Af,{key:i,disabled:l,onMouseenter:function(){a(t)}},{default:function(){return[null!==(n=null===(o=r.option)||void 0===o?void 0:o.call(r,e))&&void 0!==n?n:"function"===typeof c?c({value:i,disabled:l}):c]}})})),f.value||0!==o.length?null:(0,s.bF)(Af,{key:"notFoundContent",disabled:!0},{default:function(){return[null===(t=r.notFoundContent)||void 0===t?void 0:t.call(r)]}}),f.value&&(0,s.bF)(Af,{key:"loading",disabled:!0},{default:function(){return[(0,s.bF)(yN,{size:"small"},null)]}})]}})}}}),pM={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},vM=(0,s.pM)({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:function(){return[]}},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String},slots:["notFoundContent","option"],setup:function(e,t){var n=t.slots,r=function(){return"".concat(e.prefixCls,"-dropdown")},o=function(){var t=e.options;return(0,s.bF)(hM,{prefixCls:r(),options:t},{notFoundContent:n.notFoundContent,option:n.option})},i=(0,s.EW)((function(){var t=e.placement,n=e.direction,r="topRight";return r="rtl"===n?"top"===t?"topLeft":"bottomLeft":"top"===t?"topRight":"bottomRight",r}));return function(){var t=e.visible,a=e.transitionName,l=e.getPopupContainer;return(0,s.bF)(Eo,{prefixCls:r(),popupVisible:t,popup:o(),popupPlacement:i.value,popupTransitionName:a,builtinPlacements:pM,getPopupContainer:l},{default:n.default})}}}),gM=(0,$.PV)("top","bottom"),mM={autofocus:{type:Boolean,default:void 0},prefix:Fe.A.oneOfType([Fe.A.string,Fe.A.arrayOf(Fe.A.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:Fe.A.oneOf(gM),character:Fe.A.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:{type:Array,default:function(){}},loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},yM=(0,o.A)({},mM),bM={prefix:"@",split:" ",rows:1,validateSearch:lM,filterOption:function(){return uM}},wM=(Pe(yM,bM),["prefixCls","placement","transitionName","getPopupContainer","direction"]),AM=["class","style"];function xM(){}var CM=(0,s.pM)({compatConfig:{MODE:3},name:"Mentions",inheritAttrs:!1,props:Pe(yM,bM),slots:["notFoundContent","option"],emits:["change","select","search","focus","blur","pressenter"],setup:function(e,t){var n=t.emit,r=t.attrs,i=t.expose,u=t.slots,c=(0,s.KR)(null),f=(0,s.KR)(null),d=(0,s.KR)(),h=(0,s.Kh)({value:e.value||"",measuring:!1,measureLocation:0,measureText:null,measurePrefix:"",activeIndex:0,isFocus:!1});(0,s.nT)((function(){h.value=e.value}));var p=function(e){n("change",e)},v=function(e){var t=e.target,n=t.value,r=t.composing,o=e.isComposing;o||r||p(n)},g=function(e,t,n){(0,a.A)(h,{measuring:!0,measureText:e,measurePrefix:t,measureLocation:n,activeIndex:0})},m=function(e){(0,a.A)(h,{measuring:!1,measureLocation:0,measureText:null}),null===e||void 0===e||e()},y=function(e){var t=e.which;if(h.measuring)if(t===Mo.UP||t===Mo.DOWN){var n=O.value.length,r=t===Mo.UP?-1:1,o=(h.activeIndex+r+n)%n;h.activeIndex=o,e.preventDefault()}else if(t===Mo.ESC)m();else if(t===Mo.ENTER){if(e.preventDefault(),!O.value.length)return void m();var i=O.value[h.activeIndex];_(i)}},b=function(t){var r=t.key,o=t.which,i=h.measureText,a=h.measuring,s=e.prefix,l=e.validateSearch,u=t.target;if(!u.composing){var c=nM(u),f=rM(c,s),d=f.location,p=f.prefix;if(-1===[Mo.ESC,Mo.UP,Mo.DOWN,Mo.ENTER].indexOf(o))if(-1!==d){var v=c.slice(d+p.length),y=l(v,e),b=!!E(v).length;y?(r===p||"Shift"===r||a||v!==i&&b)&&g(v,p,d):a&&m(),y&&n("search",v,p)}else a&&m()}},w=function(e){h.measuring||n("pressenter",e)},A=function(e){C(e)},x=function(e){S(e)},C=function(e){clearTimeout(d.value);var t=h.isFocus;!t&&e&&n("focus",e),h.isFocus=!0},S=function(e){d.value=setTimeout((function(){h.isFocus=!1,m(),n("blur",e)}),100)},_=function(t){var r=e.split,o=t.value,i=void 0===o?"":o,a=aM(h.value,{measureLocation:h.measureLocation,targetText:i,prefix:h.measurePrefix,selectionStart:f.value.selectionStart,split:r}),s=a.text,l=a.selectionLocation;p(s),m((function(){sM(f.value,l)})),n("select",t,h.measurePrefix)},k=function(e){h.activeIndex=e},E=function(t){var n=t||h.measureText||"",r=e.filterOption,o=e.options.filter((function(e){return!1===!!r||r(n,e)}));return o},O=(0,s.EW)((function(){return E()})),F=function(){f.value.focus()},T=function(){f.value.blur()};return i({blur:T,focus:F}),(0,s.Gt)(fM,{activeIndex:(0,s.lW)(h,"activeIndex"),setActiveIndex:k,selectOption:_,onFocus:C,onBlur:S,loading:(0,s.lW)(e,"loading")}),(0,s.$u)((function(){(0,s.dY)((function(){h.measuring&&(c.value.scrollTop=f.value.scrollTop)}))})),function(){var t=h.measureLocation,n=h.measurePrefix,i=h.measuring,a=e.prefixCls,d=e.placement,p=e.transitionName,g=e.getPopupContainer,m=e.direction,C=(0,je.A)(e,wM),S=r.class,_=r.style,k=(0,je.A)(r,AM),E=ce(C,["value","prefix","split","validateSearch","filterOption","options","loading"]),F=(0,o.A)((0,o.A)((0,o.A)({},E),k),{},{onChange:xM,onSelect:xM,value:h.value,onInput:v,onBlur:x,onKeydown:y,onKeyup:b,onFocus:A,onPressenter:w});return(0,s.bF)("div",{class:(0,l.A)(a,S),style:_},[(0,s.bo)((0,s.bF)("textarea",(0,o.A)({ref:f},F),null),[[zo]]),i&&(0,s.bF)("div",{ref:c,class:"".concat(a,"-measure")},[h.value.slice(0,t),(0,s.bF)(vM,{prefixCls:a,transitionName:p,placement:d,options:i?O.value:[],visible:!0,direction:m,getPopupContainer:g},{default:function(){return[(0,s.bF)("span",null,[n])]},notFoundContent:u.notFoundContent,option:u.option}),h.value.slice(t+n.length)])])}}}),SM=CM,_M={value:String,disabled:Boolean,label:[String,Number,Function]},kM={name:"Option",props:_M,render:function(e,t){var n,r=t.slots;return null===(n=r.default)||void 0===n?void 0:n.call(r)}},EM=((0,s.pM)((0,o.A)({compatConfig:{MODE:3}},kM)),["disabled","getPopupContainer","rows","id"]),OM=["class"],FM=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=void 0===n?"@":n,o=t.split,i=void 0===o?" ":o,a=Array.isArray(r)?r:[r];return e.split(i).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return a.some((function(n){var r=e.slice(0,n.length);return r===n&&(t=n,!0)})),null!==t?{prefix:t,value:e.slice(t.length)}:null})).filter((function(e){return!!e&&!!e.value}))},TM=function(){return(0,o.A)((0,o.A)({},mM),{},{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:Fe.A.any,defaultValue:String,id:String})},PM=(0,s.pM)({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:TM(),slots:["notFoundContent","option"],setup:function(e,t){var n,r,a=t.slots,u=t.emit,c=t.attrs,f=t.expose,d=(0,se.A)("mentions",e),h=d.prefixCls,p=d.renderEmpty,v=d.direction,g=(0,s.KR)(!1),m=(0,s.KR)(null),y=(0,s.KR)(null!==(n=null!==(r=e.value)&&void 0!==r?r:e.defaultValue)&&void 0!==n?n:""),b=ws();(0,s.wB)((function(){return e.value}),(function(e){y.value=e}));var w=function(e){g.value=!0,u("focus",e)},A=function(e){g.value=!1,u("blur",e),b.onFieldBlur()},x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u.apply(void 0,["select"].concat(t)),g.value=!0},C=function(t){void 0===e.value&&(y.value=t),u("update:value",t),u("change",t),b.onFieldChange()},S=function(){var t=e.notFoundContent;return void 0!==t?t:a.notFoundContent?a.notFoundContent():p.value("Select")},_=function(){var e;return(0,B.MI)((null===(e=a.default)||void 0===e?void 0:e.call(a))||[]).map((function(e){var t,n;return(0,o.A)((0,o.A)({},(0,B.Oq)(e)),{},{label:null===(t=e.children)||void 0===t||null===(n=t.default)||void 0===n?void 0:n.call(t)})}))},k=function(){m.value.focus()},E=function(){m.value.blur()};return f({focus:k,blur:E}),function(){var t,n=e.disabled,r=e.getPopupContainer,u=e.rows,f=void 0===u?1:u,d=e.id,p=void 0===d?b.id.value:d,k=(0,je.A)(e,EM),E=c.class,O=(0,je.A)(c,OM),F=ce(k,["defaultValue","onUpdate:value","prefixCls"]),T=(0,l.A)(E,(t={},(0,i.A)(t,"".concat(h.value,"-disabled"),n),(0,i.A)(t,"".concat(h.value,"-focused"),g.value),(0,i.A)(t,"".concat(h.value,"-rtl"),"rtl"===v.value),t)),P=(0,o.A)((0,o.A)((0,o.A)({prefixCls:h.value},F),{},{disabled:n,direction:v.value,filterOption:e.filterOption,getPopupContainer:r,options:e.options||_(),class:T},O),{},{rows:f,onChange:C,onSelect:x,onFocus:w,onBlur:A,ref:m,value:y.value,id:p});return(0,s.bF)(SM,P,{notFoundContent:S,option:a.option})}}}),NM=(0,s.pM)((0,o.A)((0,o.A)({compatConfig:{MODE:3}},kM),{},{name:"AMentionsOption",props:_M})),MM=(0,a.A)(PM,{Option:NM,getMentions:FM,install:function(e){return e.component(PM.name,PM),e.component(NM.name,NM),e}}),LM=["prefixCls","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"],IM=null,RM=function(e){IM={x:e.pageX,y:e.pageY},setTimeout((function(){return IM=null}),100)};qy()&&Z(document.documentElement,"click",RM,!0);var jM=function(){return{prefixCls:String,visible:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Fe.A.any,closable:{type:Boolean,default:void 0},closeIcon:Fe.A.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:Fe.A.any,okText:Fe.A.any,okType:String,cancelText:Fe.A.any,icon:Fe.A.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Object,cancelButtonProps:Object,destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function}},DM=[],BM=(0,s.pM)({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Pe(jM(),{width:520,transitionName:"zoom",maskTransitionName:"fade",confirmLoading:!1,visible:!1,okType:"primary"}),setup:function(e,t){var n=t.emit,r=t.slots,a=t.attrs,u=(0,xg.n)("Modal"),c=(0,Re.A)(u,1),f=c[0],d=(0,se.A)("modal",e),h=d.prefixCls,p=d.rootPrefixCls,v=d.direction,g=d.getPopupContainer,m=function(e){n("update:visible",!1),n("cancel",e),n("change",!1)},y=function(e){n("ok",e)},b=function(){var t,n,i=e.okText,a=void 0===i?null===(t=r.okText)||void 0===t?void 0:t.call(r):i,l=e.okType,u=e.cancelText,c=void 0===u?null===(n=r.cancelText)||void 0===n?void 0:n.call(r):u,d=e.confirmLoading;return(0,s.bF)(s.FK,null,[(0,s.bF)(tc,(0,o.A)({onClick:m},e.cancelButtonProps),{default:function(){return[c||f.value.cancelText]}}),(0,s.bF)(tc,(0,o.A)((0,o.A)({},ju(l)),{},{loading:d,onClick:y},e.okButtonProps),{default:function(){return[a||f.value.okText]}})])};return function(){e.prefixCls;var t,n,u=e.visible,c=e.wrapClassName,f=e.centered,d=e.getContainer,y=e.closeIcon,w=void 0===y?null===(t=r.closeIcon)||void 0===t?void 0:t.call(r):y,A=e.focusTriggerAfterClose,x=void 0===A||A,C=(0,je.A)(e,LM),S=(0,l.A)(c,(n={},(0,i.A)(n,"".concat(h.value,"-centered"),!!f),(0,i.A)(n,"".concat(h.value,"-wrap-rtl"),"rtl"===v.value),n));return(0,s.bF)(pT,(0,o.A)((0,o.A)((0,o.A)({},C),a),{},{getContainer:d||g.value,prefixCls:h.value,wrapClassName:S,visible:u,mousePosition:IM,onClose:m,focusTriggerAfterClose:x,transitionName:(0,so.by)(p.value,"zoom",e.transitionName),maskTransitionName:(0,so.by)(p.value,"fade",e.maskTransitionName)}),(0,o.A)((0,o.A)({},r),{},{footer:r.footer||b,closeIcon:function(){return(0,s.bF)("span",{class:"".concat(h.value,"-close-x")},[w||(0,s.bF)(as.A,{class:"".concat(h.value,"-close-icon")},null)])}}))}}}),WM=function(){var e=(0,s.KR)(!1);return(0,s.xo)((function(){e.value=!0})),e},zM=WM,UM={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Object,emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function KM(e){return!(!e||!e.then)}var VM=(0,s.pM)({compatConfig:{MODE:3},name:"ActionButton",props:UM,setup:function(e,t){var n,r=t.slots,i=(0,s.KR)(!1),a=(0,s.KR)(),l=(0,s.KR)(!1),u=zM();(0,s.sV)((function(){e.autofocus&&(n=setTimeout((function(){var e;return null===(e=a.value.$el)||void 0===e?void 0:e.focus()})))})),(0,s.xo)((function(){clearTimeout(n)}));var c=function(t){var n=e.close;KM(t)&&(l.value=!0,t.then((function(){u.value||(l.value=!1),n.apply(void 0,arguments),i.value=!1}),(function(e){u.value||(l.value=!1),i.value=!1})))},f=function(t){var n=e.actionFn,r=e.close,o=void 0===r?function(){}:r;if(!i.value)if(i.value=!0,n){var a;if(e.emitEvent){if(a=n(t),e.quitOnNullishReturnValue&&!KM(a))return i.value=!1,void o(t)}else if(n.length)a=n(o),i.value=!1;else if(a=n(),!a)return void o();c(a)}else o()};return function(){var t=e.type,n=e.prefixCls,i=e.buttonProps;return(0,s.bF)(tc,(0,o.A)((0,o.A)((0,o.A)({},ju(t)),{},{onClick:f,loading:l.value,prefixCls:n},i),{},{ref:a}),r)}}});function HM(e){return"function"===typeof e?e():e}var qM=(0,s.pM)({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName"],setup:function(e,t){var n=t.attrs,r=(0,xg.n)("Modal"),o=(0,Re.A)(r,1),a=o[0];return function(){var t=e.icon,r=e.onCancel,o=e.onOk,u=e.close,c=e.closable,f=void 0!==c&&c,d=e.zIndex,h=e.afterClose,p=e.visible,v=e.keyboard,g=e.centered,m=e.getContainer,y=e.maskStyle,b=e.okButtonProps,w=e.cancelButtonProps,A=e.okCancel,x=void 0===A||A,C=e.width,S=void 0===C?416:C,_=e.mask,k=void 0===_||_,E=e.maskClosable,O=void 0!==E&&E,F=e.type,T=e.title,P=e.content,N=e.direction,M=e.closeIcon,L=e.modalRender,I=e.focusTriggerAfterClose,R=e.rootPrefixCls,j=e.bodyStyle,D=e.wrapClassName,B=e.okType||"primary",W=e.prefixCls||"ant-modal",z="".concat(W,"-confirm"),U=n.style||{},K=HM(e.okText)||(x?a.value.okText:a.value.justOkText),V=HM(e.cancelText)||a.value.cancelText,H=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),q=(0,l.A)(z,"".concat(z,"-").concat(F),"".concat(W,"-").concat(F),(0,i.A)({},"".concat(z,"-rtl"),"rtl"===N),n.class),G=x&&(0,s.bF)(VM,{actionFn:r,close:u,autofocus:"cancel"===H,buttonProps:w,prefixCls:"".concat(R,"-btn")},{default:function(){return[V]}});return(0,s.bF)(BM,{prefixCls:W,class:q,wrapClassName:(0,l.A)((0,i.A)({},"".concat(z,"-centered"),!!g),D),onCancel:function(e){return u({triggerCancel:!0},e)},visible:p,title:"",footer:"",transitionName:(0,so.by)(R,"zoom",e.transitionName),maskTransitionName:(0,so.by)(R,"fade",e.maskTransitionName),mask:k,maskClosable:O,maskStyle:y,style:U,bodyStyle:j,width:S,zIndex:d,afterClose:h,keyboard:v,centered:g,getContainer:m,closable:f,closeIcon:M,modalRender:L,focusTriggerAfterClose:I},{default:function(){return[(0,s.bF)("div",{class:"".concat(z,"-body-wrapper")},[(0,s.bF)("div",{class:"".concat(z,"-body")},[HM(t),void 0===T?null:(0,s.bF)("span",{class:"".concat(z,"-title")},[HM(T)]),(0,s.bF)("div",{class:"".concat(z,"-content")},[HM(P)])]),(0,s.bF)("div",{class:"".concat(z,"-btns")},[G,(0,s.bF)(VM,{type:B,actionFn:o,close:u,autofocus:"ok"===H,buttonProps:b,prefixCls:"".concat(R,"-btn")},{default:function(){return[K]}})])])]}})}}}),GM=function(e){var t=document.createDocumentFragment(),n=(0,o.A)((0,o.A)({},ce(e,["parentContext","appContext"])),{},{close:l,visible:!0}),r=null;function i(){r&&((0,s.XX)(null,t),r.component.update(),r=null);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.some((function(e){return e&&e.triggerCancel}));e.onCancel&&a&&e.onCancel.apply(e,o);for(var u=0;u<DM.length;u++){var c=DM[u];if(c===l){DM.splice(u,1);break}}}function l(){for(var t=this,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];n=(0,o.A)((0,o.A)({},n),{},{visible:!1,afterClose:function(){"function"===typeof e.afterClose&&e.afterClose(),i.apply(t,a)}}),u(n)}function u(e){n="function"===typeof e?e(n):(0,o.A)((0,o.A)({},n),e),r&&((0,a.A)(r.component.props,n),r.component.update())}var c=function(e){var t=al.Vm,n=t.prefixCls,r=e.prefixCls||"".concat(n,"-modal");return(0,s.bF)(al.Ay,(0,o.A)((0,o.A)({},t),{},{notUpdateGlobalConfig:!0,prefixCls:n}),{default:function(){return[(0,s.bF)(qM,(0,o.A)((0,o.A)({},e),{},{rootPrefixCls:n,prefixCls:r}),null)]}})};function f(n){var r=(0,s.bF)(c,(0,o.A)({},n));return r.appContext=e.parentContext||e.appContext||r.appContext,(0,s.XX)(r,t),r}return r=f(n),DM.push(l),{destroy:l,update:u}},YM=GM;function $M(e){return(0,o.A)((0,o.A)({icon:function(){return(0,s.bF)(Bs.A,null,null)},okCancel:!1},e),{},{type:"warning"})}function XM(e){return(0,o.A)((0,o.A)({icon:function(){return(0,s.bF)(Ws.A,null,null)},okCancel:!1},e),{},{type:"info"})}function JM(e){return(0,o.A)((0,o.A)({icon:function(){return(0,s.bF)(Ds.A,null,null)},okCancel:!1},e),{},{type:"success"})}function QM(e){return(0,o.A)((0,o.A)({icon:function(){return(0,s.bF)(zs.A,null,null)},okCancel:!1},e),{},{type:"error"})}function ZM(e){return(0,o.A)((0,o.A)({icon:function(){return(0,s.bF)(Bs.A,null,null)},okCancel:!0},e),{},{type:"confirm"})}function eL(e){return YM($M(e))}BM.info=function(e){return YM(XM(e))},BM.success=function(e){return YM(JM(e))},BM.error=function(e){return YM(QM(e))},BM.warning=eL,BM.warn=eL,BM.confirm=function(e){return YM(ZM(e))},BM.destroyAll=function(){while(DM.length){var e=DM.pop();e&&e()}},BM.install=function(e){return e.component(BM.name,BM),e};var tL=BM;function nL(e,t,n){e=up(e),t=sp(t);var r=t?_h(e):0;return t&&r<t?e+ep(t-r,n):e}var rL=nL,oL=function(e){var t,n=e.value,r=e.formatter,o=e.precision,i=e.decimalSeparator,a=e.groupSeparator,l=void 0===a?"":a,u=e.prefixCls;if("function"===typeof r)t=r({value:n});else{var c=String(n),f=c.match(/^(-?)(\d*)(\.(\d+))?$/);if(f){var d=f[1],h=f[2]||"0",p=f[4]||"";h=h.replace(/\B(?=(\d{3})+(?!\d))/g,l),"number"===typeof o&&(p=rL(p,o,"0").slice(0,o)),p&&(p="".concat(i).concat(p)),t=[(0,s.bF)("span",{key:"int",class:"".concat(u,"-content-value-int")},[d,h]),p&&(0,s.bF)("span",{key:"decimal",class:"".concat(u,"-content-value-decimal")},[p])]}else t=c}return(0,s.bF)("span",{class:"".concat(u,"-content-value")},[t])};oL.displayName="StatisticNumber";var iL=oL,aL=function(){return{prefixCls:String,width:{type:[Number,String]}}},sL=(0,s.pM)({compatConfig:{MODE:3},name:"SkeletonTitle",props:aL(),setup:function(e){return function(){var t=e.prefixCls,n=e.width,r="number"===typeof n?"".concat(n,"px"):n;return(0,s.bF)("h3",{class:t,style:{width:r}},null)}}}),lL=sL,uL=function(){return{prefixCls:String,width:{type:[Number,String,Array]},rows:Number}},cL=(0,s.pM)({compatConfig:{MODE:3},name:"SkeletonParagraph",props:uL(),setup:function(e){var t=function(t){var n=e.width,r=e.rows,o=void 0===r?2:r;return Array.isArray(n)?n[t]:o-1===t?n:void 0};return function(){var n=e.prefixCls,r=e.rows,o=(0,z.A)(Array(r)).map((function(e,n){var r=t(n);return(0,s.bF)("li",{key:n,style:{width:"number"===typeof r?"".concat(r,"px"):r}},null)}));return(0,s.bF)("ul",{class:n},[o])}}}),fL=cL,dL=function(){return{prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}},hL=function(e){var t,n,r=e.prefixCls,o=e.size,a=e.shape,u=(0,l.A)((t={},(0,i.A)(t,"".concat(r,"-lg"),"large"===o),(0,i.A)(t,"".concat(r,"-sm"),"small"===o),t)),c=(0,l.A)((n={},(0,i.A)(n,"".concat(r,"-circle"),"circle"===a),(0,i.A)(n,"".concat(r,"-square"),"square"===a),(0,i.A)(n,"".concat(r,"-round"),"round"===a),n)),f="number"===typeof o?{width:"".concat(o,"px"),height:"".concat(o,"px"),lineHeight:"".concat(o,"px")}:{};return(0,s.bF)("span",{class:(0,l.A)(r,u,c),style:f},null)};hL.displayName="SkeletonElement";var pL=hL,vL=function(){return{active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}}};function gL(e){return e&&"object"===(0,Ie.A)(e)?e:{}}function mL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function yL(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function bL(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}var wL=(0,s.pM)({compatConfig:{MODE:3},name:"ASkeleton",props:Pe(vL(),{avatar:!1,title:!0,paragraph:!0}),setup:function(e,t){var n=t.slots,r=(0,se.A)("skeleton",e),a=r.prefixCls,u=r.direction;return function(){var t,r=e.loading,c=e.avatar,f=e.title,d=e.paragraph,h=e.active,p=e.round,v=a.value;if(r||void 0===e.loading){var g,m,y,b=!!c||""===c,w=!!f||""===f,A=!!d||""===d;if(b){var x=(0,o.A)((0,o.A)({prefixCls:"".concat(v,"-avatar")},mL(w,A)),gL(c));m=(0,s.bF)("div",{class:"".concat(v,"-header")},[(0,s.bF)(pL,x,null)])}if(w||A){var C,S;if(w){var _=(0,o.A)((0,o.A)({prefixCls:"".concat(v,"-title")},yL(b,A)),gL(f));C=(0,s.bF)(lL,_,null)}if(A){var k=(0,o.A)((0,o.A)({prefixCls:"".concat(v,"-paragraph")},bL(b,w)),gL(d));S=(0,s.bF)(fL,k,null)}y=(0,s.bF)("div",{class:"".concat(v,"-content")},[C,S])}var E=(0,l.A)(v,(g={},(0,i.A)(g,"".concat(v,"-with-avatar"),b),(0,i.A)(g,"".concat(v,"-active"),h),(0,i.A)(g,"".concat(v,"-rtl"),"rtl"===u.value),(0,i.A)(g,"".concat(v,"-round"),p),g));return(0,s.bF)("div",{class:E},[m,y])}return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),AL=wL,xL=function(){return{prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:{type:[String,Number,Object]},valueStyle:{type:Object,default:void 0},valueRender:Fe.A.any,formatter:Fe.A.any,precision:Number,prefix:Fe.A.any,suffix:Fe.A.any,title:Fe.A.any,loading:{type:Boolean,default:void 0}}},CL=(0,s.pM)({compatConfig:{MODE:3},name:"AStatistic",props:Pe(xL(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:["title","prefix","suffix","formatter"],setup:function(e,t){var n=t.slots,r=(0,se.A)("statistic",e),a=r.prefixCls,l=r.direction;return function(){var t,r,u,c,f,d,h,p=e.value,v=void 0===p?0:p,g=e.valueStyle,m=e.valueRender,y=a.value,b=null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n),w=null!==(u=e.prefix)&&void 0!==u?u:null===(c=n.prefix)||void 0===c?void 0:c.call(n),A=null!==(f=e.suffix)&&void 0!==f?f:null===(d=n.suffix)||void 0===d?void 0:d.call(n),x=null!==(h=e.formatter)&&void 0!==h?h:n.formatter,C=(0,s.bF)(iL,(0,o.A)({"data-for-update":Date.now()},(0,o.A)((0,o.A)({},e),{},{prefixCls:y,value:v,formatter:x})),null);return m&&(C=m(C)),(0,s.bF)("div",{class:[y,(0,i.A)({},"".concat(y,"-rtl"),"rtl"===l.value)]},[b&&(0,s.bF)("div",{class:"".concat(y,"-title")},[b]),(0,s.bF)(AL,{paragraph:!1,loading:e.loading},{default:function(){return[(0,s.bF)("div",{style:g,class:"".concat(y,"-content")},[w&&(0,s.bF)("span",{class:"".concat(y,"-content-prefix")},[w]),C,A&&(0,s.bF)("span",{class:"".concat(y,"-content-suffix")},[A])])]}})])}}}),SL=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function _L(e,t){var n=e,r=/\[[^\]]*]/g,o=(t.match(r)||[]).map((function(e){return e.slice(1,-1)})),i=t.replace(r,"[]"),a=SL.reduce((function(e,t){var r=(0,Re.A)(t,2),o=r[0],i=r[1];if(-1!==e.indexOf(o)){var a=Math.floor(n/i);return n-=a*i,e.replace(new RegExp("".concat(o,"+"),"g"),(function(e){var t=e.length;return fp(a.toString(),t,"0")}))}return e}),i),s=0;return a.replace(r,(function(){var e=o[s];return s+=1,e}))}function kL(e,t){var n=t.format,r=void 0===n?"":n,o=new Date(e).getTime(),i=Date.now(),a=Math.max(o-i,0);return _L(a,r)}var EL=1e3/30;function OL(e){return new Date(e).getTime()}var FL=function(){return(0,o.A)((0,o.A)({},xL()),{},{value:[Number,String,Object],format:String,onFinish:Function,onChange:Function})},TL=(0,s.pM)({compatConfig:{MODE:3},name:"AStatisticCountdown",props:Pe(FL(),{format:"HH:mm:ss"}),setup:function(e,t){var n=t.emit,r=t.slots,i=(0,s.KR)(),a=(0,s.KR)(),l=function(){var t=e.value,n=OL(t);n>=Date.now()?u():c()},u=function(){if(!i.value){var t=OL(e.value);i.value=setInterval((function(){a.value.$forceUpdate(),t>Date.now()&&n("change",t-Date.now()),l()}),EL)}},c=function(){var t=e.value;if(i.value){clearInterval(i.value),i.value=void 0;var r=OL(t);r<Date.now()&&n("finish")}},f=function(t){var n=t.value,r=t.config,i=e.format;return kL(n,(0,o.A)((0,o.A)({},r),{},{format:i}))},d=function(e){return e};return(0,s.sV)((function(){l()})),(0,s.$u)((function(){l()})),(0,s.xo)((function(){c()})),function(){var t=e.value;return(0,s.bF)(CL,(0,o.A)({ref:a},(0,o.A)((0,o.A)({},ce(e,["onFinish","onChange"])),{},{value:t,valueRender:d,formatter:f})),r)}}});CL.Countdown=TL,CL.install=function(e){return e.component(CL.name,CL),e.component(CL.Countdown.name,CL.Countdown),e};var PL=CL.Countdown,NL=CL,ML=n(56427),LL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},IL=LL;function RL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jL(e,t,n[t])}))}return e}function jL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var DL=function(e,t){var n=RL({},e,t.attrs);return(0,s.bF)(Ya.A,RL({},n,{icon:IL}),null)};DL.displayName="ArrowLeftOutlined",DL.inheritAttrs=!1;var BL=DL,WL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},zL=WL;function UL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KL(e,t,n[t])}))}return e}function KL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VL=function(e,t){var n=UL({},e,t.attrs);return(0,s.bF)(Ya.A,UL({},n,{icon:zL}),null)};VL.displayName="ArrowRightOutlined",VL.inheritAttrs=!1;var HL=VL,qL=["noStyle","disabled"],GL={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},YL=(0,s.pM)({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup:function(e,t){var n=t.slots,r=t.emit,i=t.attrs,a=t.expose,l=(0,s.KR)(),u=function(e){var t=e.keyCode;t===Mo.ENTER&&e.preventDefault()},c=function(e){var t=e.keyCode;t===Mo.ENTER&&r("click",e)},f=function(e){r("click",e)},d=function(){l.value&&l.value.focus()},h=function(){l.value&&l.value.blur()};return(0,s.sV)((function(){e.autofocus&&d()})),a({focus:d,blur:h}),function(){var t,r=e.noStyle,a=e.disabled,d=(0,je.A)(e,qL),h={};return r||(h=(0,o.A)({},GL)),a&&(h.pointerEvents="none"),(0,s.bF)("div",(0,o.A)((0,o.A)((0,o.A)({role:"button",tabindex:0,ref:l},d),i),{},{onClick:f,onKeydown:u,onKeyup:c,style:(0,o.A)((0,o.A)({},h),i.style||{})}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),$L=YL,XL=function(){return{backIcon:Fe.A.any,prefixCls:String,title:Fe.A.any,subTitle:Fe.A.any,breadcrumb:Fe.A.object,tags:Fe.A.any,footer:Fe.A.any,extra:Fe.A.any,avatar:Fe.A.object,ghost:{type:Boolean,default:void 0},onBack:Function}},JL=(0,s.pM)({compatConfig:{MODE:3},name:"APageHeader",props:XL(),slots:["backIcon","avatar","breadcrumb","title","subTitle","tags","extra","footer"],setup:function(e,t){var n=t.emit,r=t.slots,o=(0,se.A)("page-header",e),a=o.prefixCls,u=o.direction,c=o.pageHeader,f=(0,s.KR)(!1),d=zM(),h=function(e){var t=e.width;d.value||(f.value=t<768)},p=(0,s.EW)((function(){var t,n,r;return null===(t=null!==(n=e.ghost)&&void 0!==n?n:null===(r=c.value)||void 0===r?void 0:r.ghost)||void 0===t||t})),v=function(){var t,n,o;return null!==(t=null!==(n=e.backIcon)&&void 0!==n?n:null===(o=r.backIcon)||void 0===o?void 0:o.call(r))&&void 0!==t?t:"rtl"===u.value?(0,s.bF)(HL,null,null):(0,s.bF)(BL,null,null)},g=function(t){return t&&e.onBack?(0,s.bF)(xg.A,{componentName:"PageHeader",children:function(e){var r=e.back;return(0,s.bF)("div",{class:"".concat(a.value,"-back")},[(0,s.bF)($L,{onClick:function(e){n("back",e)},class:"".concat(a.value,"-back-button"),"aria-label":r},{default:function(){return[t]}})])}},null):null},m=function(){var t;return e.breadcrumb?(0,s.bF)(ed,e.breadcrumb,null):null===(t=r.breadcrumb)||void 0===t?void 0:t.call(r)},y=function(){var t,n,o,i,l,u,c,f,d,h=e.avatar,p=null!==(t=e.title)&&void 0!==t?t:null===(n=r.title)||void 0===n?void 0:n.call(r),m=null!==(o=e.subTitle)&&void 0!==o?o:null===(i=r.subTitle)||void 0===i?void 0:i.call(r),y=null!==(l=e.tags)&&void 0!==l?l:null===(u=r.tags)||void 0===u?void 0:u.call(r),b=null!==(c=e.extra)&&void 0!==c?c:null===(f=r.extra)||void 0===f?void 0:f.call(r),w="".concat(a.value,"-heading"),A=p||m||y||b;if(!A)return null;var x=v(),C=g(x),S=C||h||A;return(0,s.bF)("div",{class:w},[S&&(0,s.bF)("div",{class:"".concat(w,"-left")},[C,h?(0,s.bF)(ql,h,null):null===(d=r.avatar)||void 0===d?void 0:d.call(r),p&&(0,s.bF)("span",{class:"".concat(w,"-title"),title:"string"===typeof p?p:void 0},[p]),m&&(0,s.bF)("span",{class:"".concat(w,"-sub-title"),title:"string"===typeof m?m:void 0},[m]),y&&(0,s.bF)("span",{class:"".concat(w,"-tags")},[y])]),b&&(0,s.bF)("span",{class:"".concat(w,"-extra")},[b])])},b=function(){var t,n,o=null!==(t=e.footer)&&void 0!==t?t:(0,B.Gk)(null===(n=r.footer)||void 0===n?void 0:n.call(r));return(0,B.Po)(o)?null:(0,s.bF)("div",{class:"".concat(a.value,"-footer")},[o])},w=function(e){return(0,s.bF)("div",{class:"".concat(a.value,"-content")},[e])};return function(){var t,n,o,c=(null===(t=e.breadcrumb)||void 0===t?void 0:t.routes)||r.breadcrumb,d=e.footer||r.footer,v=(0,B.MI)(null===(n=r.default)||void 0===n?void 0:n.call(r)),g=(0,l.A)(a.value,(o={"has-breadcrumb":c,"has-footer":d},(0,i.A)(o,"".concat(a.value,"-ghost"),p.value),(0,i.A)(o,"".concat(a.value,"-rtl"),"rtl"===u.value),(0,i.A)(o,"".concat(a.value,"-compact"),f.value),o));return(0,s.bF)(W,{onResize:h},{default:function(){return[(0,s.bF)("div",{class:g},[m(),y(),v.length?w(v):null,b()])]}})}}}),QL=(0,$.GU)(JL),ZL=n(77749),eI=["placement","overlayClassName"],tI=function(){return(0,o.A)((0,o.A)({},kl()),{},{prefixCls:String,content:Fe.A.any,title:Fe.A.any,okType:{type:String,default:"primary"},disabled:{type:Boolean,default:!1},okText:Fe.A.any,cancelText:Fe.A.any,icon:Fe.A.any,okButtonProps:{type:Object,default:void 0},cancelButtonProps:{type:Object,default:void 0},showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function})},nI=(0,s.pM)({compatConfig:{MODE:3},name:"APopconfirm",props:Pe(tI(),(0,o.A)((0,o.A)({},jl()),{},{trigger:"click",transitionName:"zoom-big",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:["title","content","okText","icon","cancelText","cancelButton","okButton"],emits:["update:visible","visibleChange"],setup:function(e,t){var n=t.slots,r=t.emit,i=t.expose;(0,s.sV)((function(){(0,Wu.A)(void 0===e.defaultVisible,"Popconfirm","'defaultVisible' is deprecated, please use 'v-model:visible'")}));var a=(0,s.KR)();i({getPopupDomNode:function(){var e,t;return null===(e=a.value)||void 0===e||null===(t=e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});var u=Ra(!1,{value:(0,s.lW)(e,"visible"),defaultValue:e.defaultVisible}),c=(0,Re.A)(u,2),f=c[0],d=c[1],h=function(t,n){void 0===e.visible&&d(t),r("update:visible",t),r("visibleChange",t,n)},p=function(e){h(!1,e)},v=function(t){var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(e,t)},g=function(t){var n;h(!1,t),null===(n=e.onCancel)||void 0===n||n.call(e,t)},m=function(e){e.keyCode===Mo.ESC&&f&&h(!1,e)},y=function(t){var n=e.disabled;n||h(t)},b=(0,se.A)("popconfirm",e),w=b.prefixCls,A=b.getPrefixCls,x=(0,s.EW)((function(){return A()})),C=(0,s.EW)((function(){return A("popover")})),S=(0,s.EW)((function(){return A("btn")})),_=(0,xg.n)("Popconfirm",ZL.A.Popconfirm),k=(0,Re.A)(_,1),E=k[0],O=function(){var t,r,i,a,l=e.okButtonProps,u=e.cancelButtonProps,c=e.title,f=void 0===c?null===(t=n.title)||void 0===t?void 0:t.call(n):c,d=e.cancelText,h=void 0===d?null===(r=n.cancel)||void 0===r?void 0:r.call(n):d,m=e.okText,y=void 0===m?null===(i=n.okText)||void 0===i?void 0:i.call(n):m,b=e.okType,w=e.icon,A=void 0===w?null===(a=n.icon)||void 0===a?void 0:a.call(n):w,x=e.showCancel,_=void 0===x||x,k=n.cancelButton,O=n.okButton,F=(0,o.A)({onClick:g,size:"small"},u),T=(0,o.A)((0,o.A)({onClick:v},ju(b)),{},{size:"small"},l);return(0,s.bF)("div",{class:"".concat(C.value,"-inner-content")},[(0,s.bF)("div",{class:"".concat(C.value,"-message")},[A||(0,s.bF)(Ks.A,null,null),(0,s.bF)("div",{class:"".concat(C.value,"-message-title")},[f])]),(0,s.bF)("div",{class:"".concat(C.value,"-buttons")},[_?k?k(F):(0,s.bF)(tc,F,{default:function(){return[h||E.value.cancelText]}}):null,O?O(T):(0,s.bF)(VM,{buttonProps:(0,o.A)((0,o.A)({size:"small"},ju(b)),l),actionFn:v,close:p,prefixCls:S.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:function(){return[y||E.value.okText]}})])])};return function(){var t,r=e.placement,i=e.overlayClassName,u=(0,je.A)(e,eI),c=ce(u,["title","content","cancelText","okText","onUpdate:visible","onConfirm","onCancel"]),d=(0,l.A)(w.value,i);return(0,s.bF)(Bl,(0,o.A)((0,o.A)({},c),{},{prefixCls:C.value,placement:r,onVisibleChange:y,visible:f.value,overlayClassName:d,transitionName:(0,so.by)(x.value,"zoom-big",e.transitionName),ref:a}),{default:function(){return[Wn((null===(t=n.default)||void 0===t?void 0:t.call(n))||[],{onKeydown:function(e){m(e)}},!1)]},title:O})}}}),rI=(0,$.GU)(nI),oI=n(38798),iI=(0,$.PV)("normal","exception","active","success"),aI=(0,$.PV)("line","circle","dashboard"),sI=(0,$.PV)("default","small"),lI=function(){return{prefixCls:String,type:Fe.A.oneOf(aI),percent:Number,format:{type:Function},status:Fe.A.oneOf(iI),showInfo:{type:Boolean,default:void 0},strokeWidth:Number,strokeLinecap:String,strokeColor:{type:[String,Object],default:void 0},trailColor:String,width:Number,success:{type:Object,default:function(){return{}}},gapDegree:Number,gapPosition:String,size:Fe.A.oneOf(sI),steps:Number,successPercent:Number,title:String}};function uI(e){return!e||e<0?0:e>100?100:e}function cI(e){var t=e.success,n=e.successPercent,r=n;return t&&"progress"in t&&((0,Wu.A)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}var fI=["from","to","direction"],dI=function(){return(0,o.A)((0,o.A)({},lI()),{},{prefixCls:String,direction:{type:String}})},hI=function(e){var t=[];return Object.keys(e).forEach((function(n){var r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})})),t=t.sort((function(e,t){return e.key-t.key})),t.map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", ")},pI=function(e,t){var n=e.from,r=void 0===n?oI.uy.blue:n,o=e.to,i=void 0===o?oI.uy.blue:o,a=e.direction,s=void 0===a?"rtl"===t?"to left":"to right":a,l=(0,je.A)(e,fI);if(0!==Object.keys(l).length){var u=hI(l);return{backgroundImage:"linear-gradient(".concat(s,", ").concat(u,")")}}return{backgroundImage:"linear-gradient(".concat(s,", ").concat(r,", ").concat(i,")")}},vI=(0,s.pM)({compatConfig:{MODE:3},name:"Line",props:dI(),setup:function(e,t){var n=t.slots,r=(0,s.EW)((function(){var t=e.strokeColor,n=e.direction;return t&&"string"!==typeof t?pI(t,n):{background:t}})),i=(0,s.EW)((function(){return e.trailColor?{backgroundColor:e.trailColor}:void 0})),a=(0,s.EW)((function(){var t=e.percent,n=e.strokeWidth,i=e.strokeLinecap,a=e.size;return(0,o.A)({width:"".concat(uI(t),"%"),height:"".concat(n||("small"===a?6:8),"px"),borderRadius:"square"===i?0:""},r.value)})),l=(0,s.EW)((function(){return cI(e)})),u=(0,s.EW)((function(){var t=e.strokeWidth,n=e.size,r=e.strokeLinecap,o=e.success;return{width:"".concat(uI(l.value),"%"),height:"".concat(t||("small"===n?6:8),"px"),borderRadius:"square"===r?0:"",backgroundColor:null===o||void 0===o?void 0:o.strokeColor}}));return function(){var t;return(0,s.bF)(s.FK,null,[(0,s.bF)("div",{class:"".concat(e.prefixCls,"-outer")},[(0,s.bF)("div",{class:"".concat(e.prefixCls,"-inner"),style:i.value},[(0,s.bF)("div",{class:"".concat(e.prefixCls,"-bg"),style:a.value},null),void 0!==l.value?(0,s.bF)("div",{class:"".concat(e.prefixCls,"-success-bg"),style:u.value},null):null])]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),gI={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},mI=function(e){var t=(0,s.KR)(null);return(0,s.$u)((function(){var n=Date.now(),r=!1;e.value.forEach((function(e){var o=(null===e||void 0===e?void 0:e.$el)||e;if(o){r=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")}})),r&&(t.value=Date.now())})),e},yI={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},bI=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],wI=0;function AI(e){return+e.replace("%","")}function xI(e){return Array.isArray(e)?e:[e]}function CI(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=50-r/2,s=0,l=-a,u=0,c=-2*a;switch(i){case"left":s=-a,l=0,u=2*a,c=0;break;case"right":s=a,l=0,u=-2*a,c=0;break;case"bottom":l=a,c=2*a;break;default:}var f="M 50,50 m ".concat(s,",").concat(l,"\n   a ").concat(a,",").concat(a," 0 1 1 ").concat(u,",").concat(-c,"\n   a ").concat(a,",").concat(a," 0 1 1 ").concat(-u,",").concat(c),d=2*Math.PI*a,h={stroke:n,strokeDasharray:"".concat(t/100*(d-o),"px ").concat(d,"px"),strokeDashoffset:"-".concat(o/2+e/100*(d-o),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:f,pathStyle:h}}var SI=(0,s.pM)({compatConfig:{MODE:3},name:"VCCircle",props:Pe(yI,gI),setup:function(e){wI+=1;var t=(0,s.KR)(wI),n=(0,s.EW)((function(){return xI(e.percent)})),r=(0,s.EW)((function(){return xI(e.strokeColor)})),i=cm(),a=(0,Re.A)(i,2),l=a[0],u=a[1];mI(u);var c=function(){var i=e.prefixCls,a=e.strokeWidth,u=e.strokeLinecap,c=e.gapDegree,f=e.gapPosition,d=0;return n.value.map((function(e,n){var h=r.value[n]||r.value[r.value.length-1],p="[object Object]"===Object.prototype.toString.call(h)?"url(#".concat(i,"-gradient-").concat(t.value,")"):"",v=CI(d,e,h,a,c,f),g=v.pathString,m=v.pathStyle;d+=e;var y={key:n,d:g,stroke:p,"stroke-linecap":u,"stroke-width":a,opacity:0===e?0:1,"fill-opacity":"0",class:"".concat(i,"-circle-path"),style:m};return(0,s.bF)("path",(0,o.A)({ref:l(n)},y),null)}))};return function(){var n=e.prefixCls,i=e.strokeWidth,a=e.trailWidth,l=e.gapDegree,u=e.gapPosition,f=e.trailColor,d=e.strokeLinecap,h=(e.strokeColor,(0,je.A)(e,bI)),p=CI(0,100,f,i,l,u),v=p.pathString,g=p.pathStyle;delete h.percent;var m=r.value.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),y={d:v,stroke:f,"stroke-linecap":d,"stroke-width":a||i,"fill-opacity":"0",class:"".concat(n,"-circle-trail"),style:g};return(0,s.bF)("svg",(0,o.A)({class:"".concat(n,"-circle"),viewBox:"0 0 100 100"},h),[m&&(0,s.bF)("defs",null,[(0,s.bF)("linearGradient",{id:"".concat(n,"-gradient-").concat(t.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(m).sort((function(e,t){return AI(e)-AI(t)})).map((function(e,t){return(0,s.bF)("stop",{key:t,offset:e,"stop-color":m[e]},null)}))])]),(0,s.bF)("path",y,null),c().reverse()])}}});function _I(e){var t=e.percent,n=e.success,r=e.successPercent,o=uI(cI({success:n,successPercent:r}));return[o,uI(uI(t)-o)]}function kI(e){var t=e.success,n=void 0===t?{}:t,r=e.strokeColor,o=n.strokeColor;return[o||oI.uy.green,r||null]}var EI=(0,s.pM)({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:lI(),setup:function(e,t){var n=t.slots,r=(0,s.EW)((function(){return e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0})),o=(0,s.EW)((function(){var t=e.width||120;return{width:"number"===typeof t?"".concat(t,"px"):t,height:"number"===typeof t?"".concat(t,"px"):t,fontSize:"".concat(.15*t+6,"px")}})),a=(0,s.EW)((function(){return e.strokeWidth||6})),l=(0,s.EW)((function(){return e.gapPosition||"dashboard"===e.type&&"bottom"||"top"})),u=(0,s.EW)((function(){return _I(e)})),c=(0,s.EW)((function(){return"[object Object]"===Object.prototype.toString.call(e.strokeColor)})),f=(0,s.EW)((function(){return kI({success:e.success,strokeColor:e.strokeColor})})),d=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(e.prefixCls,"-inner"),!0),(0,i.A)(t,"".concat(e.prefixCls,"-circle-gradient"),c.value),t}));return function(){var t;return(0,s.bF)("div",{class:d.value,style:o.value},[(0,s.bF)(SI,{percent:u.value,strokeWidth:a.value,trailWidth:a.value,strokeColor:f.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:r.value,gapPosition:l.value},null),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),OI=function(){return(0,o.A)((0,o.A)({},lI()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})},FI=(0,s.pM)({compatConfig:{MODE:3},name:"Steps",props:OI(),setup:function(e,t){var n=t.slots,r=(0,s.EW)((function(){return Math.round(e.steps*((e.percent||0)/100))})),o=(0,s.EW)((function(){return"small"===e.size?2:14})),a=(0,s.EW)((function(){for(var t=e.steps,n=e.strokeWidth,a=void 0===n?8:n,l=e.strokeColor,u=e.trailColor,c=e.prefixCls,f=[],d=0;d<t;d+=1){var h,p=(h={},(0,i.A)(h,"".concat(c,"-steps-item"),!0),(0,i.A)(h,"".concat(c,"-steps-item-active"),d<=r.value-1),h);f.push((0,s.bF)("div",{key:d,class:p,style:{backgroundColor:d<=r.value-1?l:u,width:"".concat(o.value,"px"),height:"".concat(a,"px")}},null))}return f}));return function(){var t;return(0,s.bF)("div",{class:"".concat(e.prefixCls,"-steps-outer")},[a.value,null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),TI=(0,s.pM)({compatConfig:{MODE:3},name:"AProgress",props:Pe(lI(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:["format"],setup:function(e,t){var n=t.slots,r=(0,se.A)("progress",e),a=r.prefixCls,l=r.direction;(0,Wu.A)(void 0==e.successPercent,"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var u=(0,s.EW)((function(){var t,n=e.type,r=e.showInfo,o=e.size,s=a.value;return t={},(0,i.A)(t,s,!0),(0,i.A)(t,"".concat(s,"-").concat("dashboard"===n?"circle":n),!0),(0,i.A)(t,"".concat(s,"-show-info"),r),(0,i.A)(t,"".concat(s,"-").concat(o),o),(0,i.A)(t,"".concat(s,"-rtl"),"rtl"===l.value),t})),c=(0,s.EW)((function(){var t=e.percent,n=void 0===t?0:t,r=cI(e);return parseInt(void 0!==r?r.toString():n.toString(),10)})),f=(0,s.EW)((function(){var t=e.status;return iI.indexOf(t)<0&&c.value>=100?"success":t||"normal"})),d=function(){var t,r=e.showInfo,o=e.format,i=e.type,l=e.percent,u=e.title,c=cI(e);if(!r)return null;var d=o||(null===n||void 0===n?void 0:n.format)||function(e){return"".concat(e,"%")},h="line"===i;return o||null!==n&&void 0!==n&&n.format||"exception"!==f.value&&"success"!==f.value?t=d(uI(l),uI(c)):"exception"===f.value?t=h?(0,s.bF)(ss.A,null,null):(0,s.bF)(as.A,null,null):"success"===f.value&&(t=h?(0,s.bF)(Us.A,null,null):(0,s.bF)(is,null,null)),(0,s.bF)("span",{class:"".concat(a.value,"-text"),title:void 0===u&&"string"===typeof t?t:void 0},[t])};return function(){var t,n=e.type,r=e.steps,l=e.strokeColor,c=e.title,h=d();"line"===n?t=r?(0,s.bF)(FI,(0,o.A)((0,o.A)({},e),{},{strokeColor:"string"===typeof l?l:void 0,prefixCls:a.value,steps:r}),{default:function(){return[h]}}):(0,s.bF)(vI,(0,o.A)((0,o.A)({},e),{},{prefixCls:a.value}),{default:function(){return[h]}}):"circle"!==n&&"dashboard"!==n||(t=(0,s.bF)(EI,(0,o.A)((0,o.A)({},e),{},{prefixCls:a.value}),{default:function(){return[h]}}));var p=(0,o.A)((0,o.A)({},u.value),{},(0,i.A)({},"".concat(a.value,"-status-").concat(f.value),!0));return(0,s.bF)("div",{class:p,title:c},[t])}}}),PI=(0,$.GU)(TI);Fg.Group=Ng,Fg.Button=Mg,Fg.install=function(e){return e.component(Fg.name,Fg),e.component(Fg.Group.name,Fg.Group),e.component(Fg.Button.name,Fg.Button),e};var NI=Fg;function MI(e){var t=e.pageXOffset,n="scrollLeft";if("number"!==typeof t){var r=e.document;t=r.documentElement[n],"number"!==typeof t&&(t=r.body[n])}return t}function LI(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=i.clientLeft||o.clientLeft||0,n-=i.clientTop||o.clientTop||0,{left:t,top:n}}function II(e){var t=LI(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=MI(r),t.left}var RI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},jI=RI;function DI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BI(e,t,n[t])}))}return e}function BI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WI=function(e,t){var n=DI({},e,t.attrs);return(0,s.bF)(Ya.A,DI({},n,{icon:jI}),null)};WI.displayName="StarFilled",WI.inheritAttrs=!1;var zI=WI,UI={value:Number,index:Number,prefixCls:String,allowHalf:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},character:Fe.A.any,characterRender:Function,focused:{type:Boolean,default:void 0},count:Number,onClick:Function,onHover:Function},KI=(0,s.pM)({compatConfig:{MODE:3},name:"Star",inheritAttrs:!1,props:UI,emits:["hover","click"],setup:function(e,t){var n=t.slots,r=t.emit,o=function(t){var n=e.index;r("hover",t,n)},i=function(t){var n=e.index;r("click",t,n)},a=function(t){var n=e.index;13===t.keyCode&&r("click",t,n)},l=(0,s.EW)((function(){var t=e.prefixCls,n=e.index,r=e.value,o=e.allowHalf,i=e.focused,a=n+1,s=t;return 0===r&&0===n&&i?s+=" ".concat(t,"-focused"):o&&r+.5>=a&&r<a?(s+=" ".concat(t,"-half ").concat(t,"-active"),i&&(s+=" ".concat(t,"-focused"))):(s+=" ".concat(t,a<=r?"-full":"-zero"),a===r&&i&&(s+=" ".concat(t,"-focused"))),s}));return function(){var t=e.disabled,r=e.prefixCls,u=e.characterRender,c=e.index,f=e.count,d=e.value,h=(0,B.rU)(n,e,"character"),p=(0,s.bF)("li",{class:l.value},[(0,s.bF)("div",{onClick:t?null:i,onKeydown:t?null:a,onMousemove:t?null:o,role:"radio","aria-checked":d>c?"true":"false","aria-posinset":c+1,"aria-setsize":f,tabindex:t?-1:0},[(0,s.bF)("div",{class:"".concat(r,"-first")},[h]),(0,s.bF)("div",{class:"".concat(r,"-second")},[h])])]);return u&&(p=u(p,e)),p}}}),VI=function(){return{prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:Fe.A.any,autofocus:{type:Boolean,default:void 0},tabindex:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}},HI=(0,s.pM)({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:Pe(VI(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.emit,u=t.expose,c=(0,se.A)("rate",e),f=c.prefixCls,d=c.direction,h=ws(),p=(0,s.KR)(),v=cm(),g=(0,Re.A)(v,2),m=g[0],y=g[1],b=(0,s.Kh)({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});(0,s.wB)((function(){return e.value}),(function(){b.value=e.value}));var w=function(e){return(0,B.oK)(y.value.get(e))},A=function(t,n){var r="rtl"===d.value,o=t+1;if(e.allowHalf){var i=w(t),a=II(i),s=i.clientWidth;(r&&n-a>s/2||!r&&n-a<s/2)&&(o-=.5)}return o},x=function(t){void 0===e.value&&(b.value=t),a("update:value",t),a("change",t),h.onFieldChange()},C=function(e,t){var n=A(t,e.pageX);n!==b.cleanedValue&&(b.hoverValue=n,b.cleanedValue=null),a("hoverChange",n)},S=function(){b.hoverValue=void 0,b.cleanedValue=null,a("hoverChange",void 0)},_=function(t,n){var r=e.allowClear,o=A(n,t.pageX),i=!1;r&&(i=o===b.value),S(),x(i?0:o),b.cleanedValue=i?o:null},k=function(e){b.focused=!0,a("focus",e)},E=function(e){b.focused=!1,a("blur",e),h.onFieldBlur()},O=function(t){var n=t.keyCode,r=e.count,o=e.allowHalf,i="rtl"===d.value;n===Mo.RIGHT&&b.value<r&&!i?(b.value+=o?.5:1,x(b.value),t.preventDefault()):n===Mo.LEFT&&b.value>0&&!i||n===Mo.RIGHT&&b.value>0&&i?(b.value-=o?.5:1,x(b.value),t.preventDefault()):n===Mo.LEFT&&b.value<r&&i&&(b.value+=o?.5:1,x(b.value),t.preventDefault()),a("keydown",t)},F=function(){e.disabled||p.value.focus()},T=function(){e.disabled||p.value.blur()};u({focus:F,blur:T}),(0,s.sV)((function(){var t=e.autofocus,n=e.disabled;t&&!n&&F()}));var P=function(t,n){var r=n.index,o=e.tooltips;return o?(0,s.bF)(Bl,{title:o[r]},{default:function(){return[t]}}):t},N=(0,B.rU)(n,e,"character")||(0,s.bF)(zI,null,null);return function(){for(var t=e.count,n=e.allowHalf,a=e.disabled,u=e.tabindex,c=e.id,v=void 0===c?h.id.value:c,g=r.class,y=r.style,w=[],A=a?"".concat(f.value,"-disabled"):"",x=0;x<t;x++)w.push((0,s.bF)(KI,{ref:m(x),key:x,index:x,count:t,disabled:a,prefixCls:"".concat(f.value,"-star"),allowHalf:n,value:void 0===b.hoverValue?b.value:b.hoverValue,onClick:_,onHover:C,character:N,characterRender:P,focused:b.focused},null));var F=(0,l.A)(f.value,A,g,(0,i.A)({},"".concat(f.value,"-rtl"),"rtl"===d.value));return(0,s.bF)("ul",(0,o.A)((0,o.A)({},r),{},{id:v,class:F,style:y,onMouseleave:a?null:S,tabindex:a?-1:u,onFocus:a?null:k,onBlur:a?null:E,onKeydown:a?null:O,ref:p,role:"radiogroup"}),[w])}}}),qI=(0,$.GU)(HI),GI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},YI=GI;function $I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XI(e,t,n[t])}))}return e}function XI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JI=function(e,t){var n=$I({},e,t.attrs);return(0,s.bF)(Ya.A,$I({},n,{icon:YI}),null)};JI.displayName="WarningFilled",JI.inheritAttrs=!1;var QI=JI,ZI=function(){return(0,s.bF)("svg",{width:"252",height:"294"},[(0,s.bF)("defs",null,[(0,s.bF)("path",{d:"M0 .387h251.772v251.772H0z"},null)]),(0,s.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,s.bF)("g",{transform:"translate(0 .012)"},[(0,s.bF)("mask",{fill:"#fff"},null),(0,s.bF)("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),(0,s.bF)("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),(0,s.bF)("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),(0,s.bF)("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),(0,s.bF)("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),(0,s.bF)("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),(0,s.bF)("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),(0,s.bF)("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),(0,s.bF)("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),(0,s.bF)("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),(0,s.bF)("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),(0,s.bF)("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),(0,s.bF)("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),(0,s.bF)("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),(0,s.bF)("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),(0,s.bF)("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),(0,s.bF)("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),(0,s.bF)("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),(0,s.bF)("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),(0,s.bF)("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),(0,s.bF)("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),(0,s.bF)("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),(0,s.bF)("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),(0,s.bF)("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),(0,s.bF)("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),(0,s.bF)("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),(0,s.bF)("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),(0,s.bF)("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),(0,s.bF)("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),(0,s.bF)("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),(0,s.bF)("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),(0,s.bF)("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),(0,s.bF)("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),(0,s.bF)("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),(0,s.bF)("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),(0,s.bF)("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),(0,s.bF)("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),(0,s.bF)("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])])},eR=ZI,tR=function(){return(0,s.bF)("svg",{width:"254",height:"294"},[(0,s.bF)("defs",null,[(0,s.bF)("path",{d:"M0 .335h253.49v253.49H0z"},null),(0,s.bF)("path",{d:"M0 293.665h253.49V.401H0z"},null)]),(0,s.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,s.bF)("g",{transform:"translate(0 .067)"},[(0,s.bF)("mask",{fill:"#fff"},null),(0,s.bF)("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),(0,s.bF)("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),(0,s.bF)("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),(0,s.bF)("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),(0,s.bF)("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),(0,s.bF)("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),(0,s.bF)("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),(0,s.bF)("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),(0,s.bF)("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),(0,s.bF)("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),(0,s.bF)("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),(0,s.bF)("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),(0,s.bF)("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),(0,s.bF)("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),(0,s.bF)("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),(0,s.bF)("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),(0,s.bF)("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),(0,s.bF)("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),(0,s.bF)("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),(0,s.bF)("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),(0,s.bF)("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),(0,s.bF)("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),(0,s.bF)("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),(0,s.bF)("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),(0,s.bF)("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),(0,s.bF)("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),(0,s.bF)("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),(0,s.bF)("mask",{fill:"#fff"},null),(0,s.bF)("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),(0,s.bF)("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),(0,s.bF)("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])])},nR=tR,rR=function(){return(0,s.bF)("svg",{width:"251",height:"294"},[(0,s.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,s.bF)("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),(0,s.bF)("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),(0,s.bF)("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),(0,s.bF)("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),(0,s.bF)("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),(0,s.bF)("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),(0,s.bF)("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),(0,s.bF)("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),(0,s.bF)("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),(0,s.bF)("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),(0,s.bF)("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),(0,s.bF)("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),(0,s.bF)("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),(0,s.bF)("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),(0,s.bF)("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),(0,s.bF)("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),(0,s.bF)("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),(0,s.bF)("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),(0,s.bF)("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),(0,s.bF)("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),(0,s.bF)("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),(0,s.bF)("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),(0,s.bF)("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),(0,s.bF)("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),(0,s.bF)("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),(0,s.bF)("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),(0,s.bF)("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),(0,s.bF)("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),(0,s.bF)("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),(0,s.bF)("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),(0,s.bF)("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),(0,s.bF)("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),(0,s.bF)("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,s.bF)("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),(0,s.bF)("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),(0,s.bF)("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),(0,s.bF)("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])])},oR=rR,iR={success:Us.A,error:ss.A,info:Ks.A,warning:QI},aR={404:eR,500:nR,403:oR},sR=Object.keys(aR),lR=function(){return{prefixCls:String,icon:Fe.A.any,status:{type:[Number,String],default:"info"},title:Fe.A.any,subTitle:Fe.A.any,extra:Fe.A.any}},uR=function(e,t){var n=t.status,r=t.icon;if(sR.includes("".concat(n))){var o=aR[n];return(0,s.bF)("div",{class:"".concat(e,"-icon ").concat(e,"-image")},[(0,s.bF)(o,null,null)])}var i=iR[n],a=r||(0,s.bF)(i,null,null);return(0,s.bF)("div",{class:"".concat(e,"-icon")},[a])},cR=function(e,t){return t&&(0,s.bF)("div",{class:"".concat(e,"-extra")},[t])},fR=(0,s.pM)({compatConfig:{MODE:3},name:"AResult",props:lR(),slots:["title","subTitle","icon","extra"],setup:function(e,t){var n=t.slots,r=(0,se.A)("result",e),o=r.prefixCls,a=r.direction,u=(0,s.EW)((function(){return(0,l.A)(o.value,"".concat(o.value,"-").concat(e.status),(0,i.A)({},"".concat(o.value,"-rtl"),"rtl"===a.value))}));return function(){var t,r,i,a,l,c,f,d,h=null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n),p=null!==(i=e.subTitle)&&void 0!==i?i:null===(a=n.subTitle)||void 0===a?void 0:a.call(n),v=null!==(l=e.icon)&&void 0!==l?l:null===(c=n.icon)||void 0===c?void 0:c.call(n),g=null!==(f=e.extra)&&void 0!==f?f:null===(d=n.extra)||void 0===d?void 0:d.call(n),m=o.value;return(0,s.bF)("div",{class:u.value},[uR(m,{status:e.status,icon:v}),(0,s.bF)("div",{class:"".concat(m,"-title")},[h]),p&&(0,s.bF)("div",{class:"".concat(m,"-subtitle")},[p]),cR(m,g),n.default&&(0,s.bF)("div",{class:"".concat(m,"-content")},[n.default()])])}}});fR.PRESENTED_IMAGE_403=aR[403],fR.PRESENTED_IMAGE_404=aR[404],fR.PRESENTED_IMAGE_500=aR[500],fR.install=function(e){return e.component(fR.name,fR),e};var dR=fR,hR=function(){return(0,o.A)((0,o.A)({},dL()),{},{size:String,block:Boolean})},pR=(0,s.pM)({compatConfig:{MODE:3},name:"ASkeletonButton",props:Pe(hR(),{size:"default"}),setup:function(e){var t=(0,se.A)("skeleton",e),n=t.prefixCls,r=(0,s.EW)((function(){var t;return(0,l.A)(n.value,"".concat(n.value,"-element"),(t={},(0,i.A)(t,"".concat(n.value,"-active"),e.active),(0,i.A)(t,"".concat(n.value,"-block"),e.block),t))}));return function(){return(0,s.bF)("div",{class:r.value},[(0,s.bF)(pL,(0,o.A)((0,o.A)({},e),{},{prefixCls:"".concat(n.value,"-button")}),null)])}}}),vR=pR,gR=(0,s.pM)({compatConfig:{MODE:3},name:"ASkeletonInput",props:(0,o.A)((0,o.A)({},ce(dL(),["shape"])),{},{size:String}),setup:function(e){var t=(0,se.A)("skeleton",e),n=t.prefixCls,r=(0,s.EW)((function(){return(0,l.A)(n.value,"".concat(n.value,"-element"),(0,i.A)({},"".concat(n.value,"-active"),e.active))}));return function(){return(0,s.bF)("div",{class:r.value},[(0,s.bF)(pL,(0,o.A)((0,o.A)({},e),{},{prefixCls:"".concat(n.value,"-input")}),null)])}}}),mR=gR,yR="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",bR=(0,s.pM)({compatConfig:{MODE:3},name:"ASkeletonImage",props:ce(dL(),["size","shape","active"]),setup:function(e){var t=(0,se.A)("skeleton",e),n=t.prefixCls,r=(0,s.EW)((function(){return(0,l.A)(n.value,"".concat(n.value,"-element"))}));return function(){return(0,s.bF)("div",{class:r.value},[(0,s.bF)("div",{class:"".concat(n.value,"-image")},[(0,s.bF)("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:"".concat(n.value,"-image-svg")},[(0,s.bF)("path",{d:yR,class:"".concat(n.value,"-image-path")},null)])])])}}}),wR=bR,AR=function(){return(0,o.A)((0,o.A)({},dL()),{},{shape:String})},xR=(0,s.pM)({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Pe(AR(),{size:"default",shape:"circle"}),setup:function(e){var t=(0,se.A)("skeleton",e),n=t.prefixCls,r=(0,s.EW)((function(){return(0,l.A)(n.value,"".concat(n.value,"-element"),(0,i.A)({},"".concat(n.value,"-active"),e.active))}));return function(){return(0,s.bF)("div",{class:r.value},[(0,s.bF)(pL,(0,o.A)((0,o.A)({},e),{},{prefixCls:"".concat(n.value,"-avatar")}),null)])}}}),CR=xR;AL.Button=vR,AL.Avatar=CR,AL.Input=mR,AL.Image=wR,AL.Title=lL,AL.install=function(e){return e.component(AL.name,AL),e.component(AL.Button.name,vR),e.component(AL.Avatar.name,CR),e.component(AL.Input.name,mR),e.component(AL.Image.name,wR),e.component(AL.Title.name,lL),e};var SR=AL,_R=function(e,t){var n,r,a=t.attrs,l=a.included,u=a.vertical,c=a.style,f=a.class,d=a.length,h=a.offset,p=a.reverse;d<0&&(p=!p,d=Math.abs(d),h=100-h);var v=u?(n={},(0,i.A)(n,p?"top":"bottom","".concat(h,"%")),(0,i.A)(n,p?"bottom":"top","auto"),(0,i.A)(n,"height","".concat(d,"%")),n):(r={},(0,i.A)(r,p?"right":"left","".concat(h,"%")),(0,i.A)(r,p?"left":"right","auto"),(0,i.A)(r,"width","".concat(d,"%")),r),g=(0,o.A)((0,o.A)({},c),v);return l?(0,s.bF)("div",{class:f,style:g},null):null};_R.inheritAttrs=!1;var kR=_R,ER=function(e,t,n,r,o,i){(0,Dn.A)(!n||r>0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var a=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&r)for(var s=o;s<=i;s+=r)-1===a.indexOf(s)&&a.push(s);return a},OR=function(e,t){var n=t.attrs,r=n.prefixCls,a=n.vertical,u=n.reverse,c=n.marks,f=n.dots,d=n.step,h=n.included,p=n.lowerBound,v=n.upperBound,g=n.max,m=n.min,y=n.dotStyle,b=n.activeDotStyle,w=g-m,A=ER(a,c,f,d,m,g).map((function(e){var t,n="".concat(Math.abs(e-m)/w*100,"%"),c=!h&&e===v||h&&e<=v&&e>=p,f=a?(0,o.A)((0,o.A)({},y),{},(0,i.A)({},u?"top":"bottom",n)):(0,o.A)((0,o.A)({},y),{},(0,i.A)({},u?"right":"left",n));c&&(f=(0,o.A)((0,o.A)({},f),b));var d=(0,l.A)((t={},(0,i.A)(t,"".concat(r,"-dot"),!0),(0,i.A)(t,"".concat(r,"-dot-active"),c),(0,i.A)(t,"".concat(r,"-dot-reverse"),u),t));return(0,s.bF)("span",{class:d,style:f,key:e},null)}));return(0,s.bF)("div",{class:"".concat(r,"-step")},[A])};OR.inheritAttrs=!1;var FR=OR,TR=function(e,t){var n=t.attrs,r=t.slots,a=n.class,u=n.vertical,c=n.reverse,f=n.marks,d=n.included,h=n.upperBound,p=n.lowerBound,v=n.max,g=n.min,m=n.onClickLabel,y=Object.keys(f),b=r.mark,w=v-g,A=y.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var t,n="function"===typeof f[e]?f[e]():f[e],r="object"===(0,Ie.A)(n)&&!(0,B.zO)(n),v=r?n.label:n;if(!v&&0!==v)return null;b&&(v=b({point:e,label:v}));var y=!d&&e===h||d&&e<=h&&e>=p,A=(0,l.A)((t={},(0,i.A)(t,"".concat(a,"-text"),!0),(0,i.A)(t,"".concat(a,"-text-active"),y),t)),x=(0,i.A)({marginBottom:"-50%"},c?"top":"bottom","".concat((e-g)/w*100,"%")),C=(0,i.A)({transform:"translateX(".concat(c?"50%":"-50%",")"),msTransform:"translateX(".concat(c?"50%":"-50%",")")},c?"right":"left","".concat((e-g)/w*100,"%")),S=u?x:C,_=r?(0,o.A)((0,o.A)({},S),n.style):S,k=(0,i.A)({},Q?"onTouchstartPassive":"onTouchstart",(function(t){return m(t,e)}));return(0,s.bF)("span",(0,o.A)({class:A,style:_,key:e,onMousedown:function(t){return m(t,e)}},k),[v])}));return(0,s.bF)("div",{class:a},[A])};TR.inheritAttrs=!1;var PR=TR,NR=(0,s.pM)({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(e,t){var n=t.attrs,r=t.emit,a=t.expose,u=(0,s.KR)(!1),c=(0,s.KR)(),f=function(){document.activeElement===c.value&&(u.value=!0)},d=function(e){u.value=!1,r("blur",e)},h=function(){u.value=!1},p=function(){var e;null===(e=c.value)||void 0===e||e.focus()},v=function(){var e;null===(e=c.value)||void 0===e||e.blur()},g=function(){u.value=!0,p()},m=function(e){e.preventDefault(),p(),r("mousedown",e)};a({focus:p,blur:v,clickFocus:g,ref:c});var y=null;(0,s.sV)((function(){y=Z(document,"mouseup",f)})),(0,s.xo)((function(){var e;null===(e=y)||void 0===e||e.remove()}));var b=(0,s.EW)((function(){var t,n,r=e.vertical,o=e.offset,a=e.reverse;return r?(t={},(0,i.A)(t,a?"top":"bottom","".concat(o,"%")),(0,i.A)(t,a?"bottom":"top","auto"),(0,i.A)(t,"transform",a?null:"translateY(+50%)"),t):(n={},(0,i.A)(n,a?"right":"left","".concat(o,"%")),(0,i.A)(n,a?"left":"right","auto"),(0,i.A)(n,"transform","translateX(".concat(a?"+":"-","50%)")),n)}));return function(){var t,r=e.prefixCls,a=e.disabled,f=e.min,p=e.max,v=e.value,g=e.tabindex,y=e.ariaLabel,w=e.ariaLabelledBy,A=e.ariaValueTextFormatter,x=e.onMouseenter,C=e.onMouseleave,S=(0,l.A)(n.class,(0,i.A)({},"".concat(r,"-handle-click-focused"),u.value)),_={"aria-valuemin":f,"aria-valuemax":p,"aria-valuenow":v,"aria-disabled":!!a},k=[n.style,b.value],E=g||0;(a||null===g)&&(E=null),A&&(t=A(v));var O=(0,o.A)((0,o.A)((0,o.A)({},n),{},{role:"slider",tabindex:E},_),{},{class:S,onBlur:d,onKeydown:h,onMousedown:m,onMouseenter:x,onMouseleave:C,ref:c,style:k});return(0,s.bF)("div",(0,o.A)((0,o.A)({},O),{},{"aria-label":y,"aria-labelledby":w,"aria-valuetext":t}),null)}}});function MR(e,t){try{return Object.keys(t).some((function(n){return e.target===t[n].ref}))}catch(n){return!1}}function LR(e,t){var n=t.min,r=t.max;return e<n||e>r}function IR(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function RR(e,t){var n=t.marks,r=t.step,o=t.min,i=t.max,a=Object.keys(n).map(parseFloat);if(null!==r){var s=Math.pow(10,jR(r)),l=Math.floor((i*s-o*s)/(r*s)),u=Math.min((e-o)/r,l),c=Math.round(u)*r+o;a.push(c)}var f=a.map((function(t){return Math.abs(e-t)}));return a[f.indexOf(Math.min.apply(Math,(0,z.A)(f)))]}function jR(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function DR(e,t){var n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function BR(e,t){var n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function WR(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function zR(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function UR(e,t){var n=t.step,r=isFinite(RR(e,t))?RR(e,t):0;return null===n?r:parseFloat(r.toFixed(jR(n)))}function KR(e){e.stopPropagation(),e.preventDefault()}function VR(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}function HR(e,t,n){var r="increase",o="decrease",i=r;switch(e.keyCode){case Mo.UP:i=t&&n?o:r;break;case Mo.RIGHT:i=!t&&n?o:r;break;case Mo.DOWN:i=t&&n?r:o;break;case Mo.LEFT:i=!t&&n?r:o;break;case Mo.END:return function(e,t){return t.max};case Mo.HOME:return function(e,t){return t.min};case Mo.PAGE_UP:return function(e,t){return e+2*t.step};case Mo.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return VR(i,e,t)}}var qR=["index","directives","className","style"];function GR(){}function YR(e){var t={id:String,min:Number,max:Number,step:Number,marks:Fe.A.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:Fe.A.object,maximumTrackStyle:Fe.A.object,handleStyle:Fe.A.oneOfType([Fe.A.object,Fe.A.arrayOf(Fe.A.object)]),trackStyle:Fe.A.oneOfType([Fe.A.object,Fe.A.arrayOf(Fe.A.object)]),railStyle:Fe.A.object,dotStyle:Fe.A.object,activeDotStyle:Fe.A.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return(0,s.pM)({compatConfig:{MODE:3},name:"CreateSlider",mixins:[po,e],inheritAttrs:!1,slots:["mark"],props:Pe(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data:function(){var e=this.step,t=this.max,n=this.min,r=!isFinite(t-n)||(t-n)%e===0;return(0,Dn.A)(!e||Math.floor(e)!==e||r,"Slider[max] - Slider[min] (".concat(t-n,") should be a multiple of Slider[step] (").concat(e,")")),this.handlesRefs={},{}},mounted:function(){var e=this;this.$nextTick((function(){e.document=e.sliderRef&&e.sliderRef.ownerDocument;var t=e.autofocus,n=e.disabled;t&&!n&&e.focus()}))},beforeUnmount:function(){var e=this;this.$nextTick((function(){e.removeDocumentEvents()}))},methods:{defaultHandle:function(e){var t=e.index,n=(e.directives,e.className),r=e.style,i=(0,je.A)(e,qR);if(delete i.dragging,null===i.value)return null;var a=(0,o.A)((0,o.A)({},i),{},{class:n,style:r,key:t});return(0,s.bF)(NR,a,null)},onDown:function(e,t){var n=t,r=this.$props,o=r.draggableTrack,i=r.vertical,a=this.$data.bounds,s=o&&this.positionGetValue&&this.positionGetValue(n)||[],l=MR(e,this.handlesRefs);if(this.dragTrack=o&&a.length>=2&&!l&&!s.map((function(e,t){var n=!!t||e>=a[t];return t===s.length-1?e<=a[t]:n})).some((function(e){return!e})),this.dragTrack)this.dragOffset=n,this.startBounds=(0,z.A)(a);else{if(l){var u=WR(i,e.target);this.dragOffset=n-u,n=u}else this.dragOffset=0;this.onStart(n)}},onMouseDown:function(e){if(0===e.button){this.removeDocumentEvents();var t=this.$props.vertical,n=DR(t,e);this.onDown(e,n),this.addDocumentMouseEvents()}},onTouchStart:function(e){if(!IR(e)){var t=this.vertical,n=BR(t,e);this.onDown(e,n),this.addDocumentTouchEvents(),KR(e)}},onFocus:function(e){var t=this.vertical;if(MR(e,this.handlesRefs)&&!this.dragTrack){var n=WR(t,e.target);this.dragOffset=0,this.onStart(n),KR(e),this.$emit("focus",e)}},onBlur:function(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(e){if(this.sliderRef){var t=DR(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)}else this.onEnd()},onTouchMove:function(e){if(!IR(e)&&this.sliderRef){var t=BR(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)}else this.onEnd()},onKeyDown:function(e){this.sliderRef&&MR(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel:function(e,t){var n=this;e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},(function(){return n.onEnd(!0)}))},getSliderStart:function(){var e=this.sliderRef,t=this.vertical,n=this.reverse,r=e.getBoundingClientRect();return t?n?r.bottom:r.top:window.pageXOffset+(n?r.right:r.left)},getSliderLength:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=Z(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Z(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=Z(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Z(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var e;this.$props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()},blur:function(){var e=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach((function(t){var n,r;null===(n=e.handlesRefs[t])||void 0===n||null===(r=n.blur)||void 0===r||r.call(n)}))},calcValue:function(e){var t=this.vertical,n=this.min,r=this.max,o=Math.abs(Math.max(e,0)/this.getSliderLength()),i=t?(1-o)*(r-n)+n:o*(r-n)+n;return i},calcValueByPos:function(e){var t=this.reverse?-1:1,n=t*(e-this.getSliderStart()),r=this.trimAlignValue(this.calcValue(n));return r},calcOffset:function(e){var t=this.min,n=this.max,r=(e-t)/(n-t);return Math.max(0,100*r)},saveSlider:function(e){this.sliderRef=e},saveHandle:function(e,t){this.handlesRefs[e]=t}},render:function(){var e,t=this.prefixCls,n=this.marks,r=this.dots,a=this.step,u=this.included,c=this.disabled,f=this.vertical,d=this.reverse,h=this.min,p=this.max,v=this.maximumTrackStyle,g=this.railStyle,m=this.dotStyle,y=this.activeDotStyle,b=this.id,w=this.$attrs,A=w.class,x=w.style,C=this.renderSlider(),S=C.tracks,_=C.handles,k=(0,l.A)(t,A,(e={},(0,i.A)(e,"".concat(t,"-with-marks"),Object.keys(n).length),(0,i.A)(e,"".concat(t,"-disabled"),c),(0,i.A)(e,"".concat(t,"-vertical"),f),e)),E={vertical:f,marks:n,included:u,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:p,min:h,reverse:d,class:"".concat(t,"-mark"),onClickLabel:c?GR:this.onClickMarkLabel},O=(0,i.A)({},Q?"onTouchstartPassive":"onTouchstart",c?GR:this.onTouchStart);return(0,s.bF)("div",(0,o.A)((0,o.A)({id:b,ref:this.saveSlider,tabindex:"-1",class:k},O),{},{onMousedown:c?GR:this.onMouseDown,onMouseup:c?GR:this.onMouseUp,onKeydown:c?GR:this.onKeyDown,onFocus:c?GR:this.onFocus,onBlur:c?GR:this.onBlur,style:x}),[(0,s.bF)("div",{class:"".concat(t,"-rail"),style:(0,o.A)((0,o.A)({},v),g)},null),S,(0,s.bF)(FR,{prefixCls:t,vertical:f,reverse:d,marks:n,dots:r,step:a,included:u,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:p,min:h,dotStyle:m,activeDotStyle:y},null),_,(0,s.bF)(PR,E,{mark:this.$slots.mark}),(0,B.$c)(this)])}})}var $R=(0,s.pM)({compatConfig:{MODE:3},name:"Slider",mixins:[po],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:Fe.A.oneOfType([Fe.A.number,Fe.A.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var e=void 0!==this.defaultValue?this.defaultValue:this.min,t=void 0!==this.value?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler:function(e){this.setChangeValue(e)},deep:!0},min:function(){var e=this.sValue;this.setChangeValue(e)},max:function(){var e=this.sValue;this.setChangeValue(e)}},methods:{setChangeValue:function(e){var t=void 0!==e?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),LR(t,this.$props)&&this.$emit("change",n))},onChange:function(e){var t=!(0,B.cK)(this,"value"),n=e.sValue>this.max?(0,o.A)((0,o.A)({},e),{},{sValue:this.max}):e;t&&this.setState(n);var r=n.sValue;this.$emit("change",r)},onStart:function(e){this.setState({dragging:!0});var t=this.sValue;this.$emit("beforeChange",t);var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd:function(e){var t=this.dragging;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(e,t){KR(e);var n=this.sValue,r=this.calcValueByPos(t);r!==n&&this.onChange({sValue:r})},onKeyboard:function(e){var t=this.$props,n=t.reverse,r=t.vertical,o=HR(e,r,n);if(o){KR(e);var i=this.sValue,a=o(i,this.$props),s=this.trimAlignValue(a);if(s===i)return;this.onChange({sValue:s}),this.$emit("afterChange",s),this.onEnd()}},getLowerBound:function(){var e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound:function(){return this.$data.sValue<this.$props.startPoint?this.$props.startPoint:this.$data.sValue},trimAlignValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=(0,o.A)((0,o.A)({},this.$props),t),r=zR(e,n);return UR(r,n)},getTrack:function(e){var t=e.prefixCls,n=e.reverse,r=e.vertical,i=e.included,a=e.minimumTrackStyle,l=e.mergedTrackStyle,u=e.length,c=e.offset;return(0,s.bF)(kR,{class:"".concat(t,"-track"),vertical:r,included:i,offset:c,reverse:n,length:u,style:(0,o.A)((0,o.A)({},a),l)},null)},renderSlider:function(){var e=this,t=this.prefixCls,n=this.vertical,r=this.included,o=this.disabled,i=this.minimumTrackStyle,a=this.trackStyle,s=this.handleStyle,l=this.tabindex,u=this.ariaLabelForHandle,c=this.ariaLabelledByForHandle,f=this.ariaValueTextFormatterForHandle,d=this.min,h=this.max,p=this.startPoint,v=this.reverse,g=this.handle,m=this.defaultHandle,y=g||m,b=this.sValue,w=this.dragging,A=this.calcOffset(b),x=y({class:"".concat(t,"-handle"),prefixCls:t,vertical:n,offset:A,value:b,dragging:w,disabled:o,min:d,max:h,reverse:v,index:0,tabindex:l,ariaLabel:u,ariaLabelledBy:c,ariaValueTextFormatter:f,style:s[0]||s,ref:function(t){return e.saveHandle(0,t)},onFocus:this.onFocus,onBlur:this.onBlur}),C=void 0!==p?this.calcOffset(p):0,S=a[0]||a;return{tracks:this.getTrack({prefixCls:t,reverse:v,vertical:n,included:r,offset:C,minimumTrackStyle:i,mergedTrackStyle:S,length:A-C}),handles:x}}}}),XR=YR($R),JR=function(e){var t=e.value,n=e.handle,r=e.bounds,o=e.props,i=o.allowCross,a=o.pushable,s=Number(a),l=zR(t,o),u=l;return i||null==n||void 0===r||(n>0&&l<=r[n-1]+s&&(u=r[n-1]+s),n<r.length-1&&l>=r[n+1]-s&&(u=r[n+1]-s)),UR(u,o)},QR={defaultValue:Fe.A.arrayOf(Fe.A.number),value:Fe.A.arrayOf(Fe.A.number),count:Number,pushable:(0,Fe.t)(Fe.A.oneOfType([Fe.A.looseBool,Fe.A.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:Fe.A.arrayOf(Fe.A.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},ZR=(0,s.pM)({compatConfig:{MODE:3},name:"Range",mixins:[po],inheritAttrs:!1,props:Pe(QR,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var e=this,t=this.count,n=this.min,r=this.max,o=Array.apply(void 0,(0,z.A)(Array(t+1))).map((function(){return n})),i=(0,B.cK)(this,"defaultValue")?this.defaultValue:o,a=this.value;void 0===a&&(a=i);var s=a.map((function(t,n){return JR({value:t,handle:n,props:e.$props})})),l=s[0]===r?0:s.length-1;return{sHandle:null,recent:l,bounds:s}},watch:{value:{handler:function(e){var t=this.bounds;this.setChangeValue(e||t)},deep:!0},min:function(){var e=this.value;this.setChangeValue(e||this.bounds)},max:function(){var e=this.value;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue:function(e){var t=this,n=this.bounds,r=e.map((function(e,r){return JR({value:e,handle:r,bounds:n,props:t.$props})}));if(n.length===r.length){if(r.every((function(e,t){return e===n[t]})))return null}else r=e.map((function(e,n){return JR({value:e,handle:n,props:t.$props})}));if(this.setState({bounds:r}),e.some((function(e){return LR(e,t.$props)}))){var o=e.map((function(e){return zR(e,t.$props)}));this.$emit("change",o)}},onChange:function(e){var t=!(0,B.cK)(this,"value");if(t)this.setState(e);else{var n={};["sHandle","recent"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),Object.keys(n).length&&this.setState(n)}var r=(0,o.A)((0,o.A)({},this.$data),e),i=r.bounds;this.$emit("change",i)},positionGetValue:function(e){var t=this.getValue(),n=this.calcValueByPos(e),r=this.getClosestBound(n),o=this.getBoundNeedMoving(n,r),i=t[o];if(n===i)return null;var a=(0,z.A)(t);return a[o]=n,a},onStart:function(e){var t=this.bounds;this.$emit("beforeChange",t);var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;var r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});var o=t[this.prevMovedHandleIndex];if(n!==o){var i=(0,z.A)(t);i[this.prevMovedHandleIndex]=n,this.onChange({bounds:i})}},onEnd:function(e){var t=this.sHandle;this.removeDocumentEvents(),t||(this.dragTrack=!1),(null!==t||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(e,t,n,r){KR(e);var o=this.$data,i=this.$props,a=i.max||100,s=i.min||0;if(n){var l=i.vertical?-t:t;l=i.reverse?-l:l;var u=a-Math.max.apply(Math,(0,z.A)(r)),c=s-Math.min.apply(Math,(0,z.A)(r)),f=Math.min(Math.max(l/(this.getSliderLength()/100),c),u),d=r.map((function(e){return Math.floor(Math.max(Math.min(e+f,a),s))}));o.bounds.map((function(e,t){return e===d[t]})).some((function(e){return!e}))&&this.onChange({bounds:d})}else{var h=this.bounds,p=this.sHandle,v=this.calcValueByPos(t),g=h[p];v!==g&&this.moveTo(v)}},onKeyboard:function(e){var t=this.$props,n=t.reverse,r=t.vertical,o=HR(e,r,n);if(o){KR(e);var i=this.bounds,a=this.sHandle,s=i[null===a?this.recent:a],l=o(s,this.$props),u=JR({value:l,handle:a,bounds:i,props:this.$props});if(u===s)return;var c=!0;this.moveTo(u,c)}},getClosestBound:function(e){for(var t=this.bounds,n=0,r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n},getBoundNeedMoving:function(e,t){var n=this.bounds,r=this.recent,o=t,i=n[t+1]===n[t];return i&&n[r]===n[t]&&(o=r),i&&e!==n[t+1]&&(o=e<n[t+1]?t:t+1),o},getLowerBound:function(){return this.bounds[0]},getUpperBound:function(){var e=this.bounds;return e[e.length-1]},getPoints:function(){var e=this.marks,t=this.step,n=this.min,r=this.max,i=this.internalPointsCache;if(!i||i.marks!==e||i.step!==t){var a=(0,o.A)({},e);if(null!==t)for(var s=n;s<=r;s+=t)a[s]=s;var l=Object.keys(a).map(parseFloat);l.sort((function(e,t){return e-t})),this.internalPointsCache={marks:e,step:t,points:l}}return this.internalPointsCache.points},moveTo:function(e,t){var n=this,r=(0,z.A)(this.bounds),o=this.sHandle,i=this.recent,a=null===o?i:o;r[a]=e;var s=a;!1!==this.$props.pushable?this.pushSurroundingHandles(r,s):this.$props.allowCross&&(r.sort((function(e,t){return e-t})),s=r.indexOf(e)),this.onChange({recent:s,sHandle:s,bounds:r}),t&&(this.$emit("afterChange",r),this.setState({},(function(){n.handlesRefs[s].focus()})),this.onEnd())},pushSurroundingHandles:function(e,t){var n=e[t],r=this.pushable,o=Number(r),i=0;if(e[t+1]-n<o&&(i=1),n-e[t-1]<o&&(i=-1),0!==i){var a=t+i,s=i*(e[a]-n);this.pushHandle(e,a,i,o-s)||(e[t]=e[a]-i*o)}},pushHandle:function(e,t,n,r){var o=e[t],i=e[t];while(n*(i-o)<r){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;i=e[t]}return!0},pushHandleOnePoint:function(e,t,n){var r=this.getPoints(),o=r.indexOf(e[t]),i=o+n;if(i>=r.length||i<0)return!1;var a=t+n,s=r[i],l=this.pushable,u=Number(l),c=n*(e[a]-s);return!!this.pushHandle(e,a,n,u-c)&&(e[t]=s,!0)},trimAlignValue:function(e){var t=this.sHandle,n=this.bounds;return JR({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict:function(e,t,n){var r=n.allowCross,o=n.pushable,i=this.$data||{},a=i.bounds;if(e=void 0===e?i.sHandle:e,o=Number(o),!r&&null!=e&&void 0!==a){if(e>0&&t<=a[e-1]+o)return a[e-1]+o;if(e<a.length-1&&t>=a[e+1]-o)return a[e+1]-o}return t},getTrack:function(e){var t=e.bounds,n=e.prefixCls,r=e.reverse,o=e.vertical,a=e.included,u=e.offsets,c=e.trackStyle;return t.slice(0,-1).map((function(e,t){var f,d=t+1,h=(0,l.A)((f={},(0,i.A)(f,"".concat(n,"-track"),!0),(0,i.A)(f,"".concat(n,"-track-").concat(d),!0),f));return(0,s.bF)(kR,{class:h,vertical:o,reverse:r,included:a,offset:u[d-1],length:u[d]-u[d-1],style:c[t],key:d},null)}))},renderSlider:function(){var e=this,t=this.sHandle,n=this.bounds,r=this.prefixCls,o=this.vertical,a=this.included,s=this.disabled,u=this.min,c=this.max,f=this.reverse,d=this.handle,h=this.defaultHandle,p=this.trackStyle,v=this.handleStyle,g=this.tabindex,m=this.ariaLabelGroupForHandles,y=this.ariaLabelledByGroupForHandles,b=this.ariaValueTextFormatterGroupForHandles,w=d||h,A=n.map((function(t){return e.calcOffset(t)})),x="".concat(r,"-handle"),C=n.map((function(n,a){var d,h=g[a]||0;(s||null===g[a])&&(h=null);var p=t===a;return w({class:(0,l.A)((d={},(0,i.A)(d,x,!0),(0,i.A)(d,"".concat(x,"-").concat(a+1),!0),(0,i.A)(d,"".concat(x,"-dragging"),p),d)),prefixCls:r,vertical:o,dragging:p,offset:A[a],value:n,index:a,tabindex:h,min:u,max:c,reverse:f,disabled:s,style:v[a],ref:function(t){return e.saveHandle(a,t)},onFocus:e.onFocus,onBlur:e.onBlur,ariaLabel:m[a],ariaLabelledBy:y[a],ariaValueTextFormatter:b[a]})}));return{tracks:this.getTrack({bounds:n,prefixCls:r,reverse:f,vertical:o,included:a,offsets:A,trackStyle:p}),handles:C}}}}),ej=YR(ZR),tj=(0,s.pM)({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Rl(),setup:function(e,t){var n=t.attrs,r=t.slots,i=(0,s.KR)(null),a=(0,s.KR)(null);function l(){G.cancel(a.value),a.value=null}function u(){a.value=G((function(){var e;null===(e=i.value)||void 0===e||e.forcePopupAlign(),a.value=null}))}var c=function(){l(),e.visible&&u()};return(0,s.wB)([function(){return e.visible},function(){return e.title}],(function(){c()}),{flush:"post",immediate:!0}),(0,s.n)((function(){c()})),(0,s.xo)((function(){l()})),function(){return(0,s.bF)(Bl,(0,o.A)((0,o.A)({ref:i},e),n),r)}}}),nj=["value","dragging","index"],rj=["tooltipPrefixCls","range","id"],oj=function(e){return"number"===typeof e?e.toString():""},ij=function(){return{id:String,prefixCls:String,tooltipPrefixCls:String,range:{type:[Boolean,Object],default:void 0},reverse:{type:Boolean,default:void 0},min:Number,max:Number,step:{type:[Number,Object]},marks:{type:Object},dots:{type:Boolean,default:void 0},value:{type:[Number,Array]},defaultValue:{type:[Number,Array]},included:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},tipFormatter:{type:[Function,Object],default:function(){return oj}},tooltipVisible:{type:Boolean,default:void 0},tooltipPlacement:{type:String},getTooltipPopupContainer:{type:Function},autofocus:{type:Boolean,default:void 0},handleStyle:{type:[Object,Array]},trackStyle:{type:[Object,Array]},onChange:{type:Function},onAfterChange:{type:Function},onFocus:{type:Function},onBlur:{type:Function},"onUpdate:value":{type:Function}}},aj=(0,s.pM)({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:ij(),slots:["mark"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.emit,u=t.expose,c=(0,se.A)("slider",e),f=c.prefixCls,d=c.rootPrefixCls,h=c.direction,p=c.getPopupContainer,v=c.configProvider,g=ws(),m=(0,s.KR)(),y=(0,s.KR)({}),b=function(e,t){y.value[e]=t},w=(0,s.EW)((function(){return e.tooltipPlacement?e.tooltipPlacement:e.vertical?"rtl"===h.value?"left":"right":"top"})),A=function(){var e;null===(e=m.value)||void 0===e||e.focus()},x=function(){var e;null===(e=m.value)||void 0===e||e.blur()},C=function(e){a("update:value",e),a("change",e),g.onFieldChange()},S=function(e){a("blur",e)};u({focus:A,blur:x});var _=function(t){var n=t.tooltipPrefixCls,r=t.info,i=r.value,a=r.dragging,l=r.index,u=(0,je.A)(r,nj),c=e.tipFormatter,h=e.tooltipVisible,v=e.getTooltipPopupContainer,g=!!c&&(y.value[l]||a),m=h||void 0===h&&g;return(0,s.bF)(tj,{prefixCls:n,title:c?c(i):"",visible:m,placement:w.value,transitionName:"".concat(d.value,"-zoom-down"),key:l,overlayClassName:"".concat(f.value,"-tooltip"),getPopupContainer:v||p.value},{default:function(){return[(0,s.bF)(NR,(0,o.A)((0,o.A)({},u),{},{value:i,onMouseenter:function(){return b(l,!0)},onMouseleave:function(){return b(l,!1)}}),null)]}})};return function(){var t,a=e.tooltipPrefixCls,u=e.range,c=e.id,d=void 0===c?g.id.value:c,p=(0,je.A)(e,rj),y=v.getPrefixCls("tooltip",a),b=(0,l.A)(n.class,(0,i.A)({},"".concat(f.value,"-rtl"),"rtl"===h.value));return"rtl"!==h.value||p.vertical||(p.reverse=!p.reverse),"object"===(0,Ie.A)(u)&&(t=u.draggableTrack),u?(0,s.bF)(ej,(0,o.A)((0,o.A)({},p),{},{step:p.step,draggableTrack:t,class:b,ref:m,handle:function(e){return _({tooltipPrefixCls:y,prefixCls:f.value,info:e})},prefixCls:f.value,onChange:C,onBlur:S}),{mark:r.mark}):(0,s.bF)(XR,(0,o.A)((0,o.A)({},p),{},{id:d,step:p.step,class:b,ref:m,handle:function(e){return _({tooltipPrefixCls:y,prefixCls:f.value,info:e})},prefixCls:f.value,onChange:C,onBlur:S}),{mark:r.mark})}}}),sj=(0,$.GU)(aj),lj={small:8,middle:16,large:24},uj=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:Fe.A.oneOf((0,$.PV)("horizontal","vertical")).def("horizontal"),align:Fe.A.oneOf((0,$.PV)("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function cj(e){return"string"===typeof e?lj[e]:e||0}var fj=(0,s.pM)({compatConfig:{MODE:3},name:"ASpace",props:uj(),slots:["split"],setup:function(e,t){var n=t.slots,r=(0,se.A)("space",e),a=r.prefixCls,u=r.space,c=r.direction,f=Qy(),d=(0,s.EW)((function(){var t,n,r;return null!==(t=null!==(n=e.size)&&void 0!==n?n:null===(r=u.value)||void 0===r?void 0:r.size)&&void 0!==t?t:"small"})),h=(0,s.KR)(),p=(0,s.KR)();(0,s.wB)(d,(function(){var e=(Array.isArray(d.value)?d.value:[d.value,d.value]).map((function(e){return cj(e)})),t=(0,Re.A)(e,2);h.value=t[0],p.value=t[1]}),{immediate:!0});var v=(0,s.EW)((function(){return void 0===e.align&&"horizontal"===e.direction?"center":e.align})),g=(0,s.EW)((function(){var t;return(0,l.A)(a.value,"".concat(a.value,"-").concat(e.direction),(t={},(0,i.A)(t,"".concat(a.value,"-rtl"),"rtl"===c.value),(0,i.A)(t,"".concat(a.value,"-align-").concat(v.value),v.value),t))})),m=(0,s.EW)((function(){return"rtl"===c.value?"marginLeft":"marginRight"})),y=(0,s.EW)((function(){var t={};return f.value&&(t.columnGap="".concat(h.value,"px"),t.rowGap="".concat(p.value,"px")),(0,o.A)((0,o.A)({},t),e.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-p.value,"px")})}));return function(){var t,r,l=e.wrap,u=e.direction,c=void 0===u?"horizontal":u,d=null===(t=n.default)||void 0===t?void 0:t.call(n),v=(0,B.Gk)(d),b=v.length;if(0===b)return null;var w=null===(r=n.split)||void 0===r?void 0:r.call(n),A="".concat(a.value,"-item"),x=h.value,C=b-1;return(0,s.bF)("div",{class:g.value,style:y.value},[v.map((function(e,t){var n=d.indexOf(e),r={};return f.value||("vertical"===c?t<C&&(r={marginBottom:"".concat(x/(w?2:1),"px")}):r=(0,o.A)((0,o.A)({},t<C&&(0,i.A)({},m.value,"".concat(x/(w?2:1),"px"))),l&&{paddingBottom:"".concat(p.value,"px")})),(0,s.bF)(s.FK,{key:n},[(0,s.bF)("div",{class:A,style:r},[e]),t<C&&w&&(0,s.bF)("span",{class:"".concat(A,"-split"),style:r},[w])])}))])}}}),dj=(0,$.GU)(fj),hj=["prefixCls"],pj=(0,s.pM)({compatConfig:{MODE:3},name:"Steps",props:{type:Fe.A.string.def("default"),prefixCls:Fe.A.string.def("vc-steps"),iconPrefix:Fe.A.string.def("vc"),direction:Fe.A.string.def("horizontal"),labelPlacement:Fe.A.string.def("horizontal"),status:Fe.A.string.def("process"),size:Fe.A.string.def(""),progressDot:Fe.A.oneOfType([Fe.A.looseBool,Fe.A.func]).def(void 0),initial:Fe.A.number.def(0),current:Fe.A.number.def(0),icons:Fe.A.shape({finish:Fe.A.any,error:Fe.A.any}).loose,stepIcon:Function},slots:["stepIcon","progressDot"],emits:["change"],setup:function(e,t){var n=t.slots,r=t.emit,a=function(t){var n=e.current;n!==t&&r("change",t)};return function(){var t,r,u=e.prefixCls,c=e.direction,f=e.type,d=e.labelPlacement,h=e.iconPrefix,p=e.status,v=e.size,g=e.current,m=e.progressDot,y=void 0===m?n.progressDot:m,b=e.initial,w=e.icons,A=e.stepIcon,x=void 0===A?n.stepIcon:A,C="navigation"===f,S=y?"vertical":d,_=(0,l.A)(u,"".concat(u,"-").concat(c),(t={},(0,i.A)(t,"".concat(u,"-").concat(v),v),(0,i.A)(t,"".concat(u,"-label-").concat(S),"horizontal"===c),(0,i.A)(t,"".concat(u,"-dot"),!!y),(0,i.A)(t,"".concat(u,"-navigation"),C),t)),k=(0,B.Gk)(null===(r=n.default)||void 0===r?void 0:r.call(n));return(0,s.bF)("div",{class:_},[k.map((function(e,t){var n=e.props||{},r=n.prefixCls,i=void 0===r?u:r,s=(0,je.A)(n,hj),l=b+t,c=(0,o.A)((0,o.A)({},s),{},{stepNumber:l+1,stepIndex:l,key:l,prefixCls:i,iconPrefix:h,progressDot:y,icons:w,stepIcon:x,onStepClick:a});return"error"===p&&t===g-1&&(c.class="".concat(u,"-next-error")),s.status||(c.status=l===g?p:l<g?"finish":"wait"),c.active=l===g,Bn(e,c)}))])}}}),vj=pj;function gj(e){return"string"===typeof e}function mj(){}var yj=function(){return{prefixCls:String,wrapperStyle:{type:Object,default:void 0},itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:String,iconPrefix:String,icon:Fe.A.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:Fe.A.any,title:Fe.A.any,subTitle:Fe.A.any,progressDot:(0,Fe.t)(Fe.A.oneOfType([Fe.A.looseBool,Fe.A.func])),tailContent:Fe.A.any,icons:Fe.A.shape({finish:Fe.A.any,error:Fe.A.any}).loose,onClick:Function,onStepClick:Function,stepIcon:Function}},bj=(0,s.pM)({compatConfig:{MODE:3},name:"Step",props:yj(),slots:["title","subTitle","description","tailContent","stepIcon","progressDot"],emits:["click","stepClick"],setup:function(e,t){var n=t.slots,r=t.emit,a=function(t){r("click",t),r("stepClick",e.stepIndex)},l=function(t){var r,o,a=t.icon,l=t.title,u=t.description,c=e.prefixCls,f=e.stepNumber,d=e.status,h=e.iconPrefix,p=e.icons,v=e.progressDot,g=void 0===v?n.progressDot:v,m=e.stepIcon,y=void 0===m?n.stepIcon:m,b=(r={},(0,i.A)(r,"".concat(c,"-icon"),!0),(0,i.A)(r,"".concat(h,"icon"),!0),(0,i.A)(r,"".concat(h,"icon-").concat(a),a&&gj(a)),(0,i.A)(r,"".concat(h,"icon-check"),!a&&"finish"===d&&p&&!p.finish),(0,i.A)(r,"".concat(h,"icon-close"),!a&&"error"===d&&p&&!p.error),r),w=(0,s.bF)("span",{class:"".concat(c,"-icon-dot")},null);return o=g?"function"===typeof g?(0,s.bF)("span",{class:"".concat(c,"-icon")},[g({iconDot:w,index:f-1,status:d,title:l,description:u,prefixCls:c})]):(0,s.bF)("span",{class:"".concat(c,"-icon")},[w]):a&&!gj(a)?(0,s.bF)("span",{class:"".concat(c,"-icon")},[a]):p&&p.finish&&"finish"===d?(0,s.bF)("span",{class:"".concat(c,"-icon")},[p.finish]):p&&p.error&&"error"===d?(0,s.bF)("span",{class:"".concat(c,"-icon")},[p.error]):a||"finish"===d||"error"===d?(0,s.bF)("span",{class:b},null):(0,s.bF)("span",{class:"".concat(c,"-icon")},[f]),y&&(o=y({index:f-1,status:d,title:l,description:u,node:o})),o};return function(){var t,r,u,c,f,d=e.prefixCls,h=e.itemWidth,p=e.active,v=e.status,g=void 0===v?"wait":v,m=e.tailContent,y=e.adjustMarginRight,b=e.disabled,w=e.title,A=void 0===w?null===(t=n.title)||void 0===t?void 0:t.call(n):w,x=e.description,C=void 0===x?null===(r=n.description)||void 0===r?void 0:r.call(n):x,S=e.subTitle,_=void 0===S?null===(u=n.subTitle)||void 0===u?void 0:u.call(n):S,k=e.icon,E=void 0===k?null===(c=n.icon)||void 0===c?void 0:c.call(n):k,O=e.onClick,F=e.onStepClick,T=(f={},(0,i.A)(f,"".concat(d,"-item"),!0),(0,i.A)(f,"".concat(d,"-item-").concat(g),!0),(0,i.A)(f,"".concat(d,"-item-custom"),E),(0,i.A)(f,"".concat(d,"-item-active"),p),(0,i.A)(f,"".concat(d,"-item-disabled"),!0===b),f),P={class:T},N={};h&&(N.width=h),y&&(N.marginRight=y);var M={onClick:O||mj};return F&&!b&&(M.role="button",M.tabindex=0,M.onClick=a),(0,s.bF)("div",(0,o.A)((0,o.A)({},P),{},{style:N}),[(0,s.bF)("div",(0,o.A)((0,o.A)({},M),{},{class:"".concat(d,"-item-container")}),[(0,s.bF)("div",{class:"".concat(d,"-item-tail")},[m]),(0,s.bF)("div",{class:"".concat(d,"-item-icon")},[l({icon:E,title:A,description:C})]),(0,s.bF)("div",{class:"".concat(d,"-item-content")},[(0,s.bF)("div",{class:"".concat(d,"-item-title")},[A,_&&(0,s.bF)("div",{title:_,class:"".concat(d,"-item-subtitle")},[_])]),C&&(0,s.bF)("div",{class:"".concat(d,"-item-description")},[C])])])])}}}),wj=function(){return{prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:{type:Boolean,default:void 0},labelPlacement:String,status:String,size:String,direction:String,progressDot:{type:[Boolean,Function],default:void 0},type:String,onChange:Function,"onUpdate:current":Function}},Aj=(0,s.pM)({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:Pe(wj(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:["progressDot"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.emit,u=(0,se.A)("steps",e),c=u.prefixCls,f=u.direction,d=u.configProvider,h=il(),p=(0,s.EW)((function(){return e.responsive&&h.value.xs?"vertical":e.direction})),v=(0,s.EW)((function(){return d.getPrefixCls("",e.iconPrefix)})),g=function(e){a("update:current",e),a("change",e)},m=function(t){var n=t.node,r=t.status;if("process"===r&&void 0!==e.percent){var o="small"===e.size?32:40,i=(0,s.bF)("div",{class:"".concat(c,"-progress-icon")},[(0,s.bF)(PI,{type:"circle",percent:e.percent,width:o,strokeWidth:4,format:function(){return null}},null),n]);return i}return n};return function(){var t,a=(0,l.A)((t={},(0,i.A)(t,"".concat(c.value,"-rtl"),"rtl"===f.value),(0,i.A)(t,"".concat(c.value,"-with-progress"),void 0!==e.percent),t),n.class),u={finish:(0,s.bF)(is,{class:"".concat(c,"-finish-icon")},null),error:(0,s.bF)(as.A,{class:"".concat(c,"-error-icon")},null)};return(0,s.bF)(vj,(0,o.A)((0,o.A)({icons:u},ce(e,["percent","responsive"])),{},{direction:p.value,prefixCls:c.value,iconPrefix:v.value,class:a,onChange:g}),(0,o.A)((0,o.A)({},r),{},{stepIcon:m}))}}}),xj=(0,s.pM)((0,o.A)((0,o.A)({compatConfig:{MODE:3}},bj),{},{name:"AStep",props:yj()})),Cj=(0,a.A)(Aj,{Step:xj,install:function(e){return e.component(Aj.name,Aj),e.component(xj.name,xj),e}}),Sj=(0,$.PV)("small","default"),_j=function(){return{id:String,prefixCls:String,size:Fe.A.oneOf(Sj),disabled:{type:Boolean,default:void 0},checkedChildren:Fe.A.any,unCheckedChildren:Fe.A.any,tabindex:Fe.A.oneOfType([Fe.A.string,Fe.A.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:Fe.A.oneOfType([Fe.A.string,Fe.A.number,Fe.A.looseBool]),checkedValue:Fe.A.oneOfType([Fe.A.string,Fe.A.number,Fe.A.looseBool]).def(!0),unCheckedValue:Fe.A.oneOfType([Fe.A.string,Fe.A.number,Fe.A.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}},kj=(0,s.pM)({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:_j(),slots:["checkedChildren","unCheckedChildren"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.expose,l=t.emit,u=ws();(0,s.KC)((function(){(0,Dn.A)(!("defaultChecked"in n),"Switch","'defaultChecked' is deprecated, please use 'v-model:checked'"),(0,Dn.A)(!("value"in n),"Switch","`value` is not validate prop, do you mean `checked`?")}));var c=(0,s.KR)(void 0!==e.checked?e.checked:n.defaultChecked),f=(0,s.EW)((function(){return c.value===e.checkedValue}));(0,s.wB)((function(){return e.checked}),(function(){c.value=e.checked}));var d=(0,se.A)("switch",e),h=d.prefixCls,p=d.direction,v=d.size,g=(0,s.KR)(),m=function(){var e;null===(e=g.value)||void 0===e||e.focus()},y=function(){var e;null===(e=g.value)||void 0===e||e.blur()};a({focus:m,blur:y}),(0,s.sV)((function(){(0,s.dY)((function(){e.autofocus&&!e.disabled&&g.value.focus()}))}));var b=function(t,n){e.disabled||(l("update:checked",t),l("change",t,n),u.onFieldChange())},w=function(e){l("blur",e)},A=function(t){m();var n=f.value?e.unCheckedValue:e.checkedValue;b(n,t),l("click",n,t)},x=function(t){t.keyCode===Mo.LEFT?b(e.unCheckedValue,t):t.keyCode===Mo.RIGHT&&b(e.checkedValue,t),l("keydown",t)},C=function(e){var t;null===(t=g.value)||void 0===t||t.blur(),l("mouseup",e)},S=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(h.value,"-small"),"small"===v.value),(0,i.A)(t,"".concat(h.value,"-loading"),e.loading),(0,i.A)(t,"".concat(h.value,"-checked"),f.value),(0,i.A)(t,"".concat(h.value,"-disabled"),e.disabled),(0,i.A)(t,h.value,!0),(0,i.A)(t,"".concat(h.value,"-rtl"),"rtl"===p.value),t}));return function(){var t;return(0,s.bF)(Ru,{insertExtraNode:!0},{default:function(){return[(0,s.bF)("button",(0,o.A)((0,o.A)((0,o.A)({},ce(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:null!==(t=e.id)&&void 0!==t?t:u.id.value,onKeydown:x,onClick:A,onBlur:w,onMouseup:C,type:"button",role:"switch","aria-checked":c.value,disabled:e.disabled||e.loading,class:[n.class,S.value],ref:g}),[(0,s.bF)("div",{class:"".concat(h.value,"-handle")},[e.loading?(0,s.bF)(Za.A,{class:"".concat(h.value,"-loading-icon")},null):null]),(0,s.bF)("span",{class:"".concat(h.value,"-inner")},[f.value?(0,B.rU)(r,e,"checkedChildren"):(0,B.rU)(r,e,"unCheckedChildren")])])]}})}}}),Ej=(0,$.GU)(kj),Oj=Symbol("TableContextProps"),Fj=function(e){(0,s.Gt)(Oj,e)},Tj=function(){return(0,s.WQ)(Oj,{})},Pj="RC_TABLE_KEY";function Nj(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function Mj(e,t){if(!t&&"number"!==typeof t)return e;for(var n=Nj(t),r=e,o=0;o<n.length;o+=1){if(!r)return null;var i=n[o];r=r[i]}return r}function Lj(e){var t=[],n={};return e.forEach((function(e){var r=e||{},o=r.key,i=r.dataIndex,a=o||Nj(i).join("-")||Pj;while(n[a])a="".concat(a,"_next");n[a]=!0,t.push(a)})),t}function Ij(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(r){var o=n[r];o&&"object"===(0,Ie.A)(o)?(e[r]=e[r]||{},t(e[r],o)):e[r]=o}))}for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.forEach((function(n){t(e,n)})),e}function Rj(e){return null!==e&&void 0!==e}var jj=Symbol("SlotsContextProps"),Dj=function(e){(0,s.Gt)(jj,e)},Bj=function(){return(0,s.WQ)(jj,(0,s.EW)((function(){return{}})))},Wj=Symbol("ContextProps"),zj=function(e){(0,s.Gt)(Wj,e)},Uj=function(){return(0,s.WQ)(Wj,{onResizeColumn:function(){}})},Kj="RC_TABLE_INTERNAL_COL_DEFINE";var Vj=Symbol("HoverContextProps"),Hj=function(e){(0,s.Gt)(Vj,e)},qj=function(){return(0,s.WQ)(Vj,{startRow:(0,s.KR)(-1),endRow:(0,s.KR)(-1),onHover:function(){}})},Gj=(0,s.KR)(!1),Yj=function(){(0,s.sV)((function(){Gj.value=Gj.value||Jy("position","sticky")}))},$j=function(){return Gj},Xj=["colSpan","rowSpan","style","class"];function Jj(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function Qj(e){return e&&"object"===(0,Ie.A)(e)&&!Array.isArray(e)&&!(0,s.vv)(e)}var Zj=(0,s.pM)({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],slots:["appendNode"],setup:function(e,t){var n=t.slots,r=Bj(),a=qj(),u=a.onHover,c=a.startRow,f=a.endRow,d=(0,s.EW)((function(){var t,n,r,o;return null!==(t=null!==(n=e.colSpan)&&void 0!==n?n:null===(r=e.additionalProps)||void 0===r?void 0:r.colSpan)&&void 0!==t?t:null===(o=e.additionalProps)||void 0===o?void 0:o.colspan})),h=(0,s.EW)((function(){var t,n,r,o;return null!==(t=null!==(n=e.rowSpan)&&void 0!==n?n:null===(r=e.additionalProps)||void 0===r?void 0:r.rowSpan)&&void 0!==t?t:null===(o=e.additionalProps)||void 0===o?void 0:o.rowspan})),p=fl((function(){var t=e.index;return Jj(t,h.value||1,c.value,f.value)})),v=$j(),g=function(t,n){var r,o=e.record,i=e.index,a=e.additionalProps;o&&u(i,i+n-1),null===a||void 0===a||null===(r=a.onMouseenter)||void 0===r||r.call(a,t)},m=function(t){var n,r=e.record,o=e.additionalProps;r&&u(-1,-1),null===o||void 0===o||null===(n=o.onMouseleave)||void 0===n||n.call(o,t)},y=function e(t){var n=(0,B.Gk)(t)[0];return(0,s.vv)(n)?n.type===s.EY?n.children:Array.isArray(n.children)?e(n.children):void 0:n};return function(){var t,a,u,c,f,b,w,A,x=e.prefixCls,C=e.record,S=e.index,_=e.renderIndex,k=e.dataIndex,E=e.customRender,O=e.component,F=void 0===O?"td":O,T=e.fixLeft,P=e.fixRight,N=e.firstFixLeft,M=e.lastFixLeft,L=e.firstFixRight,I=e.lastFixRight,R=e.appendNode,j=void 0===R?null===(t=n.appendNode)||void 0===t?void 0:t.call(n):R,D=e.additionalProps,W=void 0===D?{}:D,z=e.ellipsis,U=e.align,K=e.rowType,V=e.isSticky,H=e.column,q=void 0===H?{}:H,G=e.cellType,Y="".concat(x,"-cell"),$=null===(a=n.default)||void 0===a?void 0:a.call(n);if(Rj($)||"header"===G)A=$;else{var X,J=Mj(C,k);if(A=J,E){var Q=E({text:J,value:J,record:C,index:S,renderIndex:_,column:q.__originColumn__});Qj(Q)?(A=Q.children,w=Q.props):A=Q}if(!(Kj in q)&&"body"===G&&r.value.bodyCell&&(null===(X=q.slots)||void 0===X||!X.customRender)){var Z=(0,s.RG)(r.value,"bodyCell",{text:J,value:J,record:C,index:S,column:q.__originColumn__},(function(){var e=void 0===A?J:A;return["object"===(0,Ie.A)(e)&&(0,B.zO)(e)||"object"!==(0,Ie.A)(e)?e:null]}));A=(0,B.MI)(Z)}e.transformCellText&&(A=e.transformCellText({text:A,record:C,index:S,column:q.__originColumn__}))}if("object"!==(0,Ie.A)(A)||Array.isArray(A)||(0,s.vv)(A)||(A=null),z&&(M||L)){(function(){})();A=(0,s.bF)("span",{class:"".concat(Y,"-content")},[A])}Array.isArray(A)&&1===A.length&&(A=A[0]);var ee=w||{},te=ee.colSpan,ne=ee.rowSpan,re=ee.style,oe=ee.class,ie=(0,je.A)(ee,Xj),ae=null!==(u=void 0!==te?te:d.value)&&void 0!==u?u:1,se=null!==(c=void 0!==ne?ne:h.value)&&void 0!==c?c:1;if(0===ae||0===se)return null;var le={},ue="number"===typeof T&&v.value,ce="number"===typeof P&&v.value;ue&&(le.position="sticky",le.left="".concat(T,"px")),ce&&(le.position="sticky",le.right="".concat(P,"px"));var fe,de={};U&&(de.textAlign=U);var he=!0===z?{showTitle:!0}:z;he&&(he.showTitle||"header"===K)&&("string"===typeof A||"number"===typeof A?fe=A.toString():(0,s.vv)(A)&&(fe=y([A])));var pe=(0,o.A)((0,o.A)((0,o.A)({title:fe},ie),W),{},{colSpan:1!==ae?ae:null,rowSpan:1!==se?se:null,class:(0,l.A)(Y,(f={},(0,i.A)(f,"".concat(Y,"-fix-left"),ue&&v.value),(0,i.A)(f,"".concat(Y,"-fix-left-first"),N&&v.value),(0,i.A)(f,"".concat(Y,"-fix-left-last"),M&&v.value),(0,i.A)(f,"".concat(Y,"-fix-right"),ce&&v.value),(0,i.A)(f,"".concat(Y,"-fix-right-first"),L&&v.value),(0,i.A)(f,"".concat(Y,"-fix-right-last"),I&&v.value),(0,i.A)(f,"".concat(Y,"-ellipsis"),z),(0,i.A)(f,"".concat(Y,"-with-append"),j),(0,i.A)(f,"".concat(Y,"-fix-sticky"),(ue||ce)&&V&&v.value),(0,i.A)(f,"".concat(Y,"-row-hover"),!w&&p.value),f),W.class,oe),onMouseenter:function(e){g(e,se)},onMouseleave:m,style:(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},(0,B.ul)(W.style)),de),le),re)});return(0,s.bF)(F,pe,{default:function(){return[j,A,null===(b=n.dragHandle)||void 0===b?void 0:b.call(n)]}})}}});function eD(e,t,n,r,o){var i,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?i=r.left[e]:"right"===l.fixed&&(a=r.right[t]);var u=!1,c=!1,f=!1,d=!1,h=n[t+1],p=n[e-1];if("rtl"===o){if(void 0!==i){var v=p&&"left"===p.fixed;d=!v}else if(void 0!==a){var g=h&&"right"===h.fixed;f=!g}}else if(void 0!==i){var m=h&&"left"===h.fixed;u=!m}else if(void 0!==a){var y=p&&"right"===p.fixed;c=!y}return{fixLeft:i,fixRight:a,lastFixLeft:u,firstFixRight:c,lastFixRight:f,firstFixLeft:d,isSticky:r.isSticky}}var tD={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},nD=50,rD=(0,s.pM)({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:nD},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup:function(e){var t=0,n={remove:function(){}},r={remove:function(){}},a=function(){n.remove(),r.remove()};(0,s.hi)((function(){a()})),(0,s.nT)((function(){(0,Wu.A)(!isNaN(e.width),"Table","width must be a number when use resizable")}));var l,u=Uj(),c=u.onResizeColumn,f=(0,s.EW)((function(){return"number"!==typeof e.minWidth||isNaN(e.minWidth)?nD:e.minWidth})),d=(0,s.EW)((function(){return"number"!==typeof e.maxWidth||isNaN(e.maxWidth)?1/0:e.maxWidth})),h=(0,s.nI)(),p=0,v=(0,s.KR)(!1),g=function(n){var r=0;r=n.touches?n.touches.length?n.touches[0].pageX:n.changedTouches[0].pageX:n.pageX;var o=t-r,i=Math.max(p-o,f.value);i=Math.min(i,d.value),G.cancel(l),l=G((function(){c(i,e.column.__originColumn__)}))},m=function(e){g(e)},y=function(e){v.value=!1,g(e),a()},b=function(e,o){v.value=!0,a(),p=h.vnode.el.parentNode.getBoundingClientRect().width,e instanceof MouseEvent&&1!==e.which||(e.stopPropagation&&e.stopPropagation(),t=e.touches?e.touches[0].pageX:e.pageX,n=Z(document.documentElement,o.move,m),r=Z(document.documentElement,o.stop,y))},w=function(e){e.stopPropagation(),e.preventDefault(),b(e,tD.mouse)},A=function(e){e.stopPropagation(),e.preventDefault(),b(e,tD.touch)},x=function(e){e.stopPropagation(),e.preventDefault()};return function(){var t=e.prefixCls,n=(0,i.A)({},Q?"onTouchstartPassive":"onTouchstart",(function(e){return A(e)}));return(0,s.bF)("div",(0,o.A)((0,o.A)({class:"".concat(t,"-resize-handle ").concat(v.value?"dragging":""),onMousedown:w},n),{},{onClick:x}),[(0,s.bF)("div",{class:"".concat(t,"-resize-handle-line")},null)])}}}),oD=(0,s.pM)({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup:function(e){var t=Tj();return function(){var n,r=t.prefixCls,i=t.direction,a=e.cells,l=e.stickyOffsets,u=e.flattenColumns,c=e.rowComponent,f=e.cellComponent,d=e.customHeaderRow,h=e.index;d&&(n=d(a.map((function(e){return e.column})),h));var p=Lj(a.map((function(e){return e.column})));return(0,s.bF)(c,n,{default:function(){return[a.map((function(e,t){var n,a=e.column,c=eD(e.colStart,e.colEnd,u,l,i);a&&a.customHeaderCell&&(n=e.column.customHeaderCell(a));var d=a;return(0,s.bF)(Zj,(0,o.A)((0,o.A)((0,o.A)({},e),{},{cellType:"header",ellipsis:a.ellipsis,align:a.align,component:f,prefixCls:r,key:p[t]},c),{},{additionalProps:n,rowType:"header",column:a}),{default:function(){return a.title},dragHandle:function(){return d.resizable?(0,s.bF)(rD,{prefixCls:r,width:d.width,minWidth:d.minWidth,maxWidth:d.maxWidth,column:d},null):null}})}))]}})}}});function iD(e){var t=[];function n(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=e.filter(Boolean).map((function(e){var r={key:e.key,class:(0,l.A)(e.className,e.class),column:e,colStart:i},a=1,s=e.children;return s&&s.length>0&&(a=n(s,i,o+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in e&&(a=e.colSpan),"rowSpan"in e&&(r.rowSpan=e.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a}));return a}n(e,0);for(var r=t.length,o=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=r-e)}))},i=0;i<r;i+=1)o(i);return t}var aD=(0,s.pM)({name:"Header",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup:function(e){var t=Tj(),n=(0,s.EW)((function(){return iD(e.columns)}));return function(){var r=t.prefixCls,o=t.getComponent,i=e.stickyOffsets,a=e.flattenColumns,l=e.customHeaderRow,u=o(["header","wrapper"],"thead"),c=o(["header","row"],"tr"),f=o(["header","cell"],"th");return(0,s.bF)(u,{class:"".concat(r,"-thead")},{default:function(){return[n.value.map((function(e,t){var n=(0,s.bF)(oD,{key:t,flattenColumns:a,cells:e,stickyOffsets:i,rowComponent:c,cellComponent:f,customHeaderRow:l,index:t},null);return n}))]}})}}}),sD=Symbol("ExpandedRowProps"),lD=function(e){(0,s.Gt)(sD,e)},uD=function(){return(0,s.WQ)(sD,{})},cD=(0,s.pM)({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup:function(e,t){var n=t.slots,r=t.attrs,o=Tj(),i=uD(),a=i.fixHeader,l=i.fixColumn,u=i.componentWidth,c=i.horizonScroll;return function(){var t=e.prefixCls,i=e.component,f=e.cellComponent,d=e.expanded,h=e.colSpan,p=e.isEmpty;return(0,s.bF)(i,{class:r.class,style:{display:d?null:"none"}},{default:function(){return[(0,s.bF)(Zj,{component:f,prefixCls:t,colSpan:h},{default:function(){var e,r=null===(e=n.default)||void 0===e?void 0:e.call(n);if(p?c.value:l.value){(function(){})();r=(0,s.bF)("div",{style:{width:"".concat(u.value-(a.value?o.scrollbarSize:0),"px"),position:"sticky",left:0,overflow:"hidden"},class:"".concat(t,"-expanded-row-fixed")},[r])}return r}})]}})}}}),fD=(0,s.pM)({name:"MeasureCell",props:["columnKey"],setup:function(e,t){var n=t.emit,r=(0,s.KR)();return(0,s.sV)((function(){r.value&&n("columnResize",e.columnKey,r.value.offsetWidth)})),function(){return(0,s.bF)(W,{onResize:function(t){var r=t.offsetWidth;n("columnResize",e.columnKey,r)}},{default:function(){return[(0,s.bF)("td",{ref:r,style:{padding:0,border:0,height:0}},[(0,s.bF)("div",{style:{height:0,overflow:"hidden"}},[(0,s.eW)(" ")])])]}})}}}),dD=Symbol("BodyContextProps"),hD=function(e){(0,s.Gt)(dD,e)},pD=function(){return(0,s.WQ)(dD,{})},vD=(0,s.pM)({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup:function(e,t){var n=t.attrs,r=Tj(),i=pD(),a=(0,s.KR)(!1),u=(0,s.EW)((function(){return e.expandedKeys&&e.expandedKeys.has(e.recordKey)}));(0,s.nT)((function(){u.value&&(a.value=!0)}));var c=(0,s.EW)((function(){return"row"===i.expandableType&&(!e.rowExpandable||e.rowExpandable(e.record))})),f=(0,s.EW)((function(){return"nest"===i.expandableType})),d=(0,s.EW)((function(){return e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]})),h=(0,s.EW)((function(){return c.value||f.value})),p=function(e,t){i.onTriggerExpand(e,t)},v=(0,s.EW)((function(){var t;return(null===(t=e.customRow)||void 0===t?void 0:t.call(e,e.record,e.index))||{}})),g=function(t){var n,r;i.expandRowByClick&&h.value&&p(e.record,t);for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];null===(n=v.value)||void 0===n||null===(r=n.onClick)||void 0===r||r.call.apply(r,[n,t].concat(a))},m=(0,s.EW)((function(){var t=e.record,n=e.index,r=e.indent,o=i.rowClassName;return"string"===typeof o?o:"function"===typeof o?o(t,n,r):""})),y=(0,s.EW)((function(){return Lj(i.flattenColumns)}));return function(){var t,h=n.class,b=n.style,w=e.record,A=e.index,x=e.rowKey,C=e.indent,S=void 0===C?0:C,_=e.rowComponent,k=e.cellComponent,E=r.prefixCls,O=r.fixedInfoList,F=r.transformCellText,T=i.flattenColumns,P=i.expandedRowClassName,N=i.indentSize,M=i.expandIcon,L=i.expandedRowRender,I=i.expandIconColumnIndex,R=(0,s.bF)(_,(0,o.A)((0,o.A)({},v.value),{},{"data-row-key":x,class:(0,l.A)(h,"".concat(E,"-row"),"".concat(E,"-row-level-").concat(S),m.value,v.value.class),style:(0,o.A)((0,o.A)({},b),(0,B.ul)(v.value.style)),onClick:g}),{default:function(){return[T.map((function(t,n){var r,i=t.customRender,a=t.dataIndex,l=t.className,c=y[n],h=O[n];t.customCell&&(r=t.customCell(w,A,t));var v=n===(I||0)&&f.value?(0,s.bF)(s.FK,null,[(0,s.bF)("span",{style:{paddingLeft:"".concat(N*S,"px")},class:"".concat(E,"-row-indent indent-level-").concat(S)},null),M({prefixCls:E,expanded:u.value,expandable:d.value,record:w,onExpand:p})]):null;return(0,s.bF)(Zj,(0,o.A)((0,o.A)({cellType:"body",class:l,ellipsis:t.ellipsis,align:t.align,component:k,prefixCls:E,key:c,record:w,index:A,renderIndex:e.renderIndex,dataIndex:a,customRender:i},h),{},{additionalProps:r,column:t,transformCellText:F,appendNode:v}),null)}))]}});if(c.value&&(a.value||u.value)){var j=L({record:w,index:A,indent:S+1,expanded:u.value}),D=P&&P(w,A,S);t=(0,s.bF)(cD,{expanded:u.value,class:(0,l.A)("".concat(E,"-expanded-row"),"".concat(E,"-expanded-row-level-").concat(S+1),D),prefixCls:E,component:_,cellComponent:k,colSpan:T.length,isEmpty:!1},{default:function(){return[j]}})}return(0,s.bF)(s.FK,null,[R,t])}}});function gD(e,t,n,r,o,i){var a=[];a.push({record:e,indent:t,index:i});var s=o(e),l=null===r||void 0===r?void 0:r.has(s);if(e&&Array.isArray(e[n])&&l)for(var u=0;u<e[n].length;u+=1){var c=gD(e[n][u],t+1,n,r,o,u);a.push.apply(a,(0,z.A)(c))}return a}function mD(e,t,n,r){var o=(0,s.EW)((function(){var o=t.value,i=n.value,a=e.value;if(null!==i&&void 0!==i&&i.size){for(var s=[],l=0;l<(null===a||void 0===a?void 0:a.length);l+=1){var u=a[l];s.push.apply(s,(0,z.A)(gD(u,0,o,i,r.value,l)))}return s}return null===a||void 0===a?void 0:a.map((function(e,t){return{record:e,indent:0,index:t}}))}));return o}var yD=Symbol("ResizeContextProps"),bD=function(e){(0,s.Gt)(yD,e)},wD=function(){return(0,s.WQ)(yD,{onColumnResize:function(){}})},AD=(0,s.pM)({name:"Body",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],slots:["emptyNode"],setup:function(e,t){var n,r=t.slots,o=wD(),i=Tj(),a=pD(),l=mD((0,s.lW)(e,"data"),(0,s.lW)(e,"childrenColumnName"),(0,s.lW)(e,"expandedKeys"),(0,s.lW)(e,"getRowKey")),u=(0,s.KR)(-1),c=(0,s.KR)(-1);return Hj({startRow:u,endRow:c,onHover:function(e,t){clearTimeout(n),n=setTimeout((function(){u.value=e,c.value=t}),100)}}),function(){var t,n,u=e.data,c=e.getRowKey,f=e.measureColumnWidth,d=e.expandedKeys,h=e.customRow,p=e.rowExpandable,v=e.childrenColumnName,g=o.onColumnResize,m=i.prefixCls,y=i.getComponent,b=a.flattenColumns,w=y(["body","wrapper"],"tbody"),A=y(["body","row"],"tr"),x=y(["body","cell"],"td");u.length?t=l.value.map((function(e,t){var n=e.record,r=e.indent,o=e.index,i=c(n,t);return(0,s.bF)(vD,{key:i,rowKey:i,record:n,recordKey:i,index:t,renderIndex:o,rowComponent:A,cellComponent:x,expandedKeys:d,customRow:h,getRowKey:c,rowExpandable:p,childrenColumnName:v,indent:r},null)})):t=(0,s.bF)(cD,{expanded:!0,class:"".concat(m,"-placeholder"),prefixCls:m,component:A,cellComponent:x,colSpan:b.length,isEmpty:!0},{default:function(){return[null===(n=r.emptyNode)||void 0===n?void 0:n.call(r)]}});var C=Lj(b);return(0,s.bF)(w,{class:"".concat(m,"-tbody")},{default:function(){return[f&&(0,s.bF)("tr",{"aria-hidden":"true",class:"".concat(m,"-measure-row"),style:{height:0,fontSize:0}},[C.map((function(e){return(0,s.bF)(fD,{key:e,columnKey:e,onColumnResize:g},null)}))]),t]}})}}}),xD={},CD=["fixed"];function SD(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,i=t.children;return i&&i.length>0?[].concat((0,z.A)(e),(0,z.A)(SD(i).map((function(e){return(0,o.A)({fixed:r},e)})))):[].concat((0,z.A)(e),[(0,o.A)((0,o.A)({},t),{},{fixed:r})])}),[])}function _D(e){return e.map((function(e){var t=e.fixed,n=(0,je.A)(e,CD),r=t;return"left"===t?r="right":"right"===t&&(r="left"),(0,o.A)({fixed:r},n)}))}function kD(e,t){var n=e.prefixCls,r=e.columns,o=e.expandable,a=e.expandedKeys,l=e.getRowKey,u=e.onTriggerExpand,c=e.expandIcon,f=e.rowExpandable,d=e.expandIconColumnIndex,h=e.direction,p=e.expandRowByClick,v=e.expandColumnWidth,g=e.expandFixed,m=(0,s.EW)((function(){if(o.value){var e,t=r.value.slice();if(!t.includes(xD)){var h=d.value||0;h>=0&&t.splice(h,0,xD)}0;var m=t.indexOf(xD);t=t.filter((function(e,t){return e!==xD||t===m}));var y,b=r.value[m];y="left"!==g.value&&!g.value||d.value?"right"!==g.value&&!g.value||d.value!==r.value.length?b?b.fixed:null:"right":"left";var w=a.value,A=f.value,x=c.value,C=n.value,S=p.value,_=(e={},(0,i.A)(e,Kj,{class:"".concat(n.value,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,i.A)(e,"title",""),(0,i.A)(e,"fixed",y),(0,i.A)(e,"class","".concat(n.value,"-row-expand-icon-cell")),(0,i.A)(e,"width",v.value),(0,i.A)(e,"customRender",(function(e){var t=e.record,n=e.index,r=l.value(t,n),o=w.has(r),i=!A||A(t),a=x({prefixCls:C,expanded:o,expandable:i,record:t,onExpand:u});return S?(0,s.bF)("span",{onClick:function(e){return e.stopPropagation()}},[a]):a})),e);return t.map((function(e){return e===xD?_:e}))}return r.value.filter((function(e){return e!==xD}))})),y=(0,s.EW)((function(){var e=m.value;return t.value&&(e=t.value(e)),e.length||(e=[{customRender:function(){return null}}]),e})),b=(0,s.EW)((function(){return"rtl"===h.value?_D(SD(y.value)):SD(y.value)}));return[y,b]}var ED=kD;function OD(e){var t,n=(0,s.IJ)(e),r=(0,s.IJ)([]);function o(e){r.value.push(e),G.cancel(t),t=G((function(){var e=r.value;r.value=[],e.forEach((function(e){n.value=e(n.value)}))}))}return(0,s.xo)((function(){G.cancel(t)})),[n,o]}function FD(e){var t=(0,s.KR)(e||null),n=(0,s.KR)();function r(){clearTimeout(n.value)}function o(e){t.value=e,r(),n.value=setTimeout((function(){t.value=null,n.value=void 0}),100)}function i(){return t.value}return(0,s.xo)((function(){r()})),[o,i]}function TD(e,t,n){var r=(0,s.EW)((function(){for(var r=[],o=[],i=0,a=0,s=e.value,l=t.value,u=n.value,c=0;c<l;c+=1)if("rtl"===u){o[c]=a,a+=s[c]||0;var f=l-c-1;r[f]=i,i+=s[f]||0}else{r[c]=i,i+=s[c]||0;var d=l-c-1;o[d]=a,a+=s[d]||0}return{left:r,right:o}}));return r}var PD=TD,ND=["columnType"];function MD(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=[],a=r||n.length,l=!1,u=a-1;u>=0;u-=1){var c=t[u],f=n&&n[u],d=f&&f[Kj];if(c||d||l){var h=d||{},p=(h.columnType,(0,je.A)(h,ND));i.unshift((0,s.bF)("col",(0,o.A)({key:u,style:{width:"number"===typeof c?"".concat(c,"px"):c}},p),null)),l=!0}}return(0,s.bF)("colgroup",null,[i])}var LD=MD;function ID(e,t){var n,r=t.slots;return(0,s.bF)("div",null,[null===(n=r.default)||void 0===n?void 0:n.call(r)])}ID.displayName="Panel";var RD=ID,jD=0,DD=(0,s.pM)({name:"Summary",props:["fixed"],setup:function(e,t){var n=t.slots,r=Tj(),o="table-summary-uni-key-".concat(++jD),i=(0,s.EW)((function(){return""===e.fixed||e.fixed}));return(0,s.nT)((function(){r.summaryCollect(o,i.value)})),(0,s.xo)((function(){r.summaryCollect(o,!1)})),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),BD=DD,WD=Symbol("SummaryContextProps"),zD=function(e){(0,s.Gt)(WD,e)},UD=function(){return(0,s.WQ)(WD,{})},KD=(0,s.pM)({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup:function(e,t){var n=t.slots,r=Tj();return zD((0,s.Kh)({stickyOffsets:(0,s.lW)(e,"stickyOffsets"),flattenColumns:(0,s.lW)(e,"flattenColumns"),scrollColumnIndex:(0,s.EW)((function(){var t=e.flattenColumns.length-1,n=e.flattenColumns[t];return null!==n&&void 0!==n&&n.scrollbar?t:null}))})),function(){var e,t=r.prefixCls;return(0,s.bF)("tfoot",{class:"".concat(t,"-summary")},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),VD=BD;function HD(e){var t,n=e.prefixCls,r=e.record,o=e.onExpand,a=e.expanded,l=e.expandable,u="".concat(n,"-row-expand-icon");if(!l)return(0,s.bF)("span",{class:[u,"".concat(n,"-row-spaced")]},null);var c=function(e){o(r,e),e.stopPropagation()};return(0,s.bF)("span",{class:(t={},(0,i.A)(t,u,!0),(0,i.A)(t,"".concat(n,"-row-expanded"),a),(0,i.A)(t,"".concat(n,"-row-collapsed"),!a),t),onClick:c},null)}function qD(e,t,n){var r=[];function o(e){(e||[]).forEach((function(e,i){r.push(t(e,i)),o(e[n])}))}return o(e),r}var GD=(0,s.pM)({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup:function(e,t){var n=t.emit,r=t.expose,a=Tj(),u=(0,s.KR)(0),c=(0,s.KR)(0),f=(0,s.KR)(0);(0,s.nT)((function(){u.value=e.scrollBodySizeInfo.scrollWidth||0,c.value=e.scrollBodySizeInfo.clientWidth||0,f.value=u.value&&c.value*(c.value/u.value)}),{flush:"post"});var d=(0,s.KR)(),h=OD({scrollLeft:0,isHiddenScrollBar:!0}),p=(0,Re.A)(h,2),v=p[0],g=p[1],m=(0,s.KR)({delta:0,x:0}),y=(0,s.KR)(!1),b=function(){y.value=!1},w=function(e){m.value={delta:e.pageX-v.value.scrollLeft,x:0},y.value=!0,e.preventDefault()},A=function(e){var t,r=e||(null===(t=window)||void 0===t?void 0:t.event),o=r.buttons;if(y.value&&0!==o){var i=m.value.x+e.pageX-m.value.x-m.value.delta;i<=0&&(i=0),i+f.value>=c.value&&(i=c.value-f.value),n("scroll",{scrollLeft:i/c.value*(u.value+2)}),m.value.x=e.pageX}else y.value&&(y.value=!1)},x=function(){if(e.scrollBodyRef.value){var t=QF(e.scrollBodyRef.value).top,n=t+e.scrollBodyRef.value.offsetHeight,r=e.container===window?document.documentElement.scrollTop+window.innerHeight:QF(e.container).top+e.container.clientHeight;n-xS()<=r||t>=r-e.offsetScroll?g((function(e){return(0,o.A)((0,o.A)({},e),{},{isHiddenScrollBar:!0})})):g((function(e){return(0,o.A)((0,o.A)({},e),{},{isHiddenScrollBar:!1})}))}},C=function(e){g((function(t){return(0,o.A)((0,o.A)({},t),{},{scrollLeft:e/u.value*c.value||0})}))};r({setScrollLeft:C});var S=null,_=null,k=null,E=null;(0,s.sV)((function(){S=Z(document.body,"mouseup",b,!1),_=Z(document.body,"mousemove",A,!1),k=Z(window,"resize",x,!1)})),(0,s.n)((function(){(0,s.dY)((function(){x()}))})),(0,s.sV)((function(){setTimeout((function(){(0,s.wB)([f,y],(function(){x()}),{immediate:!0,flush:"post"})}))})),(0,s.wB)((function(){return e.container}),(function(){var t;null===(t=E)||void 0===t||t.remove(),E=Z(e.container,"scroll",x,!1)}),{immediate:!0,flush:"post"}),(0,s.xo)((function(){var e,t,n,r;null===(e=S)||void 0===e||e.remove(),null===(t=_)||void 0===t||t.remove(),null===(n=E)||void 0===n||n.remove(),null===(r=k)||void 0===r||r.remove()})),(0,s.wB)((function(){return(0,o.A)({},v.value)}),(function(t,n){t.isHiddenScrollBar===(null===n||void 0===n?void 0:n.isHiddenScrollBar)||t.isHiddenScrollBar||g((function(t){var n=e.scrollBodyRef.value;return n?(0,o.A)((0,o.A)({},t),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):t}))}),{immediate:!0});var O=xS();return function(){if(u.value<=c.value||!f.value||v.value.isHiddenScrollBar)return null;var t=a.prefixCls;return(0,s.bF)("div",{style:{height:"".concat(O,"px"),width:"".concat(c.value,"px"),bottom:"".concat(e.offsetScroll,"px")},class:"".concat(t,"-sticky-scroll")},[(0,s.bF)("div",{onMousedown:w,ref:d,class:(0,l.A)("".concat(t,"-sticky-scroll-bar"),(0,i.A)({},"".concat(t,"-sticky-scroll-bar-active"),y.value)),style:{width:"".concat(f.value,"px"),transform:"translate3d(".concat(v.value.scrollLeft,"px, 0, 0)")}},null)])}}}),YD=(0,Ea.A)()?window:null;function $D(e,t){return(0,s.EW)((function(){var n="object"===(0,Ie.A)(e.value)?e.value:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetSummary,a=void 0===i?0:i,s=n.offsetScroll,l=void 0===s?0:s,u=n.getContainer,c=void 0===u?function(){return YD}:u,f=c()||YD,d=!!e.value;return{isSticky:d,stickyClassName:d?"".concat(t.value,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:l,container:f}}))}function XD(e,t){return(0,s.EW)((function(){for(var n=[],r=e.value,o=t.value,i=0;i<o;i+=1){var a=r[i];if(void 0===a)return null;n[i]=a}return n}))}var JD=(0,s.pM)({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.emit,u=Tj(),c=(0,s.EW)((function(){return u.isSticky&&!e.fixHeader?0:u.scrollbarSize})),f=(0,s.KR)(),d=function(e){var t=e.currentTarget,n=e.deltaX;n&&(a("scroll",{currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())},h=(0,s.KR)();(0,s.sV)((function(){(0,s.dY)((function(){h.value=Z(f.value,"wheel",d)}))})),(0,s.xo)((function(){var e;null===(e=h.value)||void 0===e||e.remove()}));var p=(0,s.EW)((function(){return e.flattenColumns.every((function(e){return e.width&&0!==e.width&&"0px"!==e.width}))})),v=(0,s.KR)([]),g=(0,s.KR)([]);(0,s.nT)((function(){var t=e.flattenColumns[e.flattenColumns.length-1],n={fixed:t?t.fixed:null,scrollbar:!0,customHeaderCell:function(){return{class:"".concat(u.prefixCls,"-cell-scrollbar")}}};v.value=c.value?[].concat((0,z.A)(e.columns),[n]):e.columns,g.value=c.value?[].concat((0,z.A)(e.flattenColumns),[n]):e.flattenColumns}));var m=(0,s.EW)((function(){var t=e.stickyOffsets,n=e.direction,r=t.right,i=t.left;return(0,o.A)((0,o.A)({},t),{},{left:"rtl"===n?[].concat((0,z.A)(i.map((function(e){return e+c.value}))),[0]):i,right:"rtl"===n?r:[].concat((0,z.A)(r.map((function(e){return e+c.value}))),[0]),isSticky:u.isSticky})})),y=XD((0,s.lW)(e,"colWidths"),(0,s.lW)(e,"columCount"));return function(){var t,a=e.noData,d=e.columCount,h=e.stickyTopOffset,b=e.stickyBottomOffset,w=e.stickyClassName,A=e.maxContentScroll,x=u.isSticky;return(0,s.bF)("div",{style:(0,o.A)({overflow:"hidden"},x?{top:"".concat(h,"px"),bottom:"".concat(b,"px")}:{}),ref:f,class:(0,l.A)(n.class,(0,i.A)({},w,!!w))},[(0,s.bF)("table",{style:{tableLayout:"fixed",visibility:a||y.value?null:"hidden"}},[(!a||!A||p.value)&&(0,s.bF)(LD,{colWidths:y.value?[].concat((0,z.A)(y.value),[c.value]):[],columCount:d+1,columns:g.value},null),null===(t=r.default)||void 0===t?void 0:t.call(r,(0,o.A)((0,o.A)({},e),{},{stickyOffsets:m.value,columns:v.value,flattenColumns:g.value}))])])}}});function QD(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var o=e[t];r[o[0]]=o[1]}return r}var ZD=QD;function eB(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,s.Kh)(ZD(n.map((function(t){return[t,(0,s.lW)(e,t)]}))))}var tB=[],nB={},rB="rc-table-internal-hook",oB=(0,s.pM)({name:"Table",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],slots:["title","footer","summary","emptyText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.emit,u=(0,s.EW)((function(){return e.data||tB})),c=(0,s.EW)((function(){return!!u.value.length})),f=(0,s.EW)((function(){return Ij(e.components,{})})),d=function(e,t){return Mj(f.value,e)||t},h=(0,s.EW)((function(){var t=e.rowKey;return"function"===typeof t?t:function(e){var n=e&&e[t];return n}})),p=(0,s.EW)((function(){return e.expandIcon||HD})),v=(0,s.EW)((function(){return e.childrenColumnName||"children"})),g=(0,s.EW)((function(){return e.expandedRowRender?"row":!(!e.canExpandable&&!u.value.some((function(e){return e&&"object"===(0,Ie.A)(e)&&e[v.value]})))&&"nest"})),m=(0,s.IJ)([]),y=(0,s.nT)((function(){e.defaultExpandedRowKeys&&(m.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(m.value=qD(u.value,h.value,v.value))}));y();var b=(0,s.EW)((function(){return new Set(e.expandedRowKeys||m.value||[])})),w=function(e){var t,n=h.value(e,u.value.indexOf(e)),r=b.value.has(n);r?(b.value.delete(n),t=(0,z.A)(b.value)):t=[].concat((0,z.A)(b.value),[n]),m.value=t,a("expand",!r,e),a("update:expandedRowKeys",t),a("expandedRowsChange",t)};var A=(0,s.KR)(0),x=ED((0,o.A)((0,o.A)({},(0,s.QW)(e)),{},{expandable:(0,s.EW)((function(){return!!e.expandedRowRender})),expandedKeys:b,getRowKey:h,onTriggerExpand:w,expandIcon:p}),(0,s.EW)((function(){return e.internalHooks===rB?e.transformColumns:null}))),C=(0,Re.A)(x,2),S=C[0],_=C[1],k=(0,s.EW)((function(){return{columns:S.value,flattenColumns:_.value}})),E=(0,s.KR)(),O=(0,s.KR)(),F=(0,s.KR)(),T=(0,s.KR)({scrollWidth:0,clientWidth:0}),P=(0,s.KR)(),N=ja(!1),M=(0,Re.A)(N,2),L=M[0],I=M[1],R=ja(!1),j=(0,Re.A)(R,2),D=j[0],B=j[1],U=OD(new Map),K=(0,Re.A)(U,2),V=K[0],H=K[1],q=(0,s.EW)((function(){return Lj(_.value)})),G=(0,s.EW)((function(){return q.value.map((function(e){return V.value.get(e)}))})),Y=(0,s.EW)((function(){return _.value.length})),$=PD(G,Y,(0,s.lW)(e,"direction")),X=(0,s.EW)((function(){return e.scroll&&Rj(e.scroll.y)})),J=(0,s.EW)((function(){return e.scroll&&Rj(e.scroll.x)||Boolean(e.expandFixed)})),Q=(0,s.EW)((function(){return J.value&&_.value.some((function(e){var t=e.fixed;return t}))})),Z=(0,s.KR)(),ee=$D((0,s.lW)(e,"sticky"),(0,s.lW)(e,"prefixCls")),te=(0,s.Kh)({}),ne=(0,s.EW)((function(){var e=Object.values(te)[0];return(X.value||ee.value.isSticky)&&e})),re=function(e,t){t?te[e]=t:delete te[e]},oe=(0,s.KR)({}),ie=(0,s.KR)({}),ae=(0,s.KR)({});(0,s.nT)((function(){X.value&&(ie.value={overflowY:"scroll",maxHeight:(0,lm.cl)(e.scroll.y)}),J.value&&(oe.value={overflowX:"auto"},X.value||(ie.value={overflowY:"hidden"}),ae.value={width:!0===e.scroll.x?"auto":(0,lm.cl)(e.scroll.x),minWidth:"100%"})}));var se=function(e,t){Un(E.value)&&H((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))},le=FD(null),ue=(0,Re.A)(le,2),ce=ue[0],fe=ue[1];function de(e,t){if(t)if("function"!==typeof t){var n=t.$el||t;n.scrollLeft!==e&&(n.scrollLeft=e)}else t(e)}var he,pe=function(t){var n,r=t.currentTarget,o=t.scrollLeft,i="rtl"===e.direction,a="number"===typeof o?o:r.scrollLeft,s=r||nB;fe()&&fe()!==s||(ce(s),de(a,O.value),de(a,F.value),de(a,P.value),de(a,null===(n=Z.value)||void 0===n?void 0:n.setScrollLeft));if(r){var l=r.scrollWidth,u=r.clientWidth;i?(I(-a<l-u),B(-a>0)):(I(a>0),B(a<l-u))}},ve=function(){J.value&&F.value?pe({currentTarget:F.value}):(I(!1),B(!1))},ge=function(e){e!==A.value&&(ve(),A.value=E.value?E.value.offsetWidth:e)},me=function(e){var t=e.width;clearTimeout(he),0!==A.value?he=setTimeout((function(){ge(t)}),100):ge(t)};(0,s.wB)([J,function(){return e.data},function(){return e.columns}],(function(){J.value&&ve()}),{flush:"post"});var ye=ja(0),be=(0,Re.A)(ye,2),we=be[0],Ae=be[1];Yj(),(0,s.sV)((function(){(0,s.dY)((function(){var e,t;ve(),Ae(SS(F.value).width),T.value={scrollWidth:(null===(e=F.value)||void 0===e?void 0:e.scrollWidth)||0,clientWidth:(null===(t=F.value)||void 0===t?void 0:t.clientWidth)||0}}))})),(0,s.$u)((function(){(0,s.dY)((function(){var e,t,n=(null===(e=F.value)||void 0===e?void 0:e.scrollWidth)||0,r=(null===(t=F.value)||void 0===t?void 0:t.clientWidth)||0;T.value.scrollWidth===n&&T.value.clientWidth===r||(T.value={scrollWidth:n,clientWidth:r})}))})),(0,s.nT)((function(){e.internalHooks===rB&&e.internalRefs&&e.onUpdateInternalRefs({body:F.value?F.value.$el||F.value:null})}),{flush:"post"});var xe=(0,s.EW)((function(){return e.tableLayout?e.tableLayout:Q.value?"max-content"===e.scroll.x?"auto":"fixed":X.value||ee.value.isSticky||_.value.some((function(e){var t=e.ellipsis;return t}))?"fixed":"auto"})),Ce=function(){var e;return c.value?null:(null===(e=r.emptyText)||void 0===e?void 0:e.call(r))||"No Data"};Fj((0,s.Kh)((0,o.A)((0,o.A)({},(0,s.QW)(eB(e,"prefixCls","direction","transformCellText"))),{},{getComponent:d,scrollbarSize:we,fixedInfoList:(0,s.EW)((function(){return _.value.map((function(t,n){return eD(n,n,_.value,$.value,e.direction)}))})),isSticky:(0,s.EW)((function(){return ee.value.isSticky})),summaryCollect:re}))),hD((0,s.Kh)((0,o.A)((0,o.A)({},(0,s.QW)(eB(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{},{columns:S,flattenColumns:_,tableLayout:xe,expandIcon:p,expandableType:g,onTriggerExpand:w}))),bD({onColumnResize:se}),lD({componentWidth:A,fixHeader:X,fixColumn:Q,horizonScroll:J});var Se=function(){return(0,s.bF)(AD,{data:u.value,measureColumnWidth:X.value||J.value||ee.value.isSticky,expandedKeys:b.value,rowExpandable:e.rowExpandable,getRowKey:h.value,customRow:e.customRow,childrenColumnName:v.value},{emptyNode:Ce})},_e=function(){return(0,s.bF)(LD,{colWidths:_.value.map((function(e){var t=e.width;return t})),columns:_.value},null)};return function(){var t,a=e.prefixCls,c=e.scroll,f=e.tableLayout,h=e.direction,p=e.title,v=void 0===p?r.title:p,g=e.footer,m=void 0===g?r.footer:g,y=e.id,b=e.showHeader,w=e.customHeaderRow,A=ee.value,x=A.isSticky,C=A.offsetHeader,N=A.offsetSummary,M=A.offsetScroll,I=A.stickyClassName,R=A.container,j=d(["table"],"table"),B=d(["body"]),z=null===(t=r.summary)||void 0===t?void 0:t.call(r,{pageData:u.value}),U=function(){return null},K={colWidths:G.value,columCount:_.value.length,stickyOffsets:$.value,customHeaderRow:w,fixHeader:X.value,scroll:c};if(X.value||x){var V=function(){return null};"function"===typeof B?(V=function(){return B(u.value,{scrollbarSize:we.value,ref:F,onScroll:pe})},K.colWidths=_.value.map((function(e,t){var n=e.width,r=t===S.value.length-1?n-we.value:n;return"number"!==typeof r||Number.isNaN(r)?((0,Ke.$e)(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):V=function(){return(0,s.bF)("div",{style:(0,o.A)((0,o.A)({},oe.value),ie.value),onScroll:pe,ref:F,class:(0,l.A)("".concat(a,"-body"))},[(0,s.bF)(j,{style:(0,o.A)((0,o.A)({},ae.value),{},{tableLayout:xe.value})},{default:function(){return[_e(),Se(),!ne.value&&z&&(0,s.bF)(KD,{stickyOffsets:$.value,flattenColumns:_.value},{default:function(){return[z]}})]}})])};var H=(0,o.A)((0,o.A)((0,o.A)({noData:!u.value.length,maxContentScroll:J.value&&"max-content"===c.x},K),k.value),{},{direction:h,stickyClassName:I,onScroll:pe});U=function(){return(0,s.bF)(s.FK,null,[!1!==b&&(0,s.bF)(JD,(0,o.A)((0,o.A)({},H),{},{stickyTopOffset:C,class:"".concat(a,"-header"),ref:O}),{default:function(e){return(0,s.bF)(s.FK,null,[(0,s.bF)(aD,e,null),"top"===ne.value&&(0,s.bF)(KD,e,{default:function(){return[z]}})])}}),V(),ne.value&&"top"!==ne.value&&(0,s.bF)(JD,(0,o.A)((0,o.A)({},H),{},{stickyBottomOffset:N,class:"".concat(a,"-summary"),ref:P}),{default:function(e){return(0,s.bF)(KD,e,{default:function(){return[z]}})}}),x&&F.value&&(0,s.bF)(GD,{ref:Z,offsetScroll:M,scrollBodyRef:F,onScroll:pe,container:R,scrollBodySizeInfo:T.value},null)])}}else U=function(){return(0,s.bF)("div",{style:(0,o.A)((0,o.A)({},oe.value),ie.value),class:(0,l.A)("".concat(a,"-content")),onScroll:pe,ref:F},[(0,s.bF)(j,{style:(0,o.A)((0,o.A)({},ae.value),{},{tableLayout:xe.value})},{default:function(){return[_e(),!1!==b&&(0,s.bF)(aD,(0,o.A)((0,o.A)({},K),k.value),null),Se(),z&&(0,s.bF)(KD,{stickyOffsets:$.value,flattenColumns:_.value},{default:function(){return[z]}})]}})])};var q=Jo(n,{aria:!0,data:!0}),te=function(){var e;return(0,s.bF)("div",(0,o.A)((0,o.A)({},q),{},{class:(0,l.A)(a,(e={},(0,i.A)(e,"".concat(a,"-rtl"),"rtl"===h),(0,i.A)(e,"".concat(a,"-ping-left"),L.value),(0,i.A)(e,"".concat(a,"-ping-right"),D.value),(0,i.A)(e,"".concat(a,"-layout-fixed"),"fixed"===f),(0,i.A)(e,"".concat(a,"-fixed-header"),X.value),(0,i.A)(e,"".concat(a,"-fixed-column"),Q.value),(0,i.A)(e,"".concat(a,"-scroll-horizontal"),J.value),(0,i.A)(e,"".concat(a,"-has-fix-left"),_.value[0]&&_.value[0].fixed),(0,i.A)(e,"".concat(a,"-has-fix-right"),_.value[Y.value-1]&&"right"===_.value[Y.value-1].fixed),(0,i.A)(e,n.class,n.class),e)),style:n.style,id:y,ref:E}),[v&&(0,s.bF)(RD,{class:"".concat(a,"-title")},{default:function(){return[v(u.value)]}}),(0,s.bF)("div",{class:"".concat(a,"-container")},[U()]),m&&(0,s.bF)(RD,{class:"".concat(a,"-footer")},{default:function(){return[m(u.value)]}})])};return J.value?(0,s.bF)(W,{onResize:me},{default:te}):te()}}}),iB=oB,aB=10;function sB(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===(0,Ie.A)(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!==typeof r&&(n[e]=r)})),n}function lB(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}function uB(e,t,n){var r=(0,s.EW)((function(){return t.value&&"object"===(0,Ie.A)(t.value)?t.value:{}})),i=(0,s.EW)((function(){return r.value.total||0})),a=ja((function(){return{current:"defaultCurrent"in r.value?r.value.defaultCurrent:1,pageSize:"defaultPageSize"in r.value?r.value.defaultPageSize:aB}})),l=(0,Re.A)(a,2),u=l[0],c=l[1],f=(0,s.EW)((function(){var t=lB(u.value,r.value,{total:i.value>0?i.value:e.value}),n=Math.ceil((i.value||e.value)/t.pageSize);return t.current>n&&(t.current=n||1),t})),d=function(e,t){!1!==r.value&&c({current:null!==e&&void 0!==e?e:1,pageSize:t||f.value.pageSize})},h=function(e,t){var o,i;r.value&&(null===(o=(i=r.value).onChange)||void 0===o||o.call(i,e,t));d(e,t),n(e,t||f.value.pageSize)};return[(0,s.EW)((function(){return!1===r.value?{}:(0,o.A)((0,o.A)({},f.value),{},{onChange:h})})),d]}function cB(e,t,n){var r=(0,s.IJ)({});function o(e){return r.value.kvMap.get(e)}return(0,s.wB)([e,t,n],(function(){var o=new Map,i=n.value,a=t.value;function s(e){e.forEach((function(e,t){var n=i(e,t);o.set(n,e),e&&"object"===(0,Ie.A)(e)&&a in e&&s(e[a]||[])}))}s(e.value),r.value={kvMap:o}}),{deep:!0,immediate:!0}),[o]}var fB={},dB="SELECT_ALL",hB="SELECT_INVERT",pB="SELECT_NONE",vB=[];function gB(e,t){var n=[];return(e||[]).forEach((function(e){n.push(e),e&&"object"===(0,Ie.A)(e)&&t in e&&(n=[].concat((0,z.A)(n),(0,z.A)(gB(e[t],t))))})),n}function mB(e,t){var n=(0,s.EW)((function(){var t=e.value||{},n=t.checkStrictly,r=void 0===n||n;return(0,o.A)((0,o.A)({},t),{},{checkStrictly:r})})),r=Ra(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||vB,{value:(0,s.EW)((function(){return n.value.selectedRowKeys}))}),a=(0,Re.A)(r,2),l=a[0],u=a[1],c=(0,s.IJ)(new Map),f=function(e){if(n.value.preserveSelectedRowKeys){var r=new Map;e.forEach((function(e){var n=t.getRecordByKey(e);!n&&c.value.has(e)&&(n=c.value.get(e)),r.set(e,n)})),c.value=r}};(0,s.nT)((function(){f(l.value)}));var d=(0,s.EW)((function(){return n.value.checkStrictly?null:wA(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities})),h=(0,s.EW)((function(){return gB(t.pageData.value,t.childrenColumnName.value)})),p=(0,s.EW)((function(){var e=new Map,r=t.getRowKey.value,o=n.value.getCheckboxProps;return h.value.forEach((function(t,n){var i=r(t,n),a=(o?o(t):null)||{};e.set(i,a)})),e})),v=GA(d),g=v.maxLevel,m=v.levelEntities,y=function(e){var n;return!(null===(n=p.value.get(t.getRowKey.value(e)))||void 0===n||!n.disabled)},b=(0,s.EW)((function(){if(n.value.checkStrictly)return[l.value||[],[]];var e=RA(l.value,!0,d.value,g.value,m.value,y),t=e.checkedKeys,r=e.halfCheckedKeys;return[t||[],r]})),w=(0,s.EW)((function(){return b.value[0]})),A=(0,s.EW)((function(){return b.value[1]})),x=(0,s.EW)((function(){var e="radio"===n.value.type?w.value.slice(0,1):w.value;return new Set(e)})),C=(0,s.EW)((function(){return"radio"===n.value.type?new Set:new Set(A.value)})),S=ja(null),_=(0,Re.A)(S,2),k=_[0],E=_[1],O=function(e){var r,o;f(e);var i=n.value,a=i.preserveSelectedRowKeys,s=i.onChange,l=t.getRecordByKey;a?(r=e,o=e.map((function(e){return c.value.get(e)}))):(r=[],o=[],e.forEach((function(e){var t=l(e);void 0!==t&&(r.push(e),o.push(t))}))),u(r),null===s||void 0===s||s(r,o)},F=function(e,r,o,i){var a=n.value.onSelect,s=t||{},l=s.getRecordByKey;if(a){var u=o.map((function(e){return l(e)}));a(l(e),r,u,i)}O(o)},T=(0,s.EW)((function(){var e=n.value,r=e.onSelectInvert,o=e.onSelectNone,i=e.selections,a=e.hideSelectAll,s=t.data,l=t.pageData,u=t.getRowKey,c=t.locale;if(!i||a)return null;var f=!0===i?[dB,hB,pB]:i;return f.map((function(e){return e===dB?{key:"all",text:c.value.selectionAll,onSelect:function(){O(s.value.map((function(e,t){return u.value(e,t)})).filter((function(e){var t=p.value.get(e);return!(null!==t&&void 0!==t&&t.disabled)||x.value.has(e)})))}}:e===hB?{key:"invert",text:c.value.selectInvert,onSelect:function(){var e=new Set(x.value);l.value.forEach((function(t,n){var r=u.value(t,n),o=p.value.get(r);null!==o&&void 0!==o&&o.disabled||(e.has(r)?e.delete(r):e.add(r))}));var t=Array.from(e);r&&((0,Wu.A)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),r(t)),O(t)}}:e===pB?{key:"none",text:c.value.selectNone,onSelect:function(){null===o||void 0===o||o(),O(Array.from(x.value).filter((function(e){var t=p.value.get(e);return null===t||void 0===t?void 0:t.disabled})))}}:e}))})),P=(0,s.EW)((function(){return h.value.length})),N=function(r){var a,l=n.value,u=l.onSelectAll,c=l.onSelectMultiple,f=l.columnWidth,v=l.type,b=l.fixed,A=l.renderCell,S=l.hideSelectAll,_=l.checkStrictly,N=t.prefixCls,M=t.getRecordByKey,L=t.getRowKey,I=t.expandType,R=t.getPopupContainer;if(!e.value)return r.filter((function(e){return e!==fB}));var j,D,B=r.slice(),W=new Set(x.value),U=h.value.map(L.value).filter((function(e){return!p.value.get(e).disabled})),K=U.every((function(e){return W.has(e)})),V=U.some((function(e){return W.has(e)})),H=function(){var e=[];K?U.forEach((function(t){W.delete(t),e.push(t)})):U.forEach((function(t){W.has(t)||(W.add(t),e.push(t))}));var t=Array.from(W);null===u||void 0===u||u(!K,t.map((function(e){return M(e)})),e.map((function(e){return M(e)}))),O(t)};if("radio"!==v){var q;if(T.value){var G=(0,s.bF)(qf,{getPopupContainer:R.value},{default:function(){return[T.value.map((function(e,t){var n=e.key,r=e.text,o=e.onSelect;return(0,s.bF)(qf.Item,{key:n||t,onClick:function(){null===o||void 0===o||o(U)}},{default:function(){return[r]}})}))]}});q=(0,s.bF)("div",{class:"".concat(N.value,"-selection-extra")},[(0,s.bF)(AS,{overlay:G,getPopupContainer:R.value},{default:function(){return[(0,s.bF)("span",null,[(0,s.bF)(Qa,null,null)])]}})])}var Y=h.value.map((function(e,t){var n=L.value(e,t),r=p.value.get(n)||{};return(0,o.A)({checked:W.has(n)},r)})).filter((function(e){var t=e.disabled;return t})),$=!!Y.length&&Y.length===P.value,X=$&&Y.every((function(e){var t=e.checked;return t})),J=$&&Y.some((function(e){var t=e.checked;return t}));j=!S&&(0,s.bF)("div",{class:"".concat(N.value,"-selection")},[(0,s.bF)(Ax,{checked:$?X:!!P.value&&K,indeterminate:$?!X&&J:!K&&V,onChange:H,disabled:0===P.value||$,skipGroup:!0},null),q])}D="radio"===v?function(e){var t=e.record,n=e.index,r=L.value(t,n),i=W.has(r);return{node:(0,s.bF)(NI,(0,o.A)((0,o.A)({},p.value.get(r)),{},{checked:i,onClick:function(e){return e.stopPropagation()},onChange:function(e){W.has(r)||F(r,!0,[r],e.nativeEvent)}}),null),checked:i}}:function(e){var t,n,r=e.record,i=e.index,a=L.value(r,i),l=W.has(a),u=C.value.has(a),f=p.value.get(a);"nest"===I.value?(t=u,(0,Wu.A)("boolean"!==typeof(null===f||void 0===f?void 0:f.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):t=null!==(n=null===f||void 0===f?void 0:f.indeterminate)&&void 0!==n?n:u;return{node:(0,s.bF)(Ax,(0,o.A)((0,o.A)({},f),{},{indeterminate:t,checked:l,skipGroup:!0,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,r=-1,o=-1;if(n&&_){var i=new Set([k.value,a]);U.some((function(e,t){if(i.has(e)){if(-1!==r)return o=t,!0;r=t}return!1}))}if(-1!==o&&r!==o&&_){var s=U.slice(r,o+1),u=[];l?s.forEach((function(e){W.has(e)&&(u.push(e),W.delete(e))})):s.forEach((function(e){W.has(e)||(u.push(e),W.add(e))}));var f=Array.from(W);null===c||void 0===c||c(!l,f.map((function(e){return M(e)})),u.map((function(e){return M(e)}))),O(f)}else{var h=w.value;if(_){var p=l?nA(h,a):rA(h,a);F(a,!l,p,t)}else{var v=RA([].concat((0,z.A)(h),[a]),!0,d.value,g.value,m.value,y),b=v.checkedKeys,A=v.halfCheckedKeys,x=b;if(l){var C=new Set(b);C.delete(a),x=RA(Array.from(C),{checked:!1,halfCheckedKeys:A},d.value,g.value,m.value,y).checkedKeys}F(a,!l,x,t)}}E(a)}}),null),checked:l}};var Q=function(e){var t=e.record,n=e.index,r=D({record:t,index:n}),o=r.node,i=r.checked;return A?A(i,t,n,o):o};if(!B.includes(fB))if(0===B.findIndex((function(e){var t;return"EXPAND_COLUMN"===(null===(t=e[Kj])||void 0===t?void 0:t.columnType)}))){var Z=B,ee=Ue(Z),te=ee[0],ne=ee.slice(1);B=[te,fB].concat((0,z.A)(ne))}else B=[fB].concat((0,z.A)(B));var re=B.indexOf(fB);B=B.filter((function(e,t){return e!==fB||t===re}));var oe=B[re-1],ie=B[re+1],ae=b;void 0===ae&&(void 0!==(null===ie||void 0===ie?void 0:ie.fixed)?ae=ie.fixed:void 0!==(null===oe||void 0===oe?void 0:oe.fixed)&&(ae=oe.fixed)),ae&&oe&&"EXPAND_COLUMN"===(null===(a=oe[Kj])||void 0===a?void 0:a.columnType)&&void 0===oe.fixed&&(oe.fixed=ae);var se=(0,i.A)({fixed:ae,width:f,className:"".concat(N.value,"-selection-column"),title:n.value.columnTitle||j,customRender:Q},Kj,{class:"".concat(N.value,"-selection-col")});return B.map((function(e){return e===fB?se:e}))};return[N,x]}var yB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},bB=yB;function wB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){AB(e,t,n[t])}))}return e}function AB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xB=function(e,t){var n=wB({},e,t.attrs);return(0,s.bF)(Ya.A,wB({},n,{icon:bB}),null)};xB.displayName="CaretDownOutlined",xB.inheritAttrs=!1;var CB=xB,SB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},_B=SB;function kB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EB(e,t,n[t])}))}return e}function EB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OB=function(e,t){var n=kB({},e,t.attrs);return(0,s.bF)(Ya.A,kB({},n,{icon:_B}),null)};OB.displayName="CaretUpOutlined",OB.inheritAttrs=!1;var FB=OB,TB=["default"];function PB(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function NB(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function MB(e,t){return"function"===typeof e?e(t):e}function LB(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,B.MI)(e),n=[];return t.forEach((function(e){var t,r,i;if(e){for(var a=e.key,l=(null===(t=e.props)||void 0===t?void 0:t.style)||{},u=(null===(r=e.props)||void 0===r?void 0:r.class)||"",c=e.props||{},f=0,d=Object.entries(c);f<d.length;f++){var h=(0,Re.A)(d[f],2),p=h[0],v=h[1];c[(0,s.PT)(p)]=v}var g=e.children||{},m=g.default,y=(0,je.A)(g,TB),b=(0,o.A)((0,o.A)((0,o.A)({},y),c),{},{style:l,class:u});if(a&&(b.key=a),null!==(i=e.type)&&void 0!==i&&i.__ANT_TABLE_COLUMN_GROUP)b.children=LB("function"===typeof m?m():m);else{var w,A=null===(w=e.children)||void 0===w?void 0:w.default;b.customRender=b.customRender||A}n.push(b)}})),n}var IB="ascend",RB="descend";function jB(e){return"object"===(0,Ie.A)(e.sorter)&&"number"===typeof e.sorter.multiple&&e.sorter.multiple}function DB(e){return"function"===typeof e?e:!(!e||"object"!==(0,Ie.A)(e)||!e.compare)&&e.compare}function BB(e,t){return t?e[e.indexOf(t)+1]:e[0]}function WB(e,t,n){var r=[];function o(e,t){r.push({column:e,key:PB(e,t),multiplePriority:jB(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,i){var a=NB(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat((0,z.A)(r),(0,z.A)(WB(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:PB(e,a),multiplePriority:jB(e),sortOrder:e.defaultSortOrder}))})),r}function zB(e,t,n,r,a,u,c,f){return(t||[]).map((function(t,d){var h=NB(d,f),p=t;if(p.sorter){var v=p.sortDirections||a,g=void 0===p.showSorterTooltip?c:p.showSorterTooltip,m=PB(p,h),y=n.find((function(e){var t=e.key;return t===m})),b=y?y.sortOrder:null,w=BB(v,b),A=v.includes(IB)&&(0,s.bF)(FB,{class:(0,l.A)("".concat(e,"-column-sorter-up"),{active:b===IB})},null),x=v.includes(RB)&&(0,s.bF)(CB,{class:(0,l.A)("".concat(e,"-column-sorter-down"),{active:b===RB})},null),C=u||{},S=C.cancelSort,_=C.triggerAsc,k=C.triggerDesc,E=S;w===RB?E=k:w===IB&&(E=_);var O="object"===(0,Ie.A)(g)?g:{title:E};p=(0,o.A)((0,o.A)({},p),{},{className:(0,l.A)(p.className,(0,i.A)({},"".concat(e,"-column-sort"),b)),title:function(n){var r=(0,s.bF)("div",{class:"".concat(e,"-column-sorters")},[(0,s.bF)("span",{class:"".concat(e,"-column-title")},[MB(t.title,n)]),(0,s.bF)("span",{class:(0,l.A)("".concat(e,"-column-sorter"),(0,i.A)({},"".concat(e,"-column-sorter-full"),!(!A||!x)))},[(0,s.bF)("span",{class:"".concat(e,"-column-sorter-inner")},[A,x])])]);return g?(0,s.bF)(Bl,O,{default:function(){return[r]}}):r},customHeaderCell:function(n){var o=t.customHeaderCell&&t.customHeaderCell(n)||{},i=o.onClick;return o.onClick=function(e){r({column:t,key:m,sortOrder:w,multiplePriority:jB(t)}),i&&i(e)},o.class=(0,l.A)(o.class,"".concat(e,"-column-has-sorters")),o}})}return"children"in p&&(p=(0,o.A)((0,o.A)({},p),{},{children:zB(e,p.children,n,r,a,u,c,h)})),p}))}function UB(e){var t=e.column,n=e.sortOrder;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function KB(e){var t=e.filter((function(e){var t=e.sortOrder;return t})).map(UB);return 0===t.length&&e.length?(0,o.A)((0,o.A)({},UB(e[e.length-1])),{},{column:void 0}):t.length<=1?t[0]||{}:t}function VB(e,t,n){var r=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),a=e.slice(),s=r.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return DB(t)&&n}));return s.length?a.sort((function(e,t){for(var n=0;n<s.length;n+=1){var r=s[n],o=r.column.sorter,i=r.sortOrder,a=DB(o);if(a&&i){var l=a(e,t,i);if(0!==l)return i===IB?l:-l}}return 0})).map((function(e){var r=e[n];return r?(0,o.A)((0,o.A)({},e),{},(0,i.A)({},n,VB(r,t,n))):e})):a}function HB(e){var t=e.prefixCls,n=e.mergedColumns,r=e.onSorterChange,i=e.sortDirections,a=e.tableLocale,l=e.showSorterTooltip,u=ja(WB(n.value,!0)),c=(0,Re.A)(u,2),f=c[0],d=c[1],h=(0,s.EW)((function(){var e=!0,t=WB(n.value,!1);if(!t.length)return f.value;var r=[];function i(t){e?r.push(t):r.push((0,o.A)((0,o.A)({},t),{},{sortOrder:null}))}var a=null;return t.forEach((function(t){null===a?(i(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),i(t))})),r})),p=(0,s.EW)((function(){var e=h.value.map((function(e){var t=e.column,n=e.sortOrder;return{column:t,order:n}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}));function v(e){var t;t=!1!==e.multiplePriority&&h.value.length&&!1!==h.value[0].multiplePriority?[].concat((0,z.A)(h.value.filter((function(t){var n=t.key;return n!==e.key}))),[e]):[e],d(t),r(KB(t),t)}var g=function(e){return zB(t.value,e,h.value,v,i.value,a.value,l.value)},m=(0,s.EW)((function(){return KB(h.value)}));return[g,h,p,m]}var qB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},GB=qB;function YB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$B(e,t,n[t])}))}return e}function $B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XB=function(e,t){var n=YB({},e,t.attrs);return(0,s.bF)(Ya.A,YB({},n,{icon:GB}),null)};XB.displayName="FilterFilled",XB.inheritAttrs=!1;var JB=XB,QB=function(e,t){var n,r=t.slots;return(0,s.bF)("div",{onClick:function(e){return e.stopPropagation()}},[null===(n=r.default)||void 0===n?void 0:n.call(r)])},ZB=QB,eW=(0,s.pM)({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:String,onChange:Function,filterSearch:Boolean,tablePrefixCls:String,locale:{type:Object,default:void 0}},setup:function(e){return function(){var t=e.value,n=e.onChange,r=e.filterSearch,o=e.tablePrefixCls,i=e.locale;return r?(0,s.bF)("div",{class:"".concat(o,"-filter-dropdown-search")},[(0,s.bF)(GF,{placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:"".concat(o,"-filter-dropdown-search-input")},{prefix:function(){return(0,s.bF)(hs,null,null)}})]):null}}}),tW=Symbol("TreeContextKey"),nW=(0,s.pM)({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(e,t){var n=t.slots;return(0,s.Gt)(tW,(0,s.EW)((function(){return e.value}))),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),rW=function(){return(0,s.WQ)(tW,(0,s.EW)((function(){return{}})))},oW=Symbol("KeysStateKey"),iW=function(e){(0,s.Gt)(oW,e)},aW=function(){return(0,s.WQ)(oW,{expandedKeys:(0,s.IJ)([]),selectedKeys:(0,s.IJ)([]),loadedKeys:(0,s.IJ)([]),loadingKeys:(0,s.IJ)([]),checkedKeys:(0,s.IJ)([]),halfCheckedKeys:(0,s.IJ)([]),expandedKeysSet:(0,s.EW)((function(){return new Set})),selectedKeysSet:(0,s.EW)((function(){return new Set})),loadedKeysSet:(0,s.EW)((function(){return new Set})),loadingKeysSet:(0,s.EW)((function(){return new Set})),checkedKeysSet:(0,s.EW)((function(){return new Set})),halfCheckedKeysSet:(0,s.EW)((function(){return new Set})),flattenNodes:(0,s.IJ)([])})},sW=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(t,"-indent-unit"),l=[],u=0;u<n;u+=1){var c;l.push((0,s.bF)("span",{key:u,class:(c={},(0,i.A)(c,a,!0),(0,i.A)(c,"".concat(a,"-start"),r[u]),(0,i.A)(c,"".concat(a,"-end"),o[u]),c)},null))}return(0,s.bF)("span",{"aria-hidden":"true",class:"".concat(t,"-indent")},[l])},lW=sW,uW={eventKey:[String,Number],prefixCls:String,title:Fe.A.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:Fe.A.any,switcherIcon:Fe.A.any,domRef:{type:Function}},cW={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},fW=function(){return{prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Fe.A.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Fe.A.any,selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Fe.A.any,switcherIcon:Fe.A.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String}}},dW=["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"],hW="open",pW="close",vW="---",gW=(0,s.pM)({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:uW,isTreeNode:1,slots:["title","icon","switcherIcon"],setup:function(e,t){var n=t.attrs,r=t.slots,u=t.expose;(0,Ke.$e)(!("slots"in e.data),"treeData slots is deprecated, please use ".concat(Object.keys(e.data.slots||{}).map((function(e){return"`v-slot:"+e+"` "})),"instead"));var c=(0,s.KR)(!1),f=rW(),d=aW(),h=d.expandedKeysSet,p=d.selectedKeysSet,v=d.loadedKeysSet,g=d.loadingKeysSet,m=d.checkedKeysSet,y=d.halfCheckedKeysSet,b=f.value,w=b.dragOverNodeKey,A=b.dropPosition,x=b.keyEntities,C=(0,s.EW)((function(){return AA(e.eventKey,{expandedKeysSet:h.value,selectedKeysSet:p.value,loadedKeysSet:v.value,loadingKeysSet:g.value,checkedKeysSet:m.value,halfCheckedKeysSet:y.value,dragOverNodeKey:w,dropPosition:A,keyEntities:x})})),S=fl((function(){return C.value.expanded})),_=fl((function(){return C.value.selected})),k=fl((function(){return C.value.checked})),E=fl((function(){return C.value.loaded})),O=fl((function(){return C.value.loading})),F=fl((function(){return C.value.halfChecked})),T=fl((function(){return C.value.dragOver})),P=fl((function(){return C.value.dragOverGapTop})),N=fl((function(){return C.value.dragOverGapBottom})),M=fl((function(){return C.value.pos})),L=(0,s.KR)(),I=(0,s.EW)((function(){var t=e.eventKey,n=f.value.keyEntities,r=n[t]||{},o=r.children;return!!(o||[]).length})),R=(0,s.EW)((function(){var t=e.isLeaf,n=f.value.loadData,r=I.value;return!1!==t&&(t||!n&&!r||n&&E.value&&!r)})),j=(0,s.EW)((function(){return R.value?null:S.value?hW:pW})),D=(0,s.EW)((function(){var t=e.disabled,n=f.value.disabled;return!(!n&&!t)})),B=(0,s.EW)((function(){var t=e.checkable,n=f.value.checkable;return!(!n||!1===t)&&n})),W=(0,s.EW)((function(){var t=e.selectable,n=f.value.selectable;return"boolean"===typeof t?t:n})),z=(0,s.EW)((function(){var t=e.data,n=e.active,r=e.checkable,i=e.disableCheckbox,a=e.disabled,s=e.selectable;return(0,o.A)((0,o.A)({active:n,checkable:r,disableCheckbox:i,disabled:a,selectable:s},t),{},{dataRef:t,data:t,isLeaf:R.value,checked:k.value,expanded:S.value,loading:O.value,selected:_.value,halfChecked:F.value})})),U=(0,s.nI)(),K=(0,s.EW)((function(){var t=e.eventKey,n=f.value.keyEntities,r=n[t]||{},i=r.parent;return(0,o.A)((0,o.A)({},xA((0,a.A)({},e,C.value))),{},{parent:i})})),V=(0,s.Kh)({eventData:K,eventKey:(0,s.EW)((function(){return e.eventKey})),selectHandle:L,pos:M,key:U.vnode.key});u(V);var H=function(e){var t=f.value.onNodeDoubleClick;t(e,K.value)},q=function(e){if(!D.value){var t=f.value.onNodeSelect;e.preventDefault(),t(e,K.value)}},G=function(t){if(!D.value){var n=e.disableCheckbox,r=f.value.onNodeCheck;if(B.value&&!n){t.preventDefault();var o=!k.value;r(t,K.value,o)}}},Y=function(e){var t=f.value.onNodeClick;t(e,K.value),W.value?q(e):G(e)},$=function(e){var t=f.value.onNodeMouseEnter;t(e,K.value)},X=function(e){var t=f.value.onNodeMouseLeave;t(e,K.value)},J=function(e){var t=f.value.onNodeContextMenu;t(e,K.value)},Q=function(e){var t=f.value.onNodeDragStart;e.stopPropagation(),c.value=!0,t(e,V);try{e.dataTransfer.setData("text/plain","")}catch(n){}},Z=function(e){var t=f.value.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),t(e,V)},ee=function(e){var t=f.value.onNodeDragOver;e.preventDefault(),e.stopPropagation(),t(e,V)},te=function(e){var t=f.value.onNodeDragLeave;e.stopPropagation(),t(e,V)},ne=function(e){var t=f.value.onNodeDragEnd;e.stopPropagation(),c.value=!1,t(e,V)},re=function(e){var t=f.value.onNodeDrop;e.preventDefault(),e.stopPropagation(),c.value=!1,t(e,V)},oe=function(e){var t=f.value.onNodeExpand;O.value||t(e,K.value)},ie=function(){var t=e.data,n=f.value.draggable;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))},ae=function(){var e=f.value,t=e.draggable,n=e.prefixCls;return t&&null!==t&&void 0!==t&&t.icon?(0,s.bF)("span",{class:"".concat(n,"-draggable-icon")},[t.icon]):null},se=function(){var t,n,o,i=e.switcherIcon,a=void 0===i?r.switcherIcon||(null===(t=f.value.slots)||void 0===t?void 0:t[null===(n=e.data)||void 0===n||null===(o=n.slots)||void 0===o?void 0:o.switcherIcon]):i,s=f.value.switcherIcon,l=a||s;return"function"===typeof l?l(z.value):l},le=function(){var e=f.value,t=e.loadData,n=e.onNodeLoad;O.value||t&&S.value&&!R.value&&(I.value||E.value||n(K.value))};(0,s.sV)((function(){le()})),(0,s.$u)((function(){le()}));var ue=function(){var e=f.value.prefixCls,t=se();if(R.value)return!1!==t?(0,s.bF)("span",{class:(0,l.A)("".concat(e,"-switcher"),"".concat(e,"-switcher-noop"))},[t]):null;var n=(0,l.A)("".concat(e,"-switcher"),"".concat(e,"-switcher_").concat(S.value?hW:pW));return!1!==t?(0,s.bF)("span",{onClick:oe,class:n},[t]):null},ce=function(){var t,n,r=e.disableCheckbox,o=f.value.prefixCls,i=D.value,a=B.value;return a?(0,s.bF)("span",{class:(0,l.A)("".concat(o,"-checkbox"),k.value&&"".concat(o,"-checkbox-checked"),!k.value&&F.value&&"".concat(o,"-checkbox-indeterminate"),(i||r)&&"".concat(o,"-checkbox-disabled")),onClick:G},[null===(t=(n=f.value).customCheckable)||void 0===t?void 0:t.call(n)]):null},fe=function(){var e=f.value.prefixCls;return(0,s.bF)("span",{class:(0,l.A)("".concat(e,"-iconEle"),"".concat(e,"-icon__").concat(j.value||"docu"),O.value&&"".concat(e,"-icon_loading"))},null)},de=function(){var t=e.disabled,n=e.eventKey,r=f.value,o=r.draggable,i=r.dropLevelOffset,a=r.dropPosition,s=r.prefixCls,l=r.indent,u=r.dropIndicatorRender,c=r.dragOverNodeKey,d=r.direction,h=!1!==o,p=!t&&h&&c===n;return p?u({dropPosition:a,dropLevelOffset:i,indent:l,prefixCls:s,direction:d}):null},he=function(){var t,n,o,i,a,u,d=e.icon,h=void 0===d?r.icon:d,p=e.data,v=r.title||(null===(t=f.value.slots)||void 0===t?void 0:t[null===(n=e.data)||void 0===n||null===(o=n.slots)||void 0===o?void 0:o.title])||(null===(i=f.value.slots)||void 0===i?void 0:i.title)||e.title,g=f.value,m=g.prefixCls,y=g.showIcon,b=g.icon,w=g.loadData,A=D.value,x="".concat(m,"-node-content-wrapper");if(y){var C,S,k=h||(null===(C=f.value.slots)||void 0===C?void 0:C[null===p||void 0===p||null===(S=p.slots)||void 0===S?void 0:S.icon])||b;a=k?(0,s.bF)("span",{class:(0,l.A)("".concat(m,"-iconEle"),"".concat(m,"-icon__customize"))},["function"===typeof k?k(z.value):k]):fe()}else w&&O.value&&(a=fe());u="function"===typeof v?v(z.value):v,u=void 0===u?vW:u;var E=(0,s.bF)("span",{class:"".concat(m,"-title")},[u]);return(0,s.bF)("span",{ref:L,title:"string"===typeof v?v:"",class:(0,l.A)("".concat(x),"".concat(x,"-").concat(j.value||"normal"),!A&&(_.value||c.value)&&"".concat(m,"-node-selected")),onMouseenter:$,onMouseleave:X,onContextmenu:J,onClick:Y,onDblclick:H},[a,E,de()])};return function(){var t,r=(0,o.A)((0,o.A)({},e),n),a=r.eventKey,u=r.isLeaf,c=r.isStart,d=r.isEnd,h=r.domRef,p=r.active,v=(r.data,r.onMousemove),g=r.selectable,m=(0,je.A)(r,dW),y=f.value,b=y.prefixCls,w=y.filterTreeNode,A=y.keyEntities,x=y.dropContainerKey,C=y.dropTargetKey,E=y.draggingNodeKey,M=D.value,L=Jo(m,{aria:!0,data:!0}),I=A[a]||{},R=I.level,j=d[d.length-1],B=ie(),W=!M&&B,z=E===a,U=void 0!==g?{"aria-selected":!!g}:void 0;return(0,s.bF)("div",(0,o.A)((0,o.A)({ref:h,class:(0,l.A)(n.class,"".concat(b,"-treenode"),(t={},(0,i.A)(t,"".concat(b,"-treenode-disabled"),M),(0,i.A)(t,"".concat(b,"-treenode-switcher-").concat(S.value?"open":"close"),!u),(0,i.A)(t,"".concat(b,"-treenode-checkbox-checked"),k.value),(0,i.A)(t,"".concat(b,"-treenode-checkbox-indeterminate"),F.value),(0,i.A)(t,"".concat(b,"-treenode-selected"),_.value),(0,i.A)(t,"".concat(b,"-treenode-loading"),O.value),(0,i.A)(t,"".concat(b,"-treenode-active"),p),(0,i.A)(t,"".concat(b,"-treenode-leaf-last"),j),(0,i.A)(t,"".concat(b,"-treenode-draggable"),W),(0,i.A)(t,"dragging",z),(0,i.A)(t,"drop-target",C===a),(0,i.A)(t,"drop-container",x===a),(0,i.A)(t,"drag-over",!M&&T.value),(0,i.A)(t,"drag-over-gap-top",!M&&P.value),(0,i.A)(t,"drag-over-gap-bottom",!M&&N.value),(0,i.A)(t,"filter-node",w&&w(K.value)),t)),style:n.style,draggable:W,"aria-grabbed":z,onDragstart:W?Q:void 0,onDragenter:B?Z:void 0,onDragover:B?ee:void 0,onDragleave:B?te:void 0,onDrop:B?re:void 0,onDragend:B?ne:void 0,onMousemove:v},U),L),[(0,s.bF)(lW,{prefixCls:b,level:R,isStart:c,isEnd:d},null),ae(),ue(),ce(),he()])}}}),mW=["motion","motionNodes","motionType","active","eventKey"],yW=(0,s.pM)({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:(0,o.A)((0,o.A)({},uW),{},{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),slots:["title","icon","switcherIcon","checkable"],setup:function(e,t){var n=t.attrs,r=t.slots,i=(0,s.KR)(!0),l=rW(),u=(0,s.KR)(!1),c=(0,s.EW)((function(){return e.motion?e.motion:Df()})),f=function(t,n){var r,o;if("appear"===n)null===(r=c.value)||void 0===r||null===(o=r.onAfterEnter)||void 0===o||o.call(r,t);else if("leave"===n){var i,a;null===(i=c.value)||void 0===i||null===(a=i.onAfterLeave)||void 0===a||a.call(i,t)}u.value||e.onMotionEnd(),u.value=!0};return(0,s.wB)((function(){return e.motionNodes}),(function(){e.motionNodes&&"hide"===e.motionType&&i.value&&(0,s.dY)((function(){i.value=!1}))}),{immediate:!0,flush:"post"}),(0,s.sV)((function(){e.motionNodes&&e.onMotionStart()})),(0,s.xo)((function(){e.motionNodes&&f()})),function(){e.motion;var t=e.motionNodes,u=e.motionType,d=e.active,h=e.eventKey,p=(0,je.A)(e,mW);return t?(0,s.bF)(s.eB,(0,o.A)((0,o.A)({},c.value),{},{appear:"show"===u,onAfterAppear:function(e){return f(e,"appear")},onAfterLeave:function(e){return f(e,"leave")}}),{default:function(){return[(0,s.bo)((0,s.bF)("div",{class:"".concat(l.value.prefixCls,"-treenode-motion")},[t.map((function(e){var t=(0,a.A)({},(lT(e.data),e.data)),n=e.title,i=e.key,l=e.isStart,u=e.isEnd;return delete t.children,(0,s.bF)(gW,(0,o.A)((0,o.A)({},t),{},{title:n,active:d,data:e.data,key:i,eventKey:i,isStart:l,isEnd:u}),r)}))]),[[s.aG,i.value]])]}}):(0,s.bF)(gW,(0,o.A)((0,o.A)({domRef:s.KR,class:n.class,style:n.style},p),{},{active:d,eventKey:h}),r)}}});function bW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function wW(e,t,n){var r=e.findIndex((function(e){return e.key===n})),o=e[r+1],i=t.findIndex((function(e){return e.key===n}));if(o){var a=t.findIndex((function(e){return e.key===o.key}));return t.slice(i+1,a)}return t.slice(i+1)}var AW=["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"],xW={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},CW=function(){},SW="RC_TREE_MOTION_".concat(Math.random()),_W={key:SW},kW={key:SW,level:0,index:0,pos:"0",node:_W,nodes:[_W]},EW={parent:null,children:[],pos:kW.pos,data:_W,title:null,key:SW,isStart:[],isEnd:[]};function OW(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function FW(e){var t=e.key,n=e.pos;return vA(t,n)}function TW(e){var t=String(e.key),n=e;while(n.parent)n=n.parent,t="".concat(n.key," > ").concat(t);return t}var PW=(0,s.pM)({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:cW,setup:function(e,t){var n=t.expose,r=t.attrs,i=(0,s.KR)(),l=(0,s.KR)(),u=aW(),c=u.expandedKeys,f=u.flattenNodes;n({scrollTo:function(e){i.value.scrollTo(e)},getIndentWidth:function(){return l.value.offsetWidth}});var d=(0,s.IJ)(f.value),h=(0,s.IJ)([]),p=(0,s.KR)(null);function v(){d.value=f.value,h.value=[],p.value=null,e.onListChangeEnd()}var g=rW();(0,s.wB)([function(){return c.value.slice()},f],(function(t,n){var r=(0,Re.A)(t,2),o=r[0],i=r[1],a=(0,Re.A)(n,2),s=a[0],l=a[1],u=bW(s,o);if(null!==u.key){var c=e.virtual,f=e.height,v=e.itemHeight;if(u.add){var g=l.findIndex((function(e){var t=e.key;return t===u.key})),m=OW(wW(l,i,u.key),c,f,v),y=l.slice();y.splice(g+1,0,EW),d.value=y,h.value=m,p.value="show"}else{var b=i.findIndex((function(e){var t=e.key;return t===u.key})),w=OW(wW(i,l,u.key),c,f,v),A=i.slice();A.splice(b+1,0,EW),d.value=A,h.value=w,p.value="hide"}}else l!==i&&(d.value=i)})),(0,s.wB)((function(){return g.value.dragging}),(function(e){e||v()}));var m=(0,s.EW)((function(){return void 0===e.motion?d.value:f.value})),y=function(){e.onActiveChange(null)};return function(){var t=(0,o.A)((0,o.A)({},e),r),n=t.prefixCls,u=(t.selectable,t.checkable,t.disabled),c=t.motion,f=t.height,d=t.itemHeight,g=t.virtual,b=t.focusable,w=t.activeItem,A=t.focused,x=t.tabindex,C=t.onKeydown,S=t.onFocus,_=t.onBlur,k=t.onListChangeStart,E=(t.onListChangeEnd,(0,je.A)(t,AW));return(0,s.bF)(s.FK,null,[A&&w&&(0,s.bF)("span",{style:xW,"aria-live":"assertive"},[TW(w)]),(0,s.bF)("div",null,[(0,s.bF)("input",{style:xW,disabled:!1===b||u,tabindex:!1!==b?x:null,onKeydown:C,onFocus:S,onBlur:_,value:"",onChange:CW,"aria-label":"for screen reader"},null)]),(0,s.bF)("div",{class:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[(0,s.bF)("div",{class:"".concat(n,"-indent")},[(0,s.bF)("div",{ref:l,class:"".concat(n,"-indent-unit")},null)])]),(0,s.bF)(ha,(0,o.A)((0,o.A)({},ce(E,["onActiveChange"])),{},{data:m.value,itemKey:FW,height:f,fullHeight:!1,virtual:g,itemHeight:d,prefixCls:"".concat(n,"-list"),ref:i,onVisibleChange:function(e,t){var n=new Set(e),r=t.filter((function(e){return!n.has(e)}));r.some((function(e){return FW(e)===SW}))&&v()}}),{default:function(e){var t=e.pos,n=(0,a.A)({},(lT(e.data),e.data)),r=e.title,i=e.key,l=e.isStart,u=e.isEnd,f=vA(i,t);return delete n.key,delete n.children,(0,s.bF)(yW,(0,o.A)((0,o.A)({},n),{},{eventKey:f,title:r,active:!!w&&i===w.key,data:e.data,isStart:l,isEnd:u,motion:c,motionNodes:i===SW?h.value:null,motionType:p.value,onMotionStart:k,onMotionEnd:v,onMousemove:y}),null)}})])}}});function NW(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(t){case-1:o.top=0,o.left="".concat(-n*r,"px");break;case 1:o.bottom=0,o.left="".concat(-n*r,"px");break;case 0:o.bottom=0,o.left="".concat(r);break}return(0,s.bF)("div",{style:o},null)}var MW=10,LW=(0,s.pM)({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:Pe(fW(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:NW,allowDrop:function(){return!0}}),setup:function(e,t){var n=t.attrs,r=t.slots,u=t.expose,c=(0,s.KR)(!1),f={},d=(0,s.KR)(),h=(0,s.IJ)([]),p=(0,s.IJ)([]),v=(0,s.IJ)([]),g=(0,s.IJ)([]),m=(0,s.IJ)([]),y=(0,s.IJ)([]),b={},w=(0,s.Kh)({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),A=(0,s.IJ)([]);(0,s.wB)([function(){return e.treeData},function(){return e.children}],(function(){A.value=void 0!==e.treeData?(0,s.ux)(e.treeData).slice():mA((0,s.ux)(e.children))}),{immediate:!0,deep:!0});var x=(0,s.IJ)({}),C=(0,s.KR)(!1),S=(0,s.KR)(null),_=(0,s.KR)(!1),k=(0,s.EW)((function(){return gA(e.fieldNames)})),E=(0,s.KR)(),O=null,F=null,T=null,P=(0,s.EW)((function(){return{expandedKeysSet:N.value,selectedKeysSet:M.value,loadedKeysSet:L.value,loadingKeysSet:I.value,checkedKeysSet:R.value,halfCheckedKeysSet:j.value,dragOverNodeKey:w.dragOverNodeKey,dropPosition:w.dropPosition,keyEntities:x.value}})),N=(0,s.EW)((function(){return new Set(y.value)})),M=(0,s.EW)((function(){return new Set(h.value)})),L=(0,s.EW)((function(){return new Set(g.value)})),I=(0,s.EW)((function(){return new Set(m.value)})),R=(0,s.EW)((function(){return new Set(p.value)})),j=(0,s.EW)((function(){return new Set(v.value)}));(0,s.nT)((function(){if(A.value){var e=wA(A.value,{fieldNames:k.value});x.value=(0,o.A)((0,i.A)({},SW,kW),e.keyEntities)}}));var D=!1;(0,s.wB)([function(){return e.expandedKeys},function(){return e.autoExpandParent},x],(function(t,n){var r=(0,Re.A)(t,2),i=(r[0],r[1]),a=(0,Re.A)(n,2),s=(a[0],a[1]),l=y.value;if(void 0!==e.expandedKeys||D&&i!==s)l=e.autoExpandParent||!D&&e.defaultExpandParent?hA(e.expandedKeys,x.value):e.expandedKeys;else if(!D&&e.defaultExpandAll){var u=(0,o.A)({},x.value);delete u[SW],l=Object.keys(u).map((function(e){return u[e].key}))}else!D&&e.defaultExpandedKeys&&(l=e.autoExpandParent||e.defaultExpandParent?hA(e.defaultExpandedKeys,x.value):e.defaultExpandedKeys);l&&(y.value=l),D=!0}),{immediate:!0});var B=(0,s.IJ)([]);(0,s.nT)((function(){B.value=yA(A.value,y.value,k.value)})),(0,s.nT)((function(){e.selectable&&(void 0!==e.selectedKeys?h.value=fA(e.selectedKeys,e):!D&&e.defaultSelectedKeys&&(h.value=fA(e.defaultSelectedKeys,e)))}));var W=GA(x),U=W.maxLevel,K=W.levelEntities;(0,s.nT)((function(){var t;if(e.checkable&&(void 0!==e.checkedKeys?t=dA(e.checkedKeys)||{}:!D&&e.defaultCheckedKeys?t=dA(e.defaultCheckedKeys)||{}:A.value&&(t=dA(e.checkedKeys)||{checkedKeys:p.value,halfCheckedKeys:v.value}),t)){var n=t,r=n.checkedKeys,o=void 0===r?[]:r,i=n.halfCheckedKeys,a=void 0===i?[]:i;if(!e.checkStrictly){var s=RA(o,!0,x.value,U.value,K.value);o=s.checkedKeys,a=s.halfCheckedKeys}p.value=o,v.value=a}})),(0,s.nT)((function(){e.loadedKeys&&(g.value=e.loadedKeys)}));var V=function(){(0,a.A)(w,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},H=function(e){E.value.scrollTo(e)};(0,s.wB)((function(){return e.activeKey}),(function(){void 0!==e.activeKey&&(S.value=e.activeKey)}),{immediate:!0}),(0,s.wB)(S,(function(e){(0,s.dY)((function(){null!==e&&H({key:e})}))}),{immediate:!0,flush:"post"});var q=function(t){void 0===e.expandedKeys&&(y.value=t)},G=function(){null!==w.draggingNodeKey&&(0,a.A)(w,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),O=null,T=null},Y=function(t,n){var r=e.onDragend;w.dragOverNodeKey=null,G(),null===r||void 0===r||r({event:t,node:n.eventData}),F=null},$=function e(t){Y(t,null,!0),window.removeEventListener("dragend",e)},X=function(t,n){var r=e.onDragstart,o=n.eventKey,i=n.eventData;F=n,O={x:t.clientX,y:t.clientY};var a=nA(y.value,o);w.draggingNodeKey=o,w.dragChildrenKeys=sA(o,x.value),d.value=E.value.getIndentWidth(),q(a),window.addEventListener("dragend",$),r&&r({event:t,node:i})},J=function(t,n){var r=e.onDragenter,o=e.onExpand,i=e.allowDrop,s=e.direction,l=n.pos,u=n.eventKey;if(T!==u&&(T=u),F){var c=cA(t,F,n,d.value,O,i,B.value,x.value,N.value,s),h=c.dropPosition,p=c.dropLevelOffset,v=c.dropTargetKey,g=c.dropContainerKey,m=c.dropTargetPos,b=c.dropAllowed,A=c.dragOverNodeKey;-1===w.dragChildrenKeys.indexOf(v)&&b?(f||(f={}),Object.keys(f).forEach((function(e){clearTimeout(f[e])})),F.eventKey!==n.eventKey&&(f[l]=window.setTimeout((function(){if(null!==w.draggingNodeKey){var e=y.value.slice(),r=x.value[n.eventKey];r&&(r.children||[]).length&&(e=rA(y.value,n.eventKey)),q(e),o&&o(e,{node:n.eventData,expanded:!0,nativeEvent:t})}}),800)),F.eventKey!==v||0!==p?((0,a.A)(w,{dragOverNodeKey:A,dropPosition:h,dropLevelOffset:p,dropTargetKey:v,dropContainerKey:g,dropTargetPos:m,dropAllowed:b}),r&&r({event:t,node:n.eventData,expandedKeys:y.value})):V()):V()}else V()},Q=function(t,n){var r=e.onDragover,o=e.allowDrop,i=e.direction;if(F){var s=cA(t,F,n,d.value,O,o,B.value,x.value,N.value,i),l=s.dropPosition,u=s.dropLevelOffset,c=s.dropTargetKey,f=s.dropContainerKey,h=s.dropAllowed,p=s.dropTargetPos,v=s.dragOverNodeKey;-1===w.dragChildrenKeys.indexOf(c)&&h&&(F.eventKey===c&&0===u?null===w.dropPosition&&null===w.dropLevelOffset&&null===w.dropTargetKey&&null===w.dropContainerKey&&null===w.dropTargetPos&&!1===w.dropAllowed&&null===w.dragOverNodeKey||V():l===w.dropPosition&&u===w.dropLevelOffset&&c===w.dropTargetKey&&f===w.dropContainerKey&&p===w.dropTargetPos&&h===w.dropAllowed&&v===w.dragOverNodeKey||(0,a.A)(w,{dropPosition:l,dropLevelOffset:u,dropTargetKey:c,dropContainerKey:f,dropTargetPos:p,dropAllowed:h,dragOverNodeKey:v}),r&&r({event:t,node:n.eventData}))}},Z=function(t,n){T!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(V(),T=null);var r=e.onDragleave;r&&r({event:t,node:n.eventData})},ee=function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=w.dragChildrenKeys,l=w.dropPosition,u=w.dropTargetKey,c=w.dropTargetPos,f=w.dropAllowed;if(f){var d=e.onDrop;if(w.dragOverNodeKey=null,G(),null!==u){var h=(0,o.A)((0,o.A)({},AA(u,(0,s.ux)(P.value))),{},{active:(null===(r=ve.value)||void 0===r?void 0:r.key)===u,data:x.value[u].node}),p=-1!==a.indexOf(u);(0,Ke.$e)(!p,"Can not drop to dragNode's children node. Maybe this is a bug of ant-design-vue. Please report an issue.");var v=oA(c),g={event:t,node:xA(h),dragNode:F?F.eventData:null,dragNodesKeys:[F.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(v[v.length-1])};i||null===d||void 0===d||d(g),F=null}}},te=function(t,n){var r=e.onClick;r&&r(t,n)},ne=function(t,n){var r=e.onDblclick;r&&r(t,n)},re=function(t,n){var r=h.value,o=e.onSelect,i=e.multiple,a=n.selected,s=n[k.value.key],l=!a;r=l?i?rA(r,s):[s]:nA(r,s);var u=x.value,c=r.map((function(e){var t=u[e];return t?t.node:null})).filter((function(e){return e}));void 0===e.selectedKeys&&(h.value=r),o&&o(r,{event:"select",selected:l,node:n,selectedNodes:c,nativeEvent:t})},oe=function(t,n,r){var o,i=e.checkStrictly,a=e.onCheck,s=n[k.value.key],l={event:"check",node:n,checked:r,nativeEvent:t},u=x.value;if(i){var c=r?rA(p.value,s):nA(p.value,s),f=nA(v.value,s);o={checked:c,halfChecked:f},l.checkedNodes=c.map((function(e){return u[e]})).filter((function(e){return e})).map((function(e){return e.node})),void 0===e.checkedKeys&&(p.value=c)}else{var d=RA([].concat((0,z.A)(p.value),[s]),!0,u,U.value,K.value),h=d.checkedKeys,g=d.halfCheckedKeys;if(!r){var m=new Set(h);m.delete(s);var y=RA(Array.from(m),{checked:!1,halfCheckedKeys:g},u,U.value,K.value);h=y.checkedKeys,g=y.halfCheckedKeys}o=h,l.checkedNodes=[],l.checkedNodesPositions=[],l.halfCheckedKeys=g,h.forEach((function(e){var t=u[e];if(t){var n=t.node,r=t.pos;l.checkedNodes.push(n),l.checkedNodesPositions.push({node:n,pos:r})}})),void 0===e.checkedKeys&&(p.value=h,v.value=g)}a&&a(o,l)},ie=function(t){var n=t[k.value.key],r=new Promise((function(r,o){var i=e.loadData,a=e.onLoad;if(!i||L.value.has(n)||I.value.has(n))return null;var s=i(t);s.then((function(){var o=rA(g.value,n),i=nA(m.value,n);a&&a(o,{event:"load",node:t}),void 0===e.loadedKeys&&(g.value=o),m.value=i,r()})).catch((function(t){var i=nA(m.value,n);if(m.value=i,b[n]=(b[n]||0)+1,b[n]>=MW){(0,Ke.$e)(!1,"Retry for `loadData` many times but still failed. No more retry.");var a=rA(g.value,n);void 0===e.loadedKeys&&(g.value=a),r()}o(t)})),m.value=rA(m.value,n)}));return r.catch((function(){})),r},ae=function(t,n){var r=e.onMouseenter;r&&r({event:t,node:n})},se=function(t,n){var r=e.onMouseleave;r&&r({event:t,node:n})},le=function(t,n){var r=e.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},ue=function(t){var n=e.onFocus;C.value=!0,n&&n(t)},ce=function(t){var n=e.onBlur;C.value=!1,pe(null),n&&n(t)},fe=function(t,n){var r=y.value,o=e.onExpand,i=e.loadData,a=n.expanded,s=n[k.value.key];if(!_.value){var l=r.indexOf(s),u=!a;if((0,Ke.$e)(a&&-1!==l||!a&&-1===l,"Expand state not sync with index check"),r=u?rA(r,s):nA(r,s),q(r),o&&o(r,{node:n,expanded:u,nativeEvent:t}),u&&i){var c=ie(n);c&&c.then((function(){})).catch((function(e){var t=nA(y.value,s);q(t),Promise.reject(e)}))}}},de=function(){_.value=!0},he=function(){setTimeout((function(){_.value=!1}))},pe=function(t){var n=e.onActiveChange;S.value!==t&&(void 0!==e.activeKey&&(S.value=t),null!==t&&H({key:t}),n&&n(t))},ve=(0,s.EW)((function(){return null===S.value?null:B.value.find((function(e){var t=e.key;return t===S.value}))||null})),ge=function(e){var t=B.value.findIndex((function(e){var t=e.key;return t===S.value}));-1===t&&e<0&&(t=B.value.length),t=(t+e+B.value.length)%B.value.length;var n=B.value[t];if(n){var r=n.key;pe(r)}else pe(null)},me=(0,s.EW)((function(){return xA((0,o.A)((0,o.A)({},AA(S.value,P.value)),{},{data:ve.value.data,active:!0}))})),ye=function(t){var n=e.onKeydown,r=e.checkable,o=e.selectable;switch(t.which){case Mo.UP:ge(-1),t.preventDefault();break;case Mo.DOWN:ge(1),t.preventDefault();break}var i=ve.value;if(i&&i.data){var a=!1===i.data.isLeaf||!!(i.data.children||[]).length,s=me.value;switch(t.which){case Mo.LEFT:a&&N.value.has(S.value)?fe({},s):i.parent&&pe(i.parent.key),t.preventDefault();break;case Mo.RIGHT:a&&!N.value.has(S.value)?fe({},s):i.children&&i.children.length&&pe(i.children[0].key),t.preventDefault();break;case Mo.ENTER:case Mo.SPACE:!r||s.disabled||!1===s.checkable||s.disableCheckbox?r||!o||s.disabled||!1===s.selectable||re({},s):oe({},s,!R.value.has(S.value));break}}n&&n(t)};return u({onNodeExpand:fe,scrollTo:H,onKeydown:ye,selectedKeys:(0,s.EW)((function(){return h.value})),checkedKeys:(0,s.EW)((function(){return p.value})),halfCheckedKeys:(0,s.EW)((function(){return v.value})),loadedKeys:(0,s.EW)((function(){return g.value})),loadingKeys:(0,s.EW)((function(){return m.value})),expandedKeys:(0,s.EW)((function(){return y.value}))}),(0,s.hi)((function(){window.removeEventListener("dragend",$),c.value=!0})),iW({expandedKeys:y,selectedKeys:h,loadedKeys:g,loadingKeys:m,checkedKeys:p,halfCheckedKeys:v,expandedKeysSet:N,selectedKeysSet:M,loadedKeysSet:L,loadingKeysSet:I,checkedKeysSet:R,halfCheckedKeysSet:j,flattenNodes:B}),function(){var t,a,u=w.draggingNodeKey,c=w.dropLevelOffset,f=w.dropContainerKey,h=w.dropTargetKey,p=w.dropPosition,v=w.dragOverNodeKey,g=e.prefixCls,m=e.showLine,y=e.focusable,b=e.tabindex,A=void 0===b?0:b,_=e.selectable,k=e.showIcon,O=e.icon,F=void 0===O?r.icon:O,T=e.switcherIcon,P=e.draggable,N=e.checkable,M=e.checkStrictly,L=e.disabled,I=e.motion,R=e.loadData,j=e.filterTreeNode,D=e.height,B=e.itemHeight,W=e.virtual,z=e.dropIndicatorRender,U=e.onContextmenu,K=e.onScroll,V=e.direction,H=n.class,q=n.style,G=Jo((0,o.A)((0,o.A)({},e),n),{aria:!0,data:!0});return P&&(a="object"===(0,Ie.A)(P)?P:"function"===typeof P?{nodeDraggable:P}:{}),(0,s.bF)(nW,{value:{prefixCls:g,selectable:_,showIcon:k,icon:F,switcherIcon:T,draggable:a,draggingNodeKey:u,checkable:N,customCheckable:r.checkable,checkStrictly:M,disabled:L,keyEntities:x.value,dropLevelOffset:c,dropContainerKey:f,dropTargetKey:h,dropPosition:p,dragOverNodeKey:v,dragging:null!==u,indent:d.value,direction:V,dropIndicatorRender:z,loadData:R,filterTreeNode:j,onNodeClick:te,onNodeDoubleClick:ne,onNodeExpand:fe,onNodeSelect:re,onNodeCheck:oe,onNodeLoad:ie,onNodeMouseEnter:ae,onNodeMouseLeave:se,onNodeContextMenu:le,onNodeDragStart:X,onNodeDragEnter:J,onNodeDragOver:Q,onNodeDragLeave:Z,onNodeDragEnd:Y,onNodeDrop:ee,slots:r}},{default:function(){return[(0,s.bF)("div",{role:"tree",class:(0,l.A)(g,H,(t={},(0,i.A)(t,"".concat(g,"-show-line"),m),(0,i.A)(t,"".concat(g,"-focused"),C.value),(0,i.A)(t,"".concat(g,"-active-focused"),null!==S.value),t))},[(0,s.bF)(PW,(0,o.A)({ref:E,prefixCls:g,style:q,disabled:L,selectable:_,checkable:!!N,motion:I,height:D,itemHeight:B,virtual:W,focusable:y,focused:C.value,tabindex:A,activeItem:ve.value,onFocus:ue,onBlur:ce,onKeydown:ye,onActiveChange:pe,onListChangeStart:de,onListChangeEnd:he,onContextmenu:U,onScroll:K},G),null)])]}})}}}),IW=LW,RW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},jW=RW;function DW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BW(e,t,n[t])}))}return e}function BW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WW=function(e,t){var n=DW({},e,t.attrs);return(0,s.bF)(Ya.A,DW({},n,{icon:jW}),null)};WW.displayName="FileOutlined",WW.inheritAttrs=!1;var zW=WW,UW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},KW=UW;function VW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HW(e,t,n[t])}))}return e}function HW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qW=function(e,t){var n=VW({},e,t.attrs);return(0,s.bF)(Ya.A,VW({},n,{icon:KW}),null)};qW.displayName="MinusSquareOutlined",qW.inheritAttrs=!1;var GW=qW,YW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},$W=YW;function XW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){JW(e,t,n[t])}))}return e}function JW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QW=function(e,t){var n=XW({},e,t.attrs);return(0,s.bF)(Ya.A,XW({},n,{icon:$W}),null)};QW.displayName="PlusSquareOutlined",QW.inheritAttrs=!1;var ZW=QW,ez={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},tz=ez;function nz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rz(e,t,n[t])}))}return e}function rz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oz=function(e,t){var n=nz({},e,t.attrs);return(0,s.bF)(Ya.A,nz({},n,{icon:tz}),null)};oz.displayName="CaretDownFilled",oz.inheritAttrs=!1;var iz=oz;function az(e,t,n,r){var i,a=r.isLeaf,l=r.expanded,u=r.loading,c=t;if(u)return(0,s.bF)(Za.A,{class:"".concat(e,"-switcher-loading-icon")},null);n&&"object"===(0,Ie.A)(n)&&(i=n.showLeafIcon);var f=null,d="".concat(e,"-switcher-icon");return a?(n&&(f="object"!==(0,Ie.A)(n)||i?(0,s.bF)(zW,{class:"".concat(e,"-switcher-line-icon")},null):(0,s.bF)("span",{class:"".concat(e,"-switcher-leaf-line")},null)),f):(f=(0,s.bF)(iz,{class:d},null),n&&(f=l?(0,s.bF)(GW,{class:"".concat(e,"-switcher-line-icon")},null):(0,s.bF)(ZW,{class:"".concat(e,"-switcher-line-icon")},null)),"function"===typeof t?c=t((0,o.A)((0,o.A)({},r),{},{defaultIcon:f,switcherCls:d})):(0,B.zO)(c)&&(c=(0,s.E3)(c,{class:d})),c||f)}var sz=4;function lz(e){var t,n=e.dropPosition,r=e.dropLevelOffset,o=e.prefixCls,a=e.indent,l=e.direction,u=void 0===l?"ltr":l,c="ltr"===u?"left":"right",f="ltr"===u?"right":"left",d=(t={},(0,i.A)(t,c,"".concat(-r*a+sz,"px")),(0,i.A)(t,f,0),t);switch(n){case-1:d.top="".concat(-3,"px");break;case 1:d.bottom="".concat(-3,"px");break;default:d.bottom="".concat(-3,"px"),d[c]="".concat(a+sz,"px");break}return(0,s.bF)("div",{style:d,class:"".concat(o,"-drop-indicator")},null)}var uz=function(){var e=fW();return(0,o.A)((0,o.A)({},e),{},{showLine:{type:[Boolean,Object],default:void 0},multiple:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandParent:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},checkedKeys:{type:[Array,Object]},defaultCheckedKeys:{type:Array},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},selectable:{type:Boolean,default:void 0},loadedKeys:{type:Array},draggable:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},icon:{type:Function},switcherIcon:Fe.A.any,prefixCls:String,replaceFields:{type:Object},blockNode:{type:Boolean,default:void 0},openAnimation:Fe.A.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Function,"onUpdate:checkedKeys":Function,"onUpdate:expandedKeys":Function})},cz=(0,s.pM)({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Pe(uz(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,t){var n=t.attrs,r=t.expose,a=t.emit,u=t.slots;(0,Ke.$e)(!(void 0===e.treeData&&u.default),"`children` of Tree is deprecated. Please use `treeData` instead.");var c=(0,se.A)("tree",e),f=c.prefixCls,d=c.direction,h=c.virtual,p=(0,s.KR)(),v=function(e){var t;null===(t=p.value)||void 0===t||t.scrollTo(e)};r({treeRef:p,onNodeExpand:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null===(e=p.value)||void 0===e||e.onNodeExpand.apply(e,n)},scrollTo:v,selectedKeys:(0,s.EW)((function(){var e;return null===(e=p.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:(0,s.EW)((function(){var e;return null===(e=p.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:(0,s.EW)((function(){var e;return null===(e=p.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:(0,s.EW)((function(){var e;return null===(e=p.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:(0,s.EW)((function(){var e;return null===(e=p.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:(0,s.EW)((function(){var e;return null===(e=p.value)||void 0===e?void 0:e.expandedKeys}))}),(0,s.nT)((function(){(0,Wu.A)(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")}));var g=function(e,t){a("update:checkedKeys",e),a("check",e,t)},m=function(e,t){a("update:expandedKeys",e),a("expand",e,t)},y=function(e,t){a("update:selectedKeys",e),a("select",e,t)};return function(){var t,r=e.showIcon,a=e.showLine,c=e.switcherIcon,v=void 0===c?u.switcherIcon:c,b=e.icon,w=void 0===b?u.icon:b,A=e.blockNode,x=e.checkable,C=e.selectable,S=e.fieldNames,_=void 0===S?e.replaceFields:S,k=e.motion,E=void 0===k?e.openAnimation:k,O=e.itemHeight,F=void 0===O?28:O,T=e.onDoubleclick,P=e.onDblclick,N=(0,o.A)((0,o.A)((0,o.A)({},n),ce(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{},{showLine:Boolean(a),dropIndicatorRender:lz,fieldNames:_,icon:w,itemHeight:F}),M=u.default?(0,B.Gk)(u.default()):void 0;return(0,s.bF)(IW,(0,o.A)((0,o.A)({},N),{},{virtual:h.value,motion:E,ref:p,prefixCls:f.value,class:(0,l.A)((t={},(0,i.A)(t,"".concat(f.value,"-icon-hide"),!r),(0,i.A)(t,"".concat(f.value,"-block-node"),A),(0,i.A)(t,"".concat(f.value,"-unselectable"),!C),(0,i.A)(t,"".concat(f.value,"-rtl"),"rtl"===d.value),t),n.class),direction:d.value,checkable:x,selectable:C,switcherIcon:function(e){return az(f.value,v,a,e)},onCheck:g,onExpand:m,onSelect:y,onDblclick:P||T,children:M}),(0,o.A)((0,o.A)({},u),{},{checkable:function(){return(0,s.bF)("span",{class:"".concat(f.value,"-checkbox-inner")},null)}}))}}}),fz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},dz=fz;function hz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pz(e,t,n[t])}))}return e}function pz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vz=function(e,t){var n=hz({},e,t.attrs);return(0,s.bF)(Ya.A,hz({},n,{icon:dz}),null)};vz.displayName="FolderOpenOutlined",vz.inheritAttrs=!1;var gz=vz,mz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},yz=mz;function bz(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wz(e,t,n[t])}))}return e}function wz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Az=function(e,t){var n=bz({},e,t.attrs);return(0,s.bF)(Ya.A,bz({},n,{icon:yz}),null)};Az.displayName="FolderOutlined",Az.inheritAttrs=!1;var xz,Cz=Az;function Sz(e,t,n){function r(e){var r=e[t.key],o=e[t.children];!1!==n(r,e)&&Sz(o||[],t,n)}e.forEach(r)}function _z(e){var t=e.treeData,n=e.expandedKeys,r=e.startKey,o=e.endKey,i=e.fieldNames,a=void 0===i?{title:"title",key:"key",children:"children"}:i,s=[],l=xz.None;if(r&&r===o)return[r];if(!r||!o)return[];function u(e){return e===r||e===o}return Sz(t,a,(function(e){if(l===xz.End)return!1;if(u(e)){if(s.push(e),l===xz.None)l=xz.Start;else if(l===xz.Start)return l=xz.End,!1}else l===xz.Start&&s.push(e);return-1!==n.indexOf(e)})),s}function kz(e,t,n){var r=(0,z.A)(t),o=[];return Sz(e,n,(function(e,t){var n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length})),o}(function(e){e[e["None"]=0]="None",e[e["Start"]=1]="Start",e[e["End"]=2]="End"})(xz||(xz={}));var Ez=["icon","blockNode"],Oz=function(){return(0,o.A)((0,o.A)({},uz()),{},{expandAction:{type:[Boolean,String]}})};function Fz(e){var t=e.isLeaf,n=e.expanded;return t?(0,s.bF)(zW,null,null):n?(0,s.bF)(gz,null,null):(0,s.bF)(Cz,null,null)}var Tz=(0,s.pM)({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Pe(Oz(),{showIcon:!0,expandAction:"click"}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,t){var n,r=t.attrs,a=t.slots,u=t.emit,c=t.expose,f=(0,s.KR)(e.treeData||mA((0,B.Gk)(null===(n=a.default)||void 0===n?void 0:n.call(a))));(0,s.wB)((function(){return e.treeData}),(function(){f.value=e.treeData})),(0,s.$u)((function(){(0,s.dY)((function(){var t;void 0===e.treeData&&a.default&&(f.value=mA((0,B.Gk)(null===(t=a.default)||void 0===t?void 0:t.call(a))))}))}));var d=(0,s.KR)(),h=(0,s.KR)(),p=(0,s.EW)((function(){return gA(e.fieldNames)})),v=(0,s.KR)(),g=function(e){var t;null===(t=v.value)||void 0===t||t.scrollTo(e)};c({scrollTo:g,selectedKeys:(0,s.EW)((function(){var e;return null===(e=v.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:(0,s.EW)((function(){var e;return null===(e=v.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:(0,s.EW)((function(){var e;return null===(e=v.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:(0,s.EW)((function(){var e;return null===(e=v.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:(0,s.EW)((function(){var e;return null===(e=v.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:(0,s.EW)((function(){var e;return null===(e=v.value)||void 0===e?void 0:e.expandedKeys}))});var m=function(){var t,n=wA(f.value,{fieldNames:p.value}),r=n.keyEntities;return t=e.defaultExpandAll?Object.keys(r):e.defaultExpandParent?hA(e.expandedKeys||e.defaultExpandedKeys||[],r):e.expandedKeys||e.defaultExpandedKeys,t},y=(0,s.KR)(e.selectedKeys||e.defaultSelectedKeys||[]),b=(0,s.KR)(m());(0,s.wB)((function(){return e.selectedKeys}),(function(){void 0!==e.selectedKeys&&(y.value=e.selectedKeys)}),{immediate:!0}),(0,s.wB)((function(){return e.expandedKeys}),(function(){void 0!==e.expandedKeys&&(b.value=e.expandedKeys)}),{immediate:!0});var w=function(e,t){var n=t.isLeaf;n||e.shiftKey||e.metaKey||e.ctrlKey||v.value.onNodeExpand(e,t)},A=(0,zb.A)(w,200,{leading:!0}),x=function(t,n){void 0===e.expandedKeys&&(b.value=t),u("update:expandedKeys",t),u("expand",t,n)},C=function(t,n){var r=e.expandAction;"click"===r&&A(t,n),u("click",t,n)},S=function(t,n){var r=e.expandAction;"dblclick"!==r&&"doubleclick"!==r||A(t,n),u("doubleclick",t,n),u("dblclick",t,n)},_=function(t,n){var r,i=e.multiple,a=n.node,s=n.nativeEvent,l=a[p.value.key],c=(0,o.A)((0,o.A)({},n),{},{selected:!0}),v=(null===s||void 0===s?void 0:s.ctrlKey)||(null===s||void 0===s?void 0:s.metaKey),g=null===s||void 0===s?void 0:s.shiftKey;i&&v?(r=t,d.value=l,h.value=r,c.selectedNodes=kz(f.value,r,p.value)):i&&g?(r=Array.from(new Set([].concat((0,z.A)(h.value||[]),(0,z.A)(_z({treeData:f.value,expandedKeys:b.value,startKey:l,endKey:d.value,fieldNames:p.value}))))),c.selectedNodes=kz(f.value,r,p.value)):(r=[l],d.value=l,h.value=r,c.selectedNodes=kz(f.value,r,p.value)),u("update:selectedKeys",r),u("select",r,c),void 0===e.selectedKeys&&(y.value=r)},k=function(e,t){u("update:checkedKeys",e),u("check",e,t)},E=(0,se.A)("tree",e),O=E.prefixCls,F=E.direction;return function(){var t=(0,l.A)("".concat(O.value,"-directory"),(0,i.A)({},"".concat(O.value,"-directory-rtl"),"rtl"===F.value),r.class),n=e.icon,u=void 0===n?a.icon:n,c=e.blockNode,f=void 0===c||c,d=(0,je.A)(e,Ez);return(0,s.bF)(cz,(0,o.A)((0,o.A)((0,o.A)({},r),{},{icon:u||Fz,ref:v,blockNode:f},d),{},{prefixCls:O.value,class:t,expandedKeys:b.value,selectedKeys:y.value,onSelect:_,onClick:C,onDblclick:S,onExpand:x,onCheck:k}),a)}}}),Pz=gW,Nz=(0,a.A)(cz,{DirectoryTree:Tz,TreeNode:Pz,install:function(e){return e.component(cz.name,cz),e.component(Pz.name,Pz),e.component(Tz.name,Tz),e}}),Mz=qf.SubMenu,Lz=qf.Item;function Iz(e){return e.some((function(e){var t=e.children;return t&&t.length>0}))}function Rz(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function jz(e){var t=e.filters,n=e.prefixCls,r=e.filteredKeys,o=e.filterMultiple,i=e.searchValue,a=e.filterSearch;return t.map((function(e,t){var l=String(e.value);if(e.children)return(0,s.bF)(Mz,{key:l||t,title:e.text,popupClassName:"".concat(n,"-dropdown-submenu")},{default:function(){return[jz({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})]}});var u=o?Ax:NI,c=(0,s.bF)(Lz,{key:void 0!==e.value?l:t},{default:function(){return[(0,s.bF)(u,{checked:r.includes(l)},null),(0,s.bF)("span",null,[e.text])]}});return i.trim()?"function"===typeof a?a(i,e)?c:void 0:Rz(i,e.text)?c:void 0:c}))}var Dz=(0,s.pM)({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup:function(e,t){var n=t.slots,r=Bj(),o=(0,s.EW)((function(){var t;return null!==(t=e.filterMode)&&void 0!==t?t:"menu"})),a=(0,s.EW)((function(){var t;return null!==(t=e.filterSearch)&&void 0!==t&&t})),u=(0,s.EW)((function(){return e.column.filterDropdownVisible})),c=(0,s.KR)(!1),f=(0,s.EW)((function(){var t;return!(!e.filterState||!(null!==(t=e.filterState.filteredKeys)&&void 0!==t&&t.length||e.filterState.forceFiltered))})),d=(0,s.EW)((function(){var t;return zz(null===(t=e.column)||void 0===t?void 0:t.filters)})),h=(0,s.EW)((function(){var t=e.column,n=t.filterDropdown,o=t.slots,i=void 0===o?{}:o,a=t.customFilterDropdown;return n||i.filterDropdown&&r.value[i.filterDropdown]||a&&r.value.customFilterDropdown})),p=(0,s.EW)((function(){var t=e.column,n=t.filterIcon,o=t.slots,i=void 0===o?{}:o;return n||i.filterIcon&&r.value[i.filterIcon]||r.value.customFilterIcon})),v=function(t){var n,r;c.value=t,null===(n=(r=e.column).onFilterDropdownVisibleChange)||void 0===n||n.call(r,t)},g=(0,s.EW)((function(){return"boolean"===typeof u.value?u.value:c.value})),m=(0,s.EW)((function(){var t;return null===(t=e.filterState)||void 0===t?void 0:t.filteredKeys})),y=(0,s.IJ)([]),b=function(e){var t=e.selectedKeys;y.value=t},w=function(t,n){var r=n.node,o=n.checked;e.filterMultiple?b({selectedKeys:t}):b({selectedKeys:o&&r.key?[r.key]:[]})};(0,s.wB)(m,(function(){c.value&&b({selectedKeys:m.value||[]})}),{immediate:!0});var A=(0,s.IJ)([]),x=(0,s.KR)(),C=function(e){x.value=setTimeout((function(){A.value=e}))},S=function(){clearTimeout(x.value)};(0,s.xo)((function(){clearTimeout(x.value)}));var _=(0,s.KR)(""),k=function(e){var t=e.target.value;_.value=t};(0,s.wB)(c,(function(){c.value||(_.value="")}));var E=function(t){var n=e.column,r=e.columnKey,o=e.filterState,i=t&&t.length?t:null;return null!==i||o&&o.filteredKeys?no(i,null===o||void 0===o?void 0:o.filteredKeys)?null:void e.triggerFilter({column:n,key:r,filteredKeys:i}):null},O=function(){v(!1),E(y.value)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},t=e.confirm,n=e.closeDropdown;t&&E([]),n&&v(!1),_.value="",y.value=[]},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0},t=e.closeDropdown;t&&v(!1),E(y.value)},P=function(e){e&&void 0!==m.value&&(y.value=m.value||[]),v(e),e||h.value||O()},N=(0,se.A)("",e),M=N.direction,L=function(e){if(e.target.checked){var t=d.value;y.value=t}else y.value=[]},I=function e(t){var n=t.filters;return(n||[]).map((function(t,n){var r=String(t.value),o={title:t.text,key:void 0!==t.value?r:n};return t.children&&(o.children=e({filters:t.children})),o}))},R=(0,s.EW)((function(){return I({filters:e.column.filters})})),j=(0,s.EW)((function(){return(0,l.A)((0,i.A)({},"".concat(e.dropdownPrefixCls,"-menu-without-submenu"),!Iz(e.column.filters||[])))})),D=function(){var t=y.value,n=e.column,r=e.locale,i=e.tablePrefixCls,l=e.filterMultiple,u=e.dropdownPrefixCls,c=e.getPopupContainer,f=e.prefixCls;return 0===(n.filters||[]).length?(0,s.bF)(v_.A,{image:v_.A.PRESENTED_IMAGE_SIMPLE,description:r.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):"tree"===o.value?(0,s.bF)(s.FK,null,[(0,s.bF)(eW,{filterSearch:a.value,value:_.value,onChange:k,tablePrefixCls:i,locale:r},null),(0,s.bF)("div",{class:"".concat(i,"-filter-dropdown-tree")},[l?(0,s.bF)(Ax,{class:"".concat(i,"-filter-dropdown-checkall"),onChange:L,checked:t.length===d.value.length,indeterminate:t.length>0&&t.length<d.value.length},{default:function(){return[r.filterCheckall]}}):null,(0,s.bF)(Nz,{checkable:!0,selectable:!1,blockNode:!0,multiple:l,checkStrictly:!l,class:"".concat(u,"-menu"),onCheck:w,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:R.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:_.value.trim()?function(e){return Rz(_.value,e.title)}:void 0},null)])]):(0,s.bF)(s.FK,null,[(0,s.bF)(eW,{filterSearch:a.value,value:_.value,onChange:k,tablePrefixCls:i,locale:r},null),(0,s.bF)(qf,{multiple:l,prefixCls:"".concat(u,"-menu"),class:j.value,onClick:S,onSelect:b,onDeselect:b,selectedKeys:t,getPopupContainer:c,openKeys:A.value,onOpenChange:C},{default:function(){return jz({filters:n.filters||[],filterSearch:a.value,prefixCls:f,filteredKeys:y.value,filterMultiple:l,searchValue:_.value})}})])};return function(){var t,r,o=e.tablePrefixCls,i=e.prefixCls,a=e.column,u=e.dropdownPrefixCls,c=e.locale,d=e.getPopupContainer;if("function"===typeof h.value)r=h.value({prefixCls:"".concat(u,"-custom"),setSelectedKeys:function(e){return b({selectedKeys:e})},selectedKeys:y.value,confirm:T,clearFilters:F,filters:a.filters,visible:g.value,column:a.__originColumn__});else if(h.value)r=h.value;else{var v=y.value;r=(0,s.bF)(s.FK,null,[D(),(0,s.bF)("div",{class:"".concat(i,"-dropdown-btns")},[(0,s.bF)(tc,{type:"link",size:"small",disabled:0===v.length,onClick:function(){return F()}},{default:function(){return[c.filterReset]}}),(0,s.bF)(tc,{type:"primary",size:"small",onClick:O},{default:function(){return[c.filterConfirm]}})])])}var m,w=(0,s.bF)(ZB,{class:"".concat(i,"-dropdown")},{default:function(){return[r]}});return m="function"===typeof p.value?p.value({filtered:f.value,column:a.__originColumn__}):p.value?p.value:(0,s.bF)(JB,null,null),(0,s.bF)("div",{class:"".concat(i,"-column")},[(0,s.bF)("span",{class:"".concat(o,"-column-title")},[null===(t=n.default)||void 0===t?void 0:t.call(n)]),(0,s.bF)(AS,{overlay:w,trigger:["click"],visible:g.value,onVisibleChange:P,getPopupContainer:d,placement:"rtl"===M.value?"bottomLeft":"bottomRight"},{default:function(){return[(0,s.bF)("span",{role:"button",tabindex:-1,class:(0,l.A)("".concat(i,"-trigger"),{active:f.value}),onClick:function(e){e.stopPropagation()}},[m])]}})])}}});function Bz(e,t,n){var r=[];return(e||[]).forEach((function(e,o){var i,a=NB(o,n),s=e.filterDropdown||(null===e||void 0===e||null===(i=e.slots)||void 0===i?void 0:i.filterDropdown)||e.customFilterDropdown;if(e.filters||s||"onFilter"in e)if("filteredValue"in e){var l,u,c=e.filteredValue;if(!s)c=null!==(l=null===(u=c)||void 0===u?void 0:u.map(String))&&void 0!==l?l:c;r.push({column:e,key:PB(e,a),filteredKeys:c,forceFiltered:e.filtered})}else r.push({column:e,key:PB(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat((0,z.A)(r),(0,z.A)(Bz(e.children,t,a))))})),r}function Wz(e,t,n,r,i,a,l,u){return n.map((function(n,c){var f,d=NB(c,u),h=n.filterMultiple,p=void 0===h||h,v=n.filterMode,g=n.filterSearch,m=n,y=n.filterDropdown||(null===n||void 0===n||null===(f=n.slots)||void 0===f?void 0:f.filterDropdown)||n.customFilterDropdown;if(m.filters||y){var b=PB(m,d),w=r.find((function(e){var t=e.key;return b===t}));m=(0,o.A)((0,o.A)({},m),{},{title:function(r){return(0,s.bF)(Dz,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:m,columnKey:b,filterState:w,filterMultiple:p,filterMode:v,filterSearch:g,triggerFilter:i,locale:l,getPopupContainer:a},{default:function(){return[MB(n.title,r)]}})}})}return"children"in m&&(m=(0,o.A)((0,o.A)({},m),{},{children:Wz(e,t,m.children,r,i,a,l,d)})),m}))}function zz(e){var t=[];return(e||[]).forEach((function(e){var n=e.value,r=e.children;t.push(n),r&&(t=[].concat((0,z.A)(t),(0,z.A)(zz(r))))})),t}function Uz(e){var t={};return e.forEach((function(e){var n,r=e.key,o=e.filteredKeys,i=e.column,a=i.filterDropdown||(null===i||void 0===i||null===(n=i.slots)||void 0===n?void 0:n.filterDropdown)||i.customFilterDropdown,s=i.filters;if(a)t[r]=o||null;else if(Array.isArray(o)){var l=zz(s);t[r]=l.filter((function(e){return o.includes(String(e))}))}else t[r]=null})),t}function Kz(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,o=n.filters,i=t.filteredKeys;return r&&i&&i.length?e.filter((function(e){return i.some((function(t){var n=zz(o),i=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==i?n[i]:t;return r(a,e)}))})):e}),e)}function Vz(e){var t=e.prefixCls,n=e.dropdownPrefixCls,r=e.mergedColumns,o=e.locale,i=e.onFilterChange,a=e.getPopupContainer,l=ja(Bz(r.value,!0)),u=(0,Re.A)(l,2),c=u[0],f=u[1],d=(0,s.EW)((function(){var e=Bz(r.value,!1),t=e.every((function(e){var t=e.filteredKeys;return void 0===t}));if(t)return c.value;var n=e.every((function(e){var t=e.filteredKeys;return void 0!==t}));return(0,Wu.A)(t||n,"Table","`FilteredKeys` should all be controlled or not controlled."),e})),h=(0,s.EW)((function(){return Uz(d.value)})),p=function(e){var t=d.value.filter((function(t){var n=t.key;return n!==e.key}));t.push(e),f(t),i(Uz(t),t)},v=function(e){return Wz(t.value,n.value,e,d.value,p,a.value,o.value)};return[v,d,h]}var Hz=Vz;function qz(e,t){return e.map((function(e){var n=(0,o.A)({},e);return n.title=MB(n.title,t),"children"in n&&(n.children=qz(n.children,t)),n}))}function Gz(e){var t=function(t){return qz(t,e.value)};return[t]}function Yz(e){return function(t){var n,r=t.prefixCls,o=t.onExpand,a=t.record,u=t.expanded,c=t.expandable,f="".concat(r,"-row-expand-icon");return(0,s.bF)("button",{type:"button",onClick:function(e){o(a,e),e.stopPropagation()},class:(0,l.A)(f,(n={},(0,i.A)(n,"".concat(f,"-spaced"),!c),(0,i.A)(n,"".concat(f,"-expanded"),c&&u),(0,i.A)(n,"".concat(f,"-collapsed"),c&&!u),n)),"aria-label":u?e.collapse:e.expand},null)}}var $z=Yz;function Xz(e,t){var n=t.value;return e.map((function(e){var r;if(e===fB||e===xD)return e;var i=(0,o.A)({},e),a=i.slots,l=void 0===a?{}:a;return i.__originColumn__=e,(0,Wu.A)(!("slots"in i),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(l).forEach((function(e){var t=l[e];void 0===i[e]&&n[t]&&(i[e]=n[t])})),!t.value.headerCell||null!==(r=e.slots)&&void 0!==r&&r.title||(i.title=(0,s.RG)(t.value,"headerCell",{title:e.title,column:e},(function(){return[e.title]}))),"children"in i&&(i.children=Xz(i.children,t)),i}))}function Jz(e){var t=function(t){return Xz(t,e)};return[t]}var Qz=[],Zz=function(){return{prefixCls:{type:String,default:void 0},columns:{type:Array,default:void 0},rowKey:{type:[String,Function],default:void 0},tableLayout:{type:String,default:void 0},rowClassName:{type:[String,Function],default:void 0},title:{type:Function,default:void 0},footer:{type:Function,default:void 0},id:{type:String,default:void 0},showHeader:{type:Boolean,default:void 0},components:{type:Object,default:void 0},customRow:{type:Function,default:void 0},customHeaderRow:{type:Function,default:void 0},direction:{type:String,default:void 0},expandFixed:{type:[Boolean,String],default:void 0},expandColumnWidth:{type:Number,default:void 0},expandedRowKeys:{type:Array,default:void 0},defaultExpandedRowKeys:{type:Array,default:void 0},expandedRowRender:{type:Function,default:void 0},expandRowByClick:{type:Boolean,default:void 0},expandIcon:{type:Function,default:void 0},onExpand:{type:Function,default:void 0},onExpandedRowsChange:{type:Function,default:void 0},"onUpdate:expandedRowKeys":{type:Function,default:void 0},defaultExpandAllRows:{type:Boolean,default:void 0},indentSize:{type:Number,default:void 0},expandIconColumnIndex:{type:Number,default:void 0},showExpandColumn:{type:Boolean,default:void 0},expandedRowClassName:{type:Function,default:void 0},childrenColumnName:{type:String,default:void 0},rowExpandable:{type:Function,default:void 0},sticky:{type:[Boolean,Object],default:void 0},dropdownPrefixCls:String,dataSource:{type:Array,default:void 0},pagination:{type:[Boolean,Object],default:void 0},loading:{type:[Boolean,Object],default:void 0},size:{type:String,default:void 0},bordered:Boolean,locale:{type:Object,default:void 0},onChange:{type:Function,default:void 0},onResizeColumn:{type:Function,default:void 0},rowSelection:{type:Object,default:void 0},getPopupContainer:{type:Function,default:void 0},scroll:{type:Object,default:void 0},sortDirections:{type:Array,default:void 0},showSorterTooltip:{type:[Boolean,Object],default:!0},contextSlots:{type:Object},transformCellText:{type:Function}}},eU=(0,s.pM)({name:"InteralTable",inheritAttrs:!1,props:Pe(Zz(),{rowKey:"key"}),slots:["emptyText","expandIcon","title","footer","summary","expandedRowRender","bodyCell","headerCell","customFilterIcon","customFilterDropdown"],setup:function(e,t){var n=t.attrs,r=t.slots,u=t.expose,c=t.emit;(0,Wu.A)(!("function"===typeof e.rowKey&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),Dj((0,s.EW)((function(){return e.contextSlots}))),zj({onResizeColumn:function(e,t){c("resizeColumn",e,t)}});var f=il(),d=(0,s.EW)((function(){var t=new Set(Object.keys(f.value).filter((function(e){return f.value[e]})));return e.columns.filter((function(e){return!e.responsive||e.responsive.some((function(e){return t.has(e)}))}))})),h=(0,se.A)("table",e),p=h.size,v=h.renderEmpty,g=h.direction,m=h.prefixCls,y=h.configProvider,b=(0,s.EW)((function(){return e.transformCellText||y.transformCellText})),w=(0,xg.n)("Table",MT["default"].Table,(0,s.lW)(e,"locale")),A=(0,Re.A)(w,1),x=A[0],C=(0,s.EW)((function(){return e.dataSource||Qz})),S=(0,s.EW)((function(){return y.getPrefixCls("dropdown",e.dropdownPrefixCls)})),_=(0,s.EW)((function(){return e.childrenColumnName||"children"})),k=(0,s.EW)((function(){return C.value.some((function(e){return null===e||void 0===e?void 0:e[_.value]}))?"nest":e.expandedRowRender?"row":null})),E=(0,s.Kh)({body:null}),O=function(e){(0,a.A)(E,e)},F=(0,s.EW)((function(){return"function"===typeof e.rowKey?e.rowKey:function(t){return null===t||void 0===t?void 0:t[e.rowKey]}})),T=cB(C,_,F),P=(0,Re.A)(T,1),N=P[0],M={},L=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.pagination,a=e.scroll,s=e.onChange,l=(0,o.A)((0,o.A)({},M),t);r&&(M.resetPagination(),l.pagination.current&&(l.pagination.current=1),i&&i.onChange&&i.onChange(1,l.pagination.pageSize)),a&&!1!==a.scrollToFirstRowOnChange&&E.body&&ye(0,{getContainer:function(){return E.body}}),null===s||void 0===s||s(l.pagination,l.filters,l.sorter,{currentDataSource:Kz(VB(C.value,l.sorterStates,_.value),l.filterStates),action:n})},I=function(e,t){L({sorter:e,sorterStates:t},"sort",!1)},R=HB({prefixCls:m,mergedColumns:d,onSorterChange:I,sortDirections:(0,s.EW)((function(){return e.sortDirections||["ascend","descend"]})),tableLocale:x,showSorterTooltip:(0,s.lW)(e,"showSorterTooltip")}),j=(0,Re.A)(R,4),D=j[0],B=j[1],W=j[2],z=j[3],U=(0,s.EW)((function(){return VB(C.value,B.value,_.value)})),K=function(e,t){L({filters:e,filterStates:t},"filter",!0)},V=Hz({prefixCls:m,locale:x,dropdownPrefixCls:S,mergedColumns:d,onFilterChange:K,getPopupContainer:(0,s.lW)(e,"getPopupContainer")}),H=(0,Re.A)(V,3),q=H[0],G=H[1],Y=H[2],$=(0,s.EW)((function(){return Kz(U.value,G.value)})),X=Jz((0,s.lW)(e,"contextSlots")),J=(0,Re.A)(X,1),Q=J[0],Z=(0,s.EW)((function(){return(0,o.A)({},W.value)})),ee=Gz(Z),te=(0,Re.A)(ee,1),ne=te[0],re=function(e,t){L({pagination:(0,o.A)((0,o.A)({},M.pagination),{},{current:e,pageSize:t})},"paginate")},oe=uB((0,s.EW)((function(){return $.value.length})),(0,s.lW)(e,"pagination"),re),ie=(0,Re.A)(oe,2),ae=ie[0],le=ie[1];(0,s.nT)((function(){M.sorter=z.value,M.sorterStates=B.value,M.filters=Y.value,M.filterStates=G.value,M.pagination=!1===e.pagination?{}:sB(e.pagination,ae.value),M.resetPagination=le}));var ue=(0,s.EW)((function(){if(!1===e.pagination||!ae.value.pageSize)return $.value;var t=ae.value,n=t.current,r=void 0===n?1:n,o=t.total,i=t.pageSize,a=void 0===i?aB:i;return(0,Wu.A)(r>0,"Table","`current` should be positive number."),$.value.length<o?$.value.length>a?$.value.slice((r-1)*a,r*a):$.value:$.value.slice((r-1)*a,r*a)}));(0,s.nT)((function(){(0,s.dY)((function(){var e=ae.value,t=e.total,n=e.pageSize,r=void 0===n?aB:n;$.value.length<t&&$.value.length>r&&(0,Wu.A)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")}))}),{flush:"post"});var fe=(0,s.EW)((function(){return!1===e.showExpandColumn?-1:"nest"===k.value&&void 0===e.expandIconColumnIndex?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex})),de=(0,s.KR)();(0,s.wB)((function(){return e.rowSelection}),(function(){de.value=e.rowSelection?(0,o.A)({},e.rowSelection):e.rowSelection}),{deep:!0,immediate:!0});var he=mB(de,{prefixCls:m,data:$,pageData:ue,getRowKey:F,getRecordByKey:N,expandType:k,childrenColumnName:_,locale:x,getPopupContainer:(0,s.EW)((function(){return e.getPopupContainer}))}),pe=(0,Re.A)(he,2),ve=pe[0],ge=pe[1],me=function(t,n,r){var o,a=e.rowClassName;return o="function"===typeof a?(0,l.A)(a(t,n,r)):(0,l.A)(a),(0,l.A)((0,i.A)({},"".concat(m.value,"-row-selected"),ge.value.has(F.value(t,n))),o)};u({selectedKeySet:ge});var be=(0,s.EW)((function(){return"number"===typeof e.indentSize?e.indentSize:15})),we=function(e){var t=ne(ve(q(D(Q(e)))));return t};return function(){var t,a,u,c,f,h=e.expandIcon,y=void 0===h?r.expandIcon||$z(x.value):h,w=e.pagination,A=e.loading,S=e.bordered;if(!1!==w&&null!==(t=ae.value)&&void 0!==t&&t.total){var _;_=ae.value.size?ae.value.size:"small"===p.value||"middle"===p.value?"small":void 0;var k=function(e){return(0,s.bF)(HN,(0,o.A)((0,o.A)({},ae.value),{},{class:["".concat(m.value,"-pagination ").concat(m.value,"-pagination-").concat(e),ae.value.class],size:_}),null)},T="rtl"===g.value?"left":"right",P=ae.value.position;if(null!==P&&Array.isArray(P)){var N=P.find((function(e){return-1!==e.indexOf("top")})),M=P.find((function(e){return-1!==e.indexOf("bottom")})),L=P.every((function(e){return"none"==="".concat(e)}));N||M||L||(c=k(T)),N&&(u=k(N.toLowerCase().replace("top",""))),M&&(c=k(M.toLowerCase().replace("bottom","")))}else c=k(T)}"boolean"===typeof A?f={spinning:A}:"object"===(0,Ie.A)(A)&&(f=(0,o.A)({spinning:!0},A));var I=(0,l.A)("".concat(m.value,"-wrapper"),(0,i.A)({},"".concat(m.value,"-wrapper-rtl"),"rtl"===g.value),n.class),R=ce(e,["columns"]);return(0,s.bF)("div",{class:I,style:n.style},[(0,s.bF)(yN,(0,o.A)({spinning:!1},f),{default:function(){return[u,(0,s.bF)(iB,(0,o.A)((0,o.A)((0,o.A)({},n),R),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:fe.value,indentSize:be.value,expandIcon:y,columns:d.value,direction:g.value,prefixCls:m.value,class:(0,l.A)((a={},(0,i.A)(a,"".concat(m.value,"-middle"),"middle"===p.value),(0,i.A)(a,"".concat(m.value,"-small"),"small"===p.value),(0,i.A)(a,"".concat(m.value,"-bordered"),S),(0,i.A)(a,"".concat(m.value,"-empty"),0===C.value.length),a)),data:ue.value,rowKey:F.value,rowClassName:me,internalHooks:rB,internalRefs:E,onUpdateInternalRefs:O,transformColumns:we,transformCellText:b.value}),(0,o.A)((0,o.A)({},r),{},{emptyText:function(){var t,n;return(null===(t=r.emptyText)||void 0===t?void 0:t.call(r))||(null===(n=e.locale)||void 0===n?void 0:n.emptyText)||v.value("Table")}})),c]}})])}}}),tU=(0,s.pM)({name:"ATable",inheritAttrs:!1,setup:function(e,t){var n=t.attrs,r=t.slots,i=t.expose,a=(0,s.KR)();return i({table:a}),function(){var e,t=n,i=t.columns||LB(null===(e=r.default)||void 0===e?void 0:e.call(r));return(0,s.bF)(eU,(0,o.A)((0,o.A)({ref:a},n),{},{columns:i||[],expandedRowRender:r.expandedRowRender,contextSlots:(0,o.A)({},r)}),r)}}}),nU=tU,rU=(0,s.pM)({name:"ATableColumn",slots:["title","filterIcon"],render:function(){return null}}),oU=(0,s.pM)({name:"ATableColumnGroup",slots:["title"],__ANT_TABLE_COLUMN_GROUP:!0,render:function(){return null}}),iU=(0,s.pM)({compatConfig:{MODE:3},name:"ATableSummaryRow",setup:function(e,t){var n=t.slots;return function(){var e;return(0,s.bF)("tr",null,[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),aU=(0,s.pM)({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup:function(e,t){var n=t.attrs,r=t.slots,i=Tj(),a=UD();return function(){var t=e.index,l=e.colSpan,u=void 0===l?1:l,c=e.rowSpan,f=e.align,d=i.prefixCls,h=i.direction,p=a.scrollColumnIndex,v=a.stickyOffsets,g=a.flattenColumns,m=t+u-1,y=m+1===p?u+1:u,b=eD(t,t+y-1,g,v,h);return(0,s.bF)(Zj,(0,o.A)({class:n.class,index:t,component:"td",prefixCls:d,record:null,dataIndex:null,align:f,colSpan:y,rowSpan:c,customRender:function(){var e;return null===(e=r.default)||void 0===e?void 0:e.call(r)}},b),null)}}}),sU=iU,lU=aU,uU=(0,a.A)(VD,{Cell:lU,Row:sU,name:"ATableSummary"}),cU=(0,a.A)(nU,{SELECTION_ALL:dB,SELECTION_INVERT:hB,SELECTION_NONE:pB,SELECTION_COLUMN:fB,EXPAND_COLUMN:xD,Column:rU,ColumnGroup:oU,Summary:uU,install:function(e){return e.component(uU.name,uU),e.component(lU.name,lU),e.component(sU.name,sU),e.component(nU.name,nU),e.component(rU.name,rU),e.component(oU.name,oU),e}}),fU={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},dU=(0,s.pM)({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:Pe(fU,{placeholder:""}),emits:["change"],setup:function(e,t){var n=t.emit,r=function(t){var r;(n("change",t),""===t.target.value)&&(null===(r=e.handleClear)||void 0===r||r.call(e))};return function(){var t=e.placeholder,n=e.value,o=e.prefixCls,i=e.disabled;return(0,s.bF)(GF,{placeholder:t,class:o,value:n,onChange:r,disabled:i,allowClear:!0},{prefix:function(){return(0,s.bF)(hs,null,null)}})}}}),hU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},pU=hU;function vU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gU(e,t,n[t])}))}return e}function gU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mU=function(e,t){var n=vU({},e,t.attrs);return(0,s.bF)(Ya.A,vU({},n,{icon:pU}),null)};mU.displayName="DeleteOutlined",mU.inheritAttrs=!1;var yU=mU;function bU(){}var wU={renderedText:Fe.A.any,renderedEl:Fe.A.any,item:Fe.A.any,checked:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},showRemove:{type:Boolean,default:void 0},onClick:Function,onRemove:Function},AU=(0,s.pM)({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:wU,emits:["click","remove"],setup:function(e,t){var n=t.emit;return function(){var t,r,o=e.renderedText,a=e.renderedEl,u=e.item,c=e.checked,f=e.disabled,d=e.prefixCls,h=e.showRemove,p=(0,l.A)((t={},(0,i.A)(t,"".concat(d,"-content-item"),!0),(0,i.A)(t,"".concat(d,"-content-item-disabled"),f||u.disabled),t));return"string"!==typeof o&&"number"!==typeof o||(r=String(o)),(0,s.bF)(xg.A,{componentName:"Transfer",defaultLocale:EE.A.Transfer},{default:function(e){var t=(0,s.bF)("span",{class:"".concat(d,"-content-item-text")},[a]);return h?(0,s.bF)("li",{class:p,title:r},[t,(0,s.bF)($L,{disabled:f||u.disabled,class:"".concat(d,"-content-item-remove"),"aria-label":e.remove,onClick:function(){n("remove",u)}},{default:function(){return[(0,s.bF)(yU,null,null)]}})]):(0,s.bF)("li",{class:p,title:r,onClick:f||u.disabled?bU:function(){n("click",u)}},[(0,s.bF)(Ax,{class:"".concat(d,"-checkbox"),checked:c,disabled:f||u.disabled},null),t])}})}}}),xU={prefixCls:String,filteredRenderItems:Fe.A.array.def([]),selectedKeys:Fe.A.array,disabled:{type:Boolean,default:void 0},showRemove:{type:Boolean,default:void 0},pagination:Fe.A.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function CU(e){if(!e)return null;var t={pageSize:10};return"object"===(0,Ie.A)(e)?(0,o.A)((0,o.A)({},t),e):t}var SU=(0,s.pM)({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:xU,emits:["itemSelect","itemRemove","scroll"],setup:function(e,t){var n=t.emit,r=t.expose,o=(0,s.KR)(1),a=function(t){var r=e.selectedKeys,o=r.indexOf(t.key)>=0;n("itemSelect",t.key,!o)},u=function(e){n("itemRemove",[e.key])},c=function(e){n("scroll",e)},f=(0,s.EW)((function(){return CU(e.pagination)}));(0,s.wB)([f,function(){return e.filteredRenderItems}],(function(){if(f.value){var t=Math.ceil(e.filteredRenderItems.length/f.value.pageSize);o.value>t&&(o.value=t)}}),{immediate:!0});var d=(0,s.EW)((function(){var t=e.filteredRenderItems,n=t;return f.value&&(n=t.slice((o.value-1)*f.value.pageSize,o.value*f.value.pageSize)),n})),h=function(e){o.value=e};return r({items:d}),function(){var t=e.prefixCls,n=e.filteredRenderItems,r=e.selectedKeys,p=e.disabled,v=e.showRemove,g=null;f.value&&(g=(0,s.bF)(HN,{simple:!0,size:"small",disabled:p,class:"".concat(t,"-pagination"),total:n.length,pageSize:f.value.pageSize,current:o.value,onChange:h},null));var m=d.value.map((function(e){var n=e.renderedEl,o=e.renderedText,i=e.item,l=i.disabled,c=r.indexOf(i.key)>=0;return(0,s.bF)(AU,{disabled:p||l,key:i.key,item:i,renderedText:o,renderedEl:n,checked:c,prefixCls:t,onClick:a,onRemove:u,showRemove:v},null)}));return(0,s.bF)(s.FK,null,[(0,s.bF)("ul",{class:(0,l.A)("".concat(t,"-content"),(0,i.A)({},"".concat(t,"-content-show-remove"),v)),onScroll:c},[m]),g])}}}),_U=SU,kU=function(){return null};function EU(e){return e&&!(0,B.zO)(e)&&"[object Object]"===Object.prototype.toString.call(e)}function OU(e){return e.filter((function(e){return!e.disabled})).map((function(e){return e.key}))}var FU={prefixCls:String,dataSource:{type:Array,default:[]},filter:String,filterOption:Function,checkedKeys:Fe.A.arrayOf(Fe.A.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:{type:Boolean,default:!1},searchPlaceholder:String,notFoundContent:Fe.A.any,itemUnit:String,itemsUnit:String,renderList:Fe.A.any,disabled:{type:Boolean,default:void 0},direction:String,showSelectAll:{type:Boolean,default:void 0},remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:Fe.A.any,showRemove:{type:Boolean,default:void 0},pagination:Fe.A.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},TU=(0,s.pM)({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:FU,slots:["footer","titleText"],setup:function(e,t){var n=t.attrs,r=t.slots,a=(0,s.KR)(""),u=(0,s.KR)(),c=(0,s.KR)(),f=function(e,t){var n=e?e(t):null,r=!!n&&(0,B.Gk)(n).length>0;return r||(n=(0,s.bF)(_U,(0,o.A)((0,o.A)({},t),{},{ref:c}),null)),{customize:r,bodyContent:n}},d=function(t){var n=e.renderItem,r=void 0===n?kU:n,o=r(t),i=EU(o);return{renderedText:i?o.value:o,renderedEl:i?o.label:o,item:t}},h=(0,s.KR)([]),p=(0,s.KR)([]);(0,s.nT)((function(){var t=[],n=[];e.dataSource.forEach((function(e){var r=d(e),o=r.renderedText;if(a.value&&a.value.trim()&&!A(o,e))return null;t.push(e),n.push(r)})),h.value=t,p.value=n}));var v=(0,s.EW)((function(){var t=e.checkedKeys;return 0===t.length?"none":h.value.every((function(e){return t.indexOf(e.key)>=0||!!e.disabled}))?"all":"part"})),g=(0,s.EW)((function(){return OU(h.value)})),m=function(t,n){return Array.from(new Set([].concat((0,z.A)(t),(0,z.A)(e.checkedKeys)))).filter((function(e){return-1===n.indexOf(e)}))},y=function(t){var n=t.disabled,r=t.prefixCls,o="all"===v.value,i=(0,s.bF)(Ax,{disabled:n,checked:o,indeterminate:"part"===v.value,class:"".concat(r,"-checkbox"),onChange:function(){var t=g.value;e.onItemSelectAll(m(o?[]:t,o?e.checkedKeys:[]))}},null);return i},b=function(t){var n,r=t.target.value;a.value=r,null===(n=e.handleFilter)||void 0===n||n.call(e,t)},w=function(t){var n;a.value="",null===(n=e.handleClear)||void 0===n||n.call(e,t)},A=function(t,n){var r=e.filterOption;return r?r(a.value,n):t.indexOf(a.value)>=0},x=function(t,n){var r=e.itemsUnit,o=e.itemUnit,i=e.selectAllLabel;if(i)return"function"===typeof i?i({selectedCount:t,totalCount:n}):i;var a=n>1?r:o;return(0,s.bF)(s.FK,null,[(t>0?"".concat(t,"/"):"")+n,(0,s.eW)(" "),a])},C=function(t,r,i,l,c,d){var v,g=c?(0,s.bF)("div",{class:"".concat(t,"-body-search-wrapper")},[(0,s.bF)(dU,{prefixCls:"".concat(t,"-search"),onChange:b,handleClear:w,placeholder:r,value:a.value,disabled:d},null)]):null,m=(0,B.fR)(n),y=m.onEvents,A=f(l,(0,o.A)((0,o.A)({},e),{},{filteredItems:h.value,filteredRenderItems:p.value,selectedKeys:i},y)),x=A.bodyContent,C=A.customize;return v=C?(0,s.bF)("div",{class:"".concat(t,"-body-customize-wrapper")},[x]):h.value.length?x:(0,s.bF)("div",{class:"".concat(t,"-body-not-found")},[e.notFoundContent]),(0,s.bF)("div",{class:c?"".concat(t,"-body ").concat(t,"-body-with-search"):"".concat(t,"-body"),ref:u},[g,v])};return function(){var t,a,u,f=e.prefixCls,d=e.checkedKeys,p=e.disabled,v=e.showSearch,b=e.searchPlaceholder,w=e.selectAll,A=e.selectCurrent,S=e.selectInvert,_=e.removeAll,k=e.removeCurrent,E=e.renderList,O=e.onItemSelectAll,F=e.onItemRemove,T=e.showSelectAll,P=void 0===T||T,N=e.showRemove,M=e.pagination,L=null===(t=r.footer)||void 0===t?void 0:t.call(r,(0,o.A)({},e)),I=(0,l.A)(f,(a={},(0,i.A)(a,"".concat(f,"-with-pagination"),!!M),(0,i.A)(a,"".concat(f,"-with-footer"),!!L),a)),R=C(f,b,d,E,v,p),j=L?(0,s.bF)("div",{class:"".concat(f,"-footer")},[L]):null,D=!N&&!M&&y({disabled:p,prefixCls:f}),B=null;B=N?(0,s.bF)(qf,null,{default:function(){return[M&&(0,s.bF)(qf.Item,{key:"removeCurrent",onClick:function(){var e=OU((c.value.items||[]).map((function(e){return e.item})));null===F||void 0===F||F(e)}},{default:function(){return[k]}}),(0,s.bF)(qf.Item,{key:"removeAll",onClick:function(){null===F||void 0===F||F(g.value)}},{default:function(){return[_]}})]}}):(0,s.bF)(qf,null,{default:function(){return[(0,s.bF)(qf.Item,{key:"selectAll",onClick:function(){var e=g.value;O(m(e,[]))}},{default:function(){return[w]}}),M&&(0,s.bF)(qf.Item,{onClick:function(){var e=OU((c.value.items||[]).map((function(e){return e.item})));O(m(e,[]))}},{default:function(){return[A]}}),(0,s.bF)(qf.Item,{key:"selectInvert",onClick:function(){var e;e=M?OU((c.value.items||[]).map((function(e){return e.item}))):g.value;var t=new Set(d),n=[],r=[];e.forEach((function(e){t.has(e)?r.push(e):n.push(e)})),O(m(n,r))}},{default:function(){return[S]}})]}});var W=(0,s.bF)(AS,{class:"".concat(f,"-header-dropdown"),overlay:B,disabled:p},{default:function(){return[(0,s.bF)(Qa,null,null)]}});return(0,s.bF)("div",{class:I,style:n.style},[(0,s.bF)("div",{class:"".concat(f,"-header")},[P?(0,s.bF)(s.FK,null,[D,W]):null,(0,s.bF)("span",{class:"".concat(f,"-header-selected")},[(0,s.bF)("span",null,[x(d.length,h.value.length)]),(0,s.bF)("span",{class:"".concat(f,"-header-title")},[null===(u=r.titleText)||void 0===u?void 0:u.call(r)])])]),R,j])}}});function PU(){}var NU=function(e){var t=e.disabled,n=e.moveToLeft,r=void 0===n?PU:n,o=e.moveToRight,i=void 0===o?PU:o,a=e.leftArrowText,l=void 0===a?"":a,u=e.rightArrowText,c=void 0===u?"":u,f=e.leftActive,d=e.rightActive,h=e.class,p=e.style,v=e.direction,g=e.oneWay;return(0,s.bF)("div",{class:h,style:p},[(0,s.bF)(tc,{type:"primary",size:"small",disabled:t||!d,onClick:i,icon:"rtl"!==v?(0,s.bF)(bc,null,null):(0,s.bF)(ix,null,null)},{default:function(){return[c]}}),!g&&(0,s.bF)(tc,{type:"primary",size:"small",disabled:t||!f,onClick:r,icon:"rtl"!==v?(0,s.bF)(ix,null,null):(0,s.bF)(bc,null,null)},{default:function(){return[l]}})])};NU.displayName="Operation",NU.inheritAttrs=!1;var MU=NU,LU=function(){return{id:String,prefixCls:String,dataSource:{type:Array,default:[]},disabled:{type:Boolean,default:void 0},targetKeys:{type:Array,default:void 0},selectedKeys:{type:Array,default:void 0},render:{type:Function},listStyle:{type:[Function,Object],default:function(){return{}}},operationStyle:{type:Object,default:void 0},titles:{type:Array},operations:{type:Array},showSearch:{type:Boolean,default:!1},filterOption:{type:Function},searchPlaceholder:String,notFoundContent:Fe.A.any,locale:{type:Object,default:function(){return{}}},rowKey:{type:Function},showSelectAll:{type:Boolean,default:void 0},selectAllLabels:{type:Array},children:{type:Function},oneWay:{type:Boolean,default:void 0},pagination:{type:[Object,Boolean],default:void 0},onChange:Function,onSelectChange:Function,onSearch:Function,onScroll:Function,"onUpdate:targetKeys":Function,"onUpdate:selectedKeys":Function}},IU=(0,s.pM)({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:LU(),slots:["leftTitle","rightTitle","children","render","notFoundContent","leftSelectAllLabel","rightSelectAllLabel","footer"],setup:function(e,t){var n=t.emit,r=t.attrs,a=t.slots,u=t.expose,c=(0,se.A)("transfer",e),f=c.configProvider,d=c.prefixCls,h=c.direction,p=(0,s.KR)([]),v=(0,s.KR)([]),g=ws();(0,s.wB)((function(){return e.selectedKeys}),(function(){var t,n;p.value=(null===(t=e.selectedKeys)||void 0===t?void 0:t.filter((function(t){return-1===e.targetKeys.indexOf(t)})))||[],v.value=(null===(n=e.selectedKeys)||void 0===n?void 0:n.filter((function(t){return e.targetKeys.indexOf(t)>-1})))||[]}),{immediate:!0});var m=function(t,n){var r={notFoundContent:n("Transfer")},i=(0,B.rU)(a,e,"notFoundContent");return i&&(r.notFoundContent=i),void 0!==e.searchPlaceholder&&(r.searchPlaceholder=e.searchPlaceholder),(0,o.A)((0,o.A)((0,o.A)({},t),r),e.locale)},y=function(t){var r=e.targetKeys,o=void 0===r?[]:r,i=e.dataSource,a=void 0===i?[]:i,s="right"===t?p.value:v.value,l=s.filter((function(e){return!a.some((function(t){return!(e!==t.key||!t.disabled)}))})),u="right"===t?l.concat(o):o.filter((function(e){return-1===l.indexOf(e)})),c="right"===t?"left":"right";"right"===t?p.value=[]:v.value=[],n("update:targetKeys",u),S(c,[]),n("change",u,t,l),g.onFieldChange()},b=function(){y("left")},w=function(){y("right")},A=function(e,t){S(e,t)},x=function(e){return A("left",e)},C=function(e){return A("right",e)},S=function(t,r){"left"===t?(e.selectedKeys||(p.value=r),n("update:selectedKeys",[].concat((0,z.A)(r),(0,z.A)(v.value))),n("selectChange",r,(0,s.ux)(v.value))):(e.selectedKeys||(v.value=r),n("update:selectedKeys",[].concat((0,z.A)(r),(0,z.A)(p.value))),n("selectChange",(0,s.ux)(p.value),r))},_=function(e,t){var r=t.target.value;n("search",e,r)},k=function(e){_("left",e)},E=function(e){_("right",e)},O=function(e){n("search",e,"")},F=function(){O("left")},T=function(){O("right")},P=function(e,t,n){var r="left"===e?(0,z.A)(p.value):(0,z.A)(v.value),o=r.indexOf(t);o>-1&&r.splice(o,1),n&&r.push(t),S(e,r)},N=function(e,t){return P("left",e,t)},M=function(e,t){return P("right",e,t)},L=function(t){var r=e.targetKeys,o=void 0===r?[]:r,i=o.filter((function(e){return!t.includes(e)}));n("update:targetKeys",i),n("change",i,"left",(0,z.A)(t))},I=function(e,t){n("scroll",e,t)},R=function(e){I("left",e)},j=function(e){I("right",e)},D=function(e,t){return"function"===typeof e?e({direction:t}):e},W=(0,s.KR)([]),U=(0,s.KR)([]);(0,s.nT)((function(){var t=e.dataSource,n=e.rowKey,r=e.targetKeys,o=void 0===r?[]:r,i=[],a=new Array(o.length);t.forEach((function(e){n&&(e.key=n(e));var t=o.indexOf(e.key);-1!==t?a[t]=e:i.push(e)})),W.value=i,U.value=a})),u({handleSelectChange:S});var K=function(t){var n,u,c,y,A,S,_,O=e.disabled,P=e.operations,I=void 0===P?[]:P,B=e.showSearch,z=e.listStyle,K=e.operationStyle,V=e.filterOption,H=e.showSelectAll,q=e.selectAllLabels,G=void 0===q?[]:q,Y=e.oneWay,$=e.pagination,X=e.id,J=void 0===X?g.id.value:X,Q=r.class,Z=r.style,ee=a.children,te=!ee&&$,ne=f.renderEmpty,re=m(t,ne),oe=a.footer,ie=e.render||a.render,ae=v.value.length>0,se=p.value.length>0,le=(0,l.A)(d.value,Q,(n={},(0,i.A)(n,"".concat(d.value,"-disabled"),O),(0,i.A)(n,"".concat(d.value,"-customize-list"),!!ee),n)),ue=e.titles,ce=null!==(u=null!==(c=ue&&ue[0])&&void 0!==c?c:null===(y=a.leftTitle)||void 0===y?void 0:y.call(a))&&void 0!==u?u:(re.titles||["",""])[0],fe=null!==(A=null!==(S=ue&&ue[1])&&void 0!==S?S:null===(_=a.rightTitle)||void 0===_?void 0:_.call(a))&&void 0!==A?A:(re.titles||["",""])[1];return(0,s.bF)("div",{class:le,style:Z,id:J},[(0,s.bF)(TU,(0,o.A)({key:"leftList",prefixCls:"".concat(d.value,"-list"),dataSource:W.value,filterOption:V,style:D(z,"left"),checkedKeys:p.value,handleFilter:k,handleClear:F,onItemSelect:N,onItemSelectAll:x,renderItem:ie,showSearch:B,renderList:ee,onScroll:R,disabled:O,direction:"rtl"===h.value?"right":"left",showSelectAll:H,selectAllLabel:G[0]||a.leftSelectAllLabel,pagination:te},re),{titleText:function(){return ce},footer:oe}),(0,s.bF)(MU,{key:"operation",class:"".concat(d.value,"-operation"),rightActive:se,rightArrowText:I[0],moveToRight:w,leftActive:ae,leftArrowText:I[1],moveToLeft:b,style:K,disabled:O,direction:h.value,oneWay:Y},null),(0,s.bF)(TU,(0,o.A)({key:"rightList",prefixCls:"".concat(d.value,"-list"),dataSource:U.value,filterOption:V,style:D(z,"right"),checkedKeys:v.value,handleFilter:E,handleClear:T,onItemSelect:M,onItemSelectAll:C,onItemRemove:L,renderItem:ie,showSearch:B,renderList:ee,onScroll:j,disabled:O,direction:"rtl"===h.value?"left":"right",showSelectAll:H,selectAllLabel:G[1]||a.rightSelectAllLabel,showRemove:Y,pagination:te},re),{titleText:function(){return fe},footer:oe})])};return function(){return(0,s.bF)(xg.A,{componentName:"Transfer",defaultLocale:ZL.A.Transfer,children:K},null)}}}),RU=(0,$.GU)(IU);function jU(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function DU(e){var t=e||{},n=t.label,r=t.value,o=t.children,i=r||"value";return{_title:n?[n]:["title","label"],value:i,key:i,children:o||"children"}}function BU(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function WU(e,t){var n=[];function r(e){e.forEach((function(e){n.push(e[t.value]);var o=e[t.children];o&&r(o)}))}return r(e),n}function zU(e){return null===e||void 0===e}var UU=Symbol("TreeSelectContextPropsKey");function KU(e){return(0,s.Gt)(UU,e)}function VU(){return(0,s.WQ)(UU,{})}var HU={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qU=(0,s.pM)({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,slots:["notFoundContent","menuItemSelectedIcon"],setup:function(e,t){var n=t.slots,r=t.expose,i=Ri(),a=yi(),l=VU(),u=(0,s.KR)(),c=pa((function(){return l.treeData}),[function(){return i.open},function(){return l.treeData}],(function(e){return e[0]})),f=(0,s.EW)((function(){var e=a.checkable,t=a.halfCheckedKeys,n=a.checkedKeys;return e?{checked:n,halfChecked:t}:null}));(0,s.wB)((function(){return i.open}),(function(){(0,s.dY)((function(){var e;i.open&&!i.multiple&&a.checkedKeys.length&&(null===(e=u.value)||void 0===e||e.scrollTo({key:a.checkedKeys[0]}))}))}),{immediate:!0,flush:"post"});var d=(0,s.EW)((function(){return String(i.searchValue).toLowerCase()})),h=function(e){return!!d.value&&String(e[a.treeNodeFilterProp]).toLowerCase().includes(d.value)},p=(0,s.IJ)(a.treeDefaultExpandedKeys),v=(0,s.IJ)(null);(0,s.wB)((function(){return i.searchValue}),(function(){i.searchValue&&(v.value=WU((0,s.ux)(l.treeData),(0,s.ux)(l.fieldNames)))}),{immediate:!0});var g=(0,s.EW)((function(){return a.treeExpandedKeys?a.treeExpandedKeys.slice():i.searchValue?v.value:p.value})),m=function(e){var t;p.value=e,v.value=e,null===(t=a.onTreeExpand)||void 0===t||t.call(a,e)},y=function(e){e.preventDefault()},b=function(e,t){var n,r,o=t.node,s=a.checkable,u=a.checkedKeys;s&&BU(o)||(null===(n=l.onSelect)||void 0===n||n.call(l,o.key,{selected:!u.includes(o.key)}),i.multiple||null===(r=i.toggleOpen)||void 0===r||r.call(i,!1))},w=(0,s.KR)(null),A=(0,s.EW)((function(){return a.keyEntities[w.value]})),x=function(e){w.value=e};return r({scrollTo:function(){for(var e,t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=u.value)||void 0===e||null===(t=e.scrollTo)||void 0===t?void 0:t.call.apply(t,[e].concat(r))},onKeydown:function(e){var t,n=e.which;switch(n){case Mo.UP:case Mo.DOWN:case Mo.LEFT:case Mo.RIGHT:null===(t=u.value)||void 0===t||t.onKeydown(e);break;case Mo.ENTER:if(A.value){var r=A.value.node||{},o=r.selectable,s=r.value;!1!==o&&b(null,{node:{key:w.value},selected:!a.checkedKeys.includes(s)})}break;case Mo.ESC:i.toggleOpen(!1)}},onKeyup:function(){}}),function(){var e,t=i.prefixCls,r=i.multiple,d=i.searchValue,p=i.open,v=i.notFoundContent,C=void 0===v?null===(e=n.notFoundContent)||void 0===e?void 0:e.call(n):v,S=l.listHeight,_=l.listItemHeight,k=l.virtual,E=a.checkable,O=a.treeDefaultExpandAll,F=a.treeIcon,T=a.showTreeIcon,P=a.switcherIcon,N=a.treeLine,M=a.loadData,L=a.treeLoadedKeys,I=a.treeMotion,R=a.onTreeLoad,j=a.checkedKeys;if(0===c.value.length)return(0,s.bF)("div",{role:"listbox",class:"".concat(t,"-empty"),onMousedown:y},[C]);var D={fieldNames:l.fieldNames};return L&&(D.loadedKeys=L),g.value&&(D.expandedKeys=g.value),(0,s.bF)("div",{onMousedown:y},[A.value&&p&&(0,s.bF)("span",{style:HU,"aria-live":"assertive"},[A.value.node.value]),(0,s.bF)(LW,(0,o.A)((0,o.A)({ref:u,focusable:!1,prefixCls:"".concat(t,"-tree"),treeData:c.value,height:S,itemHeight:_,virtual:k,multiple:r,icon:F,showIcon:T,switcherIcon:P,showLine:N,loadData:d?null:M,motion:I,activeKey:w.value,checkable:E,checkStrictly:!0,checkedKeys:f.value,selectedKeys:E?[]:j,defaultExpandAll:O},D),{},{onActiveChange:x,onSelect:b,onCheck:b,onExpand:m,onLoad:R,filterTreeNode:h}),(0,o.A)((0,o.A)({},n),{},{checkable:a.customSlots.treeCheckable}))])}}}),GU="SHOW_ALL",YU="SHOW_PARENT",$U="SHOW_CHILD";function XU(e,t,n,r){var o=new Set(e);return t===$U?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return o.has(t[r.value])}))&&t.children.every((function(e){var t=e.node;return BU(t)||o.has(t[r.value])})))})):t===YU?e.filter((function(e){var t=n[e],r=t?t.parent:null;return!(r&&!BU(r.node)&&o.has(r.key))})):e}var JU=function(){return null};JU.inheritAttrs=!1,JU.displayName="ATreeSelectNode",JU.isTreeSelectNode=!0;var QU=JU,ZU=["title","switcherIcon"];function eK(e){return e&&e.type&&e.type.isTreeSelectNode}function tK(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,B.Gk)(e).map((function(e){var n,r,i;if(!eK(e))return(0,Ke.$e)(!e,"TreeSelect/TreeSelectNode can only accept TreeSelectNode as children."),null;for(var a=e.children||{},l=e.key,u={},c=0,f=Object.entries(e.props);c<f.length;c++){var d=(0,Re.A)(f[c],2),h=d[0],p=d[1];u[(0,s.PT)(h)]=p}var v=u.isLeaf,g=u.checkable,m=u.selectable,y=u.disabled,b=u.disableCheckbox,w={isLeaf:v||""===v||void 0,checkable:g||""===g||void 0,selectable:m||""===m||void 0,disabled:y||""===y||void 0,disableCheckbox:b||""===b||void 0},A=(0,o.A)((0,o.A)({},u),w),x=u.title,C=void 0===x?null===(n=a.title)||void 0===n?void 0:n.call(a,A):x,S=u.switcherIcon,_=void 0===S?null===(r=a.switcherIcon)||void 0===r?void 0:r.call(a,A):S,k=(0,je.A)(u,ZU),E=null===(i=a.default)||void 0===i?void 0:i.call(a),O=(0,o.A)((0,o.A)({},k),{},{title:C,switcherIcon:_,key:l,isLeaf:v},w),F=t(E);return F.length&&(O.children=F),O}))}return t(e)}function nK(e){if(!e)return e;var t=(0,o.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,Ke.$e)(!1,"New `vc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function rK(e,t,n,r,o,i){var a=null,l=null;function u(){function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,c){var f="".concat(o,"-").concat(c),d=r[i.value],h=n.includes(d),p=e(r[i.children]||[],f,h),v=(0,s.bF)(QU,r,{default:function(){return[p.map((function(e){return e.node}))]}});if(t===d&&(a=v),h){var g={pos:f,node:v,children:p};return u||l.push(g),g}return null})).filter((function(e){return e}))}l||(l=[],e(r),l.sort((function(e,t){var r=e.node.props.value,o=t.node.props.value,i=n.indexOf(r),a=n.indexOf(o);return i-a})))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,Ke.$e)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,Ke.$e)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),o?l:l.map((function(e){var t=e.node;return t}))}})}function oK(e,t){var n=t.id,r=t.pId,i=t.rootPId,a={},s=[],l=e.map((function(e){var t=(0,o.A)({},e),r=t[n];return a[r]=t,t.key=t.key||r,t}));return l.forEach((function(e){var t=e[r],n=a[t];n&&(n.children=n.children||[],n.children.push(e)),(t===i||!n&&null===i)&&s.push(e)})),s}function iK(e,t,n){var r=(0,s.IJ)();return(0,s.wB)([n,e,t],(function(){var i=n.value;e.value?r.value=n.value?oK((0,s.ux)(e.value),(0,o.A)({id:"id",pId:"pId",rootPId:null},!0!==i?i:{})):(0,s.ux)(e.value).slice():r.value=tK((0,s.ux)(t.value))}),{immediate:!0,deep:!0}),r}var aK=function(e){var t=(0,s.IJ)({valueLabels:new Map}),n=(0,s.IJ)();(0,s.wB)(e,(function(){n.value=(0,s.ux)(e.value)}),{immediate:!0});var r=(0,s.EW)((function(){var e=t.value.valueLabels,r=new Map,i=n.value.map((function(t){var n,i=t.value,a=null!==(n=t.label)&&void 0!==n?n:e.get(i);return r.set(i,a),(0,o.A)((0,o.A)({},t),{},{label:a})}));return t.value.valueLabels=r,i}));return[r]},sK=function(e,t){var n=(0,s.IJ)(new Map),r=(0,s.IJ)({});return(0,s.nT)((function(){var i=t.value,a=wA(e.value,{fieldNames:i,initWrapper:function(e){return(0,o.A)((0,o.A)({},e),{},{valueEntities:new Map})},processEntity:function(e,t){var n=e.node[i.value];t.valueEntities.set(n,e)}});n.value=a.valueEntities,r.value=a.keyEntities})),{valueEntities:n,keyEntities:r}},lK=function(e,t,n,r,o,i){var a=(0,s.IJ)([]),l=(0,s.IJ)([]);return(0,s.nT)((function(){var s=e.value.map((function(e){var t=e.value;return t})),u=t.value.map((function(e){var t=e.value;return t})),c=s.filter((function(e){return!r.value[e]}));if(n.value){var f=RA(s,!0,r.value,o.value,i.value);s=f.checkedKeys,u=f.halfCheckedKeys}a.value=Array.from(new Set([].concat((0,z.A)(c),(0,z.A)(s)))),l.value=u})),[a,l]},uK=function(e,t,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,l=n.fieldNames;return(0,s.EW)((function(){var n,s=l.value.children,u=t.value,c=null===r||void 0===r?void 0:r.value;if(!u||!1===a.value)return e.value;if("function"===typeof a.value)n=a.value;else{var f=u.toUpperCase();n=function(e,t){var n=t[c];return String(n).toUpperCase().includes(f)}}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],a=0,l=e.length;a<l;a++){var c=e[a],f=c[s],h=t||n(u,nK(c)),p=d(f||[],h);(h||p.length)&&r.push((0,o.A)((0,o.A)({},c),{},(0,i.A)({},s,p)))}return r}return d(e.value)}))};function cK(){return(0,o.A)((0,o.A)({},ce(Ui(),["mode"])),{},{prefixCls:String,id:String,value:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array]},onChange:{type:Function},searchValue:String,inputValue:String,onSearch:{type:Function},autoClearSearchValue:{type:Boolean,default:void 0},filterTreeNode:{type:[Boolean,Function],default:void 0},treeNodeFilterProp:String,onSelect:Function,onDeselect:Function,showCheckedStrategy:{type:String},treeNodeLabelProp:String,fieldNames:{type:Object},multiple:{type:Boolean,default:void 0},treeCheckable:{type:Boolean,default:void 0},treeCheckStrictly:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},treeData:{type:Array},treeDataSimpleMode:{type:[Boolean,Object],default:void 0},loadData:{type:Function},treeLoadedKeys:{type:Array},onTreeLoad:{type:Function},treeDefaultExpandAll:{type:Boolean,default:void 0},treeExpandedKeys:{type:Array},treeDefaultExpandedKeys:{type:Array},onTreeExpand:{type:Function},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,onDropdownVisibleChange:{type:Function},treeLine:{type:[Boolean,Object],default:void 0},treeIcon:Fe.A.any,showTreeIcon:{type:Boolean,default:void 0},switcherIcon:Fe.A.any,treeMotion:Fe.A.any,children:Array,showArrow:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:Fe.A.any,maxTagPlaceholder:{type:Function},dropdownPopupAlign:Fe.A.any,customSlots:Object})}function fK(e){return!e||"object"!==(0,Ie.A)(e)}var dK=(0,s.pM)({compatConfig:{MODE:3},name:"TreeSelect",inheritAttrs:!1,props:Pe(cK(),{treeNodeFilterProp:"value",autoClearSearchValue:!0,showCheckedStrategy:$U,listHeight:200,listItemHeight:20,prefixCls:"vc-tree-select"}),setup:function(e,t){var n=t.attrs,r=t.expose,i=t.slots,a=Pa((0,s.lW)(e,"id")),l=(0,s.EW)((function(){return e.treeCheckable&&!e.treeCheckStrictly})),u=(0,s.EW)((function(){return e.treeCheckable||e.treeCheckStrictly})),c=(0,s.EW)((function(){return e.treeCheckStrictly||e.labelInValue})),f=(0,s.EW)((function(){return u.value||e.multiple}));var d=(0,s.EW)((function(){return DU(e.fieldNames)})),h=Ra("",{value:(0,s.EW)((function(){return void 0!==e.searchValue?e.searchValue:e.inputValue})),postState:function(e){return e||""}}),p=(0,Re.A)(h,2),v=p[0],g=p[1],m=function(t){var n;g(t),null===(n=e.onSearch)||void 0===n||n.call(e,t)},y=iK((0,s.lW)(e,"treeData"),(0,s.lW)(e,"children"),(0,s.lW)(e,"treeDataSimpleMode")),b=sK(y,d),w=b.keyEntities,A=b.valueEntities,x=function(e){var t=[],n=[];return e.forEach((function(e){A.value.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}},C=uK(y,v,{fieldNames:d,treeNodeFilterProp:(0,s.lW)(e,"treeNodeFilterProp"),filterTreeNode:(0,s.lW)(e,"filterTreeNode")}),S=function(t){if(t){if(e.treeNodeLabelProp)return t[e.treeNodeLabelProp];for(var n=d.value._title,r=0;r<n.length;r+=1){var o=t[n[r]];if(void 0!==o)return o}}},_=function(e){var t=jU(e);return t.map((function(e){return fK(e)?{value:e}:e}))},k=function(e){var t=_(e);return t.map((function(e){var t,n,r=e.label,o=e.value,i=e.halfChecked,a=A.value.get(o);a&&(r=null!==(n=r)&&void 0!==n?n:S(a.node),t=a.node.disabled);return{label:r,value:o,halfChecked:i,disabled:t}}))},E=Ra(e.defaultValue,{value:(0,s.lW)(e,"value")}),O=(0,Re.A)(E,2),F=O[0],T=O[1],P=(0,s.EW)((function(){return _(F.value)})),N=(0,s.IJ)([]),M=(0,s.IJ)([]);(0,s.nT)((function(){var e=[],t=[];P.value.forEach((function(n){n.halfChecked?t.push(n):e.push(n)})),N.value=e,M.value=t}));var L=(0,s.EW)((function(){return N.value.map((function(e){return e.value}))})),I=GA(w),R=I.maxLevel,j=I.levelEntities,D=lK(N,M,l,w,R,j),B=(0,Re.A)(D,2),W=B[0],U=B[1],K=(0,s.EW)((function(){var t=XU(W.value,e.showCheckedStrategy,w.value,d.value),n=t.map((function(e){var t,n,r;return null!==(t=null===(n=w.value[e])||void 0===n||null===(r=n.node)||void 0===r?void 0:r[d.value.value])&&void 0!==t?t:e})),r=n.map((function(e){var t=N.value.find((function(t){return t.value===e}));return{value:e,label:null===t||void 0===t?void 0:t.label}})),i=k(r),a=i[0];return!f.value&&a&&zU(a.value)&&zU(a.label)?[]:i.map((function(e){var t;return(0,o.A)((0,o.A)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))})),V=aK(K),H=(0,Re.A)(V,1),q=H[0],G=function(t,n,r){var o=k(t);if(T(o),e.autoClearSearchValue&&g(""),e.onChange){var i=t;if(l.value){var a=XU(t,e.showCheckedStrategy,w.value,d.value);i=a.map((function(e){var t=A.value.get(e);return t?t.node[d.value.value]:e}))}var s=n||{triggerValue:void 0,selected:void 0},h=s.triggerValue,p=s.selected,v=i;if(e.treeCheckStrictly){var m=M.value.filter((function(e){return!i.includes(e.value)}));v=[].concat((0,z.A)(v),(0,z.A)(m))}var b=k(v),x={preValue:N.value,triggerValue:h},C=!0;(e.treeCheckStrictly||"selection"===r&&!p)&&(C=!1),rK(x,h,t,y.value,C,d.value),u.value?x.checked=p:x.selected=p;var S=c.value?b:b.map((function(e){return e.value}));e.onChange(f.value?S:S[0],c.value?null:b.map((function(e){return e.label})),x)}},Y=function(t,n){var r,o,i,a=n.selected,u=n.source,c=(0,s.ux)(w.value),h=(0,s.ux)(A.value),p=c[t],v=null===p||void 0===p?void 0:p.node,g=null!==(r=null===v||void 0===v?void 0:v[d.value.value])&&void 0!==r?r:t;if(f.value){var m=a?[].concat((0,z.A)(L.value),[g]):W.value.filter((function(e){return e!==g}));if(l.value){var y,b=x(m),C=b.missingRawValues,S=b.existRawValues,_=S.map((function(e){return h.get(e).key}));if(a){var k=RA(_,!0,c,R.value,j.value);y=k.checkedKeys}else{var E=RA(_,{checked:!1,halfCheckedKeys:U.value},c,R.value,j.value);y=E.checkedKeys}m=[].concat((0,z.A)(C),(0,z.A)(y.map((function(e){return c[e].node[d.value.value]}))))}G(m,{selected:a,triggerValue:g},u||"option")}else G([g],{selected:!0,triggerValue:g},"option");a||!f.value?null===(o=e.onSelect)||void 0===o||o.call(e,g,nK(v)):null===(i=e.onDeselect)||void 0===i||i.call(e,g,nK(v))},$=function(t){if(e.onDropdownVisibleChange){var n={};Object.defineProperty(n,"documentClickClose",{get:function(){return(0,Ke.$e)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),e.onDropdownVisibleChange(t,n)}},X=function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&Y(t.values[0].value,{selected:!1,source:"selection"}):G(n,{},"selection")},J=(0,s.QW)(e),Q=J.treeNodeFilterProp,Z=J.loadData,ee=J.treeLoadedKeys,te=J.onTreeLoad,ne=J.treeDefaultExpandAll,re=J.treeExpandedKeys,oe=J.treeDefaultExpandedKeys,ie=J.onTreeExpand,ae=J.virtual,se=J.listHeight,le=J.listItemHeight,ue=J.treeLine,fe=J.treeIcon,de=J.showTreeIcon,he=J.switcherIcon,pe=J.treeMotion,ve=J.customSlots;s.ux,mi(Di({checkable:u,loadData:Z,treeLoadedKeys:ee,onTreeLoad:te,checkedKeys:W,halfCheckedKeys:U,treeDefaultExpandAll:ne,treeExpandedKeys:re,treeDefaultExpandedKeys:oe,onTreeExpand:ie,treeIcon:fe,treeMotion:pe,showTreeIcon:de,switcherIcon:he,treeLine:ue,treeNodeFilterProp:Q,keyEntities:w,customSlots:ve})),KU(Di({virtual:ae,listHeight:se,listItemHeight:le,treeData:C,fieldNames:d,onSelect:Y}));var ge=(0,s.KR)();return r({focus:function(){var e;null===(e=ge.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=ge.value)||void 0===e||e.blur()},scrollTo:function(e){var t;null===(t=ge.value)||void 0===t||t.scrollTo(e)}}),function(){var t,r=ce(e,["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return(0,s.bF)(Hi,(0,o.A)((0,o.A)((0,o.A)({ref:ge},n),r),{},{id:a,prefixCls:e.prefixCls,mode:f.value?"multiple":void 0,displayValues:q.value,onDisplayValuesChange:X,searchValue:v.value,onSearch:m,OptionList:qU,emptyOptions:!y.value.length,onDropdownVisibleChange:$,tagRender:e.tagRender||i.tagRender,dropdownMatchSelectWidth:null===(t=e.dropdownMatchSelectWidth)||void 0===t||t}),i)}}}),hK=dK,pK=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};function vK(){return(0,o.A)((0,o.A)({},ce(cK(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{},{suffixIcon:Fe.A.any,size:{type:String},bordered:{type:Boolean,default:void 0},treeLine:{type:[Boolean,Object],default:void 0},replaceFields:{type:Object},"onUpdate:value":{type:Function},"onUpdate:treeExpandedKeys":{type:Function},"onUpdate:searchValue":{type:Function}})}var gK=(0,s.pM)({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:Pe(vK(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:["title","titleRender","placeholder","maxTagPlaceholder","treeIcon","switcherIcon","notFoundContent"],setup:function(e,t){var n=t.attrs,r=t.slots,a=t.expose,u=t.emit;(0,Ke.$e)(!(void 0===e.treeData&&r.default),"`children` of TreeSelect is deprecated. Please use `treeData` instead."),(0,s.nT)((function(){(0,Wu.A)(!1!==e.multiple||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),(0,Wu.A)(void 0===e.replaceFields,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead")}));var c=ws(),f=(0,se.A)("select",e),d=f.prefixCls,h=f.renderEmpty,p=f.direction,v=f.virtual,g=f.dropdownMatchSelectWidth,m=f.size,y=f.getPopupContainer,b=f.getPrefixCls,w=(0,s.EW)((function(){return b()})),A=(0,s.EW)((function(){return pK(w.value,"slide-up",e.transitionName)})),x=(0,s.EW)((function(){return pK(w.value,"",e.choiceTransitionName)})),C=(0,s.EW)((function(){return b("select-tree",e.prefixCls)})),S=(0,s.EW)((function(){return b("tree-select",e.prefixCls)})),_=(0,s.EW)((function(){return(0,l.A)(e.dropdownClassName,"".concat(S.value,"-dropdown"),(0,i.A)({},"".concat(S.value,"-dropdown-rtl"),"rtl"===p.value))})),k=(0,s.EW)((function(){return!(!e.treeCheckable&&!e.multiple)})),E=(0,s.KR)();a({focus:function(){var e,t;null===(e=(t=E.value).focus)||void 0===e||e.call(t)},blur:function(){var e,t;null===(e=(t=E.value).blur)||void 0===e||e.call(t)}});var O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u("update:value",t[0]),u.apply(void 0,["change"].concat(t)),c.onFieldChange()},F=function(e){u("update:treeExpandedKeys",e),u("treeExpand",e)},T=function(e){u("update:searchValue",e),u("search",e)},P=function(e){u("blur",e),c.onFieldBlur()};return function(){var t,a,u,f,b=e.notFoundContent,w=void 0===b?null===(t=r.notFoundContent)||void 0===t?void 0:t.call(r):b,N=e.prefixCls,M=e.bordered,L=e.listHeight,I=e.listItemHeight,R=e.multiple,j=e.treeIcon,D=e.treeLine,W=e.switcherIcon,z=void 0===W?null===(a=r.switcherIcon)||void 0===a?void 0:a.call(r):W,U=e.fieldNames,K=void 0===U?e.replaceFields:U,V=e.id,H=void 0===V?c.id.value:V,q=ps((0,o.A)((0,o.A)({},e),{},{multiple:k.value,prefixCls:d.value}),r),G=q.suffixIcon,Y=q.removeIcon,$=q.clearIcon;f=void 0!==w?w:h.value("Select");var X=ce(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),J=(0,l.A)(!N&&S.value,(u={},(0,i.A)(u,"".concat(d.value,"-lg"),"large"===m.value),(0,i.A)(u,"".concat(d.value,"-sm"),"small"===m.value),(0,i.A)(u,"".concat(d.value,"-rtl"),"rtl"===p.value),(0,i.A)(u,"".concat(d.value,"-borderless"),!M),u),n.class),Q={};return void 0===e.treeData&&r.default&&(Q.children=(0,B.MI)(r.default())),(0,s.bF)(hK,(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},n),X),{},{virtual:v.value,dropdownMatchSelectWidth:g.value,id:H,fieldNames:K,ref:E,prefixCls:d.value,class:J,listHeight:L,listItemHeight:I,treeLine:!!D,inputIcon:G,multiple:R,removeIcon:Y,clearIcon:$,switcherIcon:function(e){return az(C.value,z,D,e)},showTreeIcon:j,notFoundContent:f,getPopupContainer:y.value,treeMotion:null,dropdownClassName:_.value,choiceTransitionName:x.value,onChange:O,onBlur:P,onSearch:T,onTreeExpand:F},Q),{},{transitionName:A.value,customSlots:(0,o.A)((0,o.A)({},r),{},{treeCheckable:function(){return(0,s.bF)("span",{class:"".concat(d.value,"-tree-checkbox-inner")},null)}}),maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder}),(0,o.A)((0,o.A)({},r),{},{treeCheckable:function(){return(0,s.bF)("span",{class:"".concat(d.value,"-tree-checkbox-inner")},null)}}))}}}),mK=QU,yK=(0,a.A)(gK,{TreeNode:QU,SHOW_ALL:GU,SHOW_PARENT:YU,SHOW_CHILD:$U,install:function(e){return e.component(gK.name,gK),e.component(mK.displayName,mK),e}}),bK=function(){return{format:String,showNow:{type:Boolean,default:void 0},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12Hours:{type:Boolean,default:void 0},hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:{type:Boolean,default:void 0},popupClassName:String}};function wK(e){var t=HC(e,(0,o.A)((0,o.A)({},bK()),{},{order:{type:Boolean,default:!0}})),n=t.TimePicker,r=t.RangePicker,i=(0,s.pM)({name:"ATimePicker",inheritAttrs:!1,props:(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},sC()),lC()),bK()),{},{addon:{type:Function}}),slot:["addon","renderExtraFooter","suffixIcon","clearIcon"],setup:function(e,t){var r=t.slots,i=t.expose,a=t.emit,l=t.attrs,u=ws();(0,Wu.A)(!(r.addon||e.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");var c=(0,s.KR)();i({focus:function(){var e;null===(e=c.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=c.value)||void 0===e||e.blur()}});var f=function(e,t){a("update:value",e),a("change",e,t),u.onFieldChange()},d=function(e){a("update:open",e),a("openChange",e)},h=function(e){a("focus",e)},p=function(e){a("blur",e),u.onFieldBlur()},v=function(e){a("ok",e)};return function(){var t=e.id,i=void 0===t?u.id.value:t;return(0,s.bF)(n,(0,o.A)((0,o.A)((0,o.A)({},l),ce(e,["onUpdate:value","onUpdate:open"])),{},{id:i,dropdownClassName:e.popupClassName,mode:void 0,ref:c,renderExtraFooter:e.addon||r.addon||e.renderExtraFooter||r.renderExtraFooter,onChange:f,onOpenChange:d,onFocus:h,onBlur:p,onOk:v}),r)}}}),a=(0,s.pM)({name:"ATimeRangePicker",inheritAttrs:!1,props:(0,o.A)((0,o.A)((0,o.A)((0,o.A)({},sC()),uC()),bK()),{},{order:{type:Boolean,default:!0}}),slot:["renderExtraFooter","suffixIcon","clearIcon"],setup:function(e,t){var n=t.slots,i=t.expose,a=t.emit,l=t.attrs,u=(0,s.KR)(),c=ws();i({focus:function(){var e;null===(e=u.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=u.value)||void 0===e||e.blur()}});var f=function(e,t){a("update:value",e),a("change",e,t),c.onFieldChange()},d=function(e){a("update:open",e),a("openChange",e)},h=function(e){a("focus",e)},p=function(e){a("blur",e),c.onFieldBlur()},v=function(e,t){a("panelChange",e,t)},g=function(e){a("ok",e)},m=function(e,t,n){a("calendarChange",e,t,n)};return function(){var t=e.id,i=void 0===t?c.id.value:t;return(0,s.bF)(r,(0,o.A)((0,o.A)((0,o.A)({},l),ce(e,["onUpdate:open","onUpdate:value"])),{},{id:i,dropdownClassName:e.popupClassName,picker:"time",mode:void 0,ref:u,onChange:f,onOpenChange:d,onFocus:h,onBlur:p,onPanelChange:v,onOk:g,onCalendarChange:m}),n)}}});return{TimePicker:i,TimeRangePicker:a}}var AK=wK,xK=AK(_d),CK=xK.TimePicker,SK=xK.TimeRangePicker,_K=(0,a.A)(CK,{TimePicker:CK,TimeRangePicker:SK,install:function(e){return e.component(CK.name,CK),e.component(SK.name,SK),e}}),kK=_K,EK=function(){return{prefixCls:String,color:String,dot:Fe.A.any,pending:{type:Boolean,default:void 0},position:Fe.A.oneOf((0,$.PV)("left","right","")).def(""),label:Fe.A.any}},OK=(0,s.pM)({compatConfig:{MODE:3},name:"ATimelineItem",props:Pe(EK(),{color:"blue",pending:!1}),slots:["dot","label"],setup:function(e,t){var n=t.slots,r=(0,se.A)("timeline",e),o=r.prefixCls;return function(){var t,r,a,u,c,f=e.color,d=void 0===f?"":f,h=e.pending,p=e.label,v=void 0===p?null===(t=n.label)||void 0===t?void 0:t.call(n):p,g=e.dot,m=void 0===g?null===(r=n.dot)||void 0===r?void 0:r.call(n):g,y=(0,l.A)((a={},(0,i.A)(a,"".concat(o.value,"-item"),!0),(0,i.A)(a,"".concat(o.value,"-item-pending"),h),a)),b=(0,l.A)((u={},(0,i.A)(u,"".concat(o.value,"-item-head"),!0),(0,i.A)(u,"".concat(o.value,"-item-head-custom"),m),(0,i.A)(u,"".concat(o.value,"-item-head-").concat(d),!0),u)),w=/blue|red|green|gray/.test(d||"")?void 0:d;return(0,s.bF)("li",{class:y},[v&&(0,s.bF)("div",{class:"".concat(o.value,"-item-label")},[v]),(0,s.bF)("div",{class:"".concat(o.value,"-item-tail")},null),(0,s.bF)("div",{class:b,style:{borderColor:w,color:w}},[m]),(0,s.bF)("div",{class:"".concat(o.value,"-item-content")},[null===(c=n.default)||void 0===c?void 0:c.call(n)])])}}}),FK=function(){return{prefixCls:String,pending:Fe.A.any,pendingDot:Fe.A.any,reverse:{type:Boolean,default:void 0},mode:Fe.A.oneOf((0,$.PV)("left","alternate","right",""))}},TK=(0,s.pM)({compatConfig:{MODE:3},name:"ATimeline",props:Pe(FK(),{reverse:!1,mode:""}),slots:["pending","pendingDot"],setup:function(e,t){var n=t.slots,r=(0,se.A)("timeline",e),o=r.prefixCls,a=r.direction,u=function(t,n){var r=t.props||{};return"alternate"===e.mode?"right"===r.position?"".concat(o.value,"-item-right"):"left"===r.position?"".concat(o.value,"-item-left"):"".concat(o.value,n%2===0?"-item-left":"-item-right"):"left"===e.mode?"".concat(o.value,"-item-left"):"right"===e.mode||"right"===r.position?"".concat(o.value,"-item-right"):""};return function(){var t,r,c,f,d=e.pending,h=void 0===d?null===(t=n.pending)||void 0===t?void 0:t.call(n):d,p=e.pendingDot,v=void 0===p?null===(r=n.pendingDot)||void 0===r?void 0:r.call(n):p,g=e.reverse,m=e.mode,y="boolean"===typeof h?null:h,b=(0,B.Gk)(null===(c=n.default)||void 0===c?void 0:c.call(n)),w=h?(0,s.bF)(OK,{pending:!!h,dot:v||(0,s.bF)(Za.A,null,null)},{default:function(){return[y]}}):null;w&&b.push(w);var A=g?b.reverse():b,x=A.length,C="".concat(o.value,"-item-last"),S=A.map((function(e,t){var n=t===x-2?C:"",r=t===x-1?C:"";return(0,s.E3)(e,{class:(0,l.A)([!g&&h?n:r,u(e,t)])})})),_=A.some((function(e){var t,n;return!!(null!==(t=e.props)&&void 0!==t&&t.label||null!==(n=e.children)&&void 0!==n&&n.label)})),k=(0,l.A)(o.value,(f={},(0,i.A)(f,"".concat(o.value,"-pending"),!!h),(0,i.A)(f,"".concat(o.value,"-reverse"),!!g),(0,i.A)(f,"".concat(o.value,"-").concat(m),!!m&&!_),(0,i.A)(f,"".concat(o.value,"-label"),_),(0,i.A)(f,"".concat(o.value,"-rtl"),"rtl"===a.value),f));return(0,s.bF)("ul",{class:k},[S])}}});TK.Item=OK,TK.install=function(e){return e.component(TK.name,TK),e.component(OK.name,OK),e};var PK=TK,NK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},MK=NK;function LK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IK(e,t,n[t])}))}return e}function IK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RK=function(e,t){var n=LK({},e,t.attrs);return(0,s.bF)(Ya.A,LK({},n,{icon:MK}),null)};RK.displayName="EnterOutlined",RK.inheritAttrs=!1;var jK,DK=RK,BK=function(){return{prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String}},WK=(0,s.pM)({compatConfig:{MODE:3},name:"Editable",props:BK(),setup:function(e,t){var n=t.emit,r=t.slots,o=(0,s.Kh)({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});(0,s.wB)((function(){return e.value}),(function(e){o.current=e}));var a=(0,s.KR)();function l(e){a.value=e}function u(e){var t=e.target.value;o.current=t.replace(/[\r\n]/g,""),n("change",o.current)}function c(){o.inComposition=!0}function f(){o.inComposition=!1}function d(e){var t=e.keyCode;t===Mo.ENTER&&e.preventDefault(),o.inComposition||(o.lastKeyCode=t)}function h(t){var r=t.keyCode,i=t.ctrlKey,a=t.altKey,s=t.metaKey,l=t.shiftKey;o.lastKeyCode!==r||o.inComposition||i||a||s||l||(r===Mo.ENTER?(v(),n("end")):r===Mo.ESC&&(o.current=e.originContent,n("cancel")))}function p(){v()}function v(){n("save",o.current.trim())}(0,s.sV)((function(){if(a.value){var e,t=null===(e=a.value)||void 0===e?void 0:e.resizableTextArea,n=null===t||void 0===t?void 0:t.textArea;n.focus();var r=n.value.length;n.setSelectionRange(r,r)}}));var g=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(e.prefixCls),!0),(0,i.A)(t,"".concat(e.prefixCls,"-edit-content"),!0),(0,i.A)(t,"".concat(e.prefixCls,"-rtl"),"rtl"===e.direction),t}));return function(){return(0,s.bF)("div",{class:g.value},[(0,s.bF)(TF,{ref:l,maxlength:e.maxlength,value:o.current,onChange:u,onKeydown:d,onKeyup:h,onCompositionstart:c,onCompositionend:f,onBlur:p,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),r.enterIcon?r.enterIcon({className:"".concat(e.prefixCls,"-edit-content-confirm")}):(0,s.bF)(DK,{class:"".concat(e.prefixCls,"-edit-content-confirm")},null)])}}}),zK=WK,UK=3,KK=8,VK={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function HK(e){var t=Array.prototype.slice.apply(e);return t.map((function(t){return"".concat(t,": ").concat(e.getPropertyValue(t),";")})).join("")}function qK(e,t){e.setAttribute("aria-hidden","true");var n=window.getComputedStyle(t),r=HK(n);e.setAttribute("style",r),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function GK(e){var t=document.createElement("div");qK(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);var n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}var YK=function(e,t,n,r,o){jK||(jK=document.createElement("div"),jK.setAttribute("aria-hidden","true"),document.body.appendChild(jK));var i=t.rows,a=t.suffix,l=void 0===a?"":a,u=GK(e),c=Math.round(u*i*100)/100;qK(jK,e);var f=(0,s.Ef)({render:function(){return(0,s.bF)("div",{style:VK},[(0,s.bF)("span",{style:VK},[n,l]),(0,s.bF)("span",{style:VK},[r])])}});function d(){var e=Math.round(100*jK.getBoundingClientRect().height)/100;return e-.1<=c}if(f.mount(jK),d())return f.unmount(),{content:n,text:jK.innerHTML,ellipsis:!1};var h=Array.prototype.slice.apply(jK.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((function(e){var t=e.nodeType,n=e.data;return t!==KK&&""!==n})),p=Array.prototype.slice.apply(jK.childNodes[0].childNodes[1].cloneNode(!0).childNodes);f.unmount();var v=[];jK.innerHTML="";var g=document.createElement("span");jK.appendChild(g);var m=document.createTextNode(o+l);function y(e){g.insertBefore(e,m)}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=Math.floor((n+r)/2),a=t.slice(0,i);if(e.textContent=a,n>=r-1)for(var s=r;s>=n;s-=1){var l=t.slice(0,s);if(e.textContent=l,d()||!l)return s===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:l}}return d()?b(e,t,i,r,i):b(e,t,n,i,o)}function w(e){var t=e.nodeType;if(t===UK){var n=e.textContent||"",r=document.createTextNode(n);return y(r),b(r,n)}return{finished:!1,vNode:null}}return g.appendChild(m),p.forEach((function(e){jK.appendChild(e)})),h.some((function(e){var t=w(e),n=t.finished,r=t.vNode;return r&&v.push(r),n})),{content:v,text:jK.innerHTML,ellipsis:!0}},$K=["prefixCls","class","direction","component"],XK=function(){return{prefixCls:String,direction:String,component:String}},JK=(0,s.pM)({name:"ATypography",inheritAttrs:!1,props:XK(),setup:function(e,t){var n=t.slots,r=t.attrs,a=(0,se.A)("typography",e),u=a.prefixCls,c=a.direction;return function(){var t,a=(0,o.A)((0,o.A)({},e),r),f=(a.prefixCls,a.class,a.direction,a.component),d=void 0===f?"article":f,h=(0,je.A)(a,$K);return(0,s.bF)(d,(0,o.A)({class:(0,l.A)(u.value,(0,i.A)({},"".concat(u.value,"-rtl"),"rtl"===c.value),r.class)},h),{default:function(){return[null===(t=n.default)||void 0===t?void 0:t.call(n)]}})}}}),QK=JK,ZK=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}},eV=ZK,tV={"text/plain":"Text","text/html":"Url",default:"Text"},nV="Copy to clipboard: #{key}, Enter";function rV(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function oV(e,t){var n,r,o,i,a,s=!1;t||(t={});t.debug;try{r=eV(),o=document.createRange(),i=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),"undefined"===typeof n.clipboardData){window.clipboardData.clearData();var r=tV[t.format]||tV["default"];window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(a),o.selectNodeContents(a),i.addRange(o);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");s=!0}catch(u){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(u){n=rV("message"in t?t.message:nV),window.prompt(n,e)}}finally{i&&("function"==typeof i.removeRange?i.removeRange(o):i.removeAllRanges()),a&&document.body.removeChild(a),r()}return s}var iV=oV,aV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},sV=aV;function lV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){uV(e,t,n[t])}))}return e}function uV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cV=function(e,t){var n=lV({},e,t.attrs);return(0,s.bF)(Ya.A,lV({},n,{icon:sV}),null)};cV.displayName="CopyOutlined",cV.inheritAttrs=!1;var fV=cV,dV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},hV=dV;function pV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vV(e,t,n[t])}))}return e}function vV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gV=function(e,t){var n=pV({},e,t.attrs);return(0,s.bF)(Ya.A,pV({},n,{icon:hV}),null)};gV.displayName="EditOutlined",gV.inheritAttrs=!1;var mV=gV,yV=["type","disabled","content","class","style"],bV=$y("webkitLineClamp"),wV=$y("textOverflow"),AV="...",xV=function(){return{editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}},CV=(0,s.pM)({compatConfig:{MODE:3},name:"Base",inheritAttrs:!1,props:xV(),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.emit,l=(0,se.A)("typography",e),u=l.prefixCls,c=l.direction,f=(0,s.Kh)({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),d=(0,s.KR)(),h=(0,s.KR)(),p=(0,s.EW)((function(){var t=e.ellipsis;return t?(0,o.A)({rows:1,expandable:!1},"object"===(0,Ie.A)(t)?t:null):{}}));function v(){var t,n;return e.ellipsis||e.editable?e.content:null===(t=d.value)||void 0===t||null===(n=t.$el)||void 0===n?void 0:n.innerText}function g(e){var t=p.value.onExpand;f.expanded=!0,null===t||void 0===t||t(e)}function m(t){t.preventDefault(),f.originContent=e.content,E(!0)}function y(e){b(e),E(!1)}function b(t){var n=x.value.onChange;t!==e.content&&(a("update:content",t),null===n||void 0===n||n(t))}function w(){var e,t;null===(e=(t=x.value).onCancel)||void 0===e||e.call(t),E(!1)}function A(t){t.preventDefault(),t.stopPropagation();var n=e.copyable,r=(0,o.A)({},"object"===(0,Ie.A)(n)?n:null);void 0===r.text&&(r.text=v()),iV(r.text||""),f.copied=!0,(0,s.dY)((function(){r.onCopy&&r.onCopy(),f.copyId=setTimeout((function(){f.copied=!1}),3e3)}))}(0,s.sV)((function(){f.clientRendered=!0})),(0,s.xo)((function(){clearTimeout(f.copyId),G.cancel(f.rafId)})),(0,s.wB)([function(){return p.value.rows},function(){return e.content}],(function(){(0,s.dY)((function(){O()}))}),{flush:"post",deep:!0,immediate:!0}),(0,s.nT)((function(){void 0===e.content&&((0,Dn.A)(!e.editable,"Typography","When `editable` is enabled, please use `content` instead of children"),(0,Dn.A)(!e.ellipsis,"Typography","When `ellipsis` is enabled, please use `content` instead of children"))}));var x=(0,s.EW)((function(){var t=e.editable;return t?(0,o.A)({},"object"===(0,Ie.A)(t)?t:null):{editing:!1}})),C=Ra(!1,{value:(0,s.EW)((function(){return x.value.editing}))}),S=(0,Re.A)(C,2),_=S[0],k=S[1];function E(e){var t=x.value.onStart;e&&t&&t(),k(e)}function O(){G.cancel(f.rafId),f.rafId=G((function(){T()}))}(0,s.wB)(_,(function(e){var t;e||(null===(t=h.value)||void 0===t||t.focus())}),{flush:"post"});var F=(0,s.EW)((function(){var t=p.value,n=t.rows,r=t.expandable,o=t.suffix,i=t.onEllipsis,a=t.tooltip;return!o&&!a&&(!(e.editable||e.copyable||r||i)&&(1===n?wV:bV))})),T=function(){var t,n,r=f.ellipsisText,o=f.isEllipsis,i=p.value,a=i.rows,s=i.suffix,l=i.onEllipsis;if(a&&!(a<0)&&null!==(t=d.value)&&void 0!==t&&t.$el&&!f.expanded&&void 0!==e.content&&!F.value){var u=YK(null===(n=d.value)||void 0===n?void 0:n.$el,{rows:a,suffix:s},e.content,R(!0),AV),c=u.content,h=u.text,v=u.ellipsis;r===h&&f.isEllipsis===v||(f.ellipsisText=h,f.ellipsisContent=c,f.isEllipsis=v,o!==v&&l&&l(v))}};function P(e,t){var n=e.mark,r=e.code,o=e.underline,i=e.delete,a=e.strong,l=e.keyboard,u=t;function c(e,t){if(e){var n=function(){return u}();u=(0,s.bF)(t,null,{default:function(){return[n]}})}}return c(a,"strong"),c(o,"u"),c(i,"del"),c(r,"code"),c(n,"mark"),c(l,"kbd"),u}function N(e){var t=p.value,r=t.expandable,o=t.symbol;if(!r)return null;if(!e&&(f.expanded||!f.isEllipsis))return null;var i=(n.ellipsisSymbol?n.ellipsisSymbol():o)||f.expandStr;return(0,s.bF)("a",{key:"expand",class:"".concat(u.value,"-expand"),onClick:g,"aria-label":f.expandStr},[i])}function M(){if(e.editable){var t=e.editable,r=t.tooltip,o=t.triggerType,i=void 0===o?["icon"]:o,a=n.editableIcon?n.editableIcon():(0,s.bF)(mV,{role:"button"},null),l=n.editableTooltip?n.editableTooltip():f.editStr,c="string"===typeof l?l:"";return-1!==i.indexOf("icon")?(0,s.bF)(Bl,{key:"edit",title:!1===r?"":l},{default:function(){return[(0,s.bF)($L,{ref:h,class:"".concat(u.value,"-edit"),onClick:m,"aria-label":c},{default:function(){return[a]}})]}}):null}}function L(){if(e.copyable){var t=e.copyable.tooltip,r=f.copied?f.copiedStr:f.copyStr,o=n.copyableTooltip?n.copyableTooltip({copied:f.copied}):r,a="string"===typeof o?o:"",l=f.copied?(0,s.bF)(is,null,null):(0,s.bF)(fV,null,null),c=n.copyableIcon?n.copyableIcon({copied:!!f.copied}):l;return(0,s.bF)(Bl,{key:"copy",title:!1===t?"":o},{default:function(){return[(0,s.bF)($L,{class:["".concat(u.value,"-copy"),(0,i.A)({},"".concat(u.value,"-copy-success"),f.copied)],onClick:A,"aria-label":a},{default:function(){return[c]}})]}})}}function I(){var t=r.class,o=r.style,i=x.value,a=i.maxlength,l=i.autoSize,d=i.onEnd;return(0,s.bF)(zK,{class:t,style:o,prefixCls:u.value,value:e.content,originContent:f.originContent,maxlength:a,autoSize:l,onSave:y,onChange:b,onCancel:w,onEnd:d,direction:c.value},{enterIcon:n.editableEnterIcon})}function R(e){return[N(e),M(),L()].filter((function(e){return e}))}return function(){var t,a=x.value.triggerType,l=void 0===a?["icon"]:a,h=e.ellipsis||e.editable?void 0!==e.content?e.content:null===(t=n.default)||void 0===t?void 0:t.call(n):n.default?n.default():e.content;return _.value?I():(0,s.bF)(xg.A,{componentName:"Text",children:function(t){var a,v=(0,o.A)((0,o.A)({},e),r),g=v.type,y=v.disabled,b=(v.content,v.class),w=v.style,A=(0,je.A)(v,yV),x=p.value,C=x.rows,S=x.suffix,_=x.tooltip,k=t.edit,E=t.copy,T=t.copied,N=t.expand;f.editStr=k,f.copyStr=E,f.copiedStr=T,f.expandStr=N;var M,L=ce(A,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),I=F.value,j=1===C&&I,D=C&&C>1&&I,B=h;if(C&&f.isEllipsis&&!f.expanded&&!I){var z,U=A.title,K=U||"";U||"string"!==typeof h&&"number"!==typeof h||(K=String(h)),K=null===(z=K)||void 0===z?void 0:z.slice(String(f.ellipsisContent||"").length),B=(0,s.bF)(s.FK,null,[(0,s.ux)(f.ellipsisContent),(0,s.bF)("span",{title:K,"aria-hidden":"true"},[AV]),S])}else B=(0,s.bF)(s.FK,null,[h,S]);B=P(e,B);var V=_&&C&&f.isEllipsis&&!f.expanded&&!I,H=n.ellipsisTooltip?n.ellipsisTooltip():_;return(0,s.bF)(W,{onResize:O,disabled:!C},{default:function(){return[(0,s.bF)(QK,(0,o.A)({ref:d,class:[(a={},(0,i.A)(a,"".concat(u.value,"-").concat(g),g),(0,i.A)(a,"".concat(u.value,"-disabled"),y),(0,i.A)(a,"".concat(u.value,"-ellipsis"),C),(0,i.A)(a,"".concat(u.value,"-single-line"),1===C&&!f.isEllipsis),(0,i.A)(a,"".concat(u.value,"-ellipsis-single-line"),j),(0,i.A)(a,"".concat(u.value,"-ellipsis-multiple-line"),D),a),b],style:(0,o.A)((0,o.A)({},w),{},{WebkitLineClamp:D?C:void 0}),"aria-label":M,direction:c.value,onClick:-1!==l.indexOf("text")?m:function(){}},L),{default:function(){return[V?(0,s.bF)(Bl,{title:!0===_?h:H},{default:function(){return[(0,s.bF)("span",null,[B])]}}):B,R()]}})]}})}},null)}}}),SV=CV,_V=["ellipsis","rel"],kV=function(){return ce((0,o.A)((0,o.A)({},xV()),{},{ellipsis:{type:Boolean,default:void 0}}),["component"])},EV=function(e,t){var n=t.slots,r=t.attrs,i=(0,o.A)((0,o.A)({},e),r),a=i.ellipsis,l=i.rel,u=(0,je.A)(i,_V);(0,Dn.A)("object"!==(0,Ie.A)(a),"Typography.Link","`ellipsis` only supports boolean value.");var c=(0,o.A)((0,o.A)({},u),{},{rel:void 0===l&&"_blank"===u.target?"noopener noreferrer":l,ellipsis:!!a,component:"a"});return delete c.navigate,(0,s.bF)(SV,c,n)};EV.displayName="ATypographyLink",EV.inheritAttrs=!1,EV.props=kV();var OV=EV,FV=function(){return ce(xV(),["component"])},TV=function(e,t){var n=t.slots,r=t.attrs,i=(0,o.A)((0,o.A)({},e),{},{component:"div"},r);return(0,s.bF)(SV,i,n)};TV.displayName="ATypographyParagraph",TV.inheritAttrs=!1,TV.props=FV();var PV=TV,NV=function(){return(0,o.A)((0,o.A)({},ce(xV(),["component"])),{},{ellipsis:{type:[Boolean,Object],default:void 0}})},MV=function(e,t){var n=t.slots,r=t.attrs,i=e.ellipsis;(0,Dn.A)("object"!==(0,Ie.A)(i)||!i||!("expandable"in i)&&!("rows"in i),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props.");var a=(0,o.A)((0,o.A)({},e),{},{ellipsis:i&&"object"===(0,Ie.A)(i)?ce(i,["expandable","rows"]):i,component:"span"},r);return(0,s.bF)(SV,a,n)};MV.displayName="ATypographyText",MV.inheritAttrs=!1,MV.props=NV();var LV=MV,IV=["level"],RV=(0,$.pf)(1,2,3,4,5),jV=function(){return(0,o.A)((0,o.A)({},ce(xV(),["component","strong"])),{},{level:Number})},DV=function(e,t){var n,r=t.slots,i=t.attrs,a=e.level,l=void 0===a?1:a,u=(0,je.A)(e,IV);-1!==RV.indexOf(l)?n="h".concat(l):((0,Dn.A)(!1,"Typography","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."),n="h1");var c=(0,o.A)((0,o.A)({},u),{},{component:n},i);return(0,s.bF)(SV,c,r)};DV.displayName="ATypographyTitle",DV.inheritAttrs=!1,DV.props=jV();var BV=DV;QK.Text=LV,QK.Title=BV,QK.Paragraph=PV,QK.Link=OV,QK.Base=SV,QK.install=function(e){return e.component(QK.name,QK),e.component(QK.Text.displayName,LV),e.component(QK.Title.displayName,BV),e.component(QK.Paragraph.displayName,PV),e.component(QK.Link.displayName,OV),e};var WV=QK;function zV(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function UV(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(UE){return t}}function KV(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,r)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(zV(e,t),UV(t)):e.onSuccess(UV(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var VV=+new Date,HV=0;function qV(){return"vc-upload-".concat(VV,"-").concat(++HV)}var GV=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),s=[a];return".jpg"!==a&&".jpeg"!==a||(s=[".jpg",".jpeg"]),s.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,Ke.$e)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};function YV(e,t){var n=e.createReader(),r=[];function o(){n.readEntries((function(e){var n=Array.prototype.slice.apply(e);r=r.concat(n);var i=!n.length;i?t(r):o()}))}o()}var $V=function(e,t,n){var r=function e(r,o){r.path=o||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&YV(r,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(r.name,"/"))}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},XV=$V,JV=function(){return{capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function}};function QV(e,t,n,r){var o=-1,i=null==e?0:e.length;while(++o<i){var a=e[o];t(r,a,n(a),e)}return r}var ZV=QV;function eH(e){return function(t,n,r){var o=-1,i=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}var tH=eH,nH=tH(),rH=nH;function oH(e,t){return e&&rH(e,t,Yk.A)}var iH=oH;function aH(e,t){return function(n,r){if(null==n)return n;if(!(0,hE.A)(n))return e(n,r);var o=n.length,i=t?o:-1,a=Object(n);while(t?i--:++i<o)if(!1===r(a[i],i,a))break;return n}}var sH=aH,lH=sH(iH),uH=lH;function cH(e,t,n,r){return uH(e,(function(e,o,i){t(r,e,n(e),i)})),r}var fH=cH;function dH(e,t){return function(n,r){var o=(0,zr.A)(n)?ZV:fH,i=t?t():{};return o(n,e,dE(r,2),i)}}var hH=dH,pH=hH((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),vH=pH,gH=["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"],mH=(0,s.pM)({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:JV(),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose,l=(0,s.KR)(qV()),u={},c=(0,s.KR)(),f=!1,d=function(){var t=(0,ct.A)(dt().mark((function t(n,r){var o,i,a,s,l,u,c,f,d;return dt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=e.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if(a=e.action,"function"!==typeof a){t.next=21;break}return t.next=18,a(n);case 18:s=t.sent,t.next=22;break;case 21:s=a;case 22:if(l=e.data,"function"!==typeof l){t.next=29;break}return t.next=26,l(n);case 26:u=t.sent,t.next=30;break;case 29:u=l;case 30:return c="object"!==(0,Ie.A)(i)&&"string"!==typeof i||!i?n:i,f=c instanceof File?c:new File([c],n.name,{type:n.type}),d=f,d.uid=n.uid,t.abrupt("return",{origin:n,data:u,parsedFile:d,action:s});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}(),h=function(t){var n=t.data,r=t.origin,o=t.action,i=t.parsedFile;if(f){var a=e.onStart,s=e.customRequest,l=e.name,c=e.headers,d=e.withCredentials,h=e.method,p=r.uid,v=s||KV,g={action:o,filename:l,data:n,file:i,headers:c,withCredentials:d,method:h||"post",onProgress:function(t){var n=e.onProgress;null===n||void 0===n||n(t,i)},onSuccess:function(t,n){var r=e.onSuccess;null===r||void 0===r||r(t,i,n),delete u[p]},onError:function(t,n){var r=e.onError;null===r||void 0===r||r(t,n,i),delete u[p]}};a(r),u[p]=v(g)}},p=function(){l.value=qV()},v=function(e){if(e){var t=e.uid?e.uid:e;u[t]&&u[t].abort&&u[t].abort(),delete u[t]}else Object.keys(u).forEach((function(e){u[e]&&u[e].abort&&u[e].abort(),delete u[e]}))};(0,s.sV)((function(){f=!0})),(0,s.xo)((function(){f=!1,v()}));var g=function(t){var n=(0,z.A)(t),r=n.map((function(e){return e.uid=qV(),d(e,n)}));Promise.all(r).then((function(t){var n=e.onBatchStart;null===n||void 0===n||n(t.map((function(e){var t=e.origin,n=e.parsedFile;return{file:t,parsedFile:n}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(e){h(e)}))}))},m=function(t){var n=e.accept,r=e.directory,o=t.target.files,i=(0,z.A)(o).filter((function(e){return!r||GV(e,n)}));g(i),p()},y=function(t){var n=c.value;if(n){var r=e.onClick;n.click(),r&&r(t)}},b=function(e){"Enter"===e.key&&y(e)},w=function(t){var n=e.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)XV(Array.prototype.slice.call(t.dataTransfer.items),g,(function(t){return GV(t,e.accept)}));else{var r=vH(Array.prototype.slice.call(t.dataTransfer.files),(function(t){return GV(t,e.accept)})),o=r[0],i=r[1];!1===n&&(o=o.slice(0,1)),g(o),i.length&&e.onReject&&e.onReject(i)}};return a({abort:v}),function(){var t,a,u=e.componentTag,f=e.prefixCls,d=e.disabled,h=e.id,p=e.multiple,v=e.accept,g=e.capture,A=e.directory,x=e.openFileDialogOnClick,C=e.onMouseenter,S=e.onMouseleave,_=(0,je.A)(e,gH),k=(t={},(0,i.A)(t,f,!0),(0,i.A)(t,"".concat(f,"-disabled"),d),(0,i.A)(t,r.class,!!r.class),t),E=A?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},O=d?{}:{onClick:x?y:function(){},onKeydown:x?b:function(){},onMouseenter:C,onMouseleave:S,onDrop:w,onDragover:w,tabindex:"0"};return(0,s.bF)(u,(0,o.A)((0,o.A)({},O),{},{class:k,role:"button",style:r.style}),{default:function(){return[(0,s.bF)("input",(0,o.A)((0,o.A)((0,o.A)({},Jo(_,{aria:!0,data:!0})),{},{id:h,type:"file",ref:c,onClick:function(e){return e.stopPropagation()},key:l.value,style:{display:"none"},accept:v},E),{},{multiple:p,onChange:m},null!=g?{capture:g}:{}),null),null===(a=n.default)||void 0===a?void 0:a.call(n)]}})}}});function yH(){}var bH=(0,s.pM)({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:Pe(JV(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:yH,onError:yH,onSuccess:yH,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup:function(e,t){var n=t.slots,r=t.attrs,i=t.expose,a=(0,s.KR)(),l=function(e){var t;null===(t=a.value)||void 0===t||t.abort(e)};return i({abort:l}),function(){return(0,s.bF)(mH,(0,o.A)((0,o.A)((0,o.A)({},e),r),{},{ref:a}),n)}}}),wH=bH,AH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},xH=AH;function CH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){SH(e,t,n[t])}))}return e}function SH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _H=function(e,t){var n=CH({},e,t.attrs);return(0,s.bF)(Ya.A,CH({},n,{icon:xH}),null)};_H.displayName="PaperClipOutlined",_H.inheritAttrs=!1;var kH=_H,EH={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},OH=EH;function FH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TH(e,t,n[t])}))}return e}function TH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var PH=function(e,t){var n=FH({},e,t.attrs);return(0,s.bF)(Ya.A,FH({},n,{icon:OH}),null)};PH.displayName="PictureTwoTone",PH.inheritAttrs=!1;var NH=PH,MH={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},LH=MH;function IH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RH(e,t,n[t])}))}return e}function RH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jH=function(e,t){var n=IH({},e,t.attrs);return(0,s.bF)(Ya.A,IH({},n,{icon:LH}),null)};jH.displayName="FileTwoTone",jH.inheritAttrs=!1;var DH=jH;function BH(){return{capture:[Boolean,String],type:String,name:String,defaultFileList:Array,fileList:Array,action:[String,Function],directory:{type:Boolean,default:void 0},data:[Object,Function],method:String,headers:Object,showUploadList:{type:[Boolean,Object],default:void 0},multiple:{type:Boolean,default:void 0},accept:String,beforeUpload:Function,onChange:Function,"onUpdate:fileList":Function,onDrop:Function,listType:String,onPreview:Function,onDownload:Function,onReject:Function,onRemove:Function,remove:Function,supportServerRender:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},prefixCls:String,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},id:String,previewFile:Function,transformFile:Function,iconRender:Function,isImageUrl:Function,progress:Object,itemRender:Function,maxCount:Number,height:[Number,String],removeIcon:Function,downloadIcon:Function,previewIcon:Function}}function WH(){return{listType:String,onPreview:Function,onDownload:Function,onRemove:Function,items:Array,progress:Object,prefixCls:String,showRemoveIcon:{type:Boolean,default:void 0},showDownloadIcon:{type:Boolean,default:void 0},showPreviewIcon:{type:Boolean,default:void 0},removeIcon:Function,downloadIcon:Function,previewIcon:Function,locale:{type:Object,default:void 0},previewFile:Function,iconRender:Function,isImageUrl:Function,appendAction:Function,appendActionVisible:{type:Boolean,default:void 0},itemRender:Function}}function zH(e){return(0,o.A)((0,o.A)({},e),{},{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function UH(e,t){var n=(0,z.A)(t),r=n.findIndex((function(t){var n=t.uid;return n===e.uid}));return-1===r?n.push(e):n[r]=e,n}function KH(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}function VH(e,t){var n=void 0!==e.uid?"uid":"name",r=t.filter((function(t){return t[n]!==e[n]}));return r.length===t.length?null:r}var HH=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},qH=function(e){return 0===e.indexOf("image/")},GH=function(e){if(e.type&&!e.thumbUrl)return qH(e.type);var t=e.thumbUrl||e.url||"",n=HH(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},YH=200;function $H(e){return new Promise((function(t){if(e.type&&qH(e.type)){var n=document.createElement("canvas");n.width=YH,n.height=YH,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(YH,"px; height: ").concat(YH,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),o=new Image;o.onload=function(){var e=o.width,i=o.height,a=YH,s=YH,l=0,u=0;e>i?(s=i*(YH/e),u=-(s-a)/2):(a=e*(YH/i),l=-(a-s)/2),r.drawImage(o,l,u,a,s);var c=n.toDataURL();document.body.removeChild(n),t(c)},o.src=window.URL.createObjectURL(e)}else t("")}))}var XH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},JH=XH;function QH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZH(e,t,n[t])}))}return e}function ZH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eq=function(e,t){var n=QH({},e,t.attrs);return(0,s.bF)(Ya.A,QH({},n,{icon:JH}),null)};eq.displayName="DownloadOutlined",eq.inheritAttrs=!1;var tq=eq,nq=function(){return{prefixCls:String,locale:{type:Object,default:void 0},file:Object,items:Array,listType:String,isImgUrl:Function,showRemoveIcon:{type:Boolean,default:void 0},showDownloadIcon:{type:Boolean,default:void 0},showPreviewIcon:{type:Boolean,default:void 0},removeIcon:Function,downloadIcon:Function,previewIcon:Function,iconRender:Function,actionIconRender:Function,itemRender:Function,onPreview:Function,onClose:Function,onDownload:Function,progress:{type:Object,default:void 0}}},rq=(0,s.pM)({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:nq(),setup:function(e,t){var n=t.slots,r=t.attrs,a=(0,s.KR)(!1),l=(0,s.KR)();(0,s.sV)((function(){l.value=setTimeout((function(){a.value=!0}),300)})),(0,s.xo)((function(){clearTimeout(l.value)}));var u=(0,se.A)("upload",e),c=u.rootPrefixCls,f=(0,s.EW)((function(){return(0,so.ce)("".concat(c.value,"-fade"))}));return function(){var t,l,u=e.prefixCls,c=e.locale,d=e.listType,h=e.file,p=e.items,v=e.progress,g=e.iconRender,m=void 0===g?n.iconRender:g,y=e.actionIconRender,b=void 0===y?n.actionIconRender:y,w=e.itemRender,A=void 0===w?n.itemRender:w,x=e.isImgUrl,C=e.showPreviewIcon,S=e.showRemoveIcon,_=e.showDownloadIcon,k=e.previewIcon,E=void 0===k?n.previewIcon:k,O=e.removeIcon,F=void 0===O?n.removeIcon:O,T=e.downloadIcon,P=void 0===T?n.downloadIcon:T,N=e.onPreview,M=e.onDownload,L=e.onClose,I=r.class,R=r.style,j="".concat(u,"-span"),D=m({file:h}),B=(0,s.bF)("div",{class:"".concat(u,"-text-icon")},[D]);if("picture"===d||"picture-card"===d)if("uploading"===h.status||!h.thumbUrl&&!h.url){var W,z=(W={},(0,i.A)(W,"".concat(u,"-list-item-thumbnail"),!0),(0,i.A)(W,"".concat(u,"-list-item-file"),"uploading"!==h.status),W);B=(0,s.bF)("div",{class:z},[D])}else{var U,K=null!==x&&void 0!==x&&x(h)?(0,s.bF)("img",{src:h.thumbUrl||h.url,alt:h.name,class:"".concat(u,"-list-item-image")},null):D,V=(U={},(0,i.A)(U,"".concat(u,"-list-item-thumbnail"),!0),(0,i.A)(U,"".concat(u,"-list-item-file"),x&&!x(h)),U);B=(0,s.bF)("a",{class:V,onClick:function(e){return N(h,e)},href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[K])}var H,q,G,Y=(t={},(0,i.A)(t,"".concat(u,"-list-item"),!0),(0,i.A)(t,"".concat(u,"-list-item-").concat(h.status),!0),(0,i.A)(t,"".concat(u,"-list-item-list-type-").concat(d),!0),t),$="string"===typeof h.linkProps?JSON.parse(h.linkProps):h.linkProps,X=S?b({customIcon:F?F({file:h}):(0,s.bF)(yU,null,null),callback:function(){return L(h)},prefixCls:u,title:c.removeFile}):null,J=_&&"done"===h.status?b({customIcon:P?P({file:h}):(0,s.bF)(tq,null,null),callback:function(){return M(h)},prefixCls:u,title:c.downloadFile}):null,Q="picture-card"!==d&&(0,s.bF)("span",{key:"download-delete",class:["".concat(u,"-list-item-card-actions"),{picture:"picture"===d}]},[J,X]),Z="".concat(u,"-list-item-name"),ee=h.url?[(0,s.bF)("a",(0,o.A)((0,o.A)({key:"view",target:"_blank",rel:"noopener noreferrer",class:Z,title:h.name},$),{},{href:h.url,onClick:function(e){return N(h,e)}}),[h.name]),Q]:[(0,s.bF)("span",{key:"view",class:Z,onClick:function(e){return N(h,e)},title:h.name},[h.name]),Q],te={pointerEvents:"none",opacity:.5},ne=C?(0,s.bF)("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:te,onClick:function(e){return N(h,e)},title:c.previewFile},[E?E({file:h}):(0,s.bF)(RF,null,null)]):null,re="picture-card"===d&&"uploading"!==h.status&&(0,s.bF)("span",{class:"".concat(u,"-list-item-actions")},[ne,"done"===h.status&&J,X]);h.response&&"string"===typeof h.response?H=h.response:H=(null===(q=h.error)||void 0===q?void 0:q.statusText)||(null===(G=h.error)||void 0===G?void 0:G.message)||c.uploadError;var oe=(0,s.bF)("span",{class:j},[B,ee]),ie=(0,s.bF)("div",{class:Y},[(0,s.bF)("div",{class:"".concat(u,"-list-item-info")},[oe]),re,a.value&&(0,s.bF)(so.Ay,f.value,{default:function(){return[(0,s.bo)((0,s.bF)("div",{class:"".concat(u,"-list-item-progress")},["percent"in h?(0,s.bF)(PI,(0,o.A)((0,o.A)({},v),{},{type:"line",percent:h.percent}),null):null]),[[s.aG,"uploading"===h.status]])]}})]),ae=(l={},(0,i.A)(l,"".concat(u,"-list-").concat(d,"-container"),!0),(0,i.A)(l,"".concat(I),!!I),l),se="error"===h.status?(0,s.bF)(Bl,{title:H,getPopupContainer:function(e){return e.parentNode}},{default:function(){return[ie]}}):ie;return(0,s.bF)("div",{class:ae,style:R,ref:s.KR},[A?A({originNode:se,file:h,fileList:p,actions:{download:M.bind(null,h),preview:N.bind(null,h),remove:L.bind(null,h)}}):se])}}}),oq=function(e,t){var n,r=t.slots;return(0,B.Gk)(null===(n=r.default)||void 0===n?void 0:n.call(r))[0]},iq=(0,s.pM)({compatConfig:{MODE:3},name:"AUploadList",props:Pe(WH(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:$H,isImageUrl:GH,items:[],appendActionVisible:!0}),setup:function(e,t){var n=t.slots,r=t.expose,a=(0,s.KR)(!1),l=(0,s.nI)();(0,s.sV)((function(){a.value})),(0,s.nT)((function(){"picture"!==e.listType&&"picture-card"!==e.listType||(e.items||[]).forEach((function(t){"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",e.previewFile&&e.previewFile(t.originFileObj).then((function(e){t.thumbUrl=e||"",l.update()})))}))}));var u=function(t,n){if(e.onPreview)return null===n||void 0===n||n.preventDefault(),e.onPreview(t)},c=function(t){"function"===typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},f=function(t){var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},d=function(t){var r=t.file,o=e.iconRender||n.iconRender;if(o)return o({file:r,listType:e.listType});var i="uploading"===r.status,a=e.isImageUrl&&e.isImageUrl(r)?(0,s.bF)(NH,null,null):(0,s.bF)(DH,null,null),l=i?(0,s.bF)(Za.A,null,null):(0,s.bF)(kH,null,null);return"picture"===e.listType?l=i?(0,s.bF)(Za.A,null,null):a:"picture-card"===e.listType&&(l=i?e.locale.uploading:a),l},h=function(e){var t=e.customIcon,n=e.callback,r=e.prefixCls,o=e.title,i={type:"text",size:"small",title:o,onClick:function(){n()},class:"".concat(r,"-list-item-card-actions-btn")};return(0,B.zO)(t)?(0,s.bF)(tc,i,{icon:function(){return t}}):(0,s.bF)(tc,i,{default:function(){return[(0,s.bF)("span",null,[t])]}})};r({handlePreview:u,handleDownload:c});var p=(0,se.A)("upload",e),v=p.prefixCls,g=p.direction,m=(0,s.EW)((function(){var t;return t={},(0,i.A)(t,"".concat(v.value,"-list"),!0),(0,i.A)(t,"".concat(v.value,"-list-").concat(e.listType),!0),(0,i.A)(t,"".concat(v.value,"-list-rtl"),"rtl"===g.value),t})),y=(0,s.EW)((function(){return(0,o.A)((0,o.A)((0,o.A)({},Df("".concat(v.value,"-").concat("picture-card"===e.listType?"animate-inline":"animate"))),(0,so.zg)("".concat(v.value,"-").concat("picture-card"===e.listType?"animate-inline":"animate"))),{},{class:m.value,appear:a.value})}));return function(){var t=e.listType,r=e.locale,i=e.isImageUrl,a=e.items,l=void 0===a?[]:a,p=e.showPreviewIcon,g=e.showRemoveIcon,m=e.showDownloadIcon,b=e.removeIcon,w=e.previewIcon,A=e.downloadIcon,x=e.progress,C=e.appendAction,S=e.itemRender,_=e.appendActionVisible,k=null===C||void 0===C?void 0:C();return(0,s.bF)(s.F,(0,o.A)((0,o.A)({},y.value),{},{tag:"div"}),{default:function(){return[l.map((function(e){var a=e.uid;return(0,s.bF)(rq,{key:a,locale:r,prefixCls:v.value,file:e,items:l,progress:x,listType:t,isImgUrl:i,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:m,onPreview:u,onDownload:c,onClose:f,removeIcon:b,previewIcon:w,downloadIcon:A,itemRender:S},(0,o.A)((0,o.A)({},n),{},{iconRender:d,actionIconRender:h}))})),C?(0,s.bo)((0,s.bF)(oq,{key:"__ant_upload_appendAction"},{default:function(){return k}}),[[s.aG,!!_]]):null]}})}}}),aq=["class","style"],sq="__LIST_IGNORE_".concat(Date.now(),"__"),lq=(0,s.pM)({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:Pe(BH(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",disabled:!1,supportServerRender:!0}),setup:function(e,t){var n=t.slots,r=t.attrs,a=t.expose,u=ws(),c=Ra(e.defaultFileList||[],{value:(0,s.lW)(e,"fileList"),postState:function(e){var t=Date.now();return(null!==e&&void 0!==e?e:[]).map((function(e,n){return e.uid||Object.isFrozen(e)||(e.uid="__AUTO__".concat(t,"_").concat(n,"__")),e}))}}),f=(0,Re.A)(c,2),d=f[0],h=f[1],p=(0,s.KR)("drop"),v=(0,s.KR)();(0,s.sV)((function(){(0,Wu.A)(void 0!==e.fileList||void 0===r.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),(0,Wu.A)(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),(0,Wu.A)(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));var g=function(t,n,r){var o,i,a=(0,z.A)(n);1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),h(a);var s={file:t,fileList:a};r&&(s.event=r),null===(o=e["onUpdate:fileList"])||void 0===o||o.call(e,s.fileList),null===(i=e.onChange)||void 0===i||i.call(e,s),u.onFieldChange()},m=function(){var t=(0,ct.A)(dt().mark((function t(n,r){var o,i,a,s;return dt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=e.beforeUpload,i=e.transformFile,a=n,!o){t.next=13;break}return t.next=5,o(n,r);case 5:if(s=t.sent,!1!==s){t.next=8;break}return t.abrupt("return",!1);case 8:if(delete n[sq],s!==sq){t.next=12;break}return Object.defineProperty(n,sq,{value:!0,configurable:!0}),t.abrupt("return",!1);case 12:"object"===(0,Ie.A)(s)&&s&&(a=s);case 13:if(!i){t.next=17;break}return t.next=16,i(a);case 16:a=t.sent;case 17:return t.abrupt("return",a);case 18:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),y=function(e){var t=e.filter((function(e){return!e.file[sq]}));if(t.length){var n=t.map((function(e){return zH(e.file)})),r=(0,z.A)(d.value);n.forEach((function(e){r=UH(e,r)})),n.forEach((function(e,n){var o=e;if(t[n].parsedFile)e.status="uploading";else{var i,a=e.originFileObj;try{i=new File([a],a.name,{type:a.type})}catch(UE){i=new Blob([a],{type:a.type}),i.name=a.name,i.lastModifiedDate=new Date,i.lastModified=(new Date).getTime()}i.uid=e.uid,o=i}g(o,r)}))}},b=function(e,t,n){try{"string"===typeof e&&(e=JSON.parse(e))}catch(UE){}if(KH(t,d.value)){var r=zH(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;var o=UH(r,d.value);g(r,o)}},w=function(e,t){if(KH(t,d.value)){var n=zH(t);n.status="uploading",n.percent=e.percent;var r=UH(n,d.value);g(n,r,e)}},A=function(e,t,n){if(KH(n,d.value)){var r=zH(n);r.error=e,r.response=t,r.status="error";var o=UH(r,d.value);g(r,o)}},x=function(t){var n,r=e.onRemove||e.remove;Promise.resolve("function"===typeof r?r(t):r).then((function(e){if(!1!==e){var r,i,a=VH(t,d.value);if(a)n=(0,o.A)((0,o.A)({},t),{},{status:"removed"}),null===(r=d.value)||void 0===r||r.forEach((function(e){var t=void 0!==n.uid?"uid":"name";e[t]!==n[t]||Object.isFrozen(e)||(e.status="removed")})),null===(i=v.value)||void 0===i||i.abort(n),g(n,a)}}))},C=function(t){var n;(p.value=t.type,"drop"===t.type)&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};a({onBatchStart:y,onSuccess:b,onProgress:w,onError:A,fileList:d,upload:v});var S=(0,se.A)("upload",e),_=S.prefixCls,k=S.direction,E=(0,xg.n)("Upload",EE.A.Upload,(0,s.EW)((function(){return e.locale}))),O=(0,Re.A)(E,1),F=O[0],T=function(t,r){var i=e.removeIcon,a=e.previewIcon,l=e.downloadIcon,u=e.previewFile,c=e.onPreview,f=e.onDownload,h=e.disabled,p=e.isImageUrl,v=e.progress,g=e.itemRender,m=e.iconRender,y=e.showUploadList,b="boolean"===typeof y?{}:y,w=b.showDownloadIcon,A=b.showPreviewIcon,C=b.showRemoveIcon;return y?(0,s.bF)(iq,{listType:e.listType,items:d.value,previewFile:u,onPreview:c,onDownload:f,onRemove:x,showRemoveIcon:!h&&C,showPreviewIcon:A,showDownloadIcon:w,removeIcon:i,previewIcon:a,downloadIcon:l,iconRender:m,locale:F.value,isImageUrl:p,progress:v,itemRender:g,appendActionVisible:r,appendAction:t},(0,o.A)({},n)):null===t||void 0===t?void 0:t()};return function(){var t,a,c,f=e.listType,h=e.disabled,g=e.type,x=(r.class,r.style,(0,je.A)(r,aq)),S=(0,o.A)((0,o.A)((0,o.A)({onBatchStart:y,onError:A,onProgress:w,onSuccess:b},x),e),{},{id:null!==(t=e.id)&&void 0!==t?t:u.id.value,prefixCls:_.value,beforeUpload:m,onChange:void 0});if(delete S.remove,n.default&&!h||delete S.id,"drag"===g){var E,O,F=(0,l.A)(_.value,(E={},(0,i.A)(E,"".concat(_.value,"-drag"),!0),(0,i.A)(E,"".concat(_.value,"-drag-uploading"),d.value.some((function(e){return"uploading"===e.status}))),(0,i.A)(E,"".concat(_.value,"-drag-hover"),"dragover"===p.value),(0,i.A)(E,"".concat(_.value,"-disabled"),h),(0,i.A)(E,"".concat(_.value,"-rtl"),"rtl"===k.value),E),r.class);return(0,s.bF)("span",null,[(0,s.bF)("div",{class:F,onDrop:C,onDragover:C,onDragleave:C,style:r.style},[(0,s.bF)(wH,(0,o.A)((0,o.A)({},S),{},{ref:v,class:"".concat(_.value,"-btn")}),(0,o.A)({default:function(){return[(0,s.bF)("div",{class:"".concat(_.value,"-drag-container")},[null===(O=n.default)||void 0===O?void 0:O.call(n)])]}},n))]),T()])}var P=(0,l.A)(_.value,(a={},(0,i.A)(a,"".concat(_.value,"-select"),!0),(0,i.A)(a,"".concat(_.value,"-select-").concat(f),!0),(0,i.A)(a,"".concat(_.value,"-disabled"),h),(0,i.A)(a,"".concat(_.value,"-rtl"),"rtl"===k.value),a)),N=(0,B.MI)(null===(c=n.default)||void 0===c?void 0:c.call(n)),M=function(e){return(0,s.bF)("div",{class:P,style:e},[(0,s.bF)(wH,(0,o.A)((0,o.A)({},S),{},{ref:v}),n)])};return"picture-card"===f?(0,s.bF)("span",{class:(0,l.A)("".concat(_.value,"-picture-card-wrapper"),r.class)},[T(M,!(!N||!N.length))]):(0,s.bF)("span",{class:r.class},[M(N&&N.length?void 0:{display:"none"}),T()])}}}),uq=["height"],cq=["style"],fq=(0,s.pM)({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:BH(),setup:function(e,t){var n=t.slots,r=t.attrs;return function(){var t=e.height,i=(0,je.A)(e,uq),a=r.style,l=(0,je.A)(r,cq),u=(0,o.A)((0,o.A)((0,o.A)({},i),l),{},{type:"drag",style:(0,o.A)((0,o.A)({},a),{},{height:"number"===typeof t?"".concat(t,"px"):t})});return(0,s.bF)(lq,u,n)}}}),dq=fq,hq=(0,a.A)(lq,{Dragger:fq,LIST_IGNORE:sq,install:function(e){return e.component(lq.name,lq),e.component(fq.name,fq),e}}),pq=n(83724),vq="3.2.20",gq=vq,mq=function(e){return Object.keys(r).forEach((function(t){var n=r[t];n.install&&e.use(n)})),e.config.globalProperties.$message=tM.Ay,e.config.globalProperties.$notification=ML.A,e.config.globalProperties.$info=tL.info,e.config.globalProperties.$success=tL.success,e.config.globalProperties.$error=tL.error,e.config.globalProperties.$warning=tL.warning,e.config.globalProperties.$confirm=tL.confirm,e.config.globalProperties.$destroyAll=tL.destroyAll,e},yq={version:gq,install:mq}},38377:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(89379),o=n(29726),i=n(77749);function a(e,t,n){var a=(0,o.WQ)("localeData",{}),s=(0,o.EW)((function(){var s=a.antLocale,l=(0,o.R1)(t)||i.A[e||"global"],u=e&&s?s[e]:{};return(0,r.A)((0,r.A)((0,r.A)({},"function"===typeof l?l():l),u||{}),(0,o.R1)(n)||{})}));return[s]}t.A=(0,o.pM)({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup:function(e,t){var n=t.slots,a=(0,o.WQ)("localeData",{}),s=(0,o.EW)((function(){var t=e.componentName,n=void 0===t?"global":t,o=e.defaultLocale,s=o||i.A[n||"global"],l=a.antLocale,u=n&&l?l[n]:{};return(0,r.A)((0,r.A)({},"function"===typeof s?s():s),u||{})})),l=(0,o.EW)((function(){var e=a.antLocale,t=e&&e.locale;return e&&e.exist&&!t?i.A.locale:t}));return function(){var t=e.children||n.default,r=a.antLocale;return null===t||void 0===t?void 0:t(s.value,l.value,r)}}})},77749:function(e,t,n){"use strict";var r=n(48959);t.A=r.A},83724:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(89379),o=n(29726),i=n(11041),a=n(30869),s="internalMark",l=(0,o.pM)({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup:function(e,t){var n=t.slots;(0,i.A)(e.ANT_MARK__===s,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");var a=(0,o.Kh)({antLocale:(0,r.A)((0,r.A)({},e.locale),{},{exist:!0}),ANT_MARK__:s});return(0,o.Gt)("localeData",a),(0,o.wB)((function(){return e.locale}),(function(){a.antLocale=(0,r.A)((0,r.A)({},e.locale),{},{exist:!0})}),{immediate:!0}),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});l.install=function(e){return e.component(l.name,l),e},t.A=(0,a.GU)(l)},48959:function(e,t,n){"use strict";var r=n(15709),o=n(33927),i=n(68265),a=n(55353),s="${label} is not a valid ${type}",l={locale:"en",Pagination:r.A,DatePicker:o.A,TimePicker:i.A,Calendar:a.A,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.A=l},7042:function(e,t,n){"use strict";n.r(t);var r=n(48959);t["default"]=r.A},18787:function(e,t,n){"use strict";var r,o,i,a=n(89379),s=n(64467),l=n(29726),u=n(94915),c=n(17766),f=n(45601),d=n(95540),h=n(38068),p=n(47913),v=n(58777),g=3,m=1,y="",b="move-up",w=!1,A=function(){return document.body},x=!1;function C(){return m++}function S(e){void 0!==e.top&&(r=e.top,o=null),void 0!==e.duration&&(g=e.duration),void 0!==e.prefixCls&&(y=e.prefixCls),void 0!==e.getContainer&&(A=e.getContainer,o=null),void 0!==e.transitionName&&(b=e.transitionName,o=null,w=!0),void 0!==e.maxCount&&(i=e.maxCount,o=null),void 0!==e.rtl&&(x=e.rtl)}function _(e,t){o?t(o):u.A.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||y,rootPrefixCls:e.rootPrefixCls,transitionName:b,hasTransitionName:w,style:{top:r},getContainer:A||e.getPopupContainer,maxCount:i,name:"message"},(function(e){o?t(o):(o=e,t(e))}))}var k={info:p.A,success:h.A,error:d.A,warning:f.A,loading:c.A};function E(e){var t=void 0!==e.duration?e.duration:g,n=e.key||C(),r=new Promise((function(r){var o=function(){return"function"===typeof e.onClose&&e.onClose(),r(!0)};_(e,(function(r){r.notice({key:n,duration:t,style:e.style||{},class:e.class,content:function(t){var n,r=t.prefixCls,o=k[e.type],i=o?(0,l.bF)(o,null,null):"",a=(0,v.A)("".concat(r,"-custom-content"),(n={},(0,s.A)(n,"".concat(r,"-").concat(e.type),e.type),(0,s.A)(n,"".concat(r,"-rtl"),!0===x),n));return(0,l.bF)("div",{class:a},["function"===typeof e.icon?e.icon():e.icon||i,(0,l.bF)("span",null,["function"===typeof e.content?e.content():e.content])])},onClose:o,onClick:e.onClick})}))})),i=function(){o&&o.removeNotice(n)};return i.then=function(e,t){return r.then(e,t)},i.promise=r,i}function O(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}var F={open:E,config:S,destroy:function(e){if(o)if(e){var t=o,n=t.removeNotice;n(e)}else{var r=o,i=r.destroy;i(),o=null}}};function T(e,t){e[t]=function(n,r,o){return O(n)?e.open((0,a.A)((0,a.A)({},n),{},{type:t})):("function"===typeof r&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}}["success","info","warning","error","loading"].forEach((function(e){return T(F,e)})),F.warn=F.warning;t.Ay=F},56427:function(e,t,n){"use strict";var r,o=n(89379),i=n(64467),a=n(29726),s=(n(54756),n(94915)),l=n(48469),u=n(99426),c=n(65653),f=n(39493),d=n(86354),h=n(82681),p=n(33786),v=n(58777),g={},m=4.5,y="24px",b="24px",w="",A="topRight",x=function(){return document.body},C=null,S=!1;function _(e){var t=e.duration,n=e.placement,o=e.bottom,i=e.top,a=e.getContainer,s=e.closeIcon,l=e.prefixCls;void 0!==l&&(w=l),void 0!==t&&(m=t),void 0!==n&&(A=n),void 0!==o&&(b="number"===typeof o?"".concat(o,"px"):o),void 0!==i&&(y="number"===typeof i?"".concat(i,"px"):i),void 0!==a&&(x=a),void 0!==s&&(C=s),void 0!==e.rtl&&(S=e.rtl),void 0!==e.maxCount&&(r=e.maxCount)}function k(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b;switch(e){case"topLeft":t={left:"0px",top:n,bottom:"auto"};break;case"topRight":t={right:"0px",top:n,bottom:"auto"};break;case"bottomLeft":t={left:"0px",top:"auto",bottom:r};break;default:t={right:"0px",top:"auto",bottom:r};break}return t}function E(e,t){var n=e.prefixCls,o=e.placement,l=void 0===o?A:o,u=e.getContainer,c=void 0===u?x:u,f=e.top,m=e.bottom,y=e.closeIcon,b=void 0===y?C:y,_=e.appContext,E=(0,p.cr)(),O=E.getPrefixCls,F=O("notification",n||w),T="".concat(F,"-").concat(l,"-").concat(S),P=g[T];if(P)Promise.resolve(P).then((function(e){t(e)}));else{var N=(0,v.A)("".concat(F,"-").concat(l),(0,i.A)({},"".concat(F,"-rtl"),!0===S));s.A.newInstance({name:"notification",prefixCls:n||w,class:N,style:k(l,f,m),appContext:_,getContainer:c,closeIcon:function(e){var t=e.prefixCls,n=(0,a.bF)("span",{class:"".concat(t,"-close-x")},[(0,h.BM)(b,{},(0,a.bF)(d.A,{class:"".concat(t,"-close-icon")},null))]);return n},maxCount:r,hasTransitionName:!0},(function(e){g[T]=e,t(e)}))}}var O={success:l.A,info:u.A,error:c.A,warning:f.A};function F(e){var t=e.icon,n=e.type,r=e.description,o=e.message,i=e.btn,s=void 0===e.duration?m:e.duration;E(e,(function(l){l.notice({content:function(e){var s=e.prefixCls,l="".concat(s,"-notice"),u=null;if(t)u=function(){return(0,a.bF)("span",{class:"".concat(l,"-icon")},[(0,h.BM)(t)])};else if(n){var c=O[n];u=function(){return(0,a.bF)(c,{class:"".concat(l,"-icon ").concat(l,"-icon-").concat(n)},null)}}return(0,a.bF)("div",{class:u?"".concat(l,"-with-icon"):""},[u&&u(),(0,a.bF)("div",{class:"".concat(l,"-message")},[!r&&u?(0,a.bF)("span",{class:"".concat(l,"-message-single-line-auto-margin")},null):null,(0,h.BM)(o)]),(0,a.bF)("div",{class:"".concat(l,"-description")},[(0,h.BM)(r)]),i?(0,a.bF)("span",{class:"".concat(l,"-btn")},[(0,h.BM)(i)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})}))}var T={open:F,close:function(e){Object.keys(g).forEach((function(t){return Promise.resolve(g[t]).then((function(t){t.removeNotice(e)}))}))},config:_,destroy:function(){Object.keys(g).forEach((function(e){Promise.resolve(g[e]).then((function(e){e.destroy()})),delete g[e]}))}},P=["success","info","warning","error"];P.forEach((function(e){T[e]=function(t){return T.open((0,o.A)((0,o.A)({},t),{},{type:e}))}})),T.warn=T.warning;t.A=T},68265:function(e,t){"use strict";var n={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t.A=n},94915:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(82305),o=n(64467),i=n(89379),a=n(29726),s=n(65586),l=n(80641),u=n(58777),c=(0,a.pM)({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup:function(e,t){var n,r=t.attrs,s=t.slots,c=!1,f=(0,a.EW)((function(){return void 0===e.duration?4.5:e.duration})),d=function(){f.value&&!c&&(n=setTimeout((function(){p()}),1e3*f.value))},h=function(){n&&(clearTimeout(n),n=null)},p=function(t){t&&t.stopPropagation(),h();var n=e.onClose,r=e.noticeKey;n&&n(r)},v=function(){h(),d()};return(0,a.sV)((function(){d()})),(0,a.hi)((function(){c=!0,h()})),(0,a.wB)([f,function(){return e.updateMark},function(){return e.visible}],(function(e,t){var n=(0,l.A)(e,3),r=n[0],o=n[1],i=n[2],a=(0,l.A)(t,3),s=a[0],u=a[1],c=a[2];(r!==s||o!==u||i!==c&&c)&&v()}),{flush:"post"}),function(){var t,n,l=e.prefixCls,c=e.closable,f=e.closeIcon,v=void 0===f?null===(t=s.closeIcon)||void 0===t?void 0:t.call(s):f,g=e.onClick,m=e.holder,y=r.class,b=r.style,w="".concat(l,"-notice"),A=Object.keys(r).reduce((function(e,t){return"data-"!==t.substr(0,5)&&"aria-"!==t.substr(0,5)&&"role"!==t||(e[t]=r[t]),e}),{}),x=(0,a.bF)("div",(0,i.A)({class:(0,u.A)(w,y,(0,o.A)({},"".concat(w,"-closable"),c)),style:b,onMouseenter:h,onMouseleave:d,onClick:g},A),[(0,a.bF)("div",{class:"".concat(w,"-content")},[null===(n=s.default)||void 0===n?void 0:n.call(s)]),c?(0,a.bF)("a",{tabindex:0,onClick:p,class:"".concat(w,"-close")},[v||(0,a.bF)("span",{class:"".concat(w,"-close-x")},null)]):null]);return m?(0,a.bF)(a.Im,{to:m},{default:function(){return x}}):x}}}),f=n(33786),d=["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName"],h=0,p=Date.now();function v(){var e=h;return h+=1,"rcNotification_".concat(p,"_").concat(e)}var g=(0,a.pM)({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon"],setup:function(e,t){var n=t.attrs,r=t.expose,l=t.slots,u=new Map,f=(0,a.KR)([]),d=(0,a.EW)((function(){var t=e.prefixCls,n=e.animation,r=void 0===n?"fade":n,o=e.transitionName;return!o&&r&&(o="".concat(t,"-").concat(r)),(0,s.zg)(o)})),h=function(t,n){var r=t.key||v(),o=(0,i.A)((0,i.A)({},t),{},{key:r}),a=e.maxCount,s=f.value.map((function(e){return e.notice.key})).indexOf(r),l=f.value.concat();-1!==s?l.splice(s,1,{notice:o,holderCallback:n}):(a&&f.value.length>=a&&(o.key=l[0].notice.key,o.updateMark=v(),o.userPassKey=r,l.shift()),l.push({notice:o,holderCallback:n})),f.value=l},p=function(e){f.value=f.value.filter((function(t){var n=t.notice,r=n.key,o=n.userPassKey,i=o||r;return i!==e}))};return r({add:h,remove:p,notices:f}),function(){var t,r,s=e.prefixCls,h=e.closeIcon,v=void 0===h?null===(t=l.closeIcon)||void 0===t?void 0:t.call(l,{prefixCls:s}):h,g=f.value.map((function(e,t){var n=e.notice,r=e.holderCallback,o=t===f.value.length-1?n.updateMark:void 0,l=n.key,d=n.userPassKey,h=n.content,g=(0,i.A)((0,i.A)((0,i.A)({prefixCls:s,closeIcon:"function"===typeof v?v({prefixCls:s}):v},n),n.props),{},{key:l,noticeKey:d||l,updateMark:o,onClose:function(e){var t;p(e),null===(t=n.onClose)||void 0===t||t.call(n)},onClick:n.onClick});return r?(0,a.bF)("div",{key:l,class:"".concat(s,"-hook-holder"),ref:function(e){"undefined"!==typeof l&&(e?(u.set(l,e),r(e,g)):u.delete(l))}},null):(0,a.bF)(c,g,{default:function(){return["function"===typeof h?h({prefixCls:s}):h]}})})),m=(r={},(0,o.A)(r,s,1),(0,o.A)(r,n.class,!!n.class),r);return(0,a.bF)("div",{class:m,style:n.style||{top:"65px",left:"50%"}},[(0,a.bF)(a.F,(0,i.A)({tag:"div"},d.value),{default:function(){return[g]}})])}}});g.newInstance=function(e,t){var n=e||{},o=n.name,s=void 0===o?"notification":o,l=n.getContainer,u=n.appContext,c=n.prefixCls,h=n.rootPrefixCls,p=n.transitionName,v=n.hasTransitionName,m=(0,r.A)(n,d),y=document.createElement("div");if(l){var b=l();b.appendChild(y)}else document.body.appendChild(y);var w=(0,a.pM)({compatConfig:{MODE:3},name:"NotificationWrapper",setup:function(e,n){var r=n.attrs,o=(0,a.KR)();return(0,a.sV)((function(){t({notice:function(e){var t;null===(t=o.value)||void 0===t||t.add(e)},removeNotice:function(e){var t;null===(t=o.value)||void 0===t||t.remove(e)},destroy:function(){(0,a.XX)(null,y),y.parentNode&&y.parentNode.removeChild(y)},component:o})})),function(){var e=f.Vm,t=e.getPrefixCls(s,c),n=e.getRootPrefixCls(h,t),l=v?p:"".concat(n,"-").concat(p);return(0,a.bF)(f.Ay,(0,i.A)((0,i.A)({},e),{},{notUpdateGlobalConfig:!0,prefixCls:n}),{default:function(){return[(0,a.bF)(g,(0,i.A)((0,i.A)({ref:o},r),{},{prefixCls:t,transitionName:l}),null)]}})}}}),A=(0,a.bF)(w,m);A.appContext=u||A.appContext,(0,a.XX)(A,y)};var m=g,y=m},15709:function(e,t){"use strict";t.A={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},48931:function(e,t){"use strict";t.A={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}},37025:function(e,t,n){"use strict";var r=n(57646);t.A=function(e,t,n){(0,r.Ay)(e,"[ant-design-vue: ".concat(t,"] ").concat(n))}},57646:function(e,t,n){"use strict";n.d(t,{$e:function(){return o},N4:function(){return i},g9:function(){return l}});var r={};function o(e,t){0}function i(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){a(o,e,t)}function l(e,t){a(i,e,t)}t.Ay=s},27620:function(e,t,n){"use strict";n.d(t,{A:function(){return Q}});var r=n(29726),o=n(38798),i=[],a=[],s="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function l(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function u(e,t){if(t=t||{},void 0===e)throw new Error(s);var n,r=!0===t.prepend?"prepend":"append",o=void 0!==t.container?t.container:document.querySelector("head"),u=i.indexOf(o);return-1===u&&(u=i.push(o)-1,a[u]={}),void 0!==a[u]&&void 0!==a[u][r]?n=a[u][r]:(n=a[u][r]=l(),"prepend"===r?o.insertBefore(n,o.childNodes[0]):o.appendChild(n)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),n.styleSheet?n.styleSheet.cssText+=e:n.textContent+=e,n}var c=u;function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){0}function p(e,t){h(e,"[@ant-design/icons-vue] ".concat(t))}function v(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function g(e,t,n){return n?(0,r.h)(e.tag,f({key:t},n,e.attrs),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):(0,r.h)(e.tag,f({key:t},e.attrs),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function m(e){return(0,o.cM)(e)[0]}function y(e){return e?Array.isArray(e)?e:[e]:[]}var b="\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n",w=!1,A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b;(0,r.dY)((function(){w||("undefined"!==typeof window&&window.document&&window.document.documentElement&&c(e,{prepend:!0}),w=!0)}))},x=["icon","primaryColor","secondaryColor"];function C(e,t){if(null==e)return{};var n,r,o=S(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){k(e,t,n[t])}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function O(e){var t=e.primaryColor,n=e.secondaryColor;E.primaryColor=t,E.secondaryColor=n||m(t),E.calculated=!!n}function F(){return _({},E)}var T=function(e,t){var n=_({},e,t.attrs),r=n.icon,o=n.primaryColor,i=n.secondaryColor,a=C(n,x),s=E;if(o&&(s={primaryColor:o,secondaryColor:i||m(o)}),A(),p(v(r),"icon should be icon definiton, but got ".concat(r)),!v(r))return null;var l=r;return l&&"function"===typeof l.icon&&(l=_({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),g(l.icon,"svg-".concat(l.name),_({},a,{"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};T.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},T.inheritAttrs=!1,T.displayName="IconBase",T.getTwoToneColors=F,T.setTwoToneColors=O;var P=T;function N(e,t){return j(e)||R(e,t)||L(e,t)||M()}function M(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L(e,t){if(e){if("string"===typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function j(e){if(Array.isArray(e))return e}function D(e){var t=y(e),n=N(t,2),r=n[0],o=n[1];return P.setTwoToneColors({primaryColor:r,secondaryColor:o})}function B(){var e=P.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var W=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function z(e,t){return q(e)||H(e,t)||K(e,t)||U()}function U(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,t){if(e){if("string"===typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(i.push(r.value),t&&i.length===t)break}catch(l){s=!0,o=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}return i}}function q(e){if(Array.isArray(e))return e}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Y(e,t,n[t])}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e,t){if(null==e)return{};var n,r,o=X(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function X(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}D("#1890ff");var J=function(e,t){var n,o=G({},e,t.attrs),i=o["class"],a=o.icon,s=o.spin,l=o.rotate,u=o.tabindex,c=o.twoToneColor,f=o.onClick,d=$(o,W),h=(n={anticon:!0},Y(n,"anticon-".concat(a.name),Boolean(a.name)),Y(n,i,i),n),p=""===s||s||"loading"===a.name?"anticon-spin":"",v=u;void 0===v&&f&&(v=-1,d.tabindex=v);var g=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=y(c),b=z(m,2),w=b[0],A=b[1];return(0,r.bF)("span",G({role:"img","aria-label":a.name},d,{onClick:f,class:h}),[(0,r.bF)(P,{class:p,icon:a,primaryColor:w,secondaryColor:A,style:g},null)])};J.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},J.displayName="AntdIcon",J.inheritAttrs=!1,J.getTwoToneColor=B,J.setTwoToneColor=D;var Q=J},38068:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="CheckCircleFilled",u.inheritAttrs=!1;var c=u},48469:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="CheckCircleOutlined",u.inheritAttrs=!1;var c=u},95540:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="CloseCircleFilled",u.inheritAttrs=!1;var c=u},65653:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="CloseCircleOutlined",u.inheritAttrs=!1;var c=u},86354:function(e,t,n){"use strict";var r=n(29726),o=n(94619),i=n(27620);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){var n=a({},e,t.attrs);return(0,r.bF)(i.A,a({},n,{icon:o.A}),null)};l.displayName="CloseOutlined",l.inheritAttrs=!1,t.A=l},45601:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="ExclamationCircleFilled",u.inheritAttrs=!1;var c=u},39493:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="ExclamationCircleOutlined",u.inheritAttrs=!1;var c=u},47913:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="InfoCircleFilled",u.inheritAttrs=!1;var c=u},99426:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(29726),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},i=o,a=n(27620);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:i}),null)};u.displayName="InfoCircleOutlined",u.inheritAttrs=!1;var c=u},17766:function(e,t,n){"use strict";var r=n(29726),o=n(26211),i=n(27620);function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(e,t){var n=a({},e,t.attrs);return(0,r.bF)(i.A,a({},n,{icon:o.A}),null)};l.displayName="LoadingOutlined",l.inheritAttrs=!1,t.A=l},38075:function(e,t,n){"use strict";var r=n(70453),o=n(10487),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&i(e,".prototype.")>-1?o(n):n}},10487:function(e,t,n){"use strict";var r=n(66743),o=n(70453),i=n(96897),a=n(69675),s=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(l,s),c=n(30655),f=o("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=u(r,l,arguments);return i(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(r,s,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},92151:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},3939:function(e){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}};e.exports=n})()},74353:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",s="day",l="week",u="month",c="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:f,w:l,d:s,D:d,h:a,m:i,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",w={};w[b]=g;var A="$isDayjsObject",x=function(e){return e instanceof k||!(!e||!e[A])},C=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},_=y;_.l=C,_.i=x,_.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return _},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!_.u(t)||t,c=_.p(e),h=function(e,t){var o=_.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(s)},p=function(e,t){return _.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case f:return r?h(1,0):h(31,11);case u:return r?h(1,g):h(0,g+1);case l:var b=this.$locale().weekStart||0,w=(v<b?v+7:v)-b;return h(r?m-w:m+(6-w),g);case s:case d:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case o:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,l=_.p(e),c="set"+(this.$u?"UTC":""),h=(n={},n[s]=c+"Date",n[d]=c+"Date",n[u]=c+"Month",n[f]=c+"FullYear",n[a]=c+"Hours",n[i]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===u||l===f){var v=this.clone().set(d,1);v.$d[h](p),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[_.p(e)]()},m.add=function(r,c){var d,h=this;r=Number(r);var p=_.p(c),v=function(e){var t=S(h);return _.w(t.date(t.date()+Math.round(e*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return v(1);if(p===l)return v(7);var g=(d={},d[i]=t,d[a]=n,d[o]=e,d)[p]||1,m=this.$d.getTime()+r*g;return _.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=_.z(this),i=this.$H,a=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=n.meridiem,f=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},d=function(e){return _.s(i%12||12,e,"0")},p=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(v,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return s+1;case"MM":return _.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,u,3);case"MMMM":return f(u,s);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(n.weekdaysMin,t.$W,l,2);case"ddd":return f(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return _.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return p(i,a,!0);case"A":return p(i,a,!1);case"m":return String(a);case"mm":return _.s(a,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,h){var p,v=this,g=_.p(d),m=S(r),y=(m.utcOffset()-this.utcOffset())*t,b=this-m,w=function(){return _.m(v,m)};switch(g){case f:p=w()/12;break;case u:p=w();break;case c:p=w()/3;break;case l:p=(b-y)/6048e5;break;case s:p=(b-y)/864e5;break;case a:p=b/n;break;case i:p=b/t;break;case o:p=b/e;break;default:p=b}return h?p:_.a(p)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return w[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return _.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),E=k.prototype;return S.prototype=E,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",s],["$M",u],["$y",f],["$D",d]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,k,S),e.$i=!0),S},S.locale=C,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[b],S.Ls=w,S.p={},S}))},97375:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}))},90445:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=c(e,!1)}],a:[o,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,l=0;l<s;l+=1){var u=a[l],c=f[u],d=c&&c[0],h=c&&c[1];a[l]=h?{regex:d,parser:h}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,l=o.parser,u=e.slice(r),c=i.exec(u)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var l=!0===a[2],u=!0===a[3],c=l||u,f=a[2];u&&(f=a[2]),i=this.$locale(),!l&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,f=r.zone,h=new Date,p=a||(o||i?1:h.getDate()),v=o||h.getFullYear(),g=0;o&&!i||(g=i>0?i-1:h.getMonth());var m=s||0,y=l||0,b=u||0,w=c||0;return f?new Date(Date.UTC(v,g,p,m,y,b,w+60*f.offset*1e3)):n?new Date(Date.UTC(v,g,p,m,y,b,w)):new Date(v,g,p,m,y,b,w)}catch(e){return new Date("")}}(t,s,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),c&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){a[1]=s[p-1];var v=n.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===h&&(this.$d=new Date(""))}else o.call(this,e)}}}))},21840:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),s=o(a[t]),l=o(a[n]),u=s||l.map((function(e){return e.slice(0,r)}));if(!i)return u;var c=a.weekStart;return u.map((function(e,t){return u[(t+(c||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}))},41816:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="month",t="quarter";return function(n,r){var o=r.prototype;o.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var i=o.add;o.add=function(n,r){return n=Number(n),this.$utils().p(r)===t?this.add(3*n,e):i.bind(this)(n,r)};var a=o.startOf;o.startOf=function(n,r){var o=this.$utils(),i=!!o.u(r)||r;if(o.p(n)===t){var s=this.quarter()-1;return i?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return a.bind(this)(n,r)}}}))},8134:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var s=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?o(this).startOf("week").week():Math.ceil(l)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}))},28623:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}))},46986:function(e){!function(t,n){e.exports=n()}(0,(function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}))},30041:function(e,t,n){"use strict";var r=n(30655),o=n(58068),i=n(69675),a=n(75795);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new i("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===u&&f?f.configurable:!u,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===l&&f?f.writable:!l});else{if(!c&&(s||l||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},30655:function(e,t,n){"use strict";var r=n(70453),o=r("%Object.defineProperty%",!0)||!1;if(o)try{o({},"a",{value:1})}catch(i){o=!1}e.exports=o},41237:function(e){"use strict";e.exports=EvalError},69383:function(e){"use strict";e.exports=Error},79290:function(e){"use strict";e.exports=RangeError},79538:function(e){"use strict";e.exports=ReferenceError},58068:function(e){"use strict";e.exports=SyntaxError},69675:function(e){"use strict";e.exports=TypeError},35345:function(e){"use strict";e.exports=URIError},3676:function(e,t,n){
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
var r=r||{version:"5.4.0"};if(t.fabric=r,"undefined"!==typeof document&&"undefined"!==typeof window)document instanceof("undefined"!==typeof HTMLDocument?HTMLDocument:Document)?r.document=document:r.document=document.implementation.createHTMLDocument(""),r.window=window;else{var o=n(66574),i=new o.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;r.document=i.document,r.jsdomImplForWrapper=n(2748).implForWrapper,r.nodeCanvas=n(52246).Canvas,r.window=i,DOMParser=r.window.DOMParser}function a(e){var t=e.targetCanvas,n=t.width,r=t.height,o=e.destinationWidth,i=e.destinationHeight;n===o&&r===i||(t.width=o,t.height=i)}function s(e,t){var n=e.canvas,r=t.targetCanvas,o=r.getContext("2d");o.translate(0,r.height),o.scale(1,-1);var i=n.height-r.height;o.drawImage(n,0,i,r.width,r.height,0,0,r.width,r.height)}function l(e,t){var n=t.targetCanvas,r=n.getContext("2d"),o=t.destinationWidth,i=t.destinationHeight,a=o*i*4,s=new Uint8Array(this.imageBuffer,0,a),l=new Uint8ClampedArray(this.imageBuffer,0,a);e.readPixels(0,0,o,i,e.RGBA,e.UNSIGNED_BYTE,s);var u=new ImageData(l,o,i);r.putImageData(u,0,0)}r.isTouchSupported="ontouchstart"in r.window||"ontouchstart"in r.document||r.window&&r.window.navigator&&r.window.navigator.maxTouchPoints>0,r.isLikelyNode="undefined"!==typeof Buffer&&"undefined"===typeof window,r.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],r.DPI=96,r.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",r.commaWsp="(?:\\s+,?\\s*|,\\s*)",r.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/gi,r.reNonWord=/[ \n\.,;!\?\-]/,r.fontPaths={},r.iMatrix=[1,0,0,1,0,0],r.svgNS="http://www.w3.org/2000/svg",r.perfLimitSizeTotal=2097152,r.maxCacheSideLimit=4096,r.minCacheSideLimit=256,r.charWidthsCache={},r.textureSize=2048,r.disableStyleCopyPaste=!1,r.enableGLFiltering=!0,r.devicePixelRatio=r.window.devicePixelRatio||r.window.webkitDevicePixelRatio||r.window.mozDevicePixelRatio||1,r.browserShadowBlurConstant=1,r.arcToSegmentsCache={},r.boundsOfCurveCache={},r.cachesBoundsOfCurve=!0,r.forceGLPutImageData=!1,r.initFilterBackend=function(){return r.enableGLFiltering&&r.isWebglSupported&&r.isWebglSupported(r.textureSize)?new r.WebglFilterBackend({tileSize:r.textureSize}):r.Canvas2dFilterBackend?new r.Canvas2dFilterBackend:void 0},"undefined"!==typeof document&&"undefined"!==typeof window&&(window.fabric=r),function(){function e(e,t){if(this.__eventListeners[e]){var n=this.__eventListeners[e];t?n[n.indexOf(t)]=!1:r.util.array.fill(n,!1)}}function t(e,t){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var n in e)this.on(n,e[n]);else this.__eventListeners[e]||(this.__eventListeners[e]=[]),this.__eventListeners[e].push(t);return this}function n(e,t){var n=function(){t.apply(this,arguments),this.off(e,n)}.bind(this);this.on(e,n)}function o(e,t){if(1===arguments.length)for(var r in e)n.call(this,r,e[r]);else n.call(this,e,t);return this}function i(t,n){if(!this.__eventListeners)return this;if(0===arguments.length)for(t in this.__eventListeners)e.call(this,t);else if(1===arguments.length&&"object"===typeof arguments[0])for(var r in t)e.call(this,r,t[r]);else e.call(this,t,n);return this}function a(e,t){if(!this.__eventListeners)return this;var n=this.__eventListeners[e];if(!n)return this;for(var r=0,o=n.length;r<o;r++)n[r]&&n[r].call(this,t||{});return this.__eventListeners[e]=n.filter((function(e){return!1!==e})),this}r.Observable={fire:a,on:t,once:o,off:i}}(),r.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var e=0,t=arguments.length;e<t;e++)this._onObjectAdded(arguments[e]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(e,t,n){var r=this._objects;return n?r[t]=e:r.splice(t,0,e),this._onObjectAdded&&this._onObjectAdded(e),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var e,t=this._objects,n=!1,r=0,o=arguments.length;r<o;r++)e=t.indexOf(arguments[r]),-1!==e&&(n=!0,t.splice(e,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[r]));return this.renderOnAddRemove&&n&&this.requestRenderAll(),this},forEachObject:function(e,t){for(var n=this.getObjects(),r=0,o=n.length;r<o;r++)e.call(t,n[r],r,n);return this},getObjects:function(e){return"undefined"===typeof e?this._objects.concat():this._objects.filter((function(t){return t.type===e}))},item:function(e){return this._objects[e]},isEmpty:function(){return 0===this._objects.length},size:function(){return this._objects.length},contains:function(e,t){return this._objects.indexOf(e)>-1||!!t&&this._objects.some((function(t){return"function"===typeof t.contains&&t.contains(e,!0)}))},complexity:function(){return this._objects.reduce((function(e,t){return e+=t.complexity?t.complexity():0,e}),0)}},r.CommonMethods={_setOptions:function(e){for(var t in e)this.set(t,e[t])},_initGradient:function(e,t){!e||!e.colorStops||e instanceof r.Gradient||this.set(t,new r.Gradient(e))},_initPattern:function(e,t,n){!e||!e.source||e instanceof r.Pattern?n&&n():this.set(t,new r.Pattern(e,n))},_setObject:function(e){for(var t in e)this._set(t,e[t])},set:function(e,t){return"object"===typeof e?this._setObject(e):this._set(e,t),this},_set:function(e,t){this[e]=t},toggle:function(e){var t=this.get(e);return"boolean"===typeof t&&this.set(e,!t),this},get:function(e){return this[e]}},function(e){var t=Math.sqrt,n=Math.atan2,o=Math.pow,i=Math.PI/180,a=Math.PI/2;r.util={cos:function(e){if(0===e)return 1;e<0&&(e=-e);var t=e/a;switch(t){case 1:case 3:return 0;case 2:return-1}return Math.cos(e)},sin:function(e){if(0===e)return 0;var t=e/a,n=1;switch(e<0&&(n=-1),t){case 1:return n;case 2:return 0;case 3:return-n}return Math.sin(e)},removeFromArray:function(e,t){var n=e.indexOf(t);return-1!==n&&e.splice(n,1),e},getRandomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e},degreesToRadians:function(e){return e*i},radiansToDegrees:function(e){return e/i},rotatePoint:function(e,t,n){var o=new r.Point(e.x-t.x,e.y-t.y),i=r.util.rotateVector(o,n);return new r.Point(i.x,i.y).addEquals(t)},rotateVector:function(e,t){var n=r.util.sin(t),o=r.util.cos(t),i=e.x*o-e.y*n,a=e.x*n+e.y*o;return{x:i,y:a}},createVector:function(e,t){return new r.Point(t.x-e.x,t.y-e.y)},calcAngleBetweenVectors:function(e,t){return Math.acos((e.x*t.x+e.y*t.y)/(Math.hypot(e.x,e.y)*Math.hypot(t.x,t.y)))},getHatVector:function(e){return new r.Point(e.x,e.y).multiply(1/Math.hypot(e.x,e.y))},getBisector:function(e,t,n){var o=r.util.createVector(e,t),i=r.util.createVector(e,n),a=r.util.calcAngleBetweenVectors(o,i),s=r.util.calcAngleBetweenVectors(r.util.rotateVector(o,a),i),l=a*(0===s?1:-1)/2;return{vector:r.util.getHatVector(r.util.rotateVector(o,l)),angle:a}},projectStrokeOnPoints:function(e,t,n){var o=[],i=t.strokeWidth/2,a=t.strokeUniform?new r.Point(1/t.scaleX,1/t.scaleY):new r.Point(1,1),s=function(e){var t=i/Math.hypot(e.x,e.y);return new r.Point(e.x*t*a.x,e.y*t*a.y)};return e.length<=1||e.forEach((function(l,u){var c,f,d=new r.Point(l.x,l.y);0===u?(f=e[u+1],c=n?s(r.util.createVector(f,d)).addEquals(d):e[e.length-1]):u===e.length-1?(c=e[u-1],f=n?s(r.util.createVector(c,d)).addEquals(d):e[0]):(c=e[u-1],f=e[u+1]);var h,p,v=r.util.getBisector(d,c,f),g=v.vector,m=v.angle;if("miter"===t.strokeLineJoin&&(h=-i/Math.sin(m/2),p=new r.Point(g.x*h*a.x,g.y*h*a.y),Math.hypot(p.x,p.y)/i<=t.strokeMiterLimit))return o.push(d.add(p)),void o.push(d.subtract(p));h=-i*Math.SQRT2,p=new r.Point(g.x*h*a.x,g.y*h*a.y),o.push(d.add(p)),o.push(d.subtract(p))})),o},transformPoint:function(e,t,n){return n?new r.Point(t[0]*e.x+t[2]*e.y,t[1]*e.x+t[3]*e.y):new r.Point(t[0]*e.x+t[2]*e.y+t[4],t[1]*e.x+t[3]*e.y+t[5])},makeBoundingBoxFromPoints:function(e,t){if(t)for(var n=0;n<e.length;n++)e[n]=r.util.transformPoint(e[n],t);var o=[e[0].x,e[1].x,e[2].x,e[3].x],i=r.util.array.min(o),a=r.util.array.max(o),s=a-i,l=[e[0].y,e[1].y,e[2].y,e[3].y],u=r.util.array.min(l),c=r.util.array.max(l),f=c-u;return{left:i,top:u,width:s,height:f}},invertTransform:function(e){var t=1/(e[0]*e[3]-e[1]*e[2]),n=[t*e[3],-t*e[1],-t*e[2],t*e[0]],o=r.util.transformPoint({x:e[4],y:e[5]},n,!0);return n[4]=-o.x,n[5]=-o.y,n},toFixed:function(e,t){return parseFloat(Number(e).toFixed(t))},parseUnit:function(e,t){var n=/\D{0,2}$/.exec(e),o=parseFloat(e);switch(t||(t=r.Text.DEFAULT_SVG_FONT_SIZE),n[0]){case"mm":return o*r.DPI/25.4;case"cm":return o*r.DPI/2.54;case"in":return o*r.DPI;case"pt":return o*r.DPI/72;case"pc":return o*r.DPI/72*12;case"em":return o*t;default:return o}},falseFunction:function(){return!1},getKlass:function(e,t){return e=r.util.string.camelize(e.charAt(0).toUpperCase()+e.slice(1)),r.util.resolveNamespace(t)[e]},getSvgAttributes:function(e){var t=["instantiated_by_use","style","id","class"];switch(e){case"linearGradient":t=t.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":t=t.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":t=t.concat(["offset","stop-color","stop-opacity"]);break}return t},resolveNamespace:function(t){if(!t)return r;var n,o=t.split("."),i=o.length,a=e||r.window;for(n=0;n<i;++n)a=a[o[n]];return a},loadImage:function(e,t,n,o){if(e){var i=r.util.createImage(),a=function(){t&&t.call(n,i,!1),i=i.onload=i.onerror=null};i.onload=a,i.onerror=function(){r.log("Error loading "+i.src),t&&t.call(n,null,!0),i=i.onload=i.onerror=null},0!==e.indexOf("data")&&void 0!==o&&null!==o&&(i.crossOrigin=o),"data:image/svg"===e.substring(0,14)&&(i.onload=null,r.util.loadImageInDom(i,a)),i.src=e}else t&&t.call(n,e)},loadImageInDom:function(e,t){var n=r.document.createElement("div");n.style.width=n.style.height="1px",n.style.left=n.style.top="-100%",n.style.position="absolute",n.appendChild(e),r.document.querySelector("body").appendChild(n),e.onload=function(){t(),n.parentNode.removeChild(n),n=null}},enlivenObjects:function(e,t,n,o){e=e||[];var i=[],a=0,s=e.length;function l(){++a===s&&t&&t(i.filter((function(e){return e})))}s?e.forEach((function(e,t){if(e&&e.type){var a=r.util.getKlass(e.type,n);a.fromObject(e,(function(n,r){r||(i[t]=n),o&&o(e,n,r),l()}))}else l()})):t&&t(i)},enlivenObjectEnlivables:function(e,t,n){var o=r.Object.ENLIVEN_PROPS.filter((function(t){return!!e[t]}));r.util.enlivenObjects(o.map((function(t){return e[t]})),(function(e){var r={};o.forEach((function(n,o){r[n]=e[o],t&&(t[n]=e[o])})),n&&n(r)}))},enlivenPatterns:function(e,t){function n(){++i===a&&t&&t(o)}e=e||[];var o=[],i=0,a=e.length;a?e.forEach((function(e,t){e&&e.source?new r.Pattern(e,(function(e){o[t]=e,n()})):(o[t]=e,n())})):t&&t(o)},groupSVGElements:function(e,t,n){var o;return e&&1===e.length?("undefined"!==typeof n&&(e[0].sourcePath=n),e[0]):(t&&(t.width&&t.height?t.centerPoint={x:t.width/2,y:t.height/2}:(delete t.width,delete t.height)),o=new r.Group(e,t),"undefined"!==typeof n&&(o.sourcePath=n),o)},populateWithProperties:function(e,t,n){if(n&&Array.isArray(n))for(var r=0,o=n.length;r<o;r++)n[r]in e&&(t[n[r]]=e[n[r]])},createCanvasElement:function(){return r.document.createElement("canvas")},copyCanvasElement:function(e){var t=r.util.createCanvasElement();return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0),t},toDataURL:function(e,t,n){return e.toDataURL("image/"+t,n)},createImage:function(){return r.document.createElement("img")},multiplyTransformMatrices:function(e,t,n){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],n?0:e[0]*t[4]+e[2]*t[5]+e[4],n?0:e[1]*t[4]+e[3]*t[5]+e[5]]},qrDecompose:function(e){var r=n(e[1],e[0]),a=o(e[0],2)+o(e[1],2),s=t(a),l=(e[0]*e[3]-e[2]*e[1])/s,u=n(e[0]*e[2]+e[1]*e[3],a);return{angle:r/i,scaleX:s,scaleY:l,skewX:u/i,skewY:0,translateX:e[4],translateY:e[5]}},calcRotateMatrix:function(e){if(!e.angle)return r.iMatrix.concat();var t=r.util.degreesToRadians(e.angle),n=r.util.cos(t),o=r.util.sin(t);return[n,o,-o,n,0,0]},calcDimensionsMatrix:function(e){var t="undefined"===typeof e.scaleX?1:e.scaleX,n="undefined"===typeof e.scaleY?1:e.scaleY,o=[e.flipX?-t:t,0,0,e.flipY?-n:n,0,0],i=r.util.multiplyTransformMatrices,a=r.util.degreesToRadians;return e.skewX&&(o=i(o,[1,0,Math.tan(a(e.skewX)),1],!0)),e.skewY&&(o=i(o,[1,Math.tan(a(e.skewY)),0,1],!0)),o},composeMatrix:function(e){var t=[1,0,0,1,e.translateX||0,e.translateY||0],n=r.util.multiplyTransformMatrices;return e.angle&&(t=n(t,r.util.calcRotateMatrix(e))),(1!==e.scaleX||1!==e.scaleY||e.skewX||e.skewY||e.flipX||e.flipY)&&(t=n(t,r.util.calcDimensionsMatrix(e))),t},resetObjectTransform:function(e){e.scaleX=1,e.scaleY=1,e.skewX=0,e.skewY=0,e.flipX=!1,e.flipY=!1,e.rotate(0)},saveObjectTransform:function(e){return{scaleX:e.scaleX,scaleY:e.scaleY,skewX:e.skewX,skewY:e.skewY,angle:e.angle,left:e.left,flipX:e.flipX,flipY:e.flipY,top:e.top}},isTransparent:function(e,t,n,r){r>0&&(t>r?t-=r:t=0,n>r?n-=r:n=0);var o,i,a=!0,s=e.getImageData(t,n,2*r||1,2*r||1),l=s.data.length;for(o=3;o<l;o+=4)if(i=s.data[o],a=i<=0,!1===a)break;return s=null,a},parsePreserveAspectRatioAttribute:function(e){var t,n="meet",r="Mid",o="Mid",i=e.split(" ");return i&&i.length&&(n=i.pop(),"meet"!==n&&"slice"!==n?(t=n,n="meet"):i.length&&(t=i.pop())),r="none"!==t?t.slice(1,4):"none",o="none"!==t?t.slice(5,8):"none",{meetOrSlice:n,alignX:r,alignY:o}},clearFabricFontCache:function(e){e=(e||"").toLowerCase(),e?r.charWidthsCache[e]&&delete r.charWidthsCache[e]:r.charWidthsCache={}},limitDimsByArea:function(e,t){var n=Math.sqrt(t*e),r=Math.floor(t/n);return{x:Math.floor(n),y:r}},capValue:function(e,t,n){return Math.max(e,Math.min(t,n))},findScaleToFit:function(e,t){return Math.min(t.width/e.width,t.height/e.height)},findScaleToCover:function(e,t){return Math.max(t.width/e.width,t.height/e.height)},matrixToSVG:function(e){return"matrix("+e.map((function(e){return r.util.toFixed(e,r.Object.NUM_FRACTION_DIGITS)})).join(" ")+")"},removeTransformFromObject:function(e,t){var n=r.util.invertTransform(t),o=r.util.multiplyTransformMatrices(n,e.calcOwnMatrix());r.util.applyTransformToObject(e,o)},addTransformToObject:function(e,t){r.util.applyTransformToObject(e,r.util.multiplyTransformMatrices(t,e.calcOwnMatrix()))},applyTransformToObject:function(e,t){var n=r.util.qrDecompose(t),o=new r.Point(n.translateX,n.translateY);e.flipX=!1,e.flipY=!1,e.set("scaleX",n.scaleX),e.set("scaleY",n.scaleY),e.skewX=n.skewX,e.skewY=n.skewY,e.angle=n.angle,e.setPositionByOrigin(o,"center","center")},sizeAfterTransform:function(e,t,n){var o=e/2,i=t/2,a=[{x:-o,y:-i},{x:o,y:-i},{x:-o,y:i},{x:o,y:i}],s=r.util.calcDimensionsMatrix(n),l=r.util.makeBoundingBoxFromPoints(a,s);return{x:l.width,y:l.height}},mergeClipPaths:function(e,t){var n=e,o=t;n.inverted&&!o.inverted&&(n=t,o=e),r.util.applyTransformToObject(o,r.util.multiplyTransformMatrices(r.util.invertTransform(n.calcTransformMatrix()),o.calcTransformMatrix()));var i=n.inverted&&o.inverted;return i&&(n.inverted=o.inverted=!1),new r.Group([n],{clipPath:o,inverted:i})},hasStyleChanged:function(e,t,n){return n=n||!1,e.fill!==t.fill||e.stroke!==t.stroke||e.strokeWidth!==t.strokeWidth||e.fontSize!==t.fontSize||e.fontFamily!==t.fontFamily||e.fontWeight!==t.fontWeight||e.fontStyle!==t.fontStyle||e.textBackgroundColor!==t.textBackgroundColor||e.deltaY!==t.deltaY||n&&(e.overline!==t.overline||e.underline!==t.underline||e.linethrough!==t.linethrough)},stylesToArray:function(e,t){e=r.util.object.clone(e,!0);for(var n=t.split("\n"),o=-1,i={},a=[],s=0;s<n.length;s++)if(e[s])for(var l=0;l<n[s].length;l++){o++;var u=e[s][l];if(u&&Object.keys(u).length>0){var c=r.util.hasStyleChanged(i,u,!0);c?a.push({start:o,end:o+1,style:u}):a[a.length-1].end++}i=u||{}}else o+=n[s].length;return a},stylesFromArray:function(e,t){if(!Array.isArray(e))return e;for(var n=t.split("\n"),r=-1,o=0,i={},a=0;a<n.length;a++)for(var s=0;s<n[a].length;s++)r++,e[o]&&e[o].start<=r&&r<e[o].end&&(i[a]=i[a]||{},i[a][s]=Object.assign({},e[o].style),r===e[o].end-1&&o++);return i}}}(t),function(){var e=Array.prototype.join,t={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},n={m:"l",M:"L"};function o(e,t,n,o,i,a,s,l,u,c,f){var d=r.util.cos(e),h=r.util.sin(e),p=r.util.cos(t),v=r.util.sin(t),g=n*i*p-o*a*v+s,m=o*i*p+n*a*v+l,y=c+u*(-n*i*h-o*a*d),b=f+u*(-o*i*h+n*a*d),w=g+u*(n*i*v+o*a*p),A=m+u*(o*i*v-n*a*p);return["C",y,b,w,A,g,m]}function i(e,t,n,i,s,l,u){var c=Math.PI,f=u*c/180,d=r.util.sin(f),h=r.util.cos(f),p=0,v=0;n=Math.abs(n),i=Math.abs(i);var g=-h*e*.5-d*t*.5,m=-h*t*.5+d*e*.5,y=n*n,b=i*i,w=m*m,A=g*g,x=y*b-y*w-b*A,C=0;if(x<0){var S=Math.sqrt(1-x/(y*b));n*=S,i*=S}else C=(s===l?-1:1)*Math.sqrt(x/(y*w+b*A));var _=C*n*m/i,k=-C*i*g/n,E=h*_-d*k+.5*e,O=d*_+h*k+.5*t,F=a(1,0,(g-_)/n,(m-k)/i),T=a((g-_)/n,(m-k)/i,(-g-_)/n,(-m-k)/i);0===l&&T>0?T-=2*c:1===l&&T<0&&(T+=2*c);for(var P=Math.ceil(Math.abs(T/c*2)),N=[],M=T/P,L=8/3*Math.sin(M/4)*Math.sin(M/4)/Math.sin(M/2),I=F+M,R=0;R<P;R++)N[R]=o(F,I,h,d,n,i,E,O,L,p,v),p=N[R][5],v=N[R][6],F=I,I+=M;return N}function a(e,t,n,r){var o=Math.atan2(t,e),i=Math.atan2(r,n);return i>=o?i-o:2*Math.PI-(o-i)}function s(t,n,o,i,a,s,l,u){var c;if(r.cachesBoundsOfCurve&&(c=e.call(arguments),r.boundsOfCurveCache[c]))return r.boundsOfCurveCache[c];var f,d,h,p,v,g,m,y,b=Math.sqrt,w=Math.min,A=Math.max,x=Math.abs,C=[],S=[[],[]];d=6*t-12*o+6*a,f=-3*t+9*o-9*a+3*l,h=3*o-3*t;for(var _=0;_<2;++_)if(_>0&&(d=6*n-12*i+6*s,f=-3*n+9*i-9*s+3*u,h=3*i-3*n),x(f)<1e-12){if(x(d)<1e-12)continue;p=-h/d,0<p&&p<1&&C.push(p)}else m=d*d-4*h*f,m<0||(y=b(m),v=(-d+y)/(2*f),0<v&&v<1&&C.push(v),g=(-d-y)/(2*f),0<g&&g<1&&C.push(g));var k,E,O,F=C.length,T=F;while(F--)p=C[F],O=1-p,k=O*O*O*t+3*O*O*p*o+3*O*p*p*a+p*p*p*l,S[0][F]=k,E=O*O*O*n+3*O*O*p*i+3*O*p*p*s+p*p*p*u,S[1][F]=E;S[0][T]=t,S[1][T]=n,S[0][T+1]=l,S[1][T+1]=u;var P=[{x:w.apply(null,S[0]),y:w.apply(null,S[1])},{x:A.apply(null,S[0]),y:A.apply(null,S[1])}];return r.cachesBoundsOfCurve&&(r.boundsOfCurveCache[c]=P),P}function l(e,t,n){for(var r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],u=n[6],c=n[7],f=i(u-e,c-t,r,o,s,l,a),d=0,h=f.length;d<h;d++)f[d][1]+=e,f[d][2]+=t,f[d][3]+=e,f[d][4]+=t,f[d][5]+=e,f[d][6]+=t;return f}function u(e){var t,n,r,o,i,a,s=0,u=0,c=e.length,f=0,d=0,h=[];for(n=0;n<c;++n){switch(r=!1,t=e[n].slice(0),t[0]){case"l":t[0]="L",t[1]+=s,t[2]+=u;case"L":s=t[1],u=t[2];break;case"h":t[1]+=s;case"H":t[0]="L",t[2]=u,s=t[1];break;case"v":t[1]+=u;case"V":t[0]="L",u=t[1],t[1]=s,t[2]=u;break;case"m":t[0]="M",t[1]+=s,t[2]+=u;case"M":s=t[1],u=t[2],f=t[1],d=t[2];break;case"c":t[0]="C",t[1]+=s,t[2]+=u,t[3]+=s,t[4]+=u,t[5]+=s,t[6]+=u;case"C":i=t[3],a=t[4],s=t[5],u=t[6];break;case"s":t[0]="S",t[1]+=s,t[2]+=u,t[3]+=s,t[4]+=u;case"S":"C"===o?(i=2*s-i,a=2*u-a):(i=s,a=u),s=t[3],u=t[4],t[0]="C",t[5]=t[3],t[6]=t[4],t[3]=t[1],t[4]=t[2],t[1]=i,t[2]=a,i=t[3],a=t[4];break;case"q":t[0]="Q",t[1]+=s,t[2]+=u,t[3]+=s,t[4]+=u;case"Q":i=t[1],a=t[2],s=t[3],u=t[4];break;case"t":t[0]="T",t[1]+=s,t[2]+=u;case"T":"Q"===o?(i=2*s-i,a=2*u-a):(i=s,a=u),t[0]="Q",s=t[1],u=t[2],t[1]=i,t[2]=a,t[3]=s,t[4]=u;break;case"a":t[0]="A",t[6]+=s,t[7]+=u;case"A":r=!0,h=h.concat(l(s,u,t)),s=t[6],u=t[7];break;case"z":case"Z":s=f,u=d;break;default:}r||h.push(t),o=t[0]}return h}function c(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}function f(e){return e*e*e}function d(e){return 3*e*e*(1-e)}function h(e){return 3*e*(1-e)*(1-e)}function p(e){return(1-e)*(1-e)*(1-e)}function v(e,t,n,r,o,i,a,s){return function(l){var u=f(l),c=d(l),v=h(l),g=p(l);return{x:a*u+o*c+n*v+e*g,y:s*u+i*c+r*v+t*g}}}function g(e,t,n,r,o,i,a,s){return function(l){var u=1-l,c=3*u*u*(n-e)+6*u*l*(o-n)+3*l*l*(a-o),f=3*u*u*(r-t)+6*u*l*(i-r)+3*l*l*(s-i);return Math.atan2(f,c)}}function m(e){return e*e}function y(e){return 2*e*(1-e)}function b(e){return(1-e)*(1-e)}function w(e,t,n,r,o,i){return function(a){var s=m(a),l=y(a),u=b(a);return{x:o*s+n*l+e*u,y:i*s+r*l+t*u}}}function A(e,t,n,r,o,i){return function(a){var s=1-a,l=2*s*(n-e)+2*a*(o-n),u=2*s*(r-t)+2*a*(i-r);return Math.atan2(u,l)}}function x(e,t,n){var r,o,i={x:t,y:n},a=0;for(o=1;o<=100;o+=1)r=e(o/100),a+=c(i.x,i.y,r.x,r.y),i=r;return a}function C(e,t){var n,r,o,i=0,a=0,s=e.iterator,l={x:e.x,y:e.y},u=.01,f=e.angleFinder;while(a<t&&u>1e-4)n=s(i),o=i,r=c(l.x,l.y,n.x,n.y),r+a>t?(i-=u,u/=2):(l=n,i+=u,a+=r);return n.angle=f(o),n}function S(e){for(var t,n,r,o,i=0,a=e.length,s=0,l=0,u=0,f=0,d=[],h=0;h<a;h++){switch(t=e[h],r={x:s,y:l,command:t[0]},t[0]){case"M":r.length=0,u=s=t[1],f=l=t[2];break;case"L":r.length=c(s,l,t[1],t[2]),s=t[1],l=t[2];break;case"C":n=v(s,l,t[1],t[2],t[3],t[4],t[5],t[6]),o=g(s,l,t[1],t[2],t[3],t[4],t[5],t[6]),r.iterator=n,r.angleFinder=o,r.length=x(n,s,l),s=t[5],l=t[6];break;case"Q":n=w(s,l,t[1],t[2],t[3],t[4]),o=A(s,l,t[1],t[2],t[3],t[4]),r.iterator=n,r.angleFinder=o,r.length=x(n,s,l),s=t[3],l=t[4];break;case"Z":case"z":r.destX=u,r.destY=f,r.length=c(s,l,u,f),s=u,l=f;break}i+=r.length,d.push(r)}return d.push({length:i,x:s,y:l}),d}function _(e,t,n){n||(n=S(e));var o=0;while(t-n[o].length>0&&o<n.length-2)t-=n[o].length,o++;var i,a=n[o],s=t/a.length,l=a.command,u=e[o];switch(l){case"M":return{x:a.x,y:a.y,angle:0};case"Z":case"z":return i=new r.Point(a.x,a.y).lerp(new r.Point(a.destX,a.destY),s),i.angle=Math.atan2(a.destY-a.y,a.destX-a.x),i;case"L":return i=new r.Point(a.x,a.y).lerp(new r.Point(u[1],u[2]),s),i.angle=Math.atan2(u[2]-a.y,u[1]-a.x),i;case"C":return C(a,t);case"Q":return C(a,t)}}function k(e){var o,i,a,s,l,u=[],c=[],f=r.rePathCommand,d="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",h="("+d+")"+r.commaWsp,p="([01])"+r.commaWsp+"?",v=h+"?"+h+"?"+h+p+p+h+"?("+d+")",g=new RegExp(v,"g");if(!e||!e.match)return u;l=e.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var m,y=0,b=l.length;y<b;y++){o=l[y],s=o.slice(1).trim(),c.length=0;var w=o.charAt(0);if(m=[w],"a"===w.toLowerCase())for(var A;A=g.exec(s);)for(var x=1;x<A.length;x++)c.push(A[x]);else while(a=f.exec(s))c.push(a[0]);x=0;for(var C=c.length;x<C;x++)i=parseFloat(c[x]),isNaN(i)||m.push(i);var S=t[w.toLowerCase()],_=n[w]||w;if(m.length-1>S)for(var k=1,E=m.length;k<E;k+=S)u.push([w].concat(m.slice(k,k+S))),w=_;else u.push(m)}return u}function E(e,t){var n,o=[],i=new r.Point(e[0].x,e[0].y),a=new r.Point(e[1].x,e[1].y),s=e.length,l=1,u=0,c=s>2;for(t=t||0,c&&(l=e[2].x<a.x?-1:e[2].x===a.x?0:1,u=e[2].y<a.y?-1:e[2].y===a.y?0:1),o.push(["M",i.x-l*t,i.y-u*t]),n=1;n<s;n++){if(!i.eq(a)){var f=i.midPointFrom(a);o.push(["Q",i.x,i.y,f.x,f.y])}i=e[n],n+1<e.length&&(a=e[n+1])}return c&&(l=i.x>e[n-2].x?1:i.x===e[n-2].x?0:-1,u=i.y>e[n-2].y?1:i.y===e[n-2].y?0:-1),o.push(["L",i.x+l*t,i.y+u*t]),o}function O(e,t,n){return n&&(t=r.util.multiplyTransformMatrices(t,[1,0,0,1,-n.x,-n.y])),e.map((function(e){for(var n=e.slice(0),o={},i=1;i<e.length-1;i+=2)o.x=e[i],o.y=e[i+1],o=r.util.transformPoint(o,t),n[i]=o.x,n[i+1]=o.y;return n}))}r.util.joinPath=function(e){return e.map((function(e){return e.join(" ")})).join(" ")},r.util.parsePath=k,r.util.makePathSimpler=u,r.util.getSmoothPathFromPoints=E,r.util.getPathSegmentsInfo=S,r.util.getBoundsOfCurve=s,r.util.getPointOnPath=_,r.util.transformPath=O}(),function(){var e=Array.prototype.slice;function t(t,n){for(var r=e.call(arguments,2),o=[],i=0,a=t.length;i<a;i++)o[i]=r.length?t[i][n].apply(t[i],r):t[i][n].call(t[i]);return o}function n(e,t){return a(e,t,(function(e,t){return e>=t}))}function o(e,t){return a(e,t,(function(e,t){return e<t}))}function i(e,t){var n=e.length;while(n--)e[n]=t;return e}function a(e,t,n){if(e&&0!==e.length){var r=e.length-1,o=t?e[r][t]:e[r];if(t)while(r--)n(e[r][t],o)&&(o=e[r][t]);else while(r--)n(e[r],o)&&(o=e[r]);return o}}r.util.array={fill:i,invoke:t,min:o,max:n}}(),function(){function e(t,n,o){if(o)if(!r.isLikelyNode&&n instanceof Element)t=n;else if(n instanceof Array){t=[];for(var i=0,a=n.length;i<a;i++)t[i]=e({},n[i],o)}else if(n&&"object"===typeof n)for(var s in n)"canvas"===s||"group"===s?t[s]=null:n.hasOwnProperty(s)&&(t[s]=e({},n[s],o));else t=n;else for(var s in n)t[s]=n[s];return t}function t(t,n){return e({},t,n)}r.util.object={extend:e,clone:t},r.util.object.extend(r.util,r.Observable)}(),function(){function e(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))}function t(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())}function n(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function o(e){var t,n=0,r=[];for(n=0,t;n<e.length;n++)!1!==(t=i(e,n))&&r.push(t);return r}function i(e,t){var n=e.charCodeAt(t);if(isNaN(n))return"";if(n<55296||n>57343)return e.charAt(t);if(55296<=n&&n<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var r=e.charCodeAt(t+1);if(56320>r||r>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var o=e.charCodeAt(t-1);if(55296>o||o>56319)throw"Low surrogate without preceding high surrogate";return!1}r.util.string={camelize:e,capitalize:t,escapeXml:n,graphemeSplit:o}}(),function(){var e=Array.prototype.slice,t=function(){},n=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}(),o=function(e,t,r){for(var o in t)o in e.prototype&&"function"===typeof e.prototype[o]&&(t[o]+"").indexOf("callSuper")>-1?e.prototype[o]=function(e){return function(){var n=this.constructor.superclass;this.constructor.superclass=r;var o=t[e].apply(this,arguments);if(this.constructor.superclass=n,"initialize"!==e)return o}}(o):e.prototype[o]=t[o],n&&(t.toString!==Object.prototype.toString&&(e.prototype.toString=t.toString),t.valueOf!==Object.prototype.valueOf&&(e.prototype.valueOf=t.valueOf))};function i(){}function a(t){var n=null,r=this;while(r.constructor.superclass){var o=r.constructor.superclass.prototype[t];if(r[t]!==o){n=o;break}r=r.constructor.superclass.prototype}if(n)return arguments.length>1?n.apply(this,e.call(arguments,1)):n.call(this)}function s(){var n=null,r=e.call(arguments,0);function s(){this.initialize.apply(this,arguments)}"function"===typeof r[0]&&(n=r.shift()),s.superclass=n,s.subclasses=[],n&&(i.prototype=n.prototype,s.prototype=new i,n.subclasses.push(s));for(var l=0,u=r.length;l<u;l++)o(s,r[l],n);return s.prototype.initialize||(s.prototype.initialize=t),s.prototype.constructor=s,s.prototype.callSuper=a,s}r.util.createClass=s}(),function(){var e=!!r.document.createElement("div").attachEvent,t=["touchstart","touchmove","touchend"];function n(e){var t=e.changedTouches;return t&&t[0]?t[0]:e}r.util.addListener=function(t,n,r,o){t&&t.addEventListener(n,r,!e&&o)},r.util.removeListener=function(t,n,r,o){t&&t.removeEventListener(n,r,!e&&o)},r.util.getPointer=function(e){var t=e.target,o=r.util.getScrollLeftTop(t),i=n(e);return{x:i.clientX+o.left,y:i.clientY+o.top}},r.util.isTouchEvent=function(e){return t.indexOf(e.type)>-1||"touch"===e.pointerType}}(),function(){function e(e,t){var n=e.style;if(!n)return e;if("string"===typeof t)return e.style.cssText+=";"+t,t.indexOf("opacity")>-1?a(e,t.match(/opacity:\s*(\d?\.?\d*)/)[1]):e;for(var r in t)if("opacity"===r)a(e,t[r]);else{var o="float"===r||"cssFloat"===r?"undefined"===typeof n.styleFloat?"cssFloat":"styleFloat":r;n.setProperty(o,t[r])}return e}var t=r.document.createElement("div"),n="string"===typeof t.style.opacity,o="string"===typeof t.style.filter,i=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,a=function(e){return e};n?a=function(e,t){return e.style.opacity=t,e}:o&&(a=function(e,t){var n=e.style;return e.currentStyle&&!e.currentStyle.hasLayout&&(n.zoom=1),i.test(n.filter)?(t=t>=.9999?"":"alpha(opacity="+100*t+")",n.filter=n.filter.replace(i,t)):n.filter+=" alpha(opacity="+100*t+")",e}),r.util.setStyle=e}(),function(){var e=Array.prototype.slice;function t(e){return"string"===typeof e?r.document.getElementById(e):e}var n,o,i=function(t){return e.call(t,0)};try{n=i(r.document.childNodes)instanceof Array}catch(p){}function a(e,t){var n=r.document.createElement(e);for(var o in t)"class"===o?n.className=t[o]:"for"===o?n.htmlFor=t[o]:n.setAttribute(o,t[o]);return n}function s(e,t){e&&-1===(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className+=(e.className?" ":"")+t)}function l(e,t,n){return"string"===typeof t&&(t=a(t,n)),e.parentNode&&e.parentNode.replaceChild(t,e),t.appendChild(e),t}function u(e){var t=0,n=0,o=r.document.documentElement,i=r.document.body||{scrollLeft:0,scrollTop:0};while(e&&(e.parentNode||e.host))if(e=e.parentNode||e.host,e===r.document?(t=i.scrollLeft||o.scrollLeft||0,n=i.scrollTop||o.scrollTop||0):(t+=e.scrollLeft||0,n+=e.scrollTop||0),1===e.nodeType&&"fixed"===e.style.position)break;return{left:t,top:n}}function c(e){var t,n,r=e&&e.ownerDocument,i={left:0,top:0},a={left:0,top:0},s={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!r)return a;for(var l in s)a[s[l]]+=parseInt(o(e,l),10)||0;return t=r.documentElement,"undefined"!==typeof e.getBoundingClientRect&&(i=e.getBoundingClientRect()),n=u(e),{left:i.left+n.left-(t.clientLeft||0)+a.left,top:i.top+n.top-(t.clientTop||0)+a.top}}function f(e){var t=r.jsdomImplForWrapper(e);return t._canvas||t._image}function d(e){if(r.isLikelyNode){var t=r.jsdomImplForWrapper(e);t&&(t._image=null,t._canvas=null,t._currentSrc=null,t._attributes=null,t._classList=null)}}function h(e,t){e.imageSmoothingEnabled=e.imageSmoothingEnabled||e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled||e.oImageSmoothingEnabled,e.imageSmoothingEnabled=t}n||(i=function(e){var t=new Array(e.length),n=e.length;while(n--)t[n]=e[n];return t}),o=r.document.defaultView&&r.document.defaultView.getComputedStyle?function(e,t){var n=r.document.defaultView.getComputedStyle(e,null);return n?n[t]:void 0}:function(e,t){var n=e.style[t];return!n&&e.currentStyle&&(n=e.currentStyle[t]),n},function(){var e=r.document.documentElement.style,t="userSelect"in e?"userSelect":"MozUserSelect"in e?"MozUserSelect":"WebkitUserSelect"in e?"WebkitUserSelect":"KhtmlUserSelect"in e?"KhtmlUserSelect":"";function n(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=r.util.falseFunction),t?e.style[t]="none":"string"===typeof e.unselectable&&(e.unselectable="on"),e}function o(e){return"undefined"!==typeof e.onselectstart&&(e.onselectstart=null),t?e.style[t]="":"string"===typeof e.unselectable&&(e.unselectable=""),e}r.util.makeElementUnselectable=n,r.util.makeElementSelectable=o}(),r.util.setImageSmoothing=h,r.util.getById=t,r.util.toArray=i,r.util.addClass=s,r.util.makeElement=a,r.util.wrapElement=l,r.util.getScrollLeftTop=u,r.util.getElementOffset=c,r.util.getNodeCanvas=f,r.util.cleanUpJsdomNode=d}(),function(){function e(e,t){return e+(/\?/.test(e)?"&":"?")+t}function t(){}function n(n,o){o||(o={});var i=o.method?o.method.toUpperCase():"GET",a=o.onComplete||function(){},s=new r.window.XMLHttpRequest,l=o.body||o.parameters;return s.onreadystatechange=function(){4===s.readyState&&(a(s),s.onreadystatechange=t)},"GET"===i&&(l=null,"string"===typeof o.parameters&&(n=e(n,o.parameters))),s.open(i,n,!0),"POST"!==i&&"PUT"!==i||s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.send(l),s}r.util.request=n}(),r.log=console.log,r.warn=console.warn,function(){var e=r.util.object.extend,t=r.util.object.clone,n=[];function o(){return!1}function i(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t}function a(n){n||(n={});var a,s=!1,l=function(){var e=r.runningAnimations.indexOf(a);return e>-1&&r.runningAnimations.splice(e,1)[0]};return a=e(t(n),{cancel:function(){return s=!0,l()},currentValue:"startValue"in n?n.startValue:0,completionRate:0,durationRate:0}),r.runningAnimations.push(a),u((function(e){var t,r=e||+new Date,c=n.duration||500,f=r+c,d=n.onChange||o,h=n.abort||o,p=n.onComplete||o,v=n.easing||i,g="startValue"in n&&n.startValue.length>0,m="startValue"in n?n.startValue:0,y="endValue"in n?n.endValue:100,b=n.byValue||(g?m.map((function(e,t){return y[t]-m[t]})):y-m);n.onStart&&n.onStart(),function e(n){t=n||+new Date;var o=t>f?c:t-r,i=o/c,w=g?m.map((function(e,t){return v(o,m[t],b[t],c)})):v(o,m,b,c),A=g?Math.abs((w[0]-m[0])/b[0]):Math.abs((w-m)/b);if(a.currentValue=g?w.slice():w,a.completionRate=A,a.durationRate=i,!s){if(!h(w,A,i))return t>f?(a.currentValue=g?y.slice():y,a.completionRate=1,a.durationRate=1,d(g?y.slice():y,1,1),p(y,1,1),void l()):(d(w,A,i),void u(e));l()}}(r)})),a.cancel}r.util.object.extend(n,{cancelAll:function(){var e=this.splice(0);return e.forEach((function(e){e.cancel()})),e},cancelByCanvas:function(e){if(!e)return[];var t=this.filter((function(t){return"object"===typeof t.target&&t.target.canvas===e}));return t.forEach((function(e){e.cancel()})),t},cancelByTarget:function(e){var t=this.findAnimationsByTarget(e);return t.forEach((function(e){e.cancel()})),t},findAnimationIndex:function(e){return this.indexOf(this.findAnimation(e))},findAnimation:function(e){return this.find((function(t){return t.cancel===e}))},findAnimationsByTarget:function(e){return e?this.filter((function(t){return t.target===e})):[]}});var s=r.window.requestAnimationFrame||r.window.webkitRequestAnimationFrame||r.window.mozRequestAnimationFrame||r.window.oRequestAnimationFrame||r.window.msRequestAnimationFrame||function(e){return r.window.setTimeout(e,1e3/60)},l=r.window.cancelAnimationFrame||r.window.clearTimeout;function u(){return s.apply(r.window,arguments)}function c(){return l.apply(r.window,arguments)}r.util.animate=a,r.util.requestAnimFrame=u,r.util.cancelAnimFrame=c,r.runningAnimations=n}(),function(){function e(e,t,n){var r="rgba("+parseInt(e[0]+n*(t[0]-e[0]),10)+","+parseInt(e[1]+n*(t[1]-e[1]),10)+","+parseInt(e[2]+n*(t[2]-e[2]),10);return r+=","+(e&&t?parseFloat(e[3]+n*(t[3]-e[3])):1),r+=")",r}function t(t,n,o,i){var a=new r.Color(t).getSource(),s=new r.Color(n).getSource(),l=i.onComplete,u=i.onChange;return i=i||{},r.util.animate(r.util.object.extend(i,{duration:o||500,startValue:a,endValue:s,byValue:s,easing:function(t,n,r,o){var a=i.colorEasing?i.colorEasing(t,o):1-Math.cos(t/o*(Math.PI/2));return e(n,r,a)},onComplete:function(t,n,r){if(l)return l(e(s,s,0),n,r)},onChange:function(t,n,r){if(u){if(Array.isArray(t))return u(e(t,t,0),n,r);u(t,n,r)}}}))}r.util.animateColor=t}(),function(){function e(e,t,n,r){return e<Math.abs(t)?(e=t,r=n/4):r=0===t&&0===e?n/(2*Math.PI)*Math.asin(1):n/(2*Math.PI)*Math.asin(t/e),{a:e,c:t,p:n,s:r}}function t(e,t,n){return e.a*Math.pow(2,10*(t-=1))*Math.sin((t*n-e.s)*(2*Math.PI)/e.p)}function n(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function o(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}function i(e,t,n,r){return n*(e/=r)*e*e*e+t}function a(e,t,n,r){return-n*((e=e/r-1)*e*e*e-1)+t}function s(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t}function l(e,t,n,r){return n*(e/=r)*e*e*e*e+t}function u(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t}function c(e,t,n,r){return e/=r/2,e<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t}function f(e,t,n,r){return-n*Math.cos(e/r*(Math.PI/2))+n+t}function d(e,t,n,r){return n*Math.sin(e/r*(Math.PI/2))+t}function h(e,t,n,r){return-n/2*(Math.cos(Math.PI*e/r)-1)+t}function p(e,t,n,r){return 0===e?t:n*Math.pow(2,10*(e/r-1))+t}function v(e,t,n,r){return e===r?t+n:n*(1-Math.pow(2,-10*e/r))+t}function g(e,t,n,r){return 0===e?t:e===r?t+n:(e/=r/2,e<1?n/2*Math.pow(2,10*(e-1))+t:n/2*(2-Math.pow(2,-10*--e))+t)}function m(e,t,n,r){return-n*(Math.sqrt(1-(e/=r)*e)-1)+t}function y(e,t,n,r){return n*Math.sqrt(1-(e=e/r-1)*e)+t}function b(e,t,n,r){return e/=r/2,e<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t}function w(n,r,o,i){var a=1.70158,s=0,l=o;if(0===n)return r;if(n/=i,1===n)return r+o;s||(s=.3*i);var u=e(l,o,s,a);return-t(u,n,i)+r}function A(t,n,r,o){var i=1.70158,a=0,s=r;if(0===t)return n;if(t/=o,1===t)return n+r;a||(a=.3*o);var l=e(s,r,a,i);return l.a*Math.pow(2,-10*t)*Math.sin((t*o-l.s)*(2*Math.PI)/l.p)+l.c+n}function x(n,r,o,i){var a=1.70158,s=0,l=o;if(0===n)return r;if(n/=i/2,2===n)return r+o;s||(s=i*(.3*1.5));var u=e(l,o,s,a);return n<1?-.5*t(u,n,i)+r:u.a*Math.pow(2,-10*(n-=1))*Math.sin((n*i-u.s)*(2*Math.PI)/u.p)*.5+u.c+r}function C(e,t,n,r,o){return void 0===o&&(o=1.70158),n*(e/=r)*e*((o+1)*e-o)+t}function S(e,t,n,r,o){return void 0===o&&(o=1.70158),n*((e=e/r-1)*e*((o+1)*e+o)+1)+t}function _(e,t,n,r,o){return void 0===o&&(o=1.70158),e/=r/2,e<1?n/2*(e*e*((1+(o*=1.525))*e-o))+t:n/2*((e-=2)*e*((1+(o*=1.525))*e+o)+2)+t}function k(e,t,n,r){return n-E(r-e,0,n,r)+t}function E(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t}function O(e,t,n,r){return e<r/2?.5*k(2*e,0,n,r)+t:.5*E(2*e-r,0,n,r)+.5*n+t}r.util.ease={easeInQuad:function(e,t,n,r){return n*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return n*(e/=r)*e*e+t},easeOutCubic:n,easeInOutCubic:o,easeInQuart:i,easeOutQuart:a,easeInOutQuart:s,easeInQuint:l,easeOutQuint:u,easeInOutQuint:c,easeInSine:f,easeOutSine:d,easeInOutSine:h,easeInExpo:p,easeOutExpo:v,easeInOutExpo:g,easeInCirc:m,easeOutCirc:y,easeInOutCirc:b,easeInElastic:w,easeOutElastic:A,easeInOutElastic:x,easeInBack:C,easeOutBack:S,easeInOutBack:_,easeInBounce:k,easeOutBounce:E,easeInOutBounce:O}}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed,i=t.util.parseUnit,a=t.util.multiplyTransformMatrices,s=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],l=["symbol","image","marker","pattern","view","svg"],u=["pattern","defs","symbol","metadata","clipPath","mask","desc"],c=["symbol","g","a","svg","clipPath","defs"],f={cx:"left",x:"left",r:"radius",cy:"top",y:"top",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"},d={stroke:"strokeOpacity",fill:"fillOpacity"},h="font-size",p="clip-path";function v(e){return e in f?f[e]:e}function g(e,n,r,o){var s,l=Array.isArray(n);if("fill"!==e&&"stroke"!==e||"none"!==n){if("strokeUniform"===e)return"non-scaling-stroke"===n;if("strokeDashArray"===e)n="none"===n?null:n.replace(/,/g," ").split(/\s+/).map(parseFloat);else if("transformMatrix"===e)n=r&&r.transformMatrix?a(r.transformMatrix,t.parseTransformAttribute(n)):t.parseTransformAttribute(n);else if("visible"===e)n="none"!==n&&"hidden"!==n,r&&!1===r.visible&&(n=!1);else if("opacity"===e)n=parseFloat(n),r&&"undefined"!==typeof r.opacity&&(n*=r.opacity);else if("textAnchor"===e)n="start"===n?"left":"end"===n?"right":"center";else if("charSpacing"===e)s=i(n,o)/o*1e3;else if("paintFirst"===e){var u=n.indexOf("fill"),c=n.indexOf("stroke");n="fill";(u>-1&&c>-1&&c<u||-1===u&&c>-1)&&(n="stroke")}else{if("href"===e||"xlink:href"===e||"font"===e)return n;if("imageSmoothing"===e)return"optimizeQuality"===n;s=l?n.map(i):i(n,o)}}else n="";return!l&&isNaN(s)?n:s}function m(e){return new RegExp("^("+e.join("|")+")\\b","i")}function y(e){for(var n in d)if("undefined"!==typeof e[d[n]]&&""!==e[n]){if("undefined"===typeof e[n]){if(!t.Object.prototype[n])continue;e[n]=t.Object.prototype[n]}if(0!==e[n].indexOf("url(")){var r=new t.Color(e[n]);e[n]=r.setAlpha(o(r.getAlpha()*e[d[n]],2)).toRgba()}}return e}function b(e,t){var n,r,o,i,a=[];for(o=0,i=t.length;o<i;o++)n=t[o],r=e.getElementsByTagName(n),a=a.concat(Array.prototype.slice.call(r));return a}function w(e,t){var n,r;e.replace(/;\s*$/,"").split(";").forEach((function(e){var o=e.split(":");n=o[0].trim().toLowerCase(),r=o[1].trim(),t[n]=r}))}function A(e,t){var n,r;for(var o in e)"undefined"!==typeof e[o]&&(n=o.toLowerCase(),r=e[o],t[n]=r)}function x(e,n){var r={};for(var o in t.cssRules[n])if(C(e,o.split(" ")))for(var i in t.cssRules[n][o])r[i]=t.cssRules[n][o][i];return r}function C(e,t){var n,r=!0;return n=_(e,t.pop()),n&&t.length&&(r=S(e,t)),n&&r&&0===t.length}function S(e,t){var n,r=!0;while(e.parentNode&&1===e.parentNode.nodeType&&t.length)r&&(n=t.pop()),e=e.parentNode,r=_(e,n);return 0===t.length}function _(e,t){var n,r,o=e.nodeName,i=e.getAttribute("class"),a=e.getAttribute("id");if(n=new RegExp("^"+o,"i"),t=t.replace(n,""),a&&t.length&&(n=new RegExp("#"+a+"(?![a-zA-Z\\-]+)","i"),t=t.replace(n,"")),i&&t.length)for(i=i.split(" "),r=i.length;r--;)n=new RegExp("\\."+i[r]+"(?![a-zA-Z\\-]+)","i"),t=t.replace(n,"");return 0===t.length}function k(e,t){var n;if(e.getElementById&&(n=e.getElementById(t)),n)return n;var r,o,i,a=e.getElementsByTagName("*");for(o=0,i=a.length;o<i;o++)if(r=a[o],t===r.getAttribute("id"))return r}function E(e){var n=b(e,["use","svg:use"]),r=0;while(n.length&&r<n.length){var o=n[r],i=o.getAttribute("xlink:href")||o.getAttribute("href");if(null===i)return;var a,s,l,u,c,f=i.slice(1),d=o.getAttribute("x")||0,h=o.getAttribute("y")||0,p=k(e,f).cloneNode(!0),v=(p.getAttribute("transform")||"")+" translate("+d+", "+h+")",g=n.length,m=t.svgNS;if(F(p),/^svg$/i.test(p.nodeName)){var y=p.ownerDocument.createElementNS(m,"g");for(l=0,u=p.attributes,c=u.length;l<c;l++)s=u.item(l),y.setAttributeNS(m,s.nodeName,s.nodeValue);while(p.firstChild)y.appendChild(p.firstChild);p=y}for(l=0,u=o.attributes,c=u.length;l<c;l++)s=u.item(l),"x"!==s.nodeName&&"y"!==s.nodeName&&"xlink:href"!==s.nodeName&&"href"!==s.nodeName&&("transform"===s.nodeName?v=s.nodeValue+" "+v:p.setAttribute(s.nodeName,s.nodeValue));p.setAttribute("transform",v),p.setAttribute("instantiated_by_use","1"),p.removeAttribute("id"),a=o.parentNode,a.replaceChild(p,o),n.length===g&&r++}}t.svgValidTagNamesRegEx=m(s),t.svgViewBoxElementsRegEx=m(l),t.svgInvalidAncestorsRegEx=m(u),t.svgValidParentsRegEx=m(c),t.cssRules={},t.gradientDefs={},t.clipPaths={},t.parseTransformAttribute=function(){function e(e,n){var r=t.util.cos(n[0]),o=t.util.sin(n[0]),i=0,a=0;3===n.length&&(i=n[1],a=n[2]),e[0]=r,e[1]=o,e[2]=-o,e[3]=r,e[4]=i-(r*i-o*a),e[5]=a-(o*i+r*a)}function n(e,t){var n=t[0],r=2===t.length?t[1]:t[0];e[0]=n,e[3]=r}function r(e,n,r){e[r]=Math.tan(t.util.degreesToRadians(n[0]))}function o(e,t){e[4]=t[0],2===t.length&&(e[5]=t[1])}var i=t.iMatrix,a=t.reNum,s=t.commaWsp,l="(?:(skewX)\\s*\\(\\s*("+a+")\\s*\\))",u="(?:(skewY)\\s*\\(\\s*("+a+")\\s*\\))",c="(?:(rotate)\\s*\\(\\s*("+a+")(?:"+s+"("+a+")"+s+"("+a+"))?\\s*\\))",f="(?:(scale)\\s*\\(\\s*("+a+")(?:"+s+"("+a+"))?\\s*\\))",d="(?:(translate)\\s*\\(\\s*("+a+")(?:"+s+"("+a+"))?\\s*\\))",h="(?:(matrix)\\s*\\(\\s*("+a+")"+s+"("+a+")"+s+"("+a+")"+s+"("+a+")"+s+"("+a+")"+s+"("+a+")\\s*\\))",p="(?:"+h+"|"+d+"|"+f+"|"+c+"|"+l+"|"+u+")",v="(?:"+p+"(?:"+s+"*"+p+")*)",g="^\\s*(?:"+v+"?)\\s*$",m=new RegExp(g),y=new RegExp(p,"g");return function(a){var s=i.concat(),l=[];if(!a||a&&!m.test(a))return s;a.replace(y,(function(a){var u=new RegExp(p).exec(a).filter((function(e){return!!e})),c=u[1],f=u.slice(2).map(parseFloat);switch(c){case"translate":o(s,f);break;case"rotate":f[0]=t.util.degreesToRadians(f[0]),e(s,f);break;case"scale":n(s,f);break;case"skewX":r(s,f,2);break;case"skewY":r(s,f,1);break;case"matrix":s=f;break}l.push(s.concat()),s=i.concat()}));var u=l[0];while(l.length>1)l.shift(),u=t.util.multiplyTransformMatrices(u,l[0]);return u}}();var O=new RegExp("^\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*,?\\s*("+t.reNum+"+)\\s*$");function F(e){if(!t.svgViewBoxElementsRegEx.test(e.nodeName))return{};var n,r,o,a,s=e.getAttribute("viewBox"),l=1,u=1,c=0,f=0,d=e.getAttribute("width"),h=e.getAttribute("height"),p=e.getAttribute("x")||0,v=e.getAttribute("y")||0,g=e.getAttribute("preserveAspectRatio")||"",m=!s||!(s=s.match(O)),y=!d||!h||"100%"===d||"100%"===h,b=m&&y,w={},A="",x=0,C=0;if(w.width=0,w.height=0,w.toBeParsed=b,m&&(p||v)&&e.parentNode&&"#document"!==e.parentNode.nodeName&&(A=" translate("+i(p)+" "+i(v)+") ",o=(e.getAttribute("transform")||"")+A,e.setAttribute("transform",o),e.removeAttribute("x"),e.removeAttribute("y")),b)return w;if(m)return w.width=i(d),w.height=i(h),w;if(c=-parseFloat(s[1]),f=-parseFloat(s[2]),n=parseFloat(s[3]),r=parseFloat(s[4]),w.minX=c,w.minY=f,w.viewBoxWidth=n,w.viewBoxHeight=r,y?(w.width=n,w.height=r):(w.width=i(d),w.height=i(h),l=w.width/n,u=w.height/r),g=t.util.parsePreserveAspectRatioAttribute(g),"none"!==g.alignX&&("meet"===g.meetOrSlice&&(u=l=l>u?u:l),"slice"===g.meetOrSlice&&(u=l=l>u?l:u),x=w.width-n*l,C=w.height-r*l,"Mid"===g.alignX&&(x/=2),"Mid"===g.alignY&&(C/=2),"Min"===g.alignX&&(x=0),"Min"===g.alignY&&(C=0)),1===l&&1===u&&0===c&&0===f&&0===p&&0===v)return w;if((p||v)&&"#document"!==e.parentNode.nodeName&&(A=" translate("+i(p)+" "+i(v)+") "),o=A+" matrix("+l+" 0 0 "+u+" "+(c*l+x)+" "+(f*u+C)+") ","svg"===e.nodeName){a=e.ownerDocument.createElementNS(t.svgNS,"g");while(e.firstChild)a.appendChild(e.firstChild);e.appendChild(a)}else a=e,a.removeAttribute("x"),a.removeAttribute("y"),o=a.getAttribute("transform")+o;return a.setAttribute("transform",o),w}function T(e,t){while(e&&(e=e.parentNode))if(e.nodeName&&t.test(e.nodeName.replace("svg:",""))&&!e.getAttribute("instantiated_by_use"))return!0;return!1}function P(e,t){var n=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],r="xlink:href",o=t.getAttribute(r).slice(1),i=k(e,o);if(i&&i.getAttribute(r)&&P(e,i),n.forEach((function(e){i&&!t.hasAttribute(e)&&i.hasAttribute(e)&&t.setAttribute(e,i.getAttribute(e))})),!t.children.length){var a=i.cloneNode(!0);while(a.firstChild)t.appendChild(a.firstChild)}t.removeAttribute(r)}t.parseSVGDocument=function(e,n,o,i){if(e){E(e);var a,s,l=t.Object.__uid++,u=F(e),c=t.util.toArray(e.getElementsByTagName("*"));if(u.crossOrigin=i&&i.crossOrigin,u.svgUid=l,0===c.length&&t.isLikelyNode){c=e.selectNodes('//*[name(.)!="svg"]');var f=[];for(a=0,s=c.length;a<s;a++)f[a]=c[a];c=f}var d=c.filter((function(e){return F(e),t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))&&!T(e,t.svgInvalidAncestorsRegEx)}));if(!d||d&&!d.length)n&&n([],{});else{var h={};c.filter((function(e){return"clipPath"===e.nodeName.replace("svg:","")})).forEach((function(e){var n=e.getAttribute("id");h[n]=t.util.toArray(e.getElementsByTagName("*")).filter((function(e){return t.svgValidTagNamesRegEx.test(e.nodeName.replace("svg:",""))}))})),t.gradientDefs[l]=t.getGradientDefs(e),t.cssRules[l]=t.getCSSRules(e),t.clipPaths[l]=h,t.parseElements(d,(function(e,r){n&&(n(e,u,r,c),delete t.gradientDefs[l],delete t.cssRules[l],delete t.clipPaths[l])}),r(u),o,i)}}};var N=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+t.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+t.reNum+"))?\\s+(.*)");n(t,{parseFontDeclaration:function(e,t){var n=e.match(N);if(n){var r=n[1],o=n[3],a=n[4],s=n[5],l=n[6];r&&(t.fontStyle=r),o&&(t.fontWeight=isNaN(parseFloat(o))?o:parseFloat(o)),a&&(t.fontSize=i(a)),l&&(t.fontFamily=l),s&&(t.lineHeight="normal"===s?1:s)}},getGradientDefs:function(e){var t,n=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],r=b(e,n),o=0,i={};o=r.length;while(o--)t=r[o],t.getAttribute("xlink:href")&&P(e,t),i[t.getAttribute("id")]=t;return i},parseAttributes:function(e,r,o){if(e){var a,s,l,u={};"undefined"===typeof o&&(o=e.getAttribute("svgUid")),e.parentNode&&t.svgValidParentsRegEx.test(e.parentNode.nodeName)&&(u=t.parseAttributes(e.parentNode,r,o));var c=r.reduce((function(t,n){return a=e.getAttribute(n),a&&(t[n]=a),t}),{}),f=n(x(e,o),t.parseStyleAttribute(e));c=n(c,f),f[p]&&e.setAttribute(p,f[p]),s=l=u.fontSize||t.Text.DEFAULT_SVG_FONT_SIZE,c[h]&&(c[h]=s=i(c[h],l));var d,m,b={};for(var w in c)d=v(w),m=g(d,c[w],u,s),b[d]=m;b&&b.font&&t.parseFontDeclaration(b.font,b);var A=n(u,b);return t.svgValidParentsRegEx.test(e.nodeName)?A:y(A)}},parseElements:function(e,n,r,o,i){new t.ElementsParser(e,n,r,o,i).parse()},parseStyleAttribute:function(e){var t={},n=e.getAttribute("style");return n?("string"===typeof n?w(n,t):A(n,t),t):t},parsePointsAttribute:function(e){if(!e)return null;e=e.replace(/,/g," ").trim(),e=e.split(/\s+/);var t,n,r=[];for(t=0,n=e.length;t<n;t+=2)r.push({x:parseFloat(e[t]),y:parseFloat(e[t+1])});return r},getCSSRules:function(e){var n,r,o,i=e.getElementsByTagName("style"),a={};for(n=0,r=i.length;n<r;n++){var s=i[n].textContent;s=s.replace(/\/\*[\s\S]*?\*\//g,""),""!==s.trim()&&(o=s.split("}"),o=o.filter((function(e){return e.trim()})),o.forEach((function(e){var o=e.split("{"),i={},s=o[1].trim(),l=s.split(";").filter((function(e){return e.trim()}));for(n=0,r=l.length;n<r;n++){var u=l[n].split(":"),c=u[0].trim(),f=u[1].trim();i[c]=f}e=o[0].trim(),e.split(",").forEach((function(e){e=e.replace(/^svg/i,"").trim(),""!==e&&(a[e]?t.util.object.extend(a[e],i):a[e]=t.util.object.clone(i))}))})))}return a},loadSVGFromURL:function(e,n,r,o){function i(e){var i=e.responseXML;if(!i||!i.documentElement)return n&&n(null),!1;t.parseSVGDocument(i.documentElement,(function(e,t,r,o){n&&n(e,t,r,o)}),r,o)}e=e.replace(/^\n\s*/,"").trim(),new t.util.request(e,{method:"get",onComplete:i})},loadSVGFromString:function(e,n,r,o){var i=new t.window.DOMParser,a=i.parseFromString(e.trim(),"text/xml");t.parseSVGDocument(a.documentElement,(function(e,t,r,o){n(e,t,r,o)}),r,o)}})}(t),r.ElementsParser=function(e,t,n,r,o,i){this.elements=e,this.callback=t,this.options=n,this.reviver=r,this.svgUid=n&&n.svgUid||0,this.parsingOptions=o,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=i},function(e){e.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},e.createObjects=function(){var e=this;this.elements.forEach((function(t,n){t.setAttribute("svgUid",e.svgUid),e.createObject(t,n)}))},e.findTag=function(e){return r[r.util.string.capitalize(e.tagName.replace("svg:",""))]},e.createObject=function(e,t){var n=this.findTag(e);if(n&&n.fromElement)try{n.fromElement(e,this.createCallback(t,e),this.options)}catch(o){r.log(o)}else this.checkIfDone()},e.createCallback=function(e,t){var n=this;return function(o){var i;n.resolveGradient(o,t,"fill"),n.resolveGradient(o,t,"stroke"),o instanceof r.Image&&o._originalElement&&(i=o.parsePreserveAspectRatioAttribute(t)),o._removeTransformMatrix(i),n.resolveClipPath(o,t),n.reviver&&n.reviver(t,o),n.instances[e]=o,n.checkIfDone()}},e.extractPropertyDefinition=function(e,t,n){var o=e[t],i=this.regexUrl;if(i.test(o)){i.lastIndex=0;var a=i.exec(o)[1];return i.lastIndex=0,r[n][this.svgUid][a]}},e.resolveGradient=function(e,t,n){var o=this.extractPropertyDefinition(e,n,"gradientDefs");if(o){var i=t.getAttribute(n+"-opacity"),a=r.Gradient.fromElement(o,e,i,this.options);e.set(n,a)}},e.createClipPathCallback=function(e,t){return function(e){e._removeTransformMatrix(),e.fillRule=e.clipRule,t.push(e)}},e.resolveClipPath=function(e,t){var n,o,i,a,s,l=this.extractPropertyDefinition(e,"clipPath","clipPaths");if(l){a=[],i=r.util.invertTransform(e.calcTransformMatrix());var u=l[0].parentNode,c=t;while(c.parentNode&&c.getAttribute("clip-path")!==e.clipPath)c=c.parentNode;c.parentNode.appendChild(u);for(var f=0;f<l.length;f++)n=l[f],o=this.findTag(n),o.fromElement(n,this.createClipPathCallback(e,a),this.options);l=1===a.length?a[0]:new r.Group(a),s=r.util.multiplyTransformMatrices(i,l.calcTransformMatrix()),l.clipPath&&this.resolveClipPath(l,c);var d=r.util.qrDecompose(s);l.flipX=!1,l.flipY=!1,l.set("scaleX",d.scaleX),l.set("scaleY",d.scaleY),l.angle=d.angle,l.skewX=d.skewX,l.skewY=0,l.setPositionByOrigin({x:d.translateX,y:d.translateY},"center","center"),e.clipPath=l}else delete e.clipPath},e.checkIfDone=function(){0===--this.numElements&&(this.instances=this.instances.filter((function(e){return null!=e})),this.callback(this.instances,this.elements))}}(r.ElementsParser.prototype),function(e){"use strict";var t=e.fabric||(e.fabric={});function n(e,t){this.x=e,this.y=t}t.Point?t.warn("fabric.Point is already defined"):(t.Point=n,n.prototype={type:"point",constructor:n,add:function(e){return new n(this.x+e.x,this.y+e.y)},addEquals:function(e){return this.x+=e.x,this.y+=e.y,this},scalarAdd:function(e){return new n(this.x+e,this.y+e)},scalarAddEquals:function(e){return this.x+=e,this.y+=e,this},subtract:function(e){return new n(this.x-e.x,this.y-e.y)},subtractEquals:function(e){return this.x-=e.x,this.y-=e.y,this},scalarSubtract:function(e){return new n(this.x-e,this.y-e)},scalarSubtractEquals:function(e){return this.x-=e,this.y-=e,this},multiply:function(e){return new n(this.x*e,this.y*e)},multiplyEquals:function(e){return this.x*=e,this.y*=e,this},divide:function(e){return new n(this.x/e,this.y/e)},divideEquals:function(e){return this.x/=e,this.y/=e,this},eq:function(e){return this.x===e.x&&this.y===e.y},lt:function(e){return this.x<e.x&&this.y<e.y},lte:function(e){return this.x<=e.x&&this.y<=e.y},gt:function(e){return this.x>e.x&&this.y>e.y},gte:function(e){return this.x>=e.x&&this.y>=e.y},lerp:function(e,t){return"undefined"===typeof t&&(t=.5),t=Math.max(Math.min(1,t),0),new n(this.x+(e.x-this.x)*t,this.y+(e.y-this.y)*t)},distanceFrom:function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},midPointFrom:function(e){return this.lerp(e)},min:function(e){return new n(Math.min(this.x,e.x),Math.min(this.y,e.y))},max:function(e){return new n(Math.max(this.x,e.x),Math.max(this.y,e.y))},toString:function(){return this.x+","+this.y},setXY:function(e,t){return this.x=e,this.y=t,this},setX:function(e){return this.x=e,this},setY:function(e){return this.y=e,this},setFromPoint:function(e){return this.x=e.x,this.y=e.y,this},swap:function(e){var t=this.x,n=this.y;this.x=e.x,this.y=e.y,e.x=t,e.y=n},clone:function(){return new n(this.x,this.y)}})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function n(e){this.status=e,this.points=[]}t.Intersection?t.warn("fabric.Intersection is already defined"):(t.Intersection=n,t.Intersection.prototype={constructor:n,appendPoint:function(e){return this.points.push(e),this},appendPoints:function(e){return this.points=this.points.concat(e),this}},t.Intersection.intersectLineLine=function(e,r,o,i){var a,s=(i.x-o.x)*(e.y-o.y)-(i.y-o.y)*(e.x-o.x),l=(r.x-e.x)*(e.y-o.y)-(r.y-e.y)*(e.x-o.x),u=(i.y-o.y)*(r.x-e.x)-(i.x-o.x)*(r.y-e.y);if(0!==u){var c=s/u,f=l/u;0<=c&&c<=1&&0<=f&&f<=1?(a=new n("Intersection"),a.appendPoint(new t.Point(e.x+c*(r.x-e.x),e.y+c*(r.y-e.y)))):a=new n}else a=new n(0===s||0===l?"Coincident":"Parallel");return a},t.Intersection.intersectLinePolygon=function(e,t,r){var o,i,a,s,l=new n,u=r.length;for(s=0;s<u;s++)o=r[s],i=r[(s+1)%u],a=n.intersectLineLine(e,t,o,i),l.appendPoints(a.points);return l.points.length>0&&(l.status="Intersection"),l},t.Intersection.intersectPolygonPolygon=function(e,t){var r,o=new n,i=e.length;for(r=0;r<i;r++){var a=e[r],s=e[(r+1)%i],l=n.intersectLinePolygon(a,s,t);o.appendPoints(l.points)}return o.points.length>0&&(o.status="Intersection"),o},t.Intersection.intersectPolygonRectangle=function(e,r,o){var i=r.min(o),a=r.max(o),s=new t.Point(a.x,i.y),l=new t.Point(i.x,a.y),u=n.intersectLinePolygon(i,s,e),c=n.intersectLinePolygon(s,a,e),f=n.intersectLinePolygon(a,l,e),d=n.intersectLinePolygon(l,i,e),h=new n;return h.appendPoints(u.points),h.appendPoints(c.points),h.appendPoints(f.points),h.appendPoints(d.points),h.points.length>0&&(h.status="Intersection"),h})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function n(e){e?this._tryParsingColor(e):this.setSource([0,0,0,1])}function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}t.Color?t.warn("fabric.Color is already defined."):(t.Color=n,t.Color.prototype={_tryParsingColor:function(e){var t;e in n.colorNameMap&&(e=n.colorNameMap[e]),"transparent"===e&&(t=[255,255,255,0]),t||(t=n.sourceFromHex(e)),t||(t=n.sourceFromRgb(e)),t||(t=n.sourceFromHsl(e)),t||(t=[0,0,0,1]),t&&this.setSource(t)},_rgbToHsl:function(e,n,r){e/=255,n/=255,r/=255;var o,i,a,s=t.util.array.max([e,n,r]),l=t.util.array.min([e,n,r]);if(a=(s+l)/2,s===l)o=i=0;else{var u=s-l;switch(i=a>.5?u/(2-s-l):u/(s+l),s){case e:o=(n-r)/u+(n<r?6:0);break;case n:o=(r-e)/u+2;break;case r:o=(e-n)/u+4;break}o/=6}return[Math.round(360*o),Math.round(100*i),Math.round(100*a)]},getSource:function(){return this._source},setSource:function(e){this._source=e},toRgb:function(){var e=this.getSource();return"rgb("+e[0]+","+e[1]+","+e[2]+")"},toRgba:function(){var e=this.getSource();return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},toHsl:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsl("+t[0]+","+t[1]+"%,"+t[2]+"%)"},toHsla:function(){var e=this.getSource(),t=this._rgbToHsl(e[0],e[1],e[2]);return"hsla("+t[0]+","+t[1]+"%,"+t[2]+"%,"+e[3]+")"},toHex:function(){var e,t,n,r=this.getSource();return e=r[0].toString(16),e=1===e.length?"0"+e:e,t=r[1].toString(16),t=1===t.length?"0"+t:t,n=r[2].toString(16),n=1===n.length?"0"+n:n,e.toUpperCase()+t.toUpperCase()+n.toUpperCase()},toHexa:function(){var e,t=this.getSource();return e=Math.round(255*t[3]),e=e.toString(16),e=1===e.length?"0"+e:e,this.toHex()+e.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(e){var t=this.getSource();return t[3]=e,this.setSource(t),this},toGrayscale:function(){var e=this.getSource(),t=parseInt((.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),10),n=e[3];return this.setSource([t,t,t,n]),this},toBlackWhite:function(e){var t=this.getSource(),n=(.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),r=t[3];return e=e||127,n=Number(n)<Number(e)?0:255,this.setSource([n,n,n,r]),this},overlayWith:function(e){e instanceof n||(e=new n(e));var t,r=[],o=this.getAlpha(),i=.5,a=this.getSource(),s=e.getSource();for(t=0;t<3;t++)r.push(Math.round(a[t]*(1-i)+s[t]*i));return r[3]=o,this.setSource(r),this}},t.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,t.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,t.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,t.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",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:"#FF00FF",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",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:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},t.Color.fromRgb=function(e){return n.fromSource(n.sourceFromRgb(e))},t.Color.sourceFromRgb=function(e){var t=e.match(n.reRGBa);if(t){var r=parseInt(t[1],10)/(/%$/.test(t[1])?100:1)*(/%$/.test(t[1])?255:1),o=parseInt(t[2],10)/(/%$/.test(t[2])?100:1)*(/%$/.test(t[2])?255:1),i=parseInt(t[3],10)/(/%$/.test(t[3])?100:1)*(/%$/.test(t[3])?255:1);return[parseInt(r,10),parseInt(o,10),parseInt(i,10),t[4]?parseFloat(t[4]):1]}},t.Color.fromRgba=n.fromRgb,t.Color.fromHsl=function(e){return n.fromSource(n.sourceFromHsl(e))},t.Color.sourceFromHsl=function(e){var t=e.match(n.reHSLa);if(t){var o,i,a,s=(parseFloat(t[1])%360+360)%360/360,l=parseFloat(t[2])/(/%$/.test(t[2])?100:1),u=parseFloat(t[3])/(/%$/.test(t[3])?100:1);if(0===l)o=i=a=u;else{var c=u<=.5?u*(l+1):u+l-u*l,f=2*u-c;o=r(f,c,s+1/3),i=r(f,c,s),a=r(f,c,s-1/3)}return[Math.round(255*o),Math.round(255*i),Math.round(255*a),t[4]?parseFloat(t[4]):1]}},t.Color.fromHsla=n.fromHsl,t.Color.fromHex=function(e){return n.fromSource(n.sourceFromHex(e))},t.Color.sourceFromHex=function(e){if(e.match(n.reHex)){var t=e.slice(e.indexOf("#")+1),r=3===t.length||4===t.length,o=8===t.length||4===t.length,i=r?t.charAt(0)+t.charAt(0):t.substring(0,2),a=r?t.charAt(1)+t.charAt(1):t.substring(2,4),s=r?t.charAt(2)+t.charAt(2):t.substring(4,6),l=o?r?t.charAt(3)+t.charAt(3):t.substring(6,8):"FF";return[parseInt(i,16),parseInt(a,16),parseInt(s,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},t.Color.fromSource=function(e){var t=new n;return t.setSource(e),t})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=["e","se","s","sw","w","nw","n","ne","e"],r=["ns","nesw","ew","nwse"],o={},i="left",a="top",s="right",l="bottom",u="center",c={top:l,bottom:a,left:s,right:i,center:u},f=t.util.radiansToDegrees,d=Math.sign||function(e){return(e>0)-(e<0)||+e};function h(e,t){var n=e.angle+f(Math.atan2(t.y,t.x))+360;return Math.round(n%360/45)}function p(e,n){var r=n.transform.target,o=r.canvas,i=t.util.object.clone(n);i.target=r,o&&o.fire("object:"+e,i),r.fire(e,n)}function v(e,t){var n=t.canvas,r=n.uniScaleKey,o=e[r];return n.uniformScaling&&!o||!n.uniformScaling&&o}function g(e){return e.originX===u&&e.originY===u}function m(e,t,n){var r=e.lockScalingX,o=e.lockScalingY;return!(!r||!o)||(!(t||!r&&!o||!n)||(!(!r||"x"!==t)||!(!o||"y"!==t)))}function y(e,t,r){var o="not-allowed",i=v(e,r),a="";if(0!==t.x&&0===t.y?a="x":0===t.x&&0!==t.y&&(a="y"),m(r,a,i))return o;var s=h(r,t);return n[s]+"-resize"}function b(e,t,n){var o="not-allowed";if(0!==t.x&&n.lockSkewingY)return o;if(0!==t.y&&n.lockSkewingX)return o;var i=h(n,t)%4;return r[i]+"-resize"}function w(e,t,n){return e[n.canvas.altActionKey]?o.skewCursorStyleHandler(e,t,n):o.scaleCursorStyleHandler(e,t,n)}function A(e,t,n){var r=e[n.canvas.altActionKey];return 0===t.x?r?"skewX":"scaleY":0===t.y?r?"skewY":"scaleX":void 0}function x(e,t,n){return n.lockRotation?"not-allowed":t.cursorStyle}function C(e,t,n,r){return{e:e,transform:t,pointer:{x:n,y:r}}}function S(e){return function(t,n,r,o){var i=n.target,a=i.getCenterPoint(),s=i.translateToOriginPoint(a,n.originX,n.originY),l=e(t,n,r,o);return i.setPositionByOrigin(s,n.originX,n.originY),l}}function _(e,t){return function(n,r,o,i){var a=t(n,r,o,i);return a&&p(e,C(n,r,o,i)),a}}function k(e,n,r,o,i){var a=e.target,s=a.controls[e.corner],l=a.canvas.getZoom(),u=a.padding/l,c=a.toLocalPoint(new t.Point(o,i),n,r);return c.x>=u&&(c.x-=u),c.x<=-u&&(c.x+=u),c.y>=u&&(c.y-=u),c.y<=u&&(c.y+=u),c.x-=s.offsetX,c.y-=s.offsetY,c}function E(e){return e.flipX!==e.flipY}function O(e,t,n,r,o){if(0!==e[t]){var i=e._getTransformedDimensions()[r],a=o/i*e[n];e.set(n,a)}}function F(e,t,n,r){var o,u=t.target,c=u._getTransformedDimensions(0,u.skewY),d=k(t,t.originX,t.originY,n,r),h=Math.abs(2*d.x)-c.x,p=u.skewX;h<2?o=0:(o=f(Math.atan2(h/u.scaleX,c.y/u.scaleY)),t.originX===i&&t.originY===l&&(o=-o),t.originX===s&&t.originY===a&&(o=-o),E(u)&&(o=-o));var v=p!==o;if(v){var g=u._getTransformedDimensions().y;u.set("skewX",o),O(u,"skewY","scaleY","y",g)}return v}function T(e,t,n,r){var o,u=t.target,c=u._getTransformedDimensions(u.skewX,0),d=k(t,t.originX,t.originY,n,r),h=Math.abs(2*d.y)-c.y,p=u.skewY;h<2?o=0:(o=f(Math.atan2(h/u.scaleY,c.x/u.scaleX)),t.originX===i&&t.originY===l&&(o=-o),t.originX===s&&t.originY===a&&(o=-o),E(u)&&(o=-o));var v=p!==o;if(v){var g=u._getTransformedDimensions().x;u.set("skewY",o),O(u,"skewX","scaleX","x",g)}return v}function P(e,t,n,r){var o,l=t.target,c=l.skewX,f=t.originY;if(l.lockSkewingX)return!1;if(0===c){var d=k(t,u,u,n,r);o=d.x>0?i:s}else c>0&&(o=f===a?i:s),c<0&&(o=f===a?s:i),E(l)&&(o=o===i?s:i);t.originX=o;var h=_("skewing",S(F));return h(e,t,n,r)}function N(e,t,n,r){var o,s=t.target,c=s.skewY,f=t.originX;if(s.lockSkewingY)return!1;if(0===c){var d=k(t,u,u,n,r);o=d.y>0?a:l}else c>0&&(o=f===i?a:l),c<0&&(o=f===i?l:a),E(s)&&(o=o===a?l:a);t.originY=o;var h=_("skewing",S(T));return h(e,t,n,r)}function M(e,t,n,r){var o=t,i=o.target,a=i.translateToOriginPoint(i.getCenterPoint(),o.originX,o.originY);if(i.lockRotation)return!1;var s=Math.atan2(o.ey-a.y,o.ex-a.x),l=Math.atan2(r-a.y,n-a.x),u=f(l-s+o.theta),c=!0;if(i.snapAngle>0){var d=i.snapAngle,h=i.snapThreshold||d,p=Math.ceil(u/d)*d,v=Math.floor(u/d)*d;Math.abs(u-v)<h?u=v:Math.abs(u-p)<h&&(u=p)}return u<0&&(u=360+u),u%=360,c=i.angle!==u,i.angle=u,c}function L(e,t,n,r,o){o=o||{};var i,a,s,l,u,f,h=t.target,p=h.lockScalingX,y=h.lockScalingY,b=o.by,w=v(e,h),A=m(h,b,w),x=t.gestureScale;if(A)return!1;if(x)a=t.scaleX*x,s=t.scaleY*x;else{if(i=k(t,t.originX,t.originY,n,r),u="y"!==b?d(i.x):1,f="x"!==b?d(i.y):1,t.signX||(t.signX=u),t.signY||(t.signY=f),h.lockScalingFlip&&(t.signX!==u||t.signY!==f))return!1;if(l=h._getTransformedDimensions(),w&&!b){var C=Math.abs(i.x)+Math.abs(i.y),S=t.original,_=Math.abs(l.x*S.scaleX/h.scaleX)+Math.abs(l.y*S.scaleY/h.scaleY),E=C/_;a=S.scaleX*E,s=S.scaleY*E}else a=Math.abs(i.x*h.scaleX/l.x),s=Math.abs(i.y*h.scaleY/l.y);g(t)&&(a*=2,s*=2),t.signX!==u&&"y"!==b&&(t.originX=c[t.originX],a*=-1,t.signX=u),t.signY!==f&&"x"!==b&&(t.originY=c[t.originY],s*=-1,t.signY=f)}var O=h.scaleX,F=h.scaleY;return b?("x"===b&&h.set("scaleX",a),"y"===b&&h.set("scaleY",s)):(!p&&h.set("scaleX",a),!y&&h.set("scaleY",s)),O!==h.scaleX||F!==h.scaleY}function I(e,t,n,r){return L(e,t,n,r)}function R(e,t,n,r){return L(e,t,n,r,{by:"x"})}function j(e,t,n,r){return L(e,t,n,r,{by:"y"})}function D(e,t,n,r){return e[t.target.canvas.altActionKey]?o.skewHandlerX(e,t,n,r):o.scalingY(e,t,n,r)}function B(e,t,n,r){return e[t.target.canvas.altActionKey]?o.skewHandlerY(e,t,n,r):o.scalingX(e,t,n,r)}function W(e,t,n,r){var o=t.target,i=k(t,t.originX,t.originY,n,r),a=o.strokeWidth/(o.strokeUniform?o.scaleX:1),s=g(t)?2:1,l=o.width,u=Math.abs(i.x*s/o.scaleX)-a;return o.set("width",Math.max(u,0)),l!==u}function z(e,t,n,r){var o=t.target,i=n-t.offsetX,a=r-t.offsetY,s=!o.get("lockMovementX")&&o.left!==i,l=!o.get("lockMovementY")&&o.top!==a;return s&&o.set("left",i),l&&o.set("top",a),(s||l)&&p("moving",C(e,t,n,r)),s||l}o.scaleCursorStyleHandler=y,o.skewCursorStyleHandler=b,o.scaleSkewCursorStyleHandler=w,o.rotationWithSnapping=_("rotating",S(M)),o.scalingEqually=_("scaling",S(I)),o.scalingX=_("scaling",S(R)),o.scalingY=_("scaling",S(j)),o.scalingYOrSkewingX=D,o.scalingXOrSkewingY=B,o.changeWidth=_("resizing",S(W)),o.skewHandlerX=P,o.skewHandlerY=N,o.dragHandler=z,o.scaleOrSkewActionName=A,o.rotationStyleHandler=x,o.fireEvent=p,o.wrapWithFixedAnchor=S,o.wrapWithFireEvent=_,o.getLocalPoint=k,t.controlsUtils=o}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.degreesToRadians,r=t.controlsUtils;function o(e,t,n,r,o){r=r||{};var i,a=this.sizeX||r.cornerSize||o.cornerSize,s=this.sizeY||r.cornerSize||o.cornerSize,l="undefined"!==typeof r.transparentCorners?r.transparentCorners:o.transparentCorners,u=l?"stroke":"fill",c=!l&&(r.cornerStrokeColor||o.cornerStrokeColor),f=t,d=n;e.save(),e.fillStyle=r.cornerColor||o.cornerColor,e.strokeStyle=r.cornerStrokeColor||o.cornerStrokeColor,a>s?(i=a,e.scale(1,s/a),d=n*a/s):s>a?(i=s,e.scale(a/s,1),f=t*s/a):i=a,e.lineWidth=1,e.beginPath(),e.arc(f,d,i/2,0,2*Math.PI,!1),e[u](),c&&e.stroke(),e.restore()}function i(e,t,r,o,i){o=o||{};var a=this.sizeX||o.cornerSize||i.cornerSize,s=this.sizeY||o.cornerSize||i.cornerSize,l="undefined"!==typeof o.transparentCorners?o.transparentCorners:i.transparentCorners,u=l?"stroke":"fill",c=!l&&(o.cornerStrokeColor||i.cornerStrokeColor),f=a/2,d=s/2;e.save(),e.fillStyle=o.cornerColor||i.cornerColor,e.strokeStyle=o.cornerStrokeColor||i.cornerStrokeColor,e.lineWidth=1,e.translate(t,r),e.rotate(n(i.angle)),e[u+"Rect"](-f,-d,a,s),c&&e.strokeRect(-f,-d,a,s),e.restore()}r.renderCircleControl=o,r.renderSquareControl=i}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});function n(e){for(var t in e)this[t]=e[t]}t.Control=n,t.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(e,t){return t.cursorStyle},getActionName:function(e,t){return t.actionName},getVisibility:function(e,t){var n=e._controlsVisibility;return n&&"undefined"!==typeof n[t]?n[t]:this.visible},setVisibility:function(e){this.visible=e},positionHandler:function(e,n){var r=t.util.transformPoint({x:this.x*e.x+this.offsetX,y:this.y*e.y+this.offsetY},n);return r},calcCornerCoords:function(e,n,r,o,i){var a,s,l,u,c=i?this.touchSizeX:this.sizeX,f=i?this.touchSizeY:this.sizeY;if(c&&f&&c!==f){var d=Math.atan2(f,c),h=Math.sqrt(c*c+f*f)/2,p=d-t.util.degreesToRadians(e),v=Math.PI/2-d-t.util.degreesToRadians(e);a=h*t.util.cos(p),s=h*t.util.sin(p),l=h*t.util.cos(v),u=h*t.util.sin(v)}else{var g=c&&f?c:n;h=.7071067812*g;p=t.util.degreesToRadians(45-e);a=l=h*t.util.cos(p),s=u=h*t.util.sin(p)}return{tl:{x:r-u,y:o-l},tr:{x:r+a,y:o-s},bl:{x:r-a,y:o+s},br:{x:r+u,y:o+l}}},render:function(e,n,r,o,i){switch(o=o||{},o.cornerStyle||i.cornerStyle){case"circle":t.controlsUtils.renderCircleControl.call(this,e,n,r,o,i);break;default:t.controlsUtils.renderSquareControl.call(this,e,n,r,o,i)}}}}(t),function(){function e(e,t){var n,o,i,a,s=e.getAttribute("style"),l=e.getAttribute("offset")||0;if(l=parseFloat(l)/(/%$/.test(l)?100:1),l=l<0?0:l>1?1:l,s){var u=s.split(/\s*;\s*/);for(""===u[u.length-1]&&u.pop(),a=u.length;a--;){var c=u[a].split(/\s*:\s*/),f=c[0].trim(),d=c[1].trim();"stop-color"===f?n=d:"stop-opacity"===f&&(i=d)}}return n||(n=e.getAttribute("stop-color")||"rgb(0,0,0)"),i||(i=e.getAttribute("stop-opacity")),n=new r.Color(n),o=n.getAlpha(),i=isNaN(parseFloat(i))?1:parseFloat(i),i*=o*t,{offset:l,color:n.toRgb(),opacity:i}}function t(e){return{x1:e.getAttribute("x1")||0,y1:e.getAttribute("y1")||0,x2:e.getAttribute("x2")||"100%",y2:e.getAttribute("y2")||0}}function n(e){return{x1:e.getAttribute("fx")||e.getAttribute("cx")||"50%",y1:e.getAttribute("fy")||e.getAttribute("cy")||"50%",r1:0,x2:e.getAttribute("cx")||"50%",y2:e.getAttribute("cy")||"50%",r2:e.getAttribute("r")||"50%"}}var o=r.util.object.clone;function i(e,t,n,r){var o,i;Object.keys(t).forEach((function(e){o=t[e],"Infinity"===o?i=1:"-Infinity"===o?i=0:(i=parseFloat(t[e],10),"string"===typeof o&&/^(\d+\.\d+)%|(\d+)%$/.test(o)&&(i*=.01,"pixels"===r&&("x1"!==e&&"x2"!==e&&"r2"!==e||(i*=n.viewBoxWidth||n.width),"y1"!==e&&"y2"!==e||(i*=n.viewBoxHeight||n.height)))),t[e]=i}))}r.Gradient=r.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(e){e||(e={}),e.coords||(e.coords={});var t,n=this;Object.keys(e).forEach((function(t){n[t]=e[t]})),this.id?this.id+="_"+r.Object.__uid++:this.id=r.Object.__uid++,t={x1:e.coords.x1||0,y1:e.coords.y1||0,x2:e.coords.x2||0,y2:e.coords.y2||0},"radial"===this.type&&(t.r1=e.coords.r1||0,t.r2=e.coords.r2||0),this.coords=t,this.colorStops=e.colorStops.slice()},addColorStop:function(e){for(var t in e){var n=new r.Color(e[t]);this.colorStops.push({offset:parseFloat(t),color:n.toRgb(),opacity:n.getAlpha()})}return this},toObject:function(e){var t={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return r.util.populateWithProperties(this,t,e),t},toSVG:function(e,t){var n,i,a,s,l=o(this.coords,!0),u=(t=t||{},o(this.colorStops,!0)),c=l.r1>l.r2,f=this.gradientTransform?this.gradientTransform.concat():r.iMatrix.concat(),d=-this.offsetX,h=-this.offsetY,p=!!t.additionalTransform,v="pixels"===this.gradientUnits?"userSpaceOnUse":"objectBoundingBox";if(u.sort((function(e,t){return e.offset-t.offset})),"objectBoundingBox"===v?(d/=e.width,h/=e.height):(d+=e.width/2,h+=e.height/2),"path"===e.type&&"percentage"!==this.gradientUnits&&(d-=e.pathOffset.x,h-=e.pathOffset.y),f[4]-=d,f[5]-=h,s='id="SVGID_'+this.id+'" gradientUnits="'+v+'"',s+=' gradientTransform="'+(p?t.additionalTransform+" ":"")+r.util.matrixToSVG(f)+'" ',"linear"===this.type?a=["<linearGradient ",s,' x1="',l.x1,'" y1="',l.y1,'" x2="',l.x2,'" y2="',l.y2,'">\n']:"radial"===this.type&&(a=["<radialGradient ",s,' cx="',c?l.x1:l.x2,'" cy="',c?l.y1:l.y2,'" r="',c?l.r1:l.r2,'" fx="',c?l.x2:l.x1,'" fy="',c?l.y2:l.y1,'">\n']),"radial"===this.type){if(c)for(u=u.concat(),u.reverse(),n=0,i=u.length;n<i;n++)u[n].offset=1-u[n].offset;var g=Math.min(l.r1,l.r2);if(g>0){var m=Math.max(l.r1,l.r2),y=g/m;for(n=0,i=u.length;n<i;n++)u[n].offset+=y*(1-u[n].offset)}}for(n=0,i=u.length;n<i;n++){var b=u[n];a.push("<stop ",'offset="',100*b.offset+"%",'" style="stop-color:',b.color,"undefined"!==typeof b.opacity?";stop-opacity: "+b.opacity:";",'"/>\n')}return a.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),a.join("")},toLive:function(e){var t,n,o,i=r.util.object.clone(this.coords);if(this.type){for("linear"===this.type?t=e.createLinearGradient(i.x1,i.y1,i.x2,i.y2):"radial"===this.type&&(t=e.createRadialGradient(i.x1,i.y1,i.r1,i.x2,i.y2,i.r2)),n=0,o=this.colorStops.length;n<o;n++){var a=this.colorStops[n].color,s=this.colorStops[n].opacity,l=this.colorStops[n].offset;"undefined"!==typeof s&&(a=new r.Color(a).setAlpha(s).toRgba()),t.addColorStop(l,a)}return t}}}),r.util.object.extend(r.Gradient,{fromElement:function(o,a,s,l){var u=parseFloat(s)/(/%$/.test(s)?100:1);u=u<0?0:u>1?1:u,isNaN(u)&&(u=1);var c,f,d,h,p=o.getElementsByTagName("stop"),v="userSpaceOnUse"===o.getAttribute("gradientUnits")?"pixels":"percentage",g=o.getAttribute("gradientTransform")||"",m=[],y=0,b=0;for("linearGradient"===o.nodeName||"LINEARGRADIENT"===o.nodeName?(c="linear",f=t(o)):(c="radial",f=n(o)),d=p.length;d--;)m.push(e(p[d],u));h=r.parseTransformAttribute(g),i(a,f,l,v),"pixels"===v&&(y=-a.left,b=-a.top);var w=new r.Gradient({id:o.getAttribute("id"),type:c,coords:f,colorStops:m,gradientUnits:v,gradientTransform:h,offsetX:y,offsetY:b});return w}})}(),function(){"use strict";var e=r.util.toFixed;r.Pattern=r.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(e,t){if(e||(e={}),this.id=r.Object.__uid++,this.setOptions(e),!e.source||e.source&&"string"!==typeof e.source)t&&t(this);else{var n=this;this.source=r.util.createImage(),r.util.loadImage(e.source,(function(e,r){n.source=e,t&&t(n,r)}),null,this.crossOrigin)}},toObject:function(t){var n,o,i=r.Object.NUM_FRACTION_DIGITS;return"string"===typeof this.source.src?n=this.source.src:"object"===typeof this.source&&this.source.toDataURL&&(n=this.source.toDataURL()),o={type:"pattern",source:n,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:e(this.offsetX,i),offsetY:e(this.offsetY,i),patternTransform:this.patternTransform?this.patternTransform.concat():null},r.util.populateWithProperties(this,o,t),o},toSVG:function(e){var t="function"===typeof this.source?this.source():this.source,n=t.width/e.width,r=t.height/e.height,o=this.offsetX/e.width,i=this.offsetY/e.height,a="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(r=1,i&&(r+=Math.abs(i))),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(n=1,o&&(n+=Math.abs(o))),t.src?a=t.src:t.toDataURL&&(a=t.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+o+'" y="'+i+'" width="'+n+'" height="'+r+'">\n<image x="0" y="0" width="'+t.width+'" height="'+t.height+'" xlink:href="'+a+'"></image>\n</pattern>\n'},setOptions:function(e){for(var t in e)this[t]=e[t]},toLive:function(e){var t=this.source;if(!t)return"";if("undefined"!==typeof t.src){if(!t.complete)return"";if(0===t.naturalWidth||0===t.naturalHeight)return""}return e.createPattern(t,this.repeat)}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.toFixed;t.Shadow?t.warn("fabric.Shadow is already defined."):(t.Shadow=t.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(e){for(var n in"string"===typeof e&&(e=this._parseShadow(e)),e)this[n]=e[n];this.id=t.Object.__uid++},_parseShadow:function(e){var n=e.trim(),r=t.Shadow.reOffsetsAndBlur.exec(n)||[],o=n.replace(t.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:o.trim(),offsetX:parseFloat(r[1],10)||0,offsetY:parseFloat(r[2],10)||0,blur:parseFloat(r[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(e){var r=40,o=40,i=t.Object.NUM_FRACTION_DIGITS,a=t.util.rotateVector({x:this.offsetX,y:this.offsetY},t.util.degreesToRadians(-e.angle)),s=20,l=new t.Color(this.color);return e.width&&e.height&&(r=100*n((Math.abs(a.x)+this.blur)/e.width,i)+s,o=100*n((Math.abs(a.y)+this.blur)/e.height,i)+s),e.flipX&&(a.x*=-1),e.flipY&&(a.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+o+'%" height="'+(100+2*o)+'%" x="-'+r+'%" width="'+(100+2*r)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+n(this.blur?this.blur/2:0,i)+'"></feGaussianBlur>\n\t<feOffset dx="'+n(a.x,i)+'" dy="'+n(a.y,i)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+l.toRgb()+'" flood-opacity="'+l.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var e={},n=t.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach((function(t){this[t]!==n[t]&&(e[t]=this[t])}),this),e}}),t.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/)}(t),function(){"use strict";if(r.StaticCanvas)r.warn("fabric.StaticCanvas is already defined.");else{var e=r.util.object.extend,t=r.util.getElementOffset,n=r.util.removeFromArray,o=r.util.toFixed,i=r.util.transformPoint,a=r.util.invertTransform,s=r.util.getNodeCanvas,l=r.util.createCanvasElement,u=new Error("Could not initialize `canvas` element");r.StaticCanvas=r.util.createClass(r.CommonMethods,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:r.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(e,t){var n=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(e),this._initOptions(t),this.interactive||this._initRetinaScaling(),t.overlayImage&&this.setOverlayImage(t.overlayImage,n),t.backgroundImage&&this.setBackgroundImage(t.backgroundImage,n),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor,n),t.overlayColor&&this.setOverlayColor(t.overlayColor,n),this.calcOffset()},_isRetinaScaling:function(){return r.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,r.devicePixelRatio):1},_initRetinaScaling:function(){if(this._isRetinaScaling()){var e=r.devicePixelRatio;this.__initRetinaScaling(e,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(e,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(e,t,n){t.setAttribute("width",this.width*e),t.setAttribute("height",this.height*e),n.scale(e,e)},calcOffset:function(){return this._offset=t(this.lowerCanvasEl),this},setOverlayImage:function(e,t,n){return this.__setBgOverlayImage("overlayImage",e,t,n)},setBackgroundImage:function(e,t,n){return this.__setBgOverlayImage("backgroundImage",e,t,n)},setOverlayColor:function(e,t){return this.__setBgOverlayColor("overlayColor",e,t)},setBackgroundColor:function(e,t){return this.__setBgOverlayColor("backgroundColor",e,t)},__setBgOverlayImage:function(e,t,n,o){return"string"===typeof t?r.util.loadImage(t,(function(t,i){if(t){var a=new r.Image(t,o);this[e]=a,a.canvas=this}n&&n(t,i)}),this,o&&o.crossOrigin):(o&&t.setOptions(o),this[e]=t,t&&(t.canvas=this),n&&n(t,!1)),this},__setBgOverlayColor:function(e,t,n){return this[e]=t,this._initGradient(t,e),this._initPattern(t,e,n),this},_createCanvasElement:function(){var e=l();if(!e)throw u;if(e.style||(e.style={}),"undefined"===typeof e.getContext)throw u;return e},_initOptions:function(e){var t=this.lowerCanvasEl;this._setOptions(e),this.width=this.width||parseInt(t.width,10)||0,this.height=this.height||parseInt(t.height,10)||0,this.lowerCanvasEl.style&&(t.width=this.width,t.height=this.height,t.style.width=this.width+"px",t.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(e){e&&e.getContext?this.lowerCanvasEl=e:this.lowerCanvasEl=r.util.getById(e)||this._createCanvasElement(),r.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(e,t){return this.setDimensions({width:e},t)},setHeight:function(e,t){return this.setDimensions({height:e},t)},setDimensions:function(e,t){var n;for(var r in t=t||{},e)n=e[r],t.cssOnly||(this._setBackstoreDimension(r,e[r]),n+="px",this.hasLostContext=!0),t.backstoreOnly||this._setCssDimension(r,n);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),t.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(e,t){return this.lowerCanvasEl[e]=t,this.upperCanvasEl&&(this.upperCanvasEl[e]=t),this.cacheCanvasEl&&(this.cacheCanvasEl[e]=t),this[e]=t,this},_setCssDimension:function(e,t){return this.lowerCanvasEl.style[e]=t,this.upperCanvasEl&&(this.upperCanvasEl.style[e]=t),this.wrapperEl&&(this.wrapperEl.style[e]=t),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(e){var t,n,r,o=this._activeObject,i=this.backgroundImage,a=this.overlayImage;for(this.viewportTransform=e,n=0,r=this._objects.length;n<r;n++)t=this._objects[n],t.group||t.setCoords(!0);return o&&o.setCoords(),i&&i.setCoords(!0),a&&a.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(e,t){var n=e,r=this.viewportTransform.slice(0);e=i(e,a(this.viewportTransform)),r[0]=t,r[3]=t;var o=i(e,r);return r[4]+=n.x-o.x,r[5]+=n.y-o.y,this.setViewportTransform(r)},setZoom:function(e){return this.zoomToPoint(new r.Point(0,0),e),this},absolutePan:function(e){var t=this.viewportTransform.slice(0);return t[4]=-e.x,t[5]=-e.y,this.setViewportTransform(t)},relativePan:function(e){return this.absolutePan(new r.Point(-e.x-this.viewportTransform[4],-e.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(e){this.stateful&&e.setupState(),e._set("canvas",this),e.setCoords(),this.fire("object:added",{target:e}),e.fire("added")},_onObjectRemoved:function(e){this.fire("object:removed",{target:e}),e.fire("removed"),delete e.canvas},clearContext:function(e){return e.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var e=this.contextContainer;return this.renderCanvas(e,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=r.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var e={},t=this.width,n=this.height,o=a(this.viewportTransform);return e.tl=i({x:0,y:0},o),e.br=i({x:t,y:n},o),e.tr=new r.Point(e.br.x,e.tl.y),e.bl=new r.Point(e.tl.x,e.br.y),this.vptCoords=e,e},cancelRequestedRender:function(){this.isRendering&&(r.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(e,t){var n=this.viewportTransform,o=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(e),r.util.setImageSmoothing(e,this.imageSmoothingEnabled),this.fire("before:render",{ctx:e}),this._renderBackground(e),e.save(),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this._renderObjects(e,t),e.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),o&&(o.canvas=this,o.shouldCache(),o._transformDone=!0,o.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(e)),this._renderOverlay(e),this.controlsAboveOverlay&&this.interactive&&this.drawControls(e),this.fire("after:render",{ctx:e})},drawClipPathOnCanvas:function(e){var t=this.viewportTransform,n=this.clipPath;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5]),e.globalCompositeOperation="destination-in",n.transform(e),e.scale(1/n.zoomX,1/n.zoomY),e.drawImage(n._cacheCanvas,-n.cacheTranslationX,-n.cacheTranslationY),e.restore()},_renderObjects:function(e,t){var n,r;for(n=0,r=t.length;n<r;++n)t[n]&&t[n].render(e)},_renderBackgroundOrOverlay:function(e,t){var n=this[t+"Color"],r=this[t+"Image"],o=this.viewportTransform,i=this[t+"Vpt"];if(n||r){if(n){e.save(),e.beginPath(),e.moveTo(0,0),e.lineTo(this.width,0),e.lineTo(this.width,this.height),e.lineTo(0,this.height),e.closePath(),e.fillStyle=n.toLive?n.toLive(e,this):n,i&&e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),e.transform(1,0,0,1,n.offsetX||0,n.offsetY||0);var a=n.gradientTransform||n.patternTransform;a&&e.transform(a[0],a[1],a[2],a[3],a[4],a[5]),e.fill(),e.restore()}if(r){e.save();var s=this.skipOffscreen;this.skipOffscreen=i,i&&e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),r.render(e),this.skipOffscreen=s,e.restore()}}},_renderBackground:function(e){this._renderBackgroundOrOverlay(e,"background")},_renderOverlay:function(e){this._renderBackgroundOrOverlay(e,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new r.Point(this.width/2,this.height/2)},centerObjectH:function(e){return this._centerObject(e,new r.Point(this.getCenterPoint().x,e.getCenterPoint().y))},centerObjectV:function(e){return this._centerObject(e,new r.Point(e.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(e){var t=this.getCenterPoint();return this._centerObject(e,t)},viewportCenterObject:function(e){var t=this.getVpCenter();return this._centerObject(e,t)},viewportCenterObjectH:function(e){var t=this.getVpCenter();return this._centerObject(e,new r.Point(t.x,e.getCenterPoint().y)),this},viewportCenterObjectV:function(e){var t=this.getVpCenter();return this._centerObject(e,new r.Point(e.getCenterPoint().x,t.y))},getVpCenter:function(){var e=this.getCenterPoint(),t=a(this.viewportTransform);return i(e,t)},_centerObject:function(e,t){return e.setPositionByOrigin(t,"center","center"),e.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(e){return this.toDatalessObject(e)},toObject:function(e){return this._toObjectMethod("toObject",e)},toDatalessObject:function(e){return this._toObjectMethod("toDatalessObject",e)},_toObjectMethod:function(t,n){var o=this.clipPath,i={version:r.version,objects:this._toObjects(t,n)};return o&&!o.excludeFromExport&&(i.clipPath=this._toObject(this.clipPath,t,n)),e(i,this.__serializeBgOverlay(t,n)),r.util.populateWithProperties(this,i,n),i},_toObjects:function(e,t){return this._objects.filter((function(e){return!e.excludeFromExport})).map((function(n){return this._toObject(n,e,t)}),this)},_toObject:function(e,t,n){var r;this.includeDefaultValues||(r=e.includeDefaultValues,e.includeDefaultValues=!1);var o=e[t](n);return this.includeDefaultValues||(e.includeDefaultValues=r),o},__serializeBgOverlay:function(e,t){var n={},r=this.backgroundImage,o=this.overlayImage,i=this.backgroundColor,a=this.overlayColor;return i&&i.toObject?i.excludeFromExport||(n.background=i.toObject(t)):i&&(n.background=i),a&&a.toObject?a.excludeFromExport||(n.overlay=a.toObject(t)):a&&(n.overlay=a),r&&!r.excludeFromExport&&(n.backgroundImage=this._toObject(r,e,t)),o&&!o.excludeFromExport&&(n.overlayImage=this._toObject(o,e,t)),n},svgViewportTransformation:!0,toSVG:function(e,t){e||(e={}),e.reviver=t;var n=[];return this._setSVGPreamble(n,e),this._setSVGHeader(n,e),this.clipPath&&n.push('<g clip-path="url(#'+this.clipPath.clipPathId+')" >\n'),this._setSVGBgOverlayColor(n,"background"),this._setSVGBgOverlayImage(n,"backgroundImage",t),this._setSVGObjects(n,t),this.clipPath&&n.push("</g>\n"),this._setSVGBgOverlayColor(n,"overlay"),this._setSVGBgOverlayImage(n,"overlayImage",t),n.push("</svg>"),n.join("")},_setSVGPreamble:function(e,t){t.suppressPreamble||e.push('<?xml version="1.0" encoding="',t.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(e,t){var n,i=t.width||this.width,a=t.height||this.height,s='viewBox="0 0 '+this.width+" "+this.height+'" ',l=r.Object.NUM_FRACTION_DIGITS;t.viewBox?s='viewBox="'+t.viewBox.x+" "+t.viewBox.y+" "+t.viewBox.width+" "+t.viewBox.height+'" ':this.svgViewportTransformation&&(n=this.viewportTransform,s='viewBox="'+o(-n[4]/n[0],l)+" "+o(-n[5]/n[3],l)+" "+o(this.width/n[0],l)+" "+o(this.height/n[3],l)+'" '),e.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',i,'" ','height="',a,'" ',s,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",r.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(t),"</defs>\n")},createSVGClipPathMarkup:function(e){var t=this.clipPath;return t?(t.clipPathId="CLIPPATH_"+r.Object.__uid++,'<clipPath id="'+t.clipPathId+'" >\n'+this.clipPath.toClipPathSVG(e.reviver)+"</clipPath>\n"):""},createSVGRefElementsMarkup:function(){var e=this,t=["background","overlay"].map((function(t){var n=e[t+"Color"];if(n&&n.toLive){var o=e[t+"Vpt"],i=e.viewportTransform,a={width:e.width/(o?i[0]:1),height:e.height/(o?i[3]:1)};return n.toSVG(a,{additionalTransform:o?r.util.matrixToSVG(i):""})}}));return t.join("")},createSVGFontFacesMarkup:function(){var e,t,n,o,i,a,s,l,u,c="",f={},d=r.fontPaths,h=[];for(this._objects.forEach((function e(t){h.push(t),t._objects&&t._objects.forEach(e)})),l=0,u=h.length;l<u;l++)if(e=h[l],t=e.fontFamily,-1!==e.type.indexOf("text")&&!f[t]&&d[t]&&(f[t]=!0,e.styles))for(i in n=e.styles,n)for(s in o=n[i],o)a=o[s],t=a.fontFamily,!f[t]&&d[t]&&(f[t]=!0);for(var p in f)c+=["\t\t@font-face {\n","\t\t\tfont-family: '",p,"';\n","\t\t\tsrc: url('",d[p],"');\n","\t\t}\n"].join("");return c&&(c=['\t<style type="text/css">',"<![CDATA[\n",c,"]]>","</style>\n"].join("")),c},_setSVGObjects:function(e,t){var n,r,o,i=this._objects;for(r=0,o=i.length;r<o;r++)n=i[r],n.excludeFromExport||this._setSVGObject(e,n,t)},_setSVGObject:function(e,t,n){e.push(t.toSVG(n))},_setSVGBgOverlayImage:function(e,t,n){this[t]&&!this[t].excludeFromExport&&this[t].toSVG&&e.push(this[t].toSVG(n))},_setSVGBgOverlayColor:function(e,t){var n=this[t+"Color"],o=this.viewportTransform,i=this.width,a=this.height;if(n)if(n.toLive){var s=n.repeat,l=r.util.invertTransform(o),u=this[t+"Vpt"],c=u?r.util.matrixToSVG(l):"";e.push('<rect transform="'+c+" translate(",i/2,",",a/2,')"',' x="',n.offsetX-i/2,'" y="',n.offsetY-a/2,'" ','width="',"repeat-y"===s||"no-repeat"===s?n.source.width:i,'" height="',"repeat-x"===s||"no-repeat"===s?n.source.height:a,'" fill="url(#SVGID_'+n.id+')"',"></rect>\n")}else e.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',n,'"',"></rect>\n")},sendToBack:function(e){if(!e)return this;var t,r,o,i=this._activeObject;if(e===i&&"activeSelection"===e.type)for(o=i._objects,t=o.length;t--;)r=o[t],n(this._objects,r),this._objects.unshift(r);else n(this._objects,e),this._objects.unshift(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(e){if(!e)return this;var t,r,o,i=this._activeObject;if(e===i&&"activeSelection"===e.type)for(o=i._objects,t=0;t<o.length;t++)r=o[t],n(this._objects,r),this._objects.push(r);else n(this._objects,e),this._objects.push(e);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(e,t){if(!e)return this;var r,o,i,a,s,l=this._activeObject,u=0;if(e===l&&"activeSelection"===e.type)for(s=l._objects,r=0;r<s.length;r++)o=s[r],i=this._objects.indexOf(o),i>0+u&&(a=i-1,n(this._objects,o),this._objects.splice(a,0,o)),u++;else i=this._objects.indexOf(e),0!==i&&(a=this._findNewLowerIndex(e,i,t),n(this._objects,e),this._objects.splice(a,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(e,t,n){var r,o;if(n)for(r=t,o=t-1;o>=0;--o){var i=e.intersectsWithObject(this._objects[o])||e.isContainedWithinObject(this._objects[o])||this._objects[o].isContainedWithinObject(e);if(i){r=o;break}}else r=t-1;return r},bringForward:function(e,t){if(!e)return this;var r,o,i,a,s,l=this._activeObject,u=0;if(e===l&&"activeSelection"===e.type)for(s=l._objects,r=s.length;r--;)o=s[r],i=this._objects.indexOf(o),i<this._objects.length-1-u&&(a=i+1,n(this._objects,o),this._objects.splice(a,0,o)),u++;else i=this._objects.indexOf(e),i!==this._objects.length-1&&(a=this._findNewUpperIndex(e,i,t),n(this._objects,e),this._objects.splice(a,0,e));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(e,t,n){var r,o,i;if(n)for(r=t,o=t+1,i=this._objects.length;o<i;++o){var a=e.intersectsWithObject(this._objects[o])||e.isContainedWithinObject(this._objects[o])||this._objects[o].isContainedWithinObject(e);if(a){r=o;break}}else r=t+1;return r},moveTo:function(e,t){return n(this._objects,e),this._objects.splice(t,0,e),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(r.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),r.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),r.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),e(r.StaticCanvas.prototype,r.Observable),e(r.StaticCanvas.prototype,r.Collection),e(r.StaticCanvas.prototype,r.DataURLExporter),e(r.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(e){var t=l();if(!t||!t.getContext)return null;var n=t.getContext("2d");if(!n)return null;switch(e){case"setLineDash":return"undefined"!==typeof n.setLineDash;default:return null}}}),r.StaticCanvas.prototype.toJSON=r.StaticCanvas.prototype.toObject,r.isLikelyNode&&(r.StaticCanvas.prototype.createPNGStream=function(){var e=s(this.lowerCanvasEl);return e&&e.createPNGStream()},r.StaticCanvas.prototype.createJPEGStream=function(e){var t=s(this.lowerCanvasEl);return t&&t.createJPEGStream(e)})}}(),r.BaseBrush=r.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(e){e.strokeStyle=this.color,e.lineWidth=this.width,e.lineCap=this.strokeLineCap,e.miterLimit=this.strokeMiterLimit,e.lineJoin=this.strokeLineJoin,e.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(e){var t=this.canvas.viewportTransform;e.save(),e.transform(t[0],t[1],t[2],t[3],t[4],t[5])},_setShadow:function(){if(this.shadow){var e=this.canvas,t=this.shadow,n=e.contextTop,o=e.getZoom();e&&e._isRetinaScaling()&&(o*=r.devicePixelRatio),n.shadowColor=t.color,n.shadowBlur=t.blur*o,n.shadowOffsetX=t.offsetX*o,n.shadowOffsetY=t.offsetY*o}},needsFullRender:function(){var e=new r.Color(this.color);return e.getAlpha()<1||!!this.shadow},_resetShadow:function(){var e=this.canvas.contextTop;e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0},_isOutSideCanvas:function(e){return e.x<0||e.x>this.canvas.getWidth()||e.y<0||e.y>this.canvas.getHeight()}}),function(){r.PencilBrush=r.util.createClass(r.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(e){this.canvas=e,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(e,t,n){var r=t.midPointFrom(n);return e.quadraticCurveTo(t.x,t.y,r.x,r.y),r},onMouseDown:function(e,t){this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],this._prepareForDrawing(e),this._captureDrawingPath(e),this._render())},onMouseMove:function(e,t){if(this.canvas._isMainEvent(t.e)&&(this.drawStraightLine=t.e[this.straightLineKey],(!0!==this.limitedToCanvasSize||!this._isOutSideCanvas(e))&&this._captureDrawingPath(e)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var n=this._points,r=n.length,o=this.canvas.contextTop;this._saveAndTransform(o),this.oldEnd&&(o.beginPath(),o.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(o,n[r-2],n[r-1],!0),o.stroke(),o.restore()}},onMouseUp:function(e){return!this.canvas._isMainEvent(e.e)||(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1)},_prepareForDrawing:function(e){var t=new r.Point(e.x,e.y);this._reset(),this._addPoint(t),this.canvas.contextTop.moveTo(t.x,t.y)},_addPoint:function(e){return!(this._points.length>1&&e.eq(this._points[this._points.length-1]))&&(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(e),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(e){var t=new r.Point(e.x,e.y);return this._addPoint(t)},_render:function(e){var t,n,o=this._points[0],i=this._points[1];if(e=e||this.canvas.contextTop,this._saveAndTransform(e),e.beginPath(),2===this._points.length&&o.x===i.x&&o.y===i.y){var a=this.width/1e3;o=new r.Point(o.x,o.y),i=new r.Point(i.x,i.y),o.x-=a,i.x+=a}for(e.moveTo(o.x,o.y),t=1,n=this._points.length;t<n;t++)this._drawSegment(e,o,i),o=this._points[t],i=this._points[t+1];e.lineTo(o.x,o.y),e.stroke(),e.restore()},convertPointsToSVGPath:function(e){var t=this.width/1e3;return r.util.getSmoothPathFromPoints(e,t)},_isEmptySVGPath:function(e){var t=r.util.joinPath(e);return"M 0 0 Q 0 0 0 0 L 0 0"===t},createPath:function(e){var t=new r.Path(e,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,t.shadow=new r.Shadow(this.shadow)),t},decimatePoints:function(e,t){if(e.length<=2)return e;var n,r,o=this.canvas.getZoom(),i=Math.pow(t/o,2),a=e.length-1,s=e[0],l=[s];for(n=1;n<a-1;n++)r=Math.pow(s.x-e[n].x,2)+Math.pow(s.y-e[n].y,2),r>=i&&(s=e[n],l.push(s));return l.push(e[a]),l},_finalizeAndAddPath:function(){var e=this.canvas.contextTop;e.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var t=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(t))this.canvas.requestRenderAll();else{var n=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:n}),this.canvas.add(n),this.canvas.requestRenderAll(),n.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:n})}}})}(),r.CircleBrush=r.util.createClass(r.BaseBrush,{width:10,initialize:function(e){this.canvas=e,this.points=[]},drawDot:function(e){var t=this.addPoint(e),n=this.canvas.contextTop;this._saveAndTransform(n),this.dot(n,t),n.restore()},dot:function(e,t){e.fillStyle=t.fill,e.beginPath(),e.arc(t.x,t.y,t.radius,0,2*Math.PI,!1),e.closePath(),e.fill()},onMouseDown:function(e){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(e)},_render:function(){var e,t,n=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(n),e=0,t=r.length;e<t;e++)this.dot(n,r[e]);n.restore()},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(e),this._render()):this.drawDot(e))},onMouseUp:function(){var e,t,n=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var o=[];for(e=0,t=this.points.length;e<t;e++){var i=this.points[e],a=new r.Circle({radius:i.radius,left:i.x,top:i.y,originX:"center",originY:"center",fill:i.fill});this.shadow&&(a.shadow=new r.Shadow(this.shadow)),o.push(a)}var s=new r.Group(o);s.canvas=this.canvas,this.canvas.fire("before:path:created",{path:s}),this.canvas.add(s),this.canvas.fire("path:created",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=n,this.canvas.requestRenderAll()},addPoint:function(e){var t=new r.Point(e.x,e.y),n=r.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,o=new r.Color(this.color).setAlpha(r.util.getRandomInt(0,100)/100).toRgba();return t.radius=n,t.fill=o,this.points.push(t),t}}),r.SprayBrush=r.util.createClass(r.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(e){this.canvas=e,this.sprayChunks=[]},onMouseDown:function(e){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(e),this.render(this.sprayChunkPoints)},onMouseMove:function(e){!0===this.limitedToCanvasSize&&this._isOutSideCanvas(e)||(this.addSprayChunk(e),this.render(this.sprayChunkPoints))},onMouseUp:function(){var e=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var t=[],n=0,o=this.sprayChunks.length;n<o;n++)for(var i=this.sprayChunks[n],a=0,s=i.length;a<s;a++){var l=new r.Rect({width:i[a].width,height:i[a].width,left:i[a].x+1,top:i[a].y+1,originX:"center",originY:"center",fill:this.color});t.push(l)}this.optimizeOverlapping&&(t=this._getOptimizedRects(t));var u=new r.Group(t);this.shadow&&u.set("shadow",new r.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:u}),this.canvas.add(u),this.canvas.fire("path:created",{path:u}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=e,this.canvas.requestRenderAll()},_getOptimizedRects:function(e){var t,n,r,o={};for(n=0,r=e.length;n<r;n++)t=e[n].left+""+e[n].top,o[t]||(o[t]=e[n]);var i=[];for(t in o)i.push(o[t]);return i},render:function(e){var t,n,r=this.canvas.contextTop;for(r.fillStyle=this.color,this._saveAndTransform(r),t=0,n=e.length;t<n;t++){var o=e[t];"undefined"!==typeof o.opacity&&(r.globalAlpha=o.opacity),r.fillRect(o.x,o.y,o.width,o.width)}r.restore()},_render:function(){var e,t,n=this.canvas.contextTop;for(n.fillStyle=this.color,this._saveAndTransform(n),e=0,t=this.sprayChunks.length;e<t;e++)this.render(this.sprayChunks[e]);n.restore()},addSprayChunk:function(e){this.sprayChunkPoints=[];var t,n,o,i,a=this.width/2;for(i=0;i<this.density;i++){t=r.util.getRandomInt(e.x-a,e.x+a),n=r.util.getRandomInt(e.y-a,e.y+a),o=this.dotWidthVariance?r.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var s=new r.Point(t,n);s.width=o,this.randomOpacity&&(s.opacity=r.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),r.PatternBrush=r.util.createClass(r.PencilBrush,{getPatternSrc:function(){var e=20,t=5,n=r.util.createCanvasElement(),o=n.getContext("2d");return n.width=n.height=e+t,o.fillStyle=this.color,o.beginPath(),o.arc(e/2,e/2,e/2,0,2*Math.PI,!1),o.closePath(),o.fill(),n},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(e){return e.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(e){this.callSuper("_setBrushStyles",e),e.strokeStyle=this.getPattern(e)},createPath:function(e){var t=this.callSuper("createPath",e),n=t._getLeftTopCoords().scalarAdd(t.strokeWidth/2);return t.stroke=new r.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-n.x,offsetY:-n.y}),t}}),function(){var e=r.util.getPointer,t=r.util.degreesToRadians,n=r.util.isTouchEvent;for(var o in r.Canvas=r.util.createClass(r.StaticCanvas,{initialize:function(e,t){t||(t={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(e,t),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,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",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=r.PencilBrush&&new r.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var e,t,n,r=this.getActiveObjects();if(r.length>0&&!this.preserveObjectStacking){t=[],n=[];for(var o=0,i=this._objects.length;o<i;o++)e=this._objects[o],-1===r.indexOf(e)?t.push(e):n.push(e);r.length>1&&(this._activeObject._objects=n),t.push.apply(t,n)}else t=this._objects;return t},renderAll:function(){!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var e=this.contextContainer;return this.renderCanvas(e,this._chooseObjectsToRender()),this},renderTopLayer:function(e){e.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(e),this.contextTopDirty=!0),e.restore()},renderTop:function(){var e=this.contextTop;return this.clearContext(e),this.renderTopLayer(e),this.fire("after:render"),this},_normalizePointer:function(e,t){var n=e.calcTransformMatrix(),o=r.util.invertTransform(n),i=this.restorePointerVpt(t);return r.util.transformPoint(i,o)},isTargetTransparent:function(e,t,n){if(e.shouldCache()&&e._cacheCanvas&&e!==this._activeObject){var o=this._normalizePointer(e,{x:t,y:n}),i=Math.max(e.cacheTranslationX+o.x*e.zoomX,0),a=Math.max(e.cacheTranslationY+o.y*e.zoomY,0),s=r.util.isTransparent(e._cacheContext,Math.round(i),Math.round(a),this.targetFindTolerance);return s}var l=this.contextCache,u=e.selectionBackgroundColor,c=this.viewportTransform;e.selectionBackgroundColor="",this.clearContext(l),l.save(),l.transform(c[0],c[1],c[2],c[3],c[4],c[5]),e.render(l),l.restore(),e.selectionBackgroundColor=u;s=r.util.isTransparent(l,t,n,this.targetFindTolerance);return s},_isSelectionKeyPressed:function(e){var t=!1;return t=Array.isArray(this.selectionKey)?!!this.selectionKey.find((function(t){return!0===e[t]})):e[this.selectionKey],t},_shouldClearSelection:function(e,t){var n=this.getActiveObjects(),r=this._activeObject;return!t||t&&r&&n.length>1&&-1===n.indexOf(t)&&r!==t&&!this._isSelectionKeyPressed(e)||t&&!t.evented||t&&!t.selectable&&r&&r!==t},_shouldCenterTransform:function(e,t,n){var r;if(e)return"scale"===t||"scaleX"===t||"scaleY"===t||"resizing"===t?r=this.centeredScaling||e.centeredScaling:"rotate"===t&&(r=this.centeredRotation||e.centeredRotation),r?!n:n},_getOriginFromCorner:function(e,t){var n={x:e.originX,y:e.originY};return"ml"===t||"tl"===t||"bl"===t?n.x="right":"mr"!==t&&"tr"!==t&&"br"!==t||(n.x="left"),"tl"===t||"mt"===t||"tr"===t?n.y="bottom":"bl"!==t&&"mb"!==t&&"br"!==t||(n.y="top"),n},_getActionFromCorner:function(e,t,n,r){if(!t||!e)return"drag";var o=r.controls[t];return o.getActionName(n,o,r)},_setupCurrentTransform:function(e,n,o){if(n){var i=this.getPointer(e),a=n.__corner,s=n.controls[a],l=o&&a?s.getActionHandler(e,n,s):r.controlsUtils.dragHandler,u=this._getActionFromCorner(o,a,e,n),c=this._getOriginFromCorner(n,a),f=e[this.centeredKey],d={target:n,action:u,actionHandler:l,corner:a,scaleX:n.scaleX,scaleY:n.scaleY,skewX:n.skewX,skewY:n.skewY,offsetX:i.x-n.left,offsetY:i.y-n.top,originX:c.x,originY:c.y,ex:i.x,ey:i.y,lastX:i.x,lastY:i.y,theta:t(n.angle),width:n.width*n.scaleX,shiftKey:e.shiftKey,altKey:f,original:r.util.saveObjectTransform(n)};this._shouldCenterTransform(n,u,f)&&(d.originX="center",d.originY="center"),d.original.originX=c.x,d.original.originY=c.y,this._currentTransform=d,this._beforeTransform(e)}},setCursor:function(e){this.upperCanvasEl.style.cursor=e},_drawSelection:function(e){var t=this._groupSelector,n=new r.Point(t.ex,t.ey),o=r.util.transformPoint(n,this.viewportTransform),i=new r.Point(t.ex+t.left,t.ey+t.top),a=r.util.transformPoint(i,this.viewportTransform),s=Math.min(o.x,a.x),l=Math.min(o.y,a.y),u=Math.max(o.x,a.x),c=Math.max(o.y,a.y),f=this.selectionLineWidth/2;this.selectionColor&&(e.fillStyle=this.selectionColor,e.fillRect(s,l,u-s,c-l)),this.selectionLineWidth&&this.selectionBorderColor&&(e.lineWidth=this.selectionLineWidth,e.strokeStyle=this.selectionBorderColor,s+=f,l+=f,u-=f,c-=f,r.Object.prototype._setLineDash.call(this,e,this.selectionDashArray),e.strokeRect(s,l,u-s,c-l))},findTarget:function(e,t){if(!this.skipTargetFind){var r,o,i=!0,a=this.getPointer(e,i),s=this._activeObject,l=this.getActiveObjects(),u=n(e),c=l.length>1&&!t||1===l.length;if(this.targets=[],c&&s._findTargetCorner(a,u))return s;if(l.length>1&&!t&&s===this._searchPossibleTargets([s],a))return s;if(1===l.length&&s===this._searchPossibleTargets([s],a)){if(!this.preserveObjectStacking)return s;r=s,o=this.targets,this.targets=[]}var f=this._searchPossibleTargets(this._objects,a);return e[this.altSelectionKey]&&f&&r&&f!==r&&(f=r,this.targets=o),f}},_checkTarget:function(e,t,n){if(t&&t.visible&&t.evented&&t.containsPoint(e)){if(!this.perPixelTargetFind&&!t.perPixelTargetFind||t.isEditing)return!0;var r=this.isTargetTransparent(t,n.x,n.y);if(!r)return!0}},_searchPossibleTargets:function(e,t){var n,o,i=e.length;while(i--){var a=e[i],s=a.group?this._normalizePointer(a.group,t):t;if(this._checkTarget(s,a,t)){n=e[i],n.subTargetCheck&&n instanceof r.Group&&(o=this._searchPossibleTargets(n._objects,t),o&&this.targets.push(o));break}}return n},restorePointerVpt:function(e){return r.util.transformPoint(e,r.util.invertTransform(this.viewportTransform))},getPointer:function(t,n){if(this._absolutePointer&&!n)return this._absolutePointer;if(this._pointer&&n)return this._pointer;var r,o=e(t),i=this.upperCanvasEl,a=i.getBoundingClientRect(),s=a.width||0,l=a.height||0;s&&l||("top"in a&&"bottom"in a&&(l=Math.abs(a.top-a.bottom)),"right"in a&&"left"in a&&(s=Math.abs(a.right-a.left))),this.calcOffset(),o.x=o.x-this._offset.left,o.y=o.y-this._offset.top,n||(o=this.restorePointerVpt(o));var u=this.getRetinaScaling();return 1!==u&&(o.x/=u,o.y/=u),r=0===s||0===l?{width:1,height:1}:{width:i.width/s,height:i.height/l},{x:o.x*r.width,y:o.y*r.height}},_createUpperCanvas:function(){var e=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),t=this.lowerCanvasEl,n=this.upperCanvasEl;n?n.className="":(n=this._createCanvasElement(),this.upperCanvasEl=n),r.util.addClass(n,"upper-canvas "+e),this.wrapperEl.appendChild(n),this._copyCanvasStyle(t,n),this._applyCanvasStyle(n),this.contextTop=n.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=r.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),r.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),r.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(e){var t=this.width||e.width,n=this.height||e.height;r.util.setStyle(e,{position:"absolute",width:t+"px",height:n+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),e.width=t,e.height=n,r.util.makeElementUnselectable(e)},_copyCanvasStyle:function(e,t){t.style.cssText=e.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var e=this._activeObject;return e?"activeSelection"===e.type&&e._objects?e._objects.slice(0):[e]:[]},_onObjectRemoved:function(e){e===this._activeObject&&(this.fire("before:selection:cleared",{target:e}),this._discardActiveObject(),this.fire("selection:cleared",{target:e}),e.fire("deselected")),e===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",e)},_fireSelectionEvents:function(e,t){var n=!1,r=this.getActiveObjects(),o=[],i=[];e.forEach((function(e){-1===r.indexOf(e)&&(n=!0,e.fire("deselected",{e:t,target:e}),i.push(e))})),r.forEach((function(r){-1===e.indexOf(r)&&(n=!0,r.fire("selected",{e:t,target:r}),o.push(r))})),e.length>0&&r.length>0?n&&this.fire("selection:updated",{e:t,selected:o,deselected:i}):r.length>0?this.fire("selection:created",{e:t,selected:o}):e.length>0&&this.fire("selection:cleared",{e:t,deselected:i})},setActiveObject:function(e,t){var n=this.getActiveObjects();return this._setActiveObject(e,t),this._fireSelectionEvents(n,t),this},_setActiveObject:function(e,t){return this._activeObject!==e&&(!!this._discardActiveObject(t,e)&&(!e.onSelect({e:t})&&(this._activeObject=e,!0)))},_discardActiveObject:function(e,t){var n=this._activeObject;if(n){if(n.onDeselect({e:e,object:t}))return!1;this._activeObject=null}return!0},discardActiveObject:function(e){var t=this.getActiveObjects(),n=this.getActiveObject();return t.length&&this.fire("before:selection:cleared",{target:n,e:e}),this._discardActiveObject(e),this._fireSelectionEvents(t,e),this},dispose:function(){var e=this.wrapperEl;return this.removeListeners(),e.removeChild(this.upperCanvasEl),e.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(e){r.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this)),e.parentNode&&e.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,r.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(e){var t=this._activeObject;t&&t._renderControls(e)},_toObject:function(e,t,n){var r=this._realizeGroupTransformOnObject(e),o=this.callSuper("_toObject",e,t,n);return this._unwindGroupTransformOnObject(e,r),o},_realizeGroupTransformOnObject:function(e){if(e.group&&"activeSelection"===e.group.type&&this._activeObject===e.group){var t=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],n={};return t.forEach((function(t){n[t]=e[t]})),r.util.addTransformToObject(e,this._activeObject.calcOwnMatrix()),n}return null},_unwindGroupTransformOnObject:function(e,t){t&&e.set(t)},_setSVGObject:function(e,t,n){var r=this._realizeGroupTransformOnObject(t);this.callSuper("_setSVGObject",e,t,n),this._unwindGroupTransformOnObject(t,r)},setViewportTransform:function(e){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),r.StaticCanvas.prototype.setViewportTransform.call(this,e)}}),r.StaticCanvas)"prototype"!==o&&(r.Canvas[o]=r.StaticCanvas[o])}(),function(){var e=r.util.addListener,t=r.util.removeListener,n=3,o=2,i=1,a={passive:!1};function s(e,t){return e.button&&e.button===t-1}r.util.object.extend(r.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(e,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(e,t){var n=this.upperCanvasEl,o=this._getEventPrefix();e(r.window,"resize",this._onResize),e(n,o+"down",this._onMouseDown),e(n,o+"move",this._onMouseMove,a),e(n,o+"out",this._onMouseOut),e(n,o+"enter",this._onMouseEnter),e(n,"wheel",this._onMouseWheel),e(n,"contextmenu",this._onContextMenu),e(n,"dblclick",this._onDoubleClick),e(n,"dragover",this._onDragOver),e(n,"dragenter",this._onDragEnter),e(n,"dragleave",this._onDragLeave),e(n,"drop",this._onDrop),this.enablePointerEvents||e(n,"touchstart",this._onTouchStart,a),"undefined"!==typeof eventjs&&t in eventjs&&(eventjs[t](n,"gesture",this._onGesture),eventjs[t](n,"drag",this._onDrag),eventjs[t](n,"orientation",this._onOrientationChange),eventjs[t](n,"shake",this._onShake),eventjs[t](n,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(t,"remove");var e=this._getEventPrefix();t(r.document,e+"up",this._onMouseUp),t(r.document,"touchend",this._onTouchEnd,a),t(r.document,e+"move",this._onMouseMove,a),t(r.document,"touchmove",this._onMouseMove,a)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(e,t){this.__onTransformGesture&&this.__onTransformGesture(e,t)},_onDrag:function(e,t){this.__onDrag&&this.__onDrag(e,t)},_onMouseWheel:function(e){this.__onMouseWheel(e)},_onMouseOut:function(e){var t=this._hoveredTarget;this.fire("mouse:out",{target:t,e:e}),this._hoveredTarget=null,t&&t.fire("mouseout",{e:e});var n=this;this._hoveredTargets.forEach((function(t){n.fire("mouse:out",{target:t,e:e}),t&&t.fire("mouseout",{e:e})})),this._hoveredTargets=[]},_onMouseEnter:function(e){this._currentTransform||this.findTarget(e)||(this.fire("mouse:over",{target:null,e:e}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(e,t){this.__onOrientationChange&&this.__onOrientationChange(e,t)},_onShake:function(e,t){this.__onShake&&this.__onShake(e,t)},_onLongPress:function(e,t){this.__onLongPress&&this.__onLongPress(e,t)},_onDragOver:function(e){e.preventDefault();var t=this._simpleEventHandler("dragover",e);this._fireEnterLeaveEvents(t,e)},_onDrop:function(e){return this._simpleEventHandler("drop:before",e),this._simpleEventHandler("drop",e)},_onContextMenu:function(e){return this.stopContextMenu&&(e.stopPropagation(),e.preventDefault()),!1},_onDoubleClick:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"dblclick"),this._resetTransformEventData(e)},getPointerId:function(e){var t=e.changedTouches;return t?t[0]&&t[0].identifier:this.enablePointerEvents?e.pointerId:-1},_isMainEvent:function(e){return!0===e.isPrimary||!1!==e.isPrimary&&("touchend"===e.type&&0===e.touches.length||(!e.changedTouches||e.changedTouches[0].identifier===this.mainTouchId))},_onTouchStart:function(n){n.preventDefault(),null===this.mainTouchId&&(this.mainTouchId=this.getPointerId(n)),this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,i=this._getEventPrefix();e(r.document,"touchend",this._onTouchEnd,a),e(r.document,"touchmove",this._onMouseMove,a),t(o,i+"down",this._onMouseDown)},_onMouseDown:function(n){this.__onMouseDown(n),this._resetTransformEventData();var o=this.upperCanvasEl,i=this._getEventPrefix();t(o,i+"move",this._onMouseMove,a),e(r.document,i+"up",this._onMouseUp),e(r.document,i+"move",this._onMouseMove,a)},_onTouchEnd:function(n){if(!(n.touches.length>0)){this.__onMouseUp(n),this._resetTransformEventData(),this.mainTouchId=null;var o=this._getEventPrefix();t(r.document,"touchend",this._onTouchEnd,a),t(r.document,"touchmove",this._onMouseMove,a);var i=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout((function(){e(i.upperCanvasEl,o+"down",i._onMouseDown),i._willAddMouseDown=0}),400)}},_onMouseUp:function(n){this.__onMouseUp(n),this._resetTransformEventData();var o=this.upperCanvasEl,i=this._getEventPrefix();this._isMainEvent(n)&&(t(r.document,i+"up",this._onMouseUp),t(r.document,i+"move",this._onMouseMove,a),e(o,i+"move",this._onMouseMove,a))},_onMouseMove:function(e){!this.allowTouchScrolling&&e.preventDefault&&e.preventDefault(),this.__onMouseMove(e)},_onResize:function(){this.calcOffset()},_shouldRender:function(e){var t=this._activeObject;return!!(!!t!==!!e||t&&e&&t!==e)||(t&&t.isEditing,!1)},__onMouseUp:function(e){var t,a=this._currentTransform,l=this._groupSelector,u=!1,c=!l||0===l.left&&0===l.top;if(this._cacheTransformEventData(e),t=this._target,this._handleEvent(e,"up:before"),s(e,n))this.fireRightClick&&this._handleEvent(e,"up",n,c);else{if(s(e,o))return this.fireMiddleClick&&this._handleEvent(e,"up",o,c),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(e);else if(this._isMainEvent(e)){if(a&&(this._finalizeCurrentTransform(e),u=a.actionPerformed),!c){var f=t===this._activeObject;this._maybeGroupObjects(e),u||(u=this._shouldRender(t)||!f&&t===this._activeObject)}var d,h;if(t){if(d=t._findTargetCorner(this.getPointer(e,!0),r.util.isTouchEvent(e)),t.selectable&&t!==this._activeObject&&"up"===t.activeOn)this.setActiveObject(t,e),u=!0;else{var p=t.controls[d],v=p&&p.getMouseUpHandler(e,t,p);v&&(h=this.getPointer(e),v(e,a,h.x,h.y))}t.isMoving=!1}if(a&&(a.target!==t||a.corner!==d)){var g=a.target&&a.target.controls[a.corner],m=g&&g.getMouseUpHandler(e,t,p);h=h||this.getPointer(e),m&&m(e,a,h.x,h.y)}this._setCursorFromEvent(e,t),this._handleEvent(e,"up",i,c),this._groupSelector=null,this._currentTransform=null,t&&(t.__corner=0),u?this.requestRenderAll():c||this.renderTop()}}},_simpleEventHandler:function(e,t){var n=this.findTarget(t),r=this.targets,o={e:t,target:n,subTargets:r};if(this.fire(e,o),n&&n.fire(e,o),!r)return n;for(var i=0;i<r.length;i++)r[i].fire(e,o);return n},_handleEvent:function(e,t,n,r){var o=this._target,a=this.targets||[],s={e:e,target:o,subTargets:a,button:n||i,isClick:r||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};"up"===t&&(s.currentTarget=this.findTarget(e),s.currentSubTargets=this.targets),this.fire("mouse:"+t,s),o&&o.fire("mouse"+t,s);for(var l=0;l<a.length;l++)a[l].fire("mouse"+t,s)},_finalizeCurrentTransform:function(e){var t=this._currentTransform,n=t.target,r={e:e,target:n,transform:t,action:t.action};n._scaling&&(n._scaling=!1),n.setCoords(),(t.actionPerformed||this.stateful&&n.hasStateChanged())&&this._fire("modified",r)},_onMouseDownInDrawingMode:function(e){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(e).requestRenderAll();var t=this.getPointer(e);this.freeDrawingBrush.onMouseDown(t,{e:e,pointer:t}),this._handleEvent(e,"down")},_onMouseMoveInDrawingMode:function(e){if(this._isCurrentlyDrawing){var t=this.getPointer(e);this.freeDrawingBrush.onMouseMove(t,{e:e,pointer:t})}this.setCursor(this.freeDrawingCursor),this._handleEvent(e,"move")},_onMouseUpInDrawingMode:function(e){var t=this.getPointer(e);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:e,pointer:t}),this._handleEvent(e,"up")},__onMouseDown:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"down:before");var t=this._target;if(s(e,n))this.fireRightClick&&this._handleEvent(e,"down",n);else if(s(e,o))this.fireMiddleClick&&this._handleEvent(e,"down",o);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(e);else if(this._isMainEvent(e)&&!this._currentTransform){var i=this._pointer;this._previousPointer=i;var a=this._shouldRender(t),l=this._shouldGroup(e,t);if(this._shouldClearSelection(e,t)?this.discardActiveObject(e):l&&(this._handleGrouping(e,t),t=this._activeObject),!this.selection||t&&(t.selectable||t.isEditing||t===this._activeObject)||(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),t){var u=t===this._activeObject;t.selectable&&"down"===t.activeOn&&this.setActiveObject(t,e);var c=t._findTargetCorner(this.getPointer(e,!0),r.util.isTouchEvent(e));if(t.__corner=c,t===this._activeObject&&(c||!l)){this._setupCurrentTransform(e,t,u);var f=t.controls[c],d=(i=this.getPointer(e),f&&f.getMouseDownHandler(e,t,f));d&&d(e,this._currentTransform,i.x,i.y)}}this._handleEvent(e,"down"),(a||l)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(e){this._resetTransformEventData(),this._pointer=this.getPointer(e,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(e)||null},_beforeTransform:function(e){var t=this._currentTransform;this.stateful&&t.target.saveState(),this.fire("before:transform",{e:e,transform:t})},__onMouseMove:function(e){var t,n;if(this._handleEvent(e,"move:before"),this._cacheTransformEventData(e),this.isDrawingMode)this._onMouseMoveInDrawingMode(e);else if(this._isMainEvent(e)){var r=this._groupSelector;r?(n=this._absolutePointer,r.left=n.x-r.ex,r.top=n.y-r.ey,this.renderTop()):this._currentTransform?this._transformObject(e):(t=this.findTarget(e)||null,this._setCursorFromEvent(e,t),this._fireOverOutEvents(t,e)),this._handleEvent(e,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(e,t){var n=this._hoveredTarget,r=this._hoveredTargets,o=this.targets,i=Math.max(r.length,o.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:n,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var a=0;a<i;a++)this.fireSyntheticInOutEvents(o[a],t,{oldTarget:r[a],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=e,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(e,t){var n=this._draggedoverTarget,r=this._hoveredTargets,o=this.targets,i=Math.max(r.length,o.length);this.fireSyntheticInOutEvents(e,t,{oldTarget:n,evtOut:"dragleave",evtIn:"dragenter"});for(var a=0;a<i;a++)this.fireSyntheticInOutEvents(o[a],t,{oldTarget:r[a],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=e},fireSyntheticInOutEvents:function(e,t,n){var r,o,i,a,s=n.oldTarget,l=s!==e,u=n.canvasEvtIn,c=n.canvasEvtOut;l&&(r={e:t,target:e,previousTarget:s},o={e:t,target:s,nextTarget:e}),a=e&&l,i=s&&l,i&&(c&&this.fire(c,o),s.fire(n.evtOut,o)),a&&(u&&this.fire(u,r),e.fire(n.evtIn,r))},__onMouseWheel:function(e){this._cacheTransformEventData(e),this._handleEvent(e,"wheel"),this._resetTransformEventData()},_transformObject:function(e){var t=this.getPointer(e),n=this._currentTransform;n.reset=!1,n.shiftKey=e.shiftKey,n.altKey=e[this.centeredKey],this._performTransformAction(e,n,t),n.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(e,t,n){var r=n.x,o=n.y,i=t.action,a=!1,s=t.actionHandler;s&&(a=s(e,t,r,o)),"drag"===i&&a&&(t.target.isMoving=!0,this.setCursor(t.target.moveCursor||this.moveCursor)),t.actionPerformed=t.actionPerformed||a},_fire:r.controlsUtils.fireEvent,_setCursorFromEvent:function(e,t){if(!t)return this.setCursor(this.defaultCursor),!1;var n=t.hoverCursor||this.hoverCursor,r=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,o=(!r||!r.contains(t))&&t._findTargetCorner(this.getPointer(e,!0));o?this.setCursor(this.getCornerCursor(o,t,e)):(t.subTargetCheck&&this.targets.concat().reverse().map((function(e){n=e.hoverCursor||n})),this.setCursor(n))},getCornerCursor:function(e,t,n){var r=t.controls[e];return r.cursorStyleHandler(n,r,t)}})}(),function(){var e=Math.min,t=Math.max;r.util.object.extend(r.Canvas.prototype,{_shouldGroup:function(e,t){var n=this._activeObject;return n&&this._isSelectionKeyPressed(e)&&t&&t.selectable&&this.selection&&(n!==t||"activeSelection"===n.type)&&!t.onSelect({e:e})},_handleGrouping:function(e,t){var n=this._activeObject;n.__corner||(t!==n||(t=this.findTarget(e,!0),t&&t.selectable))&&(n&&"activeSelection"===n.type?this._updateActiveSelection(t,e):this._createActiveSelection(t,e))},_updateActiveSelection:function(e,t){var n=this._activeObject,r=n._objects.slice(0);n.contains(e)?(n.removeWithUpdate(e),this._hoveredTarget=e,this._hoveredTargets=this.targets.concat(),1===n.size()&&this._setActiveObject(n.item(0),t)):(n.addWithUpdate(e),this._hoveredTarget=n,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(r,t)},_createActiveSelection:function(e,t){var n=this.getActiveObjects(),r=this._createGroup(e);this._hoveredTarget=r,this._setActiveObject(r,t),this._fireSelectionEvents(n,t)},_createGroup:function(e){var t=this._objects,n=t.indexOf(this._activeObject)<t.indexOf(e),o=n?[this._activeObject,e]:[e,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new r.ActiveSelection(o,{canvas:this})},_groupSelectedObjects:function(e){var t,n=this._collectObjects(e);1===n.length?this.setActiveObject(n[0],e):n.length>1&&(t=new r.ActiveSelection(n.reverse(),{canvas:this}),this.setActiveObject(t,e))},_collectObjects:function(n){for(var o,i=[],a=this._groupSelector.ex,s=this._groupSelector.ey,l=a+this._groupSelector.left,u=s+this._groupSelector.top,c=new r.Point(e(a,l),e(s,u)),f=new r.Point(t(a,l),t(s,u)),d=!this.selectionFullyContained,h=a===l&&s===u,p=this._objects.length;p--;)if(o=this._objects[p],o&&o.selectable&&o.visible&&(d&&o.intersectsWithRect(c,f,!0)||o.isContainedWithinRect(c,f,!0)||d&&o.containsPoint(c,null,!0)||d&&o.containsPoint(f,null,!0))&&(i.push(o),h))break;return i.length>1&&(i=i.filter((function(e){return!e.onSelect({e:n})}))),i},_maybeGroupObjects:function(e){this.selection&&this._groupSelector&&this._groupSelectedObjects(e),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){r.util.object.extend(r.StaticCanvas.prototype,{toDataURL:function(e){e||(e={});var t=e.format||"png",n=e.quality||1,o=(e.multiplier||1)*(e.enableRetinaScaling?this.getRetinaScaling():1),i=this.toCanvasElement(o,e);return r.util.toDataURL(i,t,n)},toCanvasElement:function(e,t){e=e||1,t=t||{};var n=(t.width||this.width)*e,o=(t.height||this.height)*e,i=this.getZoom(),a=this.width,s=this.height,l=i*e,u=this.viewportTransform,c=(u[4]-(t.left||0))*e,f=(u[5]-(t.top||0))*e,d=this.interactive,h=[l,0,0,l,c,f],p=this.enableRetinaScaling,v=r.util.createCanvasElement(),g=this.contextTop;return v.width=n,v.height=o,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=h,this.width=n,this.height=o,this.calcViewportBoundaries(),this.renderCanvas(v.getContext("2d"),this._objects),this.viewportTransform=u,this.width=a,this.height=s,this.calcViewportBoundaries(),this.interactive=d,this.enableRetinaScaling=p,this.contextTop=g,v}})}(),r.util.object.extend(r.StaticCanvas.prototype,{loadFromJSON:function(e,t,n){if(e){var o="string"===typeof e?JSON.parse(e):r.util.object.clone(e),i=this,a=o.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete o.clipPath,this._enlivenObjects(o.objects,(function(e){i.clear(),i._setBgOverlay(o,(function(){a?i._enlivenObjects([a],(function(n){i.clipPath=n[0],i.__setupCanvas.call(i,o,e,s,t)})):i.__setupCanvas.call(i,o,e,s,t)}))}),n),this}},__setupCanvas:function(e,t,n,r){var o=this;t.forEach((function(e,t){o.insertAt(e,t)})),this.renderOnAddRemove=n,delete e.objects,delete e.backgroundImage,delete e.overlayImage,delete e.background,delete e.overlay,this._setOptions(e),this.renderAll(),r&&r()},_setBgOverlay:function(e,t){var n={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(e.backgroundImage||e.overlayImage||e.background||e.overlay){var r=function(){n.backgroundImage&&n.overlayImage&&n.backgroundColor&&n.overlayColor&&t&&t()};this.__setBgOverlay("backgroundImage",e.backgroundImage,n,r),this.__setBgOverlay("overlayImage",e.overlayImage,n,r),this.__setBgOverlay("backgroundColor",e.background,n,r),this.__setBgOverlay("overlayColor",e.overlay,n,r)}else t&&t()},__setBgOverlay:function(e,t,n,o){var i=this;if(!t)return n[e]=!0,void(o&&o());"backgroundImage"===e||"overlayImage"===e?r.util.enlivenObjects([t],(function(t){i[e]=t[0],n[e]=!0,o&&o()})):this["set"+r.util.string.capitalize(e,!0)](t,(function(){n[e]=!0,o&&o()}))},_enlivenObjects:function(e,t,n){e&&0!==e.length?r.util.enlivenObjects(e,(function(e){t&&t(e)}),null,n):t&&t([])},_toDataURL:function(e,t){this.clone((function(n){t(n.toDataURL(e))}))},_toDataURLWithMultiplier:function(e,t,n){this.clone((function(r){n(r.toDataURLWithMultiplier(e,t))}))},clone:function(e,t){var n=JSON.stringify(this.toJSON(t));this.cloneWithoutData((function(t){t.loadFromJSON(n,(function(){e&&e(t)}))}))},cloneWithoutData:function(e){var t=r.util.createCanvasElement();t.width=this.width,t.height=this.height;var n=new r.Canvas(t);this.backgroundImage?(n.setBackgroundImage(this.backgroundImage.src,(function(){n.renderAll(),e&&e(n)})),n.backgroundImageOpacity=this.backgroundImageOpacity,n.backgroundImageStretch=this.backgroundImageStretch):e&&e(n)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.util.object.clone,o=t.util.toFixed,i=t.util.string.capitalize,a=t.util.degreesToRadians,s=!t.isLikelyNode,l=2;t.Object||(t.Object=t.util.createClass(t.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:s,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(e){e&&this.setOptions(e)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=t.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(e){var n=t.perfLimitSizeTotal,r=e.width,o=e.height,i=t.maxCacheSideLimit,a=t.minCacheSideLimit;if(r<=i&&o<=i&&r*o<=n)return r<a&&(e.width=a),o<a&&(e.height=a),e;var s=r/o,l=t.util.limitDimsByArea(s,n),u=t.util.capValue,c=u(a,l.x,i),f=u(a,l.y,i);return r>c&&(e.zoomX/=r/c,e.width=c,e.capped=!0),o>f&&(e.zoomY/=o/f,e.height=f,e.capped=!0),e},_getCacheCanvasDimensions:function(){var e=this.getTotalObjectScaling(),t=this._getTransformedDimensions(0,0),n=t.x*e.scaleX/this.scaleX,r=t.y*e.scaleY/this.scaleY;return{width:n+l,height:r+l,zoomX:e.scaleX,zoomY:e.scaleY,x:n,y:r}},_updateCacheCanvas:function(){var e=this.canvas;if(this.noScaleCache&&e&&e._currentTransform){var n=e._currentTransform.target,r=e._currentTransform.action;if(this===n&&r.slice&&"scale"===r.slice(0,5))return!1}var o,i,a=this._cacheCanvas,s=this._limitCacheSize(this._getCacheCanvasDimensions()),l=t.minCacheSideLimit,u=s.width,c=s.height,f=s.zoomX,d=s.zoomY,h=u!==this.cacheWidth||c!==this.cacheHeight,p=this.zoomX!==f||this.zoomY!==d,v=h||p,g=0,m=0,y=!1;if(h){var b=this._cacheCanvas.width,w=this._cacheCanvas.height,A=u>b||c>w,x=(u<.9*b||c<.9*w)&&b>l&&w>l;y=A||x,A&&!s.capped&&(u>l||c>l)&&(g=.1*u,m=.1*c)}return this instanceof t.Text&&this.path&&(v=!0,y=!0,g+=this.getHeightOfLine(0)*this.zoomX,m+=this.getHeightOfLine(0)*this.zoomY),!!v&&(y?(a.width=Math.ceil(u+g),a.height=Math.ceil(c+m)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,a.width,a.height)),o=s.x/2,i=s.y/2,this.cacheTranslationX=Math.round(a.width/2-o)+o,this.cacheTranslationY=Math.round(a.height/2-i)+i,this.cacheWidth=u,this.cacheHeight=c,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(f,d),this.zoomX=f,this.zoomY=d,!0)},setOptions:function(e){this._setOptions(e),this._initGradient(e.fill,"fill"),this._initGradient(e.stroke,"stroke"),this._initPattern(e.fill,"fill"),this._initPattern(e.stroke,"stroke")},transform:function(e){var t=this.group&&!this.group._transformDone||this.group&&this.canvas&&e===this.canvas.contextTop,n=this.calcTransformMatrix(!t);e.transform(n[0],n[1],n[2],n[3],n[4],n[5])},toObject:function(e){var n=t.Object.NUM_FRACTION_DIGITS,r={type:this.type,version:t.version,originX:this.originX,originY:this.originY,left:o(this.left,n),top:o(this.top,n),width:o(this.width,n),height:o(this.height,n),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:o(this.strokeWidth,n),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:o(this.strokeMiterLimit,n),scaleX:o(this.scaleX,n),scaleY:o(this.scaleY,n),angle:o(this.angle,n),flipX:this.flipX,flipY:this.flipY,opacity:o(this.opacity,n),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:o(this.skewX,n),skewY:o(this.skewY,n)};return this.clipPath&&!this.clipPath.excludeFromExport&&(r.clipPath=this.clipPath.toObject(e),r.clipPath.inverted=this.clipPath.inverted,r.clipPath.absolutePositioned=this.clipPath.absolutePositioned),t.util.populateWithProperties(this,r,e),this.includeDefaultValues||(r=this._removeDefaultValues(r)),r},toDatalessObject:function(e){return this.toObject(e)},_removeDefaultValues:function(e){var n=t.util.getKlass(e.type).prototype,r=n.stateProperties;return r.forEach((function(t){"left"!==t&&"top"!==t&&(e[t]===n[t]&&delete e[t],Array.isArray(e[t])&&Array.isArray(n[t])&&0===e[t].length&&0===n[t].length&&delete e[t])})),e},toString:function(){return"#<fabric."+i(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var e=t.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(e.scaleX),scaleY:Math.abs(e.scaleY)}},getTotalObjectScaling:function(){var e=this.getObjectScaling(),t=e.scaleX,n=e.scaleY;if(this.canvas){var r=this.canvas.getZoom(),o=this.canvas.getRetinaScaling();t*=r*o,n*=r*o}return{scaleX:t,scaleY:n}},getObjectOpacity:function(){var e=this.opacity;return this.group&&(e*=this.group.getObjectOpacity()),e},_set:function(e,n){var r="scaleX"===e||"scaleY"===e,o=this[e]!==n,i=!1;return r&&(n=this._constrainScale(n)),"scaleX"===e&&n<0?(this.flipX=!this.flipX,n*=-1):"scaleY"===e&&n<0?(this.flipY=!this.flipY,n*=-1):"shadow"!==e||!n||n instanceof t.Shadow?"dirty"===e&&this.group&&this.group.set("dirty",n):n=new t.Shadow(n),this[e]=n,o&&(i=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(e)>-1?(this.dirty=!0,i&&this.group.set("dirty",!0)):i&&this.stateProperties.indexOf(e)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:t.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||!this.width&&!this.height&&0===this.strokeWidth||!this.visible},render:function(e){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(e.save(),this._setupCompositeOperation(e),this.drawSelectionBackground(e),this.transform(e),this._setOpacity(e),this._setShadow(e,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(e)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(e),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),e.restore())},renderCache:function(e){e=e||{},this._cacheCanvas&&this._cacheContext||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,e.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&"transparent"!==this.stroke&&0!==this.strokeWidth},hasFill:function(){return this.fill&&"transparent"!==this.fill},needsItsOwnCache:function(){return!("stroke"!==this.paintFirst||!this.hasFill()||!this.hasStroke()||"object"!==typeof this.shadow)||!!this.clipPath},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawClipPathOnCache:function(e,n){if(e.save(),n.inverted?e.globalCompositeOperation="destination-out":e.globalCompositeOperation="destination-in",n.absolutePositioned){var r=t.util.invertTransform(this.calcTransformMatrix());e.transform(r[0],r[1],r[2],r[3],r[4],r[5])}n.transform(e),e.scale(1/n.zoomX,1/n.zoomY),e.drawImage(n._cacheCanvas,-n.cacheTranslationX,-n.cacheTranslationY),e.restore()},drawObject:function(e,t){var n=this.fill,r=this.stroke;t?(this.fill="black",this.stroke="",this._setClippingProperties(e)):this._renderBackground(e),this._render(e),this._drawClipPath(e,this.clipPath),this.fill=n,this.stroke=r},_drawClipPath:function(e,t){t&&(t.canvas=this.canvas,t.shouldCache(),t._transformDone=!0,t.renderCache({forClipping:!0}),this.drawClipPathOnCache(e,t))},drawCacheOnCanvas:function(e){e.scale(1/this.zoomX,1/this.zoomY),e.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(e){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!e&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!e){var t=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-t/2,-n/2,t,n)}return!0}return!1},_renderBackground:function(e){if(this.backgroundColor){var t=this._getNonTransformedDimensions();e.fillStyle=this.backgroundColor,e.fillRect(-t.x/2,-t.y/2,t.x,t.y),this._removeShadow(e)}},_setOpacity:function(e){this.group&&!this.group._transformDone?e.globalAlpha=this.getObjectOpacity():e.globalAlpha*=this.opacity},_setStrokeStyles:function(e,t){var n=t.stroke;n&&(e.lineWidth=t.strokeWidth,e.lineCap=t.strokeLineCap,e.lineDashOffset=t.strokeDashOffset,e.lineJoin=t.strokeLineJoin,e.miterLimit=t.strokeMiterLimit,n.toLive?"percentage"===n.gradientUnits||n.gradientTransform||n.patternTransform?this._applyPatternForTransformedGradient(e,n):(e.strokeStyle=n.toLive(e,this),this._applyPatternGradientTransform(e,n)):e.strokeStyle=t.stroke)},_setFillStyles:function(e,t){var n=t.fill;n&&(n.toLive?(e.fillStyle=n.toLive(e,this),this._applyPatternGradientTransform(e,t.fill)):e.fillStyle=n)},_setClippingProperties:function(e){e.globalAlpha=1,e.strokeStyle="transparent",e.fillStyle="#000000"},_setLineDash:function(e,t){t&&0!==t.length&&(1&t.length&&t.push.apply(t,t),e.setLineDash(t))},_renderControls:function(e,n){var r,o,i,s=this.getViewportTransform(),l=this.calcTransformMatrix();n=n||{},o="undefined"!==typeof n.hasBorders?n.hasBorders:this.hasBorders,i="undefined"!==typeof n.hasControls?n.hasControls:this.hasControls,l=t.util.multiplyTransformMatrices(s,l),r=t.util.qrDecompose(l),e.save(),e.translate(r.translateX,r.translateY),e.lineWidth=1*this.borderScaleFactor,this.group||(e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(r.angle-=180),e.rotate(a(this.group?r.angle:this.angle)),n.forActiveSelection||this.group?o&&this.drawBordersInGroup(e,r,n):o&&this.drawBorders(e,n),i&&this.drawControls(e,n),e.restore()},_setShadow:function(e){if(this.shadow){var n,r=this.shadow,o=this.canvas,i=o&&o.viewportTransform[0]||1,a=o&&o.viewportTransform[3]||1;n=r.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),o&&o._isRetinaScaling()&&(i*=t.devicePixelRatio,a*=t.devicePixelRatio),e.shadowColor=r.color,e.shadowBlur=r.blur*t.browserShadowBlurConstant*(i+a)*(n.scaleX+n.scaleY)/4,e.shadowOffsetX=r.offsetX*i*n.scaleX,e.shadowOffsetY=r.offsetY*a*n.scaleY}},_removeShadow:function(e){this.shadow&&(e.shadowColor="",e.shadowBlur=e.shadowOffsetX=e.shadowOffsetY=0)},_applyPatternGradientTransform:function(e,t){if(!t||!t.toLive)return{offsetX:0,offsetY:0};var n=t.gradientTransform||t.patternTransform,r=-this.width/2+t.offsetX||0,o=-this.height/2+t.offsetY||0;return"percentage"===t.gradientUnits?e.transform(this.width,0,0,this.height,r,o):e.transform(1,0,0,1,r,o),n&&e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),{offsetX:r,offsetY:o}},_renderPaintInOrder:function(e){"stroke"===this.paintFirst?(this._renderStroke(e),this._renderFill(e)):(this._renderFill(e),this._renderStroke(e))},_render:function(){},_renderFill:function(e){this.fill&&(e.save(),this._setFillStyles(e,this),"evenodd"===this.fillRule?e.fill("evenodd"):e.fill(),e.restore())},_renderStroke:function(e){if(this.stroke&&0!==this.strokeWidth){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this.strokeUniform&&this.group){var t=this.getObjectScaling();e.scale(1/t.scaleX,1/t.scaleY)}else this.strokeUniform&&e.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(e,this.strokeDashArray),this._setStrokeStyles(e,this),e.stroke(),e.restore()}},_applyPatternForTransformedGradient:function(e,n){var r,o=this._limitCacheSize(this._getCacheCanvasDimensions()),i=t.util.createCanvasElement(),a=this.canvas.getRetinaScaling(),s=o.x/this.scaleX/a,l=o.y/this.scaleY/a;i.width=Math.ceil(s),i.height=Math.ceil(l),r=i.getContext("2d"),r.beginPath(),r.moveTo(0,0),r.lineTo(s,0),r.lineTo(s,l),r.lineTo(0,l),r.closePath(),r.translate(s/2,l/2),r.scale(o.zoomX/this.scaleX/a,o.zoomY/this.scaleY/a),this._applyPatternGradientTransform(r,n),r.fillStyle=n.toLive(e),r.fill(),e.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),e.scale(a*this.scaleX/o.zoomX,a*this.scaleY/o.zoomY),e.strokeStyle=r.createPattern(i,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var e=t.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",e.scaleX),this.set("scaleY",e.scaleY),this.angle=e.angle,this.skewX=e.skewX,this.skewY=0}},_removeTransformMatrix:function(e){var n=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),n=t.util.transformPoint(n,this.transformMatrix)),this.transformMatrix=null,e&&(this.scaleX*=e.scaleX,this.scaleY*=e.scaleY,this.cropX=e.cropX,this.cropY=e.cropY,n.x+=e.offsetLeft,n.y+=e.offsetTop,this.width=e.width,this.height=e.height),this.setPositionByOrigin(n,"center","center")},clone:function(e,n){var r=this.toObject(n);this.constructor.fromObject?this.constructor.fromObject(r,e):t.Object._fromObject("Object",r,e)},cloneAsImage:function(e,n){var r=this.toCanvasElement(n);return e&&e(new t.Image(r)),this},toCanvasElement:function(e){e||(e={});var n=t.util,r=n.saveObjectTransform(this),o=this.group,i=this.shadow,a=Math.abs,s=(e.multiplier||1)*(e.enableRetinaScaling?t.devicePixelRatio:1);delete this.group,e.withoutTransform&&n.resetObjectTransform(this),e.withoutShadow&&(this.shadow=null);var l,u,c,f,d=t.util.createCanvasElement(),h=this.getBoundingRect(!0,!0),p=this.shadow,v={x:0,y:0};p&&(u=p.blur,l=p.nonScaling?{scaleX:1,scaleY:1}:this.getObjectScaling(),v.x=2*Math.round(a(p.offsetX)+u)*a(l.scaleX),v.y=2*Math.round(a(p.offsetY)+u)*a(l.scaleY)),c=h.width+v.x,f=h.height+v.y,d.width=Math.ceil(c),d.height=Math.ceil(f);var g=new t.StaticCanvas(d,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});"jpeg"===e.format&&(g.backgroundColor="#fff"),this.setPositionByOrigin(new t.Point(g.width/2,g.height/2),"center","center");var m=this.canvas;g.add(this);var y=g.toCanvasElement(s||1,e);return this.shadow=i,this.set("canvas",m),o&&(this.group=o),this.set(r).setCoords(),g._objects=[],g.dispose(),g=null,y},toDataURL:function(e){return e||(e={}),t.util.toDataURL(this.toCanvasElement(e),e.format||"png",e.quality||1)},isType:function(e){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===e},complexity:function(){return 1},toJSON:function(e){return this.toObject(e)},rotate:function(e){var t=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return t&&this._setOriginToCenter(),this.set("angle",e),t&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(e,n){n=n||this.canvas.getPointer(e);var r=new t.Point(n.x,n.y),o=this._getLeftTopCoords();return this.angle&&(r=t.util.rotatePoint(r,o,a(-this.angle))),{x:r.x-o.x,y:r.y-o.y}},_setupCompositeOperation:function(e){this.globalCompositeOperation&&(e.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){t.runningAnimations&&t.runningAnimations.cancelByTarget(this)}}),t.util.createAccessors&&t.util.createAccessors(t.Object),n(t.Object.prototype,t.Observable),t.Object.NUM_FRACTION_DIGITS=2,t.Object.ENLIVEN_PROPS=["clipPath"],t.Object._fromObject=function(e,n,o,i){var a=t[e];n=r(n,!0),t.util.enlivenPatterns([n.fill,n.stroke],(function(e){"undefined"!==typeof e[0]&&(n.fill=e[0]),"undefined"!==typeof e[1]&&(n.stroke=e[1]),t.util.enlivenObjectEnlivables(n,n,(function(){var e=i?new a(n[i],n):new a(n);o&&o(e)}))}))},t.Object.__uid=0)}(t),function(){var e=r.util.degreesToRadians,t={left:-.5,center:0,right:.5},n={top:-.5,center:0,bottom:.5};r.util.object.extend(r.Object.prototype,{translateToGivenOrigin:function(e,o,i,a,s){var l,u,c,f=e.x,d=e.y;return"string"===typeof o?o=t[o]:o-=.5,"string"===typeof a?a=t[a]:a-=.5,l=a-o,"string"===typeof i?i=n[i]:i-=.5,"string"===typeof s?s=n[s]:s-=.5,u=s-i,(l||u)&&(c=this._getTransformedDimensions(),f=e.x+l*c.x,d=e.y+u*c.y),new r.Point(f,d)},translateToCenterPoint:function(t,n,o){var i=this.translateToGivenOrigin(t,n,o,"center","center");return this.angle?r.util.rotatePoint(i,t,e(this.angle)):i},translateToOriginPoint:function(t,n,o){var i=this.translateToGivenOrigin(t,"center","center",n,o);return this.angle?r.util.rotatePoint(i,t,e(this.angle)):i},getCenterPoint:function(){var e=new r.Point(this.left,this.top);return this.translateToCenterPoint(e,this.originX,this.originY)},getPointByOrigin:function(e,t){var n=this.getCenterPoint();return this.translateToOriginPoint(n,e,t)},toLocalPoint:function(t,n,o){var i,a,s=this.getCenterPoint();return i="undefined"!==typeof n&&"undefined"!==typeof o?this.translateToGivenOrigin(s,"center","center",n,o):new r.Point(this.left,this.top),a=new r.Point(t.x,t.y),this.angle&&(a=r.util.rotatePoint(a,s,-e(this.angle))),a.subtractEquals(i)},setPositionByOrigin:function(e,t,n){var r=this.translateToCenterPoint(e,t,n),o=this.translateToOriginPoint(r,this.originX,this.originY);this.set("left",o.x),this.set("top",o.y)},adjustPosition:function(n){var o,i,a=e(this.angle),s=this.getScaledWidth(),l=r.util.cos(a)*s,u=r.util.sin(a)*s;o="string"===typeof this.originX?t[this.originX]:this.originX-.5,i="string"===typeof n?t[n]:n-.5,this.left+=l*(i-o),this.top+=u*(i-o),this.setCoords(),this.originX=n},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var e=this.getCenterPoint();this.originX="center",this.originY="center",this.left=e.x,this.top=e.y},_resetOrigin:function(){var e=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=e.x,this.top=e.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function e(e){return[new r.Point(e.tl.x,e.tl.y),new r.Point(e.tr.x,e.tr.y),new r.Point(e.br.x,e.br.y),new r.Point(e.bl.x,e.bl.y)]}var t=r.util,n=t.degreesToRadians,o=t.multiplyTransformMatrices,i=t.transformPoint;t.object.extend(r.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(e,t){return t?e?this.calcACoords():this.calcLineCoords():(this.aCoords&&this.lineCoords||this.setCoords(!0),e?this.aCoords:this.lineCoords)},getCoords:function(t,n){return e(this._getCoords(t,n))},intersectsWithRect:function(e,t,n,o){var i=this.getCoords(n,o),a=r.Intersection.intersectPolygonRectangle(i,e,t);return"Intersection"===a.status},intersectsWithObject:function(e,t,n){var o=r.Intersection.intersectPolygonPolygon(this.getCoords(t,n),e.getCoords(t,n));return"Intersection"===o.status||e.isContainedWithinObject(this,t,n)||this.isContainedWithinObject(e,t,n)},isContainedWithinObject:function(e,t,n){for(var r=this.getCoords(t,n),o=t?e.aCoords:e.lineCoords,i=0,a=e._getImageLines(o);i<4;i++)if(!e.containsPoint(r[i],a))return!1;return!0},isContainedWithinRect:function(e,t,n,r){var o=this.getBoundingRect(n,r);return o.left>=e.x&&o.left+o.width<=t.x&&o.top>=e.y&&o.top+o.height<=t.y},containsPoint:function(e,t,n,r){var o=this._getCoords(n,r),i=(t=t||this._getImageLines(o),this._findCrossPoints(e,t));return 0!==i&&i%2===1},isOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,n=this.canvas.vptCoords.br,r=this.getCoords(!0,e);return!!r.some((function(e){return e.x<=n.x&&e.x>=t.x&&e.y<=n.y&&e.y>=t.y}))||(!!this.intersectsWithRect(t,n,!0,e)||this._containsCenterOfCanvas(t,n,e))},_containsCenterOfCanvas:function(e,t,n){var r={x:(e.x+t.x)/2,y:(e.y+t.y)/2};return!!this.containsPoint(r,null,!0,n)},isPartiallyOnScreen:function(e){if(!this.canvas)return!1;var t=this.canvas.vptCoords.tl,n=this.canvas.vptCoords.br;if(this.intersectsWithRect(t,n,!0,e))return!0;var r=this.getCoords(!0,e).every((function(e){return(e.x>=n.x||e.x<=t.x)&&(e.y>=n.y||e.y<=t.y)}));return r&&this._containsCenterOfCanvas(t,n,e)},_getImageLines:function(e){var t={topline:{o:e.tl,d:e.tr},rightline:{o:e.tr,d:e.br},bottomline:{o:e.br,d:e.bl},leftline:{o:e.bl,d:e.tl}};return t},_findCrossPoints:function(e,t){var n,r,o,i,a,s,l=0;for(var u in t)if(s=t[u],!(s.o.y<e.y&&s.d.y<e.y)&&!(s.o.y>=e.y&&s.d.y>=e.y)&&(s.o.x===s.d.x&&s.o.x>=e.x?a=s.o.x:(n=0,r=(s.d.y-s.o.y)/(s.d.x-s.o.x),o=e.y-n*e.x,i=s.o.y-r*s.o.x,a=-(o-i)/(n-r)),a>=e.x&&(l+=1),2===l))break;return l},getBoundingRect:function(e,n){var r=this.getCoords(e,n);return t.makeBoundingBoxFromPoints(r)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(e){return Math.abs(e)<this.minScaleLimit?e<0?-this.minScaleLimit:this.minScaleLimit:0===e?1e-4:e},scale:function(e){return this._set("scaleX",e),this._set("scaleY",e),this.setCoords()},scaleToWidth:function(e,t){var n=this.getBoundingRect(t).width/this.getScaledWidth();return this.scale(e/this.width/n)},scaleToHeight:function(e,t){var n=this.getBoundingRect(t).height/this.getScaledHeight();return this.scale(e/this.height/n)},calcLineCoords:function(){var e=this.getViewportTransform(),r=this.padding,o=n(this.angle),a=t.cos(o),s=t.sin(o),l=a*r,u=s*r,c=l+u,f=l-u,d=this.calcACoords(),h={tl:i(d.tl,e),tr:i(d.tr,e),bl:i(d.bl,e),br:i(d.br,e)};return r&&(h.tl.x-=f,h.tl.y-=c,h.tr.x+=c,h.tr.y-=f,h.bl.x-=c,h.bl.y+=f,h.br.x+=f,h.br.y+=c),h},calcOCoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=this.getViewportTransform(),r=o(n,t),i=o(r,e),a=(i=o(i,[1/n[0],0,0,1/n[3],0,0]),this._calculateCurrentDimensions()),s={};return this.forEachControl((function(e,t,n){s[t]=e.positionHandler(a,i,n)})),s},calcACoords:function(){var e=this._calcRotateMatrix(),t=this._calcTranslateMatrix(),n=o(t,e),r=this._getTransformedDimensions(),a=r.x/2,s=r.y/2;return{tl:i({x:-a,y:-s},n),tr:i({x:a,y:-s},n),bl:i({x:-a,y:s},n),br:i({x:a,y:s},n)}},setCoords:function(e){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),e||(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords()),this},_calcRotateMatrix:function(){return t.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var e=this.getCenterPoint();return[1,0,0,1,e.x,e.y]},transformMatrixKey:function(e){var t="_",n="";return!e&&this.group&&(n=this.group.transformMatrixKey(e)+t),n+this.top+t+this.left+t+this.scaleX+t+this.scaleY+t+this.skewX+t+this.skewY+t+this.angle+t+this.originX+t+this.originY+t+this.width+t+this.height+t+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(e){var t=this.calcOwnMatrix();if(e||!this.group)return t;var n=this.transformMatrixKey(e),r=this.matrixCache||(this.matrixCache={});return r.key===n?r.value:(this.group&&(t=o(this.group.calcTransformMatrix(!1),t)),r.key=n,r.value=t,t)},calcOwnMatrix:function(){var e=this.transformMatrixKey(!0),n=this.ownMatrixCache||(this.ownMatrixCache={});if(n.key===e)return n.value;var r=this._calcTranslateMatrix(),o={angle:this.angle,translateX:r[4],translateY:r[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return n.key=e,n.value=t.composeMatrix(o),n.value},_getNonTransformedDimensions:function(){var e=this.strokeWidth,t=this.width+e,n=this.height+e;return{x:t,y:n}},_getTransformedDimensions:function(e,n){"undefined"===typeof e&&(e=this.skewX),"undefined"===typeof n&&(n=this.skewY);var r,o,i,a=0===e&&0===n;if(this.strokeUniform?(o=this.width,i=this.height):(r=this._getNonTransformedDimensions(),o=r.x,i=r.y),a)return this._finalizeDimensions(o*this.scaleX,i*this.scaleY);var s=t.sizeAfterTransform(o,i,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:e,skewY:n});return this._finalizeDimensions(s.x,s.y)},_finalizeDimensions:function(e,t){return this.strokeUniform?{x:e+this.strokeWidth,y:t+this.strokeWidth}:{x:e,y:t}},_calculateCurrentDimensions:function(){var e=this.getViewportTransform(),t=this._getTransformedDimensions(),n=i(t,e,!0);return n.scalarAdd(2*this.padding)}})}(),r.util.object.extend(r.Object.prototype,{sendToBack:function(){return this.group?r.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?r.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(e){return this.group?r.StaticCanvas.prototype.sendBackwards.call(this.group,this,e):this.canvas&&this.canvas.sendBackwards(this,e),this},bringForward:function(e){return this.group?r.StaticCanvas.prototype.bringForward.call(this.group,this,e):this.canvas&&this.canvas.bringForward(this,e),this},moveTo:function(e){return this.group&&"activeSelection"!==this.group.type?r.StaticCanvas.prototype.moveTo.call(this.group,this,e):this.canvas&&this.canvas.moveTo(this,e),this}}),function(){function e(e,t){if(t){if(t.toLive)return e+": url(#SVGID_"+t.id+"); ";var n=new r.Color(t),o=e+": "+n.toRgb()+"; ",i=n.getAlpha();return 1!==i&&(o+=e+"-opacity: "+i.toString()+"; "),o}return e+": none; "}var t=r.util.toFixed;r.util.object.extend(r.Object.prototype,{getSvgStyles:function(t){var n=this.fillRule?this.fillRule:"nonzero",r=this.strokeWidth?this.strokeWidth:"0",o=this.strokeDashArray?this.strokeDashArray.join(" "):"none",i=this.strokeDashOffset?this.strokeDashOffset:"0",a=this.strokeLineCap?this.strokeLineCap:"butt",s=this.strokeLineJoin?this.strokeLineJoin:"miter",l=this.strokeMiterLimit?this.strokeMiterLimit:"4",u="undefined"!==typeof this.opacity?this.opacity:"1",c=this.visible?"":" visibility: hidden;",f=t?"":this.getSvgFilter(),d=e("fill",this.fill),h=e("stroke",this.stroke);return[h,"stroke-width: ",r,"; ","stroke-dasharray: ",o,"; ","stroke-linecap: ",a,"; ","stroke-dashoffset: ",i,"; ","stroke-linejoin: ",s,"; ","stroke-miterlimit: ",l,"; ",d,"fill-rule: ",n,"; ","opacity: ",u,";",f,c].join("")},getSvgSpanStyles:function(t,n){var r="; ",o=t.fontFamily?"font-family: "+(-1===t.fontFamily.indexOf("'")&&-1===t.fontFamily.indexOf('"')?"'"+t.fontFamily+"'":t.fontFamily)+r:"",i=t.strokeWidth?"stroke-width: "+t.strokeWidth+r:"",a=(o=o,t.fontSize?"font-size: "+t.fontSize+"px"+r:""),s=t.fontStyle?"font-style: "+t.fontStyle+r:"",l=t.fontWeight?"font-weight: "+t.fontWeight+r:"",u=t.fill?e("fill",t.fill):"",c=t.stroke?e("stroke",t.stroke):"",f=this.getSvgTextDecoration(t),d=t.deltaY?"baseline-shift: "+-t.deltaY+"; ":"";return f&&(f="text-decoration: "+f+r),[c,i,o,a,s,l,f,u,d,n?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(e){return["overline","underline","line-through"].filter((function(t){return e[t.replace("-","")]})).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(e,t){var n=e?this.calcTransformMatrix():this.calcOwnMatrix(),o='transform="'+r.util.matrixToSVG(n);return o+(t||"")+'" '},_setSVGBg:function(e){if(this.backgroundColor){var n=r.Object.NUM_FRACTION_DIGITS;e.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',t(-this.width/2,n),'" y="',t(-this.height/2,n),'" width="',t(this.width,n),'" height="',t(this.height,n),'"></rect>\n')}},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(e),{reviver:e})},toClipPathSVG:function(e){return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(e),{reviver:e})},_createBaseClipPathSVGMarkup:function(e,t){t=t||{};var n=t.reviver,r=t.additionalTransform||"",o=[this.getSvgTransform(!0,r),this.getSvgCommons()].join(""),i=e.indexOf("COMMON_PARTS");return e[i]=o,n?n(e.join("")):e.join("")},_createBaseSVGMarkup:function(e,t){t=t||{};var n,o,i=t.noStyle,a=t.reviver,s=i?"":'style="'+this.getSvgStyles()+'" ',l=t.withShadow?'style="'+this.getSvgFilter()+'" ':"",u=this.clipPath,c=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",f=u&&u.absolutePositioned,d=this.stroke,h=this.fill,p=this.shadow,v=[],g=e.indexOf("COMMON_PARTS"),m=t.additionalTransform;return u&&(u.clipPathId="CLIPPATH_"+r.Object.__uid++,o='<clipPath id="'+u.clipPathId+'" >\n'+u.toClipPathSVG(a)+"</clipPath>\n"),f&&v.push("<g ",l,this.getSvgCommons()," >\n"),v.push("<g ",this.getSvgTransform(!1),f?"":l+this.getSvgCommons()," >\n"),n=[s,c,i?"":this.addPaintOrder()," ",m?'transform="'+m+'" ':""].join(""),e[g]=n,h&&h.toLive&&v.push(h.toSVG(this)),d&&d.toLive&&v.push(d.toSVG(this)),p&&v.push(p.toSVG(this)),u&&v.push(o),v.push(e.join("")),v.push("</g>\n"),f&&v.push("</g>\n"),a?a(v.join("")):v.join("")},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var e=r.util.object.extend,t="stateProperties";function n(t,n,r){var o={},i=!0;r.forEach((function(e){o[e]=t[e]})),e(t[n],o,i)}function o(e,t,n){if(e===t)return!0;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r++)if(!o(e[r],t[r]))return!1;return!0}if(e&&"object"===typeof e){var a,s=Object.keys(e);if(!t||"object"!==typeof t||!n&&s.length!==Object.keys(t).length)return!1;for(r=0,i=s.length;r<i;r++)if(a=s[r],"canvas"!==a&&"group"!==a&&!o(e[a],t[a]))return!1;return!0}}r.util.object.extend(r.Object.prototype,{hasStateChanged:function(e){e=e||t;var n="_"+e;return Object.keys(this[n]).length<this[e].length||!o(this[n],this,!0)},saveState:function(e){var r=e&&e.propertySet||t,o="_"+r;return this[o]?(n(this,o,this[r]),e&&e.stateProperties&&n(this,o,e.stateProperties),this):this.setupState(e)},setupState:function(e){e=e||{};var n=e.propertySet||t;return e.propertySet=n,this["_"+n]={},this.saveState(e),this}})}(),function(){var e=r.util.degreesToRadians;r.util.object.extend(r.Object.prototype,{_findTargetCorner:function(e,t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var n,r,o,i=e.x,a=e.y,s=Object.keys(this.oCoords),l=s.length-1;for(this.__corner=0;l>=0;l--)if(o=s[l],this.isControlVisible(o)&&(r=this._getImageLines(t?this.oCoords[o].touchCorner:this.oCoords[o].corner),n=this._findCrossPoints({x:i,y:a},r),0!==n&&n%2===1))return this.__corner=o,o;return!1},forEachControl:function(e){for(var t in this.controls)e(this.controls[t],t,this)},_setCornerCoords:function(){var e=this.oCoords;for(var t in e){var n=this.controls[t];e[t].corner=n.calcCornerCoords(this.angle,this.cornerSize,e[t].x,e[t].y,!1),e[t].touchCorner=n.calcCornerCoords(this.angle,this.touchCornerSize,e[t].x,e[t].y,!0)}},drawSelectionBackground:function(t){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;t.save();var n=this.getCenterPoint(),r=this._calculateCurrentDimensions(),o=this.canvas.viewportTransform;return t.translate(n.x,n.y),t.scale(1/o[0],1/o[3]),t.rotate(e(this.angle)),t.fillStyle=this.selectionBackgroundColor,t.fillRect(-r.x/2,-r.y/2,r.x,r.y),t.restore(),this},drawBorders:function(e,t){t=t||{};var n=this._calculateCurrentDimensions(),r=this.borderScaleFactor,o=n.x+r,i=n.y+r,a="undefined"!==typeof t.hasControls?t.hasControls:this.hasControls,s=!1;return e.save(),e.strokeStyle=t.borderColor||this.borderColor,this._setLineDash(e,t.borderDashArray||this.borderDashArray),e.strokeRect(-o/2,-i/2,o,i),a&&(e.beginPath(),this.forEachControl((function(t,n,r){t.withConnection&&t.getVisibility(r,n)&&(s=!0,e.moveTo(t.x*o,t.y*i),e.lineTo(t.x*o+t.offsetX,t.y*i+t.offsetY))})),s&&e.stroke()),e.restore(),this},drawBordersInGroup:function(e,t,n){n=n||{};var o=r.util.sizeAfterTransform(this.width,this.height,t),i=this.strokeWidth,a=this.strokeUniform,s=this.borderScaleFactor,l=o.x+i*(a?this.canvas.getZoom():t.scaleX)+s,u=o.y+i*(a?this.canvas.getZoom():t.scaleY)+s;return e.save(),this._setLineDash(e,n.borderDashArray||this.borderDashArray),e.strokeStyle=n.borderColor||this.borderColor,e.strokeRect(-l/2,-u/2,l,u),e.restore(),this},drawControls:function(e,t){t=t||{},e.save();var n,o,i=1;return this.canvas&&(i=this.canvas.getRetinaScaling()),e.setTransform(i,0,0,i,0,0),e.strokeStyle=e.fillStyle=t.cornerColor||this.cornerColor,this.transparentCorners||(e.strokeStyle=t.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(e,t.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(n=this.group.calcTransformMatrix()),this.forEachControl((function(i,a,s){o=s.oCoords[a],i.getVisibility(s,a)&&(n&&(o=r.util.transformPoint(o,n)),i.render(e,o.x,o.y,t,s))})),e.restore(),this},isControlVisible:function(e){return this.controls[e]&&this.controls[e].getVisibility(this,e)},setControlVisible:function(e,t){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[e]=t,this},setControlsVisibility:function(e){for(var t in e||(e={}),e)this.setControlVisible(t,e[t]);return this},onDeselect:function(){},onSelect:function(){}})}(),r.util.object.extend(r.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(e,t){t=t||{};var n=function(){},o=t.onComplete||n,i=t.onChange||n,a=this;return r.util.animate({target:this,startValue:e.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(t){e.set("left",t),a.requestRenderAll(),i()},onComplete:function(){e.setCoords(),o()}})},fxCenterObjectV:function(e,t){t=t||{};var n=function(){},o=t.onComplete||n,i=t.onChange||n,a=this;return r.util.animate({target:this,startValue:e.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(t){e.set("top",t),a.requestRenderAll(),i()},onComplete:function(){e.setCoords(),o()}})},fxRemove:function(e,t){t=t||{};var n=function(){},o=t.onComplete||n,i=t.onChange||n,a=this;return r.util.animate({target:this,startValue:e.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(t){e.set("opacity",t),a.requestRenderAll(),i()},onComplete:function(){a.remove(e),o()}})}}),r.util.object.extend(r.Object.prototype,{animate:function(){if(arguments[0]&&"object"===typeof arguments[0]){var e,t,n=[],r=[];for(e in arguments[0])n.push(e);for(var o=0,i=n.length;o<i;o++)e=n[o],t=o!==i-1,r.push(this._animate(e,arguments[0][e],arguments[1],t));return r}return this._animate.apply(this,arguments)},_animate:function(e,t,n,o){var i,a=this;t=t.toString(),n=n?r.util.object.clone(n):{},~e.indexOf(".")&&(i=e.split("."));var s=a.colorProperties.indexOf(e)>-1||i&&a.colorProperties.indexOf(i[1])>-1,l=i?this.get(i[0])[i[1]]:this.get(e);"from"in n||(n.from=l),s||(t=~t.indexOf("=")?l+parseFloat(t.replace("=","")):parseFloat(t));var u={target:this,startValue:n.from,endValue:t,byValue:n.by,easing:n.easing,duration:n.duration,abort:n.abort&&function(e,t,r){return n.abort.call(a,e,t,r)},onChange:function(t,r,s){i?a[i[0]][i[1]]=t:a.set(e,t),o||n.onChange&&n.onChange(t,r,s)},onComplete:function(e,t,r){o||(a.setCoords(),n.onComplete&&n.onComplete(e,t,r))}};return s?r.util.animateColor(u.startValue,u.endValue,u.duration,u):r.util.animate(u)}}),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.util.object.clone,o={x1:1,x2:1,y1:1,y2:1};function i(e,t){var n=e.origin,r=e.axis1,o=e.axis2,i=e.dimension,a=t.nearest,s=t.center,l=t.farthest;return function(){switch(this.get(n)){case a:return Math.min(this.get(r),this.get(o));case s:return Math.min(this.get(r),this.get(o))+.5*this.get(i);case l:return Math.max(this.get(r),this.get(o))}}}t.Line?t.warn("fabric.Line is already defined"):(t.Line=t.util.createClass(t.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:t.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(e,t){e||(e=[0,0,0,0]),this.callSuper("initialize",t),this.set("x1",e[0]),this.set("y1",e[1]),this.set("x2",e[2]),this.set("y2",e[3]),this._setWidthHeight(t)},_setWidthHeight:function(e){e||(e={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in e?e.left:this._getLeftToOriginX(),this.top="top"in e?e.top:this._getTopToOriginY()},_set:function(e,t){return this.callSuper("_set",e,t),"undefined"!==typeof o[e]&&this._setWidthHeight(),this},_getLeftToOriginX:i({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:i({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(e){e.beginPath();var t=this.calcLinePoints();e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.lineWidth=this.strokeWidth;var n=e.strokeStyle;e.strokeStyle=this.stroke||e.fillStyle,this.stroke&&this._renderStroke(e),e.strokeStyle=n},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(e){return n(this.callSuper("toObject",e),this.calcLinePoints())},_getNonTransformedDimensions:function(){var e=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(e.y-=this.strokeWidth),0===this.height&&(e.x-=this.strokeWidth)),e},calcLinePoints:function(){var e=this.x1<=this.x2?-1:1,t=this.y1<=this.y2?-1:1,n=e*this.width*.5,r=t*this.height*.5,o=e*this.width*-.5,i=t*this.height*-.5;return{x1:n,x2:o,y1:r,y2:i}},_toSVG:function(){var e=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',e.x1,'" y1="',e.y1,'" x2="',e.x2,'" y2="',e.y2,'" />\n']}}),t.Line.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),t.Line.fromElement=function(e,r,o){o=o||{};var i=t.parseAttributes(e,t.Line.ATTRIBUTE_NAMES),a=[i.x1||0,i.y1||0,i.x2||0,i.y2||0];r(new t.Line(a,n(i,o)))},t.Line.fromObject=function(e,n){function o(e){delete e.points,n&&n(e)}var i=r(e,!0);i.points=[e.x1,e.y1,e.x2,e.y2],t.Object._fromObject("Line",i,o,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.degreesToRadians;function r(e){return"radius"in e&&e.radius>=0}t.Circle?t.warn("fabric.Circle is already defined."):(t.Circle=t.util.createClass(t.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:t.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(e,t){return this.callSuper("_set",e,t),"radius"===e&&this.setRadius(t),this},toObject:function(e){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(e))},_toSVG:function(){var e,r=0,o=0,i=(this.endAngle-this.startAngle)%360;if(0===i)e=["<circle ","COMMON_PARTS",'cx="'+r+'" cy="'+o+'" ','r="',this.radius,'" />\n'];else{var a=n(this.startAngle),s=n(this.endAngle),l=this.radius,u=t.util.cos(a)*l,c=t.util.sin(a)*l,f=t.util.cos(s)*l,d=t.util.sin(s)*l,h=i>180?"1":"0";e=['<path d="M '+u+" "+c," A "+l+" "+l," 0 ",+h+" 1"," "+f+" "+d,'" ',"COMMON_PARTS"," />\n"]}return e},_render:function(e){e.beginPath(),e.arc(0,0,this.radius,n(this.startAngle),n(this.endAngle),!1),this._renderPaintInOrder(e)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(e){return this.radius=e,this.set("width",2*e).set("height",2*e)}}),t.Circle.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),t.Circle.fromElement=function(e,n){var o=t.parseAttributes(e,t.Circle.ATTRIBUTE_NAMES);if(!r(o))throw new Error("value of `r` attribute is required and can not be negative");o.left=(o.left||0)-o.radius,o.top=(o.top||0)-o.radius,n(new t.Circle(o))},t.Circle.fromObject=function(e,n){t.Object._fromObject("Circle",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Triangle?t.warn("fabric.Triangle is already defined"):(t.Triangle=t.util.createClass(t.Object,{type:"triangle",width:100,height:100,_render:function(e){var t=this.width/2,n=this.height/2;e.beginPath(),e.moveTo(-t,n),e.lineTo(0,-n),e.lineTo(t,n),e.closePath(),this._renderPaintInOrder(e)},_toSVG:function(){var e=this.width/2,t=this.height/2,n=[-e+" "+t,"0 "+-t,e+" "+t].join(",");return["<polygon ","COMMON_PARTS",'points="',n,'" />']}}),t.Triangle.fromObject=function(e,n){return t.Object._fromObject("Triangle",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=2*Math.PI;t.Ellipse?t.warn("fabric.Ellipse is already defined."):(t.Ellipse=t.util.createClass(t.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this.set("rx",e&&e.rx||0),this.set("ry",e&&e.ry||0)},_set:function(e,t){switch(this.callSuper("_set",e,t),e){case"rx":this.rx=t,this.set("width",2*t);break;case"ry":this.ry=t,this.set("height",2*t);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" />\n']},_render:function(e){e.beginPath(),e.save(),e.transform(1,0,0,this.ry/this.rx,0,0),e.arc(0,0,this.rx,0,n,!1),e.restore(),this._renderPaintInOrder(e)}}),t.Ellipse.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),t.Ellipse.fromElement=function(e,n){var r=t.parseAttributes(e,t.Ellipse.ATTRIBUTE_NAMES);r.left=(r.left||0)-r.rx,r.top=(r.top||0)-r.ry,n(new t.Ellipse(r))},t.Ellipse.fromObject=function(e,n){t.Object._fromObject("Ellipse",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend;t.Rect?t.warn("fabric.Rect is already defined"):(t.Rect=t.util.createClass(t.Object,{stateProperties:t.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:t.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(e){this.callSuper("initialize",e),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(e){var t=this.rx?Math.min(this.rx,this.width/2):0,n=this.ry?Math.min(this.ry,this.height/2):0,r=this.width,o=this.height,i=-this.width/2,a=-this.height/2,s=0!==t||0!==n,l=.4477152502;e.beginPath(),e.moveTo(i+t,a),e.lineTo(i+r-t,a),s&&e.bezierCurveTo(i+r-l*t,a,i+r,a+l*n,i+r,a+n),e.lineTo(i+r,a+o-n),s&&e.bezierCurveTo(i+r,a+o-l*n,i+r-l*t,a+o,i+r-t,a+o),e.lineTo(i+t,a+o),s&&e.bezierCurveTo(i+l*t,a+o,i,a+o-l*n,i,a+o-n),e.lineTo(i,a+n),s&&e.bezierCurveTo(i,a+l*n,i+l*t,a,i+t,a),e.closePath(),this._renderPaintInOrder(e)},toObject:function(e){return this.callSuper("toObject",["rx","ry"].concat(e))},_toSVG:function(){var e=-this.width/2,t=-this.height/2;return["<rect ","COMMON_PARTS",'x="',e,'" y="',t,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,'" />\n']}}),t.Rect.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),t.Rect.fromElement=function(e,r,o){if(!e)return r(null);o=o||{};var i=t.parseAttributes(e,t.Rect.ATTRIBUTE_NAMES);i.left=i.left||0,i.top=i.top||0,i.height=i.height||0,i.width=i.width||0;var a=new t.Rect(n(o?t.util.object.clone(o):{},i));a.visible=a.visible&&a.width>0&&a.height>0,r(a)},t.Rect.fromObject=function(e,n){return t.Object._fromObject("Rect",e,n)})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.util.array.min,o=t.util.array.max,i=t.util.toFixed,a=t.util.projectStrokeOnPoints;t.Polyline?t.warn("fabric.Polyline is already defined"):(t.Polyline=t.util.createClass(t.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:t.Object.prototype.cacheProperties.concat("points"),initialize:function(e,t){t=t||{},this.points=e||[],this.callSuper("initialize",t),this._setPositionDimensions(t)},_projectStrokeOnPoints:function(){return a(this.points,this,!0)},_setPositionDimensions:function(e){var t,n=this._calcDimensions(e),r=this.exactBoundingBox?this.strokeWidth:0;this.width=n.width-r,this.height=n.height-r,e.fromSVG||(t=this.translateToGivenOrigin({x:n.left-this.strokeWidth/2+r/2,y:n.top-this.strokeWidth/2+r/2},"left","top",this.originX,this.originY)),"undefined"===typeof e.left&&(this.left=e.fromSVG?n.left:t.x),"undefined"===typeof e.top&&(this.top=e.fromSVG?n.top:t.y),this.pathOffset={x:n.left+this.width/2+r/2,y:n.top+this.height/2+r/2}},_calcDimensions:function(){var e=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,t=r(e,"x")||0,n=r(e,"y")||0,i=o(e,"x")||0,a=o(e,"y")||0,s=i-t,l=a-n;return{left:t,top:n,width:s,height:l}},toObject:function(e){return n(this.callSuper("toObject",e),{points:this.points.concat()})},_toSVG:function(){for(var e=[],n=this.pathOffset.x,r=this.pathOffset.y,o=t.Object.NUM_FRACTION_DIGITS,a=0,s=this.points.length;a<s;a++)e.push(i(this.points[a].x-n,o),",",i(this.points[a].y-r,o)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',e.join(""),'" />\n']},commonRender:function(e){var t,n=this.points.length,r=this.pathOffset.x,o=this.pathOffset.y;if(!n||isNaN(this.points[n-1].y))return!1;e.beginPath(),e.moveTo(this.points[0].x-r,this.points[0].y-o);for(var i=0;i<n;i++)t=this.points[i],e.lineTo(t.x-r,t.y-o);return!0},_render:function(e){this.commonRender(e)&&this._renderPaintInOrder(e)},complexity:function(){return this.get("points").length}}),t.Polyline.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polyline.fromElementGenerator=function(e){return function(r,o,i){if(!r)return o(null);i||(i={});var a=t.parsePointsAttribute(r.getAttribute("points")),s=t.parseAttributes(r,t[e].ATTRIBUTE_NAMES);s.fromSVG=!0,o(new t[e](a,n(s,i)))}},t.Polyline.fromElement=t.Polyline.fromElementGenerator("Polyline"),t.Polyline.fromObject=function(e,n){return t.Object._fromObject("Polyline",e,n,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.projectStrokeOnPoints;t.Polygon?t.warn("fabric.Polygon is already defined"):(t.Polygon=t.util.createClass(t.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return n(this.points,this)},_render:function(e){this.commonRender(e)&&(e.closePath(),this._renderPaintInOrder(e))}}),t.Polygon.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(),t.Polygon.fromElement=t.Polyline.fromElementGenerator("Polygon"),t.Polygon.fromObject=function(e,n){t.Object._fromObject("Polygon",e,n,"points")})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.array.min,r=t.util.array.max,o=t.util.object.extend,i=t.util.object.clone,a=t.util.toFixed;t.Path?t.warn("fabric.Path is already defined"):(t.Path=t.util.createClass(t.Object,{type:"path",path:null,cacheProperties:t.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:t.Object.prototype.stateProperties.concat("path"),initialize:function(e,t){t=i(t||{}),delete t.path,this.callSuper("initialize",t),this._setPath(e||[],t)},_setPath:function(e,n){this.path=t.util.makePathSimpler(Array.isArray(e)?e:t.util.parsePath(e)),t.Polyline.prototype._setPositionDimensions.call(this,n||{})},_renderPathCommands:function(e){var t,n=0,r=0,o=0,i=0,a=0,s=0,l=-this.pathOffset.x,u=-this.pathOffset.y;e.beginPath();for(var c=0,f=this.path.length;c<f;++c)switch(t=this.path[c],t[0]){case"L":o=t[1],i=t[2],e.lineTo(o+l,i+u);break;case"M":o=t[1],i=t[2],n=o,r=i,e.moveTo(o+l,i+u);break;case"C":o=t[5],i=t[6],a=t[3],s=t[4],e.bezierCurveTo(t[1]+l,t[2]+u,a+l,s+u,o+l,i+u);break;case"Q":e.quadraticCurveTo(t[1]+l,t[2]+u,t[3]+l,t[4]+u),o=t[3],i=t[4],a=t[1],s=t[2];break;case"z":case"Z":o=n,i=r,e.closePath();break}},_render:function(e){this._renderPathCommands(e),this._renderPaintInOrder(e)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(e){return o(this.callSuper("toObject",e),{path:this.path.map((function(e){return e.slice()}))})},toDatalessObject:function(e){var t=this.toObject(["sourcePath"].concat(e));return t.sourcePath&&delete t.path,t},_toSVG:function(){var e=t.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',e,'" stroke-linecap="round" ',"/>\n"]},_getOffsetTransform:function(){var e=t.Object.NUM_FRACTION_DIGITS;return" translate("+a(-this.pathOffset.x,e)+", "+a(-this.pathOffset.y,e)+")"},toClipPathSVG:function(e){var t=this._getOffsetTransform();return"\t"+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},toSVG:function(e){var t=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,additionalTransform:t})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var e,o,i=[],a=[],s=0,l=0,u=0,c=0,f=0,d=this.path.length;f<d;++f){switch(e=this.path[f],e[0]){case"L":u=e[1],c=e[2],o=[];break;case"M":u=e[1],c=e[2],s=u,l=c,o=[];break;case"C":o=t.util.getBoundsOfCurve(u,c,e[1],e[2],e[3],e[4],e[5],e[6]),u=e[5],c=e[6];break;case"Q":o=t.util.getBoundsOfCurve(u,c,e[1],e[2],e[1],e[2],e[3],e[4]),u=e[3],c=e[4];break;case"z":case"Z":u=s,c=l;break}o.forEach((function(e){i.push(e.x),a.push(e.y)})),i.push(u),a.push(c)}var h=n(i)||0,p=n(a)||0,v=r(i)||0,g=r(a)||0,m=v-h,y=g-p;return{left:h,top:p,width:m,height:y}}}),t.Path.fromObject=function(e,n){if("string"===typeof e.sourcePath){var r=e.sourcePath;t.loadSVGFromURL(r,(function(r){var o=r[0];o.setOptions(e),e.clipPath?t.util.enlivenObjects([e.clipPath],(function(e){o.clipPath=e[0],n&&n(o)})):n&&n(o)}))}else t.Object._fromObject("Path",e,n,"path")},t.Path.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat(["d"]),t.Path.fromElement=function(e,n,r){var i=t.parseAttributes(e,t.Path.ATTRIBUTE_NAMES);i.fromSVG=!0,n(new t.Path(i.d,o(i,r)))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.array.min,r=t.util.array.max;t.Group||(t.Group=t.util.createClass(t.Object,t.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(e,t,n){t=t||{},this._objects=[],n&&this.callSuper("initialize",t),this._objects=e||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;if(n)this._updateObjectsACoords();else{var o=t&&t.centerPoint;void 0!==t.originX&&(this.originX=t.originX),void 0!==t.originY&&(this.originY=t.originY),o||this._calcBounds(),this._updateObjectsCoords(o),delete t.centerPoint,this.callSuper("initialize",t)}this.setCoords()},_updateObjectsACoords:function(){for(var e=!0,t=this._objects.length;t--;)this._objects[t].setCoords(e)},_updateObjectsCoords:function(e){e=e||this.getCenterPoint();for(var t=this._objects.length;t--;)this._updateObjectCoords(this._objects[t],e)},_updateObjectCoords:function(e,t){var n=e.left,r=e.top,o=!0;e.set({left:n-t.x,top:r-t.y}),e.group=this,e.setCoords(o)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(e){var n=!!this.group;return this._restoreObjectsState(),t.util.resetObjectTransform(this),e&&(n&&t.util.removeTransformFromObject(e,this.group.calcTransformMatrix()),this._objects.push(e),e.group=this,e._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,n?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(e){return this._restoreObjectsState(),t.util.resetObjectTransform(this),this.remove(e),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(e){this.dirty=!0,e.group=this,e._set("canvas",this.canvas)},_onObjectRemoved:function(e){this.dirty=!0,delete e.group},_set:function(e,n){var r=this._objects.length;if(this.useSetOnGroup)while(r--)this._objects[r].setOnGroup(e,n);if("canvas"===e)while(r--)this._objects[r]._set(e,n);t.Object.prototype._set.call(this,e,n)},toObject:function(e){var n=this.includeDefaultValues,r=this._objects.filter((function(e){return!e.excludeFromExport})).map((function(t){var r=t.includeDefaultValues;t.includeDefaultValues=n;var o=t.toObject(e);return t.includeDefaultValues=r,o})),o=t.Object.prototype.toObject.call(this,e);return o.objects=r,o},toDatalessObject:function(e){var n,r=this.sourcePath;if(r)n=r;else{var o=this.includeDefaultValues;n=this._objects.map((function(t){var n=t.includeDefaultValues;t.includeDefaultValues=o;var r=t.toDatalessObject(e);return t.includeDefaultValues=n,r}))}var i=t.Object.prototype.toDatalessObject.call(this,e);return i.objects=n,i},render:function(e){this._transformDone=!0,this.callSuper("render",e),this._transformDone=!1},shouldCache:function(){var e=t.Object.prototype.shouldCache.call(this);if(e)for(var n=0,r=this._objects.length;n<r;n++)if(this._objects[n].willDrawShadow())return this.ownCaching=!1,!1;return e},willDrawShadow:function(){if(t.Object.prototype.willDrawShadow.call(this))return!0;for(var e=0,n=this._objects.length;e<n;e++)if(this._objects[e].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(e){for(var t=0,n=this._objects.length;t<n;t++)this._objects[t].render(e);this._drawClipPath(e,this.clipPath)},isCacheDirty:function(e){if(this.callSuper("isCacheDirty",e))return!0;if(!this.statefullCache)return!1;for(var t=0,n=this._objects.length;t<n;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var r=this.cacheWidth/this.zoomX,o=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-r/2,-o/2,r,o)}return!0}return!1},_restoreObjectsState:function(){var e=this.calcOwnMatrix();return this._objects.forEach((function(n){t.util.addTransformToObject(n,e),delete n.group,n.setCoords()})),this},destroy:function(){return this._objects.forEach((function(e){e.set("dirty",!0)})),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject((function(e){e.dispose&&e.dispose()})),this._objects=[]},toActiveSelection:function(){if(this.canvas){var e=this._objects,n=this.canvas;this._objects=[];var r=this.toObject();delete r.objects;var o=new t.ActiveSelection([]);return o.set(r),o.type="activeSelection",n.remove(this),e.forEach((function(e){e.group=o,e.dirty=!0,n.add(e)})),o.canvas=n,o._objects=e,n._activeObject=o,o.setCoords(),o}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var e=!0;return this.forEachObject((function(t){t.setCoords(e)})),this},_calcBounds:function(e){for(var t,n,r,o,i=[],a=[],s=["tr","br","bl","tl"],l=0,u=this._objects.length,c=s.length;l<u;++l){for(t=this._objects[l],r=t.calcACoords(),o=0;o<c;o++)n=s[o],i.push(r[n].x),a.push(r[n].y);t.aCoords=r}this._getBounds(i,a,e)},_getBounds:function(e,o,i){var a=new t.Point(n(e),n(o)),s=new t.Point(r(e),r(o)),l=a.y||0,u=a.x||0,c=s.x-a.x||0,f=s.y-a.y||0;this.width=c,this.height=f,i||this.setPositionByOrigin({x:u,y:l},"left","top")},_toSVG:function(e){for(var t=["<g ","COMMON_PARTS"," >\n"],n=0,r=this._objects.length;n<r;n++)t.push("\t\t",this._objects[n].toSVG(e));return t.push("</g>\n"),t},getSvgStyles:function(){var e="undefined"!==typeof this.opacity&&1!==this.opacity?"opacity: "+this.opacity+";":"",t=this.visible?"":" visibility: hidden;";return[e,this.getSvgFilter(),t].join("")},toClipPathSVG:function(e){for(var t=[],n=0,r=this._objects.length;n<r;n++)t.push("\t",this._objects[n].toClipPathSVG(e));return this._createBaseClipPathSVGMarkup(t,{reviver:e})}}),t.Group.fromObject=function(e,n){var r=e.objects,o=t.util.object.clone(e,!0);delete o.objects,"string"!==typeof r?t.util.enlivenObjects(r,(function(r){t.util.enlivenObjectEnlivables(e,o,(function(){n&&n(new t.Group(r,o,!0))}))})):t.loadSVGFromURL(r,(function(i){var a=t.util.groupSVGElements(i,e,r),s=o.clipPath;delete o.clipPath,a.set(o),s?t.util.enlivenObjects([s],(function(e){a.clipPath=e[0],n&&n(a)})):n&&n(a)}))})}(t),function(e){"use strict";var t=e.fabric||(e.fabric={});t.ActiveSelection||(t.ActiveSelection=t.util.createClass(t.Group,{type:"activeSelection",initialize:function(e,n){n=n||{},this._objects=e||[];for(var r=this._objects.length;r--;)this._objects[r].group=this;n.originX&&(this.originX=n.originX),n.originY&&(this.originY=n.originY),this._calcBounds(),this._updateObjectsCoords(),t.Object.prototype.initialize.call(this,n),this.setCoords()},toGroup:function(){var e=this._objects.concat();this._objects=[];var n=t.Object.prototype.toObject.call(this),r=new t.Group([]);if(delete n.type,r.set(n),e.forEach((function(e){e.canvas.remove(e),e.group=r})),r._objects=e,!this.canvas)return r;var o=this.canvas;return o.add(r),o._activeObject=r,r.setCoords(),r},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(e,t,n){e.save(),e.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,n=n||{},"undefined"===typeof n.hasControls&&(n.hasControls=!1),n.forActiveSelection=!0;for(var r=0,o=this._objects.length;r<o;r++)this._objects[r]._renderControls(e,n);this.callSuper("_renderControls",e,t),e.restore()}}),t.ActiveSelection.fromObject=function(e,n){t.util.enlivenObjects(e.objects,(function(r){delete e.objects,n&&n(new t.ActiveSelection(r,e,!0))}))})}(t),function(e){"use strict";var t=r.util.object.extend;e.fabric||(e.fabric={}),e.fabric.Image?r.warn("fabric.Image is already defined."):(r.Image=r.util.createClass(r.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:r.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:r.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(e,t){t||(t={}),this.filters=[],this.cacheKey="texture"+r.Object.__uid++,this.callSuper("initialize",t),this._initElement(e,t)},getElement:function(){return this._element||{}},setElement:function(e,t){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=e,this._originalElement=e,this._initConfig(t),0!==this.filters.length&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(e){var t=r.filterBackend;t&&t.evictCachesForKey&&t.evictCachesForKey(e)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(e){r.util.cleanUpJsdomNode(this[e]),this[e]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var e=this.getElement();return{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height}},_stroke:function(e){if(this.stroke&&0!==this.strokeWidth){var t=this.width/2,n=this.height/2;e.beginPath(),e.moveTo(-t,-n),e.lineTo(t,-n),e.lineTo(t,n),e.lineTo(-t,n),e.lineTo(-t,-n),e.closePath()}},toObject:function(e){var n=[];this.filters.forEach((function(e){e&&n.push(e.toObject())}));var r=t(this.callSuper("toObject",["cropX","cropY"].concat(e)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:n});return this.resizeFilter&&(r.resizeFilter=this.resizeFilter.toObject()),r},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var e,t=[],n=[],o=this._element,i=-this.width/2,a=-this.height/2,s="",l="";if(!o)return[];if(this.hasCrop()){var u=r.Object.__uid++;t.push('<clipPath id="imageCrop_'+u+'">\n','\t<rect x="'+i+'" y="'+a+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),s=' clip-path="url(#imageCrop_'+u+')" '}if(this.imageSmoothing||(l='" image-rendering="optimizeSpeed'),n.push("\t<image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',i-this.cropX,'" y="',a-this.cropY,'" width="',o.width||o.naturalWidth,'" height="',o.height||o.height,l,'"',s,"></image>\n"),this.stroke||this.strokeDashArray){var c=this.fill;this.fill=null,e=["\t<rect ",'x="',i,'" y="',a,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'],this.fill=c}return t="fill"!==this.paintFirst?t.concat(e,n):t.concat(n,e),t},getSrc:function(e){var t=e?this._element:this._originalElement;return t?t.toDataURL?t.toDataURL():this.srcFromAttribute?t.getAttribute("src"):t.src:this.src||""},setSrc:function(e,t,n){return r.util.loadImage(e,(function(e,r){this.setElement(e,n),this._setWidthHeight(),t&&t(this,r)}),this,n&&n.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var e=this.resizeFilter,t=this.minimumScaleTrigger,n=this.getTotalObjectScaling(),o=n.scaleX,i=n.scaleY,a=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!e||o>t&&i>t)return this._element=a,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=o,void(this._lastScaleY=i);r.filterBackend||(r.filterBackend=r.initFilterBackend());var s=r.util.createCanvasElement(),l=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,u=a.width,c=a.height;s.width=u,s.height=c,this._element=s,this._lastScaleX=e.scaleX=o,this._lastScaleY=e.scaleY=i,r.filterBackend.applyFilters([e],a,u,c,this._element,l),this._filterScalingX=s.width/this._originalElement.width,this._filterScalingY=s.height/this._originalElement.height},applyFilters:function(e){if(e=e||this.filters||[],e=e.filter((function(e){return e&&!e.isNeutralState()})),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),0===e.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var t=this._originalElement,n=t.naturalWidth||t.width,o=t.naturalHeight||t.height;if(this._element===this._originalElement){var i=r.util.createCanvasElement();i.width=n,i.height=o,this._element=i,this._filteredEl=i}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,n,o),this._lastScaleX=1,this._lastScaleY=1;return r.filterBackend||(r.filterBackend=r.initFilterBackend()),r.filterBackend.applyFilters(e,this._originalElement,n,o,this._element,this.cacheKey),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),this},_render:function(e){r.util.setImageSmoothing(e,this.imageSmoothing),!0!==this.isMoving&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(e),this._renderPaintInOrder(e)},drawCacheOnCanvas:function(e){r.util.setImageSmoothing(e,this.imageSmoothing),r.Object.prototype.drawCacheOnCanvas.call(this,e)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(e){var t=this._element;if(t){var n=this._filterScalingX,r=this._filterScalingY,o=this.width,i=this.height,a=Math.min,s=Math.max,l=s(this.cropX,0),u=s(this.cropY,0),c=t.naturalWidth||t.width,f=t.naturalHeight||t.height,d=l*n,h=u*r,p=a(o*n,c-d),v=a(i*r,f-h),g=-o/2,m=-i/2,y=a(o,c/n-l),b=a(i,f/r-u);t&&e.drawImage(t,d,h,p,v,g,m,y,b)}},_needsResize:function(){var e=this.getTotalObjectScaling();return e.scaleX!==this._lastScaleX||e.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(e,t){this.setElement(r.util.getById(e),t),r.util.addClass(this.getElement(),r.Image.CSS_CANVAS)},_initConfig:function(e){e||(e={}),this.setOptions(e),this._setWidthHeight(e)},_initFilters:function(e,t){e&&e.length?r.util.enlivenObjects(e,(function(e){t&&t(e)}),"fabric.Image.filters"):t&&t()},_setWidthHeight:function(e){e||(e={});var t=this.getElement();this.width=e.width||t.naturalWidth||t.width||0,this.height=e.height||t.naturalHeight||t.height||0},parsePreserveAspectRatioAttribute:function(){var e,t=r.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),n=this._element.width,o=this._element.height,i=1,a=1,s=0,l=0,u=0,c=0,f=this.width,d=this.height,h={width:f,height:d};return!t||"none"===t.alignX&&"none"===t.alignY?(i=f/n,a=d/o):("meet"===t.meetOrSlice&&(i=a=r.util.findScaleToFit(this._element,h),e=(f-n*i)/2,"Min"===t.alignX&&(s=-e),"Max"===t.alignX&&(s=e),e=(d-o*a)/2,"Min"===t.alignY&&(l=-e),"Max"===t.alignY&&(l=e)),"slice"===t.meetOrSlice&&(i=a=r.util.findScaleToCover(this._element,h),e=n-f/i,"Mid"===t.alignX&&(u=e/2),"Max"===t.alignX&&(u=e),e=o-d/a,"Mid"===t.alignY&&(c=e/2),"Max"===t.alignY&&(c=e),n=f/i,o=d/a)),{width:n,height:o,scaleX:i,scaleY:a,offsetLeft:s,offsetTop:l,cropX:u,cropY:c}}}),r.Image.CSS_CANVAS="canvas-img",r.Image.prototype.getSvgSrc=r.Image.prototype.getSrc,r.Image.fromObject=function(e,t){var n=r.util.object.clone(e);r.util.loadImage(n.src,(function(e,o){o?t&&t(null,!0):r.Image.prototype._initFilters.call(n,n.filters,(function(o){n.filters=o||[],r.Image.prototype._initFilters.call(n,[n.resizeFilter],(function(o){n.resizeFilter=o[0],r.util.enlivenObjectEnlivables(n,n,(function(){var o=new r.Image(e,n);t(o,!1)}))}))}))}),null,n.crossOrigin)},r.Image.fromURL=function(e,t,n){r.util.loadImage(e,(function(e,o){t&&t(new r.Image(e,n),o)}),null,n&&n.crossOrigin)},r.Image.ATTRIBUTE_NAMES=r.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),r.Image.fromElement=function(e,n,o){var i=r.parseAttributes(e,r.Image.ATTRIBUTE_NAMES);r.Image.fromURL(i["xlink:href"],n,t(o?r.util.object.clone(o):{},i))})}(t),r.util.object.extend(r.Object.prototype,{_getAngleValueForStraighten:function(){var e=this.angle%360;return e>0?90*Math.round((e-1)/90):90*Math.round(e/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(e){e=e||{};var t=function(){},n=e.onComplete||t,o=e.onChange||t,i=this;return r.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(e){i.rotate(e),o()},onComplete:function(){i.setCoords(),n()}})}}),r.util.object.extend(r.StaticCanvas.prototype,{straightenObject:function(e){return e.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(e){return e.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){"use strict";function e(e,t){var n="precision "+t+" float;\nvoid main(){}",r=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(r,n),e.compileShader(r),!!e.getShaderParameter(r,e.COMPILE_STATUS)}function t(e){e&&e.tileSize&&(this.tileSize=e.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}r.isWebglSupported=function(t){if(r.isLikelyNode)return!1;t=t||r.WebglFilterBackend.prototype.tileSize;var n=document.createElement("canvas"),o=n.getContext("webgl")||n.getContext("experimental-webgl"),i=!1;if(o){r.maxTextureSize=o.getParameter(o.MAX_TEXTURE_SIZE),i=r.maxTextureSize>=t;for(var a=["highp","mediump","lowp"],s=0;s<3;s++)if(e(o,a[s])){r.webGlPrecision=a[s];break}}return this.isSupported=i,i},r.WebglFilterBackend=t,t.prototype={tileSize:2048,resources:{},setupGLContext:function(e,t){this.dispose(),this.createWebGLCanvas(e,t),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(e,t)},chooseFastestCopyGLTo2DMethod:function(e,t){var n,o="undefined"!==typeof window.performance;try{new ImageData(1,1),n=!0}catch(v){n=!1}var i="undefined"!==typeof ArrayBuffer,a="undefined"!==typeof Uint8ClampedArray;if(o&&n&&i&&a){var u=r.util.createCanvasElement(),c=new ArrayBuffer(e*t*4);if(r.forceGLPutImageData)return this.imageBuffer=c,void(this.copyGLTo2D=l);var f,d,h,p={imageBuffer:c,destinationWidth:e,destinationHeight:t,targetCanvas:u};u.width=e,u.height=t,f=window.performance.now(),s.call(p,this.gl,p),d=window.performance.now()-f,f=window.performance.now(),l.call(p,this.gl,p),h=window.performance.now()-f,d>h?(this.imageBuffer=c,this.copyGLTo2D=l):this.copyGLTo2D=s}},createWebGLCanvas:function(e,t){var n=r.util.createCanvasElement();n.width=e,n.height=t;var o={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},i=n.getContext("webgl",o);i||(i=n.getContext("experimental-webgl",o)),i&&(i.clearColor(0,0,0,0),this.canvas=n,this.gl=i)},applyFilters:function(e,t,n,r,o,i){var s,l=this.gl;i&&(s=this.getCachedTexture(i,t));var u={originalWidth:t.width||t.originalWidth,originalHeight:t.height||t.originalHeight,sourceWidth:n,sourceHeight:r,destinationWidth:n,destinationHeight:r,context:l,sourceTexture:this.createTexture(l,n,r,!s&&t),targetTexture:this.createTexture(l,n,r),originalTexture:s||this.createTexture(l,n,r,!s&&t),passes:e.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:o},c=l.createFramebuffer();return l.bindFramebuffer(l.FRAMEBUFFER,c),e.forEach((function(e){e&&e.applyTo(u)})),a(u),this.copyGLTo2D(l,u),l.bindTexture(l.TEXTURE_2D,null),l.deleteTexture(u.sourceTexture),l.deleteTexture(u.targetTexture),l.deleteFramebuffer(c),o.getContext("2d").setTransform(1,0,0,1,0,0),u},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(e,t,n,r,o){var i=e.createTexture();return e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,o||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,o||e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),r?e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,r):e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,n,0,e.RGBA,e.UNSIGNED_BYTE,null),i},getCachedTexture:function(e,t){if(this.textureCache[e])return this.textureCache[e];var n=this.createTexture(this.gl,t.width,t.height,t);return this.textureCache[e]=n,n},evictCachesForKey:function(e){this.textureCache[e]&&(this.gl.deleteTexture(this.textureCache[e]),delete this.textureCache[e])},copyGLTo2D:s,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var e=this.gl,t={renderer:"",vendor:""};if(!e)return t;var n=e.getExtension("WEBGL_debug_renderer_info");if(n){var r=e.getParameter(n.UNMASKED_RENDERER_WEBGL),o=e.getParameter(n.UNMASKED_VENDOR_WEBGL);r&&(t.renderer=r.toLowerCase()),o&&(t.vendor=o.toLowerCase())}return this.gpuInfo=t,t}}}(),function(){"use strict";var e=function(){};function t(){}r.Canvas2dFilterBackend=t,t.prototype={evictCachesForKey:e,dispose:e,clearWebGLCaches:e,resources:{},applyFilters:function(e,t,n,r,o){var i=o.getContext("2d");i.drawImage(t,0,0,n,r);var a=i.getImageData(0,0,n,r),s=i.getImageData(0,0,n,r),l={sourceWidth:n,sourceHeight:r,imageData:a,originalEl:t,originalImageData:s,canvasEl:o,ctx:i,filterBackend:this};return e.forEach((function(e){e.applyTo(l)})),l.imageData.width===n&&l.imageData.height===r||(o.width=l.imageData.width,o.height=l.imageData.height),i.putImageData(l.imageData,0,0),l}}}(),r.Image=r.Image||{},r.Image.filters=r.Image.filters||{},r.Image.filters.BaseFilter=r.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(e){e&&this.setOptions(e)},setOptions:function(e){for(var t in e)this[t]=e[t]},createProgram:function(e,t,n){t=t||this.fragmentSource,n=n||this.vertexSource,"highp"!==r.webGlPrecision&&(t=t.replace(/precision highp float/g,"precision "+r.webGlPrecision+" float"));var o=e.createShader(e.VERTEX_SHADER);if(e.shaderSource(o,n),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+e.getShaderInfoLog(o));var i=e.createShader(e.FRAGMENT_SHADER);if(e.shaderSource(i,t),e.compileShader(i),!e.getShaderParameter(i,e.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+e.getShaderInfoLog(i));var a=e.createProgram();if(e.attachShader(a,o),e.attachShader(a,i),e.linkProgram(a),!e.getProgramParameter(a,e.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+e.getProgramInfoLog(a));var s=this.getAttributeLocations(e,a),l=this.getUniformLocations(e,a)||{};return l.uStepW=e.getUniformLocation(a,"uStepW"),l.uStepH=e.getUniformLocation(a,"uStepH"),{program:a,attributeLocations:s,uniformLocations:l}},getAttributeLocations:function(e,t){return{aPosition:e.getAttribLocation(t,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(e,t,n){var r=t.aPosition,o=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,o),e.enableVertexAttribArray(r),e.vertexAttribPointer(r,2,e.FLOAT,!1,0,0),e.bufferData(e.ARRAY_BUFFER,n,e.STATIC_DRAW)},_setupFrameBuffer:function(e){var t,n,r=e.context;e.passes>1?(t=e.destinationWidth,n=e.destinationHeight,e.sourceWidth===t&&e.sourceHeight===n||(r.deleteTexture(e.targetTexture),e.targetTexture=e.filterBackend.createTexture(r,t,n)),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.targetTexture,0)):(r.bindFramebuffer(r.FRAMEBUFFER,null),r.finish())},_swapTextures:function(e){e.passes--,e.pass++;var t=e.targetTexture;e.targetTexture=e.sourceTexture,e.sourceTexture=t},isNeutralState:function(){var e=this.mainParameter,t=r.Image.filters[this.type].prototype;if(e){if(Array.isArray(t[e])){for(var n=t[e].length;n--;)if(this[e][n]!==t[e][n])return!1;return!0}return t[e]===this[e]}return!1},applyTo:function(e){e.webgl?(this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},retrieveShader:function(e){return e.programCache.hasOwnProperty(this.type)||(e.programCache[this.type]=this.createProgram(e.context)),e.programCache[this.type]},applyToWebGL:function(e){var t=e.context,n=this.retrieveShader(e);0===e.pass&&e.originalTexture?t.bindTexture(t.TEXTURE_2D,e.originalTexture):t.bindTexture(t.TEXTURE_2D,e.sourceTexture),t.useProgram(n.program),this.sendAttributeData(t,n.attributeLocations,e.aPosition),t.uniform1f(n.uniformLocations.uStepW,1/e.sourceWidth),t.uniform1f(n.uniformLocations.uStepH,1/e.sourceHeight),this.sendUniformData(t,n.uniformLocations),t.viewport(0,0,e.destinationWidth,e.destinationHeight),t.drawArrays(t.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(e,t,n){e.activeTexture(n),e.bindTexture(e.TEXTURE_2D,t),e.activeTexture(e.TEXTURE0)},unbindAdditionalTexture:function(e,t){e.activeTexture(t),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(e){this[this.mainParameter]=e},sendUniformData:function(){},createHelpLayer:function(e){if(!e.helpLayer){var t=document.createElement("canvas");t.width=e.sourceWidth,t.height=e.sourceHeight,e.helpLayer=t}},toObject:function(){var e={type:this.type},t=this.mainParameter;return t&&(e[t]=this[t]),e},toJSON:function(){return this.toObject()}}),r.Image.filters.BaseFilter.fromObject=function(e,t){var n=new r.Image.filters[e.type](e);return t&&t(n),n},function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.ColorMatrix=r(n.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(e){this.callSuper("initialize",e),this.matrix=this.matrix.slice(0)},applyTo2d:function(e){var t,n,r,o,i,a=e.imageData,s=a.data,l=s.length,u=this.matrix,c=this.colorsOnly;for(i=0;i<l;i+=4)t=s[i],n=s[i+1],r=s[i+2],c?(s[i]=t*u[0]+n*u[1]+r*u[2]+255*u[4],s[i+1]=t*u[5]+n*u[6]+r*u[7]+255*u[9],s[i+2]=t*u[10]+n*u[11]+r*u[12]+255*u[14]):(o=s[i+3],s[i]=t*u[0]+n*u[1]+r*u[2]+o*u[3]+255*u[4],s[i+1]=t*u[5]+n*u[6]+r*u[7]+o*u[8]+255*u[9],s[i+2]=t*u[10]+n*u[11]+r*u[12]+o*u[13]+255*u[14],s[i+3]=t*u[15]+n*u[16]+r*u[17]+o*u[18]+255*u[19])},getUniformLocations:function(e,t){return{uColorMatrix:e.getUniformLocation(t,"uColorMatrix"),uConstants:e.getUniformLocation(t,"uConstants")}},sendUniformData:function(e,t){var n=this.matrix,r=[n[0],n[1],n[2],n[3],n[5],n[6],n[7],n[8],n[10],n[11],n[12],n[13],n[15],n[16],n[17],n[18]],o=[n[4],n[9],n[14],n[19]];e.uniformMatrix4fv(t.uColorMatrix,!1,r),e.uniform4fv(t.uConstants,o)}}),t.Image.filters.ColorMatrix.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Brightness=r(n.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(e){if(0!==this.brightness){var t,n=e.imageData,r=n.data,o=r.length,i=Math.round(255*this.brightness);for(t=0;t<o;t+=4)r[t]=r[t]+i,r[t+1]=r[t+1]+i,r[t+2]=r[t+2]+i}},getUniformLocations:function(e,t){return{uBrightness:e.getUniformLocation(t,"uBrightness")}},sendUniformData:function(e,t){e.uniform1f(t.uBrightness,this.brightness)}}),t.Image.filters.Brightness.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.Image.filters,o=t.util.createClass;r.Convolute=o(r.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(e){var t=Math.sqrt(this.matrix.length),n=this.type+"_"+t+"_"+(this.opaque?1:0),r=this.fragmentSource[n];return e.programCache.hasOwnProperty(n)||(e.programCache[n]=this.createProgram(e.context,r)),e.programCache[n]},applyTo2d:function(e){var t,n,r,o,i,a,s,l,u,c,f,d,h,p=e.imageData,v=p.data,g=this.matrix,m=Math.round(Math.sqrt(g.length)),y=Math.floor(m/2),b=p.width,w=p.height,A=e.ctx.createImageData(b,w),x=A.data,C=this.opaque?1:0;for(f=0;f<w;f++)for(c=0;c<b;c++){for(i=4*(f*b+c),t=0,n=0,r=0,o=0,h=0;h<m;h++)for(d=0;d<m;d++)s=f+h-y,a=c+d-y,s<0||s>=w||a<0||a>=b||(l=4*(s*b+a),u=g[h*m+d],t+=v[l]*u,n+=v[l+1]*u,r+=v[l+2]*u,C||(o+=v[l+3]*u));x[i]=t,x[i+1]=n,x[i+2]=r,x[i+3]=C?v[i+3]:o}e.imageData=A},getUniformLocations:function(e,t){return{uMatrix:e.getUniformLocation(t,"uMatrix"),uOpaque:e.getUniformLocation(t,"uOpaque"),uHalfSize:e.getUniformLocation(t,"uHalfSize"),uSize:e.getUniformLocation(t,"uSize")}},sendUniformData:function(e,t){e.uniform1fv(t.uMatrix,this.matrix)},toObject:function(){return n(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),t.Image.filters.Convolute.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Grayscale=r(n.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(e){var t,n,r=e.imageData,o=r.data,i=o.length,a=this.mode;for(t=0;t<i;t+=4)"average"===a?n=(o[t]+o[t+1]+o[t+2])/3:"lightness"===a?n=(Math.min(o[t],o[t+1],o[t+2])+Math.max(o[t],o[t+1],o[t+2]))/2:"luminosity"===a&&(n=.21*o[t]+.72*o[t+1]+.07*o[t+2]),o[t]=n,o[t+1]=n,o[t+2]=n},retrieveShader:function(e){var t=this.type+"_"+this.mode;if(!e.programCache.hasOwnProperty(t)){var n=this.fragmentSource[this.mode];e.programCache[t]=this.createProgram(e.context,n)}return e.programCache[t]},getUniformLocations:function(e,t){return{uMode:e.getUniformLocation(t,"uMode")}},sendUniformData:function(e,t){var n=1;e.uniform1i(t.uMode,n)},isNeutralState:function(){return!1}}),t.Image.filters.Grayscale.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Invert=r(n.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(e){var t,n=e.imageData,r=n.data,o=r.length;for(t=0;t<o;t+=4)r[t]=255-r[t],r[t+1]=255-r[t+1],r[t+2]=255-r[t+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(e,t){return{uInvert:e.getUniformLocation(t,"uInvert")}},sendUniformData:function(e,t){e.uniform1i(t.uInvert,this.invert)}}),t.Image.filters.Invert.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.Image.filters,o=t.util.createClass;r.Noise=o(r.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(e){if(0!==this.noise){var t,n,r=e.imageData,o=r.data,i=o.length,a=this.noise;for(t=0,i=o.length;t<i;t+=4)n=(.5-Math.random())*a,o[t]+=n,o[t+1]+=n,o[t+2]+=n}},getUniformLocations:function(e,t){return{uNoise:e.getUniformLocation(t,"uNoise"),uSeed:e.getUniformLocation(t,"uSeed")}},sendUniformData:function(e,t){e.uniform1f(t.uNoise,this.noise/255),e.uniform1f(t.uSeed,Math.random())},toObject:function(){return n(this.callSuper("toObject"),{noise:this.noise})}}),t.Image.filters.Noise.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Pixelate=r(n.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(e){var t,n,r,o,i,a,s,l,u,c,f,d=e.imageData,h=d.data,p=d.height,v=d.width;for(n=0;n<p;n+=this.blocksize)for(r=0;r<v;r+=this.blocksize)for(t=4*n*v+4*r,o=h[t],i=h[t+1],a=h[t+2],s=h[t+3],c=Math.min(n+this.blocksize,p),f=Math.min(r+this.blocksize,v),l=n;l<c;l++)for(u=r;u<f;u++)t=4*l*v+4*u,h[t]=o,h[t+1]=i,h[t+2]=a,h[t+3]=s},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(e,t){return{uBlocksize:e.getUniformLocation(t,"uBlocksize"),uStepW:e.getUniformLocation(t,"uStepW"),uStepH:e.getUniformLocation(t,"uStepH")}},sendUniformData:function(e,t){e.uniform1f(t.uBlocksize,this.blocksize)}}),t.Image.filters.Pixelate.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.extend,r=t.Image.filters,o=t.util.createClass;r.RemoveColor=o(r.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(e){var n,r,o,i,a=e.imageData,s=a.data,l=255*this.distance,u=new t.Color(this.color).getSource(),c=[u[0]-l,u[1]-l,u[2]-l],f=[u[0]+l,u[1]+l,u[2]+l];for(n=0;n<s.length;n+=4)r=s[n],o=s[n+1],i=s[n+2],r>c[0]&&o>c[1]&&i>c[2]&&r<f[0]&&o<f[1]&&i<f[2]&&(s[n+3]=0)},getUniformLocations:function(e,t){return{uLow:e.getUniformLocation(t,"uLow"),uHigh:e.getUniformLocation(t,"uHigh")}},sendUniformData:function(e,n){var r=new t.Color(this.color).getSource(),o=parseFloat(this.distance),i=[0+r[0]/255-o,0+r[1]/255-o,0+r[2]/255-o,1],a=[r[0]/255+o,r[1]/255+o,r[2]/255+o,1];e.uniform4fv(n.uLow,i),e.uniform4fv(n.uHigh,a)},toObject:function(){return n(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),t.Image.filters.RemoveColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass,o={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var i in o)n[i]=r(n.ColorMatrix,{type:i,matrix:o[i],mainParameter:!1,colorsOnly:!0}),t.Image.filters[i].fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,n=t.Image.filters,r=t.util.createClass;n.BlendColor=r(n.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{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",diff:"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:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(e){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[e]+"}\n}"},retrieveShader:function(e){var t,n=this.type+"_"+this.mode;return e.programCache.hasOwnProperty(n)||(t=this.buildSource(this.mode),e.programCache[n]=this.createProgram(e.context,t)),e.programCache[n]},applyTo2d:function(e){var n,r,o,i,a,s,l,u=e.imageData,c=u.data,f=c.length,d=1-this.alpha;l=new t.Color(this.color).getSource(),n=l[0]*this.alpha,r=l[1]*this.alpha,o=l[2]*this.alpha;for(var h=0;h<f;h+=4)switch(i=c[h],a=c[h+1],s=c[h+2],this.mode){case"multiply":c[h]=i*n/255,c[h+1]=a*r/255,c[h+2]=s*o/255;break;case"screen":c[h]=255-(255-i)*(255-n)/255,c[h+1]=255-(255-a)*(255-r)/255,c[h+2]=255-(255-s)*(255-o)/255;break;case"add":c[h]=i+n,c[h+1]=a+r,c[h+2]=s+o;break;case"diff":case"difference":c[h]=Math.abs(i-n),c[h+1]=Math.abs(a-r),c[h+2]=Math.abs(s-o);break;case"subtract":c[h]=i-n,c[h+1]=a-r,c[h+2]=s-o;break;case"darken":c[h]=Math.min(i,n),c[h+1]=Math.min(a,r),c[h+2]=Math.min(s,o);break;case"lighten":c[h]=Math.max(i,n),c[h+1]=Math.max(a,r),c[h+2]=Math.max(s,o);break;case"overlay":c[h]=n<128?2*i*n/255:255-2*(255-i)*(255-n)/255,c[h+1]=r<128?2*a*r/255:255-2*(255-a)*(255-r)/255,c[h+2]=o<128?2*s*o/255:255-2*(255-s)*(255-o)/255;break;case"exclusion":c[h]=n+i-2*n*i/255,c[h+1]=r+a-2*r*a/255,c[h+2]=o+s-2*o*s/255;break;case"tint":c[h]=n+i*d,c[h+1]=r+a*d,c[h+2]=o+s*d}},getUniformLocations:function(e,t){return{uColor:e.getUniformLocation(t,"uColor")}},sendUniformData:function(e,n){var r=new t.Color(this.color).getSource();r[0]=this.alpha*r[0]/255,r[1]=this.alpha*r[1]/255,r[2]=this.alpha*r[2]/255,r[3]=this.alpha,e.uniform4fv(n.uColor,r)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendColor.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric,n=t.Image.filters,r=t.util.createClass;n.BlendImage=r(n.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(e){var t=this.type+"_"+this.mode,n=this.fragmentSource[this.mode];return e.programCache.hasOwnProperty(t)||(e.programCache[t]=this.createProgram(e.context,n)),e.programCache[t]},applyToWebGL:function(e){var t=e.context,n=this.createTexture(e.filterBackend,this.image);this.bindAdditionalTexture(t,n,t.TEXTURE1),this.callSuper("applyToWebGL",e),this.unbindAdditionalTexture(t,t.TEXTURE1)},createTexture:function(e,t){return e.getCachedTexture(t.cacheKey,t._element)},calculateMatrix:function(){var e=this.image,t=e._element.width,n=e._element.height;return[1/e.scaleX,0,0,0,1/e.scaleY,0,-e.left/t,-e.top/n,1]},applyTo2d:function(e){var n,r,o,i,a,s,l,u,c,f,d,h=e.imageData,p=e.filterBackend.resources,v=h.data,g=v.length,m=h.width,y=h.height,b=this.image;p.blendImage||(p.blendImage=t.util.createCanvasElement()),c=p.blendImage,f=c.getContext("2d"),c.width!==m||c.height!==y?(c.width=m,c.height=y):f.clearRect(0,0,m,y),f.setTransform(b.scaleX,0,0,b.scaleY,b.left,b.top),f.drawImage(b._element,0,0,m,y),d=f.getImageData(0,0,m,y).data;for(var w=0;w<g;w+=4)switch(a=v[w],s=v[w+1],l=v[w+2],u=v[w+3],n=d[w],r=d[w+1],o=d[w+2],i=d[w+3],this.mode){case"multiply":v[w]=a*n/255,v[w+1]=s*r/255,v[w+2]=l*o/255,v[w+3]=u*i/255;break;case"mask":v[w+3]=i;break}},getUniformLocations:function(e,t){return{uTransformMatrix:e.getUniformLocation(t,"uTransformMatrix"),uImage:e.getUniformLocation(t,"uImage")}},sendUniformData:function(e,t){var n=this.calculateMatrix();e.uniform1i(t.uImage,1),e.uniformMatrix3fv(t.uTransformMatrix,!1,n)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),t.Image.filters.BlendImage.fromObject=function(e,n){t.Image.fromObject(e.image,(function(r){var o=t.util.object.clone(e);o.image=r,n(new t.Image.filters.BlendImage(o))}))}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=Math.pow,r=Math.floor,o=Math.sqrt,i=Math.abs,a=Math.round,s=Math.sin,l=Math.ceil,u=t.Image.filters,c=t.util.createClass;u.Resize=c(u.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(e,t){return{uDelta:e.getUniformLocation(t,"uDelta"),uTaps:e.getUniformLocation(t,"uTaps")}},sendUniformData:function(e,t){e.uniform2fv(t.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),e.uniform1fv(t.uTaps,this.taps)},retrieveShader:function(e){var t=this.getFilterWindow(),n=this.type+"_"+t;if(!e.programCache.hasOwnProperty(n)){var r=this.generateShader(t);e.programCache[n]=this.createProgram(e.context,r)}return e.programCache[n]},getFilterWindow:function(){var e=this.tempScale;return Math.ceil(this.lanczosLobes/e)},getTaps:function(){for(var e=this.lanczosCreate(this.lanczosLobes),t=this.tempScale,n=this.getFilterWindow(),r=new Array(n),o=1;o<=n;o++)r[o-1]=e(o*t);return r},generateShader:function(e){for(var t=new Array(e),n=this.fragmentSourceTOP,r=1;r<=e;r++)t[r-1]=r+".0 * uDelta";return n+="uniform float uTaps["+e+"];\n",n+="void main() {\n",n+="  vec4 color = texture2D(uTexture, vTexCoord);\n",n+="  float sum = 1.0;\n",t.forEach((function(e,t){n+="  color += texture2D(uTexture, vTexCoord + "+e+") * uTaps["+t+"];\n",n+="  color += texture2D(uTexture, vTexCoord - "+e+") * uTaps["+t+"];\n",n+="  sum += 2.0 * uTaps["+t+"];\n"})),n+="  gl_FragColor = color / sum;\n",n+="}",n},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(e){e.webgl?(e.passes++,this.width=e.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=e.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),e.destinationWidth=this.dW,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceWidth=e.destinationWidth,this.height=e.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),e.destinationHeight=this.dH,this._setupFrameBuffer(e),this.applyToWebGL(e),this._swapTextures(e),e.sourceHeight=e.destinationHeight):this.applyTo2d(e)},isNeutralState:function(){return 1===this.scaleX&&1===this.scaleY},lanczosCreate:function(e){return function(t){if(t>=e||t<=-e)return 0;if(t<1.1920929e-7&&t>-1.1920929e-7)return 1;t*=Math.PI;var n=t/e;return s(t)/t*s(n)/n}},applyTo2d:function(e){var t=e.imageData,n=this.scaleX,r=this.scaleY;this.rcpScaleX=1/n,this.rcpScaleY=1/r;var o,i=t.width,s=t.height,l=a(i*n),u=a(s*r);"sliceHack"===this.resizeType?o=this.sliceByTwo(e,i,s,l,u):"hermite"===this.resizeType?o=this.hermiteFastResize(e,i,s,l,u):"bilinear"===this.resizeType?o=this.bilinearFiltering(e,i,s,l,u):"lanczos"===this.resizeType&&(o=this.lanczosResize(e,i,s,l,u)),e.imageData=o},sliceByTwo:function(e,n,o,i,a){var s,l,u=e.imageData,c=.5,f=!1,d=!1,h=n*c,p=o*c,v=t.filterBackend.resources,g=0,m=0,y=n,b=0;v.sliceByTwo||(v.sliceByTwo=document.createElement("canvas")),s=v.sliceByTwo,(s.width<1.5*n||s.height<o)&&(s.width=1.5*n,s.height=o),l=s.getContext("2d"),l.clearRect(0,0,1.5*n,o),l.putImageData(u,0,0),i=r(i),a=r(a);while(!f||!d)n=h,o=p,i<r(h*c)?h=r(h*c):(h=i,f=!0),a<r(p*c)?p=r(p*c):(p=a,d=!0),l.drawImage(s,g,m,n,o,y,b,h,p),g=y,m=b,b+=p;return l.getImageData(g,m,i,a)},lanczosResize:function(e,t,a,s,u){function c(e){var l,S,_,k,E,O,F,T,P,N,M;for(x.x=(e+.5)*v,C.x=r(x.x),l=0;l<u;l++){for(x.y=(l+.5)*g,C.y=r(x.y),E=0,O=0,F=0,T=0,P=0,S=C.x-b;S<=C.x+b;S++)if(!(S<0||S>=t)){N=r(1e3*i(S-x.x)),A[N]||(A[N]={});for(var L=C.y-w;L<=C.y+w;L++)L<0||L>=a||(M=r(1e3*i(L-x.y)),A[N][M]||(A[N][M]=p(o(n(N*m,2)+n(M*y,2))/1e3)),_=A[N][M],_>0&&(k=4*(L*t+S),E+=_,O+=_*f[k],F+=_*f[k+1],T+=_*f[k+2],P+=_*f[k+3]))}k=4*(l*s+e),h[k]=O/E,h[k+1]=F/E,h[k+2]=T/E,h[k+3]=P/E}return++e<s?c(e):d}var f=e.imageData.data,d=e.ctx.createImageData(s,u),h=d.data,p=this.lanczosCreate(this.lanczosLobes),v=this.rcpScaleX,g=this.rcpScaleY,m=2/this.rcpScaleX,y=2/this.rcpScaleY,b=l(v*this.lanczosLobes/2),w=l(g*this.lanczosLobes/2),A={},x={},C={};return c(0)},bilinearFiltering:function(e,t,n,o,i){var a,s,l,u,c,f,d,h,p,v,g,m,y,b=0,w=this.rcpScaleX,A=this.rcpScaleY,x=4*(t-1),C=e.imageData,S=C.data,_=e.ctx.createImageData(o,i),k=_.data;for(d=0;d<i;d++)for(h=0;h<o;h++)for(c=r(w*h),f=r(A*d),p=w*h-c,v=A*d-f,y=4*(f*t+c),g=0;g<4;g++)a=S[y+g],s=S[y+4+g],l=S[y+x+g],u=S[y+x+4+g],m=a*(1-p)*(1-v)+s*p*(1-v)+l*v*(1-p)+u*p*v,k[b++]=m;return _},hermiteFastResize:function(e,t,n,a,s){for(var u=this.rcpScaleX,c=this.rcpScaleY,f=l(u/2),d=l(c/2),h=e.imageData,p=h.data,v=e.ctx.createImageData(a,s),g=v.data,m=0;m<s;m++)for(var y=0;y<a;y++){for(var b=4*(y+m*a),w=0,A=0,x=0,C=0,S=0,_=0,k=0,E=(m+.5)*c,O=r(m*c);O<(m+1)*c;O++)for(var F=i(E-(O+.5))/d,T=(y+.5)*u,P=F*F,N=r(y*u);N<(y+1)*u;N++){var M=i(T-(N+.5))/f,L=o(P+M*M);L>1&&L<-1||(w=2*L*L*L-3*L*L+1,w>0&&(M=4*(N+O*t),k+=w*p[M+3],x+=w,p[M+3]<255&&(w=w*p[M+3]/250),C+=w*p[M],S+=w*p[M+1],_+=w*p[M+2],A+=w))}g[b]=C/A,g[b+1]=S/A,g[b+2]=_/A,g[b+3]=k/x}return v},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),t.Image.filters.Resize.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Contrast=r(n.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(e){if(0!==this.contrast){var t,n=e.imageData,r=n.data,o=r.length,i=Math.floor(255*this.contrast),a=259*(i+255)/(255*(259-i));for(t=0;t<o;t+=4)r[t]=a*(r[t]-128)+128,r[t+1]=a*(r[t+1]-128)+128,r[t+2]=a*(r[t+2]-128)+128}},getUniformLocations:function(e,t){return{uContrast:e.getUniformLocation(t,"uContrast")}},sendUniformData:function(e,t){e.uniform1f(t.uContrast,this.contrast)}}),t.Image.filters.Contrast.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Saturation=r(n.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(e){if(0!==this.saturation){var t,n,r=e.imageData,o=r.data,i=o.length,a=-this.saturation;for(t=0;t<i;t+=4)n=Math.max(o[t],o[t+1],o[t+2]),o[t]+=n!==o[t]?(n-o[t])*a:0,o[t+1]+=n!==o[t+1]?(n-o[t+1])*a:0,o[t+2]+=n!==o[t+2]?(n-o[t+2])*a:0}},getUniformLocations:function(e,t){return{uSaturation:e.getUniformLocation(t,"uSaturation")}},sendUniformData:function(e,t){e.uniform1f(t.uSaturation,-this.saturation)}}),t.Image.filters.Saturation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Vibrance=r(n.BaseFilter,{type:"Vibrance",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uVibrance;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat max = max(color.r, max(color.g, color.b));\nfloat avg = (color.r + color.g + color.b) / 3.0;\nfloat amt = (abs(max - avg) * 2.0) * uVibrance;\ncolor.r += max != color.r ? (max - color.r) * amt : 0.00;\ncolor.g += max != color.g ? (max - color.g) * amt : 0.00;\ncolor.b += max != color.b ? (max - color.b) * amt : 0.00;\ngl_FragColor = color;\n}",vibrance:0,mainParameter:"vibrance",applyTo2d:function(e){if(0!==this.vibrance){var t,n,r,o,i=e.imageData,a=i.data,s=a.length,l=-this.vibrance;for(t=0;t<s;t+=4)n=Math.max(a[t],a[t+1],a[t+2]),r=(a[t]+a[t+1]+a[t+2])/3,o=2*Math.abs(n-r)/255*l,a[t]+=n!==a[t]?(n-a[t])*o:0,a[t+1]+=n!==a[t+1]?(n-a[t+1])*o:0,a[t+2]+=n!==a[t+2]?(n-a[t+2])*o:0}},getUniformLocations:function(e,t){return{uVibrance:e.getUniformLocation(t,"uVibrance")}},sendUniformData:function(e,t){e.uniform1f(t.uVibrance,-this.vibrance)}}),t.Image.filters.Vibrance.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Blur=r(n.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(e){e.webgl?(this.aspectRatio=e.sourceWidth/e.sourceHeight,e.passes++,this._setupFrameBuffer(e),this.horizontal=!0,this.applyToWebGL(e),this._swapTextures(e),this._setupFrameBuffer(e),this.horizontal=!1,this.applyToWebGL(e),this._swapTextures(e)):this.applyTo2d(e)},applyTo2d:function(e){e.imageData=this.simpleBlur(e)},simpleBlur:function(e){var n,r,o=e.filterBackend.resources,i=e.imageData.width,a=e.imageData.height;o.blurLayer1||(o.blurLayer1=t.util.createCanvasElement(),o.blurLayer2=t.util.createCanvasElement()),n=o.blurLayer1,r=o.blurLayer2,n.width===i&&n.height===a||(r.width=n.width=i,r.height=n.height=a);var s,l,u,c,f=n.getContext("2d"),d=r.getContext("2d"),h=15,p=.06*this.blur*.5;for(f.putImageData(e.imageData,0,0),d.clearRect(0,0,i,a),c=-h;c<=h;c++)s=(Math.random()-.5)/4,l=c/h,u=p*l*i+s,d.globalAlpha=1-Math.abs(l),d.drawImage(n,u,s),f.drawImage(r,0,0),d.globalAlpha=1,d.clearRect(0,0,r.width,r.height);for(c=-h;c<=h;c++)s=(Math.random()-.5)/4,l=c/h,u=p*l*a+s,d.globalAlpha=1-Math.abs(l),d.drawImage(n,s,u),f.drawImage(r,0,0),d.globalAlpha=1,d.clearRect(0,0,r.width,r.height);e.ctx.drawImage(n,0,0);var v=e.ctx.getImageData(0,0,n.width,n.height);return f.globalAlpha=1,f.clearRect(0,0,n.width,n.height),v},getUniformLocations:function(e,t){return{delta:e.getUniformLocation(t,"uDelta")}},sendUniformData:function(e,t){var n=this.chooseRightDelta();e.uniform2fv(t.delta,n)},chooseRightDelta:function(){var e,t=1,n=[0,0];return this.horizontal?this.aspectRatio>1&&(t=1/this.aspectRatio):this.aspectRatio<1&&(t=this.aspectRatio),e=t*this.blur*.12,this.horizontal?n[0]=e:n[1]=e,n}}),n.Blur.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Gamma=r(n.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",initialize:function(e){this.gamma=[1,1,1],n.BaseFilter.prototype.initialize.call(this,e)},applyTo2d:function(e){var t,n=e.imageData,r=n.data,o=this.gamma,i=r.length,a=1/o[0],s=1/o[1],l=1/o[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),t=0,i=256;t<i;t++)this.rVals[t]=255*Math.pow(t/255,a),this.gVals[t]=255*Math.pow(t/255,s),this.bVals[t]=255*Math.pow(t/255,l);for(t=0,i=r.length;t<i;t+=4)r[t]=this.rVals[r[t]],r[t+1]=this.gVals[r[t+1]],r[t+2]=this.bVals[r[t+2]]},getUniformLocations:function(e,t){return{uGamma:e.getUniformLocation(t,"uGamma")}},sendUniformData:function(e,t){e.uniform3fv(t.uGamma,this.gamma)}}),t.Image.filters.Gamma.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.Composed=r(n.BaseFilter,{type:"Composed",subFilters:[],initialize:function(e){this.callSuper("initialize",e),this.subFilters=this.subFilters.slice(0)},applyTo:function(e){e.passes+=this.subFilters.length-1,this.subFilters.forEach((function(t){t.applyTo(e)}))},toObject:function(){return t.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map((function(e){return e.toObject()}))})},isNeutralState:function(){return!this.subFilters.some((function(e){return!e.isNeutralState()}))}}),t.Image.filters.Composed.fromObject=function(e,n){var r=e.subFilters||[],o=r.map((function(e){return new t.Image.filters[e.type](e)})),i=new t.Image.filters.Composed({subFilters:o});return n&&n(i),i}}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.Image.filters,r=t.util.createClass;n.HueRotation=r(n.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var e=this.rotation*Math.PI,n=t.util.cos(e),r=t.util.sin(e),o=1/3,i=Math.sqrt(o)*r,a=1-n;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=n+a/3,this.matrix[1]=o*a-i,this.matrix[2]=o*a+i,this.matrix[5]=o*a+i,this.matrix[6]=n+o*a,this.matrix[7]=o*a-i,this.matrix[10]=o*a-i,this.matrix[11]=o*a+i,this.matrix[12]=n+o*a},isNeutralState:function(e){return this.calculateMatrix(),n.BaseFilter.prototype.isNeutralState.call(this,e)},applyTo:function(e){this.calculateMatrix(),n.BaseFilter.prototype.applyTo.call(this,e)}}),t.Image.filters.HueRotation.fromObject=t.Image.filters.BaseFilter.fromObject}(t),function(e){"use strict";var t=e.fabric||(e.fabric={}),n=t.util.object.clone;if(t.Text)t.warn("fabric.Text is already defined");else{var r="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");t.Text=t.util.createClass(t.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:t.Object.prototype.stateProperties.concat(r),cacheProperties:t.Object.prototype.cacheProperties.concat(r),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(e,t){this.styles=t&&t.styles||{},this.text=e,this.__skipDimension=!0,this.callSuper("initialize",t),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var e=this.path;e&&(e.segmentsInfo=t.util.getPathSegmentsInfo(e.path))},getMeasuringContext:function(){return t._measuringContext||(t._measuringContext=this.canvas&&this.canvas.contextCache||t.util.createCanvasElement().getContext("2d")),t._measuringContext},_splitText:function(){var e=this._splitTextIntoLines(this.text);return this.textLines=e.lines,this._textLines=e.graphemeLines,this._unwrappedTextLines=e._unwrappedLines,this._text=e.graphemeText,e},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),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()),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var e,t,n,r,o,i,a,s=0,l=this._textLines.length;s<l;s++)if(("justify"===this.textAlign||s!==l-1&&!this.isEndOfWrapping(s))&&(r=0,o=this._textLines[s],t=this.getLineWidth(s),t<this.width&&(a=this.textLines[s].match(this._reSpacesAndTabs)))){n=a.length,e=(this.width-t)/n;for(var u=0,c=o.length;u<=c;u++)i=this.__charBounds[s][u],this._reSpaceAndTab.test(o[u])?(i.width+=e,i.kernedWidth+=e,i.left+=r,r+=e):i.left+=r}},isEndOfWrapping:function(e){return e===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var e=this.callSuper("_getCacheCanvasDimensions"),t=this.fontSize;return e.width+=t*e.zoomX,e.height+=t*e.zoomY,e},_render:function(e){var t=this.path;t&&!t.isNotVisible()&&t._render(e),this._setTextStyles(e),this._renderTextLinesBackground(e),this._renderTextDecoration(e,"underline"),this._renderText(e),this._renderTextDecoration(e,"overline"),this._renderTextDecoration(e,"linethrough")},_renderText:function(e){"stroke"===this.paintFirst?(this._renderTextStroke(e),this._renderTextFill(e)):(this._renderTextFill(e),this._renderTextStroke(e))},_setTextStyles:function(e,t,n){if(e.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":e.textBaseline="middle";break;case"ascender":e.textBaseline="top";break;case"descender":e.textBaseline="bottom";break}e.font=this._getFontDeclaration(t,n)},calcTextWidth:function(){for(var e=this.getLineWidth(0),t=1,n=this._textLines.length;t<n;t++){var r=this.getLineWidth(t);r>e&&(e=r)}return e},_renderTextLine:function(e,t,n,r,o,i){this._renderChars(e,t,n,r,o,i)},_renderTextLinesBackground:function(e){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var t,n,r,o,i,a,s,l=e.fillStyle,u=this._getLeftOffset(),c=this._getTopOffset(),f=0,d=0,h=this.path,p=0,v=this._textLines.length;p<v;p++)if(t=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){r=this._textLines[p],n=this._getLineLeftOffset(p),d=0,f=0,o=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var g=0,m=r.length;g<m;g++)i=this.__charBounds[p][g],a=this.getValueOfPropertyAt(p,g,"textBackgroundColor"),h?(e.save(),e.translate(i.renderLeft,i.renderTop),e.rotate(i.angle),e.fillStyle=a,a&&e.fillRect(-i.width/2,-t/this.lineHeight*(1-this._fontSizeFraction),i.width,t/this.lineHeight),e.restore()):a!==o?(s=u+n+f,"rtl"===this.direction&&(s=this.width-s-d),e.fillStyle=o,o&&e.fillRect(s,c,d,t/this.lineHeight),f=i.left,d=i.width,o=a):d+=i.kernedWidth;a&&!h&&(s=u+n+f,"rtl"===this.direction&&(s=this.width-s-d),e.fillStyle=a,e.fillRect(s,c,d,t/this.lineHeight)),c+=t}else c+=t;e.fillStyle=l,this._removeShadow(e)}},getFontCache:function(e){var n=e.fontFamily.toLowerCase();t.charWidthsCache[n]||(t.charWidthsCache[n]={});var r=t.charWidthsCache[n],o=e.fontStyle.toLowerCase()+"_"+(e.fontWeight+"").toLowerCase();return r[o]||(r[o]={}),r[o]},_measureChar:function(e,t,n,r){var o,i,a,s,l=this.getFontCache(t),u=this._getFontDeclaration(t),c=this._getFontDeclaration(r),f=n+e,d=u===c,h=t.fontSize/this.CACHE_FONT_SIZE;if(n&&void 0!==l[n]&&(a=l[n]),void 0!==l[e]&&(s=o=l[e]),d&&void 0!==l[f]&&(i=l[f],s=i-a),void 0===o||void 0===a||void 0===i){var p=this.getMeasuringContext();this._setTextStyles(p,t,!0)}return void 0===o&&(s=o=p.measureText(e).width,l[e]=o),void 0===a&&d&&n&&(a=p.measureText(n).width,l[n]=a),d&&void 0===i&&(i=p.measureText(f).width,l[f]=i,s=i-a),{width:o*h,kernedWidth:s*h}},getHeightOfChar:function(e,t){return this.getValueOfPropertyAt(e,t,"fontSize")},measureLine:function(e){var t=this._measureLine(e);return 0!==this.charSpacing&&(t.width-=this._getWidthOfCharSpacing()),t.width<0&&(t.width=0),t},_measureLine:function(e){var n,r,o,i,a,s,l=0,u=this._textLines[e],c=0,f=new Array(u.length),d=0,h=this.path,p="right"===this.pathSide;for(this.__charBounds[e]=f,n=0;n<u.length;n++)r=u[n],i=this._getGraphemeBox(r,e,n,o),f[n]=i,l+=i.kernedWidth,o=r;if(f[n]={left:i?i.left+i.width:0,width:0,kernedWidth:0,height:this.fontSize},h){switch(s=h.segmentsInfo[h.segmentsInfo.length-1].length,a=t.util.getPointOnPath(h.path,0,h.segmentsInfo),a.x+=h.pathOffset.x,a.y+=h.pathOffset.y,this.textAlign){case"left":d=p?s-l:0;break;case"center":d=(s-l)/2;break;case"right":d=p?0:s-l;break}for(d+=this.pathStartOffset*(p?-1:1),n=p?u.length-1:0;p?n>=0:n<u.length;p?n--:n++)i=f[n],d>s?d%=s:d<0&&(d+=s),this._setGraphemeOnPath(d,i,a),d+=i.kernedWidth}return{width:l,numOfSpaces:c}},_setGraphemeOnPath:function(e,n,r){var o=e+n.kernedWidth/2,i=this.path,a=t.util.getPointOnPath(i.path,o,i.segmentsInfo);n.renderLeft=a.x-r.x,n.renderTop=a.y-r.y,n.angle=a.angle+("right"===this.pathSide?Math.PI:0)},_getGraphemeBox:function(e,t,n,r,o){var i,a=this.getCompleteStyleDeclaration(t,n),s=r?this.getCompleteStyleDeclaration(t,n-1):{},l=this._measureChar(e,a,r,s),u=l.kernedWidth,c=l.width;0!==this.charSpacing&&(i=this._getWidthOfCharSpacing(),c+=i,u+=i);var f={width:c,left:0,height:a.fontSize,kernedWidth:u,deltaY:a.deltaY};if(n>0&&!o){var d=this.__charBounds[t][n-1];f.left=d.left+d.width+l.kernedWidth-l.width}return f},getHeightOfLine:function(e){if(this.__lineHeights[e])return this.__lineHeights[e];for(var t=this._textLines[e],n=this.getHeightOfChar(e,0),r=1,o=t.length;r<o;r++)n=Math.max(this.getHeightOfChar(e,r),n);return this.__lineHeights[e]=n*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var e,t=0,n=0,r=this._textLines.length;n<r;n++)e=this.getHeightOfLine(n),t+=n===r-1?e/this.lineHeight:e;return t},_getLeftOffset:function(){return"ltr"===this.direction?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(e,t){e.save();for(var n=0,r=this._getLeftOffset(),o=this._getTopOffset(),i=0,a=this._textLines.length;i<a;i++){var s=this.getHeightOfLine(i),l=s/this.lineHeight,u=this._getLineLeftOffset(i);this._renderTextLine(t,e,this._textLines[i],r+u,o+n+l,i),n+=s}e.restore()},_renderTextFill:function(e){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(e,"fillText")},_renderTextStroke:function(e){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(e),e.save(),this._setLineDash(e,this.strokeDashArray),e.beginPath(),this._renderTextCommon(e,"strokeText"),e.closePath(),e.restore())},_renderChars:function(e,n,r,o,i,a){var s,l,u,c,f,d=this.getHeightOfLine(a),h=-1!==this.textAlign.indexOf("justify"),p="",v=0,g=this.path,m=!h&&0===this.charSpacing&&this.isEmptyStyles(a)&&!g,y="ltr"===this.direction,b="ltr"===this.direction?1:-1,w=n.canvas.getAttribute("dir");if(n.save(),w!==this.direction&&(n.canvas.setAttribute("dir",y?"ltr":"rtl"),n.direction=y?"ltr":"rtl",n.textAlign=y?"left":"right"),i-=d*this._fontSizeFraction/this.lineHeight,m)return this._renderChar(e,n,a,0,r.join(""),o,i,d),void n.restore();for(var A=0,x=r.length-1;A<=x;A++)c=A===x||this.charSpacing||g,p+=r[A],u=this.__charBounds[a][A],0===v?(o+=b*(u.kernedWidth-u.width),v+=u.width):v+=u.kernedWidth,h&&!c&&this._reSpaceAndTab.test(r[A])&&(c=!0),c||(s=s||this.getCompleteStyleDeclaration(a,A),l=this.getCompleteStyleDeclaration(a,A+1),c=t.util.hasStyleChanged(s,l,!1)),c&&(g?(n.save(),n.translate(u.renderLeft,u.renderTop),n.rotate(u.angle),this._renderChar(e,n,a,A,p,-v/2,0,d),n.restore()):(f=o,this._renderChar(e,n,a,A,p,f,i,d)),p="",s=l,o+=b*v,v=0);n.restore()},_applyPatternGradientTransformText:function(e){var n,r=t.util.createCanvasElement(),o=this.width+this.strokeWidth,i=this.height+this.strokeWidth;return r.width=o,r.height=i,n=r.getContext("2d"),n.beginPath(),n.moveTo(0,0),n.lineTo(o,0),n.lineTo(o,i),n.lineTo(0,i),n.closePath(),n.translate(o/2,i/2),n.fillStyle=e.toLive(n),this._applyPatternGradientTransform(n,e),n.fill(),n.createPattern(r,"no-repeat")},handleFiller:function(e,t,n){var r,o;return n.toLive?"percentage"===n.gradientUnits||n.gradientTransform||n.patternTransform?(r=-this.width/2,o=-this.height/2,e.translate(r,o),e[t]=this._applyPatternGradientTransformText(n),{offsetX:r,offsetY:o}):(e[t]=n.toLive(e,this),this._applyPatternGradientTransform(e,n)):(e[t]=n,{offsetX:0,offsetY:0})},_setStrokeStyles:function(e,t){return e.lineWidth=t.strokeWidth,e.lineCap=this.strokeLineCap,e.lineDashOffset=this.strokeDashOffset,e.lineJoin=this.strokeLineJoin,e.miterLimit=this.strokeMiterLimit,this.handleFiller(e,"strokeStyle",t.stroke)},_setFillStyles:function(e,t){return this.handleFiller(e,"fillStyle",t.fill)},_renderChar:function(e,t,n,r,o,i,a){var s,l,u=this._getStyleDeclaration(n,r),c=this.getCompleteStyleDeclaration(n,r),f="fillText"===e&&c.fill,d="strokeText"===e&&c.stroke&&c.strokeWidth;(d||f)&&(t.save(),f&&(s=this._setFillStyles(t,c)),d&&(l=this._setStrokeStyles(t,c)),t.font=this._getFontDeclaration(c),u&&u.textBackgroundColor&&this._removeShadow(t),u&&u.deltaY&&(a+=u.deltaY),f&&t.fillText(o,i-s.offsetX,a-s.offsetY),d&&t.strokeText(o,i-l.offsetX,a-l.offsetY),t.restore())},setSuperscript:function(e,t){return this._setScript(e,t,this.superscript)},setSubscript:function(e,t){return this._setScript(e,t,this.subscript)},_setScript:function(e,t,n){var r=this.get2DCursorLocation(e,!0),o=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,"fontSize"),i=this.getValueOfPropertyAt(r.lineIndex,r.charIndex,"deltaY"),a={fontSize:o*n.size,deltaY:i+o*n.baseline};return this.setSelectionStyles(a,e,t),this},_getLineLeftOffset:function(e){var t=this.getLineWidth(e),n=this.width-t,r=this.textAlign,o=this.direction,i=0,a=this.isEndOfWrapping(e);return"justify"===r||"justify-center"===r&&!a||"justify-right"===r&&!a||"justify-left"===r&&!a?0:("center"===r&&(i=n/2),"right"===r&&(i=n),"justify-center"===r&&(i=n/2),"justify-right"===r&&(i=n),"rtl"===o&&(i-=n),i)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var e=this._forceClearCache;return e||(e=this.hasStateChanged("_dimensionAffectingProps")),e&&(this.dirty=!0,this._forceClearCache=!1),e},getLineWidth:function(e){if(void 0!==this.__lineWidths[e])return this.__lineWidths[e];var t=this.measureLine(e),n=t.width;return this.__lineWidths[e]=n,n},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(e,t,n){var r=this._getStyleDeclaration(e,t);return r&&"undefined"!==typeof r[n]?r[n]:this[n]},_renderTextDecoration:function(e,t){if(this[t]||this.styleHas(t)){e.save(),"overline"!==t&&"linethrough"!==t||this._removeShadow(e);for(var n,r,o,i,a,s,l,u,c,f,d,h,p,v,g,m,y=this._getLeftOffset(),b=this._getTopOffset(),w=this.path,A=this._getWidthOfCharSpacing(),x=this.offsets[t],C=0,S=this._textLines.length;C<S;C++)if(n=this.getHeightOfLine(C),this[t]||this.styleHas(t,C)){l=this._textLines[C],v=n/this.lineHeight,i=this._getLineLeftOffset(C),f=0,d=0,u=this.getValueOfPropertyAt(C,0,t),m=this.getValueOfPropertyAt(C,0,"fill"),c=b+v*(1-this._fontSizeFraction),r=this.getHeightOfChar(C,0),a=this.getValueOfPropertyAt(C,0,"deltaY");for(var _=0,k=l.length;_<k;_++)if(h=this.__charBounds[C][_],p=this.getValueOfPropertyAt(C,_,t),g=this.getValueOfPropertyAt(C,_,"fill"),o=this.getHeightOfChar(C,_),s=this.getValueOfPropertyAt(C,_,"deltaY"),w&&p&&g)e.save(),e.fillStyle=m,e.translate(h.renderLeft,h.renderTop),e.rotate(h.angle),e.fillRect(-h.kernedWidth/2,x*o+s,h.kernedWidth,this.fontSize/15),e.restore();else if((p!==u||g!==m||o!==r||s!==a)&&d>0){var E=y+i+f;"rtl"===this.direction&&(E=this.width-E-d),u&&m&&(e.fillStyle=m,e.fillRect(E,c+x*r+a,d,this.fontSize/15)),f=h.left,d=h.width,u=p,m=g,r=o,a=s}else d+=h.kernedWidth;E=y+i+f;"rtl"===this.direction&&(E=this.width-E-d),e.fillStyle=g,p&&g&&e.fillRect(E,c+x*r+a,d-A,this.fontSize/15),b+=n}else b+=n;e.restore()}},_getFontDeclaration:function(e,n){var r=e||this,o=this.fontFamily,i=t.Text.genericFonts.indexOf(o.toLowerCase())>-1,a=void 0===o||o.indexOf("'")>-1||o.indexOf(",")>-1||o.indexOf('"')>-1||i?r.fontFamily:'"'+r.fontFamily+'"';return[t.isLikelyNode?r.fontWeight:r.fontStyle,t.isLikelyNode?r.fontStyle:r.fontWeight,n?this.CACHE_FONT_SIZE+"px":r.fontSize+"px",a].join(" ")},render:function(e){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",e)))},_splitTextIntoLines:function(e){for(var n=e.split(this._reNewline),r=new Array(n.length),o=["\n"],i=[],a=0;a<n.length;a++)r[a]=t.util.string.graphemeSplit(n[a]),i=i.concat(r[a],o);return i.pop(),{_unwrappedLines:r,lines:n,graphemeText:i,graphemeLines:r}},toObject:function(e){var n=r.concat(e),o=this.callSuper("toObject",n);return o.styles=t.util.stylesToArray(this.styles,this.text),o.path&&(o.path=this.path.toObject()),o},set:function(e,t){this.callSuper("set",e,t);var n=!1,r=!1;if("object"===typeof e)for(var o in e)"path"===o&&this.setPathInfo(),n=n||-1!==this._dimensionAffectingProps.indexOf(o),r=r||"path"===o;else n=-1!==this._dimensionAffectingProps.indexOf(e),r="path"===e;return r&&this.setPathInfo(),n&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),t.Text.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),t.Text.DEFAULT_SVG_FONT_SIZE=16,t.Text.fromElement=function(e,r,o){if(!e)return r(null);var i=t.parseAttributes(e,t.Text.ATTRIBUTE_NAMES),a=i.textAnchor||"left";if(o=t.util.object.extend(o?n(o):{},i),o.top=o.top||0,o.left=o.left||0,i.textDecoration){var s=i.textDecoration;-1!==s.indexOf("underline")&&(o.underline=!0),-1!==s.indexOf("overline")&&(o.overline=!0),-1!==s.indexOf("line-through")&&(o.linethrough=!0),delete o.textDecoration}"dx"in i&&(o.left+=i.dx),"dy"in i&&(o.top+=i.dy),"fontSize"in o||(o.fontSize=t.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in e?l=e.textContent:"firstChild"in e&&null!==e.firstChild&&"data"in e.firstChild&&null!==e.firstChild.data&&(l=e.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var u=o.strokeWidth;o.strokeWidth=0;var c=new t.Text(l,o),f=c.getScaledHeight()/c.height,d=(c.height+c.strokeWidth)*c.lineHeight-c.height,h=d*f,p=c.getScaledHeight()+h,v=0;"center"===a&&(v=c.getScaledWidth()/2),"right"===a&&(v=c.getScaledWidth()),c.set({left:c.left-v,top:c.top-(p-c.fontSize*(.07+c._fontSizeFraction))/c.lineHeight,strokeWidth:"undefined"!==typeof u?u:1}),r(c)},t.Text.fromObject=function(e,r){var o=n(e),i=e.path;return delete o.path,t.Object._fromObject("Text",o,(function(n){n.styles=t.util.stylesFromArray(e.styles,e.text),i?t.Object._fromObject("Path",i,(function(e){n.set("path",e),r(n)}),"path"):r(n)}),"text")},t.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],t.util.createAccessors&&t.util.createAccessors(t.Text)}}(t),function(){r.util.object.extend(r.Text.prototype,{isEmptyStyles:function(e){if(!this.styles)return!0;if("undefined"!==typeof e&&!this.styles[e])return!0;var t="undefined"===typeof e?this.styles:{line:this.styles[e]};for(var n in t)for(var r in t[n])for(var o in t[n][r])return!1;return!0},styleHas:function(e,t){if(!this.styles||!e||""===e)return!1;if("undefined"!==typeof t&&!this.styles[t])return!1;var n="undefined"===typeof t?this.styles:{0:this.styles[t]};for(var r in n)for(var o in n[r])if("undefined"!==typeof n[r][o][e])return!0;return!1},cleanStyle:function(e){if(!this.styles||!e||""===e)return!1;var t,n,r=this.styles,o=0,i=!0,a=0;for(var s in r){for(var l in t=0,r[s]){var u=r[s][l],c=u.hasOwnProperty(e);o++,c?(n?u[e]!==n&&(i=!1):n=u[e],u[e]===this[e]&&delete u[e]):i=!1,0!==Object.keys(u).length?t++:delete r[s][l]}0===t&&delete r[s]}for(var f=0;f<this._textLines.length;f++)a+=this._textLines[f].length;i&&o===a&&(this[e]=n,this.removeStyle(e))},removeStyle:function(e){if(this.styles&&e&&""!==e){var t,n,r,o=this.styles;for(n in o){for(r in t=o[n],t)delete t[r][e],0===Object.keys(t[r]).length&&delete t[r];0===Object.keys(t).length&&delete o[n]}}},_extendStyles:function(e,t){var n=this.get2DCursorLocation(e);this._getLineStyle(n.lineIndex)||this._setLineStyle(n.lineIndex),this._getStyleDeclaration(n.lineIndex,n.charIndex)||this._setStyleDeclaration(n.lineIndex,n.charIndex,{}),r.util.object.extend(this._getStyleDeclaration(n.lineIndex,n.charIndex),t)},get2DCursorLocation:function(e,t){"undefined"===typeof e&&(e=this.selectionStart);for(var n=t?this._unwrappedTextLines:this._textLines,r=n.length,o=0;o<r;o++){if(e<=n[o].length)return{lineIndex:o,charIndex:e};e-=n[o].length+this.missingNewlineOffset(o,t)}return{lineIndex:o-1,charIndex:n[o-1].length<e?n[o-1].length:e}},getSelectionStyles:function(e,t,n){"undefined"===typeof e&&(e=this.selectionStart||0),"undefined"===typeof t&&(t=this.selectionEnd||e);for(var r=[],o=e;o<t;o++)r.push(this.getStyleAtPosition(o,n));return r},getStyleAtPosition:function(e,t){var n=this.get2DCursorLocation(e),r=t?this.getCompleteStyleDeclaration(n.lineIndex,n.charIndex):this._getStyleDeclaration(n.lineIndex,n.charIndex);return r||{}},setSelectionStyles:function(e,t,n){"undefined"===typeof t&&(t=this.selectionStart||0),"undefined"===typeof n&&(n=this.selectionEnd||t);for(var r=t;r<n;r++)this._extendStyles(r,e);return this._forceClearCache=!0,this},_getStyleDeclaration:function(e,t){var n=this.styles&&this.styles[e];return n?n[t]:null},getCompleteStyleDeclaration:function(e,t){for(var n,r=this._getStyleDeclaration(e,t)||{},o={},i=0;i<this._styleProperties.length;i++)n=this._styleProperties[i],o[n]="undefined"===typeof r[n]?this[n]:r[n];return o},_setStyleDeclaration:function(e,t,n){this.styles[e][t]=n},_deleteStyleDeclaration:function(e,t){delete this.styles[e][t]},_getLineStyle:function(e){return!!this.styles[e]},_setLineStyle:function(e){this.styles[e]={}},_deleteLineStyle:function(e){delete this.styles[e]}})}(),function(){function e(e){e.textDecoration&&(e.textDecoration.indexOf("underline")>-1&&(e.underline=!0),e.textDecoration.indexOf("line-through")>-1&&(e.linethrough=!0),e.textDecoration.indexOf("overline")>-1&&(e.overline=!0),delete e.textDecoration)}r.IText=r.util.createClass(r.Text,r.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(e,t){this.callSuper("initialize",e,t),this.initBehavior()},setSelectionStart:function(e){e=Math.max(e,0),this._updateAndFire("selectionStart",e)},setSelectionEnd:function(e){e=Math.min(e,this.text.length),this._updateAndFire("selectionEnd",e)},_updateAndFire:function(e,t){this[e]!==t&&(this._fireSelectionChanged(),this[e]=t),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(e){this.clearContextTop(),this.callSuper("render",e),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(e){this.callSuper("_render",e)},clearContextTop:function(e){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var t=this.canvas.contextTop,n=this.canvas.viewportTransform;t.save(),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this.transform(t),this._clearTextArea(t),e||t.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this._getCursorBoundaries(),t=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(e){var t=this.width+4,n=this.height+4;e.clearRect(-t/2,-n/2,t,n)},_getCursorBoundaries:function(e){"undefined"===typeof e&&(e=this.selectionStart);var t=this._getLeftOffset(),n=this._getTopOffset(),r=this._getCursorBoundariesOffsets(e);return{left:t,top:n,leftOffset:r.left,topOffset:r.top}},_getCursorBoundariesOffsets:function(e){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var t,n,r,o,i=0,a=0,s=this.get2DCursorLocation(e);r=s.charIndex,n=s.lineIndex;for(var l=0;l<n;l++)i+=this.getHeightOfLine(l);t=this._getLineLeftOffset(n);var u=this.__charBounds[n][r];return u&&(a=u.left),0!==this.charSpacing&&r===this._textLines[n].length&&(a-=this._getWidthOfCharSpacing()),o={top:i,left:t+(a>0?a:0)},"rtl"===this.direction&&(o.left*=-1),this.cursorOffsetCache=o,this.cursorOffsetCache},renderCursor:function(e,t){var n=this.get2DCursorLocation(),r=n.lineIndex,o=n.charIndex>0?n.charIndex-1:0,i=this.getValueOfPropertyAt(r,o,"fontSize"),a=this.scaleX*this.canvas.getZoom(),s=this.cursorWidth/a,l=e.topOffset,u=this.getValueOfPropertyAt(r,o,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(r)/this.lineHeight-i*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(e,t),t.fillStyle=this.cursorColor||this.getValueOfPropertyAt(r,o,"fill"),t.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,t.fillRect(e.left+e.leftOffset-s/2,l+e.top+u,s,i)},renderSelection:function(e,t){for(var n=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,r=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,o=-1!==this.textAlign.indexOf("justify"),i=this.get2DCursorLocation(n),a=this.get2DCursorLocation(r),s=i.lineIndex,l=a.lineIndex,u=i.charIndex<0?0:i.charIndex,c=a.charIndex<0?0:a.charIndex,f=s;f<=l;f++){var d=this._getLineLeftOffset(f)||0,h=this.getHeightOfLine(f),p=0,v=0,g=0;if(f===s&&(v=this.__charBounds[s][u].left),f>=s&&f<l)g=o&&!this.isEndOfWrapping(f)?this.width:this.getLineWidth(f)||5;else if(f===l)if(0===c)g=this.__charBounds[l][c].left;else{var m=this._getWidthOfCharSpacing();g=this.__charBounds[l][c-1].left+this.__charBounds[l][c-1].width-m}p=h,(this.lineHeight<1||f===l&&this.lineHeight>1)&&(h/=this.lineHeight);var y=e.left+d+v,b=g-v,w=h,A=0;this.inCompositionMode?(t.fillStyle=this.compositionColor||"black",w=1,A=h):t.fillStyle=this.selectionColor,"rtl"===this.direction&&(y=this.width-y-b),t.fillRect(y,e.top+e.topOffset+A,b,w),e.topOffset+=p}},getCurrentCharFontSize:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fontSize")},getCurrentCharColor:function(){var e=this._getCurrentCharIndex();return this.getValueOfPropertyAt(e.l,e.c,"fill")},_getCurrentCharIndex:function(){var e=this.get2DCursorLocation(this.selectionStart,!0),t=e.charIndex>0?e.charIndex-1:0;return{l:e.lineIndex,c:t}}}),r.IText.fromObject=function(t,n){var o=r.util.stylesFromArray(t.styles,t.text),i=Object.assign({},t,{styles:o});if(delete i.path,e(i),i.styles)for(var a in i.styles)for(var s in i.styles[a])e(i.styles[a][s]);r.Object._fromObject("IText",i,(function(e){t.path?r.Object._fromObject("Path",t.path,(function(t){e.set("path",t),n(e)}),"path"):n(e)}),"text")}}(),function(){var e=r.util.object.clone;r.util.object.extend(r.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var e=this;this.on("added",(function(){var t=e.canvas;t&&(t._hasITextHandlers||(t._hasITextHandlers=!0,e._initCanvasHandlers(t)),t._iTextInstances=t._iTextInstances||[],t._iTextInstances.push(e))}))},initRemovedHandler:function(){var e=this;this.on("removed",(function(){var t=e.canvas;t&&(t._iTextInstances=t._iTextInstances||[],r.util.removeFromArray(t._iTextInstances,e),0===t._iTextInstances.length&&(t._hasITextHandlers=!1,e._removeCanvasHandlers(t)))}))},_initCanvasHandlers:function(e){e._mouseUpITextHandler=function(){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.__isMousedown=!1}))},e.on("mouse:up",e._mouseUpITextHandler)},_removeCanvasHandlers:function(e){e.off("mouse:up",e._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(e,t,n,r){var o;return o={isAborted:!1,abort:function(){this.isAborted=!0}},e.animate("_currentCursorOpacity",t,{duration:n,onComplete:function(){o.isAborted||e[r]()},onChange:function(){e.canvas&&e.selectionStart===e.selectionEnd&&e.renderCursorOrSelection()},abort:function(){return o.isAborted}}),o},_onTickComplete:function(){var e=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout((function(){e._currentTickCompleteState=e._animateCursor(e,0,this.cursorDuration/2,"_tick")}),100)},initDelayedCursor:function(e){var t=this,n=e?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout((function(){t._tick()}),n)},abortCursorAnimation:function(){var e=this._currentTickState||this._currentTickCompleteState,t=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,e&&t&&t.clearContext(t.contextTop||t.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(e){var t=0,n=e-1;if(this._reSpace.test(this._text[n]))while(this._reSpace.test(this._text[n]))t++,n--;while(/\S/.test(this._text[n])&&n>-1)t++,n--;return e-t},findWordBoundaryRight:function(e){var t=0,n=e;if(this._reSpace.test(this._text[n]))while(this._reSpace.test(this._text[n]))t++,n++;while(/\S/.test(this._text[n])&&n<this._text.length)t++,n++;return e+t},findLineBoundaryLeft:function(e){var t=0,n=e-1;while(!/\n/.test(this._text[n])&&n>-1)t++,n--;return e-t},findLineBoundaryRight:function(e){var t=0,n=e;while(!/\n/.test(this._text[n])&&n<this._text.length)t++,n++;return e+t},searchWordBoundary:function(e,t){var n=this._text,o=this._reSpace.test(n[e])?e-1:e,i=n[o],a=r.reNonWord;while(!a.test(i)&&o>0&&o<n.length)o+=t,i=n[o];return a.test(i)&&(o+=1===t?0:1),o},selectWord:function(e){e=e||this.selectionStart;var t=this.searchWordBoundary(e,-1),n=this.searchWordBoundary(e,1);this.selectionStart=t,this.selectionEnd=n,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(e){e=e||this.selectionStart;var t=this.findLineBoundaryLeft(e),n=this.findLineBoundaryRight(e);return this.selectionStart=t,this.selectionEnd=n,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(e){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(e),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(e){e._iTextInstances&&e._iTextInstances.forEach((function(e){e.selected=!1,e.isEditing&&e.exitEditing()}))},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(e){if(this.__isMousedown&&this.isEditing){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var t=this.getSelectionStartFromPointer(e.e),n=this.selectionStart,r=this.selectionEnd;(t===this.__selectionStartOnMouseDown&&n!==r||n!==t&&r!==t)&&(t>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=t):(this.selectionStart=t,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===n&&this.selectionEnd===r||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){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:function(e,t,n){var o=n.slice(0,e),i=r.util.string.graphemeSplit(o).length;if(e===t)return{selectionStart:i,selectionEnd:i};var a=n.slice(e,t),s=r.util.string.graphemeSplit(a).length;return{selectionStart:i,selectionEnd:i+s}},fromGraphemeToStringSelection:function(e,t,n){var r=n.slice(0,e),o=r.join("").length;if(e===t)return{selectionStart:o,selectionEnd:o};var i=n.slice(e,t),a=i.join("").length;return{selectionStart:o,selectionEnd:o+a}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var e=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=e.selectionStart,this.hiddenTextarea.selectionEnd=e.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var e=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=e.selectionEnd,this.inCompositionMode||(this.selectionStart=e.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var e=this._calcTextareaPosition();this.hiddenTextarea.style.left=e.left,this.hiddenTextarea.style.top=e.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var e=this.inCompositionMode?this.compositionStart:this.selectionStart,t=this._getCursorBoundaries(e),n=this.get2DCursorLocation(e),o=n.lineIndex,i=n.charIndex,a=this.getValueOfPropertyAt(o,i,"fontSize")*this.lineHeight,s=t.leftOffset,l=this.calcTransformMatrix(),u={x:t.left+s,y:t.top+t.topOffset+a},c=this.canvas.getRetinaScaling(),f=this.canvas.upperCanvasEl,d=f.width/c,h=f.height/c,p=d-a,v=h-a,g=f.clientWidth/d,m=f.clientHeight/h;return u=r.util.transformPoint(u,l),u=r.util.transformPoint(u,this.canvas.viewportTransform),u.x*=g,u.y*=m,u.x<0&&(u.x=0),u.x>p&&(u.x=p),u.y<0&&(u.y=0),u.y>v&&(u.y=v),u.x+=this.canvas._offset.left,u.y+=this.canvas._offset.top,{left:u.x+"px",top:u.y+"px",fontSize:a+"px",charHeight:a}},_saveEditingProps:function(){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:function(){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.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var e=this._textBeforeEdit!==this.text,t=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,t&&(t.blur&&t.blur(),t.parentNode&&t.parentNode.removeChild(t)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),e&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),e&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var e in this.styles)this._textLines[e]||delete this.styles[e]},removeStyleFromTo:function(e,t){var n,r,o=this.get2DCursorLocation(e,!0),i=this.get2DCursorLocation(t,!0),a=o.lineIndex,s=o.charIndex,l=i.lineIndex,u=i.charIndex;if(a!==l){if(this.styles[a])for(n=s;n<this._unwrappedTextLines[a].length;n++)delete this.styles[a][n];if(this.styles[l])for(n=u;n<this._unwrappedTextLines[l].length;n++)r=this.styles[l][n],r&&(this.styles[a]||(this.styles[a]={}),this.styles[a][s+n-u]=r);for(n=a+1;n<=l;n++)delete this.styles[n];this.shiftLineStyles(l,a-l)}else if(this.styles[a]){r=this.styles[a];var c,f,d=u-s;for(n=s;n<u;n++)delete r[n];for(f in this.styles[a])c=parseInt(f,10),c>=u&&(r[c-d]=r[f],delete r[f])}},shiftLineStyles:function(t,n){var r=e(this.styles);for(var o in this.styles){var i=parseInt(o,10);i>t&&(this.styles[i+n]=r[i],r[i-n]||delete this.styles[i])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,n,r,o){var i,a={},s=!1,l=this._unwrappedTextLines[t].length,u=l===n;for(var c in r||(r=1),this.shiftLineStyles(t,r),this.styles[t]&&(i=this.styles[t][0===n?n:n-1]),this.styles[t]){var f=parseInt(c,10);f>=n&&(s=!0,a[f-n]=this.styles[t][c],u&&0===n||delete this.styles[t][c])}var d=!1;s&&!u&&(this.styles[t+r]=a,d=!0),(d||l>n)&&r--;while(r>0)o&&o[r-1]?this.styles[t+r]={0:e(o[r-1])}:i?this.styles[t+r]={0:e(i)}:delete this.styles[t+r],r--;this._forceClearCache=!0},insertCharStyleObject:function(t,n,r,o){this.styles||(this.styles={});var i=this.styles[t],a=i?e(i):{};for(var s in r||(r=1),a){var l=parseInt(s,10);l>=n&&(i[l+r]=a[l],a[l-r]||delete i[l])}if(this._forceClearCache=!0,o)while(r--)Object.keys(o[r]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][n+r]=e(o[r]));else if(i){var u=i[n?n-1:1];while(u&&r--)this.styles[t][n+r]=e(u)}},insertNewStyleBlock:function(e,t,n){for(var r=this.get2DCursorLocation(t,!0),o=[0],i=0,a=0;a<e.length;a++)"\n"===e[a]?(i++,o[i]=0):o[i]++;o[0]>0&&(this.insertCharStyleObject(r.lineIndex,r.charIndex,o[0],n),n=n&&n.slice(o[0]+1)),i&&this.insertNewlineStyleObject(r.lineIndex,r.charIndex+o[0],i);for(a=1;a<i;a++)o[a]>0?this.insertCharStyleObject(r.lineIndex+a,0,o[a],n):n&&this.styles[r.lineIndex+a]&&n[0]&&(this.styles[r.lineIndex+a][0]=n[0]),n=n&&n.slice(o[a]+1);o[a]>0&&this.insertCharStyleObject(r.lineIndex+a,0,o[a],n)},setSelectionStartEndWithShift:function(e,t,n){n<=e?(t===e?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=e),this.selectionStart=n):n>e&&n<t?"right"===this._selectionDirection?this.selectionEnd=n:this.selectionStart=n:(t===e?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=t),this.selectionEnd=n)},setSelectionInBoundaries:function(){var e=this.text.length;this.selectionStart>e?this.selectionStart=e:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>e?this.selectionEnd=e:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),r.util.object.extend(r.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(e){if(this.canvas){this.__newClickTime=+new Date;var t=e.pointer;this.isTripleClick(t)&&(this.fire("tripleclick",e),this._stopEvent(e.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=t,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(e){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===e.x&&this.__lastPointer.y===e.y},_stopEvent:function(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(e){this.isEditing&&this.selectWord(this.getSelectionStartFromPointer(e.e))},tripleClickHandler:function(e){this.isEditing&&this.selectLine(this.getSelectionStartFromPointer(e.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(e.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(e){!this.canvas||!this.editable||e.e.button&&1!==e.e.button||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(e){if(this.__isMousedown=!1,!(!this.editable||this.group||e.transform&&e.transform.actionPerformed||e.e.button&&1!==e.e.button)){if(this.canvas){var t=this.canvas._activeObject;if(t&&t!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(e.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(e){var t=this.getSelectionStartFromPointer(e),n=this.selectionStart,r=this.selectionEnd;e.shiftKey?this.setSelectionStartEndWithShift(n,r,t):(this.selectionStart=t,this.selectionEnd=t),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(e){for(var t,n,r=this.getLocalPointer(e),o=0,i=0,a=0,s=0,l=0,u=0,c=this._textLines.length;u<c;u++){if(!(a<=r.y))break;a+=this.getHeightOfLine(u)*this.scaleY,l=u,u>0&&(s+=this._textLines[u-1].length+this.missingNewlineOffset(u-1))}t=this._getLineLeftOffset(l),i=t*this.scaleX,n=this._textLines[l],"rtl"===this.direction&&(r.x=this.width*this.scaleX-r.x+i);for(var f=0,d=n.length;f<d;f++){if(o=i,i+=this.__charBounds[l][f].kernedWidth*this.scaleX,!(i<=r.x))break;s++}return this._getNewSelectionStartFromOffset(r,o,i,s,d)},_getNewSelectionStartFromOffset:function(e,t,n,r,o){var i=e.x-t,a=n-e.x,s=a>i||a<0?0:1,l=r+s;return this.flipX&&(l=o-l),l>this._text.length&&(l=this._text.length),l}}),r.util.object.extend(r.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=r.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var e=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+e.top+"; left: "+e.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+e.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):r.document.body.appendChild(this.hiddenTextarea),r.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),r.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),r.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),r.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),r.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),r.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),r.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),r.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),r.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(r.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(e){if(this.isEditing){var t="rtl"===this.direction?this.keysMapRtl:this.keysMap;if(e.keyCode in t)this[t[e.keyCode]](e);else{if(!(e.keyCode in this.ctrlKeysMapDown)||!e.ctrlKey&&!e.metaKey)return;this[this.ctrlKeysMapDown[e.keyCode]](e)}e.stopImmediatePropagation(),e.preventDefault(),e.keyCode>=33&&e.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(e){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:e.keyCode in this.ctrlKeysMapUp&&(e.ctrlKey||e.metaKey)&&(this[this.ctrlKeysMapUp[e.keyCode]](e),e.stopImmediatePropagation(),e.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(e){var t=this.fromPaste;if(this.fromPaste=!1,e&&e.stopPropagation(),this.isEditing){var n,o,i,a,s,l=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,u=this._text.length,c=l.length,f=c-u,d=this.selectionStart,h=this.selectionEnd,p=d!==h;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var v=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),g=d>v.selectionStart;p?(n=this._text.slice(d,h),f+=h-d):c<u&&(n=g?this._text.slice(h+f,h):this._text.slice(d,d-f)),o=l.slice(v.selectionEnd-f,v.selectionEnd),n&&n.length&&(o.length&&(i=this.getSelectionStyles(d,d+1,!1),i=o.map((function(){return i[0]}))),p?(a=d,s=h):g?(a=h-n.length,s=h):(a=h,s=h+n.length),this.removeStyleFromTo(a,s)),o.length&&(t&&o.join("")===r.copiedText&&!r.disableStyleCopyPaste&&(i=r.copiedTextStyle),this.insertNewStyleBlock(o,d,i)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(e){this.compositionStart=e.target.selectionStart,this.compositionEnd=e.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(r.copiedText=this.getSelectedText(),r.disableStyleCopyPaste?r.copiedTextStyle=null:r.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(e){return e&&e.clipboardData||r.window.clipboardData},_getWidthBeforeCursor:function(e,t){var n,r=this._getLineLeftOffset(e);return t>0&&(n=this.__charBounds[e][t-1],r+=n.left+n.width),r},getDownCursorOffset:function(e,t){var n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),o=r.lineIndex;if(o===this._textLines.length-1||e.metaKey||34===e.keyCode)return this._text.length-n;var i=r.charIndex,a=this._getWidthBeforeCursor(o,i),s=this._getIndexOnLine(o+1,a),l=this._textLines[o].slice(i);return l.length+s+1+this.missingNewlineOffset(o)},_getSelectionForOffset:function(e,t){return e.shiftKey&&this.selectionStart!==this.selectionEnd&&t?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(e,t){var n=this._getSelectionForOffset(e,t),r=this.get2DCursorLocation(n),o=r.lineIndex;if(0===o||e.metaKey||33===e.keyCode)return-n;var i=r.charIndex,a=this._getWidthBeforeCursor(o,i),s=this._getIndexOnLine(o-1,a),l=this._textLines[o].slice(0,i),u=this.missingNewlineOffset(o-1);return-this._textLines[o-1].length+s-l.length+(1-u)},_getIndexOnLine:function(e,t){for(var n,r,o=this._textLines[e],i=this._getLineLeftOffset(e),a=i,s=0,l=0,u=o.length;l<u;l++)if(n=this.__charBounds[e][l].width,a+=n,a>t){r=!0;var c=a-n,f=a,d=Math.abs(c-t),h=Math.abs(f-t);s=h<d?l:l-1;break}return r||(s=o.length-1),s},moveCursorDown:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",e)},moveCursorUp:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",e)},_moveCursorUpOrDown:function(e,t){var n="get"+e+"CursorOffset",r=this[n](t,"right"===this._selectionDirection);t.shiftKey?this.moveCursorWithShift(r):this.moveCursorWithoutShift(r),0!==r&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(e){var t="left"===this._selectionDirection?this.selectionStart+e:this.selectionEnd+e;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,t),0!==e},moveCursorWithoutShift:function(e){return e<0?(this.selectionStart+=e,this.selectionEnd=this.selectionStart):(this.selectionEnd+=e,this.selectionStart=this.selectionEnd),0!==e},moveCursorLeft:function(e){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",e)},_move:function(e,t,n){var r;if(e.altKey)r=this["findWordBoundary"+n](this[t]);else{if(!e.metaKey&&35!==e.keyCode&&36!==e.keyCode)return this[t]+="Left"===n?-1:1,!0;r=this["findLineBoundary"+n](this[t])}if("undefined"!==typeof r&&this[t]!==r)return this[t]=r,!0},_moveLeft:function(e,t){return this._move(e,t,"Left")},_moveRight:function(e,t){return this._move(e,t,"Right")},moveCursorLeftWithoutShift:function(e){var t=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(t=this._moveLeft(e,"selectionStart")),this.selectionEnd=this.selectionStart,t},moveCursorLeftWithShift:function(e){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(e,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(e,"selectionStart")):void 0},moveCursorRight:function(e){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",e)},_moveCursorLeftOrRight:function(e,t){var n="moveCursor"+e+"With";this._currentCursorOpacity=1,t.shiftKey?n+="Shift":n+="outShift",this[n](t)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(e){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(e,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(e,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(e){var t=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(t=this._moveRight(e,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,t},removeChars:function(e,t){"undefined"===typeof t&&(t=e+1),this.removeStyleFromTo(e,t),this._text.splice(e,t-e),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(e,t,n,o){"undefined"===typeof o&&(o=n),o>n&&this.removeStyleFromTo(n,o);var i=r.util.string.graphemeSplit(e);this.insertNewStyleBlock(i,n,t),this._text=[].concat(this._text.slice(0,n),i,this._text.slice(o)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var e=r.util.toFixed,t=/  +/g;r.util.object.extend(r.Text.prototype,{_toSVG:function(){var e=this._getSVGLeftTopOffsets(),t=this._getSVGTextAndBg(e.textTop,e.textLeft);return this._wrapSVGTextAndBg(t)},toSVG:function(e){return this._createBaseSVGMarkup(this._toSVG(),{reviver:e,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(e){var t=!0,n=this.getSvgTextDecoration(this);return[e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",n?'text-decoration="'+n+'" ':"",'style="',this.getSvgStyles(t),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n"]},_getSVGTextAndBg:function(e,t){var n,r=[],o=[],i=e;this._setSVGBg(o);for(var a=0,s=this._textLines.length;a<s;a++)n=this._getLineLeftOffset(a),(this.textBackgroundColor||this.styleHas("textBackgroundColor",a))&&this._setSVGTextLineBg(o,a,t+n,i),this._setSVGTextLineText(r,a,t+n,i),i+=this.getHeightOfLine(a);return{textSpans:r,textBgRects:o}},_createTextCharSpan:function(n,o,i,a){var s=n!==n.trim()||n.match(t),l=this.getSvgSpanStyles(o,s),u=l?'style="'+l+'"':"",c=o.deltaY,f="",d=r.Object.NUM_FRACTION_DIGITS;return c&&(f=' dy="'+e(c,d)+'" '),['<tspan x="',e(i,d),'" y="',e(a,d),'" ',f,u,">",r.util.string.escapeXml(n),"</tspan>"].join("")},_setSVGTextLineText:function(e,t,n,o){var i,a,s,l,u,c=this.getHeightOfLine(t),f=-1!==this.textAlign.indexOf("justify"),d="",h=0,p=this._textLines[t];o+=c*(1-this._fontSizeFraction)/this.lineHeight;for(var v=0,g=p.length-1;v<=g;v++)u=v===g||this.charSpacing,d+=p[v],s=this.__charBounds[t][v],0===h?(n+=s.kernedWidth-s.width,h+=s.width):h+=s.kernedWidth,f&&!u&&this._reSpaceAndTab.test(p[v])&&(u=!0),u||(i=i||this.getCompleteStyleDeclaration(t,v),a=this.getCompleteStyleDeclaration(t,v+1),u=r.util.hasStyleChanged(i,a,!0)),u&&(l=this._getStyleDeclaration(t,v)||{},e.push(this._createTextCharSpan(d,l,n,o)),d="",i=a,n+=h,h=0)},_pushTextBgRect:function(t,n,o,i,a,s){var l=r.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(n),' x="',e(o,l),'" y="',e(i,l),'" width="',e(a,l),'" height="',e(s,l),'"></rect>\n')},_setSVGTextLineBg:function(e,t,n,r){for(var o,i,a=this._textLines[t],s=this.getHeightOfLine(t)/this.lineHeight,l=0,u=0,c=this.getValueOfPropertyAt(t,0,"textBackgroundColor"),f=0,d=a.length;f<d;f++)o=this.__charBounds[t][f],i=this.getValueOfPropertyAt(t,f,"textBackgroundColor"),i!==c?(c&&this._pushTextBgRect(e,c,n+u,r,l,s),u=o.left,l=o.width,c=i):l+=o.kernedWidth;i&&this._pushTextBgRect(e,i,n+u,r,l,s)},_getFillAttributes:function(e){var t=e&&"string"===typeof e?new r.Color(e):"";return t&&t.getSource()&&1!==t.getAlpha()?'opacity="'+t.getAlpha()+'" fill="'+t.setAlpha(1).toRgb()+'"':'fill="'+e+'"'},_getSVGLineTopOffset:function(e){for(var t=0,n=0,r=0;r<e;r++)t+=this.getHeightOfLine(r);return n=this.getHeightOfLine(r),{lineTop:t,offset:(this._fontSizeMult-this._fontSizeFraction)*n/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(e){var t=r.Object.prototype.getSvgStyles.call(this,e);return t+" white-space: pre;"}})}(),function(e){"use strict";var t=e.fabric||(e.fabric={});t.Textbox=t.util.createClass(t.IText,t.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:t.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(e){for(var t=0,n=0,r=0,o={},i=0;i<e.graphemeLines.length;i++)"\n"===e.graphemeText[r]&&i>0?(n=0,r++,t++):!this.splitByGrapheme&&this._reSpaceAndTab.test(e.graphemeText[r])&&i>0&&(n++,r++),o[i]={line:t,offset:n},r+=e.graphemeLines[i].length,n+=e.graphemeLines[i].length;return o},styleHas:function(e,n){if(this._styleMap&&!this.isWrapping){var r=this._styleMap[n];r&&(n=r.line)}return t.Text.prototype.styleHas.call(this,e,n)},isEmptyStyles:function(e){if(!this.styles)return!0;var t,n,r=0,o=e+1,i=!1,a=this._styleMap[e],s=this._styleMap[e+1];for(var l in a&&(e=a.line,r=a.offset),s&&(o=s.line,i=o===e,t=s.offset),n="undefined"===typeof e?this.styles:{line:this.styles[e]},n)for(var u in n[l])if(u>=r&&(!i||u<t))for(var c in n[l][u])return!1;return!0},_getStyleDeclaration:function(e,t){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[e];if(!n)return null;e=n.line,t=n.offset+t}return this.callSuper("_getStyleDeclaration",e,t)},_setStyleDeclaration:function(e,t,n){var r=this._styleMap[e];e=r.line,t=r.offset+t,this.styles[e][t]=n},_deleteStyleDeclaration:function(e,t){var n=this._styleMap[e];e=n.line,t=n.offset+t,delete this.styles[e][t]},_getLineStyle:function(e){var t=this._styleMap[e];return!!this.styles[t.line]},_setLineStyle:function(e){var t=this._styleMap[e];this.styles[t.line]={}},_wrapText:function(e,t){var n,r=[];for(this.isWrapping=!0,n=0;n<e.length;n++)r=r.concat(this._wrapLine(e[n],n,t));return this.isWrapping=!1,r},_measureWord:function(e,t,n){var r,o=0,i=!0;n=n||0;for(var a=0,s=e.length;a<s;a++){var l=this._getGraphemeBox(e[a],t,a+n,r,i);o+=l.kernedWidth,r=e[a]}return o},_wrapLine:function(e,n,r,o){var i=0,a=this.splitByGrapheme,s=[],l=[],u=a?t.util.string.graphemeSplit(e):e.split(this._wordJoiners),c="",f=0,d=a?"":" ",h=0,p=0,v=0,g=!0,m=this._getWidthOfCharSpacing();o=o||0;0===u.length&&u.push([]),r-=o;for(var y=0;y<u.length;y++)c=a?u[y]:t.util.string.graphemeSplit(u[y]),h=this._measureWord(c,n,f),f+=c.length,i+=p+h-m,i>r&&!g?(s.push(l),l=[],i=h,g=!0):i+=m,g||a||l.push(d),l=l.concat(c),p=a?0:this._measureWord([d],n,f),f++,g=!1,h>v&&(v=h);return y&&s.push(l),v+o>this.dynamicMinWidth&&(this.dynamicMinWidth=v-m+o),s},isEndOfWrapping:function(e){return!this._styleMap[e+1]||this._styleMap[e+1].line!==this._styleMap[e].line},missingNewlineOffset:function(e,t){return this.splitByGrapheme&&!t?this.isEndOfWrapping(e)?1:0:1},_splitTextIntoLines:function(e){for(var n=t.Text.prototype._splitTextIntoLines.call(this,e),r=this._wrapText(n.lines,this.width),o=new Array(r.length),i=0;i<r.length;i++)o[i]=r[i].join("");return n.lines=o,n.graphemeLines=r,n},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var e={};for(var t in this._styleMap)this._textLines[t]&&(e[this._styleMap[t].line]=1);for(var t in this.styles)e[t]||delete this.styles[t]},toObject:function(e){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(e))}}),t.Textbox.fromObject=function(e,n){var r=t.util.stylesFromArray(e.styles,e.text),o=Object.assign({},e,{styles:r});return delete o.path,t.Object._fromObject("Textbox",o,(function(r){e.path?t.Object._fromObject("Path",e.path,(function(e){r.set("path",e),n(r)}),"path"):n(r)}),"text")}}(t),function(){var e=r.controlsUtils,t=e.scaleSkewCursorStyleHandler,n=e.scaleCursorStyleHandler,o=e.scalingEqually,i=e.scalingYOrSkewingX,a=e.scalingXOrSkewingY,s=e.scaleOrSkewActionName,l=r.Object.prototype.controls;if(l.ml=new r.Control({x:-.5,y:0,cursorStyleHandler:t,actionHandler:a,getActionName:s}),l.mr=new r.Control({x:.5,y:0,cursorStyleHandler:t,actionHandler:a,getActionName:s}),l.mb=new r.Control({x:0,y:.5,cursorStyleHandler:t,actionHandler:i,getActionName:s}),l.mt=new r.Control({x:0,y:-.5,cursorStyleHandler:t,actionHandler:i,getActionName:s}),l.tl=new r.Control({x:-.5,y:-.5,cursorStyleHandler:n,actionHandler:o}),l.tr=new r.Control({x:.5,y:-.5,cursorStyleHandler:n,actionHandler:o}),l.bl=new r.Control({x:-.5,y:.5,cursorStyleHandler:n,actionHandler:o}),l.br=new r.Control({x:.5,y:.5,cursorStyleHandler:n,actionHandler:o}),l.mtr=new r.Control({x:0,y:-.5,actionHandler:e.rotationWithSnapping,cursorStyleHandler:e.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),r.Textbox){var u=r.Textbox.prototype.controls={};u.mtr=l.mtr,u.tr=l.tr,u.br=l.br,u.tl=l.tl,u.bl=l.bl,u.mt=l.mt,u.mb=l.mb,u.mr=new r.Control({x:.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"}),u.ml=new r.Control({x:-.5,y:0,actionHandler:e.changeWidth,cursorStyleHandler:t,actionName:"resizing"})}}()},78904:function(e){(function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}function r(e){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(e)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function o(e,t){e.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function i(e){var t=e.g.offsetWidth,n=t+100;return e.j.style.width=n+"px",e.i.scrollLeft=n,e.h.scrollLeft=e.h.scrollWidth+100,e.l!==t&&(e.l=t,!0)}function a(e,n){function r(){var e=o;i(e)&&null!==e.g.parentNode&&n(e.l)}var o=e;t(e.h,r),t(e.i,r),i(e)}function s(e,t,n){t=t||{},n=n||window,this.family=e,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal",this.context=n}var l=null,u=null,c=null,f=null;function d(e){return null===u&&(h(e)&&/Apple/.test(window.navigator.vendor)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),u=!!e&&603>parseInt(e[1],10)):u=!1),u}function h(e){return null===f&&(f=!!e.document.fonts),f}function p(e,t){var n=e.style,r=e.weight;if(null===c){var o=document.createElement("div");try{o.style.font="condensed 100px sans-serif"}catch(i){}c=""!==o.style.font}return[n,r,c?e.stretch:"","100px",t].join(" ")}s.prototype.load=function(e,t){var i=this,s=e||"BESbswy",u=0,c=t||3e3,f=(new Date).getTime();return new Promise((function(e,t){if(h(i.context)&&!d(i.context)){var v=new Promise((function(e,t){function n(){(new Date).getTime()-f>=c?t(Error(c+"ms timeout exceeded")):i.context.document.fonts.load(p(i,'"'+i.family+'"'),s).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}n()})),g=new Promise((function(e,t){u=setTimeout((function(){t(Error(c+"ms timeout exceeded"))}),c)}));Promise.race([g,v]).then((function(){clearTimeout(u),e(i)}),t)}else n((function(){function n(){var t;(t=-1!=m&&-1!=y||-1!=m&&-1!=b||-1!=y&&-1!=b)&&((t=m!=y&&m!=b&&y!=b)||(null===l&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),l=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=l&&(m==w&&y==w&&b==w||m==A&&y==A&&b==A||m==x&&y==x&&b==x)),t=!t),t&&(null!==C.parentNode&&C.parentNode.removeChild(C),clearTimeout(u),e(i))}function d(){if((new Date).getTime()-f>=c)null!==C.parentNode&&C.parentNode.removeChild(C),t(Error(c+"ms timeout exceeded"));else{var e=i.context.document.hidden;!0!==e&&void 0!==e||(m=h.g.offsetWidth,y=v.g.offsetWidth,b=g.g.offsetWidth,n()),u=setTimeout(d,50)}}var h=new r(s),v=new r(s),g=new r(s),m=-1,y=-1,b=-1,w=-1,A=-1,x=-1,C=document.createElement("div");C.dir="ltr",o(h,p(i,"sans-serif")),o(v,p(i,"serif")),o(g,p(i,"monospace")),C.appendChild(h.g),C.appendChild(v.g),C.appendChild(g.g),i.context.document.body.appendChild(C),w=h.g.offsetWidth,A=v.g.offsetWidth,x=g.g.offsetWidth,d(),a(h,(function(e){m=e,n()})),o(h,p(i,'"'+i.family+'",sans-serif')),a(v,(function(e){y=e,n()})),o(v,p(i,'"'+i.family+'",serif')),a(g,(function(e){b=e,n()})),o(g,p(i,'"'+i.family+'",monospace'))}))}))},e.exports=s})()},89353:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,o="[object Function]",i=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n},a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==o)throw new TypeError(t+l);for(var u,c=a(arguments,1),f=function(){if(this instanceof u){var t=l.apply(this,i(c,arguments));return Object(t)===t?t:this}return l.apply(e,i(c,arguments))},d=r(0,l.length-c.length),h=[],p=0;p<d;p++)h[p]="$"+p;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(f),l.prototype){var v=function(){};v.prototype=l.prototype,u.prototype=new v,v.prototype=null}return u}},66743:function(e,t,n){"use strict";var r=n(89353);e.exports=Function.prototype.bind||r},70453:function(e,t,n){"use strict";var r,o=n(69383),i=n(41237),a=n(79290),s=n(79538),l=n(58068),u=n(69675),c=n(35345),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(t){}},h=Object.getOwnPropertyDescriptor;if(h)try{h({},"")}catch(R){h=null}var p=function(){throw new u},v=h?function(){try{return p}catch(e){try{return h(arguments,"callee").get}catch(t){return p}}}():p,g=n(64039)(),m=n(80024)(),y=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),b={},w="undefined"!==typeof Uint8Array&&y?y(Uint8Array):r,A={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":v,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(R){var x=y(y(R));A["%Error.prototype%"]=x}var C=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return A[t]=n,n},S={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=n(66743),k=n(9957),E=_.call(Function.call,Array.prototype.concat),O=_.call(Function.apply,Array.prototype.splice),F=_.call(Function.call,String.prototype.replace),T=_.call(Function.call,String.prototype.slice),P=_.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,L=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return F(e,N,(function(e,t,n,o){r[r.length]=n?F(o,M,"$1"):t||e})),r},I=function(e,t){var n,r=e;if(k(S,r)&&(n=S[r],r="%"+n[0]+"%"),k(A,r)){var o=A[r];if(o===b&&(o=C(r)),"undefined"===typeof o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=L(e),r=n.length>0?n[0]:"",o=I("%"+r+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(r=c[0],O(n,E([0,1],c)));for(var f=1,d=!0;f<n.length;f+=1){var p=n[f],v=T(p,0,1),g=T(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===g||"'"===g||"`"===g)&&v!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&d||(s=!0),r+="."+p,i="%"+r+"%",k(A,i))a=A[i];else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(h&&f+1>=n.length){var m=h(a,p);d=!!m,a=d&&"get"in m&&!("originalValue"in m.get)?m.get:a[p]}else d=k(a,p),a=a[p];d&&!s&&(A[i]=a)}}return a}},65339:function(e,t,n){var r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)},o="undefined"!=typeof window&&window===this?this:"undefined"!=typeof n.g&&null!=n.g?n.g:this;function i(e,t){if(t){var n=o;e=e.split(".");for(var i=0;i<e.length-1;i++){var a=e[i];a in n||(n[a]={}),n=n[a]}e=e[e.length-1],i=n[e],t=t(i),t!=i&&null!=t&&r(n,e,{configurable:!0,writable:!0,value:t})}}function a(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function s(){s=function(){},o.Symbol||(o.Symbol=u)}function l(e,t){this.a=e,r(this,"description",{configurable:!0,writable:!0,value:t})}l.prototype.toString=function(){return this.a};var u=function(){function e(n){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new l("jscomp_symbol_"+(n||"")+"_"+t++,n)}var t=0;return e}();function c(){s();var e=o.Symbol.iterator;e||(e=o.Symbol.iterator=o.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&r(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return f(a(this))}}),c=function(){}}function f(e){return c(),e={next:e},e[o.Symbol.iterator]=function(){return this},e}function d(e,t){c(),e instanceof String&&(e+="");var n=0,r={next:function(){if(n<e.length){var o=n++;return{value:t(o,e[o]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r}i("Array.prototype.entries",(function(e){return e||function(){return d(this,(function(e,t){return[e,t]}))}}));var h=this||self;function p(e,t,n){e=e.split("."),n=n||h,e[0]in n||"undefined"==typeof n.execScript||n.execScript("var "+e[0]);for(var r;e.length&&(r=e.shift());)e.length||void 0===t?n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={}:n[r]=t}function v(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function g(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function m(e,t,n){p(e,t,n)}function y(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}var b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function w(e,t){for(var n,r,o=1;o<arguments.length;o++){for(n in r=arguments[o],r)e[n]=r[n];for(var i=0;i<b.length;i++)n=b[i],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}var A=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t,void 0)}:function(e,t){for(var n=e.length,r="string"===typeof e?e.split(""):e,o=0;o<n;o++)o in r&&t.call(void 0,r[o],o,e)},x=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),o="string"===typeof e?e.split(""):e,i=0;i<n;i++)i in o&&(r[i]=t.call(void 0,o[i],i,e));return r};function C(e,t,n){return 2>=arguments.length?Array.prototype.slice.call(e,t):Array.prototype.slice.call(e,t,n)}function S(e,t,n,r){var o="Assertion failed";if(n){o+=": "+n;var i=r}else e&&(o+=": "+e,i=t);throw Error(o,i||[])}function _(e,t,n){for(var r=[],o=2;o<arguments.length;++o)r[o-2]=arguments[o];return e||S("",null,t,r),e}function k(e,t,n){for(var r=[],o=2;o<arguments.length;++o)r[o-2]=arguments[o];"string"!==typeof e&&S("Expected string but got %s: %s.",[v(e),e],t,r)}function E(e,t,n){for(var r=[],o=2;o<arguments.length;++o)r[o-2]=arguments[o];Array.isArray(e)||S("Expected array but got %s: %s.",[v(e),e],t,r)}function O(e,t){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];throw Error("Failure"+(e?": "+e:""),n)}function F(e,t,n,r){for(var o=[],i=3;i<arguments.length;++i)o[i-3]=arguments[i];e instanceof t||S("Expected instanceof %s but got %s.",[T(t),T(e)],n,o)}function T(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):null===e?"null":typeof e}function P(e,t){if(this.c=e,this.b=t,this.a={},this.arrClean=!0,0<this.c.length){for(e=0;e<this.c.length;e++){t=this.c[e];var n=t[0];this.a[n.toString()]=new I(n,t[1])}this.arrClean=!0}}function N(e){this.a=0,this.b=e}function M(e,t){return e.b?(t.a||(t.a=new e.b(t.value)),t.a):t.value}function L(e){e=e.a;var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}function I(e,t){this.key=e,this.value=t,this.a=void 0}function R(e){if(8192>=e.length)return String.fromCharCode.apply(null,e);for(var t="",n=0;n<e.length;n+=8192)t+=String.fromCharCode.apply(null,C(e,n,n+8192));return t}p("jspb.Map",P,void 0),P.prototype.g=function(){if(this.arrClean){if(this.b){var e,t=this.a;for(e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var n=t[e].a;n&&n.g()}}}else{for(this.c.length=0,t=L(this),t.sort(),e=0;e<t.length;e++){var r=this.a[t[e]];(n=r.a)&&n.g(),this.c.push([r.key,r.value])}this.arrClean=!0}return this.c},P.prototype.toArray=P.prototype.g,P.prototype.Mc=function(e,t){for(var n=this.g(),r=[],o=0;o<n.length;o++){var i=this.a[n[o][0].toString()];M(this,i);var a=i.a;a?(_(t),r.push([i.key,t(e,a)])):r.push([i.key,i.value])}return r},P.prototype.toObject=P.prototype.Mc,P.fromObject=function(e,t,n){t=new P([],t);for(var r=0;r<e.length;r++){var o=e[r][0],i=n(e[r][1]);t.set(o,i)}return t},N.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},"undefined"!=typeof Symbol&&(N.prototype[Symbol.iterator]=function(){return this}),P.prototype.Jb=function(){return L(this).length},P.prototype.getLength=P.prototype.Jb,P.prototype.clear=function(){this.a={},this.arrClean=!1},P.prototype.clear=P.prototype.clear,P.prototype.Cb=function(e){e=e.toString();var t=this.a.hasOwnProperty(e);return delete this.a[e],this.arrClean=!1,t},P.prototype.del=P.prototype.Cb,P.prototype.Eb=function(){var e=[],t=L(this);t.sort();for(var n=0;n<t.length;n++){var r=this.a[t[n]];e.push([r.key,r.value])}return e},P.prototype.getEntryList=P.prototype.Eb,P.prototype.entries=function(){var e=[],t=L(this);t.sort();for(var n=0;n<t.length;n++){var r=this.a[t[n]];e.push([r.key,M(this,r)])}return new N(e)},P.prototype.entries=P.prototype.entries,P.prototype.keys=function(){var e=[],t=L(this);t.sort();for(var n=0;n<t.length;n++)e.push(this.a[t[n]].key);return new N(e)},P.prototype.keys=P.prototype.keys,P.prototype.values=function(){var e=[],t=L(this);t.sort();for(var n=0;n<t.length;n++)e.push(M(this,this.a[t[n]]));return new N(e)},P.prototype.values=P.prototype.values,P.prototype.forEach=function(e,t){var n=L(this);n.sort();for(var r=0;r<n.length;r++){var o=this.a[n[r]];e.call(t,M(this,o),o.key,this)}},P.prototype.forEach=P.prototype.forEach,P.prototype.set=function(e,t){var n=new I(e);return this.b?(n.a=t,n.value=t.g()):n.value=t,this.a[e.toString()]=n,this.arrClean=!1,this},P.prototype.set=P.prototype.set,P.prototype.get=function(e){if(e=this.a[e.toString()])return M(this,e)},P.prototype.get=P.prototype.get,P.prototype.has=function(e){return e.toString()in this.a},P.prototype.has=P.prototype.has,P.prototype.Jc=function(e,t,n,r,o){var i=L(this);i.sort();for(var a=0;a<i.length;a++){var s=this.a[i[a]];t.Va(e),n.call(t,1,s.key),this.b?r.call(t,2,M(this,s),o):r.call(t,2,s.value),t.Ya()}},P.prototype.serializeBinary=P.prototype.Jc,P.deserializeBinary=function(e,t,n,r,o,i,a){for(;t.oa()&&!t.bb();){var s=t.c;1==s?i=n.call(t):2==s&&(e.b?(_(o),a||(a=new e.b),r.call(t,a,o)):a=r.call(t))}_(void 0!=i),_(void 0!=a),e.set(i,a)};var j={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},D={"'":"\\'"},B={},W=null;function z(e,t){void 0===t&&(t=0),V(),t=B[t];for(var n=[],r=0;r<e.length;r+=3){var o=e[r],i=r+1<e.length,a=i?e[r+1]:0,s=r+2<e.length,l=s?e[r+2]:0,u=o>>2;o=(3&o)<<4|a>>4,a=(15&a)<<2|l>>6,l&=63,s||(l=64,i||(a=64)),n.push(t[u],t[o],t[a]||"",t[l]||"")}return n.join("")}function U(e){var t=e.length,n=3*t/4;n%3?n=Math.floor(n):-1!="=.".indexOf(e[t-1])&&(n=-1!="=.".indexOf(e[t-2])?n-2:n-1);var r=new Uint8Array(n),o=0;return K(e,(function(e){r[o++]=e})),r.subarray(0,o)}function K(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),o=W[n];if(null!=o)return o;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}V();for(var r=0;;){var o=n(-1),i=n(0),a=n(64),s=n(64);if(64===s&&-1===o)break;t(o<<2|i>>4),64!=a&&(t(i<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}function V(){if(!W){W={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++){var r=e.concat(t[n].split(""));B[n]=r;for(var o=0;o<r.length;o++){var i=r[o];void 0===W[i]&&(W[i]=o)}}}}p("jspb.ConstBinaryMessage",(function(){}),void 0),p("jspb.BinaryMessage",(function(){}),void 0),p("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),p("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),p("jspb.BinaryConstants.FieldTypeToWireType",(function(e){switch(e){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}}),void 0),p("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),p("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),p("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),p("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),p("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),p("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),p("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),p("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),p("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),p("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),p("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),p("jspb.BinaryConstants.TWO_TO_63",0x8000000000000000,void 0),p("jspb.BinaryConstants.TWO_TO_64",0x10000000000000000,void 0),p("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var H=0,q=0;function G(e){var t=e>>>0;e=Math.floor((e-t)/4294967296)>>>0,H=t,q=e}function Y(e){var t=0>e;e=Math.abs(e);var n=e>>>0;e=Math.floor((e-n)/4294967296),e>>>=0,t&&(e=~e>>>0,n=1+(~n>>>0),4294967295<n&&(n=0,e++,4294967295<e&&(e=0))),H=n,q=e}function $(e){var t=0>e;e=2*Math.abs(e),G(e),e=H;var n=q;t&&(0==e?0==n?n=e=4294967295:(n--,e=4294967295):e--),H=e,q=n}function X(e){var t=0>e?1:0;if(e=t?-e:e,0===e)0<1/e?H=q=0:(q=0,H=2147483648);else if(isNaN(e))q=0,H=2147483647;else if(34028234663852886e22<e)q=0,H=(t<<31|2139095040)>>>0;else if(11754943508222875e-54>e)e=Math.round(e/Math.pow(2,-149)),q=0,H=(t<<31|e)>>>0;else{var n=Math.floor(Math.log(e)/Math.LN2);e*=Math.pow(2,-n),e=Math.round(8388608*e),16777216<=e&&++n,q=0,H=(t<<31|n+127<<23|8388607&e)>>>0}}function J(e){var t=0>e?1:0;if(e=t?-e:e,0===e)q=0<1/e?0:2147483648,H=0;else if(isNaN(e))q=2147483647,H=4294967295;else if(17976931348623157e292<e)q=(t<<31|2146435072)>>>0,H=0;else if(22250738585072014e-324>e)e/=Math.pow(2,-1074),q=(t<<31|e/4294967296)>>>0,H=e>>>0;else{var n=e,r=0;if(2<=n)for(;2<=n&&1023>r;)r++,n/=2;else for(;1>n&&-1022<r;)n*=2,r--;e*=Math.pow(2,-r),q=(t<<31|r+1023<<20|1048576*e&1048575)>>>0,H=4503599627370496*e>>>0}}function Q(e){var t=e.charCodeAt(4),n=e.charCodeAt(5),r=e.charCodeAt(6),o=e.charCodeAt(7);H=e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)>>>0,q=t+(n<<8)+(r<<16)+(o<<24)>>>0}function Z(e,t){return 4294967296*t+(e>>>0)}function ee(e,t){var n=2147483648&t;return n&&(e=1+~e>>>0,t=~t>>>0,0==e&&(t=t+1>>>0)),e=Z(e,t),n?-e:e}function te(e,t,n){var r=t>>31;return n(e<<1^r,(t<<1|e>>>31)^r)}function ne(e,t){return re(e,t,ee)}function re(e,t,n){var r=-(1&e);return n((e>>>1|t<<31)^r,t>>>1^r)}function oe(e){var t=2*(e>>31)+1,n=e>>>23&255;return e&=8388607,255==n?e?NaN:1/0*t:0==n?t*Math.pow(2,-149)*e:t*Math.pow(2,n-150)*(e+Math.pow(2,23))}function ie(e,t){var n=2*(t>>31)+1,r=t>>>20&2047;return e=4294967296*(1048575&t)+e,2047==r?e?NaN:1/0*n:0==r?n*Math.pow(2,-1074)*e:n*Math.pow(2,r-1075)*(e+4503599627370496)}function ae(e,t){return String.fromCharCode(e>>>0&255,e>>>8&255,e>>>16&255,e>>>24&255,t>>>0&255,t>>>8&255,t>>>16&255,t>>>24&255)}function se(e,t){function n(e,t){return e=e?String(e):"",t?"0000000".slice(e.length)+e:e}if(2097151>=t)return""+Z(e,t);var r=(e>>>24|t<<8)>>>0&16777215;return t=t>>16&65535,e=(16777215&e)+6777216*r+6710656*t,r+=8147497*t,t*=2,1e7<=e&&(r+=Math.floor(e/1e7),e%=1e7),1e7<=r&&(t+=Math.floor(r/1e7),r%=1e7),n(t,0)+n(r,t)+n(e,1)}function le(e,t){var n=2147483648&t;return n&&(e=1+~e>>>0,t=~t+(0==e?1:0)>>>0),e=se(e,t),n?"-"+e:e}function ue(e,t){Q(e),e=H;var n=q;return t?le(e,n):se(e,n)}function ce(e){function t(e,t){for(var n=0;8>n&&(1!==e||0<t);n++)t=e*o[n]+t,o[n]=255&t,t>>>=8}function n(){for(var e=0;8>e;e++)o[e]=255&~o[e]}_(0<e.length);var r=!1;"-"===e[0]&&(r=!0,e=e.slice(1));for(var o=[0,0,0,0,0,0,0,0],i=0;i<e.length;i++)t(10,e.charCodeAt(i)-48);return r&&(n(),t(1,1)),R(o)}function fe(e){return String.fromCharCode(10>e?48+e:87+e)}function de(e){return 97<=e?e-97+10:e-48}function he(e,t,n,r,o){var i=0;if(128>r)for(;t<n&&e[t++]==r;)i++,t+=o;else for(;t<n;){for(var a=r;128<a;){if(e[t++]!=(127&a|128))return i;a>>=7}if(e[t++]!=a)break;i++,t+=o}return i}function pe(e){return e.constructor===Uint8Array?e:e.constructor===ArrayBuffer||e.constructor===Array?new Uint8Array(e):e.constructor===String?U(e):e instanceof Uint8Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):(O("Type not convertible to Uint8Array."),new Uint8Array(0))}function ve(e,t,n){this.b=null,this.a=this.c=this.h=0,this.v=!1,e&&this.H(e,t,n)}p("jspb.utils.getSplit64Low",(function(){return H}),void 0),p("jspb.utils.getSplit64High",(function(){return q}),void 0),p("jspb.utils.splitUint64",G,void 0),p("jspb.utils.splitInt64",Y,void 0),p("jspb.utils.splitZigzag64",$,void 0),p("jspb.utils.splitFloat32",X,void 0),p("jspb.utils.splitFloat64",J,void 0),p("jspb.utils.splitHash64",Q,void 0),p("jspb.utils.joinUint64",Z,void 0),p("jspb.utils.joinInt64",ee,void 0),p("jspb.utils.toZigzag64",te,void 0),p("jspb.utils.joinZigzag64",ne,void 0),p("jspb.utils.fromZigzag64",re,void 0),p("jspb.utils.joinFloat32",oe,void 0),p("jspb.utils.joinFloat64",ie,void 0),p("jspb.utils.joinHash64",ae,void 0),p("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0),p("jspb.utils.joinUnsignedDecimalString",se,void 0),p("jspb.utils.joinSignedDecimalString",le,void 0),p("jspb.utils.hash64ToDecimalString",ue,void 0),p("jspb.utils.hash64ArrayToDecimalStrings",(function(e,t){for(var n=Array(e.length),r=0;r<e.length;r++)n[r]=ue(e[r],t);return n}),void 0),p("jspb.utils.decimalStringToHash64",ce,void 0),p("jspb.utils.splitDecimalString",(function(e){Q(ce(e))}),void 0),p("jspb.utils.hash64ToHexString",(function(e){var t=Array(18);t[0]="0",t[1]="x";for(var n=0;8>n;n++){var r=e.charCodeAt(7-n);t[2*n+2]=fe(r>>4),t[2*n+3]=fe(15&r)}return t.join("")}),void 0),p("jspb.utils.hexStringToHash64",(function(e){e=e.toLowerCase(),_(18==e.length),_("0"==e[0]),_("x"==e[1]);for(var t="",n=0;8>n;n++)t=String.fromCharCode(16*de(e.charCodeAt(2*n+2))+de(e.charCodeAt(2*n+3)))+t;return t}),void 0),p("jspb.utils.hash64ToNumber",(function(e,t){Q(e),e=H;var n=q;return t?ee(e,n):Z(e,n)}),void 0),p("jspb.utils.numberToHash64",(function(e){return Y(e),ae(H,q)}),void 0),p("jspb.utils.countVarints",(function(e,t,n){for(var r=0,o=t;o<n;o++)r+=e[o]>>7;return n-t-r}),void 0),p("jspb.utils.countVarintFields",(function(e,t,n,r){var o=0;if(r*=8,128>r)for(;t<n&&e[t++]==r;)for(o++;;){var i=e[t++];if(0==(128&i))break}else for(;t<n;){for(i=r;128<i;){if(e[t]!=(127&i|128))return o;t++,i>>=7}if(e[t++]!=i)break;for(o++;i=e[t++],0!=(128&i););}return o}),void 0),p("jspb.utils.countFixed32Fields",(function(e,t,n,r){return he(e,t,n,8*r+5,4)}),void 0),p("jspb.utils.countFixed64Fields",(function(e,t,n,r){return he(e,t,n,8*r+1,8)}),void 0),p("jspb.utils.countDelimitedFields",(function(e,t,n,r){var o=0;for(r=8*r+2;t<n;){for(var i=r;128<i;){if(e[t++]!=(127&i|128))return o;i>>=7}if(e[t++]!=i)break;o++;for(var a=0,s=1;i=e[t++],a+=(127&i)*s,s*=128,0!=(128&i););t+=a}return o}),void 0),p("jspb.utils.debugBytesToTextFormat",(function(e){var t='"';if(e){e=pe(e);for(var n=0;n<e.length;n++)t+="\\x",16>e[n]&&(t+="0"),t+=e[n].toString(16)}return t+'"'}),void 0),p("jspb.utils.debugScalarToTextFormat",(function(e){if("string"===typeof e){e=String(e);for(var t=['"'],n=0;n<e.length;n++){var r,o=e.charAt(n),i=o.charCodeAt(0),a=n+1;(r=j[o])||(31<i&&127>i||(i=o,i in D?o=D[i]:i in j?o=D[i]=j[i]:(r=i.charCodeAt(0),31<r&&127>r?o=i:(256>r?(o="\\x",(16>r||256<r)&&(o+="0")):(o="\\u",4096>r&&(o+="0")),o+=r.toString(16).toUpperCase()),o=D[i]=o)),r=o),t[a]=r}t.push('"'),e=t.join("")}else e=e.toString();return e}),void 0),p("jspb.utils.stringToByteArray",(function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(255<r)throw Error("Conversion error: string contains codepoint outside of byte range");t[n]=r}return t}),void 0),p("jspb.utils.byteSourceToUint8Array",pe,void 0),p("jspb.BinaryDecoder",ve,void 0);var ge=[];function me(e,t,n){if(ge.length){var r=ge.pop();return e&&r.H(e,t,n),r}return new ve(e,t,n)}function ye(e,t,n){this.a=me(e,t,n),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}ve.getInstanceCacheLength=function(){return ge.length},ve.alloc=me,ve.prototype.Ca=function(){this.clear(),100>ge.length&&ge.push(this)},ve.prototype.free=ve.prototype.Ca,ve.prototype.clone=function(){return me(this.b,this.h,this.c-this.h)},ve.prototype.clone=ve.prototype.clone,ve.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ve.prototype.clear=ve.prototype.clear,ve.prototype.Y=function(){return this.b},ve.prototype.getBuffer=ve.prototype.Y,ve.prototype.H=function(e,t,n){this.b=pe(e),this.h=void 0!==t?t:0,this.c=void 0!==n?this.h+n:this.b.length,this.a=this.h},ve.prototype.setBlock=ve.prototype.H,ve.prototype.Db=function(){return this.c},ve.prototype.getEnd=ve.prototype.Db,ve.prototype.setEnd=function(e){this.c=e},ve.prototype.setEnd=ve.prototype.setEnd,ve.prototype.reset=function(){this.a=this.h},ve.prototype.reset=ve.prototype.reset,ve.prototype.B=function(){return this.a},ve.prototype.getCursor=ve.prototype.B,ve.prototype.Ma=function(e){this.a=e},ve.prototype.setCursor=ve.prototype.Ma,ve.prototype.advance=function(e){this.a+=e,_(this.a<=this.c)},ve.prototype.advance=ve.prototype.advance,ve.prototype.ya=function(){return this.a==this.c},ve.prototype.atEnd=ve.prototype.ya,ve.prototype.Qb=function(){return this.a>this.c},ve.prototype.pastEnd=ve.prototype.Qb,ve.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ve.prototype.getError=ve.prototype.getError,ve.prototype.w=function(e){for(var t=128,n=0,r=0,o=0;4>o&&128<=t;o++)t=this.b[this.a++],n|=(127&t)<<7*o;if(128<=t&&(t=this.b[this.a++],n|=(127&t)<<28,r|=(127&t)>>4),128<=t)for(o=0;5>o&&128<=t;o++)t=this.b[this.a++],r|=(127&t)<<7*o+3;if(128>t)return e(n>>>0,r>>>0);O("Failed to read varint, encoding is invalid."),this.v=!0},ve.prototype.readSplitVarint64=ve.prototype.w,ve.prototype.ea=function(e){return this.w((function(t,n){return re(t,n,e)}))},ve.prototype.readSplitZigzagVarint64=ve.prototype.ea,ve.prototype.ta=function(e){var t=this.b,n=this.a;this.a+=8;for(var r=0,o=0,i=n+7;i>=n;i--)r=r<<8|t[i],o=o<<8|t[i+4];return e(r,o)},ve.prototype.readSplitFixed64=ve.prototype.ta,ve.prototype.kb=function(){for(;128&this.b[this.a];)this.a++;this.a++},ve.prototype.skipVarint=ve.prototype.kb,ve.prototype.mb=function(e){for(;128<e;)this.a--,e>>>=7;this.a--},ve.prototype.unskipVarint=ve.prototype.mb,ve.prototype.o=function(){var e=this.b,t=e[this.a],n=127&t;return 128>t?(this.a+=1,_(this.a<=this.c),n):(t=e[this.a+1],n|=(127&t)<<7,128>t?(this.a+=2,_(this.a<=this.c),n):(t=e[this.a+2],n|=(127&t)<<14,128>t?(this.a+=3,_(this.a<=this.c),n):(t=e[this.a+3],n|=(127&t)<<21,128>t?(this.a+=4,_(this.a<=this.c),n):(t=e[this.a+4],n|=(15&t)<<28,128>t?(this.a+=5,_(this.a<=this.c),n>>>0):(this.a+=5,128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&128<=e[this.a++]&&_(!1),_(this.a<=this.c),n)))))},ve.prototype.readUnsignedVarint32=ve.prototype.o,ve.prototype.da=function(){return~~this.o()},ve.prototype.readSignedVarint32=ve.prototype.da,ve.prototype.O=function(){return this.o().toString()},ve.prototype.Ea=function(){return this.da().toString()},ve.prototype.readSignedVarint32String=ve.prototype.Ea,ve.prototype.Ia=function(){var e=this.o();return e>>>1^-(1&e)},ve.prototype.readZigzagVarint32=ve.prototype.Ia,ve.prototype.Ga=function(){return this.w(Z)},ve.prototype.readUnsignedVarint64=ve.prototype.Ga,ve.prototype.Ha=function(){return this.w(se)},ve.prototype.readUnsignedVarint64String=ve.prototype.Ha,ve.prototype.sa=function(){return this.w(ee)},ve.prototype.readSignedVarint64=ve.prototype.sa,ve.prototype.Fa=function(){return this.w(le)},ve.prototype.readSignedVarint64String=ve.prototype.Fa,ve.prototype.Ja=function(){return this.w(ne)},ve.prototype.readZigzagVarint64=ve.prototype.Ja,ve.prototype.fb=function(){return this.ea(ae)},ve.prototype.readZigzagVarintHash64=ve.prototype.fb,ve.prototype.Ka=function(){return this.ea(le)},ve.prototype.readZigzagVarint64String=ve.prototype.Ka,ve.prototype.Gc=function(){var e=this.b[this.a];return this.a+=1,_(this.a<=this.c),e},ve.prototype.readUint8=ve.prototype.Gc,ve.prototype.Ec=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),e|t<<8},ve.prototype.readUint16=ve.prototype.Ec,ve.prototype.m=function(){var e=this.b[this.a],t=this.b[this.a+1],n=this.b[this.a+2],r=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),(e|t<<8|n<<16|r<<24)>>>0},ve.prototype.readUint32=ve.prototype.m,ve.prototype.ga=function(){var e=this.m(),t=this.m();return Z(e,t)},ve.prototype.readUint64=ve.prototype.ga,ve.prototype.ha=function(){var e=this.m(),t=this.m();return se(e,t)},ve.prototype.readUint64String=ve.prototype.ha,ve.prototype.Xb=function(){var e=this.b[this.a];return this.a+=1,_(this.a<=this.c),e<<24>>24},ve.prototype.readInt8=ve.prototype.Xb,ve.prototype.Vb=function(){var e=this.b[this.a],t=this.b[this.a+1];return this.a+=2,_(this.a<=this.c),(e|t<<8)<<16>>16},ve.prototype.readInt16=ve.prototype.Vb,ve.prototype.P=function(){var e=this.b[this.a],t=this.b[this.a+1],n=this.b[this.a+2],r=this.b[this.a+3];return this.a+=4,_(this.a<=this.c),e|t<<8|n<<16|r<<24},ve.prototype.readInt32=ve.prototype.P,ve.prototype.ba=function(){var e=this.m(),t=this.m();return ee(e,t)},ve.prototype.readInt64=ve.prototype.ba,ve.prototype.ca=function(){var e=this.m(),t=this.m();return le(e,t)},ve.prototype.readInt64String=ve.prototype.ca,ve.prototype.aa=function(){var e=this.m();return oe(e,0)},ve.prototype.readFloat=ve.prototype.aa,ve.prototype.Z=function(){var e=this.m(),t=this.m();return ie(e,t)},ve.prototype.readDouble=ve.prototype.Z,ve.prototype.pa=function(){return!!this.b[this.a++]},ve.prototype.readBool=ve.prototype.pa,ve.prototype.ra=function(){return this.da()},ve.prototype.readEnum=ve.prototype.ra,ve.prototype.fa=function(e){var t=this.b,n=this.a;e=n+e;for(var r=[],o="";n<e;){var i=t[n++];if(128>i)r.push(i);else{if(192>i)continue;if(224>i){var a=t[n++];r.push((31&i)<<6|63&a)}else if(240>i){a=t[n++];var s=t[n++];r.push((15&i)<<12|(63&a)<<6|63&s)}else if(248>i){a=t[n++],s=t[n++];var l=t[n++];i=(7&i)<<18|(63&a)<<12|(63&s)<<6|63&l,i-=65536,r.push(55296+(i>>10&1023),56320+(1023&i))}}8192<=r.length&&(o+=String.fromCharCode.apply(null,r),r.length=0)}return o+=R(r),this.a=n,o},ve.prototype.readString=ve.prototype.fa,ve.prototype.Dc=function(){var e=this.o();return this.fa(e)},ve.prototype.readStringWithLength=ve.prototype.Dc,ve.prototype.qa=function(e){if(0>e||this.a+e>this.b.length)return this.v=!0,O("Invalid byte length!"),new Uint8Array(0);var t=this.b.subarray(this.a,this.a+e);return this.a+=e,_(this.a<=this.c),t},ve.prototype.readBytes=ve.prototype.qa,ve.prototype.ia=function(){return this.w(ae)},ve.prototype.readVarintHash64=ve.prototype.ia,ve.prototype.$=function(){var e=this.b,t=this.a,n=e[t],r=e[t+1],o=e[t+2],i=e[t+3],a=e[t+4],s=e[t+5],l=e[t+6];return e=e[t+7],this.a+=8,String.fromCharCode(n,r,o,i,a,s,l,e)},ve.prototype.readFixedHash64=ve.prototype.$,p("jspb.BinaryReader",ye,void 0);var be=[];function we(e,t,n){if(be.length){var r=be.pop();return e&&r.a.H(e,t,n),r}return new ye(e,t,n)}function Ae(e,t){_(2==e.b);var n=e.a.o();n=e.a.B()+n;for(var r=[];e.a.B()<n;)r.push(t.call(e.a));return r}function xe(e,t,n,r,o){this.ma=e,this.Ba=t,this.la=n,this.Na=r,this.na=o}function Ce(e,t,n,r,o,i){this.Za=e,this.za=t,this.Aa=n,this.Wa=r,this.Ab=o,this.Nb=i}function Se(){}ye.clearInstanceCache=function(){be=[]},ye.getInstanceCacheLength=function(){return be.length},ye.alloc=we,ye.prototype.zb=we,ye.prototype.alloc=ye.prototype.zb,ye.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>be.length&&be.push(this)},ye.prototype.free=ye.prototype.Ca,ye.prototype.Fb=function(){return this.O},ye.prototype.getFieldCursor=ye.prototype.Fb,ye.prototype.B=function(){return this.a.B()},ye.prototype.getCursor=ye.prototype.B,ye.prototype.Y=function(){return this.a.Y()},ye.prototype.getBuffer=ye.prototype.Y,ye.prototype.Hb=function(){return this.c},ye.prototype.getFieldNumber=ye.prototype.Hb,ye.prototype.Lb=function(){return this.b},ye.prototype.getWireType=ye.prototype.Lb,ye.prototype.Mb=function(){return 2==this.b},ye.prototype.isDelimited=ye.prototype.Mb,ye.prototype.bb=function(){return 4==this.b},ye.prototype.isEndGroup=ye.prototype.bb,ye.prototype.getError=function(){return this.h||this.a.getError()},ye.prototype.getError=ye.prototype.getError,ye.prototype.H=function(e,t,n){this.a.H(e,t,n),this.b=this.c=-1},ye.prototype.setBlock=ye.prototype.H,ye.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ye.prototype.reset=ye.prototype.reset,ye.prototype.advance=function(e){this.a.advance(e)},ye.prototype.advance=ye.prototype.advance,ye.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return O("Decoder hit an error"),!1;this.O=this.a.B();var e=this.a.o(),t=e>>>3;return e&=7,0!=e&&5!=e&&1!=e&&2!=e&&3!=e&&4!=e?(O("Invalid wire type: %s (at position %s)",e,this.O),this.h=!0,!1):(this.c=t,this.b=e,!0)},ye.prototype.nextField=ye.prototype.oa,ye.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ye.prototype.unskipHeader=ye.prototype.Oa,ye.prototype.Lc=function(){var e=this.c;for(this.Oa();this.oa()&&this.c==e;)this.C();this.a.ya()||this.Oa()},ye.prototype.skipMatchingFields=ye.prototype.Lc,ye.prototype.lb=function(){0!=this.b?(O("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ye.prototype.skipVarintField=ye.prototype.lb,ye.prototype.gb=function(){if(2!=this.b)O("Invalid wire type for skipDelimitedField"),this.C();else{var e=this.a.o();this.a.advance(e)}},ye.prototype.skipDelimitedField=ye.prototype.gb,ye.prototype.hb=function(){5!=this.b?(O("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ye.prototype.skipFixed32Field=ye.prototype.hb,ye.prototype.ib=function(){1!=this.b?(O("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ye.prototype.skipFixed64Field=ye.prototype.ib,ye.prototype.jb=function(){var e=this.c;do{if(!this.oa()){O("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(4==this.b){this.c!=e&&(O("Unmatched end-group tag"),this.h=!0);break}this.C()}while(1)},ye.prototype.skipGroup=ye.prototype.jb,ye.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:O("Invalid wire encoding for field.")}},ye.prototype.skipField=ye.prototype.C,ye.prototype.Hc=function(e,t){null===this.v&&(this.v={}),_(!this.v[e]),this.v[e]=t},ye.prototype.registerReadCallback=ye.prototype.Hc,ye.prototype.Ic=function(e){return _(null!==this.v),e=this.v[e],_(e),e(this)},ye.prototype.runReadCallback=ye.prototype.Ic,ye.prototype.Yb=function(e,t){_(2==this.b);var n=this.a.c,r=this.a.o();r=this.a.B()+r,this.a.setEnd(r),t(e,this),this.a.Ma(r),this.a.setEnd(n)},ye.prototype.readMessage=ye.prototype.Yb,ye.prototype.Ub=function(e,t,n){_(3==this.b),_(this.c==e),n(t,this),this.h||4==this.b||(O("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ye.prototype.readGroup=ye.prototype.Ub,ye.prototype.Gb=function(){_(2==this.b);var e=this.a.o(),t=this.a.B(),n=t+e;return e=me(this.a.Y(),t,e),this.a.Ma(n),e},ye.prototype.getFieldDecoder=ye.prototype.Gb,ye.prototype.P=function(){return _(0==this.b),this.a.da()},ye.prototype.readInt32=ye.prototype.P,ye.prototype.Wb=function(){return _(0==this.b),this.a.Ea()},ye.prototype.readInt32String=ye.prototype.Wb,ye.prototype.ba=function(){return _(0==this.b),this.a.sa()},ye.prototype.readInt64=ye.prototype.ba,ye.prototype.ca=function(){return _(0==this.b),this.a.Fa()},ye.prototype.readInt64String=ye.prototype.ca,ye.prototype.m=function(){return _(0==this.b),this.a.o()},ye.prototype.readUint32=ye.prototype.m,ye.prototype.Fc=function(){return _(0==this.b),this.a.O()},ye.prototype.readUint32String=ye.prototype.Fc,ye.prototype.ga=function(){return _(0==this.b),this.a.Ga()},ye.prototype.readUint64=ye.prototype.ga,ye.prototype.ha=function(){return _(0==this.b),this.a.Ha()},ye.prototype.readUint64String=ye.prototype.ha,ye.prototype.zc=function(){return _(0==this.b),this.a.Ia()},ye.prototype.readSint32=ye.prototype.zc,ye.prototype.Ac=function(){return _(0==this.b),this.a.Ja()},ye.prototype.readSint64=ye.prototype.Ac,ye.prototype.Bc=function(){return _(0==this.b),this.a.Ka()},ye.prototype.readSint64String=ye.prototype.Bc,ye.prototype.Rb=function(){return _(5==this.b),this.a.m()},ye.prototype.readFixed32=ye.prototype.Rb,ye.prototype.Sb=function(){return _(1==this.b),this.a.ga()},ye.prototype.readFixed64=ye.prototype.Sb,ye.prototype.Tb=function(){return _(1==this.b),this.a.ha()},ye.prototype.readFixed64String=ye.prototype.Tb,ye.prototype.vc=function(){return _(5==this.b),this.a.P()},ye.prototype.readSfixed32=ye.prototype.vc,ye.prototype.wc=function(){return _(5==this.b),this.a.P().toString()},ye.prototype.readSfixed32String=ye.prototype.wc,ye.prototype.xc=function(){return _(1==this.b),this.a.ba()},ye.prototype.readSfixed64=ye.prototype.xc,ye.prototype.yc=function(){return _(1==this.b),this.a.ca()},ye.prototype.readSfixed64String=ye.prototype.yc,ye.prototype.aa=function(){return _(5==this.b),this.a.aa()},ye.prototype.readFloat=ye.prototype.aa,ye.prototype.Z=function(){return _(1==this.b),this.a.Z()},ye.prototype.readDouble=ye.prototype.Z,ye.prototype.pa=function(){return _(0==this.b),!!this.a.o()},ye.prototype.readBool=ye.prototype.pa,ye.prototype.ra=function(){return _(0==this.b),this.a.sa()},ye.prototype.readEnum=ye.prototype.ra,ye.prototype.fa=function(){_(2==this.b);var e=this.a.o();return this.a.fa(e)},ye.prototype.readString=ye.prototype.fa,ye.prototype.qa=function(){_(2==this.b);var e=this.a.o();return this.a.qa(e)},ye.prototype.readBytes=ye.prototype.qa,ye.prototype.ia=function(){return _(0==this.b),this.a.ia()},ye.prototype.readVarintHash64=ye.prototype.ia,ye.prototype.Cc=function(){return _(0==this.b),this.a.fb()},ye.prototype.readSintHash64=ye.prototype.Cc,ye.prototype.w=function(e){return _(0==this.b),this.a.w(e)},ye.prototype.readSplitVarint64=ye.prototype.w,ye.prototype.ea=function(e){return _(0==this.b),this.a.w((function(t,n){return re(t,n,e)}))},ye.prototype.readSplitZigzagVarint64=ye.prototype.ea,ye.prototype.$=function(){return _(1==this.b),this.a.$()},ye.prototype.readFixedHash64=ye.prototype.$,ye.prototype.ta=function(e){return _(1==this.b),this.a.ta(e)},ye.prototype.readSplitFixed64=ye.prototype.ta,ye.prototype.gc=function(){return Ae(this,this.a.da)},ye.prototype.readPackedInt32=ye.prototype.gc,ye.prototype.hc=function(){return Ae(this,this.a.Ea)},ye.prototype.readPackedInt32String=ye.prototype.hc,ye.prototype.ic=function(){return Ae(this,this.a.sa)},ye.prototype.readPackedInt64=ye.prototype.ic,ye.prototype.jc=function(){return Ae(this,this.a.Fa)},ye.prototype.readPackedInt64String=ye.prototype.jc,ye.prototype.qc=function(){return Ae(this,this.a.o)},ye.prototype.readPackedUint32=ye.prototype.qc,ye.prototype.rc=function(){return Ae(this,this.a.O)},ye.prototype.readPackedUint32String=ye.prototype.rc,ye.prototype.sc=function(){return Ae(this,this.a.Ga)},ye.prototype.readPackedUint64=ye.prototype.sc,ye.prototype.tc=function(){return Ae(this,this.a.Ha)},ye.prototype.readPackedUint64String=ye.prototype.tc,ye.prototype.nc=function(){return Ae(this,this.a.Ia)},ye.prototype.readPackedSint32=ye.prototype.nc,ye.prototype.oc=function(){return Ae(this,this.a.Ja)},ye.prototype.readPackedSint64=ye.prototype.oc,ye.prototype.pc=function(){return Ae(this,this.a.Ka)},ye.prototype.readPackedSint64String=ye.prototype.pc,ye.prototype.bc=function(){return Ae(this,this.a.m)},ye.prototype.readPackedFixed32=ye.prototype.bc,ye.prototype.cc=function(){return Ae(this,this.a.ga)},ye.prototype.readPackedFixed64=ye.prototype.cc,ye.prototype.dc=function(){return Ae(this,this.a.ha)},ye.prototype.readPackedFixed64String=ye.prototype.dc,ye.prototype.kc=function(){return Ae(this,this.a.P)},ye.prototype.readPackedSfixed32=ye.prototype.kc,ye.prototype.lc=function(){return Ae(this,this.a.ba)},ye.prototype.readPackedSfixed64=ye.prototype.lc,ye.prototype.mc=function(){return Ae(this,this.a.ca)},ye.prototype.readPackedSfixed64String=ye.prototype.mc,ye.prototype.fc=function(){return Ae(this,this.a.aa)},ye.prototype.readPackedFloat=ye.prototype.fc,ye.prototype.$b=function(){return Ae(this,this.a.Z)},ye.prototype.readPackedDouble=ye.prototype.$b,ye.prototype.Zb=function(){return Ae(this,this.a.pa)},ye.prototype.readPackedBool=ye.prototype.Zb,ye.prototype.ac=function(){return Ae(this,this.a.ra)},ye.prototype.readPackedEnum=ye.prototype.ac,ye.prototype.uc=function(){return Ae(this,this.a.ia)},ye.prototype.readPackedVarintHash64=ye.prototype.uc,ye.prototype.ec=function(){return Ae(this,this.a.$)},ye.prototype.readPackedFixedHash64=ye.prototype.ec,p("jspb.ExtensionFieldInfo",xe,void 0),p("jspb.ExtensionFieldBinaryInfo",Ce,void 0),xe.prototype.F=function(){return!!this.la},xe.prototype.isMessageType=xe.prototype.F,p("jspb.Message",Se,void 0),Se.GENERATE_TO_OBJECT=!0,Se.GENERATE_FROM_OBJECT=!0;var _e="function"==typeof Uint8Array;Se.prototype.Ib=function(){return this.b},Se.prototype.getJsPbMessageId=Se.prototype.Ib,Se.initialize=function(e,t,n,r,o,i){if(e.f=null,t||(t=n?[n]:[]),e.b=n?String(n):void 0,e.D=0===n?-1:0,e.u=t,n=e.u.length,t=-1,!n||(t=n-1,n=e.u[t],null===n||"object"!=typeof n||Array.isArray(n)||_e&&n instanceof Uint8Array)?-1<r?(e.G=Math.max(r,t+1-e.D),e.i=null):e.G=Number.MAX_VALUE:(e.G=t-e.D,e.i=n),e.a={},o)for(r=0;r<o.length;r++)t=o[r],t<e.G?(t+=e.D,e.u[t]=e.u[t]||ke):(Ee(e),e.i[t]=e.i[t]||ke);if(i&&i.length)for(r=0;r<i.length;r++)Be(e,i[r])};var ke=Object.freeze?Object.freeze([]):[];function Ee(e){var t=e.G+e.D;e.u[t]||(e.i=e.u[t]={})}function Oe(e,t,n){for(var r=[],o=0;o<e.length;o++)r[o]=t.call(e[o],n,e[o]);return r}function Fe(e,t){if(t<e.G){t+=e.D;var n=e.u[t];return n===ke?e.u[t]=[]:n}if(e.i)return n=e.i[t],n===ke?e.i[t]=[]:n}function Te(e,t){return e=Fe(e,t),null==e?e:+e}function Pe(e,t){return e=Fe(e,t),null==e?e:!!e}function Ne(e){return null==e||"string"===typeof e?e:_e&&e instanceof Uint8Array?z(e):(O("Cannot coerce to b64 string: "+v(e)),null)}function Me(e){return null==e||e instanceof Uint8Array?e:"string"===typeof e?U(e):(O("Cannot coerce to Uint8Array: "+v(e)),null)}function Le(e){if(e&&1<e.length){var t=v(e[0]);A(e,(function(e){v(e)!=t&&O("Inconsistent type in JSPB repeated field array. Got "+v(e)+" expected "+t)}))}}function Ie(e,t,n){return e=Fe(e,t),null==e?n:e}function Re(e,t,n){return F(e,Se),t<e.G?e.u[t+e.D]=n:(Ee(e),e.i[t]=n),e}function je(e,t,n,r){return F(e,Se),n!==r?Re(e,t,n):t<e.G?e.u[t+e.D]=null:(Ee(e),delete e.i[t]),e}function De(e,t,n,r){return F(e,Se),(n=Be(e,n))&&n!==t&&void 0!==r&&(e.f&&n in e.f&&(e.f[n]=void 0),Re(e,n,void 0)),Re(e,t,r)}function Be(e,t){for(var n,r,o=0;o<t.length;o++){var i=t[o],a=Fe(e,i);null!=a&&(n=i,r=a,Re(e,i,void 0))}return n?(Re(e,n,r),n):0}function We(e,t,n){if(e.f||(e.f={}),!e.f[n]){for(var r=Fe(e,n),o=[],i=0;i<r.length;i++)o[i]=new t(r[i]);e.f[n]=o}}function ze(e){if(e.f)for(var t in e.f){var n=e.f[t];if(Array.isArray(n))for(var r=0;r<n.length;r++)n[r]&&n[r].g();else n&&n.g()}}function Ue(e,t){e=e||{},t=t||{};var n,r={};for(n in e)r[n]=0;for(n in t)r[n]=0;for(n in r)if(!Ke(e[n],t[n]))return!1;return!0}function Ke(e,t){if(e==t)return!0;if(!g(e)||!g(t))return!!("number"===typeof e&&isNaN(e)||"number"===typeof t&&isNaN(t))&&String(e)==String(t);if(e.constructor!=t.constructor)return!1;if(_e&&e.constructor===Uint8Array){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}if(e.constructor===Array){var r=void 0,o=void 0,i=Math.max(e.length,t.length);for(n=0;n<i;n++){var a=e[n],s=t[n];if(a&&a.constructor==Object&&(_(void 0===r),_(n===e.length-1),r=a,a=void 0),s&&s.constructor==Object&&(_(void 0===o),_(n===t.length-1),o=s,s=void 0),!Ke(a,s))return!1}return!r&&!o||(r=r||{},o=o||{},Ue(r,o))}if(e.constructor===Object)return Ue(e,t);throw Error("Invalid type in JSPB array")}function Ve(e){return new e.constructor(He(e.g()))}function He(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n<e.length;n++){var r=e[n];null!=r&&(t[n]="object"==typeof r?He(_(r)):r)}return t}if(_e&&e instanceof Uint8Array)return new Uint8Array(e);for(n in t={},e)r=e[n],null!=r&&(t[n]="object"==typeof r?He(_(r)):r);return t}Se.toObjectList=Oe,Se.toObjectExtension=function(e,t,n,r,o){for(var i in n){var a=n[i],s=r.call(e,a);if(null!=s){for(var l in a.Ba)if(a.Ba.hasOwnProperty(l))break;t[l]=a.Na?a.na?Oe(s,a.Na,o):a.Na(o,s):s}}},Se.serializeBinaryExtensions=function(e,t,n,r){for(var o in n){var i=n[o],a=i.Za;if(!i.Aa)throw Error("Message extension present that was generated without binary serialization support");var s=r.call(e,a);if(null!=s)if(a.F()){if(!i.Wa)throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");i.Aa.call(t,a.ma,s,i.Wa)}else i.Aa.call(t,a.ma,s)}},Se.readBinaryExtension=function(e,t,n,r,o){var i=n[t.c];if(i){if(n=i.Za,!i.za)throw Error("Deserializing extension whose generated code does not support binary format");if(n.F()){var a=new n.la;i.za.call(t,a,i.Ab)}else a=i.za.call(t);n.na&&!i.Nb?(t=r.call(e,n))?t.push(a):o.call(e,n,[a]):o.call(e,n,a)}else t.C()},Se.getField=Fe,Se.getRepeatedField=function(e,t){return Fe(e,t)},Se.getOptionalFloatingPointField=Te,Se.getBooleanField=Pe,Se.getRepeatedFloatingPointField=function(e,t){var n=Fe(e,t);if(e.a||(e.a={}),!e.a[t]){for(var r=0;r<n.length;r++)n[r]=+n[r];e.a[t]=!0}return n},Se.getRepeatedBooleanField=function(e,t){var n=Fe(e,t);if(e.a||(e.a={}),!e.a[t]){for(var r=0;r<n.length;r++)n[r]=!!n[r];e.a[t]=!0}return n},Se.bytesAsB64=Ne,Se.bytesAsU8=Me,Se.bytesListAsB64=function(e){return Le(e),e.length&&"string"!==typeof e[0]?x(e,Ne):e},Se.bytesListAsU8=function(e){return Le(e),!e.length||e[0]instanceof Uint8Array?e:x(e,Me)},Se.getFieldWithDefault=Ie,Se.getBooleanFieldWithDefault=function(e,t,n){return e=Pe(e,t),null==e?n:e},Se.getFloatingPointFieldWithDefault=function(e,t,n){return e=Te(e,t),null==e?n:e},Se.getFieldProto3=Ie,Se.getMapField=function(e,t,n,r){if(e.f||(e.f={}),t in e.f)return e.f[t];var o=Fe(e,t);if(!o){if(n)return;o=[],Re(e,t,o)}return e.f[t]=new P(o,r)},Se.setField=Re,Se.setProto3IntField=function(e,t,n){return je(e,t,n,0)},Se.setProto3FloatField=function(e,t,n){return je(e,t,n,0)},Se.setProto3BooleanField=function(e,t,n){return je(e,t,n,!1)},Se.setProto3StringField=function(e,t,n){return je(e,t,n,"")},Se.setProto3BytesField=function(e,t,n){return je(e,t,n,"")},Se.setProto3EnumField=function(e,t,n){return je(e,t,n,0)},Se.setProto3StringIntField=function(e,t,n){return je(e,t,n,"0")},Se.addToRepeatedField=function(e,t,n,r){return F(e,Se),t=Fe(e,t),void 0!=r?t.splice(r,0,n):t.push(n),e},Se.setOneofField=De,Se.computeOneofCase=Be,Se.getWrapperField=function(e,t,n,r){if(e.f||(e.f={}),!e.f[n]){var o=Fe(e,n);(r||o)&&(e.f[n]=new t(o))}return e.f[n]},Se.getRepeatedWrapperField=function(e,t,n){return We(e,t,n),t=e.f[n],t==ke&&(t=e.f[n]=[]),t},Se.setWrapperField=function(e,t,n){F(e,Se),e.f||(e.f={});var r=n?n.g():n;return e.f[t]=n,Re(e,t,r)},Se.setOneofWrapperField=function(e,t,n,r){F(e,Se),e.f||(e.f={});var o=r?r.g():r;return e.f[t]=r,De(e,t,n,o)},Se.setRepeatedWrapperField=function(e,t,n){F(e,Se),e.f||(e.f={}),n=n||[];for(var r=[],o=0;o<n.length;o++)r[o]=n[o].g();return e.f[t]=n,Re(e,t,r)},Se.addToRepeatedWrapperField=function(e,t,n,r,o){We(e,r,t);var i=e.f[t];return i||(i=e.f[t]=[]),n=n||new r,e=Fe(e,t),void 0!=o?(i.splice(o,0,n),e.splice(o,0,n.g())):(i.push(n),e.push(n.g())),n},Se.toMap=function(e,t,n,r){for(var o={},i=0;i<e.length;i++)o[t.call(e[i])]=n?n.call(e[i],r,e[i]):e[i];return o},Se.prototype.g=function(){return ze(this),this.u},Se.prototype.toArray=Se.prototype.g,Se.prototype.toString=function(){return ze(this),this.u.toString()},Se.prototype.getExtension=function(e){if(this.i){this.f||(this.f={});var t=e.ma;if(e.na){if(e.F())return this.f[t]||(this.f[t]=x(this.i[t]||[],(function(t){return new e.la(t)}))),this.f[t]}else if(e.F())return!this.f[t]&&this.i[t]&&(this.f[t]=new e.la(this.i[t])),this.f[t];return this.i[t]}},Se.prototype.getExtension=Se.prototype.getExtension,Se.prototype.Kc=function(e,t){this.f||(this.f={}),Ee(this);var n=e.ma;return e.na?(t=t||[],e.F()?(this.f[n]=t,this.i[n]=x(t,(function(e){return e.g()}))):this.i[n]=t):e.F()?(this.f[n]=t,this.i[n]=t?t.g():t):this.i[n]=t,this},Se.prototype.setExtension=Se.prototype.Kc,Se.difference=function(e,t){if(!(e instanceof t.constructor))throw Error("Messages have different types.");var n=e.g();t=t.g();var r=[],o=0,i=n.length>t.length?n.length:t.length;for(e.b&&(r[0]=e.b,o=1);o<i;o++)Ke(n[o],t[o])||(r[o]=t[o]);return new e.constructor(r)},Se.equals=function(e,t){return e==t||!(!e||!t)&&e instanceof t.constructor&&Ke(e.g(),t.g())},Se.compareExtensions=Ue,Se.compareFields=Ke,Se.prototype.Bb=function(){return Ve(this)},Se.prototype.cloneMessage=Se.prototype.Bb,Se.prototype.clone=function(){return Ve(this)},Se.prototype.clone=Se.prototype.clone,Se.clone=function(e){return Ve(e)},Se.copyInto=function(e,t){F(e,Se),F(t,Se),_(e.constructor==t.constructor,"Copy source and target message should have the same type."),e=Ve(e);for(var n=t.g(),r=e.g(),o=n.length=0;o<r.length;o++)n[o]=r[o];t.f=e.f,t.i=e.i},Se.registerMessageType=function(e,t){t.we=e};var qe={dump:function(e){return F(e,Se,"jspb.Message instance expected"),_(e.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),qe.X(e)}};function Ge(){this.a=[]}function Ye(e,t){this.lo=e,this.hi=t}function $e(e,t){var n=65535&e;e>>>=16;var r=65535&t,o=t>>>16;for(t=n*r+65536*(n*o&65535)+65536*(e*r&65535),n=e*o+(n*o>>>16)+(e*r>>>16);4294967296<=t;)t-=4294967296,n+=1;return new Ye(t>>>0,n>>>0)}function Xe(e){for(var t=new Ye(0,0),n=new Ye(0,0),r=0;r<e.length;r++){if("0">e[r]||"9"<e[r])return null;n.lo=parseInt(e[r],10),t=t.eb(10).add(n)}return t}function Je(e,t){this.lo=e,this.hi=t}function Qe(e){var t=0<e.length&&"-"==e[0];return t&&(e=e.substring(1)),e=Xe(e),null===e?null:(t&&(e=new Ye(0,0).sub(e)),new Je(e.lo,e.hi))}function Ze(){this.c=[],this.b=0,this.a=new Ge,this.h=[]}function et(e,t){var n=e.a.end();e.c.push(n),e.c.push(t),e.b+=n.length+t.length}function tt(e,t){return rt(e,t,2),t=e.a.end(),e.c.push(t),e.b+=t.length,t.push(e.b),t}function nt(e,t){var n=t.pop();for(n=e.b+e.a.length()-n,_(0<=n);127<n;)t.push(127&n|128),n>>>=7,e.b++;t.push(n),e.b++}function rt(e,t,n){_(1<=t&&t==Math.floor(t)),e.a.j(8*t+n)}function ot(e,t,n){null!=n&&(rt(e,t,0),e.a.j(n))}function it(e,t,n){null!=n&&(rt(e,t,0),e.a.M(n))}p("jspb.debug.dump",qe.dump,void 0),qe.X=function(e){var t=v(e);if("number"==t||"string"==t||"boolean"==t||"null"==t||"undefined"==t||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array)return e;if("array"==t)return E(e),x(e,qe.X);if(e instanceof P){var n={};e=e.entries();for(var r=e.next();!r.done;r=e.next())n[r.value[0]]=qe.X(r.value[1]);return n}F(e,Se,"Only messages expected: "+e),t=e.constructor;var o={$name:t.name||t.displayName};for(s in t.prototype){var i=/^get([A-Z]\w*)/.exec(s);if(i&&"getExtension"!=s&&"getJsPbMessageId"!=s){var a="has"+i[1];e[a]&&!e[a]()||(a=e[s](),o[qe.$a(i[1])]=qe.X(a))}}if(e.extensionObject_)return o.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",o;for(r in t.extensions)if(/^\d+$/.test(r)){a=t.extensions[r];var s=e.getExtension(a);i=void 0,a=a.Ba;var l=[],u=0;for(i in a)l[u++]=i;i=l[0],null!=s&&(n||(n=o.$extensions={}),n[qe.$a(i)]=qe.X(s))}return o},qe.$a=function(e){return e.replace(/^[A-Z]/,(function(e){return e.toLowerCase()}))},p("jspb.BinaryEncoder",Ge,void 0),Ge.prototype.length=function(){return this.a.length},Ge.prototype.length=Ge.prototype.length,Ge.prototype.end=function(){var e=this.a;return this.a=[],e},Ge.prototype.end=Ge.prototype.end,Ge.prototype.l=function(e,t){for(_(e==Math.floor(e)),_(t==Math.floor(t)),_(0<=e&&4294967296>e),_(0<=t&&4294967296>t);0<t||127<e;)this.a.push(127&e|128),e=(e>>>7|t<<25)>>>0,t>>>=7;this.a.push(e)},Ge.prototype.writeSplitVarint64=Ge.prototype.l,Ge.prototype.A=function(e,t){_(e==Math.floor(e)),_(t==Math.floor(t)),_(0<=e&&4294967296>e),_(0<=t&&4294967296>t),this.s(e),this.s(t)},Ge.prototype.writeSplitFixed64=Ge.prototype.A,Ge.prototype.j=function(e){for(_(e==Math.floor(e)),_(0<=e&&4294967296>e);127<e;)this.a.push(127&e|128),e>>>=7;this.a.push(e)},Ge.prototype.writeUnsignedVarint32=Ge.prototype.j,Ge.prototype.M=function(e){if(_(e==Math.floor(e)),_(-2147483648<=e&&2147483648>e),0<=e)this.j(e);else{for(var t=0;9>t;t++)this.a.push(127&e|128),e>>=7;this.a.push(1)}},Ge.prototype.writeSignedVarint32=Ge.prototype.M,Ge.prototype.va=function(e){_(e==Math.floor(e)),_(0<=e&&0x10000000000000000>e),Y(e),this.l(H,q)},Ge.prototype.writeUnsignedVarint64=Ge.prototype.va,Ge.prototype.ua=function(e){_(e==Math.floor(e)),_(-0x8000000000000000<=e&&0x8000000000000000>e),Y(e),this.l(H,q)},Ge.prototype.writeSignedVarint64=Ge.prototype.ua,Ge.prototype.wa=function(e){_(e==Math.floor(e)),_(-2147483648<=e&&2147483648>e),this.j((e<<1^e>>31)>>>0)},Ge.prototype.writeZigzagVarint32=Ge.prototype.wa,Ge.prototype.xa=function(e){_(e==Math.floor(e)),_(-0x8000000000000000<=e&&0x8000000000000000>e),$(e),this.l(H,q)},Ge.prototype.writeZigzagVarint64=Ge.prototype.xa,Ge.prototype.Ta=function(e){this.W(ce(e))},Ge.prototype.writeZigzagVarint64String=Ge.prototype.Ta,Ge.prototype.W=function(e){var t=this;Q(e),te(H,q,(function(e,n){t.l(e>>>0,n>>>0)}))},Ge.prototype.writeZigzagVarintHash64=Ge.prototype.W,Ge.prototype.be=function(e){_(e==Math.floor(e)),_(0<=e&&256>e),this.a.push(e>>>0&255)},Ge.prototype.writeUint8=Ge.prototype.be,Ge.prototype.ae=function(e){_(e==Math.floor(e)),_(0<=e&&65536>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Ge.prototype.writeUint16=Ge.prototype.ae,Ge.prototype.s=function(e){_(e==Math.floor(e)),_(0<=e&&4294967296>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Ge.prototype.writeUint32=Ge.prototype.s,Ge.prototype.V=function(e){_(e==Math.floor(e)),_(0<=e&&0x10000000000000000>e),G(e),this.s(H),this.s(q)},Ge.prototype.writeUint64=Ge.prototype.V,Ge.prototype.Qc=function(e){_(e==Math.floor(e)),_(-128<=e&&128>e),this.a.push(e>>>0&255)},Ge.prototype.writeInt8=Ge.prototype.Qc,Ge.prototype.Pc=function(e){_(e==Math.floor(e)),_(-32768<=e&&32768>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255)},Ge.prototype.writeInt16=Ge.prototype.Pc,Ge.prototype.S=function(e){_(e==Math.floor(e)),_(-2147483648<=e&&2147483648>e),this.a.push(e>>>0&255),this.a.push(e>>>8&255),this.a.push(e>>>16&255),this.a.push(e>>>24&255)},Ge.prototype.writeInt32=Ge.prototype.S,Ge.prototype.T=function(e){_(e==Math.floor(e)),_(-0x8000000000000000<=e&&0x8000000000000000>e),Y(e),this.A(H,q)},Ge.prototype.writeInt64=Ge.prototype.T,Ge.prototype.ka=function(e){_(e==Math.floor(e)),_(-0x8000000000000000<=+e&&0x8000000000000000>+e),Q(ce(e)),this.A(H,q)},Ge.prototype.writeInt64String=Ge.prototype.ka,Ge.prototype.L=function(e){_(1/0===e||-1/0===e||isNaN(e)||-34028234663852886e22<=e&&34028234663852886e22>=e),X(e),this.s(H)},Ge.prototype.writeFloat=Ge.prototype.L,Ge.prototype.J=function(e){_(1/0===e||-1/0===e||isNaN(e)||-17976931348623157e292<=e&&17976931348623157e292>=e),J(e),this.s(H),this.s(q)},Ge.prototype.writeDouble=Ge.prototype.J,Ge.prototype.I=function(e){_("boolean"===typeof e||"number"===typeof e),this.a.push(e?1:0)},Ge.prototype.writeBool=Ge.prototype.I,Ge.prototype.R=function(e){_(e==Math.floor(e)),_(-2147483648<=e&&2147483648>e),this.M(e)},Ge.prototype.writeEnum=Ge.prototype.R,Ge.prototype.ja=function(e){this.a.push.apply(this.a,e)},Ge.prototype.writeBytes=Ge.prototype.ja,Ge.prototype.N=function(e){Q(e),this.l(H,q)},Ge.prototype.writeVarintHash64=Ge.prototype.N,Ge.prototype.K=function(e){Q(e),this.s(H),this.s(q)},Ge.prototype.writeFixedHash64=Ge.prototype.K,Ge.prototype.U=function(e){var t=this.a.length;k(e);for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(128>r)this.a.push(r);else if(2048>r)this.a.push(r>>6|192),this.a.push(63&r|128);else if(65536>r)if(55296<=r&&56319>=r&&n+1<e.length){var o=e.charCodeAt(n+1);56320<=o&&57343>=o&&(r=1024*(r-55296)+o-56320+65536,this.a.push(r>>18|240),this.a.push(r>>12&63|128),this.a.push(r>>6&63|128),this.a.push(63&r|128),n++)}else this.a.push(r>>12|224),this.a.push(r>>6&63|128),this.a.push(63&r|128)}return this.a.length-t},Ge.prototype.writeString=Ge.prototype.U,p("jspb.arith.UInt64",Ye,void 0),Ye.prototype.cmp=function(e){return this.hi<e.hi||this.hi==e.hi&&this.lo<e.lo?-1:this.hi==e.hi&&this.lo==e.lo?0:1},Ye.prototype.cmp=Ye.prototype.cmp,Ye.prototype.La=function(){return new Ye((this.lo>>>1|(1&this.hi)<<31)>>>0,this.hi>>>1>>>0)},Ye.prototype.rightShift=Ye.prototype.La,Ye.prototype.Da=function(){return new Ye(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},Ye.prototype.leftShift=Ye.prototype.Da,Ye.prototype.cb=function(){return!!(2147483648&this.hi)},Ye.prototype.msb=Ye.prototype.cb,Ye.prototype.Ob=function(){return!!(1&this.lo)},Ye.prototype.lsb=Ye.prototype.Ob,Ye.prototype.Ua=function(){return 0==this.lo&&0==this.hi},Ye.prototype.zero=Ye.prototype.Ua,Ye.prototype.add=function(e){return new Ye((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},Ye.prototype.add=Ye.prototype.add,Ye.prototype.sub=function(e){return new Ye((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},Ye.prototype.sub=Ye.prototype.sub,Ye.mul32x32=$e,Ye.prototype.eb=function(e){var t=$e(this.lo,e);return e=$e(this.hi,e),e.hi=e.lo,e.lo=0,t.add(e)},Ye.prototype.mul=Ye.prototype.eb,Ye.prototype.Xa=function(e){if(0==e)return[];var t=new Ye(0,0),n=new Ye(this.lo,this.hi);e=new Ye(e,0);for(var r=new Ye(1,0);!e.cb();)e=e.Da(),r=r.Da();for(;!r.Ua();)0>=e.cmp(n)&&(t=t.add(r),n=n.sub(e)),e=e.La(),r=r.La();return[t,n]},Ye.prototype.div=Ye.prototype.Xa,Ye.prototype.toString=function(){for(var e="",t=this;!t.Ua();){t=t.Xa(10);var n=t[0];e=t[1].lo+e,t=n}return""==e&&(e="0"),e},Ye.prototype.toString=Ye.prototype.toString,Ye.fromString=Xe,Ye.prototype.clone=function(){return new Ye(this.lo,this.hi)},Ye.prototype.clone=Ye.prototype.clone,p("jspb.arith.Int64",Je,void 0),Je.prototype.add=function(e){return new Je((this.lo+e.lo&4294967295)>>>0>>>0,((this.hi+e.hi&4294967295)>>>0)+(4294967296<=this.lo+e.lo?1:0)>>>0)},Je.prototype.add=Je.prototype.add,Je.prototype.sub=function(e){return new Je((this.lo-e.lo&4294967295)>>>0>>>0,((this.hi-e.hi&4294967295)>>>0)-(0>this.lo-e.lo?1:0)>>>0)},Je.prototype.sub=Je.prototype.sub,Je.prototype.clone=function(){return new Je(this.lo,this.hi)},Je.prototype.clone=Je.prototype.clone,Je.prototype.toString=function(){var e=0!=(2147483648&this.hi),t=new Ye(this.lo,this.hi);return e&&(t=new Ye(0,0).sub(t)),(e?"-":"")+t.toString()},Je.prototype.toString=Je.prototype.toString,Je.fromString=Qe,p("jspb.BinaryWriter",Ze,void 0),Ze.prototype.pb=function(e,t,n){et(this,e.subarray(t,n))},Ze.prototype.writeSerializedMessage=Ze.prototype.pb,Ze.prototype.Pb=function(e,t,n){null!=e&&null!=t&&null!=n&&this.pb(e,t,n)},Ze.prototype.maybeWriteSerializedMessage=Ze.prototype.Pb,Ze.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ze.prototype.reset=Ze.prototype.reset,Ze.prototype.ab=function(){_(0==this.h.length);for(var e=new Uint8Array(this.b+this.a.length()),t=this.c,n=t.length,r=0,o=0;o<n;o++){var i=t[o];e.set(i,r),r+=i.length}return t=this.a.end(),e.set(t,r),r+=t.length,_(r==e.length),this.c=[e],e},Ze.prototype.getResultBuffer=Ze.prototype.ab,Ze.prototype.Kb=function(e){return z(this.ab(),e)},Ze.prototype.getResultBase64String=Ze.prototype.Kb,Ze.prototype.Va=function(e){this.h.push(tt(this,e))},Ze.prototype.beginSubMessage=Ze.prototype.Va,Ze.prototype.Ya=function(){_(0<=this.h.length),nt(this,this.h.pop())},Ze.prototype.endSubMessage=Ze.prototype.Ya,Ze.prototype.Nc=function(e,t,n){switch(e){case 1:this.J(t,n);break;case 2:this.L(t,n);break;case 3:this.T(t,n);break;case 4:this.V(t,n);break;case 5:this.S(t,n);break;case 6:this.Qa(t,n);break;case 7:this.Pa(t,n);break;case 8:this.I(t,n);break;case 9:this.U(t,n);break;case 10:O("Group field type not supported in writeAny()");break;case 11:O("Message field type not supported in writeAny()");break;case 12:this.ja(t,n);break;case 13:this.s(t,n);break;case 14:this.R(t,n);break;case 15:this.Ra(t,n);break;case 16:this.Sa(t,n);break;case 17:this.rb(t,n);break;case 18:this.sb(t,n);break;case 30:this.K(t,n);break;case 31:this.N(t,n);break;default:O("Invalid field type in writeAny()")}},Ze.prototype.writeAny=Ze.prototype.Nc,Ze.prototype.S=function(e,t){null!=t&&(_(-2147483648<=t&&2147483648>t),it(this,e,t))},Ze.prototype.writeInt32=Ze.prototype.S,Ze.prototype.ob=function(e,t){null!=t&&(t=parseInt(t,10),_(-2147483648<=t&&2147483648>t),it(this,e,t))},Ze.prototype.writeInt32String=Ze.prototype.ob,Ze.prototype.T=function(e,t){null!=t&&(_(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&(rt(this,e,0),this.a.ua(t)))},Ze.prototype.writeInt64=Ze.prototype.T,Ze.prototype.ka=function(e,t){null!=t&&(t=Qe(t),rt(this,e,0),this.a.l(t.lo,t.hi))},Ze.prototype.writeInt64String=Ze.prototype.ka,Ze.prototype.s=function(e,t){null!=t&&(_(0<=t&&4294967296>t),ot(this,e,t))},Ze.prototype.writeUint32=Ze.prototype.s,Ze.prototype.ub=function(e,t){null!=t&&(t=parseInt(t,10),_(0<=t&&4294967296>t),ot(this,e,t))},Ze.prototype.writeUint32String=Ze.prototype.ub,Ze.prototype.V=function(e,t){null!=t&&(_(0<=t&&0x10000000000000000>t),null!=t&&(rt(this,e,0),this.a.va(t)))},Ze.prototype.writeUint64=Ze.prototype.V,Ze.prototype.vb=function(e,t){null!=t&&(t=Xe(t),rt(this,e,0),this.a.l(t.lo,t.hi))},Ze.prototype.writeUint64String=Ze.prototype.vb,Ze.prototype.rb=function(e,t){null!=t&&(_(-2147483648<=t&&2147483648>t),null!=t&&(rt(this,e,0),this.a.wa(t)))},Ze.prototype.writeSint32=Ze.prototype.rb,Ze.prototype.sb=function(e,t){null!=t&&(_(-0x8000000000000000<=t&&0x8000000000000000>t),null!=t&&(rt(this,e,0),this.a.xa(t)))},Ze.prototype.writeSint64=Ze.prototype.sb,Ze.prototype.$d=function(e,t){null!=t&&null!=t&&(rt(this,e,0),this.a.W(t))},Ze.prototype.writeSintHash64=Ze.prototype.$d,Ze.prototype.Zd=function(e,t){null!=t&&null!=t&&(rt(this,e,0),this.a.Ta(t))},Ze.prototype.writeSint64String=Ze.prototype.Zd,Ze.prototype.Pa=function(e,t){null!=t&&(_(0<=t&&4294967296>t),rt(this,e,5),this.a.s(t))},Ze.prototype.writeFixed32=Ze.prototype.Pa,Ze.prototype.Qa=function(e,t){null!=t&&(_(0<=t&&0x10000000000000000>t),rt(this,e,1),this.a.V(t))},Ze.prototype.writeFixed64=Ze.prototype.Qa,Ze.prototype.nb=function(e,t){null!=t&&(t=Xe(t),rt(this,e,1),this.a.A(t.lo,t.hi))},Ze.prototype.writeFixed64String=Ze.prototype.nb,Ze.prototype.Ra=function(e,t){null!=t&&(_(-2147483648<=t&&2147483648>t),rt(this,e,5),this.a.S(t))},Ze.prototype.writeSfixed32=Ze.prototype.Ra,Ze.prototype.Sa=function(e,t){null!=t&&(_(-0x8000000000000000<=t&&0x8000000000000000>t),rt(this,e,1),this.a.T(t))},Ze.prototype.writeSfixed64=Ze.prototype.Sa,Ze.prototype.qb=function(e,t){null!=t&&(t=Qe(t),rt(this,e,1),this.a.A(t.lo,t.hi))},Ze.prototype.writeSfixed64String=Ze.prototype.qb,Ze.prototype.L=function(e,t){null!=t&&(rt(this,e,5),this.a.L(t))},Ze.prototype.writeFloat=Ze.prototype.L,Ze.prototype.J=function(e,t){null!=t&&(rt(this,e,1),this.a.J(t))},Ze.prototype.writeDouble=Ze.prototype.J,Ze.prototype.I=function(e,t){null!=t&&(_("boolean"===typeof t||"number"===typeof t),rt(this,e,0),this.a.I(t))},Ze.prototype.writeBool=Ze.prototype.I,Ze.prototype.R=function(e,t){null!=t&&(_(-2147483648<=t&&2147483648>t),rt(this,e,0),this.a.M(t))},Ze.prototype.writeEnum=Ze.prototype.R,Ze.prototype.U=function(e,t){null!=t&&(e=tt(this,e),this.a.U(t),nt(this,e))},Ze.prototype.writeString=Ze.prototype.U,Ze.prototype.ja=function(e,t){null!=t&&(t=pe(t),rt(this,e,2),this.a.j(t.length),et(this,t))},Ze.prototype.writeBytes=Ze.prototype.ja,Ze.prototype.Rc=function(e,t,n){null!=t&&(e=tt(this,e),n(t,this),nt(this,e))},Ze.prototype.writeMessage=Ze.prototype.Rc,Ze.prototype.Sc=function(e,t,n){null!=t&&(rt(this,1,3),rt(this,2,0),this.a.M(e),e=tt(this,3),n(t,this),nt(this,e),rt(this,1,4))},Ze.prototype.writeMessageSet=Ze.prototype.Sc,Ze.prototype.Oc=function(e,t,n){null!=t&&(rt(this,e,3),n(t,this),rt(this,e,4))},Ze.prototype.writeGroup=Ze.prototype.Oc,Ze.prototype.K=function(e,t){null!=t&&(_(8==t.length),rt(this,e,1),this.a.K(t))},Ze.prototype.writeFixedHash64=Ze.prototype.K,Ze.prototype.N=function(e,t){null!=t&&(_(8==t.length),rt(this,e,0),this.a.N(t))},Ze.prototype.writeVarintHash64=Ze.prototype.N,Ze.prototype.A=function(e,t,n){rt(this,e,1),this.a.A(t,n)},Ze.prototype.writeSplitFixed64=Ze.prototype.A,Ze.prototype.l=function(e,t,n){rt(this,e,0),this.a.l(t,n)},Ze.prototype.writeSplitVarint64=Ze.prototype.l,Ze.prototype.tb=function(e,t,n){rt(this,e,0);var r=this.a;te(t,n,(function(e,t){r.l(e>>>0,t>>>0)}))},Ze.prototype.writeSplitZigzagVarint64=Ze.prototype.tb,Ze.prototype.Ed=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)it(this,e,t[n])},Ze.prototype.writeRepeatedInt32=Ze.prototype.Ed,Ze.prototype.Fd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.ob(e,t[n])},Ze.prototype.writeRepeatedInt32String=Ze.prototype.Fd,Ze.prototype.Gd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];null!=r&&(rt(this,e,0),this.a.ua(r))}},Ze.prototype.writeRepeatedInt64=Ze.prototype.Gd,Ze.prototype.Qd=function(e,t,n,r){if(null!=t)for(var o=0;o<t.length;o++)this.A(e,n(t[o]),r(t[o]))},Ze.prototype.writeRepeatedSplitFixed64=Ze.prototype.Qd,Ze.prototype.Rd=function(e,t,n,r){if(null!=t)for(var o=0;o<t.length;o++)this.l(e,n(t[o]),r(t[o]))},Ze.prototype.writeRepeatedSplitVarint64=Ze.prototype.Rd,Ze.prototype.Sd=function(e,t,n,r){if(null!=t)for(var o=0;o<t.length;o++)this.tb(e,n(t[o]),r(t[o]))},Ze.prototype.writeRepeatedSplitZigzagVarint64=Ze.prototype.Sd,Ze.prototype.Hd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.ka(e,t[n])},Ze.prototype.writeRepeatedInt64String=Ze.prototype.Hd,Ze.prototype.Ud=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)ot(this,e,t[n])},Ze.prototype.writeRepeatedUint32=Ze.prototype.Ud,Ze.prototype.Vd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.ub(e,t[n])},Ze.prototype.writeRepeatedUint32String=Ze.prototype.Vd,Ze.prototype.Wd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];null!=r&&(rt(this,e,0),this.a.va(r))}},Ze.prototype.writeRepeatedUint64=Ze.prototype.Wd,Ze.prototype.Xd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.vb(e,t[n])},Ze.prototype.writeRepeatedUint64String=Ze.prototype.Xd,Ze.prototype.Md=function(e,t){if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];null!=r&&(rt(this,e,0),this.a.wa(r))}},Ze.prototype.writeRepeatedSint32=Ze.prototype.Md,Ze.prototype.Nd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];null!=r&&(rt(this,e,0),this.a.xa(r))}},Ze.prototype.writeRepeatedSint64=Ze.prototype.Nd,Ze.prototype.Od=function(e,t){if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];null!=r&&(rt(this,e,0),this.a.Ta(r))}},Ze.prototype.writeRepeatedSint64String=Ze.prototype.Od,Ze.prototype.Pd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++){var r=t[n];null!=r&&(rt(this,e,0),this.a.W(r))}},Ze.prototype.writeRepeatedSintHash64=Ze.prototype.Pd,Ze.prototype.yd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.Pa(e,t[n])},Ze.prototype.writeRepeatedFixed32=Ze.prototype.yd,Ze.prototype.zd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.Qa(e,t[n])},Ze.prototype.writeRepeatedFixed64=Ze.prototype.zd,Ze.prototype.Ad=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.nb(e,t[n])},Ze.prototype.writeRepeatedFixed64String=Ze.prototype.Ad,Ze.prototype.Jd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.Ra(e,t[n])},Ze.prototype.writeRepeatedSfixed32=Ze.prototype.Jd,Ze.prototype.Kd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.Sa(e,t[n])},Ze.prototype.writeRepeatedSfixed64=Ze.prototype.Kd,Ze.prototype.Ld=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.qb(e,t[n])},Ze.prototype.writeRepeatedSfixed64String=Ze.prototype.Ld,Ze.prototype.Cd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.L(e,t[n])},Ze.prototype.writeRepeatedFloat=Ze.prototype.Cd,Ze.prototype.wd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.J(e,t[n])},Ze.prototype.writeRepeatedDouble=Ze.prototype.wd,Ze.prototype.ud=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.I(e,t[n])},Ze.prototype.writeRepeatedBool=Ze.prototype.ud,Ze.prototype.xd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.R(e,t[n])},Ze.prototype.writeRepeatedEnum=Ze.prototype.xd,Ze.prototype.Td=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.U(e,t[n])},Ze.prototype.writeRepeatedString=Ze.prototype.Td,Ze.prototype.vd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.ja(e,t[n])},Ze.prototype.writeRepeatedBytes=Ze.prototype.vd,Ze.prototype.Id=function(e,t,n){if(null!=t)for(var r=0;r<t.length;r++){var o=tt(this,e);n(t[r],this),nt(this,o)}},Ze.prototype.writeRepeatedMessage=Ze.prototype.Id,Ze.prototype.Dd=function(e,t,n){if(null!=t)for(var r=0;r<t.length;r++)rt(this,e,3),n(t[r],this),rt(this,e,4)},Ze.prototype.writeRepeatedGroup=Ze.prototype.Dd,Ze.prototype.Bd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.K(e,t[n])},Ze.prototype.writeRepeatedFixedHash64=Ze.prototype.Bd,Ze.prototype.Yd=function(e,t){if(null!=t)for(var n=0;n<t.length;n++)this.N(e,t[n])},Ze.prototype.writeRepeatedVarintHash64=Ze.prototype.Yd,Ze.prototype.ad=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.M(t[n]);nt(this,e)}},Ze.prototype.writePackedInt32=Ze.prototype.ad,Ze.prototype.bd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.M(parseInt(t[n],10));nt(this,e)}},Ze.prototype.writePackedInt32String=Ze.prototype.bd,Ze.prototype.cd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.ua(t[n]);nt(this,e)}},Ze.prototype.writePackedInt64=Ze.prototype.cd,Ze.prototype.md=function(e,t,n,r){if(null!=t){e=tt(this,e);for(var o=0;o<t.length;o++)this.a.A(n(t[o]),r(t[o]));nt(this,e)}},Ze.prototype.writePackedSplitFixed64=Ze.prototype.md,Ze.prototype.nd=function(e,t,n,r){if(null!=t){e=tt(this,e);for(var o=0;o<t.length;o++)this.a.l(n(t[o]),r(t[o]));nt(this,e)}},Ze.prototype.writePackedSplitVarint64=Ze.prototype.nd,Ze.prototype.od=function(e,t,n,r){if(null!=t){e=tt(this,e);for(var o=this.a,i=0;i<t.length;i++)te(n(t[i]),r(t[i]),(function(e,t){o.l(e>>>0,t>>>0)}));nt(this,e)}},Ze.prototype.writePackedSplitZigzagVarint64=Ze.prototype.od,Ze.prototype.dd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++){var r=Qe(t[n]);this.a.l(r.lo,r.hi)}nt(this,e)}},Ze.prototype.writePackedInt64String=Ze.prototype.dd,Ze.prototype.pd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.j(t[n]);nt(this,e)}},Ze.prototype.writePackedUint32=Ze.prototype.pd,Ze.prototype.qd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.j(parseInt(t[n],10));nt(this,e)}},Ze.prototype.writePackedUint32String=Ze.prototype.qd,Ze.prototype.rd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.va(t[n]);nt(this,e)}},Ze.prototype.writePackedUint64=Ze.prototype.rd,Ze.prototype.sd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++){var r=Xe(t[n]);this.a.l(r.lo,r.hi)}nt(this,e)}},Ze.prototype.writePackedUint64String=Ze.prototype.sd,Ze.prototype.hd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.wa(t[n]);nt(this,e)}},Ze.prototype.writePackedSint32=Ze.prototype.hd,Ze.prototype.jd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.xa(t[n]);nt(this,e)}},Ze.prototype.writePackedSint64=Ze.prototype.jd,Ze.prototype.kd=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.W(ce(t[n]));nt(this,e)}},Ze.prototype.writePackedSint64String=Ze.prototype.kd,Ze.prototype.ld=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.W(t[n]);nt(this,e)}},Ze.prototype.writePackedSintHash64=Ze.prototype.ld,Ze.prototype.Wc=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.s(t[e])},Ze.prototype.writePackedFixed32=Ze.prototype.Wc,Ze.prototype.Xc=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.V(t[e])},Ze.prototype.writePackedFixed64=Ze.prototype.Xc,Ze.prototype.Yc=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++){var n=Xe(t[e]);this.a.A(n.lo,n.hi)}},Ze.prototype.writePackedFixed64String=Ze.prototype.Yc,Ze.prototype.ed=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.S(t[e])},Ze.prototype.writePackedSfixed32=Ze.prototype.ed,Ze.prototype.fd=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.T(t[e])},Ze.prototype.writePackedSfixed64=Ze.prototype.fd,Ze.prototype.gd=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.ka(t[e])},Ze.prototype.writePackedSfixed64String=Ze.prototype.gd,Ze.prototype.$c=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(4*t.length),e=0;e<t.length;e++)this.a.L(t[e])},Ze.prototype.writePackedFloat=Ze.prototype.$c,Ze.prototype.Uc=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.J(t[e])},Ze.prototype.writePackedDouble=Ze.prototype.Uc,Ze.prototype.Tc=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(t.length),e=0;e<t.length;e++)this.a.I(t[e])},Ze.prototype.writePackedBool=Ze.prototype.Tc,Ze.prototype.Vc=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.R(t[n]);nt(this,e)}},Ze.prototype.writePackedEnum=Ze.prototype.Vc,Ze.prototype.Zc=function(e,t){if(null!=t&&t.length)for(rt(this,e,2),this.a.j(8*t.length),e=0;e<t.length;e++)this.a.K(t[e])},Ze.prototype.writePackedFixedHash64=Ze.prototype.Zc,Ze.prototype.td=function(e,t){if(null!=t&&t.length){e=tt(this,e);for(var n=0;n<t.length;n++)this.a.N(t[n]);nt(this,e)}},Ze.prototype.writePackedVarintHash64=Ze.prototype.td,t.debug=qe,t.Map=P,t.Message=Se,t.BinaryReader=ye,t.BinaryWriter=Ze,t.ExtensionFieldInfo=xe,t.ExtensionFieldBinaryInfo=Ce,t.exportSymbol=m,t.inherits=y,t.object={extend:w},t.typeOf=v},75795:function(e,t,n){"use strict";var r=n(70453),o=r("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(i){o=null}e.exports=o},30592:function(e,t,n){"use strict";var r=n(30655),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},80024:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},64039:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,o=n(41333);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},41333:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==r||!0!==i.enumerable)return!1}return!0}},9957:function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(66743);e.exports=i.call(r,o)},87206:function(e){function t(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function n(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&t(e.slice(0,0))}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(t(e)||n(e)||!!e._isBuffer)}},29978:function(e,t,n){var r,o;r=[n(28411),n(38543),n(41382),n(99091),n(5780),n(81628),n(31205),n(9340),n(41074),n(3985),n(76599),n(13040)],o=function(e,t,n,r,o,i,a){"use strict";var s=/%20/g,l=/#.*$/,u=/([?&])_=[^&]*/,c=/^(.*?):[ \t]*([^\r\n]*)$/gm,f=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,d=/^(?:GET|HEAD)$/,h=/^\/\//,p={},v={},g="*/".concat("*"),m=t.createElement("a");function y(e){return function(t,o){"string"!==typeof t&&(o=t,t="*");var i,a=0,s=t.toLowerCase().match(r)||[];if(n(o))while(i=s[a++])"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(o)):(e[i]=e[i]||[]).push(o)}}function b(t,n,r,o){var i={},a=t===v;function s(l){var u;return i[l]=!0,e.each(t[l]||[],(function(e,t){var l=t(n,r,o);return"string"!==typeof l||a||i[l]?a?!(u=l):void 0:(n.dataTypes.unshift(l),s(l),!1)})),u}return s(n.dataTypes[0])||!i["*"]&&s("*")}function w(t,n){var r,o,i=e.ajaxSettings.flatOptions||{};for(r in n)void 0!==n[r]&&((i[r]?t:o||(o={}))[r]=n[r]);return o&&e.extend(!0,t,o),t}function A(e,t,n){var r,o,i,a,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}function x(e,t,n,r){var o,i,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];i=c.shift();while(i)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=c.shift(),i)if("*"===i)i=l;else if("*"!==l&&l!==i){if(a=u[l+" "+i]||u["* "+i],!a)for(o in u)if(s=o.split(" "),s[1]===i&&(a=u[l+" "+s[0]]||u["* "+s[0]],a)){!0===a?a=u[o]:!0!==u[o]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}return m.href=o.href,e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:o.href,type:"GET",isLocal:f.test(o.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":g,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":e.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?w(w(t,e.ajaxSettings),n):w(e.ajaxSettings,t)},ajaxPrefilter:y(p),ajaxTransport:y(v),ajax:function(n,f){"object"===typeof n&&(f=n,n=void 0),f=f||{};var y,w,C,S,_,k,E,O,F,T,P=e.ajaxSetup({},f),N=P.context||P,M=P.context&&(N.nodeType||N.jquery)?e(N):e.event,L=e.Deferred(),I=e.Callbacks("once memory"),R=P.statusCode||{},j={},D={},B="canceled",W={readyState:0,getResponseHeader:function(e){var t;if(E){if(!S){S={};while(t=c.exec(C))S[t[1].toLowerCase()+" "]=(S[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=S[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return E?C:null},setRequestHeader:function(e,t){return null==E&&(e=D[e.toLowerCase()]=D[e.toLowerCase()]||e,j[e]=t),this},overrideMimeType:function(e){return null==E&&(P.mimeType=e),this},statusCode:function(e){var t;if(e)if(E)W.always(e[W.status]);else for(t in e)R[t]=[R[t],e[t]];return this},abort:function(e){var t=e||B;return y&&y.abort(t),z(0,t),this}};if(L.promise(W),P.url=((n||P.url||o.href)+"").replace(h,o.protocol+"//"),P.type=f.method||f.type||P.method||P.type,P.dataTypes=(P.dataType||"*").toLowerCase().match(r)||[""],null==P.crossDomain){k=t.createElement("a");try{k.href=P.url,k.href=k.href,P.crossDomain=m.protocol+"//"+m.host!==k.protocol+"//"+k.host}catch(U){P.crossDomain=!0}}if(P.data&&P.processData&&"string"!==typeof P.data&&(P.data=e.param(P.data,P.traditional)),b(p,P,f,W),E)return W;for(F in O=e.event&&P.global,O&&0===e.active++&&e.event.trigger("ajaxStart"),P.type=P.type.toUpperCase(),P.hasContent=!d.test(P.type),w=P.url.replace(l,""),P.hasContent?P.data&&P.processData&&0===(P.contentType||"").indexOf("application/x-www-form-urlencoded")&&(P.data=P.data.replace(s,"+")):(T=P.url.slice(w.length),P.data&&(P.processData||"string"===typeof P.data)&&(w+=(a.test(w)?"&":"?")+P.data,delete P.data),!1===P.cache&&(w=w.replace(u,"$1"),T=(a.test(w)?"&":"?")+"_="+i.guid+++T),P.url=w+T),P.ifModified&&(e.lastModified[w]&&W.setRequestHeader("If-Modified-Since",e.lastModified[w]),e.etag[w]&&W.setRequestHeader("If-None-Match",e.etag[w])),(P.data&&P.hasContent&&!1!==P.contentType||f.contentType)&&W.setRequestHeader("Content-Type",P.contentType),W.setRequestHeader("Accept",P.dataTypes[0]&&P.accepts[P.dataTypes[0]]?P.accepts[P.dataTypes[0]]+("*"!==P.dataTypes[0]?", "+g+"; q=0.01":""):P.accepts["*"]),P.headers)W.setRequestHeader(F,P.headers[F]);if(P.beforeSend&&(!1===P.beforeSend.call(N,W,P)||E))return W.abort();if(B="abort",I.add(P.complete),W.done(P.success),W.fail(P.error),y=b(v,P,f,W),y){if(W.readyState=1,O&&M.trigger("ajaxSend",[W,P]),E)return W;P.async&&P.timeout>0&&(_=window.setTimeout((function(){W.abort("timeout")}),P.timeout));try{E=!1,y.send(j,z)}catch(U){if(E)throw U;z(-1,U)}}else z(-1,"No Transport");function z(t,n,r,o){var i,a,s,l,u,c=n;E||(E=!0,_&&window.clearTimeout(_),y=void 0,C=o||"",W.readyState=t>0?4:0,i=t>=200&&t<300||304===t,r&&(l=A(P,W,r)),!i&&e.inArray("script",P.dataTypes)>-1&&e.inArray("json",P.dataTypes)<0&&(P.converters["text script"]=function(){}),l=x(P,l,W,i),i?(P.ifModified&&(u=W.getResponseHeader("Last-Modified"),u&&(e.lastModified[w]=u),u=W.getResponseHeader("etag"),u&&(e.etag[w]=u)),204===t||"HEAD"===P.type?c="nocontent":304===t?c="notmodified":(c=l.state,a=l.data,s=l.error,i=!s)):(s=c,!t&&c||(c="error",t<0&&(t=0))),W.status=t,W.statusText=(n||c)+"",i?L.resolveWith(N,[a,c,W]):L.rejectWith(N,[W,c,s]),W.statusCode(R),R=void 0,O&&M.trigger(i?"ajaxSuccess":"ajaxError",[W,P,i?a:s]),I.fireWith(N,[W,c]),O&&(M.trigger("ajaxComplete",[W,P]),--e.active||e.event.trigger("ajaxStop")))}return W},getJSON:function(t,n,r){return e.get(t,n,r,"json")},getScript:function(t,n){return e.get(t,void 0,n,"script")}}),e.each(["get","post"],(function(t,r){e[r]=function(t,o,i,a){return n(o)&&(a=a||i,i=o,o=void 0),e.ajax(e.extend({url:t,type:r,dataType:a,data:o,success:i},e.isPlainObject(t)&&t))}})),e.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),e}.apply(t,r),void 0===o||(e.exports=o)},64139:function(e,t,n){var r,o;r=[n(28411),n(41382),n(81628),n(31205),n(29978)],o=function(e,t,n,r){"use strict";var o=[],i=/(=)\?(?=&|$)|\?\?/;e.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=o.pop()||e.expando+"_"+n.guid++;return this[t]=!0,t}}),e.ajaxPrefilter("json jsonp",(function(n,a,s){var l,u,c,f=!1!==n.jsonp&&(i.test(n.url)?"url":"string"===typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&i.test(n.data)&&"data");if(f||"jsonp"===n.dataTypes[0])return l=n.jsonpCallback=t(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,f?n[f]=n[f].replace(i,"$1"+l):!1!==n.jsonp&&(n.url+=(r.test(n.url)?"&":"?")+n.jsonp+"="+l),n.converters["script json"]=function(){return c||e.error(l+" was not called"),c[0]},n.dataTypes[0]="json",u=window[l],window[l]=function(){c=arguments},s.always((function(){void 0===u?e(window).removeProp(l):window[l]=u,n[l]&&(n.jsonpCallback=a.jsonpCallback,o.push(l)),c&&t(u)&&u(c[0]),c=u=void 0})),"script"}))}.apply(t,r),void 0===o||(e.exports=o)},39165:function(e,t,n){var r,o;r=[n(28411),n(79266),n(41382),n(23814),n(29978),n(82569),n(57957),n(44553)],o=function(e,t,n){"use strict";e.fn.load=function(r,o,i){var a,s,l,u=this,c=r.indexOf(" ");return c>-1&&(a=t(r.slice(c)),r=r.slice(0,c)),n(o)?(i=o,o=void 0):o&&"object"===typeof o&&(s="POST"),u.length>0&&e.ajax({url:r,type:s||"GET",dataType:"html",data:o}).done((function(t){l=arguments,u.html(a?e("<div>").append(e.parseHTML(t)).find(a):t)})).always(i&&function(e,t){u.each((function(){i.apply(this,l||[e.responseText,t,e])}))}),this}}.apply(t,r),void 0===o||(e.exports=o)},48498:function(e,t,n){var r,o;r=[n(28411),n(38543),n(29978)],o=function(e,t){"use strict";e.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),e.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return e.globalEval(t),t}}}),e.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),e.ajaxTransport("script",(function(n){var r,o;if(n.crossDomain||n.scriptAttrs)return{send:function(i,a){r=e("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){r.remove(),o=null,e&&a("error"===e.type?404:200,e.type)}),t.head.appendChild(r[0])},abort:function(){o&&o()}}}))}.apply(t,r),void 0===o||(e.exports=o)},5780:function(e,t,n){var r;r=function(){"use strict";return window.location}.call(t,n,t,e),void 0===r||(e.exports=r)},81628:function(e,t,n){var r;r=function(){"use strict";return{guid:Date.now()}}.call(t,n,t,e),void 0===r||(e.exports=r)},31205:function(e,t,n){var r;r=function(){"use strict";return/\?/}.call(t,n,t,e),void 0===r||(e.exports=r)},64895:function(e,t,n){var r,o;r=[n(28411),n(10107),n(29978)],o=function(e,t){"use strict";e.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(e){}};var n={0:200,1223:204},r=e.ajaxSettings.xhr();t.cors=!!r&&"withCredentials"in r,t.ajax=r=!!r,e.ajaxTransport((function(e){var o,i;if(t.cors||r&&!e.crossDomain)return{send:function(t,r){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)s.setRequestHeader(a,t[a]);o=function(e){return function(){o&&(o=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?r(0,"error"):r(s.status,s.statusText):r(n[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=o(),i=s.onerror=s.ontimeout=o("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&window.setTimeout((function(){o&&i()}))},o=o("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(o)throw l}},abort:function(){o&&o()}}}))}.apply(t,r),void 0===o||(e.exports=o)},95549:function(e,t,n){var r,o;r=[n(28411),n(16439),n(95933),n(19142),n(77065)],o=function(e){"use strict";return e}.apply(t,r),void 0===o||(e.exports=o)},16439:function(e,t,n){var r,o;r=[n(28411),n(6756),n(39773),n(25581),n(99091),n(44553)],o=function(e,t,n,r,o){"use strict";var i,a=e.expr.attrHandle;e.fn.extend({attr:function(n,r){return t(this,e.attr,n,r,arguments.length>1)},removeAttr:function(t){return this.each((function(){e.removeAttr(this,t)}))}}),e.extend({attr:function(t,n,r){var o,a,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return"undefined"===typeof t.getAttribute?e.prop(t,n,r):(1===s&&e.isXMLDoc(t)||(a=e.attrHooks[n.toLowerCase()]||(e.expr.match.bool.test(n)?i:void 0)),void 0!==r?null===r?void e.removeAttr(t,n):a&&"set"in a&&void 0!==(o=a.set(t,r,n))?o:(t.setAttribute(n,r+""),r):a&&"get"in a&&null!==(o=a.get(t,n))?o:(o=e.find.attr(t,n),null==o?void 0:o))},attrHooks:{type:{set:function(e,t){if(!r.radioValue&&"radio"===t&&n(e,"input")){var o=e.value;return e.setAttribute("type",t),o&&(e.value=o),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(o);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),i={set:function(t,n,r){return!1===n?e.removeAttr(t,r):t.setAttribute(r,r),r}},e.each(e.expr.match.bool.source.match(/\w+/g),(function(t,n){var r=a[n]||e.find.attr;a[n]=function(e,t,n){var o,i,s=t.toLowerCase();return n||(i=a[s],a[s]=o,o=null!=r(e,t,n)?s:null,a[s]=i),o}}))}.apply(t,r),void 0===o||(e.exports=o)},19142:function(e,t,n){var r,o;r=[n(28411),n(79266),n(41382),n(99091),n(59192),n(9340)],o=function(e,t,n,r,o){"use strict";function i(e){return e.getAttribute&&e.getAttribute("class")||""}function a(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(r)||[]}e.fn.extend({addClass:function(r){var o,s,l,u,c,f;return n(r)?this.each((function(t){e(this).addClass(r.call(this,t,i(this)))})):(o=a(r),o.length?this.each((function(){if(l=i(this),s=1===this.nodeType&&" "+t(l)+" ",s){for(c=0;c<o.length;c++)u=o[c],s.indexOf(" "+u+" ")<0&&(s+=u+" ");f=t(s),l!==f&&this.setAttribute("class",f)}})):this)},removeClass:function(r){var o,s,l,u,c,f;return n(r)?this.each((function(t){e(this).removeClass(r.call(this,t,i(this)))})):arguments.length?(o=a(r),o.length?this.each((function(){if(l=i(this),s=1===this.nodeType&&" "+t(l)+" ",s){for(c=0;c<o.length;c++){u=o[c];while(s.indexOf(" "+u+" ")>-1)s=s.replace(" "+u+" "," ")}f=t(s),l!==f&&this.setAttribute("class",f)}})):this):this.attr("class","")},toggleClass:function(t,r){var s,l,u,c,f=typeof t,d="string"===f||Array.isArray(t);return n(t)?this.each((function(n){e(this).toggleClass(t.call(this,n,i(this),r),r)})):"boolean"===typeof r&&d?r?this.addClass(t):this.removeClass(t):(s=a(t),this.each((function(){if(d)for(c=e(this),u=0;u<s.length;u++)l=s[u],c.hasClass(l)?c.removeClass(l):c.addClass(l);else void 0!==t&&"boolean"!==f||(l=i(this),l&&o.set(this,"__className__",l),this.setAttribute&&this.setAttribute("class",l||!1===t?"":o.get(this,"__className__")||""))})))},hasClass:function(e){var n,r,o=0;n=" "+e+" ";while(r=this[o++])if(1===r.nodeType&&(" "+t(i(r))+" ").indexOf(n)>-1)return!0;return!1}})}.apply(t,r),void 0===o||(e.exports=o)},95933:function(e,t,n){var r,o;r=[n(28411),n(6756),n(25581),n(44553)],o=function(e,t,n){"use strict";var r=/^(?:input|select|textarea|button)$/i,o=/^(?:a|area)$/i;e.fn.extend({prop:function(n,r){return t(this,e.prop,n,r,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[e.propFix[t]||t]}))}}),e.extend({prop:function(t,n,r){var o,i,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&e.isXMLDoc(t)||(n=e.propFix[n]||n,i=e.propHooks[n]),void 0!==r?i&&"set"in i&&void 0!==(o=i.set(t,r,n))?o:t[n]=r:i&&"get"in i&&null!==(o=i.get(t,n))?o:t[n]},propHooks:{tabIndex:{get:function(t){var n=e.find.attr(t,"tabindex");return n?parseInt(n,10):r.test(t.nodeName)||o.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),n.optSelected||(e.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),e.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){e.propFix[this.toLowerCase()]=this}))}.apply(t,r),void 0===o||(e.exports=o)},25581:function(e,t,n){var r,o;r=[n(38543),n(10107)],o=function(e,t){"use strict";return function(){var n=e.createElement("input"),r=e.createElement("select"),o=r.appendChild(e.createElement("option"));n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=o.selected,n=e.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value}(),t}.apply(t,r),void 0===o||(e.exports=o)},77065:function(e,t,n){var r,o;r=[n(28411),n(79266),n(25581),n(39773),n(41382),n(9340)],o=function(e,t,n,r,o){"use strict";var i=/\r/g;e.fn.extend({val:function(t){var n,r,a,s=this[0];return arguments.length?(a=o(t),this.each((function(r){var o;1===this.nodeType&&(o=a?t.call(this,r,e(this).val()):t,null==o?o="":"number"===typeof o?o+="":Array.isArray(o)&&(o=e.map(o,(function(e){return null==e?"":e+""}))),n=e.valHooks[this.type]||e.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&void 0!==n.set(this,o,"value")||(this.value=o))}))):s?(n=e.valHooks[s.type]||e.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&void 0!==(r=n.get(s,"value"))?r:(r=s.value,"string"===typeof r?r.replace(i,""):null==r?"":r)):void 0}}),e.extend({valHooks:{option:{get:function(n){var r=e.find.attr(n,"value");return null!=r?r:t(e.text(n))}},select:{get:function(t){var n,o,i,a=t.options,s=t.selectedIndex,l="select-one"===t.type,u=l?null:[],c=l?s+1:a.length;for(i=s<0?c:l?s:0;i<c;i++)if(o=a[i],(o.selected||i===s)&&!o.disabled&&(!o.parentNode.disabled||!r(o.parentNode,"optgroup"))){if(n=e(o).val(),l)return n;u.push(n)}return u},set:function(t,n){var r,o,i=t.options,a=e.makeArray(n),s=i.length;while(s--)o=i[s],(o.selected=e.inArray(e.valHooks.option.get(o),a)>-1)&&(r=!0);return r||(t.selectedIndex=-1),a}}}}),e.each(["radio","checkbox"],(function(){e.valHooks[this]={set:function(t,n){if(Array.isArray(n))return t.checked=e.inArray(e(t).val(),n)>-1}},n.checkOn||(e.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}))}.apply(t,r),void 0===o||(e.exports=o)},13682:function(e,t,n){var r,o;r=[n(28411),n(58519),n(41382),n(99091)],o=function(e,t,n,r){"use strict";function o(t){var n={};return e.each(t.match(r)||[],(function(e,t){n[t]=!0})),n}return e.Callbacks=function(r){r="string"===typeof r?o(r):e.extend({},r);var i,a,s,l,u=[],c=[],f=-1,d=function(){for(l=l||r.once,s=i=!0;c.length;f=-1){a=c.shift();while(++f<u.length)!1===u[f].apply(a[0],a[1])&&r.stopOnFalse&&(f=u.length,a=!1)}r.memory||(a=!1),i=!1,l&&(u=a?[]:"")},h={add:function(){return u&&(a&&!i&&(f=u.length-1,c.push(a)),function o(i){e.each(i,(function(e,i){n(i)?r.unique&&h.has(i)||u.push(i):i&&i.length&&"string"!==t(i)&&o(i)}))}(arguments),a&&!i&&d()),this},remove:function(){return e.each(arguments,(function(t,n){var r;while((r=e.inArray(n,u,r))>-1)u.splice(r,1),r<=f&&f--})),this},has:function(t){return t?e.inArray(t,u)>-1:u.length>0},empty:function(){return u&&(u=[]),this},disable:function(){return l=c=[],u=a="",this},disabled:function(){return!u},lock:function(){return l=c=[],a||i||(u=a=""),this},locked:function(){return!!l},fireWith:function(e,t){return l||(t=t||[],t=[e,t.slice?t.slice():t],c.push(t),i||d()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!s}};return h},e}.apply(t,r),void 0===o||(e.exports=o)},28411:function(e,t,n){var r,o;r=[n(12283),n(72332),n(5950),n(88305),n(37298),n(24733),n(78320),n(64122),n(41402),n(12122),n(48928),n(10107),n(41382),n(87346),n(52710),n(58519)],o=function(e,t,n,r,o,i,a,s,l,u,c,f,d,h,p,v){"use strict";var g="3.7.1",m=/HTML$/i,y=function(e,t){return new y.fn.init(e,t)};function b(e){var t=!!e&&"length"in e&&e.length,n=v(e);return!d(e)&&!h(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}return y.fn=y.prototype={jquery:g,constructor:y,length:0,toArray:function(){return n.call(this)},get:function(e){return null==e?n.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=y.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return y.each(this,e)},map:function(e){return this.pushStack(y.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(y.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(y.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:e.sort,splice:e.splice},y.extend=y.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"===typeof a&&(u=a,a=arguments[s]||{},s++),"object"===typeof a||d(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(y.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||y.isPlainObject(n)?n:{},o=!1,a[t]=y.extend(u,i,r)):void 0!==r&&(a[t]=r));return a},y.extend({expando:"jQuery"+(g+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var n,r;return!(!e||"[object Object]"!==s.call(e))&&(n=t(e),!n||(r=l.call(n,"constructor")&&n.constructor,"function"===typeof r&&u.call(r)===c))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){p(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(b(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,o=e.nodeType;if(!o)while(t=e[r++])n+=y.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(b(Object(e))?y.merge(n,"string"===typeof e?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!m.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r,o=[],i=0,a=e.length,s=!n;i<a;i++)r=!t(e[i],i),r!==s&&o.push(e[i]);return o},map:function(e,t,n){var o,i,a=0,s=[];if(b(e))for(o=e.length;a<o;a++)i=t(e[a],a,n),null!=i&&s.push(i);else for(a in e)i=t(e[a],a,n),null!=i&&s.push(i);return r(s)},guid:1,support:f}),"function"===typeof Symbol&&(y.fn[Symbol.iterator]=e[Symbol.iterator]),y.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){a["[object "+t+"]"]=t.toLowerCase()})),y}.apply(t,r),void 0===o||(e.exports=o)},52710:function(e,t,n){var r,o;r=[n(38543)],o=function(e){"use strict";var t={type:!0,src:!0,nonce:!0,noModule:!0};function n(n,r,o){o=o||e;var i,a,s=o.createElement("script");if(s.text=n,r)for(i in t)a=r[i]||r.getAttribute&&r.getAttribute(i),a&&s.setAttribute(i,a);o.head.appendChild(s).parentNode.removeChild(s)}return n}.apply(t,r),void 0===o||(e.exports=o)},6756:function(e,t,n){var r,o;r=[n(28411),n(58519),n(41382)],o=function(e,t,n){"use strict";var r=function(o,i,a,s,l,u,c){var f=0,d=o.length,h=null==a;if("object"===t(a))for(f in l=!0,a)r(o,i,f,a[f],!0,u,c);else if(void 0!==s&&(l=!0,n(s)||(c=!0),h&&(c?(i.call(o,s),i=null):(h=i,i=function(t,n,r){return h.call(e(t),r)})),i))for(;f<d;f++)i(o[f],a,c?s:s.call(o[f],f,i(o[f],a)));return l?o:h?i.call(o):d?i(o[0],a):u};return r}.apply(t,r),void 0===o||(e.exports=o)},69758:function(e,t){var n,r;n=[],r=function(){"use strict";var e=/^-ms-/,t=/-([a-z])/g;function n(e,t){return t.toUpperCase()}function r(r){return r.replace(e,"ms-").replace(t,n)}return r}.apply(t,n),void 0===r||(e.exports=r)},9340:function(e,t,n){var r,o;r=[n(28411),n(38543),n(41382),n(33894),n(68269)],o=function(e,t,n,r){"use strict";var o,i=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,a=e.fn.init=function(a,s,l){var u,c;if(!a)return this;if(l=l||o,"string"===typeof a){if(u="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:i.exec(a),!u||!u[1]&&s)return!s||s.jquery?(s||l).find(a):this.constructor(s).find(a);if(u[1]){if(s=s instanceof e?s[0]:s,e.merge(this,e.parseHTML(u[1],s&&s.nodeType?s.ownerDocument||s:t,!0)),r.test(u[1])&&e.isPlainObject(s))for(u in s)n(this[u])?this[u](s[u]):this.attr(u,s[u]);return this}return c=t.getElementById(u[2]),c&&(this[0]=c,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):n(a)?void 0!==l.ready?l.ready(a):a(e):e.makeArray(a,this)};return a.prototype=e.fn,o=e(t),a}.apply(t,r),void 0===o||(e.exports=o)},45194:function(e,t,n){var r,o;r=[n(28411),n(17623),n(50685)],o=function(e,t){"use strict";var n=function(t){return e.contains(t.ownerDocument,t)},r={composed:!0};return t.getRootNode&&(n=function(t){return e.contains(t.ownerDocument,t)||t.getRootNode(r)===t.ownerDocument}),n}.apply(t,r),void 0===o||(e.exports=o)},39773:function(e,t,n){var r;r=function(){"use strict";function e(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}return e}.call(t,n,t,e),void 0===r||(e.exports=r)},23814:function(e,t,n){var r,o;r=[n(28411),n(38543),n(33894),n(37414),n(10203)],o=function(e,t,n,r,o){"use strict";return e.parseHTML=function(i,a,s){return"string"!==typeof i?[]:("boolean"===typeof a&&(s=a,a=!1),a||(o.createHTMLDocument?(a=t.implementation.createHTMLDocument(""),l=a.createElement("base"),l.href=t.location.href,a.head.appendChild(l)):a=t),u=n.exec(i),c=!s&&[],u?[a.createElement(u[1])]:(u=r([i],a,c),c&&c.length&&e(c).remove(),e.merge([],u.childNodes)));var l,u,c},e.parseHTML}.apply(t,r),void 0===o||(e.exports=o)},41074:function(e,t,n){var r,o;r=[n(28411)],o=function(e){"use strict";return e.parseXML=function(t){var n,r;if(!t||"string"!==typeof t)return null;try{n=(new window.DOMParser).parseFromString(t,"text/xml")}catch(o){}return r=n&&n.getElementsByTagName("parsererror")[0],n&&!r||e.error("Invalid XML: "+(r?e.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),n},e.parseXML}.apply(t,r),void 0===o||(e.exports=o)},1791:function(e,t,n){var r,o;r=[n(28411),n(38543),n(51114),n(76599)],o=function(e,t){"use strict";var n=e.Deferred();function r(){t.removeEventListener("DOMContentLoaded",r),window.removeEventListener("load",r),e.ready()}e.fn.ready=function(t){return n.then(t).catch((function(t){e.readyException(t)})),this},e.extend({isReady:!1,readyWait:1,ready:function(r){(!0===r?--e.readyWait:e.isReady)||(e.isReady=!0,!0!==r&&--e.readyWait>0||n.resolveWith(t,[e]))}}),e.ready.then=n.then,"complete"===t.readyState||"loading"!==t.readyState&&!t.documentElement.doScroll?window.setTimeout(e.ready):(t.addEventListener("DOMContentLoaded",r),window.addEventListener("load",r))}.apply(t,r),void 0===o||(e.exports=o)},51114:function(e,t,n){var r,o;r=[n(28411)],o=function(e){"use strict";e.readyException=function(e){window.setTimeout((function(){throw e}))}}.apply(t,r),void 0===o||(e.exports=o)},79266:function(e,t,n){var r,o;r=[n(99091)],o=function(e){"use strict";function t(t){var n=t.match(e)||[];return n.join(" ")}return t}.apply(t,r),void 0===o||(e.exports=o)},10203:function(e,t,n){var r,o;r=[n(38543),n(10107)],o=function(e,t){"use strict";return t.createHTMLDocument=function(){var t=e.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),t}.apply(t,r),void 0===o||(e.exports=o)},58519:function(e,t,n){var r,o;r=[n(78320),n(64122)],o=function(e,t){"use strict";function n(n){return null==n?n+"":"object"===typeof n||"function"===typeof n?e[t.call(n)]||"object":typeof n}return n}.apply(t,r),void 0===o||(e.exports=o)},33894:function(e,t,n){var r;r=function(){"use strict";return/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i}.call(t,n,t,e),void 0===r||(e.exports=r)},39229:function(e,t,n){var r,o;r=[n(28411),n(6756),n(69758),n(39773),n(60403),n(80945),n(18064),n(51483),n(33934),n(81821),n(89617),n(55748),n(53629),n(70541),n(45744),n(9340),n(1791),n(44553)],o=function(e,t,n,r,o,i,a,s,l,u,c,f,d,h,p){"use strict";var v=/^(none|table(?!-c[ea]).+)/,g={position:"absolute",visibility:"hidden",display:"block"},m={letterSpacing:"0",fontWeight:"400"};function y(e,t,n){var r=o.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function b(t,n,r,o,i,a){var l="width"===n?1:0,u=0,c=0,f=0;if(r===(o?"border":"content"))return 0;for(;l<4;l+=2)"margin"===r&&(f+=e.css(t,r+s[l],!0,i)),o?("content"===r&&(c-=e.css(t,"padding"+s[l],!0,i)),"margin"!==r&&(c-=e.css(t,"border"+s[l]+"Width",!0,i))):(c+=e.css(t,"padding"+s[l],!0,i),"padding"!==r?c+=e.css(t,"border"+s[l]+"Width",!0,i):u+=e.css(t,"border"+s[l]+"Width",!0,i));return!o&&a>=0&&(c+=Math.max(0,Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-a-c-u-.5))||0),c+f}function w(t,n,o){var a=l(t),s=!h.boxSizingReliable()||o,u=s&&"border-box"===e.css(t,"boxSizing",!1,a),f=u,d=c(t,n,a),p="offset"+n[0].toUpperCase()+n.slice(1);if(i.test(d)){if(!o)return d;d="auto"}return(!h.boxSizingReliable()&&u||!h.reliableTrDimensions()&&r(t,"tr")||"auto"===d||!parseFloat(d)&&"inline"===e.css(t,"display",!1,a))&&t.getClientRects().length&&(u="border-box"===e.css(t,"boxSizing",!1,a),f=p in t,f&&(d=t[p])),d=parseFloat(d)||0,d+b(t,n,o||(u?"border":"content"),f,a,d)+"px"}return e.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=c(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,r,i,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var l,u,c,d=n(r),v=a.test(r),g=t.style;if(v||(r=p(d)),c=e.cssHooks[r]||e.cssHooks[d],void 0===i)return c&&"get"in c&&void 0!==(l=c.get(t,!1,s))?l:g[r];u=typeof i,"string"===u&&(l=o.exec(i))&&l[1]&&(i=f(t,r,l),u="number"),null!=i&&i===i&&("number"!==u||v||(i+=l&&l[3]||(e.cssNumber[d]?"":"px")),h.clearCloneStyle||""!==i||0!==r.indexOf("background")||(g[r]="inherit"),c&&"set"in c&&void 0===(i=c.set(t,i,s))||(v?g.setProperty(r,i):g[r]=i))}},css:function(t,r,o,i){var s,l,u,f=n(r),d=a.test(r);return d||(r=p(f)),u=e.cssHooks[r]||e.cssHooks[f],u&&"get"in u&&(s=u.get(t,!0,o)),void 0===s&&(s=c(t,r,i)),"normal"===s&&r in m&&(s=m[r]),""===o||o?(l=parseFloat(s),!0===o||isFinite(l)?l||0:s):s}}),e.each(["height","width"],(function(t,n){e.cssHooks[n]={get:function(t,r,o){if(r)return!v.test(e.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?w(t,n,o):u(t,g,(function(){return w(t,n,o)}))},set:function(t,r,i){var a,s=l(t),u=!h.scrollboxSize()&&"absolute"===s.position,c=u||i,f=c&&"border-box"===e.css(t,"boxSizing",!1,s),d=i?b(t,n,i,f,s):0;return f&&u&&(d-=Math.ceil(t["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(s[n])-b(t,n,"border",!1,s)-.5)),d&&(a=o.exec(r))&&"px"!==(a[3]||"px")&&(t.style[n]=r,r=e.css(t,n)),y(t,r,d)}}})),e.cssHooks.marginLeft=d(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(c(e,"marginLeft"))||e.getBoundingClientRect().left-u(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),e.each({margin:"",padding:"",border:"Width"},(function(t,n){e.cssHooks[t+n]={expand:function(e){for(var r=0,o={},i="string"===typeof e?e.split(" "):[e];r<4;r++)o[t+s[r]+n]=i[r]||i[r-2]||i[0];return o}},"margin"!==t&&(e.cssHooks[t+n].set=y)})),e.fn.extend({css:function(n,r){return t(this,(function(t,n,r){var o,i,a={},s=0;if(Array.isArray(n)){for(o=l(t),i=n.length;s<i;s++)a[n[s]]=e.css(t,n[s],!1,o);return a}return void 0!==r?e.style(t,n,r):e.css(t,n)}),n,r,arguments.length>1)}}),e}.apply(t,r),void 0===o||(e.exports=o)},53629:function(e,t,n){var r;r=function(){"use strict";function e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}return e}.call(t,n,t,e),void 0===r||(e.exports=r)},55748:function(e,t,n){var r,o;r=[n(28411),n(60403)],o=function(e,t){"use strict";function n(n,r,o,i){var a,s,l=20,u=i?function(){return i.cur()}:function(){return e.css(n,r,"")},c=u(),f=o&&o[3]||(e.cssNumber[r]?"":"px"),d=n.nodeType&&(e.cssNumber[r]||"px"!==f&&+c)&&t.exec(e.css(n,r));if(d&&d[3]!==f){c/=2,f=f||d[3],d=+c||1;while(l--)e.style(n,r,d+f),(1-s)*(1-(s=u()/c||.5))<=0&&(l=0),d/=s;d*=2,e.style(n,r,d+f),o=o||[]}return o&&(d=+d||+c||0,a=o[1]?d+(o[1]+1)*o[2]:+o[2],i&&(i.unit=f,i.start=d,i.end=a)),a}return n}.apply(t,r),void 0===o||(e.exports=o)},89617:function(e,t,n){var r,o;r=[n(28411),n(45194),n(48088),n(80945),n(33934),n(18064),n(78919),n(70541)],o=function(e,t,n,r,o,i,a,s){"use strict";function l(l,u,c){var f,d,h,p,v=i.test(u),g=l.style;return c=c||o(l),c&&(p=c.getPropertyValue(u)||c[u],v&&p&&(p=p.replace(a,"$1")||void 0),""!==p||t(l)||(p=e.style(l,u)),!s.pixelBoxStyles()&&r.test(p)&&n.test(u)&&(f=g.width,d=g.minWidth,h=g.maxWidth,g.minWidth=g.maxWidth=g.width=p,p=c.width,g.width=f,g.minWidth=d,g.maxWidth=h)),void 0!==p?p+"":p}return l}.apply(t,r),void 0===o||(e.exports=o)},45744:function(e,t,n){var r,o;r=[n(38543),n(28411)],o=function(e,t){"use strict";var n=["Webkit","Moz","ms"],r=e.createElement("div").style,o={};function i(e){var t=e[0].toUpperCase()+e.slice(1),o=n.length;while(o--)if(e=n[o]+t,e in r)return e}function a(e){var n=t.cssProps[e]||o[e];return n||(e in r?e:o[e]=i(e)||e)}return a}.apply(t,r),void 0===o||(e.exports=o)},41896:function(e,t,n){var r,o;r=[n(28411),n(44553)],o=function(e){"use strict";e.expr.pseudos.hidden=function(t){return!e.expr.pseudos.visible(t)},e.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}}.apply(t,r),void 0===o||(e.exports=o)},4213:function(e,t,n){var r,o;r=[n(28411),n(59192),n(64385)],o=function(e,t,n){"use strict";var r={};function o(t){var n,o=t.ownerDocument,i=t.nodeName,a=r[i];return a||(n=o.body.appendChild(o.createElement(i)),a=e.css(n,"display"),n.parentNode.removeChild(n),"none"===a&&(a="block"),r[i]=a,a)}function i(e,r){for(var i,a,s=[],l=0,u=e.length;l<u;l++)a=e[l],a.style&&(i=a.style.display,r?("none"===i&&(s[l]=t.get(a,"display")||null,s[l]||(a.style.display="")),""===a.style.display&&n(a)&&(s[l]=o(a))):"none"!==i&&(s[l]="none",t.set(a,"display",i)));for(l=0;l<u;l++)null!=s[l]&&(e[l].style.display=s[l]);return e}return e.fn.extend({show:function(){return i(this,!0)},hide:function(){return i(this)},toggle:function(t){return"boolean"===typeof t?t?this.show():this.hide():this.each((function(){n(this)?e(this).show():e(this).hide()}))}}),i}.apply(t,r),void 0===o||(e.exports=o)},70541:function(e,t,n){var r,o;r=[n(28411),n(38543),n(17623),n(10107)],o=function(e,t,n,r){"use strict";return function(){function o(){if(h){d.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",n.appendChild(d).appendChild(h);var e=window.getComputedStyle(h);a="1%"!==e.top,f=12===i(e.marginLeft),h.style.right="60%",u=36===i(e.right),s=36===i(e.width),h.style.position="absolute",l=12===i(h.offsetWidth/3),n.removeChild(d),h=null}}function i(e){return Math.round(parseFloat(e))}var a,s,l,u,c,f,d=t.createElement("div"),h=t.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",r.clearCloneStyle="content-box"===h.style.backgroundClip,e.extend(r,{boxSizingReliable:function(){return o(),s},pixelBoxStyles:function(){return o(),u},pixelPosition:function(){return o(),a},reliableMarginLeft:function(){return o(),f},scrollboxSize:function(){return o(),l},reliableTrDimensions:function(){var e,r,o,i;return null==c&&(e=t.createElement("table"),r=t.createElement("tr"),o=t.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",r.style.cssText="box-sizing:content-box;border:1px solid",r.style.height="1px",o.style.height="9px",o.style.display="block",n.appendChild(e).appendChild(r).appendChild(o),i=window.getComputedStyle(r),c=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===r.offsetHeight,n.removeChild(e)),c}}))}(),r}.apply(t,r),void 0===o||(e.exports=o)},51483:function(e,t,n){var r;r=function(){"use strict";return["Top","Right","Bottom","Left"]}.call(t,n,t,e),void 0===r||(e.exports=r)},33934:function(e,t,n){var r;r=function(){"use strict";return function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=window),t.getComputedStyle(e)}}.call(t,n,t,e),void 0===r||(e.exports=r)},64385:function(e,t,n){var r,o;r=[n(28411),n(45194)],o=function(e,t){"use strict";return function(n,r){return n=r||n,"none"===n.style.display||""===n.style.display&&t(n)&&"none"===e.css(n,"display")}}.apply(t,r),void 0===o||(e.exports=o)},48088:function(e,t,n){var r,o;r=[n(51483)],o=function(e){"use strict";return new RegExp(e.join("|"),"i")}.apply(t,r),void 0===o||(e.exports=o)},18064:function(e,t,n){var r;r=function(){"use strict";return/^--/}.call(t,n,t,e),void 0===r||(e.exports=r)},80945:function(e,t,n){var r,o;r=[n(80210)],o=function(e){"use strict";return new RegExp("^("+e+")(?!px)[a-z%]+$","i")}.apply(t,r),void 0===o||(e.exports=o)},81821:function(e,t,n){var r;r=function(){"use strict";return function(e,t,n){var r,o,i={};for(o in t)i[o]=e.style[o],e.style[o]=t[o];for(o in r=n.call(e),t)e.style[o]=i[o];return r}}.call(t,n,t,e),void 0===r||(e.exports=r)},77076:function(e,t,n){var r,o;r=[n(28411),n(6756),n(69758),n(59192),n(67814)],o=function(e,t,n,r,o){"use strict";var i=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,a=/[A-Z]/g;function s(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:i.test(e)?JSON.parse(e):e)}function l(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(a,"-$&").toLowerCase(),n=e.getAttribute(r),"string"===typeof n){try{n=s(n)}catch(i){}o.set(e,t,n)}else n=void 0;return n}return e.extend({hasData:function(e){return o.hasData(e)||r.hasData(e)},data:function(e,t,n){return o.access(e,t,n)},removeData:function(e,t){o.remove(e,t)},_data:function(e,t,n){return r.access(e,t,n)},_removeData:function(e,t){r.remove(e,t)}}),e.fn.extend({data:function(e,i){var a,s,u,c=this[0],f=c&&c.attributes;if(void 0===e){if(this.length&&(u=o.get(c),1===c.nodeType&&!r.get(c,"hasDataAttrs"))){a=f.length;while(a--)f[a]&&(s=f[a].name,0===s.indexOf("data-")&&(s=n(s.slice(5)),l(c,s,u[s])));r.set(c,"hasDataAttrs",!0)}return u}return"object"===typeof e?this.each((function(){o.set(this,e)})):t(this,(function(t){var n;if(c&&void 0===t)return n=o.get(c,e),void 0!==n?n:(n=l(c,e),void 0!==n?n:void 0);this.each((function(){o.set(this,e,t)}))}),null,i,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){o.remove(this,e)}))}}),e}.apply(t,r),void 0===o||(e.exports=o)},51791:function(e,t,n){var r,o;r=[n(28411),n(69758),n(99091),n(28149)],o=function(e,t,n,r){"use strict";function o(){this.expando=e.expando+o.uid++}return o.uid=1,o.prototype={cache:function(e){var t=e[this.expando];return t||(t={},r(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,n,r){var o,i=this.cache(e);if("string"===typeof n)i[t(n)]=r;else for(o in n)i[t(o)]=n[o];return i},get:function(e,n){return void 0===n?this.cache(e):e[this.expando]&&e[this.expando][t(n)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(r,o){var i,a=r[this.expando];if(void 0!==a){if(void 0!==o){Array.isArray(o)?o=o.map(t):(o=t(o),o=o in a?[o]:o.match(n)||[]),i=o.length;while(i--)delete a[o[i]]}(void 0===o||e.isEmptyObject(a))&&(r.nodeType?r[this.expando]=void 0:delete r[this.expando])}},hasData:function(t){var n=t[this.expando];return void 0!==n&&!e.isEmptyObject(n)}},o}.apply(t,r),void 0===o||(e.exports=o)},28149:function(e,t,n){var r;r=function(){"use strict";return function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}}.call(t,n,t,e),void 0===r||(e.exports=r)},59192:function(e,t,n){var r,o;r=[n(51791)],o=function(e){"use strict";return new e}.apply(t,r),void 0===o||(e.exports=o)},67814:function(e,t,n){var r,o;r=[n(51791)],o=function(e){"use strict";return new e}.apply(t,r),void 0===o||(e.exports=o)},76599:function(e,t,n){var r,o;r=[n(28411),n(41382),n(5950),n(13682)],o=function(e,t,n){"use strict";function r(e){return e}function o(e){throw e}function i(e,n,r,o){var i;try{e&&t(i=e.promise)?i.call(e).done(n).fail(r):e&&t(i=e.then)?i.call(e,n,r):n.apply(void 0,[e].slice(o))}catch(e){r.apply(void 0,[e])}}return e.extend({Deferred:function(n){var i=[["notify","progress",e.Callbacks("memory"),e.Callbacks("memory"),2],["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),0,"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),1,"rejected"]],a="pending",s={state:function(){return a},always:function(){return l.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var n=arguments;return e.Deferred((function(r){e.each(i,(function(e,o){var i=t(n[o[4]])&&n[o[4]];l[o[1]]((function(){var e=i&&i.apply(this,arguments);e&&t(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[o[0]+"With"](this,i?[e]:arguments)}))})),n=null})).promise()},then:function(n,a,s){var l=0;function u(n,i,a,s){return function(){var c=this,f=arguments,d=function(){var e,d;if(!(n<l)){if(e=a.apply(c,f),e===i.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"===typeof e||"function"===typeof e)&&e.then,t(d)?s?d.call(e,u(l,i,r,s),u(l,i,o,s)):(l++,d.call(e,u(l,i,r,s),u(l,i,o,s),u(l,i,r,i.notifyWith))):(a!==r&&(c=void 0,f=[e]),(s||i.resolveWith)(c,f))}},h=s?d:function(){try{d()}catch(t){e.Deferred.exceptionHook&&e.Deferred.exceptionHook(t,h.error),n+1>=l&&(a!==o&&(c=void 0,f=[t]),i.rejectWith(c,f))}};n?h():(e.Deferred.getErrorHook?h.error=e.Deferred.getErrorHook():e.Deferred.getStackHook&&(h.error=e.Deferred.getStackHook()),window.setTimeout(h))}}return e.Deferred((function(e){i[0][3].add(u(0,e,t(s)?s:r,e.notifyWith)),i[1][3].add(u(0,e,t(n)?n:r)),i[2][3].add(u(0,e,t(a)?a:o))})).promise()},promise:function(t){return null!=t?e.extend(t,s):s}},l={};return e.each(i,(function(e,t){var n=t[2],r=t[5];s[t[1]]=n.add,r&&n.add((function(){a=r}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),n.add(t[3].fire),l[t[0]]=function(){return l[t[0]+"With"](this===l?void 0:this,arguments),this},l[t[0]+"With"]=n.fireWith})),s.promise(l),n&&n.call(l,l),l},when:function(r){var o=arguments.length,a=o,s=Array(a),l=n.call(arguments),u=e.Deferred(),c=function(e){return function(t){s[e]=this,l[e]=arguments.length>1?n.call(arguments):t,--o||u.resolveWith(s,l)}};if(o<=1&&(i(r,u.done(c(a)).resolve,u.reject,!o),"pending"===u.state()||t(l[a]&&l[a].then)))return u.then();while(a--)i(l[a],c(a),u.reject);return u.promise()}}),e}.apply(t,r),void 0===o||(e.exports=o)},75850:function(e,t,n){var r,o;r=[n(28411),n(76599)],o=function(e){"use strict";var t=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;e.Deferred.exceptionHook=function(e,n){window.console&&window.console.warn&&e&&t.test(e.name)&&window.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)}}.apply(t,r),void 0===o||(e.exports=o)},96353:function(e,t,n){var r,o;r=[n(28411),n(39773),n(69758),n(58519),n(41382),n(87346),n(5950),n(16962),n(82738)],o=function(e,t,n,r,o,i,a){"use strict";var s=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;e.proxy=function(t,n){var r,i,s;if("string"===typeof n&&(r=t[n],n=t,t=r),o(t))return i=a.call(arguments,2),s=function(){return t.apply(n||this,i.concat(a.call(arguments)))},s.guid=t.guid=t.guid||e.guid++,s},e.holdReady=function(t){t?e.readyWait++:e.ready(!0)},e.isArray=Array.isArray,e.parseJSON=JSON.parse,e.nodeName=t,e.isFunction=o,e.isWindow=i,e.camelCase=n,e.type=r,e.now=Date.now,e.isNumeric=function(t){var n=e.type(t);return("number"===n||"string"===n)&&!isNaN(t-parseFloat(t))},e.trim=function(e){return null==e?"":(e+"").replace(s,"$1")}}.apply(t,r),void 0===o||(e.exports=o)},16962:function(e,t,n){var r,o;r=[n(28411),n(29978),n(68926)],o=function(e){"use strict";e.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,n){e.fn[n]=function(e){return this.on(n,e)}}))}.apply(t,r),void 0===o||(e.exports=o)},82738:function(e,t,n){var r,o;r=[n(28411),n(68926),n(3985)],o=function(e){"use strict";e.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,n){e.fn[n]=function(e,t){return arguments.length>0?this.on(n,null,e,t):this.trigger(n)}}))}.apply(t,r),void 0===o||(e.exports=o)},64041:function(e,t,n){var r,o;r=[n(28411),n(6756),n(87346),n(39229)],o=function(e,t,n){"use strict";return e.each({Height:"height",Width:"width"},(function(r,o){e.each({padding:"inner"+r,content:o,"":"outer"+r},(function(i,a){e.fn[a]=function(s,l){var u=arguments.length&&(i||"boolean"!==typeof s),c=i||(!0===s||!0===l?"margin":"border");return t(this,(function(t,o,i){var s;return n(t)?0===a.indexOf("outer")?t["inner"+r]:t.document.documentElement["client"+r]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+r],s["scroll"+r],t.body["offset"+r],s["offset"+r],s["client"+r])):void 0===i?e.css(t,o,c):e.style(t,o,i,c)}),o,u?s:void 0,u)}}))})),e}.apply(t,r),void 0===o||(e.exports=o)},2512:function(e,t,n){var r,o;r=[n(28411),n(69758),n(38543),n(41382),n(60403),n(99091),n(51483),n(64385),n(55748),n(59192),n(4213),n(9340),n(81801),n(76599),n(82569),n(57957),n(39229),n(44560)],o=function(e,t,n,r,o,i,a,s,l,u,c){"use strict";var f,d,h=/^(?:toggle|show|hide)$/,p=/queueHooks$/;function v(){d&&(!1===n.hidden&&window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,e.fx.interval),e.fx.tick())}function g(){return window.setTimeout((function(){f=void 0})),f=Date.now()}function m(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)n=a[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function y(e,t,n){for(var r,o=(A.tweeners[t]||[]).concat(A.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function b(t,n,r){var o,i,a,l,f,d,p,v,g="width"in n||"height"in n,m=this,b={},w=t.style,A=t.nodeType&&s(t),x=u.get(t,"fxshow");for(o in r.queue||(l=e._queueHooks(t,"fx"),null==l.unqueued&&(l.unqueued=0,f=l.empty.fire,l.empty.fire=function(){l.unqueued||f()}),l.unqueued++,m.always((function(){m.always((function(){l.unqueued--,e.queue(t,"fx").length||l.empty.fire()}))}))),n)if(i=n[o],h.test(i)){if(delete n[o],a=a||"toggle"===i,i===(A?"hide":"show")){if("show"!==i||!x||void 0===x[o])continue;A=!0}b[o]=x&&x[o]||e.style(t,o)}if(d=!e.isEmptyObject(n),d||!e.isEmptyObject(b))for(o in g&&1===t.nodeType&&(r.overflow=[w.overflow,w.overflowX,w.overflowY],p=x&&x.display,null==p&&(p=u.get(t,"display")),v=e.css(t,"display"),"none"===v&&(p?v=p:(c([t],!0),p=t.style.display||p,v=e.css(t,"display"),c([t]))),("inline"===v||"inline-block"===v&&null!=p)&&"none"===e.css(t,"float")&&(d||(m.done((function(){w.display=p})),null==p&&(v=w.display,p="none"===v?"":v)),w.display="inline-block")),r.overflow&&(w.overflow="hidden",m.always((function(){w.overflow=r.overflow[0],w.overflowX=r.overflow[1],w.overflowY=r.overflow[2]}))),d=!1,b)d||(x?"hidden"in x&&(A=x.hidden):x=u.access(t,"fxshow",{display:p}),a&&(x.hidden=!A),A&&c([t],!0),m.done((function(){for(o in A||c([t]),u.remove(t,"fxshow"),b)e.style(t,o,b[o])}))),d=y(A?x[o]:0,o,m),o in x||(x[o]=d.start,A&&(d.end=d.start,d.start=0))}function w(n,r){var o,i,a,s,l;for(o in n)if(i=t(o),a=r[i],s=n[o],Array.isArray(s)&&(a=s[1],s=n[o]=s[0]),o!==i&&(n[i]=s,delete n[o]),l=e.cssHooks[i],l&&"expand"in l)for(o in s=l.expand(s),delete n[i],s)o in n||(n[o]=s[o],r[o]=a);else r[i]=a}function A(t,n,o){var i,a,s=0,l=A.prefilters.length,u=e.Deferred().always((function(){delete c.elem})),c=function(){if(a)return!1;for(var e=f||g(),n=Math.max(0,d.startTime+d.duration-e),r=n/d.duration||0,o=1-r,i=0,s=d.tweens.length;i<s;i++)d.tweens[i].run(o);return u.notifyWith(t,[d,o,n]),o<1&&s?n:(s||u.notifyWith(t,[d,1,0]),u.resolveWith(t,[d]),!1)},d=u.promise({elem:t,props:e.extend({},n),opts:e.extend(!0,{specialEasing:{},easing:e.easing._default},o),originalProperties:n,originalOptions:o,startTime:f||g(),duration:o.duration,tweens:[],createTween:function(n,r){var o=e.Tween(t,d.opts,n,r,d.opts.specialEasing[n]||d.opts.easing);return d.tweens.push(o),o},stop:function(e){var n=0,r=e?d.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)d.tweens[n].run(1);return e?(u.notifyWith(t,[d,1,0]),u.resolveWith(t,[d,e])):u.rejectWith(t,[d,e]),this}}),h=d.props;for(w(h,d.opts.specialEasing);s<l;s++)if(i=A.prefilters[s].call(d,t,h,d.opts),i)return r(i.stop)&&(e._queueHooks(d.elem,d.opts.queue).stop=i.stop.bind(i)),i;return e.map(h,y,d),r(d.opts.start)&&d.opts.start.call(t,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),e.fx.timer(e.extend(c,{elem:t,anim:d,queue:d.opts.queue})),d}return e.Animation=e.extend(A,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return l(n.elem,e,o.exec(t),n),n}]},tweener:function(e,t){r(e)?(t=e,e=["*"]):e=e.match(i);for(var n,o=0,a=e.length;o<a;o++)n=e[o],A.tweeners[n]=A.tweeners[n]||[],A.tweeners[n].unshift(t)},prefilters:[b],prefilter:function(e,t){t?A.prefilters.unshift(e):A.prefilters.push(e)}}),e.speed=function(t,n,o){var i=t&&"object"===typeof t?e.extend({},t):{complete:o||!o&&n||r(t)&&t,duration:t,easing:o&&n||n&&!r(n)&&n};return e.fx.off?i.duration=0:"number"!==typeof i.duration&&(i.duration in e.fx.speeds?i.duration=e.fx.speeds[i.duration]:i.duration=e.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){r(i.old)&&i.old.call(this),i.queue&&e.dequeue(this,i.queue)},i},e.fn.extend({fadeTo:function(e,t,n,r){return this.filter(s).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,n,r,o){var i=e.isEmptyObject(t),a=e.speed(n,r,o),s=function(){var n=A(this,e.extend({},t),a);(i||u.get(this,"finish"))&&n.stop(!0)};return s.finish=s,i||!1===a.queue?this.each(s):this.queue(a.queue,s)},stop:function(t,n,r){var o=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!==typeof t&&(r=n,n=t,t=void 0),n&&this.queue(t||"fx",[]),this.each((function(){var n=!0,i=null!=t&&t+"queueHooks",a=e.timers,s=u.get(this);if(i)s[i]&&s[i].stop&&o(s[i]);else for(i in s)s[i]&&s[i].stop&&p.test(i)&&o(s[i]);for(i=a.length;i--;)a[i].elem!==this||null!=t&&a[i].queue!==t||(a[i].anim.stop(r),n=!1,a.splice(i,1));!n&&r||e.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var n,r=u.get(this),o=r[t+"queue"],i=r[t+"queueHooks"],a=e.timers,s=o?o.length:0;for(r.finish=!0,e.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),n=a.length;n--;)a[n].elem===this&&a[n].queue===t&&(a[n].anim.stop(!0),a.splice(n,1));for(n=0;n<s;n++)o[n]&&o[n].finish&&o[n].finish.call(this);delete r.finish}))}}),e.each(["toggle","show","hide"],(function(t,n){var r=e.fn[n];e.fn[n]=function(e,t,o){return null==e||"boolean"===typeof e?r.apply(this,arguments):this.animate(m(n,!0),e,t,o)}})),e.each({slideDown:m("show"),slideUp:m("hide"),slideToggle:m("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,n){e.fn[t]=function(e,t,r){return this.animate(n,e,t,r)}})),e.timers=[],e.fx.tick=function(){var t,n=0,r=e.timers;for(f=Date.now();n<r.length;n++)t=r[n],t()||r[n]!==t||r.splice(n--,1);r.length||e.fx.stop(),f=void 0},e.fx.timer=function(t){e.timers.push(t),e.fx.start()},e.fx.interval=13,e.fx.start=function(){d||(d=!0,v())},e.fx.stop=function(){d=null},e.fx.speeds={slow:600,fast:200,_default:400},e}.apply(t,r),void 0===o||(e.exports=o)},44560:function(e,t,n){var r,o;r=[n(28411),n(45744),n(39229)],o=function(e,t){"use strict";function n(e,t,r,o,i){return new n.prototype.init(e,t,r,o,i)}e.Tween=n,n.prototype={constructor:n,init:function(t,n,r,o,i,a){this.elem=t,this.prop=r,this.easing=i||e.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=o,this.unit=a||(e.cssNumber[r]?"":"px")},cur:function(){var e=n.propHooks[this.prop];return e&&e.get?e.get(this):n.propHooks._default.get(this)},run:function(t){var r,o=n.propHooks[this.prop];return this.options.duration?this.pos=r=e.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=r=t,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):n.propHooks._default.set(this),this}},n.prototype.init.prototype=n.prototype,n.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=e.css(t.elem,t.prop,""),n&&"auto"!==n?n:0)},set:function(n){e.fx.step[n.prop]?e.fx.step[n.prop](n):1!==n.elem.nodeType||!e.cssHooks[n.prop]&&null==n.elem.style[t(n.prop)]?n.elem[n.prop]=n.now:e.style(n.elem,n.prop,n.now+n.unit)}}},n.propHooks.scrollTop=n.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},e.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},e.fx=n.prototype.init,e.fx.step={}}.apply(t,r),void 0===o||(e.exports=o)},35547:function(e,t,n){var r,o;r=[n(28411),n(44553),n(2512)],o=function(e){"use strict";e.expr.pseudos.animated=function(t){return e.grep(e.timers,(function(e){return t===e.elem})).length}}.apply(t,r),void 0===o||(e.exports=o)},68926:function(e,t,n){var r,o;r=[n(28411),n(38543),n(17623),n(41382),n(99091),n(78404),n(5950),n(28149),n(59192),n(39773),n(9340),n(44553)],o=function(e,t,n,r,o,i,a,s,l,u){"use strict";var c=/^([^.]*)(?:\.(.+)|)/;function f(){return!0}function d(){return!1}function h(t,n,r,o,i,a){var s,l;if("object"===typeof n){for(l in"string"!==typeof r&&(o=o||r,r=void 0),n)h(t,l,r,o,n[l],a);return t}if(null==o&&null==i?(i=r,o=r=void 0):null==i&&("string"===typeof r?(i=o,o=void 0):(i=o,o=r,r=void 0)),!1===i)i=d;else if(!i)return t;return 1===a&&(s=i,i=function(t){return e().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=e.guid++)),t.each((function(){e.event.add(this,n,i,o,r)}))}function p(t,n,r){r?(l.set(t,n,!1),e.event.add(t,n,{namespace:!1,handler:function(t){var r,o=l.get(this,n);if(1&t.isTrigger&&this[n]){if(o)(e.event.special[n]||{}).delegateType&&t.stopPropagation();else if(o=a.call(arguments),l.set(this,n,o),this[n](),r=l.get(this,n),l.set(this,n,!1),o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r}else o&&(l.set(this,n,e.event.trigger(o[0],o.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=f)}})):void 0===l.get(t,n)&&e.event.add(t,n,f)}return e.event={global:{},add:function(t,r,i,a,u){var f,d,h,p,v,g,m,y,b,w,A,x=l.get(t);if(s(t)){i.handler&&(f=i,i=f.handler,u=f.selector),u&&e.find.matchesSelector(n,u),i.guid||(i.guid=e.guid++),(p=x.events)||(p=x.events=Object.create(null)),(d=x.handle)||(d=x.handle=function(n){return"undefined"!==typeof e&&e.event.triggered!==n.type?e.event.dispatch.apply(t,arguments):void 0}),r=(r||"").match(o)||[""],v=r.length;while(v--)h=c.exec(r[v])||[],b=A=h[1],w=(h[2]||"").split(".").sort(),b&&(m=e.event.special[b]||{},b=(u?m.delegateType:m.bindType)||b,m=e.event.special[b]||{},g=e.extend({type:b,origType:A,data:a,handler:i,guid:i.guid,selector:u,needsContext:u&&e.expr.match.needsContext.test(u),namespace:w.join(".")},f),(y=p[b])||(y=p[b]=[],y.delegateCount=0,m.setup&&!1!==m.setup.call(t,a,w,d)||t.addEventListener&&t.addEventListener(b,d)),m.add&&(m.add.call(t,g),g.handler.guid||(g.handler.guid=i.guid)),u?y.splice(y.delegateCount++,0,g):y.push(g),e.event.global[b]=!0)}},remove:function(t,n,r,i,a){var s,u,f,d,h,p,v,g,m,y,b,w=l.hasData(t)&&l.get(t);if(w&&(d=w.events)){n=(n||"").match(o)||[""],h=n.length;while(h--)if(f=c.exec(n[h])||[],m=b=f[1],y=(f[2]||"").split(".").sort(),m){v=e.event.special[m]||{},m=(i?v.delegateType:v.bindType)||m,g=d[m]||[],f=f[2]&&new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=s=g.length;while(s--)p=g[s],!a&&b!==p.origType||r&&r.guid!==p.guid||f&&!f.test(p.namespace)||i&&i!==p.selector&&("**"!==i||!p.selector)||(g.splice(s,1),p.selector&&g.delegateCount--,v.remove&&v.remove.call(t,p));u&&!g.length&&(v.teardown&&!1!==v.teardown.call(t,y,w.handle)||e.removeEvent(t,m,w.handle),delete d[m])}else for(m in d)e.event.remove(t,m+n[h],r,i,!0);e.isEmptyObject(d)&&l.remove(t,"handle events")}},dispatch:function(t){var n,r,o,i,a,s,u=new Array(arguments.length),c=e.event.fix(t),f=(l.get(this,"events")||Object.create(null))[c.type]||[],d=e.event.special[c.type]||{};for(u[0]=c,n=1;n<arguments.length;n++)u[n]=arguments[n];if(c.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,c)){s=e.event.handlers.call(this,c,f),n=0;while((i=s[n++])&&!c.isPropagationStopped()){c.currentTarget=i.elem,r=0;while((a=i.handlers[r++])&&!c.isImmediatePropagationStopped())c.rnamespace&&!1!==a.namespace&&!c.rnamespace.test(a.namespace)||(c.handleObj=a,c.data=a.data,o=((e.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,u),void 0!==o&&!1===(c.result=o)&&(c.preventDefault(),c.stopPropagation()))}return d.postDispatch&&d.postDispatch.call(this,c),c.result}},handlers:function(t,n){var r,o,i,a,s,l=[],u=n.delegateCount,c=t.target;if(u&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(a=[],s={},r=0;r<u;r++)o=n[r],i=o.selector+" ",void 0===s[i]&&(s[i]=o.needsContext?e(i,this).index(c)>-1:e.find(i,this,null,[c]).length),s[i]&&a.push(o);a.length&&l.push({elem:c,handlers:a})}return c=this,u<n.length&&l.push({elem:c,handlers:n.slice(u)}),l},addProp:function(t,n){Object.defineProperty(e.Event.prototype,t,{enumerable:!0,configurable:!0,get:r(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[e.expando]?t:new e.Event(t)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return i.test(t.type)&&t.click&&u(t,"input")&&p(t,"click",!0),!1},trigger:function(e){var t=this||e;return i.test(t.type)&&t.click&&u(t,"input")&&p(t,"click"),!0},_default:function(e){var t=e.target;return i.test(t.type)&&t.click&&u(t,"input")&&l.get(t,"click")||u(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},e.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},e.Event=function(t,n){if(!(this instanceof e.Event))return new e.Event(t,n);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?f:d,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,n&&e.extend(this,n),this.timeStamp=t&&t.timeStamp||Date.now(),this[e.expando]=!0},e.Event.prototype={constructor:e.Event,isDefaultPrevented:d,isPropagationStopped:d,isImmediatePropagationStopped:d,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},e.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},e.event.addProp),e.each({focus:"focusin",blur:"focusout"},(function(n,r){function o(n){if(t.documentMode){var o=l.get(this,"handle"),i=e.event.fix(n);i.type="focusin"===n.type?"focus":"blur",i.isSimulated=!0,o(n),i.target===i.currentTarget&&o(i)}else e.event.simulate(r,n.target,e.event.fix(n))}e.event.special[n]={setup:function(){var e;if(p(this,n,!0),!t.documentMode)return!1;e=l.get(this,r),e||this.addEventListener(r,o),l.set(this,r,(e||0)+1)},trigger:function(){return p(this,n),!0},teardown:function(){var e;if(!t.documentMode)return!1;e=l.get(this,r)-1,e?l.set(this,r,e):(this.removeEventListener(r,o),l.remove(this,r))},_default:function(e){return l.get(e.target,n)},delegateType:r},e.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,i=t.documentMode?this:e,a=l.get(i,r);a||(t.documentMode?this.addEventListener(r,o):e.addEventListener(n,o,!0)),l.set(i,r,(a||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,i=t.documentMode?this:e,a=l.get(i,r)-1;a?l.set(i,r,a):(t.documentMode?this.removeEventListener(r,o):e.removeEventListener(n,o,!0),l.remove(i,r))}}})),e.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var r,o=this,i=t.relatedTarget,a=t.handleObj;return i&&(i===o||e.contains(o,i))||(t.type=a.origType,r=a.handler.apply(this,arguments),t.type=n),r}}})),e.fn.extend({on:function(e,t,n,r){return h(this,e,t,n,r)},one:function(e,t,n,r){return h(this,e,t,n,r,1)},off:function(t,n,r){var o,i;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,e(t.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"===typeof t){for(i in t)this.off(i,n,t[i]);return this}return!1!==n&&"function"!==typeof n||(r=n,n=void 0),!1===r&&(r=d),this.each((function(){e.event.remove(this,t,r,n)}))}}),e}.apply(t,r),void 0===o||(e.exports=o)},3985:function(e,t,n){var r,o;r=[n(28411),n(38543),n(59192),n(28149),n(41402),n(41382),n(87346),n(68926)],o=function(e,t,n,r,o,i,a){"use strict";var s=/^(?:focusinfocus|focusoutblur)$/,l=function(e){e.stopPropagation()};return e.extend(e.event,{trigger:function(u,c,f,d){var h,p,v,g,m,y,b,w,A=[f||t],x=o.call(u,"type")?u.type:u,C=o.call(u,"namespace")?u.namespace.split("."):[];if(p=w=v=f=f||t,3!==f.nodeType&&8!==f.nodeType&&!s.test(x+e.event.triggered)&&(x.indexOf(".")>-1&&(C=x.split("."),x=C.shift(),C.sort()),m=x.indexOf(":")<0&&"on"+x,u=u[e.expando]?u:new e.Event(x,"object"===typeof u&&u),u.isTrigger=d?2:3,u.namespace=C.join("."),u.rnamespace=u.namespace?new RegExp("(^|\\.)"+C.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=void 0,u.target||(u.target=f),c=null==c?[u]:e.makeArray(c,[u]),b=e.event.special[x]||{},d||!b.trigger||!1!==b.trigger.apply(f,c))){if(!d&&!b.noBubble&&!a(f)){for(g=b.delegateType||x,s.test(g+x)||(p=p.parentNode);p;p=p.parentNode)A.push(p),v=p;v===(f.ownerDocument||t)&&A.push(v.defaultView||v.parentWindow||window)}h=0;while((p=A[h++])&&!u.isPropagationStopped())w=p,u.type=h>1?g:b.bindType||x,y=(n.get(p,"events")||Object.create(null))[u.type]&&n.get(p,"handle"),y&&y.apply(p,c),y=m&&p[m],y&&y.apply&&r(p)&&(u.result=y.apply(p,c),!1===u.result&&u.preventDefault());return u.type=x,d||u.isDefaultPrevented()||b._default&&!1!==b._default.apply(A.pop(),c)||!r(f)||m&&i(f[x])&&!a(f)&&(v=f[m],v&&(f[m]=null),e.event.triggered=x,u.isPropagationStopped()&&w.addEventListener(x,l),f[x](),u.isPropagationStopped()&&w.removeEventListener(x,l),e.event.triggered=void 0,v&&(f[m]=v)),u.result}},simulate:function(t,n,r){var o=e.extend(new e.Event,r,{type:t,isSimulated:!0});e.event.trigger(o,null,n)}}),e.fn.extend({trigger:function(t,n){return this.each((function(){e.event.trigger(t,n,this)}))},triggerHandler:function(t,n){var r=this[0];if(r)return e.event.trigger(t,n,r,!0)}}),e}.apply(t,r),void 0===o||(e.exports=o)},80336:function(e,t,n){var r,o;r=[n(28411)],o=function(n){"use strict";r=[],o=function(){return n}.apply(t,r),void 0===o||(e.exports=o)}.apply(t,r),void 0===o||(e.exports=o)},92155:function(e,t,n){var r,o;r=[n(28411)],o=function(e){"use strict";var t=window.jQuery,n=window.$;e.noConflict=function(r){return window.$===e&&(window.$=n),r&&window.jQuery===e&&(window.jQuery=t),e},"undefined"===typeof noGlobal&&(window.jQuery=window.$=e)}.apply(t,r),void 0===o||(e.exports=o)},82726:function(e,t,n){var r,o;r=[n(28411),n(44553),n(82569),n(13682),n(76599),n(75850),n(1791),n(77076),n(81801),n(10981),n(95549),n(68926),n(57957),n(1580),n(75868),n(39229),n(41896),n(13040),n(29978),n(64895),n(48498),n(64139),n(39165),n(41074),n(23814),n(2512),n(35547),n(27651),n(64041),n(96353),n(80336),n(92155)],o=function(e){"use strict";return e}.apply(t,r),void 0===o||(e.exports=o)},57957:function(e,t,n){var r,o;r=[n(28411),n(45194),n(88305),n(41382),n(37298),n(78404),n(6756),n(80211),n(31193),n(81044),n(14143),n(40759),n(37414),n(74773),n(59192),n(67814),n(28149),n(52710),n(39773),n(9340),n(82569),n(44553),n(68926)],o=function(e,t,n,r,o,i,a,s,l,u,c,f,d,h,p,v,g,m,y){"use strict";var b=/<script|<style|<link/i,w=/checked\s*(?:[^=]|=\s*.checked.)/i,A=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function x(t,n){return y(t,"table")&&y(11!==n.nodeType?n:n.firstChild,"tr")&&e(t).children("tbody")[0]||t}function C(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function S(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function _(t,n){var r,o,i,a,s,l,u;if(1===n.nodeType){if(p.hasData(t)&&(a=p.get(t),u=a.events,u))for(i in p.remove(n,"handle events"),u)for(r=0,o=u[i].length;r<o;r++)e.event.add(n,i,u[i][r]);v.hasData(t)&&(s=v.access(t),l=e.extend({},s),v.set(n,l))}}function k(e,t){var n=t.nodeName.toLowerCase();"input"===n&&i.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function E(t,o,i,a){o=n(o);var s,u,f,v,g,y,b=0,x=t.length,_=x-1,k=o[0],O=r(k);if(O||x>1&&"string"===typeof k&&!h.checkClone&&w.test(k))return t.each((function(e){var n=t.eq(e);O&&(o[0]=k.call(this,e,n.html())),E(n,o,i,a)}));if(x&&(s=d(o,t[0].ownerDocument,!1,t,a),u=s.firstChild,1===s.childNodes.length&&(s=u),u||a)){for(f=e.map(c(s,"script"),C),v=f.length;b<x;b++)g=s,b!==_&&(g=e.clone(g,!0,!0),v&&e.merge(f,c(g,"script"))),i.call(t[b],g,b);if(v)for(y=f[f.length-1].ownerDocument,e.map(f,S),b=0;b<v;b++)g=f[b],l.test(g.type||"")&&!p.access(g,"globalEval")&&e.contains(y,g)&&(g.src&&"module"!==(g.type||"").toLowerCase()?e._evalUrl&&!g.noModule&&e._evalUrl(g.src,{nonce:g.nonce||g.getAttribute("nonce")},y):m(g.textContent.replace(A,""),g,y))}return t}function O(n,r,o){for(var i,a=r?e.filter(r,n):n,s=0;null!=(i=a[s]);s++)o||1!==i.nodeType||e.cleanData(c(i)),i.parentNode&&(o&&t(i)&&f(c(i,"script")),i.parentNode.removeChild(i));return n}return e.extend({htmlPrefilter:function(e){return e},clone:function(n,r,o){var i,a,s,l,u=n.cloneNode(!0),d=t(n);if(!h.noCloneChecked&&(1===n.nodeType||11===n.nodeType)&&!e.isXMLDoc(n))for(l=c(u),s=c(n),i=0,a=s.length;i<a;i++)k(s[i],l[i]);if(r)if(o)for(s=s||c(n),l=l||c(u),i=0,a=s.length;i<a;i++)_(s[i],l[i]);else _(n,u);return l=c(u,"script"),l.length>0&&f(l,!d&&c(n,"script")),u},cleanData:function(t){for(var n,r,o,i=e.event.special,a=0;void 0!==(r=t[a]);a++)if(g(r)){if(n=r[p.expando]){if(n.events)for(o in n.events)i[o]?e.event.remove(r,o):e.removeEvent(r,o,n.handle);r[p.expando]=void 0}r[v.expando]&&(r[v.expando]=void 0)}}}),e.fn.extend({detach:function(e){return O(this,e,!0)},remove:function(e){return O(this,e)},text:function(t){return a(this,(function(t){return void 0===t?e.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return E(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=x(this,e);t.appendChild(e)}}))},prepend:function(){return E(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=x(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return E(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return E(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var t,n=0;null!=(t=this[n]);n++)1===t.nodeType&&(e.cleanData(c(t,!1)),t.textContent="");return this},clone:function(t,n){return t=null!=t&&t,n=null==n?t:n,this.map((function(){return e.clone(this,t,n)}))},html:function(t){return a(this,(function(t){var n=this[0]||{},r=0,o=this.length;if(void 0===t&&1===n.nodeType)return n.innerHTML;if("string"===typeof t&&!b.test(t)&&!u[(s.exec(t)||["",""])[1].toLowerCase()]){t=e.htmlPrefilter(t);try{for(;r<o;r++)n=this[r]||{},1===n.nodeType&&(e.cleanData(c(n,!1)),n.innerHTML=t);n=0}catch(i){}}n&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return E(this,arguments,(function(n){var r=this.parentNode;e.inArray(this,t)<0&&(e.cleanData(c(this)),r&&r.replaceChild(n,this))}),t)}}),e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,n){e.fn[t]=function(t){for(var r,i=[],a=e(t),s=a.length-1,l=0;l<=s;l++)r=l===s?this:this.clone(!0),e(a[l])[n](r),o.apply(i,r.get());return this.pushStack(i)}})),e}.apply(t,r),void 0===o||(e.exports=o)},1580:function(e,t,n){var r,o;r=[n(29978)],o=function(e){"use strict";return e._evalUrl=function(t,n,r){return e.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){e.globalEval(t,n,r)}})},e._evalUrl}.apply(t,r),void 0===o||(e.exports=o)},37414:function(e,t,n){var r,o;r=[n(28411),n(58519),n(45194),n(80211),n(31193),n(81044),n(14143),n(40759)],o=function(e,t,n,r,o,i,a,s){"use strict";var l=/<|&#?\w+;/;function u(u,c,f,d,h){for(var p,v,g,m,y,b,w=c.createDocumentFragment(),A=[],x=0,C=u.length;x<C;x++)if(p=u[x],p||0===p)if("object"===t(p))e.merge(A,p.nodeType?[p]:p);else if(l.test(p)){v=v||w.appendChild(c.createElement("div")),g=(r.exec(p)||["",""])[1].toLowerCase(),m=i[g]||i._default,v.innerHTML=m[1]+e.htmlPrefilter(p)+m[2],b=m[0];while(b--)v=v.lastChild;e.merge(A,v.childNodes),v=w.firstChild,v.textContent=""}else A.push(c.createTextNode(p));w.textContent="",x=0;while(p=A[x++])if(d&&e.inArray(p,d)>-1)h&&h.push(p);else if(y=n(p),v=a(w.appendChild(p),"script"),y&&s(v),f){b=0;while(p=v[b++])o.test(p.type||"")&&f.push(p)}return w}return u}.apply(t,r),void 0===o||(e.exports=o)},14143:function(e,t,n){var r,o;r=[n(28411),n(39773)],o=function(e,t){"use strict";function n(n,r){var o;return o="undefined"!==typeof n.getElementsByTagName?n.getElementsByTagName(r||"*"):"undefined"!==typeof n.querySelectorAll?n.querySelectorAll(r||"*"):[],void 0===r||r&&t(n,r)?e.merge([n],o):o}return n}.apply(t,r),void 0===o||(e.exports=o)},40759:function(e,t,n){var r,o;r=[n(59192)],o=function(e){"use strict";function t(t,n){for(var r=0,o=t.length;r<o;r++)e.set(t[r],"globalEval",!n||e.get(n[r],"globalEval"))}return t}.apply(t,r),void 0===o||(e.exports=o)},74773:function(e,t,n){var r,o;r=[n(38543),n(10107)],o=function(e,t){"use strict";return function(){var n=e.createDocumentFragment(),r=n.appendChild(e.createElement("div")),o=e.createElement("input");o.setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),r.appendChild(o),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,r.innerHTML="<textarea>x</textarea>",t.noCloneChecked=!!r.cloneNode(!0).lastChild.defaultValue,r.innerHTML="<option></option>",t.option=!!r.lastChild}(),t}.apply(t,r),void 0===o||(e.exports=o)},31193:function(e,t,n){var r;r=function(){"use strict";return/^$|^module$|\/(?:java|ecma)script/i}.call(t,n,t,e),void 0===r||(e.exports=r)},80211:function(e,t,n){var r;r=function(){"use strict";return/<([a-z][^\/\0>\x20\t\r\n\f]*)/i}.call(t,n,t,e),void 0===r||(e.exports=r)},81044:function(e,t,n){var r,o;r=[n(74773)],o=function(e){"use strict";var t={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};return t.tbody=t.tfoot=t.colgroup=t.caption=t.thead,t.th=t.td,e.option||(t.optgroup=t.option=[1,"<select multiple='multiple'>","</select>"]),t}.apply(t,r),void 0===o||(e.exports=o)},27651:function(e,t,n){var r,o;r=[n(28411),n(6756),n(17623),n(41382),n(80945),n(89617),n(53629),n(70541),n(87346),n(9340),n(39229),n(44553)],o=function(e,t,n,r,o,i,a,s,l){"use strict";return e.offset={setOffset:function(t,n,o){var i,a,s,l,u,c,f,d=e.css(t,"position"),h=e(t),p={};"static"===d&&(t.style.position="relative"),u=h.offset(),s=e.css(t,"top"),c=e.css(t,"left"),f=("absolute"===d||"fixed"===d)&&(s+c).indexOf("auto")>-1,f?(i=h.position(),l=i.top,a=i.left):(l=parseFloat(s)||0,a=parseFloat(c)||0),r(n)&&(n=n.call(t,o,e.extend({},u))),null!=n.top&&(p.top=n.top-u.top+l),null!=n.left&&(p.left=n.left-u.left+a),"using"in n?n.using.call(t,p):h.css(p)}},e.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(n){e.offset.setOffset(this,t,n)}));var n,r,o=this[0];return o?o.getClientRects().length?(n=o.getBoundingClientRect(),r=o.ownerDocument.defaultView,{top:n.top+r.pageYOffset,left:n.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,n,r,o=this[0],i={top:0,left:0};if("fixed"===e.css(o,"position"))n=o.getBoundingClientRect();else{n=this.offset(),r=o.ownerDocument,t=o.offsetParent||r.documentElement;while(t&&(t===r.body||t===r.documentElement)&&"static"===e.css(t,"position"))t=t.parentNode;t&&t!==o&&1===t.nodeType&&(i=e(t).offset(),i.top+=e.css(t,"borderTopWidth",!0),i.left+=e.css(t,"borderLeftWidth",!0))}return{top:n.top-i.top-e.css(o,"marginTop",!0),left:n.left-i.left-e.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var t=this.offsetParent;while(t&&"static"===e.css(t,"position"))t=t.offsetParent;return t||n}))}}),e.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(n,r){var o="pageYOffset"===r;e.fn[n]=function(e){return t(this,(function(e,t,n){var i;if(l(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n}),n,e,arguments.length)}})),e.each(["top","left"],(function(t,n){e.cssHooks[n]=a(s.pixelPosition,(function(t,r){if(r)return r=i(t,n),o.test(r)?e(t).position()[n]+"px":r}))})),e}.apply(t,r),void 0===o||(e.exports=o)},81801:function(e,t,n){var r,o;r=[n(28411),n(59192),n(76599),n(13682)],o=function(e,t){"use strict";return e.extend({queue:function(n,r,o){var i;if(n)return r=(r||"fx")+"queue",i=t.get(n,r),o&&(!i||Array.isArray(o)?i=t.access(n,r,e.makeArray(o)):i.push(o)),i||[]},dequeue:function(t,n){n=n||"fx";var r=e.queue(t,n),o=r.length,i=r.shift(),a=e._queueHooks(t,n),s=function(){e.dequeue(t,n)};"inprogress"===i&&(i=r.shift(),o--),i&&("fx"===n&&r.unshift("inprogress"),delete a.stop,i.call(t,s,a)),!o&&a&&a.empty.fire()},_queueHooks:function(n,r){var o=r+"queueHooks";return t.get(n,o)||t.access(n,o,{empty:e.Callbacks("once memory").add((function(){t.remove(n,[r+"queue",o])}))})}}),e.fn.extend({queue:function(t,n){var r=2;return"string"!==typeof t&&(n=t,t="fx",r--),arguments.length<r?e.queue(this[0],t):void 0===n?this:this.each((function(){var r=e.queue(this,t,n);e._queueHooks(this,t),"fx"===t&&"inprogress"!==r[0]&&e.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){e.dequeue(this,t)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(n,r){var o,i=1,a=e.Deferred(),s=this,l=this.length,u=function(){--i||a.resolveWith(s,[s])};"string"!==typeof n&&(r=n,n=void 0),n=n||"fx";while(l--)o=t.get(s[l],n+"queueHooks"),o&&o.empty&&(i++,o.empty.add(u));return u(),a.promise(r)}}),e}.apply(t,r),void 0===o||(e.exports=o)},10981:function(e,t,n){var r,o;r=[n(28411),n(81801),n(2512)],o=function(e){"use strict";return e.fn.delay=function(t,n){return t=e.fx&&e.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(e,n){var r=window.setTimeout(e,t);n.stop=function(){window.clearTimeout(r)}}))},e.fn.delay}.apply(t,r),void 0===o||(e.exports=o)},44553:function(e,t,n){var r,o;r=[n(28411),n(39773),n(12283),n(38543),n(24733),n(41402),n(57507),n(37298),n(5950),n(99518),n(21338),n(69619),n(78919),n(10107),n(50685),n(67410)],o=function(e,t,n,r,o,i,a,s,l,u,c,f,d,h){"use strict";var p=r,v=s;(function(){var r,s,g,m,y,b,w,A,x,C,S=v,_=e.expando,k=0,E=0,O=ee(),F=ee(),T=ee(),P=ee(),N=function(e,t){return e===t&&(y=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+f+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+f+"*("+L+")(?:"+f+"*([*^$|!~]?=)"+f+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+f+"*\\]",R=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",j=new RegExp(f+"+","g"),D=new RegExp("^"+f+"*,"+f+"*"),B=new RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),W=new RegExp(f+"|>"),z=new RegExp(R),U=new RegExp("^"+L+"$"),K={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+f+"?|\\\\([^\\r\\n\\f])","g"),$=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},X=function(){le()},J=de((function(e){return!0===e.disabled&&t(e,"fieldset")}),{dir:"parentNode",next:"legend"});function Q(){try{return b.activeElement}catch(e){}}try{S.apply(n=l.call(p.childNodes),p.childNodes),n[p.childNodes.length].nodeType}catch(Ae){S={apply:function(e,t){v.apply(e,l.call(t))},call:function(e){v.apply(e,l.call(arguments,1))}}}function Z(t,n,r,o){var i,a,s,l,u,c,f,p=n&&n.ownerDocument,v=n?n.nodeType:9;if(r=r||[],"string"!==typeof t||!t||1!==v&&9!==v&&11!==v)return r;if(!o&&(le(n),n=n||b,A)){if(11!==v&&(u=q.exec(t)))if(i=u[1]){if(9===v){if(!(s=n.getElementById(i)))return r;if(s.id===i)return S.call(r,s),r}else if(p&&(s=p.getElementById(i))&&Z.contains(n,s)&&s.id===i)return S.call(r,s),r}else{if(u[2])return S.apply(r,n.getElementsByTagName(t)),r;if((i=u[3])&&n.getElementsByClassName)return S.apply(r,n.getElementsByClassName(i)),r}if(!P[t+" "]&&(!x||!x.test(t))){if(f=t,p=n,1===v&&(W.test(t)||B.test(t))){p=G.test(t)&&se(n.parentNode)||n,p==n&&h.scope||((l=n.getAttribute("id"))?l=e.escapeSelector(l):n.setAttribute("id",l=_)),c=ce(t),a=c.length;while(a--)c[a]=(l?"#"+l:":scope")+" "+fe(c[a]);f=c.join(",")}try{return S.apply(r,p.querySelectorAll(f)),r}catch(g){P(t,!0)}finally{l===_&&n.removeAttribute("id")}}}return we(t.replace(d,"$1"),n,r,o)}function ee(){var e=[];function t(n,r){return e.push(n+" ")>s.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function te(e){return e[_]=!0,e}function ne(e){var t=b.createElement("fieldset");try{return!!e(t)}catch(Ae){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(n){return t(n,"input")&&n.type===e}}function oe(e){return function(n){return(t(n,"input")||t(n,"button"))&&n.type===e}}function ie(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){var o,i=e([],n.length,t),a=i.length;while(a--)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function se(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}function le(t){var n,r=t?t.ownerDocument||t:p;return r!=b&&9===r.nodeType&&r.documentElement?(b=r,w=b.documentElement,A=!e.isXMLDoc(b),C=w.matches||w.webkitMatchesSelector||w.msMatchesSelector,w.msMatchesSelector&&p!=b&&(n=b.defaultView)&&n.top!==n&&n.addEventListener("unload",X),h.getById=ne((function(t){return w.appendChild(t).id=e.expando,!b.getElementsByName||!b.getElementsByName(e.expando).length})),h.disconnectedMatch=ne((function(e){return C.call(e,"*")})),h.scope=ne((function(){return b.querySelectorAll(":scope")})),h.cssHas=ne((function(){try{return b.querySelector(":has(*,:jqfake)"),!1}catch(Ae){return!0}})),h.getById?(s.filter.ID=function(e){var t=e.replace(Y,$);return function(e){return e.getAttribute("id")===t}},s.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&A){var n=t.getElementById(e);return n?[n]:[]}}):(s.filter.ID=function(e){var t=e.replace(Y,$);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},s.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&A){var n,r,o,i=t.getElementById(e);if(i){if(n=i.getAttributeNode("id"),n&&n.value===e)return[i];o=t.getElementsByName(e),r=0;while(i=o[r++])if(n=i.getAttributeNode("id"),n&&n.value===e)return[i]}return[]}}),s.find.TAG=function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},s.find.CLASS=function(e,t){if("undefined"!==typeof t.getElementsByClassName&&A)return t.getElementsByClassName(e)},x=[],ne((function(e){var t;w.appendChild(e).innerHTML="<a id='"+_+"' href='' disabled='disabled'></a><select id='"+_+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||x.push("\\["+f+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+_+"-]").length||x.push("~="),e.querySelectorAll("a#"+_+"+*").length||x.push(".#.+[+~]"),e.querySelectorAll(":checked").length||x.push(":checked"),t=b.createElement("input"),t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),w.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&x.push(":enabled",":disabled"),t=b.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||x.push("\\["+f+"*name"+f+"*="+f+"*(?:''|\"\")")})),h.cssHas||x.push(":has"),x=x.length&&new RegExp(x.join("|")),N=function(e,t){if(e===t)return y=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!h.sortDetached&&t.compareDocumentPosition(e)===n?e===b||e.ownerDocument==p&&Z.contains(p,e)?-1:t===b||t.ownerDocument==p&&Z.contains(p,t)?1:m?o.call(m,e)-o.call(m,t):0:4&n?-1:1)},b):b}for(r in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),A&&!P[t+" "]&&(!x||!x.test(t)))try{var n=C.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Ae){P(t,!0)}return Z(t,b,null,[e]).length>0},Z.contains=function(t,n){return(t.ownerDocument||t)!=b&&le(t),e.contains(t,n)},Z.attr=function(e,t){(e.ownerDocument||e)!=b&&le(e);var n=s.attrHandle[t.toLowerCase()],r=n&&i.call(s.attrHandle,t.toLowerCase())?n(e,t,!A):void 0;return void 0!==r?r:e.getAttribute(t)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},e.uniqueSort=function(e){var t,n=[],r=0,o=0;if(y=!h.sortStable,m=!h.sortStable&&l.call(e,0),u.call(e,N),y){while(t=e[o++])t===e[o]&&(r=n.push(o));while(r--)c.call(e,n[r],1)}return m=null,e},e.fn.uniqueSort=function(){return this.pushStack(e.uniqueSort(l.apply(this)))},s=e.expr={cacheLength:50,createPseudo:te,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,$),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,$),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(Y,$).toLowerCase();return"*"===e?function(){return!0}:function(e){return t(e,n)}},CLASS:function(e){var t=O[e+" "];return t||(t=new RegExp("(^|"+f+")"+e+"("+f+"|$)"))&&O(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=Z.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(j," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,n,r,o,i){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),l="of-type"===n;return 1===o&&0===i?function(e){return!!e.parentNode}:function(n,r,u){var c,f,d,h,p,v=a!==s?"nextSibling":"previousSibling",g=n.parentNode,m=l&&n.nodeName.toLowerCase(),y=!u&&!l,b=!1;if(g){if(a){while(v){d=n;while(d=d[v])if(l?t(d,m):1===d.nodeType)return!1;p=v="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&y){f=g[_]||(g[_]={}),c=f[e]||[],h=c[0]===k&&c[1],b=h&&c[2],d=h&&g.childNodes[h];while(d=++h&&d&&d[v]||(b=h=0)||p.pop())if(1===d.nodeType&&++b&&d===n){f[e]=[k,h,b];break}}else if(y&&(f=n[_]||(n[_]={}),c=f[e]||[],h=c[0]===k&&c[1],b=h),!1===b)while(d=++h&&d&&d[v]||(b=h=0)||p.pop())if((l?t(d,m):1===d.nodeType)&&++b&&(y&&(f=d[_]||(d[_]={}),f[e]=[k,b]),d===n))break;return b-=i,b===o||b%o===0&&b/o>=0}}},PSEUDO:function(e,t){var n,r=s.pseudos[e]||s.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return r[_]?r(t):r.length>1?(n=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,n){var i,a=r(e,t),s=a.length;while(s--)i=o.call(e,a[s]),e[i]=!(n[i]=a[s])})):function(e){return r(e,0,n)}):r}},pseudos:{not:te((function(e){var t=[],n=[],r=be(e.replace(d,"$1"));return r[_]?te((function(e,t,n,o){var i,a=r(e,null,o,[]),s=e.length;while(s--)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(t){return t=t.replace(Y,$),function(n){return(n.textContent||e.text(n)).indexOf(t)>-1}})),lang:te((function(e){return U.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(Y,$).toLowerCase(),function(t){var n;do{if(n=A?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===w},focus:function(e){return e===Q()&&b.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ie(!1),disabled:ie(!0),checked:function(e){return t(e,"input")&&!!e.checked||t(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!s.pseudos.empty(e)},header:function(e){return H.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return t(e,"input")&&"button"===e.type||t(e,"button")},text:function(e){var n;return t(e,"input")&&"text"===e.type&&(null==(n=e.getAttribute("type"))||"text"===n.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},s.pseudos.nth=s.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[r]=re(r);for(r in{submit:!0,reset:!0})s.pseudos[r]=oe(r);function ue(){}function ce(e,t){var n,r,o,i,a,l,u,c=F[e+" "];if(c)return t?0:c.slice(0);a=e,l=[],u=s.preFilter;while(a){for(i in n&&!(r=D.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=B.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(d," ")}),a=a.slice(n.length)),s.filter)!(r=K[i].exec(a))||u[i]&&!(r=u[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?Z.error(e):F(e,l).slice(0)}function fe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function de(e,n,r){var o=n.dir,i=n.next,a=i||o,s=r&&"parentNode"===a,l=E++;return n.first?function(t,n,r){while(t=t[o])if(1===t.nodeType||s)return e(t,n,r);return!1}:function(n,r,u){var c,f,d=[k,l];if(u){while(n=n[o])if((1===n.nodeType||s)&&e(n,r,u))return!0}else while(n=n[o])if(1===n.nodeType||s)if(f=n[_]||(n[_]={}),i&&t(n,i))n=n[o]||n;else{if((c=f[a])&&c[0]===k&&c[1]===l)return d[2]=c[2];if(f[a]=d,d[2]=e(n,r,u))return!0}return!1}}function he(e){return e.length>1?function(t,n,r){var o=e.length;while(o--)if(!e[o](t,n,r))return!1;return!0}:e[0]}function pe(e,t,n){for(var r=0,o=t.length;r<o;r++)Z(e,t[r],n);return n}function ve(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),u&&t.push(s)));return a}function ge(e,t,n,r,i,a){return r&&!r[_]&&(r=ge(r)),i&&!i[_]&&(i=ge(i,a)),te((function(a,s,l,u){var c,f,d,h,p=[],v=[],g=s.length,m=a||pe(t||"*",l.nodeType?[l]:l,[]),y=!e||!a&&t?m:ve(m,p,e,l,u);if(n?(h=i||(a?e:g||r)?[]:s,n(y,h,l,u)):h=y,r){c=ve(h,v),r(c,[],l,u),f=c.length;while(f--)(d=c[f])&&(h[v[f]]=!(y[v[f]]=d))}if(a){if(i||e){if(i){c=[],f=h.length;while(f--)(d=h[f])&&c.push(y[f]=d);i(null,h=[],c,u)}f=h.length;while(f--)(d=h[f])&&(c=i?o.call(a,d):p[f])>-1&&(a[c]=!(s[c]=d))}}else h=ve(h===s?h.splice(g,h.length):h),i?i(null,s,h,u):S.apply(s,h)}))}function me(e){for(var t,n,r,i=e.length,a=s.relative[e[0].type],l=a||s.relative[" "],u=a?1:0,c=de((function(e){return e===t}),l,!0),f=de((function(e){return o.call(t,e)>-1}),l,!0),h=[function(e,n,r){var o=!a&&(r||n!=g)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,o}];u<i;u++)if(n=s.relative[e[u].type])h=[de(he(h),n)];else{if(n=s.filter[e[u].type].apply(null,e[u].matches),n[_]){for(r=++u;r<i;r++)if(s.relative[e[r].type])break;return ge(u>1&&he(h),u>1&&fe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(d,"$1"),n,u<r&&me(e.slice(u,r)),r<i&&me(e=e.slice(r)),r<i&&fe(e))}h.push(n)}return he(h)}function ye(t,n){var r=n.length>0,o=t.length>0,i=function(i,l,u,c,f){var d,h,p,v=0,m="0",y=i&&[],w=[],x=g,C=i||o&&s.find.TAG("*",f),_=k+=null==x?1:Math.random()||.1,E=C.length;for(f&&(g=l==b||l||f);m!==E&&null!=(d=C[m]);m++){if(o&&d){h=0,l||d.ownerDocument==b||(le(d),u=!A);while(p=t[h++])if(p(d,l||b,u)){S.call(c,d);break}f&&(k=_)}r&&((d=!p&&d)&&v--,i&&y.push(d))}if(v+=m,r&&m!==v){h=0;while(p=n[h++])p(y,w,l,u);if(i){if(v>0)while(m--)y[m]||w[m]||(w[m]=a.call(c));w=ve(w)}S.apply(c,w),f&&!i&&w.length>0&&v+n.length>1&&e.uniqueSort(c)}return f&&(k=_,g=x),y};return r?te(i):i}function be(e,t){var n,r=[],o=[],i=T[e+" "];if(!i){t||(t=ce(e)),n=t.length;while(n--)i=me(t[n]),i[_]?r.push(i):o.push(i);i=T(e,ye(o,r)),i.selector=e}return i}function we(e,t,n,r){var o,i,a,l,u,c="function"===typeof e&&e,f=!r&&ce(e=c.selector||e);if(n=n||[],1===f.length){if(i=f[0]=f[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&9===t.nodeType&&A&&s.relative[i[1].type]){if(t=(s.find.ID(a.matches[0].replace(Y,$),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}o=K.needsContext.test(e)?0:i.length;while(o--){if(a=i[o],s.relative[l=a.type])break;if((u=s.find[l])&&(r=u(a.matches[0].replace(Y,$),G.test(i[0].type)&&se(t.parentNode)||t))){if(i.splice(o,1),e=r.length&&fe(i),!e)return S.apply(n,r),n;break}}}return(c||be(e,f))(r,t,!A,n,!t||G.test(e)&&se(t.parentNode)||t),n}ue.prototype=s.filters=s.pseudos,s.setFilters=new ue,h.sortStable=_.split("").sort(N).join("")===_,le(),h.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(b.createElement("fieldset"))})),e.find=Z,e.expr[":"]=e.expr.pseudos,e.unique=e.uniqueSort,Z.compile=be,Z.select=we,Z.setDocument=le,Z.tokenize=ce,Z.escape=e.escapeSelector,Z.getText=e.text,Z.isXML=e.isXMLDoc,Z.selectors=e.expr,Z.support=e.support,Z.uniqueSort=e.uniqueSort})()}.apply(t,r),void 0===o||(e.exports=o)},50685:function(e,t,n){var r,o;r=[n(28411)],o=function(e){"use strict";e.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}}.apply(t,r),void 0===o||(e.exports=o)},67410:function(e,t,n){var r,o;r=[n(28411)],o=function(e){"use strict";var t=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function n(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}e.escapeSelector=function(e){return(e+"").replace(t,n)}}.apply(t,r),void 0===o||(e.exports=o)},13040:function(e,t,n){var r,o;r=[n(28411),n(58519),n(78404),n(41382),n(9340),n(82569),n(95933)],o=function(e,t,n,r){"use strict";var o=/\[\]$/,i=/\r?\n/g,a=/^(?:submit|button|image|reset|file)$/i,s=/^(?:input|select|textarea|keygen)/i;function l(n,r,i,a){var s;if(Array.isArray(r))e.each(r,(function(e,t){i||o.test(n)?a(n,t):l(n+"["+("object"===typeof t&&null!=t?e:"")+"]",t,i,a)}));else if(i||"object"!==t(r))a(n,r);else for(s in r)l(n+"["+s+"]",r[s],i,a)}return e.param=function(t,n){var o,i=[],a=function(e,t){var n=r(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!e.isPlainObject(t))e.each(t,(function(){a(this.name,this.value)}));else for(o in t)l(o,t[o],n,a);return i.join("&")},e.fn.extend({serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=e.prop(this,"elements");return t?e.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!e(this).is(":disabled")&&s.test(this.nodeName)&&!a.test(t)&&(this.checked||!n.test(t))})).map((function(t,n){var r=e(this).val();return null==r?null:Array.isArray(r)?e.map(r,(function(e){return{name:n.name,value:e.replace(i,"\r\n")}})):{name:n.name,value:r.replace(i,"\r\n")}})).get()}}),e}.apply(t,r),void 0===o||(e.exports=o)},82569:function(e,t,n){var r,o;r=[n(28411),n(72332),n(24733),n(28811),n(83617),n(92998),n(39773),n(9340),n(68269),n(44553)],o=function(e,t,n,r,o,i,a){"use strict";var s=/^(?:parents|prev(?:Until|All))/,l={children:!0,contents:!0,next:!0,prev:!0};function u(e,t){while((e=e[t])&&1!==e.nodeType);return e}return e.fn.extend({has:function(t){var n=e(t,this),r=n.length;return this.filter((function(){for(var t=0;t<r;t++)if(e.contains(this,n[t]))return!0}))},closest:function(t,n){var r,o=0,a=this.length,s=[],l="string"!==typeof t&&e(t);if(!i.test(t))for(;o<a;o++)for(r=this[o];r&&r!==n;r=r.parentNode)if(r.nodeType<11&&(l?l.index(r)>-1:1===r.nodeType&&e.find.matchesSelector(r,t))){s.push(r);break}return this.pushStack(s.length>1?e.uniqueSort(s):s)},index:function(t){return t?"string"===typeof t?n.call(e(t),this[0]):n.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(e.uniqueSort(e.merge(this.get(),e(t,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),e.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return r(e,"parentNode")},parentsUntil:function(e,t,n){return r(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return r(e,"nextSibling")},prevAll:function(e){return r(e,"previousSibling")},nextUntil:function(e,t,n){return r(e,"nextSibling",n)},prevUntil:function(e,t,n){return r(e,"previousSibling",n)},siblings:function(e){return o((e.parentNode||{}).firstChild,e)},children:function(e){return o(e.firstChild)},contents:function(n){return null!=n.contentDocument&&t(n.contentDocument)?n.contentDocument:(a(n,"template")&&(n=n.content||n),e.merge([],n.childNodes))}},(function(t,n){e.fn[t]=function(r,o){var i=e.map(this,n,r);return"Until"!==t.slice(-5)&&(o=r),o&&"string"===typeof o&&(i=e.filter(o,i)),this.length>1&&(l[t]||e.uniqueSort(i),s.test(t)&&i.reverse()),this.pushStack(i)}})),e}.apply(t,r),void 0===o||(e.exports=o)},68269:function(e,t,n){var r,o;r=[n(28411),n(24733),n(41382),n(92998),n(44553)],o=function(e,t,n,r){"use strict";function o(r,o,i){return n(o)?e.grep(r,(function(e,t){return!!o.call(e,t,e)!==i})):o.nodeType?e.grep(r,(function(e){return e===o!==i})):"string"!==typeof o?e.grep(r,(function(e){return t.call(o,e)>-1!==i})):e.filter(o,r,i)}e.filter=function(t,n,r){var o=n[0];return r&&(t=":not("+t+")"),1===n.length&&1===o.nodeType?e.find.matchesSelector(o,t)?[o]:[]:e.find.matches(t,e.grep(n,(function(e){return 1===e.nodeType})))},e.fn.extend({find:function(t){var n,r,o=this.length,i=this;if("string"!==typeof t)return this.pushStack(e(t).filter((function(){for(n=0;n<o;n++)if(e.contains(i[n],this))return!0})));for(r=this.pushStack([]),n=0;n<o;n++)e.find(t,i[n],r);return o>1?e.uniqueSort(r):r},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(t){return!!o(this,"string"===typeof t&&r.test(t)?e(t):t||[],!1).length}})}.apply(t,r),void 0===o||(e.exports=o)},28811:function(e,t,n){var r,o;r=[n(28411)],o=function(e){"use strict";return function(t,n,r){var o=[],i=void 0!==r;while((t=t[n])&&9!==t.nodeType)if(1===t.nodeType){if(i&&e(t).is(r))break;o.push(t)}return o}}.apply(t,r),void 0===o||(e.exports=o)},92998:function(e,t,n){var r,o;r=[n(28411),n(44553)],o=function(e){"use strict";return e.expr.match.needsContext}.apply(t,r),void 0===o||(e.exports=o)},83617:function(e,t,n){var r;r=function(){"use strict";return function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}.call(t,n,t,e),void 0===r||(e.exports=r)},48928:function(e,t,n){var r,o;r=[n(12122)],o=function(e){"use strict";return e.call(Object)}.apply(t,r),void 0===o||(e.exports=o)},12283:function(e,t,n){var r;r=function(){"use strict";return[]}.call(t,n,t,e),void 0===r||(e.exports=r)},78320:function(e,t,n){var r;r=function(){"use strict";return{}}.call(t,n,t,e),void 0===r||(e.exports=r)},38543:function(e,t,n){var r;r=function(){"use strict";return window.document}.call(t,n,t,e),void 0===r||(e.exports=r)},17623:function(e,t,n){var r,o;r=[n(38543)],o=function(e){"use strict";return e.documentElement}.apply(t,r),void 0===o||(e.exports=o)},88305:function(e,t,n){var r,o;r=[n(12283)],o=function(e){"use strict";return e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)}}.apply(t,r),void 0===o||(e.exports=o)},12122:function(e,t,n){var r,o;r=[n(41402)],o=function(e){"use strict";return e.toString}.apply(t,r),void 0===o||(e.exports=o)},72332:function(e,t,n){var r;r=function(){"use strict";return Object.getPrototypeOf}.call(t,n,t,e),void 0===r||(e.exports=r)},41402:function(e,t,n){var r,o;r=[n(78320)],o=function(e){"use strict";return e.hasOwnProperty}.apply(t,r),void 0===o||(e.exports=o)},24733:function(e,t,n){var r,o;r=[n(12283)],o=function(e){"use strict";return e.indexOf}.apply(t,r),void 0===o||(e.exports=o)},41382:function(e,t,n){var r;r=function(){"use strict";return function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item}}.call(t,n,t,e),void 0===r||(e.exports=r)},87346:function(e,t,n){var r;r=function(){"use strict";return function(e){return null!=e&&e===e.window}}.call(t,n,t,e),void 0===r||(e.exports=r)},80210:function(e,t,n){var r;r=function(){"use strict";return/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source}.call(t,n,t,e),void 0===r||(e.exports=r)},57507:function(e,t,n){var r,o;r=[n(12283)],o=function(e){"use strict";return e.pop}.apply(t,r),void 0===o||(e.exports=o)},37298:function(e,t,n){var r,o;r=[n(12283)],o=function(e){"use strict";return e.push}.apply(t,r),void 0===o||(e.exports=o)},78404:function(e,t,n){var r;r=function(){"use strict";return/^(?:checkbox|radio)$/i}.call(t,n,t,e),void 0===r||(e.exports=r)},60403:function(e,t,n){var r,o;r=[n(80210)],o=function(e){"use strict";return new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i")}.apply(t,r),void 0===o||(e.exports=o)},99091:function(e,t,n){var r;r=function(){"use strict";return/[^\x20\t\r\n\f]+/g}.call(t,n,t,e),void 0===r||(e.exports=r)},78919:function(e,t,n){var r,o;r=[n(69619)],o=function(e){"use strict";return new RegExp("^"+e+"+|((?:^|[^\\\\])(?:\\\\.)*)"+e+"+$","g")}.apply(t,r),void 0===o||(e.exports=o)},5950:function(e,t,n){var r,o;r=[n(12283)],o=function(e){"use strict";return e.slice}.apply(t,r),void 0===o||(e.exports=o)},99518:function(e,t,n){var r,o;r=[n(12283)],o=function(e){"use strict";return e.sort}.apply(t,r),void 0===o||(e.exports=o)},21338:function(e,t,n){var r,o;r=[n(12283)],o=function(e){"use strict";return e.splice}.apply(t,r),void 0===o||(e.exports=o)},10107:function(e,t,n){var r;r=function(){"use strict";return{}}.call(t,n,t,e),void 0===r||(e.exports=r)},64122:function(e,t,n){var r,o;r=[n(78320)],o=function(e){"use strict";return e.toString}.apply(t,r),void 0===o||(e.exports=o)},69619:function(e,t,n){var r;r=function(){"use strict";return"[\\x20\\t\\r\\n\\f]"}.call(t,n,t,e),void 0===r||(e.exports=r)},75868:function(e,t,n){var r,o;r=[n(28411),n(41382),n(9340),n(57957),n(82569)],o=function(e,t){"use strict";return e.fn.extend({wrapAll:function(n){var r;return this[0]&&(t(n)&&(n=n.call(this[0])),r=e(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&r.insertBefore(this[0]),r.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(n){return t(n)?this.each((function(t){e(this).wrapInner(n.call(this,t))})):this.each((function(){var t=e(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)}))},wrap:function(n){var r=t(n);return this.each((function(t){e(this).wrapAll(r?n.call(this,t):n)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){e(this).replaceWith(this.childNodes)})),this}}),e}.apply(t,r),void 0===o||(e.exports=o)},44323:function(e,t,n){"use strict";n.d(t,{uE:function(){return Te}});var r=n(82284),o=Uint8Array,i=Uint16Array,a=Uint32Array,s=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new o([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var o=new a(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return[n,o]},f=c(s,2),d=f[0],h=f[1];d[28]=258,h[258]=28;for(var p=c(l,0),v=p[0],g=p[1],m=new i(32768),y=0;y<32768;++y){var b=(43690&y)>>>1|(21845&y)<<1;b=(52428&b)>>>2|(13107&b)<<2,b=(61680&b)>>>4|(3855&b)<<4,m[y]=((65280&b)>>>8|(255&b)<<8)>>>1}var w=function(e,t,n){for(var r=e.length,o=0,a=new i(t);o<r;++o)++a[e[o]-1];var s,l=new i(t);for(o=0;o<t;++o)l[o]=l[o-1]+a[o-1]<<1;if(n){s=new i(1<<t);var u=15-t;for(o=0;o<r;++o)if(e[o])for(var c=o<<4|e[o],f=t-e[o],d=l[e[o]-1]++<<f,h=d|(1<<f)-1;d<=h;++d)s[m[d]>>>u]=c}else for(s=new i(r),o=0;o<r;++o)s[o]=m[l[e[o]-1]++]>>>15-e[o];return s},A=new o(288);for(y=0;y<144;++y)A[y]=8;for(y=144;y<256;++y)A[y]=9;for(y=256;y<280;++y)A[y]=7;for(y=280;y<288;++y)A[y]=8;var x=new o(32);for(y=0;y<32;++y)x[y]=5;var C=w(A,9,0),S=w(A,9,1),_=w(x,5,0),k=w(x,5,1),E=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},O=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>>(7&t)&n},F=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},T=function(e){return(e/8|0)+(7&e&&1)},P=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(e instanceof i?i:e instanceof a?a:o)(n-t);return r.set(e.subarray(t,n)),r},N=function(e,t,n){var r=e.length,i=!t||n,a=!n||n.i;n||(n={}),t||(t=new o(3*r));var c=function(e){var n=t.length;if(e>n){var r=new o(Math.max(2*n,e));r.set(t),t=r}},f=n.f||0,h=n.p||0,p=n.b||0,g=n.l,m=n.d,y=n.m,b=n.n,A=8*r;do{if(!g){n.f=f=O(e,h,1);var x=O(e,h+1,3);if(h+=3,!x){var C=T(h)+4,_=e[C-4]|e[C-3]<<8,N=C+_;if(N>r){if(a)throw"unexpected EOF";break}i&&c(p+_),t.set(e.subarray(C,N),p),n.b=p+=_,n.p=h=8*N;continue}if(1==x)g=S,m=k,y=9,b=5;else{if(2!=x)throw"invalid block type";var M=O(e,h,31)+257,L=O(e,h+10,15)+4,I=M+O(e,h+5,31)+1;h+=14;for(var R=new o(I),j=new o(19),D=0;D<L;++D)j[u[D]]=O(e,h+3*D,7);h+=3*L;var B=E(j),W=(1<<B)-1;if(!a&&h+I*(B+7)>A)break;var z=w(j,B,1);for(D=0;D<I;){var U=z[O(e,h,W)];h+=15&U;C=U>>>4;if(C<16)R[D++]=C;else{var K=0,V=0;16==C?(V=3+O(e,h,3),h+=2,K=R[D-1]):17==C?(V=3+O(e,h,7),h+=3):18==C&&(V=11+O(e,h,127),h+=7);while(V--)R[D++]=K}}var H=R.subarray(0,M),q=R.subarray(M);y=E(H),b=E(q),g=w(H,y,1),m=w(q,b,1)}if(h>A)throw"unexpected EOF"}i&&c(p+131072);var G=(1<<y)-1,Y=(1<<b)-1,$=y+b+18;while(a||h+$<A){K=g[F(e,h)&G];var X=K>>>4;if(h+=15&K,h>A)throw"unexpected EOF";if(!K)throw"invalid length/literal";if(X<256)t[p++]=X;else{if(256==X){g=null;break}var J=X-254;if(X>264){D=X-257;var Q=s[D];J=O(e,h,(1<<Q)-1)+d[D],h+=Q}var Z=m[F(e,h)&Y],ee=Z>>>4;if(!Z)throw"invalid distance";h+=15&Z;q=v[ee];if(ee>3){Q=l[ee];q+=F(e,h)&(1<<Q)-1,h+=Q}if(h>A)throw"unexpected EOF";i&&c(p+131072);for(var te=p+J;p<te;p+=4)t[p]=t[p-q],t[p+1]=t[p+1-q],t[p+2]=t[p+2-q],t[p+3]=t[p+3-q];p=te}}n.l=g,n.p=h,n.b=p,g&&(f=1,n.m=y,n.d=m,n.n=b)}while(!f);return p==t.length?t:P(t,0,p)},M=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},L=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},I=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var a=n.length,s=n.slice();if(!a)return[new o(0),0];if(1==a){var l=new o(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var u=n[0],c=n[1],f=0,d=1,h=2;n[0]={s:-1,f:u.f+c.f,l:u,r:c};while(d!=a-1)u=n[n[f].f<n[h].f?f++:h++],c=n[f!=d&&n[f].f<n[h].f?f++:h++],n[d++]={s:-1,f:u.f+c.f,l:u,r:c};var p=s[0].s;for(r=1;r<a;++r)s[r].s>p&&(p=s[r].s);var v=new i(p+1),g=R(n[d-1],v,0);if(g>t){r=0;var m=0,y=g-t,b=1<<y;for(s.sort((function(e,t){return v[t.s]-v[e.s]||e.f-t.f}));r<a;++r){var w=s[r].s;if(!(v[w]>t))break;m+=b-(1<<g-v[w]),v[w]=t}m>>>=y;while(m>0){var A=s[r].s;v[A]<t?m-=1<<t-v[A]++-1:++r}for(;r>=0&&m;--r){var x=s[r].s;v[x]==t&&(--v[x],++m)}g=t}return[new o(v),g]},R=function(e,t,n){return-1==e.s?Math.max(R(e.l,t,n+1),R(e.r,t,n+1)):t[e.s]=n},j=function(e){var t=e.length;while(t&&!e[--t]);for(var n=new i(++t),r=0,o=e[0],a=1,s=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==o&&l!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}while(a--)s(o);a=1,o=e[l]}return[n.subarray(0,r),t]},D=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},B=function(e,t,n){var r=n.length,o=T(t+2);e[o]=255&r,e[o+1]=r>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<r;++i)e[o+i+4]=n[i];return 8*(o+4+r)},W=function(e,t,n,r,o,a,c,f,d,h,p){M(t,p++,n),++o[256];for(var v=I(o,15),g=v[0],m=v[1],y=I(a,15),b=y[0],S=y[1],k=j(g),E=k[0],O=k[1],F=j(b),T=F[0],P=F[1],N=new i(19),R=0;R<E.length;++R)N[31&E[R]]++;for(R=0;R<T.length;++R)N[31&T[R]]++;for(var W=I(N,7),z=W[0],U=W[1],K=19;K>4&&!z[u[K-1]];--K);var V,H,q,G,Y=h+5<<3,$=D(o,A)+D(a,x)+c,X=D(o,g)+D(a,b)+c+14+3*K+D(N,z)+(2*N[16]+3*N[17]+7*N[18]);if(Y<=$&&Y<=X)return B(t,p,e.subarray(d,d+h));if(M(t,p,1+(X<$)),p+=2,X<$){V=w(g,m,0),H=g,q=w(b,S,0),G=b;var J=w(z,U,0);M(t,p,O-257),M(t,p+5,P-1),M(t,p+10,K-4),p+=14;for(R=0;R<K;++R)M(t,p+3*R,z[u[R]]);p+=3*K;for(var Q=[E,T],Z=0;Z<2;++Z){var ee=Q[Z];for(R=0;R<ee.length;++R){var te=31&ee[R];M(t,p,J[te]),p+=z[te],te>15&&(M(t,p,ee[R]>>>5&127),p+=ee[R]>>>12)}}}else V=C,H=A,q=_,G=x;for(R=0;R<f;++R)if(r[R]>255){te=r[R]>>>18&31;L(t,p,V[te+257]),p+=H[te+257],te>7&&(M(t,p,r[R]>>>23&31),p+=s[te]);var ne=31&r[R];L(t,p,q[ne]),p+=G[ne],ne>3&&(L(t,p,r[R]>>>5&8191),p+=l[ne])}else L(t,p,V[r[R]]),p+=H[r[R]];return L(t,p,V[256]),p+H[256]},z=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new o(0),K=function(e,t,n,r,u,c){var f=e.length,d=new o(r+f+5*(1+Math.floor(f/7e3))+u),p=d.subarray(r,d.length-u),v=0;if(!t||f<8)for(var m=0;m<=f;m+=65535){var y=m+65535;y<f?v=B(p,v,e.subarray(m,y)):(p[m]=c,v=B(p,v,e.subarray(m,f)))}else{for(var b=z[t-1],w=b>>>13,A=8191&b,x=(1<<n)-1,C=new i(32768),S=new i(x+1),_=Math.ceil(n/3),k=2*_,E=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<k)&x},O=new a(25e3),F=new i(288),N=new i(32),M=0,L=0,I=(m=0,0),R=0,j=0;m<f;++m){var D=E(m),K=32767&m,V=S[D];if(C[K]=V,S[D]=K,R<=m){var H=f-m;if((M>7e3||I>24576)&&H>423){v=W(e,p,0,O,F,N,L,I,j,m-j,v),I=M=L=0,j=m;for(var q=0;q<286;++q)F[q]=0;for(q=0;q<30;++q)N[q]=0}var G=2,Y=0,$=A,X=K-V&32767;if(H>2&&D==E(m-X)){var J=Math.min(w,H)-1,Q=Math.min(32767,m),Z=Math.min(258,H);while(X<=Q&&--$&&K!=V){if(e[m+G]==e[m+G-X]){for(var ee=0;ee<Z&&e[m+ee]==e[m+ee-X];++ee);if(ee>G){if(G=ee,Y=X,ee>J)break;var te=Math.min(X,ee-2),ne=0;for(q=0;q<te;++q){var re=m-X+q+32768&32767,oe=C[re],ie=re-oe+32768&32767;ie>ne&&(ne=ie,V=re)}}}K=V,V=C[K],X+=K-V+32768&32767}}if(Y){O[I++]=268435456|h[G]<<18|g[Y];var ae=31&h[G],se=31&g[Y];L+=s[ae]+l[se],++F[257+ae],++N[se],R=m+G,++M}else O[I++]=e[m],++F[e[m]]}}v=W(e,p,c,O,F,N,L,I,j,m-j,v),c||(v=B(p,v,U))}return P(d,0,r+T(v)+u)},V=function(){var e=1,t=0;return{p:function(n){for(var r=e,o=t,i=n.length,a=0;a!=i;){for(var s=Math.min(a+5552,i);a<s;++a)r+=n[a],o+=r;r%=65521,o%=65521}e=r,t=o},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},H=function(e,t,n,r,o){return K(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!o)},q=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},G=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},Y=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function $(e,t){void 0===t&&(t={});var n=V();n.p(e);var r=H(e,t,2,4);return G(r,t),q(r,r.length-4,n.d()),r}function X(e,t){return N((Y(e),e.subarray(2,-4)),t)}
/** @license
 *
 * jsPDF - PDF Document creation from JavaScript
 * Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
 *                      CommitID 00000000
 *
 * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
 *               2015-2021 yWorks GmbH, http://www.yworks.com
 *               2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
 *               2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
 *               2010 Aaron Spike, https://github.com/acspike
 *               2012 Willow Systems Corporation, https://github.com/willowsystems
 *               2012 Pablo Hess, https://github.com/pablohess
 *               2012 Florian Jenett, https://github.com/fjenett
 *               2013 Warren Weckesser, https://github.com/warrenweckesser
 *               2013 Youssef Beddad, https://github.com/lifof
 *               2013 Lee Driscoll, https://github.com/lsdriscoll
 *               2013 Stefan Slonevskiy, https://github.com/stefslon
 *               2013 Jeremy Morel, https://github.com/jmorel
 *               2013 Christoph Hartmann, https://github.com/chris-rock
 *               2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
 *               2014 James Makes, https://github.com/dollaruw
 *               2014 Diego Casorran, https://github.com/diegocr
 *               2014 Steven Spungin, https://github.com/Flamenco
 *               2014 Kenneth Glassey, https://github.com/Gavvers
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * Contributor(s):
 *    siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
 *    kim3er, mfo, alnorth, Flamenco
 */
var J=function(){return"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:this}();function Q(){J.console&&"function"==typeof J.console.log&&J.console.log.apply(J.console,arguments)}var Z={log:Q,warn:function(e){J.console&&("function"==typeof J.console.warn?J.console.warn.apply(J.console,arguments):Q.call(null,arguments))},error:function(e){J.console&&("function"==typeof J.console.error?J.console.error.apply(J.console,arguments):Q(e))}};function ee(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){ie(r.response,t,n)},r.onerror=function(){Z.error("could not download file")},r.send()}function te(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function ne(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var re,oe,ie=J.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.A)(window))||window!==J?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var r=J.URL||J.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener","string"==typeof e?(o.href=e,o.origin!==location.origin?te(o.href)?ee(e,t,n):ne(o,o.target="_blank"):ne(o)):(o.href=r.createObjectURL(e),setTimeout((function(){r.revokeObjectURL(o.href)}),4e4),setTimeout((function(){ne(o)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(te(e))ee(e,t,n);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout((function(){ne(o)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==(0,r.A)(t)&&(Z.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return ee(e,t,n);var i="application/octet-stream"===e.type,a=/constructor/i.test(J.HTMLElement)||J.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.A)(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},l.readAsDataURL(e)}else{var u=J.URL||J.webkitURL,c=u.createObjectURL(e);o?o.location=c:location.href=c,o=null,setTimeout((function(){u.revokeObjectURL(c)}),4e4)}});
/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function ae(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r<n.length;r++){var o=n[r].re,i=n[r].process,a=o.exec(e);a&&(t=i(a),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n
/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */}}function se(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=ue(n,r,o,i,t[0],7,-680876936),i=ue(i,n,r,o,t[1],12,-389564586),o=ue(o,i,n,r,t[2],17,606105819),r=ue(r,o,i,n,t[3],22,-1044525330),n=ue(n,r,o,i,t[4],7,-176418897),i=ue(i,n,r,o,t[5],12,1200080426),o=ue(o,i,n,r,t[6],17,-1473231341),r=ue(r,o,i,n,t[7],22,-45705983),n=ue(n,r,o,i,t[8],7,1770035416),i=ue(i,n,r,o,t[9],12,-1958414417),o=ue(o,i,n,r,t[10],17,-42063),r=ue(r,o,i,n,t[11],22,-1990404162),n=ue(n,r,o,i,t[12],7,1804603682),i=ue(i,n,r,o,t[13],12,-40341101),o=ue(o,i,n,r,t[14],17,-1502002290),n=ce(n,r=ue(r,o,i,n,t[15],22,1236535329),o,i,t[1],5,-165796510),i=ce(i,n,r,o,t[6],9,-1069501632),o=ce(o,i,n,r,t[11],14,643717713),r=ce(r,o,i,n,t[0],20,-373897302),n=ce(n,r,o,i,t[5],5,-701558691),i=ce(i,n,r,o,t[10],9,38016083),o=ce(o,i,n,r,t[15],14,-660478335),r=ce(r,o,i,n,t[4],20,-405537848),n=ce(n,r,o,i,t[9],5,568446438),i=ce(i,n,r,o,t[14],9,-1019803690),o=ce(o,i,n,r,t[3],14,-187363961),r=ce(r,o,i,n,t[8],20,1163531501),n=ce(n,r,o,i,t[13],5,-1444681467),i=ce(i,n,r,o,t[2],9,-51403784),o=ce(o,i,n,r,t[7],14,1735328473),n=fe(n,r=ce(r,o,i,n,t[12],20,-1926607734),o,i,t[5],4,-378558),i=fe(i,n,r,o,t[8],11,-2022574463),o=fe(o,i,n,r,t[11],16,1839030562),r=fe(r,o,i,n,t[14],23,-35309556),n=fe(n,r,o,i,t[1],4,-1530992060),i=fe(i,n,r,o,t[4],11,1272893353),o=fe(o,i,n,r,t[7],16,-155497632),r=fe(r,o,i,n,t[10],23,-1094730640),n=fe(n,r,o,i,t[13],4,681279174),i=fe(i,n,r,o,t[0],11,-358537222),o=fe(o,i,n,r,t[3],16,-722521979),r=fe(r,o,i,n,t[6],23,76029189),n=fe(n,r,o,i,t[9],4,-640364487),i=fe(i,n,r,o,t[12],11,-421815835),o=fe(o,i,n,r,t[15],16,530742520),n=de(n,r=fe(r,o,i,n,t[2],23,-995338651),o,i,t[0],6,-198630844),i=de(i,n,r,o,t[7],10,1126891415),o=de(o,i,n,r,t[14],15,-1416354905),r=de(r,o,i,n,t[5],21,-57434055),n=de(n,r,o,i,t[12],6,1700485571),i=de(i,n,r,o,t[3],10,-1894986606),o=de(o,i,n,r,t[10],15,-1051523),r=de(r,o,i,n,t[1],21,-2054922799),n=de(n,r,o,i,t[8],6,1873313359),i=de(i,n,r,o,t[15],10,-30611744),o=de(o,i,n,r,t[6],15,-1560198380),r=de(r,o,i,n,t[13],21,1309151649),n=de(n,r,o,i,t[4],6,-145523070),i=de(i,n,r,o,t[11],10,-1120210379),o=de(o,i,n,r,t[2],15,718787259),r=de(r,o,i,n,t[9],21,-343485551),e[0]=we(n,e[0]),e[1]=we(r,e[1]),e[2]=we(o,e[2]),e[3]=we(i,e[3])}function le(e,t,n,r,o,i){return t=we(we(t,e),we(r,i)),we(t<<o|t>>>32-o,n)}function ue(e,t,n,r,o,i,a){return le(t&n|~t&r,e,t,o,i,a)}function ce(e,t,n,r,o,i,a){return le(t&r|n&~r,e,t,o,i,a)}function fe(e,t,n,r,o,i,a){return le(t^n^r,e,t,o,i,a)}function de(e,t,n,r,o,i,a){return le(n^(t|~r),e,t,o,i,a)}function he(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)se(r,pe(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(se(r,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,se(r,o),r}function pe(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}re=J.atob.bind(J),oe=J.btoa.bind(J);var ve="0123456789abcdef".split("");function ge(e){for(var t="",n=0;n<4;n++)t+=ve[e>>8*n+4&15]+ve[e>>8*n&15];return t}function me(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function ye(e){return he(e).map(me).join("")}var be="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=ge(e[t]);return e.join("")}(he("hello"));function we(e,t){if(be){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}
/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function Ae(e,t){var n,r,o,i;if(e!==n){for(var a=(o=e,i=1+(256/e.length|0),new Array(i+1).join(o)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+a.charCodeAt(l))%256,s[l]=s[u],s[u]=c}n=e,r=s}else s=r;var f=t.length,d=0,h=0,p="";for(l=0;l<f;l++)h=(h+(c=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=c,a=s[(s[d]+s[h])%256],p+=String.fromCharCode(t.charCodeAt(l)^a);return p}
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var xe={print:4,modify:8,copy:16,"annot-forms":32};function Ce(e,t,n,r){this.v=1,this.r=2;var o=192;e.forEach((function(e){if(void 0!==xe.perm)throw new Error("Invalid permission: "+e);o+=xe[e]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^o)),this.encryptionKey=ye(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Ae(this.encryptionKey,this.padding)}function Se(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);t+=o<33||35===o||37===o||40===o||41===o||47===o||60===o||62===o||91===o||93===o||123===o||125===o||o>126?"#"+("0"+o.toString(16)).slice(-2):e[r]}return t}function _e(e){if("object"!==(0,r.A)(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var o=Math.random().toString(35);return t[e][o]=[n,!!r],o},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var i in t[n]){var a=t[n][i];try{a[0].apply(e,r)}catch(n){J.console&&Z.error("jsPDF PubSub Error",n.message,n)}a[1]&&o.push(i)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ke(e){if(!(this instanceof ke))return new ke(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function Ee(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Oe(e,t,n,r,o){if(!(this instanceof Oe))return new Oe(e,t,n,r,o);this.type="axial"===e?2:3,this.coords=t,this.colors=n,Ee.call(this,r,o)}function Fe(e,t,n,r,o){if(!(this instanceof Fe))return new Fe(e,t,n,r,o);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Ee.call(this,r,o)}function Te(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",o=arguments[1],i=arguments[2],a=arguments[3],s=[],l=1,u=16,c="S",f=null;"object"===(0,r.A)(e=e||{})&&(n=e.orientation,o=e.unit||o,i=e.format||i,a=e.compress||e.compressPdf||a,null!==(f=e.encryption||null)&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),l="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(u=e.floatPrecision),c=e.defaultPathOperation||"S"),s=e.filters||(!0===a?["FlateEncode"]:s),o=o||"mm",n=(""+(n||"P")).toLowerCase();var d=e.putOnlyUsedFonts||!1,h={},p={internal:{},__private__:{}};p.__private__.PubSub=_e;var v="1.3",g=p.__private__.getPdfVersion=function(){return v};p.__private__.setPdfVersion=function(e){v=e};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return m};var y=p.__private__.getPageFormat=function(e){return m[e]};i=i||"a4";var b={COMPAT:"compat",ADVANCED:"advanced"},w=b.COMPAT;function A(){this.saveGraphicsState(),te(new He(be,0,0,-be,0,Wn()*be).toString()+" cm"),this.setFontSize(this.getFontSize()/be),c="n",w=b.ADVANCED}function x(){this.restoreGraphicsState(),c="S",w=b.COMPAT}var C=p.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};p.advancedAPI=function(e){var t=w===b.COMPAT;return t&&A.call(this),"function"!=typeof e||(e(this),t&&x.call(this)),this},p.compatAPI=function(e){var t=w===b.ADVANCED;return t&&x.call(this),"function"!=typeof e||(e(this),t&&A.call(this)),this},p.isAdvancedAPI=function(){return w===b.ADVANCED};var S,_=function(e){if(w!==b.ADVANCED)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},k=p.roundToPrecision=p.__private__.roundToPrecision=function(e,n){var r=t||n;if(isNaN(e)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(r).replace(/0+$/,"")};S=p.hpf=p.__private__.hpf="number"==typeof u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return k(e,u)}:"smart"===u?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return k(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return k(e,16)};var E=p.f2=p.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return k(e,2)},O=p.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return k(e,3)},F=p.scale=p.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return w===b.COMPAT?e*be:w===b.ADVANCED?e:void 0},T=function(e){return w===b.COMPAT?Wn()-e:w===b.ADVANCED?e:void 0},P=function(e){return F(T(e))};p.__private__.setPrecision=p.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var N,M="00000000000000000000000000000000",L=p.__private__.getFileId=function(){return M},I=p.__private__.setFileId=function(e){return M=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():M.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==f&&(Gt=new Ce(f.userPermissions,f.userPassword,f.ownerPassword,M)),M};p.setFileId=function(e){return I(e),this},p.getFileId=function(){return L()};var R=p.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),o=Math.abs(t%60),i=[n,z(r),"'",z(o),"'"].join("");return["D:",e.getFullYear(),z(e.getMonth()+1),z(e.getDate()),z(e.getHours()),z(e.getMinutes()),z(e.getSeconds()),i].join("")},j=p.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),o=parseInt(e.substr(10,2),10),i=parseInt(e.substr(12,2),10),a=parseInt(e.substr(14,2),10);return new Date(t,n,r,o,i,a,0)},D=p.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=R(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return N=t},B=p.__private__.getCreationDate=function(e){var t=N;return"jsDate"===e&&(t=j(N)),t};p.setCreationDate=function(e){return D(e),this},p.getCreationDate=function(e){return B(e)};var W,z=p.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},U=p.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},K=0,V=[],H=[],q=0,G=[],Y=[],$=!1,X=H,Q=function(){K=0,q=0,H=[],V=[],G=[],Ze=Xe(),et=Xe()};p.__private__.setCustomOutputDestination=function(e){$=!0,X=e};var ee=function(e){$||(X=e)};p.__private__.resetCustomOutputDestination=function(){$=!1,X=H};var te=p.__private__.out=function(e){return e=e.toString(),q+=e.length+1,X.push(e),X},ne=p.__private__.write=function(e){return te(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},re=p.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},se=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return se};var le=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(e){return le=w===b.ADVANCED?e/be:e,this};var ue,ce=p.__private__.getFontSize=p.getFontSize=function(){return w===b.COMPAT?le:le*be},fe=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(e){return fe=e,this},p.__private__.getR2L=p.getR2L=function(){return fe};var de,he=p.__private__.setZoomMode=function(e){var t=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))ue=e;else if(isNaN(e)){if(-1===t.indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');ue=e}else ue=parseInt(e,10)};p.__private__.getZoomMode=function(){return ue};var pe,ve=p.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');de=e};p.__private__.getPageMode=function(){return de};var ge=p.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');pe=e};p.__private__.getLayoutMode=function(){return pe},p.__private__.setDisplayMode=p.setDisplayMode=function(e,t,n){return he(e),ge(t),ve(n),this};var me={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(e){if(-1===Object.keys(me).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return me[e]},p.__private__.getDocumentProperties=function(){return me},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(e){for(var t in me)me.hasOwnProperty(t)&&e[t]&&(me[t]=e[t]);return this},p.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(me).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return me[e]=t};var ye,be,we,Ae,xe,Ee={},Pe={},Ne=[],Me={},Le={},Ie={},Re={},je=null,De=0,Be=[],We=new _e(p),ze=e.hotfixes||[],Ue={},Ke={},Ve=[],He=function e(t,n,r,o,i,a){if(!(this instanceof e))return new e(t,n,r,o,i,a);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(o)&&(o=1),isNaN(i)&&(i=0),isNaN(a)&&(a=0),this._matrix=[t,n,r,o,i,a]};Object.defineProperty(He.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(He.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(He.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(He.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(He.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(He.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(He.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(He.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(He.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(He.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(He.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(He.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(He.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(He.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(He.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(He.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),He.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(e)},He.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,o=e.shx*this.shy+e.sy*this.sy,i=e.tx*this.sx+e.ty*this.shx+this.tx,a=e.tx*this.shy+e.ty*this.sy+this.ty;return new He(t,n,r,o,i,a)},He.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,a=Math.sqrt(e*e+t*t),s=(e/=a)*n+(t/=a)*r;n-=e*s,r-=t*s;var l=Math.sqrt(n*n+r*r);return s/=l,e*(r/=l)<t*(n/=l)&&(e=-e,t=-t,s=-s,a=-a),{scale:new He(a,0,0,l,0,0),translate:new He(1,0,0,1,o,i),rotate:new He(e,t,-t,e,0,0),skew:new He(1,0,s,1,0,0)}},He.prototype.toString=function(e){return this.join(" ")},He.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty,a=1/(e*r-t*n),s=r*a,l=-t*a,u=-n*a,c=e*a;return new He(s,l,u,c,-s*o-u*i,-l*o-c*i)},He.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new Nn(t,n)},He.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new Nn(e.x+e.w,e.y+e.h));return new Mn(t.x,t.y,n.x-t.x,n.y-t.y)},He.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,o=this.tx,i=this.ty;return new He(e,t,n,r,o,i)},p.Matrix=He;var qe=p.matrixMult=function(e,t){return t.multiply(e)},Ge=new He(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Ge;var Ye=function(e,t){if(!Le[e]){var n=(t instanceof Oe?"Sh":"P")+(Object.keys(Me).length+1).toString(10);t.id=n,Le[e]=n,Me[n]=t,We.publish("addPattern",t)}};p.ShadingPattern=Oe,p.TilingPattern=Fe,p.addShadingPattern=function(e,t){return _("addShadingPattern()"),Ye(e,t),this},p.beginTilingPattern=function(e){_("beginTilingPattern()"),In(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},p.endTilingPattern=function(e,t){_("endTilingPattern()"),t.stream=Y[W].join("\n"),Ye(e,t),We.publish("endTilingPattern",t),Ve.pop().restore()};var $e=p.__private__.newObject=function(){var e=Xe();return Je(e,!0),e},Xe=p.__private__.newObjectDeferred=function(){return K++,V[K]=function(){return q},K},Je=function(e,t){return t="boolean"==typeof t&&t,V[e]=q,t&&te(e+" 0 obj"),e},Qe=p.__private__.newAdditionalObject=function(){var e={objId:Xe(),content:""};return G.push(e),e},Ze=Xe(),et=Xe(),tt=p.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",o=0;o<3;o++)r+=("0"+Math.floor(255*parseFloat(t[o])).toString(16)).slice(-2);return r},nt=p.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,o=e.ch2,i=e.ch3,a=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new ae(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,o=u>>8&255,i=255&u}if(void 0===o||void 0===a&&n===o&&o===i)if("string"==typeof n)t=n+" "+s[0];else switch(e.precision){case 2:t=E(n/255)+" "+s[0];break;case 3:default:t=O(n/255)+" "+s[0]}else if(void 0===a||"object"===(0,r.A)(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)t=[n,o,i,s[1]].join(" ");else switch(e.precision){case 2:t=[E(n/255),E(o/255),E(i/255),s[1]].join(" ");break;default:case 3:t=[O(n/255),O(o/255),O(i/255),s[1]].join(" ")}}else if("string"==typeof n)t=[n,o,i,a,s[2]].join(" ");else switch(e.precision){case 2:t=[E(n),E(o),E(i),E(a),s[2]].join(" ");break;case 3:default:t=[O(n),O(o),O(i),O(a),s[2]].join(" ")}return t},rt=p.__private__.getFilters=function(){return s},ot=p.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||rt(),r=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=t.length,a=e.objectId,s=function(e){return e};if(null!==f&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==f&&(s=Gt.encryptor(a,0));var l={};!0===n&&(n=["FlateEncode"]);var u=e.additionalKeyValues||[],c=(l=void 0!==Te.API.processDataByFilters?Te.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===o&&u.push({key:"Length1",value:i})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var d=0;d<u.length;d+=1)if("DecodeParms"===u[d].key){for(var h=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)h.push("null");h.push(u[d].value),u[d].value="["+h.join(" ")+"]"}}te("<<");for(var v=0;v<u.length;v++)te("/"+u[v].key+" "+u[v].value);te(">>"),0!==l.data.length&&(te("stream"),te(s(l.data)),te("endstream"))},it=p.__private__.putPage=function(e){var t=e.number,n=e.data,r=e.objId,o=e.contentsObjId;Je(r,!0),te("<</Type /Page"),te("/Parent "+e.rootDictionaryObjId+" 0 R"),te("/Resources "+e.resourceDictionaryObjId+" 0 R"),te("/MediaBox ["+parseFloat(S(e.mediaBox.bottomLeftX))+" "+parseFloat(S(e.mediaBox.bottomLeftY))+" "+S(e.mediaBox.topRightX)+" "+S(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&te("/CropBox ["+S(e.cropBox.bottomLeftX)+" "+S(e.cropBox.bottomLeftY)+" "+S(e.cropBox.topRightX)+" "+S(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&te("/BleedBox ["+S(e.bleedBox.bottomLeftX)+" "+S(e.bleedBox.bottomLeftY)+" "+S(e.bleedBox.topRightX)+" "+S(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&te("/TrimBox ["+S(e.trimBox.bottomLeftX)+" "+S(e.trimBox.bottomLeftY)+" "+S(e.trimBox.topRightX)+" "+S(e.trimBox.topRightY)+"]"),null!==e.artBox&&te("/ArtBox ["+S(e.artBox.bottomLeftX)+" "+S(e.artBox.bottomLeftY)+" "+S(e.artBox.topRightX)+" "+S(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&te("/UserUnit "+e.userUnit),We.publish("putPage",{objId:r,pageContext:Be[t],pageNumber:t,page:n}),te("/Contents "+o+" 0 R"),te(">>"),te("endobj");var i=n.join("\n");return w===b.ADVANCED&&(i+="\nQ"),Je(o,!0),ot({data:i,filters:rt(),objectId:o}),te("endobj"),r},at=p.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=De;e++)Be[e].objId=Xe(),Be[e].contentsObjId=Xe();for(e=1;e<=De;e++)n.push(it({number:e,data:Y[e],objId:Be[e].objId,contentsObjId:Be[e].contentsObjId,mediaBox:Be[e].mediaBox,cropBox:Be[e].cropBox,bleedBox:Be[e].bleedBox,trimBox:Be[e].trimBox,artBox:Be[e].artBox,userUnit:Be[e].userUnit,rootDictionaryObjId:Ze,resourceDictionaryObjId:et}));Je(Ze,!0),te("<</Type /Pages");var r="/Kids [";for(t=0;t<De;t++)r+=n[t]+" 0 R ";te(r+"]"),te("/Count "+De),te(">>"),te("endobj"),We.publish("postPutPages")},st=function(e){We.publish("putFont",{font:e,out:te,newObject:$e,putStream:ot}),!0!==e.isAlreadyPutted&&(e.objectNumber=$e(),te("<<"),te("/Type /Font"),te("/BaseFont /"+Se(e.postScriptName)),te("/Subtype /Type1"),"string"==typeof e.encoding&&te("/Encoding /"+e.encoding),te("/FirstChar 32"),te("/LastChar 255"),te(">>"),te("endobj"))},lt=function(){for(var e in Ee)Ee.hasOwnProperty(e)&&(!1===d||!0===d&&h.hasOwnProperty(e))&&st(Ee[e])},ut=function(e){e.objectNumber=$e();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[S(e.x),S(e.y),S(e.x+e.width),S(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");ot({data:n,additionalKeyValues:t,objectId:e.objectNumber}),te("endobj")},ct=function(){for(var e in Ue)Ue.hasOwnProperty(e)&&ut(Ue[e])},ft=function(e,t){var n,r=[],o=1/(t-1);for(n=0;n<1;n+=o)r.push(n);if(r.push(1),0!=e[0].offset){var i={offset:0,color:e[0].color};e.unshift(i)}if(1!=e[e.length-1].offset){var a={offset:1,color:e[e.length-1].color};e.push(a)}for(var s="",l=0,u=0;u<r.length;u++){for(n=r[u];n>e[l+1].offset;)l++;var c=e[l].offset,f=(n-c)/(e[l+1].offset-c),d=e[l].color,h=e[l+1].color;s+=U(Math.round((1-f)*d[0]+f*h[0]).toString(16))+U(Math.round((1-f)*d[1]+f*h[1]).toString(16))+U(Math.round((1-f)*d[2]+f*h[2]).toString(16))}return s.trim()},dt=function(e,t){t||(t=21);var n=$e(),r=ft(e.colors,t),o=[];o.push({key:"FunctionType",value:"0"}),o.push({key:"Domain",value:"[0.0 1.0]"}),o.push({key:"Size",value:"["+t+"]"}),o.push({key:"BitsPerSample",value:"8"}),o.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),o.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ot({data:r,additionalKeyValues:o,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),te("endobj"),e.objectNumber=$e(),te("<< /ShadingType "+e.type),te("/ColorSpace /DeviceRGB");var i="/Coords ["+S(parseFloat(e.coords[0]))+" "+S(parseFloat(e.coords[1]))+" ";2===e.type?i+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3])):i+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3]))+" "+S(parseFloat(e.coords[4]))+" "+S(parseFloat(e.coords[5])),te(i+="]"),e.matrix&&te("/Matrix ["+e.matrix.toString()+"]"),te("/Function "+n+" 0 R"),te("/Extend [true true]"),te(">>"),te("endobj")},ht=function(e,t){var n=Xe(),r=$e();t.push({resourcesOid:n,objectOid:r}),e.objectNumber=r;var o=[];o.push({key:"Type",value:"/Pattern"}),o.push({key:"PatternType",value:"1"}),o.push({key:"PaintType",value:"1"}),o.push({key:"TilingType",value:"1"}),o.push({key:"BBox",value:"["+e.boundingBox.map(S).join(" ")+"]"}),o.push({key:"XStep",value:S(e.xStep)}),o.push({key:"YStep",value:S(e.yStep)}),o.push({key:"Resources",value:n+" 0 R"}),e.matrix&&o.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),ot({data:e.stream,additionalKeyValues:o,objectId:e.objectNumber}),te("endobj")},pt=function(e){var t;for(t in Me)Me.hasOwnProperty(t)&&(Me[t]instanceof Oe?dt(Me[t]):Me[t]instanceof Fe&&ht(Me[t],e))},vt=function(e){for(var t in e.objectNumber=$e(),te("<<"),e)switch(t){case"opacity":te("/ca "+E(e[t]));break;case"stroke-opacity":te("/CA "+E(e[t]))}te(">>"),te("endobj")},gt=function(){var e;for(e in Ie)Ie.hasOwnProperty(e)&&vt(Ie[e])},mt=function(){for(var e in te("/XObject <<"),Ue)Ue.hasOwnProperty(e)&&Ue[e].objectNumber>=0&&te("/"+e+" "+Ue[e].objectNumber+" 0 R");We.publish("putXobjectDict"),te(">>")},yt=function(){Gt.oid=$e(),te("<<"),te("/Filter /Standard"),te("/V "+Gt.v),te("/R "+Gt.r),te("/U <"+Gt.toHexString(Gt.U)+">"),te("/O <"+Gt.toHexString(Gt.O)+">"),te("/P "+Gt.P),te(">>"),te("endobj")},bt=function(){for(var e in te("/Font <<"),Ee)Ee.hasOwnProperty(e)&&(!1===d||!0===d&&h.hasOwnProperty(e))&&te("/"+e+" "+Ee[e].objectNumber+" 0 R");te(">>")},wt=function(){if(Object.keys(Me).length>0){for(var e in te("/Shading <<"),Me)Me.hasOwnProperty(e)&&Me[e]instanceof Oe&&Me[e].objectNumber>=0&&te("/"+e+" "+Me[e].objectNumber+" 0 R");We.publish("putShadingPatternDict"),te(">>")}},At=function(e){if(Object.keys(Me).length>0){for(var t in te("/Pattern <<"),Me)Me.hasOwnProperty(t)&&Me[t]instanceof p.TilingPattern&&Me[t].objectNumber>=0&&Me[t].objectNumber<e&&te("/"+t+" "+Me[t].objectNumber+" 0 R");We.publish("putTilingPatternDict"),te(">>")}},xt=function(){if(Object.keys(Ie).length>0){var e;for(e in te("/ExtGState <<"),Ie)Ie.hasOwnProperty(e)&&Ie[e].objectNumber>=0&&te("/"+e+" "+Ie[e].objectNumber+" 0 R");We.publish("putGStateDict"),te(">>")}},Ct=function(e){Je(e.resourcesOid,!0),te("<<"),te("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),bt(),wt(),At(e.objectOid),xt(),mt(),te(">>"),te("endobj")},St=function(){var e=[];lt(),gt(),ct(),pt(e),We.publish("putResources"),e.forEach(Ct),Ct({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),We.publish("postPutResources")},_t=function(){We.publish("putAdditionalObjects");for(var e=0;e<G.length;e++){var t=G[e];Je(t.objId,!0),te(t.content),te("endobj")}We.publish("postPutAdditionalObjects")},kt=function(e){Pe[e.fontName]=Pe[e.fontName]||{},Pe[e.fontName][e.fontStyle]=e.id},Et=function(e,t,n,r,o){var i={id:"F"+(Object.keys(Ee).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:o||!1,metadata:{}};return We.publish("addFont",{font:i,instance:this}),Ee[i.id]=i,kt(i),i.id},Ot=function(e){for(var t=0,n=se.length;t<n;t++){var r=Et.call(this,e[t][0],e[t][1],e[t][2],se[t][3],!0);!1===d&&(h[r]=!0);var o=e[t][0].split("-");kt({id:r,fontName:o[0],fontStyle:o[1]||""})}We.publish("addFonts",{fonts:Ee,dictionary:Pe})},Ft=function(e){return e.foo=function(){try{return e.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!J.console)throw new Error(n);J.console.error(n,e),J.alert&&alert(n)}},e.foo.bar=e,e.foo},Tt=function(e,t){var n,r,o,i,a,s,l,u,c;if(o=(t=t||{}).sourceEncoding||"Unicode",a=t.outputEncoding,(t.autoencode||a)&&Ee[ye].metadata&&Ee[ye].metadata[o]&&Ee[ye].metadata[o].encoding&&(i=Ee[ye].metadata[o].encoding,!a&&Ee[ye].encoding&&(a=Ee[ye].encoding),!a&&i.codePages&&(a=i.codePages[0]),"string"==typeof a&&(a=i[a]),a)){for(l=!1,s=[],n=0,r=e.length;n<r;n++)(u=a[e.charCodeAt(n)])?s.push(String.fromCharCode(u)):s.push(e[n]),s[n].charCodeAt(0)>>8&&(l=!0);e=s.join("")}for(n=e.length;void 0===l&&0!==n;)e.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return e;for(s=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((c=(u=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(u-(c<<8))}return String.fromCharCode.apply(void 0,s)},Pt=p.__private__.pdfEscape=p.pdfEscape=function(e,t){return Tt(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Nt=p.__private__.beginPage=function(e){Y[++De]=[],Be[De]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},It(De),ee(Y[W])},Mt=function(e,t){var r,o,a;switch(n=t||n,"string"==typeof e&&(r=y(e.toLowerCase()),Array.isArray(r)&&(o=r[0],a=r[1])),Array.isArray(e)&&(o=e[0]*be,a=e[1]*be),isNaN(o)&&(o=i[0],a=i[1]),(o>14400||a>14400)&&(Z.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),a=Math.min(14400,a)),i=[o,a],n.substr(0,1)){case"l":a>o&&(i=[a,o]);break;case"p":o>a&&(i=[a,o])}Nt(i),vn(hn),te(Cn),0!==Fn&&te(Fn+" J"),0!==Tn&&te(Tn+" j"),We.publish("addPage",{pageNumber:De})},Lt=function(e){e>0&&e<=De&&(Y.splice(e,1),Be.splice(e,1),De--,W>De&&(W=De),this.setPage(W))},It=function(e){e>0&&e<=De&&(W=e)},Rt=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Y.length-1},jt=function(e,t,n){var r,o=void 0;return n=n||{},e=void 0!==e?e:Ee[ye].fontName,t=void 0!==t?t:Ee[ye].fontStyle,r=e.toLowerCase(),void 0!==Pe[r]&&void 0!==Pe[r][t]?o=Pe[r][t]:void 0!==Pe[e]&&void 0!==Pe[e][t]?o=Pe[e][t]:!1===n.disableWarning&&Z.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),o||n.noFallback||null==(o=Pe.times[t])&&(o=Pe.times.normal),o},Dt=p.__private__.putInfo=function(){var e=$e(),t=function(e){return e};for(var n in null!==f&&(t=Gt.encryptor(e,0)),te("<<"),te("/Producer ("+Pt(t("jsPDF "+Te.version))+")"),me)me.hasOwnProperty(n)&&me[n]&&te("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Pt(t(me[n]))+")");te("/CreationDate ("+Pt(t(N))+")"),te(">>"),te("endobj")},Bt=p.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Ze;switch($e(),te("<<"),te("/Type /Catalog"),te("/Pages "+t+" 0 R"),ue||(ue="fullwidth"),ue){case"fullwidth":te("/OpenAction [3 0 R /FitH null]");break;case"fullheight":te("/OpenAction [3 0 R /FitV null]");break;case"fullpage":te("/OpenAction [3 0 R /Fit]");break;case"original":te("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ue;"%"===n.substr(n.length-1)&&(ue=parseInt(ue)/100),"number"==typeof ue&&te("/OpenAction [3 0 R /XYZ null null "+E(ue)+"]")}switch(pe||(pe="continuous"),pe){case"continuous":te("/PageLayout /OneColumn");break;case"single":te("/PageLayout /SinglePage");break;case"two":case"twoleft":te("/PageLayout /TwoColumnLeft");break;case"tworight":te("/PageLayout /TwoColumnRight")}de&&te("/PageMode /"+de),We.publish("putCatalog"),te(">>"),te("endobj")},Wt=p.__private__.putTrailer=function(){te("trailer"),te("<<"),te("/Size "+(K+1)),te("/Root "+K+" 0 R"),te("/Info "+(K-1)+" 0 R"),null!==f&&te("/Encrypt "+Gt.oid+" 0 R"),te("/ID [ <"+M+"> <"+M+"> ]"),te(">>")},zt=p.__private__.putHeader=function(){te("%PDF-"+v),te("%ºß¬à")},Ut=p.__private__.putXRef=function(){var e="0000000000";te("xref"),te("0 "+(K+1)),te("0000000000 65535 f ");for(var t=1;t<=K;t++)"function"==typeof V[t]?te((e+V[t]()).slice(-10)+" 00000 n "):void 0!==V[t]?te((e+V[t]).slice(-10)+" 00000 n "):te("0000000000 00000 n ")},Kt=p.__private__.buildDocument=function(){Q(),ee(H),We.publish("buildDocument"),zt(),at(),_t(),St(),null!==f&&yt(),Dt(),Bt();var e=q;return Ut(),Wt(),te("startxref"),te(""+e),te("%%EOF"),ee(Y[W]),H.join("\n")},Vt=p.__private__.getBlob=function(e){return new Blob([re(e)],{type:"application/pdf"})},Ht=p.output=p.__private__.output=Ft((function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return Kt();case"save":p.save(t.filename);break;case"arraybuffer":return re(Kt());case"blob":return Vt(Kt());case"bloburi":case"bloburl":if(void 0!==J.URL&&"function"==typeof J.URL.createObjectURL)return J.URL&&J.URL.createObjectURL(Vt(Kt()))||void 0;Z.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=Kt();try{n=oe(r)}catch(e){n=oe(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(J)){var o="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(o=t.pdfObjectUrl,i="");var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+o+'"'+i+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",s=J.open();return null!==s&&s.document.write(a),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(J)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',u=J.open();if(null!==u){u.document.write(l);var c=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=t.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(J))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',d=J.open();if(null!==d&&(d.document.write(f),d.document.title=t.filename),d||"undefined"==typeof safari)return d;break;case"datauri":case"dataurl":return J.document.location.href=this.output("datauristring",t);default:return null}})),qt=function(e){return!0===Array.isArray(ze)&&ze.indexOf(e)>-1};switch(o){case"pt":be=1;break;case"mm":be=72/25.4;break;case"cm":be=72/2.54;break;case"in":be=72;break;case"px":be=1==qt("px_scaling")?.75:96/72;break;case"pc":case"em":be=12;break;case"ex":be=6;break;default:if("number"!=typeof o)throw new Error("Invalid unit: "+o);be=o}var Gt=null;D(),I();var Yt=function(e){return null!==f?Gt.encryptor(e,0):function(e){return e}},$t=p.__private__.getPageInfo=p.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Be[e].objId,pageNumber:e,pageContext:Be[e]}},Xt=p.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Be)if(Be[t].objId===e)break;return $t(t)},Jt=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Be[W].objId,pageNumber:W,pageContext:Be[W]}};p.addPage=function(){return Mt.apply(this,arguments),this},p.setPage=function(){return It.apply(this,arguments),ee.call(this,Y[W]),this},p.insertPage=function(e){return this.addPage(),this.movePage(W,e),this},p.movePage=function(e,t){var n,r;if(e>t){n=Y[e],r=Be[e];for(var o=e;o>t;o--)Y[o]=Y[o-1],Be[o]=Be[o-1];Y[t]=n,Be[t]=r,this.setPage(t)}else if(e<t){n=Y[e],r=Be[e];for(var i=e;i<t;i++)Y[i]=Y[i+1],Be[i]=Be[i+1];Y[t]=n,Be[t]=r,this.setPage(t)}return this},p.deletePage=function(){return Lt.apply(this,arguments),this},p.__private__.text=p.text=function(e,t,n,o,i){var a,s,l,u,c,f,d,p,v,g=(o=o||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var m=n;n=t,t=e,e=m}if(arguments[3]instanceof He==0?(l=arguments[4],u=arguments[5],"object"===(0,r.A)(d=arguments[3])&&null!==d||("string"==typeof l&&(u=l,l=null),"string"==typeof d&&(u=d,d=null),"number"==typeof d&&(l=d,d=null),o={flags:d,angle:l,align:u})):(_("The transform parameter of text() with a Matrix value"),v=i),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return g;var y="",A=!1,x="number"==typeof o.lineHeightFactor?o.lineHeightFactor:dn,C=g.internal.scaleFactor;function k(e){return e=e.split("\t").join(Array(o.TabLen||9).join(" ")),Pt(e,d)}function E(e){for(var t,n=e.concat(),r=[],o=n.length;o--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function O(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,o,i=e.concat(),a=[],s=i.length;s--;)"string"==typeof(r=i.shift())?a.push(t(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(o=t(r[0],r[1],r[2]),a.push([o[0],o[1],o[2]]));n=a}return n}var T=!1,P=!0;if("string"==typeof e)T=!0;else if(Array.isArray(e)){var N=e.concat();s=[];for(var M,L=N.length;L--;)("string"!=typeof(M=N.shift())||Array.isArray(M)&&"string"!=typeof M[0])&&(P=!1);T=P}if(!1===T)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var I=le/g.internal.scaleFactor,R=I*(x-1);switch(o.baseline){case"bottom":n-=R;break;case"top":n+=I-R;break;case"hanging":n+=I-2*R;break;case"middle":n+=I/2-R}if((f=o.maxWidth||0)>0&&("string"==typeof e?e=g.splitTextToSize(e,f):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(g.splitTextToSize(t,f))}),[]))),a={text:e,x:t,y:n,options:o,mutex:{pdfEscape:Pt,activeFontKey:ye,fonts:Ee,activeFontSize:le}},We.publish("preProcessText",a),e=a.text,l=(o=a.options).angle,v instanceof He==0&&l&&"number"==typeof l){l*=Math.PI/180,0===o.rotationDirection&&(l=-l),w===b.ADVANCED&&(l=-l);var j=Math.cos(l),D=Math.sin(l);v=new He(j,D,-D,j,0,0)}else l&&l instanceof He&&(v=l);w!==b.ADVANCED||v||(v=Ge),void 0!==(c=o.charSpace||En)&&(y+=S(F(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=o.horizontalScale)&&(y+=S(100*p)+" Tz\n"),o.lang;var B=-1,W=void 0!==o.renderingMode?o.renderingMode:o.stroke,z=g.internal.getCurrentPageInfo().pageContext;switch(W){case 0:case!1:case"fill":B=0;break;case 1:case!0:case"stroke":B=1;break;case 2:case"fillThenStroke":B=2;break;case 3:case"invisible":B=3;break;case 4:case"fillAndAddForClipping":B=4;break;case 5:case"strokeAndAddPathForClipping":B=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":B=6;break;case 7:case"addToPathForClipping":B=7}var U=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==B?y+=B+" Tr\n":-1!==U&&(y+="0 Tr\n"),-1!==B&&(z.usedRenderingMode=B),u=o.align||"left";var K,V=le*x,H=g.internal.pageSize.getWidth(),q=Ee[ye];c=o.charSpace||En,f=o.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},o.flags);var G=[];if("[object Array]"===Object.prototype.toString.call(e)){var Y;s=E(e),"left"!==u&&(K=s.map((function(e){return g.getStringUnitWidth(e,{font:q,charSpace:c,fontSize:le,doKerning:!1})*le/C})));var $,X=0;if("right"===u){t-=K[0],e=[],L=s.length;for(var J=0;J<L;J++)0===J?($=bn(t),Y=wn(n)):($=F(X-K[J]),Y=-V),e.push([s[J],$,Y]),X=K[J]}else if("center"===u){t-=K[0]/2,e=[],L=s.length;for(var Q=0;Q<L;Q++)0===Q?($=bn(t),Y=wn(n)):($=F((X-K[Q])/2),Y=-V),e.push([s[Q],$,Y]),X=K[Q]}else if("left"===u){e=[],L=s.length;for(var Z=0;Z<L;Z++)e.push(s[Z])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');e=[],L=s.length,f=0!==f?f:H;for(var ee=0;ee<L;ee++)Y=0===ee?wn(n):-V,$=0===ee?bn(t):0,ee<L-1?G.push(S(F((f-K[ee])/(s[ee].split(" ").length-1)))):G.push(0),e.push([s[ee],$,Y])}}var ne="boolean"==typeof o.R2L?o.R2L:fe;!0===ne&&(e=O(e,(function(e,t,n){return[e.split("").reverse().join(""),t,n]}))),a={text:e,x:t,y:n,options:o,mutex:{pdfEscape:Pt,activeFontKey:ye,fonts:Ee,activeFontSize:le}},We.publish("postProcessText",a),e=a.text,A=a.mutex.isHex||!1;var re=Ee[ye].encoding;"WinAnsiEncoding"!==re&&"StandardEncoding"!==re||(e=O(e,(function(e,t,n){return[k(e),t,n]}))),s=E(e),e=[];for(var oe,ie,ae,se=0,ue=1,ce=Array.isArray(s[0])?ue:se,de="",he=function(e,t,n){var r="";return n instanceof He?(n="number"==typeof o.angle?qe(n,new He(1,0,0,1,e,t)):qe(new He(1,0,0,1,e,t),n),w===b.ADVANCED&&(n=qe(new He(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=S(e)+" "+S(t)+" Td\n",r},pe=0;pe<s.length;pe++){switch(de="",ce){case ue:ae=(A?"<":"(")+s[pe][0]+(A?">":")"),oe=parseFloat(s[pe][1]),ie=parseFloat(s[pe][2]);break;case se:ae=(A?"<":"(")+s[pe]+(A?">":")"),oe=bn(t),ie=wn(n)}void 0!==G&&void 0!==G[pe]&&(de=G[pe]+" Tw\n"),0===pe?e.push(de+he(oe,ie,v)+ae):ce===se?e.push(de+ae):ce===ue&&e.push(de+he(oe,ie,v)+ae)}e=ce===se?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var ve="BT\n/";return ve+=ye+" "+le+" Tf\n",ve+=S(le*x)+" TL\n",ve+=_n+"\n",ve+=y,ve+=e,te(ve+="ET"),h[ye]=!0,g};var Qt=p.__private__.clip=p.clip=function(e){return te("evenodd"===e?"W*":"W"),this};p.clipEvenOdd=function(){return Qt("evenodd")},p.__private__.discardPath=p.discardPath=function(){return te("n"),this};var Zt=p.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(e){return Zt(e)&&(c=e),this};var en=p.__private__.getStyle=p.getStyle=function(e){var t=c;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},tn=p.close=function(){return te("h"),this};p.stroke=function(){return te("S"),this},p.fill=function(e){return nn("f",e),this},p.fillEvenOdd=function(e){return nn("f*",e),this},p.fillStroke=function(e){return nn("B",e),this},p.fillStrokeEvenOdd=function(e){return nn("B*",e),this};var nn=function(e,t){"object"===(0,r.A)(t)?an(t,e):te(e)},rn=function(e){null===e||w===b.ADVANCED&&void 0===e||(e=en(e),te(e))};function on(e,t,n,r,o){var i=new Fe(t||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,o||this.matrix);i.stream=this.stream;var a=e+"$$"+this.cloneIndex+++"$$";return Ye(a,i),i}var an=function(e,t){var n=Le[e.key],r=Me[n];if(r instanceof Oe)te("q"),te(sn(t)),r.gState&&p.setGState(r.gState),te(e.matrix.toString()+" cm"),te("/"+n+" sh"),te("Q");else if(r instanceof Fe){var o=new He(1,0,0,-1,0,Wn());e.matrix&&(o=o.multiply(e.matrix||Ge),n=on.call(r,e.key,e.boundingBox,e.xStep,e.yStep,o).id),te("q"),te("/Pattern cs"),te("/"+n+" scn"),r.gState&&p.setGState(r.gState),te(t),te("Q")}},sn=function(e){switch(e){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ln=p.moveTo=function(e,t){return te(S(F(e))+" "+S(P(t))+" m"),this},un=p.lineTo=function(e,t){return te(S(F(e))+" "+S(P(t))+" l"),this},cn=p.curveTo=function(e,t,n,r,o,i){return te([S(F(e)),S(P(t)),S(F(n)),S(P(r)),S(F(o)),S(P(i)),"c"].join(" ")),this};p.__private__.line=p.line=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Zt(o))throw new Error("Invalid arguments passed to jsPDF.line");return w===b.COMPAT?this.lines([[n-e,r-t]],e,t,[1,1],o||"S"):this.lines([[n-e,r-t]],e,t,[1,1]).stroke()},p.__private__.lines=p.lines=function(e,t,n,r,o,i){var a,s,l,u,c,f,d,h,p,v,g,m;if("number"==typeof e&&(m=n,n=t,t=e,e=m),r=r||[1,1],i=i||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Zt(o)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(ln(t,n),a=r[0],s=r[1],u=e.length,v=t,g=n,l=0;l<u;l++)2===(c=e[l]).length?(v=c[0]*a+v,g=c[1]*s+g,un(v,g)):(f=c[0]*a+v,d=c[1]*s+g,h=c[2]*a+v,p=c[3]*s+g,v=c[4]*a+v,g=c[5]*s+g,cn(f,d,h,p,v,g));return i&&tn(),rn(o),this},p.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.c;switch(n.op){case"m":ln(r[0],r[1]);break;case"l":un(r[0],r[1]);break;case"c":cn.apply(this,r);break;case"h":tn()}}return this},p.__private__.rect=p.rect=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Zt(o))throw new Error("Invalid arguments passed to jsPDF.rect");return w===b.COMPAT&&(r=-r),te([S(F(e)),S(P(t)),S(F(n)),S(F(r)),"re"].join(" ")),rn(o),this},p.__private__.triangle=p.triangle=function(e,t,n,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!Zt(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[o-n,i-r],[e-o,t-i]],e,t,[1,1],a,!0),this},p.__private__.roundedRect=p.roundedRect=function(e,t,n,r,o,i,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i)||!Zt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return o=Math.min(o,.5*n),i=Math.min(i,.5*r),this.lines([[n-2*o,0],[o*s,0,o,i-i*s,o,i],[0,r-2*i],[0,i*s,-o*s,i,-o,i],[2*o-n,0],[-o*s,0,-o,-i*s,-o,-i],[0,2*i-r],[0,-i*s,o*s,-i,o,-i]],e+o,t,[1,1],a,!0),this},p.__private__.ellipse=p.ellipse=function(e,t,n,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Zt(o))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return ln(e+n,t),cn(e+n,t-a,e+i,t-r,e,t-r),cn(e-i,t-r,e-n,t-a,e-n,t),cn(e-n,t+a,e-i,t+r,e,t+r),cn(e+i,t+r,e+n,t+a,e+n,t),rn(o),this},p.__private__.circle=p.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!Zt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},p.setFont=function(e,t,n){return n&&(t=C(t,n)),ye=jt(e,t,{disableWarning:!1}),this};var fn=p.__private__.getFont=p.getFont=function(){return Ee[jt.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var e,t,n={};for(e in Pe)if(Pe.hasOwnProperty(e))for(t in n[e]=[],Pe[e])Pe[e].hasOwnProperty(t)&&n[e].push(t);return n},p.addFont=function(e,t,n,r,o){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?o=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=C(n,r)),o=o||"Identity-H",Et.call(this,e,t,n,o)};var dn,hn=e.lineWidth||.200025,pn=p.__private__.getLineWidth=p.getLineWidth=function(){return hn},vn=p.__private__.setLineWidth=p.setLineWidth=function(e){return hn=e,te(S(F(e))+" w"),this};p.__private__.setLineDash=Te.API.setLineDash=Te.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return S(F(e))})).join(" "),t=S(F(t)),te("["+e+"] "+t+" d"),this};var gn=p.__private__.getLineHeight=p.getLineHeight=function(){return le*dn};p.__private__.getLineHeight=p.getLineHeight=function(){return le*dn};var mn=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(dn=e),this},yn=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return dn};mn(e.lineHeight);var bn=p.__private__.getHorizontalCoordinate=function(e){return F(e)},wn=p.__private__.getVerticalCoordinate=function(e){return w===b.ADVANCED?e:Be[W].mediaBox.topRightY-Be[W].mediaBox.bottomLeftY-F(e)},An=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(e){return S(bn(e))},xn=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(e){return S(wn(e))},Cn=e.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return tt(Cn)},p.__private__.setStrokeColor=p.setDrawColor=function(e,t,n,r){return Cn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),te(Cn),this};var Sn=e.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return tt(Sn)},p.__private__.setFillColor=p.setFillColor=function(e,t,n,r){return Sn=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),te(Sn),this};var _n=e.textColor||"0 g",kn=p.__private__.getTextColor=p.getTextColor=function(){return tt(_n)};p.__private__.setTextColor=p.setTextColor=function(e,t,n,r){return _n=nt({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var En=e.charSpace,On=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(En||0)};p.__private__.setCharSpace=p.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return En=e,this};var Fn=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(e){var t=p.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Fn=t,te(t+" J"),this};var Tn=0;p.__private__.setLineJoin=p.setLineJoin=function(e){var t=p.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Tn=t,te(t+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return te(S(F(e))+" M"),this},p.GState=ke,p.setGState=function(e){(e="string"==typeof e?Ie[Re[e]]:Pn(null,e)).equals(je)||(te("/"+e.id+" gs"),je=e)};var Pn=function(e,t){if(!e||!Re[e]){var n=!1;for(var r in Ie)if(Ie.hasOwnProperty(r)&&Ie[r].equals(t)){n=!0;break}if(n)t=Ie[r];else{var o="GS"+(Object.keys(Ie).length+1).toString(10);Ie[o]=t,t.id=o}return e&&(Re[e]=t.id),We.publish("addGState",t),t}};p.addGState=function(e,t){return Pn(e,t),this},p.saveGraphicsState=function(){return te("q"),Ne.push({key:ye,size:le,color:_n}),this},p.restoreGraphicsState=function(){te("Q");var e=Ne.pop();return ye=e.key,le=e.size,_n=e.color,je=null,this},p.setCurrentTransformationMatrix=function(e){return te(e.toString()+" cm"),this},p.comment=function(e){return te("#"+e),this};var Nn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var o="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return o},set:function(e){o=e.toString()}}),this},Mn=function(e,t,n,r){Nn.call(this,e,t),this.type="rect";var o=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}}),this},Ln=function(){this.page=De,this.currentPage=W,this.pages=Y.slice(0),this.pagesContext=Be.slice(0),this.x=we,this.y=Ae,this.matrix=xe,this.width=Dn(W),this.height=Wn(W),this.outputDestination=X,this.id="",this.objectNumber=-1};Ln.prototype.restore=function(){De=this.page,W=this.currentPage,Be=this.pagesContext,Y=this.pages,we=this.x,Ae=this.y,xe=this.matrix,Bn(W,this.width),zn(W,this.height),X=this.outputDestination};var In=function(e,t,n,r,o){Ve.push(new Ln),De=W=0,Y=[],we=e,Ae=t,xe=o,Nt([n,r])},Rn=function(e){if(Ke[e])Ve.pop().restore();else{var t=new Ln,n="Xo"+(Object.keys(Ue).length+1).toString(10);t.id=n,Ke[e]=n,Ue[n]=t,We.publish("addFormObject",t),Ve.pop().restore()}};for(var jn in p.beginFormObject=function(e,t,n,r,o){return In(e,t,n,r,o),this},p.endFormObject=function(e){return Rn(e),this},p.doFormObject=function(e,t){var n=Ue[Ke[e]];return te("q"),te(t.toString()+" cm"),te("/"+n.id+" Do"),te("Q"),this},p.getFormObject=function(e){var t=Ue[Ke[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},p.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(ie(Vt(Kt()),e),"function"==typeof ie.unload&&J.setTimeout&&setTimeout(ie.unload,911),this):new Promise((function(t,n){try{var r=ie(Vt(Kt()),e);"function"==typeof ie.unload&&J.setTimeout&&setTimeout(ie.unload,911),t(r)}catch(e){n(e.message)}}))},Te.API)Te.API.hasOwnProperty(jn)&&("events"===jn&&Te.API.events.length?function(e,t){var n,r,o;for(o=t.length-1;-1!==o;o--)n=t[o][0],r=t[o][1],e.subscribe.apply(e,[n].concat("function"==typeof r?[r]:r))}(We,Te.API.events):p[jn]=Te.API[jn]);var Dn=p.getPageWidth=function(e){return(Be[e=e||W].mediaBox.topRightX-Be[e].mediaBox.bottomLeftX)/be},Bn=p.setPageWidth=function(e,t){Be[e].mediaBox.topRightX=t*be+Be[e].mediaBox.bottomLeftX},Wn=p.getPageHeight=function(e){return(Be[e=e||W].mediaBox.topRightY-Be[e].mediaBox.bottomLeftY)/be},zn=p.setPageHeight=function(e,t){Be[e].mediaBox.topRightY=t*be+Be[e].mediaBox.bottomLeftY};return p.internal={pdfEscape:Pt,getStyle:en,getFont:fn,getFontSize:ce,getCharSpace:On,getTextColor:kn,getLineHeight:gn,getLineHeightFactor:yn,getLineWidth:pn,write:ne,getHorizontalCoordinate:bn,getVerticalCoordinate:wn,getCoordinateString:An,getVerticalCoordinateString:xn,collections:{},newObject:$e,newAdditionalObject:Qe,newObjectDeferred:Xe,newObjectDeferredBegin:Je,getFilters:rt,putStream:ot,events:We,scaleFactor:be,pageSize:{getWidth:function(){return Dn(W)},setWidth:function(e){Bn(W,e)},getHeight:function(){return Wn(W)},setHeight:function(e){zn(W,e)}},encryptionOptions:f,encryption:Gt,getEncryptor:Yt,output:Ht,getNumberOfPages:Rt,pages:Y,out:te,f2:E,f3:O,getPageInfo:$t,getPageInfoByObjId:Xt,getCurrentPageInfo:Jt,getPDFVersion:g,Point:Nn,Rectangle:Mn,Matrix:He,hasHotfix:qt},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return Dn(W)},set:function(e){Bn(W,e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return Wn(W)},set:function(e){zn(W,e)},enumerable:!0,configurable:!0}),Ot.call(p,se),ye="F1",Mt(i,n),We.publish("initialized"),p}Ce.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Ce.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Ce.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Ce.prototype.processOwnerPassword=function(e,t){return Ae(ye(t).substr(0,5),e)},Ce.prototype.encryptor=function(e,t){var n=ye(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return Ae(n,e)}},ke.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||(0,r.A)(e)!==(0,r.A)(this))return!1;var o=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;o++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&o--;return 0===o},Te.API={events:[]},Te.version="2.5.1";var Pe=Te.API,Ne=1,Me=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Le=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ie=function(e){return e.toFixed(2)},Re=function(e){return e.toFixed(5)};Pe.__acroform__={};var je=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},De=function(e){return e*Ne},Be=function(e){var t=new rt,n=mt.internal.getHeight(e)||0,r=mt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Ie(r)),Number(Ie(n))],t},We=Pe.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},ze=Pe.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Ue=Pe.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},Ke=Pe.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ue(e,t-1)},Ve=Pe.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return We(e,t-1)},He=Pe.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return ze(e,t-1)},qe=Pe.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,o=e[0],i=e[1],a=e[2],s=e[3],l={};return l.lowerLeft_X=n(o)||0,l.lowerLeft_Y=r(i+s)||0,l.upperRight_X=n(o+a)||0,l.upperRight_Y=r(i)||0,[Number(Ie(l.lowerLeft_X)),Number(Ie(l.lowerLeft_Y)),Number(Ie(l.upperRight_X)),Number(Ie(l.upperRight_Y))]},Ge=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,r=Ye(e,n),o=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+o+" "+Ie(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Be(e);return i.scope=e.scope,i.stream=t.join("\n"),i}},Ye=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},o=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");o=e.multiline?o.map((function(e){return e.split("\n")})):o.map((function(e){return[e]}));var i=n,a=mt.internal.getHeight(e)||0;a=a<0?-a:a;var s=mt.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(t,n,r){if(t+1<o.length){var i=n+" "+o[t+1][0];return $e(i,e,r).width<=s-4}return!1};i++;e:for(;i>0;){t="",i--;var u,c,f=$e("3",e,i).height,d=e.multiline?a-i:(a-f)/2,h=d+=2,p=0,v=0,g=0;if(i<=0){t="(...) Tj\n",t+="% Width of Text: "+$e(t,e,i=12).width+", FieldWidth:"+s+"\n";break}for(var m="",y=0,b=0;b<o.length;b++)if(o.hasOwnProperty(b)){var w=!1;if(1!==o[b].length&&g!==o[b].length-1){if((f+2)*(y+2)+2>a)continue e;m+=o[b][g],w=!0,v=b,b--}else{m=" "==(m+=o[b][g]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var A=parseInt(b),x=l(A,m,i),C=b>=o.length-1;if(x&&!C){m+=" ",g=0;continue}if(x||C){if(C)v=A;else if(e.multiline&&(f+2)*(y+2)+2>a)continue e}else{if(!e.multiline)continue e;if((f+2)*(y+2)+2>a)continue e;v=A}}for(var S="",_=p;_<=v;_++){var k=o[_];if(e.multiline){if(_===v){S+=k[g]+" ",g=(g+1)%k.length;continue}if(_===p){S+=k[k.length-1]+" ";continue}}S+=k[0]+" "}switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,c=$e(S,e,i).width,e.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;case"left":default:u=2}t+=Ie(u)+" "+Ie(h)+" Td\n",t+="("+Me(S)+") Tj\n",t+=-Ie(u)+" 0 Td\n",h=-(i+2),c=0,p=w?v:v+1,y++,m=""}break}return r.text=t,r.fontSize=i,r},$e=function(e,t,n){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:o}},Xe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Je=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===n.type&&e.object===n.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},Qe=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var o=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,r.A)(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[o]}},Ze=function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(it.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Xe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ne=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new ot,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r.objId=void 0,r.hasAnnotation&&Je(r,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var n=!e;for(var o in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(o)){var i=e[o],a=[],s=i.Rect;if(i.Rect&&(i.Rect=qe(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=mt.createDefaultAppearanceStream(i),"object"===(0,r.A)(i)&&"function"==typeof i.getKeyValueListForStream&&(a=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var l=Ge(i);a.push({key:"AP",value:"<</N "+l+">>"}),t.internal.acroformPlugin.xForms.push(l)}if(i.appearanceStreamContent){var u="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var f=i.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var d=f[o];"function"==typeof d&&(d=d.call(t,i)),u+="/"+o+" "+d+" ",t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d)}}else"function"==typeof(d=f)&&(d=d.call(t,i)),u+="/"+o+" "+d,t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d);u+=">>"}a.push({key:"AP",value:"<<\n"+u+">>"})}t.internal.putStream({additionalKeyValues:a,objectId:i.objId}),t.internal.out("endobj")}n&&Qe(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}},et=Pe.__acroform__.arrayToPdfArray=function(e,t,n){var o=function(e){return e};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(0!==a&&(i+=" "),(0,r.A)(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":"/"!==e[a].substr(0,1)?(void 0!==t&&n&&(o=n.internal.getEncryptor(t)),i+="("+Me(o(e[a].toString()))+")"):i+=e[a].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},tt=function(e,t,n){var r=function(e){return e};return void 0!==t&&n&&(r=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Me(r(e))+")"},nt=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};nt.prototype.toString=function(){return this.objId+" 0 R"},nt.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},nt.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var r=t[n],o=this[r];o&&(Array.isArray(o)?e.push({key:r,value:et(o,this.objId,this.scope)}):o instanceof nt?(o.scope=this.scope,e.push({key:r,value:o.objId+" 0 R"})):"function"!=typeof o&&e.push({key:r,value:o}))}return e};var rt=function(){nt.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};je(rt,nt);var ot=function(){nt.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Me(t(e))+")"}},set:function(t){e=t}})};je(ot,nt);var it=function e(){nt.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(t,3))},set:function(e){!0===Boolean(e)?this.F=Ve(t,3):this.F=He(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof ht)return;i="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Me(t(i))+")"},set:function(e){i=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/Ne:u},set:function(e){u=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof ht||this instanceof vt))return tt(f,this.objId,this.scope)},set:function(e){e=e.toString(),f=e}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ct==0?tt(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof ct==0?"("===e.substr(0,1)?Le(e.substr(1,e.length-2)):Le(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ct==1?Le(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof ct==1?"/"+e:e}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ct==0?tt(h,this.objId,this.scope):h},set:function(e){e=e.toString(),h=this instanceof ct==0?"("===e.substr(0,1)?Le(e.substr(1,e.length-2)):Le(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ct==1?Le(h.substr(1,h.length-1)):h},set:function(e){e=e.toString(),h=this instanceof ct==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(e){e=Boolean(e),v=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(e){p=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,1):this.Ff=He(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,2):this.Ff=He(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,3):this.Ff=He(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};je(it,nt);var at=function(){it.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return et(t,this.objId,this.scope)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,o=[];r=t.exec(e);)o.push(r[n]);return o}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,18):this.Ff=He(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=Ve(this.Ff,19):this.Ff=He(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=Ve(this.Ff,20),t.sort()):this.Ff=He(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,22):this.Ff=He(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,23):this.Ff=He(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,27):this.Ff=He(this.Ff,27)}}),this.hasAppearanceStream=!1};je(at,it);var st=function(){at.call(this),this.fontName="helvetica",this.combo=!1};je(st,at);var lt=function(){st.call(this),this.combo=!0};je(lt,st);var ut=function(){lt.call(this),this.edit=!0};je(ut,lt);var ct=function(){it.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,15):this.Ff=He(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,16):this.Ff=He(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,17):this.Ff=He(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,26):this.Ff=He(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,r=[];for(n in r.push("<<"),t)r.push("/"+n+" ("+Me(e(t[n]))+")");return r.push(">>"),r.join("\n")}},set:function(e){"object"===(0,r.A)(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};je(ct,it);var ft=function(){ct.call(this),this.pushButton=!0};je(ft,ct);var dt=function(){ct.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};je(dt,ct);var ht=function(){var e,t;it.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),o)n.push("/"+t+" ("+Me(e(o[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===(0,r.A)(e)&&(o=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(e){"string"==typeof e&&(o.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=mt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};je(ht,it),dt.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},dt.prototype.createOption=function(e){var t=new ht;return t.Parent=this,t.optionName=e,this.Kids.push(t),yt.call(this.scope,t),t};var pt=function(){ct.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=mt.CheckBox.createAppearanceStream()};je(pt,ct);var vt=function(){it.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,13):this.Ff=He(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,21):this.Ff=He(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,23):this.Ff=He(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,24):this.Ff=He(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,25):this.Ff=He(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,26):this.Ff=He(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};je(vt,it);var gt=function(){vt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Ke(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=Ve(this.Ff,14):this.Ff=He(this.Ff,14)}}),this.password=!0};je(gt,vt);var mt={CheckBox:{createAppearanceStream:function(){return{N:{On:mt.CheckBox.YesNormal},D:{On:mt.CheckBox.YesPushDown,Off:mt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Be(e);t.scope=e.scope;var n=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),i=Ye(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+Ie(mt.internal.getWidth(e))+" "+Ie(mt.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+Ie(i.fontSize)+" Tf "+o),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=Be(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),o=[],i=mt.internal.getHeight(e),a=mt.internal.getWidth(e),s=Ye(e,e.caption);return o.push("1 g"),o.push("0 0 "+Ie(a)+" "+Ie(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+Ie(a-1)+" "+Ie(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+n+" "+Ie(s.fontSize)+" Tf "+r),o.push(s.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=Be(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ie(mt.internal.getWidth(e))+" "+Ie(mt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:mt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=mt.RadioButton.Circle.YesNormal,t.D[e]=mt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Be(e);t.scope=e.scope;var n=[],r=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=mt.internal.Bezier_C,i=Number((r*o).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Re(mt.internal.getWidth(e)/2)+" "+Re(mt.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Be(e);t.scope=e.scope;var n=[],r=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*mt.internal.Bezier_C).toFixed(5)),a=Number((r*mt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Re(mt.internal.getWidth(e)/2)+" "+Re(mt.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Re(mt.internal.getWidth(e)/2)+" "+Re(mt.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Be(e);t.scope=e.scope;var n=[],r=mt.internal.getWidth(e)<=mt.internal.getHeight(e)?mt.internal.getWidth(e)/4:mt.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var o=Number((2*r).toFixed(5)),i=Number((o*mt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Re(mt.internal.getWidth(e)/2)+" "+Re(mt.internal.getHeight(e)/2)+" cm"),n.push(o+" 0 m"),n.push(o+" "+i+" "+i+" "+o+" 0 "+o+" c"),n.push("-"+i+" "+o+" -"+o+" "+i+" -"+o+" 0 c"),n.push("-"+o+" -"+i+" -"+i+" -"+o+" 0 -"+o+" c"),n.push(i+" -"+o+" "+o+" -"+i+" "+o+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:mt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=mt.RadioButton.Cross.YesNormal,t.D[e]=mt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Be(e);t.scope=e.scope;var n=[],r=mt.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+Ie(mt.internal.getWidth(e)-2)+" "+Ie(mt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Ie(r.x1.x)+" "+Ie(r.x1.y)+" m"),n.push(Ie(r.x2.x)+" "+Ie(r.x2.y)+" l"),n.push(Ie(r.x4.x)+" "+Ie(r.x4.y)+" m"),n.push(Ie(r.x3.x)+" "+Ie(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Be(e);t.scope=e.scope;var n=mt.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ie(mt.internal.getWidth(e))+" "+Ie(mt.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ie(mt.internal.getWidth(e)-2)+" "+Ie(mt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Ie(n.x1.x)+" "+Ie(n.x1.y)+" m"),r.push(Ie(n.x2.x)+" "+Ie(n.x2.y)+" l"),r.push(Ie(n.x4.x)+" "+Ie(n.x4.y)+" m"),r.push(Ie(n.x3.x)+" "+Ie(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=Be(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ie(mt.internal.getWidth(e))+" "+Ie(mt.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};mt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=mt.internal.getWidth(e),n=mt.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},mt.internal.getWidth=function(e){var t=0;return"object"===(0,r.A)(e)&&(t=De(e.Rect[2])),t},mt.internal.getHeight=function(e){var t=0;return"object"===(0,r.A)(e)&&(t=De(e.Rect[3])),t};var yt=Pe.addField=function(e){if(Ze(this,e),!(e instanceof it))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Pe.AcroFormChoiceField=at,Pe.AcroFormListBox=st,Pe.AcroFormComboBox=lt,Pe.AcroFormEditBox=ut,Pe.AcroFormButton=ct,Pe.AcroFormPushButton=ft,Pe.AcroFormRadioButton=dt,Pe.AcroFormCheckBox=pt,Pe.AcroFormTextField=vt,Pe.AcroFormPasswordField=gt,Pe.AcroFormAppearance=mt,Pe.AcroForm={ChoiceField:at,ListBox:st,ComboBox:lt,EditBox:ut,Button:ct,PushButton:ft,RadioButton:dt,CheckBox:pt,TextField:vt,PasswordField:gt,Appearance:mt},Te.AcroForm={ChoiceField:at,ListBox:st,ComboBox:lt,EditBox:ut,Button:ct,PushButton:ft,RadioButton:dt,CheckBox:pt,TextField:vt,PasswordField:gt,Appearance:mt};Te.AcroForm;function bt(e){return e.reduce((function(e,t,n){return e[t]=n,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=e.__addimage__.getImageFileTypeByImageData=function(e,r){var o,i,a,s,l,u=t;if("RGBA"===(r=r||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(C(e))for(l in n)for(a=n[l],o=0;o<a.length;o+=1){for(s=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e[i]){s=!1;break}if(!0===s){u=l;break}}else for(l in n)for(a=n[l],o=0;o<a.length;o+=1){for(s=!0,i=0;i<a[o].length;i+=1)if(void 0!==a[o][i]&&a[o][i]!==e.charCodeAt(i)){s=!1;break}if(!0===s){u=l;break}}return u===t&&r!==t&&(u=r),u},i=function e(t){for(var n=this.internal.write,r=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===m.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===m.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var a="",s=0,l=t.transparency.length;s<l;s++)a+=t.transparency[s]+" "+t.transparency[s]+" ";i.push({key:"Mask",value:"["+a+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var u=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:u,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var c="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,f={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:c,data:t.sMask};"filter"in t&&(f.filter=t.filter),e.call(this,f)}if(t.colorSpace===m.INDEXED){var d=this.internal.newObject();r({data:_(new Uint8Array(t.palette)),objectId:d}),n("endobj")}},a=function(){var e=this.internal.collections.addImage_images;for(var t in e)i.call(this,e[t])},s=function(){var e,t=this.internal.collections.addImage_images,n=this.internal.write;for(var r in t)n("/I"+(e=t[r]).index,e.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var e=this.internal.collections.addImage_images;return l.call(this),e},c=function(){return Object.keys(this.internal.collections.addImage_images).length},f=function(t){return"function"==typeof e["process"+t.toUpperCase()]},d=function(e){return"object"===(0,r.A)(e)&&1===e.nodeType},h=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return re(unescape(r).split("base64,").pop());var o=e.loadFile(r,!0);if(void 0!==o)return o}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var i;switch(n){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;case"JPEG":case"JPG":default:i="image/jpeg"}return re(t.toDataURL(i,1).split("base64,").pop())}},p=function(e){var t=this.internal.collections.addImage_images;if(t)for(var n in t)if(e===t[n].alias)return t[n]},v=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},g=function(e,t,n,r,o,i){var a=v.call(this,n,r,o),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=u.call(this);if(n=a[0],r=a[1],c[o.index]=o,i){i*=Math.PI/180;var f=Math.cos(i),d=Math.sin(i),h=function(e){return e.toFixed(4)},p=[h(f),h(d),h(-1*d),h(f),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(e),l(t+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(e),l(t+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+o.index+" Do"),this.internal.write("Q")},m=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},b=e.__addimage__.sHashCode=function(e){var t,n,r=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;else if(C(e))for(n=e.byteLength/2,t=0;t<n;t++)r=(r<<5)-r+e[t],r|=0;return r},w=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},A=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:t[1]})}return n},x=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return x()&&e instanceof ArrayBuffer};var C=e.__addimage__.isArrayBufferView=function(e){return x()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},S=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},_=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=C(e)?e:new Uint8Array(e),r=0;r<n.length;r+=8192)t+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return t};e.addImage=function(){var e,n,o,i,a,s,u,c,f;if("number"==typeof arguments[1]?(n=t,o=arguments[1],i=arguments[2],a=arguments[3],s=arguments[4],u=arguments[5],c=arguments[6],f=arguments[7]):(n=arguments[1],o=arguments[2],i=arguments[3],a=arguments[4],s=arguments[5],u=arguments[6],c=arguments[7],f=arguments[8]),"object"===(0,r.A)(e=arguments[0])&&!d(e)&&"imageData"in e){var h=e;e=h.imageData,n=h.format||n||t,o=h.x||o||0,i=h.y||i||0,a=h.w||h.width||a,s=h.h||h.height||s,u=h.alias||u,c=h.compression||c,f=h.rotation||h.angle||f}var p=this.internal.getFilters();if(void 0===c&&-1!==p.indexOf("FlateEncode")&&(c="SLOW"),isNaN(o)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var v=k.call(this,e,n,u,c);return g.call(this,o,i,a,s,v,f),this};var k=function(n,r,i,a){var s,l,u;if("string"==typeof n&&o(n)===t){n=unescape(n);var v=E(n,!1);(""!==v||void 0!==(v=e.loadFile(n,!0)))&&(n=v)}if(d(n)&&(n=h(n,r)),r=o(n,r),!f(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(u=i)||0===u.length)&&(i=function(e){return"string"==typeof e||C(e)?b(e):C(e.data)?b(e.data):null}(n)),(s=p.call(this,i))||(x()&&(n instanceof Uint8Array||"RGBA"===r||(l=n,n=S(n))),s=this["process"+r.toUpperCase()](n,c.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:y.NONE}(a),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},E=e.__addimage__.convertBase64ToBinaryString=function(e,t){var n;t="boolean"!=typeof t||t;var r,o="";if("string"==typeof e){r=null!==(n=A(e))?n.data:e;try{o=re(r)}catch(e){if(t)throw w(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return o};e.getImageProperties=function(n){var r,i,a="";if(d(n)&&(n=h(n)),"string"==typeof n&&o(n)===t&&(""===(a=E(n,!1))&&(a=e.loadFile(n)||""),n=a),i=o(n),!f(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!x()||n instanceof Uint8Array||(n=S(n)),!(r=this["process"+i.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=i,r}}(Te.API),
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};Te.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var n,r,o,i=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),l=e.pageContext.annotations,u=!1,c=0;c<l.length&&!u;c++)switch((n=l[c]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var f=0;f<l.length;f++){n=l[f];var d=this.internal.pdfEscape,h=this.internal.getEncryptor(e.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),v=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(p.objId),m=n.title||"Note";o="<</Type /Annot /Subtype /Text "+(r="/Rect ["+i(n.bounds.x)+" "+a(n.bounds.y+n.bounds.h)+" "+i(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y)+"] ")+"/Contents ("+d(g(n.contents))+")",o+=" /Popup "+v.objId+" 0 R",o+=" /P "+s.objId+" 0 R",o+=" /T ("+d(g(m))+") >>",p.content=o;var y=p.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+i(n.bounds.x+30)+" "+a(n.bounds.y+n.bounds.h)+" "+i(n.bounds.x+n.bounds.w+30)+" "+a(n.bounds.y)+"] ")+" /Parent "+y,n.open&&(o+=" /Open true"),o+=" >>",v.content=o,this.internal.write(p.objId,"0 R",v.objId,"0 R");break;case"freetext":r="/Rect ["+i(n.bounds.x)+" "+a(n.bounds.y)+" "+i(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y+n.bounds.h)+"] ";var b=n.color||"#000000";o="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+d(h(n.contents))+")",o+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(n.options.name){var w=this.annotations._nameMap[n.options.name];n.options.pageNumber=w.page,n.options.top=w.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",o="",n.options.url)o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+d(h(n.options.url))+") >>";else if(n.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":o+=" /Fit]";break;case"FitH":o+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,o+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var A=a(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),o+=" /XYZ "+n.options.left+" "+A+" "+n.options.zoom+"]"}""!=o&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,n,r,o){var i=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:a(e),y:s(t),w:a(e+n),h:s(t+r)},options:o,type:"link"})},e.textWithLink=function(e,t,n,r){var o,i,a=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){i=r.maxWidth;var l=this.splitTextToSize(e,i).length;o=Math.ceil(s*l)}else i=a,o=s;return this.text(e,t,n,r),n+=.2*s,"center"===r.align&&(t-=a/2),"right"===r.align&&(t-=a),this.link(t,n-s,i,o,r),a},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(Te.API),
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},a=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return a(e)&&o.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return a(e)&&i(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return a(e)&&i(e)&&4==t[e.charCodeAt(0)].length},f=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,o="",i=0;for(t=0;t<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(i++,"number"==typeof(r=r[e.charCodeAt(t)])&&(o+=String.fromCharCode(r),r=n,i=0),t===e.length-1&&(r=n,o+=e.charAt(t-(i-1)),t-=i-1,i=0)):(r=n,o+=e.charAt(t-i),t-=i,i=0);return o};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]};var d=e.__arabicParser__.getCorrectForm=function(e,t,n){return a(e)?!1===i(e)?-1:!u(e)||!a(t)&&!a(n)||!a(n)&&s(t)||s(e)&&!a(t)||s(e)&&l(t)||s(e)&&s(t)?0:c(e)&&a(t)&&!s(t)&&a(n)&&u(n)?3:s(e)||!a(n)?1:2:-1},h=function(e){var n=0,r=0,o=0,i="",s="",l="",u=(e=e||"").split("\\s+"),c=[];for(n=0;n<u.length;n+=1){for(c.push(""),r=0;r<u[n].length;r+=1)i=u[n][r],s=u[n][r-1],l=u[n][r+1],a(i)?(o=d(i,s,l),c[n]+=-1!==o?String.fromCharCode(t[i.charCodeAt(0)][o]):i):c[n]+=i;c[n]=f(c[n])}return c.join(" ")},p=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var r=0;for(n=[],r=0;r<t.length;r+=1)Array.isArray(t[r])?n.push([h(t[r][0]),t[r][1],t[r][2]]):n.push([h(t[r])]);e=n}else e=h(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",p])}(Te.API),Te.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Te.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,o=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var o=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(e){a=e}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return o.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){o.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),r=t.font||this.getFont(),i=t.scaleFactor||this.internal.scaleFactor,a=0,s=0,l=0,u=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(u.splitTextToSize(t,c))}),[])):e=Array.isArray(e)?e:[e];for(var f=0;f<e.length;f++)a<(l=this.getStringUnitWidth(e[f],{font:r})*n)&&(a=l);return 0!==a&&(s=e.length),{w:a/=i,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},e.cellAddPage=function(){o.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),o.call(this);var r=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,l=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===e.lineNumber?(e.x=(r.x||0)+(r.width||0),e.y=r.y||0):r.y+r.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,u&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=r.y+r.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-i,e.y+i,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+i,{align:"center",baseline:"top",maxWidth:e.width-i-i}):this.text(e.text,e.x+i,e.y+i,{align:"left",baseline:"top",maxWidth:e.width-i-i})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,u,c,f){if(o.call(this),!u)throw new Error("No data for PDF table.");var d,h,p,v,g=[],m=[],y=[],b={},w={},A=[],x=[],C=(f=f||{}).autoSize||!1,S=!1!==f.printHeaders,_=f.css&&void 0!==f.css["font-size"]?16*f.css["font-size"]:f.fontSize||12,k=f.margins||Object.assign({width:this.getPageWidth()},t),E="number"==typeof f.padding?f.padding:3,O=f.headerBackgroundColor||"#c8c8c8",F=f.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=S,this.internal.__cell__.margins=k,this.internal.__cell__.table_font_size=_,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=O,this.internal.__cell__.headerTextColor=F,this.setFontSize(_),null==c)m=g=Object.keys(u[0]),y=g.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===(0,r.A)(c[0]))for(g=c.map((function(e){return e.name})),m=c.map((function(e){return e.prompt||e.name||""})),y=c.map((function(e){return e.align||"left"})),d=0;d<c.length;d+=1)w[c[d].name]=c[d].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(m=g=c,y=g.map((function(){return"left"})));if(C||Array.isArray(c)&&"string"==typeof c[0])for(d=0;d<g.length;d+=1){for(b[v=g[d]]=u.map((function(e){return e[v]})),this.setFont(void 0,"bold"),A.push(this.getTextDimensions(m[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=b[v],this.setFont(void 0,"normal"),p=0;p<h.length;p+=1)A.push(this.getTextDimensions(h[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[v]=Math.max.apply(null,A)+E+E,A=[]}if(S){var T={};for(d=0;d<g.length;d+=1)T[g[d]]={},T[g[d]].text=m[d],T[g[d]].align=y[d];var P=l.call(this,T,w);x=g.map((function(t){return new a(e,n,w[t],P,T[t].text,void 0,T[t].align)})),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var N=c.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(d=0;d<u.length;d+=1){"rowStart"in f&&f.rowStart instanceof Function&&f.rowStart({row:d,data:u[d]},this);var M=l.call(this,u[d],w);for(p=0;p<g.length;p+=1){var L=u[d][g[p]];"cellStart"in f&&f.cellStart instanceof Function&&f.cellStart({row:d,col:p,data:L},this),s.call(this,new a(e,n,w[g[p]],M,L,d+2,N[g[p]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var l=function(e,t){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,o=this.internal.scaleFactor;return Object.keys(e).map((function(r){var o=e[r];return this.splitTextToSize(o.hasOwnProperty("text")?o.text:o,t[r]-n-n)}),this).map((function(e){return this.getLineHeightFactor()*e.length*r/o+n+n}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){o.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(o.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),t&&(r.y=this.internal.__cell__.margins.top||0,l.push(r)),r.lineNumber=e;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(c)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(Te.API);var wt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},At=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],xt=bt(At),Ct=[100,200,300,400,500,600,700,800,900],St=bt(Ct);function _t(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return wt[e=e||"normal"]?e:"normal"}(e.style),r=function(e){if(!e)return 400;if("number"==typeof e)return e>=100&&e<=900&&e%100==0?e:400;if(/^\d00$/.test(e))return parseInt(e);switch(e){case"bold":return 700;case"normal":default:return 400}}(e.weight),o=function(e){return"number"==typeof xt[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:r,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,n,r].join(" ")}}}function kt(e,t,n,r){var o;for(o=n;o>=0&&o<t.length;o+=r)if(e[t[o]])return e[t[o]];for(o=n;o>=0&&o<t.length;o-=r)if(e[t[o]])return e[t[o]]}var Et={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ot={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ft(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Tt(e,t,n){for(var r=(n=n||{}).defaultFontFamily||"times",o=Object.assign({},Et,n.genericFontFamilies||{}),i=null,a=null,s=0;s<t.length;++s)if(o[(i=_t(t[s])).family]&&(i.family=o[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[r]))throw new Error("Could not find a font-family for the rule '"+Ft(i)+"' and default family '"+r+"'.");if(a=function(e,t){if(t[e])return t[e];var n=xt[e],r=n<=xt.normal?-1:1,o=kt(t,At,n,r);if(!o)throw new Error("Could not find a matching font-stretch value for "+e);return o}(i.stretch,a),a=function(e,t){if(t[e])return t[e];for(var n=wt[e],r=0;r<n.length;++r)if(t[n[r]])return t[n[r]];throw new Error("Could not find a matching font-style for "+e)}(i.style,a),!(a=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=St[e],r=kt(t,Ct,n,e<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+e);return r}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Ft(i)+"'.");return a}function Pt(e){return e.trimLeft()}function Nt(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Mt(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var Lt,It,Rt,jt=["times"];!function(e){var t,n,o,i,a,s,l,u,c,f=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new u,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,n=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,c=new f}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var o=0;Object.defineProperty(this,"posX",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),c.margin=t}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(e){a=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(e){e instanceof f&&(c=e)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(e){c.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=h(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=h(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var d=null;function p(e,t){if(null===d){var n=function(e){var t=[];return Object.keys(e).forEach((function(n){e[n].forEach((function(e){var r=null;switch(e){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:e},t.push(r))}))})),t}(e.getFontList());d=function(e){for(var t={},n=0;n<e.length;++n){var r=_t(e[n]),o=r.family,i=r.stretch,a=r.style,s=r.weight;t[o]=t[o]||{},t[o][i]=t[o][i]||{},t[o][i][a]=t[o][i][a]||{},t[o][i][a][s]=r}return t}(n.concat(t))}return d}var v=null;Object.defineProperty(this,"fontFaces",{get:function(){return v},set:function(e){d=null,v=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1],r=(t[2],t[3]),o=t[4],i=(t[5],t[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(o)[2];o="px"===a?Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(o);var s=function(e){var t,n,r=[],o=e.trim();if(""===o)return jt;if(o in Ot)return[Ot[o]];for(;""!==o;){switch(n=null,t=(o=Pt(o)).charAt(0)){case'"':case"'":n=Nt(o.substring(1),t);break;default:n=Mt(o)}if(null===n)return jt;if(r.push(n[0]),""!==(o=Pt(n[1]))&&","!==o.charAt(0))return jt;o=o.replace(/^,/,"")}return r}(i);if(this.fontFaces){var l=Tt(p(this.pdf,this.fontFaces),s.map((function(e){return{family:e,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(l.ref.name,l.ref.style)}else{var u="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var c="",f={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d<s.length;d++){if(void 0!==this.pdf.internal.getFont(s[d],u,{noFallback:!0,disableWarning:!0})){c=s[d];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[d],"bold",{noFallback:!0,disableWarning:!0}))c=s[d],u="bold";else if(void 0!==this.pdf.internal.getFont(s[d],"normal",{noFallback:!0,disableWarning:!0})){c=s[d],u="normal";break}}if(""===c)for(var h=0;h<s.length;h++)if(f[s[h]]){c=f[s[h]];break}c=""===c?"Times":c,this.pdf.setFont(c,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,D.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,D.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.setLineDash=function(e){this.lineDash=e},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){A.call(this,"fill",!1)},d.prototype.stroke=function(){A.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw Z.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(e,t)},d.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===(0,r.A)(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw Z.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw Z.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var o=this.ctx.transform.applyToPoint(new s(n,r)),i=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:i.x,y1:i.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},d.prototype.bezierCurveTo=function(e,t,n,r,o,i){if(isNaN(o)||isNaN(i)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw Z.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new s(o,i)),l=this.ctx.transform.applyToPoint(new s(e,t)),u=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:u.x,y2:u.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},d.prototype.arc=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o))throw Z.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new s(e,t));e=a.x,t=a.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),u=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2))}Math.abs(o-r)>=2*Math.PI&&(r=0,o=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:o,counterclockwise:i})},d.prototype.arcTo=function(e,t,n,r,o){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw Z.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw Z.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var o={};"butt"!==this.lineCap&&(o.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(o.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),o.hasOwnProperty("lineCap")&&(this.lineCap=o.lineCap),o.hasOwnProperty("lineJoin")&&(this.lineJoin=o.lineJoin)}},d.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw Z.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},d.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw Z.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new f(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(e){var t,n,r,o;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,r=0,o=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==i)t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]),o=parseFloat(i[4]);else{if(o=1,"string"==typeof e&&"#"!==e.charAt(0)){var a=new ae(e);e=a.ok?a.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:o,style:e}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw Z.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!p.call(this)){var o=I(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;F.call(this,{text:e,x:t,y:n,scale:i,angle:o,align:this.textAlign,maxWidth:r})}},d.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw Z.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){r=isNaN(r)?void 0:r;var o=I(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;F.call(this,{text:e,x:t,y:n,scale:i,renderingMode:"stroke",angle:o,align:this.textAlign,maxWidth:r})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw Z.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),o=t.getStringUnitWidth(e)*r/t.internal.scaleFactor,i=function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this};return new i({width:o*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw Z.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(e){if(isNaN(e))throw Z.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new u(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw Z.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(e,t,n,r,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(o)||isNaN(i))throw Z.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new u(e,t,n,r,o,i);this.ctx.transform=this.ctx.transform.multiply(a)},d.prototype.setTransform=function(e,t,n,r,o,i){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,o=isNaN(o)?0:o,i=isNaN(i)?0:i,this.ctx.transform=new u(e,t,n,r,o,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,n,r,o,i,a,s,c){var f=this.pdf.getImageProperties(e),d=1,h=1,p=1,v=1;void 0!==r&&void 0!==s&&(p=s/r,v=c/o,d=f.width/r*s/r,h=f.height/o*c/o),void 0===i&&(i=t,a=n,t=0,n=0),void 0!==r&&void 0===s&&(s=r,c=o),void 0===r&&void 0===s&&(s=f.width,c=f.height);for(var y,A=this.ctx.transform.decompose(),C=I(A.rotate.shx),S=new u,_=(S=(S=(S=S.multiply(A.translate)).multiply(A.skew)).multiply(A.scale)).applyToRectangle(new l(i-t*p,a-n*v,r*d,o*h)),k=m.call(this,_),E=[],O=0;O<k.length;O+=1)-1===E.indexOf(k[O])&&E.push(k[O]);if(w(E),this.autoPaging)for(var F=E[0],T=E[E.length-1],P=F;P<T+1;P++){this.pdf.setPage(P);var N=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],M=1===P?this.posY+this.margin[0]:this.margin[0],L=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],R=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],j=1===P?0:L+(P-2)*R;if(0!==this.ctx.clip_path.length){var D=this.path;y=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(y,this.posX+this.margin[3],-j+M+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=D}var B=JSON.parse(JSON.stringify(_));B=b([B],this.posX+this.margin[3],-j+M+this.ctx.prevPageLastElemOffset)[0];var W=(P>F||P<T)&&g.call(this);W&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],N,R,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",B.x,B.y,B.w,B.h,null,null,C),W&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",_.x,_.y,_.w,_.h,null,null,C)};var m=function(e,t,n){var r=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var o=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+o)/n)+1);break;case"arc":r.push(Math.floor((e.y+o-e.radius)/n)+1),r.push(Math.floor((e.y+o+e.radius)/n)+1);break;case"qct":var i=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor((i.y+o)/n)+1),r.push(Math.floor((i.y+i.h+o)/n)+1);break;case"bct":var a=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor((a.y+o)/n)+1),r.push(Math.floor((a.y+a.h+o)/n)+1);break;case"rect":r.push(Math.floor((e.y+o)/n)+1),r.push(Math.floor((e.y+e.h+o)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)y.call(this);return r},y=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,o=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=o,this.lineJoin=i},b=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;case"mt":case"lt":case"arc":default:e[r].x+=t,e[r].y+=n}return e},w=function(e){return e.sort((function(e,t){return e-t}))},A=function(e,t){for(var n,r,o=this.fillStyle,i=this.strokeStyle,a=this.lineCap,s=this.lineWidth,l=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),f=JSON.parse(JSON.stringify(this.path)),d=[],h=0;h<f.length;h++)if(void 0!==f[h].x)for(var p=m.call(this,f[h]),v=0;v<p.length;v+=1)-1===d.indexOf(p[v])&&d.push(p[v]);for(var A=0;A<d.length;A++)for(;this.pdf.internal.getNumberOfPages()<d[A];)y.call(this);if(w(d),this.autoPaging)for(var C=d[0],S=d[d.length-1],_=C;_<S+1;_++){this.pdf.setPage(_),this.fillStyle=o,this.strokeStyle=i,this.lineCap=a,this.lineWidth=l,this.lineJoin=u;var k=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],E=1===_?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],T=1===_?0:O+(_-2)*F;if(0!==this.ctx.clip_path.length){var P=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(n,this.posX+this.margin[3],-T+E+this.ctx.prevPageLastElemOffset),x.call(this,e,!0),this.path=P}if(r=JSON.parse(JSON.stringify(c)),this.path=b(r,this.posX+this.margin[3],-T+E+this.ctx.prevPageLastElemOffset),!1===t||0===_){var N=(_>C||_<S)&&g.call(this);N&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],k,F,null).clip().discardPath()),x.call(this,e,t),N&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=l,x.call(this,e,t),this.lineWidth=s;this.path=c},x=function(e,t){if(("stroke"!==e||t||!v.call(this))&&("stroke"===e||t||!p.call(this))){for(var n,r,o=[],i=this.path,a=0;a<i.length;a++){var s=i[a];switch(s.type){case"begin":o.push({begin:!0});break;case"close":o.push({close:!0});break;case"mt":o.push({start:s,deltas:[],abs:[]});break;case"lt":var l=o.length;if(i[a-1]&&!isNaN(i[a-1].x)&&(n=[s.x-i[a-1].x,s.y-i[a-1].y],l>0))for(;l>=0;l--)if(!0!==o[l-1].close&&!0!==o[l-1].begin){o[l-1].deltas.push(n),o[l-1].abs.push(s);break}break;case"bct":n=[s.x1-i[a-1].x,s.y1-i[a-1].y,s.x2-i[a-1].x,s.y2-i[a-1].y,s.x-i[a-1].x,s.y-i[a-1].y],o[o.length-1].deltas.push(n);break;case"qct":var u=i[a-1].x+2/3*(s.x1-i[a-1].x),c=i[a-1].y+2/3*(s.y1-i[a-1].y),f=s.x+2/3*(s.x1-s.x),d=s.y+2/3*(s.y1-s.y),h=s.x,g=s.y;n=[u-i[a-1].x,c-i[a-1].y,f-i[a-1].x,d-i[a-1].y,h-i[a-1].x,g-i[a-1].y],o[o.length-1].deltas.push(n);break;case"arc":o.push({deltas:[],abs:[],arc:!0}),Array.isArray(o[o.length-1].abs)&&o[o.length-1].abs.push(s)}}r=t?null:"stroke"===e?"stroke":"fill";for(var m=!1,y=0;y<o.length;y++)if(o[y].arc)for(var b=o[y].abs,w=0;w<b.length;w++){var A=b[w];"arc"===A.type?_.call(this,A.x,A.y,A.radius,A.startAngle,A.endAngle,A.counterclockwise,void 0,t,!m):T.call(this,A.x,A.y),m=!0}else if(!0===o[y].close)this.pdf.internal.out("h"),m=!1;else if(!0!==o[y].begin){var x=o[y].start.x,C=o[y].start.y;P.call(this,o[y].deltas,x,C),m=!0}r&&k.call(this,r),t&&E.call(this)}},C=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;case"ideographic":return e;case"alphabetic":default:return e}},S=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var _=function(e,t,n,r,o,i,a,s,l){for(var u=M.call(this,n,r,o,i),c=0;c<u.length;c++){var f=u[c];0===c&&(l?O.call(this,f.x1+e,f.y1+t):T.call(this,f.x1+e,f.y1+t)),N.call(this,e,t,f.x2,f.y2,f.x3,f.y3,f.x4,f.y4)}s?E.call(this):k.call(this,a)},k=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},E=function(){this.pdf.clip(),this.pdf.discardPath()},O=function(e,t){this.pdf.internal.out(n(e)+" "+o(t)+" m")},F=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;case"left":case"start":default:t="left"}var n=this.pdf.getTextDimensions(e.text),r=C.call(this,e.y),o=S.call(this,r)-n.h,i=this.ctx.transform.applyToPoint(new s(e.x,r)),a=this.ctx.transform.decompose(),c=new u;c=(c=(c=c.multiply(a.translate)).multiply(a.skew)).multiply(a.scale);for(var f,d,h,p=this.ctx.transform.applyToRectangle(new l(e.x,r,n.w,n.h)),v=c.applyToRectangle(new l(e.x,o,n.w,n.h)),y=m.call(this,v),A=[],_=0;_<y.length;_+=1)-1===A.indexOf(y[_])&&A.push(y[_]);if(w(A),this.autoPaging)for(var k=A[0],E=A[A.length-1],O=k;O<E+1;O++){this.pdf.setPage(O);var F=1===O?this.posY+this.margin[0]:this.margin[0],T=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],P=this.pdf.internal.pageSize.height-this.margin[2],N=P-this.margin[0],M=this.pdf.internal.pageSize.width-this.margin[1],L=M-this.margin[3],I=1===O?0:T+(O-2)*N;if(0!==this.ctx.clip_path.length){var R=this.path;f=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(f,this.posX+this.margin[3],-1*I+F),x.call(this,"fill",!0),this.path=R}var j=b([JSON.parse(JSON.stringify(v))],this.posX+this.margin[3],-I+F+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(d=this.pdf.internal.getFontSize(),this.pdf.setFontSize(d*e.scale),h=this.lineWidth,this.lineWidth=h*e.scale);var D="text"!==this.autoPaging;if(D||j.y+j.h<=P){if(D||j.y>=F&&j.x<=M){var B=D?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||M-j.x)[0],W=b([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-I+F+this.ctx.prevPageLastElemOffset)[0],z=D&&(O>k||O<E)&&g.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],L,N,null).clip().discardPath()),this.pdf.text(B,W.x,W.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else j.y<P&&(this.ctx.prevPageLastElemOffset+=P-j.y);e.scale>=.01&&(this.pdf.setFontSize(d),this.lineWidth=h)}else e.scale>=.01&&(d=this.pdf.internal.getFontSize(),this.pdf.setFontSize(d*e.scale),h=this.lineWidth,this.lineWidth=h*e.scale),this.pdf.text(e.text,i.x+this.posX,i.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(d),this.lineWidth=h)},T=function(e,t,r,i){r=r||0,i=i||0,this.pdf.internal.out(n(e+r)+" "+o(t+i)+" l")},P=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},N=function(e,n,r,o,s,l,u,c){this.pdf.internal.out([t(i(r+e)),t(a(o+n)),t(i(s+e)),t(a(l+n)),t(i(u+e)),t(a(c+n)),"c"].join(" "))},M=function(e,t,n,r){for(var o=2*Math.PI,i=Math.PI/2;t>n;)t-=o;var a=Math.abs(n-t);a<o&&r&&(a=o-a);for(var s=[],l=r?-1:1,u=t;a>1e-5;){var c=u+l*Math.min(a,i);s.push(L.call(this,e,u,c)),a-=Math.abs(c-u),u=c}return s},L=function(e,t,n){var r=(n-t)/2,o=e*Math.cos(r),i=e*Math.sin(r),a=o,s=-i,l=a*a+s*s,u=l+a*o+s*i,c=4/3*(Math.sqrt(2*l*u)-u)/(a*i-s*o),f=a-c*s,d=s+c*a,h=f,p=-d,v=r+t,g=Math.cos(v),m=Math.sin(v);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:f*g-d*m,y2:f*m+d*g,x3:h*g-p*m,y3:h*m+p*g,x4:e*Math.cos(n),y4:e*Math.sin(n)}},I=function(e){return 180*e/Math.PI},R=function(e,t,n,r,o,i){var a=e+.5*(n-e),s=t+.5*(r-t),u=o+.5*(n-o),c=i+.5*(r-i),f=Math.min(e,o,a,u),d=Math.max(e,o,a,u),h=Math.min(t,i,s,c),p=Math.max(t,i,s,c);return new l(f,h,d-f,p-h)},j=function(e,t,n,r,o,i,a,s){var u,c,f,d,h,p,v,g,m,y,b,w,A,x,C=n-e,S=r-t,_=o-n,k=i-r,E=a-o,O=s-i;for(c=0;c<41;c++)m=(v=(f=e+(u=c/40)*C)+u*((h=n+u*_)-f))+u*(h+u*(o+u*E-h)-v),y=(g=(d=t+u*S)+u*((p=r+u*k)-d))+u*(p+u*(i+u*O-p)-g),0==c?(b=m,w=y,A=m,x=y):(b=Math.min(b,m),w=Math.min(w,y),A=Math.max(A,m),x=Math.max(x,y));return new l(Math.round(b),Math.round(w),Math.round(A-b),Math.round(x-w))},D=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(Te.API),
/**
 * @license
 * jsPDF filters PlugIn
 * Copyright (c) 2014 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(e){var t,n,r,o,i,a,s,l,u,c;for(/[^\x00-\xFF]/.test(e),n=[],r=0,o=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;o>r;r+=4)0!==(i=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(a=(i=((i=((i=((i=(i-(c=i%85))/85)-(u=i%85))/85)-(l=i%85))/85)-(s=i%85))/85)%85,n.push(a+33,s+33,l+33,u+33,c+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,r,o,i,a=String,s="length",l=255,u="charCodeAt",c="slice",f="replace";for(e[c](-2),e=e[c](0,-2)[f](/\s/g,"")[f]("z","!!!!!"),r=[],o=0,i=(e+=t="uuuuu"[c](e[s]%5||5))[s];i>o;o+=5)n=52200625*(e[u](o)-33)+614125*(e[u](o+1)-33)+7225*(e[u](o+2)-33)+85*(e[u](o+3)-33)+(e[u](o+4)-33),r.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(r,t[s]),a.fromCharCode.apply(a,r)},r=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},o=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=$(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,i){var a=0,s=e||"",l=[];for("string"==typeof(i=i||[])&&(i=[i]),a=0;a<i.length;a+=1)switch(i[a]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=t(s),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=r(s),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=o(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[a]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(Te.API),
/**
 * @license
 * jsPDF fileloading PlugIn
 * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(e,t,n){var r=new XMLHttpRequest,o=0,i=function(e){var t=e.length,n=[],r=String.fromCharCode;for(o=0;o<t;o+=1)n.push(r(255&e.charCodeAt(o)));return n.join("")};if(r.open("GET",e,!t),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(r.onload=function(){200===r.status?n(i(this.responseText)):n(void 0)}),r.send(null),t&&200===r.status)return i(r.responseText)}(e,t,n)}catch(e){}return r}(e,t,n)},e.loadImageFile=e.loadFile}(Te.API),function(e){function t(){return(J.html2canvas?Promise.resolve(J.html2canvas):n.e(354).then(n.t.bind(n,20354,23))).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function o(){return(J.DOMPurify?Promise.resolve(J.DOMPurify):n.e(838).then(n.t.bind(n,42838,23))).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var i=function(e){var t=(0,r.A)(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var n=document.createElement(e);for(var r in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[r]=t.style[r];return n},s=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(e,t){return e.__proto__=t||s.prototype,e},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(o).then((function(t){return this.set({src:a("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},s.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),o=t.firstChild;o;o=o.nextSibling)!0!==n&&1===o.nodeType&&"SCRIPT"===o.nodeName||r.appendChild(e(o,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},s.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},s.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,o=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete o.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var a=n[i],s=a.src.find((function(e){return"truetype"===e.format}));s&&t.addFont(s.url,a.ref.name,a.ref.style)}return o.windowHeight=o.windowHeight||0,o.windowHeight=0==o.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):o.windowHeight,t.context2d.save(!0),e(this.prop.container,o)})).then((function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},s.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},s.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},s.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in s.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},s.prototype.get=function(e,t){return this.then((function(){var n=e in s.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},s.prototype.setMargin=function(e){return this.then((function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},s.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||Te.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},s.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},s.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),o=n.call(r,e,t);return s.convert(o,this.__proto__)},s.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},s.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},s.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return s.convert(t,this)},s.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},s.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Te.getPageSize=function(e,t,n){if("object"===(0,r.A)(e)){var o=e;e=o.orientation,t=o.unit||t,n=o.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var i,a=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var l,u=0,c=0;if(s.hasOwnProperty(a))u=s[a][1]/i,c=s[a][0]/i;else try{u=n[1],c=n[0]}catch(f){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",c>u&&(l=c,c=u,u=l);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",u>c&&(l=c,c=u,u=l)}return{width:c,height:u,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(_t):null;var n=new s(t);return t.worker?n:n.from(e).doCallback()}}(Te.API),Te.API.addJS=function(e){return Rt=e,this.internal.events.subscribe("postPutResources",(function(){Lt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Lt+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),It=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Rt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Lt&&void 0!==It&&this.internal.out("/Names <</JavaScript "+Lt+" 0 R>>")})),this
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */},function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=e.outline.render().split(/\r\n/),o=0;o<r.length;o++){var i=r[o],a=n.exec(i);if(null!=a){var s=a[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(i)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(o=0;o<l;o++){var c=e.internal.newObject();u.push(c);var f=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+f.objId+" 0 R /XYZ null null null]>> endobj")}var d=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<u.length;o++)e.internal.write("(page_"+(o+1)+")"+u[o]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+d+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var o=t.children[r];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(t)),r>0&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var i=this.count=this.count_r({count:0},o);if(i>0&&this.line("/Count "+i),o.options&&o.options.pageNumber){var a=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(Te.API),
/**
 * @license
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,r,o,i,a){var s,l=this.decode.DCT_DECODE,u=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=i||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(s=function(e){for(var n,r=256*e.charCodeAt(4)+e.charCodeAt(5),o=e.length,i={width:0,height:0,numcomponents:1},a=4;a<o;a+=2){if(a+=r,-1!==t.indexOf(e.charCodeAt(a+1))){n=256*e.charCodeAt(a+5)+e.charCodeAt(a+6),i={width:256*e.charCodeAt(a+7)+e.charCodeAt(a+8),height:n,numcomponents:e.charCodeAt(a+9)};break}r=256*e.charCodeAt(a+2)+e.charCodeAt(a+3)}return i}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}u={data:e,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:l,index:n,alias:r}}return u}}(Te.API);var Dt,Bt,Wt,zt,Ut,Kt=function(){var e,t,n;function r(e){var t,n,r,o,i,a,s,l,u,c,f,d,h,p;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(t=this.readUInt32(),u=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),o=this.readUInt16()||100,a.delay=1e3*i/o,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,t-=4),e=(null!=a?a.data:void 0)||this.imgData,d=0;0<=t?d<t:d>t;0<=t?++d:--d)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((c=r-this.transparency.indexed.length)>0)for(h=0;0<=c?h<c:h>c;0<=c?++h:--h)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(f=this.read(t)).indexOf(0),l=String.fromCharCode.apply(String,f.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,f.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),r=0,o=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function i(i,a,s,l){var u,c,f,d,h,p,v,g,m,y,b,w,A,x,C,S,_,k,E,O,F,T=Math.ceil((o.width-i)/s),P=Math.ceil((o.height-a)/l),N=o.width==T&&o.height==P;for(x=t*T,w=N?n:new Uint8Array(x*P),p=e.length,A=0,c=0;A<P&&r<p;){switch(e[r++]){case 0:for(d=_=0;_<x;d=_+=1)w[c++]=e[r++];break;case 1:for(d=k=0;k<x;d=k+=1)u=e[r++],h=d<t?0:w[c-t],w[c++]=(u+h)%256;break;case 2:for(d=E=0;E<x;d=E+=1)u=e[r++],f=(d-d%t)/t,C=A&&w[(A-1)*x+f*t+d%t],w[c++]=(C+u)%256;break;case 3:for(d=O=0;O<x;d=O+=1)u=e[r++],f=(d-d%t)/t,h=d<t?0:w[c-t],C=A&&w[(A-1)*x+f*t+d%t],w[c++]=(u+Math.floor((h+C)/2))%256;break;case 4:for(d=F=0;F<x;d=F+=1)u=e[r++],f=(d-d%t)/t,h=d<t?0:w[c-t],0===A?C=S=0:(C=w[(A-1)*x+f*t+d%t],S=f&&w[(A-1)*x+(f-1)*t+d%t]),v=h+C-S,g=Math.abs(v-h),y=Math.abs(v-C),b=Math.abs(v-S),m=g<=y&&g<=b?h:y<=b?C:S,w[c++]=(u+m)%256;break;default:throw new Error("Invalid filter algorithm: "+e[r-1])}if(!N){var M=((a+A*l)*o.width+i)*t,L=A*x;for(d=0;d<T;d+=1){for(var I=0;I<t;I+=1)n[M++]=w[L++];M+=(s-1)*t}}A++}}return e=X(e),1==o.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),n},r.prototype.decodePalette=function(){var e,t,n,r,o,i,a,s,l;for(n=this.palette,i=this.transparency.indexed||[],o=new Uint8Array((i.length||0)+n.length),r=0,e=0,t=a=0,s=n.length;a<s;t=a+=3)o[r++]=n[t],o[r++]=n[t+1],o[r++]=n[t+2],o[r++]=null!=(l=i[e++])?l:255;return o},r.prototype.copyToImageData=function(e,t){var n,r,o,i,a,s,l,u,c,f,d;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(d=this._decodedPalette)?d:this._decodedPalette=this.decodePalette(),r=4,n=!0),u=(o=e.data||e).length,a=c||t,i=s=0,1===r)for(;i<u;)l=c?4*t[i/4]:s,f=a[l++],o[i++]=f,o[i++]=f,o[i++]=f,o[i++]=n?a[l++]:255,s=l;else for(;i<u;)l=c?4*t[i/4]:s,o[i++]=a[l++],o[i++]=a[l++],o[i++]=a[l++],o[i++]=n?a[l++]:255,s=l},r.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var o=function(){if("[object Window]"===Object.prototype.toString.call(J)){try{t=J.document.createElement("canvas"),n=t.getContext("2d")}catch(e){return!1}return!0}return!1};return o(),e=function(e){var r;if(!0===o())return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(r=new Image).src=t.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(t){var n,r,o,i,a,s,l,u;if(this.animation){for(u=[],r=a=0,s=(l=this.animation.frames).length;a<s;r=++a)n=l[r],o=t.createImageData(n.width,n.height),i=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(o,i),n.imageData=o,u.push(n.image=e(o));return u}},r.prototype.renderFrame=function(e,t){var n,r,o;return n=(r=this.animation.frames)[t],o=r[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?e.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&e.putImageData(o.imageData,o.xOffset,o.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(e){var t,n,r,o,i,a,s=this;return n=0,a=this.animation,o=a.numFrames,r=a.frames,i=a.numPlays,(t=function(){var a,l;if(a=n++%o,l=r[a],s.renderFrame(e,a),o>1&&n/o<i)return s.animation._timeout=setTimeout(t,l.delay)})()},r.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},r.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},r}();
/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
/**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function Vt(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,o=e[t++],i=o>>7,a=1<<1+(7&o);e[t++],e[t++];var s=null,l=null;i&&(s=t,l=a,t+=3*a);var u=!0,c=[],f=0,d=null,h=0,p=null;for(this.width=n,this.height=r;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,p=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((E=e[t++])>=0))throw Error("Invalid block size");if(0===E)break;t+=E}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var v=e[t++];f=e[t++]|e[t++]<<8,d=e[t++],0==(1&v)&&(d=null),h=v>>2&7,t++;break;case 254:for(;;){if(!((E=e[t++])>=0))throw Error("Invalid block size");if(0===E)break;t+=E}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,w=e[t++],A=w>>6&1,x=1<<1+(7&w),C=s,S=l,_=!1;w>>7&&(_=!0,C=t,S=x,t+=3*x);var k=t;for(t++;;){var E;if(!((E=e[t++])>=0))throw Error("Invalid block size");if(0===E)break;t+=E}c.push({x:g,y:m,width:y,height:b,has_local_palette:_,palette_offset:C,palette_size:S,data_offset:k,data_length:t-k,transparent_index:d,interlaced:!!A,delay:f,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return p},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);Ht(e,o.data_offset,a,i);var s=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var u=o.width,c=n-u,f=u,d=4*(o.y*n+o.x),h=4*((o.y+o.height)*n+o.x),p=d,v=4*c;!0===o.interlaced&&(v+=4*n*7);for(var g=8,m=0,y=a.length;m<y;++m){var b=a[m];if(0===f&&(f=u,(p+=v)>=h&&(v=4*c+4*n*(g-1),p=d+(u+c)*(g<<1),g>>=1)),b===l)p+=4;else{var w=e[s+3*b],A=e[s+3*b+1],x=e[s+3*b+2];r[p++]=x,r[p++]=A,r[p++]=w,r[p++]=255}--f}},this.decodeAndBlitFrameRGBA=function(t,r){var o=this.frameInfo(t),i=o.width*o.height,a=new Uint8Array(i);Ht(e,o.data_offset,a,i);var s=o.palette_offset,l=o.transparent_index;null===l&&(l=256);var u=o.width,c=n-u,f=u,d=4*(o.y*n+o.x),h=4*((o.y+o.height)*n+o.x),p=d,v=4*c;!0===o.interlaced&&(v+=4*n*7);for(var g=8,m=0,y=a.length;m<y;++m){var b=a[m];if(0===f&&(f=u,(p+=v)>=h&&(v=4*c+4*n*(g-1),p=d+(u+c)*(g<<1),g>>=1)),b===l)p+=4;else{var w=e[s+3*b],A=e[s+3*b+1],x=e[s+3*b+2];r[p++]=w,r[p++]=A,r[p++]=x,r[p++]=255}--f}}}function Ht(e,t,n,r){for(var o=e[t++],i=1<<o,a=i+1,s=a+1,l=o+1,u=(1<<l)-1,c=0,f=0,d=0,h=e[t++],p=new Int32Array(4096),v=null;;){for(;c<16&&0!==h;)f|=e[t++]<<c,c+=8,1===h?h=e[t++]:--h;if(c<l)break;var g=f&u;if(f>>=l,c-=l,g!==i){if(g===a)break;for(var m=g<s?g:v,y=0,b=m;b>i;)b=p[b]>>8,++y;var w=b;if(d+y+(m!==g?1:0)>r)return void Z.log("Warning, gif stream longer than expected.");n[d++]=w;var A=d+=y;for(m!==g&&(n[d++]=w),b=m;y--;)b=p[b],n[--A]=255&b,b>>=8;null!==v&&s<4096&&(p[s++]=v<<8|w,s>=u+1&&l<12&&(++l,u=u<<1|1)),v=g}else s=a+1,u=(1<<(l=o+1))-1,v=null}return d!==r&&Z.log("Warning, gif stream shorter than expected."),n}
/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function qt(e){var t,n,r,o,i,a=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),p=new Array(64),v=[],g=0,m=7,y=new Array(64),b=new Array(64),w=new Array(64),A=new Array(256),x=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],P=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function N(e,t){for(var n=0,r=0,o=new Array,i=1;i<=16;i++){for(var a=1;a<=e[i];a++)o[t[r]]=[],o[t[r]][0]=n,o[t[r]][1]=i,r++,n++;n*=2}return o}function M(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(g|=1<<m),n--,--m<0&&(255==g?(L(255),L(0)):L(g),m=7,g=0)}function L(e){v.push(e)}function I(e){L(e>>8&255),L(255&e)}function R(e,t,n,r,o){for(var i,a=o[0],s=o[240],l=function(e,t){var n,r,o,i,a,s,l,u,c,f,d=0;for(c=0;c<8;++c){n=e[d],r=e[d+1],o=e[d+2],i=e[d+3],a=e[d+4],s=e[d+5],l=e[d+6];var p=n+(u=e[d+7]),v=n-u,g=r+l,m=r-l,y=o+s,b=o-s,w=i+a,A=i-a,x=p+w,C=p-w,S=g+y,_=g-y;e[d]=x+S,e[d+4]=x-S;var k=.707106781*(_+C);e[d+2]=C+k,e[d+6]=C-k;var E=.382683433*((x=A+b)-(_=m+v)),O=.5411961*x+E,F=1.306562965*_+E,T=.707106781*(S=b+m),P=v+T,N=v-T;e[d+5]=N+O,e[d+3]=N-O,e[d+1]=P+F,e[d+7]=P-F,d+=8}for(d=0,c=0;c<8;++c){n=e[d],r=e[d+8],o=e[d+16],i=e[d+24],a=e[d+32],s=e[d+40],l=e[d+48];var M=n+(u=e[d+56]),L=n-u,I=r+l,R=r-l,j=o+s,D=o-s,B=i+a,W=i-a,z=M+B,U=M-B,K=I+j,V=I-j;e[d]=z+K,e[d+32]=z-K;var H=.707106781*(V+U);e[d+16]=U+H,e[d+48]=U-H;var q=.382683433*((z=W+D)-(V=R+L)),G=.5411961*z+q,Y=1.306562965*V+q,$=.707106781*(K=D+R),X=L+$,J=L-$;e[d+40]=J+G,e[d+24]=J-G,e[d+8]=X+Y,e[d+56]=X-Y,d++}for(c=0;c<64;++c)f=e[c]*t[c],h[c]=f>0?f+.5|0:f-.5|0;return h}(e,t),u=0;u<64;++u)p[C[u]]=l[u];var c=p[0]-n;n=p[0],0==c?M(r[0]):(M(r[d[i=32767+c]]),M(f[i]));for(var v=63;v>0&&0==p[v];)v--;if(0==v)return M(a),n;for(var g,m=1;m<=v;){for(var y=m;0==p[m]&&m<=v;)++m;var b=m-y;if(b>=16){g=b>>4;for(var w=1;w<=g;++w)M(s);b&=15}i=32767+p[m],M(o[(b<<4)+d[i]]),M(f[i]),m++}return 63!=v&&M(a),n}function j(e){e=Math.min(Math.max(e,1),100),i!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((t[n]*e+50)/100);r=Math.min(Math.max(r,1),255),s[C[n]]=r}for(var o=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var f=a((o[i]*e+50)/100);f=Math.min(Math.max(f,1),255),l[C[i]]=f}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var v=0;v<8;v++)u[h]=1/(s[C[h]]*d[p]*d[v]*8),c[h]=1/(l[C[h]]*d[p]*d[v]*8),h++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),i=e)}this.encode=function(e,i){i&&j(i),v=new Array,g=0,m=7,I(65496),I(65504),I(16),L(74),L(70),L(73),L(70),L(0),L(1),L(1),L(0),I(1),I(1),L(0),L(0),function(){I(65499),I(132),L(0);for(var e=0;e<64;e++)L(s[e]);L(1);for(var t=0;t<64;t++)L(l[t])}(),function(e,t){I(65472),I(17),L(8),I(t),I(e),L(3),L(1),L(17),L(0),L(2),L(17),L(1),L(3),L(17),L(1)}(e.width,e.height),function(){I(65476),I(418),L(0);for(var e=0;e<16;e++)L(S[e+1]);for(var t=0;t<=11;t++)L(_[t]);L(16);for(var n=0;n<16;n++)L(k[n+1]);for(var r=0;r<=161;r++)L(E[r]);L(1);for(var o=0;o<16;o++)L(O[o+1]);for(var i=0;i<=11;i++)L(F[i]);L(17);for(var a=0;a<16;a++)L(T[a+1]);for(var s=0;s<=161;s++)L(P[s])}(),I(65498),I(12),L(3),L(1),L(0),L(2),L(17),L(3),L(17),L(0),L(63),L(0);var a=0,f=0,d=0;g=0,m=7,this.encode.displayName="_encode_";for(var h,p,A,C,N,D,B,W,z,U=e.data,K=e.width,V=e.height,H=4*K,q=0;q<V;){for(h=0;h<H;){for(N=H*q+h,B=-1,W=0,z=0;z<64;z++)D=N+(W=z>>3)*H+(B=4*(7&z)),q+W>=V&&(D-=H*(q+1+W-V)),h+B>=H&&(D-=h+B-H+4),p=U[D++],A=U[D++],C=U[D++],y[z]=(x[p]+x[A+256|0]+x[C+512|0]>>16)-128,b[z]=(x[p+768|0]+x[A+1024|0]+x[C+1280|0]>>16)-128,w[z]=(x[p+1280|0]+x[A+1536|0]+x[C+1792|0]>>16)-128;a=R(y,u,a,t,r),f=R(b,c,f,n,o),d=R(w,c,d,n,o),h+=32}q+=8}if(m>=0){var G=[];G[1]=m+1,G[0]=(1<<m+1)-1,M(G)}return I(65497),new Uint8Array(v)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)A[t]=e(t)}(),t=N(S,_),n=N(O,F),r=N(k,E),o=N(T,P),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)d[32767+r]=n,f[32767+r]=[],f[32767+r][1]=n,f[32767+r][0]=r;for(var o=-(t-1);o<=-e;o++)d[32767+o]=n,f[32767+o]=[],f[32767+o][1]=n,f[32767+o][0]=t-1+o;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)x[e]=19595*e,x[e+256|0]=38470*e,x[e+512|0]=7471*e+32768,x[e+768|0]=-11059*e,x[e+1024|0]=-21709*e,x[e+1280|0]=32768*e+8421375,x[e+1536|0]=-27439*e,x[e+1792|0]=-5329*e}(),j(e)}
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function Gt(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Yt(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var r=0;4>r;r++)if(e[t+r]!=n.charCodeAt(r))return!0;return!1}function r(e,t,n,r,o){for(var i=0;i<o;i++)e[t+i]=n[r+i]}function o(e,t,n,r){for(var o=0;o<r;o++)e[t+o]=n}function i(e){return new Int32Array(e)}function a(e,t){for(var n=[],r=0;r<e;r++)n.push(new t);return n}function s(e,t){var n=[];return function e(n,r,o){for(var i=o[r],a=0;a<i&&(n.push(o.length>r+1?[]:new t),!(o.length<r+1));a++)e(n[a],r+1,o)}(n,0,e),n}var l=function(){var e=this;function l(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function u(e,n,r,o,i){t(!(o%r));do{e[n+(o-=r)]=i}while(0<o)}function c(e,n,r,o,a){if(t(2328>=a),512>=a)var s=i(512);else if(null==(s=i(a)))return 0;return function(e,n,r,o,a,s){var c,d,h=n,p=1<<r,v=i(16),g=i(16);for(t(0!=a),t(null!=o),t(null!=e),t(0<r),d=0;d<a;++d){if(15<o[d])return 0;++v[o[d]]}if(v[0]==a)return 0;for(g[1]=0,c=1;15>c;++c){if(v[c]>1<<c)return 0;g[c+1]=g[c]+v[c]}for(d=0;d<a;++d)c=o[d],0<o[d]&&(s[g[c]++]=d);if(1==g[15])return(o=new f).g=0,o.value=s[0],u(e,h,1,p,o),p;var m,y=-1,b=p-1,w=0,A=1,x=1,C=1<<r;for(d=0,c=1,a=2;c<=r;++c,a<<=1){if(A+=x<<=1,0>(x-=v[c]))return 0;for(;0<v[c];--v[c])(o=new f).g=c,o.value=s[d++],u(e,h+w,a,C,o),w=l(w,c)}for(c=r+1,a=2;15>=c;++c,a<<=1){if(A+=x<<=1,0>(x-=v[c]))return 0;for(;0<v[c];--v[c]){if(o=new f,(w&b)!=y){for(h+=C,m=1<<(y=c)-r;15>y&&!(0>=(m-=v[y]));)++y,m<<=1;p+=C=1<<(m=y-r),e[n+(y=w&b)].g=m+r,e[n+y].value=h-n-y}o.g=c-r,o.value=s[d++],u(e,h+(w>>r),a,C,o),w=l(w,c)}}return A!=2*g[15]-1?0:p}(e,n,r,o,a,s)}function f(){this.value=this.g=0}function d(){this.value=this.g=0}function h(){this.G=a(5,f),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Bn,d)}function p(e,n,r,o){t(null!=e),t(null!=n),t(2147483648>o),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=r,e.Jd=n,e.Yc=r+o,e.Zc=4<=o?r+o-4+1:r,k(e)}function v(e,t){for(var n=0;0<t--;)n|=O(e,128)<<t;return n}function g(e,t){var n=v(e,t);return E(e)?-n:n}function m(e,n,r,o){var i,a=0;for(t(null!=e),t(null!=n),t(4294967288>o),e.Sb=o,e.Ra=0,e.u=0,e.h=0,4<o&&(o=4),i=0;i<o;++i)a+=n[r+i]<<8*i;e.Ra=a,e.bb=o,e.oa=n,e.pa=r}function y(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Un-8>>>0,++e.bb,e.u-=8;C(e)&&(e.h=1,e.u=0)}function b(e,n){if(t(0<=n),!e.h&&n<=zn){var r=x(e)&Wn[n];return e.u+=n,y(e),r}return e.h=1,e.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function A(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(e){return e.Ra>>>(e.u&Un-1)>>>0}function C(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Un}function S(e,t){e.u=t,e.h=C(e)}function _(e){e.u>=Kn&&(t(e.u>=Kn),y(e))}function k(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function E(e){return v(e,1)}function O(e,t){var n=e.Ca;0>e.b&&k(e);var r=e.b,o=n*t>>>8,i=(e.I>>>r>o)+0;for(i?(n-=o,e.I-=o+1<<r>>>0):n=o+1,r=n,o=0;256<=r;)o+=8,r>>=8;return r=7^o+Vn[r],e.b-=r,e.Ca=(n<<r)-1,i}function F(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function T(e,t){return e[t+0]|e[t+1]<<8}function P(e,t){return T(e,t)|e[t+2]<<16}function N(e,t){return T(e,t)|T(e,t+2)<<16}function M(e,n){var r=1<<n;return t(null!=e),t(0<n),e.X=i(r),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function L(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),r(n.X,0,e.X,0,1<<n.Xa)}function I(){this.X=[],this.Xa=this.Mb=0}function R(e,n,r,o){t(null!=r),t(null!=o);var i=r[0],a=o[0];return 0==i&&(i=(e*a+n/2)/n),0==a&&(a=(n*i+e/2)/e),0>=i||0>=a?0:(r[0]=i,o[0]=a,1)}function j(e,t){return e+(1<<t)-1>>>t}function D(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function B(t,n){e[n]=function(n,r,o,i,a,s,l){var u;for(u=0;u<a;++u){var c=e[t](s[l+u-1],o,i+u);s[l+u]=D(n[r+u],c)}}}function W(){this.ud=this.hd=this.jd=0}function z(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function U(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function K(e,t){return U(e+(e-t+.5>>1))}function V(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function H(e,t,n,r,o,i,a){for(r=i[a-1],n=0;n<o;++n)i[a+n]=r=D(e[t+n],r)}function q(e,t,n,r,o){var i;for(i=0;i<n;++i){var a=e[t+i],s=a>>8&255,l=16711935&(l=(l=16711935&a)+((s<<16)+s));r[o+i]=(4278255360&a)+l>>>0}}function G(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function Y(e,t,n,r,o,i){var a;for(a=0;a<r;++a){var s=t[n+a],l=s>>>8,u=s,c=255&(c=(c=s>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));u=255&(u=(u+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),o[i+a]=(4278255360&s)+(c<<16)+u}}function $(t,n,r,o,i){e[n]=function(e,t,n,r,a,s,l,u,c){for(r=l;r<u;++r)for(l=0;l<c;++l)a[s++]=i(n[o(e[t++])])},e[t]=function(t,n,a,s,l,u,c){var f=8>>t.b,d=t.Ea,h=t.K[0],p=t.w;if(8>f)for(t=(1<<t.b)-1,p=(1<<f)-1;n<a;++n){var v,g=0;for(v=0;v<d;++v)v&t||(g=o(s[l++])),u[c++]=i(h[g&p]),g>>=f}else e["VP8LMapColor"+r](s,l,h,p,u,c,n,a,d)}}function X(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=255&i}}function J(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=i>>16&255,r[o++]=i>>8&255,r[o++]=255&i,r[o++]=i>>24&255}}function Q(e,t,n,r,o){for(n=t+n;t<n;){var i=(a=e[t++])>>16&240|a>>12&15,a=240&a|a>>28&15;r[o++]=i,r[o++]=a}}function Z(e,t,n,r,o){for(n=t+n;t<n;){var i=(a=e[t++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[o++]=i,r[o++]=a}}function ee(e,t,n,r,o){for(n=t+n;t<n;){var i=e[t++];r[o++]=255&i,r[o++]=i>>8&255,r[o++]=i>>16&255}}function te(e,t,n,o,i,a){if(0==a)for(n=t+n;t<n;)F(o,((a=e[t++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),i+=32;else r(o,i,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function re(e){return e==Kr||e==Vr||e==Hr||e==qr}function oe(){this.eb=[],this.size=this.A=this.fb=0}function ie(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ae(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new oe,this.f.kb=new ie,this.sd=null}function se(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ue(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,t){var n=e.T,o=t.ba.f.RGBA,i=o.eb,a=o.fb+e.ka*o.A,s=yo[t.ba.S],l=e.y,u=e.O,c=e.f,f=e.N,d=e.ea,h=e.W,p=t.cc,v=t.dc,g=t.Mc,m=t.Nc,y=e.ka,b=e.ka+e.T,w=e.U,A=w+1>>1;for(0==y?s(l,u,null,null,c,f,d,h,c,f,d,h,i,a,null,null,w):(s(t.ec,t.fc,l,u,p,v,g,m,c,f,d,h,i,a-o.A,i,a,w),++n);y+2<b;y+=2)p=c,v=f,g=d,m=h,f+=e.Rc,h+=e.Rc,a+=2*o.A,s(l,(u+=2*e.fa)-e.fa,l,u,p,v,g,m,c,f,d,h,i,a-o.A,i,a,w);return u+=e.fa,e.j+b<e.o?(r(t.ec,t.fc,l,u,w),r(t.cc,t.dc,c,f,A),r(t.Mc,t.Nc,d,h,A),n--):1&b||s(l,u,null,null,c,f,d,h,c,f,d,h,i,a+o.A,null,null,w),n}function fe(e,n,r){var o=e.F,i=[e.J];if(null!=o){var a=e.U,s=n.ba.S,l=s==Wr||s==Hr;n=n.ba.f.RGBA;var u=[0],c=e.ka;u[0]=e.T,e.Kb&&(0==c?--u[0]:(--c,i[0]-=e.width),e.j+e.ka+e.T==e.o&&(u[0]=e.o-e.j-c));var f=n.eb;c=n.fb+c*n.A,e=_r(o,i[0],e.width,a,u,f,c+(l?0:3),n.A),t(r==u),e&&re(s)&&Cr(f,c,l,a,u,n.A)}return 0}function de(e){var t=e.ma,n=t.ba.S,r=11>n,o=n==jr||n==Br||n==Wr||n==zr||12==n||re(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Rn(t.Oa,e,o?11:12))return 0;if(o&&re(n)&&bn(),e.da)alert("todo:use_scaling");else{if(r){if(t.Ib=ue,e.Kb){if(n=e.U+1>>1,t.memory=i(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ce,bn()}}else alert("todo:EmitYUV");o&&(t.Jb=fe,r&&mn())}if(r&&!No){for(e=0;256>e;++e)Mo[e]=89858*(e-128)+Eo>>ko,Ro[e]=-22014*(e-128)+Eo,Io[e]=-45773*(e-128),Lo[e]=113618*(e-128)+Eo>>ko;for(e=Oo;e<Fo;++e)t=76283*(e-16)+Eo>>ko,jo[e-Oo]=He(t,255),Do[e-Oo]=He(t+8>>4,15);No=1}return 1}function he(e){var n=e.ma,r=e.U,o=e.T;return t(!(1&e.ka)),0>=r||0>=o?0:(r=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,r),n.Dc+=r,1)}function pe(e){e.ma.memory=null}function ve(e,t,n,r){return 47!=b(e,8)?0:(t[0]=b(e,14)+1,n[0]=b(e,14)+1,r[0]=b(e,1),0!=b(e,3)?0:!e.h)}function ge(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+b(t,n)+1}function me(e,t){return 120<t?t-120:1<=(n=((n=Qr[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function ye(e,t,n){var r=x(n),o=e[t+=255&r].g-8;return 0<o&&(S(n,n.u+8),r=x(n),t+=e[t].value,t+=r&(1<<o)-1),S(n,n.u+e[t].g),e[t].value}function be(e,n,r){return r.g+=e.g,r.value+=e.value<<n>>>0,t(8>=r.g),e.g}function we(e,n,r){var o=e.xc;return t((n=0==o?0:e.vc[e.md*(r>>o)+(n>>o)])<e.Wb),e.Ya[n]}function Ae(e,n,o,i){var a=e.ab,s=e.c*n,l=e.C;n=l+n;var u=o,c=i;for(i=e.Ta,o=e.Ua;0<a--;){var f=e.gc[a],d=l,h=n,p=u,v=c,g=(c=i,u=o,f.Ea);switch(t(d<h),t(h<=f.nc),f.hc){case 2:Gn(p,v,(h-d)*g,c,u);break;case 0:var m=d,y=h,b=c,w=u,A=(k=f).Ea;0==m&&(Hn(p,v,null,null,1,b,w),H(p,v+1,0,0,A-1,b,w+1),v+=A,w+=A,++m);for(var x=1<<k.b,C=x-1,S=j(A,k.b),_=k.K,k=k.w+(m>>k.b)*S;m<y;){var E=_,O=k,F=1;for(qn(p,v,b,w-A,1,b,w);F<A;){var T=(F&~C)+x;T>A&&(T=A),(0,Qn[E[O++]>>8&15])(p,v+ +F,b,w+F-A,T-F,b,w+F),F=T}v+=A,w+=A,++m&C||(k+=S)}h!=f.nc&&r(c,u-g,c,u+(h-d-1)*g,g);break;case 1:for(g=p,y=v,A=(p=f.Ea)-(w=p&~(b=(v=1<<f.b)-1)),m=j(p,f.b),x=f.K,f=f.w+(d>>f.b)*m;d<h;){for(C=x,S=f,_=new W,k=y+w,E=y+p;y<k;)G(C[S++],_),Zn(_,g,y,v,c,u),y+=v,u+=v;y<E&&(G(C[S++],_),Zn(_,g,y,A,c,u),y+=A,u+=A),++d&b||(f+=m)}break;case 3:if(p==c&&v==u&&0<f.b){for(y=c,p=g=u+(h-d)*g-(w=(h-d)*j(f.Ea,f.b)),v=c,b=u,m=[],w=(A=w)-1;0<=w;--w)m[w]=v[b+w];for(w=A-1;0<=w;--w)y[p+w]=m[w];Yn(f,d,h,c,g,c,u)}else Yn(f,d,h,p,v,c,u)}u=i,c=o}c!=o&&r(i,o,u,c,s)}function xe(e,n){var r=e.V,o=e.Ba+e.c*e.C,i=n-e.C;if(t(n<=e.l.o),t(16>=i),0<i){var a=e.l,s=e.Ta,l=e.Ua,u=a.width;if(Ae(e,i,r,o),i=l=[l],t((r=e.C)<(o=n)),t(a.v<a.va),o>a.o&&(o=a.o),r<a.j){var c=a.j-r;r=a.j,i[0]+=c*u}if(r>=o?r=0:(i[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=o-r,r=1),r){if(l=l[0],11>(r=e.ca).S){var f=r.f.RGBA,d=(o=r.S,i=a.U,a=a.T,c=f.eb,f.A),h=a;for(f=f.fb+e.Ma*f.A;0<h--;){var p=s,v=l,g=i,m=c,y=f;switch(o){case Rr:er(p,v,g,m,y);break;case jr:tr(p,v,g,m,y);break;case Kr:tr(p,v,g,m,y),Cr(m,y,0,g,1,0);break;case Dr:or(p,v,g,m,y);break;case Br:te(p,v,g,m,y,1);break;case Vr:te(p,v,g,m,y,1),Cr(m,y,0,g,1,0);break;case Wr:te(p,v,g,m,y,0);break;case Hr:te(p,v,g,m,y,0),Cr(m,y,1,g,1,0);break;case zr:nr(p,v,g,m,y);break;case qr:nr(p,v,g,m,y),Sr(m,y,g,1,0);break;case Ur:rr(p,v,g,m,y);break;default:t(0)}l+=u,f+=d}e.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=r.height)}}e.C=n,t(e.C<=e.i)}function Ce(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,r=e.Ya[t].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Se(e,n,r,o,i,a){if(0!=e.Z){var s=e.qd,l=e.rd;for(t(null!=mo[e.Z]);n<r;++n)mo[e.Z](s,l,o,i,o,i,a),s=o,l=i,i+=a;e.qd=s,e.rd=l}}function _e(e,n){var r=e.l.ma,o=0==r.Z||1==r.Z?e.l.j:e.C;if(o=e.C<o?o:e.C,t(n<=e.l.o),n>o){var i=e.l.width,a=r.ca,s=r.tb+i*o,l=e.V,u=e.Ba+e.c*o,c=e.gc;t(1==e.ab),t(3==c[0].hc),Xn(c[0],o,n,l,u,a,s),Se(r,o,n,a,s,i)}e.C=e.Ma=n}function ke(e,n,r,o,i,a,s){var l=e.$/o,u=e.$%o,c=e.m,f=e.s,d=r+e.$,h=d;i=r+o*i;var p=r+o*a,v=280+f.ua,g=e.Pb?l:16777216,m=0<f.ua?f.Wa:null,y=f.wc,b=d<p?we(f,u,l):null;t(e.C<a),t(p<=i);var w=!1;e:for(;;){for(;w||d<p;){var A=0;if(l>=g){var k=d-r;t((g=e).Pb),g.wd=g.m,g.xd=k,0<g.s.ua&&L(g.s.Wa,g.s.vb),g=l+eo}if(u&y||(b=we(f,u,l)),t(null!=b),b.Qb&&(n[d]=b.qb,w=!0),!w)if(_(c),b.jc){A=c,k=n;var E=d,O=b.pd[x(A)&Bn-1];t(b.jc),256>O.g?(S(A,A.u+O.g),k[E]=O.value,A=0):(S(A,A.u+O.g-256),t(256<=O.value),A=O.value),0==A&&(w=!0)}else A=ye(b.G[0],b.H[0],c);if(c.h)break;if(w||256>A){if(!w)if(b.nd)n[d]=(b.qb|A<<8)>>>0;else{if(_(c),w=ye(b.G[1],b.H[1],c),_(c),k=ye(b.G[2],b.H[2],c),E=ye(b.G[3],b.H[3],c),c.h)break;n[d]=(E<<24|w<<16|A<<8|k)>>>0}if(w=!1,++d,++u>=o&&(u=0,++l,null!=s&&l<=a&&!(l%16)&&s(e,l),null!=m))for(;h<d;)A=n[h++],m.X[(506832829*A&4294967295)>>>m.Mb]=A}else if(280>A){if(A=ge(A-256,c),k=ye(b.G[4],b.H[4],c),_(c),k=me(o,k=ge(k,c)),c.h)break;if(d-r<k||i-d<A)break e;for(E=0;E<A;++E)n[d+E]=n[d+E-k];for(d+=A,u+=A;u>=o;)u-=o,++l,null!=s&&l<=a&&!(l%16)&&s(e,l);if(t(d<=i),u&y&&(b=we(f,u,l)),null!=m)for(;h<d;)A=n[h++],m.X[(506832829*A&4294967295)>>>m.Mb]=A}else{if(!(A<v))break e;for(w=A-280,t(null!=m);h<d;)A=n[h++],m.X[(506832829*A&4294967295)>>>m.Mb]=A;A=d,t(!(w>>>(k=m).Xa)),n[A]=k.X[w],w=!0}w||t(c.h==C(c))}if(e.Pb&&c.h&&d<i)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&L(e.s.vb,e.s.Wa);else{if(c.h)break e;null!=s&&s(e,l>a?a:l),e.a=0,e.$=d-r}return 1}return e.a=3,0}function Ee(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Oe(){var t=new sn;return null==t?null:(t.a=0,t.xb=go,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Gn=q,Zn=Y,er=X,tr=J,nr=Q,rr=Z,or=ee,e.VP8LMapColor32b=$n,e.VP8LMapColor8b=Jn,t)}function Fe(e,n,r,s,l){var u=1,d=[e],p=[n],v=s.m,g=s.s,m=null,y=0;e:for(;;){if(r)for(;u&&b(v,1);){var w=d,A=p,C=s,k=1,E=C.m,O=C.gc[C.ab],F=b(E,2);if(C.Oc&1<<F)u=0;else{switch(C.Oc|=1<<F,O.hc=F,O.Ea=w[0],O.nc=A[0],O.K=[null],++C.ab,t(4>=C.ab),F){case 0:case 1:O.b=b(E,3)+2,k=Fe(j(O.Ea,O.b),j(O.nc,O.b),0,C,O.K),O.K=O.K[0];break;case 3:var T,P=b(E,8)+1,N=16<P?0:4<P?1:2<P?2:3;if(w[0]=j(O.Ea,N),O.b=N,T=k=Fe(P,1,0,C,O.K)){var L,I=P,R=O,B=1<<(8>>R.b),W=i(B);if(null==W)T=0;else{var z=R.K[0],U=R.w;for(W[0]=R.K[0][0],L=1;L<1*I;++L)W[L]=D(z[U+L],W[L-1]);for(;L<4*B;++L)W[L]=0;R.K[0]=null,R.K[0]=W,T=1}}k=T;break;case 2:break;default:t(0)}u=k}}if(d=d[0],p=p[0],u&&b(v,1)&&!(u=1<=(y=b(v,4))&&11>=y)){s.a=3;break e}var K;if(K=u)t:{var V,H,q,G=s,Y=d,$=p,X=y,J=r,Q=G.m,Z=G.s,ee=[null],te=1,ne=0,re=Zr[X];n:for(;;){if(J&&b(Q,1)){var oe=b(Q,3)+2,ie=j(Y,oe),ae=j($,oe),se=ie*ae;if(!Fe(ie,ae,0,G,ee))break n;for(ee=ee[0],Z.xc=oe,V=0;V<se;++V){var le=ee[V]>>8&65535;ee[V]=le,le>=te&&(te=le+1)}}if(Q.h)break n;for(H=0;5>H;++H){var ue=$r[H];!H&&0<X&&(ue+=1<<X),ne<ue&&(ne=ue)}var ce=a(te*re,f),fe=te,de=a(fe,h);if(null==de)var he=null;else t(65536>=fe),he=de;var pe=i(ne);if(null==he||null==pe||null==ce){G.a=1;break n}var ve=ce;for(V=q=0;V<te;++V){var ge=he[V],me=ge.G,ye=ge.H,we=0,Ae=1,xe=0;for(H=0;5>H;++H){ue=$r[H],me[H]=ve,ye[H]=q,!H&&0<X&&(ue+=1<<X);r:{var Ce,Se=ue,_e=G,Oe=pe,Te=ve,Pe=q,Ne=0,Me=_e.m,Le=b(Me,1);if(o(Oe,0,0,Se),Le){var Ie=b(Me,1)+1,Re=b(Me,1),je=b(Me,0==Re?1:8);Oe[je]=1,2==Ie&&(Oe[je=b(Me,8)]=1);var De=1}else{var Be=i(19),We=b(Me,4)+4;if(19<We){_e.a=3;var ze=0;break r}for(Ce=0;Ce<We;++Ce)Be[Jr[Ce]]=b(Me,3);var Ue=void 0,Ke=void 0,Ve=_e,He=Be,qe=Se,Ge=Oe,Ye=0,$e=Ve.m,Xe=8,Je=a(128,f);o:for(;c(Je,0,7,He,19);){if(b($e,1)){var Qe=2+2*b($e,3);if((Ue=2+b($e,Qe))>qe)break o}else Ue=qe;for(Ke=0;Ke<qe&&Ue--;){_($e);var Ze=Je[0+(127&x($e))];S($e,$e.u+Ze.g);var et=Ze.value;if(16>et)Ge[Ke++]=et,0!=et&&(Xe=et);else{var tt=16==et,nt=et-16,rt=Yr[nt],ot=b($e,Gr[nt])+rt;if(Ke+ot>qe)break o;for(var it=tt?Xe:0;0<ot--;)Ge[Ke++]=it}}Ye=1;break o}Ye||(Ve.a=3),De=Ye}(De=De&&!Me.h)&&(Ne=c(Te,Pe,8,Oe,Se)),De&&0!=Ne?ze=Ne:(_e.a=3,ze=0)}if(0==ze)break n;if(Ae&&1==Xr[H]&&(Ae=0==ve[q].g),we+=ve[q].g,q+=ze,3>=H){var at,st=pe[0];for(at=1;at<ue;++at)pe[at]>st&&(st=pe[at]);xe+=st}}if(ge.nd=Ae,ge.Qb=0,Ae&&(ge.qb=(me[3][ye[3]+0].value<<24|me[1][ye[1]+0].value<<16|me[2][ye[2]+0].value)>>>0,0==we&&256>me[0][ye[0]+0].value&&(ge.Qb=1,ge.qb+=me[0][ye[0]+0].value<<8)),ge.jc=!ge.Qb&&6>xe,ge.jc){var lt,ut=ge;for(lt=0;lt<Bn;++lt){var ct=lt,ft=ut.pd[ct],dt=ut.G[0][ut.H[0]+ct];256<=dt.value?(ft.g=dt.g+256,ft.value=dt.value):(ft.g=0,ft.value=0,ct>>=be(dt,8,ft),ct>>=be(ut.G[1][ut.H[1]+ct],16,ft),ct>>=be(ut.G[2][ut.H[2]+ct],0,ft),be(ut.G[3][ut.H[3]+ct],24,ft))}}}Z.vc=ee,Z.Wb=te,Z.Ya=he,Z.yc=ce,K=1;break t}K=0}if(!(u=K)){s.a=3;break e}if(0<y){if(g.ua=1<<y,!M(g.Wa,y)){s.a=1,u=0;break e}}else g.ua=0;var ht=s,pt=d,vt=p,gt=ht.s,mt=gt.xc;if(ht.c=pt,ht.i=vt,gt.md=j(pt,mt),gt.wc=0==mt?-1:(1<<mt)-1,r){s.xb=vo;break e}if(null==(m=i(d*p))){s.a=1,u=0;break e}u=(u=ke(s,m,0,d,p,p,null))&&!v.h;break e}return u?(null!=l?l[0]=m:(t(null==m),t(r)),s.$=0,r||Ee(g)):Ee(g),u}function Te(e,n){var r=e.c*e.i,o=r+n+16*n;return t(e.c<=n),e.V=i(o),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+r+n,1)}function Pe(e,n){var r=e.C,o=n-r,i=e.V,a=e.Ba+e.c*r;for(t(n<=e.l.o);0<o;){var s=16<o?16:o,l=e.l.ma,u=e.l.width,c=u*s,f=l.ca,d=l.tb+u*r,h=e.Ta,p=e.Ua;Ae(e,s,i,a),kr(h,p,f,d,c),Se(l,r,r+s,f,d,u),o-=s,i+=s*e.c,r+=s}t(r==n),e.C=e.Ma=n}function Ne(){this.ub=this.yd=this.td=this.Rb=0}function Me(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Le(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Ie(){this.Yb=function(){var e=[];return function e(t,n,r){for(var o=r[n],i=0;i<o&&(t.push(r.length>n+1?[]:0),!(r.length<n+1));i++)e(t[i],n+1,r)}(e,0,[3,11]),e}()}function Re(){this.jb=i(3),this.Wc=s([4,8],Ie),this.Xc=s([4,17],Ie)}function je(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function De(){this.ld=this.La=this.dd=this.tc=0}function Be(){this.Na=this.la=0}function We(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ze(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ue(){this.uc=this.M=this.Nb=0,this.wa=Array(new De),this.Y=0,this.ya=Array(new ze),this.aa=0,this.l=new qe}function Ke(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Ve(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Ne,this.Kc=new Me,this.ed=new je,this.Qa=new Le,this.Ic=this.$c=this.Aa=0,this.D=new Ue,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,We),this.Pa=new Re,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ke),this.Hd=0,this.rb=Array(new Be),this.sb=0,this.wa=Array(new De),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new ze),this.L=this.aa=0,this.gd=s([4,2],De),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function He(e,t){return 0>e?0:e>t?t:e}function qe(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ge(){var e=new Ve;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ro||(ro=Je)),e}function Ye(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function $e(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Xe(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Ye(e,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,i=n.w,a=n.ha;if(4>a)return Ye(e,7,"Truncated header.");var s=r[i+0]|r[i+1]<<8|r[i+2]<<16,l=e.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return Ye(e,3,"Incorrect keyframe parameters.");if(!l.yd)return Ye(e,4,"Frame not displayable.");i+=3,a-=3;var u=e.Kc;if(l.Rb){if(7>a)return Ye(e,7,"cannot parse picture header");if(!$e(r,i,a))return Ye(e,3,"Bad code word");u.c=16383&(r[i+4]<<8|r[i+3]),u.Td=r[i+4]>>6,u.i=16383&(r[i+6]<<8|r[i+5]),u.Ud=r[i+6]>>6,i+=7,a-=7,e.za=u.c+15>>4,e.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,o((s=e.Pa).jb,0,255,s.jb.length),t(null!=(s=e.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,o(s.Zb,0,0,s.Zb.length),o(s.Lb,0,0,s.Lb)}if(l.ub>a)return Ye(e,7,"bad partition length");p(s=e.m,r,i,l.ub),i+=l.ub,a-=l.ub,l.Rb&&(u.Ld=E(s),u.Kd=E(s)),u=e.Qa;var c,f=e.Pa;if(t(null!=s),t(null!=u),u.Cb=E(s),u.Cb){if(u.Bb=E(s),E(s)){for(u.Fb=E(s),c=0;4>c;++c)u.Zb[c]=E(s)?g(s,7):0;for(c=0;4>c;++c)u.Lb[c]=E(s)?g(s,6):0}if(u.Bb)for(c=0;3>c;++c)f.jb[c]=E(s)?v(s,8):255}else u.Bb=0;if(s.Ka)return Ye(e,3,"cannot parse segment header");if((u=e.ed).zd=E(s),u.Tb=v(s,6),u.wb=v(s,3),u.Pc=E(s),u.Pc&&E(s)){for(f=0;4>f;++f)E(s)&&(u.vd[f]=g(s,6));for(f=0;4>f;++f)E(s)&&(u.od[f]=g(s,6))}if(e.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Ye(e,3,"cannot parse filter header");var d=a;if(a=c=i,i=c+d,u=d,e.Xb=(1<<v(e.m,2))-1,d<3*(f=e.Xb))r=7;else{for(c+=3*f,u-=3*f,d=0;d<f;++d){var h=r[a+0]|r[a+1]<<8|r[a+2]<<16;h>u&&(h=u),p(e.Jc[+d],r,c,h),c+=h,u-=h,a+=3}p(e.Jc[+f],r,c,u),r=c<i?0:5}if(0!=r)return Ye(e,r,"cannot parse partitions");for(r=v(c=e.m,7),a=E(c)?g(c,4):0,i=E(c)?g(c,4):0,u=E(c)?g(c,4):0,f=E(c)?g(c,4):0,c=E(c)?g(c,4):0,d=e.Qa,h=0;4>h;++h){if(d.Cb){var m=d.Zb[h];d.Fb||(m+=r)}else{if(0<h){e.pb[h]=e.pb[0];continue}m=r}var y=e.pb[h];y.Sc[0]=to[He(m+a,127)],y.Sc[1]=no[He(m+0,127)],y.Eb[0]=2*to[He(m+i,127)],y.Eb[1]=101581*no[He(m+u,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=to[He(m+f,117)],y.Qc[1]=no[He(m+c,127)],y.lc=m+c}if(!l.Rb)return Ye(e,4,"Not a key frame.");for(E(s),l=e.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(i=0;3>i;++i)for(u=0;11>u;++u)f=O(s,uo[r][a][i][u])?v(s,8):so[r][a][i][u],l.Wc[r][a].Yb[i][u]=f;for(a=0;17>a;++a)l.Xc[r][a]=l.Wc[r][co[a]]}return e.kc=E(s),e.kc&&(e.Bd=v(s,8)),e.cb=1}function Je(e,t,n,r,o,i,a){var s=t[o].Yb[n];for(n=0;16>o;++o){if(!O(e,s[n+0]))return o;for(;!O(e,s[n+1]);)if(s=t[++o].Yb[0],n=0,16==o)return 16;var l=t[o+1].Yb;if(O(e,s[n+2])){var u=e,c=0;if(O(u,(d=s)[(f=n)+3]))if(O(u,d[f+6])){for(s=0,f=2*(c=O(u,d[f+8]))+(d=O(u,d[f+9+c])),c=0,d=oo[f];d[s];++s)c+=c+O(u,d[s]);c+=3+(8<<f)}else O(u,d[f+7])?(c=7+2*O(u,165),c+=O(u,145)):c=5+O(u,159);else c=O(u,d[f+4])?3+O(u,d[f+5]):2;s=l[2]}else c=1,s=l[1];l=a+io[o],0>(u=e).b&&k(u);var f,d=u.b,h=(f=u.Ca>>1)-(u.I>>d)>>31;--u.b,u.Ca+=h,u.Ca|=1,u.I-=(f+1&h)<<d,i[l]=((c^h)-h)*r[(0<o)+0]}return 16}function Qe(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,o(e.zc,0,0,e.zc.length),e.ja=0}function Ze(e,n){if(null==e)return 0;if(null==n)return Ye(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Xe(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var s=Wo[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-s>>4,e.zb=n.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+s>>4,e.Hb=n.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var l=e.ed;for(s=0;4>s;++s){var u;if(e.Qa.Cb){var c=e.Qa.Lb[s];e.Qa.Fb||(c+=l.Tb)}else c=l.Tb;for(u=0;1>=u;++u){var f=e.gd[s][u],d=c;if(l.Pc&&(d+=l.vd[0],u&&(d+=l.od[0])),0<(d=0>d?0:63<d?63:d)){var h=d;0<l.wb&&(h=4<l.wb?h>>2:h>>1)>9-l.wb&&(h=9-l.wb),1>h&&(h=1),f.dd=h,f.tc=2*d+h,f.ld=40<=d?2:15<=d?1:0}else f.tc=0;f.La=u}}}s=0}else Ye(e,6,"Frame setup failed"),s=e.a;if(s=0==s){if(s){e.$c=0,0<e.Aa||(e.Ic=Uo);e:{s=e.Ic,l=4*(h=e.za);var p=32*h,v=h+1,g=0<e.L?h*(0<e.Aa?2:1):0,m=(2==e.Aa?2:1)*h;if((f=l+832+(u=3*(16*s+Wo[e.L])/2*p)+(c=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=f)s=0;else{if(f>e.Vb){if(e.Vb=0,e.Ec=i(f),e.Fc=0,null==e.Ec){s=Ye(e,1,"no memory during frame initialization.");break e}e.Vb=f}f=e.Ec,d=e.Fc,e.Ac=f,e.Bc=d,d+=l,e.Gd=a(p,Ke),e.Hd=0,e.rb=a(v+1,Be),e.sb=1,e.wa=g?a(g,De):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=h),t(!0),e.oc=f,e.pc=d,d+=832,e.ya=a(m,ze),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=h),e.R=16*h,e.B=8*h,h=(p=Wo[e.L])*e.R,p=p/2*e.B,e.sa=f,e.ta=d+h,e.qa=e.sa,e.ra=e.ta+16*s*e.R+p,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+p,e.$c=0,d+=u,e.mb=c?f:null,e.nb=c?d:null,t(d+c<=e.Fc+e.Vb),Qe(e),o(e.Ac,e.Bc,0,l),s=1}}if(s){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!Pr){for(s=-255;255>=s;++s)Er[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Or[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Fr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Tr[255+s]=0>s?0:255<s?255:s;Pr=1}ir=ut,ar=it,lr=at,ur=st,cr=lt,sr=ot,fr=Yt,dr=$t,hr=Qt,pr=Zt,vr=Xt,gr=Jt,mr=en,yr=tn,br=Ut,wr=Kt,Ar=Vt,xr=Ht,ho[0]=St,ho[1]=ft,ho[2]=xt,ho[3]=Ct,ho[4]=_t,ho[5]=Et,ho[6]=kt,ho[7]=Ot,ho[8]=Tt,ho[9]=Ft,fo[0]=mt,fo[1]=ht,fo[2]=pt,fo[3]=vt,fo[4]=yt,fo[5]=bt,fo[6]=wt,po[0]=Lt,po[1]=dt,po[2]=Pt,po[3]=Nt,po[4]=Rt,po[5]=It,po[6]=jt,s=1}else s=0}s&&(s=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var a,s=e.Jc[e.M&e.Xb],l=e.m,u=e;for(a=0;a<u.za;++a){var c=l,f=u,d=f.Ac,h=f.Bc+4*a,p=f.zc,v=f.ya[f.aa+a];if(f.Qa.Bb?v.$b=O(c,f.Pa.jb[0])?2+O(c,f.Pa.jb[2]):O(c,f.Pa.jb[1]):v.$b=0,f.kc&&(v.Ad=O(c,f.Bd)),v.Za=!O(c,145)+0,v.Za){var g=v.Ob,m=0;for(f=0;4>f;++f){var y,b=p[0+f];for(y=0;4>y;++y){b=lo[d[h+y]][b];for(var w=ao[O(c,b[0])];0<w;)w=ao[2*w+O(c,b[w])];b=-w,d[h+y]=b}r(g,m,d,h,4),m+=4,p[0+f]=b}}else b=O(c,156)?O(c,128)?1:3:O(c,163)?2:0,v.Ob[0]=b,o(d,h,b,4),o(p,0,b,4);v.Dd=O(c,142)?O(c,114)?O(c,183)?1:3:2:0}if(u.m.Ka)return Ye(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(u=s,c=(l=e).rb[l.sb-1],d=l.rb[l.sb+l.ja],a=l.ya[l.aa+l.ja],h=l.kc?a.Ad:0)c.la=d.la=0,a.Za||(c.Na=d.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var A,x;if(c=d,d=u,h=l.Pa.Xc,p=l.ya[l.aa+l.ja],v=l.pb[p.$b],f=p.ad,g=0,m=l.rb[l.sb-1],b=y=0,o(f,g,0,384),p.Za)var C=0,S=h[3];else{w=i(16);var _=c.Na+m.Na;if(_=ro(d,h[1],_,v.Eb,0,w,0),c.Na=m.Na=(0<_)+0,1<_)ir(w,0,f,g);else{var k=w[0]+3>>3;for(w=0;256>w;w+=16)f[g+w]=k}C=1,S=h[0]}var E=15&c.la,F=15&m.la;for(w=0;4>w;++w){var T=1&F;for(k=x=0;4>k;++k)E=E>>1|(T=(_=ro(d,S,_=T+(1&E),v.Sc,C,f,g))>C)<<7,x=x<<2|(3<_?3:1<_?2:0!=f[g+0]),g+=16;E>>=4,F=F>>1|T<<7,y=(y<<8|x)>>>0}for(S=E,C=F>>4,A=0;4>A;A+=2){for(x=0,E=c.la>>4+A,F=m.la>>4+A,w=0;2>w;++w){for(T=1&F,k=0;2>k;++k)_=T+(1&E),E=E>>1|(T=0<(_=ro(d,h[2],_,v.Qc,0,f,g)))<<3,x=x<<2|(3<_?3:1<_?2:0!=f[g+0]),g+=16;E>>=2,F=F>>1|T<<5}b|=x<<4*A,S|=E<<4<<A,C|=(240&F)<<A}c.la=S,m.la=C,p.Hc=y,p.Gc=b,p.ia=43690&b?0:v.ia,h=!(y|b)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[a.$b][a.Za],l.wa[l.Y+l.ja].La|=!h),u.Ka)return Ye(e,7,"Premature end-of-file encountered.")}if(Qe(e),l=n,u=1,a=(s=e).D,c=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(a.M=s.M,a.uc=c,Ln(s,a),u=1,a=(x=s.D).Nb,c=(b=Wo[s.L])*s.R,d=b/2*s.B,w=16*a*s.R,k=8*a*s.B,h=s.sa,p=s.ta-c+w,v=s.qa,f=s.ra-d+k,g=s.Ha,m=s.Ia-d+k,F=0==(E=x.M),y=E>=s.Va-1,2==s.Aa&&Ln(s,x),x.uc)for(T=(_=s).D.M,t(_.D.uc),x=_.yb;x<_.Hb;++x){C=x,S=T;var P=(N=(z=_).D).Nb;A=z.R;var N=N.wa[N.Y+C],M=z.sa,L=z.ta+16*P*A+16*C,I=N.dd,R=N.tc;if(0!=R)if(t(3<=R),1==z.L)0<C&&wr(M,L,A,R+4),N.La&&xr(M,L,A,R),0<S&&br(M,L,A,R+4),N.La&&Ar(M,L,A,R);else{var j=z.B,D=z.qa,B=z.ra+8*P*j+8*C,W=z.Ha,z=z.Ia+8*P*j+8*C;P=N.ld,0<C&&(dr(M,L,A,R+4,I,P),pr(D,B,W,z,j,R+4,I,P)),N.La&&(gr(M,L,A,R,I,P),yr(D,B,W,z,j,R,I,P)),0<S&&(fr(M,L,A,R+4,I,P),hr(D,B,W,z,j,R+4,I,P)),N.La&&(vr(M,L,A,R,I,P),mr(D,B,W,z,j,R,I,P))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(x=16*E,E=16*(E+1),F?(l.y=s.sa,l.O=s.ta+w,l.f=s.qa,l.N=s.ra+k,l.ea=s.Ha,l.W=s.Ia+k):(x-=b,l.y=h,l.O=p,l.f=v,l.N=f,l.ea=g,l.W=m),y||(E-=b),E>l.o&&(E=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&x<E&&(l.J=dn(s,l,x,E-x),l.F=s.mb,null==l.F&&0==l.F.length)){u=Ye(s,3,"Could not decode alpha data.");break e}x<l.j&&(b=l.j-x,x=l.j,t(!(1&b)),l.O+=s.R*b,l.N+=s.B*(b>>1),l.W+=s.B*(b>>1),null!=l.F&&(l.J+=l.width*b)),x<E&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=E-x,u=l.put(l))}a+1!=s.Ic||y||(r(s.sa,s.ta-c,h,p+16*s.R,c),r(s.qa,s.ra-d,v,f+8*s.B,d),r(s.Ha,s.Ia-d,g,m+8*s.B,d))}if(!u)return Ye(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),s&=1}return s?(e.cb=0,s):0}function et(e,t,n,r,o){o=e[t+n+32*r]+(o>>3),e[t+n+32*r]=-256&o?0>o?0:255:o}function tt(e,t,n,r,o,i){et(e,t,0,n,r+o),et(e,t,1,n,r+i),et(e,t,2,n,r-i),et(e,t,3,n,r-o)}function nt(e){return(20091*e>>16)+e}function rt(e,t,n,r){var o,a=0,s=i(16);for(o=0;4>o;++o){var l=e[t+0]+e[t+8],u=e[t+0]-e[t+8],c=(35468*e[t+4]>>16)-nt(e[t+12]),f=nt(e[t+4])+(35468*e[t+12]>>16);s[a+0]=l+f,s[a+1]=u+c,s[a+2]=u-c,s[a+3]=l-f,a+=4,t++}for(o=a=0;4>o;++o)l=(e=s[a+0]+4)+s[a+8],u=e-s[a+8],c=(35468*s[a+4]>>16)-nt(s[a+12]),et(n,r,0,0,l+(f=nt(s[a+4])+(35468*s[a+12]>>16))),et(n,r,1,0,u+c),et(n,r,2,0,u-c),et(n,r,3,0,l-f),a++,r+=32}function ot(e,t,n,r){var o=e[t+0]+4,i=35468*e[t+4]>>16,a=nt(e[t+4]),s=35468*e[t+1]>>16;tt(n,r,0,o+a,e=nt(e[t+1]),s),tt(n,r,1,o+i,e,s),tt(n,r,2,o-i,e,s),tt(n,r,3,o-a,e,s)}function it(e,t,n,r,o){rt(e,t,n,r),o&&rt(e,t+16,n,r+4)}function at(e,t,n,r){ar(e,t+0,n,r,1),ar(e,t+32,n,r+128,1)}function st(e,t,n,r){var o;for(e=e[t+0]+4,o=0;4>o;++o)for(t=0;4>t;++t)et(n,r,t,o,e)}function lt(e,t,n,r){e[t+0]&&ur(e,t+0,n,r),e[t+16]&&ur(e,t+16,n,r+4),e[t+32]&&ur(e,t+32,n,r+128),e[t+48]&&ur(e,t+48,n,r+128+4)}function ut(e,t,n,r){var o,a=i(16);for(o=0;4>o;++o){var s=e[t+0+o]+e[t+12+o],l=e[t+4+o]+e[t+8+o],u=e[t+4+o]-e[t+8+o],c=e[t+0+o]-e[t+12+o];a[0+o]=s+l,a[8+o]=s-l,a[4+o]=c+u,a[12+o]=c-u}for(o=0;4>o;++o)s=(e=a[0+4*o]+3)+a[3+4*o],l=a[1+4*o]+a[2+4*o],u=a[1+4*o]-a[2+4*o],c=e-a[3+4*o],n[r+0]=s+l>>3,n[r+16]=c+u>>3,n[r+32]=s-l>>3,n[r+48]=c-u>>3,r+=64}function ct(e,t,n){var r,o=t-32,i=Lr,a=255-e[o-1];for(r=0;r<n;++r){var s,l=i,u=a+e[t-1];for(s=0;s<n;++s)e[t+s]=l[u+e[o+s]];t+=32}}function ft(e,t){ct(e,t,4)}function dt(e,t){ct(e,t,8)}function ht(e,t){ct(e,t,16)}function pt(e,t){var n;for(n=0;16>n;++n)r(e,t+32*n,e,t-32,16)}function vt(e,t){var n;for(n=16;0<n;--n)o(e,t,e[t-1],16),t+=32}function gt(e,t,n){var r;for(r=0;16>r;++r)o(t,n+32*r,e,16)}function mt(e,t){var n,r=16;for(n=0;16>n;++n)r+=e[t-1+32*n]+e[t+n-32];gt(r>>5,e,t)}function yt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t-1+32*n];gt(r>>4,e,t)}function bt(e,t){var n,r=8;for(n=0;16>n;++n)r+=e[t+n-32];gt(r>>4,e,t)}function wt(e,t){gt(128,e,t)}function At(e,t,n){return e+2*t+n+2>>2}function xt(e,t){var n,o=t-32;for(o=new Uint8Array([At(e[o-1],e[o+0],e[o+1]),At(e[o+0],e[o+1],e[o+2]),At(e[o+1],e[o+2],e[o+3]),At(e[o+2],e[o+3],e[o+4])]),n=0;4>n;++n)r(e,t+32*n,o,0,o.length)}function Ct(e,t){var n=e[t-1],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];F(e,t+0,16843009*At(e[t-1-32],n,r)),F(e,t+32,16843009*At(n,r,o)),F(e,t+64,16843009*At(r,o,i)),F(e,t+96,16843009*At(o,i,i))}function St(e,t){var n,r=4;for(n=0;4>n;++n)r+=e[t+n-32]+e[t-1+32*n];for(r>>=3,n=0;4>n;++n)o(e,t+32*n,r,4)}function _t(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],s=e[t+1-32],l=e[t+2-32],u=e[t+3-32];e[t+0+96]=At(r,o,e[t-1+96]),e[t+1+96]=e[t+0+64]=At(n,r,o),e[t+2+96]=e[t+1+64]=e[t+0+32]=At(i,n,r),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=At(a,i,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=At(s,a,i),e[t+3+32]=e[t+2+0]=At(l,s,a),e[t+3+0]=At(u,l,s)}function kt(e,t){var n=e[t+1-32],r=e[t+2-32],o=e[t+3-32],i=e[t+4-32],a=e[t+5-32],s=e[t+6-32],l=e[t+7-32];e[t+0+0]=At(e[t+0-32],n,r),e[t+1+0]=e[t+0+32]=At(n,r,o),e[t+2+0]=e[t+1+32]=e[t+0+64]=At(r,o,i),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=At(o,i,a),e[t+3+32]=e[t+2+64]=e[t+1+96]=At(i,a,s),e[t+3+64]=e[t+2+96]=At(a,s,l),e[t+3+96]=At(s,l,l)}function Et(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1-32],a=e[t+0-32],s=e[t+1-32],l=e[t+2-32],u=e[t+3-32];e[t+0+0]=e[t+1+64]=i+a+1>>1,e[t+1+0]=e[t+2+64]=a+s+1>>1,e[t+2+0]=e[t+3+64]=s+l+1>>1,e[t+3+0]=l+u+1>>1,e[t+0+96]=At(o,r,n),e[t+0+64]=At(r,n,i),e[t+0+32]=e[t+1+96]=At(n,i,a),e[t+1+32]=e[t+2+96]=At(i,a,s),e[t+2+32]=e[t+3+96]=At(a,s,l),e[t+3+32]=At(s,l,u)}function Ot(e,t){var n=e[t+0-32],r=e[t+1-32],o=e[t+2-32],i=e[t+3-32],a=e[t+4-32],s=e[t+5-32],l=e[t+6-32],u=e[t+7-32];e[t+0+0]=n+r+1>>1,e[t+1+0]=e[t+0+64]=r+o+1>>1,e[t+2+0]=e[t+1+64]=o+i+1>>1,e[t+3+0]=e[t+2+64]=i+a+1>>1,e[t+0+32]=At(n,r,o),e[t+1+32]=e[t+0+96]=At(r,o,i),e[t+2+32]=e[t+1+96]=At(o,i,a),e[t+3+32]=e[t+2+96]=At(i,a,s),e[t+3+64]=At(a,s,l),e[t+3+96]=At(s,l,u)}function Ft(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96];e[t+0+0]=n+r+1>>1,e[t+2+0]=e[t+0+32]=r+o+1>>1,e[t+2+32]=e[t+0+64]=o+i+1>>1,e[t+1+0]=At(n,r,o),e[t+3+0]=e[t+1+32]=At(r,o,i),e[t+3+32]=e[t+1+64]=At(o,i,i),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=i}function Tt(e,t){var n=e[t-1+0],r=e[t-1+32],o=e[t-1+64],i=e[t-1+96],a=e[t-1-32],s=e[t+0-32],l=e[t+1-32],u=e[t+2-32];e[t+0+0]=e[t+2+32]=n+a+1>>1,e[t+0+32]=e[t+2+64]=r+n+1>>1,e[t+0+64]=e[t+2+96]=o+r+1>>1,e[t+0+96]=i+o+1>>1,e[t+3+0]=At(s,l,u),e[t+2+0]=At(a,s,l),e[t+1+0]=e[t+3+32]=At(n,a,s),e[t+1+32]=e[t+3+64]=At(r,n,a),e[t+1+64]=e[t+3+96]=At(o,r,n),e[t+1+96]=At(i,o,r)}function Pt(e,t){var n;for(n=0;8>n;++n)r(e,t+32*n,e,t-32,8)}function Nt(e,t){var n;for(n=0;8>n;++n)o(e,t,e[t-1],8),t+=32}function Mt(e,t,n){var r;for(r=0;8>r;++r)o(t,n+32*r,e,8)}function Lt(e,t){var n,r=8;for(n=0;8>n;++n)r+=e[t+n-32]+e[t-1+32*n];Mt(r>>4,e,t)}function It(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t+n-32];Mt(r>>3,e,t)}function Rt(e,t){var n,r=4;for(n=0;8>n;++n)r+=e[t-1+32*n];Mt(r>>3,e,t)}function jt(e,t){Mt(128,e,t)}function Dt(e,t,n){var r=e[t-n],o=e[t+0],i=3*(o-r)+Nr[1020+e[t-2*n]-e[t+n]],a=Mr[112+(i+4>>3)];e[t-n]=Lr[255+r+Mr[112+(i+3>>3)]],e[t+0]=Lr[255+o-a]}function Bt(e,t,n,r){var o=e[t+0],i=e[t+n];return Ir[255+e[t-2*n]-e[t-n]]>r||Ir[255+i-o]>r}function Wt(e,t,n,r){return 4*Ir[255+e[t-n]-e[t+0]]+Ir[255+e[t-2*n]-e[t+n]]<=r}function zt(e,t,n,r,o){var i=e[t-3*n],a=e[t-2*n],s=e[t-n],l=e[t+0],u=e[t+n],c=e[t+2*n],f=e[t+3*n];return 4*Ir[255+s-l]+Ir[255+a-u]>r?0:Ir[255+e[t-4*n]-i]<=o&&Ir[255+i-a]<=o&&Ir[255+a-s]<=o&&Ir[255+f-c]<=o&&Ir[255+c-u]<=o&&Ir[255+u-l]<=o}function Ut(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)Wt(e,t+r,n,o)&&Dt(e,t+r,n)}function Kt(e,t,n,r){var o=2*r+1;for(r=0;16>r;++r)Wt(e,t+r*n,1,o)&&Dt(e,t+r*n,1)}function Vt(e,t,n,r){var o;for(o=3;0<o;--o)Ut(e,t+=4*n,n,r)}function Ht(e,t,n,r){var o;for(o=3;0<o;--o)Kt(e,t+=4,n,r)}function qt(e,t,n,r,o,i,a,s){for(i=2*i+1;0<o--;){if(zt(e,t,n,i,a))if(Bt(e,t,n,s))Dt(e,t,n);else{var l=e,u=t,c=n,f=l[u-2*c],d=l[u-c],h=l[u+0],p=l[u+c],v=l[u+2*c],g=27*(y=Nr[1020+3*(h-d)+Nr[1020+f-p]])+63>>7,m=18*y+63>>7,y=9*y+63>>7;l[u-3*c]=Lr[255+l[u-3*c]+y],l[u-2*c]=Lr[255+f+m],l[u-c]=Lr[255+d+g],l[u+0]=Lr[255+h-g],l[u+c]=Lr[255+p-m],l[u+2*c]=Lr[255+v-y]}t+=r}}function Gt(e,t,n,r,o,i,a,s){for(i=2*i+1;0<o--;){if(zt(e,t,n,i,a))if(Bt(e,t,n,s))Dt(e,t,n);else{var l=e,u=t,c=n,f=l[u-c],d=l[u+0],h=l[u+c],p=Mr[112+(4+(v=3*(d-f))>>3)],v=Mr[112+(v+3>>3)],g=p+1>>1;l[u-2*c]=Lr[255+l[u-2*c]+g],l[u-c]=Lr[255+f+v],l[u+0]=Lr[255+d-p],l[u+c]=Lr[255+h-g]}t+=r}}function Yt(e,t,n,r,o,i){qt(e,t,n,1,16,r,o,i)}function $t(e,t,n,r,o,i){qt(e,t,1,n,16,r,o,i)}function Xt(e,t,n,r,o,i){var a;for(a=3;0<a;--a)Gt(e,t+=4*n,n,1,16,r,o,i)}function Jt(e,t,n,r,o,i){var a;for(a=3;0<a;--a)Gt(e,t+=4,1,n,16,r,o,i)}function Qt(e,t,n,r,o,i,a,s){qt(e,t,o,1,8,i,a,s),qt(n,r,o,1,8,i,a,s)}function Zt(e,t,n,r,o,i,a,s){qt(e,t,1,o,8,i,a,s),qt(n,r,1,o,8,i,a,s)}function en(e,t,n,r,o,i,a,s){Gt(e,t+4*o,o,1,8,i,a,s),Gt(n,r+4*o,o,1,8,i,a,s)}function tn(e,t,n,r,o,i,a,s){Gt(e,t+4,1,o,8,i,a,s),Gt(n,r+4,1,o,8,i,a,s)}function nn(){this.ba=new ae,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function on(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function an(){this.ua=0,this.Wa=new I,this.vb=new I,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new h,this.yc=new f}function sn(){this.xb=this.a=0,this.l=new qe,this.ca=new ae,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new A,this.Pb=0,this.wd=new A,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new an,this.ab=0,this.gc=a(4,on),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new qe,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function un(e,t,n,r,o,i,a){for(e=null==e?0:e[t+0],t=0;t<a;++t)o[i+t]=e+n[r+t]&255,e=o[i+t]}function cn(e,t,n,r,o,i,a){var s;if(null==e)un(null,null,n,r,o,i,a);else for(s=0;s<a;++s)o[i+s]=e[t+s]+n[r+s]&255}function fn(e,t,n,r,o,i,a){if(null==e)un(null,null,n,r,o,i,a);else{var s,l=e[t+0],u=l,c=l;for(s=0;s<a;++s)u=c+(l=e[t+s])-u,c=n[r+s]+(-256&u?0>u?0:255:u)&255,u=l,o[i+s]=c}}function dn(e,n,o,a){var s=n.width,l=n.o;if(t(null!=e&&null!=n),0>o||0>=a||o+a>l)return null;if(!e.Cc){if(null==e.ga){var u;if(e.ga=new ln,(u=null==e.ga)||(u=n.width*n.o,t(0==e.Gb.length),e.Gb=i(u),e.Uc=0,null==e.Gb?u=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,u=1),u=!u),!u){u=e.ga;var c=e.Fa,f=e.P,d=e.qc,h=e.mb,p=e.nb,v=f+1,g=d-1,y=u.l;if(t(null!=c&&null!=h&&null!=n),mo[0]=null,mo[1]=un,mo[2]=cn,mo[3]=fn,u.ca=h,u.tb=p,u.c=n.width,u.i=n.height,t(0<u.c&&0<u.i),1>=d)n=0;else if(u.$a=3&c[f+0],u.Z=c[f+0]>>2&3,u.Lc=c[f+0]>>4&3,f=c[f+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||f)n=0;else if(y.put=he,y.ac=de,y.bc=pe,y.ma=u,y.width=n.width,y.height=n.height,y.Da=n.Da,y.v=n.v,y.va=n.va,y.j=n.j,y.o=n.o,u.$a)e:{t(1==u.$a),n=Oe();t:for(;;){if(null==n){n=0;break e}if(t(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,m(n.m,c,v,g),!Fe(u.c,u.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&Ce(n.s)?(u.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Te(n,u.c)),!n)break t;n=1;break e}u.mc=null,n=0}else n=g>=u.c*u.i;u=!n}if(u)return null;1!=e.ga.Lc?e.Ga=0:a=l-o}t(null!=e.ga),t(o+a<=l);e:{if(n=(c=e.ga).c,l=c.l.o,0==c.$a){if(v=e.rc,g=e.Vc,y=e.Fa,f=e.P+1+o*n,d=e.mb,h=e.nb+o*n,t(f<=e.P+e.qc),0!=c.Z)for(t(null!=mo[c.Z]),u=0;u<a;++u)mo[c.Z](v,g,y,f,d,h,n),v=d,g=h,h+=n,f+=n;else for(u=0;u<a;++u)r(d,h,y,f,n),v=d,g=h,h+=n,f+=n;e.rc=v,e.Vc=g}else{if(t(null!=c.mc),n=o+a,t(null!=(u=c.mc)),t(n<=u.i),u.C>=n)n=1;else if(c.ic||mn(),c.ic){c=u.V,v=u.Ba,g=u.c;var b=u.i,w=(y=1,f=u.$/g,d=u.$%g,h=u.m,p=u.s,u.$),A=g*b,x=g*n,S=p.wc,k=w<x?we(p,d,f):null;t(w<=A),t(n<=b),t(Ce(p));t:for(;;){for(;!h.h&&w<x;){if(d&S||(k=we(p,d,f)),t(null!=k),_(h),256>(b=ye(k.G[0],k.H[0],h)))c[v+w]=b,++w,++d>=g&&(d=0,++f<=n&&!(f%16)&&_e(u,f));else{if(!(280>b)){y=0;break t}b=ge(b-256,h);var E,O=ye(k.G[4],k.H[4],h);if(_(h),!(w>=(O=me(g,O=ge(O,h)))&&A-w>=b)){y=0;break t}for(E=0;E<b;++E)c[v+w+E]=c[v+w+E-O];for(w+=b,d+=b;d>=g;)d-=g,++f<=n&&!(f%16)&&_e(u,f);w<x&&d&S&&(k=we(p,d,f))}t(h.h==C(h))}_e(u,f>n?n:f);break t}!y||h.h&&w<A?(y=0,u.a=h.h?5:3):u.$=w,n=y}else n=ke(u,u.V,u.Ba,u.c,u.i,n,Pe);if(!n){a=0;break e}}o+a>=l&&(e.Cc=1),a=1}if(!a)return null;if(e.Cc&&(null!=(a=e.ga)&&(a.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+o*s}function hn(e,t,n,r,o,i){for(;0<o--;){var a,s=e,l=t+(n?1:0),u=e,c=t+(n?0:3);for(a=0;a<r;++a){var f=u[c+4*a];255!=f&&(f*=32897,s[l+4*a+0]=s[l+4*a+0]*f>>23,s[l+4*a+1]=s[l+4*a+1]*f>>23,s[l+4*a+2]=s[l+4*a+2]*f>>23)}t+=i}}function pn(e,t,n,r,o){for(;0<r--;){var i;for(i=0;i<n;++i){var a=e[t+2*i+0],s=15&(u=e[t+2*i+1]),l=4369*s,u=(240&u|u>>4)*l>>16;e[t+2*i+0]=(240&a|a>>4)*l>>16&240|(15&a|a<<4)*l>>16>>4&15,e[t+2*i+1]=240&u|s}t+=o}}function vn(e,t,n,r,o,i,a,s){var l,u,c=255;for(u=0;u<o;++u){for(l=0;l<r;++l){var f=e[t+l];i[a+4*l]=f,c&=f}t+=n,a+=s}return 255!=c}function gn(e,t,n,r,o){var i;for(i=0;i<o;++i)n[r+i]=e[t+i]>>8}function mn(){Cr=hn,Sr=pn,_r=vn,kr=gn}function yn(n,r,o){e[n]=function(e,n,i,a,s,l,u,c,f,d,h,p,v,g,m,y,b){var w,A=b-1>>1,x=s[l+0]|u[c+0]<<16,C=f[d+0]|h[p+0]<<16;t(null!=e);var S=3*x+C+131074>>2;for(r(e[n+0],255&S,S>>16,v,g),null!=i&&(S=3*C+x+131074>>2,r(i[a+0],255&S,S>>16,m,y)),w=1;w<=A;++w){var _=s[l+w]|u[c+w]<<16,k=f[d+w]|h[p+w]<<16,E=x+_+C+k+524296,O=E+2*(_+C)>>3;S=O+x>>1,x=(E=E+2*(x+k)>>3)+_>>1,r(e[n+2*w-1],255&S,S>>16,v,g+(2*w-1)*o),r(e[n+2*w-0],255&x,x>>16,v,g+(2*w-0)*o),null!=i&&(S=E+C>>1,x=O+k>>1,r(i[a+2*w-1],255&S,S>>16,m,y+(2*w-1)*o),r(i[a+2*w+0],255&x,x>>16,m,y+(2*w+0)*o)),x=_,C=k}1&b||(S=3*x+C+131074>>2,r(e[n+b-1],255&S,S>>16,v,g+(b-1)*o),null!=i&&(S=3*C+x+131074>>2,r(i[a+b-1],255&S,S>>16,m,y+(b-1)*o)))}}function bn(){yo[Rr]=bo,yo[jr]=Ao,yo[Dr]=wo,yo[Br]=xo,yo[Wr]=Co,yo[zr]=So,yo[Ur]=_o,yo[Kr]=Ao,yo[Vr]=xo,yo[Hr]=Co,yo[qr]=So}function wn(e){return e&~Po?0>e?0:255:e>>To}function An(e,t){return wn((19077*e>>8)+(26149*t>>8)-14234)}function xn(e,t,n){return wn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Cn(e,t){return wn((19077*e>>8)+(33050*t>>8)-17685)}function Sn(e,t,n,r,o){r[o+0]=An(e,n),r[o+1]=xn(e,t,n),r[o+2]=Cn(e,t)}function _n(e,t,n,r,o){r[o+0]=Cn(e,t),r[o+1]=xn(e,t,n),r[o+2]=An(e,n)}function kn(e,t,n,r,o){var i=xn(e,t,n);t=i<<3&224|Cn(e,t)>>3,r[o+0]=248&An(e,n)|i>>5,r[o+1]=t}function En(e,t,n,r,o){var i=240&Cn(e,t)|15;r[o+0]=240&An(e,n)|xn(e,t,n)>>4,r[o+1]=i}function On(e,t,n,r,o){r[o+0]=255,Sn(e,t,n,r,o+1)}function Fn(e,t,n,r,o){_n(e,t,n,r,o),r[o+3]=255}function Tn(e,t,n,r,o){Sn(e,t,n,r,o),r[o+3]=255}function He(e,t){return 0>e?0:e>t?t:e}function Pn(t,n,r){e[t]=function(e,t,o,i,a,s,l,u,c){for(var f=u+(-2&c)*r;u!=f;)n(e[t+0],o[i+0],a[s+0],l,u),n(e[t+1],o[i+0],a[s+0],l,u+r),t+=2,++i,++s,u+=2*r;1&c&&n(e[t+0],o[i+0],a[s+0],l,u)}}function Nn(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Mn(e,t,n,r,o){switch(e>>>30){case 3:ar(t,n,r,o,0);break;case 2:sr(t,n,r,o);break;case 1:ur(t,n,r,o)}}function Ln(e,t){var n,i,a=t.M,s=t.Nb,l=e.oc,u=e.pc+40,c=e.oc,f=e.pc+584,d=e.oc,h=e.pc+600;for(n=0;16>n;++n)l[u+32*n-1]=129;for(n=0;8>n;++n)c[f+32*n-1]=129,d[h+32*n-1]=129;for(0<a?l[u-1-32]=c[f-1-32]=d[h-1-32]=129:(o(l,u-32-1,127,21),o(c,f-32-1,127,9),o(d,h-32-1,127,9)),i=0;i<e.za;++i){var p=t.ya[t.aa+i];if(0<i){for(n=-1;16>n;++n)r(l,u+32*n-4,l,u+32*n+12,4);for(n=-1;8>n;++n)r(c,f+32*n-4,c,f+32*n+4,4),r(d,h+32*n-4,d,h+32*n+4,4)}var v=e.Gd,g=e.Hd+i,m=p.ad,y=p.Hc;if(0<a&&(r(l,u-32,v[g].y,0,16),r(c,f-32,v[g].f,0,8),r(d,h-32,v[g].ea,0,8)),p.Za){var b=l,w=u-32+16;for(0<a&&(i>=e.za-1?o(b,w,v[g].y[15],4):r(b,w,v[g+1].y,0,4)),n=0;4>n;n++)b[w+128+n]=b[w+256+n]=b[w+384+n]=b[w+0+n];for(n=0;16>n;++n,y<<=2)b=l,w=u+Bo[n],ho[p.Ob[n]](b,w),Mn(y,m,16*+n,b,w)}else if(b=Nn(i,a,p.Ob[0]),fo[b](l,u),0!=y)for(n=0;16>n;++n,y<<=2)Mn(y,m,16*+n,l,u+Bo[n]);for(n=p.Gc,b=Nn(i,a,p.Dd),po[b](c,f),po[b](d,h),y=m,b=c,w=f,255&(p=n|0)&&(170&p?lr(y,256,b,w):cr(y,256,b,w)),p=d,y=h,255&(n>>=8)&&(170&n?lr(m,320,p,y):cr(m,320,p,y)),a<e.Ub-1&&(r(v[g].y,0,l,u+480,16),r(v[g].f,0,c,f+224,8),r(v[g].ea,0,d,h+224,8)),n=8*s*e.B,v=e.sa,g=e.ta+16*i+16*s*e.R,m=e.qa,p=e.ra+8*i+n,y=e.Ha,b=e.Ia+8*i+n,n=0;16>n;++n)r(v,g+n*e.R,l,u+32*n,16);for(n=0;8>n;++n)r(m,p+n*e.B,c,f+32*n,8),r(y,b+n*e.B,d,h+32*n,8)}}function In(e,r,o,i,a,s,l,u,c){var f=[0],d=[0],h=0,p=null!=c?c.kd:0,v=null!=c?c:new rn;if(null==e||12>o)return 7;v.data=e,v.w=r,v.ha=o,r=[r],o=[o],v.gb=[v.gb];e:{var g=r,y=o,b=v.gb;if(t(null!=e),t(null!=y),t(null!=b),b[0]=0,12<=y[0]&&!n(e,g[0],"RIFF")){if(n(e,g[0]+8,"WEBP")){b=3;break e}var w=N(e,g[0]+4);if(12>w||4294967286<w){b=3;break e}if(p&&w>y[0]-8){b=7;break e}b[0]=w,g[0]+=12,y[0]-=12}b=0}if(0!=b)return b;for(w=0<v.gb[0],o=o[0];;){e:{var x=e;y=r,b=o;var C=f,S=d,_=g=[0];if((O=h=[h])[0]=0,8>b[0])b=7;else{if(!n(x,y[0],"VP8X")){if(10!=N(x,y[0]+4)){b=3;break e}if(18>b[0]){b=7;break e}var k=N(x,y[0]+8),E=1+P(x,y[0]+12);if(2147483648<=E*(x=1+P(x,y[0]+15))){b=3;break e}null!=_&&(_[0]=k),null!=C&&(C[0]=E),null!=S&&(S[0]=x),y[0]+=18,b[0]-=18,O[0]=1}b=0}}if(h=h[0],g=g[0],0!=b)return b;if(y=!!(2&g),!w&&h)return 3;if(null!=s&&(s[0]=!!(16&g)),null!=l&&(l[0]=y),null!=u&&(u[0]=0),l=f[0],g=d[0],h&&y&&null==c){b=0;break}if(4>o){b=7;break}if(w&&h||!w&&!h&&!n(e,r[0],"ALPH")){o=[o],v.na=[v.na],v.P=[v.P],v.Sa=[v.Sa];e:{k=e,b=r,w=o;var O=v.gb;C=v.na,S=v.P,_=v.Sa,E=22,t(null!=k),t(null!=w),x=b[0];var F=w[0];for(t(null!=C),t(null!=_),C[0]=null,S[0]=null,_[0]=0;;){if(b[0]=x,w[0]=F,8>F){b=7;break e}var T=N(k,x+4);if(4294967286<T){b=3;break e}var M=8+T+1&-2;if(E+=M,0<O&&E>O){b=3;break e}if(!n(k,x,"VP8 ")||!n(k,x,"VP8L")){b=0;break e}if(F[0]<M){b=7;break e}n(k,x,"ALPH")||(C[0]=k,S[0]=x+8,_[0]=T),x+=M,F-=M}}if(o=o[0],v.na=v.na[0],v.P=v.P[0],v.Sa=v.Sa[0],0!=b)break}o=[o],v.Ja=[v.Ja],v.xa=[v.xa];e:if(O=e,b=r,w=o,C=v.gb[0],S=v.Ja,_=v.xa,k=b[0],x=!n(O,k,"VP8 "),E=!n(O,k,"VP8L"),t(null!=O),t(null!=w),t(null!=S),t(null!=_),8>w[0])b=7;else{if(x||E){if(O=N(O,k+4),12<=C&&O>C-12){b=3;break e}if(p&&O>w[0]-8){b=7;break e}S[0]=O,b[0]+=8,w[0]-=8,_[0]=E}else _[0]=5<=w[0]&&47==O[k+0]&&!(O[k+4]>>5),S[0]=w[0];b=0}if(o=o[0],v.Ja=v.Ja[0],v.xa=v.xa[0],r=r[0],0!=b)break;if(4294967286<v.Ja)return 3;if(null==u||y||(u[0]=v.xa?2:1),l=[l],g=[g],v.xa){if(5>o){b=7;break}u=l,p=g,y=s,null==e||5>o?e=0:5<=o&&47==e[r+0]&&!(e[r+4]>>5)?(w=[0],O=[0],C=[0],m(S=new A,e,r,o),ve(S,w,O,C)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=O[0]),null!=y&&(y[0]=C[0]),e=1):e=0):e=0}else{if(10>o){b=7;break}u=g,null==e||10>o||!$e(e,r+3,o-3)?e=0:(p=e[r+0]|e[r+1]<<8|e[r+2]<<16,y=16383&(e[r+7]<<8|e[r+6]),e=16383&(e[r+9]<<8|e[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=v.Ja||!y||!e?e=0:(l&&(l[0]=y),u&&(u[0]=e),e=1))}if(!e)return 3;if(l=l[0],g=g[0],h&&(f[0]!=l||d[0]!=g))return 3;null!=c&&(c[0]=v,c.offset=r-c.w,t(4294967286>r-c.w),t(c.offset==c.ha-o));break}return 0==b||7==b&&h&&null==c?(null!=s&&(s[0]|=null!=v.na&&0<v.na.length),null!=i&&(i[0]=l),null!=a&&(a[0]=g),0):b}function Rn(e,t,n){var r=t.width,o=t.height,i=0,a=0,s=r,l=o;if(t.Da=null!=e&&0<e.Da,t.Da&&(s=e.cd,l=e.bd,i=e.v,a=e.j,11>n||(i&=-2,a&=-2),0>i||0>a||0>=s||0>=l||i+s>r||a+l>o))return 0;if(t.v=i,t.j=a,t.va=i+s,t.o=a+l,t.U=s,t.T=l,t.da=null!=e&&0<e.da,t.da){if(!R(s,l,n=[e.ib],i=[e.hb]))return 0;t.ib=n[0],t.hb=i[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*r/4&&t.hb<3*o/4,t.Kb=0),1}function jn(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Dn(e,t,n,r){if(null==r||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var o=n.cd,a=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=o||0>=a||s+o>e||l+a>t)return 2;e=o,t=a}if(n.da){if(!R(e,t,o=[n.ib],a=[n.hb]))return 2;e=o[0],t=a[0]}}r.width=e,r.height=t;e:{var u=r.width,c=r.height;if(e=r.S,0>=u||0>=c||!(e>=Rr&&13>e))e=2;else{if(0>=r.Rd&&null==r.sd){s=a=o=t=0;var f=(l=u*Ko[e])*c;if(11>e||(a=(c+1)/2*(t=(u+1)/2),12==e&&(s=(o=u)*c)),null==(c=i(f+2*a+s))){e=1;break e}r.sd=c,11>e?((u=r.f.RGBA).eb=c,u.fb=0,u.A=l,u.size=f):((u=r.f.kb).y=c,u.O=0,u.fa=l,u.Fd=f,u.f=c,u.N=0+f,u.Ab=t,u.Cd=a,u.ea=c,u.W=0+f+a,u.Db=t,u.Ed=a,12==e&&(u.F=c,u.J=0+f+2*a),u.Tc=s,u.lb=o)}if(t=1,o=r.S,a=r.width,s=r.height,o>=Rr&&13>o)if(11>o)e=r.f.RGBA,t&=(l=Math.abs(e.A))*(s-1)+a<=e.size,t&=l>=a*Ko[o],t&=null!=e.eb;else{e=r.f.kb,l=(a+1)/2,f=(s+1)/2,u=Math.abs(e.fa),c=Math.abs(e.Ab);var d=Math.abs(e.Db),h=Math.abs(e.lb),p=h*(s-1)+a;t&=u*(s-1)+a<=e.Fd,t&=c*(f-1)+l<=e.Cd,t=(t&=d*(f-1)+l<=e.Ed)&u>=a&c>=l&d>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==o&&(t&=h>=a,t&=p<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=jn(r)),e}var Bn=64,Wn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],zn=24,Un=32,Kn=8,Vn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return z(z(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return z(e,t[n-1])},e.Predictor7=function(e,t,n){return z(e,t[n+0])},e.Predictor8=function(e,t,n){return z(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return z(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return z(z(e,t[n-1]),z(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var r=t[n+0];return 0>=V(r>>24&255,e>>24&255,(t=t[n-1])>>24&255)+V(r>>16&255,e>>16&255,t>>16&255)+V(r>>8&255,e>>8&255,t>>8&255)+V(255&r,255&e,255&t)?r:e},e.Predictor12=function(e,t,n){var r=t[n+0];return(U((e>>24&255)+(r>>24&255)-((t=t[n-1])>>24&255))<<24|U((e>>16&255)+(r>>16&255)-(t>>16&255))<<16|U((e>>8&255)+(r>>8&255)-(t>>8&255))<<8|U((255&e)+(255&r)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var r=t[n-1];return(K((e=z(e,t[n+0]))>>24&255,r>>24&255)<<24|K(e>>16&255,r>>16&255)<<16|K(e>>8&255,r>>8&255)<<8|K(255&e,255&r))>>>0};var Hn=e.PredictorAdd0;e.PredictorAdd1=H,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var qn=e.PredictorAdd2;$("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),$("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Gn,Yn=e.ColorIndexInverseTransform,$n=e.MapARGB,Xn=e.VP8LColorIndexInverseTransformAlpha,Jn=e.MapAlpha,Qn=e.VP8LPredictorsAdd=[];Qn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zn,er,tr,nr,rr,or,ir,ar,sr,lr,ur,cr,fr,dr,hr,pr,vr,gr,mr,yr,br,wr,Ar,xr,Cr,Sr,_r,kr,Er=i(511),Or=i(2041),Fr=i(225),Tr=i(767),Pr=0,Nr=Or,Mr=Fr,Lr=Tr,Ir=Er,Rr=0,jr=1,Dr=2,Br=3,Wr=4,zr=5,Ur=6,Kr=7,Vr=8,Hr=9,qr=10,Gr=[2,3,7],Yr=[3,3,11],$r=[280,256,256,256,40],Xr=[0,1,1,1,0],Jr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Qr=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Zr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],eo=8,to=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],no=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ro=null,oo=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],io=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ao=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],so=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],lo=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],uo=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],co=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],fo=[],ho=[],po=[],vo=1,go=2,mo=[],yo=[];yn("UpsampleRgbLinePair",Sn,3),yn("UpsampleBgrLinePair",_n,3),yn("UpsampleRgbaLinePair",Tn,4),yn("UpsampleBgraLinePair",Fn,4),yn("UpsampleArgbLinePair",On,4),yn("UpsampleRgba4444LinePair",En,2),yn("UpsampleRgb565LinePair",kn,2);var bo=e.UpsampleRgbLinePair,wo=e.UpsampleBgrLinePair,Ao=e.UpsampleRgbaLinePair,xo=e.UpsampleBgraLinePair,Co=e.UpsampleArgbLinePair,So=e.UpsampleRgba4444LinePair,_o=e.UpsampleRgb565LinePair,ko=16,Eo=1<<ko-1,Oo=-227,Fo=482,To=6,Po=(256<<To)-1,No=0,Mo=i(256),Lo=i(256),Io=i(256),Ro=i(256),jo=i(Fo-Oo),Do=i(Fo-Oo);Pn("YuvToRgbRow",Sn,3),Pn("YuvToBgrRow",_n,3),Pn("YuvToRgbaRow",Tn,4),Pn("YuvToBgraRow",Fn,4),Pn("YuvToArgbRow",On,4),Pn("YuvToRgba4444Row",En,2),Pn("YuvToRgb565Row",kn,2);var Bo=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Wo=[0,2,8],zo=[8,7,6,4,4,2,2,2,1,1,1,1],Uo=1;this.WebPDecodeRGBA=function(e,n,r,o,i){var a=jr,s=new nn,l=new ae;s.ba=l,l.S=a,l.width=[l.width],l.height=[l.height];var u=l.width,c=l.height,f=new se;if(null==f||null==e)var d=2;else t(null!=f),d=In(e,n,r,f.width,f.height,f.Pd,f.Qd,f.format,null);if(0!=d?u=0:(null!=u&&(u[0]=f.width[0]),null!=c&&(c[0]=f.height[0]),u=1),u){l.width=l.width[0],l.height=l.height[0],null!=o&&(o[0]=l.width),null!=i&&(i[0]=l.height);e:{if(o=new qe,(i=new rn).data=e,i.w=n,i.ha=r,i.kd=1,n=[0],t(null!=i),(0==(e=In(i.data,i.w,i.ha,null,null,null,n,null,i))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=s),o.data=i.data,o.w=i.w+i.offset,o.ha=i.ha-i.offset,o.put=he,o.ac=de,o.bc=pe,o.ma=s,i.xa){if(null==(e=Oe())){s=1;break e}if(function(e,n){var r=[0],o=[0],i=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,m(e.m,n.data,n.w,n.ha),!ve(e.m,r,o,i)){e.a=3;break t}if(e.xb=go,n.width=r[0],n.height=o[0],!Fe(r[0],o[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,o)){if(o=0==(n=Dn(o.width,o.height,s.Oa,s.ba))){t:{o=e;n:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(r=o.l)),t(null!=(i=r.ma)),0!=o.xb){if(o.ca=i.ba,o.tb=i.tb,t(null!=o.ca),!Rn(i.Oa,r,Br)){o.a=2;break n}if(!Te(o,r.width))break n;if(r.da)break n;if((r.da||re(o.ca.S))&&mn(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&mn()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!M(o.s.vb,o.s.Wa.Xa)){o.a=1;break n}o.xb=0}if(!ke(o,o.V,o.Ba,o.c,o.i,r.o,xe))break n;i.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(n=e.a)}else n=e.a}else{if(null==(e=new Ge)){s=1;break e}if(e.Fa=i.na,e.P=i.P,e.qc=i.Sa,Xe(e,o)){if(0==(n=Dn(o.width,o.height,s.Oa,s.ba))){if(e.Aa=0,r=s.Oa,t(null!=(i=e)),null!=r){if(0<(u=0>(u=r.Md)?0:100<u?255:255*u/100)){for(c=f=0;4>c;++c)12>(d=i.pb[c]).lc&&(d.ia=u*zo[0>d.lc?0:d.lc]>>3),f|=d.ia;f&&(alert("todo:VP8InitRandom"),i.ia=1)}i.Ga=r.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}Ze(e,o)||(n=e.a)}}else n=e.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=jn(s.ba))}s=n}a=0!=s?null:11>a?l.f.RGBA.eb:l.f.kb.y}else a=null;return a};var Ko=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(e,t){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(e[t++]);return n}function c(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function f(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var d=[0],h=[0],p=[],v=new l,g=e,m=function(e,t){var n={},r=0,o=!1,i=0,a=0;if(n.frames=[],!
/** @license
   * Copyright (c) 2017 Dominik Homberger
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  https://webpjs.appspot.com
  WebPRiffParser dominikhlbg@gmail.com
  */
function(e,t,n,r){for(var o=0;o<r;o++)if(e[t+o]!=n.charCodeAt(o))return!0;return!1}(e,t,"RIFF",4)){var s,l;for(f(e,t+=4),t+=8;t<e.length;){var d=u(e,t),h=f(e,t+=4);t+=4;var p=h+(1&h);switch(d){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(m=n.frames[r]).src_off=o?a:t-8,m.src_size=i+h+8,r++,o&&(o=!1,i=0,a=0);break;case"VP8X":(m=n.header={}).feature_flags=e[t];var v=t+4;m.canvas_width=1+c(e,v),v+=3,m.canvas_height=1+c(e,v),v+=3;break;case"ALPH":o=!0,i=p+8,a=t-8;break;case"ANIM":(m=n.header).bgcolor=f(e,t),v=t+4,m.loop_count=(s=e)[(l=v)+0]|s[l+1]<<8,v+=2;break;case"ANMF":var g,m;(m=n.frames[r]={}).offset_x=2*c(e,t),t+=3,m.offset_y=2*c(e,t),t+=3,m.width=1+c(e,t),t+=3,m.height=1+c(e,t),t+=3,m.duration=c(e,t),t+=3,g=e[t++],m.dispose=1&g,m.blend=g>>1&1}"ANMF"!=d&&(t+=p)}return n}}(g,0);m.response=g,m.rgbaoutput=!0,m.dataurl=!1;var y=m.header?m.header:null,b=m.frames?m.frames:null;if(y){y.loop_counter=y.loop_count,d=[y.canvas_height],h=[y.canvas_width];for(var w=0;w<b.length&&0!=b[w].blend;w++);}var A=b[0],x=v.WebPDecodeRGBA(g,A.src_off,A.src_size,h,d);A.rgba=x,A.imgwidth=h[0],A.imgheight=d[0];for(var C=0;C<h[0]*d[0]*4;C++)p[C]=x[C];return this.width=h,this.height=d,this.data=p,this}!function(e){var t=function(){return"function"==typeof $},n=function(t,n,o,u){var c=4,f=a;switch(u){case e.image_compression.FAST:c=1,f=i;break;case e.image_compression.MEDIUM:c=6,f=s;break;case e.image_compression.SLOW:c=9,f=l}t=r(t,n,o,f);var d=$(t,{level:c});return e.__addimage__.arrayBufferToBinaryString(d)},r=function(e,t,n,r){for(var o,i,a,s=e.length/t,l=new Uint8Array(e.length+s),u=c(),d=0;d<s;d+=1){if(a=d*t,o=e.subarray(a,a+t),r)l.set(r(o,n,i),a+d);else{for(var h,p=u.length,v=[];h<p;h+=1)v[h]=u[h](o,n,i);var g=f(v.concat());l.set(v[g],a+d)}i=o}return l},o=function(e){var t=Array.apply([],e);return t.unshift(0),t},i=function(e,t){var n,r=[],o=e.length;r[0]=1;for(var i=0;i<o;i+=1)n=e[i-t]||0,r[i+1]=e[i]-n+256&255;return r},a=function(e,t,n){var r,o=[],i=e.length;o[0]=2;for(var a=0;a<i;a+=1)r=n&&n[a]||0,o[a+1]=e[a]-r+256&255;return o},s=function(e,t,n){var r,o,i=[],a=e.length;i[0]=3;for(var s=0;s<a;s+=1)r=e[s-t]||0,o=n&&n[s]||0,i[s+1]=e[s]+256-(r+o>>>1)&255;return i},l=function(e,t,n){var r,o,i,a,s=[],l=e.length;s[0]=4;for(var c=0;c<l;c+=1)r=e[c-t]||0,o=n&&n[c]||0,i=n&&n[c-t]||0,a=u(r,o,i),s[c+1]=e[c]-a+256&255;return s},u=function(e,t,n){if(e===t&&t===n)return e;var r=Math.abs(t-n),o=Math.abs(e-n),i=Math.abs(e+t-n-n);return r<=o&&r<=i?e:o<=i?t:n},c=function(){return[o,i,a,s,l]},f=function(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(r,o,i,a){var s,l,u,c,f,d,h,p,v,g,m,y,b,w,A,x=this.decode.FLATE_DECODE,C="";if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){if(r=(u=new Kt(r)).imgData,l=u.bits,s=u.colorSpace,f=u.colors,-1!==[4,6].indexOf(u.colorType)){if(8===u.bits){v=(p=32==u.pixelBitlength?new Uint32Array(u.decodePixels().buffer):16==u.pixelBitlength?new Uint16Array(u.decodePixels().buffer):new Uint8Array(u.decodePixels().buffer)).length,m=new Uint8Array(v*u.colors),g=new Uint8Array(v);var S,_=u.pixelBitlength-u.bits;for(w=0,A=0;w<v;w++){for(b=p[w],S=0;S<_;)m[A++]=b>>>S&255,S+=u.bits;g[w]=b>>>S&255}}if(16===u.bits){v=(p=new Uint32Array(u.decodePixels().buffer)).length,m=new Uint8Array(v*(32/u.pixelBitlength)*u.colors),g=new Uint8Array(v*(32/u.pixelBitlength)),y=u.colors>1,w=0,A=0;for(var k=0;w<v;)b=p[w++],m[A++]=b>>>0&255,y&&(m[A++]=b>>>16&255,b=p[w++],m[A++]=b>>>0&255),g[k++]=b>>>16&255;l=8}a!==e.image_compression.NONE&&t()?(r=n(m,u.width*u.colors,u.colors,a),h=n(g,u.width,1,a)):(r=m,h=g,x=void 0)}if(3===u.colorType&&(s=this.color_spaces.INDEXED,d=u.palette,u.transparency.indexed)){var E=u.transparency.indexed,O=0;for(w=0,v=E.length;w<v;++w)O+=E[w];if((O/=255)===v-1&&-1!==E.indexOf(0))c=[E.indexOf(0)];else if(O!==v){for(p=u.decodePixels(),g=new Uint8Array(p.length),w=0,v=p.length;w<v;w++)g[w]=E[p[w]];h=n(g,u.width,1)}}var F=function(t){var n;switch(t){case e.image_compression.FAST:n=11;break;case e.image_compression.MEDIUM:n=13;break;case e.image_compression.SLOW:n=14;break;default:n=12}return n}(a);return x===this.decode.FLATE_DECODE&&(C="/Predictor "+F+" "),C+="/Colors "+f+" /BitsPerComponent "+l+" /Columns "+u.width,(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:i,data:r,index:o,filter:x,decodeParameters:C,transparency:c,palette:d,sMask:h,predictor:F,width:u.width,height:u.height,bitsPerComponent:l,colorSpace:s}}}}(Te.API),function(e){e.processGIF89A=function(t,n,r,o){var i=new Vt(t),a=i.width,s=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:a,height:s},c=new qt(100).encode(u,100);return e.processJPEG.call(this,c,n,r,o)},e.processGIF87A=e.processGIF89A}(Te.API),Gt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:r,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Gt.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){Z.log("bit decode error:"+e)}},Gt.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*o*4,s=0;s<8&&8*o+s<this.width;s++){var l=this.palette[i>>7-s&1];this.data[a+4*s]=l.blue,this.data[a+4*s+1]=l.green,this.data[a+4*s+2]=l.red,this.data[a+4*s+3]=255}0!==n&&(this.pos+=4-n)}},Gt.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<e;o++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*o*4,s=i>>4,l=15&i,u=this.palette[s];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*o+1>=this.width)break;u=this.palette[l],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}0!==t&&(this.pos+=4-t)}},Gt.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var o=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*r;if(o<this.palette.length){var a=this.palette[o];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==e&&(this.pos+=4-e)}},Gt.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,u=i>>15?255:0,c=r*this.width*4+4*o;this.data[c]=l,this.data[c+1]=s,this.data[c+2]=a,this.data[c+3]=u}this.pos+=e}},Gt.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var o=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&t)/t*255|0,l=(a>>5&n)/n*255|0,u=(a>>11)/t*255|0,c=o*this.width*4+4*i;this.data[c]=u,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=255}this.pos+=e}},Gt.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=i,this.data[a+1]=o,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Gt.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=i,this.data[s+1]=o,this.data[s+2]=r,this.data[s+3]=a}},Gt.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2018 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.processBMP=function(t,n,r,o){var i=new Gt(t,!1),a=i.width,s=i.height,l={data:i.getData(),width:a,height:s},u=new qt(100).encode(l,100);return e.processJPEG.call(this,u,n,r,o)}}(Te.API),Yt.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2019 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){e.processWEBP=function(t,n,r,o){var i=new Yt(t,!1),a=i.width,s=i.height,l={data:i.getData(),width:a,height:s},u=new qt(100).encode(l,100);return e.processJPEG.call(this,u,n,r,o)}}(Te.API),Te.API.processRGBA=function(e,t,n){for(var r=e.data,o=r.length,i=new Uint8Array(o/4*3),a=new Uint8Array(o/4),s=0,l=0,u=0;u<o;u+=4){var c=r[u],f=r[u+1],d=r[u+2],h=r[u+3];i[s++]=c,i[s++]=f,i[s++]=d,a[l++]=h}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:p,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Te.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Dt=Te.API,Bt=Dt.getCharWidthsArray=function(e,t){var n,o,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:i.metadata.Unicode.widths,u=l.fof?l.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,f=c.fof?c.fof:1,d=!1!==t.doKerning,h=0,p=e.length,v=0,g=l[0]||u,m=[];for(n=0;n<p;n++)o=e.charCodeAt(n),"function"==typeof i.metadata.widthOfString?m.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(o))+s*(1e3/a)||0)/1e3):(h=d&&"object"===(0,r.A)(c[o])&&!isNaN(parseInt(c[o][v],10))?c[o][v]/f:0,m.push((l[o]||g)/u+h)),v=o;return m},Wt=Dt.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return Dt.processArabic&&(e=Dt.processArabic(e)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,o)/n:Bt.apply(this,arguments).reduce((function(e,t){return e+t}),0)},zt=function(e,t,n,r){for(var o=[],i=0,a=e.length,s=0;i!==a&&s+t[i]<n;)s+=t[i],i++;o.push(e.slice(0,i));var l=i;for(s=0;i!==a;)s+t[i]>r&&(o.push(e.slice(l,i)),s=0,l=i),s+=t[i],i++;return l!==i&&o.push(e.slice(l,i)),o},Ut=function(e,t,n){n||(n={});var r,o,i,a,s,l,u,c=[],f=[c],d=n.textIndent||0,h=0,p=0,v=e.split(" "),g=Bt.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?v[0].length+2:n.lineIndent||0){var m=Array(l).join(" "),y=[];v.map((function(e){(e=e.split(/\s*\n/)).length>1?y=y.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):y.push(e[0])})),v=y,l=Wt.apply(this,[m,n])}for(i=0,a=v.length;i<a;i++){var b=0;if(r=v[i],l&&"\n"==r[0]&&(r=r.substr(1),b=1),d+h+(p=(o=Bt.apply(this,[r,n])).reduce((function(e,t){return e+t}),0))>t||b){if(p>t){for(s=zt.apply(this,[r,o,t-(d+h),t]),c.push(s.shift()),c=[s.pop()];s.length;)f.push([s.shift()]);p=o.slice(r.length-(c[0]?c[0].length:0)).reduce((function(e,t){return e+t}),0)}else c=[r];f.push(c),d=p+l,h=g}else c.push(r),d+=h+p,h=g}return u=l?function(e,t){return(t?m:"")+e.join(" ")}:function(e){return e.join(" ")},f.map(u)},Dt.splitTextToSize=function(e,t,n){var r,o=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/o;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/o:0,i.lineIndent=n.lineIndent;var s,l,u=[];for(s=0,l=r.length;s<l;s++)u=u.concat(Ut.apply(this,[r[s],a,i]));return u},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},o={},i=0;i<t.length;i++)n[t[i]]="0123456789abcdef"[i],o["0123456789abcdef"[i]]=t[i];var a=function(e){return"0x"+parseInt(e,10).toString(16)},s=e.__fontmetrics__.compress=function(e){var t,n,i,l,u=["{"];for(var c in e){if(t=e[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=a(c).slice(2)).slice(0,-1)+o[n.slice(-1)]),"number"==typeof t)t<0?(i=a(t).slice(3),l="-"):(i=a(t).slice(2),l=""),i=l+i.slice(0,-1)+o[i.slice(-1)];else{if("object"!==(0,r.A)(t))throw new Error("Don't know what to do with value type "+(0,r.A)(t)+".");i=s(t)}u.push(n+i)}return u.push("}"),u.join("")},l=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,r,o,i,a={},s=1,l=a,u=[],c="",f="",d=e.length-1,h=1;h<d;h+=1)"'"==(i=e[h])?t?(o=t.join(""),t=void 0):t=[]:t?t.push(i):"{"==i?(u.push([l,o]),l={},o=void 0):"}"==i?((r=u.pop())[0][r[1]]=l,o=void 0,l=r[0]):"-"==i?s=-1:void 0===o?n.hasOwnProperty(i)?(c+=n[i],o=parseInt(c,16)*s,s=1,c=""):c+=i:n.hasOwnProperty(i)?(f+=n[i],l[o]=parseInt(f,16)*s,s=1,o=void 0,f=""):f+=i;return a},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=f.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var r=c.Unicode[t.postScriptName];r&&(t.metadata.Unicode.encoding=r,t.encoding=r.codePages[0])}])}(Te.API),
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n};e.API.events.push(["addFont",function(n){var r=void 0,o=n.font,i=n.instance;if(!o.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(o.postScriptName)?i.loadFile(o.postScriptName):i.getFileFromVFS(o.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?t(r):t(re(r)),n.metadata=e.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(o,r)}}])}(Te),
/** @license
 * Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
function(){function e(){return(J.canvg?Promise.resolve(J.canvg):n.e(132).then(n.bind(n,61132))).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e}))}Te.API.addSvgAsImage=function(t,n,r,o,i,a,s,l){if(isNaN(n)||isNaN(r))throw Z.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(i))throw Z.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=o,u.height=i;var c=u.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,u.width,u.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(c,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(f)})).then((function(){d.addImage(u.toDataURL("image/jpeg",1),n,r,o,i,s,l)}))}}(),Te.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var o=0;o<this.internal.pages[r].length;o++)this.internal.pages[r][o]=this.internal.pages[r][o].replace(t,n);return this},Te.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var o,i,a,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),u=[],c=0,f=0,d=0;function h(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=l.length;for(d=0;d<p;d+=1)n[l[d]].value=n[l[d]].defaultValue,n[l[d]].explicitSet=!1}if("object"===(0,r.A)(e))for(i in e)if(a=e[i],h(l,i)&&void 0!==a){if("boolean"===n[i].type&&"boolean"==typeof a)n[i].value=a;else if("name"===n[i].type&&h(n[i].valueSet,a))n[i].value=a;else if("integer"===n[i].type&&Number.isInteger(a))n[i].value=a;else if("array"===n[i].type){for(c=0;c<a.length;c+=1)if(o=!0,1===a[c].length&&"number"==typeof a[c][0])u.push(String(a[c]-1));else if(a[c].length>1){for(f=0;f<a[c].length;f+=1)"number"!=typeof a[c][f]&&(o=!1);!0===o&&u.push([a[c][0]-1,a[c][1]-1].join(" "))}n[i].value="["+u.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this
/** ====================================================================
 * @license
 * jsPDF XMP metadata plugin
 * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */},function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+o.length+t.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+o+i),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(Te.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,o=["","0","00","000","0000"],i=[""],a=0,s=e.length;a<s;++a){if(n=t.metadata.characterToGlyph(e.charCodeAt(a)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return i.join("");n=n.toString(16),i.push(o[4-n.length],n)}return i.join("")},r=function(e){var t,n,r,o,i,a,s;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],a=0,s=(n=Object.keys(e).sort((function(e,t){return e-t}))).length;a<s;a++)t=n[a],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(o=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+o+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),u="",c=0;c<l.length;c++)u+=String.fromCharCode(l[c]);var f=i();a({data:u,addLength1:!0,objectId:f}),o("endobj");var d=i();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:d}),o("endobj");var h=i();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+Se(n.fontName)),o("/FontFile2 "+f+" 0 R"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/Flags "+n.metadata.flags),o("/StemV "+n.metadata.stemV),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o(">>"),o("endobj");var p=i();o("<<"),o("/Type /Font"),o("/BaseFont /"+Se(n.fontName)),o("/FontDescriptor "+h+" 0 R"),o("/W "+e.API.PDFObject.convert(s)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+n.encoding+")"),o(">>"),o(">>"),o("endobj"),n.objectNumber=i(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+d+" 0 R"),o("/BaseFont /"+Se(n.fontName)),o("/Encoding /"+n.encoding),o("/DescendantFonts ["+p+" 0 R]"),o(">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,o=t.out,i=t.newObject,a=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",u=0;u<s.length;u++)l+=String.fromCharCode(s[u]);var c=i();a({data:l,addLength1:!0,objectId:c}),o("endobj");var f=i();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),o("endobj");var d=i();o("<<"),o("/Descent "+n.metadata.decender),o("/CapHeight "+n.metadata.capHeight),o("/StemV "+n.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+c+" 0 R"),o("/Flags 96"),o("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),o("/FontName /"+Se(n.fontName)),o("/ItalicAngle "+n.metadata.italicAngle),o("/Ascent "+n.metadata.ascender),o(">>"),o("endobj"),n.objectNumber=i();for(var h=0;h<n.metadata.hmtx.widths.length;h++)n.metadata.hmtx.widths[h]=parseInt(n.metadata.hmtx.widths[h]*(1e3/n.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+f+" 0 R/BaseFont/"+Se(n.fontName)+"/FontDescriptor "+d+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),o("endobj"),n.isAlreadyPutted=!0}}(t)}]);var o=function(e){var t,r=e.text||"",o=e.x,i=e.y,a=e.options||{},s=e.mutex||{},l=s.pdfEscape,u=s.activeFontKey,c=s.fonts,f=u,d="",h=0,p="",v=c[f].encoding;if("Identity-H"!==c[f].encoding)return{text:r,x:o,y:i,options:a,mutex:s};for(p=r,f=u,Array.isArray(r)&&(p=r[0]),h=0;h<p.length;h+=1)c[f].metadata.hasOwnProperty("cmap")&&(t=c[f].metadata.cmap.unicode.codeMap[p[h].charCodeAt(0)]),t||p[h].charCodeAt(0)<256&&c[f].metadata.hasOwnProperty("Unicode")?d+=p[h]:d+="";var g="";return parseInt(f.slice(1))<14||"WinAnsiEncoding"===v?g=l(d,f).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===v&&(g=n(d,c[f])),s.isHex=!0,{text:g,x:o,y:i,options:a,mutex:s}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],r={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var i=0;for(i=0;i<t.length;i+=1)Array.isArray(t[i])&&3===t[i].length?n.push([o(Object.assign({},r,{text:t[i][0]})).text,t[i][1],t[i][2]]):n.push(o(Object.assign({},r,{text:t[i]})).text);e.text=n}else e.text=o(Object.assign({},r,{text:t})).text}])}(Te),
/**
 * @license
 * jsPDF virtual FileSystem functionality
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(Te.API),
/**
 * @license
 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
 * MIT License
 */
function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,o,i,a,s,l,u=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},h={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,m=0;this.__bidiEngine__={};var y=function(e){var t=e.charCodeAt(),n=t>>8,r=h[n];return void 0!==r?u[256*r+(255&t)]:252===n||253===n?"AL":v.test(n)?"L":8===n?"R":"N"},b=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=y(e.charAt(n))))return!1;if("R"===t)return!0}return!1},w=function(e,t,a,s){var l,u,c,f,d=t[s];switch(d){case"L":case"R":g=!1;break;case"N":case"AN":break;case"EN":g&&(d="AN");break;case"AL":g=!0,d="R";break;case"WS":d="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(l=a[s-1])&&"AN"!==l||"EN"!==(u=t[s+1])&&"AN"!==u?d="N":g&&(u="AN"),d=u===l?u:"N";break;case"ES":d="EN"===(l=s>0?a[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){d="EN";break}if(g){d="N";break}for(c=s+1,f=t.length;c<f&&"ET"===t[c];)c++;d=c<f&&"EN"===t[c]?"EN":"N";break;case"NSM":if(o&&!i){for(f=t.length,c=s+1;c<f&&"NSM"===t[c];)c++;if(c<f){var h=e[s],p=h>=1425&&h<=2303||64286===h;if(l=t[c],p&&("R"===l||"AL"===l)){d="R";break}}}d=s<1||"B"===(l=t[s-1])?"N":a[s-1];break;case"B":g=!1,n=!0,d=m;break;case"S":r=!0,d="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"BN":d="N"}return d},A=function(e,t,n){var r=e.split("");return n&&x(r,n,{hiLevel:m}),r.reverse(),t&&t.reverse(),r.join("")},x=function(e,t,o){var i,a,s,l,u,h=-1,p=e.length,v=0,b=[],A=m?f:c,x=[];for(g=!1,n=!1,r=!1,a=0;a<p;a++)x[a]=y(e[a]);for(s=0;s<p;s++){if(u=v,b[s]=w(e,x,b,s),i=240&(v=A[u][d[b[s]]]),v&=15,t[s]=l=A[v][5],i>0)if(16===i){for(a=h;a<s;a++)t[a]=1;h=-1}else h=-1;if(A[v][6])-1===h&&(h=s);else if(h>-1){for(a=h;a<s;a++)t[a]=l;h=-1}"B"===x[s]&&(t[s]=0),o.hiLevel|=l}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=m;for(var o=r-1;o>=0&&"WS"===e[o];o--)t[o]=m}}(x,t,p)},C=function(e,t,r,o,i){if(!(i.hiLevel<e)){if(1===e&&1===m&&!n)return t.reverse(),void(r&&r.reverse());for(var a,s,l,u,c=t.length,f=0;f<c;){if(o[f]>=e){for(l=f+1;l<c&&o[l]>=e;)l++;for(u=f,s=l-1;u<s;u++,s--)a=t[u],t[u]=t[s],t[s]=a,r&&(a=r[u],r[u]=r[s],r[s]=a);f=l}f++}}},S=function(e,t,n){var r=e.split(""),o={hiLevel:m};return n||(n=[]),x(r,n,o),function(e,t,n){if(0!==n.hiLevel&&l)for(var r,o=0;o<e.length;o++)1===t[o]&&(r=p.indexOf(e[o]))>=0&&(e[o]=p[r+1])}(r,n,o),C(2,r,t,n,o),C(1,r,t,n,o),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===i&&(i=b(e)),void 0===s&&(s=b(e))}(e,t),o||!a||s)if(o&&a&&i^s)m=i?1:0,e=A(e,t,n);else if(!o&&a&&s)m=i?1:0,e=S(e,t,n),e=A(e,t);else if(!o||i||a||s){if(o&&!a&&i^s)e=A(e,t),i?(m=0,e=S(e,t,n)):(m=1,e=S(e,t,n),e=A(e,t));else if(o&&i&&!a&&s)m=1,e=S(e,t,n),e=A(e,t);else if(!o&&!a&&i^s){var r=l;i?(m=1,e=S(e,t,n),m=0,l=!1,e=S(e,t,n),l=r):(m=0,e=S(e,t,n),e=A(e,t),m=1,l=!1,e=S(e,t,n),l=r,e=A(e,t))}}else m=0,e=S(e,t,n);else m=i?1:0,e=S(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(o=e.isInputVisual,a=e.isOutputVisual,i=e.isInputRtl,s=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,r=(e.x,e.y,e.options||{}),o=(e.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(t)){var i=0;for(o=[],i=0;i<t.length;i+=1)"[object Array]"===Object.prototype.toString.call(t[i])?o.push([n.doBidiReorder(t[i][0]),t[i][1],t[i][2]]):o.push([n.doBidiReorder(t[i])]);e.text=o}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(Te),Te.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new Xt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new gn(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Jt(this.contents),this.head=new en(this),this.name=new ln(this),this.cmap=new nn(this),this.toUnicode={},this.hhea=new rn(this),this.maxp=new un(this),this.hmtx=new cn(this),this.post=new an(this),this.os2=new on(this),this.loca=new vn(this),this.glyf=new dn(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,r,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,o;for(o=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],o.push(Math.round(e*this.scaleFactor));return o}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(t=r>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(o=this.familyClass)||2===o||3===o||4===o||5===o||7===o,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,o,i,a;for(i=0,o=0,a=(e=""+e).length;0<=a?o<a:o>a;o=0<=a?++o:--o)r=e.charCodeAt(o),i+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return i*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var $t,Xt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r;for(r=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,o,i,a,s;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),o=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^o)+65536*(255^i)+256*(255^a)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*o+65536*i+256*a+s},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,o;for(o=[],n=0,r=e.length;n<r;n++)t=e[n],o.push(this.writeByte(t));return o},e}(),Jt=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,o,i,a,s,l,u,c,f,d,h,p;for(p in d=Object.keys(t).length,s=Math.log(2),c=16*Math.floor(Math.log(d)/s),i=Math.floor(c/s),u=16*d-c,(r=new Xt).writeInt(this.scalarType),r.writeShort(d),r.writeShort(c),r.writeShort(i),r.writeShort(u),o=16*d,l=r.pos+o,a=null,h=[],t)for(f=t[p],r.writeString(p),r.writeInt(e(f)),r.writeInt(l),r.writeInt(f.length),h=h.concat(f),"head"===p&&(a=l),l+=f.length;l%4;)h.push(0),l++;return r.write(h),n=2981146554-e(r.data),r.pos=a+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,o;for(e=fn.call(e);e.length%4;)e.push(0);for(r=new Xt(e),n=0,t=0,o=e.length;t<o;t=t+=4)n+=r.readUInt32();return 4294967295&n},t}(),Qt={}.hasOwnProperty,Zt=function(e,t){for(var n in t)Qt.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};$t=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var en=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new Xt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),tn=function(){function e(e,t){var n,r,o,i,a,s,l,u,c,f,d,h,p,v,g,m,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(d=e.readUInt16(),f=d/2,e.pos+=6,o=function(){var t,n;for(n=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,p=function(){var t,n;for(n=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)n.push(e.readUInt16());return n}(),u=function(){var t,n;for(n=[],s=t=0;0<=f?t<f:t>f;s=0<=f?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,a=function(){var t,n;for(n=[],s=t=0;0<=r?t<r:t>r;s=0<=r?++t:--t)n.push(e.readUInt16());return n}(),s=g=0,y=o.length;g<y;s=++g)for(v=o[s],n=m=h=p[s];h<=v?m<=v:m>=v;n=h<=v?++m:--m)0===u[s]?i=n+l[s]:0!==(i=a[u[s]/2+(n-h)-(f-s)]||0)&&(i+=l[s]),this.codeMap[n]=65535&i}e.pos=c}return e.encode=function(e,t){var n,r,o,i,a,s,l,u,c,f,d,h,p,v,g,m,y,b,w,A,x,C,S,_,k,E,O,F,T,P,N,M,L,I,R,j,D,B,W,z,U,K,V,H,q,G;switch(F=new Xt,i=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(p=0,v=function(){var e=[];for(h=0;h<256;++h)e.push(0);return e}(),m={0:0},o={},T=0,L=i.length;T<L;T++)null==m[V=e[r=i[T]]]&&(m[V]=++p),o[r]={old:e[r],new:m[e[r]]},v[r]=m[e[r]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(v),{charMap:o,subtable:F.data,maxGlyphID:p+1};case"unicode":for(E=[],c=[],y=0,m={},n={},g=l=null,P=0,I=i.length;P<I;P++)null==m[w=e[r=i[P]]]&&(m[w]=++y),n[r]={old:w,new:m[w]},a=m[w]-r,null!=g&&a===l||(g&&c.push(g),E.push(r),l=a),g=r;for(g&&c.push(g),c.push(65535),E.push(65535),_=2*(S=E.length),C=2*Math.pow(Math.log(S)/Math.LN2,2),f=Math.log(C/2)/Math.LN2,x=2*S-C,s=[],A=[],d=[],h=N=0,R=E.length;N<R;h=++N){if(k=E[h],u=c[h],65535===k){s.push(0),A.push(0);break}if(k-(O=n[k].new)>=32768)for(s.push(0),A.push(2*(d.length+S-h)),r=M=k;k<=u?M<=u:M>=u;r=k<=u?++M:--M)d.push(n[r].new);else s.push(O-k),A.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*S+2*d.length),F.writeUInt16(0),F.writeUInt16(_),F.writeUInt16(C),F.writeUInt16(f),F.writeUInt16(x),U=0,j=c.length;U<j;U++)r=c[U],F.writeUInt16(r);for(F.writeUInt16(0),K=0,D=E.length;K<D;K++)r=E[K],F.writeUInt16(r);for(H=0,B=s.length;H<B;H++)a=s[H],F.writeUInt16(a);for(q=0,W=A.length;q<W;q++)b=A[q],F.writeUInt16(b);for(G=0,z=d.length;G<z;G++)p=d[G],F.writeUInt16(p);return{charMap:n,subtable:F.data,maxGlyphID:y+1}}},e}(),nn=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),r=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)t=new tn(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=tn.encode(e,t),(r=new Xt).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),rn=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),on=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),an=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var o;for(n=e.readUInt16(),this.glyphNameIndex=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 196608:break;case 262144:return this.map=function(){var t,n,r;for(r=[],o=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;o=0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),sn=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},ln=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,r,o,i,a,s,l,u,c,f;for(e.pos=this.offset,e.readShort(),t=e.readShort(),a=e.readShort(),n=[],o=0;0<=t?o<t:o>t;o=0<=t?++o:--o)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(s={},o=u=0,c=n.length;u<c;o=++u)r=n[o],e.pos=r.offset,l=e.readString(r.length),i=new sn(l,r),null==s[f=r.nameID]&&(s[f]=[]),s[r.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),un=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),cn=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,r,o,i,a,s;for(e.pos=this.offset,this.metrics=[],t=0,a=this.file.hhea.numberOfMetrics;0<=a?t<a:t>a;t=0<=a?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,o;for(o=[],t=n=0;0<=r?n<r:n>r;t=0<=r?++n:--n)o.push(e.readInt16());return o}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)o=n[e],r.push(o.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),fn=[].slice,dn=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,o,i,a,s,l,u,c;return e in this.cache?this.cache[e]:(o=this.file.loca,t=this.file.contents,n=o.indexOf(e),0===(r=o.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,i=(a=new Xt(t.read(r))).readShort(),l=a.readShort(),c=a.readShort(),s=a.readShort(),u=a.readShort(),this.cache[e]=-1===i?new pn(a,l,c,s,u):new hn(a,i,l,c,s,u),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,o,i,a,s;for(i=[],o=[],a=0,s=t.length;a<s;a++)r=e[t[a]],o.push(i.length),r&&(i=i.concat(r.encode(n)));return o.push(i.length),{table:i,offsets:o}},e}(),hn=function(){function e(e,t,n,r,o,i){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=o,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),pn=function(){function e(e,t,n,r,o){var i,a;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;a=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&a;)i.pos+=1&a?4:2,128&a?i.pos+=8:64&a?i.pos+=4:8&a&&(i.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new Xt(fn.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),vn=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zt(e,$t),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,r;for(r=[],n=0,t=this.length;n<t;n+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,o=0,i=0;i<n.length;++i)if(n[i]=r,o<t.length&&t[o]==i){++o,n[i]=r;var a=this.offsets[i],s=this.offsets[i+1]-a;s>0&&(r+=s)}for(var l=new Array(4*n.length),u=0;u<n.length;++u)l[4*u+3]=255&n[u],l[4*u+2]=(65280&n[u])>>8,l[4*u+1]=(16711680&n[u])>>16,l[4*u]=(4278190080&n[u])>>24;return l},e}(),gn=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,o;for(t in r=this.font.cmap.tables[0].codeMap,e={},o=this.subset)n=o[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,o,i,a,s;for(r={},i=0,a=e.length;i<a;i++)r[o=e[i]]=this.font.glyf.glyphFor(o);for(o in t=[],r)(null!=(n=r[o])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(o in s=this.glyphsFor(t))n=s[o],r[o]=n;return r},e.prototype.encode=function(e,t){var n,r,o,i,a,s,l,u,c,f,d,h,p,v,g;for(r in n=nn.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(e),d={0:0},g=n.charMap)d[(s=g[r]).old]=s.new;for(h in f=n.maxGlyphID,i)h in d||(d[h]=f++);return u=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(d),c=Object.keys(u).sort((function(e,t){return e-t})),p=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)a=c[e],n.push(u[a]);return n}(),o=this.font.glyf.encode(i,p,d),l=this.font.loca.encode(o.offsets,p),v={cmap:this.font.cmap.raw(),glyf:o.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(v["OS/2"]=this.font.os2.raw()),this.font.directory.encode(v)},e}();Te.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,o,i,a;if(Array.isArray(n))return"["+function(){var e,o,i;for(i=[],e=0,o=n.length;e<o;e++)r=n[e],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(o in i=["<<"],n)a=n[o],i.push("/"+o+" "+t.convert(a));return i.push(">>"),i.join("\n")}return""+n},t}()},71710:function(e,t,n){
/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/
!function(t){e.exports=t()}((function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var l=void 0;if(!s&&l)return require(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){var n=t[a][1][e];return o(n||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,o,a,s,l,u,c=[],f=0,d=e.length,h=d,p="string"!==r.getTypeOf(e);f<e.length;)h=d-f,o=p?(t=e[f++],n=f<d?e[f++]:0,f<d?e[f++]:0):(t=e.charCodeAt(f++),n=f<d?e.charCodeAt(f++):0,f<d?e.charCodeAt(f++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<h?(15&n)<<2|o>>6:64,u=2<h?63&o:64,c.push(i.charAt(a)+i.charAt(s)+i.charAt(l)+i.charAt(u));return c.join("")},n.decode=function(e){var t,n,r,a,s,l,u=0,c=0,f="data:";if(e.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var d,h=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&h--,e.charAt(e.length-2)===i.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=o.uint8array?new Uint8Array(0|h):new Array(0|h);u<e.length;)t=i.indexOf(e.charAt(u++))<<2|(a=i.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(s=i.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=i.indexOf(e.charAt(u++))),d[c++]=t,64!==s&&(d[c++]=n),64!==l&&(d[c++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),o=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function s(e,t,n,r,o){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=o}s.prototype={getContentWorker:function(){var e=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new i).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){"use strict";var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";var r=e("./utils"),o=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t[s])];return~e}(0|t,e,e.length,0):function(e,t,n,r){var i=o,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako"),i=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",i.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function o(e,t,n,o,a,c){var f,d,h=e.file,p=e.compression,v=c!==s.utf8encode,g=i.transformTo("string",c(h.name)),m=i.transformTo("string",s.utf8encode(h.name)),y=h.comment,b=i.transformTo("string",c(y)),w=i.transformTo("string",s.utf8encode(y)),A=m.length!==h.name.length,x=w.length!==y.length,C="",S="",_="",k=h.dir,E=h.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var F=0;t&&(F|=8),v||!A&&!x||(F|=2048);var T=0,P=0;k&&(T|=16),"UNIX"===a?(P=798,T|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(h.unixPermissions,k)):(P=20,T|=function(e){return 63&(e||0)}(h.dosPermissions)),f=E.getUTCHours(),f<<=6,f|=E.getUTCMinutes(),f<<=5,f|=E.getUTCSeconds()/2,d=E.getUTCFullYear()-1980,d<<=4,d|=E.getUTCMonth()+1,d<<=5,d|=E.getUTCDate(),A&&(S=r(1,1)+r(l(g),4)+m,C+="up"+r(S.length,2)+S),x&&(_=r(1,1)+r(l(b),4)+w,C+="uc"+r(_.length,2)+_);var N="";return N+="\n\0",N+=r(F,2),N+=p.magic,N+=r(f,2),N+=r(d,2),N+=r(O.crc32,4),N+=r(O.compressedSize,4),N+=r(O.uncompressedSize,4),N+=r(g.length,2),N+=r(C.length,2),{fileRecord:u.LOCAL_FILE_HEADER+N+g+C,dirRecord:u.CENTRAL_FILE_HEADER+r(P,2)+N+r(b.length,2)+"\0\0\0\0"+r(T,4)+r(o,4)+g+C+b}}var i=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(c,a),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=o(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=o(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,o=function(e,t,n,o,a){var s=i.transformTo("string",a(o));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){"use strict";var r=e("../compressions"),o=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var i=new o(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var o=function(e,t){var n=e||t,o=r[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(o,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(i)})),i.entriesCount=a}catch(e){i.error(e)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){"use strict";var r=e("./utils"),o=e("./external"),i=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new o.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[o.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var i=0;i<r.length;i++)n.push(u(r[i]));return o.Promise.all(n)})).then((function(e){for(var o=e.shift(),i=o.files,a=0;a<i.length;a++){var s=i[a],l=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=l)}return o.zipComment.length&&(n.comment=o.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../stream/GenericWorker");function i(e,t){o.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(i,o),i.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},i.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";var r=e("readable-stream").Readable;function o(e,t,n){r.call(this,t),this._helper=e;var o=this;e.on("data",(function(e,t){o.push(e)||o._helper.pause(),n&&n(t)})).on("error",(function(e){o.emit("error",e)})).on("end",(function(){o.push(null)}))}e("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},t.exports=o},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,o=i.getTypeOf(t),s=i.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=v(e)),s.createFolders&&(r=p(e))&&g.call(this,r,!0);var f="string"===o&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!f),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",o="string");var m=null;m=t instanceof u||t instanceof a?t:d.isNode&&d.isStream(t)?new h(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new c(e,m,s);this.files[e]=y}var o=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),f=e("./generate"),d=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},v=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=v(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function m(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(m(e)){var o=e;return this.filter((function(e,t){return!t.dir&&o.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(m(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");i.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=f.generateWorker(this,n,r)}catch(e){(t=new a("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){"use strict";var r=e("./DataReader");function o(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data[this.zero+e]},o.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===n&&this.data[i+2]===r&&this.data[i+3]===o)return i-this.zero;return-1},o.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),o=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&n===i[1]&&r===i[2]&&o===i[3]},o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){"use strict";var r=e("../utils");function o(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=o},{"../utils":32}],19:[function(e,t,n){"use strict";var r=e("./Uint8ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){"use strict";var r=e("./DataReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},o.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},o.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},o.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){"use strict";var r=e("./ArrayReader");function o(e){r.call(this,e)}e("../utils").inherits(o,r),o.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){"use strict";var r=e("../utils"),o=e("../support"),i=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||o.uint8array?"nodebuffer"===t?new s(e):o.uint8array?new l(r.transformTo("uint8array",e)):new i(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),o=e("../utils");function i(e){r.call(this,"ConvertWorker to "+e),this.destType=e}o.inherits(i,r),i.prototype.processChunk=function(e){this.push({data:o.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),o=e("../crc32");function i(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,r),i.prototype.processChunk=function(e){this.streamInfo.crc32=o(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(i,o),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}o.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./GenericWorker");function i(e){o.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(i,o),i.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){"use strict";var r=e("../utils"),o=e("./ConvertWorker"),i=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t){return new l.Promise((function(n,o){var i=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,n){i.push(e),t&&t(n)})).on("error",(function(e){i=[],o(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,o=null,i=0;for(n=0;n<t.length;n++)i+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(o=new Uint8Array(i),n=0;n<t.length;n++)o.set(t[n],r),r+=t[n].length;return o;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,i),u);n(e)}catch(e){o(e)}i=[]})).resume()}))}function f(e,t,n){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=n,r.checkSupport(a),this._worker=e.pipe(new o(a)),e.lock()}catch(e){this._worker=new i("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return c(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),n.blob=0===o.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){"use strict";for(var r=e("./utils"),o=e("./support"),i=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return o.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,n,r,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=o.uint8array?new Uint8Array(l):new Array(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t}(e)},n.utf8decode=function(e){return o.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,o,i,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((o=e[t++])<128)l[n++]=o;else if(4<(i=s[o]))l[n++]=65533,t+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&t<a;)o=o<<6|63&e[t++],i--;1<i?l[n++]=65533:o<65536?l[n++]=o:(o-=65536,l[n++]=55296|o>>10&1023,l[n++]=56320|1023&o)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(o.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var t=r.transformTo(o.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;a!==t.length&&(o.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,a),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){"use strict";var r=e("./support"),o=e("./base64"),i=e("./nodejsUtils"),a=e("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(t),o.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,n){var r=[],o=0,i=e.length;if(i<=n)return String.fromCharCode.apply(null,e);for(;o<i;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(o,Math.min(o+n,i)))):r.push(String.fromCharCode.apply(null,e.subarray(o,Math.min(o+n,i)))),o+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,r=n.getTypeOf(e),o=!0;if("uint8array"===r?o=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(o=u.applyCanBeUsed.nodebuffer),o)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=c;var d={};d.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,i.allocBuffer(e.length))}},d.array={string:c,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},d.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:c,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return i.newBufferFrom(e)}},d.nodebuffer={string:c,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return d[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var o=t[r];"."===o||""===o&&0!==r&&r!==t.length-1||(".."===o?n.pop():n.push(o))}return n.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&i.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,i,s,u){return a.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var c=n.getTypeOf(t);return c?("arraybuffer"===c?t=n.transformTo("uint8array",t):"string"===c&&(u?t=o.decode(t):i&&!0!==s&&(t=function(e){return l(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),o=e("./utils"),i=e("./signature"),a=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(t)+", expected "+o.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=o.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),o=e("./utils"),i=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,o=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<o;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(o)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=o.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var i=o.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){"use strict";function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var o=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!i&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new o(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<u.length;f++)r.prototype[u[f]]=c;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(c),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==o&&h(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return i.reject(e,r)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}var a=p((function(){t(o,r)}));"error"===a.status&&r(a.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(o);return this.state!==l?f(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){i.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)h(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:i.resolve(new this(o),e)},u.reject=function(e){var t=new this(o);return i.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(o);++l<n;)c(e[l],l);return u;function c(e,o){t.resolve(e).then((function(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(u,a))}),(function(e){r||(r=!0,i.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,l=new this(o);++s<n;)a=e[s],t.resolve(a).then((function(e){r||(r=!0,i.resolve(l,e))}),(function(e){r||(r=!0,i.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,n){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,u=0,c=-1,f=0,d=8;function h(e){if(!(this instanceof h))return new h(e);this.options=o.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==a||(this.onEnd(u),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){"use strict";var r=e("./zlib/inflate"),o=e("./utils/common"),i=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(e,t){var n,s,l,u,f,d,h=this.strm,p=this.options.chunkSize,v=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?h.input=i.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new o.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&v&&(d="string"==typeof v?i.string2buf(v):"[object ArrayBuffer]"===c.call(v)?new Uint8Array(v):v,n=r.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(h.output,h.next_out),u=h.next_out-l,f=i.buf2string(h.output,l),h.next_out=u,h.avail_out=p-u,u&&o.arraySet(h.output,h.output,l,u,0),this.onData(f)):this.onData(o.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=f,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=o=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},i={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,i))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),o=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,o,i,a,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),i=a=0;a<l;i++)55296==(64512&(n=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(o=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(o-56320),i++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,o=t.length;n<o;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,o,i,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((o=e[n++])<128)u[r++]=o;else if(4<(i=a[o]))u[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;1<i&&n<s;)o=o<<6|63&e[n++],i--;1<i?u[r++]=65533:o<65536?u[r++]=o:(o-=65536,u[r++]=55296|o>>10&1023,u[r++]=56320|1023&o)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var o=65535&e,i=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;i=i+(o=o+t[r++]|0)|0,--a;);o%=65521,i%=65521}return o|i<<16}},{}],44:[function(e,t,n){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,o){var i=r,a=o+n;e^=-1;for(var s=o;s<a;s++)e=e>>>8^i[255&(e^t[s])];return~e}},{}],46:[function(e,t,n){"use strict";var r,o=e("../utils/common"),i=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,c=4,f=0,d=-2,h=-1,p=4,v=2,g=8,m=9,y=286,b=30,w=19,A=2*y+1,x=15,C=3,S=258,_=S+C+1,k=42,E=113,O=1,F=2,T=3,P=4;function N(e,t){return e.msg=l[t],t}function M(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function I(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(o.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function R(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,I(e.strm)}function j(e,t){e.pending_buf[e.pending++]=t}function D(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,u=e.window,c=e.w_mask,f=e.prev,d=e.strstart+S,h=u[i+a-1],p=u[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===p&&u[n+a-1]===h&&u[n]===u[i]&&u[++n]===u[i+1]){i+=2,n++;do{}while(u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&i<d);if(r=S-(d-i),i=d-S,a<r){if(e.match_start=t,s<=(a=r))break;h=u[i+a-1],p=u[i+a]}}}while((t=f[t&c])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function W(e){var t,n,r,i,l,u,c,f,d,h,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-_)){for(o.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);i+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,f=e.strstart+e.lookahead,d=i,h=void 0,h=u.avail_in,d<h&&(h=d),n=0===h?0:(u.avail_in-=h,o.arraySet(c,u.input,u.next_in,h,f),1===u.state.wrap?u.adler=a(u.adler,c,h,f):2===u.state.wrap&&(u.adler=s(u.adler,c,h,f)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=C)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+C-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<C)););}while(e.lookahead<_&&0!==e.strm.avail_in)}function z(e,t){for(var n,r;;){if(e.lookahead<_){if(W(e),e.lookahead<_&&t===u)return O;if(0===e.lookahead)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-_&&(e.match_length=B(e,n)),e.match_length>=C)if(r=i._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(R(e,!1),0===e.strm.avail_out))return O}return e.insert=e.strstart<C-1?e.strstart:C-1,t===c?(R(e,!0),0===e.strm.avail_out?T:P):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?O:F}function U(e,t){for(var n,r,o;;){if(e.lookahead<_){if(W(e),e.lookahead<_&&t===u)return O;if(0===e.lookahead)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=C-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-_&&(e.match_length=B(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===C&&4096<e.strstart-e.match_start)&&(e.match_length=C-1)),e.prev_length>=C&&e.match_length<=e.prev_length){for(o=e.strstart+e.lookahead-C,r=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=C-1,e.strstart++,r&&(R(e,!1),0===e.strm.avail_out))return O}else if(e.match_available){if((r=i._tr_tally(e,0,e.window[e.strstart-1]))&&R(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<C-1?e.strstart:C-1,t===c?(R(e,!0),0===e.strm.avail_out?T:P):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?O:F}function K(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function V(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*A),this.dyn_dtree=new o.Buf16(2*(2*b+1)),this.bl_tree=new o.Buf16(2*(2*w+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(x+1),this.heap=new o.Buf16(2*y+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*y+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function H(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=v,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?k:E,e.adler=2===t.wrap?0:1,t.last_flush=u,i._tr_init(t),f):N(e,d)}function q(e){var t=H(e);return t===f&&function(e){e.window_size=2*e.w_size,L(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=C-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,n,r,i,a){if(!e)return d;var s=1;if(t===h&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),i<1||m<i||n!==g||r<8||15<r||t<0||9<t||a<0||p<a)return N(e,d);8===r&&(r=9);var l=new V;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+C-1)/C),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,q(e)}r=[new K(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(W(e),0===e.lookahead&&t===u)return O;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,R(e,!1),0===e.strm.avail_out))return O;if(e.strstart-e.block_start>=e.w_size-_&&(R(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?T:P):(e.strstart>e.block_start&&(R(e,!1),e.strm.avail_out),O)})),new K(4,4,8,4,z),new K(4,5,16,8,z),new K(4,6,32,32,z),new K(4,4,16,16,U),new K(8,16,32,32,U),new K(8,16,128,128,U),new K(8,32,128,256,U),new K(32,128,258,1024,U),new K(32,258,258,4096,U)],n.deflateInit=function(e,t){return G(e,t,g,15,8,0)},n.deflateInit2=G,n.deflateReset=q,n.deflateResetKeep=H,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,f):d},n.deflate=function(e,t){var n,o,a,l;if(!e||!e.state||5<t||t<0)return e?N(e,d):d;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||666===o.status&&t!==c)return N(e,0===e.avail_out?-5:d);if(o.strm=e,n=o.last_flush,o.last_flush=t,o.status===k)if(2===o.wrap)e.adler=0,j(o,31),j(o,139),j(o,8),o.gzhead?(j(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),j(o,255&o.gzhead.time),j(o,o.gzhead.time>>8&255),j(o,o.gzhead.time>>16&255),j(o,o.gzhead.time>>24&255),j(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),j(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(j(o,255&o.gzhead.extra.length),j(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=s(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(j(o,0),j(o,0),j(o,0),j(o,0),j(o,0),j(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),j(o,3),o.status=E);else{var h=g+(o.w_bits-8<<4)<<8;h|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(h|=32),h+=31-h%31,o.status=E,D(o,h),0!==o.strstart&&(D(o,e.adler>>>16),D(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),I(e),a=o.pending,o.pending!==o.pending_buf_size));)j(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),I(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,j(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),I(e),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,j(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(e.adler=s(e.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&I(e),o.pending+2<=o.pending_buf_size&&(j(o,255&e.adler),j(o,e.adler>>8&255),e.adler=0,o.status=E)):o.status=E),0!==o.pending){if(I(e),0===e.avail_out)return o.last_flush=-1,f}else if(0===e.avail_in&&M(t)<=M(n)&&t!==c)return N(e,-5);if(666===o.status&&0!==e.avail_in)return N(e,-5);if(0!==e.avail_in||0!==o.lookahead||t!==u&&666!==o.status){var p=2===o.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(W(e),0===e.lookahead)){if(t===u)return O;break}if(e.match_length=0,n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(R(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?T:P):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?O:F}(o,t):3===o.strategy?function(e,t){for(var n,r,o,a,s=e.window;;){if(e.lookahead<=S){if(W(e),e.lookahead<=S&&t===u)return O;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=C&&0<e.strstart&&(r=s[o=e.strstart-1])===s[++o]&&r===s[++o]&&r===s[++o]){a=e.strstart+S;do{}while(r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&r===s[++o]&&o<a);e.match_length=S-(a-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=i._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(R(e,!1),0===e.strm.avail_out))return O}return e.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?T:P):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?O:F}(o,t):r[o.level].func(o,t);if(p!==T&&p!==P||(o.status=666),p===O||p===T)return 0===e.avail_out&&(o.last_flush=-1),f;if(p===F&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(L(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),I(e),0===e.avail_out))return o.last_flush=-1,f}return t!==c?f:o.wrap<=0?1:(2===o.wrap?(j(o,255&e.adler),j(o,e.adler>>8&255),j(o,e.adler>>16&255),j(o,e.adler>>24&255),j(o,255&e.total_in),j(o,e.total_in>>8&255),j(o,e.total_in>>16&255),j(o,e.total_in>>24&255)):(D(o,e.adler>>>16),D(o,65535&e.adler)),I(e),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?f:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==k&&69!==t&&73!==t&&91!==t&&103!==t&&t!==E&&666!==t?N(e,d):(e.state=null,t===E?N(e,-3):f):d},n.deflateSetDictionary=function(e,t){var n,r,i,s,l,u,c,h,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==k||n.lookahead)return d;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new o.Buf8(n.w_size),o.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,W(n);n.lookahead>=C;){for(r=n.strstart,i=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--i;);n.strstart=r,n.lookahead=C-1,W(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,n.wrap=s,f},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,o,i,a,s,l,u,c,f,d,h,p,v,g,m,y,b,w,A,x,C,S,_,k;n=e.state,r=e.next_in,_=e.input,o=r+(e.avail_in-5),i=e.next_out,k=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,f=n.wnext,d=n.window,h=n.hold,p=n.bits,v=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),b=v[h&m];t:for(;;){if(h>>>=w=b>>>24,p-=w,0===(w=b>>>16&255))k[i++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=v[(65535&b)+(h&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}A=65535&b,(w&=15)&&(p<w&&(h+=_[r++]<<p,p+=8),A+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),b=g[h&y];n:for(;;){if(h>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=g[(65535&b)+(h&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&b,p<(w&=15)&&(h+=_[r++]<<p,(p+=8)<w&&(h+=_[r++]<<p,p+=8)),l<(x+=h&(1<<w)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(h>>>=w,p-=w,(w=i-a)<x){if(c<(w=x-w)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=d,(C=0)===f){if(C+=u-w,w<A){for(A-=w;k[i++]=d[C++],--w;);C=i-x,S=k}}else if(f<w){if(C+=u+f-w,(w-=f)<A){for(A-=w;k[i++]=d[C++],--w;);if(C=0,f<A){for(A-=w=f;k[i++]=d[C++],--w;);C=i-x,S=k}}}else if(C+=f-w,w<A){for(A-=w;k[i++]=d[C++],--w;);C=i-x,S=k}for(;2<A;)k[i++]=S[C++],k[i++]=S[C++],k[i++]=S[C++],A-=3;A&&(k[i++]=S[C++],1<A&&(k[i++]=S[C++]))}else{for(C=i-x;k[i++]=k[C++],k[i++]=k[C++],k[i++]=k[C++],2<(A-=3););A&&(k[i++]=k[C++],1<A&&(k[i++]=k[C++]))}break}}break}}while(r<o&&i<s);r-=A=p>>3,h&=(1<<(p-=A<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=h,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),o=e("./adler32"),i=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=1,u=2,c=0,f=-2,d=1,h=852,p=592;function v(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(h),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,c):f}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,m(e)):f}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?f:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):f}function w(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=b(e,t))!==c&&(e.state=null),n):f}var A,x,C=!0;function S(e){if(C){var t;for(A=new r.Buf32(512),x=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,A,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,x,0,e.work,{bits:5}),C=!1}e.lencode=A,e.lenbits=9,e.distcode=x,e.distbits=5}function _(e,t,n,o){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),o>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(i=a.wsize-a.wnext)&&(i=o),r.arraySet(a.window,t,n-o,i,a.wnext),(o-=i)?(r.arraySet(a.window,t,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=m,n.inflateInit=function(e){return w(e,15)},n.inflateInit2=w,n.inflate=function(e,t){var n,h,p,g,m,y,b,w,A,x,C,k,E,O,F,T,P,N,M,L,I,R,j,D,B=0,W=new r.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return f;12===(n=e.state).mode&&(n.mode=13),m=e.next_out,p=e.output,b=e.avail_out,g=e.next_in,h=e.input,y=e.avail_in,w=n.hold,A=n.bits,x=y,C=b,R=c;e:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;A<16;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(2&n.wrap&&35615===w){W[n.check=0]=255&w,W[1]=w>>>8&255,n.check=i(n.check,W,2,0),A=w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",n.mode=30;break}if(A-=4,I=8+(15&(w>>>=4)),0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<I,e.adler=n.check=1,n.mode=512&w?10:12,A=w=0;break;case 2:for(;A<16;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(n.flags=w,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=w>>8&1),512&n.flags&&(W[0]=255&w,W[1]=w>>>8&255,n.check=i(n.check,W,2,0)),A=w=0,n.mode=3;case 3:for(;A<32;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}n.head&&(n.head.time=w),512&n.flags&&(W[0]=255&w,W[1]=w>>>8&255,W[2]=w>>>16&255,W[3]=w>>>24&255,n.check=i(n.check,W,4,0)),A=w=0,n.mode=4;case 4:for(;A<16;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}n.head&&(n.head.xflags=255&w,n.head.os=w>>8),512&n.flags&&(W[0]=255&w,W[1]=w>>>8&255,n.check=i(n.check,W,2,0)),A=w=0,n.mode=5;case 5:if(1024&n.flags){for(;A<16;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}n.length=w,n.head&&(n.head.extra_len=w),512&n.flags&&(W[0]=255&w,W[1]=w>>>8&255,n.check=i(n.check,W,2,0)),A=w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(k=n.length)&&(k=y),k&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,g,k,I)),512&n.flags&&(n.check=i(n.check,h,k,g)),y-=k,g+=k,n.length-=k),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(k=0;I=h[g+k++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I)),I&&k<y;);if(512&n.flags&&(n.check=i(n.check,h,k,g)),y-=k,g+=k,I)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break e;for(k=0;I=h[g+k++],n.head&&I&&n.length<65536&&(n.head.comment+=String.fromCharCode(I)),I&&k<y;);if(512&n.flags&&(n.check=i(n.check,h,k,g)),y-=k,g+=k,I)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;A<16;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(w!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}A=w=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;A<32;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}e.adler=n.check=v(w),A=w=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=m,e.avail_out=b,e.next_in=g,e.avail_in=y,n.hold=w,n.bits=A,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){w>>>=7&A,A-=7&A,n.mode=27;break}for(;A<3;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}switch(n.last=1&w,A-=1,3&(w>>>=1)){case 0:n.mode=14;break;case 1:if(S(n),n.mode=20,6!==t)break;w>>>=2,A-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}w>>>=2,A-=2;break;case 14:for(w>>>=7&A,A-=7&A;A<32;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&w,A=w=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(k=n.length){if(y<k&&(k=y),b<k&&(k=b),0===k)break e;r.arraySet(p,h,g,k,m),y-=k,g+=k,b-=k,m+=k,n.length-=k;break}n.mode=12;break;case 17:for(;A<14;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(n.nlen=257+(31&w),w>>>=5,A-=5,n.ndist=1+(31&w),w>>>=5,A-=5,n.ncode=4+(15&w),w>>>=4,A-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;A<3;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}n.lens[z[n.have++]]=7&w,w>>>=3,A-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,j={bits:n.lenbits},R=s(0,n.lens,0,19,n.lencode,0,n.work,j),n.lenbits=j.bits,R){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(B=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,P=65535&B,!((F=B>>>24)<=A);){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(P<16)w>>>=F,A-=F,n.lens[n.have++]=P;else{if(16===P){for(D=F+2;A<D;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(w>>>=F,A-=F,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}I=n.lens[n.have-1],k=3+(3&w),w>>>=2,A-=2}else if(17===P){for(D=F+3;A<D;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}A-=F,I=0,k=3+(7&(w>>>=F)),w>>>=3,A-=3}else{for(D=F+7;A<D;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}A-=F,I=0,k=11+(127&(w>>>=F)),w>>>=7,A-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=I}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,j={bits:n.lenbits},R=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,j),n.lenbits=j.bits,R){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,j={bits:n.distbits},R=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,j),n.distbits=j.bits,R){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=b){e.next_out=m,e.avail_out=b,e.next_in=g,e.avail_in=y,n.hold=w,n.bits=A,a(e,C),m=e.next_out,p=e.output,b=e.avail_out,g=e.next_in,h=e.input,y=e.avail_in,w=n.hold,A=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(B=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,P=65535&B,!((F=B>>>24)<=A);){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(T&&0==(240&T)){for(N=F,M=T,L=P;T=(B=n.lencode[L+((w&(1<<N+M)-1)>>N)])>>>16&255,P=65535&B,!(N+(F=B>>>24)<=A);){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}w>>>=N,A-=N,n.back+=N}if(w>>>=F,A-=F,n.back+=F,n.length=P,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(D=n.extra;A<D;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}n.length+=w&(1<<n.extra)-1,w>>>=n.extra,A-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(B=n.distcode[w&(1<<n.distbits)-1])>>>16&255,P=65535&B,!((F=B>>>24)<=A);){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(0==(240&T)){for(N=F,M=T,L=P;T=(B=n.distcode[L+((w&(1<<N+M)-1)>>N)])>>>16&255,P=65535&B,!(N+(F=B>>>24)<=A);){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}w>>>=N,A-=N,n.back+=N}if(w>>>=F,A-=F,n.back+=F,64&T){e.msg="invalid distance code",n.mode=30;break}n.offset=P,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(D=n.extra;A<D;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}n.offset+=w&(1<<n.extra)-1,w>>>=n.extra,A-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(k=C-b,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}E=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),O=n.window}else O=p,E=m-n.offset,k=n.length;for(b<k&&(k=b),b-=k,n.length-=k;p[m++]=O[E++],--k;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;p[m++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;A<32;){if(0===y)break e;y--,w|=h[g++]<<A,A+=8}if(C-=b,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?i(n.check,p,C,m-C):o(n.check,p,C,m-C)),C=b,(n.flags?w:v(w))!==n.check){e.msg="incorrect data check",n.mode=30;break}A=w=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;A<32;){if(0===y)break e;y--,w+=h[g++]<<A,A+=8}if(w!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}A=w=0}n.mode=29;case 29:R=1;break e;case 30:R=-3;break e;case 31:return-4;case 32:default:return f}return e.next_out=m,e.avail_out=b,e.next_in=g,e.avail_in=y,n.hold=w,n.bits=A,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&_(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,C-=e.avail_out,e.total_in+=x,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?i(n.check,p,C,e.next_out-C):o(n.check,p,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===C||4===t)&&R===c&&(R=-5),R)},n.inflateEnd=function(e){if(!e||!e.state)return f;var t=e.state;return t.window&&(t.window=null),e.state=null,c},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?f:((n.head=t).done=!1,c):f},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?f:11===n.mode&&o(1,t,r,0)!==n.check?-3:_(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,c):f},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";var r=e("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,u,c,f,d){var h,p,v,g,m,y,b,w,A,x=d.bits,C=0,S=0,_=0,k=0,E=0,O=0,F=0,T=0,P=0,N=0,M=null,L=0,I=new r.Buf16(16),R=new r.Buf16(16),j=null,D=0;for(C=0;C<=15;C++)I[C]=0;for(S=0;S<l;S++)I[t[n+S]]++;for(E=x,k=15;1<=k&&0===I[k];k--);if(k<E&&(E=k),0===k)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(_=1;_<k&&0===I[_];_++);for(E<_&&(E=_),C=T=1;C<=15;C++)if(T<<=1,(T-=I[C])<0)return-1;if(0<T&&(0===e||1!==k))return-1;for(R[1]=0,C=1;C<15;C++)R[C+1]=R[C]+I[C];for(S=0;S<l;S++)0!==t[n+S]&&(f[R[t[n+S]]++]=S);if(y=0===e?(M=j=f,19):1===e?(M=o,L-=257,j=i,D-=257,256):(M=a,j=s,-1),C=_,m=c,F=S=N=0,v=-1,g=(P=1<<(O=E))-1,1===e&&852<P||2===e&&592<P)return 1;for(;;){for(b=C-F,A=f[S]<y?(w=0,f[S]):f[S]>y?(w=j[D+f[S]],M[L+f[S]]):(w=96,0),h=1<<C-F,_=p=1<<O;u[m+(N>>F)+(p-=h)]=b<<24|w<<16|A,0!==p;);for(h=1<<C-1;N&h;)h>>=1;if(0!==h?(N&=h-1,N+=h):N=0,S++,0==--I[C]){if(C===k)break;C=t[n+f[S]]}if(E<C&&(N&g)!==v){for(0===F&&(F=E),m+=_,T=1<<(O=C-F);O+F<k&&!((T-=I[O+F])<=0);)O++,T<<=1;if(P+=1<<O,1===e&&852<P||2===e&&592<P)return 1;u[v=N&g]=E<<24|O<<16|m-c}}return 0!==N&&(u[m+N]=C-F<<24|64<<16),d.bits=E,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){"use strict";var r=e("../utils/common"),o=0,i=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,u=256,c=u+1+l,f=30,d=19,h=2*c+1,p=15,v=16,g=7,m=256,y=16,b=17,w=18,A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(c+2));a(_);var k=new Array(2*f);a(k);var E=new Array(512);a(E);var O=new Array(256);a(O);var F=new Array(l);a(F);var T,P,N,M=new Array(f);function L(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function I(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function R(e){return e<256?E[e]:E[256+(e>>>7)]}function j(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function D(e,t,n){e.bi_valid>v-n?(e.bi_buf|=t<<e.bi_valid&65535,j(e,e.bi_buf),e.bi_buf=t>>v-e.bi_valid,e.bi_valid+=n-v):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function B(e,t,n){D(e,n[2*t],n[2*t+1])}function W(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function z(e,t,n){var r,o,i=new Array(p+1),a=0;for(r=1;r<=p;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=W(i[s]++,s))}}function U(e){var t;for(t=0;t<c;t++)e.dyn_ltree[2*t]=0;for(t=0;t<f;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*m]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function K(e){8<e.bi_valid?j(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function V(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function H(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&V(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!V(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function q(e,t,n){var r,o,i,a,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?B(e,o,t):(B(e,(i=O[o])+u+1,t),0!==(a=A[i])&&D(e,o-=F[i],a),B(e,i=R(--r),n),0!==(a=x[i])&&D(e,r-=M[i],a)),s<e.last_lit;);B(e,m,t)}function G(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=h,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)H(e,i,n);for(o=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],H(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,H(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,v=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(i=0;i<=p;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<h;n++)g<(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(i=g,m++),l[2*r+1]=i,u<r||(e.bl_count[i]++,a=0,v<=r&&(a=d[r-v]),s=l[2*r],e.opt_len+=s*(i+a),f&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==m){do{for(i=g-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(i=g;0!==i;i--)for(r=e.bl_count[i];0!==r;)u<(o=e.heap[--n])||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),z(i,u,e.bl_count)}function Y(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<l&&o===a||(s<u?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*w]++,i=o,u=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function $(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<l&&o===a)){if(s<u)for(;B(e,o,e.bl_tree),0!=--s;);else 0!==o?(o!==i&&(B(e,o,e.bl_tree),s--),B(e,y,e.bl_tree),D(e,s-3,2)):s<=10?(B(e,b,e.bl_tree),D(e,s-3,3)):(B(e,w,e.bl_tree),D(e,s-11,7));i=o,u=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4)}}a(M);var X=!1;function J(e,t,n,o){D(e,(s<<1)+(o?1:0),3),function(e,t,n,o){K(e),o&&(j(e,n),j(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){X||(function(){var e,t,n,r,o,i=new Array(p+1);for(r=n=0;r<l-1;r++)for(F[r]=n,e=0;e<1<<A[r];e++)O[n++]=r;for(O[n-1]=r,r=o=0;r<16;r++)for(M[r]=o,e=0;e<1<<x[r];e++)E[o++]=r;for(o>>=7;r<f;r++)for(M[r]=o<<7,e=0;e<1<<x[r]-7;e++)E[256+o++]=r;for(t=0;t<=p;t++)i[t]=0;for(e=0;e<=143;)_[2*e+1]=8,e++,i[8]++;for(;e<=255;)_[2*e+1]=9,e++,i[9]++;for(;e<=279;)_[2*e+1]=7,e++,i[7]++;for(;e<=287;)_[2*e+1]=8,e++,i[8]++;for(z(_,c+1,i),e=0;e<f;e++)k[2*e+1]=5,k[2*e]=W(e,5);T=new L(_,A,u+1,c,p),P=new L(k,x,0,f,p),N=new L(new Array(0),C,0,d,g)}(),X=!0),e.l_desc=new I(e.dyn_ltree,T),e.d_desc=new I(e.dyn_dtree,P),e.bl_desc=new I(e.bl_tree,N),e.bi_buf=0,e.bi_valid=0,U(e)},n._tr_stored_block=J,n._tr_flush_block=function(e,t,n,r){var a,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return i;return o}(e)),G(e,e.l_desc),G(e,e.d_desc),l=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=d-1;3<=t&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?J(e,t,n,r):4===e.strategy||s===a?(D(e,2+(r?1:0),3),q(e,_,k)):(D(e,4+(r?1:0),3),function(e,t,n,r){var o;for(D(e,t-257,5),D(e,n-1,5),D(e,r-4,4),o=0;o<r;o++)D(e,e.bl_tree[2*S[o]+1],3);$(e,e.dyn_ltree,t-1),$(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),q(e,e.dyn_ltree,e.dyn_dtree)),U(e),r&&K(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+u+1)]++,e.dyn_dtree[2*R(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){D(e,2,3),B(e,m,_),function(e){16===e.bi_valid?(j(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var n,r,o,i,a=1,s={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,n="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",h,!1):e.attachEvent("onmessage",h),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[a]=o,n(a),a++},c.clearImmediate=f}function f(e){delete s[e]}function d(e){if(l)setTimeout(d,0,e);else{var n=s[e];if(n){l=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),l=!1}}}}function h(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))},83503:function(e,t,n){(function(){var t=n(3939),r=n(92151).utf8,o=n(87206),i=n(92151).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?i.stringToBytes(e):r.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),l=8*e.length,u=1732584193,c=-271733879,f=-1732584194,d=271733878,h=0;h<s.length;h++)s[h]=16711935&(s[h]<<8|s[h]>>>24)|4278255360&(s[h]<<24|s[h]>>>8);s[l>>>5]|=128<<l%32,s[14+(l+64>>>9<<4)]=l;var p=a._ff,v=a._gg,g=a._hh,m=a._ii;for(h=0;h<s.length;h+=16){var y=u,b=c,w=f,A=d;u=p(u,c,f,d,s[h+0],7,-680876936),d=p(d,u,c,f,s[h+1],12,-389564586),f=p(f,d,u,c,s[h+2],17,606105819),c=p(c,f,d,u,s[h+3],22,-1044525330),u=p(u,c,f,d,s[h+4],7,-176418897),d=p(d,u,c,f,s[h+5],12,1200080426),f=p(f,d,u,c,s[h+6],17,-1473231341),c=p(c,f,d,u,s[h+7],22,-45705983),u=p(u,c,f,d,s[h+8],7,1770035416),d=p(d,u,c,f,s[h+9],12,-1958414417),f=p(f,d,u,c,s[h+10],17,-42063),c=p(c,f,d,u,s[h+11],22,-1990404162),u=p(u,c,f,d,s[h+12],7,1804603682),d=p(d,u,c,f,s[h+13],12,-40341101),f=p(f,d,u,c,s[h+14],17,-1502002290),c=p(c,f,d,u,s[h+15],22,1236535329),u=v(u,c,f,d,s[h+1],5,-165796510),d=v(d,u,c,f,s[h+6],9,-1069501632),f=v(f,d,u,c,s[h+11],14,643717713),c=v(c,f,d,u,s[h+0],20,-373897302),u=v(u,c,f,d,s[h+5],5,-701558691),d=v(d,u,c,f,s[h+10],9,38016083),f=v(f,d,u,c,s[h+15],14,-660478335),c=v(c,f,d,u,s[h+4],20,-405537848),u=v(u,c,f,d,s[h+9],5,568446438),d=v(d,u,c,f,s[h+14],9,-1019803690),f=v(f,d,u,c,s[h+3],14,-187363961),c=v(c,f,d,u,s[h+8],20,1163531501),u=v(u,c,f,d,s[h+13],5,-1444681467),d=v(d,u,c,f,s[h+2],9,-51403784),f=v(f,d,u,c,s[h+7],14,1735328473),c=v(c,f,d,u,s[h+12],20,-1926607734),u=g(u,c,f,d,s[h+5],4,-378558),d=g(d,u,c,f,s[h+8],11,-2022574463),f=g(f,d,u,c,s[h+11],16,1839030562),c=g(c,f,d,u,s[h+14],23,-35309556),u=g(u,c,f,d,s[h+1],4,-1530992060),d=g(d,u,c,f,s[h+4],11,1272893353),f=g(f,d,u,c,s[h+7],16,-155497632),c=g(c,f,d,u,s[h+10],23,-1094730640),u=g(u,c,f,d,s[h+13],4,681279174),d=g(d,u,c,f,s[h+0],11,-358537222),f=g(f,d,u,c,s[h+3],16,-722521979),c=g(c,f,d,u,s[h+6],23,76029189),u=g(u,c,f,d,s[h+9],4,-640364487),d=g(d,u,c,f,s[h+12],11,-421815835),f=g(f,d,u,c,s[h+15],16,530742520),c=g(c,f,d,u,s[h+2],23,-995338651),u=m(u,c,f,d,s[h+0],6,-198630844),d=m(d,u,c,f,s[h+7],10,1126891415),f=m(f,d,u,c,s[h+14],15,-1416354905),c=m(c,f,d,u,s[h+5],21,-57434055),u=m(u,c,f,d,s[h+12],6,1700485571),d=m(d,u,c,f,s[h+3],10,-1894986606),f=m(f,d,u,c,s[h+10],15,-1051523),c=m(c,f,d,u,s[h+1],21,-2054922799),u=m(u,c,f,d,s[h+8],6,1873313359),d=m(d,u,c,f,s[h+15],10,-30611744),f=m(f,d,u,c,s[h+6],15,-1560198380),c=m(c,f,d,u,s[h+13],21,1309151649),u=m(u,c,f,d,s[h+4],6,-145523070),d=m(d,u,c,f,s[h+11],10,-1120210379),f=m(f,d,u,c,s[h+2],15,718787259),c=m(c,f,d,u,s[h+9],21,-343485551),u=u+y>>>0,c=c+b>>>0,f=f+w>>>0,d=d+A>>>0}return t.endian([u,c,f,d])};a._ff=function(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},a._gg=function(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},a._hh=function(e,t,n,r,o,i,a){var s=e+(t^n^r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},a._ii=function(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+(o>>>0)+a;return(s<<i|s>>>32-i)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):t.bytesToHex(r)}})()},63611:function(){},58859:function(e,t,n){var r="function"===typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"===typeof o.get?o.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"===typeof l.get?l.get:null,c=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,d=f?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,p=h?WeakSet.prototype.has:null,v="function"===typeof WeakRef&&WeakRef.prototype,g=v?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,y=Object.prototype.toString,b=Function.prototype.toString,w=String.prototype.match,A=String.prototype.slice,x=String.prototype.replace,C=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,k=Array.prototype.concat,E=Array.prototype.join,O=Array.prototype.slice,F=Math.floor,T="function"===typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"===typeof Symbol&&"object"===typeof Symbol.iterator,L="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,R=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-F(-e):F(e);if(r!==e){var o=String(r),i=A.call(t,o.length+1);return x.call(o,n,"$&_")+"."+x.call(x.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(t,n,"$&_")}var D=n(42634),B=D.custom,W=X(B)?B:null;function z(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function U(e){return x.call(String(e),/"/g,"&quot;")}function K(e){return"[object Array]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function V(e){return"[object Date]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function H(e){return"[object RegExp]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function q(e){return"[object Error]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function G(e){return"[object String]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function Y(e){return"[object Number]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function $(e){return"[object Boolean]"===ee(e)&&(!L||!("object"===typeof e&&L in e))}function X(e){if(M)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!N)return!1;try{return N.call(e),!0}catch(t){}return!1}function J(e){if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,o,s){var l=r||{};if(Z(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=!Z(l,"customInspect")||l.customInspect;if("boolean"!==typeof f&&"symbol"!==f)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return ue(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var h=String(t);return d?j(t,h):h}if("bigint"===typeof t){var p=String(t)+"n";return d?j(t,p):p}var v="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof o&&(o=0),o>=v&&v>0&&"object"===typeof t)return K(t)?"[Array]":"[Object]";var g=ve(l,o);if("undefined"===typeof s)s=[];else if(ne(s,t)>=0)return"[Circular]";function y(t,n,r){if(n&&(s=O.call(s),s.push(n)),r){var i={depth:l.depth};return Z(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,s)}return e(t,l,o+1,s)}if("function"===typeof t&&!H(t)){var b=te(t),w=me(t,y);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(w.length>0?" { "+E.call(w,", ")+" }":"")}if(X(t)){var C=M?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!==typeof t||M?C:fe(C)}if(le(t)){for(var _="<"+S.call(String(t.nodeName)),F=t.attributes||[],P=0;P<F.length;P++)_+=" "+F[P].name+"="+z(U(F[P].value),"double",l);return _+=">",t.childNodes&&t.childNodes.length&&(_+="..."),_+="</"+S.call(String(t.nodeName))+">",_}if(K(t)){if(0===t.length)return"[]";var B=me(t,y);return g&&!pe(B)?"["+ge(B,g)+"]":"[ "+E.call(B,", ")+" ]"}if(q(t)){var Q=me(t,y);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===Q.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(Q,", ")+" }":"{ ["+String(t)+"] "+E.call(k.call("[cause]: "+y(t.cause),Q),", ")+" }"}if("object"===typeof t&&f){if(W&&"function"===typeof t[W]&&D)return D(t,{depth:v-o});if("symbol"!==f&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var ce=[];return a&&a.call(t,(function(e,n){ce.push(y(n,t,!0)+" => "+y(e,t))})),he("Map",i.call(t),ce,g)}if(ae(t)){var ye=[];return c&&c.call(t,(function(e){ye.push(y(e,t))})),he("Set",u.call(t),ye,g)}if(oe(t))return de("WeakMap");if(se(t))return de("WeakSet");if(ie(t))return de("WeakRef");if(Y(t))return fe(y(Number(t)));if(J(t))return fe(y(T.call(t)));if($(t))return fe(m.call(t));if(G(t))return fe(y(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!V(t)&&!H(t)){var be=me(t,y),we=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ae=t instanceof Object?"":"null prototype",xe=!we&&L&&Object(t)===t&&L in t?A.call(ee(t),8,-1):Ae?"Object":"",Ce=we||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",Se=Ce+(xe||Ae?"["+E.call(k.call([],xe||[],Ae||[]),": ")+"] ":"");return 0===be.length?Se+"{}":g?Se+"{"+ge(be,g)+"}":Se+"{ "+E.call(be,", ")+" }"}return String(t)};var Q=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return Q.call(e,t)}function ee(e){return y.call(e)}function te(e){if(e.name)return e.name;var t=w.call(b.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!i||!e||"object"!==typeof e)return!1;try{i.call(e);try{u.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function oe(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function ie(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function ae(e){if(!u||!e||"object"!==typeof e)return!1;try{u.call(e);try{i.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function se(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function le(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function ue(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ue(A.call(e,0,t.maxStringLength),t)+r}var o=x.call(x.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ce);return z(o,"single",t)}function ce(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+C.call(t.toString(16))}function fe(e){return"Object("+e+")"}function de(e){return e+" { ? }"}function he(e,t,n,r){var o=r?ge(n,r):E.call(n,", ");return e+" ("+t+") {"+o+"}"}function pe(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function ve(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}function ge(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function me(e,t){var n=K(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Z(e,o)?t(e[o],e):""}var i,a="function"===typeof P?P(e):[];if(M){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)Z(e,l)&&(n&&String(Number(l))===l&&l<e.length||M&&i["$"+l]instanceof Symbol||(_.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof P)for(var u=0;u<a.length;u++)I.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}},74765:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},55373:function(e,t,n){"use strict";var r=n(98636),o=n(62642),i=n(74765);e.exports={formats:i,parse:o,stringify:r}},62642:function(e,t,n){"use strict";var r=n(37720),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",f=function(e,t){var n={__proto__:null},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var d,h=t.parameterLimit===1/0?void 0:t.parameterLimit,p=f.split(t.delimiter,h),v=-1,g=t.charset;if(t.charsetSentinel)for(d=0;d<p.length;++d)0===p[d].indexOf("utf8=")&&(p[d]===c?g="utf-8":p[d]===u&&(g="iso-8859-1"),v=d,d=p.length);for(d=0;d<p.length;++d)if(d!==v){var m,y,b=p[d],w=b.indexOf("]="),A=-1===w?b.indexOf("="):w+1;-1===A?(m=t.decoder(b,a.decoder,g,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(b.slice(0,A),a.decoder,g,"key"),y=r.maybeMap(l(b.slice(A+1),t),(function(e){return t.decoder(e,a.decoder,g,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===g&&(y=s(y)),b.indexOf("[]=")>-1&&(y=i(y)?[y]:y);var x=o.call(n,m);x&&"combine"===t.duplicates?n[m]=r.combine(n[m],y):x&&"last"!==t.duplicates||(n[m]=y)}return n},d=function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=n.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(c,10);n.parseArrays||""!==c?!isNaN(f)&&s!==c&&String(f)===c&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(a=[],a[f]=o):"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o},h=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,l=n.depth>0&&a.exec(i),u=l?i.slice(0,l.index):i,c=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}var f=0;while(n.depth>0&&null!==(l=s.exec(i))&&f<n.depth){if(f+=1,!n.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+i.slice(l.index)+"]")}return d(c,t,n,r)}},p=function(e){if(!e)return a;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset,n="undefined"===typeof e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");var o="undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots;return{allowDots:o,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:a.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var o="string"===typeof e?f(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=h(l,o[l],n,"string"===typeof e);i=r.merge(i,u,n)}return!0===n.allowSparse?i:r.compact(i)}},98636:function(e,t,n){"use strict";var r=n(920),o=n(37720),i=n(74765),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,l(t)?t:[t])},f=Date.prototype.toISOString,d=i["default"],h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},v={},g=function e(t,n,i,a,s,u,f,d,g,m,y,b,w,A,x,C,S,_){var k=t,E=_,O=0,F=!1;while(void 0!==(E=E.get(v))&&!F){var T=E.get(t);if(O+=1,"undefined"!==typeof T){if(T===O)throw new RangeError("Cyclic object value");F=!0}"undefined"===typeof E.get(v)&&(O=0)}if("function"===typeof m?k=m(n,k):k instanceof Date?k=w(k):"comma"===i&&l(k)&&(k=o.maybeMap(k,(function(e){return e instanceof Date?w(e):e}))),null===k){if(u)return g&&!C?g(n,h.encoder,S,"key",A):n;k=""}if(p(k)||o.isBuffer(k)){if(g){var P=C?n:g(n,h.encoder,S,"key",A);return[x(P)+"="+x(g(k,h.encoder,S,"value",A))]}return[x(n)+"="+x(String(k))]}var N,M=[];if("undefined"===typeof k)return M;if("comma"===i&&l(k))C&&g&&(k=o.maybeMap(k,g)),N=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(m))N=m;else{var L=Object.keys(k);N=y?L.sort(y):L}var I=d?n.replace(/\./g,"%2E"):n,R=a&&l(k)&&1===k.length?I+"[]":I;if(s&&l(k)&&0===k.length)return R+"[]";for(var j=0;j<N.length;++j){var D=N[j],B="object"===typeof D&&"undefined"!==typeof D.value?D.value:k[D];if(!f||null!==B){var W=b&&d?D.replace(/\./g,"%2E"):D,z=l(k)?"function"===typeof i?i(R,W):R:R+(b?"."+W:"["+W+"]");_.set(t,O);var U=r();U.set(v,_),c(M,e(B,z,i,a,s,u,f,d,"comma"===i&&C&&l(k)?null:g,m,y,b,w,A,x,C,S,U))}}return M},m=function(e){if(!e)return h;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i["default"];if("undefined"!==typeof e.format){if(!a.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],u=h.filter;if(("function"===typeof e.filter||l(e.filter))&&(u=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:u,format:n,formatter:o,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var n,o,i=e,a=m(t);"function"===typeof a.filter?(o=a.filter,i=o("",i)):l(a.filter)&&(o=a.filter,n=o);var u=[];if("object"!==typeof i||null===i)return"";var f=s[a.arrayFormat],d="comma"===f&&a.commaRoundTrip;n||(n=Object.keys(i)),a.sort&&n.sort(a.sort);for(var h=r(),p=0;p<n.length;++p){var v=n[p];a.skipNulls&&null===i[v]||c(u,g(i[v],v,f,d,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}var y=u.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},37720:function(e,t,n){"use strict";var r=n(74765),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)"undefined"!==typeof n[o]&&r.push(n[o]);t.obj[t.prop]=r}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},u=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(i(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=l(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var a=t[i];a&&"object"===typeof a&&n&&"object"===typeof n?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return o.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),a)},c=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},f=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},d=1024,h=function(e,t,n,o,i){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",u=0;u<s.length;u+=d){for(var c=s.length>=d?s.slice(u,u+d):s,f=[],h=0;h<c.length;++h){var p=c.charCodeAt(h);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===r.RFC1738&&(40===p||41===p)?f[f.length]=c.charAt(h):p<128?f[f.length]=a[p]:p<2048?f[f.length]=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?f[f.length]=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(h+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(h)),f[f.length]=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}l+=f.join("")}return l},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],a=Object.keys(i),l=0;l<a.length;++l){var u=a[l],c=i[u];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:i,prop:u}),n.push(c))}return s(t),e},v=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},g=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},m=function(e,t){return[].concat(e,t)},y=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:l,assign:c,combine:m,compact:p,decode:f,encode:h,isBuffer:g,isRegExp:v,maybeMap:y,merge:u}},96897:function(e,t,n){"use strict";var r=n(70453),o=n(30041),i=n(30592)(),a=n(75795),s=n(69675),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},920:function(e,t,n){"use strict";var r=n(70453),o=n(38075),i=n(58859),a=n(69675),s=r("%WeakMap%",!0),l=r("%Map%",!0),u=o("WeakMap.prototype.get",!0),c=o("WeakMap.prototype.set",!0),f=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),p=o("Map.prototype.has",!0),v=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=v(e,t);return n&&n.value},m=function(e,t,n){var r=v(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!v(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+i(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return u(e,r)}else if(l){if(t)return d(t,r)}else if(n)return g(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return f(e,r)}else if(l){if(t)return p(t,r)}else if(n)return y(n,r);return!1},set:function(r,o){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),c(e,r,o)):l?(t||(t=new l),h(t,r,o)):(n||(n={key:{},next:null}),m(n,r,o))}};return r}},12897:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var t=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var o=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var o=r&&!0===r.clone;return o&&e(n)?i(t(n),n,r):n}function r(t,r,o){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,o):e(r)?a[s]=i(t[s],r,o):-1===t.indexOf(r)&&a.push(n(r,o))})),a}function o(t,r,o){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],o)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=i(t[s],r[s],o):a[s]=n(r[s],o)})),a}function i(e,t,i){var a=Array.isArray(t),s=i||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(e)?l(e,t,i):n(t,i):o(e,t,i)}return i.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return i(e,n,t)}))},i}))})),i=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},s=i.svg,l=i.xlink,u={};u[s.name]=s.uri,u[l.name]=l.uri;var c=function(e,t){void 0===e&&(e="");var n=o(u,t||{}),r=a(n);return"<svg "+r+">"+e+"</svg>"},f=function(e){function n(){e.apply(this,arguments)}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},n.createFromExistingNode=function(e){return new n({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},n.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},n.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},n.prototype.render=function(){var e=this.stringify();return t(c(e)).childNodes[0]},n.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(n.prototype,r),n}(e);return f}))},55042:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var o=r&&!0===r.clone;return o&&e(n)?i(t(n),n,r):n}function r(t,r,o){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,o):e(r)?a[s]=i(t[s],r,o):-1===t.indexOf(r)&&a.push(n(r,o))})),a}function o(t,r,o){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],o)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=i(t[s],r[s],o):a[s]=n(r[s],o)})),a}function i(e,t,i){var a=Array.isArray(t),s=i||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(e)?l(e,t,i):n(t,i):o(e,t,i)}return i.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return i(e,n,t)}))},i}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var o=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),i=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},a=o.svg,s=o.xlink,l={};l[a.name]=a.uri,l[s.name]=s.uri;var u,c=function(e,n){void 0===e&&(e="");var r=t(l,n||{}),o=i(r);return"<svg "+o+">"+e+"</svg>"},f=o.svg,d=o.xlink,h={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},u[f.name]=f.uri,u[d.name]=d.uri,u)},p=function(e){this.config=t(h,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return c(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var v=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};v.prototype.stringify=function(){return this.content},v.prototype.toString=function(){return this.stringify()},v.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var g=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},m=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return g(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(v),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(e){return Array.prototype.slice.call(e,0)},w={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},A=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},x=function(e){var t=[];return b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},C=function(e){return(e||window.location.href).split("#")[0]},S=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){A(e,{oldUrl:r,newUrl:n})}))}])},_="linearGradient, radialGradient, pattern, mask, clipPath",k=function(e,t){return void 0===t&&(t=_),b(e.querySelectorAll("symbol")).forEach((function(e){b(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function E(e,t){var n=b(e).reduce((function(e,n){if(!n.attributes)return e;var r=b(n.attributes),o=t?r.filter(t):r;return e.concat(o)}),[]);return n}var O=o.xlink.uri,F="xlink:href",T=/[{}|\\\^\[\]`"<>]/g;function P(e){return e.replace(T,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function N(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t,n){return b(e).forEach((function(e){var r=e.getAttribute(F);if(r&&0===r.indexOf(t)){var o=r.replace(t,n);e.setAttributeNS(O,F,o)}})),e}var L,I=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],R=I.map((function(e){return"["+e+"]"})).join(","),j=function(e,t,n,r){var o=P(n),i=P(r),a=e.querySelectorAll(R),s=E(a,(function(e){var t=e.localName,n=e.value;return-1!==I.indexOf(t)&&-1!==n.indexOf("url("+o)}));s.forEach((function(e){return e.value=e.value.replace(new RegExp(N(o),"g"),i)})),M(t,o,i)},D={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},B=function(e){function n(n){var o=this;void 0===n&&(n={}),e.call(this,t(y,n));var i=r();this._emitter=i,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(n),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");i.on(D.MOUNT,(function(){return o.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&S(s.locationChangeEvent),i.on(D.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&k(e)})),i.on(D.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&k(e.parentNode),(w.isIE()||w.isEdge())&&x(e)}))}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var o={isMounted:{}};return o.isMounted.get=function(){return!!this.node},n.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=w.isFirefox())},n.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},n.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(D.SYMBOL_MOUNT,t.node)),r},n.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(D.SYMBOL_MOUNT,e.node)})),b(r.querySelectorAll("symbol")).forEach((function(e){var t=m.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(D.MOUNT,r),r},n.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},n.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,o=n.render();return this.node=o,t&&r.childNodes[0]?r.insertBefore(o,r.childNodes[0]):r.appendChild(o),this._emitter.emit(D.MOUNT,o),o},n.prototype.render=function(){return g(this.stringify())},n.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},n.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return j(this.node,n,C(e)+"#",C(t)+"#"),!0},Object.defineProperties(n.prototype,o),n}(p),W=e((function(e){
/*!
  * domready (c) Dustin Diaz 2014 - License MIT
  */
!function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,o="DOMContentLoaded",i=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return i||n.addEventListener(o,e=function(){n.removeEventListener(o,e),i=1;while(e=t.shift())e()}),function(e){i?setTimeout(e,0):t.push(e)}}))})),z="__SVG_SPRITE_NODE__",U="__SVG_SPRITE__",K=!!window[U];K?L=window[U]:(L=new B({attrs:{id:z,"aria-hidden":"true"}}),window[U]=L);var V=function(){var e=document.getElementById(z);e?L.attach(e):L.mount(document.body,!0)};document.body?V():W(V);var H=L;return H}))},44526:function(e,t,n){"use strict";var r;n.d(t,{A:function(){return p}});var o=new Uint8Array(16);function i(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function s(e){return"string"===typeof e&&a.test(e)}for(var l=s,u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n}var d=f;function h(e,t,n){e=e||{};var r=e.random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return d(r)}var p=h},66262:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n}},11292:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={},l=function(){function t(){e(this,t),Object.defineProperty(this,"length",{get:function(){return Object.keys(s).length}})}return r(t,[{key:"getItem",value:function(e){return e in s?s[e]:null}},{key:"setItem",value:function(e,t){return s[e]=t,!0}},{key:"removeItem",value:function(e){var t=e in s;return!!t&&delete s[e]}},{key:"clear",value:function(){return s={},!0}},{key:"key",value:function(e){var t=Object.keys(s);return"undefined"!==typeof t[e]?t[e]:null}}]),t}(),u=new l,c={},f=function(){function t(){e(this,t)}return r(t,null,[{key:"on",value:function(e,t){"undefined"===typeof c[e]&&(c[e]=[]),c[e].push(t)}},{key:"off",value:function(e,t){c[e].length?c[e].splice(c[e].indexOf(t),1):c[e]=[]}},{key:"emit",value:function(e){var t=e||window.event,n=function(e){try{return JSON.parse(e).value}catch(t){return e}},r=function(e){var r=n(t.newValue),o=n(t.oldValue);e(r,o,t.url||t.uri)};if("undefined"!==typeof t&&"undefined"!==typeof t.key){var o=c[t.key];"undefined"!==typeof o&&o.forEach(r)}}}]),t}(),d=function(){function t(n){if(e(this,t),this.storage=n,this.options={namespace:"",events:["storage"]},Object.defineProperty(this,"length",{get:function(){return this.storage.length}}),"undefined"!==typeof window)for(var r in this.options.events)window.addEventListener?window.addEventListener(this.options.events[r],f.emit,!1):window.attachEvent?window.attachEvent("on".concat(this.options.events[r]),f.emit):window["on".concat(this.options.events[r])]=f.emit}return r(t,[{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=Object.assign(this.options,e)}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=JSON.stringify({value:t,expire:null!==n?(new Date).getTime()+n:null});this.storage.setItem(this.options.namespace+e,r)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.storage.getItem(this.options.namespace+e);if(null!==n)try{var r=JSON.parse(n);if(null===r.expire)return r.value;if(r.expire>=(new Date).getTime())return r.value;this.remove(e)}catch(o){return t}return t}},{key:"key",value:function(e){return this.storage.key(e)}},{key:"remove",value:function(e){return this.storage.removeItem(this.options.namespace+e)}},{key:"clear",value:function(){if(0!==this.length){for(var e=[],t=0;t<this.length;t++){var n=this.storage.key(t),r=new RegExp("^".concat(this.options.namespace,".+"),"i");!1!==r.test(n)&&e.push(n)}for(var o in e)this.storage.removeItem(e[o])}}},{key:"on",value:function(e,t){f.on(this.options.namespace+e,t)}},{key:"off",value:function(e,t){f.off(this.options.namespace+e,t)}}]),t}(),h="undefined"!==typeof window?window:n.g||{},p={useStorage:function(e){var t=a(a({},e),{},{storage:e.storage||"local",name:e.name||"ls"});if(t.storage&&-1===["memory","local","session"].indexOf(t.storage))throw new Error('Vue-ls: Storage "'.concat(t.storage,'" is not supported'));var n=null;switch(t.storage){case"local":try{n="localStorage"in h?h.localStorage:null}catch(o){}break;case"session":try{n="sessionStorage"in h?h.sessionStorage:null}catch(o){}break;case"memory":n=u;break}n||(n=u);var r=new d(n);return r.setOptions(Object.assign(r.options,{namespace:""},t||{})),{ls:r,_options:t}},install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.useStorage(t),r=n.ls,o=n._options;e[o.name]=r,Object.defineProperty(e.prototype||e.config.globalProperties,"$".concat(o.name),{get:function(){return r}})}};return h.VueStorage=p,p}))},29726:function(e,t,n){"use strict";n.d(t,{Mw:function(){return Fa},FK:function(){return Ea},PR:function(){return kr},Im:function(){return xi},EY:function(){return Oa},eB:function(){return Qs},F:function(){return iu},PT:function(){return L},E3:function(){return Xa},EW:function(){return Fs},Ef:function(){return Du},Wv:function(){return Wa},Q3:function(){return Za},CE:function(){return Ba},Lk:function(){return qa},eW:function(){return Ja},bF:function(){return Ga},pM:function(){return wr},uY:function(){return Ce},nI:function(){return us},o5:function(){return _e},h:function(){return Ts},PS:function(){return Go},WQ:function(){return qo},g8:function(){return Ut},i9:function(){return en},vv:function(){return za},IG:function(){return Gt},v6:function(){return rs},dY:function(){return Rn},C4:function(){return ee},Tr:function(){return $},n:function(){return Or},KC:function(){return Rr},xo:function(){return Wr},Ic:function(){return Dr},Y4:function(){return Fr},sV:function(){return jr},jr:function(){return ke},hi:function(){return zr},$u:function(){return Br},uX:function(){return Ma},jt:function(){return tr},Gt:function(){return Ho},Qi:function(){return er},Kh:function(){return jt},KR:function(){return tn},XX:function(){return Ru},pI:function(){return eo},RG:function(){return no},g2:function(){return Yr},gN:function(){return Jr},$y:function(){return Xr},Gc:function(){return Dt},IJ:function(){return nn},v_:function(){return me},Tb:function(){return oo},ux:function(){return qt},lW:function(){return gn},QW:function(){return hn},R1:function(){return sn},OA:function(){return bo},aG:function(){return yl},wB:function(){return Xi},nT:function(){return qi},k6:function(){return rr},bo:function(){return or},D$:function(){return Ou}});var r={};
/**
* @vue/shared v3.4.37
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
/*! #__NO_SIDE_EFFECTS__ */
function o(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(r),n.d(r,{BaseTransition:function(){return hr},BaseTransitionPropsValidators:function(){return cr},Comment:function(){return Fa},DeprecationTypes:function(){return Ks},EffectScope:function(){return xe},ErrorCodes:function(){return An},ErrorTypeStrings:function(){return Rs},Fragment:function(){return Ea},KeepAlive:function(){return kr},ReactiveEffect:function(){return Ee},Static:function(){return Ta},Suspense:function(){return ga},Teleport:function(){return xi},Text:function(){return Oa},TrackOpTypes:function(){return yn},Transition:function(){return Qs},TransitionGroup:function(){return iu},TriggerOpTypes:function(){return bn},VueElement:function(){return Ql},assertNumber:function(){return wn},callWithAsyncErrorHandling:function(){return Sn},callWithErrorHandling:function(){return Cn},camelize:function(){return L},capitalize:function(){return j},cloneVNode:function(){return Xa},compatUtils:function(){return Us},computed:function(){return Fs},createApp:function(){return Du},createBlock:function(){return Wa},createCommentVNode:function(){return Za},createElementBlock:function(){return Ba},createElementVNode:function(){return qa},createHydrationRenderer:function(){return Ii},createPropsRestProxy:function(){return So},createRenderer:function(){return Li},createSSRApp:function(){return Bu},createSlots:function(){return to},createStaticVNode:function(){return Qa},createTextVNode:function(){return Ja},createVNode:function(){return Ga},customRef:function(){return dn},defineAsyncComponent:function(){return xr},defineComponent:function(){return wr},defineCustomElement:function(){return $l},defineEmits:function(){return fo},defineExpose:function(){return ho},defineModel:function(){return go},defineOptions:function(){return po},defineProps:function(){return co},defineSSRCustomElement:function(){return Xl},defineSlots:function(){return vo},devtools:function(){return js},effect:function(){return Ne},effectScope:function(){return Ce},getCurrentInstance:function(){return us},getCurrentScope:function(){return _e},getTransitionRawChildren:function(){return br},guardReactiveProps:function(){return $a},h:function(){return Ts},handleError:function(){return _n},hasInjectionContext:function(){return Go},hydrate:function(){return ju},initCustomFormatter:function(){return Ps},initDirectivesForSSR:function(){return Ku},inject:function(){return qo},isMemoSame:function(){return Ms},isProxy:function(){return Ht},isReactive:function(){return Ut},isReadonly:function(){return Kt},isRef:function(){return en},isRuntimeOnly:function(){return xs},isShallow:function(){return Vt},isVNode:function(){return za},markRaw:function(){return Gt},mergeDefaults:function(){return xo},mergeModels:function(){return Co},mergeProps:function(){return rs},nextTick:function(){return Rn},normalizeClass:function(){return ee},normalizeProps:function(){return te},normalizeStyle:function(){return $},onActivated:function(){return Or},onBeforeMount:function(){return Rr},onBeforeUnmount:function(){return Wr},onBeforeUpdate:function(){return Dr},onDeactivated:function(){return Fr},onErrorCaptured:function(){return Hr},onMounted:function(){return jr},onRenderTracked:function(){return Vr},onRenderTriggered:function(){return Kr},onScopeDispose:function(){return ke},onServerPrefetch:function(){return Ur},onUnmounted:function(){return zr},onUpdated:function(){return Br},openBlock:function(){return Ma},popScopeId:function(){return tr},provide:function(){return Ho},proxyRefs:function(){return cn},pushScopeId:function(){return er},queuePostFlushCb:function(){return zn},reactive:function(){return jt},readonly:function(){return Bt},ref:function(){return tn},registerRuntimeCompiler:function(){return As},render:function(){return Ru},renderList:function(){return eo},renderSlot:function(){return no},resolveComponent:function(){return Yr},resolveDirective:function(){return Jr},resolveDynamicComponent:function(){return Xr},resolveFilter:function(){return zs},resolveTransitionHooks:function(){return vr},setBlockTracking:function(){return ja},setDevtoolsHook:function(){return Ds},setTransitionHooks:function(){return yr},shallowReactive:function(){return Dt},shallowReadonly:function(){return Wt},shallowRef:function(){return nn},ssrContextKey:function(){return Vi},ssrUtils:function(){return Ws},stop:function(){return Me},toDisplayString:function(){return me},toHandlerKey:function(){return D},toHandlers:function(){return oo},toRaw:function(){return qt},toRef:function(){return gn},toRefs:function(){return hn},toValue:function(){return ln},transformVNodeArgs:function(){return Ka},triggerRef:function(){return an},unref:function(){return sn},useAttrs:function(){return bo},useCssModule:function(){return Zl},useCssVars:function(){return xl},useModel:function(){return ta},useSSRContext:function(){return Hi},useSlots:function(){return yo},useTransitionState:function(){return lr},vModelCheckbox:function(){return vu},vModelDynamic:function(){return xu},vModelRadio:function(){return mu},vModelSelect:function(){return yu},vModelText:function(){return pu},vShow:function(){return yl},version:function(){return Ls},warn:function(){return Is},watch:function(){return Xi},watchEffect:function(){return qi},watchPostEffect:function(){return Gi},watchSyncEffect:function(){return Yi},withAsyncContext:function(){return _o},withCtx:function(){return rr},withDefaults:function(){return mo},withDirectives:function(){return or},withKeys:function(){return Tu},withMemo:function(){return Ns},withModifiers:function(){return Ou},withScopeId:function(){return nr}});const i={},a=[],s=()=>{},l=()=>!1,u=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),f=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,p=(e,t)=>h.call(e,t),v=Array.isArray,g=e=>"[object Map]"===k(e),m=e=>"[object Set]"===k(e),y=e=>"[object Date]"===k(e),b=e=>"[object RegExp]"===k(e),w=e=>"function"===typeof e,A=e=>"string"===typeof e,x=e=>"symbol"===typeof e,C=e=>null!==e&&"object"===typeof e,S=e=>(C(e)||w(e))&&w(e.then)&&w(e.catch),_=Object.prototype.toString,k=e=>_.call(e),E=e=>k(e).slice(8,-1),O=e=>"[object Object]"===k(e),F=e=>A(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=o("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),N=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},M=/-(\w)/g,L=N((e=>e.replace(M,((e,t)=>t?t.toUpperCase():"")))),I=/\B([A-Z])/g,R=N((e=>e.replace(I,"-$1").toLowerCase())),j=N((e=>e.charAt(0).toUpperCase()+e.slice(1))),D=N((e=>{const t=e?`on${j(e)}`:"";return t})),B=(e,t)=>!Object.is(e,t),W=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},z=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},K=e=>{const t=A(e)?Number(e):NaN;return isNaN(t)?e:t};let V;const H=()=>V||(V="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const q={[1]:"TEXT",[2]:"CLASS",[4]:"STYLE",[8]:"PROPS",[16]:"FULL_PROPS",[32]:"NEED_HYDRATION",[64]:"STABLE_FRAGMENT",[128]:"KEYED_FRAGMENT",[256]:"UNKEYED_FRAGMENT",[512]:"NEED_PATCH",[1024]:"DYNAMIC_SLOTS",[2048]:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},G="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error",Y=o(G);function $(e){if(v(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=A(r)?Z(r):$(r);if(o)for(const e in o)t[e]=o[e]}return t}if(A(e)||C(e))return e}const X=/;(?![^(]*\))/g,J=/:([^]+)/,Q=/\/\*[^]*?\*\//g;function Z(e){const t={};return e.replace(Q,"").split(X).forEach((e=>{if(e){const n=e.split(J);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ee(e){let t="";if(A(e))t=e;else if(v(e))for(let n=0;n<e.length;n++){const r=ee(e[n]);r&&(t+=r+" ")}else if(C(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function te(e){if(!e)return null;let{class:t,style:n}=e;return t&&!A(t)&&(e.class=ee(t)),n&&(e.style=$(n)),e}const ne="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",re="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",oe="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",ie="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",ae=o(ne),se=o(re),le=o(oe),ue=o(ie),ce="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fe=o(ce);function de(e){return!!e||""===e}function he(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=pe(e[r],t[r]);return n}function pe(e,t){if(e===t)return!0;let n=y(e),r=y(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=x(e),r=x(t),n||r)return e===t;if(n=v(e),r=v(t),n||r)return!(!n||!r)&&he(e,t);if(n=C(e),r=C(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!pe(e[n],t[n]))return!1}}return String(e)===String(t)}function ve(e,t){return e.findIndex((e=>pe(e,t)))}const ge=e=>!(!e||!0!==e.__v_isRef),me=e=>A(e)?e:null==e?"":v(e)||C(e)&&(e.toString===_||!w(e.toString))?ge(e)?me(e.value):JSON.stringify(e,ye,2):String(e),ye=(e,t)=>ge(t)?ye(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[be(t,r)+" =>"]=n,e)),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>be(e)))}:x(t)?be(t):!C(t)||v(t)||O(t)?t:String(t),be=(e,t="")=>{var n;return x(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let we,Ae;class xe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=we,!e&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=we;try{return we=this,e()}finally{we=t}}else 0}on(){we=this}off(){we=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function Ce(e){return new xe(e)}function Se(e,t=we){t&&t.active&&t.effects.push(e)}function _e(){return we}function ke(e){we&&we.cleanups.push(e)}class Ee{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Se(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,je();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(Oe(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),De()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Le,t=Ae;try{return Le=!0,Ae=this,this._runnings++,Fe(this),this.fn()}finally{Te(this),this._runnings--,Ae=t,Le=e}}stop(){this.active&&(Fe(this),Te(this),this.onStop&&this.onStop(),this.active=!1)}}function Oe(e){return e.value}function Fe(e){e._trackId++,e._depsLength=0}function Te(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Pe(e.deps[t],e);e.deps.length=e._depsLength}}function Pe(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function Ne(e,t){e.effect instanceof Ee&&(e=e.effect.fn);const n=new Ee(e,s,(()=>{n.dirty&&n.run()}));t&&(f(n,t),t.scope&&Se(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r}function Me(e){e.effect.stop()}let Le=!0,Ie=0;const Re=[];function je(){Re.push(Le),Le=!1}function De(){const e=Re.pop();Le=void 0===e||e}function Be(){Ie++}function We(){Ie--;while(!Ie&&Ue.length)Ue.shift()()}function ze(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Pe(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ue=[];function Ke(e,t,n){Be();for(const r of e.keys()){let n;r._dirtyLevel<t&&(null!=n?n:n=e.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=t),r._shouldSchedule&&(null!=n?n:n=e.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&Ue.push(r.scheduler)))}We()}const Ve=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},He=new WeakMap,qe=Symbol(""),Ge=Symbol("");function Ye(e,t,n){if(Le&&Ae){let t=He.get(e);t||He.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=Ve((()=>t.delete(n)))),ze(Ae,r,void 0)}}function $e(e,t,n,r,o,i){const a=He.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&v(e)){const e=Number(r);a.forEach(((t,n)=>{("length"===n||!x(n)&&n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":v(e)?F(n)&&s.push(a.get("length")):(s.push(a.get(qe)),g(e)&&s.push(a.get(Ge)));break;case"delete":v(e)||(s.push(a.get(qe)),g(e)&&s.push(a.get(Ge)));break;case"set":g(e)&&s.push(a.get(qe));break}Be();for(const l of s)l&&Ke(l,4,void 0);We()}function Xe(e,t){const n=He.get(e);return n&&n.get(t)}const Je=o("__proto__,__v_isRef,__isVue"),Qe=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(x)),Ze=et();function et(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=qt(this);for(let t=0,o=this.length;t<o;t++)Ye(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(qt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){je(),Be();const n=qt(this)[t].apply(this,e);return We(),De(),n}})),e}function tt(e){x(e)||(e=String(e));const t=qt(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class nt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(r?o?Lt:Mt:o?Nt:Pt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=v(e);if(!r){if(i&&p(Ze,t))return Reflect.get(Ze,t,n);if("hasOwnProperty"===t)return tt}const a=Reflect.get(e,t,n);return(x(t)?Qe.has(t):Je(t))?a:(r||Ye(e,"get",t),o?a:en(a)?i&&F(t)?a:a.value:C(a)?r?Bt(a):jt(a):a)}}class rt extends nt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){const t=Kt(o);if(Vt(n)||Kt(n)||(o=qt(o),n=qt(n)),!v(e)&&en(o)&&!en(n))return!t&&(o.value=n,!0)}const i=v(e)&&F(t)?Number(t)<e.length:p(e,t),a=Reflect.set(e,t,n,r);return e===qt(r)&&(i?B(n,o)&&$e(e,"set",t,n,o):$e(e,"add",t,n)),a}deleteProperty(e,t){const n=p(e,t),r=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&$e(e,"delete",t,void 0,r),o}has(e,t){const n=Reflect.has(e,t);return x(t)&&Qe.has(t)||Ye(e,"has",t),n}ownKeys(e){return Ye(e,"iterate",v(e)?"length":qe),Reflect.ownKeys(e)}}class ot extends nt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const it=new rt,at=new ot,st=new rt(!0),lt=new ot(!0),ut=e=>e,ct=e=>Reflect.getPrototypeOf(e);function ft(e,t,n=!1,r=!1){e=e["__v_raw"];const o=qt(e),i=qt(t);n||(B(t,i)&&Ye(o,"get",t),Ye(o,"get",i));const{has:a}=ct(o),s=r?ut:n?$t:Yt;return a.call(o,t)?s(e.get(t)):a.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function dt(e,t=!1){const n=this["__v_raw"],r=qt(n),o=qt(e);return t||(B(e,o)&&Ye(r,"has",e),Ye(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ht(e,t=!1){return e=e["__v_raw"],!t&&Ye(qt(e),"iterate",qe),Reflect.get(e,"size",e)}function pt(e,t=!1){t||Vt(e)||Kt(e)||(e=qt(e));const n=qt(this),r=ct(n),o=r.has.call(n,e);return o||(n.add(e),$e(n,"add",e,e)),this}function vt(e,t,n=!1){n||Vt(t)||Kt(t)||(t=qt(t));const r=qt(this),{has:o,get:i}=ct(r);let a=o.call(r,e);a||(e=qt(e),a=o.call(r,e));const s=i.call(r,e);return r.set(e,t),a?B(t,s)&&$e(r,"set",e,t,s):$e(r,"add",e,t),this}function gt(e){const t=qt(this),{has:n,get:r}=ct(t);let o=n.call(t,e);o||(e=qt(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,a=t.delete(e);return o&&$e(t,"delete",e,void 0,i),a}function mt(){const e=qt(this),t=0!==e.size,n=void 0,r=e.clear();return t&&$e(e,"clear",void 0,void 0,n),r}function yt(e,t){return function(n,r){const o=this,i=o["__v_raw"],a=qt(i),s=t?ut:e?$t:Yt;return!e&&Ye(a,"iterate",qe),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function bt(e,t,n){return function(...r){const o=this["__v_raw"],i=qt(o),a=g(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,u=o[e](...r),c=n?ut:t?$t:Yt;return!t&&Ye(i,"iterate",l?Ge:qe),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function wt(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function At(){const e={get(e){return ft(this,e)},get size(){return ht(this)},has:dt,add:pt,set:vt,delete:gt,clear:mt,forEach:yt(!1,!1)},t={get(e){return ft(this,e,!1,!0)},get size(){return ht(this)},has:dt,add(e){return pt.call(this,e,!0)},set(e,t){return vt.call(this,e,t,!0)},delete:gt,clear:mt,forEach:yt(!1,!0)},n={get(e){return ft(this,e,!0)},get size(){return ht(this,!0)},has(e){return dt.call(this,e,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:yt(!0,!1)},r={get(e){return ft(this,e,!0,!0)},get size(){return ht(this,!0)},has(e){return dt.call(this,e,!0)},add:wt("add"),set:wt("set"),delete:wt("delete"),clear:wt("clear"),forEach:yt(!0,!0)},o=["keys","values","entries",Symbol.iterator];return o.forEach((o=>{e[o]=bt(o,!1,!1),n[o]=bt(o,!0,!1),t[o]=bt(o,!1,!0),r[o]=bt(o,!0,!0)})),[e,n,t,r]}const[xt,Ct,St,_t]=At();function kt(e,t){const n=t?e?_t:St:e?Ct:xt;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(p(n,r)&&r in t?n:t,r,o)}const Et={get:kt(!1,!1)},Ot={get:kt(!1,!0)},Ft={get:kt(!0,!1)},Tt={get:kt(!0,!0)};const Pt=new WeakMap,Nt=new WeakMap,Mt=new WeakMap,Lt=new WeakMap;function It(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rt(e){return e["__v_skip"]||!Object.isExtensible(e)?0:It(E(e))}function jt(e){return Kt(e)?e:zt(e,!1,it,Et,Pt)}function Dt(e){return zt(e,!1,st,Ot,Nt)}function Bt(e){return zt(e,!0,at,Ft,Mt)}function Wt(e){return zt(e,!0,lt,Tt,Lt)}function zt(e,t,n,r,o){if(!C(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const i=o.get(e);if(i)return i;const a=Rt(e);if(0===a)return e;const s=new Proxy(e,2===a?r:n);return o.set(e,s),s}function Ut(e){return Kt(e)?Ut(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Kt(e){return!(!e||!e["__v_isReadonly"])}function Vt(e){return!(!e||!e["__v_isShallow"])}function Ht(e){return!!e&&!!e["__v_raw"]}function qt(e){const t=e&&e["__v_raw"];return t?qt(t):e}function Gt(e){return Object.isExtensible(e)&&z(e,"__v_skip",!0),e}const Yt=e=>C(e)?jt(e):e,$t=e=>C(e)?Bt(e):e;class Xt{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this["__v_isReadonly"]=!1,this.effect=new Ee((()=>e(this._value)),(()=>Zt(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this["__v_isReadonly"]=n}get value(){const e=qt(this);return e._cacheable&&!e.effect.dirty||!B(e._value,e._value=e.effect.run())||Zt(e,4),Qt(e),e.effect._dirtyLevel>=2&&Zt(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Jt(e,t,n=!1){let r,o;const i=w(e);i?(r=e,o=s):(r=e.get,o=e.set);const a=new Xt(r,o,i||!o,n);return a}function Qt(e){var t;Le&&Ae&&(e=qt(e),ze(Ae,null!=(t=e.dep)?t:e.dep=Ve((()=>e.dep=void 0),e instanceof Xt?e:void 0),void 0))}function Zt(e,t=4,n,r){e=qt(e);const o=e.dep;o&&Ke(o,t,void 0)}function en(e){return!(!e||!0!==e.__v_isRef)}function tn(e){return rn(e,!1)}function nn(e){return rn(e,!0)}function rn(e,t){return en(e)?e:new on(e,t)}class on{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:qt(e),this._value=t?e:Yt(e)}get value(){return Qt(this),this._value}set value(e){const t=this.__v_isShallow||Vt(e)||Kt(e);if(e=t?e:qt(e),B(e,this._rawValue)){const n=this._rawValue;this._rawValue=e,this._value=t?e:Yt(e),Zt(this,4,e,n)}}}function an(e){Zt(e,4,void 0)}function sn(e){return en(e)?e.value:e}function ln(e){return w(e)?e():sn(e)}const un={get:(e,t,n)=>sn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return en(o)&&!en(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function cn(e){return Ut(e)?e:new Proxy(e,un)}class fn{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Qt(this)),(()=>Zt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function dn(e){return new fn(e)}function hn(e){const t=v(e)?new Array(e.length):{};for(const n in e)t[n]=mn(e,n);return t}class pn{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Xe(qt(this._object),this._key)}}class vn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function gn(e,t,n){return en(e)?e:w(e)?new vn(e):C(e)&&arguments.length>1?mn(e,t,n):tn(e)}function mn(e,t,n){const r=e[t];return en(r)?r:new pn(e,t,n)}const yn={GET:"get",HAS:"has",ITERATE:"iterate"},bn={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function wn(e,t){}const An={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},xn={["sp"]:"serverPrefetch hook",["bc"]:"beforeCreate hook",["c"]:"created hook",["bm"]:"beforeMount hook",["m"]:"mounted hook",["bu"]:"beforeUpdate hook",["u"]:"updated",["bum"]:"beforeUnmount hook",["um"]:"unmounted hook",["a"]:"activated hook",["da"]:"deactivated hook",["ec"]:"errorCaptured hook",["rtc"]:"renderTracked hook",["rtg"]:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush",[15]:"component update"};function Cn(e,t,n,r){try{return r?e(...r):e()}catch(o){_n(o,t,n)}}function Sn(e,t,n,r){if(w(e)){const o=Cn(e,t,n,r);return o&&S(o)&&o.catch((e=>{_n(e,t,n)})),o}if(v(e)){const o=[];for(let i=0;i<e.length;i++)o.push(Sn(e[i],t,n,r));return o}}function _n(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;while(r){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return je(),Cn(a,null,10,[e,o,i]),void De()}kn(e,n,o,r)}function kn(e,t,n,r=!0){0}let En=!1,On=!1;const Fn=[];let Tn=0;const Pn=[];let Nn=null,Mn=0;const Ln=Promise.resolve();let In=null;function Rn(e){const t=In||Ln;return e?t.then(this?e.bind(this):e):t}function jn(e){let t=Tn+1,n=Fn.length;while(t<n){const r=t+n>>>1,o=Fn[r],i=Vn(o);i<e||i===e&&o.pre?t=r+1:n=r}return t}function Dn(e){Fn.length&&Fn.includes(e,En&&e.allowRecurse?Tn+1:Tn)||(null==e.id?Fn.push(e):Fn.splice(jn(e.id),0,e),Bn())}function Bn(){En||On||(On=!0,In=Ln.then(qn))}function Wn(e){const t=Fn.indexOf(e);t>Tn&&Fn.splice(t,1)}function zn(e){v(e)?Pn.push(...e):Nn&&Nn.includes(e,e.allowRecurse?Mn+1:Mn)||Pn.push(e),Bn()}function Un(e,t,n=(En?Tn+1:0)){for(0;n<Fn.length;n++){const t=Fn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;0,Fn.splice(n,1),n--,t()}}}function Kn(e){if(Pn.length){const e=[...new Set(Pn)].sort(((e,t)=>Vn(e)-Vn(t)));if(Pn.length=0,Nn)return void Nn.push(...e);for(Nn=e,Mn=0;Mn<Nn.length;Mn++){const e=Nn[Mn];0,!1!==e.active&&e()}Nn=null,Mn=0}}const Vn=e=>null==e.id?1/0:e.id,Hn=(e,t)=>{const n=Vn(e)-Vn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qn(e){On=!1,En=!0,Fn.sort(Hn);try{for(Tn=0;Tn<Fn.length;Tn++){const e=Fn[Tn];e&&!1!==e.active&&Cn(e,e.i,e.i?15:14)}}finally{Tn=0,Fn.length=0,Kn(e),En=!1,In=null,(Fn.length||Pn.length)&&qn(e)}}let Gn,Yn=[],$n=!1;function Xn(e,t){var n,r;if(Gn=e,Gn)Gn.enabled=!0,Yn.forEach((({event:e,args:t})=>Gn.emit(e,...t))),Yn=[];else if("undefined"!==typeof window&&window.HTMLElement&&!(null==(r=null==(n=window.navigator)?void 0:n.userAgent)?void 0:r.includes("jsdom"))){const e=t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[];e.push((e=>{Xn(e,t)})),setTimeout((()=>{Gn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$n=!0,Yn=[])}),3e3)}else $n=!0,Yn=[]}let Jn=null,Qn=null;function Zn(e){const t=Jn;return Jn=e,Qn=e&&e.type.__scopeId||null,t}function er(e){Qn=e}function tr(){Qn=null}const nr=e=>rr;function rr(e,t=Jn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&ja(-1);const o=Zn(t);let i;try{i=e(...n)}finally{Zn(o),r._d&&ja(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function or(e,t){if(null===Jn)return e;const n=ks(Jn),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[e,a,s,l=i]=t[o];e&&(w(e)&&(e={mounted:e,updated:e}),e.deep&&ea(a),r.push({dir:e,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function ir(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[r];l&&(je(),Sn(l,n,8,[e.el,s,e,t]),De())}}const ar=Symbol("_leaveCb"),sr=Symbol("_enterCb");function lr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jr((()=>{e.isMounted=!0})),Wr((()=>{e.isUnmounting=!0})),e}const ur=[Function,Array],cr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},fr=e=>{const t=e.subTree;return t.component?fr(t.component):t},dr={name:"BaseTransition",props:cr,setup(e,{slots:t}){const n=us(),r=lr();return()=>{const o=t.default&&br(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){let e=!1;for(const t of o)if(t.type!==Fa){0,i=t,e=!0;break}}const a=qt(e),{mode:s}=a;if(r.isLeaving)return gr(i);const l=mr(i);if(!l)return gr(i);let u=vr(l,a,r,n,(e=>u=e));yr(l,u);const c=n.subTree,f=c&&mr(c);if(f&&f.type!==Fa&&!Ua(l,f)&&fr(n).type!==Fa){const e=vr(f,a,r,n);if(yr(f,e),"out-in"===s&&l.type!==Fa)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},gr(i);"in-out"===s&&l.type!==Fa&&(e.delayLeave=(e,t,n)=>{const o=pr(r,f);o[String(f.key)]=f,e[ar]=()=>{t(),e[ar]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return i}}},hr=dr;function pr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function vr(e,t,n,r,o){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,A=String(e.key),x=pr(n,e),C=(e,t)=>{e&&Sn(e,r,9,t)},S=(e,t)=>{const n=t[1];C(e,t),v(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},_={mode:a,persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(!i)return;r=m||l}t[ar]&&t[ar](!0);const o=x[A];o&&Ua(e,o)&&o.el[ar]&&o.el[ar](),C(r,[t])},enter(e){let t=u,r=c,o=f;if(!n.isMounted){if(!i)return;t=y||u,r=b||c,o=w||f}let a=!1;const s=e[sr]=t=>{a||(a=!0,C(t?o:r,[e]),_.delayedLeave&&_.delayedLeave(),e[sr]=void 0)};t?S(t,[e,s]):s()},leave(t,r){const o=String(e.key);if(t[sr]&&t[sr](!0),n.isUnmounting)return r();C(d,[t]);let i=!1;const a=t[ar]=n=>{i||(i=!0,r(),C(n?g:p,[t]),t[ar]=void 0,x[o]===e&&delete x[o])};x[o]=e,h?S(h,[t,a]):a()},clone(e){const i=vr(e,t,n,r,o);return o&&o(i),i}};return _}function gr(e){if(Sr(e))return e=Xa(e),e.children=null,e}function mr(e){if(!Sr(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&w(n.default))return n.default()}}function yr(e,t){6&e.shapeFlag&&e.component?yr(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function br(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:i);a.type===Ea?(128&a.patchFlag&&o++,r=r.concat(br(a.children,t,s))):(t||a.type!==Fa)&&r.push(null!=s?Xa(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}
/*! #__NO_SIDE_EFFECTS__ */function wr(e,t){return w(e)?(()=>f({name:e.name},t,{setup:e}))():e}const Ar=e=>!!e.type.__asyncLoader
/*! #__NO_SIDE_EFFECTS__ */;function xr(e){w(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!0,onError:s}=e;let l,u=null,c=0;const f=()=>(c++,u=null,d()),d=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{const r=()=>t(f()),o=()=>n(e);s(e,r,o,c+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return wr({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=ls;if(l)return()=>Cr(l,e);const t=t=>{u=null,_n(t,e,13,!r)};if(a&&e.suspense||ms)return d().then((t=>()=>Cr(t,e))).catch((e=>(t(e),()=>r?Ga(r,{error:e}):null)));const s=tn(!1),c=tn(),f=tn(!!o);return o&&setTimeout((()=>{f.value=!1}),o),null!=i&&setTimeout((()=>{if(!s.value&&!c.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),c.value=e}}),i),d().then((()=>{s.value=!0,e.parent&&Sr(e.parent.vnode)&&(e.parent.effect.dirty=!0,Dn(e.parent.update))})).catch((e=>{t(e),c.value=e})),()=>s.value&&l?Cr(l,e):c.value&&r?Ga(r,{error:c.value}):n&&!f.value?Ga(n):void 0}})}function Cr(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=Ga(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const Sr=e=>e.type.__isKeepAlive,_r={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=us(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,i=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");function h(e){Nr(e),c(e,n,s,!0)}function p(e){o.forEach(((t,n)=>{const r=Es(t.type);!r||e&&e(r)||v(n)}))}function v(e){const t=o.get(e);!t||a&&Ua(t,a)?a&&Nr(a):h(t),o.delete(e),i.delete(e)}r.activate=(e,t,n,r,o)=>{const i=e.component;u(e,t,n,0,s),l(i.vnode,e,t,n,i,s,r,e.slotScopeIds,o),Mi((()=>{i.isDeactivated=!1,i.a&&W(i.a);const t=e.props&&e.props.onVnodeMounted;t&&os(t,i.parent,e)}),s)},r.deactivate=e=>{const t=e.component;Ki(t.m),Ki(t.a),u(e,d,null,1,s),Mi((()=>{t.da&&W(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&os(n,t.parent,e),t.isDeactivated=!0}),s)},Xi((()=>[e.include,e.exclude]),(([e,t])=>{e&&p((t=>Er(e,t))),t&&p((e=>!Er(t,e)))}),{flush:"post",deep:!0});let g=null;const m=()=>{null!=g&&(ha(n.subTree.type)?Mi((()=>{o.set(g,Mr(n.subTree))}),n.subTree.suspense):o.set(g,Mr(n.subTree)))};return jr(m),Br(m),Wr((()=>{o.forEach((e=>{const{subTree:t,suspense:r}=n,o=Mr(t);if(e.type!==o.type||e.key!==o.key)h(e);else{Nr(o);const e=o.component.da;e&&Mi(e,r)}}))})),()=>{if(g=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!za(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return a=null,r;let s=Mr(r);if(s.type===Fa)return a=null,s;const l=s.type,u=Es(Ar(s)?s.type.__asyncResolved||{}:l),{include:c,exclude:f,max:d}=e;if(c&&(!u||!Er(c,u))||f&&u&&Er(f,u))return a=s,r;const h=null==s.key?l:s.key,p=o.get(h);return s.el&&(s=Xa(s),128&r.shapeFlag&&(r.ssContent=s)),g=h,p?(s.el=p.el,s.component=p.component,s.transition&&yr(s,s.transition),s.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),d&&i.size>parseInt(d,10)&&v(i.values().next().value)),s.shapeFlag|=256,a=s,ha(r.type)?r:s}}},kr=_r;function Er(e,t){return v(e)?e.some((e=>Er(e,t))):A(e)?e.split(",").includes(t):!!b(e)&&e.test(t)}function Or(e,t){Tr(e,"a",t)}function Fr(e,t){Tr(e,"da",t)}function Tr(e,t,n=ls){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Lr(t,r,n),n){let e=n.parent;while(e&&e.parent)Sr(e.parent.vnode)&&Pr(r,t,n,e),e=e.parent}}function Pr(e,t,n,r){const o=Lr(t,e,r,!0);zr((()=>{d(r[t],o)}),n)}function Nr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Mr(e){return 128&e.shapeFlag?e.ssContent:e}function Lr(e,t,n=ls,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{je();const o=ds(n),i=Sn(t,n,e,r);return o(),De(),i});return r?o.unshift(i):o.push(i),i}}const Ir=e=>(t,n=ls)=>{ms&&"sp"!==e||Lr(e,((...e)=>t(...e)),n)},Rr=Ir("bm"),jr=Ir("m"),Dr=Ir("bu"),Br=Ir("u"),Wr=Ir("bum"),zr=Ir("um"),Ur=Ir("sp"),Kr=Ir("rtg"),Vr=Ir("rtc");function Hr(e,t=ls){Lr("ec",e,t)}const qr="components",Gr="directives";function Yr(e,t){return Qr(qr,e,!0,t)||e}const $r=Symbol.for("v-ndc");function Xr(e){return A(e)?Qr(qr,e,!1)||e:e||$r}function Jr(e){return Qr(Gr,e)}function Qr(e,t,n=!0,r=!1){const o=Jn||ls;if(o){const n=o.type;if(e===qr){const e=Es(n,!1);if(e&&(e===t||e===L(t)||e===j(L(t))))return n}const i=Zr(o[e]||n[e],t)||Zr(o.appContext[e],t);return!i&&r?n:i}}function Zr(e,t){return e&&(e[t]||e[L(t)]||e[j(L(t))])}function eo(e,t,n,r){let o;const i=n&&n[r];if(v(e)||A(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i&&i[n])}else if("number"===typeof e){0,o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i&&i[n])}else if(C(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];o[r]=t(e[a],a,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}function to(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(v(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function no(e,t,n={},r,o){if(Jn.isCE||Jn.parent&&Ar(Jn.parent)&&Jn.parent.isCE)return"default"!==t&&(n.name=t),Ga("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Ma();const a=i&&ro(i(n)),s=Wa(Ea,{key:(n.key||a&&a.key||`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function ro(e){return e.some((e=>!za(e)||e.type!==Fa&&!(e.type===Ea&&!ro(e.children))))?e:null}function oo(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:D(r)]=e[r];return n}const io=e=>e?ps(e)?ks(e):io(e.parent):null,ao=f(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>io(e.parent),$root:e=>io(e.root),$emit:e=>e.emit,$options:e=>Po(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Dn(e.update)}),$nextTick:e=>e.n||(e.n=Rn.bind(e.proxy)),$watch:e=>Qi.bind(e)}),so=(e,t)=>e!==i&&!e.__isScriptSetup&&p(e,t),lo={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:o,props:a,accessCache:s,type:l,appContext:u}=e;let c;if("$"!==t[0]){const l=s[t];if(void 0!==l)switch(l){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return a[t]}else{if(so(r,t))return s[t]=1,r[t];if(o!==i&&p(o,t))return s[t]=2,o[t];if((c=e.propsOptions[0])&&p(c,t))return s[t]=3,a[t];if(n!==i&&p(n,t))return s[t]=4,n[t];ko&&(s[t]=0)}}const f=ao[t];let d,h;return f?("$attrs"===t&&Ye(e.attrs,"get",""),f(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==i&&p(n,t)?(s[t]=4,n[t]):(h=u.config.globalProperties,p(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return so(o,t)?(o[t]=n,!0):r!==i&&p(r,t)?(r[t]=n,!0):!p(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:a}},s){let l;return!!n[s]||e!==i&&p(e,s)||so(t,s)||(l=a[0])&&p(l,s)||p(r,s)||p(ao,s)||p(o.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};const uo=f({},lo,{get(e,t){if(t!==Symbol.unscopables)return lo.get(e,t,e)},has(e,t){const n="_"!==t[0]&&!Y(t);return n}});function co(){return null}function fo(){return null}function ho(e){0}function po(e){0}function vo(){return null}function go(){0}function mo(e,t){return null}function yo(){return wo().slots}function bo(){return wo().attrs}function wo(){const e=us();return e.setupContext||(e.setupContext=_s(e))}function Ao(e){return v(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function xo(e,t){const n=Ao(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?v(e)||w(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n}function Co(e,t){return e&&t?v(e)&&v(t)?e.concat(t):f({},Ao(e),Ao(t)):e||t}function So(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function _o(e){const t=us();let n=e();return hs(),S(n)&&(n=n.catch((e=>{throw ds(t),e}))),[n,()=>ds(t)]}let ko=!0;function Eo(e){const t=Po(e),n=e.proxy,r=e.ctx;ko=!1,t.beforeCreate&&Fo(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:l,provide:u,inject:c,created:f,beforeMount:d,mounted:h,beforeUpdate:p,updated:g,activated:m,deactivated:y,beforeDestroy:b,beforeUnmount:A,destroyed:x,unmounted:S,render:_,renderTracked:k,renderTriggered:E,errorCaptured:O,serverPrefetch:F,expose:T,inheritAttrs:P,components:N,directives:M,filters:L}=t,I=null;if(c&&Oo(c,r,I),a)for(const s in a){const e=a[s];w(e)&&(r[s]=e.bind(n))}if(o){0;const t=o.call(n,n);0,C(t)&&(e.data=jt(t))}if(ko=!0,i)for(const v in i){const e=i[v],t=w(e)?e.bind(n,n):w(e.get)?e.get.bind(n,n):s;0;const o=!w(e)&&w(e.set)?e.set.bind(n):s,a=Fs({get:t,set:o});Object.defineProperty(r,v,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(l)for(const s in l)To(l[s],r,n,s);if(u){const e=w(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{Ho(t,e[t])}))}function R(e,t){v(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&Fo(f,e,"c"),R(Rr,d),R(jr,h),R(Dr,p),R(Br,g),R(Or,m),R(Fr,y),R(Hr,O),R(Vr,k),R(Kr,E),R(Wr,A),R(zr,S),R(Ur,F),v(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});_&&e.render===s&&(e.render=_),null!=P&&(e.inheritAttrs=P),N&&(e.components=N),M&&(e.directives=M)}function Oo(e,t,n=s){v(e)&&(e=Ro(e));for(const r in e){const n=e[r];let o;o=C(n)?"default"in n?qo(n.from||r,n.default,!0):qo(n.from||r):qo(n),en(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[r]=o}}function Fo(e,t,n){Sn(v(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function To(e,t,n,r){const o=r.includes(".")?Zi(n,r):()=>n[r];if(A(e)){const n=t[e];w(n)&&Xi(o,n)}else if(w(e))Xi(o,e.bind(n));else if(C(e))if(v(e))e.forEach((e=>To(e,t,n,r)));else{const r=w(e.handler)?e.handler.bind(n):t[e.handler];w(r)&&Xi(o,r,e)}else 0}function Po(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:o.length||n||r?(l={},o.length&&o.forEach((e=>No(l,e,a,!0))),No(l,t,a)):l=t,C(t)&&i.set(t,l),l}function No(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&No(e,i,n,!0),o&&o.forEach((t=>No(e,t,n,!0)));for(const a in t)if(r&&"expose"===a);else{const r=Mo[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Mo={data:Lo,props:Bo,emits:Bo,methods:Do,computed:Do,beforeCreate:jo,created:jo,beforeMount:jo,mounted:jo,beforeUpdate:jo,updated:jo,beforeDestroy:jo,beforeUnmount:jo,destroyed:jo,unmounted:jo,activated:jo,deactivated:jo,errorCaptured:jo,serverPrefetch:jo,components:Do,directives:Do,watch:Wo,provide:Lo,inject:Io};function Lo(e,t){return t?e?function(){return f(w(e)?e.call(this,this):e,w(t)?t.call(this,this):t)}:t:e}function Io(e,t){return Do(Ro(e),Ro(t))}function Ro(e){if(v(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function jo(e,t){return e?[...new Set([].concat(e,t))]:t}function Do(e,t){return e?f(Object.create(null),e,t):t}function Bo(e,t){return e?v(e)&&v(t)?[...new Set([...e,...t])]:f(Object.create(null),Ao(e),Ao(null!=t?t:{})):t}function Wo(e,t){if(!e)return t;if(!t)return e;const n=f(Object.create(null),e);for(const r in t)n[r]=jo(e[r],t[r]);return n}function zo(){return{app:null,config:{isNativeTag:l,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Uo=0;function Ko(e,t){return function(n,r=null){w(n)||(n=f({},n)),null==r||C(r)||(r=null);const o=zo(),i=new WeakSet;let a=!1;const s=o.app={_uid:Uo++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:Ls,get config(){return o.config},set config(e){0},use(e,...t){return i.has(e)||(e&&w(e.install)?(i.add(e),e.install(s,...t)):w(e)&&(i.add(e),e(s,...t))),s},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),s},component(e,t){return t?(o.components[e]=t,s):o.components[e]},directive(e,t){return t?(o.directives[e]=t,s):o.directives[e]},mount(i,l,u){if(!a){0;const c=Ga(n,r);return c.appContext=o,!0===u?u="svg":!1===u&&(u=void 0),l&&t?t(c,i):e(c,i,u),a=!0,s._container=i,i.__vue_app__=s,ks(c.component)}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide(e,t){return o.provides[e]=t,s},runWithContext(e){const t=Vo;Vo=s;try{return e()}finally{Vo=t}}};return s}}let Vo=null;function Ho(e,t){if(ls){let n=ls.provides;const r=ls.parent&&ls.parent.provides;r===n&&(n=ls.provides=Object.create(r)),n[e]=t}else 0}function qo(e,t,n=!1){const r=ls||Jn;if(r||Vo){const o=Vo?Vo._context.provides:r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&w(t)?t.call(r&&r.proxy):t}else 0}function Go(){return!!(ls||Jn||Vo)}const Yo={},$o=()=>Object.create(Yo),Xo=e=>Object.getPrototypeOf(e)===Yo;function Jo(e,t,n,r=!1){const o={},i=$o();e.propsDefaults=Object.create(null),Zo(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=r?o:Dt(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Qo(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=qt(o),[l]=e.propsOptions;let u=!1;if(!(r||a>0)||16&a){let r;Zo(e,t,o,i)&&(u=!0);for(const i in s)t&&(p(t,i)||(r=R(i))!==i&&p(t,r))||(l?!n||void 0===n[i]&&void 0===n[r]||(o[i]=ei(l,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&p(t,e)||(delete i[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(ia(e.emitsOptions,a))continue;const c=t[a];if(l)if(p(i,a))c!==i[a]&&(i[a]=c,u=!0);else{const t=L(a);o[t]=ei(l,s,t,c,e,!1)}else c!==i[a]&&(i[a]=c,u=!0)}}u&&$e(e.attrs,"set","")}function Zo(e,t,n,r){const[o,a]=e.propsOptions;let s,l=!1;if(t)for(let i in t){if(T(i))continue;const u=t[i];let c;o&&p(o,c=L(i))?a&&a.includes(c)?(s||(s={}))[c]=u:n[c]=u:ia(e.emitsOptions,i)||i in r&&u===r[i]||(r[i]=u,l=!0)}if(a){const t=qt(n),r=s||i;for(let i=0;i<a.length;i++){const s=a[i];n[s]=ei(o,t,s,r[s],e,!p(r,s))}}return l}function ei(e,t,n,r,o,i){const a=e[n];if(null!=a){const e=p(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&w(e)){const{propsDefaults:i}=o;if(n in i)r=i[n];else{const a=ds(o);r=i[n]=e.call(null,t),a()}}else r=e}a[0]&&(i&&!e?r=!1:!a[1]||""!==r&&r!==R(n)||(r=!0))}return r}const ti=new WeakMap;function ni(e,t,n=!1){const r=n?ti:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,l={},u=[];let c=!1;if(!w(e)){const r=e=>{c=!0;const[n,r]=ni(e,t,!0);f(l,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!c)return C(e)&&r.set(e,a),a;if(v(s))for(let a=0;a<s.length;a++){0;const e=L(s[a]);ri(e)&&(l[e]=i)}else if(s){0;for(const e in s){const t=L(e);if(ri(t)){const n=s[e],r=l[t]=v(n)||w(n)?{type:n}:f({},n),o=r.type;let i=!1,a=!0;if(v(o))for(let e=0;e<o.length;++e){const t=o[e],n=w(t)&&t.name;if("Boolean"===n){i=!0;break}"String"===n&&(a=!1)}else i=w(o)&&"Boolean"===o.name;r[0]=i,r[1]=a,(i||p(r,"default"))&&u.push(t)}}}const d=[l,u];return C(e)&&r.set(e,d),d}function ri(e){return"$"!==e[0]&&!T(e)}const oi=e=>"_"===e[0]||"$stable"===e,ii=e=>v(e)?e.map(es):[es(e)],ai=(e,t,n)=>{if(t._n)return t;const r=rr(((...e)=>ii(t(...e))),n);return r._c=!1,r},si=(e,t,n)=>{const r=e._ctx;for(const o in e){if(oi(o))continue;const n=e[o];if(w(n))t[o]=ai(o,n,r);else if(null!=n){0;const e=ii(n);t[o]=()=>e}}},li=(e,t)=>{const n=ii(t);e.slots.default=()=>n},ui=(e,t,n)=>{for(const r in t)(n||"_"!==r)&&(e[r]=t[r])},ci=(e,t,n)=>{const r=e.slots=$o();if(32&e.vnode.shapeFlag){const e=t._;e?(ui(r,t,n),n&&z(r,"_",e,!0)):si(t,r)}else t&&li(e,t)},fi=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=i;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:ui(o,t,n):(a=!t.$stable,si(t,o)),s=t}else t&&(li(e,t),s={default:1});if(a)for(const i in o)oi(i)||null!=s[i]||delete o[i]};function di(e,t,n,r,o=!1){if(v(e))return void e.forEach(((e,i)=>di(e,t&&(v(t)?t[i]:t),n,r,o)));if(Ar(r)&&!o)return;const a=4&r.shapeFlag?ks(r.component):r.el,s=o?null:a,{i:l,r:u}=e;const c=t&&t.r,f=l.refs===i?l.refs={}:l.refs,h=l.setupState;if(null!=c&&c!==u&&(A(c)?(f[c]=null,p(h,c)&&(h[c]=null)):en(c)&&(c.value=null)),w(u))Cn(u,l,12,[s,f]);else{const t=A(u),r=en(u);if(t||r){const i=()=>{if(e.f){const n=t?p(h,u)?h[u]:f[u]:u.value;o?v(n)&&d(n,a):v(n)?n.includes(a)||n.push(a):t?(f[u]=[a],p(h,u)&&(h[u]=f[u])):(u.value=[a],e.k&&(f[e.k]=u.value))}else t?(f[u]=s,p(h,u)&&(h[u]=s)):r&&(u.value=s,e.k&&(f[e.k]=s))};s?(i.id=-1,Mi(i,n)):i()}else 0}}const hi=Symbol("_vte"),pi=e=>e.__isTeleport,vi=e=>e&&(e.disabled||""===e.disabled),gi=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,mi=e=>"function"===typeof MathMLElement&&e instanceof MathMLElement,yi=(e,t)=>{const n=e&&e.to;if(A(n)){if(t){const e=t(n);return e}return null}return n},bi={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,m=vi(t.props);let{shapeFlag:y,children:b,dynamicChildren:w}=t;if(null==e){const e=t.el=v(""),u=t.anchor=v("");h(e,n,r),h(u,n,r);const f=t.target=yi(t.props,p),d=Si(f,t,v,h);f&&("svg"===a||gi(f)?a="svg":("mathml"===a||mi(f))&&(a="mathml"));const g=(e,t)=>{16&y&&c(b,e,t,o,i,a,s,l)};m?g(n,u):f&&g(f,d)}else{t.el=e.el,t.targetStart=e.targetStart;const r=t.anchor=e.anchor,c=t.target=e.target,h=t.targetAnchor=e.targetAnchor,v=vi(e.props),g=v?n:c,y=v?r:h;if("svg"===a||gi(c)?a="svg":("mathml"===a||mi(c))&&(a="mathml"),w?(d(e.dynamicChildren,w,g,o,i,a,s),Wi(e,t,!0)):l||f(e,t,g,y,o,i,a,s,!1),m)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):wi(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=yi(t.props,p);e&&wi(t,e,null,u,0)}else v&&wi(t,c,h,u,1)}Ci(t)},remove(e,t,n,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(o(u),o(c)),i&&o(l),16&a){const e=i||!vi(d);for(let o=0;o<s.length;o++){const i=s[o];r(i,t,n,e,!!i.dynamicChildren)}}},move:wi,hydrate:Ai};function wi(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,f=2===i;if(f&&r(a,t,n),(!f||vi(c))&&16&l)for(let d=0;d<u.length;d++)o(u[d],t,n,2);f&&r(s,t,n)}function Ai(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:c}},f){const d=t.target=yi(t.props,l);if(d){const l=d._lpa||d.firstChild;if(16&t.shapeFlag)if(vi(t.props))t.anchor=f(a(e),t,s(e),n,r,o,i),t.targetStart=l,t.targetAnchor=l&&a(l);else{t.anchor=a(e);let s=l;while(s){if(s&&8===s.nodeType)if("teleport start anchor"===s.data)t.targetStart=s;else if("teleport anchor"===s.data){t.targetAnchor=s,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}s=a(s)}t.targetAnchor||Si(d,t,c,u),f(l&&a(l),t,d,n,r,o,i)}Ci(t)}return t.anchor&&a(t.anchor)}const xi=bi;function Ci(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;while(n&&n!==e.targetAnchor)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function Si(e,t,n,r){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[hi]=i,e&&(r(o,e),r(i,e)),i}let _i=!1;const ki=()=>{_i||(_i=!0)},Ei=e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName,Oi=e=>e.namespaceURI.includes("MathML"),Fi=e=>Ei(e)?"svg":Oi(e)?"mathml":void 0,Ti=e=>8===e.nodeType;function Pi(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:i,parentNode:a,remove:s,insert:l,createComment:c}}=e,f=(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Kn(),void(t._vnode=e);d(t.firstChild,e,null,null,null),Kn(),t._vnode=e},d=(n,r,s,u,c,f=!1)=>{f=f||!!r.dynamicChildren;const w=Ti(n)&&"["===n.data,A=()=>g(n,r,s,u,c,w),{type:x,ref:C,shapeFlag:S,patchFlag:_}=r;let k=n.nodeType;r.el=n,-2===_&&(f=!1,r.dynamicChildren=null);let E=null;switch(x){case Oa:3!==k?""===r.children?(l(r.el=o(""),a(n),n),E=n):E=A():(n.data!==r.children&&(ki(),n.data=r.children),E=i(n));break;case Fa:b(n)?(E=i(n),y(r.el=n.content.firstChild,n,s)):E=8!==k||w?A():i(n);break;case Ta:if(w&&(n=i(n),k=n.nodeType),1===k||3===k){E=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===E.nodeType?E.outerHTML:E.data),t===r.staticCount-1&&(r.anchor=E),E=i(E);return w?i(E):E}A();break;case Ea:E=w?v(n,r,s,u,c,f):A();break;default:if(1&S)E=1===k&&r.type.toLowerCase()===n.tagName.toLowerCase()||b(n)?h(n,r,s,u,c,f):A();else if(6&S){r.slotScopeIds=c;const e=a(n);if(E=w?m(n):Ti(n)&&"teleport start"===n.data?m(n,n.data,"teleport end"):i(n),t(r,e,null,s,u,Fi(e),f),Ar(r)){let t;w?(t=Ga(Ea),t.anchor=E?E.previousSibling:e.lastChild):t=3===n.nodeType?Ja(""):Ga("div"),t.el=n,r.component.subTree=t}}else 64&S?E=8!==k?A():r.type.hydrate(n,r,s,u,c,f,e,p):128&S&&(E=r.type.hydrate(n,r,s,u,Fi(a(n)),c,f,e,d))}return null!=C&&di(C,null,u,r),E},h=(e,t,n,o,i,a)=>{a=a||!!t.dynamicChildren;const{type:l,props:c,patchFlag:f,shapeFlag:d,dirs:h,transition:v}=t,g="input"===l||"option"===l;if(g||-1!==f){h&&ir(t,null,n,"created");let l,m=!1;if(b(e)){m=Bi(o,v)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;m&&v.beforeEnter(r),y(r,e,n),t.el=e=r}if(16&d&&(!c||!c.innerHTML&&!c.textContent)){let r=p(e.firstChild,t,e,n,o,i,a);while(r){0,ki();const e=r;r=r.nextSibling,s(e)}}else 8&d&&e.textContent!==t.children&&(ki(),e.textContent=t.children);if(c)if(g||!a||48&f){const t=e.tagName.includes("-");for(const o in c)(g&&(o.endsWith("value")||"indeterminate"===o)||u(o)&&!T(o)||"."===o[0]||t)&&r(e,o,null,c[o],void 0,n)}else if(c.onClick)r(e,"onClick",null,c.onClick,void 0,n);else if(4&f&&Ut(c.style))for(const e in c.style)c.style[e];(l=c&&c.onVnodeBeforeMount)&&os(l,n,t),h&&ir(t,null,n,"beforeMount"),((l=c&&c.onVnodeMounted)||h||m)&&Sa((()=>{l&&os(l,n,t),m&&v.enter(e),h&&ir(t,null,n,"mounted")}),o)}return e.nextSibling},p=(e,t,r,a,s,u,c)=>{c=c||!!t.dynamicChildren;const f=t.children,h=f.length;for(let p=0;p<h;p++){const t=c?f[p]:f[p]=es(f[p]),h=t.type===Oa;if(e){if(h&&!c){let n=f[p+1];n&&(n=es(n)).type===Oa&&(l(o(e.data.slice(t.children.length)),r,i(e)),e.data=t.children)}e=d(e,t,a,s,u,c)}else h&&!t.children?l(t.el=o(""),r):(ki(),n(null,t,r,null,a,s,Fi(r),u))}return e},v=(e,t,n,r,o,s)=>{const{slotScopeIds:u}=t;u&&(o=o?o.concat(u):u);const f=a(e),d=p(i(e),t,f,n,r,o,s);return d&&Ti(d)&&"]"===d.data?i(t.anchor=d):(ki(),l(t.anchor=c("]"),f,d),d)},g=(e,t,r,o,l,u)=>{if(ki(),t.el=null,u){const t=m(e);while(1){const n=i(e);if(!n||n===t)break;s(n)}}const c=i(e),f=a(e);return s(e),n(null,t,f,c,r,o,Fi(f),l),c},m=(e,t="[",n="]")=>{let r=0;while(e)if(e=i(e),e&&Ti(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return i(e);r--}return e},y=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;while(o)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},b=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[f,d]}function Ni(){}const Mi=Sa;function Li(e){return Ri(e)}function Ii(e){return Ri(e,Pi)}function Ri(e,t){Ni();const n=H();n.__VUE__=!0;const{insert:r,remove:o,patchProp:l,createElement:u,createText:c,createComment:f,setText:d,setElementText:h,parentNode:p,nextSibling:v,setScopeId:g=s,insertStaticContent:m}=e,y=(e,t,n,r=null,o=null,i=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ua(e,t)&&(r=$(e),K(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:f}=t;switch(u){case Oa:b(e,t,n,r);break;case Fa:w(e,t,n,r);break;case Ta:null==e&&A(t,n,r,a);break;case Ea:N(e,t,n,r,o,i,a,s,l);break;default:1&f?S(e,t,n,r,o,i,a,s,l):6&f?M(e,t,n,r,o,i,a,s,l):(64&f||128&f)&&u.process(e,t,n,r,o,i,a,s,l,Q)}null!=c&&o&&di(c,e&&e.ref,i,t||e,!t)},b=(e,t,n,o)=>{if(null==e)r(t.el=c(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,o)=>{null==e?r(t.el=f(t.children||""),n,o):t.el=e.el},A=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},x=({el:e,anchor:t},n,o)=>{let i;while(e&&e!==t)i=v(e),r(e,n,o),e=i;r(t,n,o)},C=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=v(e),o(e),e=n;o(t)},S=(e,t,n,r,o,i,a,s,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?_(t,n,r,o,i,a,s,l):O(e,t,o,i,a,s,l)},_=(e,t,n,o,i,a,s,c)=>{let f,d;const{props:p,shapeFlag:v,transition:g,dirs:m}=e;if(f=e.el=u(e.type,a,p&&p.is,p),8&v?h(f,e.children):16&v&&E(e.children,f,null,o,i,ji(e,a),s,c),m&&ir(e,null,o,"created"),k(f,e,e.scopeId,s,o),p){for(const e in p)"value"===e||T(e)||l(f,e,null,p[e],a,o);"value"in p&&l(f,"value",null,p.value,a),(d=p.onVnodeBeforeMount)&&os(d,o,e)}m&&ir(e,null,o,"beforeMount");const y=Bi(i,g);y&&g.beforeEnter(f),r(f,t,n),((d=p&&p.onVnodeMounted)||y||m)&&Mi((()=>{d&&os(d,o,e),y&&g.enter(f),m&&ir(e,null,o,"mounted")}),i)},k=(e,t,n,r,o)=>{if(n&&g(e,n),r)for(let i=0;i<r.length;i++)g(e,r[i]);if(o){let n=o.subTree;if(t===n){const t=o.vnode;k(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},E=(e,t,n,r,o,i,a,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?ts(e[u]):es(e[u]);y(null,l,t,n,r,o,i,a,s)}},O=(e,t,n,r,o,a,s)=>{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:f,dirs:d}=t;c|=16&e.patchFlag;const p=e.props||i,v=t.props||i;let g;if(n&&Di(n,!1),(g=v.onVnodeBeforeUpdate)&&os(g,n,t,e),d&&ir(t,e,n,"beforeUpdate"),n&&Di(n,!0),(p.innerHTML&&null==v.innerHTML||p.textContent&&null==v.textContent)&&h(u,""),f?F(e.dynamicChildren,f,u,n,r,ji(t,o),a):s||D(e,t,u,null,n,r,ji(t,o),a,!1),c>0){if(16&c)P(u,p,v,n,o);else if(2&c&&p.class!==v.class&&l(u,"class",null,v.class,o),4&c&&l(u,"style",p.style,v.style,o),8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],i=p[r],a=v[r];a===i&&"value"!==r||l(u,r,i,a,o,n)}}1&c&&e.children!==t.children&&h(u,t.children)}else s||null!=f||P(u,p,v,n,o);((g=v.onVnodeUpdated)||d)&&Mi((()=>{g&&os(g,n,t,e),d&&ir(t,e,n,"updated")}),r)},F=(e,t,n,r,o,i,a)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===Ea||!Ua(l,u)||70&l.shapeFlag)?p(l.el):n;y(l,u,c,null,r,o,i,a,!0)}},P=(e,t,n,r,o)=>{if(t!==n){if(t!==i)for(const i in t)T(i)||i in n||l(e,i,t[i],null,o,r);for(const i in n){if(T(i))continue;const a=n[i],s=t[i];a!==s&&"value"!==i&&l(e,i,s,a,o,r)}"value"in n&&l(e,"value",t.value,n.value,o)}},N=(e,t,n,o,i,a,s,l,u)=>{const f=t.el=e?e.el:c(""),d=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:p,slotScopeIds:v}=t;v&&(l=l?l.concat(v):v),null==e?(r(f,n,o),r(d,n,o),E(t.children||[],n,d,i,a,s,l,u)):h>0&&64&h&&p&&e.dynamicChildren?(F(e.dynamicChildren,p,n,i,a,s,l),(null!=t.key||i&&t===i.subTree)&&Wi(e,t,!0)):D(e,t,n,d,i,a,s,l,u)},M=(e,t,n,r,o,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,l):L(t,n,r,o,i,a,l):I(e,t,l)},L=(e,t,n,r,o,i,a)=>{const s=e.component=ss(e,r,o);if(Sr(e)&&(s.ctx.renderer=Q),ys(s,!1,a),s.asyncDep){if(o&&o.registerDep(s,R,a),!e.el){const e=s.subTree=Ga(Fa);w(null,e,t,n)}}else R(s,e,t,n,o,i,a)},I=(e,t,n)=>{const r=t.component=e.component;if(ca(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void j(r,t,n);r.next=t,Wn(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},R=(e,t,n,r,o,i,a)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:u}=e;{const n=Ui(e);if(n)return t&&(t.el=u.el,j(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let c,f=t;0,Di(e,!1),t?(t.el=u.el,j(e,t,a)):t=u,n&&W(n),(c=t.props&&t.props.onVnodeBeforeUpdate)&&os(c,s,t,u),Di(e,!0);const d=aa(e);0;const h=e.subTree;e.subTree=d,y(h,d,p(h.el),$(h),e,o,i),t.el=d.el,null===f&&da(e,d.el),r&&Mi(r,o),(c=t.props&&t.props.onVnodeUpdated)&&Mi((()=>os(c,s,t,u)),o)}else{let a;const{el:s,props:l}=t,{bm:u,m:c,parent:f}=e,d=Ar(t);if(Di(e,!1),u&&W(u),!d&&(a=l&&l.onVnodeBeforeMount)&&os(a,f,t),Di(e,!0),s&&ee){const n=()=>{e.subTree=aa(e),ee(s,e.subTree,e,o,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{0;const a=e.subTree=aa(e);0,y(null,a,n,r,e,o,i),t.el=a.el}if(c&&Mi(c,o),!d&&(a=l&&l.onVnodeMounted)){const e=t;Mi((()=>os(a,f,e)),o)}(256&t.shapeFlag||f&&Ar(f.vnode)&&256&f.vnode.shapeFlag)&&e.a&&Mi(e.a,o),e.isMounted=!0,t=n=r=null}},u=e.effect=new Ee(l,s,(()=>Dn(c)),e.scope),c=e.update=()=>{u.dirty&&u.run()};c.i=e,c.id=e.uid,Di(e,!0),c()},j=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,Qo(e,t.props,r,n),fi(e,t.children,n),je(),Un(e),De()},D=(e,t,n,r,o,i,a,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,f=t.children,{patchFlag:d,shapeFlag:p}=t;if(d>0){if(128&d)return void z(u,f,n,r,o,i,a,s,l);if(256&d)return void B(u,f,n,r,o,i,a,s,l)}8&p?(16&c&&Y(u,o,i),f!==u&&h(n,f)):16&c?16&p?z(u,f,n,r,o,i,a,s,l):Y(u,o,i,!0):(8&c&&h(n,""),16&p&&E(f,n,r,o,i,a,s,l))},B=(e,t,n,r,o,i,s,l,u)=>{e=e||a,t=t||a;const c=e.length,f=t.length,d=Math.min(c,f);let h;for(h=0;h<d;h++){const r=t[h]=u?ts(t[h]):es(t[h]);y(e[h],r,n,null,o,i,s,l,u)}c>f?Y(e,o,i,!0,!1,d):E(t,n,r,o,i,s,l,u,d)},z=(e,t,n,r,o,i,s,l,u)=>{let c=0;const f=t.length;let d=e.length-1,h=f-1;while(c<=d&&c<=h){const r=e[c],a=t[c]=u?ts(t[c]):es(t[c]);if(!Ua(r,a))break;y(r,a,n,null,o,i,s,l,u),c++}while(c<=d&&c<=h){const r=e[d],a=t[h]=u?ts(t[h]):es(t[h]);if(!Ua(r,a))break;y(r,a,n,null,o,i,s,l,u),d--,h--}if(c>d){if(c<=h){const e=h+1,a=e<f?t[e].el:r;while(c<=h)y(null,t[c]=u?ts(t[c]):es(t[c]),n,a,o,i,s,l,u),c++}}else if(c>h)while(c<=d)K(e[c],o,i,!0),c++;else{const p=c,v=c,g=new Map;for(c=v;c<=h;c++){const e=t[c]=u?ts(t[c]):es(t[c]);null!=e.key&&g.set(e.key,c)}let m,b=0;const w=h-v+1;let A=!1,x=0;const C=new Array(w);for(c=0;c<w;c++)C[c]=0;for(c=p;c<=d;c++){const r=e[c];if(b>=w){K(r,o,i,!0);continue}let a;if(null!=r.key)a=g.get(r.key);else for(m=v;m<=h;m++)if(0===C[m-v]&&Ua(r,t[m])){a=m;break}void 0===a?K(r,o,i,!0):(C[a-v]=c+1,a>=x?x=a:A=!0,y(r,t[a],n,null,o,i,s,l,u),b++)}const S=A?zi(C):a;for(m=S.length-1,c=w-1;c>=0;c--){const e=v+c,a=t[e],d=e+1<f?t[e+1].el:r;0===C[c]?y(null,a,n,d,o,i,s,l,u):A&&(m<0||c!==S[m]?U(a,n,d,2):m--)}}},U=(e,t,n,o,i=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void U(e.component.subTree,t,n,o);if(128&c)return void e.suspense.move(t,n,o);if(64&c)return void s.move(e,t,n,Q);if(s===Ea){r(a,t,n);for(let e=0;e<u.length;e++)U(u[e],t,n,o);return void r(e.anchor,t,n)}if(s===Ta)return void x(e,t,n);const f=2!==o&&1&c&&l;if(f)if(0===o)l.beforeEnter(a),r(a,t,n),Mi((()=>l.enter(a)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=l,s=()=>r(a,t,n),u=()=>{e(a,(()=>{s(),i&&i()}))};o?o(a,s,u):u()}else r(a,t,n)},K=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:f,dirs:d,cacheIndex:h}=e;if(-2===f&&(o=!1),null!=s&&di(s,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),256&c)return void t.ctx.deactivate(e);const p=1&c&&d,v=!Ar(e);let g;if(v&&(g=a&&a.onVnodeBeforeUnmount)&&os(g,t,e),6&c)G(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&ir(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,Q,r):u&&!u.hasOnce&&(i!==Ea||f>0&&64&f)?Y(u,t,n,!1,!0):(i===Ea&&384&f||!o&&16&c)&&Y(l,t,n),r&&V(e)}(v&&(g=a&&a.onVnodeUnmounted)||p)&&Mi((()=>{g&&os(g,t,e),p&&ir(e,null,t,"unmounted")}),n)},V=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Ea)return void q(n,r);if(t===Ta)return void C(e);const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},q=(e,t)=>{let n;while(e!==t)n=v(e),o(e),e=n;o(t)},G=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:a,um:s,m:l,a:u}=e;Ki(l),Ki(u),r&&W(r),o.stop(),i&&(i.active=!1,K(a,e,t,n)),s&&Mi(s,t),Mi((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a<e.length;a++)K(e[a],t,n,r,o)},$=e=>{if(6&e.shapeFlag)return $(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=v(e.anchor||e.el),n=t&&t[hi];return n?v(n):t};let X=!1;const J=(e,t,n)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),t._vnode=e,X||(X=!0,Un(),Kn(),X=!1)},Q={p:y,um:K,m:U,r:V,mt:L,mc:E,pc:D,pbc:F,n:$,o:e};let Z,ee;return t&&([Z,ee]=t(Q)),{render:J,hydrate:Z,createApp:Ko(J,Z)}}function ji({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Di({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wi(e,t,n=!1){const r=e.children,o=t.children;if(v(r)&&v(o))for(let i=0;i<r.length;i++){const e=r[i];let t=o[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[i]=ts(o[i]),t.el=e.el),n||-2===t.patchFlag||Wi(e,t)),t.type===Oa&&(t.el=e.el)}}function zi(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){t[r]=o,n.push(r);continue}i=0,a=n.length-1;while(i<a)s=i+a>>1,e[n[s]]<l?i=s+1:a=s;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];while(i-- >0)n[i]=a,a=t[a];return n}function Ui(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ui(t)}function Ki(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const Vi=Symbol.for("v-scx"),Hi=()=>{{const e=qo(Vi);return e}};function qi(e,t){return Ji(e,null,t)}function Gi(e,t){return Ji(e,null,{flush:"post"})}function Yi(e,t){return Ji(e,null,{flush:"sync"})}const $i={};function Xi(e,t,n){return Ji(e,t,n)}function Ji(e,t,{immediate:n,deep:r,flush:o,once:a,onTrack:l,onTrigger:u}=i){if(t&&a){const e=t;t=(...t)=>{e(...t),k()}}const c=ls,f=e=>!0===r?e:ea(e,!1===r?1:void 0);let h,p,g=!1,m=!1;if(en(e)?(h=()=>e.value,g=Vt(e)):Ut(e)?(h=()=>f(e),g=!0):v(e)?(m=!0,g=e.some((e=>Ut(e)||Vt(e))),h=()=>e.map((e=>en(e)?e.value:Ut(e)?f(e):w(e)?Cn(e,c,2):void 0))):h=w(e)?t?()=>Cn(e,c,2):()=>(p&&p(),Sn(e,c,3,[b])):s,t&&r){const e=h;h=()=>ea(e())}let y,b=e=>{p=S.onStop=()=>{Cn(e,c,4),p=S.onStop=void 0}};if(ms){if(b=s,t?n&&Sn(t,c,3,[h(),m?[]:void 0,b]):h(),"sync"!==o)return s;{const e=Hi();y=e.__watcherHandles||(e.__watcherHandles=[])}}let A=m?new Array(e.length).fill($i):$i;const x=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(r||g||(m?e.some(((e,t)=>B(e,A[t]))):B(e,A)))&&(p&&p(),Sn(t,c,3,[e,A===$i?void 0:m&&A[0]===$i?[]:A,b]),A=e)}else S.run()};let C;x.allowRecurse=!!t,"sync"===o?C=x:"post"===o?C=()=>Mi(x,c&&c.suspense):(x.pre=!0,c&&(x.id=c.uid),C=()=>Dn(x));const S=new Ee(h,s,C),_=_e(),k=()=>{S.stop(),_&&d(_.effects,S)};return t?n?x():A=S.run():"post"===o?Mi(S.run.bind(S),c&&c.suspense):S.run(),y&&y.push(k),k}function Qi(e,t,n){const r=this.proxy,o=A(e)?e.includes(".")?Zi(r,e):()=>r[e]:e.bind(r,r);let i;w(t)?i=t:(i=t.handler,n=t);const a=ds(this),s=Ji(o,i.bind(r),n);return a(),s}function Zi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function ea(e,t=1/0,n){if(t<=0||!C(e)||e["__v_skip"])return e;if(n=n||new Set,n.has(e))return e;if(n.add(e),t--,en(e))ea(e.value,t,n);else if(v(e))for(let r=0;r<e.length;r++)ea(e[r],t,n);else if(m(e)||g(e))e.forEach((e=>{ea(e,t,n)}));else if(O(e)){for(const r in e)ea(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ea(e[r],t,n)}return e}function ta(e,t,n=i){const r=us();const o=L(t),a=R(t),s=na(e,t),l=dn(((s,l)=>{let u,c,f=i;return Yi((()=>{const n=e[t];B(u,n)&&(u=n,l())})),{get(){return s(),n.get?n.get(u):u},set(e){const s=n.set?n.set(e):e;if(!B(s,u)&&(f===i||!B(e,f)))return;const d=r.vnode.props;d&&(t in d||o in d||a in d)&&(`onUpdate:${t}`in d||`onUpdate:${o}`in d||`onUpdate:${a}`in d)||(u=e,l()),r.emit(`update:${t}`,s),B(e,s)&&B(e,f)&&!B(s,c)&&l(),f=e,c=s}}}));return l[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||i:l,done:!1}:{done:!0}}}},l}const na=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${L(t)}Modifiers`]||e[`${R(t)}Modifiers`];function ra(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||i;let o=n;const a=t.startsWith("update:"),s=a&&na(r,t.slice(7));let l;s&&(s.trim&&(o=n.map((e=>A(e)?e.trim():e))),s.number&&(o=n.map(U)));let u=r[l=D(t)]||r[l=D(L(t))];!u&&a&&(u=r[l=D(R(t))]),u&&Sn(u,e,6,o);const c=r[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Sn(c,e,6,o)}}function oa(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let a={},s=!1;if(!w(e)){const r=e=>{const n=oa(e,t,!0);n&&(s=!0,f(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?(v(i)?i.forEach((e=>a[e]=null)):f(a,i),C(e)&&r.set(e,a),a):(C(e)&&r.set(e,null),null)}function ia(e,t){return!(!e||!u(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}function aa(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:a,attrs:s,emit:l,render:u,renderCache:f,props:d,data:h,setupState:p,ctx:v,inheritAttrs:g}=e,m=Zn(e);let y,b;try{if(4&n.shapeFlag){const e=o||r,t=e;y=es(u.call(t,e,f,d,p,h,v)),b=s}else{const e=t;0,y=es(e.length>1?e(d,{attrs:s,slots:a,emit:l}):e(d,null)),b=t.props?s:la(s)}}catch(A){Pa.length=0,_n(A,e,1),y=Ga(Fa)}let w=y;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(c)&&(b=ua(b,i)),w=Xa(w,b,!1,!0))}return n.dirs&&(w=Xa(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),y=w,Zn(m),y}function sa(e,t=!0){let n;for(let r=0;r<e.length;r++){const t=e[r];if(!za(t))return;if(t.type!==Fa||"v-if"===t.children){if(n)return;n=t}}return n}const la=e=>{let t;for(const n in e)("class"===n||"style"===n||u(n))&&((t||(t={}))[n]=e[n]);return t},ua=(e,t)=>{const n={};for(const r in e)c(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function ca(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||fa(r,a,u):!!a);if(1024&l)return!0;if(16&l)return r?fa(r,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!ia(u,n))return!0}}return!1}function fa(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!ia(n,i))return!0}return!1}function da({vnode:e,parent:t},n){while(t){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const ha=e=>e.__isSuspense;let pa=0;const va={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,l,u){if(null==e)ya(t,n,r,o,i,a,s,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);ba(e,t,n,r,o,a,s,l,u)}},hydrate:Aa,normalize:xa},ga=va;function ma(e,t){const n=e.props&&e.props[t];w(n)&&n()}function ya(e,t,n,r,o,i,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=wa(e,o,r,t,f,n,i,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(ma(e,"onPending"),ma(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,a),_a(d,e.ssFallback)):d.resolve(!1,!0)}function ba(e,t,n,r,o,i,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:v,isInFallback:g,isHydrating:m}=f;if(v)f.pendingBranch=d,Ua(d,v)?(l(v,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():g&&(m||(l(p,h,n,r,o,null,i,a,s),_a(f,h)))):(f.pendingId=pa++,m?(f.isHydrating=!1,f.activeBranch=v):u(v,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(l(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(l(p,h,n,r,o,null,i,a,s),_a(f,h))):p&&Ua(d,p)?(l(p,d,n,r,o,f,i,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(p&&Ua(d,p))l(p,d,n,r,o,f,i,a,s),_a(f,d);else if(ma(t,"onPending"),f.pendingBranch=d,512&d.shapeFlag?f.pendingId=d.component.suspenseId:f.pendingId=pa++,l(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(h)}),e):0===e&&f.fallback(h)}}function wa(e,t,n,r,o,i,a,s,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:v,remove:g}}=u;let m;const y=ka(e);y&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const b=e.props?K(e.props.timeout):void 0;const w=i,A={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:o,deps:0,pendingId:pa++,timeout:"number"===typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:a,pendingId:s,effects:l,parentComponent:u,container:c}=A;let f=!1;A.isHydrating?A.isHydrating=!1:e||(f=o&&a.transition&&"out-in"===a.transition.mode,f&&(o.transition.afterLeave=()=>{s===A.pendingId&&(d(a,c,i===w?p(o):i,0),zn(l))}),o&&(v(o.el)!==A.hiddenContainer&&(i=p(o)),h(o,u,A,!0)),f||d(a,c,i,0)),_a(A,a),A.pendingBranch=null,A.isInFallback=!1;let g=A.parent,b=!1;while(g){if(g.pendingBranch){g.effects.push(...l),b=!0;break}g=g.parent}b||f||zn(l),A.effects=[],y&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),ma(r,"onResolve")},fallback(e){if(!A.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=A;ma(t,"onFallback");const a=p(n),u=()=>{A.isInFallback&&(f(null,e,o,a,r,null,i,s,l),_a(A,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=u),A.isInFallback=!0,h(n,r,null,!0),c||u()},move(e,t,n){A.activeBranch&&d(A.activeBranch,e,t,n),A.container=e},next(){return A.activeBranch&&p(A.activeBranch)},registerDep(e,t,n){const r=!!A.pendingBranch;r&&A.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{_n(t,e,0)})).then((i=>{if(e.isUnmounted||A.isUnmounted||A.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;ws(e,i,!1),o&&(s.el=o);const l=!o&&e.subTree.el;t(e,s,v(o||e.subTree.el),o?null:p(e.subTree),A,a,n),l&&g(l),da(e,s.el),r&&0===--A.deps&&A.resolve()}))},unmount(e,t){A.isUnmounted=!0,A.activeBranch&&h(A.activeBranch,n,e,t),A.pendingBranch&&h(A.pendingBranch,n,e,t)}};return A}function Aa(e,t,n,r,o,i,a,s,l){const u=t.suspense=wa(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,a);return 0===u.deps&&u.resolve(!1,!0),c}function xa(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Ca(r?n.default:n),e.ssFallback=r?Ca(n.fallback):Ga(Fa)}function Ca(e){let t;if(w(e)){const n=Ra&&e._c;n&&(e._d=!1,Ma()),e=e(),n&&(e._d=!0,t=Na,La())}if(v(e)){const t=sa(e);0,e=t}return e=es(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Sa(e,t){t&&t.pendingBranch?v(e)?t.effects.push(...e):t.effects.push(e):zn(e)}function _a(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;while(!o&&t.component)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,da(r,o))}function ka(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}const Ea=Symbol.for("v-fgt"),Oa=Symbol.for("v-txt"),Fa=Symbol.for("v-cmt"),Ta=Symbol.for("v-stc"),Pa=[];let Na=null;function Ma(e=!1){Pa.push(Na=e?null:[])}function La(){Pa.pop(),Na=Pa[Pa.length-1]||null}let Ia,Ra=1;function ja(e){Ra+=e,e<0&&Na&&(Na.hasOnce=!0)}function Da(e){return e.dynamicChildren=Ra>0?Na||a:null,La(),Ra>0&&Na&&Na.push(e),e}function Ba(e,t,n,r,o,i){return Da(qa(e,t,n,r,o,i,!0))}function Wa(e,t,n,r,o){return Da(Ga(e,t,n,r,o,!0))}function za(e){return!!e&&!0===e.__v_isVNode}function Ua(e,t){return e.type===t.type&&e.key===t.key}function Ka(e){Ia=e}const Va=({key:e})=>null!=e?e:null,Ha=({ref:e,ref_key:t,ref_for:n})=>("number"===typeof e&&(e=""+e),null!=e?A(e)||en(e)||w(e)?{i:Jn,r:e,k:t,f:!!n}:e:null);function qa(e,t=null,n=null,r=0,o=null,i=(e===Ea?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Va(t),ref:t&&Ha(t),scopeId:Qn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Jn};return s?(ns(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=A(n)?8:16),Ra>0&&!a&&Na&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Na.push(l),l}const Ga=Ya;function Ya(e,t=null,n=null,r=0,o=null,i=!1){if(e&&e!==$r||(e=Fa),za(e)){const r=Xa(e,t,!0);return n&&ns(r,n),Ra>0&&!i&&Na&&(6&r.shapeFlag?Na[Na.indexOf(e)]=r:Na.push(r)),r.patchFlag=-2,r}if(Os(e)&&(e=e.__vccOpts),t){t=$a(t);let{class:e,style:n}=t;e&&!A(e)&&(t.class=ee(e)),C(n)&&(Ht(n)&&!v(n)&&(n=f({},n)),t.style=$(n))}const a=A(e)?1:ha(e)?128:pi(e)?64:C(e)?4:w(e)?2:0;return qa(e,t,n,r,o,a,i,!0)}function $a(e){return e?Ht(e)||Xo(e)?f({},e):e:null}function Xa(e,t,n=!1,r=!1){const{props:o,ref:i,patchFlag:a,children:s,transition:l}=e,u=t?rs(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Va(u),ref:t&&t.ref?n&&i?v(i)?i.concat(Ha(t)):[i,Ha(t)]:Ha(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ea?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xa(e.ssContent),ssFallback:e.ssFallback&&Xa(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&yr(c,l.clone(c)),c}function Ja(e=" ",t=0){return Ga(Oa,null,e,t)}function Qa(e,t){const n=Ga(Ta,null,e);return n.staticCount=t,n}function Za(e="",t=!1){return t?(Ma(),Wa(Fa,null,e)):Ga(Fa,null,e)}function es(e){return null==e||"boolean"===typeof e?Ga(Fa):v(e)?Ga(Ea,null,e.slice()):"object"===typeof e?ts(e):Ga(Oa,null,String(e))}function ts(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Xa(e)}function ns(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(v(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ns(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Xo(t)?3===r&&Jn&&(1===Jn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Jn}}else w(t)?(t={default:t,_ctx:Jn},n=32):(t=String(t),64&r?(n=16,t=[Ja(t)]):n=8);e.children=t,e.shapeFlag|=n}function rs(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=ee([t.class,r.class]));else if("style"===e)t.style=$([t.style,r.style]);else if(u(e)){const n=t[e],o=r[e];!o||n===o||v(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}function os(e,t,n,r=null){Sn(e,t,7,[n,r])}const is=zo();let as=0;function ss(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||is,a={uid:as++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new xe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ni(r,o),emitsOptions:oa(r,o),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=ra.bind(null,a),e.ce&&e.ce(a),a}let ls=null;const us=()=>ls||Jn;let cs,fs;{const e=H(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};cs=t("__VUE_INSTANCE_SETTERS__",(e=>ls=e)),fs=t("__VUE_SSR_SETTERS__",(e=>ms=e))}const ds=e=>{const t=ls;return cs(e),e.scope.on(),()=>{e.scope.off(),cs(t)}},hs=()=>{ls&&ls.scope.off(),cs(null)};function ps(e){return 4&e.vnode.shapeFlag}let vs,gs,ms=!1;function ys(e,t=!1,n=!1){t&&fs(t);const{props:r,children:o}=e.vnode,i=ps(e);Jo(e,r,i,t),ci(e,o,n);const a=i?bs(e,t):void 0;return t&&fs(!1),a}function bs(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lo);const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?_s(e):null,o=ds(e);je();const i=Cn(r,e,0,[e.props,n]);if(De(),o(),S(i)){if(i.then(hs,hs),t)return i.then((n=>{ws(e,n,t)})).catch((t=>{_n(t,e,0)}));e.asyncDep=i}else ws(e,i,t)}else Cs(e,t)}function ws(e,t,n){w(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:C(t)&&(e.setupState=cn(t)),Cs(e,n)}function As(e){vs=e,gs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,uo))}}const xs=()=>!vs;function Cs(e,t,n){const r=e.type;if(!e.render){if(!t&&vs&&!r.render){const t=r.template||Po(e).template;if(t){0;const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:i,compilerOptions:a}=r,s=f(f({isCustomElement:n,delimiters:i},o),a);r.render=vs(t,s)}}e.render=r.render||s,gs&&gs(e)}{const t=ds(e);je();try{Eo(e)}finally{De(),t()}}}const Ss={get(e,t){return Ye(e,"get",""),e[t]}};function _s(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,Ss),slots:e.slots,emit:e.emit,expose:t}}function ks(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(cn(Gt(e.exposed)),{get(t,n){return n in t?t[n]:n in ao?ao[n](e):void 0},has(e,t){return t in e||t in ao}})):e.proxy}function Es(e,t=!0){return w(e)?e.displayName||e.name:e.name||t&&e.__name}function Os(e){return w(e)&&"__vccOpts"in e}const Fs=(e,t)=>{const n=Jt(e,t,ms);return n};function Ts(e,t,n){const r=arguments.length;return 2===r?C(t)&&!v(t)?za(t)?Ga(e,null,[t]):Ga(e,t):Ga(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&za(n)&&(n=[n]),Ga(e,t,n))}function Ps(){return void 0}function Ns(e,t,n,r){const o=n[r];if(o&&Ms(o,e))return o;const i=t();return i.memo=e.slice(),i.cacheIndex=r,n[r]=i}function Ms(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(B(n[r],t[r]))return!1;return Ra>0&&Na&&Na.push(e),!0}const Ls="3.4.37",Is=s,Rs=xn,js=Gn,Ds=Xn,Bs={createComponentInstance:ss,setupComponent:ys,renderComponentRoot:aa,setCurrentRenderingInstance:Zn,isVNode:za,normalizeVNode:es,getComponentPublicInstance:ks,ensureValidVNode:ro},Ws=Bs,zs=null,Us=null,Ks=null,Vs="http://www.w3.org/2000/svg",Hs="http://www.w3.org/1998/Math/MathML",qs="undefined"!==typeof document?document:null,Gs=qs&&qs.createElement("template"),Ys={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?qs.createElementNS(Vs,e):"mathml"===t?qs.createElementNS(Hs,e):n?qs.createElement(e,{is:n}):qs.createElement(e);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>qs.createTextNode(e),createComment:e=>qs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>qs.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling)){while(1)if(t.insertBefore(o.cloneNode(!0),n),o===i||!(o=o.nextSibling))break}else{Gs.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const o=Gs.content;if("svg"===r||"mathml"===r){const e=o.firstChild;while(e.firstChild)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$s="transition",Xs="animation",Js=Symbol("_vtc"),Qs=(e,{slots:t})=>Ts(hr,rl(e),t);Qs.displayName="Transition";const Zs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},el=Qs.props=f({},cr,Zs),tl=(e,t=[])=>{v(e)?e.forEach((e=>e(...t))):e&&e(...t)},nl=e=>!!e&&(v(e)?e.some((e=>e.length>1)):e.length>1);function rl(e){const t={};for(const f in e)f in Zs||(t[f]=e[f]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,v=ol(o),g=v&&v[0],m=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:A,onLeaveCancelled:x,onBeforeAppear:C=y,onAppear:S=b,onAppearCancelled:_=w}=t,k=(e,t,n)=>{sl(e,t?c:s),sl(e,t?u:a),n&&n()},E=(e,t)=>{e._isLeaving=!1,sl(e,d),sl(e,p),sl(e,h),t&&t()},O=e=>(t,n)=>{const o=e?S:b,a=()=>k(t,e,n);tl(o,[t,a]),ll((()=>{sl(t,e?l:i),al(t,e?c:s),nl(o)||cl(t,r,g,a)}))};return f(t,{onBeforeEnter(e){tl(y,[e]),al(e,i),al(e,a)},onBeforeAppear(e){tl(C,[e]),al(e,l),al(e,u)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);al(e,d),al(e,h),pl(),ll((()=>{e._isLeaving&&(sl(e,d),al(e,p),nl(A)||cl(e,r,m,n))})),tl(A,[e,n])},onEnterCancelled(e){k(e,!1),tl(w,[e])},onAppearCancelled(e){k(e,!0),tl(_,[e])},onLeaveCancelled(e){E(e),tl(x,[e])}})}function ol(e){if(null==e)return null;if(C(e))return[il(e.enter),il(e.leave)];{const t=il(e);return[t,t]}}function il(e){const t=K(e);return t}function al(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Js]||(e[Js]=new Set)).add(t)}function sl(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Js];n&&(n.delete(t),n.size||(e[Js]=void 0))}function ll(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ul=0;function cl(e,t,n,r){const o=e._endId=++ul,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=fl(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=t=>{t.target===e&&++c>=l&&f()};setTimeout((()=>{c<l&&f()}),s+1),e.addEventListener(u,d)}function fl(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${$s}Delay`),i=r(`${$s}Duration`),a=dl(o,i),s=r(`${Xs}Delay`),l=r(`${Xs}Duration`),u=dl(s,l);let c=null,f=0,d=0;t===$s?a>0&&(c=$s,f=a,d=i.length):t===Xs?u>0&&(c=Xs,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?$s:Xs:null,d=c?c===$s?i.length:l.length:0);const h=c===$s&&/\b(transform|all)(,|$)/.test(r(`${$s}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function dl(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>hl(t)+hl(e[n]))))}function hl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function pl(){return document.body.offsetHeight}function vl(e,t,n){const r=e[Js];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gl=Symbol("_vod"),ml=Symbol("_vsh"),yl={beforeMount(e,{value:t},{transition:n}){e[gl]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):bl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),bl(e,!0),r.enter(e)):r.leave(e,(()=>{bl(e,!1)})):bl(e,t))},beforeUnmount(e,{value:t}){bl(e,t)}};function bl(e,t){e.style.display=t?e[gl]:"none",e[ml]=!t}function wl(){yl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Al=Symbol("");function xl(e){const t=us();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Sl(e,n)))};const r=()=>{const r=e(t.proxy);Cl(t.subTree,r),n(r)};Rr((()=>{Gi(r)})),jr((()=>{const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),zr((()=>e.disconnect()))}))}function Cl(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Cl(n.activeBranch,t)}))}while(e.component)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Sl(e.el,t);else if(e.type===Ea)e.children.forEach((e=>Cl(e,t)));else if(e.type===Ta){let{el:n,anchor:r}=e;while(n){if(Sl(n,t),n===r)break;n=n.nextSibling}}}function Sl(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[Al]=r}}const _l=/(^|;)\s*display\s*:/;function kl(e,t,n){const r=e.style,o=A(n);let i=!1;if(n&&!o){if(t)if(A(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Ol(r,t,"")}else for(const e in t)null==n[e]&&Ol(r,e,"");for(const e in n)"display"===e&&(i=!0),Ol(r,e,n[e])}else if(o){if(t!==n){const e=r[Al];e&&(n+=";"+e),r.cssText=n,i=_l.test(n)}}else t&&e.removeAttribute("style");gl in e&&(e[gl]=i?r.display:"",e[ml]&&(r.display="none"))}const El=/\s*!important$/;function Ol(e,t,n){if(v(n))n.forEach((n=>Ol(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Pl(e,t);El.test(n)?e.setProperty(R(r),n.replace(El,""),"important"):e[r]=n}}const Fl=["Webkit","Moz","ms"],Tl={};function Pl(e,t){const n=Tl[t];if(n)return n;let r=L(t);if("filter"!==r&&r in e)return Tl[t]=r;r=j(r);for(let o=0;o<Fl.length;o++){const n=Fl[o]+r;if(n in e)return Tl[t]=n}return t}const Nl="http://www.w3.org/1999/xlink";function Ml(e,t,n,r,o,i=fe(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(Nl,t.slice(6,t.length)):e.setAttributeNS(Nl,t,n):null==n||i&&!de(n)?e.removeAttribute(t):e.setAttribute(t,i?"":x(n)?String(n):n)}function Ll(e,t,n,r){if("innerHTML"===t||"textContent"===t){if(null==n)return;return void(e[t]=n)}const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let i=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=de(n):null==n&&"string"===r?(n="",i=!0):"number"===r&&(n=0,i=!0)}try{e[t]=n}catch(a){0}i&&e.removeAttribute(t)}function Il(e,t,n,r){e.addEventListener(t,n,r)}function Rl(e,t,n,r){e.removeEventListener(t,n,r)}const jl=Symbol("_vei");function Dl(e,t,n,r,o=null){const i=e[jl]||(e[jl]={}),a=i[t];if(r&&a)a.value=r;else{const[n,s]=Wl(t);if(r){const a=i[t]=Vl(r,o);Il(e,n,a,s)}else a&&(Rl(e,n,a,s),i[t]=void 0)}}const Bl=/(?:Once|Passive|Capture)$/;function Wl(e){let t;if(Bl.test(e)){let n;t={};while(n=e.match(Bl))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):R(e.slice(2));return[n,t]}let zl=0;const Ul=Promise.resolve(),Kl=()=>zl||(Ul.then((()=>zl=0)),zl=Date.now());function Vl(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Sn(Hl(e,n.value),t,5,[e])};return n.value=e,n.attached=Kl(),n}function Hl(e,t){if(v(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}const ql=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gl=(e,t,n,r,o,i)=>{const a="svg"===o;"class"===t?vl(e,r,a):"style"===t?kl(e,n,r):u(t)?c(t)||Dl(e,t,n,r,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Yl(e,t,r,a))?(Ll(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Ml(e,t,r,a,i,"value"!==t)):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Ml(e,t,r,a))};function Yl(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&ql(t)&&w(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ql(t)||!A(n))&&t in e}
/*! #__NO_SIDE_EFFECTS__ */function $l(e,t,n){const r=wr(e,t);class o extends Ql{constructor(e){super(r,e,n)}}return o.def=r,o}
/*! #__NO_SIDE_EFFECTS__ */const Xl=(e,t)=>$l(e,t,ju),Jl="undefined"!==typeof HTMLElement?HTMLElement:class{};class Ql extends Jl{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Rn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),Ru(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let o;if(n&&!v(n))for(const i in n){const e=n[i];(e===Number||e&&e.type===Number)&&(i in this._props&&(this._props[i]=K(this._props[i])),(o||(o=Object.create(null)))[L(i)]=!0)}this._numberProps=o,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=v(t)?t:Object.keys(t||{});for(const r of Object.keys(this))"_"!==r[0]&&n.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of n.map(L))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(e){this._setProp(r,e)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=L(e);this._numberProps&&this._numberProps[n]&&(t=K(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"===typeof t||"number"===typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Ru(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Ga(this._def,f({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;while(n=n&&(n.parentNode||n.host))if(n instanceof Ql){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Zl(e="$style"){{const t=us();if(!t)return i;const n=t.type.__cssModules;if(!n)return i;const r=n[e];return r||i}}const eu=new WeakMap,tu=new WeakMap,nu=Symbol("_moveCb"),ru=Symbol("_enterCb"),ou={name:"TransitionGroup",props:f({},el,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=us(),r=lr();let o,i;return Br((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!uu(o[0].el,n.vnode.el,t))return;o.forEach(au),o.forEach(su);const r=o.filter(lu);pl(),r.forEach((e=>{const n=e.el,r=n.style;al(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[nu]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[nu]=null,sl(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const a=qt(e),s=rl(a);let l=a.tag||Ea;if(o=[],i)for(let e=0;e<i.length;e++){const t=i[e];t.el&&t.el instanceof Element&&(o.push(t),yr(t,vr(t,s,r,n)),eu.set(t,t.el.getBoundingClientRect()))}i=t.default?br(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key&&yr(t,vr(t,s,r,n))}return Ga(l,null,i)}}};ou.props;const iu=ou;function au(e){const t=e.el;t[nu]&&t[nu](),t[ru]&&t[ru]()}function su(e){tu.set(e,e.el.getBoundingClientRect())}function lu(e){const t=eu.get(e),n=tu.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}function uu(e,t,n){const r=e.cloneNode(),o=e[Js];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=fl(r);return i.removeChild(r),a}const cu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return v(t)?e=>W(t,e):t};function fu(e){e.target.composing=!0}function du(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hu=Symbol("_assign"),pu={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[hu]=cu(o);const i=r||o.props&&"number"===o.props.type;Il(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=U(r)),e[hu](r)})),n&&Il(e,"change",(()=>{e.value=e.value.trim()})),t||(Il(e,"compositionstart",fu),Il(e,"compositionend",du),Il(e,"change",du))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},a){if(e[hu]=cu(a),e.composing)return;const s=!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:U(e.value),l=null==t?"":t;if(s!==l){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===l)return}e.value=l}}},vu={deep:!0,created(e,t,n){e[hu]=cu(n),Il(e,"change",(()=>{const t=e._modelValue,n=wu(e),r=e.checked,o=e[hu];if(v(t)){const e=ve(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(m(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Au(e,r))}))},mounted:gu,beforeUpdate(e,t,n){e[hu]=cu(n),gu(e,t,n)}};function gu(e,{value:t,oldValue:n},r){e._modelValue=t,v(t)?e.checked=ve(t,r.props.value)>-1:m(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=pe(t,Au(e,!0)))}const mu={created(e,{value:t},n){e.checked=pe(t,n.props.value),e[hu]=cu(n),Il(e,"change",(()=>{e[hu](wu(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[hu]=cu(r),t!==n&&(e.checked=pe(t,r.props.value))}},yu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=m(t);Il(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?U(wu(e)):wu(e)));e[hu](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,Rn((()=>{e._assigning=!1}))})),e[hu]=cu(r)},mounted(e,{value:t,modifiers:{number:n}}){bu(e,t)},beforeUpdate(e,t,n){e[hu]=cu(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||bu(e,t)}};function bu(e,t,n){const r=e.multiple,o=v(t);if(!r||o||m(t)){for(let n=0,i=e.options.length;n<i;n++){const i=e.options[n],a=wu(i);if(r)if(o){const e=typeof a;i.selected="string"===e||"number"===e?t.some((e=>String(e)===String(a))):ve(t,a)>-1}else i.selected=t.has(a);else if(pe(wu(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function wu(e){return"_value"in e?e._value:e.value}function Au(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xu={created(e,t,n){Su(e,t,n,null,"created")},mounted(e,t,n){Su(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Su(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Su(e,t,n,r,"updated")}};function Cu(e,t){switch(e){case"SELECT":return yu;case"TEXTAREA":return pu;default:switch(t){case"checkbox":return vu;case"radio":return mu;default:return pu}}}function Su(e,t,n,r,o){const i=Cu(e.tagName,n.props&&n.props.type),a=i[o];a&&a(e,t,n,r)}function _u(){pu.getSSRProps=({value:e})=>({value:e}),mu.getSSRProps=({value:e},t)=>{if(t.props&&pe(t.props.value,e))return{checked:!0}},vu.getSSRProps=({value:e},t)=>{if(v(e)){if(t.props&&ve(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},xu.getSSRProps=(e,t)=>{if("string"!==typeof t.type)return;const n=Cu(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0}}const ku=["ctrl","shift","alt","meta"],Eu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ku.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ou=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Eu[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Fu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tu=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=R(n.key);return t.some((e=>e===r||Fu[e]===r))?e(n):void 0})},Pu=f({patchProp:Gl},Ys);let Nu,Mu=!1;function Lu(){return Nu||(Nu=Li(Pu))}function Iu(){return Nu=Mu?Nu:Ii(Pu),Mu=!0,Nu}const Ru=(...e)=>{Lu().render(...e)},ju=(...e)=>{Iu().hydrate(...e)},Du=(...e)=>{const t=Lu().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=zu(e);if(!r)return;const o=t._component;w(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,Wu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t},Bu=(...e)=>{const t=Iu().createApp(...e);const{mount:n}=t;return t.mount=e=>{const t=zu(e);if(t)return n(t,!0,Wu(t))},t};function Wu(e){return e instanceof SVGElement?"svg":"function"===typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function zu(e){if(A(e)){const t=document.querySelector(e);return t}return e}let Uu=!1;const Ku=()=>{Uu||(Uu=!0,_u(),wl())},Vu=Symbol(""),Hu=Symbol(""),qu=Symbol(""),Gu=Symbol(""),Yu=Symbol(""),$u=Symbol(""),Xu=Symbol(""),Ju=Symbol(""),Qu=Symbol(""),Zu=Symbol(""),ec=Symbol(""),tc=Symbol(""),nc=Symbol(""),rc=Symbol(""),oc=Symbol(""),ic=Symbol(""),ac=Symbol(""),sc=Symbol(""),lc=Symbol(""),uc=Symbol(""),cc=Symbol(""),fc=Symbol(""),dc=Symbol(""),hc=Symbol(""),pc=Symbol(""),vc=Symbol(""),gc=Symbol(""),mc=Symbol(""),yc=Symbol(""),bc=Symbol(""),wc=Symbol(""),Ac=Symbol(""),xc=Symbol(""),Cc=Symbol(""),Sc=Symbol(""),_c=Symbol(""),kc=Symbol(""),Ec=Symbol(""),Oc=Symbol(""),Fc={[Vu]:"Fragment",[Hu]:"Teleport",[qu]:"Suspense",[Gu]:"KeepAlive",[Yu]:"BaseTransition",[$u]:"openBlock",[Xu]:"createBlock",[Ju]:"createElementBlock",[Qu]:"createVNode",[Zu]:"createElementVNode",[ec]:"createCommentVNode",[tc]:"createTextVNode",[nc]:"createStaticVNode",[rc]:"resolveComponent",[oc]:"resolveDynamicComponent",[ic]:"resolveDirective",[ac]:"resolveFilter",[sc]:"withDirectives",[lc]:"renderList",[uc]:"renderSlot",[cc]:"createSlots",[fc]:"toDisplayString",[dc]:"mergeProps",[hc]:"normalizeClass",[pc]:"normalizeStyle",[vc]:"normalizeProps",[gc]:"guardReactiveProps",[mc]:"toHandlers",[yc]:"camelize",[bc]:"capitalize",[wc]:"toHandlerKey",[Ac]:"setBlockTracking",[xc]:"pushScopeId",[Cc]:"popScopeId",[Sc]:"withCtx",[_c]:"unref",[kc]:"isRef",[Ec]:"withMemo",[Oc]:"isMemoSame"};function Tc(e){Object.getOwnPropertySymbols(e).forEach((t=>{Fc[t]=e[t]}))}const Pc={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Nc(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Pc}}function Mc(e,t,n,r,o,i,a,s=!1,l=!1,u=!1,c=Pc){return e&&(s?(e.helper($u),e.helper(Hc(e.inSSR,u))):e.helper(Vc(e.inSSR,u)),a&&e.helper(sc)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function Lc(e,t=Pc){return{type:17,loc:t,elements:e}}function Ic(e,t=Pc){return{type:15,loc:t,properties:e}}function Rc(e,t){return{type:16,loc:Pc,key:A(e)?jc(e,!0):e,value:t}}function jc(e,t=!1,n=Pc,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Dc(e,t=Pc){return{type:8,loc:t,children:e}}function Bc(e,t=[],n=Pc){return{type:14,loc:n,callee:e,arguments:t}}function Wc(e,t=void 0,n=!1,r=!1,o=Pc){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function zc(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Pc}}function Uc(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:Pc}}function Kc(e){return{type:21,body:e,loc:Pc}}function Vc(e,t){return e||t?Qu:Zu}function Hc(e,t){return e||t?Xu:Ju}function qc(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Vc(r,e.isComponent)),t($u),t(Hc(r,e.isComponent)))}const Gc=new Uint8Array([123,123]),Yc=new Uint8Array([125,125]);function $c(e){return e>=97&&e<=122||e>=65&&e<=90}function Xc(e){return 32===e||10===e||9===e||12===e||13===e}function Jc(e){return 47===e||62===e||Xc(e)}function Qc(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Zc={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class ef{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Gc,this.delimiterClose=Yc,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Gc,this.delimiterClose=Yc}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length,n=t?Jc(e):(32|e)===this.currentSequence[this.sequenceIndex];if(n){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Xc(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Zc.TitleEnd||this.currentSequence===Zc.TextareaEnd&&!this.inSFCRoot?e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Zc.Cdata[this.sequenceIndex]?++this.sequenceIndex===Zc.Cdata.length&&(this.state=28,this.currentSequence=Zc.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){while(++this.index<this.buffer.length){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Zc.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):$c(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Jc(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Jc(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(Qc("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Xc(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=$c(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||Xc(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Xc(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Xc(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Jc(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Jc(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Jc(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Jc(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Jc(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Xc(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):Xc(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Xc(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Zc.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Zc.ScriptEnd[3]?this.startSpecial(Zc.ScriptEnd,4):e===Zc.StyleEnd[3]?this.startSpecial(Zc.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Zc.TitleEnd[3]?this.startSpecial(Zc.TitleEnd,4):e===Zc.TextareaEnd[3]?this.startSpecial(Zc.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){this.buffer=e;while(this.index<this.buffer.length){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity();break}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Zc.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}function tf(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function nf(e,t){const n=tf("MODE",t),r=tf(e,t);return 3===n?!0===r:!1!==r}function rf(e,t,n,...r){const o=nf(e,t);return o}function of(e){throw e}function af(e){}function sf(e,t,n,r){const o=`https://vuejs.org/error-reference/#compiler-${e}`,i=new SyntaxError(String(o));return i.code=e,i.loc=t,i}const lf=e=>4===e.type&&e.isStatic;function uf(e){switch(e){case"Teleport":case"teleport":return Hu;case"Suspense":case"suspense":return qu;case"KeepAlive":case"keep-alive":return Gu;case"BaseTransition":case"base-transition":return Yu}}const cf=/^\d|[^\$\w\xA0-\uFFFF]/,ff=e=>!cf.test(e),df=/[A-Za-z_$\xA0-\uFFFF]/,hf=/[\.\?\w$\xA0-\uFFFF]/,pf=/\s+[.[]\s*|\s*[.[]\s+/g,vf=e=>{e=e.trim().replace(pf,(e=>e.trim()));let t=0,n=[],r=0,o=0,i=null;for(let a=0;a<e.length;a++){const s=e.charAt(a);switch(t){case 0:if("["===s)n.push(t),t=1,r++;else if("("===s)n.push(t),t=2,o++;else if(!(0===a?df:hf).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(n.push(t),t=3,i=s):"["===s?r++:"]"===s&&(--r||(t=n.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)n.push(t),t=3,i=s;else if("("===s)o++;else if(")"===s){if(a===e.length-1)return!1;--o||(t=n.pop())}break;case 3:s===i&&(t=n.pop(),i=null);break}}return!r&&!o},gf=vf;function mf(e,t,n=!1){for(let r=0;r<e.props.length;r++){const o=e.props[r];if(7===o.type&&(n||o.exp)&&(A(t)?o.name===t:t.test(o.name)))return o}}function yf(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(6===i.type){if(n)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&bf(i.arg,t))return i}}function bf(e,t){return!(!e||!lf(e)||e.content!==t)}function wf(e){return e.props.some((e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic)))}function Af(e){return 5===e.type||2===e.type}function xf(e){return 7===e.type&&"slot"===e.name}function Cf(e){return 1===e.type&&3===e.tagType}function Sf(e){return 1===e.type&&2===e.tagType}const _f=new Set([vc,gc]);function kf(e,t=[]){if(e&&!A(e)&&14===e.type){const n=e.callee;if(!A(n)&&_f.has(n))return kf(e.arguments[0],t.concat(e))}return[e,t]}function Ef(e,t,n){let r,o,i=13===e.type?e.props:e.arguments[2],a=[];if(i&&!A(i)&&14===i.type){const e=kf(i);i=e[0],a=e[1],o=a[a.length-1]}if(null==i||A(i))r=Ic([t]);else if(14===i.type){const e=i.arguments[0];A(e)||15!==e.type?i.callee===mc?r=Bc(n.helper(dc),[Ic([t]),i]):i.arguments.unshift(Ic([t])):Of(t,e)||e.properties.unshift(t),!r&&(r=i)}else 15===i.type?(Of(t,i)||i.properties.unshift(t),r=i):(r=Bc(n.helper(dc),[Ic([t]),i]),o&&o.callee===gc&&(o=a[a.length-2]));13===e.type?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function Of(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===r))}return n}function Ff(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function Tf(e){return 14===e.type&&e.callee===Ec?e.arguments[1].returns:e}const Pf=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Nf={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:l,isPreTag:l,isCustomElement:l,onError:of,onWarn:af,comments:!1,prefixIdentifiers:!1};let Mf=Nf,Lf=null,If="",Rf=null,jf=null,Df="",Bf=-1,Wf=-1,zf=0,Uf=!1,Kf=null;const Vf=[],Hf=new ef(Vf,{onerr:vd,ontext(e,t){Jf($f(e,t),e,t)},ontextentity(e,t,n){Jf(e,t,n)},oninterpolation(e,t){if(Uf)return Jf($f(e,t),e,t);let n=e+Hf.delimiterOpen.length,r=t-Hf.delimiterClose.length;while(Xc(If.charCodeAt(n)))n++;while(Xc(If.charCodeAt(r-1)))r--;let o=$f(n,r);o.includes("&")&&(o=Mf.decodeEntities(o,!1)),cd({type:5,content:pd(o,!1,fd(n,r)),loc:fd(e,t)})},onopentagname(e,t){const n=$f(e,t);Rf={type:1,tag:n,ns:Mf.getNamespace(n,Vf[0],Mf.ns),tagType:0,props:[],children:[],loc:fd(e-1,t),codegenNode:void 0}},onopentagend(e){Xf(e)},onclosetag(e,t){const n=$f(e,t);if(!Mf.isVoidTag(n)){let r=!1;for(let e=0;e<Vf.length;e++){const o=Vf[e];if(o.tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&vd(24,Vf[0].loc.start.offset);for(let n=0;n<=e;n++){const r=Vf.shift();Qf(r,t,n<e)}break}}r||vd(23,ed(e,60))}},onselfclosingtag(e){const t=Rf.tag;Rf.isSelfClosing=!0,Xf(e),Vf[0]&&Vf[0].tag===t&&Qf(Vf.shift(),e)},onattribname(e,t){jf={type:6,name:$f(e,t),nameLoc:fd(e,t),value:void 0,loc:fd(e)}},ondirname(e,t){const n=$f(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Uf||""!==r||vd(26,e),Uf||""===r)jf={type:6,name:n,nameLoc:fd(e,t),value:void 0,loc:fd(e)};else if(jf={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?["prop"]:[],loc:fd(e)},"pre"===r){Uf=Hf.inVPre=!0,Kf=Rf;const e=Rf.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=hd(e[t]))}},ondirarg(e,t){if(e===t)return;const n=$f(e,t);if(Uf)jf.name+=n,dd(jf.nameLoc,t);else{const r="["!==n[0];jf.arg=pd(r?n:n.slice(1,-1),r,fd(e,t),r?3:0)}},ondirmodifier(e,t){const n=$f(e,t);if(Uf)jf.name+="."+n,dd(jf.nameLoc,t);else if("slot"===jf.name){const e=jf.arg;e&&(e.content+="."+n,dd(e.loc,t))}else jf.modifiers.push(n)},onattribdata(e,t){Df+=$f(e,t),Bf<0&&(Bf=e),Wf=t},onattribentity(e,t,n){Df+=e,Bf<0&&(Bf=t),Wf=n},onattribnameend(e){const t=jf.loc.start.offset,n=$f(t,e);7===jf.type&&(jf.rawName=n),Rf.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&vd(2,t)},onattribend(e,t){if(Rf&&jf){if(dd(jf.loc,t),0!==e)if(Df.includes("&")&&(Df=Mf.decodeEntities(Df,!0)),6===jf.type)"class"===jf.name&&(Df=ud(Df).trim()),1!==e||Df||vd(13,t),jf.value={type:2,content:Df,loc:1===e?fd(Bf,Wf):fd(Bf-1,Wf+1)},Hf.inSFCRoot&&"template"===Rf.tag&&"lang"===jf.name&&Df&&"html"!==Df&&Hf.enterRCDATA(Qc("</template"),0);else{let e=0;jf.exp=pd(Df,!1,fd(Bf,Wf),0,e),"for"===jf.name&&(jf.forParseResult=Yf(jf.exp));let t=-1;"bind"===jf.name&&(t=jf.modifiers.indexOf("sync"))>-1&&rf("COMPILER_V_BIND_SYNC",Mf,jf.loc,jf.rawName)&&(jf.name="model",jf.modifiers.splice(t,1))}7===jf.type&&"pre"===jf.name||Rf.props.push(jf)}Df="",Bf=Wf=-1},oncomment(e,t){Mf.comments&&cd({type:3,content:$f(e,t),loc:fd(e-4,t+3)})},onend(){const e=If.length;for(let t=0;t<Vf.length;t++)Qf(Vf[t],e-1),vd(24,Vf[t].loc.start.offset)},oncdata(e,t){0!==Vf[0].ns?Jf($f(e,t),e,t):vd(1,e-9)},onprocessinginstruction(e){0===(Vf[0]?Vf[0].ns:Mf.ns)&&vd(21,e-1)}}),qf=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Gf=/^\(|\)$/g;function Yf(e){const t=e.loc,n=e.content,r=n.match(Pf);if(!r)return;const[,o,i]=r,a=(e,n,r=!1)=>{const o=t.start.offset+n,i=o+e.length;return pd(e,!1,fd(o,i),0,r?1:0)},s={source:a(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=o.trim().replace(Gf,"").trim();const u=o.indexOf(l),c=l.match(qf);if(c){l=l.replace(qf,"").trim();const e=c[1].trim();let t;if(e&&(t=n.indexOf(e,u+l.length),s.key=a(e,t,!0)),c[2]){const r=c[2].trim();r&&(s.index=a(r,n.indexOf(r,s.key?t+e.length:u+l.length),!0))}}return l&&(s.value=a(l,u,!0)),s}function $f(e,t){return If.slice(e,t)}function Xf(e){Hf.inSFCRoot&&(Rf.innerLoc=fd(e+1,e+1)),cd(Rf);const{tag:t,ns:n}=Rf;0===n&&Mf.isPreTag(t)&&zf++,Mf.isVoidTag(t)?Qf(Rf,e):(Vf.unshift(Rf),1!==n&&2!==n||(Hf.inXML=!0)),Rf=null}function Jf(e,t,n){{const t=Vf[0]&&Vf[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=Mf.decodeEntities(e,!1))}const r=Vf[0]||Lf,o=r.children[r.children.length-1];o&&2===o.type?(o.content+=e,dd(o.loc,n)):r.children.push({type:2,content:e,loc:fd(t,n)})}function Qf(e,t,n=!1){dd(e.loc,n?ed(t,60):Zf(t,62)+1),Hf.inSFCRoot&&(e.children.length?e.innerLoc.end=f({},e.children[e.children.length-1].loc.end):e.innerLoc.end=f({},e.innerLoc.start),e.innerLoc.source=$f(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:o}=e;Uf||("slot"===r?e.tagType=2:nd(e)?e.tagType=3:rd(e)&&(e.tagType=1)),Hf.inRCDATA||(e.children=ad(e.children,e.tag)),0===o&&Mf.isPreTag(r)&&zf--,Kf===e&&(Uf=Hf.inVPre=!1,Kf=null),Hf.inXML&&0===(Vf[0]?Vf[0].ns:Mf.ns)&&(Hf.inXML=!1);{const t=e.props;if(!Hf.inSFCRoot&&nf("COMPILER_NATIVE_TEMPLATE",Mf)&&"template"===e.tag&&!nd(e)){const t=Vf[0]||Lf,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&rf("COMPILER_INLINE_TEMPLATE",Mf,n.loc)&&e.children.length&&(n.value={type:2,content:$f(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Zf(e,t){let n=e;while(If.charCodeAt(n)!==t&&n<If.length-1)n++;return n}function ed(e,t){let n=e;while(If.charCodeAt(n)!==t&&n>=0)n--;return n}const td=new Set(["if","else","else-if","for","slot"]);function nd({tag:e,props:t}){if("template"===e)for(let n=0;n<t.length;n++)if(7===t[n].type&&td.has(t[n].name))return!0;return!1}function rd({tag:e,props:t}){if(Mf.isCustomElement(e))return!1;if("component"===e||od(e.charCodeAt(0))||uf(e)||Mf.isBuiltInComponent&&Mf.isBuiltInComponent(e)||Mf.isNativeTag&&!Mf.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const e=t[n];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;if(rf("COMPILER_IS_ON_ELEMENT",Mf,e.loc))return!0}}else if("bind"===e.name&&bf(e.arg,"is")&&rf("COMPILER_IS_ON_ELEMENT",Mf,e.loc))return!0}return!1}function od(e){return e>64&&e<91}const id=/\r\n/g;function ad(e,t){const n="preserve"!==Mf.whitespace;let r=!1;for(let o=0;o<e.length;o++){const t=e[o];if(2===t.type)if(zf)t.content=t.content.replace(id,"\n");else if(sd(t.content)){const i=e[o-1]&&e[o-1].type,a=e[o+1]&&e[o+1].type;!i||!a||n&&(3===i&&(3===a||1===a)||1===i&&(3===a||1===a&&ld(t.content)))?(r=!0,e[o]=null):t.content=" "}else n&&(t.content=ud(t.content))}if(zf&&t&&Mf.isPreTag(t)){const t=e[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}return r?e.filter(Boolean):e}function sd(e){for(let t=0;t<e.length;t++)if(!Xc(e.charCodeAt(t)))return!1;return!0}function ld(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function ud(e){let t="",n=!1;for(let r=0;r<e.length;r++)Xc(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function cd(e){(Vf[0]||Lf).children.push(e)}function fd(e,t){return{start:Hf.getPos(e),end:null==t?t:Hf.getPos(t),source:null==t?t:$f(e,t)}}function dd(e,t){e.end=Hf.getPos(t),e.source=$f(e.start.offset,t)}function hd(e){const t={type:6,name:e.rawName,nameLoc:fd(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function pd(e,t=!1,n,r=0,o=0){const i=jc(e,t,n,r);return i}function vd(e,t,n){Mf.onError(sf(e,fd(t,t),void 0,n))}function gd(){Hf.reset(),Rf=null,jf=null,Df="",Bf=-1,Wf=-1,Vf.length=0}function md(e,t){if(gd(),If=e,Mf=f({},Nf),t){let e;for(e in t)null!=t[e]&&(Mf[e]=t[e])}Hf.mode="html"===Mf.parseMode?1:"sfc"===Mf.parseMode?2:0,Hf.inXML=1===Mf.ns||2===Mf.ns;const n=t&&t.delimiters;n&&(Hf.delimiterOpen=Qc(n[0]),Hf.delimiterClose=Qc(n[1]));const r=Lf=Nc([],e);return Hf.parse(If),r.loc=fd(0,e.length),r.children=ad(r.children),Lf=null,r}function yd(e,t){wd(e,t,bd(e,e.children[0]))}function bd(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!Sf(t)}function wd(e,t,n=!1){const{children:r}=e,o=r.length;let i=0;for(let a=0;a<r.length;a++){const e=r[a];if(1===e.type&&0===e.tagType){const r=n?0:Ad(e,t);if(r>0){if(r>=2){e.codegenNode.patchFlag=-1,e.codegenNode=t.hoist(e.codegenNode),i++;continue}}else{const n=e.codegenNode;if(13===n.type){const r=n.patchFlag;if((void 0===r||512===r||1===r)&&Sd(e,t)>=2){const r=_d(e);r&&(n.props=t.hoist(r))}n.dynamicProps&&(n.dynamicProps=t.hoist(n.dynamicProps))}}}if(1===e.type){const n=1===e.tagType;n&&t.scopes.vSlot++,wd(e,t),n&&t.scopes.vSlot--}else if(11===e.type)wd(e,t,1===e.children.length);else if(9===e.type)for(let n=0;n<e.branches.length;n++)wd(e.branches[n],t,1===e.branches[n].children.length)}if(i&&t.transformHoist&&t.transformHoist(r,t,e),i&&i===o&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&v(e.codegenNode.children)){const n=t.hoist(Lc(e.codegenNode.children));t.hmr&&(n.content=`[...${n.content}]`),e.codegenNode.children=n}}function Ad(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const o=e.codegenNode;if(13!==o.type)return 0;if(o.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===o.patchFlag){let r=3;const i=Sd(e,t);if(0===i)return n.set(e,0),0;i<r&&(r=i);for(let o=0;o<e.children.length;o++){const i=Ad(e.children[o],t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}if(r>1)for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&"bind"===i.name&&i.exp){const o=Ad(i.exp,t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}}if(o.isBlock){for(let t=0;t<e.props.length;t++){const r=e.props[t];if(7===r.type)return n.set(e,0),0}t.removeHelper($u),t.removeHelper(Hc(t.inSSR,o.isComponent)),o.isBlock=!1,t.helper(Vc(t.inSSR,o.isComponent))}return n.set(e,r),r}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Ad(e.content,t);case 4:return e.constType;case 8:let i=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(A(r)||x(r))continue;const o=Ad(r,t);if(0===o)return 0;o<i&&(i=o)}return i;default:return 0}}const xd=new Set([hc,pc,vc,gc]);function Cd(e,t){if(14===e.type&&!A(e.callee)&&xd.has(e.callee)){const n=e.arguments[0];if(4===n.type)return Ad(n,t);if(14===n.type)return Cd(n,t)}return 0}function Sd(e,t){let n=3;const r=_d(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:i}=e[r],a=Ad(o,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===i.type?Ad(i,t):14===i.type?Cd(i,t):0,0===s)return s;s<n&&(n=s)}}return n}function _d(e){const t=e.codegenNode;if(13===t.type)return t.props}function kd(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:o=!1,cacheHandlers:a=!1,nodeTransforms:l=[],directiveTransforms:u={},transformHoist:c=null,isBuiltInComponent:f=s,isCustomElement:d=s,expressionPlugins:h=[],scopeId:p=null,slotted:v=!0,ssr:g=!1,inSSR:m=!1,ssrCssVars:y="",bindingMetadata:b=i,inline:w=!1,isTS:x=!1,onError:C=of,onWarn:S=af,compatConfig:_}){const k=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={filename:t,selfName:k&&j(L(k[1])),prefixIdentifiers:n,hoistStatic:r,hmr:o,cacheHandlers:a,nodeTransforms:l,directiveTransforms:u,transformHoist:c,isBuiltInComponent:f,isCustomElement:d,expressionPlugins:h,scopeId:p,slotted:v,ssr:g,inSSR:m,ssrCssVars:y,bindingMetadata:b,inline:w,isTS:x,onError:C,onWarn:S,compatConfig:_,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){const t=E.helpers.get(e);if(t){const n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString(e){return`_${Fc[E.helper(e)]}`},replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){const t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:s,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){A(e)&&(e=jc(e)),E.hoists.push(e);const t=jc(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return Uc(E.cached++,e,t)}};return E.filters=new Set,E}function Ed(e,t){const n=kd(e,t);Td(e,n),t.hoistStatic&&yd(e,n),t.ssr||Od(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Od(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(bd(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&qc(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;q[64];0,e.codegenNode=Mc(t,n(Vu),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}function Fd(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const o=e.children[n];A(o)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Td(o,t))}}function Td(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(v(o)?r.push(...o):r.push(o)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(ec);break;case 5:t.ssr||t.helper(fc);break;case 9:for(let n=0;n<e.branches.length;n++)Td(e.branches[n],t);break;case 10:case 11:case 1:case 0:Fd(e,t);break}t.currentNode=e;let o=r.length;while(o--)r[o]()}function Pd(e,t){const n=A(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(xf))return;const i=[];for(let a=0;a<o.length;a++){const s=o[a];if(7===s.type&&n(s.name)){o.splice(a,1),a--;const n=t(e,s,r);n&&i.push(n)}}return i}}}const Nd="/*#__PURE__*/",Md=e=>`${Fc[e]}: _${Fc[e]}`;function Ld(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Fc[e]}`},push(e,t=-2,n){h.code+=e},indent(){p(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(e){h.push("\n"+"  ".repeat(e),0)}return h}function Id(e,t={}){const n=Ld(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:a,deindent:s,newline:l,scopeId:u,ssr:c}=n,f=Array.from(e.helpers),d=f.length>0,h=!i&&"module"!==r,p=n;Rd(e,p);const v=c?"ssrRender":"render",g=c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"],m=g.join(", ");if(o(`function ${v}(${m}) {`),a(),h&&(o("with (_ctx) {"),a(),d&&(o(`const { ${f.map(Md).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(jd(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(jd(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),jd(e.filters,"filter",n),l()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),l()),c||o("return "),e.codegenNode?zd(e.codegenNode,n):o("null"),h&&(s(),o("}")),s(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Rd(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,u=s,c=Array.from(e.helpers);if(c.length>0&&(o(`const _Vue = ${u}\n`,-1),e.hoists.length)){const e=[Qu,Zu,ec,tc,nc].filter((e=>c.includes(e))).map(Md).join(", ");o(`const { ${e} } = _Vue\n`,-1)}Dd(e.hoists,t),i(),o("return ")}function jd(e,t,{helper:n,push:r,newline:o,isTS:i}){const a=n("filter"===t?ac:"component"===t?rc:ic);for(let s=0;s<e.length;s++){let n=e[s];const l=n.endsWith("__self");l&&(n=n.slice(0,-6)),r(`const ${Ff(n,t)} = ${a}(${JSON.stringify(n)}${l?", true":""})${i?"!":""}`),s<e.length-1&&o()}}function Dd(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:a}=t;r();for(let s=0;s<e.length;s++){const o=e[s];o&&(n(`const _hoisted_${s+1} = `),zd(o,t),r())}t.pure=!1}function Bd(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Wd(e,t,n),n&&t.deindent(),t.push("]")}function Wd(e,t,n=!1,r=!0){const{push:o,newline:i}=t;for(let a=0;a<e.length;a++){const s=e[a];A(s)?o(s,-3):v(s)?Bd(s,t):zd(s,t),a<e.length-1&&(n?(r&&o(","),i()):r&&o(", "))}}function zd(e,t){if(A(e))t.push(e,-3);else if(x(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:zd(e.codegenNode,t);break;case 2:Ud(e,t);break;case 4:Kd(e,t);break;case 5:Vd(e,t);break;case 12:zd(e.codegenNode,t);break;case 8:Hd(e,t);break;case 3:Gd(e,t);break;case 13:Yd(e,t);break;case 14:Xd(e,t);break;case 15:Jd(e,t);break;case 17:Qd(e,t);break;case 18:Zd(e,t);break;case 19:eh(e,t);break;case 20:th(e,t);break;case 21:Wd(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:0}}function Ud(e,t){t.push(JSON.stringify(e.content),-3,e)}function Kd(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Vd(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Nd),n(`${r(fc)}(`),zd(e.content,t),n(")")}function Hd(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];A(r)?t.push(r,-3):zd(r,t)}}function qd(e,t){const{push:n}=t;if(8===e.type)n("["),Hd(e,t),n("]");else if(e.isStatic){const t=ff(e.content)?e.content:JSON.stringify(e.content);n(t,-2,e)}else n(`[${e.content}]`,-3,e)}function Gd(e,t){const{push:n,helper:r,pure:o}=t;o&&n(Nd),n(`${r(ec)}(${JSON.stringify(e.content)})`,-3,e)}function Yd(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:a,children:s,patchFlag:l,dynamicProps:u,directives:c,isBlock:f,disableTracking:d,isComponent:h}=e;let p;l&&(p=String(l)),c&&n(r(sc)+"("),f&&n(`(${r($u)}(${d?"true":""}), `),o&&n(Nd);const v=f?Hc(t.inSSR,h):Vc(t.inSSR,h);n(r(v)+"(",-2,e),Wd($d([i,a,s,p,u]),t),n(")"),f&&n(")"),c&&(n(", "),zd(c,t),n(")"))}function $d(e){let t=e.length;while(t--)if(null!=e[t])break;return e.slice(0,t+1).map((e=>e||"null"))}function Xd(e,t){const{push:n,helper:r,pure:o}=t,i=A(e.callee)?e.callee:r(e.callee);o&&n(Nd),n(i+"(",-2,e),Wd(e.arguments,t),n(")")}function Jd(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let l=0;l<a.length;l++){const{key:e,value:r}=a[l];qd(e,t),n(": "),zd(r,t),l<a.length-1&&(n(","),i())}s&&o(),n(s?"}":" }")}function Qd(e,t){Bd(e.elements,t)}function Zd(e,t){const{push:n,indent:r,deindent:o}=t,{params:i,returns:a,body:s,newline:l,isSlot:u}=e;u&&n(`_${Fc[Sc]}(`),n("(",-2,e),v(i)?Wd(i,t):i&&zd(i,t),n(") => "),(l||s)&&(n("{"),r()),a?(l&&n("return "),v(a)?Bd(a,t):zd(a,t)):s&&zd(s,t),(l||s)&&(o(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function eh(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:a,indent:s,deindent:l,newline:u}=t;if(4===n.type){const e=!ff(n.content);e&&a("("),Kd(n,t),e&&a(")")}else a("("),zd(n,t),a(")");i&&s(),t.indentLevel++,i||a(" "),a("? "),zd(r,t),t.indentLevel--,i&&u(),i||a(" "),a(": ");const c=19===o.type;c||t.indentLevel++,zd(o,t),c||t.indentLevel--,i&&l(!0)}function th(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:a}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(o(),n(`${r(Ac)}(-1),`),a(),n("(")),n(`_cache[${e.index}] = `),zd(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(Ac)}(1),`),a(),n(`_cache[${e.index}]`),i()),n(")")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const nh=Pd(/^(if|else|else-if)$/,((e,t,n)=>rh(e,t,n,((e,t,r)=>{const o=n.parent.children;let i=o.indexOf(e),a=0;while(i-- >=0){const e=o[i];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(r)e.codegenNode=ih(t,a,n);else{const r=sh(e.codegenNode);r.alternate=ih(t,a+e.branches.length-1,n)}}}))));function rh(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(sf(28,t.loc)),t.exp=jc("true",!1,r)}if("if"===t.name){const o=oh(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);while(i-- >=-1){const a=o[i];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(sf(30,e.loc)),n.removeNode();const o=oh(e,t);0,a.branches.push(o);const i=r&&r(a,o,!1);Td(o,n),i&&i(),n.currentNode=null}else n.onError(sf(30,e.loc));break}n.removeNode(a)}}}}function oh(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!mf(e,"for")?e.children:[e],userKey:yf(e,"key"),isTemplateIf:n}}function ih(e,t,n){return e.condition?zc(e.condition,ah(e,t,n),Bc(n.helper(ec),['""',"true"])):ah(e,t,n)}function ah(e,t,n){const{helper:r}=n,o=Rc("key",jc(`${t}`,!1,Pc,2)),{children:i}=e,a=i[0],s=1!==i.length||1!==a.type;if(s){if(1===i.length&&11===a.type){const e=a.codegenNode;return Ef(e,o,n),e}{let t=64;q[64];return Mc(n,r(Vu),Ic([o]),i,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=Tf(e);return 13===t.type&&qc(t,n),Ef(t,o,n),e}}function sh(e){while(1)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}const lh=(e,t,n)=>{const{modifiers:r,loc:o}=e,i=e.arg;let{exp:a}=e;if(a&&4===a.type&&!a.content.trim()&&(a=void 0),!a){if(4!==i.type||!i.isStatic)return n.onError(sf(52,i.loc)),{props:[Rc(i,jc("",!0,o))]};uh(e),a=e.exp}return 4!==i.type?(i.children.unshift("("),i.children.push(') || ""')):i.isStatic||(i.content=`${i.content} || ""`),r.includes("camel")&&(4===i.type?i.isStatic?i.content=L(i.content):i.content=`${n.helperString(yc)}(${i.content})`:(i.children.unshift(`${n.helperString(yc)}(`),i.children.push(")"))),n.inSSR||(r.includes("prop")&&ch(i,"."),r.includes("attr")&&ch(i,"^")),{props:[Rc(i,a)]}},uh=(e,t)=>{const n=e.arg,r=L(n.content);e.exp=jc(r,!1,n.loc)},ch=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},fh=Pd("for",((e,t,n)=>{const{helper:r,removeHelper:o}=n;return dh(e,t,n,(t=>{const i=Bc(r(lc),[t.source]),a=Cf(e),s=mf(e,"memo"),l=yf(e,"key",!1,!0);l&&7===l.type&&!l.exp&&uh(l);const u=l&&(6===l.type?l.value?jc(l.value.content,!0):void 0:l.exp),c=l&&u?Rc("key",u):null,f=4===t.source.type&&t.source.constType>0,d=f?64:l?128:256;return t.codegenNode=Mc(n,r(Vu),void 0,i,d,void 0,void 0,!0,!f,!1,e.loc),()=>{let l;const{children:d}=t;const h=1!==d.length||1!==d[0].type,p=Sf(e)?e:a&&1===e.children.length&&Sf(e.children[0])?e.children[0]:null;if(p?(l=p.codegenNode,a&&c&&Ef(l,c,n)):h?l=Mc(n,r(Vu),c?Ic([c]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=d[0].codegenNode,a&&c&&Ef(l,c,n),l.isBlock!==!f&&(l.isBlock?(o($u),o(Hc(n.inSSR,l.isComponent))):o(Vc(n.inSSR,l.isComponent))),l.isBlock=!f,l.isBlock?(r($u),r(Hc(n.inSSR,l.isComponent))):r(Vc(n.inSSR,l.isComponent))),s){const e=Wc(ph(t.parseResult,[jc("_cached")]));e.body=Kc([Dc(["const _memo = (",s.exp,")"]),Dc(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(Oc)}(_cached, _memo)) return _cached`]),Dc(["const _item = ",l]),jc("_item.memo = _memo"),jc("return _item")]),i.arguments.push(e,jc("_cache"),jc(String(n.cached++)))}else i.arguments.push(Wc(ph(t.parseResult),l,!0))}}))}));function dh(e,t,n,r){if(!t.exp)return void n.onError(sf(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(sf(32,t.loc));hh(o,n);const{addIdentifiers:i,removeIdentifiers:a,scopes:s}=n,{source:l,value:u,key:c,index:f}=o,d={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:o,children:Cf(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const h=r&&r(d);return()=>{s.vFor--,h&&h()}}function hh(e,t){e.finalized||(e.finalized=!0)}function ph({value:e,key:t,index:n},r=[]){return vh([e,t,n,...r])}function vh(e){let t=e.length;while(t--)if(e[t])break;return e.slice(0,t+1).map(((e,t)=>e||jc("_".repeat(t+1),!1)))}const gh=jc("undefined",!1),mh=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=mf(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},yh=(e,t,n,r)=>Wc(e,n,!1,!0,n.length?n[0].loc:r);function bh(e,t,n=yh){t.helper(Sc);const{children:r,loc:o}=e,i=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=mf(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!lf(e)&&(s=!0),i.push(Rc(e||jc("default",!0),n(t,void 0,r,o)))}let u=!1,c=!1;const f=[],d=new Set;let h=0;for(let g=0;g<r.length;g++){const e=r[g];let o;if(!Cf(e)||!(o=mf(e,"slot",!0))){3!==e.type&&f.push(e);continue}if(l){t.onError(sf(37,o.loc));break}u=!0;const{children:p,loc:v}=e,{arg:m=jc("default",!0),exp:y,loc:b}=o;let w;lf(m)?w=m?m.content:"default":s=!0;const A=mf(e,"for"),x=n(y,A,p,v);let C,S;if(C=mf(e,"if"))s=!0,a.push(zc(C.exp,wh(m,x,h++),gh));else if(S=mf(e,/^else(-if)?$/,!0)){let e,n=g;while(n--)if(e=r[n],3!==e.type)break;if(e&&Cf(e)&&mf(e,/^(else-)?if$/)){let e=a[a.length-1];while(19===e.alternate.type)e=e.alternate;e.alternate=S.exp?zc(S.exp,wh(m,x,h++),gh):wh(m,x,h++)}else t.onError(sf(30,S.loc))}else if(A){s=!0;const e=A.forParseResult;e?(hh(e,t),a.push(Bc(t.helper(lc),[e.source,Wc(ph(e),wh(m,x),!0)]))):t.onError(sf(32,A.loc))}else{if(w){if(d.has(w)){t.onError(sf(38,b));continue}d.add(w),"default"===w&&(c=!0)}i.push(Rc(m,x))}}if(!l){const e=(e,r)=>{const i=n(e,void 0,r,o);return t.compatConfig&&(i.isNonScopedSlot=!0),Rc("default",i)};u?f.length&&f.some((e=>xh(e)))&&(c?t.onError(sf(39,f[0].loc)):i.push(e(void 0,f))):i.push(e(void 0,r))}const p=s?2:Ah(e.children)?3:1;let v=Ic(i.concat(Rc("_",jc(p+"",!1))),o);return a.length&&(v=Bc(t.helper(cc),[v,Lc(a)])),{slots:v,hasDynamicSlots:s}}function wh(e,t,n){const r=[Rc("name",e),Rc("fn",t)];return null!=n&&r.push(Rc("key",jc(String(n),!0))),Ic(r)}function Ah(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||Ah(n.children))return!0;break;case 9:if(Ah(n.branches))return!0;break;case 10:case 11:if(Ah(n.children))return!0;break}}return!1}function xh(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():xh(e.content))}const Ch=new WeakMap,Sh=(e,t)=>function(){if(e=t.currentNode,1!==e.type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,o=1===e.tagType;let i=o?_h(e,t):`"${n}"`;const a=C(i)&&i.callee===oc;let s,l,u,c,f,d=0,h=a||i===Hu||i===qu||!o&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=kh(e,t,void 0,o,a);s=n.props,d=n.patchFlag,c=n.dynamicPropNames;const r=n.directives;f=r&&r.length?Lc(r.map((e=>Fh(e,t)))):void 0,n.shouldUseBlock&&(h=!0)}if(e.children.length>0){i===Gu&&(h=!0,d|=1024);const n=o&&i!==Hu&&i!==Gu;if(n){const{slots:n,hasDynamicSlots:r}=bh(e,t);l=n,r&&(d|=1024)}else if(1===e.children.length&&i!==Hu){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===Ad(n,t)&&(d|=1),l=o||2===r?n:e.children}else l=e.children}c&&c.length&&(u=Th(c)),e.codegenNode=Mc(t,i,s,l,0===d?void 0:d,u,f,!!h,!1,o,e.loc)};function _h(e,t,n=!1){let{tag:r}=e;const o=Ph(r),i=yf(e,"is",!1,!0);if(i)if(o||nf("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===i.type?e=i.value&&jc(i.value.content,!0):(e=i.exp,e||(e=jc("is",!1,i.arg.loc))),e)return Bc(t.helper(oc),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const a=uf(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(rc),t.components.add(r),Ff(r,"component"))}function kh(e,t,n=e.props,r,o,i=!1){const{tag:a,loc:s,children:l}=e;let c=[];const f=[],d=[],h=l.length>0;let p=!1,v=0,g=!1,m=!1,y=!1,b=!1,w=!1,A=!1;const C=[],S=e=>{c.length&&(f.push(Ic(Eh(c),s)),c=[]),e&&f.push(e)},_=()=>{t.scopes.vFor>0&&c.push(Rc(jc("ref_for",!0),jc("true")))},k=({key:e,value:n})=>{if(lf(e)){const i=e.content,a=u(i);if(!a||r&&!o||"onclick"===i.toLowerCase()||"onUpdate:modelValue"===i||T(i)||(b=!0),a&&T(i)&&(A=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&Ad(n,t)>0)return;"ref"===i?g=!0:"class"===i?m=!0:"style"===i?y=!0:"key"===i||C.includes(i)||C.push(i),!r||"class"!==i&&"style"!==i||C.includes(i)||C.push(i)}else w=!0};for(let u=0;u<n.length;u++){const o=n[u];if(6===o.type){const{loc:e,name:n,nameLoc:r,value:i}=o;let s=!0;if("ref"===n&&(g=!0,_()),"is"===n&&(Ph(a)||i&&i.content.startsWith("vue:")||nf("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Rc(jc(n,!0,r),jc(i?i.content:"",s,i?i.loc:e)))}else{const{name:n,arg:l,exp:u,loc:g,modifiers:m}=o,y="bind"===n,b="on"===n;if("slot"===n){r||t.onError(sf(40,g));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&bf(l,"is")&&(Ph(a)||nf("COMPILER_IS_ON_ELEMENT",t)))continue;if(b&&i)continue;if((y&&bf(l,"key")||b&&h&&bf(l,"vue:before-update"))&&(p=!0),y&&bf(l,"ref")&&_(),!l&&(y||b)){if(w=!0,u)if(y){if(_(),S(),nf("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(u);continue}f.push(u)}else S({type:14,loc:g,callee:t.helper(mc),arguments:r?[u]:[u,"true"]});else t.onError(sf(y?34:35,g));continue}y&&m.includes("prop")&&(v|=32);const A=t.directiveTransforms[n];if(A){const{props:n,needRuntime:r}=A(o,e,t);!i&&n.forEach(k),b&&l&&!lf(l)?S(Ic(n,s)):c.push(...n),r&&(d.push(o),x(r)&&Ch.set(o,r))}else P(n)||(d.push(o),h&&(p=!0))}}let E;if(f.length?(S(),E=f.length>1?Bc(t.helper(dc),f,s):f[0]):c.length&&(E=Ic(Eh(c),s)),w?v|=16:(m&&!r&&(v|=2),y&&!r&&(v|=4),C.length&&(v|=8),b&&(v|=32)),p||0!==v&&32!==v||!(g||A||d.length>0)||(v|=512),!t.inSSR&&E)switch(E.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<E.properties.length;t++){const o=E.properties[t].key;lf(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=E.properties[e],i=E.properties[n];r?E=Bc(t.helper(vc),[E]):(o&&!lf(o.value)&&(o.value=Bc(t.helper(hc),[o.value])),i&&(y||4===i.value.type&&"["===i.value.content.trim()[0]||17===i.value.type)&&(i.value=Bc(t.helper(pc),[i.value])));break;case 14:break;default:E=Bc(t.helper(vc),[Bc(t.helper(gc),[E])]);break}return{props:E,directives:d,patchFlag:v,dynamicPropNames:C,shouldUseBlock:p}}function Eh(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const o=e[r];if(8===o.key.type||!o.key.isStatic){n.push(o);continue}const i=o.key.content,a=t.get(i);a?("style"===i||"class"===i||u(i))&&Oh(a,o):(t.set(i,o),n.push(o))}return n}function Oh(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Lc([e.value,t.value],e.loc)}function Fh(e,t){const n=[],r=Ch.get(e);r?n.push(t.helperString(r)):(t.helper(ic),t.directives.add(e.name),n.push(Ff(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=jc("true",!1,o);n.push(Ic(e.modifiers.map((e=>Rc(e,t))),o))}return Lc(n,e.loc)}function Th(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Ph(e){return"component"===e||"Component"===e}const Nh=(e,t)=>{if(Sf(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=Mh(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let s=2;i&&(a[2]=i,s=3),n.length&&(a[3]=Wc([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=Bc(t.helper(uc),a,r)}};function Mh(e,t){let n,r='"default"';const o=[];for(let i=0;i<e.props.length;i++){const t=e.props[i];if(6===t.type)t.value&&("name"===t.name?r=JSON.stringify(t.value.content):(t.name=L(t.name),o.push(t)));else if("bind"===t.name&&bf(t.arg,"name")){if(t.exp)r=t.exp;else if(t.arg&&4===t.arg.type){const e=L(t.arg.content);r=t.exp=jc(e,!1,t.arg.loc)}}else"bind"===t.name&&t.arg&&lf(t.arg)&&(t.arg.content=L(t.arg.content)),o.push(t)}if(o.length>0){const{props:r,directives:i}=kh(e,t,o,!1,!1);n=r,i.length&&t.onError(sf(36,i[0].loc))}return{slotName:r,slotProps:n}}const Lh=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,Ih=(e,t,n,r)=>{const{loc:o,modifiers:i,arg:a}=e;let s;if(e.exp||i.length||n.onError(sf(35,o)),4===a.type)if(a.isStatic){let e=a.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);const n=0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?D(L(e)):`on:${e}`;s=jc(n,!0,a.loc)}else s=Dc([`${n.helperString(wc)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(wc)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=gf(l.content),t=!(e||Lh.test(l.content)),n=l.content.includes(";");0,(t||u&&e)&&(l=Dc([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let c={props:[Rc(s,l||jc("() => {}",!1,o))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach((e=>e.key.isHandlerKey=!0)),c},Rh=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(Af(t)){o=!0;for(let o=e+1;o<n.length;o++){const i=n[o];if(!Af(i)){r=void 0;break}r||(r=n[e]=Dc([t],t.loc)),r.children.push(" + ",i),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(Af(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==Ad(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:Bc(t.helper(tc),o)}}}}},jh=new WeakSet,Dh=(e,t)=>{if(1===e.type&&mf(e,"once",!0)){if(jh.has(e)||t.inVOnce||t.inSSR)return;return jh.add(e),t.inVOnce=!0,t.helper(Ac),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},Bh=(e,t,n)=>{const{exp:r,arg:o}=e;if(!r)return n.onError(sf(41,e.loc)),Wh();const i=r.loc.source,a=4===r.type?r.content:i,s=n.bindingMetadata[i];if("props"===s||"props-aliased"===s)return n.onError(sf(44,r.loc)),Wh();const l=!1;if(!a.trim()||!gf(a)&&!l)return n.onError(sf(42,r.loc)),Wh();const u=o||jc("modelValue",!0),c=o?lf(o)?`onUpdate:${L(o.content)}`:Dc(['"onUpdate:" + ',o]):"onUpdate:modelValue";let f;const d=n.isTS?"($event: any)":"$event";f=Dc([`${d} => ((`,r,") = $event)"]);const h=[Rc(u,e.exp),Rc(c,f)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(ff(e)?e:JSON.stringify(e))+": true")).join(", "),n=o?lf(o)?`${o.content}Modifiers`:Dc([o,' + "Modifiers"']):"modelModifiers";h.push(Rc(n,jc(`{ ${t} }`,!1,e.loc,2)))}return Wh(h)};function Wh(e=[]){return{props:e}}const zh=/[\w).+\-_$\]]/,Uh=(e,t)=>{nf("COMPILER_FILTERS",t)&&(5===e.type?Kh(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&Kh(e.exp,t)})))};function Kh(e,t){if(4===e.type)Vh(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"===typeof r&&(4===r.type?Vh(r,t):8===r.type?Kh(e,t):5===r.type&&Kh(r.content,t))}}function Vh(e,t){const n=e.content;let r,o,i,a,s=!1,l=!1,u=!1,c=!1,f=0,d=0,h=0,p=0,v=[];for(i=0;i<n.length;i++)if(o=r,r=n.charCodeAt(i),s)39===r&&92!==o&&(s=!1);else if(l)34===r&&92!==o&&(l=!1);else if(u)96===r&&92!==o&&(u=!1);else if(c)47===r&&92!==o&&(c=!1);else if(124!==r||124===n.charCodeAt(i+1)||124===n.charCodeAt(i-1)||f||d||h){switch(r){case 34:l=!0;break;case 39:s=!0;break;case 96:u=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--;break}if(47===r){let e,t=i-1;for(;t>=0;t--)if(e=n.charAt(t)," "!==e)break;e&&zh.test(e)||(c=!0)}}else void 0===a?(p=i+1,a=n.slice(0,i).trim()):g();function g(){v.push(n.slice(p,i).trim()),p=i+1}if(void 0===a?a=n.slice(0,i).trim():0!==p&&g(),v.length){for(i=0;i<v.length;i++)a=Hh(a,v[i],t);e.content=a,e.ast=void 0}}function Hh(e,t,n){n.helper(ac);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Ff(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${Ff(o,"filter")}(${e}${")"!==i?","+i:i}`}}const qh=new WeakSet,Gh=(e,t)=>{if(1===e.type){const n=mf(e,"memo");if(!n||qh.has(e))return;return qh.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&qc(r,t),e.codegenNode=Bc(t.helper(Ec),[n.exp,Wc(void 0,r),"_cache",String(t.cached++)]))}}};function Yh(e){return[[Dh,nh,Gh,fh,Uh,Nh,Sh,mh,Rh],{on:Ih,bind:lh,model:Bh}]}function $h(e,t={}){const n=t.onError||of,r="module"===t.mode;!0===t.prefixIdentifiers?n(sf(47)):r&&n(sf(48));const o=!1;t.cacheHandlers&&n(sf(49)),t.scopeId&&!r&&n(sf(50));const i=f({},t,{prefixIdentifiers:o}),a=A(e)?md(e,i):e,[s,l]=Yh();return Ed(a,f({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:f({},l,t.directiveTransforms||{})})),Id(a,i)}const Xh=()=>({props:[]}),Jh=Symbol(""),Qh=Symbol(""),Zh=Symbol(""),ep=Symbol(""),tp=Symbol(""),np=Symbol(""),rp=Symbol(""),op=Symbol(""),ip=Symbol(""),ap=Symbol("");let sp;function lp(e,t=!1){return sp||(sp=document.createElement("div")),t?(sp.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,sp.children[0].getAttribute("foo")):(sp.innerHTML=e,sp.textContent)}Tc({[Jh]:"vModelRadio",[Qh]:"vModelCheckbox",[Zh]:"vModelText",[ep]:"vModelSelect",[tp]:"vModelDynamic",[np]:"withModifiers",[rp]:"withKeys",[op]:"vShow",[ip]:"Transition",[ap]:"TransitionGroup"});const up={parseMode:"html",isVoidTag:ue,isNativeTag:e=>ae(e)||se(e)||le(e),isPreTag:e=>"pre"===e,decodeEntities:lp,isBuiltInComponent:e=>"Transition"===e||"transition"===e?ip:"TransitionGroup"===e||"transition-group"===e?ap:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},cp=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:jc("style",!0,t.loc),exp:fp(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},fp=(e,t)=>{const n=Z(e);return jc(JSON.stringify(n),!1,t,3)};function dp(e,t){return sf(e,t,void 0)}const hp=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(dp(53,o)),t.children.length&&(n.onError(dp(54,o)),t.children.length=0),{props:[Rc(jc("innerHTML",!0,o),r||jc("",!0))]}},pp=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(dp(55,o)),t.children.length&&(n.onError(dp(56,o)),t.children.length=0),{props:[Rc(jc("textContent",!0),r?Ad(r,n)>0?r:Bc(n.helperString(fc),[r],o):jc("",!0))]}},vp=(e,t,n)=>{const r=Bh(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(dp(58,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||i){let a=Zh,s=!1;if("input"===o||i){const r=yf(t,"type");if(r){if(7===r.type)a=tp;else if(r.value)switch(r.value.content){case"radio":a=Jh;break;case"checkbox":a=Qh;break;case"file":s=!0,n.onError(dp(59,e.loc));break;default:break}}else wf(t)&&(a=tp)}else"select"===o&&(a=ep);s||(r.needRuntime=n.helper(a))}else n.onError(dp(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},gp=o("passive,once,capture"),mp=o("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),yp=o("left,right"),bp=o("onkeyup,onkeydown,onkeypress",!0),wp=(e,t,n,r)=>{const o=[],i=[],a=[];for(let s=0;s<t.length;s++){const l=t[s];"native"===l&&rf("COMPILER_V_ON_NATIVE",n,r)||gp(l)?a.push(l):yp(l)?lf(e)?bp(e.content)?o.push(l):i.push(l):(o.push(l),i.push(l)):mp(l)?i.push(l):o.push(l)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:a}},Ap=(e,t)=>{const n=lf(e)&&"onclick"===e.content.toLowerCase();return n?jc(t,!0):4!==e.type?Dc(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e},xp=(e,t,n)=>Ih(e,t,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:o,value:i}=t.props[0];const{keyModifiers:a,nonKeyModifiers:s,eventOptionModifiers:l}=wp(o,r,n,e.loc);if(s.includes("right")&&(o=Ap(o,"onContextmenu")),s.includes("middle")&&(o=Ap(o,"onMouseup")),s.length&&(i=Bc(n.helper(np),[i,JSON.stringify(s)])),!a.length||lf(o)&&!bp(o.content)||(i=Bc(n.helper(rp),[i,JSON.stringify(a)])),l.length){const e=l.map(j).join("");o=lf(o)?jc(`${o.content}${e}`,!0):Dc(["(",o,`) + "${e}"`])}return{props:[Rc(o,i)]}})),Cp=(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(dp(61,o)),{props:[],needRuntime:n.helper(op)}};const Sp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},_p=[cp],kp={cloak:Xh,html:hp,text:pp,model:vp,on:xp,show:Cp};function Ep(e,t={}){return $h(e,f({},up,t,{nodeTransforms:[Sp,..._p,...t.nodeTransforms||[]],directiveTransforms:f({},kp,t.directiveTransforms||{}),transformHoist:null}))}const Op=new WeakMap;function Fp(e){let t=Op.get(null!=e?e:i);return t||(t=Object.create(null),Op.set(null!=e?e:i,t)),t}function Tp(e,t){if(!A(e)){if(!e.nodeType)return s;e=e.innerHTML}const n=e,o=Fp(t),i=o[n];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const a=f({hoistStatic:!0,onError:void 0,onWarn:s},t);a.isCustomElement||"undefined"===typeof customElements||(a.isCustomElement=e=>!!customElements.get(e));const{code:l}=Ep(e,a);const u=new Function("Vue",l)(r);return u._rc=!0,o[n]=u}As(Tp)},4633:function(e,t,n){var r=n(73738)["default"];function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new M(r||[]);return s(i,"_invoke",{value:F(e,n,a)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var v="suspendedStart",g="suspendedYield",m="executing",y="completed",b={};function w(){}function A(){}function x(){}var C={};d(C,u,(function(){return this}));var S=Object.getPrototypeOf,_=S&&S(S(L([])));_&&_!==i&&a.call(_,u)&&(C=_);var k=x.prototype=w.prototype=Object.create(C);function E(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(o,i,s,l){var u=p(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(f).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var o;s(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function F(e,n,r){var o=v;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=T(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===v)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=p(e,n,r);if("normal"===u.type){if(o=r.done?y:g,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function T(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return A.prototype=x,s(k,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:A,configurable:!0}),A.displayName=d(x,f,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,d(e,f,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},E(O.prototype),d(O.prototype,c,(function(){return this})),n.AsyncIterator=O,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new O(h(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(k),d(k,f,"Generator"),d(k,u,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=L,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},73738:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports["default"]=e.exports},54756:function(e,t,n){var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},43145:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:function(){return r}})},96369:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:function(){return r}})},10467:function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)}))}}n.d(t,{A:function(){return o}})},64467:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(98406);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},73893:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:function(){return r}})},76562:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return r}})},89379:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},82305:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function o(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{A:function(){return o}})},80641:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(96369);function o(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw o}}return s}}var i=n(27800),a=n(76562);function s(e,t){return(0,r.A)(e)||o(e,t)||(0,i.A)(e,t)||(0,a.A)()}},38339:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(43145);function o(e){if(Array.isArray(e))return(0,r.A)(e)}var i=n(73893),a=n(27800);function s(){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 l(e){return o(e)||(0,i.A)(e)||(0,a.A)(e)||s()}},98406:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function i(e){var t=o(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:function(){return r}})},27800:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},94335:function(e,t,n){"use strict";n.d(t,{A:function(){return mn}});var r={};function o(e,t){return function(){return e.apply(t,arguments)}}n.r(r),n.d(r,{hasBrowserEnv:function(){return De},hasStandardBrowserEnv:function(){return Be},hasStandardBrowserWebWorkerEnv:function(){return We},origin:function(){return ze}});const{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,s=(e=>t=>{const n=i.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),l=e=>(e=e.toLowerCase(),t=>s(t)===e),u=e=>t=>typeof t===e,{isArray:c}=Array,f=u("undefined");function d(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const h=l("ArrayBuffer");function p(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t}const v=u("string"),g=u("function"),m=u("number"),y=e=>null!==e&&"object"===typeof e,b=e=>!0===e||!1===e,w=e=>{if("object"!==s(e))return!1;const t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A=l("Date"),x=l("File"),C=l("Blob"),S=l("FileList"),_=e=>y(e)&&g(e.pipe),k=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=s(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},E=l("URLSearchParams"),[O,F,T,P]=["ReadableStream","Request","Response","Headers"].map(l),N=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,o;if("object"!==typeof e&&(e=[e]),c(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function L(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;while(o-- >0)if(r=n[o],t===r.toLowerCase())return r;return null}const I=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),R=e=>!f(e)&&e!==I;function j(){const{caseless:e}=R(this)&&this||{},t={},n=(n,r)=>{const o=e&&L(t,r)||r;w(t[o])&&w(n)?t[o]=j(t[o],n):w(n)?t[o]=j({},n):c(n)?t[o]=n.slice():t[o]=n};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&M(arguments[r],n);return t}const D=(e,t,n,{allOwnKeys:r}={})=>(M(t,((t,r)=>{n&&g(t)?e[r]=o(t,n):e[r]=t}),{allOwnKeys:r}),e),B=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),W=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},z=(e,t,n,r)=>{let o,i,s;const l={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),i=o.length;while(i-- >0)s=o[i],r&&!r(s,e,t)||l[s]||(t[s]=e[s],l[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},U=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},K=e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},V=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&a(Uint8Array)),H=(e,t)=>{const n=e&&e[Symbol.iterator],r=n.call(e);let o;while((o=r.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},q=(e,t)=>{let n;const r=[];while(null!==(n=e.exec(t)))r.push(n);return r},G=l("HTMLFormElement"),Y=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),$=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),X=l("RegExp"),J=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};M(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Q=e=>{J(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},Z=(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return c(e)?r(e):r(String(e).split(t)),n},ee=()=>{},te=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ne="abcdefghijklmnopqrstuvwxyz",re="0123456789",oe={DIGIT:re,ALPHA:ne,ALPHA_DIGIT:ne+ne.toUpperCase()+re},ie=(e=16,t=oe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;while(e--)n+=t[Math.random()*r|0];return n};function ae(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const se=e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=c(e)?[]:{};return M(e,((e,t)=>{const i=n(e,r+1);!f(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},le=l("AsyncFunction"),ue=e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch),ce=((e,t)=>e?setImmediate:t?((e,t)=>(I.addEventListener("message",(({source:n,data:r})=>{n===I&&r===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),I.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"===typeof setImmediate,g(I.postMessage)),fe="undefined"!==typeof queueMicrotask?queueMicrotask.bind(I):"undefined"!==typeof process&&process.nextTick||ce;var de={isArray:c,isArrayBuffer:h,isBuffer:d,isFormData:k,isArrayBufferView:p,isString:v,isNumber:m,isBoolean:b,isObject:y,isPlainObject:w,isReadableStream:O,isRequest:F,isResponse:T,isHeaders:P,isUndefined:f,isDate:A,isFile:x,isBlob:C,isRegExp:X,isFunction:g,isStream:_,isURLSearchParams:E,isTypedArray:V,isFileList:S,forEach:M,merge:j,extend:D,trim:N,stripBOM:B,inherits:W,toFlatObject:z,kindOf:s,kindOfTest:l,endsWith:U,toArray:K,forEachEntry:H,matchAll:q,isHTMLForm:G,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:J,freezeMethods:Q,toObjectSet:Z,toCamelCase:Y,noop:ee,toFiniteNumber:te,findKey:L,global:I,isContextDefined:R,ALPHABET:oe,generateString:ie,isSpecCompliantForm:ae,toJSONObject:se,isAsyncFn:le,isThenable:ue,setImmediate:ce,asap:fe};function he(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}de.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const pe=he.prototype,ve={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ve[e]={value:e}})),Object.defineProperties(he,ve),Object.defineProperty(pe,"isAxiosError",{value:!0}),he.from=(e,t,n,r,o,i)=>{const a=Object.create(pe);return de.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),he.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var ge=he,me=null;function ye(e){return de.isPlainObject(e)||de.isArray(e)}function be(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map((function(e,t){return e=be(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Ae(e){return de.isArray(e)&&!e.some(ye)}const xe=de.toFlatObject(de,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ce(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new(me||FormData),n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!de.isUndefined(t[e])}));const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=n.Blob||"undefined"!==typeof Blob&&Blob,l=s&&de.isSpecCompliantForm(t);if(!de.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(de.isDate(e))return e.toISOString();if(!l&&de.isBlob(e))throw new ge("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(e)||de.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(de.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(de.isArray(e)&&Ae(e)||(de.isFileList(e)||de.endsWith(n,"[]"))&&(s=de.toArray(e)))return n=be(n),s.forEach((function(e,r){!de.isUndefined(e)&&null!==e&&t.append(!0===a?we([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!ye(e)||(t.append(we(o,n,i),u(e)),!1)}const f=[],d=Object.assign(xe,{defaultVisitor:c,convertValue:u,isVisitable:ye});function h(e,n){if(!de.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+n.join("."));f.push(e),de.forEach(e,(function(e,r){const i=!(de.isUndefined(e)||null===e)&&o.call(t,e,de.isString(r)?r.trim():r,n,d);!0===i&&h(e,n?n.concat(r):[r])})),f.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return h(e),t}var Se=Ce;function _e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ke(e,t){this._pairs=[],e&&Se(e,this,t)}const Ee=ke.prototype;Ee.append=function(e,t){this._pairs.push([e,t])},Ee.toString=function(e){const t=e?function(t){return e.call(this,t,_e)}:_e;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Oe=ke;function Fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Te(e,t,n){if(!t)return e;const r=n&&n.encode||Fe,o=n&&n.serialize;let i;if(i=o?o(t,n):de.isURLSearchParams(t)?t.toString():new Oe(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}class Pe{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){de.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ne=Pe,Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Le="undefined"!==typeof URLSearchParams?URLSearchParams:Oe,Ie="undefined"!==typeof FormData?FormData:null,Re="undefined"!==typeof Blob?Blob:null,je={isBrowser:!0,classes:{URLSearchParams:Le,FormData:Ie,Blob:Re},protocols:["http","https","file","blob","url","data"]};const De="undefined"!==typeof window&&"undefined"!==typeof document,Be=(e=>De&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),We=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),ze=De&&window.location.href||"http://localhost";var Ue={...r,...je};function Ke(e,t){return Se(e,new Ue.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ue.isNode&&de.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function Ve(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function He(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function qe(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&de.isArray(r)?r.length:i,s)return de.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&de.isObject(r[i])||(r[i]=[]);const l=t(e,n,r[i],o);return l&&de.isArray(r[i])&&(r[i]=He(r[i])),!a}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,((e,r)=>{t(Ve(e),r,n,0)})),n}return null}var Ge=qe;function Ye(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}const $e={transitional:Me,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=de.isObject(e);o&&de.isHTMLForm(e)&&(e=new FormData(e));const i=de.isFormData(e);if(i)return r?JSON.stringify(Ge(e)):e;if(de.isArrayBuffer(e)||de.isBuffer(e)||de.isStream(e)||de.isFile(e)||de.isBlob(e)||de.isReadableStream(e))return e;if(de.isArrayBufferView(e))return e.buffer;if(de.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ke(e,this.formSerializer).toString();if((a=de.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Se(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),Ye(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(de.isResponse(e)||de.isReadableStream(e))return e;if(e&&de.isString(e)&&(n&&!this.responseType||r)){const n=t&&t.silentJSONParsing,i=!n&&r;try{return JSON.parse(e)}catch(o){if(i){if("SyntaxError"===o.name)throw ge.from(o,ge.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ue.classes.FormData,Blob:Ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));var Xe=$e;const Je=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Qe=e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Je[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t};const Ze=Symbol("internals");function et(e){return e&&String(e).trim().toLowerCase()}function tt(e){return!1===e||null==e?e:de.isArray(e)?e.map(tt):String(e)}function nt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(e))t[r[1]]=r[2];return t}const rt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ot(e,t,n,r,o){return de.isFunction(r)?r.call(this,t,n):(o&&(t=n),de.isString(t)?de.isString(r)?-1!==t.indexOf(r):de.isRegExp(r)?r.test(t):void 0:void 0)}function it(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function at(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}class st{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=et(t);if(!o)throw new Error("header name must be a non-empty string");const i=de.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=tt(e))}const i=(e,t)=>de.forEach(e,((e,n)=>o(e,n,t)));if(de.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(de.isString(e)&&(e=e.trim())&&!rt(e))i(Qe(e),t);else if(de.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=et(e),e){const n=de.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return nt(e);if(de.isFunction(t))return t.call(this,e,n);if(de.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=et(e),e){const n=de.findKey(this,e);return!(!n||void 0===this[n]||t&&!ot(this,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=et(e),e){const o=de.findKey(n,e);!o||t&&!ot(n,n[o],o,t)||(delete n[o],r=!0)}}return de.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;while(n--){const o=t[n];e&&!ot(this,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return de.forEach(this,((r,o)=>{const i=de.findKey(n,o);if(i)return t[i]=tt(r),void delete t[o];const a=e?it(o):String(o).trim();a!==o&&delete t[o],t[a]=tt(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return de.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&de.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[Ze]=this[Ze]={accessors:{}},n=t.accessors,r=this.prototype;function o(e){const t=et(e);n[t]||(at(r,e),n[t]=!0)}return de.isArray(e)?e.forEach(o):o(e),this}}st.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(st.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),de.freezeMethods(st);var lt=st;function ut(e,t){const n=this||Xe,r=t||n,o=lt.from(r.headers);let i=r.data;return de.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ct(e){return!(!e||!e.__CANCEL__)}function ft(e,t,n){ge.call(this,null==e?"canceled":e,ge.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(ft,ge,{__CANCEL__:!0});var dt=ft;function ht(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ge("Request failed with status code "+n.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function pt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,f=0;while(c!==i)f+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const d=u&&l-u;return d?Math.round(1e3*f/d):void 0}}var gt=vt;function mt(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)},s=(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},l=()=>n&&a(n);return[s,l]}var yt=mt;const bt=(e,t,n=3)=>{let r=0;const o=gt(50,250);return yt((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s),u=i<=a;r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0};e(c)}),n)},wt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},At=e=>(...t)=>de.asap((()=>e(...t)));var xt=Ue.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=de.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Ct=Ue.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),de.isString(r)&&a.push("path="+r),de.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function St(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _t(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kt(e,t){return e&&!St(t)?_t(e,t):t}const Et=e=>e instanceof lt?{...e}:e;function Ot(e,t){t=t||{};const n={};function r(e,t,n){return de.isPlainObject(e)&&de.isPlainObject(t)?de.merge.call({caseless:n},e,t):de.isPlainObject(t)?de.merge({},t):de.isArray(t)?t.slice():t}function o(e,t,n){return de.isUndefined(t)?de.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!de.isUndefined(t))return r(void 0,t)}function a(e,t){return de.isUndefined(t)?de.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Et(e),Et(t),!0)};return de.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);de.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Ft=e=>{const t=Ot({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=lt.from(s),t.url=Te(kt(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),de.isFormData(r))if(Ue.hasStandardBrowserEnv||Ue.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Ue.hasStandardBrowserEnv&&(o&&de.isFunction(o)&&(o=o(t)),o||!1!==o&&xt(t.url))){const e=i&&a&&Ct.read(a);e&&s.set(i,e)}return t};const Tt="undefined"!==typeof XMLHttpRequest;var Pt=Tt&&function(e){return new Promise((function(t,n){const r=Ft(e);let o=r.data;const i=lt.from(r.headers).normalize();let a,s,l,u,c,{responseType:f,onUploadProgress:d,onDownloadProgress:h}=r;function p(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let v=new XMLHttpRequest;function g(){if(!v)return;const r=lt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),o=f&&"text"!==f&&"json"!==f?v.response:v.responseText,i={data:o,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};ht((function(e){t(e),p()}),(function(e){n(e),p()}),i),v=null}v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout,"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(g)},v.onabort=function(){v&&(n(new ge("Request aborted",ge.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new ge("Network Error",ge.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Me;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ge(t,o.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,v)),v=null},void 0===o&&i.setContentType(null),"setRequestHeader"in v&&de.forEach(i.toJSON(),(function(e,t){v.setRequestHeader(t,e)})),de.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),f&&"json"!==f&&(v.responseType=r.responseType),h&&([l,c]=bt(h,!0),v.addEventListener("progress",l)),d&&v.upload&&([s,u]=bt(d),v.upload.addEventListener("progress",s),v.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{v&&(n(!t||t.type?new dt(null,e,v):t),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=pt(r.url);m&&-1===Ue.protocols.indexOf(m)?n(new ge("Unsupported protocol "+m+":",ge.ERR_BAD_REQUEST,e)):v.send(o||null)}))};const Nt=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ge?t:new dt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new ge(`timeout ${t} of ms exceeded`,ge.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]};var Mt=Nt;const Lt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;while(o<n)r=o+t,yield e.slice(o,r),o=r},It=async function*(e,t,n){for await(const r of e)yield*Lt(ArrayBuffer.isView(r)?r:await n(String(r)),t)},Rt=(e,t,n,r,o)=>{const i=It(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel(e){return l(e),i.return()}},{highWaterMark:2})},jt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Dt=jt&&"function"===typeof ReadableStream,Bt=jt&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wt=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},zt=Dt&&Wt((()=>{let e=!1;const t=new Request(Ue.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ut=65536,Kt=Dt&&Wt((()=>de.isReadableStream(new Response("").body))),Vt={stream:Kt&&(e=>e.body)};jt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Vt[t]&&(Vt[t]=de.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ge(`Response type '${t}' is not supported`,ge.ERR_NOT_SUPPORT,n)})}))})(new Response);const Ht=async e=>null==e?0:de.isBlob(e)?e.size:de.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:de.isArrayBufferView(e)||de.isArrayBuffer(e)?e.byteLength:(de.isURLSearchParams(e)&&(e+=""),de.isString(e)?(await Bt(e)).byteLength:void 0),qt=async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return null==n?Ht(t):n};var Gt=jt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Ft(e);u=u?(u+"").toLowerCase():"text";let h,p,[v,g]=o||i||a?Mt([o,i],a):[];const m=()=>{!h&&setTimeout((()=>{v&&v.unsubscribe()})),h=!0};let y;try{if(l&&zt&&"get"!==n&&"head"!==n&&0!==(y=await qt(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(de.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=wt(y,bt(At(l)));r=Rt(n.body,Ut,e,t,Bt)}}de.isString(f)||(f=f?"include":"omit"),p=new Request(t,{...d,signal:v,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:f});let o=await fetch(p);const i=Kt&&("stream"===u||"response"===u);if(Kt&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=de.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&wt(t,bt(At(s),!0))||[];o=new Response(Rt(o.body,Ut,n,(()=>{r&&r(),i&&m()}),Bt),e)}u=u||"text";let a=await Vt[de.findKey(Vt,u)||"text"](o,e);return!i&&m(),g&&g(),await new Promise(((t,n)=>{ht(t,n,{data:a,headers:lt.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(b){if(m(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new ge("Network Error",ge.ERR_NETWORK,e,p),{cause:b.cause||b});throw ge.from(b,b&&b.code,e,p)}});const Yt={http:me,xhr:Pt,fetch:Gt};de.forEach(Yt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const $t=e=>`- ${e}`,Xt=e=>de.isFunction(e)||null===e||!1===e;var Jt={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Xt(n)&&(r=Yt[(t=String(n)).toLowerCase()],void 0===r))throw new ge(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map($t).join("\n"):" "+$t(e[0]):"as no adapter specified";throw new ge("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r},adapters:Yt};function Qt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dt(null,e)}function Zt(e){Qt(e),e.headers=lt.from(e.headers),e.data=ut.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=Jt.getAdapter(e.adapter||Xe.adapter);return t(e).then((function(t){return Qt(e),t.data=ut.call(e,e.transformResponse,t),t.headers=lt.from(t.headers),t}),(function(t){return ct(t)||(Qt(e),t&&t.response&&(t.response.data=ut.call(e,e.transformResponse,t.response),t.response.headers=lt.from(t.response.headers))),Promise.reject(t)}))}const en="1.7.3",tn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{tn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const nn={};function rn(e,t,n){if("object"!==typeof e)throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;while(o-- >0){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new ge("option "+i+" must be "+n,ge.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ge("Unknown option "+i,ge.ERR_BAD_OPTION)}}tn.transitional=function(e,t,n){function r(e,t){return"[Axios v"+en+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ge(r(o," has been removed"+(t?" in "+t:"")),ge.ERR_DEPRECATED);return t&&!nn[o]&&(nn[o]=!0),!e||e(n,o,i)}};var on={assertOptions:rn,validators:tn};const an=on.validators;class sn{constructor(e){this.defaults=e,this.interceptors={request:new Ne,response:new Ne}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Ot(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&on.assertOptions(n,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),null!=r&&(de.isFunction(r)?t.paramsSerializer={serialize:r}:on.assertOptions(r,{encode:an.function,serialize:an.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&de.merge(o.common,o[t.method]);o&&de.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=lt.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,f=0;if(!s){const e=[Zt.bind(this),void 0];e.unshift.apply(e,a),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);while(f<c)u=u.then(e[f++],e[f++]);return u}c=a.length;let d=t;f=0;while(f<c){const e=a[f++],t=a[f++];try{d=e(d)}catch(h){t.call(this,h);break}}try{u=Zt.call(this,d)}catch(h){return Promise.reject(h)}f=0,c=l.length;while(f<c)u=u.then(l[f++],l[f++]);return u}getUri(e){e=Ot(this.defaults,e);const t=kt(e.baseURL,e.url);return Te(t,e.params,e.paramsSerializer)}}de.forEach(["delete","get","head","options"],(function(e){sn.prototype[e]=function(t,n){return this.request(Ot(n||{},{method:e,url:t,data:(n||{}).data}))}})),de.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ot(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}sn.prototype[e]=t(),sn.prototype[e+"Form"]=t(!0)}));var ln=sn;class un{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new dt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new un((function(t){e=t}));return{token:t,cancel:e}}}var cn=un;function fn(e){return function(t){return e.apply(null,t)}}function dn(e){return de.isObject(e)&&!0===e.isAxiosError}const hn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hn).forEach((([e,t])=>{hn[t]=e}));var pn=hn;function vn(e){const t=new ln(e),n=o(ln.prototype.request,t);return de.extend(n,ln.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return vn(Ot(e,t))},n}const gn=vn(Xe);gn.Axios=ln,gn.CanceledError=dt,gn.CancelToken=cn,gn.isCancel=ct,gn.VERSION=en,gn.toFormData=Se,gn.AxiosError=ge,gn.Cancel=gn.CanceledError,gn.all=function(e){return Promise.all(e)},gn.spread=fn,gn.isAxiosError=dn,gn.mergeConfig=Ot,gn.AxiosHeaders=lt,gn.formToJSON=e=>Ge(de.isHTMLForm(e)?new FormData(e):e),gn.getAdapter=Jt.getAdapter,gn.HttpStatusCode=pn,gn.default=gn;var mn=gn},18987:function(e,t,n){"use strict";
/*! js-cookie v3.0.5 | MIT */
function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:function(){return a}});var o={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function i(e,t){function n(n,o,i){if("undefined"!==typeof document){i=r({},t,i),"number"===typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=n+"="+e.write(o,n)+a}}function o(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=e.read(a,s),t===s)break}catch(l){}}return t?r[t]:r}}return Object.create({set:n,get:o,remove:function(e,t){n(e,"",r({},t,{expires:-1}))},withAttributes:function(e){return i(this.converter,r({},this.attributes,e))},withConverter:function(e){return i(r({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var a=i(o,{path:"/"})},80127:function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(t,{A:function(){return b}});var o=r,i=n(66984);function a(e,t){var n=e.length;while(n--)if((0,i.A)(e[n][0],t))return n;return-1}var s=a,l=Array.prototype,u=l.splice;function c(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():u.call(t,n,1),--this.size,!0}var f=c;function d(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var h=d;function p(e){return s(this.__data__,e)>-1}var v=p;function g(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var m=g;function y(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}y.prototype.clear=o,y.prototype["delete"]=f,y.prototype.get=h,y.prototype.has=v,y.prototype.set=m;var b=y},68335:function(e,t,n){"use strict";var r=n(18744),o=n(41917),i=(0,r.A)(o.A,"Map");t.A=i},29471:function(e,t,n){"use strict";n.d(t,{A:function(){return z}});var r=n(18744),o=(0,r.A)(Object,"create"),i=o;function a(){this.__data__=i?i(null):{},this.size=0}var s=a;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var u=l,c="__lodash_hash_undefined__",f=Object.prototype,d=f.hasOwnProperty;function h(e){var t=this.__data__;if(i){var n=t[e];return n===c?void 0:n}return d.call(t,e)?t[e]:void 0}var p=h,v=Object.prototype,g=v.hasOwnProperty;function m(e){var t=this.__data__;return i?void 0!==t[e]:g.call(t,e)}var y=m,b="__lodash_hash_undefined__";function w(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?b:t,this}var A=w;function x(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}x.prototype.clear=s,x.prototype["delete"]=u,x.prototype.get=p,x.prototype.has=y,x.prototype.set=A;var C=x,S=n(80127),_=n(68335);function k(){this.size=0,this.__data__={hash:new C,map:new(_.A||S.A),string:new C}}var E=k;function O(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var F=O;function T(e,t){var n=e.__data__;return F(t)?n["string"==typeof t?"string":"hash"]:n.map}var P=T;function N(e){var t=P(this,e)["delete"](e);return this.size-=t?1:0,t}var M=N;function L(e){return P(this,e).get(e)}var I=L;function R(e){return P(this,e).has(e)}var j=R;function D(e,t){var n=P(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var B=D;function W(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}W.prototype.clear=E,W.prototype["delete"]=M,W.prototype.get=I,W.prototype.has=j,W.prototype.set=B;var z=W},39857:function(e,t,n){"use strict";var r=n(18744),o=n(41917),i=(0,r.A)(o.A,"Set");t.A=i},11754:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(80127);function o(){this.__data__=new r.A,this.size=0}var i=o;function a(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var s=a;function l(e){return this.__data__.get(e)}var u=l;function c(e){return this.__data__.has(e)}var f=c,d=n(68335),h=n(29471),p=200;function v(e,t){var n=this.__data__;if(n instanceof r.A){var o=n.__data__;if(!d.A||o.length<p-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new h.A(o)}return n.set(e,t),this.size=n.size,this}var g=v;function m(e){var t=this.__data__=new r.A(e);this.size=t.size}m.prototype.clear=i,m.prototype["delete"]=s,m.prototype.get=u,m.prototype.has=f,m.prototype.set=g;var y=m},241:function(e,t,n){"use strict";var r=n(41917),o=r.A.Symbol;t.A=o},43988:function(e,t,n){"use strict";var r=n(41917),o=r.A.Uint8Array;t.A=o},83607:function(e,t,n){"use strict";function r(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}n.d(t,{A:function(){return h}});var o=r,i=n(52274),a=n(92049),s=n(99912),l=n(25353),u=n(33858),c=Object.prototype,f=c.hasOwnProperty;function d(e,t){var n=(0,a.A)(e),r=!n&&(0,i.A)(e),c=!n&&!r&&(0,s.A)(e),d=!n&&!r&&!c&&(0,u.A)(e),h=n||r||c||d,p=h?o(e.length,String):[],v=p.length;for(var g in e)!t&&!f.call(e,g)||h&&("length"==g||c&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,l.A)(g,v))||p.push(g);return p}var h=d},76912:function(e,t){"use strict";function n(e,t){var n=-1,r=t.length,o=e.length;while(++n<r)e[o+n]=t[n];return e}t.A=n},52851:function(e,t,n){"use strict";var r=n(52528),o=n(66984),i=Object.prototype,a=i.hasOwnProperty;function s(e,t,n){var i=e[t];a.call(e,t)&&(0,o.A)(i,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}t.A=s},52528:function(e,t,n){"use strict";var r=n(84171);function o(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t.A=o},62805:function(e,t,n){"use strict";n.d(t,{A:function(){return At}});var r=n(11754);function o(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}var i=o,a=n(52851),s=n(22031),l=n(9084);function u(e,t){return e&&(0,s.A)(t,(0,l.A)(t),e)}var c=u,f=n(55615);function d(e,t){return e&&(0,s.A)(t,(0,f.A)(t),e)}var h=d,p=n(41917),v="object"==typeof exports&&exports&&!exports.nodeType&&exports,g=v&&"object"==typeof module&&module&&!module.nodeType&&module,m=g&&g.exports===v,y=m?p.A.Buffer:void 0,b=y?y.allocUnsafe:void 0;function w(e,t){if(t)return e.slice();var n=e.length,r=b?b(n):new e.constructor(n);return e.copy(r),r}var A=w;function x(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}var C=x,S=n(88634);function _(e,t){return(0,s.A)(e,(0,S.A)(e),t)}var k=_,E=n(83511);function O(e,t){return(0,s.A)(e,(0,E.A)(e),t)}var F=O,T=n(19042),P=n(83973),N=n(9779),M=Object.prototype,L=M.hasOwnProperty;function I(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&L.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var R=I,j=n(43988);function D(e){var t=new e.constructor(e.byteLength);return new j.A(t).set(new j.A(e)),t}var B=D;function W(e,t){var n=t?B(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var z=W,U=/\w*$/;function K(e){var t=new e.constructor(e.source,U.exec(e));return t.lastIndex=e.lastIndex,t}var V=K,H=n(241),q=H.A?H.A.prototype:void 0,G=q?q.valueOf:void 0;function Y(e){return G?Object(G.call(e)):{}}var $=Y;function X(e,t){var n=t?B(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var J=X,Q="[object Boolean]",Z="[object Date]",ee="[object Map]",te="[object Number]",ne="[object RegExp]",re="[object Set]",oe="[object String]",ie="[object Symbol]",ae="[object ArrayBuffer]",se="[object DataView]",le="[object Float32Array]",ue="[object Float64Array]",ce="[object Int8Array]",fe="[object Int16Array]",de="[object Int32Array]",he="[object Uint8Array]",pe="[object Uint8ClampedArray]",ve="[object Uint16Array]",ge="[object Uint32Array]";function me(e,t,n){var r=e.constructor;switch(t){case ae:return B(e);case Q:case Z:return new r(+e);case se:return z(e,n);case le:case ue:case ce:case fe:case de:case he:case pe:case ve:case ge:return J(e,n);case ee:return new r;case te:case oe:return new r(e);case ne:return V(e);case re:return new r;case ie:return $(e)}}var ye=me,be=n(23149),we=Object.create,Ae=function(){function e(){}return function(t){if(!(0,be.A)(t))return{};if(we)return we(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),xe=Ae,Ce=n(15647),Se=n(97271);function _e(e){return"function"!=typeof e.constructor||(0,Se.A)(e)?{}:xe((0,Ce.A)(e))}var ke=_e,Ee=n(92049),Oe=n(99912),Fe=n(53098),Te="[object Map]";function Pe(e){return(0,Fe.A)(e)&&(0,N.A)(e)==Te}var Ne=Pe,Me=n(52789),Le=n(64841),Ie=Le.A&&Le.A.isMap,Re=Ie?(0,Me.A)(Ie):Ne,je=Re,De="[object Set]";function Be(e){return(0,Fe.A)(e)&&(0,N.A)(e)==De}var We=Be,ze=Le.A&&Le.A.isSet,Ue=ze?(0,Me.A)(ze):We,Ke=Ue,Ve=1,He=2,qe=4,Ge="[object Arguments]",Ye="[object Array]",$e="[object Boolean]",Xe="[object Date]",Je="[object Error]",Qe="[object Function]",Ze="[object GeneratorFunction]",et="[object Map]",tt="[object Number]",nt="[object Object]",rt="[object RegExp]",ot="[object Set]",it="[object String]",at="[object Symbol]",st="[object WeakMap]",lt="[object ArrayBuffer]",ut="[object DataView]",ct="[object Float32Array]",ft="[object Float64Array]",dt="[object Int8Array]",ht="[object Int16Array]",pt="[object Int32Array]",vt="[object Uint8Array]",gt="[object Uint8ClampedArray]",mt="[object Uint16Array]",yt="[object Uint32Array]",bt={};function wt(e,t,n,o,s,u){var d,p=t&Ve,v=t&He,g=t&qe;if(n&&(d=s?n(e,o,s,u):n(e)),void 0!==d)return d;if(!(0,be.A)(e))return e;var m=(0,Ee.A)(e);if(m){if(d=R(e),!p)return C(e,d)}else{var y=(0,N.A)(e),b=y==Qe||y==Ze;if((0,Oe.A)(e))return A(e,p);if(y==nt||y==Ge||b&&!s){if(d=v||b?{}:ke(e),!p)return v?F(e,h(d,e)):k(e,c(d,e))}else{if(!bt[y])return s?e:{};d=ye(e,y,p)}}u||(u=new r.A);var w=u.get(e);if(w)return w;u.set(e,d),Ke(e)?e.forEach((function(r){d.add(wt(r,t,n,r,e,u))})):je(e)&&e.forEach((function(r,o){d.set(o,wt(r,t,n,o,e,u))}));var x=g?v?P.A:T.A:v?f.A:l.A,S=m?void 0:x(e);return i(S||e,(function(r,o){S&&(o=r,r=e[o]),(0,a.A)(d,o,wt(r,t,n,o,e,u))})),d}bt[Ge]=bt[Ye]=bt[lt]=bt[ut]=bt[$e]=bt[Xe]=bt[ct]=bt[ft]=bt[dt]=bt[ht]=bt[pt]=bt[et]=bt[tt]=bt[nt]=bt[rt]=bt[ot]=bt[it]=bt[at]=bt[vt]=bt[gt]=bt[mt]=bt[yt]=!0,bt[Je]=bt[Qe]=bt[st]=!1;var At=wt},33831:function(e,t,n){"use strict";var r=n(76912),o=n(92049);function i(e,t,n){var i=t(e);return(0,o.A)(e)?i:(0,r.A)(i,n(e))}t.A=i},88496:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(241),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.A?r.A.toStringTag:void 0;function l(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}var u=l,c=Object.prototype,f=c.toString;function d(e){return f.call(e)}var h=d,p="[object Null]",v="[object Undefined]",g=r.A?r.A.toStringTag:void 0;function m(e){return null==e?void 0===e?v:p:g&&g in Object(e)?u(e):h(e)}var y=m},52789:function(e,t){"use strict";function n(e){return function(t){return e(t)}}t.A=n},22031:function(e,t,n){"use strict";var r=n(52851),o=n(52528);function i(e,t,n,i){var a=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?(0,o.A)(n,u,c):(0,r.A)(n,u,c)}return n}t.A=i},84171:function(e,t,n){"use strict";var r=n(18744),o=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=o},72136:function(e,t){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t.A=n},19042:function(e,t,n){"use strict";var r=n(33831),o=n(88634),i=n(9084);function a(e){return(0,r.A)(e,i.A,o.A)}t.A=a},83973:function(e,t,n){"use strict";var r=n(33831),o=n(83511),i=n(55615);function a(e){return(0,r.A)(e,i.A,o.A)}t.A=a},18744:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r=n(89610),o=n(41917),i=o.A["__core-js_shared__"],a=i,s=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!s&&s in e}var u=l,c=n(23149),f=n(81121),d=/[\\^$.*+?()[\]{}|]/g,h=/^\[object .+?Constructor\]$/,p=Function.prototype,v=Object.prototype,g=p.toString,m=v.hasOwnProperty,y=RegExp("^"+g.call(m).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(e){if(!(0,c.A)(e)||u(e))return!1;var t=(0,r.A)(e)?y:h;return t.test((0,f.A)(e))}var w=b;function A(e,t){return null==e?void 0:e[t]}var x=A;function C(e,t){var n=x(e,t);return w(n)?n:void 0}var S=C},15647:function(e,t,n){"use strict";var r=n(40367),o=(0,r.A)(Object.getPrototypeOf,Object);t.A=o},88634:function(e,t,n){"use strict";function r(e,t){var n=-1,r=null==e?0:e.length,o=0,i=[];while(++n<r){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}n.d(t,{A:function(){return c}});var o=r,i=n(13153),a=Object.prototype,s=a.propertyIsEnumerable,l=Object.getOwnPropertySymbols,u=l?function(e){return null==e?[]:(e=Object(e),o(l(e),(function(t){return s.call(e,t)})))}:i.A,c=u},83511:function(e,t,n){"use strict";var r=n(76912),o=n(15647),i=n(88634),a=n(13153),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)(0,r.A)(t,(0,i.A)(e)),e=(0,o.A)(e);return t}:a.A;t.A=l},9779:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(18744),o=n(41917),i=(0,r.A)(o.A,"DataView"),a=i,s=n(68335),l=(0,r.A)(o.A,"Promise"),u=l,c=n(39857),f=(0,r.A)(o.A,"WeakMap"),d=f,h=n(88496),p=n(81121),v="[object Map]",g="[object Object]",m="[object Promise]",y="[object Set]",b="[object WeakMap]",w="[object DataView]",A=(0,p.A)(a),x=(0,p.A)(s.A),C=(0,p.A)(u),S=(0,p.A)(c.A),_=(0,p.A)(d),k=h.A;(a&&k(new a(new ArrayBuffer(1)))!=w||s.A&&k(new s.A)!=v||u&&k(u.resolve())!=m||c.A&&k(new c.A)!=y||d&&k(new d)!=b)&&(k=function(e){var t=(0,h.A)(e),n=t==g?e.constructor:void 0,r=n?(0,p.A)(n):"";if(r)switch(r){case A:return w;case x:return v;case C:return m;case S:return y;case _:return b}return t});var E=k},25353:function(e,t){"use strict";var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function o(e,t){var o=typeof e;return t=null==t?n:t,!!t&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}t.A=o},97271:function(e,t){"use strict";var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}t.A=r},64841:function(e,t,n){"use strict";var r=n(72136),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o,s=a&&r.A.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t.A=l},40367:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t.A=n},41917:function(e,t,n){"use strict";var r=n(72136),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.A||o||Function("return this")();t.A=i},81121:function(e,t){"use strict";var n=Function.prototype,r=n.toString;function o(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t.A=o},20903:function(e,t,n){"use strict";var r=n(62805),o=1,i=4;function a(e){return(0,r.A)(e,o|i)}t.A=a},63366:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(23149),o=n(41917),i=function(){return o.A.Date.now()},a=i,s=n(71733),l="Expected a function",u=Math.max,c=Math.min;function f(e,t,n){var o,i,f,d,h,p,v=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError(l);function b(t){var n=o,r=i;return o=i=void 0,v=t,d=e.apply(r,n),d}function w(e){return v=e,h=setTimeout(C,t),g?b(e):d}function A(e){var n=e-p,r=e-v,o=t-n;return m?c(o,f-r):o}function x(e){var n=e-p,r=e-v;return void 0===p||n>=t||n<0||m&&r>=f}function C(){var e=a();if(x(e))return S(e);h=setTimeout(C,A(e))}function S(e){return h=void 0,y&&o?b(e):(o=i=void 0,d)}function _(){void 0!==h&&clearTimeout(h),v=0,o=p=i=h=void 0}function k(){return void 0===h?d:S(a())}function E(){var e=a(),n=x(e);if(o=arguments,i=this,p=e,n){if(void 0===h)return w(p);if(m)return clearTimeout(h),h=setTimeout(C,t),b(p)}return void 0===h&&(h=setTimeout(C,t)),d}return t=(0,s.A)(t)||0,(0,r.A)(n)&&(g=!!n.leading,m="maxWait"in n,f=m?u((0,s.A)(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),E.cancel=_,E.flush=k,E}var d=f},66984:function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}t.A=n},52274:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(88496),o=n(53098),i="[object Arguments]";function a(e){return(0,o.A)(e)&&(0,r.A)(e)==i}var s=a,l=Object.prototype,u=l.hasOwnProperty,c=l.propertyIsEnumerable,f=s(function(){return arguments}())?s:function(e){return(0,o.A)(e)&&u.call(e,"callee")&&!c.call(e,"callee")},d=f},92049:function(e,t){"use strict";var n=Array.isArray;t.A=n},38446:function(e,t,n){"use strict";var r=n(89610),o=n(5254);function i(e){return null!=e&&(0,o.A)(e.length)&&!(0,r.A)(e)}t.A=i},99912:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(41917);function o(){return!1}var i=o,a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a,u=l?r.A.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||i,d=f},89610:function(e,t,n){"use strict";var r=n(88496),o=n(23149),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!(0,o.A)(e))return!1;var t=(0,r.A)(e);return t==a||t==s||t==i||t==l}t.A=u},5254:function(e,t){"use strict";var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}t.A=r},23149:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=n},53098:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.A=n},61882:function(e,t,n){"use strict";var r=n(88496),o=n(53098),i="[object Symbol]";function a(e){return"symbol"==typeof e||(0,o.A)(e)&&(0,r.A)(e)==i}t.A=a},33858:function(e,t,n){"use strict";n.d(t,{A:function(){return j}});var r=n(88496),o=n(5254),i=n(53098),a="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",g="[object Set]",m="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",A="[object Float32Array]",x="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",_="[object Int32Array]",k="[object Uint8Array]",E="[object Uint8ClampedArray]",O="[object Uint16Array]",F="[object Uint32Array]",T={};function P(e){return(0,i.A)(e)&&(0,o.A)(e.length)&&!!T[(0,r.A)(e)]}T[A]=T[x]=T[C]=T[S]=T[_]=T[k]=T[E]=T[O]=T[F]=!0,T[a]=T[s]=T[b]=T[l]=T[w]=T[u]=T[c]=T[f]=T[d]=T[h]=T[p]=T[v]=T[g]=T[m]=T[y]=!1;var N=P,M=n(52789),L=n(64841),I=L.A&&L.A.isTypedArray,R=I?(0,M.A)(I):N,j=R},9084:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(83607),o=n(97271),i=n(40367),a=(0,i.A)(Object.keys,Object),s=a,l=Object.prototype,u=l.hasOwnProperty;function c(e){if(!(0,o.A)(e))return s(e);var t=[];for(var n in Object(e))u.call(e,n)&&"constructor"!=n&&t.push(n);return t}var f=c,d=n(38446);function h(e){return(0,d.A)(e)?(0,r.A)(e):f(e)}var p=h},55615:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(83607),o=n(23149),i=n(97271);function a(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var s=a,l=Object.prototype,u=l.hasOwnProperty;function c(e){if(!(0,o.A)(e))return s(e);var t=(0,i.A)(e),n=[];for(var r in e)("constructor"!=r||!t&&u.call(e,r))&&n.push(r);return n}var f=c,d=n(38446);function h(e){return(0,d.A)(e)?(0,r.A)(e,!0):f(e)}var p=h},13153:function(e,t){"use strict";function n(){return[]}t.A=n},71733:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=/\s/;function o(e){var t=e.length;while(t--&&r.test(e.charAt(t)));return t}var i=o,a=/^\s+/;function s(e){return e?e.slice(0,i(e)+1).replace(a,""):e}var l=s,u=n(23149),c=n(61882),f=NaN,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,v=parseInt;function g(e){if("number"==typeof e)return e;if((0,c.A)(e))return f;if((0,u.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,u.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=h.test(e);return n||p.test(e)?v(e.slice(2),n?2:8):d.test(e)?f:+e}var m=g},96440:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});class r{value;next;constructor(e){this.value=e}}class o{#e;#t;#n;constructor(){this.clear()}enqueue(e){const t=new r(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#n++}dequeue(){const e=this.#e;if(e)return this.#e=this.#e.next,this.#n--,e.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;while(e)yield e.value,e=e.next}}function i(e){a(e);const t=new o;let n=0;const r=()=>{n<e&&t.size>0&&(t.dequeue()(),n++)},i=()=>{n--,r()},s=async(e,t,n)=>{const r=(async()=>e(...n))();t(r);try{await r}catch{}i()},l=(o,i,a)=>{new Promise((e=>{t.enqueue(e)})).then(s.bind(void 0,o,i,a)),(async()=>{await Promise.resolve(),n<e&&r()})()},u=(e,...t)=>new Promise((n=>{l(e,n,t)}));return Object.defineProperties(u,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(o){a(o),e=o,queueMicrotask((()=>{while(n<e&&t.size>0)r()}))}}}),u}function a(e){if(!Number.isInteger(e)&&e!==Number.POSITIVE_INFINITY||!(e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}},34445:function(e,t,n){"use strict";n.d(t,{Ey:function(){return S},nY:function(){return B}});var r=n(29726),o=!1;function i(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}
/*!
 * pinia v2.2.1
 * (c) 2024 Eduardo San Martin Morote
 * @license MIT
 */
let a;const s=e=>a=e,l=Symbol();function u(e){return e&&"object"===typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!==typeof e.toJSON}var c;(function(e){e["direct"]="direct",e["patchObject"]="patch object",e["patchFunction"]="patch function"})(c||(c={}));const f="undefined"!==typeof window,d=(()=>"object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof global&&global.global===global?global:"object"===typeof globalThis?globalThis:{HTMLElement:null})();function h(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function p(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){b(r.response,t,n)},r.onerror=function(){},r.send()}function v(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function g(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const m="object"===typeof navigator?navigator:{userAgent:""},y=(()=>/Macintosh/.test(m.userAgent)&&/AppleWebKit/.test(m.userAgent)&&!/Safari/.test(m.userAgent))(),b=f?"undefined"!==typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!y?w:"msSaveOrOpenBlob"in m?A:x:()=>{};function w(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"===typeof e?(r.href=e,r.origin!==location.origin?v(r.href)?p(e,t,n):(r.target="_blank",g(r)):g(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){g(r)}),0))}function A(e,t="download",n){if("string"===typeof e)if(v(e))p(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){g(t)}))}else navigator.msSaveOrOpenBlob(h(e,n),t)}function x(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"===typeof e)return p(e,t,n);const o="application/octet-stream"===e.type,i=/constructor/i.test(String(d.HTMLElement))||"safari"in d,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&i||y)&&"undefined"!==typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!==typeof e)throw r=null,new Error("Wrong reader.result type");e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}const{assign:C}=Object;function S(){const e=(0,r.uY)(!0),t=e.run((()=>(0,r.KR)({})));let n=[],i=[];const a=(0,r.IG)({install(e){s(a),o||(a._a=e,e.provide(l,a),e.config.globalProperties.$pinia=a,i.forEach((e=>n.push(e))),i=[])},use(e){return this._a||o?n.push(e):i.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}const _=()=>{};function k(e,t,n,o=_){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&(0,r.o5)()&&(0,r.jr)(i),i}function E(e,...t){e.slice().forEach((e=>{e(...t)}))}const O=e=>e(),F=Symbol(),T=Symbol();function P(e,t){e instanceof Map&&t instanceof Map?t.forEach(((t,n)=>e.set(n,t))):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],i=e[n];u(i)&&u(o)&&e.hasOwnProperty(n)&&!(0,r.i9)(o)&&!(0,r.g8)(o)?e[n]=P(i,o):e[n]=o}return e}const N=Symbol(),M=new WeakMap;function L(e){return o?!M.has(e):!u(e)||!e.hasOwnProperty(N)}const{assign:I}=Object;function R(e){return!(!(0,r.i9)(e)||!e.effect)}function j(e,t,n,a){const{state:l,actions:u,getters:c}=t,f=n.state.value[e];let d;function h(){f||(o?i(n.state.value,e,l?l():{}):n.state.value[e]=l?l():{});const t=(0,r.QW)(n.state.value[e]);return I(t,u,Object.keys(c||{}).reduce(((t,i)=>(t[i]=(0,r.IG)((0,r.EW)((()=>{s(n);const t=n._s.get(e);if(!o||t._r)return c[i].call(t,t)}))),t)),{}))}return d=D(e,h,t,n,a,!0),d}function D(e,t,n={},a,l,u){let f;const d=I({actions:{}},n);const h={deep:!0};let p,v;let g,m=[],y=[];const b=a.state.value[e];u||b||(o?i(a.state.value,e,{}):a.state.value[e]={});(0,r.KR)({});let w;function A(t){let n;p=v=!1,"function"===typeof t?(t(a.state.value[e]),n={type:c.patchFunction,storeId:e,events:g}):(P(a.state.value[e],t),n={type:c.patchObject,payload:t,storeId:e,events:g});const o=w=Symbol();(0,r.dY)().then((()=>{w===o&&(p=!0)})),v=!0,E(m,n,a.state.value[e])}const x=u?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{I(e,t)}))}:_;function C(){f.stop(),m=[],y=[],a._s.delete(e)}const S=(t,n="")=>{if(F in t)return t[T]=n,t;const r=function(){s(a);const n=Array.from(arguments),o=[],i=[];function l(e){o.push(e)}function u(e){i.push(e)}let c;E(y,{args:n,name:r[T],store:M,after:l,onError:u});try{c=t.apply(this&&this.$id===e?this:M,n)}catch(f){throw E(i,f),f}return c instanceof Promise?c.then((e=>(E(o,e),e))).catch((e=>(E(i,e),Promise.reject(e)))):(E(o,c),c)};return r[F]=!0,r[T]=n,r},N={_p:a,$id:e,$onAction:k.bind(null,y),$patch:A,$reset:x,$subscribe(t,n={}){const o=k(m,t,n.detached,(()=>i())),i=f.run((()=>(0,r.wB)((()=>a.state.value[e]),(r=>{("sync"===n.flush?v:p)&&t({storeId:e,type:c.direct,events:g},r)}),I({},h,n))));return o},$dispose:C};o&&(N._r=!1);const M=(0,r.Kh)(N);a._s.set(e,M);const j=a._a&&a._a.runWithContext||O,D=j((()=>a._e.run((()=>(f=(0,r.uY)()).run((()=>t({action:S})))))));for(const s in D){const t=D[s];if((0,r.i9)(t)&&!R(t)||(0,r.g8)(t))u||(b&&L(t)&&((0,r.i9)(t)?t.value=b[s]:P(t,b[s])),o?i(a.state.value[e],s,t):a.state.value[e][s]=t);else if("function"===typeof t){const e=S(t,s);o?i(D,s,e):D[s]=e,d.actions[s]=t}else 0}return o?Object.keys(D).forEach((e=>{i(M,e,D[e])})):(I(M,D),I((0,r.ux)(M),D)),Object.defineProperty(M,"$state",{get:()=>a.state.value[e],set:e=>{A((t=>{I(t,e)}))}}),o&&(M._r=!0),a._p.forEach((e=>{I(M,f.run((()=>e({store:M,app:a._a,pinia:a,options:d}))))})),b&&u&&n.hydrate&&n.hydrate(M.$state,b),p=!0,v=!0,M}function B(e,t,n){let o,i;const u="function"===typeof t;function c(e,n){const c=(0,r.PS)();e=e||(c?(0,r.WQ)(l,null):null),e&&s(e),e=a,e._s.has(o)||(u?D(o,t,i,e):j(o,i,e));const f=e._s.get(o);return f}return"string"===typeof e?(o=e,i=u?n:t):(i=e,o=e.id),c.$id=o,c}},46992:function(e,t,n){"use strict";n.d(t,{hU:function(){return ar},s9:function(){return sr}});
/*!
  * shared v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */
const r="undefined"!==typeof window;const o=(e,t=!1)=>t?Symbol.for(e):Symbol(e),i=(e,t,n)=>a({l:e,k:t,s:n}),a=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),s=e=>"number"===typeof e&&isFinite(e),l=e=>"[object Date]"===S(e),u=e=>"[object RegExp]"===S(e),c=e=>_(e)&&0===Object.keys(e).length,f=Object.assign;let d;const h=()=>d||(d="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:{});function p(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const v=Object.prototype.hasOwnProperty;function g(e,t){return v.call(e,t)}const m=Array.isArray,y=e=>"function"===typeof e,b=e=>"string"===typeof e,w=e=>"boolean"===typeof e,A=e=>null!==e&&"object"===typeof e,x=e=>A(e)&&y(e.then)&&y(e.catch),C=Object.prototype.toString,S=e=>C.call(e),_=e=>{if(!A(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},k=e=>null==e?"":m(e)||_(e)&&e.toString===C?JSON.stringify(e,null,2):String(e);function E(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function O(e){let t=e;return()=>++t}function F(e,t){}const T=e=>!A(e)||m(e);function P(e,t){if(T(e)||T(t))throw new Error("Invalid value");const n=[{src:e,des:t}];while(n.length){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{T(e[r])||T(t[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}}function N(e,t,n){return{line:e,column:t,offset:n}}function M(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const L=/\{([0-9a-zA-Z]+)\}/g;function I(e,...t){return 1===t.length&&D(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(L,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}const R=Object.assign,j=e=>"string"===typeof e,D=e=>null!==e&&"object"===typeof e;function B(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}const W={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},z={[W.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function U(e,t,...n){const r=I(z[e]||"",...n||[]),o={message:String(r),code:e};return t&&(o.location=t),o}const K={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},V={[K.EXPECTED_TOKEN]:"Expected token: '{0}'",[K.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[K.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[K.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[K.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[K.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[K.EMPTY_PLACEHOLDER]:"Empty placeholder",[K.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[K.INVALID_LINKED_FORMAT]:"Invalid linked format",[K.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[K.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[K.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[K.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[K.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[K.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function H(e,t,n={}){const{domain:r,messages:o,args:i}=n,a=I((o||V)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function q(e){throw e}const G=" ",Y="\r",$="\n",X=String.fromCharCode(8232),J=String.fromCharCode(8233);function Q(e){const t=e;let n=0,r=1,o=1,i=0;const a=e=>t[e]===Y&&t[e+1]===$,s=e=>t[e]===$,l=e=>t[e]===J,u=e=>t[e]===X,c=e=>a(e)||s(e)||l(e)||u(e),f=()=>n,d=()=>r,h=()=>o,p=()=>i,v=e=>a(e)||l(e)||u(e)?$:t[e],g=()=>v(n),m=()=>v(n+i);function y(){return i=0,c(n)&&(r++,o=0),a(n)&&n++,n++,o++,t[n]}function b(){return a(n+i)&&i++,i++,t[n+i]}function w(){n=0,r=1,o=1,i=0}function A(e=0){i=e}function x(){const e=n+i;while(e!==n)y();i=0}return{index:f,line:d,column:h,peekOffset:p,charAt:v,currentChar:g,currentPeek:m,next:y,peek:b,reset:w,resetPeek:A,skipToPeek:x}}const Z=void 0,ee="'",te="tokenizer";function ne(e,t={}){const n=!1!==t.location,r=Q(e),o=()=>r.index(),i=()=>N(r.line(),r.column(),r.index()),a=i(),s=o(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(e,t,r,...o){const i=u();if(t.column+=r,t.offset+=r,c){const r=n?M(i.startLoc,t):null,a=H(e,r,{domain:te,args:o});c(a)}}function d(e,t,r){e.endLoc=i(),e.currentType=t;const o={type:t};return n&&(o.loc=M(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const h=e=>d(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(f(K.EXPECTED_TOKEN,i(),0,t),"")}function v(e){let t="";while(e.currentPeek()===G||e.currentPeek()===$)t+=e.currentPeek(),e.peek();return t}function g(e){const t=v(e);return e.skipToPeek(),t}function m(e){if(e===Z)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e){if(e===Z)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;v(e);const r=m(e.currentPeek());return e.resetPeek(),r}function w(e,t){const{currentType:n}=t;if(2!==n)return!1;v(e);const r="-"===e.currentPeek()?e.peek():e.currentPeek(),o=y(r);return e.resetPeek(),o}function A(e,t){const{currentType:n}=t;if(2!==n)return!1;v(e);const r=e.currentPeek()===ee;return e.resetPeek(),r}function x(e,t){const{currentType:n}=t;if(8!==n)return!1;v(e);const r="."===e.currentPeek();return e.resetPeek(),r}function C(e,t){const{currentType:n}=t;if(9!==n)return!1;v(e);const r=m(e.currentPeek());return e.resetPeek(),r}function S(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;v(e);const r=":"===e.currentPeek();return e.resetPeek(),r}function _(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?m(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===G||!t)&&(t===$?(e.peek(),r()):O(e,!1))},o=r();return e.resetPeek(),o}function k(e){v(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function E(e){const t=v(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}function O(e,t=!0){const n=(t=!1,r="",o=!1)=>{const i=e.currentPeek();return"{"===i?"%"!==r&&t:"@"!==i&&i?"%"===i?(e.peek(),n(t,"%",!0)):"|"===i?!("%"!==r&&!o)||!(r===G||r===$):i===G?(e.peek(),n(!0,G,o)):i!==$||(e.peek(),n(!0,$,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function F(e,t){const n=e.currentChar();return n===Z?Z:t(n)?(e.next(),n):null}function T(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function P(e){return F(e,T)}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function I(e){return F(e,L)}function R(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function j(e){return F(e,R)}function D(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function B(e){return F(e,D)}function W(e){let t="",n="";while(t=j(e))n+=t;return n}function z(e){g(e);const t=e.currentChar();return"%"!==t&&f(K.EXPECTED_TOKEN,i(),0,t),e.next(),"%"}function U(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!O(e))break;t+=n,e.next()}else if(n===G||n===$)if(O(e))t+=n,e.next();else{if(k(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function V(e){g(e);let t="",n="";while(t=I(e))n+=t;return e.currentChar()===Z&&f(K.UNTERMINATED_CLOSING_BRACE,i(),0),n}function q(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${W(e)}`):t+=W(e),e.currentChar()===Z&&f(K.UNTERMINATED_CLOSING_BRACE,i(),0),t}function Y(e){return e!==ee&&e!==$}function X(e){g(e),p(e,"'");let t="",n="";while(t=F(e,Y))n+="\\"===t?J(e):t;const r=e.currentChar();return r===$||r===Z?(f(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),r===$&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}function J(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return ne(e,t,4);case"U":return ne(e,t,6);default:return f(K.UNKNOWN_ESCAPE_SEQUENCE,i(),0,t),""}}function ne(e,t,n){p(e,t);let r="";for(let o=0;o<n;o++){const n=B(e);if(!n){f(K.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function re(e){return"{"!==e&&"}"!==e&&e!==G&&e!==$}function oe(e){g(e);let t="",n="";while(t=F(e,re))n+=t;return n}function ie(e){let t="",n="";while(t=P(e))n+=t;return n}function ae(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===G?n:(n+=r,e.next(),t(n)):n};return t("")}function se(e){g(e);const t=p(e,"|");return g(e),t}function le(e,t){let n=null;const r=e.currentChar();switch(r){case"{":return t.braceNest>=1&&f(K.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),e.next(),n=d(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&f(K.EMPTY_PLACEHOLDER,i(),0),e.next(),n=d(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&f(K.UNTERMINATED_CLOSING_BRACE,i(),0),n=ue(e,t)||h(t),t.braceNest=0,n;default:{let r=!0,o=!0,a=!0;if(k(e))return t.braceNest>0&&f(K.UNTERMINATED_CLOSING_BRACE,i(),0),n=d(t,1,se(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return f(K.UNTERMINATED_CLOSING_BRACE,i(),0),t.braceNest=0,ce(e,t);if(r=b(e,t))return n=d(t,5,V(e)),g(e),n;if(o=w(e,t))return n=d(t,6,q(e)),g(e),n;if(a=A(e,t))return n=d(t,7,X(e)),g(e),n;if(!r&&!o&&!a)return n=d(t,13,oe(e)),f(K.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,n.value),g(e),n;break}}return n}function ue(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==$&&o!==G||f(K.INVALID_LINKED_FORMAT,i(),0),o){case"@":return e.next(),r=d(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),d(t,9,".");case":":return g(e),e.next(),d(t,10,":");default:return k(e)?(r=d(t,1,se(e)),t.braceNest=0,t.inLinked=!1,r):x(e,t)||S(e,t)?(g(e),ue(e,t)):C(e,t)?(g(e),d(t,12,ie(e))):_(e,t)?(g(e),"{"===o?le(e,t)||r:d(t,11,ae(e))):(8===n&&f(K.INVALID_LINKED_FORMAT,i(),0),t.braceNest=0,t.inLinked=!1,ce(e,t))}}function ce(e,t){let n={type:14};if(t.braceNest>0)return le(e,t)||h(t);if(t.inLinked)return ue(e,t)||h(t);const r=e.currentChar();switch(r){case"{":return le(e,t)||h(t);case"}":return f(K.UNBALANCED_CLOSING_BRACE,i(),0),e.next(),d(t,3,"}");case"@":return ue(e,t)||h(t);default:{if(k(e))return n=d(t,1,se(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=E(e);if(r)return o?d(t,0,U(e)):d(t,4,z(e));if(O(e))return d(t,0,U(e));break}}return n}function fe(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=o(),l.startLoc=i(),r.currentChar()===Z?d(l,14):ce(r,l)}return{nextToken:fe,currentOffset:o,currentPosition:i,context:u}}const re="parser",oe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ie(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ae(e={}){const t=!1!==e.location,{onError:n,onWarn:r}=e;function o(e,r,o,i,...a){const s=e.currentPosition();if(s.offset+=i,s.column+=i,n){const e=t?M(o,s):null,i=H(r,e,{domain:re,args:a});n(i)}}function i(e,n,o,i,...a){const s=e.currentPosition();if(s.offset+=i,s.column+=i,r){const e=t?M(o,s):null;r(U(n,e,a))}}function a(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function s(e,n,r,o){o&&(e.type=o),t&&(e.end=n,e.loc&&(e.loc.end=r))}function l(e,t){const n=e.context(),r=a(3,n.offset,n.startLoc);return r.value=t,s(r,e.currentOffset(),e.currentPosition()),r}function u(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,i=a(5,r,o);return i.index=parseInt(t,10),e.nextToken(),s(i,e.currentOffset(),e.currentPosition()),i}function c(e,t,n){const r=e.context(),{lastOffset:o,lastStartLoc:i}=r,l=a(4,o,i);return l.key=t,!0===n&&(l.modulo=!0),e.nextToken(),s(l,e.currentOffset(),e.currentPosition()),l}function f(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:o}=n,i=a(9,r,o);return i.value=t.replace(oe,ie),e.nextToken(),s(i,e.currentOffset(),e.currentPosition()),i}function d(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:i}=n,l=a(8,r,i);return 12!==t.type?(o(e,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",s(l,r,i),{nextConsumeToken:t,node:l}):(null==t.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,se(t)),l.value=t.value||"",s(l,e.currentOffset(),e.currentPosition()),{node:l})}function h(e,t){const n=e.context(),r=a(7,n.offset,n.startLoc);return r.value=t,s(r,e.currentOffset(),e.currentPosition()),r}function p(e){const t=e.context(),n=a(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=d(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(r)),n.key=h(e,r.value||"");break;case 5:null==r.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(r)),n.key=c(e,r.value||"");break;case 6:null==r.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(r)),n.key=u(e,r.value||"");break;case 7:null==r.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(r)),n.key=f(e,r.value||"");break;default:{o(e,K.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const i=e.context(),l=a(7,i.offset,i.startLoc);return l.value="",s(l,i.offset,i.startLoc),n.key=l,s(n,i.offset,i.startLoc),{nextConsumeToken:r,node:n}}}return s(n,e.currentOffset(),e.currentPosition()),{node:n}}function v(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,r=1===t.currentType?t.endLoc:t.startLoc,d=a(2,n,r);d.items=[];let h=null,v=null;do{const n=h||e.nextToken();switch(h=null,n.type){case 0:null==n.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(n)),d.items.push(l(e,n.value||""));break;case 6:null==n.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(n)),d.items.push(u(e,n.value||""));break;case 4:v=!0;break;case 5:null==n.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(n)),d.items.push(c(e,n.value||"",!!v)),v&&(i(e,W.USE_MODULO_SYNTAX,t.lastStartLoc,0,se(n)),v=null);break;case 7:null==n.value&&o(e,K.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,se(n)),d.items.push(f(e,n.value||""));break;case 8:{const t=p(e);d.items.push(t.node),h=t.nextConsumeToken||null;break}}}while(14!==t.currentType&&1!==t.currentType);const g=1===t.currentType?t.lastOffset:e.currentOffset(),m=1===t.currentType?t.lastEndLoc:e.currentPosition();return s(d,g,m),d}function g(e,t,n,r){const i=e.context();let l=0===r.items.length;const u=a(1,t,n);u.cases=[],u.cases.push(r);do{const t=v(e);l||(l=0===t.items.length),u.cases.push(t)}while(14!==i.currentType);return l&&o(e,K.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),s(u,e.currentOffset(),e.currentPosition()),u}function m(e){const t=e.context(),{offset:n,startLoc:r}=t,o=v(e);return 14===t.currentType?o:g(e,n,r,o)}function y(n){const r=ne(n,R({},e)),i=r.context(),l=a(0,i.offset,i.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(r),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),14!==i.currentType&&o(r,K.UNEXPECTED_LEXICAL_ANALYSIS,i.lastStartLoc,0,n[i.offset]||""),s(l,r.currentOffset(),r.currentPosition()),l}return{parse:y}}function se(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function le(e,t={}){const n={ast:e,helpers:new Set},r=()=>n,o=e=>(n.helpers.add(e),e);return{context:r,helper:o}}function ue(e,t){for(let n=0;n<e.length;n++)ce(e[n],t)}function ce(e,t){switch(e.type){case 1:ue(e.cases,t),t.helper("plural");break;case 2:ue(e.items,t);break;case 6:{const n=e;ce(n.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function fe(e,t={}){const n=le(e);n.helper("normalize"),e.body&&ce(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function de(e){const t=e.body;return 2===t.type?he(t):t.cases.forEach((e=>he(e))),e}function he(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=B(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}const pe="minifier";function ve(e){switch(e.t=e.type,e.type){case 0:{const t=e;ve(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)ve(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)ve(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;ve(t.key),t.k=t.key,delete t.key,t.modifier&&(ve(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw H(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:pe,args:[e.type]})}delete e.type}const ge="parser";function me(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:i}=t,a=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(e,t){s.code+=e}function c(e,t=!0){const n=t?o:"";u(i?n+"  ".repeat(e):n)}function f(e=!0){const t=++s.indentLevel;e&&c(t)}function d(e=!0){const t=--s.indentLevel;e&&c(t)}function h(){c(s.indentLevel)}const p=e=>`_${e}`,v=()=>s.needIndent;return{context:l,push:u,indent:f,deindent:d,newline:h,helper:p,needIndent:v}}function ye(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),xe(e,t.key),t.modifier?(e.push(", "),xe(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function be(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let i=0;i<o;i++){if(xe(e,t.items[i]),i===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}function we(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o;n++){if(xe(e,t.cases[n]),n===o-1)break;e.push(", ")}e.deindent(r()),e.push("])")}}function Ae(e,t){t.body?xe(e,t.body):e.push("null")}function xe(e,t){const{helper:n}=e;switch(t.type){case 0:Ae(e,t);break;case 1:we(e,t);break;case 2:be(e,t);break;case 6:ye(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw H(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ge,args:[t.type]})}}const Ce=(e,t={})=>{const n=j(t.mode)?t.mode:"normal",r=j(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=me(e,{mode:n,filename:r,sourceMap:o,breakLineCode:i,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${B(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),xe(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function Se(e,t={}){const n=R({},t),r=!!n.jit,o=!!n.minify,i=null==n.optimize||n.optimize,a=ae(n),s=a.parse(e);return r?(i&&de(s),o&&ve(s),{ast:s,code:""}):(fe(s,n),Ce(s,n))}
/*!
  * core-base v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */
function _e(){"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(h().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!==typeof __INTLIFY_JIT_COMPILATION__&&(h().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(h().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const ke=[];ke[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},ke[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},ke[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},ke[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},ke[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},ke[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},ke[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const Ee=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Oe(e){return Ee.test(e)}function Fe(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function Te(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Pe(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(Oe(t)?Fe(t):"*"+t)}function Ne(e){const t=[];let n,r,o,i,a,s,l,u=-1,c=0,f=0;const d=[];function h(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,o="\\"+t,d[0](),!0}d[0]=()=>{void 0===r?r=o:r+=o},d[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},d[2]=()=>{d[0](),f++},d[3]=()=>{if(f>0)f--,c=4,d[0]();else{if(f=0,void 0===r)return!1;if(r=Pe(r),!1===r)return!1;d[1]()}};while(null!==c)if(u++,n=e[u],"\\"!==n||!h()){if(i=Te(n),l=ke[c],a=l[i]||l["l"]||8,8===a)return;if(c=a[0],void 0!==a[1]&&(s=d[a[1]],s&&(o=n,!1===s())))return;if(7===c)return t}}const Me=new Map;function Le(e,t){return A(e)?e[t]:null}function Ie(e,t){if(!A(e))return null;let n=Me.get(t);if(n||(n=Ne(t),n&&Me.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;while(i<r){const e=o[n[i]];if(void 0===e)return null;if(y(o))return null;o=e,i++}return o}const Re=e=>e,je=e=>"",De="text",Be=e=>0===e.length?"":E(e),We=k;function ze(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Ue(e){const t=s(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s(e.named.count)||s(e.named.n))?s(e.named.count)?e.named.count:s(e.named.n)?e.named.n:t:t}function Ke(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ve(e={}){const t=e.locale,n=Ue(e),r=A(e.pluralRules)&&b(t)&&y(e.pluralRules[t])?e.pluralRules[t]:ze,o=A(e.pluralRules)&&b(t)&&y(e.pluralRules[t])?ze:void 0,i=e=>e[r(n,e.length,o)],a=e.list||[],l=e=>a[e],u=e.named||{};s(e.pluralIndex)&&Ke(n,u);const c=e=>u[e];function d(t){const n=y(e.messages)?e.messages(t):!!A(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):je)}const h=t=>e.modifiers?e.modifiers[t]:Re,p=_(e.processor)&&y(e.processor.normalize)?e.processor.normalize:Be,v=_(e.processor)&&y(e.processor.interpolate)?e.processor.interpolate:We,g=_(e.processor)&&b(e.processor.type)?e.processor.type:De,w=(e,...t)=>{const[n,r]=t;let o="text",i="";1===t.length?A(n)?(i=n.modifier||i,o=n.type||o):b(n)&&(i=n||i):2===t.length&&(b(n)&&(i=n||i),b(r)&&(o=r||o));const a=d(e)(x),s="vnode"===o&&m(a)&&i?a[0]:a;return i?h(i)(s,o):s},x={["list"]:l,["named"]:c,["plural"]:i,["linked"]:w,["message"]:d,["type"]:g,["interpolate"]:v,["normalize"]:p,["values"]:f({},a,u)};return x}let He=null;function qe(e){He=e}function Ge(e,t,n){He&&He.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ye=$e("function:translate");function $e(e){return t=>He&&He.emit(e,t)}const Xe=W.__EXTEND_POINT__,Je=O(Xe),Qe={NOT_FOUND_KEY:Xe,FALLBACK_TO_TRANSLATE:Je(),CANNOT_FORMAT_NUMBER:Je(),FALLBACK_TO_NUMBER_FORMAT:Je(),CANNOT_FORMAT_DATE:Je(),FALLBACK_TO_DATE_FORMAT:Je(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Je(),__EXTEND_POINT__:Je()};Qe.NOT_FOUND_KEY,Qe.FALLBACK_TO_TRANSLATE,Qe.CANNOT_FORMAT_NUMBER,Qe.FALLBACK_TO_NUMBER_FORMAT,Qe.CANNOT_FORMAT_DATE,Qe.FALLBACK_TO_DATE_FORMAT,Qe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER;const Ze=K.__EXTEND_POINT__,et=O(Ze),tt={INVALID_ARGUMENT:Ze,INVALID_DATE_ARGUMENT:et(),INVALID_ISO_DATE_ARGUMENT:et(),NOT_SUPPORT_NON_STRING_MESSAGE:et(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:et(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:et(),NOT_SUPPORT_LOCALE_TYPE:et(),__EXTEND_POINT__:et()};function nt(e){return H(e,null,void 0)}tt.INVALID_ARGUMENT,tt.INVALID_DATE_ARGUMENT,tt.INVALID_ISO_DATE_ARGUMENT,tt.NOT_SUPPORT_NON_STRING_MESSAGE,tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE,tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,tt.NOT_SUPPORT_LOCALE_TYPE;function rt(e,t){return null!=t.locale?it(t.locale):it(e.locale)}let ot;function it(e){if(b(e))return e;if(y(e)){if(e.resolvedOnce&&null!=ot)return ot;if("Function"===e.constructor.name){const t=e();if(x(t))throw nt(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ot=t}throw nt(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw nt(tt.NOT_SUPPORT_LOCALE_TYPE)}function at(e,t,n){return[...new Set([n,...m(t)?t:A(t)?Object.keys(t):b(t)?[t]:[n]])]}function st(e,t,n){const r=b(n)?n:ht,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let e=[n];while(m(e))e=lt(i,e,t);const a=m(t)||!_(t)?t:t["default"]?t["default"]:null;e=b(a)?[a]:a,m(e)&&lt(i,e,!1),o.__localeChainCache.set(r,i)}return i}function lt(e,t,n){let r=!0;for(let o=0;o<t.length&&w(r);o++){const i=t[o];b(i)&&(r=ut(e,t[o],n))}return r}function ut(e,t,n){let r;const o=t.split("-");do{const t=o.join("-");r=ct(e,t,n),o.splice(-1,1)}while(o.length&&!0===r);return r}function ct(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(m(n)||_(n))&&n[o]&&(r=n[o])}return r}const ft="9.13.1",dt=-1,ht="en-US",pt="",vt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function gt(){return{upper:(e,t)=>"text"===t&&b(e)?e.toUpperCase():"vnode"===t&&A(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&b(e)?e.toLowerCase():"vnode"===t&&A(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&b(e)?vt(e):"vnode"===t&&A(e)&&"__v_isVNode"in e?vt(e.children):e}}let mt,yt,bt;function wt(e){mt=e}function At(e){yt=e}function xt(e){bt=e}let Ct=null;const St=e=>{Ct=e},_t=()=>Ct;let kt=null;const Et=e=>{kt=e},Ot=()=>kt;let Ft=0;function Tt(e={}){const t=y(e.onWarn)?e.onWarn:F,n=b(e.version)?e.version:ft,r=b(e.locale)||y(e.locale)?e.locale:ht,o=y(r)?ht:r,i=m(e.fallbackLocale)||_(e.fallbackLocale)||b(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o,a=_(e.messages)?e.messages:{[o]:{}},s=_(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=_(e.numberFormats)?e.numberFormats:{[o]:{}},c=f({},e.modifiers||{},gt()),d=e.pluralRules||{},h=y(e.missing)?e.missing:null,p=!w(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,v=!w(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,x=!!e.unresolving,C=y(e.postTranslation)?e.postTranslation:null,S=_(e.processor)?e.processor:null,k=!w(e.warnHtmlMessage)||e.warnHtmlMessage,E=!!e.escapeParameter,O=y(e.messageCompiler)?e.messageCompiler:mt;const T=y(e.messageResolver)?e.messageResolver:yt||Le,P=y(e.localeFallbacker)?e.localeFallbacker:bt||at,N=A(e.fallbackContext)?e.fallbackContext:void 0,M=e,L=A(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,I=A(M.__numberFormatters)?M.__numberFormatters:new Map,R=A(M.__meta)?M.__meta:{};Ft++;const j={version:n,cid:Ft,locale:r,fallbackLocale:i,messages:a,modifiers:c,pluralRules:d,missing:h,missingWarn:p,fallbackWarn:v,fallbackFormat:g,unresolving:x,postTranslation:C,processor:S,warnHtmlMessage:k,escapeParameter:E,messageCompiler:O,messageResolver:T,localeFallbacker:P,fallbackContext:N,onWarn:t,__meta:R};return j.datetimeFormats=s,j.numberFormats=l,j.__datetimeFormatters=L,j.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&Ge(j,n,R),j}function Pt(e,t,n,r,o){const{missing:i,onWarn:a}=e;if(null!==i){const r=i(e,n,t,o);return b(r)?r:t}return t}function Nt(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Mt(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function Lt(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(Mt(e,t[r]))return!0;return!1}function It(e){const t=t=>Rt(t,e);return t}function Rt(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,jt(e,n)]),[]))}return jt(e,n)}function jt(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,Dt(e,n)]),[]);return e.normalize(n)}}function Dt(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,r=n.m||n.modifier;return e.linked(Dt(e,n.k||n.key),r?Dt(e,r):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const Bt=e=>e;let Wt=Object.create(null);const zt=e=>A(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function Ut(e,t={}){let n=!1;const r=t.onError||q;return t.onError=e=>{n=!0,r(e)},{...Se(e,t),detectError:n}}const Kt=(e,t)=>{if(!b(e))throw nt(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{!w(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||Bt,r=n(e),o=Wt[r];if(o)return o;const{code:i,detectError:a}=Ut(e,t),s=new Function(`return ${i}`)();return a?s:Wt[r]=s}};function Vt(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&b(e)){!w(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||Bt,r=n(e),o=Wt[r];if(o)return o;const{ast:i,detectError:a}=Ut(e,{...t,location:!1,jit:!0}),s=It(i);return a?s:Wt[r]=s}{0;const t=e.cacheKey;if(t){const n=Wt[t];return n||(Wt[t]=It(e))}return It(e)}}const Ht=()=>"",qt=e=>y(e);function Gt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,u]=Qt(...t),c=w(u.missingWarn)?u.missingWarn:e.missingWarn,d=w(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=w(u.escapeParameter)?u.escapeParameter:e.escapeParameter,p=!!u.resolvedMessage,v=b(u.default)||w(u.default)?w(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:"",g=n||""!==v,m=rt(e,u);h&&Yt(u);let[y,A,x]=p?[l,m,s[m]||{}]:$t(e,l,m,a,d,c),C=y,S=l;if(p||b(C)||zt(C)||qt(C)||g&&(C=v,S=C),!p&&(!(b(C)||zt(C)||qt(C))||!b(A)))return o?dt:l;let _=!1;const k=()=>{_=!0},E=qt(C)?C:Xt(e,l,A,C,S,k);if(_)return C;const O=en(e,A,x,u),F=Ve(O),T=Jt(e,E,F),P=r?r(T,l):T;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:b(l)?l:qt(C)?C.key:"",locale:A||(qt(C)?C.locale:""),format:b(C)?C:qt(C)?C.source:"",message:P};t.meta=f({},e.__meta,_t()||{}),Ye(t)}return P}function Yt(e){m(e.list)?e.list=e.list.map((e=>b(e)?p(e):e)):A(e.named)&&Object.keys(e.named).forEach((t=>{b(e.named[t])&&(e.named[t]=p(e.named[t]))}))}function $t(e,t,n,r,o,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f,d={},h=null,p=n,v=null;const g="translate";for(let m=0;m<c.length;m++){f=v=c[m],d=a[f]||{};if(null===(h=l(d,t))&&(h=d[t]),b(h)||zt(h)||qt(h))break;if(!Lt(f,c)){const n=Pt(e,t,f,i,g);n!==t&&(h=n)}p=v}return[h,f,d]}function Xt(e,t,n,r,o,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(qt(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==a){const e=()=>r;return e.locale=n,e.key=t,e}const l=a(r,Zt(e,n,o,r,s,i));return l.locale=n,l.key=t,l.source=r,l}function Jt(e,t,n){const r=t(n);return r}function Qt(...e){const[t,n,r]=e,o={};if(!b(t)&&!s(t)&&!qt(t)&&!zt(t))throw nt(tt.INVALID_ARGUMENT);const i=s(t)?String(t):(qt(t),t);return s(n)?o.plural=n:b(n)?o.default=n:_(n)&&!c(n)?o.named=n:m(n)&&(o.list=n),s(r)?o.plural=r:b(r)?o.default=r:_(r)&&f(o,r),[i,o]}function Zt(e,t,n,r,o,a){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw a&&a(e),e},onCacheKey:e=>i(t,n,e)}}function en(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:l,fallbackWarn:u,missingWarn:c,fallbackContext:f}=e,d=r=>{let o=a(n,r);if(null==o&&f){const[,,e]=$t(f,r,t,l,u,c);o=a(e,r)}if(b(o)||zt(o)){let n=!1;const i=()=>{n=!0},a=Xt(e,r,t,o,r,i);return n?Ht:a}return qt(o)?o:Ht},h={locale:t,modifiers:o,pluralRules:i,messages:d};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),s(r.plural)&&(h.pluralIndex=r.plural),h}const tn="undefined"!==typeof Intl;tn&&Intl.DateTimeFormat,tn&&Intl.NumberFormat;function nn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;const[l,u,d,h]=on(...t),p=w(d.missingWarn)?d.missingWarn:e.missingWarn,v=(w(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),g=rt(e,d),m=a(e,o,g);if(!b(l)||""===l)return new Intl.DateTimeFormat(g,h).format(u);let y,A={},x=null,C=g,S=null;const k="datetime format";for(let c=0;c<m.length;c++){if(y=S=m[c],A=n[y]||{},x=A[l],_(x))break;Pt(e,l,y,p,k),C=S}if(!_(x)||!b(y))return r?dt:l;let E=`${y}__${l}`;c(h)||(E=`${E}__${JSON.stringify(h)}`);let O=s.get(E);return O||(O=new Intl.DateTimeFormat(y,f({},x,h)),s.set(E,O)),v?O.formatToParts(u):O.format(u)}const rn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function on(...e){const[t,n,r,o]=e,i={};let a,u={};if(b(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw nt(tt.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch(c){throw nt(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(l(t)){if(isNaN(t.getTime()))throw nt(tt.INVALID_DATE_ARGUMENT);a=t}else{if(!s(t))throw nt(tt.INVALID_ARGUMENT);a=t}return b(n)?i.key=n:_(n)&&Object.keys(n).forEach((e=>{rn.includes(e)?u[e]=n[e]:i[e]=n[e]})),b(r)?i.locale=r:_(r)&&(u=r),_(o)&&(u=o),[i.key||"",a,i,u]}function an(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function sn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e;const[l,u,d,h]=un(...t),p=w(d.missingWarn)?d.missingWarn:e.missingWarn,v=(w(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),g=rt(e,d),m=a(e,o,g);if(!b(l)||""===l)return new Intl.NumberFormat(g,h).format(u);let y,A={},x=null,C=g,S=null;const k="number format";for(let c=0;c<m.length;c++){if(y=S=m[c],A=n[y]||{},x=A[l],_(x))break;Pt(e,l,y,p,k),C=S}if(!_(x)||!b(y))return r?dt:l;let E=`${y}__${l}`;c(h)||(E=`${E}__${JSON.stringify(h)}`);let O=s.get(E);return O||(O=new Intl.NumberFormat(y,f({},x,h)),s.set(E,O)),v?O.formatToParts(u):O.format(u)}const ln=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function un(...e){const[t,n,r,o]=e,i={};let a={};if(!s(t))throw nt(tt.INVALID_ARGUMENT);const l=t;return b(n)?i.key=n:_(n)&&Object.keys(n).forEach((e=>{ln.includes(e)?a[e]=n[e]:i[e]=n[e]})),b(r)?i.locale=r:_(r)&&(a=r),_(o)&&(a=o),[i.key||"",l,i,a]}function cn(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}_e();var fn=n(29726);
/*!
  * vue-i18n v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */
const dn="9.13.1";function hn(){"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(h().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(h().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __INTLIFY_JIT_COMPILATION__&&(h().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(h().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(h().__INTLIFY_PROD_DEVTOOLS__=!1)}const pn=Qe.__EXTEND_POINT__,vn=O(pn),gn={FALLBACK_TO_ROOT:pn,NOT_SUPPORTED_PRESERVE:vn(),NOT_SUPPORTED_FORMATTER:vn(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:vn(),NOT_SUPPORTED_GET_CHOICE_INDEX:vn(),COMPONENT_NAME_LEGACY_COMPATIBLE:vn(),NOT_FOUND_PARENT_SCOPE:vn(),IGNORE_OBJ_FLATTEN:vn(),NOTICE_DROP_ALLOW_COMPOSITION:vn(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:vn()};gn.FALLBACK_TO_ROOT,gn.NOT_SUPPORTED_PRESERVE,gn.NOT_SUPPORTED_FORMATTER,gn.NOT_SUPPORTED_PRESERVE_DIRECTIVE,gn.NOT_SUPPORTED_GET_CHOICE_INDEX,gn.COMPONENT_NAME_LEGACY_COMPATIBLE,gn.NOT_FOUND_PARENT_SCOPE,gn.IGNORE_OBJ_FLATTEN,gn.NOTICE_DROP_ALLOW_COMPOSITION,gn.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG;const mn=tt.__EXTEND_POINT__,yn=O(mn),bn={UNEXPECTED_RETURN_TYPE:mn,INVALID_ARGUMENT:yn(),MUST_BE_CALL_SETUP_TOP:yn(),NOT_INSTALLED:yn(),NOT_AVAILABLE_IN_LEGACY_MODE:yn(),REQUIRED_VALUE:yn(),INVALID_VALUE:yn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:yn(),NOT_INSTALLED_WITH_PROVIDE:yn(),UNEXPECTED_ERROR:yn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:yn(),BRIDGE_SUPPORT_VUE_2_ONLY:yn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:yn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:yn(),__EXTEND_POINT__:yn()};function wn(e,...t){return H(e,null,void 0)}bn.UNEXPECTED_RETURN_TYPE,bn.INVALID_ARGUMENT,bn.MUST_BE_CALL_SETUP_TOP,bn.NOT_INSTALLED,bn.UNEXPECTED_ERROR,bn.NOT_AVAILABLE_IN_LEGACY_MODE,bn.REQUIRED_VALUE,bn.INVALID_VALUE,bn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,bn.NOT_INSTALLED_WITH_PROVIDE,bn.NOT_COMPATIBLE_LEGACY_VUE_I18N,bn.BRIDGE_SUPPORT_VUE_2_ONLY,bn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION,bn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const An=o("__translateVNode"),xn=o("__datetimeParts"),Cn=o("__numberParts"),Sn=o("__setPluralRules");o("__intlifyMeta");const _n=o("__injectWithOption"),kn=o("__dispose");function En(e){if(!A(e))return e;for(const t in e)if(g(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e,i=!1;for(let e=0;e<r;e++){if(n[e]in o||(o[n[e]]={}),!A(o[n[e]])){i=!0;break}o=o[n[e]]}i||(o[n[r]]=e[t],delete e[t]),A(o[n[r]])&&En(o[n[r]])}else A(e[t])&&En(e[t]);return e}function On(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=t,a=_(n)?n:m(r)?{}:{[e]:{}};if(m(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(a[t]=a[t]||{},P(n,a[t])):P(n,a)}else b(e)&&P(JSON.parse(e),a)})),null==o&&i)for(const s in a)g(a,s)&&En(a[s]);return a}function Fn(e){return e.type}function Tn(e,t,n){let r=A(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=On(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);if(o.length&&o.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),A(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(A(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Pn(e){return(0,fn.bF)(fn.EY,null,e,0)}const Nn="__INTLIFY_META__",Mn=()=>[],Ln=()=>!1;let In=0;function Rn(e){return(t,n,r,o)=>e(n,r,(0,fn.nI)()||void 0,o)}const jn=()=>{const e=(0,fn.nI)();let t=null;return e&&(t=Fn(e)[Nn])?{[Nn]:t}:null};function Dn(e={},t){const{__root:n,__injectWithOption:o}=e,i=void 0===n,a=e.flatJson,l=r?fn.KR:fn.IJ,c=!!e.translateExistCompatible;let d=!w(e.inheritLocale)||e.inheritLocale;const h=l(n&&d?n.locale.value:b(e.locale)?e.locale:ht),p=l(n&&d?n.fallbackLocale.value:b(e.fallbackLocale)||m(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:h.value),v=l(On(h.value,e)),x=l(_(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),C=l(_(e.numberFormats)?e.numberFormats:{[h.value]:{}});let S=n?n.missingWarn:!w(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,k=n?n.fallbackWarn:!w(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,E=n?n.fallbackRoot:!w(e.fallbackRoot)||e.fallbackRoot,O=!!e.fallbackFormat,F=y(e.missing)?e.missing:null,T=y(e.missing)?Rn(e.missing):null,N=y(e.postTranslation)?e.postTranslation:null,M=n?n.warnHtmlMessage:!w(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter;const I=n?n.modifiers:_(e.modifiers)?e.modifiers:{};let R,j=e.pluralRules||n&&n.pluralRules;const D=()=>{i&&Et(null);const t={version:dn,locale:h.value,fallbackLocale:p.value,messages:v.value,modifiers:I,pluralRules:j,missing:null===T?void 0:T,missingWarn:S,fallbackWarn:k,fallbackFormat:O,unresolving:!0,postTranslation:null===N?void 0:N,warnHtmlMessage:M,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=x.value,t.numberFormats=C.value,t.__datetimeFormatters=_(R)?R.__datetimeFormatters:void 0,t.__numberFormatters=_(R)?R.__numberFormatters:void 0;const n=Tt(t);return i&&Et(n),n};function B(){return[h.value,p.value,v.value,x.value,C.value]}R=D(),Nt(R,h.value,p.value);const W=(0,fn.EW)({get:()=>h.value,set:e=>{h.value=e,R.locale=h.value}}),z=(0,fn.EW)({get:()=>p.value,set:e=>{p.value=e,R.fallbackLocale=p.value,Nt(R,h.value,e)}}),U=(0,fn.EW)((()=>v.value)),K=(0,fn.EW)((()=>x.value)),V=(0,fn.EW)((()=>C.value));function H(){return y(N)?N:null}function q(e){N=e,R.postTranslation=e}function G(){return F}function Y(e){null!==e&&(T=Rn(e)),F=e,R.missing=T}const $=(e,t,r,o,a,l)=>{let u;B();try{__INTLIFY_PROD_DEVTOOLS__&&St(jn()),i||(R.fallbackContext=n?Ot():void 0),u=e(R)}finally{__INTLIFY_PROD_DEVTOOLS__&&St(null),i||(R.fallbackContext=void 0)}if("translate exists"!==r&&s(u)&&u===dt||"translate exists"===r&&!u){const[e,r]=t();return n&&E?o(n):a(e)}if(l(u))return u;throw wn(bn.UNEXPECTED_RETURN_TYPE)};function X(...e){return $((t=>Reflect.apply(Gt,null,[t,...e])),(()=>Qt(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>b(e)))}function J(...e){const[t,n,r]=e;if(r&&!A(r))throw wn(bn.INVALID_ARGUMENT);return X(t,n,f({resolvedMessage:!0},r||{}))}function Q(...e){return $((t=>Reflect.apply(nn,null,[t,...e])),(()=>on(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>pt),(e=>b(e)))}function Z(...e){return $((t=>Reflect.apply(sn,null,[t,...e])),(()=>un(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>pt),(e=>b(e)))}function ee(e){return e.map((e=>b(e)||s(e)||w(e)?Pn(String(e)):e))}const te=e=>e,ne={normalize:ee,interpolate:te,type:"vnode"};function re(...e){return $((t=>{let n;const r=t;try{r.processor=ne,n=Reflect.apply(Gt,null,[r,...e])}finally{r.processor=null}return n}),(()=>Qt(...e)),"translate",(t=>t[An](...e)),(e=>[Pn(e)]),(e=>m(e)))}function oe(...e){return $((t=>Reflect.apply(sn,null,[t,...e])),(()=>un(...e)),"number format",(t=>t[Cn](...e)),Mn,(e=>b(e)||m(e)))}function ie(...e){return $((t=>Reflect.apply(nn,null,[t,...e])),(()=>on(...e)),"datetime format",(t=>t[xn](...e)),Mn,(e=>b(e)||m(e)))}function ae(e){j=e,R.pluralRules=j}function se(e,t){return $((()=>{if(!e)return!1;const n=b(t)?t:h.value,r=ce(n),o=R.messageResolver(r,e);return c?null!=o:zt(o)||qt(o)||b(o)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Ln,(e=>w(e)))}function le(e){let t=null;const n=st(R,p.value,h.value);for(let r=0;r<n.length;r++){const o=v.value[n[r]]||{},i=R.messageResolver(o,e);if(null!=i){t=i;break}}return t}function ue(e){const t=le(e);return null!=t?t:n&&n.tm(e)||{}}function ce(e){return v.value[e]||{}}function fe(e,t){if(a){const n={[e]:t};for(const e in n)g(n,e)&&En(n[e]);t=n[e]}v.value[e]=t,R.messages=v.value}function de(e,t){v.value[e]=v.value[e]||{};const n={[e]:t};if(a)for(const r in n)g(n,r)&&En(n[r]);t=n[e],P(t,v.value[e]),R.messages=v.value}function he(e){return x.value[e]||{}}function pe(e,t){x.value[e]=t,R.datetimeFormats=x.value,an(R,e,t)}function ve(e,t){x.value[e]=f(x.value[e]||{},t),R.datetimeFormats=x.value,an(R,e,t)}function ge(e){return C.value[e]||{}}function me(e,t){C.value[e]=t,R.numberFormats=C.value,cn(R,e,t)}function ye(e,t){C.value[e]=f(C.value[e]||{},t),R.numberFormats=C.value,cn(R,e,t)}In++,n&&r&&((0,fn.wB)(n.locale,(e=>{d&&(h.value=e,R.locale=e,Nt(R,h.value,p.value))})),(0,fn.wB)(n.fallbackLocale,(e=>{d&&(p.value=e,R.fallbackLocale=e,Nt(R,h.value,p.value))})));const be={id:In,locale:W,fallbackLocale:z,get inheritLocale(){return d},set inheritLocale(e){d=e,e&&n&&(h.value=n.locale.value,p.value=n.fallbackLocale.value,Nt(R,h.value,p.value))},get availableLocales(){return Object.keys(v.value).sort()},messages:U,get modifiers(){return I},get pluralRules(){return j||{}},get isGlobal(){return i},get missingWarn(){return S},set missingWarn(e){S=e,R.missingWarn=S},get fallbackWarn(){return k},set fallbackWarn(e){k=e,R.fallbackWarn=k},get fallbackRoot(){return E},set fallbackRoot(e){E=e},get fallbackFormat(){return O},set fallbackFormat(e){O=e,R.fallbackFormat=O},get warnHtmlMessage(){return M},set warnHtmlMessage(e){M=e,R.warnHtmlMessage=e},get escapeParameter(){return L},set escapeParameter(e){L=e,R.escapeParameter=e},t:X,getLocaleMessage:ce,setLocaleMessage:fe,mergeLocaleMessage:de,getPostTranslationHandler:H,setPostTranslationHandler:q,getMissingHandler:G,setMissingHandler:Y,[Sn]:ae};return be.datetimeFormats=K,be.numberFormats=V,be.rt=J,be.te=se,be.tm=ue,be.d=Q,be.n=Z,be.getDateTimeFormat=he,be.setDateTimeFormat=pe,be.mergeDateTimeFormat=ve,be.getNumberFormat=ge,be.setNumberFormat=me,be.mergeNumberFormat=ye,be[_n]=o,be[An]=re,be[xn]=ie,be[Cn]=oe,be}function Bn(e){const t=b(e.locale)?e.locale:ht,n=b(e.fallbackLocale)||m(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=y(e.missing)?e.missing:void 0,o=!w(e.silentTranslationWarn)&&!u(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!w(e.silentFallbackWarn)&&!u(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!w(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=_(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=y(e.postTranslation)?e.postTranslation:void 0,h=!b(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,v=!w(e.sync)||e.sync;let g=e.messages;if(_(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);g=n.reduce(((e,n)=>{const r=e[n]||(e[n]={});return f(r,t[n]),e}),g||{})}const{__i18n:A,__root:x,__injectWithOption:C}=e,S=e.datetimeFormats,k=e.numberFormats,E=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:g,flatJson:E,datetimeFormats:S,numberFormats:k,missing:r,missingWarn:o,fallbackWarn:i,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:d,warnHtmlMessage:h,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:v,translateExistCompatible:O,__i18n:A,__root:x,__injectWithOption:C}}function Wn(e={},t){{const t=Dn(Bn(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return w(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=w(e)?!e:e},get silentFallbackWarn(){return w(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=w(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,i={};let a=null,s=null;if(!b(n))throw wn(bn.INVALID_ARGUMENT);const l=n;return b(r)?i.locale=r:m(r)?a=r:_(r)&&(s=r),m(o)?a=o:_(o)&&(s=o),Reflect.apply(t.t,t,[l,a||s||{},i])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,r,o]=e,i={plural:1};let a=null,l=null;if(!b(n))throw wn(bn.INVALID_ARGUMENT);const u=n;return b(r)?i.locale=r:s(r)?i.plural=r:m(r)?a=r:_(r)&&(l=r),b(o)?i.locale=o:m(o)?a=o:_(o)&&(l=o),Reflect.apply(t.t,t,[u,a||l||{},i])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex(e,t){return-1}};return r.__extender=n,r}}const zn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Un({slots:e},t){if(1===t.length&&"default"===t[0]){const t=e.default?e.default():[];return t.reduce(((e,t)=>[...e,...t.type===fn.FK?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function Kn(e){return fn.FK}const Vn=(0,fn.pM)({name:"i18n-t",props:f({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s(e)||!isNaN(e)}},zn),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||sr({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter((e=>"_"!==e)),a={};e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=b(e.plural)?+e.plural:e.plural);const s=Un(t,i),l=o[An](e.keypath,s,a),u=f({},r),c=b(e.tag)||A(e.tag)?e.tag:Kn();return(0,fn.h)(c,u,l)}}}),Hn=Vn;function qn(e){return m(e)&&!b(e[0])}function Gn(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),b(e.format)?t.key=e.format:A(e.format)&&(b(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?f({},t,{[r]:e.format[r]}):t),{}));const s=r(e.value,t,a);let l=[t.key];m(s)?l=s.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];return qn(r)&&(r[0].key=`${e.type}-${t}`),r})):b(s)&&(l=[s]);const u=f({},i),c=b(e.tag)||A(e.tag)?e.tag:Kn();return(0,fn.h)(c,u,l)}}const Yn=(0,fn.pM)({name:"i18n-n",props:f({value:{type:Number,required:!0},format:{type:[String,Object]}},zn),setup(e,t){const n=e.i18n||sr({useScope:e.scope,__useComponent:!0});return Gn(e,t,ln,((...e)=>n[Cn](...e)))}}),$n=Yn,Xn=(0,fn.pM)({name:"i18n-d",props:f({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},zn),setup(e,t){const n=e.i18n||sr({useScope:e.scope,__useComponent:!0});return Gn(e,t,rn,((...e)=>n[xn](...e)))}}),Jn=Xn;function Qn(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}function Zn(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw wn(bn.UNEXPECTED_ERROR);const i=Qn(e,n.$);const a=er(o);return[Reflect.apply(i.t,i,[...tr(a)]),i]},n=(n,o)=>{const[i,a]=t(o);r&&e.global===a&&(n.__i18nWatcher=(0,fn.wB)(a.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),n.__composer=a,n.textContent=i},o=e=>{r&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},i=(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=er(t);e.textContent=Reflect.apply(n.t,n,[...tr(r)])}},a=e=>{const[n]=t(e);return{textContent:n}};return{created:n,unmounted:o,beforeUpdate:i,getSSRProps:a}}function er(e){if(b(e))return{path:e};if(_(e)){if(!("path"in e))throw wn(bn.REQUIRED_VALUE,"path");return e}throw wn(bn.INVALID_VALUE)}function tr(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,a={},l=r||{};return b(n)&&(a.locale=n),s(o)&&(a.plural=o),s(i)&&(a.plural=i),[t,l,a]}function nr(e,t,...n){const r=_(n[0])?n[0]:{},o=!!r.useI18nComponentName,i=!w(r.globalInstall)||r.globalInstall;i&&([o?"i18n":Hn.name,"I18nT"].forEach((t=>e.component(t,Hn))),[$n.name,"I18nN"].forEach((t=>e.component(t,$n))),[Jn.name,"I18nD"].forEach((t=>e.component(t,Jn)))),e.directive("t",Zn(t))}function rr(e,t,n){return{beforeCreate(){const r=(0,fn.nI)();if(!r)throw wn(bn.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=or(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Wn(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=or(e,o);else{this.$i18n=Wn({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Tn(t,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){0},unmounted(){const e=(0,fn.nI)();if(!e)throw wn(bn.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function or(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Sn](t.pluralizationRules||e.pluralizationRules);const n=On(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const ir=o("global-vue-i18n");function ar(e={},t){const n=__VUE_I18N_LEGACY_API__&&w(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=!w(e.globalInjection)||e.globalInjection,i=!__VUE_I18N_LEGACY_API__||!n||!!e.allowComposition,a=new Map,[s,l]=lr(e,n),u=o("");function c(e){return a.get(e)||null}function f(e,t){a.set(e,t)}function d(e){a.delete(e)}{const e={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(t,...o){if(t.__VUE_I18N_SYMBOL__=u,t.provide(t.__VUE_I18N_SYMBOL__,e),_(o[0])){const t=o[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let i=null;!n&&r&&(i=yr(t,e.global)),__VUE_I18N_FULL_INSTALL__&&nr(t,e,...o),__VUE_I18N_LEGACY_API__&&n&&t.mixin(rr(l,l.__composer,e));const a=t.unmount;t.unmount=()=>{i&&i(),e.dispose(),a()}},get global(){return l},dispose(){s.stop()},__instances:a,__getInstance:c,__setInstance:f,__deleteInstance:d};return e}}function sr(e={}){const t=(0,fn.nI)();if(null==t)throw wn(bn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw wn(bn.NOT_INSTALLED);const n=ur(t),r=fr(n),o=Fn(t),i=cr(e,o);if(__VUE_I18N_LEGACY_API__&&"legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw wn(bn.NOT_AVAILABLE_IN_LEGACY_MODE);return vr(t,i,r,e)}if("global"===i)return Tn(r,e,o),r;if("parent"===i){let o=dr(n,t,e.__useComponent);return null==o&&(o=r),o}const a=n;let s=a.__getInstance(t);if(null==s){const n=f({},e);"__i18n"in o&&(n.__i18n=o.__i18n),r&&(n.__root=r),s=Dn(n),a.__composerExtend&&(s[kn]=a.__composerExtend(s)),pr(a,t,s),a.__setInstance(t,s)}return s}function lr(e,t,n){const r=(0,fn.uY)();{const n=__VUE_I18N_LEGACY_API__&&t?r.run((()=>Wn(e))):r.run((()=>Dn(e)));if(null==n)throw wn(bn.UNEXPECTED_ERROR);return[r,n]}}function ur(e){{const t=(0,fn.WQ)(e.isCE?ir:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw wn(e.isCE?bn.NOT_INSTALLED_WITH_PROVIDE:bn.UNEXPECTED_ERROR);return t}}function cr(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fr(e){return"composition"===e.mode?e.global:e.global.__composer}function dr(e,t,n=!1){let r=null;const o=t.root;let i=hr(t,n);while(null!=i){const t=e;if("composition"===e.mode)r=t.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(i);null!=e&&(r=e.__composer,n&&r&&!r[_n]&&(r=null))}if(null!=r)break;if(o===i)break;i=i.parent}return r}function hr(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function pr(e,t,n){(0,fn.sV)((()=>{0}),t),(0,fn.hi)((()=>{const r=n;e.__deleteInstance(t);const o=r[kn];o&&(o(),delete r[kn])}),t)}function vr(e,t,n,r={}){const o="local"===t,i=(0,fn.IJ)(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw wn(bn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=w(r.inheritLocale)?r.inheritLocale:!b(r.locale),s=(0,fn.KR)(!o||a?n.locale.value:b(r.locale)?r.locale:ht),l=(0,fn.KR)(!o||a?n.fallbackLocale.value:b(r.fallbackLocale)||m(r.fallbackLocale)||_(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:s.value),c=(0,fn.KR)(On(s.value,r)),f=(0,fn.KR)(_(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),d=(0,fn.KR)(_(r.numberFormats)?r.numberFormats:{[s.value]:{}}),h=o?n.missingWarn:!w(r.missingWarn)&&!u(r.missingWarn)||r.missingWarn,p=o?n.fallbackWarn:!w(r.fallbackWarn)&&!u(r.fallbackWarn)||r.fallbackWarn,v=o?n.fallbackRoot:!w(r.fallbackRoot)||r.fallbackRoot,g=!!r.fallbackFormat,A=y(r.missing)?r.missing:null,x=y(r.postTranslation)?r.postTranslation:null,C=o?n.warnHtmlMessage:!w(r.warnHtmlMessage)||r.warnHtmlMessage,S=!!r.escapeParameter,k=o?n.modifiers:_(r.modifiers)?r.modifiers:{},E=r.pluralRules||o&&n.pluralRules;function O(){return[s.value,l.value,c.value,f.value,d.value]}const F=(0,fn.EW)({get:()=>i.value?i.value.locale.value:s.value,set:e=>{i.value&&(i.value.locale.value=e),s.value=e}}),T=(0,fn.EW)({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),l.value=e}}),P=(0,fn.EW)((()=>i.value?i.value.messages.value:c.value)),N=(0,fn.EW)((()=>f.value)),M=(0,fn.EW)((()=>d.value));function L(){return i.value?i.value.getPostTranslationHandler():x}function I(e){i.value&&i.value.setPostTranslationHandler(e)}function R(){return i.value?i.value.getMissingHandler():A}function j(e){i.value&&i.value.setMissingHandler(e)}function D(e){return O(),e()}function B(...e){return i.value?D((()=>Reflect.apply(i.value.t,null,[...e]))):D((()=>""))}function W(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""}function z(...e){return i.value?D((()=>Reflect.apply(i.value.d,null,[...e]))):D((()=>""))}function U(...e){return i.value?D((()=>Reflect.apply(i.value.n,null,[...e]))):D((()=>""))}function K(e){return i.value?i.value.tm(e):{}}function V(e,t){return!!i.value&&i.value.te(e,t)}function H(e){return i.value?i.value.getLocaleMessage(e):{}}function q(e,t){i.value&&(i.value.setLocaleMessage(e,t),c.value[e]=t)}function G(e,t){i.value&&i.value.mergeLocaleMessage(e,t)}function Y(e){return i.value?i.value.getDateTimeFormat(e):{}}function $(e,t){i.value&&(i.value.setDateTimeFormat(e,t),f.value[e]=t)}function X(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)}function J(e){return i.value?i.value.getNumberFormat(e):{}}function Q(e,t){i.value&&(i.value.setNumberFormat(e,t),d.value[e]=t)}function Z(e,t){i.value&&i.value.mergeNumberFormat(e,t)}const ee={get id(){return i.value?i.value.id:-1},locale:F,fallbackLocale:T,messages:P,datetimeFormats:N,numberFormats:M,get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:k},get pluralRules(){return i.value?i.value.pluralRules:E},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:v},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:C},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:S},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:B,getPostTranslationHandler:L,setPostTranslationHandler:I,getMissingHandler:R,setMissingHandler:j,rt:W,d:z,n:U,tm:K,te:V,getLocaleMessage:H,setLocaleMessage:q,mergeLocaleMessage:G,getDateTimeFormat:Y,setDateTimeFormat:$,mergeDateTimeFormat:X,getNumberFormat:J,setNumberFormat:Q,mergeNumberFormat:Z};function te(e){e.locale.value=s.value,e.fallbackLocale.value=l.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(d.value).forEach((t=>{e.mergeNumberFormat(t,d.value[t])})),e.escapeParameter=S,e.fallbackFormat=g,e.fallbackRoot=v,e.fallbackWarn=p,e.missingWarn=h,e.warnHtmlMessage=C}return(0,fn.KC)((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw wn(bn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=i.value=e.proxy.$i18n.__composer;"global"===t?(s.value=n.locale.value,l.value=n.fallbackLocale.value,c.value=n.messages.value,f.value=n.datetimeFormats.value,d.value=n.numberFormats.value):o&&te(n)})),ee}const gr=["locale","fallbackLocale","availableLocales"],mr=["t","rt","d","n","tm","te"];function yr(e,t){const n=Object.create(null);gr.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw wn(bn.UNEXPECTED_ERROR);const o=(0,fn.i9)(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,mr.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw wn(bn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}));const r=()=>{delete e.config.globalProperties.$i18n,mr.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return r}if(hn(),__INTLIFY_JIT_COMPILATION__?wt(Vt):wt(Kt),At(Ie),xt(st),__INTLIFY_PROD_DEVTOOLS__){const e=h();e.__INTLIFY__=!0,qe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},75220:function(e,t,n){"use strict";n.d(t,{LA:function(){return ae},aE:function(){return nt},lq:function(){return it},rd:function(){return ot}});var r=n(29726);
/*!
  * vue-router v4.4.3
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */const o="undefined"!==typeof document;function i(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const a=Object.assign;function s(e,t){const n={};for(const r in t){const o=t[r];n[r]=u(o)?o.map(e):e(o)}return n}const l=()=>{},u=Array.isArray;const c=/#/g,f=/&/g,d=/\//g,h=/=/g,p=/\?/g,v=/\+/g,g=/%5B/g,m=/%5D/g,y=/%5E/g,b=/%60/g,w=/%7B/g,A=/%7C/g,x=/%7D/g,C=/%20/g;function S(e){return encodeURI(""+e).replace(A,"|").replace(g,"[").replace(m,"]")}function _(e){return S(e).replace(w,"{").replace(x,"}").replace(y,"^")}function k(e){return S(e).replace(v,"%2B").replace(C,"+").replace(c,"%23").replace(f,"%26").replace(b,"`").replace(w,"{").replace(x,"}").replace(y,"^")}function E(e){return k(e).replace(h,"%3D")}function O(e){return S(e).replace(c,"%23").replace(p,"%3F")}function F(e){return null==e?"":O(e).replace(d,"%2F")}function T(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const P=/\/$/,N=e=>e.replace(P,"");function M(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=z(null!=r?r:t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:T(a)}}function L(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function I(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function R(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&j(t.matched[r],n.matched[o])&&D(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function j(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function D(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!B(e[n],t[n]))return!1;return!0}function B(e,t){return u(e)?W(e,t):u(t)?W(t,e):e===t}function W(e,t){return u(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function z(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let i,a,s=n.length-1;for(i=0;i<r.length;i++)if(a=r[i],"."!==a){if(".."!==a)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const U={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var K,V;(function(e){e["pop"]="pop",e["push"]="push"})(K||(K={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(V||(V={}));function H(e){if(!e)if(o){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),N(e)}const q=/^[^#]+#/;function G(e,t){return e.replace(q,"#")+t}function Y(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const $=()=>({left:window.scrollX,top:window.scrollY});function X(e){let t;if("el"in e){const n=e.el,r="string"===typeof n&&n.startsWith("#");0;const o="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Y(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function J(e,t){const n=history.state?history.state.position-t:-1;return n+e}const Q=new Map;function Z(e,t){Q.set(e,t)}function ee(e){const t=Q.get(e);return Q.delete(e),t}let te=()=>location.protocol+"//"+location.host;function ne(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),I(n,"")}const a=I(n,e);return a+r+o}function re(e,t,n,r){let o=[],i=[],s=null;const l=({state:i})=>{const a=ne(e,location),l=n.value,u=t.value;let c=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);c=u?i.position-u.position:0}else r(a);o.forEach((e=>{e(n.value,l,{delta:c,type:K.pop,direction:c?c>0?V.forward:V.back:V.unknown})}))};function u(){s=n.value}function c(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t}function f(){const{history:e}=window;e.state&&e.replaceState(a({},e.state,{scroll:$()}),"")}function d(){for(const e of i)e();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:u,listen:c,destroy:d}}function oe(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?$():null}}function ie(e){const{history:t,location:n}=window,r={value:ne(e,n)},o={value:t.state};function i(r,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:te()+e+r;try{t[a?"replaceState":"pushState"](i,"",l),o.value=i}catch(u){0,n[a?"replace":"assign"](l)}}function s(e,n){const s=a({},t.state,oe(o.value.back,e,o.value.forward,!0),n,{position:o.value.position});i(e,s,!0),r.value=e}function l(e,n){const s=a({},o.value,t.state,{forward:e,scroll:$()});i(s.current,s,!0);const l=a({},oe(r.value,e,null),{position:s.position+1},n);i(e,l,!1),r.value=e}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:l,replace:s}}function ae(e){e=H(e);const t=ie(e),n=re(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const o=a({location:"",base:e,go:r,createHref:G.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function se(e){return"string"===typeof e||e&&"object"===typeof e}function le(e){return"string"===typeof e||"symbol"===typeof e}const ue=Symbol("");var ce;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(ce||(ce={}));function fe(e,t){return a(new Error,{type:e,[ue]:!0},t)}function de(e,t){return e instanceof Error&&ue in e&&(null==t||!!(e.type&t))}const he="[^/]+?",pe={sensitive:!1,strict:!1,start:!0,end:!0},ve=/[.+*?^${}()[\]/\\]/g;function ge(e,t){const n=a({},pe,t),r=[];let o=n.start?"^":"";const i=[];for(const a of e){const e=a.length?[]:[90];n.strict&&!a.length&&(o+="/");for(let t=0;t<a.length;t++){const r=a[t];let s=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(ve,"\\$&"),s+=40;else if(1===r.type){const{value:e,repeatable:n,optional:l,regexp:u}=r;i.push({name:e,repeatable:n,optional:l});const c=u||he;if(c!==he){s+=10;try{new RegExp(`(${c})`)}catch(f){throw new Error(`Invalid custom RegExp for param "${e}" (${c}): `+f.message)}}let d=n?`((?:${c})(?:/(?:${c}))*)`:`(${c})`;t||(d=l&&a.length<2?`(?:/${d})`:"/"+d),l&&(d+="?"),o+=d,s+=20,l&&(s+=-8),n&&(s+=-20),".*"===c&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function l(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=i[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n}function c(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:i,repeatable:a,optional:s}=e,l=i in t?t[i]:"";if(u(l)&&!a)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const c=u(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${i}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n||"/"}return{re:s,score:r,keys:i,parse:l,stringify:c}}function me(e,t){let n=0;while(n<e.length&&n<t.length){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function ye(e,t){let n=0;const r=e.score,o=t.score;while(n<r.length&&n<o.length){const e=me(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(be(r))return 1;if(be(o))return-1}return o.length-r.length}function be(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const we={type:0,value:""},Ae=/[a-zA-Z0-9_]/;function xe(e){if(!e)return[[]];if("/"===e)return[[we]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s,l=0,u="",c="";function f(){u&&(0===n?i.push({type:0,value:u}):1===n||2===n||3===n?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function d(){u+=s}while(l<e.length)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(u&&f(),a()):":"===s?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:"("===s?n=2:Ae.test(s)?d():(f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state");break}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),o}function Ce(e,t,n){const r=ge(xe(e.path),n);const o=a(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf===!t.record.aliasOf&&t.children.push(o),o}function Se(e,t){const n=[],r=new Map;function o(e){return r.get(e)}function i(e,n,r){const o=!r,u=ke(e);u.aliasOf=r&&r.record;const f=Te(t,e),d=[u];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(a({},u,{components:r?r.record.components:u.components,path:e,aliasOf:r?r.record:u}))}let h,p;for(const t of d){const{path:a}=t;if(n&&"/"!==a[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(a&&r+a)}if(h=Ce(t,n,f),r?r.alias.push(h):(p=p||h,p!==h&&p.alias.push(h),o&&e.name&&!Oe(h)&&s(e.name)),Me(h)&&c(h),u.children){const e=u.children;for(let t=0;t<e.length;t++)i(e[t],h,r&&r.children[t])}r=r||h}return p?()=>{s(p)}:l}function s(e){if(le(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function u(){return n}function c(e){const t=Pe(e,n);n.splice(t,0,e),e.record.name&&!Oe(e)&&r.set(e.record.name,e)}function f(e,t){let o,i,s,l={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw fe(1,{location:e});0,s=o.record.name,l=a(_e(t.params,o.keys.filter((e=>!e.optional)).concat(o.parent?o.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&_e(e.params,o.keys.map((e=>e.name)))),i=o.stringify(l)}else if(null!=e.path)i=e.path,o=n.find((e=>e.re.test(i))),o&&(l=o.parse(i),s=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw fe(1,{location:e,currentLocation:t});s=o.record.name,l=a({},t.params,e.params),i=o.stringify(l)}const u=[];let c=o;while(c)u.unshift(c.record),c=c.parent;return{name:s,path:i,params:l,matched:u,meta:Fe(u)}}function d(){n.length=0,r.clear()}return t=Te({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:f,removeRoute:s,clearRoutes:d,getRoutes:u,getRecordMatcher:o}}function _e(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ke(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ee(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Ee(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"===typeof n?n[r]:n;return t}function Oe(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Fe(e){return e.reduce(((e,t)=>a(e,t.meta)),{})}function Te(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Pe(e,t){let n=0,r=t.length;while(n!==r){const o=n+r>>1,i=ye(e,t[o]);i<0?r=o:n=o+1}const o=Ne(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Ne(e){let t=e;while(t=t.parent)if(Me(t)&&0===ye(e,t))return t}function Me({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Le(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],r=(n?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const e=r[o].replace(v," "),n=e.indexOf("="),i=T(n<0?e:e.slice(0,n)),a=n<0?null:T(e.slice(n+1));if(i in t){let e=t[i];u(e)||(e=t[i]=[e]),e.push(a)}else t[i]=a}return t}function Ie(e){let t="";for(let n in e){const r=e[n];if(n=E(n),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}const o=u(r)?r.map((e=>e&&k(e))):[r&&k(r)];o.forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Re(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=u(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const je=Symbol(""),De=Symbol(""),Be=Symbol(""),We=Symbol(""),ze=Symbol("");function Ue(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ke(e,t,n,r,o,i=e=>e()){const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((s,l)=>{const u=e=>{!1===e?l(fe(4,{from:n,to:t})):e instanceof Error?l(e):se(e)?l(fe(2,{from:t,to:e})):(a&&r.enterCallbacks[o]===a&&"function"===typeof e&&a.push(e),s())},c=i((()=>e.call(r&&r.instances[o],t,n,u)));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch((e=>l(e)))}))}function Ve(e,t,n,r,o=e=>e()){const a=[];for(const s of e){0;for(const e in s.components){let l=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(He(l)){const i=l.__vccOpts||l,u=i[t];u&&a.push(Ke(u,n,r,s,e,o))}else{let u=l();0,a.push((()=>u.then((a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const l=i(a)?a.default:a;s.components[e]=l;const u=l.__vccOpts||l,c=u[t];return c&&Ke(c,n,r,s,e,o)()}))))}}}return a}function He(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function qe(e){const t=(0,r.WQ)(Be),n=(0,r.WQ)(We);const o=(0,r.EW)((()=>{const n=(0,r.R1)(e.to);return t.resolve(n)})),i=(0,r.EW)((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(j.bind(null,r));if(a>-1)return a;const s=Je(e[t-2]);return t>1&&Je(r)===s&&i[i.length-1].path!==s?i.findIndex(j.bind(null,e[t-2])):a})),a=(0,r.EW)((()=>i.value>-1&&Xe(n.params,o.value.params))),s=(0,r.EW)((()=>i.value>-1&&i.value===n.matched.length-1&&D(n.params,o.value.params)));function u(n={}){return $e(n)?t[(0,r.R1)(e.replace)?"replace":"push"]((0,r.R1)(e.to)).catch(l):Promise.resolve()}return{route:o,href:(0,r.EW)((()=>o.value.href)),isActive:a,isExactActive:s,navigate:u}}const Ge=(0,r.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:qe,setup(e,{slots:t}){const n=(0,r.Kh)(qe(e)),{options:o}=(0,r.WQ)(Be),i=(0,r.EW)((()=>({[Qe(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Qe(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:(0,r.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Ye=Ge;function $e(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xe(e,t){for(const n in t){const r=t[n],o=e[n];if("string"===typeof r){if(r!==o)return!1}else if(!u(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}function Je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Qe=(e,t,n)=>null!=e?e:null!=t?t:n,Ze=(0,r.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,r.WQ)(ze),i=(0,r.EW)((()=>e.route||o.value)),s=(0,r.WQ)(De,0),l=(0,r.EW)((()=>{let e=(0,r.R1)(s);const{matched:t}=i.value;let n;while((n=t[e])&&!n.components)e++;return e})),u=(0,r.EW)((()=>i.value.matched[l.value]));(0,r.Gt)(De,(0,r.EW)((()=>l.value+1))),(0,r.Gt)(je,u),(0,r.Gt)(ze,i);const c=(0,r.KR)();return(0,r.wB)((()=>[c.value,u.value,e.name]),(([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&j(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=i.value,s=e.name,l=u.value,f=l&&l.components[s];if(!f)return et(n.default,{Component:f,route:o});const d=l.props[s],h=d?!0===d?o.params:"function"===typeof d?d(o):d:null,p=e=>{e.component.isUnmounted&&(l.instances[s]=null)},v=(0,r.h)(f,a({},h,t,{onVnodeUnmounted:p,ref:c}));return et(n.default,{Component:v,route:o})||v}}});function et(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const tt=Ze;function nt(e){const t=Se(e.routes,e),n=e.parseQuery||Le,i=e.stringifyQuery||Ie,c=e.history;const f=Ue(),d=Ue(),h=Ue(),p=(0,r.IJ)(U);let v=U;o&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=s.bind(null,(e=>""+e)),m=s.bind(null,F),y=s.bind(null,T);function b(e,n){let r,o;return le(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)}function w(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function A(){return t.getRoutes().map((e=>e.record))}function x(e){return!!t.getRecordMatcher(e)}function C(e,r){if(r=a({},r||p.value),"string"===typeof e){const o=M(n,e,r.path),i=t.resolve({path:o.path},r),s=c.createHref(o.fullPath);return a(o,i,{params:y(i.params),hash:T(o.hash),redirectedFrom:void 0,href:s})}let o;if(null!=e.path)o=a({},e,{path:M(n,e.path,r.path).path});else{const t=a({},e.params);for(const e in t)null==t[e]&&delete t[e];o=a({},e,{params:m(t)}),r.params=m(r.params)}const s=t.resolve(o,r),l=e.hash||"";s.params=g(y(s.params));const u=L(i,a({},e,{hash:_(l),path:s.path})),f=c.createHref(u);return a({fullPath:u,hash:l,query:i===Ie?Re(e.query):e.query||{}},s,{redirectedFrom:void 0,href:f})}function S(e){return"string"===typeof e?M(n,e,p.value.path):a({},e)}function k(e,t){if(v!==e)return fe(8,{from:t,to:e})}function E(e){return N(e)}function O(e){return E(a(S(e),{replace:!0}))}function P(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"===typeof n?n(e):n;return"string"===typeof r&&(r=r.includes("?")||r.includes("#")?r=S(r):{path:r},r.params={}),a({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function N(e,t){const n=v=C(e),r=p.value,o=e.state,s=e.force,l=!0===e.replace,u=P(n);if(u)return N(a(S(u),{state:"object"===typeof u?a({},o,u.state):o,force:s,replace:l}),t||n);const c=n;let f;return c.redirectedFrom=t,!s&&R(i,r,n)&&(f=fe(16,{to:c,from:r}),ne(r,r,!0,!1)),(f?Promise.resolve(f):D(c,r)).catch((e=>de(e)?de(e,2)?e:te(e):Y(e,c,r))).then((e=>{if(e){if(de(e,2))return N(a({replace:l},S(e.to),{state:"object"===typeof e.to?a({},o,e.to.state):o,force:s}),t||c)}else e=W(c,r,!0,l,o);return B(c,r,e),e}))}function I(e,t){const n=k(e,t);return n?Promise.reject(n):Promise.resolve()}function j(e){const t=ie.values().next().value;return t&&"function"===typeof t.runWithContext?t.runWithContext(e):e()}function D(e,t){let n;const[r,o,i]=rt(e,t);n=Ve(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach((r=>{n.push(Ke(r,e,t))}));const a=I.bind(null,e,t);return n.push(a),se(n).then((()=>{n=[];for(const r of f.list())n.push(Ke(r,e,t));return n.push(a),se(n)})).then((()=>{n=Ve(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Ke(r,e,t))}));return n.push(a),se(n)})).then((()=>{n=[];for(const r of i)if(r.beforeEnter)if(u(r.beforeEnter))for(const o of r.beforeEnter)n.push(Ke(o,e,t));else n.push(Ke(r.beforeEnter,e,t));return n.push(a),se(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ve(i,"beforeRouteEnter",e,t,j),n.push(a),se(n)))).then((()=>{n=[];for(const r of d.list())n.push(Ke(r,e,t));return n.push(a),se(n)})).catch((e=>de(e,8)?e:Promise.reject(e)))}function B(e,t,n){h.list().forEach((r=>j((()=>r(e,t,n)))))}function W(e,t,n,r,i){const s=k(e,t);if(s)return s;const l=t===U,u=o?history.state:{};n&&(r||l?c.replace(e.fullPath,a({scroll:l&&u&&u.scroll},i)):c.push(e.fullPath,i)),p.value=e,ne(e,t,n,l),te()}let z;function V(){z||(z=c.listen(((e,t,n)=>{if(!ae.listening)return;const r=C(e),i=P(r);if(i)return void N(a(i,{replace:!0}),r).catch(l);v=r;const s=p.value;o&&Z(J(s.fullPath,n.delta),$()),D(r,s).catch((e=>de(e,12)?e:de(e,2)?(N(e.to,r).then((e=>{de(e,20)&&!n.delta&&n.type===K.pop&&c.go(-1,!1)})).catch(l),Promise.reject()):(n.delta&&c.go(-n.delta,!1),Y(e,r,s)))).then((e=>{e=e||W(r,s,!1),e&&(n.delta&&!de(e,8)?c.go(-n.delta,!1):n.type===K.pop&&de(e,20)&&c.go(-1,!1)),B(r,s,e)})).catch(l)})))}let H,q=Ue(),G=Ue();function Y(e,t,n){te(e);const r=G.list();return r.length&&r.forEach((r=>r(e,t,n))),Promise.reject(e)}function Q(){return H&&p.value!==U?Promise.resolve():new Promise(((e,t)=>{q.add([e,t])}))}function te(e){return H||(H=!e,V(),q.list().forEach((([t,n])=>e?n(e):t())),q.reset()),e}function ne(t,n,i,a){const{scrollBehavior:s}=e;if(!o||!s)return Promise.resolve();const l=!i&&ee(J(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return(0,r.dY)().then((()=>s(t,n,l))).then((e=>e&&X(e))).catch((e=>Y(e,t,n)))}const re=e=>c.go(e);let oe;const ie=new Set,ae={currentRoute:p,listening:!0,addRoute:b,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:x,getRoutes:A,resolve:C,options:e,push:E,replace:O,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:f.add,beforeResolve:d.add,afterEach:h.add,onError:G.add,isReady:Q,install(e){const t=this;e.component("RouterLink",Ye),e.component("RouterView",tt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,r.R1)(p)}),o&&!oe&&p.value===U&&(oe=!0,E(c.location).catch((e=>{0})));const n={};for(const r in U)Object.defineProperty(n,r,{get:()=>p.value[r],enumerable:!0});e.provide(Be,t),e.provide(We,(0,r.Gc)(n)),e.provide(ze,p);const i=e.unmount;ie.add(e),e.unmount=function(){ie.delete(e),ie.size<1&&(v=U,z&&z(),z=null,p.value=U,oe=!1,H=!1),i()}}};function se(e){return e.reduce(((e,t)=>e.then((()=>j(t)))),Promise.resolve())}return ae}function rt(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const i=t.matched[a];i&&(e.matched.find((e=>j(e,i)))?r.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>j(e,s)))||o.push(s))}return[n,r,o]}function ot(){return(0,r.WQ)(Be)}function it(e){return(0,r.WQ)(We)}}}]);
//# sourceMappingURL=chunk-vendors.4446d372.js.map