vendor: 4,100 bytes, line 1
1(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-components"]=e(require("vue")):t["vue-components"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(){var e={9662:function(t,e,i){"use strict";var n=i(614),r=i(6330),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a function")}},9670:function(t,e,i){"use strict";var n=i(111),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not an object")}},1318:function(t,e,i){"use strict";var n=i(5656),r=i(1400),o=i(6244),a=function(t){return function(e,i,a){var s,l=n(e),u=o(l),c=r(a,u);if(t&&i!==i){while(u>c)if(s=l[c++],s!==s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},3658:function(t,e,i){"use strict";var n=i(9781),r=i(3157),o=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4326:function(t,e,i){"use strict";var n=i(1702),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},648:function(t,e,i){"use strict";var n=i(1694),r=i(614),o=i(4326),a=i(5112),s=a("toStringTag"),l=Object,u="Arguments"===o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(i){}};t.exports=n?o:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=c(e=l(t),s))?i:u?o(e):"Object"===(n=o(e))&&r(e.callee)?"Arguments":n}},9920:function(t,e,i){"use strict";var n=i(2597),r=i(3887),o=i(1236),a=i(3070);t.exports=function(t,e,i){for(var s=r(e),l=a.f,u=o.f,c=0;c<s.length;c++){var h=s[c];n(t,h)||i&&n(i,h)||l(t,h,u(e,h))}}},8880:function(t,e,i){"use strict";var n=i(9781),r=i(3070),o=i(9114);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7045:function(t,e,i){"use strict";var n=i(6339),r=i(3070);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),r.f(t,e,i)}},8052:function(t,e,i){"use strict";var n=i(614),r=i(3070),o=i(6339),a=i(3072);t.exports=function(t,e,i,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:e;if(n(i)&&o(i,u,s),s.global)l?t[e]=i:a(e,i);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(c){}l?t[e]=i:r.f(t,e,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3072:function(t,e,i){"use strict";var n=i(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},9781:function(t,e,i){"use strict";var n=i(7293);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){"use strict";var e="object"==typeof document&&document.all,i="undefined"==typeof e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:i}},317:function(t,e,i){"use strict";var n=i(7854),r=i(111),o=n.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},7207:function(t){"use strict";var e=TypeError,i=9007199254740991;t.exports=function(t){if(t>i)throw e("Maximum allowed index exceeded");return t}},8113:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,i){"use strict";var n,r,o=i(7854),a=i(8113),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(n=c.split("."),r=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(r=+n[1]))),t.exports=r},748:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
1ing","toString","valueOf"]},2109:function(t,e,i){"use strict";var n=i(7854),r=i(1236).f,o=i(8880),a=i(8052),s=i(3072),l=i(9920),u=i(4705);t.exports=function(t,e){var i,c,h,d,f,p,g=t.target,m=t.global,v=t.stat;if(c=m?n:v?n[g]||s(g,{}):(n[g]||{}).prototype,c)for(h in e){if(f=e[h],t.dontCallGetSet?(p=r(c,h),d=p&&p.value):d=c[h],i=u(m?h:g+(v?".":"#")+h,t.forced),!i&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(t.sham||d&&d.sham)&&o(f,"sham",!0),a(c,h,f,t)}}},7293:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},4374:function(t,e,i){"use strict";var n=i(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,i){"use strict";var n=i(4374),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,i){"use strict";var n=i(9781),r=i(2597),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},1702:function(t,e,i){"use strict";var n=i(4374),r=Function.prototype,o=r.call,a=n&&r.bind.bind(o,o);t.exports=n?a:function(t){return function(){return o.apply(t,arguments)}}},5005:function(t,e,i){"use strict";var n=i(7854),r=i(614),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},8173:function(t,e,i){"use strict";var n=i(9662),r=i(8554);t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},7854:function(t,e,i){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,i){"use strict";var n=i(1702),r=i(7908),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},3501:function(t){"use strict";t.exports={}},4664:function(t,e,i){"use strict";var n=i(9781),r=i(7293),o=i(317);t.exports=!n&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){"use strict";var n=i(1702),r=i(7293),o=i(4326),a=Object,s=n("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},2788:function(t,e,i){"use strict";var n=i(1702),r=i(614),o=i(5465),a=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},9909:function(t,e,i){"use strict";var n,r,o,a=i(4811),s=i(7854),l=i(111),u=i(8880),c=i(2597),h=i(5465),d=i(6200),f=i(3501),p="Object already initialized",g=s.TypeError,m=s.WeakMap,v=function(t){return o(t)?r(t):n(t,{})},y=function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return i}};if(a||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw new g(p);return e.facade=t,b.set(t,e),e},r=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var _=d("state");f[_]=!0,n=function(t,e){if(c(t,_))throw new g(p);return e.facade=t,u(t,_,e),e},r=function(t){return c(t,_)?t[_]:{}},o=function(t){return c(t,_)}}t.exports={set:n,get:r,has:o,enforce:v,getterFor:y}},3157:function(t,e,i){"use strict";var n=i(4326);t.exports=Array.isArray||function(t){return"Array"===n(t)}},614:function(t,e,i){"use strict";var n=i(4154),r=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},4705:function(t,e,i){"use strict";var n=i(7293),r=i(614),o=/#|\.prototype\./,a=function(t,e){var i=l[s(t)];return i===c||i!==u&&(r(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},8554:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},111:function(t,e,i){"use strict";var n=i(614),r=i(4154),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===o}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){"use strict";
vendor: 4,195 bytes, line 1
1t.exports=!1},2190:function(t,e,i){"use strict";var n=i(5005),r=i(614),o=i(7976),a=i(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&o(e.prototype,s(t))}},6244:function(t,e,i){"use strict";var n=i(7466);t.exports=function(t){return n(t.length)}},6339:function(t,e,i){"use strict";var n=i(1702),r=i(7293),o=i(614),a=i(2597),s=i(9781),l=i(6530).CONFIGURABLE,u=i(2788),c=i(9909),h=c.enforce,d=c.get,f=String,p=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),y=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=t.exports=function(t,e,i){"Symbol("===g(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&i&&a(i,"arity")&&t.length!==i.arity&&p(t,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var n=h(t);return a(n,"source")||(n.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return o(this)&&d(this).source||u(this)}),"toString")},4758:function(t){"use strict";var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},3070:function(t,e,i){"use strict";var n=i(9781),r=i(4664),o=i(3353),a=i(9670),s=i(4948),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=n?o?function(t,e,i){if(a(t),e=s(e),a(i),"function"===typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=c(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:h in i?i[h]:n[h],writable:!1})}return u(t,e,i)}:u:function(t,e,i){if(a(t),e=s(e),a(i),r)try{return u(t,e,i)}catch(n){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){"use strict";var n=i(9781),r=i(6916),o=i(5296),a=i(9114),s=i(5656),l=i(4948),u=i(2597),c=i(4664),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=s(t),e=l(e),c)try{return h(t,e)}catch(i){}if(u(t,e))return a(!r(o.f,t,e),t[e])}},8006:function(t,e,i){"use strict";var n=i(6324),r=i(748),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},7976:function(t,e,i){"use strict";var n=i(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,i){"use strict";var n=i(1702),r=i(2597),o=i(5656),a=i(1318).indexOf,s=i(3501),l=n([].push);t.exports=function(t,e){var i,n=o(t),u=0,c=[];for(i in n)!r(s,i)&&r(n,i)&&l(c,i);while(e.length>u)r(n,i=e[u++])&&(~a(c,i)||l(c,i));return c}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},2140:function(t,e,i){"use strict";var n=i(6916),r=i(614),o=i(111),a=TypeError;t.exports=function(t,e){var i,s;if("string"===e&&r(i=t.toString)&&!o(s=n(i,t)))return s;if(r(i=t.valueOf)&&!o(s=n(i,t)))return s;if("string"!==e&&r(i=t.toString)&&!o(s=n(i,t)))return s;throw new a("Can't convert object to primitive value")}},3887:function(t,e,i){"use strict";var n=i(5005),r=i(1702),o=i(8006),a=i(5181),s=i(9670),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),i=a.f;return i?l(e,i(t)):e}},4488:function(t,e,i){"use strict";var n=i(8554),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}},6200:function(t,e,i){"use strict";var n=i(2309),r=i(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},5465:function(t,e,i){"use strict";var n=i(7854),r=i(3072),o="__core-js_shared__",a=n[o]||r(o,{});t.exports=a},2309:function(t,e,i){"use strict";var n=i(1913),r=i(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})}
1,6293:function(t,e,i){"use strict";var n=i(7392),r=i(7293),o=i(7854),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:function(t,e,i){"use strict";var n=i(9303),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},5656:function(t,e,i){"use strict";var n=i(8361),r=i(4488);t.exports=function(t){return n(r(t))}},9303:function(t,e,i){"use strict";var n=i(4758);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},7466:function(t,e,i){"use strict";var n=i(9303),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},7908:function(t,e,i){"use strict";var n=i(4488),r=Object;t.exports=function(t){return r(n(t))}},7593:function(t,e,i){"use strict";var n=i(6916),r=i(111),o=i(2190),a=i(8173),s=i(2140),l=i(5112),u=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var i,l=a(t,c);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!r(i)||o(i))return i;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:function(t,e,i){"use strict";var n=i(7593),r=i(2190);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},1694:function(t,e,i){"use strict";var n=i(5112),r=n("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},1340:function(t,e,i){"use strict";var n=i(648),r=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},6330:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(i){return"Object"}}},9711:function(t,e,i){"use strict";var n=i(1702),r=0,o=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},3307:function(t,e,i){"use strict";var n=i(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){"use strict";var n=i(9781),r=i(7293);t.exports=n&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t){"use strict";var e=TypeError;t.exports=function(t,i){if(t<i)throw new e("Not enough arguments");return t}},4811:function(t,e,i){"use strict";var n=i(7854),r=i(614),o=n.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},5112:function(t,e,i){"use strict";var n=i(7854),r=i(2309),o=i(2597),a=i(9711),s=i(6293),l=i(3307),u=n.Symbol,c=r("wks"),h=l?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(c[t]=s&&o(u,t)?u[t]:h("Symbol."+t)),c[t]}},7658:function(t,e,i){"use strict";var n=i(2109),r=i(7908),o=i(6244),a=i(3658),s=i(7207),l=i(7293),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=u||!c();n({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=r(this),i=o(e),n=arguments.length;s(i+n);for(var l=0;l<n;l++)e[i]=arguments[l],i++;return a(e,i),i}})},6229:function(t,e,i){"use strict";var n=i(8052),r=i(1702),o=i(1340),a=i(8053),s=URLSearchParams,l=s.prototype,u=r(l.append),c=r(l["delete"]),h=r(l.forEach),d=r([].push),f=new s("a=1&a=2&b=3");f["delete"]("a",1),f["delete"]("b",void 0),f+""!=="a=2"&&n(l,"delete",(function(t){var e=arguments.length,i=e<2?void 0:arguments[1];if(e&&void 0===i)return c(this,t);var n=[];h(this,(function(t,e){d(n,{key:e,value:t})})),a(e,1);var r,s=o(t),l=o(i),f=0,p=0,g=!1,m=n.length;while(f<m)r=n[f++],g||r.key===s?(g=!0,c(this,r.key)):p++;while(p<m)r=n[p++],r.key===s&&r.value===l||u(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},7330:function(t,e,i){"use strict";var n=i(8052),r=i(1702),o=i(1340),a=i(8053),s=URLSearchParams,l=s.prototype,u=r(l.getAll),c=r(l.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||n(l,"has",(function(t){var e=arguments.length,i=e<2?void 0:arguments[1];if(e&&void 0===i)return c(this,t);var n=u(this,t);a(e,1);var r=o(i),s=0;while(s<n.length)if(n[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})}
1,2062:function(t,e,i){"use strict";var n=i(9781),r=i(1702),o=i(7045),a=URLSearchParams.prototype,s=r(a.forEach);n&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},1474:function(t,e,i){"use strict"; 2/**! 3 * Sortable 1.10.2 4 * @author RubaXa <[email protected]> 5 * @author owenm <[email protected]> 6 * @license MIT 7 */ 8function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},n=Object.keys(i);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})))),n.forEach((function(e){r(t,e,i[e])}))}return t}function s(t,e){if(null==t)return{};var i,n,r={},o=Object.keys(t);for(n=0;n<o.length;n++)i=o[n],e.indexOf(i)>=0||(r[i]=t[i]);return r}function l(t,e){if(null==t)return{};var i,n,r=s(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)i=o[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function u(t){return c(t)||h(t)||d()}function c(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}function h(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}i.r(e),i.d(e,{MultiDrag:function(){return Fe},Sortable:function(){return Jt},Swap:function(){return Me}});var f="1.10.2";function p(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var g=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=p(/Edge/i),v=p(/firefox/i),y=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),_=p(/chrome/i)&&p(/android/i),w={capture:!1,passive:!1};function x(t,e,i){t.addEventListener(e,i,!g&&w)}function S(t,e,i){t.removeEventListener(e,i,!g&&w)}function C(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(i){return!1}return!1}}function k(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function M(t,e,i,n){if(t){i=i||document;do{if(null!=e&&(">"===e[0]?t.parentNode===i&&C(t,e):C(t,e))||n&&t===i)return t;if(t===i)break}while(t=k(t))}return null}var T,D=/\s+/g;function I(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(D," ").replace(" "+e+" "," ");t.className=(n+(i?" "+e:"")).replace(D," ")}}function A(t,e,i){var n=t&&t.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=i+("string"===typeof i?"":"px")}}function O(t,e){var i="";if("string"===typeof t)i=t;else do{var n=A(t,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(i)}function E(t,e,i){if(t){var n=t.getElementsByTagName(e),r=0,o=n.length;if(i)for(;r<o;r++)i(n[r],r);return n}return[]}function P(){var t=document.scrollingElement;return t||document.documentElement}function L(t,e,i,n,r){if(t.getBoundingClientRect||t===window){var o,a,s,l,u,c,h;if(t!==window&&t!==P()?(o=t.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(e||i)&&t!==window&&(r=r||t.parentNode,!g))do{if(r&&r.getBoundingClientRect&&("none"!==A(r,"transform")||i&&"static"!==A(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(A(r,"border-top-width")),s-=d.left+parseInt(A(r,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(r=r.parentNode);
8if(n&&t!==window){var f=O(r||t),p=f&&f.a,m=f&&f.d;f&&(a/=m,s/=p,h/=p,c/=m,l=a+c,u=s+h)}return{top:a,left:s,bottom:l,right:u,width:h,height:c}}}function R(t,e,i){var n=$(t,!0),r=L(t)[e];while(n){var o=L(n)[i],a=void 0;if(a="top"===i||"left"===i?r>=o:r<=o,!a)return n;if(n===P())break;n=$(n,!1)}return!1}function z(t,e,i){var n=0,r=0,o=t.children;while(r<o.length){if("none"!==o[r].style.display&&o[r]!==Jt.ghost&&o[r]!==Jt.dragged&&M(o[r],i.draggable,t,!1)){if(n===e)return o[r];n++}r++}return null}function N(t,e){var i=t.lastElementChild;while(i&&(i===Jt.ghost||"none"===A(i,"display")||e&&!C(i,e)))i=i.previousElementSibling;return i||null}function F(t,e){var i=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Jt.clone||e&&!C(t,e)||i++;return i}function B(t){var e=0,i=0,n=P();if(t)do{var r=O(t),o=r.a,a=r.d;e+=t.scrollLeft*o,i+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,i]}function V(t,e){for(var i in t)if(t.hasOwnProperty(i))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[i][n])return Number(i);return-1}function $(t,e){if(!t||!t.getBoundingClientRect)return P();var i=t,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var r=A(i);if(i.clientWidth<i.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!i.getBoundingClientRect||i===document.body)return P();if(n||e)return i;n=!0}}}while(i=i.parentNode);return P()}function j(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function W(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function H(t,e){return function(){if(!T){var i=arguments,n=this;1===i.length?t.call(n,i[0]):t.apply(n,i),T=setTimeout((function(){T=void 0}),e)}}}function U(){clearTimeout(T),T=void 0}function q(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function G(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}function Y(t,e){A(t,"position","absolute"),A(t,"top",e.top),A(t,"left",e.left),A(t,"width",e.width),A(t,"height",e.height)}function X(t){A(t,"position",""),A(t,"top",""),A(t,"left",""),A(t,"width",""),A(t,"height","")}var Z="Sortable"+(new Date).getTime();function K(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==A(t,"display")&&t!==Jt.ghost){e.push({target:t,rect:L(t)});var i=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var n=O(t,!0);n&&(i.top-=n.f,i.left-=n.e)}t.fromRect=i}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(V(e,{target:t}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof i&&i());var r=!1,o=0;e.forEach((function(t){var e=0,i=t.target,a=i.fromRect,s=L(i),l=i.prevFromRect,u=i.prevToRect,c=t.rect,h=O(i,!0);h&&(s.top-=h.f,s.left-=h.e),i.toRect=s,i.thisAnimationDuration&&W(l,s)&&!W(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(e=Q(c,l,u,n.options)),W(s,a)||(i.prevFromRect=a,i.prevToRect=s,e||(e=n.options.animation),n.animate(i,c,s,e)),e&&(r=!0,o=Math.max(o,e),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),e),i.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"===typeof i&&i()}),o):"function"===typeof i&&i(),e=[]},animate:function(t,e,i,n){if(n){A(t,"transition",""),A(t,"transform","");var r=O(this.el),o=r&&r.a,a=r&&r.d,s=(e.left-i.left)/(o||1),l=(e.top-i.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,A(t,"transform","translate3d("+s+"px,"+l+"px,0)"),J(t),A(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),A(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){A(t,"transition",""),A(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}}function J(t){return t.offsetWidth}function Q(t,e,i,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*n.animation}var tt=[],et={initializeByDefault:!0},it={mount:function(t){for(var e in et)et.hasOwnProperty(e)&&!(e in t)&&(t[e]=et[e]);tt.push(t)}
8,pluginEvent:function(t,e,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var r=t+"Global";tt.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][r]&&e[n.pluginName][r](a({sortable:e},i)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](a({sortable:e},i)))}))},initializePlugins:function(t,e,i,n){for(var r in tt.forEach((function(n){var r=n.pluginName;if(t.options[r]||n.initializeByDefault){var a=new n(t,e,t.options);a.sortable=t,a.options=t.options,t[r]=a,o(i,a.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);"undefined"!==typeof a&&(t.options[r]=a)}},getEventProperties:function(t,e){var i={};return tt.forEach((function(n){"function"===typeof n.eventProperties&&o(i,n.eventProperties.call(e[n.pluginName],t))})),i},modifyOption:function(t,e,i){var n;return tt.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[e]&&(n=r.optionListeners[e].call(t[r.pluginName],i))})),n}};function nt(t){var e=t.sortable,i=t.rootEl,n=t.name,r=t.targetEl,o=t.cloneEl,s=t.toEl,l=t.fromEl,u=t.oldIndex,c=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,f=t.originalEvent,p=t.putSortable,v=t.extraEventProperties;if(e=e||i&&i[Z],e){var y,b=e.options,_="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||g||m?(y=document.createEvent("Event"),y.initEvent(n,!0,!0)):y=new CustomEvent(n,{bubbles:!0,cancelable:!0}),y.to=s||i,y.from=l||i,y.item=r||i,y.clone=o,y.oldIndex=u,y.newIndex=c,y.oldDraggableIndex=h,y.newDraggableIndex=d,y.originalEvent=f,y.pullMode=p?p.lastPutMode:void 0;var w=a({},v,it.getEventProperties(n,e));for(var x in w)y[x]=w[x];i&&i.dispatchEvent(y),b[_]&&b[_].call(e,y)}}var rt=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,r=l(i,["evt"]);it.pluginEvent.bind(Jt)(t,e,a({dragEl:at,parentEl:st,ghostEl:lt,rootEl:ut,nextEl:ct,lastDownEl:ht,cloneEl:dt,cloneHidden:ft,dragStarted:Mt,putSortable:bt,activeSortable:Jt.active,originalEvent:n,oldIndex:pt,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt,hideGhostForTarget:Yt,unhideGhostForTarget:Xt,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(t){ot({sortable:e,name:t,originalEvent:n})}},r))};function ot(t){nt(a({putSortable:bt,cloneEl:dt,targetEl:at,rootEl:ut,oldIndex:pt,oldDraggableIndex:mt,newIndex:gt,newDraggableIndex:vt},t))}var at,st,lt,ut,ct,ht,dt,ft,pt,gt,mt,vt,yt,bt,_t,wt,xt,St,Ct,kt,Mt,Tt,Dt,It,At,Ot=!1,Et=!1,Pt=[],Lt=!1,Rt=!1,zt=[],Nt=!1,Ft=[],Bt="undefined"!==typeof document,Vt=b,$t=m||g?"cssFloat":"float",jt=Bt&&!_&&!b&&"draggable"in document.createElement("div"),Wt=function(){if(Bt){if(g)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}
8(),Ht=function(t,e){var i=A(t),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),r=z(t,0,e),o=z(t,1,e),a=r&&A(r),s=o&&A(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+L(r).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+L(o).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a["float"]&&"none"!==a["float"]){var c="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=n&&"none"===i[$t]||o&&"none"===i[$t]&&l+u>n)?"vertical":"horizontal"},Ut=function(t,e,i){var n=i?t.left:t.top,r=i?t.right:t.bottom,o=i?t.width:t.height,a=i?e.left:e.top,s=i?e.right:e.bottom,l=i?e.width:e.height;return n===a||r===s||n+o/2===a+l/2},qt=function(t,e){var i;return Pt.some((function(n){if(!N(n)){var r=L(n),o=n[Z].options.emptyInsertThreshold,a=t>=r.left-o&&t<=r.right+o,s=e>=r.top-o&&e<=r.bottom+o;return o&&a&&s?i=n:void 0}})),i},Gt=function(t){function e(t,i){return function(n,r,o,a){var s=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(null==t&&(i||s))return!0;if(null==t||!1===t)return!1;if(i&&"clone"===t)return t;if("function"===typeof t)return e(t(n,r,o,a),i)(n,r,o,a);var l=(i?n:r).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var i={},r=t.group;r&&"object"==n(r)||(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},Yt=function(){!Wt&<&&A(lt,"display","none")},Xt=function(){!Wt&<&&A(lt,"display","")};Bt&&document.addEventListener("click",(function(t){if(Et)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Et=!1,!1}),!0);var Zt=function(t){if(at){t=t.touches?t.touches[0]:t;var e=qt(t.clientX,t.clientY);if(e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[Z]._onDragOver(i)}}},Kt=function(t){at&&at.parentNode[Z]._isOutsideThisEl(t.target)};function Jt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[Z]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ht(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Jt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var n in it.initializePlugins(this,t,i),i)!(n in e)&&(e[n]=i[n]);for(var r in Gt(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&jt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?x(t,"pointerdown",this._onTapStart):(x(t,"mousedown",this._onTapStart),x(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(t,"dragover",this),x(t,"dragenter",this)),Pt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,K())}function Qt(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function te(t,e,i,n,r,o,a,s){var l,u,c=t[Z],h=c.options.onMove;return!window.CustomEvent||g||m?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=i,l.draggedRect=n,l.related=r||e,l.relatedRect=o||L(e),l.willInsertAfter=s,l.originalEvent=a,t.dis
8patchEvent(l),h&&(u=h.call(c,l,a)),u}function ee(t){t.draggable=!1}function ie(){Nt=!1}function ne(t,e,i){var n=L(N(i.el,i.options.draggable)),r=10;return e?t.clientX>n.right+r||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+r}function re(t,e,i,n,r,o,a,s){var l=n?t.clientY:t.clientX,u=n?i.height:i.width,c=n?i.top:i.left,h=n?i.bottom:i.right,d=!1;if(!a)if(s&&It<u*r){if(!Lt&&(1===Dt?l>c+u*o/2:l<h-u*o/2)&&(Lt=!0),Lt)d=!0;else if(1===Dt?l<c+It:l>h-It)return-Dt}else if(l>c+u*(1-r)/2&&l<h-u*(1-r)/2)return oe(e);return d=d||a,d&&(l<c+u*o/2||l>h-u*o/2)?l>c+u/2?1:-1:0}function oe(t){return F(at)<F(t)?1:-1}function ae(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,n=0;while(i--)n+=e.charCodeAt(i);return n.toString(36)}function se(t){Ft.length=0;var e=t.getElementsByTagName("input"),i=e.length;while(i--){var n=e[i];n.checked&&Ft.push(n)}}function le(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}Jt.prototype={constructor:Jt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Tt=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,at):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,n=this.options,r=n.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=n.filter;if(se(i),!at&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||n.disabled)&&!l.isContentEditable&&(s=M(s,n.draggable,i,!1),(!s||!s.animated)&&ht!==s)){if(pt=F(s),mt=F(s,n.draggable),"function"===typeof u){if(u.call(this,t,s,this))return ot({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),rt("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(u&&(u=u.split(",").some((function(n){if(n=M(l,n.trim(),i,!1),n)return ot({sortable:e,rootEl:n,name:"filter",targetEl:s,fromEl:i,toEl:i}),rt("filter",e,{evt:t}),!0})),u))return void(r&&t.cancelable&&t.preventDefault());n.handle&&!M(l,n.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,i){var n,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(i&&!at&&i.parentNode===o){var l=L(i);if(ut=o,at=i,st=at.parentNode,ct=at.nextSibling,ht=i,yt=a.group,Jt.dragged=at,_t={target:at,clientX:(e||t).clientX,clientY:(e||t).clientY},Ct=_t.clientX-l.left,kt=_t.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,at.style["will-change"]="all",n=function(){rt("delayEnded",r,{evt:t}),Jt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!v&&r.nativeDraggable&&(at.draggable=!0),r._triggerDragStart(t,e),ot({sortable:r,name:"choose",originalEvent:t}),I(at,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){E(at,t.trim(),ee)})),x(s,"dragover",Zt),x(s,"mousemove",Zt),x(s,"touchmove",Zt),x(s,"mouseup",r._onDrop),x(s,"touchend",r._onDrop),x(s,"touchcancel",r._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,at.draggable=!0),rt("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||g))n();else{if(Jt.eventCanceled)return void this._onDrop();x(s,"mouseup",r._disableDelayedDrag),x(s,"touchend",r._disableDelayedDrag),x(s,"touchcancel",r._disableDelayedDrag),x(s,"mousemove",r._delayedDragTouchMoveHandler),x(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&x(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){at&&ee(at),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?x(document,"pointermove",this._onTouchMove):x(document,e?"touchmove":"mousemove",this._onTouchMove):(x(at,"dragend",this),x(ut,"dragstart",this._onDragStart));try{document.selection?le((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(t,e){if(Ot=!1,ut&&at){rt("dragStarted",this,{evt:e}),this.nativeDraggable&&x(document,"dragover",Kt);var i=this.options;!t&&I(at,i.dragClass,!1),I(at,i.ghostClass,!0),Jt.active=this,t&&this._appendGhost(),ot({sortable:this,name:"start",originalEvent:e})}
vendor: 12,253 bytes, line 8
8else this._nulling()},_emulateDragOver:function(){if(wt){this._lastX=wt.clientX,this._lastY=wt.clientY,Yt();var t=document.elementFromPoint(wt.clientX,wt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(wt.clientX,wt.clientY),t===e)break;e=t}if(at.parentNode[Z]._isOutsideThisEl(t),e)do{if(e[Z]){var i=void 0;if(i=e[Z]._onDragOver({clientX:wt.clientX,clientY:wt.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Xt()}},_onTouchMove:function(t){if(_t){var e=this.options,i=e.fallbackTolerance,n=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=lt&&O(lt,!0),a=lt&&o&&o.a,s=lt&&o&&o.d,l=Vt&&At&&B(At),u=(r.clientX-_t.clientX+n.x)/(a||1)+(l?l[0]-zt[0]:0)/(a||1),c=(r.clientY-_t.clientY+n.y)/(s||1)+(l?l[1]-zt[1]:0)/(s||1);if(!Jt.active&&!Ot){if(i&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(lt){o?(o.e+=u-(xt||0),o.f+=c-(St||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");A(lt,"webkitTransform",h),A(lt,"mozTransform",h),A(lt,"msTransform",h),A(lt,"transform",h),xt=u,St=c,wt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!lt){var t=this.options.fallbackOnBody?document.body:ut,e=L(at,!0,Vt,!0,t),i=this.options;if(Vt){At=t;while("static"===A(At,"position")&&"none"===A(At,"transform")&&At!==document)At=At.parentNode;At!==document.body&&At!==document.documentElement?(At===document&&(At=P()),e.top+=At.scrollTop,e.left+=At.scrollLeft):At=P(),zt=B(At)}lt=at.cloneNode(!0),I(lt,i.ghostClass,!1),I(lt,i.fallbackClass,!0),I(lt,i.dragClass,!0),A(lt,"transition",""),A(lt,"transform",""),A(lt,"box-sizing","border-box"),A(lt,"margin",0),A(lt,"top",e.top),A(lt,"left",e.left),A(lt,"width",e.width),A(lt,"height",e.height),A(lt,"opacity","0.8"),A(lt,"position",Vt?"absolute":"fixed"),A(lt,"zIndex","100000"),A(lt,"pointerEvents","none"),Jt.ghost=lt,t.appendChild(lt),A(lt,"transform-origin",Ct/parseInt(lt.style.width)*100+"% "+kt/parseInt(lt.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,n=t.dataTransfer,r=i.options;rt("dragStart",this,{evt:t}),Jt.eventCanceled?this._onDrop():(rt("setupClone",this),Jt.eventCanceled||(dt=G(at),dt.draggable=!1,dt.style["will-change"]="",this._hideClone(),I(dt,this.options.chosenClass,!1),Jt.clone=dt),i.cloneId=le((function(){rt("clone",i),Jt.eventCanceled||(i.options.removeCloneOnHide||ut.insertBefore(dt,at),i._hideClone(),ot({sortable:i,name:"clone"}))})),!e&&I(at,r.dragClass,!0),e?(Et=!0,i._loopId=setInterval(i._emulateDragOver,50)):(S(document,"mouseup",i._onDrop),S(document,"touchend",i._onDrop),S(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",r.setData&&r.setData.call(i,n,at)),x(document,"drop",i),A(at,"transform","translateZ(0)")),Ot=!0,i._dragStartId=le(i._dragStarted.bind(i,e,t)),x(document,"selectstart",i),Mt=!0,y&&A(document.body,"user-select","none"))},_onDragOver:function(t){var e,i,n,r,o=this.el,s=t.target,l=this.options,u=l.group,c=Jt.active,h=yt===u,d=l.sort,f=bt||c,p=this,g=!1;if(!Nt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=M(s,l.draggable,o,!0),E("dragOver"),Jt.eventCanceled)return g;if(at.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return z(!1);if(Et=!1,c&&!l.disabled&&(h?d||(n=!ut.contains(at)):bt===this||(this.lastPutMode=yt.checkPull(this,c,at,t))&&u.checkPut(this,c,at,t))){if(r="vertical"===this._getDirection(t,s),e=L(at),E("dragOverValid"),Jt.eventCanceled)return g;if(n)return st=ut,P(),this._hideClone(),E("revert"),Jt.eventCanceled||(ct?ut.insertBefore(at,ct):ut.appendChild(at)),z(!0);var m=N(o,l.draggable);if(!m||ne(t,r,this)&&!m.animated){if(m===at)return z(!1);if(m&&o===t.target&&(s=m),s&&(i=L(s)),!1!==te(ut,o,at,e,s,i,t,!!s))return P(),o.appendChild(at),st=o,B(),z(!0)}else if(s.parentNode===o){i=L(s);var v,y,b=0,_=at.parentNode!==o,w=!Ut(at.animated&&at.toRect||e,s.animated&&s.toRect||i,r),x=r?"top":"left",S=R(s,"top","top")||R(at,"top","top"),C=S?S.scrollTop:void 0;if(Tt!==s&&(v=i[x],Lt=!1,Rt=!w&&l.invertSwap||_),b=re(t,s,i,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Rt,Tt===s),0!==b){var k=F(at);do{k-=b,y=st.children[k]}while(y&&("none"===A(y,"display")||y===lt))}if(0===b||y===s)return z(!1);Tt=s,Dt=b;var T=s.nextElementSibling,D=!1;D=1===b;var O=te(ut,o,at,e,s,i,t,D);if(!1!==O)return 1!==O&&-1!==O||(D=1===O),Nt=!0,setTimeout(ie,30),P(),D&&!T?o.appendChild(at):s.parentNode.insertBefore(at,D?T:s),S&&q(S,0,C-S.scrollTop),st=at.parentNode,void 0===v||Rt||(It=Math.abs(v-L(s)[x])),B(),z(!0)}if(o.contains(at))return z(!1)}return!1}function E(l,u){rt(l,p,a({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:n,dragRect:e,targetRect:i,canSort:d,fromSortable:f,target:s,completed:z,onMove:function(i,n){return te(ut,o,at,e,i,L(i),t,n)},changed:B},u))}function P(){E("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function z(e){return E("dragOverCompleted",{insertion:e}),e&&(h?c._hideClone():c._showClone(p),p!==f&&(I(at,bt?bt.options.ghostClass:c.options.ghostClass,!1),I(at,l.ghostClass,!0)),bt!==p&&p!==Jt.active?bt=p:p===Jt.active&&bt&&(bt=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){E("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===at&&!at.animated||s===o&&!s.animated)&&(Tt=null),l.dragoverBubble||t.rootEl||s===document||(at.parentNode[Z]._isOutsideThisEl(t.target),!e&&Zt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function B(){gt=F(at),vt=F(at,l.draggable),ot({sortable:p,name:"change",toEl:o,newIndex:gt,newDraggableIndex:vt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Zt),S(document,"mousemove",Zt),S(document,"touchmove",Zt)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;gt=F(at),vt=F(at,i.draggable),rt("drop",this,{evt:t}),st=at&&at.parentNode,gt=F(at),vt=F(at,i.draggable),Jt.eventCanceled||(Ot=!1,Rt=!1,Lt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&A(document.body,"user-select",""),A(at,"transform",""),t&&(Mt&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),lt&<.parentNode&<.parentNode.removeChild(lt),(ut===st||bt&&"clone"!==bt.lastPutMode)&&dt&&dt.parentNode&&dt.parentNode.removeChild(dt),at&&(this.nativeDraggable&&S(at,"dragend",this),ee(at),at.style["will-change"]="",Mt&&!Ot&&I(at,bt?bt.options.ghostClass:this.options.ghostClass,!1),I(at,this.options.chosenClass,!1),ot({sortable:this,name:"unchoose",toEl:st,newIndex:null,newDraggableIndex:null,originalEvent:t}),ut!==st?(gt>=0&&(ot({rootEl:st,name:"add",toEl:st,fromEl:ut,originalEvent:t}),ot({sortable:this,name:"remove",toEl:st,originalEvent:t}),ot({rootEl:st,name:"sort",toEl:st,fromEl:ut,originalEvent:t}),ot({sortable:this,name:"sort",toEl:st,originalEvent:t})),bt&&bt.save()):gt!==pt&>>=0&&(ot({sortable:this,name:"update",toEl:st,originalEvent:t}),ot({sortable:this,name:"sort",toEl:st,originalEvent:t})),Jt.active&&(null!=gt&&-1!==gt||(gt=pt,vt=mt),ot({sortable:this,name:"end",toEl:st,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){rt("nulling",this),ut=at=st=lt=ct=dt=ht=ft=_t=wt=Mt=gt=vt=pt=mt=Tt=Dt=bt=yt=Jt.dragged=Jt.ghost=Jt.clone=Jt.active=null,Ft.forEach((function(t){t.checked=!0})),Ft.length=xt=St=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":at&&(this._onDragOver(t),Qt(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],i=this.el.children,n=0,r=i.length,o=this.options;n<r;n++)t=i[n],M(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||ae(t));return e},sort:function(t){var e={},i=this.el;this.toArray().forEach((function(t,n){var r=i.children[n];M(r,this.options.draggable,i,!1)&&(e[t]=r)}),this),t.forEach((function(t){e[t]&&(i.removeChild(e[t]),i.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return M(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];var n=it.modifyOption(this,t,e);i[t]="undefined"!==typeof n?n:e,"group"===t&&Gt(i)},destroy:function(){rt("destroy",this);var t=this.el;t[Z]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Pt.splice(Pt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ft){if(rt("hideClone",this),Jt.eventCanceled)return;A(dt,"display","none"),this.options.removeCloneOnHide&&dt.parentNode&&dt.parentNode.removeChild(dt),ft=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ft){if(rt("showClone",this),Jt.eventCanceled)return;ut.contains(at)&&!this.options.group.revertClone?ut.insertBefore(dt,at):ct?ut.insertBefore(dt,ct):ut.appendChild(dt),this.options.group.revertClone&&this.animate(at,dt),A(dt,"display",""),ft=!1}}else this._hideClone()}},Bt&&x(document,"touchmove",(function(t){(Jt.active||Ot)&&t.cancelable&&t.preventDefault()})),Jt.utils={on:x,off:S,css:A,find:E,is:function(t,e){return!!M(t,e,t,!1)},extend:j,throttle:H,closest:M,toggleClass:I,clone:G,index:F,nextTick:le,cancelNextTick:ue,detectDirection:Ht,getChild:z},Jt.get=function(t){return t[Z]},Jt.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Jt.utils=a({},Jt.utils,t.utils)),it.mount(t)}))},Jt.create=function(t,e){return new Jt(t,e)},Jt.version=f;var ce,he,de,fe,pe,ge,me=[],ve=!1;function ye(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):this.options.supportPointer?x(document,"pointermove",this._handleFallbackAutoScroll):e.touches?x(document,"touchmove",this._handleFallbackAutoScroll):x(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),_e(),be(),U()},nulling:function(){pe=he=ce=ve=ge=de=fe=null,me.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var i=this,n=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(n,r);if(pe=t,e||m||g||y){xe(t,this.options,o,e);var a=$(o,!0);!ve||ge&&n===de&&r===fe||(ge&&_e(),ge=setInterval((function(){var o=$(document.elementFromPoint(n,r),!0);o!==a&&(a=o,be()),xe(t,i.options,o,e)}),10),de=n,fe=r)}else{if(!this.options.bubbleScroll||$(o,!0)===P())return void be();xe(t,this.options,$(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}function be(){me.forEach((function(t){clearInterval(t.pid)})),me=[]}function _e(){clearInterval(ge)}
8var we,xe=H((function(t,e,i,n){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,u=P(),c=!1;he!==i&&(he=i,be(),ce=e.scroll,r=e.scrollFn,!0===ce&&(ce=$(i,!0)));var h=0,d=ce;do{var f=d,p=L(f),g=p.top,m=p.bottom,v=p.left,y=p.right,b=p.width,_=p.height,w=void 0,x=void 0,S=f.scrollWidth,C=f.scrollHeight,k=A(f),M=f.scrollLeft,T=f.scrollTop;f===u?(w=b<S&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),x=_<C&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(w=b<S&&("auto"===k.overflowX||"scroll"===k.overflowX),x=_<C&&("auto"===k.overflowY||"scroll"===k.overflowY));var D=w&&(Math.abs(y-o)<=s&&M+b<S)-(Math.abs(v-o)<=s&&!!M),I=x&&(Math.abs(m-a)<=s&&T+_<C)-(Math.abs(g-a)<=s&&!!T);if(!me[h])for(var O=0;O<=h;O++)me[O]||(me[O]={});me[h].vx==D&&me[h].vy==I&&me[h].el===f||(me[h].el=f,me[h].vx=D,me[h].vy=I,clearInterval(me[h].pid),0==D&&0==I||(c=!0,me[h].pid=setInterval(function(){n&&0===this.layer&&Jt.active._onTouchMove(pe);var e=me[this.layer].vy?me[this.layer].vy*l:0,i=me[this.layer].vx?me[this.layer].vx*l:0;"function"===typeof r&&"continue"!==r.call(Jt.dragged.parentNode[Z],i,e,t,pe,me[this.layer].el)||q(me[this.layer].el,i,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&d!==u&&(d=$(d,!1)));ve=c}}),30),Se=function(t){var e=t.originalEvent,i=t.putSortable,n=t.dragEl,r=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=i||r;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function Ce(){}function ke(){}function Me(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;we=e},dragOverValid:function(t){var e=t.completed,i=t.target,n=t.onMove,r=t.activeSortable,o=t.changed,a=t.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(i&&i!==s){var u=we;!1!==n(i)?(I(i,l.swapClass,!0),we=i):we=null,u&&u!==we&&I(u,l.swapClass,!1)}o(),e(!0),a()}},drop:function(t){var e=t.activeSortable,i=t.putSortable,n=t.dragEl,r=i||this.sortable,o=this.options;we&&I(we,o.swapClass,!1),we&&(o.swap||i&&i.options.swap)&&n!==we&&(r.captureAnimationState(),r!==e&&e.captureAnimationState(),Te(n,we),r.animateAll(),r!==e&&e.animateAll())},nulling:function(){we=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:we}}})}function Te(t,e){var i,n,r=t.parentNode,o=e.parentNode;r&&o&&!r.isEqualNode(e)&&!o.isEqualNode(t)&&(i=F(t),n=F(e),r.isEqualNode(o)&&i<n&&n++,r.insertBefore(e,r.children[i]),o.insertBefore(t,o.children[n]))}Ce.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=z(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:Se},o(Ce,{pluginName:"revertOnSpill"}),ke.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,n=i||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:Se},o(ke,{pluginName:"removeOnSpill"});var De,Ie,Ae,Oe,Ee,Pe=[],Le=[],Re=!1,ze=!1,Ne=!1;function Fe(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?x(document,"pointerup",this._deselectMultiDrag):(x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag)),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,i){var n="";Pe.length&&Ie===t?Pe.forEach((function(t,e){n+=(e?", ":"")+t.textContent})):n=i.textContent,e.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Ae=e},delayEnded:function(){this.isMultiDrag=~Pe.indexOf(Ae)},setupClone:function(t){var e=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var n=0;n<Pe.length;n++)Le.push(G(Pe[n])),Le[n].sortableIndex=Pe[n].sortableIndex,Le[n].draggable=!1,Le[n].style["will-change"]="",I(Le[n],this.options.selectedClass,!1),Pe[n]===Ae&&I(Le[n],this.options.chosenClass,!1);e._hideClone(),i()}},clone:function(t){var e=t.sortable,i=t.rootEl,n=t.dispatchSortableEvent,r=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Pe.length&&Ie===e&&(Ve(!0,i),n("clone"),r()))},showClone:function(t){var e=t.cloneNowShown,i=t.rootEl,n=t.cancel;this.isMultiDrag&&(Ve(!1,i),Le.forEach((function(t){A(t,"display","")})),e(),Ee=!1,n())},hideClone:function(t){var e=this,i=(t.sortable,t.cloneNowHidden),n=t.cancel;this.isMultiDrag&&(Le.forEach((function(t){A(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),i(),Ee=!0,n())},dragStartGlobal:function(t){t.sortable;
8!this.isMultiDrag&&Ie&&Ie.multiDrag._deselectMultiDrag(),Pe.forEach((function(t){t.sortableIndex=F(t)})),Pe=Pe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Ne=!0},dragStarted:function(t){var e=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Pe.forEach((function(t){t!==Ae&&A(t,"position","absolute")}));var n=L(Ae,!1,!0,!0);Pe.forEach((function(t){t!==Ae&&Y(t,n)})),ze=!0,Re=!0}i.animateAll((function(){ze=!1,Re=!1,e.options.animation&&Pe.forEach((function(t){X(t)})),e.options.sort&&$e()}))}},dragOver:function(t){var e=t.target,i=t.completed,n=t.cancel;ze&&~Pe.indexOf(e)&&(i(!1),n())},revert:function(t){var e=t.fromSortable,i=t.rootEl,n=t.sortable,r=t.dragRect;Pe.length>1&&(Pe.forEach((function(t){n.addAnimationState({target:t,rect:ze?L(t):r}),X(t),t.fromRect=r,e.removeAnimationState(t)})),ze=!1,Be(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var e=t.sortable,i=t.isOwner,n=t.insertion,r=t.activeSortable,o=t.parentEl,a=t.putSortable,s=this.options;if(n){if(i&&r._hideClone(),Re=!1,s.animation&&Pe.length>1&&(ze||!i&&!r.options.sort&&!a)){var l=L(Ae,!1,!0,!0);Pe.forEach((function(t){t!==Ae&&(Y(t,l),o.appendChild(t))})),ze=!0}if(!i)if(ze||$e(),Pe.length>1){var u=Ee;r._showClone(e),r.options.animation&&!Ee&&u&&Le.forEach((function(t){r.addAnimationState({target:t,rect:Oe}),t.fromRect=Oe,t.thisAnimationDuration=null}))}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,i=t.isOwner,n=t.activeSortable;if(Pe.forEach((function(t){t.thisAnimationDuration=null})),n.options.animation&&!i&&n.multiDrag.isMultiDrag){Oe=o({},e);var r=O(Ae,!0);Oe.top-=r.f,Oe.left-=r.e}},dragOverAnimationComplete:function(){ze&&(ze=!1,$e())},drop:function(t){var e=t.originalEvent,i=t.rootEl,n=t.parentEl,r=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var u=this.options,c=n.children;if(!Ne)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),I(Ae,u.selectedClass,!~Pe.indexOf(Ae)),~Pe.indexOf(Ae))Pe.splice(Pe.indexOf(Ae),1),De=null,nt({sortable:r,rootEl:i,name:"deselect",targetEl:Ae,originalEvt:e});else{if(Pe.push(Ae),nt({sortable:r,rootEl:i,name:"select",targetEl:Ae,originalEvt:e}),e.shiftKey&&De&&r.el.contains(De)){var h,d,f=F(De),p=F(Ae);if(~f&&~p&&f!==p)for(p>f?(d=f,h=p):(d=p,h=f+1);d<h;d++)~Pe.indexOf(c[d])||(I(c[d],u.selectedClass,!0),Pe.push(c[d]),nt({sortable:r,rootEl:i,name:"select",targetEl:c[d],originalEvt:e}))}else De=Ae;Ie=l}if(Ne&&this.isMultiDrag){if((n[Z].options.sort||n!==i)&&Pe.length>1){var g=L(Ae),m=F(Ae,":not(."+this.options.selectedClass+")");if(!Re&&u.animation&&(Ae.thisAnimationDuration=null),l.captureAnimationState(),!Re&&(u.animation&&(Ae.fromRect=g,Pe.forEach((function(t){if(t.thisAnimationDuration=null,t!==Ae){var e=ze?L(t):g;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),$e(),Pe.forEach((function(t){c[m]?n.insertBefore(t,c[m]):n.appendChild(t),m++})),a===F(Ae))){var v=!1;Pe.forEach((function(t){t.sortableIndex===F(t)||(v=!0)})),v&&o("update")}Pe.forEach((function(t){X(t)})),l.animateAll()}Ie=l}(i===n||s&&"clone"!==s.lastPutMode)&&Le.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Ne=!1,Le.length=0},destroyGlobal:function(){this._deselectMultiDrag(),S(document,"pointerup",this._deselectMultiDrag),S(document,"mouseup",this._deselectMultiDrag),S(document,"touchend",this._deselectMultiDrag),S(document,"keydown",this._checkKeyDown),S(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Ne||!Ne)&&Ie===this.sortable&&(!t||!M(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Pe.length){var e=Pe[0];I(e,this.options.selectedClass,!1),Pe.shift(),nt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Z];e&&e.options.multiDrag&&!~Pe.indexOf(t)&&(Ie&&Ie!==e&&(Ie.multiDrag._deselectMultiDrag(
8),Ie=e),I(t,e.options.selectedClass,!0),Pe.push(t))},deselect:function(t){var e=t.parentNode[Z],i=Pe.indexOf(t);e&&e.options.multiDrag&&~i&&(I(t,e.options.selectedClass,!1),Pe.splice(i,1))}},eventProperties:function(){var t=this,e=[],i=[];return Pe.forEach((function(n){var r;e.push({multiDragElement:n,index:n.sortableIndex}),r=ze&&n!==Ae?-1:ze?F(n,":not(."+t.options.selectedClass+")"):F(n),i.push({multiDragElement:n,index:r})})),{items:u(Pe),clones:[].concat(Le),oldIndicies:e,newIndicies:i}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Be(t,e){Pe.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function Ve(t,e){Le.forEach((function(i,n){var r=e.children[i.sortableIndex+(t?Number(n):0)];r?e.insertBefore(i,r):e.appendChild(i)}))}function $e(){Pe.forEach((function(t){t!==Ae&&t.parentNode&&t.parentNode.removeChild(t)}))}Jt.mount(new ye),Jt.mount(ke,Ce),e["default"]=Jt},2649:function(t,e){function i(t){return"function"===typeof t.value||(console.warn("[Vue-click-outside:] provided expression",t.expression,"is not a function."),!1)}function n(t,e){if(!t||!e)return!1;for(var i=0,n=e.length;i<n;i++)try{if(t.contains(e[i]))return!0;if(e[i].contains(t))return!1}catch(r){return!1}return!1}function r(t){return"undefined"!==typeof t.componentInstance&&t.componentInstance.$isServer}t.exports={bind:function(t,e,o){if(!i(e))return;function a(e){if(o.context){var i=e.path||e.composedPath&&e.composedPath();i&&i.length>0&&i.unshift(e.target),t.contains(e.target)||n(o.context.popupItem,i)||t.__vueClickOutside__.callback(e)}}t.__vueClickOutside__={handler:a,callback:e.value};const s="ontouchstart"in document.documentElement?"touchstart":"click";!r(o)&&document.addEventListener(s,a)},update:function(t,e){i(e)&&(t.__vueClickOutside__.callback=e.value)},unbind:function(t,e,i){const n="ontouchstart"in document.documentElement?"touchstart":"click";!r(i)&&t.__vueClickOutside__&&document.removeEventListener(n,t.__vueClickOutside__.handler),delete t.__vueClickOutside__}}},9980:function(t,e,i){(function(e,n){t.exports=n(i(1474))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s="fb15")}({"01f9":function(t,e,i){"use strict";var n=i("2d00"),r=i("5ca1"),o=i("2aba"),a=i("32e9"),s=i("84f2"),l=i("41a0"),u=i("7f20"),c=i("38fd"),h=i("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};t.exports=function(t,e,i,v,y,b,_){l(i,e,v);var w,x,S,C=function(t){if(!d&&t in D)return D[t];switch(t){case p:return function(){return new i(this,t)};case g:return function(){return new i(this,t)}}return function(){return new i(this,t)}},k=e+" Iterator",M=y==g,T=!1,D=t.prototype,I=D[h]||D[f]||y&&D[y],A=I||C(y),O=y?M?C("entries"):A:void 0,E="Array"==e&&D.entries||I;if(E&&(S=c(E.call(new t)),S!==Object.prototype&&S.next&&(u(S,k,!0),n||"function"==typeof S[h]||a(S,h,m))),M&&I&&I.name!==g&&(T=!0,A=function(){return I.call(this)}),n&&!_||!d&&!T&&D[h]||a(D,h,A),s[e]=A,s[k]=m,y)if(w={values:M?A:C(g),keys:b?A:C(p),entries:O},_)for(x in w)x in D||o(D,x,w[x]);else r(r.P+r.F*(d||T),e,w);return w}}
vendor: 26,522 bytes, line 8
8,"02f4":function(t,e,i){var n=i("4588"),r=i("be13");t.exports=function(t){return function(e,i){var o,a,s=String(r(e)),l=n(i),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,i){"use strict";var n=i("02f4")(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},"0bfb":function(t,e,i){"use strict";var n=i("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,i){var n=i("ce10"),r=i("e11e");t.exports=Object.keys||function(t){return n(t,r)}},1495:function(t,e,i){var n=i("86cc"),r=i("cb7c"),o=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(t,e){r(t);var i,a=o(e),s=a.length,l=0;while(s>l)n.f(t,i=a[l++],e[i]);return t}},"214f":function(t,e,i){"use strict";i("b0c5");var n=i("2aba"),r=i("32e9"),o=i("79e5"),a=i("be13"),s=i("2b4c"),l=i("520a"),u=s("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=s(t),f=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),p=f?!o((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[u]=function(){return i}),i[d](""),!e})):void 0;if(!f||!p||"replace"===t&&!c||"split"===t&&!h){var g=/./[d],m=i(a,d,""[t],(function(t,e,i,n,r){return e.exec===l?f&&!r?{done:!0,value:g.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),v=m[0],y=m[1];n(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,i){var n=i("d3f4"),r=i("7726").document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"23c6":function(t,e,i){var n=i("2d95"),r=i("2b4c")("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(i){}};t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=a(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,i){var n=i("7726"),r=i("32e9"),o=i("69a8"),a=i("ca5a")("src"),s=i("fa5b"),l="toString",u=(""+s).split(l);i("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,i,s){var l="function"==typeof i;l&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(l&&(o(i,a)||r(i,a,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=i:s?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,i){var n=i("cb7c"),r=i("1495"),o=i("e11e"),a=i("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=i("230e")("iframe"),n=o.length,r="<",a=">";e.style.display="none",i("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),u=t.F;while(n--)delete u[l][o[n]];return u()};t.exports=Object.create||function(t,e){var i;return null!==t?(s[l]=n(t),i=new s,s[l]=null,i[a]=t):i=u(),void 0===e?i:r(i,e)}},"2b4c":function(t,e,i){var n=i("5537")("wks"),r=i("ca5a"),o=i("7726").Symbol,a="function"==typeof o,s=t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},"2fdb":function(t,e,i){"use strict";var n=i("5ca1"),r=i("d2c8"),o="includes";n(n.P+n.F*i("5147")(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,i){var n=i("86cc"),r=i("4630");t.exports=i("9e1e")?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},"38fd":function(t,e,i){var n=i("69a8"),r=i("4bf8"),o=i("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,i){"use strict";var n=i("2aeb"),r=i("4630"),o=i("7f20"),a={};i("32e9")(a,i("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=n(a,{next:r(1,i)}),o(t,e+" Iterator")}},"456d":function(t,e,i){var n=i("4bf8"),r=i("0d58");i("5eda")("keys",(function(){return function(t){return r(n(t))}}))},4588:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,i){var n=i("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,i){var n=i("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(r){}}return!0}},"520a":function(t,e,i){"use strict";var n=i("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[s]||0!==e[s]}(),u=void 0!==/()??/.exec("")[1],c=l||u;c&&(a=function(t){var e,i,a,c,h=this;return u&&(i=new RegExp("^"+h.source+"$(?!\\s)",n.call(h))),l&&(e=h[s]),a=r.call(h,t),l&&a&&(h[s]=h.global?a.index+a[0].length:e),u&&a&&a.length>1&&o.call(a[0],i,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,i){var n=i("8378"),r=i("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,i){var n=i("7726"),r=i("8378"),o=i("32e9"),a=i("2aba"),s=i("9b43"),l="prototype",u=function(t,e,i){var c,h,d,f,p=t&u.F,g=t&u.G,m=t&u.S,v=t&u.P,y=t&u.B,b=g?n:m?n[e]||(n[e]={}):(n[e]||{})[l],_=g?r:r[e]||(r[e]={}),w=_[l]||(_[l]={});for(c in g&&(i=e),i)h=!p&&b&&void 0!==b[c],d=(h?b:i)[c],f=y&&h?s(d,n):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,t&u.U),_[c]!=d&&o(_,c,f),v&&w[c]!=d&&(w[c]=d)};n.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5eda":function(t,e,i){var n=i("5ca1"),r=i("8378"),o=i("79e5");t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],a={};a[t]=e(i),n(n.S+n.F*o((function(){i(1)})),"Object",a)}},"5f1b":function(t,e,i){"use strict";var n=i("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"===typeof i){var o=i.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,i){var n=i("5537")("keys"),r=i("ca5a");t.exports=function(t){return n[t]||(n[t]=r(t))}},"626a":function(t,e,i){var n=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6762:function(t,e,i){"use strict";var n=i("5ca1"),r=i("c366")(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},6821:function(t,e,i){var n=i("626a"),r=i("be13");t.exports=function(t){return n(r(t))}},"69a8":function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},"6a99":function(t,e,i){var n=i("d3f4");t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,i){"use strict";var n=i("0d58"),r=i("2621"),o=i("52a7"),a=i("4bf8"),s=i("626a"),l=Object.assign;t.exports=!l||i("79e5")((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=l({},t)[i]||Object.keys(l({},e)).join("")!=n}))?function(t,e){var i=a(t),l=arguments.length,u=1,c=r.f,h=o.f;while(l>u){var d,f=s(arguments[u++]),p=c?n(f).concat(c(f)):n(f),g=p.length,m=0;while(g>m)h.call(f,d=p[m++])&&(i[d]=f[d])}return i}:l},7726:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},"77f1":function(t,e,i){var n=i("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,i){var n=i("86cc").f,r=i("69a8"),o=i("2b4c")("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},8378:function(t,e){var i=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=i)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,i){var n=i("cb7c"),r=i("c69a"),o=i("6a99"),a=Object.defineProperty;e.f=i("9e1e")?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return a(t,e,i)}catch(s){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},"9b43":function(t,e,i){var n=i("d8e8");t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,i){var n=i("2b4c")("unscopables"),r=Array.prototype;void 0==r[n]&&i("32e9")(r,n,{}),t.exports=function(t){r[n][t]=!0}},"9def":function(t,e,i){var n=i("4588"),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},"9e1e":function(t,e,i){t.exports=!i("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,i){e.exports=t},a481:function(t,e,i){"use strict";var n=i("cb7c"),r=i("4bf8"),o=i("9def"),a=i("4588"),s=i("0390"),l=i("5f1b"),u=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};i("214f")("replace",2,(function(t,e,i,g){return[function(n,r){var o=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,o,r):i.call(String(o),n,r)},function(t,e){var r=g(i,t,this,e);if(r.done)return r.value;var h=n(t),d=String(this),f="function"===typeof e;f||(e=String(e));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}var b=[];while(1){var _=l(h,d);if(null===_)break;if(b.push(_),!v)break;var w=String(_[0]);""===w&&(h.lastIndex=s(d,o(h.lastIndex),y))}for(var x="",S=0,C=0;C<b.length;C++){_=b[C];for(var k=String(_[0]),M=u(c(a(_.index),d.length),0),T=[],D=1;D<_.length;D++)T.push(p(_[D]));var I=_.groups;if(f){var A=[k].concat(T,M,d);void 0!==I&&A.push(I);var O=String(e.apply(void 0,A))}else O=m(k,d,M,T,I,e);M>=S&&(x+=d.slice(S,M)+O,S=M+k.length)}return x+d.slice(S)}];function m(t,e,n,o,a,s){var l=n+t.length,u=o.length,c=f;return void 0!==a&&(a=r(a),c=d),i.call(s,c,(function(i,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var c=+r;if(0===c)return i;if(c>u){var d=h(c/10);return 0===d?i:d<=u?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):i}s=o[c-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,i){var n=i("d3f4"),r=i("2d95"),o=i("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,i){for(var n=i("cadf"),r=i("0d58"),o=i("2aba"),a=i("7726"),s=i("32e9"),l=i("84f2"),u=i("2b4c"),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),g=0;g<p.length;g++){var m,v=p[g],y=f[v],b=a[v],_=b&&b.prototype;if(_&&(_[c]||s(_,c,d),_[h]||s(_,h,v),l[v]=d,y))for(m in n)_[m]||o(_,m,n[m],!0)}},b0c5:function(t,e,i){"use strict";var n=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,i){var n=i("6821"),r=i("9def"),o=i("77f1");t.exports=function(t){return function(e,i,a){var s,l=n(e),u=r(l.length),c=o(a,u);if(t&&i!=i){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}}},c649:function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return u})),i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return r})),i.d(e,"d",(function(){return l}));i("a481");function n(){return"undefined"!==typeof window?window.console:t.console}var r=n();function o(t){var e=Object.create(null);return function(i){var n=e[i];return n||(e[i]=t(i))}}var a=/-(\w)/g,s=o((function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))}));function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function u(t,e,i){var n=0===i?t.children[0]:t.children[i-1].nextSibling;t.insertBefore(e,n)}}).call(this,i("c8ba"))},c69a:function(t,e,i){t.exports=!i("9e1e")&&!i("79e5")((function(){return 7!=Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(n){"object"===typeof window&&(i=window)}t.exports=i},ca5a:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},cadf:function(t,e,i){"use strict";var n=i("9c6c"),r=i("d53b"),o=i("84f2"),a=i("6821");t.exports=i("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,i){var n=i("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,i){var n=i("69a8"),r=i("6821"),o=i("c366")(!1),a=i("613b")("IE_PROTO");t.exports=function(t,e){var i,s=r(t),l=0,u=[];for(i in s)i!=a&&n(s,i)&&u.push(i);while(e.length>l)n(s,i=e[l++])&&(~o(u,i)||u.push(i));return u}},d2c8:function(t,e,i){var n=i("aae3"),r=i("be13");t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,i){"use strict";var n=i("5ca1"),r=i("9def"),o=i("d2c8"),a="startsWith",s=""[a];n(n.P+n.F*i("5147")(a),"String",{startsWith:function(t){var e=o(this,t,a),i=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,i):e.slice(i,i+n.length)===n}})},f6fd:function(t,e){(function(t){var e="currentScript",i=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in i)if(i[t].src==e||"interactive"==i[t].readyState)return i[t];return null}}})})(document)},f751:function(t,e,i){var n=i("5ca1");n(n.S+n.F,"Object",{assign:i("7333")})},fa5b:function(t,e,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,i){var n=i("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,i){"use strict";var n;(i.r(e),"undefined"!==typeof window)&&(i("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=n[1]));i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function r(t){if(Array.isArray(t))return t}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done);n=!0)if(i.push(a.value),e&&i.length===e)break}catch(l){r=!0,o=l}finally{try{n||null==s["return"]||s["return"]()}finally{if(r)throw o}}return i}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function s(t,e){if(t){if("string"===typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(t,e):void 0}}function l(){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 u(t,e){return r(t)||o(t,e)||s(t,e)||l()}i("6762"),i("2fdb");function c(t){if(Array.isArray(t))return a(t)}function h(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(){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 f(t){return c(t)||h(t)||s(t)||d()}var p=i("a352"),g=i.n(p),m=i("c649");function v(t,e,i){return void 0===i||(t=t||{},t[e]=i),t}function y(t,e){return t.map((function(t){return t.elm})).indexOf(e)}function b(t,e,i,n){if(!t)return[];var r=t.map((function(t){return t.elm})),o=e.length-n,a=f(e).map((function(t,e){return e>=o?r.length:r.indexOf(t)}));return i?a.filter((function(t){return-1!==t})):a}function _(t,e){var i=this;this.$nextTick((function(){return i.$emit(t.toLowerCase(),e)}))}function w(t){var e=this;return function(i){null!==e.realList&&e["onDrag"+t](i),_.call(e,t,i)}}function x(t){return["transition-group","TransitionGroup"].includes(t)}function S(t){if(!t||1!==t.length)return!1;var e=u(t,1),i=e[0].componentOptions;return!!i&&x(i.tag)}function C(t,e,i){return t[i]||(e[i]?e[i]():void 0)}function k(t,e,i){var n=0,r=0,o=C(e,i,"header");o&&(n=o.length,t=t?[].concat(f(o),f(t)):f(o));var a=C(e,i,"footer");return a&&(r=a.length,t=t?[].concat(f(t),f(a)):f(a)),{children:t,headerOffset:n,footerOffset:r}}function M(t,e){var i=null,n=function(t,e){i=v(i,t,e)},r=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,i){return e[i]=t[i],e}),{});if(n("attrs",r),!e)return i;var o=e.on,a=e.props,s=e.attrs;return n("on",o),n("props",a),Object.assign(i.attrs,s),i}var T=["Start","Add","Remove","Update","End"],D=["Choose","Unchoose","Sort","Filter","Clone"],I=["Move"].concat(T,D).map((function(t){return"on"+t})),A=null,O={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},E={name:"draggable",inheritAttrs:!1,props:O,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=S(e);var i=k(e,this.$slots,this.$scopedSlots),n=i.children,r=i.headerOffset,o=i.footerOffset;this.headerOffset=r,this.footerOffset=o;var a=M(this.$attrs,this.componentData);return t(this.getTag(),a,n)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};T.forEach((function(i){e["on"+i]=w.call(t,i)})),D.forEach((function(i){e["on"+i]=_.bind(t,i)}));var i=Object.keys(this.$attrs).reduce((function(e,i){return e[Object(m["a"])(i)]=t.$attrs[i],e}),{}),n=Object.assign({},this.options,i,e,{onMove:function(e,i){return t.onDragMove(e,i)}});!("draggable"in n)&&(n.draggable=">*"),this._sortable=new g.a(this.rootContainer,n),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var i=Object(m["a"])(e);-1===I.indexOf(i)&&this._sortable.option(i,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=b(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=y(this.getChildrenNodes()||[],t);if(-1===e)return null;var i=this.realList[e];return{index:e,element:i}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&x(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=f(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,f(t))};this.alterList(e)},updatePosition:function(t,e){var i=function(i){return i.splice(e,0,i.splice(t,1)[0])};this.alterList(i)},getRelatedContextFromMoveEvent:function(t){var e=t.to,i=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var r=n.realList,o={list:r,component:n};if(e!==i&&r&&n.getUnderlyingVm){var a=n.getUnderlyingVm(i);if(a)return Object.assign(a,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,i=e.length;return t>i-1?i:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var i=this.getComponent();i.children=[],i.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),A=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(m["d"])(t.item);var i=this.getVmIndex(t.newIndex);this.spliceList(i,0,e),this.computeIndexes();var n={element:e,newIndex:i};this.emitChanges({added:n})}},onDragRemove:function(t){if(Object(m["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var i={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:i})}else Object(m["d"])(t.clone)},onDragUpdate:function(t){Object(m["d"])(t.item),Object(m["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,i=this.getVmIndex(t.newIndex);this.updatePosition(e,i);var n={element:this.context.element,oldIndex:e,newIndex:i};this.emitChanges({moved:n})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var i=f(e.to.children).filter((function(t){return"none"!==t.style["display"]})),n=i.indexOf(e.related),r=t.component.getVmIndex(n),o=-1!==i.indexOf(A);return o||!e.willInsertAfter?r:r+1},onDragMove:function(t,e){var i=this.move;if(!i||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),r=this.context,o=this.computeFutureIndex(n,t);Object.assign(r,{futureIndex:o});var a=Object.assign({},t,{relatedContext:n,draggedContext:r});return i(a,e)},onDragEnd:function(){this.computeIndexes(),A=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",E);var P=E;e["default"]=P}})["default"]}))},7203:function(e){"use strict";e.exports=t}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}};return e[t].call(o.exports,o,o.exports,n),o.exports}!function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
8),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};return function(){"use strict";n.r(r),n.d(r,{default:function(){return XQ}});var t={};if(n.r(t),n.d(t,{Arc:function(){return NL},BezierCurve:function(){return LL},BoundingRect:function(){return Wb},Circle:function(){return GP},CompoundPath:function(){return BL},Ellipse:function(){return ZP},Group:function(){return rS},Image:function(){return wM},IncrementalDisplayable:function(){return tR},Line:function(){return IL},LinearGradient:function(){return WL},OrientedBoundingRect:function(){return KL},Path:function(){return fM},Point:function(){return Pb},Polygon:function(){return xL},Polyline:function(){return kL},RadialGradient:function(){return UL},Rect:function(){return AM},Ring:function(){return vL},Sector:function(){return pL},Text:function(){return YM},applyTransform:function(){return DR},clipPointsByRect:function(){return PR},clipRectByRect:function(){return LR},createIcon:function(){return RR},extendPath:function(){return mR},extendShape:function(){return pR},getShapeClass:function(){return yR},getTransform:function(){return TR},groupTransition:function(){return ER},initProps:function(){return oR},isElementRemoved:function(){return aR},lineLineIntersect:function(){return NR},linePolygonIntersect:function(){return zR},makeImage:function(){return _R},makePath:function(){return bR},mergePath:function(){return xR},registerShape:function(){return vR},removeElement:function(){return sR},removeElementWithFadeOut:function(){return uR},resizePath:function(){return SR},setTooltipConfig:function(){return VR},subPixelOptimize:function(){return MR},subPixelOptimizeLine:function(){return CR},subPixelOptimizeRect:function(){return kR},transformDirection:function(){return IR},traverseElements:function(){return jR},updateProps:function(){return rR}}),"undefined"!==typeof window){var e=window.document.currentScript,i=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n(7658);var o=n(7203),a=n.n(o),s=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],l=function(t){return-1!==s.map((function(t){return t.toLowerCase()})).indexOf(t.toLowerCase())},u=function(t,e,i){Object.keys(e).filter(l).forEach((function(n){var r=e[n];"function"===typeof r&&("onInit"===n?r(t,i):i.on(n.substring(2),(function(t){return r(t,i)})))}))},c=function(t,e){var i=t.$props.modelEvents?t.$props.modelEvents:null,n=Array.isArray(i)?i.join(" "):i;e.on(n||"change input undo redo",(function(){t.$emit("input",e.getContent({format:t.$props.outputFormat}))}))},h=function(t,e,i){var n=e.$props.value?e.$props.value:"",r=e.$props.initialValue?e.$props.initialValue:"";i.setContent(n||(e.initialized?e.cache:r)),e.$watch("value",(function(t,n){i&&"string"===typeof t&&t!==n&&t!==i.getContent({format:e.$props.outputFormat})&&i.setContent(t)})),e.$listeners.input&&c(e,i),u(t,e.$listeners,i),e.initialized=!0},d=0,f=function(t){var e=Date.now(),i=Math.floor(1e9*Math.random());return d++,t+"_"+i+d+String(e)},p=function(t){return null!==t&&"textarea"===t.tagName.toLowerCase()},g=function(t){return"undefined"===typeof t||""===t?[]:Array.isArray(t)?t:t.split(" ")},m=function(t,e){return g(t).concat(g(e))},v=function(t){return null===t||void 0===t},y=function(){return{listeners:[],scriptId:f("tiny-script"),scriptLoaded:!1}}
8,b=function(){var t=y(),e=function(t,e,i,n){var r=e.createElement("script");r.referrerPolicy="origin",r.type="application/javascript",r.id=t,r.src=i;var o=function(){r.removeEventListener("load",o),n()};r.addEventListener("load",o),e.head&&e.head.appendChild(r)},i=function(i,n,r){t.scriptLoaded?r():(t.listeners.push(r),i.getElementById(t.scriptId)||e(t.scriptId,i,n,(function(){t.listeners.forEach((function(t){return t()})),t.scriptLoaded=!0})))},n=function(){t=y()};return{load:i,reinitialize:n}},_=b(),w=function(){return"undefined"!==typeof window?window:n.g},x=function(){var t=w();return t&&t.tinymce?t.tinymce:null},S={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return"html"===t||"text"===t}}},C=function(){return C=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},C.apply(this,arguments)},k=function(t,e,i){return t(i||"div",{attrs:{id:e}})},M=function(t,e){return t("textarea",{attrs:{id:e},style:{visibility:"hidden"}})},T=function(t){return function(){var e=C(C({},t.$props.init),{readonly:t.$props.disabled,selector:"#"+t.elementId,plugins:m(t.$props.init&&t.$props.init.plugins,t.$props.plugins),toolbar:t.$props.toolbar||t.$props.init&&t.$props.init.toolbar,inline:t.inlineEditor,setup:function(e){t.editor=e,e.on("init",(function(i){return h(i,t,e)})),t.$props.init&&"function"===typeof t.$props.init.setup&&t.$props.init.setup(e)}});p(t.element)&&(t.element.style.visibility="",t.element.style.display=""),x().init(e)}},D={props:S,created:function(){this.elementId=this.$props.id||f("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline,this.initialized=!1},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,null!==x())T(this)();else if(this.element&&this.element.ownerDocument){var t=this.$props.cloudChannel?this.$props.cloudChannel:"5",e=this.$props.apiKey?this.$props.apiKey:"no-api-key",i=v(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+e+"/tinymce/"+t+"/tinymce.min.js":this.$props.tinymceScriptSrc;_.load(this.element.ownerDocument,i,T(this))}},beforeDestroy:function(){null!==x()&&x().remove(this.editor)},deactivated:function(){var t;this.inlineEditor||(this.cache=this.editor.getContent(),null===(t=x())||void 0===t||t.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&T(this)()},render:function(t){return this.inlineEditor?k(t,this.elementId,this.$props.tagName):M(t,this.elementId)}},I=D,A=n(9980),O=n.n(A);class E extends Error{}class P extends E{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class L extends E{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class R extends E{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class z extends E{}class N extends E{constructor(t){super(`Invalid unit ${t}`)}}class F extends E{}class B extends E{constructor(){super("Zone is an abstract class")}}const V="numeric",j="short",W="long",H={year:V,month:V,day:V},U={year:V,month:j,day:V},q={year:V,month:j,day:V,weekday:j},G={year:V,month:W,day:V},Y={year:V,month:W,day:V,weekday:W},X={hour:V,minute:V},Z={hour:V,minute:V,second:V},K={hour:V,minute:V,second:V,timeZoneName:j},J={hour:V,minute:V,second:V,timeZoneName:W},Q={hour:V,minute:V,hourCycle:"h23"},tt={hour:V,minute:V,second:V,hourCycle:"h23"},et={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:j},it={hour:V,minute:V,second:V,hourCycle:"h23",timeZoneName:W},nt={year:V,month:V,day:V,hour:V,minute:V},rt={year:V,month:V,day:V,hour:V,minute:V,second:V},ot={year:V,month:j,day:V,hour:V,minute:V},at={year:V,month:j,day:V,hour:V,minute:V,second:V},st={year:V,month:j,day:V,weekday:j,hour:V,minute:V},lt={year:V,month:W,day:V,hour:V,minute:V,timeZoneName:j},ut={year:V,month:W,day:V,hour:V,minute:V,second:V,timeZoneName:j},ct={year:V,month:W,day:V,weekday:W,hour:V,minute:V,timeZoneName:W},ht={year:V,month:W,day:V,weekday:W,hour:V,minute:V,second:V,timeZoneName:W};class dt{get type(){throw new B}get name(){throw new B}get ianaName(){return this.name}get isUniversal(){throw new B}offsetName(t,e){throw new B}formatOffset(t,e){throw new B}offset(t){throw new B}equals(t){throw new B}get isValid(){throw new B}}let ft=null;class pt extends dt{static get instance(){return null===ft&&(ft=new pt),ft}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return Se(t,e,i)}formatOffset(t,e){return Te(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let gt={};function mt(t){return gt[t]||(gt[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),gt[t]}const vt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function yt(t,e){const i=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,r,o,a,s,l,u,c]=n;return[a,r,o,s,l,u,c]}function bt(t,e){const i=t.formatToParts(e),n=[];for(let r=0;r<i.length;r++){const{type:t,value:e}=i[r],o=vt[t];"era"===t?n[o]=e:te(o)||(n[o]=parseInt(e,10))}return n}let _t={};class wt extends dt{static create(t){return _t[t]||(_t[t]=new wt(t)),_t[t]}static resetCache(){_t={},gt={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(Mp){return!1}}constructor(t){super(),this.zoneName=t,this.valid=wt.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return Se(t,e,i,this.name)}formatOffset(t,e){return Te(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const i=mt(this.name);let[n,r,o,a,s,l,u]=i.formatToParts?bt(i,e):yt(i,e);"BC"===a&&(n=1-Math.abs(n));const c=24===s?0:s,h=_e({year:n,month:r,day:o,hour:c,minute:l,second:u,millisecond:0});let d=+e;const f=d%1e3;return d-=f>=0?f:1e3+f,(h-d)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let xt={};function St(t,e={}){const i=JSON.stringify([t,e]);let n=xt[i];return n||(n=new Intl.ListFormat(t,e),xt[i]=n),n}let Ct={};function kt(t,e={}){const i=JSON.stringify([t,e]);let n=Ct[i];return n||(n=new Intl.DateTimeFormat(t,e),Ct[i]=n),n}let Mt={};function Tt(t,e={}){const i=JSON.stringify([t,e]);let n=Mt[i];return n||(n=new Intl.NumberFormat(t,e),Mt[i]=n),n}let Dt={};function It(t,e={}){const{base:i,...n}=e,r=JSON.stringify([t,n]);let o=Dt[r];return o||(o=new Intl.RelativeTimeFormat(t,e),Dt[r]=o),o}let At=null;function Ot(){return At||(At=(new Intl.DateTimeFormat).resolvedOptions().locale,At)}function Et(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const i=t.indexOf("-u-");if(-1===i)return[t];{let e,n;try{e=kt(t).resolvedOptions(),n=t}catch(Mp){const o=t.substring(0,i);e=kt(o).resolvedOptions(),n=o}const{numberingSystem:r,calendar:o}=e;return[n,r,o]}}function Pt(t,e,i){return i||e?(t.includes("-u-")||(t+="-u"),i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`),t):t}function Lt(t){const e=[];for(let i=1;i<=12;i++){const n=Ar.utc(2009,i,1);e.push(t(n))}return e}function Rt(t){const e=[];for(let i=1;i<=7;i++){const n=Ar.utc(2016,11,13+i);e.push(t(n))}return e}function zt(t,e,i,n){const r=t.listingMode();return"error"===r?null:"en"===r?i(e):n(e)}function Nt(t){return(!t.numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)}class Ft{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:r,...o}=i;
vendor: 6,184 bytes, line 8
8if(!e||Object.keys(o).length>0){const e={useGrouping:!1,...i};i.padTo>0&&(e.minimumIntegerDigits=i.padTo),this.inf=Tt(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}{const e=this.floor?Math.floor(t):me(t,3);return de(e,this.padTo)}}}class Bt{constructor(t,e,i){let n;if(this.opts=i,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,i=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&wt.create(i).valid?(n=i,this.dt=t):(n="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,n=t.zone.name):(n="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const r={...this.opts};r.timeZone=r.timeZone||n,this.dtf=kt(e,r)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Vt{constructor(t,e,i){this.opts={style:"long",...i},!e&&oe()&&(this.rtf=It(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):qe(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class $t{static fromOpts(t){return $t.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,i,n=!1){const r=t||Qt.defaultLocale,o=r||(n?"en-US":Ot()),a=e||Qt.defaultNumberingSystem,s=i||Qt.defaultOutputCalendar;return new $t(o,a,s,r)}static resetCache(){At=null,Ct={},Mt={},Dt={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i}={}){return $t.create(t,e,i)}constructor(t,e,i,n){const[r,o,a]=Et(t);this.locale=r,this.numberingSystem=e||o||null,this.outputCalendar=i||a||null,this.intl=Pt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=Nt(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?$t.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return zt(this,t,Ee,(()=>{const i=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=Lt((t=>this.extract(t,i,"month")))),this.monthsCache[n][t]}))}weekdays(t,e=!1){return zt(this,t,ze,(()=>{const i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=Rt((t=>this.extract(t,i,"weekday")))),this.weekdaysCache[n][t]}))}meridiems(){return zt(this,void 0,(()=>Ne),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ar.utc(2016,11,13,9),Ar.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return zt(this,t,$e,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ar.utc(-40,1,1),Ar.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,i){const n=this.dtFormatter(t,e),r=n.formatToParts(),o=r.find((t=>t.type.toLowerCase()===i));return o?o.value:null}numberFormatter(t={}){return new Ft(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Bt(t,this.intl,e)}relFormatter(t={}){return new Vt(this.intl,this.isEnglish(),t)}listFormatter(t={}){return St(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let jt=null;class Wt extends dt{static get utcInstance(){return null===jt&&(jt=new Wt(0)),jt}static instance(t){return 0===t?Wt.utcInstance:new Wt(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new Wt(Ce(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Te(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Te(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return Te(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class Ht extends dt{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ut(t,e){if(te(t)||null===t)return e;if(t instanceof dt)return t;if(ne(t)){const i=t.toLowerCase();return"default"===i?e:"local"===i||"system"===i?pt.instance:"utc"===i||"gmt"===i?Wt.utcInstance:Wt.parseSpecifier(i)||wt.create(t)}return ee(t)?Wt.instance(t):"object"===typeof t&&"offset"in t&&"function"===typeof t.offset?t:new Ht(t)}let qt,Gt=()=>Date.now(),Yt="system",Xt=null,Zt=null,Kt=null,Jt=60;class Qt{static get now(){return Gt}static set now(t){Gt=t}static set defaultZone(t){Yt=t}static get defaultZone(){return Ut(Yt,pt.instance)}static get defaultLocale(){return Xt}static set defaultLocale(t){Xt=t}static get defaultNumberingSystem(){return Zt}static set defaultNumberingSystem(t){Zt=t}
8static get defaultOutputCalendar(){return Kt}static set defaultOutputCalendar(t){Kt=t}static get twoDigitCutoffYear(){return Jt}static set twoDigitCutoffYear(t){Jt=t%100}static get throwOnInvalid(){return qt}static set throwOnInvalid(t){qt=t}static resetCaches(){$t.resetCache(),wt.resetCache()}}function te(t){return"undefined"===typeof t}function ee(t){return"number"===typeof t}function ie(t){return"number"===typeof t&&t%1===0}function ne(t){return"string"===typeof t}function re(t){return"[object Date]"===Object.prototype.toString.call(t)}function oe(){try{return"undefined"!==typeof Intl&&!!Intl.RelativeTimeFormat}catch(Mp){return!1}}function ae(t){return Array.isArray(t)?t:[t]}function se(t,e,i){if(0!==t.length)return t.reduce(((t,n)=>{const r=[e(n),n];return t&&i(t[0],r[0])===t[0]?t:r}),null)[1]}function le(t,e){return e.reduce(((e,i)=>(e[i]=t[i],e)),{})}function ue(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ce(t,e,i){return ie(t)&&t>=e&&t<=i}function he(t,e){return t-e*Math.floor(t/e)}function de(t,e=2){const i=t<0;let n;return n=i?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function fe(t){return te(t)||null===t||""===t?void 0:parseInt(t,10)}function pe(t){return te(t)||null===t||""===t?void 0:parseFloat(t)}function ge(t){if(!te(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function me(t,e,i=!1){const n=10**e,r=i?Math.trunc:Math.round;return r(t*n)/n}function ve(t){return t%4===0&&(t%100!==0||t%400===0)}function ye(t){return ve(t)?366:365}function be(t,e){const i=he(e-1,12)+1,n=t+(e-i)/12;return 2===i?ve(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function _e(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function we(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,i=t-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===e||3===n?53:52}function xe(t){return t>99?t:t>Qt.twoDigitCutoffYear?1900+t:2e3+t}function Se(t,e,i,n=null){const r=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);const a={timeZoneName:e,...o},s=new Intl.DateTimeFormat(i,a).formatToParts(r).find((t=>"timezonename"===t.type.toLowerCase()));return s?s.value:null}function Ce(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);const n=parseInt(e,10)||0,r=i<0||Object.is(i,-0)?-n:n;return 60*i+r}function ke(t){const e=Number(t);if("boolean"===typeof t||""===t||Number.isNaN(e))throw new F(`Invalid unit value ${t}`);return e}function Me(t,e){const i={};for(const n in t)if(ue(t,n)){const r=t[n];if(void 0===r||null===r)continue;i[e(n)]=ke(r)}return i}function Te(t,e){const i=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${de(i,2)}:${de(n,2)}`;case"narrow":return`${r}${i}${n>0?`:${n}`:""}`;case"techie":return`${r}${de(i,2)}${de(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function De(t){return le(t,["hour","minute","second","millisecond"])}const Ie=["January","February","March","April","May","June","July","August","September","October","November","December"],Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Oe=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ee(t){switch(t){case"narrow":return[...Oe];case"short":return[...Ae];case"long":return[...Ie];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Pe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Le=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Re=["M","T","W","T","F","S","S"];function ze(t){switch(t){case"narrow":return[...Re];case"short":return[...Le];case"long":return[...Pe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ne=["AM","PM"],Fe=["Before Christ","Anno Domini"],Be=["BC","AD"],Ve=["B","A"];function $e(t){switch(t){case"narrow":return[...Ve];case"short":return[...Be];case"long":return[...Fe];default:return null}}function je(t){return Ne[t.hour<12?0:1]}function We(t,e){return ze(e)[t.weekday-1]}function He(t,e){return Ee(e)[t.month-1]}function Ue(t,e){return $e(e)[t.year<0?0:1]}function qe(t,e,i="always",n=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===i&&o){const i="days"===t;switch(e){case 1:return i?"tomorrow":`next ${r[t][0]}`;case-1:return i?"yesterday":`last ${r[t][0]}`;case 0:return i?"today":`this ${r[t][0]}`;default:}}const a=Object.is(e,-0)||e<0,s=Math.abs(e),l=1===s,u=r[t],c=n?l?u[1]:u[2]||u[1]:l?r[t][0]:t;return a?`${s} ${c} ago`:`in ${s} ${c}`}function Ge(t,e){let i="";for(const n of t)n.literal?i+=n.val:i+=e(n.val);return i}const Ye={D:H,DD:U,DDD:G,DDDD:Y,t:X,tt:Z,ttt:K,tttt:J,T:Q,TT:tt,TTT:et,TTTT:it,f
8:nt,ff:ot,fff:lt,ffff:ct,F:rt,FF:at,FFF:ut,FFFF:ht};class Xe{static create(t,e={}){return new Xe(t,e)}static parseFormat(t){let e=null,i="",n=!1;const r=[];for(let o=0;o<t.length;o++){const a=t.charAt(o);"'"===a?(i.length>0&&r.push({literal:n||/^\s+$/.test(i),val:i}),e=null,i="",n=!n):n||a===e?i+=a:(i.length>0&&r.push({literal:/^\s+$/.test(i),val:i}),i=a,e=a)}return i.length>0&&r.push({literal:n||/^\s+$/.test(i),val:i}),r}static macroTokenToFormatOpts(t){return Ye[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());const i=this.systemLoc.dtFormatter(t,{...this.opts,...e});return i.format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){const i=this.dtFormatter(t.start,e);return i.dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return de(t,e);const i={...this.opts};return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(e,i)=>this.loc.extract(t,e,i),o=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=()=>i?je(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(e,n)=>i?He(t,e):r(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>i?We(t,e):r(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const i=Xe.macroTokenToFormatOpts(e);return i?this.formatWithSystemDefault(t,i):e},c=e=>i?Ue(t,e):r({era:e},"era"),h=e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return n?r({day:"numeric"},"day"):this.num(t.day);case"dd":return n?r({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?r({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return n?r({month:"numeric"},"month"):this.num(t.month);case"MM":return n?r({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return n?r({year:"numeric"},"year"):this.num(t.year);case"yy":return n?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?r({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);
8case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}};return Ge(Xe.parseFormat(e),h)}formatDurationFromString(t,e){const i=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=t=>e=>{const n=i(e);return n?this.num(t.get(n),e.length):e},r=Xe.parseFormat(e),o=r.reduce(((t,{literal:e,val:i})=>e?t:t.concat(i)),[]),a=t.shiftTo(...o.map(i).filter((t=>t)));return Ge(r,n(a))}}class Ze{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Ke=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Je(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function Qe(...t){return e=>t.reduce((([t,i,n],r)=>{const[o,a,s]=r(e,n);return[{...t,...o},a||i,s]}),[{},null,1]).slice(0,2)}function ti(t,...e){if(null==t)return[null,null];for(const[i,n]of e){const e=i.exec(t);if(e)return n(e)}return[null,null]}function ei(...t){return(e,i)=>{const n={};let r;for(r=0;r<t.length;r++)n[t[r]]=fe(e[i+r]);return[n,null,i+r]}}const ii=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ni=`(?:${ii.source}?(?:\\[(${Ke.source})\\])?)?`,ri=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,oi=RegExp(`${ri.source}${ni}`),ai=RegExp(`(?:T${oi.source})?`),si=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,li=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ui=/(\d{4})-?(\d{3})/,ci=ei("weekYear","weekNumber","weekDay"),hi=ei("year","ordinal"),di=/(\d{4})-(\d\d)-(\d\d)/,fi=RegExp(`${ri.source} ?(?:${ii.source}|(${Ke.source}))?`),pi=RegExp(`(?: ${fi.source})?`);function gi(t,e,i){const n=t[e];return te(n)?i:fe(n)}function mi(t,e){const i={year:gi(t,e),month:gi(t,e+1,1),day:gi(t,e+2,1)};return[i,null,e+3]}function vi(t,e){const i={hours:gi(t,e,0),minutes:gi(t,e+1,0),seconds:gi(t,e+2,0),milliseconds:ge(t[e+3])};return[i,null,e+4]}function yi(t,e){const i=!t[e]&&!t[e+1],n=Ce(t[e+1],t[e+2]),r=i?null:Wt.instance(n);return[{},r,e+3]}function bi(t,e){const i=t[e]?wt.create(t[e]):null;return[{},i,e+1]}const _i=RegExp(`^T?${ri.source}$`),wi=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function xi(t){const[e,i,n,r,o,a,s,l,u]=t,c="-"===e[0],h=l&&"-"===l[0],d=(t,e=!1)=>void 0!==t&&(e||t&&c)?-t:t;return[{years:d(pe(i)),months:d(pe(n)),weeks:d(pe(r)),days:d(pe(o)),hours:d(pe(a)),minutes:d(pe(s)),seconds:d(pe(l),"-0"===l),milliseconds:d(ge(u),h)}]}const Si={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ci(t,e,i,n,r,o,a){const s={year:2===e.length?xe(fe(e)):fe(e),month:Ae.indexOf(i)+1,day:fe(n),hour:fe(r),minute:fe(o)};return a&&(s.second=fe(a)),t&&(s.weekday=t.length>3?Pe.indexOf(t)+1:Le.indexOf(t)+1),s}const ki=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Mi(t){const[,e,i,n,r,o,a,s,l,u,c,h]=t,d=Ci(e,r,n,i,o,a,s);let f;return f=l?Si[l]:u?0:Ce(c,h),[d,new Wt(f)]}function Ti(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Di=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ii=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ai=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Oi(t){const[,e,i,n,r,o,a,s]=t,l=Ci(e,r,n,i,o,a,s);return[l,Wt.utcInstance]}function Ei(t){const[,e,i,n,r,o,a,s]=t,l=Ci(e,s,i,n,r,o,a);return[l,Wt.utcInstance]}const Pi=Je(si,ai),Li=Je(li,ai),Ri=Je(ui,ai),zi=Je(oi),Ni=Qe(mi,vi,yi,bi),Fi=Qe(ci,vi,yi,bi),Bi=Qe(hi,vi,yi,bi),Vi=Qe(vi,yi,bi);function $i(t){return ti(t,[Pi,Ni],[Li,Fi],[Ri,Bi],[zi,Vi])}function ji(t){return ti(Ti(t),[ki,Mi])}function Wi(t){return ti(t,[Di,Oi],[Ii,Oi],[Ai,Ei])}function Hi(t){return ti(t,[wi,xi])}const Ui=Qe(vi);function qi(t){return ti(t,[_i,Ui])}const Gi=Je(di,pi),Yi=Je(fi),Xi=Qe(vi,yi,bi);function Zi(t){return ti(t,[Gi,Ni],[Yi,Xi])}const Ki="Invalid Duration",Ji={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Qi={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Ji},tn=365.2425,en=30.436875,nn={years:{quarters:4,months:12,weeks:tn/7,days:tn,hours:24*tn,minutes:24*tn*60,seconds:24*tn*60*60,milliseconds:24*tn*60*60*1e3},quarters:{months:3,weeks:tn/28,days:tn/4,hours:24*tn/4,minutes:24*tn*60/4,seconds:24*tn*60*60/4,milliseconds:24*tn*60*60*1e3/4},months:{weeks:en/7,days:en,hours:24*en,minutes:24*en*60,seconds:24*en*60*60,milliseconds:24*en*60*60*1e3},...Ji},rn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],on=rn.slice(0).reverse();function an(t,e,i=!1){const n={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new cn(n)}function sn(t,e){let i=e.milliseconds??0;for(const n of on.slice(1))e[n]&&(i+=e[n]*t[n]["milliseconds"]);return i}function ln(t,e){const i=sn(t,e)<0?-1:1;rn.reduceRight(((n,r)=>{if(te(e[r]))return n;if(n){const o=e[n]*i,a=t[r][n],s=Math.floor(o/a);e[r]+=s*i,e[n]-=s*a*i}return r}),null),rn.reduce(((i,n)=>{if(te(e[n]))return i;if(i){const r=e[i]%1;e[i]-=r,e[n]+=r*t[i][n]}return n}),null)}function un(t){const e={};for(const[i,n]of Object.entries(t))0!==n&&(e[i]=n);return e}class cn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let i=e?nn:Qi;t.matrix&&(i=t.matrix),this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invali
vendor: 12,644 bytes, line 8
8d||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(t,e){return cn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!==typeof t)throw new F("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new cn({values:Me(t,cn.normalizeUnit),loc:$t.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(ee(t))return cn.fromMillis(t);if(cn.isDuration(t))return t;if("object"===typeof t)return cn.fromObject(t);throw new F(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[i]=Hi(t);return i?cn.fromObject(i,e):cn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[i]=qi(t);return i?cn.fromObject(i,e):cn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new F("need to specify a reason the Duration is invalid");const i=t instanceof Ze?t:new Ze(t,e);if(Qt.throwOnInvalid)throw new R(i);return new cn({invalid:i})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new N(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const i={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Xe.create(this.loc,i).formatDurationFromString(this,t):Ki}toHuman(t={}){if(!this.isValid)return Ki;const e=rn.map((e=>{const i=this.values[e];return te(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(i)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=me(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1};const i=Ar.fromMillis(e,{zone:"UTC"});return i.toISOTime(t)}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?sn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=cn.fromDurationLike(t),i={};for(const n of rn)(ue(e.values,n)||ue(this.values,n))&&(i[n]=e.get(n)+this.get(n));return an(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const e=cn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=ke(t(this.values[i],i));return an(this,{values:e},!0)}get(t){return this[cn.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const e={...this.values,...Me(t,cn.normalizeUnit)};return an(this,{values:e})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i,matrix:n}={}){const r=this.loc.clone({locale:t,numberingSystem:e}),o={loc:r,matrix:n,conversionAccuracy:i};return an(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return ln(this.matrix,t),an(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=un(this.normalize().shiftToAll().toObject());return an(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>cn.normalizeUnit(t)));const e={},i={},n=this.toObject();let r;for(const o of rn)if(t.indexOf(o)>=0){r=o;let t=0;for(const e in i)t+=this.matrix[e][o]*i[e],i[e]=0;ee(n[o])&&(t+=n[o]);const a=Math.trunc(t);e[o]=a,i[o]=(1e3*t-1e3*a)/1e3}else ee(n[o])&&(i[o]=n[o]);for(const o in i)0!==i[o]&&(e[r]+=o===r?i[o]:i[o]/this.matrix[r][o]);return ln(this.matrix,e),an(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return an(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;function e(t,e){return void 0===t||0===t?void 0===e||0===e:t===e}for(const i of rn)if(!e(this.values[i],t.values[i]))return!1;return!0}}const hn="Invalid Interval";function dn(t,e){return t&&t.isValid?e&&e.isValid?e<t?fn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:fn.invalid("missing or invalid end"):fn.invalid("missing or invalid start")}class fn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new F("need to specify a reason the Interval is invalid");const i=t instanceof Ze?t:new Ze(t,e);if(Qt.throwOnInvalid)throw new L(i);return new fn({invalid:i})}static fromDateTimes(t,e){const i=Or(t),n=Or(e),r=dn(i,n);return null==r?new fn({start:i,end:n}):r}static after(t,e){const i=cn.fromDurationLike(e),n=Or(t);return fn.fromDateTimes(n,n.plus(i))}static before(t,e){const i=cn.fromDurationLike(e),n=Or(t);return fn.fromDateTimes(n.minus(i),n)}static fromISO(t,e){const[i,n]=(t||"").split("/",2);if(i&&n){let t,r,o,a;try{t=Ar.fromISO(i,e),r=t.isValid}catch(n){r=!1}try{o=Ar.fromISO(n,e),a=o.isValid}catch(n){a=!1}if(r&&a)return fn.fromDateTimes(t,o);if(r){const i=cn.fromISO(n,e);if(i.isValid)return fn.after(t,i)}else if(a){const t=cn.fromISO(i,e);if(t.isValid)return fn.before(o,t)}}return fn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),i=this.end.startOf(t);return Math.floor(i.diff(e,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set({start:t,end:e}={}){return this.isValid?fn.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(Or).filter((t=>this.contains(t))).sort(),i=[];let{s:n}=this,r=0;while(n<this.e){const t=e[r]||this.e,o=+t>+this.e?this.e:t;i.push(fn.fromDateTimes(n,o)),n=o,r+=1}return i}splitBy(t){const e=cn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let i,{s:n}=this,r=1;const o=[];while(n<this.e){const t=this.start.plus(e.mapUnits((t=>t*r)));i=+t>+this.e?this.e:t,o.push(fn.fromDateTimes(n,i)),n=i,r+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e===+t.s}abutsEnd(t){return!!this.isValid&&+t.e===+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:fn.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return fn.fromDateTimes(e,i)}static merge(t){const[e,i]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],i)=>e?e.overlaps(i)||e.abutsStart(i)?[t,e.union(i)]:[t.concat([e]),i]:[t,i]),[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0;const n=[],r=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),o=Array.prototype.concat(...r),a=o.sort(((t,e)=>t.time-e.time));for(const s of a)i+="s"===s.type?1:-1,1===i?e=s.time:(e&&+e!==+s.time&&n.push(fn.fromDateTimes(e,s.time)),e=null);return fn.merge(n)}difference(...t){return fn.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:hn}toLocaleString(t=H,e={}){return this.isValid?Xe.create(this.s.loc.clone(e),t).formatInterval(this):hn}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:hn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:hn}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:hn}toFormat(t,{separator:e=" â "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:hn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):cn.invalid(this.invalidReason)}mapEndpoints(t){return fn.fromDateTimes(t(this.s),t(this.e))}}class pn{static hasDST(t=Qt.defaultZone){const e=Ar.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return wt.isValidZone(t)}static normalizeZone(t){return Ut(t,Qt.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:r="gregory"}={}){return(n||$t.create(e,i,r)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:r="gregory"}={}){return(n||$t.create(e,i,r)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||$t.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||$t.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return $t.create(e,null,"gregory").eras(t)}static features(){return{relative:oe()}}}function gn(t,e){const i=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(e)-i(t);return Math.floor(cn.fromMillis(n).as("days"))}function mn(t,e,i){const n=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const i=gn(t,e);return(i-i%7)/7}],["days",gn]],r={},o=t;let a,s;for(const[l,u]of n)i.indexOf(l)>=0&&(a=l,r[l]=u(t,e),s=o.plus(r),s>e?(r[l]--,t=o.plus(r),t>e&&(s=t,r[l]--,t=o.plus(r))):t=s);return[t,r,s,a]}function vn(t,e,i,n){let[r,o,a,s]=mn(t,e,i);const l=e-r,u=i.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===u.length&&(a<e&&(a=r.plus({[s]:1})),a!==r&&(o[s]=(o[s]||0)+l/(a-r)));const c=cn.fromObject(o,n);return u.length>0?cn.fromMillis(l,n).shiftTo(...u).plus(c):c}const yn={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",t
8ibt:"[༠-༩]",latn:"\\d"},bn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},_n=yn.hanidec.replace(/[\[|\]]/g,"").split("");function wn(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);if(-1!==t[i].search(yn.hanidec))e+=_n.indexOf(t[i]);else for(const t in bn){const[i,r]=bn[t];n>=i&&n<=r&&(e+=n-i)}}return parseInt(e,10)}return e}function xn({numberingSystem:t},e=""){return new RegExp(`${yn[t||"latn"]}${e}`)}const Sn="missing Intl.DateTimeFormat.formatToParts support";function Cn(t,e=(t=>t)){return{regex:t,deser:([t])=>e(wn(t))}}const kn=String.fromCharCode(160),Mn=`[ ${kn}]`,Tn=new RegExp(Mn,"g");function Dn(t){return t.replace(/\./g,"\\.?").replace(Tn,Mn)}function In(t){return t.replace(/\./g,"").replace(Tn," ").toLowerCase()}function An(t,e){return null===t?null:{regex:RegExp(t.map(Dn).join("|")),deser:([i])=>t.findIndex((t=>In(i)===In(t)))+e}}function On(t,e){return{regex:t,deser:([,t,e])=>Ce(t,e),groups:e}}function En(t){return{regex:t,deser:([t])=>t}}function Pn(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ln(t,e){const i=xn(e),n=xn(e,"{2}"),r=xn(e,"{3}"),o=xn(e,"{4}"),a=xn(e,"{6}"),s=xn(e,"{1,2}"),l=xn(e,"{1,3}"),u=xn(e,"{1,6}"),c=xn(e,"{1,9}"),h=xn(e,"{2,4}"),d=xn(e,"{4,6}"),f=t=>({regex:RegExp(Pn(t.val)),deser:([t])=>t,literal:!0}),p=p=>{if(t.literal)return f(p);switch(p.val){case"G":return An(e.eras("short"),0);case"GG":return An(e.eras("long"),0);case"y":return Cn(u);case"yy":return Cn(h,xe);case"yyyy":return Cn(o);case"yyyyy":return Cn(d);case"yyyyyy":return Cn(a);case"M":return Cn(s);case"MM":return Cn(n);case"MMM":return An(e.months("short",!0),1);case"MMMM":return An(e.months("long",!0),1);case"L":return Cn(s);case"LL":return Cn(n);case"LLL":return An(e.months("short",!1),1);case"LLLL":return An(e.months("long",!1),1);case"d":return Cn(s);case"dd":return Cn(n);case"o":return Cn(l);case"ooo":return Cn(r);case"HH":return Cn(n);case"H":return Cn(s);case"hh":return Cn(n);case"h":return Cn(s);case"mm":return Cn(n);case"m":return Cn(s);case"q":return Cn(s);case"qq":return Cn(n);case"s":return Cn(s);case"ss":return Cn(n);case"S":return Cn(l);case"SSS":return Cn(r);case"u":return En(c);case"uu":return En(s);case"uuu":return Cn(i);case"a":return An(e.meridiems(),0);case"kkkk":return Cn(o);case"kk":return Cn(h,xe);case"W":return Cn(s);case"WW":return Cn(n);case"E":case"c":return Cn(i);case"EEE":return An(e.weekdays("short",!1),1);case"EEEE":return An(e.weekdays("long",!1),1);case"ccc":return An(e.weekdays("short",!0),1);case"cccc":return An(e.weekdays("long",!0),1);case"Z":case"ZZ":return On(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return On(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return En(/[a-z_+-/]{1,256}?/i);case" ":return En(/[^\S\n\r]/);default:return f(p)}},g=p(t)||{invalidReason:Sn};return g.token=t,g}const Rn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function zn(t,e,i){const{type:n,value:r}=t;if("literal"===n){const t=/^\s+$/.test(r);return{literal:!t,val:t?" ":r}}const o=e[n];let a=n;"hour"===n&&(a=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let s=Rn[a];if("object"===typeof s&&(s=s[o]),s)return{literal:!1,val:s}}function Nn(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"");return[`^${e}$`,t]}function Fn(t,e,i){const n=t.match(e);if(n){const t={};let e=1;for(const r in i)if(ue(i,r)){const o=i[r],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(t[o.token.val[0]]=o.deser(n.slice(e,e+a))),e+=a}return[n,t]}return[n,{}]}function Bn(t){const e=t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i,n=null;te(t.z)||(n=wt.create(t.z)),te(t.Z)||(n||(n=new Wt(t.Z)),i=t.Z),te(t.q)||(t.M=3*(t.q-1)+1),te(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),te(t.u)||(t.S=ge(t.u));const r=Object.keys(t).reduce(((i,n)=>{const r=e(n);return r&&(i[r]=t[n]),i}),{});return[r,n,i]}let Vn=null;function $n(){return Vn||(Vn=Ar.fromMillis(1555555555555)),Vn}function jn(t,e){if(t.literal)return t;const i=Xe.macroTokenToFormatOpts(t.val),n=qn(i,e);return null==n||n.includes(void 0)?t:n}function Wn(t,e){return Array.prototype.concat(...t.map((t=>jn(t,e))))}function Hn(t,e,i){const n=Wn(Xe.parseFormat(i),t),r=n.map((e=>Ln(e,t))),o=r.find((t=>
8t.invalidReason));if(o)return{input:e,tokens:n,invalidReason:o.invalidReason};{const[t,i]=Nn(r),o=RegExp(t,"i"),[a,s]=Fn(e,o,i),[l,u,c]=s?Bn(s):[null,null,void 0];if(ue(s,"a")&&ue(s,"H"))throw new z("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:o,rawMatches:a,matches:s,result:l,zone:u,specificOffset:c}}}function Un(t,e,i){const{result:n,zone:r,specificOffset:o,invalidReason:a}=Hn(t,e,i);return[n,r,o,a]}function qn(t,e){if(!t)return null;const i=Xe.create(e,t),n=i.dtFormatter($n()),r=n.formatToParts(),o=n.resolvedOptions();return r.map((e=>zn(e,t,o)))}const Gn=[0,31,59,90,120,151,181,212,243,273,304,334],Yn=[0,31,60,91,121,152,182,213,244,274,305,335];function Xn(t,e){return new Ze("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Zn(t,e,i){const n=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const r=n.getUTCDay();return 0===r?7:r}function Kn(t,e,i){return i+(ve(t)?Yn:Gn)[e-1]}function Jn(t,e){const i=ve(t)?Yn:Gn,n=i.findIndex((t=>t<e)),r=e-i[n];return{month:n+1,day:r}}function Qn(t){const{year:e,month:i,day:n}=t,r=Kn(e,i,n),o=Zn(e,i,n);let a,s=Math.floor((r-o+10)/7);return s<1?(a=e-1,s=we(a)):s>we(e)?(a=e+1,s=1):a=e,{weekYear:a,weekNumber:s,weekday:o,...De(t)}}function tr(t){const{weekYear:e,weekNumber:i,weekday:n}=t,r=Zn(e,1,4),o=ye(e);let a,s=7*i+n-r-3;s<1?(a=e-1,s+=ye(a)):s>o?(a=e+1,s-=ye(e)):a=e;const{month:l,day:u}=Jn(a,s);return{year:a,month:l,day:u,...De(t)}}function er(t){const{year:e,month:i,day:n}=t,r=Kn(e,i,n);return{year:e,ordinal:r,...De(t)}}function ir(t){const{year:e,ordinal:i}=t,{month:n,day:r}=Jn(e,i);return{year:e,month:n,day:r,...De(t)}}function nr(t){const e=ie(t.weekYear),i=ce(t.weekNumber,1,we(t.weekYear)),n=ce(t.weekday,1,7);return e?i?!n&&Xn("weekday",t.weekday):Xn("week",t.week):Xn("weekYear",t.weekYear)}function rr(t){const e=ie(t.year),i=ce(t.ordinal,1,ye(t.year));return e?!i&&Xn("ordinal",t.ordinal):Xn("year",t.year)}function or(t){const e=ie(t.year),i=ce(t.month,1,12),n=ce(t.day,1,be(t.year,t.month));return e?i?!n&&Xn("day",t.day):Xn("month",t.month):Xn("year",t.year)}function ar(t){const{hour:e,minute:i,second:n,millisecond:r}=t,o=ce(e,0,23)||24===e&&0===i&&0===n&&0===r,a=ce(i,0,59),s=ce(n,0,59),l=ce(r,0,999);return o?a?s?!l&&Xn("millisecond",r):Xn("second",n):Xn("minute",i):Xn("hour",e)}const sr="Invalid DateTime",lr=864e13;function ur(t){return new Ze("unsupported zone",`the zone "${t.name}" is not supported`)}function cr(t){return null===t.weekData&&(t.weekData=Qn(t.c)),t.weekData}function hr(t,e){const i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Ar({...i,...e,old:i})}function dr(t,e,i){let n=t-60*e*1e3;const r=i.offset(n);if(e===r)return[n,e];n-=60*(r-e)*1e3;const o=i.offset(n);return r===o?[n,r]:[t-60*Math.min(r,o)*1e3,Math.max(r,o)]}function fr(t,e){t+=60*e*1e3;const i=new Date(t);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function pr(t,e,i){return dr(_e(t),e,i)}function gr(t,e){const i=t.o,n=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),o={...t.c,year:n,month:r,day:Math.min(t.c.day,be(n,r))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=cn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=_e(o);let[l,u]=dr(s,i,t.zone);return 0!==a&&(l+=a,u=t.zone.offset(l)),{ts:l,o:u}}function mr(t,e,i,n,r,o){const{setZone:a,zone:s}=i;if(t&&0!==Object.keys(t).length||e){const n=e||s,r=Ar.fromObject(t,{...i,zone:n,specificOffset:o});return a?r:r.setZone(s)}return Ar.invalid(new Ze("unparsable",`the input "${r}" can't be parsed as ${n}`))}function vr(t,e,i=!0){return t.isValid?Xe.create($t.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function yr(t,e){const i=t.c.year>9999||t.c.year<0;let n="";return i&&t.c.year>=0&&(n+="+"),n+=de(t.c.year,i?6:4),e?(n+="-",n+=de(t.c.month),n+="-",n+=de(t.c.day)):(n+=de(t.c.month),n+=de(t.c.day)),n}function br(t,e,i,n,r,o){let a=de(t.c.hour);
8return e?(a+=":",a+=de(t.c.minute),0===t.c.millisecond&&0===t.c.second&&i||(a+=":")):a+=de(t.c.minute),0===t.c.millisecond&&0===t.c.second&&i||(a+=de(t.c.second),0===t.c.millisecond&&n||(a+=".",a+=de(t.c.millisecond,3))),r&&(t.isOffsetFixed&&0===t.offset&&!o?a+="Z":t.o<0?(a+="-",a+=de(Math.trunc(-t.o/60)),a+=":",a+=de(Math.trunc(-t.o%60))):(a+="+",a+=de(Math.trunc(t.o/60)),a+=":",a+=de(Math.trunc(t.o%60)))),o&&(a+="["+t.zone.ianaName+"]"),a}const _r={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},wr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Sr=["year","month","day","hour","minute","second","millisecond"],Cr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],kr=["year","ordinal","hour","minute","second","millisecond"];function Mr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new N(t);return e}function Tr(t,e){const i=Ut(e.zone,Qt.defaultZone),n=$t.fromObject(e),r=Qt.now();let o,a;if(te(t.year))o=r;else{for(const i of Sr)te(t[i])&&(t[i]=_r[i]);const e=or(t)||ar(t);if(e)return Ar.invalid(e);const n=i.offset(r);[o,a]=pr(t,n,i)}return new Ar({ts:o,zone:i,loc:n,o:a})}function Dr(t,e,i){const n=!!te(i.round)||i.round,r=(t,r)=>{t=me(t,n||i.calendary?0:2,!0);const o=e.loc.clone(i).relFormatter(i);return o.format(t,r)},o=n=>i.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(i.unit)return r(o(i.unit),i.unit);for(const a of i.units){const t=o(a);if(Math.abs(t)>=1)return r(t,a)}return r(t>e?-0:0,i.units[i.units.length-1])}function Ir(t){let e,i={};return t.length>0&&"object"===typeof t[t.length-1]?(i=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[i,e]}class Ar{constructor(t){const e=t.zone||Qt.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new Ze("invalid input"):null)||(e.isValid?null:ur(e));this.ts=te(t.ts)?Qt.now():t.ts;let n=null,r=null;if(!i){const o=t.old&&t.old.ts===this.ts&&t.old.zone.equals(e);if(o)[n,r]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);n=fr(this.ts,t),i=Number.isNaN(n.year)?new Ze("invalid input"):null,n=i?null:n,r=i?null:t}}this._zone=e,this.loc=t.loc||$t.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=r,this.isLuxonDateTime=!0}static now(){return new Ar({})}static local(){const[t,e]=Ir(arguments),[i,n,r,o,a,s,l]=e;return Tr({year:i,month:n,day:r,hour:o,minute:a,second:s,millisecond:l},t)}static utc(){const[t,e]=Ir(arguments),[i,n,r,o,a,s,l]=e;return t.zone=Wt.utcInstance,Tr({year:i,month:n,day:r,hour:o,minute:a,second:s,millisecond:l},t)}static fromJSDate(t,e={}){const i=re(t)?t.valueOf():NaN;if(Number.isNaN(i))return Ar.invalid("invalid input");const n=Ut(e.zone,Qt.defaultZone);return n.isValid?new Ar({ts:i,zone:n,loc:$t.fromObject(e)}):Ar.invalid(ur(n))}static fromMillis(t,e={}){if(ee(t))return t<-lr||t>lr?Ar.invalid("Timestamp out of range"):new Ar({ts:t,zone:Ut(e.zone,Qt.defaultZone),loc:$t.fromObject(e)});throw new F(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(ee(t))return new Ar({ts:1e3*t,zone:Ut(e.zone,Qt.defaultZone),loc:$t.fromObject(e)});throw new F("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const i=Ut(e.zone,Qt.defaultZone);if(!i.isValid)return Ar.invalid(ur(i));const n=Qt.now(),r=te(e.specificOffset)?i.offset(n):e.specificOffset,o=Me(t,Mr),a=!te(o.ordinal),s=!te(o.year),l=!te(o.month)||!te(o.day),u=s||l,c=o.weekYear||o.weekNumber,h=$t.fromObject(e);if((u||a)&&c)throw new z("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new z("Can't mix ordinal dates with month/day");const d=c||o.weekday&&!u;let f,p,g=fr(n,r);d?(f=Cr,p=wr,g=Qn(g)):a?(f=kr,p=xr,g=er(g)):(f=Sr,p=_r);let m=!1;for(const S of f){const t=o[S];te(t)?o[S]=m?p[S]:g[S]:m=!0}
vendor: 6,077 bytes, line 8
8const v=d?nr(o):a?rr(o):or(o),y=v||ar(o);if(y)return Ar.invalid(y);const b=d?tr(o):a?ir(o):o,[_,w]=pr(b,r,i),x=new Ar({ts:_,zone:i,o:w,loc:h});return o.weekday&&u&&t.weekday!==x.weekday?Ar.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${x.toISO()}`):x}static fromISO(t,e={}){const[i,n]=$i(t);return mr(i,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[i,n]=ji(t);return mr(i,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[i,n]=Wi(t);return mr(i,n,e,"HTTP",e)}static fromFormat(t,e,i={}){if(te(t)||te(e))throw new F("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:r=null}=i,o=$t.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0}),[a,s,l,u]=Un(o,t,e);return u?Ar.invalid(u):mr(a,s,i,`format ${e}`,t,l)}static fromString(t,e,i={}){return Ar.fromFormat(t,e,i)}static fromSQL(t,e={}){const[i,n]=Zi(t);return mr(i,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new F("need to specify a reason the DateTime is invalid");const i=t instanceof Ze?t:new Ze(t,e);if(Qt.throwOnInvalid)throw new P(i);return new Ar({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const i=qn(t,$t.fromObject(e));return i?i.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){const i=Wn(Xe.parseFormat(t),$t.fromObject(e));return i.map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cr(this).weekYear:NaN}get weekNumber(){return this.isValid?cr(this).weekNumber:NaN}get weekday(){return this.isValid?cr(this).weekday:NaN}get ordinal(){return this.isValid?er(this.c).ordinal:NaN}get monthShort(){return this.isValid?pn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?pn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?pn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?pn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,i=_e(this.c),n=this.zone.offset(i-t),r=this.zone.offset(i+t),o=this.zone.offset(i-n*e),a=this.zone.offset(i-r*e);if(o===a)return[this];const s=i-o*e,l=i-a*e,u=fr(s,o),c=fr(l,a);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[hr(this,{ts:s}),hr(this,{ts:l})]:[this]}get isInLeapYear(){return ve(this.year)}get daysInMonth(){return be(this.year,this.month)}get daysInYear(){return this.isValid?ye(this.year):NaN}get weeksInWeekYear(){return this.isValid?we(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:i,calendar:n}=Xe.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(Wt.instance(t),e)}toLocal(){return this.setZone(Qt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if(t=Ut(t,Qt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let n=this.ts;if(e||i){const e=t.offset(this.ts),i=this.toObject();[n]=pr(i,e,t)}return hr(this,{ts:n,zone:t})}return Ar.invalid(ur(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){const n=this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i});return hr(this,{loc:n})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Me(t,Mr),i=!te(e.weekYear)||!te(e.weekNumber)||!te(e.weekday),n=!te(e.ordinal),r=!te(e.year),o=!te(e.month)||!te(e.day),a=r||o,s=e.weekYear||e.weekNumber;if((a||n)&&s)throw new z("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&n)throw new z("Can't mix ordinal dates with month/day");let l;i?l=tr({...Qn(this.c),...e}):te(e.ordinal)?(l={...this.toObject(),...e},te(e.day)&&(l.day=Math.min(be(l.year,l.month),l.day))):l=ir({...er(this.c),...e});const[u,c]=pr(l,this.o,this.zone);return hr(this,{ts:u,o:c})}plus(t){if(!this.isValid)return this;const e=cn.fromDurationLike(t);return hr(this,gr(this,e))}minus(t){if(!this.isValid)return this;const e=cn.fromDurationLike(t).negate();return hr(this,gr(this,e))}startOf(t){if(!this.isValid)return this;const e={},i=cn.normalizeUnit(t);switch(i){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0;break;case"milliseconds":break}if("weeks"===i&&(e.weekday=1),"quarters"===i){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Xe.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):sr}
8toLocaleString(t=H,e={}){return this.isValid?Xe.create(this.loc.clone(e),t).formatDateTime(this):sr}toLocaleParts(t={}){return this.isValid?Xe.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:n=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const o="extended"===t;let a=yr(this,o);return a+="T",a+=br(this,o,e,i,n,r),a}toISODate({format:t="extended"}={}){return this.isValid?yr(this,"extended"===t):null}toISOWeekDate(){return vr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:n=!1,extendedZone:r=!1,format:o="extended"}={}){if(!this.isValid)return null;let a=n?"T":"";return a+br(this,"extended"===o,e,t,i,r)}toRFC2822(){return vr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return vr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?yr(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let n="HH:mm:ss.SSS";return(e||t)&&(i&&(n+=" "),e?n+="z":t&&(n+="ZZ")),vr(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():sr}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return cn.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...i},r=ae(e).map(cn.normalizeUnit),o=t.valueOf()>this.valueOf(),a=o?this:t,s=o?t:this,l=vn(a,s,r,n);return o?l.negate():l}diffNow(t="milliseconds",e={}){return this.diff(Ar.now(),t,e)}until(t){return this.isValid?fn.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const i=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=i&&i<=n.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||Ar.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0;let n=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(n=t.unit,r=void 0),Dr(e,this.plus(i),{...t,numeric:"always",units:n,unit:r})}toRelativeCalendar(t={}){return this.isValid?Dr(t.base||Ar.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Ar.isDateTime))throw new F("min requires all arguments be DateTimes");return se(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Ar.isDateTime))throw new F("max requires all arguments be DateTimes");return se(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,i={}){const{locale:n=null,numberingSystem:r=null}=i,o=$t.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return Hn(o,t,e)}static fromStringExplain(t,e,i={}){return Ar.fromFormatExplain(t,e,i)}static get DATE_SHORT(){return H}static get DATE_MED(){return U}static get DATE_MED_WITH_WEEKDAY(){return q}static get DATE_FULL(){return G}static get DATE_HUGE(){return Y}static get TIME_SIMPLE(){return X}static get TIME_WITH_SECONDS(){return Z}static get TIME_WITH_SHORT_OFFSET(){return K}static get TIME_WITH_LONG_OFFSET(){return J}static get TIME_24_SIMPLE(){return Q}static get TIME_24_WITH_SECONDS(){return tt}static get TIME_24_WITH_SHORT_OFFSET(){return et}static get TIME_24_WITH_LONG_OFFSET(){return it}static get DATETIME_SHORT(){return nt}static get DATETIME_SHORT_WITH_SECONDS(){return rt}static get DATETIME_MED(){return ot}static get DATETIME_MED_WITH_SECONDS(){return at}static get DATETIME_MED_WITH_WEEKDAY(){return st}static get DATETIME_FULL(){return lt}static get DATETIME_FULL_WITH_SECONDS(){return ut}static get DATETIME_HUGE(){return ct}static get DATETIME_HUGE_WITH_SECONDS(){return ht}}function Or(t){if(Ar.isDateTime(t))return t;if(t&&t.valueOf&&ee(t.valueOf()))return Ar.fromJSDate(t);if(t&&"object"===typeof t)return Ar.fromObject(t);throw new F(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Er=n(2649),Pr=n.n(Er),Lr=function(){var t=this,e=t._self._c;return t.cols&&t.cols.length>0?e("div",{ref:"container"},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:t.currentWidth,height:t.currentHeight,viewbox:"0 0 "+t.currentWidth+" "+t.currentHeight}},[e("rect",{attrs:{x:t.chartArea.left,y:t.chartArea.top,width:t.chartArea.width,height:t.chartArea.height,fill:t.backgroundColor}}),e("text",{attrs:{x:t.chartArea.left,y:t.textArea.topFull,"font-size":t.fontSize,"font-weight":"700",fill:"#000000"}},[t._v(t._s(t.title)+" ")]),t._l(t.yAxis,(function(i,n){return e("g",{key:"y"+n},[e("rect",{attrs:{x:t.chartArea.left,y:i.coordinate,width:t.chartArea.width,height:"1",fill:i.color}}),null!=i.number?e("text",{attrs:{"text-anchor":"end",x:t.chartArea.left-2*t.textArea.topHalf,y:i.coordinate+t.textArea.topHalf,"font-size":t.fontSize,fill:"#444444"}},[t._v(" "+t._s(t.formatNumber(i.number))+" ")]):t._e()])})),t._l(t.xAxis,(function(i,n){return e("g",{key:"x"+n},[e("rect",{attrs:{x:i.left,y:i.top,width:i.width,height:i.height,fill:t.barColor}}),e("text",{attrs:{"text-anchor":"middle",x:i.center,y:t.chartArea.top+t.chartArea.height+t.textArea.topFull,"font-size":t.fontSize,fill:"#222222"}},[t._v(t._s(i.label)+" ")])])}))],2)]):t._e()},Rr=[],zr={name:"bar-chart",props:{cols:{type:Array,default(){return[]}},title:{type:String,default:""},width:{type:Number,default:480},height:{type:Number,default:240},fontSize:{type:Number,default:14},marginLeftPercent:{type:Number,default:17.5},marginTopPercent:{type:Number,default:12.5},chartWidthPercent:{type:Number,default:82.5}
8,chartHeightPercent:{type:Number,default:75}},data:function(){return{backgroundColor:"#f5f5f5",zeroColor:"#333333",gridlineColor:"#dddddd",minorGridlineColor:"#eeeeee",barColor:"#337ab7",currentWidth:0,currentHeight:0,bundle:{id_11680:"k",id_11681:"m",id_11682:"b",id_11683:"t",id_11684:"q"}}},created:function(){var t=this;a().$bundle("portal",t.bundle,(function(e){t.bundle=e}))},computed:{textArea:function(){return{topFull:Math.ceil(1.4*this.fontSize),topHalf:Math.ceil(.4*this.fontSize)}},chartArea:function(){return{left:this.currentWidth*this.marginLeftPercent/100,top:this.currentHeight*this.marginTopPercent/100,width:this.currentWidth*this.chartWidthPercent/100,height:this.currentHeight*this.chartHeightPercent/100}},minValue:function(){for(var t=null,e=0;e<this.cols.length;e++){var i=this.cols[e][1];(null==t||i<t)&&(t=null!=i?i:0)}return t},maxValue:function(){for(var t=null,e=0;e<this.cols.length;e++){var i=this.cols[e][1];(null==t||i>t)&&(t=null!=i?i:0)}return t},range:function(){var t;return t=this.minValue<0&&this.maxValue<0?-this.minValue:this.minValue>0&&this.maxValue>0?this.maxValue:this.maxValue-this.minValue,t},stepRange:function(){var t=this.range/3;if(t>0){var e=0;while(t>10)t/=10,e++;e%3!=0&&(t=t<5?5:10),t=Math.ceil(t)*Math.pow(10,e),this.range/t<4&&(t/=2)}return t},firstStep:function(){return this.maxValue>0&&this.stepRange>0?Math.ceil(this.maxValue/this.stepRange)*this.stepRange:0},lastStep:function(){return this.minValue<0&&this.stepRange>0?Math.floor(this.minValue/this.stepRange)*this.stepRange:0},numberOfSteps:function(){return this.stepRange>0?(this.firstStep-this.lastStep)/this.stepRange:0},stepHeight:function(){return this.numberOfSteps>0?this.chartArea.height/(2*this.numberOfSteps):0},positiveHeight:function(){return this.firstStep>0&&this.stepRange>0?this.firstStep/this.stepRange*this.stepHeight*2:0},negativeHeight:function(){return this.lastStep<0&&this.stepRange>0?this.lastStep/this.stepRange*this.stepHeight*2*-1:0},xAxis:function(){for(var t=[],e=2*this.cols.length,i=this.chartArea.width/e,n=0;n<this.cols.length;n++){var r,o,a=this.cols[n][1];if(a>0)r=a/this.firstStep*this.positiveHeight,o=this.chartArea.top+this.positiveHeight-r;else if(a<0)r=a/this.lastStep*this.negativeHeight,o=this.chartArea.top+this.positiveHeight;else{if(0!=a)continue;o=this.positiveHeight,r=0}t.push({label:this.cols[n][0],center:this.chartArea.left+i+n*i*2,left:this.chartArea.left+n*i*2+.6*i,top:o,width:.8*i,height:r})}return t},yAxis:function(){var t=[];if(this.cols.length>0){var e=this.firstStep,i=!0;do{if(t.push({number:i?e:null,coordinate:this.chartArea.top+t.length*this.stepHeight,color:0==e?this.zeroColor:i?this.gridlineColor:this.minorGridlineColor}),!(this.stepRange>0))break;e-=this.stepRange/2,i=!i}while(e>=this.lastStep)}return t}},methods:{getContainerWidth:function(){if("container"in this.$refs){var t=this.$refs["container"];if("undefined"!==typeof t)return t.getBoundingClientRect().width}return null},formatNumber:function(t){if(t){var e=t<0;e&&(t=-t);var i=0;while(t>=1e3)t/=1e3,i++;var n="";i>=5?n=" "+this.bundle.id_11684:4==i?n=" "+this.bundle.id_11683:3==i?n=" "+this.bundle.id_11682:2==i?n=" "+this.bundle.id_11681:1==i&&(n=" "+this.bundle.id_11680),e&&(t=-t),t+=n}return t}},mounted:function(){var t=this.getContainerWidth();this.currentWidth=t||this.width,this.currentHeight=this.height}},Nr=zr;function Fr(t,e,i,n,r,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var Br,Vr,$r=Fr(Nr,Lr,Rr,!1,null,null,null),jr=$r.exports,Wr=function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,viewbox:"0 0 "+2*t.radius+" "+2*t.radius}},[e("g",{attrs:{"data-z-index":"0"}},[t._l(t.paths,(function(i,n){return e("path",{key:n,attrs:{fill:i.color,stroke:t.backgroundColor,"stroke-width":"1",d:i.d}})})),e("circle",{attrs:{cx:t.radius,cy:t.radius,r:t.radius/2,fill:t.backgroundColor}}),e("path",{attrs:{fill:t.textColor,d:t.path,stroke:t.backgroundColor,"stroke-width":"1",transform:"rotate("+t.rotation+" "+t.radius+" "+t.radius+")"}}),e("circle",{attrs:{cx:t.radius,cy:t.radius,r:.14*t.radius,fill:t.textColor}})],2)])},Hr=[],Ur={name:"barometer",props:["value","colors","textColor","backgroundColor","width","height"],data:function(){return{radius:50,range:266}},computed:{paths:function(){for(var t=this.colors.length,e=-1*this.range/2,i=this.range/t,n=[],r=0;r<t;r++){var o=e+i*r,a=this.sin(o)*this.radius,s=this.cos(o)*this.radius,l=this.sin(o+i)*this.radius,u=this.cos(o+i)*this.radius;n.push({color:this.colors[r],d:"M "+a+" "+s+" A "+this.radius+" "+this.radius+" 0 "+(1==t?1:0)+" 1 "+l+" "+u+" L "+this.radius+" "+this.radius+" Z"})}return n},path:function(){var t=this.radius,e=.92*this.radius,i=1.8*this.radius,n=.98*this.radius,r=i,o=1.02*this.radius,a=t,s=1.08*this.radius;return"M "+t+" "+e+" L "+i+" "+n+" L "+r+" "+o+" L "+a+" "+s+" Z"},rotation:function(){var t=this.value;return t<1?t=1:t>100&&(t=100),t/100*this.range-(this.range/2+90)}},methods:{sin:function(t){return Math.sin(this.radian(t))+1},cos:function(t){return-1*(Math.cos(this.radian(t))-1)},radian:function(t){return t*(Math.PI/180)}}},qr=Ur,Gr=Fr(qr,Wr,Hr,!1,null,null,null),Yr=Gr.exports,Xr=function(){var t=this,e=t._self._c;return e("time",{attrs:{datetime:t.isoFormat}},[t._v(t._s(t.formattedValue))])},Zr=[],Kr={install(t){var e=function(){var t=function(t,e){return t&&e&&t.year==e.year&&t.month==e.month&&t.day==e.day},e=function(t,e){return t&&e&&(t.year==e.year&&t.month==e.month&&t.day<=e.day||t.year==e.year&&t.month<e.month||t.year<e.year)},i=function(t,e){return t&&e&&(t.year==e.year&&t.month==e.month&&t.day<e.day||t.year==e.year&&t.month<e.month||t.year<e.year)},n=function(t,e){return t&&e&&(t.year==e.year&&t.month==e.month&&t.day>=e.day||t.year==e.year&&t.month>e.month||t.year>e.year)},r=function(t,e){return t&&e&&(t.year==e.year&&t.month==e.month&&t.day>e.day||t.year==e.year&&t.month>e.month||t.year>e.year)},o=function(t,e){return i(t,e)?-1:r(t,e)?1:0}
8,a=function(t,e,i,n){var r=Ar.local(t,e,i).weekday;return r<n?7-(n-r-1):r-(n-1)},s=function(t,e,i,n){var r=function(t,e,i){var r=Ar.local(t,e,i),o=Ar.local(t,1,1),s=Math.floor((r-o)/864e5)+1;return Math.floor((10+s-a(t,e,i,n))/7)},o=r(t,e,i);if(0==o){var s=Ar.local(t,12,31).plus({years:-1});o=r(s.year,s.month,s.day)}else if(12==e&&i>25&&o==r(t,12,31)){var l=a(t,12,31,n);l<=3&&(o=1)}return o},l=function(t){return t.substring(0,1).toUpperCase()+t.substring(1)},u=function(t){t||(t={}),"undefined"==typeof t.locale&&(t.locale="en"),"undefined"==typeof t.firstWeekday&&(t.firstWeekday=1);var e=pn.months("long",{locale:t.locale}),i=pn.months("short",{locale:t.locale}),n=e.length;t.months=[];for(var r=0;r<n;r++)t.months.push({name:l(e[r]),abbreviation:l(i[r])});return t},c=function(t,e,i){i=u(i);try{if(t){var n=t.toFormat(e,i);return n&&n.length&&(n=n.substring(0,1).toUpperCase()+n.substring(1)),n}}catch(r){console.log(r)}return null},h=function(t,e,i){i=u(i);try{if(t)return Ar.fromFormat(t,e,i)}catch(n){console.log(n)}return null};return{isSameDate:t,isOnOrBeforeDate:e,isBeforeDate:i,isOnOrAfterDate:n,isAfterDate:r,compareDates:o,getWeekday:a,getWeekNumber:s,getAsString:c,getAsDate:h}};t.$datetimeUtil=new e}},Jr=Kr,Qr=Fr(Jr,Br,Vr,!1,null,null,null),to=Qr.exports;a().use(to);var eo,io,no={name:"formatted-date",props:{value:{type:Object,validator:function(t){return Ar.isDateTime(t)}},format:{type:String,default:"yyyy-MM-dd"},firstWeekday:{type:Number,default:1,validator:function(t){return t>=1&&t<=7}},locale:{type:String,default:"en"}},computed:{formattedValue:function(){return a().$datetimeUtil.getAsString(this.value,this.format,this.datetimeUtilOptions)},isoFormat:function(){return a().$datetimeUtil.getAsString(this.value,"yyyy-MM-dd HH:mm:ss",this.datetimeUtilOptions)},datetimeUtilOptions:function(){return{firstWeekday:this.firstWeekday,locale:this.locale}}}},ro=no,oo=Fr(ro,Xr,Zr,!1,null,null,null),ao=oo.exports,so=function(){var t=this,e=t._self._c;return t.isEmpty?t._e():e("div",t._l(t.value,(function(i,n){return e("div",{key:n,staticClass:"alert alert-danger"},[t._v(t._s(i))])})),0)},lo=[],uo={name:"global-errors",computed:{isEmpty:function(){return!this.value||0===this.value.length}},props:["id","value"]},co=uo,ho=Fr(co,so,lo,!1,null,null,null),fo=ho.exports,po=function(){var t=this,e=t._self._c;return e("modal",{attrs:{open:t.open,title:t.title,"close-label":t.closeLabel,size:t.size},on:{close:t.closeModal}},[t._t("default")],2)},go=[],mo={install(t){const e=function(){const t=",",e=e=>{let i=window.location.hash||"";if(-1!==i.indexOf(e))return;i.startsWith("#")&&(i=i.substring(1)),i.length>0&&(i+=t),i+=e;let n=window.location.pathname;i.length>0&&(n+="#"+i),history.pushState(null,null,n),window.dispatchEvent(new Event("hashchange"))},i=e=>{let i=window.location.hash||"";if(-1===i.indexOf(e))return;i.startsWith("#")&&(i=i.substring(1));const n=i.split(t);while(-1!==n.indexOf(e))n.splice(n.indexOf(e),1);i=n.join(t);let r=window.location.pathname;i.length>0&&(r+="#"+i),history.pushState(null,null,r),window.dispatchEvent(new Event("hashchange"))},n=e=>{let i=window.location.hash||"";if(-1===i.indexOf(e))return!1;i.startsWith("#")&&(i=i.substring(1));const n=i.split(t);return-1!==n.indexOf(e)},r=()=>{let e=window.location.hash||"";return e.startsWith("#")&&(e=e.substring(1)),e.split(t)};return{add:e,remove:i,contains:n,getAll:r}};t.$hashUtil=new e}},vo=mo,yo=Fr(vo,eo,io,!1,null,null,null),bo=yo.exports;a().use(bo);var _o,wo,xo={name:"hash-modal",props:{hash:{type:String,required:!0},title:{type:String,default:""},closeLabel:{type:String,default:""},size:{type:String,default:""}},data:function(){return{open:!1,eager:!1}},mounted:function(){this.eager=a().$hashUtil.contains(this.hash),this.eager&&this.openModal(),window.addEventListener("hashchange",this.handleHashChange)},beforeDestroy:function(){window.removeEventListener("hashchange",this.handleHashChange)},watch:{open:function(t){t?(this.$emit("opening"),this.$nextTick((()=>{this.$emit("opened")}))):(this.$emit("closing"),this.$nextTick((()=>{this.$emit("closed")})))}},methods:{handleHashChange:function(){a().$hashUtil.contains(this.hash)?this.openModal():this.closeModal()},openModal:function(){a().$hashUtil.contains(this.hash)||a().$hashUtil.add(this.hash),this.open=!0},closeModal:function(){a().$hashUtil.contains(this.hash)&&a().$hashUtil.remove(this.hash),this.open=!1}}},So=xo,Co=Fr(So,po,go,!1,null,null,null),ko=Co.exports,Mo=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group",class:{disabled:t.parseBoolean(t.disabled)}},[t.label?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("div",{staticClass:"input-group d-flex"},[e("span",{staticClass:"input-group-text flex-grow-0"},[t._v("+")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.internalCallingCode,expression:"internalCallingCode"}
8],ref:"input",staticClass:"form-control flex-grow-0",class:{"is-invalid":t.invalid},attrs:{id:t.callingCodeId,type:"text",placeholder:t.callingCodePlaceholder,maxlength:"4",size:"4",disabled:t.parseBoolean(t.disabled)},domProps:{value:t.internalCallingCode},on:{input:function(e){e.target.composing||(t.internalCallingCode=e.target.value)}}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.internalPhone,expression:"internalPhone"}],ref:"input",staticClass:"form-control flex-grow-1",class:{"is-invalid":t.invalid},attrs:{id:t.phoneId,type:"text",placeholder:t.phonePlaceholder,maxlength:"25",disabled:t.parseBoolean(t.disabled)},domProps:{value:t.internalPhone},on:{input:function(e){e.target.composing||(t.internalPhone=e.target.value)}}})]),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},To=[],Do={name:"input-calling-code-and-phone",props:["id","value","errors","label","callingCodePlaceholder","phonePlaceholder","language","required","disabled"],computed:{callingCodeId:function(){return this.id+":calling-code"},phoneId:function(){return this.id+":phone"},help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0},internalCallingCode:{get:function(){return this.value?this.value.callingCode:null},set:function(t){this.$emit("input",{callingCode:t,phone:this.internalPhone})}},internalPhone:{get:function(){return this.value?this.value.phone:null},set:function(t){this.$emit("input",{callingCode:this.internalCallingCode,phone:t})}}}},Io=Do,Ao=Fr(Io,Mo,To,!1,null,null,null),Oo=Ao.exports,Eo=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[t.label?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("div",{class:{"is-invalid":t.invalid}},[t.loading?e("i",{staticClass:"fa fa-loading-black-16"}):t._t("default")],2),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("help")],2):t._e()],1)},Po=[],Lo={name:"input-custom",computed:{help:function(){return!!this.$slots.help},invalid:function(){return this.errors&&this.errors.length>0}},props:["id","errors","label","language","required","loading"]},Ro=Lo,zo=Fr(Ro,Eo,Po,!1,null,null,null),No=zo.exports,Fo=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group",class:{disabled:t.disabled,"position-md-relative":t.positionAbsolute}},[t.firstLabel&&!t.modeRange?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.firstLabel)+" "),t.required?e("i",{staticClass:"far fa-asterisk"}):t._e()]):t._e(),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],class:{"is-invalid":t.invalid}},[t.renderInput?[t.modeMultiple?e("div",{class:t.singleInputClass,style:t.inputStyle,on:{click:function(e){return t.open()}}},[t.formattedValue&&t.formattedValue.length>0?t._l(t.formattedValue,(function(i,n){return e("span",{key:"date"+n},[n>0?e("i",{staticClass:"fal fa-horizontal-rule",staticStyle:{transform:"rotate(90deg)"}}):t._e(),t._v(" "+t._s(i)+" ")])})):t.placeholder?e("span",{staticClass:"text-muted"},[t._v(" "+t._s(t.placeholder)+" ")]):t._e(),e("i",{staticStyle:{opacity:"0"}},[t._v("#")])],2):t.modeRange?e("div",{staticClass:"row align-items-end"},[e("div",{staticClass:"col-12 col-sm mb-2 mb-sm-0"},[t.firstLabel?e("label",{staticClass:"form-label",attrs:{for:t.id+":from"}},[t._v(t._s(t.firstLabel)+" "),t.required?e("i",{staticClass:"far fa-asterisk"}):t._e()]):t._e(),e("input",{directives:[{name:"model",rawName:"v-model",value:t.formattedRangeValueFrom,expression:"formattedRangeValueFrom"}],ref:"from",class:t.fromInputClass,style:t.inputStyle,attrs:{id:t.id+":from",type:"text",placeholder:t.firstPlaceholder,disabled:t.disabled,readonly:t.readonly,autocomplete:"off"},domProps:{value:t.formattedRangeValueFrom},on:{click:function(e){return t.open("from")},focus:function(e){t.rangeFromFocus=!0,t.rangeToFocus=!1}
8,input:function(e){e.target.composing||(t.formattedRangeValueFrom=e.target.value)}}})]),t._m(0),e("div",{staticClass:"col-12 col-sm"},[t.secondLabel?e("label",{staticClass:"form-label",attrs:{for:t.id+":to"}},[t._v(t._s(t.secondLabel)+" "),t.required?e("i",{staticClass:"far fa-asterisk"}):t._e()]):t._e(),e("input",{directives:[{name:"model",rawName:"v-model",value:t.formattedRangeValueTo,expression:"formattedRangeValueTo"}],ref:"to",class:t.toInputClass,style:t.inputStyle,attrs:{id:t.id+":to",type:"text",placeholder:t.secondPlaceholder,disabled:t.disabled,readonly:t.readonly,autocomplete:"off"},domProps:{value:t.formattedRangeValueTo},on:{click:function(e){return t.open("to")},focus:function(e){t.rangeFromFocus=!1,t.rangeToFocus=!0},input:function(e){e.target.composing||(t.formattedRangeValueTo=e.target.value)}}})])]):t.modeYear||t.modeMonth||t.modeWeek||t.modeDate||t.modeDatetime?e("input",{directives:[{name:"model",rawName:"v-model",value:t.formattedValue,expression:"formattedValue"}],class:t.singleInputClass,style:t.inputStyle,attrs:{id:t.id,type:"text",placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,autocomplete:"off"},domProps:{value:t.formattedValue},on:{click:function(e){return t.open()},input:function(e){e.target.composing||(t.formattedValue=e.target.value)}}}):t._e()]:t._e(),t.renderButton?e("button",{class:t.buttonClass,style:t.buttonStyle,on:{click:function(e){return e.preventDefault(),t.open()}}},[t._v(" "+t._s(t.modeDate||t.modeDatetime?t.bundle.id_10780:t.bundle.id_10067)+" ")]):t._e(),e("transition",{attrs:{name:"slide-fade-from-corner"}},[e("div",{staticClass:"w-100-lt-md",style:(t.positionAbsolute?"left: 0; position: absolute; z-index: 2;":"")+"width: "+t.width+";"},[t.positionRelative||t.isOpen?e("div",{class:{"card shadow mx-2":t.positionAbsolute}},[e("div",{class:{"card-body":t.positionAbsolute}},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col"},[e("div",{staticClass:"row text-center mb-3",class:{"mt-3":t.positionRelative}},[e("div",{staticClass:"col-auto"},[e("button",{staticClass:"btn btn-text",on:{click:function(e){return e.preventDefault(),t.previous()}}},[e("i",{staticClass:"fal fa-chevron-left"})])]),e("div",{staticClass:"col"},[t.pickWeek||t.pickDate?e("button",{staticClass:"btn btn-text",on:{click:function(e){e.preventDefault(),t.active.month=null}}},[e("b",[t.months[t.active.month-1]?[t._v(t._s(t.months[t.active.month-1].name))]:t._e(),t._v(" "+t._s(t.active.year)+" ")],2)]):t.pickMonth?e("button",{staticClass:"btn btn-text",on:{click:function(e){e.preventDefault(),t.active.year=null,t.active.month=null}}},[e("b",[t._v(t._s(t.active.year))])]):t._e()]),e("div",{staticClass:"col-auto"},[e("button",{staticClass:"btn btn-text",on:{click:function(e){return e.preventDefault(),t.next()}}},[e("i",{staticClass:"fal fa-chevron-right"})])])]),e("div",{staticClass:"text-center mb-3"},[t.pickDate?e("table",{staticClass:"w-100"},[e("thead",{staticClass:"text-muted"},[e("tr",[t.showWeeks?e("td"):t._e(),t._l(t.weekdays,(function(i,n){return e("td",{key:"weekday"+n,attrs:{title:i.name}},[e("b",[t._v(t._s(i.abbreviation))])])}))],2)]),e("tbody",t._l(t.weeks,(function(i,n){return e("tr",{key:"week"+n},[t.showWeeks?e("td",{staticClass:"text-start text-muted pe-3"},[e("small",[t._v(t._s(i.week))])]):t._e(),t._l(i.weekdays,(function(i,n){return e("td",{key:"weekday"+n,staticStyle:{position:"relative"}},[i.active||t.showAdjacentMonths?e("button",{staticClass:"p-1 mb-2 btn",class:{"btn-primary":i.picked,"btn-outline-primary":!i.picked&&i.current&&t.showCurrent,"btn-text":!i.picked&&!i.current},staticStyle:{"border-radius":"50% !important",width:"2rem !important",height:"2rem !important"},style:(i.active&&!i.disabled?"":"opacity: 0.25;")+(i.unselectable&&!i.picked?"text-decoration: line-through;":"")+(1==i.events?"font-weight: 900;":""),attrs:{disabled:i.disabled},on:{click:function(e){e.preventDefault(),i.unselectable&&!i.picked?t.showUnselectableReason():i.previous?t.previous():i.next?t.next():t.pick(i.year,i.month,i.date)}}},[t._v(t._s(i.date)+" ")]):t._e(),i.events&&i.events.length?e("span",{staticStyle:{position:"absolute","text-align":"center",width:"100%",left:"0",bottom:"0.25rem",height:"0.5rem","line-height":"0"}},t._l(i.events,(function(t,i){return e("span",{key:"event"+i,staticStyle:{width:"0.5rem",height:"0.5rem",display:"inline-block","border-radius":"50%",margin:"0 0.0625rem 0.0625rem 0.0625rem"},style:"background-color: "+t+";"})})),0):t._e()])}))],2)})),0)]):t.pickWeek?e("div",{staticClass:"row"},[e("div",{staticClass:"col"},t._l(t.weeks,(function(i,n){return e("div",{key:"week"+n},[e("button",{staticClass:"btn w-100",class:{"btn-primary":t.modeWeek&&t.isPicked(i.weekdays[0].year,i.weekdays[0].month,i.weekdays[0].date),"btn-text":!t.modeWeek||!t.isPicked(i.weekdays[0].year,i.weekdays[0].month,i.weekdays[0].date)},on:{click:function(e){return e.preventDefault(),t.pick(i.weekdays[0].year,i.weekdays[0].month,i.weekdays[0].date)}}},[e("strong",[t._v(t._s(t.bundle.id_12017.replace("{0}",i.week)))]),e("small",{staticClass:"d-block"},[e("formatted-date",{attrs:{value:i.weekdays[0].dateTime,format:t.dateFormat,locale:t.locale}}),e("i",{staticClass:"fal fa-arrow-right mx-1"}),e("formatted-date",{attrs:{value:i.weekdays[i.weekdays.length-1].dateTime,format:t.dateFormat,locale:t.locale}})],1)])])})),0)]):t.pickMonth?e("div",{staticClass:"row"},t._l(t.toCols(2,t.months),(function(i,n){return e("div",{key:"c
8ol"+n,staticClass:"col-6"},[t._l(i,(function(i,n){return e("button",{key:"month"+n,staticClass:"btn w-100",class:{"btn-primary":t.modeMonth&&t.isPicked(t.active.year,i.number,1),"btn-text":!t.modeMonth||!t.isPicked(t.active.year,i.number,1)},on:{click:function(e){e.preventDefault(),t.modeMonth?t.pick(t.active.year,i.number,1):t.active.month=i.number}}},[t._v(t._s(i.name)+" ")])})),e("br")],2)})),0):t.pickYear?e("div",{staticClass:"row"},t._l(t.toCols(3,t.years),(function(i,n){return e("div",{key:"col"+n,staticClass:"col-4"},[t._l(i,(function(i,n){return e("button",{key:"year"+n,staticClass:"btn w-100",class:{"btn-primary":t.modeYear&&t.isPicked(i,1,1),"btn-text":!t.modeYear||!t.isPicked(i,1,1)},on:{click:function(e){e.preventDefault(),t.modeYear?t.pick(i,1,1):t.active.year=i}}},[t._v(t._s(i)+" ")])})),e("br")],2)})),0):t._e()])]),t.modeDatetime?e("div",{staticClass:"col d-flex"},[e("table",{staticClass:"text-center mx-auto align-self-center",staticStyle:{width:"0","font-size":"2rem","line-height":"1rem"}},[e("thead",[e("tr",[e("td",{staticStyle:{width:"50%"}},[e("button",{staticClass:"btn btn-text",staticStyle:{"font-size":"2rem","line-height":"1rem"},on:{click:function(e){return e.preventDefault(),t.hoursUp()}}},[e("i",{staticClass:"fal fa-chevron-up"})])]),e("td",{staticStyle:{width:"0"}}),e("td",{staticStyle:{width:"50%"}},[e("button",{staticClass:"btn btn-text",staticStyle:{"font-size":"2rem","line-height":"1rem"},on:{click:function(e){return e.preventDefault(),t.minutesUp()}}},[e("i",{staticClass:"fal fa-chevron-up"})])]),12==t.hourFormat?e("td"):t._e()])]),e("tfoot",[e("tr",[e("td",[e("button",{staticClass:"btn btn-text",staticStyle:{"font-size":"2rem","line-height":"1rem"},on:{click:function(e){return e.preventDefault(),t.hoursDown()}}},[e("i",{staticClass:"fal fa-chevron-down"})])]),e("td"),e("td",[e("button",{staticClass:"btn btn-text",staticStyle:{"font-size":"2rem","line-height":"1rem"},on:{click:function(e){return e.preventDefault(),t.minutesDown()}}},[e("i",{staticClass:"fal fa-chevron-down"})])]),12==t.hourFormat?e("td"):t._e()])]),e("tbody",[e("tr",[e("td",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalHourValue,expression:"internalHourValue"}],staticClass:"form-control border-0 text-center",staticStyle:{"font-size":"2rem","min-width":"5rem"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.internalHourValue=e.target.multiple?i:i[0]}}},t._l(t.hourFormat,(function(i){return e("option",{key:"hour"+i,domProps:{value:12==t.hourFormat?i:i-1}},[t._v(" "+t._s(t.zeroPad(12==t.hourFormat?i:i-1,2))+" ")])})),0)]),e("td",[t._v(":")]),e("td",[e("select",{directives:[{name:"model",rawName:"v-model",value:t.internalMinuteValue,expression:"internalMinuteValue"}],staticClass:"form-control border-0 text-center",staticStyle:{"font-size":"2rem","min-width":"5rem"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.internalMinuteValue=e.target.multiple?i:i[0]}}},t._l(60,(function(i){return e("option",{key:"minute"+i,domProps:{value:i-1}},[t._v(" "+t._s(t.zeroPad(i-1,2))+" ")])})),0)]),12==t.hourFormat?e("td",[e("button",{staticClass:"btn btn-text",staticStyle:{"font-size":"2rem","min-width":"5rem"},on:{click:function(e){return e.preventDefault(),t.toggleAmPm()}}},[t._v(t._s(t.am?"AM":"PM")+" ")])]):t._e()])])])]):t._e()]),t.immediate&&t.positionAbsolute?e("div",{staticClass:"text-end mt-3"},[e("button",{staticClass:"btn btn-outline-primary ms-2",on:{click:function(e){return e.preventDefault(),t.close()}}},[t._v(t._s(t.bundle.id_9822))])]):t.positionAbsolute?e("div",{staticClass:"text-end mt-3"},[e("button",{staticClass:"btn btn-primary",on:{click:function(e){return e.preventDefault(),t.ok()}}},[t._v(t._s(t.bundle.id_9221))]),e("button",{staticClass:"btn btn-outline-primary ms-2",on:{click:function(e){return e.preventDefault(),t.close()}}},[t._v(t._s(t.bundle.id_9108))])]):t._e()])]):t._e()])])],2),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},Bo=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-none d-sm-block col-sm-auto"},[e("div",{staticClass:"form-control bg-transparent px-0",staticStyle:{"border-color":"transparent !important"}},[e("i",{staticClass:"fal fa-arrow-right"})])])}],Vo={install(t){var e=function(){const t=(t,e)=>{const i={};if(t&&e)for(let n=0;n<t.length;n++){const r=t[n];let o=i;for(let t=0;t<e.length;t++){const i=e[t];let n;if(Array.isArray(i)){let t=r;for(let e=0;e<i.length;e++)void 0!=t&&null!=t&&(t=t[i[e]]);n=t}else n=r[i];if(void 0!=n&&null!=n){if(!Object.prototype.hasOwnProperty.call(o,n)){const i=t+1==e.length;o[n]=i?r:{}}o=o[n]}}}return i};return{mapArrayOfUniqueObjects:t}};t.$util=new e}},$o=Vo,jo=Fr($o,_o,wo,!1,null,null,null),Wo=jo.exports;a().use(to),a().use(Wo);var Ho={name:"input-date",components:{FormattedDate:ao},props:{id:{type:String,required:!0},value:{type:[Array,Date,Object]},errors:{type:Array}
8,label:{type:[String,Array],validator:function(t){if(t&&Array.isArray(t))for(var e=0;e<t.length;e++){var i=t[e];if(i&&"string"!=typeof i)return!1}return!0}},placeholder:{type:[String,Array],validator:function(t){if(t&&Array.isArray(t))for(var e=0;e<t.length;e++){var i=t[e];if(i&&"string"!=typeof i)return!1}return!0}},mode:{type:String,default:"date",validator:function(t){return-1!==["year","month","week","date","datetime","range","multiple"].indexOf(t)}},firstWeekday:{type:Number,default:1,validator:function(t){return t>=1&&t<=7}},hourFormat:{type:Number,default:24,validator:function(t){return-1!==[12,24].indexOf(t)}},convertInput:{type:Function},convertOutput:{type:Function},inputFormat:{type:String,default:"yyyy-MM-dd HH:mm"},dateFormat:{type:String,default:"yyyy-MM-dd"},timeFormat:{type:String,default:"HH:mm"},getAsString:{type:Function,default:function(t){return a().$datetimeUtil.getAsString(t,this.inputFormat,this.datetimeUtilOptions)}},getAsDate:{type:Function,default:function(t){return a().$datetimeUtil.getAsDate(t,this.inputFormat,this.datetimeUtilOptions)}},immediate:{type:Boolean,default:!0},disabledDate:{type:Function},unselectableDate:{type:Function},unselectableReason:{type:String},initialPicker:{type:String,default:"date",validator:function(t){return-1!==["year","month","week","date"].indexOf(t)}},events:{type:Function},required:{type:Boolean},disabled:{type:Boolean},width:{type:String,default:"400px"},showCurrent:{type:Boolean,default:!0},showAdjacentMonths:{type:Boolean,default:!1},showWeeks:{type:Boolean,default:!0},render:{type:String,default:"input",validator:function(t){return-1!==["button","input","nothing"].indexOf(t)}},buttonStyle:{type:String},buttonClass:{type:String,default:"btn btn-primary"},inputStyle:{type:String},inputClass:{type:String,default:"form-control"},readonly:{type:Boolean,default:!1},position:{type:String,default:"absolute",validator:function(t){return-1!==["absolute","relative"].indexOf(t)}},locale:{type:String,default:"en"}},data:function(){var t=Ar.now(),e="year"==this.initialPicker||"year"==this.mode,i=e||"month"==this.initialPicker||"month"==this.mode;return{bundle:{id_10780:"Select Date",id_10067:"Select Dates",id_9822:"Done",id_9108:"Cancel",id_9221:"OK",id_12017:"Week {0}"},current:{year:t.year,month:t.month,date:t.day},active:{year:e?null:t.year,month:i?null:t.month},picked:null,paginationYear:t.year,paginationYearSize:36,yearMin:1e3,yearMax:9999,isOpen:!1,rangeFromFocus:!1,rangeToFocus:!1}},mounted(){this.popupItem=this.$el},created:function(){var t=this;a().$bundle("portal",t.bundle,(function(e){t.bundle=e})),document.addEventListener("keydown",t.keydownListener)},destroyed:function(){document.removeEventListener("keydown",this.keydownListener)},computed:{convertedValue:{get:function(){var t=this.value;return this.convertInput&&(t=this.convertInput(t)),t},set:function(t){var e=t;this.convertOutput&&(e=this.convertOutput(e)),this.$emit("input",e)}},formattedValue:{get:function(){if(this.modeMultiple||this.modeRange){var t=[];if(Array.isArray(this.internalValue))for(var e=0;e<this.internalValue.length;e++)t.push(this.getAsString(this.internalValue[e]));return t}return this.getAsString(this.internalValue)},set:function(t){if(!t||this.isValidStringDate(t)){var e=t?this.getAsDate(t):null;this.immediate?this.convertedValue=e:this.internalValue=e,e&&this.setActive(e.year,e.month)}}},formattedRangeValueFrom:{get:function(){return this.formattedValue[0]},set:function(t){if(!t||this.isValidStringDate(t)){var e=t?this.getAsDate(t):null,i=this.internalValue&&Array.isArray(this.internalValue)?this.internalValue[1]:null;a().$datetimeUtil.isAfterDate(e,i)&&this.reversedFocus();var n=[e,i];n.sort(a().$datetimeUtil.compareDates),this.immediate?this.convertedValue=n:this.internalValue=n,e&&this.setActive(e.year,e.month)}}},formattedRangeValueTo:{get:function(){return this.formattedValue[1]},set:function(t){if(!t||this.isValidStringDate(t)){var e=this.internalValue&&Array.isArray(this.internalValue)?this.internalValue[0]:null,i=t?this.getAsDate(t):null;a().$datetimeUtil.isAfterDate(e,i)&&this.reversedFocus();var n=[e,i];n.sort(a().$datetimeUtil.compareDates),this.immediate?this.convertedValue=n:this.internalValue=n,i&&this.setActive(i.year,i.month)}}},internalValue:{get:function(){return this.immediate||this.positionRelative?this.convertedValue:this.picked},set:function(t){this.immediate||this.positionRelative?this.convertedValue=t:this.picked=t}},internalHourValue:{get:function(){var t=this.internalValue&&this.internalValue instanceof Date?this.internalValue.hour:0;return this.formatHour(t)},set:function(t){if(this.internalValue&&this.internalValue instanceof Date&&this.validHours(t)){var e=this.copyDate(this.internalValue);e.setHours(this.unFormatHour(t)),this.internalValue=e}}},internalMinuteValue:{get:function(){return this.internalValue&&this.internalValue instanceof Date?this.internalValue.minute:0}
8,set:function(t){if(this.internalValue&&this.internalValue instanceof Date&&this.validMinutes(t)){var e=this.copyDate(this.internalValue);e.setMinutes(t),this.internalValue=e}}},valueMap:function(){return this.internalValue?a().$util.mapArrayOfUniqueObjects(Array.isArray(this.internalValue)?this.internalValue:[this.internalValue],["year","month","day"]):{}},help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0},modeMultiple:function(){return"multiple"==this.mode},modeRange:function(){return"range"==this.mode},modeYear:function(){return"year"==this.mode},modeMonth:function(){return"month"==this.mode},modeWeek:function(){return"week"==this.mode},modeDate:function(){return"date"==this.mode},modeDatetime:function(){return"datetime"==this.mode},years:function(){var t=[],e=this.paginationYear-this.paginationYearSizeBefore;e<this.yearMin&&(e=this.yearMin);for(var i=e;i<e+this.paginationYearSize&&i<=this.yearMax;i++)t.push(i);return t},weeks:function(){for(var t=this,e=[],i=Ar.local(t.active.year,t.active.month,1).plus({months:-1}),n=t.getLastDateOfMonth(i.year,i.month),r=Ar.local(t.active.year,t.active.month,1).plus({months:1}),o=1,s=1,l=a().$datetimeUtil.getWeekday(t.active.year,t.active.month,s,t.firstWeekday),u=t.getLastDateOfMonth(t.active.year,t.active.month),c=t.getWeeksInMonth(t.active.year,t.active.month),h=n-l+2,d="previous",f=0;f<c.length;f++){for(var p=c[f],g={week:p>0?p:a().$datetimeUtil.getWeekNumber(t.active.year-1,12,31,t.firstWeekday),weekdays:[]},m=0;m<t.weekdays.length;m++){var v=t.weekdays[m],y={weekday:v};switch("previous"==d?d=l==v.number?"active":"previous":"active"==d&&(d=s<=u?"active":"next"),d){case"previous":y.date=h,y.month=i.month,y.year=i.year,y.previous=!0,y.active=!1,y.next=!1,h++;break;case"active":y.date=s,y.month=t.active.month,y.year=t.active.year,y.previous=!1,y.active=!0,y.next=!1,s++;break;case"next":y.date=o,y.month=r.month,y.year=r.year,y.previous=!1,y.active=!1,y.next=!0,o++;break}var b=Ar.local(y.year,y.month,y.date);y.dateTime=b,y.picked=t.isPicked(y.year,y.month,y.date),y.current=a().$datetimeUtil.isSameDate(Ar.local(t.current.year,t.current.month,t.current.date),b),t.disabledDate&&(y.disabled=t.disabledDate(b,t.createCallbackObject(y.year,y.month,y.date,g.week,v.number,y.picked))),t.unselectableDate&&(y.unselectable=t.unselectableDate(b,t.createCallbackObject(y.year,y.month,y.date,g.week,v.number,y.picked))),t.events&&(y.events=t.events(b,t.createCallbackObject(y.year,y.month,y.date,g.week,v.number,y.picked))),g.weekdays.push(y)}e.push(g)}return e},weekdays:function(){for(var t=pn.weekdays("short",{locale:this.locale}),e=[],i=0;i<t.length;i++)e.push({abbreviation:this.cap(t[i])});this.firstWeekday>1&&Array.prototype.push.apply(e,e.splice(0,this.firstWeekday-1));for(var n=0;n<e.length;n++)e[n].number=n+1;return e},months:function(){for(var t=pn.months("long",{locale:this.locale}),e=[],i=0;i<t.length;i++)e.push({number:i+1,name:this.cap(t[i])});return e},pickYear:function(){return this.modeYear||null==this.active.year&&null==this.active.month},pickMonth:function(){return!this.pickYear&&this.modeMonth||null!=this.active.year&&null==this.active.month},pickWeek:function(){return!this.pickYear&&!this.pickMonth&&this.modeWeek&&null!=this.active.year&&null!=this.active.month},pickDate:function(){return!this.pickYear&&!this.pickMonth&&!this.pickWeek&&null!=this.active.year&&null!=this.active.month},positionAbsolute:function(){return"absolute"==this.position},positionRelative:function(){return"relative"==this.position},renderButton:function(){return"button"==this.render},renderInput:function(){return"input"==this.render},singleInputClass:function(){var t="";return this.inputClass&&(t+=this.inputClass+" "),this.invalid&&(t+="is-invalid "),t},fromInputClass:function(){var t="";return this.inputClass&&(t+=this.inputClass+" "),(this.positionRelative||this.isOpen)&&this.rangeFromFocus&&!this.rangeToFocus&&(t+="focus "),this.invalid&&(t+="is-invalid "),t},toInputClass:function(){var t="";return this.inputClass&&(t+=this.inputClass+" "),(this.positionRelative||this.isOpen)&&!this.rangeFromFocus&&this.rangeToFocus&&(t+="focus "),this.invalid&&(t+="is-invalid "),t},firstLabel:function(){return Array.isArray(this.label)?this.label[0]:this.label},secondLabel:function(){return Array.isArray(this.label)?this.label[1]:null},firstPlaceholder:function(){return Array.isArray(this.placeholder)?this.placeholder[0]:this.placeholder},secondPlaceholder:function(){return Array.isArray(this.placeholder)?this.placeholder[1]:this.placeholder},paginationYearSizeBefore:function(){return Math.floor(this.paginationYearSize/3)},paginationYearSizeAfter:function(){return Math.ceil(2*this.paginationYearSize/3)},am:function(){return!(this.internalValue&&this.internalValue instanceof Date)||this.internalValue.hour<12},datetimeUtilOptions:function(){return{includeTime:this.modeDatetime,hourFormat:this.hourFormat,locale:this.locale}}},methods:{setActive:function(t,e){this.active.year=t,this.active.month=e,this.setPaginationYear(t)},refreshActive:function(){if(this.convertedValue){if(this.convertedValue instanceof Date)this.setActive(this.convertedValue.year,this.convertedValue.month);else if((!this.rangeToFocus&&!this.rangeFromFocus||!this.modeRange)&&Array.isArray(this.convertedValue)&&this.convertedValue.length)for(var t=0;t<this.convertedValue.length;t++){var e=this.convertedValue[t];if(e&&e instanceof Date){this.setActive(e.year,e.month);break}}}else this.setActive(this.active.year?this.active.year:this.current.year,this.active.month?this.active.month:this.current.month)},refreshPicked:function(){this.convertedValue?Array.isArray(this.convertedValue)?this.picked=this.copyDateArray(this.convertedValue):this.convertedValue instanceof Date&&(this.picked=this.copyDate(this.convertedValue)):this.picked=null},open:function(t){this.isOpen||this.positionRelative||this.refreshActive(),this.refreshPicked(),this.rangeFromFocus="from"==t,this.rangeToFocus="to"==t,this.isOpen=!0},close:function(){this.refreshPicked(),this.isOpen=!1},ok:function(){var t=null;this.modeMultiple&&this.picked?this.picked.length>0&&(t=this.copyDateArray(this.picked)):this.modeRange&&this.picked?1==this.picked.length?t=[this.copyDate(this.picked[0]),this.copyDate(this.picked[0])]:2==this.picked.length&&(t=this.copyDateArray(this.picked)):(this.modeDate||this.modeDatetime)&&this.picked&&(t=this.copyDate(this.picked)),this.convertedValue=t,this.close()},copyDate:function(t){return t?this.modeDatetime?Ar.local(t.year,t.month,t.day,t.hour,t.minute,t.second):Ar.local(t.year,t.month,t.day):t},copyDateArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.copyDate(t[i]));return e},isValidStringDate:function(t){var e=this.getAsDate(t),i=this.getAsString(e);return i==t},keydownListener:function(t){27==t.keyCode&&this.close()},toCols:function(t,e){for(var i=Math.ceil(e.length/t),n=[],r=0;r<t;r++)n.push(e.slice(r*i,r*i+i));return n},getWeeksInMonth:function(t,e){for(var i=this.getLastDateOfMonth(t,e),n=[],r=1;r<=i;r+=7)n.push(a().$datetimeUtil.getWeekNumber(t,e,r,this.firstWeekday));var o=a().$datetimeUtil.getWeekNumber(t,e,i,this.firstWeekday);return n[n.length-1]!=o&&n.push(o),n},getLastDateOfMonth:function(t,e){return Ar.local(t,e,1).plus({months:1}).plus({days:-1}).day},next:function(){var t;this.pickDate||this.pickWeek?(t=Ar.local(this.active.year,this.active.month,1).plus({months:1}),t.year<=this.yearMax&&(this.active.year=t.year,this.active.month=t.month)):this.pickMonth?(t=Ar.local(this.active.year,1,1).plus({years:1}),t.year<=this.yearMax&&(this.active.year=t.year)):this.pickYear&&this.setPaginationYear(this.paginationYear+this.paginationYearSize)},previous:function(){var t;this.pickDate||this.pickWeek?(t=Ar.local(this.active.year,this.active.month,1).plus({months:-1}),t.year>this.yearMin&&(this.active.year=t.year,this.active.month=t.month)):this.pickMonth?(t=Ar.local(this.active.year,1,1).plus({years:-1}),t.year>this.yearMin&&(this.active.year=t.year)):this.pickYear&&this.setPaginationYear(this.paginationYear-this.paginationYearSize)},hoursUp:function(){if(this.internalValue&&this.internalValue instanceof Date){var t=this.copyDate(this.internalValue),e=t.hour;t.setHours(e<23?e+1:0),this.internalValue=t}},hoursDown:function(){if(this.internalValue&&this.internalValue instanceof Date){var t=this.copyDate(this.internalValue),e=t.hour;t.setHours(e>0?e-1:23),this.internalValue=t}},minutesUp:function(){if(this.internalValue&&this.internalValue instanceof Date){var t=this.copyDate(this.internalValue),e=t.minute;t.setMinutes(e<55?e-e%5+5:0==e?55:0),this.internalValue=t}},minutesDown:function(){if(this.internalValue&&this.internalValue instanceof Date){var t=this.copyDate(this.internalValue),e=t.minute;t.setMinutes(e%5>0?e-e%5:0==e?55:e-5),this.internalValue=t}},formatHour:function(t){return null!=t&&12==this.hourFormat?t>12?t-12:0==t?12:t:t},unFormatHour:function(t){return null!=t&&12==this.hourFormat?12==t?this.am?0:12:this.am?t:12+t:t},toggleAmPm:function(){if(12==this.hourFormat&&this.internalValue&&this.internalValue instanceof Date){var t=this.copyDate(this.internalValue),e=t.hour;this.am?e+=12:e-=12,t.setHours(e),this.internalValue=t}},setPaginationYear:function(t){t<this.yearMin?this.paginationYear=this.yearMin:t>this.yearMax-this.paginationYearSizeAfter?this.paginationYear=1+this.yearMax-this.paginationYearSizeAfter:this.paginationYear=t}
8,pick:function(t,e,i){var n=Ar.local(t,e,i,this.internalValue&&this.internalValue instanceof Date?this.internalValue.hour:0,this.internalValue&&this.internalValue instanceof Date?this.internalValue.minute:0),r=this.internalValue;if(this.modeMultiple){r&&Array.isArray(r)||(r=[]);for(var o=!1,s=0;s<r.length;s++)if(a().$datetimeUtil.isSameDate(n,r[s])){o=!0,r.splice(s,1);break}o||(r.push(n),r.sort(a().$datetimeUtil.compareDates))}else if(this.modeRange){r&&Array.isArray(r)||(r=[]),r[0]=r[0]?r[0]:null,r[1]=r[1]?r[1]:null;var l=this.rangeToFocus?1:0,u=a().$datetimeUtil.isBeforeDate(n,r[0]),c=a().$datetimeUtil.isAfterDate(n,r[1]),h=1==l&&u||0==l&&c;h?r=[n,n]:r[l]=n,r.sort(a().$datetimeUtil.compareDates),this.rangeFromFocus=this.rangeToFocus,this.rangeToFocus=!this.rangeToFocus}else(this.modeYear||this.modeMonth||this.modeWeek||this.modeDate||this.modeDatetime)&&(r=n);this.internalValue=r},isPicked:function(t,e,i){var n=Ar.local(t,e,i);if(this.modeMultiple&&this.internalValue&&Array.isArray(this.internalValue)){if(this.valueMap&&this.valueMap[t]&&this.valueMap[t][e]&&this.valueMap[t][e][i])return!0}else if(this.modeRange&&this.internalValue&&Array.isArray(this.internalValue)){if(1==this.internalValue.length)return a().$datetimeUtil.isSameDate(n,this.internalValue[0]);if(2==this.internalValue.length){var r=this.internalValue[0],o=this.internalValue[1],s=[r,o];return s.sort(a().$datetimeUtil.compareDates),r=s[0],o=s[1],a().$datetimeUtil.isSameDate(n,r)||a().$datetimeUtil.isSameDate(n,o)||a().$datetimeUtil.isBeforeDate(n,o)&&a().$datetimeUtil.isAfterDate(n,r)}}else{if((this.modeDate||this.modeDatetime)&&this.internalValue)return a().$datetimeUtil.isSameDate(n,this.internalValue);if(this.modeWeek&&this.internalValue)return n.year===this.internalValue.year&&n.month===this.internalValue.month&&n.weekNumber==this.internalValue.weekNumber;if(this.modeMonth&&this.internalValue)return n.year===this.internalValue.year&&n.month===this.internalValue.month;if(this.modeYear&&this.internalValue)return n.year===this.internalValue.year}return!1},reversedFocus:function(){this.rangeFromFocus?this.$refs.to.focus():this.rangeToFocus&&this.$refs.from.focus()},zeroPad:function(t,e){var i=""+t;while(i.length<e)i="0"+i;return i},validHours:function(t){return t>=0&&t<this.hourFormat},validMinutes:function(t){return t>=0&&t<60},createCallbackObject:function(t,e,i,n,r,o){return{year:t,month:e,date:i,week:n,weekday:r,picked:o}},showUnselectableReason:function(){this.unselectableReason&&alert(this.unselectableReason)},cap:function(t){return t.substring(0,1).toUpperCase()+t.substring(1)}},watch:{rangeFromFocus:function(t){if(t&&this.modeRange){var e=this.internalValue[0];e&&this.setActive(e.year,e.month)}},rangeToFocus:function(t){if(t&&this.modeRange){var e=this.internalValue[1];e&&this.setActive(e.year,e.month)}},value:function(){this.refreshPicked()}}},Uo=Ho,qo=Fr(Uo,Fo,Bo,!1,null,null,null),Go=qo.exports,Yo=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group",class:{disabled:t.parseBoolean(t.disabled)}},[t.label?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",staticClass:"form-control",class:{"is-invalid":t.invalid},attrs:{id:t.id,type:"text",inputmode:"numeric",placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.parseBoolean(t.disabled)},domProps:{value:t.computedValue},on:{input:[function(e){e.target.composing||(t.computedValue=e.target.value)},t.handleInput],keyup:t.handleKeyup,keydown:t.handleKeydown,click:t.handleClick,contextmenu:t.handleContextmenu,focus:t.handleFocus,blur:t.handleBlur}}),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},Xo=[],Zo={name:"input-text",props:{id:{type:String,required:!0},value:{type:[Number,String]},locale:{type:String,default:"en-US"},decimalSeparator:{type:String,default:"."},groupingSeparator:{type:String,default:","},errors:{type:Array,default:null},label:{type:String,default:null},placeholder:{type:String,default:null},language:{type:String,default:null},required:{type:Boolean},maxlength:{type:Number,default:null},disabled:{type:Boolean}},data:function(){return{selectionStart:0,selectionEnd:0,decimals:!1,zeros:0}},computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0},computedValue:{get:function(){if(!this.value&&0!=this.value)return null;const t=this.value;let e=this.formatNumber(t);if(this.decimals&&-1==e.indexOf(this.decimalSeparator)){e+=this.decimalSeparator;for(let t=0;t<this.zeros;t++)e+="0"}return e},set:function(t){t=t.replace(/\s/g,"Â ");
8const e=this.decimalSeparator+"-",i=t.indexOf(e);if(-1!=i&&i==t.length-e.length&&(t=t.substring(0,i)+this.decimalSeparator+"00"),this.decimals=-1!=t.indexOf(this.decimalSeparator),this.decimals){this.zeros=0;for(let e=t.indexOf(this.decimalSeparator)+1;e<t.length;e++)"0"==t[e]&&this.zeros++}const n=this.$refs.input.selectionStart,r=this.$refs.input.selectionEnd,o=Math.max(n,r),a=t.replaceAll(this.groupingSeparator,""),s=a.replaceAll(this.decimalSeparator,"."),l=isNaN(s)?null:parseFloat(s);if(null==l)return void this.updateValue(t);let u=this.formatNumber(l);if(this.decimals&&-1==u.indexOf(this.decimalSeparator)){u+=this.decimalSeparator;for(let t=0;t<this.zeros;t++)u+="0"}let c=o;const h=this.selectionStart-n,d=u.length-t.length;c+=d,h>0&&d>0&&(c-=h),c<0&&(c=0),this.updateValue("0"+l),this.$nextTick((()=>{this.updateValue(l),this.$nextTick((()=>{this.$refs.input.selectionStart=c,this.$refs.input.selectionEnd=c,this.selectionStart=c,this.selectionEnd=c}))}))}}},methods:{formatNumber:function(t){return t.toLocaleString(this.locale,{decimal:this.decimalSeparator,groupingSeparator:this.groupingSeparator})},updateValue:function(t){this.$emit("input",t)},handleInput:function(){this.computedValueChange()},handleKeyup:function(t){this.computedValueChange(),this.$emit("keyup",t)},handleKeydown:function(t){this.computedValueChange(),this.$emit("keydown",t)},handleClick:function(t){this.computedValueChange(),this.$emit("click",t)},handleContextmenu:function(t){this.computedValueChange(),this.$emit("contextmenu",t)},handleFocus:function(t){this.computedValueChange(),this.$emit("focus",t)},handleBlur:function(t){this.computedValueChange(),this.$emit("blur",t)},computedValueChange:function(){this.selectionStart=this.$refs.input.selectionStart,this.selectionEnd=this.$refs.input.selectionEnd}}},Ko=Zo,Jo=Fr(Ko,Yo,Xo,!1,null,null,null),Qo=Jo.exports,ta=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[t.label?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("input",{ref:"input",staticClass:"form-control",class:{"is-invalid":t.invalid},attrs:{id:t.id,type:"password",placeholder:t.placeholder,maxlength:t.maxlength},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)}}}),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},ea=[],ia={name:"input-secret",computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0}},props:["id","value","errors","label","placeholder","language","required","maxlength"],methods:{updateValue:function(t){this.$emit("input",t)}}},na=ia,ra=Fr(na,ta,ea,!1,null,null,null),oa=ra.exports,aa=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[t.label?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+" "),t.required?e("i",{staticClass:"far fa-asterisk"}):t._e()]):t._e(),e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.close,expression:"close"}],class:{"is-invalid":t.invalid}},[e("div",{staticClass:"form-control",class:{focus:t.focus},staticStyle:{cursor:"text"},on:{click:function(e){return t.$refs.input.focus()}}},[e("div",{staticClass:"row g-0"},[t._l(t.computedInputIndex>=0?t.internalValue.slice(0,t.computedInputIndex):t.internalValue,(function(i,n){return e("div",{key:"pre"+n,staticClass:"col-auto align-self-center"},[e("button",{staticClass:"btn btn-sm btn-primary py-0 me-2 my-1",on:{click:function(e){return e.preventDefault(),t.remove(i)}}},[t._v(" "+t._s(t.objects?i[t.objectName]:i)),e("i",{staticClass:"ms-2 fal fa-times"})])])})),e("div",{staticClass:"col-auto align-self-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.term,expression:"term"}],ref:"input",staticClass:"form-control border-0 p-0 me-2",class:{"is-invalid":t.invalid},staticStyle:{"background-color":"transparent",outline:"none","box-shadow":"none",display:"inline-block",width:"auto"},attrs:{type:"text"},domProps:{value:t.term},on:{focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}
vendor: 29,573 bytes, line 8
8,keydown:t.inputKeydownListener,input:function(e){e.target.composing||(t.term=e.target.value)}}})]),t._l(t.computedInputIndex>=0?t.internalValue.slice(t.computedInputIndex):[],(function(i,n){return e("div",{key:"post"+n,staticClass:"col-auto align-self-center"},[e("button",{staticClass:"btn btn-sm btn-primary py-0 me-2 my-1",on:{click:function(e){return e.preventDefault(),t.remove(i)}}},[t._v(" "+t._s(t.objects?i[t.objectName]:i)),e("i",{staticClass:"ms-2 fal fa-times"})])])}))],2)]),e("div",{staticClass:"dropdown"},[e("ul",{staticClass:"dropdown-menu shadow",class:{show:t.loading||t.items.length},staticStyle:{position:"absolute",width:"100%"}},[t.loading?e("li",[t._m(0)]):t._l(t.items,(function(i,n){return e("li",{key:"item"+n},[e("a",{staticClass:"dropdown-item",class:{active:t.itemIndex==n},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.add(i)}}},[t._v(" "+t._s(t.objects?i[t.objectName]:i)+" ")])])}))],2)])]),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},sa=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"dropdown-item"},[e("i",{staticClass:"fa-loading-black-16"})])}];function la(t,e){return function(){return t.apply(e,arguments)}}const{toString:ua}=Object.prototype,{getPrototypeOf:ca}=Object,ha=(t=>e=>{const i=ua.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),da=t=>(t=t.toLowerCase(),e=>ha(e)===t),fa=t=>e=>typeof e===t,{isArray:pa}=Array,ga=fa("undefined");function ma(t){return null!==t&&!ga(t)&&null!==t.constructor&&!ga(t.constructor)&&_a(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const va=da("ArrayBuffer");function ya(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&va(t.buffer),e}const ba=fa("string"),_a=fa("function"),wa=fa("number"),xa=t=>null!==t&&"object"===typeof t,Sa=t=>!0===t||!1===t,Ca=t=>{if("object"!==ha(t))return!1;const e=ca(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ka=da("Date"),Ma=da("File"),Ta=da("Blob"),Da=da("FileList"),Ia=t=>xa(t)&&_a(t.pipe),Aa=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||_a(t.append)&&("formdata"===(e=ha(t))||"object"===e&&_a(t.toString)&&"[object FormData]"===t.toString()))},Oa=da("URLSearchParams"),Ea=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pa(t,e,{allOwnKeys:i=!1}={}){if(null===t||"undefined"===typeof t)return;let n,r;if("object"!==typeof t&&(t=[t]),pa(t))for(n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else{const r=i?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let a;for(n=0;n<o;n++)a=r[n],e.call(null,t[a],a,t)}}function La(t,e){e=e.toLowerCase();const i=Object.keys(t);let n,r=i.length;while(r-- >0)if(n=i[r],e===n.toLowerCase())return n;return null}const Ra=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),za=t=>!ga(t)&&t!==Ra;function Na(){const{caseless:t}=za(this)&&this||{},e={},i=(i,n)=>{const r=t&&La(e,n)||n;Ca(e[r])&&Ca(i)?e[r]=Na(e[r],i):Ca(i)?e[r]=Na({},i):pa(i)?e[r]=i.slice():e[r]=i};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&Pa(arguments[n],i);return e}const Fa=(t,e,i,{allOwnKeys:n}={})=>(Pa(e,((e,n)=>{i&&_a(e)?t[n]=la(e,i):t[n]=e}),{allOwnKeys:n}),t),Ba=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),Va=(t,e,i,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),i&&Object.assign(t.prototype,i)},$a=(t,e,i,n)=>{let r,o,a;const s={};if(e=e||{},null==t)return e;do{r=Object.getOwnPropertyNames(t),o=r.length;while(o-- >0)a=r[o],n&&!n(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==i&&ca(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e},ja=(t,e,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;const n=t.indexOf(e,i);return-1!==n&&n===i},Wa=t=>{if(!t)return null;if(pa(t))return t;let e=t.length;if(!wa(e))return null;const i=new Array(e);while(e-- >0)i[e]=t[e];return i},Ha=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&ca(Uint8Array)),Ua=(t,e)=>{const i=t&&t[Symbol.iterator],n=i.call(t);let r;while((r=n.next())&&!r.done){const i=r.value;e.call(t,i[0],i[1])}},qa=(t,e)=>{let i;const n=[];while(null!==(i=t.exec(e)))n.push(i);return n},Ga=da("HTMLFormElement"),Ya=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,i){return e.toUpperCase()+i})),Xa=(({hasOwnProperty:t})=>(e,i)=>t.call(e,i))(Object.prototype),Za=da("RegExp"),Ka=(t,e)=>{const i=Object.getOwnPropertyDescriptors(t),n={};Pa(i,((i,r)=>{let o;!1!==(o=e(i,r,t))&&(n[r]=o||i)})),Object.defineProperties(t,n)},Ja=t=>{Ka(t,((e,i)=>{if(_a(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;const n=t[i];_a(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")}))}))},Qa=(t,e)=>{const i={},n=t=>{t.forEach((t=>{i[t]=!0}))};return pa(t)?n(t):n(String(t).split(e)),i},ts=()=>{},es=(t,e)=>(t=+t,Number.isFinite(t)?t:e),is="abcdefghijklmnopqrstuvwxyz",ns="0123456789",rs={DIGIT:ns,ALPHA:is,ALPHA_DIGIT:is+is.toUpperCase()+ns},os=(t=16,e=rs.ALPHA_DIGIT)=>{let i="";const{length:n}=e;while(t--)i+=e[Math.random()*n|0];return i};function as(t){return!!(t&&_a(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])}const ss=t=>{const e=new Array(10),i=(t,n)=>{if(xa(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const r=pa(t)?[]:{};return Pa(t,((t,e)=>{const o=i(t,n+1);!ga(o)&&(r[e]=o)})),e[n]=void 0,r}}return t};return i(t,0)},ls=da("AsyncFunction"),us=t=>t&&(xa(t)||_a(t))&&_a(t.then)&&_a(t.catch);var cs={isArray:pa,isArrayBuffer:va,isBuffer:ma,isFormData:Aa,isArrayBufferView:ya,isString:ba,isNumber:wa,isBoolean:Sa,isObject:xa,isPlainObject:Ca,isUndefined:ga,isDate:ka,isFile:Ma,isBlob:Ta,isRegExp:Za,isFunction:_a,isStream:Ia,isURLSearchParams:Oa,isTypedArray:Ha,isFileList:Da,forEach:Pa,merge:Na,extend:Fa,trim:Ea,stripBOM:Ba,inherits:Va,toFlatObject:$a,kindOf:ha,kindOfTest:da,endsWith:ja,toArray:Wa,forEachEntry:Ua,matchAll:qa,isHTMLForm:Ga,hasOwnProperty:Xa,hasOwnProp:Xa,reduceDescriptors:Ka,freezeMethods:Ja,toObjectSet:Qa,toCamelCase:Ya,noop:ts,toFiniteNumber:es,findKey:La,global:Ra,isContextDefined:za,ALPHABET:rs,generateString:os,isSpecCompliantForm:as,toJSONObject:ss,isAsyncFn:ls,isThenable:us};function hs(t,e,i,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}cs.inherits(hs,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:cs.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ds=hs.prototype,fs={};["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((t=>{fs[t]={value:t}})),Object.defineProperties(hs,fs),Object.defineProperty(ds,"isAxiosError",{value:!0}),hs.from=(t,e,i,n,r,o)=>{const a=Object.create(ds);return cs.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),hs.call(a,t.message,e,i,n,r),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};var ps=hs,gs=null;function ms(t){return cs.isPlainObject(t)||cs.isArray(t)}function vs(t){return cs.endsWith(t,"[]")?t.slice(0,-2):t}function ys(t,e,i){return t?t.concat(e).map((function(t,e){return t=vs(t),!i&&e?"["+t+"]":t})).join(i?".":""):e}function bs(t){return cs.isArray(t)&&!t.some(ms)}const _s=cs.toFlatObject(cs,{},null,(function(t){return/^is[A-Z]/.test(t)}));function ws(t,e,i){if(!cs.isObject(t))throw new TypeError("target must be an object");e=e||new(gs||FormData),i=cs.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!cs.isUndefined(e[t])}));const n=i.metaTokens,r=i.visitor||c,o=i.dots,a=i.indexes,s=i.Blob||"undefined"!==typeof Blob&&Blob,l=s&&cs.isSpecCompliantForm(e);if(!cs.isFunction(r))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(cs.isDate(t))return t.toISOString();if(!l&&cs.isBlob(t))throw new ps("Blob is not supported. Use a Buffer instead.");return cs.isArrayBuffer(t)||cs.isTypedArray(t)?l&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,i,r){let s=t;if(t&&!r&&"object"===typeof t)if(cs.endsWith(i,"{}"))i=n?i:i.slice(0,-2),t=JSON.stringify(t);else if(cs.isArray(t)&&bs(t)||(cs.isFileList(t)||cs.endsWith(i,"[]"))&&(s=cs.toArray(t)))return i=vs(i),s.forEach((function(t,n){!cs.isUndefined(t)&&null!==t&&e.append(!0===a?ys([i],n,o):null===a?i:i+"[]",u(t))})),!1;return!!ms(t)||(e.append(ys(r,i,o),u(t)),!1)}const h=[],d=Object.assign(_s,{defaultVisitor:c,convertValue:u,isVisitable:ms});function f(t,i){if(!cs.isUndefined(t)){if(-1!==h.indexOf(t))throw Error("Circular reference detected in "+i.join("."));h.push(t),cs.forEach(t,(function(t,n){const o=!(cs.isUndefined(t)||null===t)&&r.call(e,t,cs.isString(n)?n.trim():n,i,d);!0===o&&f(t,i?i.concat(n):[n])})),h.pop()}}if(!cs.isObject(t))throw new TypeError("data must be an object");return f(t),e}var Ss=ws;function Cs(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function ks(t,e){this._pairs=[],t&&Ss(t,this,e)}const Ms=ks.prototype;Ms.append=function(t,e){this._pairs.push([t,e])},Ms.toString=function(t){const e=t?function(e){return t.call(this,e,Cs)}:Cs;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var Ts=ks;function Ds(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Is(t,e,i){if(!e)return t;const n=i&&i.encode||Ds,r=i&&i.serialize;let o;if(o=r?r(e,i):cs.isURLSearchParams(e)?e.toString():new Ts(e,i).toString(n),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}class As{constructor(){this.handlers=[]}use(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){cs.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}var Os=As,Es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ps="undefined"!==typeof URLSearchParams?URLSearchParams:Ts,Ls="undefined"!==typeof FormData?FormData:null,Rs="undefined"!==typeof Blob?Blob:null;const zs=(()=>{let t;return("undefined"===typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!==typeof window&&"undefined"!==typeof document)})(),Ns=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)();var Fs={isBrowser:!0,classes:{URLSearchParams:Ps,FormData:Ls,Blob:Rs},isStandardBrowserEnv:zs,isStandardBrowserWebWorkerEnv:Ns,protocols:["http","https","file","blob","url","data"]};function Bs(t,e){return Ss(t,new Fs.classes.URLSearchParams,Object.assign({visitor:function(t,e,i,n){return Fs.isNode&&cs.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function Vs(t){return cs.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}function $s(t){const e={},i=Object.keys(t);let n;const r=i.length;let o;for(n=0;n<r;n++)o=i[n],e[o]=t[o];return e}function js(t){function e(t,i,n,r){let o=t[r++];const a=Number.isFinite(+o),s=r>=t.length;if(o=!o&&cs.isArray(n)?n.length:o,s)return cs.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!a;n[o]&&cs.isObject(n[o])||(n[o]=[]);const l=e(t,i,n[o],r);return l&&cs.isArray(n[o])&&(n[o]=$s(n[o])),!a}if(cs.isFormData(t)&&cs.isFunction(t.entries)){const i={};return cs.forEachEntry(t,((t,n)=>{e(Vs(t),n,i,0)})),i}return null}var Ws=js;function Hs(t,e,i){if(cs.isString(t))try{return(e||JSON.parse)(t),cs.trim(t)}catch(Mp){if("SyntaxError"!==Mp.name)throw Mp}return(i||JSON.stringify)(t)}const Us={transitional:Es,adapter:["xhr","http"],transformRequest:[function(t,e){const i=e.getContentType()||"",n=i.indexOf("application/json")>-1,r=cs.isObject(t);r&&cs.isHTMLForm(t)&&(t=new FormData(t));const o=cs.isFormData(t);if(o)return n&&n?JSON.stringify(Ws(t)):t;if(cs.isArrayBuffer(t)||cs.isBuffer(t)||cs.isStream(t)||cs.isFile(t)||cs.isBlob(t))return t;if(cs.isArrayBufferView(t))return t.buffer;if(cs.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Bs(t,this.formSerializer).toString();if((a=cs.isFileList(t))||i.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ss(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||n?(e.setContentType("application/json",!1),Hs(t)):t}],transformResponse:[function(t){const e=this.transitional||Us.transitional,i=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&cs.isString(t)&&(i&&!this.responseType||n)){const i=e&&e.silentJSONParsing,r=!i&&n;try{return JSON.parse(t)}catch(Mp){if(r){if("SyntaxError"===Mp.name)throw ps.from(Mp,ps.ERR_BAD_RESPONSE,this,null,this.response);throw Mp}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fs.classes.FormData,Blob:Fs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};cs.forEach(["delete","get","head","post","put","patch"],(t=>{Us.headers[t]={}}));var qs=Us;const Gs=cs.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 Ys=t=>{const e={};let i,n,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),i=t.substring(0,r).trim().toLowerCase(),n=t.substring(r+1).trim(),!i||e[i]&&Gs[i]||("set-cookie"===i?e[i]?e[i].push(n):e[i]=[n]:e[i]=e[i]?e[i]+", "+n:n)})),e};const Xs=Symbol("internals");function Zs(t){return t&&String(t).trim().toLowerCase()}function Ks(t){return!1===t||null==t?t:cs.isArray(t)?t.map(Ks):String(t)}function Js(t){const e=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=i.exec(t))e[n[1]]=n[2];return e}const Qs=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function tl(t,e,i,n,r){return cs.isFunction(n)?n.call(this,e,i):(r&&(e=i),cs.isString(e)?cs.isString(n)?-1!==e.indexOf(n):cs.isRegExp(n)?n.test(e):void 0:void 0)}function el(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,i)=>e.toUpperCase()+i))}function il(t,e){const i=cs.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+i,{value:function(t,i,r){return this[n].call(this,e,t,i,r)},configurable:!0})}))}class nl{constructor(t){t&&this.set(t)}set(t,e,i){const n=this;function r(t,e,i){const r=Zs(e);if(!r)throw new Error("header name must be a non-empty string");const o=cs.findKey(n,r);(!o||void 0===n[o]||!0===i||void 0===i&&!1!==n[o])&&(n[o||e]=Ks(t))}const o=(t,e)=>cs.forEach(t,((t,i)=>r(t,i,e)));return cs.isPlainObject(t)||t instanceof this.constructor?o(t,e):cs.isString(t)&&(t=t.trim())&&!Qs(t)?o(Ys(t),e):null!=t&&r(e,t,i),this}get(t,e){if(t=Zs(t),t){const i=cs.findKey(this,t);if(i){const t=this[i];if(!e)return t;if(!0===e)return Js(t);if(cs.isFunction(e))return e.call(this,t,i);if(cs.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Zs(t),t){const i=cs.findKey(this,t);return!(!i||void 0===this[i]||e&&!tl(this,this[i],i,e))}return!1}delete(t,e){const i=this;let n=!1;function r(t){if(t=Zs(t),t){const r=cs.findKey(i,t);!r||e&&!tl(i,i[r],r,e)||(delete i[r],n=!0)}}return cs.isArray(t)?t.forEach(r):r(t),n}clear(t){const e=Object.keys(this);let i=e.length,n=!1;while(i--){const r=e[i];t&&!tl(this,this[r],r,t,!0)||(delete this[r],n=!0)}return n}normalize(t){const e=this,i={};return cs.forEach(this,((n,r)=>{const o=cs.findKey(i,r);if(o)return e[o]=Ks(n),void delete e[r];const a=t?el(r):String(r).trim();a!==r&&delete e[r],e[a]=Ks(n),i[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return cs.forEach(this,((i,n)=>{null!=i&&!1!==i&&(e[n]=t&&cs.isArray(i)?i.join(", "):i)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const i=new this(t);return e.forEach((t=>i.set(t))),i}static accessor(t){const e=this[Xs]=this[Xs]={accessors:{}},i=e.accessors,n=this.prototype;function r(t){const e=Zs(t);i[e]||(il(n,t),i[e]=!0)}return cs.isArray(t)?t.forEach(r):r(t),this}}nl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),cs.reduceDescriptors(nl.prototype,(({value:t},e)=>{let i=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[i]=t}}})),cs.freezeMethods(nl);var rl=nl;function ol(t,e){const i=this||qs,n=e||i,r=rl.from(n.headers);let o=n.data;return cs.forEach(t,(function(t){o=t.call(i,o,r.normalize(),e?e.status:void 0)})),r.normalize(),o}function al(t){return!(!t||!t.__CANCEL__)}function sl(t,e,i){ps.call(this,null==t?"canceled":t,ps.ERR_CANCELED,e,i),this.name="CanceledError"}cs.inherits(sl,ps,{__CANCEL__:!0});var ll=sl;function ul(t,e,i){const n=i.config.validateStatus;i.status&&n&&!n(i.status)?e(new ps("Request failed with status code "+i.status,[ps.ERR_BAD_REQUEST,ps.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):t(i)}var cl=Fs.isStandardBrowserEnv?function(){return{write:function(t,e,i,n,r,o){const a=[];a.push(t+"="+encodeURIComponent(e)),cs.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),cs.isString(n)&&a.push("path="+n),cs.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function hl(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function dl(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function fl(t,e){return t&&!hl(e)?dl(t,e):e}var pl=Fs.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let i;function n(i){let n=i;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return i=n(window.location.href),function(t){const e=cs.isString(t)?n(t):t;return e.protocol===i.protocol&&e.host===i.host}}():function(){return function(){return!0}}();function gl(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ml(t,e){t=t||10;const i=new Array(t),n=new Array(t);let r,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),u=n[a];r||(r=l),i[o]=s,n[o]=l;let c=a,h=0;while(c!==o)h+=i[c++],c%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),l-r<e)return;const d=u&&l-u;return d?Math.round(1e3*h/d):void 0}}var vl=ml;function yl(t,e){let i=0;const n=vl(50,250);return r=>{const o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-i,l=n(s),u=o<=a;i=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:r};c[e?"download":"upload"]=!0,t(c)}}const bl="undefined"!==typeof XMLHttpRequest;var _l=bl&&function(t){return new Promise((function(e,i){let n=t.data;const r=rl.from(t.headers).normalize(),o=t.responseType;let a,s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}cs.isFormData(n)&&(Fs.isStandardBrowserEnv||Fs.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.getContentType(/^\s*multipart\/form-data/)?cs.isString(s=r.getContentType())&&r.setContentType(s.replace(/^\s*(multipart\/form-data);+/,"$1")):r.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",i=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";r.set("Authorization","Basic "+btoa(e+":"+i))}const c=fl(t.baseURL,t.url);function h(){if(!u)return;const n=rl.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),r=o&&"text"!==o&&"json"!==o?u.response:u.responseText,a={data:r,status:u.status,statusText:u.statusText,headers:n,config:t,request:u};ul((function(t){e(t),l()}),(function(t){i(t),l()}),a),u=null}if(u.open(t.method.toUpperCase(),Is(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(h)},u.onabort=function(){u&&(i(new ps("Request aborted",ps.ECONNABORTED,t,u)),u=null)},u.onerror=function(){i(new ps("Network Error",ps.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||Es;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(new ps(e,n.clarifyTimeoutError?ps.ETIMEDOUT:ps.ECONNABORTED,t,u)),u=null},Fs.isStandardBrowserEnv){const e=(t.withCredentials||pl(c))&&t.xsrfCookieName&&cl.read(t.xsrfCookieName);e&&r.set(t.xsrfHeaderName,e)}void 0===n&&r.setContentType(null),"setRequestHeader"in u&&cs.forEach(r.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),cs.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&"json"!==o&&(u.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&u.addEventListener("progress",yl(t.onDownloadProgress,!0)),"function"===typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",yl(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(i(!e||e.type?new ll(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const d=gl(c);d&&-1===Fs.protocols.indexOf(d)?i(new ps("Unsupported protocol "+d+":",ps.ERR_BAD_REQUEST,t)):u.send(n||null)}))};const wl={http:gs,xhr:_l};cs.forEach(wl,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(Mp){}Object.defineProperty(t,"adapterName",{value:e})}}));const xl=t=>`- ${t}`,Sl=t=>cs.isFunction(t)||null===t||!1===t;var Cl={getAdapter:t=>{t=cs.isArray(t)?t:[t];const{length:e}=t;let i,n;const r={};for(let o=0;o<e;o++){let e;if(i=t[o],n=i,!Sl(i)&&(n=wl[(e=String(i)).toLowerCase()],void 0===n))throw new ps(`Unknown adapter '${e}'`);if(n)break;r[e||"#"+o]=n}if(!n){const t=Object.entries(r).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let i=e?t.length>1?"since :\n"+t.map(xl).join("\n"):" "+xl(t[0]):"as no adapter specified";throw new ps("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:wl};function kl(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ll(null,t)}function Ml(t){kl(t),t.headers=rl.from(t.headers),t.data=ol.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=Cl.getAdapter(t.adapter||qs.adapter);return e(t).then((function(e){return kl(t),e.data=ol.call(t,t.transformResponse,e),e.headers=rl.from(e.headers),e}),(function(e){return al(e)||(kl(t),e&&e.response&&(e.response.data=ol.call(t,t.transformResponse,e.response),e.response.headers=rl.from(e.response.headers))),Promise.reject(e)}))}const Tl=t=>t instanceof rl?t.toJSON():t;function Dl(t,e){e=e||{};const i={};function n(t,e,i){return cs.isPlainObject(t)&&cs.isPlainObject(e)?cs.merge.call({caseless:i},t,e):cs.isPlainObject(e)?cs.merge({},e):cs.isArray(e)?e.slice():e}function r(t,e,i){return cs.isUndefined(e)?cs.isUndefined(t)?void 0:n(void 0,t,i):n(t,e,i)}function o(t,e){if(!cs.isUndefined(e))return n(void 0,e)}function a(t,e){return cs.isUndefined(e)?cs.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function s(i,r,o){return o in e?n(i,r):o in t?n(void 0,i):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials: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:(t,e)=>r(Tl(t),Tl(e),!0)};return cs.forEach(Object.keys(Object.assign({},t,e)),(function(n){const o=l[n]||r,a=o(t[n],e[n],n);cs.isUndefined(a)&&o!==s||(i[n]=a)})),i}const Il="1.5.1",Al={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Al[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}}));const Ol={};function El(t,e,i){if("object"!==typeof t)throw new ps("options must be an object",ps.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let r=n.length;while(r-- >0){const o=n[r],a=e[o];if(a){const e=t[o],i=void 0===e||a(e,o,t);if(!0!==i)throw new ps("option "+o+" must be "+i,ps.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new ps("Unknown option "+o,ps.ERR_BAD_OPTION)}}Al.transitional=function(t,e,i){function n(t,e){return"[Axios v"+Il+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return(i,r,o)=>{if(!1===t)throw new ps(n(r," has been removed"+(e?" in "+e:"")),ps.ERR_DEPRECATED);return e&&!Ol[r]&&(Ol[r]=!0,console.warn(n(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,r,o)}};var Pl={assertOptions:El,validators:Al};const Ll=Pl.validators;class Rl{constructor(t){this.defaults=t,this.interceptors={request:new Os,response:new Os}}request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=Dl(this.defaults,e);const{transitional:i,paramsSerializer:n,headers:r}=e;void 0!==i&&Pl.assertOptions(i,{silentJSONParsing:Ll.transitional(Ll.boolean),forcedJSONParsing:Ll.transitional(Ll.boolean),clarifyTimeoutError:Ll.transitional(Ll.boolean)},!1),null!=n&&(cs.isFunction(n)?e.paramsSerializer={serialize:n}:Pl.assertOptions(n,{encode:Ll.function,serialize:Ll.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=r&&cs.merge(r.common,r[e.method]);r&&cs.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=rl.concat(o,r);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let c,h=0;if(!s){const t=[Ml.bind(this),void 0];t.unshift.apply(t,a),t.push.apply(t,l),c=t.length,u=Promise.resolve(e);while(h<c)u=u.then(t[h++],t[h++]);return u}c=a.length;let d=e;h=0;while(h<c){const t=a[h++],e=a[h++];try{d=t(d)}catch(f){e.call(this,f);break}}try{u=Ml.call(this,d)}catch(f){return Promise.reject(f)}h=0,c=l.length;while(h<c)u=u.then(l[h++],l[h++]);return u}getUri(t){t=Dl(this.defaults,t);const e=fl(t.baseURL,t.url);return Is(e,t.params,t.paramsSerializer)}}cs.forEach(["delete","get","head","options"],(function(t){Rl.prototype[t]=function(e,i){return this.request(Dl(i||{},{method:t,url:e,data:(i||{}).data}))}})),cs.forEach(["post","put","patch"],(function(t){function e(e){return function(i,n,r){return this.request(Dl(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}Rl.prototype[t]=e(),Rl.prototype[t+"Form"]=e(!0)}));var zl=Rl;class Nl{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const i=this;this.promise.then((t=>{if(!i._listeners)return;let e=i._listeners.length;while(e-- >0)i._listeners[e](t);i._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{i.subscribe(t),e=t})).then(t);return n.cancel=function(){i.unsubscribe(e)},n},t((function(t,n,r){i.reason||(i.reason=new ll(t,n,r),e(i.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new Nl((function(e){t=e}));return{token:e,cancel:t}}}var Fl=Nl;function Bl(t){return function(e){return t.apply(null,e)}}function Vl(t){return cs.isObject(t)&&!0===t.isAxiosError}const $l={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
8alContent: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($l).forEach((([t,e])=>{$l[e]=t}));var jl=$l;function Wl(t){const e=new zl(t),i=la(zl.prototype.request,e);return cs.extend(i,zl.prototype,e,{allOwnKeys:!0}),cs.extend(i,e,null,{allOwnKeys:!0}),i.create=function(e){return Wl(Dl(t,e))},i}const Hl=Wl(qs);Hl.Axios=zl,Hl.CanceledError=ll,Hl.CancelToken=Fl,Hl.isCancel=al,Hl.VERSION=Il,Hl.toFormData=Ss,Hl.AxiosError=ps,Hl.Cancel=Hl.CanceledError,Hl.all=function(t){return Promise.all(t)},Hl.spread=Bl,Hl.isAxiosError=Vl,Hl.mergeConfig=Dl,Hl.AxiosHeaders=rl,Hl.formToJSON=t=>Ws(cs.isHTMLForm(t)?new FormData(t):t),Hl.getAdapter=Cl.getAdapter,Hl.HttpStatusCode=jl,Hl.default=Hl;var Ul,ql,Gl,Yl,Xl,Zl,Kl,Jl,Ql,tu,eu,iu,nu,ru,ou=Hl,au={name:"input-tags",props:{id:{type:String,required:!0},value:{type:Array,required:!0},freeform:{type:Boolean,default:!1},objects:{type:Boolean,default:!1},objectId:{type:String,default:"id"},objectName:{type:String,default:"name"},termChanged:{type:Function},endpoint:{type:String},termParameter:{type:String,default:"term"},idParameter:{type:String,default:"id"},timeout:{type:Number,default:100},errors:{type:Array},label:{type:String},required:{type:Boolean}},data:function(){return{internalValue:[],focus:!1,term:"",inputIndex:null,loading:0,items:[],itemIndex:null,abortControllers:[]}},created:function(){document.addEventListener("keydown",this.globalKeydownListener)},destroyed:function(){document.removeEventListener("keydown",this.globalKeydownListener)},computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0},computedInputIndex:{get:function(){return null==this.inputIndex?this.internalValue.length:this.inputIndex},set:function(t){t<0?t=0:t>=this.internalValue.length&&(t=null),this.inputIndex=t}}},watch:{value:{immediate:!0,handler:function(t){var e=this;if(e.objects){t:for(var i=0;i<e.internalValue.length;i++){for(var n=0;n<t.length;n++)if(e.internalValue[i][e.objectId]==t[n])continue t;e.internalValue.splice(i,1),i--}var r=e.endpoint,o=new URLSearchParams;t:for(var a=0;a<t.length;a++){for(var s=0;s<e.internalValue.length;s++)if(t[a]==e.internalValue[s][e.objectId])continue t;o.append(e.objectId+"[]",t[a])}ou({url:r,method:"get",params:o}).then((function(t){for(var i=0;i<t.data.length;i++){var n=t.data[i];e.internalValue.push(n)}e.internalValue.sort((function(t,i){var n=e.value.indexOf(e.objects?t[e.objectId]:t),r=e.value.indexOf(e.objects?i[e.objectId]:i);return n<r?-1:n>r?1:0}))})).catch((function(t){console.log(t)}))}else e.internalValue=t}},term:function(t){"function"===typeof this.termChanged&&this.termChanged(t);for(var e=this.abortControllers.splice(0,this.abortControllers.length),i=0;i<e.length;i++)e[i].abort();this.loadItems()}},methods:{loadItems:function(){var t=this;t.loading++,t.items.splice(0,t.items.length);var e=new AbortController,i=encodeURIComponent(t.term),n=t.endpoint;n.endsWith("?"+t.termParameter+"=")||n.endsWith("&"+t.termParameter+"=")||(n+=-1==n.indexOf("?")?"?":"&",n+=t.termParameter+"="+i),setTimeout((function(){ou({signal:e.signal,url:n,method:"get"}).then((function(e){i==encodeURIComponent(t.term)&&e.data&&Array.isArray(e.data)&&(t.items=e.data)})).catch((function(t){console.log(t)})).then((function(){t.loading--}))}),t.timeout),this.abortControllers.push(e)},close:function(){this.computedInputIndex=null,this.items.length>0&&this.items.splice(0,this.items.length),this.itemIndex=null},reset:function(){this.term="",this.close()},add:function(t){if(t){this.remove(t);var e=this.value;
8this.objects?e.push(t[this.objectId]):e.push(t),this.updateValue(e),this.reset(),this.inputFocus()}},remove:function(t){if(t){for(var e=this.value,i=0;i<e.length;i++){var n=e[i],r=this.objects?t[this.objectId]:t;r==n&&(e.splice(i,1),i--)}this.updateValue(e)}},isCursorAtBeginning:function(){return 0==this.$refs.input.selectionStart&&0==this.$refs.input.selectionEnd},isCursorAtEnd:function(){var t=this.term.length;return this.$refs.input.selectionStart==t&&this.$refs.input.selectionEnd==t},inputFocus:function(){var t=this;t.$nextTick((function(){t.$refs.input.focus()}))},inputKeydownListener:function(t){if(37==t.keyCode&&this.isCursorAtBeginning())this.computedInputIndex--,this.inputFocus();else if(39==t.keyCode&&this.isCursorAtEnd())this.computedInputIndex++,this.inputFocus();else if(38==t.keyCode)this.items.length>0&&(this.itemIndex>0?this.itemIndex--:this.itemIndex=this.items.length-1);else if(40==t.keyCode)this.items.length>0&&(null!=this.itemIndex&&this.itemIndex<this.items.length-1?this.itemIndex++:this.itemIndex=0);else if(13==t.keyCode){if(null!=this.itemIndex&&this.items.length>this.itemIndex)this.add(this.items[this.itemIndex]);else if(this.term.trim().length>0)if(!this.objects&&this.freeform)this.add(this.term);else for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i&&(this.objects&&this.term.toLowerCase()==i[this.objectName].toLowerCase()||!this.objects&&this.term.toLowerCase()==i.toLowerCase())){this.add(i);break}}}else 8==t.keyCode&&this.computedInputIndex&&this.isCursorAtBeginning()?(this.computedInputIndex--,this.remove(this.internalValue[this.computedInputIndex]),this.inputFocus()):46==t.keyCode&&this.isCursorAtEnd()&&(this.remove(this.internalValue[this.computedInputIndex]),this.inputFocus())},globalKeydownListener:function(t){27==t.keyCode&&this.close()},updateValue:function(t){this.$emit("input",t)}}},su=au,lu=Fr(su,aa,sa,!1,null,null,null),uu=lu.exports,cu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group",class:{disabled:t.parseBoolean(t.disabled)}},[t.label?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("input",{ref:"input",staticClass:"form-control",class:{"is-invalid":t.invalid},attrs:{id:t.id,type:"text",placeholder:t.placeholder,maxlength:t.maxlength,disabled:t.parseBoolean(t.disabled)},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)},keyup:t.handleKeyup,keydown:t.handleKeydown,click:t.handleClick,contextmenu:t.handleContextmenu,focus:t.handleFocus,blur:t.handleBlur}}),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},hu=[],du={name:"input-text",computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0}},props:["id","value","errors","label","placeholder","language","required","maxlength","disabled"],methods:{updateValue:function(t){this.$emit("input",t)},handleKeyup:function(t){this.$emit("keyup",t)},handleKeydown:function(t){this.$emit("keydown",t)},handleClick:function(t){this.$emit("click",t)},handleContextmenu:function(t){this.$emit("contextmenu",t)},handleFocus:function(t){this.$emit("focus",t)},handleBlur:function(t){this.$emit("blur",t)}}},fu=du,pu=Fr(fu,cu,hu,!1,null,null,null),gu=pu.exports,mu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group",class:{disabled:t.parseBoolean(t.disabled)}},[t.label?e("label",{staticClass:"form-label"},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("textarea",{ref:"input",staticClass:"form-control",class:{"is-invalid":t.invalid},style:t.textareaStyle,attrs:{id:t.id,type:"text",placeholder:t.placeholder,maxlength:t.maxlength,rows:t.rows,disabled:t.parseBoolean(t.disabled)},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)}}}),t._v(" "),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},vu=[],yu={name:"input-textarea",computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0}},props:["id","value","errors","label","placeholder","language","required","rows","maxlength","disabled","textareaStyle"],methods:{updateValue:function(t){this.$emit("input",t)}}},bu=yu,_u=Fr(bu,mu,vu,!1,null,null,null),wu=_u.exports,xu=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"form-group"},[e("ul",{staticClass:"nav nav-tabs",attrs:{role:"tablist"}},[t._l(t.languages,(function(i,n){return e("li",{key:n,class:{active:i.active},attrs:{role:"presentation"}},[e("a",{attrs:{href:"#",role:"tab","aria-controls":"content","aria-expanded":i.active},on:{click:function(e){return e.preventDefault(),t.setActiveLanguage(i.id)}}},[t._v(" "+t._s(i.name)+" ")])])})),t.availableLanguages.length>0?e("li",{staticClass:"dropdown",attrs:{role:"presentation"}},[t._m(0),e("ul",{staticClass:"dropdown-menu"},t._l(t.availableLanguages,(function(i,n){return e("li",{key:n},[e("a",{staticClass:"add-button",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.addLanguage(i.id)}}},[t._v(t._s(i.name))])])})),0)]):t._e()],2)]),e("div",{staticClass:"tab-content"},t._l(t.languages,(function(i,n){return e("div",{key:n,class:"tab-pane"+(i.active?" active":""),attrs:{role:"tabpanel"}},[t.languages.length>1?e("div",{staticClass:"form-group"},[e("a",{staticClass:"remove-button",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.removeLanguage(i.id)}}},[e("i",{staticClass:"fal fa-times",staticStyle:{"margin-right":"5px"}}),t._v("Remove "+t._s(i.name))])]):t._e(),t._t("content",null,{language:i})],2)})),0)])},Su=[function(){var t=this,e=t._self._c;return e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("i",{staticClass:"fal fa-plus"}),t._v(" Add ")])}],Cu={name:"language-tabs",props:{id:null,defaultLanguageId:{type:String,required:!1},availableLanguages:{type:Array,required:!0},languages:{type:Array,required:!1,default:function(){return[]}},languageAdded:{type:Function,required:!1},languageRemoved:{type:Function,required:!1}},methods:{addAvailableLanguages:function(t){for(var e=0;e<t.length;e++){var i=t[e];i.active=!1,this.availableLanguages.push(i)}},addLanguage:function(t){for(var e,i=0;i<this.availableLanguages.length;i++)if(t===this.availableLanguages[i].id){e=this.availableLanguages.splice(i,1)[0],this.languages.push(e);break}for(var n=0;n<this.languages.length;n++)this.$set(this.languages[n],"active",this.languages[n].id===t);this.languageAdded&&this.languageAdded(e)},removeLanguage:function(t){for(var e,i=0;i<this.languages.length;i++)this.languages[i].active=!1,t===this.languages[i].id&&(e=this.languages.splice(i,1)[0],this.availableLanguages.push(e));this.languages.length>0&&(this.languages[0].active=!0),this.languageRemoved&&this.languageRemoved(e)},setActiveLanguage:function(t){for(var e=0;e<this.languages.length;e++)this.$set(this.languages[e],"active",this.languages[e].id===t)},reset:function(){for(var t=0;t<this.languages.length;t++)this.removeLanguage(this.languages[t--].id);this.defaultLanguageId&&this.addLanguage(parseInt(this.defaultLanguageId))}},mounted:function(){this.defaultLanguageId&&this.addLanguage(parseInt(this.defaultLanguageId))}},ku=Cu,Mu=Fr(ku,xu,Su,!1,null,null,null),Tu=Mu.exports,Du=function(){var t=this,e=t._self._c;return t.isEmpty?t._e():e("div",t._l(t.value,(function(i,n){return e("div",{key:n,staticClass:"invalid-feedback d-block"},[t._v(t._s(i))])})),0)},Iu=[],Au={name:"local-errors",computed:{isEmpty:function(){return!this.value||0===this.value.length}},props:["id","value"]},Ou=Au,Eu=Fr(Ou,Du,Iu,!1,null,null,null),Pu=Eu.exports,Lu=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal fade",class:t.theStyleClass,style:t.theStyle,attrs:{tabindex:"-1",role:"dialog"},on:{click:function(e){return e.target!==e.currentTarget?null:t.close()}}},[e("div",{staticClass:"modal-dialog",class:t.modalDialogClass,attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v(t._s(t.title))]),e("button",{staticClass:"btn-close",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.close()}}})]),e("div",{staticClass:"modal-body"},[t._t("default")],2),t.footer?e("div",{staticClass:"modal-footer"},[t._t("footer")],2):t._e()])])])])},Ru=[],zu={name:"modal",props:["open","title","closeLabel","size"],data:function(){return{theStyle:"display: none;",theStyleClass:"",backdrop:null}},computed:{modalDialogClass:function(){switch(this.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}},footer:function(){return!!this.$slots.footer}},created:function(){document.addEventListener("keydown",(t=>{27==t.keyCode&&this.close()}))},watch:{open:function(t){1==t?this.openModal():this.closeModal()}},methods:{openModal:function(){document.body.classList.add("modal-open"),this.backdrop=document.createElement("div"),this.backdrop.classList.add("modal-backdrop","fade"),document.body.appendChild(this.backdrop),this.theStyle="display: block",setTimeout((()=>{this.backdrop.classList.add("show"),this.theStyleClass="show"}),0)},closeModal:function(){this.theStyleClass="",this.backdrop.classList.remove("show"),setTimeout((()=>{document.body.classList.remove("modal-open"),null!=this.backdrop&&(document.body.removeChild(this.backdrop),this.backdrop=null),this.theStyle="display: none"}),150)},close:function(){this.$emit("close")}}},Nu=zu,Fu=Fr(Nu,Lu,Ru,!1,null,null,null),Bu=Fu.exports,Vu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[t.label?e("label",{staticClass:"form-label",attrs:{for:t.id}},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("div",{staticClass:"form-check",class:{"
8is-invalid":t.invalid}},[e("input",{staticClass:"form-check-input",class:{"is-invalid":t.invalid},attrs:{id:t.id,type:"checkbox",disabled:t.disabled},domProps:{checked:t.value},on:{change:t.changed}}),t.optionLabel?e("label",{staticClass:"form-check-label",attrs:{for:t.id}},[t._v(t._s(t.optionLabel))]):t._e()]),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},$u=[],ju={name:"select-boolean-checkbox",computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0}},methods:{changed:function(){this.$emit("input",!this.value)}},props:["id","value","errors","label","optionLabel","disabled"]},Wu=ju,Hu=Fr(Wu,Vu,$u,!1,null,null,null),Uu=Hu.exports,qu=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[t.label?e("label",{staticClass:"form-label"},[t._v(t._s(t.label)+" "),t.parseBoolean(t.required)?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("div",{class:{"is-invalid":t.invalid}},t._l(t.options,(function(i,n){return e("div",{key:n,staticClass:"form-check"},[e("input",{staticClass:"form-check-input",class:{"is-invalid":t.invalid},attrs:{id:t.id+":"+i.id,name:t.id,type:"checkbox",disabled:i.disabled},domProps:{value:i.id,checked:t.isChecked(i.id)},on:{change:t.changed}}),e("label",{staticClass:"control-label",attrs:{for:t.id+":"+i.id}},[t._v(t._s(i.name)),t._l(i.tags,(function(i,n){return e("span",{key:n,class:i.styleClass,style:i.style},[t._v(t._s(i.name))])}))],2)])})),0),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("help")],2):t._e()],1)},Gu=[],Yu={name:"select-many-checkbox",computed:{help:function(){return!!this.$slots.help},invalid:function(){return this.errors&&this.errors.length>0}},methods:{isChecked:function(t){if(this.value)for(var e=0;e<this.value.length;e++)if(this.value[e]==t)return!0;return!1},changed:function(t){var e=this.value||[];if(t.target.checked)e.push(t.target.value);else for(var i=0;i<e.length;i++)e[i]==t.target.value&&e.splice(i--,1);this.$emit("input",e)}},props:["id","value","options","errors","label","language","required"]},Xu=Yu,Zu=Fr(Xu,qu,Gu,!1,null,null,null),Ku=Zu.exports,Ju=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[t.label?e("label",{staticClass:"form-label"},[t._v(t._s(t.label)+" "),t.required?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("div",{class:{"is-invalid":t.invalid}},[t.loading?e("i",{staticClass:"fa fa-loading-black-16"}):[e("select",{staticClass:"form-select",class:{"is-invalid":t.invalid},attrs:{name:t.id},domProps:{value:t.value},on:{change:t.changed}},[t.noSelection?e("option",{domProps:{value:t.noSelectionValue}},[t._v(" "+t._s(t.noSelectionLabel)+" ")]):t._e(),t._l(t.options,(function(i,n){return e("option",{key:n,attrs:{disabled:i.disabled},domProps:{value:i.id}},[t._v(" "+t._s(i.name)+" ")])}))],2)]],2),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("help")],2):t._e()],1)},Qu=[],tc={name:"select-one-menu",props:["id","value","options","noSelection","noSelectionValue","noSelectionLabel","errors","label","language","required","loading"],computed:{help:function(){return!!this.$slots.help},invalid:function(){return this.errors&&this.errors.length>0}},methods:{changed:function(t){this.$emit("input",t.target.value)}},watch:{options:function(){}}},ec=tc,ic=Fr(ec,Ju,Qu,!1,null,null,null),nc=ic.exports,rc=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group",attrs:{id:t.id}},[t.label?e("label",{staticClass:"form-label"},[t._v(t._s(t.label)+" "),t.required?e("i",{staticClass:"far fa-asterisk"}):t._e(),t.language?e("span",{staticClass:"language"},[t._v(" ("+t._s(t.language)+")")]):t._e()]):t._e(),e("div",{class:{"is-invalid":t.invalid}},[t.loading?e("i",{staticClass:"fa fa-loading-black-16"}):[t.noSelection?e("div",{staticClass:"form-check"}
8,[e("input",{staticClass:"form-check-input",class:{"is-invalid":t.invalid},attrs:{id:t.id+":no-select",name:t.id,type:"radio"},domProps:{value:t.noSelectionValue,checked:t.noSelectionValue==t.value},on:{change:t.changed}}),e("label",{staticClass:"form-check-label",attrs:{for:t.id+":no-select"}},[t._v(t._s(t.noSelectionLabel))])]):t._e(),t._l(t.options,(function(i,n){return e("div",{key:"option"+n,staticClass:"form-check"},[e("input",{staticClass:"form-check-input",class:{"is-invalid":t.invalid},attrs:{id:t.id+":"+i.id,name:t.id,type:"radio",disabled:i.disabled},domProps:{value:i.id,checked:i.id==t.value},on:{change:t.changed}}),e("label",{staticClass:"form-check-label",attrs:{for:t.id+":"+i.id}},[t._v(t._s(i.name))])])}))]],2),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("help")],2):t._e()],1)},oc=[],ac={name:"select-one-radio",computed:{help:function(){return!!this.$slots.help},invalid:function(){return this.errors&&this.errors.length>0}},methods:{changed:function(t){this.$emit("input",t.target.value)}},props:["id","value","options","noSelection","noSelectionValue","noSelectionLabel","errors","label","language","required","loading"]},sc=ac,lc=Fr(sc,rc,oc,!1,null,null,null),uc=lc.exports,cc=function(){var t=this,e=t._self._c;return e("input-custom",{attrs:{id:t.id,errors:t.errors,label:t.label,language:t.language,required:t.required,loading:t.loading},scopedSlots:t._u([t.help?{key:"help",fn:function(){return[t._t("default")]},proxy:!0}:null],null,!0)},[e("tree-branch",{attrs:{value:t.value,"branch-style":t.branchStyle,"branch-class":t.branchClass}})],1)},hc=[],dc=function(){var t=this,e=t._self._c;return e("div",t._l(t.value,(function(i,n){return e("div",{key:"branch"+n},[e("div",{class:t.getBranchClass(i),style:t.branchStyle},[e("div",{staticClass:"row g-0"},[t.isSelectable(i)?e("div",{staticClass:"col-auto form-check"},[e("input",{attrs:{type:"checkbox"},domProps:{checked:i.selected},on:{change:function(e){return e.preventDefault(),t.toggleSelected(i)}}})]):t._e(),e("div",{staticClass:"col-auto",on:{click:function(e){return e.preventDefault(),t.toggleExpand(i)}}},[i.href?e("a",{class:i.textClass,style:i.textStyle,attrs:{href:i.href}},[i.iconClass?e("i",{class:i.iconClass,style:i.iconStyle}):t._e(),t._v(" "+t._s(i.text)+" ")]):e("span",{class:i.textClass,style:i.textStyle},[i.iconClass?e("i",{class:i.iconClass,style:i.iconStyle}):t._e(),t._v(" "+t._s(i.text)+" ")])]),i.buttons&&i.buttons.length?e("div",{staticClass:"col-auto"},[t._l(i.buttons,(function(n,r){return[n.href?e("a",{key:"a"+r,class:n.buttonClass,style:n.buttonStyle,attrs:{href:n.href},on:{click:function(t){return t.preventDefault(),n.onClick(i.id)}}},[n.iconClass?e("i",{class:n.iconClass,style:n.iconStyle}):t._e(),n.text?[t._v(t._s(n.text))]:t._e()],2):e("button",{key:"button"+r,class:n.buttonClass,style:n.buttonStyle,on:{click:function(t){return t.preventDefault(),n.onClick(i.id)}}},[n.iconClass?e("i",{class:n.iconClass,style:n.iconStyle}):t._e(),n.text?[t._v(t._s(n.text))]:t._e()],2)]}))],2):t._e(),e("div",{staticClass:"col",on:{click:function(e){return e.preventDefault(),t.toggleExpand(i)}}}),t.isExpandable(i)?e("div",{staticClass:"col-auto",on:{click:function(e){return e.preventDefault(),t.toggleExpand(i)}}},[e("i",{staticClass:"fal",class:{"fa-chevron-right":!i.expanded,"fa-chevron-down":i.expanded}})]):t._e()])]),t.isExpandable(i)?e("transition",{attrs:{name:"new-menu-slide"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:i.expanded,expression:"branch.expanded"}],staticClass:"row g-0"},[e("div",{staticClass:"col-auto"},[e("div",{staticClass:"px-3"})]),e("div",{staticClass:"col"},[e("tree-branch",{attrs:{"branch-style":t.branchStyle,"branch-class":t.branchClass},model:{value:i.children,callback:function(e){t.$set(i,"children",e)},expression:"branch.children"}})],1)])]):t._e()],1)})),0)},fc=[],pc={name:"tree-branch",props:{value:{},branchStyle:{type:String},branchClass:{type:String}},methods:{isSelectable:function(t){return Object.prototype.hasOwnProperty.call(t,"selected")},isExpandable:function(t){return t.children&&t.children.length},getBranchClass:function(t){var e="";return this.isSelectable(t)&&(e+="selectable ",t.selected?e+="selected ":e+="unselected "),this.isExpandable(t)&&(e+="expandable ",t.expanded?e+="expanded ":e+="collapsed "),this.branchClass&&(e+=this.branchClass),e},toggleExpand:function(t){t.onToggleExpanded&&t.onToggleExpanded(t)},toggleSelected:function(t){t.onToggleSelected&&t.onToggleSelected(t)}}},gc=pc,mc=Fr(gc,dc,fc,!1,null,null,null),vc=mc.exports,yc={components:{TreeBranch:vc},props:{id:{type:String,required:!0},value:{type:Array},errors:{type:Array},label:{type:String},language:{type:String},required:{type:Boolean},loading:{type:Boolean},branchStyle:{type:String},branchClass:{type:String}},computed:{help:function(){return!!this.$scopedSlots.default}}},bc=yc,_c=Fr(bc,cc,hc,!1,null,null,null),wc=_c.exports,xc={install(t){var e=function(){var t=function(t,e,
8i){return t.replace(new RegExp(e,"gm"),i)},e=function(e){return t(e,"\\[b\\]([\\s\\S]*?)\\[/b\\]","<b>$1</b>")},i=function(e){return t(e,"\\[i\\]([\\s\\S]*?)\\[/i\\]","<i>$1</i>")},n=function(e){return t(e,"\\[ul\\]\\s*([\\s\\S]*?)\\s*\\[/ul\\]","<ul>$1</ul>")},r=function(e){return t(e,"\\[ol\\]\\s*([\\s\\S]*?)\\s*\\[/ol\\]","<ol>$1</ol>")},o=function(e){return t(e,"\\s*\\[li\\]\\s*([\\s\\S]*?)\\s*\\[/li\\]\\s*","<li>$1</li>")},a=function(e){return t(e,"\\[url\\]\\s*([\\s\\S]*?)\\s*\\[/url\\]",'<a href="$1">$1</a>')},s=function(e){return t(e,"\n","<br/>")},l=function(t){return t=e(t),t=i(t),t=a(t),t},u=function(t){return t=l(t),t=n(t),t=r(t),t=o(t),t=s(t),t};return{inline:l,block:u}};t.$bbUtil=new e}},Sc=xc,Cc=Fr(Sc,Ul,ql,!1,null,null,null),kc=Cc.exports,Mc={install(t,e){t.$bundle=function(t,i,n){if("function"!==typeof e)throw"'Options' for this plugin should be a function.";e(t,Object.keys(i),(function(t){n({...i,...t})}))}}},Tc=Mc,Dc=Fr(Tc,Gl,Yl,!1,null,null,null),Ic=Dc.exports,Ac={install(t,e){e||(e={}),e.cvrRestApiAddress||(e.cvrRestApiAddress=""),e.authorization||(e.authorization="Authorization"),e.authorizationScheme||(e.authorizationScheme="Access");var i=function(t,e,i){var n=null,r=!1,o=[],a=function(){for(var t=o.splice(0,o.length),e=0;e<t.length;e++)t[e]()},s=function(e){r?o.push(e):(r=!0,ou.post(t+"/access-tokens").then((function(t){n=t.data,e(),a()})).catch((function(t){console.log(t)})).then((function(){r=!1})))},l=function(r){r.headers||(r.headers={}),r.headers[e]=i+" "+n,r.success||(r.success=function(){}),r.error||(r.error=function(){}),r.complete||(r.complete=function(){}),r.url&&r.url.startsWith("/")&&(r.url=t+r.url),ou(r).then(r.success).catch(r.error).then(r.complete)},u=function(t){var e=function(){var e=!1,i=t.error;t.error=function(n){401!=n.response.status||e||(e=!0,s((function(){l(t)}))),"function"==typeof i&&i(n)},l(t)};null==n?s(e):e()};return{ajax:u}};t.$cvrRestApi=new i(e.cvrRestApiAddress,e.authorization,e.authorizationScheme)}},Oc=Ac,Ec=Fr(Oc,Xl,Zl,!1,null,null,null),Pc=Ec.exports,Lc={install(t){t.$dateTimePlugin=Ar,t.$luxon={DateTime:Ar,Info:pn}}},Rc=Lc,zc=Fr(Rc,Kl,Jl,!1,null,null,null),Nc=zc.exports,Fc={install(t){t.prototype.$showFormErrors=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.$set(t,i,e[i])},t.prototype.$clearFormErrors=function(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&this.$set(t,e,[])},t.prototype.$countFormErrors=function(t,e){var i=0,n=(t,r)=>{for(var o in t){var a=t[o];Array.isArray(a)?a&&a.length&&(!e||e.length&&(-1!==e.indexOf(o)||r&&-1!==e.indexOf(r)))&&(i+=a.length):"object"==typeof a&&n(a,r||o)}};return n(t),i}}},Bc=Fc,Vc=Fr(Bc,Ql,tu,!1,null,null,null),$c=Vc.exports,jc={install(t){t.mixin({methods:{parseBoolean:function(t){return t&&"true"==t.toString().toLowerCase()}}})}},Wc=jc,Hc=Fr(Wc,eu,iu,!1,null,null,null),Uc=Hc.exports,qc={install(t){var e=function(){var t={"Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","Ã":"AE","Ã":"C","Ã":"E","Ã":"E","Ã":"E","Ã":"E","Ã":"I","Ã":"I","Ã":"I","Ã":"I","Ã":"D","Ã":"N","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"U","Ã":"U","Ã":"U","Ã":"U","Ã":"Y","Ã":"s","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","Ã":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ä":"A","Ä":"a","Ä":"A","Ä":"a","Ä":"A","Ä
":"a","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"C","Ä":"c","Ä":"D","Ä":"d","Ä":"D","Ä":"d","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"E","Ä":"e","Ä":"G","Ä":"g","Ä":"G","Ä":"g","Ä ":"G","Ä¡":"g","Ä¢":"G","Ä£":"g","Ĥ":"H","Ä¥":"h","Ħ":"H","ħ":"h","Ĩ":"I","Ä©":"i","Ī":"I","Ä«":"i","Ĭ":"I","Ä":"i","Ä®":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ä´":"J","ĵ":"j","Ķ":"K","Ä·":"k","Ĺ":"L","ĺ":"l","Ä»":"L","ļ":"l","Ľ":"L","ľ":"l","Ä¿":"L","Å":"l","Å":"l","Å":"l","Å":"N","Å":"n","Å
":"N","Å":"n","Å":"N","Å":"n","Å":"n","Å":"O","Å":"o","Å":"O","Å":"o","Å":"O","Å":"o","Å":"OE","Å":"oe","Å":"R","Å"
8:"r","Å":"R","Å":"r","Å":"R","Å":"r","Å":"S","Å":"s","Å":"S","Å":"s","Å":"S","Å":"s","Å ":"S","Å¡":"s","Å¢":"T","Å£":"t","Ť":"T","Å¥":"t","Ŧ":"T","ŧ":"t","Ũ":"U","Å©":"u","Ū":"U","Å«":"u","Ŭ":"U","Å":"u","Å®":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","ź":"z","Å»":"Z","ż":"z","Ž":"Z","ž":"z","Å¿":"s","Æ":"f","Æ ":"O","Æ¡":"o","Ư":"U","ư":"u","Ç":"A","Ç":"a","Ç":"I","Ç":"i","Ç":"O","Ç":"o","Ç":"U","Ç":"u","Ç":"U","Ç":"u","Ç":"U","Ç":"u","Ç":"U","Ç":"u","Ç":"U","Ç":"u","Ǻ":"A","Ç»":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","Ç¿":"o"},e=function(e,i){var n=e.toLowerCase().trim();for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n=n.replace(new RegExp(r,"g"),t[r]));return n=n.replace(new RegExp("[^\\s^\\w]+","g"),""),n=n.trim(),n=n.replace(new RegExp("(\\s)+","g"),i),n};return{convert:function(t,i){return e(t,i)},withUnderscores:function(t){return e(t,"_")},withDashes:function(t){return e(t,"-")}}};t.$slugUtil=new e}},Gc=qc,Yc=Fr(Gc,nu,ru,!1,null,null,null),Xc=Yc.exports;Qt.defaultZone="Europe/Copenhagen",a().use(Uc),a().mixin({computed:{console:function(){return console},document:function(){return document},window:function(){return window}},directives:{ClickOutside:Pr()}});var Zc=function(){var t=this,e=t._self._c;return e("div",[e("button",{class:t.buttonClass,on:{click:function(e){return e.preventDefault(),t.showModal.apply(null,arguments)}}},[t._v(" "+t._s(t.computedButtonLabel)+" ")]),e("modal",{attrs:{open:t.open,title:t.bundle.id_11677},on:{close:t.cancel},scopedSlots:t._u([{key:"footer",fn:function(){return[t.loading?t._e():e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.submit()}}},[t._v(" "+t._s(t.bundle.id_9221)+" "),t.submitting?e("i",{staticClass:"fa fa-loading-white-12",staticStyle:{"margin-left":"0.5rem"}}):t._e()]),e("button",{staticClass:"btn btn-secondary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.cancel()}}},[t._v(" "+t._s(t.bundle.id_9108)+" ")])]},proxy:!0}])},[t.loading?e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}}):[t.hasLists?e("ul",{staticClass:"new-tabs",staticStyle:{"margin-bottom":"2rem"}},[e("li",{class:{active:!t.addingNew}},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.addingNew=!1}}},[t._v(" "+t._s(t.bundle.id_11678)+" ")])]),e("li",{class:{active:t.addingNew}},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.addingNew=!0}}},[t._v(" "+t._s(t.bundle.id_11245)+" ")])])]):t._e(),!t.addingNew&&t.hasLists?[e("select-many-checkbox",{attrs:{id:t.id+":existingLists",errors:t.formErrors.lists,options:t.computedLists,label:t.bundle.id_11679,optional:t.bundle.id_10054},model:{value:t.formData.lists,callback:function(e){t.$set(t.formData,"lists",e)},expression:"formData.lists"}})]:[t.shareEnabled?e("select-one-radio",{attrs:{name:"shareLevel",errors:t.formErrors.shareLevel,options:t.shareLevels,label:t.bundle.id_11590,required:!0},model:{value:t.formData.shareLevel,callback:function(e){t.$set(t.formData,"shareLevel",e)},expression:"formData.shareLevel"}}):t._e(),e("input-text",{attrs:{name:"name",errors:t.formErrors.name,label:t.bundle.id_11591,placeholder:t.bundle.id_11592,required:!0},model:{value:t.formData.name,callback:function(e){t.$set(t.formData,"name",e)},expression:"formData.name"}})]]],2)],1)},Kc=[];function Jc(t){return Jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jc(t)}function Qc(t,e){if("object"!==Jc(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==Jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function th(t){var e=Qc(t,"string");return"symbol"===Jc(e)?e:String(e)}function eh(t,e,i){return e=th(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class ih{constructor(t){eh(this,"axiosInstance",void 0),eh(this,"config",void 0),eh(this,"dateFormat",/^\d{4}-\d{2}-\d{2}$/),eh(this,"datetimeFormat",/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}[+-]\d{2}:\d{2}$/),eh(this,"luxonFormat","yyyy'-'LL'-'dd'T'HH':'mm':'ss'.'SSSZZ"),eh(this,"getAxiosInstance",(()=>this.axiosInstance)),eh(this,"request",(async t=>await this.axiosInstance.request(t))),eh(this,"get",(async(t,e)=>await this.axiosInstance.get(t,e))),eh(this,"post",(async(t,e,i)=>await this.axiosInstance.post(t,e,i))),eh(this,"put",(async(t,e,i)=>await this.axiosInstance.put(t,e,i))),eh(this,"delete",(async(t,e)=>await this.axiosInstance.delete(t,e))),eh(this,"data",(t=>null!=t&&200==t.status?t.data:null)),this.config=t,this.axiosInstance=ou.create(t),this.axiosInstance.interceptors.request.use((t=>(this.parseDateTimes(t.data),t))),this.axiosInstance.interceptors.response.use((t=>(this.parseDates(t.data),t)))}isDateString(t){return t&&"string"===typeof t&&(this.dateFormat.test(t)||this.datetimeFormat.test(t))}parseDate(t){return this.dateFormat.test(t)||this.datetimeFormat.test(t)?Ar.fromISO(t).toLocal():t}parseDates(t){if(null!==t&&void 0!==t&&"object"===typeof t)for(const e of Object.keys(t)){const i=t[e];this.isDateString(i)?t[e]=this.parseDate(i):"object"===typeof i&&this.parseDates(i)}}parseDateTime(t){const e=Ar.fromObject(t.c,{zone:t._zone.zoneName});return e.toFormat(this.luxonFormat)}parseDateTimes(t){if(null!==t&&void 0!==t&&"object"===typeof t)for(const e of Object.keys(t)){const i=t[e];Ar.isDateTime(i)?t[e]=this.parseDateTime(i):"object"===typeof i&&this.parseDateTimes(i)}}} 9/*! 10 * vuex v3.6.2 11 * (c) 2021 Evan You 12 * @license MIT 13 */ 14function nh(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:n});else{var i=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,i.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var rh="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},oh=rh.__VUE_DEVTOOLS_GLOBAL_HOOK__;
vendor: 4,325 bytes, line 14
14function ah(t){oh&&(t._devtoolHook=oh,oh.emit("vuex:init",t),oh.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){oh.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){oh.emit("vuex:action",t,e)}),{prepend:!0}))}function sh(t,e){return t.filter(e)[0]}function lh(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var i=sh(e,(function(e){return e.original===t}));if(i)return i.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach((function(i){n[i]=lh(t[i],e)})),n}function uh(t,e){Object.keys(t).forEach((function(i){return e(t[i],i)}))}function ch(t){return null!==t&&"object"===typeof t}function hh(t){return t&&"function"===typeof t.then}function dh(t,e){return function(){return t(e)}}var fh=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"===typeof i?i():i)||{}},ph={namespaced:{configurable:!0}};ph.namespaced.get=function(){return!!this._rawModule.namespaced},fh.prototype.addChild=function(t,e){this._children[t]=e},fh.prototype.removeChild=function(t){delete this._children[t]},fh.prototype.getChild=function(t){return this._children[t]},fh.prototype.hasChild=function(t){return t in this._children},fh.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},fh.prototype.forEachChild=function(t){uh(this._children,t)},fh.prototype.forEachGetter=function(t){this._rawModule.getters&&uh(this._rawModule.getters,t)},fh.prototype.forEachAction=function(t){this._rawModule.actions&&uh(this._rawModule.actions,t)},fh.prototype.forEachMutation=function(t){this._rawModule.mutations&&uh(this._rawModule.mutations,t)},Object.defineProperties(fh.prototype,ph);var gh=function(t){this.register([],t,!1)};function mh(t,e,i){if(e.update(i),i.modules)for(var n in i.modules){if(!e.getChild(n))return void 0;mh(t.concat(n),e.getChild(n),i.modules[n])}}gh.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},gh.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,i){return e=e.getChild(i),t+(e.namespaced?i+"/":"")}),"")},gh.prototype.update=function(t){mh([],this.root,t)},gh.prototype.register=function(t,e,i){var n=this;void 0===i&&(i=!0);var r=new fh(e,i);if(0===t.length)this.root=r;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],r)}e.modules&&uh(e.modules,(function(e,r){n.register(t.concat(r),e,i)}))},gh.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1],n=e.getChild(i);n&&n.runtime&&e.removeChild(i)},gh.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return!!e&&e.hasChild(i)};var vh;var yh=function(t){var e=this;void 0===t&&(t={}),!vh&&"undefined"!==typeof window&&window.Vue&&Eh(window.Vue);var i=t.plugins;void 0===i&&(i=[]);var n=t.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new gh(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new vh,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,a=o.dispatch,s=o.commit;this.dispatch=function(t,e){return a.call(r,t,e)},this.commit=function(t,e,i){return s.call(r,t,e,i)},this.strict=n;var l=this._modules.root.state;Sh(this,l,[],this._modules.root),xh(this,l),i.forEach((function(t){return t(e)}));var u=void 0!==t.devtools?t.devtools:vh.config.devtools;u&&ah(this)},bh={state:{configurable:!0}};function _h(t,e,i){return e.indexOf(t)<0&&(i&&i.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function wh(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var i=t.state;Sh(t,i,[],t._modules.root,!0),xh(t,i,e)}function xh(t,e,i){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,o={};uh(r,(function(e,i){o[i]=dh(e,t),Object.defineProperty(t.getters,i,{get:function(){return t._vm[i]},enumerable:!0})}
vendor: 3,376 bytes, line 14
14));var a=vh.config.silent;vh.config.silent=!0,t._vm=new vh({data:{$$state:e},computed:o}),vh.config.silent=a,t.strict&&Ih(t),n&&(i&&t._withCommit((function(){n._data.$$state=null})),vh.nextTick((function(){return n.$destroy()})))}function Sh(t,e,i,n,r){var o=!i.length,a=t._modules.getNamespace(i);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!o&&!r){var s=Ah(e,i.slice(0,-1)),l=i[i.length-1];t._withCommit((function(){vh.set(s,l,n.state)}))}var u=n.context=Ch(t,a,i);n.forEachMutation((function(e,i){var n=a+i;Mh(t,n,e,u)})),n.forEachAction((function(e,i){var n=e.root?i:a+i,r=e.handler||e;Th(t,n,r,u)})),n.forEachGetter((function(e,i){var n=a+i;Dh(t,n,e,u)})),n.forEachChild((function(n,o){Sh(t,e,i.concat(o),n,r)}))}function Ch(t,e,i){var n=""===e,r={dispatch:n?t.dispatch:function(i,n,r){var o=Oh(i,n,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:n?t.commit:function(i,n,r){var o=Oh(i,n,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return kh(t,e)}},state:{get:function(){return Ah(t.state,i)}}}),r}function kh(t,e){if(!t._makeLocalGettersCache[e]){var i={},n=e.length;Object.keys(t.getters).forEach((function(r){if(r.slice(0,n)===e){var o=r.slice(n);Object.defineProperty(i,o,{get:function(){return t.getters[r]},enumerable:!0})}})),t._makeLocalGettersCache[e]=i}return t._makeLocalGettersCache[e]}function Mh(t,e,i,n){var r=t._mutations[e]||(t._mutations[e]=[]);r.push((function(e){i.call(t,n.state,e)}))}function Th(t,e,i,n){var r=t._actions[e]||(t._actions[e]=[]);r.push((function(e){var r=i.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return hh(r)||(r=Promise.resolve(r)),t._devtoolHook?r.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):r}))}function Dh(t,e,i,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return i(n.state,n.getters,t.state,t.getters)})}function Ih(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function Ah(t,e){return e.reduce((function(t,e){return t[e]}),t)}function Oh(t,e,i){return ch(t)&&t.type&&(i=e,e=t,t=t.type),{type:t,payload:e,options:i}}function Eh(t){vh&&t===vh||(vh=t,nh(vh))}bh.state.get=function(){return this._vm._data.$$state},bh.state.set=function(t){0},yh.prototype.commit=function(t,e,i){var n=this,r=Oh(t,e,i),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,n.state)})))},yh.prototype.dispatch=function(t,e){var i=this,n=Oh(t,e),r=n.type,o=n.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,i.state)}))}catch(Mp){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{i._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,i.state)}))}catch(Mp){0}t(e)}),(function(t){try{i._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,i.state,t)}))}catch(Mp){0}e(t)}))}
vendor: 4,471 bytes, line 14
14))}},yh.prototype.subscribe=function(t,e){return _h(t,this._subscribers,e)},yh.prototype.subscribeAction=function(t,e){var i="function"===typeof t?{before:t}:t;return _h(i,this._actionSubscribers,e)},yh.prototype.watch=function(t,e,i){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,i)},yh.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},yh.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),Sh(this,this.state,t,this._modules.get(t),i.preserveState),xh(this,this.state)},yh.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var i=Ah(e.state,t.slice(0,-1));vh.delete(i,t[t.length-1])})),wh(this)},yh.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},yh.prototype.hotUpdate=function(t){this._modules.update(t),wh(this,!0)},yh.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(yh.prototype,bh);var Ph=Vh((function(t,e){var i={};return Fh(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var n=$h(this.$store,"mapState",t);if(!n)return;e=n.context.state,i=n.context.getters}return"function"===typeof r?r.call(this,e,i):e[r]},i[n].vuex=!0})),i})),Lh=Vh((function(t,e){var i={};return Fh(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.commit;if(t){var o=$h(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"===typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i})),Rh=Vh((function(t,e){var i={};return Fh(e).forEach((function(e){var n=e.key,r=e.val;r=t+r,i[n]=function(){if(!t||$h(this.$store,"mapGetters",t))return this.$store.getters[r]},i[n].vuex=!0})),i})),zh=Vh((function(t,e){var i={};return Fh(e).forEach((function(e){var n=e.key,r=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.dispatch;if(t){var o=$h(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"===typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}})),i})),Nh=function(t){return{mapState:Ph.bind(null,t),mapGetters:Rh.bind(null,t),mapMutations:Lh.bind(null,t),mapActions:zh.bind(null,t)}};function Fh(t){return Bh(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function Bh(t){return Array.isArray(t)||ch(t)}function Vh(t){return function(e,i){return"string"!==typeof e?(i=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,i)}}function $h(t,e,i){var n=t._modulesNamespaceMap[i];return n}function jh(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var i=t.filter;void 0===i&&(i=function(t,e,i){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var r=t.mutationTransformer;void 0===r&&(r=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var l=t.logActions;void 0===l&&(l=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var c=lh(t.state);"undefined"!==typeof u&&(s&&t.subscribe((function(t,o){var a=lh(o);if(i(t,c,a)){var s=Uh(),l=r(t),h="mutation "+t.type+s;Wh(u,h,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",n(c)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),Hh(u)}c=a})),l&&t.subscribeAction((function(t,i){if(o(t,i)){var n=Uh(),r=a(t),s="action "+t.type+n;Wh(u,s,e),u.log("%c action","color: #03A9F4; font-weight: bold",r),Hh(u)}})))}}function Wh(t,e,i){var n=i?t.groupCollapsed:t.group;try{n.call(t,e)}catch(Mp){t.log(e)}}function Hh(t){try{t.groupEnd()}catch(Mp){t.log("ââ log end ââ")}}function Uh(){var t=new Date;return" @ "+Gh(t.getHours(),2)+":"+Gh(t.getMinutes(),2)+":"+Gh(t.getSeconds(),2)+"."+Gh(t.getMilliseconds(),3)}function qh(t,e){return new Array(e+1).join(t)}function Gh(t,e){return qh("0",e-t.toString().length)+t}var Yh={Store:yh,install:Eh,version:"3.6.2",mapState:Ph,mapMutations:Lh,mapGetters:Rh,mapActions:zh,createNamespacedHelpers:Nh,createLogger:jh},Xh=Yh;
14const Zh=window.contextPath+"/rest/access-tokens";class Kh extends ih{constructor(...t){super(...t),eh(this,"create",(async()=>this.data(await this.post(Zh))))}}const Jh=new Kh,Qh="REFRESH_ACCESS_TOKEN",td="SET_ACCESS_TOKEN",ed="SET_ACCESS_TOKEN_PROMISE",id={[Qh]({commit:t,state:e},i){let n=e.accessTokenPromise;return n||(n=Jh.create().then((e=>(t(td,e),e)))),i&&(n=n.then(i)),t(ed,n),n}},nd={[td](t,e){t.accessToken=e,t.accessTokenPromise=void 0},[ed](t,e){t.accessTokenPromise=e}},rd={accessToken:void 0,accessTokenPromise:void 0};a().use(Xh);var od=new Xh.Store({actions:id,mutations:nd,state:rd});class ad extends ih{constructor(t){super(t),eh(this,"xRetrying","X-Retrying"),eh(this,"xAuthorization","X-Authorization"),eh(this,"retry",(t=>od.dispatch(Qh,(()=>(t.headers[this.xRetrying]=!0,t.headers[this.xAuthorization]=`Access ${od.state.accessToken}`,t))))),this.getAxiosInstance().interceptors.request.use((t=>od.state.accessToken?(t.headers[this.xAuthorization]=`Access ${od.state.accessToken}`,t):this.retry(t)),(t=>t)),this.getAxiosInstance().interceptors.response.use((t=>t),(t=>{if(t.config&&t.response){const e=!!t.config.headers&&t.config.headers[this.xRetrying];if(401===t.response.status&&!e)return this.retry(t.config).then((t=>this.request(t)))}return Promise.reject(t)}))}}const sd=window.contextPath+"/rest/watch-lists";class ld extends ad{constructor(...t){super(...t),eh(this,"create",(async t=>this.data(await this.post(sd,t)))),eh(this,"update",(async(t,e)=>this.data(await this.put(sd+"/"+t,e)))),eh(this,"remove",(async t=>this.data(await this.delete(sd+"/"+t)))),eh(this,"search",(async t=>this.data(await this.get(sd,{params:t}))))}}const ud=new ld,cd=window.contextPath+"/rest/watch-lists";class hd extends ad{constructor(...t){super(...t),eh(this,"create",(async(t,e)=>this.data(await this.post(cd+"/"+t+"/vatins",e)))),eh(this,"remove",(async(t,e)=>this.data(await this.delete(cd+"/"+t+"/vatins/"+e)))),eh(this,"getByWatchListId",(async(t,e)=>this.data(await this.get(cd+"/"+t+"/"+e))))}}const dd=new hd;var fd,pd,gd,md,vd={name:"add-to-watch-list",props:{id:{type:String,required:!0},value:{type:String,required:!0},portalDomain:{type:String,required:!0},buttonLabel:{type:String,required:!1},buttonClass:{type:String,required:!1,default:"btn btn-success"}},data:function(){return{formData:{shareLevel:null,name:null,lists:[]},formErrors:{},open:!1,closeWhenReady:!1,loading:!1,submittingList:!1,submittingListAdds:[],submittingListRemovals:[],submittingNew:!1,lists:null,addingNew:!1,bundle:{id_11677:"Add to list",id_11678:"Existing lists",id_11245:"New list",id_11679:"Choose lists",id_10054:"Optional",id_11590:"Sharing",id_11591:"Name",id_11592:"Enter the name of the list...",id_9221:"Ok",id_9108:"Cancel",id_11690:"Personal",id_11618:"Personal list that only I can see.",id_11689:"Shared",id_11619:"Shared list that everyone in my company can see."},shareEnabled:!!window.visitor.member,shareLevelDefault:"user",isAllowed:!!window.visitor.person||!!window.visitor.ipAccess&&window.visitor.ipAccess.enabled}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},computed:{shareLevels:function(){return[{id:"user",name:this.bundle.id_11618},{id:"company",name:this.bundle.id_11619}]},submitting:function(){return this.submittingList||this.submittingListAdds.length>0||this.submittingListRemovals.length>0||this.submittingNew},closeNow:function(){var t=0;for(var e in this.formErrors)Object.prototype.hasOwnProperty.call(this.formErrors,e)&&Array.isArray(this.formErrors[e])&&(t+=this.formErrors[e].length);return this.closeWhenReady&&!this.submitting&&0==t},hasLists:function(){return this.lists&&this.lists.length>0},computedLists:function(){var t=[];if(this.lists)for(var e=0;e<this.lists.length;e++){var i=this.lists[e],n=function(t){i.tags=[{name:t,styleClass:"badge bg-secondary ms-2"}]};switch(i.shareLevel){case"user":n(this.bundle.id_11690);break;case"company":n(this.bundle.id_11689);break}t.push(i)}return t},computedButtonLabel:function(){return this.buttonLabel?this.buttonLabel:this.bundle.id_11677}},watch:{closeNow:function(t){1==t&&(this.open=!1)}},methods:{showModal:function(){this.formData.shareLevel=null,this.formData.name=null,this.formData.lists=[],this.formErrors={},this.closeWhenReady=!1,this.loading=!0,this.submittingList=!1,this.submittingListAdds=[],this.submittingListRemovals=[],this.submittingNew=!1,this.lists=null,this.addingNew=!1,this.isAllowed?(ud.search({f
14irst:0,max:1e3}).then((t=>{this.lists=t;for(var e=0;e<this.lists.length;e++){var i=this.lists[e];-1!=i.vatins.indexOf(this.value)&&this.formData.lists.push(""+i.id)}})).catch((t=>{console.log(t)})).finally((()=>{this.hasLists||(this.addingNew=!0),this.loading=!1})),this.open=!0):window.location=this.portalDomain+"/watch"},submit:function(){this.$clearFormErrors(this.formErrors),this.addingNew?this.addToNewList():this.updateLists(),this.closeWhenReady=!0},cancel:function(){this.open=!1},addToNewList:function(){this.submittingList=!0;var t={};this.shareEnabled&&!this.formData.shareLevel||(t.shareLevel=this.shareEnabled?this.formData.shareLevel:this.shareLevelDefault),this.formData.name&&(t.name=this.formData.name),ud.create(t).then((t=>{"ok"===t.status?this.addToList(t.data.id):this.$showFormErrors(this.formErrors,t.errors)})).catch((t=>{console.log(t),this.closeWhenReady=!1})).finally((()=>{this.submittingList=!1}))},updateLists:function(){for(var t=0;t<this.lists.length;t++){var e=this.lists[t],i=-1!=e.vatins.indexOf(this.value),n=-1!=this.formData.lists.indexOf(""+e.id);!i&&n&&this.addToList(e.id),i&&!n&&this.removeFromList(e.id)}},addToList:function(t){var e={vatin:this.value};this.submittingListAdds.push(t),dd.create(t,e).catch((t=>{console.log(t),this.closeWhenReady=!1})).finally((()=>{var e=this.submittingListAdds.indexOf(t);-1!=e&&this.submittingListAdds.splice(e,1)}))},removeFromList:function(t){this.submittingListRemovals.push(t),dd.remove(t,this.value).catch((t=>{console.log(t),this.closeWhenReady=!1})).finally((()=>{var e=this.submittingListRemovals.indexOf(t);-1!=e&&this.submittingListRemovals.splice(e,1)}))}}},yd=vd,bd=Fr(yd,Zc,Kc,!1,null,null,null),_d=bd.exports,wd=function(){var t=this,e=t._self._c;return t.projects&&t.projects.length?e("div",{staticClass:"article-projects"},[t._l(t.visibleProjects,(function(i){return e("a",{key:i.id,staticClass:"article-project",attrs:{href:t.projectUrl(i),target:"_blank"}},[e("i",{staticClass:"fa-light fa-house-building"}),e("h6",[t._v(t._s(i.name))]),e("span",[t._v(t._s(t.bundle.id_11024))])])})),t.hasMore&&!t.showAll?e("button",{staticClass:"more-article-projects",attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.showAll=!0}}},[e("i",{staticClass:"fa-light fa-plus"}),t._v(" "+t._s(t.bundle.id_12558)+" ")]):t._e()],2):t._e()},xd=[],Sd={name:"article-projects",props:{projects:{type:Array,default:()=>[]}},data(){return{max:3,showAll:!1,bundle:{id_11024:"/project",id_11770:"View project",id_12558:"Show more"}}},created(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},computed:{hasMore(){return this.projects.length>this.max},visibleProjects(){return this.showAll?this.projects:this.projects.slice(0,this.max)}},methods:{projectUrl(t){return`${this.bundle.id_11770}/project/${t.id}`}}},Cd=Sd,kd=Fr(Cd,wd,xd,!1,null,"1a1c3b56",null),Md=kd.exports,Td=function(){var t=this,e=t._self._c;return t.show?e("div",{ref:"app",staticClass:"rotating-mowgli",class:t.styleClass,attrs:{id:t.id}},[t.label?e("small",{staticClass:"mowgli-label",class:{"mowgli-absolute-label":"absolute"==t.labelPosition}},[t._v(" "+t._s(t.label)+" ")]):t._e(),t.isImage?e("a",{attrs:{href:t.href,rel:t.value.banner.nofollow?"nofollow":"",target:t.target},on:{click:function(e){return t.handleClick(t.value)}}},[e("img",{attrs:{src:t.fileDomain+"/"+t.value.creative.img,width:t.width,height:t.height}})]):t._e(),t.isHtml5?e("div",[e("iframe",{staticClass:"mowgli-iframe",style:"display: block; border: 0;",attrs:{src:t.fileDomain+"/banner/"+t.value.creative.html,width:t.width,height:t.height,seamless:"seamless",scrolling:"no",border:"0"}}),t.value.creative.clickOverlay?e("div",{staticClass:"banner-overlay"},[e("a",{attrs:{href:t.href,rel:t.value.banner.nofollow?"nofollow":"",target:t.target},on:{click:function(e){return t.handleClick(t.value)}}})]):t._e()]):t._e(),t.isScript&&null!=t.width&&t.width>=0&&null!=t.height&&t.height>=0?[e("iframe",{staticClass:"mowgli-iframe",style:"display: block; border: 0;",attrs:{src:t.sSrc,width:t.width,height:t.height,seamless:"seamless",scrolling:"no",border:"0"}})]:t._e(),t.value.banner.trackingScript?[e("iframe",{staticClass:"mowgli-iframe",style:"position: absolute; display: block; border: 0;",attrs:{src:t.tsSrc,width:1,height:1,seamless:"seamless",scrolling:"no",border:"0"}})]:t._e()],2):t._e()},Dd=[],Id={install(t){t.$mediaWidth=function(){try{return window.mediaWidth()}catch(t){return console.log(t),""}}}},Ad=Id,Od=Fr(Ad,fd,pd,!1,null,null,null),Ed=Od.exports,Pd={install(t){t.prototype.$track=function(t,e,
14i){if("impression"==t&&"article"==e)return!1;var n=this.$el;if(n&&window.trackerEnabled){var r=function(t){var e=t&&t.getBoundingClientRect?t.getBoundingClientRect():null;return e&&(e.x<0||e.x>0||e.y<0||e.y>0)},o=function(t){if(t.parentNode){try{if("none"==window.getComputedStyle(t).display)return!1}catch{return!1}return o(t.parentNode)}return!0};if(r(n)&&o(n)&&t&&e&&i)return window.queueTrackerEvent(t,"host",window.hostId,e,i),!0}return!1}}},Ld=Pd,Rd=Fr(Ld,gd,md,!1,null,null,null),zd=Rd.exports;a().use(Ed),a().use(zd);var Nd={name:"banner",props:["id","value","label","label-position","rendered"],data:function(){return{contextPath:window.contextPath,fileDomain:window.fileDomain,fullContainer:1,standardContainer:2,mediaWidth:a().$mediaWidth(),width:null,height:null,resizing:!1,impression:!1,viewableImpression:!1,consent:!1,consentData:null}},created:function(){var t=this;window.EventBus.register("banner-consent-is-ready",(function(){var e=!t.show;t.consent=!!window["banner-consent-is-ready"]&&window["banner-consent-is-ready"],t.consentData=window["banner-consent-data"],e&&t.$nextTick((function(){window.fireWindowResizeEvent()}))})),t.consent=!!window["banner-consent-is-ready"]&&window["banner-consent-is-ready"],t.consentData=window["banner-consent-data"]},mounted:function(){this.setWidthAndHeight(),this.handleImpression(),this.checkViewable(),window.addEventListener("resize",this.handleResize),window.addEventListener("scroll",this.handleScroll)},updated:function(){this.setWidthAndHeight(),this.checkViewable()},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("scroll",this.handleScroll)},computed:{isReady:function(){return this.width>0&&this.height>0&&this.show},isImage:function(){return!!this.value.creative.img},isHtml5:function(){return!!this.value.creative.html},isScript:function(){return!!this.value.creative.script},styleClass:function(){const t=[];if(this.isReady&&!this.resizing){switch(this.value.creative.container){case this.fullContainer:t.push("base-container"),t.push("full");break;case this.standardContainer:t.push("base-container"),t.push("xs-no-padding");break}t.push("ready")}else t.push("initializing");return t.join(" ")},target:function(){return 0==this.value.banner.href.trim().indexOf("mailto:")?"":"_blank"},reinitOnAnyResize:function(){return this.value.creative.container==this.fullContainer},widthAndHeight:function(){return{width:this.width,height:this.height}},href:function(){if(this.value&&this.value.banner&&this.value.banner.href){var t=this.value.banner.href;return this.replaceConsentTags(t,this.value.banner.hrefVendorId)}return""},sSrc:function(){if(this.value&&this.value.banner&&this.value.creative){var t=this.contextPath+"/bnrscr?id="+this.value.banner.id+"&creative="+this.value.creative.id+"&width="+this.width+"&height="+this.height;return this.appendConsentParams(t,this.value.creative.scriptVendorId)}return""},tsSrc:function(){if(this.value&&this.value.banner){var t=this.contextPath+"/bnrtsscr?id="+this.value.banner.id;return this.appendConsentParams(t,this.value.banner.trackingScriptVendorId)}return""},show:function(){return!this.isHtml5&&!this.isScript&&(!this.value.banner.trackingScript||0==this.value.banner.trackingScript.length)||this.consent||window.testMode}},methods:{handleResize:function(){var t=a().$mediaWidth();(this.mediaWidth!=t||"xs"==t||this.reinitOnAnyResize)&&(this.mediaWidth=t,this.checkViewable(),this.resizing=!0,this.$nextTick((()=>{this.setWidthAndHeight(),this.resizing=!1})))},handleScroll:function(){this.checkViewable()},handleClick:function(){this.handleViewableImpression(),this.$track("click_"+this.mediaWidth,"banner",this.value.banner.id)},handleImpression:function(){this.impression||(this.impression=this.$track("impression_"+this.mediaWidth,"banner",this.value.banner.id))},handleViewableImpression:function(){this.viewableImpression||(this.viewableImpression=this.$track("viewable_impression_"+this.mediaWidth,"banner",this.value.banner.id))},isViewable:function(){var t=this.getAppRect();if(t){var e=Math.max(document.documentElement.clientWidth,window.innerWidth),i=Math.max(document.documentElement.clientHeight,window.innerHeight),n=t.left<0?0:t.left>e?e:t.left,r=t.top<0?0:t.top>i?i:t.top,o=t.right<0?0:t.right>e?e:t.right,a=t.bottom<0?0:t.bottom>i?i:t.bottom,s=t.width*t.height*.5,l=(o-n)*(a-r);return l>s}return!1},checkViewable:function(){var t=this,e=function(){return!t.viewableImpression&&t.isViewable()};setTimeout((function(){e()&&setTimeout((function(){e()&&t.handleViewableImpression()}),1e3)}),0)},setWidthAndHeight:function(){var t=this.value.creative.width,e=this.value.creative.height,i=this.getApp
14Rect();if(i){this.value.creative.container==this.fullContainer&&(document.body.className+=" mowgli-scrollbar");var n=i.width;if(this.value.creative.container==this.fullContainer){for(var r=document.body.className.split(" "),o="",a=0;a<r.length;a++)"mowgli-scrollbar"!=r[a]&&(o+=r[a]+" ");document.body.className=o}(t>n||this.value.creative.container==this.fullContainer&&t<n)&&(e*=n/t,t=n)}this.width=Math.round(t),this.height=Math.round(e)},replaceConsentTags:function(t,e){if(e&&!isNaN(e))try{this.consentData&&(this.consentData.gdprApplies&&(t=t.replace("${gdpr}",this.consentData.gdprApplies)),this.consentData.tcString&&(t=t.replace("${gdpr_consent_"+e+"}",this.consentData.tcString)))}catch(i){throw"v1error\n"+JSON.stringify(this.consentData)+"\n"+t+"\n"+i}return t},appendConsentParams:function(t,e){if(e&&!isNaN(e)){t+="&vendorId="+e;try{this.consentData&&(this.consentData.gdprApplies&&(t+="&gdprApplies="+this.consentData.gdprApplies),this.consentData.tcString&&(t+="&tcString="+this.consentData.tcString))}catch(i){throw"v1error\n"+JSON.stringify(this.consentData)+"\n"+t+"\n"+i}}return t},getAppRect:function(){if("app"in this.$refs){var t=this.$refs["app"];if("undefined"!==typeof t)return t.getBoundingClientRect()}return null}},watch:{value:function(t,e){var i=t&&t.banner?t.banner.id:null,n=e&&e.banner?e.banner.id:null;i!=n&&(this.impression=!1,this.viewableImpression=!1,this.handleImpression(),this.checkViewable())},widthAndHeight:function(t){var e=this;if(e.rendered){var i=t&&t.width>=0?t.width:null,n=t&&t.height>=0?t.height:null;if("function"==typeof e.rendered)e.$nextTick((function(){e.rendered(i,n)}));else if("string"==typeof e.rendered){var r=window[e.rendered];"function"==typeof r&&e.$nextTick((function(){r(i,n)}))}}},isReady:function(t){t&&this.$nextTick((()=>{this.handleImpression(),this.checkViewable()}))}}},Fd=Nd,Bd=Fr(Fd,Td,Dd,!1,null,null,null),Vd=Bd.exports,$d=function(){var t=this,e=t._self._c;return t.slots.length>0?e("div",{attrs:{id:t.id}},t._l(t.slots,(function(i,n){return e("banner",{key:n,style:t.slots.length>1?"margin-bottom: 1rem;":"",attrs:{value:i,label:0==n||t.labelAll?t.label:null,"label-position":t.labelPosition,rendered:t.rendered}})})),1):t._e()},jd=[];a().use(Ed);var Wd={name:"banners",props:["id","value","label","label-position","label-all","max-slots","guideline-size","xs","sm","md","lg","callback","initialized","rendered"],data:function(){return{fullContainer:1,standardContainer:2,mediaWidths:["xs","sm","md","lg"],mediaWidth:a().$mediaWidth(),shuffled:[]}},created:function(){var t=this;if(t.value&&t.value.length>0&&(t.shuffled=t.shuffle(t.value)),t.initialized){var e=t.slots.length>0;if("function"==typeof t.initialized)t.$nextTick((function(){t.initialized(e)}));else if("string"==typeof t.initialized){var i=window[t.initialized];"function"==typeof i&&t.$nextTick((function(){i(e)}))}}window.addEventListener("resize",t.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},computed:{computedMaxSlots:function(){return null!=this.maxSlots&&this.maxSlots>0?this.maxSlots:1},computedGuidelineSize:function(){return null!=this.guidelineSize&&this.guidelineSize>0?this.guidelineSize:4},sizes:function(){for(var t=this.mediaWidths.indexOf(this.mediaWidth);t>=0;t--){var e=this.mediaWidths[t],i=this[e];if(i)return i}return null},slots:function(){for(var t=this,e=[],i=t.slotCandidates,n=i.banners,r=i.fillers,o=function(){return n.length<t.computedGuidelineSize&&r.length>0?n.length>0?n.splice(0,1)[0]:r.splice(0,1)[0]:n.length>0?n.splice(0,1)[0]:null},a=0;a<t.computedMaxSlots;a++){var s=o();s&&e.push(s)}return e},slotCandidates:function(){for(var t=[],e=[],i=0;i<this.shuffled.length;i++){var n=this.shuffled[i],r=this.findCreative(n);if(r){var o={banner:n,creative:r};n.filler?e.push(o):t.push(o)}}return{banners:t,fillers:e}},reinitOnAnyResize:function(){for(var t=0;t<this.slots.length;t++)if(this.slots[t].creative.container==this.fullContainer)return!0;return!1}},methods:{shuffle:function(t){for(var e=[],i=0;i<t.length;i++)e.splice(Math.floor(Math.random()*(e.length+1)),0,t[i]);return e},isImage:function(t){return!!t.img},isHtml5:function(t){return!!t.html},isScript:function(t){return!!t.script},findCreative:function(t){var e=this.sizes,i=[],n=this.mediaWidth;
14if(e&&t.creatives)for(var r=0;r<t.creatives.length;r++){var o=t.creatives[r];if(o.mediaWidth==n)for(var a=0;a<e.length;a++)o.width==e[a][0]&&o.height==e[a][1]&&i.push(o)}if(1==i.length)return i[0];if(i.length>1){for(var s=0;s<i.length;s++)if(this.isScript(i[s]))return i[s];for(var l=0;l<i.length;l++)if(this.isHtml5(i[l]))return i[l];for(var u=0;u<i.length;u++)if(this.isImage(i[u]))return i[u]}return null},handleResize:function(){var t=a().$mediaWidth();(this.mediaWidth!=t||"xs"==t||this.reinitOnAnyResize)&&(this.mediaWidth=t)}}},Hd=Wd,Ud=Fr(Hd,$d,jd,!1,null,null,null),qd=Ud.exports,Gd=function(){var t=this,e=t._self._c;return e("section",[e("div",{staticClass:"blog-list-inner"},t._l(t.renderList,(function(i){return e("div",{key:i.key},["article"===i.kind?e("article",[e("header",[e("h2",[t._v(t._s(i.item.title))]),e("blog-sub-byline",{attrs:{"author-name":i.item.authorName,"columnist-id":i.item.columnistId,"administrator-id":i.item.administratorId,"byline-date":t.getLatestDate(i.item),"author-link":i.item.authorLink,"portrait-url-prop":i.item.portraitUrl,language:t.language}})],1),i.item._files&&i.item._files.length?e("gallery",{staticClass:"gallery-container",attrs:{value:i.item._files,"hide-pagination":1===i.item._files.length}}):t._e(),e("div",{staticClass:"article-body"},t._l(i.item.parts,(function(i,n){return e("div",{key:n+"-body"},[t.isGallery(i)?e("gallery",{staticClass:"gallery-container",attrs:{value:t.filesForPart(i),"hide-pagination":!0}}):i.html?e("div",{domProps:{innerHTML:t._s(t.sanitizePartHtml(i.html))}}):t._e()],1)})),0),e("footer",[i.item.source?e("p",[e("span",[t._v(t._s(t.bundle.id_1519)+" ")]),e("span",[t._v(" "+t._s(t.bb(i.item.source))+" ")])]):t._e(),e("vatin-box",{attrs:{advertorial:i.item.advertorial,vatins:i.item.articleVatinCollection,label:t.bundle.id_12055}}),e("article-projects",{attrs:{projects:i.item.projects}})],1)],1):"true"===t.showBanners?e("div",{staticClass:"blog-banner-slot",class:{"blog-banner-slot--double":i.banners&&2===i.banners.length}},t._l(i.banners,(function(i){return e("div",{key:i,staticClass:"blog-banner-item",attrs:{"data-banner":i}},["takeover1"===i?[e("small",{staticClass:"mowgli-label gam-label-takeover gam-label",attrs:{id:"label-regular-takeover-article-1"}},[t._v(" "+t._s(t.bundle.id_11005)+" ")]),e("google-ad-blog-display",{attrs:{id:"regular-takeover-article-1","ad-unit-path":t.adUnitPathTakeover+"/regular-takeover-article-1","topic-id":t.topicId,"industry-id":t.industryId,refreshAdSlot:t.refreshAdSlot,sizeMapping:{large:[[980,250]],mall:[[980,250]],mobile:[[300,100]]}}})]:"campaign1"===i?[e("small",{staticClass:"mowgli-label gam-label-campaign gam-label",attrs:{id:"label-regular-campaign-article-1"}},[t._v(" "+t._s(t.bundle.id_11005)+" ")]),e("google-ad-blog-display",{attrs:{id:"regular-campaign-article-1","ad-unit-path":t.adUnitPathCampaign+"/regular-campaign-article-1","topic-id":t.topicId,"industry-id":t.industryId,refreshAdSlot:t.refreshAdSlot,sizeMapping:{large:[[300,250]],small:[[300,250]],mobile:[[300,250]]}}})]:"campaign2"===i?[e("small",{staticClass:"mowgli-label gam-label-campaign gam-label",attrs:{id:"label-regular-campaign-article-2"}},[t._v(" "+t._s(t.bundle.id_11005)+" ")]),e("google-ad-blog-display",{attrs:{id:"regular-campaign-article-2","ad-unit-path":t.adUnitPathCampaign+"/regular-campaign-article-2","topic-id":t.topicId,"industry-id":t.industryId,refreshAdSlot:t.refreshAdSlot,sizeMapping:{large:[[300,250]],small:[[300,250]],mobile:[[300,250]]}}})]:"campaign3"===i?[e("small",{staticClass:"mowgli-label gam-label-campaign gam-label",attrs:{id:"label-regular-campaign-article-3"}},[t._v(" "+t._s(t.bundle.id_11005)+" ")]),e("google-ad-blog-display",{attrs:{id:"regular-campaign-article-3","ad-unit-path":t.adUnitPathCampaign+"/regular-campaign-article-3","topic-id":t.topicId,"industry-id":t.industryId,refreshAdSlot:t.refreshAdSlot,sizeMapping:{large:[[300,250]],small:[[300,250]],mobile:[[300,250]]}}})]:"campaign4"===i?[e("small",{staticClass:"mowgli-label gam-label-campaign gam-label",attrs:{id:"label-regular-campaign-article-4"}},[t._v(" "+t._s(t.bundle.id_11005)+" ")]),e("google-ad-blog-display",{attrs:{id:"regular-campaign-article-4","ad-unit-path":t.adUnitPathCampaign+"/regular-campaign-article-4","topic-id":t.topicId,"industry-id":t.industryId,refreshAdSlot:t.refreshAdSlot,sizeMapping:{large:[[300,250]],small:[[300,250]],mobile:[[300,250]]}}})]:t._e()],2)})),0):t._e()])})),0)])},Yd=[],Xd={name:"blog-article-list",props:{articleId:{type:Number,required:!0},language:{type:String,default:""},adUnitPathCampaign:{type:String,default:""},adUnitPathTakeover:{type:String,default:""},topicId:{type:String,default:null},industryId:{type:String,default:null},refreshAdSlot:{type:String,default:"false"},showBanners:{type:String,default:"false"}},data(){return{list:[],loading:!1,bundle:{id_1519:"Source:",id_11005:"Advertisement"},pollTimer:null,latestCreatedIso:null,latestUpdatedIso:null,iframelyObserver:null,iframelyTimer:null,iframelyPromise:null,isDesktop:!1,desktopMq:null,includeInactive:!1}},created(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},mounted(){this.includeInactive=document.referrer?.includes("aptoma.no"),this.desktopMq=window.matchMedia("(min-width: 768px)"),this.isDesktop=this.desktopMq.matches,this.desktopMq.addEventListener?this.desktopMq.addEventListener("change",this.onBreakpointChange):this.desktopMq.addListener(this.onBreakpointChange),this.setupAdListeners(),this.loadArticles(),this.startLiveUpdates(),this.initTwitterEmbeds(),this.scheduleIframelyRender(),document.addEventListener("visibilitychange",this.onVisibilityChange)},beforeDestroy(){this.stopLiveUpdates(),document.removeEventListener("visibilitychange",this.onVisibilityChange),this.desktopMq&&(this.desktopMq.removeEventListener?this.desktopMq.removeEventListener("change",this.onBreakpointChange):this.desktopMq.removeListener(this.onBreakpointChange)),this.iframelyObserver&&this.iframelyObserver.disconnect(),this.iframelyObserver=null},updated(){this.initTwitterEmbeds(),this.scheduleIframelyRender()},computed:{activeList(){return this.includeInactive?this.list||[]:(this.list||[]).filter((t=>t&&t.active))},bannerSequence(){return["takeover1","campaign1","campaign2","campaign3","campaign4"]},renderList(){const t=[];let e=0;const i=this.isDesktop?[["takeover1"],["campaign1","campaign2"],["campaign3","campaign4"]]:[["takeover1"],["campaign1"],["campaign2"],["campaign3"],["campaign4"]];let n=0;this.activeList.forEach(((r,o)=>{if(t.push({kind:"article",item:r,key:`a-${r.id??o}
14`}),e++,2===e&&n<i.length){const r=i[n++];t.push({kind:"banner",banners:r,key:`b-${r.join("-")}-${n}`}),e=0}}));while(n<i.length){const e=i[n++];t.push({kind:"banner",banners:e,key:`b-${e.join("-")}-${n}`})}return t}},methods:{bb:function(t){return a().$bbUtil.block(t)},startLiveUpdates(){this.pollTimer||(this.pollTimer=setInterval((()=>{this.refreshArticles()}),6e4))},stopLiveUpdates(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)},onVisibilityChange(){document.hidden?this.stopLiveUpdates():(this.startLiveUpdates(),this.refreshArticles())},async fetchArticleList(){const t=await this.$services.articleService.loadBlogArticleList(this.articleId,this.latestCreatedIso,this.includeInactive),e=Array.isArray(t)?t.filter(Boolean):[];return e.sort(((t,e)=>new Date(e.created)-new Date(t.created))),e},mergeArticleList(t){const e=new Map;for(const c of this.list||[])c&&null!=c.id&&e.set(c.id,c);const i=[];for(const c of t){if(!c)continue;if(null==c.id){i.push(c);continue}const t=e.get(c.id);if(t){const i={...t,...c};t._files&&!c._files&&(i._files=t._files),e.set(c.id,i)}else e.set(c.id,c),i.push(c)}const n=Array.from(e.values()),r=(this.list||[]).filter((t=>t&&null==t.id)),o=t.filter((t=>t&&null==t.id)),a=[...o,...r],s=[...n,...a].filter(Boolean);s.sort(((t,e)=>new Date(e.created)-new Date(t.created))),this.list=s;const l=s.map((t=>new Date(t.created))).filter((t=>!isNaN(t.getTime()))).sort(((t,e)=>e-t))[0];this.latestCreatedIso=l?l.toISOString():this.latestCreatedIso;const u=s.map((t=>new Date(t.updated))).filter((t=>!isNaN(t.getTime()))).sort(((t,e)=>e-t))[0];return this.latestUpdatedIso=u?u.toISOString():this.latestUpdatedIso,window.dispatchEvent(new CustomEvent("blog-last-updated",{detail:{lastUpdated:l?.toISOString()??null}})),i},async fetchFilesForArticles(t){const e=(t||[]).filter((t=>t&&null!=t.id)).map((t=>{const e=t.id;return this.$services.articleService.fetchFileJson(e).then((t=>{const i=Array.isArray(t)?t:t?[t]:[],n=this.list.findIndex((t=>t&&t.id===e));-1!==n&&this.$set(this.list[n],"_files",i)})).catch((t=>{const i=this.list.findIndex((t=>t&&t.id===e));-1!==i&&this.$set(this.list[i],"_files",[]),console.log("fetchFileJson failed for",e,t)}))}));await Promise.all(e)},async loadArticles(){this.loading=!0;try{const t=await this.fetchArticleList(),e=this.mergeArticleList(t);this.$nextTick((()=>{this.initFactboxes()})),await this.fetchFilesForArticles(e.length?e:this.list)}catch(t){console.error("Failed loading articles",t),this.list=[]}finally{this.loading=!1}},async refreshArticles(){try{const t=await this.fetchArticleList(),e=this.mergeArticleList(t);e.length&&(this.$nextTick((()=>{this.initFactboxes()})),await this.fetchFilesForArticles(e))}catch(t){console.warn("refreshArticles failed",t)}},bodyWithoutGallery(t){return t?String(t).replace(/<figure[^>]*class="[^"]*\bgallery-container\b[^"]*"[\s\S]*?<\/figure>/gi,""):""},formatDate(t){const e=this.toDate(t);return e?new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short",year:"numeric"}).format(e):""},toDate(t){if(!t)return null;if(t instanceof Date)return isNaN(t.getTime())?null:t;const e=new Date(t);return isNaN(e.getTime())?null:e},isGallery(t){return t&&"gallery"===String(t.type).toLowerCase()},filesForPart(t){if(!t)return[];if(t._files)return t._files;if(Array.isArray(t.json))return this.$set(t,"_files",t.json),t._files;if("string"===typeof t.json&&t.json.trim()){let i=t.json;-1!==i.indexOf(""")&&(i=i.replace(/"/g,'"'));try{const e=JSON.parse(i),n=Array.isArray(e)?e:e?[e]:[];return this.$set(t,"_files",n),t._files}catch(e){console.warn("Failed to parse part.json for gallery part",e,t)}}return this.$set(t,"_files",[]),t._files},initFactboxes(){this.$nextTick((()=>{window.$&&$.fn.collapsibleFactbox&&$(this.$el).find(".collapsible-factbox").not(".factbox-initialized").each((function(){const t=$(this);try{t.collapsibleFactbox()}catch(Mp){console.warn("collapsibleFactbox error on",t[0],Mp)}t.addClass("factbox-initialized")}))}))},ensureTwitterWidgets(){return window.twttr&&window.twttr.widgets?Promise.resolve():(this._twitterWidgetsPromise||(this._twitterWidgetsPromise=new Promise(((t,e)=>{const i=document.querySelector('script[src="https://platform.twitter.com/widgets.js"]');if(i){const e=()=>{window.twttr&&window.twttr.widgets?t():setTimeout(e,200)};return void e()}const n=document.createElement("script");n.async=!0,n.src="https://platform.twitter.com/widgets.js",n.charset="utf-8",n.onload=()=>t(),n.onerror=t=>e(t),document.head.appendChild(n)}))),this._twitterWidgetsPromise)},initTwitterEmbeds(){this.$nextTick((()=>{const t=this.$el;t&&t.querySelector(".twitter-tweet")&&this.ensureTwitterWidgets().then((()=>{window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(t)})).catch((t=>console.warn("Twitter widgets failed to load",t)))}))},sanitizePartHtml(t){return String(t).replace(/<script[^>]*platform\.twitter\.com\/widgets\.js[^>]*><\/script>/gi,"")},ensureIframely(){return window.iframely&&"function"===typeof window.iframely.load?Promise.resolve():(this.iframelyPromise||(this.iframelyPromise=new Promise(((t,e)=>{const i=document.querySelector('script[src="https://cdn.iframe.ly/embed.js"]');if(i){const e=()=>{window.iframely&&"function"===typeof window.iframely.load?t():setTimeout(e,100)};return void e()}const n=document.createElement("script");n.async=!0,n.src="https://cdn.iframe.ly/embed.js",n.onload=()=>t(),n.onerror=t=>e(t),document.head.appendChild(n)}))),this.iframelyPromise)},normalizeIframelyUrls(t){t.querySelectorAll("a[data-iframely-url]").forEach((t=>{const e=t.getAttribute("data-iframely-url");e&&e.startsWith("//")&&t.setAttribute("data-iframely-url","https:"+e)}))},async renderIframelyEmbeds(){const t=this.$el;t&&t.querySelector(".iframely-embed a[data-iframely-url]")&&(this.normalizeIframelyUrls(t),this.$nextTick((()=>{requestAnimationFrame((()=>{this._renderIframelyNow()}))})))},async _renderIframelyNow(){const t=this.$el;if(t)try{await this.ensureIframely(),window.iframely.load(t),setTimeout((()=>{try{window.iframely.load(t)}catch(hg){}}),150)}catch(Mp){console.warn("Iframely render failed",Mp)}},scheduleIframelyRender(){clearTimeout(this.iframelyTimer),this.iframelyTimer=setTimeout((()=>this.renderIframelyEmbeds()),50)},onBreakpointChange(t){this.isDesktop=t.matches},setupAdListeners(){window.googletag&&googletag.pubads&&(googletag.cmd=googletag.cmd||[],googletag.cmd.push((()=>{googletag.pubads().addEventListener("slotRenderEnded",(t=>{const e=t.slot.getSlotElementId();this.handleSlotRender(e,t.isEmpty)}))})))},handleSlotRender(t,e){const i="label-"+t,n=document.getElementById(i);n&&(n.style.display=e?"none":"block")},getLatestDate(t){const e=new Date(t.created);return e.toISOString()}}},Zd=Xd,Kd=Fr(Zd,Gd,Yd,!1,null,null,null),Jd=Kd.exports,Qd=function(){var t=this,e=t._self._c;return e("section",{staticClass:"byline"},[e("div",[e("div",[t.portraitPossible?[t.portraitUrl?e("img",{attrs:{src:t.portraitUrl,loading:"lazy"}}):e("i",{staticClass:"fa-light fa-user",attrs:{"aria-hidden":"true"}})]:t._e(),t.authorName?e("span",[t.normalizedAuthorLink?[e("a",{attrs:{href:t.normalizedAuthorLink}},[t._v(" "+t._s(t.bbReplace(t.bundle.id_1513,t.authorName))+" ")])]:[e("span",[t._v(t._s(t.bbReplace(t.bundle.id_1513,t.authorName)))])]],2):t._e()],2)]),t.useUpdate?e("div",{staticClass:"byline-timestamps"},[e("time",[e("i",{staticClass:"fa-light fa-clock",attrs:{"aria-hidden":"true"}}),e("span",[t._v(t._s(t.bundle.id_9151)+" - "+t._s(t.createdTimestamp))])]),e("time",[e("i",{staticClass:"fa-light fa-clock",attrs:{"aria-hidden":"true"}}),e("span",[t._v(t._s(t.bundle.id_12668)+" - "+t._s(t.updateFormatted()))])])]):e("div",{staticClass:"byline-timestamps"},[e("time",[e("i",{staticClass:"fa-light fa-clock",attrs:{"aria-hidden":"true"}}),e("span",[t._v(t._s(t.createdTimestamp))])])])])},tf=[],ef={name:"blog-byline",props:{authorName:{type:String,default:""},columnistId:{type:[Number,String,Object],default:null},administratorId:{type:[Number,String,Object],default:null},createdDate:{type:[String,Object],default:null},authorLink:{type:String,default:""},portraitUrlProp:{type:String,default:""}
14,useUpdate:{type:Boolean,default:!1},language:{type:String,default:""}},data(){return{bundle:{id_1513:"By {0}",id_9151:"Created",id_12668:"Updated"},lastUpdated:null}},created(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},mounted(){this._onDocLastUpdated=t=>{const e=t&&t.detail&&t.detail.lastUpdated;this.lastUpdated=e?new Date(e):null},window.addEventListener("blog-last-updated",this._onDocLastUpdated)},beforeDestroy(){this._onDocLastUpdated&&window.removeEventListener("blog-last-updated",this._onDocLastUpdated)},computed:{portraitPossible(){return Boolean(this.columnistId||this.administratorId||this.portraitUrlProp)},portraitUrl(){return this.portraitUrlProp||null},normalizedAuthorLink(){const t=(this.authorLink||"").trim();return t?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?`mailto:${t}`:/^https?:\/\//i.test(t)?t:`https://${t}`:""},createdTimestamp(){return this.timestampFormatted(this.createdDate)}},methods:{toDate(t){if(!t)return null;if(t instanceof Date)return isNaN(t.getTime())?null:t;const e=new Date(t);return isNaN(e.getTime())?null:e},bbReplace(t,e){return a().$bbUtil.block(t).replace("{0}",e)},timestampFormatted(t){const e=this.toDate(t);return e?new Intl.DateTimeFormat(this.language,{dateStyle:"long",timeStyle:"short"}).format(e):""},updateFormatted(){const t=this.toDate(this.lastUpdated?this.lastUpdated:this.createdDate);return t?new Intl.DateTimeFormat(this.language,{dateStyle:"long",timeStyle:"short"}).format(t):""}}},nf=ef,rf=Fr(nf,Qd,tf,!1,null,null,null),of=rf.exports,af=function(){var t=this,e=t._self._c;return e("section",{staticClass:"byline"},[e("div",[e("div",[t.portraitPossible?[t.portraitUrl?e("img",{attrs:{src:t.portraitUrl,loading:"lazy"}}):e("i",{staticClass:"fa-light fa-user",attrs:{"aria-hidden":"true"}})]:t._e(),t.authorName?e("span",[t.normalizedAuthorLink?[e("a",{attrs:{href:t.normalizedAuthorLink}},[t._v(" "+t._s(t.bbReplace(t.bundle.id_1513,t.authorName))+" ")])]:[e("span",[t._v(t._s(t.bbReplace(t.bundle.id_1513,t.authorName)))])]],2):t._e()],2)]),e("div",{staticClass:"byline-timestamps"},[e("time",[e("i",{staticClass:"fa-light fa-clock",attrs:{"aria-hidden":"true"}}),e("span",[t._v(t._s(t.bylineTimestamp))])])])])},sf=[],lf={name:"blog-byline",props:{authorName:{type:String,default:""},columnistId:{type:[Number,String,Object],default:null},administratorId:{type:[Number,String,Object],default:null},bylineDate:{type:[String,Object],default:null},authorLink:{type:String,default:""},portraitUrlProp:{type:String,default:""},language:{type:String,default:""}},data(){return{bundle:{id_1513:"By {0}"},lastUpdated:null}},created(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},mounted(){},beforeDestroy(){},computed:{portraitPossible(){return Boolean(this.columnistId||this.administratorId||this.portraitUrlProp)},portraitUrl(){return this.portraitUrlProp||null},normalizedAuthorLink(){const t=(this.authorLink||"").trim();return t?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?`mailto:${t}`:/^https?:\/\//i.test(t)?t:`https://${t}`:""},bylineTimestamp(){return this.timestampFormatted(this.bylineDate)}},methods:{toDate(t){if(!t)return null;if(t instanceof Date)return isNaN(t.getTime())?null:t;const e=new Date(t);return isNaN(e.getTime())?null:e},bbReplace(t,e){return a().$bbUtil.block(t).replace("{0}",e)},timestampFormatted(t){const e=this.toDate(t);return e?new Intl.DateTimeFormat(this.language,{dateStyle:"long",timeStyle:"short"}).format(e):""}}},uf=lf,cf=Fr(uf,af,sf,!1,null,"05c75de3",null),hf=cf.exports,df=function(){var t=this,e=t._self._c;return e("button",{on:{click:function(e){return e.preventDefault(),t.toggleBookmark()}}},[e("i",{staticClass:"fa-bookmark",class:{"fa-light":!t.isBookmarked,"fa-solid":t.isBookmarked}})])},ff=[],pf={name:"bookmark-button",props:{value:{type:Number,required:!0},type:{type:String,required:!0}},data:function(){return{isBookmarked:!1}},computed:{bookmarks:function(){switch(this.type){case"article":return window.ArticleBookmarks;case"announcement":case"machine":case"product":case"shared":case"competence":case"job":case"course":case"post":return window.PostBookmarks;default:throw"Invalid type: "+this.type}}},mounted:function(){this.loadBookmarks(),window.addEventListener("pageshow",this.handlePageshow)},beforeDestroy:function(){window.removeEventListener("pageshow",this.handlePageshow)},methods:{handlePageshow(){this.loadBookmarks()},toggleBookmark(){if(!window.visitor||!window.visitor.person)return void Vue.$hashUtil.add("paywall");const t=!this.isBookmarked;this.bookmarks.set(this.$services.bookmarkSecureService,this.value,t).then((()=>{this.isBookmarked=t}))},loadBookmarks(){window?.visitor?.person&&this.bookmarks.init(this.$services.bookmarkSecureService,[this.value],(t=>{this.isBookmarked=t[this.value]}),(t=>{this.isBookmarked=t}))}}},gf=pf,mf=Fr(gf,df,ff,!1,null,null,null),vf=mf.exports,yf=function(){var t=this,e=t._self._c;return t.text?e("span",{staticClass:"character-count"},[t._v(" "+t._s(t.text)+" ")]):t._e()},bf=[],_f={name:"character-count",props:{value:{type:String},max:{type:Number}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},data:function(){return{bundle:{id_12243:"{0} / {1}"}}},computed:{text:function(){return this.value&&this.max?this.bundle.id_12243.replace("{0}",this.value.length).replace("{1}",this.max):null}}},wf=_f,xf=Fr(wf,yf,bf,!1,null,null,null),Sf=xf.exports,Cf=function(){var t=this,e=t._self._c;return e("div",t._l(t.value,(function(i,n){return e("a",{key:n,class:{focus:i.focus},attrs:{href:i.target}},[t._v(t._s(i.name))])})),0)},kf=[],Mf={name:"featured-links",props:{value:{type:Array,required:!0}}},Tf=Mf,Df=Fr(Tf,Cf,kf,!1,null,null,null),If=Df.exports,Af=function(){var t=this,e=t._self._c;return e("div",[e("div",{ref:"placeholder",staticClass:"mb-4",style:t.placeholderStyle}
14),e("div",{ref:"carousel",staticClass:"carousel file-carousel slide",class:{"mb-4":!t.isBeforeOpening&&!t.isOpening,"before-opening":t.isBeforeOpening,opening:t.isOpening,"before-closing":t.isBeforeClosing,closing:t.isClosing},style:t.carouselStyle,attrs:{"data-bs-ride":"false","data-bs-keyboard":"false","data-bs-touch":"false"}},[t.value.length>1?e("div",{staticClass:"carousel-indicators",style:t.indicatorsStyle},t._l(t.value,(function(i,n){return e("button",{key:"indicator"+n,class:{active:null!=t.target?n==t.target:n==t.active},attrs:{type:"button","aria-current":null!=t.target?n==t.target:n==t.active,"aria-label":"Slide "+(n+1)},on:{click:function(e){return e.preventDefault(),t.gotoIndex(n)}}})})),0):t._e(),e("div",{staticClass:"carousel-inner"},t._l(t.value,(function(i,n){return e("div",{key:"file"+n,staticClass:"carousel-item align-items-center",class:t.itemClass(n),on:{click:function(e){e.preventDefault(),t.isOpening?t.close():t.open()}}},[e("figure",{ref:"figure",refInFor:!0},[e("a",{ref:"link",refInFor:!0,style:"background-image: url("+t.window.fileDomain+"/ajax-loader/transparent-black-16x16.svg);",attrs:{href:t.window.fileDomain+"/"+i.code+"."+i.extension,title:i.seoText,target:"_blank"},on:{click:function(t){t.preventDefault()}}},[e("img",{style:t.imgStyle,attrs:{src:t.window.fileDomain+"/"+i.code+"_1000_1000."+i.extension},on:{load:function(e){return t.setTextHeight(n)}}})]),i.seoText?e("figcaption",[t._v(t._s(i.seoText))]):t._e()])])})),0),e("button",{directives:[{name:"show",rawName:"v-show",value:t.isOpening,expression:"isOpening"}],staticClass:"btn btn-close",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.close()}}},[e("i",{staticClass:"fa-solid fa-times"})]),t.value.length>1?e("button",{staticClass:"carousel-control-prev",style:t.controlsStyle,attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.gotoPrev()}}},[e("i",{staticClass:"fa-solid fa-chevron-left"})]):t._e(),t.value.length>1?e("button",{staticClass:"carousel-control-next",style:t.controlsStyle,attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.gotoNext()}}},[e("i",{staticClass:"fa-solid fa-chevron-right"})]):t._e()]),t.value[t.active]&&t.value[t.active].description?e("div",{staticClass:"mb-4",staticStyle:{"font-size":"0.8125rem"},domProps:{innerHTML:t._s(t.value[t.active].description)}}):t._e()])},Of=[],Ef={name:"file-carousel",props:{value:{type:Array}},data:function(){return{active:0,target:null,animate:!1,goingPrev:!1,goingNext:!1,isBeforeOpening:!1,isOpening:!1,isBeforeClosing:!1,isClosing:!1,left:null,top:null,width:null,height:null,hash:"open-"+(new Date).getTime(),timeouts:[],textHeight:0,windowHeight:window.innerHeight,transitionSpeed:250}},mounted:function(){window.addEventListener("resize",this.handleResize)},created:function(){document.addEventListener("keydown",this.keydownListener)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},destroyed:function(){document.removeEventListener("keydown",this.keydownListener)},computed:{carouselStyle:function(){var t="";return(this.isBeforeOpening||this.isClosing)&&(null!=this.left&&(t+="left: "+this.left+"px;"),null!=this.top&&(t+="top: "+this.top+"px;")),null!=this.width&&(t+="width: "+this.width+"px;"),null!=this.height&&(t+="height: "+this.height+"px;"),t},placeholderStyle:function(){var t="";return this.isBeforeOpening||this.isOpening||this.isBeforeClosing||this.isClosing?(null!=this.width&&(t+="width: "+this.width+"px;"),null!=this.height&&(t+="height: "+this.height+"px;")):t+="display: none;",t},imgStyle:function(){var t="";if(this.isBeforeOpening||this.isOpening){const e=this.windowHeight-2*(this.textHeight+45);t+="max-height: "+e+"px;"}return t},indicatorsStyle:function(){return this.isOpening?"":"bottom: "+this.textHeight+"px;"},controlsStyle:function(){return this.isOpening?"":"bottom: "+this.textHeight+"px;"}},watch:{active:function(t){this.setTextHeight(t)}},methods:{handleResize:function(){this.windowHeight=window.innerHeight},getElementHeight:function(t,e){if(t&&t.length>=e){const i=t[e],n=i.getBoundingClientRect();if(n)return n.height}return 0},setTextHeight:function(t){if(this.active!==t)return;const e=this.getElementHeight(this.$refs.figure,t),i=this.getElementHeight(this.$refs.link,t);this.textHeight=e-i}
14,keydownListener:function(t){27==t.keyCode?this.close():37==t.keyCode?this.gotoPrev():39==t.keyCode&&this.gotoNext()},itemClass:function(t){return{active:this.active==t,"carousel-item-prev":this.goingPrev&&this.target==t,"carousel-item-end":this.goingPrev&&this.animate&&-1!=[this.target,this.active].indexOf(t),"carousel-item-next":this.goingNext&&this.target==t,"carousel-item-start":this.goingNext&&this.animate&&-1!=[this.target,this.active].indexOf(t)}},gotoPrev:function(){this.gotoIndex(this.active-1)},gotoNext:function(){this.gotoIndex(this.active+1)},gotoIndex:function(t){this.active!=t&&null==this.target&&(this.goingPrev=t<this.active,this.goingNext=t>this.active,t<0?t=this.value.length-1:t>this.value.length-1&&(t=0),this.target=t,this.$nextTick((()=>{setTimeout((()=>{this.animate=!0,setTimeout((()=>{this.active=this.target,this.target=null,this.animate=!1}),this.transitionSpeed)}),0)})))},resetTargetSize:function(){this.left=null,this.top=null,this.width=null,this.height=null},setTargetSize:function(t,e){try{(null==this.left||e)&&(this.left=t.left),(null==this.top||e)&&(this.top=t.top),(null==this.width||e)&&(this.width=t.width),(null==this.height||e)&&(this.height=t.height)}catch(i){console.log(i),this.resetTargetSize()}},open:function(){this.clearTimeouts(),this.isBeforeClosing=!1,this.isClosing=!1,this.setTargetSize(this.$refs.carousel.getBoundingClientRect()),location.hash=this.hash,this.isBeforeOpening=!0,this.isOpening=!1,this.$nextTick((()=>{this.timeouts.push(setTimeout((()=>{this.isBeforeOpening=!1,this.isOpening=!0}),0))})),window.addEventListener("popstate",this.close)},close:function(){(this.isBeforeOpening||this.isOpening)&&(this.clearTimeouts(),this.isBeforeOpening=!1,this.isOpening=!1,this.setTargetSize(this.$refs.placeholder.getBoundingClientRect(),!0),this.isBeforeClosing=!0,this.isClosing=!1,this.$nextTick((()=>{this.timeouts.push(setTimeout((()=>{this.isBeforeClosing=!1,this.isClosing=!0,this.$nextTick((()=>{this.timeouts.push(setTimeout((()=>{this.isClosing=!1,this.setTextHeight(this.active),this.resetTargetSize()}),this.transitionSpeed))}))}),0))})),window.removeEventListener("popstate",this.close))},clearTimeouts:function(){for(var t=this.timeouts.splice(0,this.timeouts.length),e=0;e<t.length;e++)clearTimeout(t[e])}}},Pf=Ef,Lf=Fr(Pf,Af,Of,!1,null,null,null),Rf=Lf.exports,zf=function(){var t=this,e=t._self._c;return t.isEmpty?t._e():e("div",{class:t.styleClass},[t.images&&t.images.length?e("a",{class:t.imageClass,attrs:{href:t.value.link}},[e("picture",[t._l(t.images,(function(i,n){return e("source",{key:n,attrs:{srcset:t.getSrcset(i),media:t.getMedia(i)}})})),e("img",{attrs:{src:t.getDefaultImageSrc(t.images),loading:"lazy"}})],2)]):t._e(),e("div",{class:t.textClass},[e("div",[t.value.breaking?e("div",{staticClass:"breaking-tag-container"},[e("i",{staticClass:"breaking-tag"},[e("img",{attrs:{src:t.contextPath+"/binary/breaking-black.svg",loading:"lazy"}}),t._v(t._s(t.bundle.id_11436)+" ")])]):t._e(),t.value.advertorial&&!t.fromTopicPage?e("div",[e("i",{staticClass:"advertorialClass"},[t._v(" "+t._s(t.bundle.id_10942)+" ")])]):t._e(),t.value.mainBlog&&t.value.live&&!t.fromTopicPage?e("div",[e("i",{staticClass:"blog"},[e("img",{attrs:{src:t.contextPath+"/binary/breaking.svg",loading:"lazy"}}),t._v(" "+t._s(t.bundle.id_12681)+" ")])]):t._e(),t.value.topic&&!t.fromTopicPage?e("div",[e("i",{staticClass:"topic"},[t._v(" "+t._s(t.value.topicName)+" ")])]):t._e(),t.value.company?e("div",[e("i",{staticClass:"company"},[t._v(" "+t._s(t.value.companyName)+" ")])]):t._e(),t.value.otherHost?e("div",[e("i",{staticClass:"host"},[e("i",{staticClass:"fa-light fa-external-link"}),t._v(" "+t._s(t.value.otherHostName)+" ")])]):t._e(),t.value.locked?e("div",[e("i",{staticClass:"locked"},[e("i",{staticClass:"fa-light fa-lock"}),t._v(t._s(t.bundle.id_10860)+" ")])]):t._e()]),e("tracker",{attrs:{a:"impression",tn:t.type,tr:t.value.id}},[e("a",{attrs:{href:t.value.link}},[e(t.headingTag,{tag:"component"},[t.value.title.prefix?[e("strong",[t._v(t._s(t.value.title.prefix))]),t._v(t._s(t.value.title.subtitle)+" ")]:e("strong",[t._v(t._s(t.value.title.subtitle))])],2)],1)])],1)])},Nf=[];a().use(zd);var Ff={name:"front-page-article",components:{BookmarkButton:vf},props:{id:{type:String},value:{type:Object},type:{type:String,required:!0,validator:function(t){return-1!==["article","announcement","machine","product","competence","job","course"].indexOf(t)}},fromTopicPage:{type:Boolean},headlineTag:{type:Number},xsImagePosition:{type:String},xsImageSize:{type:String},xsTextSize:{type:String},smImagePosition:{type:String},smImageSize:{type:String},smTextSize:{type:String},mdImagePosition:{type:String},mdImageSize:{type:String},mdTextSize:{type:String},lgImagePosition:{type:String},lgImageSize:{type:String},lgTextSize:{type:String},xlImagePosition:{type:String},xlImageSize:{type:String},xlTextSize:{type:String},xxlImagePosition:{type:String},xxlImageSize:{type:String},xxlTextSize:{type:String}},data:function(){return{bundle:{id_11436:"BREAKING",id_10860:"Plus",id_10942:"Sponsored content",id_12681:"Live"},contextPath:window.contextPath}},created:function(){var t=this;a().$bundle("portal",t.bundle,(function(e){t.bundle=e}))},computed:{isEmpty:function(){return!this.value||0===this.value.length},styleClass:function(){const t=["row","gx-3","gx-md-4","fp-article"],e=(e,i)=>{if(i)switch(i){case"top":t.push("xs"==e?"fp-top":"fp-"+e+"-top");break;case"left":t.push("xs"==e?"fp-left":"fp-"+e+"-left");break;default:t.push("xs"==e?"fp-none":"fp-"+e+"-none");break}};e("xs",this.xsImagePosition),e("sm",this.smImagePosition),e("md",this.mdImagePosition),e("lg",this.lgImagePosition),e("xl",this.xlImagePosition),e("xxl",this.xxlImagePosition);const i=(e,i)=>{if(i)switch(i){case"1":t.push("xs"==e?"fp-h1":"fp-"+e+"-h1");break;
14case"2":t.push("xs"==e?"fp-h2":"fp-"+e+"-h2");break;case"3":t.push("xs"==e?"fp-h3":"fp-"+e+"-h3");break;case"4":t.push("xs"==e?"fp-h4":"fp-"+e+"-h4");break;case"5":t.push("xs"==e?"fp-h5":"fp-"+e+"-h5");break;default:t.push("xs"==e?"fp-h6":"fp-"+e+"-h6");break}};return i("xs",this.xsTextSize),i("sm",this.smTextSize),i("md",this.mdTextSize),i("lg",this.lgTextSize),i("xl",this.xlTextSize),i("xxl",this.xxlTextSize),this.value.highlight&&t.push("fp-highlight"),t.join(" ")},imageClass:function(){const t=["fp-article-img"],e=(e,i,n)=>{if("left"===i&&n)switch(n){case"12x":t.push("xs"===e?"col-12":"col-"+e+"-12");break;case"8x":t.push("xs"===e?"col-8":"col-"+e+"-8");break;case"6x":t.push("xs"===e?"col-6":"col-"+e+"-6");break;case"4x":t.push("xs"===e?"col-4":"col-"+e+"-4");break;case"3x":t.push("xs"===e?"col-3":"col-"+e+"-3");break;default:t.push("xs"===e?"col-2":"col-"+e+"-2");break}};return e("xs",this.xsImagePosition,this.xsImageSize),e("sm",this.smImagePosition,this.smImageSize),e("md",this.mdImagePosition,this.mdImageSize),e("lg",this.lgImagePosition,this.lgImageSize),e("xl",this.xlImagePosition,this.xlImageSize),e("xxl",this.xxlImagePosition,this.xxlImageSize),t.join(" ")},textClass:function(){const t=[],e=(e,i)=>{"left"===i&&t.push("xs"===e?"col":"col-"+e)};return e("xs",this.xsImagePosition),e("sm",this.smImagePosition),e("md",this.mdImagePosition),e("lg",this.lgImagePosition),e("xl",this.xlImagePosition),e("xxl",this.xxlImagePosition),t.join(" ")},headingTag:function(){let t=this.headlineTag;return(!t||t<1||t>6)&&(t=6),"h"+t},images:function(){const t=[];if(this.value.images){for(let e=0;e<this.mediaSizes.order.length;e++){const i=this.mediaSizes.order[e],n=this.getImageSize(i.designation),r=this.value.images[n];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.mediaSize.designation===i.designation&&t.push(n)}}for(let e=0;e<t.length;e++)if(t.length>e+1){const i=t[e+1];t[e].mediaSize.maxWidth=i.mediaSize.minWidth-this.mediaSizes.maxWidthReduction}}return t}},methods:{getImageSize:function(t){return t===this.mediaSizes.xs.designation?this.xsImageSize:t===this.mediaSizes.sm.designation?this.smImageSize||this.xsImageSize:t===this.mediaSizes.md.designation?this.mdImageSize||this.smImageSize||this.xsImageSize:t===this.mediaSizes.lg.designation?this.lgImageSize||this.mdImageSize||this.smImageSize||this.xsImageSize:t===this.mediaSizes.xl.designation?this.xlImageSize||this.lgImageSize||this.mdImageSize||this.smImageSize||this.xsImageSize:t===this.mediaSizes.xxl.designation?this.xxlImageSize||this.xlImageSize||this.lgImageSize||this.mdImageSize||this.smImageSize||this.xsImageSize:null},getSrcset:function(t){return a().$images.getSrcset(t)},getMedia:function(t){return a().$images.getMedia(t)},getDefaultImageSrc:function(t){return a().$images.getDefaultImageSrc(t)}}},Bf=Ff,Vf=Fr(Bf,zf,Nf,!1,null,null,null),$f=Vf.exports,jf=function(){var t=this,e=t._self._c;return t.value&&t.value.length?e("div",[e("div",{ref:"placeholder",staticClass:"gallery-placeholder",style:t.placeholderStyle}),e("div",{ref:"gallery",staticClass:"gallery",class:{"before-opening":t.isBeforeOpening,opening:t.isOpening,open:t.isOpen,"before-closing":t.isBeforeClosing,closing:t.isClosing,closed:t.isClosed,loading:t.isLoading},style:t.galleryStyle,on:{click:function(e){e.preventDefault(),t.isBeforeOpening||t.isOpening||t.isOpen?t.close():t.open()}}},[e("div",{staticClass:"gallery-content"},[e("figure",[e("div",[e("a",{class:t.imgLinkStyle,attrs:{href:t.value[t.active].sourceImage,title:t.value[t.active].description,target:"_blank"}},[e("picture",{key:"picture"+t.active},[t._l(t.value[t.active].images,(function(i,n){return e("source",{key:"source"+t.active+":"+n,attrs:{srcset:t.getSrcset(i),media:t.getMedia(i)}})})),e("img",{key:"img"+t.active,ref:"image",style:t.imgStyle,attrs:{src:t.getDefaultImageSrc(t.value[t.active].images),loading:"lazy"},on:{load:t.imgLoaded}})],2)]),!(t.value.length>1)||t.isClosed&&t.hidePagination?t._e():e("button",{staticClass:"gallery-control-prev",class:{"gallery-control-hidden":!t.isBeforeOpening&&!t.isOpening&&!t.isOpen&&0===t.active},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.previousSlide()}}},[e("i",{staticClass:"fa-light fa-chevron-left"})]),!(t.value.length>1)||t.isClosed&&t.hidePagination?t._e():e("button",{staticClass:"gallery-control-next",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.nextSlide()}}},[e("i",{staticClass:"fa-light fa-chevron-right"})]),e("button",{directives:[{name:"show",rawName:"v-show",value:t.isBeforeOpening||t.isOpening||t.isOpen||t.isBeforeClosing||t.isClosing,expression:"isBeforeOpening || isOpening || isOpen || isBeforeClosing || isClosing"}],staticClass:"gallery-control-close",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),e.stopPropagation(),t.close()}}},[e("i",{staticClass:"fa-light fa-xmark"})])]),t.value[t.active]&&t.value[t.active].description||t.value.length>1?e("figcaption",{on:{click:function(t){t.stopPropagation()}}},[e("div",{ref:"text"},[e("div",{staticClass:"row"},[t.value[t.active]&&t.value[t.active].description?e("div",{staticClass:"col-12 order-1 order-md-0 gallery-caption",class:{"col-md-8":t.value.length>1&&!(t.isClosed&&t.hidePagination),"col-md-12":t.value.length<=1||t.isClosed&&t.hidePagination},domProps:{innerHTML:t._s(t.value[t.active].description)}}):t._e(),!(t.value.length>1)||t.isClosed&&t.hidePagination?t._e():e("div",{staticClass:"col-12 col-md-4 order-0 order-md-1 ms-auto gallery-indicators"},t._l(t.value,(function(i,n){return e("button",{key:"dot"+n,class:{active:n==t.active},on:{click:function(e){return e.preventDefault(),t.jumpToSlide(n)}}},[e("i",{staticClass:"fa-solid fa-circle"})])})),0)])])]):t._e()])])])]):t._e()},Wf=[],Hf={name:"gallery",props:{value:{type:Array},defaultActive:{type:Number},hidePagination:{type:Boolean}},data:function(){return{active:0|this.defaultActive,target:null,animate:!1,goingPrev:!1,goingNext:!1,isBeforeOpening:!1,isOpening:!1,isOpen:!1,isBeforeClosing:!1,isClosing:!1,isClosed:!0,isLoading:!0,left:null,top:null,width:null,height:null,imgWidth:null,imgHeight:null,hash:"open-"+(new Date).getTime(),timeouts:[],textHeight:0,windowHeight:window.innerHeight,transitionSpeed:150,transitionInterval:null,transitionTimeout:null,slideDirection:""}},mounted:function(){window.addEventListener("resize",this.handleResize)},created:function(){document.addEventListener("keydown",this.keydownListener)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)},destroyed:function(){document.removeEventListener("keydown",this.keydownListener)},computed:{galleryStyle:function(){const t=[];return(this.isBeforeOpening||this.isClosing)&&(null!=this.left&&t.push("left: "+this.left+"px;
14"),null!=this.top&&t.push("top: "+this.top+"px;")),null!=this.width&&t.push("width: "+this.width+"px;"),null!=this.height&&t.push("height: "+this.height+"px;"),t.join(" ").trim()},placeholderStyle:function(){const t=[];return this.isBeforeOpening||this.isOpening||this.isOpen||this.isBeforeClosing||this.isClosing?(null!=this.width&&t.push("width: "+this.width+"px;"),null!=this.height&&t.push("height: "+this.height+"px;")):t.push("display: none;"),t.join(" ").trim()},imgLinkStyle:function(){return this.isLoading?this.isClosed?"bg-loading-black-16":"bg-loading-white-16":""},imgStyle:function(){const t=[];if(this.isBeforeOpening||this.isOpening||this.isOpen||this.isBeforeClosing||this.isClosing){let e=this.windowHeight-2*this.textHeight;e<=0&&(e=this.windowHeight),t.push("max-height: calc("+e+"px - 3rem);")}return this.imgWidth&&t.push("width: "+this.imgWidth+"px;"),this.imgHeight&&t.push("height: "+this.imgHeight+"px;"),t.join(" ").trim()},isTransitioning:function(){return[this.isBeforeOpening,this.isOpening,this.isOpen,this.isBeforeClosing,this.isClosing,this.isClosed,this.isLoading]}},watch:{active:function(){const t=this.$refs.image.getBoundingClientRect();t&&(this.imgWidth=t.width,this.imgHeight=t.height),this.isLoading=!0},isTransitioning:function(){this.transitionInterval&&(clearInterval(this.transitionInterval),this.transitionInterval=null),this.transitionTimeout&&(clearTimeout(this.transitionTimeout),this.transitionTimeout=null),this.transitionInterval=setInterval(this.setTextHeight,10),this.transitionTimeout=setTimeout((()=>{clearInterval(this.transitionInterval),this.transitionInterval=null,this.transitionTimeout=null}),this.transitionSpeed)},isLoading:function(t){t||(this.imgWidth=null,this.imgHeight=null)}},methods:{handleResize:function(){this.windowHeight=window.innerHeight},setTextHeight:function(){const t=this.$refs.text?.getBoundingClientRect();this.textHeight=t?t.height:0},imgLoaded:function(){this.isLoading=!1,this.setTextHeight()},keydownListener:function(t){this.isOpen&&(27==t.keyCode?this.close():37==t.keyCode?this.previousSlide():39==t.keyCode&&this.nextSlide())},jumpToSlide:function(t){this.active<t?this.slideDirection="slide-left":this.active>t&&(this.slideDirection="slide-right"),this.active=t},previousSlide:function(){this.slideDirection="slide-right",this.active>0?this.active--:this.active=this.value.length-1},nextSlide:function(){this.slideDirection="slide-left",this.active<this.value.length-1?this.active++:this.active=0},resetTargetSize:function(){this.left=null,this.top=null,this.width=null,this.height=null},setTargetSize:function(t,e){try{(null==this.left||e)&&(this.left=t.left),(null==this.top||e)&&(this.top=t.top),(null==this.width||e)&&(this.width=t.width),(null==this.height||e)&&(this.height=t.height)}catch(i){console.log(i),this.resetTargetSize()}},open:function(){this.clearTimeouts(),this.isBeforeClosing=!1,this.isClosing=!1,this.isClosed=!1,this.setTargetSize(this.$refs.gallery.getBoundingClientRect()),location.hash=this.hash,this.isBeforeOpening=!0,this.isOpening=!1,this.isOpen=!1,this.$nextTick((()=>{this.timeouts.push(setTimeout((()=>{this.isBeforeOpening=!1,this.isOpening=!0,this.timeouts.push(setTimeout((()=>{this.isOpening=!1,this.isOpen=!0}),this.transitionSpeed))}),0))})),window.addEventListener("popstate",this.close)},close:function(){(this.isBeforeOpening||this.isOpening||this.isOpen)&&(this.clearTimeouts(),this.isBeforeOpening=!1,this.isOpening=!1,this.isOpen=!1,this.setTargetSize(this.$refs.placeholder.getBoundingClientRect(),!0),this.isBeforeClosing=!0,this.isClosing=!1,this.isClosed=!1,this.$nextTick((()=>{this.timeouts.push(setTimeout((()=>{this.defaultActive>=0&&(this.active=this.defaultActive),this.isBeforeClosing=!1,this.isClosing=!0,this.$nextTick((()=>{this.timeouts.push(setTimeout((()=>{this.isClosing=!1,this.isClosed=!0,this.resetTargetSize()}),this.transitionSpeed))}))}),0))})),window.removeEventListener("popstate",this.close))},clearTimeouts:function(){const t=this.timeouts.splice(0,this.timeouts.length);for(let e=0;e<t.length;e++)clearTimeout(t[e])},getSrcset:function(t){return Vue.$images.getSrcset(t)},getMedia:function(t){return Vue.$images.getMedia(t)},getDefaultImageSrc:function(t){return Vue.$images.getDefaultImageSrc(t)}}}
14,Uf=Hf,qf=Fr(Uf,jf,Wf,!1,null,null,null),Gf=qf.exports,Yf=function(){var t=this,e=t._self._c;return e("form",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.deactivate,expression:"deactivate"}],staticClass:"input-group",attrs:{action:t.window.contextPath+"/search",method:"get"}},[e("span",{staticClass:"input-group-text",on:{click:t.activate}},[e("i",{staticClass:"fa-light fa-search"})]),e("transition",{attrs:{mode:"out-in",name:"fade-in"}},[t.active?e("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"searchInput",staticClass:"form-control",attrs:{name:"q",type:"text",placeholder:t.bundle.id_10906},domProps:{value:t.query},on:{input:function(e){e.target.composing||(t.query=e.target.value)}}}):e("button",{staticClass:"btn btn-link",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.activate.apply(null,arguments)}}},[t._v(" "+t._s(t.bundle.id_9206)+" ")])])],1)},Xf=[],Zf=(n(6229),n(7330),n(2062),{name:"global-search-icon",data:function(){return{activated:!1,query:"",bundle:{id_9206:"Search",id_10906:"Enter keywords..."}}},created:function(){if(a().$bundle("portal",this.bundle,(t=>{this.bundle=t})),window.location.pathname===`${window.contextPath}/search`){const t=new URLSearchParams(window.location.search),e=t.get("q");e&&(this.query=e)}},computed:{active:function(){return this.activated||this.query.length}},methods:{activate:function(){this.activated=!0,this.$nextTick((()=>{let t=0;const e=setInterval((()=>{t++,(t>100||this.$refs.searchInput)&&(this.$refs.searchInput.focus(),clearInterval(e))}),10)}))},deactivate:function(){this.activated=!1}}}),Kf=Zf,Jf=Fr(Kf,Yf,Xf,!1,null,"ec7abfc0",null),Qf=Jf.exports,tp=function(){var t=this,e=t._self._c;return e("form",{staticClass:"input-group",class:{transitioning:t.transitioning||t.active,active:t.active},attrs:{action:t.window.contextPath+"/search",method:"get"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control",attrs:{name:"q",type:"text",placeholder:t.bundle.id_10906},domProps:{value:t.query},on:{focus:t.focus,blur:t.blur,input:function(e){e.target.composing||(t.query=e.target.value)}}}),t._m(0)])},ep=[function(){var t=this,e=t._self._c;return e("button",{staticClass:"input-group-text",attrs:{type:"submit"}},[e("i",{staticClass:"fa-light fa-search"})])}],ip={name:"global-search-input",data:function(){return{focused:!1,transitioning:!1,activated:!1,activating:null,deactivating:null,query:"",bundle:{id_10906:"Enter keywords..."}}},created:function(){if(a().$bundle("portal",this.bundle,(t=>{this.bundle=t})),window.location.pathname===`${window.contextPath}/search`){const t=new URLSearchParams(window.location.search),e=t.get("q");e&&(this.query=e)}},computed:{active:function(){return this.activated||this.query.length}},watch:{focused:function(t){t?this.activate():this.deactivate()}},methods:{focus:function(){this.focused=!0},blur:function(){this.focused=!1},reset:function(){this.activating&&(clearTimeout(this.activating),this.activating=null),this.deactivating&&(clearTimeout(this.deactivating),this.deactivating=null)},activate:function(){this.reset(),this.transitioning=!0,this.activating=setTimeout((()=>{this.activated=!0}),0)},deactivate:function(){this.reset(),this.activated=!1,this.deactivating=setTimeout((()=>{this.transitioning=!1}),100)}}},np=ip,rp=Fr(np,tp,ep,!1,null,"1c5f3c34",null),op=rp.exports,ap=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:t.id}})},sp=[],lp={name:"google-ad-display",props:{id:{type:String,required:!0},slotRenderedEvent:{type:Function}},created:function(){googletag.cmd.push((()=>{googletag.pubads().addEventListener("slotRenderEnded",(t=>{const e=t.slot.getSlotElementId();this.id===e&&this.slotRenderedEvent&&this.slotRenderedEvent(t)})),googletag.display(this.id)}))}},up=lp,cp=Fr(up,ap,sp,!1,null,null,null),hp=cp.exports,dp=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:t.id}})},fp=[],pp={name:"google-ad-blog-display",props:{id:{type:String,required:!0},adUnitPath:{type:String,required:!0},sizeMapping:{type:Object,default:null},bpLarge:{type:Array,default:()=>[1588,0]},bpSmall:{type:Array,default:()=>[768,0]},bpMobile:{type:Array,default:()=>[0,0]},topicId:{type:String,default:null},industryId:{type:String,default:null},refreshAdSlot:{type:String,default:"false"},slotRenderedEvent:{type:Function},viewThreshold:{type:Number,default:.5},rootMargin:{type:String,default:"0px"}},data(){return{slot:null,refreshTimer:null,onSlotRenderEnded:null,visibilityHandler:null,io:null,isInView:!1,trackingEl:null,onMouseEnter:null,onMouseLeave:null}},mounted(){window.googletag&&googletag.cmd&&googletag.cmd.push((()=>{try{const t=this.findSlotByElementId(this.id);let e=t;if(!e){const t=this.adUnitPath.includes("takeover"),i=this.buildSizeMapping(this.sizeMapping,t),n=this.flattenSizes(this.sizeMapping);e=googletag.defineSlot(this.adUnitPath,n,this.id).defineSizeMapping(i).addService(googletag.pubads())}this.slot=e;const i={};null!=this.industryId&&"122"!==this.industryId?i["Industry"]=this.industryId:this.adUnitPath.includes("Tungt_NO")&&(i["Industry"]=["123","124","125","128"]),null!=this.topicId&&(i["Topic"]=this.topicId),e.setConfig({targeting:i}),this.onSlotRenderEnded=t=>{try{const e=t.slot&&t.slot.getSlotElementId&&t.slot.getSlotElementId();if(e!==this.id)return;this.registerAdSlot(e),this.slotRenderedEvent&&this.slotRenderedEvent(t)}catch(Mp){console.warn("google-ad-display failed",this.id,Mp)}},googletag.pubads().addEventListener("slotRenderEnded",this.onSlotRenderEnded),googletag.display(this.id),"true"===this.refreshAdSlot&&(this.setupVisibilityPause(),this.setupViewabilityObserver(),this.evaluateRefreshState())}catch(Mp){console.warn("google-ad-display failed",this.id,Mp)}}))},beforeDestroy(){if(this.stopRefreshTimer(),this.visibilityHandler&&(document.removeEventListener("visibilitychange",this.visibilityHandler),this.visibilityHandler=null),this.io&&(this.io.disconnect(),this.io=null),this.unregisterAdSlot(),window.googletag&&googletag.cmd&&this.onSlotRenderEnded){const t=this.onSlotRenderEnded;googletag.cmd.push((()=>{try{googletag.pubads().removeEventListener("slotRenderEnded",t)}catch(Mp){}}))}},methods:{setupViewabilityObserver(){const t=this.$el;if(t){if(!("IntersectionObserver"in window))return this.isInView=!0,void this.evaluateRefreshState();this.io=new IntersectionObserver((t=>{const e=t&&t[0];this.isInView=!!(e&&e.isIntersecting&&e.intersectionRatio>=this.viewThreshold),this.evaluateRefreshState()}),{root:null,rootMargin:this.rootMargin,threshold:[this.viewThreshold]}),this.io.observe(t)}},setupVisibilityPause(){this.visibilityHandler=()=>{this.evaluateRefreshState()},document.addEventListener("visibilitychange",this.visibilityHandler)},registerAdSlot(t){const e=document.getElementById(t);if(!e)return;if(this.trackingEl===e)return;this.unregisterAdSlot();const i=e;i.dataset.adSlotId=t,i.style.position||(i.style.position="relative"),this.onMouseEnter=()=>{window.adTracker=window.adTracker||{hoverState:{},slots:{}},window.adTracker.hoverState.currentSlotId=t,window.adTracker.hoverState.lastChangeTs=Date.now()},this.onMouseLeave=()=>{window.adTracker?.hoverState?.currentSlotId===t&&(window.adTracker.hoverState.currentSlotId=null,window.adTracker.hoverState.lastChangeTs=Date.now())},i.addEventListener("mouseenter",this.onMouseEnter),i.addEventListener("mouseleave",this.onMouseLeave),window.adTracker=window.adTracker||{hoverState:{},slots:{}},window.adTracker.slots[t]=i,this.trackingEl=i},unregisterAdSlot(){this.trackingEl&&this.onMouseEnter&&this.onMouseLeave&&(this.trackingEl.removeEventListener("mouseenter",this.onMouseEnter),this.trackingEl.removeEventListener("mouseleave",this.onMouseLeave)),this.trackingEl=null,this.onMouseEnter=null,this.onMouseLeave=null},evaluateRefreshState(){const t=!document.hidden,e=t&&this.isInView&&"true"===this.refreshAdSlot;e?this.startRefreshTimer():this.stopRefreshTimer()},startRefreshTimer(){if(this.refreshTimer)return;if(!this.slot)return;if("true"!==this.refreshAdSlot)return;const t=Math.floor(2e3*Math.random());setTimeout((()=>{this.refreshTimer||!document.hidden&&this.isInView&&"true"===this.refreshAdSlot&&(this.refreshTimer=setInterval((()=>{!document.hidden&&this.isInView&&window.googletag&&googletag.cmd&&googletag.cmd.push((()=>{try{this.slot&&"function"===typeof googletag.pubads().refresh&&googletag.pubads().refresh([this.slot])}catch(Mp){console.warn("Failed to refresh ad slot",this.id,Mp.message||Mp,Mp.stack||"")}}))}),15e3))}),t)},stopRefreshTimer(){this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)},findSlotByElementId(t){try{const e=googletag.pubads&&googletag.pubads(),i=e&&e.getSlots?e.getSlots():[];return i.find((e=>e.getSlotElementId&&e.getSlotElementId()===t))||null}catch(Mp){return null}},buildSizeMapping(t,e){const i=googletag.sizeMapping();t.large?.length&&i.addSize(this.bpLarge,t.large),t.small?.length&&i.addSize(this.bpSmall,t.small);const n=new Date;return e?n<new Date("2027-01-01")?i.addSize(this.bpMobile,[300,100]):i.addSize(this.bpMobile,[360,125]):t.mobile?.length&&i.addSize(this.bpMobile,t.mobile),i.build()},flattenSizes(t){const e=[].concat(t.large||[],t.small||[],t.mobile||[]),i=new Set,n=[];for(const r of e){const t=Array.isArray(r)?`${r[0]}x${r[1]}`:String(r);i.has(t)||(i.add(t),n.push(r))}return n}}},gp=pp,mp=Fr(gp,dp,fp,!1,null,null,null),vp=mp.exports,yp=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:t.id}})},bp=[],_p={name:"google-tag-display",props:{id:{type:String,required:!0},slotRenderedEvent:{type:Function}},created:function(){googletag.cmd.push((()=>{googletag.pubads().addEventListener("slotRenderEnded",(t=>{const e=t.slot.getSlotElementId();this.id===e&&this.slotRenderedEvent&&this.slotRenderedEvent(t)})),googletag.display()}))}},wp=_p,xp=Fr(wp,yp,bp,!1,null,null,null),Sp=xp.exports,Cp=function(){var t=this,e=t._self._c;return e("input-custom",{attrs:{id:t.id,label:t.label,language:t.language,required:t.required},scopedSlots:t._u([t.help?{key:"help",fn:function(){return[t._t("help")]},proxy:!0}:null],null,!0)}
14,[e("div",{class:{"is-invalid":t.invalid}},[e("input",{attrs:{type:"hidden"},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)}}}),e("div",{class:{"not-dragging":!t.dragging,dragging:t.dragging,"drag-target":t.onDragTarget}},[e("i",{directives:[{name:"show",rawName:"v-show",value:t.dragging,expression:"dragging"}],staticClass:"fa-light fa-cloud-upload"}),e("p",{directives:[{name:"show",rawName:"v-show",value:t.dragging,expression:"dragging"}]},[t._v(t._s(t.multiple?t.bundle.id_11739:t.bundle.id_11738))]),e("div",{staticClass:"btn btn-primary me-2",class:{disabled:t.maxFilesReached}},[t._v(" "+t._s(t.emptyValue?t.multiple?t.bundle.id_11746:t.bundle.id_10587:t.multiple?t.bundle.id_11747:t.bundle.id_10586)+" "),t.uploading?e("i",{staticClass:"fa-loading-white-12 ms-2"}):t._e(),e("input",{ref:"file",staticClass:"dropzone",class:{"is-invalid":t.invalid},staticStyle:{border:"none",height:"100%",left:"0",opacity:"0",position:"absolute",top:"0",width:"100%","z-index":"2"},attrs:{id:t.id,name:"file",type:"file",multiple:t.multiple},on:{click:function(e){t.$refs.file.value=null},change:function(e){return t.handleUpload()}}})])]),t.dragging||t.multiple||t.emptyValue?t._e():e("button",{staticClass:"btn btn-outline-danger",staticStyle:{display:"inline-block"},attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.removeValue()}}},[t._v(" "+t._s(t.bundle.id_10588)+" ")]),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.dragging,expression:"!dragging"}],ref:"preview"},[t.uploading?e("div",{staticClass:"progress",staticStyle:{margin:"1rem 0"}},[e("div",{staticClass:"progress-bar progress-bar-striped active",style:"width: "+t.uploadProgress+"%",attrs:{role:"progressbar","aria-valuenow":t.uploadProgress,"aria-valuemin":"0","aria-valuemax":"100"}},[t._v(" "+t._s(t.uploadProgress)+"% ")])]):t._e(),t.externalPreview||t.multiple?t._e():[t.previewUrl?e("div",{staticStyle:{margin:"1rem 0",overflow:"hidden",position:"relative"},style:t.previewStyle},[t.value.image&&!t.previewImageLoaded?e("div",{class:t.loadingClass,style:t.loadingStyle},[e("div",[e("img",{attrs:{src:t.fileDomain+"/ajax-loader/transparent-black-16x16.svg"}}),e("br"),t._v(" "+t._s(t.bundle.id_12197)+" ")])]):t._e(),t.value.image&&t.croppingEnabled?[e("cropper",{staticClass:"cropper preview-ready",attrs:{src:t.previewUrl,debounce:!1,"min-width":t.cropperMinWidth,"min-height":t.cropperMinHeight,"max-width":t.cropperMaxWidth,"max-height":t.cropperMaxHeight,"stencil-props":t.cropperStencilProps,"default-size":t.cropperDefaultSize},on:{change:t.cropChange}})]:[e("a",{staticClass:"preview-ready",attrs:{href:t.previewUrl,target:"_blank"}},[t.value.image?e("img",{staticStyle:{display:"block","max-width":"100%"},attrs:{src:t.previewUrl},on:{load:function(e){t.previewImageLoaded=!0}}}):[t._v(t._s(t.bundle.id_10589))]],2)]],2):t._e(),t.croppingEnabled&&!t.emptyValue&&t.value.image?e("div",{staticStyle:{margin:"1rem 0"}},[t.cropWidth&&t.cropHeight&&!t.isMinimumSize?e("button",{staticClass:"btn btn-primary me-2",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.crop()}}},[t._v(" "+t._s(t.bundle.id_10738)+" "+t._s(t.cropDimension)+" ")]):t._e(),t.undos.length?e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.undo()}}},[t._v(" "+t._s(t.bundle.id_10739)+" ")]):t._e()]):t._e()],t.externalPreview&&!t.emptyValue?[t._t("preview",null,{value:t.value})]:t._e()],2)]),e("local-errors",{attrs:{value:t.allErrors}})],1)},kp=[];function Mp(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Tp(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Mp(Object(i),!0).forEach((function(e){Dp(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Mp(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Dp(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ip(t,e){if(null==t)return{};var i,n,r=function(t,e){if(null==t)return{};var i,n,r={},o=Object.keys(t);for(n=0;n<o.length;n++)i=o[n],e.indexOf(i)>=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)i=o[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function Ap(t){return function(t){if(Array.isArray(t))return Op(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Op(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Op(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Op(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var Ep,Pp,Lp,Rp=(Ep=function(t){ 15/*! 16 Copyright (c) 2018 Jed Watson. 17 Licensed under the MIT License (MIT), see 18 http://jedwatson.github.io/classnames 19*/ 20!function(){var e={}.hasOwnProperty;function i(){for(var t=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&t.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)e.call(r,s)&&r[s]&&t.push(s);else t.push(r.toString())}}return t.join(" ")}
20t.exports?(i.default=i,t.exports=i):window.classNames=i}()},Ep(Lp={path:Pp,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&Lp.path)}},Lp.exports),Lp.exports),zp=function(t){return function(e,i){if(!e)return t;var n;"string"==typeof e?n=e:i=e;var r=t;return n&&(r+="__"+n),r+(i?Object.keys(i).reduce((function(t,e){var n=i[e];return n&&(t+=" "+("boolean"==typeof n?r+"--"+e:r+"--"+e+"_"+n)),t}),""):"")}};function Np(t,e,i){var n,r,o,a,s;function l(){var u=Date.now()-a;u<e&&u>=0?n=setTimeout(l,e-u):(n=null,i||(s=t.apply(o,r),o=r=null))}null==e&&(e=100);var u=function(){o=this,r=arguments,a=Date.now();var u=i&&!n;return n||(n=setTimeout(l,e)),u&&(s=t.apply(o,r),o=r=null),s};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.flush=function(){n&&(s=t.apply(o,r),o=r=null,clearTimeout(n),n=null)},u}Np.debounce=Np;var Fp=Np,Bp=function(){return Bp=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Bp.apply(this,arguments) 21/*! ***************************************************************************** 22Copyright (c) Microsoft Corporation. 23 24Permission to use, copy, modify, and/or distribute this software for any 25purpose with or without fee is hereby granted. 26 27THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 28REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 29AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 30INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 31LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 32OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 33PERFORMANCE OF THIS SOFTWARE. 34***************************************************************************** */};function Vp(t,e){var i,n;return t&&e?(i=""+t+e[0].toUpperCase()+e.slice(1),n=t+"-"+e):(i=t||e,n=t||e),{name:i,classname:n}}function $p(t){return/^blob:/.test(t)}function jp(t){return $p(t)||function(t){return/^data:/.test(t)}(t)}function Wp(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Hp(t){return void 0===t}function Up(t){return"object"==typeof t&&null!==t}function qp(t,e,i){var n={};return Up(t)?(Object.keys(e).forEach((function(r){Hp(t[r])?n[r]=e[r]:Up(e[r])?Up(t[r])?n[r]=qp(t[r],e[r],i[r]):n[r]=t[r]?e[r]:i[r]:!0===e[r]||!1===e[r]?n[r]=Boolean(t[r]):n[r]=t[r]})),n):t?e:i}function Gp(t){var e=Number(t);return Number.isNaN(e)?t:e}function Yp(t){return typeof("number"==t||function(t){return"object"==typeof t&&null!==t}(t)&&"[object Number]"==toString.call(t))&&!Xp(t)}function Xp(t){return t!=t}function Zp(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var Kp=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},Jp=function(t,e){void 0===e&&(e={}),this.type="resize",this.directions=t,this.params=e},Qp=function(t){this.type="move",this.directions=t},tg=function(){function t(t,e,i,n,r){this.type="drag",this.nativeEvent=t,this.position=i,this.previousPosition=n,this.element=e,this.anchor=r}return t.prototype.shift=function(){var t=this,e=t.element,i=t.anchor,n=t.position,r=e.getBoundingClientRect(),o=r.left,a=r.top;return{left:n.left-o-i.left,top:n.top-a-i.top}},t}();function eg(t,e,i,n,r,o,a,s,l,u){"boolean"!=typeof a&&(l=s,s=a,a=!1);const c="function"==typeof i?i.options:i;let h;if(t&&t.render&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),n&&(c._scopeId=n),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=h):e&&(h=a?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),h)if(c.functional){const t=c.render;c.render=function(e,i){return h.call(i),t(e,i)}}else{const t=c.beforeCreate;c.beforeCreate=t?[].concat(t,h):[h]}return i}var ig=eg({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"draggable",class:t.classname,on:{touchstart:t.onTouchStart,mousedown:t.onMouseDown,mouseover:t.onMouseOver,mouseleave:t.onMouseLeave}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"DraggableElement",mixins:[{beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&1===t.touches.length&&(this.touches=Ap(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce((function(e,i){return{clientX:e.clientX+i.clientX/t.touches.length,clientY:e.clientY+i.clientY/t.touches.length}}),{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled&&0===t.button){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),i=e.left,n=e.right,r=e.bottom,o=e.top;this.anchor={left:t.clientX-i,top:t.clientY-o,bottom:r-t.clientY,right:n-t.clientX}},processMove:function(t,e){var i=Ap(e);if(this.touches.length){if(1===this.touches.length&&1===i.length){var n=this.$refs.draggable;this.$emit("drag",new tg(t,n,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}}}],props:{classname:{type:String}}},void 0,!1,void 0,!1,void 0,void 0,void 0),ng=zp("vue-handler-wrapper"),rg=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes.root},[i("DraggableElement",{class:t.classes.draggable,on:{drag:function(e){return t.$emit("drag",e)},"drag-end":function(e){return t.$emit("drag-end")},leave:function(e){return t.$emit("leave")},enter:function(e){return t.$emit("enter")}}},[t._t("default")],2)],1)},staticRenderFns:[]},void 0,{name:"HandlerWrapper",components:{DraggableElement:ig},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,i=Vp(this.horizontalPosition,this.verticalPosition);t=ng((Dp(e={},i.classname,!0),Dp(e,"disabled",this.disabled),e))}else t=ng({disabled:this.disabled});return{root:t,draggable:ng("draggable")}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),og=zp("vue-line-wrapper"),ag=eg({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("DraggableElement",{class:t.classname,on:{drag:function(e){return t.$emit("drag",e)},"drag-end":function(e){return t.$emit("drag-end")},leave:function(e){return t.$emit("leave")},enter:function(e){return t.$emit("enter")}}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"LineWrapper",components:{DraggableElement:ig},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return og((Dp(t={},this.position,!0),Dp(t,"disabled",this.disabled),t))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),sg=["left","right","top","bottom"],lg=["left","right"],ug=["top","bottom"],cg=["left","top"],hg=["fill-area","fit-area","stencil","none"],dg={left:0,top:0,width:0,height:0};function fg(t,e,i){return!(i=i||["width","height","left","top"]).some((function(i){return t[i]!==e[i]}))}function pg(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function gg(t,e){return{left:t.left-e.left,top:t.top-e.top}}function mg(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function vg(t,e){var i={left:0,top:0,right:0,bottom:0};return sg.forEach((function(n){var r=e[n],o=pg(t)[n];i[n]=void 0!==r&&void 0!==o?"left"===n||"top"===n?Math.max(0,r-o):Math.max(0,o-r):0})),i}function yg(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function bg(t){return{left:-t.left,top:-t.top}}function _g(t,e){return Bp(Bp({},t),{left:t.left+e.left,top:t.top+e.top})}function wg(t,e,i,n){if(1!==e){if(i){var r=mg(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(i.left-r.left)*(n||1-e),top:t.top+t.height*(1-e)/2+(i.top-r.top)*(n||1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function xg(t){return t.width/t.height}function Sg(t,e){return Math.min(void 0!==e.right&&void 0!==e.left?(e.right-e.left)/t.width:1/0,void 0!==e.bottom&&void 0!==e.top?(e.bottom-e.top)/t.height:1/0)}function Cg(t,e){var i={left:0,top:0},n=vg(t,e);return n.left&&n.left>0?i.left=n.left:n.right&&n.right>
340&&(i.left=-n.right),n.top&&n.top>0?i.top=n.top:n.bottom&&n.bottom>0&&(i.top=-n.bottom),i}function kg(t,e){var i;return e.minimum&&t<e.minimum?i=e.minimum:e.maximum&&t>e.maximum&&(i=e.maximum),i}function Mg(t,e){var i=xg(t),n=xg(e);return e.width<1/0&&e.height<1/0?i>n?{width:e.width,height:e.width/i}:{width:e.height*i,height:e.height}:e.width<1/0?{width:e.width,height:e.width/i}:e.height<1/0?{width:e.height*i,height:e.height}:t}function Tg(t,e){var i=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(i))+Math.abs(t.height*Math.sin(i)),height:Math.abs(t.width*Math.sin(i))+Math.abs(t.height*Math.cos(i))}}function Dg(t,e){var i=e*Math.PI/180;return{left:t.left*Math.cos(i)-t.top*Math.sin(i),top:t.left*Math.sin(i)+t.top*Math.cos(i)}}function Ig(t,e){var i=vg(Ag(t,e),e);return i.left+i.right+i.top+i.bottom?i.left+i.right>i.top+i.bottom?Math.min((t.width+i.left+i.right)/t.width,Sg(t,e)):Math.min((t.height+i.top+i.bottom)/t.height,Sg(t,e)):1}function Ag(t,e,i){void 0===i&&(i=!1);var n=Cg(t,e);return _g(t,i?bg(n):n)}function Og(t){return{width:void 0!==t.right&&void 0!==t.left?t.right-t.left:1/0,height:void 0!==t.bottom&&void 0!==t.top?t.bottom-t.top:1/0}}function Eg(t,e){return Bp(Bp({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function Pg(t,e,i){void 0===i&&(i=!0);var n={};return sg.forEach((function(r){var o=t[r],a=e[r];void 0!==o&&void 0!==a?n[r]="left"===r||"top"===r?i?Math.max(o,a):Math.min(o,a):i?Math.min(o,a):Math.max(o,a):void 0!==a?n[r]=a:void 0!==o&&(n[r]=o)})),n}function Lg(t,e){return Pg(t,e,!0)}function Rg(t){var e=t.size,i=t.aspectRatio,n=t.ignoreMinimum,r=t.sizeRestrictions;return Boolean((e.correctRatio||xg(e)>=i.minimum&&xg(e)<=i.maximum)&&e.height<=r.maxHeight&&e.width<=r.maxWidth&&e.width&&e.height&&(n||e.height>=r.minHeight&&e.width>=r.minWidth))}function zg(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function Ng(t){var e=t.width,i=t.height,n=t.sizeRestrictions,r={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},o={width:Math.max(n.minWidth,Math.min(n.maxWidth,e)),height:Math.max(n.minHeight,Math.min(n.maxHeight,i))};function a(t,o){return void 0===o&&(o=!1),t.reduce((function(t,a){return Rg({size:a,aspectRatio:r,sizeRestrictions:n,ignoreMinimum:o})&&(!t||zg(a,{width:e,height:i})<zg(t,{width:e,height:i}))?a:t}),null)}var s=[];r&&[r.minimum,r.maximum].forEach((function(t){t&&s.push({width:o.width,height:o.width/t,correctRatio:!0},{width:o.height*t,height:o.height,correctRatio:!0})})),Rg({size:o,aspectRatio:r,sizeRestrictions:n})&&s.push(o);var l=a(s)||a(s,!0);return l&&{width:l.width,height:l.height}}function Fg(t){var e=t.event,i=t.coordinates,n=t.positionRestrictions,r=void 0===n?{}:n,o=_g(i,e.directions);return _g(o,Cg(o,r))}function Bg(t){var e=t.coordinates,i=t.transform,n=t.imageSize,r=t.sizeRestrictions,o=t.positionRestrictions,a=t.aspectRatio,s=t.visibleArea,l=function(t,e){return Fg({coordinates:t,positionRestrictions:o,event:new Qp({left:e.left-t.left,top:e.top-t.top})})},u=Bp({},e);return(Array.isArray(i)?i:[i]).forEach((function(t){var e={};Hp((e="function"==typeof t?t({coordinates:u,imageSize:n,visibleArea:s}):t).width)&&Hp(e.height)||(u=function(t,e){var i=Bp(Bp(Bp({},t),Ng({width:e.width,height:e.height,sizeRestrictions:r,aspectRatio:a})),{left:0,top:0});return l(i,{left:t.left,top:t.top})}(u,Bp(Bp({},u),e))),Hp(e.left)&&Hp(e.top)||(u=l(u,Bp(Bp({},u),e)))})),u}function Vg(t){t.event;var e=t.getAreaRestrictions,i=t.boundaries,n=t.coordinates,r=t.visibleArea;t.aspectRatio;var o=t.stencilSize,a=t.sizeRestrictions,s=t.positionRestrictions;t.stencilReference;var l,u,c,h=Bp({},n),d=Bp({},r),f=Bp({},o);l=xg(f),u=xg(h),void 0===c&&(c=.001),(0===l||0===u?Math.abs(u-l)<c:Math.abs(u/l)<1+c&&Math.abs(u/l)>1-c)||(h=Bp(Bp({},h),Ng({sizeRestrictions:a,width:h.width,height:h.height,aspectRatio:{minimum:xg(f),maximum:xg(f)}})));var p=Ig(d=wg(d,h.width*i.width/(d.width*f.width)),e({visibleArea:d,type:"resize"}));return 1!==p&&(d=wg(d,p),h=wg(h,p)),d=Ag(d=_g(d,gg(mg(h),mg(d))),e({visibleArea:d,type:"move"}
vendor: 5,078 bytes, line 34
34)),{coordinates:h=Ag(h,Lg(pg(d),s)),visibleArea:d}}function $g(t){var e=t.event,i=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,o=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var s=Bp({},r),l=Bp({},o);if(r&&o&&"manipulateImage"!==e.type){var u={width:0,height:0};l.width,n.width,xg(n)>xg(s)?(u.height=.8*n.height,u.width=u.height*xg(s)):(u.width=.8*n.width,u.height=u.width*xg(s));var c=Ig(l=wg(l,s.width*n.width/(l.width*u.width)),i({visibleArea:l,type:"resize"}));l=wg(l,c),1!==c&&(u.height/=c,u.width/=c),l=Ag(l=_g(l,gg(mg(s),mg(l))),i({visibleArea:l,type:"move"})),s=Ag(s,Lg(pg(l),a))}return{coordinates:s,visibleArea:l}}function jg(t){var e=t.event,i=t.coordinates,n=t.visibleArea,r=t.getAreaRestrictions,o=Bp({},n),a=Bp({},i);if("setCoordinates"===e.type){var s=Math.max(0,a.width-o.width),l=Math.max(0,a.height-o.height);s>l?o=wg(o,Math.min(a.width/o.width,Sg(o,r({visibleArea:o,type:"resize"})))):l>s&&(o=wg(o,Math.min(a.height/o.height,Sg(o,r({visibleArea:o,type:"resize"}))))),o=Ag(o=_g(o,bg(Cg(a,pg(o)))),r({visibleArea:o,type:"move"}))}return{visibleArea:o,coordinates:a}}function Wg(t){var e=t.imageSize,i=t.visibleArea,n=t.aspectRatio,r=t.sizeRestrictions,o=i||e,a=Math.min(n.maximum||1/0,Math.max(n.minimum||0,xg(o))),s=o.width<o.height?{width:.8*o.width,height:.8*o.width/a}:{height:.8*o.height,width:.8*o.height*a};return Ng(Bp(Bp({},s),{aspectRatio:n,sizeRestrictions:r}))}function Hg(t){var e,i,n=t.imageSize,r=t.visibleArea,o=t.boundaries,a=t.aspectRatio,s=t.sizeRestrictions,l=t.stencilSize,u=r||n;return xg(u)>xg(o)?i=(e=l.height*u.height/o.height)*xg(l):e=(i=l.width*u.width/o.width)/xg(l),Ng({width:i,height:e,aspectRatio:a,sizeRestrictions:s})}function Ug(t,e){return Pg(t,pg(e))}function qg(t){var e=t.event,i=t.coordinates,n=t.visibleArea,r=t.sizeRestrictions,o=t.getAreaRestrictions,a=t.positionRestrictions,s=t.adjustStencil,l=e.scale,u=e.move,c=Bp({},n),h=Bp({},i),d=1,f=1,p=l.factor&&Math.abs(l.factor-1)>.001;c=_g(c,{left:u.left||0,top:u.top||0});var g={stencil:{minimum:Math.max(r.minWidth?r.minWidth/h.width:0,r.minHeight?r.minHeight/h.height:0),maximum:Math.min(r.maxWidth?r.maxWidth/h.width:1/0,r.maxHeight?r.maxHeight/h.height:1/0,Sg(h,a))},area:{maximum:Sg(c,o({visibleArea:c,type:"resize"}))}};l.factor&&p&&(l.factor<1?(f=Math.max(l.factor,g.stencil.minimum))>1&&(f=1):l.factor>1&&(f=Math.min(l.factor,Math.min(g.area.maximum,g.stencil.maximum)))<1&&(f=1)),f&&(c=wg(c,f,l.center));var m=i.left-n.left,v=n.width+n.left-(i.width+i.left),y=i.top-n.top,b=n.height+n.top-(i.height+i.top);return c=Ag(c=_g(c,Cg(c,{left:void 0!==a.left?a.left-m*f:void 0,top:void 0!==a.top?a.top-y*f:void 0,bottom:void 0!==a.bottom?a.bottom+b*f:void 0,right:void 0!==a.right?a.right+v*f:void 0})),o({visibleArea:c,type:"move"})),h.width=h.width*f,h.height=h.height*f,h.left=c.left+m*f,h.top=c.top+y*f,h=Ag(h,Lg(pg(c),a)),l.factor&&p&&s&&(l.factor>1?d=Math.min(g.area.maximum,l.factor)/f:l.factor<1&&(d=Math.max(h.height/c.height,h.width/c.width,l.factor/f)),1!==d&&(c=_g(c=Ag(c=wg(c,d,l.factor>1?l.center:mg(h)),o({visibleArea:c,type:"move"})),bg(Cg(h,pg(c)))))),{coordinates:h,visibleArea:c}}function Gg(t){var e=t.aspectRatio,i=t.getAreaRestrictions,n=t.coordinates,r=t.visibleArea,o=t.sizeRestrictions,a=t.positionRestrictions,s=t.imageSize,l=t.previousImageSize,u=t.angle,c=Bp({},n),h=Bp({},r),d=Dg(mg(Bp({left:0,top:0},l)),u);return(c=Bp(Bp({},Ng({sizeRestrictions:o,aspectRatio:e,width:c.width,height:c.height})),Dg(mg(c),u))).left-=d.left-s.width/2+c.width/2,c.top-=d.top-s.height/2+c.height/2,h=wg(h,Ig(h,i({visibleArea:h,type:"resize"}))),{coordinates:c=Ag(c,a),visibleArea:h=Ag(h=_g(h,gg(mg(c),mg(n))),i({visibleArea:h,type:"move"}))}}function Yg(t){var e=t.flip,i=t.previousFlip,n=t.rotate;t.aspectRatio;var r=t.getAreaRestrictions,o=t.coordinates,a=t.visibleArea,s=t.imageSize,l=Bp({},o),u=Bp({},a),c=i.horizontal!==e.horizontal,h=i.vertical!==e.vertical;if(c||h){var d=Dg({left:s.width/2,top:s.height/2},-n),f=Dg(mg(l),-n),p=Dg({left:c?d.left-(f.left-d.left):f.left,top:h?d.top-(f.top-d.top):f.top},n);l=_g(l,gg(p,mg(l))),f=Dg(mg(u),-n),u=Ag(u=_g(u,gg(p=Dg({left:c?d.left-(f.left-d.left):f.left,top:h?d.top-(f.top-d.top):f.top},n),mg(u))),r({visibleArea:u,type:"move"}))}return{coordinates:l,visibleArea:u}}function Xg(t){var e=t.directions,i=t.coordinates,n=t.positionRestrictions,r=void 0===n?{}:n,o=t.sizeRestrictions,a=t.preserveRatio,s=t.compensate,l=Bp({},e),u=yg(i,l).width,c=yg(i,l).height;u<0&&(l.left<0&&l.right<0?(l.left=-(i.width-o.minWidth)/(l.left/l.right),l.right=-(i.width-o.minWidth)/(l.right/l.left)):l.left<0?l.left=-(i.width-o.minWidth):l.right<0&&(l.right=-(i.width-o.minWidth))),c<0&&(l.top<0&&l.bottom<0?(l.top=-(i.height-o.minHeight)/(l.top/l.bottom),l.bottom=-(i.height-o.minHeight)/(l.bottom/l.top)):l.top<0?l.top=-(i.height-o.minHeight):l.bottom<0&&(l.bottom=-(i.height-o.minHeight)));var h=vg(yg(i,l),r);s&&(h.left&&h.left>0&&0===h.right?(l.right+=h.left,l.left-=h.left):h.right&&h.right>0&&0===h.left&&(l.left+=h.right,l.right-=h.right),h.top&&h.top>
340&&0===h.bottom?(l.bottom+=h.top,l.top-=h.top):h.bottom&&h.bottom>0&&0===h.top&&(l.top+=h.bottom,l.bottom-=h.bottom),h=vg(yg(i,l),r));var d={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(sg.forEach((function(t){var e=h[t];e&&l[t]&&(d[t]=Math.max(0,1-e/l[t]))})),a){var f=Math.min.apply(null,sg.map((function(t){return d[t]})));f!==1/0&&sg.forEach((function(t){l[t]*=f}))}else sg.forEach((function(t){d[t]!==1/0&&(l[t]*=d[t])}));if(u=yg(i,l).width,c=yg(i,l).height,l.right+l.left&&(u>o.maxWidth?d.width=(o.maxWidth-i.width)/(l.right+l.left):u<o.minWidth&&(d.width=(o.minWidth-i.width)/(l.right+l.left))),l.bottom+l.top&&(c>o.maxHeight?d.height=(o.maxHeight-i.height)/(l.bottom+l.top):c<o.minHeight&&(d.height=(o.minHeight-i.height)/(l.bottom+l.top))),a){var p=Math.min(d.width,d.height);p!==1/0&&sg.forEach((function(t){l[t]*=p}))}else d.width!==1/0&&lg.forEach((function(t){l[t]*=d.width})),d.height!==1/0&&ug.forEach((function(t){l[t]*=d.height}));return l}function Zg(t,e,i){return 0==e&&0==i?t/2:0==e?0:0==i?t:t*Math.abs(e/(e+i))}var Kg=zp("vue-simple-handler"),Jg=zp("vue-simple-handler-wrapper"),Qg=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("HandlerWrapper",{class:t.classes.wrapper,attrs:{"vertical-position":t.verticalPosition,"horizontal-position":t.horizontalPosition,disabled:t.disabled},on:{drag:t.onDrag,"drag-end":t.onDragEnd,enter:t.onEnter,leave:t.onLeave}},[i("div",{class:t.classes.default})])},staticRenderFns:[]},void 0,{name:"SimpleHandler",components:{HandlerWrapper:rg},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(Dp(t={},this.horizontalPosition,Boolean(this.horizontalPosition)),Dp(t,this.verticalPosition,Boolean(this.verticalPosition)),Dp(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),Boolean(this.verticalPosition&&this.horizontalPosition)),Dp(t,"hover",this.hover),t);return{default:Rp(Kg(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:Rp(Jg(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),tm=zp("vue-simple-line"),em=zp("vue-simple-line-wrapper"),im=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("LineWrapper",{class:t.classes.wrapper,attrs:{position:t.position,disabled:t.disabled},on:{drag:t.onDrag,"drag-end":t.onDragEnd,enter:t.onEnter,leave:t.onLeave}},[i("div",{class:t.classes.root})])},staticRenderFns:[]},void 0,{name:"SimpleLine",components:{LineWrapper:ag},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:Rp(tm(Dp({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:Rp(em(Dp({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}}},void 0,!1,void 0,!1,void 0,void 0,void 0),nm=zp("vue-bounding-box"),rm=["east","west",null],om=["south","north",null],am=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"box",class:t.classes.root,style:t.style},[t._t("default"),t._v(" "),i("div",t._l(t.lineNodes,(function(e){return i(e.component,{key:e.name,tag:"component",attrs:{"default-class":e.class,"hover-class":e.hoverClass,"wrapper-class":e.wrapperClass,position:e.name,disabled:e.disabled},on:{drag:function(i){return t.onHandlerDrag(i,e.horizontalDirection,e.verticalDirection)},"drag-end":function(e){return t.onEnd()}}})})),1),t._v(" "),t._l(t.handlerNodes,(function(e){return i("div",{key:e.name,class:e.wrapperClass,style:e.wrapperStyle},[i(e.component,{tag:"component",attrs:{"default-class":e.class,"hover-class":e.hoverClass,"wrapper-class":e.wrapperClass,"horizontal-position":e.horizontalDirection,"vertical-position":e.verticalDirection,disabled:e.disabled},on:{drag:function(i){return t.onHandlerDrag(i,e.horizontalDirection,e.verticalDirection)},"drag-end":function(e){return t.onEnd()}}}
34)],1)}))],2)},staticRenderFns:[]},void 0,{name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Qg}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return im}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return rm.forEach((function(e){om.forEach((function(i){if(e!==i){var n=Vp(e,i),r=n.name,o=n.classname;t.push({name:r,classname:o,verticalDirection:i,horizontalDirection:e})}}))})),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,i=this.linesClasses,n=this.linesWrappersClasses;return{root:nm(),handlers:t,handlersWrappers:e,lines:i,linesWrappers:n}},lineNodes:function(){var t=this,e=[];return this.points.forEach((function(i){i.horizontalDirection&&i.verticalDirection||!t.lines[i.name]||e.push({name:i.name,component:t.linesComponent,class:Rp(t.classes.lines.default,t.classes.lines[i.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:Rp(t.classes.linesWrappers.default,t.classes.linesWrappers[i.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:i.verticalDirection,horizontalDirection:i.horizontalDirection,disabled:!t.resizable})})),e},handlerNodes:function(){var t=this,e=[],i=this.width,n=this.height;return this.points.forEach((function(r){if(t.handlers[r.name]){var o={name:r.name,component:t.handlersComponent,class:Rp(t.classes.handlers.default,t.classes.handlers[r.name]),wrapperClass:Rp(t.classes.handlersWrappers.default,t.classes.handlersWrappers[r.name]),hoverClass:t.classes.handlers.hover,verticalDirection:r.verticalDirection,horizontalDirection:r.horizontalDirection,disabled:!t.resizable};if(i&&n){var a=r.horizontalDirection,s=r.verticalDirection,l="east"===a?i:"west"===a?0:i/2,u="south"===s?n:"north"===s?0:n/2;o.wrapperClass=nm("handler"),o.wrapperStyle={transform:"translate(".concat(l,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(o.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else o.wrapperClass=nm("handler",Dp({},r.classname,!0));e.push(o)}})),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,i){var n,r=t.shift(),o=r.left,a=r.top,s={left:0,right:0,top:0,bottom:0};"west"===e?s.left-=o:"east"===e&&(s.right+=o),"north"===i?s.top-=a:"south"===i&&(s.bottom+=a),!i&&e?n="width":i&&!e&&(n="height"),this.resizable&&this.$emit("resize",new Jp(s,{allowedDirections:{left:"west"===e||!e,right:"east"===e||!e,bottom:"south"===i||!i,top:"north"===i||!i},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:n}))}}},void 0,!1,void 0,!1,void 0,void 0,void 0),sm=zp("vue-draggable-area"),lm=eg({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"container",on:{touchstart:t.onTouchStart,mousedown:t.onMouseDown}},[t._t("default")],2)},staticRenderFns:[]},void 0,{name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:sm()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&1===t.touches.length;e&&(this.touches=Ap(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):Zp({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&0===t.button){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),i=e.left,n=e.top;this.anchor={x:t.clientX-i,y:t.clientY-n}},processMove:function(t,e){var i=Ap(e);if(this.touches.length){var n=this.$refs.container.getBoundingClientRect(),r=n.left,o=n.top;1===this.touches.length&&1===i.length&&this.$emit("move",new Qp({left:i[0].clientX-(r+this.anchor.x),top:i[0].clientY-(o+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function um(t){var e,i;return{rotate:t.rotate||0,flip:{horizontal:(null===(e=null==t?void 0:t.flip)||void 0===e?void 0:e.horizontal)||!1,vertical:(null===(i=null==t?void 0:t.flip)||void 0===i?void 0:i.vertical)||!1}}}function cm(t){return new Promise((function(e,i){try{if(t)if(/^data:/i.test(t))e(function(t){t=t.replace(/^data:([^;]+);base64,/gim,"");
34for(var e=atob(t),i=e.length,n=new ArrayBuffer(i),r=new Uint8Array(n),o=0;o<i;o++)r[o]=e.charCodeAt(o);return n}(t));else if(/^blob:/i.test(t)){var n=new FileReader;n.onload=function(t){e(t.target.result)},o=t,a=function(t){n.readAsArrayBuffer(t)},(s=new XMLHttpRequest).open("GET",o,!0),s.responseType="blob",s.onload=function(){200!=this.status&&0!==this.status||a(this.response)},s.send()}else{var r=new XMLHttpRequest;r.onreadystatechange=function(){4===r.readyState&&(200===r.status||0===r.status?e(r.response):i("Warning: could not load an image to parse its orientation"),r=null)},r.onprogress=function(){"image/jpeg"!==r.getResponseHeader("content-type")&&r.abort()},r.withCredentials=!1,r.open("GET",t,!0),r.responseType="arraybuffer",r.send(null)}else i("Error: the image is empty")}catch(t){i(t)}var o,a,s}))}function hm(t){var e=t.rotate,i=t.flip,n=t.scaleX,r=t.scaleY,o="";return o+=" rotate("+e+"deg) ",o+=" scaleX("+n*(i.horizontal?-1:1)+") ",o+" scaleY("+r*(i.vertical?-1:1)+") "}function dm(t){try{var e,i=new DataView(t),n=void 0,r=void 0,o=void 0,a=void 0;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var s=i.byteLength,l=2;l+1<s;){if(255===i.getUint8(l)&&225===i.getUint8(l+1)){o=l;break}l++}if(o&&(n=o+10,"Exif"===function(t,e,i){var n,r="";for(n=e,i+=e;n<i;n++)r+=String.fromCharCode(t.getUint8(n));return r}(i,o+4,4))){var u=i.getUint16(n);if(((r=18761===u)||19789===u)&&42===i.getUint16(n+2,r)){var c=i.getUint32(n+4,r);c>=8&&(a=n+c)}}if(a)for(var h=i.getUint16(a,r),d=0;d<h;d++)if(l=a+12*d+2,274===i.getUint16(l,r)){l+=8,e=i.getUint16(l,r),i.setUint16(l,1,r);break}return e}catch(t){return null}}var fm=zp("vue-preview-result");eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes.root},[i("div",{ref:"wrapper",class:t.classes.wrapper,style:t.wrapperStyle},[i("img",{ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{src:t.image.src}})])])},staticRenderFns:[]},void 0,{name:"PreviewResult",props:{image:{type:Object},transitions:{type:Object},stencilCoordinates:{type:Object,default:function(){return{width:0,height:0,left:0,top:0}}},imageClass:{type:String}},computed:{classes:function(){return{root:fm(),wrapper:fm("wrapper"),imageWrapper:fm("image-wrapper"),image:Rp(fm("image"),this.imageClass)}},wrapperStyle:function(){var t={width:"".concat(this.stencilCoordinates.width,"px"),height:"".concat(this.stencilCoordinates.height,"px"),left:"calc(50% - ".concat(this.stencilCoordinates.width/2,"px)"),top:"calc(50% - ".concat(this.stencilCoordinates.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){var t=this.image.transforms,e=Tg({width:this.image.width,height:this.image.height},t.rotate),i={width:"".concat(this.image.width,"px"),height:"".concat(this.image.height,"px"),left:"0px",top:"0px"},n={left:(this.image.width-e.width)*t.scaleX/2,top:(this.image.height-e.height)*t.scaleY/2},r={left:(1-t.scaleX)*this.image.width/2,top:(1-t.scaleY)*this.image.height/2};return i.transform="translate(\n\t\t\t\t".concat(-this.stencilCoordinates.left-t.translateX-n.left-r.left,"px,").concat(-this.stencilCoordinates.top-t.translateY-n.top-r.top,"px) ")+hm(t),this.transitions&&this.transitions.enabled&&(i.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),i}}},void 0,!1,void 0,!1,void 0,void 0,void 0);function pm(t,e){var i=e.getBoundingClientRect(),n=i.left,r=i.top,o={left:0,top:0},a=0;return t.forEach((function(e){o.left+=(e.clientX-n)/t.length,o.top+=(e.clientY-r)/t.length})),t.forEach((function(t){a+=Zp({x:o.left,y:o.top},{x:t.clientX-n,y:t.clientY-r})})),{centerMass:o,spread:a,count:t.length}}var gm=eg({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"container",on:{touchstart:t.onTouchStart,mousedown:t.onMouseDown,wheel:t.onWheel}},[t._t("default")],2)},staticRenderFns:[]},void 0,{props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeDestroy:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=Fp(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(1===this.touches.length&&1===e.length)this.$emit("move",new Kp({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var i=pm(e,this.$refs.container),n=this.oldGeometricProperties;n.count===i.count&&n.count>1&&this.$emit("resize",new Kp({left:n.centerMass.left-i.centerMass.left,top:n.centerMass.top-i.centerMass.top},{factor:n.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?!1!==this.eventsFilter(t,this.transforming):(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,i=e.getBoundingClientRect(),n=i.left,r=i.top,o=i.bottom,a=i.right;this.touches=Ap(t.touches).filter((function(t){return t.clientX>n&&t.clientX<a&&t.clientY>
34r&&t.clientY<o})),this.oldGeometricProperties=pm(this.touches,e)}},onTouchEnd:function(t){0===t.touches.length&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var i=Ap(t.touches).filter((function(t){return!t.identifier||e.touches.find((function(e){return e.identifier===t.identifier}))}));this.processEvent(t)&&(this.processMove(t,i),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&1===t.buttons&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),i=e.left,n=e.top,r=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,0===(s=+a)||Xp(s)?s:s>0?1:-1),o={left:t.clientX-i,top:t.clientY-n};this.$emit("resize",new Kp({},{factor:r,center:o})),this.touches.length||this.debouncedProcessEnd()}var a,s}}},void 0,!1,void 0,!1,void 0,void 0,void 0),mm=eg({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("transformable-image",{attrs:{"touch-move":t.touchMove,"touch-resize":t.touchResize,"mouse-move":t.mouseMove,"wheel-resize":t.wheelResize},on:{move:function(e){return t.$emit("move",e)},resize:function(e){return t.$emit("resize",e)}}},[t._t("default")],2)},staticRenderFns:[]},void 0,{components:{TransformableImage:gm},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}}},void 0,!1,void 0,!1,void 0,void 0,void 0),vm=zp("vue-preview"),ym=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"root",class:t.classes.root,style:t.style},[i("div",{ref:"wrapper",class:t.classes.wrapper,style:t.wrapperStyle},[i("img",{directives:[{name:"show",rawName:"v-show",value:t.image&&t.image.src,expression:"image && image.src"}],ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{src:t.image&&t.image.src}})])])},staticRenderFns:[]},void 0,{props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:vm({fill:this.fill}),wrapper:vm("wrapper"),imageWrapper:vm("image-wrapper"),image:Rp(vm("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=Tp(Tp({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),i=this.imageSize.width,n=this.imageSize.height,r=Tg({width:i,height:n},e.rotate),o={width:"".concat(i,"px"),height:"".concat(n,"px"),left:"0px",top:"0px"},a={rotate:{left:(i-r.width)*e.scaleX/2,top:(n-r.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*i/2,top:(1-e.scaleY)*n/2}};return o.transform="translate(\n\t\t\t\t".concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+hm(e),this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",(function(){t.refreshImage()})),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWi
34dth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),bm=eg({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("preview",t._b({attrs:{fill:!0}},"preview",t.$attrs,!1))},staticRenderFns:[]},void 0,{components:{Preview:ym},inheritAttrs:!1},void 0,!1,void 0,!1,void 0,void 0,void 0),_m=zp("vue-rectangle-stencil"),wm=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes.stencil,style:t.style},[i("bounding-box",{class:t.classes.boundingBox,attrs:{width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions,handlers:t.handlers,"handlers-component":t.handlersComponent,"handlers-classes":t.handlersClasses,"handlers-wrappers-classes":t.handlersWrappersClasses,lines:t.lines,"lines-component":t.linesComponent,"lines-classes":t.linesClasses,"lines-wrappers-classes":t.linesWrappersClasses,resizable:t.resizable},on:{resize:t.onResize,"resize-end":t.onResizeEnd}},[i("draggable-area",{attrs:{movable:t.movable},on:{move:t.onMove,"move-end":t.onMoveEnd}},[i("stencil-preview",{class:t.classes.preview,attrs:{image:t.image,coordinates:t.coordinates,width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{name:"RectangleStencil",components:{StencilPreview:bm,BoundingBox:am,DraggableArea:lm},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Qg}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return im}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Rp(_m({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Rp(_m("preview"),this.previewClass),boundingBox:Rp(_m("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,i=t.width,n=t.left,r=t.top,o={width:"".concat(i,"px"),height:"".concat(e,"px"),transform:"translate(".concat(n,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),xm=zp("vue-circle-stencil"),Sm=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes.stencil,style:t.style},[i("bounding-box",{class:t.classes.boundingBox,attrs:{width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions,handlers:t.handlers,"handlers-component":t.handlersComponent,"handlers-classe
34s":t.handlersClasses,"handlers-wrappers-classes":t.handlersWrappersClasses,lines:t.lines,"lines-component":t.linesComponent,"lines-classes":t.linesClasses,"lines-wrappers-classes":t.linesWrappersClasses,resizable:t.resizable},on:{resize:t.onResize,"resize-end":t.onResizeEnd}},[i("draggable-area",{attrs:{movable:t.movable},on:{move:t.onMove,"move-end":t.onMoveEnd}},[i("stencil-preview",{class:t.classes.preview,attrs:{image:t.image,coordinates:t.coordinates,width:t.stencilCoordinates.width,height:t.stencilCoordinates.height,transitions:t.transitions}})],1)],1)],1)},staticRenderFns:[]},void 0,{components:{StencilPreview:bm,BoundingBox:am,DraggableArea:lm},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,westNorth:!0,westSouth:!0,eastSouth:!0}}},handlersComponent:{type:[Object,String],default:function(){return Qg}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return im}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:Rp(xm({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:Rp(xm("preview"),this.previewClass),boundingBox:Rp(xm("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,i=t.width,n=t.left,r=t.top,o={width:"".concat(i,"px"),height:"".concat(e,"px"),transform:"translate(".concat(n,"px, ").concat(r,"px)")};return this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:1,maximum:1}}}},void 0,!1,void 0,!1,void 0,void 0,void 0),Cm=["transitions"],km=zp("vue-advanced-cropper"),Mm={name:"Cropper",components:{BackgroundWrapper:mm},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return wm}},backgroundWrapperComponent:{type:[Object,String],default:function(){return mm}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return-1!==hg.indexOf(t)}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object],default:function(t){var e=t.imageSize,i=t.visibleArea,n=t.coordinates,r=i||e;return{left:(i?i.left:0)+r.width/2-n.width/2,top:(i?i.top:0)+r.height/2-n.height/2}}},defaultVisibleArea:{type:[Function,Object],default:function(t){var e=t.getAreaRestrictions,i=t.coordinates,n=t.imageSize,r=xg(t.boun
34daries);if(i){var o={height:Math.max(i.height,n.height),width:Math.max(i.width,n.width)},a=Mg({width:xg(o)>r?o.width:o.height*r,height:xg(o)>r?o.width/r:o.height},Og(e())),s={left:i.left+i.width/2-a.width/2,top:i.top+i.height/2-a.height/2,width:a.width,height:a.height},l=vg(i,pg(Bp({left:0,top:0},n))),u={};return!l.left&&!l.right&&s.width<=n.width&&(u.left=0,u.right=n.width),!l.top&&!l.bottom&&s.height<=n.height&&(u.top=0,u.bottom=n.height),Ag(s,u)}var c=xg(n);return a={height:c>r?n.height:n.width/r,width:c>r?n.height*r:n.width},{left:n.width/2-a.width/2,top:n.height/2-a.height/2,width:a.width,height:a.height}}},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!("string"==typeof t&&"fill"!==t&&"fit"!==t)}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,i=t.coordinates,n=t.aspectRatio,r=t.positionRestrictions,o=t.sizeRestrictions,a=Bp(Bp({},i),{right:i.left+i.width,bottom:i.top+i.height}),s=e.params||{},l=Bp({},e.directions),u=s.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};o.widthFrozen&&(l.left=0,l.right=0),o.heightFrozen&&(l.top=0,l.bottom=0),sg.forEach((function(t){u[t]||(l[t]=0)}));var c=yg(a,l=Xg({coordinates:a,directions:l,sizeRestrictions:o,positionRestrictions:r})).width,h=yg(a,l).height,d=s.preserveRatio?xg(a):kg(c/h,n);if(d){var f=s.respectDirection;if(f||(f=a.width>=a.height||1===d?"width":"height"),"width"===f){var p=c/d-a.height;if(u.top&&u.bottom){var g=l.top,m=l.bottom;l.bottom=Zg(p,m,g),l.top=Zg(p,g,m)}else u.bottom?l.bottom=p:u.top?l.top=p:u.right?l.right=0:u.left&&(l.left=0)}else if("height"===f){var v=a.width-h*d;if(u.left&&u.right){var y=l.left,b=l.right;l.left=-Zg(v,y,b),l.right=-Zg(v,b,y)}else u.left?l.left=-v:u.right?l.right=-v:u.top?l.top=0:u.bottom&&(l.bottom=0)}l=Xg({directions:l,coordinates:a,sizeRestrictions:o,positionRestrictions:r,preserveRatio:!0,compensate:s.compensate})}return c=yg(a,l).width,h=yg(a,l).height,(d=s.preserveRatio?xg(a):kg(c/h,n))&&Math.abs(d-c/h)>.001&&sg.forEach((function(t){u[t]||(l[t]=0)})),Fg({event:new Qp({left:-l.left,top:-l.top}),coordinates:{width:i.width+l.right+l.left,height:i.height+l.top+l.bottom,left:i.left,top:i.top},positionRestrictions:r})}},moveAlgorithm:{type:Function,default:Fg},initStretcher:{type:Function,default:function(t){var e=t.stretcher,i=t.imageSize,n=xg(i);e.style.width=i.width+"px",e.style.height=e.clientWidth/n+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,i=t.coordinates,n=t.aspectRatio,r=t.sizeRestrictions,o=t.positionRestrictions,a=Bp(Bp({},i),Ng({width:i.width,height:i.height,aspectRatio:n,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,r.minHeight),minWidth:Math.min(e.width,r.minWidth)}}));return Ag(a=_g(a,gg(mg(i),mg(a))),Lg(pg(e),o))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,i=t.boundaries,n=t.getAreaRestrictions,r=t.coordinates,o=Bp({},e);o.height=o.width/xg(i),o.top+=(e.height-o.height)/2,(r.height-o.height>0||r.width-o.width>0)&&(o=wg(o,Math.max(r.height/o.height,r.width/o.width)));var a=bg(Cg(r,pg(o=wg(o,Ig(o,n({visibleArea:o,type:"resize"}))))));return o.width<r.width&&(a.left=0),o.height<r.height&&(a.top=0),Ag(o=_g(o,a),n({visibleArea:o,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,i=t.boundaries,n=t.imageSize,r=t.imageRestriction,o=t.type,a={};return"fill-area"===r?a={left:0,top:0,right:n.width,bottom:n.height}:"fit-area"===r&&(xg(i)>xg(n)?(a={top:0,bottom:n.height},e&&"move"===o&&(e.width>n.width?(a.left=-(e.width-n.width)/2,a.right=n.width-a.left):(a.left=0,a.right=n.width))):(a={left:0,right:n.width},e&&"move"===o&&(e.height>n.height?(a.top=-(e.height-n.height)/2,a.bottom=n.height-a.top):(a.top=0,a.bottom=n.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,i={};return"none"!==t.imageRestriction&&(i={left:0,top:0,right:e.width,bottom:e.height}),i}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:!1,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:Tp({},dg)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(t){return t*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return Boolean(this.visibleArea&&this.imageLoaded)},settings:function(){var t=qp(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:qp(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:Hp(this.minWidth)?0:Gp(this.minWidth),minHeight:Hp(this.minHeight)?0:Gp(this.minHeight),maxWidth:Hp(this.maxWidth)?1/0:Gp(this.maxWidth),maxHeight:Hp(this.maxHeight)?1/0:Gp(this.maxHeight)});if(t=function(t){var e=t.areaRestrictions,i=t.sizeRestrictions;t.imageSize;var n=t.boundaries,r=t.positionRestrictions;t.imageRestriction;var o=Bp(Bp({},i),{minWidth:void 0!==i.minWidth?i.minWidth:0,minHeight:void 0!==i.minHeight?i.minHeight:0,maxWidth:void 0!==i.maxWidth?i.maxWidth:1/0,maxHeight:void 0!==i.maxHeight?i.maxHeight:1/0});void 0!==r.left&&void 0!==r.right&&(o.maxWidth=Math.min(o.maxWidth,r.right-r.left)),void 0!==r.bottom&&void 0!==r.top&&(o.maxHeight=Math.min(o.maxHeight,r.bottom-r.top));var a=Og(e),s=Mg(n,a);return a.width<1/0&&(!o.maxWidth||o.maxWidth>s.width)&&(o.maxWidth=Math.min(o.maxWidth,s.width)),a.height<1/0&&(!o.maxHeight||o.maxHeight>s.height)&&(o.maxHeight=Math.min(o.maxHeight,s.height)),o.minWidth>o.maxWidth&&(o.minWidth=o.maxWidth,o.widthFrozen=!0),o.minHeight>o.maxHeight&&(o.minHeight=o.maxHeight,o.heightFrozen=!0),o}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}
34),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),i=Og(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,i.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,i.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:km(),image:Rp(km("image"),this.imageClass),stencil:km("stencil"),boundaries:Rp(km("boundaries"),this.boundariesClass),stretcher:Rp(km("stretcher")),background:Rp(km("background"),this.backgroundClass),foreground:Rp(km("foreground"),this.foregroundClass),imageWrapper:Rp(km("image-wrapper")),cropperWrapper:Rp(km("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,i=t.height,n=t.left,r=t.top;return{width:e/this.coefficient,height:i/this.coefficient,left:(n-this.visibleArea.left)/this.coefficient,top:(r-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},i={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},n=Tp(Tp({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),r={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-i.left-this.imageTransforms.translateX,"px, ").concat(-e.top-i.top-this.imageTransforms.translateY,"px)")+hm(n)};return this.transitionsOptions.enabled&&(r.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),r}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick((function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()}))},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find((function(i){return t[i]!==e[i]}))&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=Fp(this.update,this.debounce),this.debouncedDisableTransitions=Fp(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},destroyed:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(Tp({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:Tp({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var i=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?Tp({},this.visibleArea):null,imageTransforms:e,get canvas(){return i.canvas?i.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?Tp({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.transitions,r=void 0===n||n;this.onManipulateImage(new Kp({},{factor:1/t,center:e}),{normalize:!1,transitions:r})},move:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.transitions,r=void 0===n||n;this.onManipulateImage(new Kp({left:t||0,top:e||0}),{normalize:!1,transitions:r})}
34,setCoordinates:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.autoZoom,r=void 0===n||n,o=i.transitions,a=void 0===o||o;this.$nextTick((function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),r&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t}))},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then((function(){t.onChange()})):this.resetVisibleArea().then((function(){t.onChange()}))},reset:function(){var t=this;return this.resetVisibleArea().then((function(){t.onChange(!1)}))},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick((function(){t(),e.awaiting=!1})))},prepareResult:function(t){return this.roundResult?function(t){var e=t.coordinates,i=t.sizeRestrictions,n=t.positionRestrictions,r={width:Math.round(e.width),height:Math.round(e.height),left:Math.round(e.left),top:Math.round(e.top)};return r.width>i.maxWidth?r.width=Math.floor(e.width):r.width<i.minWidth&&(r.width=Math.ceil(e.width)),r.height>i.maxHeight?r.height=Math.floor(e.height):r.height<i.minHeight&&(r.height=Math.ceil(e.height)),Ag(r,n)}(Tp(Tp({},this.getPublicProperties()),{},{positionRestrictions:Ug(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,i,n){var r=this.autoZoomAlgorithm;r||(r=this.stencilSize?Vg:this.autoZoom?$g:jg);var o=r({event:{type:t,params:n},visibleArea:e,coordinates:i,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return Tp(Tp({},o),{},{changed:!fg(o.visibleArea,e)||!fg(o.coordinates,i)})},runAutoZoom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transitions,n=void 0!==i&&i,r=Ip(e,Cm),o=this.processAutoZoom(t,this.visibleArea,this.coordinates,r),a=o.visibleArea,s=o.coordinates,l=o.changed;n&&l&&this.enableTransitions(),this.visibleArea=a,this.coordinates=s,n&&l&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(t){var e=t.event,i=t.visibleArea,n=t.coefficient;if("manipulateImage"===e.type)return Bp(Bp({},e),{move:{left:e.move&&e.move.left?n*e.move.left:0,top:e.move&&e.move.top?n*e.move.top:0},scale:{factor:e.scale&&e.scale.factor?e.scale.factor:1,center:e.scale&&e.scale.center?{left:e.scale.center.left*n+i.left,top:e.scale.center.top*n+i.top}:null}});if("resize"===e.type){var r=Bp(Bp({},e),{directions:Bp({},e.directions)});return sg.forEach((function(t){r.directions[t]*=n})),r}if("move"===e.type){var o=Bp(Bp({},e),{directions:Bp({},e.directions)});return cg.forEach((function(t){o.directions[t]*=n})),o}return e}(Tp(Tp({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,i=0!==this.imageTransforms.rotate||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(t,e,i){var n=i.rotate,r=i.flip,o={width:e.naturalWidth,height:e.naturalHeight},a=Tg(o,n),s=t.getContext("2d");t.height=a.height,t.width=a.width,s.save();var l=Dg(mg(Bp({left:0,top:0},o)),n);return s.translate(-(l.left-a.width/2),-(l.top-a.height/2)),s.rotate(n*Math.PI/180),s.translate(r.horizontal?o.width:0,r.vertical?o.height:0),s.scale(r.horizontal?-1:1,r.vertical?-1:1),s.drawImage(e,0,0,o.width,o.height),s.restore(),t}(this.$refs.sourceCanvas,e,this.imageTransforms):e,n=Tp({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),r=function(t){return t.find((function(t){return e=t,!Number.isNaN(parseFloat(e))&&isFinite(e);var e}))},o=Ng({sizeRestrictions:{minWidth:r([n.width,n.minWidth])||0,minHeight:r([n.height,n.minHeight])||0,maxWidth:r([n.width,n.maxWidth])||1/0,maxHeight:r([n.height,n.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(n.maxArea&&o.width*o.height>n.maxArea){var a=Math.sqrt(n.maxArea/(o.width*o.height));o={width:Math.round(a*o.width),height:Math.round(a*o.height)}}
34return function(t,e,i,n,r){t.width=n?n.width:i.width,t.height=n?n.height:i.height;var o=t.getContext("2d");o.clearRect(0,0,t.width,t.height),r&&(r.imageSmoothingEnabled&&(o.imageSmoothingEnabled=r.imageSmoothingEnabled),r.imageSmoothingQuality&&(o.imageSmoothingQuality=r.imageSmoothingQuality),r.fillColor&&(o.fillStyle=r.fillColor,o.fillRect(0,0,t.width,t.height),o.save()));var a=i.left<0?-i.left:0,s=i.top<0?-i.top:0;o.drawImage(e,i.left+a,i.top+s,i.width,i.height,a,s,t.width,t.height)}(t,i,this.coordinates,o,n),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.visibleArea&&e?Eg(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,n=this.visibleArea&&e?Ug(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Bg({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:n,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?Hg:Wg);var i=this.sizeRestrictions;i.minWidth,i.minHeight,i.maxWidth,i.maxHeight;var n=[Wp(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,function(e){var i=e.coordinates;return Tp({},Wp(t.defaultPosition)?t.defaultPosition({coordinates:i,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&n.push.apply(n,Ap(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(n,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout((function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}}),this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then((function(){var e={cropper:i,imageSize:t.imageSize};if(Wp(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(e):"fit"===t.defaultBoundaries?t.boundaries=function(t){var e=t.cropper,i=t.imageSize,n=e.clientHeight,r=e.clientWidth,o=n,a=i.width*n/i.height;return a>r&&(a=r,o=i.height*r/i.width),{width:a,height:o}}(e):t.boundaries=function(t){var e=t.cropper;return{width:e.clientWidth,height:e.clientHeight}}
34(e),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")}))},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=Tp(Tp({},this.defaultImageTransforms),{},{flip:Tp({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then((function(){var e,i,n,r,o,a;"visible-area"!==t.priority&&(t.visibleArea=null,t.resetCoordinates()),t.visibleArea=Wp(t.defaultVisibleArea)?t.defaultVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:"visible-area"!==t.priority?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},i=e.visibleArea,n=e.boundaries,r=e.getAreaRestrictions,o=Bp({},i),a=xg(n),o.width/o.height!==a&&(o.height=o.width/a),Ag(o,r({visibleArea:o,type:"move"}))),"visible-area"===t.priority?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")})).catch((function(){t.visibleArea=null}))},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then((function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")})).catch((function(){t.visibleArea=null}))},onChange:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$listeners&&this.$listeners.change&&(t&&this.debounce?this.debouncedUpdate():this.update())},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(t){if(jp(t))return!1;var e=window.location,i=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t)||[],n={protocol:i[1]||"",host:i[2]||"",port:i[3]||""},r=function(t){return t.port||("http"===(t.protocol||e.protocol)?80:433)};return!(!n.protocol&&!n.host&&!n.port||Boolean(n.protocol&&n.protocol==e.protocol&&n.host&&n.host==e.host&&n.host&&r(n)==r(e)))}(this.src)){var i=Hp(this.crossOrigin)?this.canvas:this.crossOrigin;!0===i&&(i="anonymous"),this.imageAttributes.crossOrigin=i}if(this.checkOrientation){var n=(t=this.src,new Promise((function(e){cm(t).then((function(i){var n=dm(i);e(i?{source:t,arrayBuffer:i,orientation:n}:{source:t,arrayBuffer:null,orientation:null})})).catch((function(i){console.warn(i),e({source:t,arrayBuffer:null,orientation:null})}))})));setTimeout((function(){n.then(e.onParseImage)}),this.transitionTime)}else setTimeout((function(){e.onParseImage({source:e.src})}),this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then((function(){t.$emit("ready"),t.onChange(!1)})))},onParseImage:function(t){var e=this,i=t.source,n=t.arrayBuffer,r=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,n&&r&&r>1?$p(i)||!jp(i)?(this.imageAttributes.src=URL.createObjectURL(new Blob([n])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(t){for(var e=[],i=new Uint8Array(t);i.length>0;){var n=i.subarray(0,8192);e.push(String.fromCharCode.apply(null,Array.from?Array.from(n):n.slice())),i=i.subarray(8192)}return"data:image/jpeg;base64,"+btoa(e.join(""))}(n):this.imageAttributes.src=i,Wp(this.defaultTransforms)?this.appliedImageTransforms=um(this.defaultTransforms()):Up(this.defaultTransforms)?this.appliedImageTransforms=um(this.defaultTransforms):this.appliedImageTransforms=function(t){var e=um({});if(t)switch(t){case 2:e.flip.horizontal=!0;break;case 3:e.rotate=-180;break;case 4:e.flip.vertical=!0;break;case 5:e.rotate=90,e.flip.vertical=!0;break;case 6:e.rotate=90;break;case 7:e.rotate=90,e.flip.horizontal=!0;break;case 8:e.rotate=-90}return e}(r),this.defaultImageTransforms=Tp(Tp({},this.appliedImageTransforms),{},{flip:Tp({},this.appliedImageTransforms.flip)}),this.$nextTick((function(){var t=e.$refs.image;
34t&&t.complete&&(function(t){return Boolean(t.naturalWidth)}(t)?e.onSuccessLoadImage():e.onFailLoadImage())}))},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender((function(){e.coordinates=e.moveAlgorithm(Tp(Tp({},e.getPublicProperties()),{},{positionRestrictions:Ug(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()}))},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender((function(){var i=e.sizeRestrictions,n=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(Tp(Tp({},e.getPublicProperties()),{},{positionRestrictions:Ug(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(i.maxWidth,e.visibleArea.width),maxHeight:Math.min(i.maxHeight,e.visibleArea.height),minWidth:Math.max(i.minWidth,n),minHeight:Math.max(i.minHeight,n)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1}))},onManipulateImage:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.transitionsOptions.enabled){var i=e.transitions,n=void 0!==i&&i,r=e.normalize,o=void 0===r||r;n&&this.enableTransitions();var a=qg(Tp(Tp({},this.getPublicProperties()),{},{event:o?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),s=a.visibleArea,l=a.coordinates;this.visibleArea=s,this.coordinates=l,this.runAutoZoom("manipulateImage"),this.onChange(),n&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.visibleArea,i=t.type,n=void 0===i?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:n})},getAspectRatio:function(t){var e,i,n=this.stencilProps,r=n.aspectRatio,o=n.minAspectRatio,a=n.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var s=this.$refs.stencil.aspectRatios();e=s.minimum,i=s.maximum}if(Hp(e)&&(e=Hp(r)?o:r),Hp(i)&&(i=Hp(r)?a:r),!t&&(Hp(e)||Hp(i))){var l=this.getStencilSize(),u=l?xg(l):null;Hp(e)&&(e=Yp(u)?u:void 0),Hp(i)&&(i=Yp(u)?u:void 0)}return{minimum:e,maximum:i}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,i=t.stencilSize,n=t.aspectRatio,kg(xg(r=Wp(i)?i({boundaries:e,aspectRatio:n}):i),n)&&(r=Ng({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:n.minimum,maximum:n.maximum}})),(r.width>e.width||r.height>e.height)&&(r=Ng({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:r.width,height:r.height,aspectRatio:{minimum:xg(r),maximum:xg(r)}})),r;var t,e,i,n,r},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return Tp({},dg)},flip:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.transitions,r=void 0===n||n;if(!this.transitionsActive){r&&this.enableTransitions();var o=Tp({},this.imageTransforms.flip),a=Yg({flip:{horizontal:t?!o.horizontal:o.horizontal,vertical:e?!o.vertical:o.vertical},previousFlip:o,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),s=a.visibleArea,l=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=s,this.coordinates=l,this.onChange(),r&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transitions,n=void 0===i||i;if(!this.transitionsActive){n&&this.enableTransitions();var r=Tp({},this.imageSize);this.appliedImageTransforms.rotate+=t;var o=Gg({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:r,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=o.visibleArea,s=o.coordinates,l=this.processAutoZoom("rotateImage",a,s);a=l.visibleArea,s=l.coordinates,this.visibleArea=a,this.coordinates=s,this.onChange(),n&&this.debouncedDisableTransitions()}}}},Tm=eg({render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"cropper",class:t.classes.cropper},[i("div",{ref:"stretcher",class:t.classes.stretcher}),t._v(" "),i("div",{class:t.classes.boundaries,style:t.boundariesStyle},[i(t.backgroundWrapperComponent,{tag:"component",class:t.classes.cropperWrapper,attrs:{"wheel-resize":t.settings.resizeImage.wheel,"touch-resize":t.settings.resizeImage.touch,"touch-move":t.settings.moveImage.touch,"mouse-move":t.settings.moveImage.mouse},on:{move:t.onManipulateImage,resize:t.onManipulateImage}},[i("div",{class:t.classes.background,style:t.boundariesStyle}),t._v(" "),i("div",{class:t.classes.imageWrapper},[i("img",{ref:"image",class:t.classes.image,style:t.imageStyle,attrs:{crossorigin:t.imageAttributes.crossOrigin,src:t.imageAttributes.src},on:{mousedown:function(t){t.preventDefault()}}})]),t._v(" "),i("div",{class:t.classes.foreground,style:t.boundariesStyle}),t._v(" "),i(t.stencilComponent,t._b({directives:[{name:"show",rawName:"v-show",value:t.imageLoaded,expression:"imageLoaded"}],ref:"stencil",tag:"component",attrs:{image:t.image,coordinates:t.coordinates,"stencil-coordinates":t.stencilCoordinates,transitions:t.transitionsOptions},on:{resize:t.onResize,"resize-end":t.onResizeEnd,move:t.onMove,"move-end":t.onMoveEnd}},"component",t.stencilProps,!1)),t._v(" "),t.canvas?i("canvas",{ref:"canvas",style:{display:"none"}}):t._e(),t._v(" "),t.canvas?i("canvas",{ref:"sourceCanvas",style:{display:"none"}}):t._e()],1)],1)])},staticRenderFns:[]},void 0,Mm,void 0,!1,void 0,!1,void 0,void 0,void 0);a().component("cropper",Tm),a().component("rectangle-stencil",wm),a().component("circle-stencil",Sm),a().component("simple-handler",Qg),a().component("simple-line",im);var Dm={components:{Cropper:Tm},props:{id:{type:String,required:!0},uploadUrl:{type:String,required:!0},cropUrl:{type:String,required:!0},value:{},errors:{type:Array},fileDomain:{type:String,default:"https://www.nordiskemedier.dk"},croppingEnabled:{type:Boolean,default:!1},aspectRatioSufficient:{type:Boolean,default:!1},width:{type:Number},height:{type:Number},minWidth:{type:Number},minHeight:{type:Number},maxWidth:{type:Number},maxHeight:{type:Number},maxFiles:{type:Number},label:{type:String},language:{type:String},required:{type:Boolean}},data:function(){return{bundle:{id_10587:"Choose File",id_11746:"Choose File(s)",id_10586:"Choose New File",id_11747:"Add File(s)",id_10588:"Remove File",id_10589:"Click here to see the current file",id_10738:"Crop",id_10739:"Undo",id_10591:"An unexpected error occurred.",id_10795:"Only archives can be uploaded. For example ZIP files.",id_10592:"Only pictures can be uploaded.",id_11189:"Only PDF files can be uploaded.",id_9660:"File type not allowed.",id_192:"The aspect ratio of the picture must be {0}. For example {1}*{2} pixels.",id_193:"Width of the picture must be exactly {0} pixels.",id_194:"Height of the picture must be exactly {0} pixels.",id_188:"Width of the picture must not be less than {0} pixels.",id_190:"Height of the picture must not be less than {0} pixels.",id_189:"Width of the picture must not exceed {0} pixels.",id_191:"Height of the picture must not exceed {0} pixels.",id_195:"The file is too big. It may not exceed {0}.",id_11738:"Drop the file here",id_11739:"Drop the file or files here",id_12197:"If your image does not appear here, it may be because you have an adblocker. Turn it off and try again."},status:{},internalErrors:[],cropX:null,cropY:null,cropWidth:null,cropHeight:null,cropMax:800,cropMaxDefault:800,undos:[],dragenter:0,onDragTarget:!1,previewImageLoaded:!1}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t})),this.$nextTick((()=>{this.handleResize()})),window.addEventListener("resize",this.handleResize),document.addEventListener("dragover",this.onDragOver,!1),document.addEventListener("dragenter",this.onDragEnter,!1),document.addEventListener("dragleave",this.onDragLeave,!1),document.addEventListener("drop",this.onDrop,!1)},destroyed:function(){window.removeEventListener("resize",this.handleResize),document.removeEventListener("dragover",this.onDragOver),document.removeEventListener("dragenter",this.onDragEnter),document.removeEventListener("dragleave",this.onDragLeave),document.removeEventListener("drop",this.onDrop)},computed:{previewUrl:function(){return this.multiple||this.emptyValue?null:this.fileDomain+"/"+this.value.code+"."+this.value.extension},previewFactor:function(){return this.value.width>this.cropMax?this.cropMax/this.value.width:1},previewStyle:function(){var t=this.value.width*this.previewFactor,e=this.value.height*this.previewFactor,i="";return this.value.image&&(this.previewImageLoaded?(i+="max-width: "+t+"px;",i+="max-height: "+e+"px;"):(i+="width: "+t+"px;",i+="height: "+e+"px;")),i},loadingStyle:function(){var t=this.value.width*this.previewFactor,e=this.value.height*this.previewFactor,i="";return i+="width: "+t+"px;",i+="height: "+e+"px;",i},loadingClass:function(){var t=this.value.width*this.previewFactor,e=this.value.height*this.previewFactor,i="cropper-loading-class";return t>600?i+=" w600":t>500?i+=" w500":t>400&&(i+=" w400"),e>400?i+=" h400":e>300?i+=" h300":e>200?i+=" h200":e>150&&(i+=" h150"),i},cropDimension:function(){return"["+this.cropWidth+"x"+this.cropHeight+"]"},externalPreview:function(){var t=this.$scopedSlots,e=t&&t.preview&&t.preview();return!(!e||!e.length)},help:function(){var t=this.$scopedSlots,e=t&&t.help&&t.help();return!(!e||!e.length)},invalid:function(){return this.allErrors&&this.allErrors.length>0},multiple:function(){return Array.isArray(this.value)},emptyValue:function(){return this.multiple&&0==this.value.length||!this.multiple&&!this.value},uploading:function(){for(var t in this.status)if(this.status[t].uploading)return!0;return!1},uploadProgress:function(){var t=100*Object.keys(this.status).length,e=0;for(var i in this.status){var n=this.status[i];n.uploadProgress&&(e+=100*n.uploadProgress/t)}return Math.round(e)},cropperMinWidth:function(){return this.minWidth?this.minWidth:1},cropperMinHeight:function(){return this.minHeight?this.minHeight:1},cropperMaxWidth:function(){return this.maxWidth?this.maxWidth:this.value.width},cropperMaxHeight:function(){return this.maxHeight?this.maxHeight:this.value.height},cropperStencilProps:function(){var t={};this.width&&this.height&&(t.aspectRatio=this.width/this.height);var e={},i=!0;return this.cropperMinWidth!=this.cropperMaxWidth&&this.cropperMinHeight!=this.cropperMaxHeight&&(e.westNorth=!0,e.eastNorth=!0,e.eastSouth=!0,e.westSouth=!0,i=!1),this.cropperMinWidth!=this.cropperMaxWidth&&this.cropperMinHeight==this.cropperMaxHeight&&(e.west=!0,e.east=!0,i=!1),this.cropperMinWidth==this.cropperMaxWidth&&this.cropperMinHeight!=this.cropperMaxHeight&&(e.north=!0,e.south=!0,i=!1),t.handlers=e,i&&(t.resizable=!1),t},isMinimumSize:function(){return this.value&&this.value.width<=this.cropperMinWidth&&this.value.height<=this.cropperMinHeight&&this.isCorrectAspectRatio(this.value)},dragging:function(){return this.dragenter>0&&!this.maxFilesReached},maxFilesReached:function(){return this.maxFiles&&this.multiple&&this.maxFiles<=this.value.length},allErrors:function(){var t=[];return this.internalErrors&&this.internalErrors.length&&t.push(...this.internalErrors),this.errors&&this.errors.length&&t.push(...this.errors),t}},watch:{value:function(t,e){t!==e&&e&&!Array.isArray(e)&&this.undos.push(e)}},methods:{handleResize:function(){var t=this.cropMaxDefault;const e=this.$refs.preview;if(e){const i=e.getBoundingClientRect();i&&i.width&&i.width<t&&(t=i.width)}this.cropMax=t},onDragOver:function(t){t.preventDefault()},onDragEnter:function(t){this.onDragTarget||t.target.id!=this.id||(this.onDragTarget=!0),this.dragenter++},onDragLeave:function(t){this.onDragTarget&&t.target.id==this.id&&(this.onDragTarget=!1),this.dragenter--},onDrop:function(t){t.preventDefault();try{if(t.target.id==this.id){var e=Object.keys(this.status).length,i=t=>{t.index=e++,this.handleFile(t)};if(t.dataTransfer.items){for(var n=0;n<t.dataTransfer.items.length;n++)if("file"===t.dataTransfer.items[n].kind){var r=t.dataTransfer.items[n].getAsFile();if(i(r),!this.multiple)break}}else for(var o=0;o<t.dataTransfer.files.length;o++){var a=t.dataTransfer.files[o];if(i(a),!this.multiple)break}}}finally{this.onDragTarget=!1,this.dragenter=0}},addFile:function(t){this.multiple?this.maxFilesReached||(this.previewImageLoaded=!1,this.value.push(t),this.updateV
34alue(this.value)):(this.previewImageLoaded=!1,this.updateValue(t))},handleFile:function(t){var e=new FormData;e.append("file",t),this.internalErrors=[],this.$set(this.status,t.index,{uploading:!0,uploadProgress:0}),ou({url:this.uploadUrl,method:"post",data:e,headers:{"Content-Type":"multipart/form-data"},onUploadProgress:e=>{this.status[t.index].uploadProgress=Math.floor(100*e.loaded/e.total)}}).then((t=>{var e=t.data;if(e.status)if("success"===e.status.toLowerCase()&&e.file){if(!this.croppingEnabled)if(this.aspectRatioSufficient){if(this.width&&this.height&&!this.isCorrectAspectRatio(e.file)){var i=this.width/this.height;this.internalErrors.push(this.bundle.id_192.replace("{0}",i).replace("{1}",this.width).replace("{2}",this.height))}}else this.width&&e.file.width!=this.width&&this.internalErrors.push(this.bundle.id_193.replace("{0}",this.width)),this.height&&e.file.height!=this.height&&this.internalErrors.push(this.bundle.id_194.replace("{0}",this.height));this.minWidth&&e.file.width<this.minWidth&&this.internalErrors.push(this.bundle.id_188.replace("{0}",this.minWidth)),this.minHeight&&e.file.height<this.minHeight&&this.internalErrors.push(this.bundle.id_190.replace("{0}",this.minHeight)),this.croppingEnabled||(this.maxWidth&&e.file.width>this.maxWidth&&this.internalErrors.push(this.bundle.id_189.replace("{0}",this.maxWidth)),this.maxHeight&&e.file.height>this.maxHeight&&this.internalErrors.push(this.bundle.id_191.replace("{0}",this.maxHeight))),0==this.internalErrors.length&&this.addFile(e.file)}else{var n;switch(e.status.toLowerCase()){case"archive_required":n=this.bundle.id_10795;break;case"image_required":n=this.bundle.id_10592;break;case"pdf_required":n=this.bundle.id_11189;break;case"max_size_exceeded":n=this.bundle.id_195;break;default:console.log("Unsupported status: "+e.status),n=this.bundle.id_10591}if(e.statusParams&&e.statusParams.length)for(var r=0;r<e.statusParams.length;r++)n=n.replace("{"+r+"}",e.statusParams[r]);this.internalErrors.push(n)}})).catch((t=>{console.log(t)})).finally((()=>{this.status[t.index].uploading=!1;var e=!0;for(var i in this.status)if(this.status[i].uploading){e=!1;break}if(e)for(var n in this.status)this.status[n].uploading||delete this.status[n]}))},handleUpload:function(){for(var t=Object.keys(this.status).length,e=0;e<this.$refs.file.files.length;e++){var i=this.$refs.file.files[e];if(i.index=t+e,this.handleFile(i),!this.multiple)break}},cropChange:function({coordinates:t}){this.cropX=t.left,this.cropY=t.top,this.cropWidth=t.width,this.cropHeight=t.height},crop:function(){this.value&&this.cropX>=0&&this.cropY>=0&&this.cropWidth>3&&this.cropHeight>3&&(this.width&&this.height&&(this.cropHeight=Math.round(this.height/(this.width/this.cropWidth))),ou({url:this.cropUrl+"?id="+this.value.id+"&x="+this.cropX+"&y="+this.cropY+"&w="+this.cropWidth+"&h="+this.cropHeight,method:"post"}).then((t=>{this.updateValue(t.data.file)})).catch((t=>{console.log(t)})))},cropperDefaultSize:function({imageSize:t,visibleArea:e}){return{width:(e||t).width,height:(e||t).height}},isCorrectAspectRatio:function(t){if(t&&t.width&&t.height&&this.width&&this.height){var e=t.width/this.width,i=t.height/this.height,n=Math.round(t.width/e),r=Math.round(t.height/i);return n==this.width&&r==this.height}return!1},undo:function(){if(this.undos.length>0){var t=this.undos.splice(this.undos.length-1,1)[0];this.updateValue(t),this.$nextTick((()=>{this.undos.splice(this.undos.length-1,1)}))}},removeValue:function(){this.updateValue(null),this.$nextTick((()=>{this.undos.splice(0,this.undos.length)}))},updateValue:function(t){this.$emit("input",t)}}},Im=Dm,Am=Fr(Im,Cp,kp,!1,null,null,null),Om=Am.exports,Em=function(){var t=this,e=t._self._c;return e("input-custom",{attrs:{id:t.id,errors:t.errors,label:t.label,language:t.language,required:t.required},scopedSlots:t._u([t.help?{key:"help",fn:function(){return[t._t("default")]},proxy:!0}:null],null,!0)},[e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.link,expression:"link"}],staticClass:"form-control",attrs:{type:"text",placeholder:"https://",maxlength:2e3},domProps:{value:t.link},on:{input:function(e){e.target.composing||(t.link=e.target.value)}}})]),t.value?e("div",{staticClass:"col-auto"},[e("button",{staticClass:"btn btn-outline-danger",on:{click:function(e){return e.preventDefault(),t.removeValue.apply(null,arguments)}}},[e("i",{staticClass:"fa-light fa-trash-alt"})])]):t._e()]),t.iframeSrc?e("iframe",{staticClass:"mt-3",attrs:{width:"300",height:"225",rel:"
340",src:t.iframeSrc,frameborder:"0",allowfullscreen:"true"}}):t._e()])},Pm=[],Lm={props:{id:{type:String,required:!0},value:{},errors:{type:Array},label:{type:String},language:{type:String},required:{type:Boolean}},computed:{link:{get:function(){return a().$videoPlugin.getLinkByToken(this.value)},set:function(t){var e=a().$videoPlugin.getTokenByLink(t);this.updateValue(e)}},iframeSrc:function(){return a().$videoPlugin.getEmbedByToken(this.value)},help:function(){return!!this.$scopedSlots.default}},methods:{removeValue:function(){this.updateValue(null)},updateValue:function(t){this.$emit("input",t)}}},Rm=Lm,zm=Fr(Rm,Em,Pm,!1,null,null,null),Nm=zm.exports,Fm=function(){var t=this,e=t._self._c;return t.showIpAccess?e("a",{attrs:{href:t.ipAccessHref}},[e("i",{staticClass:"fa-light me-1",class:t.ipAccessStyleClass}),t._v(t._s(t.ipAccessText)+" ")]):t._e()},Bm=[],Vm={name:"ip-access-toggle",data:function(){return{visitor:window.visitor,bundle:{id_11352:"IP access active",id_11353:"IP access inactive"}}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},computed:{showIpAccess:function(){return this.visitor.ipAccess&&this.visitor.ipAccess.disableAddon&&this.window.access.module.subscriptions},ipAccessHref:function(){return"?disableIpAccess="+!this.visitor.ipAccess.disable},ipAccessStyleClass:function(){return this.visitor.ipAccess.disable?"fa-lock":"fa-lock-open"},ipAccessText:function(){return this.visitor.ipAccess.disable?this.bundle.id_11353:this.bundle.id_11352}}},$m=Vm,jm=Fr($m,Fm,Bm,!1,null,null,null),Wm=jm.exports,Hm=function(){var t=this,e=t._self._c;return t.value&&t.value.length?e("div",{staticClass:"job-in-focus-box"},[e("div",{staticClass:"row job-in-focus-box-headline"},[e("div",{staticClass:"col-6"},[e("h6",{staticClass:"d-none d-md-block"},[t._v(t._s(t.bundle.id_10883))]),e("h6",{staticClass:"d-block d-md-none unprintable"},[e("a",{attrs:{href:t.computedMoreLink}},[t._v(t._s(t.bundle.id_10883)),e("i",{staticClass:"fa-light fa-chevron-right ms-2"})])])]),t.numberOfSlides>1?e("div",{staticClass:"col-6 text-end d-none d-md-block unprintable"},[e("a",{staticClass:"arrow",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousSlide.apply(null,arguments)}}},[e("i",{staticClass:"fa-light fa-angle-left"})]),e("a",{staticClass:"arrow",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.nextSlide.apply(null,arguments)}}},[e("i",{staticClass:"fa-light fa-angle-right"})])]):t._e(),t.numberOfSlides>1?e("div",{staticClass:"col-6 text-end d-md-none unprintable"},t._l(t.numberOfSlides,(function(i){return e("a",{key:"slide-top-"+i,staticClass:"dot",class:{active:i==t.currentSlide},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.jumpToSlide(i)}}},[e("i",{staticClass:"fa-solid fa-circle"})])})),0):t._e()]),e("div",{on:{touchstart:t.onTouchStart,touchmove:t.onTouchMove,mouseover:t.onMouseOver,mouseout:t.onMouseOut}},[e("transition",{attrs:{name:t.slideDirection,mode:"out-in"}},[e("div",{key:t.currentSlide,staticClass:"row jobs-transition"},[t._l(t.currentJobs,(function(i){return e("div",{key:"job-"+i.id,staticClass:"col-12 col-md-6"},[e("tracker",{attrs:{a:"impression",tn:"job",tr:i.id}},[e("a",{staticClass:"job",attrs:{href:i.href}},[e("div",{staticClass:"logo"},[e("img",{attrs:{src:i.logo,loading:"lazy"}})]),e("div",{staticClass:"text"},[e("div",{staticClass:"company"},[t._v(t._s(i.company))]),e("div",{staticClass:"title",attrs:{title:i.title}},[t._v(t._s(i.title))]),e("div",{staticClass:"location"},[e("i",{staticClass:"fa-light fa-location-dot"}),t._v(t._s(i.location))])])])])],1)})),t._l(4-t.currentJobs.length,(function(t){return e("div",{key:"job-placeholder-"+t,staticClass:"col-12 col-md-6 d-flex"})}))],2)])],1),t.numberOfSlides>1?e("div",{staticClass:"text-end d-none d-md-block unprintable"},t._l(t.numberOfSlides,(function(i){return e("a",{key:"slide-bottom-"+i,staticClass:"dot",class:{active:i==t.currentSlide},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.jumpToSlide(i)}}},[e("i",{staticClass:"fa-solid fa-circle"})])})),0):t._e()]):t._e()},Um=[],qm={name:"job-in-focus-box",props:{value:{type:Array,required:!0},autoRotate:{type:Boolean,default:!0},moreLink:{type:String,default:"/job"}},data:function(){return{contextPath:window.contextPath,hovering:!1,interval:null,rotationSpeed:5e3,slideDirection:"",currentSlide:1,currentSize:4,touchStartX:0,touchCurrentX:0,touchSlide:null,bundle:{id_10883:"Featured Jobs"}}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},mounted:function(){this.startRotation()},beforeDestroy:function(){this.stopRotation()},computed:{computedMoreLink:function(){return this.moreLink.startsWith("/")?this.contextPath+this.moreLink:this.moreLink},numberOfSlides:function(){return this.value?Math.ceil(this.value.length/this.currentSize):0},currentJobs:function(){return this.value?this.value.slice((this.currentSlide-1)*this.currentSize,(this.currentSlide-1)*this.currentSize+this.currentSize):[]}},watch:{hovering:function(t){t?this.stopRotation():this.startRotation()}},methods:{startRotation:function(){this.autoRotate&&!this.interval&&(this.interval=setInterval((()=>{this.nextSlide()}),this.rotationSpeed))},stopRotation:function(){this.interval&&(clearInterval(this.interval),this.interval=null)},jumpToSlide:function(t){this.currentSlide<t?this.slideDirection="slide-left":this.currentSlide>t&&(this.slideDirection="slide-right"),this.currentSlide=t},previousSlide:function(){this.slideDirection="slide-right",this.currentSlide>1?this.currentSlide--:this.currentSlide=this.numberOfSlides},nextSlide:function(){this.slideDirection="slide-left",this.currentSlide<this.numberOfSlides?this.currentSlide++:this.currentSlide=1},onTouchStart:function(t){this.touchStartX=t.touches[0].clientX,this.touchSlide=this.currentSlide},onTouchMove:function(t){if(this.currentSlide!=this.touchSlide)return void t.preventDefault();this.touchCurrentX=t.touches[0].clientX;const e=this.touchCurrentX-this.touchStartX;e>50?(t.preventDefault(),this.previousSlide()):e<-50&&(t.preventDefault(),this.nextSlide())},onMouseOver:function(){this.hovering=!0},onMouseOut:function(){this.hovering=!1}}},Gm=qm,Ym=Fr(Gm,Hm,Um,!1,null,null,null),Xm=Ym.exports,Zm=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"latest-news-header"},on:{mouseover:function(e){t.hovering=!0},mouseout:function(e){t.hovering=!1}}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-6"},[e("h6",[e("a",{attrs:{href:t.window.contextPath+"/article/latest.html"}},[[t._v(t._s(t.bundle.id_10859))],e("i",{staticClass:"fa-light fa-chevron-right d-md-none ms-2"})],2)])]),e("div",{staticClass:"col-6 text-end dots-and-arrows"},[t._l(t.numberOfSlides,(function(i){return e("a",{key:i,staticClass:"dot",class:{active:i==t.currentSlide},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.jumpToSlide(i)}}},[e("i",{staticClass:"fa-solid fa-circle"})])})),e("a",{staticClass:"arrow",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previousSlide.apply(null,arguments)}}},[e("i",{staticClass:"fa-light fa-angle-left"})]),e("a",{staticClass:"arrow",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.nextSlide.apply(null,arguments)}}},[e("i",{staticClass:"fa-light fa-angle-right"})])],2)]),e("div",[e("transition",{attrs:{name:t.slideDirection,mode:"out-in"}},[e("div",{key:t.currentSlide,staticClass:"row"},t._l(t.currentNews,(function(i,n){return e("div",{key:n,staticClass:"col-4"},[e("smart-date",{attrs:{value:t.parseMillis(i.created),label:t.bundle.id_12399,"today-label":t.bundle.id_12396,"yesterday-label":t.bundle.id_12397,"tomorrow-label":t.bundle.id_12398,capitalize:!0,"year-format":t.bundle.id_12019,"date-format":t.bundle.id_12395,"time-format":t.bundle.id_12020,locale:t.window.vars.iso_639_1},scopedSlots:t._u([{key:"prepend",fn:function(){return[e("i",{staticClass:"fa-solid fa-circle"})]},proxy:!0}],null,!0)}),e("a",{attrs:{href:t.window.contextPath+(null!=i.mainBlog&&i.mainBlog?"/live/view/":"/article/view/")+i.id+"/"+t.slugUtil.withUnderscores(null!=i.title?i.title:i.headline),title:i.headline}},[t._v(" "+t._s(i.headline)+" ")])],1)})),0)])],1)])},Km=[],Jm={name:"latest-news",props:{value:{type:Array,required:!0},autoRotate:{type:Boolean,default:!1},rotationSpeed:{type:Number,default:2e4}},data:function(){return{bundle:{id_10859:"Latest news",id_12399:"{0} at {1}",id_12396:"Today",id_12397:"Yesterday",id_12398:"Tomorrow",id_12019:"MMMM d, yyyy",id_12395:"MMMM d",id_12020:"HH:mm"},slugUtil:a().$slugUtil,hovering:!1,interval:null,slideDirection:"",currentSlide:1,currentSize:3}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},mounted:function(){this.startRotation()},beforeDestroy:function(){this.stopRotation()},computed:{numberOfSlides:function(){return Math.ceil(this.value.length/this.currentSize)},currentNews:function(){return this.value.slice((this.currentSlide-1)*this.currentSize,(this.currentSlide-1)*this.currentSize+this.currentSize)}},watch:{hovering:function(t){t?this.stopRotation():this.startRotation()}},methods:{startRotation:function(){this.autoRotate&&!this.interval&&(this.interval=setInterval((()=>{this.nextSlide()}),this.rotationSpeed))},stopRotation:function(){this.interval&&(clearInterval(this.interval),this.interval=null)},jumpToSlide:function(t){this.currentSlide<t?this.slideDirection="slide-left":this.currentSlide>t&&(this.slideDirection="slide-right"),this.currentSlide=t},previousSlide:function(){this.slideDirection="slide-right",this.currentSlide>1?this.currentSlide--:this.currentSlide=this.numberOfSlides},nextSlide:function(){this.slideDirection="slide-left",this.currentSlide<this.numberOfSlides?this.currentSlide++:this.currentSlide=1},parseMillis:function(t){return a().$luxon.DateTime.fromMillis(t)}}},Qm=Jm,tv=Fr(Qm,Zm,Km,!1,null,"2f73bfea",null),ev=tv.exports,iv=function(){var t=this,e=t._self._c;return t.render?e("v-chart",{attrs:{option:t.option,autoresize:""}}):t._e()},nv=[],rv=function(t,e){return rv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}
34,rv(t,e)};function ov(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}rv(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}Object.create;Object.create;var av=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),sv=function(){function t(){this.browser=new av,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),lv=new sv;function uv(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(lv.wxa=!0,lv.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?lv.worker=!0:"undefined"===typeof navigator?(lv.node=!0,lv.svgSupported=!0):uv(navigator.userAgent,lv);var cv=lv,hv=12,dv="sans-serif",fv=hv+"px "+dv,pv=20,gv=100,mv="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vv(t){var e={};if("undefined"===typeof JSON)return e;for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),r=(t.charCodeAt(i)-pv)/gv;e[n]=r}return e}var yv=vv(mv),bv={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(i,n){if(!t){var r=bv.createCanvas();t=r&&r.getContext("2d")}if(t)return e!==n&&(e=t.font=n||fv),t.measureText(i);i=i||"",n=n||fv;var o=/(\d+)px/.exec(n),a=o&&+o[1]||hv,s=0;if(n.indexOf("mono")>=0)s=a*i.length;else for(var l=0;l<i.length;l++){var u=yv[i[l]];s+=null==u?a:u*a}return{width:s}}}(),loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n}};var _v=Hv(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),wv=Hv(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),xv=Object.prototype.toString,Sv=Array.prototype,Cv=Sv.forEach,kv=Sv.filter,Mv=Sv.slice,Tv=Sv.map,Dv=function(){}.constructor,Iv=Dv?Dv.prototype:null,Av="__proto__",Ov=2311;function Ev(){return Ov++}function Pv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function Lv(t){if(null==t||"object"!==typeof t)return t;var e=t,i=xv.call(t);if("[object Array]"===i){if(!vy(t)){e=[];for(var n=0,r=t.length;n<r;n++)e[n]=Lv(t[n])}}else if(wv[i]){if(!vy(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(n=0,r=t.length;n<r;n++)e[n]=t[n]}}}else if(!_v[i]&&!vy(t)&&!ry(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==Av&&(e[a]=Lv(t[a]));return e}function Rv(t,e,i){if(!ey(e)||!ey(t))return i?Lv(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==Av){var r=t[n],o=e[n];!ey(o)||!ey(r)||Zv(o)||Zv(r)||ry(o)||ry(r)||iy(o)||iy(r)||vy(o)||vy(r)?!i&&n in t||(t[n]=Lv(e[n])):Rv(r,o,i)}return t}function zv(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==Av&&(t[i]=e[i]);return t}function Nv(t,e,i){for(var n=qv(e),r=0;r<n.length;r++){var o=n[r];
vendor: 19,698 bytes, line 34
34(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}bv.createCanvas;function Fv(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function Bv(t,e){var i=t.prototype;function n(){}for(var r in n.prototype=e.prototype,t.prototype=new n,i)i.hasOwnProperty(r)&&(t.prototype[r]=i[r]);t.prototype.constructor=t,t.superClass=e}function Vv(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else Nv(t,e,i)}function $v(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function jv(t,e,i){if(t&&e)if(t.forEach&&t.forEach===Cv)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function Wv(t,e,i){if(!t)return[];if(!e)return hy(t);if(t.map&&t.map===Tv)return t.map(e,i);for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.call(i,t[r],r,t));return n}function Hv(t,e,i,n){if(t&&e){for(var r=0,o=t.length;r<o;r++)i=e.call(n,i,t[r],r,t);return i}}function Uv(t,e,i){if(!t)return[];if(!e)return hy(t);if(t.filter&&t.filter===kv)return t.filter(e,i);for(var n=[],r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function qv(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function Gv(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(Mv.call(arguments)))}}var Yv=Iv&&Kv(Iv.bind)?Iv.call.bind(Iv.bind):Gv;function Xv(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(Mv.call(arguments)))}}function Zv(t){return Array.isArray?Array.isArray(t):"[object Array]"===xv.call(t)}function Kv(t){return"function"===typeof t}function Jv(t){return"string"===typeof t}function Qv(t){return"[object String]"===xv.call(t)}function ty(t){return"number"===typeof t}function ey(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function iy(t){return!!_v[xv.call(t)]}function ny(t){return!!wv[xv.call(t)]}function ry(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function oy(t){return null!=t.colorStops}function ay(t){return null!=t.image}function sy(t){return t!==t}function ly(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;i<n;i++)if(null!=t[i])return t[i]}function uy(t,e){return null!=t?t:e}function cy(t,e,i){return null!=t?t:null!=e?e:i}function hy(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return Mv.apply(t,e)}function dy(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function fy(t,e){if(!t)throw new Error(e)}function py(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var gy="__ec_primitive__";function my(t){t[gy]=!0}function vy(t){return t[gy]}var yy=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return qv(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},t}(),by="function"===typeof Map;function _y(){return by?new Map:new yy}var wy=function(){function t(e){var i=Zv(e);this.data=_y();var n=this;function r(t,e){i?n.set(t,e):n.set(e,t)}e instanceof t?e.each(r):e&&jv(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(i,n){t.call(e,i,n)}))},t.prototype.keys=function(){var t=this.data.keys();return by?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function xy(t){return new wy(t)}function Sy(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];var r=t.length;for(n=0;n<e.length;n++)i[n+r]=e[n];return i}function Cy(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&zv(i,e),i}function ky(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function My(t,e){return t.hasOwnProperty(e)}function Ty(){}var Dy=180/Math.PI;function Iy(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Ay(t){return[t[0],t[1]]}function Oy(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function Ey(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function Py(t){return Math.sqrt(Ly(t))}function Ly(t){return t[0]*t[0]+t[1]*t[1]}function Ry(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function zy(t,e){var i=Py(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function Ny(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Fy=Ny;function By(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Vy=By;function $y(t,e,i,n){return t[0]=e[0]+n*(i[0]-e[0]),t[1]=e[1]+n*(i[1]-e[1]),t}function jy(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function Wy(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function Hy(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var Uy=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),qy=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Uy(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new Uy(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Uy(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Uy(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Uy(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Uy(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Gy=qy,Yy=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;r<o;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;l<s;l++){var u=n[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),Xy=Yy,Zy=Math.log(2);function Ky(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Zy);return t[i][l]}var u=n|1<<i,c=i+1;while(n&1<<c)c++;for(var h=0,d=0,f=0;d<s;d++){var p=1<<d;p&r||(h+=(f%2?-1:1)*t[i][d]*Ky(t,e-1,c,u,r|p,o),f++)}return o[a]=h,h}function Jy(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=Ky(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ky(i,7,0===a?1:0,1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}var Qy="___zrEVENTSAVED",tb=[];function eb(t,e,i,n,r){return ib(tb,e,n,r,!0)&&ib(t,i,tb[0],tb[1])}function ib(t,e,i,n,r){if(e.getBoundingClientRect&&cv.domSupported&&!ob(e)){var o=e[Qy]||(e[Qy]={}),a=nb(e,o),s=rb(a,o,r);if(s)return s(t,i,n),!0}return!1}function nb(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[u]+":0",n[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return i}function rb(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?Jy(s,a):Jy(a,s))}function ob(t){return"CANVAS"===t.nodeName.toUpperCase()}var ab=/([&<>"'])/g,sb={"&":"&","<":"<",">":">",'"':""","'":"'"};function lb(t){return null==t?"":(t+"").replace(ab,(function(t,e){return sb[e]}))}var ub=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cb=[],hb=cv.browser.firefox&&+cv.browser.version.split(".")[0]<39;function db(t,e,i,n){return i=i||{},n?fb(t,e,i):hb&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):fb(t,e,i),i}function fb(t,e,i){if(cv.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(ob(t)){var o=t.getBoundingClientRect();return i.zrX=n-o.left,void(i.zrY=r-o.top)}if(ib(cb,t,n,r))return i.zrX=cb[0],void(i.zrY=cb[1])}i.zrX=i.zrY=0}function pb(t){return t||window.event}function gb(t,e,i){if(e=pb(e),null!=e.zrX)return e;var n=e.type,r=n&&n.indexOf("touch")>=0;if(r){var o="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];o&&db(t,o,e,i)}else{db(t,e,e,i);var a=mb(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&ub.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function mb(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;if(null==i||null==n)return e;var r=0!==n?Math.abs(n):Math.abs(i),o=n>0?-1:n<0?1:i>0?-1:1;return 3*r*o}function vb(t,e,i,n){t.addEventListener(e,i,n)}function yb(t,e,i,n){t.removeEventListener(e,i,n)}var bb=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var _b=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o<a;o++){var s=n[o],l=db(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in Sb)if(Sb.hasOwnProperty(e)){var i=Sb[e](this._track,t);if(i)return i}},t}();function wb(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}function xb(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Sb={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=wb(n)/wb(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=xb(n);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function Cb(){return[1,0,0,1,0,0]}function kb(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Mb(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Tb(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Db(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function Ib(t,e,i){var n=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(i),c=Math.cos(i);return t[0]=n*c+a*u,t[1]=-n*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Ab(t,e,i){var n=i[0],r=i[1];return t[0]=e[0]*n,t[1]=e[1]*r,t[2]=e[2]*n,t[3]=e[3]*r,t[4]=e[4]*n,t[5]=e[5]*r,t}function Ob(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}var Eb=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,i){t.x=e,t.y=i},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}(),Pb=Eb,Lb=Math.min,Rb=Math.max,zb=new Pb,Nb=new Pb,Fb=new Pb,Bb=new Pb,Vb=new Pb,$b=new Pb,jb=function(){function t(t,e,i,n){i<0&&(t+=i,i=-i),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return t.prototype.union=function(t){var e=Lb(t.x,this.x),i=Lb(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Rb(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Rb(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,r=Cb();return Db(r,r,[-e.x,-e.y]),Ab(r,r,[i,n]),Db(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,i){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,r=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(o<l||u<r||s<c||h<a);if(i){var f=1/0,p=0,g=Math.abs(o-l),m=Math.abs(u-r),v=Math.abs(s-c),y=Math.abs(h-a),b=Math.min(g,m),_=Math.min(v,y);o<l||u<r?b>p&&(p=b,g<m?Pb.set($b,-g,0):Pb.set($b,m,0)):b<f&&(f=b,g<m?Pb.set(Vb,g,0):Pb.set(Vb,-m,0)),s<c||h<a?_>p&&(p=_,v<y?Pb.set($b,0,-v):Pb.set($b,0,y)):b<f&&(f=b,v<y?Pb.set(Vb,0,v):Pb.set(Vb,0,-y))}return i&&Pb.copy(i,d?Vb:$b),d},t.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],o=n[3],a=n[4],s=n[5];return e.x=i.x*r+a,e.y=i.y*o+s,e.width=i.width*r,e.height=i.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}zb.x=Fb.x=i.x,zb.y=Bb.y=i.y,Nb.x=Bb.x=i.x+i.width,Nb.y=Fb.y=i.y+i.height,zb.transform(n),Bb.transform(n),Nb.transform(n),Fb.transform(n),e.x=Lb(zb.x,Nb.x,Fb.x,Bb.x),e.y=Lb(zb.y,Nb.y,Fb.y,Bb.y);var l=Rb(zb.x,Nb.x,Fb.x,Bb.x),u=Rb(zb.y,Nb.y,Fb.y,Bb.y);e.width=l-e.x,e.height=u-e.y}else e!==i&&t.copy(e,i)},t}(),Wb=jb,Hb="silent";function Ub(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:qb}}function qb(){bb(this.event)}var Gb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return ov(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Xy),Yb=function(){function t(t,e){this.x=t,this.y=e}return t}(),Xb=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Zb=new Wb(0,0,0,0),Kb=function(t){function e(e,i,n,r,o){var a=t.call(this)||this;return a._hovered=new Yb(0,0),a.storage=e,a.painter=i,a.painterRoot=r,a._pointerSize=o,n=n||new Gb,a.proxy=null,a.setHandlerProxy(n),a._draggingMgr=new Gy(a),a}return ov(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(jv(Xb,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=t_(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);
34var a=this._hovered=n?new Yb(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Yb(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,i){t=t||{};var n=t.target;if(!n||!n.silent){var r="on"+e,o=Ub(e,t,i);while(n)if(n[r]&&(o.cancelBubble=!!n[r].call(n,o)),n.trigger(e,o),n=n.__hostTarget?n.__hostTarget:n.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new Yb(t,e);if(Qb(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Wb(t-s,e-s,a,a),u=n.length-1;u>=0;u--){var c=n[u];c===i||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Zb.copy(c.getBoundingRect()),c.transform&&Zb.applyTransform(c.transform),Zb.intersect(l)&&o.push(c))}if(o.length)for(var h=4,d=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=h)for(var g=0;g<f;g+=d){var m=t+p*Math.cos(g),v=e+p*Math.sin(g);if(Qb(o,r,m,v,i),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new _b);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);
34if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new Yb;o.target=n.target,this.dispatchToElement(o,r,n.event)}},e}(Xy);function Jb(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){var n=t,r=void 0,o=!1;while(n){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1;n.silent&&(r=!0)}var s=n.__hostTarget;n=s||n.parent}return!r||Hb}return!1}function Qb(t,e,i,n,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Jb(a,i,n))&&(!e.topTarget&&(e.topTarget=a),s!==Hb)){e.target=a;break}}}function t_(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}jv(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Kb.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=t_(this,r,o);if("mouseup"===t&&a||(i=this.findHover(r,o),n=i.target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Fy(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}}));var e_=Kb,i_=32,n_=7;function r_(t){var e=0;while(t>=i_)e|=1&t,t>>=1;return t+e}function o_(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){while(r<i&&n(t[r],t[r-1])<0)r++;a_(t,e,r)}else while(r<i&&n(t[r],t[r-1])>=0)r++;return r-e}function a_(t,e,i){i--;while(e<i){var n=t[e];t[e++]=t[i],t[i--]=n}}function s_(t,e,i,n,r){for(n===e&&n++;n<i;n++){var o,a=t[n],s=e,l=n;while(s<l)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function l_(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){s=n-r;while(l<s&&o(t,e[i+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(t,e[i+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[i+c])>0?a=c+1:l=c}return l}function u_(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])<0){s=r+1;while(l<s&&o(t,e[i+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{s=n-r;while(l<s&&o(t,e[i+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[i+c])<0?l=c:a=c+1}return l}function c_(t,e){var i,n,r=n_,o=0,a=0;o=t.length;var s=[];function l(t,e){i[a]=t,n[a]=e,a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]<n[t+1]&&t--;else if(n[t]>n[t+1])break;h(t)}}function c(){while(a>1){var t=a-2;t>0&&n[t-1]<n[t+1]&&t--,h(t)}}function h(r){var o=i[r],s=n[r],l=i[r+1],u=n[r+1];n[r]=s+u,r===a-3&&(i[r+1]=i[r+2],n[r+1]=n[r+2]),a--;var c=u_(t[l],t,o,s,0,e);o+=c,s-=c,0!==s&&(u=l_(t[o+s-1],t,l,u,u-1,e),0!==u&&(s<=u?d(o,s,l,u):f(o,s,l,u)))}function d(i,n,o,a){var l=0;for(l=0;l<n;l++)s[l]=t[i+l];var u=0,c=o,h=i;if(t[h++]=t[c++],0!==--a)if(1!==n){var d,f,p,g=r;while(1){d=0,f=0,p=!1;do{if(e(t[c],s[u])<0){if(t[h++]=t[c++],f++,d=0,0===--a){p=!0;break}}else if(t[h++]=s[u++],d++,f=0,1===--n){p=!0;break}}while((d|f)<g);if(p)break;do{if(d=u_(t[c],s,u,n,0,e),0!==d){for(l=0;l<d;l++)t[h+l]=s[u+l];if(h+=d,u+=d,n-=d,n<=1){p=!0;break}}if(t[h++]=t[c++],0===--a){p=!0;break}if(f=l_(s[u],t,c,a,0,e),0!==f){for(l=0;l<f;l++)t[h+l]=t[c+l];if(h+=f,c+=f,a-=f,0===a){p=!0;break}}if(t[h++]=s[u++],1===--n){p=!0;break}g--}while(d>=n_||f>=n_);if(p)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===n){for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else{if(0===n)throw new Error;for(l=0;l<n;l++)t[h+l]=s[u+l]}}else{for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else for(l=0;l<n;l++)t[h+l]=s[u+l]}function f(i,n,o,a){var l=0;for(l=0;l<a;l++)s[l]=t[o+l];var u=i+n-1,c=a-1,h=o+a-1,d=0,f=0;if(t[h--]=t[u--],0!==--n)if(1!==a){var p=r;while(1){var g=0,m=0,v=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,m=0,0===--n){v=!0;break}}else if(t[h--]=s[c--],m++,g=0,1===--a){v=!0;break}}while((g|m)<p);if(v)break;
vendor: 6,084 bytes, line 34
34do{if(g=n-u_(s[c],t,i,n,n-1,e),0!==g){for(h-=g,u-=g,n-=g,f=h+1,d=u+1,l=g-1;l>=0;l--)t[f+l]=t[d+l];if(0===n){v=!0;break}}if(t[h--]=s[c--],1===--a){v=!0;break}if(m=a-l_(t[u],s,0,a,a-1,e),0!==m){for(h-=m,c-=m,a-=m,f=h+1,d=c+1,l=0;l<m;l++)t[f+l]=s[d+l];if(a<=1){v=!0;break}}if(t[h--]=t[u--],0===--n){v=!0;break}p--}while(g>=n_||m>=n_);if(v)break;p<0&&(p=0),p+=2}if(r=p,r<1&&(r=1),1===a){for(h-=n,u-=n,f=h+1,d=u+1,l=n-1;l>=0;l--)t[f+l]=t[d+l];t[h]=s[c]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l]}}else{for(h-=n,u-=n,f=h+1,d=u+1,l=n-1;l>=0;l--)t[f+l]=t[d+l];t[h]=s[c]}else for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,i=[],n=[],{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function h_(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(r<2)){var o=0;if(r<i_)return o=o_(t,i,n,e),void s_(t,i,n,i+o,e);var a=c_(t,e),s=r_(r);do{if(o=o_(t,i,n,e),o<s){var l=r;l>s&&(l=s),s_(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}var d_=1,f_=2,p_=4,g_=!1;function m_(){g_||(g_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function v_(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var y_,b_=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=v_}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;n<r;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,h_(i,v_)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e=e?e.slice():[];var r=n,o=t;while(r)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=d_),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(m_(),u.z=0),isNaN(u.z2)&&(m_(),u.z2=0),isNaN(u.zlevel)&&(m_(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,i);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=Fv(this._roots,t);n>=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),__=b_;y_=cv.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var w_=y_,x_={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},elasticOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=n/4):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-x_.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*x_.bounceIn(2*t):.5*x_.bounceOut(2*t-1)+.5}},S_=x_,C_=Math.pow,k_=Math.sqrt,M_=1e-8,T_=1e-4,D_=k_(3),I_=1/3,A_=Iy(),O_=Iy(),E_=Iy();function P_(t){return t>-M_&&t<M_}function L_(t){return t>M_||t<-M_}function R_(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function z_(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}
vendor: 11,041 bytes, line 34
34function N_(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(P_(c)&&P_(h))if(P_(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[f++]=p)}else{var g=h*h-4*c*d;if(P_(g)){var m=h/c,v=(p=-s/a+m,-m/2);p>=0&&p<=1&&(o[f++]=p),v>=0&&v<=1&&(o[f++]=v)}else if(g>0){var y=k_(g),b=c*s+1.5*a*(-h+y),_=c*s+1.5*a*(-h-y);b=b<0?-C_(-b,I_):C_(b,I_),_=_<0?-C_(-_,I_):C_(_,I_);p=(-s-(b+_))/(3*a);p>=0&&p<=1&&(o[f++]=p)}else{var w=(2*c*s-3*a*h)/(2*k_(c*c*c)),x=Math.acos(w)/3,S=k_(c),C=Math.cos(x),k=(p=(-s-2*S*C)/(3*a),v=(-s+S*(C+D_*Math.sin(x)))/(3*a),(-s+S*(C-D_*Math.sin(x)))/(3*a));p>=0&&p<=1&&(o[f++]=p),v>=0&&v<=1&&(o[f++]=v),k>=0&&k<=1&&(o[f++]=k)}}return f}function F_(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(P_(a)){if(L_(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(P_(c))r[0]=-o/(2*a);else if(c>0){var h=k_(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function B_(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=n}function V_(t,e,i,n,r,o,a,s,l,u,c){var h,d,f,p,g,m=.005,v=1/0;A_[0]=l,A_[1]=u;for(var y=0;y<1;y+=.05)O_[0]=R_(t,i,r,a,y),O_[1]=R_(e,n,o,s,y),p=Vy(A_,O_),p<v&&(h=y,v=p);v=1/0;for(var b=0;b<32;b++){if(m<T_)break;d=h-m,f=h+m,O_[0]=R_(t,i,r,a,d),O_[1]=R_(e,n,o,s,d),p=Vy(O_,A_),d>=0&&p<v?(h=d,v=p):(E_[0]=R_(t,i,r,a,f),E_[1]=R_(e,n,o,s,f),g=Vy(E_,A_),f<=1&&g<v?(h=f,v=g):m*=.5)}return c&&(c[0]=R_(t,i,r,a,h),c[1]=R_(e,n,o,s,h)),k_(v)}function $_(t,e,i,n,r,o,a,s,l){for(var u=t,c=e,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,g=R_(t,i,r,a,p),m=R_(e,n,o,s,p),v=g-u,y=m-c;h+=Math.sqrt(v*v+y*y),u=g,c=m}return h}function j_(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function W_(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function H_(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(P_(o)){if(L_(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(P_(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=k_(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),d>=0&&d<=1&&(r[l++]=d)}}return l}function U_(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function q_(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}function G_(t,e,i,n,r,o,a,s,l){var u,c=.005,h=1/0;A_[0]=a,A_[1]=s;for(var d=0;d<1;d+=.05){O_[0]=j_(t,i,r,d),O_[1]=j_(e,n,o,d);var f=Vy(A_,O_);f<h&&(u=d,h=f)}h=1/0;for(var p=0;p<32;p++){if(c<T_)break;var g=u-c,m=u+c;O_[0]=j_(t,i,r,g),O_[1]=j_(e,n,o,g);f=Vy(O_,A_);if(g>=0&&f<h)u=g,h=f;else{E_[0]=j_(t,i,r,m),E_[1]=j_(e,n,o,m);var v=Vy(E_,A_);m<=1&&v<h?(u=m,h=v):c*=.5}}return l&&(l[0]=j_(t,i,r,u),l[1]=j_(e,n,o,u)),k_(h)}function Y_(t,e,i,n,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var d=h*c,f=j_(t,i,r,d),p=j_(e,n,o,d),g=f-s,m=p-l;u+=Math.sqrt(g*g+m*m),s=f,l=p}return u}var X_=/cubic-bezier\(([0-9,\.e ]+)\)/;function Z_(t){var e=t&&X_.exec(t);if(e){var i=e[1].split(","),n=+py(i[0]),r=+py(i[1]),o=+py(i[2]),a=+py(i[3]);if(isNaN(n+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:N_(0,n,o,1,t,s)&&R_(0,r,a,1,s[0])}}}var K_=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ty,this.ondestroy=t.ondestroy||Ty,this.onrestart=t.onrestart||Ty,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,n=t-this._startTime-this._pausedTime,r=n/i;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=n%i;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Kv(t)?t:S_[t]||Z_(t)},t}(),J_=K_,Q_=function(){function t(t){this.value=t}return t}(),tw=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new Q_(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),ew=function(){function t(t){this._list=new tw,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new Q_(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),iw=ew,nw={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function rw(t){return t=Math.round(t),t<0?0:t>255?255:t}function ow(t){return t<0?0:t>1?1:t}function aw(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?rw(parseFloat(e)/100*255):rw(parseInt(e,10))}function sw(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ow(parseFloat(e)/100):ow(parseFloat(e))}function lw(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function uw(t,e,i){return t+(e-t)*i}function cw(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function hw(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var dw=new iw(20),fw=null;function pw(t,e){fw&&hw(fw,e),fw=dw.put(t,fw||e.slice())}function gw(t,e){if(t){e=e||[];var i=dw.get(t);if(i)return hw(e,i);t+="";var n=t.replace(/ /g,"").toLowerCase();if(n in nw)return hw(e,nw[n]),pw(t,e),e;var r=n.length;if("#"!==n.charAt(0)){var o=n.indexOf("("),a=n.indexOf(")");if(-1!==o&&a+1===r){var s=n.substr(0,o),l=n.substr(o+1,a-(o+1)).split(","),u=1;switch(s){case"rgba":if(4!==l.length)return 3===l.length?cw(e,+l[0],+l[1],+l[2],1):cw(e,0,0,0,1);u=sw(l.pop());case"rgb":return l.length>=3?(cw(e,aw(l[0]),aw(l[1]),aw(l[2]),3===l.length?u:sw(l[3])),pw(t,e),e):void cw(e,0,0,0,1);case"hsla":return 4!==l.length?void cw(e,0,0,0,1):(l[3]=sw(l[3]),mw(l,e),pw(t,e),e);case"hsl":return 3!==l.length?void cw(e,0,0,0,1):(mw(l,e),pw(t,e),e);default:return}}cw(e,0,0,0,1)}else{if(4===r||5===r){var c=parseInt(n.slice(1,4),16);return c>=0&&c<=4095?(cw(e,(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,5===r?parseInt(n.slice(4),16)/15:1),pw(t,e),e):void cw(e,0,0,0,1)}if(7===r||9===r){c=parseInt(n.slice(1,7),16);return c>=0&&c<=16777215?(cw(e,(16711680&c)>>16,(65280&c)>>8,255&c,9===r?parseInt(n.slice(7),16)/255:1),pw(t,e),e):void cw(e,0,0,0,1)}}}}function mw(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=sw(t[1]),r=sw(t[2]),o=r<=.5?r*(n+1):r+n-r*n,a=2*r-o;return e=e||[],cw(e,rw(255*lw(a,o,i+1/3)),rw(255*lw(a,o,i)),rw(255*lw(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function vw(t,e){var i=gw(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return bw(i,4===i.length?"rgba":"rgb")}}
vendor: 9,159 bytes, line 34
34function yw(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),r=Math.floor(n),o=Math.ceil(n),a=gw(e[r]),s=gw(e[o]),l=n-r,u=bw([rw(uw(a[0],s[0],l)),rw(uw(a[1],s[1],l)),rw(uw(a[2],s[2],l)),ow(uw(a[3],s[3],l))],"rgba");return i?{color:u,leftIndex:r,rightIndex:o,value:n}:u}}function bw(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}function _w(t,e){var i=gw(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}Math.round;function ww(t){return"linear"===t.type}function xw(t){return"radial"===t.type}(function(){cv.hasGlobalWindow&&Kv(window.btoa)})();var Sw=Array.prototype.slice;function Cw(t,e,i){return(e-t)*i+t}function kw(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=Cw(e[o],i[o],n);return t}function Mw(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Cw(e[a][s],i[a][s],n)}return t}function Tw(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+i[o]*n;return t}function Dw(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function Iw(t,e){for(var i=t.length,n=e.length,r=i>n?e:t,o=Math.min(i,n),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(i,n);s++)r.push({offset:a.offset,color:a.color.slice()})}function Aw(t,e,i){var n=t,r=e;if(n.push&&r.push){var o=n.length,a=r.length;if(o!==a){var s=o>a;if(s)n.length=a;else for(var l=o;l<a;l++)n.push(1===i?r[l]:Sw.call(r[l]))}var u=n[0]&&n[0].length;for(l=0;l<n.length;l++)if(1===i)isNaN(n[l])&&(n[l]=r[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=r[l][c])}}function Ow(t){if($v(t)){var e=t.length;if($v(t[0])){for(var i=[],n=0;n<e;n++)i.push(Sw.call(t[n]));return i}return Sw.call(t)}return t}function Ew(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Pw(t){return $v(t&&t[0])?2:1}var Lw=0,Rw=1,zw=2,Nw=3,Fw=4,Bw=5,Vw=6;function $w(t){return t===Fw||t===Bw}function jw(t){return t===Rw||t===zw}var Ww=[0,0,0,0],Hw=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,a=Vw,s=e;if($v(e)){var l=Pw(e);a=l,(1===l&&!ty(e[0])||2===l&&!ty(e[0][0]))&&(o=!0)}else if(ty(e)&&!sy(e))a=Lw;else if(Jv(e))if(isNaN(+e)){var u=gw(e);u&&(s=u,a=Nw)}else a=Lw;else if(oy(e)){var c=zv({},s);c.colorStops=Wv(e.colorStops,(function(t){return{offset:t.offset,color:gw(t.color)}})),ww(e)?a=Fw:xw(e)&&(a=Bw),s=c}0===r?this.valType=a:a===this.valType&&a!==Vw||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return i&&(h.easing=i,h.easingFunc=Kv(i)?i:S_[i]||Z_(i)),n.push(h),h},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort((function(t,e){return t.time-e.time}));for(var n=this.valType,r=i.length,o=i[r-1],a=this.discrete,s=jw(n),l=$w(n),u=0;u<r;u++){var c=i[u],h=c.value,d=o.value;c.percent=c.time/t,a||(s&&u!==r-1?Aw(h,d,n):l&&Iw(h.colorStops,d.colorStops))}if(!a&&n!==Bw&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;var f=i[0].value;for(u=0;u<r;u++)n===Lw?i[u].additiveValue=i[u].value-f:n===Nw?i[u].additiveValue=Tw([],i[u].value,f,-1):jw(n)&&(i[u].additiveValue=n===Rw?Tw([],i[u].value,f,-1):Dw([],i[u].value,f,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=s===Nw,d=this._lastFr,f=Math.min;if(1===u)n=r=l[0];else{if(e<0)i=0;else if(e<this._lastFrP){var p=f(d+1,u-1);for(i=p;i>=0;i--)if(l[i].percent<=e)break;i=f(i,u-2)}else{for(i=d;i<u;i++)if(l[i].percent>e)break;i=f(i-1,u-2)}r=l[i+1],n=l[i]}if(n&&r){this._lastFr=i,this._lastFrP=e;var g=r.percent-n.percent,m=0===g?1:f((e-n.percent)/g,1);r.easingFunc&&(m=r.easingFunc(m));var v=o?this._additiveValue:h?Ww:t[c];if(!jw(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=m<1?n.rawValue:r.rawValue;else if(jw(s))s===Rw?kw(v,n[a],r[a],m):Mw(v,n[a],r[a],m);else if($w(s)){var y=n[a],b=r[a],_=s===Fw;t[c]={type:_?"linear":"radial",x:Cw(y.x,b.x,m),y:Cw(y.y,b.y,m),colorStops:Wv(y.colorStops,(function(t,e){var i=b.colorStops[e];return{offset:Cw(t.offset,i.offset,m),color:Ew(kw([],t.color,i.color,m))}})),global:b.global},_?(t[c].x2=Cw(y.x2,b.x2,m),t[c].y2=Cw(y.y2,b.y2,m)):t[c].r=Cw(y.r,b.r,m)}else if(h)kw(v,n[a],r[a],m),o||(t[c]=Ew(v));else{var w=Cw(n[a],r[a],m);o?this._additiveValue=w:t[c]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===Lw?t[i]=t[i]+n:e===Nw?(gw(t[i],Ww),Tw(Ww,Ww,n,1),t[i]=Ew(Ww)):e===Rw?Tw(t[i],t[i],n,1):e===zw&&Dw(t[i],t[i],n,1)},t}(),Uw=function(){function t(t,e,i,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?Pv("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,qv(e),i)},t.prototype.whenWithKeys=function(t,e,i,n){for(var r=this._tracks,o=0;o<i.length;o++){var a=i[o],s=r[a];if(!s){s=r[a]=new Hw(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===Nw&&l&&(l=Ew(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Ow(l),n),this._trackKeys.push(a)}s.addKeyframe(t,Ow(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(n,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else i.push(a)}if(i.length||this._force){var h=new J_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var n=e._additiveAnimators;if(n){for(var r=!1,o=0;o<n.length;o++)if(n[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<i.length;o++)i[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Wv(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a}
34,t.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[i?0:a.length-1];s&&(t[r]=Ow(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||qv(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),qw=Uw;function Gw(){return(new Date).getTime()}var Yw=function(t){function e(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return ov(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._head=i,i?i.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Gw()-this._pausedTime,i=e-this._time,n=this._head;while(n){var r=n.next,o=n.step(e,i);o?(n.ondestroy(),this.removeClip(n),n=r):n=r}this._time=e,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(w_(e),!t._paused&&t.update())}this._running=!0,w_(e)},e.prototype.start=function(){this._running||(this._time=Gw(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Gw(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Gw()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var i=new qw(t,e.loop);return this.addAnimator(i),i},e}(Xy),Xw=Yw,Zw=300,Kw=cv.domSupported,Jw=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Wv(t,(function(t){var e=t.replace("mouse","pointer");return i.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:n}}(),Qw={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},tx=!1;function ex(t){var e=t.pointerType;return"pen"===e||"touch"===e}function ix(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function nx(t){t&&(t.zrByTouch=!0)}function rx(t,e){return gb(t.dom,new ax(t,e),!0)}function ox(t,e){var i=e,n=!1;while(i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot))i=i.parentNode;return n}var ax=function(){function t(t,e){this.stopPropagation=Ty,this.stopImmediatePropagation=Ty,this.preventDefault=Ty,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),sx={mousedown:function(t){t=gb(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=gb(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=gb(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=gb(this.dom,t);var e=t.toElement||t.relatedTarget;ox(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){tx=!0,t=gb(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){tx||(t=gb(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=gb(this.dom,t),nx(t),this.__lastTouchMoment=ne
vendor: 37,420 bytes, line 34
34w Date,this.handler.processGesture(t,"start"),sx.mousemove.call(this,t),sx.mousedown.call(this,t)},touchmove:function(t){t=gb(this.dom,t),nx(t),this.handler.processGesture(t,"change"),sx.mousemove.call(this,t)},touchend:function(t){t=gb(this.dom,t),nx(t),this.handler.processGesture(t,"end"),sx.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Zw&&sx.click.call(this,t)},pointerdown:function(t){sx.mousedown.call(this,t)},pointermove:function(t){ex(t)||sx.mousemove.call(this,t)},pointerup:function(t){sx.mouseup.call(this,t)},pointerout:function(t){ex(t)||sx.mouseout.call(this,t)}};jv(["click","dblclick","contextmenu"],(function(t){sx[t]=function(e){e=gb(this.dom,e),this.trigger(t,e)}}));var lx={pointermove:function(t){ex(t)||lx.mousemove.call(this,t)},pointerup:function(t){lx.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function ux(t,e){var i=e.domHandlers;cv.pointerEventsSupported?jv(Jw.pointer,(function(n){hx(e,n,(function(e){i[n].call(t,e)}))})):(cv.touchEventsSupported&&jv(Jw.touch,(function(n){hx(e,n,(function(r){i[n].call(t,r),ix(e)}))})),jv(Jw.mouse,(function(n){hx(e,n,(function(r){r=pb(r),e.touching||i[n].call(t,r)}))})))}function cx(t,e){function i(i){function n(n){n=pb(n),ox(t,n.target)||(n=rx(t,n),e.domHandlers[i].call(t,n))}hx(e,i,n,{capture:!0})}cv.pointerEventsSupported?jv(Qw.pointer,i):cv.touchEventsSupported||jv(Qw.mouse,i)}function hx(t,e,i,n){t.mounted[e]=i,t.listenerOpts[e]=n,vb(t.domTarget,e,i,n)}function dx(t){var e=t.mounted;for(var i in e)e.hasOwnProperty(i)&&yb(t.domTarget,i,e[i],t.listenerOpts[i]);t.mounted={}}var fx=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),px=function(t){function e(e,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new fx(e,sx),Kw&&(n._globalHandlerScope=new fx(document,lx)),ux(n,n._localHandlerScope),n}return ov(e,t),e.prototype.dispose=function(){dx(this._localHandlerScope),Kw&&dx(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Kw&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?cx(this,e):dx(e)}},e}(Xy),gx=px,mx=1;cv.hasGlobalWindow&&(mx=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var vx=mx,yx=.4,bx="#333",_x="#ccc",xx="#eee",Sx=kb,Cx=5e-5;function kx(t){return t>Cx||t<-Cx}var Mx=[],Tx=[],Dx=Cb(),Ix=Math.abs,Ax=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return kx(this.rotation)||kx(this.x)||kx(this.y)||kx(this.scaleX-1)||kx(this.scaleY-1)||kx(this.skewX)||kx(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||Cb(),e?this.getLocalTransform(i):Sx(i),t&&(e?Tb(i,t,i):Mb(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(Sx(i),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Mx);var i=Mx[0]<0?-1:1,n=Mx[1]<0?-1:1,r=((Mx[0]-i)*e+i)/Mx[0]||0,o=((Mx[1]-n)*e+n)/Mx[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Cb(),Ob(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Tb(Tx,t.invTransform,e),e=Tx);var i=this.originX,n=this.originY;(i||n)&&(Dx[4]=i,Dx[5]=n,Tb(Tx,e,Dx),Tx[4]-=i,Tx[5]-=n,e=Tx),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&jy(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&jy(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&Ix(t[0]-1)>1e-10&&Ix(t[3]-1)>1e-10?Math.sqrt(Ix(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Ex(this,t)},t.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||n||a||s){var f=i+a,p=n+s;e[4]=-f*r-h*p*o,e[5]=-p*o-d*f*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&Ib(e,e,l),e[4]+=i+u,e[5]+=n+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Ox=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ex(t,e){for(var i=0;i<Ox.length;i++){var n=Ox[i];t[n]=e[n]}}var Px=Ax,Lx={};function Rx(t,e){e=e||fv;var i=Lx[e];i||(i=Lx[e]=new iw(500));var n=i.get(t);return null==n&&(n=bv.measureText(t,e).width,i.put(t,n)),n}function zx(t,e,i,n){var r=Rx(t,e),o=Vx(e),a=Fx(0,r,i),s=Bx(0,o,n),l=new Wb(a,s,r,o);return l}function Nx(t,e,i,n){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return zx(r[0],e,i,n);for(var a=new Wb(0,0,0,0),s=0;s<r.length;s++){var l=zx(r[s],e,i,n);0===s?a.copy(l):a.union(l)}return a}function Fx(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function Bx(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function Vx(t){return Rx("å½",t)}function $x(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function jx(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,u=i.y,c="left",h="top";if(n instanceof Array)l+=$x(n[0],i.width),u+=$x(n[1],i.height),c=null,h=null;else switch(n){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Wx="__zr_normal__",Hx=Ox.concat(["ignore"]),Ux=Hv(Ox,(function(t,e){return t[e]=!0,t}),{ignore:!1}),qx={},Gx=new Wb(0,0,0,0),Yx=function(){function t(t){this.id=Ev(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;if(r.copyTransform(e),null!=i.position){var u=Gx;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(qx,i,u):jx(qx,i,u),r.x=qx.x,r.y=qx.y,o=qx.align,a=qx.verticalAlign;var c=i.origin;if(c&&null!=i.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=$x(c[0],u.width),d=$x(c[1],u.height)),l=!0,r.originX=-r.x+h+(n?0:u.x),r.originY=-r.y+d+(n?0:u.y)}}null!=i.rotation&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var p=null==i.inside?"string"===typeof i.position&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;p&&this.canBeInsideText()?(m=i.insideFill,v=i.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=i.outsideFill,v=i.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),m=m||"#000",m===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=d_,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?_x:bx},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"===typeof e&&gw(e);i||(i=[255,255,255,1]);for(var n=i[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(r?0:255)*(1-n);return i[3]=1,bw(i,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},zv(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(ey(t))for(var i=t,n=qv(i),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!(n.getLoop()||r&&r!==Wx)){var o=n.targetName,a=o?e[o]:e;n.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Hx)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Wx,!1,t)},t.prototype.useState=function(t,e,i,n){var r=t===Wx,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(Fv(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,i,u),h&&h.useState(t,e,i,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d_),l}Pv("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&n.push(u)}var c=n[o-1],h=!!(c&&c.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(n),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~d_)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Fv(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=Fv(n,t),o=Fv(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];zv(i,r),r.textConfig&&(e=e||{},zv(e,r.textConfig))}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){var a=!(e&&n);e&&e.textConfig?(this.textConfig=zv({},n?this.textConfig:i.textConfig),zv(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},l=!1,u=0;u<Hx.length;u++){var c=Hx[u],h=r&&Ux[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=i[c]&&(h?(l=!0,s[c]=i[c]):this[c]=i[c])}if(!r)for(u=0;u<this.animators.length;u++){var d=this.animators[u],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||i)[f]:e||i)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Px,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),zv(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=d_;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,i){var n=t?this[t]:this;var r=new qw(n,e,i);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during((function(){n.updateDuringAnimation(e)})).done((function(){var e=n.animators,i=Fv(e,t);i>=0&&e.splice(i,1)})),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;o<n;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){Xx(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){Xx(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=Xx(this,e,i,n),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=d_;function i(t,i,n,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[i]){var t=this[i]=[];o(this,t)}return this[i]},set:function(t){this[n]=t[0],this[r]=t[1],this[i]=t,o(this,t)}})}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function Xx(t,e,i,n,r){i=i||{};var o=[];eS(t,"",t,e,i,n,o,r);var a=o.length,s=!1,l=i.done,u=i.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&i.during&&o[0].during((function(t,e){i.during(e)}));for(var d=0;d<o.length;d++){var f=o[d];c&&f.done(c),h&&f.aborted(h),i.force&&f.duration(i.duration),f.start(i.easing)}return o}function Zx(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function Kx(t){return $v(t[0])}function Jx(t,e,i){if($v(e[i]))if($v(t[i])||(t[i]=[]),ny(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),Zx(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(Kx(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?Zx(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Zx(o,r,a);o.length=r.length}else t[i]=e[i]}function Qx(t,e){return t===e||$v(t)&&$v(e)&&tS(t,e)}function tS(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function eS(t,e,i,n,r,o,a,s){for(var l=qv(n),u=r.duration,c=r.delay,h=r.additive,d=r.setToFinal,f=!ey(o),p=t.animators,g=[],m=0;m<l.length;m++){var v=l[m],y=n[v];if(null!=y&&null!=i[v]&&(f||o[v]))if(!ey(y)||$v(y)||oy(y))g.push(v);else{if(e){s||(i[v]=y,t.updateDuringAnimation(e));continue}eS(t,v,i[v],y,r,o&&o[v],a,s)}else s||(i[v]=y,t.updateDuringAnimation(e),g.push(v))}var b=g.length;if(!h&&b)for(var _=0;_<p.length;_++){var w=p[_];if(w.targetName===e){var x=w.stopTracks(g);if(x){var S=Fv(p,w);p.splice(S,1)}}}if(r.force||(g=Uv(g,(function(t){return!Qx(n[t],i[t])})),b=g.length),b>0||r.force&&!a.length){var C=void 0,k=void 0,M=void 0;if(s){k={},d&&(C={});for(_=0;_<b;_++){v=g[_];k[v]=i[v],d?C[v]=n[v]:i[v]=n[v]}}else if(d){M={};for(_=0;_<b;_++){v=g[_];M[v]=Ow(i[v]),Jx(i,n,v)}}w=new qw(i,!1,!1,h?Uv(p,(function(t){return t.targetName===e})):null);w.targetName=e,r.scope&&(w.scope=r.scope),d&&C&&w.whenWithKeys(0,C,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(null==u?500:u,s?k:n,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}Vv(Yx,Xy),Vv(Yx,Px);var iS=Yx,nS=function(t){function e(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return ov(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var i=Fv(this._children,t);return i>=0&&this.replaceAt(e,i),this},e.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,i=this._children,n=Fv(i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},e.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Wb(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(Wb.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},e}(iS);nS.prototype.type="group";var rS=nS,oS={},aS={};function sS(t){delete aS[t]}function lS(t){if(!t)return!1;if("string"===typeof t)return _w(t,1)<yx;if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;r<n;r++)i+=_w(e[r].color,1);return i/=n,i<yx}return!1}var uS=function(){function t(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var r=new __,o=i.renderer||"canvas";oS[o]||(o=qv(oS)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var a=new oS[o](e,r,i,t),s=i.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=cv.node||cv.worker||s?null:new gx(a.getViewportRoot(),a.root),c=i.useCoarsePointer,h=null==c||"auto"===c?cv.touchEventsSupported:!!c,d=44;h&&(l=uy(i.pointerSize,d)),this.handler=new e_(r,a,u,a.root,l),this.animation=new Xw({stage:{update:s?null:function(){return n._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=lS(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,i=Gw();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Gw();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rS&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,sS(this.id)},t}();function cS(t,e){var i=new uS(Ev(),t,e);return aS[i.id]=i,i}function hS(t,e){oS[t]=e}var dS=1e-4,fS=20;function pS(t){return t.replace(/^\s+|\s+$/g,"")}function gS(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(n)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function mS(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Jv(t)?pS(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function vS(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),fS),t=(+t).toFixed(e),i?t:+t}function yS(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,i=0;i<15;i++,e*=10)if(Math.round(t*e)/e===t)return i;return bS(t)}function bS(t){var e=t.toString().toLowerCase(),i=e.indexOf("e"),n=i>0?+e.slice(i+1):0,r=i>0?i:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-n)}function _S(t,e){var i=Math.log,n=Math.LN10,r=Math.floor(i(t[1]-t[0])/n),o=Math.round(i(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function wS(t,e){var i=Hv(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return[];var n=Math.pow(10,e),r=Wv(t,(function(t){return(isNaN(t)?0:t)/i*n*100})),o=100*n,a=Wv(r,(function(t){return Math.floor(t)})),s=Hv(a,(function(t,e){return t+e}),0),l=Wv(r,(function(t,e){return t-a[e]}));while(s<o){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return Wv(a,(function(t){return t/n}))}function xS(t,e){var i=Math.max(yS(t),yS(e)),n=t+e;return i>fS?n:vS(n,i)}function SS(t){var e=2*Math.PI;return(t%e+e)%e}function CS(t){return t>-dS&&t<dS}var kS=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function MS(t){if(t instanceof Date)return t;if(Jv(t)){var e=kS.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function TS(t){return Math.pow(10,DS(t))}function DS(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function IS(t,e){var i,n=DS(t),r=Math.pow(10,n),o=t/r;return i=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function AS(t){var e=parseFloat(t);return e==t&&(0!==e||!Jv(t)||t.indexOf("x")<=0)?e:NaN}function OS(t){return!isNaN(AS(t))}function ES(){return Math.round(9*Math.random())}function PS(t,e){return 0===e?t:PS(e,t%e)}function LS(t,e){return null==t?e:null==e?t:t*e/PS(t,e)}function RS(t,e,i){return(e-t)*i+t}var zS="series\0",NS="\0_ec_\0";function FS(t){return t instanceof Array?t:null==t?[]:[t]}function BS(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var VS=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function $S(t){return!ey(t)||Zv(t)||t instanceof Date?t:t.value}function jS(t){return ey(t)&&!(t instanceof Array)}function WS(t,e,i){var n="normalMerge"===i,r="replaceMerge"===i,o="replaceAll"===i;t=t||[],e=(e||[]).slice();var a=xy();jv(e,(function(t,i){ey(t)||(e[i]=null)}));var s=HS(t,a,i);return(n||r)&&US(s,t,a,e),n&&qS(s,e),n||r?GS(s,e,r):o&&YS(s,e),XS(s),s}function HS(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||tC(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function US(t,e,i,n){jv(n,(function(r,o){if(r&&null!=r.id){var a=KS(r.id),s=i.get(a);if(null!=s){var l=t[s];fy(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],n[o]=null}}}))}function qS(t,e){jv(e,(function(i,n){if(i&&null!=i.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==i.id)&&!tC(i)&&!tC(o)&&ZS("name",o,i))return t[r].newOption=i,void(e[n]=null)}}))}function GS(t,e,i){jv(e,(function(e){if(e){var n,r=0;while((n=t[r])&&(n.newOption||tC(n.existing)||n.existing&&null!=e.id&&!ZS("id",e,n.existing)))r++;n?(n.newOption=e,n.brandNew=i):t.push({newOption:e,brandNew:i,existing:null,keyInfo:null}),r++}}))}function YS(t,e){jv(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function XS(t){var e=xy();jv(t,(function(t){var i=t.existing;i&&e.set(i.id,t)})),jv(t,(function(t){var i=t.newOption;fy(!i||null==i.id||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})})),jv(t,(function(t,i){var n=t.existing,r=t.newOption,o=t.keyInfo;if(ey(r)){if(o.name=null!=r.name?KS(r.name):n?n.name:zS+i,n)o.id=KS(n.id);else if(null!=r.id)o.id=KS(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function ZS(t,e,i){var n=JS(e[t],null),r=JS(i[t],null);return null!=n&&null!=r&&n===r}function KS(t){return JS(t,"")}function JS(t,e){return null==t?e:Jv(t)?t:ty(t)||Qv(t)?t+"":e}function QS(t){var e=t.name;return!(!e||!e.indexOf(zS))}function tC(t){return t&&null!=t.id&&0===KS(t.id).indexOf(NS)}function eC(t,e,i){jv(t,(function(t){var n=t.newOption;ey(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=iC(e,n,t.existing,i))}))}function iC(t,e,i,n){var r=e.type?e.type:i?i.subType:n.determineSubType(t,e);return r}function nC(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Zv(e.dataIndex)?Wv(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Zv(e.name)?Wv(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function rC(){var t="__ec_inner_"+oC++;return function(e){return e[t]||(e[t]={})}}var oC=ES();function aC(t,e,i){var n=sC(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=i?i.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(e,n){var r=uC(t,n,e,{useDefault:l===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});s[n+"Models"]=r.models,s[n+"Model"]=r.models[0]})),s}function sC(t,e){var i;if(Jv(t)){var n={};n[t+"Index"]=0,i=n}else i=t;var r=xy(),o={},a=!1;return jv(i,(function(t,i){if("dataIndex"!==i&&"dataIndexInside"!==i){var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=n[1],l=(n[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Fv(e.includeMainTypes,s)<0)){a=a||!!s;var u=r.get(s)||r.set(s,{});u[l]=t}}else o[i]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var lC={useDefault:!0,enableAll:!1,enableNone:!1};function uC(t,e,i,n){n=n||lC;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(fy(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(fy(n.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function cC(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function hC(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function dC(t){return"auto"===t?cv.domSupported?"html":"richText":t||"html"}function fC(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(ty(n)){var a=RS(i||0,n,r);return vS(a,o?Math.max(yS(i||0),yS(n)):e)}if(Jv(n))return r<1?i:n;for(var s=[],l=i,u=n,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=t.getDimensionInfo(h);if(d&&"ordinal"===d.type)s[h]=(r<1&&l?l:u)[h];else{var f=l&&l[h]?l[h]:0,p=u[h];a=RS(f,p,r);s[h]=vS(a,o?Math.max(yS(f),yS(p)):e)}}return s}var pC=".",gC="___EC__COMPONENT__CONTAINER___",mC="___EC__EXTENDED_CLASS___";function vC(t){var e={main:"",sub:""};if(t){var i=t.split(pC);e.main=i[0]||"",e.sub=i[1]||""}return e}function yC(t){fy(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function bC(t){return!(!t||!t[mC])}function _C(t,e){t.$constructor=t,t.extend=function(t){var e,i=this;return wC(i)?e=function(t){function e(){return t.apply(this,arguments)||this}return ov(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},Bv(e,this)),zv(e.prototype,t),e[mC]=!0,e.extend=this.extend,e.superCall=kC,e.superApply=MC,e.superClass=i,e}}function wC(t){return Kv(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function xC(t,e){t.extend=e.extend}var SC=Math.round(10*Math.random());function CC(t){var e=["__\0is_clz",SC++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function kC(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function MC(t,e,i){return this.superClass.prototype[e].apply(t,i)}function TC(t){var e={};function i(t){var i=e[t.main];return i&&i[gC]||(i=e[t.main]={},i[gC]=!0),i}t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){yC(n),t.prototype.type=n;var r=vC(n);if(r.sub){if(r.sub!==gC){var o=i(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,i,n){var r=e[t];if(r&&r[gC]&&(r=i?r[i]:null),n&&!r)throw new Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var i=vC(t),n=[],r=e[i.main];return r&&r[gC]?jv(r,(function(t,e){e!==gC&&n.push(t)})):n.push(r),n},t.hasClass=function(t){var i=vC(t);return!!e[i.main]},t.getAllClassMainTypes=function(){var t=[];return jv(e,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){var i=vC(t),n=e[i.main];return n&&n[gC]}}function DC(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&Fv(n,s)>=0||r&&Fv(r,s)<0)){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var IC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["o
34pacity"],["shadowColor"]],AC=DC(IC),OC=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return AC(this,t,e)},t}(),EC=new iw(50);function PC(t){if("string"===typeof t){var e=EC.get(t);return e&&e.image}return t}function LC(t,e,i,n,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!i)return e;var o=EC.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?(e=o.image,!zC(e)&&o.pending.push(a)):(e=bv.loadImage(t,RC,RC),e.__zrImageSrc=t,EC.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function RC(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function zC(t){return t&&t.width&&t.height}var NC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function FC(t,e,i,n,r){if(!e)return"";var o=(t+"").split("\n");r=BC(e,i,n,r);for(var a=0,s=o.length;a<s;a++)o[a]=VC(o[a],r);return o.join("\n")}function BC(t,e,i,n){n=n||{};var r=zv({},n);r.font=e,i=uy(i,"..."),r.maxIterations=uy(n.maxIterations,2);var o=r.minChar=uy(n.minChar,0);r.cnCharWidth=Rx("å½",e);var a=r.ascCharWidth=Rx("a",e);r.placeholder=uy(n.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=Rx(i,e);return u>s&&(i="",u=0),s=t-u,r.ellipsis=i,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function VC(t,e){var i=e.containerWidth,n=e.font,r=e.contentWidth;if(!i)return"";var o=Rx(t,n);if(o<=i)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?$C(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=Rx(t,n)}return""===t&&(t=e.placeholder),t}function $C(t,e,i,n){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?i:n}return o}function jC(t,e){null!=t&&(t+="");var i,n=e.overflow,r=e.padding,o=e.font,a="truncate"===n,s=Vx(o),l=uy(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width;i=null==h||"break"!==n&&"breakAll"!==n?t?t.split("\n"):[]:t?KC(t,e.font,h,"breakAll"===n,0).lines:[];var d=i.length*l,f=uy(e.height,d);if(d>f&&c){var p=Math.floor(f/l);i=i.slice(0,p)}if(t&&a&&null!=h)for(var g=BC(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;m<i.length;m++)i[m]=VC(i[m],g);var v=f,y=0;for(m=0;m<i.length;m++)y=Math.max(Rx(i[m],o),y);null==h&&(h=y);var b=y;return r&&(v+=r[0]+r[2],b+=r[1]+r[3],h+=r[1]+r[3]),u&&(b=h),{lines:i,height:f,outerWidth:b,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:h}}var WC=function(){function t(){}return t}(),HC=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),UC=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function qC(t,e){var i=new UC;if(null!=t&&(t+=""),!t)return i;var n,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=NC.lastIndex=0;while(null!=(n=NC.exec(t))){var u=n.index;u>l&&GC(i,t.substring(l,u),e,s),GC(i,n[2],e,s,n[1]),l=NC.lastIndex}l<t.length&&GC(i,t.substring(l,t.length),e,s);var c=[],h=0,d=0,f=e.padding,p="truncate"===a,g="truncate"===e.lineOverflow;function m(t,e,i){t.width=e,t.lineHeight=i,h+=i,d=Math.max(d,e)}t:for(var v=0;v<i.lines.length;v++){for(var y=i.lines[v],b=0,_=0,w=0;w<y.tokens.length;w++){var x=y.tokens[w],S=x.styleName&&e.rich[x.styleName]||{},C=x.textPadding=S.padding,k=C?C[1]+C[3]:0,M=x.font=S.font||e.font;x.contentHeight=Vx(M);var T=uy(S.height,x.contentHeight);if(x.innerHeight=T,C&&(T+=C[0]+C[2]),x.height=T,x.lineHeight=cy(S.lineHeight,e.lineHeight,T),x.align=S&&S.align||e.align,x.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&h+x.lineHeight>o){w>0?(y.tokens=y.tokens.slice(0,w),m(y,_,b),i.lines=i.lines.slice(0,v+1)):i.lines=i.lines.slice(0,v);break t}var D=S.width,I=null==D||"auto"===D;if("string"===typeof D&&"%"===D.charAt(D.length-1))x.percentWidth=D,c.push(x),x.contentWidth=Rx(x.text,M);else{if(I){var A=S.backgroundColor,O=A&&A.image;O&&(O=PC(O),zC(O)&&(x.width=Math.max(x.width,O.width*T/O.height)))}var E=p&&null!=r?r-_:null;null!=E&&E<x.width?!I||E<k?(x.text="",x.width=x.contentWidth=0):(x.text=FC(x.text,E-k,M,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=Rx(x.text,M)):x.contentWidth=Rx(x.text,M)}x.width+=k,_+=x.width,S&&(b=Math.max(b,x.lineHeight))}m(y,_,b)}i.outerWidth=i.width=uy(r,d),i.outerHeight=i.height=uy(o,h),i.contentHeight=h,i.contentWidth=d,f&&(i.outerWidth+=f[1]+f[3],i.outerHeight+=f[0]+f[2]);for(v=0;v<c.length;v++){x=c[v];var P=x.percentWidth;x.width=parseInt(P,10)/100*i.width}return i}function GC(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},u=t.lines,c=l.font||i.font,h=!1;
vendor: 14,141 bytes, line 34
34if(n){var d=l.padding,f=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=$x(l.width,n.width)+f;u.length>0&&p+n.accumWidth>n.width&&(o=e.split("\n"),h=!0),n.accumWidth=p}else{var g=KC(e,c,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m<o.length;m++){var v=o[m],y=new WC;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"===typeof l.width?y.width=l.width:y.width=a?a[m]:Rx(v,c),m||h)u.push(new HC([y]));else{var b=(u[u.length-1]||(u[0]=new HC)).tokens,_=b.length;1===_&&b[0].isLineHolder?b[0]=y:(v||!_||s)&&b.push(y)}}}function YC(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var XC=Hv(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function ZC(t){return!YC(t)||!!XC[t]}function KC(t,e,i,n,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var f=Rx(d,e),p=!n&&!ZC(d);(o.length?c+f>i:r+c+f>i)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=f)):p?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,p?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var JC="__zr_style_"+Math.round(10*Math.random()),QC={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},tk={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};QC[JC]=!0;var ek=["z","z2","invisible"],ik=["invisible"],nk=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype._init=function(e){for(var i=qv(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,i,n){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&ak(this,t,e)||r&&!r[0]&&!r[3])return!1;if(i&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(n&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return n.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Wb(0,0,0,0)),e?Wb.applyTransform(t,i,e):t.copy(i),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Wb(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:zv(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=f_,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&f_)},e.prototype.styleUpdated=function(){this.__dirty&=~f_},e.prototype.createStyle=function(t){return Cy(QC,t)},e.prototype.useStyle=function(t){t[JC]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[JC]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,ek)},e.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=qv(u),h=0;h<c.length;h++){var d=c[h];d in s&&(s[d]=s[d],this.style[d]=u[d])}var f=qv(s);for(h=0;h<f.length;h++){d=f[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?ik:ek;for(h=0;h<p.length;h++){d=p[h];i&&null!=i[d]?this[d]=i[d]:l&&null!=n[d]&&(this[d]=n[d])}},e.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,e){return zv(t,e),t},e.prototype.getAnimationStyleProps=function(){return tk},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=d_|f_}(),e}(iS),rk=new Wb(0,0,0,0),ok=new Wb(0,0,0,0);function ak(t,e,i){return rk.copy(t.getBoundingRect()),t.transform&&rk.applyTransform(t.transform),ok.width=e,ok.height=i,!rk.intersect(ok)}var sk=nk,lk=Math.min,uk=Math.max,ck=Math.sin,hk=Math.cos,dk=2*Math.PI,fk=Iy(),pk=Iy(),gk=Iy();function mk(t,e,i,n,r,o){r[0]=lk(t,i),r[1]=lk(e,n),o[0]=uk(t,i),o[1]=uk(e,n)}var vk=[],yk=[];function bk(t,e,i,n,r,o,a,s,l,u){var c=F_,h=R_,d=c(t,i,r,a,vk);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var p=h(t,i,r,a,vk[f]);l[0]=lk(p,l[0]),u[0]=uk(p,u[0])}d=c(e,n,o,s,yk);for(f=0;f<d;f++){var g=h(e,n,o,s,yk[f]);l[1]=lk(g,l[1]),u[1]=uk(g,u[1])}l[0]=lk(t,l[0]),u[0]=uk(t,u[0]),l[0]=lk(a,l[0]),u[0]=uk(a,u[0]),l[1]=lk(e,l[1]),u[1]=uk(e,u[1]),l[1]=lk(s,l[1]),u[1]=uk(s,u[1])}function _k(t,e,i,n,r,o,a,s){var l=U_,u=j_,c=uk(lk(l(t,i,r),1),0),h=uk(lk(l(e,n,o),1),0),d=u(t,i,r,c),f=u(e,n,o,h);a[0]=lk(t,r,d),a[1]=lk(e,o,f),s[0]=uk(t,r,d),s[1]=uk(e,o,f)}function wk(t,e,i,n,r,o,a,s,l){var u=Wy,c=Hy,h=Math.abs(r-o);if(h%dk<1e-4&&h>1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(fk[0]=hk(r)*i+t,fk[1]=ck(r)*n+e,pk[0]=hk(o)*i+t,pk[1]=ck(o)*n+e,u(s,fk,pk),c(l,fk,pk),r%=dk,r<0&&(r+=dk),o%=dk,o<0&&(o+=dk),r>o&&!a?o+=dk:r<o&&a&&(r+=dk),a){var d=o;o=r,r=d}for(var f=0;f<o;f+=Math.PI/2)f>r&&(gk[0]=hk(f)*i+t,gk[1]=ck(f)*n+e,u(s,gk,s),c(l,gk,l))}var xk={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Sk=[],Ck=[],kk=[],Mk=[],Tk=[],Dk=[],Ik=Math.min,Ak=Math.max,Ok=Math.cos,Ek=Math.sin,Pk=Math.abs,Lk=Math.PI,Rk=2*Lk,zk="undefined"!==typeof Float32Array,Nk=[];function Fk(t){var e=Math.round(t/Lk*1e8)/1e8;return e%2*Lk}function Bk(t,e){var i=Fk(t[0]);i<0&&(i+=Rk);var n=i-t[0],r=t[1];r+=n,!e&&r-i>=Rk?r=i+Rk:e&&i-r>=Rk?r=i-Rk:!e&&i>r?r=i+(Rk-Fk(i-r)):e&&i<r&&(r=i-(Rk-Fk(r-i))),t[0]=i,t[1]=r}var Vk=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Pk(i/vx/t)||0,this._uy=Pk(i/vx/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(xk.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var i=Pk(t-this._xi),n=Pk(e-this._yi),r=i>this._ux||n>this._uy;if(this.addData(xk.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(xk.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(xk.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),Nk[0]=n,Nk[1]=r,Bk(Nk,o),n=Nk[0],r=Nk[1];var a=r-n;return this.addData(xk.A,t,e,i,i,n,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=Ok(r)*i+t,this._yi=Ek(r)*i+e,this},t.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},t.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(xk.R,t,e,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(xk.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!zk||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();zk&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[n++]=o[a];this._len=n},t.prototype.addData=function(t,e,i,n,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,zk&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){kk[0]=kk[1]=Tk[0]=Tk[1]=Number.MAX_VALUE,Mk[0]=Mk[1]=Dk[0]=Dk[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case xk.M:i=r=e[t++],n=o=e[t++],Tk[0]=r,Tk[1]=o,Dk[0]=r,Dk[1]=o;break;case xk.L:mk(i,n,e[t],e[t+1],Tk,Dk),i=e[t++],n=e[t++];break;case xk.C:bk(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Tk,Dk),i=e[t++],n=e[t++];break;case xk.Q:_k(i,n,e[t++],e[t++],e[t],e[t+1],Tk,Dk),i=e[t++],n=e[t++];break;case xk.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],f=e[t++]+d;t+=1;var p=!e[t++];s&&(r=Ok(d)*c+l,o=Ek(d)*h+u),wk(l,u,c,h,d,f,p,Tk,Dk),i=Ok(f)*c+l,n=Ek(f)*h+u;break;case xk.R:r=i=e[t++],o=n=e[t++];var g=e[t++],m=e[t++];mk(r,o,r+g,o+m,Tk,Dk);break;case xk.Z:i=r,n=o;break}Wy(kk,kk,Tk),Hy(Mk,Mk,Dk)}return 0===t&&(kk[0]=kk[1]=Mk[0]=Mk[1]=0),new Wb(kk[0],kk[1],Mk[0]-kk[0],Mk[1]-kk[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],f=1===h;f&&(r=t[h],o=t[h+1],a=r,s=o);var p=-1;switch(d){case xk.M:r=a=t[h++],o=s=t[h++];break;case xk.L:var g=t[h++],m=t[h++],v=g-r,y=m-o;(Pk(v)>i||Pk(y)>n||h===e-1)&&(p=Math.sqrt(v*v+y*y),r=g,o=m);break;case xk.C:var b=t[h++],_=t[h++],w=(g=t[h++],m=t[h++],t[h++]),x=t[h++];p=$_(r,o,b,_,g,m,w,x,10),r=w,o=x;break;case xk.Q:b=t[h++],_=t[h++],g=t[h++],m=t[h++];p=Y_(r,o,b,_,g,m,10),r=g,o=m;break;case xk.A:var S=t[h++],C=t[h++],k=t[h++],M=t[h++],T=t[h++],D=t[h++],I=D+T;h+=1;t[h++];f&&(a=Ok(T)*k+S,s=Ek(T)*M+C),p=Ak(k,M)*Ik(Rk,Math.abs(D)),r=Ok(I)*k+S,o=Ek(I)*M+C;break;case xk.R:a=r=t[h++],s=o=t[h++];var A=t[h++],O=t[h++];p=2*A+2*O;break;case xk.Z:v=a-r,y=s-o;p=Math.sqrt(v*v+y*y),r=a,o=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,u,c,h,d,f=this.data,p=this._ux,g=this._uy,m=this._len,v=e<1,y=0,b=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var w=0;w<m;){var x=f[w++],S=1===w;switch(S&&(r=f[w],o=f[w+1],i=r,n=o),x!==xk.L&&_>0&&(t.lineTo(h,d),_=0),x){case xk.M:i=r=f[w++],n=o=f[w++],t.moveTo(r,o);break;case xk.L:a=f[w++],s=f[w++];var C=Pk(a-r),k=Pk(s-o);if(C>p||k>g){if(v){var M=l[b++];if(y+M>c){var T=(c-y)/M;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}y+=M}t.lineTo(a,s),r=a,o=s,_=0}else{var D=C*C+k*k;D>_&&(h=a,d=s,_=D)}break;case xk.C:var I=f[w++],A=f[w++],O=f[w++],E=f[w++],P=f[w++],L=f[w++];if(v){M=l[b++];if(y+M>c){T=(c-y)/M;B_(r,I,O,P,T,Sk),B_(o,A,E,L,T,Ck),t.bezierCurveTo(Sk[1],Ck[1],Sk[2],Ck[2],Sk[3],Ck[3]);break t}y+=M}t.bezierCurveTo(I,A,O,E,P,L),r=P,o=L;break;case xk.Q:I=f[w++],A=f[w++],O=f[w++],E=f[w++];if(v){M=l[b++];if(y+M>c){T=(c-y)/M;q_(r,I,O,T,Sk),q_(o,A,E,T,Ck),t.quadraticCurveTo(Sk[1],Ck[1],Sk[2],Ck[2]);break t}y+=M}
vendor: 8,780 bytes, line 34
34t.quadraticCurveTo(I,A,O,E),r=O,o=E;break;case xk.A:var R=f[w++],z=f[w++],N=f[w++],F=f[w++],B=f[w++],V=f[w++],$=f[w++],j=!f[w++],W=N>F?N:F,H=Pk(N-F)>.001,U=B+V,q=!1;if(v){M=l[b++];y+M>c&&(U=B+V*(c-y)/M,q=!0),y+=M}if(H&&t.ellipse?t.ellipse(R,z,N,F,$,B,U,j):t.arc(R,z,W,B,U,j),q)break t;S&&(i=Ok(B)*N+R,n=Ek(B)*F+z),r=Ok(U)*N+R,o=Ek(U)*F+z;break;case xk.R:i=r=f[w],n=o=f[w+1],a=f[w++],s=f[w++];var G=f[w++],Y=f[w++];if(v){M=l[b++];if(y+M>c){var X=c-y;t.moveTo(a,s),t.lineTo(a+Ik(X,G),s),X-=G,X>0&&t.lineTo(a+G,s+Ik(X,Y)),X-=Y,X>0&&t.lineTo(a+Ak(G-X,0),s+Y),X-=G,X>0&&t.lineTo(a,s+Ak(Y-X,0));break t}y+=M}t.rect(a,s,G,Y);break;case xk.Z:if(v){M=l[b++];if(y+M>c){T=(c-y)/M;t.lineTo(r*(1-T)+i*T,o*(1-T)+n*T);break t}y+=M}t.closePath(),r=i,o=n}}},t.prototype.clone=function(){var e=new t,i=this.data;return e.data=i.slice?i.slice():Array.prototype.slice.call(i),e._len=this._len,e},t.CMD=xk,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),$k=Vk;function jk(t,e,i,n,r,o,a){if(0===r)return!1;var s=r,l=0,u=t;if(a>e+s&&a>n+s||a<e-s&&a<n-s||o>t+s&&o>i+s||o<t-s&&o<i-s)return!1;if(t===i)return Math.abs(o-t)<=s/2;l=(e-n)/(t-i),u=(t*n-i*e)/(t-i);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function Wk(t,e,i,n,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>n+h&&c>o+h&&c>s+h||c<e-h&&c<n-h&&c<o-h&&c<s-h||u>t+h&&u>i+h&&u>r+h&&u>a+h||u<t-h&&u<i-h&&u<r-h&&u<a-h)return!1;var d=V_(t,e,i,n,r,o,a,s,u,c,null);return d<=h/2}function Hk(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>n+u&&l>o+u||l<e-u&&l<n-u&&l<o-u||s>t+u&&s>i+u&&s>r+u||s<t-u&&s<i-u&&s<r-u)return!1;var c=G_(t,e,i,n,r,o,s,l,null);return c<=u/2}var Uk=2*Math.PI;function qk(t){return t%=Uk,t<0&&(t+=Uk),t}var Gk=2*Math.PI;function Yk(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>i||c+u<i)return!1;if(Math.abs(n-r)%Gk<1e-4)return!0;if(o){var h=n;n=qk(r),r=qk(h)}else n=qk(n),r=qk(r);n>r&&(r+=Gk);var d=Math.atan2(l,s);return d<0&&(d+=Gk),d>=n&&d<=r||d+Gk>=n&&d+Gk<=r}function Xk(t,e,i,n,r,o){if(o>e&&o>n||o<e&&o<n)return 0;if(n===e)return 0;var a=(o-e)/(n-e),s=n<e?1:-1;1!==a&&0!==a||(s=n<e?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}var Zk=$k.CMD,Kk=2*Math.PI,Jk=1e-4;function Qk(t,e){return Math.abs(t-e)<Jk}var tM=[-1,-1,-1],eM=[-1,-1];function iM(){var t=eM[0];eM[0]=eM[1],eM[1]=t}function nM(t,e,i,n,r,o,a,s,l,u){if(u>e&&u>n&&u>o&&u>s||u<e&&u<n&&u<o&&u<s)return 0;var c=N_(e,n,o,s,u,tM);if(0===c)return 0;for(var h=0,d=-1,f=void 0,p=void 0,g=0;g<c;g++){var m=tM[g],v=0===m||1===m?.5:1,y=R_(t,i,r,a,m);y<l||(d<0&&(d=F_(e,n,o,s,eM),eM[1]<eM[0]&&d>1&&iM(),f=R_(e,n,o,s,eM[0]),d>1&&(p=R_(e,n,o,s,eM[1]))),2===d?m<eM[0]?h+=f<e?v:-v:m<eM[1]?h+=p<f?v:-v:h+=s<p?v:-v:m<eM[0]?h+=f<e?v:-v:h+=s<f?v:-v)}return h}function rM(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||s<e&&s<n&&s<o)return 0;var l=H_(e,n,o,s,tM);if(0===l)return 0;var u=U_(e,n,o);if(u>=0&&u<=1){for(var c=0,h=j_(e,n,o,u),d=0;d<l;d++){var f=0===tM[d]||1===tM[d]?.5:1,p=j_(t,i,r,tM[d]);p<a||(tM[d]<u?c+=h<e?f:-f:c+=o<h?f:-f)}return c}f=0===tM[0]||1===tM[0]?.5:1,p=j_(t,i,r,tM[0]);return p<a?0:o<e?f:-f}function oM(t,e,i,n,r,o,a,s){if(s-=e,s>i||s<-i)return 0;var l=Math.sqrt(i*i-s*s);tM[0]=-l,tM[1]=l;var u=Math.abs(n-r);if(u<1e-4)return 0;if(u>=Kk-1e-4){n=0,r=Kk;var c=o?1:-1;return a>=tM[0]+t&&a<=tM[1]+t?c:0}if(n>r){var h=n;n=r,r=h}n<0&&(n+=Kk,r+=Kk);for(var d=0,f=0;f<2;f++){var p=tM[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=Kk+g),(g>=n&&g<=r||g+Kk>=n&&g+Kk<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function aM(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,f=0,p=0;p<l;){var g=s[p++],m=1===p;switch(g===Zk.M&&p>1&&(i||(u+=Xk(c,h,d,f,n,r))),m&&(c=s[p],h=s[p+1],d=c,f=h),g){case Zk.M:d=s[p++],f=s[p++],c=d,h=f;break;case Zk.L:if(i){if(jk(c,h,s[p],s[p+1],e,n,r))return!0}else u+=Xk(c,h,s[p],s[p+1],n,r)||0;c=s[p++],h=s[p++];break;case Zk.C:if(i){if(Wk(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,n,r))return!0}else u+=nM(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],n,r)||0;c=s[p++],h=s[p++];break;case Zk.Q:if(i){if(Hk(c,h,s[p++],s[p++],s[p],s[p+1],e,n,r))return!0}else u+=rM(c,h,s[p++],s[p++],s[p],s[p+1],n,r)||0;c=s[p++],h=s[p++];break;case Zk.A:var v=s[p++],y=s[p++],b=s[p++],_=s[p++],w=s[p++],x=s[p++];p+=1;var S=!!(1-s[p++]);o=Math.cos(w)*b+v,a=Math.sin(w)*_+y,m?(d=o,f=a):u+=Xk(c,h,o,a,n,r);var C=(n-v)*_/b+v;if(i){if(Yk(v,y,_,w,w+x,S,e,C,r))return!0}else u+=oM(v,y,_,w,w+x,S,C,r);c=Math.cos(w+x)*b+v,h=Math.sin(w+x)*_+y;break;case Zk.R:d=c=s[p++],f=h=s[p++];var k=s[p++],M=s[p++];if(o=d+k,a=f+M,i){if(jk(d,f,o,f,e,n,r)||jk(o,f,o,a,e,n,r)||jk(o,a,d,a,e,n,r)||jk(d,a,d,f,e,n,r))return!0}else u+=Xk(o,f,o,a,n,r),u+=Xk(d,a,d,f,n,r);break;case Zk.Z:if(i){if(jk(c,h,d,f,e,n,r))return!0}else u+=Xk(c,h,d,f,n,r);c=d,h=f;break}}return i||Qk(h,f)||(u+=Xk(c,h,d,f,n,r)||0),0!==u}function sM(t,e,i){return aM(t,0,!1,e,i)}function lM(t,e,i,n){return aM(t,e,!0,i,n)}var uM=Nv({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},QC),cM={style:Nv({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},tk.style)},hM=Ox.concat(["invisible","culling","z","z2","zlevel","parent"]),dM=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.update=function(){var i=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){i.buildPath(t,i.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<hM.length;++s)r[hM[s]]=this[hM[s]];r.__dirty|=d_}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var i=qv(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[r],a=e[o];"style"===o?this.style?zv(this.style,a):this.useStyle(a):"shape"===o?zv(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Jv(t)){var e=_w(t,0);return e>.5?bx:e>.2?xx:_x}if(t)return _x}return bx},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Jv(e)){var i=this.__zr,n=!(!i||!i.isDarkMode()),r=_w(t,0)<yx;if(n===r)return e}},e.prototype.buildPath=function(t,e,i){},e.prototype.pathUpdated=function(){this.__dirty&=~p_},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new $k(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||this.__dirty&p_)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),lM(o,a/s,t,e)))return!0}if(this.hasFill())return sM(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=p_,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},e.prototype.setShape=function(t,e){var i=this.shape;
vendor: 26,917 bytes, line 34
34return i||(i=this.shape={}),"string"===typeof t?i[t]=e:zv(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&p_)},e.prototype.createStyle=function(t){return Cy(uM,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=zv({},this.shape))},e.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=zv({},n.shape),zv(s,i.shape)):(s=zv({},r?this.shape:n.shape),zv(s,i.shape)):l&&(s=n.shape),s)if(o){this.shape=zv({},this.shape);for(var u={},c=qv(s),h=0;h<c.length;h++){var d=c[h];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return cM},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(e){function i(i){var n=e.call(this,i)||this;return t.init&&t.init.call(n,i),n}return ov(i,e),i.prototype.getDefaultStyle=function(){return Lv(t.style)},i.prototype.getDefaultShape=function(){return Lv(t.shape)},i}(e);for(var n in t)"function"===typeof t[n]&&(i.prototype[n]=t[n]);return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=d_|f_|p_}(),e}(sk),fM=dM,pM=Nv({strokeFirst:!0,font:fv,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},uM),gM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Cy(pM,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var i=Nx(e,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(sk);gM.prototype.type="tspan";var mM=gM,vM=Nv({x:0,y:0},QC),yM={style:Nv({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},tk.style)};function bM(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var _M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.createStyle=function(t){return Cy(vM,t)},e.prototype._getSize=function(t){var e=this.style,i=e[t];if(null!=i)return i;var n=bM(e.image)?e.image:this.__image;if(!n)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?n[t]:n[t]/n[r]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return yM},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Wb(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sk);_M.prototype.type="image";var wM=_M;function xM(t,e){var i,n,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?i=n=r=o=h:h instanceof Array?1===h.length?i=n=r=o=h[0]:2===h.length?(i=r=h[0],n=o=h[1]):3===h.length?(i=h[0],n=o=h[1],r=h[2]):(i=h[0],n=h[1],r=h[2],o=h[3]):i=n=r=o=0,i+n>u&&(a=i+n,i*=u/a,n*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),n+r>c&&(a=n+r,n*=c/a,r*=c/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),t.moveTo(s+i,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+i),0!==i&&t.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}var SM=Math.round;function CM(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s?(SM(2*n)===SM(2*r)&&(t.x1=t.x2=MM(n,s,!0)),SM(2*o)===SM(2*a)&&(t.y1=t.y2=MM(o,s,!0)),t):t}}function kM(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s?(t.x=MM(n,s,!0),t.y=MM(r,s,!0),t.width=Math.max(MM(n+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(MM(r+a,s,!1)-t.y,0===a?0:1),t):t}}function MM(t,e,i){if(!e)return t;var n=SM(2*t);return(n+SM(e))%2===0?n/2:(n+(i?1:-1))/2}var TM=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),DM={},IM=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultShape=function(){return new TM},e.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=kM(DM,e,this.style);i=a.x,n=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else i=e.x,n=e.y,r=e.width,o=e.height;e.r?xM(t,e):t.rect(i,n,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(fM);IM.prototype.type="rect";var AM=IM,OM={fill:"#000"},EM=2,PM={style:Nv({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},tk.style)},LM=function(t){function e(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=OM,i.attr(e),i}return ov(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,$M(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Wb(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),n=n||t.clone(),n.union(t)):(n=n||a.clone(),n.union(a))}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||OM},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return zv(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,e){for(var i=qv(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},zv(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return PM},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||fv,i=t.padding,n=qM(t),r=jC(n,t),o=GM(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.outerWidth,u=r.contentWidth,c=r.lines,h=r.lineHeight,d=this._defaultStyle,f=t.x||0,p=t.y||0,g=t.align||d.align||"left",m=t.verticalAlign||d.verticalAlign||"top",v=f,y=Bx(p,r.contentHeight,m);if(o||i){var b=Fx(f,l,g),_=Bx(p,s,m);o&&this._renderBackground(t,t,b,_,l,s)}y+=h/2,i&&(v=UM(f,g,i),"top"===m?y+=i[0]:"bottom"===m&&(y-=i[2]));for(var w=0,x=!1,S=(HM("fill"in t?t.fill:(x=!0,d.fill))),C=(WM("stroke"in t?t.stroke:a||d.autoStroke&&!x?null:(w=EM,d.stroke))),k=t.textShadowBlur>0,M=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=r.calculatedLineHeight,D=0;D<c.length;D++){var I=this._getOrCreateChild(mM),A=I.createStyle();I.useStyle(A),A.text=c[D],A.x=v,A.y=y,g&&(A.textAlign=g),A.textBaseline="middle",A.opacity=t.opacity,A.strokeFirst=!0,k&&(A.shadowBlur=t.textShadowBlur||0,A.shadowColor=t.textShadowColor||"transparent",A.shadowOffsetX=t.textShadowOffsetX||0,A.shadowOffsetY=t.textShadowOffsetY||0),A.stroke=C,A.fill=S,C&&(A.lineWidth=t.lineWidth||w,A.lineDash=t.lineDash,A.lineDashOffset=t.lineDashOffset||0),A.font=e,BM(A,t),y+=h,M&&I.setBoundingRect(new Wb(Fx(A.x,t.width,A.textAlign),Bx(A.y,T,A.textBaseline),u,T))}},e.prototype._updateRichTexts=function(){var t=this.style,e=qM(t),i=qC(e,t),n=i.width,r=i.outerWidth,o=i.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,d=Fx(s,r,c),f=Bx(l,o,h),p=d,g=f;a&&(p+=a[3],g+=a[0]);var m=p+n;GM(t)&&this._renderBackground(t,t,d,f,r,o);for(var v=!!t.backgroundColor,y=0;y<i.lines.length;y++){var b=i.lines[y],_=b.tokens,w=_.length,x=b.lineHeight,S=b.width,C=0,k=p,M=m,T=w-1,D=void 0;while(C<w&&(D=_[C],!D.align||"left"===D.align))this._placeToken(D,t,x,g,k,"left",v),S-=D.width,k+=D.width,C++;while(T>=0&&(D=_[T],"right"===D.align))this._placeToken(D,t,x,g,M,"right",v),S-=D.width,M-=D.width,T--;k+=(n-(k-p)-(m-M)-S)/2;while(C<=T)D=_[C],this._placeToken(D,t,x,g,k+D.width/2,"center",v),k+=D.width,C++;g+=x}},e.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=n+i/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+i-t.height/2);var c=!t.isLineHolder&&GM(s);c&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(r=UM(r,o,d),u-=t.height/2-d[0]-t.innerHeight/2);var f=this._getOrCreateChild(mM),p=f.createStyle();f.useStyle(p);var g=this._defaultStyle,m=!1,v=0,y=HM("fill"in s?s.fill:"fill"in e?e.fill:(m=!0,g.fill)),b=WM("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!m?null:(v=EM,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||fv,p.opacity=cy(s.opacity,e.opacity,1),BM(p,s),b&&(p.lineWidth=cy(s.lineWidth,e.lineWidth,v),p.lineDash=uy(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=b),y&&(p.fill=y);var w=t.contentWidth,x=t.contentHeight;f.setBoundingRect(new Wb(Fx(p.x,w,p.textAlign),Bx(p.y,x,p.textBaseline),w,x))},e.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,d=l&&!h,f=t.borderRadius,p=this;if(d||t.lineHeight||u&&c){a=this._getOrCreateChild(AM),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=i,g.y=n,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(d){var m=a.style;m.fill=l||null,m.fillOpacity=uy(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(wM),s.onload=function(){p.dirtyStyle()};var v=s.style;v.image=l.image,v.x=i,v.y=n,v.width=r,v.height=o}if(u&&c){m=a.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=uy(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=cy(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return VM(t)&&(e=[t.fontStyle,t.fontWeight,FM(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&py(e)||t.textFont||t.font},e}(sk),RM={left:!0,right:1,center:1},zM={top:1,bottom:1,middle:1},NM=["fontStyle","fontWeight","fontSize","fontFamily"];function FM(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?hv+"px":t+"px":t}function BM(t,e){for(var i=0;i<NM.length;i++){var n=NM[i],r=e[n];null!=r&&(t[n]=r)}}function VM(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function $M(t){return jM(t),jv(t.rich,jM),t}function jM(t){if(t){t.font=LM.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||RM[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||zM[i]?i:"top";var n=t.padding;n&&(t.padding=dy(t.padding))}}function WM(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function HM(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function UM(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function qM(t){var e=t.text;return null!=e&&(e+=""),e}function GM(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var YM=LM,XM=rC(),ZM=function(t,e,i,n){if(n){var r=XM(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,"group"===n.type&&n.traverse((function(n){var r=XM(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e}))}},KM=1,JM={},QM=rC(),tT=rC(),eT=0,iT=1,nT=2,rT=["emphasis","blur","select"],oT=["normal","emphasis","blur","select"],aT=10,sT=9,lT="highlight",uT="downplay",cT="select",hT="unselect",dT="toggleSelect";function fT(t){return null!=t&&"none"!==t}var pT=new iw(100);function gT(t){if(Jv(t)){var e=pT.get(t);return e||(e=vw(t,-.1),pT.put(t,e)),e}if(oy(t)){var i=zv({},t);return i.colorStops=Wv(t.colorStops,(function(t){return{offset:t.offset,color:vw(t.color,-.1)}})),i}return t}function mT(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function vT(t){mT(t,"emphasis",nT)}function yT(t){t.hoverState===nT&&mT(t,"normal",eT)}function bT(t){mT(t,"blur",iT)}function _T(t){t.hoverState===iT&&mT(t,"normal",eT)}function wT(t){t.selected=!0}function xT(t){t.selected=!1}function ST(t,e,i){e(t,i)}function CT(t,e,i){ST(t,e,i),t.isGroup&&t.traverse((function(t){ST(t,e,i)}))}function kT(t,e){switch(e){case"emphasis":t.hoverState=nT;break;case"normal":t.hoverState=eT;break;case"blur":t.hoverState=iT;break;case"select":t.selected=!0}}function MT(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(i)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function TT(t,e,i,n){var r=i&&Fv(i,"select")>=0,o=!1;if(t instanceof fM){var a=QM(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(fT(s)||fT(l)){n=n||{};var u=n.style||{};"inherit"===u.fill?(o=!0,n=zv({},n),u=zv({},u),u.fill=s):!fT(u.fill)&&fT(s)?(o=!0,n=zv({},n),u=zv({},u),u.fill=gT(s)):!fT(u.stroke)&&fT(l)&&(o||(n=zv({},n),u=zv({},u)),u.stroke=gT(l)),n.style=u}}if(n&&null==n.z2){o||(n=zv({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(null!=c?c:aT)}return n}function DT(t,e,i){if(i&&null==i.z2){i=zv({},i);var n=t.z2SelectLift;i.z2=t.z2+(null!=n?n:sT)}return i}function IT(t,e,i){var n=Fv(t.currentStates,e)>=0,r=t.style.opacity,o=n?null:MT(t,["opacity"],e,{opacity:1});i=i||{};var a=i.style||{};return null==a.opacity&&(i=zv({},i),a=zv({opacity:n?r:.1*o.opacity},a),i.style=a),i}function AT(t,e){var i=this.states[t];if(this.style){if("emphasis"===t)return TT(this,t,e,i);if("blur"===t)return IT(this,t,i);if("select"===t)return DT(this,t,i)}return i}function OT(t){t.stateProxy=AT;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=AT),i&&(i.stateProxy=AT)}function ET(t,e){!VT(t,e)&&!t.__highByOuter&&CT(t,vT)}function PT(t,e){!VT(t,e)&&!t.__highByOuter&&CT(t,yT)}function LT(t,e){t.__highByOuter|=1<<(e||0),CT(t,vT)}function RT(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&CT(t,yT)}function zT(t){CT(t,bT)}function NT(t){CT(t,_T)}function FT(t){CT(t,wT)}function BT(t){CT(t,xT)}function VT(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function $T(t){var e=t.getModel(),i=[],n=[];e.eachComponent((function(e,r){var o=tT(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&n.push(s),o.isBlured&&(s.group.traverse((function(t){_T(t)})),a&&i.push(r)),o.isBlured=!1})),jv(n,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)}))}function jT(t,e,i,n){var r=n.getModel();function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&NT(n)}}if(i=i||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===i&&!r||"coordinateSystem"===i&&!c||"series"===e&&r)){var h=n.getViewOfSeriesModel(t);if(h.group.traverse((function(t){t.__highByOuter&&r&&"self"===e||bT(t)})),$v(e))o(t.getData(),e);else if(ey(e))for(var d=qv(e),f=0;f<d.length;f++)o(t.getData(d[f]),e[d[f]]);l.push(t),tT(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.toggleBlurSeries&&i.toggleBlurSeries(l,!0,r)}}))}}function WT(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){tT(n).isBlured=!0;var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse((function(t){bT(t)}))}}}function HT(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=nC(r,e);o=(Zv(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a){var s=r.count(),l=0;while(!a&&l<s)a=r.getItemGraphicEl(l++)}if(a){var u=XM(a);jT(n,u.focus,u.blurScope,i)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&jT(n,c,h,i)}}}function UT(t,e,i,n){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return r;var o=n.getModel().getComponent(t,e);if(!o)return r;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(i),u=0;u<l.length;u++)if("self"===XM(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function qT(t,e,i){var n=XM(t),r=UT(n.componentMainType,n.componentIndex,n.componentHighDownName,i),o=r.dispatchers,a=r.focusSelf;o?(a&&WT(n.componentMainType,n.componentIndex,i),jv(o,(function(t){return ET(t,e)}))):(jT(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&WT(n.componentMainType,n.componentIndex,i),ET(t,e))}function GT(t,e,i){$T(i);var n=XM(t),r=UT(n.componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers;r?jv(r,(function(t){return PT(t,e)})):PT(t,e)}function YT(t,e,i){if(sD(e)){var n=e.dataType,r=t.getData(n),o=nC(r,e);Zv(o)||(o=[o]),t[e.type===dT?"toggleSelect":e.type===cT?"select":"unselect"](o,n)}}function XT(t){var e=t.getAllData();jv(e,(function(e){var i=e.data,n=e.type;i.eachItemGraphicEl((function(e,i){t.isSelected(i,n)?FT(e):BT(e)}))}))}function ZT(t){var e=[];return t.eachSeries((function(t){var i=t.getAllData();jv(i,(function(i){i.data;var n=i.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=n&&(o.dataType=n),e.push(o)}}))})),e}function KT(t,e,i){rD(t,!0),CT(t,OT),tD(t,e,i)}function JT(t){rD(t,!1)}function QT(t,e,i,n){n?JT(t):KT(t,e,i)}function tD(t,e,i){var n=XM(t);null!=e?(n.focus=e,n.blurScope=i):n.focus&&(n.focus=null)}var eD=["emphasis","blur","select"],iD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function nD(t,e,i,n){i=i||"itemStyle";for(var r=0;r<eD.length;r++){var o=eD[r],a=e.getModel([o,i]),s=t.ensureState(o);s.style=n?n(a):a[iD[i]]()}}function rD(t,e){var i=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),i&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!i)}function oD(t){return!(!t||!t.__highDownDispatcher)}function aD(t){var e=JM[t];return null==e&&KM<=32&&(e=JM[t]=KM++),e}function sD(t){var e=t.type;return e===cT||e===hT||e===dT}function lD(t){var e=t.type;return e===lT||e===uT}function uD(t){var e=QM(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var i=t.states.select||{};e.selectFill=i.style&&i.style.fill||null,e.selectStroke=i.style&&i.style.stroke||null}var cD={};function hD(t,e){for(var i=0;i<rT.length;i++){var n=rT[i],r=e[n],o=t.ensureState(n);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function dD(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=Kv(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},u=0;u<rT.length;u++){var c=rT[u],h=e[c];l[c]=uy(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,n)}return l}function fD(t,e,i,n){i=i||cD;for(var r=t instanceof YM,o=!1,a=0;a<oT.length;a++){var s=e[oT[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){r||(l||(l=new YM,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=dD(i,e),c=e.normal,h=!!c.getShallow("show"),d=gD(c,n&&n.normal,i,!1,!r);d.text=u.normal,r||t.setTextConfig(mD(c,i,!1));for(a=0;a<rT.length;a++){var f=rT[a];s=e[f];if(s){var p=l.ensureState(f),g=!!uy(s.getShallow("show"),h);if(g!==h&&(p.ignore=!g),p.style=gD(s,n&&n[f],i,!0,!r),p.style.text=u[f],!r){var m=t.ensureState(f);m.textConfig=mD(s,i,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),i.enableTextSetter&&(CD(l).setLabelText=function(t){var n=dD(i,e,t);hD(l,n)})}else l&&(l.ignore=!0);t.dirty()}function pD(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<rT.length;n++){var r=rT[n];i[r]=t.getModel([r,e])}return i}function gD(t,e,i,n,r){var o={};return vD(o,t,i,n,r),e&&zv(o,e),o}function mD(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=uy(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return n=t.getShallow("position")||(i?null:"inside"),"outside"===n&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function vD(t,e,i,n,r){i=i||cD;var o,a=e.ecModel,s=a&&a.option.textStyle,l=yD(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);xD(o[u]={},c,s,i,n,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d),xD(t,e,s,i,n,r,!0,!1)}function yD(t){var e;while(t&&t!==t.ecModel){var i=(t.option||cD).rich;if(i){e=e||{};for(var n=qv(i),r=0;r<n.length;r++){var o=n[r];e[o]=1}}t=t.parentModel}return e}var bD=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],_D=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],wD=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function xD(t,e,i,n,r,o,a,s){i=!r&&i||cD;var l=n&&n.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=uy(e.getShallow("opacity"),i.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||i.color,c=c||i.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var d=uy(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=d&&(t.lineWidth=d);var f=uy(e.getShallow("textBorderType"),i.textBorderType);null!=f&&(t.lineDash=f);var p=uy(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=p&&(t.lineDashOffset=p),r||null!=h||s||(h=n&&n.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&n.inheritColor&&(t.fill=n.inheritColor);for(var g=0;g<bD.length;g++){var m=bD[g],v=uy(e.getShallow(m),i[m]);null!=v&&(t[m]=v)}for(g=0;g<_D.length;g++){m=_D[g],v=e.getShallow(m);null!=v&&(t[m]=v)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!n.disableBox){for(g=0;g<wD.length;g++){m=wD[g],v=e.getShallow(m);null!=v&&(t[m]=v)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function SD(t,e){var i=e&&e.getModel("textStyle");return py([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}var CD=rC();var kD=["textStyle","color"],MD=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],TD=new YM,DD=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(kD):null)},t.prototype.getFont=function(){return SD({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<MD.length;i++)e[MD[i]]=this.getShallow(MD[i]);return TD.useStyle(e),TD.update(),TD.getBoundingRect()},t}(),ID=DD,AD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],OD=DC(AD),ED=function(){function t(){}return t.prototype.getLineStyle=function(t){return OD(this,t)},t}(),PD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],LD=DC(PD),RD=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return LD(this,t,e)},t}(),zD=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}
34return t.prototype.init=function(t,e,i){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Rv(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null,o=n?this._doGet(r):this.option;return i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,i,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Lv(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!cv.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length;n++)if(t[n]&&(i=i&&"object"===typeof i?i[t[n]]:null,null==i))break;return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();_C(zD),CC(zD),Vv(zD,ED),Vv(zD,RD),Vv(zD,OC),Vv(zD,ID);var ND=zD,FD=Math.round(10*Math.random());function BD(t){return[t||"",FD++].join("_")}function VD(t){var e={};t.registerSubTypeDefaulter=function(t,i){var n=vC(t);e[n.main]=i},t.determineSubType=function(i,n){var r=n.type;if(!r){var o=vC(i).main;t.hasSubTypes(i)&&e[o]&&(r=e[o](n))}return r}}function $D(t,e){function i(t){var i={},o=[];return jv(t,(function(a){var s=n(i,a),l=s.originalDeps=e(a),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),jv(u,(function(t){Fv(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);Fv(e.successor,t)<0&&e.successor.push(a)}))})),{graph:i,noEntryList:o}}function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var i=[];return jv(t,(function(t){Fv(e,t)>=0&&i.push(t)})),i}t.topologicalTravel=function(t,e,n,r){if(t.length){var o=i(e),a=o.graph,s=o.noEntryList,l={};jv(t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(n.call(r,u,c.originalDeps.slice()),delete l[u]),jv(c.successor,h?f:d)}jv(l,(function(){var t="";throw new Error(t)}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}function jD(t,e){return Rv(Rv({},t,!0),e,!0)}var WD={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},HD={time:{month:["䏿","äºæ","䏿","åæ","äºæ","å
æ","䏿","å
«æ","乿","åæ","å䏿","åäºæ"],monthAbbr:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],dayOfWeek:["æææ¥","ææä¸","ææäº","ææä¸","ææå","ææäº","ææå
"],dayOfWeekAbbr:["æ¥","ä¸","äº","ä¸","å","äº","å
"]},legend:{selector:{all:"å
¨é",inverse:"åé"}},toolbox:{brush:{title:{rect:"ç©å½¢éæ©",polygon:"åé",lineX:"横åéæ©",lineY:"纵åéæ©",keep:"ä¿æéæ©",clear:"æ¸
é¤éæ©"}},dataView:{title:"æ°æ®è§å¾",lang:["æ°æ®è§å¾","å
³é","å·æ°"]},dataZoom:{title:{zoom:"åºå缩æ¾",back:"åºå缩æ¾è¿å"}},magicType:{title:{line:"åæ¢ä¸ºæçº¿å¾",bar:"åæ¢ä¸ºæ±ç¶å¾",stack:"åæ¢ä¸ºå å ",tiled:"åæ¢ä¸ºå¹³éº"}},restore:{title:"è¿å"}
vendor: 23,472 bytes, line 34
34,saveAsImage:{title:"ä¿å为å¾ç",lang:["å³é®å¦å为å¾ç"]}},series:{typeNames:{pie:"饼å¾",bar:"æ±ç¶å¾",line:"æçº¿å¾",scatter:"æ£ç¹å¾",effectScatter:"æ¶æ¼ªæ£ç¹å¾",radar:"é·è¾¾å¾",tree:"æ å¾",treemap:"ç©å½¢æ å¾",boxplot:"ç®±åå¾",candlestick:"K线å¾",k:"K线å¾",heatmap:"çåå¾",map:"å°å¾",parallel:"å¹³è¡åæ å¾",lines:"线å¾",graph:"å
³ç³»å¾",sankey:"æ¡åºå¾",funnel:"æ¼æå¾",gauge:"仪表çå¾",pictorialBar:"象形æ±å¾",themeRiver:"䏻颿²³æµå¾",sunburst:"ææ¥å¾"}},aria:{general:{withTitle:"è¿æ¯ä¸ä¸ªå
³äºâ{title}âçå¾è¡¨ã",withoutTitle:"è¿æ¯ä¸ä¸ªå¾è¡¨ï¼"},series:{single:{prefix:"",withName:"å¾è¡¨ç±»åæ¯{seriesType}ï¼è¡¨ç¤º{seriesName}ã",withoutName:"å¾è¡¨ç±»åæ¯{seriesType}ã"},multiple:{prefix:"å®ç±{seriesCount}个å¾è¡¨ç³»åç»æã",withName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ªè¡¨ç¤º{seriesName}ç{seriesType}ï¼",withoutName:"第{seriesId}ä¸ªç³»åæ¯ä¸ä¸ª{seriesType}ï¼",separator:{middle:"ï¼",end:"ã"}}},data:{allData:"å
¶æ°æ®æ¯ââ",partialData:"å
¶ä¸ï¼å{displayCnt}项æ¯ââ",withName:"{name}çæ°æ®æ¯{value}",withoutName:"{value}",separator:{middle:"ï¼",end:""}}}},UD="ZH",qD="EN",GD=qD,YD={},XD={},ZD=cv.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(UD)>-1?UD:GD}():GD;function KD(t,e){t=t.toUpperCase(),XD[t]=new ND(e),YD[t]=e}function JD(t){if(Jv(t)){var e=YD[t.toUpperCase()]||{};return t===UD||t===qD?Lv(e):Rv(Lv(e),Lv(YD[GD]),!1)}return Rv(Lv(t),Lv(YD[GD]),!1)}function QD(t){return XD[t]}function tI(){return XD[GD]}KD(qD,WD),KD(UD,HD);var eI=1e3,iI=60*eI,nI=60*iI,rI=24*nI,oI=365*rI,aI={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},sI="{yyyy}-{MM}-{dd}",lI={year:"{yyyy}",month:"{yyyy}-{MM}",day:sI,hour:sI+" "+aI.hour,minute:sI+" "+aI.minute,second:sI+" "+aI.second,millisecond:aI.none},uI=["year","month","day","hour","minute","second","millisecond"],cI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hI(t,e){return t+="","0000".substr(0,e-t.length)+t}function dI(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function fI(t){return t===dI(t)}function pI(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gI(t,e,i,n){var r=MS(t),o=r[bI(i)](),a=r[_I(i)]()+1,s=Math.floor((a-1)/3)+1,l=r[wI(i)](),u=r["get"+(i?"UTC":"")+"Day"](),c=r[xI(i)](),h=(c-1)%12+1,d=r[SI(i)](),f=r[CI(i)](),p=r[kI(i)](),g=n instanceof ND?n:QD(n||ZD)||tI(),m=g.getModel("time"),v=m.get("month"),y=m.get("monthAbbr"),b=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,hI(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,hI(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,hI(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,hI(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,hI(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,hI(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,hI(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,hI(p,3)).replace(/{S}/g,p+"")}function mI(t,e,i,n,r){var o=null;if(Jv(i))o=i;else if(Kv(i))o=i(t.value,e,{level:t.level});else{var a=zv({},aI);if(t.level>0)for(var s=0;s<uI.length;++s)a[uI[s]]="{primary|"+a[uI[s]]+"}";var l=i?!1===i.inherit?i:Nv(i,a):a,u=vI(t.value,r);if(l[u])o=l[u];else if(l.inherit){var c=cI.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Zv(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return gI(new Date(t.value),o,r,n)}function vI(t,e){var i=MS(t),n=i[_I(e)]()+1,r=i[wI(e)](),o=i[xI(e)](),a=i[SI(e)](),s=i[CI(e)](),l=i[kI(e)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,f=d&&1===r,p=f&&1===n;return p?"year":f?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function yI(t,e,i){var n=ty(t)?MS(t):t;switch(e=e||vI(t,i),e){case"year":return n[bI(i)]();case"half-year":return n[_I(i)]()>=6?1:0;case"quarter":return Math.floor((n[_I(i)]()+1)/4);case"month":return n[_I(i)]();case"day":return n[wI(i)]();case"half-day":return n[xI(i)]()/24;case"hour":return n[xI(i)]();case"minute":return n[SI(i)]();case"second":return n[CI(i)]();case"millisecond":return n[kI(i)]()}}function bI(t){return t?"getUTCFullYear":"getFullYear"}function _I(t){return t?"getUTCMonth":"getMonth"}function wI(t){return t?"getUTCDate":"getDate"}function xI(t){return t?"getUTCHours":"getHours"}function SI(t){return t?"getUTCMinutes":"getMinutes"}function CI(t){return t?"getUTCSeconds":"getSeconds"}function kI(t){return t?"getUTCMilliseconds":"getMilliseconds"}function MI(t){return t?"setUTCFullYear":"setFullYear"}function TI(t){return t?"setUTCMonth":"setMonth"}function DI(t){return t?"setUTCDate":"setDate"}function II(t){return t?"setUTCHours":"setHours"}function AI(t){return t?"setUTCMinutes":"setMinutes"}function OI(t){return t?"setUTCSeconds":"setSeconds"}function EI(t){return t?"setUTCMilliseconds":"setMilliseconds"}function PI(t){if(!OS(t))return Jv(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function LI(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var RI=dy;function zI(t,e,i){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(t){return t&&py(t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?MS(t):t;if(!isNaN(+l))return gI(l,n,i);if(s)return"-"}if("ordinal"===e)return Qv(t)?r(t):ty(t)&&o(t)?t+"":"-";var u=AS(t);return o(u)?PI(u):Qv(t)?r(t):"boolean"===typeof t?t+"":"-"}var NI=["a","b","c","d","e","f","g"],FI=function(t,e){return"{"+t+(null==e?"":e)+"}"};function BI(t,e,i){Zv(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=NI[o];t=t.replace(FI(a),FI(a,0))}for(var s=0;s<n;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(FI(NI[l],s),i?lb(u):u)}return t}function VI(t,e){var i=Jv(t)?{color:t,extraCssText:e}:t||{},n=i.color,r=i.type;e=i.extraCssText;var o=i.renderMode||"html";if(!n)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+lb(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+lb(n)+";"+(e||"")+'"></span>';var a=i.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function $I(t,e){return e=e||"transparent",Jv(t)?t:ey(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var jI=jv,WI=["left","right","top","bottom","width","height"],HI=[["width","left","right"],["height","top","bottom"]];function UI(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);c=o+g,c>n||l.newline?(o=0,c=g,a+=s+i,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);h=a+m,h>r||l.newline?(o+=s+i,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+i:a=h+i)}))}var qI=UI;Xv(UI,"vertical"),Xv(UI,"horizontal");function GI(t,e,i){i=RI(i||0);var n=e.width,r=e.height,o=mS(t.left,n),a=mS(t.top,r),s=mS(t.right,n),l=mS(t.bottom,r),u=mS(t.width,n),c=mS(t.height,r),h=i[2]+i[0],d=i[1]+i[3],f=t.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>n/r?u=.8*n:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=n-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=n/2-u/2-i[3];break;case"right":o=n-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-i[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new Wb(o+i[3],a+i[0],u,c);return p.margin=i,p}function YI(t){var e=t.layoutMode||t.constructor.layoutMode;return ey(e)?e:e?{type:e}:null}function XI(t,e,i){var n=i&&i.ignoreSize;!Zv(n)&&(n=[n,n]);var r=a(HI[0],0),o=a(HI[1],1);function a(i,r){var o={},a=0,u={},c=0,h=2;if(jI(i,(function(e){u[e]=t[e]})),jI(i,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),n[r])return l(e,i[1])?u[i[2]]=null:l(e,i[2])&&(u[i[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var d=0;d<i.length;d++){var f=i[d];if(!s(o,f)&&s(t,f)){o[f]=t[f];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,i){jI(t,(function(t){e[t]=i[t]}))}u(HI[0],t,r),u(HI[1],t,o)}function ZI(t){return KI({},t)}function KI(t,e){return e&&t&&jI(WI,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}var JI=rC(),QI=function(t){function e(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=BD("ec_cpt_model"),r}return ov(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,e){var i=YI(this),n=i?ZI(t):{},r=e.getTheme();Rv(t,r.get(this.mainType)),Rv(t,this.getDefaultOption()),i&&XI(t,n,i)},e.prototype.mergeOption=function(t,e){Rv(this.option,t,!0);var i=YI(this);i&&XI(this.option,t,i)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!bC(t))return t.defaultOption;var e=JI(this);if(!e.defaultOption){var i=[],n=t;while(n){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;a>=0;a--)o=Rv(o,i[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var i=t+"Index",n=t+"Id";return uC(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(ND);function tA(t){var e=[];return jv(QI.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=Wv(e,(function(t){return vC(t).main})),"dataset"!==t&&Fv(e,"dataset")<=0&&e.unshift("dataset"),e}xC(QI,ND),TC(QI),VD(QI),$D(QI,tA);var eA=QI,iA="";"undefined"!==typeof navigator&&(iA=navigator.platform||"");var nA="rgba(0, 0, 0, 0.2)",rA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:nA,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:nA,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:nA,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:nA,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:nA,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:nA,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:iA.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},oA=xy(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),aA="original",sA="arrayRows",lA="objectRows",uA="keyedColumns",cA="typedArray",hA="unknown",dA="column",fA="row",pA={Must:1,Might:2,Not:3},gA=rC();function mA(t){gA(t).datasetMap=xy()}function vA(t,e,i){var n={},r=bA(e);if(!r||!t)return n;var o,a,s=[],l=[],u=e.ecModel,c=gA(u).datasetMap,h=r.uid+"_"+i.seriesLayoutBy;t=t.slice(),jv(t,(function(e,i){var r=ey(e)?e:t[i]={name:e};"ordinal"===r.type&&null==o&&(o=i,a=p(r)),n[r.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function p(t){var e=t.dimsDef;return e?e.length:1}return jv(t,(function(t,e){var i=t.name,r=p(t);if(null==o){var a=d.valueWayDim;f(n[i],a,r),f(l,a,r),d.valueWayDim+=r}else if(o===e)f(n[i],0,r),f(s,0,r);else{a=d.categoryWayDim;f(n[i],a,r),f(l,a,r),d.categoryWayDim+=r}})),s.length&&(n.itemName=s),l.length&&(n.seriesName=l),n}function yA(t,e,i){var n={},r=bA(t);if(!r)return n;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==lA&&a!==uA||jv(s,(function(t,e){"name"===(ey(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},n={},r=[],l=0,u=Math.min(5,i);l<u;l++){var c=xA(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);r.push(c);var h=c===pA.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&r[t.n]===pA.Not)&&(t.n=l),d(t)&&r[t.n]!==pA.Not)return t;h||(c===pA.Might&&null==n.v&&l!==o&&(n.v=l),null!=n.n&&n.n!==n.v||(n.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(n)?n:null}();if(l){n.value=[l.v];var u=null!=o?o:l.n;n.itemName=[u],n.seriesName=[u]}return n}function bA(t){var e=t.get("data",!0);if(!e)return uC(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},lC).models[0]}function _A(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?uC(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},lC).models:[]}function wA(t,e){return xA(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function xA(t,e,i,n,r,o){var a,s,l,u=5;if(ny(t))return pA.Not;if(n){var c=n[o];ey(c)?(s=c.name,l=c.type):Jv(c)&&(s=c)}if(null!=l)return"ordinal"===l?pA.Must:pA.Not;if(e===sA){var h=t;if(i===fA){for(var d=h[o],f=0;f<(d||[]).length&&f<u;f++)if(null!=(a=_(d[r+f])))return a}else for(f=0;f<h.length&&f<u;f++){var p=h[r+f];if(p&&null!=(a=_(p[o])))return a}}else if(e===lA){var g=t;if(!s)return pA.Not;for(f=0;f<g.length&&f<u;f++){var m=g[f];if(m&&null!=(a=_(m[s])))return a}}else if(e===uA){var v=t;if(!s)return pA.Not;d=v[s];if(!d||ny(d))return pA.Not;for(f=0;f<d.length&&f<u;f++)if(null!=(a=_(d[f])))return a}else if(e===aA){var y=t;for(f=0;f<y.length&&f<u;f++){m=y[f];var b=$S(m);if(!Zv(b))return pA.Not;if(null!=(a=_(b[o])))return a}}function _(t){var e=Jv(t);return null!=t&&isFinite(t)&&""!==t?e?pA.Might:pA.Not:e&&"-"!==t?pA.Must:void 0}return pA.Not}var SA=xy();function CA(t,e,i){var n=SA.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}var kA,MA,TA,DA=rC(),IA=(rC(),function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){var n=FS(this.get("color",!0)),r=this.get("colorLayer",!0);return OA(this,DA,n,r,t,e,i)},t.prototype.clearColorPalette=function(){EA(this,DA)},t}());function AA(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}function OA(t,e,i,n,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&n?AA(n,a):i;if(c=c||i,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function EA(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var PA="\0_ec_inner",LA=1;var RA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new ND(n),this._locale=new ND(r),this._optionManager=o},e.prototype.setOption=function(t,e,i){var n=VA(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,e){return this._resetOption(t,VA(e))},e.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):TA(this,r),i=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&jv(a,(function(t){i=!0,this._mergeOption(t,e)}),this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,r=this._componentsCount,o=[],a=xy(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=CA(this,e,FS(t[e])),a=n.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=WS(a,o,l);eC(u,e,eA),i[e]=null,n.set(e,null),r.set(e,0);var c,h=[],d=[],f=0;jv(u,(function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=eA.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var s=zv({componentIndex:i},t.keyInfo);n=new a(r,this,this,s),zv(n,s),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(h.push(n.option),d.push(n),f++):(h.push(void 0),d.push(void 0))}),this),i[e]=h,n.set(e,d),r.set(e,f),"series"===e&&kA(this)}mA(this),jv(t,(function(t,e){null!=t&&(eA.hasClass(e)?e&&(o.push(e),a.set(e,!0)):i[e]=null==i[e]?Lv(t):Rv(i[e],t,!0))})),s&&s.each((function(t,e){eA.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),eA.topologicalTravel(o,eA.getAllClassMainTypes(),l,this),this._seriesIndices||kA(this)},e.prototype.getOption=function(){var t=Lv(this.option);return jv(t,(function(e,i){if(eA.hasClass(i)){for(var n=FS(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!tC(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}})),delete t[PA],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e)for(var r=0;r<i.length;r++)if(i[r])return i[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=n?(i=[],jv(FS(n),(function(t){a[t]&&i.push(a[t])}))):i=null!=r?FA("id",r,a):null!=o?FA("name",o,a):Uv(a,(function(t){return!!t})),BA(i,t)):[]},e.prototype.findComponents=function(t){var e=t.query,i=t.mainType,n=o(e),r=n?this.queryComponents(n):Uv(this._componentsMap.get(i),(function(t){return!!t}));return a(BA(r,t));function o(t){var e=i+"Index",n=i+"Id",r=i+"Name";return!t||null==t[e]&&null==t[n]&&null==t[r]?null:{mainType:i,index:t[e],id:t[n],name:t[r]}}function a(e){return t.filter?Uv(e,t.filter):e}},e.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(Kv(t)){var r=e,o=t;n.each((function(t,e){for(var i=0;t&&i<t.length;i++){var n=t[i];n&&o.call(r,e,n,n.componentIndex)}}))}else for(var a=Jv(t)?n.get(t):ey(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(i,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=JS(t,null);return Uv(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Uv(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Uv(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){MA(this),jv(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},e.prototype.eachRawSeries=function(t,e){jv(this._componentsMap.get("series"),(function(i){i&&t.call(e,i,i.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,i){MA(this),jv(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)}),this)},e.prototype.eachRawSeriesByType=function(t,e,i){return jv(this.getSeriesByType(t),e,i)},e.prototype.isSeriesFiltered=function(t){return MA(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){MA(this);var i=[];jv(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)}),this),this._seriesIndices=i,this._seriesIndicesMap=xy(i)},e.prototype.restoreData=function(t){kA(this);var e=this._componentsMap,i=[];e.each((function(t,e){eA.hasClass(e)&&i.push(e)})),eA.topologicalTravel(i,eA.getAllClassMainTypes(),(function(i){jv(e.get(i),(function(e){!e||"series"===i&&zA(e,t)||e.restoreData()}))}))},e.internalField=function(){kA=function(t){var e=t._seriesIndices=[];jv(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=xy(e)},MA=function(t){0},TA=function(t,e){t.option={},t.option[PA]=LA,t._componentsMap=xy({series:[]}),t._componentsCount=xy();var i=e.aria;ey(i)&&null==i.enabled&&(i.enabled=!0),NA(e,t._theme.option),Rv(e,rA,!1),t._mergeOption(e,null)}}(),e}(ND);function zA(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}function NA(t,e){var i=t.color&&!t.colorLayer;jv(e,(function(e,n){"colorLayer"===n&&i||eA.hasClass(n)||("object"===typeof e?t[n]=t[n]?Rv(t[n],e,!1):Lv(e):null==t[n]&&(t[n]=e))}))}function FA(t,e,i){if(Zv(e)){var n=xy();return jv(e,(function(t){if(null!=t){var e=JS(t,null);null!=e&&n.set(t,!0)}})),Uv(i,(function(e){return e&&n.get(e[t])}))}var r=JS(e,null);return Uv(i,(function(e){return e&&null!=r&&e[t]===r}))}function BA(t,e){return e.hasOwnProperty("subType")?Uv(t,(function(t){return t&&t.subType===e.subType})):t}function VA(t){var e=xy();return t&&jv(FS(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Vv(RA,IA);var $A=RA,jA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],WA=function(){function t(t){jv(jA,(function(e){this[e]=Yv(t[e],t)}),this)}return t}(),HA=WA,UA={},qA=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var i=[];jv(UA,(function(n,r){var o=n.create(t,e);i=i.concat(o||[])})),this._coordinateSystems=i},t.prototype.update=function(t,e){jv(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){UA[t]=e},t.get=function(t){return UA[t]},t}(),GA=qA,YA=/^(min|max)?(.+)$/,XA=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}
vendor: 5,022 bytes, line 34
34return t.prototype.setOption=function(t,e,i){t&&(jv(FS(t.series),(function(t){t&&t.data&&ny(t.data)&&my(t.data)})),jv(FS(t.dataset),(function(t){t&&t.source&&ny(t.source)&&my(t.source)}))),t=Lv(t);var n=this._optionBackup,r=ZA(t,e,!n);this._newBaseOption=r.baseOption,n?(r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Lv(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=Lv(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!n.length&&!r)return a;for(var s=0,l=n.length;s<l;s++)KA(n[s].query,e,i)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!QA(o,this._currentMediaIndices)&&(a=Wv(o,(function(t){return Lv(-1===t?r.option:n[t].option)}))),this._currentMediaIndices=o,a},t}();function ZA(t,e,i){var n,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){jv(e,(function(e){e(t,i)}))}return a?(r=a,r.timeline||(r.timeline=s)):((h||c)&&(t.options=t.media=null),r=t),c&&Zv(u)&&jv(u,(function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))})),d(r),jv(l,(function(t){return d(t)})),jv(o,(function(t){return d(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:n,mediaList:o}}function KA(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return jv(t,(function(t,e){var i=e.match(YA);if(i&&i[1]&&i[2]){var o=i[1],a=i[2].toLowerCase();JA(n[a],t,o)||(r=!1)}})),r}function JA(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e}function QA(t,e){return t.join(",")===e.join(",")}var tO=XA,eO=jv,iO=ey,nO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function rO(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=nO.length;i<n;i++){var r=nO[i],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?Rv(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?Rv(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function oO(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,Nv(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function aO(t){oO(t,"itemStyle"),oO(t,"lineStyle"),oO(t,"areaStyle"),oO(t,"label"),oO(t,"labelLine"),oO(t,"upperLabel"),oO(t,"edgeLabel")}function sO(t,e){var i=iO(t)&&t[e],n=iO(i)&&i.textStyle;if(n){0;for(var r=0,o=VS.length;r<o;r++){var a=VS[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}}function lO(t){t&&(aO(t),sO(t,"label"),t.emphasis&&sO(t.emphasis,"label"))}function uO(t){if(iO(t)){rO(t),aO(t),sO(t,"label"),sO(t,"upperLabel"),sO(t,"edgeLabel"),t.emphasis&&(sO(t.emphasis,"label"),sO(t.emphasis,"upperLabel"),sO(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(rO(e),lO(e));var i=t.markLine;i&&(rO(i),lO(i));var n=t.markArea;n&&lO(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!ny(o))for(var a=0;a<o.length;a++)lO(o[a]);jv(t.categories,(function(t){aO(t)}))}if(r&&!ny(r))for(a=0;a<r.length;a++)lO(r[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)lO(s[a])}if(i=t.markLine,i&&i.data){var l=i.data;for(a=0;a<l.length;a++)Zv(l[a])?(lO(l[a][0]),lO(l[a][1])):lO(l[a])}"gauge"===t.type?(sO(t,"axisLabel"),sO(t,"title"),sO(t,"detail")):"treemap"===t.type?(oO(t.breadcrumb,"itemStyle"),jv(t.levels,(function(t){aO(t)}))):"tree"===t.type&&aO(t.leaves)}}function cO(t){return Zv(t)?t:t?[t]:[]}function hO(t){return(Zv(t)?t[0]:t)||{}}function dO(t,e){eO(cO(t.series),(function(t){iO(t)&&uO(t)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),eO(i,(function(e){eO(cO(t[e]),(function(t){t&&(sO(t,"axisLabel"),sO(t.axisPointer,"label"))}))})),eO(cO(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;sO(e,"axisLabel"),sO(e&&e.axisPointer,"label")})),eO(cO(t.calendar),(function(t){oO(t,"itemStyle"),sO(t,"dayLabel"),sO(t,"monthLabel"),sO(t,"yearLabel")})),eO(cO(t.radar),(function(t){sO(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),eO(cO(t.geo),(function(t){iO(t)&&(lO(t),eO(cO(t.regions),(function(t){lO(t)})))})),eO(cO(t.timeline),(function(t){lO(t),oO(t,"label"),oO(t,"itemStyle"),oO(t,"controlStyle",!0);var e=t.data;Zv(e)&&jv(e,(function(t){ey(t)&&(oO(t,"label"),oO(t,"itemStyle"))}))})),eO(cO(t.toolbox),(function(t){oO(t,"iconStyle"),eO(t.feature,(function(t){oO(t,"iconStyle")}
vendor: 45,997 bytes, line 34
34))})),sO(hO(t.axisPointer),"label"),sO(hO(t.tooltip).axisPointer,"label")}function fO(t,e){for(var i=e.split(","),n=t,r=0;r<i.length;r++)if(n=n&&n[i[r]],null==n)break;return n}function pO(t,e,i,n){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(n||null==a[o[s]])&&(a[o[s]]=i)}function gO(t){t&&jv(mO,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var mO=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],vO=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yO=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function bO(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<yO.length;i++){var n=yO[i][1],r=yO[i][0];null!=e[n]&&(e[r]=e[n])}}function _O(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function wO(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function xO(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function SO(t,e){if(t)for(var i=0;i<t.length;i++)e(t[i]),t[i]&&SO(t[i].children,e)}function CO(t,e){dO(t,e),t.series=FS(t.series),jv(t.series,(function(t){if(ey(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),_O(t.label);var i=t.data;if(i&&!ny(i))for(var n=0;n<i.length;n++)_O(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=fO(t,"pointer.color");null!=r&&pO(t,"itemStyle.color",r)}else if("bar"===e){bO(t),bO(t.backgroundStyle),bO(t.emphasis);i=t.data;if(i&&!ny(i))for(n=0;n<i.length;n++)"object"===typeof i[n]&&(bO(i[n]),bO(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),wO(t),SO(t.data,wO)}else"graph"===e||"sankey"===e?xO(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Nv(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),gO(t)}})),t.dataRange&&(t.visualMap=t.dataRange),jv(vO,(function(e){var i=t[e];i&&(Zv(i)||(i=[i]),jv(i,(function(t){gO(t)})))}))}function kO(t){var e=xy();t.eachSeries((function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.length&&r.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}})),e.each(MO)}function MO(t){jv(t,(function(e,i){var n=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,d,f=a.get(e.stackedDimension,c);if(isNaN(f))return r;s?d=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var p=NaN,g=i-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=xS(f,v),p=v;break}}}return n[0]=f,n[1]=p,n}))}))}var TO,DO,IO,AO,OO,EO=function(){function t(t){this.data=t.data||(t.sourceFormat===uA?{}:[]),this.sourceFormat=t.sourceFormat||hA,this.seriesLayoutBy=t.seriesLayoutBy||dA,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&wA(this,i)===pA.Must&&(n.type="ordinal")}}return t}();function PO(t){return t instanceof EO}function LO(t,e,i){i=i||NO(t);var n=e.seriesLayoutBy,r=FO(t,i,n,e.sourceHeader,e.dimensions),o=new EO({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Lv(e)});return o}function RO(t){return new EO({data:t,sourceFormat:ny(t)?cA:aA})}function zO(t){return new EO({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Lv(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function NO(t){var e=hA;if(ny(t))e=cA;else if(Zv(t)){0===t.length&&(e=sA);for(var i=0,n=t.length;i<n;i++){var r=t[i];if(null!=r){if(Zv(r)){e=sA;break}if(ey(r)){e=lA;break}}}}else if(ey(t))for(var o in t)if(My(t,o)&&$v(t[o])){e=uA;break}return e}function FO(t,e,i,n,r){var o,a;if(!t)return{dimensionsDefine:VO(r),startIndex:a,dimensionsDetectedCount:o};if(e===sA){var s=t;"auto"===n||null==n?$O((function(t){null!=t&&"-"!==t&&(Jv(t)?null==a&&(a=1):a=0)}),i,s,10):a=ty(n)?n:n?1:0,r||1!==a||(r=[],$O((function(t,e){r[e]=null!=t?t+"":""}),i,s,1/0)),o=r?r.length:i===fA?s.length:s[0]?s[0].length:null}else if(e===lA)r||(r=BO(t));else if(e===uA)r||(r=[],jv(t,(function(t,e){r.push(e)})));else if(e===aA){var l=$S(t[0]);o=Zv(l)&&l.length||1}return{startIndex:a,dimensionsDefine:VO(r),dimensionsDetectedCount:o}}function BO(t){var e,i=0;while(i<t.length&&!(e=t[i++]));if(e)return qv(e)}function VO(t){if(t){var e=xy();return Wv(t,(function(t,i){t=ey(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var r=e.get(n.name);return r?n.name+="-"+r.count++:e.set(n.name,{count:1}),n}))}}function $O(t,e,i,n){if(e===fA)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else{var o=i[0]||[];for(r=0;r<o.length&&r<n;r++)t(o[r],r)}}function jO(t){var e=t.sourceFormat;return e===lA||e===uA}var WO=function(){function t(t,e){var i=PO(t)?t:RO(t);this._source=i;var n=this._data=i.data;i.sourceFormat===cA&&(this._offset=0,this._dimSize=e,this._data=n),OO(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;OO=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=AO[QO(a,s)];if(zv(t,c),a===cA)t.getItem=e,t.count=n,t.fillStorage=i;else{var h=qO(a,s);t.getItem=Yv(h,null,r,l,u);var d=XO(a,s);t.count=Yv(d,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;o<n;o++)e[o]=i[r+o];return e},i=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=i[a],d=0;d<c;d++){var f=r[d*o+a];h[t+d]=f,f<l&&(l=f),f>u&&(u=f)}s[0]=l,s[1]=u}},n=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[sA+"_"+dA]={pure:!0,appendData:r},t[sA+"_"+fA]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[lA]={pure:!0,appendData:r},t[uA]={pure:!0,appendData:function(t){var e=this._data;jv(t,(function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])}))}},t[aA]={appendData:r},t[cA]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},AO=t}(),t}(),HO=function(t,e,i,n){return t[n]},UO=(TO={},TO[sA+"_"+dA]=function(t,e,i,n){return t[n+e]},TO[sA+"_"+fA]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},TO[lA]=HO,TO[uA]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=i[a].name;0;var l=t[s];o[a]=l?l[n]:null}return o},TO[aA]=HO,TO);function qO(t,e){var i=UO[QO(t,e)];return i}var GO=function(t,e,i){return t.length},YO=(DO={},DO[sA+"_"+dA]=function(t,e,i){return Math.max(0,t.length-e)},DO[sA+"_"+fA]=function(t,e,i){var n=t[0];return n?Math.max(0,n.length-e):0},DO[lA]=GO,DO[uA]=function(t,e,i){var n=i[0].name;var r=t[n];return r?r.length:0},DO[aA]=GO,DO);function XO(t,e){var i=YO[QO(t,e)];return i}var ZO=function(t,e,i){return t[e]},KO=(IO={},IO[sA]=ZO,IO[lA]=function(t,e,i){return t[i]},IO[uA]=ZO,IO[aA]=function(t,e,i){var n=$S(t);return n instanceof Array?n[e]:n},IO[cA]=ZO,IO);function JO(t){var e=KO[t];return e}function QO(t,e){return t===sA?t+"_"+e:t}function tE(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return JO(o)(n,a,s)}var l=n;return o===aA&&(l=$S(n)),l}}}var eE=/\{@(.+?)\}/g,iE=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);if(o&&(s.value=o.interpolatedValue),null!=n&&Zv(s.value)&&(s.value=s.value[n]),!r){var l=a.getItemModel(t);r=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(Kv(r))return s.status=e,s.dimensionIndex=n,r(s);if(Jv(r)){var u=BI(r,s);return u.replace(eE,(function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var s=tE(a,t,r);if(o&&Zv(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return tE(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,i){},t}();function nE(t){var e,i;return ey(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function rE(t){return new oE(t)}var oE=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,i=this._upstream,n=t&&t.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(o||d<f)){var p=this._progress;if(Zv(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,f,l,u);else this._doProgress(p,d,f,l,u)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,i,n,r){aE.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:aE.next},this.context)},t.prototype._doReset=function(t){var e,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),Zv(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),aE=function(){var t,e,i,n,r,o={reset:function(l,u,c,h){e=l,t=u,i=c,n=h,r=Math.ceil(n/i),o.next=i>1&&n>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*i+Math.ceil(e/r),a=e>=t?null:o<n?o:e;return e++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function sE(t){0}function lE(t){throw new Error(t)}function uE(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"!==i||ty(t)||null==t||"-"===t||(t=+MS(t)),null==t||""===t?NaN:+t)}xy({number:function(t){return parseFloat(t)},time:function(t){return+MS(t)},trim:function(t){return Jv(t)?py(t):t}});var cE={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},hE=(function(){function t(t,e){if(!ty(e)){var i="";0,lE(i)}this._opFn=cE[t],this._rvalFloat=AS(e)}t.prototype.evaluate=function(t){return ty(t)?this._opFn(t,this._rvalFloat):this._opFn(AS(t),this._rvalFloat)}}(),function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=ty(t)?t:AS(t),n=ty(e)?e:AS(e),r=isNaN(i),o=isNaN(n);if(r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o){var a=Jv(t),s=Jv(e);a&&(i=s?t:0),s&&(n=a?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t}());(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=AS(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i===this._rvalTypeof||"number"!==i&&"number"!==this._rvalTypeof||(e=AS(t)===this._rvalFloat)}return this._isEQ?e:!e}})();var dE=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return uE(t,e)},t}();function fE(t,e){var i=new dE,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==dA&&lE(a);var s=[],l={},u=t.dimensionsDefine;if(u)jv(u,(function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};if(s.push(n),null!=i){var r="";My(l,i)&&lE(r),l[i]=n}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=qO(r,dA);e.__isBuiltIn&&(i.getRawDataItem=function(t){return h(n,o,s,t)},i.getRawData=Yv(pE,null,t)),i.cloneRawData=Yv(gE,null,t);var d=XO(r,dA);i.count=Yv(d,null,n,o,s);var f=JO(r);i.retrieveValue=function(t,e){var i=h(n,o,s,t);return p(i,e)};var p=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=s[e];return i?f(t,e,i.name):void 0}};return i.getDimensionInfo=Yv(mE,null,s,l),i.cloneAllDimensionInfo=Yv(vE,null,s),i}function pE(t){var e=t.sourceFormat;if(!xE(e)){var i="";0,lE(i)}return t.data}function gE(t){var e=t.sourceFormat,i=t.data;if(!xE(e)){var n="";0,lE(n)}if(e===sA){for(var r=[],o=0,a=i.length;o<a;o++)r.push(i[o].slice());return r}if(e===lA){for(r=[],o=0,a=i.length;o<a;o++)r.push(zv({},i[o]));return r}}function mE(t,e,i){if(null!=i)return ty(i)||!isNaN(i)&&!My(e,i)?t[i]:My(e,i)?e[i]:void 0}function vE(t){return Lv(t)}var yE=xy();function bE(t){t=Lv(t);var e=t.type,i="";e||lE(i);var n=e.split(":");2!==n.length&&lE(i);var r=!1;"echarts"===n[0]&&(e=n[1],r=!0),t.__isBuiltIn=r,yE.set(e,t)}function _E(t,e,i){var n=FS(t),r=n.length,o="";r||lE(o);for(var a=0,s=r;a<s;a++){var l=n[a];e=wE(l,e,i,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function wE(t,e,i,n){var r="";e.length||lE(r),ey(t)||lE(r);var o=t.type,a=yE.get(o);a||lE(r);var s=Wv(e,(function(t){return fE(t,a)})),l=FS(a.transform({upstream:s[0],upstreamList:s,config:Lv(t.config)}));return Wv(l,(function(t,i){var n="";ey(t)||lE(n),t.data||lE(n);var r,o=NO(t.data);xE(o)||lE(n);var a=e[0];if(a&&0===i&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:dA,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:dA,sourceHeader:0,dimensions:t.dimensions};return LO(t.data,r,null)}))}function xE(t){return t===sA||t===lA}var SE,CE="undefined",kE=typeof Uint32Array===CE?Array:Uint32Array,ME=typeof Uint16Array===CE?Array:Uint16Array,TE=typeof Int32Array===CE?Array:Int32Array,DE=typeof Float64Array===CE?Array:Float64Array,IE={float:DE,int:TE,ordinal:Array,number:Array,time:DE};function AE(t){return t>65535?kE:ME}function OE(){return[1/0,-1/0]}function EE(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function PE(t,e,i,n,r){var o=IE[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(n)}var LE=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=xy()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=SE[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[];jO(n);this._dimensions=Wv(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new IE[e||"float"](this._rawCount),this._rawExtent[r]=OE(),r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=OE());for(var s=r[t],l=o;l<a;l++){var u=i[l]=e.parseAndCollect(i[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var u=n[l];PE(i,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var d=h-a,f=0;f<r;f++){u=n[f];var p=SE.arrayRows.call(this,t[d]||c,u.property,d,f);i[f][h]=p;var g=o[f];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Wv(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=OE()),PE(r,u,c.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var h=[],d=t;d<e;d++){h=n.getItem(d,h);for(var f=0;f<a;f++){var p=r[f],g=this._dimValueGetter(h,l[f],d,f);p[d]=g;var m=s[f];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;r=0;for(var o=n.length;r<o;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,r=this.count();n<r;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var i=e.sort((function(t,e){return t-e})),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;var n=0,r=this._count-1;while(n<=r){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,r=n[t],o=[];if(!r)return o;null==i&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),d=e-r[h],f=Math.abs(d);f<=i&&((f<a||f===a&&d>=0&&s<0)&&(a=f,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;r<n;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{i=AE(this._rawCount);t=new i(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=AE(i._rawCount),o=new r(n),a=[],s=t.length,l=0,u=t[0],c=i._chunks,h=0;h<n;h++){var d=void 0,f=i.getRawIndex(h);if(0===s)d=e(h);else if(1===s){var p=c[u][f];d=e(p,h)}else{for(var g=0;g<s;g++)a[g]=c[t[g]][f];a[g]=h,d=e.apply(null,a)}d&&(o[l++]=f)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=qv(t),r=n.length;if(!r)return this;var o=e.count(),a=AE(e._rawCount),s=new a(o),l=0,u=n[0],c=t[u][0],h=t[u][1],d=e._chunks,f=!1;if(!e._indices){var p=0;if(1===r){for(var g=d[n[0]],m=0;m<i;m++){var v=g[m];(v>=c&&v<=h||isNaN(v))&&(s[l++]=p),p++}f=!0}else if(2===r){g=d[n[0]];var y=d[n[1]],b=t[n[1]][0],_=t[n[1]][1];for(m=0;m<i;m++){v=g[m];var w=y[m];(v>=c&&v<=h||isNaN(v))&&(w>=b&&w<=_||isNaN(w))&&(s[l++]=p),p++}f=!0}}if(!f)if(1===r)for(m=0;m<o;m++){var x=e.getRawIndex(m);v=d[n[0]][x];(v>=c&&v<=h||isNaN(v))&&(s[l++]=x)}else for(m=0;m<o;m++){for(var S=!0,C=(x=e.getRawIndex(m),0);C<r;C++){var k=n[C];v=d[k][x];(v<t[k][0]||v>t[k][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(m))}return l<o&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=OE();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),d=0;d<o;d++)s[d]=n[e[d]][h];s[o]=c;var f=i&&i.apply(null,s);if(null!=f){"object"!==typeof f&&(r[0]=f,f=r);for(u=0;u<f.length;u++){var p=e[u],g=f[u],m=l[p],v=n[p];v&&(v[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(AE(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var f=1;f<l-1;f+=c){for(var p=Math.min(f+c,l-1),g=Math.min(f+2*c,l),m=(g+p)/2,v=0,y=p;y<g;y++){var b=this.getRawIndex(y),_=s[b];isNaN(_)||(v+=_)}v/=g-p;var w=f,x=Math.min(f+c,l),S=f-1,C=s[h];i=-1,r=w;var k=-1,M=0;for(y=w;y<x;y++){b=this.getRawIndex(y),_=s[b];isNaN(_)?(M++,k<0&&(k=b)):(n=Math.abs((S-m)*(_-C)-(S-y)*(v-C)),n>i&&(i=n,r=b))}M>0&&M<x-w&&(d[u++]=Math.min(k,r),r=Math.max(k,r)),d[u++]=r,h=r}return d[u++]=this.getRawIndex(l-1),o._count=u,o._indices=d,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=OE(),h=new(AE(this._rawCount))(Math.ceil(u/s)),d=0,f=0;f<u;f+=s){s>u-f&&(s=u-f,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(f+p);a[p]=l[g]}var m=i(a),v=this.getRawIndex(Math.min(f+n(a,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],i=OE();if(!e)return i;var n,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(n=this._extent[t],n)return n.slice();n=i;for(var a=n[0],s=n[1],l=0;l<r;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return n=[a,s],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n=new t,r=this._chunks,o=e&&Hv(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<r.length;a++)n._chunks[a]=o[a]?EE(r[a]):r[a];else n._chunks=r;return this._copyCommonProps(n),i||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Lv(this._extent),t._rawExtent=Lv(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,i,n){return uE(t[n],this._dimensions[n])}SE={arrayRows:t,objectRows:function(t,e,i,n){return uE(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return uE(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),RE=LE,zE=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(NE(i)){var o=i,a=void 0,s=void 0,l=void 0;if(r){var u=n[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=ny(a)?cA:aA,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=uy(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=uy(c.sourceHeader,h.sourceHeader),p=uy(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!f!==!!h.sourceHeader||p;t=g?[LO(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var m=i;if(r){var v=this._applyTransform(n);t=v.sourceList,e=v.upstreamSignList}else{var y=m.get("source",!0);t=[LO(y,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,i=this._sourceHost,n=i.get("transform",!0),r=i.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&FE(o)}var a=[],s=[];return jv(t,(function(t){t.prepareSource();var e=t.getSource(r||0),i="";null==r||e||FE(i),a.push(e),s.push(t._getVersionSign())})),n?e=_E(n,a,{datasetIndex:i.componentIndex}):null!=r&&(e=[zO(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,i){var n=0,r=this._storeList,o=r[n];o||(o=r[n]={});var a=o[i];if(!a){var s=this._getUpstreamSourceManagers()[0];NE(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,i):(a=new RE,a.initData(new WO(e,t.length),t)),o[i]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(NE(t)){var e=bA(t);return e?[e.getSourceManager()]:[]}return Wv(_A(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;if(NE(n))t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=n;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}();function NE(t){return"series"===t.mainType}function FE(t){throw new Error(t)}var BE="line-height:1";function VE(t,e){var i=t.color||"#6e7079",n=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+lb(n+"")+"px;color:"+lb(i)+";font-weight:"+lb(r+""),valueStyle:"font-size:"+lb(a+"")+"px;color:"+lb(o)+";font-weight:"+lb(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var $E=[0,10,20,30],jE=["","\n","\n\n","\n\n\n"];function WE(t,e){return e.type=t,e}function HE(t){return"section"===t.type}function UE(t){return HE(t)?GE:YE}function qE(t){if(HE(t)){var e=0,i=t.blocks.length,n=i>1||i>0&&!t.noHeader;return jv(t.blocks,(function(t){var i=qE(t);i>=e&&(e=i+ +(n&&(!i||HE(t)&&!t.noHeader)))})),e}return 0}function GE(t,e,i,n){var r=e.noHeader,o=ZE(qE(e)),a=[],s=e.blocks||[];fy(!s||Zv(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(My(u,l)){var c=new hE(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}jv(s,(function(i,r){var s=e.valueFormatter,l=UE(i)(s?zv(zv({},t),{valueFormatter:s}):t,i,r>0?o.html:0,n);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):KE(a.join(""),r?i:o.html);if(r)return h;var d=zI(e.header,"ordinal",t.useUTC),f=VE(n,t.renderMode).nameStyle;return"richText"===t.renderMode?tP(t,d,f)+o.richText+h:KE('<div style="'+f+";"+BE+';">'+lb(d)+"</div>"+h,i)}function YE(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Zv(t)?t:[t],Wv(t,(function(t,e){return zI(t,Zv(f)?f[e]:f,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":zI(l,"ordinal",u),f=e.valueType,p=a?[]:c(e.value),g=!s||!o,m=!s&&o,v=VE(n,r),y=v.nameStyle,b=v.valueStyle;return"richText"===r?(s?"":h)+(o?"":tP(t,d,y))+(a?"":eP(t,p,g,m,b)):KE((s?"":h)+(o?"":JE(d,!s,y))+(a?"":QE(p,g,m,b)),i)}}function XE(t,e,i,n,r,o){if(t){var a=UE(t),s={useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function ZE(t){return{html:$E[t],richText:jE[t]}}function KE(t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0";return'<div style="'+n+";"+BE+';">'+t+i+"</div>"}function JE(t,e,i){var n=e?"margin-left:2px":"";return'<span style="'+i+";"+n+'">'+lb(t)+"</span>"}function QE(t,e,i,n){var r=i?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Zv(t)?t:[t],'<span style="'+o+";"+n+'">'+Wv(t,(function(t){return lb(t)})).join(" ")+"</span>"}function tP(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function eP(t,e,i,n,r){var o=[r],a=n?10:20;return i&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Zv(e)?e.join(" "):e,o)}function iP(t,e){var i=t.getData().getItemVisual(e,"style"),n=i[t.visualDrawType];return $I(n)}function nP(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var rP=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ES()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n="richText"===i?this._generateStyleName():null,r=VI({color:e,type:t,renderMode:i,markerId:n});return Jv(r)?r:(this.richTextStyles[n]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};Zv(e)?jv(e,(function(t){return zv(i,t)})):zv(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}();function oP(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=Zv(h),f=iP(o,a);if(c>1||d&&!c){var p=aP(h,o,a,u,f);e=p.inlineValues,i=p.inlineValueTypes,n=p.blocks,r=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=tE(l,a,u[0]),i=g.type}else r=e=d?h[0]:h;var m=QS(o),v=m&&o.name||"",y=l.getName(a),b=s?v:y;return WE("section",{header:v,noHeader:s||!m,sortParam:r,blocks:[WE("nameValue",{markerType:"item",markerColor:f,name:b,noName:!py(b),value:e,valueType:i})].concat(n||[])})}function aP(t,e,i,n,r){var o=e.getData(),a=Hv(t,(function(t,e,i){var n=o.getDimensionInfo(i);return t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),s=[],l=[],u=[];function c(t,e){var i=o.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(a?u.push(WE("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(s.push(t),l.push(i.type)))}return n.length?jv(n,(function(t){c(tE(o,i,t),t)})):jv(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var sP=rC();function lP(t,e){return t.getName(e)||t.getId(e)}var uP="__universalTransitionEnabled",cP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return ov(e,t),e.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=rE({count:fP,reset:pP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var n=sP(this).sourceManager=new zE(this);n.prepareSource();var r=this.getInitialData(t,i);mP(r,this),this.dataTask.context.data=r,sP(this).dataBeforeProcessed=r,hP(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var i=YI(this),n=i?ZI(t):{},r=this.subType;eA.hasClass(r)&&(r+="Series"),Rv(t,e.getTheme().get(this.subType)),Rv(t,this.getDefaultOption()),BS(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&XI(t,n,i)},e.prototype.mergeOption=function(t,e){t=Rv(this.option,t,!0),this.fillDataTextStyle(t.data);var i=YI(this);i&&XI(this.option,t,i);var n=sP(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);mP(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,sP(this).dataBeforeProcessed=r,hP(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!ny(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&BS(t[i],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=yP(this);if(e){var i=e.context.data;return null==t?i:i.getLinkedData(t)}return sP(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=yP(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}sP(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return xy(t)},e.prototype.getSourceManager=function(){return sP(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return sP(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,i){return oP({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(cv.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=IA.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,r=this.getData(e);if("series"===n||"all"===i)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=lP(r,a);i[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=qv(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},e.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e);return("all"===i||i[lP(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[uP])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var i,n,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){ey(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l],c=lP(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var h=e[a-1];c=lP(t,h);r.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(n={},n[c]=t.getRawIndex(h),n)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return eA.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(eA);function hP(t){var e=t.name;QS(t)||(t.name=dP(t)||e)}function dP(t){var e=t.getRawData(),i=e.mapDimensionsAll("seriesName"),n=[];return jv(i,(function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)})),n.join(" ")}function fP(t){return t.model.getRawData().count()}function pP(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),gP}function gP(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function mP(t,e){jv(Sy(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(i){t.wrapMethod(i,Xv(vP,e))}))}function vP(t,e){var i=yP(t);return i&&i.setOutputEnd((e||this).count()),e}function yP(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}Vv(cP,iE),Vv(cP,IA),xC(cP,eA);var bP=cP,_P=function(){function t(){this.group=new rS,this.uid=BD("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){},t.prototype.updateLayout=function(t,e,i,n){},t.prototype.updateVisual=function(t,e,i,n){},t.prototype.toggleBlurSeries=function(t,e,i){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();_C(_P),TC(_P);var wP=_P;function xP(){var t=rC();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!(!n||!n.large),s=i.progressiveRender=!(!n||!n.progressiveRender);return!(r===a&&o===s)&&"reset"}}var SP=$k.CMD,CP=[[],[],[]],kP=Math.sqrt,MP=Math.atan2;function TP(t,e){if(e){var i,n,r,o,a,s,l=t.data,u=t.len(),c=SP.M,h=SP.C,d=SP.L,f=SP.R,p=SP.A,g=SP.Q;for(r=0,o=0;r<u;){switch(i=l[r++],o=r,n=0,i){case c:n=1;break;case d:n=1;break;case h:n=3;break;case g:n=2;break;case p:var m=e[4],v=e[5],y=kP(e[0]*e[0]+e[1]*e[1]),b=kP(e[2]*e[2]+e[3]*e[3]),_=MP(-e[1]/b,e[0]/y);l[r]*=y,l[r++]+=m,l[r]*=b,l[r++]+=v,l[r++]*=y,l[r++]*=b,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case f:s[0]=l[r++],s[1]=l[r++],jy(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],jy(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<n;a++){var w=CP[a];w[0]=l[r++],w[1]=l[r++],jy(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}var DP=Math.sqrt,IP=Math.sin,AP=Math.cos,OP=Math.PI;function EP(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function PP(t,e){return(t[0]*e[0]+t[1]*e[1])/(EP(t)*EP(e))}function LP(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(PP(t,e))}function RP(t,e,i,n,r,o,a,s,l,u,c){var h=l*(OP/180),d=AP(h)*(t-i)/2+IP(h)*(e-n)/2,f=-1*IP(h)*(t-i)/2+AP(h)*(e-n)/2,p=d*d/(a*a)+f*f/(s*s);p>1&&(a*=DP(p),s*=DP(p));var g=(r===o?-1:1)*DP((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+i)/2+AP(h)*m-IP(h)*v,b=(e+n)/2+IP(h)*m+AP(h)*v,_=LP([1,0],[(d-m)/a,(f-v)/s]),w=[(d-m)/a,(f-v)/s],x=[(-1*d-m)/a,(-1*f-v)/s],S=LP(w,x);if(PP(w,x)<=-1&&(S=OP),PP(w,x)>=1&&(S=0),S<0){var C=Math.round(S/OP*1e6)/1e6;S=2*OP+C%2*OP}c.addData(u,y,b,a,s,_,S,h,o)}var zP=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,NP=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function FP(t){var e=new $k;if(!t)return e;var i,n=0,r=0,o=n,a=r,s=$k.CMD,l=t.match(zP);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,f=c.match(NP)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);var m=0;while(m<p){var v=void 0,y=void 0,b=void 0,_=void 0,w=void 0,x=void 0,S=void 0,C=n,k=r,M=void 0,T=void 0;switch(h){case"l":n+=f[m++],r+=f[m++],d=s.L,e.addData(d,n,r);break;case"L":n=f[m++],r=f[m++],d=s.L,e.addData(d,n,r);break;case"m":n+=f[m++],r+=f[m++],d=s.M,e.addData(d,n,r),o=n,a=r,h="l";break;case"M":n=f[m++],r=f[m++],d=s.M,e.addData(d,n,r),o=n,a=r,h="L";break;case"h":n+=f[m++],d=s.L,e.addData(d,n,r);break;case"H":n=f[m++],d=s.L,e.addData(d,n,r);break;case"v":r+=f[m++],d=s.L,e.addData(d,n,r);break;case"V":r=f[m++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),n=f[m-2],r=f[m-1];break;case"c":d=s.C,e.addData(d,f[m++]+n,f[m++]+r,f[m++]+n,f[m++]+r,f[m++]+n,f[m++]+r),n+=f[m-2],r+=f[m-1];break;case"S":v=n,y=r,M=e.len(),T=e.data,i===s.C&&(v+=n-T[M-4],y+=r-T[M-3]),d=s.C,C=f[m++],k=f[m++],n=f[m++],r=f[m++],e.addData(d,v,y,C,k,n,r);break;case"s":v=n,y=r,M=e.len(),T=e.data,i===s.C&&(v+=n-T[M-4],y+=r-T[M-3]),d=s.C,C=n+f[m++],k=r+f[m++],n+=f[m++],r+=f[m++],e.addData(d,v,y,C,k,n,r);break;case"Q":C=f[m++],k=f[m++],n=f[m++],r=f[m++],d=s.Q,e.addData(d,C,k,n,r);break;case"q":C=f[m++]+n,k=f[m++]+r,n+=f[m++],r+=f[m++],d=s.Q,e.addData(d,C,k,n,r);break;case"T":v=n,y=r,M=e.len(),T=e.data,i===s.Q&&(v+=n-T[M-4],y+=r-T[M-3]),n=f[m++],r=f[m++],d=s.Q,e.addData(d,v,y,n,r);break;case"t":v=n,y=r,M=e.len(),T=e.data,i===s.Q&&(v+=n-T[M-4],y+=r-T[M-3]),n+=f[m++],r+=f[m++],d=s.Q,e.addData(d,v,y,n,r);break;case"A":b=f[m++],_=f[m++],w=f[m++],x=f[m++],S=f[m++],C=n,k=r,n=f[m++],r=f[m++],d=s.A,RP(C,k,n,r,x,S,b,_,w,d,e);break;case"a":b=f[m++],_=f[m++],w=f[m++],x=f[m++],S=f[m++],C=n,k=r,n+=f[m++],r+=f[m++],d=s.A,RP(C,k,n,r,x,S,b,_,w,d,e);break}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),n=o,r=a),i=d}return e.toStatic(),e}var BP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.applyTransform=function(t){},e}(fM);function VP(t){return null!=t.setData}function $P(t,e){var i=FP(t),n=zv({},e);return n.buildPath=function(t){if(VP(t)){t.setData(i.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;i.rebuildPath(e,1)}},n.applyTransform=function(t){TP(i,t),this.dirtyShape()},n}function jP(t,e){return new BP($P(t,e))}function WP(t,e){var i=$P(t,e),n=function(t){function e(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return ov(e,t),e}(BP);return n}function HP(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var o=t[r];
vendor: 4,553 bytes, line 34
34i.push(o.getUpdatedPathProxy(!0))}var a=new fM(e);return a.createPathProxy(),a.buildPath=function(t){if(VP(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}var UP=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),qP=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultShape=function(){return new UP},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(fM);qP.prototype.type="circle";var GP=qP,YP=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),XP=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultShape=function(){return new YP},e.prototype.buildPath=function(t,e){var i=.5522848,n=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*i,l=a*i;t.moveTo(n-o,r),t.bezierCurveTo(n-o,r-l,n-s,r-a,n,r-a),t.bezierCurveTo(n+s,r-a,n+o,r-l,n+o,r),t.bezierCurveTo(n+o,r+l,n+s,r+a,n,r+a),t.bezierCurveTo(n-s,r+a,n-o,r+l,n-o,r),t.closePath()},e}(fM);XP.prototype.type="ellipse";var ZP=XP,KP=Math.PI,JP=2*KP,QP=Math.sin,tL=Math.cos,eL=Math.acos,iL=Math.atan2,nL=Math.abs,rL=Math.sqrt,oL=Math.max,aL=Math.min,sL=1e-4;function lL(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,c=a-r,h=s-o,d=h*l-c*u;if(!(d*d<sL))return d=(c*(e-o)-h*(t-r))/d,[t+d*l,e+d*u]}function uL(t,e,i,n,r,o,a){var s=t-i,l=e-n,u=(a?o:-o)/rL(s*s+l*l),c=u*l,h=-u*s,d=t+c,f=e+h,p=i+c,g=n+h,m=(d+p)/2,v=(f+g)/2,y=p-d,b=g-f,_=y*y+b*b,w=r-o,x=d*g-p*f,S=(b<0?-1:1)*rL(oL(0,w*w*_-x*x)),C=(x*b-y*S)/_,k=(-x*y-b*S)/_,M=(x*b+y*S)/_,T=(-x*y+b*S)/_,D=C-m,I=k-v,A=M-m,O=T-v;return D*D+I*I>A*A+O*O&&(C=M,k=T),{cx:C,cy:k,x0:-c,y0:-h,x1:C*(r/w-1),y1:k*(r/w-1)}}function cL(t){var e;if(Zv(t)){var i=t.length;if(!i)return t;e=1===i?[t[0],t[0],0,0]:2===i?[t[0],t[0],t[1],t[1]]:3===i?t.concat(t[2]):t}else e=[t,t,t,t];return e}function hL(t,e){var i,n=oL(e.r,0),r=oL(e.r0||0,0),o=n>0,a=r>0;if(o||a){if(o||(n=r,r=0),r>n){var s=n;n=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,d=!!e.clockwise,f=nL(u-l),p=f>JP&&f%JP;if(p>sL&&(f=p),n>sL)if(f>JP-sL)t.moveTo(c+n*tL(l),h+n*QP(l)),t.arc(c,h,n,l,u,!d),r>sL&&(t.moveTo(c+r*tL(u),h+r*QP(u)),t.arc(c,h,r,u,l,d));else{var g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,_=void 0,w=void 0,x=void 0,S=void 0,C=void 0,k=void 0,M=void 0,T=void 0,D=void 0,I=void 0,A=void 0,O=n*tL(l),E=n*QP(l),P=r*tL(u),L=r*QP(u),R=f>sL;if(R){var z=e.cornerRadius;z&&(i=cL(z),g=i[0],m=i[1],v=i[2],y=i[3]);var N=nL(n-r)/2;if(b=aL(N,v),_=aL(N,y),w=aL(N,g),x=aL(N,m),k=S=oL(b,_),M=C=oL(w,x),(S>sL||C>sL)&&(T=n*tL(u),D=n*QP(u),I=r*tL(l),A=r*QP(l),f<KP)){var F=lL(O,E,I,A,T,D,P,L);if(F){var B=O-F[0],V=E-F[1],$=T-F[0],j=D-F[1],W=1/QP(eL((B*$+V*j)/(rL(B*B+V*V)*rL($*$+j*j)))/2),H=rL(F[0]*F[0]+F[1]*F[1]);k=aL(S,(n-H)/(W+1)),M=aL(C,(r-H)/(W-1))}}}if(R)if(k>sL){var U=aL(v,k),q=aL(y,k),G=uL(I,A,O,E,n,U,d),Y=uL(T,D,P,L,n,q,d);t.moveTo(c+G.cx+G.x0,h+G.cy+G.y0),k<S&&U===q?t.arc(c+G.cx,h+G.cy,k,iL(G.y0,G.x0),iL(Y.y0,Y.x0),!d):(U>0&&t.arc(c+G.cx,h+G.cy,U,iL(G.y0,G.x0),iL(G.y1,G.x1),!d),t.arc(c,h,n,iL(G.cy+G.y1,G.cx+G.x1),iL(Y.cy+Y.y1,Y.cx+Y.x1),!d),q>0&&t.arc(c+Y.cx,h+Y.cy,q,iL(Y.y1,Y.x1),iL(Y.y0,Y.x0),!d))}else t.moveTo(c+O,h+E),t.arc(c,h,n,l,u,!d);else t.moveTo(c+O,h+E);if(r>sL&&R)if(M>sL){U=aL(g,M),q=aL(m,M),G=uL(P,L,T,D,r,-q,d),Y=uL(O,E,I,A,r,-U,d);t.lineTo(c+G.cx+G.x0,h+G.cy+G.y0),M<C&&U===q?t.arc(c+G.cx,h+G.cy,M,iL(G.y0,G.x0),iL(Y.y0,Y.x0),!d):(q>0&&t.arc(c+G.cx,h+G.cy,q,iL(G.y0,G.x0),iL(G.y1,G.x1),!d),t.arc(c,h,r,iL(G.cy+G.y1,G.cx+G.x1),iL(Y.cy+Y.y1,Y.cx+Y.x1),d),U>0&&t.arc(c+Y.cx,h+Y.cy,U,iL(Y.y1,Y.x1),iL(Y.y0,Y.x0),!d))}else t.lineTo(c+P,h+L),t.arc(c,h,r,u,l,d);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var dL=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),fL=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultShape=function(){return new dL},e.prototype.buildPath=function(t,e){hL(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(fM);fL.prototype.type="sector";var pL=fL,gL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),mL=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultShape=function(){return new gL},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},e}(fM);mL.prototype.type="ring";var vL=mL;
vendor: 23,142 bytes, line 34
34function yL(t,e,i,n){var r,o,a,s,l=[],u=[],c=[],h=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d<f;d++)Wy(a,a,t[d]),Hy(s,s,t[d]);Wy(a,a,n[0]),Hy(s,s,n[1])}for(d=0,f=t.length;d<f;d++){var p=t[d];if(i)r=t[d?d-1:f-1],o=t[(d+1)%f];else{if(0===d||d===f-1){l.push(Ay(t[d]));continue}r=t[d-1],o=t[d+1]}Ey(u,o,r),Ry(u,u,e);var g=Ny(p,r),m=Ny(p,o),v=g+m;0!==v&&(g/=v,m/=v),Ry(c,u,-g),Ry(h,u,m);var y=Oy([],p,c),b=Oy([],p,h);n&&(Hy(y,y,a),Wy(y,y,s),Hy(b,b,a),Wy(b,b,s)),l.push(y),l.push(b)}return i&&l.push(l.shift()),l}function bL(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n){var o=yL(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(i?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}var _L=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),wL=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultShape=function(){return new _L},e.prototype.buildPath=function(t,e){bL(t,e,!0)},e}(fM);wL.prototype.type="polygon";var xL=wL,SL=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),CL=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new SL},e.prototype.buildPath=function(t,e){bL(t,e,!1)},e}(fM);CL.prototype.type="polyline";var kL=CL,ML={},TL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),DL=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new TL},e.prototype.buildPath=function(t,e){var i,n,r,o;if(this.subPixelOptimize){var a=CM(ML,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),s<1&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(fM);DL.prototype.type="line";var IL=DL,AL=[],OL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function EL(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(i?z_:R_)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?z_:R_)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?W_:j_)(t.x1,t.cpx1,t.x2,e),(i?W_:j_)(t.y1,t.cpy1,t.y2,e)]}var PL=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new OL},e.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(i,n),null==l||null==u?(c<1&&(q_(i,a,r,c,AL),a=AL[1],r=AL[2],q_(n,s,o,c,AL),s=AL[1],o=AL[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(B_(i,a,l,r,c,AL),a=AL[1],l=AL[2],r=AL[3],B_(n,s,u,o,c,AL),s=AL[1],u=AL[2],o=AL[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return EL(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=EL(this.shape,t,!0);return zy(e,e)},e}(fM);PL.prototype.type="bezier-curve";var LL=PL,RL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),zL=function(t){function e(e){return t.call(this,e)||this}return ov(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new RL},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+i,u*r+n),t.arc(i,n,r,o,a,!s)},e}(fM);zL.prototype.type="arc";var NL=zL,FL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return ov(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),fM.prototype.getBoundingRect.call(this)},e}(fM),BL=FL,VL=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),$L=VL,jL=function(t){function e(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return ov(e,t),e}($L),WL=jL,HL=function(t){function e(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return ov(e,t),e}($L),UL=HL,qL=[0,0],GL=[0,0],YL=new Pb,XL=new Pb,ZL=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Pb;for(i=0;i<2;i++)this._axes[i]=new Pb;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;l<4;l++)i[l].transform(e);Pb.sub(n[0],i[1],i[0]),Pb.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e){var i=!0,n=!e;return YL.set(1/0,1/0),XL.set(0,0),!this._intersectCheckOneSide(this,t,YL,XL,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,YL,XL,n,-1)&&(i=!1,n)||n||Pb.copy(e,i?YL:XL),i},t.prototype._intersectCheckOneSide=function(t,e,i,n,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,qL),this._getProjMinMaxOnAxis(s,e._corners,GL),qL[1]<GL[0]||qL[0]>GL[1]){if(a=!1,r)return a;var u=Math.abs(GL[0]-qL[1]),c=Math.abs(qL[0]-GL[1]);Math.min(u,c)>n.len()&&(u<c?Pb.scale(n,l,-u*o):Pb.scale(n,l,c*o))}else if(i){u=Math.abs(GL[0]-qL[1]),c=Math.abs(qL[0]-GL[1]);Math.min(u,c)<i.len()&&(u<c?Pb.scale(i,l,u*o):Pb.scale(i,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(n)+r[t];a=Math.min(u,a),s=Math.max(u,s)}i[0]=a,i[1]=s},t}(),KL=ZL,JL=[],QL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return ov(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Wb(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(JL)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},e}(sk),tR=QL,eR=rC();function iR(t,e,i,n,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,h=void 0;n?(u=uy(n.duration,200),c=uy(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Kv(h)&&(h=h(i,r)),Kv(u)&&(u=u(i));var d={duration:u||0,delay:h,easing:c};return d}return null}function nR(t,e,i,n,r,o,a){var s,l=!1;Kv(r)?(a=o,o=r,r=null):ey(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=iR(t,n,r,u?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,f=c.easing,p={duration:h,delay:d||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(i,p):e.animateTo(i,p)}else e.stopAnimation(),!l&&e.attr(i),a&&a(1),o&&o()}function rR(t,e,i,n,r,o){nR("update",t,e,i,n,r,o)}function oR(t,e,i,n,r,o){nR("enter",t,e,i,n,r,o)}function aR(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var i=t.animators[e];if("leave"===i.scope)return!0}return!1}function sR(t,e,i,n,r,o){aR(t)||nR("leave",t,e,i,n,r,o)}function lR(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),sR(t,{style:{opacity:0}},e,i,n)}function uR(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||lR(t,e,i,n)})):lR(t,e,i,n)}function cR(t){eR(t).oldStyle=t.style}var hR=Math.max,dR=Math.min,fR={};function pR(t){return fM.extend(t)}var gR=WP;function mR(t,e){return gR(t,e)}function vR(t,e){fR[t]=e}function yR(t){if(fR.hasOwnProperty(t))return fR[t]}function bR(t,e,i,n){var r=jP(t,e);return i&&("center"===n&&(i=wR(i,r.getBoundingRect())),SR(r,i)),r}function _R(t,e,i){var n=new wM({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(wR(e,r))}}});return n}function wR(t,e){var i,n=e.width/e.height,r=t.height*n;r<=t.width?i=t.height:(r=t.width,i=r/n);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var xR=HP;function SR(t,e){if(t.applyTransform){var i=t.getBoundingRect(),n=i.calculateTransform(e);t.applyTransform(n)}}function CR(t,e){return CM(t,t,{lineWidth:e}),t}function kR(t){return kM(t.shape,t.shape,t.style),t}var MR=MM;function TR(t,e){var i=kb([]);while(t&&t!==e)Tb(i,t.getLocalTransform(),i),t=t.parent;return i}function DR(t,e,i){return e&&!$v(e)&&(e=Px.getLocalTransform(e)),i&&(e=Ob([],e)),jy([],t,e)}function IR(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return o=DR(o,e,i),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function AR(t){return!t.isGroup}function OR(t){return null!=t.shape}function ER(t,e,i){if(t&&e){var n=r(t);e.traverse((function(t){if(AR(t)&&t.anid){var e=n[t.anid];if(e){var r=o(t);t.attr(o(e)),rR(t,r,i,XM(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){AR(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return OR(t)&&(e.shape=zv({},t.shape)),e}}function PR(t,e){return Wv(t,(function(t){var i=t[0];i=hR(i,e.x),i=dR(i,e.x+e.width);var n=t[1];return n=hR(n,e.y),n=dR(n,e.y+e.height),[i,n]}))}function LR(t,e){var i=hR(t.x,e.x),n=dR(t.x+t.width,e.x+e.width),r=hR(t.y,e.y),o=dR(t.y+t.height,e.y+e.height);if(n>=i&&o>=r)return{x:i,y:r,width:n-i,height:o-r}}function RR(t,e,i){var n=zv({rectHover:!0},e),r=n.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Nv(r,i),new wM(n)):bR(t.replace("path://",""),n,i,"center")}function zR(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(NR(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function NR(t,e,i,n,r,o,a,s){var l=i-t,u=n-e,c=a-r,h=s-o,d=FR(c,h,l,u);if(BR(d))return!1;var f=t-r,p=e-o,g=FR(f,p,l,u)/d;if(g<0||g>1)return!1;var m=FR(f,p,c,h)/d;return!(m<0||m>1)}function FR(t,e,i,n){return t*n-i*e}function BR(t){return t<=1e-6&&t>=-1e-6}function VR(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=Jv(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&jv(qv(l),(function(t){My(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=XM(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:n,option:Nv({content:n,formatterParams:s},r)}}function $R(t,e){var i;t.isGroup&&(i=e(t)),i||t.traverse(e)}function jR(t,e){if(t)if(Zv(t))for(var i=0;i<t.length;i++)$R(t[i],e);else $R(t,e)}vR("circle",GP),vR("ellipse",ZP),vR("sector",pL),vR("ring",vL),vR("polygon",xL),vR("polyline",kL),vR("rect",AM),vR("line",IL),vR("bezierCurve",LL),vR("arc",NL);var WR=rC(),HR=xP(),UR=function(){function t(){this.group=new rS,this.uid=BD("viewChart"),this.renderTask=rE({plan:YR,reset:XR}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){0},t.prototype.highlight=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&GR(r,n,"emphasis")},t.prototype.downplay=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&GR(r,n,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.eachRendered=function(t){jR(this.group,t)},t.markUpdateMethod=function(t,e){WR(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function qR(t,e,i){t&&oD(t)&&("emphasis"===e?LT:RT)(t,i)}function GR(t,e,i){var n=nC(t,e),r=e&&null!=e.highlightKey?aD(e.highlightKey):null;null!=n?jv(FS(n),(function(e){qR(t.getItemGraphicEl(e),i,r)})):t.eachItemGraphicEl((function(t){qR(t,i,r)}))}function YR(t){return HR(t.model)}function XR(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&WR(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),ZR[l]}_C(UR,["dispose"]),TC(UR);var ZR={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},KR=UR,JR="\0__throttleOriginMethod",QR="\0__throttleRate",tz="\0__throttleType";function ez(t,e,i){var n,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];n=(new Date).getTime(),o=this,a=t;var f=s||e,p=s||i;s=null,r=n-(p?l:u)-f,clearTimeout(c),p?c=setTimeout(h,f):r>=0?h():c=setTimeout(h,-r),l=n};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function iz(t,e,i,n){var r=t[e];if(r){var o=r[JR]||r,a=r[tz],s=r[QR];if(s!==i||a!==n){if(null==i||!n)return t[e]=o;r=t[e]=ez(o,i,"debounce"===n),r[JR]=o,r[tz]=n,r[QR]=i}return r}}function nz(t,e){var i=t[e];i&&i[JR]&&(i.clear&&i.clear(),t[e]=i[JR])}var rz=rC(),oz={itemStyle:DC(PD,!0),lineStyle:DC(AD,!0)},az={lineStyle:"stroke",itemStyle:"fill"};function sz(t,e){var i=t.visualStyleMapper||oz[e];return i||(console.warn("Unknown style type '"+e+"'."),oz.itemStyle)}function lz(t,e){var i=t.visualDrawType||az[e];return i||(console.warn("Unknown style type '"+e+"'."),"fill")}var uz={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=sz(t,n),a=o(r),s=r.getShallow("decal");s&&(i.setVisual("decal",s),s.dirty=!0);var l=lz(t,n),u=a[l],c=Kv(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,i.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Kv(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||Kv(a.stroke)?d:a.stroke}if(i.setVisual("style",a),i.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=zv({},a);r[l]=c(n),e.setItemVisual(i,"style",r)}}}},cz=new ND,hz={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=sz(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){cz.option=i[n];var a=r(cz),s=t.ensureUniqueItemVisual(e,"style");zv(s,a),cz.option.decal&&(t.setItemVisual(e,"decal",cz.option.decal),cz.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},dz={performRawSeries:!0,overallReset:function(t){var e=xy();t.eachSeries((function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+i,r=e.get(n);r||(r={},e.set(n,r)),rz(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var i=e.getRawData(),n={},r=e.getData(),o=rz(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=lz(e,a);r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),i.each((function(t){var a=n[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=i.getName(t)||t+"",h=i.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},fz=Math.PI;function pz(t,e){e=e||{},Nv(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new rS,n=new AM({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(n);var r,o=new YM({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new AM({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&(r=new NL({shape:{startAngle:-fz/2,endAngle:-fz/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*fz/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*fz/2}).delay(300).start("circularInOut"),i.add(r)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i}var gz=function(){function t(t,e,i,n){this._stageTaskMap=xy(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=r?i.step:null,a=n&&n.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),r=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=xy();t.eachSeries((function(t){var n=t.getProgressive(),r=t.uid;i.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;jv(this._allHandlers,(function(n){var r=t.get(n.uid)||t.set(n.uid,{}),o="";fy(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)}),this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){n=n||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}jv(t,(function(t,s){if(!n.visualType||n.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(n,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,i);var f=o.getPerformArgs(c,n.block);d.each((function(t){t.perform(f)})),c.perform(f)&&(r=!0)}else u&&u.each((function(s,l){a(n,s)&&s.dirty();var u=o.getPerformArgs(s,n.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,i),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)}
vendor: 2,614 bytes, line 34
34,t.prototype._createSeriesStageTask=function(t,e,i,n){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=xy(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||rE({plan:_z,reset:wz,count:Cz}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?i.eachRawSeries(u):s?i.eachRawSeriesByType(s,u):l&&l(i,n).each(u)},t.prototype._createOverallStageTask=function(t,e,i,n){var r=this,o=e.overallTask=e.overallTask||rE({reset:mz});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=xy(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,d="";function f(t){var e=t.uid,i=s.set(e,a&&a.get(e)||(h=!0,rE({reset:vz,onDirty:bz})));i.context={model:t,overallProgress:c},i.agent=o,i.__block=c,r._pipe(t,i)}fy(!t.createOnAllSeries,d),l?i.eachRawSeriesByType(l,f):u?u(i,n).each(f):(c=!1,jv(i.getSeries(),f)),h&&o.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return Kv(t)&&(t={overallReset:t,seriesType:kz(t)}),t.uid=BD("stageHandler"),e&&(t.visualType=e),t},t}();function mz(t){t.overallReset(t.ecModel,t.api,t.payload)}function vz(t){return t.overallProgress&&yz}function yz(){this.agent.dirty(),this.getDownstream().dirty()}function bz(){this.agent&&this.agent.dirty()}function _z(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wz(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=FS(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Wv(e,(function(t,e){return Sz(e)})):xz}var xz=Sz(0);function Sz(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function Cz(t){return t.data.count()}function kz(t){Mz=null;try{t(Tz,Dz)}catch(Mp){}return Mz}var Mz,Tz={},Dz={};function Iz(t,e){for(var i in e.prototype)t[i]=Ty}Iz(Tz,$A),Iz(Dz,HA),Tz.eachSeriesByType=Tz.eachRawSeriesByType=function(t){Mz=t},Tz.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Mz=t.subType)};var Az=gz,Oz=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Ez={color:Oz,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Oz]}
vendor: 15,596 bytes, line 34
34,Pz="#B9B8CE",Lz="#100C2A",Rz=function(){return{axisLine:{lineStyle:{color:Pz}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},zz=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Nz={darkMode:!0,color:zz,backgroundColor:Lz,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Pz}},textStyle:{color:Pz},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Pz}},dataZoom:{borderColor:"#71708A",textStyle:{color:Pz},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Pz}},timeline:{lineStyle:{color:Pz},label:{color:Pz},controlStyle:{color:Pz,borderColor:Pz}},calendar:{itemStyle:{color:Lz},dayLabel:{color:Pz},monthLabel:{color:Pz},yearLabel:{color:Pz}},timeAxis:Rz(),logAxis:Rz(),valueAxis:Rz(),categoryAxis:Rz(),line:{symbol:"circle"},graph:{color:zz},gauge:{title:{color:Pz},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Pz},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Nz.categoryAxis.splitLine.show=!1;var Fz=Nz,Bz=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(Jv(t)){var r=vC(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};jv(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)}))}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,r=i.packedEvent,o=i.model,a=i.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,n,r));function u(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Vz=["symbol","symbolSize","symbolRotate","symbolOffset"],$z=Vz.concat(["symbolKeepAspect"]),jz={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},r={},o=!1,a=0;a<Vz.length;a++){var s=Vz[a],l=t.get(s);Kv(l)?(o=!0,r[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,i.setVisual(zv({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var u=qv(r);return{dataEach:o?c:null}}}function c(e,i){for(var n=t.getRawValue(i),o=t.getDataParams(i),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(i,s,r[s](n,o))}}}},Wz={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var i=t.getData();return{dataEach:i.hasItemOption?n:null}}function n(t,e){for(var i=t.getItemModel(e),n=0;n<$z.length;n++){var r=$z[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}}};function Hz(t,e,i){switch(i){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,i);default:0}}function Uz(t,e){switch(e){case"color":var i=t.getVisual("style");return i[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function qz(t,e){function i(e,i){var n=[];return e.eachComponent({mainType:"series",subType:t,query:i},(function(t){n.push(t.seriesIndex)})),n}jv([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,n,r){e=zv({},e),r.dispatchAction(zv(e,{type:t[1],seriesIndex:i(n,e)}))}))}))}function Gz(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,n=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=nC(l,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:Zv(u)?l.getName(u[0]):l.getName(u),selected:Jv(n)?n:zv({},n)})}}))}function Yz(t,e,i){t.on("selectchanged",(function(t){var n=i.getModel();t.isFromClick?(Gz("map","selectchanged",e,n,t),Gz("pie","selectchanged",e,n,t)):"select"===t.fromAction?(Gz("map","selected",e,n,t),Gz("pie","selected",e,n,t)):"unselect"===t.fromAction&&(Gz("map","unselected",e,n,t),Gz("pie","unselected",e,n,t))}))}function Xz(t,e,i){var n;while(t){if(e(t)&&(n=t,i))break;t=t.__hostTarget||t.parent}return n}var Zz=Math.round(9*Math.random()),Kz="function"===typeof Object.defineProperty,Jz=function(){function t(){this._id="__ec_inner_"+Zz++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return Kz?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),Qz=Jz,tN=fM.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),eN=fM.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),iN=fM.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(i-c,l+s),t.arc(i,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(i+c-h*f,l+s+d*f,i,n-p,i,n),t.bezierCurveTo(i,n-p,i-c+h*f,l+s+d*f,i-c,l+s),t.closePath()}}),nN=fM.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),rN={line:IL,rect:AM,roundRect:AM,square:AM,circle:GP,diamond:eN,pin:iN,arrow:nN,triangle:tN},oN={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},aN={};jv(rN,(function(t,e){aN[e]=new t}));var sN=fM.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=jx(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=aN[n];r||(n="rect",r=aN[n]),oN[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}});function lN(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff",i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function uN(t,e,i,n,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?_R(t.slice(8),new Wb(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?bR(t.slice(7),{},new Wb(e,i,n,r),a?"center":"cover"):new sN({shape:{symbolType:t,x:e,y:i,width:n,height:r}}),s.__isEmptyBrush=l,s.setColor=lN,o&&s.setColor(o),s}function cN(t){return Zv(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function hN(t,e){if(null!=t)return Zv(t)||(t=[t,t]),[mS(t[0],e[0])||0,mS(uy(t[1],t[0]),e[1])||0]}function dN(t){return isFinite(t)}function fN(t,e,i){var n=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(n=n*i.width+i.x,r=r*i.width+i.x,o=o*i.height+i.y,a=a*i.height+i.y),n=dN(n)?n:0,r=dN(r)?r:1,o=dN(o)?o:0,a=dN(a)?a:0;var s=t.createLinearGradient(n,o,r,a);return s}function pN(t,e,i){var n=i.width,r=i.height,o=Math.min(n,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*n+i.x,s=s*r+i.y,l*=o),a=dN(a)?a:.5,s=dN(s)?s:.5,l=l>=0&&dN(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function gN(t,e,i){for(var n="radial"===e.type?pN(t,e,i):fN(t,e,i),r=e.colorStops,o=0;o<r.length;o++)n.addColorStop(r[o].offset,r[o].color);return n}function mN(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}function vN(t){return parseInt(t,10)}function yN(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=document.defaultView.getComputedStyle(t);return(t[r]||vN(s[n])||vN(t.style[n]))-(vN(s[o])||0)-(vN(s[a])||0)|0}function bN(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:ty(t)?[t]:Zv(t)?t:null:null}function _N(t){var e=t.style,i=e.lineDash&&e.lineWidth>0&&bN(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(i){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(i=Wv(i,(function(t){return t/r})),n/=r)}return[i,n]}var wN=new $k(!0);function xN(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function SN(t){return"string"===typeof t&&"none"!==t}function CN(t){var e=t.fill;return null!=e&&"none"!==e}function kN(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function MN(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function TN(t,e,i){var n=LC(e.image,e.__image,i);if(zC(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Dy),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function DN(t,e,i,n){var r,o=xN(i),a=CN(i),s=i.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||wN,h=e.__dirty;if(!n){var d=i.fill,f=i.stroke,p=a&&!!d.colorStops,g=o&&!!f.colorStops,m=a&&!!d.image,v=o&&!!f.image,y=void 0,b=void 0,_=void 0,w=void 0,x=void 0;(p||g)&&(x=e.getBoundingRect()),p&&(y=h?gN(t,d,x):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(b=h?gN(t,f,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(_=h||!e.__canvasFillPattern?TN(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(w=h||!e.__canvasStrokePattern?TN(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=y:m&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:v&&(w?t.strokeStyle=w:o=!1)}var S,C,k=e.getGlobalScale();c.setScale(k[0],k[1],e.segmentIgnoreThreshold),t.setLineDash&&i.lineDash&&(r=_N(e),S=r[0],C=r[1]);var M=!0;(u||h&p_)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,n),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),n||(i.strokeFirst?(o&&MN(t,i),a&&kN(t,i)):(a&&kN(t,i),o&&MN(t,i))),S&&t.setLineDash([])}function IN(t,e,i){var n=e.__image=LC(i.image,e.__image,e,e.onload);if(n&&zC(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var u=i.sx||0,c=i.sy||0;t.drawImage(n,u,c,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){u=i.sx,c=i.sy;var h=a-u,d=s-c;t.drawImage(n,u,c,h,d,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}function AN(t,e,i){var n,r=i.text;if(null!=r&&(r+=""),r){t.font=i.font||fv,t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var o=void 0,a=void 0;t.setLineDash&&i.lineDash&&(n=_N(e),o=n[0],a=n[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),i.strokeFirst?(xN(i)&&t.strokeText(r,i.x,i.y),CN(i)&&t.fillText(r,i.x,i.y)):(CN(i)&&t.fillText(r,i.x,i.y),xN(i)&&t.strokeText(r,i.x,i.y)),o&&t.setLineDash([])}}var ON=["shadowBlur","shadowOffsetX","shadowOffsetY"],EN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function PN(t,e,i,n,r){var o=!1;if(!n&&(i=i||{},e===i))return!1;if(n||e.opacity!==i.opacity){HN(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?QC.opacity:a}(n||e.blend!==i.blend)&&(o||(HN(t,r),o=!0),t.globalCompositeOperation=e.blend||QC.blend);for(var s=0;s<ON.length;s++){var l=ON[s];(n||e[l]!==i[l])&&(o||(HN(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(HN(t,r),o=!0),t.shadowColor=e.shadowColor||QC.shadowColor),o}function LN(t,e,i,n,r){var o=UN(e,r.inHover),a=n?null:i&&UN(i,r.inHover)||{};if(o===a)return!1;var s=PN(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(HN(t,r),s=!0),SN(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(HN(t,r),s=!0),SN(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(HN(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(HN(t,r),s=!0),t.lineWidth=u)}for(var c=0;c<EN.length;c++){var h=EN[c],d=h[0];(n||o[d]!==a[d])&&(s||(HN(t,r),s=!0),t[d]=o[d]||h[1])}return s}function RN(t,e,i,n,r){return PN(t,UN(e,r.inHover),i&&UN(i,r.inHover),n,r)}function zN(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function NN(t,e,i){for(var n=!1,r=0;r<t.length;r++){var o=t[r];n=n||o.isZeroArea(),zN(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}i.allClipped=n}function FN(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var BN=1,VN=2,$N=3,jN=4;function WN(t){var e=CN(t),i=xN(t);return!(t.lineDash||!(+e^+i)||e&&"string"!==typeof t.fill||i&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function HN(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function UN(t,e){return e&&t.__hoverStyle||t.style}function qN(t,e){GN(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function GN(t,e,i,n){var r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=~d_,void(e.__isRendered=!1);var o=e.__clipPaths,a=i.prevElClipPaths,s=!1,l=!1;
34if(a&&!mN(o,a)||(a&&a.length&&(HN(t,i),t.restore(),l=s=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length&&(HN(t,i),t.save(),NN(o,t,i),s=!0),i.prevElClipPaths=o),i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=i.prevEl;u||(l=s=!0);var c=e instanceof fM&&e.autoBatch&&WN(e.style);s||FN(r,u.transform)?(HN(t,i),zN(t,e)):c||HN(t,i);var h=UN(e,i.inHover);e instanceof fM?(i.lastDrawType!==BN&&(l=!0,i.lastDrawType=BN),LN(t,e,u,l,i),c&&(i.batchFill||i.batchStroke)||t.beginPath(),DN(t,e,h,c),c&&(i.batchFill=h.fill||"",i.batchStroke=h.stroke||"")):e instanceof mM?(i.lastDrawType!==$N&&(l=!0,i.lastDrawType=$N),LN(t,e,u,l,i),AN(t,e,h)):e instanceof wM?(i.lastDrawType!==VN&&(l=!0,i.lastDrawType=VN),RN(t,e,u,l,i),IN(t,e,h)):e.getTemporalDisplayables&&(i.lastDrawType!==jN&&(l=!0,i.lastDrawType=jN),YN(t,e,i)),c&&n&&HN(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function YN(t,e,i){var n=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(o=e.getCursor(),a=n.length;o<a;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),GN(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=r.length;u<c;u++){l=r[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),GN(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var XN=new Qz,ZN=new iw(100),KN=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function JN(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&XN["delete"](t);var o=XN.get(t);if(o)return o;var a=Nv(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/i,XN.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[i],s=!0,l=0;l<KN.length;++l){var u=a[KN[l]];if(null!=u&&!Zv(u)&&!Jv(u)&&!ty(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=ZN.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,d=tF(a.dashArrayX),f=eF(a.dashArrayY),p=QN(a.symbol),g=iF(d),m=nF(f),v=!r&&bv.createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},b=_();function _(){for(var t=1,e=0,i=g.length;e<i;++e)t=LS(t,g[e]);var n=1;for(e=0,i=p.length;e<i;++e)n=LS(n,p[e].length);t*=n;var r=m*g.length*p.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}function w(){h&&(h.clearRect(0,0,v.width,v.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0)){var o=-m,s=0,l=0,u=0;while(o<b.height){if(s%2===0){var c=l/2%p.length,g=0,_=0,w=0;while(g<2*b.width){var x=0;for(e=0;e<d[u].length;++e)x+=d[u][e];if(x<=0)break;if(_%2===0){var S=.5*(1-a.symbolSize),C=g+d[u][_]*S,k=o+f[s]*S,M=d[u][_]*a.symbolSize,T=f[s]*a.symbolSize,D=w/2%p[c].length;I(C,k,M,T,p[c][D])}g+=d[u][_],++w,++_,_===d[u].length&&(_=0)}++u,u===d.length&&(u=0)}o+=f[s],++l,++s,s===f.length&&(s=0)}}function I(t,e,o,s,l){var u=r?1:i,c=uN(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var d=n.painter.renderOneToVNode(c);d&&y.children.push(d)}else qN(h,c)}}v&&(v.width=b.width*i,v.height=b.height*i,h=v.getContext("2d")),w(),s&&ZN.put(e,v||y),t.image=v,t.svgElement=y,t.svgWidth=b.width,t.svgHeight=b.height}}function QN(t){if(!t||0===t.length)return[["rect"]];if(Jv(t))return[[t]];for(var e=!0,i=0;i<t.length;++i)if(!Jv(t[i])){e=!1;break}if(e)return QN([t]);var n=[];for(i=0;i<t.length;++i)Jv(t[i])?n.push([t[i]]):n.push(t[i]);return n}function tF(t){if(!t||0===t.length)return[[0,0]];if(ty(t)){var e=Math.ceil(t);return[[e,e]]}for(var i=!0,n=0;n<t.length;++n)if(!ty(t[n])){i=!1;break}if(i)return tF([t]);var r=[];for(n=0;n<t.length;++n)if(ty(t[n])){e=Math.ceil(t[n]);r.push([e,e])}else{e=Wv(t[n],(function(t){return Math.ceil(t)}));e.length%2===1?r.push(e.concat(e)):r.push(e)}return r}function eF(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(ty(t)){var e=Math.ceil(t);return[e,e]}var i=Wv(t,(function(t){return Math.ceil(t)}));return t.length%2?i.concat(i):i}function iF(t){return Wv(t,(function(t){return nF(t)}))}function nF(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2===1?2*e:e}function rF(t,e){t.eachRawSeries((function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each((function(t){var i=n.getItemVisual(t,"decal");if(i){var r=n.ensureUniqueItemVisual(t,"style");r.decal=JN(i,e)}}));var r=n.getVisual("decal");if(r){var o=n.getVisual("style");o.decal=JN(r,e)}}}))}var oF=new Xy,aF=oF,sF={};function lF(t,e){sF[t]=e}function uF(t){return sF[t]}var cF=1,hF=800,dF=900,fF=1e3,pF=2e3,gF=5e3,mF=1e3,vF=1100,yF=2e3,bF=3e3,_F=4e3,wF=4500,xF=4600,SF=5e3,CF=6e3,kF=7e3,MF={PROCESSOR:{FILTER:fF,SERIES_FILTER:hF,STATISTIC:gF},VISUAL:{LAYOUT:mF,PROGRESSIVE_LAYOUT:vF,GLOBAL:yF,CHART:bF,POST_CHART_LAYOUT:xF,COMPONENT:_F,BRUSH:SF,CHART_ITEM:wF,ARIA:CF,DECAL:kF}},TF="__flagInMainProcess",DF="__pendingUpdate",IF="__needsUpdateStatus",AF=/^[a-zA-Z0-9_]+$/,OF="__connectUpdateStatus",EF=0,PF=1,LF=2;function RF(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];if(!this.isDisposed())return NF(this,t,e);sB(this.id)}}function zF(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return NF(this,t,e)}}function NF(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),Xy.prototype[e].apply(t,i)}var FF,BF,VF,$F,jF,WF,HF,UF,qF,GF,YF,XF,ZF,KF,JF,QF,tB,eB,iB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e}(Xy),nB=iB.prototype;nB.on=zF("on"),nB.off=zF("off");var rB=function(t){function e(e,i,n){var r=t.call(this,new Bz)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},Jv(i)&&(i=fB[i]),r._dom=e;var o="canvas",a="auto",s=!1,l=r._zr=cS(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:uy(n.useDirtyRect,s),useCoarsePointer:uy(n.useCoarsePointer,a),pointerSize:n.pointerSize});r._ssr=n.ssr,r._throttledZrFlush=ez(Yv(l.flush,l),17),i=Lv(i),i&&CO(i,!0),r._theme=i,r._locale=JD(n.locale||ZD),r._coordSysMgr=new GA;var u=r._api=JF(r);function c(t,e){return t.__prio-e.__prio}
vendor: 138,743 bytes, line 34
34return h_(dB,c),h_(cB,c),r._scheduler=new Az(r,u,cB,dB),r._messageCenter=new iB,r._initEvents(),r.resize=Yv(r.resize,r),l.animation.on("frame",r._onframe,r),GF(l,r),YF(l,r),my(r),r}return ov(e,t),e.prototype._onframe=function(){if(!this._disposed){eB(this);var t=this._scheduler;if(this[DF]){var e=this[DF].silent;this[TF]=!0;try{FF(this),$F.update.call(this,null,this[DF].updateParams)}catch(Mp){throw this[TF]=!1,this[DF]=null,Mp}this._zr.flush(),this[TF]=!1,this[DF]=null,UF.call(this,e),qF.call(this,e)}else if(t.unfinished){var i=cF,n=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(n),t.performDataProcessorTasks(n),WF(this,n),t.performVisualTasks(n),KF(this,this._model,r,"remain",{}),i-=+new Date-o}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,i){if(!this[TF])if(this._disposed)sB(this.id);else{var n,r,o;if(ey(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[TF]=!0,!this._model||e){var a=new tO(this._api),s=this._theme,l=this._model=new $A;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},hB);var u={seriesTransition:o,optionChanged:!0};if(i)this[DF]={silent:n,updateParams:u},this[TF]=!1,this.getZr().wakeUp();else{try{FF(this),$F.update.call(this,null,u)}catch(Mp){throw this[DF]=null,this[TF]=!1,Mp}this._ssr||this._zr.flush(),this[DF]=null,this[TF]=!1,UF.call(this,n),qF.call(this,n)}}},e.prototype.setTheme=function(){sE("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||cv.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(cv.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return jv(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,i=this._model,n=[],r=this;jv(e,(function(t){i.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return jv(n,(function(t){t.group.ignore=!1})),o}sB(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max,o=1/0;if(mB[i]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();jv(gB,(function(o,h){if(o.group===i){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Lv(t)),f=o.getDom().getBoundingClientRect();a=n(f.left,a),s=n(f.top,s),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}})),a*=h,s*=h,l*=h,u*=h;var d=l-a,f=u-s,p=bv.createCanvas(),g=cS(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var m="";return jv(c,(function(t){var e=t.left-a,i=t.top-s;m+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new AM({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),jv(c,(function(t){var e=new wM({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}sB(this.id)},e.prototype.convertToPixel=function(t,e){return jF(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return jF(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var i,n=this._model,r=aC(n,t);return jv(r,(function(t,n){n.indexOf("Models")>=0&&jv(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}else 0}),this)}),this),!!i}sB(this.id)},e.prototype.getVisual=function(t,e){var i=this._model,n=aC(i,t,{defaultMainType:"series"}),r=n.seriesModel;var o=r.getData(),a=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?o.indexOfRawIndex(n.dataIndex):null;return null!=a?Hz(o,a,e):Uz(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;jv(aB,(function(e){var i=function(i){var n,r=t.getModel(),o=i.target,a="globalout"===e;if(a?n={}:o&&Xz(o,(function(t){var e=XM(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=zv({},e.eventData),!0}),!0),n){var s=n.componentType,l=n.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=n.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=i,n.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},t.trigger(e,n)}};i.zrEventfulCallAtLast=!0,t._zr.on(e,i,t)})),jv(uB,(function(e,i){t._messageCenter.on(i,(function(t){this.trigger(i,t)}),t)})),jv(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Yz(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?sB(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)sB(this.id);else{this._disposed=!0;var t=this.getDom();t&&cC(this.getDom(),yB,"");var e=this,i=e._api,n=e._model;jv(e._componentsViews,(function(t){t.dispose(n,i)})),jv(e._chartsViews,(function(t){t.dispose(n,i)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete gB[e.id]}},e.prototype.resize=function(t){if(!this[TF])if(this._disposed)sB(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[DF]&&(null==n&&(n=this[DF].silent),i=!0,this[DF]=null),this[TF]=!0;try{i&&FF(this),$F.update.call(this,{type:"resize",animation:zv({duration:0},t&&t.animation)})}catch(Mp){throw this[TF]=!1,Mp}this[TF]=!1,UF.call(this,n),qF.call(this,n)}}},e.prototype.showLoading=function(t,e){if(this._disposed)sB(this.id);else if(ey(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),pB[t]){var i=pB[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){this._disposed?sB(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=zv({},t);return e.type=uB[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)sB(this.id);else if(ey(e)||(e={silent:!!e}),lB[t.type]&&this._model)if(this[TF])this._pendingActions.push(t);else{var i=e.silent;HF.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&cv.browser.weChat&&this._throttledZrFlush(),UF.call(this,i),qF.call(this,i)}},e.prototype.updateLabelLayout=function(){aF.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)sB(this.id);else{var e=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(e);0,n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],i=[],n=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();n=n||!!s,("series"===t?i:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),n){var r,o,a=e.concat(i);h_(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),jv(a,(function(e){var i=t.getComponent(e.type,e.idx),n=e.zlevel,a=e.key;null!=r&&(n=Math.max(r,n)),a?(n===r&&a!==o&&n++,o=a):o&&(n===r&&n++,o=""),r=n,i.setZLevel(n)}))}}function i(t){for(var e=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===nT&&t.states.emphasis?e.push("emphasis"):t.hoverState===iT&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){var i=t._zr,n=i.storage,r=0;n.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!cv.node&&!cv.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function r(t,e){var i=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=i)}))}function o(t,e){if(!t.preventAutoZ){var i=t.get("z")||0,n=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,i,n,-1/0),!0}))}}function a(t,e,i,n){var r=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)n=Math.max(a(l[u],e,i,n),n);else t.z=e,t.zlevel=i,n=Math.max(t.z2,n);if(r&&(r.z=e,r.zlevel=i,isFinite(n)&&(r.z2=n+2)),o){var c=t.textGuideLineConfig;o.z=e,o.zlevel=i,isFinite(n)&&(o.z2=n+(c&&c.showAbove?1:-1))}return n}function s(t,e){e.eachRendered((function(t){if(!aR(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function l(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(aR(t))return;if(t instanceof fM&&uD(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var n=t.getTextContent(),o=t.getTextGuideLine();n&&(n.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&i(t)}}))}FF=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),BF(t,!0),BF(t,!1),e.plan()},BF=function(t,e){for(var i=t._model,n=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=vC(t.type),d=e?wP.getClass(h.main,h.sub):KR.getClass(h.sub);0,c=new d,c.init(i,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&n.prepareView(c,t,i,s)}e?i.eachComponent((function(t,e){"series"!==t&&u(e)})):i.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(i,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},VF=function(t,e,i,n,r){var o=t._model;if(o.setUpdatePayload(i),n){var a={};a[n+"Id"]=i[n+"Id"],a[n+"Index"]=i[n+"Index"],a[n+"Name"]=i[n+"Name"];var s={mainType:n,query:a};r&&(s.subType=r);var l,u=i.excludeSeriesId;null!=u&&(l=xy(),jv(FS(u),(function(t){var e=JS(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){var n=l&&null!=l.get(e.id);if(!n)if(lD(i))if(e instanceof bP)i.type!==lT||i.notBlur||e.get(["emphasis","disabled"])||HT(e,i,t._api);else{var r=UT(e.mainType,e.componentIndex,i.name,t._api),o=r.focusSelf,a=r.dispatchers;i.type===lT&&o&&!i.notBlur&&WT(e.mainType,e.componentIndex,t._api),a&&jv(a,(function(t){i.type===lT?LT(t):RT(t)}))}else sD(i)&&e instanceof bP&&(YT(e,i,t._api),XT(e),tB(t))}),t),o&&o.eachComponent(s,(function(e){var i=l&&null!=l.get(e.id);i||c(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else jv([].concat(t._componentsViews).concat(t._chartsViews),c);function c(n){n&&n.__alive&&n[e]&&n[e](n.__model,o,t._api,i)}},$F={prepareAndUpdate:function(t){FF(this),$F.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,i){var n=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(n){n.setUpdatePayload(e),s.restoreData(n,e),s.performSeriesTasks(n),a.create(n,r),s.performDataProcessorTasks(n,e),WF(this,n),a.update(n,r),t(n),s.performVisualTasks(n,e),XF(this,n,r,e,i);var l=n.get("backgroundColor")||"transparent",u=n.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),aF.trigger("afterupdate",n,r)}},updateTransform:function(e){var i=this,n=this._model,r=this._api;if(n){n.setUpdatePayload(e);var o=[];n.eachComponent((function(t,a){if("series"!==t){var s=i.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=xy();n.eachSeries((function(t){var o=i._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,n,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),KF(this,n,r,e,{},a),aF.trigger("afterupdate",n,r)}},updateView:function(e){var i=this._model;i&&(i.setUpdatePayload(e),KR.markUpdateMethod(e,"updateView"),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0}),XF(this,i,this._api,e,{}),aF.trigger("afterupdate",i,this._api))},updateVisual:function(e){var i=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries((function(t){t.getData().clearAllVisual()})),KR.markUpdateMethod(e,"updateVisual"),t(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent((function(t,r){if("series"!==t){var o=i.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,i._api,e)}})),n.eachSeries((function(t){var r=i._chartsMap[t.__viewId];r.updateVisual(t,n,i._api,e)})),aF.trigger("afterupdate",n,this._api))},updateLayout:function(t){$F.update.call(this,t)}},jF=function(t,e,i,n){if(t._disposed)sB(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=aC(o,i),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,n)))return r}0}},WF=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries((function(t){n.updateStreamModes(t,i[t.__viewId])}))},HF=function(t,e){var i=this,n=this.getModel(),r=t.type,o=t.escapeConnect,a=lB[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&vC(l[0]);this[TF]=!0;var h=[t],d=!1;t.batch&&(d=!0,h=Wv(t.batch,(function(e){return e=Nv(zv({},e),t),e.batch=null,e})));var f,p=[],g=sD(t),m=lD(t);if(m&&$T(this._api),jv(h,(function(e){if(f=a.action(e,i._model,i._api),f=f||zv({},e),f.type=s.event||f.type,p.push(f),m){var n=sC(t),r=n.queryOptionMap,o=n.mainTypeSpecified,l=o?r.keys()[0]:"series";VF(i,u,e,l),tB(i)}else g?(VF(i,u,e,"series"),tB(i)):c&&VF(i,u,e,c.main,c.sub)})),"none"!==u&&!m&&!g&&!c)try{this[DF]?(FF(this),$F.update.call(this,t),this[DF]=null):$F[u].call(this,t)}catch(Mp){throw this[TF]=!1,Mp}if(f=d?{type:s.event||r,escapeConnect:o,batch:p}:p[0],this[TF]=!1,!e){var v=this._messageCenter;if(v.trigger(f.type,f),g){var y={type:"selectchanged",escapeConnect:o,selected:ZT(n),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};v.trigger(y.type,y)}}},UF=function(t){var e=this._pendingActions;while(e.length){var i=e.shift();HF.call(this,i,t)}},qF=function(t){!t&&this.trigger("updated")},GF=function(t,e){t.on("rendered",(function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[DF]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},YF=function(t,e){t.on("mouseover",(function(t){var i=t.target,n=Xz(i,oD);n&&(qT(n,t,e._api),tB(e))})).on("mouseout",(function(t){var i=t.target,n=Xz(i,oD);n&&(GT(n,t,e._api),tB(e))})).on("click",(function(t){var i=t.target,n=Xz(i,(function(t){return null!=XM(t).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",o=XM(n);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},XF=function(t,i,n,r,o){e(i),ZF(t,i,n,r,o),jv(t._chartsViews,(function(t){t.__alive=!1})),KF(t,i,n,r,o),jv(t._chartsViews,(function(t){t.__alive||t.remove(i,n)}))},ZF=function(t,e,i,n,r,a){jv(a||t._componentsViews,(function(t){var r=t.__model;s(r,t),t.render(r,e,i,n),o(r,t),l(r,t)}))},KF=function(t,e,i,a,u,c){var h=t._scheduler;u=zv(u||{},{updatedSeries:e.getSeries()}),aF.trigger("series:beforeupdate",e,i,u);var d=!1;e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];i.__alive=!0;var n=i.renderTask;h.updatePayload(n,a),s(e,i),c&&c.get(e.uid)&&n.dirty(),n.perform(h.getPerformArgs(n))&&(d=!0),i.group.silent=!!e.get("silent"),r(e,i),XT(e)})),h.unfinished=d||h.unfinished,aF.trigger("series:layoutlabels",e,i,u),aF.trigger("series:transition",e,i,u),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];o(e,i),l(e,i)})),n(t,e),aF.trigger("series:afterupdate",e,i,u)},tB=function(t){t[IF]=!0,t.getZr().wakeUp()},eB=function(t){t[IF]&&(t.getZr().storage.traverse((function(t){aR(t)||i(t)})),t[IF]=!1)},JF=function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ov(i,e),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){while(e){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},i.prototype.enterEmphasis=function(e,i){LT(e,i),tB(t)},i.prototype.leaveEmphasis=function(e,i){RT(e,i),tB(t)},i.prototype.enterBlur=function(e){zT(e),tB(t)},i.prototype.leaveBlur=function(e){NT(e),tB(t)},i.prototype.enterSelect=function(e){FT(e),tB(t)},i.prototype.leaveSelect=function(e){BT(e),tB(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i}(HA))(t)},QF=function(t){function e(t,e){for(var i=0;i<t.length;i++){var n=t[i];n[OF]=e}}jv(uB,(function(i,n){t._messageCenter.on(n,(function(i){if(mB[t.group]&&t[OF]!==EF){if(i&&i.escapeConnect)return;var n=t.makeActionFromEvent(i),r=[];jv(gB,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,EF),jv(r,(function(t){t[OF]!==PF&&t.dispatchAction(n)})),e(r,LF)}}))}))}}(),e}(Xy),oB=rB.prototype;oB.on=RF("on"),oB.off=RF("off"),oB.one=function(t,e,i){var n=this;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(t,r)}sE("ECharts#one is deprecated."),this.on.call(this,t,r,i)};var aB=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function sB(t){0}var lB={},uB={},cB=[],hB=[],dB=[],fB={},pB={},gB={},mB={},vB=+new Date-0,yB=(new Date,"_echarts_instance_");function bB(t,e,i){var n=!(i&&i.ssr);if(n){0;var r=_B(t);if(r)return r;0}var o=new rB(t,e,i);return o.id="ec_"+vB++,gB[o.id]=o,n&&cC(t,yB,o.id),QF(o),aF.trigger("afterinit",o),o}function _B(t){return gB[hC(t,yB)]}function wB(t,e){fB[t]=e}function xB(t){Fv(hB,t)<0&&hB.push(t)}function SB(t,e){EB(cB,t,e,pF)}function CB(t){MB("afterinit",t)}function kB(t){MB("afterupdate",t)}function MB(t,e){aF.on(t,e)}function TB(t,e,i){Kv(e)&&(i=e,e="");var n=ey(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,uB[e]||(fy(AF.test(n)&&AF.test(e)),lB[n]||(lB[n]={action:i,actionInfo:t}),uB[e]=n)}function DB(t,e){GA.register(t,e)}function IB(t,e){EB(dB,t,e,mF,"layout")}function AB(t,e){EB(dB,t,e,bF,"visual")}var OB=[];function EB(t,e,i,n,r){if((Kv(e)||ey(e))&&(i=e,e=n),!(Fv(OB,i)>=0)){OB.push(i);var o=Az.wrapStageHandler(i,r);o.__prio=e,o.__raw=i,t.push(o)}}function PB(t,e){pB[t]=e}function LB(t,e,i){var n=uF("registerMap");n&&n(t,e,i)}var RB=bE;AB(yF,uz),AB(wF,hz),AB(wF,dz),AB(yF,jz),AB(wF,Wz),AB(kF,rF),xB(CO),SB(dF,kO),PB("default",pz),TB({type:lT,event:lT,update:lT},Ty),TB({type:uT,event:uT,update:uT},Ty),TB({type:cT,event:cT,update:cT},Ty),TB({type:hT,event:hT,update:hT},Ty),TB({type:dT,event:dT,update:dT},Ty),wB("light",Ez),wB("dark",Fz);var zB=[],NB={registerPreprocessor:xB,registerProcessor:SB,registerPostInit:CB,registerPostUpdate:kB,registerUpdateLifecycle:MB,registerAction:TB,registerCoordinateSystem:DB,registerLayout:IB,registerVisual:AB,registerTransform:RB,registerLoading:PB,registerMap:LB,registerImpl:lF,PRIORITY:MF,ComponentModel:eA,ComponentView:wP,SeriesModel:bP,ChartView:KR,registerComponentModel:function(t){eA.registerClass(t)},registerComponentView:function(t){wP.registerClass(t)},registerSeriesModel:function(t){bP.registerClass(t)},registerChartView:function(t){KR.registerClass(t)},registerSubTypeDefaulter:function(t,e){eA.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){hS(t,e)}};function FB(t){Zv(t)?jv(t,(function(t){FB(t)})):Fv(zB,t)>=0||(zB.push(t),Kv(t)&&(t={install:t}),t.install(NB))}function BB(t,e,i){var n=bv.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}var VB=function(t){function e(e,i,n){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||vx,"string"===typeof e?r=BB(e,i,n):ey(e)&&(r=e,e=r.id),o.id=e,o.dom=r;var a=r.style;return a&&(ky(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=i,o.dpr=n,o}return ov(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=BB("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Wb(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Wb(0,0,0,0);e.copy(t),o.push(e)}else{for(var i=!1,n=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new Wb(0,0,0,0);h.copy(c),h.union(t),o[u]=h,i=!0;break}if(s){l.copy(t),l.union(c);var d=t.width*t.height,f=c.width*c.height,p=l.width*l.height,g=p-d-f;g<n&&(n=g,r=u)}}if(s&&(o[r].union(t),i=!0),!i){e=new Wb(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var d=h.shouldBePainted(i,n,!0,!0),f=h.__isRendered&&(h.__dirty&d_||!d)?h.getPrevPaintRect():null;f&&u(f);var p=d&&(h.__dirty&d_||!h.__isRendered)?h.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],d=h.shouldBePainted(i,n,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){f=h.getPrevPaintRect();f&&u(f)}}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,e,i){var n=this.dom,r=this.ctx,o=n.width,a=n.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/u,a/u));var h=this.domBack;function d(t,i,n,o){if(r.clearRect(t,i,n,o),e&&"transparent"!==e){var a=void 0;if(oy(e)){var d=e.global||e.__width===n&&e.__height===o;a=d&&e.__canvasGradient||gN(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a,e.__width=n,e.__height=o}else ay(e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=TN(r,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}}));r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,i,n,o),r.restore())}!i||s?d(0,0,o,a):i.length&&jv(i,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Xy),$B=VB,jB=1e5,WB=314159,HB=.01,UB=.001;function qB(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function GB(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var YB=function(){function t(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=zv({},i||{}),this.dpr=i.devicePixelRatio||vx,this._singleCanvas=r,this.root=t;var o=t.style;o&&(ky(t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(r){var l=t,u=l.width,c=l.height;null!=i.width&&(u=i.width),null!=i.height&&(c=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new $B(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[WB]=h,h.zlevel=WB,a.push(WB),this._domRoot=t}else{this._width=yN(t,0,i),this._height=yN(t,1,i);var d=this._domRoot=GB(this._width,this._height);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var r=0;r<n.length;r++){var o=n[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var n,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(jB)),n||(n=i.ctx,n.save()),GN(n,a,r,o===e-1))}n&&n.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(jB)},t.prototype.paintOne=function(t,e){qN(t,e)},t.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,i),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;w_((function(){s._paintList(t,e,i,n)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(WB).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer((function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)}))},t.prototype._doPaintList=function(t,e,i){for(var n=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,f=o&&l.createRepaintRects(t,e,d._width,d._height),p=i?l.__startIndex:l.__drawIndex,g=!i&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,f);else if(p===l.__startIndex){var y=t[p];y.incremental&&y.notClear&&!i||l.clear(!1,v,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var b=function(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),n._doPaintEl(r,l,o,e,i,s===l.__endIndex-1),g){var a=Date.now()-m;if(a>15)break}}i.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var _=d.dpr,w=0;w<f.length;++w){var x=f[w];h.save(),h.beginPath(),h.rect(x.x*_,x.y*_,x.width*_,x.height*_),h.clip(),b(x),h.restore()}else h.save(),b(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},d=this,f=0;f<r.length;f++)h(f);return cv.wxa&&jv(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,i,n,r,o){var a=e.ctx;if(i){var s=t.getPaintRect();(!n||s&&s.intersect(n))&&(GN(a,t,r,o),t.setPrevPaintRect(s))}else GN(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=WB);var i=this._layers[t];return i||(i=new $B("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?Rv(i,this._layerConfig[t],!0):this._layerConfig[t-HB]&&Rv(i,this._layerConfig[t-HB],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},t.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,r=n.length,o=this._domRoot,a=null,s=-1;if(!i[t]&&qB(e)){if(r>0&&t>n[0]){for(s=0;s<r-1;s++)if(n[s]<t&&n[s+1]>t)break;a=i[n[s]]}if(n.splice(s+1,0,t),i[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var r=i[n],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<t.length;o++){n=t[o];var l=n.zlevel,u=void 0;r!==l&&(r=l,s=0),n.incremental?(u=this.getLayer(l+UB,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?HB:0),this._needsManuallyCompositing),u.__builtin__||Pv("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),n.__dirty&d_&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,jv(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?Rv(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var r=this._zlevelList[n];if(r===t||r===t+HB){var o=this._layers[r];Rv(o,i[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(Fv(i,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,r=this.root;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=yN(r,0,n),e=yN(r,1,n),i.style.display="",this._width!==t||e!==this._height){for(var o in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(WB).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[WB].dom;var e=new $B("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];GN(i,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),XB=YB;function ZB(t){t.registerPainter("canvas",XB)}function KB(t){return null==t?0:t.length||1}function JB(t){return t}var QB=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||JB,this._newKeyGetter=n||JB,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=KB(s);if(l>1){var u=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],u=n[s],c=KB(l),h=KB(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),n[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=KB(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=KB(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),tV=QB,eV=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function iV(t,e){var i={},n=i.encode={},r=xy(),o=[],a=[],s={};jv(t.dimensions,(function(e){var i=t.getDimensionInfo(e),l=i.coordDim;if(l){0;var u=i.coordDimIndex;nV(n,l)[u]=e,i.isExtraCoord||(r.set(l,1),oV(i.type)&&(o[0]=e),nV(s,l)[u]=t.getDimensionIndex(i.name)),i.defaultTooltip&&a.push(e)}oA.each((function(t,e){var r=nV(n,e),o=i.otherDims[e];null!=o&&!1!==o&&(r[o]=i.name)}))}));var l=[],u={};r.each((function(t,e){var i=n[e];u[e]=i[0],l=l.concat(i)})),i.dataDimsOnCoord=l,i.dataDimIndicesOnCoord=Wv(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),i.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(o=c.slice());var h=n.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,i.userOutput=new eV(s,e),i}function nV(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rV(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function oV(t){return!("ordinal"===t||"time"===t)}var aV=function(){function t(t){this.otherDims={},null!=t&&zv(this,t)}return t}(),sV=aV,lV=rC(),uV={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},cV=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=fV(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return uy(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=jO(this.source),i=!pV(t),n="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=uV[l]||"f",u&&(n+=u.uid),n+="$"}var d=this.source,f=[d.seriesLayoutBy,d.startIndex,n].join("$$");return{dimensions:r,hash:f}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function hV(t){return t instanceof cV}function dV(t){for(var e=xy(),i=0;i<(t||[]).length;i++){var n=t[i],r=ey(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function fV(t){var e=lV(t);return e.dimNameMap||(e.dimNameMap=dV(t.dimensionsDefine))}function pV(t){return t>30}var gV,mV,vV,yV,bV,_V,wV,xV=ey,SV=Wv,CV="undefined"===typeof Int32Array?Array:Int32Array,kV="e\0\0",MV=-1,TV=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DV=["_approximateExtent"],IV=function(){function t(t,e){var i;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n=!1;hV(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<i.length;u++){var c=i[u],h=Jv(c)?new sV({name:c}):c instanceof sV?c:new sV(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var f=h.otherDims=h.otherDims||{};o.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(a[d]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),n&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=xy();jv(o,(function(t){p.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);return n?n.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(ty(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,i){var n,r=this;if(t instanceof RE&&(n=t),!n){var o=this.dimensions,a=PO(t)||$v(t)?new WO(t,o.length):t;n=new RE;var s=SV(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));n.initData(a,s,i)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=iV(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;a<r;a++){var s=a-n;this._nameList[a]=e[s],o&&wV(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==cA&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=n.getSource().sourceFormat,s=a===aA;if(s&&!n.pure)for(var l=[],u=t;u<e;u++){var c=n.getItem(u,l);if(!this.hasItemOption&&jS(c)&&(this.hasItemOption=!0),c){var h=c.name;null==r[u]&&null!=h&&(r[u]=JS(h,null));var d=c.id;null==o[u]&&null!=d&&(o[u]=JS(d,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)wV(this,u);gV(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){xV(t)?zv(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=vV(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return mV(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var i=this,n=this._store;return Zv(t)?n.getValues(SV(t,(function(t){return i._getStoreDimIndex(t)})),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t];var n=i[e];return null==n||isNaN(n)?MV:n},t.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},t.prototype.each=function(t,e,i){Kv(t)&&(i=e,e=t,t=[]);var n=i||this,r=SV(yV(t),this._getStoreDimIndex,this);this._store.each(r,n?Yv(e,n):e)},t.prototype.filterSelf=function(t,e,i){Kv(t)&&(i=e,e=t,t=[]);var n=i||this,r=SV(yV(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?Yv(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=qv(t),r=[];return jv(n,(function(n){var o=e._getStoreDimIndex(n);i[o]=t[n],r.push(o)})),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){Kv(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,(function(){n.push(e&&e.apply(this,arguments))}),i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=SV(yV(t),this._getStoreDimIndex,this),a=_V(this);return a._store=this._store.map(o,r?Yv(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this;var o=SV(yV(t),this._getStoreDimIndex,this);this._store.modify(o,r?Yv(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=_V(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.lttbDownSample=function(t,e){var i=_V(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new ND(i,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new tV(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return mV(t,e)}),(function(t){return mV(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},xV(t)?zv(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(r=this.getVisual(e),Zv(r)?r=r.slice():xV(r)&&(r=zv({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,xV(e)?zv(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){xV(t)?zv(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?zv(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;ZM(i,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){jv(this._graphicEls,(function(i,n){i&&t&&t.call(e,i,n)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:SV(this.dimensions,this._getDimInfo,this),this.hostModel)),bV(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];Kv(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(hy(arguments)))})},t.internalField=function(){gV=function(t){var e=t._invertedIndicesMap;jv(e,(function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new CV(o.categories.length);for(var s=0;s<i.length;s++)i[s]=MV;for(s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}}))},vV=function(t,e,i){return JS(t._getCategory(e,i),null)},mV=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=vV(t,t._idDimIdx,e)),null==i&&(i=kV+e),i},yV=function(t){return Zv(t)||(t=null!=t?[t]:[]),t},_V=function(e){var i=new t(e._schema?e._schema:SV(e.dimensions,e._getDimInfo,e),e.hostModel);return bV(i,e),i},bV=function(t,e){jv(TV.concat(e.__wrappedMethods||[]),(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t.__wrappedMethods=e.__wrappedMethods,jv(DV,(function(i){t[i]=Lv(e[i])})),t._calculationInfo=zv({},e._calculationInfo)},wV=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=vV(t,r,e)),null==s&&null!=o&&(n[e]=s=vV(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),n[e]=s}}}(),t}(),AV=IV;function OV(t,e){PO(t)||(t=RO(t)),e=e||{};var i=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],r=xy(),o=[],a=PV(t,i,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pV(a),l=n===t.dimensionsDefine,u=l?fV(t):dV(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=xy(c),d=new TE(a),f=0;f<d.length;f++)d[f]=-1;function p(t){var e=d[t];if(e<0){var i=n[t],r=ey(i)?i:{name:i},a=new sV,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return d[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(f=0;f<a;f++)p(f);h.each((function(t,e){var i=FS(t).slice();if(1===i.length&&!Jv(i[0])&&i[0]<0)h.set(e,!1);else{var n=h.set(e,[]);jv(i,(function(t,i){var r=Jv(t)?u.get(t):t;null!=r&&r<a&&(n[i]=r,m(p(r),e,i))}))}}));var g=0;function m(t,e,i){null!=oA.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,r.set(e,!0))}jv(i,(function(t){var e,i,n,r;if(Jv(t))e=t,r={};else{r=t,e=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=zv({},r),r.ordinalMeta=o,i=r.dimsDef,n=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(s=FS(s),!s.length)for(var u=0;u<(i&&i.length||1);u++){while(g<a&&null!=p(g).coordDim)g++;g<a&&s.push(g++)}jv(s,(function(t,o){var a=p(t);if(l&&null!=r.type&&(a.type=r.type),m(Nv(a,r),e,o),null==a.name&&i){var s=i[o];!ey(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}n&&Nv(a.otherDims,n)}))}}));var v=e.generateCoord,y=e.generateCoordCount,b=null!=y;y=v?y||1:0;var _=v||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(s)jv(o,(function(t){w(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var x=0;x<a;x++){var S=p(x),C=S.coordDim;null==C&&(S.coordDim=LV(_,r,b),S.coordDimIndex=0,(!v||y<=0)&&(S.isExtraCoord=!0),y--),w(S),null!=S.type||wA(t,x)!==pA.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return EV(o),new cV({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function EV(t){for(var e=xy(),i=0;i<t.length;i++){var n=t[i],r=n.name,o=e.get(r)||0;o>0&&(n.name=r+(o-1)),o++,e.set(r,o)}}function PV(t,e,i,n){var r=Math.max(t.dimensionsDetectedCount||1,e.length,i.length,n||0);return jv(e,(function(t){var e;ey(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function LV(t,e,i){if(i||e.hasKey(t)){var n=0;while(e.hasKey(t+n))n++;t+=n}return e.set(t,!0),t}var RV=function(){function t(t){this.coordSysDims=[],this.axisMap=xy(),this.categoryAxisMap=xy(),this.coordSysName=t}return t}();function zV(t){var e=t.get("coordinateSystem"),i=new RV(e),n=NV[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}var NV={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",lC).models[0],o=t.getReferringComponents("yAxis",lC).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),FV(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),FV(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",lC).models[0];e.coordSysDims=["single"],i.set("single",r),FV(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",lC).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),FV(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),FV(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();jv(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),FV(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function FV(t){return"category"===t.get("type")}function BV(t,e,i){i=i||{};var n,r,o,a=i.byIndex,s=i.stackedCoordDimension;VV(e)?n=e:(r=e.schema,n=r.dimensions,o=e.store);var l,u,c,h,d=!(!t||!t.get("stack"));if(jv(n,(function(t,e){Jv(t)&&(n[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,g=0;jv(n,(function(t){t.coordDim===f&&g++}));var m={name:c,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},v={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,p),v.storeDimIndex=o.ensureCalculationDimension(c,p)),r.appendCalculationDimension(m),r.appendCalculationDimension(v)):(n.push(m),n.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function VV(t){return!hV(t.schema)}function $V(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function jV(t,e){return $V(t,e)?t.getCalculationInfo("stackResultDimension"):e}function WV(t,e){var i,n=t.get("coordinateSystem"),r=GA.get(n);return e&&e.coordSysDims&&(i=Wv(e.coordSysDims,(function(t){var i={name:t},n=e.axisMap.get(t);if(n){var r=n.get("type");i.type=rV(r)}return i}))),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function HV(t,e,i){var n,r;return i&&jv(t,(function(t,o){var a=t.coordDim,s=i.categoryAxisMap.get(a);s&&(null==n&&(n=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==n||(t[n].otherDims.itemName=0),n}function UV(t,e,i){i=i||{};var n,r=e.getSourceManager(),o=!1;t?(o=!0,n=RO(t)):(n=r.getSource(),o=n.sourceFormat===aA);var a=zV(e),s=WV(e,a),l=i.useEncodeDefaulter,u=Kv(l)?l:l?Xv(vA,s,e):null,c={coordDimensions:s,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=OV(n,c),d=HV(h.dimensions,i.createInvertedIndices,a),f=o?null:r.getSharedDataStore(h),p=BV(e,{schema:h,store:f}),g=new AV(h,e);g.setCalculationInfo(p);var m=null!=d&&qV(n)?function(t,e,i,n){return n===d?i:this.defaultDimValueGetter(t,e,i,n)}:null;return g.hasItemOption=!1,g.initData(o?n:f,null,m),g}function qV(t){if(t.sourceFormat===aA){var e=GV(t.data||[]);return!Zv($S(e))}}function GV(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var YV=UV,XV=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return ov(e,t),e.prototype.getInitialData=function(t){return YV(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new rS,i=uN("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=uN(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(bP),ZV=XV;function KV(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=tE(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(tE(t,e,i[a]));return o.join(" ")}}function JV(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!Zv(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}var QV=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return ov(e,t),e.prototype._createSymbol=function(t,e,i,n,r){this.removeAll();var o=uN(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),o.drift=t$,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){LT(this.childAt(0))},e.prototype.downplay=function(){RT(this.childAt(0))},e.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},e.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},e.prototype.updateData=function(t,i,n,r){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,i),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):rR(h,d,a,i),cR(h)}if(this._updateCommon(t,i,s,n,r),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,oR(h,d,a,i)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,i,n,r){var o,a,s,l,u,c,h,d,f,p=this.childAt(0),g=t.hostModel;if(n&&(o=n.emphasisItemStyle,a=n.blurItemStyle,s=n.selectItemStyle,l=n.focus,u=n.blurScope,h=n.labelStatesModels,d=n.hoverScale,f=n.cursorStyle,c=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e),v=m.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=pD(m),d=v.getShallow("scale"),f=m.getShallow("cursor")}var y=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var b=hN(t.getItemVisual(e,"symbolOffset"),i);b&&(p.x=b[0],p.y=b[1]),f&&p.attr("cursor",f);var _=t.getItemVisual(e,"style"),w=_.fill;if(p instanceof wM){var x=p.style;p.useStyle(zv({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},_))}else p.__isEmptyBrush?p.useStyle(zv({},_)):p.useStyle(_),p.style.decal=null,p.setColor(w,r&&r.symbolInnerColor),p.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=p.z2,p.z2+=S):null!=C&&(p.z2=C,this._z2=null);var k=r&&r.useNameLabel;function M(e){return k?t.getName(e):KV(t,e)}fD(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:M,inheritColor:w,defaultOpacity:_.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var T=p.ensureState("emphasis");T.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var D=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*D,T.scaleY=this._sizeY*D,this.setSymbolScale(1),QT(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),r=XM(this).dataIndex,o=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var a=n.getTextContent();a&&sR(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();sR(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return cN(t.getItemVisual(e,"symbolSize"))},e}(rS);function t$(t,e){this.parent.drift(t,e)}var e$=QV;function i$(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function n$(t){return null==t||ey(t)||(t={isIgnore:t}),t||{}}function r$(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:pD(e),cursorStyle:e.get("cursor")}}var o$=function(){function t(t){this.group=new rS,this._SymbolCtor=t||e$}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=n$(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=r$(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add((function(n){var r=u(n);if(i$(t,r,n,e)){var a=new o(t,n,s,l);a.setPosition(r),t.setItemGraphicEl(n,a),i.add(a)}})).update((function(c,h){var d=r.getItemGraphicEl(h),f=u(c);if(i$(t,f,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)i.remove(d),d=new o(t,c,s,l),d.setPosition(f);else{d.updateData(t,c,s,l);var m={x:f[0],y:f[1]};a?d.attr(m):rR(d,m,n)}i.add(d),t.setItemGraphicEl(c,d)}else i.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){i.remove(e)}),n)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,i){var n=t._getSymbolPoint(i);e.setPosition(n),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=r$(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=n$(i);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(i$(e,o,r,i)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(n),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){jR(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),i.hostModel)})):e.removeAll()},t}(),a$=o$;function s$(t,e,i){var n=t.getBaseAxis(),r=t.getOtherAxis(n),o=l$(r,i),a=n.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Wv(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,f=e.getCalculationInfo("stackResultDimension");return $V(e,h[0])&&(d=!0,h[0]=f),$V(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function l$(t,e){var i=0,n=t.scale.getExtent();return"start"===e?i=n[0]:"end"===e?i=n[1]:ty(e)&&!isNaN(e)?i=e:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function u$(t,e,i,n){var r=NaN;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}var c$="undefined"!==typeof Float32Array,h$=c$?Float32Array:Array;function d$(t){return Zv(t)?c$?new Float32Array(t):t:new h$(t)}function f$(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}function p$(t,e,i,n,r,o,a,s){for(var l=f$(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=s$(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],w=!0,x=void 0,S=void 0;switch(_.cmd){case"=":x=2*_.idx,S=2*_.idx1;var C=v[x],k=v[x+1],M=y[S],T=y[S+1];(isNaN(C)||isNaN(k))&&(C=M,k=T),u.push(C,k),c.push(M,T),h.push(i[x],i[x+1]),d.push(n[S],n[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var D=_.idx,I=m.dataDimsForPoint,A=r.dataToPoint([e.get(I[0],D),e.get(I[1],D)]);S=2*D,u.push(A[0],A[1]),c.push(y[S],y[S+1]);var O=u$(m,r,e,D);h.push(O[0],O[1]),d.push(n[S],n[S+1]),g.push(e.getRawIndex(D));break;case"-":w=!1}w&&(f.push(_),p.push(p.length))}p.sort((function(t,e){return g[t]-g[e]}));var E=u.length,P=d$(E),L=d$(E),R=d$(E),z=d$(E),N=[];for(b=0;b<p.length;b++){var F=p[b],B=2*b,V=2*F;P[B]=u[V],P[B+1]=u[V+1],L[B]=c[V],L[B+1]=c[V+1],R[B]=h[V],R[B+1]=h[V+1],z[B]=d[V],z[B+1]=d[V+1],N[b]=f[F]}return{current:P,next:L,stackedOnCurrent:R,stackedOnNext:z,status:N}}var g$=Math.min,m$=Math.max;function v$(t,e){return isNaN(t)||isNaN(e)}function y$(t,e,i,n,r,o,a,s,l){for(var u,c,h,d,f,p,g=i,m=0;m<n;m++){var v=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(v$(v,y)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var b=v-u,_=y-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){var w=g+o,x=e[2*w],S=e[2*w+1];while(x===v&&S===y&&m<n)m++,w+=o,g+=o,x=e[2*w],S=e[2*w+1],v=e[2*g],y=e[2*g+1],b=v-u,_=y-c;var C=m+1;if(l)while(v$(x,S)&&C<n)C++,w+=o,x=e[2*w],S=e[2*w+1];var k=.5,M=0,T=0,D=void 0,I=void 0;if(C>=n||v$(x,S))f=v,p=y;else{M=x-u,T=S-c;var A=v-u,O=x-v,E=y-c,P=S-y,L=void 0,R=void 0;if("x"===s){L=Math.abs(A),R=Math.abs(O);var z=M>0?1:-1;f=v-z*L*a,p=y,D=v+z*R*a,I=y}else if("y"===s){L=Math.abs(E),R=Math.abs(P);var N=T>0?1:-1;f=v,p=y-N*L*a,D=v,I=y+N*R*a}else L=Math.sqrt(A*A+E*E),R=Math.sqrt(O*O+P*P),k=R/(R+L),f=v-M*a*(1-k),p=y-T*a*(1-k),D=v+M*a*k,I=y+T*a*k,D=g$(D,m$(x,v)),I=g$(I,m$(S,y)),D=m$(D,g$(x,v)),I=m$(I,g$(S,y)),M=D-v,T=I-y,f=v-M*L/R,p=y-T*L/R,f=g$(f,m$(u,v)),p=g$(p,m$(c,y)),f=m$(f,g$(u,v)),p=m$(p,g$(c,y)),M=v-f,T=y-p,D=v+M*R/L,I=y+T*R/L}t.bezierCurveTo(h,d,f,p,v,y),h=D,d=I}else t.lineTo(v,y)}u=v,c=y,g+=o}return m}var b$=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),_$=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return ov(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new b$},e.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0;r--)if(!v$(i[2*r-2],i[2*r-1]))break;for(;n<r;n++)if(!v$(i[2*n],i[2*n+1]))break}while(n<r)n+=y$(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path,o=r.data,a=$k.CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,d=void 0,f=void 0,p=void 0,g=void 0,m=void 0,v=void 0;switch(c){case a.M:i=o[u++],n=o[u++];break;case a.L:if(h=o[u++],d=o[u++],v=s?(t-i)/(h-i):(t-n)/(d-n),v<=1&&v>=0){var y=s?(d-n)*v+n:(h-i)*v+i;return s?[t,y]:[y,t]}i=h,n=d;break;case a.C:h=o[u++],d=o[u++],f=o[u++],p=o[u++],g=o[u++],m=o[u++];var b=s?N_(i,h,f,g,t,l):N_(n,d,p,m,t,l);if(b>0)for(var _=0;_<b;_++){var w=l[_];if(w<=1&&w>=0){y=s?R_(n,d,p,m,w):R_(i,h,f,g,w);return s?[t,y]:[y,t]}}i=g,n=m;break}}},e}(fM),w$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e}(b$),x$=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return ov(e,t),e.prototype.getDefaultShape=function(){return new w$},e.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!v$(i[2*o-2],i[2*o-1]))break;for(;r<o;r++)if(!v$(i[2*r],i[2*r+1]))break}while(r<o){var s=y$(t,i,r,o,o,1,e.smooth,a,e.connectNulls);y$(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(fM);function S$(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=i.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new AM({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var g=Kv(r)?function(t){r(t,h)}:null;oR(h,{shape:{width:l,height:u,x:a,y:s}},i,null,n,g)}return h}function C$(t,e,i){var n=t.getArea(),r=vS(n.r0,1),o=vS(n.r,1),a=new pL({shape:{cx:vS(t.cx,1),cy:vS(t.cy,1),r0:r,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=n.startAngle:a.shape.r=r,oR(a,{shape:{endAngle:n.endAngle,r:o}},i)}return a}function k$(t,e){return t.type===e}function M$(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function T$(t){for(var e=1/0,i=1/0,n=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),n=Math.max(a,n)),isNaN(s)||(i=Math.min(s,i),r=Math.max(s,r))}return[[e,i],[n,r]]}function D$(t,e){var i=T$(t),n=i[0],r=i[1],o=T$(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function I$(t){return ty(t)?t:t?.5:0}function A$(t,e,i){if(!i.valueDim)return[];for(var n=e.count(),r=d$(2*n),o=0;o<n;o++){var a=u$(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function O$(t,e,i,n){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(n){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),i){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,f=[];l[o]=f[o]=d,l[1-o]=u[1-o],f[1-o]=c[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function E$(t,e){var i,n,r=[],o=t.length;function a(t,e,i){var n=t.coord,r=(i-n)/(e.coord-n),o=yw(r,[t.color,e.color]);return{coord:i,color:o}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)i=l;else{if(u>e){n?r.push(a(n,l,e)):i&&r.push(a(i,l,0),a(i,l,e));break}i&&(r.push(a(i,l,0)),i=null),r.push(l),n=l}}return r}function P$(t,e,i){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=n.length-1;a>=0;a--){var s=t.getDimensionInfo(n[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=n[a];break}}if(o){var l=e.getAxis(r),u=Wv(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=E$(u,"x"===r?i.getWidth():i.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,g=d[0].coord-p,m=d[f-1].coord+p,v=m-g;if(v<.001)return"transparent";jv(d,(function(t){t.offset=(t.coord-g)/v})),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var y=new WL(0,0,0,0,d,!0);return y[r]=g,y[r+"2"]=m,y}}}function L$(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!R$(o,e))){var a=e.mapDimension(o.dim),s={};return jv(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function R$(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*e$.getSymbolSize(e,a)[t.isHorizontal()?1:0]>n)return!1;return!0}function z$(t,e){return isNaN(t)||isNaN(e)}function N$(t){for(var e=t.length/2;e>0;e--)if(!z$(t[2*e-2],t[2*e-1]))break;return e-1}function F$(t,e){return[t[2*e],t[2*e+1]]}function B$(t,e,i){for(var n,r,o=t.length/2,a="x"===i?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(n<=e&&r>=e||n>=e&&r<=e){l=u;break}s=u,n=r}else n=r;return{range:[s,l],t:(e-n)/(r-n)}}function V$(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<rT.length;e++)if(t.get([rT[e],"endLabel","show"]))return!0;return!1}function $$(t,e,i,n){if(k$(e,"cartesian2d")){var r=n.getModel("endLabel"),o=r.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=V$(n)?function(i,n){t._endLabelOnDuring(i,n,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=S$(e,i,n,(function(){var e=t._endLabel;e&&i&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!n.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return C$(e,i,n)}function j$(t,e){var i=e.getBaseAxis(),n=i.isHorizontal(),r=i.inverse,o=n?r?"right":"left":"center",a=n?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var W$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.init=function(){var t=new rS,e=new a$;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,i){var n=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=!e.ssr&&t.isAnimationEnabled(),v=!l.isEmpty(),y=l.get("origin"),b=s$(r,a,y),_=v&&A$(r,a,b),w=t.get("showSymbol"),x=t.get("connectNulls"),S=w&&!c&&L$(t,a,r),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))})),w||d.remove(),o.add(g);var k,M=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(k=r.getArea(),null!=k.width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var T=P$(a,r,i)||a.getVisual("style")[a.getVisual("drawType")];if(f&&h.type===r.type&&M===this._step){v&&!p?p=this._newPolygon(u,_):p&&!v&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,$I(T));var D=g.getClipPath();if(D){var I=$$(this,r,!1,t);oR(D,{shape:I.shape},t)}else g.setClipPath($$(this,r,!0,t));w&&d.updateData(a,{isIgnore:S,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),M$(this._stackedOnPoints,_)&&M$(this._points,u)||(m?this._doUpdateAnimation(a,_,r,i,M,y,x):(M&&(u=O$(u,r,M,x),_&&(_=O$(_,r,M,x))),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:_})))}else w&&d.updateData(a,{isIgnore:S,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,r,k),M&&(u=O$(u,r,M,x),_&&(_=O$(_,r,M,x))),f=this._newPolyline(u),v?p=this._newPolygon(u,_):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,$I(T)),g.setClipPath($$(this,r,!0,t));var A=t.getModel("emphasis"),O=A.get("focus"),E=A.get("blurScope"),P=A.get("disabled");if(f.useStyle(Nv(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),nD(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var L=f.getState("emphasis").style;L.lineWidth=+f.style.lineWidth+1}XM(f).seriesIndex=t.seriesIndex,QT(f,O,E,P);var R=I$(t.get("smooth")),z=t.get("smoothMonotone");if(f.setShape({smooth:R,smoothMonotone:z,connectNulls:x}),p){var N=a.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(Nv(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(F=I$(N.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:z,connectNulls:x}),nD(p,t,"areaStyle"),XM(p).seriesIndex=t.seriesIndex,QT(p,O,E,P)}var B=function(t){n._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=M,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,f),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){XM(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=nC(r,n);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;s=new e$(r,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else KR.prototype.highlight.call(this,t,e,i,n)},e.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=nC(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else KR.prototype.downplay.call(this,t,e,i,n)},e.prototype._changePolyState=function(t){var e=this._polygon;kT(this._polyline,t),e&&kT(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new _$({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new x$({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");Kv(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Kv(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,f=void 0,p=void 0;if(i)if(r){var g=i,m=e.pointToCoord(h);n?(d=g.startAngle,f=g.endAngle,p=-m[1]/180*Math.PI):(d=g.r0,f=g.r,p=m[0])}else{var v=i;n?(d=v.x,f=v.x+v.width,p=t.x):(d=v.y+v.height,f=v.y,p=t.y)}var y=f===d?0:(p-d)/(f-d);a&&(y=1-y);var b=Kv(u)?u(o):l*y+c,_=s.getSymbolPath(),w=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(V$(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new YM({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=N$(a);l>=0&&(fD(o,pD(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,i){return null!=i?JV(r,i):KV(r,t)},enableTextSetter:!0},j$(n,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=i.getLayout("points"),c=i.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?f:0)*(m?-1:1),_=(g?0:-f)*(m?-1:1),w=g?"x":"y",x=B$(u,y,w),S=x.range,C=S[1]-S[0],k=void 0;if(C>=1){if(C>1&&!h){var M=F$(u,S[0]);s.attr({x:M[0]+b,y:M[1]+_}),r&&(k=c.getRawValue(S[0]))}else{M=l.getPointOn(y,w);M&&s.attr({x:M[0]+b,y:M[1]+_});var T=c.getRawValue(S[0]),D=c.getRawValue(S[1]);r&&(k=fC(i,d,T,D,x.t))}n.lastFrameIndex=S[0]}else{var I=1===t||n.lastFrameIndex>0?S[0]:0;M=F$(u,I);r&&(k=c.getRawValue(I)),s.attr({x:M[0]+b,y:M[1]+_})}if(r){var A=CD(s);"function"===typeof A.setLabelText&&A.setLabelText(k)}}},e.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=p$(this._data,t,this._stackedOnPoints,e,this._coordSys,i,this._valueOrigin,o),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(r&&(h=O$(c.current,i,r,a),d=O$(c.stackedOnCurrent,i,r,a),f=O$(c.next,i,r,a),p=O$(c.stackedOnNext,i,r,a)),D$(h,f)>3e3||l&&D$(d,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),rR(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),rR(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++){var b=v[y].cmd;if("="===b){var _=t.getItemGraphicEl(v[y].idx1);_&&m.push({el:_,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var i=m[e].el,n=2*m[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl((function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(KR),H$=W$;function U$(t,e){return{seriesType:t,plan:xP(),reset:function(t){var i=t.getData(),n=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(n){var a=Wv(n.dimensions,(function(t){return i.mapDimension(t)})).slice(0,2),s=a.length,l=i.getCalculationInfo("stackResultDimension");$V(i,a[0])&&(a[0]=l),$V(i,a[1])&&(a[1]=l);var u=i.getStore(),c=i.getDimensionIndex(a[0]),h=i.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var i=t.end-t.start,r=o&&d$(i*s),a=[],l=[],d=t.start,f=0;d<t.end;d++){var p=void 0;if(1===s){var g=u.get(c,d);p=n.dataToPoint(g,null,l)}else a[0]=u.get(c,d),a[1]=u.get(h,d),p=n.dataToPoint(a,null,l);o?(r[f++]=p[0],r[f++]=p[1]):e.setItemLayout(d,p.slice())}o&&e.setLayout("points",r)}}}}}}var q$={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],i++);return 0===i?NaN:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},G$=function(t){return Math.round(t.length/2)};function Y$(t){return{seriesType:t,reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=i.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===r&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/d));var f=void 0;Jv(r)?f=q$[r]:Kv(r)&&(f=r),f&&t.setData(n.downSample(n.mapDimension(l.dim),1/d,f,G$))}}}}}function X$(t){t.registerChartView(H$),t.registerSeriesModel(ZV),t.registerLayout(U$("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Y$("line"))}function Z$(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return K$(i,t,e),i.seriesInvolved&&Q$(i,t),i}function K$(t,e,i){var n=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];jv(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var s=aj(i.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=i;var u=i.model,c=u.getModel("tooltip",n);if(jv(i.getAxes(),Xv(p,!1,null)),i.getTooltipAxes&&n&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),f=i.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&jv(f.baseAxes,Xv(p,!d||"cross",h)),d&&jv(f.otherAxes,Xv(p,"cross",!1))}}function p(n,s,u){var h=u.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||n||oj(h))){null==s&&(s=h.get("triggerTooltip")),h=n?J$(u,c,r,e,n,s):h;var f=h.get("snap"),p=h.get("triggerEmphasis"),g=aj(u.model),m=s||f||"category"===u.type,v=t.axesInfo[g]={key:g,axis:u,coordSys:i,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:p,involveSeries:m,snap:f,useHandle:oj(h),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||m;var y=tj(o,u);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=o[y].mapper,v.linkGroup=b}}}}))}function J$(t,e,i,n,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};jv(s,(function(t){l[t]=Lv(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Nv(u,h.textStyle)}}return t.model.getModel("axisPointer",new ND(l,i,n))}function Q$(t,e){e.eachSeries((function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&jv(t.coordSysAxesInfo[aj(i.model)],(function(t){var n=t.axis;i.getAxis(n.dim)===n&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function tj(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(ej(o[n+"AxisId"],i.id)||ej(o[n+"AxisIndex"],i.componentIndex)||ej(o[n+"AxisName"],i.name))return r}}function ej(t,e){return"all"===t||Zv(t)&&Fv(t,e)>=0||t===e}function ij(t){var e=nj(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=oj(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function nj(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[aj(t)]}function rj(t){var e=nj(t);return e&&e.axisPointerModel}function oj(t){return!!t.get(["handle","show"])}function aj(t){return t.type+"||"+t.id}var sj={},lj=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ov(e,t),e.prototype.render=function(e,i,n,r){this.axisPointerClass&&ij(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},e.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},e.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=rj(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){sj[t]=e},e.getAxisPointerClass=function(t){return t&&sj[t]},e.type="axis",e}(wP),uj=lj,cj=rC(),hj=Lv,dj=Yv,fj=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=Xv(pj,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new rS,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);yj(a,e,!0),this._renderHandle(r)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&n.getBandWidth()>a)return!0;if(o){var s=nj(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},e.prototype.makeElOption=function(t,e,i,n,r){},e.prototype.createPointerEl=function(e,i,n,r){var o=i.pointer;if(o){var a=cj(e).pointerEl=new t[o.type](hj(i.pointer));e.add(a)}},e.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=cj(t).labelEl=new YM(hj(e.label));t.add(r),mj(r,n)}},e.prototype.updatePointerEl=function(t,e,i){var n=cj(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},e.prototype.updateLabelEl=function(t,e,i,n){var r=cj(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),mj(r,n))},e.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),r=this._handle,o=i.getModel("handle"),a=i.get("status");if(!o.get("show")||!a||"hide"===a)return r&&n.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=RR(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){bb(t.event)},onmousedown:dj(this._onHandleDragMove,this,0,0),drift:dj(this._onHandleDragMove,this),ondragend:dj(this._onHandleDragEnd,this)}),n.add(r)),yj(r,i,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Zv(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,iz(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},e.prototype._moveHandleToValue=function(t,e){pj(this._axisPointerModel,!e&&this._moveAnimation,this._handle,vj(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(vj(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(vj(n)),cj(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),nz(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},e}();function pj(t,e,i,n){gj(cj(i).lastProp,n)||(cj(i).lastProp=n,e?rR(i,n,t):(i.stopAnimation(),i.attr(n)))}function gj(t,e){if(ey(t)&&ey(e)){var i=!0;return jv(e,(function(e,n){i=i&&gj(t[n],e)})),!!i}return t===e}function mj(t,e){t[e.get(["label","show"])?"show":"hide"]()}function vj(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function yj(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)}))}var bj=fj,_j=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();TC(_j);var wj=_j,xj=0,Sj=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++xj}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&Wv(n,Cj);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!Jv(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),null==e&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=xy(this.categories))},t}();function Cj(t){return ey(t)&&null!=t.value?t.value:t+""}var kj=Sj;function Mj(t){return"interval"===t.type||"log"===t.type}function Tj(t,e,i,n){var r={},o=t[1]-t[0],a=r.interval=IS(o/e,!0);null!=i&&a<i&&(a=r.interval=i),null!=n&&a>n&&(a=r.interval=n);var s=r.intervalPrecision=Ij(a),l=r.niceTickExtent=[vS(Math.ceil(t[0]/a)*a,s),vS(Math.floor(t[1]/a)*a,s)];return Oj(l,t),r}function Dj(t){var e=Math.pow(10,DS(t)),i=t/e;return i?2===i?i=3:3===i?i=5:i*=2:i=1,vS(i*e)}function Ij(t){return yS(t)+2}function Aj(t,e,i){t[e]=Math.max(Math.min(t[e],i[1]),i[0])}function Oj(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Aj(t,0,e),Aj(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Ej(t,e){return t>=e[0]&&t<=e[1]}function Pj(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Lj(t,e){return t*(e[1]-e[0])+e[0]}var Rj=function(t){function e(e){var i=t.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new kj({})),Zv(n)&&(n=new kj({categories:Wv(n,(function(t){return ey(t)?t.value:t}))})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return ov(e,t),e.prototype.parse=function(t){return null==t?NaN:Jv(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ej(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Pj(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Lj(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,i=e[0];while(i<=e[1])t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[r]=s,n[s]=r}for(var l=0;r<o;++r){while(null!=n[l])l++;i.push(l),n[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(wj);wj.registerClass(Rj);var zj=Rj,Nj=vS,Fj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return ov(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ej(t,this._extent)},e.prototype.normalize=function(t){return Pj(t,this._extent)},e.prototype.scale=function(t){return Lj(t,this._extent)},e.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ij(t)},e.prototype.getTicks=function(t){var e=this._interval,i=this._extent,n=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;i[0]<n[0]&&(t?o.push({value:Nj(n[0]-e,r)}):o.push({value:i[0]}));var s=n[0];while(s<=n[1]){if(o.push({value:s}),s=Nj(s+e,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:n[1];return i[1]>l&&(t?o.push({value:Nj(l+e,r)}):o.push({value:i[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),i=[],n=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=Nj(a.value+(s+1)*c);h>n[0]&&h<n[1]&&l.push(h),s++}i.push(l)}return i},e.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;null==i?i=yS(t.value)||0:"auto"===i&&(i=this._intervalPrecision);var n=Nj(t.value,i,!0);return PI(n)},e.prototype.calcNiceTicks=function(t,e,i){t=t||5;var n=this._extent,r=n[1]-n[0];if(isFinite(r)){r<0&&(r=-r,n.reverse());var o=Tj(n,t,e,i);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var i=Math.abs(e[0]);t.fixMax||(e[1]+=i/2),e[0]-=i/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=Nj(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=Nj(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(wj);wj.registerClass(Fj);var Bj=Fj,Vj="__ec_stack_";function $j(t){return t.get("stack")||Vj+t.seriesIndex}function jj(t){return t.dim+t.index}function Wj(t,e){var i=[];return e.eachSeriesByType(t,(function(t){Yj(t)&&i.push(t)})),i}function Hj(t){var e={};jv(t,(function(t){var i=t.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=t.getData(),o=n.dim+"_"+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),s=r.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);e[o]?e[o].push(c):e[o]=[c]}}));var i={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}i[n]=o}}return i}function Uj(t){var e=Hj(t),i=[];return jv(t,(function(t){var n,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);n=l?u/h*l:u}else{var d=t.getData();n=Math.abs(a[1]-a[0])/d.count()}var f=mS(t.get("barWidth"),n),p=mS(t.get("barMaxWidth"),n),g=mS(t.get("barMinWidth")||(Xj(t)?.5:1),n),m=t.get("barGap"),v=t.get("barCategoryGap");i.push({bandWidth:n,barWidth:f,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:jj(o),stackId:$j(t)})})),qj(i)}function qj(t){var e={};jv(t,(function(t,i){var n=t.axisKey,r=t.bandWidth,o=e[n]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[n]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var i={};return jv(e,(function(t,e){i[e]={};var n=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=qv(n).length;o=Math.max(35-4*a,15)+"%"}var s=mS(o,r),l=mS(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),jv(n,(function(t){var e=t.maxWidth,i=t.minWidth;if(t.width){n=t.width;e&&(n=Math.min(n,e)),i&&(n=Math.max(n,i)),t.width=n,u-=n+l*n,c--}else{var n=h;e&&e<n&&(n=Math.min(e,u)),i&&i>n&&(n=i),n!==h&&(t.width=n,u-=n+l*n,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;jv(n,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;jv(n,(function(t,n){i[e][n]=i[e][n]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+l)}))})),i}function Gj(t,e,i){if(t&&e){var n=t[jj(e)];return null!=n&&null!=i?n[$j(i)]:n}}function Yj(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Xj(t){return t.pipelineContext&&t.pipelineContext.large}var Zj=function(t,e,i,n){while(i<n){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},Kj=function(t){function e(e){var i=t.call(this,e)||this;return i.type="time",i}return ov(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return gI(t.value,lI[pI(dI(this._minLevelUnit))]||lI.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,i){var n=this.getSetting("useUTC"),r=this.getSetting("locale");return mI(t,e,i,r,n)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,i=[];if(!t)return i;i.push({value:e[0],level:0});var n=this.getSetting("useUTC"),r=aW(this._minLevelUnit,this._approxInterval,n,e);return i=i.concat(r),i.push({value:e[1],level:0}),i},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=rI,e[1]+=rI),e[1]===-1/0&&e[0]===1/0){var i=new Date;e[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),e[0]=e[1]-rI}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,i){t=t||10;var n=this._extent,r=n[1]-n[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=i&&this._approxInterval>i&&(this._approxInterval=i);var o=Jj.length,a=Math.min(Zj(Jj,this._approxInterval,0,o),o-1);this._interval=Jj[a][1],this._minLevelUnit=Jj[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return ty(t)?t:+MS(t)},e.prototype.contain=function(t){return Ej(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Pj(this.parse(t),this._extent)},e.prototype.scale=function(t){return Lj(t,this._extent)},e.type="time",e}(Bj),Jj=[["second",eI],["minute",iI],["hour",nI],["quarter-day",6*nI],["half-day",12*nI],["day",1.2*rI],["half-week",3.5*rI],["week",7*rI],["month",31*rI],["quarter",95*rI],["half-year",oI/2],["year",oI]];function Qj(t,e,i,n){var r=MS(e),o=MS(i),a=function(t){return yI(r,t,n)===yI(o,t,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},f=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return f()}}function tW(t,e){return t/=rI,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function eW(t){var e=30*rI;return t/=e,t>6?6:t>3?3:t>2?2:1}function iW(t){return t/=nI,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function nW(t,e){return t/=e?iI:eI,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function rW(t){return IS(t,!0)}function oW(t,e,i){var n=new Date(t);switch(dI(e)){case"year":case"month":n[TI(i)](0);case"day":n[DI(i)](1);case"hour":n[II(i)](0);case"minute":n[AI(i)](0);case"second":n[OI(i)](0),n[EI(i)](0)}return n.getTime()}function aW(t,e,i,n){var r=1e4,o=cI,a=0;function s(t,e,i,r,o,a,s){var l=new Date(e),u=e,c=l[r]();while(u<i&&u<=n[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var a=[],l=!r.length;if(!Qj(dI(t),n[0],n[1],i)){l&&(r=[{value:oW(new Date(n[0]),t,i)},{value:n[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var d=void 0,f=void 0,p=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/rI/365)),f=bI(i),p=MI(i);break;case"half-year":case"quarter":case"month":d=eW(e),f=_I(i),p=TI(i);break;case"week":case"half-week":case"day":d=tW(e,31),f=wI(i),p=DI(i),g=!0;break;case"half-day":case"quarter-day":case"hour":d=iW(e),f=xI(i),p=II(i);break;case"minute":d=nW(e,!0),f=SI(i),p=AI(i);break;case"second":d=nW(e,!1),f=CI(i),p=OI(i);break;case"millisecond":d=rW(e),f=kI(i),p=EI(i);break}s(d,c,h,f,p,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,d=0,f=0;f<o.length&&a++<r;++f){var p=dI(o[f]);if(fI(o[f])){l(o[f],u[u.length-1]||[],c);var g=o[f+1]?dI(o[f+1]):null;if(p!==g){if(c.length){d=h,c.sort((function(t,e){return t.value-e.value}));for(var m=[],v=0;v<c.length;++v){var y=c[v].value;0!==v&&c[v-1].value===y||(m.push(c[v]),y>=n[0]&&y<=n[1]&&h++)}var b=(n[1]-n[0])/e;if(h>1.5*b&&d>b/1.5)break;if(u.push(m),h>b||t===o[f])break}c=[]}}}var _=Uv(Wv(u,(function(t){return Uv(t,(function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],x=_.length-1;for(f=0;f<_.length;++f)for(var S=_[f],C=0;C<S.length;++C)w.push({value:S[C].value,level:x-f});w.sort((function(t,e){return t.value-e.value}));var k=[];for(f=0;f<w.length;++f)0!==f&&w[f].value===w[f-1].value||k.push(w[f]);return k}wj.registerClass(Kj);var sW=Kj,lW=wj.prototype,uW=Bj.prototype,cW=vS,hW=Math.floor,dW=Math.ceil,fW=Math.pow,pW=Math.log,gW=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Bj,e._interval=0,e}return ov(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,i=this._extent,n=e.getExtent(),r=uW.getTicks.call(this,t);return Wv(r,(function(t){var e=t.value,r=vS(fW(this.base,e));return r=e===i[0]&&this._fixMin?vW(r,n[0]):r,r=e===i[1]&&this._fixMax?vW(r,n[1]):r,{value:r}}),this)},e.prototype.setExtent=function(t,e){var i=pW(this.base);t=pW(Math.max(0,t))/i,e=pW(Math.max(0,e))/i,uW.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=lW.getExtent.call(this);e[0]=fW(t,e[0]),e[1]=fW(t,e[1]);var i=this._originalScale,n=i.getExtent();return this._fixMin&&(e[0]=vW(e[0],n[0])),this._fixMax&&(e[1]=vW(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=pW(t[0])/pW(e),t[1]=pW(t[1])/pW(e),lW.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=TS(i),r=t/i*n;r<=.5&&(n*=10);while(!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0)n*=10;var o=[vS(dW(e[0]/n)*n),vS(hW(e[1]/n)*n)];this._interval=n,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){uW.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=pW(t)/pW(this.base),Ej(t,this._extent)},e.prototype.normalize=function(t){return t=pW(t)/pW(this.base),Pj(t,this._extent)},e.prototype.scale=function(t){return t=Lj(t,this._extent),fW(this.base,t)},e.type="log",e}(wj),mW=gW.prototype;function vW(t,e){return cW(t,yS(e))}mW.getMinorTicks=uW.getMinorTicks,mW.getLabel=uW.getLabel,wj.registerClass(gW);var yW=gW,bW=function(){function t(t,e,i){this._prepareParams(t,e,i)}return t.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);Kv(r)?this._modelMinNum=SW(t,r({min:i[0],max:i[1]})):"dataMin"!==r&&(this._modelMinNum=SW(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(Kv(o)?this._modelMaxNum=SW(t,o({min:i[0],max:i[1]})):"dataMax"!==o&&(this._modelMaxNum=SW(t,o)),n)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Zv(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[$x(s[0],1),$x(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,r=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?i:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?n?0:NaN:e-r[0]*o),null==s&&(s=t?n?n-1:NaN:i+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=sy(a)||sy(s)||t&&!n;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[wW[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var i=_W[t];this[i]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),_W={min:"_determinedMin",max:"_determinedMax"},wW={min:"_dataMin",max:"_dataMax"};function xW(t,e,i){var n=t.rawExtentInfo;return n||(n=new bW(t,e,i),t.rawExtentInfo=n,n)}function SW(t,e){return null==e?null:sy(e)?NaN:t.parse(e)}function CW(t,e){var i=t.type,n=xW(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var r=n.min,o=n.max,a=e.ecModel;if(a&&"time"===i){var s=Wj("bar",a),l=!1;if(jv(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Uj(s),c=kW(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function kW(t,e,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],a=Gj(n,i.axis);if(void 0===a)return{min:t,max:e};var s=1/0;jv(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;jv(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,d=c/h-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function MW(t,e){var i=e,n=CW(t,i),r=n.extent,o=i.get("splitNumber");t instanceof yW&&(t.base=i.get("logBase"));var a=t.type,s=i.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?i.get("minInterval"):null,maxInterval:l?i.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function TW(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new zj({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new sW({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(wj.getClass(e)||Bj)}}function DW(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)}function IW(t){var e=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(i,n){return t.scale.getFormattedLabel(i,n,e)}}(e):Jv(e)?function(e){return function(i){var n=t.scale.getLabel(i),r=e.replace("{value}",null!=n?n:"");return r}}(e):Kv(e)?function(e){return function(n,r){return null!=i&&(r=n.value-i),e(AW(t,n),r,null!=n.level?{level:n.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function AW(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function OW(t){var e=t.model,i=t.scale;if(e.get(["axisLabel","show"])&&!i.isBlank()){var n,r,o=i.getExtent();i instanceof zj?r=i.count():(n=i.getTicks(),r=n.length);var a,s=t.getLabelModel(),l=IW(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=n?n[c]:{value:o[0]+c},d=l(h,c),f=s.getTextRect(d),p=EW(f,s.get("rotate")||0);a?a.union(p):a=p}return a}}function EW(t,e){var i=e*Math.PI/180,n=t.width,r=t.height,o=n*Math.abs(Math.cos(i))+Math.abs(r*Math.sin(i)),a=n*Math.abs(Math.sin(i))+Math.abs(r*Math.cos(i)),s=new Wb(t.x,t.y,o,a);return s}function PW(t){var e=t.get("interval");return null==e?"auto":e}function LW(t){return"category"===t.type&&0===PW(t.getLabelModel())}function RW(t,e){var i={};return jv(t.mapDimensionsAll(e),(function(e){i[jV(t,e)]=!0})),qv(i)}function zW(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];if(!n.defaultAttr.ignore){var r=n.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new KL(a,o):null;e.push({label:r,labelLine:n.labelLine,rect:u,localRect:a,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return e}function NW(t,e,i,n,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,i){return t.rect[e]-i.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,d=0;d<a;d++){var f=t[d],p=f.rect;s=p[e]-l,s<0&&(p[e]-=s,f.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=p[e]+p[i]}h>0&&o&&x(-h/a,0,a);var m,v,y=t[0],b=t[a-1];return _(),m<0&&S(-m,.8),v<0&&S(v,.8),_(),w(m,v,1),w(v,m,-1),_(),m<0&&C(-m),v<0&&C(v),u}function _(){m=y.rect[e]-n,v=r-b.rect[e]-b.rect[i]}function w(t,e,i){if(t<0){var n=Math.min(e,-t);if(n>0){x(n*i,0,a);var r=n+t;r<0&&S(-r*i,1)}else S(-t*i,1)}}function x(i,n,r){0!==i&&(u=!0);for(var o=n;o<r;o++){var a=t[o],s=a.rect;s[e]+=i,a.label[e]+=i}}function S(n,r){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[i],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(n)/s,r);if(n>0)for(l=0;l<a-1;l++){var d=o[l]*h;x(d,0,l+1)}else for(l=a-1;l>0;l--){d=o[l-1]*h;x(-d,l,a)}}}function C(t){var e=t<0?-1:1;t=Math.abs(t);for(var i=Math.ceil(t/(a-1)),n=0;n<a-1;n++)if(e>0?x(i,0,n+1):x(-i,a-n-1,a),t-=i,t<=0)return}}function FW(t,e,i,n){return NW(t,"y","height",e,i,n)}function BW(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var i=new Wb(0,0,0,0);function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;i.copy(o.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var h=o.obb,d=!1,f=0;f<e.length;f++){var p=e[f];if(i.intersect(p.rect)){if(a&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new KL(p.localRect,p.transform)),h||(h=new KL(s,l)),h.intersect(p.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}var VW=Math.PI,$W=function(){function t(t,e){this.group=new rS,this.opt=e,this.axisModel=t,Nv(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new rS({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return t.prototype.hasBuilder=function(t){return!!jW[t]},t.prototype.add=function(t){jW[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,i){var n,r,o=SS(e-t);return CS(o)?(r=i>0?"top":"bottom",n="center"):CS(o-VW)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&o<VW?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),jW={axisLine:function(t,e,i,n){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=n.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(jy(s,s,a),jy(l,l,a));var c=zv({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new IL({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});CR(h.shape,h.style.lineWidth),h.anid="line",i.add(h);var d=e.get(["axisLine","symbol"]);if(null!=d){var f=e.get(["axisLine","symbolSize"]);Jv(d)&&(d=[d,d]),(Jv(f)||ty(f))&&(f=[f,f]);var p=hN(e.get(["axisLine","symbolOffset"])||0,f),g=f[0],m=f[1];jv([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,n){if("none"!==d[n]&&null!=d[n]){var r=uN(d[n],-g/2,-m/2,g,m,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}}))}}},axisTickLabel:function(t,e,i,n){var r=XW(i,n,e,t),o=KW(i,n,e,t);if(HW(e,o,r),ZW(i,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=zW(Wv(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));BW(a)}},axisName:function(t,e,i,n){var r=ly(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,GW(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*VW/180),GW(s)?o=$W.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=WW(t.rotation,s,p||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=ly(t.nameTruncateMaxWidth,m.maxWidth,a),b=new YM({x:f[0],y:f[1],rotation:o.rotation,silent:$W.isLabelSilent(e),style:gD(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(VR({el:b,componentModel:e,itemName:r}),b.__fullText=r,b.anid="name",e.get("triggerEvent")){var _=$W.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,XM(b).eventData=_}n.add(b),b.updateTransform(),i.add(b),b.decomposeTransform()}}};function WW(t,e,i,n){var r,o,a=SS(i-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return CS(a-VW/2)?(o=l?"bottom":"top",r="center"):CS(a-1.5*VW)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*VW&&a>VW/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function HW(t,e,i){if(!LW(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],i=i||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=i[0],c=i[1],h=i[i.length-1],d=i[i.length-2];!1===n?(UW(o),UW(u)):qW(o,a)&&(n?(UW(a),UW(c)):(UW(o),UW(u))),!1===r?(UW(s),UW(h)):qW(l,s)&&(r?(UW(l),UW(d)):(UW(s),UW(h)))}}function UW(t){t&&(t.ignore=!0)}function qW(t,e){var i=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(i&&n){var r=kb([]);return Ib(r,r,-t.rotation),i.applyTransform(Tb([],r,t.getLocalTransform())),n.applyTransform(Tb([],r,e.getLocalTransform())),i.intersect(n)}}function GW(t){return"middle"===t||"center"===t}function YW(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=i,e&&(jy(a,a,e),jy(s,s,e));var c=new IL({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});CR(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}function XW(t,e,i,n){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=r.getTicksCoords(),c=YW(u,e.transform,l,Nv(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function ZW(t,e,i,n){var r=i.axis,o=i.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),u=Nv(s.getLineStyle(),Nv(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=YW(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<h.length;d++)t.add(h[d])}}function KW(t,e,i,n){var r=i.axis,o=ly(n.axisLabelShow,i.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=i.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(ly(n.labelRotate,a.get("rotate"))||0)*VW/180,c=$W.innerTextLayout(n.rotation,u,n.labelDirection),h=i.getCategories&&i.getCategories(!0),d=[],f=$W.isLabelSilent(i),p=i.get("triggerEvent");return jv(l,(function(o,l){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,m=o.rawLabel,v=a;if(h&&h[u]){var y=h[u];ey(y)&&y.textStyle&&(v=new ND(y.textStyle,a,i.ecModel))}var b=v.getTextColor()||i.get(["axisLine","lineStyle","color"]),_=r.dataToCoord(u),w=new YM({x:_,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:f,z2:10+(o.level||0),style:gD(v,{text:g,align:v.getShallow("align",!0)||c.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||c.textVerticalAlign,fill:Kv(b)?b("category"===r.type?m:"value"===r.type?u+"":u,l):b})});if(w.anid="label_"+u,p){var x=$W.makeAxisEventDataBase(i);x.targetType="axisLabel",x.value=m,x.tickIndex=l,"category"===r.type&&(x.dataIndex=u),XM(w).eventData=x}e.add(w),w.updateTransform(),d.push(w),t.add(w),w.decomposeTransform()})),d}}var JW=$W;function QW(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle(),e.fill=null):"shadow"===i&&(e=n.getAreaStyle(),e.stroke=null),e}function tH(t,e,i,n,r){var o=i.get("value"),a=iH(o,e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),s=i.getModel("label"),l=RI(s.get("padding")||0),u=s.getFont(),c=Nx(a,u),h=r.position,d=c.width+l[1]+l[3],f=c.height+l[0]+l[2],p=r.align;"right"===p&&(h[0]-=d),"center"===p&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=f),"middle"===g&&(h[1]-=f/2),eH(h,d,f,n);var m=s.get("backgroundColor");m&&"auto"!==m||(m=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:gD(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function eH(t,e,i,n){var r=n.getWidth(),o=n.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+i,o)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function iH(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:AW(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};jv(n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)})),Jv(a)?o=a.replace("{value}",o):Kv(a)&&(o=a(s))}return o}function nH(t,e,i){var n=Cb();return Ib(n,n,i.rotation),Db(n,n,i.position),DR([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function rH(t,e,i,n,r,o){var a=JW.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=r.get(["label","margin"]),tH(e,n,r,o,{position:nH(n.axis,t,i),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function oH(t,e,i){return i=i||0,{x1:t[i],y1:t[1-i],x2:e[i],y2:e[1-i]}}function aH(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}}function sH(t,e,i){i=i||{};var n=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=n.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),ly(i.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function lH(t){return"cartesian2d"===t.get("coordinateSystem")}function uH(t){var e={xAxisModel:null,yAxisModel:null};return jv(e,(function(i,n){var r=n.replace(/Model$/,""),o=t.getReferringComponents(r,lC).models[0];e[n]=o})),e}var cH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o=i.axis,a=o.grid,s=n.get("type"),l=hH(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=QW(n),h=dH[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=sH(a.model,i);rH(e,t,d,i,n,r)},e.prototype.getHandleTransform=function(t,e,i){var n=sH(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=nH(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i,n){var r=i.axis,o=r.grid,a=r.getGlobalExtent(!0),s=hH(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(bj);function hH(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var dH={line:function(t,e,i){var n=oH([e,i[0]],[e,i[1]],fH(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,i){var n=Math.max(1,t.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:aH([e-n/2,i[0]],[n,r],fH(t))}}};function fH(t){return"x"===t.dim?0:1}var pH=cH,gH=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ov(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(eA),mH=gH,vH=rC(),yH=jv;function bH(t,e,i){if(!cv.node){var n=e.getZr();vH(n).records||(vH(n).records={}),_H(n,e);var r=vH(n).records[t]||(vH(n).records[t]={});r.handler=i}}function _H(t,e){function i(i,n){t.on(i,(function(i){var r=CH(e);yH(vH(t).records,(function(t){t&&n(t,i,r.dispatchAction)})),wH(r.pendings,e)}))}vH(t).initialized||(vH(t).initialized=!0,i("click",Xv(SH,"click")),i("mousemove",Xv(SH,"mousemove")),i("globalout",xH))}function wH(t,e){var i,n=t.showTip.length,r=t.hideTip.length;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function xH(t,e,i){t.handler("leave",null,i)}function SH(t,e,i,n){e.handler(t,i,n)}function CH(t){var e={showTip:[],hideTip:[]},i=function(n){var r=e[n.type];r?r.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}function kH(t,e){if(!cv.node){var i=e.getZr(),n=(vH(i).records||{})[t];n&&(vH(i).records[t]=null)}}var MH=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ov(e,t),e.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";bH("axisPointer",i,(function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){kH("axisPointer",e)},e.prototype.dispose=function(t,e){kH("axisPointer",e)},e.type="axisPointer",e}(wP),TH=MH;function DH(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=nC(o,t);if(null==a||a<0||Zv(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,f="x"===h||"radius"===h?1:0,p=o.mapDimension(d),g=[];g[f]=o.get(p,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(o.getValues(Wv(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),n=[m.x+m.width/2,m.y+m.height/2]}return{point:n,el:s}}var IH=rC();function AH(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Yv(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){VH(r)&&(r=DH({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=VH(r),u=o.axesInfo,c=s.axesInfo,h="leave"===n||VH(r),d={},f={},p={list:[],map:{}},g={showPointer:Xv(PH,f),showTooltip:Xv(LH,p)};jv(s.coordSysMap,(function(t,e){var i=l||t.containPoint(r);jv(s.coordSysAxesInfo[e],(function(t,e){var n=t.axis,o=FH(u,t);if(!h&&i&&(!u||o)){var a=o&&o.value;null!=a||l||(a=n.pointToData(r)),null!=a&&OH(t,a,g,!1,d)}}))}));var m={};return jv(c,(function(t,e){var i=t.linkGroup;i&&!f[e]&&jv(i.axesInfo,(function(e,n){var r=f[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,BH(e),BH(t)))),m[t.key]=o}}))})),jv(m,(function(t,e){OH(c[e],t,g,!0,d)})),RH(f,c,d),zH(p,r,t,a),NH(c,a,i),d}}function OH(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=EH(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&zv(r,s[0]),!n&&t.snap&&o.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s),i.showTooltip(t,a,l)}else i.showPointer(t,e)}function EH(t,e){var i=e.axis,n=i.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return jv(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,i);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===i.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=u,o.length=0),jv(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function PH(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function LH(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=aj(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function RH(t,e,i){var n=i.axesInfo=[];jv(e,(function(e,i){var r=e.axisPointerModel.option,o=t[i];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function zH(t,e,i,n){if(!VH(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}function NH(t,e,i){var n=i.getZr(),r="axisPointerLastHighlights",o=IH(n)[r]||{},a=IH(n)[r]={};jv(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&t.triggerEmphasis&&jv(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];jv(o,(function(t,e){!a[e]&&l.push(t)})),jv(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function FH(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function BH(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function VH(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function $H(t){uj.registerAxisPointerClass("CartesianAxisPointer",pH),t.registerComponentModel(mH),t.registerComponentView(TH),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Zv(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Z$(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},AH)}var jH=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ov(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(eA),WH=jH;function HH(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function UH(t){if(cv.domSupported)for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}var qH=UH(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GH=UH(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function YH(t,e){if(!t)return e;e=LI(e,!0);var i=t.indexOf(e);return t=-1===i?e:"-"+t.slice(0,i)+"-"+e,t.toLowerCase()}function XH(t,e){var i=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return i?e?i[e]:i:null}var ZH=YH(GH,"transition"),KH=YH(qH,"transform"),JH="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(cv.transform3dSupported?"will-change:transform;":"");function QH(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function tU(t,e,i){if(!Jv(i)||"inside"===i)return"";var n=t.get("backgroundColor"),r=t.get("borderWidth");e=$I(e);var o,a=QH(i),s=Math.max(1.5*Math.round(r),6),l="",u=KH+":";Fv(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left
34:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+r,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),f=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+a+":-"+f+"px";var p=e+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function eU(t,e){var i="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+i,r="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+i,r+=cv.transformSupported?","+KH+n:",left"+n+",top"+n),ZH+":"+r}function iU(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!cv.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=cv.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+KH+":"+a+";":[["top",0],["left",0],[qH,a]]}function nU(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),jv(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}function rU(t,e,i){var n=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=nP(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return n.push("box-shadow:"+d),e&&r&&n.push(eU(r,i)),o&&n.push("background-color:"+o),jv(["width","color","radius"],(function(e){var i="border-"+e,r=LI(i),o=t.get(r);null!=o&&n.push(i+":"+o+("color"===e?"":"px"))})),n.push(nU(c)),null!=h&&n.push("padding:"+RI(h).join("px ")+"px"),n.join(";")+";"}function oU(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&eb(t,a,document.body,n,r)}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var aU=function(){function t(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,cv.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;oU(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,i=r.painter.getViewportRoot();gb(i,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,i=XH(e,"position"),n=e.style;"absolute"!==n.position&&"absolute"!==i&&(n.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,r=this._styleCoord;i.innerHTML?n.cssText=JH+rU(t,!this._firstShow,this._longHide)+iU(r[0],r[1],!0)+"border-color:"+$I(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null!=t){var a="";if(Jv(r)&&"item"===i.get("trigger")&&!HH(i)&&(a=tU(i,n,r)),Jv(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Zv(t)||(t=[t]);for(var s=0;s<t.length;s++)ry(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var i=this._styleCoord;if(oU(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style,r=iU(i[0],i[1]);jv(r,(function(t){n[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",cv.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Yv
vendor: 51,359 bytes, line 34
34(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),sU=aU,lU=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),hU(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,i,n,r){var o=this;ey(t)&&lE(""),this.el&&this._zr.remove(this.el);var a=i.getModel("textStyle");this.el=new YM({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:nP(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),jv(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=i.get(t)})),jv(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=cU(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;hU(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=uU(r.borderWidth||0),a=cU(r);i.x=t+o+a.left,i.y=e+o+a.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Yv(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function uU(t){return Math.max(0,t)}function cU(t){var e=uU(t.shadowBlur||0),i=uU(t.shadowOffsetX||0),n=uU(t.shadowOffsetY||0);return{left:uU(e-i),right:uU(e+i),top:uU(e-n),bottom:uU(e+n)}}function hU(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dU=lU,fU=new AM({shape:{x:-1,y:-1,width:2,height:2}}),pU=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ov(e,t),e.prototype.init=function(t,e){if(!cv.node&&e.getDom()){var i=t.getComponent("tooltip"),n=this._renderMode=dC(i.get("renderMode"));this._tooltipContent="richText"===n?new dU(e):new sU(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,i){if(!cv.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?iz(this,"_updatePosition",50,"fixRate"):nz(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");bH("itemTooltip",this._api,Yv((function(t,i,n){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(i,n):"leave"===t&&this._hide(n))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,n=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&r.manuallyShowTip(t,e,i,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!cv.node&&i.getDom()){var r=mU(n,i);this._ticket="";var o=n.dataByCoordSys,a=wU(n,e,i);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y){var l=fU;l.x=n.x,l.y=n.y,l.update(),XM(l).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:l},r)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var u=DH(n,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(mU(n,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=gU([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}}},e.prototype._tryShow=function(t,e){var i=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(i){var o,a;this._lastDataByCoordSys=null,Xz(i,(function(t){return null!=XM(t).dataIndex?(o=t,!0):null!=XM(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=Yv(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=gU([e.tooltipOption],n),a=this._renderMode,s=[],l=WE("section",{blocks:[],noHeader:!0}),u=[],c=new rP;jv(t,(function(t){jv(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=iH(r,e.axis,i,t.seriesDataIndices,t.valueLabelOpt),h=WE("section",{header:o,noHeader:!py(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),jv(t.seriesDataIndices,(function(l){var d=i.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=AW(e.axis,{value:r}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",$I(p.color),a);var g=nE(d.formatTooltip(f,!0,null)),m=g.frag;if(m){var v=gU([d],n).get("valueFormatter");h.blocks.push(v?zv({valueFormatter:v},m):m)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),f=XE(l,c,a,d,i.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var p="richText"===a?"\n\n":"<br/>",g=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=XM(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=gU([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),m=new rP;g.marker=m.makeTooltipMarker("item",$I(g.color),h);var v=nE(s.formatTooltip(l,!1,u)),y=f.get("order"),b=f.get("valueFormatter"),_=v.frag,w=_?XE(b?zv({valueFormatter:b},_):_,m,h,y,n.get("useUTC"),f.get("textStyle")):v.text,x="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,w,g,x,t.offsetX,t.offsetY,t.position,t.target,m)})),i({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var n=XM(e),r=n.tooltipConfig,o=r.option||{};if(Jv(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(n.componentMainType,n.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=gU(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",f=new rP;this._showOrMove(c,(function(){var i=Lv(c.get("formatterParams")||{});this._showTooltipContent(c,h,i,d,t.offsetX,t.offsetY,t.position,e,f)})),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor")),f=d.color;if(c)if(Jv(c)){var p=t.ecModel.get("useUTC"),g=Zv(i)?i[0]:i,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,m&&(h=gI(g.axisValue,h,p)),h=BI(h,i,!0)}else if(Kv(c)){var v=Yv((function(e,n){e===this._ticket&&(u.setContent(n,l,t,f,a),this._updatePosition(t,a,r,o,u,i,s))}),this);this._ticket=n,h=c(i,n,v)}else h=c;u.setContent(h,l,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,i,s)}},e.prototype._getNearestPoint=function(t,e,i,n){return"axis"===i||Zv(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:Zv(e)?void 0:{color:n||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Kv(e)&&(e=e([i,n],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),Zv(e))i=mS(e[0],s),n=mS(e[1],l);else if(ey(e)){var f=e;f.width=u[0],f.height=u[1];var p=GI(f,{width:s,height:l});i=p.x,n=p.y,c=null,h=null}else if(Jv(e)&&a){var g=bU(e,d,u,t.get("borderWidth"));i=g[0],n=g[1]}else{g=vU(i,n,r,s,l,c?null:20,h?null:20);i=g[0],n=g[1]}if(c&&(i-=_U(c)?u[0]/2:"right"===c?u[0]:0),h&&(n-=_U(h)?u[1]/2:"bottom"===h?u[1]:0),HH(t)){g=yU(i,n,r,s,l);i=g[0],n=g[1]}r.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&jv(i,(function(i,o){var a=i.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&jv(a,(function(t,i){var o=l[i]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,r&&jv(a,(function(t,e){var i=s[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})),n&&jv(t.seriesDataIndices,(function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!cv.node&&e.getDom()&&(nz(this,"_updatePosition"),this._tooltipContent.dispose(),kH("itemTooltip",e))},e.type="tooltip",e}(wP);function gU(t,e,i){var n,r=e.ecModel;i?(n=new ND(i,r,r),n=new ND(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ND&&(a=a.get("tooltip",!0)),Jv(a)&&(a={formatter:a}),a&&(n=new ND(a,n,r)))}return n}function mU(t,e){return t.dispatchAction||Yv(e.dispatchAction,e)}function vU(t,e,i,n,r,o,a){var s=i.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>n?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}function yU(t,e,i,n,r){var o=i.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function bU(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function _U(t){return"center"===t||"middle"===t}function wU(t,e,i){var n=sC(t).queryOptionMap,r=n.keys()[0];if(r&&"series"!==r){var o=uC(e,r,n.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=i.getViewOfComponentModel(a);return l.group.traverse((function(e){var i=XM(e).tooltipConfig;if(i&&i.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var xU=pU;function SU(t){FB($H),t.registerComponentModel(WH),t.registerComponentView(xU),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ty),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ty)}var CU=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},kU=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.layoutMode={type:"box",ignoreSize:!0},i}return ov(e,t),e.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,i=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),Zv(e)&&jv(e,(function(t,n){Jv(t)&&(t={type:t}),e[n]=Rv(t,CU(i,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i<t.length;i++){var n=t[i].get("name");if(this.isSelected(n)){this.select(n),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],i=[];t.eachRawSeries((function(n){var r,o=n.name;if(i.push(o),n.legendVisualProvider){var a=n.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(n)||(i=i.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&QS(n)&&e.push(n.name)})),this._availableNames=i;var n=this.get("data")||e,r=xy(),o=Wv(n,(function(t){return(Jv(t)||ty(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new ND(t,this,this.ecModel))}),this);this._data=Uv(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;jv(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;jv(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;jv(t,(function(t){var i=t.get("name",!0);e.hasOwnProperty(i)||(e[i]=!0),e[i]=!e[i]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&Fv(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(eA),MU=kU;function TU(t,e){var i=RI(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new AM({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var DU=Xv,IU=jv,AU=rS,OU=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.newlineDisabled=!1,i}return ov(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new AU),this.group.add(this._selectorGroup=new AU),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,i,a,o,s);var l=t.getBoxLayoutParams(),u={width:i.getWidth(),height:i.getHeight()},c=t.get("padding"),h=GI(l,u,c),d=this.layoutInner(t,r,h,n,a,s),f=GI(Nv({width:d.width,height:d.height},l),u,c);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=TU(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,i,n,r,o,a){var s=this.getContentGroup(),l=xy(),u=e.get("selectedMode"),c=[];i.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),IU(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new AU;return h.newline=!0,void s.add(h)}var d=i.getSeriesByName(a)[0];if(!l.get(a)){if(d){var f=d.getData(),p=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),m=f.getVisual("style"),v=this._createItem(d,a,o,r,e,t,p,m,g,u,n);v.on("click",DU(LU,a,null,n,c)).on("mouseover",DU(zU,d.name,null,n,c)).on("mouseout",DU(NU,d.name,null,n,c)),l.set(a,!0)}else i.eachRawSeries((function(i){if(!l.get(a)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),f=s.getItemVisual(h,"legendIcon"),p=gw(d.fill);p&&0===p[3]&&(p[3]=.2,d=zv(zv({},d),{fill:bw(p,"rgba")}));var g=this._createItem(i,a,o,r,e,t,{},d,f,u,n);g.on("click",DU(LU,null,a,n,c)).on("mouseover",DU(zU,null,a,n,c)).on("mouseout",DU(NU,null,a,n,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,n,o,a)},e.prototype._createSelector=function(t,e,i,n,r){var o=this.getSelectorGroup();IU(t,(function(t){var n=t.type,r=new YM({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);fD(r,{normal:a,emphasis:s},{defaultText:t.title}),KT(r)}))},e.prototype._createItem=function(t,e,i,n,r,o,a,s,l,u,c){var h=t.visualDrawType,d=r.get("itemWidth"),f=r.get("itemHeight"),p=r.isSelected(e),g=n.get("symbolRotate"),m=n.get("symbolKeepAspect"),v=n.get("icon");l=v||l||"roundRect";var y=EU(l,n,a,s,h,p,c),b=new AU,_=n.getModel("textStyle");if(!Kv(t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;b.add(PU({itemWidth:d,itemHeight:f,icon:l,iconRotate:w,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:f,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var x="left"===o?d+5:-5,S=o,C=r.get("formatter"),k=e;Jv(C)&&C?k=C.replace("{name}",null!=e?e:""):Kv(C)&&(k=C(e));var M=p?_.getTextColor():n.get("inactiveColor");b.add(new YM({style:gD(_,{text:k,x:x,y:f/2,fill:M,align:S,verticalAlign:"middle"},{inheritColor:M})}));var T=new AM({shape:b.getBoundingRect(),invisible:!0}),D=n.getModel("tooltip");return D.get("show")&&VR({el:T,componentModel:r,itemName:e,itemTooltipOption:D.option}),b.add(T),b.eachChild((function(t){t.silent=!0})),T.silent=!u,this.getContentGroup().add(b),KT(b),b.__legendDataIndex=i,b},e.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();qI(t.get("orient"),a,t.get("itemGap"),i.width,i.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){qI("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(wP);function EU(t,e,i,n,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),IU(t,(function(i,n){"inherit"===t[n]&&(t[n]=e[n])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?JN(h,a):n.decal,"inherit"===u.fill&&(u.fill=n[r]),"inherit"===u.stroke&&(u.stroke=n[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?n:i).opacity),s(u,n);var d=e.getModel("lineStyle"),f=d.getLineStyle();if(s(f,i),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===f.stroke&&(f.stroke=n.fill),!o){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function PU(t){var e=t.icon||"roundRect",i=uN(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return i.setStyle(t.itemStyle),i.rotation=(t.iconRotate||0)*Math.PI/180,i.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function LU(t,e,i,n){NU(t,e,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),zU(t,e,i,n)}function RU(t){var e,i=t.getZr().storage.getDisplayList(),n=0,r=i.length;while(n<r&&!(e=i[n].states.emphasis))n++;return e&&e.hoverLayer}function zU(t,e,i,n){RU(i)||i.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function NU(t,e,i,n){RU(i)||i.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}var FU=OU;function BU(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0}))}function VU(t,e,i){var n,r={},o="toggleSelected"===t;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?i[t]():(i[t](e.name),n=i.isSelected(e.name));var a=i.getData();jv(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&n:r[e]=n}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function $U(t){t.registerAction("legendToggleSelect","legendselectchanged",Xv(VU,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Xv(VU,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Xv(VU,"inverseSelect")),t.registerAction("legendSelect","legendselected",Xv(VU,"select")),t.registerAction("legendUnSelect","legendunselected",Xv(VU,"unSelect"))}function jU(t){t.registerComponentModel(MU),t.registerComponentView(FU),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,BU),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),$U(t)}var WU=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ov(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,i,n){var r=ZI(e);t.prototype.init.call(this,e,i,n),HU(this,e,r)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.call(this,e,i),HU(this,this.option,e)},e.type="legend.scroll",e.defaultOption=jD(MU.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(MU);function HU(t,e,i){var n=t.getOrient(),r=[1,1];r[n.index]=0,XI(e,i,{type:"box",ignoreSize:!!r})}var UU=WU,qU=rS,GU=["width","height"],YU=["x","y"],XU=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.newlineDisabled=!0,i._currentIndex=0,i}return ov(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new qU),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new qU)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,i,n,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,i,n,r,o,a,s);var u=this._controllerGroup,c=i.get("pageIconSize",!0),h=Zv(c)?c:[c,c];f("pagePrev",0);var d=i.getModel("pageTextStyle");function f(t,e){var n=t+"DataIndex",o=RR(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:Yv(l._pageGo,l,n,i,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new YM({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},e.prototype.layoutInner=function(t,e,i,n,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=GU[s],u=YU[s],c=GU[1-s],h=YU[1-s];r&&qI("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),p=[-f.x,-f.y],g=Lv(i);r&&(g[l]=i[l]-f[l]-d);var m=this._layoutContentAndController(t,n,g,s,l,c,h,u);if(r){if("end"===o)p[s]+=m[l]+d;else{var v=f[l]+d;p[s]-=v,m[u]-=v}m[l]+=f[l]+d,p[1-s]+=m[h]+m[c]/2-f[c]/2,m[c]=Math.max(m[c],f[c]),m[h]=Math.min(m[h],f[h]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,i,n,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;qI(t.get("orient"),l,t.get("itemGap"),n?i.width:null,n?null:i.height),qI("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),f=this._showController=h[r]>i[r],p=[-h.x,-h.y];e||(p[n]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=uy(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){var y=t.get("pageButtonPosition",!0);"end"===y?m[n]+=i[r]-d[r]:g[n]+=d[r]+v}m[1-n]+=h[o]/2-d[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(m);var b={x:0,y:0};if(b[r]=f?i[r]:h[r],b[o]=Math.max(h[o],d[o]),b[a]=Math.min(0,d[a]+m[1-n]),u.__rectSize=i[r],f){var _={x:0,y:0};_[r]=Math.max(i[r]-d[r]-v,0),_[o]=b[o],u.setClipPath(new AM({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&rR(l,{x:w.contentPosition[0],y:w.contentPosition[1]},f?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var i=this._controllerGroup;jv(["pagePrev","pageNext"],(function(n){var r=n+"DataIndex",o=null!=e[r],a=i.childOfName(n);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var n=i.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;n&&r&&n.setStyle("text",Jv(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,r=t.getOrient().index,o=GU[r],a=YU[r],s=this._findTargetItemIndex(e),l=i.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=c;++p)v=y(l[p]),(!v&&m.e>g.s+n||v&&!b(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)v=y(l[p]),v&&b(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(t){if(t){var e=t.getBoundingRect(),i=e[a]+t[a];return{s:i,e:i+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,i,n=this.getContentGroup();return n.eachChild((function(n,r){var o=n.__legendDataIndex;null==i&&null!=o&&(i=r),o===t&&(e=r)})),null!=e?e:i},e.type="legend.scroll",e}(FU),ZU=XU;function KU(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))}))}function JU(t){FB(jU),t.registerComponentModel(UU),t.registerComponentView(ZU),KU(t)}function QU(t){FB(jU),FB(JU)}var tq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(eA),eq=tq,iq=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),nq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",lC).models[0]},e.type="cartesian2dAxis",e}(eA);Vv(nq,iq);var rq={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},oq=Rv({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rq),aq=Rv({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},rq),sq=Rv({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},aq),lq=Nv({logBase:10},aq),uq={category:oq,value:aq,time:sq,log:lq},cq={value:1,category:1,time:1,log:1};function hq(t,e,i,n){jv(cq,(function(r,o){var a=Rv(Rv({},uq[o],!0),n,!0),s=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e+"Axis."+o,i}return ov(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var i=YI(this),n=i?ZI(t):{},r=e.getTheme();Rv(t,r.get(o+"Axis")),Rv(t,this.getDefaultOption()),t.type=dq(t),i&&XI(t,n,i)},i.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=kj.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=e+"Axis."+o,i.defaultOption=a,i}(i);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",dq)}function dq(t){return t.type||(t.data?"category":"value")}var fq=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return Wv(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Uv(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),pq=fq,gq=["x","y"];function mq(t){return"interval"===t.type||"time"===t.type}var vq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=gq,e}return ov(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(mq(t)&&mq(e)){var i=t.getExtent(),n=e.getExtent(),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-i[0]*l,h=r[1]-n[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Ob([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var i=this.dataToPoint(t),n=this.dataToPoint(e),r=this.getArea(),o=new Wb(i[0],i[1],n[0]-i[0],n[1]-i[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return jy(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},e.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var i=[];if(this._invTransform)return jy(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-i,o=Math.max(e[0],e[1])-n;return new Wb(i,n,r,o)},e}(pq),yq=vq,bq=rC();function _q(t){return"category"===t.type?xq(t):kq(t)}function wq(t,e){return"category"===t.type?Cq(t,e):{ticks:Wv(t.scale.getTicks(),(function(t){return t.value}))}}function xq(t){var e=t.getLabelModel(),i=Sq(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function Sq(t,e){var i,n,r=Mq(t,"labels"),o=PW(e),a=Tq(r,o);return a||(Kv(o)?i=Pq(t,o):(n="auto"===o?Iq(t):o,i=Eq(t,n)),Dq(r,o,{labels:i,labelCategoryInterval:n}))}function Cq(t,e){var i,n,r=Mq(t,"ticks"),o=PW(e),a=Tq(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(i=[]),Kv(o))i=Pq(t,o,!0);else if("auto"===o){var s=Sq(t,t.getLabelModel());n=s.labelCategoryInterval,i=Wv(s.labels,(function(t){return t.tickValue}))}else n=o,i=Eq(t,n,!0);return Dq(r,o,{ticks:i,tickCategoryInterval:n})}function kq(t){var e=t.scale.getTicks(),i=IW(t);return{labels:Wv(e,(function(e,n){return{level:e.level,formattedLabel:i(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function Mq(t,e){return bq(t)[e]||(bq(t)[e]=[])}function Tq(t,e){for(var i=0;i<t.length;i++)if(t[i].key===e)return t[i].value}function Dq(t,e,i){return t.push({key:e,value:i}),i}function Iq(t){var e=bq(t).autoInterval;return null!=e?e:bq(t).autoInterval=t.calculateCategoryInterval()}function Aq(t){var e=Oq(t),i=IW(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),d=0,f=0;l<=o[1];l+=s){var p=0,g=0,m=Nx(i({value:l}),e.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var v=d/c,y=f/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),_=bq(t.model),w=t.getExtent(),x=_.lastAutoInterval,S=_.lastTickCount;return null!=x&&null!=S&&Math.abs(x-b)<=1&&Math.abs(S-a)<=1&&x>b&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?b=x:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=w[0],_.axisExtent1=w[1]),b}function Oq(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Eq(t,e,i){var n=IW(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=LW(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(i?t:{formattedLabel:n(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&p-l!==o[1]&&g(o[1]),s}function Pq(t,e,i){var n=t.scale,r=IW(t),o=[];return jv(n.getTicks(),(function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&o.push(i?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var Lq=[0,1],Rq=function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return _S(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&(i=i.slice(),zq(i,n.count())),gS(t,Lq,i,e)},t.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),zq(i,n.count()));var r=gS(t,i,Lq,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=wq(this,e),n=i.ticks,r=Wv(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return Nq(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=Wv(i,(function(t){return Wv(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return n},t.prototype.getViewLabels=function(){return _q(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},t.prototype.calculateCategoryInterval=function(){return Aq(this)},t}();function zq(t,e){var i=t[1]-t[0],n=e,r=i/n/2;t[0]+=r,t[1]-=r}function Nq(t,e,i,n){var r=e.length;if(t.onBand&&!i&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;jv(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(n?e[0].coord=s[0]:e.shift()),n&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],o.coord)&&(n?o.coord=s[1]:e.pop()),n&&d(o.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=vS(t),e=vS(e),h?t>e:t<e}}var Fq=Rq,Bq=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return ov(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Fq),Vq=Bq,$q=Math.log;function jq(t,e,i){var n=Bj.prototype,r=n.getTicks.call(i),o=n.getTicks.call(i,!0),a=r.length-1,s=n.getInterval.call(i),l=CW(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=$q(t.base);u=[$q(u[0])/d,$q(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var f=n.getExtent.call(t);c&&(u[0]=f[0]),h&&(u[1]=f[1]);var p=n.getInterval.call(t),g=u[0],m=u[1];if(c&&h)p=(m-g)/a;else if(c){m=u[0]+p*a;while(m<u[1]&&isFinite(m)&&isFinite(u[1]))p=Dj(p),m=u[0]+p*a}else if(h){g=u[1]-p*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))p=Dj(p),g=u[1]-p*a}else{var v=t.getTicks().length-1;v>a&&(p=Dj(p));var y=p*a;m=Math.ceil(u[1]/p)*p,g=vS(m-y),g<0&&u[0]>=0?(g=0,m=vS(y)):m>0&&u[1]<=0&&(m=0,g=-vS(y))}var b=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;n.setExtent.call(t,g+p*b,m+p*_),n.setInterval.call(t,p),(b||_)&&n.setNiceExtent.call(t,g+p,m-p)}var Wq=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=gq,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;function n(t){var e,i=qv(t),n=i.length;if(n){for(var r=[],o=n-1;o>=0;o--){var a=+i[o],s=t[a],l=s.model,u=s.scale;Mj(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(MW(u,l),Mj(u)&&(e=s))}r.length&&(e||(e=r.pop(),MW(e.scale,e.model)),jv(r,(function(t){jq(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),n(i.x),n(i.y);var r={};jv(i.x,(function(t){Uq(i,"y",t,r)})),jv(i.y,(function(t){Uq(i,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),r=!i&&t.get("containLabel"),o=GI(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){jv(a,(function(t){var e=t.isHorizontal(),i=e?[0,o.width]:[0,o.height],n=t.inverse?1:0;t.setExtent(i[n],i[1-n]),Gq(t,e?o.x:o.y)}))}s(),r&&(jv(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=OW(t);if(e){var i=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);o[i]-=e[i]+n,"top"===t.position?o.y+=e.height+n:"left"===t.position&&(o.x+=e.width+n)}}})),s()),jv(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i)return i[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}ey(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",lC).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",lC).models[0],a=t.gridModel,s=this._coordsList;if(n)e=n.coordinateSystem,Fv(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)i=this.getAxis("x",r.componentIndex);else if(o)i=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,i){var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(i,n){if(Hq(i,t)){var l=i.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new Vq(e,TW(i),[0,0],i.get("type"),l),c="category"===u.type;u.onBand=c&&i.get("boundaryGap"),u.inverse=i.get("inverse"),i.axis=u,u.model=i,u.grid=r,u.index=n,r._axesList.push(u),a[e][n]=u,s[e]++}}}this._axesMap=a,jv(a.x,(function(e,i){jv(a.y,(function(r,o){var a="x"+i+"y"+o,s=new yq(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function i(t,e){jv(RW(t,e.dim),(function(i){e.scale.unionExtentFromData(t,i)}))}jv(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(lH(t)){var n=uH(t),r=n.xAxisModel,o=n.yAxisModel;if(!Hq(r,e)||!Hq(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");i(s,l),i(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return jv(this.getCartesians(),(function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);Fv(e,r)<0&&e.push(r),Fv(i,o)<0&&i.push(o)})),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a)})),e.eachSeries((function(t){if(lH(t)){var e=uH(t),i=e.xAxisModel,n=e.yAxisModel,r=i.getCoordSysModel();0;var o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(i.componentIndex,n.componentIndex)}})),n},t.dimensions=gq,t}();function Hq(t,e){return t.getCoordSysModel()===e}function Uq(t,e,i,n){i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=i.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)qq(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&qq(o[u])&&!n[c(o[u])]){r=o[u];break}r&&(n[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function qq(t){return t&&"category"!==t.type&&"time"!==t.type&&DW(t)}function Gq(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}var Yq=Wq,Xq=rC();function Zq(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=Xq(t).splitAreaColors,d=xy(),f=0;if(h)for(var p=0;p<u.length;p++){var g=h.get(u[p].tickValue);if(null!=g){f=(g+(c-1)*p)%c;break}}var m=r.toGlobalCoord(u[0].coord),v=a.getAreaStyle();s=Zv(s)?s:[s];for(p=1;p<u.length;p++){var y=r.toGlobalCoord(u[p].coord),b=void 0,_=void 0,w=void 0,x=void 0;r.isHorizontal()?(b=m,_=l.y,w=y-b,x=l.height,m=b+w):(b=l.x,_=m,w=l.width,x=y-_,m=_+x);var S=u[p-1].tickValue;null!=S&&d.set(S,f),e.add(new AM({anid:null!=S?"area_"+S:null,shape:{x:b,y:_,width:w,height:x},style:Nv({fill:s[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%c}Xq(t).splitAreaColors=d}}}function Kq(t){Xq(t).splitAreaColors=null}var Jq=["axisLine","axisTickLabel","axisName"],Qq=["splitArea","splitLine","minorSplitLine"],tG=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="CartesianAxisPointer",i}return ov(e,t),e.prototype.render=function(e,i,n,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new rS,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=sH(a,e),l=new JW(e,zv({handleAutoShown:function(t){for(var i=a.coordinateSystem.getCartesians(),n=0;n<i.length;n++)if(Mj(i[n].getOtherAxis(e.axis).scale))return!0;return!1}},s));jv(Jq,l.add,l),this._axisGroup.add(l.getGroup()),jv(Qq,(function(t){e.get([t,"show"])&&eG[t](this,this._axisGroup,e,a)}),this);var u=r&&"changeAxisOrder"===r.type&&r.isInitSort;u||ER(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r)}},e.prototype.remove=function(){Kq(this)},e.type="cartesianAxis",e}(uj),eG={splitLine:function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Zv(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),d=[],f=[],p=a.getLineStyle(),g=0;g<h.length;g++){var m=r.toGlobalCoord(h[g].coord);u?(d[0]=m,d[1]=l.y,f[0]=m,f[1]=l.y+l.height):(d[0]=l.x,d[1]=m,f[0]=l.x+l.width,f[1]=m);var v=c++%s.length,y=h[g].tickValue,b=new IL({anid:null!=y?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:Nv({stroke:s[v]},p),silent:!0});CR(b.shape,p.lineWidth),e.add(b)}}}
34,minorSplitLine:function(t,e,i,n){var r=i.axis,o=i.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=r.isHorizontal(),u=r.getMinorTicksCoords();if(u.length)for(var c=[],h=[],d=a.getLineStyle(),f=0;f<u.length;f++)for(var p=0;p<u[f].length;p++){var g=r.toGlobalCoord(u[f][p].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var m=new IL({anid:"minor_line_"+u[f][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:d,silent:!0});CR(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,i,n){Zq(t,e,i,n)}},iG=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ov(e,t),e.type="xAxis",e}(tG),nG=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=iG.type,e}return ov(e,t),e.type="yAxis",e}(tG),rG=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return ov(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new AM({shape:t.coordinateSystem.getRect(),style:Nv({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(wP),oG={offset:0};function aG(t){t.registerComponentView(rG),t.registerComponentModel(eq),t.registerCoordinateSystem("cartesian2d",Yq),hq(t,"x",nq,oG),hq(t,"y",nq,oG),t.registerComponentView(iG),t.registerComponentView(nG),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function sG(t){FB(aG),FB($H)}var lG=o;o.util.warn;var uG=null;function cG(t){return uG||(uG=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),uG(t)}var hG=null;function dG(t){hG||(hG=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),hG(t)}function fG(t){var e=document.createElement("style");return e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(e),e}function pG(t,e){void 0===e&&(e={});var i=document.createElement(t);return Object.keys(e).forEach((function(t){i[t]=e[t]})),i}function gG(t,e,i){var n=window.getComputedStyle(t,i||null)||{display:"none"};return n[e]}function mG(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};var e=t;while(e!==document){if("none"===gG(e,"display"))return{detached:!1,rendered:!1};e=e.parentNode}return{detached:!1,rendered:!0}}var vG='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',yG=0,bG=null;function _G(t,e){t.__resize_mutation_handler__||(t.__resize_mutation_handler__=SG.bind(t));var i=t.__resize_listeners__;if(!i)if(t.__resize_listeners__=[],window.ResizeObserver){var n=t.offsetWidth,r=t.offsetHeight,o=new ResizeObserver((function(){(t.__resize_observer_triggered__||(t.__resize_observer_triggered__=!0,t.offsetWidth!==n||t.offsetHeight!==r))&&kG(t)})),a=mG(t),s=a.detached,l=a.rendered;t.__resize_observer_triggered__=!1===s&&!1===l,t.__resize_observer__=o,o.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){kG(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(yG||(bG=fG(vG)),MG(t),t.__resize_rendered__=mG(t).rendered,window.MutationObserver){var u=new MutationObserver(t.__resize_mutation_handler__);u.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=u}t.__resize_listeners__.push(e),yG++}function wG(t,e){var i=t.__resize_listeners__;if(i){if(e&&i.splice(i.indexOf(e),1),!i.length||!e){if(t.detachEvent&&t.removeEventListener)return t.detachEvent("onresize",t.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",CG),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null}! --yG&&bG&&bG.parentNode.removeChild(bG)}}
34function xG(t){var e=t.__resize_last__,i=e.width,n=e.height,r=t.offsetWidth,o=t.offsetHeight;return r!==i||o!==n?{width:r,height:o}:null}function SG(){var t=mG(this),e=t.rendered,i=t.detached;e!==this.__resize_rendered__&&(!i&&this.__resize_triggers__&&(TG(this),this.addEventListener("scroll",CG,!0)),this.__resize_rendered__=e,kG(this))}function CG(){var t=this;TG(this),this.__resize_raf__&&dG(this.__resize_raf__),this.__resize_raf__=cG((function(){var e=xG(t);e&&(t.__resize_last__=e,kG(t))}))}function kG(t){t&&t.__resize_listeners__&&t.__resize_listeners__.forEach((function(e){e.call(t,t)}))}function MG(t){var e=gG(t,"position");e&&"static"!==e||(t.style.position="relative"),t.__resize_old_position__=e,t.__resize_last__={};var i=pG("div",{className:"resize-triggers"}),n=pG("div",{className:"resize-expand-trigger"}),r=pG("div"),o=pG("div",{className:"resize-contract-trigger"});n.appendChild(r),i.appendChild(n),i.appendChild(o),t.appendChild(i),t.__resize_triggers__={triggers:i,expand:n,expandChild:r,contract:o},TG(t),t.addEventListener("scroll",CG,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}function TG(t){var e=t.__resize_triggers__,i=e.expand,n=e.expandChild,r=e.contract,o=r.scrollWidth,a=r.scrollHeight,s=i.offsetWidth,l=i.offsetHeight,u=i.scrollWidth,c=i.scrollHeight;r.scrollLeft=o,r.scrollTop=a,n.style.width=s+1+"px",n.style.height=l+1+"px",i.scrollLeft=u,i.scrollTop=c}var DG=function(){return DG=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},DG.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var IG=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function AG(t){return e=Object.create(null),IG.forEach((function(i){e[i]=function(e){return function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(!t.value)throw new Error("ECharts is not initialized yet.");return t.value[e].apply(t.value,i)}}(i)})),e;var e}var OG={autoresize:[Boolean,Object]},EG=/^on[^a-z]/,PG=function(t){return EG.test(t)};function LG(t,e){var i=(0,o.unref)(t);return i&&"object"==typeof i&&"value"in i?i.value||e:i||e}var RG="ecLoadingOptions",zG={loading:Boolean,loadingOptions:Object},NG=null,FG="x-vue-echarts",BG=[],VG=[];!function(t,e){if(t&&"undefined"!=typeof document){var i,n=!0===e.prepend?"prepend":"append",r=!0===e.singleTag,o="string"==typeof e.container?document.querySelector(e.container):document.getElementsByTagName("head")[0];if(r){var a=BG.indexOf(o);-1===a&&(a=BG.push(o)-1,VG[a]={}),i=VG[a]&&VG[a][n]?VG[a][n]:VG[a][n]=s()}else i=s();65279===t.charCodeAt(0)&&(t=t.substring(1)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(document.createTextNode(t))}function s(){var t=document.createElement("style");if(t.setAttribute("type","text/css"),e.attributes)for(var i=Object.keys(e.attributes),r=0;r<i.length;r++)t.setAttribute(i[r],e.attributes[i[r]]);var a="prepend"===n?"afterbegin":"beforeend";return o.insertAdjacentElement(a,t),t}}("x-vue-echarts,.echarts-inner{display:block;width:100%;height:100%;min-width:0}\n",{});var $G=function(){if(null!=NG)return NG;if("undefined"==typeof HTMLElement||"undefined"==typeof customElements)return NG=!1;try{new Function("tag","class EChartsElement extends HTMLElement {\n __dispose = null;\n\n disconnectedCallback() {\n if (this.__dispose) {\n this.__dispose();\n this.__dispose = null;\n }\n }\n}\n\nif (customElements.get(tag) == null) {\n customElements.define(tag, EChartsElement);\n}\n")(FG)}catch(Mp){return NG=!1}return NG=!0}();lG&&lG.config.ignoredElements.push(FG);var jG="ecTheme",WG="ecInitOptions",HG="ecUpdateOptions",UG=(0,o.defineComponent)({name:"echarts",props:DG(DG({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},OG),zG),emits:{},inheritAttrs:!1,setup:function(t,e){var i=e.attrs,n=(0,o.shallowRef)(),r=(0,o.shallowRef)(),a=(0,o.shallowRef)(),s=(0,o.shallowRef)(),l=(0,o.inject)(jG,null),u=(0,o.inject)(WG,null),c=(0,o.inject)(HG,null),h=(0,o.toRefs)(t),d=h.autoresize,f=h.manualUpdate,p=h.loading,g=h.loadingOptions,m=(0,o.computed)((function(){return s.value||t.option||null})),v=(0,o.computed)((function(){return t.theme||LG(l,{})})),y=(0,o.computed)((function(){return t.initOptions||LG(u,{})})),b=(0,o.computed)((function(){return t.updateOptions||LG(c,{})})),_=(0,o.computed)((function(){return function(t){var e={};for(var i in t)PG(i)||(e[i]=t[i]);return e}(i)})),w=(0,o.getCurrentInstance)().proxy.$listeners;function x(e){if(r.value){var n=a.value=bB(r.value,v.value,y.value);t.group&&(n.group=t.group);var s=w;s||(s={},Object.keys(i).filter((function(t){return 0===t.indexOf("on")&&t.length>2}
34)).forEach((function(t){var e=t.charAt(2).toLowerCase()+t.slice(3);"Once"===e.substring(e.length-4)&&(e="~".concat(e.substring(0,e.length-4))),s[e]=i[t]}))),Object.keys(s).forEach((function(t){var e=s[t];if(e){var i=t.toLowerCase();"~"===i.charAt(0)&&(i=i.substring(1),e.__once__=!0);var r=n;if(0===i.indexOf("zr:")&&(r=n.getZr(),i=i.substring(3)),e.__once__){delete e.__once__;var o=e;e=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];o.apply(void 0,t),r.off(i,e)}}r.on(i,e)}})),d.value?(0,o.nextTick)((function(){n&&!n.isDisposed()&&n.resize(),l()})):l()}function l(){var t=e||m.value;t&&n.setOption(t,b.value)}}function S(){a.value&&(a.value.dispose(),a.value=void 0)}var C=null;(0,o.watch)(f,(function(e){"function"==typeof C&&(C(),C=null),e||(C=(0,o.watch)((function(){return t.option}),(function(t,e){t&&(a.value?a.value.setOption(t,DG({notMerge:t!==e},b.value)):x())}),{deep:!0}))}),{immediate:!0}),(0,o.watch)([v,y],(function(){S(),x()}),{deep:!0}),(0,o.watchEffect)((function(){t.group&&a.value&&(a.value.group=t.group)}));var k=AG(a);return function(t,e,i){var n=(0,o.inject)(RG,{}),r=(0,o.computed)((function(){return DG(DG({},LG(n,{})),null==i?void 0:i.value)}));(0,o.watchEffect)((function(){var i=t.value;i&&(e.value?i.showLoading(r.value):i.hideLoading())}))}(a,p,g),function(t,e,i){var n=null;(0,o.watch)([i,t,e],(function(t,e,i){var r=t[0],o=t[1],a=t[2];if(r&&o&&a){var s=!0===a?{}:a,l=s.throttle,u=void 0===l?100:l,c=s.onResize,h=function(){o.resize(),null==c||c()};n=u?ez(h,u):h,_G(r,n)}i((function(){r&&n&&wG(r,n)}))}))}(a,d,r),(0,o.onMounted)((function(){x()})),(0,o.onBeforeUnmount)((function(){$G&&n.value?n.value.__dispose=S:S()})),DG({chart:a,root:n,inner:r,setOption:function(e,i){t.manualUpdate&&(s.value=e),a.value?a.value.setOption(e,i||{}):x(e)},nonEventAttrs:_},k)},render:function(){var t=lG?{attrs:this.nonEventAttrs}:DG({},this.nonEventAttrs);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",(0,o.h)(FG,t,[(0,o.h)("div",{ref:"inner",class:"echarts-inner"})])}});FB([ZB,X$,SU,QU,sG]);var qG={name:"line-chart",components:{VChart:UG},props:{value:{type:Object,required:!0},multipleYAxes:{type:Boolean,default:!1},axisLine:{type:Boolean,default:!1},colors:{type:Array}},computed:{tooltip:function(){return{trigger:"axis"}},legend:function(){var t={},e=[],i={};if(this.value&&this.value.lines)for(var n=0;n<this.value.lines.length;n++){var r=this.value.lines[n];e.push(r.name),r.description&&(i[r.name]=r.description)}return t.data=e,Object.keys(i).length>0&&(t.tooltip={trigger:"item",formatter:t=>Object.prototype.hasOwnProperty.call(i,t.name)?"<div style='word-break: break-word; white-space: pre-wrap; max-width: 300px;'>"+i[t.name]+"</div>":null,show:!0}),t},grid:function(){return{left:"3%",right:"4%",bottom:"3%",containLabel:!0}},toolbox:function(){return{feature:{saveAsImage:{}}}},xAxis:function(){return{type:"category",boundaryGap:!1,data:this.value&&this.value.keys?this.value.keys:[]}},yAxis:function(){if(this.multipleYAxes){for(var t=[],e=0;e<this.legend.data.length;e++){var i=this.legend.data[e],n={type:"value",name:i,position:0==e?"left"
34:"right",alignTicks:!0};if(this.axisLine){var r={show:!0};this.colors&&this.colors.length>e&&(r.lineStyle={color:this.colors[e]}),n.axisLine=r}t.push(n)}return t}return{type:"value"}},series:function(){var t=[];if(this.value&&this.value.lines)for(var e=0;e<this.value.lines.length;e++){var i=this.value.lines[e],n={data:i.values,name:i.name,type:"line"};this.multipleYAxes&&(n.yAxisIndex=e),t.push(n)}return t},option:function(){var t={tooltip:this.tooltip,legend:this.legend,grid:this.grid,toolbox:this.toolbox,xAxis:this.xAxis,yAxis:this.yAxis,series:this.series};return this.colors&&(t.color=this.colors),t},render:function(){return this.option.legend.data.length>0&&this.option.xAxis.data.length>0&&this.option.series.length>0}}},GG=qG,YG=Fr(GG,iv,nv,!1,null,null,null),XG=YG.exports,ZG=function(){var t=this,e=t._self._c;return e("form",{on:{submit:function(e){return e.preventDefault(),t.submit()}}},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-6 logo logo-sm"},[e("img",{attrs:{src:t.window.fileDomain+"/logo/portal/"+t.window.logoName+".png"}})]),e("div",{staticClass:"col-6 text-end"},[e("button",{staticClass:"btn btn-link btn-x px-0 d-inline-flex",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.$emit("close")}}},[e("i",{staticClass:"fa-light fa-xmark-large"})])])]),t.reset?[e("div",[e("h6",[t._v(t._s(t.bundle.id_264))]),e("p",[t._v(t._s(t.bundle.id_271))]),t.resetSuccess?[e("p",{staticClass:"alert alert-success"},[t._v(t._s(t.bundle.id_270))])]:[e("input-text",{attrs:{id:"email",placeholder:t.bundle.id_178,errors:t.resetErrors.email},model:{value:t.resetForm.email,callback:function(e){t.$set(t.resetForm,"email",e)},expression:"resetForm.email"}})]],2),t.resetSuccess?t._e():e("div",[e("button",{staticClass:"btn btn-primary w-100",attrs:{type:"submit"}},[t._v(" "+t._s(t.bundle.id_160)+" "),t.submitting?e("i",{staticClass:"spinner-grow spinner-grow-sm"}):t._e()])]),e("div",{staticClass:"text-center mt-3"},[e("a",{staticClass:"link-primary",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.reset=!1}}},[t._v(t._s(t.bundle.id_11380))])])]:[e("div",[e("h6",[t._v(t._s(t.bundle.id_100))]),e("global-errors",{attrs:{value:t.loginErrors}}),e("input-text",{attrs:{id:"username",placeholder:t.bundle.id_97},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}}),e("input-secret",{attrs:{id:"password",placeholder:t.bundle.id_98},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),e("div",{staticClass:"row other"},[e("div",{staticClass:"col-auto"},[e("select-boolean-checkbox",{staticClass:"mb-0",attrs:{id:"remember","option-label":t.bundle.id_99},model:{value:t.loginForm.remember,callback:function(e){t.$set(t.loginForm,"remember",e)},expression:"loginForm.remember"}})],1),e("div",{staticClass:"col text-end"},[e("a",{staticClass:"link-primary fw-increase-2",attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.reset=!0}}},[t._v(t._s(t.bundle.id_101))])])])],1),e("div",[e("button",{staticClass:"btn btn-primary w-100",attrs:{type:"submit"}},[t._v(" "+t._s(t.bundle.id_100)+" "),t.submitting||t.redirecting?e("i",{staticClass:"spinner-grow spinner-grow-sm"}):t._e()]),e("div",{staticClass:"text-center mt-3"},[e("smart-link",{staticClass:"link-primary",attrs:{value:t.signUpLink}})],1)])]],2)},KG=[],JG={name:"menu-log-in",props:{signUpLink:{type:Object,required:!0}},data:function(){return{bundle:{id_97:"Username",id_98:"Password",id_99:"Remember",id_100:"Log In",id_101:"Forgotten?",id_160:"160",id_178:"Your Email",id_264:"Lost username or password",id_269:"Unable to send the username and password to your email address. Reason unknown.",id_270:"The username and password have been sent to your email. A few minutes may pass, before you receive it.",id_271:"Your username and password will be sent to your email. You must specify the same email address as the one specified in your account.",id_11380:"Go back to log in"},reset:!1,resetSuccess:!1,loginForm:{username:"",password:"",remember:!0},loginErrors:[],resetForm:{email:""},resetErrors:{},submitting:!1,redirecting:!1}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},methods:{submit:function(){this.reset?this.submitReset():this.submitLogin()},submitLogin:function(){this.submitting=!0,this.loginErrors=[],window.logIn(this.loginForm.username,this.loginForm.password,this.loginForm.remember,(()=>{this.submitting=!1,this.redirecting=!0}),(t=>
34{if(this.submitting=!1,t)for(let e=0;e<t.length;e++)this.loginErrors.push(t[e].message)}))},submitReset:function(){this.submitting=!0,this.$services.resetLoginRequestService.create(this.resetForm.email).then((t=>{this.$clearFormErrors(this.resetErrors),"ok"===t.status?this.resetSuccess=!0:this.$showFormErrors(this.resetErrors,t.errors)})).catch((t=>{console.log(t),window.logErrorRemotely(t)})).finally((()=>{this.submitting=!1}))}}},QG=JG,tY=Fr(QG,ZG,KG,!1,null,"c2f4ae30",null),eY=tY.exports,iY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row justify-content-between"},[e("div",{staticClass:"col-auto mb-4"},[t.optionsLoading?e("div",{staticClass:"row g-0 align-items-center"},[t._m(0)]):t.options&&t.options.length?e("div",{staticClass:"row g-0 align-items-center"},[null!==t.sortBy[0]?e("div",{staticClass:"col"},[e("span",{staticClass:"me-2 text-nowrap"},[t._v(t._s(t.sortBy[0]))])]):t._e(),e("div",{staticClass:"col-auto"},[e("select-one-menu",{staticClass:"m-0",attrs:{options:t.options},model:{value:t.mutableOption,callback:function(e){t.mutableOption=e},expression:"mutableOption"}})],1),null!==t.sortBy[1]?e("div",{staticClass:"col"},[e("span",{staticClass:"ms-2 text-nowrap"},[t._v(t._s(t.sortBy[1]))])]):t._e()]):t._e()]),e("div",{staticClass:"col-auto mb-4"},[t.sizeLoading?e("div",{staticClass:"row g-0 align-items-center"},[t._m(1)]):t.pageCount>0?e("div",{staticClass:"row g-0 align-items-center"},[e("div",{staticClass:"col"},[e("a",{staticClass:"btn btn-outline-secondary rounded-0 rounded-start",class:{disabled:null===t.previousIndex},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.previous()}}},[e("i",{staticClass:"fa-light fa-chevron-left"})])]),null!==t.pageOf[0]?e("div",{staticClass:"col"},[e("span",{staticClass:"mx-2 text-nowrap"},[t._v(t._s(t.pageOf[0]))])]):t._e(),e("div",{staticClass:"col"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],staticClass:"form-control text-end rounded-0",class:{"ms-2":null===t.pageOf[0]},attrs:{type:"text",size:"3",disabled:1===t.pageCount},domProps:{value:t.currentPage},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.jump()},input:function(e){e.target.composing||(t.currentPage=e.target.value)}}})]),null!==t.pageOf[1]?e("div",{staticClass:"col"},[e("span",{staticClass:"mx-2 text-nowrap"},[t._v(t._s(t.pageOf[1]))])]):t._e(),e("div",{staticClass:"col"},[e("a",{staticClass:"btn btn-outline-secondary rounded-0 rounded-end",class:{disabled:null===t.nextIndex},attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.next()}}},[e("i",{staticClass:"fa-light fa-chevron-right"})])])]):t._e()])])},nY=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col"},[e("i",{staticClass:"fa-loading-black-16"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"col"},[e("i",{staticClass:"fa-loading-black-16"})])}],rY={name:"paginator",props:{first:{type:Number},max:{type:Number},size:{type:Number},sizeLoading:{type:Boolean},option:{},options:{type:Array},optionsLoading:{type:Boolean}},data:function(){return{currentPage:this.page(this.first),bundle:{id_120:"Sort by {0}",id_123:"{0} of {1}"}}},computed:{pageCount:function(){return this.page(this.size)-1},previousIndex:function(){return this.first>0?this.first-this.max:null},nextIndex:function(){return this.first+this.max<this.size?this.first+this.max:null},mutableOption:{get:function(){return this.option},set:function(t){this.$emit("sort",t)}},sortBy:function(){return this.str2arr(this.bundle.id_120,"{0}")},pageOf:function(){var t=this.bundle.id_123;return t=t.replace("{1}",this.pageCount),this.str2arr(t,"{0}")}},watch:{first:function(){this.currentPage=this.page(this.first)},max:function(){this.currentPage=this.page(this.first)}},methods:{page:function(t){return Math.ceil(t/this.max)+1},previous:function(){this.emit(this.previousIndex)},next:function(){this.emit(this.nextIndex)},jump:function(){var t=this.currentPage;isNaN(t)||(t=t<1?1:t>
34this.pageCount?this.pageCount:t,this.emit((t-1)*this.max))},emit:function(t){this.$emit("scroll",{page:this.page(t),first:t,max:this.max})},str2arr:function(t,e){var i=[null,null];if(-1!==t.indexOf(e)){var n=t.split(e),r=n[0];if(""!==r.trim()&&(i[0]=r),n.length>1){var o=n[1];""!==o.trim()&&(i[1]=o)}}return i}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))}},oY=rY,aY=Fr(oY,iY,nY,!1,null,null,null),sY=aY.exports,lY=function(){var t=this,e=t._self._c;return e("v-chart",{attrs:{option:t.option,autoresize:""}})},uY=[],cY=2*Math.PI,hY=Math.PI/180;function dY(t,e){return GI(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function fY(t,e){var i=dY(t,e),n=t.get("center"),r=t.get("radius");Zv(r)||(r=[0,r]);var o,a,s=mS(i.width,e.getWidth()),l=mS(i.height,e.getHeight()),u=Math.min(s,l),c=mS(r[0],u/2),h=mS(r[1],u/2),d=t.coordinateSystem;if(d){var f=d.dataToPoint(n);o=f[0]||0,a=f[1]||0}else Zv(n)||(n=[n,n]),o=mS(n[0],s)+i.x,a=mS(n[1],l)+i.y;return{cx:o,cy:a,r0:c,r:h}}function pY(t,e,i){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),r=dY(t,i),o=fY(t,i),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*hY,h=t.get("minA
34ngle")*hY,d=0;e.each(n,(function(t){!isNaN(t)&&d++}));var f=e.getSum(n),p=Math.PI/(f||d)*2,g=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),y=e.getDataExtent(n);y[0]=0;var b=cY,_=0,w=c,x=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(n,(function(t,i){var n;if(isNaN(t))e.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:m?NaN:l});else{n="area"!==m?0===f&&v?p:t*p:cY/d,n<h?(n=h,b-=h):_+=t;var r=w+x*n;e.setItemLayout(i,{angle:n,startAngle:w,endAngle:r,clockwise:g,cx:a,cy:s,r0:u,r:m?gS(t,y,[u,l]):l}),w=r}})),b<cY&&d)if(b<=.001){var S=cY/d;e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i);n.angle=S,n.startAngle=c+x*i*S,n.endAngle=c+x*(i+1)*S}}))}else p=b/_,w=c,e.each(n,(function(t,i){if(!isNaN(t)){var n=e.getItemLayout(i),r=n.angle===h?h:t*p;n.startAngle=w,n.endAngle=w+x*r,w+=x*r}}))}))}function gY(t){return{seriesType:t,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var n=t.getData();n.filterSelf((function(t){for(var e=n.getName(t),r=0;r<i.length;r++)if(!i[r].isSelected(e))return!1;return!0}))}}}}Math.PI,$k.CMD;function mY(t,e,i,n,r,o,a,s){var l=r-t,u=o-e,c=i-t,h=n-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var f=l*c+u*h,p=f/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var g=a[0]=t+p*c,m=a[1]=e+p*h;return Math.sqrt((g-r)*(g-r)+(m-o)*(m-o))}var vY=new Pb,yY=new Pb,bY=new Pb,_Y=new Pb,wY=new Pb;var xY=[],SY=new Pb;function CY(t,e){if(e<=180&&e>0){e=e/180*Math.PI,vY.fromArray(t[0]),yY.fromArray(t[1]),bY.fromArray(t[2]),Pb.sub(_Y,vY,yY),Pb.sub(wY,bY,yY);var i=_Y.len(),n=wY.len();if(!(i<.001||n<.001)){_Y.scale(1/i),wY.scale(1/n);var r=_Y.dot(wY),o=Math.cos(e);if(o<r){var a=mY(yY.x,yY.y,bY.x,bY.y,vY.x,vY.y,xY,!1);SY.fromArray(xY),SY.scaleAndAdd(wY,a/Math.tan(Math.PI-e));var s=bY.x!==yY.x?(SY.x-yY.x)/(bY.x-yY.x):(SY.y-yY.y)/(bY.y-yY.y);if(isNaN(s))return;s<0?Pb.copy(SY,yY):s>1&&Pb.copy(SY,bY),SY.toArray(t[1])}}}}function kY(t,e,i){if(i<=180&&i>0){i=i/180*Math.PI,vY.fromArray(t[0]),yY.fromArray(t[1]),bY.fromArray(t[2]),Pb.sub(_Y,yY,vY),Pb.sub(wY,bY,yY);var n=_Y.len(),r=wY.len();if(!(n<.001||r<.001)){_Y.scale(1/n),wY.scale(1/r);var o=_Y.dot(e),a=Math.cos(i);if(o<a){var s=mY(yY.x,yY.y,bY.x,bY.y,vY.x,vY.y,xY,!1);SY.fromArray(xY);var l=Math.PI/2,u=Math.acos(wY.dot(e)),c=l+u-i;if(c>=l)Pb.copy(SY,bY);else{SY.scaleAndAdd(wY,s/Math.tan(Math.PI/2-c));var h=bY.x!==yY.x?(SY.x-yY.x)/(bY.x-yY.x):(SY.y-yY.y)/(bY.y-yY.y);if(isNaN(h))return;h<0?Pb.copy(SY,yY):h>1&&Pb.copy(SY,bY)}SY.toArray(t[1])}}}}function MY(t,e,i,n){var r="normal"===i,o=r?t:t.ensureState(i);o.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function TY(t,e){var i=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),i>0&&n.length>=3){var r=Fy(n[0],n[1]),o=Fy(n[1],n[2]);if(!r||!o)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(r,o)*i,s=$y([],n[1],n[0],a/r),l=$y([],n[1],n[2],a/o),u=$y([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)t.lineTo(n[c][0],n[c][1])}function DY(t,e,i){var n=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<oT.length;l++){var u=oT[l],c=e[u],h="normal"===u;if(c){var d=c.get("show"),f=h?s:uy(r.states[u]&&r.states[u].ignore,s);if(f||!uy(d,a)){var p=h?n:n&&n.states[u];p&&(p.ignore=!0);continue}n||(n=new kL,t.setTextGuideLine(n),h||!s&&a||MY(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),MY(n,!1,u,c)}}if(n){Nv(n.style,i),n.style.fill=null;var g=o.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=g||!1,n.buildPath=TY}}else n&&t.removeTextGuideLine()}function IY(t,e){e=e||"labelLine";for(var i={normal:t.getModel(e)},n=0;n<rT.length;n++){var r=rT[n];i[r]=t.getModel([r,e])}return i}var AY=Math.PI/180;function OY(t,e,i,n,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}
vendor: 2,705 bytes, line 34
34FW(t,l,l+a)&&p(t)}function f(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-i),c=n+l.len,h=c*c,d=Math.sqrt((1-Math.abs(u*u/a))*h),f=e+(d+l.len2)*r,p=f-l.label.x,g=l.targetTextWidth-p*r;PY(l,g,!0),l.label.x=f}}function p(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>i?a:o,c=Math.abs(l.label.y-i);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=n+l.len,p=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=p,u.maxY=c}u.list.push(l)}f(o),f(a)}}function EY(t,e,i,n,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var f=t[d].label;LY(t[d])||(f.x<e?(c=Math.min(c,f.x),l.push(t[d])):(h=Math.max(h,f.x),u.push(t[d])))}for(d=0;d<t.length;d++){var p=t[d];if(!LY(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;f=p.label;var g=p.linePoints,m=void 0;m="edge"===p.labelAlignTo?f.x<e?g[2][0]-p.labelDistance-a-p.edgeDistance:a+r-p.edgeDistance-g[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?f.x<e?c-a-p.bleedMargin:a+r-h-p.bleedMargin:f.x<e?f.x-a-p.bleedMargin:a+r-f.x-p.bleedMargin,p.targetTextWidth=m,PY(p,m)}}OY(u,e,i,n,1,r,o,a,s,h),OY(l,e,i,n,-1,r,o,a,s,c);for(d=0;d<t.length;d++){p=t[d];if(!LY(p)&&p.linePoints){f=p.label,g=p.linePoints;var v="edge"===p.labelAlignTo,y=f.style.padding,b=y?y[1]+y[3]:0,_=f.style.backgroundColor?0:b,w=p.rect.width+_,x=g[1][0]-g[2][0];v?f.x<e?g[2][0]=a+p.edgeDistance+w+p.labelDistance:g[2][0]=a+r-p.edgeDistance-w-p.labelDistance:(f.x<e?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=f.y}}}function PY(t,e,i){if(void 0===i&&(i=!1),null==t.labelStyleWidth){var n=t.label,r=n.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(e<c||i){var h=o.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",a)}else{var f=e-l,p=e<c?f:i?f>t.unconstrainedWidth?null:f:null;n.setStyle("width",p)}var g=n.getBoundingRect();o.width=g.width;var m=(n.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-h)/2}}}function LY(t){return"center"===t.position}function RY(t){var e,i,n=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*AY,s=n.getLayout("viewRect"),l=n.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function f(t){t.ignore=!0}function p(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}n.each((function(t){var s=n.getItemGraphicEl(t),h=s.shape,d=s.getTextContent(),g=s.getTextGuideLine(),m=n.getItemModel(t),v=m.getModel("label"),y=v.get("position")||m.get(["emp
34hasis","label","position"]),b=v.get("distanceToLabelLine"),_=v.get("alignTo"),w=mS(v.get("edgeDistance"),u),x=v.get("bleedMargin"),S=m.getModel("labelLine"),C=S.get("length");C=mS(C,u);var k=S.get("length2");if(k=mS(k,u),Math.abs(h.endAngle-h.startAngle)<a)return jv(d.states,f),d.ignore=!0,void(g&&(jv(g.states,f),g.ignore=!0));if(p(d)){var M,T,D,I,A=(h.startAngle+h.endAngle)/2,O=Math.cos(A),E=Math.sin(A);e=h.cx,i=h.cy;var P="inside"===y||"inner"===y;if("center"===y)M=h.cx,T=h.cy,I="center";else{var L=(P?(h.r+h.r0)/2*O:h.r*O)+e,R=(P?(h.r+h.r0)/2*E:h.r*E)+i;if(M=L+3*O,T=R+3*E,!P){var z=L+O*(C+l-h.r),N=R+E*(C+l-h.r),F=z+(O<0?-1:1)*k,B=N;M="edge"===_?O<0?c+w:c+u-w:F+(O<0?-b:b),T=B,D=[[L,R],[z,N],[F,B]]}I=P?"center":"edge"===_?O>0?"right":"left":O>0?"left":"right"}var V=Math.PI,$=0,j=v.get("rotate");if(ty(j))$=j*(V/180);else if("center"===y)$=0;else if("radial"===j||!0===j){var W=O<0?-A+V:-A;$=W}else if("tangential"===j&&"outside"!==y&&"outer"!==y){var H=Math.atan2(O,E);H<0&&(H=2*V+H);var U=E>0;U&&(H=V+H),$=H-V}if(o=!!$,d.x=M,d.y=T,d.rotation=$,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:I});var q=d.states.select;q&&(q.x+=d.x,q.y+=d.y)}else{var G=d.getBoundingRect().clone();G.applyTransform(d.getComputedTransform());var Y=(d.style.margin||0)+2.1;G.y-=Y/2,G.height+=Y,r.push({label:d,labelLine:g,position:y,len:C,len2:k,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Pb(O,E),linePoints:D,textAlign:I,labelDistance:b,labelAlignTo:_,edgeDistance:w,bleedMargin:x,rect:G,unconstrainedWidth:G.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&EY(r,e,i,l,u,d,c,h);for(var g=0;g<r.length;g++){var m=r[g],v=m.label,y=m.labelLine,b=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),b&&(jv(v.states,f),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(y){var w=m.linePoints;b||!w?(jv(y.states,f),y.ignore=!0):(CY(w,m.minTurnAngle),kY(w,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:w}),v.__hostTarget.textGuideLineConfig={anchor:new Pb(w[0][0],w[0][1])})}}}function zY(t,e,i){var n=t.get("borderRadius");if(null==n)return i?{cornerRadius:0}:null;Zv(n)||(n=[n,n,n,n]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Wv(n,(function(t){return $x(t,r)}))}}var NY=function(t){function e(e,i,n){var r=t.call(this)||this;r.z2=2;var o=new YM;return r.setTextContent(o),r.updateData(e,i,n,!0),r}return ov(e,t),e.prototype.updateData=function(t,e,i,n){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=zv(zY(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(n){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(oR(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,oR(r,{shape:{r:l.r}},o,e)):null!=i?(r.setShape({startAngle:i,endAngle:i}),oR(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,rR(r,{shape:{endAngle:l.endAngle}},o,e))}else cR(r),rR(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),nD(r,a);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),f=Math.cos(h)*d,p=Math.sin(h)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=zv({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},zY(s.getModel("itemStyle"),l)),zv(r.ensureState("select"),{x:f,y:p,shape:zY(a.getModel(["select","itemStyle"]),l)}),zv(r.ensureState("blur"),{shape:zY(a.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&zv(m.ensureState("select"),{x:f,y:p}),zv(v.ensureState("select"),{x:f,y:p}),QT(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,i){var n=this,r=e.getItemModel(i),o=r.getModel("labelLine"),a=e.getItemVisual(i,"style"),s=a&&a.fill,l=a&&a.opacity;fD(n,pD(r),{labelFetcher:e.hostModel,labelDataIndex:i,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(i,"normal")||e.getName(i)});var u=n.getTextContent();n.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)n.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new kL,this.setTextGuideLine(h)),DY(this,IY(r),{stroke:s,opacity:cy(o.get(["lineStyle","opacity"]),l,1)})}},e}(pL),FY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}
34return ov(e,t),e.prototype.render=function(t,e,i,n){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new pL({shape:fY(t,i)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new NY(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var i=a.getItemGraphicEl(e);i.updateData(o,t,r),i.off("click"),s.add(i),o.setItemGraphicEl(t,i)})).remove((function(e){var i=a.getItemGraphicEl(e);uR(i,t,e)})).execute(),RY(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var i=e.getData(),n=i.getItemLayout(0);if(n){var r=t[0]-n.cx,o=t[1]-n.cy,a=Math.sqrt(r*r+o*o);return a<=n.r&&a>=n.r0}},e.type="pie",e}(KR),BY=FY;function VY(t,e,i){e=Zv(e)&&{coordDimensions:e}||zv({encodeDefine:t.getEncode()},e);var n=t.getSource(),r=OV(n,e).dimensions,o=new AV(r,t);return o.initData(n,i),o}var $Y=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},t}(),jY=$Y,WY=rC(),HY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ov(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new jY(Yv(this.getData,this),Yv(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return VY(this,{coordDimensions:["value"],encodeDefaulter:Xv(yA,this)})},e.prototype.getDataParams=function(e){var i=this.getData(),n=WY(i),r=n.seats;if(!r){var o=[];i.each(i.mapDimension("value"),(function(t){o.push(t)})),r=n.seats=wS(o,i.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){BS(t,"labelLine",["show"]);var e=t.labelLine,i=t.emphasis.labelLine;e.show=e.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(bP),UY=HY;function qY(t){return{seriesType:t,reset:function(t,e){var i=t.getData();i.filterSelf((function(t){var e=i.mapDimension("value"),n=i.get(e,t);return!(ty(n)&&!isNaN(n)&&n<0)}))}}}function GY(t){t.registerChartView(BY),t.registerSeriesModel(UY),qz("pie",t.registerAction),t.registerLayout(Xv(pY,"pie")),t.registerProcessor(gY("pie")),t.registerProcessor(qY("pie"))}FB([ZB,GY,SU,QU]);var YY={name:"pie-chart",components:{VChart:UG},props:{value:{type:Object,required:!0}},computed:{series:function(){return{type:"pie",radius:["40%","70%"],itemStyle:{borderRadius:8,borderColor:"#fff",borderWidth:2},emphasis:{label:{show:!0}},data:this.value.slices}},option:function(){return{tooltip:{trigger:"item",formatter:function(t){return t.percent+"%"}},series:this.series}}}},XY=YY,ZY=Fr(XY,lY,uY,!1,null,null,null),KY=ZY.exports,JY=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"}
34,[e("div",{staticClass:"g-recaptcha",class:{"is-invalid":t.invalid},attrs:{id:t.id}}),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e()],1)},QY=[],tX={name:"recaptcha",props:["id","sitekey","errors"],created:function(){var t=this;a().nextTick((function(){var e=setInterval((function(){grecaptcha&&grecaptcha.render&&(grecaptcha.render(t.id,{sitekey:t.sitekey}),clearInterval(e))}),250)}))},computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0}}},eX=tX,iX=Fr(eX,JY,QY,!1,null,null,null),nX=iX.exports,rX=function(){var t=this,e=t._self._c;return e("input-custom",{attrs:{id:t.id,label:t.label,language:t.language,required:t.required}},[e("div",{staticClass:"row align-items-center"},[e("div",{staticClass:"col-auto"},[e("button",{staticClass:"btn btn-primary",on:{click:function(e){return e.preventDefault(),t.open()}}},[t._v(t._s(t.bundle.id_9587))])]),t.value?e("div",{staticClass:"col"},[!t.categoryPath[t.value]||t.categoryPath[t.value].loading?e("i",{staticClass:"fa-loading-black-16"}):e("ol",{staticClass:"breadcrumb breadcrumb-category m-0"},t._l(t.categoryPath[t.value].list,(function(i,n){return e("li",{key:n,staticClass:"breadcrumb-item",class:{active:n+1==t.categoryPath[t.value].list.length}},[t._v(" "+t._s(i.name)+" ")])})),0)]):t._e()]),t.shortcutCategory.data?e("a",{staticClass:"d-inline-block mt-2",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.setNewValue(t.shortcutCategory.data.id)}}},[t._v(" "+t._s(t.bundle.id_9630)+" ")]):t._e(),e("local-errors",{attrs:{value:t.errors}}),t.help?e("div",{staticClass:"form-text"},[t._t("default")],2):t._e(),e("modal",{attrs:{open:t.isOpen,title:t.bundle.id_9587,size:"lg"},on:{close:function(e){return t.close()}},scopedSlots:t._u([{key:"footer",fn:function(){return[t.mailto?e("div",{staticClass:"d-flex flex-grow-1"},[e("a",{staticClass:"btn btn-text ps-0",attrs:{href:t.mailto}},[e("i",{staticClass:"fa-light fa-envelope me-2"}),t._v(" "+t._s(t.bundle.id_11723)+" ")])]):t._e(),e("button",{staticClass:"btn btn-primary",attrs:{disabled:!t.category||!t.category.selectable},on:{click:function(e){return e.preventDefault(),t.ok()}}},[t._v(t._s(t.bundle.id_9221))]),e("button",{staticClass:"btn btn-outline-primary",on:{click:function(e){return e.preventDefault(),t.close()}}},[t._v(t._s(t.bundle.id_9108))])]},proxy:!0}])},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-8"},[e("div",{staticClass:"searchbar"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],staticClass:"form-control",attrs:{type:"text",placeholder:t.bundle.id_11730},domProps:{value:t.query},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search()},input:function(e){e.target.composing||(t.query=e.target.value)}}}),e("button",{attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),t.search()}}},[e("i",{staticClass:"fa-light fa-search"})])])])]),"front"!=t.action||t.categoryId?e("ol",{staticClass:"mt-4 mb-2 breadcrumb"},[e("li",{staticClass:"breadcrumb-item"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openFront()}}},[t._v(t._s(t.bundle.id_11727))])]),"main"==t.action?e("li",{staticClass:"breadcrumb-item",class:{active:!t.categoryId}},[t.categoryId?e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openMain()}}},[t._v(t._s(t.bundle.id_10110))]):[t._v(t._s(t.bundle.id_10110))]],2):"result"==t.action?e("li",{staticClass:"breadcrumb-item",class:{active:!t.categoryId}},[t.categoryId?e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openResult()}}},[t._v(t._s(t.bundle.id_11728))]):[t._v(t._s(t.bundle.id_11728))]],2):t._e(),t.categoryId?[t.categoryPath[t.categoryId].loading?e("li",{staticClass:"breadcrumb-item"},[e("i",{staticClass:"fa-loading-black-16"})]):t._l(t.categoryPath[t.categoryId].list,(function(i,n){return e("li",{key:n,staticClass:"breadcrumb-item",class:{active:n+1==t.categoryPath[t.categoryId].list.length}},[n+1==t.categoryPath[t.categoryId].list.length?[t._v(t._s(i.name))]:e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openCategory(i.id
34)}}},[t._v(t._s(i.name))]),t.indicateSelectable&&i.selectable?e("span",{staticClass:"badge bg-secondary ms-2"},[t._v(t._s(t.bundle.id_11692))]):t._e()],2)}))]:t._e()],2):t._e(),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 my-2"},[t.categoryId||"main"==t.action?[t.childCategories[t.categoryId].loading?e("i",{staticClass:"fa-loading-black-16"}):t.childCategories[t.categoryId].list.length>0?e("div",{staticClass:"row"},t._l(t.childCategories[t.categoryId].cols,(function(i,n){return e("ul",{key:n,staticClass:"col-12 col-md-6 list-unstyled"},t._l(i,(function(i,n){return e("li",{key:n,staticClass:"mt-0 mb-2"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openCategory(i.id)}}},[t._v(t._s(i.name))]),t.indicateSelectable&&i.selectable?e("span",{staticClass:"badge bg-secondary ms-2"},[t._v(t._s(t.bundle.id_11692))]):t._e()])})),0)})),0):[t._v(" "+t._s(t.bundle.id_10111)+" ")]]:"result"==t.action?[t.categoryResult.loading?e("i",{staticClass:"fa-loading-black-16"}):t.categoryResult.list.length>0?[e("ul",{staticClass:"list-unstyled"},t._l(t.categoryResult.list,(function(i,n){return e("li",{key:n,staticClass:"mt-0 mb-2"},[e("div",{staticClass:"breadcrumb my-0"},[e("div",{staticClass:"breadcrumb-item active"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openCategory(i.id)}}},[t._v(t._s(i.name))]),t.indicateSelectable&&i.selectable?e("span",{staticClass:"badge bg-secondary ms-2"},[t._v(t._s(t.bundle.id_11692))]):t._e()]),i.path?t._l(i.path.slice().reverse(),(function(i,n){return e("small",{key:n,staticClass:"breadcrumb-item"},[t._v(t._s(i.name))])})):t._e()],2)])})),0),t.categoryResult.loadingMore?e("i",{staticClass:"fa-loading-black-16 my-2"}):t.categoryResult.list.length>=t.categoryResult.first+t.categoryResult.max?e("div",{staticClass:"text-center"},[e("a",{staticClass:"btn btn-text",attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.searchCategories(!0)}}},[t._v(" "+t._s(t.bundle.id_11729)+" ")])]):t._e()]:[t._v(" "+t._s(t.bundle.id_11731.replace("{0}",t.query))+" ")]]:[t.featuredCategories.loading||t.featuredCategories.list&&t.featuredCategories.list.length?[e("div",{staticClass:"mt-3 mb-2"},[e("b",[t._v(t._s(t.bundle.id_11721))])]),t.featuredCategories.loading?e("i",{staticClass:"fa-loading-black-16"}):e("div",{staticClass:"row"},t._l(t.featuredCategories.cols,(function(i,n){return e("ul",{key:n,staticClass:"col-12 col-md-6 list-unstyled"},t._l(i,(function(i,n){return e("li",{key:n,staticClass:"mt-0 mb-2"},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.openCategory(i.id)}}},[t._v(t._s(i.name))]),t.indicateSelectable&&i.selectable?e("span",{staticClass:"badge bg-secondary ms-2"},[t._v(t._s(t.bundle.id_11692))]):t._e()])})),0)})),0)]:t._e(),e("div",{staticClass:"mt-2"},[e("button",{staticClass:"btn btn-text ps-0",on:{click:function(e){return e.preventDefault(),t.openMain()}}},[e("b",[t._v(t._s(t.bundle.id_11722))]),e("small",[e("i",{staticClass:"fa-light fa-chevron-right ms-2"})])])])]],2)])])],1)},oX=[];const aX=window.contextPath+"/rest/categories";class sX extends ad{constructor(...t){super(...t),eh(this,"loadById",(async t=>this.data(await this.get(aX+"/"+t)))),eh(this,"search",(async t=>this.data(await this.get(aX,{params:t})))),eh(this,"loadByParent",(async t=>this.data(await this.get(aX+"/by-parent",{params:t})))),eh(this,"loadPath",(async t=>this.data(await this.get(aX+"/path",{params:{id:t}})))),eh(this,"loadTree",(async t=>this.data(await this.get(aX+"/tree",{params:t})))),eh(this,"loadMostUsedInPostsByMember",(async t=>this.data(await this.get(aX+"/most-used-in-posts-by-member",{params:t})))),eh(this,"loadLastUsedInPostsByMember",(async t=>this.data(await this.get(aX+"/last-used-in-posts-by-member",{params:t}))))}}const lX=new sX;var uX={name:"select-category",props:{id:{type:String,required:!0},value:{type:Number},errors:{type:Array},label:{type:String},shortcut:{type:Boolean,default:!0},type:{type:Array},industry:{type:Array},business:{type:Array},language:{type:String},indicateSelectable:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},data:function(){return{bundle:{id_9108:"Cancel",id_9221:"OK",id_9587:"Choose category",id_9630:"Select last used",id_10110:"Main categories",id_10111:"The selected category does not have any subcategories.",id_11692:"Selectable",id_11721:"Most used categories",id_11722:"See all main categories",id_11723:"Missing a category?",id_11724:"N/A",id_11725:"N/A",id_11726:"N/A",id_11727:"Start",id_11728:"Search result",id_11729:"Show more results",id_11730:"Search for category",id_11731:"No categories matched your search: {0}"},isOpen:!1,featuredCategories:{first:0,max:6,list:[],cols:[],loading:!1,loaded:!1},categoryPath:{},childCategories:{},categoryResult:{first:0,max:12,list:[],cols:[],loading:!1,loadingMore:!1},shortcutCategory:{data:null,loading:!1,loaded:!1},query:"",action:"",categoryId:null,category:null}},created:function(){var t=this;a().$bundle("portal",t.bundle,(function(e){t.bundle=e})),t.init(),t.loadShortcutCategory()},computed:{help:function(){return!!this.$slots.default},invalid:function(){return this.errors&&this.errors.length>0},mailto:function(){var t="";return"N/A"!=this.bundle.id_11724&&"N/A"!=this.bundle.id_11725&&"N/A"!=this.bundle.id_11726&&(t+="mailto:",t+=this.bundle.id_11724,t+="?subject="+encodeURIComponent(this.bundle.id_11725),t+="&body="+encodeURIComponent(this.bundle.id_11726)),t},typeArray:function(){var t=[];
34return this.type&&(Array.isArray(this.type)?t=this.type:"string"==typeof this.type&&(-1!=this.type.indexOf(",")?t=this.type.split(","):t.push(this.type))),t},industryArray:function(){var t=[];return this.industry&&(Array.isArray(this.industry)?t=this.industry:"string"==typeof this.industry&&(-1!=this.industry.indexOf(",")?t=this.industry.split(","):t.push(this.industry))),t},businessArray:function(){var t=[];return this.business&&(Array.isArray(this.business)?t=this.business:"string"==typeof this.business&&(-1!=this.business.indexOf(",")?t=this.business.split(","):t.push(this.business))),t},typeAndIndustryAndBusinessArray:function(){var t=[];return t.push(...this.typeArray),t.push(...this.industryArray),t.push(...this.businessArray),t}},methods:{setNewValue:function(t){this.$emit("input",t)},init:function(){this.value?this.openCategory(this.value):this.openFront()},reset:function(){this.query="",this.action="",this.init()},open:function(){this.isOpen=!0,this.init()},close:function(){this.isOpen=!1,this.reset()},openFront:function(){this.action="front",this.categoryId=null,this.loadFeaturedCategories()},openMain:function(){this.action="main",this.categoryId=null,this.loadCategories(null)},openResult:function(){this.action="result",this.categoryId=null},openCategory:function(t){var e=this;e.categoryId=t,e.category=null,e.loadCategoryPath(t).then((function(t){var i=t?t[t.length-1]:null;i&&i.id==e.categoryId&&(e.category=i)})),e.loadCategories(t)},ok:function(){this.category&&this.category.selectable&&(this.setNewValue(this.categoryId),this.close())},toCols:function(t){return[t.slice(0,Math.ceil(t.length/2)),t.slice(Math.ceil(t.length/2))]},loadFeaturedCategories:function(){var t=this;t.featuredCategories.loaded||(t.featuredCategories.loading=!0,lX.loadMostUsedInPostsByMember({type:t.typeArray,industry:t.industryArray,business:t.businessArray,first:t.featuredCategories.first,max:t.featuredCategories.max}).then((function(e){t.featuredCategories.list=e,t.featuredCategories.cols=t.toCols(e),t.featuredCategories.loaded=!0})).catch((function(t){console.log(t)})).finally((function(){t.featuredCategories.loading=!1})))},loadCategories:function(t){var e=this;e.childCategories[t]||e.$set(e.childCategories,t,{list:[],cols:[],loading:!1,loaded:!1});var i=e.childCategories[t];i.loaded||(i.loading=!0,lX.loadByParent({parent:t,type:e.typeArray,industry:e.industryArray,business:e.businessArray}).then((function(t){i.list=t,i.cols=e.toCols(t),i.loaded=!0})).catch((function(t){console.log(t)})).finally((function(){i.loading=!1})))},loadCategoryPath:function(t){var e=this;return new Promise((function(i,n){e.categoryPath[t]||e.$set(e.categoryPath,t,{list:[],loading:!1,loaded:!1});var r=e.categoryPath[t];r.loaded?i(r.list):(r.loading=!0,lX.loadPath(t).then((function(t){r.list=t,r.loaded=!0,i(t)})).catch((function(t){console.log(t),n()})).finally((function(){r.loading=!1})))}))},search:function(){this.openResult(),this.categoryResult.first=0,this.searchCategories(!1)},searchCategories:function(t){var e=this;t?(e.categoryResult.first+=e.categoryResult.max,e.categoryResult.loadingMore=!0):e.categoryResult.loading=!0,lX.search({q:e.query,type:e.typeArray,industry:e.industryArray,business:e.businessArray,first:e.categoryResult.first,max:e.categoryResult.max}).then((function(i){t?e.categoryResult.list.push(...i):e.categoryResult.list=i,e.categoryResult.cols=e.toCols(e.categoryResult.list)})).catch((function(t){console.log(t)})).finally((function(){t?e.categoryResult.loadingMore=!1:e.categoryResult.loading=!1}))},loadShortcutCategory:function(){var t=this;t.shortcut&&!t.shortcutCategory.loaded&&(t.shortcutCategory.loading=!0,lX.loadLastUsedInPostsByMember({type:t.typeArray,industry:t.industryArray,business:t.businessArray}).then((function(e){t.shortcutCategory.data=e,t.shortcutCategory.loaded=!0})).catch((function(t){console.log(t)})).finally((function(){t.shortcutCategory.loading=!1})))}},watch:{value:function(){this.init()},typeAndIndustryAndBusinessArray:function(){for(var t in this.featuredCategories.loaded=!1,this.childCategories)this.childCategories[t].loaded=!1;this.shortcutCategory.loaded=!1,this.loadShortcutCategory()}}},cX=uX,hX=Fr(cX,rX,oX,!1,null,null,null),dX=hX.exports,fX=function(){var t=this,e=t._self._c;return e("input-custom",{attrs:{id:t.id,errors:t.errors,label:t.label,language:t.language,required:t.required,loading:t.loading}},t._l(t.availableRegions,(function(i,n){return e("div",{key:n},[e("select",{staticClass:"form-select mb-3",domProps:{value:t.selectedRegionIds[n]},on:{change:t.changed}},[t.noSelection?e("option",{domProps:{value:t.noSelectionValue}},[t._v(t._s(t.noSelectionLabel))]):t._e(),t._l(i,(function(i,n){return e("option",{key:n,domProps:{value:i.id}},[t._v(t._s(i.name))])}))],2)])})),0)},pX=[];const gX=window.contextPath+"/rest/regions",mX=window.contextPath+"/rest/countries";class vX extends ih{constructor(){super(),eh(this,"loadById",(async t=>this.data(await this.get(gX+"/"+t)))),eh(this,"loadAll",(async t=>this.data(await this.get(mX+"/"+t+"/regions")))),eh(this,"loadPath",(async t=>this.data(await this.get(gX+"/path",{params:{id:t}}))))}}const yX=new vX;
34var bX={name:"select-region",props:{id:{type:String,required:!0},value:{type:[Number,String]},country:{type:[Number,String],required:!0},errors:{type:Array},label:{type:String},noSelection:{type:Boolean},noSelectionValue:{type:String},noSelectionLabel:{type:String},language:{type:String},required:{type:Boolean}},data:function(){return{mainRegions:[],loading:!1,loaded:!1}},created:function(){this.loadRegions()},computed:{availableRegions:function(){var t=[];if(this.value)for(var e=0;e<this.selectedRegions.length;e++){var i=this.selectedRegions[e];0==e&&t.push(i.siblings),i.children&&i.children.length&&t.push(i.children)}return 0==t.length&&t.push(this.mainRegions),t},selectedRegions:function(){var t=[];if(this.value){var e=this.findRegion(this.mainRegions,this.value);t:while(e){if(t.push(e),e.parents)for(var i=0;i<e.parents.length;i++){var n=e.parents[i];if(n.children)for(var r=0;r<n.children.length;r++){var o=n.children[r];if(e.id==o.id){e=n;continue t}}}break}t.reverse()}return t},selectedRegionIds:function(){for(var t=[],e=0;e<this.selectedRegions.length;e++)t.push(this.selectedRegions[e].id);return t}},watch:{country:function(){this.reset(),this.loadRegions()}},methods:{reset:function(){this.mainRegions=[],this.loading=!1,this.loaded=!1},loadRegions:function(){!this.loaded&&this.country&&(this.loading=!0,yX.loadAll(this.country).then((t=>{this.setRegionsWithParentsAndSiblings(null,t),this.mainRegions=t,t&&this.findRegion(t,this.value)||this.$emit("input",null)})).catch((t=>{console.log(t)})).finally((()=>{this.loading=!1})))},setRegionsWithParentsAndSiblings:function(t,e){if(e)for(var i=0;i<e.length;i++){var n=e[i];t&&(n.parents=t),n.siblings=e,this.setRegionsWithParentsAndSiblings(e,n.children)}},findRegion:function(t,e){if(t&&e)for(var i=0;i<t.length;i++){var n=t[i];if(n.id==e)return n;if(n.children&&(n=this.findRegion(n.children,e),n))return n}return null},changed:function(t){this.$emit("input",t.target.value)}}},_X=bX,wX=Fr(_X,fX,pX,!1,null,null,null),xX=wX.exports,SX=function(){var t=this,e=t._self._c;return e("time",{attrs:{datetime:t.isoFormat}},[t._t("prepend"),t._v(t._s(t.finalValue)),t._t("append")],2)},CX=[];a().use(to);var kX={name:"smart-date",props:{value:{type:Object,validator:function(t){return Ar.isDateTime(t)}},label:{type:String,default:"{0} at {1}"},todayLabel:{type:String,default:"Today"},yesterdayLabel:{type:String,default:"Yesterday"},tomorrowLabel:{type:String,default:"Tomorrow"},capitalize:{type:Boolean,default:!1},yearFormat:{type:String,default:"MMMM d, yyyy"},dateFormat:{type:String,default:"MMMM d"},timeFormat:{type:String,default:"HH:mm"},firstWeekday:{type:Number,default:1,validator:function(t){return t>=1&&t<=7}},locale:{type:String,default:"en"}},computed:{finalValue:function(){return this.relativeValue&&this.relativeValue.length?this.relativeValue.substring(0,1).toUpperCase()+this.relativeValue.substring(1):this.relativeValue},relativeValue:function(){const t=a().$luxon.DateTime.now();if(a().$datetimeUtil.isSameDate(this.value,t))return this.label.replace("{0}",this.todayLabel).replace("{1}",this.formattedTimeValue);const e=t.minus({days:1});if(a().$datetimeUtil.isSameDate(this.value,e))return this.label.replace("{0}",this.yesterdayLabel).replace("{1}",this.formattedTimeValue);const i=t.plus({days:1});if(a().$datetimeUtil.isSameDate(this.value,i))return this.label.replace("{0}",this.tomorrowLabel).replace("{1}",this.formattedTimeValue);const n=this.value.diff(t,["days"]);return n.days>-200&&n.days<200?this.label.replace("{0}",this.formattedDateValue).replace("{1}",this.formattedTimeValue):this.formattedYearValue},formattedYearValue:function(){return a().$datetimeUtil.getAsString(this.value,this.yearFormat,this.datetimeUtilOptions)},formattedDateValue:function(){return a().$datetimeUtil.getAsString(this.value,this.dateFormat,this.datetimeUtilOptions)},formattedTimeValue:function(){return a().$datetimeUtil.getAsString(this.value,this.timeFormat,this.datetimeUtilOptions)},isoFormat:function(){return a().$datetimeUtil.getAsString(this.value,"yyyy-MM-dd HH:mm:ss",this.datetimeUtilOptions)},datetimeUtilOptions:function(){return{firstWeekday:this.firstWeekday,locale:this.locale}}}},MX=kX,TX=Fr(MX,SX,CX,!1,null,null,null),DX=TX.exports,IX=function(){var t=this,e=t._self._c;return t.value?e("a",{attrs:{href:t.href,target:t.value.external?"_blank":""}},[t.slot?[t._t("default")]:[t._v(" "+t._s(t.value.name)+" ")]],2):t._e()},AX=[],OX={name:"smart-link",props:{value:{type:Object}},computed:{href:function(){return this.value.target&&this.value.target.startsWith("/")&&!this.value.target.startsWith(window.contextPath)?window.contextPath+this.value.target:this.value.target},slot:function(){return!!this.$scopedSlots.default}}},EX=OX,PX=Fr(EX,IX,AX,!1,null,null,null),LX=PX.exports,RX=function(){var t=this,e=t._self._c;return e("div",{class:t.versionStyleClass},[e("input",{ref:"copy",staticClass:"d-none",attrs:{type:"text"},domProps:{value:t.rawLink}}),e("div",{staticClass:"row g-0"},[t.isEnabled("send")?e("a",{staticClass:"col-auto sobu sobu-send",attrs:{href:"#sendtocolleague",title:t.bundle.id_8322}},[e("i",{staticClass:"fa-solid fa-envelope"}),e("span",[t._v(t._s(t.bundle.id_8322))])]):t._e(),t.isEnabled("copy")?e("a",{staticClass:"col-auto sobu sobu-copy",attrs:{href:t.rawLink,title:t.bundle.id_11295,target:"_blank"},on:{click:function(e){return e.preventDefault(),t.copy()}}},[e("i",{staticClass:"fa-light fa-link"}),e("span",[t._v(t._s(t.bundle.id_11295))])]):t._e(),t.isEnabled("facebook")?e("a",{staticClass:"col-auto sobu sobu-facebook",attrs:{href:t.facebook,title:t.bundle.id_9625,target:"_blank"},on:{click:function(e){return e.preventDefault(),t.open(t.facebook)}}},[e("i",{staticClass:"fa-brands fa-facebook-f"}),e("span",[t._v("Facebook")])]):t._e(),t.isEnabled("twitter")?e("a",{staticClass:"col-auto sobu sobu-twitter",attrs:{href:t.twitter,title:t.bundle.id_9626,target:"_blank"},on:{click:function(e){return e.preventDefault(),t.open(t.twitter)}}},[e("i",{staticClass:"fa-brands fa-twitter"}),e("span",[t._v("Twitter")])]):t._e(),t.isEnabled("linkedin")?e("a",{staticClass:"col-auto sobu sobu-linkedin",attrs:{href:t.linkedin,title:t.bundle.id_9627,target:"_blank"},on:{click:function(e){return e.preventDefault(),t.open(t.linkedin)}}},[e("i",{staticClass:"fa-brands fa-linkedin-in"}),e("span",[t._v("LinkedIn")])]):t._e(),t.isEnabled("print")?e("a",{staticClass:"col-auto sobu sobu-print",attrs:{href:t.rawLink,title:t.bundle.id_119,target:"_blank"},on:{click:function(e){return e.preventDefault(),t.print()}}},[e("i",{staticClass:"fa-light fa-print"}),e("span",[t._v(t._s(t.bundle.id_119))])]):t._e()])])},zX=[];a().use(Ed);
34var NX={name:"social-buttons",props:["value","version"],data:function(){return{bundle:{id_119:"Print page",id_8322:"Send to a colleague",id_9625:"Share on Facebook",id_9626:"Share on Twitter",id_9627:"Share on LinkedIn",id_11295:"Copy link"}}},created:function(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},computed:{rawLink:function(){return window.location},link:function(){return encodeURI(this.rawLink)},title:function(){return encodeURI(document.title)},facebook:function(){return"https://www.facebook.com/sharer.php?t="+this.title+"&u="+this.link},twitter:function(){return"https://twitter.com/intent/tweet?url="+this.link},linkedin:function(){return"https://www.linkedin.com/sharing/share-offsite/?url="+this.link},valueArray:function(){return this.value?this.value instanceof Array?this.value:this.value.replace(/\s/g,"").split(","):[]},versionStyleClass:function(){return 2===this.version||"2"===this.version?"sobu-v2":"sobu-v1"}},methods:{isEnabled:function(t){return-1!=this.valueArray.indexOf(t)},copy:function(){this.$refs.copy.select(),this.$refs.copy.setSelectionRange(0,this.rawLink.length),navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(this.$refs.copy.value):console.log("Could not copy the link. Maybe you are not running in a secure context like HTTPS or localhost.")},open:function(t){const e="xs"==a().$mediaWidth();if(e)return window.open(t,"_blank");{const e=window.innerHeight,i=window.innerWidth,n=Math.min(600,.6*e),r=Math.min(800,.8*i);return window.open(t,"",["height="+n,"left="+(i-r)/2,"top="+(e-n)/2,"width="+r,"status=1","toolbar=0"].join(","))}},print:function(){window.print()}}},FX=NX,BX=Fr(FX,RX,zX,!1,null,null,null),VX=BX.exports,$X=function(){var t=this,e=t._self._c;return e("li",{ref:"app",class:{active:t.active,disabled:t.disabled,errors:t.errors},attrs:{id:t.id}},[t.disabled?e("span",[t._v(t._s(t.value)),t.errors?e("small",{staticClass:"ms-2"},[t._v("("+t._s(t.bundle.id_11804.replace("{0}",t.errors))+")")]):t._e()]):e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goto(t.value)}}},[t._v(t._s(t.value)),t.errors?e("small",{staticClass:"ms-2"},[t._v("("+t._s(t.bundle.id_11804.replace("{0}",t.errors))+")")]):t._e()]),e("transition",{attrs:{name:"slide-fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}]},[t._t("default"),t.next?e("div",{staticClass:"mt-4 mb-2"},[e("button",{staticClass:"btn btn-primary",on:{click:function(e){return e.preventDefault(),t.goto(t.next)}}},[t._v(t._s(t.bundle.id_12256))])]):t._e()],2)])],1)},jX=[],WX={name:"steps",props:["id","value","next","current","disabled","errors"],data:function(){return{bundle:{id_11804:"{0} error(s)",id_12256:"Next"}}},computed:{active:function(){return this.current==this.value}},methods:{goto:function(t){this.$emit("goto",this.active&&this.value==t?null:t),this.$nextTick((()=>{window.dispatchEvent(new Event("resize"));try{const t=this.$refs.app,e=t.getBoundingClientRect(),i=e.top-150;i<0&&window.scrollBy(0,i)}catch(t){console.log(t)}}))}},created:function(){var t=this;a().$bundle("portal",t.bundle,(function(e){t.bundle=e}))}},HX=WX,UX=Fr(HX,$X,jX,!1,null,null,null),qX=UX.exports,GX=function(){var t=this,e=t._self._c;return e("ol",{staticClass:"material-design-steps",attrs:{id:t.id}},[t._t("default",null,{value:t.value})],2)},YX=[],XX={name:"steps",props:["id","value"]},ZX=XX,KX=Fr(ZX,GX,YX,!1,null,null,null),JX=KX.exports;a().use(zd);var QX,tZ,eZ,iZ,nZ,rZ,oZ,aZ,sZ,lZ,uZ,cZ,hZ={name:"tracker",props:["a","tn","tr"],render:function(){return this.$slots.default},mounted:function(){this.$track(this.a,this.tn,this.tr)}},dZ=hZ,fZ=Fr(dZ,QX,tZ,!1,null,null,null),pZ=fZ.exports,gZ=function(){var t=this,e=t._self._c;return t.show&&t.companies.length?e("div",{staticClass:"vatin-box"},[e("span",[t._v(t._s(t.bundle.id_12055))]),t._l(t.companies,(function(i){return e("a",{key:i.vatin,attrs:{href:t.watchUrl(i)}},[t._v(" "+t._s(i.name)+" ")])}))],2):t._e()},mZ=[],vZ={name:"vatin-box",props:{advertorial:{type:Boolean,default:!1},vatins:{type:Array,default:()=>[]}},data(){return{companies:[],bundle:{id_12055:"Key numbers for:"}}},created(){a().$bundle("portal",this.bundle,(t=>{this.bundle=t}))},computed:{show(){return!this.advertorial&&Array.isArray(this.vatins)&&this.vatins.length>0}},mounted(){this.show&&this.vatins.forEach((t=>this.load(t)))},methods:{watchUrl(t){return`${window.domain}/watch/${t.vatin}/${t.slug}`},load(t){window.CvrRestApi&&window.cvrRestApiAddress&&window.CvrRestApi("Authorization","Access").ajax({url:`${window.cvrRestApiAddress}/companies/${t}`,method:"GET",success:e=>{this.companies.push({vatin:t,name:e.name,slug:window.Vue&&window.Vue.$slugUtil?window.Vue.$slugUtil.withDashes(e.name):String(e.name||"").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-z0-9]/g,"")})},error:t=>{console.log(t)}})}}},yZ=vZ,bZ=Fr(yZ,gZ,mZ,!1,null,"02736bea",null),_Z=bZ.exports,wZ={install(t){t.$images=new function(){const t=function(t){let e="";if(t)for(let i=0;i<t.url.length;i++){0!=e.length&&(e+=", ");const n=t.url[i],r=n.imageSize;e+=n.url,1!=r.pixelDensity&&(e+=" "+r.pixelDensity+"x")}return e},e=function(t){let e="";if(t){const i=t.mediaSize;null!=i.minWidth&&(e+="(min-width: "+i.minWidth+"px)"),null!=i.maxWidth&&(null!=i.minWidth&&(e+=" and "),e+="(max-width: "+i.maxWidth+"px)")}return e},i=function(t){let e;if(t)for(let i=0;i<t.length;i++){const n=t[i];for(let t=0;t<n.url.length;t++){const i=n.url[t],r=i.imageSize;(!e||1!=e.imageSize.pixelDensity&&1==r.pixelDensity||e.imageSize.width*e.imageSize.height<r.width*r.height&&1==r.pixelDensity)&&(e=i)}}return e?.url};return{getSrcset:t,getMedia:e,getDefaultImageSrc:i}}}},xZ=wZ,SZ=Fr(xZ,eZ,iZ,!1,null,null,null),CZ=SZ.exports,kZ={install(t){t.$linkBuilder=new function(){var e=function(e){var i=e.type|e.typeId;return t.$types.getPathName(i)};return{viewPost:function(i,n){return i+"/"+e(n)+"/view/"+n.id+"/"+t.$slugUtil.withUnderscores(n.name)},viewSupplement:function(e,i){return e+"/supplement/view/"+i.id+"/"+t.$slugUtil.withDashes(i.name)}}}}},MZ=kZ,TZ=Fr(MZ,nZ,rZ,!1,null,null,null),DZ=TZ.exports,IZ={install(t){const e=.02,i=576,n=768,r=992,o=1200,a=1400,s={active:!1,designation:"xs",minWidth:null,maxWidth:i-e},l={active:!1,designation:"sm",minWidth:i,maxWidth:n-e},u={active:!1,designation:"md",minWidth:n,maxWidth:r-e},c={active:!1,designation:"lg",minWidth:r,maxWidth:o-e},h={active:!1,designation:"xl",minWidth:o,maxWidth:a-e},d={active:!1,designation:"xxl",minWidth:a,maxWidth:null};t.mixin({data(){return{mediaSizes:{xs:s,sm:l,md:u,lg:c,xl:h,xxl:d,order:[s,l,u,c,h,d],maxWidthReduction:e}}},methods:{$registerMediaQuery(t,e){const i=window.matchMedia(e),n=()=>{t.active=i.matches};n();const r=()=>n();i.addEventListener?i.addEventListener("change",r):i.addListener(r),this._mediaQueryListeners||(this._mediaQueryListeners={}),this._mediaQueryListeners[t.designation]=()=>{i.removeEventListener?i.removeEventListener("change",r):i.removeListener(r)}},$unregisterMediaQuery(t){this._mediaQueryListeners&&this._mediaQueryListeners[t]&&(this._mediaQueryListeners[t](),delete this._mediaQueryListeners[t])}},mounted(){this.$registerMediaQuery(this.mediaSizes.xs,`(max-width: ${s.maxWidth}px)`),this.$registerMediaQuery(this.mediaSizes.sm,`(min-width: ${l.minWidth}px) and (max-width: ${l.maxWidth}px)`),this.$registerMediaQuery(this.mediaSizes.md,`(min-width: ${u.minWidth}px) and (max-width: ${u.maxWidth}px)`),this.$registerMediaQuery(this.mediaSizes.lg,`(min-width: ${c.minWidth}px) and (max-width: ${c.maxWidth}px)`),this.$registerMediaQuery(this.mediaSizes.xl,`(min-width: ${h.minWidth}px) and (max-width: ${h.maxWidth}px)`),this.$registerMediaQuery(this.mediaSizes.xxl,`(min-width: ${d.minWidth}px)`)},beforeDestroy(){this._mediaQueryListeners&&(Object.values(this._mediaQueryListeners).forEac
34h((t=>t())),this._mediaQueryListeners=null)}})}},AZ=IZ,OZ=Fr(AZ,oZ,aZ,!1,null,null,null),EZ=OZ.exports,PZ={install(t){t.$types=new function(){const t=function(t){switch(t){case 1:case 3:return"machine";case 2:return"product";case 4:return"competence";case 6:return"job";case 8:return"course";case 10:return"announcement";default:throw"Unsupported type: "+t}};return{getTrackerTargetName:t,getPathName:t}}}},LZ=PZ,RZ=Fr(LZ,sZ,lZ,!1,null,null,null),zZ=RZ.exports,NZ={install(t){t.$videoPlugin=new function(){var t=[{link:"https://youtube.com/watch?v={0}",embed:"https://www.youtube.com/embed/{0}?rel=0",patterns:[/(?:http(?:s)?:\/\/(?:www\.)?youtu.be\/([a-zA-Z0-9_-]+))/i,/(?:http(?:s)?:\/\/(?:www\.)?youtube.com\/watch(?:.+)v=([a-zA-Z0-9_-]+))/i],prefix:"youtube:"},{link:"https://vimeo.com/{0}",embed:"https://player.vimeo.com/video/{0}?h={1}&color=ffffff&title=0&byline=0&portrait=0",patterns:[/(?:http(?:s)?:\/\/(?:www\.)?vimeo.com\/([a-zA-Z0-9_-]+\/[a-zA-Z0-9]+))/i],prefix:"vimeo_new:"},{link:"https://vimeo.com/{0}",embed:"https://player.vimeo.com/video/{0}?color=ffffff&title=0&byline=0&portrait=0",patterns:[/(?:http(?:s)?:\/\/(?:www\.)?vimeo.com\/([a-zA-Z0-9_-]+))/i],prefix:"vimeo:"}],e=function(t,e){if(t)for(var i=0;i<e.length;i++){var n=e[i],r=t.match(n);if(r&&r.length>1)return r[1]}return null},i=function(i){if(i)for(var n=0;n<t.length;n++){var r=t[n],o=e(i,r.patterns);if(o)return r.prefix+o}return null},n=function(e){if(e){for(var i=0;i<t.length;i++){var n=t[i];if(e.startsWith(n.prefix))return n}return t[0]}return null},r=function(t){var e=n(t);return e?(t=t.substring(e.prefix.length),e.link.replace("{0}",t)):null},o=function(t){var e=n(t);if(e){if("vimeo_new:"===e.prefix){t=t.substring(e.prefix.length);const n=t.split("/"),r=n[0],o=n[1];var i=e.embed.replace("{0}",r);return i=i.replace("{1}",o),i}return t=t.substring(e.prefix.length),e.embed.replace("{0}",t)}return null};return{getTokenByLink:i,getLinkByToken:r,getEmbedByToken:o}}}},FZ=NZ,BZ=Fr(FZ,uZ,cZ,!1,null,null,null),VZ=BZ.exports,$Z=function(){var t=this,e=t._self._c;return t.shuffled.length>t.batchSizeDefault?e("div",{staticClass:"member-carrousel-box",on:{mouseover:function(e){return t.stopRotation()},mouseout:function(e){return t.startRotation()}}},[t.headline?e("h6",[t._v(t._s(t.headline))]):t._e(),e("transition",{attrs:{name:"slide-left",mode:"out-in"}},[e("ul",{key:t.currentIndex,staticClass:"row"},t._l(t.computedList,(function(t){return e("li",{key:"member"+(t?t.id:""),staticClass:"col-4 col-md-2"},[e("tracker",{attrs:{a:"impression",tn:"member",tr:t.id}},[e("a",{attrs:{href:t.href}},[e("img",{attrs:{src:t.logo,alt:t.company,loading:"lazy"}})])])],1)})),0)])],1):t._e()},jZ=[],WZ={name:"member-carrousel-box",props:{headline:{type:String},value:{type:Array,required:!0},shuffle:{type:Boolean,required:!0}},data:function(){return{contextPath:window.contextPath,ready:!1,shuffled:[],rotation:null,currentIndex:0,batchSizeDefault:6}},created:function(){if(this.shuffle)for(var t=0;t<this.value.length;t++)this.shuffled.splice(Math.floor(Math.random()*(this.shuffled.length+1)),0,this.value[t]);else for(var e=0;e<this.value.length;e++)this.shuffled.push(this.value[e]);this.startRotation()},computed:{computedList:function(){var t=[];for(let e=0;e<this.batchSize;e++)t.push(this.shuffled[(this.currentIndex+e)%this.shuffled.length]);return t},batchSize:function(){return xs()?3:this.batchSizeDefault}},methods:{incrementIndex(){this.currentIndex=(this.currentIndex+this.batchSize)%this.shuffled.length},startRotation:function(){this.shuffled.length>6&&(this.rotation=setInterval((()=>{this.incrementIndex()}),5e3))},stopRotation:function(){clearInterval(this.rotation),this.rotation=null}}},HZ=WZ,UZ=Fr(HZ,$Z,jZ,!1,null,null,null),qZ=UZ.exports,GZ=function(){var t=this,e=t._self._c;return e("div",{staticClass:"corporate-client-management-box"},[e("modal",{attrs:{open:t.showInvitePopup,title:t.bundle.id_12605},on:{close:t.cancelInvitePopup},scopedSlots:t._u([{key:"footer",fn:function(){return[e("button",{staticClass:"btn btn-success",class:{disabled:t.submittingInvite},attrs:{id:"invitationEmailButton",type:"submit"},on:{click:function(e){return t.submitInvite()}}},[t._v(" "+t._s(t.bundle.id_12608)+" ")])]},proxy:!0}])},[e("global-errors",{attrs:{value:t.inviteErrors}}
34),e("label",{staticClass:"form-label",attrs:{for:"invitationEmail"}},[t._v(t._s(t.bundle.id_12606))]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.invitationEmail,expression:"invitationEmail"}],staticClass:"form-control",attrs:{id:"invitationEmail",name:"invitationEmail",type:"email",placeholder:t.bundle.id_12607,required:!0},domProps:{value:t.invitationEmail},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.submitInvite()},input:function(e){e.target.composing||(t.invitationEmail=e.target.value)}}})],1),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("ul",{staticClass:"nav nav-tabs d-none d-sm-flex",attrs:{role:"tablist"}},[e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",class:{active:"management"===t.activeTab},attrs:{id:"nav-management",role:"tab",type:"button"},on:{click:function(e){return t.changeTab("management")}}},[t._v(" "+t._s(t.bundle.id_12576)+" "),t.loading?e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}}):t._e()])]),e("li",{staticClass:"nav-item",attrs:{role:"presentation"}},[e("button",{staticClass:"nav-link",class:{active:"stats"===t.activeTab},attrs:{id:"nav-stats",role:"tab",type:"button"},on:{click:function(e){return t.changeTab("stats")}}},[t._v(" "+t._s(t.bundle.id_12577)+" "),t.loading?e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}}):t._e()])])])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"d-block d-sm-none mb-4"},[e("select",{staticClass:"form-select",on:{change:function(e){return t.changeTab(e.target.value)}}},[e("option",{attrs:{value:"management"}},[t._v(t._s(t.bundle.id_12576))]),e("option",{attrs:{value:"stats"}},[t._v(t._s(t.bundle.id_12577))])])])])]),e("div",{staticClass:"tab-content table-responsive-md"},[e("div",{staticClass:"row"},[e("global-errors",{attrs:{value:t.errors}}),t.successes.length>0?e("div",t._l(t.successes,(function(i,n){return e("div",{key:n,staticClass:"alert alert-success d-block"},[t._v(t._s(i))])})),0):t._e()],1),e("div",{staticClass:"tab-pane fade",class:{"active show":"management"===t.activeTab},attrs:{id:"management",role:"tabpanel"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-3"},[e("button",{staticClass:"btn btn-success",class:{disabled:t.loading},on:{click:function(e){return t.openInvitePopup()}}},[t._v(" "+t._s(t.bundle.id_12604)+" ")])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 max-users-box"},[e("span",{staticClass:"mb4"},[t._v(t._s(t.bundle.id_12578)+" "+t._s(t.persons.length))])])])]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"table-wrapper"},[e("table",{staticClass:"table mb-4 table-hover",attrs:{id:"personsTable"}},[e("thead",[e("tr",[e("th",[t._v(t._s(t.bundle.id_12579))]),e("th",[t._v(t._s(t.bundle.id_12580))]),e("th",{staticStyle:{width:"8rem"}},[t._v(t._s(t.bundle.id_12581))])])]),e("tbody",[t._l(t.persons,(function(i){return e("tr",{key:i.id},[e("td",[t._v(t._s(i.name))]),e("td",{staticClass:"allow-break"},[t._v(t._s(i.email))]),e("td",{staticClass:"actions text-end"},[i.active?t._e():e("a",{staticClass:"btn-text ms-2",class:{disabled:t.loading},attrs:{title:t.bundle.id_12628},on:{click:function(e){return t.resendActivation(i)}}},[e("i",{staticClass:"fa-light fa-envelope"})]),t.admins.some((t=>t.id!==i.id))?e("a",{staticClass:"btn-text ms-2",class:{disabled:t.loading},attrs:{title:t.bundle.id_12629},on:{click:function(e){return t.deleteSubscription(i)}}},[e("i",{staticClass:"fa-light fa-trash-alt"})]):t._e()])])})),t.loadingPersons?e("tr",[e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}})]):t._e()],2)])])]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"table-wrapper"},[e("table",{staticClass:"table mb-4 table-hover"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.bundle.id_12583))]),e("th",[t._v(t._s(t.bundle.id_12584))])])]),e("tbody",[t._l(t.admins,(function(i){return e("tr",{key:i.id},[e("td",[t._v(t._s(i.name))]),e("td",{staticClass:"allow-break"},[t._v(t._s(i.email))])])})),t.loadingAdmins?e("tr",[e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}})]):t._e()],2)])]),e("div",{staticClass:"table-wrapper"},[e("table",{staticClass:"table mb-4 table-hover"},[e("thead",[e("tr",[e("th",{attrs:{colspan:"3"}},[t._v(t._s(t.bundle.id_12585))])])]),e("tbody",[t._l(t.contacts,(function(i){return e("tr",{key:i.id},[e("td",[t._v(t._s(i.name))]),e("td",{staticClass:"allow-break"},[t._v(t._s(i.email))]),e("td",[t._v(t._s(t.bundle.id_12586))])])})),null!=t.corporateClient&&null!=t.corporateClient.administrator?e("tr",{key:t.corporateClient.administrator.id},[e("td",[t._v(t._s(t.corporateClient.administrator.name))]),e("td",{staticClass:"allow-break"},[t._v(t._s(t.corporateClient.administrator.mail))]),e("td",[t._v(t._s(t.bundle.id_12587))])]):t._e(),t.loadingContacts?e("tr",[e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}})]):t._e()],2)])])]),e("div",{staticClass:"col-12"},[e("div",{staticClass:"table-wrapper"},[e("table",{staticClass:"table mb-4 table-hover"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.bundle.id_12588))]),e("th",[t._v(t._s(t.bundle.id_12589))])])]),null!==t.corporateClient?e("tbody",[t._l(t.corporateClient.corporateClientHosts,(function(i){return e("tr",{key:i.id},[e("td",[t._v(t._s(i.host.name))]),e("td",{staticClass:"ip-access-box"},[i.ipAccess&&t.corporateClient.ipAccess?e("span",{staticClass:"check"},[e("i",{staticClass:"fas fa-check fa-lg"})]):e("span",{staticClass:"cross"},[e("i",{staticClass:"fas fa-xmark-large fa-lg"})])])])})),t.loadingCorporateClient?e("tr",[e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}})]):t._e()],2):t._e()])])])])]),e("div",{staticClass:"tab-pane fade",class:{"active show":"stats"===t.activeTab},attrs:{id:"stats",role:"tabpanel"}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"table-wrapper"},[e("table",{staticClass:"table mb-4 table-hover"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.bundle.id_12590))]),e("th",[t._v(t._s(t.bundle.id_12591))])])]),null!==t.readData?e("tbody",[t._l(t.readData,(function(i){return e("tr",{key:i.host+i.title},[e("td",[t._v(t._s(i.host))]),e("td",[e("span",[t._v(t._s(i.title))])])])})),t.loadingReadData?e("tr",[e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}})]):t._e()],2):t._e()])])])]),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("div",{staticClass:"table-wrapper col-6 col-md-4"},[e("table",{staticClass:"table mb-4 table-hover"},[e("thead",[e("tr",[e("th",[t._v(t._s(t.bundle.id_12592))])])]),null!==t.activated?e("tbody",[e("tr",[e("td",[e("span",{staticStyle:{"text-align":"center"}},[t._v(t._s(t.activated)+"%")])])]),t.loadingPersons?e("tr",[e("i",{staticClass:"fa fa-loading-black-16",staticStyle:{"margin-left":"0.5rem"}}
34)]):t._e()]):t._e()])])])])])])])],1)},YZ=[],XZ={name:"corporate-client-management-box",props:{corporateClientId:{type:Number,required:!0}},data:function(){return{contextPath:window.contextPath,corporateClient:null,persons:[],admins:[],contacts:[],readData:[],activated:0,showInvitePopup:!1,submittingInvite:!1,invitationEmail:"",loadingPersons:!0,loadingCorporateClient:!0,loadingAdmins:!0,loadingContacts:!0,loadingReadData:!0,errors:[],successes:[],inviteErrors:[],activeTab:"management",bundle:{id_12576:"Manage subscription",id_12577:"Subscription usage",id_12578:"User count",id_12579:"Name",id_12580:"Email",id_12581:"Actions",id_12583:"Subscription administrator",id_12584:"Email",id_12585:"Contacts",id_12586:"Your ref",id_12587:"Our ref",id_12588:"Media subscriptions",id_12589:"IP access",id_12590:"Media",id_12591:"Title",id_12592:"Activation rate",id_12604:"Invite new subscriber",id_12605:"Invite new subscriber",id_12606:"Email",id_12607:"[email protected]",id_12608:"Send invitation",id_12609:"Failed to load persons.",id_12610:"Failed to load admins.",id_12611:"Failed to load contacts.",id_12612:"Failed to load company information.",id_12613:"Failed to load read articles.",id_12614:"Failed to send invitation email.",id_12615:"Email not correctly formatted.",id_12619:"Failed to delete subscription for ",id_12620:"Successfully sent invitation email.",id_12621:"Successfully removed subscription for ",id_12628:"Resend activation email",id_12629:"Delete",id_12630:"Could not resend an activation email for: ",id_12631:"Activation mail has been resend to "}}},created:function(){this.loadPersons(),this.loadCorporateClient(),this.loadAdmins(),this.loadContacts(),this.loadReadData();var t=this;a().$bundle("portal",t.bundle,(function(e){t.bundle=e}))},methods:{async loadPersons(){this.loadingPersons=!0;try{this.$services.corporateClientSecureService.loadPersons(this.corporateClientId).then((t=>{this.persons=t;let e=0;for(var i in this.persons)this.persons[i].active&&e++;this.activated=(e/this.persons.length*100).toFixed(2)})).catch((t=>{console.error(t),this.errors.push(this.bundle.id_12609)})).finally((()=>{this.loadingPersons=!1}))}catch(Mp){console.error(Mp),this.errors.push(this.bundle.id_12609)}},async loadAdmins(){this.loadingAdmins=!0;try{this.$services.corporateClientSecureService.loadAdmins(this.corporateClientId).then((t=>{this.admins=t})).catch((t=>{console.error(t),this.errors.push(this.bundle.id_12610)})).finally((()=>{this.loadingAdmins=!1}))}catch(Mp){console.error(Mp),this.errors.push(this.bundle.id_12610)}},async loadContacts(){this.loadingContacts=!0;try{this.$services.corporateClientSecureService.loadContacts(this.corporateClientId).then((t=>{this.contacts=t})).catch((t=>{console.error(t),this.errors.push(this.bundle.id_12611)})).finally((()=>{this.loadingContacts=!1}))}catch(Mp){console.error(Mp),this.errors.push(this.bundle.id_12611)}},async loadCorporateClient(){this.loadingCorporateClient=!0;try{this.$services.corporateClientSecureService.loadById(this.corporateClientId).then((t=>{this.corporateClient=t})).catch((t=>{console.error(t),this.errors.push(this.bundle.id_12612)})).finally((()=>{this.loadingCorporateClient=!1}))}catch(Mp){console.error(Mp),this.errors.push(this.bundle.id_12612)}},async loadReadData(){this.loadingReadData=!0;try{this.$services.corporateClientSecureService.loadReadData(this.corporateClientId).then((t=>{this.readData=t})).catch((t=>{console.error(t),this.errors.push(this.bundle.id_12613)})).finally((()=>{this.loadingReadData=!1}))}catch(Mp){console.error(Mp),this.errors.push(this.bundle.id_12613)}},async deleteSubscription(t){if(!this.loading){this.loadingPersons=!0;var e=[];try{await this.$services.corporateClientSecureService.deleteSubscription(t.id,this.corporateClientId).then().catch((i=>{console.error(i),e.push(this.bundle.id_12619+t.name)})).finally((()=>{this.loadingPersons=!1}))}catch(Mp){console.error(Mp),e.push(this.bundle.id_12619+t.name)}await this.loadPersons().then((()=>
34{if(0===e.length)this.successes.push(this.bundle.id_12621+t.name);else for(const t in e)this.errors.push(e[t])}))}},openInvitePopup(){this.showInvitePopup=!0},closeInvitePopup(){this.showInvitePopup=!1,this.invitationEmail=""},async submitInvite(){this.submittingInvite=!0,this.inviteErrors=[];try{await this.$services.corporateClientSecureService.invitePerson(this.invitationEmail,this.corporateClientId).then().catch((t=>{if(console.error(t),void 0!==t.response&&t.response.data.length>0&&"ERR_BAD_REQUEST"===t.code)for(let e=0;e<t.response.data.length;e++)this.inviteErrors.push(t.response.data[0].message);else void 0!==t.response&&0===t.response.data.length&&"ERR_BAD_REQUEST"===t.code?this.inviteErrors.push(this.bundle.id_12615):this.inviteErrors.push(this.bundle.id_12614)}))}catch(Mp){console.error(Mp),this.inviteErrors.push(this.bundle.id_12614)}this.submittingInvite=!1,0===this.inviteErrors.length&&(this.successes.push(this.bundle.id_12620),this.closeInvitePopup())},cancelInvitePopup(){this.showInvitePopup=!1,this.invitationEmail=""},changeTab(t){this.activeTab=t},async resendActivation(t){if(!this.loading){this.loadingPersons=!0;var e=[];try{await this.$services.personSecureService.resendActivation(t.id).then().catch((i=>{console.error(i),e.push(this.bundle.id_12630+t.name)})).finally((()=>{this.loadingPersons=!1}))}catch(Mp){console.error(Mp),e.push(this.bundle.id_12630+t.name)}finally{if(0===e.length)this.successes.push(this.bundle.id_12631+t.name);else for(const t in e)this.errors.push(e[t])}}}},computed:{loading:function(){return this.loadingPersons||this.loadingCorporateClient||this.loadingAdmins||this.loadingContacts||this.loadingReadData}}},ZZ=XZ,KZ=Fr(ZZ,GZ,YZ,!1,null,"7fc532ba",null),JZ=KZ.exports,QZ=function(){var t=this,e=t._self._c;return e("modal",{attrs:{open:t.openModal,title:t.bundle.id_12677},on:{close:function(e){t.openModal=!1}},scopedSlots:t._u([{key:"footer",fn:function(){return[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){e.preventDefault(),t.openModal=!1}}},[t._v(" "+t._s(t.bundle.id_12680)+" ")]),e("button",{staticClass:"btn btn-success",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.allowPush.apply(null,arguments)}}},[t._v(" "+t._s(t.bundle.id_12679)+" ")])]},proxy:!0}])},[t._v(" "+t._s(t.bundle.id_12678)+" ")])},tK=[],eK={name:"push-notification-popup",data:function(){return{bundle:{id_12677:"Push notifications",id_12678:"Would you like to receive push notifications from this site? If you accept the browser will open a pop-up asking you to confirm.",id_12679:"Yes",id_12680:"No"},openModal:!1,timeoutId:null}},created:function(){var t=this;a().$bundle("portal",t.bundle,(function(e){t.bundle=e}))},mounted(){const t=$.cookies.get("nm_popup_displayed_push_notification_permission"),e=window.visitor.person&&"default"===Notification.permission,i=this.window.access.module.subscriptions;!t&&e&&i&&(this.timeoutId=setTimeout((()=>{this.showPopup()}),5e3))},beforeDestroy(){clearTimeout(this.timeoutId)},methods:{async allowPush(){this.openModal=!1,await subscribe()},showPopup(){$.cookies.set("nm_popup_displayed_push_notification_permission","true",{path:"/",expiresAt:new Date(Date.now()+1296e6)}),this.openModal=!0}}},iK=eK,nK=Fr(iK,QZ,tK,!1,null,"2503a91c",null),rK=nK.exports;const oK=window.contextPath+"/rest/articles";class aK extends ih{constructor(){super(),eh(this,"loadByVatin",(async t=>this.data(await this.get(oK+"/by-vatin",{params:t})))),eh(this,"loadFpRecommended",(async(t,e)=>this.data(await this.get(oK+"/"+t+"/fp-recommended",{params:{max:e}})))),eh(this,"loadBreaking",(async()=>this.data(await this.get(oK+"/breaking")))),eh(this,"loadByTopic",(async(t,e,i)=>this.data(await this.get(window.contextPath+"/rest/topics/"+t+"/articles",{params:{first:e,max:i}})))),eh(this,"loadBlogArticleList",(async(t,e,i)=>this.data(await this.get(oK+"/blog-articles?articleId="+t+(null!=e?"&latestCreated="+e:"")+"&includeInactive="+i)))),eh(this,"fetchFileJson",(async t=>this.data(await this.get(oK+"/"+t+"/files"))))}}const sK=new aK,lK=window.contextPath+"/rest/bookmarks";class uK extends ad{constructor(){super(),eh(this,"createArticle",(async t=>this.data(await this.put(lK+"/articles/"+t)))),eh(this,"createPost",(async t=>this.data(await this.put(lK+"/posts/"+t)))),eh(this,"remove",(async t=>this.data(await this.delete(lK+"/"+t)))),eh(this,"removeArticle",(async t=>this.data(await this.delete(lK+"/articles/"+t)))),eh(this,"removePost",(async t=>this.data(await this.delete(lK+"/posts/"+t)))),eh(this,"checkArticles",(async t=>{if(!t||0==t.length)return{};const e=t.join(",");return this.data(await this.get(lK+"/articles/check",{params:{articles:e}}))})),eh(this,"checkPosts",(async t=>{if(!t||0==t.length)return{};const e=t.join(",");return this.data(await this.get(lK+"/posts/check",{params:{posts:e}}))})),eh(this,"search",(async t=>this.data(await this.get(lK+"/",{params:t}
34)))),eh(this,"count",(async t=>this.data(await this.get(lK+"/count",{params:t}))))}}const cK=new uK,hK=window.contextPath+"/rest/subscriber/bordas";class dK extends ad{constructor(...t){super(...t),eh(this,"loadSubscription",(async(t,e,i)=>this.data(await this.get(`${hK}/subscriptions/${t}?hostId=${e}&state=${i}`))))}}const fK=new dK,pK=window.contextPath+"/rest/businesses";class gK extends ad{constructor(...t){super(...t),eh(this,"loadByMember",(async t=>this.data(await this.get(pK+"/by-member",{params:{type:t}}))))}}const mK=new gK,vK=window.contextPath+"/rest/certificates";class yK extends ih{constructor(){super(),eh(this,"lookup",(async t=>this.data(await this.get(vK+"/autocomplete",{params:{id:t}}))))}}const bK=new yK,_K=window.contextPath+"/rest/comments";class wK extends ih{constructor(...t){super(...t),eh(this,"prepareNew",(async()=>this.data(await this.get(_K+"/prepare-new")))),eh(this,"create",(async t=>this.data(await this.post(_K,t)))),eh(this,"update",(async(t,e)=>this.data(await this.put(_K+"/"+t,e)))),eh(this,"manage",(async(t,e)=>this.data(await this.get(_K+"/"+t+"/"+e)))),eh(this,"search",(async t=>this.data(await this.get(_K,{params:t})))),eh(this,"count",(async t=>this.data(await this.get(_K+"/count",{params:t}))))}}const xK=new wK,SK=window.contextPath+"/rest/corporate-clients";class CK extends ad{constructor(...t){super(...t),eh(this,"loadByPerson",(async()=>this.data(await this.get(`${SK}/by-person`)))),eh(this,"loadById",(async t=>this.data(await this.get(`${SK}/`+t)))),eh(this,"loadPersons",(async t=>this.data(await this.get(`${SK}/`+t+"/persons")))),eh(this,"loadAdmins",(async t=>this.data(await this.get(`${SK}/`+t+"/admins")))),eh(this,"loadContacts",(async t=>this.data(await this.get(`${SK}/`+t+"/contacts")))),eh(this,"loadReadData",(async t=>this.data(await this.get(`${SK}/`+t+"/most-read")))),eh(this,"deleteSubscription",(async(t,e)=>this.data(await this.delete(`${SK}/`+e+"/subscriptions/"+t)))),eh(this,"invitePerson",(async(t,e)=>this.data(await this.post(`${SK}/`+e+"/invitations",{email:t},{headers:{"content-type":"application/x-www-form-urlencoded"}}))))}}const kK=new CK,MK=window.contextPath+"/rest/countries";class TK extends ih{constructor(){super(),eh(this,"loadById",(async t=>this.data(await this.get(MK+"/"+t)))),eh(this,"loadAll",(async()=>this.data(await this.get(MK)))),eh(this,"hostCountriesFirst",(async()=>this.data(await this.get(MK+"/host-countries-first"))))}}const DK=new TK,IK=window.contextPath+"/rest/conditions";class AK extends ad{constructor(...t){super(...t),eh(this,"loadAll",(async()=>this.data(await this.get(IK))))}}const OK=new AK,EK=window.contextPath+"/rest/currencies";class PK extends ad{constructor(...t){super(...t),eh(this,"loadSupported",(async()=>this.data(await this.get(EK+"/supported"))))}}const LK=new PK,RK=window.contextPath+"/rest/durations";class zK extends ad{constructor(...t){super(...t),eh(this,"loadAll",(async()=>this.data(await this.get(RK))))}}const NK=new zK,FK=window.contextPath+"/rest/editions";class BK extends ad{constructor(...t){super(...t),eh(this,"loadByMember",(async()=>this.data(await this.get(FK+"/by-member"))))}}const VK=new BK,$K=window.contextPath+"/rest/exchanges";class jK extends ad{constructor(...t){super(...t),eh(this,"loadAll",(async t=>this.data(await this.get($K,{params:{type:t}}))))}}const WK=new jK,HK=window.contextPath;class UK extends ih{constructor(...t){super(...t),eh(this,"copy",(async(t,e)=>this.data(await this.post(HK+"/CopyServlet?id="+t+"&code="+e))))}}const qK=new UK,GK=window.contextPath+"/rest/generated-stories";class YK extends ih{constructor(){super(),eh(this,"load",(async t=>this.data(await this.get(GK,{params:t}))))}}const XK=new YK,ZK=window.contextPath+"/rest/hires";class KK extends ad{constructor(...t){super(...t),eh(this,"loadAll",(async()=>this.data(await this.get(ZK))))}}const JK=new KK,QK=window.contextPath+"/rest/hosts";class tJ extends ad{constructor(...t){super(...t),eh(this,"loadByMember",(async t=>this.data(await this.get(QK+"/by-member",{params:{module:t}}))))}}const eJ=new tJ,iJ=window.contextPath+"/rest/industries";class nJ extends ad{constructor(...t){super(...t),eh(this,"loadByMember",(async()=>this.data(await this.get(iJ+"/by-member"))))}}const rJ=new nJ,oJ=window.contextPath+"/rest/member-contacts";class aJ extends ih{constructor(...t){super(...t),eh(this,"search",(async t=>this.data(await this.get(oJ+"/",{params:t}
34))))}}const sJ=new aJ,lJ=window.contextPath+"/rest/member-contacts";class uJ extends ad{constructor(...t){super(...t),eh(this,"prepareNew",(async()=>this.data(await this.get(lJ+"/prepare-new")))),eh(this,"create",(async t=>this.data(await this.post(lJ,t)))),eh(this,"update",(async(t,e)=>this.data(await this.put(lJ+"/"+t,e)))),eh(this,"move",(async(t,e,i)=>this.data(await this.put(lJ+"/"+t+"/move",null,{params:{newIndex:e,featured:i}})))),eh(this,"remove",(async t=>this.data(await this.delete(lJ+"/"+t)))),eh(this,"manage",(async t=>this.data(await this.get(lJ+"/"+t+"/manage")))),eh(this,"loadByMember",(async t=>this.data(await this.get(lJ+"/by-member",{params:t})))),eh(this,"countByMember",(async t=>this.data(await this.get(lJ+"/count-by-member",{params:t}))))}}const cJ=new uJ,hJ=window.contextPath+"/rest/memberhelp";class dJ extends ih{constructor(...t){super(...t),eh(this,"sendQuestion",(async t=>this.data(await this.post(hJ+"/contact-us",t)))),eh(this,"getAnswerById",(async(t,e)=>this.data(await this.get(hJ+"/answer"+t+e)))),eh(this,"getTopics",(async()=>this.data(await this.get(hJ+"/topics")))),eh(this,"getCategories",(async()=>this.data(await this.get(hJ+"/categories")))),eh(this,"getCategoryFromQuestionId",(async(t,e)=>this.data(await this.get(hJ+"/category"+t+e))))}}const fJ=new dJ,pJ=window.contextPath+"/rest/member-invites";class gJ extends ih{constructor(...t){super(...t),eh(this,"accept",(async t=>this.data(await this.post(pJ+"/accept-invite",t)))),eh(this,"load",(async t=>this.data(await this.get(pJ+"/by-token/"+t))))}}const mJ=new gJ,vJ=window.contextPath+"/rest/member-invites";class yJ extends ad{constructor(...t){super(...t),eh(this,"send",(async t=>this.data(await this.post(vJ,{email:t},{headers:{"content-type":"application/x-www-form-urlencoded"}})))),eh(this,"remove",(async t=>this.data(await this.delete(vJ+"/"+t)))),eh(this,"loadByMember",(async()=>this.data(await this.get(vJ+"/by-member"))))}}const bJ=new yJ,_J=window.contextPath+"/rest/member-logs";class wJ extends ad{constructor(...t){super(...t),eh(this,"search",(async t=>this.data(await this.get(_J,{params:t}))))}}const xJ=new wJ,SJ=window.contextPath+"/rest/members";class CJ extends ad{constructor(...t){super(...t),eh(this,"update",(async t=>this.data(await this.put(SJ,t)))),eh(this,"manage",(async()=>this.data(await this.get(SJ)))),eh(this,"loadByPerson",(async()=>this.data(await this.get(`${SJ}/by-person`))))}}const kJ=new CJ,MJ=window.contextPath+"/rest/member-stats";class TJ extends ad{constructor(...t){super(...t),eh(this,"load",(async()=>this.data(await this.get(MJ))))}}const DJ=new TJ,IJ=window.contextPath+"/rest/newsletter-dates";class AJ extends ih{constructor(...t){super(...t),eh(this,"search",(async t=>this.data(await this.get(IJ,{params:t}))))}}const OJ=new AJ,EJ=window.contextPath+"/rest/organization-numbers";class PJ extends ad{constructor(...t){super(...t),eh(this,"loadByMember",(async()=>this.data(await this.get(EJ+"/by-member"))))}}const LJ=new PJ,RJ=window.contextPath+"/rest/supplements";class zJ extends ih{constructor(...t){super(...t),eh(this,"loadByMember",(async t=>this.data(await this.get(RJ+"/by-member/"+t))))}}const NJ=new zJ,FJ=window.contextPath+"/rest/pa-projects";class BJ extends ih{constructor(...t){super(...t),eh(this,"loadById",(async t=>this.data(await this.get(FJ+"/"+t))))}}const VJ=new BJ,$J=window.contextPath+"/rest/pa-users";class jJ extends ad{constructor(...t){super(...t),eh(this,"loadByPerson",(async()=>this.data(await this.get(`${$J}/by-person`))))}}const WJ=new jJ,HJ=window.contextPath+"/rest/payments";class UJ extends ih{constructor(...t){super(...t),eh(this,"supportBordas",(async t=>this.data(await this.get(HJ+"/support-bordas",{params:{productId:t}})))),eh(this,"getCheckoutLanguage",(async()=>this.data(await this.get(HJ+"/checkout-language")))),eh(this,"getCheckoutKey",(async()=>this.data(await this.get(HJ+"/checkoutkey")))),eh(this,"getProductGroups",(async(t,e)=>this.data(await this.get(HJ+"/product-groups",{params:{productType:t,campaignId:e}})))),eh(this,"validateOrder",(async t=>this.data(await this.post(HJ+"/validate-order",t)))),eh(this,"handlePayment",(async t=>this.data(await this.post(HJ+"/handle-payment",t)))),eh(this,"setSubscription",(async t=>this.data(await this.post(HJ+"/update-subscription",{paymentId:t},{headers:{"Content-Type":"application/x-www-form-urlencoded"}})))),eh(this,"renewCard",(async(t,e)=>this.data(await this.post(HJ+"/renew-card",{subscriptionId:t,paymentId:e},{headers:{"Content-Type":"application/x-www-form-urlencoded"}}))))}}const qJ=new UJ,GJ=window.contextPath+"/rest/persons";class YJ extends ih{constructor(...t){super(...t),eh(this,"prepareNew",(async()=>this.data(await this.get(GJ+"/prepare-new")))),eh(this,"create",(async t=>this.data(await this.post(GJ,t)))),eh(this,"activate",(async t=>this.data(await this.post(GJ+"/activate",t)))),eh(this,"undelete",(async(t,e)=>this.data(await this.post(`${GJ}/${t}/undelete?token=${e}`)))),eh(this,"login",(async(t,e,i)=>this.data(await this.post(GJ+"/login",{username:t,password:e,remember:i},{headers:{"content-type":"application/x-www-form-urlencoded"}})))),eh(this,"resendActivationEmail",(async t=>this.data(await this.post(`${GJ}/resend-activation-email?email=${t}`))))}}const XJ=new YJ,ZJ=window.contextPath+"/rest/persons";class KJ extends ad{constructor(...t){super(...t),eh(this,"manage",(async t=>this.data(await this.get(`${ZJ}/${t}/manage`)))),eh(this,"update",(async(t,e)=>this.data(await this.put(`${ZJ}/${t}`,e)))),eh(this,"logout",(async()=>this.data(await this.post(ZJ+"/logout")))),eh(this,"loadByMember",(async t=>this.data(await this.get(ZJ+"/by-member",{params:t}
34)))),eh(this,"countByMember",(async()=>this.data(await this.get(ZJ+"/count-by-member")))),eh(this,"removeByMember",(async t=>this.data(await this.delete(ZJ+"/by-member/"+t)))),eh(this,"switchMember",(async t=>this.data(await this.put(ZJ+"/switch-member/"+t)))),eh(this,"resendActivation",(async t=>this.data(await this.post(`${ZJ}/resend-activation-email/${t}`))))}}const JJ=new KJ,QJ=window.contextPath+"/rest/post-newsletter-dates";class tQ extends ad{constructor(...t){super(...t),eh(this,"counts",(async(t,e,i)=>this.data(await this.get(QJ+"/counts",{params:{type:t,host:e,post:i}})))),eh(this,"ran",(async t=>this.data(await this.get(QJ+"/ran",{params:{post:t}}))))}}const eQ=new tQ,iQ=window.contextPath+"/rest/posts";class nQ extends ih{constructor(...t){super(...t),eh(this,"mlt",(async(t,e,i)=>this.data(await this.get(iQ+"/mlt/"+t,{params:{first:e,max:i}})))),eh(this,"search",(async t=>this.data(await this.get(iQ+"/",{params:t}))))}}const rQ=new nQ,oQ=window.contextPath+"/rest/posts";class aQ extends ad{constructor(...t){super(...t),eh(this,"prepareNew",(async t=>this.data(await this.get(oQ+"/prepare-new",{params:{type:t}})))),eh(this,"create",(async t=>this.data(await this.post(oQ,t)))),eh(this,"update",(async(t,e)=>this.data(await this.put(oQ+"/"+t,e)))),eh(this,"remove",(async t=>this.data(await this.delete(oQ+"/"+t)))),eh(this,"loadById",(async t=>this.data(await this.get(oQ+"/"+t)))),eh(this,"copy",(async t=>this.data(await this.get(oQ+"/copy/"+t)))),eh(this,"loadByMember",(async t=>this.data(await this.get(oQ+"/by-member",{params:t})))),eh(this,"countByMember",(async t=>this.data(await this.get(oQ+"/count-by-member",{params:t}))))}}const sQ=new aQ,lQ=window.contextPath+"/rest/posts";class uQ extends ad{constructor(...t){super(...t),eh(this,"loadTimestamps",(async(t,e,i,n)=>this.data(await this.get(lQ+"/"+t+"/stats/timestamps",{params:{from:e,to:i,hostId:n}})))),eh(this,"loadSourceRefs",(async(t,e,i)=>this.data(await this.get(lQ+"/"+t+"/stats/source-refs",{params:{from:e,to:i}})))),eh(this,"loadNaces",(async(t,e,i,n)=>this.data(await this.get(lQ+"/"+t+"/stats/naces",{params:{from:e,to:i,hostId:n}})))),eh(this,"loadCompanies",(async(t,e,i,n)=>this.data(await this.get(lQ+"/"+t+"/stats/companies",{params:{from:e,to:i,hostId:n}})))),eh(this,"loadPersons",(async(t,e,i,n)=>this.data(await this.get(lQ+"/"+t+"/stats/persons",{params:{from:e,to:i,hostId:n}}))))}}const cQ=new uQ,hQ=window.contextPath+"/rest/price-units";class dQ extends ad{constructor(...t){super(...t),eh(this,"loadAll",(async t=>this.data(await this.get(hQ,{params:{type:t}}))))}}const fQ=new dQ,pQ=window.contextPath+"/rest/production-unit-numbers";class gQ extends ad{constructor(...t){super(...t),eh(this,"loadByMember",(async()=>this.data(await this.get(pQ+"/by-member"))))}}const mQ=new gQ,vQ=window.contextPath+"/rest/reset-login-request";class yQ extends ih{constructor(...t){super(...t),eh(this,"create",(async t=>this.data(await this.post(vQ,{email:t},{headers:{"Content-Type":"application/x-www-form-urlencoded"}}))))}}const bQ=new yQ,_Q=window.contextPath+"/rest/schedules";class wQ extends ad{constructor(...t){super(...t),eh(this,"loadAll",(async()=>this.data(await this.get(_Q))))}}const xQ=new wQ,SQ=window.contextPath+"/rest/subscriptions";class CQ extends ad{constructor(...t){super(...t),eh(this,"loadByPerson",(async()=>this.data(await this.get(SQ+"/by-person"))))}}const kQ=new CQ,MQ=window.contextPath+"/rest/supplement-categories";class TQ extends ih{constructor(...t){super(...t),eh(this,"loadAll",(async()=>this.data(await this.get(MQ))))}}const DQ=new TQ,IQ=window.contextPath+"/rest/supplements";class AQ extends ih{constructor(...t){super(...t),eh(this,"search",(async t=>this.data(await this.get(IQ+"/",{params:t})))),eh(this,"count",(async t=>this.data(await this.get(IQ+"/count",{params:t}))))}}const OQ=new AQ,EQ=window.contextPath+"/rest/supplements";class PQ extends ad{constructor(...t){super(...t),eh(this,"create",(async t=>this.data(await this.post(EQ,t)))),eh(this,"update",(async(t,e)=>this.data(await this.put(EQ+"/"+t,e)))),eh(this,"move",(async(t,e,i)=>this.data(await this.put(EQ+"/"+t+"/move",null,{params:{newIndex:e,featured:i}})))),eh(this,"remove",(async t=>this.data(await this.delete(EQ+"/"+t)))),eh(this,"loadById",(async t=>this.data(await this.get(EQ+"/"+t)))),eh(this,"loadByMember",(async t=>this.data(await this.get(EQ+"/by-member",{params:t}
34)))),eh(this,"countByMember",(async t=>this.data(await this.get(EQ+"/count-by-member",{params:t}))))}}const LQ=new PQ,RQ=window.contextPath+"/rest/topics";class zQ extends ih{constructor(...t){super(...t),eh(this,"loadChildren",(async t=>this.data(await this.get(RQ+"/"+t.topicId+"/children",{params:{first:t.first,max:t.max}}))))}}const NQ=new zQ,FQ=window.contextPath+"/rest/watch-lists";class BQ extends ad{constructor(...t){super(...t),eh(this,"update",(async(t,e)=>this.data(await this.put(FQ+"/"+t+"/subscriptions",e)))),eh(this,"getByWatchListId",(async t=>this.data(await this.get(FQ+"/"+t+"/subscriptions"))))}}const VQ=new BQ,$Q=window.contextPath+"/rest/watch-notification-types";class jQ extends ih{constructor(){super(),eh(this,"search",(async()=>this.data(await this.get($Q))))}}const WQ=new jQ,HQ=window.contextPath+"/rest/notifications";class UQ extends ad{constructor(...t){super(...t),eh(this,"loadByPerson",(async t=>this.data(await this.get(`${HQ}/by-person`,{params:t})))),eh(this,"loadUnreadCount",(async()=>this.data(await this.get(`${HQ}/unread-count`)))),eh(this,"loadCount",(async t=>this.data(await this.get(`${HQ}/count`,{params:t})))),eh(this,"clicked",(async t=>this.data(await this.post(`${HQ}/clicked/`+t)))),eh(this,"clickedAll",(async()=>this.data(await this.post(`${HQ}/clicked`)))),eh(this,"seen",(async t=>this.data(await this.post(`${HQ}/seen/`+t)))),eh(this,"seenAll",(async()=>this.data(await this.post(`${HQ}/seen`)))),eh(this,"loadSettings",(async()=>this.data(await this.get(`${HQ}/settings`)))),eh(this,"saveSettings",(async t=>this.data(await this.post(`${HQ}/settings`,t))))}}const qQ=new UQ;a().mixin({computed:{console:function(){return console},document:function(){return document},navigator:function(){return navigator},window:function(){return window}}}),Qt.defaultZone="Europe/Copenhagen",a().prototype.$services={articleService:sK,bookmarkSecureService:cK,bordasSecureService:fK,businessSecureService:mK,categorySecureService:lX,certificateService:bK,commentService:xK,corporateClientSecureService:kK,countryService:DK,conditionSecureService:OK,currencySecureService:LK,durationSecureService:NK,editionSecureService:VK,exchangeSecureService:WK,fileService:qK,generatedStoryService:XK,hireSecureService:JK,hostSecureService:eJ,industrySecureService:rJ,memberContactService:sJ,memberContactSecureService:cJ,memberHelpService:fJ,memberInviteService:mJ,memberInviteSecureService:bJ,memberLogSecureService:xJ,memberSecureService:kJ,memberStatsSecureService:DJ,newsletterDateService:OJ,organizationNumberSecureService:LJ,organizationNumberService:NJ,personService:XJ,personSecureService:JJ,paProjectService:VJ,paUserSecureService:WJ,paymentService:qJ,postNewsletterDateSecureService:eQ,postService:rQ,postSecureService:sQ,postStatsSecureService:cQ,priceUnitSecureService:fQ,productionUnitNumberSecureService:mQ,regionService:yX,resetLoginRequestService:bQ,scheduleSecureService:xQ,subscriptionSecureService:kQ,supplementCategoryService:DQ,supplementService:OQ,supplementSecureService:LQ,topicService:NQ,watchListSecureService:ud,watchListSubscriptionSecureService:VQ,watchListVatinSecureService:dd,watchNotificationTypeService:WQ,notificationSecureService:qQ},a().config.errorHandler=function(t,e,i){try{console.log(t);const e=()=>"undefined"!==typeof WeakSet?new WeakSet:new Set,n=t=>{if(t&&t.stack)return t.stack;try{throw new Error(t&&t.message?t.message:String(t))}catch(Mp){return Mp.stack}},r=(t,e)=>{if(!t)return"Unknown error";if("object"===typeof t){if(e.has(t))return"[Circular error reference]";e.add(t)}const i=[];return i.push("Message: "+(t.message||String(t))),i.push("Stack:\n"+n(t)),t.cause&&i.push("Cause:\n"+r(t.cause,e)),i.join("\n\n")},o=[];let a=r(t,e());a||(a="Unknown error (serialization failed)"),o.push(a),o.push("Vue info:\n"+i),o.push("Location:\n"+document.location),o.push("Browser:\n"+navigator.userAgent),window.logRemotely(o.join("\n\n"))}catch(Mp){console.log(Mp)}},a().use(kc),a().use(Ic,(function(t,e,i){switch(t){case"portal":window.Bundle.init(e,(function(t){i(t)}));break;default:throw"Unsupported source: '"+t+"'"}})),a().use(Pc,{cvrRestApiAddress:window.cvrRestApiAddress}),a().use(Nc),a().use(to),a().use($c),a().use(bo),a().use(Uc),a().use(Xc),a().use(Wo),a().use(CZ),a().use(DZ),a().use(EZ),a().use(zZ),a().use(VZ);const GQ={editor:I,draggable:O(),"bar-chart":jr,barometer:Yr,"formatted-date":ao,"global-errors":fo,"hash-modal":ko,"input-calling-code-and-phone":Oo,"input-custom":No,"input-date":Go,"input-number":Qo,"input-secret":oa,"input-tags":uu,"input-text":gu,"input-textarea":wu,"language-tabs":Tu,"local-errors":Pu,modal:Bu,"select-boolean-checkbox":Uu,"select-many-checkbox":Ku,"select-one-menu":nc,"select-one-radio":uc,tree:wc,"add-to-watch-list":_d,"article-projects":Md,banner:Vd,banners:qd,"blog-article-list":Jd,"blog-byline":of,"blog-sub-byline":hf,"bookmark-button":vf,"character-count":Sf,"featured-links":If,"file-carou
34sel":Rf,"front-page-article":$f,gallery:Gf,"global-search-icon":Qf,"global-search-input":op,"google-ad-display":hp,"google-ad-blog-display":vp,"google-tag-display":Sp,"input-file":Om,"input-video":Nm,"ip-access-toggle":Wm,"job-in-focus-box":Xm,"latest-news":ev,"menu-log-in":eY,"line-chart":XG,paginator:sY,"pie-chart":KY,recaptcha:nX,"select-category":dX,"select-region":xX,"smart-date":DX,"smart-link":LX,"social-buttons":VX,step:qX,steps:JX,tracker:pZ,"vatin-box":_Z,"member-carrousel-box":qZ,"corporate-client-management-box":JZ,"push-notification-popup":rK};Object.keys(GQ).forEach((t=>{a().component(t,GQ[t])}));var YQ=GQ,XQ=YQ}(),r}()})); 35//# sourceMappingURL=vue-components.umd.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.