2 lines
1.5 MiB
Plaintext
Vendored
2 lines
1.5 MiB
Plaintext
Vendored
/*! For license information please see app.js.LICENSE.txt */
|
||
(()=>{var t,e,n,a,r={4325:t=>{t.exports=function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"02f4":function(t,e,n){var a=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var i,o,s=String(r(e)),l=a(n),c=s.length;return l<0||l>=c?t?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?t?s.charAt(l):i:t?s.slice(l,l+2):o-56320+(i-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var a=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?a(t,e).length:1)}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0bfb":function(t,e,n){"use strict";var a=n("cb7c");t.exports=function(){var t=a(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0fc9":function(t,e,n){var a=n("3a38"),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?r(t+e,0):i(t,e)}},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,e,n){var a=n("f772");t.exports=function(t,e){if(!a(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!a(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var a=n("f772"),r=n("e53d").document,i=a(r)&&a(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"214f":function(t,e,n){"use strict";n("b0c5");var a=n("2aba"),r=n("32e9"),i=n("79e5"),o=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var h=s(t),f=!i((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),p=f?!i((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!e})):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!d){var m=/./[h],g=n(o,h,""[t],(function(t,e,n,a,r){return e.exec===l?f&&!r?{done:!0,value:m.call(e,n,a)}:{done:!0,value:t.call(n,e,a)}:{done:!1}})),v=g[0],b=g[1];a(String.prototype,t,v),r(RegExp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,n){var a=n("d3f4"),r=n("7726").document,i=a(r)&&a(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},"23c6":function(t,e,n){var a=n("2d95"),r=n("2b4c")("toStringTag"),i="Arguments"==a(function(){return arguments}());t.exports=function(t){var e,n,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:i?a(e):"Object"==(o=a(e))&&"function"==typeof e.callee?"Arguments":o}},"241e":function(t,e,n){var a=n("25eb");t.exports=function(t){return Object(a(t))}},"25eb":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"28a5":function(t,e,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),o=n("0390"),s=n("9def"),l=n("5f1b"),c=n("520a"),u=n("79e5"),d=Math.min,h=[].push,f="split",p="length",m="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));n("214f")("split",2,(function(t,e,n,u){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(r,t,e);for(var i,o,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,f=void 0===e?g:e>>>0,v=new RegExp(t.source,u+"g");(i=c.call(v,r))&&!((o=v[m])>d&&(l.push(r.slice(d,i.index)),i[p]>1&&i.index<r[p]&&h.apply(l,i.slice(1)),s=i[0][p],d=o,l[p]>=f));)v[m]===i.index&&v[m]++;return d===r[p]?!s&&v.test("")||l.push(""):l.push(r.slice(d)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r,a):b.call(String(r),n,a)},function(t,e){var a=u(b,t,this,e,b!==n);if(a.done)return a.value;var c=r(t),h=String(this),f=i(c,RegExp),p=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),_=new f(v?c:"^(?:"+c.source+")",m),y=void 0===e?g:e>>>0;if(0===y)return[];if(0===h.length)return null===l(_,h)?[h]:[];for(var w=0,x=0,k=[];x<h.length;){_.lastIndex=v?x:0;var S,C=l(_,v?h:h.slice(x));if(null===C||(S=d(s(_.lastIndex+(v?0:x)),h.length))===w)x=o(h,x,p);else{if(k.push(h.slice(w,x)),k.length===y)return k;for(var A=1;A<=C.length-1;A++)if(k.push(C[A]),k.length===y)return k;x=w=S}}return k.push(h.slice(w)),k}]}))},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2aba":function(t,e,n){var a=n("7726"),r=n("32e9"),i=n("69a8"),o=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(i(n,o)||r(n,o,t[e]?""+t[e]:c.join(String(e)))),t===a?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[o]||s.call(this)}))},"2b4c":function(t,e,n){var a=n("5537")("wks"),r=n("ca5a"),i=n("7726").Symbol,o="function"==typeof i;(t.exports=function(t){return a[t]||(a[t]=o&&i[t]||(o?i:r)("Symbol."+t))}).store=a},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var a=n("5ca1"),r=n("d2c8"),i="includes";a(a.P+a.F*n("5147")(i),"String",{includes:function(t){return!!~r(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var a=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return a.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"335c":function(t,e,n){var a=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var a=n("d9f6"),r=n("aebd");t.exports=n("8e60")?function(t,e,n){return a.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var a=n("335c"),r=n("25eb");t.exports=function(t){return a(r(t))}},"3a38":function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},4588:function(t,e){var n=Math.ceil,a=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?a:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var a=n("cb7c"),r=n("9def"),i=n("0390"),o=n("5f1b");n("214f")("match",1,(function(t,e,n,s){return[function(n){var a=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,a):new RegExp(n)[e](String(a))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=a(t),c=String(this);if(!l.global)return o(l,c);var u=l.unicode;l.lastIndex=0;for(var d,h=[],f=0;null!==(d=o(l,c));){var p=String(d[0]);h[f]=p,""===p&&(l.lastIndex=i(c,r(l.lastIndex),u)),f++}return 0===f?null:h}]}))},5147:function(t,e,n){var a=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[a]=!1,!"/./"[t](e)}catch(t){}}return!0}},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"520a":function(t,e,n){"use strict";var a,r,i=n("0bfb"),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c="lastIndex",u=(a=/a/,r=/b*/g,o.call(a,"a"),o.call(r,"a"),0!==a[c]||0!==r[c]),d=void 0!==/()??/.exec("")[1];(u||d)&&(l=function(t){var e,n,a,r,l=this;return d&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),u&&(e=l[c]),a=o.call(l,t),u&&a&&(l[c]=l.global?a.index+a[0].length:e),d&&a&&a.length>1&&s.call(a[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(a[r]=void 0)})),a}),t.exports=l},5537:function(t,e,n){var a=n("8378"),r=n("7726"),i="__core-js_shared__",o=r[i]||(r[i]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var a=n("dbdb")("keys"),r=n("62a0");t.exports=function(t){return a[t]||(a[t]=r(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},"5b4e":function(t,e,n){var a=n("36c3"),r=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,o){var s,l=a(e),c=r(l.length),u=i(o,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},"5ca1":function(t,e,n){var a=n("7726"),r=n("8378"),i=n("32e9"),o=n("2aba"),s=n("9b43"),l="prototype",c=function(t,e,n){var u,d,h,f,p=t&c.F,m=t&c.G,g=t&c.S,v=t&c.P,b=t&c.B,_=m?a:g?a[e]||(a[e]={}):(a[e]||{})[l],y=m?r:r[e]||(r[e]={}),w=y[l]||(y[l]={});for(u in m&&(n=e),n)h=((d=!p&&_&&void 0!==_[u])?_:n)[u],f=b&&d?s(h,a):v&&"function"==typeof h?s(Function.call,h):h,_&&o(_,u,h,t&c.U),y[u]!=h&&i(y,u,f),v&&w[u]!=h&&(w[u]=h)};a.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5f1b":function(t,e,n){"use strict";var a=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==a(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"626a":function(t,e,n){var a=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==a(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},"63b6":function(t,e,n){var a=n("e53d"),r=n("584a"),i=n("d864"),o=n("35e8"),s=n("07e3"),l="prototype",c=function(t,e,n){var u,d,h,f=t&c.F,p=t&c.G,m=t&c.S,g=t&c.P,v=t&c.B,b=t&c.W,_=p?r:r[e]||(r[e]={}),y=_[l],w=p?a:m?a[e]:(a[e]||{})[l];for(u in p&&(n=e),n)(d=!f&&w&&void 0!==w[u])&&s(_,u)||(h=d?w[u]:n[u],_[u]=p&&"function"!=typeof w[u]?n[u]:v&&d?i(h,a):b&&w[u]==h?function(t){var e=function(e,n,a){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,a)}return t.apply(this,arguments)};return e[l]=t[l],e}(h):g&&"function"==typeof h?i(Function.call,h):h,g&&((_.virtual||(_.virtual={}))[u]=h,t&c.R&&y&&!y[u]&&o(y,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},6762:function(t,e,n){"use strict";var a=n("5ca1"),r=n("c366")(!0);a(a.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var a=n("626a"),r=n("be13");t.exports=function(t){return a(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var a=n("d3f4");t.exports=function(t,e){if(!a(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!a(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!a(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var a=n("4588"),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=a(t))<0?r(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8378:function(t,e){var n=t.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},"86cc":function(t,e,n){var a=n("cb7c"),r=n("c69a"),i=n("6a99"),o=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),r)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},9306:function(t,e,n){"use strict";var a=n("c3a1"),r=n("9aa9"),i=n("355d"),o=n("241e"),s=n("335c"),l=Object.assign;t.exports=!l||n("294c")((function(){var t={},e={},n=Symbol(),a="abcdefghijklmnopqrst";return t[n]=7,a.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=a}))?function(t,e){for(var n=o(t),l=arguments.length,c=1,u=r.f,d=i.f;l>c;)for(var h,f=s(arguments[c++]),p=u?a(f).concat(u(f)):a(f),m=p.length,g=0;m>g;)d.call(f,h=p[g++])&&(n[h]=f[h]);return n}:l},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var a=n("d8e8");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,r){return t.call(e,n,a,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var a=n("2b4c")("unscopables"),r=Array.prototype;null==r[a]&&n("32e9")(r,a,{}),t.exports=function(t){r[a][t]=!0}},"9def":function(t,e,n){var a=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(a(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a3c3:function(t,e,n){var a=n("63b6");a(a.S+a.F,"Object",{assign:n("9306")})},aae3:function(t,e,n){var a=n("d3f4"),r=n("2d95"),i=n("2b4c")("match");t.exports=function(t){var e;return a(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==r(t))}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0c5:function(t,e,n){"use strict";var a=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},b447:function(t,e,n){var a=n("3a38"),r=Math.min;t.exports=function(t){return t>0?r(a(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var a=n("6821"),r=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,o){var s,l=a(e),c=r(l.length),u=i(o,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c3a1:function(t,e,n){var a=n("e6f3"),r=n("1691");t.exports=Object.keys||function(t){return a(t,r)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},ca5a:function(t,e){var n=0,a=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+a).toString(36))}},cb7c:function(t,e,n){var a=n("d3f4");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},d2c8:function(t,e,n){var a=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(a(e))throw TypeError("String#"+n+" 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}},d864:function(t,e,n){var a=n("79aa");t.exports=function(t,e,n){if(a(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,a){return t.call(e,n,a)};case 3:return function(n,a,r){return t.call(e,n,a,r)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var a=n("e4ae"),r=n("794b"),i=n("1bc3"),o=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(a(t),e=i(e,!0),a(n),r)try{return o(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var a=n("584a"),r=n("e53d"),i="__core-js_shared__",o=r[i]||(r[i]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e4ae:function(t,e,n){var a=n("f772");t.exports=function(t){if(!a(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(t,e,n){var a=n("07e3"),r=n("36c3"),i=n("5b4e")(!1),o=n("5559")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=o&&a(s,n)&&c.push(n);for(;e.length>l;)a(s,n=e[l++])&&(~i(c,n)||c.push(n));return c}},ebd6:function(t,e,n){var a=n("cb7c"),r=n("d8e8"),i=n("2b4c")("species");t.exports=function(t,e){var n,o=a(t).constructor;return void 0===o||null==(n=a(o)[i])?e:r(n)}},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(t,e,n){"use strict";var a;(n.r(e),"undefined"!=typeof window)&&((a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=a[1]));n("4917"),n("28a5");var r=n("5176"),i=n.n(r);n("6762"),n("2fdb");function o(t,e,n,a,r,i,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var s=o({name:"SingleOtpInput",props:{value:{type:String},separator:{type:String},focus:{type:Boolean},inputClasses:{type:String},shouldAutoFocus:{type:Boolean},inputType:{type:String,default:function(){return"tel"}},isLastChild:{type:Boolean}},data:function(){return{model:this.value||""}},mounted:function(){this.$refs.input&&this.focus&&this.shouldAutoFocus&&this.$refs.input.focus()},watch:{value:function(t,e){t!==e&&(this.model=t)},focus:function(t,e){e!==t&&this.$refs.input&&this.focus&&(this.$refs.input.focus(),this.$refs.input.select())}},methods:{handleOnChange:function(){return this.model.length>1&&(this.model=this.model.slice(0,1)),this.$emit("on-change",this.model)},handleOnKeyDown:function(t){var e=t||window.event,n=e.which?e.which:e.keyCode;this.isCodeNumeric(n)||8===n||86===n||46===n?this.$emit("on-keydown",t):e.preventDefault()},isCodeNumeric:function(t){return t>=48&&t<=57||t>=96&&t<=105},handleOnPaste:function(t){return this.$emit("on-paste",t)},handleOnFocus:function(){return this.$refs.input.select(),this.$emit("on-focus")},handleOnBlur:function(){return this.$emit("on-blur")}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"flex","align-items":"center"}},["checkbox"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",maxlength:"1",pattern:"[0-9]",type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(e){var n=t.model,a=e.target,r=!!a.checked;if(Array.isArray(n)){var i=t._i(n,null);a.checked?i<0&&(t.model=n.concat([null])):i>-1&&(t.model=n.slice(0,i).concat(n.slice(i+1)))}else t.model=r}}}):"radio"===t.inputType?n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",maxlength:"1",pattern:"[0-9]",type:"radio"},domProps:{checked:t._q(t.model,null)},on:{input:t.handleOnChange,keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur,change:function(e){t.model=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",class:t.inputClasses,attrs:{min:"0",max:"9",maxlength:"1",pattern:"[0-9]",type:t.inputType},domProps:{value:t.model},on:{input:[function(e){e.target.composing||(t.model=e.target.value)},t.handleOnChange],keydown:t.handleOnKeyDown,paste:t.handleOnPaste,focus:t.handleOnFocus,blur:t.handleOnBlur}}),!t.isLastChild&&t.separator?n("span",[n("span",{domProps:{innerHTML:t._s(t.separator)}})]):t._e()])}),[],!1,null,null,null).exports,l=o({name:"OtpInput",components:{SingleOtpInput:s},props:{numInputs:{default:4},separator:{type:String,default:"**"},inputClasses:{type:String},inputType:{type:String,validator:function(t){return["number","tel","password"].includes(t)}},shouldAutoFocus:{type:Boolean,default:!1}},data:function(){return{activeInput:0,otp:[],oldOtp:[]}},methods:{handleOnFocus:function(t){this.activeInput=t},handleOnBlur:function(){this.activeInput=-1},checkFilledAllInputs:function(){return this.otp.join("").length===this.numInputs?this.$emit("on-complete",this.otp.join("")):"Wait until the user enters the required number of characters"},focusInput:function(t){this.activeInput=Math.max(Math.min(this.numInputs-1,t),0)},focusNextInput:function(){this.focusInput(this.activeInput+1)},focusPrevInput:function(){this.focusInput(this.activeInput-1)},changeCodeAtFocus:function(t){this.oldOtp=i()([],this.otp),this.$set(this.otp,this.activeInput,t),this.oldOtp.join("")!==this.otp.join("")&&(this.$emit("on-change",this.otp.join("")),this.checkFilledAllInputs())},handleOnPaste:function(t){t.preventDefault();var e=t.clipboardData.getData("text/plain").slice(0,this.numInputs-this.activeInput).split("");if("number"===this.inputType&&!e.join("").match(/^\d+$/))return"Invalid pasted data";var n=this.otp.slice(0,this.activeInput).concat(e);return this.$set(this,"otp",n.slice(0,this.numInputs)),this.focusInput(n.slice(0,this.numInputs).length),this.checkFilledAllInputs()},handleOnChange:function(t){this.changeCodeAtFocus(t),this.focusNextInput()},clearInput:function(){this.otp.length>0&&this.$emit("on-change",""),this.otp=[],this.activeInput=0},handleOnKeyDown:function(t){switch(t.keyCode){case 8:t.preventDefault(),this.changeCodeAtFocus(""),this.focusPrevInput();break;case 46:t.preventDefault(),this.changeCodeAtFocus("");break;case 37:t.preventDefault(),this.focusPrevInput();break;case 39:t.preventDefault(),this.focusNextInput()}}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{display:"flex"}},["password"===t.inputType?n("input",{staticStyle:{display:"none"},attrs:{autocomplete:"off",name:"hidden",type:"text"}}):t._e(),t._l(t.numInputs,(function(e,a){return n("SingleOtpInput",{key:a,attrs:{focus:t.activeInput===a,value:t.otp[a],separator:t.separator,"input-type":t.inputType,"input-classes":t.inputClasses,"is-last-child":a===t.numInputs-1,"should-auto-focus":t.shouldAutoFocus},on:{"on-change":t.handleOnChange,"on-keydown":t.handleOnKeyDown,"on-paste":t.handleOnPaste,"on-focus":function(e){return t.handleOnFocus(a)},"on-blur":t.handleOnBlur}})}))],2)}),[],!1,null,null,null),c=l.exports;e.default=c}})},6198:(t,e,n)=>{"use strict";var a={};n.r(a),n.d(a,{hasBrowserEnv:()=>Je,hasStandardBrowserEnv:()=>Qe,hasStandardBrowserWebWorkerEnv:()=>tn,navigator:()=>Ze,origin:()=>en});var r=n(5072),i=n.n(r),o=n(5500),s={insert:"head",singleton:!1};i()(o.A,s);o.A.locals;function l(t){return l="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},l(t)}var c={hideModal:function(t){$(t).modal("hide")},isLogin:function(){return!!localStorage["Access Token"]},isAdminPortalSession:function(){return null!=localStorage.getItem("admin_role")||"1"===localStorage.getItem("admin_session")},getAdminEntryRoute:function(){return"3"===localStorage.getItem("admin_role")?{name:"Kehadiran Calon"}:{name:"Admin Home"}},log:function(t){config.debug&&console.log(t)},notify:function(t){var e=arguments.length>2?arguments[2]:void 0,n=5e3,a="info",r="fa fa-info";switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info"){case"error":a="danger",r="fa fa-warning";break;case"loading":n=0,r="fa fa-refresh fa-spin";break;case"success":a="success",r="fa fa-check";break;case"progress":$.notifyClose(),n=0,t="<label>".concat(t,'</label>\n\t\t\t\t\t\t\t<div class="progress">\n\t\t\t\t\t\t\t\t<div class="progress-bar progress-bar-green" role="progressbar" aria-valuenow="').concat(e,'" aria-valuemin="0" aria-valuemax="100" style="width: ').concat(e,'%">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>'),r="fa fa-refresh fa-spin"}return $.notify({message:t,icon:r},{type:a,delay:n,placement:{from:"top",align:"center"}})},setAuthorization:function(){axios.defaults.headers.common.Authorization=localStorage["Access Token"],$.ajaxSetup({headers:{Authorization:localStorage["Access Token"]}})},setTitle:function(t){$("title").text(t)},getErrorMessage:function(t,e){var n="";switch(e){case 200:n=t.message;break;case 422:if(!(t="string"==typeof t?JSON.parse(t):t)){n="Sila semak semula input anda.";break}if(t.errors&&"object"===l(t.errors)){for(var a in t.errors){var r=t.errors[a];Array.isArray(r)?r.forEach((function(t){n+=t+"<br/>"})):"string"==typeof r&&(n+=r+"<br/>")}break}if("string"==typeof t.message){n=t.message;break}if("object"===l(t))for(var i in t){var o=t[i];Array.isArray(o)?o.forEach((function(t){n+=t+"<br/>"})):"string"==typeof o&&(n+=o+"<br/>")}break;case 401:n="Sila log masuk terlebih dahulu.";break;default:n="Ralat telah berlaku."}return n},showModal:function(t){$(t).modal("show")},showResult:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"axios";this.log(t);var a=function(t){return"success"==t.status};if("axios"==n){if("success"!=e){var r=t.response?t.response.status:500,i=this.getErrorMessage(t.response.data,r);return this.notify(i,"error"),r}if(a(t.data))return this.notify(t.data.message,"success"),!0;this.notify(t.data.message,"error")}else if("ajax"==n)if("success"==e){if(a(t))return this.notify(t.message,"success"),!0;this.notify(t.message,"error")}else if("error"==e){r=t.status,i=this.getErrorMessage(t.responseText,r);return this.notify(i,"error"),r}}},u={baseURL:config.baseURL,API:config.API,storageURL:config.storageURL,elections:[],election:{},user:{},positions:[],position:{},partylists:[],partylist:{},voters:{},voter:{},nominees:[],nominee:{},admins:[],information:{},result:[],results:[],last_update:new Date};const d={data:function(){return{util:c,data:u}}};const h={data:function(){return{loading:!1}},created:function(){this.util.isAdminPortalSession()&&this.$router.replace(this.util.getAdminEntryRoute())},methods:{login:function(){var t=this;this.startLoading();var e=document.getElementById("no_kp").value.trim();axios.post(config.API+"voter/login",{no_kp:e,send_otp:!1}).then((function(e){t.stopLoading(),t.util.showResult(e,"success")&&t.$router.push({name:"Voter Verify",params:{nokp:e.data.nokp,notel:e.data.notel,debug_otp:e.data.debug_otp||null}})})).catch((function(e){t.stopLoading(),t.util.showResult(e,"error")}))},startLoading:function(){this.loading=!0},stopLoading:function(){this.loading=!1}}};var f=n(4706),p={insert:"head",singleton:!1};i()(f.A,p);f.A.locals;var m=n(4486);const g=(0,m.A)(h,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex justify-content-center align-items-center min-vh-100 bg-gradient"},[e("div",{staticClass:"card shadow-lg rounded-lg border-primary",staticStyle:{width:"100%","max-width":"400px",padding:"30px"}},[t._m(0),t._v(" "),e("div",{staticClass:"card-body"},[e("form",{attrs:{id:"login_form"},on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[t._m(1),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-primary btn-block",attrs:{type:"submit",disabled:t.loading}},[t.loading?e("span",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status","aria-hidden":"true"}}):t._e(),t._v("\n\t\t\tMasuk\n\t\t ")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center mb-4"},[e("img",{staticClass:"logo-img",staticStyle:{"max-width":"250px",height:"auto"},attrs:{src:"/images/MyKoPKB-logo.png",alt:"Logo"}}),t._v(" "),e("h4",{staticClass:"mt-3"},[t._v("Selamat Datang ke Portal MyKoPKB")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"no_kp"}},[t._v("Sila Masukkan No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",id:"no_kp",name:"no_kp",placeholder:"Masukkan No. Kad Pengenalan Tanpa Dash (-)",required:""}})])}],!1,null,"4646ddca",null).exports;const v={data:function(){return{loading:!1,otpSent:!1,otpSending:!1,debugOtp:null}},computed:{showDebugOtp:function(){return!1},phoneLastFour:function(){var t=String(this.$route.params.notel||"").replace(/\D/g,"");return t.length>=4?t.slice(-4):t.length?t:"----"}},methods:{handleOnComplete:function(t){console.log("OTP completed: ",t),this.$refs.submitbtn.disabled=!1},handleOnChange:function(t){console.log("OTP changed: ",t),this.$refs.submitbtn.disabled=!0},handleClearInput:function(){this.$refs.otpInput.clearInput()},requestOtp:function(){this.sendOtp({isResend:!1})},resendVerify:function(){this.sendOtp({isResend:!0})},sendOtp:function(t){var e=this,n=t&&t.isResend;this.otpSending=!0,axios.post(config.API+"voter/login",{no_kp:this.$route.params.nokp,send_otp:!0}).then((function(t){e.util.showResult(t,"success")&&(e.otpSent=!0,t.data.debug_otp&&(e.debugOtp=t.data.debug_otp),n&&e.$refs.otpInput&&e.$refs.otpInput.clearInput(),e.$nextTick((function(){e.$refs.submitbtn&&(e.$refs.submitbtn.disabled=!0)})))})).catch((function(t){e.util.showResult(t,"error")})).then((function(){e.otpSending=!1}))},startLoading:function(){this.util.notify("Logging in","loading"),this.loading=!0},stopLoading:function(){$.notifyClose(),this.loading=!1},login:function(){var t=this;if(!this.loading&&this.otpSent){var e=this;this.startLoading(),console.log("OTP INPUT : ");var n=this.mergeOTP(this.$refs.otpInput.otp);console.log(n),axios.post(config.API+"voter/verify",{no_kp:this.$route.params.nokp,token:n}).then((function(n){e.stopLoading(),t.util.showResult(n,"success")&&(localStorage.removeItem("admin_role"),localStorage.removeItem("admin_session"),localStorage["Access Token"]="Bearer ".concat(n.data.token),t.util.setAuthorization(),e.$router.push({name:"Voter Home"}))})).catch((function(n){e.stopLoading(),t.util.showResult(n,"error")}))}},mergeOTP:function(t){return t.join("")}}},b=v;var _=n(9340),y={insert:"head",singleton:!1};i()(_.A,y);_.A.locals;const w=(0,m.A)(b,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-5 col-md-offset-3"},[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-heading"},[e("a",{on:{click:function(e){return t.$router.go(-1)}}},[t._v("Kembali")]),t._v(" "),e("h4",{staticClass:"text-center"},[t._v("Kod Verifikasi!")])]),t._v(" "),e("div",{staticClass:"panel-body"},[e("form",{attrs:{id:"login_form"},on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[e("div",{staticClass:"m-4"},[t.otpSent?[e("span",[t._v("Sila masukkan kod pengesahan yang dihantar ke nombor berakhir:")]),t._v(" "),e("br"),e("b",[t._v("+6 •••• •••• "+t._s(t.phoneLastFour))])]:[e("span",[t._v("Sila sahkan nombor telefon anda. Kod akan dihantar ke nombor berakhir:")]),t._v(" "),e("br"),e("b",[t._v("+6 •••• •••• "+t._s(t.phoneLastFour))])],t._v(" "),e("p",{staticClass:"text-muted small",staticStyle:{"margin-top":"12px","margin-bottom":"0"}},[t._v("\n Jika nombor ini tidak betul atau anda tidak menerima OTP, sila pergi ke kaunter IT.\n ")])],2),t._v(" "),t.otpSent&&t.showDebugOtp?e("div",{staticClass:"alert alert-info",staticStyle:{"margin-bottom":"20px"}},[t._v("\n OTP local development: "),e("b",[t._v(t._s(t.debugOtp))])]):t._e(),t._v(" "),t.otpSent?t._e():e("div",{staticClass:"form-group",staticStyle:{"margin-top":"20px"}},[e("button",{staticClass:"btn btn-primary form-control",attrs:{type:"button",disabled:t.otpSending},on:{click:t.requestOtp}},[t.otpSending?e("span",{staticClass:"spinner-border spinner-border-sm",attrs:{role:"status","aria-hidden":"true"}}):t._e(),t._v("\n Hantar OTP ke nombor ini\n ")])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.otpSent,expression:"otpSent"}],staticClass:"justify-content-center d-flex",staticStyle:{"margin-top":"20px","margin-bottom":"20px",display:"flex","flex-direction":"row","justify-content":"center","align-items":"center"}},[e("v-otp-input",{ref:"otpInput",attrs:{"input-classes":"otp-input",separator:"-","num-inputs":6,"should-auto-focus":!0,"is-input-num":!0},on:{"on-change":t.handleOnChange,"on-complete":t.handleOnComplete}})],1),t._v(" "),t.otpSent?e("div",{staticStyle:{"margin-bottom":"20px"}},[e("a",{on:{click:t.resendVerify}},[t._v("Hantar Kembali OTP!")])]):t._e(),t._v(" "),t.otpSent?e("div",{staticClass:"form-group"},[e("input",{ref:"submitbtn",staticClass:"btn btn-primary form-control",attrs:{type:"submit",value:"Sahkan & Teruskan",disabled:""}})]):t._e()])])])])}),[],!1,null,null,null).exports;const x={name:"Logo",props:{href:{type:String,default:"/"},src:{type:String,default:"/images/logo-kopkb.png"},alt:{type:String,default:"MyKoPKB Logo"},width:{type:[Number,String],default:150},height:{type:[Number,String],default:44}}};var k=n(298),S={insert:"head",singleton:!1};i()(k.A,S);k.A.locals;const C=(0,m.A)(x,(function(){var t=this,e=t._self._c;return e("a",{staticClass:"navbar-brand",attrs:{href:t.href}},[e("img",{staticClass:"app-logo",attrs:{src:t.src,alt:t.alt,width:t.width,height:t.height}})])}),[],!1,null,null,null).exports,A={name:"FloatingNavbar",components:{Logo:C},props:{logoHref:{type:String,required:!0},collapseId:{type:String,default:"myNavbar"},mainNavClass:{type:[String,Object,Array],default:null}}};var E=n(4117),T={insert:"head",singleton:!1};i()(E.A,T);E.A.locals;const P=(0,m.A)(A,(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"navbar navbar-default navbar-fixed-top floating-header logo-header",attrs:{id:"nav"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"navbar-header logo-section"},[e("button",{staticClass:"navbar-toggle",attrs:{type:"button","data-toggle":"collapse","data-target":"#"+t.collapseId}},[e("span",{staticClass:"icon-bar"}),t._v(" "),e("span",{staticClass:"icon-bar"}),t._v(" "),e("span",{staticClass:"icon-bar"})]),t._v(" "),e("Logo",{attrs:{href:t.logoHref}})],1),t._v(" "),e("div",{staticClass:"collapse navbar-collapse",attrs:{id:t.collapseId}},[e("ul",{staticClass:"nav navbar-nav",class:t.mainNavClass},[t._t("left")],2),t._v(" "),e("ul",{staticClass:"nav navbar-right navbar-nav"},[t._t("right")],2)])])])}),[],!1,null,null,null).exports,N={components:{FloatingNavbar:P},data:function(){return{loading:!0}},created:function(){this.refreshInfo()},computed:{breadcrumbs:function(){var t=this.$route.name;return"Voter Home"===t?[{label:"Laman Utama",to:null,active:!0}]:[{label:"Laman Utama",to:{name:"Voter Home"},active:!1},{label:{"Voter Home":"Laman Utama","Voter Calon":"Maklumat Calon",Mat:"MAT",Vote:"Undian",Result:"Keputusan",Attendance:"Daftar MAT",Zoom:"Pautan Mesyuarat",penyata:"Penyata Ahli"}[t]||t||"Halaman",to:null,active:!0}]}},methods:{logout:function(){var t=this;this.util.setAuthorization(),axios.post(config.API+"voter/logout").catch((function(){})).finally((function(){localStorage.clear(),t.$router.push({name:"Voter Login"})}))},hasVoted:function(){return this.data.result.length>0},refreshInfo:function(){var t=this;this.util.setAuthorization(),axios.get(config.API+"election/information").then((function(e){console.log(e),t.loading=!1,t.data.election=e.data.election,t.data.nominees=e.data.nominee,t.data.partylists=e.data.partylist,t.data.positions=e.data.position,t.data.user=e.data.voter,t.data.result=e.data.result})).catch((function(e){t.loading=!1,401==t.util.showResult(e,"error")&&t.$router.push({name:"Voter Login"})}))}}};var L=n(5576),O={insert:"head",singleton:!1};i()(L.A,O);L.A.locals;const M=(0,m.A)(N,(function(){var t=this,e=t._self._c;return e("div",[t.loading?e("div",{staticClass:"container"},[t._m(0)]):e("div",[e("FloatingNavbar",{attrs:{"logo-href":t.data.baseURL,"main-nav-class":"voter-nav-main"},scopedSlots:t._u([{key:"right",fn:function(){return[e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"fa fa-user"}),t._v(" "+t._s(t.data.user.name)+" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[e("li",{on:{click:function(e){return t.logout()}}},[e("a",[t._v("Log Keluar")])])])])]},proxy:!0}],null,!1,1783983916)}),t._v(" "),e("div",{staticClass:"voter-main"},[e("div",{staticClass:"voter-breadcrumb-wrap"},[e("div",{staticClass:"container-fluid"},[e("ol",{staticClass:"breadcrumb voter-breadcrumb"},t._l(t.breadcrumbs,(function(n,a){return e("li",{key:a,class:{active:n.active}},[n.to?e("router-link",{attrs:{to:n.to}},[t._v(t._s(n.label))]):e("span",[t._v(t._s(n.label))])],1)})),0)])]),t._v(" "),e("router-view")],1)],1)])}),[function(){var t=this._self._c;return t("div",{staticClass:"jumbotron"},[t("h1",[this._v("Loading "),t("i",{staticClass:"fa fa-refresh fa-spin"})])])}],!1,null,"2b321674",null).exports;var R=n(6129),I=n.n(R);function D(t){return D="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},D(t)}function F(){F=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new N(a||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,o,s){var l=d(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==D(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function A(e,n,a){var r=h;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===h)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=d(e,n,a);if("normal"===c.type){if(r=a.done?m:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(D(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function j(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}function B(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){j(i,a,r,o,s,"next",t)}function s(t){j(i,a,r,o,s,"throw",t)}o(void 0)}))}}const z={data:function(){return{noKp:"",claimLoading:!1,claimCode:"",claimExpiresAt:"",claimError:"",matLinkUrl:"https://linktr.ee/kopkb",portalSettings:null}},computed:{etikaUrl:function(){return this.portalSettings&&this.portalSettings.attendance_etika_url?String(this.portalSettings.attendance_etika_url).trim():""},bannerUrl:function(){var t=this.portalSettings&&this.portalSettings.home_banner_image_path?this.portalSettings.home_banner_image_path:"/images/banner.jpeg",e=this.portalSettings&&this.portalSettings.updated_at?encodeURIComponent(this.portalSettings.updated_at):"";return e?t.includes("?")?"".concat(t,"&v=").concat(e):"".concat(t,"?v=").concat(e):t},canProceedToVote:function(){var t,e=null===(t=this.data)||void 0===t?void 0:t.user;return!(!e||0===Number(e.kehadiran))&&(1!==Number(e.kehadiran)||Boolean(e.fizikal_registration_verified_at))},canVoteBySaham:function(){var t,e=Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.saham);return!Number.isNaN(e)&&e>=500},showSahamVoteBlockedMessage:function(){var t,e=(null===(t=this.data)||void 0===t?void 0:t.election)||{};return 2===Number(e.status)&&!this.hasVoted()&&this.canProceedToVote&&!this.canVoteBySaham},sahamVoteBlockedMessage:function(){return"Undian tidak tersedia: jumlah saham anda mestilah sekurang-kurangnya RM 500."},quickLinks:function(){var t,e,n=(null===(t=this.data)||void 0===t?void 0:t.user)||{},a=(null===(e=this.data)||void 0===e?void 0:e.election)||{},r=(n.no_anggota,[{key:"attendance",title:"Daftar MAT",desc:"Daftar kehadiran fizikal atau maya",icon:"fa-pencil-square-o",route:{name:"Attendance"},variant:"home-cta-link--teal",external:!1},{key:"calon",title:"Maklumat Calon",desc:"Senarai calon dan profil penuh mengikut jawatan",icon:"fa-users",route:{name:"Voter Calon"},variant:"home-cta-link--indigo",external:!1},{key:"mat28",title:this.portalSettings&&this.portalSettings.home_mat_label?this.portalSettings.home_mat_label:"MAT KE-29",desc:"Pautan luar ke maklumat mesyuarat dan sumber berkaitan",icon:"fa-globe",href:this.matLinkUrl,variant:"home-cta-link--violet",external:!0},{key:"etika-mesyuarat",title:"Etika Mesyuarat Agung",desc:"Muat Turun etika mesyuarat agung",icon:"fa-file-pdf-o",href:this.etikaUrl,variant:"home-cta-link--grey",external:!0}]);return 2===Number(a.status)&&!this.hasVoted()&&this.canProceedToVote&&this.canVoteBySaham&&r.push({key:"vote",title:"Undian",desc:"Undi calon pilihan anda",icon:"fa-check-square-o",route:{name:"Vote"},variant:"home-cta-link--rose",external:!1}),0!==Number(n.kehadiran)&&r.push({key:"zoom",title:"Pautan Mesyuarat",desc:"Sambung ke mesyuarat dalam talian",icon:"fa-video-camera",route:{name:"Zoom"},variant:"home-cta-link--cyan",external:!1}),r},canGenerateClaimCode:function(){var t;return 1===Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.kehadiran)&&(!!this.hasVoted()||this.canProceedToVote&&!this.canVoteBySaham)},kehadiranLabel:function(){var t,e=Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.kehadiran);return 1===e?"Kehadiran Fizikal":2===e?"Kehadiran Maya":"Belum daftar kehadiran"},showRegisterCta:function(){var t;return 0===Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.kehadiran)},memberRows:function(){var t,e=(null===(t=this.data)||void 0===t?void 0:t.user)||{},n=function(t){return null==t||""===t?"—":String(t).replace(/\B(?=(\d{3})+(?!\d))/g,",")};return[{icon:"fa-user",label:"Nama",value:e.name||"—"},{icon:"fa-credit-card",label:"No. Kad Pengenalan",value:e.no_kp||"—"},{icon:"fa-barcode",label:"No. Anggota",value:e.no_anggota||"—"},{icon:"fa-building",label:"Unit",value:e.unit||"—"},{icon:"fa-line-chart",label:"Saham",value:"RM "+n(e.saham)},{icon:"fa-money",label:"Yuran",value:"RM "+n(e.yuran)}]}},mounted:function(){this.syncBarcodeFromUser(),this.fetchPortalSettings()},watch:{"data.user.no_kp":function(){this.syncBarcodeFromUser()}},methods:{fetchPortalSettings:function(){var t=this;return B(F().mark((function e(){var n;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.util.setAuthorization(),e.next=4,axios.get(config.API+"portal-settings");case 4:(n=e.sent)&&n.data&&"success"===n.data.status&&(t.portalSettings=n.data.data||null),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})))()},syncBarcodeFromUser:function(){var t,e=this;null!==(t=this.data)&&void 0!==t&&null!==(t=t.user)&&void 0!==t&&t.no_kp&&(this.noKp=this.data.user.no_kp,this.$nextTick((function(){return e.generateBarcode()})))},generateBarcode:function(){this.noKp&&I()("#barcode",this.noKp,{format:"CODE128",width:1.3,height:30,displayValue:!1})},hasVoted:function(){return Array.isArray(this.data.result)&&this.data.result.length>0},generateClaimCode:function(){var t=this;return B(F().mark((function e(){var n;return F().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.claimLoading){e.next=2;break}return e.abrupt("return");case 2:return t.claimError="",t.claimLoading=!0,e.prev=4,t.util.setAuthorization(),e.next=8,axios.post(config.API+"allowance/code",{method:"cash"});case 8:(n=e.sent)&&n.data&&"success"===n.data.status?(t.claimCode=n.data.code||"",t.claimExpiresAt=n.data.expires_at||"",t.util.notify(n.data.message||"Kod dijana.","success")):(t.claimError=n&&n.data&&n.data.message?n.data.message:"Gagal menjana kod.",t.util.notify(t.claimError,"error")),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),t.claimError=e.t0&&e.t0.response&&e.t0.response.data&&e.t0.response.data.message?e.t0.response.data.message:e.t0&&e.t0.message?e.t0.message:"Gagal menjana kod.",e.t0&&e.t0.response?t.util.showResult(e.t0,"error"):t.util.notify(t.claimError,"error");case 16:return e.prev=16,t.claimLoading=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})))()}}};var U=n(7324),H={insert:"head",singleton:!1};i()(U.A,H);U.A.locals;const V=(0,m.A)(z,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"voter-home-page container-fluid"},[e("div",{staticClass:"row home-hero-row"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"home-section-container home-hero-section"},[e("section",{staticClass:"home-hero-wrap"},[e("div",{staticClass:"hero-banner home-hero-banner"},[e("img",{staticClass:"hero-banner-image",attrs:{src:t.bannerUrl,alt:"Banner"}}),t._v(" "),e("div",{staticClass:"home-hero-banner-shine",attrs:{"aria-hidden":"true"}})]),t._v(" "),e("div",{staticClass:"hero-banner-caption home-hero-caption"},[e("h1",{staticClass:"hero-banner-title"},[t._v("Portal Pengundian")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"home-hero-badges"},[e("span",{staticClass:"home-badge home-badge--location"},[e("i",{staticClass:"fa fa-map-marker"}),t._v(" "+t._s(t.kehadiranLabel)+"\n ")]),t._v(" "),e("span",{staticClass:"home-badge",class:t.hasVoted()?"home-badge--ok":"home-badge--pending"},[e("i",{staticClass:"fa",class:t.hasVoted()?"fa-check-circle":"fa-clock-o"}),t._v("\n "+t._s(t.hasVoted()?"Sudah mengundi":"Belum mengundi")+"\n ")])])])])])])]),t._v(" "),e("div",{staticClass:"row home-content-row"},[e("div",{staticClass:"col-xs-12 col-md-6 home-column home-column--primary"},[e("div",{staticClass:"home-section-container"},[t._m(1),t._v(" "),t.showRegisterCta?e("div",{staticClass:"home-member-cta"},[t._m(2),t._v(" "),e("div",{staticClass:"home-member-cta-btn-container"},[e("router-link",{staticClass:"btn btn-primary btn-block home-member-cta-btn",attrs:{to:{name:"Attendance"}}},[e("i",{staticClass:"fa fa-pencil-square-o",attrs:{"aria-hidden":"true"}}),t._v("\n Daftar MAT Sekarang\n ")])],1)]):t._e(),t._v(" "),e("div",{staticClass:"member-info-card home-member-card home-member-card--in-section"},t._l(t.memberRows,(function(n){return e("div",{key:n.label,staticClass:"member-field"},[e("span",{staticClass:"member-field-icon",attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"fa",class:n.icon})]),t._v(" "),e("div",{staticClass:"member-field-body"},[e("span",{staticClass:"member-field-label"},[t._v(t._s(n.label))]),t._v(" "),e("span",{staticClass:"member-field-value"},[t._v(t._s(n.value))])])])})),0)])]),t._v(" "),e("div",{staticClass:"col-xs-12 col-md-6 home-column home-column--secondary"},[e("div",{staticClass:"home-claim-row"},[e("div",{staticClass:"home-section-container home-section-container--claim"},[t._m(3),t._v(" "),e("div",{staticClass:"home-claim-card"},[t.canGenerateClaimCode?e("div",{staticClass:"home-claim-active"},[e("p",{staticClass:"home-claim-hint"},[t._v("\n Tunjukkan kod ini kepada petugas di kaunter untuk pengesahan bayaran tunai.\n ")]),t._v(" "),t.claimError?e("div",{staticClass:"alert alert-danger home-claim-alert"},[t._v("\n "+t._s(t.claimError)+"\n ")]):t._e(),t._v(" "),t.claimCode?e("div",{staticClass:"home-claim-code-box"},[e("div",{staticClass:"home-claim-code"},[t._v(t._s(t.claimCode))]),t._v(" "),e("div",{staticClass:"home-claim-expiry"},[t._v("\n Tamat tempoh: "),e("strong",[t._v(t._s(t.claimExpiresAt||"—"))])])]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-primary btn-block home-claim-btn",attrs:{type:"button",disabled:t.claimLoading},on:{click:function(e){return t.generateClaimCode()}}},[e("i",{staticClass:"fa fa-refresh",class:{"fa-spin":t.claimLoading}}),t._v("\n "+t._s(t.claimLoading?" Menjana...":t.claimCode?" Jana Semula Kod":" Jana Kod Tuntutan")+"\n ")])]):e("div",{staticClass:"home-claim-locked"},[t._m(4),t._v(" "),t._m(5)])])])])])]),t._v(" "),e("div",{staticClass:"row home-quick-links-row"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"home-section-container"},[t._m(6),t._v(" "),e("div",{staticClass:"home-quick-links-grid"},t._l(t.quickLinks,(function(n){return e("div",{key:n.key,staticClass:"home-quick-link-wrap"},[n.external?e("a",{staticClass:"home-cta-link",class:n.variant,attrs:{href:n.href,target:"_blank",rel:"noopener noreferrer"}},[e("span",{staticClass:"home-cta-icon"},[e("i",{staticClass:"fa",class:n.icon})]),t._v(" "),e("span",{staticClass:"home-cta-body"},[e("span",{staticClass:"home-cta-title"},[t._v(t._s(n.title))]),t._v(" "),e("span",{staticClass:"home-cta-desc"},[t._v(t._s(n.desc))])]),t._v(" "),t._m(7,!0)]):e("router-link",{staticClass:"home-cta-link",class:n.variant,attrs:{to:n.route}},[e("span",{staticClass:"home-cta-icon"},[e("i",{staticClass:"fa",class:n.icon})]),t._v(" "),e("span",{staticClass:"home-cta-body"},[e("span",{staticClass:"home-cta-title"},[t._v(t._s(n.title))]),t._v(" "),e("span",{staticClass:"home-cta-desc"},[t._v(t._s(n.desc))])]),t._v(" "),e("span",{staticClass:"home-cta-chevron",attrs:{"aria-hidden":"true"}},[e("i",{staticClass:"fa fa-angle-right"})])])],1)})),0)])])]),t._v(" "),t.showSahamVoteBlockedMessage?e("div",{staticClass:"row home-saham-block-row"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"alert alert-warning home-saham-block-alert",attrs:{role:"alert"}},[t._m(8),t._v(" "),e("span",[t._v(t._s(t.sahamVoteBlockedMessage))])])])]):t._e()])}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"hero-banner-subtitle"},[t._v("\n Gunakan "),e("strong",{staticClass:"home-hero-strong"},[t._v("pautan pantas")]),t._v(" di bawah untuk navigasi pantas ke\n halaman utama portal.\n ")])},function(){var t=this._self._c;return t("h2",{staticClass:"home-section-heading"},[t("span",{staticClass:"home-section-heading-icon",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-list-alt"})]),this._v("\n Maklumat Anggota\n ")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"home-member-cta-hint home-member-cta-hint--warning",attrs:{role:"alert"}},[e("i",{staticClass:"fa fa-exclamation-triangle",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Sila semak butiran keahlian anda sebelum mendaftar kehadiran.")])])},function(){var t=this._self._c;return t("h2",{staticClass:"home-section-heading"},[t("span",{staticClass:"home-section-heading-icon home-section-heading-icon--teal",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-ticket"})]),this._v("\n Kod Tuntutan Elaun\n ")])},function(){var t=this._self._c;return t("div",{staticClass:"home-claim-locked-icon"},[t("i",{staticClass:"fa fa-lock"})])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"home-claim-locked-text"},[t._v("\n Kod tuntutan hanya tersedia untuk kehadiran "),e("strong",[t._v("Fizikal")]),t._v(" selepas anda\n "),e("strong",[t._v("selesai mengundi")]),t._v(".\n ")])},function(){var t=this._self._c;return t("h2",{staticClass:"home-section-heading"},[t("span",{staticClass:"home-section-heading-icon",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-th-large"})]),this._v("\n Pautan Pantas\n ")])},function(){var t=this._self._c;return t("span",{staticClass:"home-cta-chevron",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-external-link"})])},function(){var t=this._self._c;return t("span",{staticClass:"home-saham-block-icon",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-exclamation-triangle"})])}],!1,null,null,null).exports;function W(t){return W="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},W(t)}function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function K(t,e,n){var a;return a=function(t,e){if("object"!=W(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=W(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==W(a)?a:a+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const G={data:function(){return{nomineeViewed:{},showNomineeModal:!1}},methods:{viewNomineeDetails:function(t){this.nomineeViewed=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.nomineeViewed.photo=this.createBase64ImageUrl(t.photo),this.showNomineeModal=!0},closeNomineeModal:function(){this.showNomineeModal=!1},createBase64ImageUrl:function(t){return"data:image/jpeg;base64,".concat(t)}}},Y=G;var X=n(1597),J={insert:"head",singleton:!1};i()(X.A,J);X.A.locals;var Z=(0,m.A)(Y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"voter-nominees-page row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-xs-12 page-column"},[e("div",{staticClass:"page-section-heading"},[t._v("Maklumat Calon")]),t._v(" "),e("div",{staticClass:"nominee-page-intro"},[t._v("\n Tekan gambar atau baris calon untuk melihat maklumat penuh.\n ")]),t._v(" "),t._l(t.data.positions,(function(n){return e("div",{key:n.id,staticClass:"panel panel-primary nominee-panel"},[e("div",{staticClass:"panel-heading nominee-panel-heading"},[e("span",[t._v(t._s(n.name))]),t._v(" "),e("span",{staticClass:"nominee-panel-badge"},[t._v("Senarai Calon")])]),t._v(" "),e("div",{staticClass:"panel-body table-responsive nominee-panel-body"},[e("table",{staticClass:"table table-hover nominee-table",attrs:{id:"table-nominee"}},[t._m(0,!0),t._v(" "),e("tbody",[t._l(t.data.nominees,(function(a,r){return a.position_id==n.id?e("tr",{key:a.id,staticClass:"nominee-row",on:{click:function(e){return t.viewNomineeDetails(a)}}},[e("td",[e("img",{staticClass:"thumbnail nominee-thumb",attrs:{src:t.createBase64ImageUrl(a.photo)}})]),t._v(" "),e("td",[t._v(t._s(a.no_calon))]),t._v(" "),e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[t._v(t._s(a.no_anggota))]),t._v(" "),e("td",[t._v(t._s(a.unit))])]):t._e()})),t._v(" "),t.data.nominees.some((function(t){return t.position_id==n.id}))?t._e():e("tr",[e("td",{staticClass:"nominee-empty-state",attrs:{colspan:"5"}},[t._v("Tiada calon untuk jawatan ini.")])])],2)])])])}))],2),t._v(" "),t.showNomineeModal?e("div",{staticClass:"modal-backdrop nominee-modal-backdrop",on:{click:function(e){return e.target!==e.currentTarget?null:t.closeNomineeModal.apply(null,arguments)}}},[e("div",{staticClass:"modal-dialog",attrs:{id:"view-nominee-modal"}},[e("div",{staticClass:"modal-content nominee-modal-content"},[t._m(1),t._v(" "),e("div",{staticClass:"modal-body nominee-modal-body"},[e("div",{staticClass:"photo-section"},[e("div",{staticClass:"nominee-photo-card"},[e("img",{staticClass:"thumbnail nominee-viewed-photo",attrs:{src:t.nomineeViewed.photo}}),t._v(" "),e("div",{staticClass:"nominee-photo-meta"},[e("div",{staticClass:"nominee-name"},[t._v(t._s(t.nomineeViewed.name))])])])]),t._v(" "),e("div",{staticClass:"detail-section"},[e("div",{staticClass:"nominee-summary-grid"},[e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Nama")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.name||"-"))])]),t._v(" "),e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Unit")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.unit||"-"))])]),t._v(" "),e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Umur")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.umur||"-"))])]),t._v(" "),e("div",{staticClass:"summary-item"},[e("span",{staticClass:"summary-label"},[t._v("Jawatan Sekarang")]),t._v(" "),e("span",{staticClass:"summary-value"},[t._v(t._s(t.nomineeViewed.jawatan_sekarang||"-"))])])]),t._v(" "),e("div",{staticClass:"nominee-section-card"},[e("div",{staticClass:"section-title"},[t._v("Taraf Pendidikan")]),t._v(" "),t.nomineeViewed.education&&t.nomineeViewed.education.length?e("ol",{staticClass:"detail-list"},t._l(t.nomineeViewed.education,(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0):e("p",{staticClass:"detail-empty"},[t._v("Tiada maklumat pendidikan.")])]),t._v(" "),e("div",{staticClass:"nominee-section-card"},[e("div",{staticClass:"section-title"},[t._v("Pengalaman Kerja")]),t._v(" "),t.nomineeViewed.experience&&t.nomineeViewed.experience.length?e("ol",{staticClass:"detail-list"},t._l(t.nomineeViewed.experience,(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0):e("p",{staticClass:"detail-empty"},[t._v("Tiada maklumat pengalaman kerja.")])])])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-success",on:{click:t.closeNomineeModal}},[t._v("Tutup")])])])])]):t._e()])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v("Bil.")]),t._v(" "),e("th",[t._v("Nama")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")])])])},function(){var t=this._self._c;return t("div",{staticClass:"modal-header"},[t("div",[t("h5",{staticClass:"modal-title"},[this._v("Maklumat Calon")])])])}],!1,null,null,null);const Q=Z.exports;function tt(t){return tt="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},tt(t)}var et,nt,at,rt;const it=(et={methods:{navigateToURL:function(){window.open("https://linktr.ee/kopkb","_blank")}},created:function(){},data:function(){return{x:{}}},computed:{header:function(){return this.x.name+" for "+this.getPosition(this.x.position_id)}}},at=function(){return{imageUrl:"/images/linktree-kopkb.jpg"}},rt=function(t,e){if("object"!=tt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=tt(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(nt="data","string"),(nt="symbol"==tt(rt)?rt:rt+"")in et?Object.defineProperty(et,nt,{value:at,enumerable:!0,configurable:!0,writable:!0}):et[nt]=at,et);var ot=n(5387),st={insert:"head",singleton:!1};i()(ot.A,st);ot.A.locals;const lt=(0,m.A)(it,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-md-12"},[e("div",[e("img",{staticClass:"background-img",attrs:{src:t.imageUrl,alt:"background-img"},on:{click:t.navigateToURL}})]),t._v(" "),e("hr"),t._v(" "),t._m(0)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-2 text-muted text-center",staticStyle:{"font-weight":"bold"}},[t._v("\n Tekan pada gambar untuk ke "),e("span",{staticStyle:{color:"#007bff"}},[t._v("Linktree")])])}],!1,null,null,null).exports;function ct(t){return ct="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},ct(t)}function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function dt(t,e,n){return e=function(t){var e=function(t,e){if("object"!=ct(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=ct(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ct(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const ht={created:function(){var t,e=Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.saham);if(Number.isNaN(e)||e<500)return this.util.notify(this.sahamVoteBlockedMessage,"error"),void this.$router.push({name:"Voter Home"});for(var n in(this.data.result.length>0||2!=this.data.election.status)&&this.$router.push({name:"Voter Home"}),this.data.positions)this.selected.push({position_id:this.data.positions[n].id,nominee_id:[]})},data:function(){return{selected:[],name:{},selectedNominees:{},max:1,nomineeViewed:{},showNomineeModal:!1}},computed:{canVoteBySaham:function(){var t,e=Number(null===(t=this.data)||void 0===t||null===(t=t.user)||void 0===t?void 0:t.saham);return!Number.isNaN(e)&&e>=500},sahamVoteBlockedMessage:function(){return"Undian tidak tersedia: jumlah saham anda mestilah sekurang-kurangnya RM 500."},allSelectedNomineeIds:function(){for(var t=[],e=0;e<this.selected.length;e++)for(var n=this.selected[e]&&Array.isArray(this.selected[e].nominee_id)?this.selected[e].nominee_id:[],a=0;a<n.length;a++)t.push(n[a]);return t},disabledCheckboxes:function(){var t=this;if(!this.canVoteBySaham)return this.data.nominees.map((function(){return!0}));var e=this.allSelectedNomineeIds;return this.data.nominees.map((function(n){return!e.includes(n.id)&&t.checkDisabled()}))}},methods:{totalSelectedCount:function(){return this.allSelectedNomineeIds.length},selectedEntryForPosition:function(t){for(var e=0;e<this.selected.length;e++)if(String(this.selected[e].position_id)===String(t))return this.selected[e];return null},test:function(){console.log("tab"),this.util.showModal("#vote-modal")},submit:function(){if(this.canVoteBySaham)if(this.totalSelectedCount()===this.max){var t=this;this.util.notify("Submitting your vote, please wait...","loading"),console.log(this.selected);var e={vote:this.selected};axios.post(config.API+"election/vote",e).then((function(e){$.notifyClose(),e&&e.data&&"string"==typeof e.data.message&&e.data.message&&t.util.notify(e.data.message,"success"),t.util.showResult(e,"success")&&(t.data.result=e.data.result,t.$router.push({name:"Voter Home"}),$(".modal").modal("hide"))})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))}else this.util.notify("Sila pastikan anda memilih (".concat(this.max,") orang calon."),"error");else this.util.notify(this.sahamVoteBlockedMessage,"error")},hasNullVote:function(){console.log("null"+this.selectedNominees);var t=this.selectedNominees;for(var e in t)if(null==t[e].nominee_id)return this.util.notify("You must vote on all position","error"),!0;return!1},reset:function(){var t=this.selectedNominees;for(var e in t)$("#"+t[e].nominee_id).selected(!1),t[e].nominee_id=null},vote:function(t,e){var n=this.selectedEntryForPosition(t);if(n){var a=n.nominee_id.indexOf(e);if(-1===a){if(this.totalSelectedCount()>=this.max)return void this.util.notify("Boleh mengundi (".concat(this.max,") calon sahaja!"),"warning");n.nominee_id.push(e)}else n.nominee_id.splice(a,1)}},getSelectedNomineeName:function(t){return this.getNominee(t)},getNomineeNo:function(t){var e=this.data.nominees.find((function(e){return e.id===t}));return e?e.no_calon:""},getName:function(t){this.data.positions;var e=this.selected;for(var n in e)if(e[n].position_id==t)return this.getNominee(e[n].nominee_id);return""},getNominee:function(t){this.data.positions;var e=this.data.nominees;for(var n in e)if(e[n].id==t)return e[n].name;return""},getPartylist:function(t){var e=this.data.partylists;for(var n in e)if(e[n].id==t)return e[n].name;return"No Partylist"},viewNomineeDetails:function(t){this.nomineeViewed=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(n),!0).forEach((function(e){dt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),this.nomineeViewed.photo=this.createBase64ImageUrl(t.photo),this.showNomineeModal=!0},closeNomineeModal:function(){this.showNomineeModal=!1},createBase64ImageUrl:function(t){return"data:image/png;base64,"+t},checkUndi:function(){this.canVoteBySaham?this.totalSelectedCount()<=0?this.util.notify("Sila pastikan anda memilih (1) orang calon.","error"):this.util.showModal("#vote-modal"):this.util.notify(this.sahamVoteBlockedMessage,"error")},checkDisabled:function(){if(this.totalSelectedCount()>=this.max)return!0}}},ft=ht;var pt=n(3458),mt={insert:"head",singleton:!1};i()(pt.A,mt);pt.A.locals;var gt=(0,m.A)(ft,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"vote-page row col-md-10 col-md-offset-1"},[t.canVoteBySaham?t._e():e("div",{staticClass:"col-xs-12 vote-saham-block-banner"},[e("div",{staticClass:"alert alert-danger vote-saham-block-alert",attrs:{role:"alert"}},[e("i",{staticClass:"fa fa-ban",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v(t._s(t.sahamVoteBlockedMessage))])])]),t._v(" "),e("div",{staticClass:"col-md-8 vote-content-column"},[t._m(0),t._v(" "),t._l(t.data.positions,(function(n){return e("div",{key:n.id,staticClass:"panel panel-info vote-panel"},[e("div",{staticClass:"panel-heading vote-panel-heading"},[e("span",[t._v(t._s(n.name))]),t._v(" "),e("span",{staticClass:"vote-panel-badge"},[t._v("Calon Aktif")])]),t._v(" "),e("div",{staticClass:"panel-body vote-panel-body vote-nominee-cards-wrap"},[e("div",{staticClass:"vote-nominee-card-list"},[t._l(t.data.nominees,(function(a,r){return a.position_id==n.id?e("div",{key:a.id,staticClass:"vote-nominee-card",class:{"vote-nominee-card--selected":t.allSelectedNomineeIds.includes(a.id)},on:{click:function(e){return t.viewNomineeDetails(a)}}},[e("div",{staticClass:"vote-nominee-card__pick",on:{click:function(t){t.stopPropagation()}}},[e("input",{staticClass:"vote-nominee-card__checkbox",attrs:{type:"checkbox",id:"vote-nominee-"+a.id,disabled:t.disabledCheckboxes[r]},domProps:{checked:t.allSelectedNomineeIds.includes(a.id)},on:{change:function(e){return t.vote(n.id,a.id)}}})]),t._v(" "),e("img",{staticClass:"vote-nominee-card__photo",attrs:{src:t.createBase64ImageUrl(a.photo),alt:""}}),t._v(" "),e("div",{staticClass:"vote-nominee-card__body"},[e("span",{staticClass:"vote-nominee-card__no"},[t._v("#"+t._s(a.no_calon))]),t._v(" "),e("div",{staticClass:"vote-nominee-card__name"},[t._v(t._s(a.name))]),t._v(" "),e("div",{staticClass:"vote-nominee-card__unit"},[e("span",{staticClass:"vote-nominee-card__label"},[t._v("Unit")]),t._v("\n\t\t\t\t\t\t\t\t"+t._s(a.unit)+"\n\t\t\t\t\t\t\t")])]),t._v(" "),t._m(1,!0)]):t._e()})),t._v(" "),t.data.nominees.some((function(t){return t.position_id==n.id}))?t._e():e("div",{staticClass:"vote-empty-state"},[t._v("\n\t\t\t\t\t\tTiada calon untuk jawatan ini.\n\t\t\t\t\t")])],2)])])}))],2),t._v(" "),e("div",{staticClass:"col-xs-12 vote-summary-bottom"},[e("div",{staticClass:"vote-summary-card"},[e("div",{staticClass:"vote-section-kicker"},[t._v("Ringkasan Undian")]),t._v(" "),e("h4",{staticClass:"vote-page-title"},[t._v("UNDIAN CALON ANGGOTA LEMBAGA")]),t._v(" "),e("p",{staticClass:"vote-page-subtitle"},[t._v("Semak calon yang telah dipilih sebelum menghantar undi anda.")]),t._v(" "),t._m(2),t._v(" "),e("ul",{staticClass:"list-group vote-summary-list"},[e("li",{staticClass:"list-group-item vote-summary-item"},[e("div",{staticClass:"vote-position-name"},[t._v("Calon Dipilih")]),t._v(" "),t.allSelectedNomineeIds.length?e("div",{staticClass:"vote-selected-list"},t._l(t.allSelectedNomineeIds,(function(n){return e("div",{key:n,staticClass:"vote-selected-item"},[e("span",{staticClass:"vote-selected-badge"},[t._v("#"+t._s(t.getNomineeNo(n)))]),t._v(" "),e("span",[t._v(t._s(t.getSelectedNomineeName(n)))])])})),0):e("div",{staticClass:"vote-empty-selection"},[t._v("\n\t\t\t\t\t\tBelum ada calon dipilih.\n\t\t\t\t\t")])]),t._v(" "),e("li",{staticClass:"list-group-item vote-summary-action"},[e("button",{staticClass:"btn btn-success btn-block vote-submit-button",attrs:{disabled:!t.canVoteBySaham},on:{click:function(e){return t.checkUndi()}}},[t._v("UNDI")])])])])]),t._v(" "),t.canVoteBySaham?e("div",{staticClass:"vote-mobile-actionbar"},[e("div",{staticClass:"vote-mobile-actionbar__inner"},[e("div",{staticClass:"vote-mobile-actionbar__meta"},[e("div",{staticClass:"vote-mobile-actionbar__title"},[t._v("Undi")]),t._v(" "),e("div",{staticClass:"vote-mobile-actionbar__hint"},[t._v("\n\t\t\t\t\tDipilih: "),e("b",[t._v(t._s(t.allSelectedNomineeIds.length))]),t._v(" / "+t._s(t.max)+"\n\t\t\t\t")])]),t._v(" "),e("button",{staticClass:"btn btn-success vote-mobile-actionbar__btn",on:{click:function(e){return t.checkUndi()}}},[t._v("\n\t\t\t\tUNDI\n\t\t\t")])])]):t._e(),t._v(" "),t.showNomineeModal?e("div",{staticClass:"vote-nominee-modal-backdrop",on:{click:function(e){return e.target!==e.currentTarget?null:t.closeNomineeModal.apply(null,arguments)}}},[e("div",{staticClass:"modal-dialog vote-nominee-modal-dialog",attrs:{role:"dialog","aria-modal":"true","aria-labelledby":"vote-nominee-modal-title"}},[e("div",{staticClass:"modal-content vote-nominee-modal-content"},[t._m(3),t._v(" "),e("div",{staticClass:"modal-body vote-nominee-modal-body"},[e("div",{staticClass:"vote-nominee-photo-section"},[e("div",{staticClass:"vote-nominee-photo-card"},[e("img",{staticClass:"thumbnail vote-nominee-viewed-photo",attrs:{src:t.nomineeViewed.photo,alt:""}}),t._v(" "),e("div",{staticClass:"vote-nominee-photo-meta"},[e("div",{staticClass:"vote-nominee-modal-name"},[t._v(t._s(t.nomineeViewed.name))])])])]),t._v(" "),e("div",{staticClass:"vote-nominee-detail-section"},[e("div",{staticClass:"vote-nominee-summary-grid"},[e("div",{staticClass:"vote-nominee-summary-item"},[e("span",{staticClass:"vote-nominee-summary-label"},[t._v("Nama")]),t._v(" "),e("span",{staticClass:"vote-nominee-summary-value"},[t._v(t._s(t.nomineeViewed.name||"-"))])]),t._v(" "),e("div",{staticClass:"vote-nominee-summary-item"},[e("span",{staticClass:"vote-nominee-summary-label"},[t._v("No. Calon")]),t._v(" "),e("span",{staticClass:"vote-nominee-summary-value"},[t._v(t._s(t.nomineeViewed.no_calon||"-"))])]),t._v(" "),e("div",{staticClass:"vote-nominee-summary-item"},[e("span",{staticClass:"vote-nominee-summary-label"},[t._v("No. Anggota")]),t._v(" "),e("span",{staticClass:"vote-nominee-summary-value"},[t._v(t._s(t.nomineeViewed.no_anggota||"-"))])]),t._v(" "),e("div",{staticClass:"vote-nominee-summary-item"},[e("span",{staticClass:"vote-nominee-summary-label"},[t._v("Unit")]),t._v(" "),e("span",{staticClass:"vote-nominee-summary-value"},[t._v(t._s(t.nomineeViewed.unit||"-"))])]),t._v(" "),e("div",{staticClass:"vote-nominee-summary-item"},[e("span",{staticClass:"vote-nominee-summary-label"},[t._v("Umur")]),t._v(" "),e("span",{staticClass:"vote-nominee-summary-value"},[t._v(t._s(t.nomineeViewed.umur||"-"))])]),t._v(" "),e("div",{staticClass:"vote-nominee-summary-item"},[e("span",{staticClass:"vote-nominee-summary-label"},[t._v("Jawatan Sekarang")]),t._v(" "),e("span",{staticClass:"vote-nominee-summary-value"},[t._v(t._s(t.nomineeViewed.jawatan_sekarang||"-"))])])]),t._v(" "),e("div",{staticClass:"vote-nominee-section-card"},[e("div",{staticClass:"vote-nominee-section-title"},[t._v("Taraf Pendidikan")]),t._v(" "),t.nomineeViewed.education&&t.nomineeViewed.education.length?e("ol",{staticClass:"vote-nominee-detail-list"},t._l(t.nomineeViewed.education,(function(n,a){return e("li",{key:"ed-"+a},[t._v(t._s(n)+"\n\t\t\t\t\t\t\t\t")])})),0):e("p",{staticClass:"vote-nominee-detail-empty"},[t._v("Tiada maklumat pendidikan.")])]),t._v(" "),e("div",{staticClass:"vote-nominee-section-card"},[e("div",{staticClass:"vote-nominee-section-title"},[t._v("Pengalaman Kerja")]),t._v(" "),t.nomineeViewed.experience&&t.nomineeViewed.experience.length?e("ol",{staticClass:"vote-nominee-detail-list"},t._l(t.nomineeViewed.experience,(function(n,a){return e("li",{key:"ex-"+a},[t._v(t._s(n)+"\n\t\t\t\t\t\t\t\t")])})),0):e("p",{staticClass:"vote-nominee-detail-empty"},[t._v("Tiada maklumat pengalaman kerja.")])])])]),t._v(" "),e("div",{staticClass:"modal-footer vote-nominee-modal-footer"},[e("button",{staticClass:"btn btn-success",attrs:{type:"button"},on:{click:t.closeNomineeModal}},[t._v("Tutup")])])])])]):t._e(),t._v(" "),e("div",{staticClass:"modal fade app-modal vote-confirm-modal",attrs:{id:"vote-modal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content vote-modal-content"},[t._m(4),t._v(" "),e("div",{staticClass:"modal-body vote-modal-body"},[e("h5",{staticClass:"vote-modal-note"},[t._v("Nota: Sila pastikan anda telah membuat undian dengan betul.")]),t._v(" "),t.allSelectedNomineeIds.length?e("div",{staticClass:"vote-modal-selection"},[e("div",{staticClass:"vote-modal-selection-title"},[t._v("Calon dipilih")]),t._v(" "),t._l(t.allSelectedNomineeIds,(function(n){return e("div",{key:n,staticClass:"vote-selected-item"},[e("span",{staticClass:"vote-selected-badge"},[t._v("#"+t._s(t.getNomineeNo(n)))]),t._v(" "),e("span",[t._v(t._s(t.getSelectedNomineeName(n)))])])}))],2):t._e()]),t._v(" "),e("div",{staticClass:"modal-footer vote-modal-footer"},[e("button",{staticClass:"btn btn-secondary",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Tutup")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:!t.canVoteBySaham},on:{click:function(e){return t.submit()}}},[t._v("Hantar")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"vote-content-header"},[e("div",[e("div",{staticClass:"vote-section-kicker"},[t._v("Senarai Calon")]),t._v(" "),e("h4",{staticClass:"vote-content-title"},[t._v("Pilih Calon Anda")]),t._v(" "),e("p",{staticClass:"vote-page-hint"},[t._v("\n\t\t\t\t\tTekan kad calon untuk melihat maklumat penuh (pendidikan & pengalaman).\n\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"alert alert-warning vote-alert",attrs:{role:"alert"}},[t._v("\n\t\t\t\tAnda hanya boleh memilih "),e("b",[t._v("satu (1) orang calon")]),t._v(" sahaja.\n\t\t\t")])])},function(){var t=this._self._c;return t("div",{staticClass:"vote-nominee-card__chev",attrs:{"aria-hidden":"true"}},[t("i",{staticClass:"fa fa-angle-right"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"vote-limit-pill"},[t._v("\n\t\t\t\tAnda hanya boleh memilih "),e("b",[t._v("satu (1) orang calon")]),t._v(" sahaja.\n\t\t\t")])},function(){var t=this._self._c;return t("div",{staticClass:"modal-header vote-nominee-modal-header"},[t("div",[t("h5",{staticClass:"modal-title vote-nominee-modal-title",attrs:{id:"vote-nominee-modal-title"}},[this._v("Maklumat\n\t\t\t\t\t\t\tCalon")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header vote-modal-header"},[e("div",[e("div",{staticClass:"vote-section-kicker"},[t._v("Pengesahan")]),t._v(" "),e("h5",{staticClass:"modal-title vote-modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Sahkan Undian Anda")])]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])}],!1,null,"23b0d17f",null);const vt=gt.exports;const bt={data:function(){return{results:[{position_id:6,nominee_id:1,votes:2},{position_id:8,nominee_id:6,votes:2},{position_id:7,nominee_id:5,votes:2},{position_id:7,nominee_id:4,votes:1},{position_id:6,nominee_id:2,votes:1},{position_id:8,nominee_id:7,votes:1}]}},created:function(){this.refreshResults(),this.$nextTick((function(){this.initChart()}))},watch:{position_id:function(){this.initChart()}},methods:{refreshResults:function(){var t=this;this.util.notify("Refreshing results","loading"),axios.get(config.API+"election/result").then((function(e){$.notifyClose(),console.log(e),t.data.results=e.data,t.data.last_update=new Date,t.initChart()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},initChart:function(){$.plot($("#chart"),this.datas,{series:{pie:{show:!0,innerRadius:.5}}})},getPosition:function(t){var e=this.data.positions;for(var n in e)if(t==e[n].id)return e[n].name;return""},getNominee:function(t){var e=this.data.nominees;for(var n in e)if(t==e[n].id)return e[n].name;return""},getVotes:function(t){var e=this.data.results;for(var n in e)if(e[n].nominee_id==t)return e[n].votes;return 0}},computed:{last_update:function(){var t=this.data.last_update;return t.toDateString()+" "+t.toLocaleTimeString()},position_id:function(){return this.$route.query.position_id?this.$route.query.position_id:this.data.positions[0].id},datas:function(){var t=[],e=this.data.nominees;for(var n in e)if(e[n].position_id==this.position_id){var a=[];a.label=e[n].name,a.data=[[1,this.getVotes(e[n].id)]],t.push(a)}return t}}},_t=bt;var yt=(0,m.A)(_t,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-md-4"},[e("h4",[t._v("Jawatan")]),e("hr"),t._v(" "),e("ul",{staticClass:"list-group"},[t._l(t.data.positions,(function(n){return e("router-link",{key:n.id,staticClass:"list-group-item",class:{active:n.id==t.position_id},attrs:{tag:"li",to:{query:{position_id:n.id}},exact:"",replace:""}},[t._v("\n\t\t\t\t"+t._s(n.name)+"\n\t\t\t")])})),t._v(" "),e("li",{staticClass:"list-group-item"},[e("center",[e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.refreshResults()}}},[t._v("\n\t\t\t\t\t\tKemaskini Keputusan "),e("i",{staticClass:"fa fa-refresh"})])])],1)],2)]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("h4",[t._v("Results")]),e("hr"),t._v(" "),e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-heading"},[t._v(t._s(t.getPosition(t.position_id))+" - Results as of : "+t._s(t.last_update))]),t._v(" "),t._m(0)])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"panel-body"},[t("div",{staticStyle:{height:"300px",width:"300px"},attrs:{id:"chart"}})])}],!1,null,null,null);const wt=yt.exports;function xt(t){return xt="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},xt(t)}function kt(){kt=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new N(a||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,o,s){var l=d(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==xt(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function A(e,n,a){var r=h;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===h)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=d(e,n,a);if("normal"===c.type){if(r=a.done?m:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(xt(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function St(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}const Ct={data:function(){return{loading:!1,userSubmitted:!1,selectedKehadiran:"0",portalSettings:null}},mounted:function(){if(this.data&&this.data.user&&0==this.data.user.kehadiran){var t=document.getElementById("kehadiran");t&&(this.selectedKehadiran=t.value||"0")}this.fetchPortalSettings()},computed:{etikaUrl:function(){var t=this.portalSettings&&this.portalSettings.attendance_etika_url?String(this.portalSettings.attendance_etika_url).trim():"";return t||"https://drive.google.com/uc?export=download&id=1O5DVDIbGy-w0bejV6RqtJGIty-_5LJD8"},electionVotingActive:function(){var t=this.data&&this.data.election;return!(!t||void 0===t.status||null===t.status)&&2===Number(t.status)},canProceedToVote:function(){var t=this.data&&this.data.user;return!(!t||0===Number(t.kehadiran))&&(1!==Number(t.kehadiran)||Boolean(t.fizikal_registration_verified_at))},canVoteBySaham:function(){var t=Number(this.data&&this.data.user&&this.data.user.saham);return!Number.isNaN(t)&&t>=500},sahamVoteBlockedMessage:function(){return"Undian tidak tersedia: jumlah saham anda mestilah sekurang-kurangnya RM 500."}},methods:{fetchPortalSettings:(At=kt().mark((function t(){var e;return kt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,this.util.setAuthorization(),t.next=4,axios.get(config.API+"portal-settings");case 4:(e=t.sent)&&e.data&&"success"===e.data.status&&(this.portalSettings=e.data.data||null),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})),Et=function(){var t=this,e=arguments;return new Promise((function(n,a){var r=At.apply(t,e);function i(t){St(r,n,a,i,o,"next",t)}function o(t){St(r,n,a,i,o,"throw",t)}i(void 0)}))},function(){return Et.apply(this,arguments)}),onPhysicalGateCodeInput:function(t){var e=t.target,n=e.value.toUpperCase();if(e.value!==n){var a=e.selectionStart,r=e.selectionEnd;e.value=n,null!=a&&null!=r&&e.setSelectionRange(a,r)}},reloadAttendanceState:function(){location.reload()},edit:function(){if(!this.loading)if("0"!==document.getElementById("kehadiran").value){this.loading=!0;var t=this;this.util.notify("Adding Attendance","loading"),axios.put(config.API+"attendance/"+this.data.user.id,$("#edit_form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&(location.reload(),t.canVoteBySaham&&t.$router.push({name:"Vote"}))})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"error")}))}else this.util.notify(" Sila pilih jenis kehadiran anda sebelum meneruskan.","error")}}};var At,Et;const Tt=Ct;var Pt=n(881),Nt={insert:"head",singleton:!1};i()(Pt.A,Nt);Pt.A.locals;const Lt=(0,m.A)(Tt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"attendance-page row col-md-10 col-md-offset-1"},[e("div",{staticClass:"col-md-12"},[0===Number(t.data.user.kehadiran)?e("div",{staticClass:"attendance-info-top"},[e("div",{staticClass:"attendance-info-top__kicker"},[t._v("Makluman")]),t._v(" "),t._m(0)]):t._e(),t._v(" "),e("form",{staticClass:"attendance-card",attrs:{id:"edit_form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"text-center mt-4 attendance-action-area"},[0!=t.data.user.kehadiran&&t.canProceedToVote?e("div",{staticClass:"attendance-success-card"},[e("div",{staticClass:"attendance-success-kicker"},[t._v("Kehadiran Disahkan")]),t._v(" "),e("p",{staticClass:"attendance-success-text"},[t._v("Kehadiran anda telah disahkan secara")]),t._v(" "),e("h5",{staticClass:"attendance-success-mode"},[t._v("\n "+t._s(1==t.data.user.kehadiran?"FIZIKAL":"MAYA")+"\n ")]),t._v(" "),t.canVoteBySaham?[e("router-link",{staticClass:"btn btn-warning attendance-vote-button",attrs:{to:{name:"Vote"}}},[t._v("\n Undi Sekarang\n ")])]:[e("div",{staticClass:"alert alert-warning attendance-saham-block-alert",attrs:{role:"alert"}},[t._v("\n "+t._s(t.sahamVoteBlockedMessage)+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-warning attendance-vote-button",attrs:{type:"button",disabled:""}},[t._v("\n Undi Sekarang\n ")])]],2):0==t.data.user.kehadiran||t.canProceedToVote?[e("h5",{staticClass:"attendance-section-kicker"},[t._v("Butiran Kehadiran")]),t._v(" "),e("div",{staticClass:"attendance-register-box"},[e("p",{staticClass:"attendance-precheck"},[t._v("\n Sila semak maklumat anda di bawah terlebih dahulu sebelum mendaftar kehadiran.\n ")]),t._v(" "),e("div",{staticClass:"form-group attendance-choice-box"},[e("label",{attrs:{for:"kehadiran"}},[t._v("Kehadiran")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.selectedKehadiran,expression:"selectedKehadiran"}],staticClass:"form-control attendance-select",attrs:{id:"kehadiran",name:"kehadiran",required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selectedKehadiran=e.target.multiple?n:n[0]}}},[e("option",{attrs:{value:"0"}},[t._v("Sila Pilih :")]),t._v(" "),e("option",{attrs:{value:"1"}},[t._v("Fizikal")]),t._v(" "),e("option",{attrs:{value:"2"}},[t._v("Maya")])])]),t._v(" "),"1"===t.selectedKehadiran?e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"physical_gate_code"}},[t._v("Kod skrin kaunter pendaftaran")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"physical_gate_code",id:"physical_gate_code",autocomplete:"off",autocapitalize:"characters",inputmode:"text",placeholder:"8 aksara, semak skrin di kaunter",maxlength:"64"},on:{input:t.onPhysicalGateCodeInput}}),t._v(" "),e("small",{staticClass:"form-text text-muted attendance-helper-text"},[t._v("\n Kod berputar setiap minit — masukkan kod semasa yang dipaparkan di kaunter sebelum\n menghantar.\n ")])]):t._e(),t._v(" "),e("div",{staticClass:"attendance-register-box__actions"},[t.electionVotingActive?e("button",{staticClass:"btn btn-lg btn-success attendance-submit-button",attrs:{type:"submit"}},[t._v("\n DAFTAR KEHADIRAN\n ")]):e("div",{staticClass:"alert alert-info attendance-voting-notice"},[t._m(2),t._v(" "),t._m(3)])])])]:e("div",{staticClass:"attendance-pending-card"},[e("div",{staticClass:"attendance-pending-kicker"},[t._v("Menunggu pengesahan")]),t._v(" "),t._m(1),t._v(" "),e("p",{staticClass:"attendance-pending-hint"},[t._v("\n Selepas pengesahan, butang mengundi akan dipaparkan di sini. Semak semula halaman ini\n selepas beberapa ketika.\n ")]),t._v(" "),e("button",{staticClass:"btn btn-default attendance-refresh-button",attrs:{type:"button"},on:{click:t.reloadAttendanceState}},[t._v("\n Muat semula\n ")])])],2),t._v(" "),e("div",{staticClass:"attendance-info-grid"},[e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"name",readonly:"",required:""},domProps:{value:t.data.user.name}})]),t._v(" "),e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"no_kp"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"no_kp",readonly:"",required:""},domProps:{value:t.data.user.no_kp}})]),t._v(" "),e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"no_anggota"}},[t._v("No. Anggota")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"no_anggota",readonly:"",required:""},domProps:{value:t.data.user.no_anggota}})]),t._v(" "),e("div",{staticClass:"form-group attendance-field"},[e("label",{attrs:{for:"unit"}},[t._v("Unit")]),t._v(" "),e("input",{staticClass:"form-control attendance-input",attrs:{type:"text",name:"unit",readonly:"",required:""},domProps:{value:t.data.user.unit}})])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"attendance-info-top__body"},[e("p",[e("strong",[t._v("*")]),t._v(" Pendaftaran akan dibuka dari "),e("strong",[t._v("jam 7.00 pagi hingga 10.00\n pagi pada hari pengundian.")])]),t._v(" "),e("p",[e("strong",[t._v("*")]),t._v(" Elaun kehadiran berjumlah "),e("strong",[t._v("RM300.00 (secara fizikal)")]),t._v("\n akan\n diberikan secara TUNAI selepas mesyuarat. "),e("br"),t._v("\n Manakala "),e("strong",[t._v("RM150.00 (secara atas talian)")]),t._v(" akan dikreditkan ke akaun\n anggota\n yang\n hadir penuh.\n ")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"attendance-pending-text"},[t._v("\n Kehadiran "),e("strong",[t._v("fizikal")]),t._v(" anda telah direkod. Sila pergi ke kaunter pendaftaran\n untuk\n mengesahkan pendaftaran sebelum anda boleh mengundi.\n ")])},function(){var t=this._self._c;return t("p",{staticClass:"attendance-voting-notice__title"},[t("strong",[this._v("Butang “DAFTAR KEHADIRAN” belum\n tersedia")])])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"attendance-voting-notice__body"},[t._v("\n Buat masa ini proses undian / mesyuarat "),e("strong",[t._v("belum bermula")]),t._v(".\n ")])}],!1,null,null,null).exports;function Ot(t){return Ot="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},Ot(t)}function Mt(){Mt=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new N(a||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,o,s){var l=d(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Ot(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function A(e,n,a){var r=h;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===h)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=d(e,n,a);if("normal"===c.type){if(r=a.done?m:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Ot(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function Rt(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}function It(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){Rt(i,a,r,o,s,"next",t)}function s(t){Rt(i,a,r,o,s,"throw",t)}o(void 0)}))}}const Dt={data:function(){return{meetingUrl:"https://meet.google.com/paa-tpck-ssq",portalSettings:null}},computed:{zoomMeetingLabel:function(){return this.portalSettings&&this.portalSettings.zoom_meeting_label?this.portalSettings.zoom_meeting_label:"KoPKB KALI KE-29/2025"},zoomSubtitle:function(){return this.portalSettings&&this.portalSettings.zoom_subtitle?this.portalSettings.zoom_subtitle:"Sertai Mesyuarat Agung Tahunan KoPKB kali ke-29/2025 melalui pautan rasmi di bawah."}},mounted:function(){this.fetchPortalSettings()},methods:{fetchPortalSettings:function(){var t=this;return It(Mt().mark((function e(){var n;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.util.setAuthorization(),e.next=4,axios.get(config.API+"portal-settings");case 4:(n=e.sent)&&n.data&&"success"===n.data.status&&(t.portalSettings=n.data.data||null,t.portalSettings.zoom_meeting_url&&(t.meetingUrl=t.portalSettings.zoom_meeting_url)),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})))()},navigateToURL:function(){window.open(this.meetingUrl,"_blank")},copyMeetingUrl:function(){var t=this;return It(Mt().mark((function e(){var n,a;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=String(t.meetingUrl||"").trim()){e.next=3;break}return e.abrupt("return");case 3:if(e.prev=3,!(navigator&&navigator.clipboard&&navigator.clipboard.writeText)){e.next=9;break}return e.next=7,navigator.clipboard.writeText(n);case 7:return t.util.notify("Pautan disalin.","success"),e.abrupt("return");case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:try{(a=document.createElement("textarea")).value=n,a.setAttribute("readonly",""),a.style.position="absolute",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),t.util.notify("Pautan disalin.","success")}catch(e){t.util.notify("Tidak dapat salin pautan.","error")}case 14:case"end":return e.stop()}}),e,null,[[3,11]])})))()}}};var Ft=n(4571),jt={insert:"head",singleton:!1};i()(Ft.A,jt);Ft.A.locals;const Bt=(0,m.A)(Dt,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"zoom-page"},[e("div",{staticClass:"zoom-shell"},[e("div",{staticClass:"zoom-hero-card"},[e("div",{staticClass:"zoom-section-kicker"},[t._v("Pautan Mesyuarat")]),t._v(" "),e("h3",{staticClass:"zoom-title"},[t._v("Selamat Datang")]),t._v(" "),e("p",{staticClass:"zoom-subtitle"},[t._v(t._s(t.zoomSubtitle))])]),t._v(" "),e("div",{staticClass:"zoom-main-card"},[e("div",{staticClass:"zoom-meeting-badge"},[t._v(t._s(t.zoomMeetingLabel))]),t._v(" "),e("h4",{staticClass:"zoom-content-title"},[t._v("Pautan Mesyuarat Rasmi")]),t._v(" "),e("p",{staticClass:"zoom-content-text"},[t._v("\n Pastikan anda telah mendaftar kehadiran dan bersedia dengan sambungan internet yang stabil sebelum menyertai mesyuarat.\n ")]),t._v(" "),e("div",{staticClass:"zoom-action-panel"},[e("button",{staticClass:"btn-interactive",attrs:{type:"button"},on:{click:t.navigateToURL}},[e("i",{staticClass:"fa fa-video-camera"}),t._v(" Buka pautan mesyuarat\n ")]),t._v(" "),e("button",{staticClass:"btn-secondary",attrs:{type:"button"},on:{click:t.copyMeetingUrl}},[e("i",{staticClass:"fa fa-clipboard"}),t._v(" Salin pautan\n ")]),t._v(" "),t.meetingUrl?e("div",{staticClass:"zoom-link-preview"},[e("span",{staticClass:"zoom-link-preview__label"},[t._v("Pautan:")]),t._v(" "),e("span",{staticClass:"zoom-link-preview__value"},[t._v(t._s(t.meetingUrl))])]):t._e(),t._v(" "),e("div",{staticClass:"zoom-link-note"},[t._v("\n Pautan akan dibuka terus ke sesi mesyuarat rasmi.\n ")])])])])])}),[],!1,null,"e39c837e",null).exports;function zt(t,e){return function(){return t.apply(e,arguments)}}var Ut=n(5606);const{toString:Ht}=Object.prototype,{getPrototypeOf:Vt}=Object,{iterator:Wt,toStringTag:qt}=Symbol,$t=(Kt=Object.create(null),t=>{const e=Ht.call(t);return Kt[e]||(Kt[e]=e.slice(8,-1).toLowerCase())});var Kt;const Gt=t=>(t=t.toLowerCase(),e=>$t(e)===t),Yt=t=>e=>typeof e===t,{isArray:Xt}=Array,Jt=Yt("undefined");function Zt(t){return null!==t&&!Jt(t)&&null!==t.constructor&&!Jt(t.constructor)&&ee(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Qt=Gt("ArrayBuffer");const te=Yt("string"),ee=Yt("function"),ne=Yt("number"),ae=t=>null!==t&&"object"==typeof t,re=t=>{if("object"!==$t(t))return!1;const e=Vt(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||qt in t||Wt in t)},ie=Gt("Date"),oe=Gt("File"),se=Gt("Blob"),le=Gt("FileList"),ce=Gt("URLSearchParams"),[ue,de,he,fe]=["ReadableStream","Request","Response","Headers"].map(Gt);function pe(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let a,r;if("object"!=typeof t&&(t=[t]),Xt(t))for(a=0,r=t.length;a<r;a++)e.call(null,t[a],a,t);else{if(Zt(t))return;const r=n?Object.getOwnPropertyNames(t):Object.keys(t),i=r.length;let o;for(a=0;a<i;a++)o=r[a],e.call(null,t[o],o,t)}}function me(t,e){if(Zt(t))return null;e=e.toLowerCase();const n=Object.keys(t);let a,r=n.length;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ve=t=>!Jt(t)&&t!==ge;const be=(_e="undefined"!=typeof Uint8Array&&Vt(Uint8Array),t=>_e&&t instanceof _e);var _e;const ye=Gt("HTMLFormElement"),we=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),xe=Gt("RegExp"),ke=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),a={};pe(n,((n,r)=>{let i;!1!==(i=e(n,r,t))&&(a[r]=i||n)})),Object.defineProperties(t,a)};const Se=Gt("AsyncFunction"),Ce=(Ae="function"==typeof setImmediate,Ee=ee(ge.postMessage),Ae?setImmediate:Ee?(Te=`axios@${Math.random()}`,Pe=[],ge.addEventListener("message",(({source:t,data:e})=>{t===ge&&e===Te&&Pe.length&&Pe.shift()()}),!1),t=>{Pe.push(t),ge.postMessage(Te,"*")}):t=>setTimeout(t));var Ae,Ee,Te,Pe;const Ne="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ge):void 0!==Ut&&Ut.nextTick||Ce,Le={isArray:Xt,isArrayBuffer:Qt,isBuffer:Zt,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||ee(t.append)&&("formdata"===(e=$t(t))||"object"===e&&ee(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Qt(t.buffer),e},isString:te,isNumber:ne,isBoolean:t=>!0===t||!1===t,isObject:ae,isPlainObject:re,isEmptyObject:t=>{if(!ae(t)||Zt(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:ue,isRequest:de,isResponse:he,isHeaders:fe,isUndefined:Jt,isDate:ie,isFile:oe,isBlob:se,isRegExp:xe,isFunction:ee,isStream:t=>ae(t)&&ee(t.pipe),isURLSearchParams:ce,isTypedArray:be,isFileList:le,forEach:pe,merge:function t(){const{caseless:e,skipUndefined:n}=ve(this)&&this||{},a={},r=(r,i)=>{const o=e&&me(a,i)||i;re(a[o])&&re(r)?a[o]=t(a[o],r):re(r)?a[o]=t({},r):Xt(r)?a[o]=r.slice():n&&Jt(r)||(a[o]=r)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&pe(arguments[t],r);return a},extend:(t,e,n,{allOwnKeys:a}={})=>(pe(e,((e,a)=>{n&&ee(e)?t[a]=zt(e,n):t[a]=e}),{allOwnKeys:a}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,a)=>{t.prototype=Object.create(e.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,a)=>{let r,i,o;const s={};if(e=e||{},null==t)return e;do{for(r=Object.getOwnPropertyNames(t),i=r.length;i-- >0;)o=r[i],a&&!a(o,t,e)||s[o]||(e[o]=t[o],s[o]=!0);t=!1!==n&&Vt(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:$t,kindOfTest:Gt,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const a=t.indexOf(e,n);return-1!==a&&a===n},toArray:t=>{if(!t)return null;if(Xt(t))return t;let e=t.length;if(!ne(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Wt]).call(t);let a;for(;(a=n.next())&&!a.done;){const n=a.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const a=[];for(;null!==(n=t.exec(e));)a.push(n);return a},isHTMLForm:ye,hasOwnProperty:we,hasOwnProp:we,reduceDescriptors:ke,freezeMethods:t=>{ke(t,((e,n)=>{if(ee(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=t[n];ee(a)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},a=t=>{t.forEach((t=>{n[t]=!0}))};return Xt(t)?a(t):a(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:me,global:ge,isContextDefined:ve,isSpecCompliantForm:function(t){return!!(t&&ee(t.append)&&"FormData"===t[qt]&&t[Wt])},toJSONObject:t=>{const e=new Array(10),n=(t,a)=>{if(ae(t)){if(e.indexOf(t)>=0)return;if(Zt(t))return t;if(!("toJSON"in t)){e[a]=t;const r=Xt(t)?[]:{};return pe(t,((t,e)=>{const i=n(t,a+1);!Jt(i)&&(r[e]=i)})),e[a]=void 0,r}}return t};return n(t,0)},isAsyncFn:Se,isThenable:t=>t&&(ae(t)||ee(t))&&ee(t.then)&&ee(t.catch),setImmediate:Ce,asap:Ne,isIterable:t=>null!=t&&ee(t[Wt])};function Oe(t,e,n,a,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),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status?r.status:null)}Le.inherits(Oe,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:Le.toJSONObject(this.config),code:this.code,status:this.status}}});const Me=Oe.prototype,Re={};["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=>{Re[t]={value:t}})),Object.defineProperties(Oe,Re),Object.defineProperty(Me,"isAxiosError",{value:!0}),Oe.from=(t,e,n,a,r,i)=>{const o=Object.create(Me);Le.toFlatObject(t,o,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t));const s=t&&t.message?t.message:"Error",l=null==e&&t?t.code:e;return Oe.call(o,s,l,n,a,r),t&&null==o.cause&&Object.defineProperty(o,"cause",{value:t,configurable:!0}),o.name=t&&t.name||"Error",i&&Object.assign(o,i),o};const Ie=Oe;var De=n(8287).hp;function Fe(t){return Le.isPlainObject(t)||Le.isArray(t)}function je(t){return Le.endsWith(t,"[]")?t.slice(0,-2):t}function Be(t,e,n){return t?t.concat(e).map((function(t,e){return t=je(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const ze=Le.toFlatObject(Le,{},null,(function(t){return/^is[A-Z]/.test(t)}));const Ue=function(t,e,n){if(!Le.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const a=(n=Le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Le.isUndefined(e[t])}))).metaTokens,r=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Le.isSpecCompliantForm(e);if(!Le.isFunction(r))throw new TypeError("visitor must be a function");function l(t){if(null===t)return"";if(Le.isDate(t))return t.toISOString();if(Le.isBoolean(t))return t.toString();if(!s&&Le.isBlob(t))throw new Ie("Blob is not supported. Use a Buffer instead.");return Le.isArrayBuffer(t)||Le.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):De.from(t):t}function c(t,n,r){let s=t;if(t&&!r&&"object"==typeof t)if(Le.endsWith(n,"{}"))n=a?n:n.slice(0,-2),t=JSON.stringify(t);else if(Le.isArray(t)&&function(t){return Le.isArray(t)&&!t.some(Fe)}(t)||(Le.isFileList(t)||Le.endsWith(n,"[]"))&&(s=Le.toArray(t)))return n=je(n),s.forEach((function(t,a){!Le.isUndefined(t)&&null!==t&&e.append(!0===o?Be([n],a,i):null===o?n:n+"[]",l(t))})),!1;return!!Fe(t)||(e.append(Be(r,n,i),l(t)),!1)}const u=[],d=Object.assign(ze,{defaultVisitor:c,convertValue:l,isVisitable:Fe});if(!Le.isObject(t))throw new TypeError("data must be an object");return function t(n,a){if(!Le.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+a.join("."));u.push(n),Le.forEach(n,(function(n,i){!0===(!(Le.isUndefined(n)||null===n)&&r.call(e,n,Le.isString(i)?i.trim():i,a,d))&&t(n,a?a.concat(i):[i])})),u.pop()}}(t),e};function He(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Ve(t,e){this._pairs=[],t&&Ue(t,this,e)}const We=Ve.prototype;We.append=function(t,e){this._pairs.push([t,e])},We.toString=function(t){const e=t?function(e){return t.call(this,e,He)}:He;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const qe=Ve;function $e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ke(t,e,n){if(!e)return t;const a=n&&n.encode||$e;Le.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(i=r?r(e,n):Le.isURLSearchParams(e)?e.toString():new qe(e,n).toString(a),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const Ge=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Le.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},Ye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:qe,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Je="undefined"!=typeof window&&"undefined"!=typeof document,Ze="object"==typeof navigator&&navigator||void 0,Qe=Je&&(!Ze||["ReactNative","NativeScript","NS"].indexOf(Ze.product)<0),tn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,en=Je&&window.location.href||"http://localhost",nn={...a,...Xe};const an=function(t){function e(t,n,a,r){let i=t[r++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=r>=t.length;if(i=!i&&Le.isArray(a)?a.length:i,s)return Le.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!o;a[i]&&Le.isObject(a[i])||(a[i]=[]);return e(t,n,a[i],r)&&Le.isArray(a[i])&&(a[i]=function(t){const e={},n=Object.keys(t);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],e[i]=t[i];return e}(a[i])),!o}if(Le.isFormData(t)&&Le.isFunction(t.entries)){const n={};return Le.forEachEntry(t,((t,a)=>{e(function(t){return Le.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),a,n,0)})),n}return null};const rn={transitional:Ye,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",a=n.indexOf("application/json")>-1,r=Le.isObject(t);r&&Le.isHTMLForm(t)&&(t=new FormData(t));if(Le.isFormData(t))return a?JSON.stringify(an(t)):t;if(Le.isArrayBuffer(t)||Le.isBuffer(t)||Le.isStream(t)||Le.isFile(t)||Le.isBlob(t)||Le.isReadableStream(t))return t;if(Le.isArrayBufferView(t))return t.buffer;if(Le.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Ue(t,new nn.classes.URLSearchParams,{visitor:function(t,e,n,a){return nn.isNode&&Le.isBuffer(t)?(this.append(e,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=Le.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Ue(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return r||a?(e.setContentType("application/json",!1),function(t,e,n){if(Le.isString(t))try{return(e||JSON.parse)(t),Le.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||rn.transitional,n=e&&e.forcedJSONParsing,a="json"===this.responseType;if(Le.isResponse(t)||Le.isReadableStream(t))return t;if(t&&Le.isString(t)&&(n&&!this.responseType||a)){const n=!(e&&e.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw Ie.from(t,Ie.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nn.classes.FormData,Blob:nn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Le.forEach(["delete","get","head","post","put","patch"],(t=>{rn.headers[t]={}}));const on=rn,sn=Le.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"]),ln=Symbol("internals");function cn(t){return t&&String(t).trim().toLowerCase()}function un(t){return!1===t||null==t?t:Le.isArray(t)?t.map(un):String(t)}function dn(t,e,n,a,r){return Le.isFunction(a)?a.call(this,e,n):(r&&(e=n),Le.isString(e)?Le.isString(a)?-1!==e.indexOf(a):Le.isRegExp(a)?a.test(e):void 0:void 0)}class hn{constructor(t){t&&this.set(t)}set(t,e,n){const a=this;function r(t,e,n){const r=cn(e);if(!r)throw new Error("header name must be a non-empty string");const i=Le.findKey(a,r);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||e]=un(t))}const i=(t,e)=>Le.forEach(t,((t,n)=>r(t,n,e)));if(Le.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(Le.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,a,r;return t&&t.split("\n").forEach((function(t){r=t.indexOf(":"),n=t.substring(0,r).trim().toLowerCase(),a=t.substring(r+1).trim(),!n||e[n]&&sn[n]||("set-cookie"===n?e[n]?e[n].push(a):e[n]=[a]:e[n]=e[n]?e[n]+", "+a:a)})),e})(t),e);else if(Le.isObject(t)&&Le.isIterable(t)){let n,a,r={};for(const e of t){if(!Le.isArray(e))throw TypeError("Object iterator must return a key-value pair");r[a=e[0]]=(n=r[a])?Le.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(r,e)}else null!=t&&r(e,t,n);return this}get(t,e){if(t=cn(t)){const n=Le.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(t);)e[a[1]]=a[2];return e}(t);if(Le.isFunction(e))return e.call(this,t,n);if(Le.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=cn(t)){const n=Le.findKey(this,t);return!(!n||void 0===this[n]||e&&!dn(0,this[n],n,e))}return!1}delete(t,e){const n=this;let a=!1;function r(t){if(t=cn(t)){const r=Le.findKey(n,t);!r||e&&!dn(0,n[r],r,e)||(delete n[r],a=!0)}}return Le.isArray(t)?t.forEach(r):r(t),a}clear(t){const e=Object.keys(this);let n=e.length,a=!1;for(;n--;){const r=e[n];t&&!dn(0,this[r],r,t,!0)||(delete this[r],a=!0)}return a}normalize(t){const e=this,n={};return Le.forEach(this,((a,r)=>{const i=Le.findKey(n,r);if(i)return e[i]=un(a),void delete e[r];const o=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(r):String(r).trim();o!==r&&delete e[r],e[o]=un(a),n[o]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Le.forEach(this,((n,a)=>{null!=n&&!1!==n&&(e[a]=t&&Le.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[ln]=this[ln]={accessors:{}}).accessors,n=this.prototype;function a(t){const a=cn(t);e[a]||(!function(t,e){const n=Le.toCamelCase(" "+e);["get","set","has"].forEach((a=>{Object.defineProperty(t,a+n,{value:function(t,n,r){return this[a].call(this,e,t,n,r)},configurable:!0})}))}(n,t),e[a]=!0)}return Le.isArray(t)?t.forEach(a):a(t),this}}hn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Le.reduceDescriptors(hn.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),Le.freezeMethods(hn);const fn=hn;function pn(t,e){const n=this||on,a=e||n,r=fn.from(a.headers);let i=a.data;return Le.forEach(t,(function(t){i=t.call(n,i,r.normalize(),e?e.status:void 0)})),r.normalize(),i}function mn(t){return!(!t||!t.__CANCEL__)}function gn(t,e,n){Ie.call(this,null==t?"canceled":t,Ie.ERR_CANCELED,e,n),this.name="CanceledError"}Le.inherits(gn,Ie,{__CANCEL__:!0});const vn=gn;function bn(t,e,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?e(new Ie("Request failed with status code "+n.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}const _n=function(t,e){t=t||10;const n=new Array(t),a=new Array(t);let r,i=0,o=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=a[o];r||(r=l),n[i]=s,a[i]=l;let u=o,d=0;for(;u!==i;)d+=n[u++],u%=t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),l-r<e)return;const h=c&&l-c;return h?Math.round(1e3*d/h):void 0}};const yn=function(t,e){let n,a,r=0,i=1e3/e;const o=(e,i=Date.now())=>{r=i,n=null,a&&(clearTimeout(a),a=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-r;s>=i?o(t,e):(n=t,a||(a=setTimeout((()=>{a=null,o(n)}),i-s)))},()=>n&&o(n)]},wn=(t,e,n=3)=>{let a=0;const r=_n(50,250);return yn((n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,s=i-a,l=r(s);a=i;t({loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0,event:n,lengthComputable:null!=o,[e?"download":"upload"]:!0})}),n)},xn=(t,e)=>{const n=null!=t;return[a=>e[0]({lengthComputable:n,total:t,loaded:a}),e[1]]},kn=t=>(...e)=>Le.asap((()=>t(...e))),Sn=nn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,nn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(nn.origin),nn.navigator&&/(msie|trident)/i.test(nn.navigator.userAgent)):()=>!0,Cn=nn.hasStandardBrowserEnv?{write(t,e,n,a,r,i,o){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];Le.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Le.isString(a)&&s.push(`path=${a}`),Le.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),Le.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function An(t,e,n){let a=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(a||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const En=t=>t instanceof fn?{...t}:t;function Tn(t,e){e=e||{};const n={};function a(t,e,n,a){return Le.isPlainObject(t)&&Le.isPlainObject(e)?Le.merge.call({caseless:a},t,e):Le.isPlainObject(e)?Le.merge({},e):Le.isArray(e)?e.slice():e}function r(t,e,n,r){return Le.isUndefined(e)?Le.isUndefined(t)?void 0:a(void 0,t,0,r):a(t,e,0,r)}function i(t,e){if(!Le.isUndefined(e))return a(void 0,e)}function o(t,e){return Le.isUndefined(e)?Le.isUndefined(t)?void 0:a(void 0,t):a(void 0,e)}function s(n,r,i){return i in e?a(n,r):i in t?a(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(t,e,n)=>r(En(t),En(e),0,!0)};return Le.forEach(Object.keys({...t,...e}),(function(a){const i=l[a]||r,o=i(t[a],e[a],a);Le.isUndefined(o)&&i!==s||(n[a]=o)})),n}const Pn=t=>{const e=Tn({},t);let{data:n,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:s}=e;if(e.headers=o=fn.from(o),e.url=Ke(An(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Le.isFormData(n))if(nn.hasStandardBrowserEnv||nn.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Le.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach((([t,n])=>{e.includes(t.toLowerCase())&&o.set(t,n)}))}if(nn.hasStandardBrowserEnv&&(a&&Le.isFunction(a)&&(a=a(e)),a||!1!==a&&Sn(e.url))){const t=r&&i&&Cn.read(i);t&&o.set(r,t)}return e},Nn="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const a=Pn(t);let r=a.data;const i=fn.from(a.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:h,onDownloadProgress:f}=a;function p(){c&&c(),u&&u(),a.cancelToken&&a.cancelToken.unsubscribe(o),a.signal&&a.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const a=fn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());bn((function(t){e(t),p()}),(function(t){n(t),p()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:a,config:t,request:m}),m=null}m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Ie("Request aborted",Ie.ECONNABORTED,t,m)),m=null)},m.onerror=function(e){const a=e&&e.message?e.message:"Network Error",r=new Ie(a,Ie.ERR_NETWORK,t,m);r.event=e||null,n(r),m=null},m.ontimeout=function(){let e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const r=a.transitional||Ye;a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),n(new Ie(e,r.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,t,m)),m=null},void 0===r&&i.setContentType(null),"setRequestHeader"in m&&Le.forEach(i.toJSON(),(function(t,e){m.setRequestHeader(e,t)})),Le.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),d&&"json"!==d&&(m.responseType=a.responseType),f&&([l,u]=wn(f,!0),m.addEventListener("progress",l)),h&&m.upload&&([s,c]=wn(h),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(a.cancelToken||a.signal)&&(o=e=>{m&&(n(!e||e.type?new vn(null,t,m):e),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(o),a.signal&&(a.signal.aborted?o():a.signal.addEventListener("abort",o)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(a.url);v&&-1===nn.protocols.indexOf(v)?n(new Ie("Unsupported protocol "+v+":",Ie.ERR_BAD_REQUEST,t)):m.send(r||null)}))},Ln=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,a=new AbortController;const r=function(t){if(!n){n=!0,o();const e=t instanceof Error?t:this.reason;a.abort(e instanceof Ie?e:new vn(e instanceof Error?e.message:e))}};let i=e&&setTimeout((()=>{i=null,r(new Ie(`timeout ${e} of ms exceeded`,Ie.ETIMEDOUT))}),e);const o=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(r):t.removeEventListener("abort",r)})),t=null)};t.forEach((t=>t.addEventListener("abort",r)));const{signal:s}=a;return s.unsubscribe=()=>Le.asap(o),s}},On=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let a,r=0;for(;r<n;)a=r+e,yield t.slice(r,a),r=a},Mn=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Rn=(t,e,n,a)=>{const r=async function*(t,e){for await(const n of Mn(t))yield*On(n,e)}(t,e);let i,o=0,s=t=>{i||(i=!0,a&&a(t))};return new ReadableStream({async pull(t){try{const{done:e,value:a}=await r.next();if(e)return s(),void t.close();let i=a.byteLength;if(n){let t=o+=i;n(t)}t.enqueue(new Uint8Array(a))}catch(t){throw s(t),t}},cancel:t=>(s(t),r.return())},{highWaterMark:2})},{isFunction:In}=Le,Dn=(({Request:t,Response:e})=>({Request:t,Response:e}))(Le.global),{ReadableStream:Fn,TextEncoder:jn}=Le.global,Bn=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},zn=t=>{t=Le.merge.call({skipUndefined:!0},Dn,t);const{fetch:e,Request:n,Response:a}=t,r=e?In(e):"function"==typeof fetch,i=In(n),o=In(a);if(!r)return!1;const s=r&&In(Fn),l=r&&("function"==typeof jn?(c=new jn,t=>c.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var c;const u=i&&s&&Bn((()=>{let t=!1;const e=new n(nn.origin,{body:new Fn,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),d=o&&s&&Bn((()=>Le.isReadableStream(new a("").body))),h={stream:d&&(t=>t.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!h[t]&&(h[t]=(e,n)=>{let a=e&&e[t];if(a)return a.call(e);throw new Ie(`Response type '${t}' is not supported`,Ie.ERR_NOT_SUPPORT,n)})}));const f=async(t,e)=>{const a=Le.toFiniteNumber(t.getContentLength());return null==a?(async t=>{if(null==t)return 0;if(Le.isBlob(t))return t.size;if(Le.isSpecCompliantForm(t)){const e=new n(nn.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return Le.isArrayBufferView(t)||Le.isArrayBuffer(t)?t.byteLength:(Le.isURLSearchParams(t)&&(t+=""),Le.isString(t)?(await l(t)).byteLength:void 0)})(e):a};return async t=>{let{url:r,method:o,data:s,signal:l,cancelToken:c,timeout:p,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:b,withCredentials:_="same-origin",fetchOptions:y}=Pn(t),w=e||fetch;v=v?(v+"").toLowerCase():"text";let x=Ln([l,c&&c.toAbortSignal()],p),k=null;const S=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let C;try{if(g&&u&&"get"!==o&&"head"!==o&&0!==(C=await f(b,s))){let t,e=new n(r,{method:"POST",body:s,duplex:"half"});if(Le.isFormData(s)&&(t=e.headers.get("content-type"))&&b.setContentType(t),e.body){const[t,n]=xn(C,wn(kn(g)));s=Rn(e.body,65536,t,n)}}Le.isString(_)||(_=_?"include":"omit");const e=i&&"credentials"in n.prototype,l={...y,signal:x,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:e?_:void 0};k=i&&new n(r,l);let c=await(i?w(k,y):w(r,l));const p=d&&("stream"===v||"response"===v);if(d&&(m||p&&S)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=c[e]}));const e=Le.toFiniteNumber(c.headers.get("content-length")),[n,r]=m&&xn(e,wn(kn(m),!0))||[];c=new a(Rn(c.body,65536,n,(()=>{r&&r(),S&&S()})),t)}v=v||"text";let A=await h[Le.findKey(h,v)||"text"](c,t);return!p&&S&&S(),await new Promise(((e,n)=>{bn(e,n,{data:A,headers:fn.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:k})}))}catch(e){if(S&&S(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new Ie("Network Error",Ie.ERR_NETWORK,t,k),{cause:e.cause||e});throw Ie.from(e,e&&e.code,t,k)}}},Un=new Map,Hn=t=>{let e=t&&t.env||{};const{fetch:n,Request:a,Response:r}=e,i=[a,r,n];let o,s,l=i.length,c=Un;for(;l--;)o=i[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:zn(e)),c=s;return s},Vn=(Hn(),{http:null,xhr:Nn,fetch:{get:Hn}});Le.forEach(Vn,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Wn=t=>`- ${t}`,qn=t=>Le.isFunction(t)||null===t||!1===t;const $n={getAdapter:function(t,e){t=Le.isArray(t)?t:[t];const{length:n}=t;let a,r;const i={};for(let o=0;o<n;o++){let n;if(a=t[o],r=a,!qn(a)&&(r=Vn[(n=String(a)).toLowerCase()],void 0===r))throw new Ie(`Unknown adapter '${n}'`);if(r&&(Le.isFunction(r)||(r=r.get(e))))break;i[n||"#"+o]=r}if(!r){const t=Object.entries(i).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let e=n?t.length>1?"since :\n"+t.map(Wn).join("\n"):" "+Wn(t[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+e,"ERR_NOT_SUPPORT")}return r},adapters:Vn};function Kn(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new vn(null,t)}function Gn(t){Kn(t),t.headers=fn.from(t.headers),t.data=pn.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return $n.getAdapter(t.adapter||on.adapter,t)(t).then((function(e){return Kn(t),e.data=pn.call(t,t.transformResponse,e),e.headers=fn.from(e.headers),e}),(function(e){return mn(e)||(Kn(t),e&&e.response&&(e.response.data=pn.call(t,t.transformResponse,e.response),e.response.headers=fn.from(e.response.headers))),Promise.reject(e)}))}const Yn="1.13.2",Xn={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Xn[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Jn={};Xn.transitional=function(t,e,n){function a(t,e){return"[Axios v"+Yn+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,i)=>{if(!1===t)throw new Ie(a(r," has been removed"+(e?" in "+e:"")),Ie.ERR_DEPRECATED);return e&&!Jn[r]&&(Jn[r]=!0,console.warn(a(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,i)}},Xn.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const Zn={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let r=a.length;for(;r-- >0;){const i=a[r],o=e[i];if(o){const e=t[i],n=void 0===e||o(e,i,t);if(!0!==n)throw new Ie("option "+i+" must be "+n,Ie.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ie("Unknown option "+i,Ie.ERR_BAD_OPTION)}},validators:Xn},Qn=Zn.validators;class ta{constructor(t){this.defaults=t||{},this.interceptors={request:new Ge,response:new Ge}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Tn(this.defaults,e);const{transitional:n,paramsSerializer:a,headers:r}=e;void 0!==n&&Zn.assertOptions(n,{silentJSONParsing:Qn.transitional(Qn.boolean),forcedJSONParsing:Qn.transitional(Qn.boolean),clarifyTimeoutError:Qn.transitional(Qn.boolean)},!1),null!=a&&(Le.isFunction(a)?e.paramsSerializer={serialize:a}:Zn.assertOptions(a,{encode:Qn.function,serialize:Qn.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),Zn.assertOptions(e,{baseUrl:Qn.spelling("baseURL"),withXsrfToken:Qn.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=r&&Le.merge(r.common,r[e.method]);r&&Le.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete r[t]})),e.headers=fn.concat(i,r);const o=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,o.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let u,d=0;if(!s){const t=[Gn.bind(this),void 0];for(t.unshift(...o),t.push(...l),u=t.length,c=Promise.resolve(e);d<u;)c=c.then(t[d++],t[d++]);return c}u=o.length;let h=e;for(;d<u;){const t=o[d++],e=o[d++];try{h=t(h)}catch(t){e.call(this,t);break}}try{c=Gn.call(this,h)}catch(t){return Promise.reject(t)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(t){return Ke(An((t=Tn(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}Le.forEach(["delete","get","head","options"],(function(t){ta.prototype[t]=function(e,n){return this.request(Tn(n||{},{method:t,url:e,data:(n||{}).data}))}})),Le.forEach(["post","put","patch"],(function(t){function e(e){return function(n,a,r){return this.request(Tn(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}ta.prototype[t]=e(),ta.prototype[t+"Form"]=e(!0)}));const ea=ta;class na{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 n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const a=new Promise((t=>{n.subscribe(t),e=t})).then(t);return a.cancel=function(){n.unsubscribe(e)},a},t((function(t,a,r){n.reason||(n.reason=new vn(t,a,r),e(n.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)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new na((function(e){t=e})),cancel:t}}}const aa=na;const ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ra).forEach((([t,e])=>{ra[e]=t}));const ia=ra;const oa=function t(e){const n=new ea(e),a=zt(ea.prototype.request,n);return Le.extend(a,ea.prototype,n,{allOwnKeys:!0}),Le.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return t(Tn(e,n))},a}(on);oa.Axios=ea,oa.CanceledError=vn,oa.CancelToken=aa,oa.isCancel=mn,oa.VERSION=Yn,oa.toFormData=Ue,oa.AxiosError=Ie,oa.Cancel=oa.CanceledError,oa.all=function(t){return Promise.all(t)},oa.spread=function(t){return function(e){return t.apply(null,e)}},oa.isAxiosError=function(t){return Le.isObject(t)&&!0===t.isAxiosError},oa.mergeConfig=Tn,oa.AxiosHeaders=fn,oa.formToJSON=t=>an(Le.isHTMLForm(t)?new FormData(t):t),oa.getAdapter=$n.getAdapter,oa.HttpStatusCode=ia,oa.default=oa;const sa=oa;function la(t){return la="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},la(t)}function ca(){ca=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new N(a||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,o,s){var l=d(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==la(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function A(e,n,a){var r=h;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===h)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=d(e,n,a);if("normal"===c.type){if(r=a.done?m:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(la(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function ua(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}function da(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){ua(i,a,r,o,s,"next",t)}function s(t){ua(i,a,r,o,s,"throw",t)}o(void 0)}))}}const ha={name:"PenyataView",data:function(){return{tarikh:(new Date).toISOString().substring(0,10),persetujuan:"",nokp:"",data:{user:{}},loading:!1}},mounted:function(){var t=this.$route.params.no_anggota;t&&this.getPenyata(t)},methods:{getPenyata:function(t){var e=this;return da(ca().mark((function n(){var a;return ca().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,n.next=4,sa.get("/api/v1/penyata/".concat(t));case 4:a=n.sent,e.data=a.data,n.next=12;break;case 8:n.prev=8,n.t0=n.catch(1),console.error(n.t0),alert("Gagal ambil data penyata");case 12:return n.prev=12,e.loading=!1,n.finish(12);case 15:case"end":return n.stop()}}),n,null,[[1,8,12,15]])})))()},cetakPDF:function(){var t=this.$route.params.no_anggota;t&&window.open("/api/v1/penyata/".concat(t,"/pdf"),"_blank")},SahkanPenyata:function(){var t=this;return da(ca().mark((function e(){var n;return ca().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.$route.params.no_anggota,t.persetujuan){e.next=4;break}return alert("Sila pilih Bersetuju atau Tidak Bersetuju"),e.abrupt("return");case 4:if(t.nokp){e.next=7;break}return alert("Sila isi No Kad Pengenalan"),e.abrupt("return");case 7:if(confirm("Adakah anda pasti untuk mengesahkan penyata ini?")){e.next=9;break}return e.abrupt("return");case 9:return e.prev=9,e.next=12,sa.post("/api/v1/penyata/".concat(n,"/sahkan"),{persetujuan:t.persetujuan,nokp:t.nokp,tarikh:t.tarikh});case 12:alert("Penyata berjaya DISAHKAN"),t.cetakPDF(),t.$router.push({name:"lamanUtama"}),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(9),console.error(e.t0),alert("Gagal sahkan penyata");case 21:case"end":return e.stop()}}),e,null,[[9,17]])})))()},formatNumber:function(t){return Number(t||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}}},fa=ha;var pa=n(3389),ma={insert:"head",singleton:!1};i()(pa.A,ma);pa.A.locals;const ga=(0,m.A)(fa,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"penyata-wrapper container"},[t._m(0),t._v(" "),e("hr",{staticStyle:{border:"none","border-top":"1.5px solid #000",margin:"15px 0"}}),t._v(" "),t.data.user.no_anggota?e("div",{staticClass:"form-section two-column"},[t._m(1),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("No. Anggota:")]),t._v(" "),e("span",[t._v(t._s(t.data.user.no_anggota))])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("Nama:")]),t._v(" "),e("span",[t._v(t._s(t.data.user.name))])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("Pejabat / Syarikat:")]),t._v(" "),e("span",[t._v(t._s(t.data.user.unit))])])]):t._e(),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),e("table",{staticClass:"boxed-table mt-4"},[e("tbody",[e("tr",[e("td",[t._v("Saham")]),t._v(" "),e("td",[t._v("-"+t._s(t.formatNumber(t.data.user.saham)))]),t._v(" "),e("td",[t._v("Pembiayaan Kecemasan")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.tergempar)))])]),t._v(" "),e("tr",[e("td",[t._v("Yuran")]),t._v(" "),e("td",[t._v("-"+t._s(t.formatNumber(t.data.user.yuran)))]),t._v(" "),e("td",[t._v("Pembiayaan Pengguna")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.barangan)))])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T1")]),t._v(" "),e("td",[t._v("-"+t._s(t.formatNumber(t.data.user.pelaburan)))]),t._v(" "),e("td",[t._v("Pembiayaan Peribadi")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.peribadi)))])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T2")]),t._v(" "),e("td",[t._v("0.00")]),t._v(" "),e("td",[t._v("Pembiayaan Berjamin Yuran")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.berjamin_yuran)))])]),t._v(" "),e("tr",[e("td"),t._v(" "),e("td"),t._v(" "),e("td",[t._v("Pembiayaan Takaful / Cukai Jalan")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.roadtax)))])]),t._v(" "),e("tr",[e("td"),t._v(" "),e("td"),t._v(" "),e("td",[t._v("Pembiayaan Pelaburan / Pelbagai")]),t._v(" "),e("td",[t._v(t._s(t.formatNumber(t.data.user.pelbagai)))])])])]),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),e("p",[t._v("Sekian, dimaklumkan.")]),t._v(" "),e("p",{staticClass:"italic-note"},[t._v("Surat ini dikeluarkan oleh komputer, tidak perlu ditandatangani.")]),t._v(" "),e("hr",{staticStyle:{border:"none","border-top":"1.5px solid #000",margin:"15px 0"}}),t._v(" "),t._m(6),t._v(" "),e("div",{staticStyle:{"margin-top":"10px","line-height":"1.8"}},[e("div",{staticStyle:{"margin-bottom":"8px"}},[e("label",{staticStyle:{cursor:"pointer"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.persetujuan,expression:"persetujuan"}],attrs:{type:"radio",name:"persetujuan",value:"Bersetuju",disabled:"DISAHKAN"===t.data.user.status_penyata},domProps:{checked:t._q(t.persetujuan,"Bersetuju")},on:{change:function(e){t.persetujuan="Bersetuju"}}}),t._v(" "),t._m(7)])]),t._v(" "),e("div",[e("label",{staticStyle:{cursor:"pointer"}},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.persetujuan,expression:"persetujuan"}],attrs:{type:"radio",name:"persetujuan",value:"Tidak Bersetuju",disabled:"DISAHKAN"===t.data.user.status_penyata},domProps:{checked:t._q(t.persetujuan,"Tidak Bersetuju")},on:{change:function(e){t.persetujuan="Tidak Bersetuju"}}}),t._v(" "),t._m(8)])]),t._v(" "),t._m(9)]),t._v(" "),e("p",{staticClass:"text-center"},[e("strong",["DISAHKAN"===t.data.user.status_penyata?e("span",{staticClass:"badge-disahkan"},[t._v("\n TELAH DISAHKAN\n ")]):"Tidak Bersetuju"===t.data.user.status_penyata?e("span",{staticClass:"badge-tidak-setuju"},[t._v("\n Tidak Setuju\n ")]):e("span",[t._v("\n "+t._s(t.persetujuan||"Belum membuat pilihan")+"\n ")])])]),t._v(" "),e("table",{staticClass:"table table-sm no-lines text-center align-middle mt-2"},[e("tbody",[e("tr",[e("td",[t._v("Saham")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.saham,expression:"data.user.saham"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.saham},on:{input:function(e){e.target.composing||t.$set(t.data.user,"saham",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Kecemasan")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.tergempar,expression:"data.user.tergempar"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.tergempar},on:{input:function(e){e.target.composing||t.$set(t.data.user,"tergempar",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Yuran")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.yuran,expression:"data.user.yuran"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.yuran},on:{input:function(e){e.target.composing||t.$set(t.data.user,"yuran",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Pengguna")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.barangan,expression:"data.user.barangan"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.barangan},on:{input:function(e){e.target.composing||t.$set(t.data.user,"barangan",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T1")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.pelaburan,expression:"data.user.pelaburan"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.pelaburan},on:{input:function(e){e.target.composing||t.$set(t.data.user,"pelaburan",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Peribadi")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.peribadi,expression:"data.user.peribadi"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.peribadi},on:{input:function(e){e.target.composing||t.$set(t.data.user,"peribadi",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Pelaburan T2")]),t._v(" "),e("td",[t._v("-"),e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.pelaburanT2,expression:"data.user.pelaburanT2"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.pelaburanT2},on:{input:function(e){e.target.composing||t.$set(t.data.user,"pelaburanT2",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Berjamin Yuran")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.berjamin_yuran,expression:"data.user.berjamin_yuran"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.berjamin_yuran},on:{input:function(e){e.target.composing||t.$set(t.data.user,"berjamin_yuran",e.target.value)}}})])]),t._v(" "),e("tr",[e("td",[t._v("Pembiayaan Takaful / Cukai Jalan")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.roadtax,expression:"data.user.roadtax"}],staticClass:"keyin-input",attrs:{type:"number"},domProps:{value:t.data.user.roadtax},on:{input:function(e){e.target.composing||t.$set(t.data.user,"roadtax",e.target.value)}}})]),t._v(" "),e("td",[t._v("Pembiayaan Pelaburan / Pelbagai")]),t._v(" "),e("td",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.data.user.pelbagai,expression:"data.user.pelbagai"}],staticClass:"keyin-input",attrs:{type:"text"},domProps:{value:t.data.user.pelbagai},on:{input:function(e){e.target.composing||t.$set(t.data.user,"pelbagai",e.target.value)}}})])])])]),t._v(" "),e("div",{staticClass:"signature-section"},[e("div",{staticClass:"sign-column"},[e("label",{staticClass:"form-label"},[t._v("No Kad Pengenalan:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.nokp,expression:"nokp"}],staticClass:"keyin-line",attrs:{type:"number"},domProps:{value:t.nokp},on:{input:function(e){e.target.composing||(t.nokp=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"sig-column"},[e("label",{staticClass:"form-label"},[t._v("Tarikh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.tarikh,expression:"tarikh"}],staticClass:"keyin-line",attrs:{type:"date"},domProps:{value:t.tarikh},on:{input:function(e){e.target.composing||(t.tarikh=e.target.value)}}})])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"text-right mt-5 mb-3 no-print"},[e("button",{staticClass:"btn btn-primary btn-effect",staticStyle:{width:"100px"},attrs:{disabled:"DISAHKAN"===t.data.user.status_penyata},on:{click:t.SahkanPenyata}},[t._v("\n "+t._s("DISAHKAN"===t.data.user.status_penyata?"Disahkan":"Sahkan")+"\n ")]),t._v(" "),e("button",{staticClass:"btn btn-danger ms-2",on:{click:t.cetakPDF}},[t._v("Cetak PDF")])]),t._v(" "),e("hr",{staticStyle:{border:"none","border-top":"1.5px solid #000",margin:"15px 0"}}),t._v(" "),t._m(10)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"header-section"},[e("div",{staticClass:"header-left"},[e("div",{staticClass:"logo-wrapper"},[e("img",{staticClass:"kopkb-logo",attrs:{src:"/images/logo-kopkb.jpeg",alt:"KoPKB Logo"}}),t._v(" "),e("div",[e("h4",{staticClass:"fw-bold mb-1"},[t._v("KOPERASI PERMODALAN KELANTAN BERHAD")]),t._v(" "),e("p",{staticStyle:{"font-size":"13px","line-height":"1.3",margin:"0"}},[t._v("\n Lot PT 448, Tingkat 1, Jalan Kuala Krai, Batu 3, Wakaf Che Yeh, 15150 Kota Bharu, Kelantan"),e("br"),t._v("\n Tel: 09-7414339 | Website: www.koppkb.com\n ")])])])]),t._v(" "),e("div",{staticClass:"header-right"},[e("div",{staticClass:"title-box"},[e("h5",[t._v("PENYATA AHLI")])]),t._v(" "),e("h4",{staticClass:"text-muted mt-2"},[t._v("2025")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{staticClass:"form-label fw-semibold"},[t._v("Tarikh :")]),t._v(" "),e("span",[t._v("26-02-2026")])])},function(){var t=this._self._c;return t("h5",{staticClass:"mt-4"},[t("strong",[t("u",[this._v("PENGESAHAN PENYATA BAKI AKAUN AHLI")])])])},function(){var t=this,e=t._self._c;return e("p",[t._v("Adalah dimaklumkan kedudukan baki akaun tuan/puan pada "),e("b",[t._v("31/12/2025")]),t._v(" dengan Koperasi Permodalan\n Kelantan Berhad adalah seperti berikut:")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mt-4"},[t._v("Sukacita dapat tuan/puan untuk mengesahkan baki tersebut dengan memasukkan No K/P anggota dan\n menekan butang SAHKAN\n untuk tujuan audit tahunan koperasi sebelum "),e("b",[t._v("12-03-2026")]),t._v(".")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"mt-4"},[t._v("Dimaklumkan juga bahawa sekiranya kami tidak menerima pengesahan tuan/puan ke atas penyata ini\n dalam tempoh "),e("strong",[t._v("14 hari")]),t._v(" daripada tarikh surat ini, maka ia dianggap tuan/puan bersetuju\n terhadap baki yang dipaparkan.")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center mt-4 mb-3"},[e("div",{staticStyle:{"font-weight":"700","font-size":"18px"}},[t._v("\n PERSETUJUAN AHLI\n ")]),t._v(" "),e("hr",{staticStyle:{width:"200px",margin:"8px auto"}})])},function(){var t=this,e=t._self._c;return e("span",{staticStyle:{"margin-left":"6px"}},[t._v("\n Saya "),e("strong",[t._v("MENGESAHKAN")]),t._v(" bahawa baki yang dipaparkan adalah BENAR dan TEPAT.\n ")])},function(){var t=this,e=t._self._c;return e("span",{staticStyle:{"margin-left":"6px"}},[t._v("\n Saya "),e("strong",[t._v("TIDAK BERSETUJU")]),t._v(" dengan baki yang dipaparkan.\n ")])},function(){var t=this._self._c;return t("div",[t("p",[this._v("Jika tidak bersetuju, sila nyatakan jumlah yang betul di bawah:")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-5"},[e("p",{staticClass:"fw-bold mb-1"},[t._v("Nota Penting:")]),t._v(" "),e("ul",{staticClass:"mb-0"},[e("li",[t._v("Pengesahan ini adalah bagi tujuan Audit Tahunan KoPKB.")]),t._v(" "),e("li",[t._v("Anggota hendaklah membuat pengesahan dalam tempoh 14 hari.")]),t._v(" "),e("li",[t._v("Kegagalan memberi maklum balas dalam tempoh tersebut akan dianggap sebagai persetujuan terhadap baki yang\n dipaparkan.")]),t._v(" "),e("li",[t._v("Semua rekod pengesahan adalah tertakluk kepada semakan juruaudit luar.")])])])}],!1,null,"2c7fe227",null).exports;const va={name:"PhysicalGateDisplay",data:function(){return{displayKey:"",keyInput:"",code:"",secondsRemaining:0,periodSeconds:60,error:"",pollTimer:null,tickTimer:null}},computed:{countdownPercent:function(){return this.periodSeconds?Math.min(100,this.secondsRemaining/this.periodSeconds*100):0}},created:function(){this.util.setTitle("Kod kaunter — Kehadiran fizikal");var t=this.$route.query.k||this.$route.query.key;t&&(this.displayKey=String(t))},mounted:function(){this.displayKey&&this.startPolling()},beforeDestroy:function(){this.stopTimers()},methods:{applyKey:function(){this.keyInput&&(this.displayKey=this.keyInput,this.error="",this.startPolling())},retry:function(){this.error="",this.fetchCode()},fetchCode:function(){var t=this;axios.get(config.API+"physical-attendance-gate/current",{headers:{"X-Physical-Gate-Display-Key":t.displayKey}}).then((function(e){t.code=e.data.code,t.secondsRemaining=e.data.seconds_remaining,t.periodSeconds=e.data.period_seconds||60,t.error=""})).catch((function(e){var n="Tidak dapat memuatkan kod.";e.response&&e.response.data&&e.response.data.message&&(n=e.response.data.message),t.error=n,t.code=""}))},startPolling:function(){var t=this;this.stopTimers(),this.fetchCode(),this.pollTimer=setInterval((function(){t.fetchCode()}),5e3),this.tickTimer=setInterval((function(){t.secondsRemaining>0&&(t.secondsRemaining-=1),t.secondsRemaining<=0&&!t.error&&t.fetchCode()}),1e3)},stopTimers:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.tickTimer&&(clearInterval(this.tickTimer),this.tickTimer=null)}}};var ba=n(6830),_a={insert:"head",singleton:!1};i()(ba.A,_a);ba.A.locals;const ya=(0,m.A)(va,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"physical-gate-page"},[t.displayKey?t.error?e("div",{staticClass:"physical-gate-error"},[e("h1",{staticClass:"physical-gate-title"},[t._v("Ralat")]),t._v(" "),e("p",[t._v(t._s(t.error))]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.retry}},[t._v("Cuba lagi")])]):e("div",{staticClass:"physical-gate-active"},[e("div",{staticClass:"physical-gate-label"},[t._v("Kod kehadiran fizikal ("+t._s(t.periodSeconds)+"s)")]),t._v(" "),e("div",{staticClass:"physical-gate-code"},[t._v(t._s(t.code||"—"))]),t._v(" "),e("div",{staticClass:"physical-gate-countdown"},[e("span",{staticClass:"physical-gate-countdown-bar",style:{width:t.countdownPercent+"%"}})]),t._v(" "),e("p",{staticClass:"physical-gate-sub"},[t._v("Kod akan bertukar secara automatik. Pastikan skrin sentiasa menyala.")])]):e("div",{staticClass:"physical-gate-setup"},[e("h1",{staticClass:"physical-gate-title"},[t._v("Paparan kod kaunter")]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"form-group physical-gate-key-form"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.keyInput,expression:"keyInput"}],staticClass:"form-control input-lg",attrs:{type:"password",placeholder:"Kunci paparan"},domProps:{value:t.keyInput},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.applyKey.apply(null,arguments)},input:function(e){e.target.composing||(t.keyInput=e.target.value)}}}),t._v(" "),e("button",{staticClass:"btn btn-primary btn-lg btn-block",attrs:{type:"button"},on:{click:t.applyKey}},[t._v("Mula paparan")])])])])}),[function(){var t=this,e=t._self._c;return e("p",{staticClass:"physical-gate-hint"},[t._v("\n Masukkan kunci paparan (sama dengan "),e("code",[t._v("PHYSICAL_ATTENDANCE_GATE_DISPLAY_KEY")]),t._v(" dalam tetapan pelayan),\n atau buka URL dengan parameter "),e("code",[t._v("?k=...")])])}],!1,null,"3a80ef97",null).exports;function wa(t){return wa="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},wa(t)}const xa={name:"RouletteEliminationWheel",props:{items:{type:Array,default:function(){return["Ali","Siti","Muthu","Aminah","David"]}},minSpins:{type:Number,default:6},durationMs:{type:Number,default:9e3},enableSpaceToSpin:{type:Boolean,default:!0},showSpaceShortcutHint:{type:Boolean,default:!0},showWinnerModal:{type:Boolean,default:!0},persistKey:{type:String,default:"voting_roulette_elimination"},showClearPersistedLink:{type:Boolean,default:!0},allowMarkAbsent:{type:Boolean,default:!0},showCenterLogo:{type:Boolean,default:!0},centerLogoSrc:{type:String,default:"/images/MyKoPKB-logo.png"},fullWidth:{type:Boolean,default:!1},spinSoundSrc:{type:String,default:"/audio/spin-wheel.mp3"},spinSoundVolume:{type:Number,default:.85},spinSoundLoop:{type:Boolean,default:!1}},data:function(){return{participantPool:[],remaining:[],winnerHistory:[],poolSize:0,rotationDeg:0,spinning:!1,lastWinner:null,pendingRemoveIndex:null,transitionMs:9e3,modalWinnerDisplay:null,absentParticipantIds:[]}},computed:{wheelStyle:function(){return{transform:"rotate("+this.rotationDeg+"deg)",transitionDuration:this.spinning?this.transitionMs+"ms":"0ms",transitionTimingFunction:this.spinning?"cubic-bezier(0.12, 0.8, 0.12, 1)":"linear"}},wheelColumnClass:function(){return this.participantPool.length?this.fullWidth?"col-sm-12 col-md-8":"col-sm-12 col-md-7":"col-xs-12"},sideColumnClass:function(){return this.participantPool.length?this.fullWidth?"col-sm-12 col-md-4":"col-sm-12 col-md-5":""},wheelCanSpin:function(){return this.remaining.length>=2&&!this.spinning},wheelStageTabindex:function(){return this.wheelCanSpin?0:-1}},watch:{items:{immediate:!0,deep:!0,handler:function(t){this.spinning||(this.syncFromItems(t),this.$nextTick(this.drawWheel))}},remaining:function(){this.$nextTick(this.drawWheel)},spinSoundSrc:function(t){t?this._spinSoundAudio&&(this._spinSoundAudio.src=t):this.disposeSpinSoundAudio()},spinSoundVolume:function(t){this._spinSoundAudio&&(this._spinSoundAudio.volume=this.clampSpinSoundVolume(t))},spinSoundLoop:function(t){this._spinSoundAudio&&(this._spinSoundAudio.loop=!!t)}},mounted:function(){window.addEventListener("resize",this.drawWheel),window.addEventListener("keydown",this.onDocumentKeydown,!0),this.$nextTick(this.drawWheel)},beforeDestroy:function(){window.removeEventListener("resize",this.drawWheel),window.removeEventListener("keydown",this.onDocumentKeydown,!0),this.disposeSpinSoundAudio()},methods:{clampSpinSoundVolume:function(t){var e="number"==typeof t?t:parseFloat(t);return e!=e?.85:e<0?0:e>1?1:e},disposeSpinSoundAudio:function(){if(this._spinSoundAudio){try{this._spinSoundAudio.pause(),this._spinSoundAudio.src=""}catch(t){}this._spinSoundAudio=null}},ensureSpinSoundAudio:function(){return this.spinSoundSrc&&"undefined"!=typeof Audio?(this._spinSoundAudio||(this._spinSoundAudio=new Audio,this._spinSoundAudio.preload="auto"),this._spinSoundAudio.src=this.spinSoundSrc,this._spinSoundAudio.volume=this.clampSpinSoundVolume(this.spinSoundVolume),this._spinSoundAudio.loop=!!this.spinSoundLoop,this._spinSoundAudio):null},playSpinSound:function(){var t=this.ensureSpinSoundAudio();if(t){try{t.currentTime=0}catch(t){}var e=t.play();e&&"function"==typeof e.catch&&e.catch((function(){}))}},stopSpinSoundAfterSpin:function(){if(this._spinSoundAudio&&this.spinSoundLoop)try{this._spinSoundAudio.loop=!1,this._spinSoundAudio.pause(),this._spinSoundAudio.currentTime=0}catch(t){}},isWinnerModalOpen:function(){if(void 0===window.$)return!1;try{return window.$("#roulette-winner-modal").hasClass("in")}catch(t){return!1}},onDocumentKeydown:function(t){if(this.enableSpaceToSpin&&(" "===t.key||"Spacebar"===t.key||"Space"===t.code)&&!t.repeat){var e=t.target;if(e){var n=e.tagName&&e.tagName.toLowerCase();if("input"===n||"textarea"===n||"select"===n||!0===e.isContentEditable)return}this.isWinnerModalOpen()||this.spinning||this.remaining.length<2||(t.preventDefault(),this.spin())}},normalizeId:function(t){return null==t?"":String(t)},normalizeItems:function(t){if(!t||!t.length)return[];for(var e=[],n={},a=0;a<t.length;a++){var r,i,o=t[a];null==o||"object"!==wa(o)||Array.isArray(o)?(r="legacy:"+a,i=String(null!=o?o:"")):(r=void 0!==o.id&&null!==o.id?this.normalizeId(o.id):"legacy:"+a,i=String(null!=o.label?o.label:"")),i.trim()||(i=0===r.indexOf("legacy:")?r:i),n[r]||(n[r]=!0,e.push({id:r,label:i}))}return e},applyMergeFromPersisted:function(t,e){if(!e||2!==e.v)return!1;for(var n=[],a={},r={},i=0;i<t.length;i++){var o=this.normalizeId(t[i].id),s=t[i].label;n.push({id:o,label:s}),a[o]=!0,r[o]=s}for(var l=e.winnerHistory||[],c=[],u={},d=0;d<l.length;d++){var h=l[d],f=this.normalizeId(null!=h.id?h.id:h.idx);if(a[f]){if(u[f])return!1;u[f]=!0,c.push({id:f,round:"number"==typeof h.round?h.round:c.length+1,label:null!=r[f]?r[f]:String(null!=h.label?h.label:"")})}}for(var p=e.absentParticipantIds||e.absentParticipantIdxs||[],m=[],g={},v=0;v<p.length;v++){var b=this.normalizeId(p[v]);if(a[b]){if(g[b]||u[b])return!1;g[b]=!0,m.push(b)}}m.sort();for(var _=0;_<c.length;_++)c[_].round=_+1;for(var y=[],w=0;w<n.length;w++){var x=n[w].id;g[x]||(u[x]||y.push({id:x,label:n[w].label}))}return this.participantPool=n.slice(),this.remaining=y,this.winnerHistory=c,this.absentParticipantIds=m,this.poolSize=n.length,this.updateLastWinnerFromHistory(),this.rotationDeg=0,this.pendingRemoveIndex=null,this.modalWinnerDisplay=null,!0},persistState:function(){if(this.persistKey&&"undefined"!=typeof localStorage&&this.normalizeItems(this.items).length)try{localStorage.setItem(this.persistKey,JSON.stringify({v:2,winnerHistory:this.winnerHistory,remaining:this.remaining,absentParticipantIds:this.absentParticipantIds}))}catch(t){}},clearPersistedState:function(){if(this.persistKey&&"undefined"!=typeof localStorage)try{localStorage.removeItem(this.persistKey)}catch(t){}void 0!==window.$&&window.$("#roulette-winner-modal").modal("hide"),this.initFreshFromNormalized(this.normalizeItems(this.items&&this.items.length?this.items:[])),this.$nextTick(this.drawWheel)},initFreshFromNormalized:function(t){if(this.participantPool=[],this.remaining=[],this.winnerHistory=[],this.absentParticipantIds=[],this.lastWinner=null,this.rotationDeg=0,this.pendingRemoveIndex=null,this.modalWinnerDisplay=null,t&&t.length){for(var e=0;e<t.length;e++){var n={id:t[e].id,label:t[e].label};this.participantPool.push(n),this.remaining.push({id:n.id,label:n.label})}this.poolSize=this.remaining.length}else this.poolSize=0},updateLastWinnerFromHistory:function(){this.winnerHistory.length?this.lastWinner=this.winnerHistory[this.winnerHistory.length-1].label:this.lastWinner=null},syncFromItems:function(t){this.spinning=!1,this.pendingRemoveIndex=null,this.modalWinnerDisplay=null;var e=this.normalizeItems(t);if(e.length){var n,a=null;if(this.persistKey&&"undefined"!=typeof localStorage)try{(n=localStorage.getItem(this.persistKey))&&(a=JSON.parse(n))}catch(t){a=null}if(a&&2===a.v&&this.applyMergeFromPersisted(e,a))this.persistState();else{if(this.persistKey&&"undefined"!=typeof localStorage)try{localStorage.removeItem(this.persistKey)}catch(t){}this.initFreshFromNormalized(e),this.persistState()}}else if(this.participantPool=[],this.remaining=[],this.winnerHistory=[],this.absentParticipantIds=[],this.poolSize=0,this.lastWinner=null,this.rotationDeg=0,this.persistKey&&"undefined"!=typeof localStorage)try{localStorage.removeItem(this.persistKey)}catch(t){}},isStillInPool:function(t){for(var e=this.normalizeId(t),n=0;n<this.remaining.length;n++)if(this.remaining[n].id===e)return!0;return!1},winRoundForParticipant:function(t){for(var e=this.normalizeId(t),n=0;n<this.winnerHistory.length;n++)if(this.winnerHistory[n].id===e)return this.winnerHistory[n].round;return null},isAbsentParticipant:function(t){var e=this.normalizeId(t);return this.absentParticipantIds.indexOf(e)>=0},participantRowClass:function(t){return this.isStillInPool(t.id)?"participant-row--active":this.isAbsentParticipant(t.id)?"participant-row--absent":null!==this.winRoundForParticipant(t.id)?"participant-row--won":""},participantBadge:function(t){if(this.isStillInPool(t.id))return"Dalam roda";if(this.isAbsentParticipant(t.id))return"Tidak hadir (dikeluarkan)";var e=this.winRoundForParticipant(t.id);return null!==e?"Pemenang pusingan "+e:"—"},spin:function(){var t=this.remaining.length;if(!(t<2||this.spinning)){var e=Math.floor(Math.random()*t);this.pendingRemoveIndex=e;var n=360/t,a=(360-(e*n+n/2)+360)%360-(this.rotationDeg%360+360)%360;a<0&&(a+=360),this.transitionMs=this.durationMs,this.spinning=!0,this.lastWinner=null,this.playSpinSound();var r=360*this.minSpins;this.rotationDeg=this.rotationDeg+r+a}},onSpinEnd:function(t){if(this.spinning&&"transform"===t.propertyName&&(this.stopSpinSoundAfterSpin(),this.spinning=!1,null!==this.pendingRemoveIndex)){var e=this.remaining[this.pendingRemoveIndex],n=e.label;this.lastWinner=n;var a=this.winnerHistory.length+1;this.winnerHistory.push({id:e.id,label:e.label,round:a}),this.remaining.splice(this.pendingRemoveIndex,1),this.pendingRemoveIndex=null;var r=this.remaining.map((function(t){return t.label})),i=e.id,o=parseInt(i,10);if(this.$emit("winner",{name:n,participantId:i,participantIndex:o==o?o:i,round:a,remaining:r}),this.$emit("eliminate",{name:n,participantId:i,participantIndex:o==o?o:i,round:a,remaining:r}),this.showWinnerModal){this.modalWinnerDisplay={label:n,round:a,historyIndex:this.winnerHistory.length-1};var s=this;this.$nextTick((function(){s.openWinnerModal()}))}this.persistState()}},hideWinnerModal:function(){void 0!==window.$&&window.$("#roulette-winner-modal").modal("hide")},onWinnerAbsentFromModal:function(){if(!this.spinning&&this.modalWinnerDisplay&&void 0!==this.modalWinnerDisplay.historyIndex){var t=this.modalWinnerDisplay.historyIndex;this.hideWinnerModal();var e=this;this.$nextTick((function(){e.markWinnerAbsentAtHistoryIndex(t)}))}},markWinnerAbsentAtHistoryIndex:function(t){if(!this.spinning&&!(t<0||t>=this.winnerHistory.length)){this.hideWinnerModal();var e=this.winnerHistory[t];if(e&&!this.isAbsentParticipant(e.id)){var n=e.round;this.winnerHistory.splice(t,1);for(var a=0;a<this.winnerHistory.length;a++)this.winnerHistory[a].round=a+1;for(var r=this.normalizeId(e.id),i=e.label,o=0;o<this.participantPool.length;o++)if(this.participantPool[o].id===r){i=this.participantPool[o].label;break}this.absentParticipantIds.indexOf(r)<0&&(this.absentParticipantIds.push(r),this.absentParticipantIds.sort()),this.updateLastWinnerFromHistory(),this.rotationDeg=0,this.modalWinnerDisplay=null;var s=this.remaining.map((function(t){return t.label})),l=parseInt(r,10);this.$emit("winner-absent",{name:i,participantId:r,participantIndex:l==l?l:r,roundRemoved:n,remaining:s,eliminated:!0}),this.persistState(),this.$nextTick(this.drawWheel)}}},openWinnerModal:function(){void 0!==window.$&&(this.util&&"function"==typeof this.util.showModal?this.util.showModal("#roulette-winner-modal"):window.$("#roulette-winner-modal").modal("show"))},drawWheel:function(){var t=this.$refs.wheelCanvas;if(t){var e=t.parentElement,n=this.fullWidth?880:600,a=Math.min(e.clientWidth||320,n),r=window.devicePixelRatio||1;t.width=a*r,t.height=a*r,t.style.width=a+"px",t.style.height=a+"px";var i=t.getContext("2d");i.setTransform(r,0,0,r,0,0);var o=a/2,s=a/2,l=a/2-4;i.clearRect(0,0,a,a);var c=this.remaining.map((function(t){return t.label})),u=c.length;if(0===u)return i.beginPath(),i.arc(o,s,l,0,2*Math.PI),i.fillStyle="#e8e8e8",void i.fill();for(var d=2*Math.PI/u,h=["#e74c3c","#3498db","#2ecc71","#f39c12","#9b59b6","#1abc9c","#e67e22","#34495e"],f=0;f<u;f++){var p=-Math.PI/2+f*d;i.beginPath(),i.moveTo(o,s),i.arc(o,s,l,p,p+d),i.closePath(),i.fillStyle=h[f%h.length],i.fill(),i.strokeStyle="#fff",i.lineWidth=2,i.stroke();var m=p+d/2;i.save(),i.translate(o,s),i.rotate(m),i.fillStyle="#fff",i.font="bold "+Math.max(11,Math.floor(a/28))+"px sans-serif",i.textAlign="center",i.textBaseline="middle";var g=String(c[f]);g.length>14&&(g=g.slice(0,12)+"…"),i.fillText(g,.62*l,0),i.restore()}i.beginPath(),i.arc(o,s,16,0,2*Math.PI),i.fillStyle="#fff",i.fill(),i.strokeStyle="#333",i.lineWidth=2,i.stroke()}}}},ka=xa;var Sa=n(5215),Ca={insert:"head",singleton:!1};i()(Sa.A,Ca);Sa.A.locals;var Aa=(0,m.A)(ka,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"roulette-elimination",class:{"roulette-elimination--full-width":t.fullWidth}},[e("div",{staticClass:"row roulette-main-row"},[e("div",{staticClass:"roulette-wheel-col",class:t.wheelColumnClass},[e("div",{staticClass:"wheel-stage",class:{"wheel-stage--can-spin":t.wheelCanSpin},attrs:{role:"button",tabindex:t.wheelStageTabindex,"aria-disabled":!t.wheelCanSpin,"aria-label":t.spinning?"Roda sedang berputar":"Putar roda — klik pada roda"},on:{click:t.spin,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.spin.apply(null,arguments))},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.spin.apply(null,arguments))}]}},[e("div",{staticClass:"pointer",attrs:{"aria-hidden":"true"}}),t._v(" "),e("div",{staticClass:"wheel-wrap",style:t.wheelStyle,on:{transitionend:t.onSpinEnd}},[e("canvas",{ref:"wheelCanvas",staticClass:"wheel-canvas"})]),t._v(" "),t.showCenterLogo&&t.centerLogoSrc?e("div",{staticClass:"wheel-center-logo",attrs:{"aria-hidden":"true"}},[e("img",{staticClass:"wheel-center-logo-img",attrs:{src:t.centerLogoSrc,alt:"",draggable:"false"}})]):t._e()]),t._v(" "),t.wheelCanSpin?e("p",{staticClass:"text-muted roulette-click-hint small"},[t._v("\n\t\t\t\tKlik pada papan roda untuk putar.\n\t\t\t")]):t._e(),t._v(" "),t.enableSpaceToSpin&&t.showSpaceShortcutHint&&t.remaining.length>=2&&!t.spinning?e("p",{staticClass:"text-muted roulette-space-hint small"},[t._v("\n\t\t\t\tPintasan: tekan "),e("kbd",[t._v("Space")]),t._v(" untuk putar.\n\t\t\t")]):t._e(),t._v(" "),t.poolSize<2?e("p",{staticClass:"text-muted hint"},[t._v("\n\t\t\t\tTambah sekurang-kurangnya dua nama untuk bermula.\n\t\t\t")]):t.remaining.length<2?e("p",{staticClass:"text-muted hint"},[t._v("\n\t\t\t\tKurang daripada dua peserta dalam roda — tidak boleh putar lagi.\n\t\t\t")]):t._e(),t._v(" "),t.lastWinner&&!t.spinning?e("p",{staticClass:"last-winner"},[t._v("\n\t\t\t\tTerpilih: "),e("strong",[t._v(t._s(t.lastWinner))])]):t._e()]),t._v(" "),t.participantPool.length?e("div",{staticClass:"roulette-side-col",class:t.sideColumnClass},[e("div",{staticClass:"panel panel-default roulette-panel text-left"},[e("div",{staticClass:"panel-heading"},[t._v("Peserta")]),t._v(" "),e("ul",{staticClass:"list-group participant-list participant-list--scroll"},t._l(t.participantPool,(function(n){return e("li",{key:n.id,staticClass:"list-group-item participant-row",class:t.participantRowClass(n)},[e("span",{staticClass:"participant-name"},[t._v(t._s(n.label))]),t._v(" "),e("span",{staticClass:"participant-badge"},[t._v(t._s(t.participantBadge(n)))])])})),0)]),t._v(" "),e("div",{staticClass:"panel panel-default roulette-panel text-left"},[e("div",{staticClass:"panel-heading"},[t._v("Pemenang (urutan cabutan)")]),t._v(" "),t.winnerHistory.length?e("ol",{staticClass:"winner-ol winner-ol--scroll"},t._l(t.winnerHistory,(function(n,a){return e("li",{key:"wh-"+n.id+"-"+a,staticClass:"winner-li"},[e("span",{staticClass:"winner-li-main"},[e("span",{staticClass:"winner-label"},[t._v(t._s(n.label))]),t._v(" "),e("span",{staticClass:"winner-meta text-muted"},[t._v("Pusingan "+t._s(n.round))])]),t._v(" "),t.allowMarkAbsent?e("button",{staticClass:"btn btn-link btn-xs winner-absent-btn",attrs:{type:"button",disabled:t.spinning},on:{click:function(e){return e.stopPropagation(),t.markWinnerAbsentAtHistoryIndex(a)}}},[t._v("\n\t\t\t\t\t\t\tTidak hadir\n\t\t\t\t\t\t")]):t._e()])})),0):e("div",{staticClass:"panel-body text-muted winner-empty"},[t._v("\n\t\t\t\t\tBelum ada cabutan.\n\t\t\t\t")])])]):t._e()]),t._v(" "),e("div",{staticClass:"modal fade app-modal roulette-winner-modal",attrs:{id:"roulette-winner-modal",tabindex:"-1",role:"dialog","aria-labelledby":"roulette-winner-title","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog modal-lg roulette-winner-modal__dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),t.modalWinnerDisplay?e("div",{staticClass:"modal-body text-center"},[e("p",{staticClass:"roulette-winner-modal-round text-muted"},[t._v("\n\t\t\t\t\t\tPusingan "+t._s(t.modalWinnerDisplay.round)+"\n\t\t\t\t\t")]),t._v(" "),e("p",{staticClass:"roulette-winner-modal-name"},[t._v(t._s(t.modalWinnerDisplay.label))])]):t._e(),t._v(" "),e("div",{staticClass:"modal-footer clearfix"},[t.allowMarkAbsent?e("button",{staticClass:"btn btn-default pull-left",attrs:{type:"button",disabled:t.spinning},on:{click:t.onWinnerAbsentFromModal}},[t._v("\n\t\t\t\t\t\tTidak hadir — keluarkan\n\t\t\t\t\t")]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-primary pull-right",attrs:{type:"button","data-dismiss":"modal"}},[t._v("\n\t\t\t\t\t\tTutup\n\t\t\t\t\t")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Tutup"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),e("h3",{staticClass:"modal-title roulette-winner-modal__title",attrs:{id:"roulette-winner-title"}},[t._v("\n\t\t\t\t\t\tTahniah\n\t\t\t\t\t")])])}],!1,null,"3ea1398c",null);const Ea=Aa.exports;var Ta="roulette_fizikal_imported_ids";const Pa={name:"RouletteEliminationWheelDemo",components:{RouletteEliminationWheel:Ea,Logo:C},data:function(){return{loading:!0,loadError:"",apiVoters:[],importedParticipantIds:[],lastSnapshotSig:"",refreshing:!1,lastSyncedAt:null,pollError:"",hasLoadedOnce:!1,pollTimerId:null,pollStarted:!1,pollIntervalMs:1e4,bgMusicPlaying:!1}},computed:{lastSyncedFormatted:function(){if(!this.lastSyncedAt)return"—";try{return this.lastSyncedAt.toLocaleString()}catch(t){return String(this.lastSyncedAt)}},voterLabelsById:function(){for(var t=this.apiVoters,e=function(t){if(!t||!t.length)return[];for(var e={},n=0;n<t.length;n++){var a=t[n].name,r=(null!=a?String(a):"").trim();e[r]=(e[r]||0)+1}return t.map((function(t){var n=(null!=t.name?String(t.name):"").trim();if(n||(n="#"+t.id),e[n]>1){var a=null!=t.no_anggota?String(t.no_anggota).trim():"";return a?n+" ("+a+")":n+" (#"+t.id+")"}return n}))}(t),n={},a=0;a<t.length;a++){var r=t[a].id,i="number"==typeof r&&r==r?r:parseInt(r,10);i==i&&(n[i]=e[a])}return n},pendingVoters:function(){var t=this.importedParticipantIds;return this.apiVoters.filter((function(e){var n="number"==typeof e.id&&e.id==e.id?e.id:parseInt(e.id,10);return t.indexOf(n)<0}))},cabutanItems:function(){for(var t=this.voterLabelsById,e=[],n=0;n<this.importedParticipantIds.length;n++){var a=this.importedParticipantIds[n];void 0!==t[a]&&e.push({id:a,label:t[a]})}return e},cabutanCount:function(){return this.cabutanItems.length}},created:function(){this.loadImportedIdsFromStorage(),this.fetchFizikalVoters(!1)},beforeDestroy:function(){this.stopPolling(),this.disposeBgMusic()},methods:{disposeBgMusic:function(){if(this.bgMusicPlaying=!1,this._bgMusicAudio){try{this._bgMusicAudio.pause(),this._bgMusicAudio.src=""}catch(t){}this._bgMusicAudio=null}},ensureBgMusicAudio:function(){return"undefined"==typeof Audio?null:(this._bgMusicAudio||(this._bgMusicAudio=new Audio("/audio/lucky-draw-bg.mp3"),this._bgMusicAudio.loop=!0,this._bgMusicAudio.volume=.32,this._bgMusicAudio.preload="auto"),this._bgMusicAudio)},toggleBgMusic:function(){var t=this,e=this.ensureBgMusicAudio();if(e){if(this.bgMusicPlaying)return e.pause(),void(this.bgMusicPlaying=!1);var n=e.play();n&&"function"==typeof n.then?n.then((function(){t.bgMusicPlaying=!0})).catch((function(){t.bgMusicPlaying=!1})):this.bgMusicPlaying=!0}},loadImportedIdsFromStorage:function(){if("undefined"!=typeof localStorage)try{var t=localStorage.getItem(Ta);if(!t)return;var e=JSON.parse(t);if(!Array.isArray(e))return;this.importedParticipantIds=e.filter((function(t){return"number"==typeof t&&t==t}))}catch(t){this.importedParticipantIds=[]}},saveImportedIdsToStorage:function(){if("undefined"!=typeof localStorage)try{localStorage.setItem(Ta,JSON.stringify(this.importedParticipantIds))}catch(t){}},pruneImportedIdsToApi:function(t){for(var e={},n=0;n<t.length;n++){var a=t[n].id,r="number"==typeof a&&a==a?a:parseInt(a,10);r==r&&(e[r]=!0)}var i=this.importedParticipantIds.filter((function(t){return e[t]}));i.length!==this.importedParticipantIds.length&&(this.importedParticipantIds=i,this.saveImportedIdsToStorage())},labelForVoter:function(t){var e="number"==typeof t.id&&t.id==t.id?t.id:parseInt(t.id,10),n=this.voterLabelsById;return e==e&&null!=n[e]?n[e]:"#"+t.id},importVoter:function(t){var e="number"==typeof t&&t==t?t:parseInt(t,10);e==e&&(this.importedParticipantIds.indexOf(e)>=0||(this.importedParticipantIds.push(e),this.saveImportedIdsToStorage()))},importAllPending:function(){var t=this;this.pendingVoters.forEach((function(e){var n="number"==typeof e.id&&e.id==e.id?e.id:parseInt(e.id,10);n==n&&t.importedParticipantIds.indexOf(n)<0&&t.importedParticipantIds.push(n)})),this.saveImportedIdsToStorage()},stopPolling:function(){null!==this.pollTimerId&&(clearInterval(this.pollTimerId),this.pollTimerId=null),this.pollStarted=!1},startPolling:function(){if(!(this.pollIntervalMs<=0||this.pollStarted)){this.pollStarted=!0;var t=this;this.pollTimerId=setInterval((function(){t.fetchFizikalVoters(!0)}),this.pollIntervalMs)}},fetchFizikalVoters:function(t){var e=this;return t?(e.pollError="",e.refreshing=!0):(e.loadError="",e.pollError="",e.hasLoadedOnce?e.refreshing=!0:e.loading=!0),axios.get(config.API+"public/roulette/fizikal-voters").then((function(n){var a=n.data&&n.data.voters?n.data.voters:[],r=function(t){if(!t||!t.length)return"empty";var e=t.map((function(t){return String(t.id)+"\t"+String(null!=t.name?t.name:"")+"\t"+String(null!=t.no_anggota?t.no_anggota:"")}));return e.sort(),e.join("|")}(a);t&&r===e.lastSnapshotSig?e.lastSyncedAt=new Date:(e.lastSnapshotSig=r,e.apiVoters=a,e.pruneImportedIdsToApi(a),e.lastSyncedAt=new Date,e.hasLoadedOnce=!0)})).catch((function(n){var a=n&&n.response&&n.response.data&&n.response.data.message?n.response.data.message:"Gagal memuat data.";t||e.hasLoadedOnce?e.pollError="Tidak dapat mengemas kini: "+(a.length>80?a.slice(0,80)+"…":a):(e.loadError=a,e.apiVoters=[])})).finally((function(){e.loading=!1,e.refreshing=!1,e.startPolling()}))},onWinner:function(t){"undefined"!=typeof console&&console.log&&console.log("[roulette demo] winner:",t)}}},Na=Pa;var La=n(8828),Oa={insert:"head",singleton:!1};i()(La.A,Oa);La.A.locals;const Ma=(0,m.A)(Na,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"roulette-demo-page container-fluid"},[e("header",{staticClass:"roulette-page-header"},[e("div",{staticClass:"roulette-page-header-inner"},[e("Logo",{attrs:{href:"/admin/"}}),t._v(" "),e("h1",{staticClass:"roulette-demo-title"},[t._v("Sesi Cabutan Bertuah — Kehadiran Fizikal")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm roulette-bg-music-btn",attrs:{type:"button","aria-pressed":t.bgMusicPlaying?"true":"false","aria-label":t.bgMusicPlaying?"Pause Background Music":"Play Background Music"},on:{click:t.toggleBgMusic}},[t._v("\n\t\t\t\t"+t._s(t.bgMusicPlaying?"Pause Background Music":"Play Background Music")+"\n\t\t\t")])],1)]),t._v(" "),t.loadError?e("div",{staticClass:"alert alert-danger"},[t._v("\n\t\t"+t._s(t.loadError)+"\n\t")]):t.loading?e("div",{staticClass:"text-muted roulette-demo-loading"},[t._v("\n\t\tMemuat senarai pengundi Fizikal…\n\t")]):t.apiVoters.length?t._e():e("div",{staticClass:"alert alert-info"},[t._v("\n\t\tTiada pengundi Fizikal direkod buat masa ini. Semak kehadiran atau tambah rekod.\n\t")]),t._v(" "),t.loading||t.loadError||!t.apiVoters.length?t._e():e("div",{staticClass:"roulette-sync-bar"},[t.lastSyncedAt?e("span",{staticClass:"roulette-sync-time"},[t._v("\n\t\t\tSenarai menunggu dikemas kini pada "),e("strong",[t._v(t._s(t.lastSyncedFormatted))])]):t._e(),t._v(" "),t.refreshing?e("span",{staticClass:"roulette-sync-refreshing text-muted"},[t._v("Mengemas kini…")]):t._e(),t._v(" "),t.pollError?e("span",{staticClass:"text-warning roulette-sync-poll-error"},[t._v(t._s(t.pollError))]):t._e(),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm roulette-sync-btn",attrs:{type:"button",disabled:t.refreshing},on:{click:function(e){return t.fetchFizikalVoters(!1)}}},[t._v("\n\t\t\tSegerakan sekarang\n\t\t")])]),t._v(" "),t.loading||t.loadError||!t.apiVoters.length?t._e():e("div",{staticClass:"row roulette-demo-layout"},[e("aside",{staticClass:"col-md-3 col-sm-12 roulette-pending-sidebar text-left"},[e("div",{staticClass:"panel panel-default roulette-pending-panel"},[e("div",{staticClass:"panel-heading clearfix"},[e("span",[t._v("Menunggu sertai cabutan")]),t._v(" "),e("span",{staticClass:"badge pull-right"},[t._v(t._s(t.pendingVoters.length))])]),t._v(" "),e("ul",{staticClass:"list-group roulette-pending-list"},[t.pendingVoters.length?t._l(t.pendingVoters,(function(n){return e("li",{key:"p-"+n.id,staticClass:"list-group-item roulette-pending-row"},[e("span",{staticClass:"roulette-pending-name"},[t._v(t._s(t.labelForVoter(n)))]),t._v(" "),e("button",{staticClass:"btn btn-primary btn-xs roulette-pending-import",attrs:{type:"button"},on:{click:function(e){return t.importVoter(n.id)}}},[t._v("\n\t\t\t\t\t\t\t\tImport\n\t\t\t\t\t\t\t")])])})):e("li",{staticClass:"list-group-item text-muted roulette-pending-empty"},[t._v("\n\t\t\t\t\t\tTiada dalam senarai menunggu — semua peserta telah diimport atau senarai kosong.\n\t\t\t\t\t")])],2),t._v(" "),t.pendingVoters.length>1?e("div",{staticClass:"panel-footer text-right"},[e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:t.importAllPending}},[t._v("\n\t\t\t\t\t\tImport semua\n\t\t\t\t\t")])]):t._e()])]),t._v(" "),e("div",{staticClass:"col-md-9 col-sm-12 roulette-main-column"},[t.cabutanCount<2?e("div",{staticClass:"alert alert-info roulette-cabutan-hint"},[t._v("\n\t\t\t\tImport sekurang-kurangnya "),e("strong",[t._v("dua")]),t._v(" peserta daripada senarai menunggu untuk memulakan\n\t\t\t\tcabutan. Senarai "),e("strong",[t._v("Peserta")]),t._v(" pada roda hanya berubah apabila anda menambah peserta di\n\t\t\t\tsini; auto sync mengemas kini senarai menunggu sahaja.\n\t\t\t")]):t._e(),t._v(" "),t.cabutanCount>=2?e("roulette-elimination-wheel",{attrs:{items:t.cabutanItems,"full-width":!0,"persist-key":"roulette_fizikal_demo"},on:{winner:t.onWinner}}):t._e()],1)])])}),[],!1,null,"7ae4e3b4",null).exports;document.addEventListener("DOMContentLoaded",(function(){var t=document.getElementById("logo-admin");t.src=window.location.origin+"/images/login-admin.jpeg?"+(new Date).getTime(),console.log(t.src)}));const Ra={data:function(){return{loading:{value:"Teruskan ",isLoading:!1}}},created:function(){if(this.util.isLogin())return"3"===localStorage.getItem("admin_role")?this.$router.push({name:"Kehadiran Calon"}):this.$router.push({name:"Admin Home"});this.util.setTitle("Log Masuk Admin ")},methods:{login:function(){var t=this;if(!this.loading.isLoading){var e=this;this.startLoading(),axios.post(config.API+"admin/login",$("#login_form").serialize()).then((function(n){e.stopLoading(),t.util.showResult(n,"success")&&(localStorage["Access Token"]="Bearer ".concat(n.data.token),localStorage.setItem("admin_session","1"),n.data.user&&void 0!==n.data.user.role&&null!==n.data.user.role&&localStorage.setItem("admin_role",String(n.data.user.role)),t.util.setAuthorization(),3===Number(n.data.user&&n.data.user.role)?e.$router.push({name:"Kehadiran Calon"}):e.$router.push({name:"Admin Home"}))})).catch((function(n){e.stopLoading(),t.util.showResult(n,"error")}))}},startLoading:function(){this.util.notify("Logging in","loading"),this.loading={value:"Loading...",isLoading:!0}},stopLoading:function(){$.notifyClose(),this.loading={value:"Login",isLoading:!1}}}};var Ia=n(3407),Da={insert:"head",singleton:!1};i()(Ia.A,Da);Ia.A.locals;const Fa=(0,m.A)(Ra,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-5 col-md-offset-3"},[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"text-center"},[e("img",{attrs:{id:"logo-admin",alt:"Logo-admin"}}),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"panel-body"},[e("form",{attrs:{id:"login_form"},on:{submit:function(e){return e.preventDefault(),t.login.apply(null,arguments)}}},[t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info form-control",class:{disabled:t.loading.isLoading},attrs:{type:"submit"},domProps:{value:t.loading.value}})])])])])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"panel-heading"},[t("h4",[t("b",[this._v("ADMIN LOG MASUK")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"email"}},[t._v("E-mail")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"email",name:"email",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Kata laluan ")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",id:"password",required:""}})])},function(){var t=this._self._c;return t("label",[t("input",{attrs:{type:"checkbox",id:"visibility",onclick:" $(this)[0].checked ? \n\t\t\t\t\t\t\t\t$('#password').attr('type','text'):\n\t\t\t\t\t\t\t\t$('#password').attr('type','password')"}}),this._v(" Show Password\n\t\t\t\t\t")])}],!1,null,null,null).exports;const ja={components:{FloatingNavbar:P},created:function(){var t=this;this.util.setTitle("Voting System - Administrator");var e=this;this.util.isLogin()?(this.util.setAuthorization(),axios.get(config.API+"admin/information").then((function(t){console.log(t),localStorage.setItem("admin_session","1"),e.data.user=t.data.user,e.data.election=t.data.election,e.data.partylists=t.data.partylist,e.data.positions=t.data.position,t.data.user&&void 0!==t.data.user.role&&null!==t.data.user.role&&localStorage.setItem("admin_role",String(t.data.user.role)),3===Number(t.data.user.role)&&"Kehadiran Calon"!==e.$route.name&&e.$router.replace({name:"Kehadiran Calon"}),e.loading=!1})).catch((function(n){$.notifyClose(),401==t.util.showResult(n)&&e.logout()}))):this.$router.push({name:"Admin Login"})},computed:{adminRole:function(){try{return Number(this.data&&this.data.user?this.data.user.role:null)}catch(t){return NaN}}},methods:{isImpersonating:function(){try{return"1"===localStorage.getItem("is_impersonating")}catch(t){return!1}},leaveImpersonation:function(){var t=this;t.util.notify("Leaving impersonation","loading"),axios.post(config.API+"admin/impersonate/leave").then((function(e){$.notifyClose(),e&&e.data&&"success"===e.data.status?(e.data.token&&(localStorage["Access Token"]="Bearer "+e.data.token,t.util&&t.util.setAuthorization&&t.util.setAuthorization()),localStorage.removeItem("is_impersonating"),e.data.user&&(t.data.user=e.data.user,void 0!==e.data.user.role&&null!==e.data.user.role&&localStorage.setItem("admin_role",String(e.data.user.role))),t.util.notify("Berjaya kembali","success"),t.$router&&t.$router.go(0)):t.util.showResult(e,"error")})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},logout:function(){localStorage.removeItem("admin_role"),localStorage.removeItem("is_impersonating"),localStorage.clear(),this.$router.push({name:"Admin Login"})}}};var Ba=n(8091),za={insert:"head",singleton:!1};i()(Ba.A,za);Ba.A.locals;const Ua=(0,m.A)(ja,(function(){var t=this,e=t._self._c;return e("div",[t.loading?t._e():e("div",[e("FloatingNavbar",{attrs:{"logo-href":"/admin","main-nav-class":"admin-nav-main"},scopedSlots:t._u([{key:"left",fn:function(){return[3!==t.adminRole?e("router-link",{attrs:{to:{name:"Admin Home"},tag:"li",exact:""}},[e("a",{attrs:{href:"#"}},[e("b",[t._v("Undian")])])]):t._e(),t._v(" "),1===t.adminRole?e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("b",[t._v("Pengurusan")]),t._v(" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[e("router-link",{attrs:{to:{name:"Kemaskini Sesi"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Sesi")])]),t._v(" "),e("router-link",{attrs:{to:{name:"Maklumat Calon"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Calon")])]),t._v(" "),e("router-link",{attrs:{to:{name:"Manage Voter"},tag:"li",exact:""}},[e("a",{attrs:{href:"#"}},[t._v("Anggota Koperasi")])])],1)]):t._e(),t._v(" "),1===t.adminRole||3===t.adminRole?e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("b",[t._v("Operasi")]),t._v(" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[e("router-link",{attrs:{to:{name:"Kehadiran Calon"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Kehadiran")])])],1)]):t._e(),t._v(" "),1===t.adminRole?e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("b",[t._v("Kewangan")]),t._v(" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[e("router-link",{attrs:{to:{name:"Ringkasan Elaun"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Ringkasan Elaun")])]),t._v(" "),e("router-link",{attrs:{to:{name:"Pembiayaan"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Pembiayaan Anggota")])]),t._v(" "),e("router-link",{attrs:{to:{name:"Penyata Anggota"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Penyata Anggota")])])],1)]):t._e(),t._v(" "),1===t.adminRole?e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("b",[t._v("Sistem")]),t._v(" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[e("router-link",{attrs:{to:{name:"Activity Log"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Log Aktiviti")])]),t._v(" "),e("router-link",{attrs:{to:{name:"Tetapan Portal"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Tetapan Portal")])])],1)]):t._e()]},proxy:!0},{key:"right",fn:function(){return[e("li",{staticClass:"dropdown"},[e("a",{staticClass:"dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[e("span",{staticClass:"fa fa-user"}),t._v(" "+t._s(t.data.user.name)+" "),e("span",{staticClass:"caret"})]),t._v(" "),e("ul",{staticClass:"dropdown-menu"},[3!==Number(t.data.user.role)?e("router-link",{attrs:{to:{name:"Update Account"},tag:"li",exact:""}},[e("a",{attrs:{href:"#"}},[t._v("Kemaskini Akaun")])]):t._e(),t._v(" "),t.isImpersonating()?e("li",{on:{click:function(e){return t.leaveImpersonation()}}},[e("a",[t._v("Kembali Akaun Asal")])]):t._e(),t._v(" "),1==t.data.user.id?e("router-link",{attrs:{to:{name:"Manage Account"},tag:"li"}},[e("a",{attrs:{href:"#"}},[t._v("Pengurusan Akaun")])]):t._e(),t._v(" "),e("li",{class:{disabled:t.isImpersonating()},style:t.isImpersonating()?"opacity:0.5; cursor:not-allowed; pointer-events:none;":"",on:{click:function(e){!t.isImpersonating()&&t.logout()}}},[e("a",[t._v("Log Keluar")])])],1)])]},proxy:!0}],null,!1,659804370)}),t._v(" "),e("div",{staticClass:"admin-main"},[e("router-view")],1)],1),t._v(" "),t.loading?e("div",{staticClass:"container"},[t._m(0)]):t._e()])}),[function(){var t=this._self._c;return t("div",{staticClass:"jumbotron"},[t("h1",[this._v("Loading "),t("i",{staticClass:"fa fa-refresh fa-spin"})])])}],!1,null,"8f905eae",null).exports;function Ha(t){return t+.5|0}const Va=(t,e,n)=>Math.max(Math.min(t,n),e);function Wa(t){return Va(Ha(2.55*t),0,255)}function qa(t){return Va(Ha(255*t),0,255)}function $a(t){return Va(Ha(t/2.55)/100,0,1)}function Ka(t){return Va(Ha(100*t),0,100)}const Ga={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ya=[..."0123456789ABCDEF"],Xa=t=>Ya[15&t],Ja=t=>Ya[(240&t)>>4]+Ya[15&t],Za=t=>(240&t)>>4==(15&t);function Qa(t){var e=(t=>Za(t.r)&&Za(t.g)&&Za(t.b)&&Za(t.a))(t)?Xa:Ja;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const tr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function er(t,e,n){const a=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-a*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function nr(t,e,n){const a=(a,r=(a+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[a(5),a(3),a(1)]}function ar(t,e,n){const a=er(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)a[r]*=1-e-n,a[r]+=e;return a}function rr(t){const e=t.r/255,n=t.g/255,a=t.b/255,r=Math.max(e,n,a),i=Math.min(e,n,a),o=(r+i)/2;let s,l,c;return r!==i&&(c=r-i,l=o>.5?c/(2-r-i):c/(r+i),s=function(t,e,n,a,r){return t===r?(e-n)/a+(e<n?6:0):e===r?(n-t)/a+2:(t-e)/a+4}(e,n,a,c,r),s=60*s+.5),[0|s,l||0,o]}function ir(t,e,n,a){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,a)).map(qa)}function or(t,e,n){return ir(er,t,e,n)}function sr(t){return(t%360+360)%360}function lr(t){const e=tr.exec(t);let n,a=255;if(!e)return;e[5]!==n&&(a=e[6]?Wa(+e[5]):qa(+e[5]));const r=sr(+e[2]),i=+e[3]/100,o=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return ir(ar,t,e,n)}(r,i,o):"hsv"===e[1]?function(t,e,n){return ir(nr,t,e,n)}(r,i,o):or(r,i,o),{r:n[0],g:n[1],b:n[2],a}}const cr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ur={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let dr;function hr(t){dr||(dr=function(){const t={},e=Object.keys(ur),n=Object.keys(cr);let a,r,i,o,s;for(a=0;a<e.length;a++){for(o=s=e[a],r=0;r<n.length;r++)i=n[r],s=s.replace(i,cr[i]);i=parseInt(ur[o],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),dr.transparent=[0,0,0,0]);const e=dr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const fr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const pr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,mr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function gr(t,e,n){if(t){let a=rr(t);a[e]=Math.max(0,Math.min(a[e]+a[e]*n,0===e?360:1)),a=or(a),t.r=a[0],t.g=a[1],t.b=a[2]}}function vr(t,e){return t?Object.assign(e||{},t):t}function br(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=qa(t[3]))):(e=vr(t,{r:0,g:0,b:0,a:1})).a=qa(e.a),e}function _r(t){return"r"===t.charAt(0)?function(t){const e=fr.exec(t);let n,a,r,i=255;if(e){if(e[7]!==n){const t=+e[7];i=e[8]?Wa(t):Va(255*t,0,255)}return n=+e[1],a=+e[3],r=+e[5],n=255&(e[2]?Wa(n):Va(n,0,255)),a=255&(e[4]?Wa(a):Va(a,0,255)),r=255&(e[6]?Wa(r):Va(r,0,255)),{r:n,g:a,b:r,a:i}}}(t):lr(t)}class yr{constructor(t){if(t instanceof yr)return t;const e=typeof t;let n;var a,r,i;"object"===e?n=br(t):"string"===e&&(i=(a=t).length,"#"===a[0]&&(4===i||5===i?r={r:255&17*Ga[a[1]],g:255&17*Ga[a[2]],b:255&17*Ga[a[3]],a:5===i?17*Ga[a[4]]:255}:7!==i&&9!==i||(r={r:Ga[a[1]]<<4|Ga[a[2]],g:Ga[a[3]]<<4|Ga[a[4]],b:Ga[a[5]]<<4|Ga[a[6]],a:9===i?Ga[a[7]]<<4|Ga[a[8]]:255})),n=r||hr(t)||_r(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=vr(this._rgb);return t&&(t.a=$a(t.a)),t}set rgb(t){this._rgb=br(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${$a(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Qa(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=rr(t),n=e[0],a=Ka(e[1]),r=Ka(e[2]);return t.a<255?`hsla(${n}, ${a}%, ${r}%, ${$a(t.a)})`:`hsl(${n}, ${a}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,a=t.rgb;let r;const i=e===r?.5:e,o=2*i-1,s=n.a-a.a,l=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;r=1-l,n.r=255&l*n.r+r*a.r+.5,n.g=255&l*n.g+r*a.g+.5,n.b=255&l*n.b+r*a.b+.5,n.a=i*n.a+(1-i)*a.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const a=mr($a(t.r)),r=mr($a(t.g)),i=mr($a(t.b));return{r:qa(pr(a+n*(mr($a(e.r))-a))),g:qa(pr(r+n*(mr($a(e.g))-r))),b:qa(pr(i+n*(mr($a(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new yr(this.rgb)}alpha(t){return this._rgb.a=qa(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Ha(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return gr(this._rgb,2,t),this}darken(t){return gr(this._rgb,2,-t),this}saturate(t){return gr(this._rgb,1,t),this}desaturate(t){return gr(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=rr(t);n[0]=sr(n[0]+e),n=or(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function wr(){}const xr=(()=>{let t=0;return()=>t++})();function kr(t){return null==t}function Sr(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Cr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Ar(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Er(t,e){return Ar(t)?t:e}function Tr(t,e){return void 0===t?e:t}const Pr=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Nr(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Lr(t,e,n,a){let r,i,o;if(Sr(t))if(i=t.length,a)for(r=i-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<i;r++)e.call(n,t[r],r);else if(Cr(t))for(o=Object.keys(t),i=o.length,r=0;r<i;r++)e.call(n,t[o[r]],o[r])}function Or(t,e){let n,a,r,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,a=t.length;n<a;++n)if(r=t[n],i=e[n],r.datasetIndex!==i.datasetIndex||r.index!==i.index)return!1;return!0}function Mr(t){if(Sr(t))return t.map(Mr);if(Cr(t)){const e=Object.create(null),n=Object.keys(t),a=n.length;let r=0;for(;r<a;++r)e[n[r]]=Mr(t[n[r]]);return e}return t}function Rr(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Ir(t,e,n,a){if(!Rr(t))return;const r=e[t],i=n[t];Cr(r)&&Cr(i)?Dr(r,i,a):e[t]=Mr(i)}function Dr(t,e,n){const a=Sr(e)?e:[e],r=a.length;if(!Cr(t))return t;const i=(n=n||{}).merger||Ir;let o;for(let e=0;e<r;++e){if(o=a[e],!Cr(o))continue;const r=Object.keys(o);for(let e=0,a=r.length;e<a;++e)i(r[e],t,o,n)}return t}function Fr(t,e){return Dr(t,e,{merger:jr})}function jr(t,e,n){if(!Rr(t))return;const a=e[t],r=n[t];Cr(a)&&Cr(r)?Fr(a,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Mr(r))}const Br={"":t=>t,x:t=>t.x,y:t=>t.y};function zr(t,e){const n=Br[e]||(Br[e]=function(t){const e=function(t){const e=t.split("."),n=[];let a="";for(const t of e)a+=t,a.endsWith("\\")?a=a.slice(0,-1)+".":(n.push(a),a="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function Ur(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Hr=t=>void 0!==t,Vr=t=>"function"==typeof t,Wr=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const qr=Math.PI,$r=2*qr,Kr=$r+qr,Gr=Number.POSITIVE_INFINITY,Yr=qr/180,Xr=qr/2,Jr=qr/4,Zr=2*qr/3,Qr=Math.log10,ti=Math.sign;function ei(t,e,n){return Math.abs(t-e)<n}function ni(t){const e=Math.round(t);t=ei(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Qr(t))),a=t/n;return(a<=1?1:a<=2?2:a<=5?5:10)*n}function ai(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function ri(t,e,n){let a,r,i;for(a=0,r=t.length;a<r;a++)i=t[a][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function ii(t){return t*(qr/180)}function oi(t){return t*(180/qr)}function si(t){if(!Ar(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function li(t,e){const n=e.x-t.x,a=e.y-t.y,r=Math.sqrt(n*n+a*a);let i=Math.atan2(a,n);return i<-.5*qr&&(i+=$r),{angle:i,distance:r}}function ci(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ui(t,e){return(t-e+Kr)%$r-qr}function di(t){return(t%$r+$r)%$r}function hi(t,e,n,a){const r=di(t),i=di(e),o=di(n),s=di(i-r),l=di(o-r),c=di(r-i),u=di(r-o);return r===i||r===o||a&&i===o||s>l&&c<u}function fi(t,e,n){return Math.max(e,Math.min(n,t))}function pi(t,e,n,a=1e-6){return t>=Math.min(e,n)-a&&t<=Math.max(e,n)+a}function mi(t,e,n){n=n||(n=>t[n]<e);let a,r=t.length-1,i=0;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const gi=(t,e,n,a)=>mi(t,n,a?a=>{const r=t[a][e];return r<n||r===n&&t[a+1][e]===n}:a=>t[a][e]<n),vi=(t,e,n)=>mi(t,n,(a=>t[a][e]>=n));const bi=["push","pop","shift","splice","unshift"];function _i(t,e){const n=t._chartjs;if(!n)return;const a=n.listeners,r=a.indexOf(e);-1!==r&&a.splice(r,1),a.length>0||(bi.forEach((e=>{delete t[e]})),delete t._chartjs)}function yi(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const wi="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function xi(t,e){let n=[],a=!1;return function(...r){n=r,a||(a=!0,wi.call(window,(()=>{a=!1,t.apply(e,n)})))}}const ki=t=>"start"===t?"left":"end"===t?"right":"center",Si=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function Ci(t,e,n){const a=e.length;let r=0,i=a;if(t._sorted){const{iScale:o,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=o.axis,{min:d,max:h,minDefined:f,maxDefined:p}=o.getUserBounds();if(f){if(r=Math.min(gi(l,u,d).lo,n?a:gi(e,u,o.getPixelForValue(d)).lo),c){const t=l.slice(0,r+1).reverse().findIndex((t=>!kr(t[s.axis])));r-=Math.max(0,t)}r=fi(r,0,a-1)}if(p){let t=Math.max(gi(l,o.axis,h,!0).hi+1,n?0:gi(e,u,o.getPixelForValue(h),!0).hi+1);if(c){const e=l.slice(t-1).findIndex((t=>!kr(t[s.axis])));t+=Math.max(0,e)}i=fi(t,r,a)-r}else i=a-r}return{start:r,count:i}}function Ai(t){const{xScale:e,yScale:n,_scaleRanges:a}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!a)return t._scaleRanges=r,!0;const i=a.xmin!==e.min||a.xmax!==e.max||a.ymin!==n.min||a.ymax!==n.max;return Object.assign(a,r),i}const Ei=t=>0===t||1===t,Ti=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*$r/n),Pi=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*$r/n)+1,Ni={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Xr),easeOutSine:t=>Math.sin(t*Xr),easeInOutSine:t=>-.5*(Math.cos(qr*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Ei(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ei(t)?t:Ti(t,.075,.3),easeOutElastic:t=>Ei(t)?t:Pi(t,.075,.3),easeInOutElastic(t){const e=.1125;return Ei(t)?t:t<.5?.5*Ti(2*t,e,.45):.5+.5*Pi(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Ni.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*Ni.easeInBounce(2*t):.5*Ni.easeOutBounce(2*t-1)+.5};function Li(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Oi(t){return Li(t)?t:new yr(t)}function Mi(t){return Li(t)?t:new yr(t).saturate(.5).darken(.1).hexString()}const Ri=["x","y","borderWidth","radius","tension"],Ii=["color","borderColor","backgroundColor"];const Di=new Map;function Fi(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let a=Di.get(n);return a||(a=new Intl.NumberFormat(t,e),Di.set(n,a)),a}(e,n).format(t)}const ji={values:t=>Sr(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const a=this.chart.options.locale;let r,i=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),i=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const o=Qr(Math.abs(i)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Fi(t,a,l)},logarithmic(t,e,n){if(0===t)return"0";const a=n[e].significand||t/Math.pow(10,Math.floor(Qr(t)));return[1,2,3,5,10,15].includes(a)||e>.8*n.length?ji.numeric.call(this,t,e,n):""}};var Bi={formatters:ji};const zi=Object.create(null),Ui=Object.create(null);function Hi(t,e){if(!e)return t;const n=e.split(".");for(let e=0,a=n.length;e<a;++e){const a=n[e];t=t[a]||(t[a]=Object.create(null))}return t}function Vi(t,e,n){return"string"==typeof e?Dr(Hi(t,e),n):Dr(Hi(t,""),e)}class Wi{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Mi(e.backgroundColor),this.hoverBorderColor=(t,e)=>Mi(e.borderColor),this.hoverColor=(t,e)=>Mi(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Vi(this,t,e)}get(t){return Hi(this,t)}describe(t,e){return Vi(Ui,t,e)}override(t,e){return Vi(zi,t,e)}route(t,e,n,a){const r=Hi(this,t),i=Hi(this,n),o="_"+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=i[a];return Cr(t)?Object.assign({},e,t):Tr(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach((t=>t(this)))}}var qi=new Wi({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Ii},numbers:{type:"number",properties:Ri}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Bi.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function $i(t,e,n,a,r){let i=e[r];return i||(i=e[r]=t.measureText(r).width,n.push(r)),i>a&&(a=i),a}function Ki(t,e,n,a){let r=(a=a||{}).data=a.data||{},i=a.garbageCollect=a.garbageCollect||[];a.font!==e&&(r=a.data={},i=a.garbageCollect=[],a.font=e),t.save(),t.font=e;let o=0;const s=n.length;let l,c,u,d,h;for(l=0;l<s;l++)if(d=n[l],null==d||Sr(d)){if(Sr(d))for(c=0,u=d.length;c<u;c++)h=d[c],null==h||Sr(h)||(o=$i(t,r,i,o,h))}else o=$i(t,r,i,o,d);t.restore();const f=i.length/2;if(f>n.length){for(l=0;l<f;l++)delete r[i[l]];i.splice(0,f)}return o}function Gi(t,e,n){const a=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*a)/a+r}function Yi(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Xi(t,e,n,a){Ji(t,e,n,a,null)}function Ji(t,e,n,a,r){let i,o,s,l,c,u,d,h;const f=e.pointStyle,p=e.rotation,m=e.radius;let g=(p||0)*Yr;if(f&&"object"==typeof f&&(i=f.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return t.save(),t.translate(n,a),t.rotate(g),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(m)||m<=0)){switch(t.beginPath(),f){default:r?t.ellipse(n,a,r/2,m,0,0,$r):t.arc(n,a,m,0,$r),t.closePath();break;case"triangle":u=r?r/2:m,t.moveTo(n+Math.sin(g)*u,a-Math.cos(g)*m),g+=Zr,t.lineTo(n+Math.sin(g)*u,a-Math.cos(g)*m),g+=Zr,t.lineTo(n+Math.sin(g)*u,a-Math.cos(g)*m),t.closePath();break;case"rectRounded":c=.516*m,l=m-c,o=Math.cos(g+Jr)*l,d=Math.cos(g+Jr)*(r?r/2-c:l),s=Math.sin(g+Jr)*l,h=Math.sin(g+Jr)*(r?r/2-c:l),t.arc(n-d,a-s,c,g-qr,g-Xr),t.arc(n+h,a-o,c,g-Xr,g),t.arc(n+d,a+s,c,g,g+Xr),t.arc(n-h,a+o,c,g+Xr,g+qr),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,u=r?r/2:l,t.rect(n-u,a-l,2*u,2*l);break}g+=Jr;case"rectRot":d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),t.moveTo(n-d,a-s),t.lineTo(n+h,a-o),t.lineTo(n+d,a+s),t.lineTo(n-h,a+o),t.closePath();break;case"crossRot":g+=Jr;case"cross":d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),t.moveTo(n-d,a-s),t.lineTo(n+d,a+s),t.moveTo(n+h,a-o),t.lineTo(n-h,a+o);break;case"star":d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),t.moveTo(n-d,a-s),t.lineTo(n+d,a+s),t.moveTo(n+h,a-o),t.lineTo(n-h,a+o),g+=Jr,d=Math.cos(g)*(r?r/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(r?r/2:m),t.moveTo(n-d,a-s),t.lineTo(n+d,a+s),t.moveTo(n+h,a-o),t.lineTo(n-h,a+o);break;case"line":o=r?r/2:Math.cos(g)*m,s=Math.sin(g)*m,t.moveTo(n-o,a-s),t.lineTo(n+o,a+s);break;case"dash":t.moveTo(n,a),t.lineTo(n+Math.cos(g)*(r?r/2:m),a+Math.sin(g)*m);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Zi(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Qi(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function to(t){t.restore()}function eo(t,e,n,a,r){if(!e)return t.lineTo(n.x,n.y);if("middle"===r){const a=(e.x+n.x)/2;t.lineTo(a,e.y),t.lineTo(a,n.y)}else"after"===r!=!!a?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function no(t,e,n,a){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(a?e.cp1x:e.cp2x,a?e.cp1y:e.cp2y,a?n.cp2x:n.cp1x,a?n.cp2y:n.cp1y,n.x,n.y)}function ao(t,e,n,a,r){if(r.strikethrough||r.underline){const i=t.measureText(a),o=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,u),t.lineTo(s,u),t.stroke()}}function ro(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function io(t,e,n,a,r,i={}){const o=Sr(e)?e:[e],s=i.strokeWidth>0&&""!==i.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),kr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),l=0;l<o.length;++l)c=o[l],i.backdrop&&ro(t,i.backdrop),s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),kr(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,n,a,i.maxWidth)),t.fillText(c,n,a,i.maxWidth),ao(t,n,a,c,i),a+=Number(r.lineHeight);t.restore()}function oo(t,e){const{x:n,y:a,w:r,h:i,radius:o}=e;t.arc(n+o.topLeft,a+o.topLeft,o.topLeft,1.5*qr,qr,!0),t.lineTo(n,a+i-o.bottomLeft),t.arc(n+o.bottomLeft,a+i-o.bottomLeft,o.bottomLeft,qr,Xr,!0),t.lineTo(n+r-o.bottomRight,a+i),t.arc(n+r-o.bottomRight,a+i-o.bottomRight,o.bottomRight,Xr,0,!0),t.lineTo(n+r,a+o.topRight),t.arc(n+r-o.topRight,a+o.topRight,o.topRight,0,-Xr,!0),t.lineTo(n+o.topLeft,a)}const so=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,lo=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function co(t,e){const n=(""+t).match(so);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const uo=t=>+t||0;function ho(t,e){const n={},a=Cr(e),r=a?Object.keys(e):e,i=Cr(t)?a?n=>Tr(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=uo(i(t));return n}function fo(t){return ho(t,{top:"y",right:"x",bottom:"y",left:"x"})}function po(t){return ho(t,["topLeft","topRight","bottomLeft","bottomRight"])}function mo(t){const e=fo(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function go(t,e){t=t||{},e=e||qi.font;let n=Tr(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let a=Tr(t.style,e.style);a&&!(""+a).match(lo)&&(console.warn('Invalid font style specified: "'+a+'"'),a=void 0);const r={family:Tr(t.family,e.family),lineHeight:co(Tr(t.lineHeight,e.lineHeight),n),size:n,style:a,weight:Tr(t.weight,e.weight),string:""};return r.string=function(t){return!t||kr(t.size)||kr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function vo(t,e,n,a){let r,i,o,s=!0;for(r=0,i=t.length;r<i;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),s=!1),void 0!==n&&Sr(o)&&(o=o[n%o.length],s=!1),void 0!==o))return a&&!s&&(a.cacheable=!1),o}function bo(t,e){return Object.assign(Object.create(t),e)}function _o(t,e=[""],n,a,r=(()=>t[0])){const i=n||t;void 0===a&&(a=No("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:a,_getTarget:r,override:n=>_o([n,...t],e,i,a)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,a)=>So(n,a,(()=>function(t,e,n,a){let r;for(const i of e)if(r=No(xo(i,t),n),void 0!==r)return ko(t,r)?To(n,a,t,r):r}(a,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Lo(t).includes(e),ownKeys:t=>Lo(t),set(t,e,n){const a=t._storage||(t._storage=r());return t[e]=a[e]=n,delete t._keys,!0}})}function yo(t,e,n,a){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:wo(t,a),setContext:e=>yo(t,e,n,a),override:r=>yo(t.override(r),e,n,a)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>So(t,e,(()=>function(t,e,n){const{_proxy:a,_context:r,_subProxy:i,_descriptors:o}=t;let s=a[e];Vr(s)&&o.isScriptable(e)&&(s=function(t,e,n,a){const{_proxy:r,_context:i,_subProxy:o,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(i,o||a);s.delete(t),ko(t,l)&&(l=To(r._scopes,r,t,l));return l}(e,s,t,n));Sr(s)&&s.length&&(s=function(t,e,n,a){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=n;if(void 0!==i.index&&a(t))return e[i.index%e.length];if(Cr(e[0])){const n=e,a=r._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=To(a,r,t,l);e.push(yo(n,i,o&&o[t],s))}}return e}(e,s,t,o.isIndexable));ko(e,s)&&(s=yo(s,r,i&&i[e],o));return s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,a)=>(t[n]=a,delete e[n],!0)})}function wo(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:a=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:a,isScriptable:Vr(n)?n:()=>n,isIndexable:Vr(a)?a:()=>a}}const xo=(t,e)=>t?t+Ur(e):e,ko=(t,e)=>Cr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function So(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const a=n();return t[e]=a,a}function Co(t,e,n){return Vr(t)?t(e,n):t}const Ao=(t,e)=>!0===t?e:"string"==typeof t?zr(e,t):void 0;function Eo(t,e,n,a,r){for(const i of e){const e=Ao(n,i);if(e){t.add(e);const i=Co(e._fallback,n,r);if(void 0!==i&&i!==n&&i!==a)return i}else if(!1===e&&void 0!==a&&n!==a)return null}return!1}function To(t,e,n,a){const r=e._rootScopes,i=Co(e._fallback,n,a),o=[...t,...r],s=new Set;s.add(a);let l=Po(s,o,n,i||n,a);return null!==l&&((void 0===i||i===n||(l=Po(s,o,i,l,a),null!==l))&&_o(Array.from(s),[""],r,i,(()=>function(t,e,n){const a=t._getTarget();e in a||(a[e]={});const r=a[e];if(Sr(r)&&Cr(n))return n;return r||{}}(e,n,a))))}function Po(t,e,n,a,r){for(;n;)n=Eo(t,e,n,a,r);return n}function No(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function Lo(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Oo(t,e,n,a){const{iScale:r}=t,{key:i="r"}=this._parsing,o=new Array(a);let s,l,c,u;for(s=0,l=a;s<l;++s)c=s+n,u=e[c],o[s]={r:r.parse(zr(u,i),c)};return o}const Mo=Number.EPSILON||1e-14,Ro=(t,e)=>e<t.length&&!t[e].skip&&t[e],Io=t=>"x"===t?"y":"x";function Do(t,e,n,a){const r=t.skip?e:t,i=e,o=n.skip?e:n,s=ci(i,r),l=ci(o,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=a*c,h=a*u;return{previous:{x:i.x-d*(o.x-r.x),y:i.y-d*(o.y-r.y)},next:{x:i.x+h*(o.x-r.x),y:i.y+h*(o.y-r.y)}}}function Fo(t,e="x"){const n=Io(e),a=t.length,r=Array(a).fill(0),i=Array(a);let o,s,l,c=Ro(t,0);for(o=0;o<a;++o)if(s=l,l=c,c=Ro(t,o+1),l){if(c){const t=c[e]-l[e];r[o]=0!==t?(c[n]-l[n])/t:0}i[o]=s?c?ti(r[o-1])!==ti(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}!function(t,e,n){const a=t.length;let r,i,o,s,l,c=Ro(t,0);for(let u=0;u<a-1;++u)l=c,c=Ro(t,u+1),l&&c&&(ei(e[u],0,Mo)?n[u]=n[u+1]=0:(r=n[u]/e[u],i=n[u+1]/e[u],s=Math.pow(r,2)+Math.pow(i,2),s<=9||(o=3/Math.sqrt(s),n[u]=r*o*e[u],n[u+1]=i*o*e[u])))}(t,r,i),function(t,e,n="x"){const a=Io(n),r=t.length;let i,o,s,l=Ro(t,0);for(let c=0;c<r;++c){if(o=s,s=l,l=Ro(t,c+1),!s)continue;const r=s[n],u=s[a];o&&(i=(r-o[n])/3,s[`cp1${n}`]=r-i,s[`cp1${a}`]=u-i*e[c]),l&&(i=(l[n]-r)/3,s[`cp2${n}`]=r+i,s[`cp2${a}`]=u+i*e[c])}}(t,i,e)}function jo(t,e,n){return Math.max(Math.min(t,n),e)}function Bo(t,e,n,a,r){let i,o,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Fo(t,r);else{let n=a?t[t.length-1]:t[0];for(i=0,o=t.length;i<o;++i)s=t[i],l=Do(n,s,t[Math.min(i+1,o-(a?0:1))%o],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,a,r,i,o,s=Zi(t[0],e);for(n=0,a=t.length;n<a;++n)o=i,i=s,s=n<a-1&&Zi(t[n+1],e),i&&(r=t[n],o&&(r.cp1x=jo(r.cp1x,e.left,e.right),r.cp1y=jo(r.cp1y,e.top,e.bottom)),s&&(r.cp2x=jo(r.cp2x,e.left,e.right),r.cp2y=jo(r.cp2y,e.top,e.bottom)))}(t,n)}function zo(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Uo(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ho(t,e,n){let a;return"string"==typeof t?(a=parseInt(t,10),-1!==t.indexOf("%")&&(a=a/100*e.parentNode[n])):a=t,a}const Vo=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const Wo=["top","right","bottom","left"];function qo(t,e,n){const a={};n=n?"-"+n:"";for(let r=0;r<4;r++){const i=Wo[r];a[i]=parseFloat(t[e+"-"+i+n])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}const $o=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function Ko(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:a}=e,r=Vo(n),i="border-box"===r.boxSizing,o=qo(r,"padding"),s=qo(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,a=n&&n.length?n[0]:t,{offsetX:r,offsetY:i}=a;let o,s,l=!1;if($o(r,i,t.target))o=r,s=i;else{const t=e.getBoundingClientRect();o=a.clientX-t.left,s=a.clientY-t.top,l=!0}return{x:o,y:s,box:l}}(t,n),d=o.left+(u&&s.left),h=o.top+(u&&s.top);let{width:f,height:p}=e;return i&&(f-=o.width+s.width,p-=o.height+s.height),{x:Math.round((l-d)/f*n.width/a),y:Math.round((c-h)/p*n.height/a)}}const Go=t=>Math.round(10*t)/10;function Yo(t,e,n,a){const r=Vo(t),i=qo(r,"margin"),o=Ho(r.maxWidth,t,"clientWidth")||Gr,s=Ho(r.maxHeight,t,"clientHeight")||Gr,l=function(t,e,n){let a,r;if(void 0===e||void 0===n){const i=t&&Uo(t);if(i){const t=i.getBoundingClientRect(),o=Vo(i),s=qo(o,"border","width"),l=qo(o,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,a=Ho(o.maxWidth,i,"clientWidth"),r=Ho(o.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:a||Gr,maxHeight:r||Gr}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=qo(r,"border","width"),e=qo(r,"padding");c-=e.width+t.width,u-=e.height+t.height}c=Math.max(0,c-i.width),u=Math.max(0,a?c/a:u-i.height),c=Go(Math.min(c,o,l.maxWidth)),u=Go(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Go(c/2));return(void 0!==e||void 0!==n)&&a&&l.height&&u>l.height&&(u=l.height,c=Go(Math.floor(u*a))),{width:c,height:u}}function Xo(t,e,n){const a=e||1,r=Go(t.height*a),i=Go(t.width*a);t.height=Go(t.height),t.width=Go(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==a||o.height!==r||o.width!==i)&&(t.currentDevicePixelRatio=a,o.height=r,o.width=i,t.ctx.setTransform(a,0,0,a,0,0),!0)}const Jo=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};zo()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Zo(t,e){const n=function(t,e){return Vo(t).getPropertyValue(e)}(t,e),a=n&&n.match(/^(\d+)(\.\d+)?px$/);return a?+a[1]:void 0}function Qo(t,e,n,a){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function ts(t,e,n,a){return{x:t.x+n*(e.x-t.x),y:"middle"===a?n<.5?t.y:e.y:"after"===a?n<1?t.y:e.y:n>0?e.y:t.y}}function es(t,e,n,a){const r={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},o=Qo(t,r,n),s=Qo(r,i,n),l=Qo(i,e,n),c=Qo(o,s,n),u=Qo(s,l,n);return Qo(c,u,n)}function ns(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function as(t,e){let n,a;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,a=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=a)}function rs(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function is(t){return"angle"===t?{between:hi,compare:ui,normalize:di}:{between:pi,compare:(t,e)=>t-e,normalize:t=>t}}function os({start:t,end:e,count:n,loop:a,style:r}){return{start:t%n,end:e%n,loop:a&&(e-t+1)%n==0,style:r}}function ss(t,e,n){if(!n)return[t];const{property:a,start:r,end:i}=n,o=e.length,{compare:s,between:l,normalize:c}=is(a),{start:u,end:d,loop:h,style:f}=function(t,e,n){const{property:a,start:r,end:i}=n,{between:o,normalize:s}=is(a),l=e.length;let c,u,{start:d,end:h,loop:f}=t;if(f){for(d+=l,h+=l,c=0,u=l;c<u&&o(s(e[d%l][a]),r,i);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:f,style:t.style}}(t,e,n),p=[];let m,g,v,b=!1,_=null;const y=()=>b||l(r,v,m)&&0!==s(r,v),w=()=>!b||0===s(i,m)||l(i,v,m);for(let t=u,n=u;t<=d;++t)g=e[t%o],g.skip||(m=c(g[a]),m!==v&&(b=l(m,r,i),null===_&&y()&&(_=0===s(m,r)?t:n),null!==_&&w()&&(p.push(os({start:_,end:t,loop:h,count:o,style:f})),_=null),n=t,v=m));return null!==_&&p.push(os({start:_,end:d,loop:h,count:o,style:f})),p}function ls(t,e){const n=[],a=t.segments;for(let r=0;r<a.length;r++){const i=ss(a[r],t.points,e);i.length&&n.push(...i)}return n}function cs(t,e,n,a){return a&&a.setContext&&n?function(t,e,n,a){const r=t._chart.getContext(),i=us(t.options),{_datasetIndex:o,options:{spanGaps:s}}=t,l=n.length,c=[];let u=i,d=e[0].start,h=d;function f(t,e,a,r){const i=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=i;for(;n[e%l].skip;)e+=i;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:a,style:r}),u=r,d=e%l)}}for(const t of e){d=s?d:t.start;let e,i=n[d%l];for(h=d+1;h<=t.end;h++){const s=n[h%l];e=us(a.setContext(bo(r,{type:"segment",p0:i,p1:s,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),ds(e,u)&&f(d,h-1,t.loop,u),i=s,u=e}d<h-1&&f(d,h-1,t.loop,u)}return c}(t,e,n,a):e}function us(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ds(t,e){if(!e)return!1;const n=[],a=function(t,e){return Li(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,a)!==JSON.stringify(e,a)}function hs(t,e,n){return t.options.clip?t[n]:e[n]}function fs(t,e){const n=e._clip;if(n.disabled)return!1;const a=function(t,e){const{xScale:n,yScale:a}=t;return n&&a?{left:hs(n,e,"left"),right:hs(n,e,"right"),top:hs(a,e,"top"),bottom:hs(a,e,"bottom")}:e}(e,t.chartArea);return{left:!1===n.left?0:a.left-(!0===n.left?0:n.left),right:!1===n.right?t.width:a.right+(!0===n.right?0:n.right),top:!1===n.top?0:a.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?t.height:a.bottom+(!0===n.bottom?0:n.bottom)}}class ps{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,a){const r=e.listeners[a],i=e.duration;r.forEach((a=>a({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=wi.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,a)=>{if(!n.running||!n.items.length)return;const r=n.items;let i,o=r.length-1,s=!1;for(;o>=0;--o)i=r[o],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),s=!0):(r[o]=r[r.length-1],r.pop());s&&(a.draw(),this._notify(a,n,t,"progress")),r.length||(n.running=!1,this._notify(a,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let a=n.length-1;for(;a>=0;--a)n[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ms=new ps;const gs="transparent",vs={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const a=Oi(t||gs),r=a.valid&&Oi(e||gs);return r&&r.valid?r.mix(a,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class bs{constructor(t,e,n,a){const r=e[n];a=vo([t.to,a,r,t.from]);const i=vo([t.from,r,a]);this._active=!0,this._fn=t.fn||vs[t.type||typeof i],this._easing=Ni[t.easing]||Ni.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=i,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const a=this._target[this._prop],r=n-this._start,i=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=vo([t.to,e,a,t.from]),this._from=vo([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,a=this._prop,r=this._from,i=this._loop,o=this._to;let s;if(this._active=r!==o&&(i||e<n),!this._active)return this._target[a]=o,void this._notify(!0);e<0?this._target[a]=r:(s=e/n%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[a]=this._fn(r,o,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class _s{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Cr(t))return;const e=Object.keys(qi.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((a=>{const r=t[a];if(!Cr(r))return;const i={};for(const t of e)i[t]=r[t];(Sr(r.properties)&&r.properties||[a]).forEach((t=>{t!==a&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,a=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!a)return[];const r=this._createAnimations(a,n);return n.$shared&&function(t,e){const n=[],a=Object.keys(e);for(let e=0;e<a.length;e++){const r=t[a[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,a=[],r=t.$animations||(t.$animations={}),i=Object.keys(e),o=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){a.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(r[l]=u=new bs(d,t,l,c),a.push(u)):t[l]=c}return a}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(ms.add(this._chart,n),!0):void 0}}function ys(t,e){const n=t&&t.options||{},a=n.reverse,r=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:a?i:r,end:a?r:i}}function ws(t,e){const n=[],a=t._getSortedDatasetMetas(e);let r,i;for(r=0,i=a.length;r<i;++r)n.push(a[r].index);return n}function xs(t,e,n,a={}){const r=t.keys,i="single"===a.mode;let o,s,l,c;if(null===e)return;let u=!1;for(o=0,s=r.length;o<s;++o){if(l=+r[o],l===n){if(u=!0,a.all)continue;break}c=t.values[l],Ar(c)&&(i||0===e||ti(e)===ti(c))&&(e+=c)}return u||a.all?e:0}function ks(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ss(t,e,n){const a=t[e]||(t[e]={});return a[n]||(a[n]={})}function Cs(t,e,n,a){for(const r of e.getMatchingVisibleMetas(a).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function As(t,e){const{chart:n,_cachedMeta:a}=t,r=n._stacks||(n._stacks={}),{iScale:i,vScale:o,index:s}=a,l=i.axis,c=o.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(i,o,a),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:i,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Ss(r,u,i),h[s]=d,h._top=Cs(h,o,!0,a.type),h._bottom=Cs(h,o,!1,a.type);(h._visualValues||(h._visualValues={}))[s]=d}}function Es(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Ts(t,e){const n=t.controller.index,a=t.vScale&&t.vScale.axis;if(a){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[a]||void 0===e[a][n])return;delete e[a][n],void 0!==e[a]._visualValues&&void 0!==e[a]._visualValues[n]&&delete e[a]._visualValues[n]}}}const Ps=t=>"reset"===t||"none"===t,Ns=(t,e)=>e?t:Object.assign({},t);class Ls{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ks(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ts(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),a=(t,e,n,a)=>"x"===t?e:"r"===t?a:n,r=e.xAxisID=Tr(n.xAxisID,Es(t,"x")),i=e.yAxisID=Tr(n.yAxisID,Es(t,"y")),o=e.rAxisID=Tr(n.rAxisID,Es(t,"r")),s=e.indexAxis,l=e.iAxisID=a(s,r,i,o),c=e.vAxisID=a(s,i,r,o);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&_i(this._data,this),t._stacked&&Ts(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Cr(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:a}=e,r="x"===n.axis?"x":"y",i="x"===a.axis?"x":"y",o=Object.keys(t),s=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],s[l]={[r]:u,[i]:t[u]};return s}(e,t)}else if(n!==e){if(n){_i(n,this);const t=this._cachedMeta;Ts(t),t._parsed=[]}e&&Object.isExtensible(e)&&(r=this,(a=e)._chartjs?a._chartjs.listeners.push(r):(Object.defineProperty(a,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),bi.forEach((t=>{const e="_onData"+Ur(t),n=a[t];Object.defineProperty(a,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return a._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var a,r}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let a=!1;this._dataCheck();const r=e._stacked;e._stacked=ks(e.vScale,e),e.stack!==n.stack&&(a=!0,Ts(e),e.stack=n.stack),this._resyncElements(t),(a||r!==e._stacked)&&(As(this,e._parsed),e._stacked=ks(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:a}=this,{iScale:r,_stacked:i}=n,o=r.axis;let s,l,c,u=0===t&&e===a.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=a,n._sorted=!0,c=a;else{c=Sr(a[t])?this.parseArrayData(n,a,t,e):Cr(a[t])?this.parseObjectData(n,a,t,e):this.parsePrimitiveData(n,a,t,e);const r=()=>null===l[o]||d&&l[o]<d[o];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],u&&(r()&&(u=!1),d=l);n._sorted=u}i&&As(this,c)}parsePrimitiveData(t,e,n,a){const{iScale:r,vScale:i}=t,o=r.axis,s=i.axis,l=r.getLabels(),c=r===i,u=new Array(a);let d,h,f;for(d=0,h=a;d<h;++d)f=d+n,u[d]={[o]:c||r.parse(l[f],f),[s]:i.parse(e[f],f)};return u}parseArrayData(t,e,n,a){const{xScale:r,yScale:i}=t,o=new Array(a);let s,l,c,u;for(s=0,l=a;s<l;++s)c=s+n,u=e[c],o[s]={x:r.parse(u[0],c),y:i.parse(u[1],c)};return o}parseObjectData(t,e,n,a){const{xScale:r,yScale:i}=t,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l=new Array(a);let c,u,d,h;for(c=0,u=a;c<u;++c)d=c+n,h=e[d],l[c]={x:r.parse(zr(h,o),d),y:i.parse(zr(h,s),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const a=this.chart,r=this._cachedMeta,i=e[t.axis];return xs({keys:ws(a,!0),values:e._stacks[t.axis]._visualValues},i,r.index,{mode:n})}updateRangeFromParsed(t,e,n,a){const r=n[e.axis];let i=null===r?NaN:r;const o=a&&n._stacks[e.axis];a&&o&&(a.values=o,i=xs(a,r,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const n=this._cachedMeta,a=n._parsed,r=n._sorted&&t===n.iScale,i=a.length,o=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:ws(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:a,maxDefined:r}=t.getUserBounds();return{min:a?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(o);let d,h;function f(){h=a[d];const e=h[o.axis];return!Ar(h[t.axis])||c>e||u<e}for(d=0;d<i&&(f()||(this.updateRangeFromParsed(l,t,h,s),!r));++d);if(r)for(d=i-1;d>=0;--d)if(!f()){this.updateRangeFromParsed(l,t,h,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let a,r,i;for(a=0,r=e.length;a<r;++a)i=e[a][t.axis],Ar(i)&&n.push(i);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,a=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:a?""+a.getLabelForValue(r[a.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,a,r;return Cr(t)?(e=t.top,n=t.right,a=t.bottom,r=t.left):e=n=a=r=t,{top:e,right:n,bottom:a,left:r,disabled:!1===t}}(Tr(this.options.clip,function(t,e,n){if(!1===n)return!1;const a=ys(t,n),r=ys(e,n);return{top:r.end,right:a.end,bottom:r.start,left:a.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,a=n.data||[],r=e.chartArea,i=[],o=this._drawStart||0,s=this._drawCount||a.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,o,s),c=o;c<o+s;++c){const e=a[c];e.hidden||(e.active&&l?i.push(e):e.draw(t,r))}for(c=0;c<i.length;++c)i[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const a=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return bo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=a.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return bo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=a,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const a="active"===e,r=this._cachedDataOpts,i=t+"-"+e,o=r[i],s=this.enableOptionSharing&&Hr(n);if(o)return Ns(o,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=a?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(qi.elements[t]),f=l.resolveNamedOptions(d,h,(()=>this.getContext(n,a,e)),u);return f.$shared&&(f.$shared=s,r[i]=Object.freeze(Ns(f,s))),f}_resolveAnimations(t,e,n){const a=this.chart,r=this._cachedDataOpts,i=`animation-${e}`,o=r[i];if(o)return o;let s;if(!1!==a.options.animation){const a=this.chart.config,r=a.datasetAnimationScopeKeys(this._type,e),i=a.getOptionScopes(this.getDataset(),r);s=a.createResolver(i,this.getContext(t,n,e))}const l=new _s(a,s&&s.animations);return s&&s._cacheable&&(r[i]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ps(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),a=this._sharedOptions,r=this.getSharedOptions(n),i=this.includeOptions(e,r)||r!==a;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:i}}updateElement(t,e,n,a){Ps(a)?Object.assign(t,n):this._resolveAnimations(e,a).update(t,n)}updateSharedOptions(t,e,n){t&&!Ps(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,a){t.active=a;const r=this.getStyle(e,a);this._resolveAnimations(e,n,a).update(t,{options:!a&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const a=n.length,r=e.length,i=Math.min(r,a);i&&this.parse(0,i),r>a?this._insertElements(a,r-a,t):r<a&&this._removeElements(r,a-r)}_insertElements(t,e,n=!0){const a=this._cachedMeta,r=a.data,i=t+e;let o;const s=t=>{for(t.length+=e,o=t.length-1;o>=i;o--)t[o]=t[o-e]};for(s(r),o=t;o<i;++o)r[o]=new this.dataElementType;this._parsing&&s(a._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,a){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const a=n._parsed.splice(t,e);n._stacked&&Ts(n,a)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,a]=t;this[e](n,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Os(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let a=[];for(let e=0,r=n.length;e<r;e++)a=a.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=yi(a.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let a,r,i,o,s=e._length;const l=()=>{32767!==i&&-32768!==i&&(Hr(o)&&(s=Math.min(s,Math.abs(i-o)||s)),o=i)};for(a=0,r=n.length;a<r;++a)i=e.getPixelForValue(n[a]),l();for(o=void 0,a=0,r=e.ticks.length;a<r;++a)i=e.getPixelForTick(a),l();return s}function Ms(t,e,n,a){return Sr(t)?function(t,e,n,a){const r=n.parse(t[0],a),i=n.parse(t[1],a),o=Math.min(r,i),s=Math.max(r,i);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:i,min:o,max:s}}(t,e,n,a):e[n.axis]=n.parse(t,a),e}function Rs(t,e,n,a){const r=t.iScale,i=t.vScale,o=r.getLabels(),s=r===i,l=[];let c,u,d,h;for(c=n,u=n+a;c<u;++c)h=e[c],d={},d[r.axis]=s||r.parse(o[c],c),l.push(Ms(h,d,i,c));return l}function Is(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ds(t,e,n,a){let r=e.borderSkipped;const i={};if(!r)return void(t.borderSkipped=i);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:s,reverse:l,top:c,bottom:u}=function(t){let e,n,a,r,i;return t.horizontal?(e=t.base>t.x,n="left",a="right"):(e=t.base<t.y,n="bottom",a="top"),e?(r="end",i="start"):(r="start",i="end"),{start:n,end:a,reverse:e,top:r,bottom:i}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===a?r=c:(n._bottom||0)===a?r=u:(i[Fs(u,o,s,l)]=!0,r=c)),i[Fs(r,o,s,l)]=!0,t.borderSkipped=i}function Fs(t,e,n,a){var r,i,o;return a?(o=n,t=js(t=(r=t)===(i=e)?o:r===o?i:r,n,e)):t=js(t,e,n),t}function js(t,e,n){return"start"===t?e:"end"===t?n:t}function Bs(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class zs extends Ls{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:n,textAlign:a,color:r,useBorderRadius:i,borderRadius:o}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map(((e,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:l.backgroundColor,fontColor:r,hidden:!t.getDataVisibility(s),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:a,pointStyle:n,borderRadius:i&&(o||l.borderRadius),index:s}})):[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,a=this._cachedMeta;if(!1===this._parsing)a._parsed=n;else{let r,i,o=t=>+n[t];if(Cr(n[t])){const{key:t="value"}=this._parsing;o=e=>+zr(n[e],t)}for(r=t,i=t+e;r<i;++r)a._parsed[r]=o(r)}}_getRotation(){return ii(this.options.rotation-90)}_getCircumference(){return ii(this.options.circumference)}_getRotationExtents(){let t=$r,e=-$r;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const a=this.chart.getDatasetMeta(n).controller,r=a._getRotation(),i=a._getCircumference();t=Math.min(t,r),e=Math.max(e,r+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,a=this._cachedMeta,r=a.data,i=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-i)/2,0),s=Math.min(((t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e)(this.options.cutout,o),1),l=this._getRingWeight(this.index),{circumference:c,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:h,offsetX:f,offsetY:p}=function(t,e,n){let a=1,r=1,i=0,o=0;if(e<$r){const s=t,l=s+e,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),h=Math.sin(l),f=(t,e,a)=>hi(t,s,l,!0)?1:Math.max(e,e*n,a,a*n),p=(t,e,a)=>hi(t,s,l,!0)?-1:Math.min(e,e*n,a,a*n),m=f(0,c,d),g=f(Xr,u,h),v=p(qr,c,d),b=p(qr+Xr,u,h);a=(m-v)/2,r=(g-b)/2,i=-(m+v)/2,o=-(g+b)/2}return{ratioX:a,ratioY:r,offsetX:i,offsetY:o}}(u,c,s),m=(n.width-i)/d,g=(n.height-i)/h,v=Math.max(Math.min(m,g)/2,0),b=Pr(this.options.radius,v),_=(b-Math.max(b*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*b,this.offsetY=p*b,a.total=this.calculateTotal(),this.outerRadius=b-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*l,0),this.updateElements(r,0,r.length,t)}_circumference(t,e){const n=this.options,a=this._cachedMeta,r=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===a._parsed[t]||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*r/$r)}updateElements(t,e,n,a){const r="reset"===a,i=this.chart,o=i.chartArea,s=i.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=r&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,a);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,r);for(m=e;m<e+n;++m){const e=this._circumference(m,r),n=t[m],i={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:h,innerRadius:d};p&&(i.options=f||this.resolveDataElementOptions(m,n.active?"active":a)),g+=e,this.updateElement(n,m,i,a)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,a=0;for(n=0;n<e.length;n++){const r=t._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||e[n].hidden||(a+=Math.abs(r))}return a}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?$r*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,a=n.data.labels||[],r=Fi(e._parsed[t],n.options.locale);return{label:a[t]||"",value:r}}getMaxBorderWidth(t){let e=0;const n=this.chart;let a,r,i,o,s;if(!t)for(a=0,r=n.data.datasets.length;a<r;++a)if(n.isDatasetVisible(a)){i=n.getDatasetMeta(a),t=i.data,o=i.controller;break}if(!t)return 0;for(a=0,r=t.length;a<r;++a)s=o.resolveDataElementOptions(a),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,a=t.length;n<a;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(Tr(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Us extends Ls{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:a}}=t.legend.options;return e.labels.map(((e,r)=>{const i=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:a,lineWidth:i.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,a=n.data.labels||[],r=Fi(e._parsed[t].r,n.options.locale);return{label:a[t]||"",value:r}}parseObjectData(t,e,n,a){return Oo.bind(this)(t,e,n,a)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const a=this.getParsed(n).r;!isNaN(a)&&this.chart.getDataVisibility(n)&&(a<e.min&&(e.min=a),a>e.max&&(e.max=a))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,a=Math.min(e.right-e.left,e.bottom-e.top),r=Math.max(a/2,0),i=(r-Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=r-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(t,e,n,a){const r="reset"===a,i=this.chart,o=i.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*qr;let d,h=u;const f=360/this.countVisibleElements();for(d=0;d<e;++d)h+=this._computeAngle(d,a,f);for(d=e;d<e+n;d++){const e=t[d];let n=h,p=h+this._computeAngle(d,a,f),m=i.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=p,r&&(o.animateScale&&(m=0),o.animateRotate&&(n=p=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(d,e.active?"active":a)};this.updateElement(e,d,g,a)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?ii(this.resolveDataElementOptions(t,e).angle||n):0}}var Hs=Object.freeze({__proto__:null,BarController:class extends Ls{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,a){return Rs(t,e,n,a)}parseArrayData(t,e,n,a){return Rs(t,e,n,a)}parseObjectData(t,e,n,a){const{iScale:r,vScale:i}=t,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l="x"===r.axis?o:s,c="x"===i.axis?o:s,u=[];let d,h,f,p;for(d=n,h=n+a;d<h;++d)p=e[d],f={},f[r.axis]=r.parse(zr(p,l),d),u.push(Ms(zr(p,c),f,i,d));return u}updateRangeFromParsed(t,e,n,a){super.updateRangeFromParsed(t,e,n,a);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:a}=e,r=this.getParsed(t),i=r._custom,o=Is(i)?"["+i.start+", "+i.end+"]":""+a.getLabelForValue(r[a.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,a){const r="reset"===a,{index:i,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,a);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=r||kr(e[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),f=this._calculateBarIndexPixels(h,c),p=(e._stacks||{})[o.axis],m={horizontal:l,base:n.base,enableBorderRadius:!p||Is(e._custom)||i===p._top||i===p._bottom,x:l?n.head:f.center,y:l?f.center:n.head,height:l?f.size:Math.abs(n.size),width:l?Math.abs(n.size):f.size};d&&(m.options=u||this.resolveDataElementOptions(h,t[h].active?"active":a));const g=m.options||t[h].options;Ds(m,g,p,i),Bs(m,g,c.ratio),this.updateElement(t[h],h,m,a)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,a=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,i=[],o=this._cachedMeta.controller.getParsed(e),s=o&&o[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===s)),a=e&&e[t.vScale.axis];if(kr(a)||isNaN(a))return!0};for(const n of a)if((void 0===e||!l(n))&&((!1===r||-1===i.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&i.push(n.stack),n.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter((n=>t[n].axis===e)).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[Tr("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,n){const a=this._getStacks(t,n),r=void 0!==e?a.indexOf(e):-1;return-1===r?a.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,a=[];let r,i;for(r=0,i=e.data.length;r<i;++r)a.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=t.barThickness;return{min:o||Os(e),pixels:a,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:a},options:{base:r,minBarLength:i}}=this,o=r||0,s=this.getParsed(t),l=s._custom,c=Is(l);let u,d,h=s[e.axis],f=0,p=n?this.applyStack(e,s,n):h;p!==h&&(f=p-h,p=h),c&&(h=l.barStart,p=l.barEnd-l.barStart,0!==h&&ti(h)!==ti(l.barEnd)&&(f=0),f+=h);const m=kr(r)||c?f:r;let g=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):g,d=u-g,Math.abs(d)<i){d=function(t,e,n){return 0!==t?ti(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,o)*i,h===o&&(g-=d/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),l=Math.min(t,r),f=Math.max(t,r);g=Math.max(Math.min(g,f),l),u=g+d,n&&!c&&(s._stacks[e.axis]._visualValues[a]=e.getValueForPixel(u)-e.getValueForPixel(g))}if(g===e.getPixelForValue(o)){const t=ti(d)*e.getLineWidthForValue(o)/2;g+=t,d-=t}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,a=this.options,r=a.skipNull,i=Tr(a.maxBarThickness,1/0);let o,s;const l=this._getAxisCount();if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,c="flex"===a.barThickness?function(t,e,n,a){const r=e.pixels,i=r[t];let o=t>0?r[t-1]:null,s=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===o&&(o=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-o);const c=i-(i-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/a,ratio:n.barPercentage,start:c}}(t,e,a,n*l):function(t,e,n,a){const r=n.barThickness;let i,o;return kr(r)?(i=e.min*n.categoryPercentage,o=n.barPercentage):(i=r*a,o=1),{chunk:i/a,ratio:o,start:e.pixels[t]-i/2}}(t,e,a,n*l),u="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(Tr(u,this.getFirstScaleIdForIndexAxis())),h=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0)+d;o=c.start+c.chunk*h+c.chunk/2,s=Math.min(i,c.chunk*c.ratio)}else o=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(i,e.min*e.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,a=n.length;let r=0;for(;r<a;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}},BubbleController:class extends Ls{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,a){const r=super.parsePrimitiveData(t,e,n,a);for(let t=0;t<r.length;t++)r[t]._custom=this.resolveDataElementOptions(t+n).radius;return r}parseArrayData(t,e,n,a){const r=super.parseArrayData(t,e,n,a);for(let t=0;t<r.length;t++){const a=e[n+t];r[t]._custom=Tr(a[2],this.resolveDataElementOptions(t+n).radius)}return r}parseObjectData(t,e,n,a){const r=super.parseObjectData(t,e,n,a);for(let t=0;t<r.length;t++){const a=e[n+t];r[t]._custom=Tr(a&&a.r&&+a.r,this.resolveDataElementOptions(t+n).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:a,yScale:r}=e,i=this.getParsed(t),o=a.getLabelForValue(i.x),s=r.getLabelForValue(i.y),l=i._custom;return{label:n[t]||"",value:"("+o+", "+s+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,a){const r="reset"===a,{iScale:i,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,a),c=i.axis,u=o.axis;for(let d=e;d<e+n;d++){const e=t[d],n=!r&&this.getParsed(d),h={},f=h[c]=r?i.getPixelForDecimal(.5):i.getPixelForValue(n[c]),p=h[u]=r?o.getBasePixel():o.getPixelForValue(n[u]);h.skip=isNaN(f)||isNaN(p),l&&(h.options=s||this.resolveDataElementOptions(d,e.active?"active":a),r&&(h.options.radius=0)),this.updateElement(e,d,h,a)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let a=super.resolveDataElementOptions(t,e);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const r=a.radius;return"active"!==e&&(a.radius=0),a.radius+=Tr(n&&n._custom,r),a}},DoughnutController:zs,LineController:class extends Ls{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:a=[],_dataset:r}=e,i=this.chart._animationsDisabled;let{start:o,count:s}=Ci(e,a,i);this._drawStart=o,this._drawCount=s,Ai(e)&&(o=0,s=a.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!r._decimated,n.points=a;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!i,options:l},t),this.updateElements(a,o,s,t)}updateElements(t,e,n,a){const r="reset"===a,{iScale:i,vScale:o,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,a),d=i.axis,h=o.axis,{spanGaps:f,segment:p}=this.options,m=ai(f)?f:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||r||"none"===a,v=e+n,b=t.length;let _=e>0&&this.getParsed(e-1);for(let n=0;n<b;++n){const f=t[n],b=g?f:{};if(n<e||n>=v){b.skip=!0;continue}const y=this.getParsed(n),w=kr(y[h]),x=b[d]=i.getPixelForValue(y[d],n),k=b[h]=r||w?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,y,s):y[h],n);b.skip=isNaN(x)||isNaN(k)||w,b.stop=n>0&&Math.abs(y[d]-_[d])>m,p&&(b.parsed=y,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,f.active?"active":a)),g||this.updateElement(f,n,b,a),_=y}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,a=t.data||[];if(!a.length)return n;const r=a[0].size(this.resolveDataElementOptions(0)),i=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(n,r,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends zs{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:Us,RadarController:class extends Ls{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,a){return Oo.bind(this)(t,e,n,a)}update(t){const e=this._cachedMeta,n=e.dataset,a=e.data||[],r=e.iScale.getLabels();if(n.points=a,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const i={_loop:!0,_fullLoop:r.length===a.length,options:e};this.updateElement(n,void 0,i,t)}this.updateElements(a,0,a.length,t)}updateElements(t,e,n,a){const r=this._cachedMeta.rScale,i="reset"===a;for(let o=e;o<e+n;o++){const e=t[o],n=this.resolveDataElementOptions(o,e.active?"active":a),s=r.getPointPositionForValue(o,this.getParsed(o).r),l=i?r.xCenter:s.x,c=i?r.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,o,u,a)}}},ScatterController:class extends Ls{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:a,yScale:r}=e,i=this.getParsed(t),o=a.getLabelForValue(i.x),s=r.getLabelForValue(i.y);return{label:n[t]||"",value:"("+o+", "+s+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,a=this.chart._animationsDisabled;let{start:r,count:i}=Ci(e,n,a);if(this._drawStart=r,this._drawCount=i,Ai(e)&&(r=0,i=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:r,_dataset:i}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=n;const o=this.resolveDatasetElementOptions(t);o.segment=this.options.segment,this.updateElement(r,void 0,{animated:!a,options:o},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(n,r,i,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,a){const r="reset"===a,{iScale:i,vScale:o,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,a),u=this.getSharedOptions(c),d=this.includeOptions(a,u),h=i.axis,f=o.axis,{spanGaps:p,segment:m}=this.options,g=ai(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||r||"none"===a;let b=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),p=v?e:{},_=kr(n[f]),y=p[h]=i.getPixelForValue(n[h],c),w=p[f]=r||_?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,n,s):n[f],c);p.skip=isNaN(y)||isNaN(w)||_,p.stop=c>0&&Math.abs(n[h]-b[h])>g,m&&(p.parsed=n,p.raw=l.data[c]),d&&(p.options=u||this.resolveDataElementOptions(c,e.active?"active":a)),v||this.updateElement(e,c,p,a),b=n}this.updateSharedOptions(u,a,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,a=n.options&&n.options.borderWidth||0;if(!e.length)return a;const r=e[0].size(this.resolveDataElementOptions(0)),i=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(a,r,i)/2}}});function Vs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ws{static override(t){Object.assign(Ws.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Vs()}parse(){return Vs()}format(){return Vs()}add(){return Vs()}diff(){return Vs()}startOf(){return Vs()}endOf(){return Vs()}}var qs=Ws;function $s(t,e,n,a){const{controller:r,data:i,_sorted:o}=t,s=r._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&"r"!==e&&o&&i.length){const o=s._reversePixels?vi:gi;if(!a){const a=o(i,e,n);if(l){const{vScale:e}=r._cachedMeta,{_parsed:n}=t,i=n.slice(0,a.lo+1).reverse().findIndex((t=>!kr(t[e.axis])));a.lo-=Math.max(0,i);const o=n.slice(a.hi).findIndex((t=>!kr(t[e.axis])));a.hi+=Math.max(0,o)}return a}if(r._sharedOptions){const t=i[0],a="function"==typeof t.getRange&&t.getRange(e);if(a){const t=o(i,e,n-a),r=o(i,e,n+a);return{lo:t.lo,hi:r.hi}}}}return{lo:0,hi:i.length-1}}function Ks(t,e,n,a,r){const i=t.getSortedVisibleDatasetMetas(),o=n[e];for(let t=0,n=i.length;t<n;++t){const{index:n,data:s}=i[t],{lo:l,hi:c}=$s(i[t],e,o,r);for(let t=l;t<=c;++t){const e=s[t];e.skip||a(e,n,t)}}}function Gs(t,e,n,a,r){const i=[];if(!r&&!t.isPointInArea(e))return i;return Ks(t,n,e,(function(n,o,s){(r||Zi(n,t.chartArea,0))&&n.inRange(e.x,e.y,a)&&i.push({element:n,datasetIndex:o,index:s})}),!0),i}function Ys(t,e,n,a,r,i){let o=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,a){const r=e?Math.abs(t.x-a.x):0,i=n?Math.abs(t.y-a.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(i,2))}}(n);let l=Number.POSITIVE_INFINITY;return Ks(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(a&&!d)return;const h=n.getCenterPoint(r);if(!(!!i||t.isPointInArea(h))&&!d)return;const f=s(e,h);f<l?(o=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&o.push({element:n,datasetIndex:c,index:u})})),o}function Xs(t,e,n,a,r,i){return i||t.isPointInArea(e)?"r"!==n||a?Ys(t,e,n,a,r,i):function(t,e,n,a){let r=[];return Ks(t,n,e,(function(t,n,i){const{startAngle:o,endAngle:s}=t.getProps(["startAngle","endAngle"],a),{angle:l}=li(t,{x:e.x,y:e.y});hi(l,o,s)&&r.push({element:t,datasetIndex:n,index:i})})),r}(t,e,n,r):[]}function Js(t,e,n,a,r){const i=[],o="x"===n?"inXRange":"inYRange";let s=!1;return Ks(t,n,e,((t,a,l)=>{t[o]&&t[o](e[n],r)&&(i.push({element:t,datasetIndex:a,index:l}),s=s||t.inRange(e.x,e.y,r))})),a&&!s?[]:i}var Zs={evaluateInteractionItems:Ks,modes:{index(t,e,n,a){const r=Ko(e,t),i=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?Gs(t,r,i,a,o):Xs(t,r,i,!1,a,o),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,a){const r=Ko(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?Gs(t,r,i,a,o):Xs(t,r,i,!1,a,o);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,a)=>Gs(t,Ko(e,t),n.axis||"xy",a,n.includeInvisible||!1),nearest(t,e,n,a){const r=Ko(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;return Xs(t,r,i,n.intersect,a,o)},x:(t,e,n,a)=>Js(t,Ko(e,t),"x",n.intersect,a),y:(t,e,n,a)=>Js(t,Ko(e,t),"y",n.intersect,a)}};const Qs=["left","top","right","bottom"];function tl(t,e){return t.filter((t=>t.pos===e))}function el(t,e){return t.filter((t=>-1===Qs.indexOf(t.pos)&&t.box.axis===e))}function nl(t,e){return t.sort(((t,n)=>{const a=e?n:t,r=e?t:n;return a.weight===r.weight?a.index-r.index:a.weight-r.weight}))}function al(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:a,stackWeight:r}=n;if(!t||!Qs.includes(a))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=r}return e}(t),{vBoxMaxWidth:a,hBoxMaxHeight:r}=e;let i,o,s;for(i=0,o=t.length;i<o;++i){s=t[i];const{fullSize:o}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*a:o&&e.availableWidth,s.height=r):(s.width=a,s.height=c?c*r:o&&e.availableHeight)}return n}function rl(t,e,n,a){return Math.max(t[n],e[n])+Math.max(t[a],e[a])}function il(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function ol(t,e,n,a){const{pos:r,box:i}=n,o=t.maxPadding;if(!Cr(r)){n.size&&(t[r]-=n.size);const e=a[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?i.height:i.width),n.size=e.size/e.count,t[r]+=n.size}i.getPadding&&il(o,i.getPadding());const s=Math.max(0,e.outerWidth-rl(o,t,"left","right")),l=Math.max(0,e.outerHeight-rl(o,t,"top","bottom")),c=s!==t.w,u=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function sl(t,e){const n=e.maxPadding;function a(t){const a={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{a[t]=Math.max(e[t],n[t])})),a}return a(t?["left","right"]:["top","bottom"])}function ll(t,e,n,a){const r=[];let i,o,s,l,c,u;for(i=0,o=t.length,c=0;i<o;++i){s=t[i],l=s.box,l.update(s.width||e.w,s.height||e.h,sl(s.horizontal,e));const{same:o,other:d}=ol(e,n,s,a);c|=o&&r.length,u=u||d,l.fullSize||r.push(s)}return c&&ll(r,e,n,a)||u}function cl(t,e,n,a,r){t.top=n,t.left=e,t.right=e+a,t.bottom=n+r,t.width=a,t.height=r}function ul(t,e,n,a){const r=n.padding;let{x:i,y:o}=e;for(const s of t){const t=s.box,l=a[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const a=e.w*c,i=l.size||t.height;Hr(l.start)&&(o=l.start),t.fullSize?cl(t,r.left,o,n.outerWidth-r.right-r.left,i):cl(t,e.left+l.placed,o,a,i),l.start=o,l.placed+=a,o=t.bottom}else{const a=e.h*c,o=l.size||t.width;Hr(l.start)&&(i=l.start),t.fullSize?cl(t,i,r.top,o,n.outerHeight-r.bottom-r.top):cl(t,i,e.top+l.placed,o,a),l.start=i,l.placed+=a,i=t.right}}e.x=i,e.y=o}var dl={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,a){if(!t)return;const r=mo(t.options.layout.padding),i=Math.max(e-r.width,0),o=Math.max(n-r.height,0),s=function(t){const e=function(t){const e=[];let n,a,r,i,o,s;for(n=0,a=(t||[]).length;n<a;++n)r=t[n],({position:i,options:{stack:o,stackWeight:s=1}}=r),e.push({index:n,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&i+o,stackWeight:s});return e}(t),n=nl(e.filter((t=>t.box.fullSize)),!0),a=nl(tl(e,"left"),!0),r=nl(tl(e,"right")),i=nl(tl(e,"top"),!0),o=nl(tl(e,"bottom")),s=el(e,"x"),l=el(e,"y");return{fullSize:n,leftAndTop:a.concat(i),rightAndBottom:r.concat(l).concat(o).concat(s),chartArea:tl(e,"chartArea"),vertical:a.concat(r).concat(l),horizontal:i.concat(o).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;Lr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:i,availableHeight:o,vBoxMaxWidth:i/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},r);il(h,mo(a));const f=Object.assign({maxPadding:h,w:i,h:o,x:r.left,y:r.top},r),p=al(l.concat(c),d);ll(s.fullSize,f,d,p),ll(l,f,d,p),ll(c,f,d,p)&&ll(l,f,d,p),function(t){const e=t.maxPadding;function n(n){const a=Math.max(e[n]-t[n],0);return t[n]+=a,a}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),ul(s.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,ul(s.rightAndBottom,f,d,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Lr(s.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class hl{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,a){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,a?Math.floor(e/a):n)}}isAttached(t){return!0}updateConfig(t){}}class fl extends hl{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const pl="$chartjs",ml={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},gl=t=>null===t||""===t;const vl=!!Jo&&{passive:!0};function bl(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,vl)}function _l(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function yl(t,e,n){const a=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||_l(n.addedNodes,a),e=e&&!_l(n.removedNodes,a);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function wl(t,e,n){const a=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||_l(n.removedNodes,a),e=e&&!_l(n.addedNodes,a);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const xl=new Map;let kl=0;function Sl(){const t=window.devicePixelRatio;t!==kl&&(kl=t,xl.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Cl(t,e,n){const a=t.canvas,r=a&&Uo(a);if(!r)return;const i=xi(((t,e)=>{const a=r.clientWidth;n(t,e),a<r.clientWidth&&n()}),window),o=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,a=e.contentRect.height;0===n&&0===a||i(n,a)}));return o.observe(r),function(t,e){xl.size||window.addEventListener("resize",Sl),xl.set(t,e)}(t,i),o}function Al(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){xl.delete(t),xl.size||window.removeEventListener("resize",Sl)}(t)}function El(t,e,n){const a=t.canvas,r=xi((e=>{null!==t.ctx&&n(function(t,e){const n=ml[t.type]||t.type,{x:a,y:r}=Ko(t,e);return{type:n,chart:e,native:t,x:void 0!==a?a:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,vl)}(a,e,r),r}class Tl extends hl{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,a=t.getAttribute("height"),r=t.getAttribute("width");if(t[pl]={initial:{height:a,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",gl(r)){const e=Zo(t,"width");void 0!==e&&(t.width=e)}if(gl(a))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Zo(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[pl])return!1;const n=e[pl].initial;["height","width"].forEach((t=>{const a=n[t];kr(a)?e.removeAttribute(t):e.setAttribute(t,a)}));const a=n.style||{};return Object.keys(a).forEach((t=>{e.style[t]=a[t]})),e.width=e.width,delete e[pl],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const a=t.$proxies||(t.$proxies={}),r={attach:yl,detach:wl,resize:Cl}[e]||El;a[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),a=n[e];if(!a)return;({attach:Al,detach:Al,resize:Al}[e]||bl)(t,e,a),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,a){return Yo(t,e,n,a)}isAttached(t){const e=t&&Uo(t);return!(!e||!e.isConnected)}}class Pl{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return ai(this.x)&&ai(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const a={};return t.forEach((t=>{a[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),a}}function Nl(t,e){const n=t.options.ticks,a=function(t){const e=t.options.offset,n=t._tickSize(),a=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(a,r))}(t),r=Math.min(n.maxTicksLimit||a,a),i=n.major.enabled?function(t){const e=[];let n,a;for(n=0,a=t.length;n<a;n++)t[n].major&&e.push(n);return e}(e):[],o=i.length,s=i[0],l=i[o-1],c=[];if(o>r)return function(t,e,n,a){let r,i=0,o=n[0];for(a=Math.ceil(a),r=0;r<t.length;r++)r===o&&(e.push(t[r]),i++,o=n[i*a])}(e,c,i,o/r),c;const u=function(t,e,n){const a=function(t){const e=t.length;let n,a;if(e<2)return!1;for(a=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==a)return!1;return a}(t),r=e.length/n;if(!a)return Math.max(r,1);const i=function(t){const e=[],n=Math.sqrt(t);let a;for(a=1;a<n;a++)t%a==0&&(e.push(a),e.push(t/a));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(a);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>r)return e}return Math.max(r,1)}(i,e,r);if(o>0){let t,n;const a=o>1?Math.round((l-s)/(o-1)):null;for(Ll(e,c,u,kr(a)?0:s-a,s),t=0,n=o-1;t<n;t++)Ll(e,c,u,i[t],i[t+1]);return Ll(e,c,u,l,kr(a)?e.length:l+a),c}return Ll(e,c,u),c}function Ll(t,e,n,a,r){const i=Tr(a,0),o=Math.min(Tr(r,t.length),t.length);let s,l,c,u=0;for(n=Math.ceil(n),r&&(s=r-a,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l<o;l++)l===c&&(e.push(t[l]),u++,c=Math.round(i+u*n))}const Ol=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Ml=(t,e)=>Math.min(e||t,t);function Rl(t,e){const n=[],a=t.length/e,r=t.length;let i=0;for(;i<r;i+=a)n.push(t[Math.floor(i)]);return n}function Il(t,e,n){const a=t.ticks.length,r=Math.min(e,a-1),i=t._startPixel,o=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===a?Math.max(c-i,o-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<i-s||c>o+s)))return c}function Dl(t){return t.drawTicks?t.tickLength:0}function Fl(t,e){if(!t.display)return 0;const n=go(t.font,e),a=mo(t.padding);return(Sr(t.text)?t.text.length:1)*n.lineHeight+a.height}function jl(t,e,n){let a=ki(t);return(n&&"right"!==e||!n&&"right"===e)&&(a=(t=>"left"===t?"right":"right"===t?"left":t)(a)),a}class Bl extends Pl{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:a}=this;return t=Er(t,Number.POSITIVE_INFINITY),e=Er(e,Number.NEGATIVE_INFINITY),n=Er(n,Number.POSITIVE_INFINITY),a=Er(a,Number.NEGATIVE_INFINITY),{min:Er(t,n),max:Er(e,a),minDefined:Ar(t),maxDefined:Ar(e)}}getMinMax(t){let e,{min:n,max:a,minDefined:r,maxDefined:i}=this.getUserBounds();if(r&&i)return{min:n,max:a};const o=this.getMatchingVisibleMetas();for(let s=0,l=o.length;s<l;++s)e=o[s].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),i||(a=Math.max(a,e.max));return n=i&&n>a?a:n,a=r&&n>a?n:a,{min:Er(n,Er(a,n)),max:Er(a,Er(n,a))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Nr(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:a,grace:r,ticks:i}=this.options,o=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:a,max:r}=t,i=Pr(e,(r-a)/2),o=(t,e)=>n&&0===t?0:t+e;return{min:o(a,-Math.abs(i)),max:o(r,i)}}(this,r,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=o<this.ticks.length;this._convertTicksToLabels(s?Rl(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=Nl(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Nr(this.options.afterUpdate,[this])}beforeSetDimensions(){Nr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Nr(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Nr(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Nr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,a,r;for(n=0,a=t.length;n<a;n++)r=t[n],r.label=Nr(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){Nr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Nr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Ml(this.ticks.length,t.ticks.maxTicksLimit),a=e.minRotation||0,r=e.maxRotation;let i,o,s,l=a;if(!this._isVisible()||!e.display||a>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=a);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=fi(this.chart.width-u,0,this.maxWidth);i=t.offset?this.maxWidth/n:h/(n-1),u+6>i&&(i=h/(n-(t.offset?.5:1)),o=this.maxHeight-Dl(t.grid)-e.padding-Fl(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=oi(Math.min(Math.asin(fi((c.highest.height+6)/i,-1,1)),Math.asin(fi(o/s,-1,1))-Math.asin(fi(d/s,-1,1)))),l=Math.max(a,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Nr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Nr(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:a,grid:r}}=this,i=this._isVisible(),o=this.isHorizontal();if(i){const i=Fl(a,e.options.font);if(o?(t.width=this.maxWidth,t.height=Dl(r)+i):(t.height=this.maxHeight,t.width=Dl(r)+i),n.display&&this.ticks.length){const{first:e,last:a,widest:r,highest:i}=this._getLabelSizes(),s=2*n.padding,l=ii(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const e=n.mirror?0:u*r.width+c*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*r.width+u*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,a,u,c)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,a){const{ticks:{align:r,padding:i},position:o}=this.options,s=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=a*t.width,d=n*e.height):(u=n*t.height,d=a*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-o+i)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=e.height/2,a=t.height/2;"start"===r?(n=0,a=t.height):"end"===r&&(n=e.height,a=0),this.paddingTop=n+i,this.paddingBottom=a+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Nr(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)kr(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Rl(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:a,_longestTextCache:r}=this,i=[],o=[],s=Math.floor(e/Ml(e,n));let l,c,u,d,h,f,p,m,g,v,b,_=0,y=0;for(l=0;l<e;l+=s){if(d=t[l].label,h=this._resolveTickFontOptions(l),a.font=f=h.string,p=r[f]=r[f]||{data:{},gc:[]},m=h.lineHeight,g=v=0,kr(d)||Sr(d)){if(Sr(d))for(c=0,u=d.length;c<u;++c)b=d[c],kr(b)||Sr(b)||(g=$i(a,p.data,p.gc,g,b),v+=m)}else g=$i(a,p.data,p.gc,g,d),v=m;i.push(g),o.push(v),_=Math.max(g,_),y=Math.max(v,y)}!function(t,e){Lr(t,(t=>{const n=t.gc,a=n.length/2;let r;if(a>e){for(r=0;r<a;++r)delete t.data[n[r]];n.splice(0,a)}}))}(r,e);const w=i.indexOf(_),x=o.indexOf(y),k=t=>({width:i[t]||0,height:o[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(x),widths:i,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return function(t){return fi(t,-32768,32767)}(this._alignToPixels?Gi(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return bo(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=bo(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=ii(this.labelRotation),n=Math.abs(Math.cos(e)),a=Math.abs(Math.sin(e)),r=this._getLabelSizes(),i=t.autoSkipPadding||0,o=r?r.widest.width+i:0,s=r?r.highest.height+i:0;return this.isHorizontal()?s*n>o*a?o/n:s/a:s*a<o*n?s/n:o/a}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,a=this.options,{grid:r,position:i,border:o}=a,s=r.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=Dl(r),d=[],h=o.setContext(this.getContext()),f=h.display?h.width:0,p=f/2,m=function(t){return Gi(n,t,f)};let g,v,b,_,y,w,x,k,S,C,A,E;if("top"===i)g=m(this.bottom),w=this.bottom-u,k=g-p,C=m(t.top)+p,E=t.bottom;else if("bottom"===i)g=m(this.top),C=t.top,E=m(t.bottom)-p,w=g+p,k=this.top+u;else if("left"===i)g=m(this.right),y=this.right-u,x=g-p,S=m(t.left)+p,A=t.right;else if("right"===i)g=m(this.left),S=t.left,A=m(t.right)-p,y=g+p,x=this.left+u;else if("x"===e){if("center"===i)g=m((t.top+t.bottom)/2+.5);else if(Cr(i)){const t=Object.keys(i)[0],e=i[t];g=m(this.chart.scales[t].getPixelForValue(e))}C=t.top,E=t.bottom,w=g+p,k=w+u}else if("y"===e){if("center"===i)g=m((t.left+t.right)/2);else if(Cr(i)){const t=Object.keys(i)[0],e=i[t];g=m(this.chart.scales[t].getPixelForValue(e))}y=g-p,x=y-u,S=t.left,A=t.right}const T=Tr(a.ticks.maxTicksLimit,c),P=Math.max(1,Math.ceil(c/T));for(v=0;v<c;v+=P){const t=this.getContext(v),e=r.setContext(t),a=o.setContext(t),i=e.lineWidth,c=e.color,u=a.dash||[],h=a.dashOffset,f=e.tickWidth,p=e.tickColor,m=e.tickBorderDash||[],g=e.tickBorderDashOffset;b=Il(this,v,s),void 0!==b&&(_=Gi(n,b,i),l?y=x=S=A=_:w=k=C=E=_,d.push({tx1:y,ty1:w,tx2:x,ty2:k,x1:S,y1:C,x2:A,y2:E,width:i,color:c,borderDash:u,borderDashOffset:h,tickWidth:f,tickColor:p,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:a,ticks:r}=n,i=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=r,d=Dl(n.grid),h=d+c,f=u?-c:h,p=-ii(this.labelRotation),m=[];let g,v,b,_,y,w,x,k,S,C,A,E,T="middle";if("top"===a)w=this.bottom-f,x=this._getXAxisLabelAlignment();else if("bottom"===a)w=this.top+f,x=this._getXAxisLabelAlignment();else if("left"===a){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,y=t.x}else if("right"===a){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,y=t.x}else if("x"===e){if("center"===a)w=(t.top+t.bottom)/2+h;else if(Cr(a)){const t=Object.keys(a)[0],e=a[t];w=this.chart.scales[t].getPixelForValue(e)+h}x=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===a)y=(t.left+t.right)/2-h;else if(Cr(a)){const t=Object.keys(a)[0],e=a[t];y=this.chart.scales[t].getPixelForValue(e)}x=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===s?T="top":"end"===s&&(T="bottom"));const P=this._getLabelSizes();for(g=0,v=o.length;g<v;++g){b=o[g],_=b.label;const t=r.setContext(this.getContext(g));k=this.getPixelForTick(g)+r.labelOffset,S=this._resolveTickFontOptions(g),C=S.lineHeight,A=Sr(_)?_.length:1;const e=A/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let d,h=x;if(i?(y=k,"inner"===x&&(h=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),E="top"===a?"near"===l||0!==p?-A*C+C/2:"center"===l?-P.highest.height/2-e*C+C:-P.highest.height+C/2:"near"===l||0!==p?C/2:"center"===l?P.highest.height/2-e*C:P.highest.height-A*C,u&&(E*=-1),0===p||t.showLabelBackdrop||(y+=C/2*Math.sin(p))):(w=k,E=(1-A)*C/2),t.showLabelBackdrop){const e=mo(t.backdropPadding),n=P.heights[g],a=P.widths[g];let r=E-e.top,i=0-e.left;switch(T){case"middle":r-=n/2;break;case"bottom":r-=n}switch(x){case"center":i-=a/2;break;case"right":i-=a;break;case"inner":g===v-1?i-=a:g>0&&(i-=a/2)}d={left:i,top:r,width:a+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:_,font:S,textOffset:E,options:{rotation:p,color:n,strokeColor:s,strokeWidth:c,textAlign:h,textBaseline:T,translation:[y,w],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-ii(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:a,padding:r}}=this.options,i=t+r,o=this._getLabelSizes().widest.width;let s,l;return"left"===e?a?(l=this.right+r,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l+=o)):(l=this.right-i,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l=this.left)):"right"===e?a?(l=this.left+r,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l-=o)):(l=this.left+i,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:a,width:r,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,a,r,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,i;const o=(t,e,a)=>{a.width&&a.color&&(n.save(),n.lineWidth=a.width,n.strokeStyle=a.color,n.setLineDash(a.borderDash||[]),n.lineDashOffset=a.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,i=a.length;r<i;++r){const t=a[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:a}}=this,r=n.setContext(this.getContext()),i=n.display?r.width:0;if(!i)return;const o=a.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Gi(t,this.left,i)-i/2,c=Gi(t,this.right,o)+o/2,u=d=s):(u=Gi(t,this.top,i)-i/2,d=Gi(t,this.bottom,o)+o/2,l=c=s),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Qi(e,n);const a=this.getLabelItems(t);for(const t of a){const n=t.options,a=t.font;io(e,t.label,0,t.textOffset,a,n)}n&&to(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:a}}=this;if(!n.display)return;const r=go(n.font),i=mo(n.padding),o=n.align;let s=r.lineHeight/2;"bottom"===e||"center"===e||Cr(e)?(s+=i.bottom,Sr(n.text)&&(s+=r.lineHeight*(n.text.length-1))):s+=i.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,a){const{top:r,left:i,bottom:o,right:s,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,f,p=0;const m=o-r,g=s-i;if(t.isHorizontal()){if(h=Si(a,i,s),Cr(n)){const t=Object.keys(n)[0],a=n[t];f=u[t].getPixelForValue(a)+m-e}else f="center"===n?(c.bottom+c.top)/2+m-e:Ol(t,n,e);d=s-i}else{if(Cr(n)){const t=Object.keys(n)[0],a=n[t];h=u[t].getPixelForValue(a)-g+e}else h="center"===n?(c.left+c.right)/2-g+e:Ol(t,n,e);f=Si(a,o,r),p="left"===n?-Xr:Xr}return{titleX:h,titleY:f,maxWidth:d,rotation:p}}(this,s,e,o);io(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:jl(o,e,a),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Tr(t.grid&&t.grid.z,-1),a=Tr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Bl.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",a=[];let r,i;for(r=0,i=e.length;r<i;++r){const i=e[r];i[n]!==this.id||t&&i.type!==t||a.push(i)}return a}_resolveTickFontOptions(t){return go(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class zl{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const a=this.items,r=t.id,i=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in a||(a[r]=t,function(t,e,n){const a=Dr(Object.create(null),[n?qi.get(n):{},qi.get(e),t.defaults]);qi.set(e,a),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const a=n.split("."),r=a.pop(),i=[t].concat(a).join("."),o=e[n].split("."),s=o.pop(),l=o.join(".");qi.route(i,r,l,s)}))}(e,t.defaultRoutes);t.descriptors&&qi.describe(e,t.descriptors)}(t,i,n),this.override&&qi.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,a=this.scope;n in e&&delete e[n],a&&n in qi[a]&&(delete qi[a][n],this.override&&delete zi[n])}}class Ul{constructor(){this.controllers=new zl(Ls,"datasets",!0),this.elements=new zl(Pl,"elements"),this.plugins=new zl(Object,"plugins"),this.scales=new zl(Bl,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const a=n||this._getRegistryForType(e);n||a.isForType(e)||a===this.plugins&&e.id?this._exec(t,a,e):Lr(e,(e=>{const a=n||this._getRegistryForType(e);this._exec(t,a,e)}))}))}_exec(t,e,n){const a=Ur(t);Nr(n["before"+a],[],n),e[t](n),Nr(n["after"+a],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const a=e.get(t);if(void 0===a)throw new Error('"'+t+'" is not a registered '+n+".");return a}}var Hl=new Ul;class Vl{constructor(){this._init=void 0}notify(t,e,n,a){if("beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),void 0===this._init)return;const r=a?this._descriptors(t).filter(a):this._descriptors(t),i=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),i}_notify(t,e,n,a){a=a||{};for(const r of t){const t=r.plugin;if(!1===Nr(t[n],[e,a,r.options],t)&&a.cancelable)return!1}return!0}invalidate(){kr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,a=Tr(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],a=Object.keys(Hl.plugins.items);for(let t=0;t<a.length;t++)n.push(Hl.getPlugin(a[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const a=r[t];-1===n.indexOf(a)&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==a||e?function(t,{plugins:e,localIds:n},a,r){const i=[],o=t.getContext();for(const s of e){const e=s.id,l=Wl(a[e],r);null!==l&&i.push({plugin:s,options:ql(t.config,{plugin:s,local:n[e]},l,o)})}return i}(t,r,a,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,a=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(a(e,n),t,"stop"),this._notify(a(n,e),t,"start")}}function Wl(t,e){return e||!1!==t?!0===t?{}:t:null}function ql(t,{plugin:e,local:n},a,r){const i=t.pluginScopeKeys(e),o=t.getOptionScopes(a,i);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function $l(t,e){const n=qi.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Kl(t){if("x"===t||"y"===t||"r"===t)return t}function Gl(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Yl(t,...e){if(Kl(t))return t;for(const n of e){const e=n.axis||Gl(n.position)||t.length>1&&Kl(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Xl(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Jl(t,e){const n=zi[t.type]||{scales:{}},a=e.scales||{},r=$l(t.type,e),i=Object.create(null);return Object.keys(a).forEach((e=>{const o=a[e];if(!Cr(o))return console.error(`Invalid scale configuration for scale: ${e}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=Yl(e,o,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return Xl(t,"x",n[0])||Xl(t,"y",n[0])}return{}}(e,t),qi.scales[o.type]),l=function(t,e){return t===e?"_index_":"_value_"}(s,r),c=n.scales||{};i[e]=Fr(Object.create(null),[{axis:s},o,c[s],c[l]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,o=n.indexAxis||$l(r,e),s=(zi[r]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,o),r=n[e+"AxisID"]||e;i[r]=i[r]||Object.create(null),Fr(i[r],[{axis:e},a[r],s[t]])}))})),Object.keys(i).forEach((t=>{const e=i[t];Fr(e,[qi.scales[e.type],qi.scale])})),i}function Zl(t){const e=t.options||(t.options={});e.plugins=Tr(e.plugins,{}),e.scales=Jl(t,e)}function Ql(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const tc=new Map,ec=new Set;function nc(t,e){let n=tc.get(t);return n||(n=e(),tc.set(t,n),ec.add(n)),n}const ac=(t,e,n)=>{const a=zr(e,n);void 0!==a&&t.add(a)};class rc{constructor(t){this._config=function(t){return(t=t||{}).data=Ql(t.data),Zl(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Ql(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Zl(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return nc(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return nc(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return nc(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return nc(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let a=n.get(t);return a&&!e||(a=new Map,n.set(t,a)),a}getOptionScopes(t,e,n){const{options:a,type:r}=this,i=this._cachedScopes(t,n),o=i.get(e);if(o)return o;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>ac(s,t,e)))),e.forEach((t=>ac(s,a,t))),e.forEach((t=>ac(s,zi[r]||{},t))),e.forEach((t=>ac(s,qi,t))),e.forEach((t=>ac(s,Ui,t)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),ec.has(e)&&i.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,zi[e]||{},qi.datasets[e]||{},{type:e},qi,Ui]}resolveNamedOptions(t,e,n,a=[""]){const r={$shared:!0},{resolver:i,subPrefixes:o}=ic(this._resolverCache,t,a);let s=i;if(function(t,e){const{isScriptable:n,isIndexable:a}=wo(t);for(const r of e){const e=n(r),i=a(r),o=(i||e)&&t[r];if(e&&(Vr(o)||oc(o))||i&&Sr(o))return!0}return!1}(i,e)){r.$shared=!1;s=yo(i,n=Vr(n)?n():n,this.createResolver(t,n,o))}for(const t of e)r[t]=s[t];return r}createResolver(t,e,n=[""],a){const{resolver:r}=ic(this._resolverCache,t,n);return Cr(e)?yo(r,e,void 0,a):r}}function ic(t,e,n){let a=t.get(e);a||(a=new Map,t.set(e,a));const r=n.join();let i=a.get(r);if(!i){i={resolver:_o(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},a.set(r,i)}return i}const oc=t=>Cr(t)&&Object.getOwnPropertyNames(t).some((e=>Vr(t[e])));const sc=["top","bottom","left","right","chartArea"];function lc(t,e){return"top"===t||"bottom"===t||-1===sc.indexOf(t)&&"x"===e}function cc(t,e){return function(n,a){return n[t]===a[t]?n[e]-a[e]:n[t]-a[t]}}function uc(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Nr(n&&n.onComplete,[t],e)}function dc(t){const e=t.chart,n=e.options.animation;Nr(n&&n.onProgress,[t],e)}function hc(t){return zo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const fc={},pc=t=>{const e=hc(t);return Object.values(fc).filter((t=>t.canvas===e)).pop()};function mc(t,e,n){const a=Object.keys(t);for(const r of a){const a=+r;if(a>=e){const i=t[r];delete t[r],(n>0||a>e)&&(t[a+n]=i)}}}class gc{static defaults=qi;static instances=fc;static overrides=zi;static registry=Hl;static version="4.5.1";static getChart=pc;static register(...t){Hl.add(...t),vc()}static unregister(...t){Hl.remove(...t),vc()}constructor(t,e){const n=this.config=new rc(e),a=hc(t),r=pc(a);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const i=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!zo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?fl:Tl}(a)),this.platform.updateConfig(n);const o=this.platform.acquireContext(a,i.aspectRatio),s=o&&o.canvas,l=s&&s.height,c=s&&s.width;this.id=xr(),this.ctx=o,this.canvas=s,this.width=c,this.height=l,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Vl,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...a){return e?(clearTimeout(n),n=setTimeout(t,e,a)):t.apply(this,a),e}}((t=>this.update(t)),i.resizeDelay||0),this._dataChanges=[],fc[this.id]=this,o&&s?(ms.listen(this,"complete",uc),ms.listen(this,"progress",dc),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:a,_aspectRatio:r}=this;return kr(t)?e&&r?r:a?n/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Hl}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Xo(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Yi(this.canvas,this.ctx),this}stop(){return ms.stop(this),this}resize(t,e){ms.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,a=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(a,t,e,r),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Xo(this,o,!0)&&(this.notifyPlugins("resize",{size:i}),Nr(n.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Lr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,a=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],a=Yl(t,n),r="r"===a,i="x"===a;return{options:n,dposition:r?"chartArea":i?"bottom":"left",dtype:r?"radialLinear":i?"category":"linear"}})))),Lr(r,(e=>{const r=e.options,i=r.id,o=Yl(i,r),s=Tr(r.type,e.dtype);void 0!==r.position&&lc(r.position,o)===lc(e.dposition)||(r.position=e.dposition),a[i]=!0;let l=null;if(i in n&&n[i].type===s)l=n[i];else{l=new(Hl.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(r,t)})),Lr(a,((t,e)=>{t||delete n[e]})),Lr(n,(t=>{dl.configure(this,t,t.options),dl.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(cc("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,a;for(this._removeUnreferencedMetasets(),n=0,a=e.length;n<a;n++){const a=e[n];let r=this.getDatasetMeta(n);const i=a.type||this.config.type;if(r.type&&r.type!==i&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=i,r.indexAxis=a.indexAxis||$l(i,this.options),r.order=a.order||0,r.index=n,r.label=""+a.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=Hl.getController(i),{datasetElementType:a,dataElementType:o}=qi.datasets[i];Object.assign(e,{dataElementType:Hl.getElement(o),datasetElementType:a&&Hl.getElement(a)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){Lr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!a&&-1===r.indexOf(e);e.buildOrUpdateElements(n),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=n.layout.autoPadding?i:0,this._updateLayout(i),a||Lr(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(cc("z","_idx"));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Lr(this.scales,(t=>{dl.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Wr(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:a,count:r}of e){mc(t,a,"_removeElements"===n?-r:r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),a=n(0);for(let t=1;t<e;t++)if(!Wr(a,n(t)))return;return Array.from(a).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;dl.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Lr(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,Vr(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),a={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",a)&&(n.controller._update(e),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(ms.has(this)?this.attached&&!ms.running(this)&&ms.start(this):(this.draw(),uc({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let a,r;for(a=0,r=e.length;a<r;++a){const r=e[a];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},a=fs(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(a&&Qi(e,a),t.controller.draw(),a&&to(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return Zi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,a){const r=Zs.modes[e];return"function"==typeof r?r(this,t,n,a):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let a=n.filter((t=>t&&t._dataset===e)).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(a)),a}getContext(){return this.$context||(this.$context=bo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const a=n?"show":"hide",r=this.getDatasetMeta(t),i=r.controller._resolveAnimations(void 0,a);Hr(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),i.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?a:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ms.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Yi(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete fc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,a)=>{e.addEventListener(this,n,a),t[n]=a},a=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Lr(this.options.events,(t=>n(t,a)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,a)=>{e.addEventListener(this,n,a),t[n]=a},a=(n,a)=>{t[n]&&(e.removeEventListener(this,n,a),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const o=()=>{a("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",i)};i=()=>{this.attached=!1,a("resize",r),this._stop(),this._resize(0,0),n("attach",o)},e.isAttached(this.canvas)?o():i()}unbindEvents(){Lr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Lr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const a=n?"set":"remove";let r,i,o,s;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+a+"DatasetHoverStyle"]()),o=0,s=t.length;o<s;++o){i=t[o];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[a+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Or(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const a=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),i=r(e,t),o=n?t:r(t,e);i.length&&this.updateHoverStyle(i,a.mode,!1),o.length&&a.mode&&this.updateHoverStyle(o,a.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},a=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,a))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,a),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:a=[],options:r}=this,i=e,o=this._getActiveElements(t,a,n,i),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,a){return n&&"mouseout"!==t.type?a?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,Nr(r.onHover,[t,o,this],this),s&&Nr(r.onClick,[t,o,this],this));const c=!Or(o,a);return(c||e)&&(this._active=o,this._updateHoverStyles(o,a,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,a){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,a)}}function vc(){return Lr(gc.instances,(t=>t._plugins.invalidate()))}function bc(t,e,n,a){const r=function(t){return ho(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),i=(n-e)/2,o=Math.min(i,a*e/2),s=t=>{const e=(n-Math.min(i,t))*a/2;return fi(t,0,Math.min(i,e))};return{outerStart:s(r.outerStart),outerEnd:s(r.outerEnd),innerStart:fi(r.innerStart,0,o),innerEnd:fi(r.innerEnd,0,o)}}function _c(t,e,n,a){return{x:n+t*Math.cos(e),y:a+t*Math.sin(e)}}function yc(t,e,n,a,r,i){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+a+n-c,0),h=u>0?u+a+n+c:0;let f=0;const p=r-l;if(a){const t=((u>0?u-a:0)+(d>0?d-a:0))/2;f=(p-(0!==t?p*t/(t+a):p))/2}const m=(p-Math.max(.001,p*d-n/qr)/d)/2,g=l+m+f,v=r-m-f,{outerStart:b,outerEnd:_,innerStart:y,innerEnd:w}=bc(e,h,d,v-g),x=d-b,k=d-_,S=g+b/x,C=v-_/k,A=h+y,E=h+w,T=g+y/A,P=v-w/E;if(t.beginPath(),i){const e=(S+C)/2;if(t.arc(o,s,d,S,e),t.arc(o,s,d,e,C),_>0){const e=_c(k,C,o,s);t.arc(e.x,e.y,_,C,v+Xr)}const n=_c(E,v,o,s);if(t.lineTo(n.x,n.y),w>0){const e=_c(E,P,o,s);t.arc(e.x,e.y,w,v+Xr,P+Math.PI)}const a=(v-w/h+(g+y/h))/2;if(t.arc(o,s,h,v-w/h,a,!0),t.arc(o,s,h,a,g+y/h,!0),y>0){const e=_c(A,T,o,s);t.arc(e.x,e.y,y,T+Math.PI,g-Xr)}const r=_c(x,g,o,s);if(t.lineTo(r.x,r.y),b>0){const e=_c(x,S,o,s);t.arc(e.x,e.y,b,g-Xr,S)}}else{t.moveTo(o,s);const e=Math.cos(S)*d+o,n=Math.sin(S)*d+s;t.lineTo(e,n);const a=Math.cos(C)*d+o,r=Math.sin(C)*d+s;t.lineTo(a,r)}t.closePath()}function wc(t,e,n,a,r){const{fullCircles:i,startAngle:o,circumference:s,options:l}=e,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h,borderRadius:f}=l,p="inner"===l.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=h,p?(t.lineWidth=2*c,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let m=e.endAngle;if(i){yc(t,e,n,a,m,r);for(let e=0;e<i;++e)t.stroke();isNaN(s)||(m=o+(s%$r||$r))}p&&function(t,e,n){const{startAngle:a,pixelMargin:r,x:i,y:o,outerRadius:s,innerRadius:l}=e;let c=r/s;t.beginPath(),t.arc(i,o,s,a-c,n+c),l>r?(c=r/l,t.arc(i,o,l,n+c,a-c,!0)):t.arc(i,o,r,n+Xr,a-Xr),t.closePath(),t.clip()}(t,e,m),l.selfJoin&&m-o>=qr&&0===f&&"miter"!==u&&function(t,e,n){const{startAngle:a,x:r,y:i,outerRadius:o,innerRadius:s,options:l}=e,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/o,di(a-n));if(t.beginPath(),t.arc(r,i,o-c/2,a+d/2,n-d/2),s>0){const e=Math.min(c/s,di(a-n));t.arc(r,i,s+c/2,n-e/2,a+e/2,!0)}else{const e=Math.min(c/2,o*di(a-n));if("round"===u)t.arc(r,i,e,n-qr/2,a+qr/2,!0);else if("bevel"===u){const o=2*e*e,s=-o*Math.cos(n+qr/2)+r,l=-o*Math.sin(n+qr/2)+i,c=o*Math.cos(a+qr/2)+r,u=o*Math.sin(a+qr/2)+i;t.lineTo(s,l),t.lineTo(c,u)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,m),i||(yc(t,e,n,a,m,r),t.stroke())}function xc(t,e,n=e){t.lineCap=Tr(n.borderCapStyle,e.borderCapStyle),t.setLineDash(Tr(n.borderDash,e.borderDash)),t.lineDashOffset=Tr(n.borderDashOffset,e.borderDashOffset),t.lineJoin=Tr(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Tr(n.borderWidth,e.borderWidth),t.strokeStyle=Tr(n.borderColor,e.borderColor)}function kc(t,e,n){t.lineTo(n.x,n.y)}function Sc(t,e,n={}){const a=t.length,{start:r=0,end:i=a-1}=n,{start:o,end:s}=e,l=Math.max(r,o),c=Math.min(i,s),u=r<o&&i<o||r>s&&i>s;return{count:a,start:l,loop:e.loop,ilen:c<l&&!u?a+c-l:c-l}}function Cc(t,e,n,a){const{points:r,options:i}=e,{count:o,start:s,loop:l,ilen:c}=Sc(r,n,a),u=function(t){return t.stepped?eo:t.tension||"monotone"===t.cubicInterpolationMode?no:kc}(i);let d,h,f,{move:p=!0,reverse:m}=a||{};for(d=0;d<=c;++d)h=r[(s+(m?c-d:d))%o],h.skip||(p?(t.moveTo(h.x,h.y),p=!1):u(t,f,h,m,i.stepped),f=h);return l&&(h=r[(s+(m?c:0))%o],u(t,f,h,m,i.stepped)),!!l}function Ac(t,e,n,a){const r=e.points,{count:i,start:o,ilen:s}=Sc(r,n,a),{move:l=!0,reverse:c}=a||{};let u,d,h,f,p,m,g=0,v=0;const b=t=>(o+(c?s-t:t))%i,_=()=>{f!==p&&(t.lineTo(g,p),t.lineTo(g,f),t.lineTo(g,m))};for(l&&(d=r[b(0)],t.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=r[b(u)],d.skip)continue;const e=d.x,n=d.y,a=0|e;a===h?(n<f?f=n:n>p&&(p=n),g=(v*g+e)/++v):(_(),t.lineTo(e,n),h=a,v=0,f=p=n),m=n}_()}function Ec(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Ac:Cc}const Tc="function"==typeof Path2D;function Pc(t,e,n,a){Tc&&!e.options.segment?function(t,e,n,a){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,a)&&r.closePath()),xc(t,e.options),t.stroke(r)}(t,e,n,a):function(t,e,n,a){const{segments:r,options:i}=e,o=Ec(e);for(const s of r)xc(t,i,s.style),t.beginPath(),o(t,e,s,{start:n,end:n+a-1})&&t.closePath(),t.stroke()}(t,e,n,a)}class Nc extends Pl{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const a=n.spanGaps?this._loop:this._fullLoop;Bo(this._points,n,t,a,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,a=t.options.spanGaps,r=n.length;if(!r)return[];const i=!!t._loop,{start:o,end:s}=function(t,e,n,a){let r=0,i=e-1;if(n&&!a)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(i+=r);i>r&&t[i%e].skip;)i--;return i%=e,{start:r,end:i}}(n,r,i,a);return cs(t,!0===a?[{start:o,end:s,loop:i}]:function(t,e,n,a){const r=t.length,i=[];let o,s=e,l=t[e];for(o=e+1;o<=n;++o){const n=t[o%r];n.skip||n.stop?l.skip||(a=!1,i.push({start:e%r,end:(o-1)%r,loop:a}),e=s=n.stop?o:null):(s=o,l.skip&&(e=o)),l=n}return null!==s&&i.push({start:e%r,end:s%r,loop:a}),i}(n,o,s<o?s+r:s,!!t._fullLoop&&0===o&&s===r-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,a=t[e],r=this.points,i=ls(this,{property:e,start:a,end:a});if(!i.length)return;const o=[],s=function(t){return t.stepped?ts:t.tension||"monotone"===t.cubicInterpolationMode?es:Qo}(n);let l,c;for(l=0,c=i.length;l<c;++l){const{start:c,end:u}=i[l],d=r[c],h=r[u];if(d===h){o.push(d);continue}const f=s(d,h,Math.abs((a-d[e])/(h[e]-d[e])),n.stepped);f[e]=t[e],o.push(f)}return 1===o.length?o[0]:o}pathSegment(t,e,n){return Ec(this)(t,this,e,n)}path(t,e,n){const a=this.segments,r=Ec(this);let i=this._loop;e=e||0,n=n||this.points.length-e;for(const o of a)i&=r(t,this,o,{start:e,end:e+n-1});return!!i}draw(t,e,n,a){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),Pc(t,this,n,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Lc(t,e,n,a){const r=t.options,{[n]:i}=t.getProps([n],a);return Math.abs(e-i)<r.radius+r.hitRadius}function Oc(t,e){const{x:n,y:a,base:r,width:i,height:o}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,d;return t.horizontal?(d=o/2,s=Math.min(n,r),l=Math.max(n,r),c=a-d,u=a+d):(d=i/2,s=n-d,l=n+d,c=Math.min(a,r),u=Math.max(a,r)),{left:s,top:c,right:l,bottom:u}}function Mc(t,e,n,a){return t?0:fi(e,n,a)}function Rc(t){const e=Oc(t),n=e.right-e.left,a=e.bottom-e.top,r=function(t,e,n){const a=t.options.borderWidth,r=t.borderSkipped,i=fo(a);return{t:Mc(r.top,i.top,0,n),r:Mc(r.right,i.right,0,e),b:Mc(r.bottom,i.bottom,0,n),l:Mc(r.left,i.left,0,e)}}(t,n/2,a/2),i=function(t,e,n){const{enableBorderRadius:a}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,i=po(r),o=Math.min(e,n),s=t.borderSkipped,l=a||Cr(r);return{topLeft:Mc(!l||s.top||s.left,i.topLeft,0,o),topRight:Mc(!l||s.top||s.right,i.topRight,0,o),bottomLeft:Mc(!l||s.bottom||s.left,i.bottomLeft,0,o),bottomRight:Mc(!l||s.bottom||s.right,i.bottomRight,0,o)}}(t,n/2,a/2);return{outer:{x:e.left,y:e.top,w:n,h:a,radius:i},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:a-r.t-r.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,i.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(r.b,r.r))}}}}function Ic(t,e,n,a){const r=null===e,i=null===n,o=t&&!(r&&i)&&Oc(t,a);return o&&(r||pi(e,o.left,o.right))&&(i||pi(n,o.top,o.bottom))}function Dc(t,e){t.rect(e.x,e.y,e.w,e.h)}function Fc(t,e,n={}){const a=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-a,o=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+a,y:t.y+r,w:t.w+i,h:t.h+o,radius:t.radius}}var jc=Object.freeze({__proto__:null,ArcElement:class extends Pl{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const a=this.getProps(["x","y"],n),{angle:r,distance:i}=li(a,{x:t,y:e}),{startAngle:o,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=Tr(u,s-o),f=hi(r,o,s)&&o!==s,p=h>=$r||f,m=pi(i,l+d,c+d);return p&&m}getCenterPoint(t){const{x:e,y:n,startAngle:a,endAngle:r,innerRadius:i,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,c=(a+r)/2,u=(i+o+l+s)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,a=(e.offset||0)/4,r=(e.spacing||0)/2,i=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>$r?Math.floor(n/$r):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*a,Math.sin(o)*a);const s=a*(1-Math.sin(Math.min(qr,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,a,r){const{fullCircles:i,startAngle:o,circumference:s}=e;let l=e.endAngle;if(i){yc(t,e,n,a,l,r);for(let e=0;e<i;++e)t.fill();isNaN(s)||(l=o+(s%$r||$r))}yc(t,e,n,a,l,r),t.fill()}(t,this,s,r,i),wc(t,this,s,r,i),t.restore()}},BarElement:class extends Pl{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:a}}=this,{inner:r,outer:i}=Rc(this),o=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?oo:Dc;var s;t.save(),i.w===r.w&&i.h===r.h||(t.beginPath(),o(t,Fc(i,e,r)),t.clip(),o(t,Fc(r,-e,i)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),o(t,Fc(r,e)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,e,n){return Ic(this,t,e,n)}inXRange(t,e){return Ic(this,t,null,e)}inYRange(t,e){return Ic(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:a,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+a)/2:e,y:r?n:(n+a)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:Nc,PointElement:class extends Pl{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const a=this.options,{x:r,y:i}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(e-i,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(t,e){return Lc(this,t,"x",e)}inYRange(t,e){return Lc(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!Zi(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Xi(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});const Bc=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],zc=Bc.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Uc(t){return Bc[t%Bc.length]}function Hc(t){return zc[t%zc.length]}function Vc(t){let e=0;return(n,a)=>{const r=t.getDatasetMeta(a).controller;r instanceof zs?e=function(t,e){return t.backgroundColor=t.data.map((()=>Uc(e++))),e}(n,e):r instanceof Us?e=function(t,e){return t.backgroundColor=t.data.map((()=>Hc(e++))),e}(n,e):r&&(e=function(t,e){return t.borderColor=Uc(e),t.backgroundColor=Hc(e),++e}(n,e))}}function Wc(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var qc={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:a},options:r}=t.config,{elements:i}=r,o=Wc(a)||(s=r)&&(s.borderColor||s.backgroundColor)||i&&Wc(i)||"rgba(0,0,0,0.1)"!==qi.borderColor||"rgba(0,0,0,0.1)"!==qi.backgroundColor;var s;if(!n.forceOverride&&o)return;const l=Vc(t);a.forEach(l)}};function $c(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Kc(t){t.data.datasets.forEach((t=>{$c(t)}))}var Gc={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void Kc(t);const a=t.width;t.data.datasets.forEach(((e,r)=>{const{_data:i,indexAxis:o}=e,s=t.getDatasetMeta(r),l=i||e.data;if("y"===vo([o,t.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=t.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:u,count:d}=function(t,e){const n=e.length;let a,r=0;const{iScale:i}=t,{min:o,max:s,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(r=fi(gi(e,i.axis,o).lo,0,n-1)),a=c?fi(gi(e,i.axis,s).hi+1,r,n)-r:n-r,{start:r,count:a}}(s,l);if(d<=(n.threshold||4*a))return void $c(e);let h;switch(kr(i)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":h=function(t,e,n,a,r){const i=r.samples||a;if(i>=n)return t.slice(e,e+n);const o=[],s=(n-2)/(i-2);let l=0;const c=e+n-1;let u,d,h,f,p,m=e;for(o[l++]=t[m],u=0;u<i-2;u++){let a,r=0,i=0;const c=Math.floor((u+1)*s)+1+e,g=Math.min(Math.floor((u+2)*s)+1,n)+e,v=g-c;for(a=c;a<g;a++)r+=t[a].x,i+=t[a].y;r/=v,i/=v;const b=Math.floor(u*s)+1+e,_=Math.min(Math.floor((u+1)*s)+1,n)+e,{x:y,y:w}=t[m];for(h=f=-1,a=b;a<_;a++)f=.5*Math.abs((y-r)*(t[a].y-w)-(y-t[a].x)*(i-w)),f>h&&(h=f,d=t[a],p=a);o[l++]=d,m=p}return o[l++]=t[c],o}(l,u,d,a,n);break;case"min-max":h=function(t,e,n,a){let r,i,o,s,l,c,u,d,h,f,p=0,m=0;const g=[],v=e+n-1,b=t[e].x,_=t[v].x-b;for(r=e;r<e+n;++r){i=t[r],o=(i.x-b)/_*a,s=i.y;const e=0|o;if(e===l)s<h?(h=s,c=r):s>f&&(f=s,u=r),p=(m*p+i.x)/++m;else{const n=r-1;if(!kr(c)&&!kr(u)){const e=Math.min(c,u),a=Math.max(c,u);e!==d&&e!==n&&g.push({...t[e],x:p}),a!==d&&a!==n&&g.push({...t[a],x:p})}r>0&&n!==d&&g.push(t[n]),g.push(i),l=e,m=0,h=f=s,c=u=d=r}}return g}(l,u,d,a);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=h}))},destroy(t){Kc(t)}};function Yc(t,e,n,a){if(a)return;let r=e[t],i=n[t];return"angle"===t&&(r=di(r),i=di(i)),{property:t,start:r,end:i}}function Xc(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Jc(t,e,n,a){return t&&e?a(t[n],e[n]):t?t[n]:e?e[n]:0}function Zc(t,e){let n=[],a=!1;return Sr(t)?(a=!0,n=t):n=function(t,e){const{x:n=null,y:a=null}=t||{},r=e.points,i=[];return e.segments.forEach((({start:t,end:e})=>{e=Xc(t,e,r);const o=r[t],s=r[e];null!==a?(i.push({x:o.x,y:a}),i.push({x:s.x,y:a})):null!==n&&(i.push({x:n,y:o.y}),i.push({x:n,y:s.y}))})),i}(t,e),n.length?new Nc({points:n,options:{tension:0},_loop:a,_fullLoop:a}):null}function Qc(t){return t&&!1!==t.fill}function tu(t,e,n){let a=t[e].fill;const r=[e];let i;if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!Ar(a))return a;if(i=t[a],!i)return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}function eu(t,e,n){const a=function(t){const e=t.options,n=e.fill;let a=Tr(n&&n.target,n);void 0===a&&(a=!!e.backgroundColor);if(!1===a||null===a)return!1;if(!0===a)return"origin";return a}(t);if(Cr(a))return!isNaN(a.value)&&a;let r=parseFloat(a);return Ar(r)&&Math.floor(r)===r?function(t,e,n,a){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=a)return!1;return n}(a[0],e,r,n):["origin","start","end","stack","shape"].indexOf(a)>=0&&a}function nu(t,e,n){const a=[];for(let r=0;r<n.length;r++){const i=n[r],{first:o,last:s,point:l}=au(i,e,"x");if(!(!l||o&&s))if(o)a.unshift(l);else if(t.push(l),!s)break}t.push(...a)}function au(t,e,n){const a=t.interpolate(e,n);if(!a)return{};const r=a[n],i=t.segments,o=t.points;let s=!1,l=!1;for(let t=0;t<i.length;t++){const e=i[t],a=o[e.start][n],c=o[e.end][n];if(pi(r,a,c)){s=r===a,l=r===c;break}}return{first:s,last:l,point:a}}class ru{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:a,y:r,radius:i}=this;return e=e||{start:0,end:$r},t.arc(a,r,i,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:a}=this,r=t.angle;return{x:e+Math.cos(r)*a,y:n+Math.sin(r)*a,angle:r}}}function iu(t){const{chart:e,fill:n,line:a}=t;if(Ar(n))return function(t,e){const n=t.getDatasetMeta(e),a=n&&t.isDatasetVisible(e);return a?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:a}=t,r=[],i=a.segments,o=a.points,s=function(t,e){const n=[],a=t.getMatchingVisibleMetas("line");for(let t=0;t<a.length;t++){const r=a[t];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}(e,n);s.push(Zc({x:null,y:e.bottom},a));for(let t=0;t<i.length;t++){const e=i[t];for(let t=e.start;t<=e.end;t++)nu(r,o[t],s)}return new Nc({points:r,options:{}})}(t);if("shape"===n)return!0;const r=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,a=e.options,r=e.getLabels().length,i=a.reverse?e.max:e.min,o=function(t,e,n){let a;return a="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:Cr(t)?t.value:e.getBaseValue(),a}(n,e,i),s=[];if(a.grid.circular){const t=e.getPointPositionForValue(0,i);return new ru({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(o)})}for(let t=0;t<r;++t)s.push(e.getPointPositionForValue(t,o));return s}(t);return function(t){const{scale:e={},fill:n}=t,a=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:Cr(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(Ar(a)){const t=e.isHorizontal();return{x:t?a:null,y:t?null:a}}return null}(t)}(t);return r instanceof ru?r:Zc(r,a)}function ou(t,e,n){const a=iu(e),{chart:r,index:i,line:o,scale:s,axis:l}=e,c=o.options,u=c.fill,d=c.backgroundColor,{above:h=d,below:f=d}=u||{},p=r.getDatasetMeta(i),m=fs(r,p);a&&o.points.length&&(Qi(t,n),function(t,e){const{line:n,target:a,above:r,below:i,area:o,scale:s,clip:l}=e,c=n._loop?"angle":e.axis;t.save();let u=i;i!==r&&("x"===c?(su(t,a,o.top),cu(t,{line:n,target:a,color:r,scale:s,property:c,clip:l}),t.restore(),t.save(),su(t,a,o.bottom)):"y"===c&&(lu(t,a,o.left),cu(t,{line:n,target:a,color:i,scale:s,property:c,clip:l}),t.restore(),t.save(),lu(t,a,o.right),u=r));cu(t,{line:n,target:a,color:u,scale:s,property:c,clip:l}),t.restore()}(t,{line:o,target:a,above:h,below:f,area:n,scale:s,axis:l,clip:m}),to(t))}function su(t,e,n){const{segments:a,points:r}=e;let i=!0,o=!1;t.beginPath();for(const s of a){const{start:a,end:l}=s,c=r[a],u=r[Xc(a,l,r)];i?(t.moveTo(c.x,c.y),i=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),o=!!e.pathSegment(t,s,{move:o}),o?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function lu(t,e,n){const{segments:a,points:r}=e;let i=!0,o=!1;t.beginPath();for(const s of a){const{start:a,end:l}=s,c=r[a],u=r[Xc(a,l,r)];i?(t.moveTo(c.x,c.y),i=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),o=!!e.pathSegment(t,s,{move:o}),o?t.closePath():t.lineTo(n,u.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function cu(t,e){const{line:n,target:a,property:r,color:i,scale:o,clip:s}=e,l=function(t,e,n){const a=t.segments,r=t.points,i=e.points,o=[];for(const t of a){let{start:a,end:s}=t;s=Xc(a,s,r);const l=Yc(n,r[a],r[s],t.loop);if(!e.segments){o.push({source:t,target:l,start:r[a],end:r[s]});continue}const c=ls(e,l);for(const e of c){const a=Yc(n,i[e.start],i[e.end],e.loop),s=ss(t,r,a);for(const t of s)o.push({source:t,target:e,start:{[n]:Jc(l,a,"start",Math.max)},end:{[n]:Jc(l,a,"end",Math.min)}})}}return o}(n,a,r);for(const{source:e,target:c,start:u,end:d}of l){const{style:{backgroundColor:l=i}={}}=e,h=!0!==a;t.save(),t.fillStyle=l,uu(t,o,s,h&&Yc(r,u,d)),t.beginPath();const f=!!n.pathSegment(t,e);let p;if(h){f?t.closePath():du(t,a,d,r);const e=!!a.pathSegment(t,c,{move:f,reverse:!0});p=f&&e,p||du(t,a,u,r)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function uu(t,e,n,a){const r=e.chart.chartArea,{property:i,start:o,end:s}=a||{};if("x"===i||"y"===i){let e,a,l,c;"x"===i?(e=o,a=r.top,l=s,c=r.bottom):(e=r.left,a=o,l=r.right,c=s),t.beginPath(),n&&(e=Math.max(e,n.left),l=Math.min(l,n.right),a=Math.max(a,n.top),c=Math.min(c,n.bottom)),t.rect(e,a,l-e,c-a),t.clip()}}function du(t,e,n,a){const r=e.interpolate(n,a);r&&t.lineTo(r.x,r.y)}var hu={id:"filler",afterDatasetsUpdate(t,e,n){const a=(t.data.datasets||[]).length,r=[];let i,o,s,l;for(o=0;o<a;++o)i=t.getDatasetMeta(o),s=i.dataset,l=null,s&&s.options&&s instanceof Nc&&(l={visible:t.isDatasetVisible(o),index:o,fill:eu(s,o,a),chart:t,axis:i.controller.options.indexAxis,scale:i.vScale,line:s}),i.$filler=l,r.push(l);for(o=0;o<a;++o)l=r[o],l&&!1!==l.fill&&(l.fill=tu(r,o,n.propagate))},beforeDraw(t,e,n){const a="beforeDraw"===n.drawTime,r=t.getSortedVisibleDatasetMetas(),i=t.chartArea;for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;n&&(n.line.updateControlPoints(i,n.axis),a&&n.fill&&ou(t.ctx,n,i))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const a=t.getSortedVisibleDatasetMetas();for(let e=a.length-1;e>=0;--e){const n=a[e].$filler;Qc(n)&&ou(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const a=e.meta.$filler;Qc(a)&&"beforeDatasetDraw"===n.drawTime&&ou(t.ctx,a,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const fu=(t,e)=>{let{boxHeight:n=e,boxWidth:a=e}=t;return t.usePointStyle&&(n=Math.min(n,e),a=t.pointStyleWidth||Math.min(a,e)),{boxWidth:a,boxHeight:n,itemHeight:Math.max(e,n)}};class pu extends Pl{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=Nr(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,a=go(n.font),r=a.size,i=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=fu(n,r);let l,c;e.font=a.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,r,o,s)+10):(c=this.maxHeight,l=this._fitCols(i,a,o,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,a){const{ctx:r,maxWidth:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=a+o;let u=t;r.textAlign="left",r.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((t,f)=>{const p=n+e/2+r.measureText(t.text).width;(0===f||l[l.length-1]+p+2*o>i)&&(u+=c,l[l.length-(f>0?0:1)]=0,h+=c,d++),s[f]={left:0,top:h,row:d,width:p,height:a},l[l.length-1]+=p+o})),u}_fitCols(t,e,n,a){const{ctx:r,maxHeight:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-t;let u=o,d=0,h=0,f=0,p=0;return this.legendItems.forEach(((t,i)=>{const{itemWidth:m,itemHeight:g}=function(t,e,n,a,r){const i=function(t,e,n,a){let r=t.text;r&&"string"!=typeof r&&(r=r.reduce(((t,e)=>t.length>e.length?t:e)));return e+n.size/2+a.measureText(r).width}(a,t,e,n),o=function(t,e,n){let a=t;"string"!=typeof e.text&&(a=mu(e,n));return a}(r,a,e.lineHeight);return{itemWidth:i,itemHeight:o}}(n,e,r,t,a);i>0&&h+g+2*o>c&&(u+=d+o,l.push({width:d,height:h}),f+=d+o,p++,d=h=0),s[i]={left:f,top:h,col:p,width:m,height:g},d=Math.max(d,m),h+=g+o})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:a},rtl:r}}=this,i=ns(r,this.left,this.width);if(this.isHorizontal()){let r=0,o=Si(n,this.left+a,this.right-this.lineWidths[r]);for(const s of e)r!==s.row&&(r=s.row,o=Si(n,this.left+a,this.right-this.lineWidths[r])),s.top+=this.top+t+a,s.left=i.leftForLtr(i.x(o),s.width),o+=s.width+a}else{let r=0,o=Si(n,this.top+t+a,this.bottom-this.columnSizes[r].height);for(const s of e)s.col!==r&&(r=s.col,o=Si(n,this.top+t+a,this.bottom-this.columnSizes[r].height)),s.top=o,s.left+=this.left+a,s.left=i.leftForLtr(i.x(s.left),s.width),o+=s.height+a}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Qi(t,this),this._draw(),to(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:a}=this,{align:r,labels:i}=t,o=qi.color,s=ns(t.rtl,this.left,this.width),l=go(i.font),{padding:c}=i,u=l.size,d=u/2;let h;this.drawTitle(),a.textAlign=s.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=l.string;const{boxWidth:f,boxHeight:p,itemHeight:m}=fu(i,u),g=this.isHorizontal(),v=this._computeTitleHeight();h=g?{x:Si(r,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:Si(r,this.top+v+c,this.bottom-e[0].height),line:0},as(this.ctx,t.textDirection);const b=m+c;this.legendItems.forEach(((_,y)=>{a.strokeStyle=_.fontColor,a.fillStyle=_.fontColor;const w=a.measureText(_.text).width,x=s.textAlign(_.textAlign||(_.textAlign=i.textAlign)),k=f+d+w;let S=h.x,C=h.y;s.setWidth(this.width),g?y>0&&S+k+c>this.right&&(C=h.y+=b,h.line++,S=h.x=Si(r,this.left+c,this.right-n[h.line])):y>0&&C+b>this.bottom&&(S=h.x=S+e[h.line].width+c,h.line++,C=h.y=Si(r,this.top+v+c,this.bottom-e[h.line].height));if(function(t,e,n){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;a.save();const r=Tr(n.lineWidth,1);if(a.fillStyle=Tr(n.fillStyle,o),a.lineCap=Tr(n.lineCap,"butt"),a.lineDashOffset=Tr(n.lineDashOffset,0),a.lineJoin=Tr(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=Tr(n.strokeStyle,o),a.setLineDash(Tr(n.lineDash,[])),i.usePointStyle){const o={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},l=s.xPlus(t,f/2);Ji(a,o,l,e+d,i.pointStyleWidth&&f)}else{const i=e+Math.max((u-p)/2,0),o=s.leftForLtr(t,f),l=po(n.borderRadius);a.beginPath(),Object.values(l).some((t=>0!==t))?oo(a,{x:o,y:i,w:f,h:p,radius:l}):a.rect(o,i,f,p),a.fill(),0!==r&&a.stroke()}a.restore()}(s.x(S),C,_),S=((t,e,n,a)=>t===(a?"left":"right")?n:"center"===t?(e+n)/2:e)(x,S+f+d,g?S+k:this.right,t.rtl),function(t,e,n){io(a,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),C,_),g)h.x+=k+c;else if("string"!=typeof _.text){const t=l.lineHeight;h.y+=mu(_,t)+c}else h.y+=b})),rs(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=go(e.font),a=mo(e.padding);if(!e.display)return;const r=ns(t.rtl,this.left,this.width),i=this.ctx,o=e.position,s=n.size/2,l=a.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=Si(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+Si(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=Si(o,u,u+d);i.textAlign=r.textAlign(ki(o)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=n.string,io(i,e.text,h,c,n)}_computeTitleHeight(){const t=this.options.title,e=go(t.font),n=mo(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,a,r;if(pi(t,this.left,this.right)&&pi(e,this.top,this.bottom))for(r=this.legendHitBoxes,n=0;n<r.length;++n)if(a=r[n],pi(t,a.left,a.left+a.width)&&pi(e,a.top,a.top+a.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const i=this._hoveredItem,o=(r=n,null!==(a=i)&&null!==r&&a.datasetIndex===r.datasetIndex&&a.index===r.index);i&&!o&&Nr(e.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!o&&Nr(e.onHover,[t,n,this],this)}else n&&Nr(e.onClick,[t,n,this],this);var a,r}}function mu(t,e){return e*(t.text?t.text.length:0)}var gu={id:"legend",_element:pu,start(t,e,n){const a=t.legend=new pu({ctx:t.ctx,options:n,chart:t});dl.configure(t,a,n),dl.addBox(t,a)},stop(t){dl.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const a=t.legend;dl.configure(t,a,n),a.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const a=e.datasetIndex,r=n.chart;r.isDatasetVisible(a)?(r.hide(a),e.hidden=!0):(r.show(a),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:a,textAlign:r,color:i,useBorderRadius:o,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(n?0:void 0),c=mo(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:a||l.pointStyle,rotation:l.rotation,textAlign:r||l.textAlign,borderRadius:o&&(s||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class vu extends Pl{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const a=Sr(n.text)?n.text.length:1;this._padding=mo(n.padding);const r=a*go(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:a,right:r,options:i}=this,o=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=Si(o,n,r),c=e+t,s=r-n):("left"===i.position?(l=n+t,c=Si(o,a,e),u=-.5*qr):(l=r-t,c=Si(o,e,a),u=.5*qr),s=a-e),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=go(e.font),a=n.lineHeight/2+this._padding.top,{titleX:r,titleY:i,maxWidth:o,rotation:s}=this._drawArgs(a);io(t,e.text,0,0,n,{color:e.color,maxWidth:o,rotation:s,textAlign:ki(e.align),textBaseline:"middle",translation:[r,i]})}}var bu={id:"title",_element:vu,start(t,e,n){!function(t,e){const n=new vu({ctx:t.ctx,options:e,chart:t});dl.configure(t,n,e),dl.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;dl.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const a=t.titleBlock;dl.configure(t,a,n),a.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const _u=new WeakMap;var yu={id:"subtitle",start(t,e,n){const a=new vu({ctx:t.ctx,options:n,chart:t});dl.configure(t,a,n),dl.addBox(t,a),_u.set(t,a)},stop(t){dl.removeBox(t,_u.get(t)),_u.delete(t)},beforeUpdate(t,e,n){const a=_u.get(t);dl.configure(t,a,n),a.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const wu={average(t){if(!t.length)return!1;let e,n,a=new Set,r=0,i=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();a.add(t.x),r+=t.y,++i}}if(0===i||0===a.size)return!1;return{x:[...a].reduce(((t,e)=>t+e))/a.size,y:r/i}},nearest(t,e){if(!t.length)return!1;let n,a,r,i=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,a=t.length;n<a;++n){const a=t[n].element;if(a&&a.hasValue()){const t=ci(e,a.getCenterPoint());t<s&&(s=t,r=a)}}if(r){const t=r.tooltipPosition();i=t.x,o=t.y}return{x:i,y:o}}};function xu(t,e){return e&&(Sr(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ku(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Su(t,e){const{element:n,datasetIndex:a,index:r}=e,i=t.getDatasetMeta(a).controller,{label:o,value:s}=i.getLabelAndValue(r);return{chart:t,label:o,parsed:i.getParsed(r),raw:t.data.datasets[a].data[r],formattedValue:s,dataset:i.getDataset(),dataIndex:r,datasetIndex:a,element:n}}function Cu(t,e){const n=t.chart.ctx,{body:a,footer:r,title:i}=t,{boxWidth:o,boxHeight:s}=e,l=go(e.bodyFont),c=go(e.titleFont),u=go(e.footerFont),d=i.length,h=r.length,f=a.length,p=mo(e.padding);let m=p.height,g=0,v=a.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){m+=f*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-f)*l.lineHeight+(v-1)*e.bodySpacing}h&&(m+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let b=0;const _=function(t){g=Math.max(g,n.measureText(t).width+b)};return n.save(),n.font=c.string,Lr(t.title,_),n.font=l.string,Lr(t.beforeBody.concat(t.afterBody),_),b=e.displayColors?o+2+e.boxPadding:0,Lr(a,(t=>{Lr(t.before,_),Lr(t.lines,_),Lr(t.after,_)})),b=0,n.font=u.string,Lr(t.footer,_),n.restore(),g+=p.width,{width:g,height:m}}function Au(t,e,n,a){const{x:r,width:i}=n,{width:o,chartArea:{left:s,right:l}}=t;let c="center";return"center"===a?c=r<=(s+l)/2?"left":"right":r<=i/2?c="left":r>=o-i/2&&(c="right"),function(t,e,n,a){const{x:r,width:i}=a,o=n.caretSize+n.caretPadding;return"left"===t&&r+i+o>e.width||"right"===t&&r-i-o<0||void 0}(c,t,e,n)&&(c="center"),c}function Eu(t,e,n){const a=n.yAlign||e.yAlign||function(t,e){const{y:n,height:a}=e;return n<a/2?"top":n>t.height-a/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Au(t,e,n,a),yAlign:a}}function Tu(t,e,n,a){const{caretSize:r,caretPadding:i,cornerRadius:o}=t,{xAlign:s,yAlign:l}=n,c=r+i,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=po(o);let p=function(t,e){let{x:n,width:a}=t;return"right"===e?n-=a:"center"===e&&(n-=a/2),n}(e,s);const m=function(t,e,n){let{y:a,height:r}=t;return"top"===e?a+=n:a-="bottom"===e?r+n:r/2,a}(e,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,h)+r:"right"===s&&(p+=Math.max(d,f)+r),{x:fi(p,0,a.width-e.width),y:fi(m,0,a.height-e.height)}}function Pu(t,e,n){const a=mo(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-a.right:t.x+a.left}function Nu(t){return xu([],ku(t))}function Lu(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Ou={beforeTitle:wr,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,a=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(a>0&&e.dataIndex<a)return n[e.dataIndex]}return""},afterTitle:wr,beforeBody:wr,beforeLabel:wr,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return kr(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:wr,afterBody:wr,beforeFooter:wr,footer:wr,afterFooter:wr};function Mu(t,e,n,a){const r=t[e].call(n,a);return void 0===r?Ou[e].call(n,a):r}class Ru extends Pl{static positioners=wu;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),a=n.enabled&&e.options.animation&&n.animations,r=new _s(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,bo(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,a=Mu(n,"beforeTitle",this,t),r=Mu(n,"title",this,t),i=Mu(n,"afterTitle",this,t);let o=[];return o=xu(o,ku(a)),o=xu(o,ku(r)),o=xu(o,ku(i)),o}getBeforeBody(t,e){return Nu(Mu(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,a=[];return Lr(t,(t=>{const e={before:[],lines:[],after:[]},r=Lu(n,t);xu(e.before,ku(Mu(r,"beforeLabel",this,t))),xu(e.lines,Mu(r,"label",this,t)),xu(e.after,ku(Mu(r,"afterLabel",this,t))),a.push(e)})),a}getAfterBody(t,e){return Nu(Mu(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,a=Mu(n,"beforeFooter",this,t),r=Mu(n,"footer",this,t),i=Mu(n,"afterFooter",this,t);let o=[];return o=xu(o,ku(a)),o=xu(o,ku(r)),o=xu(o,ku(i)),o}_createItems(t){const e=this._active,n=this.chart.data,a=[],r=[],i=[];let o,s,l=[];for(o=0,s=e.length;o<s;++o)l.push(Su(this.chart,e[o]));return t.filter&&(l=l.filter(((e,a,r)=>t.filter(e,a,r,n)))),t.itemSort&&(l=l.sort(((e,a)=>t.itemSort(e,a,n)))),Lr(l,(e=>{const n=Lu(t.callbacks,e);a.push(Mu(n,"labelColor",this,e)),r.push(Mu(n,"labelPointStyle",this,e)),i.push(Mu(n,"labelTextColor",this,e))})),this.labelColors=a,this.labelPointStyles=r,this.labelTextColors=i,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),a=this._active;let r,i=[];if(a.length){const t=wu[n.position].call(this,a,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const e=this._size=Cu(this,n),o=Object.assign({},t,e),s=Eu(this.chart,n,o),l=Tu(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,r={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=i,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,a){const r=this.getCaretPosition(t,n,a);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:a,yAlign:r}=this,{caretSize:i,cornerRadius:o}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=po(o),{x:d,y:h}=t,{width:f,height:p}=e;let m,g,v,b,_,y;return"center"===r?(_=h+p/2,"left"===a?(m=d,g=m-i,b=_+i,y=_-i):(m=d+f,g=m+i,b=_-i,y=_+i),v=m):(g="left"===a?d+Math.max(s,c)+i:"right"===a?d+f-Math.max(l,u)-i:this.caretX,"top"===r?(b=h,_=b-i,m=g-i,v=g+i):(b=h+p,_=b+i,m=g+i,v=g-i),y=b),{x1:m,x2:g,x3:v,y1:b,y2:_,y3:y}}drawTitle(t,e,n){const a=this.title,r=a.length;let i,o,s;if(r){const l=ns(n.rtl,this.x,this.width);for(t.x=Pu(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",i=go(n.titleFont),o=n.titleSpacing,e.fillStyle=n.titleColor,e.font=i.string,s=0;s<r;++s)e.fillText(a[s],l.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+o,s+1===r&&(t.y+=n.titleMarginBottom-o)}}_drawColorBox(t,e,n,a,r){const i=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=r,c=go(r.bodyFont),u=Pu(this,"left",r),d=a.x(u),h=s<c.lineHeight?(c.lineHeight-s)/2:0,f=e.y+h;if(r.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=a.leftForLtr(d,l)+l/2,c=f+s/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,Xi(t,e,n,c),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,Xi(t,e,n,c)}else{t.lineWidth=Cr(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=a.leftForLtr(d,l),n=a.leftForLtr(a.xPlus(d,1),l-2),o=po(i.borderRadius);Object.values(o).some((t=>0!==t))?(t.beginPath(),t.fillStyle=r.multiKeyBackground,oo(t,{x:e,y:f,w:l,h:s,radius:o}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),oo(t,{x:n,y:f+1,w:l-2,h:s-2,radius:o}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(e,f,l,s),t.strokeRect(e,f,l,s),t.fillStyle=i.backgroundColor,t.fillRect(n,f+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:a}=this,{bodySpacing:r,bodyAlign:i,displayColors:o,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=go(n.bodyFont);let d=u.lineHeight,h=0;const f=ns(n.rtl,this.x,this.width),p=function(n){e.fillText(n,f.x(t.x+h),t.y+d/2),t.y+=d+r},m=f.textAlign(i);let g,v,b,_,y,w,x;for(e.textAlign=i,e.textBaseline="middle",e.font=u.string,t.x=Pu(this,m,n),e.fillStyle=n.bodyColor,Lr(this.beforeBody,p),h=o&&"right"!==m?"center"===i?l/2+c:l+2+c:0,_=0,w=a.length;_<w;++_){for(g=a[_],v=this.labelTextColors[_],e.fillStyle=v,Lr(g.before,p),b=g.lines,o&&b.length&&(this._drawColorBox(e,t,_,f,n),d=Math.max(u.lineHeight,s)),y=0,x=b.length;y<x;++y)p(b[y]),d=u.lineHeight;Lr(g.after,p)}h=0,d=u.lineHeight,Lr(this.afterBody,p),t.y-=r}drawFooter(t,e,n){const a=this.footer,r=a.length;let i,o;if(r){const s=ns(n.rtl,this.x,this.width);for(t.x=Pu(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",i=go(n.footerFont),e.fillStyle=n.footerColor,e.font=i.string,o=0;o<r;++o)e.fillText(a[o],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+n.footerSpacing}}drawBackground(t,e,n,a){const{xAlign:r,yAlign:i}=this,{x:o,y:s}=t,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=po(a.cornerRadius);e.fillStyle=a.backgroundColor,e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth,e.beginPath(),e.moveTo(o+u,s),"top"===i&&this.drawCaret(t,e,n,a),e.lineTo(o+l-d,s),e.quadraticCurveTo(o+l,s,o+l,s+d),"center"===i&&"right"===r&&this.drawCaret(t,e,n,a),e.lineTo(o+l,s+c-f),e.quadraticCurveTo(o+l,s+c,o+l-f,s+c),"bottom"===i&&this.drawCaret(t,e,n,a),e.lineTo(o+h,s+c),e.quadraticCurveTo(o,s+c,o,s+c-h),"center"===i&&"left"===r&&this.drawCaret(t,e,n,a),e.lineTo(o,s+u),e.quadraticCurveTo(o,s,o+u,s),e.closePath(),e.fill(),a.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,a=n&&n.x,r=n&&n.y;if(a||r){const n=wu[t.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Cu(this,t),o=Object.assign({},n,this._size),s=Eu(e,t,o),l=Tu(t,o,s,e);a._to===l.x&&r._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const a={width:this.width,height:this.height},r={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=mo(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(r,t,a,e),as(t,e.textDirection),r.y+=i.top,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),rs(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,a=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),r=!Or(n,a),i=this._positionChanged(a,e);(r||i)&&(this._active=a,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,r=this._active||[],i=this._getActiveElements(t,r,e,n),o=this._positionChanged(i,t),s=e||!Or(i,r)||o;return s&&(this._active=i,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,a){const r=this.options;if("mouseout"===t.type)return[];if(!a)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const i=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:n,caretY:a,options:r}=this,i=wu[r.position].call(this,t,e);return!1!==i&&(n!==i.x||a!==i.y)}}var Iu={id:"tooltip",_element:Ru,positioners:wu,afterInit(t,e,n){n&&(t.tooltip=new Ru({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ou},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Du=Object.freeze({__proto__:null,Colors:qc,Decimation:Gc,Filler:hu,Legend:gu,SubTitle:yu,Title:bu,Tooltip:Iu});function Fu(t,e,n,a){const r=t.indexOf(e);if(-1===r)return((t,e,n,a)=>("string"==typeof e?(n=t.push(e)-1,a.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,a);return r!==t.lastIndexOf(e)?n:r}function ju(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function Bu(t,e){const n=[],{bounds:a,step:r,min:i,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=r||1,f=c-1,{min:p,max:m}=e,g=!kr(i),v=!kr(o),b=!kr(l),_=(m-p)/(u+1);let y,w,x,k,S=ni((m-p)/f/h)*h;if(S<1e-14&&!g&&!v)return[{value:p},{value:m}];k=Math.ceil(m/S)-Math.floor(p/S),k>f&&(S=ni(k*S/f/h)*h),kr(s)||(y=Math.pow(10,s),S=Math.ceil(S*y)/y),"ticks"===a?(w=Math.floor(p/S)*S,x=Math.ceil(m/S)*S):(w=p,x=m),g&&v&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((o-i)/r,S/1e3)?(k=Math.round(Math.min((o-i)/S,c)),S=(o-i)/k,w=i,x=o):b?(w=g?i:w,x=v?o:x,k=l-1,S=(x-w)/k):(k=(x-w)/S,k=ei(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const C=Math.max(si(S),si(w));y=Math.pow(10,kr(s)?C:s),w=Math.round(w*y)/y,x=Math.round(x*y)/y;let A=0;for(g&&(d&&w!==i?(n.push({value:i}),w<i&&A++,ei(Math.round((w+A*S)*y)/y,i,zu(i,_,t))&&A++):w<i&&A++);A<k;++A){const t=Math.round((w+A*S)*y)/y;if(v&&t>o)break;n.push({value:t})}return v&&d&&x!==o?n.length&&ei(n[n.length-1].value,o,zu(o,_,t))?n[n.length-1].value=o:n.push({value:o}):v&&x!==o||n.push({value:x}),n}function zu(t,e,{horizontal:n,minRotation:a}){const r=ii(a),i=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/i,o)}class Uu extends Bl{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return kr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:a,max:r}=this;const i=t=>a=e?a:t,o=t=>r=n?r:t;if(t){const t=ti(a),e=ti(r);t<0&&e<0?o(0):t>0&&e>0&&i(0)}if(a===r){let e=0===r?1:Math.abs(.05*r);o(r+e),t||i(a-e)}this.min=a,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:a}=t;return a?(e=Math.ceil(this.max/a)-Math.floor(this.min/a)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${a} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const a=Bu({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&ri(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const a=(n-e)/Math.max(t.length-1,1)/2;e-=a,n+=a}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Fi(t,this.chart.options.locale,this.options.ticks.format)}}class Hu extends Uu{static id="linear";static defaults={ticks:{callback:Bi.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ar(t)?t:0,this.max=Ar(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=ii(this.options.ticks.minRotation),a=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/a))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const Vu=t=>Math.floor(Qr(t)),Wu=(t,e)=>Math.pow(10,Vu(t)+e);function qu(t){return 1===t/Math.pow(10,Vu(t))}function $u(t,e,n){const a=Math.pow(10,n),r=Math.floor(t/a);return Math.ceil(e/a)-r}function Ku(t,{min:e,max:n}){e=Er(t.min,e);const a=[],r=Vu(e);let i=function(t,e){let n=Vu(e-t);for(;$u(t,e,n)>10;)n++;for(;$u(t,e,n)<10;)n--;return Math.min(n,Vu(t))}(e,n),o=i<0?Math.pow(10,Math.abs(i)):1;const s=Math.pow(10,i),l=r>i?Math.pow(10,r):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,i)),h=Er(t.min,Math.round((l+u+d*Math.pow(10,i))*o)/o);for(;h<n;)a.push({value:h,major:qu(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,o=i>=0?1:o),h=Math.round((l+u+d*Math.pow(10,i))*o)/o;const f=Er(t.max,h);return a.push({value:f,major:qu(f),significand:d}),a}class Gu extends Bl{static id="logarithmic";static defaults={ticks:{callback:Bi.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Uu.prototype.parse.apply(this,[t,e]);if(0!==n)return Ar(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Ar(t)?Math.max(0,t):null,this.max=Ar(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ar(this._userMin)&&(this.min=t===Wu(this.min,0)?Wu(this.min,-1):Wu(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,a=this.max;const r=e=>n=t?n:e,i=t=>a=e?a:t;n===a&&(n<=0?(r(1),i(10)):(r(Wu(n,-1)),i(Wu(a,1)))),n<=0&&r(Wu(a,-1)),a<=0&&i(Wu(n,1)),this.min=n,this.max=a}buildTicks(){const t=this.options,e=Ku({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&ri(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Fi(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Qr(t),this._valueRange=Qr(this.max)-Qr(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Qr(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Yu(t){const e=t.ticks;if(e.display&&t.display){const t=mo(e.backdropPadding);return Tr(e.font&&e.font.size,qi.font.size)+t.height}return 0}function Xu(t,e,n,a,r){return t===a||t===r?{start:e-n/2,end:e+n/2}:t<a||t>r?{start:e-n,end:e}:{start:e,end:e+n}}function Ju(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),a=[],r=[],i=t._pointLabels.length,o=t.options.pointLabels,s=o.centerPointLabels?qr/i:0;for(let d=0;d<i;d++){const i=o.setContext(t.getPointLabelContext(d));r[d]=i.padding;const h=t.getPointPosition(d,t.drawingArea+r[d],s),f=go(i.font),p=(l=t.ctx,c=f,u=Sr(u=t._pointLabels[d])?u:[u],{w:Ki(l,c.string,u),h:u.length*c.lineHeight});a[d]=p;const m=di(t.getIndexAngle(d)+s),g=Math.round(oi(m));Zu(n,e,m,Xu(g,h.x,p.w,0,180),Xu(g,h.y,p.h,90,270))}var l,c,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const a=[],r=t._pointLabels.length,i=t.options,{centerPointLabels:o,display:s}=i.pointLabels,l={extra:Yu(i)/2,additionalAngle:o?qr/r:0};let c;for(let i=0;i<r;i++){l.padding=n[i],l.size=e[i];const r=Qu(t,i,l);a.push(r),"auto"===s&&(r.visible=td(r,c),r.visible&&(c=r))}return a}(t,a,r)}function Zu(t,e,n,a,r){const i=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;a.start<e.l?(s=(e.l-a.start)/i,t.l=Math.min(t.l,e.l-s)):a.end>e.r&&(s=(a.end-e.r)/i,t.r=Math.max(t.r,e.r+s)),r.start<e.t?(l=(e.t-r.start)/o,t.t=Math.min(t.t,e.t-l)):r.end>e.b&&(l=(r.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function Qu(t,e,n){const a=t.drawingArea,{extra:r,additionalAngle:i,padding:o,size:s}=n,l=t.getPointPosition(e,a+r+o,i),c=Math.round(oi(di(l.angle+Xr))),u=function(t,e,n){90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e);return t}(l.y,s.h,c),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),h=function(t,e,n){"right"===n?t-=e:"center"===n&&(t-=e/2);return t}(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+s.w,bottom:u+s.h}}function td(t,e){if(!e)return!0;const{left:n,top:a,right:r,bottom:i}=t;return!(Zi({x:n,y:a},e)||Zi({x:n,y:i},e)||Zi({x:r,y:a},e)||Zi({x:r,y:i},e))}function ed(t,e,n){const{left:a,top:r,right:i,bottom:o}=n,{backdropColor:s}=e;if(!kr(s)){const n=po(e.borderRadius),l=mo(e.backdropPadding);t.fillStyle=s;const c=a-l.left,u=r-l.top,d=i-a+l.width,h=o-r+l.height;Object.values(n).some((t=>0!==t))?(t.beginPath(),oo(t,{x:c,y:u,w:d,h,radius:n}),t.fill()):t.fillRect(c,u,d,h)}}function nd(t,e,n,a){const{ctx:r}=t;if(n)r.arc(t.xCenter,t.yCenter,e,0,$r);else{let n=t.getPointPosition(0,e);r.moveTo(n.x,n.y);for(let i=1;i<a;i++)n=t.getPointPosition(i,e),r.lineTo(n.x,n.y)}}class ad extends Uu{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Bi.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=mo(Yu(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Ar(t)&&!isNaN(t)?t:0,this.max=Ar(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Yu(this.options))}generateTickLabels(t){Uu.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=Nr(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Ju(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,a){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,a))}getIndexAngle(t){return di(t*($r/(this._pointLabels.length||1))+ii(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(kr(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(kr(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return bo(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const a=this.getIndexAngle(t)-Xr+n;return{x:Math.cos(a)*e+this.xCenter,y:Math.sin(a)*e+this.yCenter,angle:a}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:a,bottom:r}=this._pointLabelItems[t];return{left:e,top:n,right:a,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),nd(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:a,border:r}=e,i=this._pointLabels.length;let o,s,l;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:a}}=t;for(let r=e-1;r>=0;r--){const e=t._pointLabelItems[r];if(!e.visible)continue;const i=a.setContext(t.getPointLabelContext(r));ed(n,i,e);const o=go(i.font),{x:s,y:l,textAlign:c}=e;io(n,t._pointLabels[r],s,l+o.lineHeight/2,o,{color:i.color,textAlign:c,textBaseline:"middle"})}}(this,i),a.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){s=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),o=a.setContext(n),l=r.setContext(n);!function(t,e,n,a,r){const i=t.ctx,o=e.circular,{color:s,lineWidth:l}=e;!o&&!a||!s||!l||n<0||(i.save(),i.strokeStyle=s,i.lineWidth=l,i.setLineDash(r.dash||[]),i.lineDashOffset=r.dashOffset,i.beginPath(),nd(t,n,o,a),i.closePath(),i.stroke(),i.restore())}(this,o,s,i,l)}})),n.display){for(t.save(),o=i-1;o>=0;o--){const a=n.setContext(this.getPointLabelContext(o)),{color:r,lineWidth:i}=a;i&&r&&(t.lineWidth=i,t.strokeStyle=r,t.setLineDash(a.borderDash),t.lineDashOffset=a.borderDashOffset,s=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(o,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const a=this.getIndexAngle(0);let r,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((a,o)=>{if(0===o&&this.min>=0&&!e.reverse)return;const s=n.setContext(this.getContext(o)),l=go(s.font);if(r=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){t.font=l.string,i=t.measureText(a.label).width,t.fillStyle=s.backdropColor;const e=mo(s.backdropPadding);t.fillRect(-i/2-e.left,-r-l.size/2-e.top,i+e.width,l.size+e.height)}io(t,a.label,0,-r,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),t.restore()}drawTitle(){}}const rd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},id=Object.keys(rd);function od(t,e){return t-e}function sd(t,e){if(kr(e))return null;const n=t._adapter,{parser:a,round:r,isoWeekday:i}=t._parseOpts;let o=e;return"function"==typeof a&&(o=a(o)),Ar(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null===o?null:(r&&(o="week"!==r||!ai(i)&&!0!==i?n.startOf(o,r):n.startOf(o,"isoWeek",i)),+o)}function ld(t,e,n,a){const r=id.length;for(let i=id.indexOf(t);i<r-1;++i){const t=rd[id[i]],r=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(r*t.size))<=a)return id[i]}return id[r-1]}function cd(t,e,n){if(n){if(n.length){const{lo:a,hi:r}=mi(n,e);t[n[a]>=e?n[a]:n[r]]=!0}}else t[e]=!0}function ud(t,e,n){const a=[],r={},i=e.length;let o,s;for(o=0;o<i;++o)s=e[o],r[s]=o,a.push({value:s,major:!1});return 0!==i&&n?function(t,e,n,a){const r=t._adapter,i=+r.startOf(e[0].value,a),o=e[e.length-1].value;let s,l;for(s=i;s<=o;s=+r.add(s,1,a))l=n[s],l>=0&&(e[l].major=!0);return e}(t,a,r,n):a}class dd extends Bl{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),a=this._adapter=new qs(t.adapters.date);a.init(e),Fr(n.displayFormats,a.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:sd(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:a,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();function s(t){i||isNaN(t.min)||(a=Math.min(a,t.min)),o||isNaN(t.max)||(r=Math.max(r,t.max))}i&&o||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),a=Ar(a)&&!isNaN(a)?a:+e.startOf(Date.now(),n),r=Ar(r)&&!isNaN(r)?r:+e.endOf(Date.now(),n)+1,this.min=Math.min(a,r-1),this.max=Math.max(a+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,a="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const r=this.min,i=function(t,e,n){let a=0,r=t.length;for(;a<r&&t[a]<e;)a++;for(;r>a&&t[r-1]>n;)r--;return a>0||r<t.length?t.slice(a,r):t}(a,r,this.max);return this._unit=e.unit||(n.autoSkip?ld(e.minUnit,this.min,this.max,this._getLabelCapacity(r)):function(t,e,n,a,r){for(let i=id.length-1;i>=id.indexOf(n);i--){const n=id[i];if(rd[n].common&&t._adapter.diff(r,a,n)>=e-1)return n}return id[n?id.indexOf(n):0]}(this,i.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=id.indexOf(t)+1,n=id.length;e<n;++e)if(rd[id[e]].common)return id[e]}(this._unit):void 0,this.initOffsets(a),t.reverse&&i.reverse(),ud(this,i,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,a=0,r=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),a=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),r=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;a=fi(a,0,i),r=fi(r,0,i),this._offsets={start:a,end:r,factor:1/(a+1+r)}}_generate(){const t=this._adapter,e=this.min,n=this.max,a=this.options,r=a.time,i=r.unit||ld(r.minUnit,e,n,this._getLabelCapacity(e)),o=Tr(a.ticks.stepSize,1),s="week"===i&&r.isoWeekday,l=ai(s)||!0===s,c={};let u,d,h=e;if(l&&(h=+t.startOf(h,"isoWeek",s)),h=+t.startOf(h,l?"day":i),t.diff(n,e,i)>1e5*o)throw new Error(e+" and "+n+" are too far apart with stepSize of "+o+" "+i);const f="data"===a.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<n;u=+t.add(u,o,i),d++)cd(c,u,f);return u!==n&&"ticks"!==a.bounds&&1!==d||cd(c,u,f),Object.keys(c).sort(od).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,a=this._unit,r=e||n[a];return this._adapter.format(t,r)}_tickFormatFunction(t,e,n,a){const r=this.options,i=r.ticks.callback;if(i)return Nr(i,[t,e,n],this);const o=r.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&o[s],u=l&&o[l],d=n[e],h=l&&u&&d&&d.major;return this._adapter.format(t,a||(h?u:c))}generateTickLabels(t){let e,n,a;for(e=0,n=t.length;e<n;++e)a=t[e],a.label=this._tickFormatFunction(a.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,a=ii(this.isHorizontal()?e.maxRotation:e.minRotation),r=Math.cos(a),i=Math.sin(a),o=this._resolveTickFontOptions(0).size;return{w:n*r+o*i,h:n*i+o*r}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,a=n[e.unit]||n.millisecond,r=this._tickFormatFunction(t,0,ud(this,[t],this._majorUnit),a),i=this._getLabelSize(r),o=Math.floor(this.isHorizontal()?this.width/i.w:this.height/i.h)-1;return o>0?o:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(t=0,e=a.length;t<e;++t)n=n.concat(a[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const a=this.getLabels();for(e=0,n=a.length;e<n;++e)t.push(sd(this,a[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return yi(t.sort(od))}}function hd(t,e,n){let a,r,i,o,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=gi(t,"pos",e)),({pos:a,time:i}=t[s]),({pos:r,time:o}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=gi(t,"time",e)),({time:a,pos:i}=t[s]),({time:r,pos:o}=t[l]));const c=r-a;return c?i+(o-i)*(e-a)/c:i}var fd=Object.freeze({__proto__:null,CategoryScale:class extends Bl{static id="category";static defaults={ticks:{callback:ju}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:a}of e)t[n]===a&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(kr(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:fi(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Fu(n,t,Tr(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:a}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(a=this.getLabels().length-1)),this.min=n,this.max=a}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,a=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)a.push({value:n});return a}getLabelForValue(t){return ju.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:Hu,LogarithmicScale:Gu,RadialLinearScale:ad,TimeScale:dd,TimeSeriesScale:class extends dd{static id="timeseries";static defaults=dd.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=hd(e,this.min),this._tableRange=hd(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,a=[],r=[];let i,o,s,l,c;for(i=0,o=t.length;i<o;++i)l=t[i],l>=e&&l<=n&&a.push(l);if(a.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(i=0,o=a.length;i<o;++i)c=a[i+1],s=a[i-1],l=a[i],Math.round((c+s)/2)!==l&&r.push({time:l,pos:i/(o-1)});return r}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(hd(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return hd(this._table,n*this._tableRange+this._minPos,!0)}}});const pd=[Hs,jc,Du,fd];gc.register(...pd);const md=gc,gd={name:"BarChart",props:{labels:{type:Array,default:function(){return[]}},values:{type:Array,default:function(){return[]}},datasetLabel:{type:String,default:"Undi"},height:{type:[Number,String],default:220},backgroundColor:{type:[String,Array],default:"rgba(54, 162, 235, 0.75)"},borderColor:{type:[String,Array],default:"rgba(54, 162, 235, 1)"},borderWidth:{type:Number,default:0},borderRadius:{type:[Number,Array],default:0},options:{type:Object,default:function(){return{}}}},data:function(){return{chart:null}},computed:{wrapperStyle:function(){var t=this.height;return{height:"number"==typeof t?t+"px":String(t)}}},watch:{labels:function(){this.renderChart()},values:function(){this.renderChart()},options:{handler:function(){this.renderChart()},deep:!0},backgroundColor:function(){this.renderChart()},borderColor:function(){this.renderChart()},borderWidth:function(){this.renderChart()},borderRadius:function(){this.renderChart()}},mounted:function(){this.renderChart()},beforeDestroy:function(){this.destroyChart()},methods:{destroyChart:function(){if(this.chart){try{this.chart.destroy()}catch(t){}this.chart=null}},renderChart:function(){if(this.destroyChart(),this.$refs&&this.$refs.canvas){var t=this.$refs.canvas.getContext("2d"),e=(this.labels||[]).map((function(t){return String(t)})),n=(this.values||[]).map((function(t){return Number(t)||0})),a=Object.assign({},{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0}},scales:{x:{ticks:{maxRotation:45,minRotation:45,autoSkip:!1}},y:{beginAtZero:!0,ticks:{precision:0}}}},this.options||{});this.chart=new md(t,{type:"bar",data:{labels:e,datasets:[{label:this.datasetLabel,data:n,backgroundColor:this.backgroundColor,borderColor:this.borderColor,borderWidth:this.borderWidth,borderRadius:this.borderRadius}]},options:a})}}}};var vd=n(944),bd={insert:"head",singleton:!1};i()(vd.A,bd);vd.A.locals;const _d=(0,m.A)(gd,(function(){var t=this._self._c;return t("div",{staticClass:"bar-chart",style:this.wrapperStyle},[t("canvas",{ref:"canvas"})])}),[],!1,null,"bcd4821c",null).exports;const yd={name:"PieChart",props:{labels:{type:Array,default:function(){return[]}},values:{type:Array,default:function(){return[]}},datasetLabel:{type:String,default:""},height:{type:[Number,String],default:240},colors:{type:Array,default:function(){return[]}},doughnut:{type:Boolean,default:!1},cutout:{type:[String,Number],default:"58%"},options:{type:Object,default:function(){return{}}}},data:function(){return{chart:null}},computed:{wrapperStyle:function(){var t=this.height;return{height:"number"==typeof t?t+"px":String(t)}},resolvedColors:function(){for(var t=this.colors||[],e=["#4dc9f6","#f67019","#f53794","#537bc4","#acc236","#166a8f","#00a950","#58595b","#8549ba"],n=[],a=Math.max((this.labels||[]).length,(this.values||[]).length),r=0;r<a;r++)n.push(t[r]||e[r%e.length]);return n}},watch:{labels:function(){this.renderChart()},values:function(){this.renderChart()},colors:function(){this.renderChart()},doughnut:function(){this.renderChart()},cutout:function(){this.renderChart()},options:{handler:function(){this.renderChart()},deep:!0}},mounted:function(){this.renderChart()},beforeDestroy:function(){this.destroyChart()},methods:{destroyChart:function(){if(this.chart){try{this.chart.destroy()}catch(t){}this.chart=null}},renderChart:function(){if(this.destroyChart(),this.$refs&&this.$refs.canvas){var t=this.$refs.canvas.getContext("2d"),e=(this.labels||[]).map((function(t){return String(t)})),n=(this.values||[]).map((function(t){return Number(t)||0})),a={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom"},tooltip:{enabled:!0}}};this.doughnut&&(a.cutout=this.cutout);var r=Object.assign({},a,this.options||{});this.chart=new md(t,{type:this.doughnut?"doughnut":"pie",data:{labels:e,datasets:[{label:this.datasetLabel,data:n,backgroundColor:this.resolvedColors,borderColor:"#ffffff",borderWidth:1}]},options:r})}}}},wd=yd;var xd=n(8922),kd={insert:"head",singleton:!1};i()(xd.A,kd);xd.A.locals;const Sd={components:{BarChart:_d,PieChart:(0,m.A)(wd,(function(){var t=this._self._c;return t("div",{staticClass:"pie-chart",style:this.wrapperStyle},[t("canvas",{ref:"canvas"})])}),[],!1,null,"2d92e7ed",null).exports},data:function(){return{nominees:[],results:[],positions:[],finalLoading:!1,selectedPositionId:0,attendanceSummary:null,attendanceSummaryReady:!1}},computed:{election_id:function(){return this.$route.params.election_id},no_votes:function(){var t=this.nominees,e=this.results,n=[];for(var a in t){var r=!1;for(var i in e)e[i].nominee_id==t[a].id&&(r=!0);r||n.push(t[a])}return n},dashboardTotalVotes:function(){return this.results.reduce((function(t,e){return t+Number(e.votes||0)}),0)},topOverallLabel:function(){if(!this.results.length)return"—";var t=this.results.reduce((function(t,e){return Number(e.votes||0)>Number(t.votes||0)?e:t})),e=this.getNominee(t.nominee_id);return e&&e.name?e.name:"—"},topOverallVotes:function(){return this.results.length?this.results.reduce((function(t,e){return Math.max(t,Number(e.votes||0))}),0):0},mainChartTitle:function(){if(0===this.selectedPositionId)return"Jumlah undi mengikut jawatan";var t=this.positions.find((function(t){return Number(t.id)===Number(this.selectedPositionId)}),this);return t&&t.name?"Undi calon — "+t.name:"Undi calon"},mainChartSubtitle:function(){return 0===this.selectedPositionId?"Perbandingan antara jawatan":"Carta mengikut calon"},sideChartTitle:function(){return 0===this.selectedPositionId?"Taburan undi (jawatan)":"Peratus undi"},sideChartSubtitle:function(){return 0===this.selectedPositionId?"Perkongsian jumlah undi":"Bahagian setiap calon"},showAttendanceFizikalChart:function(){return!!this.attendanceSummary&&Number(this.attendanceSummary.fizikal||0)>0},mainChartReady:function(){return!this.finalLoading&&this.positions.length>0},positionTotalRows:function(){var t=this;return this.positions.map((function(e){var n=t.results.filter((function(t){return Number(t.position_id)===Number(e.id)})).reduce((function(t,e){return t+Number(e.votes||0)}),0);return{id:e.id,name:e.name,total:n}}))},mainBarChartProps:function(){return this.mainChartReady?0===this.selectedPositionId?{labels:(t=this.positionTotalRows).map((function(t){return t.name.length>22?t.name.slice(0,20)+"…":t.name})),values:t.map((function(t){return t.total})),datasetLabel:"Jumlah undi"}:{labels:(t=this.getSinglePositionChartRows()).map((function(t){return t.label})),values:t.map((function(t){return t.votes})),datasetLabel:"Undi"}:{};var t},sidePieChartProps:function(){return this.mainChartReady?0===this.selectedPositionId?{labels:(t=this.positionTotalRows).map((function(t){return t.name})),values:t.map((function(t){return t.total}))}:{labels:(t=this.getSinglePositionChartRows()).map((function(t){return t.label})),values:t.map((function(t){return t.votes}))}:{};var t},attendanceBreakdownPieProps:function(){if(!this.attendanceSummary||this.attendanceSummary.total_registered<=0)return{labels:[],values:[]};var t=this.attendanceSummary;return{labels:["Fizikal","Maya","Belum ditetapkan"],values:[Number(t.fizikal||0),Number(t.maya||0),Number(t.unset||0)]}},attendanceFizikalBarProps:function(){if(!this.showAttendanceFizikalChart||!this.attendanceSummary)return{labels:[],values:[]};var t=this.attendanceSummary;return{labels:["Menunggu pengesahan","Disahkan"],values:[Number(t.fizikal_registration_pending||0),Number(t.fizikal_registration_verified||0)],datasetLabel:"Pengundi"}}},methods:{setPosition:function(t){this.selectedPositionId=0===t?0:Number(t)},getSinglePositionChartRows:function(){var t=this.selectedPositionId,e=this,n=this.results.filter((function(e){return Number(e.position_id)===Number(t)})).map((function(t){var n=(e.getNominee(t.nominee_id)||{}).name||"#"+t.nominee_id;return n.length>28&&(n=n.slice(0,26)+"…"),{label:n,votes:Number(t.votes||0)}}));return this.no_votes.forEach((function(e){if(Number(e.position_id)===Number(t)){var a=e.name||"";a.length>28&&(a=a.slice(0,26)+"…"),n.push({label:a||"Calon",votes:0})}})),n.sort((function(t,e){return e.votes-t.votes})),n},loadData:function(){var t=this;this.util.notify("Loading please wait...","loading"),this.finalLoading=!0,this.attendanceSummaryReady=!1,this.attendanceSummary=null,axios.get(config.API+"election/"+this.election_id+"/attendance-summary").then((function(e){t.attendanceSummary=e.data})).catch((function(){t.attendanceSummary=null})).finally((function(){t.attendanceSummaryReady=!0})),axios.get(config.API+"election/result/"+this.election_id).then((function(e){$.notifyClose(),t.nominees=e.data.nominee||[],t.results=e.data.result||[],t.positions=e.data.position||[]})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})).finally((function(){t.finalLoading=!1}))},getNominee:function(t){var e=this.nominees;for(var n in e)if(t==e[n].id)return e[n];return{}}},created:function(){this.util.setTitle("MyKoPKB - Keputusan akhir"),this.loadData()}},Cd=Sd;var Ad=n(8410),Ed={insert:"head",singleton:!1};i()(Ad.A,Ed);Ad.A.locals;var Td=(0,m.A)(Cd,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"final-dashboard"},[e("div",{staticClass:"container-fluid final-dashboard__container"},[e("div",{staticClass:"row final-split-row"},[e("div",{staticClass:"col-md-6 final-split-col final-split-col--dashboard"},[e("div",{staticClass:"final-dashboard__shell"},[e("div",{staticClass:"final-header"},[t._m(0),t._v(" "),e("div",{staticClass:"final-actions"},[e("button",{staticClass:"btn btn-info",attrs:{type:"button",disabled:t.finalLoading},on:{click:t.loadData}},[e("i",{staticClass:"fa",class:t.finalLoading?"fa-refresh fa-spin":"fa-refresh"}),t._v("\n\t\t\t\t\t\t\t\tKemaskini\n\t\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"final-vote-summary"},[e("div",{staticClass:"final-section-title"},[t._v("Ringkasan undian")]),t._v(" "),e("div",{staticClass:"final-stats"},[e("div",{staticClass:"final-stat"},[e("div",{staticClass:"final-stat__label"},[t._v("Jumlah undi")]),t._v(" "),e("div",{staticClass:"final-stat__value"},[t._v(t._s(t.dashboardTotalVotes))])]),t._v(" "),e("div",{staticClass:"final-stat"},[e("div",{staticClass:"final-stat__label"},[t._v("Bil. jawatan")]),t._v(" "),e("div",{staticClass:"final-stat__value"},[t._v(t._s(t.positions.length))])]),t._v(" "),e("div",{staticClass:"final-stat"},[e("div",{staticClass:"final-stat__label"},[t._v("Calon terunggul")]),t._v(" "),e("div",{staticClass:"final-stat__value final-stat__value--text"},[t._v(t._s(t.topOverallLabel))]),t._v(" "),e("div",{staticClass:"final-stat__hint"},[t._v(t._s(t.topOverallVotes)+" undi")])])])]),t._v(" "),e("div",{staticClass:"final-filters"},[e("span",{staticClass:"final-filters__label"},[t._v("Jawatan:")]),t._v(" "),e("button",{staticClass:"final-chip",class:{"is-active":0===t.selectedPositionId},attrs:{type:"button"},on:{click:function(e){return t.setPosition(0)}}},[t._v("\n\t\t\t\t\t\t\tSemua\n\t\t\t\t\t\t")]),t._v(" "),t._l(t.positions,(function(n){return e("button",{key:n.id,staticClass:"final-chip",class:{"is-active":t.selectedPositionId===n.id},attrs:{type:"button"},on:{click:function(e){return t.setPosition(n.id)}}},[t._v("\n\t\t\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t\t")])}))],2),t._v(" "),t.finalLoading||0!==t.positions.length?e("div",{staticClass:"row final-charts-row final-charts-row--split"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"panel panel-default final-card"},[e("div",{staticClass:"panel-heading final-card__heading"},[e("div",{staticClass:"final-card__title"},[t._v(t._s(t.mainChartTitle))]),t._v(" "),e("div",{staticClass:"final-card__meta"},[t._v(t._s(t.mainChartSubtitle))])]),t._v(" "),e("div",{staticClass:"panel-body final-card__body"},[e("div",{staticClass:"final-chart-wrap"},[t.mainChartReady?e("bar-chart",t._b({},"bar-chart",t.mainBarChartProps,!1)):t._e()],1)])])]),t._v(" "),e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"panel panel-default final-card"},[e("div",{staticClass:"panel-heading final-card__heading final-card__heading--alt"},[e("div",{staticClass:"final-card__title"},[t._v(t._s(t.sideChartTitle))]),t._v(" "),e("div",{staticClass:"final-card__meta"},[t._v(t._s(t.sideChartSubtitle))])]),t._v(" "),e("div",{staticClass:"panel-body final-card__body"},[e("div",{staticClass:"final-chart-wrap final-chart-wrap--doughnut"},[t.mainChartReady?e("pie-chart",t._b({},"pie-chart",t.sidePieChartProps,!1)):t._e()],1)])])])]):e("div",{staticClass:"final-empty"},[t._v("\n\t\t\t\t\t\tTiada jawatan untuk pilihan raya ini.\n\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"col-md-6 final-split-col final-split-col--attendance"},[e("div",{staticClass:"final-attendance-shell"},[e("div",{staticClass:"final-attendance-shell__head"},[e("div",[e("div",{staticClass:"final-attendance-shell__kicker"},[t._v("Kehadiran")]),t._v(" "),e("h4",{staticClass:"final-attendance-shell__title"},[t._v("Ringkasan kehadiran")]),t._v(" "),t.attendanceSummary?e("div",{staticClass:"final-attendance__meta"},[t._v("\n\t\t\t\t\t\t\t\tKadar daftar: "),e("b",[t._v(t._s(t.attendanceSummary.attendance_rate)+"%")]),t._v(" "),e("span",{staticClass:"final-attendance__meta-sep"},[t._v("·")]),t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.attendanceSummary.marked_present)+" / "+t._s(t.attendanceSummary.total_registered)+" pengundi\n\t\t\t\t\t\t\t")]):t._e()])]),t._v(" "),t.attendanceSummaryReady?t.attendanceSummary?e("div",{staticClass:"final-attendance__body"},[t.attendanceSummary.total_registered>0?e("div",{staticClass:"final-attendance__charts final-attendance__charts--standalone"},[e("div",{staticClass:"final-attendance__chart-block"},[e("div",{staticClass:"final-attendance__chart-caption"},[t._v("Taburan kaedah kehadiran")]),t._v(" "),e("div",{staticClass:"final-attendance__chart-wrap final-attendance__chart-wrap--donut"},[e("pie-chart",t._b({},"pie-chart",t.attendanceBreakdownPieProps,!1))],1)]),t._v(" "),t.showAttendanceFizikalChart?e("div",{staticClass:"final-attendance__chart-block"},[e("div",{staticClass:"final-attendance__chart-caption"},[t._v("Status pendaftaran fizikal")]),t._v(" "),e("div",{staticClass:"final-attendance__chart-wrap final-attendance__chart-wrap--bar"},[e("bar-chart",t._b({},"bar-chart",t.attendanceFizikalBarProps,!1))],1)]):t._e()]):t._e()]):e("div",{staticClass:"final-attendance__state final-attendance__state--muted"},[t._v("\n\t\t\t\t\t\tRingkasan kehadiran tidak dapat dimuatkan. Semak sambungan atau log masuk pentadbir.\n\t\t\t\t\t")]):e("div",{staticClass:"final-attendance__state"},[t._v("Memuatkan kehadiran…")])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"final-kicker"},[t._v("Keputusan akhir")]),t._v(" "),e("h4",{staticClass:"final-title"},[t._v("Dashboard keputusan")]),t._v(" "),e("div",{staticClass:"final-subtitle"},[t._v("Carta interaktif mengikut jawatan")])])}],!1,null,"5eda9233",null);const Pd=Td.exports;var Nd=n(4541);const Ld={components:{AdminDataTable:Nd.default},data:function(){return{loading:!1,searchText:"",items:[],headers:[{title:"Aktiviti",key:"description",sortable:!0},{title:"Subject Type",key:"subject_type",sortable:!0},{title:"Subject ID",key:"subject_id",sortable:!0},{title:"Causer Type",key:"causer_type",sortable:!0},{title:"Causer ID",key:"causer_id",sortable:!0},{title:"Properties",key:"properties",sortable:!1},{title:"Masa",key:"created_at",sortable:!0}]}},created:function(){this.refresh()},methods:{stringify:function(t){if(null==t)return"";try{return JSON.stringify(t,null,2)}catch(e){return String(t)}},refresh:function(){var t=this;t.loading=!0;var e={per_page:200};t.searchText&&(e.description=t.searchText),axios.get(config.API+"admin/activity-log",{params:e}).then((function(e){t.items=e&&e.data&&e.data.data?e.data.data:[]})).catch((function(e){t.items=[],t.util&&"function"==typeof t.util.showResult&&t.util.showResult(e,"error")})).finally((function(){t.loading=!1}))},clearSearch:function(){this.searchText="",this.refresh()}}};var Od=(0,m.A)(Ld,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"clearfix"},[e("h4",{staticClass:"pull-left",staticStyle:{"margin-top":"0"}},[t._v("Activity Log")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm pull-right",attrs:{disabled:t.loading},on:{click:t.refresh}},[e("i",{staticClass:"fa fa-refresh",class:{"fa-spin":t.loading}}),t._v(" Refresh\n\t\t\t")])]),t._v(" "),e("div",{staticClass:"row",staticStyle:{"margin-top":"12px","margin-bottom":"12px"}},[e("div",{staticClass:"col-sm-8 col-md-6"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchText,expression:"searchText",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Cari aktiviti (description)…"},domProps:{value:t.searchText},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.refresh.apply(null,arguments)},input:function(e){e.target.composing||(t.searchText=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-primary",attrs:{disabled:t.loading},on:{click:t.refresh}},[t._v("\n\t\t\t\t\t\t\tCari\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:t.loading||!t.searchText},on:{click:t.clearSearch}},[t._v("\n\t\t\t\t\t\t\tClear\n\t\t\t\t\t\t")])])])])]),t._v(" "),e("admin-data-table",{attrs:{headers:t.headers,items:t.items,loading:t.loading,"items-per-page":25,"show-pagination":!0,"empty-text":"Tiada activity log",exportable:!0,"export-file-name":"activity-log"},scopedSlots:t._u([{key:"item-id",fn:function(n){var a=n.value;return[e("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(a))])]}},{key:"item-created_at",fn:function(n){var a=n.value;return[e("span",{staticStyle:{"white-space":"nowrap"}},[t._v(t._s(a))])]}},{key:"item-properties",fn:function(n){var a=n.value;return[e("pre",{staticStyle:{margin:"0","white-space":"pre-wrap","word-break":"break-word",background:"transparent",border:"0",padding:"0"}},[t._v(t._s(t.stringify(a)))])]}}])})],1)])}),[],!1,null,null,null);const Md=Od.exports;const Rd={created:function(){this.util.setTitle("MyKoPKB - Maklumat Undian")}};const Id=(0,m.A)(Rd,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-8 col-md-offset-2"},[e("h4",[t._v("Maklumat Undian")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const Dd={data:function(){return{activeTab:"current",electionLoading:!1,startSubmitting:!1,startForm:{name:"",password:""},electionTableHeaders:[{title:"Nama Undian",key:"name",sortable:!0},{title:"Undian Mula",key:"start",sortable:!0},{title:"Undian Tamat",key:"end",sortable:!0},{title:"Tindakan",key:"actions",sortable:!1}]}},created:function(){this.refreshElection()},computed:{electionLatestHeading:function(){var t=this.data.election,e=t&&null!=t.name?String(t.name).trim():"";return""!==e?e:"Undian Terkini"},electionStatusLabel:function(){var t=Number(this.data&&this.data.election?this.data.election.status:NaN);return 1===t?"Draf":2===t?"Sesi Mengundi Sedang Berjalan":3===t?"Tamat":"—"},electionStatusClass:function(){var t=Number(this.data&&this.data.election?this.data.election.status:NaN);return 1===t?"election-status--draft":2===t?"election-status--active":3===t?"election-status--done":""}},methods:{openStartElectionModal:function(){var t=this.data.election;this.startForm.name=t&&null!=t.name?String(t.name):"",this.startForm.password="",this.startSubmitting=!1,this.util.showModal("#start-election-modal")},stop:function(){var t=this;this.util.notify("Stopping Election","loading"),axios.post(config.API+"election/stop",$("#stop_form").serialize()).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&(t.refreshElection(),t.data.election=e.data.election)})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},start:function(){var t=this;t.startSubmitting||(t.startSubmitting=!0,this.util.notify("Memproses…","loading"),axios.post(config.API+"election/start",{name:t.startForm.name,password:t.startForm.password}).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&(t.refreshElection(),t.data.election=e.data.election,t.startForm.password="",t.util.hideModal("#start-election-modal"))})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})).finally((function(){t.startSubmitting=!1})))},registerNextSession:function(){var t=this;this.util.notify("Memproses…","loading"),axios.post(config.API+"election/register-next",$("#register_next_form").serialize()).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&(t.refreshElection(),t.data.election=e.data.election,t.util.hideModal("#register-next-session-modal"),axios.get(config.API+"admin/information").then((function(e){t.data.election=e.data.election,t.data.partylists=e.data.partylist,t.data.positions=e.data.position})).catch((function(e){t.util.showResult(e,"error")})))})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},refreshElection:function(){this.util.notify("Refreshing Election","loading");var t=this;this.electionLoading=!0,axios.get(config.API+"election").then((function(e){$.notifyClose(),t.data.elections=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})).finally((function(){t.electionLoading=!1}))},getPDFurl:function(t){return"/result/".concat(t)}}};var Fd=n(5620),jd={insert:"head",singleton:!1};i()(Fd.A,jd);Fd.A.locals;const Bd=(0,m.A)(Dd,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("ul",{staticClass:"nav nav-tabs election-tabs"},[e("li",{class:{active:"current"===t.activeTab}},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.activeTab="current"}}},[t._v("Terkini")])]),t._v(" "),e("li",{class:{active:"history"===t.activeTab}},[e("a",{attrs:{href:"#"},on:{click:function(e){e.preventDefault(),t.activeTab="history"}}},[t._v("Sejarah Undian")])])]),t._v(" "),e("div",{staticClass:"tab-content election-tab-content"},[e("div",{staticClass:"tab-pane",class:{active:"current"===t.activeTab}},[e("div",{staticClass:"election-header"},[e("div",{staticClass:"election-header__title"},[e("div",{staticClass:"election-header__kicker"},[t._v("Undian Terkini")]),t._v(" "),e("div",{staticClass:"election-header__name"},[t._v(t._s(t.electionLatestHeading))])]),t._v(" "),e("div",{staticClass:"election-header__meta"},[e("span",{staticClass:"election-status",class:t.electionStatusClass},[t._v(t._s(t.electionStatusLabel))]),t._v(" "),2==t.data.election.status?e("label",{staticClass:"election-label"},[t._v("\n\t\t\t\t\t\t\tUndian bermula pada "+t._s(t.data.election.start)+"\n\t\t\t\t\t\t")]):t._e(),t._v(" "),e("div",{staticClass:"election-header__meta-actions"},[1===Number(t.data.election.status)&&1==t.data.user.role?e("button",{staticClass:"btn btn-success btn-xs",on:{click:t.openStartElectionModal}},[t._v("\n\t\t\t\t\t\t\t\tMula Undian\n\t\t\t\t\t\t\t")]):t._e()])])]),t._v(" "),e("div",{staticClass:"election-actions form-group"},[3===Number(t.data.election.status)&&1==t.data.user.role?e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.util.showModal("#register-next-session-modal")}}},[t._v("Daftar Sesi Mengundi Baru")]):t._e(),t._v(" "),2==t.data.election.status?e("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"Current Result"}}},[t._v("\n\t\t\t\t\t\tKeputusan Semasa\n\t\t\t\t\t")]):t._e(),t._v(" "),2==t.data.election.status?e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.util.showModal("#stop-election-modal")}}},[t._v("Tamat Undian")]):t._e()],1),t._v(" "),1===Number(t.data.user.role)?e("div",{staticClass:"alert alert-info election-hint"},[e("b",[t._v("Makluman:")]),t._v(" Sila semak & kemaskini "),e("b",[t._v("Maklumat Calon")]),t._v(" dan "),e("b",[t._v("Anggota Koperasi")]),t._v("\n\t\t\t\t\t(butiran\n\t\t\t\t\tpengundi) untuk sesi ini sebelum memulakan undian.\n\t\t\t\t")]):t._e()]),t._v(" "),e("div",{staticClass:"tab-pane",class:{active:"history"===t.activeTab}},[e("div",{staticClass:"election-history"},[e("div",{staticClass:"election-history__title"},[t._v("Sejarah Undian")]),t._v(" "),e("admin-data-table",{attrs:{headers:t.electionTableHeaders,items:t.data.elections,loading:t.electionLoading,"items-per-page":10,"show-pagination":!0,"empty-text":"Tiada undian",exportable:!0,"export-file-name":"undian"},scopedSlots:t._u([{key:"item-actions",fn:function(n){var a=n.item;return[e("router-link",{staticClass:"btn btn-info",attrs:{to:{name:"Election Result",params:{election_id:a.id}}}},[t._v("\n\t\t\t\t\t\t\t\tRingkasan Keputusan\n\t\t\t\t\t\t\t")]),t._v(" "),e("a",{staticClass:"btn btn-warning",attrs:{href:t.getPDFurl(a.id)}},[t._v("Muat Turun PDF")])]}}])})],1)])]),t._v(" "),e("form",{on:{submit:function(e){return e.preventDefault(),t.start.apply(null,arguments)}}},[e("div",{staticClass:"modal fade",attrs:{id:"start-election-modal",tabindex:"-1",role:"dialog","aria-labelledby":"start-election-modal","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"start-election-name"}},[t._v("Nama Undian")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.startForm.name,expression:"startForm.name",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{id:"start-election-name",type:"text",name:"name",autocomplete:"off",placeholder:"(Pilihan)",readonly:"",tabindex:"-1"},domProps:{value:t.startForm.name},on:{input:function(e){e.target.composing||t.$set(t.startForm,"name",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"start-election-password"}},[t._v("Kata Laluan")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.startForm.password,expression:"startForm.password"}],staticClass:"form-control",attrs:{id:"start-election-password",type:"password",name:"password",required:"",autocomplete:"current-password",disabled:t.startSubmitting},domProps:{value:t.startForm.password},on:{input:function(e){e.target.composing||t.$set(t.startForm,"password",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-info",attrs:{type:"submit",disabled:t.startSubmitting}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.startSubmitting?"Memproses…":"Mula")+"\n\t\t\t\t\t\t\t")]),t._v(" "),e("input",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal",value:"Batal"}})])])])])]),t._v(" "),e("form",{attrs:{id:"register_next_form"},on:{submit:function(e){return e.preventDefault(),t.registerNextSession.apply(null,arguments)}}},[t._m(1)]),t._v(" "),e("form",{attrs:{id:"stop_form"},on:{submit:function(e){return e.preventDefault(),t.stop.apply(null,arguments)}}},[e("div",{staticClass:"modal fade",attrs:{id:"stop-election-modal",tabindex:"-1",role:"dialog","aria-labelledby":"stop-election-modal","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(2),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama Undian")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",autocomplete:"on",placeholder:"(Optional)",readonly:"",tabindex:"-1"},domProps:{value:t.data.election.name}})]),t._v(" "),t._m(3)]),t._v(" "),t._m(4)])])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Mulakan Undian")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade",attrs:{id:"register-next-session-modal",tabindex:"-1",role:"dialog","aria-labelledby":"register-next-session-modal","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"registerNextModalLabel"}},[t._v("Daftar Sesi Mengundi Baru")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])]),t._v(" "),e("div",{staticClass:"modal-body"},[e("p",{staticClass:"text-muted"},[t._v("Sesi baharu akan dibuka untuk pusingan undian seterusnya. Undian\n\t\t\t\t\t\t\t\tyang\n\t\t\t\t\t\t\t\ttelah tamat kekal dalam rekod.")]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"register-next-name"}},[t._v("Nama Undian")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"register-next-name",type:"text",name:"name",autocomplete:"on"}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"register-next-password"}},[t._v("Kata Laluan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"register-next-password",type:"password",name:"password",required:"",autocomplete:"current-password"}})])]),t._v(" "),e("div",{staticClass:"modal-footer"},[e("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Daftar"}}),t._v(" "),e("input",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal",value:"Batal"}})])])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h5",{staticClass:"modal-title",attrs:{id:"exampleModalLabel"}},[t._v("Tamat Undian")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Kata Laluan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",autocomplete:"on",required:""}})])},function(){var t=this._self._c;return t("div",{staticClass:"modal-footer"},[t("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Tamat Undian"}}),this._v(" "),t("input",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal",value:"Batal"}})])}],!1,null,null,null).exports;const zd={components:{BarChart:_d},created:function(){this.refreshNominees()},watch:{position_id:function(){}},methods:{setPosition:function(t){var e=t&&"0"!==String(t)?String(t):"0";if(String(this.position_id)!==e){var n=Object.assign({},this.$route.query);t&&"0"!==String(t)?n.position_id=String(t):delete n.position_id,this.$router.replace({query:n}).catch((function(){}))}},refreshNominees:function(){var t=this;this.util.notify("Refreshing results","loading"),axios.get(config.API+"nominee").then((function(e){$.notifyClose(),t.data.nominees=e.data,t.refreshResults()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},refreshResults:function(){var t=this;this.util.notify("Refreshing results","loading"),axios.get(config.API+"election/results").then((function(e){$.notifyClose(),t.data.results=e.data,t.data.last_update=new Date})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},getPosition:function(t){var e=this.data.positions;for(var n in e)if(t==e[n].id)return e[n].name;return""},getNominee:function(t){var e=this.data.nominees;for(var n in e)if(t==e[n].id)return e[n].name;return""},getVotes:function(t){var e=this.data.results;for(var n in e)if(e[n].nominee_id==t)return e[n].votes;return 0}},computed:{last_update:function(){var t=this.data.last_update;return t?t.toDateString()+" "+t.toLocaleTimeString():"-"},position_id:function(){return this.$route.query.position_id?this.$route.query.position_id:0},datas:function(){var t=[],e=this.data.nominees;for(var n in e)if(e[n].position_id==this.position_id){var a=[];a.label=e[n].name,a.data=[[1,this.getVotes(e[n].id)]],t.push(a)}return t},positionTotals:function(){for(var t=this.data.results||[],e={},n=0;n<t.length;n++){var a=t[n].position_id,r=Number(t[n].votes||0);e[a]=(e[a]||0)+r}var i=(this.data.positions||[]).map((function(t){return{position_id:t.id,label:t.name,votes:e[t.id]||0}}));return i.sort((function(t,e){return(e.votes||0)-(t.votes||0)})),i},topNominees:function(){for(var t=this.data.results||[],e={},n=0;n<t.length;n++){var a=t[n].nominee_id,r=Number(t[n].votes||0);e[a]=(e[a]||0)+r}for(var i=this.data.nominees||[],o={},s=0;s<i.length;s++)o[i[s].id]=i[s].name;var l=Object.keys(e).map((function(t){return{id:Number(t),label:o[t]||"Nominee #"+t,votes:e[t]}}));return l.sort((function(t,e){return(e.votes||0)-(t.votes||0)})),l.slice(0,8)},topNomineeLabel:function(){return this.topNominees&&this.topNominees[0]?this.topNominees[0].label:"-"},topNomineeVotes:function(){return this.topNominees&&this.topNominees[0]&&this.topNominees[0].votes||0},leadersByPosition:function(){var t=this.data.positions||[],e=this.data.nominees||[],n=this.data.results||[],a={};t.forEach((function(t){a[t.id]=t.name}));var r={};e.forEach((function(t){r[t.id]=t.name}));for(var i={},o=0;o<n.length;o++){var s=n[o],l=s.position_id;i[l]||(i[l]=[]),i[l].push({nominee_id:s.nominee_id,votes:Number(s.votes||0)})}for(var c=[],u=0;u<t.length;u++){var d=t[u].id,h=(i[d]||[]).slice().sort((function(t,e){return(e.votes||0)-(t.votes||0)})),f=h[0]||{nominee_id:null,votes:0},p=h[1]||{nominee_id:null,votes:0},m=h.reduce((function(t,e){return t+(e.votes||0)}),0),g=m>0?Math.round(f.votes/m*100):0;c.push({position_id:d,position_name:a[d]||"Jawatan #"+d,winner_id:f.nominee_id,winner_name:r[f.nominee_id]||"-",winner_votes:f.votes||0,runnerup_id:p.nominee_id,runnerup_name:r[p.nominee_id]||"-",runnerup_votes:p.votes||0,delta:Math.max(0,(f.votes||0)-(p.votes||0)),pct:g})}return c.sort((function(t,e){return(e.winner_votes||0)-(t.winner_votes||0)})),c},rankedNominees:function(){for(var t=this.data.nominees||[],e=[],n=0;n<t.length;n++)if(String(t[n].position_id)===String(this.position_id)){var a=this.getVotes(t[n].id);e.push({id:t[n].id,name:t[n].name,votes:a})}e.sort((function(t,e){return(e.votes||0)-(t.votes||0)}));var r=e.reduce((function(t,e){return t+(e.votes||0)}),0);return e.map((function(t){var e=r>0?Math.round(t.votes/r*100):0;return Object.assign({},t,{pct:e})}))},totalVotes:function(){return"0"===String(this.position_id)?(this.data.results||[]).reduce((function(t,e){return t+Number(e.votes||0)}),0):this.rankedNominees.reduce((function(t,e){return t+(e.votes||0)}),0)}}},Ud=zd;var Hd=n(8654),Vd={insert:"head",singleton:!1};i()(Hd.A,Vd);Hd.A.locals;var Wd=(0,m.A)(Ud,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"result-page"},[e("div",{staticClass:"result-header"},[e("div",[e("div",{staticClass:"result-kicker"},[t._v("Keputusan Undian")]),t._v(" "),e("h4",{staticClass:"result-title"},[t._v(t._s("0"===String(t.position_id)?"Dashboard Keputusan":t.getPosition(t.position_id)||"Keputusan"))]),t._v(" "),e("div",{staticClass:"result-subtitle"},[t._v("Kemaskini terakhir: "),e("b",[t._v(t._s(t.last_update))])])]),t._v(" "),e("div",{staticClass:"result-actions"},[e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.refreshNominees()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Keputusan\n\t\t\t")])])]),t._v(" "),"0"===String(t.position_id)?e("div",{staticClass:"result-stats"},[e("div",{staticClass:"result-stat"},[e("div",{staticClass:"result-stat__label"},[t._v("Jumlah Undi")]),t._v(" "),e("div",{staticClass:"result-stat__value"},[t._v(t._s(t.totalVotes))])]),t._v(" "),e("div",{staticClass:"result-stat"},[e("div",{staticClass:"result-stat__label"},[t._v("Bil. Jawatan")]),t._v(" "),e("div",{staticClass:"result-stat__value"},[t._v(t._s((t.data.positions||[]).length))])]),t._v(" "),e("div",{staticClass:"result-stat"},[e("div",{staticClass:"result-stat__label"},[t._v("Calon Tertinggi")]),t._v(" "),e("div",{staticClass:"result-stat__value result-stat__value--text"},[t._v(t._s(t.topNomineeLabel))]),t._v(" "),e("div",{staticClass:"result-stat__hint"},[t._v(t._s(t.topNomineeVotes)+" undi")])])]):t._e(),t._v(" "),e("div",{staticClass:"result-filters"},[e("span",{staticClass:"result-filters__label"},[t._v("Jawatan:")]),t._v(" "),e("button",{staticClass:"result-chip",class:{"is-active":"0"===String(t.position_id)},attrs:{type:"button"},on:{click:function(e){return t.setPosition(0)}}},[t._v("\n\t\t\tSemua\n\t\t")]),t._v(" "),t._l(t.data.positions,(function(n){return e("button",{key:n.id,staticClass:"result-chip",class:{"is-active":String(n.id)===String(t.position_id)},attrs:{type:"button"},on:{click:function(e){return t.setPosition(n.id)}}},[t._v("\n\t\t\t"+t._s(n.name)+"\n\t\t")])}))],2),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"panel panel-default result-card"},[e("div",{staticClass:"panel-heading result-card__heading"},[e("div",{staticClass:"result-card__title"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Pemimpin Mengikut Jawatan":"Kedudukan Calon")+"\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"result-card__meta"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Siapa mendahului (dengan beza undi)":"Mengikut jawatan dipilih")+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"panel-body result-card__body"},["0"===String(t.position_id)?[t.leadersByPosition.length?e("div",{staticClass:"result-leaders"},t._l(t.leadersByPosition,(function(n){return e("div",{key:n.position_id,staticClass:"result-leader"},[e("div",{staticClass:"result-leader__top"},[e("div",{staticClass:"result-leader__position"},[t._v(t._s(n.position_name))]),t._v(" "),e("div",{staticClass:"result-leader__meta"},[e("span",[e("b",[t._v(t._s(n.winner_votes))]),t._v(" undi")]),t._v(" "),e("span",{staticClass:"result-leader__delta"},[t._v("(+"+t._s(n.delta)+" beza)")])])]),t._v(" "),e("div",{staticClass:"result-leader__name"},[t._v(t._s(n.winner_name))]),t._v(" "),e("div",{staticClass:"result-leader__bar"},[e("div",{staticClass:"result-leader__bar-fill",style:{width:n.pct+"%"}})])])})),0):e("div",{staticClass:"result-empty"},[t._v("\n\t\t\t\t\t\t\tTiada data untuk dipaparkan.\n\t\t\t\t\t\t")])]:[t.rankedNominees.length?e("div",{staticClass:"result-rank"},t._l(t.rankedNominees,(function(n){return e("div",{key:n.id,staticClass:"result-rank__row"},[e("div",{staticClass:"result-rank__top"},[e("div",{staticClass:"result-rank__name"},[t._v(t._s(n.name))]),t._v(" "),e("div",{staticClass:"result-rank__votes"},[e("b",[t._v(t._s(n.votes))]),t._v(" undi\n\t\t\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"result-rank__bar"},[e("div",{staticClass:"result-rank__bar-fill",style:{width:n.pct+"%"}})]),t._v(" "),e("div",{staticClass:"result-rank__meta"},[t._v(t._s(n.pct)+"%")])])})),0):e("div",{staticClass:"result-empty"},[t._v("\n\t\t\t\t\t\t\tTiada calon untuk jawatan ini.\n\t\t\t\t\t\t")])]],2)])])]),t._v(" "),e("div",{staticClass:"row",staticStyle:{"margin-top":"12px"}},[e("div",{staticClass:"col-md-12"},[e("div",{staticClass:"panel panel-default result-card"},[e("div",{staticClass:"panel-heading result-card__heading"},[e("div",{staticClass:"result-card__title"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Analitik Ringkas":"Ringkasan Jawatan")+"\n\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"result-card__meta"},[t._v("\n\t\t\t\t\t\t"+t._s("0"===String(t.position_id)?"Top calon & jumlah undi mengikut jawatan":"Jumlah undi:"+t.totalVotes)+"\n\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"panel-body result-card__body"},["0"===String(t.position_id)?[e("div",{staticClass:"result-mini-title"},[t._v("Top Calon (Overall)")]),t._v(" "),e("BarChart",{staticClass:"result-top-chart",attrs:{labels:t.topNominees.map((function(t){return t.label})),values:t.topNominees.map((function(t){return t.votes})),"background-color":"rgba(54, 162, 235, 0.75)","border-color":"rgba(54, 162, 235, 1)"}}),t._v(" "),t.topNominees.length?t._e():e("div",{staticClass:"result-empty"},[t._v("Tiada data untuk dipaparkan.")]),t._v(" "),e("div",{staticClass:"result-mini-title",staticStyle:{"margin-top":"14px"}},[t._v("Jumlah Undi Mengikut Jawatan")]),t._v(" "),e("BarChart",{staticClass:"result-top-chart",attrs:{labels:t.positionTotals.map((function(t){return t.label})),values:t.positionTotals.map((function(t){return t.votes})),"background-color":"rgba(75, 192, 192, 0.55)","border-color":"rgba(75, 192, 192, 1)"}})]:[e("div",{staticClass:"result-empty"},[t._v("\n\t\t\t\t\t\t\tPilih “Semua” untuk melihat analitik keseluruhan. Untuk jawatan ini, rujuk senarai di\n\t\t\t\t\t\t\tkiri.\n\t\t\t\t\t\t")])]],2)])])])])}),[],!1,null,"c5017720",null);const qd=Wd.exports;const $d={created:function(){this.util.setTitle("MyKoPKB-Kemaskini Sesi")}};const Kd=(0,m.A)($d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-8 col-md-offset-2"},[e("h4",[t._v("Kemaskini Sesi")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const Gd={data:function(){return{id:0,positionLoading:!1,positionTableHeaders:[{title:"Nama",key:"name",sortable:!0},{title:"Tindakan",key:"actions",sortable:!1}]}},created:function(){this.$route.query.refresh&&(this.refreshPosition(),this.$router.replace({name:"Kemaskini Sesi"}))},methods:{refreshPosition:function(){var t=this;this.positionLoading=!0,this.util.notify("Refreshing Position","loading"),axios.get(config.API+"position").then((function(e){$.notifyClose(),t.data.positions=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.positionLoading=!1}))},edit:function(t){this.data.position=t,this.$router.push({name:"Edit Position",params:{id:this.data.position.id}})},deletePosition:function(){var t=this;this.util.notify("Deleting position","loading"),this.util.hideModal("#delete-position-modal"),axios.delete(config.API+"position/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshPosition()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))}}},Yd=Gd;const Xd=(0,m.A)(Yd,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Tambah Sesi"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Sesi\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.refreshPosition()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Sesi\n\t\t\t\t")])],1),t._v(" "),e("admin-data-table",{attrs:{headers:t.positionTableHeaders,items:t.data.positions,loading:t.positionLoading,"items-per-page":10,"show-pagination":!0,"empty-text":"Tiada jawatan",exportable:!0,"export-file-name":"jawatan"},scopedSlots:t._u([{key:"item-actions",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-info",attrs:{type:"button"},on:{click:function(e){return t.edit(a)}}},[e("i",{staticClass:"fa fa-edit"}),t._v(" Edit\n\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){t.util.showModal("#delete-position-modal"),t.id=a.id}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Padam\n\t\t\t\t\t")])]}}])})],1)]),t._v(" "),e("modal",{attrs:{id:"delete-position-modal"}},[e("modal-header",[t._v("Padam Jawatan")]),t._v(" "),e("modal-body",[e("h2",[t._v("Are you sure to delete Position?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deletePosition()}}},[t._v("Padam")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-position-modal")}}},[t._v("Cancel")])])],1)],1)}),[],!1,null,null,null).exports;const Jd={data:function(){return{loading:!1}},methods:{add:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Adding Position","loading"),axios.post(config.API+"position",$("#add-form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&t.$router.push({name:"Kemaskini Sesi",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const Zd=(0,m.A)(Jd,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Tambah Sesi")]),t._v(" "),e("form",{attrs:{id:"add-form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[t._m(0),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-success",attrs:{type:"submit"}},[t._v("Hantar")]),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Kemaskini Sesi"}}},[t._v("Kembali")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""}})])}],!1,null,null,null).exports;const Qd={data:function(){return{loading:!1}},created:function(){this.data.position.id||this.$router.push({name:"Kemaskini Sesi"})},methods:{edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating position","loading"),axios.put(config.API+"position/"+this.data.position.id,$("#edit-form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Kemaskini Sesi",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const th=(0,m.A)(Qd,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Edit Sesi")]),t._v(" "),e("form",{attrs:{id:"edit-form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.position.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-success",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Kemaskini Sesi"}}},[t._v("Kembali")])],1)])])])}),[],!1,null,null,null).exports;const eh={created:function(){this.util.setTitle("MyKoPKB - Manage Partylist")}};const nh=(0,m.A)(eh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-8 col-md-offset-2"},[e("h4",[t._v("Manage Partylist")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const ah={data:function(){return{id:0}},created:function(){this.$route.query.refresh&&(this.refreshPartylist(),this.$router.replace({name:"Manage Partylist"}))},methods:{refreshPartylist:function(){var t=this;this.util.notify("Refreshing Partylist","loading"),axios.get(config.API+"partylist").then((function(e){console.log(e),$.notifyClose(),t.data.partylists=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},edit:function(t){this.data.partylist=this.data.partylists[t],this.$router.push({name:"Edit Partylist",params:{id:this.data.partylist.id}})},deletePartylist:function(){var t=this;this.util.notify("Deleting partylist","loading"),this.util.hideModal("#delete-partylist-modal"),axios.delete(config.API+"partylist/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshPartylist()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))}}},rh=ah;var ih=(0,m.A)(rh,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Add Partylist"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Add Partylist\n\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.refreshPartylist()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Refresh Partylist\n\t\t\t")])],1),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover",attrs:{id:"partylist_table"}},[t._m(0),t._v(" "),e("tbody",[t._l(t.data.partylists,(function(n,a){return e("tr",[e("td",[t._v(t._s(n.id))]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[e("button",{staticClass:"btn btn-info",on:{click:function(e){return t.edit(a)}}},[e("i",{staticClass:"fa fa-edit"}),t._v(" Edit\n\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",on:{click:function(e){t.util.showModal("#delete-partylist-modal"),t.id=n.id}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Delete\n\t\t\t\t\t\t\t")])])])})),t._v(" "),t.data.partylists.length<1?e("tr",[e("td",{attrs:{colspan:"3"}},[t._v("No Partylist")])]):t._e()],2)])])])]),t._v(" "),e("modal",{attrs:{id:"delete-partylist-modal"}},[e("modal-header",[t._v("Delete Partylist")]),t._v(" "),e("modal-body",[e("h2",[t._v("Are you sure to delete Partylist?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deletePartylist()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-partylist-modal")}}},[t._v("Cancel")])])],1)],1)}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("ID")]),t._v(" "),e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Action")])])])}],!1,null,null,null);const oh=ih.exports;const sh={data:function(){return{loading:!1}},methods:{add:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Adding Partylist","loading"),axios.post(config.API+"partylist",$("#add-form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&t.$router.push({name:"Manage Partylist",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const lh=(0,m.A)(sh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Add Partylist")]),t._v(" "),e("form",{attrs:{id:"add-form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[t._m(0),t._v(" "),e("div",{staticClass:"form-group"},[e("button",{staticClass:"btn btn-success",attrs:{type:"submit"}},[t._v("Submit")]),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Partylist"}}},[t._v("Back")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""}})])}],!1,null,null,null).exports;const ch={data:function(){return{loading:!1}},created:function(){this.data.partylist.id||this.$router.push({name:"Manage Partylist"})},methods:{edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating partylist","loading"),axios.put(config.API+"partylist/"+this.data.partylist.id,$("#edit-form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Partylist",query:{refresh:!0}})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const uh=(0,m.A)(ch,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Edit Partylist")]),t._v(" "),e("form",{attrs:{id:"edit-form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Name")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.partylist.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-success",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Partylist"}}},[t._v("Back")])],1)])])])}),[],!1,null,null,null).exports;const dh={computed:{showHeader:function(){return"Tambah Pengundi"!==this.$route.name},headerTitle:function(){return"Kehadiran Calon"===this.$route.name?"Kehadiran":"Maklumat Pengundi"},isWideVoterRoute:function(){return"Tambah Pengundi"===this.$route.name||"Kehadiran Calon"===this.$route.name},wrapperClass:function(){return this.isWideVoterRoute?"container-fluid voter-admin-wrap voter-admin-wrap--boxed voter-admin-wrap--wide":"container col-md-8 col-md-offset-2 voter-admin-wrap voter-admin-wrap--boxed"}},created:function(){this.util.setTitle("MyKoPKB - Maklumat Pengundi")}};var hh=n(3641),fh={insert:"head",singleton:!1};i()(hh.A,fh);hh.A.locals;const ph=(0,m.A)(dh,(function(){var t=this,e=t._self._c;return e("div",{class:t.wrapperClass},[t.showHeader?e("h4",[t._v(t._s(t.headerTitle))]):t._e(),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const mh={data:function(){return{id:0,voterLoading:!1,searchName:"",searchNoAnggota:"",searchNoKp:"",voterTableHeaders:[{title:"Nama Anggota",key:"name",sortable:!0},{title:"No. Kad Pengenalan",key:"no_kp",sortable:!0},{title:"No. Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Saham",key:"saham",sortable:!0},{title:"Yuran",key:"yuran",sortable:!0},{title:"Tindakan",key:"actions",sortable:!1}]}},computed:{hasAnySearch:function(){return Boolean(this.searchName&&this.searchName.length||this.searchNoAnggota&&this.searchNoAnggota.length||this.searchNoKp&&this.searchNoKp.length)},voterListItems:function(){var t=this.data.voters;return t&&Array.isArray(t.data)?t.data:[]},pages:function(){var t=[],e=this.data.voters&&this.data.voters.last_page;if(e)for(var n=1;n<=e;n++)t.push({page:n});return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1}},created:function(){this.refreshVoter()},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()}},methods:{search:function(){},applySearch:function(){var t=Object.assign({},this.$route.query);t.page=1,this.$router.replace({query:t}),this.refreshVoter()},clearSearch:function(){this.searchName="",this.searchNoAnggota="",this.searchNoKp="",this.applySearch()},refreshVoter:function(){var t=this;this.voterLoading=!0,this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter",{params:{page:this.current_page,name:this.searchName||void 0,no_anggota:this.searchNoAnggota||void 0,no_kp:this.searchNoKp||void 0}}).then((function(e){$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.voterLoading=!1}))},edit:function(t){this.data.voter=t,this.$router.push({name:"Edit Voter",params:{id:this.data.voter.id}})},deleteVoter:function(){var t=this;this.util.notify("Deleting voter","loading"),this.util.hideModal("#delete-voter-modal"),axios.delete(config.API+"voter/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshVoter()})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))}}},gh=mh;var vh=n(8497),bh={insert:"head",singleton:!1};i()(vh.A,bh);vh.A.locals;const _h=(0,m.A)(gh,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Tambah Pengundi"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Pengundi\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.refreshVoter()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Pengundi\n\t\t\t\t")])],1),t._v(" "),e("div",{staticClass:"kehadiran-search"},[e("div",{staticClass:"kehadiran-search__label"},[t._v("Carian pantas:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchName,expression:"searchName",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input kehadiran-search__input--name",attrs:{placeholder:"Nama Anggota"},domProps:{value:t.searchName},on:{input:function(e){e.target.composing||(t.searchName=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoAnggota,expression:"searchNoAnggota",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Anggota"},domProps:{value:t.searchNoAnggota},on:{input:function(e){e.target.composing||(t.searchNoAnggota=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoKp,expression:"searchNoKp",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Kad Pengenalan"},domProps:{value:t.searchNoKp},on:{input:function(e){e.target.composing||(t.searchNoKp=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.applySearch()}}},[t._v("Cari")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:!t.hasAnySearch},on:{click:function(e){return t.clearSearch()}}},[t._v("Reset")])]),t._v(" "),e("admin-data-table",{attrs:{headers:t.voterTableHeaders,items:t.voterListItems,loading:t.voterLoading,"show-pagination":!0,"index-title":"Bil.","empty-text":"Tiada pengundi",exportable:!0},scopedSlots:t._u([{key:"item-actions",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-info",attrs:{type:"button"},on:{click:function(e){return t.edit(a)}}},[e("i",{staticClass:"fa fa-edit"}),t._v(" Kemaskini\n\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){t.util.showModal("#delete-voter-modal"),t.id=a.id}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Padam\n\t\t\t\t\t")])]}}])}),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.page,class:{active:Number(t.current_page)===n.page},attrs:{tag:"li",to:{query:{page:n.page}},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()],1)]),t._v(" "),e("modal",{attrs:{id:"delete-voter-modal"}},[e("modal-header",[t._v("Delete Voter")]),t._v(" "),e("modal-body",[e("h2",[t._v("Are you sure to delete voter?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deleteVoter()}}},[t._v("Delete")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-voter-modal")}}},[t._v("Cancel")])])],1)],1)}),[],!1,null,null,null).exports;const yh={data:function(){return{loading:!1,catalog:[],catalogLoading:!1,catalogSaving:!1,catalogError:"",catalogFilter:"",selectedFilter:"",selectedNoKp:[]}},computed:{catalogByKp:function(){var t,e={};for(t=0;t<this.catalog.length;t++)e[this.catalog[t].no_kp]=this.catalog[t];return e},selectedRows:function(){var t,e=this.catalogByKp,n=[];for(t=0;t<this.selectedNoKp.length;t++){var a=this.selectedNoKp[t];e[a]&&n.push(e[a])}return n},filteredCatalog:function(){var t=(this.catalogFilter||"").toLowerCase();return t?this.catalog.filter((function(e){return e.name&&-1!==String(e.name).toLowerCase().indexOf(t)||e.no_kp&&-1!==String(e.no_kp).toLowerCase().indexOf(t)||e.no_anggota&&-1!==String(e.no_anggota).toLowerCase().indexOf(t)||e.unit&&-1!==String(e.unit).toLowerCase().indexOf(t)})):this.catalog},filteredSelectedRows:function(){var t=this.selectedRows,e=(this.selectedFilter||"").toLowerCase();return e?t.filter((function(t){return t.name&&-1!==String(t.name).toLowerCase().indexOf(e)||t.no_kp&&-1!==String(t.no_kp).toLowerCase().indexOf(e)||t.no_anggota&&-1!==String(t.no_anggota).toLowerCase().indexOf(e)||t.unit&&-1!==String(t.unit).toLowerCase().indexOf(e)})):t},headerChecked:function(){var t=this.filteredCatalog;if(!t.length)return!1;var e=this;return t.every((function(t){return e.isSelected(t.no_kp)}))}},created:function(){this.loadMemberCatalog()},methods:{openManualModal:function(){this.util.showModal("#add-voter-manual-modal")},closeManualModal:function(){this.util.hideModal("#add-voter-manual-modal")},resetManualForm:function(){var t=document.getElementById("add-form");t&&t.reset()},loadMemberCatalog:function(){var t=this;this.catalogLoading=!0,this.catalogError="",axios.get(config.API+"voter/member-catalog").then((function(e){t.catalog=e.data&&e.data.catalog?e.data.catalog:[],t.selectedNoKp=t.catalog.filter((function(t){return t.in_current_election})).map((function(t){return t.no_kp}))})).catch((function(e){t.catalogError=e.response&&e.response.data&&e.response.data.message?e.response.data.message:"Gagal memuatkan senarai.",t.util.showResult(e)})).finally((function(){t.catalogLoading=!1}))},isSelected:function(t){return-1!==this.selectedNoKp.indexOf(t)},toggleRow:function(t,e){var n=this.selectedNoKp.slice(),a=n.indexOf(t);e.target.checked?-1===a&&n.push(t):-1!==a&&n.splice(a,1),this.selectedNoKp=n},toggleHeader:function(t){var e,n=t.target.checked,a=this.filteredCatalog.map((function(t){return t.no_kp})),r={};for(e=0;e<this.selectedNoKp.length;e++)r[this.selectedNoKp[e]]=!0;if(n)for(e=0;e<a.length;e++)r[a[e]]=!0;else for(e=0;e<a.length;e++)delete r[a[e]];this.selectedNoKp=Object.keys(r)},selectAllFiltered:function(){var t,e={};for(t=0;t<this.selectedNoKp.length;t++)e[this.selectedNoKp[t]]=!0;var n=this.filteredCatalog;for(t=0;t<n.length;t++)e[n[t].no_kp]=!0;this.selectedNoKp=Object.keys(e)},clearAllFiltered:function(){var t,e={},n=this.filteredCatalog;for(t=0;t<n.length;t++)e[n[t].no_kp]=!0;this.selectedNoKp=this.selectedNoKp.filter((function(t){return!e[t]}))},removeSelected:function(t){this.selectedNoKp=this.selectedNoKp.filter((function(e){return e!==t}))},clearAllSelected:function(){this.selectedNoKp=[]},saveApplicable:function(){if(!this.catalogSaving){var t=this;this.catalogSaving=!0,this.util.notify("Menyimpan…","loading"),axios.post(config.API+"voter/sync-applicable",{selected_no_kp:this.selectedNoKp}).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Voter"})})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.catalogSaving=!1}))}},add:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Adding Voter","loading"),axios.post(config.API+"voter",$("#add-form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&(t.closeManualModal(),t.resetManualForm(),t.$router.push({name:"Manage Voter"}))})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}},wh=yh;var xh=n(8794),kh={insert:"head",singleton:!1};i()(xh.A,kh);xh.A.locals;const Sh=(0,m.A)(wh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default voter-add-page"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"voter-add-page__header clearfix"},[e("h4",{staticClass:"pull-left"},[t._v("Tambah Pengundi")]),t._v(" "),e("div",{staticClass:"pull-right voter-add-page__header-actions"},[e("button",{staticClass:"btn btn-success",attrs:{type:"button"},on:{click:t.openManualModal}},[e("i",{staticClass:"fa fa-user-plus"}),t._v(" Daftar pengundi baru\n\t\t\t\t")]),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Voter"}}},[e("i",{staticClass:"fa fa-arrow-left"}),t._v(" Kembali\n\t\t\t\t")])],1)]),t._v(" "),e("p",{staticClass:"text-muted small voter-add-page__intro"},[t._v("\n\t\t\tKiri: keseluruhan pengundi (ikut No. KP, data terkini). Kanan: yang ditanda layak untuk pilihan raya\n\t\t\tsemasa.\n\t\t\tYang tidak berada di senarai kanan akan dipadam daripada pilihan raya ini apabila anda simpan.\n\t\t")]),t._v(" "),e("div",{staticClass:"voter-add-split row"},[e("div",{staticClass:"col-md-6 voter-add-split__col"},[e("div",{staticClass:"panel panel-default voter-add-split__panel"},[e("div",{staticClass:"panel-heading clearfix"},[e("strong",{staticClass:"pull-left"},[t._v("Semua pengundi")]),t._v(" "),t.catalogLoading?e("span",{staticClass:"text-muted small pull-left voter-add-heading__loading"},[e("i",{staticClass:"fa fa-spinner fa-spin"})]):t._e(),t._v(" "),e("span",{staticClass:"badge pull-right",attrs:{title:"Jumlah pengundi unik (No. KP)"}},[t._v(t._s(t.catalog.length))]),t._v(" "),t.catalogFilter?e("span",{staticClass:"text-muted small pull-right voter-add-heading__filter-hint"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.filteredCatalog.length)+" dipaparkan ·\n\t\t\t\t\t\t")]):t._e()]),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-inline voter-batch-toolbar"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.catalogFilter,expression:"catalogFilter",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapis nama / No. KP / No. anggota…"},domProps:{value:t.catalogFilter},on:{input:function(e){e.target.composing||(t.catalogFilter=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:t.selectAllFiltered}},[t._v("Tanda\n\t\t\t\t\t\t\t\tsemua (ditapis)")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button"},on:{click:t.clearAllFiltered}},[t._v("Nyahtanda\n\t\t\t\t\t\t\t\t(ditapis)")])]),t._v(" "),t.catalogError?e("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.catalogError))]):t._e(),t._v(" "),e("div",{staticClass:"table-responsive voter-add-table-wrap"},[!t.catalogLoading||t.catalog.length?e("table",{staticClass:"table table-bordered table-condensed table-striped"},[e("thead",[e("tr",[e("th",{staticStyle:{width:"44px"}},[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.headerChecked},on:{change:function(e){return t.toggleHeader(e)}}})]),t._v(" "),e("th",[t._v("Nama")]),t._v(" "),e("th",[t._v("No. KP")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")]),t._v(" "),e("th",{staticStyle:{width:"88px"}},[t._v("PR semasa")])])]),t._v(" "),e("tbody",t._l(t.filteredCatalog,(function(n){return e("tr",{key:n.no_kp},[e("td",[e("input",{attrs:{type:"checkbox"},domProps:{checked:t.isSelected(n.no_kp)},on:{change:function(e){return t.toggleRow(n.no_kp,e)}}})]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",[t._v(t._s(n.unit))]),t._v(" "),e("td",[n.in_current_election?e("span",{staticClass:"label label-success"},[t._v("Ya")]):e("span",{staticClass:"label label-default"},[t._v("—")])])])})),0)]):t._e()]),t._v(" "),t.catalogLoading||t.catalog.length?t._e():e("p",{staticClass:"text-muted"},[t._v("Tiada rekod pengundi dalam\n\t\t\t\t\t\t\tpangkalan data.")])])])]),t._v(" "),e("div",{staticClass:"col-md-6 voter-add-split__col"},[e("div",{staticClass:"panel panel-info voter-add-split__panel"},[e("div",{staticClass:"panel-heading clearfix"},[e("strong",{staticClass:"pull-left"},[t._v("Layak mengundi (pilihan raya semasa)")]),t._v(" "),e("span",{staticClass:"badge pull-right",attrs:{title:"Jumlah ditanda layak"}},[t._v(t._s(t.selectedNoKp.length))]),t._v(" "),t.selectedFilter?e("span",{staticClass:"text-muted small pull-right voter-add-heading__filter-hint"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.filteredSelectedRows.length)+" dipaparkan ·\n\t\t\t\t\t\t")]):t._e()]),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-inline voter-batch-toolbar voter-batch-toolbar--right"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.selectedFilter,expression:"selectedFilter",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapis senarai dipilih…"},domProps:{value:t.selectedFilter},on:{input:function(e){e.target.composing||(t.selectedFilter=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{type:"button",disabled:!t.selectedNoKp.length},on:{click:t.clearAllSelected}},[t._v("\n\t\t\t\t\t\t\t\tKosongkan semua\n\t\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.catalogSaving||t.catalogLoading},on:{click:function(e){return t.saveApplicable()}}},[t._v("\n\t\t\t\t\t\t\t\tSimpan pilihan\n\t\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"table-responsive voter-add-table-wrap voter-add-table-wrap--selected"},[t.filteredSelectedRows.length?e("table",{staticClass:"table table-bordered table-condensed table-striped"},[t._m(0),t._v(" "),e("tbody",t._l(t.filteredSelectedRows,(function(n){return e("tr",{key:n.no_kp},[e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",{staticClass:"text-center"},[e("button",{staticClass:"btn btn-xs btn-danger",attrs:{type:"button",title:"Buang"},on:{click:function(e){return t.removeSelected(n.no_kp)}}},[e("i",{staticClass:"fa fa-times"})])])])})),0)]):e("p",{staticClass:"text-muted voter-add-empty-selected"},[t._v("Tiada pengundi ditanda. Tandakan\n\t\t\t\t\t\t\t\tpada jadual kiri.")])])])])])]),t._v(" "),e("modal",{attrs:{id:"add-voter-manual-modal"}},[e("modal-header",[t._v("Daftar pengundi baru")]),t._v(" "),e("modal-body",[e("form",{attrs:{id:"add-form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-name"}},[t._v("Nama Anggota")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-name",type:"text",name:"name",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-no_kp"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-no_kp",type:"text",name:"no_kp",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-no_anggota"}},[t._v("No. Anggota")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-no_anggota",type:"text",name:"no_anggota",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-unit"}},[t._v("Unit")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-unit",type:"text",name:"unit",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-alamat"}},[t._v("Alamat")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-alamat",type:"text",name:"alamat",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-status_anggota"}},[t._v("Status Anggota")]),t._v(" "),e("select",{staticClass:"form-control",attrs:{id:"add-form-status_anggota",name:"status_anggota",required:""}},[e("option",{attrs:{value:"inactive"}},[t._v("-- Pilih Status --")]),t._v(" "),e("option",{attrs:{value:"active"}},[t._v("Aktif")]),t._v(" "),e("option",{attrs:{value:"inactive"}},[t._v("Berhenti")])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-telefon"}},[t._v("No. Telefon")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-telefon",type:"text",name:"telefon",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-saham"}},[t._v("Saham")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-saham",type:"text",name:"saham",required:""}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"add-form-yuran"}},[t._v("Yuran")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"add-form-yuran",type:"text",name:"yuran",required:""}})])])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-success",attrs:{type:"button",disabled:t.loading},on:{click:function(e){return t.add()}}},[t._v("Hantar")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:t.closeManualModal}},[t._v("Batal")])])],1)],1)])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Nama")]),t._v(" "),e("th",[t._v("No. KP")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",{staticStyle:{width:"52px"}})])])}],!1,null,null,null).exports;const Ch={data:function(){return{loading:!1}},created:function(){this.data.voter.id||this.$router.push({name:"Manage Voter"})},methods:{edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating voter","loading"),axios.put(config.API+"voter/"+this.data.voter.id,$("#edit-form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Voter"})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e)}))}}}};const Ah=(0,m.A)(Ch,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[t._m(0),t._v(" "),e("form",{attrs:{id:"edit-form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.voter.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"no_kp"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"no_kp",required:""},domProps:{value:t.data.voter.no_kp}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"telefon"}},[t._v("No. Telefon")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"telefon",required:""},domProps:{value:t.data.voter.telefon}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"Unit"}},[t._v("Unit")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"unit",required:""},domProps:{value:t.data.voter.unit}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"saham"}},[t._v("Saham")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"saham",required:""},domProps:{value:t.data.voter.saham}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"yuran"}},[t._v("Yuran")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"yuran",required:""},domProps:{value:t.data.voter.yuran}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-success",attrs:{type:"submit",value:"Hantar"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Voter"}}},[t._v("Kembali")])],1)])])])}),[function(){var t=this._self._c;return t("h4",[t("b",[this._v("Kemaskini Maklumat")])])}],!1,null,null,null).exports;const Eh={data:function(){var t=this;return{id:0,voterLoading:!1,searchNoAnggota:"",searchNoKp:"",selectedVoter:null,verifyModalVoter:null,verifyModalLoading:!1,verifyModalError:"",detailLoading:!1,detailError:"",claimCodeInput:"",payoutReference:"",payoutNote:"",kehadiranTableHeaders:[{title:"Nama Anggota",key:"name",sortable:!0},{title:"No. Kad Pengenalan",key:"no_kp",sortable:!0},{title:"No. Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Kehadiran",key:"kehadiran",sortable:!0,exportValue:function(e){return t.getKehadiranString(e?e.kehadiran:null)}},{title:"Pendaftaran",key:"fizikal_reg",sortable:!1,exportValue:function(t){return t?1!==Number(t.kehadiran)?"—":t.fizikal_registration_verified_at?"Disahkan":"Menunggu":""}},{title:"Undi",key:"has_voted",sortable:!1,exportValue:function(t){return Number(t&&t.votes_count)>0?"Undi":"Belum"}},{title:"Status",key:"allowance",sortable:!1,exportValue:function(e){return t.isCashPaid(e)?"Sudah Bayar":"Belum Bayar"}},{title:"Tindakan",key:"action",sortable:!1}]}},created:function(){this.refreshVoter()},methods:{search:function(){},refreshVoter:function(){var t=this;this.voterLoading=!0,this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter",{params:{page:this.current_page,kehadiran:this.current_kehadiran||void 0,fizikal_reg:this.current_fizikal_reg||void 0,has_voted:this.current_has_voted||void 0,cash_status:this.current_cash_status||void 0,no_anggota:this.searchNoAnggota||void 0,no_kp:this.searchNoKp||void 0}}).then((function(e){console.log(e),$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)})).finally((function(){t.voterLoading=!1}))},applySearch:function(){var t=Object.assign({},this.$route.query);t.page=1,this.$router.replace({query:t}),this.refreshVoter()},clearSearch:function(){this.searchNoAnggota="",this.searchNoKp="",this.applySearch()},setKehadiranFilter:function(t){var e=Object.assign({},this.$route.query);1===t||2===t?e.kehadiran=String(t):"unset"===t?e.kehadiran="unset":delete e.kehadiran,e.page=1,this.$router.replace({query:e})},setFizikalRegFilter:function(t){var e=Object.assign({},this.$route.query);"pending"===t||"verified"===t?e.fizikal_reg=t:delete e.fizikal_reg,e.page=1,this.$router.replace({query:e})},setHasVotedFilter:function(t){var e=Object.assign({},this.$route.query);"1"===t||"0"===t?e.has_voted=t:delete e.has_voted,e.page=1,this.$router.replace({query:e})},setCashStatusFilter:function(t){var e=Object.assign({},this.$route.query);"paid"===t||"unpaid"===t?e.cash_status=t:delete e.cash_status,e.page=1,this.$router.replace({query:e})},paginationQueryForPage:function(t){var e={page:t};return this.current_kehadiran&&(e.kehadiran=this.current_kehadiran),this.current_fizikal_reg&&(e.fizikal_reg=this.current_fizikal_reg),this.current_has_voted&&(e.has_voted=this.current_has_voted),this.current_cash_status&&(e.cash_status=this.current_cash_status),e},canVerifyFizikalRegistration:function(t){return!!t&&(1===Number(t.kehadiran)&&!t.fizikal_registration_verified_at)},openFizikalVerifyModal:function(t){t&&this.canVerifyFizikalRegistration(t)&&(this.verifyModalError="",this.verifyModalVoter=Object.assign({},t),this.util.showModal("#fizikal-verify-modal"))},submitFizikalVerify:function(){var t=this;this.verifyModalVoter&&(this.verifyModalError="",this.verifyModalLoading=!0,axios.post(config.API+"voter/"+this.verifyModalVoter.id+"/verify-fizikal-registration").then((function(e){if(e&&e.data&&e.data.status&&"success"!==e.data.status)return t.verifyModalError=e.data.message||"Permintaan gagal.",void t.util.notify(t.verifyModalError,"error");if(t.util.showResult(e,"success")){var n=e.data.voter;n&&t.selectedVoter&&t.selectedVoter.id===n.id&&(t.selectedVoter.fizikal_registration_verified_at=n.fizikal_registration_verified_at),t.util.hideModal("#fizikal-verify-modal"),t.verifyModalVoter=null,t.refreshVoter()}})).catch((function(e){t.verifyModalError=e&&e.response&&e.response.data&&e.response.data.message?e.response.data.message:e&&e.message?e.message:"Gagal mengesahkan pendaftaran.",e&&e.response?t.util.showResult(e,"error"):t.util.notify(t.verifyModalError,"error")})).finally((function(){t.verifyModalLoading=!1})))},getKehadiranString:function(t){switch(t){case 1:return"Fizikal";case 2:return"Maya";default:return"-"}},getPDFKehadiranurl:function(t){return"/kehadiranpdf/".concat(t)},isCashPaid:function(t){return Boolean(t&&t.cash_paid_at)},canPayCash:function(t){return!!t&&(!this.isCashPaid(t)&&(1===Number(t.kehadiran)&&(Number(t.votes_count)>0||this.canClaimAllowanceWithoutVoteAdmin(t))))},openDetail:function(t){this.detailError="",this.selectedVoter=Object.assign({},t),this.claimCodeInput="",this.payoutReference=null!=t.cash_payout_reference&&void 0!==t.cash_payout_reference?String(t.cash_payout_reference):"",this.payoutNote=null!=t.cash_payout_note&&void 0!==t.cash_payout_note?String(t.cash_payout_note):"",this.util.showModal("#allowance-modal")},formatRmDisplay:function(t){if(null==t||""===t)return"—";var e=Number(t);return Number.isNaN(e)?String(t):e.toLocaleString("en-MY",{minimumFractionDigits:2,maximumFractionDigits:2})},canClaimAllowanceWithoutVoteAdmin:function(t){if(!t||1!==Number(t.kehadiran))return!1;if(Number(t.votes_count)>0)return!1;var e=Number(t.saham),n=!Number.isNaN(e)&&e>=500;return 0!==Number(t.kehadiran)&&(1!==Number(t.kehadiran)||t.fizikal_registration_verified_at)&&!n},payCash:function(){var t=this;if(this.selectedVoter){this.detailError="",this.detailLoading=!0;var e={voter_id:this.selectedVoter.id,method:"cash",claim_code:this.claimCodeInput||void 0,reference:this.payoutReference||void 0,note:this.payoutNote||void 0},n=this.allowanceTunaiAmountRM;null==n||Number.isNaN(Number(n))||(e.amount_cents=Math.round(100*Number(n))),axios.post(config.API+"allowance/payout",e).then((function(e){if(e&&e.data&&e.data.status&&"success"!==e.data.status)return t.detailError=e.data.message||"Permintaan gagal.",void t.util.notify(t.detailError,"error");if(t.util.showResult(e,"success"))if(t.refreshVoter(),e&&e.data&&e.data.payout){var n=e.data.payout;t.selectedVoter.cash_paid_at=n.paid_at,t.selectedVoter.cash_payout_id=n.id,t.selectedVoter.cash_paid_by_admin_name=e&&e.data&&e.data.paid_by_admin_name?e.data.paid_by_admin_name:t.selectedVoter.cash_paid_by_admin_name,t.selectedVoter.cash_paid_by_admin_email=e&&e.data&&e.data.paid_by_admin_email?e.data.paid_by_admin_email:t.selectedVoter.cash_paid_by_admin_email,null!=n.reference&&(t.selectedVoter.cash_payout_reference=n.reference,t.payoutReference=n.reference?String(n.reference):""),null!=n.note&&(t.selectedVoter.cash_payout_note=n.note,t.payoutNote=n.note?String(n.note):"")}else t.selectedVoter.cash_paid_at=(new Date).toISOString()})).catch((function(e){t.detailError=e&&e.response&&e.response.data&&e.response.data.message?e.response.data.message:e&&e.message?e.message:"Gagal merekod bayaran.",e&&e.response?t.util.showResult(e,"error"):t.util.notify(t.detailError,"error")})).finally((function(){t.detailLoading=!1}))}},voidCashPayout:function(){var t=this;this.selectedVoter&&this.selectedVoter.cash_payout_id?(this.detailError="",this.detailLoading=!0,axios.post(config.API+"allowance/void/"+this.selectedVoter.cash_payout_id,{note:this.payoutNote||void 0}).then((function(e){if(e&&e.data&&e.data.status&&"success"!==e.data.status)return t.detailError=e.data.message||"Permintaan gagal.",void t.util.notify(t.detailError,"error");t.util.showResult(e,"success")&&(t.refreshVoter(),t.selectedVoter.cash_paid_at=null,t.selectedVoter.cash_payout_id=null,t.selectedVoter.cash_payout_reference=null,t.selectedVoter.cash_payout_note=null,t.payoutReference="",t.payoutNote="")})).catch((function(e){t.detailError=e&&e.response&&e.response.data&&e.response.data.message?e.response.data.message:e&&e.message?e.message:"Gagal membatalkan bayaran.",e&&e.response?t.util.showResult(e,"error"):t.util.notify(t.detailError,"error")})).finally((function(){t.detailLoading=!1}))):this.detailError="Rekod bayaran tidak dijumpai untuk dibatalkan."}},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()},"$route.query.kehadiran":function(){$.notifyClose(),this.refreshVoter()},"$route.query.fizikal_reg":function(){$.notifyClose(),this.refreshVoter()},"$route.query.has_voted":function(){$.notifyClose(),this.refreshVoter()},"$route.query.cash_status":function(){$.notifyClose(),this.refreshVoter()}},computed:{allowanceTunaiAmountRM:function(){if(!this.selectedVoter)return null;var t=Number(this.selectedVoter.kehadiran);return 1===t?300:2===t?150:null},allowanceTunaiDisplay:function(){var t=this.allowanceTunaiAmountRM;return null==t?"":Number(t).toFixed(2)},hasAnySearch:function(){return Boolean(this.searchNoAnggota&&this.searchNoAnggota.length||this.searchNoKp&&this.searchNoKp.length)},voterListItems:function(){var t=this.data.voters;return t&&Array.isArray(t.data)?t.data:[]},pages:function(){var t=[];if(this.data.voters.last_page)for(var e=1;e<=this.data.voters.last_page;e++){var n={};n.page=e,t.push(n)}return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1},current_kehadiran:function(){return this.$route.query.kehadiran?this.$route.query.kehadiran:null},current_fizikal_reg:function(){return this.$route.query.fizikal_reg?this.$route.query.fizikal_reg:null},current_has_voted:function(){var t=this.$route.query.has_voted;return"1"===t||"0"===t?t:null},current_cash_status:function(){var t=this.$route.query.cash_status;return"paid"===t||"unpaid"===t?t:null},verifyModalVoterNeedsLowSahamNote:function(){if(!this.verifyModalVoter)return!1;var t=this.verifyModalVoter;if(1!==Number(t.kehadiran))return!1;var e=Number(t.saham);return!Number.isNaN(e)&&e<500},selectedVoterShowsNoVoteEligibleNote:function(){return!!this.selectedVoter&&this.canClaimAllowanceWithoutVoteAdmin(this.selectedVoter)},attendancePercentage:function(){var t=this.voterListItems.reduce((function(t,e){return 1===Number(e&&e.kehadiran)?t+1:t}),0),e=this.voterListItems.reduce((function(t,e){return 2===Number(e&&e.kehadiran)?t+1:t}),0),n=t+e,a=this.voterListItems.length;return 0===a?0:(n/a*100).toFixed(2)},attendanceStats:function(){var t=this.voterListItems||[],e=t.reduce((function(t,e){return 1===Number(e&&e.kehadiran)?t+1:t}),0),n=t.reduce((function(t,e){return 2===Number(e&&e.kehadiran)?t+1:t}),0),a=e+n,r=t.length,i=0===r?1:r;return{fizikalCount:e,mayaCount:n,totalAttendance:a,fizikalPct:0===r?"0.00":(e/i*100).toFixed(2),mayaPct:0===r?"0.00":(n/i*100).toFixed(2),totalPct:0===r?"0.00":(a/i*100).toFixed(2)}}}},Th=Eh;var Ph=n(8787),Nh={insert:"head",singleton:!1};i()(Ph.A,Nh);Ph.A.locals;const Lh=(0,m.A)(Th,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"kehadiran-actions clearfix"},[e("button",{staticClass:"btn btn-success",on:{click:function(e){return t.refreshVoter()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Kemaskini Pengundi\n\t\t\t")]),t._v(" "),e("a",{staticClass:"btn btn-warning pull-right",attrs:{href:t.getPDFKehadiranurl(1)}},[e("i",{staticClass:"fa fa-download"}),t._v(" Muat Turun PDF\n\t\t\t")])]),t._v(" "),e("div",{staticClass:"kehadiran-search"},[e("div",{staticClass:"kehadiran-search__label"},[t._v("Carian pantas (kaunter):")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoAnggota,expression:"searchNoAnggota",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Anggota"},domProps:{value:t.searchNoAnggota},on:{input:function(e){e.target.composing||(t.searchNoAnggota=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.searchNoKp,expression:"searchNoKp",modifiers:{trim:!0}}],staticClass:"form-control kehadiran-search__input",attrs:{placeholder:"No. Kad Pengenalan"},domProps:{value:t.searchNoKp},on:{input:function(e){e.target.composing||(t.searchNoKp=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.applySearch()}}},[t._v("Cari")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:!t.hasAnySearch},on:{click:function(e){return t.clearSearch()}}},[t._v("Reset")])]),t._v(" "),e("div",{staticClass:"kehadiran-filter-panel"},[e("div",{staticClass:"kehadiran-filter-panel__title"},[t._v("Penapis")]),t._v(" "),e("div",{staticClass:"kehadiran-filter-groups"},[e("div",{staticClass:"kehadiran-filter-group"},[e("div",{staticClass:"kehadiran-filter-group__title"},[t._v("Kaedah kehadiran")]),t._v(" "),e("div",{staticClass:"kehadiran-filter-group__chips"},[e("button",{staticClass:"kehadiran-chip",class:{"is-active":!t.current_kehadiran},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter(null)}}},[t._v("\n\t\t\t\t\t\t\tSemua\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"unset"===String(t.current_kehadiran)},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter("unset")}}},[t._v("\n\t\t\t\t\t\t\tBelum Ditetapkan\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":1===Number(t.current_kehadiran)},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter(1)}}},[t._v("\n\t\t\t\t\t\t\tFizikal\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":2===Number(t.current_kehadiran)},attrs:{type:"button"},on:{click:function(e){return t.setKehadiranFilter(2)}}},[t._v("\n\t\t\t\t\t\t\tMaya\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"kehadiran-filter-group"},[e("div",{staticClass:"kehadiran-filter-group__title"},[t._v("Pendaftaran fizikal")]),t._v(" "),e("div",{staticClass:"kehadiran-filter-group__chips"},[e("button",{staticClass:"kehadiran-chip",class:{"is-active":!t.current_fizikal_reg},attrs:{type:"button"},on:{click:function(e){return t.setFizikalRegFilter(null)}}},[t._v("\n\t\t\t\t\t\t\tSemua\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"pending"===t.current_fizikal_reg},attrs:{type:"button"},on:{click:function(e){return t.setFizikalRegFilter("pending")}}},[t._v("\n\t\t\t\t\t\t\tMenunggu pengesahan\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"verified"===t.current_fizikal_reg},attrs:{type:"button"},on:{click:function(e){return t.setFizikalRegFilter("verified")}}},[t._v("\n\t\t\t\t\t\t\tDisahkan\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"kehadiran-filter-group"},[e("div",{staticClass:"kehadiran-filter-group__title"},[t._v("Undi")]),t._v(" "),e("div",{staticClass:"kehadiran-filter-group__chips"},[e("button",{staticClass:"kehadiran-chip",class:{"is-active":!t.current_has_voted},attrs:{type:"button"},on:{click:function(e){return t.setHasVotedFilter(null)}}},[t._v("\n\t\t\t\t\t\t\tSemua\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"1"===t.current_has_voted},attrs:{type:"button"},on:{click:function(e){return t.setHasVotedFilter("1")}}},[t._v("\n\t\t\t\t\t\t\tUndi\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"0"===t.current_has_voted},attrs:{type:"button"},on:{click:function(e){return t.setHasVotedFilter("0")}}},[t._v("\n\t\t\t\t\t\t\tBelum\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"kehadiran-filter-group"},[e("div",{staticClass:"kehadiran-filter-group__title"},[t._v("Bayaran tunai (elaun)")]),t._v(" "),e("div",{staticClass:"kehadiran-filter-group__chips"},[e("button",{staticClass:"kehadiran-chip",class:{"is-active":!t.current_cash_status},attrs:{type:"button"},on:{click:function(e){return t.setCashStatusFilter(null)}}},[t._v("\n\t\t\t\t\t\t\tSemua\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"paid"===t.current_cash_status},attrs:{type:"button"},on:{click:function(e){return t.setCashStatusFilter("paid")}}},[t._v("\n\t\t\t\t\t\t\tSudah Bayar\n\t\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"kehadiran-chip",class:{"is-active":"unpaid"===t.current_cash_status},attrs:{type:"button"},on:{click:function(e){return t.setCashStatusFilter("unpaid")}}},[t._v("\n\t\t\t\t\t\t\tBelum Bayar\n\t\t\t\t\t\t")])])])])]),t._v(" "),e("div",{staticClass:"kehadiran-stats"},[e("div",{staticClass:"kehadiran-stat"},[e("div",{staticClass:"kehadiran-stat__label"},[t._v("Fizikal")]),t._v(" "),e("div",{staticClass:"kehadiran-stat__value"},[t._v(t._s(t.attendanceStats.fizikalCount))]),t._v(" "),e("div",{staticClass:"kehadiran-stat__meta"},[t._v(t._s(t.attendanceStats.fizikalPct)+"%")])]),t._v(" "),e("div",{staticClass:"kehadiran-stat"},[e("div",{staticClass:"kehadiran-stat__label"},[t._v("Maya")]),t._v(" "),e("div",{staticClass:"kehadiran-stat__value"},[t._v(t._s(t.attendanceStats.mayaCount))]),t._v(" "),e("div",{staticClass:"kehadiran-stat__meta"},[t._v(t._s(t.attendanceStats.mayaPct)+"%")])]),t._v(" "),e("div",{staticClass:"kehadiran-stat kehadiran-stat--muted"},[e("div",{staticClass:"kehadiran-stat__label"},[t._v("Jumlah Kehadiran")]),t._v(" "),e("div",{staticClass:"kehadiran-stat__value"},[t._v(t._s(t.attendanceStats.totalAttendance))]),t._v(" "),e("div",{staticClass:"kehadiran-stat__meta"},[t._v(t._s(t.attendanceStats.totalPct)+"%")])])]),t._v(" "),e("admin-data-table",{attrs:{headers:t.kehadiranTableHeaders,items:t.voterListItems,loading:t.voterLoading,"show-pagination":!0,"index-title":"Bil.","empty-text":"Tiada rekod kehadiran",exportable:!0},scopedSlots:t._u([{key:"item-kehadiran",fn:function(e){var n=e.item;return[t._v("\n\t\t\t\t"+t._s(t.getKehadiranString(n.kehadiran))+"\n\t\t\t")]}},{key:"item-fizikal_reg",fn:function(n){var a=n.item;return[1!==Number(a.kehadiran)?e("span",{staticClass:"text-muted"},[t._v("—")]):a.fizikal_registration_verified_at?e("span",{staticClass:"kehadiran-pill kehadiran-pill--success"},[e("i",{staticClass:"fa fa-check-circle",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Disahkan")])]):e("span",{staticClass:"kehadiran-pill kehadiran-pill--warn"},[e("i",{staticClass:"fa fa-clock-o",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Menunggu")])])]}},{key:"item-has_voted",fn:function(n){var a=n.item;return[e("span",{staticClass:"kehadiran-pill",class:Number(a.votes_count)>0?"kehadiran-pill--success":"kehadiran-pill--muted"},[e("i",{staticClass:"fa",class:Number(a.votes_count)>0?"fa-check-circle":"fa-times-circle",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v(t._s(Number(a.votes_count)>0?"Undi":"Belum"))])])]}},{key:"item-allowance",fn:function(n){var a=n.item;return[e("span",{staticClass:"kehadiran-pill",class:t.isCashPaid(a)?"kehadiran-pill--success":"kehadiran-pill--warn"},[e("i",{staticClass:"fa",class:t.isCashPaid(a)?"fa-money":"fa-exclamation-circle",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v(t._s(t.isCashPaid(a)?"Sudah Bayar":"Belum Bayar"))])])]}},{key:"item-action",fn:function(n){var a=n.item;return[e("div",{staticClass:"kehadiran-action-cell"},[e("button",{staticClass:"btn btn-xs btn-primary kehadiran-action-btn",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.openDetail(a)}}},[e("i",{staticClass:"fa fa-eye",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Detail")])]),t._v(" "),t.canVerifyFizikalRegistration(a)?e("button",{staticClass:"btn btn-xs btn-success kehadiran-action-btn",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.openFizikalVerifyModal(a)}}},[e("i",{staticClass:"fa fa-check",attrs:{"aria-hidden":"true"}}),t._v(" "),e("span",[t._v("Sahkan")])]):t._e()])]}}])}),t._v(" "),e("div",{staticClass:"modal fade app-modal",attrs:{id:"allowance-modal",tabindex:"-1",role:"dialog","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog modal-lg",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(0),t._v(" "),t.selectedVoter?e("div",{staticClass:"modal-body"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6"},[e("table",{staticClass:"table table-condensed"},[e("tbody",[e("tr",[e("th",{staticStyle:{width:"160px"}},[t._v("Nama")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.name))])]),t._v(" "),e("tr",[e("th",[t._v("No. KP")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.no_kp))])]),t._v(" "),e("tr",[e("th",[t._v("No. Anggota")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.no_anggota))])]),t._v(" "),e("tr",[e("th",[t._v("Unit")]),t._v(" "),e("td",[t._v(t._s(t.selectedVoter.unit))])])])])]),t._v(" "),e("div",{staticClass:"col-md-6"},[e("table",{staticClass:"table table-condensed"},[e("tbody",[e("tr",[e("th",{staticStyle:{width:"160px"}},[t._v("Kehadiran")]),t._v(" "),e("td",[e("b",[t._v(t._s(t.getKehadiranString(t.selectedVoter.kehadiran)))])])]),t._v(" "),1===Number(t.selectedVoter.kehadiran)?e("tr",[e("th",[t._v("Pendaftaran")]),t._v(" "),e("td",[t.selectedVoter.fizikal_registration_verified_at?e("span",{staticClass:"label label-success"},[t._v("Disahkan")]):e("span",{staticClass:"label label-warning"},[t._v("Menunggu pengesahan")])])]):t._e(),t._v(" "),e("tr",[e("th",[t._v("Saham (RM)")]),t._v(" "),e("td",[t._v(t._s(t.formatRmDisplay(t.selectedVoter.saham)))])]),t._v(" "),e("tr",[e("th",[t._v("Yuran (RM)")]),t._v(" "),e("td",[t._v(t._s(t.formatRmDisplay(t.selectedVoter.yuran)))])]),t._v(" "),e("tr",[e("th",[t._v("Status Undi")]),t._v(" "),e("td",[e("span",{staticClass:"label",class:Number(t.selectedVoter.votes_count)>0?"label-success":"label-default"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(Number(t.selectedVoter.votes_count)>0?"Ya":"Tidak")+"\n\t\t\t\t\t\t\t\t\t\t\t\t")]),t._v(" "),t.selectedVoterShowsNoVoteEligibleNote?e("span",{staticClass:"label label-info",staticStyle:{"margin-left":"6px"}},[t._v("Tidak layak\n\t\t\t\t\t\t\t\t\t\t\t\t\tmengundi (saham)")]):t._e()])]),t._v(" "),e("tr",[e("th",[t._v("Bayaran Tunai")]),t._v(" "),e("td",[e("span",{staticClass:"label",class:t.isCashPaid(t.selectedVoter)?"label-success":"label-warning"},[t._v("\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+t._s(t.isCashPaid(t.selectedVoter)?"Sudah ("+t.selectedVoter.cash_paid_at+")":"Belum")+"\n\t\t\t\t\t\t\t\t\t\t\t\t")])])])])])])]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-4"},[e("label",[t._v("Kod Tuntutan (Claim Code)")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.claimCodeInput,expression:"claimCodeInput",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Contoh: 482913"},domProps:{value:t.claimCodeInput},on:{input:function(e){e.target.composing||(t.claimCodeInput=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),t._v(" "),e("small",{staticClass:"text-muted"},[t._v("Voter akan tunjuk kod ini. Wajib untuk bayaran\n\t\t\t\t\t\t\t\t\ttunai.")])]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("label",[t._v("Jumlah Tunai (RM)")]),t._v(" "),e("input",{staticClass:"form-control kehadiran-tunai-readonly",attrs:{type:"text",readonly:"",disabled:""},domProps:{value:t.allowanceTunaiDisplay}})]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("label",[t._v("Rujukan (optional)")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.payoutReference,expression:"payoutReference",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",maxlength:"80",placeholder:"Wakil/Sendiri"},domProps:{value:t.payoutReference},on:{input:function(e){e.target.composing||(t.payoutReference=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),e("div",{staticClass:"row",staticStyle:{"margin-top":"10px"}},[e("div",{staticClass:"col-md-12"},[e("label",[t._v("Nota (optional)")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.payoutNote,expression:"payoutNote",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nama Wakil"},domProps:{value:t.payoutNote},on:{input:function(e){e.target.composing||(t.payoutNote=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])]),t._v(" "),t.isCashPaid(t.selectedVoter)?e("div",{staticClass:"well well-sm",staticStyle:{"margin-top":"14px"}},[e("div",{staticStyle:{"font-weight":"800","margin-bottom":"8px"}},[t._v("Maklumat Bayaran")]),t._v(" "),e("div",[t._v("\n\t\t\t\t\t\t\t\tDibayar oleh:\n\t\t\t\t\t\t\t\t"),e("b",[t._v(t._s(t.selectedVoter.cash_paid_by_admin_name||"—"))]),t._v(" "),t.selectedVoter.cash_paid_by_admin_email?e("span",{staticClass:"text-muted"},[t._v("\n\t\t\t\t\t\t\t\t\t("+t._s(t.selectedVoter.cash_paid_by_admin_email)+")\n\t\t\t\t\t\t\t\t")]):t._e()])]):t._e(),t._v(" "),t.detailError?e("div",{staticClass:"alert alert-danger",staticStyle:{"margin-top":"12px"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.detailError)+"\n\t\t\t\t\t\t")]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Tutup")]),t._v(" "),t.selectedVoter&&t.isCashPaid(t.selectedVoter)?e("button",{staticClass:"btn btn-danger",attrs:{type:"button",disabled:t.detailLoading},on:{click:function(e){return t.voidCashPayout()}}},[t._v("\n\t\t\t\t\t\t\tBatal Bayaran Tunai\n\t\t\t\t\t\t")]):t._e(),t._v(" "),t.selectedVoter&&t.canPayCash(t.selectedVoter)?e("button",{staticClass:"btn btn-success",attrs:{type:"button",disabled:t.detailLoading},on:{click:function(e){return t.payCash()}}},[t._v("\n\t\t\t\t\t\t\tBayar Tunai\n\t\t\t\t\t\t")]):t._e()])])])]),t._v(" "),e("div",{staticClass:"modal fade app-modal",attrs:{id:"fizikal-verify-modal",tabindex:"-1",role:"dialog","aria-labelledby":"fizikal-verify-title","aria-hidden":"true"}},[e("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[e("div",{staticClass:"modal-content"},[t._m(1),t._v(" "),t.verifyModalVoter?e("div",{staticClass:"modal-body"},[t.verifyModalVoterNeedsLowSahamNote?e("p",{staticClass:"kehadiran-verify-lead"},[t._v("\n\t\t\t\t\t\t\tPengundi fizikal ini mempunyai saham di bawah "),e("strong",[t._v("RM 500")]),t._v(" dan\n\t\t\t\t\t\t\t"),e("strong",[t._v("tidak dibenarkan mengundi")]),t._v(". Sahkan pendaftaran untuk mengesahkan\n\t\t\t\t\t\t\tkehadiran\n\t\t\t\t\t\t\tdi kaunter dan membolehkan mereka menuntut elaun tunai (mengikut peraturan portal).\n\t\t\t\t\t\t")]):e("p",{staticClass:"kehadiran-verify-lead"},[t._v("\n\t\t\t\t\t\t\tSahkan bahawa pengundi ini hadir di kaunter. Selepas ini, pengundi boleh mengundi.\n\t\t\t\t\t\t")]),t._v(" "),e("table",{staticClass:"table table-condensed table-bordered kehadiran-verify-summary"},[e("tbody",[e("tr",[e("th",{staticStyle:{width:"140px"}},[t._v("Nama")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.name))])]),t._v(" "),e("tr",[e("th",[t._v("No. KP")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.no_kp))])]),t._v(" "),e("tr",[e("th",[t._v("No. Anggota")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.no_anggota))])]),t._v(" "),e("tr",[e("th",[t._v("Unit")]),t._v(" "),e("td",[t._v(t._s(t.verifyModalVoter.unit))])]),t._v(" "),e("tr",[e("th",[t._v("Saham (RM)")]),t._v(" "),e("td",[t._v(t._s(t.formatRmDisplay(t.verifyModalVoter.saham)))])]),t._v(" "),e("tr",[e("th",[t._v("Yuran (RM)")]),t._v(" "),e("td",[t._v(t._s(t.formatRmDisplay(t.verifyModalVoter.yuran)))])])])]),t._v(" "),t.verifyModalError?e("div",{staticClass:"alert alert-danger",staticStyle:{"margin-bottom":"0"}},[t._v("\n\t\t\t\t\t\t\t"+t._s(t.verifyModalError)+"\n\t\t\t\t\t\t")]):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"modal-footer"},[e("button",{staticClass:"btn btn-default",attrs:{type:"button","data-dismiss":"modal"}},[t._v("Tutup")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button",disabled:t.verifyModalLoading},on:{click:t.submitFizikalVerify}},[e("i",{staticClass:"fa fa-check",attrs:{"aria-hidden":"true"}}),t._v(" Sahkan pendaftaran\n\t\t\t\t\t\t")])])])])]),t._v(" "),e("div",{staticClass:"text-right"},[e("h5",[e("b",[t._v(t._s(t.attendancePercentage)+"% Kehadiran Pengundi")])])]),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.page,class:{active:Number(t.current_page)===n.page},attrs:{tag:"li",to:{query:t.paginationQueryForPage(n.page)},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()],1)])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title"},[t._v("Butiran Pembayaran Elaun")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title",attrs:{id:"fizikal-verify-title"}},[t._v("Pengesahan pendaftaran fizikal")]),t._v(" "),e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])])}],!1,null,null,null).exports;const Oh={data:function(){return{id:0}},created:function(){this.refreshVoter()},methods:{search:function(){},refreshVoter:function(){var t=this;this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter?page="+this.current_page).then((function(e){console.log(e),$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},getKehadiranString:function(t){switch(t){case 1:return"Fizikal";case 2:return"Maya";default:return"-"}},getFizikalPDFurl:function(t){return"/fizikalpdf/".concat(t)}},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()}},computed:{pages:function(){var t=[];if(this.data.voters.last_page)for(var e=1;e<=this.data.voters.last_page;e++){var n={};n.page=e,t.push(n)}return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1},attendancePercentage:function(){var t=this.data.voters.data.reduce((function(t,e){return 1===e.kehadiran?t+1:t}),0),e=this.data.voters.data.length;return 0===e?0:(t/e*100).toFixed(2)},filteredPhysicalAttendees:function(){return this.data.voters.data.filter((function(t){return 1===t.kehadiran}))}}},Mh=Oh;var Rh=(0,m.A)(Mh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kedatangan Fizikal")]),t._v(" "),e("a",{staticClass:"btn btn-warning",attrs:{href:t.getFizikalPDFurl(1)}},[t._v("Muat Turun PDF")]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover"},[t._m(0),t._v(" "),e("tbody",[t._l(t.filteredPhysicalAttendees,(function(n,a){return[e("tr",[e("td",[t._v(t._s(a+1))]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",[t._v(t._s(n.unit))]),t._v(" "),e("td",[t._v(t._s(t.getKehadiranString(n.kehadiran)))]),t._v(" "),e("td",[t._v(t._s(n.updated_at))])])]}))],2)])]),t._v(" "),e("div",{staticClass:"text-right"},[e("h5",[e("b",[t._v(t._s(t.attendancePercentage)+"% Kehadiran Pengundi Fizikal")])])]),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.pages,class:{active:t.current_page==n.page},attrs:{tag:"li",to:{query:{page:n.page}},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()])])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Bil.")]),t._v(" "),e("th",[t._v("Nama Anggota")]),t._v(" "),e("th",[t._v("No. Kad Pengenalan")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")]),t._v(" "),e("th",[t._v("Kehadiran")]),t._v(" "),e("th",[t._v("Tarikh/Masa")])])])}],!1,null,null,null);const Ih=Rh.exports;const Dh={data:function(){return{id:0}},created:function(){this.refreshVoter()},methods:{search:function(){},refreshVoter:function(){var t=this;this.util.notify("Refreshing Voter","loading"),axios.get(config.API+"voter?page="+this.current_page).then((function(e){console.log(e),$.notifyClose(),t.data.voters=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e)}))},getKehadiranString:function(t){switch(t){case 1:return"Fizikal";case 2:return"Maya";default:return"-"}},getMayaPDFurl:function(t){return"/mayapdf/1"}},watch:{"$route.query.page":function(){$.notifyClose(),this.refreshVoter()}},computed:{pages:function(){var t=[];if(this.data.voters.last_page)for(var e=1;e<=this.data.voters.last_page;e++){var n={};n.page=e,t.push(n)}return t},current_page:function(){return this.$route.query.page?this.$route.query.page:1},mayaAttendancePercentage:function(){var t=this.data.voters.data.reduce((function(t,e){return 2===e.kehadiran?t+1:t}),0),e=this.data.voters.data.length;return 0===e?0:(t/e*100).toFixed(2)},attendancePercentage:function(){var t=this.data.voters.data.reduce((function(t,e){return 1===e.kehadiran?t+1:t}),0),e=this.data.voters.data.reduce((function(t,e){return 2===e.kehadiran?t+1:t}),0),n=t+e,a=this.data.voters.data.length;return 0===a?0:(n/a*100).toFixed(2)},filteredMayaAttendees:function(){return this.data.voters.data.filter((function(t){return 2===t.kehadiran}))}}},Fh=Dh;var jh=(0,m.A)(Fh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kedatangan Maya")]),t._v(" "),e("a",{staticClass:"btn btn-warning",attrs:{href:t.getMayaPDFurl(1)}},[t._v("Muat Turun PDF")]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-hover"},[t._m(0),t._v(" "),e("tbody",[t._l(t.filteredMayaAttendees,(function(n,a){return[e("tr",[e("td",[t._v(t._s(a+1))]),t._v(" "),e("td",[t._v(t._s(n.name))]),t._v(" "),e("td",[t._v(t._s(n.no_kp))]),t._v(" "),e("td",[t._v(t._s(n.no_anggota))]),t._v(" "),e("td",[t._v(t._s(n.unit))]),t._v(" "),e("td",[t._v(t._s(t.getKehadiranString(n.kehadiran)))]),t._v(" "),e("td",[t._v(t._s(n.updated_at))])])]}))],2)])]),t._v(" "),e("div",{staticClass:"text-right"},[e("h5",[e("b",[t._v(t._s(t.mayaAttendancePercentage)+"% Kehadiran Maya")])])]),t._v(" "),t.pages.length>1?e("ul",{staticClass:"pagination"},t._l(t.pages,(function(n){return e("router-link",{key:n.pages,class:{active:t.current_page==n.page},attrs:{tag:"li",to:{query:{page:n.page}},exact:""}},[e("a",{attrs:{href:"#"}},[t._v(t._s(n.page))])])})),1):t._e()])])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",[t._v("Bil.")]),t._v(" "),e("th",[t._v("Nama Anggota")]),t._v(" "),e("th",[t._v("No. Kad Pengenalan")]),t._v(" "),e("th",[t._v("No. Anggota")]),t._v(" "),e("th",[t._v("Unit")]),t._v(" "),e("th",[t._v("Kehadiran")]),t._v(" "),e("th",[t._v("Tarikh/Masa")])])])}],!1,null,null,null);const Bh=jh.exports;const zh={data:function(){return{nominees:[],results:[],partylists:[],positions:[]}},methods:{getNominee:function(t){var e=this.nominees;for(var n in e)if(t==e[n].id)return e[n];return{}},getPartylist:function(t){var e=this.partylists;for(var n in e)if(t==e[n].id)return e[n].name;return"No Partylist"}},created:function(){this.util.notify("Loading please wait...","loading");var t=this;axios.get(config.API+"election/result/"+this.election_id).then((function(e){$.notifyClose(),t.nominees=e.data.nominee,t.results=e.data.result,t.partylists=e.data.partylist,t.positions=e.data.position})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},computed:{election_id:function(){return this.$route.params.election_id},no_votes:function(){var t=this.nominees,e=this.results,n=[];for(var a in t){var r=!1;for(var i in e)e[i].nominee_id==t[a].id&&(r=!0);r||n.push(t[a])}return n}}},Uh=zh;var Hh=(0,m.A)(Uh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12"},t._l(t.positions,(function(n){return e("div",[e("h5",[t._v(t._s(n.name))]),t._v(" "),e("div",{staticClass:"table-responsive"},[e("table",{staticClass:"table table-striped table-condensed"},[t._m(0,!0),t._v(" "),e("tbody",[t._l(t.results,(function(a){return a.position_id==n.id?e("tr",[e("td",[t._v(t._s(t.getVoter(a.nominee_id).no_anggota))]),t._v(" "),e("td",[t._v(t._s(t.getNominee(a.nominee_id).name))]),t._v(" "),e("td",[t._v(t._s(t.getPartylist(t.getNominee(a.nominee_id).partylist_id)))]),t._v(" "),e("td",[t._v(t._s(t.getNominee(a.nominee_id).unit))]),t._v(" "),e("td",[t._v(t._s(a.votes))])]):t._e()})),t._v(" "),t._l(t.no_votes,(function(a){return a.position_id==n.id?e("tr",[e("td",[t._v(t._s(a.student_id))]),t._v(" "),e("td",[t._v(t._s(a.name))]),t._v(" "),e("td",[t._v(t._s(t.getPartylist(a.partylist_id)))]),t._v(" "),e("td",[t._v(t._s(a.unit))]),t._v(" "),e("td",[t._v("0")])]):t._e()}))],2)])]),t._v(" "),e("hr")])})),0)])])}),[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",{attrs:{width:"10%"}},[t._v("No. Anggota")]),t._v(" "),e("th",{attrs:{width:"30%"}},[t._v("Name")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("No. Kad Pengenalan")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("Unit")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("No. Telefon")]),t._v(" "),e("th",{attrs:{width:"20%"}},[t._v("Kehadiran")])])])}],!1,null,null,null);const Vh=Hh.exports;const Wh={data:function(){return{loading:!1,error:"",rows:[],outstandingCents:0,outstandingCashCount:0,outstandingBankCount:0,defaultCashCents:3e4,defaultBankCents:15e3,methodFilter:"",headers:[{title:"Admin",key:"admin_name",sortable:!0,exportValue:function(t){var e=t&&t.admin_name?String(t.admin_name):"—",n=t&&t.admin_email?String(t.admin_email):"";return n?e+" ("+n+")":e}},{title:"Tunai (RM300.00)",key:"cash_amount_cents",sortable:!1,exportValue:function(t){return t&&null!=t.cash_amount_cents?(Number(t.cash_amount_cents)/100).toFixed(2):""}},{title:"Maya (RM150.00)",key:"bank_amount_cents",sortable:!1,exportValue:function(t){return t&&null!=t.bank_amount_cents?(Number(t.bank_amount_cents)/100).toFixed(2):""}},{title:"Jumlah (RM)",key:"total_amount_cents",sortable:!0,exportValue:function(t){return t&&null!=t.total_amount_cents?(Number(t.total_amount_cents)/100).toFixed(2):""}}]}},created:function(){this.refresh()},computed:{items:function(){return Array.isArray(this.rows)?this.rows:[]},grandTotalCents:function(){return this.items.reduce((function(t,e){return t+Number(e.total_amount_cents||0)}),0)},outstandingFizikalCents:function(){return Number(this.outstandingCashCount||0)*Number(this.defaultCashCents||3e4)},outstandingMayaCents:function(){return Number(this.outstandingBankCount||0)*Number(this.defaultBankCents||15e3)}},methods:{refresh:function(){var t=this;this.loading=!0,this.error="";var e={};this.methodFilter&&(e.method=this.methodFilter),axios.get(config.API+"allowance/summary",{params:e}).then((function(e){if(!e||!e.data||"success"!==e.data.status)return t.error=e&&e.data&&e.data.message?e.data.message:"Gagal memuatkan ringkasan.",void t.applySummaryMeta(null);t.rows=e.data.rows||[],t.applySummaryMeta(e.data)})).catch((function(e){t.applySummaryMeta(null),t.error=e&&e.response&&e.response.data&&e.response.data.message?e.response.data.message:e&&e.message?e.message:"Gagal memuatkan ringkasan.",e&&e.response&&t.util.showResult(e,"error")})).finally((function(){t.loading=!1}))},applySummaryMeta:function(t){if(!t)return this.outstandingCents=0,this.outstandingCashCount=0,this.outstandingBankCount=0,this.defaultCashCents=3e4,void(this.defaultBankCents=15e3);var e=t.outstanding_allowance||{};this.outstandingCents=Number(e.cents||0),this.outstandingCashCount=Number(e.cash_count||0),this.outstandingBankCount=Number(e.bank_count||0),null!=e.default_cash_cents&&(this.defaultCashCents=Number(e.default_cash_cents)),null!=e.default_bank_cents&&(this.defaultBankCents=Number(e.default_bank_cents))},formatCentsToRM:function(t){return(Number(t||0)/100).toLocaleString("en-MY",{minimumFractionDigits:2,maximumFractionDigits:2})}}};var qh=n(8275),$h={insert:"head",singleton:!1};i()(qh.A,$h);qh.A.locals;const Kh=(0,m.A)(Wh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[t._m(0),t._v(" "),t.error?e("div",{staticClass:"alert alert-danger"},[t._v(t._s(t.error))]):t._e(),t._v(" "),t.error?t._e():e("div",{staticClass:"allowance-section"},[e("h5",{staticClass:"allowance-section__title"},[t._v("Anggaran elaun yang perlu dibayar")]),t._v(" "),t.loading?t._e():e("div",{staticClass:"row allowance-stat-row"},[e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"allowance-stat-card"},[e("div",{staticClass:"allowance-stat-card__label"},[t._v("Fizikal (tunai RM300.00)")]),t._v(" "),e("div",{staticClass:"allowance-stat-card__value"},[t._v("RM "+t._s(t.formatCentsToRM(t.outstandingFizikalCents))+"\n\t\t\t\t\t\t")]),t._v(" "),e("div",{staticClass:"allowance-stat-card__hint"},[e("b",[t._v(t._s(t.outstandingCashCount))]),t._v(" belum dibayar\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"allowance-stat-card"},[e("div",{staticClass:"allowance-stat-card__label"},[t._v("Maya (RM150.00)")]),t._v(" "),e("div",{staticClass:"allowance-stat-card__value"},[t._v("RM "+t._s(t.formatCentsToRM(t.outstandingMayaCents)))]),t._v(" "),e("div",{staticClass:"allowance-stat-card__hint"},[e("b",[t._v(t._s(t.outstandingBankCount))]),t._v(" belum dibayar\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"col-sm-4"},[e("div",{staticClass:"allowance-stat-card allowance-stat-card--primary"},[e("div",{staticClass:"allowance-stat-card__label"},[t._v("Jumlah baki")]),t._v(" "),e("div",{staticClass:"allowance-stat-card__value"},[t._v("RM "+t._s(t.formatCentsToRM(t.outstandingCents)))]),t._v(" "),e("div",{staticClass:"allowance-stat-card__hint"},[t._v("Fizikal + Maya")])])])])]),t._v(" "),t.error?t._e():e("div",{staticClass:"allowance-section allowance-section--table"},[e("h5",{staticClass:"allowance-section__title"},[t._v("Bayaran mengikut pentadbir")]),t._v(" "),e("admin-data-table",{attrs:{headers:t.headers,items:t.items,loading:t.loading,"show-pagination":!1,"index-title":"Bil.","empty-text":"Tiada rekod bayaran elaun",exportable:!0},scopedSlots:t._u([{key:"item-admin_name",fn:function(n){var a=n.item;return[e("div",{staticStyle:{"font-weight":"800"}},[t._v(t._s(a.admin_name||"—"))]),t._v(" "),e("div",{staticClass:"text-muted",staticStyle:{"font-size":"12px"}},[t._v(t._s(a.admin_email||""))])]}},{key:"item-total_amount_cents",fn:function(n){var a=n.item;return[e("b",[t._v(t._s(t.formatCentsToRM(a.total_amount_cents)))]),t._v(" "),e("div",{staticClass:"text-muted",staticStyle:{"font-size":"12px"}},[t._v(t._s(a.payouts_count)+" bayaran")])]}},{key:"item-cash_amount_cents",fn:function(n){var a=n.item;return[t._v("\n\t\t\t\t\t"+t._s(t.formatCentsToRM(a.cash_amount_cents))+"\n\t\t\t\t\t"),e("div",{staticClass:"text-muted",staticStyle:{"font-size":"12px"}},[t._v(t._s(a.cash_count)+" tunai")])]}},{key:"item-bank_amount_cents",fn:function(n){var a=n.item;return[t._v("\n\t\t\t\t\t"+t._s(t.formatCentsToRM(a.bank_amount_cents))+"\n\t\t\t\t\t"),e("div",{staticClass:"text-muted",staticStyle:{"font-size":"12px"}},[t._v(t._s(a.bank_count))])]}}],null,!1,2699513059)}),t._v(" "),!t.loading&&t.items.length?e("div",{staticClass:"well well-sm allowance-section__footer-total"},[e("b",[t._v("Jumlah keseluruhan:")]),t._v(" "+t._s(t.formatCentsToRM(t.grandTotalCents))+"\n\t\t\t")]):t._e()],1)])])}),[function(){var t=this._self._c;return t("div",{staticClass:"clearfix",staticStyle:{"margin-bottom":"12px"}},[t("h4",{staticStyle:{margin:"0",display:"inline-block"}},[this._v("Ringkasan Elaun")])])}],!1,null,"7d87dadc",null).exports;const Gh={created:function(){this.util.setTitle("MyKoPKB - Maklumat Calon")}};const Yh=(0,m.A)(Gh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-10 col-md-offset-1"},[e("h4",[t._v("Maklumat Calon")]),t._v(" "),e("router-view")],1)}),[],!1,null,null,null).exports;const Xh={data:function(){return{id:0,nomineeLoading:!1,nomineeTableHeaders:[{title:"",key:"photo",sortable:!1},{title:"Nama",key:"name",sortable:!0},{title:"No. Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Jawatan",key:"position",sortable:!0},{title:"Taraf Pendidikan",key:"education",sortable:!1,exportValue:function(t){return Array.isArray(t.education)?t.education.join(" | "):""}},{title:"Pengalaman Kerja",key:"experience",sortable:!1,exportValue:function(t){return Array.isArray(t.experience)?t.experience.join(" | "):""}},{title:"Tindakan",key:"actions",sortable:!1}]}},created:function(){this.refreshNominee()},methods:{setPosition:function(t){var e=Object.assign({},this.$route.query);t&&"0"!==String(t)?e.position_id=t:delete e.position_id,this.$router.replace({query:e})},openDeleteModal:function(t){this.id=t.id,this.util.showModal("#delete-nominee-modal")},deleteNominee:function(){var t=this,e=this.id;this.util.hideModal("#delete-nominee-modal"),this.util.notify("Deleting nominee","loading"),axios.delete(config.API+"nominee/"+e).then((function(e){$.notifyClose(),e.data&&"success"===e.data.status?(t.util.notify("Nominee deleted successfully","success"),t.refreshNominee()):t.util.notify("Failed to delete nominee","error")})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},refreshNominee:function(){var t=this;this.nomineeLoading=!0,this.util.notify("Refreshing Nominees","loading"),axios.get(config.API+"nominee",{params:{position_id:this.position_id&&"0"!==String(this.position_id)?this.position_id:void 0}}).then((function(e){$.notifyClose(),console.log(e),t.data.nominees=e.data})).catch((function(e){$.notifyClose(),t.showResult(e)})).finally((function(){t.nomineeLoading=!1}))},getPosition:function(t){var e=this.data.positions;for(var n in e)if(e[n].id==t)return e[n].name},getPartylist:function(t){var e=this.data.partylists;for(var n in e)if(e[n].id==t)return e[n].name;return"No partylists"},createBase64ImageUrl:function(t){return"data:image/png;base64,"+t}},computed:{nominees:function(){var t=[],e=this.data.nominees;for(var n in this.data.nominees)if(e[n].position_id==this.position_id||0==this.position_id){var a=Object.assign({},e[n]);a.position=this.getPosition(e[n].position_id),a.partylist=this.getPartylist(e[n].partylist_id),t.push(a)}return t},position_id:function(){return this.$route.query.position_id?this.$route.query.position_id:0}},watch:{position_id:function(){this.refreshNominee()}}},Jh=Xh;var Zh=n(9273),Qh={insert:"head",singleton:!1};i()(Zh.A,Qh);Zh.A.locals;var tf=(0,m.A)(Jh,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-12 panel panel-default"},[e("div",{staticClass:"panel-body table-responsive"},[e("div",{staticClass:"nominee-filter-chips"},[e("button",{staticClass:"nominee-chip btn btn-xs",class:0==t.position_id?"btn-primary":"btn-default",attrs:{type:"button"},on:{click:function(e){return t.setPosition(0)}}},[t._v("\n\t\t\t\t\tSemua Jawatan\n\t\t\t\t")]),t._v(" "),t._l(t.data.positions,(function(n){return e("button",{key:n.id,staticClass:"nominee-chip btn btn-xs",class:String(t.position_id)===String(n.id)?"btn-primary":"btn-default",attrs:{type:"button"},on:{click:function(e){return t.setPosition(n.id)}}},[t._v("\n\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t")])}))],2),t._v(" "),e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Tambah Calon",query:{position_id:t.position_id}}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Calon")])],1),t._v(" "),e("admin-data-table",{attrs:{headers:t.nomineeTableHeaders,items:t.nominees,loading:t.nomineeLoading,"items-per-page":10,"show-pagination":!0,"empty-text":"Tiada calon",exportable:!0,"export-file-name":"calon"},scopedSlots:t._u([{key:"item-photo",fn:function(n){var a=n.item;return[e("img",{staticClass:"thumbnail",staticStyle:{height:"60px",width:"60px"},attrs:{alt:a.name,src:t.createBase64ImageUrl(a.photo)}})]}},{key:"item-education",fn:function(n){var a=n.item;return[e("ol",{staticStyle:{margin:"0","padding-left":"18px"}},t._l(a.education||[],(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0)]}},{key:"item-experience",fn:function(n){var a=n.item;return[e("ol",{staticStyle:{margin:"0","padding-left":"18px"}},t._l(a.experience||[],(function(n,a){return e("li",{key:a},[t._v(t._s(n))])})),0)]}},{key:"item-actions",fn:function(n){var a=n.item;return[e("router-link",{staticClass:"btn btn-primary",attrs:{to:{name:"Edit Nominee",params:{id:a.id}}}},[e("i",{staticClass:"fa fa-edit"}),t._v("Kemaskini\n\t\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){return t.openDeleteModal(a)}}},[e("i",{staticClass:"fa fa-trash"}),t._v("Padam\n\t\t\t\t\t")])]}}])})],1)]),t._v(" "),e("modal",{attrs:{id:"delete-nominee-modal"}},[e("modal-header",[t._v("Padam Calon")]),t._v(" "),e("modal-body",[e("h3",[t._v("Are you sure to delete this nominee?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deleteNominee()}}},[t._v("Padam")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-nominee-modal")}}},[t._v("\n\t\t\t\tKembali\n\t\t\t")])])],1)],1)}),[],!1,null,null,null);const ef=tf.exports;const nf={data:function(){return{imageUrl:"",loading:!1}},methods:{add:function(){if(!this.loading){var t=this;this.loading=!0,this.util.notify("Adding Nominee","progress",0),$("#add_form").ajaxSubmit({success:function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success","ajax")&&t.$router.push({name:"Maklumat Calon"})},error:function(e){alert("Nominee with the same name has already registered"),location.reload(),$.notifyClose(),t.loading=!1,t.util.showResult(e,"error","ajax")},uploadProgress:function(e,n,a,r){t.util.notify("Adding Nominee","progress",r)}})}},handleImageChange:function(t){var e=this,n=t.target.files[0];if(n&&n.type.match(/image.*/)){var a=new FileReader;a.onload=function(t){e.imageUrl=t.target.result},a.readAsDataURL(n)}else t.target.value="",this.imageUrl=""}},computed:{position_id:{get:function(){return this.$route.query.position_id},set:function(t){this.$router.replace({query:{position_id:t}})}}}};var af=n(4002),rf={insert:"head",singleton:!1};i()(af.A,rf);af.A.locals;var of=(0,m.A)(nf,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default nominee-add-page"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-page__header clearfix"},[t._m(0),t._v(" "),e("router-link",{staticClass:"btn btn-default pull-right",attrs:{to:{name:"Maklumat Calon",query:{position_id:t.position_id}}}},[e("i",{staticClass:"fa fa-arrow-left"}),t._v(" Kembali\n\t\t\t")])],1),t._v(" "),t._m(1),t._v(" "),e("form",{staticClass:"nominee-add-form",attrs:{method:"POST",id:"add_form",action:t.data.API+"nominee",enctype:"multipart/form-data"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-8"},[t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),e("div",{staticClass:"form-group"},[t._m(7),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.position_id,expression:"position_id"}],staticClass:"form-control",attrs:{id:"nominee-position-id",name:"position_id",required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.position_id=e.target.multiple?n:n[0]}}},[e("option",{attrs:{value:"0",disabled:""}},[t._v("— Pilih sesi —")]),t._v(" "),t._l(t.data.positions,(function(n){return e("option",{key:n.id,domProps:{value:n.id}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t\t\t")])}))],2)])]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("div",{staticClass:"nominee-add-photo panel panel-default"},[t._m(8),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-photo__preview",class:{"nominee-add-photo__preview--empty":!t.imageUrl}},[t.imageUrl?e("img",{attrs:{src:t.imageUrl,alt:"Pratonton gambar calon"}}):e("div",{staticClass:"nominee-add-photo__placeholder"},[e("i",{staticClass:"fa fa-picture-o"}),t._v(" "),e("span",[t._v("Tiada gambar dipilih")])])]),t._v(" "),t._m(9),t._v(" "),e("input",{staticClass:"nominee-add-photo__input",attrs:{id:"nominee-file-input",name:"photo",type:"file",accept:"image/*"},on:{change:t.handleImageChange}}),t._v(" "),e("p",{staticClass:"text-muted small nominee-add-photo__formats"},[t._v("PNG, JPG atau GIF")])])])])]),t._v(" "),e("hr",{staticClass:"nominee-add-form__rule"}),t._v(" "),e("div",{staticClass:"clearfix nominee-add-form__actions"},[e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Maklumat Calon",query:{position_id:t.position_id}}}},[e("i",{staticClass:"fa fa-times"}),t._v(" Batal\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"submit",disabled:t.loading}},[t.loading?e("i",{staticClass:"fa fa-spinner fa-spin"}):e("i",{staticClass:"fa fa-check"}),t._v("\n\t\t\t\t\t"+t._s(t.loading?"Menghantar…":"Simpan calon")+"\n\t\t\t\t")])],1)])])])}),[function(){var t=this._self._c;return t("h4",{staticClass:"pull-left nominee-add-page__title"},[t("i",{staticClass:"fa fa-user-plus text-muted"}),this._v(" Tambah Calon\n\t\t\t")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"text-muted small nominee-add-page__intro"},[t._v("\n\t\t\tLengkapkan maklumat calon. Medan bertanda "),e("span",{staticClass:"text-danger"},[t._v("*")]),t._v(" adalah wajib.\n\t\t")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-name"}},[t._v("Nama Calon "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-name",type:"text",name:"name",placeholder:"Nama penuh",required:""}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-no-anggota"}},[t._v("No. Anggota "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-no-anggota",type:"text",name:"no_anggota",placeholder:"No. keahlian",required:""}})])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-unit"}},[t._v("Unit "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-unit",type:"text",name:"unit",required:""}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-umur"}},[t._v("Umur "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-umur",type:"number",name:"umur",min:"1",max:"120",placeholder:"Tahun",required:""}})])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-jawatan-sekarang"}},[t._v("Jawatan Sekarang "),e("span",{staticClass:"text-danger"},[t._v("*")])]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-jawatan-sekarang",type:"text",name:"jawatan_sekarang",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-education"}},[t._v("Taraf Pendidikan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{id:"nominee-education",type:"text",name:"education",placeholder:"Pilihan"}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nominee-experience"}},[t._v("Pengalaman Kerja")]),t._v(" "),e("textarea",{staticClass:"form-control",attrs:{id:"nominee-experience",name:"experience",rows:"4",placeholder:"Pilihan — senaraikan pengalaman relevan"}})])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"nominee-position-id"}},[t._v("Sesi Dicalonkan "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-heading"},[e("strong",[e("i",{staticClass:"fa fa-camera"}),t._v(" Gambar calon")]),t._v(" "),e("span",{staticClass:"text-muted small nominee-add-photo__hint"},[t._v("Pilihan")])])},function(){var t=this._self._c;return t("label",{staticClass:"btn btn-default btn-block nominee-add-photo__browse",attrs:{for:"nominee-file-input"}},[t("i",{staticClass:"fa fa-folder-open"}),this._v(" Pilih fail\n\t\t\t\t\t\t\t")])}],!1,null,"2c5ff319",null);const sf=of.exports;const lf={data:function(){return{imageUrl:"",loading:!1,form:{name:"",no_anggota:"",unit:"",umur:"",jawatan_sekarang:"",education:"",experience:"",position_id:"",partylist_id:""}}},created:function(){this.nominee.id||this.$router.push({name:"Maklumat Calon"})},watch:{nominee:{immediate:!0,deep:!0,handler:function(t){t&&t.id&&(this.form.name=t.name||"",this.form.no_anggota=t.no_anggota||"",this.form.unit=t.unit||"",this.form.umur=null!=t.umur&&""!==t.umur?String(t.umur):"",this.form.jawatan_sekarang=t.jawatan_sekarang||"",this.form.education=this.formatEducationForInput(t.education),this.form.experience=this.formatExperienceForInput(t.experience),this.form.position_id=null!=t.position_id?String(t.position_id):"",this.form.partylist_id=null!=t.partylist_id&&""!==t.partylist_id?String(t.partylist_id):"",this.imageUrl=t.photo?this.createBase64ImageUrl(t.photo):"")}}},methods:{createBase64ImageUrl:function(t){return"data:image/png;base64,"+t},formatEducationForInput:function(t){return null==t||""===t?"":Array.isArray(t)?t.join("\n"):String(t)},formatExperienceForInput:function(t){return null==t||""===t?"":Array.isArray(t)?t.map((function(t,e){return e+1+". "+t})).join("\n"):String(t)},handleImageChange:function(t){var e=t.target.files[0],n=this;if(e&&e.type.match(/image.*/)){var a=new FileReader;a.onload=function(t){n.imageUrl=t.target.result},a.readAsDataURL(e)}else t.target.value="",n.imageUrl=n.nominee.photo?n.createBase64ImageUrl(n.nominee.photo):""},edit:function(){if(!this.loading){var t=this;this.loading=!0,this.util.notify("Kemaskini calon","progress",0),$("#edit_form").ajaxSubmit({success:function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success","ajax")&&t.$router.push({name:"Maklumat Calon",query:{refresh:!0}})},error:function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"error","ajax")},uploadProgress:function(e,n,a,r){t.util.notify("Kemaskini calon","progress",r)}})}}},computed:{id:function(){return this.$route.params.id},nominee:function(){for(var t in this.data.nominees)if(this.data.nominees[t].id==this.id)return this.data.nominees[t];return{}},backToList:function(){var t={};return this.nominee&&null!=this.nominee.position_id&&"0"!==String(this.nominee.position_id)&&(t.position_id=this.nominee.position_id),{name:"Maklumat Calon",query:t}}}},cf=lf;var uf=n(7300),df={insert:"head",singleton:!1};i()(uf.A,df);uf.A.locals;var hf=(0,m.A)(cf,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default nominee-add-page"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-page__header clearfix"},[t._m(0),t._v(" "),e("router-link",{staticClass:"btn btn-default pull-right",attrs:{to:t.backToList}},[e("i",{staticClass:"fa fa-arrow-left"}),t._v(" Kembali\n\t\t\t")])],1),t._v(" "),t._m(1),t._v(" "),e("form",{staticClass:"nominee-add-form",attrs:{method:"POST",id:"edit_form",action:t.data.API+"nominee/"+t.id,enctype:"multipart/form-data"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("input",{attrs:{type:"hidden",name:"_method",value:"PUT"}}),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(2),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.name,expression:"form.name"}],staticClass:"form-control",attrs:{id:"edit-nominee-name",type:"text",name:"name",placeholder:"Nama penuh",required:""},domProps:{value:t.form.name},on:{input:function(e){e.target.composing||t.$set(t.form,"name",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(3),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.no_anggota,expression:"form.no_anggota"}],staticClass:"form-control",attrs:{id:"edit-nominee-no-anggota",type:"text",name:"no_anggota",placeholder:"No. keahlian",required:""},domProps:{value:t.form.no_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"no_anggota",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(4),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.unit,expression:"form.unit"}],staticClass:"form-control",attrs:{id:"edit-nominee-unit",type:"text",name:"unit",required:""},domProps:{value:t.form.unit},on:{input:function(e){e.target.composing||t.$set(t.form,"unit",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"col-sm-6"},[e("div",{staticClass:"form-group"},[t._m(5),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.umur,expression:"form.umur"}],staticClass:"form-control",attrs:{id:"edit-nominee-umur",type:"number",name:"umur",min:"1",max:"120",placeholder:"Tahun",required:""},domProps:{value:t.form.umur},on:{input:function(e){e.target.composing||t.$set(t.form,"umur",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"form-group"},[t._m(6),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.jawatan_sekarang,expression:"form.jawatan_sekarang"}],staticClass:"form-control",attrs:{id:"edit-nominee-jawatan-sekarang",type:"text",name:"jawatan_sekarang",required:""},domProps:{value:t.form.jawatan_sekarang},on:{input:function(e){e.target.composing||t.$set(t.form,"jawatan_sekarang",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"edit-nominee-education"}},[t._v("Taraf Pendidikan")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.education,expression:"form.education"}],staticClass:"form-control",attrs:{id:"edit-nominee-education",type:"text",name:"education",placeholder:"Pilihan"},domProps:{value:t.form.education},on:{input:function(e){e.target.composing||t.$set(t.form,"education",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"edit-nominee-experience"}},[t._v("Pengalaman Kerja")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.experience,expression:"form.experience"}],staticClass:"form-control",attrs:{id:"edit-nominee-experience",name:"experience",rows:"4",placeholder:"Pilihan — senaraikan pengalaman relevan"},domProps:{value:t.form.experience},on:{input:function(e){e.target.composing||t.$set(t.form,"experience",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[t._m(7),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.position_id,expression:"form.position_id"}],staticClass:"form-control",attrs:{id:"edit-nominee-position-id",name:"position_id",required:""},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"position_id",e.target.multiple?n:n[0])}}},[e("option",{attrs:{value:"",disabled:""}},[t._v("— Pilih jawatan —")]),t._v(" "),t._l(t.data.positions,(function(n){return e("option",{key:n.id,domProps:{value:String(n.id)}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t\t\t")])}))],2)]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"edit-nominee-partylist-id"}},[t._v("Senarai parti")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.form.partylist_id,expression:"form.partylist_id"}],staticClass:"form-control",attrs:{id:"edit-nominee-partylist-id",name:"partylist_id"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.form,"partylist_id",e.target.multiple?n:n[0])}}},[e("option",{attrs:{value:""}},[t._v("— Pilihan —")]),t._v(" "),t._l(t.data.partylists,(function(n){return e("option",{key:n.id,domProps:{value:String(n.id)}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(n.name)+"\n\t\t\t\t\t\t\t")])}))],2)])]),t._v(" "),e("div",{staticClass:"col-md-4"},[e("div",{staticClass:"nominee-add-photo panel panel-default"},[t._m(8),t._v(" "),e("div",{staticClass:"panel-body"},[e("div",{staticClass:"nominee-add-photo__preview",class:{"nominee-add-photo__preview--empty":!t.imageUrl}},[t.imageUrl?e("img",{attrs:{src:t.imageUrl,alt:"Pratonton gambar calon"}}):e("div",{staticClass:"nominee-add-photo__placeholder"},[e("i",{staticClass:"fa fa-picture-o"}),t._v(" "),e("span",[t._v("Tiada gambar")])])]),t._v(" "),t._m(9),t._v(" "),e("input",{staticClass:"nominee-add-photo__input",attrs:{id:"edit-nominee-file-input",name:"photo",type:"file",accept:"image/*"},on:{change:t.handleImageChange}}),t._v(" "),e("p",{staticClass:"text-muted small nominee-add-photo__formats"},[t._v("PNG, JPG atau GIF")])])])])]),t._v(" "),e("hr",{staticClass:"nominee-add-form__rule"}),t._v(" "),e("div",{staticClass:"clearfix nominee-add-form__actions"},[e("router-link",{staticClass:"btn btn-default",attrs:{to:t.backToList}},[e("i",{staticClass:"fa fa-times"}),t._v(" Batal\n\t\t\t\t")]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"submit",disabled:t.loading}},[t.loading?e("i",{staticClass:"fa fa-spinner fa-spin"}):e("i",{staticClass:"fa fa-check"}),t._v("\n\t\t\t\t\t"+t._s(t.loading?"Menghantar…":"Simpan perubahan")+"\n\t\t\t\t")])],1)])])])}),[function(){var t=this._self._c;return t("h4",{staticClass:"pull-left nominee-add-page__title"},[t("i",{staticClass:"fa fa-pencil text-muted"}),this._v(" Kemaskini Calon\n\t\t\t")])},function(){var t=this,e=t._self._c;return e("p",{staticClass:"text-muted small nominee-add-page__intro"},[t._v("\n\t\t\tKemas kini maklumat calon. Medan bertanda "),e("span",{staticClass:"text-danger"},[t._v("*")]),t._v(" adalah wajib.\n\t\t")])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-name"}},[t._v("Nama Calon "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-no-anggota"}},[t._v("No. Anggota "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-unit"}},[t._v("Unit "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-umur"}},[t._v("Umur "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-jawatan-sekarang"}},[t._v("Jawatan Sekarang "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("label",{attrs:{for:"edit-nominee-position-id"}},[t._v("Jawatan Dicalonkan "),e("span",{staticClass:"text-danger"},[t._v("*")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel-heading"},[e("strong",[e("i",{staticClass:"fa fa-camera"}),t._v(" Gambar calon")]),t._v(" "),e("span",{staticClass:"text-muted small nominee-add-photo__hint"},[t._v("Pilihan")])])},function(){var t=this._self._c;return t("label",{staticClass:"btn btn-default btn-block nominee-add-photo__browse",attrs:{for:"edit-nominee-file-input"}},[t("i",{staticClass:"fa fa-folder-open"}),this._v(" Pilih fail\n\t\t\t\t\t\t\t")])}],!1,null,"2ff9e648",null);const ff=hf.exports;const pf={created:function(){this.util.setTitle("MyKoPKB - Akaun Anggota")}};const mf=(0,m.A)(pf,(function(){var t=this._self._c;return t("div",{staticClass:"container col-md-8 col-md-offset-2"},[t("router-view")],1)}),[],!1,null,null,null).exports;const gf={components:{AdminDataTable:Nd.default},data:function(){return{id:0,impersonateTarget:null,loading:!1,adminTableHeaders:[{title:"Nama",key:"name",sortable:!0},{title:"Email",key:"email",sortable:!0},{title:"Menyamar",key:"impersonate",sortable:!1,exportValue:function(){return""}},{title:"Padam",key:"delete",sortable:!1,exportValue:function(){return""}}]}},computed:{canViewAdminList:function(){try{return!(!this.data||!this.data.user)&&(1===Number(this.data.user.id)&&"1"!==localStorage.getItem("is_impersonating"))}catch(t){return!1}},adminItems:function(){var t=this.data&&this.data.admins;return Array.isArray(t)?t:t&&Array.isArray(t.data)?t.data:[]}},created:function(){this.canViewAdminList?this.refreshAdmin():this.loading=!1},methods:{canImpersonate:function(t){try{return!(!this.data||!this.data.user)&&(1===Number(this.data.user.id)&&(!(!t||void 0===t.id||null===t.id)&&1!==Number(t.id)))}catch(t){return!1}},openImpersonate:function(t){this.impersonateTarget=t,this.util&&this.util.showModal&&this.util.showModal("#impersonate-admin-modal")},startImpersonate:function(){var t=this;t.impersonateTarget&&t.impersonateTarget.id&&(t.util.hideModal("#impersonate-admin-modal"),t.util.notify("Menyamar admin","loading"),axios.post(config.API+"admin/impersonate",{user_id:t.impersonateTarget.id}).then((function(e){if($.notifyClose(),e&&e.data&&"success"===e.data.status){var n=e.data.token;n&&(localStorage["Access Token"]="Bearer "+n,localStorage.setItem("is_impersonating","1"),t.util&&t.util.setAuthorization&&t.util.setAuthorization()),e.data.user&&(t.data.user=e.data.user,void 0!==e.data.user.role&&null!==e.data.user.role&&localStorage.setItem("admin_role",String(e.data.user.role))),t.util.notify("Menyamar berjaya","success"),t.$router&&t.$router.go(0)}else t.util.showResult(e,"error")})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})))},deleteAdmin:function(){this.util.hideModal("#delete-admin-modal"),this.util.notify("Memadam admin","loading");var t=this;axios.delete(config.API+"admin/"+this.id).then((function(e){$.notifyClose(),t.util.showResult(e,"success")&&t.refreshAdmin()})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")}))},refreshAdmin:function(){var t=this;t.canViewAdminList&&(t.loading=!0,this.util.notify("Mengemaskini admin","loading"),axios.get(config.API+"admin").then((function(e){$.notifyClose(),"failed"==e.data.status?t.util.showResult(e,"success"):t.data.admins=e.data})).catch((function(e){$.notifyClose(),t.util.showResult(e,"error")})).finally((function(){t.loading=!1})))}}},vf=gf;const bf=(0,m.A)(vf,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("router-link",{staticClass:"btn btn-success",attrs:{to:{name:"Add Account"}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" Tambah Akaun Pengguna")]),t._v(" "),e("button",{staticClass:"btn btn-default",attrs:{disabled:!t.canViewAdminList},on:{click:function(e){return t.refreshAdmin()}}},[e("i",{staticClass:"fa fa-refresh"}),t._v(" Refresh")])],1),t._v(" "),t.canViewAdminList?t._e():e("div",{staticClass:"alert alert-warning",staticStyle:{"margin-bottom":"12px"}},[t._v("\n\t\t\tAkses ditolak: Pengurusan akaun hanya untuk "),e("b",[t._v("Main Admin")]),t._v(" (id=1). Jika sedang impersonate, sila\n\t\t\t"),e("b",[t._v("Kembali Akaun Asal")]),t._v(".\n\t\t")]),t._v(" "),e("admin-data-table",{attrs:{headers:t.adminTableHeaders,items:t.adminItems,loading:t.loading,"show-pagination":!0,exportable:!0,"export-file-name":"admins","items-per-page":25,"show-index":!0,"index-title":"Bil.","empty-text":"Tiada akaun admin"},scopedSlots:t._u([{key:"item-impersonate",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-primary btn-sm",attrs:{disabled:!t.canImpersonate(a)},on:{click:function(e){return t.openImpersonate(a)}}},[e("i",{staticClass:"fa fa-user-secret"}),t._v(" Impersonate\n\t\t\t\t")])]}},{key:"item-delete",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-danger btn-sm",on:{click:function(e){return t.deleteAdmin(a.id)}}},[e("i",{staticClass:"fa fa-trash"}),t._v(" Padam\n\t\t\t\t")])]}}])})],1),t._v(" "),e("modal",{attrs:{id:"delete-admin-modal"}},[e("modal-header",[t._v("Delete Admin")]),t._v(" "),e("modal-body",[e("h3",[t._v("Are you sure to delete this admin?")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-danger",on:{click:function(e){return t.deleteAdmin()}}},[t._v("Padam")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#delete-admin-modal")}}},[t._v("Batal")])])],1),t._v(" "),e("modal",{attrs:{id:"impersonate-admin-modal"}},[e("modal-header",[t._v("Menyamar Admin")]),t._v(" "),e("modal-body",[t.impersonateTarget&&t.impersonateTarget.email?e("h4",[t._v("\n\t\t\t\tMenyamar "),e("b",[t._v(t._s(t.impersonateTarget.email))]),t._v(" ?\n\t\t\t")]):t._e(),t._v(" "),e("p",{staticClass:"text-muted",staticStyle:{"margin-bottom":"0"}},[t._v("\n\t\t\t\tAnda akan log masuk sebagai akaun tersebut.\n\t\t\t")])]),t._v(" "),e("modal-footer",[e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.startImpersonate()}}},[t._v("Menyamar")]),t._v(" "),e("button",{staticClass:"btn btn-default",on:{click:function(e){return t.util.hideModal("#impersonate-admin-modal")}}},[t._v("Batal")])])],1)],1)}),[],!1,null,null,null).exports;const _f={data:function(){return{loading:!1}},methods:{refreshUser:function(){var t=this;axios.get(config.API+"admin/"+this.data.user.id).then((function(e){t.data.user=e.data}))},edit:function(){if(!this.loading){this.loading=!0;var t=this;this.util.notify("Updating account","loading"),axios.put(config.API+"admin/"+this.data.user.id,$("#edit_form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success")&&(t.refreshUser(),t.$router.push({name:"Admin Home"}))})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e.response,"error")}))}}}};const yf=(0,m.A)(_f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kemaskini Akaun")]),t._v(" "),e("form",{attrs:{id:"edit_form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""},domProps:{value:t.data.user.name}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"email"}},[t._v("Emel")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"email",name:"email",required:"",pattern:"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",title:"Emel tidak sah"},domProps:{value:t.data.user.email}}),t._v(" "),e("small",{staticClass:"text-muted"},[t._v("Contoh: admin@example.com")])]),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Hantar"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Update Password"}}},[t._v("Tukar Kata\n\t\t\t\t\tLaluan")])],1)])])])}),[],!1,null,null,null).exports;const wf={data:function(){return{loading:!1}},methods:{edit:function(){if(!this.loading&&this.checkPassword()){var t=this;t.loading=!0,t.util.notify("Kemaskini Katalaluan","loading"),axios.put(config.API+"admin/password/"+this.data.user.id,$("#edit_form").serialize()).then((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"success"),t.$router.push({name:"Admin Home"})})).catch((function(e){$.notifyClose(),t.loading=!1,t.util.showResult(e,"error")}))}},checkPassword:function(){var t=$("[name=password]").val()==$("[name=confirm_password]").val();return t||this.util.notify("Password not match","error"),t}}};const xf=(0,m.A)(wf,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("h4",[t._v("Kemaskini Kata Laluan ")]),t._v(" "),e("form",{attrs:{id:"edit_form"},on:{submit:function(e){return e.preventDefault(),t.edit()}}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Update Account"}}},[t._v("Kembali")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"old_password"}},[t._v("Kata Laluan lama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"old_password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Kata Laluan Baru ")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"confirm_password"}},[t._v("Sahkan Kata Laluan")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"confirm_password",required:""}})])}],!1,null,null,null).exports;const kf={data:function(){return{loading:!1}},methods:{add:function(){if(!this.loading&&this.isPasswordMatch()){var t=this;this.loading=!0,this.util.notify("Adding Admin","loading"),axios.post(config.API+"admin",$("#add_form").serialize()).then((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"success")&&t.$router.push({name:"Manage Account"})})).catch((function(e){t.loading=!1,$.notifyClose(),t.util.showResult(e,"error")}))}},isPasswordMatch:function(){var t=$("[name=password]").val()==$("[name=confirm_password]").val();return t||this.util.notify("Password not match","error"),t}}};const Sf=(0,m.A)(kf,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("form",{attrs:{id:"add_form"},on:{submit:function(e){return e.preventDefault(),t.add()}}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),e("div",{staticClass:"form-group"},[e("input",{staticClass:"btn btn-info",attrs:{type:"submit",value:"Submit"}}),t._v(" "),e("router-link",{staticClass:"btn btn-default",attrs:{to:{name:"Manage Account"}}},[t._v("Back")])],1)])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"name"}},[t._v("Nama")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",name:"name",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"email"}},[t._v("Email")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"email",name:"email",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"password"}},[t._v("Password")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"confirm_password"}},[t._v("Confirm Password")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"password",name:"confirm_password",required:""}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"role"}},[t._v("Role")]),t._v(" "),e("select",{staticClass:"form-control",attrs:{id:"role",name:"role",value:"",required:""}},[e("option",{attrs:{value:"1"}},[t._v("Admin")]),t._v(" "),e("option",{attrs:{value:"2"}},[t._v("Jawatankuasa Audit")]),t._v(" "),e("option",{attrs:{value:"3"}},[t._v("Jawatankuasa Kehadiran")])])])}],!1,null,null,null).exports;const Cf={name:"PembiayaanForm",data:function(){return{form:{nama:"",kp:"",akaun:"",jumlah:"",tujuan:"",komoditi:"",setuju:!1,tarikh:"",tandatangan:""}}},methods:{goToBeliankomoditi:function(){this.$router.push("/beliankomoditi")}}};var Af=n(1657),Ef={insert:"head",singleton:!1};i()(Af.A,Ef);Af.A.locals;const Tf=(0,m.A)(Cf,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"pembiayaan-wrapper"},[e("form",{staticClass:"two-column-form",on:{submit:function(e){return e.preventDefault(),t.goNext.apply(null,arguments)}}},[t._m(0)]),t._v(" "),e("section",{staticClass:"mb-4"},[e("h5",{staticClass:"section-title mb-3"},[t._v("Maklumat Pemohon")]),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"nama"}},[t._v("Nama Penuh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nama,expression:"form.nama"}],staticClass:"form-control",attrs:{type:"text",id:"nama",placeholder:"Masukkan nama penuh",required:""},domProps:{value:t.form.nama},on:{input:function(e){e.target.composing||t.$set(t.form,"nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"kp"}},[t._v("No. Kad Pengenalan:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.kp,expression:"form.kp"}],staticClass:"form-control",attrs:{type:"text",id:"kp",placeholder:"Masukkan no. kad pengenalan",required:""},domProps:{value:t.form.kp},on:{input:function(e){e.target.composing||t.$set(t.form,"kp",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"akaun"}},[t._v("No. Akaun Bank:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.akaun,expression:"form.akaun"}],staticClass:"form-control",attrs:{type:"text",id:"akaun",placeholder:"Masukkan no. akaun bank",required:""},domProps:{value:t.form.akaun},on:{input:function(e){e.target.composing||t.$set(t.form,"akaun",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"col-md-6 mb-3"},[e("label",{staticClass:"form-label",attrs:{for:"tarikh"}},[t._v("Tarikh Permohonan:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.tarikh,expression:"form.tarikh"}],staticClass:"form-control",attrs:{type:"date",id:"tarikh",required:""},domProps:{value:t.form.tarikh},on:{input:function(e){e.target.composing||t.$set(t.form,"tarikh",e.target.value)}}})])])]),t._v(" "),e("hr"),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),e("div",{staticClass:"row mb-3"},[t._m(3),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_nama,expression:"form.penjamin1_nama"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Nama Penjamin",required:""},domProps:{value:t.form.penjamin1_nama},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_kp,expression:"form.penjamin1_kp"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Kad Pengenalan",required:""},domProps:{value:t.form.penjamin1_kp},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_kp",e.target.value)}}})]),t._v(" "),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_anggota,expression:"form.penjamin1_anggota"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Anggota",required:""},domProps:{value:t.form.penjamin1_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_anggota",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"row mb-3"},[t._m(4),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_nama,expression:"form.penjamin1_nama"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Nama Penjamin",required:""},domProps:{value:t.form.penjamin1_nama},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_kp,expression:"form.penjamin1_kp"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Kad Pengenalan",required:""},domProps:{value:t.form.penjamin1_kp},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_kp",e.target.value)}}})]),t._v(" "),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_anggota,expression:"form.penjamin1_anggota"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Anggota",required:""},domProps:{value:t.form.penjamin1_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_anggota",e.target.value)}}})])])]),t._v(" "),e("div",{staticClass:"row mb-3"},[t._m(5),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_nama,expression:"form.penjamin1_nama"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"Nama Penjamin",required:""},domProps:{value:t.form.penjamin1_nama},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"mb-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_kp,expression:"form.penjamin1_kp"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Kad Pengenalan",required:""},domProps:{value:t.form.penjamin1_kp},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_kp",e.target.value)}}})]),t._v(" "),e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.penjamin1_anggota,expression:"form.penjamin1_anggota"}],staticClass:"form-control form-control-lg",attrs:{placeholder:"No. Anggota",required:""},domProps:{value:t.form.penjamin1_anggota},on:{input:function(e){e.target.composing||t.$set(t.form,"penjamin1_anggota",e.target.value)}}})])])]),t._v(" "),e("br"),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),t._m(8),t._v(" "),t._m(9),t._v(" "),t._m(10),t._v(" "),e("section",{staticClass:"mb-4"},[e("h5",{staticClass:"section-title"},[t._v("PENERIMAAN")]),t._v(" "),t._m(11),t._v(" "),e("form",{staticClass:"two-column-form"},[e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"sign"}},[t._v("Sign:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.sign,expression:"form.sign"}],attrs:{id:"sign",required:""},domProps:{value:t.form.sign},on:{input:function(e){e.target.composing||t.$set(t.form,"sign",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nama"}},[t._v("Nama Penuh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nama,expression:"form.nama"}],attrs:{id:"nama",required:""},domProps:{value:t.form.nama},on:{input:function(e){e.target.composing||t.$set(t.form,"nama",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"nokp"}},[t._v("No K/P:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.nokp,expression:"form.nokp"}],attrs:{id:"nokp",required:""},domProps:{value:t.form.nokp},on:{input:function(e){e.target.composing||t.$set(t.form,"nokp",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{attrs:{for:"tarikh"}},[t._v("Tarikh:")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.tarikh,expression:"form.tarikh"}],attrs:{type:"date",id:"tarikh",required:""},domProps:{value:t.form.tarikh},on:{input:function(e){e.target.composing||t.$set(t.form,"tarikh",e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"button-container"},[e("router-link",{staticClass:"btn btn-primary px-4",attrs:{to:"/beliankomoditi"}},[t._v("\n Seterusnya\n ")])],1)])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-10 col-lg-8"},[e("div",{staticClass:"text-center mb-4"},[e("div",{staticClass:"d-flex align-items-center justify-content-center mb-2"},[e("img",{staticClass:"kopkb-logo me-2",attrs:{src:"/images/KoPKB_Logo.png",alt:"KoPKB Logo"}}),t._v(" "),e("h4",{staticClass:"mb-0 fw-bold"},[t._v("Koperasi Permodalan Kelantan Berhad (KoPKB)")])]),t._v(" "),e("h5",{staticClass:"text-primary fw-semibold mt-2"},[t._v("Borang Permohonan Pembiayaan Murabahah")])])])])])},function(){var t=this,e=t._self._c;return e("p",[t._v(" Sukacita dimaklumkan bahawa "),e("b",[t._v("Koperasi Permodalan Kelantan Berhad ")]),t._v("(selepas ini disebut sebagai "),e("b",[t._v('"Koperasi")')]),t._v(" akan menawarkan kemudahan pembiayaan \n "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" \n kepada tuan/puan tertakluk kepada syarat seperti berikut:\n")])},function(){var t=this,e=t._self._c;return e("section",{staticClass:"mb-4"},[e("h5",{staticClass:"section-title mb-4"},[t._v("Maklumat Pembiayaan")]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label"},[t._v("KONSEP SYARIAH:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("Tawarruq")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"jumlah_pembiayaan"}},[t._v("JUMLAH PEMBIAYAAN (RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" (a) ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"kadar_keuntungan"}},[t._v("KADAR KEUNTUNGAN (%):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" % keuntungan ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"jumlah_keuntungan"}},[t._v("JUMLAH KEUNTUNGAN (RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" (b) ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"harga_jualan_tangguh"}},[t._v("HARGA JUALAN TANGGUH(RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" (a + b) ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"komoditi"}},[t._v("MAKLUMAT KOMODITI:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("Crude Palm Oil ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"tempoh_perjanjian"}},[t._v("TEMPOH PERJANJIAN PEMBIAYAN :")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" TAHUN/ "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" BULAN ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-center"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"bayaran_ansuran"}},[t._v("BAYARAN ANSURAN (RM):")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v(" RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" Sebulan bermula bulan "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" Tahun "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" sehingga bulan "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" tahun "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(". Bayaran akhir sebanyak RM "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" pada bulan "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(" tahun "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block"},attrs:{contenteditable:"true"}},[t._v(" ")]),t._v(". ")])])]),t._v(" "),e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label"},[t._v("KAEDAH / CARA BAYARAN:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"form-control-plaintext"},[t._v("\n Ansuran bulanan dibayar melalui potongan gaji anggota ATAU Bayaran melalui:\n "),e("span",{staticStyle:{"border-bottom":"1px solid #000",padding:"2px 40px",display:"inline-block","min-width":"150px"},attrs:{contenteditable:"true"}},[t._v("\n \n ")])])])])])},function(){var t=this._self._c;return t("div",{staticClass:"col-md-4"},[t("label",{staticClass:"col-form-label"},[this._v("PENJAMIN 1:")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-md-4"},[t("label",{staticClass:"col-form-label"},[this._v("PENJAMIN 2:")])])},function(){var t=this._self._c;return t("div",{staticClass:"col-md-4"},[t("label",{staticClass:"col-form-label"},[this._v("PENJAMIN 3:")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"penyelesaian_awal"}},[t._v("PENYELESAIAN PEMBIAYAAN AWAL:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("Tuan/Puan boleh membuat penyelesaian pembiayaan awal dengan menjelaskan harga jualan sepenuhnya pada bila -bila masa sebelum tempoh perjanjian pembiayaan tamat .dan Koperasi berhak untuk memberikan Ibra' (rehat) kepada Tuan/Puan diatas penjelasan awal tersebut . Formula bagi penyelesaian awal pembiayaan adalah seperti berikut : "),e("br"),t._v(" "),e("b",[t._v(" Jumlah Penyelesaian Awal= Harga Jualan -Jumlah Ansuranyang telah dibayar -Keuntungan Belum Terakru . ")]),e("br")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"perlanggaran_perjanjian"}},[t._v("PERLANGGARAN PERJANJIAN:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0"},[t._v("i) Tuan/Puan dianggap melanggar perjanjian ini sekiranya:")]),t._v(" "),e("ul",{staticClass:"form-control-plaintext mb-0",staticStyle:{"list-style-type":"lower-alpha","padding-left":"20px"}},[e("li",[t._v("Gagal membuat bayaran ansuran lebih dari tiga (3) bulan; atau")]),t._v(" "),e("li",[t._v("Berhenti daripada menjadi anggota / ahli koperasi dalam tempoh perjanjian atau sehingga seluruh Harga Jualan Tangguh diselesaikan sepenuhnya.")])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v(" ii) Sekiranya Tuan/Puan didapati melakukan perkara diatas, pihak Koperasi berhak untuk menuntut baki Harga Jualan Tangguh dan Yuran,Saham atau Simpanan oleh Tuan/Puan di Koperasi. ")]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v(" iii) Tuan/Puan membenarkan pihak Koperasi untuk menuntut segala kos , perbelanjaan, bayaran ganti rugi dan sebagainya yang berkaiatn dengan usaha Koperasi untuk mendapatkan hak Harga Jualan Tangguh sekiranya berlaku perlanggaran perjanjian ini.")])])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"penyampaian proses"}},[t._v("PENYAMPAIAN PROSES PERUNDANGAN:")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0",staticStyle:{"text-align":"justify"}}),t._v(" Penyampaian semua proses undang - undang adalah dianggap telah disampaikan dan diterima sekiranya telah diposkan melalui pos berdaftar yang dialamatkan kepada Tuan/Puan dialamat yang dinyatakan dalam surat tawaran ini atau kepada alamat terakhiryang diberikan oleh Tuan/Puan secara bertulis kepada kami dan proses tersebut sama ada sama tau sebaliknya adalah dianggap telah disampaikan dan diterima selepas tiga (3) hari ia diposkan . "),e("p")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"row mb-3 align-items-start"},[e("div",{staticClass:"col-md-4"},[e("label",{staticClass:"col-form-label",attrs:{for:"penyampaian proses"}},[t._v("SYARAT -SYARAT LAIN :")])]),t._v(" "),e("div",{staticClass:"col-md-8"},[e("p",{staticClass:"form-control-plaintext mb-0",staticStyle:{"text-align":"justify"}}),t._v(" Koperasi berhak memaklumkan sttaus / kedudukan pembiayaan ini kepada penjamin - penjamin pada bila-bila masa diperlukan sama ada bertulis atau lisan , jika berkenaan. \n ")])])},function(){var t=this,e=t._self._c;return e("section",[e("br"),t._v(" "),e("p",{staticClass:"text-secondary"}),t._v("\n Tuan/Puan dikehendaki menandatangani kesemua dokumen yang berkaitan dalam tempoh tiga puluh (30) hari dari tarikh yang dinyatakan di Surat Tawaran ini .Segala bayaran guaman dan perbelanjaan yang bersangkutan dengan urusan ini adalah di atas tanggungan Tuan/Puan walaupon Tuan/Puan memutuskan untuk tidak meneruskan urusna dokumentasi ini , selepas menandatangani tawaran ini.\n "),e("br"),t._v(" "),e("p",{staticClass:"text-secondary"}),t._v("Sekiranya pihak kami tiada menerima sebarang maklumbalas daripada pihak Tuan/Puan dalam tempoh yang ditetapkan,maka dengan sendirinya tawaran ini terbatal. \n "),e("br"),t._v(" "),e("p",{staticClass:"text-secondary"},[t._v("Sekian, terima kasih.")]),t._v(" "),e("div",{staticClass:"text-left mt-4"},[e("p",[t._v("Yang benar,")]),t._v(" "),e("div",{staticClass:"my-5",staticStyle:{height:"50px"}}),t._v("\n -------------------------------------\n "),e("p",[e("strong",[t._v("Pengurus Besar")])]),t._v(" "),e("p",[t._v("Koperasi Permodalan Kelantan Berhad")])])])},function(){var t=this,e=t._self._c;return e("label",{staticClass:"d-flex align-items-center"},[t._v("\n Saya/Kami bersetuju menerima tawaran ini dengan syarat -syarat seperti di atas . "),e("br"),t._v("Saya/Kami juga mengaku bahawa semua maklumat yang telah diberikan dalah tepat, dan masih menjadi seorang anggota /ahli Koperasi semasa menerima tawaran ini . \n ")])}],!1,null,"c88ae6a2",null).exports;const Pf={data:function(){return{komoditi:"",kuantiti:"",harga:""}},methods:{saveAndNext:function(){var t={komoditi:this.komoditi,kuantiti:this.kuantiti,harga:this.harga};localStorage.setItem("formData",JSON.stringify(t)),console.log("Navigating to Kontrak Murabahah..."),this.$router.push({name:"KontrakMurabahah"})}}};var Nf=n(3575),Lf={insert:"head",singleton:!1};i()(Nf.A,Lf);Nf.A.locals;const Of=(0,m.A)(Pf,(function(){var t=this,e=t._self._c;return e("form",{staticClass:"ion-text-center",on:{submit:function(e){return e.preventDefault(),t.saveAndNext.apply(null,arguments)}}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-10 col-lg-8"},[t._m(0),t._v(" "),e("form",[t._m(1),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v('\n Selaras dengan Surat Tawaran, saya dengan ini beraku janji untuk membeli komoditi yang dinyatakan di dalam Surat Tawaran Pembiayaan ("Komoditi") daripada Koperasi pada Harga Jualan yang tersebut dalam Surat Tawaran Pembiayaan ("Harga Jualan") bersama-sama dengan semua kos lain yang termasuk dengannya (termasuk tetapi tidak terhad kepada kos komoditi yang dinyatakan di dalam Surat Tawaran Pembiayaan) yang kedua-duanya akan dibayar mengikut terma-terma dan syarat-syarat Perjanjian Pembiayaan Tawarruq atau apa-apa kaedah lain yang dibenarkan oleh Koperasi.\n ')]),t._v(" "),e("br"),t._v(" "),e("p",[t._v("Saya dengan ini membuat pilihan untuk:")]),t._v(" "),e("p",[t._v("Sila tandakan (✓) jika berkenaan.")]),t._v(" "),t._m(2),t._v(" "),e("p",{staticClass:"text-center fw-bold"},[t._v("ATAU")]),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),t._m(5),t._v(" "),e("hr"),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),e("p",[t._v("Pengesahan : ")]),t._v(" "),e("p",[t._v("[Tandatangan Pemohon] : _____________________________")]),t._v(" "),e("p",[t._v(":Nama Pemohon : ___________________________")]),t._v(" "),e("p",[t._v(" No Kad Pengenalan : _______________________")]),t._v(" "),e("div",{staticClass:"text-end mt-4"},[e("router-link",{staticClass:"btn btn-dark me-2",attrs:{to:"/"}},[t._v("Sebelum")]),t._v(" "),e("button",{staticClass:"btn btn-primary px-4",attrs:{type:"submit"},on:{click:t.saveAndNext}},[t._v(" Seterusnya")])],1)])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-center mb-4"},[e("div",{staticClass:"d-flex align-items-center justify-content-center mb-2"},[e("img",{staticClass:"kopkb-logo me-2",staticStyle:{height:"50px"},attrs:{src:"/images/KoPKB_Logo.png",alt:"KoPKB Logo"}}),t._v(" "),e("h4",{staticClass:"mb-0 fw-bold"},[t._v("\n Koperasi Permodalan Kelantan Berhad (KoPKB)\n ")])]),t._v(" "),e("h5",{staticClass:"text-primary fw-semibold mt-2"},[t._v("\n AKUJANJI BELIAN KOMODITI\n ")])])},function(){var t=this._self._c;return t("p",[t("b",[this._v("Aku Janji Belian Komoditi")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-check mb-3"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",id:"pilihan1"}}),t._v(" "),e("label",{staticClass:"form-check-label",staticStyle:{"text-align":"justify"},attrs:{for:"pilihan1"}},[t._v("\n Menerima penghantaran komoditi, atau menjual komoditi kepada mana-mana pihak ketiga atas kehendak saya, dengan segala kos berkaitan ditanggung oleh saya sendiri. Saya dengan ini melepaskan Koperasi daripada segala tanggungan dan beraku janji untuk menanggung kos koperasi terhadap apa-apa tindakan undang-undang termasuk menanggung rugi semua kos dan perbelanjaan atau kerosakan yang koperasi mungkin alami atau tanggung berikutan pilihan saya ini.\n ")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-check mb-3"},[e("input",{staticClass:"form-check-input",attrs:{type:"checkbox",id:"pilihan2"}}),t._v(" "),e("label",{staticClass:"form-check-label",staticStyle:{"text-align":"justify"},attrs:{for:"pilihan2"}},[t._v("\n Meninggalkan komoditi itu kepada koperasi dan menyerahkan kuasa kepada koperasi sebagai wakil saya untuk menjual komoditi itu kepada pihak ketiga yang difikirkan sesuai oleh koperasi pada harga sama seperti jumlah pembiayaan dalam Surat Tawaran Pembiayaan dan dengan itu mengkreditkan hasil jualan komoditi (Jumlah Pembiayaan) ke dalam akaun saya, atau diserahkan secara tunai kepada saya.\n ")])])},function(){var t=this._self._c;return t("p",[this._v("Harga Jualan (Jumlah Pembiayaan): RM "),t("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text",placeholder:""}})])},function(){var t=this._self._c;return t("p",[this._v("No. Akaun Bank:"),t("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text",placeholder:""}})])},function(){var t=this._self._c;return t("h5",{staticClass:"mt-4"},[t("strong",[this._v("PERLANTIKAN WAKIL")])])},function(){var t=this,e=t._self._c;return e("p",{staticStyle:{"text-align":"justify"}},[t._v("\n Saya dengan ini secara muktamadnya melantik "),e("b",[t._v("Koperasi Permodalan Kelantan Berhad")]),t._v(" setelah Surat Tawaran Pembiayaan dipersetujui sebagai wakil saya untuk menjual komoditi seperti yang dinyatakan didalam Surat Tawaran kepada mana -mana pihak pembeli ketiga yang difikirkan sesuai oleh Koperasi melalui platform Bursa Suq Al-Sila'(BSAS) atau mana -mana platform yang difikirkan sesuai .\n ")])}],!1,null,"05649db8",null).exports;const Mf={data:function(){return{formData:null,nama:"",ic:""}},mounted:function(){var t=localStorage.getItem("formData");t&&(this.formData=JSON.parse(t),console.log("Loaded data:",this.formData))},methods:{cetak:function(){this.$nextTick((function(){var t=document.getElementById("permohonan");if(t){var e=window.open("","","width=1000,height=800");e.document.write('\n <html>\n <head>\n <title>Cetak Permohonan</title>\n <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">\n <style>\n body { font-family: Arial, sans-serif; margin: 20px; font-size: 12px; color: #000; }\n table, th, td {\n border: 1px solid #000; border-collapse: collapse; padding: 6px;\n }\n th { background-color: #f8f9fa; }\n .signature-line {\n display: inline-block;\n width: 200px;\n border-bottom: 1px solid #000;\n margin-left: 10px;\n }\n @media print {\n button { display: none !important; }\n }\n </style>\n </head>\n <body>'.concat(t.outerHTML,"</body>\n </html>\n ")),e.document.close(),e.onload=function(){e.focus(),e.print(),e.close()}}else alert("Ralat: Elemen #permohonan tidak ditemui!")}))}}};var Rf=n(1293),If={insert:"head",singleton:!1};i()(Rf.A,If);Rf.A.locals;const Df=(0,m.A)(Mf,(function(){var t=this,e=t._self._c;return e("form",{staticClass:"ion-text-center",on:{submit:function(e){return e.preventDefault(),t.submitForm.apply(null,arguments)}}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center"},[t._m(0),t._v(" "),e("br"),t._v(" "),e("link",{attrs:{href:"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css",rel:"stylesheet"}}),t._v(" "),e("div",{staticClass:"button-container text-center mt-4"},[e("button",{staticClass:"btn btn-primary px-4",attrs:{type:"button"},on:{click:t.simpan}},[t._v("\n Simpan\n ")]),t._v(" "),e("button",{staticClass:"btn btn-success px-4",attrs:{type:"button"},on:{click:t.cetak}},[e("i",{staticClass:"bi bi-printer"}),t._v(" Cetak Permohonan\n ")])])])])])}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"col-md-10 col-lg-8",attrs:{id:"permohonan"}},[e("div",{staticClass:"text-center mb-4"},[e("div",{staticClass:"d-flex align-items-center justify-content-center mb-2"},[e("img",{staticClass:"kopkb-logo me-2",staticStyle:{height:"40px"},attrs:{src:"/images/KoPKB_Logo.png",alt:"KoPKB Logo"}}),t._v(" "),e("h6",{staticClass:"mb-0 fw-bold"},[t._v("\n Koperasi Permodalan Kelantan Berhad (KoPKB)\n ")])]),t._v(" "),e("h6",{staticClass:"text-primary fw-semibold mt-2"},[t._v("\n KONTRAK JUALAN MURABAHAH\n ")])]),t._v(" "),e("p",{staticClass:"ion-text-center"},[t._v("Pihak -pihak yang terlibat di dalam Kontrak Jualan Murabahah ini adalah : ")]),t._v(" "),e("ol",{staticClass:"ion-text-center",staticStyle:{"list-style-position":"inside"}},[e("li",[e("b",[t._v("KOPERASI PERMODALAN KELANTAN BERHAD (KoPKB) ")]),t._v(" selepas ini akan dinyatakan sebagai "),e("strong",[t._v("('Koperasi')")]),t._v(" dan ,")]),t._v(" "),e("li",[t._v("Anggota yang bernama dan mempunyai No Kad Pengenalan sebagaimana yang dinyatakan dalam Bahagian 2 Jadual A,selepas ini dinyatakan sebagai "),e("strong",[t._v("('Pelanggan')")])]),t._v(" "),e("br"),t._v(" "),e("p",[t._v(" Dengan ini, pihak - pihak yang dinyatakan di atas "),e("b",[t._v("BERSETUJU DAN MENGISYTIHARKAN")]),t._v(" seperti berikut : ")]),t._v(" "),e("ol",{staticClass:"ion-text-center",staticStyle:{"list-style-position":"inside"}},[e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("JUALAN KOMODITI")])])]),t._v(" "),e("br"),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v("Berdasarkan kepada Surat Tawaran bertarikh "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"date",placeholder:"<tarikh>"}}),t._v(" dan Aku Janji yang dikeluarkan oleh Pelanggan kepada Koperasi , Koperasi dengan ini menjual dan Pelanggan dengan ini membeli komoditi (butiran yang mana adalah seperti yang dinyatakan pada Bahagian 3 Jadual A didalam Perjanjian ini) ('Komoditi') pada Harga Jualan yang dinyatakan pada Bahgaian 4 Jadual A didalam Perjanjian ini.\n ('Harga Jualan') yang merangkumi Harga Kos Koperasi seperti yang dinyatakan pada Bahagian 5 Jadual A di dalam Perjanjian ini dan margin keuntungan dengan pembayaran secara tangguh tertakluk kepada terma dan syarat di dalam Surat Tawaran. )")]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("PEMINDAHAN HAK MILIK")])])]),t._v(" "),e("ol",{staticStyle:{"list-style-position":"inside"},attrs:{type:"a"}},[e("li",{staticStyle:{"text-align":"justify","text-justify":"inter-word"}},[t._v("Setelah pemeteraian Kontrak Jualan Murabahah ini disempurnakan, liabiliti dan hak pemilikan bermanfaat terhadap komoditi hendaklah dengan segera diserahkan kepada Pelanggan. \n ")]),t._v(" "),e("li",{staticStyle:{"text-align":"justify","text-justify":"inter-word"}},[t._v("Koperasi hendaklah menyimpan sijil yang berkaitan dengan Komoditi (Lampiran1 ) dalam jagaannya sebagai pemegang amanah bagi kepentingan Pelanggan untuk tujuan penjualan komoditi seterusnya kepaga peniaga komoditi sepetimana yang dinyatakan di dalam Surat Perlantikan Wakil yang dikeluarkan oleh Pelanggan kepada Koperasi .Pelanggan mempunyai hak untuk memeriksa perakuan tersebut di premis Koperasi atau memohon Koperasi untuk memberikan satu salinan sijil tersebut kepada pelanggan melalui permohonan bertulis kepada Koperasi . \n ")])]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("PEMBAYARAN HARGA JUALAN")])])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v(" Pembayaran Harga Jualan oleh Pelanggan kepada Koperasi hendaklah sebagaimana yang dinyatakan di dalam Bahagian 6 Jadual A kepada Perjanjian ini. ")]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("TERMA DAN SYARAT")])])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v("Terma dan syarat yang dinyatakan dalam Surat Tawaran , Aku Janji , Surat Perlantikan Wakil bersama -sama dokumen undang - undang yang berkaitan dengan ini mengikat diantara Pelanggan dan Koperasi . ")]),t._v(" "),e("li",[e("h6",{staticStyle:{display:"inline"}},[e("strong",[t._v("PELANGGAN")])])]),t._v(" "),e("p",{staticStyle:{"text-align":"justify"}},[t._v("\n Saya dengan ini bersetuju untuk membeli Komoditi seperti butiran yang dinyatakan pada Bahagian 3 dalam Jadual A di dalam Perjanjian ini dengan Harga Jualan yang dinyatakan pada Bahagian 4 Jadual A di dalam Perjanjian ini, secara pembayaran tertangguh yang dinyatakan pada Bahagian 6 Jadual A di dalam Perjanjian ini.\n")])])]),t._v(" "),e("div",{staticClass:"row mt-5 text-start"},[e("div",{staticClass:"col-md-6"},[e("strong",[t._v("Anggota Pemohon / Pembeli")]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tandatangan:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Nama:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tarikh:")]),t._v(" "),e("span",{staticClass:"signature-line"})])]),t._v(" "),e("br"),t._v(" "),e("div",{staticClass:"page-break"},[e("div",{staticClass:"col-md-6"},[e("strong",[t._v("KOPERASI")]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tandatangan:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Nama:")]),t._v(" "),e("span",{staticClass:"signature-line"})]),t._v(" "),e("div",{staticClass:"d-flex justify-content-between align-items-center mt-2"},[e("label",{staticStyle:{width:"100px"}},[t._v("Tarikh:")]),t._v(" "),e("span",{staticClass:"signature-line"})])])]),t._v(" "),e("hr"),t._v(" "),e("table",{staticClass:"print-table"},[e("thead",{staticStyle:{"background-color":"#f2f2f2"}},[e("tr",[e("th",[t._v("Bahagian")]),t._v(" "),e("th",[t._v("Perkara")]),t._v(" "),e("th",[t._v("Maklumat")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[t._v("1")]),t._v(" "),e("td",[t._v("Tarikh Kontrak Jualan Murabahah")]),t._v(" "),e("td",[e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"date"}})])]),t._v(" "),e("tr",[e("td",[t._v("2")]),t._v(" "),e("td",[t._v("Nama dan No. K/P Pelanggan")]),t._v(" "),e("td",[e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text"}})])]),t._v(" "),e("tr",[e("td",[t._v("3")]),t._v(" "),e("td",[t._v("Butiran komoditi")]),t._v(" "),e("td",[t._v("Cert No: "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text"}})])]),t._v(" "),e("tr",[e("td",[t._v("4")]),t._v(" "),e("td",[t._v("Harga Jualan")]),t._v(" "),e("td",[t._v("RM "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}})])]),t._v(" "),e("tr",[e("td",[t._v("5")]),t._v(" "),e("td",[t._v("Harga Kos Koperasi")]),t._v(" "),e("td",[t._v("RM "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}})])]),t._v(" "),e("tr",[e("td",[t._v("6")]),t._v(" "),e("td",[t._v("Pembayaran Harga Jualan")]),t._v(" "),e("td",[t._v("\n Ringgit Malaysia "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"text"}}),t._v("\n (RM "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}}),t._v(")\n hanya perlu dibayar oleh Pelanggan kepada Koperasi sebanyak RM\n "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}}),t._v("\n secara ansuran bulanan selama\n "),e("input",{staticStyle:{border:"none","border-bottom":"1px solid #888",outline:"none"},attrs:{type:"number"}}),t._v(" bulan.\n ")])])])])])])}],!1,null,null,null).exports;const Ff={name:"CetakPermohonan",components:{Pembiayaan:Tf,BelianKomoditi:Of,KontrakMurabahah:Df},mounted:function(){setTimeout((function(){return window.print()}),500)},methods:{cetak:function(){this.$router.push("/cetakpermohonan")}}};const jf=(0,m.A)(Ff,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"cetak-page"},[e("ManagePembiayaan"),t._v(" "),e("ManageBelianKomoditi"),t._v(" "),e("ManageKontrakMurabahah")],1)}),[],!1,null,null,null).exports;function Bf(t){return Bf="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},Bf(t)}function zf(){zf=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new N(a||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,o,s){var l=d(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Bf(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function A(e,n,a){var r=h;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===h)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=d(e,n,a);if("normal"===c.type){if(r=a.done?m:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Bf(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function Uf(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}const Hf={name:"ManagePenyata",data:function(){return{penyata:[],loading:!1,searchNoAnggota:"",penyataTableHeaders:[{title:"No Anggota",key:"no_anggota",sortable:!0},{title:"Unit",key:"unit",sortable:!0},{title:"Nama",key:"name",sortable:!0},{title:"Tindakan",key:"aksi",sortable:!1}],meta:{current_page:1,last_page:1}}},mounted:function(){this.getPenyata()},methods:{getPenyata:function(){var t=arguments,e=this;return function(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){Uf(i,a,r,o,s,"next",t)}function s(t){Uf(i,a,r,o,s,"throw",t)}o(void 0)}))}}(zf().mark((function n(){var a,r;return zf().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=t.length>0&&void 0!==t[0]?t[0]:1,e.loading=!0,n.prev=2,n.next=5,sa.get("/api/v1/voter",{params:{page:a,no_anggota:e.searchNoAnggota}});case 5:r=n.sent,e.penyata=r.data.data,e.meta.current_page=r.data.current_page,e.meta.last_page=r.data.last_page,n.next=15;break;case 11:n.prev=11,n.t0=n.catch(2),console.error(n.t0),alert("Gagal ambil senarai penyata");case 15:return n.prev=15,e.loading=!1,n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,11,15,18]])})))()},changePage:function(t){this.getPenyata(t)},searchPenyata:function(){this.getPenyata(1)},resetSearch:function(){this.searchNoAnggota="",this.getPenyata(1)},bolehCetak:function(t){return["DISAHKAN","PERLU_SEMAK"].includes(t)},cetakPDF:function(t){sa({url:"/api/v1/penyata/".concat(t,"/pdf"),method:"GET",responseType:"blob"}).then((function(t){var e=new Blob([t.data],{type:"application/pdf"}),n=URL.createObjectURL(e);window.open(n)})).catch((function(t){console.error(t),alert("Gagal jana PDF.")}))}}},Vf=Hf;const Wf=(0,m.A)(Vf,(function(){var t=this,e=t._self._c;return e("div",[e("admin-data-table",{attrs:{headers:t.penyataTableHeaders,items:t.penyata,loading:t.loading,"show-pagination":!0,"index-title":"Bil.","empty-text":"Tiada data penyata",exportable:!0},scopedSlots:t._u([{key:"item-aksi",fn:function(n){var a=n.item;return[e("button",{staticClass:"btn btn-success btn-sm",attrs:{type:"button",disabled:!t.bolehCetak(a.status_penyata)},on:{click:function(e){return t.cetakPDF(a.no_anggota)}}},[t._v("\n PDF\n ")])]}}])}),t._v(" "),t.meta.last_page>1?e("div",{staticClass:"text-right"},[e("button",{staticClass:"btn btn-default btn-sm",attrs:{disabled:1===t.meta.current_page},on:{click:function(e){return t.changePage(t.meta.current_page-1)}}},[t._v("\n Sebelumnya\n ")]),t._v(" "),e("button",{staticClass:"btn btn-default btn-sm",attrs:{disabled:t.meta.current_page===t.meta.last_page},on:{click:function(e){return t.changePage(t.meta.current_page+1)}}},[t._v("\n Seterusnya\n ")])]):t._e()],1)}),[],!1,null,null,null).exports;function qf(t){return qf="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},qf(t)}function $f(){$f=function(){return e};var t,e={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,a){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new N(a||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",m="completed",g={};function v(){}function b(){}function _(){}var y={};c(y,o,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&a.call(x,o)&&(y=x);var k=_.prototype=v.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,o,s){var l=d(t[r],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==qf(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(u).then((function(t){c.value=t,o(c)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(t,a){function r(){return new e((function(e,r){n(t,a,e,r)}))}return i=i?i.then(r,r):r()}})}function A(e,n,a){var r=h;return function(i,o){if(r===p)throw Error("Generator is already running");if(r===m){if("throw"===i)throw o;return{value:t,done:!0}}for(a.method=i,a.arg=o;;){var s=a.delegate;if(s){var l=E(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===h)throw r=m,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=p;var c=d(e,n,a);if("normal"===c.type){if(r=a.done?m:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=m,a.method="throw",a.arg=c.arg)}}}function E(e,n){var a=n.method,r=e.iterator[a];if(r===t)return n.delegate=null,"throw"===a&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==a&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var i=d(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(qf(e)+" is not iterable")}return b.prototype=_,r(k,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:b,configurable:!0}),b.displayName=c(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,l,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},S(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,a,r,i){void 0===i&&(i=Promise);var o=new C(u(t,n,a,r),i);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(k),c(k,l,"Generator"),c(k,o,(function(){return this})),c(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var a in e)n.push(a);return n.reverse(),function t(){for(;n.length;){var a=n.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(a,r){return s.type="throw",s.arg=e,n.next=a,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;P(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,a){return this.delegate={iterator:L(e),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=t),g}},e}function Kf(t,e,n,a,r,i,o){try{var s=t[i](o),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(a,r)}function Gf(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){Kf(i,a,r,o,s,"next",t)}function s(t){Kf(i,a,r,o,s,"throw",t)}o(void 0)}))}}const Yf={data:function(){return{loading:!1,saving:!1,bannerFile:null,etikaFile:null,form:{home_mat_label:"",home_banner_image_path:"",zoom_meeting_label:"",zoom_subtitle:"",zoom_image_url:"",zoom_meeting_url:"",attendance_etika_url:""}}},created:function(){this.util.setTitle("MyKoPKB - Tetapan Portal"),this.fetch()},methods:{onBannerChange:function(t){var e=t&&t.target?t.target.files:null;this.bannerFile=e&&e.length?e[0]:null},onEtikaChange:function(t){var e=t&&t.target?t.target.files:null;this.etikaFile=e&&e.length?e[0]:null},fetch:function(){var t=this;return Gf($f().mark((function e(){var n,a;return $f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,t.util.setAuthorization(),e.next=5,axios.get(config.API+"admin/portal-settings");case 5:(n=e.sent)&&n.data&&"success"===n.data.status?(a=n.data.data||{},t.form={home_mat_label:a.home_mat_label||"",home_banner_image_path:a.home_banner_image_path||"",zoom_meeting_label:a.zoom_meeting_label||"",zoom_subtitle:a.zoom_subtitle||"",zoom_image_url:a.zoom_image_url||"",zoom_meeting_url:a.zoom_meeting_url||"",attendance_etika_url:a.attendance_etika_url||""}):t.util.showResult(n,"error"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),t.util.showResult(e.t0,"error");case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})))()},save:function(){var t=this;return Gf($f().mark((function e(){var n,a;return $f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.saving){e.next=2;break}return e.abrupt("return");case 2:return t.saving=!0,e.prev=3,t.util.setAuthorization(),(n=new FormData).append("home_mat_label",t.form.home_mat_label||""),n.append("zoom_meeting_label",t.form.zoom_meeting_label||""),n.append("zoom_subtitle",t.form.zoom_subtitle||""),n.append("zoom_meeting_url",t.form.zoom_meeting_url||""),t.bannerFile&&n.append("home_banner_image",t.bannerFile),t.etikaFile&&n.append("attendance_etika_file",t.etikaFile),e.next=14,axios.post(config.API+"admin/portal-settings",n,{headers:{"Content-Type":"multipart/form-data"}});case 14:if(!(a=e.sent)||!a.data||"success"!==a.data.status){e.next=23;break}return t.util.notify("Berjaya simpan tetapan portal.","success"),t.bannerFile=null,t.etikaFile=null,e.next=21,t.fetch();case 21:e.next=24;break;case 23:t.util.showResult(a,"error");case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(3),t.util.showResult(e.t0,"error");case 29:return e.prev=29,t.saving=!1,e.finish(29);case 32:case"end":return e.stop()}}),e,null,[[3,26,29,32]])})))()}}};const Xf=[{path:"/",component:M,children:[{path:"",component:V,name:"Voter Home"},{path:"calon",component:Q,name:"Voter Calon"},{path:"mat27",component:lt,name:"Mat"},{path:"vote",component:vt,name:"Vote"},{path:"result",component:wt,name:"Result"},{path:"attendance",component:Lt,name:"Attendance"},{path:"zoom",component:Bt,name:"Zoom"},{path:"/penyata/:no_anggota",name:"penyata",component:ga}]},{path:"/login",component:g,name:"Voter Login"},{path:"/verification",component:w,name:"Voter Verify"},{path:"/display/kod-fizikal",component:ya,name:"Physical Gate Display"},{path:"/demo/roulette",component:Ma,name:"Roulette Wheel Demo"},{path:"/admin/login",component:Fa,name:"Admin Login"},{path:"/admin",component:Ua,children:[{path:"result/:election_id",component:Pd,name:"Election Result"},{path:"activity-log",component:Md,name:"Activity Log"},{path:"",component:Id,children:[{path:"",component:Bd,name:"Admin Home"},{path:"result",component:qd,name:"Current Result"}]},{path:"portal-settings",component:(0,m.A)(Yf,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"container col-md-10 col-md-offset-1"},[e("h4",[t._v("Tetapan Portal (MAT / Mesyuarat)")]),t._v(" "),e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"form-group"},[e("label",[t._v("Label pautan (Home) – contoh: MAT KE-29")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.home_mat_label,expression:"form.home_mat_label"}],staticClass:"form-control",attrs:{type:"text",placeholder:"MAT KE-29"},domProps:{value:t.form.home_mat_label},on:{input:function(e){e.target.composing||t.$set(t.form,"home_mat_label",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("Banner (Home)")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"file",accept:"image/*"},on:{change:t.onBannerChange}})]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("Etika Mesyuarat Agung (Muat Turun)")]),t._v(" "),t.form.attendance_etika_url?e("div",{staticClass:"help-block"},[t._v("\n Semasa:\n "),e("a",{attrs:{href:t.form.attendance_etika_url,target:"_blank",rel:"noopener noreferrer"}},[t._v("\n "+t._s(t.form.attendance_etika_url)+"\n ")])]):t._e(),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"file",accept:"application/pdf,image/*"},on:{change:t.onEtikaChange}}),t._v(" "),t._m(0)]),t._v(" "),e("hr"),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("Label KoPKB (Zoom) – contoh: KoPKB KALI KE-29/2025")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.zoom_meeting_label,expression:"form.zoom_meeting_label"}],staticClass:"form-control",attrs:{type:"text",placeholder:"KoPKB KALI KE-29/2025"},domProps:{value:t.form.zoom_meeting_label},on:{input:function(e){e.target.composing||t.$set(t.form,"zoom_meeting_label",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("Ayat penerangan (Zoom)")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.form.zoom_subtitle,expression:"form.zoom_subtitle"}],staticClass:"form-control",attrs:{rows:"3",placeholder:"Sertai Mesyuarat Agung Tahunan..."},domProps:{value:t.form.zoom_subtitle},on:{input:function(e){e.target.composing||t.$set(t.form,"zoom_subtitle",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("Gambar")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.zoom_image_url,expression:"form.zoom_image_url"}],staticClass:"form-control",attrs:{type:"text",placeholder:"/storage/portal/meeting.png",disabled:""},domProps:{value:t.form.zoom_image_url},on:{input:function(e){e.target.composing||t.$set(t.form,"zoom_image_url",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",[t._v("Pautan mesyuarat (Zoom) – Google Meet")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.zoom_meeting_url,expression:"form.zoom_meeting_url"}],staticClass:"form-control",attrs:{type:"text",placeholder:"https://meet.google.com/..."},domProps:{value:t.form.zoom_meeting_url},on:{input:function(e){e.target.composing||t.$set(t.form,"zoom_meeting_url",e.target.value)}}})]),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{disabled:t.saving},on:{click:t.save}},[e("i",{staticClass:"fa fa-save"}),t._v(" "+t._s(t.saving?"Menyimpan...":"Simpan")+"\n ")])])])])}),[function(){var t=this,e=t._self._c;return e("small",{staticClass:"help-block"},[t._v("\n Format: PDF/JPG/PNG/WEBP. Fail akan disimpan ke "),e("code",[t._v("storage/app/public/portal/")]),t._v(".\n ")])}],!1,null,null,null).exports,name:"Tetapan Portal"},{path:"position",component:Kd,children:[{path:"",component:Xd,name:"Kemaskini Sesi"},{path:"add",component:Zd,name:"Tambah Sesi"},{path:"edit/:id",component:th,name:"Edit Position"}]},{path:"partylist",component:nh,children:[{path:"",component:oh,name:"Manage Partylist"},{path:"add",component:lh,name:"Add Partylist"},{path:"edit/:id",component:uh,name:"Edit Partylist"}]},{path:"voter",component:ph,children:[{path:"",component:_h,name:"Manage Voter"},{path:"add",component:Sh,name:"Tambah Pengundi"},{path:"edit/:id",component:Ah,name:"Edit Voter"},{path:"kehadiran",component:Lh,name:"Kehadiran Calon"},{path:"fizikal",component:Ih,name:"Fizikal"},{path:"maya",component:Bh,name:"Maya"},{path:"viewkehadiran",component:Vh,name:"Calon Hadir"}]},{path:"allowance-summary",component:Kh,name:"Ringkasan Elaun"},{path:"nominee",component:Yh,children:[{path:"",component:ef,name:"Maklumat Calon"},{path:"add",component:sf,name:"Tambah Calon"},{path:"edit/:id",component:ff,name:"Edit Nominee"}]},{path:"/account",component:mf,children:[{path:"",component:bf,name:"Manage Account"},{path:"update",component:yf,name:"Update Account"},{path:"password",component:xf,name:"Update Password"},{path:"add",component:Sf,name:"Add Account"},{path:"/pembiayaan",name:"Pembiayaan",component:Tf},{path:"/beliankomoditi",name:"BelianKomoditi",component:Of},{path:"/kontrakmurabahah",name:"KontrakMurabahah",component:Df},{path:"/cetakpermohonan",name:"CetakPermohonan",component:jf},{path:"/penyata-anggota",name:"Penyata Anggota",component:Wf},{path:"/:pathMatch(.*)*",name:"NotFound",component:{template:'<div class="text-center mt-5">Not found: {{ $route.path }}</div>'}}]}]}];var Jf=n(4325),Zf=n.n(Jf);n(7318),n(5579),Vue.component("v-otp-input",Zf()),Vue.use(VueRouter),Vue.mixin(d),Vue.use(Zf());var Qf=new VueRouter({mode:"history",linkActiveClass:"active",routes:Xf});Qf.beforeEach((function(t,e,n){if("Voter Login"===t.name&&c.isAdminPortalSession()){var a=c.getAdminEntryRoute();return n(Object.assign({},a,{replace:!0}))}return t.path.startsWith("/admin")&&"Admin Login"!==t.name&&localStorage.getItem("Access Token")?"3"===localStorage.getItem("admin_role")&&"Kehadiran Calon"!==t.name?n({name:"Kehadiran Calon",replace:!0}):void n():n()}));new Vue({router:Qf}).$mount("#app")},7318:(t,e,n)=>{window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",n(7633)},7633:(t,e,n)=>{var a=function(t){return t.default||t};Vue.component("modal",a(n(8881))),Vue.component("modal-header",a(n(8348))),Vue.component("modal-body",a(n(3228))),Vue.component("modal-footer",a(n(3179))),Vue.component("uploader",a(n(7725))),Vue.component("admin-data-table",a(n(4541)))},5579:()=>{window.innerWidth<=768&&(window.addEventListener("click",(function(t){var e=document.getElementById("myNavbar");t.target.matches(".navbar-toggler")||e.classList.remove("in")})),window.addEventListener("scroll",(function(){document.getElementById("myNavbar").classList.remove("in")})))},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),n=e[0],a=e[1];return 3*(n+a)/4-a},e.toByteArray=function(t){var e,n,i=s(t),o=i[0],l=i[1],c=new r(function(t,e,n){return 3*(e+n)/4-n}(0,o,l)),u=0,d=l>0?o-4:o;for(n=0;n<d;n+=4)e=a[t.charCodeAt(n)]<<18|a[t.charCodeAt(n+1)]<<12|a[t.charCodeAt(n+2)]<<6|a[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===l&&(e=a[t.charCodeAt(n)]<<2|a[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===l&&(e=a[t.charCodeAt(n)]<<10|a[t.charCodeAt(n+1)]<<4|a[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,a=t.length,r=a%3,i=[],o=16383,s=0,c=a-r;s<c;s+=o)i.push(l(t,s,s+o>c?c:s+o));1===r?(e=t[a-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[a-2]<<8)+t[a-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return i.join("")};for(var n=[],a=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],a[i.charCodeAt(o)]=o;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,a){for(var r,i,o=[],s=e;s<a;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(n[(i=r)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},8287:(t,e,n)=>{"use strict";var a=n(7526),r=n(251),i=n(4634);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return c(this,t,e,n)}function c(t,e,n,a){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,a){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(a||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===a?new Uint8Array(e):void 0===a?new Uint8Array(e,n):new Uint8Array(e,n,a);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=h(t,e);return t}(t,e,n,a):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var a=0|p(e,n);t=s(t,a);var r=t.write(e,n);r!==a&&(t=t.slice(0,r));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(a=e.length)!=a?s(t,0):h(t,e);if("Buffer"===e.type&&i(e.data))return h(t,e.data)}var a;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(u(e),t=s(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var a=0;a<n;a+=1)t[a]=255&e[a];return t}function f(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(a)return U(t).length;e=(""+e).toLowerCase(),a=!0}}function m(t,e,n){var a=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(a)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function g(t,e,n){var a=t[e];t[e]=t[n],t[n]=a}function v(t,e,n,a,r){if(0===t.length)return-1;if("string"==typeof n?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=l.from(e,a)),l.isBuffer(e))return 0===e.length?-1:b(t,e,n,a,r);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,a,r);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,a,r){var i,o=1,s=t.length,l=e.length;if(void 0!==a&&("ucs2"===(a=String(a).toLowerCase())||"ucs-2"===a||"utf16le"===a||"utf-16le"===a)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var u=-1;for(i=n;i<s;i++)if(c(t,i)===c(e,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*o}else-1!==u&&(i-=i-u),u=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var d=!0,h=0;h<l;h++)if(c(t,i+h)!==c(e,h)){d=!1;break}if(d)return i}return-1}function _(t,e,n,a){n=Number(n)||0;var r=t.length-n;a?(a=Number(a))>r&&(a=r):a=r;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");a>i/2&&(a=i/2);for(var o=0;o<a;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function y(t,e,n,a){return V(U(e,t.length-n),t,n,a)}function w(t,e,n,a){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,a)}function x(t,e,n,a){return w(t,e,n,a)}function k(t,e,n,a){return V(H(e),t,n,a)}function S(t,e,n,a){return V(function(t,e){for(var n,a,r,i=[],o=0;o<t.length&&!((e-=2)<0);++o)a=(n=t.charCodeAt(o))>>8,r=n%256,i.push(r),i.push(a);return i}(e,t.length-n),t,n,a)}function C(t,e,n){return 0===e&&n===t.length?a.fromByteArray(t):a.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var a=[],r=e;r<n;){var i,o,s,l,c=t[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=t[r+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=t[r+1],o=t[r+2],128==(192&i)&&128==(192&o)&&(l=(15&c)<<12|(63&i)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=t[r+1],o=t[r+2],s=t[r+3],128==(192&i)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,a.push(u>>>10&1023|55296),u=56320|1023&u),a.push(u),r+=d}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",a=0;for(;a<e;)n+=String.fromCharCode.apply(String,t.slice(a,a+=E));return n}(a)}e.hp=l,e.IS=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),o(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,a){return u(e),e<=0?s(t,e):void 0!==n?"string"==typeof a?s(t,e).fill(n,a):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,a=e.length,r=0,i=Math.min(n,a);r<i;++r)if(t[r]!==e[r]){n=t[r],a=e[r];break}return n<a?-1:a<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var a=l.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(a,r),r+=o.length}return a},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):m.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.IS;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,a,r){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===a&&(a=0),void 0===r&&(r=this.length),e<0||n>t.length||a<0||r>this.length)throw new RangeError("out of range index");if(a>=r&&e>=n)return 0;if(a>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(r>>>=0)-(a>>>=0),o=(n>>>=0)-(e>>>=0),s=Math.min(i,o),c=this.slice(a,r),u=t.slice(e,n),d=0;d<s;++d)if(c[d]!==u[d]){i=c[d],o=u[d];break}return i<o?-1:o<i?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},l.prototype.write=function(t,e,n,a){if(void 0===e)a="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)a=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===a&&(a="utf8")):(a=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var i=!1;;)switch(a){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(t,e,n){var a="";n=Math.min(t.length,n);for(var r=e;r<n;++r)a+=String.fromCharCode(127&t[r]);return a}function P(t,e,n){var a="";n=Math.min(t.length,n);for(var r=e;r<n;++r)a+=String.fromCharCode(t[r]);return a}function N(t,e,n){var a=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>a)&&(n=a);for(var r="",i=e;i<n;++i)r+=z(t[i]);return r}function L(t,e,n){for(var a=t.slice(e,n),r="",i=0;i<a.length;i+=2)r+=String.fromCharCode(a[i]+256*a[i+1]);return r}function O(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,a,r,i){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<i)throw new RangeError('"value" argument is out of bounds');if(n+a>t.length)throw new RangeError("Index out of range")}function R(t,e,n,a){e<0&&(e=65535+e+1);for(var r=0,i=Math.min(t.length-n,2);r<i;++r)t[n+r]=(e&255<<8*(a?r:1-r))>>>8*(a?r:1-r)}function I(t,e,n,a){e<0&&(e=4294967295+e+1);for(var r=0,i=Math.min(t.length-n,4);r<i;++r)t[n+r]=e>>>8*(a?r:3-r)&255}function D(t,e,n,a,r,i){if(n+a>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,a,i){return i||D(t,0,n,4),r.write(t,e,n,a,23,4),n+4}function j(t,e,n,a,i){return i||D(t,0,n,8),r.write(t,e,n,a,52,8),n+8}l.prototype.slice=function(t,e){var n,a=this.length;if((t=~~t)<0?(t+=a)<0&&(t=0):t>a&&(t=a),(e=void 0===e?a:~~e)<0?(e+=a)<0&&(e=0):e>a&&(e=a),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var r=e-t;n=new l(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=this[t],r=1,i=0;++i<e&&(r*=256);)a+=this[t+i]*r;return a},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=this[t+--e],r=1;e>0&&(r*=256);)a+=this[t+--e]*r;return a},l.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=this[t],r=1,i=0;++i<e&&(r*=256);)a+=this[t+i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var a=e,r=1,i=this[t+--a];a>0&&(r*=256);)i+=this[t+--a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,a){(t=+t,e|=0,n|=0,a)||M(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[e]=255&t;++i<n&&(r*=256);)this[e+i]=t/r&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,a){(t=+t,e|=0,n|=0,a)||M(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[e+r]=255&t;--r>=0&&(i*=256);)this[e+r]=t/i&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,a){if(t=+t,e|=0,!a){var r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}var i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,a){if(t=+t,e|=0,!a){var r=Math.pow(2,8*n-1);M(this,t,e,n,r-1,-r)}var i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,a){if(n||(n=0),a||0===a||(a=this.length),e>=t.length&&(e=t.length),e||(e=0),a>0&&a<n&&(a=n),a===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),t.length-e<a-n&&(a=t.length-e+n);var r,i=a-n;if(this===t&&n<e&&e<a)for(r=i-1;r>=0;--r)t[r+e]=this[r+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},l.prototype.fill=function(t,e,n,a){if("string"==typeof t){if("string"==typeof e?(a=e,e=0,n=this.length):"string"==typeof n&&(a=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!l.isEncoding(a))throw new TypeError("Unknown encoding: "+a)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var o=l.isBuffer(t)?t:U(new l(t,a).toString()),s=o.length;for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var a=t.length,r=null,i=[],o=0;o<a;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(o+1===a){(e-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(t){return a.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,a){for(var r=0;r<a&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}},4213:function(t,e,n){var a,r,i;r=[],void 0===(i="function"==typeof(a=function(){"use strict";function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function a(t,e,n){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){l(a.response,e,n)},a.onerror=function(){console.error("could not download file")},a.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=o.URL||o.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?i(l):r(l.href)?a(t,e,n):i(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),n);else if(r(t))a(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(s)}))}}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return a(t,e,n);var i="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=l.saveAs=l,t.exports=l})?a.apply(e,r):a)||(t.exports=i)},251:(t,e)=>{e.read=function(t,e,n,a,r){var i,o,s=8*r-a-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,f=t[e+d];for(d+=h,i=f&(1<<-u)-1,f>>=-u,u+=s;u>0;i=256*i+t[e+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=a;u>0;o=256*o+t[e+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,a),i-=c}return(f?-1:1)*o*Math.pow(2,i-a)},e.write=function(t,e,n,a,r,i){var o,s,l,c=8*i-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=a?0:i-1,p=a?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),(e+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(e*l-1)*Math.pow(2,r),o+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;t[n+f]=255&s,f+=p,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;t[n+f]=255&o,f+=p,o/=256,c-=8);t[n+f-p]|=128*m}},4634:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},6129:(t,e,n)=>{"use strict";var a=h(n(9368)),r=h(n(1490)),i=h(n(8165)),o=h(n(3623)),s=h(n(8179)),l=h(n(9796)),c=h(n(4205)),u=n(8157),d=h(n(5099));function h(t){return t&&t.__esModule?t:{default:t}}var f=function(){},p=function(t,e,n){var a=new f;if(void 0===t)throw Error("No element to render on was provided.");return a._renderProperties=(0,s.default)(t),a._encodings=[],a._options=d.default,a._errorHandler=new c.default(a),void 0!==e&&((n=n||{}).format||(n.format=b()),a.options(n)[n.format](e,n).render()),a};for(var m in p.getModule=function(t){return a.default[t]},a.default)a.default.hasOwnProperty(m)&&g(a.default,m);function g(t,e){f.prototype[e]=f.prototype[e.toUpperCase()]=f.prototype[e.toLowerCase()]=function(n,a){var i=this;return i._errorHandler.wrapBarcodeCall((function(){a.text=void 0===a.text?void 0:""+a.text;var o=(0,r.default)(i._options,a);o=(0,l.default)(o);var s=t[e],c=v(n,s,o);return i._encodings.push(c),i}))}}function v(t,e,n){var a=new e(t=""+t,n);if(!a.valid())throw new u.InvalidInputException(a.constructor.name,t);var o=a.encode();o=(0,i.default)(o);for(var s=0;s<o.length;s++)o[s].options=(0,r.default)(n,o[s].options);return o}function b(){return a.default.CODE128?"CODE128":Object.keys(a.default)[0]}function _(t,e,n){e=(0,i.default)(e);for(var a=0;a<e.length;a++)e[a].options=(0,r.default)(n,e[a].options),(0,o.default)(e[a].options);(0,o.default)(n),new(0,t.renderer)(t.element,e,n).render(),t.afterRender&&t.afterRender()}f.prototype.options=function(t){return this._options=(0,r.default)(this._options,t),this},f.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},f.prototype.init=function(){var t;if(this._renderProperties)for(var e in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){t=this._renderProperties[e];var n=(0,r.default)(this._options,t.options);"auto"==n.format&&(n.format=b()),this._errorHandler.wrapBarcodeCall((function(){var e=v(n.value,a.default[n.format.toUpperCase()],n);_(t,e,n)}))}},f.prototype.render=function(){if(!this._renderProperties)throw new u.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)_(this._renderProperties[t],this._encodings,this._options);else _(this._renderProperties,this._encodings,this._options);return this},f.prototype._defaults=d.default,"undefined"!=typeof window&&(window.JsBarcode=p),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(t,e){var n=[];return jQuery(this).each((function(){n.push(this)})),p(n,t,e)}),t.exports=p},2444:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=n.text||e,this.options=n}},3651:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),n));return a.bytes=t.split("").map((function(t){return t.charCodeAt(0)})),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,n=t.shift()-105,a=s.SET_BY_CODE[n];if(void 0===a)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(s.FNC1);var r=e.next(t,1,a);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+r.result+e.getBar((r.checksum+n)%s.MODULO)+e.getBar(s.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"==typeof t&&(t="true"===t.toLowerCase()),t}}],[{key:"getBar",value:function(t){return s.BARS[t]?s.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===s.SET_A){var n=t.shift();return n<32?n+64:n-32}return e===s.SET_B?t.shift()-32:10*(t.shift()-48)+t.shift()-48}},{key:"next",value:function(t,n,a){if(!t.length)return{result:"",checksum:0};var r=void 0,i=void 0;if(t[0]>=200){i=t.shift()-105;var o=s.SWAP[i];void 0!==o?r=e.next(t,n+1,o):(a!==s.SET_A&&a!==s.SET_B||i!==s.SHIFT||(t[0]=a===s.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),r=e.next(t,n+1,a))}else i=e.correctIndex(t,a),r=e.next(t,n+1,a);var l=i*n;return{result:e.getBar(i)+r.result,checksum:l+r.checksum}}}]),e}(o.default);e.default=l},3804:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(3651),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.A_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return new RegExp("^"+s.A_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},3541:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(3651),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.B_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return new RegExp("^"+s.B_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},5798:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(3651),o=(a=i)&&a.__esModule?a:{default:a},s=n(2700);var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,s.C_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return new RegExp("^"+s.C_CHARS+"+$").test(this.data)}}]),e}(o.default);e.default=l},4845:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(n(3651)),r=i(n(4802));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var s=function(t){function e(t,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var a=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,r.default)(t),n));else a=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o(a)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(a.default);e.default=s},4802:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(2700),r=function(t){return t.match(new RegExp("^"+a.A_CHARS+"*"))[0].length},i=function(t){return t.match(new RegExp("^"+a.B_CHARS+"*"))[0].length},o=function(t){return t.match(new RegExp("^"+a.C_CHARS+"*"))[0]};function s(t,e){var n=e?a.A_CHARS:a.B_CHARS,r=t.match(new RegExp("^("+n+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(r)return r[1]+String.fromCharCode(204)+l(t.substring(r[1].length));var i=t.match(new RegExp("^"+n+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(e?205:206)+s(t.substring(i.length),!e)}function l(t){var e=o(t),n=e.length;if(n===t.length)return t;t=t.substring(n);var a=r(t)>=i(t);return e+String.fromCharCode(a?206:205)+s(t,a)}e.default=function(t){var e=void 0;if(o(t).length>=2)e=a.C_START_CHAR+l(t);else{var n=r(t)>i(t);e=(n?a.A_START_CHAR:a.B_START_CHAR)+s(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},2700:(t,e)=>{"use strict";var n;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var r=e.SET_A=0,i=e.SET_B=1,o=e.SET_C=2,s=(e.SHIFT=98,e.START_A=103),l=e.START_B=104,c=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(a(n={},s,r),a(n,l,i),a(n,c,o),n),e.SWAP={101:r,100:i,99:o},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHARS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},1509:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var a=s(n(4845)),r=s(n(3804)),i=s(n(3541)),o=s(n(5798));function s(t){return t&&t.__esModule?t:{default:t}}e.CODE128=a.default,e.CODE128A=r.default,e.CODE128B=i.default,e.CODE128C=o.default},1428:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=t.toUpperCase(),n.mod43&&(t+=function(t){return s[t]}(function(t){for(var e=0,n=0;n<t.length;n++)e+=u(t[n]);return e%=43}(t))),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t=c("*"),e=0;e<this.data.length;e++)t+=c(this.data[e])+"0";return{data:t+=c("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default),s=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],l=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function c(t){return function(t){return l[t].toString(2)}(u(t))}function u(t){return s.indexOf(t)}e.CODE39=o},1087:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(6929),o=n(2444);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.data.split("").flatMap((function(t){return i.MULTI_SYMBOLS[t]||t})),n=t.map((function(t){return e.getEncoding(t)})).join(""),a=e.checksum(t,20),r=e.checksum(t.concat(a),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(a)+e.getEncoding(r)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(t){return i.BINARIES[e.symbolValue(t)]}},{key:"getSymbol",value:function(t){return i.SYMBOLS[t]}},{key:"symbolValue",value:function(t){return i.SYMBOLS.indexOf(t)}},{key:"checksum",value:function(t,n){var a=t.slice().reverse().reduce((function(t,a,r){var i=r%n+1;return t+e.symbolValue(a)*i}),0);return e.getSymbol(a%47)}}]),e}(((a=o)&&a.__esModule?a:{default:a}).default);e.default=s},1271:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1087);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.default=o},6929:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],e.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],e.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"":["($)","G"],"\b":["($)","H"],"\t":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}},9852:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CODE93FullASCII=e.CODE93=void 0;var a=i(n(1087)),r=i(n(1271));function i(t){return t&&t.__esModule?t:{default:t}}e.CODE93=a.default,e.CODE93FullASCII=r.default},4754:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=n(6575),i=o(n(6350));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.fontSize=!n.flat&&n.fontSize>10*n.width?10*n.width:n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,i.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:r.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:r.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:r.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[r.SIDE_BIN,this.leftEncode(),r.MIDDLE_BIN,this.rightEncode(),r.SIDE_BIN].join(""),text:this.text}}}]),e}(o(n(2444)).default);e.default=s},4250:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=function t(e,n,a){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,a)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(a):void 0},o=n(6575),s=n(4754),l=(a=s)&&a.__esModule?a:{default:a};var c=function(t){return(10-t.substr(0,12).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+3*e:t+e}),0)%10)%10},u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=c(t));var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.lastChar=n.lastChar,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===c(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),n=o.EAN13_STRUCTURE[this.data[0]];return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,n)}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(l.default);e.default=u},7570:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=n(6575),i=o(n(6350));function o(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=r.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,i.default)(this.data,t,"01"),text:this.text}}}]),e}(o(n(2444)).default);e.default=s},8075:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=n(6575),i=s(n(6350)),o=s(n(2444));function s(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t,e=r.EAN5_STRUCTURE[(t=this.data,t.split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+9*e:t+3*e}),0)%10)];return{data:"1011"+(0,i.default)(this.data,e,"01"),text:this.text}}}]),e}(o.default);e.default=l},8784:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=function t(e,n,a){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,a)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(a):void 0},o=n(4754),s=(a=o)&&a.__esModule?a:{default:a};var l=function(t){return(10-t.substr(0,7).split("").map((function(t){return+t})).reduce((function(t,e,n){return n%2?t+e:t+3*e}),0)%10)%10},c=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=l(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===l(this.data)}},{key:"leftText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(s.default);e.default=c},7960:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();e.checksum=s;var r=i(n(6350));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{11}$/)&&(t+=s(t));var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.displayValue=n.displayValue,n.fontSize>10*n.width?a.fontSize=10*n.width:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==s(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,r.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,r.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,r.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,r.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,r.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,r.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(i(n(2444)).default);function s(t){var e,n=0;for(e=1;e<11;e+=2)n+=parseInt(t[e]);for(e=0;e<11;e+=2)n+=3*parseInt(t[e]);return(10-n%10)%10}e.default=o},3781:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),r=s(n(6350)),i=s(n(2444)),o=n(7960);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],u=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],d=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(a.isValid=!1,-1!==t.search(/^[0-9]{6}$/))a.middleDigits=t,a.upcA=h(t,"0"),a.text=n.text||""+a.upcA[0]+t+a.upcA[a.upcA.length-1],a.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return l(a);if(a.middleDigits=t.substring(1,t.length-1),a.upcA=h(a.middleDigits,t[0]),a.upcA[a.upcA.length-1]!==t[t.length-1])return l(a);a.isValid=!0}return a.displayValue=n.displayValue,n.fontSize>10*n.width?a.fontSize=10*n.width:a.fontSize=n.fontSize,a.guardHeight=n.height+a.fontSize/2+n.textMargin,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=u[parseInt(e)][parseInt(t)];return(0,r.default)(this.middleDigits,n)}}]),e}(i.default);function h(t,e){for(var n=parseInt(t[t.length-1]),a=c[n],r="",i=0,s=0;s<a.length;s++){var l=a[s];r+="X"===l?t[i++]:l}return""+(r=""+e+r)+(0,o.checksum)(r)}e.default=d},6575:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.SIDE_BIN="101",e.MIDDLE_BIN="01010",e.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},e.EAN2_STRUCTURE=["LL","LG","GL","GG"],e.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],e.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]},6350:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(6575);e.default=function(t,e,n){var r=t.split("").map((function(t,n){return a.BINARIES[e[n]]})).map((function(e,n){return e?e[t[n]]:""}));if(n){var i=t.length-1;r=r.map((function(t,e){return e<i?t+n:t}))}return r.join("")}},5726:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var a=c(n(4250)),r=c(n(8784)),i=c(n(8075)),o=c(n(7570)),s=c(n(7960)),l=c(n(3781));function c(t){return t&&t.__esModule?t:{default:t}}e.EAN13=a.default,e.EAN8=r.default,e.EAN5=i.default,e.EAN2=o.default,e.UPC=s.default,e.UPCE=l.default},1886:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.GenericBarcode=o},739:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1135),o=n(2444);var s=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map((function(e){return t.encodePair(e)})).join("");return{data:i.START_BIN+e+i.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=i.BINARIES[t[1]];return i.BINARIES[t[0]].split("").map((function(t,n){return("1"===t?"111":"1")+("1"===e[n]?"000":"0")})).join("")}}]),e}(((a=o)&&a.__esModule?a:{default:a}).default);e.default=s},8122:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(739),o=(a=i)&&a.__esModule?a:{default:a};var s=function(t){var e=t.substr(0,13).split("").map((function(t){return parseInt(t,10)})).reduce((function(t,e,n){return t+e*(3-n%2*2)}),0);return 10*Math.ceil(e/10)-e},l=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{13}$/)&&(t+=s(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===s(this.data)}}]),e}(o.default);e.default=l},1135:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.START_BIN="1010",e.END_BIN="11101",e.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},5070:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var a=i(n(739)),r=i(n(8122));function i(t){return t&&t.__esModule?t:{default:t}}e.ITF=a.default,e.ITF14=r.default},3551:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var n=parseInt(this.data[e]).toString(2);n=s(n,4-n.length);for(var a=0;a<n.length;a++)t+="0"==n[a]?"100":"110"}return{data:t+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);function s(t,e){for(var n=0;n<e;n++)t="0"+t;return t}e.default=o},6338:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod10)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},23:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod10)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},6065:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,o.mod11)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},7052:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=n(3551),i=(a=r)&&a.__esModule?a:{default:a},o=n(6320);var s=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,o.mod11)(t),t+=(0,o.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default);e.default=s},6320:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=function(t){for(var e=0,n=0;n<t.length;n++){var a=parseInt(t[n]);(n+t.length)%2==0?e+=a:e+=2*a%10+Math.floor(2*a/10)}return(10-e%10)%10},e.mod11=function(t){for(var e=0,n=[2,3,4,5,6,7],a=0;a<t.length;a++){var r=parseInt(t[t.length-1-a]);e+=n[a%n.length]*r}return(11-e%11)%11}},8248:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var a=l(n(3551)),r=l(n(6338)),i=l(n(6065)),o=l(n(23)),s=l(n(7052));function l(t){return t&&t.__esModule?t:{default:t}}e.MSI=a.default,e.MSI10=r.default,e.MSI11=i.default,e.MSI1010=o.default,e.MSI1110=s.default},1133:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return a.text=a.options.text||a.text.replace(/[A-D]/g,""),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),n=0;n<this.data.length;n++)t.push(e[this.data.charAt(n)]),n!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.codabar=o},9368:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n(1428),r=n(1509),i=n(5726),o=n(5070),s=n(8248),l=n(2889),c=n(1133),u=n(9852),d=n(1886);e.default={CODE39:a.CODE39,CODE128:r.CODE128,CODE128A:r.CODE128A,CODE128B:r.CODE128B,CODE128C:r.CODE128C,EAN13:i.EAN13,EAN8:i.EAN8,EAN5:i.EAN5,EAN2:i.EAN2,UPC:i.UPC,UPCE:i.UPCE,ITF14:o.ITF14,ITF:o.ITF,MSI:s.MSI,MSI10:s.MSI10,MSI11:s.MSI11,MSI1010:s.MSI1010,MSI1110:s.MSI1110,pharmacode:l.pharmacode,codabar:c.codabar,CODE93:u.CODE93,CODE93FullASCII:u.CODE93FullASCII,GenericBarcode:d.GenericBarcode}},2889:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(2444);var o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var a=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return a.number=parseInt(t,10),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t=this.number,e="";!isNaN(t)&&0!=t;)t%2==0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return{data:e=e.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(((a=i)&&a.__esModule?a:{default:a}).default);e.pharmacode=o},4205:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e}return n(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"!==t.name)throw t;if(this.api._options.valid===this.api._defaults.valid)throw t.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(t){return this.handleCatch(t),this.api}}}]),t}();e.default=a},8157:(t,e)=>{"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(t,r){n(this,e);var i=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.name="InvalidInputException",i.symbology=t,i.input=r,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return r(e,Error),e}(),o=function(t){function e(){n(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="InvalidElementException",t.message="Not supported type to render on",t}return r(e,Error),e}(),s=function(t){function e(){n(this,e);var t=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.name="NoElementException",t.message="No element to render on.",t}return r(e,Error),e}();e.InvalidInputException=i,e.InvalidElementException=o,e.NoElementException=s},3623:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}},892:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(n(9796)),r=i(n(5099));function i(t){return t&&t.__esModule?t:{default:t}}e.default=function(t){var e={};for(var n in r.default)r.default.hasOwnProperty(n)&&(t.hasAttribute("jsbarcode-"+n.toLowerCase())&&(e[n]=t.getAttribute("jsbarcode-"+n.toLowerCase())),t.hasAttribute("data-"+n.toLowerCase())&&(e[n]=t.getAttribute("data-"+n.toLowerCase())));return e.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),e=(0,a.default)(e)}},8179:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a="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},r=s(n(892)),i=s(n(2727)),o=n(8157);function s(t){return t&&t.__esModule?t:{default:t}}function l(t){if("string"==typeof t)return function(t){var e=document.querySelectorAll(t);if(0===e.length)return;for(var n=[],a=0;a<e.length;a++)n.push(l(e[a]));return n}(t);if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(l(t[n]));return e}if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLImageElement)return s=t,{element:c=document.createElement("canvas"),options:(0,r.default)(s),renderer:i.default.CanvasRenderer,afterRender:function(){s.setAttribute("src",c.toDataURL())}};if(t&&t.nodeName&&"svg"===t.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&t instanceof SVGElement)return{element:t,options:(0,r.default)(t),renderer:i.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement)return{element:t,options:(0,r.default)(t),renderer:i.default.CanvasRenderer};if(t&&t.getContext)return{element:t,renderer:i.default.CanvasRenderer};if(t&&"object"===(void 0===t?"undefined":a(t))&&!t.nodeName)return{element:t,renderer:i.default.ObjectRenderer};throw new o.InvalidElementException;var s,c}e.default=l},8165:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return function t(n){if(Array.isArray(n))for(var a=0;a<n.length;a++)t(n[a]);else n.text=n.text||"",n.data=n.data||"",e.push(n)}(t),e}},1490:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t};e.default=function(t,e){return n({},t,e)}},9796:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&"string"==typeof t[n=e[n]]&&(t[n]=parseInt(t[n],10));"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue);return t}},5099:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};e.default=n},1687:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1490),o=(a=i)&&a.__esModule?a:{default:a},s=n(6258);var l=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=e,this.encodings=n,this.options=a}return r(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,o.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,s.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,s.getTotalWidthOfEncodings)(this.encodings),n=(0,s.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var n,a=this.canvas.getContext("2d"),r=e.data;n="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,a.fillStyle=t.lineColor;for(var i=0;i<r.length;i++){var o=i*t.width+e.barcodePadding;"1"===r[i]?a.fillRect(o,n,t.width,t.height):r[i]&&a.fillRect(o,n,t.width,t.height*r[i])}}},{key:"drawCanvasText",value:function(t,e){var n,a,r=this.canvas.getContext("2d"),i=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(a="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,r.font=i,"left"==t.textAlign||e.barcodePadding>0?(n=0,r.textAlign="left"):"right"==t.textAlign?(n=e.width-1,r.textAlign="right"):(n=e.width/2,r.textAlign="center"),r.fillText(e.text,n,a))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=l},2727:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o(n(1687)),r=o(n(5965)),i=o(n(3528));function o(t){return t&&t.__esModule?t:{default:t}}e.default={CanvasRenderer:a.default,SVGRenderer:r.default,ObjectRenderer:i.default}},3528:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}();var a=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.object=e,this.encodings=n,this.options=a}return n(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();e.default=a},6258:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var a,r=n(1490),i=(a=r)&&a.__esModule?a:{default:a};function o(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function s(t,e,n){if(n.displayValue&&e<t){if("center"==n.textAlign)return Math.floor((t-e)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(t-e)}return 0}function l(t,e,n){var a;if(n)a=n;else{if("undefined"==typeof document)return 0;a=document.createElement("canvas").getContext("2d")}a.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var r=a.measureText(t);return r?r.width:0}e.getMaximumHeightOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e},e.getEncodingHeight=o,e.getBarcodePadding=s,e.calculateEncodingAttributes=function(t,e,n){for(var a=0;a<t.length;a++){var r,c=t[a],u=(0,i.default)(e,c.options);r=u.displayValue?l(c.text,u,n):0;var d=c.data.length*u.width;c.width=Math.ceil(Math.max(r,d)),c.height=o(c,u),c.barcodePadding=s(r,d,u)}},e.getTotalWidthOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}},5965:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,n,a){return n&&t(e.prototype,n),a&&t(e,a),e}}(),i=n(1490),o=(a=i)&&a.__esModule?a:{default:a},s=n(6258);var l="http://www.w3.org/2000/svg",c=function(){function t(e,n,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svg=e,this.encodings=n,this.options=a,this.document=a.xmlDocument||document}return r(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var n=this.encodings[e],a=(0,o.default)(this.options,n.options),r=this.createGroup(t,a.marginTop,this.svg);this.setGroupOptions(r,a),this.drawSvgBarcode(r,a,n),this.drawSVGText(r,a,n),t+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,s.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,s.getTotalWidthOfEncodings)(this.encodings),e=(0,s.getMaximumHeightOfEncodings)(this.encodings),n=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,e),this.options.background&&this.drawRect(0,0,n,e,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(t,e,n){var a,r=n.data;a="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var i=0,o=0,s=0;s<r.length;s++)o=s*e.width+n.barcodePadding,"1"===r[s]?i++:i>0&&(this.drawRect(o-e.width*i,a,e.width*i,e.height,t),i=0);i>0&&this.drawRect(o-e.width*(i-1),a,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var a,r,i=this.document.createElementNS(l,"text");e.displayValue&&(i.setAttribute("font-family",e.font),i.setAttribute("font-size",e.fontSize),e.fontOptions.includes("bold")&&i.setAttribute("font-weight","bold"),e.fontOptions.includes("italic")&&i.setAttribute("font-style","italic"),r="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(a=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(a=n.width-1,i.setAttribute("text-anchor","end")):(a=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",a),i.setAttribute("y",r),i.appendChild(this.document.createTextNode(n.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",l),n.setAttribute("version","1.1")}},{key:"createGroup",value:function(t,e,n){var a=this.document.createElementNS(l,"g");return a.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(a),a}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("fill",e.lineColor)}},{key:"drawRect",value:function(t,e,n,a,r){var i=this.document.createElementNS(l,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",n),i.setAttribute("height",a),r.appendChild(i),i}}]),t}();e.default=c},5500:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,":root{--color-primary:#4f7db8;--color-secondary:#2f5d9a;--color-accent:#c62828;--color-background:#f5f9fd;--color-surface:#fff;--color-text:#1f2937;--color-border:#d6e0ea;--color-on-primary:var(--color-surface);--color-on-accent:var(--color-surface);--color-accent-strong:color-mix(in srgb,var(--color-accent) 78%,var(--color-text) 22%);--color-accent-deep:color-mix(in srgb,var(--color-accent) 52%,var(--color-text) 48%);--color-primary-soft-glow:color-mix(in srgb,var(--color-primary) 22%,transparent);--color-accent-soft-glow:color-mix(in srgb,var(--color-accent) 18%,transparent);--color-secondary-soft-glow:color-mix(in srgb,var(--color-secondary) 12%,transparent);--color-text-soft-shadow:color-mix(in srgb,var(--color-text) 16%,transparent);--color-surface-veil-08:color-mix(in srgb,var(--color-surface) 8%,transparent);--color-surface-veil-10:color-mix(in srgb,var(--color-surface) 10%,transparent);--color-surface-veil-14:color-mix(in srgb,var(--color-surface) 14%,transparent);--color-surface-veil-25:color-mix(in srgb,var(--color-surface) 25%,transparent);--color-surface-veil-35:color-mix(in srgb,var(--color-surface) 35%,transparent);--color-surface-veil-92:color-mix(in srgb,var(--color-surface) 92%,transparent);--color-accent-veil-08:color-mix(in srgb,var(--color-accent) 8%,transparent);--color-accent-veil-92:color-mix(in srgb,var(--color-accent) 92%,transparent);--color-nav-ink:color-mix(in srgb,var(--color-surface) 97%,var(--color-border) 3%);--admin-table-header-bg:color-mix(in srgb,var(--color-secondary) 42%,var(--color-text) 58%);--admin-table-header-color:var(--color-on-primary);--admin-table-border-color:var(--color-border);--admin-table-row-border-color:color-mix(in srgb,var(--color-border) 52%,var(--color-surface) 48%);--admin-table-shell-bg:var(--color-surface);--admin-table-row-hover-bg:color-mix(in srgb,var(--color-primary) 9%,var(--color-surface) 91%);--admin-table-footer-bg:var(--color-background);--admin-table-text-muted:color-mix(in srgb,var(--color-text) 58%,var(--color-border) 42%);--admin-table-text-strong:var(--color-text);--admin-table-footer-mid-text:color-mix(in srgb,var(--color-text) 74%,var(--color-border) 26%);--admin-table-pagination-disabled:color-mix(in srgb,var(--color-border) 66%,var(--color-background) 34%);--floating-header-bg-1:var(--color-primary);--floating-header-bg-2:var(--color-secondary);--floating-header-bg-3:var(--color-accent-strong);--floating-header-bg-4:var(--color-accent-deep);--floating-header-border:var(--color-surface-veil-14);--floating-header-shadow-1:var(--color-primary-soft-glow);--floating-header-shadow-2:var(--color-accent-soft-glow);--floating-header-overlay-1:var(--color-surface-veil-10);--floating-header-overlay-2:var(--color-accent-veil-08);--floating-header-hover-bg:var(--color-accent-veil-92);--floating-header-nav-text:var(--color-nav-ink);--floating-header-brand-text:var(--color-on-primary);--floating-header-brand-shadow:var(--color-surface-veil-25);--floating-header-dropdown-hover-bg:var(--color-accent);--floating-header-dropdown-hover-text:var(--color-on-accent);--floating-header-dropdown-menu-shadow:var(--color-text-soft-shadow);--floating-header-toggle-border:var(--color-surface-veil-35);--floating-header-toggle-bg:var(--color-surface-veil-08);--floating-header-icon-bar:var(--color-surface);--floating-header-mobile-submenu-bg:var(--color-surface-veil-92);--floating-header-mobile-submenu-shadow:var(--color-secondary-soft-glow)}",""]);const i=r},6734:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".admin-data-table__toolbar[data-v-4e8fcc88]{margin-bottom:12px}.admin-data-table[data-v-4e8fcc88]{--adt-header-bg:var(--admin-table-header-bg);--adt-header-color:var(--admin-table-header-color);--adt-radius:12px;--adt-border:1px solid var(--admin-table-border-color);--adt-shadow:0 1px 3px rgba(0,0,0,.08);--adt-row-hover:var(--admin-table-row-hover-bg);--adt-footer-bg:var(--admin-table-footer-bg);--adt-text-muted:var(--admin-table-text-muted);--adt-font-size:16px;--adt-header-font-size:16px}.admin-data-table__shell[data-v-4e8fcc88]{background:var(--admin-table-shell-bg);border:var(--adt-border);border-radius:var(--adt-radius);box-shadow:var(--adt-shadow);overflow:hidden}.admin-data-table__scroll[data-v-4e8fcc88]{-webkit-overflow-scrolling:touch;overflow-x:auto}.admin-data-table__table[data-v-4e8fcc88]{border-collapse:separate;border-spacing:0;margin-bottom:0;width:100%}.admin-data-table__table thead tr:first-child th[data-v-4e8fcc88]:first-child{border-top-left-radius:var(--adt-radius)}.admin-data-table__table thead tr:first-child th[data-v-4e8fcc88]:last-child{border-top-right-radius:var(--adt-radius)}.admin-data-table__table thead th[data-v-4e8fcc88]{background-color:var(--adt-header-bg);border:none!important;color:var(--adt-header-color);font-size:var(--adt-header-font-size);font-weight:600;letter-spacing:.02em;padding:14px 16px;text-transform:none;vertical-align:middle}.admin-data-table__table thead th.is-sortable[data-v-4e8fcc88]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.admin-data-table__table thead th.is-sortable[data-v-4e8fcc88]:hover{filter:brightness(1.06)}.admin-data-table__table tbody td.admin-data-table__col-index[data-v-4e8fcc88],.admin-data-table__table thead th.admin-data-table__col-index[data-v-4e8fcc88]{font-variant-numeric:tabular-nums;max-width:4rem;text-align:center;vertical-align:middle!important;width:3.25rem}.admin-data-table__th-inner[data-v-4e8fcc88]{align-items:center;display:flex;gap:8px;justify-content:flex-start;min-height:20px}.admin-data-table__th-title[data-v-4e8fcc88]{flex:1;min-width:0}.admin-data-table__sort[data-v-4e8fcc88]{align-items:center;display:inline-flex;flex-shrink:0;opacity:.95}.admin-data-table__sort-hint[data-v-4e8fcc88]{align-items:center;display:flex;flex-direction:column;line-height:1;margin-top:1px;opacity:.45}.admin-data-table__sort-icon[data-v-4e8fcc88]{display:block;flex-shrink:0}.admin-data-table__sort-icon--faint[data-v-4e8fcc88]{margin-top:-3px}.admin-data-table__sort-hint .admin-data-table__sort-icon--faint[data-v-4e8fcc88]:first-child{margin-top:0}.admin-data-table__table tbody td[data-v-4e8fcc88]{border-top:1px solid var(--admin-table-row-border-color);font-size:var(--adt-font-size);padding:12px 16px;vertical-align:middle}.admin-data-table__table tbody tr:first-child:not(.admin-data-table__state-row) td[data-v-4e8fcc88]{border-top:1px solid var(--admin-table-border-color)}.admin-data-table__table tbody tr.admin-data-table__state-row td[data-v-4e8fcc88]{border-top:none;padding:0}.admin-data-table__table tbody tr:not(.admin-data-table__state-row):hover td[data-v-4e8fcc88]{background-color:var(--adt-row-hover)}.admin-data-table__state[data-v-4e8fcc88]{color:var(--adt-text-muted);padding:40px 24px;text-align:center}.admin-data-table__state-icon[data-v-4e8fcc88]{display:block;font-size:40px;margin-bottom:12px;margin-left:auto;margin-right:auto;opacity:.45}.admin-data-table__state-title[data-v-4e8fcc88]{color:var(--admin-table-text-strong);font-size:16px;font-weight:600;margin-bottom:4px}.admin-data-table__state-hint[data-v-4e8fcc88]{color:var(--adt-text-muted);font-size:13px}.admin-data-table__footer[data-v-4e8fcc88]{align-items:center;background:var(--adt-footer-bg);border-top:var(--adt-border);display:flex;flex-wrap:wrap;gap:12px 16px;justify-content:space-between;padding:12px 16px}.admin-data-table__footer-left[data-v-4e8fcc88]{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.admin-data-table__footer-label[data-v-4e8fcc88]{color:var(--adt-text-muted);font-size:12px;font-weight:400;margin:0}.admin-data-table__page-size[data-v-4e8fcc88]{display:inline-block;font-size:12px;height:30px;min-width:64px;padding:4px 8px;width:auto}.admin-data-table__footer-mid[data-v-4e8fcc88]{color:var(--admin-table-footer-mid-text);font-size:13px;font-weight:500}.admin-data-table__footer-right[data-v-4e8fcc88]{flex-shrink:0}.admin-data-table__pagination[data-v-4e8fcc88]{margin:0}.admin-data-table__pagination>li>a[data-v-4e8fcc88]{color:var(--adt-header-bg);font-size:12px;padding:5px 12px}.admin-data-table__pagination>li.disabled>a[data-v-4e8fcc88]{color:var(--admin-table-pagination-disabled);cursor:default;pointer-events:none}",""]);const i=r},944:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".bar-chart[data-v-bcd4821c]{width:100%}",""]);const i=r},4117:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,'.floating-header{border-radius:16px!important;left:16px!important;margin:0;position:fixed!important;right:16px!important;top:16px!important;transition:all .3s ease!important;width:calc(100% - 32px)!important;z-index:2000!important}.logo-header{-webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important;background:linear-gradient(135deg,var(--floating-header-bg-1) 0,var(--floating-header-bg-2) 38%,var(--floating-header-bg-3) 72%,var(--floating-header-bg-4) 100%)!important;border:1px solid var(--floating-header-border)!important;box-shadow:0 8px 32px var(--floating-header-shadow-1),0 4px 16px var(--floating-header-shadow-2)!important;overflow:visible;position:fixed}.logo-header:before{background:linear-gradient(135deg,var(--floating-header-overlay-1) 0,transparent 50%,var(--floating-header-overlay-2) 100%);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:0}.logo-header>*{position:relative;z-index:1}#nav.navbar{border:none;min-height:78px}#nav .container{overflow:visible;padding-left:22px;padding-right:22px;width:100%}#nav .navbar-nav{margin-left:10px}#nav .navbar-brand{align-items:center;color:var(--floating-header-brand-text);display:flex;gap:12px;height:auto;padding:14px 0}#nav .navbar-brand,.logo-title{font-weight:700;text-shadow:0 1px 2px var(--floating-header-brand-shadow)}.logo-title{color:var(--floating-header-brand-text)!important;display:inline-block;font-size:1.8rem}#nav .nav>li>a,#nav .navbar-toggle{color:var(--floating-header-nav-text);font-weight:700;letter-spacing:.02em}#nav .nav>li.active>a,#nav .nav>li.active>a:focus,#nav .nav>li.active>a:hover,#nav .nav>li>a:hover,#nav .navbar-brand:hover{background:var(--floating-header-hover-bg);color:var(--floating-header-brand-text)}#nav .nav>li>a{border-radius:10px;margin-bottom:18px;margin-top:18px;padding-bottom:12px;padding-top:12px}#nav .navbar-right{margin-right:8px}#nav .dropdown,#nav .navbar-nav>li{position:relative}#nav .dropdown-menu{border:0;border-radius:12px;box-shadow:0 12px 28px var(--floating-header-dropdown-menu-shadow);margin-top:6px;z-index:2101}#nav .dropdown-menu>li>a{color:var(--admin-table-text-strong)}#nav .dropdown-menu>li>a:hover{background-color:var(--floating-header-dropdown-hover-bg);color:var(--floating-header-dropdown-hover-text)}#nav .navbar-toggle{background:var(--floating-header-toggle-bg);border-color:var(--floating-header-toggle-border);margin-right:18px;margin-top:20px}#nav .navbar-toggle .icon-bar{background-color:var(--floating-header-icon-bar)}.navbar-brand img{background:transparent!important;box-shadow:none}@media (max-width:767px){.floating-header{border-radius:14px!important;left:10px!important;right:10px!important;top:10px!important;width:calc(100% - 20px)!important}.logo-title{font-size:1.4rem}#nav .navbar-brand img{width:120px}#nav .navbar-collapse{border-top:0;box-shadow:none;overflow:visible;padding-bottom:12px}#nav .nav>li>a{margin:4px 10px}#nav .navbar-nav .open .dropdown-menu{background:var(--floating-header-mobile-submenu-bg);border-radius:12px;box-shadow:0 10px 24px var(--floating-header-mobile-submenu-shadow);float:none;margin:0 10px 10px;padding:6px;position:static;width:auto}#nav .navbar-nav .open .dropdown-menu>li>a{border-radius:10px;padding:10px 12px}}',""]);const i=r},298:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".app-logo{display:block;height:55px;-o-object-fit:contain;object-fit:contain;width:100px}",""]);const i=r},8922:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".pie-chart[data-v-2d92e7ed]{width:100%}",""]);const i=r},5215:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".roulette-elimination[data-v-3ea1398c]{margin:0 auto;max-width:980px;text-align:center}.roulette-elimination--full-width[data-v-3ea1398c]{margin-left:0;margin-right:0;max-width:none;width:100%}.roulette-elimination--full-width .wheel-stage[data-v-3ea1398c]{max-width:min(100%,880px)}.roulette-main-row[data-v-3ea1398c]{align-items:flex-start}.roulette-wheel-col[data-v-3ea1398c]{text-align:center}.roulette-side-col[data-v-3ea1398c]{margin-top:1.25rem;text-align:left}@media (min-width:992px){.roulette-side-col[data-v-3ea1398c]{margin-top:0;padding-left:8px}}.wheel-stage[data-v-3ea1398c]{margin:0 auto 1rem;max-width:600px;outline:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.wheel-stage--can-spin[data-v-3ea1398c]{cursor:pointer}.wheel-stage--can-spin[data-v-3ea1398c]:focus{border-radius:4px;box-shadow:0 0 0 3px rgba(51,122,183,.45)}.wheel-stage[data-v-3ea1398c]:not(.wheel-stage--can-spin){cursor:not-allowed}.pointer[data-v-3ea1398c]{border-left:17px solid transparent;border-right:17px solid transparent;border-top:26px solid #222;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25));height:0;left:50%;position:absolute;top:-8px;transform:translateX(-50%);width:0;z-index:2}.wheel-wrap[data-v-3ea1398c]{border-radius:50%;box-shadow:0 8px 24px rgba(0,0,0,.15);position:relative;transition-property:transform;width:100%;will-change:transform;z-index:1}.wheel-center-logo[data-v-3ea1398c]{align-items:center;background:#fff;border:3px solid hsla(0,0%,100%,.95);border-radius:50%;box-shadow:0 4px 18px rgba(0,0,0,.22);display:flex;justify-content:center;left:50%;max-width:150px;min-width:72px;padding:6px;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease;width:22%;z-index:3}.wheel-stage--can-spin:hover .wheel-center-logo[data-v-3ea1398c]{box-shadow:0 6px 22px rgba(0,0,0,.28);transform:translate(-50%,-50%) scale(1.06)}.wheel-stage--can-spin:active .wheel-center-logo[data-v-3ea1398c]{transform:translate(-50%,-50%) scale(.97)}.wheel-stage:not(.wheel-stage--can-spin) .wheel-center-logo[data-v-3ea1398c]{opacity:.5}.wheel-center-logo-img[data-v-3ea1398c]{max-height:100%;-o-object-fit:contain;object-fit:contain;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wheel-canvas[data-v-3ea1398c],.wheel-center-logo-img[data-v-3ea1398c]{border-radius:50%;height:auto;width:100%}.wheel-canvas[data-v-3ea1398c]{display:block}.roulette-click-hint[data-v-3ea1398c]{margin-bottom:0;margin-top:.35rem}.roulette-space-hint[data-v-3ea1398c]{margin-bottom:0;margin-top:.25rem}.roulette-space-hint kbd[data-v-3ea1398c]{background-color:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.08);color:#333;display:inline-block;font-size:11px;line-height:1.4;padding:1px 6px}.roulette-persist-clear[data-v-3ea1398c]{margin-bottom:0;margin-top:.35rem}.hint[data-v-3ea1398c]{font-size:.9rem}.hint[data-v-3ea1398c],.last-winner[data-v-3ea1398c]{margin-top:.5rem}.remaining-count[data-v-3ea1398c]{color:#666;font-size:20px;margin-top:.25rem}.roulette-side-col .roulette-panel[data-v-3ea1398c]{margin-bottom:15px}.roulette-side-col .roulette-panel[data-v-3ea1398c]:last-child{margin-bottom:0}.participant-list--scroll[data-v-3ea1398c]{max-height:min(42vh,340px);overflow-y:auto}.winner-ol--scroll[data-v-3ea1398c]{max-height:min(28vh,220px);overflow-y:auto}.roulette-panel .panel-heading[data-v-3ea1398c]{font-size:14px;font-weight:600}.participant-list[data-v-3ea1398c]{margin-bottom:0}.participant-row[data-v-3ea1398c]{align-items:center;display:flex;font-size:13px;gap:.5rem;justify-content:space-between}.participant-row--active[data-v-3ea1398c]{background-color:#f0fdf4;border-left:3px solid #22c55e}.participant-row--won[data-v-3ea1398c]{background-color:#f9fafb;color:#6b7280}.participant-row--absent[data-v-3ea1398c]{background-color:#fffbeb;border-left:3px solid #f59e0b;color:#92400e}.participant-name[data-v-3ea1398c]{flex:1;min-width:0;word-break:break-word}.participant-badge[data-v-3ea1398c]{color:#6b7280;font-size:11px;white-space:nowrap}.participant-row--active .participant-badge[data-v-3ea1398c]{color:#15803d;font-weight:600}.winner-ol[data-v-3ea1398c]{font-size:13px;margin:0;padding:10px 15px 10px 28px}.winner-li[data-v-3ea1398c]{align-items:flex-start;display:flex;gap:6px;justify-content:space-between;margin-bottom:8px}.winner-li-main[data-v-3ea1398c]{flex:1;min-width:0}.winner-absent-btn[data-v-3ea1398c]{flex-shrink:0;padding:0 4px;white-space:nowrap}.winner-label[data-v-3ea1398c]{font-weight:600}.winner-meta[data-v-3ea1398c]{font-size:12px;margin-left:8px}.winner-empty[data-v-3ea1398c]{font-size:13px;margin:0}.roulette-winner-modal__dialog[data-v-3ea1398c]{margin:12px auto;max-width:min(96vw,1320px);width:96%}@media (min-width:768px){.roulette-winner-modal__dialog[data-v-3ea1398c]{max-width:min(94vw,1400px);width:94%}}@media (min-width:1200px){.roulette-winner-modal__dialog[data-v-3ea1398c]{max-width:1440px}}.roulette-winner-modal .modal-content[data-v-3ea1398c]{border-radius:16px;border-width:2px;overflow:hidden}.roulette-winner-modal .modal-header[data-v-3ea1398c]{padding:clamp(20px,3vw,36px) clamp(18px,3vw,40px);position:relative}.roulette-winner-modal .modal-header .close[data-v-3ea1398c]{font-size:clamp(2rem,4vw,3.25rem);font-weight:300;line-height:1;margin-top:-4px;opacity:.55;padding:8px 12px}.roulette-winner-modal .modal-body[data-v-3ea1398c]{padding:clamp(32px,5vw,72px) clamp(20px,4vw,48px)}.roulette-winner-modal .modal-footer[data-v-3ea1398c]{padding:clamp(16px,2.5vw,28px) clamp(18px,3vw,40px)}.roulette-winner-modal .modal-footer .btn[data-v-3ea1398c]{font-size:clamp(1.15rem,2.2vw,1.65rem);font-weight:700;padding:clamp(10px,1.5vw,16px) clamp(18px,2.5vw,28px)}.roulette-winner-modal__title[data-v-3ea1398c]{font-size:clamp(2.25rem,5.5vw,5rem);font-weight:800;line-height:1.15;margin:0;padding-right:2.5rem}.roulette-winner-modal-round[data-v-3ea1398c]{color:#4b5563!important;font-size:clamp(1.5rem,3.5vw,3.25rem);font-weight:700;margin-bottom:clamp(16px,2.5vw,28px)}.roulette-winner-modal-name[data-v-3ea1398c]{font-size:clamp(3rem,12vw,8.5rem);font-weight:800;letter-spacing:-.03em;line-height:1.12;margin:0;text-shadow:0 2px 0 rgba(0,0,0,.06);word-break:break-word}.roulette-winner-absent-hint[data-v-3ea1398c]{margin-top:12px}",""]);const i=r},8828:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".roulette-demo-page[data-v-7ae4e3b4]{max-width:none;padding-bottom:3rem;padding-top:2rem;width:100%}.roulette-page-header[data-v-7ae4e3b4]{border-bottom:1px solid #e7e7e7;display:flex;justify-content:center;margin-bottom:1rem;padding-bottom:.75rem}.roulette-page-header-inner[data-v-7ae4e3b4]{align-items:center;display:inline-flex;flex-wrap:wrap;gap:14px 18px;justify-content:center;text-align:left}.roulette-page-header-logo[data-v-7ae4e3b4]{display:block;flex-shrink:0;height:52px;max-width:140px;-o-object-fit:contain;object-fit:contain;width:auto}.roulette-demo-title[data-v-7ae4e3b4]{font-size:1.65rem;font-weight:600;line-height:1.3;margin:0;max-width:min(100%,36rem)}.roulette-bg-music-btn[data-v-7ae4e3b4]{flex-shrink:0;white-space:nowrap}.roulette-demo-path[data-v-7ae4e3b4]{font-size:.9rem;margin-bottom:1.25rem;word-break:break-all}.roulette-poll-help[data-v-7ae4e3b4]{line-height:1.45;margin-bottom:.75rem}.roulette-demo-loading[data-v-7ae4e3b4]{margin-bottom:1rem}.roulette-sync-bar[data-v-7ae4e3b4]{align-items:center;display:flex;flex-wrap:wrap;font-size:13px;gap:10px 16px;margin-bottom:14px}.roulette-sync-refreshing[data-v-7ae4e3b4]{font-style:italic}.roulette-sync-poll-error[data-v-7ae4e3b4]{font-size:12px}.roulette-sync-btn[data-v-7ae4e3b4]{flex-shrink:0}.roulette-demo-layout[data-v-7ae4e3b4]{align-items:flex-start}.roulette-pending-sidebar[data-v-7ae4e3b4]{margin-bottom:16px}@media (min-width:992px){.roulette-pending-sidebar[data-v-7ae4e3b4]{margin-bottom:0}.roulette-pending-panel[data-v-7ae4e3b4]{position:sticky;top:12px}}.roulette-main-column[data-v-7ae4e3b4]{min-width:0}.roulette-pending-list[data-v-7ae4e3b4],.roulette-pending-panel[data-v-7ae4e3b4]{margin-bottom:0}.roulette-pending-row[data-v-7ae4e3b4]{align-items:center;display:flex;font-size:13px;gap:10px;justify-content:space-between}.roulette-pending-name[data-v-7ae4e3b4]{flex:1;min-width:0;word-break:break-word}.roulette-pending-import[data-v-7ae4e3b4]{flex-shrink:0}.roulette-cabutan-hint[data-v-7ae4e3b4]{line-height:1.45;margin-bottom:16px}",""]);const i=r},3575:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".container[data-v-05649db8]{max-width:900px}.kopkb-logo[data-v-05649db8]{height:50px}",""]);const i=r},1293:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".signature-line{border-bottom:1px solid #000;display:inline-block;margin-left:10px;width:200px}.print-table{border-collapse:collapse;font-size:13px;margin:20px auto;text-align:left;width:100%}.print-table td,.print-table th{word-wrap:break-word;border:1px solid #000;padding:6px 8px;vertical-align:top}.print-table th{background-color:#f2f2f2}@media print{body{margin:15mm 10mm}.page-break{page-break-before:always}.button-container,button{display:none!important}.print-table{page-break-inside:auto;width:90%}.print-table tr{page-break-after:auto;page-break-inside:avoid}.print-table td,.print-table th{font-size:11px;padding:5px}}",""]);const i=r},1657:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".kopkb-logo[data-v-c88ae6a2]{height:auto;width:300px}label[data-v-c88ae6a2]{display:block;font-weight:500;margin-top:10px}input[data-v-c88ae6a2],textarea[data-v-c88ae6a2]{border:1px solid #ccc;border-radius:6px;margin-top:4px;padding:8px;width:90%}button[data-v-c88ae6a2]{margin-top:15px}.section-title[data-v-c88ae6a2]{background-color:#f8f9fa;border-left:4px solid #007bff;border-radius:4px;font-weight:600;padding:6px 10px}.two-column-form[data-v-c88ae6a2]{background:#f9f9f9;border:1px solid #ddd;border-radius:8px;display:grid;gap:20px 40px;grid-template-columns:1fr 1fr;margin:20px auto;max-width:800px;padding:20px 30px}.form-group[data-v-c88ae6a2]{display:flex;flex-direction:column}label[data-v-c88ae6a2]{color:#333;font-weight:600;margin-bottom:6px}input[data-v-c88ae6a2]{border:1px solid #ccc;border-radius:4px;padding:8px 10px}input[data-v-c88ae6a2]:focus{border-color:#007bff;outline:none}.button-container[data-v-c88ae6a2]{display:flex;justify-content:flex-end;margin-top:20px}",""]);const i=r},8275:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".allowance-stat-card[data-v-7d87dadc]{background:#fafafa;border:1px solid #ddd;border-radius:6px;min-height:118px;padding:14px 16px}.allowance-stat-card--primary[data-v-7d87dadc]{background:#f4fafc;border-color:#bce8f1}.allowance-stat-card__label[data-v-7d87dadc]{color:#777;font-size:12px;letter-spacing:.04em;margin-bottom:6px;text-transform:uppercase}.allowance-stat-card__value[data-v-7d87dadc]{color:#222;font-size:22px;font-weight:700;line-height:1.2}.allowance-stat-card--primary .allowance-stat-card__value[data-v-7d87dadc]{color:#31708f}.allowance-stat-card__hint[data-v-7d87dadc]{color:#888;font-size:12px;line-height:1.35;margin-top:8px}.allowance-stat-card__breakdown[data-v-7d87dadc]{color:#555;font-size:12px;margin-top:8px}.allowance-stat-row[data-v-7d87dadc]{margin-bottom:0}.allowance-section__title[data-v-7d87dadc]{color:#333;font-size:15px;font-weight:700;margin:0 0 6px}.allowance-section--table[data-v-7d87dadc]{border-top:1px solid #e8e8e8;margin-top:24px;padding-top:20px}.allowance-section__footer-total[data-v-7d87dadc]{margin-top:12px}",""]);const i=r},5620:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".election-label{background-color:#0a4c9c;border-radius:4px;color:#fff;display:inline-block;font-size:13px;margin-left:10px;padding:4px 8px}.election-tabs{margin:0 0 12px}.election-tab-content>.tab-pane{display:none}.election-tab-content>.tab-pane.active{display:block}.election-header{align-items:baseline;border-bottom:1px solid #eee;display:flex;gap:12px;justify-content:space-between;padding:14px 15px}.election-header__kicker{color:#777;font-size:12px;letter-spacing:.06em;margin-bottom:4px;text-transform:uppercase}.election-header__name{color:#222;font-size:18px;font-weight:700;line-height:1.2}.election-status{align-items:center;border:1px solid transparent;border-radius:999px;display:inline-flex;font-size:12px;font-weight:700;padding:4px 10px;white-space:nowrap}.election-status--draft{background:#f5f5f5;border-color:#e6e6e6;color:#555}.election-status--active{background:#e8f5e9;border-color:#c8e6c9;color:#2e7d32}.election-status--done{background:#ffebee;border-color:#ffcdd2;color:#c62828}.election-header__meta{align-items:flex-end;display:flex;flex-direction:column;gap:8px}.election-header__meta-actions .btn{font-weight:700;padding:4px 10px}.election-actions{margin-top:12px}.election-hint{margin-bottom:12px;margin-top:10px}.election-history{border-top:1px solid #eee;margin-top:4px;padding-top:12px}.election-history__title{color:#666;font-size:13px;font-weight:800;letter-spacing:.04em;margin:0 0 10px;text-transform:uppercase}.center-header{text-align:center}.modal{z-index:2200}.modal-backdrop{z-index:2190!important}",""]);const i=r},8654:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".result-page[data-v-c5017720]{margin-top:12px}.result-header[data-v-c5017720]{align-items:flex-start;display:flex;gap:16px;justify-content:space-between;margin-bottom:12px}.result-kicker[data-v-c5017720]{color:#2f80ed;font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:6px;text-transform:uppercase}.result-title[data-v-c5017720]{color:#17324d;font-weight:800;margin:0 0 6px}.result-subtitle[data-v-c5017720]{color:#6b7280;font-size:12px}.result-actions[data-v-c5017720]{flex-shrink:0}.result-stats[data-v-c5017720]{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 14px}.result-stat[data-v-c5017720]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #e6edf5;border-radius:16px;box-shadow:0 10px 22px rgba(35,64,97,.06);padding:12px 14px}.result-stat__label[data-v-c5017720]{color:#6b7280;font-size:12px;font-weight:800;letter-spacing:.06em;margin-bottom:6px;text-transform:uppercase}.result-stat__value[data-v-c5017720]{color:#17324d;font-size:22px;font-weight:900}.result-stat__value--text[data-v-c5017720]{font-size:14px;line-height:1.25}.result-stat__hint[data-v-c5017720]{color:#6b7280;font-size:12px;font-weight:700;margin-top:6px}.result-filters[data-v-c5017720]{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}.result-filters__label[data-v-c5017720]{color:#6b7280;font-size:12px;font-weight:700;margin-right:4px}.result-chip[data-v-c5017720]{background:#fff;border:1px solid #d1d5db;border-radius:999px;color:#374151;font-size:12px;font-weight:800;line-height:1;padding:6px 12px}.result-chip[data-v-c5017720]:hover{background:#f3f4f6}.result-chip.is-active[data-v-c5017720]{background:#1976d2;border-color:#1976d2;color:#fff}.result-card[data-v-c5017720]{border:0;border-radius:16px;box-shadow:0 12px 28px rgba(35,64,97,.08);overflow:hidden}.result-card__heading[data-v-c5017720]{align-items:baseline;background:linear-gradient(135deg,#1d4e89,#2f80ed);border:0!important;color:#fff;display:flex;gap:12px;justify-content:space-between}.result-card__title[data-v-c5017720]{font-weight:800}.result-card__meta[data-v-c5017720]{font-size:12px;opacity:.95}.result-card__body[data-v-c5017720]{background:#fff}.result-top-chart[data-v-c5017720]{height:280px;width:100%}.result-mini-title[data-v-c5017720]{color:#17324d;font-size:12px;font-weight:900;letter-spacing:.04em;margin-bottom:8px;text-transform:uppercase}.result-empty[data-v-c5017720]{color:#6b7280;font-style:italic;margin-top:10px;text-align:center}.result-leaders[data-v-c5017720]{display:flex;flex-direction:column;gap:12px}.result-leader[data-v-c5017720]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #eef2f7;border-radius:14px;padding:12px}.result-leader__top[data-v-c5017720]{align-items:baseline;display:flex;gap:10px;justify-content:space-between;margin-bottom:6px}.result-leader__position[data-v-c5017720]{color:#17324d;font-weight:900}.result-leader__meta[data-v-c5017720]{color:#17324d;display:flex;font-size:12px;gap:10px;white-space:nowrap}.result-leader__delta[data-v-c5017720]{color:#2f80ed}.result-leader__name[data-v-c5017720]{color:#17324d;font-weight:800;margin-bottom:8px}.result-leader__bar[data-v-c5017720]{background:#e8f0fb;border-radius:999px;height:10px;overflow:hidden}.result-leader__bar-fill[data-v-c5017720]{background:linear-gradient(90deg,#2f80ed,#1d4e89);border-radius:999px;height:100%}.result-leader__sub[data-v-c5017720]{color:#6b7280;display:flex;font-size:12px;justify-content:space-between;margin-top:8px}.result-rank[data-v-c5017720]{display:flex;flex-direction:column;gap:12px}.result-rank__row[data-v-c5017720]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #eef2f7;border-radius:14px;padding:12px}.result-rank__top[data-v-c5017720]{align-items:center;display:flex;gap:10px;justify-content:space-between;margin-bottom:8px}.result-rank__name[data-v-c5017720]{color:#17324d;font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-rank__votes[data-v-c5017720]{color:#17324d;font-size:12px;white-space:nowrap}.result-rank__bar[data-v-c5017720]{background:#e8f0fb;border-radius:999px;height:10px;overflow:hidden}.result-rank__bar-fill[data-v-c5017720]{background:linear-gradient(90deg,#2f80ed,#1d4e89);border-radius:999px;height:100%}.result-rank__meta[data-v-c5017720]{color:#6b7280;font-size:12px;margin-top:6px;text-align:right}@media (max-width:991px){.result-header[data-v-c5017720]{flex-direction:column}.result-stats[data-v-c5017720]{grid-template-columns:1fr}}",""]);const i=r},8091:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".admin-main[data-v-8f905eae]{padding-top:112px}@media (max-width:767px){.admin-main[data-v-8f905eae]{padding-top:102px}}",""]);const i=r},3407:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,"body{padding:50px 5px}.logo-admin{height:50px;-o-object-fit:cover;object-fit:cover;width:30px}.form-control{border-radius:.5rem}.btn-info:hover{background-color:#c2ccc8;color:#f3f6f8}",""]);const i=r},4002:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".nominee-add-page__header[data-v-2c5ff319]{border-bottom:1px solid #eee;margin-bottom:12px;padding-bottom:10px}.nominee-add-page__title[data-v-2c5ff319]{font-weight:600;margin-bottom:0;margin-top:0}.nominee-add-page__title .fa[data-v-2c5ff319]{margin-right:6px}.nominee-add-page__intro[data-v-2c5ff319]{margin-bottom:18px}.nominee-add-photo .panel-heading[data-v-2c5ff319]{align-items:baseline;display:flex;gap:8px;justify-content:space-between}.nominee-add-photo__hint[data-v-2c5ff319]{font-weight:400}.nominee-add-photo__preview[data-v-2c5ff319]{align-items:center;aspect-ratio:1;background:#f9f9f9;border:1px dashed #ccc;border-radius:4px;display:flex;justify-content:center;margin-bottom:12px;max-height:240px;overflow:hidden;width:100%}.nominee-add-photo__preview--empty[data-v-2c5ff319]{min-height:180px}.nominee-add-photo__preview img[data-v-2c5ff319]{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.nominee-add-photo__placeholder[data-v-2c5ff319]{color:#999;padding:16px;text-align:center}.nominee-add-photo__placeholder .fa[data-v-2c5ff319]{display:block;font-size:36px;margin-bottom:8px;opacity:.65}.nominee-add-photo__placeholder span[data-v-2c5ff319]{display:block;font-size:12px}.nominee-add-photo__input[data-v-2c5ff319]{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.nominee-add-photo__browse[data-v-2c5ff319]{margin-bottom:0}.nominee-add-photo__formats[data-v-2c5ff319]{margin:8px 0 0;text-align:center}.nominee-add-form__rule[data-v-2c5ff319]{border-top-color:#eee;margin-bottom:16px;margin-top:8px}.nominee-add-form__actions[data-v-2c5ff319]{text-align:right}.nominee-add-form__actions .btn+.btn[data-v-2c5ff319]{margin-left:8px}@media (max-width:991px){.nominee-add-photo[data-v-2c5ff319]{margin-top:8px}}",""]);const i=r},7300:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".nominee-add-page__header[data-v-2ff9e648]{border-bottom:1px solid #eee;margin-bottom:12px;padding-bottom:10px}.nominee-add-page__title[data-v-2ff9e648]{font-weight:600;margin-bottom:0;margin-top:0}.nominee-add-page__title .fa[data-v-2ff9e648]{margin-right:6px}.nominee-add-page__intro[data-v-2ff9e648]{margin-bottom:18px}.nominee-add-photo .panel-heading[data-v-2ff9e648]{align-items:baseline;display:flex;gap:8px;justify-content:space-between}.nominee-add-photo__hint[data-v-2ff9e648]{font-weight:400}.nominee-add-photo__preview[data-v-2ff9e648]{align-items:center;aspect-ratio:1;background:#f9f9f9;border:1px dashed #ccc;border-radius:4px;display:flex;justify-content:center;margin-bottom:12px;max-height:240px;overflow:hidden;width:100%}.nominee-add-photo__preview--empty[data-v-2ff9e648]{min-height:180px}.nominee-add-photo__preview img[data-v-2ff9e648]{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.nominee-add-photo__placeholder[data-v-2ff9e648]{color:#999;padding:16px;text-align:center}.nominee-add-photo__placeholder .fa[data-v-2ff9e648]{display:block;font-size:36px;margin-bottom:8px;opacity:.65}.nominee-add-photo__placeholder span[data-v-2ff9e648]{display:block;font-size:12px}.nominee-add-photo__input[data-v-2ff9e648]{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.nominee-add-photo__browse[data-v-2ff9e648]{margin-bottom:0}.nominee-add-photo__formats[data-v-2ff9e648]{margin:8px 0 0;text-align:center}.nominee-add-form__rule[data-v-2ff9e648]{border-top-color:#eee;margin-bottom:16px;margin-top:8px}.nominee-add-form__actions[data-v-2ff9e648]{text-align:right}.nominee-add-form__actions .btn+.btn[data-v-2ff9e648]{margin-left:8px}@media (max-width:991px){.nominee-add-photo[data-v-2ff9e648]{margin-top:8px}}",""]);const i=r},9273:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".nominee-filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.nominee-chip{border-radius:999px;line-height:1.1;padding:6px 10px}",""]);const i=r},8794:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".voter-add-page__header{margin-bottom:12px}.voter-add-page__header h4{margin-top:0}.voter-add-page__header-actions .btn{margin-left:6px}.voter-add-page__intro,.voter-add-split__col{margin-bottom:16px}.voter-add-split__panel{margin-bottom:0}.voter-batch-toolbar .form-control{margin-bottom:8px;margin-right:8px;min-width:180px}.voter-batch-toolbar .btn{margin-bottom:8px;margin-right:6px}.voter-add-table-wrap{margin-top:10px;max-height:min(520px,calc(100vh - 280px));overflow:auto}.voter-add-table-wrap--selected{min-height:120px}.voter-add-empty-selected{margin:16px 0 0}.voter-add-heading__loading{margin-left:8px;margin-top:3px}.voter-add-heading__filter-hint{margin-right:8px;margin-top:4px}",""]);const i=r},8497:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".kehadiran-search{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}.kehadiran-search__label{color:#6b7280;font-size:12px;font-weight:700}.kehadiran-search__input{height:34px;max-width:220px}.kehadiran-search__input--name{max-width:260px}",""]);const i=r},8787:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".kehadiran-actions{margin-bottom:10px}.kehadiran-stats{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));margin:10px 0 14px}.kehadiran-stat{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px}.kehadiran-stat--muted{background:#f9fafb}.kehadiran-stat__label{color:#6b7280;font-size:12px;font-weight:800;letter-spacing:.2px}.kehadiran-stat__value{color:#111827;font-size:22px;font-weight:900;line-height:1.1;margin-top:4px}.kehadiran-stat__meta{color:#374151;font-size:12px;font-weight:700;margin-top:4px}.kehadiran-search{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}.kehadiran-search__label{color:#6b7280;font-size:12px;font-weight:700}.kehadiran-search__input{height:34px;max-width:220px}.kehadiran-filter-panel{background:#f9fafb;border:1px solid #e5e7eb;border-radius:10px;margin:10px 0 14px;padding:12px 14px}.kehadiran-filter-panel__title{color:#6b7280;font-size:11px;font-weight:800;letter-spacing:.06em;margin-bottom:10px;text-transform:uppercase}.kehadiran-filter-groups{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.kehadiran-filter-group{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px}.kehadiran-filter-group__title{color:#374151;font-size:12px;font-weight:700;line-height:1.3;margin-bottom:8px}.kehadiran-filter-group__chips{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.kehadiran-chip{background:#fff;border:1px solid #d1d5db;border-radius:999px;color:#374151;font-size:12px;font-weight:700;line-height:1;padding:6px 12px}.kehadiran-chip:hover{background:#f3f4f6}.kehadiran-chip.is-active{background:#1976d2;border-color:#1976d2;color:#fff}.kehadiran-action-cell{flex-wrap:wrap}.kehadiran-action-btn,.kehadiran-action-cell{align-items:center;display:inline-flex;gap:6px}.kehadiran-action-btn{font-weight:700}.kehadiran-action-btn>i{line-height:1}.kehadiran-verify-lead{color:#374151;line-height:1.5;margin-bottom:12px}.kehadiran-verify-summary{margin-bottom:0}.kehadiran-tunai-readonly{background-color:#f3f4f6!important;color:#1f2937;cursor:not-allowed}.kehadiran-pill{align-items:center;border:1px solid transparent;border-radius:999px;display:inline-flex;font-size:12px;font-weight:800;gap:6px;line-height:1.4;padding:3px 10px;white-space:nowrap}.kehadiran-pill>i{line-height:1}.kehadiran-pill--success{background:#d1e7dd;border-color:#badbcc;color:#0f5132}.kehadiran-pill--warn{background:#fff3cd;border-color:#ffecb5;color:#664d03}.kehadiran-pill--muted{background:#f3f4f6;border-color:#e5e7eb;color:#374151}",""]);const i=r},3641:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".voter-admin-wrap--boxed{background:#fff;border:1px solid #e6e6e6;border-radius:12px;box-shadow:0 1px 2px rgba(0,0,0,.04);margin-bottom:24px;margin-top:12px;padding:16px}.voter-admin-wrap--wide{margin-left:auto;margin-right:auto;max-width:1400px}",""]);const i=r},6830:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".physical-gate-page[data-v-3a80ef97]{align-items:center;background:linear-gradient(160deg,#0f172a,#1e3a5f 45%,#0f172a);color:#e2e8f0;display:flex;justify-content:center;min-height:100vh;padding:24px}.physical-gate-error[data-v-3a80ef97],.physical-gate-setup[data-v-3a80ef97]{max-width:520px;width:100%}.physical-gate-title[data-v-3a80ef97]{color:#f8fafc;font-size:2rem;font-weight:800;margin-bottom:16px}.physical-gate-hint[data-v-3a80ef97]{color:#94a3b8;font-size:1.05rem;line-height:1.5;margin-bottom:20px}.physical-gate-key-form .btn[data-v-3a80ef97]{margin-top:12px}.physical-gate-active[data-v-3a80ef97]{max-width:920px;text-align:center;width:100%}.physical-gate-label[data-v-3a80ef97]{color:#94a3b8;font-size:1.4rem;font-weight:700;letter-spacing:.06em;margin-bottom:20px;text-transform:uppercase}.physical-gate-code[data-v-3a80ef97]{color:#fbbf24;font-family:SF Mono,Menlo,Consolas,monospace;font-size:clamp(3.5rem,14vw,8rem);font-weight:900;letter-spacing:.12em;margin-bottom:28px;text-shadow:0 0 40px rgba(251,191,36,.35);word-break:break-all}.physical-gate-countdown[data-v-3a80ef97]{background:rgba(148,163,184,.25);border-radius:999px;height:12px;margin:0 auto 20px;max-width:560px;overflow:hidden}.physical-gate-countdown-bar[data-v-3a80ef97]{background:linear-gradient(90deg,#38bdf8,#22d3ee);border-radius:999px;display:block;height:100%;transition:width .3s ease}.physical-gate-sub[data-v-3a80ef97]{color:#94a3b8;font-size:1.1rem;margin:0}",""]);const i=r},881:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".attendance-page{margin-bottom:36px;margin-top:18px}.attendance-hero{background:linear-gradient(135deg,#fff,#eef6ff);border:1px solid #e2ebf5;border-radius:22px;box-shadow:0 16px 34px rgba(35,64,97,.08);margin-bottom:22px;margin-top:22px;padding:26px 28px;text-align:center}.attendance-section-kicker{color:#2f80ed;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.attendance-page-subtitle,.attendance-page-title{color:#5f7388;line-height:1.6;margin:0 auto 18px;max-width:700px}.attendance-download-button{background:#fff;border:1px solid #cfe2ff;border-radius:999px;box-shadow:0 10px 24px rgba(13,110,253,.12);color:#0d6efd;display:inline-block;font-weight:700;padding:12px 20px;text-decoration:none!important}.attendance-card{background:#fff;border:1px solid #e2ebf5;border-radius:20px;box-shadow:0 16px 34px rgba(35,64,97,.08);padding:24px}.attendance-info-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-field{margin-bottom:0}.attendance-choice-box label,.attendance-field label{color:#45617b;display:block;font-weight:700;margin-bottom:8px}.attendance-input,.attendance-select{border:1px solid #d8e3f0;border-radius:12px;box-shadow:none;height:46px}.attendance-input[readonly]{background:#f8fbff;color:#1f2937}.attendance-choice-box{background:linear-gradient(180deg,#fffaf2,#fff4df);border:1px solid #ffd9a8;border-radius:16px;box-shadow:0 10px 24px rgba(255,193,7,.08);margin-top:20px;padding:18px}.attendance-helper-text{display:block;margin-top:10px}.attendance-precheck{color:#5f7388;line-height:1.5;margin:0 0 12px}.attendance-register-box{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #e6edf6;border-radius:18px;box-shadow:0 14px 28px rgba(35,64,97,.08);padding:18px;text-align:left}.attendance-register-box__actions{margin-top:16px;text-align:center}.attendance-info-top{background:linear-gradient(180deg,#f2f8ff,#fff);border:1px solid #cfe2ff;border-radius:16px;box-shadow:0 10px 24px rgba(13,110,253,.08);margin-bottom:14px;padding:16px 18px;text-align:left}.attendance-info-top__kicker{color:#0d6efd;font-size:.95rem;font-weight:800;letter-spacing:.06em;margin-bottom:8px;text-transform:uppercase}.attendance-info-top__body p:last-child{margin-bottom:0}.attendance-info-notice{border:1px solid #cde3ff;border-radius:16px;box-shadow:0 10px 24px rgba(13,110,253,.08);margin-bottom:0;padding:16px 18px}.attendance-info-notice p:last-child{margin-bottom:0}.attendance-action-area{margin-top:26px}.attendance-success-card{background:linear-gradient(135deg,#effaf2,#fff);border:1px solid #ccebd7;border-radius:18px;box-shadow:0 14px 28px rgba(40,167,69,.12);padding:24px}.attendance-success-kicker{color:#1f8b47;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.attendance-success-text{color:#43617a;margin-bottom:8px}.attendance-success-mode{color:#0f5132;font-size:2.2rem;font-weight:800;letter-spacing:.05em;margin:0 0 18px}.attendance-saham-block-alert{border-radius:12px;font-size:1.05rem;line-height:1.5;margin:0 auto 16px;max-width:520px;text-align:left}.attendance-pending-card{background:linear-gradient(135deg,#fffbeb,#fff);border:1px solid #fde68a;border-radius:18px;box-shadow:0 14px 28px rgba(180,83,9,.1);padding:24px}.attendance-pending-kicker{color:#b45309;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:10px;text-transform:uppercase}.attendance-pending-text{color:#43617a;line-height:1.55;margin-bottom:10px}.attendance-pending-hint{color:#6b7280;font-size:.95rem;line-height:1.5;margin-bottom:18px}.attendance-refresh-button{border-radius:999px;font-weight:700;min-width:180px;padding:10px 20px}.attendance-submit-button,.attendance-vote-button{border-radius:999px;box-shadow:0 12px 24px rgba(35,64,97,.14);font-weight:700;letter-spacing:.04em;min-width:220px;padding:12px 24px}.attendance-voting-notice{border-radius:14px;margin:0 auto;max-width:520px}.attendance-voting-notice__title{margin:0 0 8px}.attendance-voting-notice__body{line-height:1.55;margin:0 0 10px}@media (max-width:767px){.attendance-card,.attendance-hero{border-radius:16px;padding:18px}.attendance-info-grid{grid-template-columns:1fr}.attendance-refresh-button,.attendance-submit-button,.attendance-vote-button{min-width:0;width:100%}}",""]);const i=r},7324:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,'.voter-home-page{margin-bottom:48px;margin-top:16px;padding-left:0;padding-right:0}.home-content-row,.home-hero-row{margin-left:0;margin-right:0}.home-claim-row,.home-quick-links-row{margin-left:0;margin-right:0;margin-top:18px}.home-content-row .home-column--secondary .home-claim-row{margin-top:0}.home-column--primary,.home-column--secondary{padding-top:4px}@media (max-width:767px){.home-column--secondary{margin-top:8px;padding-top:0}.home-content-row .home-column--secondary .home-claim-row{margin-top:18px}}@media (min-width:992px){.home-column--primary{padding-right:20px}.home-column--secondary{padding-left:20px}}.home-hero-wrap{margin-bottom:0}.home-hero-section{padding:16px 18px 20px}.home-hero-section .hero-banner{border-radius:18px;margin-bottom:16px}.home-hero-section .hero-banner-caption{box-shadow:0 8px 28px rgba(35,64,97,.08)}.hero-banner{background:linear-gradient(145deg,#e8f0ff,#f4f8fd 50%,#eef5ff);border-radius:24px;box-shadow:0 20px 50px rgba(11,39,79,.2),inset 0 0 0 1px hsla(0,0%,100%,.06);margin-bottom:20px;overflow:hidden;position:relative}.home-hero-banner-shine{background:linear-gradient(0deg,rgba(13,110,253,.07) 0,transparent);bottom:0;height:42%;left:0;pointer-events:none;position:absolute;right:0}.hero-banner-image{display:block;max-height:360px;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;width:100%}.hero-banner-caption{background:#fff;border:1px solid rgba(13,110,253,.12);border-radius:20px;box-shadow:0 16px 40px rgba(35,64,97,.1),inset 0 1px 0 hsla(0,0%,100%,.8);margin-bottom:6px;margin-top:0;padding:22px 24px}.hero-banner-title{color:#0f172a;font-size:2.85rem;font-weight:800;letter-spacing:-.02em;line-height:1.15;margin:0 0 10px}.hero-banner-subtitle{color:#475569;font-size:1.45rem;line-height:1.65;margin:0 0 16px;max-width:720px}.home-hero-strong{color:#1d4ed8;font-weight:700}.home-hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}.home-hero-actions{display:flex;flex-direction:column;gap:8px;margin:14px 0 8px;max-width:520px}.home-hero-register-btn{align-items:center;border-radius:12px;box-shadow:0 10px 24px rgba(13,110,253,.35);display:inline-flex;font-size:1.35rem;font-weight:800;gap:10px;justify-content:center;padding:12px 16px}.home-hero-register-hint{color:#64748b;font-size:1.2rem;line-height:1.35}.home-member-cta{margin:0 0 14px}.home-member-cta-btn{align-items:center;border-radius:12px;box-shadow:0 10px 24px rgba(13,110,253,.35);display:inline-flex;font-size:1.35rem;font-weight:800;gap:10px;justify-content:center;padding:12px 16px}.home-member-cta-hint{color:#64748b;font-size:1.2rem;line-height:1.35;margin-top:8px}.home-member-cta-hint--warning{align-items:flex-start;background:#fffbeb;border:1px solid rgba(245,158,11,.45);border-radius:12px;color:#92400e;display:flex;gap:10px;margin-bottom:10px;margin-top:0;padding:10px 12px}.home-member-cta-hint--warning .fa{flex-shrink:0;margin-top:2px}.home-badge{align-items:center;border:1px solid transparent;border-radius:999px;display:inline-flex;font-size:1.25rem;font-weight:600;gap:8px;padding:8px 14px}.home-badge .fa{opacity:.9}.home-badge--location{background:#f1f5f9;border-color:#e2e8f0;color:#334155}.home-badge--ok{background:linear-gradient(135deg,#ecfdf5,#d1fae5);border-color:rgba(16,185,129,.35);color:#047857}.home-badge--pending{background:linear-gradient(135deg,#fffbeb,#fef3c7);border-color:rgba(245,158,11,.4);color:#b45309}.home-section-container{background:#fff;border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 12px 32px rgba(35,64,97,.08);margin-bottom:28px;padding:20px 22px 24px}.home-content-row .home-section-container{margin-bottom:0}.home-column--secondary .home-section-container:not(:last-child){margin-bottom:24px}.home-section-heading{align-items:center;border-bottom:1px solid #eef2f7;color:#0f172a;display:flex;font-size:1.75rem;font-weight:800;gap:12px;letter-spacing:-.02em;margin:0 0 18px;padding-bottom:16px}.home-section-heading-icon{align-items:center;background:linear-gradient(135deg,#0d6efd,#3b82f6);border-radius:12px;box-shadow:0 8px 20px rgba(13,110,253,.28);color:#fff;display:flex;flex-shrink:0;font-size:1.65rem;height:44px;justify-content:center;width:44px}.home-section-heading-icon--teal{background:linear-gradient(135deg,#0f766e,#14b8a6);box-shadow:0 8px 20px rgba(20,184,166,.35)}.home-member-card--in-section{background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;box-shadow:none}.home-section-container--kad .home-kad-wrap{padding-top:4px}.home-saham-block-row{margin-bottom:8px;margin-left:0;margin-right:0}.home-saham-block-alert{align-items:flex-start;border-radius:14px;display:flex;font-size:1.3rem;gap:12px;line-height:1.5;margin-bottom:0}.home-saham-block-icon{flex-shrink:0;font-size:1.5rem;padding-top:2px}.home-quick-links-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-bottom:0}.home-quick-link-wrap{display:flex;min-width:0}.home-quick-link-wrap .home-cta-link{flex:1;margin-bottom:0;min-height:100%;width:100%}.home-cta-link{align-items:center;border:1px solid hsla(0,0%,100%,.2);border-radius:16px;color:#fff!important;display:flex;gap:16px;padding:18px 20px;text-decoration:none!important;transition:transform .2s ease,box-shadow .2s ease}.home-cta-link:hover{color:#fff!important;transform:translateY(-2px)}.home-cta-link--indigo{background:linear-gradient(135deg,#1e3a8a,#2563eb 48%,#1d4ed8);box-shadow:0 14px 36px rgba(37,99,235,.35)}.home-cta-link--indigo:hover{box-shadow:0 18px 44px rgba(37,99,235,.45)}.home-cta-link--violet{background:linear-gradient(135deg,#5b21b6,#7c3aed 50%,#6d28d9);box-shadow:0 14px 36px rgba(124,58,237,.35)}.home-cta-link--violet:hover{box-shadow:0 18px 44px rgba(124,58,237,.48)}.home-cta-link--teal{background:linear-gradient(135deg,#0f766e,#14b8a6 50%,#0d9488);box-shadow:0 14px 36px rgba(20,184,166,.32)}.home-cta-link--teal:hover{box-shadow:0 18px 44px rgba(20,184,166,.45)}.home-cta-link--rose{background:linear-gradient(135deg,#9f1239,#e11d48 50%,#be123c);box-shadow:0 14px 36px rgba(225,29,72,.32)}.home-cta-link--rose:hover{box-shadow:0 18px 44px rgba(225,29,72,.45)}.home-cta-link--cyan{background:linear-gradient(135deg,#0e7490,#06b6d4 50%,#0891b2);box-shadow:0 14px 36px rgba(6,182,212,.3)}.home-cta-link--cyan:hover{box-shadow:0 18px 44px rgba(6,182,212,.42)}.home-cta-link--amber{background:linear-gradient(135deg,#b45309,#f59e0b 50%,#d97706);box-shadow:0 14px 36px rgba(245,158,11,.32)}.home-cta-link--amber:hover{box-shadow:0 18px 44px rgba(245,158,11,.45)}.home-cta-link--grey{background:linear-gradient(135deg,#64748b,#94a3b8 50%,#64748b);box-shadow:0 14px 36px rgba(100,116,139,.3)}.home-cta-link--grey:hover{box-shadow:0 18px 44px rgba(100,116,139,.42)}.home-cta-icon{align-items:center;background:hsla(0,0%,100%,.15);border-radius:14px;display:flex;flex-shrink:0;font-size:2.2rem;height:52px;justify-content:center;width:52px}.home-cta-body{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}.home-cta-title{font-size:1.65rem;font-weight:800;letter-spacing:.02em}.home-cta-desc{font-size:1.25rem;line-height:1.4;opacity:.92}.home-cta-chevron{flex-shrink:0;font-size:2.4rem;opacity:.85}.member-info-card{background:#fff;border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 12px 32px rgba(35,64,97,.08);margin-bottom:0;overflow:hidden;padding:0}.home-member-card{padding:6px 0}.member-field{align-items:flex-start;border-bottom:1px solid #eef2f7;display:flex;gap:12px;padding:14px 16px;transition:background .15s ease}.member-field:last-child{border-bottom:0}.member-field:hover{background:#f8fafc}.member-field-icon{align-items:center;background:#eff6ff;border-radius:10px;color:#2563eb;display:flex;flex-shrink:0;font-size:1.45rem;height:36px;justify-content:center;margin-top:2px;width:36px}.member-field-body{align-items:flex-start;display:flex;flex:1;flex-direction:row;gap:12px 18px;justify-content:space-between;min-width:0}.member-field-label{color:#64748b;flex:0 0 38%;font-size:1.2rem;font-weight:700;letter-spacing:.04em;line-height:1.35;max-width:200px;padding-top:4px;text-transform:uppercase}.member-field-value{color:#0f172a;flex:1;font-size:1.45rem;font-weight:700;line-height:1.4;text-align:right;word-break:break-word}.home-claim-card{padding:20px 22px}.home-claim-locked{align-items:flex-start;display:flex;gap:16px}.home-claim-locked-icon{align-items:center;background:#f1f5f9;border-radius:12px;color:#64748b;display:flex;flex-shrink:0;font-size:2rem;height:48px;justify-content:center;width:48px}.home-claim-locked-text{color:#64748b;font-size:1.35rem;line-height:1.55;margin:0}.home-claim-hint{color:#475569;font-size:1.3rem;line-height:1.5;margin:0 0 14px}.home-claim-alert{border-radius:12px;font-size:1.25rem;margin-bottom:12px}.home-claim-code-box{background:linear-gradient(180deg,#f0fdf4,#ecfdf5);border:2px dashed rgba(16,185,129,.45);border-radius:14px;margin-bottom:16px;padding:18px 16px;text-align:center}.home-claim-code{color:#047857;font-family:ui-monospace,Cascadia Code,Menlo,monospace;font-size:2.8rem;font-weight:800;letter-spacing:.22em;line-height:1.2}.home-claim-expiry{color:#64748b;font-size:1.2rem;margin-top:10px}.home-claim-btn{border:0;border-radius:12px;box-shadow:0 8px 24px rgba(13,110,253,.35);font-size:1.35rem;font-weight:700;padding-bottom:12px;padding-top:12px}.home-claim-btn .fa{margin-right:4px}.home-kad-wrap{display:flex;justify-content:center;padding:8px 0 12px}.watermark{left:50%;opacity:.09;position:absolute;top:50%;transform:translate(-50%,-50%);width:60mm;z-index:5}.kad-keahlian{aspect-ratio:1.3/1;background:#2d3748;background-image:url(/images/kad_bg.png);background-position:50%;background-size:cover;border:1px solid hsla(0,0%,100%,.12);border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.06);box-sizing:border-box;color:#f8fafc;cursor:default;font-family:Arial,sans-serif;font-size:.8rem;font-weight:700;max-height:220px;max-width:420px;overflow:hidden;padding:20px;position:relative;transition:transform .25s ease,box-shadow .25s ease;width:100%}.kad-keahlian:hover{box-shadow:0 24px 56px rgba(0,0,0,.3),0 0 0 1px hsla(0,0%,100%,.08);transform:translateY(-3px) scale(1.01)}@media (max-height:600px){.kad-keahlian{font-size:.75rem;max-height:200px;padding:12px}}.kad-logo{position:absolute;right:10px;text-align:right;top:10px}.kad-logo-img{filter:drop-shadow(2px 2px 4px rgba(0,0,0,.5));height:auto;width:124px}.member-card-vertical{color:#fff;font-size:1.4rem;font-weight:700;left:0;letter-spacing:2px;padding:5px;position:absolute;text-orientation:mixed;text-shadow:1px 1px 3px rgba(0,0,0,.7);top:18px;writing-mode:vertical-rl}.kad-keahlian:before{background-size:100%;background:#000;content:"";height:100%;left:0;opacity:.06;pointer-events:none;position:absolute;top:0;width:100%}.member-details{display:flex;flex-direction:column;font-family:Arial,sans-serif;font-size:1.05rem;font-weight:400;gap:5px;line-height:1.3;margin-left:38px}.kad-content{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;position:relative;z-index:5}.detail-item{position:relative;text-align:left}.detail-item--barcode{margin-top:4px}#barcode{max-width:100%;transform:scaleX(1.45);transform-origin:left}.detail-label{text-align:left}.detail-value,.no-anggota{text-align:right}.no-anggota{position:absolute;right:8px;top:5px;z-index:10}.contact-info{color:#0c0c0c;font-size:9px;line-height:1.2;text-align:right}.contact-info i{font-size:8px;font-weight:400;margin-right:3px}@media (max-width:991px){.voter-home-page{margin-top:16px}.hero-banner-image{max-height:300px}.hero-banner-title{font-size:2.35rem}.member-field-label{flex:0 0 42%;max-width:220px}}@media (max-width:767px){.hero-banner{border-radius:18px}.hero-banner-image{max-height:240px}.hero-banner-caption{border-radius:16px;padding:18px}.hero-banner-title{font-size:1.95rem}.hero-banner-subtitle{font-size:1.25rem}.home-section-container{border-radius:16px;padding:16px 14px 18px}.home-hero-section{padding:12px 12px 16px}.home-section-heading{font-size:1.45rem;gap:10px;margin-bottom:14px;padding-bottom:14px}.home-section-heading-icon{font-size:1.45rem;height:40px;width:40px}.home-cta-link{flex-wrap:wrap;padding:16px}.home-cta-title{font-size:1.45rem}.home-cta-desc{font-size:1.15rem}.home-member-card--in-section{border-radius:12px}.home-member-card--in-section .member-field{align-items:flex-start;gap:10px;padding:12px}.home-member-card--in-section .member-field-icon{border-radius:11px;font-size:1.35rem;height:40px;margin-top:0;width:40px}.home-member-card--in-section .member-field-body{align-items:stretch;flex-direction:column;gap:5px;justify-content:flex-start}.home-member-card--in-section .member-field-label{color:#475569;flex:none;font-size:1.15rem;font-weight:700;letter-spacing:.06em;line-height:1.25;margin:0;max-width:none;padding-top:0;text-transform:uppercase;width:100%}.home-member-card--in-section .member-field-value{color:#0f172a;flex:none;font-size:1.42rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere;text-align:left;width:100%;word-break:break-word}.home-claim-code{font-size:2.2rem;letter-spacing:.14em}}',""]);const i=r},5387:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".background-img{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:20px;max-height:80vh;max-width:100%}.right-button{border-color:#0e0e0f;border-radius:10px;color:#fff;cursor:pointer;text-align:left}.right-button :hover{outline-color:#045415}",""]);const i=r},1597:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".voter-nominees-page{margin-bottom:40px;margin-top:24px}.page-column{margin-bottom:24px}.page-section-heading{background:linear-gradient(135deg,#0d6efd,#2f80ed);border-radius:14px;box-shadow:0 12px 28px rgba(13,110,253,.2);color:#fff;font-size:1.8rem;font-weight:700;margin-bottom:14px;padding:14px 18px;text-align:center}.nominee-page-intro{background:#eef5ff;border:1px solid #dbe8ff;border-radius:12px;color:#36506b;font-size:1.4rem;margin-bottom:18px;padding:12px 16px}.nominee-panel{border:0;border-radius:18px;box-shadow:0 14px 28px rgba(35,64,97,.1);margin-bottom:20px;overflow:hidden}.nominee-panel-heading{align-items:center;background:linear-gradient(135deg,#1d4e89,#2563eb);color:#fff;display:flex;font-size:1.7rem;font-weight:700;justify-content:space-between;padding:16px 20px}.nominee-panel-badge{background:hsla(0,0%,100%,.18);border-radius:999px;font-size:1.2rem;font-weight:600;padding:6px 10px}.nominee-panel-body{background:#fff;padding:0}.nominee-table{margin-bottom:0}.nominee-table thead{background:#f4f8fd}.nominee-table thead th{border-bottom:1px solid #dce7f5;color:#48627e;font-size:1.25rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.nominee-table tbody td{border-top:1px solid #edf2f7;color:#22384f;vertical-align:middle}.nominee-row{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease}.nominee-row:hover{background:#f8fbff;box-shadow:inset 4px 0 0 #2f80ed}.nominee-thumb{border:2px solid #dbe8ff;border-radius:16px;box-shadow:0 8px 18px rgba(47,128,237,.12);height:64px;margin-bottom:0;-o-object-fit:cover;object-fit:cover;width:64px}.nominee-empty-state{color:#6f8193;padding:18px!important;text-align:center}.nominee-modal-backdrop{align-items:center;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:rgba(7,25,48,.72);display:flex;inset:0;justify-content:center;padding:24px 16px;position:fixed;z-index:1050}#view-nominee-modal.modal-dialog{margin:0;max-width:960px;width:100%}.nominee-modal-content{border:0;border-radius:20px;box-shadow:0 22px 60px rgba(0,0,0,.28);overflow:hidden}.nominee-modal-content .modal-header{align-items:flex-start;background:linear-gradient(135deg,#0d6efd,#2f80ed);border-bottom:1px solid #e7edf5;color:#fff;display:flex;justify-content:space-between;padding:20px 24px 16px}.nominee-modal-content .modal-title{font-size:2.2rem;font-weight:700;margin:4px 0 0}.nominee-modal-content .modal-header .close{color:#fff;margin-top:-4px;opacity:.9;text-shadow:none}.nominee-modal-kicker{font-size:1.2rem;font-weight:600;letter-spacing:.04em;opacity:.85;text-transform:uppercase}.nominee-modal-body{background:#f5f8fc;display:flex;gap:24px;padding:24px}.photo-section{flex:0 0 300px}.nominee-photo-card{background:#fff;border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 10px 24px rgba(35,64,97,.08);padding:18px}.nominee-viewed-photo{background:#eef3f8;border:0;border-radius:14px;height:320px;margin:0 0 16px;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;width:100%}.nominee-photo-meta{text-align:center}.nominee-name{color:#17324d;font-size:2rem;font-weight:700}.nominee-subtitle{color:#5f7388;font-size:1.4rem;margin-top:4px}.detail-section{flex:1;min-width:0}.nominee-summary-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.summary-item{background:#fff;border:1px solid #e5ebf3;border-radius:14px;box-shadow:0 8px 22px rgba(35,64,97,.06);display:flex;flex-direction:column;gap:6px;padding:14px 16px}.summary-label{color:#6f8193;font-size:1.2rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.summary-value{color:#17324d;font-size:1.6rem;font-weight:600;line-height:1.4}.nominee-section-card{background:#fff;border:1px solid #e5ebf3;border-radius:16px;box-shadow:0 8px 22px rgba(35,64,97,.06);margin-bottom:16px;padding:18px 20px}.section-title{color:#17324d;font-size:1.5rem;font-weight:700;margin-bottom:12px}.detail-list{color:#30475f;margin:0;padding-left:20px}.detail-list li{line-height:1.6;margin-bottom:8px}.detail-empty{color:#6f8193;margin:0}.nominee-modal-content .modal-footer{background:#fff;border-top:1px solid #e7edf5;padding:16px 24px 22px}@media (max-width:767px){.nominee-modal-backdrop{align-items:flex-start;overflow-y:auto;padding:16px 10px}.nominee-modal-body{flex-direction:column;padding:18px}.photo-section{flex:1 1 auto}.nominee-viewed-photo{height:260px}.nominee-summary-grid{grid-template-columns:1fr}.page-section-heading{font-size:1.6rem}.nominee-panel-heading{align-items:flex-start;flex-direction:column;gap:8px}.nominee-thumb{border-radius:14px;height:52px;width:52px}.nominee-table thead th{font-size:1.15rem}.nominee-table tbody td{padding:10px 8px}}@media (max-width:991px){.voter-nominees-page{margin-top:16px}}",""]);const i=r},3389:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".penyata-wrapper[data-v-2c7fe227]{font-family:Arial,sans-serif;margin:0 auto;max-width:800px}.header-section[data-v-2c7fe227]{align-items:center;display:grid;gap:20px;grid-template-columns:1.5fr 1fr}.logo-wrapper[data-v-2c7fe227]{align-items:flex-start;display:flex;gap:15px}.kopkb-logo[data-v-2c7fe227]{height:auto;width:80px}.header-right[data-v-2c7fe227]{text-align:right}.title-box[data-v-2c7fe227]{background:#000;border-radius:4px;color:#fff;display:inline-block;padding:8px 15px;text-align:center}.form-section.two-column[data-v-2c7fe227]{-moz-column-gap:30px;column-gap:30px;display:grid;grid-template-columns:repeat(2,1fr);margin:0 auto;max-width:780px;row-gap:15px}.form-control-sm[data-v-2c7fe227]{border:none;border-bottom:1px solid #666;border-radius:0;outline:none;padding:4px;width:100%}.boxed-table[data-v-2c7fe227]{border-collapse:separate;border-spacing:4px;width:100%}.boxed-table td[data-v-2c7fe227]{background:#fafafa;border:1px inset #000;padding:6px 8px}.boxed-table td[data-v-2c7fe227],.no-lines td[data-v-2c7fe227]{font-size:13px;vertical-align:middle}.no-lines td[data-v-2c7fe227]{border:none!important;padding:4px 6px;text-align:left}.keyin-input[data-v-2c7fe227],.keyin-line[data-v-2c7fe227]{background:transparent;border:none;border-bottom:1px solid #000;font-size:12px;padding:2px 4px;text-align:right;width:90%}.keyin-input[data-v-2c7fe227]:focus,.keyin-line[data-v-2c7fe227]:focus{border-bottom:1px solid #007bff}.signature-section[data-v-2c7fe227]{-moz-column-gap:40px;column-gap:40px;display:grid;grid-template-columns:1fr 1fr;margin:20px auto 0;max-width:780px;row-gap:15px;width:100%}.btn-effect[data-v-2c7fe227]{transition:.3s ease}.btn-effect[data-v-2c7fe227]:hover{box-shadow:0 0 10px rgba(8,8,8,.818);transform:scale(1.05)}.italic-note[data-v-2c7fe227]{font-style:italic}.badge-disahkan[data-v-2c7fe227]{background:#28a745;border-radius:20px;color:#fff;font-weight:600;letter-spacing:.3px;padding:6px 14px}@media(max-width:768px){.header-section[data-v-2c7fe227]{grid-template-columns:1fr;text-align:center}.header-right[data-v-2c7fe227]{margin-top:10px;text-align:center}.logo-wrapper[data-v-2c7fe227]{justify-content:center}.signature-section[data-v-2c7fe227]{grid-template-columns:1fr}}@media print{.no-print[data-v-2c7fe227]{display:none!important}body[data-v-2c7fe227]{font-size:12px;line-height:1.3}.penyata-wrapper[data-v-2c7fe227],table[data-v-2c7fe227]{page-break-inside:avoid}}",""]);const i=r},3458:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".vote-page[data-v-23b0d17f]{margin-bottom:36px;margin-top:18px}.vote-saham-block-banner[data-v-23b0d17f]{margin-bottom:16px}.vote-saham-block-alert[data-v-23b0d17f]{align-items:flex-start;border-radius:14px;display:flex;font-size:1.3rem;gap:12px;line-height:1.5;margin-bottom:0}.vote-saham-block-alert .fa[data-v-23b0d17f]{flex-shrink:0;margin-top:3px}.vote-content-column[data-v-23b0d17f],.vote-sidebar-column[data-v-23b0d17f]{margin-bottom:6px}.vote-summary-card[data-v-23b0d17f]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #e2ebf5;border-radius:20px;box-shadow:0 16px 34px rgba(35,64,97,.08);padding:22px 20px;position:static}.vote-section-kicker[data-v-23b0d17f]{color:#2f80ed;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.vote-content-title[data-v-23b0d17f],.vote-page-title[data-v-23b0d17f]{color:#17324d;font-weight:700;margin:0 0 8px}.vote-page-subtitle[data-v-23b0d17f]{color:#5f7388;line-height:1.6;margin-bottom:16px}.vote-page-hint[data-v-23b0d17f]{color:#5f7388;font-size:1.35rem;line-height:1.5;margin:8px 0 0;max-width:520px}.vote-limit-pill[data-v-23b0d17f]{background:#eef5ff;border:1px solid #d7e7ff;border-radius:12px;color:#31506f;line-height:1.6;margin-bottom:18px;padding:12px 14px}.vote-summary-list[data-v-23b0d17f]{margin-bottom:0}.vote-summary-action[data-v-23b0d17f],.vote-summary-item[data-v-23b0d17f]{background:transparent;border:0;border-bottom:1px solid #edf2f7;padding:14px 0}.vote-summary-list .vote-summary-item[data-v-23b0d17f]:last-of-type{border-bottom:1px solid #edf2f7}.vote-position-name[data-v-23b0d17f]{color:#17324d;font-size:1.5rem;font-weight:700;margin-bottom:10px}.vote-selected-list[data-v-23b0d17f]{display:flex;flex-direction:column;gap:10px}.vote-selected-item[data-v-23b0d17f]{align-items:center;background:#fff;border:1px solid #e6edf5;border-radius:12px;color:#30475f;display:flex;gap:10px;padding:10px 12px}.vote-selected-badge[data-v-23b0d17f]{align-items:center;background:#dcecff;border-radius:999px;color:#1e5fbf;display:inline-flex;font-size:1.2rem;font-weight:700;justify-content:center;min-width:48px;padding:5px 10px}.vote-empty-selection[data-v-23b0d17f]{color:#7a8ea3;font-style:italic}.vote-summary-action[data-v-23b0d17f]{border-bottom:0;padding-top:18px}.vote-submit-button[data-v-23b0d17f]{border-radius:12px;box-shadow:0 12px 24px rgba(40,167,69,.24);font-weight:700;letter-spacing:.04em;padding-bottom:12px;padding-top:12px}.vote-content-header[data-v-23b0d17f]{align-items:flex-start;display:flex;gap:18px;justify-content:space-between;margin-bottom:18px}.vote-alert[data-v-23b0d17f]{border-radius:12px;box-shadow:0 10px 24px rgba(255,193,7,.15);margin-bottom:0}.vote-panel[data-v-23b0d17f]{border:0;border-radius:18px;box-shadow:0 16px 34px rgba(35,64,97,.1);margin-bottom:20px;overflow:hidden}.vote-panel-heading[data-v-23b0d17f]{align-items:center;background:linear-gradient(135deg,#1d4e89,#2f80ed);color:#fff!important;display:flex;font-size:1.7rem;font-weight:700;justify-content:space-between;padding:16px 20px}.vote-panel-badge[data-v-23b0d17f]{background:hsla(0,0%,100%,.18);border-radius:999px;font-size:1.2rem;font-weight:600;padding:6px 10px}.vote-panel-body[data-v-23b0d17f]{background:#fff;padding:0}.vote-nominee-cards-wrap[data-v-23b0d17f]{background:#f7fafc;padding:16px 18px 20px}.vote-nominee-card-list[data-v-23b0d17f]{display:flex;flex-direction:column;gap:12px}.vote-nominee-card[data-v-23b0d17f]{align-items:center;background:#fff;border:1px solid #e6edf5;border-radius:16px;cursor:pointer;display:flex;gap:14px;padding:14px 16px;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}.vote-nominee-card[data-v-23b0d17f]:hover{border-color:#b8d4f5;box-shadow:0 8px 22px rgba(47,128,237,.12)}.vote-nominee-card--selected[data-v-23b0d17f]{background:#f5f9ff;border-color:#2f80ed;box-shadow:0 0 0 2px rgba(47,128,237,.28)}.vote-nominee-card__pick[data-v-23b0d17f]{align-items:center;align-self:stretch;display:flex;flex-shrink:0;padding-right:4px}.vote-nominee-card__checkbox[data-v-23b0d17f]{cursor:pointer;height:20px;margin:0;vertical-align:middle;width:20px}.vote-nominee-card__pick .vote-nominee-card__checkbox[data-v-23b0d17f]:disabled{cursor:not-allowed;opacity:.55}.vote-nominee-card__photo[data-v-23b0d17f]{border:2px solid #dbe8ff;border-radius:16px;box-shadow:0 8px 18px rgba(47,128,237,.12);flex-shrink:0;height:72px;margin:0;-o-object-fit:cover;object-fit:cover;width:72px}.vote-nominee-card__body[data-v-23b0d17f]{flex:1;min-width:0;text-align:left}.vote-nominee-card__no[data-v-23b0d17f]{background:#dcecff;border-radius:999px;color:#1e5fbf;display:inline-block;font-size:1.2rem;font-weight:700;margin-bottom:4px;padding:3px 10px}.vote-nominee-card__name[data-v-23b0d17f]{color:#17324d;font-size:1.65rem;font-weight:700;line-height:1.35;margin-bottom:6px;word-break:break-word}.vote-nominee-card__unit[data-v-23b0d17f]{color:#48627e;font-size:1.35rem;line-height:1.45;word-break:break-word}.vote-nominee-card__label[data-v-23b0d17f]{color:#8a9caf;display:block;font-size:1.1rem;font-weight:700;letter-spacing:.04em;margin-bottom:2px;text-transform:uppercase}.vote-nominee-card__chev[data-v-23b0d17f]{color:#b0c4de;flex-shrink:0;font-size:2rem;line-height:1;text-align:center;width:24px}.vote-empty-state[data-v-23b0d17f]{background:#fff;border:1px dashed #cfddec;border-radius:14px;color:#6f8193;font-size:1.4rem;padding:22px 16px;text-align:center}.vote-modal-content[data-v-23b0d17f]{border:0;border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.2);overflow:hidden}.vote-modal-header[data-v-23b0d17f]{background:linear-gradient(135deg,#0d6efd,#2f80ed);color:#fff;padding:18px 22px}.vote-modal-title[data-v-23b0d17f]{font-size:2rem;font-weight:700;margin:4px 0 0}.vote-modal-header .close[data-v-23b0d17f]{color:#fff;opacity:.9;text-shadow:none}.vote-modal-body[data-v-23b0d17f]{background:#f7fbff;padding:22px}.vote-modal-note[data-v-23b0d17f]{color:#17324d;margin-bottom:14px;margin-top:0}.vote-modal-selection-title[data-v-23b0d17f]{color:#17324d;font-size:1.4rem;font-weight:700;margin-bottom:10px}.vote-modal-footer[data-v-23b0d17f]{background:#fff;padding:16px 22px 20px}@media (max-width:991px){.vote-summary-card[data-v-23b0d17f]{position:static;top:auto}.vote-content-header[data-v-23b0d17f]{flex-direction:column}}@media (max-width:767px){.vote-page[data-v-23b0d17f]{margin-top:8px}.vote-panel-heading[data-v-23b0d17f]{align-items:flex-start;flex-direction:column;gap:8px}.vote-nominee-cards-wrap[data-v-23b0d17f]{padding:12px 12px 16px}.vote-nominee-card[data-v-23b0d17f]{gap:12px;padding:12px 14px}.vote-nominee-card__photo[data-v-23b0d17f]{border-radius:14px;height:64px;width:64px}.vote-nominee-card__name[data-v-23b0d17f]{font-size:1.5rem}.vote-nominee-card__chev[data-v-23b0d17f]{display:none}.vote-content-column[data-v-23b0d17f]{padding-bottom:86px}.vote-mobile-actionbar[data-v-23b0d17f]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:hsla(0,0%,100%,.92);border-top:1px solid #e5edf7;bottom:0;box-shadow:0 -10px 24px rgba(35,64,97,.12);left:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));position:fixed;right:0;z-index:1040}.vote-mobile-actionbar__inner[data-v-23b0d17f]{align-items:center;display:flex;gap:12px;justify-content:space-between;margin:0 auto;max-width:960px}.vote-mobile-actionbar__title[data-v-23b0d17f]{color:#17324d;font-weight:800}.vote-mobile-actionbar__hint[data-v-23b0d17f]{color:#5f7388;font-size:12px}.vote-mobile-actionbar__btn[data-v-23b0d17f]{border-radius:999px;box-shadow:0 12px 24px rgba(40,167,69,.24);font-weight:800;letter-spacing:.04em;min-width:140px}}.vote-nominee-modal-backdrop[data-v-23b0d17f]{align-items:center;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:rgba(7,25,48,.72);display:flex;inset:0;justify-content:center;padding:24px 16px;position:fixed;z-index:2500}.vote-nominee-modal-dialog[data-v-23b0d17f]{margin:0;max-width:960px;width:100%}.vote-nominee-modal-content[data-v-23b0d17f]{border:0;border-radius:20px;box-shadow:0 22px 60px rgba(0,0,0,.28);overflow:hidden}.vote-nominee-modal-header[data-v-23b0d17f]{align-items:flex-start;background:linear-gradient(135deg,#0d6efd,#2f80ed);border-bottom:1px solid #e7edf5;color:#fff;display:flex;justify-content:space-between;padding:20px 24px 16px}.vote-nominee-modal-title[data-v-23b0d17f]{color:#fff;font-size:2.2rem;font-weight:700;margin:4px 0 0}.vote-nominee-modal-body[data-v-23b0d17f]{background:#f5f8fc;display:flex;gap:24px;padding:24px}.vote-nominee-photo-section[data-v-23b0d17f]{flex:0 0 300px}.vote-nominee-photo-card[data-v-23b0d17f]{background:#fff;border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 10px 24px rgba(35,64,97,.08);padding:18px}.vote-nominee-viewed-photo[data-v-23b0d17f]{background:#eef3f8;border:0;border-radius:14px;height:320px;margin:0 0 16px;-o-object-fit:contain;object-fit:contain;-o-object-position:center;object-position:center;width:100%}.vote-nominee-photo-meta[data-v-23b0d17f]{text-align:center}.vote-nominee-modal-name[data-v-23b0d17f]{color:#17324d;font-size:2rem;font-weight:700}.vote-nominee-detail-section[data-v-23b0d17f]{flex:1;min-width:0}.vote-nominee-summary-grid[data-v-23b0d17f]{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.vote-nominee-summary-item[data-v-23b0d17f]{background:#fff;border:1px solid #e5ebf3;border-radius:14px;box-shadow:0 8px 22px rgba(35,64,97,.06);display:flex;flex-direction:column;gap:6px;padding:14px 16px}.vote-nominee-summary-label[data-v-23b0d17f]{color:#6f8193;font-size:1.2rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.vote-nominee-summary-value[data-v-23b0d17f]{color:#17324d;font-size:1.6rem;font-weight:600;line-height:1.4}.vote-nominee-section-card[data-v-23b0d17f]{background:#fff;border:1px solid #e5ebf3;border-radius:16px;box-shadow:0 8px 22px rgba(35,64,97,.06);margin-bottom:16px;padding:18px 20px}.vote-nominee-section-title[data-v-23b0d17f]{color:#17324d;font-size:1.5rem;font-weight:700;margin-bottom:12px}.vote-nominee-detail-list[data-v-23b0d17f]{color:#30475f;margin:0;padding-left:20px}.vote-nominee-detail-list li[data-v-23b0d17f]{line-height:1.6;margin-bottom:8px}.vote-nominee-detail-empty[data-v-23b0d17f]{color:#6f8193;margin:0}.vote-nominee-modal-footer[data-v-23b0d17f]{background:#fff;border-top:1px solid #e7edf5;padding:16px 24px 22px}@media (max-width:767px){.vote-nominee-modal-backdrop[data-v-23b0d17f]{align-items:flex-start;overflow-y:auto;padding:16px 10px}.vote-nominee-modal-body[data-v-23b0d17f]{flex-direction:column;padding:18px}.vote-nominee-photo-section[data-v-23b0d17f]{flex:1 1 auto}.vote-nominee-viewed-photo[data-v-23b0d17f]{height:260px}.vote-nominee-summary-grid[data-v-23b0d17f]{grid-template-columns:1fr}}",""]);const i=r},4571:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".zoom-page[data-v-e39c837e]{font-family:Arial,sans-serif;margin-bottom:36px;margin-top:18px}.zoom-shell[data-v-e39c837e]{margin:0 auto;max-width:1040px;padding:0 12px}.zoom-hero-card[data-v-e39c837e]{background:linear-gradient(135deg,#fff,#eef6ff);border:1px solid #e2ebf5;border-radius:22px;box-shadow:0 16px 34px rgba(35,64,97,.08);margin-bottom:22px;padding:26px 28px;text-align:center}.zoom-section-kicker[data-v-e39c837e]{color:#2f80ed;font-size:1.2rem;font-weight:700;letter-spacing:.08em;margin-bottom:8px;text-transform:uppercase}.zoom-title[data-v-e39c837e]{color:#17324d;font-size:3rem;font-weight:800;line-height:1.3;margin:0 0 10px}.zoom-subtitle[data-v-e39c837e]{color:#5f7388;font-size:1.5rem;line-height:1.6;margin:0 auto;max-width:720px}.zoom-main-card[data-v-e39c837e]{background:#fff;border:1px solid #e2ebf5;border-radius:22px;box-shadow:0 16px 34px rgba(35,64,97,.08);padding:26px 28px}.zoom-meeting-badge[data-v-e39c837e]{align-items:center;background:#e8f1ff;border-radius:999px;color:#215db8;display:inline-flex;font-size:1.2rem;font-weight:700;gap:10px;letter-spacing:.04em;margin-bottom:14px;padding:8px 14px}.zoom-content-title[data-v-e39c837e]{color:#17324d;font-size:2.4rem;font-weight:700;margin:0 0 10px}.zoom-content-text[data-v-e39c837e]{color:#5f7388;font-size:1.5rem;line-height:1.7;margin-bottom:18px}.zoom-action-panel[data-v-e39c837e]{align-items:center;background:linear-gradient(180deg,#f8fbff,#eef6ff);border:1px solid #d9e8fb;border-radius:18px;box-shadow:0 12px 28px rgba(35,64,97,.07);display:grid;gap:12px;grid-template-columns:1fr auto;padding:18px;width:100%}.btn-interactive[data-v-e39c837e]{background:linear-gradient(135deg,#0d6efd,#2f80ed);border:none;border-radius:999px;box-shadow:0 12px 24px rgba(13,110,253,.25);color:#fff;cursor:pointer;font-size:16px;font-weight:700;outline:none;padding:14px 26px;transition:background-color .3s ease,transform .2s ease,box-shadow .2s ease;width:100%}.btn-interactive[data-v-e39c837e]:hover{box-shadow:0 16px 28px rgba(13,110,253,.3);transform:scale(1.05)}.btn-interactive[data-v-e39c837e]:active{transform:scale(.98)}.btn-interactive[data-v-e39c837e]:focus{box-shadow:0 0 5px 2px rgba(0,123,255,.5);outline:none}.btn-secondary[data-v-e39c837e]{background:hsla(0,0%,100%,.7);border:1px solid rgba(23,50,77,.16);border-radius:999px;box-shadow:0 10px 22px rgba(35,64,97,.08);color:#17324d;cursor:pointer;font-size:15px;font-weight:800;padding:14px 18px;transition:transform .2s ease,box-shadow .2s ease;white-space:nowrap}.btn-secondary[data-v-e39c837e]:hover{box-shadow:0 14px 26px rgba(35,64,97,.12);transform:translateY(-1px)}.zoom-link-preview[data-v-e39c837e]{align-items:baseline;background:hsla(0,0%,100%,.7);border:1px solid rgba(33,93,184,.16);border-radius:12px;display:flex;gap:10px;grid-column:1/-1;padding:10px 12px}.zoom-link-preview__label[data-v-e39c837e]{color:#215db8;flex-shrink:0;font-size:1.05rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.zoom-link-preview__value[data-v-e39c837e]{color:#17324d;font-weight:700;word-break:break-all}.zoom-link-note[data-v-e39c837e]{color:#5f7388;font-size:1.3rem;grid-column:1/-1;margin-top:12px}@media (max-width:991px){.zoom-action-panel[data-v-e39c837e]{grid-template-columns:1fr}}@media (max-width:767px){.zoom-hero-card[data-v-e39c837e],.zoom-main-card[data-v-e39c837e]{border-radius:16px;padding:18px}.zoom-title[data-v-e39c837e]{font-size:2.35rem}.zoom-content-text[data-v-e39c837e],.zoom-subtitle[data-v-e39c837e]{font-size:1.35rem}.zoom-content-title[data-v-e39c837e]{font-size:2rem}.btn-interactive[data-v-e39c837e]{width:100%}}",""]);const i=r},5576:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".voter-main[data-v-2b321674]{padding-top:112px}.voter-breadcrumb-wrap[data-v-2b321674]{margin:0 16px 8px;padding:0;position:relative;z-index:5}.voter-breadcrumb-wrap .container-fluid[data-v-2b321674]{padding-left:15px;padding-right:15px}.voter-breadcrumb[data-v-2b321674]{background:hsla(0,0%,100%,.92);border:1px solid #e5ebf3;border-radius:14px;box-shadow:0 8px 22px rgba(35,64,97,.1);font-size:1.7rem;line-height:1.45;margin-bottom:16px;padding:14px 20px}.voter-breadcrumb>li[data-v-2b321674]{padding-bottom:2px;padding-top:2px}.voter-breadcrumb>li+li[data-v-2b321674]:before{color:#94a3b8;font-size:1.35rem;font-weight:600;padding:0 12px}.voter-breadcrumb>li>a[data-v-2b321674]{color:#2563eb;font-weight:600}.voter-breadcrumb>li>a[data-v-2b321674]:hover{color:#1d4ed8;text-decoration:underline}.voter-breadcrumb>li.active[data-v-2b321674]{color:#17324d;font-size:1.7rem;font-weight:700}@media (max-width:767px){.voter-main[data-v-2b321674]{padding-top:102px}.voter-breadcrumb-wrap[data-v-2b321674]{margin-left:10px;margin-right:10px}.voter-breadcrumb[data-v-2b321674]{border-radius:12px;font-size:1.4rem;line-height:1.4;padding:12px 16px}.voter-breadcrumb>li.active[data-v-2b321674]{font-size:1.4rem}.voter-breadcrumb>li+li[data-v-2b321674]:before{font-size:1.2rem;padding:0 8px}}",""]);const i=r},4706:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,"body[data-v-4646ddca]{background-color:#f8f9fa;margin:0;padding:0}.bg-gradient[data-v-4646ddca]{background:linear-gradient(180deg,#6c757d,#343a40)}.d-flex[data-v-4646ddca]{display:flex}.justify-content-center[data-v-4646ddca]{justify-content:center}.align-items-center[data-v-4646ddca]{align-items:center}.min-vh-100[data-v-4646ddca]{min-height:100vh}.card[data-v-4646ddca]{background-color:#fff;border:2px solid #007bff;border-radius:1rem}.card-body[data-v-4646ddca]{padding:30px}.logo-img[data-v-4646ddca]{height:auto;max-width:250px}.btn-primary[data-v-4646ddca]{background-color:#5cb85c;border:none;border-radius:30px;font-size:16px;font-weight:600;padding:12px 0}.btn-primary[data-v-4646ddca]:hover{background-color:#4cae4c}.form-control[data-v-4646ddca]{border-radius:30px;font-size:16px;padding:10px 20px;position:relative}.form-control[data-v-4646ddca]::-moz-placeholder{color:#6c757d;left:20px;position:absolute;top:50%;transform:translateY(-50%);-moz-transition:all .3s ease;transition:all .3s ease}.form-control[data-v-4646ddca]::placeholder{color:#6c757d;left:20px;position:absolute;top:50%;transform:translateY(-50%);transition:all .3s ease}.form-control[data-v-4646ddca]:focus::-moz-placeholder{color:red;font-size:12px;left:10px;top:5px;transform:translateY(-50%) translateX(-10px)}.form-control[data-v-4646ddca]:focus::placeholder{color:red;font-size:12px;left:10px;top:5px;transform:translateY(-50%) translateX(-10px)}.form-control[data-v-4646ddca]:focus{border-color:#007bff;box-shadow:0 0 8px rgba(0,123,255,.6)}h4[data-v-4646ddca]{color:#333;font-size:22px;font-weight:600}@media (max-width:576px){.card[data-v-4646ddca]{padding:20px;width:90%}h4[data-v-4646ddca]{font-size:20px}.logo-img[data-v-4646ddca]{max-width:200px}.btn-primary[data-v-4646ddca],.form-control[data-v-4646ddca]{font-size:14px}.btn-primary[data-v-4646ddca]{padding:10px 0}}",""]);const i=r},9340:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".otp-input{border:1px solid rgba(0,0,0,.3);border-radius:4px;font-size:20px;height:40px;margin:0 10px;padding:5px;text-align:center;width:40px}.otp-input.error{border:1px solid red!important}.otp-input::-webkit-inner-spin-button,.otp-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}",""]);const i=r},698:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".app-modal{z-index:2200}.app-modal .modal-dialog{margin-top:110px}.modal-backdrop{z-index:2190!important}.primary{background-color:#337ab7;color:#fff}.primary .modal-body,.primary .modal-footer{background-color:#fff;border-left:1px solid #337ab7;border-right:1px solid #337ab7;color:#000}.primary .modal-footer{border-bottom:1px solid #337ab7;border-radius:5px}",""]);const i=r},4829:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".imgContainer{height:200px;position:relative;width:200px}.file{height:100%;opacity:0;position:absolute;width:100%}.imgUpload{background-color:#fff;border:2px solid #000}.imgText{left:0;position:absolute;text-align:center;top:45%;width:100%}",""]);const i=r},8410:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var a=n(6798),r=n.n(a)()((function(t){return t[1]}));r.push([t.id,".final-dashboard[data-v-5eda9233]{margin-top:12px;padding-bottom:28px}.final-dashboard__container[data-v-5eda9233]{margin-left:auto;margin-right:auto;max-width:1760px;padding-left:20px;padding-right:20px;width:100%}.final-split-row[data-v-5eda9233]{margin-left:-10px;margin-right:-10px}.final-split-col[data-v-5eda9233]{display:flex;flex-direction:column;margin-bottom:20px;padding-left:10px;padding-right:10px}@media (min-width:992px){.final-split-col[data-v-5eda9233]{margin-bottom:0}.final-attendance-shell[data-v-5eda9233],.final-dashboard__shell[data-v-5eda9233]{flex:1;min-height:100%}.final-split-col--attendance .final-attendance__charts--standalone[data-v-5eda9233],.final-split-col--dashboard .final-stats[data-v-5eda9233]{grid-template-columns:1fr}.final-split-col--dashboard .final-chart-wrap[data-v-5eda9233]{height:280px}.final-split-col--dashboard .final-chart-wrap--doughnut[data-v-5eda9233]{height:260px}.final-split-col--attendance .final-attendance__chart-wrap--donut[data-v-5eda9233]{height:200px}}.final-dashboard__shell[data-v-5eda9233]{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #e6edf5;border-radius:18px}.final-attendance-shell[data-v-5eda9233],.final-dashboard__shell[data-v-5eda9233]{box-shadow:0 14px 36px rgba(35,64,97,.08);display:flex;flex-direction:column;padding:22px 22px 26px}.final-attendance-shell[data-v-5eda9233]{background:linear-gradient(180deg,#fff,#f4faf7);border:1px solid #dce8e4;border-radius:18px}.final-attendance-shell__head[data-v-5eda9233]{margin-bottom:8px}.final-attendance-shell__kicker[data-v-5eda9233]{color:#00897b;font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:6px;text-transform:uppercase}.final-attendance-shell__title[data-v-5eda9233]{color:#17324d;font-weight:800;margin:0 0 6px}.final-vote-summary[data-v-5eda9233]{margin-bottom:4px}.final-section-title[data-v-5eda9233]{color:#17324d;font-size:12px;font-weight:900;letter-spacing:.06em;margin-bottom:10px;text-transform:uppercase}.final-header[data-v-5eda9233]{align-items:flex-start;display:flex;gap:16px;justify-content:space-between;margin-bottom:12px}.final-kicker[data-v-5eda9233]{color:#2f80ed;font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:6px;text-transform:uppercase}.final-title[data-v-5eda9233]{color:#17324d;font-weight:800;margin:0 0 6px}.final-subtitle[data-v-5eda9233]{color:#6b7280;font-size:12px}.final-stats[data-v-5eda9233]{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 14px}.final-stat[data-v-5eda9233]{background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #e6edf5;border-radius:16px;box-shadow:0 10px 22px rgba(35,64,97,.06);padding:12px 14px}.final-stat__label[data-v-5eda9233]{color:#6b7280;font-size:12px;font-weight:800;letter-spacing:.06em;margin-bottom:6px;text-transform:uppercase}.final-stat__value[data-v-5eda9233]{color:#17324d;font-size:22px;font-weight:900}.final-stat__value--text[data-v-5eda9233]{font-size:14px;line-height:1.25}.final-stat__hint[data-v-5eda9233]{font-weight:700;margin-top:6px}.final-attendance__meta[data-v-5eda9233],.final-stat__hint[data-v-5eda9233]{color:#6b7280;font-size:12px}.final-attendance__meta-sep[data-v-5eda9233]{margin:0 6px;opacity:.6}.final-attendance__body[data-v-5eda9233]{display:flex;flex:1;flex-direction:column;min-height:0}.final-attendance__charts[data-v-5eda9233]{display:flex;flex-direction:column;gap:14px;margin-bottom:0}.final-attendance__charts--standalone[data-v-5eda9233]{align-items:start;display:grid;gap:20px 24px;grid-template-columns:repeat(2,minmax(0,1fr))}.final-attendance__chart-caption[data-v-5eda9233]{color:#64748b;font-size:11px;font-weight:800;letter-spacing:.04em;margin-bottom:8px;text-transform:uppercase}.final-attendance__chart-wrap[data-v-5eda9233]{position:relative;width:100%}.final-attendance__chart-wrap--donut[data-v-5eda9233]{height:240px}.final-attendance__chart-wrap--bar[data-v-5eda9233]{height:120px}.final-attendance__state[data-v-5eda9233]{color:#374151;font-size:13px;font-weight:600}.final-attendance__state--muted[data-v-5eda9233]{color:#6b7280;font-style:italic;font-weight:500}.final-filters[data-v-5eda9233]{align-items:center;display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px}.final-filters__label[data-v-5eda9233]{color:#6b7280;font-size:12px;font-weight:700;margin-right:4px}.final-chip[data-v-5eda9233]{background:#fff;border:1px solid #d1d5db;border-radius:999px;color:#374151;font-size:12px;font-weight:800;line-height:1;padding:6px 12px}.final-chip[data-v-5eda9233]:hover{background:#f3f4f6}.final-chip.is-active[data-v-5eda9233]{background:#1976d2;border-color:#1976d2;color:#fff}.final-empty[data-v-5eda9233]{color:#6b7280;font-style:italic;margin:24px 0;text-align:center}.final-charts-row[data-v-5eda9233]{margin-bottom:8px}.final-charts-row--split>.col-xs-12+.col-xs-12[data-v-5eda9233]{margin-top:12px}.final-card[data-v-5eda9233]{border:0;border-radius:16px;box-shadow:0 12px 28px rgba(35,64,97,.08);overflow:hidden}.final-card__heading[data-v-5eda9233]{align-items:baseline;background:linear-gradient(135deg,#1d4e89,#2f80ed);border:0!important;color:#fff;display:flex;gap:12px;justify-content:space-between}.final-card__heading--alt[data-v-5eda9233]{background:linear-gradient(135deg,#0d47a1,#1976d2)}.final-card__title[data-v-5eda9233]{font-weight:800}.final-card__meta[data-v-5eda9233]{font-size:12px;opacity:.95}.final-card__body[data-v-5eda9233]{background:#fff}.final-chart-wrap[data-v-5eda9233]{height:320px;padding:4px 0;position:relative}.final-chart-wrap--doughnut[data-v-5eda9233]{height:300px}@media (max-width:991px){.final-header[data-v-5eda9233]{flex-direction:column}.final-attendance__charts--standalone[data-v-5eda9233],.final-stats[data-v-5eda9233]{grid-template-columns:1fr}.final-chart-wrap[data-v-5eda9233],.final-chart-wrap--doughnut[data-v-5eda9233]{height:260px}}@media (max-width:575px){.final-dashboard__container[data-v-5eda9233]{padding-left:12px;padding-right:12px}.final-attendance-shell[data-v-5eda9233],.final-dashboard__shell[data-v-5eda9233]{border-radius:14px;padding:16px 14px 20px}}",""]);const i=r},6798:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,a){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(a)for(var i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);a&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},5908:()=>{},5606:t=>{var e,n,a=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&h())}function h(){if(!c){var t=o(d);c=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||c||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=p,a.addListener=p,a.once=p,a.off=p,a.removeListener=p,a.removeAllListeners=p,a.emit=p,a.prependListener=p,a.prependOnceListener=p,a.listeners=function(t){return[]},a.binding=function(t){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(t){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},5072:(t,e,n)=>{"use strict";var a,r=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},a=[],r=0;r<t.length;r++){var i=t[r],l=e.base?i[0]+e.base:i[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(o[d].references++,o[d].updater(h)):o.push({identifier:u,updater:g(h,e),references:1}),a.push(u)}return a}function c(t){var e=document.createElement("style"),a=t.attributes||{};if(void 0===a.nonce){var r=n.nc;r&&(a.nonce=r)}if(Object.keys(a).forEach((function(t){e.setAttribute(t,a[t])})),"function"==typeof t.insert)t.insert(e);else{var o=i(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function h(t,e,n,a){var r=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(t.styleSheet)t.styleSheet.cssText=d(e,r);else{var i=document.createTextNode(r),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(i,o[e]):t.appendChild(i)}}function f(t,e,n){var a=n.css,r=n.media,i=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=a;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(a))}}var p=null,m=0;function g(t,e){var n,a,r;if(e.singleton){var i=m++;n=p||(p=c(e)),a=h.bind(null,n,i,!1),r=h.bind(null,n,i,!0)}else n=c(e),a=f.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return a(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;a(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var a=0;a<n.length;a++){var r=s(n[a]);o[r].references--}for(var i=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=i}}}},4541:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>gg});var a=n(2284),r=Uint8Array,i=Uint16Array,o=Int32Array,s=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(t,e){for(var n=new i(31),a=0;a<31;++a)n[a]=e+=1<<t[a-1];var r=new o(n[30]);for(a=1;a<30;++a)for(var s=n[a];s<n[a+1];++s)r[s]=s-n[a]<<5|a;return{b:n,r}},d=u(s,2),h=d.b,f=d.r;h[28]=258,f[258]=28;for(var p=u(l,0),m=(p.b,p.r),g=new i(32768),v=0;v<32768;++v){var b=(43690&v)>>1|(21845&v)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,g[v]=((65280&b)>>8|(255&b)<<8)>>1}var _=function(t,e,n){for(var a=t.length,r=0,o=new i(e);r<a;++r)t[r]&&++o[t[r]-1];var s,l=new i(e);for(r=1;r<e;++r)l[r]=l[r-1]+o[r-1]<<1;if(n){s=new i(1<<e);var c=15-e;for(r=0;r<a;++r)if(t[r])for(var u=r<<4|t[r],d=e-t[r],h=l[t[r]-1]++<<d,f=h|(1<<d)-1;h<=f;++h)s[g[h]>>c]=u}else for(s=new i(a),r=0;r<a;++r)t[r]&&(s[r]=g[l[t[r]-1]++]>>15-t[r]);return s},y=new r(288);for(v=0;v<144;++v)y[v]=8;for(v=144;v<256;++v)y[v]=9;for(v=256;v<280;++v)y[v]=7;for(v=280;v<288;++v)y[v]=8;var w=new r(32);for(v=0;v<32;++v)w[v]=5;var x=_(y,9,0),k=_(w,5,0),S=function(t){return(t+7)/8|0},C=function(t,e,n){return(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length),new r(t.subarray(e,n))},A=function(t,e,n){n<<=7&e;var a=e/8|0;t[a]|=n,t[a+1]|=n>>8},E=function(t,e,n){n<<=7&e;var a=e/8|0;t[a]|=n,t[a+1]|=n>>8,t[a+2]|=n>>16},T=function(t,e){for(var n=[],a=0;a<t.length;++a)t[a]&&n.push({s:a,f:t[a]});var o=n.length,s=n.slice();if(!o)return{t:I,l:0};if(1==o){var l=new r(n[0].s+1);return l[n[0].s]=1,{t:l,l:1}}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var c=n[0],u=n[1],d=0,h=1,f=2;for(n[0]={s:-1,f:c.f+u.f,l:c,r:u};h!=o-1;)c=n[n[d].f<n[f].f?d++:f++],u=n[d!=h&&n[d].f<n[f].f?d++:f++],n[h++]={s:-1,f:c.f+u.f,l:c,r:u};var p=s[0].s;for(a=1;a<o;++a)s[a].s>p&&(p=s[a].s);var m=new i(p+1),g=P(n[h-1],m,0);if(g>e){a=0;var v=0,b=g-e,_=1<<b;for(s.sort((function(t,e){return m[e.s]-m[t.s]||t.f-e.f}));a<o;++a){var y=s[a].s;if(!(m[y]>e))break;v+=_-(1<<g-m[y]),m[y]=e}for(v>>=b;v>0;){var w=s[a].s;m[w]<e?v-=1<<e-m[w]++-1:++a}for(;a>=0&&v;--a){var x=s[a].s;m[x]==e&&(--m[x],++v)}g=e}return{t:new r(m),l:g}},P=function(t,e,n){return-1==t.s?Math.max(P(t.l,e,n+1),P(t.r,e,n+1)):e[t.s]=n},N=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new i(++e),a=0,r=t[0],o=1,s=function(t){n[a++]=t},l=1;l<=e;++l)if(t[l]==r&&l!=e)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=t[l]}return{c:n.subarray(0,a),n:e}},L=function(t,e){for(var n=0,a=0;a<e.length;++a)n+=t[a]*e[a];return n},O=function(t,e,n){var a=n.length,r=S(e+2);t[r]=255&a,t[r+1]=a>>8,t[r+2]=255^t[r],t[r+3]=255^t[r+1];for(var i=0;i<a;++i)t[r+i+4]=n[i];return 8*(r+4+a)},M=function(t,e,n,a,r,o,u,d,h,f,p){A(e,p++,n),++r[256];for(var m=T(r,15),g=m.t,v=m.l,b=T(o,15),S=b.t,C=b.l,P=N(g),M=P.c,R=P.n,I=N(S),D=I.c,F=I.n,j=new i(19),B=0;B<M.length;++B)++j[31&M[B]];for(B=0;B<D.length;++B)++j[31&D[B]];for(var z=T(j,7),U=z.t,H=z.l,V=19;V>4&&!U[c[V-1]];--V);var W,q,$,K,G=f+5<<3,Y=L(r,y)+L(o,w)+u,X=L(r,g)+L(o,S)+u+14+3*V+L(j,U)+2*j[16]+3*j[17]+7*j[18];if(h>=0&&G<=Y&&G<=X)return O(e,p,t.subarray(h,h+f));if(A(e,p,1+(X<Y)),p+=2,X<Y){W=_(g,v,0),q=g,$=_(S,C,0),K=S;var J=_(U,H,0);A(e,p,R-257),A(e,p+5,F-1),A(e,p+10,V-4),p+=14;for(B=0;B<V;++B)A(e,p+3*B,U[c[B]]);p+=3*V;for(var Z=[M,D],Q=0;Q<2;++Q){var tt=Z[Q];for(B=0;B<tt.length;++B){var et=31&tt[B];A(e,p,J[et]),p+=U[et],et>15&&(A(e,p,tt[B]>>5&127),p+=tt[B]>>12)}}}else W=x,q=y,$=k,K=w;for(B=0;B<d;++B){var nt=a[B];if(nt>255){E(e,p,W[(et=nt>>18&31)+257]),p+=q[et+257],et>7&&(A(e,p,nt>>23&31),p+=s[et]);var at=31&nt;E(e,p,$[at]),p+=K[at],at>3&&(E(e,p,nt>>5&8191),p+=l[at])}else E(e,p,W[nt]),p+=q[nt]}return E(e,p,W[256]),p+q[256]},R=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),I=new r(0),D=function(t,e,n,a,c,u){var d=u.z||t.length,h=new r(a+d+5*(1+Math.ceil(d/7e3))+c),p=h.subarray(a,h.length-c),g=u.l,v=7&(u.r||0);if(e){v&&(p[0]=u.r>>3);for(var b=R[e-1],_=b>>13,y=8191&b,w=(1<<n)-1,x=u.p||new i(32768),k=u.h||new i(w+1),A=Math.ceil(n/3),E=2*A,T=function(e){return(t[e]^t[e+1]<<A^t[e+2]<<E)&w},P=new o(25e3),N=new i(288),L=new i(32),I=0,D=0,F=u.i||0,j=0,B=u.w||0,z=0;F+2<d;++F){var U=T(F),H=32767&F,V=k[U];if(x[H]=V,k[U]=H,B<=F){var W=d-F;if((I>7e3||j>24576)&&(W>423||!g)){v=M(t,p,0,P,N,L,D,j,z,F-z,v),j=I=D=0,z=F;for(var q=0;q<286;++q)N[q]=0;for(q=0;q<30;++q)L[q]=0}var $=2,K=0,G=y,Y=H-V&32767;if(W>2&&U==T(F-Y))for(var X=Math.min(_,W)-1,J=Math.min(32767,F),Z=Math.min(258,W);Y<=J&&--G&&H!=V;){if(t[F+$]==t[F+$-Y]){for(var Q=0;Q<Z&&t[F+Q]==t[F+Q-Y];++Q);if(Q>$){if($=Q,K=Y,Q>X)break;var tt=Math.min(Y,Q-2),et=0;for(q=0;q<tt;++q){var nt=F-Y+q&32767,at=nt-x[nt]&32767;at>et&&(et=at,V=nt)}}}Y+=(H=V)-(V=x[H])&32767}if(K){P[j++]=268435456|f[$]<<18|m[K];var rt=31&f[$],it=31&m[K];D+=s[rt]+l[it],++N[257+rt],++L[it],B=F+$,++I}else P[j++]=t[F],++N[t[F]]}}for(F=Math.max(F,B);F<d;++F)P[j++]=t[F],++N[t[F]];v=M(t,p,g,P,N,L,D,j,z,F-z,v),g||(u.r=7&v|p[v/8|0]<<3,v-=7,u.h=k,u.p=x,u.i=F,u.w=B)}else{for(F=u.w||0;F<d+g;F+=65535){var ot=F+65535;ot>=d&&(p[v/8|0]=g,ot=d),v=O(p,v+1,t.subarray(F,ot))}u.i=d}return C(h,0,a+S(v)+c)},F=function(){var t=1,e=0;return{p:function(n){for(var a=t,r=e,i=0|n.length,o=0;o!=i;){for(var s=Math.min(o+2655,i);o<s;++o)r+=a+=n[o];a=(65535&a)+15*(a>>16),r=(65535&r)+15*(r>>16)}t=a,e=r},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(e%=65521))<<8|e>>8}}},j=function(t,e,n,a,i){if(!i&&(i={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),s=new r(o.length+t.length);s.set(o),s.set(t,o.length),t=s,i.w=o.length}return D(t,null==e.level?6:e.level,null==e.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,n,a,i)},B=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},z=function(t,e){var n=e.level,a=0==n?0:n<6?1:9==n?3:2;if(t[0]=120,t[1]=a<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var r=F();r.p(e.dictionary),B(t,2,r.d())}};function U(t,e){e||(e={});var n=F();n.p(t);var a=j(t,e,e.dictionary?6:2,4);return z(a,e),B(a,a.length-4,n.d()),a}var H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(I,{stream:!0}),1}catch(Fi){}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);n<e;n++)a[n]=t[n];return a}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,r,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(s.push(a.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return V(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(t,e):void 0}}(t,e)||function(){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 q(t,e="utf8"){return new TextDecoder(e).decode(t)}const K=new TextEncoder;const G=(()=>{const t=new Uint8Array(4);return!((new Uint32Array(t.buffer)[0]=1)&t[0])})(),Y={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class X{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=8192,e={}){let n=!1;"number"==typeof t?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const a=e.offset?e.offset>>>0:0,r=t.byteLength-a;let i=a;(ArrayBuffer.isView(t)||t instanceof X)&&(t.byteLength!==t.buffer.byteLength&&(i=t.byteOffset+a),t=t.buffer),this.lastWrittenByte=n?r:0,this.buffer=t,this.length=r,this.byteLength=r,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,r),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(void 0===t)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const e=2*(this.offset+t),n=new Uint8Array(e);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=e,this.byteLength=e,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const n=Y[e].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,r=this.buffer.slice(a,a+n);if(this.littleEndian===G&&"uint8"!==e&&"int8"!==e){const t=new Uint8Array(this.buffer.slice(a,a+n));t.reverse();const r=new Y[e](t.buffer);return this.offset+=n,r.reverse(),r}const i=new Y[e](r);return this.offset+=n,i}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let n=0;n<t;n++)e+=this.readChar();return e}readUtf8(t=1){return q(this.readBytes(t))}decodeText(t=1,e="utf8"){return q(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(function(t){return K.encode(t)}(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function J(t){let e=t.length;for(;--e>=0;)t[e]=0}const Z=256,Q=286,tt=30,et=15,nt=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),at=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),rt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),it=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ot=new Array(576);J(ot);const st=new Array(60);J(st);const lt=new Array(512);J(lt);const ct=new Array(256);J(ct);const ut=new Array(29);J(ut);const dt=new Array(tt);function ht(t,e,n,a,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=a,this.max_length=r,this.has_stree=t&&t.length}let ft,pt,mt;function gt(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}J(dt);const vt=t=>t<256?lt[t]:lt[256+(t>>>7)],bt=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},_t=(t,e,n)=>{t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,bt(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)},yt=(t,e,n)=>{_t(t,n[2*e],n[2*e+1])},wt=(t,e)=>{let n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1},xt=(t,e,n)=>{const a=new Array(16);let r,i,o=0;for(r=1;r<=et;r++)o=o+n[r-1]<<1,a[r]=o;for(i=0;i<=e;i++){let e=t[2*i+1];0!==e&&(t[2*i]=wt(a[e]++,e))}},kt=t=>{let e;for(e=0;e<Q;e++)t.dyn_ltree[2*e]=0;for(e=0;e<tt;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},St=t=>{t.bi_valid>8?bt(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Ct=(t,e,n,a)=>{const r=2*e,i=2*n;return t[r]<t[i]||t[r]===t[i]&&a[e]<=a[n]},At=(t,e,n)=>{const a=t.heap[n];let r=n<<1;for(;r<=t.heap_len&&(r<t.heap_len&&Ct(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!Ct(e,a,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=a},Et=(t,e,n)=>{let a,r,i,o,s=0;if(0!==t.sym_next)do{a=255&t.pending_buf[t.sym_buf+s++],a+=(255&t.pending_buf[t.sym_buf+s++])<<8,r=t.pending_buf[t.sym_buf+s++],0===a?yt(t,r,e):(i=ct[r],yt(t,i+Z+1,e),o=nt[i],0!==o&&(r-=ut[i],_t(t,r,o)),a--,i=vt(a),yt(t,i,n),o=at[i],0!==o&&(a-=dt[i],_t(t,a,o)))}while(s<t.sym_next);yt(t,256,e)},Tt=(t,e)=>{const n=e.dyn_tree,a=e.stat_desc.static_tree,r=e.stat_desc.has_stree,i=e.stat_desc.elems;let o,s,l,c=-1;for(t.heap_len=0,t.heap_max=573,o=0;o<i;o++)0!==n[2*o]?(t.heap[++t.heap_len]=c=o,t.depth[o]=0):n[2*o+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=c<2?++c:0,n[2*l]=1,t.depth[l]=0,t.opt_len--,r&&(t.static_len-=a[2*l+1]);for(e.max_code=c,o=t.heap_len>>1;o>=1;o--)At(t,n,o);l=i;do{o=t.heap[1],t.heap[1]=t.heap[t.heap_len--],At(t,n,1),s=t.heap[1],t.heap[--t.heap_max]=o,t.heap[--t.heap_max]=s,n[2*l]=n[2*o]+n[2*s],t.depth[l]=(t.depth[o]>=t.depth[s]?t.depth[o]:t.depth[s])+1,n[2*o+1]=n[2*s+1]=l,t.heap[1]=l++,At(t,n,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const n=e.dyn_tree,a=e.max_code,r=e.stat_desc.static_tree,i=e.stat_desc.has_stree,o=e.stat_desc.extra_bits,s=e.stat_desc.extra_base,l=e.stat_desc.max_length;let c,u,d,h,f,p,m=0;for(h=0;h<=et;h++)t.bl_count[h]=0;for(n[2*t.heap[t.heap_max]+1]=0,c=t.heap_max+1;c<573;c++)u=t.heap[c],h=n[2*n[2*u+1]+1]+1,h>l&&(h=l,m++),n[2*u+1]=h,u>a||(t.bl_count[h]++,f=0,u>=s&&(f=o[u-s]),p=n[2*u],t.opt_len+=p*(h+f),i&&(t.static_len+=p*(r[2*u+1]+f)));if(0!==m){do{for(h=l-1;0===t.bl_count[h];)h--;t.bl_count[h]--,t.bl_count[h+1]+=2,t.bl_count[l]--,m-=2}while(m>0);for(h=l;0!==h;h--)for(u=t.bl_count[h];0!==u;)d=t.heap[--c],d>a||(n[2*d+1]!==h&&(t.opt_len+=(h-n[2*d+1])*n[2*d],n[2*d+1]=h),u--)}})(t,e),xt(n,c,t.bl_count)},Pt=(t,e,n)=>{let a,r,i=-1,o=e[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),e[2*(n+1)+1]=65535,a=0;a<=n;a++)r=o,o=e[2*(a+1)+1],++s<l&&r===o||(s<c?t.bl_tree[2*r]+=s:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,i=r,0===o?(l=138,c=3):r===o?(l=6,c=3):(l=7,c=4))},Nt=(t,e,n)=>{let a,r,i=-1,o=e[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),a=0;a<=n;a++)if(r=o,o=e[2*(a+1)+1],!(++s<l&&r===o)){if(s<c)do{yt(t,r,t.bl_tree)}while(0!=--s);else 0!==r?(r!==i&&(yt(t,r,t.bl_tree),s--),yt(t,16,t.bl_tree),_t(t,s-3,2)):s<=10?(yt(t,17,t.bl_tree),_t(t,s-3,3)):(yt(t,18,t.bl_tree),_t(t,s-11,7));s=0,i=r,0===o?(l=138,c=3):r===o?(l=6,c=3):(l=7,c=4)}};let Lt=!1;const Ot=(t,e,n,a)=>{_t(t,0+(a?1:0),3),St(t),bt(t,n),bt(t,~n),n&&t.pending_buf.set(t.window.subarray(e,e+n),t.pending),t.pending+=n};var Mt=t=>{Lt||((()=>{let t,e,n,a,r;const i=new Array(16);for(n=0,a=0;a<28;a++)for(ut[a]=n,t=0;t<1<<nt[a];t++)ct[n++]=a;for(ct[n-1]=a,r=0,a=0;a<16;a++)for(dt[a]=r,t=0;t<1<<at[a];t++)lt[r++]=a;for(r>>=7;a<tt;a++)for(dt[a]=r<<7,t=0;t<1<<at[a]-7;t++)lt[256+r++]=a;for(e=0;e<=et;e++)i[e]=0;for(t=0;t<=143;)ot[2*t+1]=8,t++,i[8]++;for(;t<=255;)ot[2*t+1]=9,t++,i[9]++;for(;t<=279;)ot[2*t+1]=7,t++,i[7]++;for(;t<=287;)ot[2*t+1]=8,t++,i[8]++;for(xt(ot,287,i),t=0;t<tt;t++)st[2*t+1]=5,st[2*t]=wt(t,5);ft=new ht(ot,nt,257,Q,et),pt=new ht(st,at,0,tt,et),mt=new ht(new Array(0),rt,0,19,7)})(),Lt=!0),t.l_desc=new gt(t.dyn_ltree,ft),t.d_desc=new gt(t.dyn_dtree,pt),t.bl_desc=new gt(t.bl_tree,mt),t.bi_buf=0,t.bi_valid=0,kt(t)},Rt=(t,e,n,a)=>{let r,i,o=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<Z;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),Tt(t,t.l_desc),Tt(t,t.d_desc),o=(t=>{let e;for(Pt(t,t.dyn_ltree,t.l_desc.max_code),Pt(t,t.dyn_dtree,t.d_desc.max_code),Tt(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*it[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),r=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=r&&(r=i)):r=i=n+5,n+4<=r&&-1!==e?Ot(t,e,n,a):4===t.strategy||i===r?(_t(t,2+(a?1:0),3),Et(t,ot,st)):(_t(t,4+(a?1:0),3),((t,e,n,a)=>{let r;for(_t(t,e-257,5),_t(t,n-1,5),_t(t,a-4,4),r=0;r<a;r++)_t(t,t.bl_tree[2*it[r]+1],3);Nt(t,t.dyn_ltree,e-1),Nt(t,t.dyn_dtree,n-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),Et(t,t.dyn_ltree,t.dyn_dtree)),kt(t),a&&St(t)},It=(t,e,n)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=n,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(ct[n]+Z+1)]++,t.dyn_dtree[2*vt(e)]++),t.sym_next===t.sym_end),Dt=t=>{_t(t,2,3),yt(t,256,ot),(t=>{16===t.bi_valid?(bt(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)},Ft={_tr_init:Mt,_tr_stored_block:Ot,_tr_flush_block:Rt,_tr_tally:It,_tr_align:Dt};var jt=(t,e,n,a)=>{let r=65535&t,i=t>>>16&65535,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do{r=r+e[a++]|0,i=i+r|0}while(--o);r%=65521,i%=65521}return r|i<<16};const Bt=new Uint32Array((()=>{let t,e=[];for(var n=0;n<256;n++){t=n;for(var a=0;a<8;a++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e})());var zt=(t,e,n,a)=>{const r=Bt,i=a+n;t^=-1;for(let n=a;n<i;n++)t=t>>>8^r[255&(t^e[n])];return~t},Ut={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ht={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Vt,_tr_stored_block:Wt,_tr_flush_block:qt,_tr_tally:$t,_tr_align:Kt}=Ft,{Z_NO_FLUSH:Gt,Z_PARTIAL_FLUSH:Yt,Z_FULL_FLUSH:Xt,Z_FINISH:Jt,Z_BLOCK:Zt,Z_OK:Qt,Z_STREAM_END:te,Z_STREAM_ERROR:ee,Z_DATA_ERROR:ne,Z_BUF_ERROR:ae,Z_DEFAULT_COMPRESSION:re,Z_FILTERED:ie,Z_HUFFMAN_ONLY:oe,Z_RLE:se,Z_FIXED:le,Z_DEFAULT_STRATEGY:ce,Z_UNKNOWN:ue,Z_DEFLATED:de}=Ht,he=258,fe=262,pe=42,me=113,ge=666,ve=(t,e)=>(t.msg=Ut[e],e),be=t=>2*t-(t>4?9:0),_e=t=>{let e=t.length;for(;--e>=0;)t[e]=0},ye=t=>{let e,n,a,r=t.w_size;e=t.hash_size,a=e;do{n=t.head[--a],t.head[a]=n>=r?n-r:0}while(--e);e=r,a=e;do{n=t.prev[--a],t.prev[a]=n>=r?n-r:0}while(--e)};let we=(t,e,n)=>(e<<t.hash_shift^n)&t.hash_mask;const xe=t=>{const e=t.state;let n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+n),t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))},ke=(t,e)=>{qt(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,xe(t.strm)},Se=(t,e)=>{t.pending_buf[t.pending++]=e},Ce=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Ae=(t,e,n,a)=>{let r=t.avail_in;return r>a&&(r=a),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),n),1===t.state.wrap?t.adler=jt(t.adler,e,r,n):2===t.state.wrap&&(t.adler=zt(t.adler,e,r,n)),t.next_in+=r,t.total_in+=r,r)},Ee=(t,e)=>{let n,a,r=t.max_chain_length,i=t.strstart,o=t.prev_length,s=t.nice_match;const l=t.strstart>t.w_size-fe?t.strstart-(t.w_size-fe):0,c=t.window,u=t.w_mask,d=t.prev,h=t.strstart+he;let f=c[i+o-1],p=c[i+o];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(n=e,c[n+o]===p&&c[n+o-1]===f&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<h);if(a=he-(h-i),i=h-he,a>o){if(t.match_start=e,o=a,a>=s)break;f=c[i+o-1],p=c[i+o]}}}while((e=d[e&u])>l&&0!=--r);return o<=t.lookahead?o:t.lookahead},Te=t=>{const e=t.w_size;let n,a,r;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-fe)&&(t.window.set(t.window.subarray(e,e+e-a),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),ye(t),a+=e),0===t.strm.avail_in)break;if(n=Ae(t.strm,t.window,t.strstart+t.lookahead,a),t.lookahead+=n,t.lookahead+t.insert>=3)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=we(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=we(t,t.ins_h,t.window[r+3-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<fe&&0!==t.strm.avail_in)},Pe=(t,e)=>{let n,a,r,i=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,o=0,s=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_out<r)break;if(r=t.strm.avail_out-r,a=t.strstart-t.block_start,n>a+t.strm.avail_in&&(n=a+t.strm.avail_in),n>r&&(n=r),n<i&&(0===n&&e!==Jt||e===Gt||n!==a+t.strm.avail_in))break;o=e===Jt&&n===a+t.strm.avail_in?1:0,Wt(t,0,0,o),t.pending_buf[t.pending-4]=n,t.pending_buf[t.pending-3]=n>>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,xe(t.strm),a&&(a>n&&(a=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,n-=a),n&&(Ae(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===o);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),o?4:e!==Gt&&e!==Jt&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(r=t.window_size-t.strstart,t.strm.avail_in>r&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(Ae(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water<t.strstart&&(t.high_water=t.strstart),r=t.bi_valid+42>>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,i=r>t.w_size?t.w_size:r,a=t.strstart-t.block_start,(a>=i||(a||e===Jt)&&e!==Gt&&0===t.strm.avail_in&&a<=r)&&(n=a>r?r:a,o=e===Jt&&0===t.strm.avail_in&&n===a?1:0,Wt(t,t.block_start,n,o),t.block_start+=n,xe(t.strm)),o?3:1)},Ne=(t,e)=>{let n,a;for(;;){if(t.lookahead<fe){if(Te(t),t.lookahead<fe&&e===Gt)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-fe&&(t.match_length=Ee(t,n)),t.match_length>=3)if(a=$t(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=we(t,t.ins_h,t.window[t.strstart+1]);else a=$t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(a&&(ke(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2},Le=(t,e)=>{let n,a,r;for(;;){if(t.lookahead<fe){if(Te(t),t.lookahead<fe&&e===Gt)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-fe&&(t.match_length=Ee(t,n),t.match_length<=5&&(t.strategy===ie||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,a=$t(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=we(t,t.ins_h,t.window[t.strstart+3-1]),n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,a&&(ke(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(a=$t(t,0,t.window[t.strstart-1]),a&&ke(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(a=$t(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2};function Oe(t,e,n,a,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=a,this.func=r}const Me=[new Oe(0,0,0,0,Pe),new Oe(4,4,8,4,Ne),new Oe(4,5,16,8,Ne),new Oe(4,6,32,32,Ne),new Oe(4,4,16,16,Le),new Oe(8,16,32,32,Le),new Oe(8,16,128,128,Le),new Oe(8,32,128,256,Le),new Oe(32,128,258,1024,Le),new Oe(32,258,258,4096,Le)];function Re(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=de,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),_e(this.dyn_ltree),_e(this.dyn_dtree),_e(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),_e(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),_e(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ie=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.status!==pe&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&e.status!==me&&e.status!==ge?1:0},De=t=>{if(Ie(t))return ve(t,ee);t.total_in=t.total_out=0,t.data_type=ue;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?pe:me,t.adler=2===e.wrap?0:1,e.last_flush=-2,Vt(e),Qt},Fe=t=>{const e=De(t);return e===Qt&&(t=>{t.window_size=2*t.w_size,_e(t.head),t.max_lazy_match=Me[t.level].max_lazy,t.good_match=Me[t.level].good_length,t.nice_match=Me[t.level].nice_length,t.max_chain_length=Me[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0})(t.state),e},je=(t,e,n,a,r,i)=>{if(!t)return ee;let o=1;if(e===re&&(e=6),a<0?(o=0,a=-a):a>15&&(o=2,a-=16),r<1||r>9||n!==de||a<8||a>15||e<0||e>9||i<0||i>le||8===a&&1!==o)return ve(t,ee);8===a&&(a=9);const s=new Re;return t.state=s,s.strm=t,s.status=pe,s.wrap=o,s.gzhead=null,s.w_bits=a,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=e,s.strategy=i,s.method=n,Fe(t)};var Be=(t,e)=>{if(Ie(t)||e>Zt||e<0)return t?ve(t,ee):ee;const n=t.state;if(!t.output||0!==t.avail_in&&!t.input||n.status===ge&&e!==Jt)return ve(t,0===t.avail_out?ae:ee);const a=n.last_flush;if(n.last_flush=e,0!==n.pending){if(xe(t),0===t.avail_out)return n.last_flush=-1,Qt}else if(0===t.avail_in&&be(e)<=be(a)&&e!==Jt)return ve(t,ae);if(n.status===ge&&0!==t.avail_in)return ve(t,ae);if(n.status===pe&&0===n.wrap&&(n.status=me),n.status===pe){let e=de+(n.w_bits-8<<4)<<8,a=-1;if(a=n.strategy>=oe||n.level<2?0:n.level<6?1:6===n.level?2:3,e|=a<<6,0!==n.strstart&&(e|=32),e+=31-e%31,Ce(n,e),0!==n.strstart&&(Ce(n,t.adler>>>16),Ce(n,65535&t.adler)),t.adler=1,n.status=me,xe(t),0!==n.pending)return n.last_flush=-1,Qt}if(57===n.status)if(t.adler=0,Se(n,31),Se(n,139),Se(n,8),n.gzhead)Se(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Se(n,255&n.gzhead.time),Se(n,n.gzhead.time>>8&255),Se(n,n.gzhead.time>>16&255),Se(n,n.gzhead.time>>24&255),Se(n,9===n.level?2:n.strategy>=oe||n.level<2?4:0),Se(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Se(n,255&n.gzhead.extra.length),Se(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=zt(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Se(n,0),Se(n,0),Se(n,0),Se(n,0),Se(n,0),Se(n,9===n.level?2:n.strategy>=oe||n.level<2?4:0),Se(n,3),n.status=me,xe(t),0!==n.pending)return n.last_flush=-1,Qt;if(69===n.status){if(n.gzhead.extra){let e=n.pending,a=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+a>n.pending_buf_size;){let r=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>e&&(t.adler=zt(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex+=r,xe(t),0!==n.pending)return n.last_flush=-1,Qt;e=0,a-=r}let r=new Uint8Array(n.gzhead.extra);n.pending_buf.set(r.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending+=a,n.gzhead.hcrc&&n.pending>e&&(t.adler=zt(t.adler,n.pending_buf,n.pending-e,e)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let e,a=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(t.adler=zt(t.adler,n.pending_buf,n.pending-a,a)),xe(t),0!==n.pending)return n.last_flush=-1,Qt;a=0}e=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Se(n,e)}while(0!==e);n.gzhead.hcrc&&n.pending>a&&(t.adler=zt(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let e,a=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>a&&(t.adler=zt(t.adler,n.pending_buf,n.pending-a,a)),xe(t),0!==n.pending)return n.last_flush=-1,Qt;a=0}e=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Se(n,e)}while(0!==e);n.gzhead.hcrc&&n.pending>a&&(t.adler=zt(t.adler,n.pending_buf,n.pending-a,a))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(xe(t),0!==n.pending))return n.last_flush=-1,Qt;Se(n,255&t.adler),Se(n,t.adler>>8&255),t.adler=0}if(n.status=me,xe(t),0!==n.pending)return n.last_flush=-1,Qt}if(0!==t.avail_in||0!==n.lookahead||e!==Gt&&n.status!==ge){let a=0===n.level?Pe(n,e):n.strategy===oe?((t,e)=>{let n;for(;;){if(0===t.lookahead&&(Te(t),0===t.lookahead)){if(e===Gt)return 1;break}if(t.match_length=0,n=$t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(ke(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2})(n,e):n.strategy===se?((t,e)=>{let n,a,r,i;const o=t.window;for(;;){if(t.lookahead<=he){if(Te(t),t.lookahead<=he&&e===Gt)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=t.strstart-1,a=o[r],a===o[++r]&&a===o[++r]&&a===o[++r])){i=t.strstart+he;do{}while(a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&a===o[++r]&&r<i);t.match_length=he-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=$t(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=$t(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(ke(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===Jt?(ke(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ke(t,!1),0===t.strm.avail_out)?1:2})(n,e):Me[n.level].func(n,e);if(3!==a&&4!==a||(n.status=ge),1===a||3===a)return 0===t.avail_out&&(n.last_flush=-1),Qt;if(2===a&&(e===Yt?Kt(n):e!==Zt&&(Wt(n,0,0,!1),e===Xt&&(_e(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),xe(t),0===t.avail_out))return n.last_flush=-1,Qt}return e!==Jt?Qt:n.wrap<=0?te:(2===n.wrap?(Se(n,255&t.adler),Se(n,t.adler>>8&255),Se(n,t.adler>>16&255),Se(n,t.adler>>24&255),Se(n,255&t.total_in),Se(n,t.total_in>>8&255),Se(n,t.total_in>>16&255),Se(n,t.total_in>>24&255)):(Ce(n,t.adler>>>16),Ce(n,65535&t.adler)),xe(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?Qt:te)},ze=(t,e)=>{let n=e.length;if(Ie(t))return ee;const a=t.state,r=a.wrap;if(2===r||1===r&&a.status!==pe||a.lookahead)return ee;if(1===r&&(t.adler=jt(t.adler,e,n,0)),a.wrap=0,n>=a.w_size){0===r&&(_e(a.head),a.strstart=0,a.block_start=0,a.insert=0);let t=new Uint8Array(a.w_size);t.set(e.subarray(n-a.w_size,n),0),e=t,n=a.w_size}const i=t.avail_in,o=t.next_in,s=t.input;for(t.avail_in=n,t.next_in=0,t.input=e,Te(a);a.lookahead>=3;){let t=a.strstart,e=a.lookahead-2;do{a.ins_h=we(a,a.ins_h,a.window[t+3-1]),a.prev[t&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=t,t++}while(--e);a.strstart=t,a.lookahead=2,Te(a)}return a.strstart+=a.lookahead,a.block_start=a.strstart,a.insert=a.lookahead,a.lookahead=0,a.match_length=a.prev_length=2,a.match_available=0,t.next_in=o,t.input=s,t.avail_in=i,a.wrap=r,Qt},Ue={deflateInit:(t,e)=>je(t,e,de,15,8,ce),deflateInit2:je,deflateReset:Fe,deflateResetKeep:De,deflateSetHeader:(t,e)=>Ie(t)||2!==t.state.wrap?ee:(t.state.gzhead=e,Qt),deflate:Be,deflateEnd:t=>{if(Ie(t))return ee;const e=t.state.status;return t.state=null,e===me?ve(t,ne):Qt},deflateSetDictionary:ze,deflateInfo:"pako deflate (from Nodeca project)"};const He=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Ve={assign:function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const e in n)He(n,e)&&(t[e]=n[e])}}return t},flattenChunks:t=>{let e=0;for(let n=0,a=t.length;n<a;n++)e+=t[n].length;const n=new Uint8Array(e);for(let e=0,a=0,r=t.length;e<r;e++){let r=t[e];n.set(r,a),a+=r.length}return n}};let We=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){We=!1}const qe=new Uint8Array(256);for(let t=0;t<256;t++)qe[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;qe[254]=qe[254]=1;var $e={string2buf:t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,n,a,r,i,o=t.length,s=0;for(r=0;r<o;r++)n=t.charCodeAt(r),55296==(64512&n)&&r+1<o&&(a=t.charCodeAt(r+1),56320==(64512&a)&&(n=65536+(n-55296<<10)+(a-56320),r++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),i=0,r=0;i<s;r++)n=t.charCodeAt(r),55296==(64512&n)&&r+1<o&&(a=t.charCodeAt(r+1),56320==(64512&a)&&(n=65536+(n-55296<<10)+(a-56320),r++)),n<128?e[i++]=n:n<2048?(e[i++]=192|n>>>6,e[i++]=128|63&n):n<65536?(e[i++]=224|n>>>12,e[i++]=128|n>>>6&63,e[i++]=128|63&n):(e[i++]=240|n>>>18,e[i++]=128|n>>>12&63,e[i++]=128|n>>>6&63,e[i++]=128|63&n);return e},buf2string:(t,e)=>{const n=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let a,r;const i=new Array(2*n);for(r=0,a=0;a<n;){let e=t[a++];if(e<128){i[r++]=e;continue}let o=qe[e];if(o>4)i[r++]=65533,a+=o-1;else{for(e&=2===o?31:3===o?15:7;o>1&&a<n;)e=e<<6|63&t[a++],o--;o>1?i[r++]=65533:e<65536?i[r++]=e:(e-=65536,i[r++]=55296|e>>10&1023,i[r++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&We)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let n="";for(let a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n})(i,r)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let n=e-1;for(;n>=0&&128==(192&t[n]);)n--;return n<0||0===n?e:n+qe[t[n]]>e?n:e}};var Ke=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ge=Object.prototype.toString,{Z_NO_FLUSH:Ye,Z_SYNC_FLUSH:Xe,Z_FULL_FLUSH:Je,Z_FINISH:Ze,Z_OK:Qe,Z_STREAM_END:tn,Z_DEFAULT_COMPRESSION:en,Z_DEFAULT_STRATEGY:nn,Z_DEFLATED:an}=Ht;function rn(t){this.options=Ve.assign({level:en,method:an,chunkSize:16384,windowBits:15,memLevel:8,strategy:nn},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ke,this.strm.avail_out=0;let n=Ue.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==Qe)throw new Error(Ut[n]);if(e.header&&Ue.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?$e.string2buf(e.dictionary):"[object ArrayBuffer]"===Ge.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,n=Ue.deflateSetDictionary(this.strm,t),n!==Qe)throw new Error(Ut[n]);this._dict_set=!0}}function on(t,e){const n=new rn(e);if(n.push(t,!0),n.err)throw n.msg||Ut[n.err];return n.result}rn.prototype.push=function(t,e){const n=this.strm,a=this.options.chunkSize;let r,i;if(this.ended)return!1;for(i=e===~~e?e:!0===e?Ze:Ye,"string"==typeof t?n.input=$e.string2buf(t):"[object ArrayBuffer]"===Ge.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),(i===Xe||i===Je)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(r=Ue.deflate(n,i),r===tn)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),r=Ue.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Qe;if(0!==n.avail_out){if(i>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},rn.prototype.onData=function(t){this.chunks.push(t)},rn.prototype.onEnd=function(t){t===Qe&&(this.result=Ve.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var sn=function(t,e){return(e=e||{}).raw=!0,on(t,e)},ln=function(t,e){return(e=e||{}).gzip=!0,on(t,e)},cn={Deflate:rn,deflate:on,deflateRaw:sn,gzip:ln,constants:Ht};const un=16209;var dn=function(t,e){let n,a,r,i,o,s,l,c,u,d,h,f,p,m,g,v,b,_,y,w,x,k,S,C;const A=t.state;n=t.next_in,S=t.input,a=n+(t.avail_in-5),r=t.next_out,C=t.output,i=r-(e-t.avail_out),o=r+(t.avail_out-257),s=A.dmax,l=A.wsize,c=A.whave,u=A.wnext,d=A.window,h=A.hold,f=A.bits,p=A.lencode,m=A.distcode,g=(1<<A.lenbits)-1,v=(1<<A.distbits)-1;t:do{f<15&&(h+=S[n++]<<f,f+=8,h+=S[n++]<<f,f+=8),b=p[h&g];e:for(;;){if(_=b>>>24,h>>>=_,f-=_,_=b>>>16&255,0===_)C[r++]=65535&b;else{if(!(16&_)){if(64&_){if(32&_){A.mode=16191;break t}t.msg="invalid literal/length code",A.mode=un;break t}b=p[(65535&b)+(h&(1<<_)-1)];continue e}for(y=65535&b,_&=15,_&&(f<_&&(h+=S[n++]<<f,f+=8),y+=h&(1<<_)-1,h>>>=_,f-=_),f<15&&(h+=S[n++]<<f,f+=8,h+=S[n++]<<f,f+=8),b=m[h&v];;){if(_=b>>>24,h>>>=_,f-=_,_=b>>>16&255,16&_){if(w=65535&b,_&=15,f<_&&(h+=S[n++]<<f,f+=8,f<_&&(h+=S[n++]<<f,f+=8)),w+=h&(1<<_)-1,w>s){t.msg="invalid distance too far back",A.mode=un;break t}if(h>>>=_,f-=_,_=r-i,w>_){if(_=w-_,_>c&&A.sane){t.msg="invalid distance too far back",A.mode=un;break t}if(x=0,k=d,0===u){if(x+=l-_,_<y){y-=_;do{C[r++]=d[x++]}while(--_);x=r-w,k=C}}else if(u<_){if(x+=l+u-_,_-=u,_<y){y-=_;do{C[r++]=d[x++]}while(--_);if(x=0,u<y){_=u,y-=_;do{C[r++]=d[x++]}while(--_);x=r-w,k=C}}}else if(x+=u-_,_<y){y-=_;do{C[r++]=d[x++]}while(--_);x=r-w,k=C}for(;y>2;)C[r++]=k[x++],C[r++]=k[x++],C[r++]=k[x++],y-=3;y&&(C[r++]=k[x++],y>1&&(C[r++]=k[x++]))}else{x=r-w;do{C[r++]=C[x++],C[r++]=C[x++],C[r++]=C[x++],y-=3}while(y>2);y&&(C[r++]=C[x++],y>1&&(C[r++]=C[x++]))}break}if(64&_){t.msg="invalid distance code",A.mode=un;break t}b=m[(65535&b)+(h&(1<<_)-1)]}}break}}while(n<a&&r<o);y=f>>3,n-=y,f-=y<<3,h&=(1<<f)-1,t.next_in=n,t.next_out=r,t.avail_in=n<a?a-n+5:5-(n-a),t.avail_out=r<o?o-r+257:257-(r-o),A.hold=h,A.bits=f};const hn=15,fn=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),pn=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),mn=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),gn=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var vn=(t,e,n,a,r,i,o,s)=>{const l=s.bits;let c,u,d,h,f,p,m=0,g=0,v=0,b=0,_=0,y=0,w=0,x=0,k=0,S=0,C=null;const A=new Uint16Array(16),E=new Uint16Array(16);let T,P,N,L=null;for(m=0;m<=hn;m++)A[m]=0;for(g=0;g<a;g++)A[e[n+g]]++;for(_=l,b=hn;b>=1&&0===A[b];b--);if(_>b&&(_=b),0===b)return r[i++]=20971520,r[i++]=20971520,s.bits=1,0;for(v=1;v<b&&0===A[v];v++);for(_<v&&(_=v),x=1,m=1;m<=hn;m++)if(x<<=1,x-=A[m],x<0)return-1;if(x>0&&(0===t||1!==b))return-1;for(E[1]=0,m=1;m<hn;m++)E[m+1]=E[m]+A[m];for(g=0;g<a;g++)0!==e[n+g]&&(o[E[e[n+g]]++]=g);if(0===t?(C=L=o,p=20):1===t?(C=fn,L=pn,p=257):(C=mn,L=gn,p=0),S=0,g=0,m=v,f=i,y=_,w=0,d=-1,k=1<<_,h=k-1,1===t&&k>852||2===t&&k>592)return 1;for(;;){T=m-w,o[g]+1<p?(P=0,N=o[g]):o[g]>=p?(P=L[o[g]-p],N=C[o[g]-p]):(P=96,N=0),c=1<<m-w,u=1<<y,v=u;do{u-=c,r[f+(S>>w)+u]=T<<24|P<<16|N}while(0!==u);for(c=1<<m-1;S&c;)c>>=1;if(0!==c?(S&=c-1,S+=c):S=0,g++,0==--A[m]){if(m===b)break;m=e[n+o[g]]}if(m>_&&(S&h)!==d){for(0===w&&(w=_),f+=v,y=m-w,x=1<<y;y+w<b&&(x-=A[y+w],!(x<=0));)y++,x<<=1;if(k+=1<<y,1===t&&k>852||2===t&&k>592)return 1;d=S&h,r[d]=_<<24|y<<16|f-i}}return 0!==S&&(r[f+S]=m-w<<24|64<<16),s.bits=_,0};const{Z_FINISH:bn,Z_BLOCK:_n,Z_TREES:yn,Z_OK:wn,Z_STREAM_END:xn,Z_NEED_DICT:kn,Z_STREAM_ERROR:Sn,Z_DATA_ERROR:Cn,Z_MEM_ERROR:An,Z_BUF_ERROR:En,Z_DEFLATED:Tn}=Ht,Pn=16180,Nn=16190,Ln=16191,On=16192,Mn=16194,Rn=16199,In=16200,Dn=16206,Fn=16209,jn=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function Bn(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const zn=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<Pn||e.mode>16211?1:0},Un=t=>{if(zn(t))return Sn;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=Pn,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,wn},Hn=t=>{if(zn(t))return Sn;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Un(t)},Vn=(t,e)=>{let n;if(zn(t))return Sn;const a=t.state;return e<0?(n=0,e=-e):(n=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Sn:(null!==a.window&&a.wbits!==e&&(a.window=null),a.wrap=n,a.wbits=e,Hn(t))},Wn=(t,e)=>{if(!t)return Sn;const n=new Bn;t.state=n,n.strm=t,n.window=null,n.mode=Pn;const a=Vn(t,e);return a!==wn&&(t.state=null),a};let qn,$n,Kn=!0;const Gn=t=>{if(Kn){qn=new Int32Array(512),$n=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(vn(1,t.lens,0,288,qn,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;vn(2,t.lens,0,32,$n,0,t.work,{bits:5}),Kn=!1}t.lencode=qn,t.lenbits=9,t.distcode=$n,t.distbits=5},Yn=(t,e,n,a)=>{let r;const i=t.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),a>=i.wsize?(i.window.set(e.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>a&&(r=a),i.window.set(e.subarray(n-a,n-a+r),i.wnext),(a-=r)?(i.window.set(e.subarray(n-a,n),0),i.wnext=a,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0};var Xn=(t,e)=>{let n,a,r,i,o,s,l,c,u,d,h,f,p,m,g,v,b,_,y,w,x,k,S=0;const C=new Uint8Array(4);let A,E;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(zn(t)||!t.output||!t.input&&0!==t.avail_in)return Sn;n=t.state,n.mode===Ln&&(n.mode=On),o=t.next_out,r=t.output,l=t.avail_out,i=t.next_in,a=t.input,s=t.avail_in,c=n.hold,u=n.bits,d=s,h=l,k=wn;t:for(;;)switch(n.mode){case Pn:if(0===n.wrap){n.mode=On;break}for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(2&n.wrap&&35615===c){0===n.wbits&&(n.wbits=15),n.check=0,C[0]=255&c,C[1]=c>>>8&255,n.check=zt(n.check,C,2,0),c=0,u=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=Fn;break}if((15&c)!==Tn){t.msg="unknown compression method",n.mode=Fn;break}if(c>>>=4,u-=4,x=8+(15&c),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){t.msg="invalid window size",n.mode=Fn;break}n.dmax=1<<n.wbits,n.flags=0,t.adler=n.check=1,n.mode=512&c?16189:Ln,c=0,u=0;break;case 16181:for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==Tn){t.msg="unknown compression method",n.mode=Fn;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=Fn;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=zt(n.check,C,2,0)),c=0,u=0,n.mode=16182;case 16182:for(;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,n.check=zt(n.check,C,4,0)),c=0,u=0,n.mode=16183;case 16183:for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=zt(n.check,C,2,0)),c=0,u=0,n.mode=16184;case 16184:if(1024&n.flags){for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&4&n.wrap&&(C[0]=255&c,C[1]=c>>>8&255,n.check=zt(n.check,C,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(f=n.length,f>s&&(f=s),f&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(a.subarray(i,i+f),x)),512&n.flags&&4&n.wrap&&(n.check=zt(n.check,a,f,i)),s-=f,i+=f,n.length-=f),n.length))break t;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break t;f=0;do{x=a[i+f++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&4&n.wrap&&(n.check=zt(n.check,a,f,i)),s-=f,i+=f,x)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break t;f=0;do{x=a[i+f++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&4&n.wrap&&(n.check=zt(n.check,a,f,i)),s-=f,i+=f,x)break t}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;u<16;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(4&n.wrap&&c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=Fn;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=Ln;break;case 16189:for(;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}t.adler=n.check=jn(c),c=0,u=0,n.mode=Nn;case Nn:if(0===n.havedict)return t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,kn;t.adler=n.check=1,n.mode=Ln;case Ln:if(e===_n||e===yn)break t;case On:if(n.last){c>>>=7&u,u-=7&u,n.mode=Dn;break}for(;u<3;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=16193;break;case 1:if(Gn(n),n.mode=Rn,e===yn){c>>>=2,u-=2;break t}break;case 2:n.mode=16196;break;case 3:t.msg="invalid block type",n.mode=Fn}c>>>=2,u-=2;break;case 16193:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=Fn;break}if(n.length=65535&c,c=0,u=0,n.mode=Mn,e===yn)break t;case Mn:n.mode=16195;case 16195:if(f=n.length,f){if(f>s&&(f=s),f>l&&(f=l),0===f)break t;r.set(a.subarray(i,i+f),o),s-=f,i+=f,l-=f,o+=f,n.length-=f;break}n.mode=Ln;break;case 16196:for(;u<14;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Fn;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.lens[T[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},k=vn(0,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,k){t.msg="invalid code lengths set",n.mode=Fn;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;S=n.lencode[c&(1<<n.lenbits)-1],g=S>>>24,v=S>>>16&255,b=65535&S,!(g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(b<16)c>>>=g,u-=g,n.lens[n.have++]=b;else{if(16===b){for(E=g+2;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){t.msg="invalid bit length repeat",n.mode=Fn;break}x=n.lens[n.have-1],f=3+(3&c),c>>>=2,u-=2}else if(17===b){for(E=g+3;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=g,u-=g,x=0,f=3+(7&c),c>>>=3,u-=3}else{for(E=g+7;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=g,u-=g,x=0,f=11+(127&c),c>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Fn;break}for(;f--;)n.lens[n.have++]=x}}if(n.mode===Fn)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Fn;break}if(n.lenbits=9,A={bits:n.lenbits},k=vn(1,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,k){t.msg="invalid literal/lengths set",n.mode=Fn;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},k=vn(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,k){t.msg="invalid distances set",n.mode=Fn;break}if(n.mode=Rn,e===yn)break t;case Rn:n.mode=In;case In:if(s>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,dn(t,h),o=t.next_out,r=t.output,l=t.avail_out,i=t.next_in,a=t.input,s=t.avail_in,c=n.hold,u=n.bits,n.mode===Ln&&(n.back=-1);break}for(n.back=0;S=n.lencode[c&(1<<n.lenbits)-1],g=S>>>24,v=S>>>16&255,b=65535&S,!(g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(v&&!(240&v)){for(_=g,y=v,w=b;S=n.lencode[w+((c&(1<<_+y)-1)>>_)],g=S>>>24,v=S>>>16&255,b=65535&S,!(_+g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=_,u-=_,n.back+=_}if(c>>>=g,u-=g,n.back+=g,n.length=b,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=Ln;break}if(64&v){t.msg="invalid literal/length code",n.mode=Fn;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(E=n.extra;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;S=n.distcode[c&(1<<n.distbits)-1],g=S>>>24,v=S>>>16&255,b=65535&S,!(g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(!(240&v)){for(_=g,y=v,w=b;S=n.distcode[w+((c&(1<<_+y)-1)>>_)],g=S>>>24,v=S>>>16&255,b=65535&S,!(_+g<=u);){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}c>>>=_,u-=_,n.back+=_}if(c>>>=g,u-=g,n.back+=g,64&v){t.msg="invalid distance code",n.mode=Fn;break}n.offset=b,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(E=n.extra;u<E;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Fn;break}n.mode=16204;case 16204:if(0===l)break t;if(f=h-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Fn;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),m=n.window}else m=r,p=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{r[o++]=m[p++]}while(--f);0===n.length&&(n.mode=In);break;case 16205:if(0===l)break t;r[o++]=n.length,l--,n.mode=In;break;case Dn:if(n.wrap){for(;u<32;){if(0===s)break t;s--,c|=a[i++]<<u,u+=8}if(h-=l,t.total_out+=h,n.total+=h,4&n.wrap&&h&&(t.adler=n.check=n.flags?zt(n.check,r,h,o-h):jt(n.check,r,h,o-h)),h=l,4&n.wrap&&(n.flags?c:jn(c))!==n.check){t.msg="incorrect data check",n.mode=Fn;break}c=0,u=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break t;s--,c+=a[i++]<<u,u+=8}if(4&n.wrap&&c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=Fn;break}c=0,u=0}n.mode=16208;case 16208:k=xn;break t;case Fn:k=Cn;break t;case 16210:return An;default:return Sn}return t.next_out=o,t.avail_out=l,t.next_in=i,t.avail_in=s,n.hold=c,n.bits=u,(n.wsize||h!==t.avail_out&&n.mode<Fn&&(n.mode<Dn||e!==bn))&&Yn(t,t.output,t.next_out,h-t.avail_out),d-=t.avail_in,h-=t.avail_out,t.total_in+=d,t.total_out+=h,n.total+=h,4&n.wrap&&h&&(t.adler=n.check=n.flags?zt(n.check,r,h,t.next_out-h):jt(n.check,r,h,t.next_out-h)),t.data_type=n.bits+(n.last?64:0)+(n.mode===Ln?128:0)+(n.mode===Rn||n.mode===Mn?256:0),(0===d&&0===h||e===bn)&&k===wn&&(k=En),k},Jn={inflateReset:Hn,inflateReset2:Vn,inflateResetKeep:Un,inflateInit:t=>Wn(t,15),inflateInit2:Wn,inflate:Xn,inflateEnd:t=>{if(zn(t))return Sn;let e=t.state;return e.window&&(e.window=null),t.state=null,wn},inflateGetHeader:(t,e)=>{if(zn(t))return Sn;const n=t.state;return 2&n.wrap?(n.head=e,e.done=!1,wn):Sn},inflateSetDictionary:(t,e)=>{const n=e.length;let a,r,i;return zn(t)?Sn:(a=t.state,0!==a.wrap&&a.mode!==Nn?Sn:a.mode===Nn&&(r=1,r=jt(r,e,n,0),r!==a.check)?Cn:(i=Yn(t,e,n,n),i?(a.mode=16210,An):(a.havedict=1,wn)))},inflateInfo:"pako inflate (from Nodeca project)"};var Zn=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Qn=Object.prototype.toString,{Z_NO_FLUSH:ta,Z_FINISH:ea,Z_OK:na,Z_STREAM_END:aa,Z_NEED_DICT:ra,Z_STREAM_ERROR:ia,Z_DATA_ERROR:oa,Z_MEM_ERROR:sa}=Ht;function la(t){this.options=Ve.assign({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ke,this.strm.avail_out=0;let n=Jn.inflateInit2(this.strm,e.windowBits);if(n!==na)throw new Error(Ut[n]);if(this.header=new Zn,Jn.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=$e.string2buf(e.dictionary):"[object ArrayBuffer]"===Qn.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=Jn.inflateSetDictionary(this.strm,e.dictionary),n!==na)))throw new Error(Ut[n])}function ca(t,e){const n=new la(e);if(n.push(t),n.err)throw n.msg||Ut[n.err];return n.result}la.prototype.push=function(t,e){const n=this.strm,a=this.options.chunkSize,r=this.options.dictionary;let i,o,s;if(this.ended)return!1;for(o=e===~~e?e:!0===e?ea:ta,"[object ArrayBuffer]"===Qn.call(t)?n.input=new Uint8Array(t):n.input=t,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),i=Jn.inflate(n,o),i===ra&&r&&(i=Jn.inflateSetDictionary(n,r),i===na?i=Jn.inflate(n,o):i===oa&&(i=ra));n.avail_in>0&&i===aa&&n.state.wrap>0&&0!==t[n.next_in];)Jn.inflateReset(n),i=Jn.inflate(n,o);switch(i){case ia:case oa:case ra:case sa:return this.onEnd(i),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||i===aa))if("string"===this.options.to){let t=$e.utf8border(n.output,n.next_out),e=n.next_out-t,r=$e.buf2string(n.output,t);n.next_out=e,n.avail_out=a-e,e&&n.output.set(n.output.subarray(t,t+e),0),this.onData(r)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(i!==na||0!==s){if(i===aa)return i=Jn.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},la.prototype.onData=function(t){this.chunks.push(t)},la.prototype.onEnd=function(t){t===na&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ve.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ua=function(t,e){return(e=e||{}).raw=!0,ca(t,e)},da={Inflate:la,inflate:ca,inflateRaw:ua,ungzip:ca,constants:Ht};const{Deflate:ha,deflate:fa,deflateRaw:pa,gzip:ma}=cn,{Inflate:ga,inflate:va,inflateRaw:ba,ungzip:_a}=da;var ya=ga,wa=va;const xa=[];for(let t=0;t<256;t++){let e=t;for(let t=0;t<8;t++)1&e?e=3988292384^e>>>1:e>>>=1;xa[t]=e}const ka=4294967295;function Sa(t,e){return(function(t,e,n){let a=t;for(let t=0;t<n;t++)a=xa[255&(a^e[t])]^a>>>8;return a}(ka,t,e)^ka)>>>0}function Ca(t,e,n){const a=t.readUint32(),r=Sa(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(r!==a)throw new Error(`CRC mismatch for chunk ${n}. Expected ${a}, found ${r}`)}function Aa(t,e,n){for(let a=0;a<n;a++)e[a]=t[a]}function Ea(t,e,n,a){let r=0;for(;r<a;r++)e[r]=t[r];for(;r<n;r++)e[r]=t[r]+e[r-a]&255}function Ta(t,e,n,a){let r=0;if(0===n.length)for(;r<a;r++)e[r]=t[r];else for(;r<a;r++)e[r]=t[r]+n[r]&255}function Pa(t,e,n,a,r){let i=0;if(0===n.length){for(;i<r;i++)e[i]=t[i];for(;i<a;i++)e[i]=t[i]+(e[i-r]>>1)&255}else{for(;i<r;i++)e[i]=t[i]+(n[i]>>1)&255;for(;i<a;i++)e[i]=t[i]+(e[i-r]+n[i]>>1)&255}}function Na(t,e,n,a,r){let i=0;if(0===n.length){for(;i<r;i++)e[i]=t[i];for(;i<a;i++)e[i]=t[i]+e[i-r]&255}else{for(;i<r;i++)e[i]=t[i]+n[i]&255;for(;i<a;i++)e[i]=t[i]+La(e[i-r],n[i],n[i-r])&255}}function La(t,e,n){const a=t+e-n,r=Math.abs(a-t),i=Math.abs(a-e),o=Math.abs(a-n);return r<=i&&r<=o?t:i<=o?e:n}function Oa(t,e,n,a,r,i){switch(t){case 0:Aa(e,n,r);break;case 1:Ea(e,n,r,i);break;case 2:Ta(e,n,a,r);break;case 3:Pa(e,n,a,r,i);break;case 4:Na(e,n,a,r,i);break;default:throw new Error(`Unsupported filter: ${t}`)}}const Ma=new Uint16Array([255]),Ra=255===new Uint8Array(Ma.buffer)[0];const Ia=new Uint16Array([255]),Da=255===new Uint8Array(Ia.buffer)[0],Fa=new Uint8Array(0);function ja(t){const{data:e,width:n,height:a,channels:r,depth:i}=t,o=Math.ceil(i/8)*r,s=Math.ceil(i/8*r*n),l=new Uint8Array(a*s);let c,u,d=Fa,h=0;for(let t=0;t<a;t++){switch(c=e.subarray(h+1,h+1+s),u=l.subarray(t*s,(t+1)*s),e[h]){case 0:Aa(c,u,s);break;case 1:Ea(c,u,s,o);break;case 2:Ta(c,u,d,s);break;case 3:Pa(c,u,d,s,o);break;case 4:Na(c,u,d,s,o);break;default:throw new Error(`Unsupported filter: ${e[h]}`)}d=u,h+=s+1}if(16===i){const t=new Uint16Array(l.buffer);if(Da)for(let e=0;e<t.length;e++)t[e]=(255&(f=t[e]))<<8|f>>8&255;return t}return l;var f}const Ba=Uint8Array.of(137,80,78,71,13,10,26,10);function za(t){if(!function(t){if(t.length<Ba.length)return!1;for(let e=0;e<Ba.length;e++)if(t[e]!==Ba[e])return!1;return!0}(t.readBytes(Ba.length)))throw new Error("wrong PNG signature")}const Ua="tEXt",Ha=0,Va=new TextDecoder("latin1");function Wa(t){if($a(t),0===t.length||t.length>79)throw new Error("keyword length must be between 1 and 79")}const qa=/^[\u0000-\u00FF]*$/;function $a(t){if(!qa.test(t))throw new Error("invalid latin1 text")}function Ka(t,e,n){const a=Ga(e);t[a]=function(t,e){return Va.decode(t.readBytes(e))}(e,n-a.length-1)}function Ga(t){for(t.mark();t.readByte()!==Ha;);const e=t.offset;t.reset();const n=Va.decode(t.readBytes(e-t.offset-1));return t.skip(1),Wa(n),n}const Ya=-1,Xa=0,Ja=2,Za=3,Qa=4,tr=6,er=-1,nr=0,ar=-1,rr=0,ir=-1,or=0,sr=1,lr=0,cr=1,ur=2,dr=0,hr=1;class fr extends X{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,e={}){super(t);const{checkCrc:n=!1}=e;this._checkCrc=n,this._inflator=new ya,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=er,this._filterMethod=ar,this._interlaceMethod=ir,this._colorType=Ya,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(za(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeChunk(t,e)}return this.decodeImage(),this._png}decodeApng(){for(za(this);!this._end;){const t=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(t,e)}return this.decodeApngImage(),this._apng}decodeChunk(t,e){const n=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case Ua:Ka(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t)}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Ca(this,t+4,e):this.skip(4)}decodeApngChunk(t,e){const n=this.offset;switch("fdAT"!==e&&"IDAT"!==e&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,e),this.offset=n+t}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Ca(this,t+4,e):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=function(t){if(1!==t&&2!==t&&4!==t&&8!==t&&16!==t)throw new Error(`invalid bit depth: ${t}`);return t}(this.readUint8());const e=this.readUint8();let n;switch(this._colorType=e,e){case Xa:n=1;break;case Ja:n=3;break;case Za:n=1;break;case Qa:n=2;break;case tr:n=4;break;default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==nr)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const e=t/3;this._hasPalette=!0;const n=[];this._palette=n;for(let t=0;t<e;t++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const e=t,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let e=t,n=this.offset+this.byteOffset;if(n+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,n,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case Xa:case Ja:if(t%2!=0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let e=0;e<t/2;e++)this._transparency[e]=this.readUint16();break;case Za:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let e=0;for(;e<t;e++){const t=this.readByte();this._palette[e].push(t)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const e=Ga(this),n=this.readUint8();if(n!==nr)throw new Error(`Unsupported iCCP compression method: ${n}`);const a=this.readBytes(t-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:wa(a)}}decodepHYs(){const t=this.readUint32(),e=this.readUint32(),n=this.readByte();this._png.resolution={x:t,y:e,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const e={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:8===this._apng.depth?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(t);if(n){if(n.data=ja({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),0===t||0===n.xOffset&&0===n.yOffset&&n.width===this._png.width&&n.height===this._png.height)e.data=n.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(n,a,e),this.addFrameDataToCanvas(e,n)}this._apng.frames.push(e)}}return this._apng}disposeFrame(t,e,n){switch(t.disposeOp){case lr:break;case cr:for(let e=0;e<this._png.height;e++)for(let a=0;a<this._png.width;a++){const r=(e*t.width+a)*this._png.channels;for(let t=0;t<this._png.channels;t++)n.data[r+t]=0}break;case ur:n.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,e){const n=1<<this._png.depth,a=(t,n)=>({index:((t+e.yOffset)*this._png.width+e.xOffset+n)*this._png.channels,frameIndex:(t*e.width+n)*this._png.channels});switch(e.blendOp){case dr:for(let n=0;n<e.height;n++)for(let r=0;r<e.width;r++){const{index:i,frameIndex:o}=a(n,r);for(let n=0;n<this._png.channels;n++)t.data[i+n]=e.data[o+n]}break;case hr:for(let r=0;r<e.height;r++)for(let i=0;i<e.width;i++){const{index:o,frameIndex:s}=a(r,i);for(let a=0;a<this._png.channels;a++){const r=e.data[s+this._png.channels-1]/n,i=a%(this._png.channels-1)==0?1:e.data[s+a],l=Math.floor(r*i+(1-r)*t.data[o+a]);t.data[o+a]+=l}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==rr)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===or)this._png.data=ja({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else{if(this._interlaceMethod!==sr)throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._png.data=function(t){const{data:e,width:n,height:a,channels:r,depth:i}=t,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(i/8)*r,l=new Uint8Array(a*n*s);let c=0;for(let t=0;t<7;t++){const r=o[t],i=Math.ceil((n-r.x)/r.xStep),u=Math.ceil((a-r.y)/r.yStep);if(i<=0||u<=0)continue;const d=i*s,h=new Uint8Array(d);for(let t=0;t<u;t++){const o=e[c++],u=e.subarray(c,c+d);c+=d;const f=new Uint8Array(d);Oa(o,u,f,h,d,s),h.set(f);for(let e=0;e<i;e++){const i=r.x+e*r.xStep,o=r.y+t*r.yStep;if(!(i>=n||o>=a))for(let t=0;t<s;t++)l[(o*n+i)*s+t]=f[e*s+t]}}}if(16===i){const t=new Uint16Array(l.buffer);if(Ra)for(let e=0;e<t.length;e++)t[e]=(255&(u=t[e]))<<8|u>>8&255;return t}return l;var u}({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,e=this._frames.at(-1);e?e.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:lr,blendOp:dr,data:t}),this._inflator=new ya,this._writingDataChunks=!1}}var pr;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"}(pr||(pr={}));var mr=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function gr(){mr.console&&"function"==typeof mr.console.log&&mr.console.log.apply(mr.console,arguments)}var vr={log:gr,warn:function(t){mr.console&&("function"==typeof mr.console.warn?mr.console.warn.apply(mr.console,arguments):gr.call(null,arguments))},error:function(t){mr.console&&("function"==typeof mr.console.error?mr.console.error.apply(mr.console,arguments):gr(t))}};function br(t,e,n){var a=new XMLHttpRequest;a.open("GET",t),a.responseType="blob",a.onload=function(){wr(a.response,e,n)},a.onerror=function(){vr.error("could not download file")},a.send()}function _r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function yr(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var wr=mr.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,a.A)(window))||window!==mr?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var a=mr.URL||mr.webkitURL,r=document.createElement("a");e=e||t.name||"download",r.download=e,r.rel="noopener","string"==typeof t?(r.href=t,r.origin!==location.origin?_r(r.href)?br(t,e,n):yr(r,r.target="_blank"):yr(r)):(r.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(r.href)}),4e4),setTimeout((function(){yr(r)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(_r(t))br(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){yr(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,a.A)(e)&&(vr.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return br(t,e,n);var i="application/octet-stream"===t.type,o=/constructor/i.test(mr.HTMLElement)||mr.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,a.A)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var c=mr.URL||mr.webkitURL,u=c.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout((function(){c.revokeObjectURL(u)}),4e4)}});function xr(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],a=0;a<n.length;a++){var r=n[a].re,i=n[a].process,o=r.exec(t);o&&(e=i(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}var kr=mr.atob.bind(mr),Sr=mr.btoa.bind(mr);function Cr(t,e){var n=t[0],a=t[1],r=t[2],i=t[3];n=Er(n,a,r,i,e[0],7,-680876936),i=Er(i,n,a,r,e[1],12,-389564586),r=Er(r,i,n,a,e[2],17,606105819),a=Er(a,r,i,n,e[3],22,-1044525330),n=Er(n,a,r,i,e[4],7,-176418897),i=Er(i,n,a,r,e[5],12,1200080426),r=Er(r,i,n,a,e[6],17,-1473231341),a=Er(a,r,i,n,e[7],22,-45705983),n=Er(n,a,r,i,e[8],7,1770035416),i=Er(i,n,a,r,e[9],12,-1958414417),r=Er(r,i,n,a,e[10],17,-42063),a=Er(a,r,i,n,e[11],22,-1990404162),n=Er(n,a,r,i,e[12],7,1804603682),i=Er(i,n,a,r,e[13],12,-40341101),r=Er(r,i,n,a,e[14],17,-1502002290),n=Tr(n,a=Er(a,r,i,n,e[15],22,1236535329),r,i,e[1],5,-165796510),i=Tr(i,n,a,r,e[6],9,-1069501632),r=Tr(r,i,n,a,e[11],14,643717713),a=Tr(a,r,i,n,e[0],20,-373897302),n=Tr(n,a,r,i,e[5],5,-701558691),i=Tr(i,n,a,r,e[10],9,38016083),r=Tr(r,i,n,a,e[15],14,-660478335),a=Tr(a,r,i,n,e[4],20,-405537848),n=Tr(n,a,r,i,e[9],5,568446438),i=Tr(i,n,a,r,e[14],9,-1019803690),r=Tr(r,i,n,a,e[3],14,-187363961),a=Tr(a,r,i,n,e[8],20,1163531501),n=Tr(n,a,r,i,e[13],5,-1444681467),i=Tr(i,n,a,r,e[2],9,-51403784),r=Tr(r,i,n,a,e[7],14,1735328473),n=Pr(n,a=Tr(a,r,i,n,e[12],20,-1926607734),r,i,e[5],4,-378558),i=Pr(i,n,a,r,e[8],11,-2022574463),r=Pr(r,i,n,a,e[11],16,1839030562),a=Pr(a,r,i,n,e[14],23,-35309556),n=Pr(n,a,r,i,e[1],4,-1530992060),i=Pr(i,n,a,r,e[4],11,1272893353),r=Pr(r,i,n,a,e[7],16,-155497632),a=Pr(a,r,i,n,e[10],23,-1094730640),n=Pr(n,a,r,i,e[13],4,681279174),i=Pr(i,n,a,r,e[0],11,-358537222),r=Pr(r,i,n,a,e[3],16,-722521979),a=Pr(a,r,i,n,e[6],23,76029189),n=Pr(n,a,r,i,e[9],4,-640364487),i=Pr(i,n,a,r,e[12],11,-421815835),r=Pr(r,i,n,a,e[15],16,530742520),n=Nr(n,a=Pr(a,r,i,n,e[2],23,-995338651),r,i,e[0],6,-198630844),i=Nr(i,n,a,r,e[7],10,1126891415),r=Nr(r,i,n,a,e[14],15,-1416354905),a=Nr(a,r,i,n,e[5],21,-57434055),n=Nr(n,a,r,i,e[12],6,1700485571),i=Nr(i,n,a,r,e[3],10,-1894986606),r=Nr(r,i,n,a,e[10],15,-1051523),a=Nr(a,r,i,n,e[1],21,-2054922799),n=Nr(n,a,r,i,e[8],6,1873313359),i=Nr(i,n,a,r,e[15],10,-30611744),r=Nr(r,i,n,a,e[6],15,-1560198380),a=Nr(a,r,i,n,e[13],21,1309151649),n=Nr(n,a,r,i,e[4],6,-145523070),i=Nr(i,n,a,r,e[11],10,-1120210379),r=Nr(r,i,n,a,e[2],15,718787259),a=Nr(a,r,i,n,e[9],21,-343485551),t[0]=jr(n,t[0]),t[1]=jr(a,t[1]),t[2]=jr(r,t[2]),t[3]=jr(i,t[3])}function Ar(t,e,n,a,r,i){return e=jr(jr(e,t),jr(a,i)),jr(e<<r|e>>>32-r,n)}function Er(t,e,n,a,r,i,o){return Ar(e&n|~e&a,t,e,r,i,o)}function Tr(t,e,n,a,r,i,o){return Ar(e&a|n&~a,t,e,r,i,o)}function Pr(t,e,n,a,r,i,o){return Ar(e^n^a,t,e,r,i,o)}function Nr(t,e,n,a,r,i,o){return Ar(n^(e|~a),t,e,r,i,o)}function Lr(t){var e,n=t.length,a=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)Cr(a,Or(t.substring(e-64,e)));t=t.substring(e-64);var r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)r[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(Cr(a,r),e=0;e<16;e++)r[e]=0;return r[14]=8*n,Cr(a,r),a}function Or(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}var Mr="0123456789abcdef".split("");function Rr(t){for(var e="",n=0;n<4;n++)e+=Mr[t>>8*n+4&15]+Mr[t>>8*n&15];return e}function Ir(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Dr(t){return Lr(t).map(Ir).join("")}var Fr="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=Rr(t[e]);return t.join("")}(Lr("hello"));function jr(t,e){if(Fr){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function Br(t,e){var n,a,r,i;if(t!==n){for(var o=(r=t,i=1+(256/t.length|0),new Array(i+1).join(r)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}n=t,a=s}else s=a;var d=e.length,h=0,f=0,p="";for(l=0;l<d;l++)f=(f+(u=s[h=(h+1)%256]))%256,s[h]=s[f],s[f]=u,o=s[(s[h]+s[f])%256],p+=String.fromCharCode(e.charCodeAt(l)^o);return p}var zr={print:4,modify:8,copy:16,"annot-forms":32};function Ur(t,e,n,a){this.v=1,this.r=2;var r=192;t.forEach((function(t){if(void 0!==zr.perm)throw new Error("Invalid permission: "+t);r+=zr[t]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^r)),this.encryptionKey=Dr(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Br(this.encryptionKey,this.padding)}function Hr(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,a=0;a<n;a++){var r=t.charCodeAt(a);e+=r<33||35===r||37===r||40===r||41===r||47===r||60===r||62===r||91===r||93===r||123===r||125===r||r>126?"#"+("0"+r.toString(16)).slice(-2):t[a]}return e}function Vr(t){if("object"!==(0,a.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,a){if(a=a||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof a)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var r=Math.random().toString(35);return e[t][r]=[n,!!a],r},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),r=[];for(var i in e[n]){var o=e[n][i];try{o[0].apply(t,a)}catch(t){mr.console&&vr.error("jsPDF PubSub Error",t.message,t)}o[1]&&r.push(i)}r.length&&r.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Wr(t){if(!(this instanceof Wr))return new Wr(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function qr(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function $r(t,e,n,a,r){if(!(this instanceof $r))return new $r(t,e,n,a,r);this.type="axial"===t?2:3,this.coords=e,this.colors=n,qr.call(this,a,r)}function Kr(t,e,n,a,r){if(!(this instanceof Kr))return new Kr(t,e,n,a,r);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,qr.call(this,a,r)}function Gr(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],o=arguments[3],s=[],l=1,c=16,u="S",d=null;"object"===(0,a.A)(t=t||{})&&(n=t.orientation,r=t.unit||r,i=t.format||i,o=t.compress||t.compressPdf||o,null!==(d=t.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(c=t.floatPrecision),u=t.defaultPathOperation||"S"),s=t.filters||(!0===o?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var h=t.putOnlyUsedFonts||!1,f={},p={internal:{},__private__:{}};p.__private__.PubSub=Vr;var m="1.3",g=p.__private__.getPdfVersion=function(){return m};p.__private__.setPdfVersion=function(t){m=t};var v={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return v};var b=p.__private__.getPageFormat=function(t){return v[t]};i=i||"a4";var _="compat",y="advanced",w=_;function x(){this.saveGraphicsState(),Z(new Ot(ft,0,0,-ft,0,gn()*ft).toString()+" cm"),this.setFontSize(this.getFontSize()/ft),u="n",w=y}function k(){this.restoreGraphicsState(),u="S",w=_}var S=p.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};p.advancedAPI=function(t){var e=w===_;return e&&x.call(this),"function"!=typeof t||(t(this),e&&k.call(this)),this},p.compatAPI=function(t){var e=w===y;return e&&k.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},p.isAdvancedAPI=function(){return w===y};var C,A=function(t){if(w!==y)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},E=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var a=e||n;if(isNaN(t)||isNaN(a))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(a).replace(/0+$/,"")};C=p.hpf=p.__private__.hpf="number"==typeof c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return E(t,c)}:"smart"===c?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return E(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return E(t,16)};var T=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return E(t,2)},P=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return E(t,3)},N=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===_?t*ft:w===y?t:void 0},L=function(t){return N(function(t){return w===_?gn()-t:w===y?t:void 0}(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var O,M="00000000000000000000000000000000",R=p.__private__.getFileId=function(){return M},I=p.__private__.setFileId=function(t){return M=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():M.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==d&&(we=new Ur(d.userPermissions,d.userPassword,d.ownerPassword,M)),M};p.setFileId=function(t){return I(t),this},p.getFileId=function(){return R()};var D=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",a=Math.floor(Math.abs(e/60)),r=Math.abs(e%60),i=[n,U(a),"'",U(r),"'"].join("");return["D:",t.getFullYear(),U(t.getMonth()+1),U(t.getDate()),U(t.getHours()),U(t.getMinutes()),U(t.getSeconds()),i].join("")},F=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,a=parseInt(t.substr(8,2),10),r=parseInt(t.substr(10,2),10),i=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,a,r,i,o,0)},j=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=D(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return O=e},B=p.__private__.getCreationDate=function(t){var e=O;return"jsDate"===t&&(e=F(O)),e};p.setCreationDate=function(t){return j(t),this},p.getCreationDate=function(t){return B(t)};var z,U=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},H=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},V=0,W=[],q=[],$=0,K=[],G=[],Y=!1,X=q;p.__private__.setCustomOutputDestination=function(t){Y=!0,X=t};var J=function(t){Y||(X=t)};p.__private__.resetCustomOutputDestination=function(){Y=!1,X=q};var Z=p.__private__.out=function(t){return t=t.toString(),$+=t.length+1,X.push(t),X},Q=p.__private__.write=function(t){return Z(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},tt=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),a=new Uint8Array(n);e--;)a[e]=t.charCodeAt(e);return n},et=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return et};var nt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return nt=w===y?t/ft:t,this};var at,rt=p.__private__.getFontSize=p.getFontSize=function(){return w===_?nt:nt*ft},it=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return it=t,this},p.__private__.getR2L=p.getR2L=function(){return it};var ot,st=p.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))at=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');at=t}else at=parseInt(t,10)};p.__private__.getZoomMode=function(){return at};var lt,ct=p.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');ot=t};p.__private__.getPageMode=function(){return ot};var ut=p.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');lt=t};p.__private__.getLayoutMode=function(){return lt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return st(t),ut(e),ct(n),this};var dt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(dt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return dt[t]},p.__private__.getDocumentProperties=function(){return dt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in dt)dt.hasOwnProperty(e)&&t[e]&&(dt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(dt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return dt[t]=e};var ht,ft,pt,mt,gt,vt={},bt={},_t=[],yt={},wt={},xt={},kt={},St=null,Ct=0,At=[],Et=new Vr(p),Tt=t.hotfixes||[],Pt={},Nt={},Lt=[],Ot=function t(e,n,a,r,i,o){if(!(this instanceof t))return new t(e,n,a,r,i,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(r)&&(r=1),isNaN(i)&&(i=0),isNaN(o)&&(o=0),this._matrix=[e,n,a,r,i,o]};Object.defineProperty(Ot.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ot.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ot.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ot.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ot.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ot.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ot.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ot.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ot.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ot.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ot.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ot.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ot.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ot.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ot.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ot.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ot.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(C).join(t)},Ot.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,a=t.shx*this.sx+t.sy*this.shx,r=t.shx*this.shy+t.sy*this.sy,i=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Ot(e,n,a,r,i,o)},Ot.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,a=this.sy,r=this.tx,i=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*a;n-=t*s,a-=e*s;var l=Math.sqrt(n*n+a*a);return s/=l,t*(a/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Ot(o,0,0,l,0,0),translate:new Ot(1,0,0,1,r,i),rotate:new Ot(t,e,-e,t,0,0),skew:new Ot(1,0,s,1,0,0)}},Ot.prototype.toString=function(t){return this.join(" ")},Ot.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,a=this.sy,r=this.tx,i=this.ty,o=1/(t*a-e*n),s=a*o,l=-e*o,c=-n*o,u=t*o;return new Ot(s,l,c,u,-s*r-c*i,-l*r-u*i)},Ot.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new rn(e,n)},Ot.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new rn(t.x+t.w,t.y+t.h));return new on(e.x,e.y,n.x-e.x,n.y-e.y)},Ot.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,a=this.sy,r=this.tx,i=this.ty;return new Ot(t,e,n,a,r,i)},p.Matrix=Ot;var Mt=p.matrixMult=function(t,e){return e.multiply(t)},Rt=new Ot(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Rt;var It=function(t,e){if(!wt[t]){var n=(e instanceof $r?"Sh":"P")+(Object.keys(yt).length+1).toString(10);e.id=n,wt[t]=n,yt[n]=e,Et.publish("addPattern",e)}};p.ShadingPattern=$r,p.TilingPattern=Kr,p.addShadingPattern=function(t,e){return A("addShadingPattern()"),It(t,e),this},p.beginTilingPattern=function(t){A("beginTilingPattern()"),ln(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},p.endTilingPattern=function(t,e){A("endTilingPattern()"),e.stream=G[z].join("\n"),It(t,e),Et.publish("endTilingPattern",e),Lt.pop().restore()};var Dt,Ft=p.__private__.newObject=function(){var t=jt();return Bt(t,!0),t},jt=p.__private__.newObjectDeferred=function(){return V++,W[V]=function(){return $},V},Bt=function(t,e){return e="boolean"==typeof e&&e,W[t]=$,e&&Z(t+" 0 obj"),t},zt=p.__private__.newAdditionalObject=function(){var t={objId:jt(),content:""};return K.push(t),t},Ut=jt(),Ht=jt(),Vt=p.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var a="#",r=0;r<3;r++)a+=("0"+Math.floor(255*parseFloat(e[r])).toString(16)).slice(-2);return a},Wt=p.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,i=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var l=new xr(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,r=c>>8&255,i=255&c}if(void 0===r||void 0===o&&n===r&&r===i)e="string"==typeof n?n+" "+s[0]:2===t.precision?T(n/255)+" "+s[0]:P(n/255)+" "+s[0];else if(void 0===o||"object"===(0,a.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof n?[n,r,i,s[1]].join(" "):2===t.precision?[T(n/255),T(r/255),T(i/255),s[1]].join(" "):[P(n/255),P(r/255),P(i/255),s[1]].join(" ")}else e="string"==typeof n?[n,r,i,o,s[2]].join(" "):2===t.precision?[T(n),T(r),T(i),T(o),s[2]].join(" "):[P(n),P(r),P(i),P(o),s[2]].join(" ");return e},qt=p.__private__.getFilters=function(){return s},$t=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||qt(),a=t.alreadyAppliedFilters||[],r=t.addLength1||!1,i=e.length,o=t.objectId,s=function(t){return t};if(null!==d&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(s=we.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var c=t.additionalKeyValues||[],u=(l=void 0!==Gr.API.processDataByFilters?Gr.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(a)?a.join(" "):a.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===r&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var h=0;h<c.length;h+=1)if("DecodeParms"===c[h].key){for(var f=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)f.push("null");f.push(c[h].value),c[h].value="["+f.join(" ")+"]"}}Z("<<");for(var m=0;m<c.length;m++)Z("/"+c[m].key+" "+c[m].value);Z(">>"),0!==l.data.length&&(Z("stream"),Z(s(l.data)),Z("endstream"))},Kt=p.__private__.putPage=function(t){var e=t.number,n=t.data,a=t.objId,r=t.contentsObjId;Bt(a,!0),Z("<</Type /Page"),Z("/Parent "+t.rootDictionaryObjId+" 0 R"),Z("/Resources "+t.resourceDictionaryObjId+" 0 R"),Z("/MediaBox ["+parseFloat(C(t.mediaBox.bottomLeftX))+" "+parseFloat(C(t.mediaBox.bottomLeftY))+" "+C(t.mediaBox.topRightX)+" "+C(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&Z("/CropBox ["+C(t.cropBox.bottomLeftX)+" "+C(t.cropBox.bottomLeftY)+" "+C(t.cropBox.topRightX)+" "+C(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&Z("/BleedBox ["+C(t.bleedBox.bottomLeftX)+" "+C(t.bleedBox.bottomLeftY)+" "+C(t.bleedBox.topRightX)+" "+C(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&Z("/TrimBox ["+C(t.trimBox.bottomLeftX)+" "+C(t.trimBox.bottomLeftY)+" "+C(t.trimBox.topRightX)+" "+C(t.trimBox.topRightY)+"]"),null!==t.artBox&&Z("/ArtBox ["+C(t.artBox.bottomLeftX)+" "+C(t.artBox.bottomLeftY)+" "+C(t.artBox.topRightX)+" "+C(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&Z("/UserUnit "+t.userUnit),Et.publish("putPage",{objId:a,pageContext:At[e],pageNumber:e,page:n}),Z("/Contents "+r+" 0 R"),Z(">>"),Z("endobj");var i=n.join("\n");return w===y&&(i+="\nQ"),Bt(r,!0),$t({data:i,filters:qt(),objectId:r}),Z("endobj"),a},Gt=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Ct;t++)At[t].objId=jt(),At[t].contentsObjId=jt();for(t=1;t<=Ct;t++)n.push(Kt({number:t,data:G[t],objId:At[t].objId,contentsObjId:At[t].contentsObjId,mediaBox:At[t].mediaBox,cropBox:At[t].cropBox,bleedBox:At[t].bleedBox,trimBox:At[t].trimBox,artBox:At[t].artBox,userUnit:At[t].userUnit,rootDictionaryObjId:Ut,resourceDictionaryObjId:Ht}));Bt(Ut,!0),Z("<</Type /Pages");var a="/Kids [";for(e=0;e<Ct;e++)a+=n[e]+" 0 R ";Z(a+"]"),Z("/Count "+Ct),Z(">>"),Z("endobj"),Et.publish("postPutPages")},Yt=function(t){Et.publish("putFont",{font:t,out:Z,newObject:Ft,putStream:$t}),!0!==t.isAlreadyPutted&&(t.objectNumber=Ft(),Z("<<"),Z("/Type /Font"),Z("/BaseFont /"+Hr(t.postScriptName)),Z("/Subtype /Type1"),"string"==typeof t.encoding&&Z("/Encoding /"+t.encoding),Z("/FirstChar 32"),Z("/LastChar 255"),Z(">>"),Z("endobj"))},Xt=function(t){t.objectNumber=Ft();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[C(t.x),C(t.y),C(t.x+t.width),C(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");$t({data:n,additionalKeyValues:e,objectId:t.objectNumber}),Z("endobj")},Jt=function(t,e){e||(e=21);var n=Ft(),a=function(t,e){var n,a=[],r=1/(e-1);for(n=0;n<1;n+=r)a.push(n);if(a.push(1),0!=t[0].offset){var i={offset:0,color:t[0].color};t.unshift(i)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",l=0,c=0;c<a.length;c++){for(n=a[c];n>t[l+1].offset;)l++;var u=t[l].offset,d=(n-u)/(t[l+1].offset-u),h=t[l].color,f=t[l+1].color;s+=H(Math.round((1-d)*h[0]+d*f[0]).toString(16))+H(Math.round((1-d)*h[1]+d*f[1]).toString(16))+H(Math.round((1-d)*h[2]+d*f[2]).toString(16))}return s.trim()}(t.colors,e),r=[];r.push({key:"FunctionType",value:"0"}),r.push({key:"Domain",value:"[0.0 1.0]"}),r.push({key:"Size",value:"["+e+"]"}),r.push({key:"BitsPerSample",value:"8"}),r.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),r.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$t({data:a,additionalKeyValues:r,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),Z("endobj"),t.objectNumber=Ft(),Z("<< /ShadingType "+t.type),Z("/ColorSpace /DeviceRGB");var i="/Coords ["+C(parseFloat(t.coords[0]))+" "+C(parseFloat(t.coords[1]))+" ";2===t.type?i+=C(parseFloat(t.coords[2]))+" "+C(parseFloat(t.coords[3])):i+=C(parseFloat(t.coords[2]))+" "+C(parseFloat(t.coords[3]))+" "+C(parseFloat(t.coords[4]))+" "+C(parseFloat(t.coords[5])),Z(i+="]"),t.matrix&&Z("/Matrix ["+t.matrix.toString()+"]"),Z("/Function "+n+" 0 R"),Z("/Extend [true true]"),Z(">>"),Z("endobj")},Zt=function(t,e){var n=jt(),a=Ft();e.push({resourcesOid:n,objectOid:a}),t.objectNumber=a;var r=[];r.push({key:"Type",value:"/Pattern"}),r.push({key:"PatternType",value:"1"}),r.push({key:"PaintType",value:"1"}),r.push({key:"TilingType",value:"1"}),r.push({key:"BBox",value:"["+t.boundingBox.map(C).join(" ")+"]"}),r.push({key:"XStep",value:C(t.xStep)}),r.push({key:"YStep",value:C(t.yStep)}),r.push({key:"Resources",value:n+" 0 R"}),t.matrix&&r.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),$t({data:t.stream,additionalKeyValues:r,objectId:t.objectNumber}),Z("endobj")},Qt=function(t){for(var e in t.objectNumber=Ft(),Z("<<"),t)switch(e){case"opacity":Z("/ca "+T(t[e]));break;case"stroke-opacity":Z("/CA "+T(t[e]))}Z(">>"),Z("endobj")},te=function(t){Bt(t.resourcesOid,!0),Z("<<"),Z("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in Z("/Font <<"),vt)vt.hasOwnProperty(t)&&(!1===h||!0===h&&f.hasOwnProperty(t))&&Z("/"+t+" "+vt[t].objectNumber+" 0 R");Z(">>")}(),function(){if(Object.keys(yt).length>0){for(var t in Z("/Shading <<"),yt)yt.hasOwnProperty(t)&&yt[t]instanceof $r&&yt[t].objectNumber>=0&&Z("/"+t+" "+yt[t].objectNumber+" 0 R");Et.publish("putShadingPatternDict"),Z(">>")}}(),function(t){if(Object.keys(yt).length>0){for(var e in Z("/Pattern <<"),yt)yt.hasOwnProperty(e)&&yt[e]instanceof p.TilingPattern&&yt[e].objectNumber>=0&&yt[e].objectNumber<t&&Z("/"+e+" "+yt[e].objectNumber+" 0 R");Et.publish("putTilingPatternDict"),Z(">>")}}(t.objectOid),function(){if(Object.keys(xt).length>0){var t;for(t in Z("/ExtGState <<"),xt)xt.hasOwnProperty(t)&&xt[t].objectNumber>=0&&Z("/"+t+" "+xt[t].objectNumber+" 0 R");Et.publish("putGStateDict"),Z(">>")}}(),function(){for(var t in Z("/XObject <<"),Pt)Pt.hasOwnProperty(t)&&Pt[t].objectNumber>=0&&Z("/"+t+" "+Pt[t].objectNumber+" 0 R");Et.publish("putXobjectDict"),Z(">>")}(),Z(">>"),Z("endobj")},ee=function(t){bt[t.fontName]=bt[t.fontName]||{},bt[t.fontName][t.fontStyle]=t.id},ne=function(t,e,n,a,r){var i={id:"F"+(Object.keys(vt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:a,isStandardFont:r||!1,metadata:{}};return Et.publish("addFont",{font:i,instance:this}),vt[i.id]=i,ee(i),i.id},ae=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return function(t,e){var n,a,r,i,o,s,l,c,u;if(r=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&vt[ht].metadata&&vt[ht].metadata[r]&&vt[ht].metadata[r].encoding&&(i=vt[ht].metadata[r].encoding,!o&&vt[ht].encoding&&(o=vt[ht].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(l=!1,s=[],n=0,a=t.length;n<a;n++)(c=o[t.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(l=!0);t=s.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(s=e.noBOM?[]:[254,255],n=0,a=t.length;n<a;n++){if((u=(c=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},re=p.__private__.beginPage=function(t){G[++Ct]=[],At[Ct]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},se(Ct),J(G[z])},ie=function(t,e){var a,r,o;switch(n=e||n,"string"==typeof t&&(a=b(t.toLowerCase()),Array.isArray(a)&&(r=a[0],o=a[1])),Array.isArray(t)&&(r=t[0]*ft,o=t[1]*ft),isNaN(r)&&(r=i[0],o=i[1]),(r>14400||o>14400)&&(vr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),o=Math.min(14400,o)),i=[r,o],n.substr(0,1)){case"l":o>r&&(i=[o,r]);break;case"p":r>o&&(i=[o,r])}re(i),Ue(Be),Z(Ye),0!==en&&Z(en+" J"),0!==nn&&Z(nn+" j"),Et.publish("addPage",{pageNumber:Ct})},oe=function(t){t>0&&t<=Ct&&(G.splice(t,1),At.splice(t,1),Ct--,z>Ct&&(z=Ct),this.setPage(z))},se=function(t){t>0&&t<=Ct&&(z=t)},le=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return G.length-1},ce=function(t,e,n){var a,r=void 0;return n=n||{},t=void 0!==t?t:vt[ht].fontName,e=void 0!==e?e:vt[ht].fontStyle,a=t.toLowerCase(),void 0!==bt[a]&&void 0!==bt[a][e]?r=bt[a][e]:void 0!==bt[t]&&void 0!==bt[t][e]?r=bt[t][e]:!1===n.disableWarning&&vr.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),r||n.noFallback||null==(r=bt.times[e])&&(r=bt.times.normal),r},ue=p.__private__.putInfo=function(){var t=Ft(),e=function(t){return t};for(var n in null!==d&&(e=we.encryptor(t,0)),Z("<<"),Z("/Producer ("+ae(e("jsPDF "+Gr.version))+")"),dt)dt.hasOwnProperty(n)&&dt[n]&&Z("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+ae(e(dt[n]))+")");Z("/CreationDate ("+ae(e(O))+")"),Z(">>"),Z("endobj")},de=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Ut;switch(Ft(),Z("<<"),Z("/Type /Catalog"),Z("/Pages "+e+" 0 R"),at||(at="fullwidth"),at){case"fullwidth":Z("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Z("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Z("/OpenAction [3 0 R /Fit]");break;case"original":Z("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+at;"%"===n.substr(n.length-1)&&(at=parseInt(at)/100),"number"==typeof at&&Z("/OpenAction [3 0 R /XYZ null null "+T(at)+"]")}switch(lt||(lt="continuous"),lt){case"continuous":Z("/PageLayout /OneColumn");break;case"single":Z("/PageLayout /SinglePage");break;case"two":case"twoleft":Z("/PageLayout /TwoColumnLeft");break;case"tworight":Z("/PageLayout /TwoColumnRight")}ot&&Z("/PageMode /"+ot),Et.publish("putCatalog"),Z(">>"),Z("endobj")},he=p.__private__.putTrailer=function(){Z("trailer"),Z("<<"),Z("/Size "+(V+1)),Z("/Root "+V+" 0 R"),Z("/Info "+(V-1)+" 0 R"),null!==d&&Z("/Encrypt "+we.oid+" 0 R"),Z("/ID [ <"+M+"> <"+M+"> ]"),Z(">>")},fe=p.__private__.putHeader=function(){Z("%PDF-"+m),Z("%ºß¬à")},pe=p.__private__.putXRef=function(){var t="0000000000";Z("xref"),Z("0 "+(V+1)),Z("0000000000 65535 f ");for(var e=1;e<=V;e++)"function"==typeof W[e]?Z((t+W[e]()).slice(-10)+" 00000 n "):void 0!==W[e]?Z((t+W[e]).slice(-10)+" 00000 n "):Z("0000000000 00000 n ")},me=p.__private__.buildDocument=function(){var t;V=0,$=0,q=[],W=[],K=[],Ut=jt(),Ht=jt(),J(q),Et.publish("buildDocument"),fe(),Gt(),function(){Et.publish("putAdditionalObjects");for(var t=0;t<K.length;t++){var e=K[t];Bt(e.objId,!0),Z(e.content),Z("endobj")}Et.publish("postPutAdditionalObjects")}(),t=[],function(){for(var t in vt)vt.hasOwnProperty(t)&&(!1===h||!0===h&&f.hasOwnProperty(t))&&Yt(vt[t])}(),function(){var t;for(t in xt)xt.hasOwnProperty(t)&&Qt(xt[t])}(),function(){for(var t in Pt)Pt.hasOwnProperty(t)&&Xt(Pt[t])}(),function(t){var e;for(e in yt)yt.hasOwnProperty(e)&&(yt[e]instanceof $r?Jt(yt[e]):yt[e]instanceof Kr&&Zt(yt[e],t))}(t),Et.publish("putResources"),t.forEach(te),te({resourcesOid:Ht,objectOid:Number.MAX_SAFE_INTEGER}),Et.publish("postPutResources"),null!==d&&(we.oid=Ft(),Z("<<"),Z("/Filter /Standard"),Z("/V "+we.v),Z("/R "+we.r),Z("/U <"+we.toHexString(we.U)+">"),Z("/O <"+we.toHexString(we.O)+">"),Z("/P "+we.P),Z(">>"),Z("endobj")),ue(),de();var e=$;return pe(),he(),Z("startxref"),Z(""+e),Z("%%EOF"),J(G[z]),q.join("\n")},ge=p.__private__.getBlob=function(t){return new Blob([tt(t)],{type:"application/pdf"})},ve=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},be=function(t){var e,n=t.document,a=n.documentElement,r=n.head,i=n.body;return r||(r=n.createElement("head"),a.appendChild(r)),i||(i=n.createElement("body"),a.appendChild(i)),ve(r),ve(i),(e=n.createElement("style")).appendChild(n.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),r.appendChild(e),{document:n,body:i}},_e=p.output=p.__private__.output=(Dt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return me();case"save":p.save(e.filename);break;case"arraybuffer":return tt(me());case"blob":return ge(me());case"bloburi":case"bloburl":if(void 0!==mr.URL&&"function"==typeof mr.URL.createObjectURL)return mr.URL&&mr.URL.createObjectURL(ge(me()))||void 0;vr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",a=me();try{n=Sr(a)}catch(t){n=Sr(unescape(encodeURIComponent(a)))}return"data:application/pdf;filename="+encodeURIComponent(e.filename)+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(mr)){var r="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",i=!e.pdfObjectUrl;i||(r=e.pdfObjectUrl);var o=mr.open();if(null!==o){var s=be(o),l=s.document.createElement("script"),c=this;l.src=r,i&&(l.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",l.crossOrigin="anonymous"),l.onload=function(){o.PDFObject.embed(c.output("dataurlstring"),e)},s.body.appendChild(l)}return o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(mr)){var u=e.pdfJsUrl||"examples/PDF.js/web/viewer.html",d=mr.open();if(null!==d){var h=be(d),f=h.document.createElement("iframe"),m=-1===u.indexOf("?")?"?":"&";c=this,f.id="pdfViewer",f.width="500px",f.height="400px",f.src=u+m+"file=&downloadName="+encodeURIComponent(e.filename),f.onload=function(){d.document.title=e.filename,f.contentWindow.PDFViewerApplication.open(c.output("bloburl"))},h.body.appendChild(f)}return d}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(mr))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var g=mr.open();if(null!==g){var v=be(g),b=v.document.createElement("iframe");b.src=this.output("datauristring",e),v.body.appendChild(b),g.document.title=e.filename}if(g||"undefined"==typeof safari)return g;break;case"datauri":case"dataurl":return mr.document.location.href=this.output("datauristring",e);default:return null}},Dt.foo=function(){try{return Dt.apply(this,arguments)}catch(n){var t=n.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+n.message;if(!mr.console)throw new Error(e);mr.console.error(e,n),mr.alert&&alert(e)}},Dt.foo.bar=Dt,Dt.foo),ye=function(t){return!0===Array.isArray(Tt)&&Tt.indexOf(t)>-1};switch(r){case"pt":ft=1;break;case"mm":ft=72/25.4;break;case"cm":ft=72/2.54;break;case"in":ft=72;break;case"px":ft=1==ye("px_scaling")?.75:96/72;break;case"pc":case"em":ft=12;break;case"ex":ft=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);ft=r}var we=null;j(),I();var xe=p.__private__.getPageInfo=p.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:At[t].objId,pageNumber:t,pageContext:At[t]}},ke=p.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in At)if(At[e].objId===t)break;return xe(e)},Se=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:At[z].objId,pageNumber:z,pageContext:At[z]}};p.addPage=function(){return ie.apply(this,arguments),this},p.setPage=function(){return se.apply(this,arguments),J.call(this,G[z]),this},p.insertPage=function(t){return this.addPage(),this.movePage(z,t),this},p.movePage=function(t,e){var n,a;if(t>e){n=G[t],a=At[t];for(var r=t;r>e;r--)G[r]=G[r-1],At[r]=At[r-1];G[e]=n,At[e]=a,this.setPage(e)}else if(t<e){n=G[t],a=At[t];for(var i=t;i<e;i++)G[i]=G[i+1],At[i]=At[i+1];G[e]=n,At[e]=a,this.setPage(e)}return this},p.deletePage=function(){return oe.apply(this,arguments),this},p.__private__.text=p.text=function(t,e,n,r,i){var o,s,l,c,u,d,h,p,m,g=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var v=n;n=e,e=t,t=v}if(arguments[3]instanceof Ot==0?(l=arguments[4],c=arguments[5],"object"===(0,a.A)(h=arguments[3])&&null!==h||("string"==typeof l&&(c=l,l=null),"string"==typeof h&&(c=h,h=null),"number"==typeof h&&(l=h,h=null),r={flags:h,angle:l,align:c})):(A("The transform parameter of text() with a Matrix value"),m=i),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return g;var b,_="",x="number"==typeof r.lineHeightFactor?r.lineHeightFactor:je,k=g.internal.scaleFactor;function S(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),ae(t,h)}function E(t){for(var e,n=t.concat(),a=[],r=n.length;r--;)"string"==typeof(e=n.shift())?a.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?a.push(e[0]):a.push([e[0],e[1],e[2]]);return a}function T(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var a,r,i=t.concat(),o=[],s=i.length;s--;)"string"==typeof(a=i.shift())?o.push(e(a)[0]):Array.isArray(a)&&"string"==typeof a[0]&&(r=e(a[0],a[1],a[2]),o.push([r[0],r[1],r[2]]));n=o}return n}var P=!1,L=!0;if("string"==typeof t)P=!0;else if(Array.isArray(t)){var O=t.concat();s=[];for(var M,R=O.length;R--;)("string"!=typeof(M=O.shift())||Array.isArray(M)&&"string"!=typeof M[0])&&(L=!1);P=L}if(!1===P)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var I=nt/g.internal.scaleFactor,D=I*(x-1);switch(r.baseline){case"bottom":n-=D;break;case"top":n+=I-D;break;case"hanging":n+=I-2*D;break;case"middle":n+=I/2-D}if((d=r.maxWidth||0)>0&&("string"==typeof t?t=g.splitTextToSize(t,d):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(g.splitTextToSize(e,d))}),[]))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:ae,activeFontKey:ht,fonts:vt,activeFontSize:nt}},Et.publish("preProcessText",o),t=o.text,l=(r=o.options).angle,m instanceof Ot==0&&l&&"number"==typeof l){l*=Math.PI/180,0===r.rotationDirection&&(l=-l),w===y&&(l=-l);var F=Math.cos(l),j=Math.sin(l);m=new Ot(F,j,-j,F,0,0)}else l&&l instanceof Ot&&(m=l);w!==y||m||(m=Rt),void 0!==(u=r.charSpace||Qe)&&(_+=C(N(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=r.horizontalScale)&&(_+=C(100*p)+" Tz\n"),r.lang;var B=-1,z=void 0!==r.renderingMode?r.renderingMode:r.stroke,U=g.internal.getCurrentPageInfo().pageContext;switch(z){case 0:case!1:case"fill":B=0;break;case 1:case!0:case"stroke":B=1;break;case 2:case"fillThenStroke":B=2;break;case 3:case"invisible":B=3;break;case 4:case"fillAndAddForClipping":B=4;break;case 5:case"strokeAndAddPathForClipping":B=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":B=6;break;case 7:case"addToPathForClipping":B=7}var H=void 0!==U.usedRenderingMode?U.usedRenderingMode:-1;-1!==B?_+=B+" Tr\n":-1!==H&&(_+="0 Tr\n"),-1!==B&&(U.usedRenderingMode=B),c=r.align||"left";var V,W=nt*x,q=g.internal.pageSize.getWidth(),$=vt[ht];u=r.charSpace||Qe,d=r.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},r.flags);var K=[],G=function(t){return g.getStringUnitWidth(t,{font:$,charSpace:u,fontSize:nt,doKerning:!1})*nt/k};if("[object Array]"===Object.prototype.toString.call(t)){var Y;s=E(t),"left"!==c&&(V=s.map(G));var X,J=0;if("right"===c){e-=V[0],t=[],R=s.length;for(var Q=0;Q<R;Q++)0===Q?(X=qe(e),Y=$e(n)):(X=N(J-V[Q]),Y=-W),t.push([s[Q],X,Y]),J=V[Q]}else if("center"===c){e-=V[0]/2,t=[],R=s.length;for(var tt=0;tt<R;tt++)0===tt?(X=qe(e),Y=$e(n)):(X=N((J-V[tt])/2),Y=-W),t.push([s[tt],X,Y]),J=V[tt]}else if("left"===c){t=[],R=s.length;for(var et=0;et<R;et++)t.push(s[et])}else if("justify"===c&&"Identity-H"===$.encoding){t=[],R=s.length,d=0!==d?d:q;for(var at=0,rt=0;rt<R;rt++)if(Y=0===rt?$e(n):-W,X=0===rt?qe(e):at,rt<R-1){var ot=N((d-V[rt])/(s[rt].split(" ").length-1)),st=s[rt].split(" ");t.push([st[0]+" ",X,Y]),at=0;for(var lt=1;lt<st.length;lt++){var ct=(G(st[lt-1]+" "+st[lt])-G(st[lt]))*k+ot;lt==st.length-1?t.push([st[lt],ct,0]):t.push([st[lt]+" ",ct,0]),at-=ct}}else t.push([s[rt],X,Y]);t.push(["",at,0])}else{if("justify"!==c)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],R=s.length,d=0!==d?d:q,rt=0;rt<R;rt++){Y=0===rt?$e(n):-W,X=0===rt?qe(e):0;var ut=s[rt].split(" ").length-1,dt=ut>0?(d-V[rt])/ut:0;rt<R-1?K.push(C(N(dt))):K.push(0),t.push([s[rt],X,Y])}}}!0===("boolean"==typeof r.R2L?r.R2L:it)&&(t=T(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:ae,activeFontKey:ht,fonts:vt,activeFontSize:nt}},Et.publish("postProcessText",o),t=o.text,b=o.mutex.isHex||!1;var ft=vt[ht].encoding;"WinAnsiEncoding"!==ft&&"StandardEncoding"!==ft||(t=T(t,(function(t,e,n){return[S(t),e,n]}))),s=E(t),t=[];for(var pt,mt,gt,bt=Array.isArray(s[0])?1:0,_t="",yt=function(t,e,n){var a="";return n instanceof Ot?(n="number"==typeof r.angle?Mt(n,new Ot(1,0,0,1,t,e)):Mt(new Ot(1,0,0,1,t,e),n),w===y&&(n=Mt(new Ot(1,0,0,-1,0,0),n)),a=n.join(" ")+" Tm\n"):a=C(t)+" "+C(e)+" Td\n",a},wt=0;wt<s.length;wt++){switch(_t="",bt){case 1:gt=(b?"<":"(")+s[wt][0]+(b?">":")"),pt=parseFloat(s[wt][1]),mt=parseFloat(s[wt][2]);break;case 0:gt=(b?"<":"(")+s[wt]+(b?">":")"),pt=qe(e),mt=$e(n)}void 0!==K&&void 0!==K[wt]&&(_t=K[wt]+" Tw\n"),0===wt?t.push(_t+yt(pt,mt,m)+gt):0===bt?t.push(_t+gt):1===bt&&t.push(_t+yt(pt,mt,m)+gt)}t=0===bt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var xt="BT\n/";return xt+=ht+" "+nt+" Tf\n",xt+=C(nt*x)+" TL\n",xt+=Je+"\n",xt+=_,xt+=t,Z(xt+="ET"),f[ht]=!0,g};var Ce=p.__private__.clip=p.clip=function(t){return Z("evenodd"===t?"W*":"W"),this};p.clipEvenOdd=function(){return Ce("evenodd")},p.__private__.discardPath=p.discardPath=function(){return Z("n"),this};var Ae=p.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(t){return Ae(t)&&(u=t),this};var Ee=p.__private__.getStyle=p.getStyle=function(t){var e=u;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},Te=p.close=function(){return Z("h"),this};p.stroke=function(){return Z("S"),this},p.fill=function(t){return Pe("f",t),this},p.fillEvenOdd=function(t){return Pe("f*",t),this},p.fillStroke=function(t){return Pe("B",t),this},p.fillStrokeEvenOdd=function(t){return Pe("B*",t),this};var Pe=function(t,e){"object"===(0,a.A)(e)?Oe(e,t):Z(t)},Ne=function(t){null===t||w===y&&void 0===t||(t=Ee(t),Z(t))};function Le(t,e,n,a,r){var i=new Kr(e||this.boundingBox,n||this.xStep,a||this.yStep,this.gState,r||this.matrix);i.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return It(o,i),i}var Oe=function(t,e){var n=wt[t.key],a=yt[n];if(a instanceof $r)Z("q"),Z(Me(e)),a.gState&&p.setGState(a.gState),Z(t.matrix.toString()+" cm"),Z("/"+n+" sh"),Z("Q");else if(a instanceof Kr){var r=new Ot(1,0,0,-1,0,gn());t.matrix&&(r=r.multiply(t.matrix||Rt),n=Le.call(a,t.key,t.boundingBox,t.xStep,t.yStep,r).id),Z("q"),Z("/Pattern cs"),Z("/"+n+" scn"),a.gState&&p.setGState(a.gState),Z(e),Z("Q")}},Me=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Re=p.moveTo=function(t,e){return Z(C(N(t))+" "+C(L(e))+" m"),this},Ie=p.lineTo=function(t,e){return Z(C(N(t))+" "+C(L(e))+" l"),this},De=p.curveTo=function(t,e,n,a,r,i){return Z([C(N(t)),C(L(e)),C(N(n)),C(L(a)),C(N(r)),C(L(i)),"c"].join(" ")),this};p.__private__.line=p.line=function(t,e,n,a,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||!Ae(r))throw new Error("Invalid arguments passed to jsPDF.line");return w===_?this.lines([[n-t,a-e]],t,e,[1,1],r||"S"):this.lines([[n-t,a-e]],t,e,[1,1]).stroke()},p.__private__.lines=p.lines=function(t,e,n,a,r,i){var o,s,l,c,u,d,h,f,p,m,g,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),a=a||[1,1],i=i||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(a)||!Ae(r)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(Re(e,n),o=a[0],s=a[1],c=t.length,m=e,g=n,l=0;l<c;l++)2===(u=t[l]).length?(m=u[0]*o+m,g=u[1]*s+g,Ie(m,g)):(d=u[0]*o+m,h=u[1]*s+g,f=u[2]*o+m,p=u[3]*s+g,m=u[4]*o+m,g=u[5]*s+g,De(d,h,f,p,m,g));return i&&Te(),Ne(r),this},p.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],a=n.c;switch(n.op){case"m":Re(a[0],a[1]);break;case"l":Ie(a[0],a[1]);break;case"c":De.apply(this,a);break;case"h":Te()}}return this},p.__private__.rect=p.rect=function(t,e,n,a,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||!Ae(r))throw new Error("Invalid arguments passed to jsPDF.rect");return w===_&&(a=-a),Z([C(N(t)),C(L(e)),C(N(n)),C(N(a)),"re"].join(" ")),Ne(r),this},p.__private__.triangle=p.triangle=function(t,e,n,a,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r)||isNaN(i)||!Ae(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,a-e],[r-n,i-a],[t-r,e-i]],t,e,[1,1],o,!0),this},p.__private__.roundedRect=p.roundedRect=function(t,e,n,a,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r)||isNaN(i)||!Ae(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return r=Math.min(r,.5*n),i=Math.min(i,.5*a),this.lines([[n-2*r,0],[r*s,0,r,i-i*s,r,i],[0,a-2*i],[0,i*s,-r*s,i,-r,i],[2*r-n,0],[-r*s,0,-r,-i*s,-r,-i],[0,2*i-a],[0,-i*s,r*s,-i,r,-i]],t+r,e,[1,1],o,!0),this},p.__private__.ellipse=p.ellipse=function(t,e,n,a,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||!Ae(r))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*a;return Re(t+n,e),De(t+n,e-o,t+i,e-a,t,e-a),De(t-i,e-a,t-n,e-o,t-n,e),De(t-n,e+o,t-i,e+a,t,e+a),De(t+i,e+a,t+n,e+o,t+n,e),Ne(r),this},p.__private__.circle=p.circle=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ae(a))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,a)},p.setFont=function(t,e,n){return n&&(e=S(e,n)),ht=ce(t,e,{disableWarning:!1}),this};var Fe=p.__private__.getFont=p.getFont=function(){return vt[ce.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var t,e,n={};for(t in bt)if(bt.hasOwnProperty(t))for(e in n[t]=[],bt[t])bt[t].hasOwnProperty(e)&&n[t].push(e);return n},p.addFont=function(t,e,n,a,r){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?r=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(n=S(n,a)),ne.call(this,t,e,n,r=r||"Identity-H")};var je,Be=t.lineWidth||.200025,ze=p.__private__.getLineWidth=p.getLineWidth=function(){return Be},Ue=p.__private__.setLineWidth=p.setLineWidth=function(t){return Be=t,Z(C(N(t))+" w"),this};p.__private__.setLineDash=Gr.API.setLineDash=Gr.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return C(N(t))})).join(" "),e=C(N(e)),Z("["+t+"] "+e+" d"),this};var He=p.__private__.getLineHeight=p.getLineHeight=function(){return nt*je};p.__private__.getLineHeight=p.getLineHeight=function(){return nt*je};var Ve=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(je=t),this},We=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return je};Ve(t.lineHeight);var qe=p.__private__.getHorizontalCoordinate=function(t){return N(t)},$e=p.__private__.getVerticalCoordinate=function(t){return w===y?t:At[z].mediaBox.topRightY-At[z].mediaBox.bottomLeftY-N(t)},Ke=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(t){return C(qe(t))},Ge=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(t){return C($e(t))},Ye=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Vt(Ye)},p.__private__.setStrokeColor=p.setDrawColor=function(t,e,n,a){return Ye=Wt({ch1:t,ch2:e,ch3:n,ch4:a,pdfColorType:"draw",precision:2}),Z(Ye),this};var Xe=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Vt(Xe)},p.__private__.setFillColor=p.setFillColor=function(t,e,n,a){return Xe=Wt({ch1:t,ch2:e,ch3:n,ch4:a,pdfColorType:"fill",precision:2}),Z(Xe),this};var Je=t.textColor||"0 g",Ze=p.__private__.getTextColor=p.getTextColor=function(){return Vt(Je)};p.__private__.setTextColor=p.setTextColor=function(t,e,n,a){return Je=Wt({ch1:t,ch2:e,ch3:n,ch4:a,pdfColorType:"text",precision:3}),this};var Qe=t.charSpace,tn=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Qe||0)};p.__private__.setCharSpace=p.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Qe=t,this};var en=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return en=e,Z(e+" J"),this};var nn=0;p.__private__.setLineJoin=p.setLineJoin=function(t){var e=p.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nn=e,Z(e+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Z(C(N(t))+" M"),this},p.GState=Wr,p.setGState=function(t){(t="string"==typeof t?xt[kt[t]]:an(null,t)).equals(St)||(Z("/"+t.id+" gs"),St=t)};var an=function(t,e){if(!t||!kt[t]){var n=!1;for(var a in xt)if(xt.hasOwnProperty(a)&&xt[a].equals(e)){n=!0;break}if(n)e=xt[a];else{var r="GS"+(Object.keys(xt).length+1).toString(10);xt[r]=e,e.id=r}return t&&(kt[t]=e.id),Et.publish("addGState",e),e}};p.addGState=function(t,e){return an(t,e),this},p.saveGraphicsState=function(){return Z("q"),_t.push({key:ht,size:nt,color:Je}),this},p.restoreGraphicsState=function(){Z("Q");var t=_t.pop();return ht=t.key,nt=t.size,Je=t.color,St=null,this},p.setCurrentTransformationMatrix=function(t){return Z(t.toString()+" cm"),this},p.comment=function(t){return Z("#"+t),this};var rn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var a=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}});var r="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return r},set:function(t){r=t.toString()}}),this},on=function(t,e,n,a){rn.call(this,t,e),this.type="rect";var r=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i=a||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}}),this},sn=function(){this.page=Ct,this.currentPage=z,this.pages=G.slice(0),this.pagesContext=At.slice(0),this.x=pt,this.y=mt,this.matrix=gt,this.width=un(z),this.height=hn(z),this.outputDestination=X,this.id="",this.objectNumber=-1};sn.prototype.restore=function(){Ct=this.page,z=this.currentPage,At=this.pagesContext,G=this.pages,pt=this.x,mt=this.y,gt=this.matrix,dn(z,this.width),fn(z,this.height),X=this.outputDestination};var ln=function(t,e,n,a,r){Lt.push(new sn),Ct=z=0,G=[],pt=t,mt=e,gt=r,re([n,a])};for(var cn in p.beginFormObject=function(t,e,n,a,r){return ln(t,e,n,a,r),this},p.endFormObject=function(t){return function(t){if(Nt[t])Lt.pop().restore();else{var e=new sn,n="Xo"+(Object.keys(Pt).length+1).toString(10);e.id=n,Nt[t]=n,Pt[n]=e,Et.publish("addFormObject",e),Lt.pop().restore()}}(t),this},p.doFormObject=function(t,e){var n=Pt[Nt[t]];return Z("q"),Z(e.toString()+" cm"),Z("/"+n.id+" Do"),Z("Q"),this},p.getFormObject=function(t){var e=Pt[Nt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},p.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(wr(ge(me()),t),"function"==typeof wr.unload&&mr.setTimeout&&setTimeout(wr.unload,911),this):new Promise((function(e,n){try{var a=wr(ge(me()),t);"function"==typeof wr.unload&&mr.setTimeout&&setTimeout(wr.unload,911),e(a)}catch(t){n(t.message)}}))},Gr.API)Gr.API.hasOwnProperty(cn)&&("events"===cn&&Gr.API.events.length?function(t,e){var n,a,r;for(r=e.length-1;-1!==r;r--)n=e[r][0],a=e[r][1],t.subscribe.apply(t,[n].concat("function"==typeof a?[a]:a))}(Et,Gr.API.events):p[cn]=Gr.API[cn]);function un(t){return At[t].mediaBox.topRightX-At[t].mediaBox.bottomLeftX}function dn(t,e){At[t].mediaBox.topRightX=e+At[t].mediaBox.bottomLeftX}function hn(t){return At[t].mediaBox.topRightY-At[t].mediaBox.bottomLeftY}function fn(t,e){At[t].mediaBox.topRightY=e+At[t].mediaBox.bottomLeftY}var pn=p.getPageWidth=function(t){return un(t=t||z)/ft},mn=p.setPageWidth=function(t,e){dn(t,e*ft)},gn=p.getPageHeight=function(t){return hn(t=t||z)/ft},vn=p.setPageHeight=function(t,e){fn(t,e*ft)};return p.internal={pdfEscape:ae,getStyle:Ee,getFont:Fe,getFontSize:rt,getCharSpace:tn,getTextColor:Ze,getLineHeight:He,getLineHeightFactor:We,getLineWidth:ze,write:Q,getHorizontalCoordinate:qe,getVerticalCoordinate:$e,getCoordinateString:Ke,getVerticalCoordinateString:Ge,collections:{},newObject:Ft,newAdditionalObject:zt,newObjectDeferred:jt,newObjectDeferredBegin:Bt,getFilters:qt,putStream:$t,events:Et,scaleFactor:ft,pageSize:{getWidth:function(){return pn(z)},setWidth:function(t){mn(z,t)},getHeight:function(){return gn(z)},setHeight:function(t){vn(z,t)}},encryptionOptions:d,encryption:we,getEncryptor:function(t){return null!==d?we.encryptor(t,0):function(t){return t}},output:_e,getNumberOfPages:le,get pages(){return G},out:Z,f2:T,f3:P,getPageInfo:xe,getPageInfoByObjId:ke,getCurrentPageInfo:Se,getPDFVersion:g,Point:rn,Rectangle:on,Matrix:Ot,hasHotfix:ye},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return pn(z)},set:function(t){mn(z,t)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return gn(z)},set:function(t){vn(z,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=et.length;e<n;e++){var a=ne.call(this,t[e][0],t[e][1],t[e][2],et[e][3],!0);!1===h&&(f[a]=!0);var r=t[e][0].split("-");ee({id:a,fontName:r[0],fontStyle:r[1]||""})}Et.publish("addFonts",{fonts:vt,dictionary:bt})}.call(p,et),ht="F1",ie(i,n),Et.publish("initialized"),p}Ur.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},Ur.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Ur.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},Ur.prototype.processOwnerPassword=function(t,e){return Br(Dr(e).substr(0,5),t)},Ur.prototype.encryptor=function(t,e){var n=Dr(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return Br(n,t)}},Wr.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||(0,a.A)(t)!==(0,a.A)(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return 0===r},Gr.API={events:[]},Gr.version="4.2.1";var Yr=Gr.API,Xr=1,Jr=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Zr=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Qr=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===e.length?"0"+e:e)}))},ti=function(t){return t.toFixed(2)},ei=function(t){return t.toFixed(5)};Yr.__acroform__={};var ni=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},ai=function(t){return t*Xr},ri=function(t){var e=new yi,n=Ri.internal.getHeight(t)||0,a=Ri.internal.getWidth(t)||0;return e.BBox=[0,0,Number(ti(a)),Number(ti(n))],e},ii=Yr.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},oi=Yr.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},si=Yr.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},li=Yr.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return si(t,e-1)},ci=Yr.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return ii(t,e-1)},ui=Yr.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return oi(t,e-1)},di=Yr.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,a=e.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],s=t[3],l={};return l.lowerLeft_X=n(r)||0,l.lowerLeft_Y=a(i+s)||0,l.upperRight_X=n(r+o)||0,l.upperRight_Y=a(i)||0,[Number(ti(l.lowerLeft_X)),Number(ti(l.lowerLeft_Y)),Number(ti(l.upperRight_X)),Number(ti(l.upperRight_Y))]},hi=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,a=fi(t,n),r=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+r+" "+ti(a.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(a.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=ri(t);return i.scope=t.scope,i.stream=e.join("\n"),i}},fi=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,a={text:"",fontSize:""},r=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");r=t.multiline?r.map((function(t){return t.split("\n")})):r.map((function(t){return[t]}));var i=n,o=Ri.internal.getHeight(t)||0;o=o<0?-o:o;var s=Ri.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(e,n,a){if(e+1<r.length){var i=n+" "+r[e+1][0];return pi(i,t,a).width<=s-4}return!1};i++;t:for(;i>0;){e="",i--;var c,u,d=pi("3",t,i).height,h=t.multiline?o-i:(o-d)/2,f=h+=2,p=0,m=0,g=0;if(i<=0){e="(...) Tj\n",e+="% Width of Text: "+pi(e,t,i=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,_=0;_<r.length;_++)if(r.hasOwnProperty(_)){var y=!1;if(1!==r[_].length&&g!==r[_].length-1){if((d+2)*(b+2)+2>o)continue t;v+=r[_][g],y=!0,m=_,_--}else{v=" "==(v+=r[_][g]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var w=parseInt(_),x=l(w,v,i),k=_>=r.length-1;if(x&&!k){v+=" ",g=0;continue}if(x||k){if(k)m=w;else if(t.multiline&&(d+2)*(b+2)+2>o)continue t}else{if(!t.multiline)continue t;if((d+2)*(b+2)+2>o)continue t;m=w}}for(var S="",C=p;C<=m;C++){var A=r[C];if(t.multiline){if(C===m){S+=A[g]+" ",g=(g+1)%A.length;continue}if(C===p){S+=A[A.length-1]+" ";continue}}S+=A[0]+" "}switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,u=pi(S,t,i).width,t.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}e+=ti(c)+" "+ti(f)+" Td\n",e+="("+Jr(S)+") Tj\n",e+=-ti(c)+" 0 Td\n",f=-(i+2),u=0,p=y?m:m+1,b++,v=""}break}return a.text=e,a.fontSize=i,a},pi=function(t,e,n){var a=e.scope.internal.getFont(e.fontName,e.fontStyle),r=e.scope.getStringUnitWidth(t,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:r}},mi={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},gi=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},vi=Yr.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var i="[",o=0;o<t.length;o++)switch(0!==o&&(i+=" "),(0,a.A)(t[o])){case"boolean":case"number":case"object":i+=t[o].toString();break;case"string":"/"===t[o].substr(0,1)?i+="/"+Qr(t[o].substr(1)):(void 0!==e&&n&&(r=n.internal.getEncryptor(e)),i+="("+Jr(r(t[o].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},bi=function(t,e,n){var a=function(t){return t};return void 0!==e&&n&&(a=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+Jr(a(t))+")"},_i=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};_i.prototype.toString=function(){return this.objId+" 0 R"},_i.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},_i.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var a=e[n],r=this[a];r&&(Array.isArray(r)?t.push({key:a,value:vi(r,this.objId,this.scope)}):r instanceof _i?(r.scope=this.scope,t.push({key:a,value:r.objId+" 0 R"})):"function"!=typeof r&&t.push({key:a,value:r}))}return t};var yi=function(){_i.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};ni(yi,_i);var wi=function(){_i.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Jr(e(t))+")"}},set:function(e){t=e}})};ni(wi,_i);var xi=function t(){_i.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(e,3))},set:function(t){!0===Boolean(t)?this.F=ci(e,3):this.F=ui(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==a.length)return a},set:function(t){a=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(t){a[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(t){a[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(t){a[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(t){a[3]=t}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof Ni)return;i="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Jr(e(i))+")"},set:function(t){i=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(t){i=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/Xr:c},set:function(t){c=t}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof Ni||this instanceof Oi))return bi(d,this.objId,this.scope)},set:function(t){t=t.toString(),d=t}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Ei==0?bi(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof Ei==0?"("===t.substr(0,1)?Zr(t.substr(1,t.length-2)):Zr(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ei==1?Zr(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof Ei==1?"/"+Qr(t):t}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Ei==0?bi(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof Ei==0?"("===t.substr(0,1)?Zr(t.substr(1,t.length-2)):Zr(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ei==1?Zr(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof Ei==1?"/"+Qr(t):t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(t){t=Boolean(t),m=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,1):this.Ff=ui(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,2):this.Ff=ui(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,3):this.Ff=ui(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};ni(xi,_i);var ki=function(){xi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return vi(e,this.objId,this.scope)},set:function(t){var n,a;a=[],"string"==typeof(n=t)&&(a=function(t,e,n){n||(n=1);for(var a,r=[];a=e.exec(t);)r.push(a[n]);return r}(n,/\((.*?)\)/g)),e=a}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,18):this.Ff=ui(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=ci(this.Ff,19):this.Ff=ui(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=ci(this.Ff,20),e.sort()):this.Ff=ui(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,22):this.Ff=ui(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,23):this.Ff=ui(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,27):this.Ff=ui(this.Ff,27)}}),this.hasAppearanceStream=!1};ni(ki,xi);var Si=function(){ki.call(this),this.fontName="helvetica",this.combo=!1};ni(Si,ki);var Ci=function(){Si.call(this),this.combo=!0};ni(Ci,Si);var Ai=function(){Ci.call(this),this.edit=!0};ni(Ai,Ci);var Ei=function(){xi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,15):this.Ff=ui(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,16):this.Ff=ui(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,17):this.Ff=ui(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,26):this.Ff=ui(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,a=[];for(n in a.push("<<"),e)a.push("/"+n+" ("+Jr(t(e[n]))+")");return a.push(">>"),a.join("\n")}},set:function(t){"object"===(0,a.A)(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var n=null==e?"":e.toString();"/"===n.substr(0,1)&&(n=n.substr(1)),t="/"+Qr(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+Qr(e)}})};ni(Ei,xi);var Ti=function(){Ei.call(this),this.pushButton=!0};ni(Ti,Ei);var Pi=function(){Ei.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};ni(Pi,Ei);var Ni=function(){var t,e;xi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+Jr(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===(0,a.A)(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+Qr(e)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){var e=null==t?"":t.toString();"/"===e.substr(0,1)&&(e=e.substr(1)),n="/"+Qr(e)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ri.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ni(Ni,xi),Pi.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},Pi.prototype.createOption=function(t){var e=new Ni;return e.Parent=this,e.optionName=t,this.Kids.push(e),Ii.call(this.scope,e),e};var Li=function(){Ei.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ri.CheckBox.createAppearanceStream()};ni(Li,Ei);var Oi=function(){xi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,13):this.Ff=ui(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,21):this.Ff=ui(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,23):this.Ff=ui(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,24):this.Ff=ui(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,25):this.Ff=ui(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,26):this.Ff=ui(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ni(Oi,xi);var Mi=function(){Oi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(li(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=ci(this.Ff,14):this.Ff=ui(this.Ff,14)}}),this.password=!0};ni(Mi,Oi);var Ri={CheckBox:{createAppearanceStream:function(){return{N:{On:Ri.CheckBox.YesNormal},D:{On:Ri.CheckBox.YesPushDown,Off:Ri.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=fi(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+ti(Ri.internal.getWidth(t))+" "+ti(Ri.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+ti(i.fontSize)+" Tf "+r),n.push("BT"),n.push(i.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=ri(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),r=[],i=Ri.internal.getHeight(t),o=Ri.internal.getWidth(t),s=fi(t,t.caption);return r.push("1 g"),r.push("0 0 "+ti(o)+" "+ti(i)+" re"),r.push("f"),r.push("q"),r.push("0 0 1 rg"),r.push("0 0 "+ti(o-1)+" "+ti(i-1)+" re"),r.push("W"),r.push("n"),r.push("0 g"),r.push("BT"),r.push("/"+n+" "+ti(s.fontSize)+" Tf "+a),r.push(s.text),r.push("ET"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ti(Ri.internal.getWidth(t))+" "+ti(Ri.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Ri.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Ri.RadioButton.Circle.YesNormal,e.D[t]=Ri.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ri.internal.getWidth(t)<=Ri.internal.getHeight(t)?Ri.internal.getWidth(t)/4:Ri.internal.getHeight(t)/4;a=Number((.9*a).toFixed(5));var r=Ri.internal.Bezier_C,i=Number((a*r).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+ei(Ri.internal.getWidth(t)/2)+" "+ei(Ri.internal.getHeight(t)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),n.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),n.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),n.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ri.internal.getWidth(t)<=Ri.internal.getHeight(t)?Ri.internal.getWidth(t)/4:Ri.internal.getHeight(t)/4;a=Number((.9*a).toFixed(5));var r=Number((2*a).toFixed(5)),i=Number((r*Ri.internal.Bezier_C).toFixed(5)),o=Number((a*Ri.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+ei(Ri.internal.getWidth(t)/2)+" "+ei(Ri.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+ei(Ri.internal.getWidth(t)/2)+" "+ei(Ri.internal.getHeight(t)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ri.internal.getWidth(t)<=Ri.internal.getHeight(t)?Ri.internal.getWidth(t)/4:Ri.internal.getHeight(t)/4;a=Number((.9*a).toFixed(5));var r=Number((2*a).toFixed(5)),i=Number((r*Ri.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+ei(Ri.internal.getWidth(t)/2)+" "+ei(Ri.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Ri.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Ri.RadioButton.Cross.YesNormal,e.D[t]=Ri.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=ri(t);e.scope=t.scope;var n=[],a=Ri.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+ti(Ri.internal.getWidth(t)-2)+" "+ti(Ri.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(ti(a.x1.x)+" "+ti(a.x1.y)+" m"),n.push(ti(a.x2.x)+" "+ti(a.x2.y)+" l"),n.push(ti(a.x4.x)+" "+ti(a.x4.y)+" m"),n.push(ti(a.x3.x)+" "+ti(a.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=Ri.internal.calculateCross(t),a=[];return a.push("0.749023 g"),a.push("0 0 "+ti(Ri.internal.getWidth(t))+" "+ti(Ri.internal.getHeight(t))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+ti(Ri.internal.getWidth(t)-2)+" "+ti(Ri.internal.getHeight(t)-2)+" re"),a.push("W"),a.push("n"),a.push(ti(n.x1.x)+" "+ti(n.x1.y)+" m"),a.push(ti(n.x2.x)+" "+ti(n.x2.y)+" l"),a.push(ti(n.x4.x)+" "+ti(n.x4.y)+" m"),a.push(ti(n.x3.x)+" "+ti(n.x3.y)+" l"),a.push("s"),a.push("Q"),e.stream=a.join("\n"),e},OffPushDown:function(t){var e=ri(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+ti(Ri.internal.getWidth(t))+" "+ti(Ri.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Ri.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Ri.internal.getWidth(t),n=Ri.internal.getHeight(t),a=Math.min(e,n);return{x1:{x:(e-a)/2,y:(n-a)/2+a},x2:{x:(e-a)/2+a,y:(n-a)/2},x3:{x:(e-a)/2,y:(n-a)/2},x4:{x:(e-a)/2+a,y:(n-a)/2+a}}}},Ri.internal.getWidth=function(t){var e=0;return"object"===(0,a.A)(t)&&(e=ai(t.Rect[2])),e},Ri.internal.getHeight=function(t){var e=0;return"object"===(0,a.A)(t)&&(e=ai(t.Rect[3])),e};var Ii=Yr.addField=function(t){if(function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(xi.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(mi)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Xr=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new wi,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){var e;(e=t).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var a=e[n];a.objId=void 0,a.hasAnnotation&&gi(a,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var i=t[r],o=[],s=i.Rect;if(i.Rect&&(i.Rect=di(i.Rect,e)),e.internal.newObjectDeferredBegin(i.objId,!0),i.DA=Ri.createDefaultAppearanceStream(i),"object"===(0,a.A)(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var l=hi(i);o.push({key:"AP",value:"<</N "+l+">>"}),e.internal.acroformPlugin.xForms.push(l)}if(i.appearanceStreamContent){var c="";for(var u in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(u)){var d=i.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var r in d)if(d.hasOwnProperty(r)){var h=d[r];"function"==typeof h&&(h=h.call(e,i)),c+="/"+r+" "+h+" ",e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=d)&&(h=h.call(e,i)),c+="/"+r+" "+h,e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h);c+=">>"}o.push({key:"AP",value:"<<\n"+c+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:i.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,i=t[n];e.internal.newObjectDeferredBegin(i.objId,!0),"object"===(0,a.A)(i)&&"function"==typeof i.putStream&&i.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof xi))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Yr.AcroFormChoiceField=ki,Yr.AcroFormListBox=Si,Yr.AcroFormComboBox=Ci,Yr.AcroFormEditBox=Ai,Yr.AcroFormButton=Ei,Yr.AcroFormPushButton=Ti,Yr.AcroFormRadioButton=Pi,Yr.AcroFormCheckBox=Li,Yr.AcroFormTextField=Oi,Yr.AcroFormPasswordField=Mi,Yr.AcroFormAppearance=Ri,Yr.AcroForm={ChoiceField:ki,ListBox:Si,ComboBox:Ci,EditBox:Ai,Button:Ei,PushButton:Ti,RadioButton:Pi,CheckBox:Li,TextField:Oi,PasswordField:Mi,Appearance:Ri},Gr.AcroForm={ChoiceField:ki,ListBox:Si,ComboBox:Ci,EditBox:Ai,Button:Ei,PushButton:Ti,RadioButton:Pi,CheckBox:Li,TextField:Oi,PasswordField:Mi,Appearance:Ri};var Di,Fi;Gr.AcroForm;function ji(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){var e="addImage_";t.__addimage__={};var n="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,e){var a,i,o,s,l,c=n;if("RGBA"===(e=e||n)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(k(t))for(l in r)for(o=r[l],a=0;a<o.length;a+=1){for(s=!0,i=0;i<o[a].length;i+=1)if(void 0!==o[a][i]&&o[a][i]!==t[i]){s=!1;break}if(!0===s){c=l;break}}else for(l in r)for(o=r[l],a=0;a<o.length;a+=1){for(s=!0,i=0;i<o[a].length;i+=1)if(void 0!==o[a][i]&&o[a][i]!==t.charCodeAt(i)){s=!1;break}if(!0===s){c=l;break}}return c===n&&e!==n&&(c=e),c},o=function t(e){for(var n=this.internal.write,a=this.internal.putStream,r=(0,this.internal.getFilters)();-1!==r.indexOf("FlateEncode");)r.splice(r.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:e.width}),i.push({key:"Height",value:e.height}),e.colorSpace===b.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===b.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)&&e.transparency.length>0){for(var o="",s=0,l=e.transparency.length;s<l;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";i.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&i.push({key:"SMask",value:e.objectId+1+" 0 R"});var c=void 0!==e.filter?["/"+e.filter]:void 0;if(a({data:e.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var u,d=null!==(u=e.sMaskBitsPerComponent)&&void 0!==u?u:e.bitsPerComponent,h={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:d,data:e.sMask};"filter"in e&&(h.decodeParameters="/Predictor ".concat(e.predictor," /Colors 1 /BitsPerComponent ").concat(d," /Columns ").concat(e.width),h.filter=e.filter),t.call(this,h)}if(e.colorSpace===b.INDEXED){var f=this.internal.newObject();a({data:C(new Uint8Array(e.palette)),objectId:f}),n("endobj")}},s=function(){var t=this.internal.collections[e+"images"];for(var n in t)o.call(this,t[n])},l=function(){var t,n=this.internal.collections[e+"images"],a=this.internal.write;for(var r in n)a("/I"+(t=n[r]).index,t.objectId,"0","R")},c=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",l))},u=function(){var t=this.internal.collections[e+"images"];return c.call(this),t},d=function(){return Object.keys(this.internal.collections[e+"images"]).length},h=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"===(0,a.A)(t)&&1===t.nodeType},p=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var a=""+e.getAttribute("src");if(0===a.indexOf("data:image/"))return kr(unescape(a).split("base64,").pop());var r=t.loadFile(a,!0);if(void 0!==r)return r}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var i;switch(n){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;default:i="image/jpeg"}return kr(e.toDataURL(i,1).split("base64,").pop())}},m=function(t){var n=this.internal.collections[e+"images"];if(n)for(var a in n)if(t===n[a].alias)return n[a]},g=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},v=function(t,e,n,a,r,i){var o=g.call(this,n,a,r),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=u.call(this);if(n=o[0],a=o[1],c[r.index]=r,i){i*=Math.PI/180;var d=Math.cos(i),h=Math.sin(i),f=function(t){return t.toFixed(4)},p=[f(d),f(h),f(-1*h),f(d),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,s(t),l(e+a),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(a),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(a),s(t),l(e+a),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+r.index+" Do"),this.internal.write("Q")},b=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var _=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=t.__addimage__.sHashCode=function(t){var e,n,a=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)a=(a<<5)-a+t.charCodeAt(e),a|=0;else if(k(t))for(n=t.byteLength/2,e=0;e<n;e++)a=(a<<5)-a+t[e],a|=0;return a},w=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},x=t.__addimage__.extractImageFromDataUrl=function(t){if(null==t)return null;if(!(t=t.trim()).startsWith("data:"))return null;var e=t.indexOf(",");return e<0?null:t.substring(0,e).trim().endsWith("base64")?t.substring(e+1):null};t.__addimage__.isArrayBuffer=function(t){return t instanceof ArrayBuffer};var k=t.__addimage__.isArrayBufferView=function(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),a=0;a<e;a++)n[a]=t.charCodeAt(a);return n},C=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=k(t)?t:new Uint8Array(t),a=0;a<n.length;a+=8192)e+=String.fromCharCode.apply(null,n.subarray(a,a+8192));return e};t.addImage=function(){var t,e,r,i,o,s,l,u,d;if("number"==typeof arguments[1]?(e=n,r=arguments[1],i=arguments[2],o=arguments[3],s=arguments[4],l=arguments[5],u=arguments[6],d=arguments[7]):(e=arguments[1],r=arguments[2],i=arguments[3],o=arguments[4],s=arguments[5],l=arguments[6],u=arguments[7],d=arguments[8]),"object"===(0,a.A)(t=arguments[0])&&!f(t)&&"imageData"in t){var h=t;t=h.imageData,e=h.format||e||n,r=h.x||r||0,i=h.y||i||0,o=h.w||h.width||o,s=h.h||h.height||s,l=h.alias||l,u=h.compression||u,d=h.rotation||h.angle||d}var p=this.internal.getFilters();if(void 0===u&&-1!==p.indexOf("FlateEncode")&&(u="SLOW"),isNaN(r)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var m=A.call(this,t,e,l,u);return v.call(this,r,i,o,s,m,d),this};var A=function(e,a,r,o){var s,l,c;if("string"==typeof e&&i(e)===n){e=unescape(e);var u=E(e,!1);(""!==u||void 0!==(u=t.loadFile(e,!0)))&&(e=u)}if(f(e)&&(e=p(e,a)),a=i(e,a),!h(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if((null==(c=r)||0===c.length)&&(r=function(t){return"string"==typeof t||k(t)?y(t):k(t.data)?y(t.data):null}(e)),(s=m.call(this,r))||(e instanceof Uint8Array||"RGBA"===a||(l=e,e=S(e)),s=this["process"+a.toUpperCase()](e,d.call(this),r,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:_.NONE}(o),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},E=t.__addimage__.convertBase64ToBinaryString=function(t,e){e="boolean"!=typeof e||e;var n,a="";if("string"==typeof t){var r;n=null!==(r=x(t))&&void 0!==r?r:t;try{a=kr(n)}catch(t){if(e)throw w(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return a};t.getImageProperties=function(e){var a,r,o="";if(f(e)&&(e=p(e)),"string"==typeof e&&i(e)===n&&(""===(o=E(e,!1))&&(o=t.loadFile(e)||""),e=o),r=i(e),!h(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(e instanceof Uint8Array||(e=S(e)),!(a=this["process"+r.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return a.fileType=r,a}}(Gr.API),Di=Gr.API,Fi=function(t){if(void 0!==t&&""!=t)return!0},Gr.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),Di.events.push(["putPage",function(t){for(var e,n,a,r=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,l=!1,c=0;c<s.length&&!l;c++)switch((e=s[c]).type){case"link":(Fi(e.options.url)||Fi(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var u=0;u<s.length;u++){e=s[u];var d=this.internal.pdfEscape,h=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(f.objId),g=e.title||"Note";a="<</Type /Annot /Subtype /Text "+(n="/Rect ["+r(e.bounds.x)+" "+i(e.bounds.y+e.bounds.h)+" "+r(e.bounds.x+e.bounds.w)+" "+i(e.bounds.y)+"] ")+"/Contents ("+d(m(e.contents))+")",a+=" /Popup "+p.objId+" 0 R",a+=" /P "+o.objId+" 0 R",a+=" /T ("+d(m(g))+") >>",f.content=a;var v=f.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+r(e.bounds.x+30)+" "+i(e.bounds.y+e.bounds.h)+" "+r(e.bounds.x+e.bounds.w+30)+" "+i(e.bounds.y)+"] ")+" /Parent "+v,e.open&&(a+=" /Open true"),a+=" >>",p.content=a,this.internal.write(f.objId,"0 R",p.objId,"0 R");break;case"freetext":n="/Rect ["+r(e.bounds.x)+" "+i(e.bounds.y)+" "+r(e.bounds.x+e.bounds.w)+" "+i(e.bounds.y+e.bounds.h)+"] ";var b="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(e.color||"#000000");a="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+d(h(e.contents))+")",a+=" /DS("+d(h(b))+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(e.options.name){var _=this.annotations._nameMap[e.options.name];e.options.pageNumber=_.page,e.options.top=_.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",a="",e.options.url)a="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+d(h(e.options.url))+") >>";else if(e.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,a+=" /FitV "+e.options.left+"]";break;default:var y=i(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),a+=" /XYZ "+e.options.left+" "+y+" "+e.options.zoom+"]"}""!=a&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),Di.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},Di.link=function(t,e,n,a,r){var i=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+n),h:s(e+a)},options:r,type:"link"})},Di.textWithLink=function(t,e,n,a){var r,i,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==a.maxWidth){i=a.maxWidth;var l=this.splitTextToSize(t,i).length;r=Math.ceil(s*l)}else i=o,r=s;return this.text(t,e,n,a),n+=.2*s,"center"===a.align&&(e-=o/2),"right"===a.align&&(e-=o),this.link(e,n-s,i,r,a),o},Di.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&r.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=3};var u=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&i(t)&&4==e[t.charCodeAt(0)].length},d=t.__arabicParser__.resolveLigatures=function(t){var e=0,a=n,r="",i=0;for(e=0;e<t.length;e+=1)void 0!==a[t.charCodeAt(e)]?(i++,"number"==typeof(a=a[t.charCodeAt(e)])&&(r+=String.fromCharCode(a),a=n,i=0),e===t.length-1&&(a=n,r+=t.charAt(e-(i-1)),e-=i-1,i=0)):(a=n,r+=t.charAt(e-i),e-=i,i=0);return r};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==a[t.charCodeAt(0)]};var h=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===i(t)?-1:!c(t)||!o(e)&&!o(n)||!o(n)&&s(e)||s(t)&&!o(e)||s(t)&&l(e)||s(t)&&s(e)?0:u(t)&&o(e)&&!s(e)&&o(n)&&c(n)?3:s(t)||!o(n)?1:2:-1},f=function(t){var n=0,a=0,r=0,i="",s="",l="",c=(t=t||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),a=0;a<c[n].length;a+=1)i=c[n][a],s=c[n][a-1],l=c[n][a+1],o(i)?(r=h(i,s,l),u[n]+=-1!==r?String.fromCharCode(e[i.charCodeAt(0)][r]):i):u[n]+=i;u[n]=d(u[n])}return u.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var a=0;for(n=[],a=0;a<e.length;a+=1)Array.isArray(e[a])?n.push([f(e[a][0]),e[a][1],e[a][2]]):n.push([f(e[a])]);t=n}else t=f(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(Gr.API),Gr.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform","javascript"===t.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))),this},function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(t){a=t}});var r={};Object.defineProperty(this,"style",{get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(Gr.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var a=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return a},set:function(t){a=t}});var r=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),a=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,c=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var u=e.maxWidth;u>0?"string"==typeof t?t=this.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(c.splitTextToSize(e,u))}),[])):t=Array.isArray(t)?t:[t];for(var d=0;d<t.length;d++)o<(l=this.getStringUnitWidth(t[d],{font:a})*n)&&(o=l);return 0!==o&&(s=t.length),{w:o/=i,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var a=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==a.lineNumber&&(a.lineNumber===t.lineNumber?(t.x=(a.x||0)+(a.width||0),t.y=a.y||0):a.y+a.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,c&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=a.y+a.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-i,t.y+i,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+i,{align:"center",baseline:"top",maxWidth:t.width-i-i}):this.text(t.text,t.x+i,t.y+i,{align:"left",baseline:"top",maxWidth:t.width-i-i})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,c,u,d){if(r.call(this),!c)throw new Error("No data for PDF table.");var h,f,p,m,g=[],v=[],b=[],_={},y={},w=[],x=[],k=(d=d||{}).autoSize||!1,S=!1!==d.printHeaders,C=d.css&&void 0!==d.css["font-size"]?16*d.css["font-size"]:d.fontSize||12,A=d.margins||Object.assign({width:this.getPageWidth()},e),E="number"==typeof d.padding?d.padding:3,T=d.headerBackgroundColor||"#c8c8c8",P=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=S,this.internal.__cell__.margins=A,this.internal.__cell__.table_font_size=C,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=T,this.internal.__cell__.headerTextColor=P,this.setFontSize(C),null==u)v=g=Object.keys(c[0]),b=g.map((function(){return"left"}));else if(Array.isArray(u)&&"object"===(0,a.A)(u[0]))for(g=u.map((function(t){return t.name})),v=u.map((function(t){return t.prompt||t.name||""})),b=u.map((function(t){return t.align||"left"})),h=0;h<u.length;h+=1)y[u[h].name]=.7499990551181103*u[h].width;else Array.isArray(u)&&"string"==typeof u[0]&&(v=g=u,b=g.map((function(){return"left"})));if(k||Array.isArray(u)&&"string"==typeof u[0])for(h=0;h<g.length;h+=1){for(_[m=g[h]]=c.map((function(t){return t[m]})),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(v[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=_[m],this.setFont(void 0,"normal"),p=0;p<f.length;p+=1)w.push(this.getTextDimensions(f[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[m]=Math.max.apply(null,w)+E+E,w=[]}if(S){var N={};for(h=0;h<g.length;h+=1)N[g[h]]={},N[g[h]].text=v[h],N[g[h]].align=b[h];var L=l.call(this,N,y);x=g.map((function(e){return new o(t,n,y[e],L,N[e].text,void 0,N[e].align)})),this.setTableHeaderRow(x),this.printHeaderRow(1,!1)}var O=u.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(h=0;h<c.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:c[h]},this);var M=l.call(this,c[h],y);for(p=0;p<g.length;p+=1){var R=c[h][g[p]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:h,col:p,data:R},this),s.call(this,new o(t,n,y[g[p]],M,R,h+2,O[g[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var l=function(t,e){var n=this.internal.__cell__.padding,a=this.internal.__cell__.table_font_size,r=this.internal.scaleFactor;return Object.keys(t).map((function(a){var r=t[a];return this.splitTextToSize(r.hasOwnProperty("text")?r.text:r,e[a]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*a/r+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var a;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var i=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(i[0],i[1],i[2],i[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){a=this.internal.__cell__.tableHeaderRow[c].clone(),e&&(a.y=this.internal.__cell__.margins.top||0,l.push(a)),a.lineNumber=t;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,a),this.setTextColor(u)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(Gr.API);var Bi={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},zi=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ui=ji(zi),Hi=[100,200,300,400,500,600,700,800,900],Vi=ji(Hi);function Wi(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return Bi[t=t||"normal"]?t:"normal"}(t.style),a=function(t){return t?"number"==typeof t?t>=100&&t<=900&&t%100==0?t:400:/^\d00$/.test(t)?parseInt(t):"bold"===t?700:400:400}(t.weight),r=function(t){return"number"==typeof Ui[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:a,stretch:r,src:t.src||[],ref:t.ref||{name:e,style:[r,n,a].join(" ")}}}function qi(t,e,n,a){var r;for(r=n;r>=0&&r<e.length;r+=a)if(t[e[r]])return t[e[r]];for(r=n;r>=0&&r<e.length;r-=a)if(t[e[r]])return t[e[r]]}var $i={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ki={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Gi(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Yi(t){return t.trimLeft()}function Xi(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function Ji(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Zi,Qi,to,eo,no,ao=["times"];function ro(t,e,n,a,r){var i=4,o=so;switch(r){case Gr.API.image_compression.FAST:i=1,o=oo;break;case Gr.API.image_compression.MEDIUM:i=6,o=lo;break;case Gr.API.image_compression.SLOW:i=9,o=co}t=function(t,e,n,a){for(var r,i=t.length/e,o=new Uint8Array(t.length+i),s=[io,oo,so,lo,co],l=0;l<i;l+=1){var c=l*e,u=t.subarray(c,c+e);if(a)o.set(a(u,n,r),c+l);else{for(var d=s.length,h=[],f=0;f<d;f+=1)h[f]=s[f](u,n,r);var p=ho(h.concat());o.set(h[p],c+l)}r=u}return o}(t,e,Math.ceil(n*a/8),o);var s=U(t,{level:i});return Gr.API.__addimage__.arrayBufferToBinaryString(s)}function io(t){var e=Array.apply([],t);return e.unshift(0),e}function oo(t,e){var n=t.length,a=[];a[0]=1;for(var r=0;r<n;r+=1){var i=t[r-e]||0;a[r+1]=t[r]-i+256&255}return a}function so(t,e,n){var a=t.length,r=[];r[0]=2;for(var i=0;i<a;i+=1){var o=n&&n[i]||0;r[i+1]=t[i]-o+256&255}return r}function lo(t,e,n){var a=t.length,r=[];r[0]=3;for(var i=0;i<a;i+=1){var o=t[i-e]||0,s=n&&n[i]||0;r[i+1]=t[i]+256-(o+s>>>1)&255}return r}function co(t,e,n){var a=t.length,r=[];r[0]=4;for(var i=0;i<a;i+=1){var o=uo(t[i-e]||0,n&&n[i]||0,n&&n[i-e]||0);r[i+1]=t[i]-o+256&255}return r}function uo(t,e,n){if(t===e&&e===n)return t;var a=Math.abs(e-n),r=Math.abs(t-n),i=Math.abs(t+e-n-n);return a<=r&&a<=i?t:r<=i?e:n}function ho(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))}function fo(t,e,n){var a=e*n,r=Math.floor(a/8),i=16-(a-8*r+n),o=(1<<n)-1;return mo(t,r)>>i&o}function po(t,e,n,a){var r=n*a,i=Math.floor(r/8),o=16-(r-8*i+a),s=(1<<a)-1,l=(e&s)<<o;!function(t,e,n){if(e+1<t.byteLength)t.setUint16(e,n,!1);else{var a=n>>8&255;t.setUint8(e,a)}}(t,i,mo(t,i)&~(s<<o)&65535|l)}function mo(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function go(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,a=t[e++]|t[e++]<<8,r=t[e++],i=r>>7,o=1<<1+(7&r);t[e++],t[e++];var s=null,l=null;i&&(s=e,l=o,e+=3*o);var c=!0,u=[],d=0,h=null,f=0,p=null;for(this.width=n,this.height=a;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var m=t[e++];d=t[e++]|t[e++]<<8,h=t[e++],1&m||(h=null),f=m>>2&7,e++;break;case 254:for(;;){if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,_=t[e++]|t[e++]<<8,y=t[e++],w=y>>6&1,x=1<<1+(7&y),k=s,S=l,C=!1;y>>7&&(C=!0,k=e,S=x,e+=3*x);var A=e;for(e++;;){var E;if(!((E=t[e++])>=0))throw Error("Invalid block size");if(0===E)break;e+=E}u.push({x:g,y:v,width:b,height:_,has_local_palette:C,palette_offset:k,palette_size:S,data_offset:A,data_length:e-A,transparent_index:h,interlaced:!!w,delay:d,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=u.length)throw new Error("Frame index out of range.");return u[t]},this.decodeAndBlitFrameBGRA=function(e,a){var r=this.frameInfo(e),i=r.width*r.height;if(i>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(i);vo(t,r.data_offset,o,i);var s=r.palette_offset,l=r.transparent_index;null===l&&(l=256);var c=r.width,u=n-c,d=c,h=4*(r.y*n+r.x),f=4*((r.y+r.height)*n+r.x),p=h,m=4*u;!0===r.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=o.length;v<b;++v){var _=o[v];if(0===d&&(d=c,(p+=m)>=f&&(m=4*u+4*n*(g-1),p=h+(c+u)*(g<<1),g>>=1)),_===l)p+=4;else{var y=t[s+3*_],w=t[s+3*_+1],x=t[s+3*_+2];a[p++]=x,a[p++]=w,a[p++]=y,a[p++]=255}--d}},this.decodeAndBlitFrameRGBA=function(e,a){var r=this.frameInfo(e),i=r.width*r.height;if(i>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var o=new Uint8Array(i);vo(t,r.data_offset,o,i);var s=r.palette_offset,l=r.transparent_index;null===l&&(l=256);var c=r.width,u=n-c,d=c,h=4*(r.y*n+r.x),f=4*((r.y+r.height)*n+r.x),p=h,m=4*u;!0===r.interlaced&&(m+=4*n*7);for(var g=8,v=0,b=o.length;v<b;++v){var _=o[v];if(0===d&&(d=c,(p+=m)>=f&&(m=4*u+4*n*(g-1),p=h+(c+u)*(g<<1),g>>=1)),_===l)p+=4;else{var y=t[s+3*_],w=t[s+3*_+1],x=t[s+3*_+2];a[p++]=y,a[p++]=w,a[p++]=x,a[p++]=255}--d}}}function vo(t,e,n,a){for(var r=t[e++],i=1<<r,o=i+1,s=o+1,l=r+1,c=(1<<l)-1,u=0,d=0,h=0,f=t[e++],p=new Int32Array(4096),m=null;;){for(;u<16&&0!==f;)d|=t[e++]<<u,u+=8,1===f?f=t[e++]:--f;if(u<l)break;var g=d&c;if(d>>=l,u-=l,g!==i){if(g===o)break;for(var v=g<s?g:m,b=0,_=v;_>i;)_=p[_]>>8,++b;var y=_;if(h+b+(v!==g?1:0)>a)return void vr.log("Warning, gif stream longer than expected.");n[h++]=y;var w=h+=b;for(v!==g&&(n[h++]=y),_=v;b--;)_=p[_],n[--w]=255&_,_>>=8;null!==m&&s<4096&&(p[s++]=m<<8|y,s>=c+1&&l<12&&(++l,c=c<<1|1)),m=g}else s=o+1,c=(1<<(l=r+1))-1,m=null}return h!==a&&vr.log("Warning, gif stream shorter than expected."),n}function bo(t){var e,n,a,r,i,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),d=new Array(65535),h=new Array(65535),f=new Array(64),p=new Array(64),m=[],g=0,v=7,b=new Array(64),_=new Array(64),y=new Array(64),w=new Array(256),x=new Array(2048),k=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function O(t,e){for(var n=0,a=0,r=new Array,i=1;i<=16;i++){for(var o=1;o<=t[i];o++)r[e[a]]=[],r[e[a]][0]=n,r[e[a]][1]=i,a++,n++;n*=2}return r}function M(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(g|=1<<v),n--,--v<0&&(255==g?(R(255),R(0)):R(g),v=7,g=0)}function R(t){m.push(t)}function I(t){R(t>>8&255),R(255&t)}function D(t,e,n,a,r){for(var i,o=r[0],s=r[240],l=function(t,e){var n,a,r,i,o,s,l,c,u,d,h=0;for(u=0;u<8;++u){n=t[h],a=t[h+1],r=t[h+2],i=t[h+3],o=t[h+4],s=t[h+5],l=t[h+6];var p=n+(c=t[h+7]),m=n-c,g=a+l,v=a-l,b=r+s,_=r-s,y=i+o,w=i-o,x=p+y,k=p-y,S=g+b,C=g-b;t[h]=x+S,t[h+4]=x-S;var A=.707106781*(C+k);t[h+2]=k+A,t[h+6]=k-A;var E=.382683433*((x=w+_)-(C=v+m)),T=.5411961*x+E,P=1.306562965*C+E,N=.707106781*(S=_+v),L=m+N,O=m-N;t[h+5]=O+T,t[h+3]=O-T,t[h+1]=L+P,t[h+7]=L-P,h+=8}for(h=0,u=0;u<8;++u){n=t[h],a=t[h+8],r=t[h+16],i=t[h+24],o=t[h+32],s=t[h+40],l=t[h+48];var M=n+(c=t[h+56]),R=n-c,I=a+l,D=a-l,F=r+s,j=r-s,B=i+o,z=i-o,U=M+B,H=M-B,V=I+F,W=I-F;t[h]=U+V,t[h+32]=U-V;var q=.707106781*(W+H);t[h+16]=H+q,t[h+48]=H-q;var $=.382683433*((U=z+j)-(W=D+R)),K=.5411961*U+$,G=1.306562965*W+$,Y=.707106781*(V=j+D),X=R+Y,J=R-Y;t[h+40]=J+K,t[h+24]=J-K,t[h+8]=X+G,t[h+56]=X-G,h++}for(u=0;u<64;++u)d=t[u]*e[u],f[u]=d>0?d+.5|0:d-.5|0;return f}(t,e),c=0;c<64;++c)p[k[c]]=l[c];var u=p[0]-n;n=p[0],0==u?M(a[0]):(M(a[h[i=32767+u]]),M(d[i]));for(var m=63;m>0&&0==p[m];)m--;if(0==m)return M(o),n;for(var g,v=1;v<=m;){for(var b=v;0==p[v]&&v<=m;)++v;var _=v-b;if(_>=16){g=_>>4;for(var y=1;y<=g;++y)M(s);_&=15}i=32767+p[v],M(r[(_<<4)+h[i]]),M(d[i]),v++}return 63!=m&&M(o),n}function F(t){t=Math.min(Math.max(t,1),100),i!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var a=o((e[n]*t+50)/100);a=Math.min(Math.max(a,1),255),s[k[n]]=a}for(var r=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var d=o((r[i]*t+50)/100);d=Math.min(Math.max(d,1),255),l[k[i]]=d}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,p=0;p<8;p++)for(var m=0;m<8;m++)c[f]=1/(s[k[f]]*h[p]*h[m]*8),u[f]=1/(l[k[f]]*h[p]*h[m]*8),f++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),i=t)}this.encode=function(t,i){i&&F(i),m=new Array,g=0,v=7,I(65496),I(65504),I(16),R(74),R(70),R(73),R(70),R(0),R(1),R(1),R(0),I(1),I(1),R(0),R(0),function(){I(65499),I(132),R(0);for(var t=0;t<64;t++)R(s[t]);R(1);for(var e=0;e<64;e++)R(l[e])}(),function(t,e){I(65472),I(17),R(8),I(e),I(t),R(3),R(1),R(17),R(0),R(2),R(17),R(1),R(3),R(17),R(1)}(t.width,t.height),function(){I(65476),I(418),R(0);for(var t=0;t<16;t++)R(S[t+1]);for(var e=0;e<=11;e++)R(C[e]);R(16);for(var n=0;n<16;n++)R(A[n+1]);for(var a=0;a<=161;a++)R(E[a]);R(1);for(var r=0;r<16;r++)R(T[r+1]);for(var i=0;i<=11;i++)R(P[i]);R(17);for(var o=0;o<16;o++)R(N[o+1]);for(var s=0;s<=161;s++)R(L[s])}(),I(65498),I(12),R(3),R(1),R(0),R(2),R(17),R(3),R(17),R(0),R(63),R(0);var o=0,d=0,h=0;g=0,v=7,this.encode.displayName="_encode_";for(var f,p,w,k,O,j,B,z,U,H=t.data,V=t.width,W=t.height,q=4*V,$=0;$<W;){for(f=0;f<q;){for(O=q*$+f,B=-1,z=0,U=0;U<64;U++)j=O+(z=U>>3)*q+(B=4*(7&U)),$+z>=W&&(j-=q*($+1+z-W)),f+B>=q&&(j-=f+B-q+4),p=H[j++],w=H[j++],k=H[j++],b[U]=(x[p]+x[w+256|0]+x[k+512|0]>>16)-128,_[U]=(x[p+768|0]+x[w+1024|0]+x[k+1280|0]>>16)-128,y[U]=(x[p+1280|0]+x[w+1536|0]+x[k+1792|0]>>16)-128;o=D(b,c,o,e,a),d=D(_,u,d,n,r),h=D(y,u,h,n,r),f+=32}$+=8}if(v>=0){var K=[];K[1]=v+1,K[0]=(1<<v+1)-1,M(K)}return I(65497),new Uint8Array(m)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)w[e]=t(e)}(),e=O(S,C),n=O(T,P),a=O(A,E),r=O(N,L),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var a=t;a<e;a++)h[32767+a]=n,d[32767+a]=[],d[32767+a][1]=n,d[32767+a][0]=a;for(var r=-(e-1);r<=-t;r++)h[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=e-1+r;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)x[t]=19595*t,x[t+256|0]=38470*t,x[t+512|0]=7471*t+32768,x[t+768|0]=-11059*t,x[t+1024|0]=-21709*t,x[t+1280|0]=32768*t+8421375,x[t+1536|0]=-27439*t,x[t+1792|0]=-5329*t}(),F(t)}function _o(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function yo(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var a=0;4>a;a++)if(t[e+a]!=n.charCodeAt(a))return!0;return!1}function a(t,e,n,a,r){for(var i=0;i<r;i++)t[e+i]=n[a+i]}function r(t,e,n,a){for(var r=0;r<a;r++)t[e+r]=n}function i(t){return new Int32Array(t)}function o(t,e){for(var n=[],a=0;a<t;a++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,a,r){for(var i=r[a],o=0;o<i&&(n.push(r.length>a+1?[]:new e),!(r.length<a+1));o++)t(n[o],a+1,r)}(n,0,t),n}var l=function(){var t=this;function l(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function c(t,n,a,r,i){e(!(r%a));do{t[n+(r-=a)]=i}while(0<r)}function u(t,n,a,r,o){if(e(2328>=o),512>=o)var s=i(512);else if(null==(s=i(o)))return 0;return function(t,n,a,r,o,s){var u,h,f=n,p=1<<a,m=i(16),g=i(16);for(e(0!=o),e(null!=r),e(null!=t),e(0<a),h=0;h<o;++h){if(15<r[h])return 0;++m[r[h]]}if(m[0]==o)return 0;for(g[1]=0,u=1;15>u;++u){if(m[u]>1<<u)return 0;g[u+1]=g[u]+m[u]}for(h=0;h<o;++h)u=r[h],0<r[h]&&(s[g[u]++]=h);if(1==g[15])return(r=new d).g=0,r.value=s[0],c(t,f,1,p,r),p;var v,b=-1,_=p-1,y=0,w=1,x=1,k=1<<a;for(h=0,u=1,o=2;u<=a;++u,o<<=1){if(w+=x<<=1,0>(x-=m[u]))return 0;for(;0<m[u];--m[u])(r=new d).g=u,r.value=s[h++],c(t,f+y,o,k,r),y=l(y,u)}for(u=a+1,o=2;15>=u;++u,o<<=1){if(w+=x<<=1,0>(x-=m[u]))return 0;for(;0<m[u];--m[u]){if(r=new d,(y&_)!=b){for(f+=k,v=1<<(b=u)-a;15>b&&!(0>=(v-=m[b]));)++b,v<<=1;p+=k=1<<(v=b-a),t[n+(b=y&_)].g=v+a,t[n+b].value=f-n-b}r.g=u-a,r.value=s[h++],c(t,f+(y>>a),o,k,r),y=l(y,u)}}return w!=2*g[15]-1?0:p}(t,n,a,r,o,s)}function d(){this.value=this.g=0}function h(){this.value=this.g=0}function f(){this.G=o(5,d),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(jn,h)}function p(t,n,a,r){e(null!=t),e(null!=n),e(2147483648>r),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=a,t.Jd=n,t.Yc=a+r,t.Zc=4<=r?a+r-4+1:a,A(t)}function m(t,e){for(var n=0;0<e--;)n|=T(t,128)<<e;return n}function g(t,e){var n=m(t,e);return E(t)?-n:n}function v(t,n,a,r){var i,o=0;for(e(null!=t),e(null!=n),e(4294967288>r),t.Sb=r,t.Ra=0,t.u=0,t.h=0,4<r&&(r=4),i=0;i<r;++i)o+=n[a+i]<<8*i;t.Ra=o,t.bb=r,t.oa=n,t.pa=a}function b(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Un-8>>>0,++t.bb,t.u-=8;k(t)&&(t.h=1,t.u=0)}function _(t,n){if(e(0<=n),!t.h&&n<=zn){var a=x(t)&Bn[n];return t.u+=n,b(t),a}return t.h=1,t.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(t){return t.Ra>>>(t.u&Un-1)>>>0}function k(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Un}function S(t,e){t.u=e,t.h=k(t)}function C(t){t.u>=Hn&&(e(t.u>=Hn),b(t))}function A(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function E(t){return m(t,1)}function T(t,e){var n=t.Ca;0>t.b&&A(t);var a=t.b,r=n*e>>>8,i=(t.I>>>a>r)+0;for(i?(n-=r,t.I-=r+1<<a>>>0):n=r+1,a=n,r=0;256<=a;)r+=8,a>>=8;return a=7^r+Vn[a],t.b-=a,t.Ca=(n<<a)-1,i}function P(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n}function N(t,e){return t[e+0]|t[e+1]<<8}function L(t,e){return N(t,e)|t[e+2]<<16}function O(t,e){return N(t,e)|N(t,e+2)<<16}function M(t,n){var a=1<<n;return e(null!=t),e(0<n),t.X=i(a),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function R(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),a(n.X,0,t.X,0,1<<n.Xa)}function I(){this.X=[],this.Xa=this.Mb=0}function D(t,n,a,r){e(null!=a),e(null!=r);var i=a[0],o=r[0];return 0==i&&(i=(t*o+n/2)/n),0==o&&(o=(n*i+t/2)/t),0>=i||0>=o?0:(a[0]=i,r[0]=o,1)}function F(t,e){return t+(1<<e)-1>>>e}function j(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function B(e,n){t[n]=function(n,a,r,i,o,s,l){var c;for(c=0;c<o;++c){var u=t[e](s[l+c-1],r,i+c);s[l+c]=j(n[a+c],u)}}}function z(){this.ud=this.hd=this.jd=0}function U(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function H(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function V(t,e){return H(t+(t-e+.5>>1))}function W(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function q(t,e,n,a,r,i,o){for(a=i[o-1],n=0;n<r;++n)i[o+n]=a=j(t[e+n],a)}function $(t,e,n,a,r){var i;for(i=0;i<n;++i){var o=t[e+i],s=o>>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));a[r+i]=(4278255360&o)+l>>>0}}function K(t,e){e.jd=255&t,e.hd=t>>8&255,e.ud=t>>16&255}function G(t,e,n,a,r,i){var o;for(o=0;o<a;++o){var s=e[n+o],l=s>>>8,c=s,u=255&(u=(u=s>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(u<<24>>24)>>>5)),r[i+o]=(4278255360&s)+(u<<16)+c}}function Y(e,n,a,r,i){t[n]=function(t,e,n,a,o,s,l,c,u){for(a=l;a<c;++a)for(l=0;l<u;++l)o[s++]=i(n[r(t[e++])])},t[e]=function(e,n,o,s,l,c,u){var d=8>>e.b,h=e.Ea,f=e.K[0],p=e.w;if(8>d)for(e=(1<<e.b)-1,p=(1<<d)-1;n<o;++n){var m,g=0;for(m=0;m<h;++m)m&e||(g=r(s[l++])),c[u++]=i(f[g&p]),g>>=d}else t["VP8LMapColor"+a](s,l,f,p,c,u,n,o,h)}}function X(t,e,n,a,r){for(n=e+n;e<n;){var i=t[e++];a[r++]=i>>16&255,a[r++]=i>>8&255,a[r++]=255&i}}function J(t,e,n,a,r){for(n=e+n;e<n;){var i=t[e++];a[r++]=i>>16&255,a[r++]=i>>8&255,a[r++]=255&i,a[r++]=i>>24&255}}function Z(t,e,n,a,r){for(n=e+n;e<n;){var i=(o=t[e++])>>16&240|o>>12&15,o=240&o|o>>28&15;a[r++]=i,a[r++]=o}}function Q(t,e,n,a,r){for(n=e+n;e<n;){var i=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;a[r++]=i,a[r++]=o}}function tt(t,e,n,a,r){for(n=e+n;e<n;){var i=t[e++];a[r++]=255&i,a[r++]=i>>8&255,a[r++]=i>>16&255}}function et(t,e,n,r,i,o){if(0==o)for(n=e+n;e<n;)P(r,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),i+=32;else a(r,i,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function at(t){return t==Ha||t==Va||t==Wa||t==qa}function rt(){this.eb=[],this.size=this.A=this.fb=0}function it(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new rt,this.f.kb=new it,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ut(t,e){var n=t.T,r=e.ba.f.RGBA,i=r.eb,o=r.fb+t.ka*r.A,s=gr[e.ba.S],l=t.y,c=t.O,u=t.f,d=t.N,h=t.ea,f=t.W,p=e.cc,m=e.dc,g=e.Mc,v=e.Nc,b=t.ka,_=t.ka+t.T,y=t.U,w=y+1>>1;for(0==b?s(l,c,null,null,u,d,h,f,u,d,h,f,i,o,null,null,y):(s(e.ec,e.fc,l,c,p,m,g,v,u,d,h,f,i,o-r.A,i,o,y),++n);b+2<_;b+=2)p=u,m=d,g=h,v=f,d+=t.Rc,f+=t.Rc,o+=2*r.A,s(l,(c+=2*t.fa)-t.fa,l,c,p,m,g,v,u,d,h,f,i,o-r.A,i,o,y);return c+=t.fa,t.j+_<t.o?(a(e.ec,e.fc,l,c,y),a(e.cc,e.dc,u,d,w),a(e.Mc,e.Nc,h,f,w),n--):1&_||s(l,c,null,null,u,d,h,f,u,d,h,f,i,o+r.A,null,null,y),n}function dt(t,n,a){var r=t.F,i=[t.J];if(null!=r){var o=t.U,s=n.ba.S,l=s==Ba||s==Wa;n=n.ba.f.RGBA;var c=[0],u=t.ka;c[0]=t.T,t.Kb&&(0==u?--c[0]:(--u,i[0]-=t.width),t.j+t.ka+t.T==t.o&&(c[0]=t.o-t.j-u));var d=n.eb;u=n.fb+u*n.A,t=Sa(r,i[0],t.width,o,c,d,u+(l?0:3),n.A),e(a==c),t&&at(s)&&xa(d,u,l,o,c,n.A)}return 0}function ht(t){var e=t.ma,n=e.ba.S,a=11>n,r=n==Da||n==ja||n==Ba||n==za||12==n||at(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!In(e.Oa,t,r?11:12))return 0;if(r&&at(n)&&bn(),t.da)alert("todo:use_scaling");else{if(a){if(e.Ib=ct,t.Kb){if(n=t.U+1>>1,e.memory=i(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=ut,bn()}}else alert("todo:EmitYUV");r&&(e.Jb=dt,a&&gn())}if(a&&!Nr){for(t=0;256>t;++t)Lr[t]=89858*(t-128)+Cr>>Sr,Rr[t]=-22014*(t-128)+Cr,Mr[t]=-45773*(t-128),Or[t]=113618*(t-128)+Cr>>Sr;for(t=Ar;t<Er;++t)e=76283*(t-16)+Cr>>Sr,Ir[t-Ar]=qt(e,255),Dr[t-Ar]=qt(e+8>>4,15);Nr=1}return 1}function ft(t){var n=t.ma,a=t.U,r=t.T;return e(!(1&t.ka)),0>=a||0>=r?0:(a=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,a),n.Dc+=a,1)}function pt(t){t.ma.memory=null}function mt(t,e,n,a){return 47!=_(t,8)?0:(e[0]=_(t,14)+1,n[0]=_(t,14)+1,a[0]=_(t,1),0!=_(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+_(e,n)+1}function vt(t,e){return 120<e?e-120:1<=(n=((n=Ja[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function bt(t,e,n){var a=x(n),r=t[e+=255&a].g-8;return 0<r&&(S(n,n.u+8),a=x(n),e+=t[e].value,e+=a&(1<<r)-1),S(n,n.u+t[e].g),t[e].value}function _t(t,n,a){return a.g+=t.g,a.value+=t.value<<n>>>0,e(8>=a.g),t.g}function yt(t,n,a){var r=t.xc;return e((n=0==r?0:t.vc[t.md*(a>>r)+(n>>r)])<t.Wb),t.Ya[n]}function wt(t,n,r,i){var o=t.ab,s=t.c*n,l=t.C;n=l+n;var c=r,u=i;for(i=t.Ta,r=t.Ua;0<o--;){var d=t.gc[o],h=l,f=n,p=c,m=u,g=(u=i,c=r,d.Ea);switch(e(h<f),e(f<=d.nc),d.hc){case 2:$n(p,m,(f-h)*g,u,c);break;case 0:var v=h,b=f,_=u,y=c,w=(A=d).Ea;0==v&&(Wn(p,m,null,null,1,_,y),q(p,m+1,0,0,w-1,_,y+1),m+=w,y+=w,++v);for(var x=1<<A.b,k=x-1,S=F(w,A.b),C=A.K,A=A.w+(v>>A.b)*S;v<b;){var E=C,T=A,P=1;for(qn(p,m,_,y-w,1,_,y);P<w;){var N=(P&~k)+x;N>w&&(N=w),(0,Jn[E[T++]>>8&15])(p,m+ +P,_,y+P-w,N-P,_,y+P),P=N}m+=w,y+=w,++v&k||(A+=S)}f!=d.nc&&a(u,c-g,u,c+(f-h-1)*g,g);break;case 1:for(g=p,b=m,w=(p=d.Ea)-(y=p&~(_=(m=1<<d.b)-1)),v=F(p,d.b),x=d.K,d=d.w+(h>>d.b)*v;h<f;){for(k=x,S=d,C=new z,A=b+y,E=b+p;b<A;)K(k[S++],C),Zn(C,g,b,m,u,c),b+=m,c+=m;b<E&&(K(k[S++],C),Zn(C,g,b,w,u,c),b+=w,c+=w),++h&_||(d+=v)}break;case 3:if(p==u&&m==c&&0<d.b){for(b=u,p=g=c+(f-h)*g-(y=(f-h)*F(d.Ea,d.b)),m=u,_=c,v=[],y=(w=y)-1;0<=y;--y)v[y]=m[_+y];for(y=w-1;0<=y;--y)b[p+y]=v[y];Kn(d,h,f,u,g,u,c)}else Kn(d,h,f,p,m,u,c)}c=i,u=r}u!=r&&a(i,r,c,u,s)}function xt(t,n){var a=t.V,r=t.Ba+t.c*t.C,i=n-t.C;if(e(n<=t.l.o),e(16>=i),0<i){var o=t.l,s=t.Ta,l=t.Ua,c=o.width;if(wt(t,i,a,r),i=l=[l],e((a=t.C)<(r=n)),e(o.v<o.va),r>o.o&&(r=o.o),a<o.j){var u=o.j-a;a=o.j,i[0]+=u*c}if(a>=r?a=0:(i[0]+=4*o.v,o.ka=a-o.j,o.U=o.va-o.v,o.T=r-a,a=1),a){if(l=l[0],11>(a=t.ca).S){var d=a.f.RGBA,h=(r=a.S,i=o.U,o=o.T,u=d.eb,d.A),f=o;for(d=d.fb+t.Ma*d.A;0<f--;){var p=s,m=l,g=i,v=u,b=d;switch(r){case Ia:Qn(p,m,g,v,b);break;case Da:ta(p,m,g,v,b);break;case Ha:ta(p,m,g,v,b),xa(v,b,0,g,1,0);break;case Fa:aa(p,m,g,v,b);break;case ja:et(p,m,g,v,b,1);break;case Va:et(p,m,g,v,b,1),xa(v,b,0,g,1,0);break;case Ba:et(p,m,g,v,b,0);break;case Wa:et(p,m,g,v,b,0),xa(v,b,1,g,1,0);break;case za:ea(p,m,g,v,b);break;case qa:ea(p,m,g,v,b),ka(v,b,g,1,0);break;case Ua:na(p,m,g,v,b);break;default:e(0)}l+=c,d+=h}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=a.height)}}t.C=n,e(t.C<=t.i)}function kt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,a=t.Ya[e].H;if(0<n[1][a[1]+0].g||0<n[2][a[2]+0].g||0<n[3][a[3]+0].g)return 0}return 1}function St(t,n,a,r,i,o){if(0!=t.Z){var s=t.qd,l=t.rd;for(e(null!=mr[t.Z]);n<a;++n)mr[t.Z](s,l,r,i,r,i,o),s=r,l=i,i+=o;t.qd=s,t.rd=l}}function Ct(t,n){var a=t.l.ma,r=0==a.Z||1==a.Z?t.l.j:t.C;if(r=t.C<r?r:t.C,e(n<=t.l.o),n>r){var i=t.l.width,o=a.ca,s=a.tb+i*r,l=t.V,c=t.Ba+t.c*r,u=t.gc;e(1==t.ab),e(3==u[0].hc),Yn(u[0],r,n,l,c,o,s),St(a,r,n,o,s,i)}t.C=t.Ma=n}function At(t,n,a,r,i,o,s){var l=t.$/r,c=t.$%r,u=t.m,d=t.s,h=a+t.$,f=h;i=a+r*i;var p=a+r*o,m=280+d.ua,g=t.Pb?l:16777216,v=0<d.ua?d.Wa:null,b=d.wc,_=h<p?yt(d,c,l):null;e(t.C<o),e(p<=i);var y=!1;t:for(;;){for(;y||h<p;){var w=0;if(l>=g){var A=h-a;e((g=t).Pb),g.wd=g.m,g.xd=A,0<g.s.ua&&R(g.s.Wa,g.s.vb),g=l+Qa}if(c&b||(_=yt(d,c,l)),e(null!=_),_.Qb&&(n[h]=_.qb,y=!0),!y)if(C(u),_.jc){w=u,A=n;var E=h,T=_.pd[x(w)&jn-1];e(_.jc),256>T.g?(S(w,w.u+T.g),A[E]=T.value,w=0):(S(w,w.u+T.g-256),e(256<=T.value),w=T.value),0==w&&(y=!0)}else w=bt(_.G[0],_.H[0],u);if(u.h)break;if(y||256>w){if(!y)if(_.nd)n[h]=(_.qb|w<<8)>>>0;else{if(C(u),y=bt(_.G[1],_.H[1],u),C(u),A=bt(_.G[2],_.H[2],u),E=bt(_.G[3],_.H[3],u),u.h)break;n[h]=(E<<24|y<<16|w<<8|A)>>>0}if(y=!1,++h,++c>=r&&(c=0,++l,null!=s&&l<=o&&!(l%16)&&s(t,l),null!=v))for(;f<h;)w=n[f++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else if(280>w){if(w=gt(w-256,u),A=bt(_.G[4],_.H[4],u),C(u),A=vt(r,A=gt(A,u)),u.h)break;if(h-a<A||i-h<w)break t;for(E=0;E<w;++E)n[h+E]=n[h+E-A];for(h+=w,c+=w;c>=r;)c-=r,++l,null!=s&&l<=o&&!(l%16)&&s(t,l);if(e(h<=i),c&b&&(_=yt(d,c,l)),null!=v)for(;f<h;)w=n[f++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else{if(!(w<m))break t;for(y=w-280,e(null!=v);f<h;)w=n[f++],v.X[(506832829*w&4294967295)>>>v.Mb]=w;w=h,e(!(y>>>(A=v).Xa)),n[w]=A.X[y],y=!0}y||e(u.h==k(u))}if(t.Pb&&u.h&&h<i)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&R(t.s.vb,t.s.Wa);else{if(u.h)break t;null!=s&&s(t,l>o?o:l),t.a=0,t.$=h-a}return 1}return t.a=3,0}function Et(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Tt(){var e=new on;return null==e?null:(e.a=0,e.xb=pr,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),$n=$,Zn=G,Qn=X,ta=J,ea=Z,na=Q,aa=tt,t.VP8LMapColor32b=Gn,t.VP8LMapColor8b=Xn,e)}function Pt(t,n,a,s,l){var c=1,h=[t],p=[n],m=s.m,g=s.s,v=null,b=0;t:for(;;){if(a)for(;c&&_(m,1);){var y=h,w=p,k=s,A=1,E=k.m,T=k.gc[k.ab],P=_(E,2);if(k.Oc&1<<P)c=0;else{switch(k.Oc|=1<<P,T.hc=P,T.Ea=y[0],T.nc=w[0],T.K=[null],++k.ab,e(4>=k.ab),P){case 0:case 1:T.b=_(E,3)+2,A=Pt(F(T.Ea,T.b),F(T.nc,T.b),0,k,T.K),T.K=T.K[0];break;case 3:var N,L=_(E,8)+1,O=16<L?0:4<L?1:2<L?2:3;if(y[0]=F(T.Ea,O),T.b=O,N=A=Pt(L,1,0,k,T.K)){var R,I=L,D=T,B=1<<(8>>D.b),z=i(B);if(null==z)N=0;else{var U=D.K[0],H=D.w;for(z[0]=D.K[0][0],R=1;R<1*I;++R)z[R]=j(U[H+R],z[R-1]);for(;R<4*B;++R)z[R]=0;D.K[0]=null,D.K[0]=z,N=1}}A=N;break;case 2:break;default:e(0)}c=A}}if(h=h[0],p=p[0],c&&_(m,1)&&!(c=1<=(b=_(m,4))&&11>=b)){s.a=3;break t}var V;if(V=c)e:{var W,q,$,K=s,G=h,Y=p,X=b,J=a,Z=K.m,Q=K.s,tt=[null],et=1,nt=0,at=Za[X];n:for(;;){if(J&&_(Z,1)){var rt=_(Z,3)+2,it=F(G,rt),ot=F(Y,rt),st=it*ot;if(!Pt(it,ot,0,K,tt))break n;for(tt=tt[0],Q.xc=rt,W=0;W<st;++W){var lt=tt[W]>>8&65535;tt[W]=lt,lt>=et&&(et=lt+1)}}if(Z.h)break n;for(q=0;5>q;++q){var ct=Ga[q];!q&&0<X&&(ct+=1<<X),nt<ct&&(nt=ct)}var ut=o(et*at,d),dt=et,ht=o(dt,f);if(null==ht)var ft=null;else e(65536>=dt),ft=ht;var pt=i(nt);if(null==ft||null==pt||null==ut){K.a=1;break n}var mt=ut;for(W=$=0;W<et;++W){var gt=ft[W],vt=gt.G,bt=gt.H,yt=0,wt=1,xt=0;for(q=0;5>q;++q){ct=Ga[q],vt[q]=mt,bt[q]=$,!q&&0<X&&(ct+=1<<X);a:{var kt,St=ct,Ct=K,Tt=pt,Nt=mt,Lt=$,Ot=0,Mt=Ct.m,Rt=_(Mt,1);if(r(Tt,0,0,St),Rt){var It=_(Mt,1)+1,Dt=_(Mt,1),Ft=_(Mt,0==Dt?1:8);Tt[Ft]=1,2==It&&(Tt[Ft=_(Mt,8)]=1);var jt=1}else{var Bt=i(19),zt=_(Mt,4)+4;if(19<zt){Ct.a=3;var Ut=0;break a}for(kt=0;kt<zt;++kt)Bt[Xa[kt]]=_(Mt,3);var Ht=void 0,Vt=void 0,Wt=Ct,qt=Bt,$t=St,Kt=Tt,Gt=0,Yt=Wt.m,Xt=8,Jt=o(128,d);r:for(;u(Jt,0,7,qt,19);){if(_(Yt,1)){var Zt=2+2*_(Yt,3);if((Ht=2+_(Yt,Zt))>$t)break r}else Ht=$t;for(Vt=0;Vt<$t&&Ht--;){C(Yt);var Qt=Jt[0+(127&x(Yt))];S(Yt,Yt.u+Qt.g);var te=Qt.value;if(16>te)Kt[Vt++]=te,0!=te&&(Xt=te);else{var ee=16==te,ne=te-16,ae=Ka[ne],re=_(Yt,$a[ne])+ae;if(Vt+re>$t)break r;for(var ie=ee?Xt:0;0<re--;)Kt[Vt++]=ie}}Gt=1;break r}Gt||(Wt.a=3),jt=Gt}(jt=jt&&!Mt.h)&&(Ot=u(Nt,Lt,8,Tt,St)),jt&&0!=Ot?Ut=Ot:(Ct.a=3,Ut=0)}if(0==Ut)break n;if(wt&&1==Ya[q]&&(wt=0==mt[$].g),yt+=mt[$].g,$+=Ut,3>=q){var oe,se=pt[0];for(oe=1;oe<ct;++oe)pt[oe]>se&&(se=pt[oe]);xt+=se}}if(gt.nd=wt,gt.Qb=0,wt&&(gt.qb=(vt[3][bt[3]+0].value<<24|vt[1][bt[1]+0].value<<16|vt[2][bt[2]+0].value)>>>0,0==yt&&256>vt[0][bt[0]+0].value&&(gt.Qb=1,gt.qb+=vt[0][bt[0]+0].value<<8)),gt.jc=!gt.Qb&&6>xt,gt.jc){var le,ce=gt;for(le=0;le<jn;++le){var ue=le,de=ce.pd[ue],he=ce.G[0][ce.H[0]+ue];256<=he.value?(de.g=he.g+256,de.value=he.value):(de.g=0,de.value=0,ue>>=_t(he,8,de),ue>>=_t(ce.G[1][ce.H[1]+ue],16,de),ue>>=_t(ce.G[2][ce.H[2]+ue],0,de),_t(ce.G[3][ce.H[3]+ue],24,de))}}}Q.vc=tt,Q.Wb=et,Q.Ya=ft,Q.yc=ut,V=1;break e}V=0}if(!(c=V)){s.a=3;break t}if(0<b){if(g.ua=1<<b,!M(g.Wa,b)){s.a=1,c=0;break t}}else g.ua=0;var fe=s,pe=h,me=p,ge=fe.s,ve=ge.xc;if(fe.c=pe,fe.i=me,ge.md=F(pe,ve),ge.wc=0==ve?-1:(1<<ve)-1,a){s.xb=fr;break t}if(null==(v=i(h*p))){s.a=1,c=0;break t}c=(c=At(s,v,0,h,p,p,null))&&!m.h;break t}return c?(null!=l?l[0]=v:(e(null==v),e(a)),s.$=0,a||Et(g)):Et(g),c}function Nt(t,n){var a=t.c*t.i,r=a+n+16*n;return e(t.c<=n),t.V=i(r),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+a+n,1)}function Lt(t,n){var a=t.C,r=n-a,i=t.V,o=t.Ba+t.c*a;for(e(n<=t.l.o);0<r;){var s=16<r?16:r,l=t.l.ma,c=t.l.width,u=c*s,d=l.ca,h=l.tb+c*a,f=t.Ta,p=t.Ua;wt(t,s,i,o),Ca(f,p,d,h,u),St(l,a,a+s,d,h,c),r-=s,i+=s*t.c,a+=s}e(a==n),t.C=t.Ma=n}function Ot(){this.ub=this.yd=this.td=this.Rb=0}function Mt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Rt(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function It(){this.Yb=function(){var t=[];return function t(e,n,a){for(var r=a[n],i=0;i<r&&(e.push(a.length>n+1?[]:0),!(a.length<n+1));i++)t(e[i],n+1,a)}(t,0,[3,11]),t}()}function Dt(){this.jb=i(3),this.Wc=s([4,8],It),this.Xc=s([4,17],It)}function Ft(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function jt(){this.ld=this.La=this.dd=this.tc=0}function Bt(){this.Na=this.la=0}function zt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ut(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ht(){this.uc=this.M=this.Nb=0,this.wa=Array(new jt),this.Y=0,this.ya=Array(new Ut),this.aa=0,this.l=new $t}function Vt(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Wt(){this.cb=this.a=0,this.sc="",this.m=new y,this.Od=new Ot,this.Kc=new Mt,this.ed=new Ft,this.Qa=new Rt,this.Ic=this.$c=this.Aa=0,this.D=new Ht,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,y),this.ia=0,this.pb=o(4,zt),this.Pa=new Dt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Vt),this.Hd=0,this.rb=Array(new Bt),this.sb=0,this.wa=Array(new jt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ut),this.L=this.aa=0,this.gd=s([4,2],jt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function qt(t,e){return 0>t?0:t>e?e:t}function $t(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Kt(){var t=new Wt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,nr||(nr=Jt)),t}function Gt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Yt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Xt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Gt(t,2,"null VP8Io passed to VP8GetHeaders()");var a=n.data,i=n.w,o=n.ha;if(4>o)return Gt(t,7,"Truncated header.");var s=a[i+0]|a[i+1]<<8|a[i+2]<<16,l=t.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return Gt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Gt(t,4,"Frame not displayable.");i+=3,o-=3;var c=t.Kc;if(l.Rb){if(7>o)return Gt(t,7,"cannot parse picture header");if(!Yt(a,i,o))return Gt(t,3,"Bad code word");c.c=16383&(a[i+4]<<8|a[i+3]),c.Td=a[i+4]>>6,c.i=16383&(a[i+6]<<8|a[i+5]),c.Ud=a[i+6]>>6,i+=7,o-=7,t.za=c.c+15>>4,t.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,r((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,r(s.Zb,0,0,s.Zb.length),r(s.Lb,0,0,s.Lb)}if(l.ub>o)return Gt(t,7,"bad partition length");p(s=t.m,a,i,l.ub),i+=l.ub,o-=l.ub,l.Rb&&(c.Ld=E(s),c.Kd=E(s)),c=t.Qa;var u,d=t.Pa;if(e(null!=s),e(null!=c),c.Cb=E(s),c.Cb){if(c.Bb=E(s),E(s)){for(c.Fb=E(s),u=0;4>u;++u)c.Zb[u]=E(s)?g(s,7):0;for(u=0;4>u;++u)c.Lb[u]=E(s)?g(s,6):0}if(c.Bb)for(u=0;3>u;++u)d.jb[u]=E(s)?m(s,8):255}else c.Bb=0;if(s.Ka)return Gt(t,3,"cannot parse segment header");if((c=t.ed).zd=E(s),c.Tb=m(s,6),c.wb=m(s,3),c.Pc=E(s),c.Pc&&E(s)){for(d=0;4>d;++d)E(s)&&(c.vd[d]=g(s,6));for(d=0;4>d;++d)E(s)&&(c.od[d]=g(s,6))}if(t.L=0==c.Tb?0:c.zd?1:2,s.Ka)return Gt(t,3,"cannot parse filter header");var h=o;if(o=u=i,i=u+h,c=h,t.Xb=(1<<m(t.m,2))-1,h<3*(d=t.Xb))a=7;else{for(u+=3*d,c-=3*d,h=0;h<d;++h){var f=a[o+0]|a[o+1]<<8|a[o+2]<<16;f>c&&(f=c),p(t.Jc[+h],a,u,f),u+=f,c-=f,o+=3}p(t.Jc[+d],a,u,c),a=u<i?0:5}if(0!=a)return Gt(t,a,"cannot parse partitions");for(a=m(u=t.m,7),o=E(u)?g(u,4):0,i=E(u)?g(u,4):0,c=E(u)?g(u,4):0,d=E(u)?g(u,4):0,u=E(u)?g(u,4):0,h=t.Qa,f=0;4>f;++f){if(h.Cb){var v=h.Zb[f];h.Fb||(v+=a)}else{if(0<f){t.pb[f]=t.pb[0];continue}v=a}var b=t.pb[f];b.Sc[0]=tr[qt(v+o,127)],b.Sc[1]=er[qt(v+0,127)],b.Eb[0]=2*tr[qt(v+i,127)],b.Eb[1]=101581*er[qt(v+c,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=tr[qt(v+d,117)],b.Qc[1]=er[qt(v+u,127)],b.lc=v+u}if(!l.Rb)return Gt(t,4,"Not a key frame.");for(E(s),l=t.Pa,a=0;4>a;++a){for(o=0;8>o;++o)for(i=0;3>i;++i)for(c=0;11>c;++c)d=T(s,lr[a][o][i][c])?m(s,8):or[a][o][i][c],l.Wc[a][o].Yb[i][c]=d;for(o=0;17>o;++o)l.Xc[a][o]=l.Wc[a][cr[o]]}return t.kc=E(s),t.kc&&(t.Bd=m(s,8)),t.cb=1}function Jt(t,e,n,a,r,i,o){var s=e[r].Yb[n];for(n=0;16>r;++r){if(!T(t,s[n+0]))return r;for(;!T(t,s[n+1]);)if(s=e[++r].Yb[0],n=0,16==r)return 16;var l=e[r+1].Yb;if(T(t,s[n+2])){var c=t,u=0;if(T(c,(h=s)[(d=n)+3]))if(T(c,h[d+6])){for(s=0,d=2*(u=T(c,h[d+8]))+(h=T(c,h[d+9+u])),u=0,h=ar[d];h[s];++s)u+=u+T(c,h[s]);u+=3+(8<<d)}else T(c,h[d+7])?(u=7+2*T(c,165),u+=T(c,145)):u=5+T(c,159);else u=T(c,h[d+4])?3+T(c,h[d+5]):2;s=l[2]}else u=1,s=l[1];l=o+rr[r],0>(c=t).b&&A(c);var d,h=c.b,f=(d=c.Ca>>1)-(c.I>>h)>>31;--c.b,c.Ca+=f,c.Ca|=1,c.I-=(d+1&f)<<h,i[l]=((u^f)-f)*a[(0<r)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,r(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,e,n,a,r){r=t[e+n+32*a]+(r>>3),t[e+n+32*a]=-256&r?0>r?0:255:r}function te(t,e,n,a,r,i){Qt(t,e,0,n,a+r),Qt(t,e,1,n,a+i),Qt(t,e,2,n,a-i),Qt(t,e,3,n,a-r)}function ee(t){return(20091*t>>16)+t}function ne(t,e,n,a){var r,o=0,s=i(16);for(r=0;4>r;++r){var l=t[e+0]+t[e+8],c=t[e+0]-t[e+8],u=(35468*t[e+4]>>16)-ee(t[e+12]),d=ee(t[e+4])+(35468*t[e+12]>>16);s[o+0]=l+d,s[o+1]=c+u,s[o+2]=c-u,s[o+3]=l-d,o+=4,e++}for(r=o=0;4>r;++r)l=(t=s[o+0]+4)+s[o+8],c=t-s[o+8],u=(35468*s[o+4]>>16)-ee(s[o+12]),Qt(n,a,0,0,l+(d=ee(s[o+4])+(35468*s[o+12]>>16))),Qt(n,a,1,0,c+u),Qt(n,a,2,0,c-u),Qt(n,a,3,0,l-d),o++,a+=32}function ae(t,e,n,a){var r=t[e+0]+4,i=35468*t[e+4]>>16,o=ee(t[e+4]),s=35468*t[e+1]>>16;te(n,a,0,r+o,t=ee(t[e+1]),s),te(n,a,1,r+i,t,s),te(n,a,2,r-i,t,s),te(n,a,3,r-o,t,s)}function re(t,e,n,a,r){ne(t,e,n,a),r&&ne(t,e+16,n,a+4)}function ie(t,e,n,a){ia(t,e+0,n,a,1),ia(t,e+32,n,a+128,1)}function oe(t,e,n,a){var r;for(t=t[e+0]+4,r=0;4>r;++r)for(e=0;4>e;++e)Qt(n,a,e,r,t)}function se(t,e,n,a){t[e+0]&&la(t,e+0,n,a),t[e+16]&&la(t,e+16,n,a+4),t[e+32]&&la(t,e+32,n,a+128),t[e+48]&&la(t,e+48,n,a+128+4)}function le(t,e,n,a){var r,o=i(16);for(r=0;4>r;++r){var s=t[e+0+r]+t[e+12+r],l=t[e+4+r]+t[e+8+r],c=t[e+4+r]-t[e+8+r],u=t[e+0+r]-t[e+12+r];o[0+r]=s+l,o[8+r]=s-l,o[4+r]=u+c,o[12+r]=u-c}for(r=0;4>r;++r)s=(t=o[0+4*r]+3)+o[3+4*r],l=o[1+4*r]+o[2+4*r],c=o[1+4*r]-o[2+4*r],u=t-o[3+4*r],n[a+0]=s+l>>3,n[a+16]=u+c>>3,n[a+32]=s-l>>3,n[a+48]=u-c>>3,a+=64}function ce(t,e,n){var a,r=e-32,i=Ma,o=255-t[r-1];for(a=0;a<n;++a){var s,l=i,c=o+t[e-1];for(s=0;s<n;++s)t[e+s]=l[c+t[r+s]];e+=32}}function ue(t,e){ce(t,e,4)}function de(t,e){ce(t,e,8)}function he(t,e){ce(t,e,16)}function fe(t,e){var n;for(n=0;16>n;++n)a(t,e+32*n,t,e-32,16)}function pe(t,e){var n;for(n=16;0<n;--n)r(t,e,t[e-1],16),e+=32}function me(t,e,n){var a;for(a=0;16>a;++a)r(e,n+32*a,t,16)}function ge(t,e){var n,a=16;for(n=0;16>n;++n)a+=t[e-1+32*n]+t[e+n-32];me(a>>5,t,e)}function ve(t,e){var n,a=8;for(n=0;16>n;++n)a+=t[e-1+32*n];me(a>>4,t,e)}function be(t,e){var n,a=8;for(n=0;16>n;++n)a+=t[e+n-32];me(a>>4,t,e)}function _e(t,e){me(128,t,e)}function ye(t,e,n){return t+2*e+n+2>>2}function we(t,e){var n,r=e-32;for(r=new Uint8Array([ye(t[r-1],t[r+0],t[r+1]),ye(t[r+0],t[r+1],t[r+2]),ye(t[r+1],t[r+2],t[r+3]),ye(t[r+2],t[r+3],t[r+4])]),n=0;4>n;++n)a(t,e+32*n,r,0,r.length)}function xe(t,e){var n=t[e-1],a=t[e-1+32],r=t[e-1+64],i=t[e-1+96];P(t,e+0,16843009*ye(t[e-1-32],n,a)),P(t,e+32,16843009*ye(n,a,r)),P(t,e+64,16843009*ye(a,r,i)),P(t,e+96,16843009*ye(r,i,i))}function ke(t,e){var n,a=4;for(n=0;4>n;++n)a+=t[e+n-32]+t[e-1+32*n];for(a>>=3,n=0;4>n;++n)r(t,e+32*n,a,4)}function Se(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+96]=ye(a,r,t[e-1+96]),t[e+1+96]=t[e+0+64]=ye(n,a,r),t[e+2+96]=t[e+1+64]=t[e+0+32]=ye(i,n,a),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=ye(o,i,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=ye(s,o,i),t[e+3+32]=t[e+2+0]=ye(l,s,o),t[e+3+0]=ye(c,l,s)}function Ce(t,e){var n=t[e+1-32],a=t[e+2-32],r=t[e+3-32],i=t[e+4-32],o=t[e+5-32],s=t[e+6-32],l=t[e+7-32];t[e+0+0]=ye(t[e+0-32],n,a),t[e+1+0]=t[e+0+32]=ye(n,a,r),t[e+2+0]=t[e+1+32]=t[e+0+64]=ye(a,r,i),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=ye(r,i,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=ye(i,o,s),t[e+3+64]=t[e+2+96]=ye(o,s,l),t[e+3+96]=ye(s,l,l)}function Ae(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+0]=t[e+1+64]=i+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+l+1>>1,t[e+3+0]=l+c+1>>1,t[e+0+96]=ye(r,a,n),t[e+0+64]=ye(a,n,i),t[e+0+32]=t[e+1+96]=ye(n,i,o),t[e+1+32]=t[e+2+96]=ye(i,o,s),t[e+2+32]=t[e+3+96]=ye(o,s,l),t[e+3+32]=ye(s,l,c)}function Ee(t,e){var n=t[e+0-32],a=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],s=t[e+5-32],l=t[e+6-32],c=t[e+7-32];t[e+0+0]=n+a+1>>1,t[e+1+0]=t[e+0+64]=a+r+1>>1,t[e+2+0]=t[e+1+64]=r+i+1>>1,t[e+3+0]=t[e+2+64]=i+o+1>>1,t[e+0+32]=ye(n,a,r),t[e+1+32]=t[e+0+96]=ye(a,r,i),t[e+2+32]=t[e+1+96]=ye(r,i,o),t[e+3+32]=t[e+2+96]=ye(i,o,s),t[e+3+64]=ye(o,s,l),t[e+3+96]=ye(s,l,c)}function Te(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1+96];t[e+0+0]=n+a+1>>1,t[e+2+0]=t[e+0+32]=a+r+1>>1,t[e+2+32]=t[e+0+64]=r+i+1>>1,t[e+1+0]=ye(n,a,r),t[e+3+0]=t[e+1+32]=ye(a,r,i),t[e+3+32]=t[e+1+64]=ye(r,i,i),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=i}function Pe(t,e){var n=t[e-1+0],a=t[e-1+32],r=t[e-1+64],i=t[e-1+96],o=t[e-1-32],s=t[e+0-32],l=t[e+1-32],c=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=a+n+1>>1,t[e+0+64]=t[e+2+96]=r+a+1>>1,t[e+0+96]=i+r+1>>1,t[e+3+0]=ye(s,l,c),t[e+2+0]=ye(o,s,l),t[e+1+0]=t[e+3+32]=ye(n,o,s),t[e+1+32]=t[e+3+64]=ye(a,n,o),t[e+1+64]=t[e+3+96]=ye(r,a,n),t[e+1+96]=ye(i,r,a)}function Ne(t,e){var n;for(n=0;8>n;++n)a(t,e+32*n,t,e-32,8)}function Le(t,e){var n;for(n=0;8>n;++n)r(t,e,t[e-1],8),e+=32}function Oe(t,e,n){var a;for(a=0;8>a;++a)r(e,n+32*a,t,8)}function Me(t,e){var n,a=8;for(n=0;8>n;++n)a+=t[e+n-32]+t[e-1+32*n];Oe(a>>4,t,e)}function Re(t,e){var n,a=4;for(n=0;8>n;++n)a+=t[e+n-32];Oe(a>>3,t,e)}function Ie(t,e){var n,a=4;for(n=0;8>n;++n)a+=t[e-1+32*n];Oe(a>>3,t,e)}function De(t,e){Oe(128,t,e)}function Fe(t,e,n){var a=t[e-n],r=t[e+0],i=3*(r-a)+La[1020+t[e-2*n]-t[e+n]],o=Oa[112+(i+4>>3)];t[e-n]=Ma[255+a+Oa[112+(i+3>>3)]],t[e+0]=Ma[255+r-o]}function je(t,e,n,a){var r=t[e+0],i=t[e+n];return Ra[255+t[e-2*n]-t[e-n]]>a||Ra[255+i-r]>a}function Be(t,e,n,a){return 4*Ra[255+t[e-n]-t[e+0]]+Ra[255+t[e-2*n]-t[e+n]]<=a}function ze(t,e,n,a,r){var i=t[e-3*n],o=t[e-2*n],s=t[e-n],l=t[e+0],c=t[e+n],u=t[e+2*n],d=t[e+3*n];return 4*Ra[255+s-l]+Ra[255+o-c]>a?0:Ra[255+t[e-4*n]-i]<=r&&Ra[255+i-o]<=r&&Ra[255+o-s]<=r&&Ra[255+d-u]<=r&&Ra[255+u-c]<=r&&Ra[255+c-l]<=r}function Ue(t,e,n,a){var r=2*a+1;for(a=0;16>a;++a)Be(t,e+a,n,r)&&Fe(t,e+a,n)}function He(t,e,n,a){var r=2*a+1;for(a=0;16>a;++a)Be(t,e+a*n,1,r)&&Fe(t,e+a*n,1)}function Ve(t,e,n,a){var r;for(r=3;0<r;--r)Ue(t,e+=4*n,n,a)}function We(t,e,n,a){var r;for(r=3;0<r;--r)He(t,e+=4,n,a)}function qe(t,e,n,a,r,i,o,s){for(i=2*i+1;0<r--;){if(ze(t,e,n,i,o))if(je(t,e,n,s))Fe(t,e,n);else{var l=t,c=e,u=n,d=l[c-2*u],h=l[c-u],f=l[c+0],p=l[c+u],m=l[c+2*u],g=27*(b=La[1020+3*(f-h)+La[1020+d-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;l[c-3*u]=Ma[255+l[c-3*u]+b],l[c-2*u]=Ma[255+d+v],l[c-u]=Ma[255+h+g],l[c+0]=Ma[255+f-g],l[c+u]=Ma[255+p-v],l[c+2*u]=Ma[255+m-b]}e+=a}}function $e(t,e,n,a,r,i,o,s){for(i=2*i+1;0<r--;){if(ze(t,e,n,i,o))if(je(t,e,n,s))Fe(t,e,n);else{var l=t,c=e,u=n,d=l[c-u],h=l[c+0],f=l[c+u],p=Oa[112+(4+(m=3*(h-d))>>3)],m=Oa[112+(m+3>>3)],g=p+1>>1;l[c-2*u]=Ma[255+l[c-2*u]+g],l[c-u]=Ma[255+d+m],l[c+0]=Ma[255+h-p],l[c+u]=Ma[255+f-g]}e+=a}}function Ke(t,e,n,a,r,i){qe(t,e,n,1,16,a,r,i)}function Ge(t,e,n,a,r,i){qe(t,e,1,n,16,a,r,i)}function Ye(t,e,n,a,r,i){var o;for(o=3;0<o;--o)$e(t,e+=4*n,n,1,16,a,r,i)}function Xe(t,e,n,a,r,i){var o;for(o=3;0<o;--o)$e(t,e+=4,1,n,16,a,r,i)}function Je(t,e,n,a,r,i,o,s){qe(t,e,r,1,8,i,o,s),qe(n,a,r,1,8,i,o,s)}function Ze(t,e,n,a,r,i,o,s){qe(t,e,1,r,8,i,o,s),qe(n,a,1,r,8,i,o,s)}function Qe(t,e,n,a,r,i,o,s){$e(t,e+4*r,r,1,8,i,o,s),$e(n,a+4*r,r,1,8,i,o,s)}function tn(t,e,n,a,r,i,o,s){$e(t,e+4,1,r,8,i,o,s),$e(n,a+4,1,r,8,i,o,s)}function en(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function rn(){this.ua=0,this.Wa=new I,this.vb=new I,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new d}function on(){this.xb=this.a=0,this.l=new $t,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new rn,this.ab=0,this.gc=o(4,an),this.Oc=0}function sn(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new $t,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ln(t,e,n,a,r,i,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)r[i+e]=t+n[a+e]&255,t=r[i+e]}function cn(t,e,n,a,r,i,o){var s;if(null==t)ln(null,null,n,a,r,i,o);else for(s=0;s<o;++s)r[i+s]=t[e+s]+n[a+s]&255}function un(t,e,n,a,r,i,o){if(null==t)ln(null,null,n,a,r,i,o);else{var s,l=t[e+0],c=l,u=l;for(s=0;s<o;++s)c=u+(l=t[e+s])-c,u=n[a+s]+(-256&c?0>c?0:255:c)&255,c=l,r[i+s]=u}}function dn(t,n,r,o){var s=n.width,l=n.o;if(e(null!=t&&null!=n),0>r||0>=o||r+o>l)return null;if(!t.Cc){if(null==t.ga){var c;if(t.ga=new sn,(c=null==t.ga)||(c=n.width*n.o,e(0==t.Gb.length),t.Gb=i(c),t.Uc=0,null==t.Gb?c=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,c=1),c=!c),!c){c=t.ga;var u=t.Fa,d=t.P,h=t.qc,f=t.mb,p=t.nb,m=d+1,g=h-1,b=c.l;if(e(null!=u&&null!=f&&null!=n),mr[0]=null,mr[1]=ln,mr[2]=cn,mr[3]=un,c.ca=f,c.tb=p,c.c=n.width,c.i=n.height,e(0<c.c&&0<c.i),1>=h)n=0;else if(c.$a=3&u[d+0],c.Z=u[d+0]>>2&3,c.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||d)n=0;else if(b.put=ft,b.ac=ht,b.bc=pt,b.ma=c,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,c.$a)t:{e(1==c.$a),n=Tt();e:for(;;){if(null==n){n=0;break t}if(e(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,v(n.m,u,m,g),!Pt(c.c,c.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&kt(n.s)?(c.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=i(u),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Nt(n,c.c)),!n)break e;n=1;break t}c.mc=null,n=0}else n=g>=c.c*c.i;c=!n}if(c)return null;1!=t.ga.Lc?t.Ga=0:o=l-r}e(null!=t.ga),e(r+o<=l);t:{if(n=(u=t.ga).c,l=u.l.o,0==u.$a){if(m=t.rc,g=t.Vc,b=t.Fa,d=t.P+1+r*n,h=t.mb,f=t.nb+r*n,e(d<=t.P+t.qc),0!=u.Z)for(e(null!=mr[u.Z]),c=0;c<o;++c)mr[u.Z](m,g,b,d,h,f,n),m=h,g=f,f+=n,d+=n;else for(c=0;c<o;++c)a(h,f,b,d,n),m=h,g=f,f+=n,d+=n;t.rc=m,t.Vc=g}else{if(e(null!=u.mc),n=r+o,e(null!=(c=u.mc)),e(n<=c.i),c.C>=n)n=1;else if(u.ic||gn(),u.ic){u=c.V,m=c.Ba,g=c.c;var _=c.i,y=(b=1,d=c.$/g,h=c.$%g,f=c.m,p=c.s,c.$),w=g*_,x=g*n,S=p.wc,A=y<x?yt(p,h,d):null;e(y<=w),e(n<=_),e(kt(p));e:for(;;){for(;!f.h&&y<x;){if(h&S||(A=yt(p,h,d)),e(null!=A),C(f),256>(_=bt(A.G[0],A.H[0],f)))u[m+y]=_,++y,++h>=g&&(h=0,++d<=n&&!(d%16)&&Ct(c,d));else{if(!(280>_)){b=0;break e}_=gt(_-256,f);var E,T=bt(A.G[4],A.H[4],f);if(C(f),!(y>=(T=vt(g,T=gt(T,f)))&&w-y>=_)){b=0;break e}for(E=0;E<_;++E)u[m+y+E]=u[m+y+E-T];for(y+=_,h+=_;h>=g;)h-=g,++d<=n&&!(d%16)&&Ct(c,d);y<x&&h&S&&(A=yt(p,h,d))}e(f.h==k(f))}Ct(c,d>n?n:d);break e}!b||f.h&&y<w?(b=0,c.a=f.h?5:3):c.$=y,n=b}else n=At(c,c.V,c.Ba,c.c,c.i,n,Lt);if(!n){o=0;break t}}r+o>=l&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+r*s}function hn(t,e,n,a,r,i){for(;0<r--;){var o,s=t,l=e+(n?1:0),c=t,u=e+(n?0:3);for(o=0;o<a;++o){var d=c[u+4*o];255!=d&&(d*=32897,s[l+4*o+0]=s[l+4*o+0]*d>>23,s[l+4*o+1]=s[l+4*o+1]*d>>23,s[l+4*o+2]=s[l+4*o+2]*d>>23)}e+=i}}function fn(t,e,n,a,r){for(;0<a--;){var i;for(i=0;i<n;++i){var o=t[e+2*i+0],s=15&(c=t[e+2*i+1]),l=4369*s,c=(240&c|c>>4)*l>>16;t[e+2*i+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,t[e+2*i+1]=240&c|s}e+=r}}function pn(t,e,n,a,r,i,o,s){var l,c,u=255;for(c=0;c<r;++c){for(l=0;l<a;++l){var d=t[e+l];i[o+4*l]=d,u&=d}e+=n,o+=s}return 255!=u}function mn(t,e,n,a,r){var i;for(i=0;i<r;++i)n[a+i]=t[e+i]>>8}function gn(){xa=hn,ka=fn,Sa=pn,Ca=mn}function vn(n,a,r){t[n]=function(t,n,i,o,s,l,c,u,d,h,f,p,m,g,v,b,_){var y,w=_-1>>1,x=s[l+0]|c[u+0]<<16,k=d[h+0]|f[p+0]<<16;e(null!=t);var S=3*x+k+131074>>2;for(a(t[n+0],255&S,S>>16,m,g),null!=i&&(S=3*k+x+131074>>2,a(i[o+0],255&S,S>>16,v,b)),y=1;y<=w;++y){var C=s[l+y]|c[u+y]<<16,A=d[h+y]|f[p+y]<<16,E=x+C+k+A+524296,T=E+2*(C+k)>>3;S=T+x>>1,x=(E=E+2*(x+A)>>3)+C>>1,a(t[n+2*y-1],255&S,S>>16,m,g+(2*y-1)*r),a(t[n+2*y-0],255&x,x>>16,m,g+(2*y-0)*r),null!=i&&(S=E+k>>1,x=T+A>>1,a(i[o+2*y-1],255&S,S>>16,v,b+(2*y-1)*r),a(i[o+2*y+0],255&x,x>>16,v,b+(2*y+0)*r)),x=C,k=A}1&_||(S=3*x+k+131074>>2,a(t[n+_-1],255&S,S>>16,m,g+(_-1)*r),null!=i&&(S=3*k+x+131074>>2,a(i[o+_-1],255&S,S>>16,v,b+(_-1)*r)))}}function bn(){gr[Ia]=vr,gr[Da]=_r,gr[Fa]=br,gr[ja]=yr,gr[Ba]=wr,gr[za]=xr,gr[Ua]=kr,gr[Ha]=_r,gr[Va]=yr,gr[Wa]=wr,gr[qa]=xr}function _n(t){return t&~Pr?0>t?0:255:t>>Tr}function yn(t,e){return _n((19077*t>>8)+(26149*e>>8)-14234)}function wn(t,e,n){return _n((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function xn(t,e){return _n((19077*t>>8)+(33050*e>>8)-17685)}function kn(t,e,n,a,r){a[r+0]=yn(t,n),a[r+1]=wn(t,e,n),a[r+2]=xn(t,e)}function Sn(t,e,n,a,r){a[r+0]=xn(t,e),a[r+1]=wn(t,e,n),a[r+2]=yn(t,n)}function Cn(t,e,n,a,r){var i=wn(t,e,n);e=i<<3&224|xn(t,e)>>3,a[r+0]=248&yn(t,n)|i>>5,a[r+1]=e}function An(t,e,n,a,r){var i=240&xn(t,e)|15;a[r+0]=240&yn(t,n)|wn(t,e,n)>>4,a[r+1]=i}function En(t,e,n,a,r){a[r+0]=255,kn(t,e,n,a,r+1)}function Tn(t,e,n,a,r){Sn(t,e,n,a,r),a[r+3]=255}function Pn(t,e,n,a,r){kn(t,e,n,a,r),a[r+3]=255}function Nn(e,n,a){t[e]=function(t,e,r,i,o,s,l,c,u){for(var d=c+(-2&u)*a;c!=d;)n(t[e+0],r[i+0],o[s+0],l,c),n(t[e+1],r[i+0],o[s+0],l,c+a),e+=2,++i,++s,c+=2*a;1&u&&n(t[e+0],r[i+0],o[s+0],l,c)}}function Ln(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function On(t,e,n,a,r){switch(t>>>30){case 3:ia(e,n,a,r,0);break;case 2:oa(e,n,a,r);break;case 1:la(e,n,a,r)}}function Mn(t,e){var n,i,o=e.M,s=e.Nb,l=t.oc,c=t.pc+40,u=t.oc,d=t.pc+584,h=t.oc,f=t.pc+600;for(n=0;16>n;++n)l[c+32*n-1]=129;for(n=0;8>n;++n)u[d+32*n-1]=129,h[f+32*n-1]=129;for(0<o?l[c-1-32]=u[d-1-32]=h[f-1-32]=129:(r(l,c-32-1,127,21),r(u,d-32-1,127,9),r(h,f-32-1,127,9)),i=0;i<t.za;++i){var p=e.ya[e.aa+i];if(0<i){for(n=-1;16>n;++n)a(l,c+32*n-4,l,c+32*n+12,4);for(n=-1;8>n;++n)a(u,d+32*n-4,u,d+32*n+4,4),a(h,f+32*n-4,h,f+32*n+4,4)}var m=t.Gd,g=t.Hd+i,v=p.ad,b=p.Hc;if(0<o&&(a(l,c-32,m[g].y,0,16),a(u,d-32,m[g].f,0,8),a(h,f-32,m[g].ea,0,8)),p.Za){var _=l,y=c-32+16;for(0<o&&(i>=t.za-1?r(_,y,m[g].y[15],4):a(_,y,m[g+1].y,0,4)),n=0;4>n;n++)_[y+128+n]=_[y+256+n]=_[y+384+n]=_[y+0+n];for(n=0;16>n;++n,b<<=2)_=l,y=c+Fr[n],dr[p.Ob[n]](_,y),On(b,v,16*+n,_,y)}else if(_=Ln(i,o,p.Ob[0]),ur[_](l,c),0!=b)for(n=0;16>n;++n,b<<=2)On(b,v,16*+n,l,c+Fr[n]);for(n=p.Gc,_=Ln(i,o,p.Dd),hr[_](u,d),hr[_](h,f),b=v,_=u,y=d,255&(p=0|n)&&(170&p?sa(b,256,_,y):ca(b,256,_,y)),p=h,b=f,255&(n>>=8)&&(170&n?sa(v,320,p,b):ca(v,320,p,b)),o<t.Ub-1&&(a(m[g].y,0,l,c+480,16),a(m[g].f,0,u,d+224,8),a(m[g].ea,0,h,f+224,8)),n=8*s*t.B,m=t.sa,g=t.ta+16*i+16*s*t.R,v=t.qa,p=t.ra+8*i+n,b=t.Ha,_=t.Ia+8*i+n,n=0;16>n;++n)a(m,g+n*t.R,l,c+32*n,16);for(n=0;8>n;++n)a(v,p+n*t.B,u,d+32*n,8),a(b,_+n*t.B,h,f+32*n,8)}}function Rn(t,a,r,i,o,s,l,c,u){var d=[0],h=[0],f=0,p=null!=u?u.kd:0,m=null!=u?u:new nn;if(null==t||12>r)return 7;m.data=t,m.w=a,m.ha=r,a=[a],r=[r],m.gb=[m.gb];t:{var g=a,b=r,_=m.gb;if(e(null!=t),e(null!=b),e(null!=_),_[0]=0,12<=b[0]&&!n(t,g[0],"RIFF")){if(n(t,g[0]+8,"WEBP")){_=3;break t}var y=O(t,g[0]+4);if(12>y||4294967286<y){_=3;break t}if(p&&y>b[0]-8){_=7;break t}_[0]=y,g[0]+=12,b[0]-=12}_=0}if(0!=_)return _;for(y=0<m.gb[0],r=r[0];;){t:{var x=t;b=a,_=r;var k=d,S=h,C=g=[0];if((T=f=[f])[0]=0,8>_[0])_=7;else{if(!n(x,b[0],"VP8X")){if(10!=O(x,b[0]+4)){_=3;break t}if(18>_[0]){_=7;break t}var A=O(x,b[0]+8),E=1+L(x,b[0]+12);if(2147483648<=E*(x=1+L(x,b[0]+15))){_=3;break t}null!=C&&(C[0]=A),null!=k&&(k[0]=E),null!=S&&(S[0]=x),b[0]+=18,_[0]-=18,T[0]=1}_=0}}if(f=f[0],g=g[0],0!=_)return _;if(b=!!(2&g),!y&&f)return 3;if(null!=s&&(s[0]=!!(16&g)),null!=l&&(l[0]=b),null!=c&&(c[0]=0),l=d[0],g=h[0],f&&b&&null==u){_=0;break}if(4>r){_=7;break}if(y&&f||!y&&!f&&!n(t,a[0],"ALPH")){r=[r],m.na=[m.na],m.P=[m.P],m.Sa=[m.Sa];t:{A=t,_=a,y=r;var T=m.gb;k=m.na,S=m.P,C=m.Sa,E=22,e(null!=A),e(null!=y),x=_[0];var P=y[0];for(e(null!=k),e(null!=C),k[0]=null,S[0]=null,C[0]=0;;){if(_[0]=x,y[0]=P,8>P){_=7;break t}var N=O(A,x+4);if(4294967286<N){_=3;break t}var M=8+N+1&-2;if(E+=M,0<T&&E>T){_=3;break t}if(!n(A,x,"VP8 ")||!n(A,x,"VP8L")){_=0;break t}if(P[0]<M){_=7;break t}n(A,x,"ALPH")||(k[0]=A,S[0]=x+8,C[0]=N),x+=M,P-=M}}if(r=r[0],m.na=m.na[0],m.P=m.P[0],m.Sa=m.Sa[0],0!=_)break}r=[r],m.Ja=[m.Ja],m.xa=[m.xa];t:if(T=t,_=a,y=r,k=m.gb[0],S=m.Ja,C=m.xa,A=_[0],x=!n(T,A,"VP8 "),E=!n(T,A,"VP8L"),e(null!=T),e(null!=y),e(null!=S),e(null!=C),8>y[0])_=7;else{if(x||E){if(T=O(T,A+4),12<=k&&T>k-12){_=3;break t}if(p&&T>y[0]-8){_=7;break t}S[0]=T,_[0]+=8,y[0]-=8,C[0]=E}else C[0]=5<=y[0]&&47==T[A+0]&&!(T[A+4]>>5),S[0]=y[0];_=0}if(r=r[0],m.Ja=m.Ja[0],m.xa=m.xa[0],a=a[0],0!=_)break;if(4294967286<m.Ja)return 3;if(null==c||b||(c[0]=m.xa?2:1),l=[l],g=[g],m.xa){if(5>r){_=7;break}c=l,p=g,b=s,null==t||5>r?t=0:5<=r&&47==t[a+0]&&!(t[a+4]>>5)?(y=[0],T=[0],k=[0],v(S=new w,t,a,r),mt(S,y,T,k)?(null!=c&&(c[0]=y[0]),null!=p&&(p[0]=T[0]),null!=b&&(b[0]=k[0]),t=1):t=0):t=0}else{if(10>r){_=7;break}c=g,null==t||10>r||!Yt(t,a+3,r-3)?t=0:(p=t[a+0]|t[a+1]<<8|t[a+2]<<16,b=16383&(t[a+7]<<8|t[a+6]),t=16383&(t[a+9]<<8|t[a+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=m.Ja||!b||!t?t=0:(l&&(l[0]=b),c&&(c[0]=t),t=1))}if(!t)return 3;if(l=l[0],g=g[0],f&&(d[0]!=l||h[0]!=g))return 3;null!=u&&(u[0]=m,u.offset=a-u.w,e(4294967286>a-u.w),e(u.offset==u.ha-r));break}return 0==_||7==_&&f&&null==u?(null!=s&&(s[0]|=null!=m.na&&0<m.na.length),null!=i&&(i[0]=l),null!=o&&(o[0]=g),0):_}function In(t,e,n){var a=e.width,r=e.height,i=0,o=0,s=a,l=r;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,l=t.bd,i=t.v,o=t.j,11>n||(i&=-2,o&=-2),0>i||0>o||0>=s||0>=l||i+s>a||o+l>r))return 0;if(e.v=i,e.j=o,e.va=i+s,e.o=o+l,e.U=s,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!D(s,l,n=[t.ib],i=[t.hb]))return 0;e.ib=n[0],e.hb=i[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*a/4&&e.hb<3*r/4,e.Kb=0),1}function Dn(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Fn(t,e,n,a){if(null==a||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var r=n.cd,o=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=r||0>=o||s+r>t||l+o>e)return 2;t=r,e=o}if(n.da){if(!D(t,e,r=[n.ib],o=[n.hb]))return 2;t=r[0],e=o[0]}}a.width=t,a.height=e;t:{var c=a.width,u=a.height;if(t=a.S,0>=c||0>=u||!(t>=Ia&&13>t))t=2;else{if(0>=a.Rd&&null==a.sd){s=o=r=e=0;var d=(l=c*zr[t])*u;if(11>t||(o=(u+1)/2*(e=(c+1)/2),12==t&&(s=(r=c)*u)),null==(u=i(d+2*o+s))){t=1;break t}a.sd=u,11>t?((c=a.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=d):((c=a.f.kb).y=u,c.O=0,c.fa=l,c.Fd=d,c.f=u,c.N=0+d,c.Ab=e,c.Cd=o,c.ea=u,c.W=0+d+o,c.Db=e,c.Ed=o,12==t&&(c.F=u,c.J=0+d+2*o),c.Tc=s,c.lb=r)}if(e=1,r=a.S,o=a.width,s=a.height,r>=Ia&&13>r)if(11>r)t=a.f.RGBA,e&=(l=Math.abs(t.A))*(s-1)+o<=t.size,e&=l>=o*zr[r],e&=null!=t.eb;else{t=a.f.kb,l=(o+1)/2,d=(s+1)/2,c=Math.abs(t.fa),u=Math.abs(t.Ab);var h=Math.abs(t.Db),f=Math.abs(t.lb),p=f*(s-1)+o;e&=c*(s-1)+o<=t.Fd,e&=u*(d-1)+l<=t.Cd,e=(e&=h*(d-1)+l<=t.Ed)&c>=o&u>=l&h>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==r&&(e&=f>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Dn(a)),t}var jn=64,Bn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],zn=24,Un=32,Hn=8,Vn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];B("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return U(U(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return U(t,e[n-1])},t.Predictor7=function(t,e,n){return U(t,e[n+0])},t.Predictor8=function(t,e,n){return U(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return U(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return U(U(t,e[n-1]),U(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var a=e[n+0];return 0>=W(a>>24&255,t>>24&255,(e=e[n-1])>>24&255)+W(a>>16&255,t>>16&255,e>>16&255)+W(a>>8&255,t>>8&255,e>>8&255)+W(255&a,255&t,255&e)?a:t},t.Predictor12=function(t,e,n){var a=e[n+0];return(H((t>>24&255)+(a>>24&255)-((e=e[n-1])>>24&255))<<24|H((t>>16&255)+(a>>16&255)-(e>>16&255))<<16|H((t>>8&255)+(a>>8&255)-(e>>8&255))<<8|H((255&t)+(255&a)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var a=e[n-1];return(V((t=U(t,e[n+0]))>>24&255,a>>24&255)<<24|V(t>>16&255,a>>16&255)<<16|V(t>>8&255,a>>8&255)<<8|V(255&t,255&a))>>>0};var Wn=t.PredictorAdd0;t.PredictorAdd1=q,B("Predictor2","PredictorAdd2"),B("Predictor3","PredictorAdd3"),B("Predictor4","PredictorAdd4"),B("Predictor5","PredictorAdd5"),B("Predictor6","PredictorAdd6"),B("Predictor7","PredictorAdd7"),B("Predictor8","PredictorAdd8"),B("Predictor9","PredictorAdd9"),B("Predictor10","PredictorAdd10"),B("Predictor11","PredictorAdd11"),B("Predictor12","PredictorAdd12"),B("Predictor13","PredictorAdd13");var qn=t.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var $n,Kn=t.ColorIndexInverseTransform,Gn=t.MapARGB,Yn=t.VP8LColorIndexInverseTransformAlpha,Xn=t.MapAlpha,Jn=t.VP8LPredictorsAdd=[];Jn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Zn,Qn,ta,ea,na,aa,ra,ia,oa,sa,la,ca,ua,da,ha,fa,pa,ma,ga,va,ba,_a,ya,wa,xa,ka,Sa,Ca,Aa=i(511),Ea=i(2041),Ta=i(225),Pa=i(767),Na=0,La=Ea,Oa=Ta,Ma=Pa,Ra=Aa,Ia=0,Da=1,Fa=2,ja=3,Ba=4,za=5,Ua=6,Ha=7,Va=8,Wa=9,qa=10,$a=[2,3,7],Ka=[3,3,11],Ga=[280,256,256,256,40],Ya=[0,1,1,1,0],Xa=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Ja=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Za=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Qa=8,tr=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],er=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],nr=null,ar=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],rr=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ir=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],or=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],sr=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],lr=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],cr=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ur=[],dr=[],hr=[],fr=1,pr=2,mr=[],gr=[];vn("UpsampleRgbLinePair",kn,3),vn("UpsampleBgrLinePair",Sn,3),vn("UpsampleRgbaLinePair",Pn,4),vn("UpsampleBgraLinePair",Tn,4),vn("UpsampleArgbLinePair",En,4),vn("UpsampleRgba4444LinePair",An,2),vn("UpsampleRgb565LinePair",Cn,2);var vr=t.UpsampleRgbLinePair,br=t.UpsampleBgrLinePair,_r=t.UpsampleRgbaLinePair,yr=t.UpsampleBgraLinePair,wr=t.UpsampleArgbLinePair,xr=t.UpsampleRgba4444LinePair,kr=t.UpsampleRgb565LinePair,Sr=16,Cr=1<<Sr-1,Ar=-227,Er=482,Tr=6,Pr=(256<<Tr)-1,Nr=0,Lr=i(256),Or=i(256),Mr=i(256),Rr=i(256),Ir=i(Er-Ar),Dr=i(Er-Ar);Nn("YuvToRgbRow",kn,3),Nn("YuvToBgrRow",Sn,3),Nn("YuvToRgbaRow",Pn,4),Nn("YuvToBgraRow",Tn,4),Nn("YuvToArgbRow",En,4),Nn("YuvToRgba4444Row",An,2),Nn("YuvToRgb565Row",Cn,2);var Fr=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],jr=[0,2,8],Br=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,n,s,l,c){var u=Da,d=new en,h=new ot;d.ba=h,h.S=u,h.width=[h.width],h.height=[h.height];var f=h.width,p=h.height,m=new st;if(null==m||null==t)var g=2;else e(null!=m),g=Rn(t,n,s,m.width,m.height,m.Pd,m.Qd,m.format,null);if(0!=g?f=0:(null!=f&&(f[0]=m.width[0]),null!=p&&(p[0]=m.height[0]),f=1),f){h.width=h.width[0],h.height=h.height[0],null!=l&&(l[0]=h.width),null!=c&&(c[0]=h.height);t:{if(l=new $t,(c=new nn).data=t,c.w=n,c.ha=s,c.kd=1,n=[0],e(null!=c),(0==(t=Rn(c.data,c.w,c.ha,null,null,null,n,null,c))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=d),l.data=c.data,l.w=c.w+c.offset,l.ha=c.ha-c.offset,l.put=ft,l.ac=ht,l.bc=pt,l.ma=d,c.xa){if(null==(t=Tt())){d=1;break t}if(function(t,n){var a=[0],r=[0],i=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,v(t.m,n.data,n.w,n.ha),!mt(t.m,a,r,i)){t.a=3;break e}if(t.xb=pr,n.width=a[0],n.height=r[0],!Pt(a[0],r[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,l)){if(l=0==(n=Fn(l.width,l.height,d.Oa,d.ba))){e:{l=t;n:for(;;){if(null==l){l=0;break e}if(e(null!=l.s.yc),e(null!=l.s.Ya),e(0<l.s.Wb),e(null!=(s=l.l)),e(null!=(c=s.ma)),0!=l.xb){if(l.ca=c.ba,l.tb=c.tb,e(null!=l.ca),!In(c.Oa,s,ja)){l.a=2;break n}if(!Nt(l,s.width))break n;if(s.da)break n;if((s.da||at(l.ca.S))&&gn(),11>l.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=l.ca.f.kb.F&&gn()),l.Pb&&0<l.s.ua&&null==l.s.vb.X&&!M(l.s.vb,l.s.Wa.Xa)){l.a=1;break n}l.xb=0}if(!At(l,l.V,l.Ba,l.c,l.i,s.o,xt))break n;c.Dc=l.Ma,l=1;break e}e(0!=l.a),l=0}l=!l}l&&(n=t.a)}else n=t.a}else{if(null==(t=new Kt)){d=1;break t}if(t.Fa=c.na,t.P=c.P,t.qc=c.Sa,Xt(t,l)){if(0==(n=Fn(l.width,l.height,d.Oa,d.ba))){if(t.Aa=0,s=d.Oa,e(null!=(c=t)),null!=s){if(0<(f=0>(f=s.Md)?0:100<f?255:255*f/100)){for(p=m=0;4>p;++p)12>(g=c.pb[p]).lc&&(g.ia=f*Br[0>g.lc?0:g.lc]>>3),m|=g.ia;m&&(alert("todo:VP8InitRandom"),c.ia=1)}c.Ga=s.Id,100<c.Ga?c.Ga=100:0>c.Ga&&(c.Ga=0)}(function(t,n){if(null==t)return 0;if(null==n)return Gt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Xt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=jr[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var l=t.ed;for(s=0;4>s;++s){var c;if(t.Qa.Cb){var u=t.Qa.Lb[s];t.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var d=t.gd[s][c],h=u;if(l.Pc&&(h+=l.vd[0],c&&(h+=l.od[0])),0<(h=0>h?0:63<h?63:h)){var f=h;0<l.wb&&(f=4<l.wb?f>>2:f>>1)>9-l.wb&&(f=9-l.wb),1>f&&(f=1),d.dd=f,d.tc=2*h+f,d.ld=40<=h?2:15<=h?1:0}else d.tc=0;d.La=c}}}s=0}else Gt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=1);e:{s=t.Ic,l=4*(f=t.za);var p=32*f,m=f+1,g=0<t.L?f*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*f;if((d=l+832+(c=3*(16*s+jr[t.L])/2*p)+(u=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=d)s=0;else{if(d>t.Vb){if(t.Vb=0,t.Ec=i(d),t.Fc=0,null==t.Ec){s=Gt(t,1,"no memory during frame initialization.");break e}t.Vb=d}d=t.Ec,h=t.Fc,t.Ac=d,t.Bc=h,h+=l,t.Gd=o(p,Vt),t.Hd=0,t.rb=o(m+1,Bt),t.sb=1,t.wa=g?o(g,jt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=f),e(!0),t.oc=d,t.pc=h,h+=832,t.ya=o(v,Ut),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=f),t.R=16*f,t.B=8*f,f=(p=jr[t.L])*t.R,p=p/2*t.B,t.sa=d,t.ta=h+f,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,h+=c,t.mb=u?d:null,t.nb=u?h:null,e(h+u<=t.Fc+t.Vb),Zt(t),r(t.Ac,t.Bc,0,l),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Na){for(s=-255;255>=s;++s)Aa[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Ea[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Ta[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Pa[255+s]=0>s?0:255<s?255:s;Na=1}ra=le,ia=re,sa=ie,la=oe,ca=se,oa=ae,ua=Ke,da=Ge,ha=Je,fa=Ze,pa=Ye,ma=Xe,ga=Qe,va=tn,ba=Ue,_a=He,ya=Ve,wa=We,dr[0]=ke,dr[1]=ue,dr[2]=we,dr[3]=xe,dr[4]=Se,dr[5]=Ae,dr[6]=Ce,dr[7]=Ee,dr[8]=Pe,dr[9]=Te,ur[0]=ge,ur[1]=he,ur[2]=fe,ur[3]=pe,ur[4]=ve,ur[5]=be,ur[6]=_e,hr[0]=Me,hr[1]=de,hr[2]=Ne,hr[3]=Le,hr[4]=Ie,hr[5]=Re,hr[6]=De,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],l=t.m,c=t;for(o=0;o<c.za;++o){var u=l,d=c,h=d.Ac,f=d.Bc+4*o,p=d.zc,m=d.ya[d.aa+o];if(d.Qa.Bb?m.$b=T(u,d.Pa.jb[0])?2+T(u,d.Pa.jb[2]):T(u,d.Pa.jb[1]):m.$b=0,d.kc&&(m.Ad=T(u,d.Bd)),m.Za=!T(u,145)+0,m.Za){var g=m.Ob,v=0;for(d=0;4>d;++d){var b,_=p[0+d];for(b=0;4>b;++b){_=sr[h[f+b]][_];for(var y=ir[T(u,_[0])];0<y;)y=ir[2*y+T(u,_[y])];_=-y,h[f+b]=_}a(g,v,h,f,4),v+=4,p[0+d]=_}}else _=T(u,156)?T(u,128)?1:3:T(u,163)?2:0,m.Ob[0]=_,r(h,f,_,4),r(p,0,_,4);m.Dd=T(u,142)?T(u,114)?T(u,183)?1:3:2:0}if(c.m.Ka)return Gt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(c=s,u=(l=t).rb[l.sb-1],h=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],f=l.kc?o.Ad:0)u.la=h.la=0,o.Za||(u.Na=h.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var w,x;if(u=h,h=c,f=l.Pa.Xc,p=l.ya[l.aa+l.ja],m=l.pb[p.$b],d=p.ad,g=0,v=l.rb[l.sb-1],_=b=0,r(d,g,0,384),p.Za)var k=0,S=f[3];else{y=i(16);var C=u.Na+v.Na;if(C=nr(h,f[1],C,m.Eb,0,y,0),u.Na=v.Na=(0<C)+0,1<C)ra(y,0,d,g);else{var A=y[0]+3>>3;for(y=0;256>y;y+=16)d[g+y]=A}k=1,S=f[0]}var E=15&u.la,P=15&v.la;for(y=0;4>y;++y){var N=1&P;for(A=x=0;4>A;++A)E=E>>1|(N=(C=nr(h,S,C=N+(1&E),m.Sc,k,d,g))>k)<<7,x=x<<2|(3<C?3:1<C?2:0!=d[g+0]),g+=16;E>>=4,P=P>>1|N<<7,b=(b<<8|x)>>>0}for(S=E,k=P>>4,w=0;4>w;w+=2){for(x=0,E=u.la>>4+w,P=v.la>>4+w,y=0;2>y;++y){for(N=1&P,A=0;2>A;++A)C=N+(1&E),E=E>>1|(N=0<(C=nr(h,f[2],C,m.Qc,0,d,g)))<<3,x=x<<2|(3<C?3:1<C?2:0!=d[g+0]),g+=16;E>>=2,P=P>>1|N<<5}_|=x<<4*w,S|=E<<4<<w,k|=(240&P)<<w}u.la=S,v.la=k,p.Hc=b,p.Gc=_,p.ia=43690&_?0:m.ia,f=!(b|_)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!f),c.Ka)return Gt(t,7,"Premature end-of-file encountered.")}if(Zt(t),l=n,c=1,o=(s=t).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(o.M=s.M,o.uc=u,Mn(s,o),c=1,o=(x=s.D).Nb,u=(_=jr[s.L])*s.R,h=_/2*s.B,y=16*o*s.R,A=8*o*s.B,f=s.sa,p=s.ta-u+y,m=s.qa,d=s.ra-h+A,g=s.Ha,v=s.Ia-h+A,P=0==(E=x.M),b=E>=s.Va-1,2==s.Aa&&Mn(s,x),x.uc)for(N=(C=s).D.M,e(C.D.uc),x=C.yb;x<C.Hb;++x){k=x,S=N;var L=(O=(U=C).D).Nb;w=U.R;var O=O.wa[O.Y+k],M=U.sa,R=U.ta+16*L*w+16*k,I=O.dd,D=O.tc;if(0!=D)if(e(3<=D),1==U.L)0<k&&_a(M,R,w,D+4),O.La&&wa(M,R,w,D),0<S&&ba(M,R,w,D+4),O.La&&ya(M,R,w,D);else{var F=U.B,j=U.qa,B=U.ra+8*L*F+8*k,z=U.Ha,U=U.Ia+8*L*F+8*k;L=O.ld,0<k&&(da(M,R,w,D+4,I,L),fa(j,B,z,U,F,D+4,I,L)),O.La&&(ma(M,R,w,D,I,L),va(j,B,z,U,F,D,I,L)),0<S&&(ua(M,R,w,D+4,I,L),ha(j,B,z,U,F,D+4,I,L)),O.La&&(pa(M,R,w,D,I,L),ga(j,B,z,U,F,D,I,L))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(x=16*E,E=16*(E+1),P?(l.y=s.sa,l.O=s.ta+y,l.f=s.qa,l.N=s.ra+A,l.ea=s.Ha,l.W=s.Ia+A):(x-=_,l.y=f,l.O=p,l.f=m,l.N=d,l.ea=g,l.W=v),b||(E-=_),E>l.o&&(E=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&x<E&&(l.J=dn(s,l,x,E-x),l.F=s.mb,null==l.F&&0==l.F.length)){c=Gt(s,3,"Could not decode alpha data.");break e}x<l.j&&(_=l.j-x,x=l.j,e(!(1&_)),l.O+=s.R*_,l.N+=s.B*(_>>1),l.W+=s.B*(_>>1),null!=l.F&&(l.J+=l.width*_)),x<E&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=E-x,c=l.put(l))}o+1!=s.Ic||b||(a(s.sa,s.ta-u,f,p+16*s.R,u),a(s.qa,s.ra-h,m,d+8*s.B,h),a(s.Ha,s.Ia-h,g,v+8*s.B,h))}if(!c)return Gt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0})(t,l)||(n=t.a)}}else n=t.a}0==n&&null!=d.Oa&&d.Oa.fd&&(n=Dn(d.ba))}d=n}u=0!=d?null:11>u?h.f.RGBA.eb:h.f.kb.y}else u=null;return u};var zr=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(t,e){for(var n="",a=0;a<4;a++)n+=String.fromCharCode(t[e++]);return n}function u(t,e){return t[e+0]|t[e+1]<<8}function d(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16)>>>0}function h(t,e){return(t[e+0]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var f=[0],p=[0],m=[],g=new l,v=t,b=function(t,e){var n={},a=0,r=!1,i=0,o=0;if(n.frames=[],!function(t,e){for(var n=0;n<4;n++)if(t[e+n]!="RIFF".charCodeAt(n))return!0;return!1}(t,e)){for(h(t,e+=4),e+=8;e<t.length;){var s=c(t,e),l=h(t,e+=4);e+=4;var f=l+(1&l);switch(s){case"VP8 ":case"VP8L":void 0===n.frames[a]&&(n.frames[a]={}),(g=n.frames[a]).src_off=r?o:e-8,g.src_size=i+l+8,a++,r&&(r=!1,i=0,o=0);break;case"VP8X":(g=n.header={}).feature_flags=t[e];var p=e+4;g.canvas_width=1+d(t,p),p+=3,g.canvas_height=1+d(t,p),p+=3;break;case"ALPH":r=!0,i=f+8,o=e-8;break;case"ANIM":(g=n.header).bgcolor=h(t,e),p=e+4,g.loop_count=u(t,p),p+=2;break;case"ANMF":var m,g;(g=n.frames[a]={}).offset_x=2*d(t,e),e+=3,g.offset_y=2*d(t,e),e+=3,g.width=1+d(t,e),e+=3,g.height=1+d(t,e),e+=3,g.duration=d(t,e),e+=3,m=t[e++],g.dispose=1&m,g.blend=m>>1&1}"ANMF"!=s&&(e+=f)}return n}}(v,0);b.response=v,b.rgbaoutput=!0,b.dataurl=!1;var _=b.header?b.header:null,y=b.frames?b.frames:null;if(_){_.loop_counter=_.loop_count,f=[_.canvas_height],p=[_.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],k=g.WebPDecodeRGBA(v,x.src_off,x.src_size,p,f);x.rgba=k,x.imgwidth=p[0],x.imgheight=f[0];for(var S=0;S<p[0]*f[0]*4;S++)m[S]=k[S];return this.width=p,this.height=f,this.data=m,this}function wo(){var t,e=this.internal.__metadata__.metadata,n=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?n:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function xo(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(t){var e,n,r,i,o,s,l,c,u,d=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new c,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new s,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new s,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new h(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,u=new d}]);var h=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var a=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return a},set:function(t){a=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),u.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(t){t instanceof d&&(u=t)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(t){u.path=t}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=f(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=f(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var h=null,p=null,m=null;Object.defineProperty(this,"fontFaces",{get:function(){return m},set:function(t){h=null,p=null,m=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(t))){var n=e[1];e[2];var a=e[3],r=e[4];e[5];var i=e[6],o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(r)[2];r="px"===o?Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(r);var s=function(t){var e,n,a=[],r=t.trim();if(""===r)return ao;if(r in Ki)return[Ki[r]];for(;""!==r;){switch(n=null,e=(r=Yi(r)).charAt(0)){case'"':case"'":n=Xi(r.substring(1),e);break;default:n=Ji(r)}if(null===n)return ao;if(a.push(n[0]),""!==(r=Yi(n[1]))&&","!==r.charAt(0))return ao;r=r.replace(/^,/,"")}return a}(i);if(this.fontFaces){var l=function(t,e){var n=t.getFontList(),a=JSON.stringify(n);if(null===h||p!==a){var r=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var a=null;switch(t){case"bold":a={family:n,weight:"bold"};break;case"italic":a={family:n,style:"italic"};break;case"bolditalic":a={family:n,weight:"bold",style:"italic"};break;case"":case"normal":a={family:n}}null!==a&&(a.ref={name:n,style:t},e.push(a))}))})),e}(n);h=function(t){for(var e={},n=0;n<t.length;++n){var a=Wi(t[n]),r=a.family,i=a.stretch,o=a.style,s=a.weight;e[r]=e[r]||{},e[r][i]=e[r][i]||{},e[r][i][o]=e[r][i][o]||{},e[r][i][o][s]=a}return e}(r.concat(e)),p=a}return h}(this.pdf,this.fontFaces),c=s.map((function(t){return{family:t,stretch:"normal",weight:a,style:n}})),u=function(t,e,n){for(var a=(n=n||{}).defaultFontFamily||"times",r=Object.assign({},$i,n.genericFontFamilies||{}),i=null,o=null,s=0;s<e.length;++s)if(r[(i=Wi(e[s])).family]&&(i.family=r[i.family]),t.hasOwnProperty(i.family)){o=t[i.family];break}if(!(o=o||t[a]))throw new Error("Could not find a font-family for the rule '"+Gi(i)+"' and default family '"+a+"'.");if(o=function(t,e){if(e[t])return e[t];var n=Ui[t],a=n<=Ui.normal?-1:1,r=qi(e,zi,n,a);if(!r)throw new Error("Could not find a matching font-stretch value for "+t);return r}(i.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=Bi[t],a=0;a<n.length;++a)if(e[n[a]])return e[n[a]];throw new Error("Could not find a matching font-style for "+t)}(i.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=Vi[t],a=qi(e,Hi,n,t<400?-1:1);if(!a)throw new Error("Could not find a matching font-weight for value "+t);return a}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Gi(i)+"'.");return o}(l,c);this.pdf.setFont(u.ref.name,u.ref.style)}else{var d="";("bold"===a||parseInt(a,10)>=700||"bold"===n)&&(d="bold"),"italic"===n&&(d+="italic"),0===d.length&&(d="normal");for(var f="",m={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},g=0;g<s.length;g++){if(void 0!==this.pdf.internal.getFont(s[g],d,{noFallback:!0,disableWarning:!0})){f=s[g];break}if("bolditalic"===d&&void 0!==this.pdf.internal.getFont(s[g],"bold",{noFallback:!0,disableWarning:!0}))f=s[g],d="bold";else if(void 0!==this.pdf.internal.getFont(s[g],"normal",{noFallback:!0,disableWarning:!0})){f=s[g],d="normal";break}}if(""===f)for(var v=0;v<s.length;v++)if(m[s[v]]){f=m[s[v]];break}f=""===f?"Times":f,this.pdf.setFont(f,d)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,j.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,j.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};h.prototype.setLineDash=function(t){this.lineDash=t},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){w.call(this,"fill",!1)},h.prototype.stroke=function(){w.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(t,e)},h.prototype.closePath=function(){var t=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===(0,a.A)(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new s(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(t.x,t.y)},h.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),w.call(this,null,!0)},h.prototype.quadraticCurveTo=function(t,e,n,a){if(isNaN(n)||isNaN(a)||isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var r=this.ctx.transform.applyToPoint(new s(n,a)),i=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:i.x,y1:i.y,x:r.x,y:r.y}),this.ctx.lastPoint=new s(r.x,r.y)},h.prototype.bezierCurveTo=function(t,e,n,a,r,i){if(isNaN(r)||isNaN(i)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(r,i)),l=this.ctx.transform.applyToPoint(new s(t,e)),c=this.ctx.transform.applyToPoint(new s(n,a));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},h.prototype.arc=function(t,e,n,a,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r))throw vr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(t,e));t=o.x,e=o.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),c=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(r-a)>=2*Math.PI&&(a=0,r=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:a,endAngle:r,counterclockwise:i})},h.prototype.arcTo=function(t,e,n,a,r){throw new Error("arcTo not implemented.")},h.prototype.rect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+a),this.lineTo(t,e+a),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},h.prototype.fillRect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var r={};"butt"!==this.lineCap&&(r.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(r.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,a),this.fill(),r.hasOwnProperty("lineCap")&&(this.lineCap=r.lineCap),r.hasOwnProperty("lineJoin")&&(this.lineJoin=r.lineJoin)}},h.prototype.strokeRect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(t,e,n,a),this.stroke())},h.prototype.clearRect=function(t,e,n,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a))throw vr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,a))},h.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var a=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=a}},h.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(t){var e,n,a,r;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,a=0,r=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==i)e=parseInt(i[1]),n=parseInt(i[2]),a=parseInt(i[3]),r=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(i[1]),n=parseInt(i[2]),a=parseInt(i[3]),r=parseFloat(i[4]);else{if(r=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new xr(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,a=t.substring(3,4),a+=a):(e=t.substring(1,3),n=t.substring(3,5),a=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),a=parseInt(a,16)}}return{r:e,g:n,b:a,a:r,style:t}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(t,e,n,a){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw vr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(a=isNaN(a)?void 0:a,!p.call(this)){var r=I(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;P.call(this,{text:t,x:e,y:n,scale:i,angle:r,align:this.textAlign,maxWidth:a})}},h.prototype.strokeText=function(t,e,n,a){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw vr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){a=isNaN(a)?void 0:a;var r=I(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;P.call(this,{text:t,x:e,y:n,scale:i,renderingMode:"stroke",angle:r,align:this.textAlign,maxWidth:a})}},h.prototype.measureText=function(t){if("string"!=typeof t)throw vr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,a=e.internal.getFontSize(),r=e.getStringUnitWidth(t)*a/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:r*=Math.round(96*n/72*1e4)/1e4})},h.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},h.prototype.rotate=function(t){if(isNaN(t))throw vr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new c(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw vr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},h.prototype.transform=function(t,e,n,a,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(a)||isNaN(r)||isNaN(i))throw vr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new c(t,e,n,a,r,i);this.ctx.transform=this.ctx.transform.multiply(o)},h.prototype.setTransform=function(t,e,n,a,r,i){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,a=isNaN(a)?1:a,r=isNaN(r)?0:r,i=isNaN(i)?0:i,this.ctx.transform=new c(t,e,n,a,r,i)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(t,e,n,a,r,i,o,s,u){var d=this.pdf.getImageProperties(t),h=1,f=1,p=1,m=1;void 0!==a&&void 0!==s&&(p=s/a,m=u/r,h=d.width/a*s/a,f=d.height/r*u/r),void 0===i&&(i=e,o=n,e=0,n=0),void 0!==a&&void 0===s&&(s=a,u=r),void 0===a&&void 0===s&&(s=d.width,u=d.height);var b=this.ctx.transform.decompose(),w=I(b.rotate.shx),k=new c,S=(k=(k=(k=k.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new l(i-e*p,o-n*m,a*h,r*f));if(this.autoPaging){for(var C,A=v.call(this,S),E=[],T=0;T<A.length;T+=1)-1===E.indexOf(A[T])&&E.push(A[T]);y(E);for(var P=E[0],N=E[E.length-1],L=P;L<N+1;L++){this.pdf.setPage(L);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],M=1===L?this.posY+this.margin[0]:this.margin[0],R=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],D=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],F=1===L?0:R+(L-2)*D;if(0!==this.ctx.clip_path.length){var j=this.path;C=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(C,this.posX+this.margin[3],-F+M+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=j}var B=JSON.parse(JSON.stringify(S));B=_([B],this.posX+this.margin[3],-F+M+this.ctx.prevPageLastElemOffset)[0];var z=(L>P||L<N)&&g.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,D,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",B.x,B.y,B.w,B.h,null,null,w),z&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,w)};var v=function(t,e,n){var a=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var r=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":a.push(Math.floor((t.y+r)/n)+1);break;case"arc":a.push(Math.floor((t.y+r-t.radius)/n)+1),a.push(Math.floor((t.y+r+t.radius)/n)+1);break;case"qct":var i=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);a.push(Math.floor((i.y+r)/n)+1),a.push(Math.floor((i.y+i.h+r)/n)+1);break;case"bct":var o=F(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);a.push(Math.floor((o.y+r)/n)+1),a.push(Math.floor((o.y+o.h+r)/n)+1);break;case"rect":a.push(Math.floor((t.y+r)/n)+1),a.push(Math.floor((t.y+t.h+r)/n)+1)}for(var s=0;s<a.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<a[s];)b.call(this);return a},b=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,a=this.lineCap,r=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=a,this.lineWidth=r,this.lineJoin=i},_=function(t,e,n){for(var a=0;a<t.length;a++)switch(t[a].type){case"bct":t[a].x2+=e,t[a].y2+=n;case"qct":t[a].x1+=e,t[a].y1+=n;default:t[a].x+=e,t[a].y+=n}return t},y=function(t){return t.sort((function(t,e){return t-e}))},w=function(t,e){var n=this.fillStyle,a=this.strokeStyle,r=this.lineCap,i=this.lineWidth,o=Math.abs(i*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var l,c,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<d.length;f++)if(void 0!==d[f].x)for(var p=v.call(this,d[f]),m=0;m<p.length;m+=1)-1===h.indexOf(p[m])&&h.push(p[m]);for(var w=0;w<h.length;w++)for(;this.pdf.internal.getNumberOfPages()<h[w];)b.call(this);y(h);for(var k=h[0],S=h[h.length-1],C=k;C<S+1;C++){this.pdf.setPage(C),this.fillStyle=n,this.strokeStyle=a,this.lineCap=r,this.lineWidth=o,this.lineJoin=s;var A=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],E=1===C?this.posY+this.margin[0]:this.margin[0],T=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],P=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],N=1===C?0:T+(C-2)*P;if(0!==this.ctx.clip_path.length){var L=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(l,this.posX+this.margin[3],-N+E+this.ctx.prevPageLastElemOffset),x.call(this,t,!0),this.path=L}if(c=JSON.parse(JSON.stringify(u)),this.path=_(c,this.posX+this.margin[3],-N+E+this.ctx.prevPageLastElemOffset),!1===e||0===C){var O=(C>k||C<S)&&g.call(this);O&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],A,P,null).clip().discardPath()),x.call(this,t,e),O&&this.pdf.restoreGraphicsState()}this.lineWidth=i}this.path=u}else this.lineWidth=o,x.call(this,t,e),this.lineWidth=i},x=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!p.call(this))){for(var n,a,r=[],i=this.path,o=0;o<i.length;o++){var s=i[o];switch(s.type){case"begin":r.push({begin:!0});break;case"close":r.push({close:!0});break;case"mt":r.push({start:s,deltas:[],abs:[]});break;case"lt":var l=r.length;if(i[o-1]&&!isNaN(i[o-1].x)&&(n=[s.x-i[o-1].x,s.y-i[o-1].y],l>0))for(;l>=0;l--)if(!0!==r[l-1].close&&!0!==r[l-1].begin){r[l-1].deltas.push(n),r[l-1].abs.push(s);break}break;case"bct":n=[s.x1-i[o-1].x,s.y1-i[o-1].y,s.x2-i[o-1].x,s.y2-i[o-1].y,s.x-i[o-1].x,s.y-i[o-1].y],r[r.length-1].deltas.push(n);break;case"qct":var c=i[o-1].x+2/3*(s.x1-i[o-1].x),u=i[o-1].y+2/3*(s.y1-i[o-1].y),d=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),f=s.x,g=s.y;n=[c-i[o-1].x,u-i[o-1].y,d-i[o-1].x,h-i[o-1].y,f-i[o-1].x,g-i[o-1].y],r[r.length-1].deltas.push(n);break;case"arc":r.push({deltas:[],abs:[],arc:!0}),Array.isArray(r[r.length-1].abs)&&r[r.length-1].abs.push(s)}}a=e?null:"stroke"===t?"stroke":"fill";for(var v=!1,b=0;b<r.length;b++)if(r[b].arc)for(var _=r[b].abs,y=0;y<_.length;y++){var w=_[y];"arc"===w.type?C.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e,!v):N.call(this,w.x,w.y),v=!0}else if(!0===r[b].close)this.pdf.internal.out("h"),v=!1;else if(!0!==r[b].begin){var x=r[b].start.x,k=r[b].start.y;L.call(this,r[b].deltas,x,k),v=!0}a&&A.call(this,a),e&&E.call(this)}},k=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;default:return t}},S=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var C=function(t,e,n,a,r,i,o,s,l){for(var c=M.call(this,n,a,r,i),u=0;u<c.length;u++){var d=c[u];0===u&&(l?T.call(this,d.x1+t,d.y1+e):N.call(this,d.x1+t,d.y1+e)),O.call(this,t,e,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}s?E.call(this):A.call(this,o)},A=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},E=function(){this.pdf.clip(),this.pdf.discardPath()},T=function(t,e){this.pdf.internal.out(n(t)+" "+r(e)+" m")},P=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var n,a,r,i=this.pdf.getTextDimensions(t.text),o=k.call(this,t.y),u=S.call(this,o)-i.h,d=this.ctx.transform.applyToPoint(new s(t.x,o));if(this.autoPaging){var h=this.ctx.transform.decompose(),f=new c;f=(f=(f=f.multiply(h.translate)).multiply(h.skew)).multiply(h.scale);for(var p=this.ctx.transform.applyToRectangle(new l(t.x,o,i.w,i.h)),m=f.applyToRectangle(new l(t.x,u,i.w,i.h)),b=v.call(this,m),w=[],C=0;C<b.length;C+=1)-1===w.indexOf(b[C])&&w.push(b[C]);y(w);for(var A=w[0],E=w[w.length-1],T=A;T<E+1;T++){this.pdf.setPage(T);var P=1===T?this.posY+this.margin[0]:this.margin[0],N=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[2],O=L-this.margin[0],M=this.pdf.internal.pageSize.width-this.margin[1],R=M-this.margin[3],I=1===T?0:N+(T-2)*O;if(0!==this.ctx.clip_path.length){var D=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=_(n,this.posX+this.margin[3],-1*I+P),x.call(this,"fill",!0),this.path=D}var F=_([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),r=this.lineWidth,this.lineWidth=r*t.scale);var j="text"!==this.autoPaging;if(j||F.y+F.h<=L){if(j||F.y>=P&&F.x<=M){var B=j?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||M-F.x)[0],z=_([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-I+P+this.ctx.prevPageLastElemOffset)[0],U=j&&(T>A||T<E)&&g.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],R,O,null).clip().discardPath()),this.pdf.text(B,z.x,z.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),U&&this.pdf.restoreGraphicsState()}}else F.y<L&&(this.ctx.prevPageLastElemOffset+=L-F.y);t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=r)}}else t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),r=this.lineWidth,this.lineWidth=r*t.scale),this.pdf.text(t.text,d.x+this.posX,d.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=r)},N=function(t,e,a,i){a=a||0,i=i||0,this.pdf.internal.out(n(t+a)+" "+r(e+i)+" l")},L=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},O=function(t,n,a,r,s,l,c,u){this.pdf.internal.out([e(i(a+t)),e(o(r+n)),e(i(s+t)),e(o(l+n)),e(i(c+t)),e(o(u+n)),"c"].join(" "))},M=function(t,e,n,a){for(var r=2*Math.PI,i=Math.PI/2;e>n;)e-=r;var o=Math.abs(n-e);o<r&&a&&(o=r-o);for(var s=[],l=a?-1:1,c=e;o>1e-5;){var u=c+l*Math.min(o,i);s.push(R.call(this,t,c,u)),o-=Math.abs(u-c),c=u}return s},R=function(t,e,n){var a=(n-e)/2,r=t*Math.cos(a),i=t*Math.sin(a),o=r,s=-i,l=o*o+s*s,c=l+o*r+s*i,u=4/3*(Math.sqrt(2*l*c)-c)/(o*i-s*r),d=o-u*s,h=s+u*o,f=d,p=-h,m=a+e,g=Math.cos(m),v=Math.sin(m);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:d*g-h*v,y2:d*v+h*g,x3:f*g-p*v,y3:f*v+p*g,x4:t*Math.cos(n),y4:t*Math.sin(n)}},I=function(t){return 180*t/Math.PI},D=function(t,e,n,a,r,i){var o=t+.5*(n-t),s=e+.5*(a-e),c=r+.5*(n-r),u=i+.5*(a-i),d=Math.min(t,r,o,c),h=Math.max(t,r,o,c),f=Math.min(e,i,s,u),p=Math.max(e,i,s,u);return new l(d,f,h-d,p-f)},F=function(t,e,n,a,r,i,o,s){var c,u,d,h,f,p,m,g,v,b,_,y,w,x,k=n-t,S=a-e,C=r-n,A=i-a,E=o-r,T=s-i;for(u=0;u<41;u++)v=(m=(d=t+(c=u/40)*k)+c*((f=n+c*C)-d))+c*(f+c*(r+c*E-f)-m),b=(g=(h=e+c*S)+c*((p=a+c*A)-h))+c*(p+c*(i+c*T-p)-g),0==u?(_=v,y=b,w=v,x=b):(_=Math.min(_,v),y=Math.min(y,b),w=Math.max(w,v),x=Math.max(x,b));return new l(Math.round(_),Math.round(y),Math.round(w-_),Math.round(x-y))},j=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(Gr.API),function(t){var e=function(t){var e,n,a,r,i,o,s,l,c,u;for(/[^\x00-\xFF]/.test(t),n=[],a=0,r=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;r>a;a+=4)0!==(i=(t.charCodeAt(a)<<24)+(t.charCodeAt(a+1)<<16)+(t.charCodeAt(a+2)<<8)+t.charCodeAt(a+3))?(o=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(l=i%85))/85)-(s=i%85))/85)%85,n.push(o+33,s+33,l+33,c+33,u+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,a,r,i,o=String,s="length",l=255,c="charCodeAt",u="slice",d="replace";for(t[u](-2),t=t[u](0,-2)[d](/\s/g,"")[d]("z","!!!!!"),a=[],r=0,i=(t+=e="uuuuu"[u](t[s]%5||5))[s];i>r;r+=5)n=52200625*(t[c](r)-33)+614125*(t[c](r+1)-33)+7225*(t[c](r+2)-33)+85*(t[c](r+3)-33)+(t[c](r+4)-33),a.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(a,e[s]),o.fromCharCode.apply(o,a)},a=function(t){return t.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">"},r=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",a=0;a<t.length;a+=2)n+=String.fromCharCode("0x"+(t[a]+t[a+1]));return n},i=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=U(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,o){var s=0,l=t||"",c=[];for("string"==typeof(o=o||[])&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=n(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=r(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=a(l),c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}}(Gr.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var a=void 0;try{a=function(t,e,n){var a=new XMLHttpRequest,r=0,i=function(t){var e=t.length,n=[],a=String.fromCharCode;for(r=0;r<e;r+=1)n.push(a(255&t.charCodeAt(r)));return n.join("")};if(a.open("GET",t,!e),a.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(a.onload=function(){200===a.status?n(i(this.responseText)):n(void 0)}),a.send(null),e&&200===a.status)return i(a.responseText)}(t,e,n)}catch(t){}return a}(t,e,n)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(Gr.API),function(t){function e(){return(mr.html2canvas?Promise.resolve(mr.html2canvas):n.e(354).then(n.t.bind(n,354,23))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function r(){return(mr.DOMPurify?Promise.resolve(mr.DOMPurify):n.e(418).then(n.bind(n,9418))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var i=function(t){var e=(0,a.A)(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},o=function(t,e){var n=document.createElement(t);for(var a in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[a]=e.style[a];return n},s=function t(e,n){for(var a=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),r=e.firstChild;r;r=r.nextSibling)!0!==n&&1===r.nodeType&&"SCRIPT"===r.nodeName||a.appendChild(t(r,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(a.width=e.width,a.height=e.height,a.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(a.value=e.value),a.addEventListener("load",(function(){a.scrollTop=e.scrollTop,a.scrollLeft=e.scrollLeft}),!0)),a},l=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),a=t.convert(Promise.resolve(),n);return(a=a.setProgress(1,t,1,[t])).set(e)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(t,e){return t.__proto__=e||l.prototype,t},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},l.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(i(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t),e){case"string":return this.then(r).then((function(e){return this.set({src:o("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},l.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},l.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},l.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,a="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,r=Object.assign({async:!0,allowTaint:!0,scale:a,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete r.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var o=n[i],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return r.windowHeight=r.windowHeight||0,r.windowHeight=0==r.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):r.windowHeight,e.context2d.save(!0),t(this.prop.container,r)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},l.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},l.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},l.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},l.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},l.prototype.set=function(t){if("object"!==i(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in l.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},l.prototype.get=function(t,e){return this.then((function(){var n=t in l.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},l.prototype.setMargin=function(t){return this.then((function(){switch(i(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},l.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||Gr.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},l.prototype.setProgress=function(t,e,n,a){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=a&&(this.progress.stack=a),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(t,e,n,a){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,a?this.progress.stack.concat(a):null)},l.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},l.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var a=this;t&&(t=t.bind(a)),e&&(e=e.bind(a));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?a:l.convert(Object.assign({},a),Promise.prototype),i=n.call(r,t,e);return l.convert(i,a.__proto__)},l.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},l.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},l.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return l.convert(e,this)},l.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},l.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,Gr.getPageSize=function(t,e,n){if("object"===(0,a.A)(t)){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+e}var l,c=0,u=0;if(s.hasOwnProperty(o))c=s[o][1]/i,u=s[o][0]/i;else try{c=n[1],u=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",u>c&&(l=u,u=c,c=l);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",c>u&&(l=u,u=c,c=l)}return{width:u,height:c,unit:e,k:i,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Wi):null;var n=new l(e);return e.worker?n:n.from(t).doCallback()}}(Gr.API),Gr.API.addJS=function(t){var e,n,a=function(t){for(var e="",n=0;n<t.length;n++){var a=t[n];if("("===a||")"===a){for(var r=0,i=n-1;i>=0&&"\\"===t[i];i--)r++;e+=r%2==0?"\\"+a:a}else e+=a}return e}(t);return this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+a+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==e&&void 0!==n&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")})),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=t.outline.render().split(/\r\n/),r=0;r<a.length;r++){var i=a[r],o=n.exec(i);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(r=0;r<l;r++){var u=t.internal.newObject();c.push(u);var d=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<c.length;r++)t.internal.write("(page_"+(r+1)+")"+c[r]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var a={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(a),a},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<e.children.length;a++){var r=e.children[a];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(e)),a>0&&this.line("/Prev "+this.makeRef(e.children[a-1])),a<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[a+1])),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var i=this.count=this.count_r({count:0},r);if(i>0&&this.line("/Count "+i),r.options&&r.options.pageNumber){var o=t.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(Gr.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,a,r,i,o){var s,l=this.decode.DCT_DECODE,c=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=i||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,s=function(t){for(var n,a=256*t.charCodeAt(4)+t.charCodeAt(5),r=t.length,i={width:0,height:0,numcomponents:1},o=4;o<r;o+=2){if(o+=a,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),i={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}a=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return i}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),s.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}c={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:a}}return c}}(Gr.API),Gr.API.processPNG=function(t,e,n,a){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var r,i=function(t,e){return new fr(t,e).decode()}(t,{checkCrc:!0}),o=i.width,s=i.height,l=i.channels,c=i.palette,u=i.depth;r=c&&1===l?function(t){for(var e=t.width,n=t.height,a=t.data,r=t.palette,i=t.depth,o=!1,s=[],l=[],c=void 0,u=!1,d=0,h=0;h<r.length;h++){var f=W(r[h],4),p=f[0],m=f[1],g=f[2],v=f[3];s.push(p,m,g),null!=v&&(0===v?(d++,l.length<1&&l.push(h)):v<255&&(u=!0))}if(u||d>1){o=!0,l=void 0;var b=e*n;c=new Uint8Array(b);for(var _=new DataView(a.buffer),y=0;y<b;y++){var w=W(r[fo(_,y,i)],4)[3];c[y]=w}}else 0===d&&(l=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:o?8:void 0,colorBytes:a,alphaBytes:c,needSMask:o,palette:s,mask:l}}(i):2===l||4===l?function(t){for(var e=t.data,n=t.width,a=t.height,r=t.channels,i=t.depth,o=2===r?"DeviceGray":"DeviceRGB",s=r-1,l=n*a,c=s,u=l*c,d=1*l,h=Math.ceil(u*i/8),f=Math.ceil(d*i/8),p=new Uint8Array(h),m=new Uint8Array(f),g=new DataView(e.buffer),v=new DataView(p.buffer),b=new DataView(m.buffer),_=!1,y=0;y<l;y++){for(var w=y*r,x=0;x<c;x++)po(v,fo(g,w+x,i),y*c+x,i);var k=fo(g,w+c,i);k<(1<<i)-1&&(_=!0),po(b,k,1*y,i)}return{colorSpace:o,colorsPerPixel:s,sMaskBitsPerComponent:_?i:void 0,colorBytes:p,alphaBytes:m,needSMask:_}}(i):function(t){var e=t.data,n=1===t.channels?"DeviceGray":"DeviceRGB";return{colorSpace:n,colorsPerPixel:"DeviceGray"===n?1:3,colorBytes:e instanceof Uint16Array?function(t){for(var e=t.length,n=new Uint8Array(2*e),a=new DataView(n.buffer,n.byteOffset,n.byteLength),r=0;r<e;r++)a.setUint16(2*r,t[r],!1);return n}(e):e,needSMask:!1}}(i);var d,h,f,p=r,m=p.colorSpace,g=p.colorsPerPixel,v=p.sMaskBitsPerComponent,b=p.colorBytes,_=p.alphaBytes,y=p.needSMask,w=p.palette,x=p.mask,k=null;return a!==Gr.API.image_compression.NONE?(k=function(t){var e;switch(t){case Gr.API.image_compression.FAST:e=11;break;case Gr.API.image_compression.MEDIUM:e=13;break;case Gr.API.image_compression.SLOW:e=14;break;default:e=12}return e}(a),d=this.decode.FLATE_DECODE,h="/Predictor ".concat(k," /Colors ").concat(g," /BitsPerComponent ").concat(u," /Columns ").concat(o),t=ro(b,Math.ceil(o*g*u/8),g,u,a),y&&(f=ro(_,Math.ceil(o*v/8),1,v,a))):(d=void 0,h=void 0,t=b,y&&(f=_)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:n,data:t,index:e,filter:d,decodeParameters:h,transparency:x,palette:w,sMask:f,predictor:k,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:v,colorSpace:m}}},function(t){t.processGIF89A=function(e,n,a,r){var i=new go(e),o=i.width,s=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new bo(100).encode(c,100);return t.processJPEG.call(this,u,n,a,r)},t.processGIF87A=t.processGIF89A}(Gr.API),_o.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:r,green:a,blue:n,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_o.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,e=this.width*this.height*4;if(e>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[t]()}catch(t){vr.log("bit decode error:"+t)}},_o.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var a=this.bottom_up?t:this.height-1-t,r=0;r<e;r++)for(var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+8*r*4,s=0;s<8&&8*r+s<this.width;s++){var l=this.palette[i>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}0!==n&&(this.pos+=4-n)}},_o.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,r=0;r<t;r++){var i=this.datav.getUint8(this.pos++,!0),o=a*this.width*4+2*r*4,s=i>>4,l=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*r+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},_o.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var r=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+4*a;if(r<this.palette.length){var o=this.palette[r];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==t&&(this.pos+=4-t)}},_o.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&e)/e*255|0,s=(i>>5&e)/e*255|0,l=(i>>10&e)/e*255|0,c=i>>15?255:0,u=a*this.width*4+4*r;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=t}},_o.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var r=this.bottom_up?a:this.height-1-a,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,l=(o>>5&n)/n*255|0,c=(o>>11)/e*255|0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=t}},_o.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=i,this.data[o+1]=r,this.data[o+2]=a,this.data[o+3]=255}this.pos+=this.width%4}},_o.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=i,this.data[s+1]=r,this.data[s+2]=a,this.data[s+3]=o}},_o.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,a,r){var i=new _o(e,!1),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new bo(100).encode(l,100);return t.processJPEG.call(this,c,n,a,r)}}(Gr.API),yo.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,a,r){var i=new yo(e),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new bo(100).encode(l,100);return t.processJPEG.call(this,c,n,a,r)}}(Gr.API),Gr.API.processRGBA=function(t,e,n){for(var a=t.data,r=a.length,i=new Uint8Array(r/4*3),o=new Uint8Array(r/4),s=0,l=0,c=0;c<r;c+=4){var u=a[c],d=a[c+1],h=a[c+2],f=a[c+3];i[s++]=u,i[s++]=d,i[s++]=h,o[l++]=f}var p=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Gr.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Zi=Gr.API,Qi=Zi.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:i.metadata.Unicode.widths,c=l.fof?l.fof:1,u=e.kerning?e.kerning:i.metadata.Unicode.kerning,d=u.fof?u.fof:1,h=!1!==e.doKerning,f=0,p=t.length,m=0,g=l[0]||c,v=[];for(n=0;n<p;n++)r=t.charCodeAt(n),"function"==typeof i.metadata.widthOfString?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(f=h&&"object"===(0,a.A)(u[r])&&!isNaN(parseInt(u[r][m],10))?u[r][m]/d:0,v.push((l[r]||g)/c+f)),m=r;return v},to=Zi.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),a=e.font||this.internal.getFont(),r=e.charSpace||this.internal.getCharSpace();return Zi.processArabic&&(t=Zi.processArabic(t)),"function"==typeof a.metadata.widthOfString?a.metadata.widthOfString(t,n,r)/n:Qi.apply(this,arguments).reduce((function(t,e){return t+e}),0)},eo=function(t,e,n,a){for(var r=[],i=0,o=t.length,s=0;i!==o&&s+e[i]<n;)s+=e[i],i++;r.push(t.slice(0,i));var l=i;for(s=0;i!==o;)s+e[i]>a&&(r.push(t.slice(l,i)),s=0,l=i),s+=e[i],i++;return l!==i&&r.push(t.slice(l,i)),r},no=function(t,e,n){n||(n={});var a,r,i,o,s,l,c,u=[],d=[u],h=n.textIndent||0,f=0,p=0,m=t.split(" "),g=Qi.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?m[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),b=[];m.map((function(t){(t=t.split(/\s*\n/)).length>1?b=b.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):b.push(t[0])})),m=b,l=to.apply(this,[v,n])}for(i=0,o=m.length;i<o;i++){var _=0;if(a=m[i],l&&"\n"==a[0]&&(a=a.substr(1),_=1),h+f+(p=(r=Qi.apply(this,[a,n])).reduce((function(t,e){return t+e}),0))>e||_){if(p>e){for(s=eo.apply(this,[a,r,e-(h+f),e]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);p=r.slice(a.length-(u[0]?u[0].length:0)).reduce((function(t,e){return t+e}),0)}else u=[a];d.push(u),h=p+l,f=g}else u.push(a),h+=f+p,f=g}return c=l?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},d.map(c)},Zi.splitTextToSize=function(t,e,n){var a,r=(n=n||{}).fontSize||this.internal.getFontSize(),i=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),n="Unicode";return e.metadata[n]?{widths:e.metadata[n].widths||{0:1},kerning:e.metadata[n].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);a=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/r;i.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/r:0,i.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=a.length;s<l;s++)c=c.concat(no.apply(this,[a[s],o,i]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",n="klmnopqrstuvwxyz",r={},i={},o=0;o<16;o++)r[n[o]]=e[o],i[e[o]]=n[o];var s=function(t){return"0x"+parseInt(t,10).toString(16)},l=t.__fontmetrics__.compress=function(t){var e,n,r,o,c=["{"];for(var u in t){if(e=t[u],isNaN(parseInt(u,10))?n="'"+u+"'":(u=parseInt(u,10),n=(n=s(u).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof e)e<0?(r=s(e).slice(3),o="-"):(r=s(e).slice(2),o=""),r=o+r.slice(0,-1)+i[r.slice(-1)];else{if("object"!==(0,a.A)(e))throw new Error("Don't know what to do with value type "+(0,a.A)(e)+".");r=l(e)}c.push(n+r)}return c.push("}"),c.join("")},c=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,n,a,i,o={},s=1,l=o,c=[],u="",d="",h=t.length-1,f=1;f<h;f+=1)"'"==(i=t[f])?e?(a=e.join(""),e=void 0):e=[]:e?e.push(i):"{"==i?(c.push([l,a]),l={},a=void 0):"}"==i?((n=c.pop())[0][n[1]]=l,a=void 0,l=n[0]):"-"==i?s=-1:void 0===a?r.hasOwnProperty(i)?(u+=r[i],a=parseInt(u,16)*s,s=1,u=""):u+=i:r.hasOwnProperty(i)?(d+=r[i],l[a]=parseInt(d,16)*s,s=1,a=void 0,d=""):d+=i;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},h={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=h.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var a=d.Unicode[e.postScriptName];a&&(e.metadata.Unicode.encoding=a,e.encoding=a.codePages[0])}])}(Gr.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),a=0;a<e;a++)n[a]=t.charCodeAt(a);return n};t.API.events.push(["addFont",function(n){var a=void 0,r=n.font,i=n.instance;if(!r.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");if("string"!=typeof(a=!1===i.existsFileInVFS(r.postScriptName)?i.loadFile(r.postScriptName):i.getFileFromVFS(r.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+r.postScriptName+"').");!function(n,a){a=/^\x00\x01\x00\x00/.test(a)?e(a):e(kr(a)),n.metadata=t.API.TTFFont.open(a),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(r,a)}}])}(Gr),Gr.API.addSvgAsImage=function(t,e,a,r,i,o,s,l){if(isNaN(e)||isNaN(a))throw vr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw vr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(mr.canvg?Promise.resolve(mr.canvg):n.e(332).then(n.bind(n,7332))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t})).then((function(e){return e.fromString(u,t,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(d)})).then((function(){h.addImage(c.toDataURL("image/jpeg",1),e,a,r,i,s,l)}))},Gr.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var r=0;r<this.internal.pages[a].length;r++)this.internal.pages[a][r]=this.internal.pages[a][r].replace(e,n);return this},Gr.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(s),c=[],u=0,d=0,h=0;function f(t,e){var n,a=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(a=!0);return a}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=l.length;for(h=0;h<p;h+=1)n[l[h]].value=n[l[h]].defaultValue,n[l[h]].explicitSet=!1}if("object"===(0,a.A)(t))for(i in t)if(o=t[i],f(l,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&f(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(u=0;u<o.length;u+=1)if(r=!0,1===o[u].length&&"number"==typeof o[u][0])c.push(String(o[u]-1));else if(o[u].length>1){for(d=0;d<o[u].length;d+=1)"number"!=typeof o[u][d]&&(r=!1);!0===r&&c.push([o[u][0]-1,o[u][1]-1].join(" "))}n[i].value="["+c.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},Gr.API.addMetadata=function(t,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceUri:null!=e?e:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof e&&e},this.internal.events.subscribe("putCatalog",xo),this.internal.events.subscribe("postPutResources",wo)),this},function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,a=e.metadata.Unicode.widths,r=["","0","00","000","0000"],i=[""],o=0,s=t.length;o<s;++o){if(n=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(o),-1==a.indexOf(n)&&(a.push(n),a.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return i.join("");n=n.toString(16),i.push(r[4-n.length],n)}return i.join("")},a=function(t){var e,n,a,r,i,o,s;for(i="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",a=[],o=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=n[o],a.length>=100&&(i+="\n"+a.length+" beginbfchar\n"+a.join("\n")+"\nendbfchar",a=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(r=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),a.push("<"+e+"><"+r+">"));return a.length&&(i+="\n"+a.length+" beginbfchar\n"+a.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,r=e.out,i=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",u=0;u<l.length;u++)c+=String.fromCharCode(l[u]);var d=i();o({data:c,addLength1:!0,objectId:d}),r("endobj");var h=i();o({data:a(n.metadata.toUnicode),addLength1:!0,objectId:h}),r("endobj");var f=i();r("<<"),r("/Type /FontDescriptor"),r("/FontName /"+Hr(n.fontName)),r("/FontFile2 "+d+" 0 R"),r("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),r("/Flags "+n.metadata.flags),r("/StemV "+n.metadata.stemV),r("/ItalicAngle "+n.metadata.italicAngle),r("/Ascent "+n.metadata.ascender),r("/Descent "+n.metadata.decender),r("/CapHeight "+n.metadata.capHeight),r(">>"),r("endobj");var p=i();r("<<"),r("/Type /Font"),r("/BaseFont /"+Hr(n.fontName)),r("/FontDescriptor "+f+" 0 R"),r("/W "+t.API.PDFObject.convert(s)),r("/CIDToGIDMap /Identity"),r("/DW 1000"),r("/Subtype /CIDFontType2"),r("/CIDSystemInfo"),r("<<"),r("/Supplement 0"),r("/Registry (Adobe)"),r("/Ordering ("+n.encoding+")"),r(">>"),r(">>"),r("endobj"),n.objectNumber=i(),r("<<"),r("/Type /Font"),r("/Subtype /Type0"),r("/ToUnicode "+h+" 0 R"),r("/BaseFont /"+Hr(n.fontName)),r("/Encoding /"+n.encoding),r("/DescendantFonts ["+p+" 0 R]"),r(">>"),r("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,r=e.out,i=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",c=0;c<s.length;c++)l+=String.fromCharCode(s[c]);var u=i();o({data:l,addLength1:!0,objectId:u}),r("endobj");var d=i();o({data:a(n.metadata.toUnicode),addLength1:!0,objectId:d}),r("endobj");var h=i();r("<<"),r("/Descent "+n.metadata.decender),r("/CapHeight "+n.metadata.capHeight),r("/StemV "+n.metadata.stemV),r("/Type /FontDescriptor"),r("/FontFile2 "+u+" 0 R"),r("/Flags 96"),r("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),r("/FontName /"+Hr(n.fontName)),r("/ItalicAngle "+n.metadata.italicAngle),r("/Ascent "+n.metadata.ascender),r(">>"),r("endobj"),n.objectNumber=i();for(var f=0;f<n.metadata.hmtx.widths.length;f++)n.metadata.hmtx.widths[f]=parseInt(n.metadata.hmtx.widths[f]*(1e3/n.metadata.head.unitsPerEm));r("<</Subtype/TrueType/Type/Font/ToUnicode "+d+" 0 R/BaseFont/"+Hr(n.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),r("endobj"),n.isAlreadyPutted=!0}}(e)}]);var r=function(t){var e,a=t.text||"",r=t.x,i=t.y,o=t.options||{},s=t.mutex||{},l=s.pdfEscape,c=s.activeFontKey,u=s.fonts,d=c,h="",f=0,p="",m=u[d].encoding;if("Identity-H"!==u[d].encoding)return{text:a,x:r,y:i,options:o,mutex:s};for(p=a,d=c,Array.isArray(a)&&(p=a[0]),f=0;f<p.length;f+=1)u[d].metadata.hasOwnProperty("cmap")&&(e=u[d].metadata.cmap.unicode.codeMap[p[f].charCodeAt(0)]),e||p[f].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty("Unicode")?h+=p[f]:h+="";var g="";return parseInt(d.slice(1))<14||"WinAnsiEncoding"===m?g=l(h,d).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===m&&(g=n(h,u[d])),s.isHex=!0,{text:g,x:r,y:i,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],a={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var i=0;for(i=0;i<e.length;i+=1)Array.isArray(e[i])&&3===e[i].length?n.push([r(Object.assign({},a,{text:e[i][0]})).text,e[i][1],e[i][2]]):n.push(r(Object.assign({},a,{text:e[i]})).text);t.text=n}else t.text=r(Object.assign({},a,{text:e})).text}])}(Gr),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(Gr.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,a,r,i,o,s,l,c=e,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],m=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),n=e>>8,a=f[n];return void 0!==a?c[256*a+(255&e)]:252===n||253===n?"AL":m.test(n)?"L":8===n?"R":"N"},_=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=b(t.charAt(n))))return!1;if("R"===e)return!0}return!1},y=function(t,e,o,s){var l,c,u,d,h=e[s];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(h="AN");break;case"AL":g=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(c=e[s+1])&&"AN"!==c?h="N":g&&(c="AN"),h=c===l?c:"N";break;case"ES":h="EN"===(l=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){h="EN";break}if(g){h="N";break}for(u=s+1,d=e.length;u<d&&"ET"===e[u];)u++;h=u<d&&"EN"===e[u]?"EN":"N";break;case"NSM":if(r&&!i){for(d=e.length,u=s+1;u<d&&"NSM"===e[u];)u++;if(u<d){var f=t[s],p=f>=1425&&f<=2303||64286===f;if(l=e[u],p&&("R"===l||"AL"===l)){h="R";break}}}h=s<1||"B"===(l=e[s-1])?"N":o[s-1];break;case"B":g=!1,n=!0,h=v;break;case"S":a=!0,h="N"}return h},w=function(t,e,n){var a=t.split("");return n&&x(a,n,{hiLevel:v}),a.reverse(),e&&e.reverse(),a.join("")},x=function(t,e,r){var i,o,s,l,c,f=-1,p=t.length,m=0,_=[],w=v?d:u,x=[];for(g=!1,n=!1,a=!1,o=0;o<p;o++)x[o]=b(t[o]);for(s=0;s<p;s++){if(c=m,_[s]=y(t,x,_,s),i=240&(m=w[c][h[_[s]]]),m&=15,e[s]=l=w[m][5],i>0)if(16===i){for(o=f;o<s;o++)e[o]=1;f=-1}else f=-1;if(w[m][6])-1===f&&(f=s);else if(f>-1){for(o=f;o<s;o++)e[o]=l;f=-1}"B"===x[s]&&(e[s]=0),r.hiLevel|=l}a&&function(t,e,n){for(var a=0;a<n;a++)if("S"===t[a]){e[a]=v;for(var r=a-1;r>=0&&"WS"===t[r];r--)e[r]=v}}(x,e,p)},k=function(t,e,a,r,i){if(!(i.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(a&&a.reverse());for(var o,s,l,c,u=e.length,d=0;d<u;){if(r[d]>=t){for(l=d+1;l<u&&r[l]>=t;)l++;for(c=d,s=l-1;c<s;c++,s--)o=e[c],e[c]=e[s],e[s]=o,a&&(o=a[c],a[c]=a[s],a[s]=o);d=l}d++}}},S=function(t,e,n){var a=t.split(""),r={hiLevel:v};return n||(n=[]),x(a,n,r),function(t,e,n){if(0!==n.hiLevel&&l)for(var a,r=0;r<t.length;r++)1===e[r]&&(a=p.indexOf(t[r]))>=0&&(t[r]=p[a+1])}(a,n,r),k(2,a,e,n,r),k(1,a,e,n,r),a.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===i&&(i=_(t)),void 0===s&&(s=_(t))}(t,e),r||!o||s)if(r&&o&&i^s)v=i?1:0,t=w(t,e,n);else if(!r&&o&&s)v=i?1:0,t=S(t,e,n),t=w(t,e);else if(!r||i||o||s){if(r&&!o&&i^s)t=w(t,e),i?(v=0,t=S(t,e,n)):(v=1,t=S(t,e,n),t=w(t,e));else if(r&&i&&!o&&s)v=1,t=S(t,e,n),t=w(t,e);else if(!r&&!o&&i^s){var a=l;i?(v=1,t=S(t,e,n),v=0,l=!1,t=S(t,e,n),l=a):(v=0,t=S(t,e,n),t=w(t,e),v=1,l=!1,t=S(t,e,n),l=a,t=w(t,e))}}else v=0,t=S(t,e,n);else v=i?1:0,t=S(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(r=t.isInputVisual,o=t.isOutputVisual,i=t.isInputRtl,s=t.isOutputRtl,l=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text;t.x,t.y;var a=t.options||{};t.mutex,a.lang;var r=[];if(a.isInputVisual="boolean"!=typeof a.isInputVisual||a.isInputVisual,n.setOptions(a),"[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([n.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):r.push([n.doBidiReorder(e[i])]);t.text=r}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(Gr),Gr.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new So(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Vo(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Co(this.contents),this.head=new To(this),this.name=new Io(this),this.cmap=new No(this),this.toUnicode={},this.hhea=new Lo(this),this.maxp=new Do(this),this.hmtx=new Fo(this),this.post=new Mo(this),this.os2=new Oo(this),this.loca=new Ho(this),this.glyf=new Bo(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,a,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,a,r;for(r=[],e=0,n=(a=this.bbox).length;e<n;e++)t=a[e],r.push(Math.round(t*this.scaleFactor));return r}.call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var a,r,i,o;for(i=0,r=0,o=(t=""+t).length;0<=o?r<o:r>o;r=0<=o?++r:--r)a=t.charCodeAt(r),i+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/e)||0;return i*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var ko,So=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,a;for(a=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)a.push(this.writeByte(t.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,a,r,i,o,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),a=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^r)+65536*(255^i)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*a+16777216*r+65536*i+256*o+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,a,r;for(r=[],n=0,a=t.length;n<a;n++)e=t[n],r.push(this.writeByte(e));return r},t}(),Co=function(){var t;function e(t){var e,n,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,a=this.tableCount;0<=a?n<a:n>a;n=0<=a?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,a,r,i,o,s,l,c,u,d,h,f,p;for(p in h=Object.keys(e).length,s=Math.log(2),u=16*Math.floor(Math.log(h)/s),i=Math.floor(u/s),c=16*h-u,(a=new So).writeInt(this.scalarType),a.writeShort(h),a.writeShort(u),a.writeShort(i),a.writeShort(c),r=16*h,l=a.pos+r,o=null,f=[],e)for(d=e[p],a.writeString(p),a.writeInt(t(d)),a.writeInt(l),a.writeInt(d.length),f=f.concat(d),"head"===p&&(o=l),l+=d.length;l%4;)f.push(0),l++;return a.write(f),n=2981146554-t(a.data),a.pos=o+8,a.writeUInt32(n),a.data},t=function(t){var e,n,a,r;for(t=jo.call(t);t.length%4;)t.push(0);for(a=new So(t),n=0,e=0,r=t.length;e<r;e=e+=4)n+=a.readUInt32();return 4294967295&n},e}(),Ao={}.hasOwnProperty,Eo=function(t,e){for(var n in e)Ao.call(e,n)&&(t[n]=e[n]);function a(){this.constructor=t}return a.prototype=e.prototype,t.prototype=new a,t.__super__=e.prototype,t};ko=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var To=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="head",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},t.prototype.encode=function(t){var e;return(e=new So).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},t}(),Po=function(){function t(t,e){var n,a,r,i,o,s,l,c,u,d,h,f,p,m,g,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(h=t.readUInt16(),d=h/2,t.pos+=6,r=function(){var e,n;for(n=[],s=e=0;0<=d?e<d:e>d;s=0<=d?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=d?e<d:e>d;s=0<=d?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=d?e<d:e>d;s=0<=d?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=d?e<d:e>d;s=0<=d?++e:--e)n.push(t.readUInt16());return n}(),a=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],s=e=0;0<=a?e<a:e>a;s=0<=a?++e:--e)n.push(t.readUInt16());return n}(),s=g=0,b=r.length;g<b;s=++g)for(m=r[s],n=v=f=p[s];f<=m?v<=m:v>=m;n=f<=m?++v:--v)0===c[s]?i=n+l[s]:0!==(i=o[c[s]/2+(n-f)-(d-s)]||0)&&(i+=l[s]),this.codeMap[n]=65535&i}t.pos=u}return t.encode=function(t,e){var n,a,r,i,o,s,l,c,u,d,h,f,p,m,g,v,b,_,y,w,x,k,S,C,A,E,T,P,N,L,O,M,R,I,D,F,j,B,z,U,H,V,W,q,$,K;switch(P=new So,i=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,m=function(){var t=[];for(f=0;f<256;++f)t.push(0);return t}(),v={0:0},r={},N=0,R=i.length;N<R;N++)null==v[W=t[a=i[N]]]&&(v[W]=++p),r[a]={old:t[a],new:v[t[a]]},m[a]=v[t[a]];return P.writeUInt16(1),P.writeUInt16(0),P.writeUInt32(12),P.writeUInt16(0),P.writeUInt16(262),P.writeUInt16(0),P.write(m),{charMap:r,subtable:P.data,maxGlyphID:p+1};case"unicode":for(E=[],u=[],b=0,v={},n={},g=l=null,L=0,I=i.length;L<I;L++)null==v[y=t[a=i[L]]]&&(v[y]=++b),n[a]={old:y,new:v[y]},o=v[y]-a,null!=g&&o===l||(g&&u.push(g),E.push(a),l=o),g=a;for(g&&u.push(g),u.push(65535),E.push(65535),C=2*(S=E.length),k=2*Math.pow(Math.log(S)/Math.LN2,2),d=Math.log(k/2)/Math.LN2,x=2*S-k,s=[],w=[],h=[],f=O=0,D=E.length;O<D;f=++O){if(A=E[f],c=u[f],65535===A){s.push(0),w.push(0);break}if(A-(T=n[A].new)>=32768)for(s.push(0),w.push(2*(h.length+S-f)),a=M=A;A<=c?M<=c:M>=c;a=A<=c?++M:--M)h.push(n[a].new);else s.push(T-A),w.push(0)}for(P.writeUInt16(3),P.writeUInt16(1),P.writeUInt32(12),P.writeUInt16(4),P.writeUInt16(16+8*S+2*h.length),P.writeUInt16(0),P.writeUInt16(C),P.writeUInt16(k),P.writeUInt16(d),P.writeUInt16(x),H=0,F=u.length;H<F;H++)a=u[H],P.writeUInt16(a);for(P.writeUInt16(0),V=0,j=E.length;V<j;V++)a=E[V],P.writeUInt16(a);for(q=0,B=s.length;q<B;q++)o=s[q],P.writeUInt16(o);for($=0,z=w.length;$<z;$++)_=w[$],P.writeUInt16(_);for(K=0,U=h.length;K<U;K++)p=h[K],P.writeUInt16(p);return{charMap:n,subtable:P.data,maxGlyphID:b+1}}},t}(),No=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="cmap",t.prototype.parse=function(t){var e,n,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)e=new Po(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},t.encode=function(t,e){var n,a;return null==e&&(e="macroman"),n=Po.encode(t,e),(a=new So).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},t}(),Lo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="hhea",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},t}(),Oo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="OS/2",t.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},t}(),Mo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="post",t.prototype.parse=function(t){var e,n,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var r;for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)e=t.readByte(),a.push(this.names.push(t.readString(e)));return a;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,a;for(a=[],r=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;r=0<=n?++e:--e)a.push(t.readUInt32());return a}.call(this)}},t}(),Ro=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Io=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="name",t.prototype.parse=function(t){var e,n,a,r,i,o,s,l,c,u,d;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},r=c=0,u=n.length;c<u;r=++c)a=n[r],t.pos=a.offset,l=t.readString(a.length),i=new Ro(l,a),null==s[d=a.nameID]&&(s[d]=[]),s[a.nameID].push(i);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},t}(),Do=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="maxp",t.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},t}(),Fo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="hmtx",t.prototype.parse=function(t){var e,n,a,r,i,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,r;for(r=[],e=n=0;0<=a?n<a:n>a;e=0<=a?++n:--n)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,a;for(a=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],a.push(r.advance);return a}.call(this),n=this.widths[this.widths.length-1],s=[],e=i=0;0<=a?i<a:i>a;e=0<=a?++i:--i)s.push(this.widths.push(n));return s},t.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},t}(),jo=[].slice,Bo=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(t){var e,n,a,r,i,o,s,l,c,u;return t in this.cache?this.cache[t]:(r=this.file.loca,e=this.file.contents,n=r.indexOf(t),0===(a=r.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,i=(o=new So(e.read(a))).readShort(),l=o.readShort(),u=o.readShort(),s=o.readShort(),c=o.readShort(),this.cache[t]=-1===i?new Uo(o,l,u,s,c):new zo(o,i,l,u,s,c),this.cache[t]))},t.prototype.encode=function(t,e,n){var a,r,i,o,s;for(i=[],r=[],o=0,s=e.length;o<s;o++)a=t[e[o]],r.push(i.length),a&&(i=i.concat(a.encode(n)));return r.push(i.length),{table:i,offsets:r}},t}(),zo=function(){function t(t,e,n,a,r,i){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=a,this.xMax=r,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Uo=function(){function t(t,e,n,a,r){var i,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=a,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new So(jo.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Ho=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Eo(t,ko),t.prototype.tag="loca",t.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,a;for(a=[],n=0,e=this.length;n<e;n+=2)a.push(2*t.readUInt16());return a}.call(this):function(){var e,a;for(a=[],n=0,e=this.length;n<e;n+=4)a.push(t.readUInt32());return a}.call(this)},t.prototype.indexOf=function(t){return this.offsets[t]},t.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},t.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),a=0,r=0,i=0;i<n.length;++i)if(n[i]=a,r<e.length&&e[r]==i){++r,n[i]=a;var o=this.offsets[i],s=this.offsets[i+1]-o;s>0&&(a+=s)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},t}(),Vo=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,a,r;for(e in a=this.font.cmap.tables[0].codeMap,t={},r=this.subset)n=r[e],t[e]=a[n];return t},t.prototype.glyphsFor=function(t){var e,n,a,r,i,o,s;for(a={},i=0,o=t.length;i<o;i++)a[r=t[i]]=this.font.glyf.glyphFor(r);for(r in e=[],a)(null!=(n=a[r])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(r in s=this.glyphsFor(e))n=s[r],a[r]=n;return a},t.prototype.encode=function(t,e){var n,a,r,i,o,s,l,c,u,d,h,f,p,m,g;for(a in n=No.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(t),h={0:0},g=n.charMap)h[(s=g[a]).old]=s.new;for(f in d=n.maxGlyphID,i)f in h||(h[f]=d++);return c=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(h),u=Object.keys(c).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=u.length;t<e;t++)o=u[t],n.push(c[o]);return n}(),r=this.font.glyf.encode(i,p,h),l=this.font.loca.encode(r.offsets,p),m={cmap:this.font.cmap.raw(),glyf:r.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},t}();function Wo(t,e,n,a,r){a=a||{};var i=r.internal.scaleFactor,o=r.internal.getFontSize()/i,s=o*(r.getLineHeightFactor?r.getLineHeightFactor():1.15),l="",c=1;if("middle"!==a.valign&&"bottom"!==a.valign&&"center"!==a.halign&&"right"!==a.halign||(c=(l="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=o*(2-1.15),"middle"===a.valign?n-=c/2*s:"bottom"===a.valign&&(n-=c*s),"center"===a.halign||"right"===a.halign){var u=o;if("center"===a.halign&&(u*=.5),l&&c>=1){for(var d=0;d<l.length;d++)r.text(l[d],e-r.getStringUnitWidth(l[d])*u,n),n+=s;return r}e-=r.getStringUnitWidth(t)*u}return"justify"===a.halign?r.text(t,e,n,{maxWidth:a.maxWidth||100,align:"justify"}):r.text(t,e,n),r}Gr.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var a,r,i,o;if(Array.isArray(n))return"["+function(){var t,r,i;for(i=[],t=0,r=n.length;t<r;t++)a=n[t],i.push(e.convert(a));return i}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(r in i=["<<"],n)o=n[r],i.push("/"+r+" "+e.convert(o));return i.push(">>"),i.join("\n")}return""+n},e}();var qo={},$o=function(){function t(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return t.setDefaults=function(t,e){void 0===e&&(e=null),e?e.__autoTableDocumentDefaults=t:qo=t},t.unifyColor=function(t){return Array.isArray(t)?t:"number"==typeof t?[t,t,t]:"string"==typeof t?[t]:null},t.prototype.applyStyles=function(e,n){var a,r,i;void 0===n&&(n=!1),e.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(e.fontStyle);var o=this.jsPDFDocument.internal.getFont(),s=o.fontStyle,l=o.fontName;if(e.font&&(l=e.font),e.fontStyle){s=e.fontStyle;var c=this.getFontList()[l];c&&-1===c.indexOf(s)&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(c[0]),s=c[0])}if(this.jsPDFDocument.setFont(l,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var u=t.unifyColor(e.fillColor);u&&(a=this.jsPDFDocument).setFillColor.apply(a,u),(u=t.unifyColor(e.textColor))&&(r=this.jsPDFDocument).setTextColor.apply(r,u),(u=t.unifyColor(e.lineColor))&&(i=this.jsPDFDocument).setDrawColor.apply(i,u),"number"==typeof e.lineWidth&&this.jsPDFDocument.setLineWidth(e.lineWidth)}},t.prototype.splitTextToSize=function(t,e,n){return this.jsPDFDocument.splitTextToSize(t,e,n)},t.prototype.rect=function(t,e,n,a,r){return this.jsPDFDocument.rect(t,e,n,a,r)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return qo||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return null==t.width&&(t={width:t.getWidth(),height:t.getHeight()}),t},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},t.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},t.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t}(),Ko=function(t,e){return Ko=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Ko(t,e)};function Go(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Ko(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}"function"==typeof SuppressedError&&SuppressedError;var Yo=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return Go(e,t),e}(Array);function Xo(t,e,n){n.applyStyles(e,!0);var a=(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0);return a}function Jo(t,e,n,a){var r=e.settings.tableLineWidth,i=e.settings.tableLineColor;t.applyStyles({lineWidth:r,lineColor:i});var o=Zo(r,!1);o&&t.rect(n.x,n.y,e.getWidth(t.pageSize().width),a.y-n.y,o)}function Zo(t,e){var n=t>0,a=e||0===e;return n&&a?"DF":n?"S":a?"F":null}function Qo(t,e){var n,a,r,i;if(t=t||e,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(3===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t=1===t.length?t[0]:e}return"object"==typeof t?("number"==typeof t.vertical&&(t.top=t.vertical,t.bottom=t.vertical),"number"==typeof t.horizontal&&(t.right=t.horizontal,t.left=t.horizontal),{left:null!==(n=t.left)&&void 0!==n?n:e,top:null!==(a=t.top)&&void 0!==a?a:e,right:null!==(r=t.right)&&void 0!==r?r:e,bottom:null!==(i=t.bottom)&&void 0!==i?i:e}):("number"!=typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}function ts(t,e){var n=Qo(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)}function es(t,e,n,a,r){var i={},o=96/72,s=ns(e,(function(t){return r.getComputedStyle(t).backgroundColor}));null!=s&&(i.fillColor=s);var l=ns(e,(function(t){return r.getComputedStyle(t).color}));null!=l&&(i.textColor=l);var c=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],a=96/(72/e),r=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,i=n.map((function(t){return parseInt(t||"0")/a})),o=Qo(i,0);r>o.top&&(o.top=r);r>o.bottom&&(o.bottom=r);return o}(a,n);c&&(i.cellPadding=c);var u="borderTopColor",d=o*n,h=a.borderTopWidth;if(a.borderBottomWidth===h&&a.borderRightWidth===h&&a.borderLeftWidth===h){var f=(parseFloat(h)||0)/d;f&&(i.lineWidth=f)}else i.lineWidth={top:(parseFloat(a.borderTopWidth)||0)/d,right:(parseFloat(a.borderRightWidth)||0)/d,bottom:(parseFloat(a.borderBottomWidth)||0)/d,left:(parseFloat(a.borderLeftWidth)||0)/d},i.lineWidth.top||(i.lineWidth.right?u="borderRightColor":i.lineWidth.bottom?u="borderBottomColor":i.lineWidth.left&&(u="borderLeftColor"));var p=ns(e,(function(t){return r.getComputedStyle(t)[u]}));null!=p&&(i.lineColor=p);var m=["left","right","center","justify"];-1!==m.indexOf(a.textAlign)&&(i.halign=a.textAlign),-1!==(m=["middle","bottom","top"]).indexOf(a.verticalAlign)&&(i.valign=a.verticalAlign);var g=parseInt(a.fontSize||"");isNaN(g)||(i.fontSize=g/o);var v=function(t){var e="";("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold");"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic");return e}(a);v&&(i.fontStyle=v);var b=(a.fontFamily||"").toLowerCase();return-1!==t.indexOf(b)&&(i.font=b),i}function ns(t,e){var n=as(t,e);if(!n)return null;var a=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!a||!Array.isArray(a))return null;var r=[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])];return 0===parseInt(a[4])||isNaN(r[0])||isNaN(r[1])||isNaN(r[2])?null:r}function as(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:as(t.parentElement,e):n}function rs(t,e,n,a,r){var i,o,s;void 0===a&&(a=!1),void 0===r&&(r=!1),s="string"==typeof e?n.document.querySelector(e):e;var l=Object.keys(t.getFontList()),c=t.scaleFactor(),u=[],d=[],h=[];if(!s)return console.error("Html table could not be found with input: ",e),{head:u,body:d,foot:h};for(var f=0;f<s.rows.length;f++){var p=s.rows[f],m=null===(o=null===(i=null==p?void 0:p.parentElement)||void 0===i?void 0:i.tagName)||void 0===o?void 0:o.toLowerCase(),g=is(l,c,n,p,a,r);g&&("thead"===m?u.push(g):"tfoot"===m?h.push(g):d.push(g))}return{head:u,body:d,foot:h}}function is(t,e,n,a,r,i){for(var o=new Yo(a),s=0;s<a.cells.length;s++){var l=a.cells[s],c=n.getComputedStyle(l);if(r||"none"!==c.display){var u=void 0;i&&(u=es(t,l,e,c,n)),o.push({rowSpan:l.rowSpan,colSpan:l.colSpan,styles:u,_element:l,content:os(l)})}}var d=n.getComputedStyle(a);if(o.length>0&&(r||"none"!==d.display))return o}function os(t){var e=t.cloneNode(!0);return e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/ +/g," "),e.innerHTML=e.innerHTML.split(/<br.*?>/).map((function(t){return t.trim()})).join("\n"),e.innerText||e.textContent||""}function ss(t,e,n,a,r){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),o=1;o<arguments.length;o++){var s=arguments[o];if(null!=s)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])}return i}function ls(t,e){var n=new $o(t),a=n.getDocumentOptions(),r=n.getGlobalOptions();!function(t,e,n){for(var a=0,r=[t,e,n];a<r.length;a++){var i=r[a];i&&"object"!=typeof i&&console.error("The options parameter should be of type object, is: "+typeof i),i.startY&&"number"!=typeof i.startY&&(console.error("Invalid value for startY option",i.startY),delete i.startY)}}(r,a,e);var i,o=ss({},r,a,e);"undefined"!=typeof window&&(i=window);var s=function(t,e,n){for(var a={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},r=function(r){if("columnStyles"===r){var i=t[r],o=e[r],s=n[r];a.columnStyles=ss({},i,o,s)}else{var l=[t,e,n].map((function(t){return t[r]||{}}));a[r]=ss({},l[0],l[1],l[2])}},i=0,o=Object.keys(a);i<o.length;i++){r(o[i])}return a}(r,a,e),l=function(t,e,n){for(var a={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},r=0,i=[t,e,n];r<i.length;r++){var o=i[r];o.didParseCell&&a.didParseCell.push(o.didParseCell),o.willDrawCell&&a.willDrawCell.push(o.willDrawCell),o.didDrawCell&&a.didDrawCell.push(o.didDrawCell),o.willDrawPage&&a.willDrawPage.push(o.willDrawPage),o.didDrawPage&&a.didDrawPage.push(o.didDrawPage)}return a}(r,a,e),c=function(t,e){var n,a,r,i,o,s,l,c,u,d,h,f,p,m,g=Qo(e.margin,40/t.scaleFactor()),v=null!==(n=function(t,e){var n=t.getLastAutoTable(),a=t.scaleFactor(),r=t.pageNumber(),i=!1;if(n&&n.startPageNumber){i=n.startPageNumber+n.pageNumber-1===r}if("number"==typeof e)return e;if((null==e||!1===e)&&i&&null!=(null==n?void 0:n.finalY))return n.finalY+20/a;return null}(t,e.startY))&&void 0!==n?n:g.top;p=!0===e.showFoot?"everyPage":!1===e.showFoot?"never":null!==(a=e.showFoot)&&void 0!==a?a:"everyPage";m=!0===e.showHead?"everyPage":!1===e.showHead?"never":null!==(r=e.showHead)&&void 0!==r?r:"everyPage";var b=null!==(i=e.useCss)&&void 0!==i&&i,_=e.theme||(b?"plain":"striped"),y=!!e.horizontalPageBreak,w=null!==(o=e.horizontalPageBreakRepeat)&&void 0!==o?o:null;return{includeHiddenHtml:null!==(s=e.includeHiddenHtml)&&void 0!==s&&s,useCss:b,theme:_,startY:v,margin:g,pageBreak:null!==(l=e.pageBreak)&&void 0!==l?l:"auto",rowPageBreak:null!==(c=e.rowPageBreak)&&void 0!==c?c:"auto",tableWidth:null!==(u=e.tableWidth)&&void 0!==u?u:"auto",showHead:m,showFoot:p,tableLineWidth:null!==(d=e.tableLineWidth)&&void 0!==d?d:0,tableLineColor:null!==(h=e.tableLineColor)&&void 0!==h?h:200,horizontalPageBreak:y,horizontalPageBreakRepeat:w,horizontalPageBreakBehaviour:null!==(f=e.horizontalPageBreakBehaviour)&&void 0!==f?f:"afterAllRows"}}(n,o),u=function(t,e,n){var a=e.head||[],r=e.body||[],i=e.foot||[];if(e.html){var o=e.includeHiddenHtml;if(n){var s=rs(t,e.html,n,o,e.useCss)||{};a=s.head||a,r=s.body||a,i=s.foot||a}else console.error("Cannot parse html in non browser environment")}var l=e.columns||function(t,e,n){var a=t[0]||e[0]||n[0]||[],r=[];return Object.keys(a).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!=typeof(e=Array.isArray(a)?a[parseInt(t)]:a[t])||Array.isArray(e)||(n=(null==e?void 0:e.colSpan)||1);for(var i=0;i<n;i++){var o={dataKey:Array.isArray(a)?r.length:t+(i>0?"_".concat(i):"")};r.push(o)}})),r}(a,r,i);return{columns:l,head:a,body:r,foot:i}}(n,o,i);return{id:e.tableId,content:u,hooks:l,styles:s,settings:c}}var cs,us=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()},ds=function(t){function e(e,n,a,r,i,o){var s=t.call(this,e,n,o)||this;return s.cell=a,s.row=r,s.column=i,s.section=r.section,s}return Go(e,t),e}(us),hs=function(){function t(t,e){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(t){return this.head.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.getFootHeight=function(t){return this.foot.reduce((function(e,n){return e+n.getMaxCellHeight(t)}),0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(t,e,n,a,r,i){for(var o=0,s=e;o<s.length;o++){var l=!1===(0,s[o])(new ds(t,this,n,a,r,i));if(n.text=Array.isArray(n.text)?n.text:[n.text],l)return!1}return!0},t.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,a=this.hooks.didDrawPage;n<a.length;n++){(0,a[n])(new us(t,this,e))}},t.prototype.callWillDrawPageHooks=function(t,e){for(var n=0,a=this.hooks.willDrawPage;n<a.length;n++){(0,a[n])(new us(t,this,e))}},t.prototype.getWidth=function(t){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce((function(t,e){return t+e.wrappedWidth}),0);var e=this.settings.margin;return t-e.left-e.right},t}(),fs=function(){function t(t,e,n,a,r){void 0===r&&(r=!1),this.height=0,this.raw=t,t instanceof Yo&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=a,this.spansMultiplePages=r}return t.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce((function(t,n){var a;return Math.max(t,(null===(a=e.cells[n.index])||void 0===a?void 0:a.height)||0)}),0)},t.prototype.hasRowSpan=function(t){var e=this;return t.filter((function(t){var n=e.cells[t.index];return!!n&&n.rowSpan>1})).length>0},t.prototype.canEntireRowFit=function(t,e){return this.getMaxCellHeight(e)<=t},t.prototype.getMinimumRowHeight=function(t,e){var n=this;return t.reduce((function(t,a){var r=n.cells[a.index];if(!r)return 0;var i=e.getLineHeight(r.styles.fontSize),o=r.padding("vertical")+i;return o>t?o:t}),0)},t}(),ps=function(){function t(t,e,n){var a;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=n,this.raw=t;var r=t;null==t||"object"!=typeof t||Array.isArray(t)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,r=null!==(a=t.content)&&void 0!==a?a:t,t._element&&(this.raw=t._element));var i=null!=r?""+r:"";this.text=i.split(/\r\n|\r|\n/g)}return t.prototype.getTextPos=function(){var t,e;if("top"===this.styles.valign)t=this.y+this.padding("top");else if("bottom"===this.styles.valign)t=this.y+this.height-this.padding("bottom");else{var n=this.height-this.padding("vertical");t=this.y+n/2+this.padding("top")}if("right"===this.styles.halign)e=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var a=this.width-this.padding("horizontal");e=this.x+a/2+this.padding("left")}else e=this.x+this.padding("left");return{x:e,y:t}},t.prototype.getContentHeight=function(t,e){void 0===e&&(e=1.15);var n=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/t*e)+this.padding("vertical");return Math.max(n,this.styles.minCellHeight)},t.prototype.padding=function(t){var e=Qo(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}(),ms=function(){function t(t,e,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=e,this.index=n}return t.prototype.getMaxCustomCellWidth=function(t){for(var e=0,n=0,a=t.allRows();n<a.length;n++){var r=a[n].cells[this.index];r&&"number"==typeof r.styles.cellWidth&&(e=Math.max(e,r.styles.cellWidth))}return e},t}();function gs(t,e){!function(t,e){var n=t.scaleFactor(),a=e.settings.horizontalPageBreak,r=ts(t,e);e.allRows().forEach((function(i){for(var o=0,s=e.columns;o<s.length;o++){var l=s[o],c=i.cells[l.index];if(c){var u=e.hooks.didParseCell;e.callCellHooks(t,u,c,i,l,null);var d=c.padding("horizontal");c.contentWidth=Xo(c.text,c.styles,t)+d;var h=Xo(c.text.join(" ").split(/[^\S\u00A0]+/),c.styles,t);if(c.minReadableWidth=h+c.padding("horizontal"),"number"==typeof c.styles.cellWidth)c.minWidth=c.styles.cellWidth,c.wrappedWidth=c.styles.cellWidth;else if("wrap"===c.styles.cellWidth||!0===a)c.contentWidth>r?(c.minWidth=r,c.wrappedWidth=r):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var f=10/n;c.minWidth=c.styles.minCellWidth||f,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,a=e.columns;n<a.length;n++){var r=a[n],i=t.cells[r.index];if(i&&1===i.colSpan)r.wrappedWidth=Math.max(r.wrappedWidth,i.wrappedWidth),r.minWidth=Math.max(r.minWidth,i.minWidth),r.minReadableWidth=Math.max(r.minReadableWidth,i.minReadableWidth);else{var o=e.styles.columnStyles[r.dataKey]||e.styles.columnStyles[r.index]||{},s=o.cellWidth||o.minCellWidth;s&&"number"==typeof s&&(r.minWidth=s,r.wrappedWidth=s)}i&&(i.colSpan>1&&!r.minWidth&&(r.minWidth=i.minWidth),i.colSpan>1&&!r.wrappedWidth&&(r.wrappedWidth=i.minWidth))}}))}(t,e);var n=[],a=0;e.columns.forEach((function(t){var r=t.getMaxCustomCellWidth(e);r?t.width=r:(t.width=t.wrappedWidth,n.push(t)),a+=t.width}));var r=e.getWidth(t.pageSize().width)-a;r&&(r=vs(n,r,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),r&&(r=vs(n,r,(function(t){return t.minWidth}))),r=Math.abs(r),!e.settings.horizontalPageBreak&&r>.1/t.scaleFactor()&&(r=r<1?r:Math.round(r),console.log("Of the table content, ".concat(r," units width could not fit page"))),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var a=e[n],r=null,i=0,o=0,s=0;s<t.columns.length;s++){var l=t.columns[s];if((o-=1)>1&&t.columns[s+1])i+=l.width,delete a.cells[l.index];else if(r){var c=r;delete a.cells[l.index],r=null,c.width=l.width+i}else{if(!(c=a.cells[l.index]))continue;if(o=c.colSpan,i=0,c.colSpan>1){r=c,i+=l.width;continue}c.width=l.width+i}}}(e),function(t,e){for(var n={count:0,height:0},a=0,r=t.allRows();a<r.length;a++){for(var i=r[a],o=0,s=t.columns;o<s.length;o++){var l=s[o],c=i.cells[l.index];if(c){e.applyStyles(c.styles,!0);var u=c.width-c.padding("horizontal");if("linebreak"===c.styles.overflow)c.text=e.splitTextToSize(c.text,u+1/e.scaleFactor(),{fontSize:c.styles.fontSize});else if("ellipsize"===c.styles.overflow)c.text=bs(c.text,u,c.styles,e,"...");else if("hidden"===c.styles.overflow)c.text=bs(c.text,u,c.styles,e,"");else if("function"==typeof c.styles.overflow){var d=c.styles.overflow(c.text,u);c.text="string"==typeof d?[d]:d}c.contentHeight=c.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var h=c.contentHeight/c.rowSpan;c.rowSpan>1&&n.count*n.height<h*c.rowSpan?n={height:h,count:c.rowSpan}:n&&n.count>0&&n.height>h&&(h=n.height),h>i.height&&(i.height=h)}}n.count--}}(e,t),function(t){for(var e={},n=1,a=t.allRows(),r=0;r<a.length;r++)for(var i=a[r],o=0,s=t.columns;o<s.length;o++){var l=s[o],c=e[l.index];if(n>1)n--,delete i.cells[l.index];else if(c)c.cell.height+=i.height,n=c.cell.colSpan,delete i.cells[l.index],c.left--,c.left<=1&&delete e[l.index];else{var u=i.cells[l.index];if(!u)continue;if(u.height=i.height,u.rowSpan>1){var d=a.length-r,h=u.rowSpan>d?d:u.rowSpan;e[l.index]={cell:u,left:h,row:i}}}}}(e)}function vs(t,e,n){for(var a=e,r=t.reduce((function(t,e){return t+e.wrappedWidth}),0),i=0;i<t.length;i++){var o=t[i],s=a*(o.wrappedWidth/r),l=o.width+s,c=n(o),u=l<c?c:l;e-=u-o.width,o.width=u}if(e=Math.round(1e10*e)/1e10){var d=t.filter((function(t){return!(e<0)||t.width>n(t)}));d.length&&(e=vs(d,e,n))}return e}function bs(t,e,n,a,r){return t.map((function(t){return function(t,e,n,a,r){var i=1e4*a.scaleFactor();if(e=Math.ceil(e*i)/i,e>=Xo(t,n,a))return t;for(;e<Xo(t+r,n,a)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+r}(t,e,n,a,r)}))}function _s(t,e){var n=new $o(t),a=function(t,e){var n=t.content,a=function(t){return t.map((function(t,e){var n,a;return a="object"==typeof t&&null!==(n=t.dataKey)&&void 0!==n?n:e,new ms(a,t,e)}))}(n.columns);if(0===n.head.length){(r=ws(a,"head"))&&n.head.push(r)}if(0===n.foot.length){var r;(r=ws(a,"foot"))&&n.foot.push(r)}var i=t.settings.theme,o=t.styles;return{columns:a,head:ys("head",n.head,a,o,i,e),body:ys("body",n.body,a,o,i,e),foot:ys("foot",n.foot,a,o,i,e)}}(e,n.scaleFactor()),r=new hs(e,a);return gs(n,r),n.applyStyles(n.userStyles),r}function ys(t,e,n,a,r,i){var o={};return e.map((function(e,s){for(var l=0,c={},u=0,d=0,h=0,f=n;h<f.length;h++){var p=f[h];if(null==o[p.index]||0===o[p.index].left)if(0===d){var m=void 0,g={};"object"!=typeof(m=Array.isArray(e)?e[p.index-u-l]:e[p.dataKey])||Array.isArray(m)||(g=(null==m?void 0:m.styles)||{});var v=xs(t,p,s,r,a,i,g),b=new ps(m,v,t);c[p.dataKey]=b,c[p.index]=b,d=b.colSpan-1,o[p.index]={left:b.rowSpan-1,times:d}}else d--,u++;else o[p.index].left--,d=o[p.index].times,l++}return new fs(e,s,t,c)}))}function ws(t,e){var n={};return t.forEach((function(t){if(null!=t.raw){var a=function(t,e){if("head"===t){if("object"==typeof e)return e.header||null;if("string"==typeof e||"number"==typeof e)return e}else if("foot"===t&&"object"==typeof e)return e.footer;return null}(e,t.raw);null!=a&&(n[t.dataKey]=a)}})),Object.keys(n).length>0?n:null}function xs(t,e,n,a,r,i,o){var s,l={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[a];"head"===t?s=r.headStyles:"body"===t?s=r.bodyStyles:"foot"===t&&(s=r.footStyles);var c=ss({},l.table,l[t],r.styles,s),u=r.columnStyles[e.dataKey]||r.columnStyles[e.index]||{},d="body"===t?u:{},h="body"===t&&n%2==0?ss({},l.alternateRow,r.alternateRowStyles):{},f=function(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}(i),p=ss({},f,c,h,d);return ss(p,o)}function ks(t,e,n){var a;void 0===n&&(n={});var r=ts(t,e),i=new Map,o=[],s=[],l=[];Array.isArray(e.settings.horizontalPageBreakRepeat)?l=e.settings.horizontalPageBreakRepeat:"string"!=typeof e.settings.horizontalPageBreakRepeat&&"number"!=typeof e.settings.horizontalPageBreakRepeat||(l=[e.settings.horizontalPageBreakRepeat]),l.forEach((function(t){var n=e.columns.find((function(e){return e.dataKey===t||e.index===t}));n&&!i.has(n.index)&&(i.set(n.index,!0),o.push(n.index),s.push(e.columns[n.index]),r-=n.wrappedWidth)}));for(var c=!0,u=null!==(a=null==n?void 0:n.start)&&void 0!==a?a:0;u<e.columns.length;)if(i.has(u))u++;else{var d=e.columns[u].wrappedWidth;if(!(c||r>=d))break;c=!1,o.push(u),s.push(e.columns[u]),r-=d,u++}return{colIndexes:o,columns:s,lastIndex:u-1}}function Ss(t,e){var n=e.settings,a=n.startY,r=n.margin,i={x:r.left,y:a},o=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),s=a+r.bottom+o;"avoid"===n.pageBreak&&(s+=e.body.reduce((function(t,e){return t+e.height}),0));var l=new $o(t);("always"===n.pageBreak||null!=n.startY&&s>l.pageSize().height)&&(Rs(l),i.y=r.top),e.callWillDrawPageHooks(l,i);var c=ss({},i);e.startPageNumber=l.pageNumber(),n.horizontalPageBreak?function(t,e,n,a){var r=function(t,e){for(var n=[],a=0;a<e.columns.length;a++){var r=ks(t,e,{start:a});r.columns.length&&(n.push(r),a=r.lastIndex)}return n}(t,e),i=e.settings;if("afterAllRows"===i.horizontalPageBreakBehaviour)r.forEach((function(r,i){t.applyStyles(t.userStyles),i>0?Ms(t,e,n,a,r.columns,!0):Cs(t,e,a,r.columns),function(t,e,n,a,r){t.applyStyles(t.userStyles),e.body.forEach((function(i,o){var s=o===e.body.length-1;Ps(t,e,i,s,n,a,r)}))}(t,e,n,a,r.columns),Es(t,e,a,r.columns)}));else for(var o=-1,s=r[0],l=function(){var i=o;if(s){t.applyStyles(t.userStyles);var l=s.columns;o>=0?Ms(t,e,n,a,l,!0):Cs(t,e,a,l),i=As(t,e,o+1,a,l),Es(t,e,a,l)}var c=i-o;r.slice(1).forEach((function(r){t.applyStyles(t.userStyles),Ms(t,e,n,a,r.columns,!0),As(t,e,o+1,a,r.columns,c),Es(t,e,a,r.columns)})),o=i};o<e.body.length-1;)l()}(l,e,c,i):(l.applyStyles(l.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return Ns(l,e,t,i,e.columns)})),l.applyStyles(l.userStyles),e.body.forEach((function(t,n){var a=n===e.body.length-1;Ps(l,e,t,a,c,i,e.columns)})),l.applyStyles(l.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return Ns(l,e,t,i,e.columns)}))),Jo(l,e,c,i),e.callEndPageHooks(l,i),e.finalY=i.y,t.lastAutoTable=e,l.applyStyles(l.userStyles)}function Cs(t,e,n,a){var r=e.settings;t.applyStyles(t.userStyles),"firstPage"!==r.showHead&&"everyPage"!==r.showHead||e.head.forEach((function(r){return Ns(t,e,r,n,a)}))}function As(t,e,n,a,r,i){t.applyStyles(t.userStyles),i=null!=i?i:e.body.length;var o=Math.min(n+i,e.body.length),s=-1;return e.body.slice(n,o).forEach((function(i,o){var l=n+o===e.body.length-1,c=Os(t,e,l,a);i.canEntireRowFit(c,r)&&(Ns(t,e,i,a,r),s=n+o)})),s}function Es(t,e,n,a){var r=e.settings;t.applyStyles(t.userStyles),"lastPage"!==r.showFoot&&"everyPage"!==r.showFoot||e.foot.forEach((function(r){return Ns(t,e,r,n,a)}))}function Ts(t,e,n){var a=n.getLineHeight(t.styles.fontSize),r=t.padding("vertical"),i=Math.floor((e-r)/a);return Math.max(0,i)}function Ps(t,e,n,a,r,i,o){var s=Os(t,e,a,i);if(n.canEntireRowFit(s,o))Ns(t,e,n,i,o);else if(function(t,e,n,a){var r=t.pageSize().height,i=a.settings.margin,o=r-(i.top+i.bottom);"body"===e.section&&(o-=a.getHeadHeight(a.columns)+a.getFootHeight(a.columns));var s=e.getMinimumRowHeight(a.columns,t),l=s<n;if(s>o)return console.log("Will not be able to print row ".concat(e.index," correctly since it's minimum height is larger than page height")),!0;if(!l)return!1;var c=e.hasRowSpan(a.columns);return e.getMaxCellHeight(a.columns)>o?(c&&console.log("The content of row ".concat(e.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!c&&"avoid"!==a.settings.rowPageBreak}(t,n,s,e)){var l=function(t,e,n,a){var r={};t.spansMultiplePages=!0,t.height=0;for(var i=0,o=0,s=n.columns;o<s.length;o++){var l=s[o];if(g=t.cells[l.index]){Array.isArray(g.text)||(g.text=[g.text]),(m=ss(m=new ps(g.raw,g.styles,g.section),g)).text=[];var c=Ts(g,e,a);g.text.length>c&&(m.text=g.text.splice(c,g.text.length));var u=a.scaleFactor(),d=a.getLineHeightFactor();g.contentHeight=g.getContentHeight(u,d),g.contentHeight>=e&&(g.contentHeight=e,m.styles.minCellHeight-=e),g.contentHeight>t.height&&(t.height=g.contentHeight),m.contentHeight=m.getContentHeight(u,d),m.contentHeight>i&&(i=m.contentHeight),r[l.index]=m}}var h=new fs(t.raw,-1,t.section,r,!0);h.height=i;for(var f=0,p=n.columns;f<p.length;f++){var m,g;l=p[f],(m=h.cells[l.index])&&(m.height=h.height),(g=t.cells[l.index])&&(g.height=t.height)}return h}(n,s,e,t);Ns(t,e,n,i,o),Ms(t,e,r,i,o),Ps(t,e,l,a,r,i,o)}else Ms(t,e,r,i,o),Ps(t,e,n,a,r,i,o)}function Ns(t,e,n,a,r){a.x=e.settings.margin.left;for(var i=0,o=r;i<o.length;i++){var s=o[i],l=n.cells[s.index];if(l)if(t.applyStyles(l.styles),l.x=a.x,l.y=a.y,!1!==e.callCellHooks(t,e.hooks.willDrawCell,l,n,s,a)){Ls(t,l,a);var c=l.getTextPos();Wo(l.text,c.x,c.y,{halign:l.styles.halign,valign:l.styles.valign,maxWidth:Math.ceil(l.width-l.padding("left")-l.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,l,n,s,a),a.x+=s.width}else a.x+=s.width;else a.x+=s.width}a.y+=n.height}function Ls(t,e,n){var a=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),"number"==typeof a.lineWidth){var r=Zo(a.lineWidth,a.fillColor);r&&t.rect(e.x,n.y,e.width,e.height,r)}else"object"==typeof a.lineWidth&&(a.fillColor&&t.rect(e.x,n.y,e.width,e.height,"F"),function(t,e,n,a){var r,i,o,s;a.top&&(r=n.x,i=n.y,o=n.x+e.width,s=n.y,a.right&&(o+=.5*a.right),a.left&&(r-=.5*a.left),l(a.top,r,i,o,s));a.bottom&&(r=n.x,i=n.y+e.height,o=n.x+e.width,s=n.y+e.height,a.right&&(o+=.5*a.right),a.left&&(r-=.5*a.left),l(a.bottom,r,i,o,s));a.left&&(r=n.x,i=n.y,o=n.x,s=n.y+e.height,a.top&&(i-=.5*a.top),a.bottom&&(s+=.5*a.bottom),l(a.left,r,i,o,s));a.right&&(r=n.x+e.width,i=n.y,o=n.x+e.width,s=n.y+e.height,a.top&&(i-=.5*a.top),a.bottom&&(s+=.5*a.bottom),l(a.right,r,i,o,s));function l(e,n,a,r,i){t.getDocument().setLineWidth(e),t.getDocument().line(n,a,r,i,"S")}}(t,e,n,a.lineWidth))}function Os(t,e,n,a){var r=e.settings.margin.bottom,i=e.settings.showFoot;return("everyPage"===i||"lastPage"===i&&n)&&(r+=e.getFootHeight(e.columns)),t.pageSize().height-a.y-r}function Ms(t,e,n,a,r,i){void 0===r&&(r=[]),void 0===i&&(i=!1),t.applyStyles(t.userStyles),"everyPage"!==e.settings.showFoot||i||e.foot.forEach((function(n){return Ns(t,e,n,a,r)})),e.callEndPageHooks(t,a);var o=e.settings.margin;Jo(t,e,n,a),Rs(t),e.pageNumber++,a.x=o.left,a.y=o.top,n.y=o.top,e.callWillDrawPageHooks(t,a),"everyPage"===e.settings.showHead&&(e.head.forEach((function(n){return Ns(t,e,n,a,r)})),t.applyStyles(t.userStyles))}function Rs(t){var e=t.pageNumber();return t.setPage(e+1),t.pageNumber()===e&&(t.addPage(),!0)}try{if("undefined"!=typeof window&&window){var Is=window,Ds=Is.jsPDF||(null===(cs=Is.jspdf)||void 0===cs?void 0:cs.jsPDF);Ds&&function(t){t.API.autoTable=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ss(this,_s(this,ls(this,t[0]))),this},t.API.lastAutoTable=!1,t.API.autoTableText=function(t,e,n,a){Wo(t,e,n,a,this)},t.API.autoTableSetDefaults=function(t){return $o.setDefaults(t,this),this},t.autoTableSetDefaults=function(t,e){$o.setDefaults(t,e)},t.API.autoTableHtmlToJson=function(t,e){var n;if(void 0===e&&(e=!1),"undefined"==typeof window)return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=rs(new $o(this),t,window,e,!1),r=a.head,i=a.body,o=(null===(n=r[0])||void 0===n?void 0:n.map((function(t){return t.content})))||[];return{columns:o,rows:i,data:i}}}(Ds)}}catch(t){console.error("Could not apply autoTable plugin",t)}var Fs=n(3686).Buffer,js=n(5606),Bs={version:"0.18.5"},zs=1200,Us=1252,Hs=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Vs={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Ws=function(t){-1!=Hs.indexOf(t)&&(Us=Vs[0]=t)};var qs=function(t){zs=t,Ws(t)};function $s(){qs(1200),Ws(1252)}function Ks(t){for(var e=[],n=0;n<t.length>>1;++n)e[n]=String.fromCharCode(t.charCodeAt(2*n+1)+(t.charCodeAt(2*n)<<8));return e.join("")}var Gs,Ys=function(t){return String.fromCharCode(t)},Xs=function(t){return String.fromCharCode(t)};var Js=null,Zs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Qs(t){for(var e="",n=0,a=0,r=0,i=0,o=0,s=0,l=0,c=0;c<t.length;)i=(n=t.charCodeAt(c++))>>2,o=(3&n)<<4|(a=t.charCodeAt(c++))>>4,s=(15&a)<<2|(r=t.charCodeAt(c++))>>6,l=63&r,isNaN(a)?s=l=64:isNaN(r)&&(l=64),e+=Zs.charAt(i)+Zs.charAt(o)+Zs.charAt(s)+Zs.charAt(l);return e}function tl(t){var e="",n=0,a=0,r=0,i=0,o=0,s=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<t.length;)n=Zs.indexOf(t.charAt(l++))<<2|(i=Zs.indexOf(t.charAt(l++)))>>4,e+=String.fromCharCode(n),a=(15&i)<<4|(o=Zs.indexOf(t.charAt(l++)))>>2,64!==o&&(e+=String.fromCharCode(a)),r=(3&o)<<6|(s=Zs.indexOf(t.charAt(l++))),64!==s&&(e+=String.fromCharCode(r));return e}var el=function(){return void 0!==Fs&&void 0!==js&&void 0!==js.versions&&!!js.versions.node}(),nl=function(){if(void 0!==Fs){var t=!Fs.from;if(!t)try{Fs.from("foo","utf8")}catch(e){t=!0}return t?function(t,e){return e?new Fs(t,e):new Fs(t)}:Fs.from.bind(Fs)}return function(){}}();function al(t){return el?Fs.alloc?Fs.alloc(t):new Fs(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function rl(t){return el?Fs.allocUnsafe?Fs.allocUnsafe(t):new Fs(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var il=function(t){return el?nl(t,"binary"):t.split("").map((function(t){return 255&t.charCodeAt(0)}))};function ol(t){if("undefined"==typeof ArrayBuffer)return il(t);for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),a=0;a!=t.length;++a)n[a]=255&t.charCodeAt(a);return e}function sl(t){if(Array.isArray(t))return t.map((function(t){return String.fromCharCode(t)})).join("");for(var e=[],n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}var ll=el?function(t){return Fs.concat(t.map((function(t){return Fs.isBuffer(t)?t:nl(t)})))}:function(t){if("undefined"!=typeof Uint8Array){var e=0,n=0;for(e=0;e<t.length;++e)n+=t[e].length;var a=new Uint8Array(n),r=0;for(e=0,n=0;e<t.length;n+=r,++e)if(r=t[e].length,t[e]instanceof Uint8Array)a.set(t[e],n);else{if("string"==typeof t[e])throw"wtf";a.set(new Uint8Array(t[e]),n)}return a}return[].concat.apply([],t.map((function(t){return Array.isArray(t)?t:[].slice.call(t)})))};var cl=/\u0000/g,ul=/[\u0001-\u0006]/g;function dl(t){for(var e="",n=t.length-1;n>=0;)e+=t.charAt(n--);return e}function hl(t,e){var n=""+t;return n.length>=e?n:Sc("0",e-n.length)+n}function fl(t,e){var n=""+t;return n.length>=e?n:Sc(" ",e-n.length)+n}function pl(t,e){var n=""+t;return n.length>=e?n:n+Sc(" ",e-n.length)}var ml=Math.pow(2,32);function gl(t,e){return t>ml||t<-ml?function(t,e){var n=""+Math.round(t);return n.length>=e?n:Sc("0",e-n.length)+n}(t,e):function(t,e){var n=""+t;return n.length>=e?n:Sc("0",e-n.length)+n}(Math.round(t),e)}function vl(t,e){return e=e||0,t.length>=7+e&&103==(32|t.charCodeAt(e))&&101==(32|t.charCodeAt(e+1))&&110==(32|t.charCodeAt(e+2))&&101==(32|t.charCodeAt(e+3))&&114==(32|t.charCodeAt(e+4))&&97==(32|t.charCodeAt(e+5))&&108==(32|t.charCodeAt(e+6))}var bl=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],_l=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var yl={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},wl={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},xl={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function kl(t,e,n){for(var a=t<0?-1:1,r=t*a,i=0,o=1,s=0,l=1,c=0,u=0,d=Math.floor(r);c<e&&(s=(d=Math.floor(r))*o+i,u=d*c+l,!(r-d<5e-8));)r=1/(r-d),i=o,o=s,l=c,c=u;if(u>e&&(c>e?(u=l,s=i):(u=c,s=o)),!n)return[0,a*s,u];var h=Math.floor(a*s/u);return[h,a*s-h*u,u]}function Sl(t,e,n){if(t>2958465||t<0)return null;var a=0|t,r=Math.floor(86400*(t-a)),i=0,o=[],s={D:a,T:r,u:86400*(t-a)-r,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),e&&e.date1904&&(a+=1462),s.u>.9999&&(s.u=0,86400==++r&&(s.T=r=0,++a,++s.D)),60===a)o=n?[1317,10,29]:[1900,2,29],i=3;else if(0===a)o=n?[1317,8,29]:[1900,1,0],i=6;else{a>60&&--a;var l=new Date(1900,0,1);l.setDate(l.getDate()+a-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),a<60&&(i=(i+6)%7),n&&(i=function(t,e){e[0]-=581;var n=t.getDay();t<60&&(n=(n+6)%7);return n}(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=r%60,r=Math.floor(r/60),s.M=r%60,r=Math.floor(r/60),s.H=r,s.q=i,s}var Cl=new Date(1899,11,31,0,0,0),Al=Cl.getTime(),El=new Date(1900,2,1,0,0,0);function Tl(t,e){var n=t.getTime();return e?n-=1262304e5:t>=El&&(n+=864e5),(n-(Al+6e4*(t.getTimezoneOffset()-Cl.getTimezoneOffset())))/864e5}function Pl(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Nl(t){var e,n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=n>=-4&&n<=-1?t.toPrecision(10+n):Math.abs(n)<=9?function(t){var e=t<0?12:11,n=Pl(t.toFixed(12));return n.length<=e||(n=t.toPrecision(10)).length<=e?n:t.toExponential(5)}(t):10===n?t.toFixed(10).substr(0,12):function(t){var e=Pl(t.toFixed(11));return e.length>(t<0?12:11)||"0"===e||"-0"===e?t.toPrecision(6):e}(t),Pl(function(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}function Ll(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):Nl(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Zl(14,Tl(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function Ol(t,e,n,a){var r,i="",o=0,s=0,l=n.y,c=0;switch(t){case 98:l=n.y+543;case 121:switch(e.length){case 1:case 2:r=l%100,c=2;break;default:r=l%1e4,c=4}break;case 109:switch(e.length){case 1:case 2:r=n.m,c=e.length;break;case 3:return _l[n.m-1][1];case 5:return _l[n.m-1][0];default:return _l[n.m-1][2]}break;case 100:switch(e.length){case 1:case 2:r=n.d,c=e.length;break;case 3:return bl[n.q][0];default:return bl[n.q][1]}break;case 104:switch(e.length){case 1:case 2:r=1+(n.H+11)%12,c=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:r=n.H,c=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:r=n.M,c=e.length;break;default:throw"bad minute format: "+e}break;case 115:if("s"!=e&&"ss"!=e&&".0"!=e&&".00"!=e&&".000"!=e)throw"bad second format: "+e;return 0!==n.u||"s"!=e&&"ss"!=e?(s=a>=2?3===a?1e3:100:1===a?10:1,(o=Math.round(s*(n.S+n.u)))>=60*s&&(o=0),"s"===e?0===o?"0":""+o/s:(i=hl(o,2+a),"ss"===e?i.substr(0,2):"."+i.substr(2,e.length-1))):hl(n.S,e.length);case 90:switch(e){case"[h]":case"[hh]":r=24*n.D+n.H;break;case"[m]":case"[mm]":r=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":r=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+e}c=3===e.length?1:2;break;case 101:r=l,c=1}return c>0?hl(r,c):""}function Ml(t){if(t.length<=3)return t;for(var e=t.length%3,n=t.substr(0,e);e!=t.length;e+=3)n+=(n.length>0?",":"")+t.substr(e,3);return n}var Rl=/%/g;function Il(t,e){var n,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+Il(t,-e);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%r;if(i<0&&(i+=r),-1===(n=(e/Math.pow(10,i)).toPrecision(a+1+(r+i)%r)).indexOf("e")){var o=Math.floor(Math.log(e)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+i):n+="E+"+(o-i);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,r)+"."+n.substr(2+r)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,n,a){return e+n+a.substr(0,(r+i)%r)+"."+a.substr(i)+"E"}))}else n=e.toExponential(a);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var Dl=/# (\?+)( ?)\/( ?)(\d+)/;var Fl=/^#*0*\.([0#]+)/,jl=/\).*[0#]/,Bl=/\(###\) ###\\?-####/;function zl(t){for(var e,n="",a=0;a!=t.length;++a)switch(e=t.charCodeAt(a)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function Ul(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}function Hl(t,e){var n=t-Math.floor(t),a=Math.pow(10,e);return e<(""+Math.round(n*a)).length?0:Math.round(n*a)}function Vl(t,e,n){if(40===t.charCodeAt(0)&&!e.match(jl)){var a=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Vl("n",a,n):"("+Vl("n",a,-n)+")"}if(44===e.charCodeAt(e.length-1))return function(t,e,n){for(var a=e.length-1;44===e.charCodeAt(a-1);)--a;return $l(t,e.substr(0,a),n/Math.pow(10,3*(e.length-a)))}(t,e,n);if(-1!==e.indexOf("%"))return function(t,e,n){var a=e.replace(Rl,""),r=e.length-a.length;return $l(t,a,n*Math.pow(10,2*r))+Sc("%",r)}(t,e,n);if(-1!==e.indexOf("E"))return Il(e,n);if(36===e.charCodeAt(0))return"$"+Vl(t,e.substr(" "==e.charAt(1)?2:1),n);var r,i,o,s,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+gl(l,e.length);if(e.match(/^[#?]+$/))return"0"===(r=gl(n,0))&&(r=""),r.length>e.length?r:zl(e.substr(0,e.length-r.length))+r;if(i=e.match(Dl))return function(t,e,n){var a=parseInt(t[4],10),r=Math.round(e*a),i=Math.floor(r/a),o=r-i*a,s=a;return n+(0===i?"":""+i)+" "+(0===o?Sc(" ",t[1].length+1+t[4].length):fl(o,t[1].length)+t[2]+"/"+t[3]+hl(s,t[4].length))}(i,l,c);if(e.match(/^#+0+$/))return c+gl(l,e.length-e.indexOf("0"));if(i=e.match(Fl))return r=Ul(n,i[1].length).replace(/^([^\.]+)$/,"$1."+zl(i[1])).replace(/\.$/,"."+zl(i[1])).replace(/\.(\d*)$/,(function(t,e){return"."+e+Sc("0",zl(i[1]).length-e.length)})),-1!==e.indexOf("0.")?r:r.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return c+Ul(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return c+Ml(gl(l,0));if(i=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Vl(t,e,-n):Ml(""+(Math.floor(n)+function(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}(n,i[1].length)))+"."+hl(Hl(n,i[1].length),i[1].length);if(i=e.match(/^#,#*,#0/))return Vl(t,e.replace(/^#,#*,/,""),n);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return r=dl(Vl(t,e.replace(/[\\-]/g,""),n)),o=0,dl(dl(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return o<r.length?r.charAt(o++):"0"===t?"0":""})));if(e.match(Bl))return"("+(r=Vl(t,"##########",n)).substr(0,3)+") "+r.substr(3,3)+"-"+r.substr(6);var u="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=kl(l,Math.pow(10,o)-1,!1),r=""+c," "==(u=$l("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),r+=u+i[2]+"/"+i[3],(u=pl(s[2],o)).length<i[4].length&&(u=zl(i[4].substr(i[4].length-u.length))+u),r+=u;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),c+((s=kl(l,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?fl(s[1],o)+i[2]+"/"+i[3]+pl(s[2],o):Sc(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return r=gl(n,0),e.length<=r.length?r:zl(e.substr(0,e.length-r.length))+r;if(i=e.match(/^([#0?]+)\.([#0]+)$/)){r=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=r.indexOf(".");var d=e.indexOf(".")-o,h=e.length-r.length-d;return zl(e.substr(0,d)+r+e.substr(e.length-h))}if(i=e.match(/^00,000\.([#0]*0)$/))return o=Hl(n,i[1].length),n<0?"-"+Vl(t,e,-n):Ml(function(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?hl(0,3-t.length):"")+t}))+"."+hl(o,i[1].length);switch(e){case"###,##0.00":return Vl(t,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var f=Ml(gl(l,0));return"0"!==f?c+f:"";case"###,###.00":return Vl(t,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return Vl(t,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function Wl(t,e){var n,a=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+Wl(t,-e);var r=t.indexOf(".");-1===r&&(r=t.indexOf("E"));var i=Math.floor(Math.log(e)*Math.LOG10E)%r;if(i<0&&(i+=r),!(n=(e/Math.pow(10,i)).toPrecision(a+1+(r+i)%r)).match(/[Ee]/)){var o=Math.floor(Math.log(e)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(o-n.length+i):n+="E+"+(o-i),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(t,e,n,a){return e+n+a.substr(0,(r+i)%r)+"."+a.substr(i)+"E"}))}else n=e.toExponential(a);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function ql(t,e,n){if(40===t.charCodeAt(0)&&!e.match(jl)){var a=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?ql("n",a,n):"("+ql("n",a,-n)+")"}if(44===e.charCodeAt(e.length-1))return function(t,e,n){for(var a=e.length-1;44===e.charCodeAt(a-1);)--a;return $l(t,e.substr(0,a),n/Math.pow(10,3*(e.length-a)))}(t,e,n);if(-1!==e.indexOf("%"))return function(t,e,n){var a=e.replace(Rl,""),r=e.length-a.length;return $l(t,a,n*Math.pow(10,2*r))+Sc("%",r)}(t,e,n);if(-1!==e.indexOf("E"))return Wl(e,n);if(36===e.charCodeAt(0))return"$"+ql(t,e.substr(" "==e.charAt(1)?2:1),n);var r,i,o,s,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+hl(l,e.length);if(e.match(/^[#?]+$/))return r=""+n,0===n&&(r=""),r.length>e.length?r:zl(e.substr(0,e.length-r.length))+r;if(i=e.match(Dl))return function(t,e,n){return n+(0===e?"":""+e)+Sc(" ",t[1].length+2+t[4].length)}(i,l,c);if(e.match(/^#+0+$/))return c+hl(l,e.length-e.indexOf("0"));if(i=e.match(Fl))return r=(r=(""+n).replace(/^([^\.]+)$/,"$1."+zl(i[1])).replace(/\.$/,"."+zl(i[1]))).replace(/\.(\d*)$/,(function(t,e){return"."+e+Sc("0",zl(i[1]).length-e.length)})),-1!==e.indexOf("0.")?r:r.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),i=e.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=e.match(/^#{1,3},##0(\.?)$/))return c+Ml(""+l);if(i=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+ql(t,e,-n):Ml(""+n)+"."+Sc("0",i[1].length);if(i=e.match(/^#,#*,#0/))return ql(t,e.replace(/^#,#*,/,""),n);if(i=e.match(/^([0#]+)(\\?-([0#]+))+$/))return r=dl(ql(t,e.replace(/[\\-]/g,""),n)),o=0,dl(dl(e.replace(/\\/g,"")).replace(/[0#]/g,(function(t){return o<r.length?r.charAt(o++):"0"===t?"0":""})));if(e.match(Bl))return"("+(r=ql(t,"##########",n)).substr(0,3)+") "+r.substr(3,3)+"-"+r.substr(6);var u="";if(i=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=kl(l,Math.pow(10,o)-1,!1),r=""+c," "==(u=$l("n",i[1],s[1])).charAt(u.length-1)&&(u=u.substr(0,u.length-1)+"0"),r+=u+i[2]+"/"+i[3],(u=pl(s[2],o)).length<i[4].length&&(u=zl(i[4].substr(i[4].length-u.length))+u),r+=u;if(i=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),c+((s=kl(l,Math.pow(10,o)-1,!0))[0]||(s[1]?"":"0"))+" "+(s[1]?fl(s[1],o)+i[2]+"/"+i[3]+pl(s[2],o):Sc(" ",2*o+1+i[2].length+i[3].length));if(i=e.match(/^[#0?]+$/))return r=""+n,e.length<=r.length?r:zl(e.substr(0,e.length-r.length))+r;if(i=e.match(/^([#0]+)\.([#0]+)$/)){r=""+n.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=r.indexOf(".");var d=e.indexOf(".")-o,h=e.length-r.length-d;return zl(e.substr(0,d)+r+e.substr(e.length-h))}if(i=e.match(/^00,000\.([#0]*0)$/))return n<0?"-"+ql(t,e,-n):Ml(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(t){return"00,"+(t.length<3?hl(0,3-t.length):"")+t}))+"."+hl(0,i[1].length);switch(e){case"###,###":case"##,###":case"#,###":var f=Ml(""+l);return"0"!==f?c+f:"";default:if(e.match(/\.[0#?]*$/))return ql(t,e.slice(0,e.lastIndexOf(".")),n)+zl(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function $l(t,e,n){return(0|n)===n?ql(t,e,n):Vl(t,e,n)}var Kl=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Gl(t){for(var e=0,n="",a="";e<t.length;)switch(n=t.charAt(e)){case"G":vl(t,e)&&(e+=6),e++;break;case'"':for(;34!==t.charCodeAt(++e)&&e<t.length;);++e;break;case"\\":case"_":e+=2;break;case"@":++e;break;case"B":case"b":if("1"===t.charAt(e+1)||"2"===t.charAt(e+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===t.substr(e,3).toUpperCase())return!0;if("AM/PM"===t.substr(e,5).toUpperCase())return!0;if("上午/下午"===t.substr(e,5).toUpperCase())return!0;++e;break;case"[":for(a=n;"]"!==t.charAt(e++)&&e<t.length;)a+=t.charAt(e);if(a.match(Kl))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(n=t.charAt(++e))>-1||"\\"==n&&"-"==t.charAt(e+1)&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===n;);break;case"*":++e," "!=t.charAt(e)&&"*"!=t.charAt(e)||++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;default:++e}return!1}var Yl=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Xl(t,e){if(null==e)return!1;var n=parseFloat(e[2]);switch(e[1]){case"=":if(t==n)return!0;break;case">":if(t>n)return!0;break;case"<":if(t<n)return!0;break;case"<>":if(t!=n)return!0;break;case">=":if(t>=n)return!0;break;case"<=":if(t<=n)return!0}return!1}function Jl(t,e){var n=function(t){for(var e=[],n=!1,a=0,r=0;a<t.length;++a)switch(t.charCodeAt(a)){case 34:n=!n;break;case 95:case 42:case 92:++a;break;case 59:e[e.length]=t.substr(r,a-r),r=a+1}if(e[e.length]=t.substr(r),!0===n)throw new Error("Format |"+t+"| unterminated string ");return e}(t),a=n.length,r=n[a-1].indexOf("@");if(a<4&&r>-1&&--a,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof e)return[4,4===n.length||r>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=r>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=r>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=r>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var i=e>0?n[0]:e<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[a,i];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var o=n[0].match(Yl),s=n[1].match(Yl);return Xl(e,o)?[a,n[0]]:Xl(e,s)?[a,n[1]]:[a,n[null!=o&&null!=s?2:1]]}return[a,i]}function Zl(t,e,n){null==n&&(n={});var a="";switch(typeof t){case"string":a="m/d/yy"==t&&n.dateNF?n.dateNF:t;break;case"number":null==(a=14==t&&n.dateNF?n.dateNF:(null!=n.table?n.table:yl)[t])&&(a=n.table&&n.table[wl[t]]||yl[wl[t]]),null==a&&(a=xl[t]||"General")}if(vl(a,0))return Ll(e,n);e instanceof Date&&(e=Tl(e,n.date1904));var r=Jl(a,e);if(vl(r[1]))return Ll(e,n);if(!0===e)e="TRUE";else if(!1===e)e="FALSE";else if(""===e||null==e)return"";return function(t,e,n,a){for(var r,i,o,s=[],l="",c=0,u="",d="t",h="H";c<t.length;)switch(u=t.charAt(c)){case"G":if(!vl(t,c))throw new Error("unrecognized character "+u+" in "+t);s[s.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(o=t.charCodeAt(++c))&&c<t.length;)l+=String.fromCharCode(o);s[s.length]={t:"t",v:l},++c;break;case"\\":var f=t.charAt(++c),p="("===f||")"===f?f:"t";s[s.length]={t:p,v:f},++c;break;case"_":s[s.length]={t:"t",v:" "},c+=2;break;case"@":s[s.length]={t:"T",v:e},++c;break;case"B":case"b":if("1"===t.charAt(c+1)||"2"===t.charAt(c+1)){if(null==r&&null==(r=Sl(e,n,"2"===t.charAt(c+1))))return"";s[s.length]={t:"X",v:t.substr(c,2)},d=u,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":u=u.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0)return"";if(null==r&&null==(r=Sl(e,n)))return"";for(l=u;++c<t.length&&t.charAt(c).toLowerCase()===u;)l+=u;"m"===u&&"h"===d.toLowerCase()&&(u="M"),"h"===u&&(u=h),s[s.length]={t:u,v:l},d=u;break;case"A":case"a":case"上":var m={t:u,v:u};if(null==r&&(r=Sl(e,n)),"A/P"===t.substr(c,3).toUpperCase()?(null!=r&&(m.v=r.H>=12?"P":"A"),m.t="T",h="h",c+=3):"AM/PM"===t.substr(c,5).toUpperCase()?(null!=r&&(m.v=r.H>=12?"PM":"AM"),m.t="T",c+=5,h="h"):"上午/下午"===t.substr(c,5).toUpperCase()?(null!=r&&(m.v=r.H>=12?"下午":"上午"),m.t="T",c+=5,h="h"):(m.t="t",++c),null==r&&"T"===m.t)return"";s[s.length]=m,d=u;break;case"[":for(l=u;"]"!==t.charAt(c++)&&c<t.length;)l+=t.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(Kl)){if(null==r&&null==(r=Sl(e,n)))return"";s[s.length]={t:"Z",v:l.toLowerCase()},d=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Gl(t)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=r){for(l=u;++c<t.length&&"0"===(u=t.charAt(c));)l+=u;s[s.length]={t:"s",v:l};break}case"0":case"#":for(l=u;++c<t.length&&"0#?.,E+-%".indexOf(u=t.charAt(c))>-1;)l+=u;s[s.length]={t:"n",v:l};break;case"?":for(l=u;t.charAt(++c)===u;)l+=u;s[s.length]={t:u,v:l},d=u;break;case"*":++c," "!=t.charAt(c)&&"*"!=t.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===a?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=u;c<t.length&&"0123456789".indexOf(t.charAt(++c))>-1;)l+=t.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+t);s[s.length]={t:"t",v:u},++c}var g,v=0,b=0;for(c=s.length-1,d="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=h,d="h",v<1&&(v=1);break;case"s":(g=s[c].v.match(/\.0+$/))&&(b=Math.max(b,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":d=s[c].t;break;case"m":"s"===d&&(s[c].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[c].v.match(/[Hh]/)&&(v=1),v<2&&s[c].v.match(/[Mm]/)&&(v=2),v<3&&s[c].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:r.u>=.5&&(r.u=0,++r.S),r.S>=60&&(r.S=0,++r.M),r.M>=60&&(r.M=0,++r.H);break;case 2:r.u>=.5&&(r.u=0,++r.S),r.S>=60&&(r.S=0,++r.M)}var _,y="";for(c=0;c<s.length;++c)switch(s[c].t){case"t":case"T":case" ":case"D":break;case"X":s[c].v="",s[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":s[c].v=Ol(s[c].t.charCodeAt(0),s[c].v,r,b),s[c].t="t";break;case"n":case"?":for(_=c+1;null!=s[_]&&("?"===(u=s[_].t)||"D"===u||(" "===u||"t"===u)&&null!=s[_+1]&&("?"===s[_+1].t||"t"===s[_+1].t&&"/"===s[_+1].v)||"("===s[c].t&&(" "===u||"n"===u||")"===u)||"t"===u&&("/"===s[_].v||" "===s[_].v&&null!=s[_+1]&&"?"==s[_+1].t));)s[c].v+=s[_].v,s[_]={v:"",t:";"},++_;y+=s[c].v,c=_-1;break;case"G":s[c].t="t",s[c].v=Ll(e,n)}var w,x,k="";if(y.length>0){40==y.charCodeAt(0)?(w=e<0&&45===y.charCodeAt(0)?-e:e,x=$l("n",y,w)):(x=$l("n",y,w=e<0&&a>1?-e:e),w<0&&s[0]&&"t"==s[0].t&&(x=x.substr(1),s[0].v="-"+s[0].v)),_=x.length-1;var S=s.length;for(c=0;c<s.length;++c)if(null!=s[c]&&"t"!=s[c].t&&s[c].v.indexOf(".")>-1){S=c;break}var C=s.length;if(S===s.length&&-1===x.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(_>=s[c].v.length-1?(_-=s[c].v.length,s[c].v=x.substr(_+1,s[c].v.length)):_<0?s[c].v="":(s[c].v=x.substr(0,_+1),_=-1),s[c].t="t",C=c);_>=0&&C<s.length&&(s[C].v=x.substr(0,_+1)+s[C].v)}else if(S!==s.length&&-1===x.indexOf("E")){for(_=x.indexOf(".")-1,c=S;c>=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(i=s[c].v.indexOf(".")>-1&&c===S?s[c].v.indexOf(".")-1:s[c].v.length-1,k=s[c].v.substr(i+1);i>=0;--i)_>=0&&("0"===s[c].v.charAt(i)||"#"===s[c].v.charAt(i))&&(k=x.charAt(_--)+k);s[c].v=k,s[c].t="t",C=c}for(_>=0&&C<s.length&&(s[C].v=x.substr(0,_+1)+s[C].v),_=x.indexOf(".")+1,c=S;c<s.length;++c)if(null!=s[c]&&(-1!=="n?(".indexOf(s[c].t)||c===S)){for(i=s[c].v.indexOf(".")>-1&&c===S?s[c].v.indexOf(".")+1:0,k=s[c].v.substr(0,i);i<s[c].v.length;++i)_<x.length&&(k+=x.charAt(_++));s[c].v=k,s[c].t="t",C=c}}}for(c=0;c<s.length;++c)null!=s[c]&&"n?".indexOf(s[c].t)>-1&&(w=a>1&&e<0&&c>0&&"-"===s[c-1].v?-e:e,s[c].v=$l(s[c].t,s[c].v,w),s[c].t="t");var A="";for(c=0;c!==s.length;++c)null!=s[c]&&(A+=s[c].v);return A}(r[1],e,n,r[0])}function Ql(t,e){if("number"!=typeof e){e=+e||-1;for(var n=0;n<392;++n)if(null!=yl[n]){if(yl[n]==t){e=n;break}}else e<0&&(e=n);e<0&&(e=391)}return yl[e]=t,e}function tc(t){for(var e=0;392!=e;++e)void 0!==t[e]&&Ql(t[e],e)}function ec(){yl=function(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',t}()}var nc=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var ac=function(){var t={};t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),n=0;256!=n;++n)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=n)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[n]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();var n=function(t){var e=0,n=0,a=0,r="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(a=0;256!=a;++a)r[a]=t[a];for(a=0;256!=a;++a)for(n=t[a],e=256+a;e<4096;e+=256)n=r[e]=n>>>8^t[255&n];var i=[];for(a=1;16!=a;++a)i[a-1]="undefined"!=typeof Int32Array?r.subarray(256*a,256*a+256):r.slice(256*a,256*a+256);return i}(e),a=n[0],r=n[1],i=n[2],o=n[3],s=n[4],l=n[5],c=n[6],u=n[7],d=n[8],h=n[9],f=n[10],p=n[11],m=n[12],g=n[13],v=n[14];return t.table=e,t.bstr=function(t,n){for(var a=~n,r=0,i=t.length;r<i;)a=a>>>8^e[255&(a^t.charCodeAt(r++))];return~a},t.buf=function(t,n){for(var b=~n,_=t.length-15,y=0;y<_;)b=v[t[y++]^255&b]^g[t[y++]^b>>8&255]^m[t[y++]^b>>16&255]^p[t[y++]^b>>>24]^f[t[y++]]^h[t[y++]]^d[t[y++]]^u[t[y++]]^c[t[y++]]^l[t[y++]]^s[t[y++]]^o[t[y++]]^i[t[y++]]^r[t[y++]]^a[t[y++]]^e[t[y++]];for(_+=15;y<_;)b=b>>>8^e[255&(b^t[y++])];return~b},t.str=function(t,n){for(var a=~n,r=0,i=t.length,o=0,s=0;r<i;)(o=t.charCodeAt(r++))<128?a=a>>>8^e[255&(a^o)]:o<2048?a=(a=a>>>8^e[255&(a^(192|o>>6&31))])>>>8^e[255&(a^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&t.charCodeAt(r++),a=(a=(a=(a=a>>>8^e[255&(a^(240|o>>8&7))])>>>8^e[255&(a^(128|o>>2&63))])>>>8^e[255&(a^(128|s>>6&15|(3&o)<<4))])>>>8^e[255&(a^(128|63&s))]):a=(a=(a=a>>>8^e[255&(a^(224|o>>12&15))])>>>8^e[255&(a^(128|o>>6&63))])>>>8^e[255&(a^(128|63&o))];return~a},t}(),rc=function(){var t,e={};function n(t){if("/"==t.charAt(t.length-1))return-1===t.slice(0,-1).indexOf("/")?t:n(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(0,e+1)}function a(t){if("/"==t.charAt(t.length-1))return a(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(e+1)}function r(t,e){"string"==typeof e&&(e=new Date(e));var n=e.getHours();n=(n=n<<6|e.getMinutes())<<5|e.getSeconds()>>>1,t.write_shift(2,n);var a=e.getFullYear()-1980;a=(a=a<<4|e.getMonth()+1)<<5|e.getDate(),t.write_shift(2,a)}function i(t){Iu(t,0);for(var e={},n=0;t.l<=t.length-4;){var a=t.read_shift(2),r=t.read_shift(2),i=t.l+r,o={};if(21589===a)1&(n=t.read_shift(1))&&(o.mtime=t.read_shift(4)),r>5&&(2&n&&(o.atime=t.read_shift(4)),4&n&&(o.ctime=t.read_shift(4))),o.mtime&&(o.mt=new Date(1e3*o.mtime));t.l=i,e[a]=o}return e}function o(){return t||(t={})}function s(t,e){if(80==t[0]&&75==t[1])return at(t,e);if(109==(32|t[0])&&105==(32|t[1]))return function(t,e){if("mime-version:"!=x(t.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=e&&e.root||"",a=(el&&Fs.isBuffer(t)?t.toString("binary"):x(t)).split("\r\n"),r=0,i="";for(r=0;r<a.length;++r)if(i=a[r],/^Content-Location:/i.test(i)&&(i=i.slice(i.indexOf("file")),n||(n=i.slice(0,i.lastIndexOf("/")+1)),i.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),i.slice(0,n.length)!=n););var o=(a[1]||"").match(/boundary="(.*?)"/);if(!o)throw new Error("MAD cannot find boundary");var s="--"+(o[1]||""),l=[],c=[],u={FileIndex:l,FullPaths:c};h(u);var d,f=0;for(r=0;r<a.length;++r){var p=a[r];p!==s&&p!==s+"--"||(f++&&ct(u,a.slice(d,r),n),d=r)}return u}(t,e);if(t.length<512)throw new Error("CFB file size "+t.length+" < 512");var n,a,r,i,o,s,f=512,p=[],m=t.slice(0,512);Iu(m,0);var g=function(t){if(80==t[t.l]&&75==t[t.l+1])return[0,0];t.chk(b,"Header Signature: "),t.l+=16;var e=t.read_shift(2,"u");return[t.read_shift(2,"u"),e]}(m);switch(n=g[0]){case 3:f=512;break;case 4:f=4096;break;case 0:if(0==g[1])return at(t,e);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==f&&Iu(m=t.slice(0,f),28);var _=t.slice(0,f);!function(t,e){var n=9;switch(t.l+=2,n=t.read_shift(2)){case 9:if(3!=e)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=e)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}t.chk("0600","Mini Sector Shift: "),t.chk("000000000000","Reserved: ")}(m,n);var y=m.read_shift(4,"i");if(3===n&&0!==y)throw new Error("# Directory Sectors: Expected 0 saw "+y);m.l+=4,i=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),o=m.read_shift(4,"i"),a=m.read_shift(4,"i"),s=m.read_shift(4,"i"),r=m.read_shift(4,"i");for(var w=-1,k=0;k<109&&!((w=m.read_shift(4,"i"))<0);++k)p[k]=w;var S=function(t,e){for(var n=Math.ceil(t.length/e)-1,a=[],r=1;r<n;++r)a[r-1]=t.slice(r*e,(r+1)*e);return a[n-1]=t.slice(n*e),a}(t,f);c(s,r,S,f,p);var C=function(t,e,n,a){var r=t.length,i=[],o=[],s=[],l=[],c=a-1,u=0,d=0,h=0,f=0;for(u=0;u<r;++u)if(s=[],(h=u+e)>=r&&(h-=r),!o[h]){l=[];var p=[];for(d=h;d>=0;){p[d]=!0,o[d]=!0,s[s.length]=d,l.push(t[d]);var m=n[Math.floor(4*d/a)];if(a<4+(f=4*d&c))throw new Error("FAT boundary crossed: "+d+" 4 "+a);if(!t[m])break;if(p[d=Eu(t[m],f)])break}i[h]={nodes:s,data:nu([l])}}return i}(S,i,p,f);C[i].name="!Directory",a>0&&o!==v&&(C[o].name="!MiniFAT"),C[p[0]].name="!FAT",C.fat_addrs=p,C.ssz=f;var A=[],E=[],T=[];!function(t,e,n,a,r,i,o,s){for(var c,h=0,f=a.length?2:0,p=e[t].data,m=0,g=0;m<p.length;m+=128){var b=p.slice(m,m+128);Iu(b,64),g=b.read_shift(2),c=ru(b,0,g-f),a.push(c);var _={name:c,type:b.read_shift(1),color:b.read_shift(1),L:b.read_shift(4,"i"),R:b.read_shift(4,"i"),C:b.read_shift(4,"i"),clsid:b.read_shift(16),state:b.read_shift(4,"i"),start:0,size:0};0!==b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)&&(_.ct=d(b,b.l-8)),0!==b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)&&(_.mt=d(b,b.l-8)),_.start=b.read_shift(4,"i"),_.size=b.read_shift(4,"i"),_.size<0&&_.start<0&&(_.size=_.type=0,_.start=v,_.name=""),5===_.type?(h=_.start,r>0&&h!==v&&(e[h].name="!StreamData")):_.size>=4096?(_.storage="fat",void 0===e[_.start]&&(e[_.start]=u(n,_.start,e.fat_addrs,e.ssz)),e[_.start].name=_.name,_.content=e[_.start].data.slice(0,_.size)):(_.storage="minifat",_.size<0?_.size=0:h!==v&&_.start!==v&&e[h]&&(_.content=l(_,e[h].data,(e[s]||{}).data))),_.content&&Iu(_.content,0),i[c]=_,o.push(_)}}(i,C,S,A,a,{},E,o),function(t,e,n){for(var a=0,r=0,i=0,o=0,s=0,l=n.length,c=[],u=[];a<l;++a)c[a]=u[a]=a,e[a]=n[a];for(;s<u.length;++s)r=t[a=u[s]].L,i=t[a].R,o=t[a].C,c[a]===a&&(-1!==r&&c[r]!==r&&(c[a]=c[r]),-1!==i&&c[i]!==i&&(c[a]=c[i])),-1!==o&&(c[o]=a),-1!==r&&a!=c[a]&&(c[r]=c[a],u.lastIndexOf(r)<s&&u.push(r)),-1!==i&&a!=c[a]&&(c[i]=c[a],u.lastIndexOf(i)<s&&u.push(i));for(a=1;a<l;++a)c[a]===a&&(-1!==i&&c[i]!==i?c[a]=c[i]:-1!==r&&c[r]!==r&&(c[a]=c[r]));for(a=1;a<l;++a)if(0!==t[a].type){if((s=a)!=c[s])do{s=c[s],e[a]=e[s]+"/"+e[a]}while(0!==s&&-1!==c[s]&&s!=c[s]);c[a]=-1}for(e[0]+="/",a=1;a<l;++a)2!==t[a].type&&(e[a]+="/")}(E,T,A),A.shift();var P={FileIndex:E,FullPaths:T};return e&&e.raw&&(P.raw={header:_,sectors:S}),P}function l(t,e,n){for(var a=t.start,r=t.size,i=[],o=a;n&&r>0&&o>=0;)i.push(e.slice(o*g,o*g+g)),r-=g,o=Eu(n,4*o);return 0===i.length?Fu(0):ll(i).slice(0,t.size)}function c(t,e,n,a,r){var i=v;if(t===v){if(0!==e)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var o=n[t],s=(a>>>2)-1;if(!o)return;for(var l=0;l<s&&(i=Eu(o,4*l))!==v;++l)r.push(i);c(Eu(o,a-4),e-1,n,a,r)}}function u(t,e,n,a,r){var i=[],o=[];r||(r=[]);var s=a-1,l=0,c=0;for(l=e;l>=0;){r[l]=!0,i[i.length]=l,o.push(t[l]);var u=n[Math.floor(4*l/a)];if(a<4+(c=4*l&s))throw new Error("FAT boundary crossed: "+l+" 4 "+a);if(!t[u])break;l=Eu(t[u],c)}return{nodes:i,data:nu([o])}}function d(t,e){return new Date(1e3*(Au(t,e+4)/1e7*Math.pow(2,32)+Au(t,e)/1e7-11644473600))}function h(t,e){var n=e||{},a=n.root||"Root Entry";if(t.FullPaths||(t.FullPaths=[]),t.FileIndex||(t.FileIndex=[]),t.FullPaths.length!==t.FileIndex.length)throw new Error("inconsistent CFB structure");0===t.FullPaths.length&&(t.FullPaths[0]=a+"/",t.FileIndex[0]={name:a,type:5}),n.CLSID&&(t.FileIndex[0].clsid=n.CLSID),function(t){var e="Sh33tJ5";if(rc.find(t,"/"+e))return;var n=Fu(4);n[0]=55,n[1]=n[3]=50,n[2]=54,t.FileIndex.push({name:e,type:2,content:n,size:4,L:69,R:69,C:69}),t.FullPaths.push(t.FullPaths[0]+e),f(t)}(t)}function f(t,e){h(t);for(var r=!1,i=!1,o=t.FullPaths.length-1;o>=0;--o){var s=t.FileIndex[o];switch(s.type){case 0:i?r=!0:(t.FileIndex.pop(),t.FullPaths.pop());break;case 1:case 2:case 5:i=!0,isNaN(s.R*s.L*s.C)&&(r=!0),s.R>-1&&s.L>-1&&s.R==s.L&&(r=!0);break;default:r=!0}}if(r||e){var l=new Date(1987,1,19),c=0,u=Object.create?Object.create(null):{},d=[];for(o=0;o<t.FullPaths.length;++o)u[t.FullPaths[o]]=!0,0!==t.FileIndex[o].type&&d.push([t.FullPaths[o],t.FileIndex[o]]);for(o=0;o<d.length;++o){var f=n(d[o][0]);(i=u[f])||(d.push([f,{name:a(f).replace("/",""),type:1,clsid:y,ct:l,mt:l,content:null}]),u[f]=!0)}for(d.sort((function(t,e){return function(t,e){for(var n=t.split("/"),a=e.split("/"),r=0,i=0,o=Math.min(n.length,a.length);r<o;++r){if(i=n[r].length-a[r].length)return i;if(n[r]!=a[r])return n[r]<a[r]?-1:1}return n.length-a.length}(t[0],e[0])})),t.FullPaths=[],t.FileIndex=[],o=0;o<d.length;++o)t.FullPaths[o]=d[o][0],t.FileIndex[o]=d[o][1];for(o=0;o<d.length;++o){var p=t.FileIndex[o],m=t.FullPaths[o];if(p.name=a(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||y,0===o)p.C=d.length>1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(c=o+1;c<d.length&&n(t.FullPaths[c])!=m;++c);for(p.C=c>=d.length?-1:c,c=o+1;c<d.length&&n(t.FullPaths[c])!=n(m);++c);p.R=c>=d.length?-1:c,p.type=1}else n(t.FullPaths[o+1]||"")==n(m)&&(p.R=o+1),p.type=2}}}function p(t,e){var n=e||{};if("mad"==n.fileType)return function(t,e){for(var n=e||{},a=n.boundary||"SheetJS",r=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(a="------="+a).slice(2)+'"',"","",""],i=t.FullPaths[0],o=i,s=t.FileIndex[0],l=1;l<t.FullPaths.length;++l)if(o=t.FullPaths[l].slice(i.length),(s=t.FileIndex[l]).size&&s.content&&"Sh33tJ5"!=o){o=o.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(t){return"_x"+t.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(t){return"_u"+t.charCodeAt(0).toString(16)+"_"}));for(var c=s.content,u=el&&Fs.isBuffer(c)?c.toString("binary"):x(c),d=0,h=Math.min(1024,u.length),f=0,p=0;p<=h;++p)(f=u.charCodeAt(p))>=32&&f<128&&++d;var m=d>=4*h/5;r.push(a),r.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+o),r.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),r.push("Content-Type: "+ot(s,o)),r.push(""),r.push(m?lt(u):st(u))}return r.push(a+"--\r\n"),r.join("\r\n")}(t,n);if(f(t),"zip"===n.fileType)return function(t,e){var n=e||{},a=[],i=[],o=Fu(1),s=n.compression?8:0,l=0;0;var c=0,u=0,d=0,h=0,f=t.FullPaths[0],p=f,m=t.FileIndex[0],g=[],v=0;for(c=1;c<t.FullPaths.length;++c)if(p=t.FullPaths[c].slice(f.length),(m=t.FileIndex[c]).size&&m.content&&"Sh33tJ5"!=p){var b=d,_=Fu(p.length);for(u=0;u<p.length;++u)_.write_shift(1,127&p.charCodeAt(u));_=_.slice(0,_.l),g[h]=ac.buf(m.content,0);var y=m.content;8==s&&(y=k(y)),(o=Fu(30)).write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),m.mt?r(o,m.mt):o.write_shift(4,0),o.write_shift(-4,8&l?0:g[h]),o.write_shift(4,8&l?0:y.length),o.write_shift(4,8&l?0:m.content.length),o.write_shift(2,_.length),o.write_shift(2,0),d+=o.length,a.push(o),d+=_.length,a.push(_),d+=y.length,a.push(y),8&l&&((o=Fu(12)).write_shift(-4,g[h]),o.write_shift(4,y.length),o.write_shift(4,m.content.length),d+=o.l,a.push(o)),(o=Fu(46)).write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,l),o.write_shift(2,s),o.write_shift(4,0),o.write_shift(-4,g[h]),o.write_shift(4,y.length),o.write_shift(4,m.content.length),o.write_shift(2,_.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,b),v+=o.l,i.push(o),v+=_.length,i.push(_),++h}return o=Fu(22),o.write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,h),o.write_shift(2,h),o.write_shift(4,v),o.write_shift(4,d),o.write_shift(2,0),ll([ll(a),ll(i),o])}(t,n);var a=function(t){for(var e=0,n=0,a=0;a<t.FileIndex.length;++a){var r=t.FileIndex[a];if(r.content){var i=r.content.length;i>0&&(i<4096?e+=i+63>>6:n+=i+511>>9)}}for(var o=t.FullPaths.length+3>>2,s=e+127>>7,l=(e+7>>3)+n+o+s,c=l+127>>7,u=c<=109?0:Math.ceil((c-109)/127);l+c+u+127>>7>c;)u=++c<=109?0:Math.ceil((c-109)/127);var d=[1,u,c,s,o,n,e,0];return t.FileIndex[0].size=e<<6,d[7]=(t.FileIndex[0].start=d[0]+d[1]+d[2]+d[3]+d[4]+d[5])+(d[6]+7>>3),d}(t),i=Fu(a[7]<<9),o=0,s=0;for(o=0;o<8;++o)i.write_shift(1,_[o]);for(o=0;o<8;++o)i.write_shift(2,0);for(i.write_shift(2,62),i.write_shift(2,3),i.write_shift(2,65534),i.write_shift(2,9),i.write_shift(2,6),o=0;o<3;++o)i.write_shift(2,0);for(i.write_shift(4,0),i.write_shift(4,a[2]),i.write_shift(4,a[0]+a[1]+a[2]+a[3]-1),i.write_shift(4,0),i.write_shift(4,4096),i.write_shift(4,a[3]?a[0]+a[1]+a[2]-1:v),i.write_shift(4,a[3]),i.write_shift(-4,a[1]?a[0]-1:v),i.write_shift(4,a[1]),o=0;o<109;++o)i.write_shift(-4,o<a[2]?a[1]+o:-1);if(a[1])for(s=0;s<a[1];++s){for(;o<236+127*s;++o)i.write_shift(-4,o<a[2]?a[1]+o:-1);i.write_shift(-4,s===a[1]-1?v:s+1)}var l=function(t){for(s+=t;o<s-1;++o)i.write_shift(-4,o+1);t&&(++o,i.write_shift(-4,v))};for(s=o=0,s+=a[1];o<s;++o)i.write_shift(-4,w.DIFSECT);for(s+=a[2];o<s;++o)i.write_shift(-4,w.FATSECT);l(a[3]),l(a[4]);for(var c=0,u=0,d=t.FileIndex[0];c<t.FileIndex.length;++c)(d=t.FileIndex[c]).content&&((u=d.content.length)<4096||(d.start=s,l(u+511>>9)));for(l(a[6]+7>>3);511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(s=o=0,c=0;c<t.FileIndex.length;++c)(d=t.FileIndex[c]).content&&(!(u=d.content.length)||u>=4096||(d.start=s,l(u+63>>6)));for(;511&i.l;)i.write_shift(-4,w.ENDOFCHAIN);for(o=0;o<a[4]<<2;++o){var h=t.FullPaths[o];if(h&&0!==h.length){d=t.FileIndex[o],0===o&&(d.start=d.size?d.start-1:v);var p=0===o&&n.root||d.name;if(u=2*(p.length+1),i.write_shift(64,p,"utf16le"),i.write_shift(2,u),i.write_shift(1,d.type),i.write_shift(1,d.color),i.write_shift(-4,d.L),i.write_shift(-4,d.R),i.write_shift(-4,d.C),d.clsid)i.write_shift(16,d.clsid,"hex");else for(c=0;c<4;++c)i.write_shift(4,0);i.write_shift(4,d.state||0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,0),i.write_shift(4,d.start),i.write_shift(4,d.size),i.write_shift(4,0)}else{for(c=0;c<17;++c)i.write_shift(4,0);for(c=0;c<3;++c)i.write_shift(4,-1);for(c=0;c<12;++c)i.write_shift(4,0)}}for(o=1;o<t.FileIndex.length;++o)if((d=t.FileIndex[o]).size>=4096)if(i.l=d.start+1<<9,el&&Fs.isBuffer(d.content))d.content.copy(i,i.l,0,d.size),i.l+=d.size+511&-512;else{for(c=0;c<d.size;++c)i.write_shift(1,d.content[c]);for(;511&c;++c)i.write_shift(1,0)}for(o=1;o<t.FileIndex.length;++o)if((d=t.FileIndex[o]).size>0&&d.size<4096)if(el&&Fs.isBuffer(d.content))d.content.copy(i,i.l,0,d.size),i.l+=d.size+63&-64;else{for(c=0;c<d.size;++c)i.write_shift(1,d.content[c]);for(;63&c;++c)i.write_shift(1,0)}if(el)i.l=i.length;else for(;i.l<i.length;)i.write_shift(1,0);return i}e.version="1.2.1";var m,g=64,v=-2,b="d0cf11e0a1b11ae1",_=[208,207,17,224,161,177,26,225],y="00000000000000000000000000000000",w={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:v,FREESECT:-1,HEADER_SIGNATURE:b,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:y,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function x(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}function k(t){return m?m.deflateRawSync(t):G(t)}var S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],C=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],A=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function E(t){var e=139536&(t<<1|t<<11)|558144&(t<<5|t<<15);return 255&(e>>16|e>>8|e)}for(var T="undefined"!=typeof Uint8Array,P=T?new Uint8Array(256):[],N=0;N<256;++N)P[N]=E(N);function L(t,e){var n=P[255&t];return e<=8?n>>>8-e:(n=n<<8|P[t>>8&255],e<=16?n>>>16-e:(n=n<<8|P[t>>16&255])>>>24-e)}function O(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=6?0:t[a+1]<<8))>>>n&3}function M(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=5?0:t[a+1]<<8))>>>n&7}function R(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=3?0:t[a+1]<<8))>>>n&31}function I(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=1?0:t[a+1]<<8))>>>n&127}function D(t,e,n){var a=7&e,r=e>>>3,i=(1<<n)-1,o=t[r]>>>a;return n<8-a?o&i:(o|=t[r+1]<<8-a,n<16-a?o&i:(o|=t[r+2]<<16-a,n<24-a?o&i:(o|=t[r+3]<<24-a)&i))}function F(t,e,n){var a=7&e,r=e>>>3;return a<=5?t[r]|=(7&n)<<a:(t[r]|=n<<a&255,t[r+1]=(7&n)>>8-a),e+3}function j(t,e,n){return n=(1&n)<<(7&e),t[e>>>3]|=n,e+1}function B(t,e,n){var a=e>>>3;return n<<=7&e,t[a]|=255&n,n>>>=8,t[a+1]=n,e+8}function z(t,e,n){var a=e>>>3;return n<<=7&e,t[a]|=255&n,n>>>=8,t[a+1]=255&n,t[a+2]=n>>>8,e+16}function U(t,e){var n=t.length,a=2*n>e?2*n:e+5,r=0;if(n>=e)return t;if(el){var i=rl(a);if(t.copy)t.copy(i);else for(;r<t.length;++r)i[r]=t[r];return i}if(T){var o=new Uint8Array(a);if(o.set)o.set(t);else for(;r<n;++r)o[r]=t[r];return o}return t.length=a,t}function H(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function V(t,e,n){var a=1,r=0,i=0,o=0,s=0,l=t.length,c=T?new Uint16Array(32):H(32);for(i=0;i<32;++i)c[i]=0;for(i=l;i<n;++i)t[i]=0;l=t.length;var u=T?new Uint16Array(l):H(l);for(i=0;i<l;++i)c[r=t[i]]++,a<r&&(a=r),u[i]=0;for(c[0]=0,i=1;i<=a;++i)c[i+16]=s=s+c[i-1]<<1;for(i=0;i<l;++i)0!=(s=t[i])&&(u[i]=c[s+16]++);var d=0;for(i=0;i<l;++i)if(0!=(d=t[i]))for(s=L(u[i],a)>>a-d,o=(1<<a+4-d)-1;o>=0;--o)e[s|o<<d]=15&d|i<<4;return a}var W=T?new Uint16Array(512):H(512),q=T?new Uint16Array(32):H(32);if(!T){for(var $=0;$<512;++$)W[$]=0;for($=0;$<32;++$)q[$]=0}!function(){for(var t=[],e=0;e<32;e++)t.push(5);V(t,q,32);var n=[];for(e=0;e<=143;e++)n.push(8);for(;e<=255;e++)n.push(9);for(;e<=279;e++)n.push(7);for(;e<=287;e++)n.push(8);V(n,W,288)}();var K=function(){for(var t=T?new Uint8Array(32768):[],e=0,n=0;e<A.length-1;++e)for(;n<A[e+1];++n)t[n]=e;for(;n<32768;++n)t[n]=29;var a=T?new Uint8Array(259):[];for(e=0,n=0;e<C.length-1;++e)for(;n<C[e+1];++n)a[n]=e;return function(e,n){return e.length<8?function(t,e){for(var n=0;n<t.length;){var a=Math.min(65535,t.length-n),r=n+a==t.length;for(e.write_shift(1,+r),e.write_shift(2,a),e.write_shift(2,65535&~a);a-- >0;)e[e.l++]=t[n++]}return e.l}(e,n):function(e,n){for(var r=0,i=0,o=T?new Uint16Array(32768):[];i<e.length;){var s=Math.min(65535,e.length-i);if(s<10){for(7&(r=F(n,r,+!(i+s!=e.length)))&&(r+=8-(7&r)),n.l=r/8|0,n.write_shift(2,s),n.write_shift(2,65535&~s);s-- >0;)n[n.l++]=e[i++];r=8*n.l}else{r=F(n,r,+!(i+s!=e.length)+2);for(var l=0;s-- >0;){var c=e[i],u=-1,d=0;if((u=o[l=32767&(l<<5^c)])&&((u|=-32768&i)>i&&(u-=32768),u<i))for(;e[u+d]==e[i+d]&&d<250;)++d;if(d>2){(c=a[d])<=22?r=B(n,r,P[c+1]>>1)-1:(B(n,r,3),B(n,r+=5,P[c-23]>>5),r+=3);var h=c<8?0:c-4>>2;h>0&&(z(n,r,d-C[c]),r+=h),c=t[i-u],r=B(n,r,P[c]>>3),r-=3;var f=c<4?0:c-2>>1;f>0&&(z(n,r,i-u-A[c]),r+=f);for(var p=0;p<d;++p)o[l]=32767&i,l=32767&(l<<5^e[i]),++i;s-=d-1}else c<=143?c+=48:r=j(n,r,1),r=B(n,r,P[c]),o[l]=32767&i,++i}r=B(n,r,0)-1}}return n.l=(r+7)/8|0,n.l}(e,n)}}();function G(t){var e=Fu(50+Math.floor(1.1*t.length)),n=K(t,e);return e.slice(0,n)}var Y=T?new Uint16Array(32768):H(32768),X=T?new Uint16Array(32768):H(32768),J=T?new Uint16Array(128):H(128),Z=1,Q=1;function tt(t,e){var n=R(t,e)+257,a=R(t,e+=5)+1,r=function(t,e){var n=7&e,a=e>>>3;return(t[a]|(n<=4?0:t[a+1]<<8))>>>n&15}(t,e+=5)+4;e+=4;for(var i=0,o=T?new Uint8Array(19):H(19),s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=T?new Uint8Array(8):H(8),u=T?new Uint8Array(8):H(8),d=o.length,h=0;h<r;++h)o[S[h]]=i=M(t,e),l<i&&(l=i),c[i]++,e+=3;var f=0;for(c[0]=0,h=1;h<=l;++h)u[h]=f=f+c[h-1]<<1;for(h=0;h<d;++h)0!=(f=o[h])&&(s[h]=u[f]++);var p=0;for(h=0;h<d;++h)if(0!=(p=o[h])){f=P[s[h]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)J[f|m<<p]=7&p|h<<3}var g=[];for(l=1;g.length<n+a;)switch(e+=7&(f=J[I(t,e)]),f>>>=3){case 16:for(i=3+O(t,e),e+=2,f=g[g.length-1];i-- >0;)g.push(f);break;case 17:for(i=3+M(t,e),e+=3;i-- >0;)g.push(0);break;case 18:for(i=11+I(t,e),e+=7;i-- >0;)g.push(0);break;default:g.push(f),l<f&&(l=f)}var v=g.slice(0,n),b=g.slice(n);for(h=n;h<286;++h)v[h]=0;for(h=a;h<30;++h)b[h]=0;return Z=V(v,Y,286),Q=V(b,X,30),e}function et(t,e){var n=function(t,e){if(3==t[0]&&!(3&t[1]))return[al(e),2];for(var n=0,a=0,r=rl(e||1<<18),i=0,o=r.length>>>0,s=0,l=0;!(1&a);)if(a=M(t,n),n+=3,a>>>1!=0)for(a>>1==1?(s=9,l=5):(n=tt(t,n),s=Z,l=Q);;){!e&&o<i+32767&&(o=(r=U(r,i+32767)).length);var c=D(t,n,s),u=a>>>1==1?W[c]:Y[c];if(n+=15&u,(u>>>=4)>>>8&255){if(256==u)break;var d=(u-=257)<8?0:u-4>>2;d>5&&(d=0);var h=i+C[u];d>0&&(h+=D(t,n,d),n+=d),c=D(t,n,l),n+=15&(u=a>>>1==1?q[c]:X[c]);var f=(u>>>=4)<4?0:u-2>>1,p=A[u];for(f>0&&(p+=D(t,n,f),n+=f),!e&&o<h&&(o=(r=U(r,h+100)).length);i<h;)r[i]=r[i-p],++i}else r[i++]=u}else{7&n&&(n+=8-(7&n));var m=t[n>>>3]|t[1+(n>>>3)]<<8;if(n+=32,m>0)for(!e&&o<i+m&&(o=(r=U(r,i+m)).length);m-- >0;)r[i++]=t[n>>>3],n+=8}return e?[r,n+7>>>3]:[r.slice(0,i),n+7>>>3]}(t.slice(t.l||0),e);return t.l+=n[1],n[0]}function nt(t,e){if(!t)throw new Error(e);"undefined"!=typeof console&&console.error(e)}function at(t,e){var n=t;Iu(n,0);var a={FileIndex:[],FullPaths:[]};h(a,{root:e.root});for(var r=n.length-4;(80!=n[r]||75!=n[r+1]||5!=n[r+2]||6!=n[r+3])&&r>=0;)--r;n.l=r+4,n.l+=4;var o=n.read_shift(2);n.l+=6;var s=n.read_shift(4);for(n.l=s,r=0;r<o;++r){n.l+=20;var l=n.read_shift(4),c=n.read_shift(4),u=n.read_shift(2),d=n.read_shift(2),f=n.read_shift(2);n.l+=8;var p=n.read_shift(4),m=i(n.slice(n.l+u,n.l+u+d));n.l+=u+d+f;var g=n.l;n.l=p+4,rt(n,l,c,a,m),n.l=g}return a}function rt(t,e,n,a,r){t.l+=2;var o=t.read_shift(2),s=t.read_shift(2),l=function(t){var e=65535&t.read_shift(2),n=65535&t.read_shift(2),a=new Date,r=31&n,i=15&(n>>>=5);n>>>=4,a.setMilliseconds(0),a.setFullYear(n+1980),a.setMonth(i-1),a.setDate(r);var o=31&e,s=63&(e>>>=5);return e>>>=6,a.setHours(e),a.setMinutes(s),a.setSeconds(o<<1),a}(t);if(8257&o)throw new Error("Unsupported ZIP encryption");t.read_shift(4);for(var c=t.read_shift(4),u=t.read_shift(4),d=t.read_shift(2),h=t.read_shift(2),f="",p=0;p<d;++p)f+=String.fromCharCode(t[t.l++]);if(h){var g=i(t.slice(t.l,t.l+h));(g[21589]||{}).mt&&(l=g[21589].mt),((r||{})[21589]||{}).mt&&(l=r[21589].mt)}t.l+=h;var v=t.slice(t.l,t.l+c);switch(s){case 8:v=function(t,e){if(!m)return et(t,e);var n=new(0,m.InflateRaw),a=n._processChunk(t.slice(t.l),n._finishFlushFlag);return t.l+=n.bytesRead,a}(t,u);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+s)}var b=!1;8&o&&(134695760==t.read_shift(4)&&(t.read_shift(4),b=!0),c=t.read_shift(4),u=t.read_shift(4)),c!=e&&nt(b,"Bad compressed size: "+e+" != "+c),u!=n&&nt(b,"Bad uncompressed size: "+n+" != "+u),ut(a,f,v,{unsafe:!0,mt:l})}var it={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ot(t,e){if(t.ctype)return t.ctype;var n=t.name||"",a=n.match(/\.([^\.]+)$/);return a&&it[a[1]]||e&&(a=(n=e).match(/[\.\\]([^\.\\])+$/))&&it[a[1]]?it[a[1]]:"application/octet-stream"}function st(t){for(var e=Qs(t),n=[],a=0;a<e.length;a+=76)n.push(e.slice(a,a+76));return n.join("\r\n")+"\r\n"}function lt(t){var e=t.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"="+(1==e.length?"0"+e:e)}));"\n"==(e=e.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(e="=0D"+e.slice(1));for(var n=[],a=(e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),r=0;r<a.length;++r){var i=a[r];if(0!=i.length)for(var o=0;o<i.length;){var s=76,l=i.slice(o,o+s);"="==l.charAt(s-1)?s--:"="==l.charAt(s-2)?s-=2:"="==l.charAt(s-3)&&(s-=3),l=i.slice(o,o+s),(o+=s)<i.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function ct(t,e,n){for(var a,r="",i="",o="",s=0;s<10;++s){var l=e[s];if(!l||l.match(/^\s*$/))break;var c=l.match(/^(.*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":r=c[2].trim();break;case"content-type":o=c[2].trim();break;case"content-transfer-encoding":i=c[2].trim()}}switch(++s,i.toLowerCase()){case"base64":a=il(tl(e.slice(s).join("")));break;case"quoted-printable":a=function(t){for(var e=[],n=0;n<t.length;++n){for(var a=t[n];n<=t.length&&"="==a.charAt(a.length-1);)a=a.slice(0,a.length-1)+t[++n];e.push(a)}for(var r=0;r<e.length;++r)e[r]=e[r].replace(/[=][0-9A-Fa-f]{2}/g,(function(t){return String.fromCharCode(parseInt(t.slice(1),16))}));return il(e.join("\r\n"))}(e.slice(s));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+i)}var u=ut(t,r.slice(n.length),a,{unsafe:!0});o&&(u.ctype=o)}function ut(t,e,n,r){var i=r&&r.unsafe;i||h(t);var o=!i&&rc.find(t,e);if(!o){var s=t.FullPaths[0];e.slice(0,s.length)==s?s=e:("/"!=s.slice(-1)&&(s+="/"),s=(s+e).replace("//","/")),o={name:a(e),type:2},t.FileIndex.push(o),t.FullPaths.push(s),i||rc.utils.cfb_gc(t)}return o.content=n,o.size=n?n.length:0,r&&(r.CLSID&&(o.clsid=r.CLSID),r.mt&&(o.mt=r.mt),r.ct&&(o.ct=r.ct)),o}return e.find=function(t,e){var n=t.FullPaths.map((function(t){return t.toUpperCase()})),a=n.map((function(t){var e=t.split("/");return e[e.length-("/"==t.slice(-1)?2:1)]})),r=!1;47===e.charCodeAt(0)?(r=!0,e=n[0].slice(0,-1)+e):r=-1!==e.indexOf("/");var i=e.toUpperCase(),o=!0===r?n.indexOf(i):a.indexOf(i);if(-1!==o)return t.FileIndex[o];var s=!i.match(ul);for(i=i.replace(cl,""),s&&(i=i.replace(ul,"!")),o=0;o<n.length;++o){if((s?n[o].replace(ul,"!"):n[o]).replace(cl,"")==i)return t.FileIndex[o];if((s?a[o].replace(ul,"!"):a[o]).replace(cl,"")==i)return t.FileIndex[o]}return null},e.read=function(e,n){var a=n&&n.type;switch(a||el&&Fs.isBuffer(e)&&(a="buffer"),a||"base64"){case"file":return function(e,n){return o(),s(t.readFileSync(e),n)}(e,n);case"base64":return s(il(tl(e)),n);case"binary":return s(il(e),n)}return s(e,n)},e.parse=s,e.write=function(e,n){var a=p(e,n);switch(n&&n.type||"buffer"){case"file":return o(),t.writeFileSync(n.filename,a),a;case"binary":return"string"==typeof a?a:x(a);case"base64":return Qs("string"==typeof a?a:x(a));case"buffer":if(el)return Fs.isBuffer(a)?a:nl(a);case"array":return"string"==typeof a?il(a):a}return a},e.writeFile=function(e,n,a){o();var r=p(e,a);t.writeFileSync(n,r)},e.utils={cfb_new:function(t){var e={};return h(e,t),e},cfb_add:ut,cfb_del:function(t,e){h(t);var n=rc.find(t,e);if(n)for(var a=0;a<t.FileIndex.length;++a)if(t.FileIndex[a]==n)return t.FileIndex.splice(a,1),t.FullPaths.splice(a,1),!0;return!1},cfb_mov:function(t,e,n){h(t);var r=rc.find(t,e);if(r)for(var i=0;i<t.FileIndex.length;++i)if(t.FileIndex[i]==r)return t.FileIndex[i].name=a(n),t.FullPaths[i]=n,!0;return!1},cfb_gc:function(t){f(t,!0)},ReadShift:Pu,CheckField:Ru,prep_blob:Iu,bconcat:ll,use_zlib:function(t){try{var e=new(0,t.InflateRaw);if(e._processChunk(new Uint8Array([3,0]),e._finishFlushFlag),!e.bytesRead)throw new Error("zlib does not expose bytesRead");m=t}catch(t){console.error("cannot use native zlib: "+(t.message||t))}},_deflateRaw:G,_inflateRaw:et,consts:w},e}();let ic;function oc(t){return"string"==typeof t?ol(t):Array.isArray(t)?function(t){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function sc(t,e,n){if(void 0!==ic&&ic.writeFileSync)return n?ic.writeFileSync(t,e,n):ic.writeFileSync(t,e);if("undefined"!=typeof Deno){if(n&&"string"==typeof e)switch(n){case"utf8":e=new TextEncoder(n).encode(e);break;case"binary":e=ol(e);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(t,e)}var a="utf8"==n?qc(e):e;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(a,t);if("undefined"!=typeof Blob){var r=new Blob([oc(a)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(r,t);if("undefined"!=typeof saveAs)return saveAs(r,t);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(r);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),chrome.downloads.download({url:i,filename:t,saveAs:!0});var o=document.createElement("a");if(null!=o.download)return o.download=t,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(i)}),6e4),i}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var s=File(t);return s.open("w"),s.encoding="binary",Array.isArray(e)&&(e=sl(e)),s.write(e),s.close(),e}catch(t){if(!t.message||!t.message.match(/onstruct/))throw t}throw new Error("cannot save file "+t)}function lc(t){for(var e=Object.keys(t),n=[],a=0;a<e.length;++a)Object.prototype.hasOwnProperty.call(t,e[a])&&n.push(e[a]);return n}function cc(t,e){for(var n=[],a=lc(t),r=0;r!==a.length;++r)null==n[t[a[r]][e]]&&(n[t[a[r]][e]]=a[r]);return n}function uc(t){for(var e=[],n=lc(t),a=0;a!==n.length;++a)e[t[n[a]]]=n[a];return e}function dc(t){for(var e=[],n=lc(t),a=0;a!==n.length;++a)e[t[n[a]]]=parseInt(n[a],10);return e}var hc=new Date(1899,11,30,0,0,0);function fc(t,e){var n=t.getTime();return e&&(n-=1263168e5),(n-(hc.getTime()+6e4*(t.getTimezoneOffset()-hc.getTimezoneOffset())))/864e5}var pc=new Date,mc=hc.getTime()+6e4*(pc.getTimezoneOffset()-hc.getTimezoneOffset()),gc=pc.getTimezoneOffset();function vc(t){var e=new Date;return e.setTime(24*t*60*60*1e3+mc),e.getTimezoneOffset()!==gc&&e.setTime(e.getTime()+6e4*(e.getTimezoneOffset()-gc)),e}var bc=new Date("2017-02-19T19:06:09.000Z"),_c=isNaN(bc.getFullYear())?new Date("2/19/17"):bc,yc=2017==_c.getFullYear();function wc(t,e){var n=new Date(t);if(yc)return e>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):e<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(t instanceof Date)return t;if(1917==_c.getFullYear()&&!isNaN(n.getFullYear())){var a=n.getFullYear();return t.indexOf(""+a)>-1||n.setFullYear(n.getFullYear()+100),n}var r=t.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+r[0],+r[1]-1,+r[2],+r[3]||0,+r[4]||0,+r[5]||0);return t.indexOf("Z")>-1&&(i=new Date(i.getTime()-60*i.getTimezoneOffset()*1e3)),i}function xc(t,e){if(el&&Fs.isBuffer(t)){if(e){if(255==t[0]&&254==t[1])return qc(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return qc(Ks(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(e){if(255==t[0]&&254==t[1])return qc(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return qc(new TextDecoder("utf-16be").decode(t.slice(2)))}var n={"€":"","‚":"",ƒ:"","„":"","…":"
","†":"","‡":"",ˆ:"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(t){return n[t]||t}))}catch(t){}for(var a=[],r=0;r!=t.length;++r)a.push(String.fromCharCode(t[r]));return a.join("")}function kc(t){if("undefined"!=typeof JSON&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=kc(t[n]));return e}function Sc(t,e){for(var n="";n.length<e;)n+=t;return n}function Cc(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var n=1,a=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return n*=100,""}));return isNaN(e=Number(a))?(a=a.replace(/[(](.*)[)]/,(function(t,e){return n=-n,e})),isNaN(e=Number(a))?e:e/n):e/n}var Ac=["january","february","march","april","may","june","july","august","september","october","november","december"];function Ec(t){var e=new Date(t),n=new Date(NaN),a=e.getYear(),r=e.getMonth(),i=e.getDate();if(isNaN(i))return n;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==Ac.indexOf(o))return n}else if(o.match(/[a-z]/))return n;return a<0||a>8099?n:(r>0||i>1)&&101!=a?e:t.match(/[^-0-9:,\/\\]/)?n:e}function Tc(t,e,n){if(t.FullPaths){var a;if("string"==typeof n)return a=el?nl(n):function(t){for(var e=[],n=0,a=t.length+250,r=al(t.length+255),i=0;i<t.length;++i){var o=t.charCodeAt(i);if(o<128)r[n++]=o;else if(o<2048)r[n++]=192|o>>6&31,r[n++]=128|63&o;else if(o>=55296&&o<57344){o=64+(1023&o);var s=1023&t.charCodeAt(++i);r[n++]=240|o>>8&7,r[n++]=128|o>>2&63,r[n++]=128|s>>6&15|(3&o)<<4,r[n++]=128|63&s}else r[n++]=224|o>>12&15,r[n++]=128|o>>6&63,r[n++]=128|63&o;n>a&&(e.push(r.slice(0,n)),n=0,r=al(65535),a=65530)}return e.push(r.slice(0,n)),ll(e)}(n),rc.utils.cfb_add(t,e,a);rc.utils.cfb_add(t,e,n)}else t.file(e,n)}function Pc(){return rc.utils.cfb_new()}var Nc='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var Lc={""":'"',"'":"'",">":">","<":"<","&":"&"},Oc=uc(Lc),Mc=/[&<>'"]/g,Rc=/[\u0000-\u0008\u000b-\u001f]/g;function Ic(t){return(t+"").replace(Mc,(function(t){return Oc[t]})).replace(Rc,(function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Dc(t){return Ic(t).replace(/ /g,"_x0020_")}var Fc=/[\u0000-\u001f]/g;function jc(t){return(t+"").replace(Mc,(function(t){return Oc[t]})).replace(/\n/g,"<br/>").replace(Fc,(function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"}))}function Bc(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function zc(t){for(var e="",n=0,a=0,r=0,i=0,o=0,s=0;n<t.length;)(a=t.charCodeAt(n++))<128?e+=String.fromCharCode(a):(r=t.charCodeAt(n++),a>191&&a<224?(o=(31&a)<<6,o|=63&r,e+=String.fromCharCode(o)):(i=t.charCodeAt(n++),a<240?e+=String.fromCharCode((15&a)<<12|(63&r)<<6|63&i):(s=((7&a)<<18|(63&r)<<12|(63&i)<<6|63&(o=t.charCodeAt(n++)))-65536,e+=String.fromCharCode(55296+(s>>>10&1023)),e+=String.fromCharCode(56320+(1023&s)))));return e}function Uc(t){var e,n,a,r=al(2*t.length),i=1,o=0,s=0;for(n=0;n<t.length;n+=i)i=1,(a=t.charCodeAt(n))<128?e=a:a<224?(e=64*(31&a)+(63&t.charCodeAt(n+1)),i=2):a<240?(e=4096*(15&a)+64*(63&t.charCodeAt(n+1))+(63&t.charCodeAt(n+2)),i=3):(i=4,e=262144*(7&a)+4096*(63&t.charCodeAt(n+1))+64*(63&t.charCodeAt(n+2))+(63&t.charCodeAt(n+3)),s=55296+((e-=65536)>>>10&1023),e=56320+(1023&e)),0!==s&&(r[o++]=255&s,r[o++]=s>>>8,s=0),r[o++]=e%256,r[o++]=e>>>8;return r.slice(0,o).toString("ucs2")}function Hc(t){return nl(t,"binary").toString("utf8")}var Vc="foo bar bazâð£",Wc=el&&(Hc(Vc)==zc(Vc)&&Hc||Uc(Vc)==zc(Vc)&&Uc)||zc,qc=el?function(t){return nl(t,"utf8").toString("binary")}:function(t){for(var e=[],n=0,a=0,r=0;n<t.length;)switch(a=t.charCodeAt(n++),!0){case a<128:e.push(String.fromCharCode(a));break;case a<2048:e.push(String.fromCharCode(192+(a>>6))),e.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,r=t.charCodeAt(n++)-56320+(a<<10),e.push(String.fromCharCode(240+(r>>18&7))),e.push(String.fromCharCode(144+(r>>12&63))),e.push(String.fromCharCode(128+(r>>6&63))),e.push(String.fromCharCode(128+(63&r)));break;default:e.push(String.fromCharCode(224+(a>>12))),e.push(String.fromCharCode(128+(a>>6&63))),e.push(String.fromCharCode(128+(63&a)))}return e.join("")},$c=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]}));return function(e){for(var n=e.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),a=0;a<t.length;++a)n=n.replace(t[a][0],t[a][1]);return n}}();var Kc=/(^\s|\s$|\n)/;function Gc(t,e){return"<"+t+(e.match(Kc)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function Yc(t){return lc(t).map((function(e){return" "+e+'="'+t[e]+'"'})).join("")}function Xc(t,e,n){return"<"+t+(null!=n?Yc(n):"")+(null!=e?(e.match(Kc)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function Jc(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(t){if(e)throw t}return""}var Zc={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Qc=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],tu={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};var eu=function(t){for(var e=[],n=0;n<t[0].length;++n)if(t[0][n])for(var a=0,r=t[0][n].length;a<r;a+=10240)e.push.apply(e,t[0][n].slice(a,a+10240));return e},nu=el?function(t){return t[0].length>0&&Fs.isBuffer(t[0][0])?Fs.concat(t[0].map((function(t){return Fs.isBuffer(t)?t:nl(t)}))):eu(t)}:eu,au=function(t,e,n){for(var a=[],r=e;r<n;r+=2)a.push(String.fromCharCode(Su(t,r)));return a.join("").replace(cl,"")},ru=el?function(t,e,n){return Fs.isBuffer(t)?t.toString("utf16le",e,n).replace(cl,""):au(t,e,n)}:au,iu=function(t,e,n){for(var a=[],r=e;r<e+n;++r)a.push(("0"+t[r].toString(16)).slice(-2));return a.join("")},ou=el?function(t,e,n){return Fs.isBuffer(t)?t.toString("hex",e,e+n):iu(t,e,n)}:iu,su=function(t,e,n){for(var a=[],r=e;r<n;r++)a.push(String.fromCharCode(ku(t,r)));return a.join("")},lu=el?function(t,e,n){return Fs.isBuffer(t)?t.toString("utf8",e,n):su(t,e,n)}:su,cu=function(t,e){var n=Au(t,e);return n>0?lu(t,e+4,e+4+n-1):""},uu=cu,du=function(t,e){var n=Au(t,e);return n>0?lu(t,e+4,e+4+n-1):""},hu=du,fu=function(t,e){var n=2*Au(t,e);return n>0?lu(t,e+4,e+4+n-1):""},pu=fu,mu=function(t,e){var n=Au(t,e);return n>0?ru(t,e+4,e+4+n):""},gu=mu,vu=function(t,e){var n=Au(t,e);return n>0?lu(t,e+4,e+4+n):""},bu=vu,_u=function(t,e){return function(t,e){for(var n=1-2*(t[e+7]>>>7),a=((127&t[e+7])<<4)+(t[e+6]>>>4&15),r=15&t[e+6],i=5;i>=0;--i)r=256*r+t[e+i];return 2047==a?0==r?n*(1/0):NaN:(0==a?a=-1022:(a-=1023,r+=Math.pow(2,52)),n*Math.pow(2,a-52)*r)}(t,e)},yu=_u,wu=function(t){return Array.isArray(t)||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array};function xu(){ru=function(t,e,n){return Gs.utils.decode(1200,t.slice(e,n)).replace(cl,"")},lu=function(t,e,n){return Gs.utils.decode(65001,t.slice(e,n))},uu=function(t,e){var n=Au(t,e);return n>0?Gs.utils.decode(Us,t.slice(e+4,e+4+n-1)):""},hu=function(t,e){var n=Au(t,e);return n>0?Gs.utils.decode(zs,t.slice(e+4,e+4+n-1)):""},pu=function(t,e){var n=2*Au(t,e);return n>0?Gs.utils.decode(1200,t.slice(e+4,e+4+n-1)):""},gu=function(t,e){var n=Au(t,e);return n>0?Gs.utils.decode(1200,t.slice(e+4,e+4+n)):""},bu=function(t,e){var n=Au(t,e);return n>0?Gs.utils.decode(65001,t.slice(e+4,e+4+n)):""}}el&&(uu=function(t,e){if(!Fs.isBuffer(t))return cu(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},hu=function(t,e){if(!Fs.isBuffer(t))return du(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},pu=function(t,e){if(!Fs.isBuffer(t))return fu(t,e);var n=2*t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n-1)},gu=function(t,e){if(!Fs.isBuffer(t))return mu(t,e);var n=t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n)},bu=function(t,e){if(!Fs.isBuffer(t))return vu(t,e);var n=t.readUInt32LE(e);return t.toString("utf8",e+4,e+4+n)},yu=function(t,e){return Fs.isBuffer(t)?t.readDoubleLE(e):_u(t,e)},wu=function(t){return Fs.isBuffer(t)||Array.isArray(t)||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array}),void 0!==Gs&&xu();var ku=function(t,e){return t[e]},Su=function(t,e){return 256*t[e+1]+t[e]},Cu=function(t,e){var n=256*t[e+1]+t[e];return n<32768?n:-1*(65535-n+1)},Au=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},Eu=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},Tu=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function Pu(t,e){var n,a,r,i,o,s,l="",c=[];switch(e){case"dbcs":if(s=this.l,el&&Fs.isBuffer(this))l=this.slice(this.l,this.l+2*t).toString("utf16le");else for(o=0;o<t;++o)l+=String.fromCharCode(Su(this,s)),s+=2;t*=2;break;case"utf8":l=lu(this,this.l,this.l+t);break;case"utf16le":t*=2,l=ru(this,this.l,this.l+t);break;case"wstr":if(void 0===Gs)return Pu.call(this,t,"dbcs");l=Gs.utils.decode(zs,this.slice(this.l,this.l+2*t)),t*=2;break;case"lpstr-ansi":l=uu(this,this.l),t=4+Au(this,this.l);break;case"lpstr-cp":l=hu(this,this.l),t=4+Au(this,this.l);break;case"lpwstr":l=pu(this,this.l),t=4+2*Au(this,this.l);break;case"lpp4":t=4+Au(this,this.l),l=gu(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+Au(this,this.l),l=bu(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,l="";0!==(r=ku(this,this.l+t++));)c.push(Ys(r));l=c.join("");break;case"_wstr":for(t=0,l="";0!==(r=Su(this,this.l+t));)c.push(Ys(r)),t+=2;t+=2,l=c.join("");break;case"dbcs-cont":for(l="",s=this.l,o=0;o<t;++o){if(this.lens&&-1!==this.lens.indexOf(s))return r=ku(this,s),this.l=s+1,i=Pu.call(this,t-o,r?"dbcs-cont":"sbcs-cont"),c.join("")+i;c.push(Ys(Su(this,s))),s+=2}l=c.join(""),t*=2;break;case"cpstr":if(void 0!==Gs){l=Gs.utils.decode(zs,this.slice(this.l,this.l+t));break}case"sbcs-cont":for(l="",s=this.l,o=0;o!=t;++o){if(this.lens&&-1!==this.lens.indexOf(s))return r=ku(this,s),this.l=s+1,i=Pu.call(this,t-o,r?"dbcs-cont":"sbcs-cont"),c.join("")+i;c.push(Ys(ku(this,s))),s+=1}l=c.join("");break;default:switch(t){case 1:return n=ku(this,this.l),this.l++,n;case 2:return n=("i"===e?Cu:Su)(this,this.l),this.l+=2,n;case 4:case-4:return"i"!==e&&128&this[this.l+3]?(a=Au(this,this.l),this.l+=4,a):(n=(t>0?Eu:Tu)(this,this.l),this.l+=4,n);case 8:case-8:if("f"===e)return a=8==t?yu(this,this.l):yu([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;t=8;case 16:l=ou(this,this.l,t)}}return this.l+=t,l}var Nu=function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24&255},Lu=function(t,e,n){t[n]=255&e,t[n+1]=e>>8&255,t[n+2]=e>>16&255,t[n+3]=e>>24&255},Ou=function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255};function Mu(t,e,n){var a=0,r=0;if("dbcs"===n){for(r=0;r!=e.length;++r)Ou(this,e.charCodeAt(r),this.l+2*r);a=2*e.length}else if("sbcs"===n){if(void 0!==Gs&&874==Us)for(r=0;r!=e.length;++r){var i=Gs.utils.encode(Us,e.charAt(r));this[this.l+r]=i[0]}else for(e=e.replace(/[^\x00-\x7F]/g,"_"),r=0;r!=e.length;++r)this[this.l+r]=255&e.charCodeAt(r);a=e.length}else{if("hex"===n){for(;r<t;++r)this[this.l++]=parseInt(e.slice(2*r,2*r+2),16)||0;return this}if("utf16le"===n){var o=Math.min(this.l+t,this.length);for(r=0;r<Math.min(e.length,t);++r){var s=e.charCodeAt(r);this[this.l++]=255&s,this[this.l++]=s>>8}for(;this.l<o;)this[this.l++]=0;return this}switch(t){case 1:a=1,this[this.l]=255&e;break;case 2:a=2,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e;break;case 3:a=3,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e,e>>>=8,this[this.l+2]=255&e;break;case 4:a=4,Nu(this,e,this.l);break;case 8:if(a=8,"f"===n){!function(t,e,n){var a=(e<0||1/e==-1/0?1:0)<<7,r=0,i=0,o=a?-e:e;isFinite(o)?0==o?r=i=0:(r=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-r),r<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?r=-1022:(i-=Math.pow(2,52),r+=1023)):(r=2047,i=isNaN(e)?26985:0);for(var s=0;s<=5;++s,i/=256)t[n+s]=255&i;t[n+6]=(15&r)<<4|15&i,t[n+7]=r>>4|a}(this,e,this.l);break}case 16:break;case-4:a=4,Lu(this,e,this.l)}}return this.l+=a,this}function Ru(t,e){var n=ou(this,this.l,t.length>>1);if(n!==t)throw new Error(e+"Expected "+t+" saw "+n);this.l+=t.length>>1}function Iu(t,e){t.l=e,t.read_shift=Pu,t.chk=Ru,t.write_shift=Mu}function Du(t,e){t.l+=e}function Fu(t){var e=al(t);return Iu(e,0),e}function ju(){var t=[],e=el?256:2048,n=function(t){var e=Fu(t);return Iu(e,0),e},a=n(e),r=function(){a&&(a.length>a.l&&((a=a.slice(0,a.l)).l=a.length),a.length>0&&t.push(a),a=null)},i=function(t){return a&&t<a.length-a.l?a:(r(),a=n(Math.max(t+1,e)))};return{next:i,push:function(t){r(),null==(a=t).l&&(a.l=a.length),i(e)},end:function(){return r(),ll(t)},_bufs:t}}function Bu(t,e,n,a){var r,i=+e;if(!isNaN(i)){a||(a=tm[i].p||(n||[]).length||0),r=1+(i>=128?1:0)+1,a>=128&&++r,a>=16384&&++r,a>=2097152&&++r;var o=t.next(r);i<=127?o.write_shift(1,i):(o.write_shift(1,128+(127&i)),o.write_shift(1,i>>7));for(var s=0;4!=s;++s){if(!(a>=128)){o.write_shift(1,a);break}o.write_shift(1,128+(127&a)),a>>=7}a>0&&wu(n)&&t.push(n)}}function zu(t,e,n){var a=kc(t);if(e.s?(a.cRel&&(a.c+=e.s.c),a.rRel&&(a.r+=e.s.r)):(a.cRel&&(a.c+=e.c),a.rRel&&(a.r+=e.r)),!n||n.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function Uu(t,e,n){var a=kc(t);return a.s=zu(a.s,e.s,n),a.e=zu(a.e,e.s,n),a}function Hu(t,e){if(t.cRel&&t.c<0)for(t=kc(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=kc(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var n=Yu(t);return t.cRel||null==t.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),t.rRel||null==t.rRel||(n=function(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(n)),n}function Vu(t,e){return 0!=t.s.r||t.s.rRel||t.e.r!=(e.biff>=12?1048575:e.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(e.biff>=12?16383:255)||t.e.cRel?Hu(t.s,e.biff)+":"+Hu(t.e,e.biff):(t.s.rRel?"":"$")+qu(t.s.r)+":"+(t.e.rRel?"":"$")+qu(t.e.r):(t.s.cRel?"":"$")+Ku(t.s.c)+":"+(t.e.cRel?"":"$")+Ku(t.e.c)}function Wu(t){return parseInt(t.replace(/\$(\d+)$/,"$1"),10)-1}function qu(t){return""+(t+1)}function $u(t){for(var e=t.replace(/^\$([A-Z])/,"$1"),n=0,a=0;a!==e.length;++a)n=26*n+e.charCodeAt(a)-64;return n-1}function Ku(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function Gu(t){for(var e=0,n=0,a=0;a<t.length;++a){var r=t.charCodeAt(a);r>=48&&r<=57?e=10*e+(r-48):r>=65&&r<=90&&(n=26*n+(r-64))}return{c:n-1,r:e-1}}function Yu(t){for(var e=t.c+1,n="";e;e=(e-1)/26|0)n=String.fromCharCode((e-1)%26+65)+n;return n+(t.r+1)}function Xu(t){var e=t.indexOf(":");return-1==e?{s:Gu(t),e:Gu(t)}:{s:Gu(t.slice(0,e)),e:Gu(t.slice(e+1))}}function Ju(t,e){return void 0===e||"number"==typeof e?Ju(t.s,t.e):("string"!=typeof t&&(t=Yu(t)),"string"!=typeof e&&(e=Yu(e)),t==e?t:t+":"+e)}function Zu(t){var e={s:{c:0,r:0},e:{c:0,r:0}},n=0,a=0,r=0,i=t.length;for(n=0;a<i&&!((r=t.charCodeAt(a)-64)<1||r>26);++a)n=26*n+r;for(e.s.c=--n,n=0;a<i&&!((r=t.charCodeAt(a)-48)<0||r>9);++a)n=10*n+r;if(e.s.r=--n,a===i||10!=r)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++a,n=0;a!=i&&!((r=t.charCodeAt(a)-64)<1||r>26);++a)n=26*n+r;for(e.e.c=--n,n=0;a!=i&&!((r=t.charCodeAt(a)-48)<0||r>9);++a)n=10*n+r;return e.e.r=--n,e}function Qu(t,e){var n="d"==t.t&&e instanceof Date;if(null!=t.z)try{return t.w=Zl(t.z,n?fc(e):e)}catch(t){}try{return t.w=Zl((t.XF||{}).numFmtId||(n?14:0),n?fc(e):e)}catch(t){return""+e}}function td(t,e,n){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&n&&n.dateNF&&(t.z=n.dateNF),"e"==t.t?Fd[t.v]||t.v:Qu(t,null==e?t.v:e))}function ed(t,e){var n=e&&e.sheet?e.sheet:"Sheet1",a={};return a[n]=t,{SheetNames:[n],Sheets:a}}function nd(t,e,n){var a=n||{},r=t?Array.isArray(t):a.dense;null!=Js&&null==r&&(r=Js);var i=t||(r?[]:{}),o=0,s=0;if(i&&null!=a.origin){if("number"==typeof a.origin)o=a.origin;else{var l="string"==typeof a.origin?Gu(a.origin):a.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=Zu(i["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==o&&(c.e.r=o=u.e.r+1)}for(var d=0;d!=e.length;++d)if(e[d]){if(!Array.isArray(e[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=e[d].length;++h)if(void 0!==e[d][h]){var f={v:e[d][h]},p=o+d,m=s+h;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r<p&&(c.e.r=p),c.e.c<m&&(c.e.c=m),!e[d][h]||"object"!=typeof e[d][h]||Array.isArray(e[d][h])||e[d][h]instanceof Date)if(Array.isArray(f.v)&&(f.f=e[d][h][1],f.v=f.v[0]),null===f.v)if(f.f)f.t="n";else if(a.nullError)f.t="e",f.v=0;else{if(!a.sheetStubs)continue;f.t="z"}else"number"==typeof f.v?f.t="n":"boolean"==typeof f.v?f.t="b":f.v instanceof Date?(f.z=a.dateNF||yl[14],a.cellDates?(f.t="d",f.w=Zl(f.z,fc(f.v))):(f.t="n",f.v=fc(f.v),f.w=Zl(f.z,f.v))):f.t="s";else f=e[d][h];if(r)i[p]||(i[p]=[]),i[p][m]&&i[p][m].z&&(f.z=i[p][m].z),i[p][m]=f;else{var g=Yu({c:m,r:p});i[g]&&i[g].z&&(f.z=i[g].z),i[g]=f}}}return c.s.c<1e7&&(i["!ref"]=Ju(c)),i}function ad(t,e){return nd(null,t,e)}function rd(t,e){return e||(e=Fu(4)),e.write_shift(4,t),e}function id(t){var e=t.read_shift(4);return 0===e?"":t.read_shift(e,"dbcs")}function od(t,e){var n=!1;return null==e&&(n=!0,e=Fu(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}function sd(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function ld(t,e){var n=t.l,a=t.read_shift(1),r=id(t),i=[],o={t:r,h:r};if(1&a){for(var s=t.read_shift(4),l=0;l!=s;++l)i.push(sd(t));o.r=i}else o.r=[{ich:0,ifnt:0}];return t.l=n+e,o}var cd=ld;function ud(t,e){var n=!1;return null==e&&(n=!0,e=Fu(23+4*t.t.length)),e.write_shift(1,1),od(t.t,e),e.write_shift(4,1),function(t,e){e||(e=Fu(4)),e.write_shift(2,t.ich||0),e.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},e),n?e.slice(0,e.l):e}function dd(t){var e=t.read_shift(4),n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:n}}function hd(t,e){return null==e&&(e=Fu(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function fd(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function pd(t,e){return null==e&&(e=Fu(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var md=id,gd=od;function vd(t){var e=t.read_shift(4);return 0===e||4294967295===e?"":t.read_shift(e,"dbcs")}function bd(t,e){var n=!1;return null==e&&(n=!0,e=Fu(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}var _d=id,yd=vd,wd=bd;function xd(t){var e=t.slice(t.l,t.l+4),n=1&e[0],a=2&e[0];t.l+=4;var r=0===a?yu([0,0,0,0,252&e[0],e[1],e[2],e[3]],0):Eu(e,0)>>2;return n?r/100:r}function kd(t,e){null==e&&(e=Fu(4));var n=0,a=0,r=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?a=1:r==(0|r)&&r>=-(1<<29)&&r<1<<29&&(a=1,n=1),!a)throw new Error("unsupported RkNumber "+t);e.write_shift(-4,((n?r:t)<<2)+(n+2))}function Sd(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}var Cd=Sd,Ad=function(t,e){return e||(e=Fu(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e};function Ed(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Td(t,e){return(e||Fu(8)).write_shift(8,t,"f")}function Pd(t,e){if(e||(e=Fu(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;null!=t.index?(e.write_shift(1,2),e.write_shift(1,t.index)):null!=t.theme?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var n=t.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),e.write_shift(2,n),t.rgb&&null==t.theme){var a=t.rgb||"FFFFFF";"number"==typeof a&&(a=("000000"+a.toString(16)).slice(-6)),e.write_shift(1,parseInt(a.slice(0,2),16)),e.write_shift(1,parseInt(a.slice(2,4),16)),e.write_shift(1,parseInt(a.slice(4,6),16)),e.write_shift(1,255)}else e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);return e}var Nd=2,Ld=3,Od=80,Md={1:{n:"CodePage",t:Nd},2:{n:"Category",t:Od},3:{n:"PresentationFormat",t:Od},4:{n:"ByteCount",t:Ld},5:{n:"LineCount",t:Ld},6:{n:"ParagraphCount",t:Ld},7:{n:"SlideCount",t:Ld},8:{n:"NoteCount",t:Ld},9:{n:"HiddenCount",t:Ld},10:{n:"MultimediaClipCount",t:Ld},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Od},15:{n:"Company",t:Od},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:Ld},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:Ld,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Od},27:{n:"ContentStatus",t:Od},28:{n:"Language",t:Od},29:{n:"Version",t:Od},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Rd={1:{n:"CodePage",t:Nd},2:{n:"Title",t:Od},3:{n:"Subject",t:Od},4:{n:"Author",t:Od},5:{n:"Keywords",t:Od},6:{n:"Comments",t:Od},7:{n:"Template",t:Od},8:{n:"LastAuthor",t:Od},9:{n:"RevNumber",t:Od},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:Ld},15:{n:"WordCount",t:Ld},16:{n:"CharCount",t:Ld},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Od},19:{n:"DocSecurity",t:Ld},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function Id(t){return t.map((function(t){return[t>>16&255,t>>8&255,255&t]}))}var Dd=kc(Id([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Fd={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},jd={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Bd={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function zd(t,e){var n,a=function(t){for(var e=[],n=lc(t),a=0;a!==n.length;++a)null==e[t[n[a]]]&&(e[t[n[a]]]=[]),e[t[n[a]]].push(n[a]);return e}(jd),r=[];r[r.length]=Nc,r[r.length]=Xc("Types",null,{xmlns:Zc.CT,"xmlns:xsd":Zc.xsd,"xmlns:xsi":Zc.xsi}),r=r.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(t){return Xc("Default",null,{Extension:t[0],ContentType:t[1]})})));var i=function(a){t[a]&&t[a].length>0&&(n=t[a][0],r[r.length]=Xc("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Bd[a][e.bookType]||Bd[a].xlsx}))},o=function(n){(t[n]||[]).forEach((function(t){r[r.length]=Xc("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:Bd[n][e.bookType]||Bd[n].xlsx})}))},s=function(e){(t[e]||[]).forEach((function(t){r[r.length]=Xc("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:a[e][0]})}))};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),r.length>2&&(r[r.length]="</Types>",r[1]=r[1].replace("/>",">")),r.join("")}var Ud={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Hd(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function Vd(t){var e=[Nc,Xc("Relationships",null,{xmlns:Zc.RELS})];return lc(t["!id"]).forEach((function(n){e[e.length]=Xc("Relationship",null,t["!id"][n])})),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function Wd(t,e,n,a,r,i){if(r||(r={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,r.Id="rId"+e,r.Type=a,r.Target=n,i?r.TargetMode=i:[Ud.HLINK,Ud.XPATH,Ud.XMISS].indexOf(r.Type)>-1&&(r.TargetMode="External"),t["!id"][r.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][r.Id]=r,t[("/"+r.Target).replace("//","/")]=r,e}function qd(t,e,n){return[' <rdf:Description rdf:about="'+t+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+e+'"/>\n'," </rdf:Description>\n"].join("")}function $d(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Bs.version+"</meta:generator></office:meta></office:document-meta>"}var Kd=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Gd(t,e,n,a,r){null==r[t]&&null!=e&&""!==e&&(r[t]=e,e=Ic(e),a[a.length]=n?Xc(t,e,n):Gc(t,e))}function Yd(t,e){var n=e||{},a=[Nc,Xc("cp:coreProperties",null,{"xmlns:cp":Zc.CORE_PROPS,"xmlns:dc":Zc.dc,"xmlns:dcterms":Zc.dcterms,"xmlns:dcmitype":Zc.dcmitype,"xmlns:xsi":Zc.xsi})],r={};if(!t&&!n.Props)return a.join("");t&&(null!=t.CreatedDate&&Gd("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:Jc(t.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,r),null!=t.ModifiedDate&&Gd("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:Jc(t.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,r));for(var i=0;i!=Kd.length;++i){var o=Kd[i],s=n.Props&&null!=n.Props[o[1]]?n.Props[o[1]]:t?t[o[1]]:null;!0===s?s="1":!1===s?s="0":"number"==typeof s&&(s=String(s)),null!=s&&Gd(o[0],s,null,a,r)}return a.length>2&&(a[a.length]="</cp:coreProperties>",a[1]=a[1].replace("/>",">")),a.join("")}var Xd=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Jd=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Zd(t){var e=[],n=Xc;return t||(t={}),t.Application="SheetJS",e[e.length]=Nc,e[e.length]=Xc("Properties",null,{xmlns:Zc.EXT_PROPS,"xmlns:vt":Zc.vt}),Xd.forEach((function(a){if(void 0!==t[a[1]]){var r;switch(a[2]){case"string":r=Ic(String(t[a[1]]));break;case"bool":r=t[a[1]]?"true":"false"}void 0!==r&&(e[e.length]=n(a[0],r))}})),e[e.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=n("TitlesOfParts",n("vt:vector",t.SheetNames.map((function(t){return"<vt:lpstr>"+Ic(t)+"</vt:lpstr>"})).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function Qd(t){var e=[Nc,Xc("Properties",null,{xmlns:Zc.CUST_PROPS,"xmlns:vt":Zc.vt})];if(!t)return e.join("");var n=1;return lc(t).forEach((function(a){++n,e[e.length]=Xc("property",function(t,e){switch(typeof t){case"string":var n=Xc("vt:lpwstr",Ic(t));return e&&(n=n.replace(/"/g,"_x0022_")),n;case"number":return Xc((0|t)==t?"vt:i4":"vt:r8",Ic(String(t)));case"boolean":return Xc("vt:bool",t?"true":"false")}if(t instanceof Date)return Xc("vt:filetime",Jc(t));throw new Error("Unable to serialize "+t)}(t[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Ic(a)})})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var th={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function eh(t,e){var n=Fu(4),a=Fu(4);switch(n.write_shift(4,80==t?31:t),t){case 3:a.write_shift(-4,e);break;case 5:(a=Fu(8)).write_shift(8,e,"f");break;case 11:a.write_shift(4,e?1:0);break;case 64:a=function(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,n=e%Math.pow(2,32),a=(e-n)/Math.pow(2,32);a*=1e7;var r=(n*=1e7)/Math.pow(2,32)|0;r>0&&(n%=Math.pow(2,32),a+=r);var i=Fu(8);return i.write_shift(4,n),i.write_shift(4,a),i}(e);break;case 31:case 80:for((a=Fu(4+2*(e.length+1)+(e.length%2?0:2))).write_shift(4,e.length+1),a.write_shift(0,e,"dbcs");a.l!=a.length;)a.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return ll([n,a])}var nh=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function ah(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function rh(t,e,n){var a=Fu(8),r=[],i=[],o=8,s=0,l=Fu(8),c=Fu(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),i.push(l),r.push(c),o+=8+l.length,!e){(c=Fu(8)).write_shift(4,0),r.unshift(c);var u=[Fu(4)];for(u[0].write_shift(4,t.length),s=0;s<t.length;++s){var d=t[s][0];for((l=Fu(8+2*(d.length+1)+(d.length%2?0:2))).write_shift(4,s+2),l.write_shift(4,d.length+1),l.write_shift(0,d,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=ll(u),i.unshift(l),o+=8+l.length}for(s=0;s<t.length;++s)if((!e||e[t[s][0]])&&!(nh.indexOf(t[s][0])>-1||Jd.indexOf(t[s][0])>-1)&&null!=t[s][1]){var h=t[s][1],f=0;if(e){var p=n[f=+e[t[s][0]]];if("version"==p.p&&"string"==typeof h){var m=h.split(".");h=(+m[0]<<16)+(+m[1]||0)}l=eh(p.t,h)}else{var g=ah(h);-1==g&&(g=31,h=String(h)),l=eh(g,h)}i.push(l),(c=Fu(8)).write_shift(4,e?f:2+s),r.push(c),o+=8+l.length}var v=8*(i.length+1);for(s=0;s<i.length;++s)r[s].write_shift(4,v),v+=i[s].length;return a.write_shift(4,o),a.write_shift(4,i.length),ll([a].concat(r).concat(i))}function ih(t,e,n,a,r,i){var o=Fu(r?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,rc.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,r?2:1),o.write_shift(16,e,"hex"),o.write_shift(4,r?68:48);var l=rh(t,n,a);if(s.push(l),r){var c=rh(r,null,null);o.write_shift(16,i,"hex"),o.write_shift(4,68+l.length),s.push(c)}return ll(s)}function oh(t,e){return 1===t.read_shift(e)}function sh(t,e){return e||(e=Fu(2)),e.write_shift(2,+!!t),e}function lh(t){return t.read_shift(2,"u")}function ch(t,e){return e||(e=Fu(2)),e.write_shift(2,t),e}function uh(t,e,n){return n||(n=Fu(2)),n.write_shift(1,"e"==e?+t:+!!t),n.write_shift(1,"e"==e?1:0),n}function dh(t,e,n){var a=t.read_shift(n&&n.biff>=12?2:1),r="sbcs-cont",i=zs;(n&&n.biff>=8&&(zs=1200),n&&8!=n.biff)?12==n.biff&&(r="wstr"):t.read_shift(1)&&(r="dbcs-cont");n.biff>=2&&n.biff<=5&&(r="cpstr");var o=a?t.read_shift(a,r):"";return zs=i,o}function hh(t){var e=t.t||"",n=Fu(3);n.write_shift(2,e.length),n.write_shift(1,1);var a=Fu(2*e.length);return a.write_shift(2*e.length,e,"utf16le"),ll([n,a])}function fh(t,e,n){if(n){if(n.biff>=2&&n.biff<=5)return t.read_shift(e,"cpstr");if(n.biff>=12)return t.read_shift(e,"dbcs-cont")}return 0===t.read_shift(1)?t.read_shift(e,"sbcs-cont"):t.read_shift(e,"dbcs-cont")}function ph(t,e,n){var a=t.read_shift(n&&2==n.biff?1:2);return 0===a?(t.l++,""):fh(t,a,n)}function mh(t,e,n){if(n.biff>5)return ph(t,0,n);var a=t.read_shift(1);return 0===a?(t.l++,""):t.read_shift(a,n.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function gh(t,e,n){return n||(n=Fu(3+2*t.length)),n.write_shift(2,t.length),n.write_shift(1,1),n.write_shift(31,t,"utf16le"),n}function vh(t,e){e||(e=Fu(6+2*t.length)),e.write_shift(4,1+t.length);for(var n=0;n<t.length;++n)e.write_shift(2,t.charCodeAt(n));return e.write_shift(2,0),e}function bh(t){var e=Fu(512),n=0,a=t.Target;"file://"==a.slice(0,7)&&(a=a.slice(7));var r=a.indexOf("#"),i=r>-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=-3}e.write_shift(4,2),e.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(n=0;n<o.length;++n)e.write_shift(4,o[n]);if(28==i)vh(a=a.slice(1),e);else if(2&i){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<o.length;++n)e.write_shift(1,parseInt(o[n],16));var s=r>-1?a.slice(0,r):a;for(e.write_shift(4,2*(s.length+1)),n=0;n<s.length;++n)e.write_shift(2,s.charCodeAt(n));e.write_shift(2,0),8&i&&vh(r>-1?a.slice(r+1):"",e)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<o.length;++n)e.write_shift(1,parseInt(o[n],16));for(var l=0;"../"==a.slice(3*l,3*l+3)||"..\\"==a.slice(3*l,3*l+3);)++l;for(e.write_shift(2,l),e.write_shift(4,a.length-3*l+1),n=0;n<a.length-3*l;++n)e.write_shift(1,255&a.charCodeAt(n+3*l));for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),n=0;n<6;++n)e.write_shift(4,0)}return e.slice(0,e.l)}function _h(t,e,n,a){return a||(a=Fu(6)),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(2,n||0),a}function yh(t,e,n){var a=n.biff>8?4:2;return[t.read_shift(a),t.read_shift(a,"i"),t.read_shift(a,"i")]}function wh(t){var e=t.read_shift(2),n=t.read_shift(2);return{s:{c:t.read_shift(2),r:e},e:{c:t.read_shift(2),r:n}}}function xh(t,e){return e||(e=Fu(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function kh(t,e,n){var a=1536,r=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":a=1280,r=8;break;case"biff4":a=4,r=6;break;case"biff3":a=3,r=6;break;case"biff2":a=2,r=4;break;default:throw new Error("unsupported BIFF version")}var i=Fu(r);return i.write_shift(2,a),i.write_shift(2,e),r>4&&i.write_shift(2,29282),r>6&&i.write_shift(2,1997),r>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function Sh(t,e){var n=!e||e.biff>=8?2:1,a=Fu(8+n*t.name.length);a.write_shift(4,t.pos),a.write_shift(1,t.hs||0),a.write_shift(1,t.dt),a.write_shift(1,t.name.length),e.biff>=8&&a.write_shift(1,1),a.write_shift(n*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var r=a.slice(0,a.l);return r.l=a.l,r}function Ch(t,e,n,a){var r=n&&5==n.biff;a||(a=Fu(r?3+e.length:5+2*e.length)),a.write_shift(2,t),a.write_shift(r?1:2,e.length),r||a.write_shift(1,1),a.write_shift((r?1:2)*e.length,e,r?"sbcs":"utf16le");var i=a.length>a.l?a.slice(0,a.l):a;return null==i.l&&(i.l=i.length),i}function Ah(t,e,n,a){var r=n&&5==n.biff;a||(a=Fu(r?16:20)),a.write_shift(2,0),t.style?(a.write_shift(2,t.numFmtId||0),a.write_shift(2,65524)):(a.write_shift(2,t.numFmtId||0),a.write_shift(2,e<<4));var i=0;return t.numFmtId>0&&r&&(i|=1024),a.write_shift(4,i),a.write_shift(4,0),r||a.write_shift(4,0),a.write_shift(2,0),a}function Eh(t,e,n){if(n.biff<8)return function(t,e,n){3==t[t.l+1]&&t[t.l]++;var a=dh(t,0,n);return 3==a.charCodeAt(0)?a.slice(1):a}(t,0,n);for(var a=[],r=t.l+e,i=t.read_shift(n.biff>8?4:2);0!=i--;)a.push(yh(t,n.biff,n));if(t.l!=r)throw new Error("Bad ExternSheet: "+t.l+" != "+r);return a}function Th(t){var e=Fu(24),n=Gu(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<16;++r)e.write_shift(1,parseInt(a[r],16));return ll([e,bh(t[1])])}function Ph(t){var e=t[1].Tooltip,n=Fu(10+2*(e.length+1));n.write_shift(2,2048);var a=Gu(t[0]);n.write_shift(2,a.r),n.write_shift(2,a.r),n.write_shift(2,a.c),n.write_shift(2,a.c);for(var r=0;r<e.length;++r)n.write_shift(2,e.charCodeAt(r));return n.write_shift(2,0),n}function Nh(t,e,n){if(!n.cellStyles)return Du(t,e);var a=n&&n.biff>=12?4:2,r=t.read_shift(a),i=t.read_shift(a),o=t.read_shift(a),s=t.read_shift(a),l=t.read_shift(2);2==a&&(t.l+=2);var c={s:r,e:i,w:o,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}var Lh=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=uc({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(e,n){var a=n||{};a.dateNF||(a.dateNF="yyyymmdd");var r=ad(function(e,n){var a=[],r=al(1);switch(n.type){case"base64":r=il(tl(e));break;case"binary":r=il(e);break;case"buffer":case"array":r=e}Iu(r,0);var i=r.read_shift(1),o=!!(136&i),s=!1,l=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:s=!0,o=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var c=0,u=521;2==i&&(c=r.read_shift(2)),r.l+=3,2!=i&&(c=r.read_shift(4)),c>1048576&&(c=1e6),2!=i&&(u=r.read_shift(2));var d=r.read_shift(2),h=n.codepage||1252;2!=i&&(r.l+=16,r.read_shift(1),0!==r[r.l]&&(h=t[r[r.l]]),r.l+=1,r.l+=2),l&&(r.l+=36);for(var f=[],p={},m=Math.min(r.length,2==i?521:u-10-(s?264:0)),g=l?32:11;r.l<m&&13!=r[r.l];)switch((p={}).name=Gs.utils.decode(h,r.slice(r.l,r.l+g)).replace(/[\u0000\r\n].*$/g,""),r.l+=g,p.type=String.fromCharCode(r.read_shift(1)),2==i||l||(p.offset=r.read_shift(4)),p.len=r.read_shift(1),2==i&&(p.offset=r.read_shift(2)),p.dec=r.read_shift(1),p.name.length&&f.push(p),2!=i&&(r.l+=l?13:14),p.type){case"B":s&&8==p.len||!n.WTF||console.log("Skipping "+p.name+":"+p.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+p.name+":"+p.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+p.type)}if(13!==r[r.l]&&(r.l=u-1),13!==r.read_shift(1))throw new Error("DBF Terminator not found "+r.l+" "+r[r.l]);r.l=u;var v=0,b=0;for(a[0]=[],b=0;b!=f.length;++b)a[0][b]=f[b].name;for(;c-- >0;)if(42!==r[r.l])for(++r.l,a[++v]=[],b=0,b=0;b!=f.length;++b){var _=r.slice(r.l,r.l+f[b].len);r.l+=f[b].len,Iu(_,0);var y=Gs.utils.decode(h,_);switch(f[b].type){case"C":y.trim().length&&(a[v][b]=y.replace(/\s+$/,""));break;case"D":8===y.length?a[v][b]=new Date(+y.slice(0,4),+y.slice(4,6)-1,+y.slice(6,8)):a[v][b]=y;break;case"F":a[v][b]=parseFloat(y.trim());break;case"+":case"I":a[v][b]=l?2147483648^_.read_shift(-4,"i"):_.read_shift(4,"i");break;case"L":switch(y.trim().toUpperCase()){case"Y":case"T":a[v][b]=!0;break;case"N":case"F":a[v][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+y+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));a[v][b]="##MEMO##"+(l?parseInt(y.trim(),10):_.read_shift(4));break;case"N":(y=y.replace(/\u0000/g,"").trim())&&"."!=y&&(a[v][b]=+y||0);break;case"@":a[v][b]=new Date(_.read_shift(-8,"f")-621356832e5);break;case"T":a[v][b]=new Date(864e5*(_.read_shift(4)-2440588)+_.read_shift(4));break;case"Y":a[v][b]=_.read_shift(4,"i")/1e4+_.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[v][b]=-_.read_shift(-8,"f");break;case"B":if(s&&8==f[b].len){a[v][b]=_.read_shift(8,"f");break}case"G":case"P":_.l+=f[b].len;break;case"0":if("_NullFlags"===f[b].name)break;default:throw new Error("DBF Unsupported data type "+f[b].type)}}else r.l+=d;if(2!=i&&r.l<r.length&&26!=r[r.l++])throw new Error("DBF EOF Marker missing "+(r.l-1)+" of "+r.length+" "+r[r.l-1].toString(16));return n&&n.sheetRows&&(a=a.slice(0,n.sheetRows)),n.DBF=f,a}(e,a),a);return r["!cols"]=a.DBF.map((function(t){return{wch:t.len,DBF:t}})),delete a.DBF,r}var a={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(t,e){try{return ed(n(t,e),e)}catch(t){if(e&&e.WTF)throw t}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(t,n){var r=n||{};if(+r.codepage>=0&&qs(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=ju(),o=Xm(t,{header:1,raw:!0,cellDates:!0}),s=o[0],l=o.slice(1),c=t["!cols"]||[],u=0,d=0,h=0,f=1;for(u=0;u<s.length;++u)if(((c[u]||{}).DBF||{}).name)s[u]=c[u].DBF.name,++h;else if(null!=s[u]){if(++h,"number"==typeof s[u]&&(s[u]=s[u].toString(10)),"string"!=typeof s[u])throw new Error("DBF Invalid column name "+s[u]+" |"+typeof s[u]+"|");if(s.indexOf(s[u])!==u)for(d=0;d<1024;++d)if(-1==s.indexOf(s[u]+"_"+d)){s[u]+="_"+d;break}}var p=Zu(t["!ref"]),m=[],g=[],v=[];for(u=0;u<=p.e.c-p.s.c;++u){var b="",_="",y=0,w=[];for(d=0;d<l.length;++d)null!=l[d][u]&&w.push(l[d][u]);if(0!=w.length&&null!=s[u]){for(d=0;d<w.length;++d){switch(typeof w[d]){case"number":_="B";break;case"string":default:_="C";break;case"boolean":_="L";break;case"object":_=w[d]instanceof Date?"D":"C"}y=Math.max(y,String(w[d]).length),b=b&&b!=_?"C":_}y>250&&(y=250),"C"==(_=((c[u]||{}).DBF||{}).type)&&c[u].DBF.len>y&&(y=c[u].DBF.len),"B"==b&&"N"==_&&(b="N",v[u]=c[u].DBF.dec,y=c[u].DBF.len),g[u]="C"==b||"N"==_?y:a[b]||0,f+=g[u],m[u]=b}else m[u]="?"}var x=i.next(32);for(x.write_shift(4,318902576),x.write_shift(4,l.length),x.write_shift(2,296+32*h),x.write_shift(2,f),u=0;u<4;++u)x.write_shift(4,0);for(x.write_shift(4,(+e[Us]||3)<<8),u=0,d=0;u<s.length;++u)if(null!=s[u]){var k=i.next(32),S=(s[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);k.write_shift(1,S,"sbcs"),k.write_shift(1,"?"==m[u]?"C":m[u],"sbcs"),k.write_shift(4,d),k.write_shift(1,g[u]||a[m[u]]||0),k.write_shift(1,v[u]||0),k.write_shift(1,2),k.write_shift(4,0),k.write_shift(1,0),k.write_shift(4,0),k.write_shift(4,0),d+=g[u]||a[m[u]]||0}var C=i.next(264);for(C.write_shift(4,13),u=0;u<65;++u)C.write_shift(4,0);for(u=0;u<l.length;++u){var A=i.next(f);for(A.write_shift(1,0),d=0;d<s.length;++d)if(null!=s[d])switch(m[d]){case"L":A.write_shift(1,null==l[u][d]?63:l[u][d]?84:70);break;case"B":A.write_shift(8,l[u][d]||0,"f");break;case"N":var E="0";for("number"==typeof l[u][d]&&(E=l[u][d].toFixed(v[d]||0)),h=0;h<g[d]-E.length;++h)A.write_shift(1,32);A.write_shift(1,E,"sbcs");break;case"D":l[u][d]?(A.write_shift(4,("0000"+l[u][d].getFullYear()).slice(-4),"sbcs"),A.write_shift(2,("00"+(l[u][d].getMonth()+1)).slice(-2),"sbcs"),A.write_shift(2,("00"+l[u][d].getDate()).slice(-2),"sbcs")):A.write_shift(8,"00000000","sbcs");break;case"C":var T=String(null!=l[u][d]?l[u][d]:"").slice(0,g[d]);for(A.write_shift(1,T,"sbcs"),h=0;h<g[d]-T.length;++h)A.write_shift(1,32)}}return i.next(1).write_shift(1,26),i.end()}}}(),Oh=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("N("+lc(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(e,n){var a=t[n];return"number"==typeof a?Xs(a):a},a=function(t,e,n){var a=e.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==a?t:Xs(a)};function r(t,r){var i,o=t.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,d=[],h=[],f=null,p={},m=[],g=[],v=[],b=0;for(+r.codepage>=0&&qs(+r.codepage);c!==o.length;++c){b=0;var _,y=o[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(e,n),w=y.replace(/;;/g,"\0").split(";").map((function(t){return t.replace(/\u0000/g,";")})),x=w[0];if(y.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&h.push(y.slice(3).replace(/;;/g,";"));break;case"C":var k=!1,S=!1,C=!1,A=!1,E=-1,T=-1;for(u=1;u<w.length;++u)switch(w[u].charAt(0)){case"A":case"G":break;case"X":l=parseInt(w[u].slice(1))-1,S=!0;break;case"Y":for(s=parseInt(w[u].slice(1))-1,S||(l=0),i=d.length;i<=s;++i)d[i]=[];break;case"K":'"'===(_=w[u].slice(1)).charAt(0)?_=_.slice(1,_.length-1):"TRUE"===_?_=!0:"FALSE"===_?_=!1:isNaN(Cc(_))?isNaN(Ec(_).getDate())||(_=wc(_)):(_=Cc(_),null!==f&&Gl(f)&&(_=vc(_))),void 0!==Gs&&"string"==typeof _&&"string"!=(r||{}).type&&(r||{}).codepage&&(_=Gs.utils.decode(r.codepage,_)),k=!0;break;case"E":A=!0;var P=Cf(w[u].slice(1),{r:s,c:l});d[s][l]=[d[s][l],P];break;case"S":C=!0,d[s][l]=[d[s][l],"S5S"];break;case"R":E=parseInt(w[u].slice(1))-1;break;case"C":T=parseInt(w[u].slice(1))-1;break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+y)}if(k&&(d[s][l]&&2==d[s][l].length?d[s][l][0]=_:d[s][l]=_,f=null),C){if(A)throw new Error("SYLK shared formula cannot have own formula");var N=E>-1&&d[E][T];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");d[s][l][1]=Tf(N[1],{r:s-E,c:l-T})}break;case"F":var L=0;for(u=1;u<w.length;++u)switch(w[u].charAt(0)){case"X":l=parseInt(w[u].slice(1))-1,++L;break;case"Y":for(s=parseInt(w[u].slice(1))-1,i=d.length;i<=s;++i)d[i]=[];break;case"M":b=parseInt(w[u].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":f=h[parseInt(w[u].slice(1))];break;case"W":for(v=w[u].slice(1).split(" "),i=parseInt(v[0],10);i<=parseInt(v[1],10);++i)b=parseInt(v[2],10),g[i-1]=0===b?{hidden:!0}:{wch:b},Xh(g[i-1]);break;case"C":g[l=parseInt(w[u].slice(1))-1]||(g[l]={});break;case"R":m[s=parseInt(w[u].slice(1))-1]||(m[s]={}),b>0?(m[s].hpt=b,m[s].hpx=Qh(b)):0===b&&(m[s].hidden=!0);break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+y)}L<1&&(f=null);break;default:if(r&&r.WTF)throw new Error("SYLK bad record "+y)}}return m.length>0&&(p["!rows"]=m),g.length>0&&(p["!cols"]=g),r&&r.sheetRows&&(d=d.slice(0,r.sheetRows)),[d,p]}function i(t,e){var n=function(t,e){switch(e.type){case"base64":return r(tl(t),e);case"binary":return r(t,e);case"buffer":return r(el&&Fs.isBuffer(t)?t.toString("binary"):sl(t),e);case"array":return r(xc(t),e)}throw new Error("Unrecognized type "+e.type)}(t,e),a=n[0],i=n[1],o=ad(a,e);return lc(i).forEach((function(t){o[t]=i[t]})),o}function o(t,e,n,a){var r="C;Y"+(n+1)+";X"+(a+1)+";K";switch(t.t){case"n":r+=t.v||0,t.f&&!t.F&&(r+=";E"+Ef(t.f,{r:n,c:a}));break;case"b":r+=t.v?"TRUE":"FALSE";break;case"e":r+=t.w||t.v;break;case"d":r+='"'+(t.w||t.v)+'"';break;case"s":r+='"'+t.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return r}return t["|"]=254,{to_workbook:function(t,e){return ed(i(t,e),e)},to_sheet:i,from_sheet:function(t,e){var n,a,r=["ID;PWXL;N;E"],i=[],s=Zu(t["!ref"]),l=Array.isArray(t),c="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),t["!cols"]&&(a=r,t["!cols"].forEach((function(t,e){var n="F;W"+(e+1)+" "+(e+1)+" ";t.hidden?n+="0":("number"!=typeof t.width||t.wpx||(t.wpx=Kh(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Gh(t.wpx)),"number"==typeof t.wch&&(n+=Math.round(t.wch)))," "!=n.charAt(n.length-1)&&a.push(n)}))),t["!rows"]&&function(t,e){e.forEach((function(e,n){var a="F;";e.hidden?a+="M0;":e.hpt?a+="M"+20*e.hpt+";":e.hpx&&(a+="M"+20*Zh(e.hpx)+";"),a.length>2&&t.push(a+"R"+(n+1))}))}(r,t["!rows"]),r.push("B;Y"+(s.e.r-s.s.r+1)+";X"+(s.e.c-s.s.c+1)+";D"+[s.s.c,s.s.r,s.e.c,s.e.r].join(" "));for(var u=s.s.r;u<=s.e.r;++u)for(var d=s.s.c;d<=s.e.c;++d){var h=Yu({r:u,c:d});(n=l?(t[u]||[])[d]:t[h])&&(null!=n.v||n.f&&!n.F)&&i.push(o(n,0,u,d))}return r.join(c)+c+i.join(c)+c+"E"+c}}}(),Mh=function(){function t(t,e){for(var n=t.split("\n"),a=-1,r=-1,i=0,o=[];i!==n.length;++i)if("BOT"!==n[i].trim()){if(!(a<0)){for(var s=n[i].trim().split(","),l=s[0],c=s[1],u=n[++i]||"";1&(u.match(/["]/g)||[]).length&&i<n.length-1;)u+="\n"+n[++i];switch(u=u.trim(),+l){case-1:if("BOT"===u){o[++a]=[],r=0;continue}if("EOD"!==u)throw new Error("Unrecognized DIF special command "+u);break;case 0:"TRUE"===u?o[a][r]=!0:"FALSE"===u?o[a][r]=!1:isNaN(Cc(c))?isNaN(Ec(c).getDate())?o[a][r]=c:o[a][r]=wc(c):o[a][r]=Cc(c),++r;break;case 1:(u=(u=u.slice(1,u.length-1)).replace(/""/g,'"'))&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),o[a][r++]=""!==u?u:null}if("EOD"===u)break}}else o[++a]=[],r=0;return e&&e.sheetRows&&(o=o.slice(0,e.sheetRows)),o}function e(e,n){return ad(function(e,n){switch(n.type){case"base64":return t(tl(e),n);case"binary":return t(e,n);case"buffer":return t(el&&Fs.isBuffer(e)?e.toString("binary"):sl(e),n);case"array":return t(xc(e),n)}throw new Error("Unrecognized type "+n.type)}(e,n),n)}var n=function(){var t=function(t,e,n,a,r){t.push(e),t.push(n+","+a),t.push('"'+r.replace(/"/g,'""')+'"')},e=function(t,e,n,a){t.push(e+","+n),t.push(1==e?'"'+a.replace(/"/g,'""')+'"':a)};return function(n){var a,r=[],i=Zu(n["!ref"]),o=Array.isArray(n);t(r,"TABLE",0,1,"sheetjs"),t(r,"VECTORS",0,i.e.r-i.s.r+1,""),t(r,"TUPLES",0,i.e.c-i.s.c+1,""),t(r,"DATA",0,0,"");for(var s=i.s.r;s<=i.e.r;++s){e(r,-1,0,"BOT");for(var l=i.s.c;l<=i.e.c;++l){var c=Yu({r:s,c:l});if(a=o?(n[s]||[])[l]:n[c])switch(a.t){case"n":var u=a.w;u||null==a.v||(u=a.v),null==u?a.f&&!a.F?e(r,1,0,"="+a.f):e(r,1,0,""):e(r,0,u,"V");break;case"b":e(r,0,a.v?1:0,a.v?"TRUE":"FALSE");break;case"s":e(r,1,0,isNaN(a.v)?a.v:'="'+a.v+'"');break;case"d":a.w||(a.w=Zl(a.z||yl[14],fc(wc(a.v)))),e(r,0,a.w,"V");break;default:e(r,1,0,"")}else e(r,1,0,"")}}e(r,-1,0,"EOD");return r.join("\r\n")}}();return{to_workbook:function(t,n){return ed(e(t,n),n)},to_sheet:e,from_sheet:n}}(),Rh=function(){function t(t){return t.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function e(t){return t.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function n(e,n){return ad(function(e,n){for(var a=e.split("\n"),r=-1,i=-1,o=0,s=[];o!==a.length;++o){var l=a[o].trim().split(":");if("cell"===l[0]){var c=Gu(l[1]);if(s.length<=c.r)for(r=s.length;r<=c.r;++r)s[r]||(s[r]=[]);switch(r=c.r,i=c.c,l[2]){case"t":s[r][i]=t(l[3]);break;case"v":s[r][i]=+l[3];break;case"vtf":var u=l[l.length-1];case"vtc":"nl"===l[3]?s[r][i]=!!+l[4]:s[r][i]=+l[4],"vtf"==l[2]&&(s[r][i]=[s[r][i],u])}}}return n&&n.sheetRows&&(s=s.slice(0,n.sheetRows)),s}(e,n),n)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),r=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),o="--SocialCalcSpreadsheetControlSave--";function s(t){if(!t||!t["!ref"])return"";for(var n,a=[],r=[],i="",o=Xu(t["!ref"]),s=Array.isArray(t),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c)if(i=Yu({r:l,c}),(n=s?(t[l]||[])[c]:t[i])&&null!=n.v&&"z"!==n.t){switch(r=["cell",i,"t"],n.t){case"s":case"str":r.push(e(n.v));break;case"n":n.f?(r[2]="vtf",r[3]="n",r[4]=n.v,r[5]=e(n.f)):(r[2]="v",r[3]=n.v);break;case"b":r[2]="vt"+(n.f?"f":"c"),r[3]="nl",r[4]=n.v?"1":"0",r[5]=e(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var u=fc(wc(n.v));r[2]="vtc",r[3]="nd",r[4]=""+u,r[5]=n.w||Zl(n.z||yl[14],u);break;case"e":continue}a.push(r.join(":"))}return a.push("sheet:c:"+(o.e.c-o.s.c+1)+":r:"+(o.e.r-o.s.r+1)+":tvf:1"),a.push("valueformat:1:text-wiki"),a.join("\n")}return{to_workbook:function(t,e){return ed(n(t,e),e)},to_sheet:n,from_sheet:function(t){return[a,r,i,r,s(t),o].join("\n")}}}(),Ih=function(){function t(t,e,n,a,r){r.raw?e[n][a]=t:""===t||("TRUE"===t?e[n][a]=!0:"FALSE"===t?e[n][a]=!1:isNaN(Cc(t))?isNaN(Ec(t).getDate())?e[n][a]=t:e[n][a]=wc(t):e[n][a]=Cc(t))}var e={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(t){for(var a={},r=!1,i=0,o=0;i<t.length;++i)34==(o=t.charCodeAt(i))?r=!r:!r&&o in e&&(a[o]=(a[o]||0)+1);for(i in o=[],a)Object.prototype.hasOwnProperty.call(a,i)&&o.push([a[i],i]);if(!o.length)for(i in a=n)Object.prototype.hasOwnProperty.call(a,i)&&o.push([a[i],i]);return o.sort((function(t,e){return t[0]-e[0]||n[t[1]]-n[e[1]]})),e[o.pop()[1]]||44}function r(t,e){var n=e||{},r="";null!=Js&&null==n.dense&&(n.dense=Js);var i=n.dense?[]:{},o={s:{c:0,r:0},e:{c:0,r:0}};"sep="==t.slice(0,4)?13==t.charCodeAt(5)&&10==t.charCodeAt(6)?(r=t.charAt(4),t=t.slice(7)):13==t.charCodeAt(5)||10==t.charCodeAt(5)?(r=t.charAt(4),t=t.slice(6)):r=a(t.slice(0,1024)):r=n&&n.FS?n.FS:a(t.slice(0,1024));var s=0,l=0,c=0,u=0,d=0,h=r.charCodeAt(0),f=!1,p=0,m=t.charCodeAt(0);t=t.replace(/\r\n/gm,"\n");var g,v,b=null!=n.dateNF?(g=n.dateNF,v=(v="number"==typeof g?yl[g]:g).replace(nc,"(\\d+)"),new RegExp("^"+v+"$")):null;function _(){var e=t.slice(u,d),a={};if('"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.slice(1,-1).replace(/""/g,'"')),0===e.length)a.t="z";else if(n.raw)a.t="s",a.v=e;else if(0===e.trim().length)a.t="s",a.v=e;else if(61==e.charCodeAt(0))34==e.charCodeAt(1)&&34==e.charCodeAt(e.length-1)?(a.t="s",a.v=e.slice(2,-1).replace(/""/g,'"')):!function(t){return 1!=t.length}(e)?(a.t="s",a.v=e):(a.t="n",a.f=e.slice(1));else if("TRUE"==e)a.t="b",a.v=!0;else if("FALSE"==e)a.t="b",a.v=!1;else if(isNaN(c=Cc(e)))if(!isNaN(Ec(e).getDate())||b&&e.match(b)){a.z=n.dateNF||yl[14];var r=0;b&&e.match(b)&&(e=function(t,e,n){var a=-1,r=-1,i=-1,o=-1,s=-1,l=-1;(e.match(nc)||[]).forEach((function(t,e){var c=parseInt(n[e+1],10);switch(t.toLowerCase().charAt(0)){case"y":a=c;break;case"d":i=c;break;case"h":o=c;break;case"s":l=c;break;case"m":o>=0?s=c:r=c}})),l>=0&&-1==s&&r>=0&&(s=r,r=-1);var c=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(r>=1?r:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==o&&-1==s&&-1==l?c:-1==a&&-1==r&&-1==i?u:c+"T"+u}(0,n.dateNF,e.match(b)||[]),r=1),n.cellDates?(a.t="d",a.v=wc(e,r)):(a.t="n",a.v=fc(wc(e,r))),!1!==n.cellText&&(a.w=Zl(a.z,a.v instanceof Date?fc(a.v):a.v)),n.cellNF||delete a.z}else a.t="s",a.v=e;else a.t="n",!1!==n.cellText&&(a.w=e),a.v=c;if("z"==a.t||(n.dense?(i[s]||(i[s]=[]),i[s][l]=a):i[Yu({c:l,r:s})]=a),u=d+1,m=t.charCodeAt(u),o.e.c<l&&(o.e.c=l),o.e.r<s&&(o.e.r=s),p==h)++l;else if(l=0,++s,n.sheetRows&&n.sheetRows<=s)return!0}t:for(;d<t.length;++d)switch(p=t.charCodeAt(d)){case 34:34===m&&(f=!f);break;case h:case 10:case 13:if(!f&&_())break t}return d-u>0&&_(),i["!ref"]=Ju(o),i}function i(e,n){return n&&n.PRN?n.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?r(e,n):ad(function(e,n){var a=n||{},r=[];if(!e||0===e.length)return r;for(var i=e.split(/[\r\n]/),o=i.length-1;o>=0&&0===i[o].length;)--o;for(var s=10,l=0,c=0;c<=o;++c)-1==(l=i[c].indexOf(" "))?l=i[c].length:l++,s=Math.max(s,l);for(c=0;c<=o;++c){r[c]=[];var u=0;for(t(i[c].slice(0,s).trim(),r,c,u,a),u=1;u<=(i[c].length-s)/10+1;++u)t(i[c].slice(s+10*(u-1),s+10*u).trim(),r,c,u,a)}return a.sheetRows&&(r=r.slice(0,a.sheetRows)),r}(e,n),n):r(e,n)}function o(t,e){var n="",a="string"==e.type?[0,0,0,0]:Vm(t,e);switch(e.type){case"base64":n=tl(t);break;case"binary":case"string":n=t;break;case"buffer":n=65001==e.codepage?t.toString("utf8"):e.codepage&&void 0!==Gs?Gs.utils.decode(e.codepage,t):el&&Fs.isBuffer(t)?t.toString("binary"):sl(t);break;case"array":n=xc(t);break;default:throw new Error("Unrecognized type "+e.type)}return 239==a[0]&&187==a[1]&&191==a[2]?n=Wc(n.slice(3)):"string"!=e.type&&"buffer"!=e.type&&65001==e.codepage?n=Wc(n):"binary"==e.type&&void 0!==Gs&&e.codepage&&(n=Gs.utils.decode(e.codepage,Gs.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?Rh.to_sheet("string"==e.type?n:Wc(n),e):i(n,e)}return{to_workbook:function(t,e){return ed(o(t,e),e)},to_sheet:o,from_sheet:function(t){for(var e,n=[],a=Zu(t["!ref"]),r=Array.isArray(t),i=a.s.r;i<=a.e.r;++i){for(var o=[],s=a.s.c;s<=a.e.c;++s){var l=Yu({r:i,c:s});if((e=r?(t[i]||[])[s]:t[l])&&null!=e.v){for(var c=(e.w||(td(e),e.w)||"").slice(0,10);c.length<10;)c+=" ";o.push(c+(0===s?" ":""))}else o.push(" ")}n.push(o.join(""))}return n.join("\n")}}}();var Dh=function(){function t(t,e,n){if(t){Iu(t,t.l||0);for(var a=n.Enum||v;t.l<t.length;){var r=t.read_shift(2),i=a[r]||a[65535],o=t.read_shift(2),s=t.l+o,l=i.f&&i.f(t,o,n);if(t.l=s,e(l,i,r))return}}}function e(e,n){if(!e)return e;var a=n||{};null!=Js&&null==a.dense&&(a.dense=Js);var r=a.dense?[]:{},i="Sheet1",o="",s=0,l={},c=[],u=[],d={s:{r:0,c:0},e:{r:0,c:0}},h=a.sheetRows||0;if(0==e[2]&&(8==e[3]||9==e[3])&&e.length>=16&&5==e[14]&&108===e[15])throw new Error("Unsupported Works 3 for Mac file");if(2==e[2])a.Enum=v,t(e,(function(t,e,n){switch(n){case 0:a.vers=t,t>=4096&&(a.qpro=!0);break;case 6:d=t;break;case 204:t&&(o=t);break;case 222:o=t;break;case 15:case 51:a.qpro||(t[1].v=t[1].v.slice(1));case 13:case 14:case 16:14==n&&!(112&~t[2])&&(15&t[2])>1&&(15&t[2])<15&&(t[1].z=a.dateNF||yl[14],a.cellDates&&(t[1].t="d",t[1].v=vc(t[1].v))),a.qpro&&t[3]>s&&(r["!ref"]=Ju(d),l[i]=r,c.push(i),r=a.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=t[3],i=o||"Sheet"+(s+1),o="");var u=a.dense?(r[t[0].r]||[])[t[0].c]:r[Yu(t[0])];if(u){u.t=t[1].t,u.v=t[1].v,null!=t[1].z&&(u.z=t[1].z),null!=t[1].f&&(u.f=t[1].f);break}a.dense?(r[t[0].r]||(r[t[0].r]=[]),r[t[0].r][t[0].c]=t[1]):r[Yu(t[0])]=t[1]}}),a);else{if(26!=e[2]&&14!=e[2])throw new Error("Unrecognized LOTUS BOF "+e[2]);a.Enum=b,14==e[2]&&(a.qpro=!0,e.l=0),t(e,(function(t,e,n){switch(n){case 204:i=t;break;case 22:t[1].v=t[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(t[3]>s&&(r["!ref"]=Ju(d),l[i]=r,c.push(i),r=a.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},s=t[3],i="Sheet"+(s+1)),h>0&&t[0].r>=h)break;a.dense?(r[t[0].r]||(r[t[0].r]=[]),r[t[0].r][t[0].c]=t[1]):r[Yu(t[0])]=t[1],d.e.c<t[0].c&&(d.e.c=t[0].c),d.e.r<t[0].r&&(d.e.r=t[0].r);break;case 27:t[14e3]&&(u[t[14e3][0]]=t[14e3][1]);break;case 1537:u[t[0]]=t[1],t[0]==s&&(i=t[1])}}),a)}if(r["!ref"]=Ju(d),l[o||i]=r,c.push(o||i),!u.length)return{SheetNames:c,Sheets:l};for(var f={},p=[],m=0;m<u.length;++m)l[c[m]]?(p.push(u[m]||c[m]),f[u[m]]=l[u[m]]||l[c[m]]):(p.push(u[m]),f[u[m]]={"!ref":"A1"});return{SheetNames:p,Sheets:f}}function n(t,e,n){var a=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(a[0].c=t.read_shift(1),a[3]=t.read_shift(1),a[0].r=t.read_shift(2),t.l+=2):(a[2]=t.read_shift(1),a[0].c=t.read_shift(2),a[0].r=t.read_shift(2)),a}function a(t,e,a){var r=t.l+e,i=n(t,0,a);if(i[1].t="s",20768==a.vers){t.l++;var o=t.read_shift(1);return i[1].v=t.read_shift(o,"utf8"),i}return a.qpro&&t.l++,i[1].v=t.read_shift(r-t.l,"cstr"),i}function r(t,e,n){var a=Fu(7+n.length);a.write_shift(1,255),a.write_shift(2,e),a.write_shift(2,t),a.write_shift(1,39);for(var r=0;r<a.length;++r){var i=n.charCodeAt(r);a.write_shift(1,i>=128?95:i)}return a.write_shift(1,0),a}function i(t,e,n){var a=Fu(7);return a.write_shift(1,255),a.write_shift(2,e),a.write_shift(2,t),a.write_shift(2,n,"i"),a}function o(t,e,n){var a=Fu(13);return a.write_shift(1,255),a.write_shift(2,e),a.write_shift(2,t),a.write_shift(8,n,"f"),a}function s(t,e,n){var a=32768&e;return e=(a?t:0)+((e&=-32769)>=8192?e-16384:e),(a?"":"$")+(n?Ku(e):qu(e))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},c=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(t){var e=[{c:0,r:0},{t:"n",v:0},0];return e[0].r=t.read_shift(2),e[3]=t[t.l++],e[0].c=t[t.l++],e}function d(t,e,n,a){var r=Fu(6+a.length);r.write_shift(2,t),r.write_shift(1,n),r.write_shift(1,e),r.write_shift(1,39);for(var i=0;i<a.length;++i){var o=a.charCodeAt(i);r.write_shift(1,o>=128?95:o)}return r.write_shift(1,0),r}function h(t,e){var n=u(t),a=t.read_shift(4),r=t.read_shift(4),i=t.read_shift(2);if(65535==i)return 0===a&&3221225472===r?(n[1].t="e",n[1].v=15):0===a&&3489660928===r?(n[1].t="e",n[1].v=42):n[1].v=0,n;var o=32768&i;return i=(32767&i)-16446,n[1].v=(1-2*o)*(r*Math.pow(2,i+32)+a*Math.pow(2,i)),n}function f(t,e,n,a){var r=Fu(14);if(r.write_shift(2,t),r.write_shift(1,n),r.write_shift(1,e),0==a)return r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,65535),r;var i,o=0,s=0,l=0;return a<0&&(o=1,a=-a),s=0|Math.log2(a),2147483648&(l=(a/=Math.pow(2,s-31))>>>0)||(++s,l=(a/=2)>>>0),a-=l,l|=2147483648,l>>>=0,i=(a*=Math.pow(2,32))>>>0,r.write_shift(4,i),r.write_shift(4,l),s+=16383+(o?32768:0),r.write_shift(2,s),r}function p(t,e){var n=u(t),a=t.read_shift(8,"f");return n[1].v=a,n}function m(t,e){return 0==t[t.l+e-1]?t.read_shift(e,"cstr"):""}function g(t,e){var n=Fu(5+t.length);n.write_shift(2,14e3),n.write_shift(2,e);for(var a=0;a<t.length;++a){var r=t.charCodeAt(a);n[n.l++]=r>127?95:r}return n[n.l++]=0,n}var v={0:{n:"BOF",f:lh},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(t,e,n){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==e&&n.qpro?(a.s.c=t.read_shift(1),t.l++,a.s.r=t.read_shift(2),a.e.c=t.read_shift(1),t.l++,a.e.r=t.read_shift(2),a):(a.s.c=t.read_shift(2),a.s.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),a.e.c=t.read_shift(2),a.e.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),65535==a.s.c&&(a.s.c=a.e.c=a.s.r=a.e.r=0),a)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(t,e,a){var r=n(t,0,a);return r[1].v=t.read_shift(2,"i"),r}},14:{n:"NUMBER",f:function(t,e,a){var r=n(t,0,a);return r[1].v=t.read_shift(8,"f"),r}},15:{n:"LABEL",f:a},16:{n:"FORMULA",f:function(t,e,a){var r=t.l+e,i=n(t,0,a);if(i[1].v=t.read_shift(8,"f"),a.qpro)t.l=r;else{var o=t.read_shift(2);!function(t,e){Iu(t,0);var n=[],a=0,r="",i="",o="",u="";for(;t.l<t.length;){var d=t[t.l++];switch(d){case 0:n.push(t.read_shift(8,"f"));break;case 1:i=s(e[0].c,t.read_shift(2),!0),r=s(e[0].r,t.read_shift(2),!1),n.push(i+r);break;case 2:var h=s(e[0].c,t.read_shift(2),!0),f=s(e[0].r,t.read_shift(2),!1);i=s(e[0].c,t.read_shift(2),!0),r=s(e[0].r,t.read_shift(2),!1),n.push(h+f+":"+i+r);break;case 3:if(t.l<t.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(t.read_shift(2));break;case 6:for(var p="";d=t[t.l++];)p+=String.fromCharCode(d);n.push('"'+p.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:u=n.pop(),o=n.pop(),n.push(["AND","OR"][d-20]+"("+o+","+u+")");break;default:if(d<32&&c[d])u=n.pop(),o=n.pop(),n.push(o+c[d]+u);else{if(!l[d])return d<=7?console.error("WK1 invalid opcode "+d.toString(16)):d<=24?console.error("WK1 unsupported op "+d.toString(16)):d<=30?console.error("WK1 invalid opcode "+d.toString(16)):d<=115?console.error("WK1 unsupported function opcode "+d.toString(16)):console.error("WK1 unrecognized opcode "+d.toString(16));if(69==(a=l[d][1])&&(a=t[t.l++]),a>n.length)return void console.error("WK1 bad formula parse 0x"+d.toString(16)+":|"+n.join("|")+"|");var m=n.slice(-a);n.length-=a,n.push(l[d][0]+"("+m.join(",")+")")}}}1==n.length?e[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(t.slice(t.l,t.l+o),i),t.l+=o}return i}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:a},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:m},222:{n:"SHEETNAMELP",f:function(t,e){var n=t[t.l++];n>e-1&&(n=e-1);for(var a="";a.length<n;)a+=String.fromCharCode(t[t.l++]);return a}},65535:{n:""}},b={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(t,e){var n=u(t);return n[1].t="s",n[1].v=t.read_shift(e-4,"cstr"),n}},23:{n:"NUMBER17",f:h},24:{n:"NUMBER18",f:function(t,e){var n=u(t);n[1].v=t.read_shift(2);var a=n[1].v>>1;if(1&n[1].v)switch(7&a){case 0:a=5e3*(a>>3);break;case 1:a=500*(a>>3);break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64}return n[1].v=a,n}},25:{n:"FORMULA19",f:function(t,e){var n=h(t);return t.l+=e-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(t,e){for(var n={},a=t.l+e;t.l<a;){var r=t.read_shift(2);if(14e3==r){for(n[r]=[0,""],n[r][0]=t.read_shift(2);t[t.l];)n[r][1]+=String.fromCharCode(t[t.l]),t.l++;t.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(t,e){var n=u(t),a=t.read_shift(4);return n[1].v=a>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:p},40:{n:"FORMULA28",f:function(t,e){var n=p(t);return t.l+=e-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:m},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(t,e,n){if(n.qpro&&!(e<21)){var a=t.read_shift(1);return t.l+=17,t.l+=1,t.l+=2,[a,t.read_shift(e-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(t,e){var n=e||{};if(+n.codepage>=0&&qs(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var a=ju(),s=Zu(t["!ref"]),l=Array.isArray(t),c=[];em(a,0,function(t){var e=Fu(2);return e.write_shift(2,t),e}(1030)),em(a,6,function(t){var e=Fu(8);return e.write_shift(2,t.s.c),e.write_shift(2,t.s.r),e.write_shift(2,t.e.c),e.write_shift(2,t.e.r),e}(s));for(var u=Math.min(s.e.r,8191),d=s.s.r;d<=u;++d)for(var h=qu(d),f=s.s.c;f<=s.e.c;++f){d===s.s.r&&(c[f]=Ku(f));var p=c[f]+h,m=l?(t[d]||[])[f]:t[p];if(m&&"z"!=m.t)if("n"==m.t)(0|m.v)==m.v&&m.v>=-32768&&m.v<=32767?em(a,13,i(d,f,m.v)):em(a,14,o(d,f,m.v));else em(a,15,r(d,f,td(m).slice(0,239)))}return em(a,1),a.end()},book_to_wk3:function(t,e){var n=e||{};if(+n.codepage>=0&&qs(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var a=ju();em(a,0,function(t){var e=Fu(26);e.write_shift(2,4096),e.write_shift(2,4),e.write_shift(4,0);for(var n=0,a=0,r=0,i=0;i<t.SheetNames.length;++i){var o=t.SheetNames[i],s=t.Sheets[o];if(s&&s["!ref"]){++r;var l=Xu(s["!ref"]);n<l.e.r&&(n=l.e.r),a<l.e.c&&(a=l.e.c)}}n>8191&&(n=8191);return e.write_shift(2,n),e.write_shift(1,r),e.write_shift(1,a),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,1),e.write_shift(1,2),e.write_shift(4,0),e.write_shift(4,0),e}(t));for(var r=0,i=0;r<t.SheetNames.length;++r)(t.Sheets[t.SheetNames[r]]||{})["!ref"]&&em(a,27,g(t.SheetNames[r],i++));var o=0;for(r=0;r<t.SheetNames.length;++r){var s=t.Sheets[t.SheetNames[r]];if(s&&s["!ref"]){for(var l=Zu(s["!ref"]),c=Array.isArray(s),u=[],h=Math.min(l.e.r,8191),p=l.s.r;p<=h;++p)for(var m=qu(p),v=l.s.c;v<=l.e.c;++v){p===l.s.r&&(u[v]=Ku(v));var b=u[v]+m,_=c?(s[p]||[])[v]:s[b];if(_&&"z"!=_.t)if("n"==_.t)em(a,23,f(p,v,o,_.v));else em(a,22,d(p,v,o,td(_).slice(0,239)))}++o}}return em(a,1),a.end()},to_workbook:function(t,n){switch(n.type){case"base64":return e(il(tl(t)),n);case"binary":return e(il(t),n);case"buffer":case"array":return e(t,n)}throw"Unsupported type "+n.type}}}();var Fh=/^\s|\s$|[\t\n\r]/;function jh(t,e){if(!e.bookSST)return"";var n=[Nc];n[n.length]=Xc("sst",null,{xmlns:Qc[0],count:t.Count,uniqueCount:t.Unique});for(var a=0;a!=t.length;++a)if(null!=t[a]){var r=t[a],i="<si>";r.r?i+=r.r:(i+="<t",r.t||(r.t=""),r.t.match(Fh)&&(i+=' xml:space="preserve"'),i+=">"+Ic(r.t)+"</t>"),i+="</si>",n[n.length]=i}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var Bh=function(t,e){var n=!1;return null==e&&(n=!0,e=Fu(15+4*t.t.length)),e.write_shift(1,0),od(t.t,e),n?e.slice(0,e.l):e};function zh(t){var e=ju();Bu(e,159,function(t,e){return e||(e=Fu(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}(t));for(var n=0;n<t.length;++n)Bu(e,19,Bh(t[n]));return Bu(e,160),e.end()}function Uh(t){if(void 0!==Gs)return Gs.utils.encode(Us,t);for(var e=[],n=t.split(""),a=0;a<n.length;++a)e[a]=n[a].charCodeAt(0);return e}function Hh(t){var e,n,a=0,r=Uh(t),i=r.length+1;for((e=al(i))[0]=r.length,n=1;n!=i;++n)e[n]=r[n-1];for(n=i-1;n>=0;--n)a=((16384&a?1:0)|a<<1&32767)^e[n];return 52811^a}var Vh=function(){function t(t,n){switch(n.type){case"base64":return e(tl(t),n);case"binary":return e(t,n);case"buffer":return e(el&&Fs.isBuffer(t)?t.toString("binary"):sl(t),n);case"array":return e(xc(t),n)}throw new Error("Unrecognized type "+n.type)}function e(t,e){var n=(e||{}).dense?[]:{},a=t.match(/\\trowd.*?\\row\b/g);if(!a.length)throw new Error("RTF missing table");var r={s:{c:0,r:0},e:{c:0,r:a.length-1}};return a.forEach((function(t,e){Array.isArray(n)&&(n[e]=[]);for(var a,i=/\\\w+\b/g,o=0,s=-1;a=i.exec(t);){if("\\cell"===a[0]){var l=t.slice(o,i.lastIndex-a[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:"s"};Array.isArray(n)?n[e][s]=c:n[Yu({r:e,c:s})]=c}}o=i.lastIndex}s>r.e.c&&(r.e.c=s)})),n["!ref"]=Ju(r),n}return{to_workbook:function(e,n){return ed(t(e,n),n)},to_sheet:t,from_sheet:function(t){for(var e,n=["{\\rtf1\\ansi"],a=Zu(t["!ref"]),r=Array.isArray(t),i=a.s.r;i<=a.e.r;++i){n.push("\\trowd\\trautofit1");for(var o=a.s.c;o<=a.e.c;++o)n.push("\\cellx"+(o+1));for(n.push("\\pard\\intbl"),o=a.s.c;o<=a.e.c;++o){var s=Yu({r:i,c:o});(e=r?(t[i]||[])[o]:t[s])&&(null!=e.v||e.f&&!e.F)&&(n.push(" "+(e.w||(td(e),e.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function Wh(t){for(var e=0,n=1;3!=e;++e)n=256*n+(t[e]>255?255:t[e]<0?0:t[e]);return n.toString(16).toUpperCase().slice(1)}var qh=6,$h=qh;function Kh(t){return Math.floor((t+Math.round(128/$h)/256)*$h)}function Gh(t){return Math.floor((t-5)/$h*100+.5)/100}function Yh(t){return Math.round((t*$h+5)/$h*256)/256}function Xh(t){t.width?(t.wpx=Kh(t.width),t.wch=Gh(t.wpx),t.MDW=$h):t.wpx?(t.wch=Gh(t.wpx),t.width=Yh(t.wch),t.MDW=$h):"number"==typeof t.wch&&(t.width=Yh(t.wch),t.wpx=Kh(t.width),t.MDW=$h),t.customWidth&&delete t.customWidth}var Jh=96;function Zh(t){return 96*t/Jh}function Qh(t){return t*Jh/96}function tf(t,e){var n,a=[Nc,Xc("styleSheet",null,{xmlns:Qc[0],"xmlns:vt":Zc.vt})];return t.SSF&&null!=(n=function(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=t[a]&&(e[e.length]=Xc("numFmt",null,{numFmtId:a,formatCode:Ic(t[a])}))})),1===e.length?"":(e[e.length]="</numFmts>",e[0]=Xc("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}(t.SSF))&&(a[a.length]=n),a[a.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',a[a.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',a[a.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',a[a.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(t){var e=[];return e[e.length]=Xc("cellXfs",null),t.forEach((function(t){e[e.length]=Xc("xf",null,t)})),e[e.length]="</cellXfs>",2===e.length?"":(e[0]=Xc("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}(e.cellXfs))&&(a[a.length]=n),a[a.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',a[a.length]='<dxfs count="0"/>',a[a.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',a.length>2&&(a[a.length]="</styleSheet>",a[1]=a[1].replace("/>",">")),a.join("")}function ef(t,e,n){n||(n=Fu(6+4*e.length)),n.write_shift(2,t),od(e,n);var a=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),a}function nf(t,e){e||(e=Fu(153)),e.write_shift(2,20*t.sz),function(t,e){e||(e=Fu(2));var n=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);e.write_shift(1,n),e.write_shift(1,0)}(t,e),e.write_shift(2,t.bold?700:400);var n=0;"superscript"==t.vertAlign?n=1:"subscript"==t.vertAlign&&(n=2),e.write_shift(2,n),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),Pd(t.color,e);var a=0;return"major"==t.scheme&&(a=1),"minor"==t.scheme&&(a=2),e.write_shift(1,a),od(t.name,e),e.length>e.l?e.slice(0,e.l):e}var af,rf=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],of=Du;function sf(t,e){e||(e=Fu(84)),af||(af=uc(rf));var n=af[t.patternType];null==n&&(n=40),e.write_shift(4,n);var a=0;if(40!=n)for(Pd({auto:1},e),Pd({auto:1},e);a<12;++a)e.write_shift(4,0);else{for(;a<4;++a)e.write_shift(4,0);for(;a<12;++a)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function lf(t,e,n){n||(n=Fu(16)),n.write_shift(2,e||0),n.write_shift(2,t.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function cf(t,e){return e||(e=Fu(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var uf=Du;function df(t){Bu(t,613,rd(1)),Bu(t,46,function(t,e){return e||(e=Fu(51)),e.write_shift(1,0),cf(0,e),cf(0,e),cf(0,e),cf(0,e),cf(0,e),e.length>e.l?e.slice(0,e.l):e}()),Bu(t,614)}function hf(t){Bu(t,619,rd(1)),Bu(t,48,function(t,e){return e||(e=Fu(52)),e.write_shift(4,t.xfId),e.write_shift(2,1),e.write_shift(1,+t.builtinId),e.write_shift(1,0),bd(t.name||"",e),e.length>e.l?e.slice(0,e.l):e}({xfId:0,builtinId:0,name:"Normal"})),Bu(t,620)}function ff(t){Bu(t,508,function(t,e,n){var a=Fu(2052);return a.write_shift(4,t),bd(e,a),bd(n,a),a.length>a.l?a.slice(0,a.l):a}(0,"TableStyleMedium9","PivotStyleMedium4")),Bu(t,509)}function pf(t,e){var n=ju();return Bu(n,278),function(t,e){if(e){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(t){for(var a=t[0];a<=t[1];++a)null!=e[a]&&++n})),0!=n&&(Bu(t,615,rd(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=e[a]&&Bu(t,44,ef(a,e[a]))})),Bu(t,616))}}(n,t.SSF),function(t){Bu(t,611,rd(1)),Bu(t,43,nf({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Bu(t,612)}(n),function(t){Bu(t,603,rd(2)),Bu(t,45,sf({patternType:"none"})),Bu(t,45,sf({patternType:"gray125"})),Bu(t,604)}(n),df(n),function(t){Bu(t,626,rd(1)),Bu(t,47,lf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Bu(t,627)}(n),function(t,e){Bu(t,617,rd(e.length)),e.forEach((function(e){Bu(t,47,lf(e,0))})),Bu(t,618)}(n,e.cellXfs),hf(n),function(t){Bu(t,505,rd(0)),Bu(t,506)}(n),ff(n),Bu(n,279),n.end()}function mf(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var n=[Nc];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',n[n.length]='<a:font script="Hang" typeface="맑은 고딕"/>',n[n.length]='<a:font script="Hans" typeface="宋体"/>',n[n.length]='<a:font script="Hant" typeface="新細明體"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function gf(){var t=ju();return Bu(t,332),Bu(t,334,rd(1)),Bu(t,335,function(t){var e=Fu(12+2*t.name.length);return e.write_shift(4,t.flags),e.write_shift(4,t.version),od(t.name,e),e.slice(0,e.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Bu(t,336),Bu(t,339,function(t,e){var n=Fu(8+2*e.length);return n.write_shift(4,t),od(e,n),n.slice(0,n.l)}(1,"XLDAPR")),Bu(t,52),Bu(t,35,rd(514)),Bu(t,4096,rd(0)),Bu(t,4097,ch(1)),Bu(t,36),Bu(t,53),Bu(t,340),Bu(t,337,function(t,e){var n=Fu(8);return n.write_shift(4,t),n.write_shift(4,e?1:0),n}(1,!0)),Bu(t,51,function(t){var e=Fu(4+8*t.length);e.write_shift(4,t.length);for(var n=0;n<t.length;++n)e.write_shift(4,t[n][0]),e.write_shift(4,t[n][1]);return e}([[1,0]])),Bu(t,338),Bu(t,333),t.end()}function vf(){var t=[Nc];return t.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),t.join("")}var bf=1024;function _f(t,e){for(var n=[21600,21600],a=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),r=[Xc("xml",null,{"xmlns:v":tu.v,"xmlns:o":tu.o,"xmlns:x":tu.x,"xmlns:mv":tu.mv}).replace(/\/>/,">"),Xc("o:shapelayout",Xc("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Xc("v:shapetype",[Xc("v:stroke",null,{joinstyle:"miter"}),Xc("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:a})];bf<1e3*t;)bf+=1e3;return e.forEach((function(t){var e=Gu(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var a="gradient"==n.type?Xc("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Xc("v:fill",a,n);++bf,r=r.concat(["<v:shape"+Yc({id:"_x0000_s"+bf,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(t[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,Xc("v:shadow",null,{on:"t",obscured:"t"}),Xc("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Gc("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),Gc("x:AutoFill","False"),Gc("x:Row",String(e.r)),Gc("x:Column",String(e.c)),t[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])})),r.push("</xml>"),r.join("")}function yf(t){var e=[Nc,Xc("comments",null,{xmlns:Qc[0]})],n=[];return e.push("<authors>"),t.forEach((function(t){t[1].forEach((function(t){var a=Ic(t.a);-1==n.indexOf(a)&&(n.push(a),e.push("<author>"+a+"</author>")),t.T&&t.ID&&-1==n.indexOf("tc="+t.ID)&&(n.push("tc="+t.ID),e.push("<author>tc="+t.ID+"</author>"))}))})),0==n.length&&(n.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach((function(t){var a=0,r=[];if(t[1][0]&&t[1][0].T&&t[1][0].ID?a=n.indexOf("tc="+t[1][0].ID):t[1].forEach((function(t){t.a&&(a=n.indexOf(Ic(t.a))),r.push(t.t||"")})),e.push('<comment ref="'+t[0]+'" authorId="'+a+'"><text>'),r.length<=1)e.push(Gc("t",Ic(r[0]||"")));else{for(var i="Comment:\n "+r[0]+"\n",o=1;o<r.length;++o)i+="Reply:\n "+r[o]+"\n";e.push(Gc("t",Ic(i)))}e.push("</text></comment>")})),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function wf(t,e,n){var a=[Nc,Xc("ThreadedComments",null,{xmlns:Zc.TCMNT}).replace(/[\/]>/,">")];return t.forEach((function(t){var r="";(t[1]||[]).forEach((function(i,o){if(i.T){i.a&&-1==e.indexOf(i.a)&&e.push(i.a);var s={ref:t[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==o?r=s.id:s.parentId=r,i.ID=s.id,i.a&&(s.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(i.a)).slice(-12)+"}"),a.push(Xc("threadedComment",Gc("text",i.t||""),s))}else delete i.ID}))})),a.push("</ThreadedComments>"),a.join("")}var xf=id;function kf(t){var e=ju(),n=[];return Bu(e,628),Bu(e,630),t.forEach((function(t){t[1].forEach((function(t){n.indexOf(t.a)>-1||(n.push(t.a.slice(0,54)),Bu(e,632,function(t){return od(t.slice(0,54))}(t.a)))}))})),Bu(e,631),Bu(e,633),t.forEach((function(t){t[1].forEach((function(a){a.iauthor=n.indexOf(a.a);var r={s:Gu(t[0]),e:Gu(t[0])};Bu(e,635,function(t,e){return null==e&&(e=Fu(36)),e.write_shift(4,t[1].iauthor),Ad(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}([r,a])),a.t&&a.t.length>0&&Bu(e,637,ud(a)),Bu(e,636),delete a.iauthor}))})),Bu(e,634),Bu(e,629),e.end()}var Sf=["xlsb","xlsm","xlam","biff8","xla"];var Cf=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function n(t,n,a,r){var i=!1,o=!1;0==a.length?o=!0:"["==a.charAt(0)&&(o=!0,a=a.slice(1,-1)),0==r.length?i=!0:"["==r.charAt(0)&&(i=!0,r=r.slice(1,-1));var s=a.length>0?0|parseInt(a,10):0,l=r.length>0?0|parseInt(r,10):0;return i?l+=e.c:--l,o?s+=e.r:--s,n+(i?"":"$")+Ku(l)+(o?"":"$")+qu(s)}return function(a,r){return e=r,a.replace(t,n)}}(),Af=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Ef=function(){return function(t,e){return t.replace(Af,(function(t,n,a,r,i,o){var s=$u(r)-(a?0:e.c),l=Wu(o)-(i?0:e.r);return n+"R"+(0==l?"":i?l+1:"["+l+"]")+"C"+(0==s?"":a?s+1:"["+s+"]")}))}}();function Tf(t,e){return t.replace(Af,(function(t,n,a,r,i,o){return n+("$"==a?a+r:Ku($u(r)+e.c))+("$"==i?i+o:qu(Wu(o)+e.r))}))}function Pf(t){t.l+=1}function Nf(t,e){var n=t.read_shift(1==e?1:2);return[16383&n,n>>14&1,n>>15&1]}function Lf(t,e,n){var a=2;if(n){if(n.biff>=2&&n.biff<=5)return Of(t);12==n.biff&&(a=4)}var r=t.read_shift(a),i=t.read_shift(a),o=Nf(t,2),s=Nf(t,2);return{s:{r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Of(t){var e=Nf(t,2),n=Nf(t,2),a=t.read_shift(1),r=t.read_shift(1);return{s:{r:e[0],c:a,cRel:e[1],rRel:e[2]},e:{r:n[0],c:r,cRel:n[1],rRel:n[2]}}}function Mf(t,e,n){if(n&&n.biff>=2&&n.biff<=5)return function(t){var e=Nf(t,2),n=t.read_shift(1);return{r:e[0],c:n,cRel:e[1],rRel:e[2]}}(t);var a=t.read_shift(n&&12==n.biff?4:2),r=Nf(t,2);return{r:a,c:r[0],cRel:r[1],rRel:r[2]}}function Rf(t){var e=t.read_shift(2),n=t.read_shift(2);return{r:e,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function If(t){var e=1&t[t.l+1];return t.l+=4,[e,1]}function Df(t){return[t.read_shift(1),t.read_shift(1)]}function Ff(t,e){var n=[t.read_shift(1)];if(12==e)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=oh(t,1)?"TRUE":"FALSE",12!=e&&(t.l+=7);break;case 37:case 16:n[1]=Fd[t[t.l]],t.l+=12==e?4:8;break;case 0:t.l+=8;break;case 1:n[1]=Ed(t);break;case 2:n[1]=mh(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function jf(t,e,n){for(var a=t.read_shift(12==n.biff?4:2),r=[],i=0;i!=a;++i)r.push((12==n.biff?Cd:wh)(t,8));return r}function Bf(t,e,n){var a=0,r=0;12==n.biff?(a=t.read_shift(4),r=t.read_shift(4)):(r=1+t.read_shift(1),a=1+t.read_shift(2)),n.biff>=2&&n.biff<8&&(--a,0==--r&&(r=256));for(var i=0,o=[];i!=a&&(o[i]=[]);++i)for(var s=0;s!=r;++s)o[i][s]=Ff(t,n.biff);return o}function zf(t,e,n){return t.l+=2,[Rf(t)]}function Uf(t){return t.l+=6,[]}function Hf(t){return t.l+=2,[lh(t),1&t.read_shift(2)]}var Vf=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var Wf={1:{n:"PtgExp",f:function(t,e,n){return t.l++,n&&12==n.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:Du},3:{n:"PtgAdd",f:Pf},4:{n:"PtgSub",f:Pf},5:{n:"PtgMul",f:Pf},6:{n:"PtgDiv",f:Pf},7:{n:"PtgPower",f:Pf},8:{n:"PtgConcat",f:Pf},9:{n:"PtgLt",f:Pf},10:{n:"PtgLe",f:Pf},11:{n:"PtgEq",f:Pf},12:{n:"PtgGe",f:Pf},13:{n:"PtgGt",f:Pf},14:{n:"PtgNe",f:Pf},15:{n:"PtgIsect",f:Pf},16:{n:"PtgUnion",f:Pf},17:{n:"PtgRange",f:Pf},18:{n:"PtgUplus",f:Pf},19:{n:"PtgUminus",f:Pf},20:{n:"PtgPercent",f:Pf},21:{n:"PtgParen",f:Pf},22:{n:"PtgMissArg",f:Pf},23:{n:"PtgStr",f:function(t,e,n){return t.l++,dh(t,0,n)}},26:{n:"PtgSheet",f:function(t,e,n){return t.l+=5,t.l+=2,t.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(t,e,n){return t.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(t){return t.l++,Fd[t.read_shift(1)]}},29:{n:"PtgBool",f:function(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function(t){return t.l++,Ed(t)}},32:{n:"PtgArray",f:function(t,e,n){var a=(96&t[t.l++])>>5;return t.l+=2==n.biff?6:12==n.biff?14:7,[a]}},33:{n:"PtgFunc",f:function(t,e,n){var a=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(n&&n.biff<=3?1:2);return[cp[r],lp[r],a]}},34:{n:"PtgFuncVar",f:function(t,e,n){var a=t[t.l++],r=t.read_shift(1),i=n&&n.biff<=3?[88==a?-1:0,t.read_shift(1)]:function(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[r,(0===i[0]?lp:sp)[i[1]]]}},35:{n:"PtgName",f:function(t,e,n){var a=t.read_shift(1)>>>5&3,r=!n||n.biff>=8?4:2,i=t.read_shift(r);switch(n.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[a,0,i]}},36:{n:"PtgRef",f:function(t,e,n){var a=(96&t[t.l])>>5;return t.l+=1,[a,Mf(t,0,n)]}},37:{n:"PtgArea",f:function(t,e,n){return[(96&t[t.l++])>>5,Lf(t,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(t,e,n){var a=t.read_shift(1)>>>5&3;return t.l+=n&&2==n.biff?3:4,[a,t.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:Du},40:{n:"PtgMemNoMem",f:Du},41:{n:"PtgMemFunc",f:function(t,e,n){return[t.read_shift(1)>>>5&3,t.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(t,e,n){var a=t.read_shift(1)>>>5&3;return t.l+=4,n.biff<8&&t.l--,12==n.biff&&(t.l+=2),[a]}},43:{n:"PtgAreaErr",f:function(t,e,n){var a=(96&t[t.l++])>>5;return t.l+=n&&n.biff>8?12:n.biff<8?6:8,[a]}},44:{n:"PtgRefN",f:function(t,e,n){var a=(96&t[t.l])>>5;t.l+=1;var r=function(t,e,n){var a=n&&n.biff?n.biff:8;if(a>=2&&a<=5)return function(t){var e=t.read_shift(2),n=t.read_shift(1),a=(32768&e)>>15,r=(16384&e)>>14;return e&=16383,1==a&&e>=8192&&(e-=16384),1==r&&n>=128&&(n-=256),{r:e,c:n,cRel:r,rRel:a}}(t);var r=t.read_shift(a>=12?4:2),i=t.read_shift(2),o=(16384&i)>>14,s=(32768&i)>>15;if(i&=16383,1==s)for(;r>524287;)r-=1048576;if(1==o)for(;i>8191;)i-=16384;return{r,c:i,cRel:o,rRel:s}}(t,0,n);return[a,r]}},45:{n:"PtgAreaN",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=function(t,e,n){if(n.biff<8)return Of(t);var a=t.read_shift(12==n.biff?4:2),r=t.read_shift(12==n.biff?4:2),i=Nf(t,2),o=Nf(t,2);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r,c:o[0],cRel:o[1],rRel:o[2]}}}(t,0,n);return[a,r]}},46:{n:"PtgMemAreaN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function(t,e,n){return 5==n.biff?function(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2,"i");t.l+=8;var a=t.read_shift(2);return t.l+=12,[e,n,a]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function(t,e,n){var a=(96&t[t.l])>>5;t.l+=1;var r=t.read_shift(2);return n&&5==n.biff&&(t.l+=12),[a,r,Mf(t,0,n)]}},59:{n:"PtgArea3d",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=t.read_shift(2,"i");if(n)switch(n.biff){case 5:t.l+=12,6;break;case 12:12}return[a,r,Lf(t,0,n)]}},60:{n:"PtgRefErr3d",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=t.read_shift(2),i=4;if(n)switch(n.biff){case 5:i=15;break;case 12:i=6}return t.l+=i,[a,r]}},61:{n:"PtgAreaErr3d",f:function(t,e,n){var a=(96&t[t.l++])>>5,r=t.read_shift(2),i=8;if(n)switch(n.biff){case 5:t.l+=12,i=6;break;case 12:i=12}return t.l+=i,[a,r]}},255:{}},qf={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},$f={1:{n:"PtgElfLel",f:Hf},2:{n:"PtgElfRw",f:zf},3:{n:"PtgElfCol",f:zf},6:{n:"PtgElfRwV",f:zf},7:{n:"PtgElfColV",f:zf},10:{n:"PtgElfRadical",f:zf},11:{n:"PtgElfRadicalS",f:Uf},13:{n:"PtgElfColS",f:Uf},15:{n:"PtgElfColSV",f:Uf},16:{n:"PtgElfRadicalLel",f:Hf},25:{n:"PtgList",f:function(t){t.l+=2;var e=t.read_shift(2),n=t.read_shift(2),a=t.read_shift(4),r=t.read_shift(2),i=t.read_shift(2);return{ixti:e,coltype:3&n,rt:Vf[n>>2&31],idx:a,c:r,C:i}}},29:{n:"PtgSxName",f:function(t){return t.l+=2,[t.read_shift(4)]}},255:{}},Kf={0:{n:"PtgAttrNoop",f:function(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(t,e,n){var a=255&t[t.l+1]?1:0;return t.l+=n&&2==n.biff?3:4,[a]}},2:{n:"PtgAttrIf",f:function(t,e,n){var a=255&t[t.l+1]?1:0;return t.l+=2,[a,t.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(t,e,n){t.l+=2;for(var a=t.read_shift(n&&2==n.biff?1:2),r=[],i=0;i<=a;++i)r.push(t.read_shift(n&&2==n.biff?1:2));return r}},8:{n:"PtgAttrGoto",f:function(t,e,n){var a=255&t[t.l+1]?1:0;return t.l+=2,[a,t.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(t,e,n){t.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:If},33:{n:"PtgAttrBaxcel",f:If},64:{n:"PtgAttrSpace",f:function(t){return t.read_shift(2),Df(t)}},65:{n:"PtgAttrSpaceSemi",f:function(t){return t.read_shift(2),Df(t)}},128:{n:"PtgAttrIfError",f:function(t){var e=255&t[t.l+1]?1:0;return t.l+=2,[e,t.read_shift(2)]}},255:{}};function Gf(t,e,n,a){if(a.biff<8)return Du(t,e);for(var r=t.l+e,i=[],o=0;o!==n.length;++o)switch(n[o][0]){case"PtgArray":n[o][1]=Bf(t,0,a),i.push(n[o][1]);break;case"PtgMemArea":n[o][2]=jf(t,n[o][1],a),i.push(n[o][2]);break;case"PtgExp":a&&12==a.biff&&(n[o][1][1]=t.read_shift(4),i.push(n[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[o][0]}return 0!==(e=r-t.l)&&i.push(Du(t,e)),i}function Yf(t,e,n){for(var a,r,i=t.l+e,o=[];i!=t.l;)e=i-t.l,r=t[t.l],a=Wf[r]||Wf[qf[r]],24!==r&&25!==r||(a=(24===r?$f:Kf)[t[t.l+1]]),a&&a.f?o.push([a.n,a.f(t,e,n)]):Du(t,e);return o}function Xf(t){for(var e=[],n=0;n<t.length;++n){for(var a=t[n],r=[],i=0;i<a.length;++i){var o=a[i];if(o)if(2===o[0])r.push('"'+o[1].replace(/"/g,'""')+'"');else r.push(o[1]);else r.push("")}e.push(r.join(","))}return e.join(";")}var Jf={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Zf(t,e,n){if(!t)return"SH33TJSERR0";if(n.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var a=t.XTI[e];if(n.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),0==e?"":t.XTI[e-1];if(!a)return"SH33TJSERR1";var r="";if(n.biff>8)switch(t[a[0]][0]){case 357:return r=-1==a[1]?"#REF":t.SheetNames[a[1]],a[1]==a[2]?r:r+":"+t.SheetNames[a[2]];case 358:return null!=n.SID?t.SheetNames[n.SID]:"SH33TJSSAME"+t[a[0]][0];default:return"SH33TJSSRC"+t[a[0]][0]}switch(t[a[0]][0][0]){case 1025:return r=-1==a[1]?"#REF":t.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?r:r+":"+t.SheetNames[a[2]];case 14849:return t[a[0]].slice(1).map((function(t){return t.Name})).join(";;");default:return t[a[0]][0][3]?(r=-1==a[1]?"#REF":t[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?r:r+":"+t[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function Qf(t,e,n){var a=Zf(t,e,n);return"#REF"==a?a:function(t,e){if(!(t||e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}(a,n)}function tp(t,e,n,a,r){var i,o,s,l,c=r&&r.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},d=[],h=0,f=0,p="";if(!t[0]||!t[0][0])return"";for(var m=-1,g="",v=0,b=t[0].length;v<b;++v){var _=t[0][v];switch(_[0]){case"PtgUminus":d.push("-"+d.pop());break;case"PtgUplus":d.push("+"+d.pop());break;case"PtgPercent":d.push(d.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(i=d.pop(),o=d.pop(),m>=0){switch(t[0][m][1][0]){case 0:g=Sc(" ",t[0][m][1][1]);break;case 1:g=Sc("\r",t[0][m][1][1]);break;default:if(g="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}o+=g,m=-1}d.push(o+Jf[_[0]]+i);break;case"PtgIsect":i=d.pop(),o=d.pop(),d.push(o+" "+i);break;case"PtgUnion":i=d.pop(),o=d.pop(),d.push(o+","+i);break;case"PtgRange":i=d.pop(),o=d.pop(),d.push(o+":"+i);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":s=zu(_[1][1],u,r),d.push(Hu(s,c));break;case"PtgRefN":s=n?zu(_[1][1],n,r):_[1][1],d.push(Hu(s,c));break;case"PtgRef3d":h=_[1][1],s=zu(_[1][2],u,r);p=Qf(a,h,r);d.push(p+"!"+Hu(s,c));break;case"PtgFunc":case"PtgFuncVar":var y=_[1][0],w=_[1][1];y||(y=0);var x=0==(y&=127)?[]:d.slice(-y);d.length-=y,"User"===w&&(w=x.shift()),d.push(w+"("+x.join(",")+")");break;case"PtgBool":d.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":d.push(_[1]);break;case"PtgNum":d.push(String(_[1]));break;case"PtgStr":d.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=Uu(_[1][1],n?{s:n}:u,r),d.push(Vu(l,r));break;case"PtgArea":l=Uu(_[1][1],u,r),d.push(Vu(l,r));break;case"PtgArea3d":h=_[1][1],l=_[1][2],p=Qf(a,h,r),d.push(p+"!"+Vu(l,r));break;case"PtgAttrSum":d.push("SUM("+d.pop()+")");break;case"PtgName":f=_[1][2];var k=(a.names||[])[f-1]||(a[0]||[])[f],S=k?k.Name:"SH33TJSNAME"+String(f);S&&"_xlfn."==S.slice(0,6)&&!r.xlfn&&(S=S.slice(6)),d.push(S);break;case"PtgNameX":var C,A=_[1][1];if(f=_[1][2],!(r.biff<=5)){var E="";if(14849==((a[A]||[])[0]||[])[0]||(1025==((a[A]||[])[0]||[])[0]?a[A][f]&&a[A][f].itab>0&&(E=a.SheetNames[a[A][f].itab-1]+"!"):E=a.SheetNames[f-1]+"!"),a[A]&&a[A][f])E+=a[A][f].Name;else if(a[0]&&a[0][f])E+=a[0][f].Name;else{var T=(Zf(a,A,r)||"").split(";;");T[f-1]?E=T[f-1]:E+="SH33TJSERRX"}d.push(E);break}A<0&&(A=-A),a[A]&&(C=a[A][f]),C||(C={Name:"SH33TJSERRY"}),d.push(C.Name);break;case"PtgParen":var P="(",N=")";if(m>=0){switch(g="",t[0][m][1][0]){case 2:P=Sc(" ",t[0][m][1][1])+P;break;case 3:P=Sc("\r",t[0][m][1][1])+P;break;case 4:N=Sc(" ",t[0][m][1][1])+N;break;case 5:N=Sc("\r",t[0][m][1][1])+N;break;default:if(r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][m][1][0])}m=-1}d.push(P+d.pop()+N);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":d.push("#REF!");break;case"PtgExp":s={c:_[1][1],r:_[1][0]};var L={c:n.c,r:n.r};if(a.sharedf[Yu(s)]){var O=a.sharedf[Yu(s)];d.push(tp(O,u,L,a,r))}else{var M=!1;for(i=0;i!=a.arrayf.length;++i)if(o=a.arrayf[i],!(s.c<o[0].s.c||s.c>o[0].e.c||s.r<o[0].s.r||s.r>o[0].e.r)){d.push(tp(o[1],u,L,a,r)),M=!0;break}M||d.push(_[1])}break;case"PtgArray":d.push("{"+Xf(_[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgMissArg":d.push("");break;case"PtgList":d.push("Table"+_[1].idx+"[#"+_[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(_))}if(3!=r.biff&&m>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][v][0])){var R=!0;switch((_=t[0][m])[1][0]){case 4:R=!1;case 0:g=Sc(" ",_[1][1]);break;case 5:R=!1;case 1:g=Sc("\r",_[1][1]);break;default:if(g="",r.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}d.push((R?g:"")+d.pop()+(R?"":g)),m=-1}}if(d.length>1&&r.WTF)throw new Error("bad formula stack");return d[0]}function ep(t,e,n,a,r){var i=_h(e,n,r),o=function(t){if(null==t){var e=Fu(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}return Td("number"==typeof t?t:0)}(t.v),s=Fu(6);s.write_shift(2,33),s.write_shift(4,0);for(var l=Fu(t.bf.length),c=0;c<t.bf.length;++c)l[c]=t.bf[c];return ll([i,o,s,l])}function np(t,e,n){var a=t.read_shift(4),r=Yf(t,a,n),i=t.read_shift(4);return[r,i>0?Gf(t,i,r,n):null]}var ap=np,rp=np,ip=np,op=np,sp={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},lp={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},cp={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function up(t){return("of:="+t.replace(Af,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}var dp="undefined"!=typeof Map;function hp(t,e,n){var a=0,r=t.length;if(n){if(dp?n.has(e):Object.prototype.hasOwnProperty.call(n,e))for(var i=dp?n.get(e):n[e];a<i.length;++a)if(t[i[a]].t===e)return t.Count++,i[a]}else for(;a<r;++a)if(t[a].t===e)return t.Count++,a;return t[r]={t:e},t.Count++,t.Unique++,n&&(dp?(n.has(e)||n.set(e,[]),n.get(e).push(r)):(Object.prototype.hasOwnProperty.call(n,e)||(n[e]=[]),n[e].push(r))),r}function fp(t,e){var n={min:t+1,max:t+1},a=-1;return e.MDW&&($h=e.MDW),null!=e.width?n.customWidth=1:null!=e.wpx?a=Gh(e.wpx):null!=e.wch&&(a=e.wch),a>-1?(n.width=Yh(a),n.customWidth=1):null!=e.width&&(n.width=e.width),e.hidden&&(n.hidden=!0),null!=e.level&&(n.outlineLevel=n.level=e.level),n}function pp(t,e){if(t){var n=[.7,.7,.75,.75,.3,.3];"xlml"==e&&(n=[1,1,1,1,.5,.5]),null==t.left&&(t.left=n[0]),null==t.right&&(t.right=n[1]),null==t.top&&(t.top=n[2]),null==t.bottom&&(t.bottom=n[3]),null==t.header&&(t.header=n[4]),null==t.footer&&(t.footer=n[5])}}function mp(t,e,n){var a=n.revssf[null!=e.z?e.z:"General"],r=60,i=t.length;if(null==a&&n.ssf)for(;r<392;++r)if(null==n.ssf[r]){Ql(e.z,r),n.ssf[r]=e.z,n.revssf[e.z]=a=r;break}for(r=0;r!=i;++r)if(t[r].numFmtId===a)return r;return t[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function gp(t,e,n){if(t&&t["!ref"]){var a=Zu(t["!ref"]);if(a.e.c<a.s.c||a.e.r<a.s.r)throw new Error("Bad range ("+n+"): "+t["!ref"])}}var vp=["objects","scenarios","selectLockedCells","selectUnlockedCells"],bp=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function _p(t,e,n,a){if(t.c&&n["!comments"].push([e,t.c]),void 0===t.v&&"string"!=typeof t.f||"z"===t.t&&!t.f)return"";var r="",i=t.t,o=t.v;if("z"!==t.t)switch(t.t){case"b":r=t.v?"1":"0";break;case"n":r=""+t.v;break;case"e":r=Fd[t.v];break;case"d":a&&a.cellDates?r=wc(t.v,-1).toISOString():((t=kc(t)).t="n",r=""+(t.v=fc(wc(t.v)))),void 0===t.z&&(t.z=yl[14]);break;default:r=t.v}var s=Gc("v",Ic(r)),l={r:e},c=mp(a.cellXfs,t,a);switch(0!==c&&(l.s=c),t.t){case"n":case"z":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){s=Gc("v",""+hp(a.Strings,t.v,a.revStrings)),l.t="s";break}l.t="str"}if(t.t!=i&&(t.t=i,t.v=o),"string"==typeof t.f&&t.f){var u=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;s=Xc("f",Ic(t.f),u)+(null!=t.v?s:"")}return t.l&&n["!links"].push([e,t.l]),t.D&&(l.cm=1),Xc("c",s,l)}function yp(t,e,n,a){var r,i=[Nc,Xc("worksheet",null,{xmlns:Qc[0],"xmlns:r":Zc.r})],o=n.SheetNames[t],s="",l=n.Sheets[o];null==l&&(l={});var c=l["!ref"]||"A1",u=Zu(c);if(u.e.c>16383||u.e.r>1048575){if(e.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=Ju(u)}a||(a={}),l["!comments"]=[];var d=[];!function(t,e,n,a,r){var i=!1,o={},s=null;if("xlsx"!==a.bookType&&e.vbaraw){var l=e.SheetNames[n];try{e.Workbook&&(l=e.Workbook.Sheets[n].CodeName||l)}catch(t){}i=!0,o.codeName=qc(Ic(l))}if(t&&t["!outline"]){var c={summaryBelow:1,summaryRight:1};t["!outline"].above&&(c.summaryBelow=0),t["!outline"].left&&(c.summaryRight=0),s=(s||"")+Xc("outlinePr",null,c)}(i||s)&&(r[r.length]=Xc("sheetPr",s,o))}(l,n,t,e,i),i[i.length]=Xc("dimension",null,{ref:c}),i[i.length]=function(t,e,n,a){var r={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(r.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),Xc("sheetViews",Xc("sheetView",null,r),{})}(0,0,0,n),e.sheetFormat&&(i[i.length]=Xc("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(i[i.length]=function(t,e){for(var n,a=["<cols>"],r=0;r!=e.length;++r)(n=e[r])&&(a[a.length]=Xc("col",null,fp(r,n)));return a[a.length]="</cols>",a.join("")}(0,l["!cols"])),i[r=i.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(s=function(t,e,n,a){var r,i,o=[],s=[],l=Zu(t["!ref"]),c="",u="",d=[],h=0,f=0,p=t["!rows"],m=Array.isArray(t),g={r:u},v=-1;for(f=l.s.c;f<=l.e.c;++f)d[f]=Ku(f);for(h=l.s.r;h<=l.e.r;++h){for(s=[],u=qu(h),f=l.s.c;f<=l.e.c;++f){r=d[f]+u;var b=m?(t[h]||[])[f]:t[r];void 0!==b&&null!=(c=_p(b,r,t,e))&&s.push(c)}(s.length>0||p&&p[h])&&(g={r:u},p&&p[h]&&((i=p[h]).hidden&&(g.hidden=1),v=-1,i.hpx?v=Zh(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(g.ht=v,g.customHeight=1),i.level&&(g.outlineLevel=i.level)),o[o.length]=Xc("row",s.join(""),g))}if(p)for(;h<p.length;++h)p&&p[h]&&(g={r:h+1},(i=p[h]).hidden&&(g.hidden=1),v=-1,i.hpx?v=Zh(i.hpx):i.hpt&&(v=i.hpt),v>-1&&(g.ht=v,g.customHeight=1),i.level&&(g.outlineLevel=i.level),o[o.length]=Xc("row","",g));return o.join("")}(l,e,0,0),s.length>0&&(i[i.length]=s)),i.length>r+1&&(i[i.length]="</sheetData>",i[r]=i[r].replace("/>",">")),l["!protect"]&&(i[i.length]=function(t){var e={sheet:1};return vp.forEach((function(n){null!=t[n]&&t[n]&&(e[n]="1")})),bp.forEach((function(n){null==t[n]||t[n]||(e[n]="0")})),t.password&&(e.password=Hh(t.password).toString(16).toUpperCase()),Xc("sheetProtection",null,e)}(l["!protect"])),null!=l["!autofilter"]&&(i[i.length]=function(t,e,n,a){var r="string"==typeof t.ref?t.ref:Ju(t.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var i=n.Workbook.Names,o=Xu(r);o.s.r==o.e.r&&(o.e.r=Xu(e["!ref"]).e.r,r=Ju(o));for(var s=0;s<i.length;++s){var l=i[s];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==a){l.Ref="'"+n.SheetNames[a]+"'!"+r;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+n.SheetNames[a]+"'!"+r}),Xc("autoFilter",null,{ref:r})}(l["!autofilter"],l,n,t)),null!=l["!merges"]&&l["!merges"].length>0&&(i[i.length]=function(t){if(0===t.length)return"";for(var e='<mergeCells count="'+t.length+'">',n=0;n!=t.length;++n)e+='<mergeCell ref="'+Ju(t[n])+'"/>';return e+"</mergeCells>"}(l["!merges"]));var h,f,p=-1,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach((function(t){t[1].Target&&(h={ref:t[0]},"#"!=t[1].Target.charAt(0)&&(m=Wd(a,-1,Ic(t[1].Target).replace(/#.*$/,""),Ud.HLINK),h["r:id"]="rId"+m),(p=t[1].Target.indexOf("#"))>-1&&(h.location=Ic(t[1].Target.slice(p+1))),t[1].Tooltip&&(h.tooltip=Ic(t[1].Tooltip)),i[i.length]=Xc("hyperlink",null,h))})),i[i.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(i[i.length]=(pp(f=l["!margins"]),Xc("pageMargins",null,f))),e&&!e.ignoreEC&&null!=e.ignoreEC||(i[i.length]=Gc("ignoredErrors",Xc("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(m=Wd(a,-1,"../drawings/drawing"+(t+1)+".xml",Ud.DRAW),i[i.length]=Xc("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=d),l["!comments"].length>0&&(m=Wd(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Ud.VML),i[i.length]=Xc("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function wp(t,e,n,a){var r=function(t,e,n){var a=Fu(145),r=(n["!rows"]||[])[t]||{};a.write_shift(4,t),a.write_shift(4,0);var i=320;r.hpx?i=20*Zh(r.hpx):r.hpt&&(i=20*r.hpt),a.write_shift(2,i),a.write_shift(1,0);var o=0;r.level&&(o|=r.level),r.hidden&&(o|=16),(r.hpx||r.hpt)&&(o|=32),a.write_shift(1,o),a.write_shift(1,0);var s=0,l=a.l;a.l+=4;for(var c={r:t,c:0},u=0;u<16;++u)if(!(e.s.c>u+1<<10||e.e.c<u<<10)){for(var d=-1,h=-1,f=u<<10;f<u+1<<10;++f)c.c=f,(Array.isArray(n)?(n[c.r]||[])[c.c]:n[Yu(c)])&&(d<0&&(d=f),h=f);d<0||(++s,a.write_shift(4,d),a.write_shift(4,h))}var p=a.l;return a.l=l,a.write_shift(4,s),a.l=p,a.length>a.l?a.slice(0,a.l):a}(a,n,e);(r.length>17||(e["!rows"]||[])[a])&&Bu(t,0,r)}var xp=Cd,kp=Ad;function Sp(t){return[fd(t),Ed(t),"n"]}var Cp=Cd,Ap=Ad;var Ep=["left","right","top","bottom","header","footer"];function Tp(t,e,n,a,r,i,o){if(void 0===e.v)return!1;var s="";switch(e.t){case"b":s=e.v?"1":"0";break;case"d":(e=kc(e)).z=e.z||yl[14],e.v=fc(wc(e.v)),e.t="n";break;case"n":case"e":s=""+e.v;break;default:s=e.v}var l={r:n,c:a};switch(l.s=mp(r.cellXfs,e,r),e.l&&i["!links"].push([Yu(l),e.l]),e.c&&i["!comments"].push([Yu(l),e.c]),e.t){case"s":case"str":return r.bookSST?(s=hp(r.Strings,e.v,r.revStrings),l.t="s",l.v=s,o?Bu(t,18,function(t,e,n){return null==n&&(n=Fu(8)),pd(e,n),n.write_shift(4,e.v),n}(0,l)):Bu(t,7,function(t,e,n){return null==n&&(n=Fu(12)),hd(e,n),n.write_shift(4,e.v),n}(0,l))):(l.t="str",o?Bu(t,17,function(t,e,n){return null==n&&(n=Fu(8+4*t.v.length)),pd(e,n),od(t.v,n),n.length>n.l?n.slice(0,n.l):n}(e,l)):Bu(t,6,function(t,e,n){return null==n&&(n=Fu(12+4*t.v.length)),hd(e,n),od(t.v,n),n.length>n.l?n.slice(0,n.l):n}(e,l))),!0;case"n":return e.v==(0|e.v)&&e.v>-1e3&&e.v<1e3?o?Bu(t,13,function(t,e,n){return null==n&&(n=Fu(8)),pd(e,n),kd(t.v,n),n}(e,l)):Bu(t,2,function(t,e,n){return null==n&&(n=Fu(12)),hd(e,n),kd(t.v,n),n}(e,l)):o?Bu(t,16,function(t,e,n){return null==n&&(n=Fu(12)),pd(e,n),Td(t.v,n),n}(e,l)):Bu(t,5,function(t,e,n){return null==n&&(n=Fu(16)),hd(e,n),Td(t.v,n),n}(e,l)),!0;case"b":return l.t="b",o?Bu(t,15,function(t,e,n){return null==n&&(n=Fu(5)),pd(e,n),n.write_shift(1,t.v?1:0),n}(e,l)):Bu(t,4,function(t,e,n){return null==n&&(n=Fu(9)),hd(e,n),n.write_shift(1,t.v?1:0),n}(e,l)),!0;case"e":return l.t="e",o?Bu(t,14,function(t,e,n){return null==n&&(n=Fu(8)),pd(e,n),n.write_shift(1,t.v),n.write_shift(2,0),n.write_shift(1,0),n}(e,l)):Bu(t,3,function(t,e,n){return null==n&&(n=Fu(9)),hd(e,n),n.write_shift(1,t.v),n}(e,l)),!0}return o?Bu(t,12,function(t,e,n){return null==n&&(n=Fu(4)),pd(e,n)}(0,l)):Bu(t,1,function(t,e,n){return null==n&&(n=Fu(8)),hd(e,n)}(0,l)),!0}function Pp(t,e){e&&e["!merges"]&&(Bu(t,177,function(t,e){return null==e&&(e=Fu(4)),e.write_shift(4,t),e}(e["!merges"].length)),e["!merges"].forEach((function(e){Bu(t,176,Ap(e))})),Bu(t,178))}function Np(t,e){e&&e["!cols"]&&(Bu(t,390),e["!cols"].forEach((function(e,n){e&&Bu(t,60,function(t,e,n){null==n&&(n=Fu(18));var a=fp(t,e);n.write_shift(-4,t),n.write_shift(-4,t),n.write_shift(4,256*(a.width||10)),n.write_shift(4,0);var r=0;return e.hidden&&(r|=1),"number"==typeof a.width&&(r|=2),e.level&&(r|=e.level<<8),n.write_shift(2,r),n}(n,e))})),Bu(t,391))}function Lp(t,e){e&&e["!ref"]&&(Bu(t,648),Bu(t,649,function(t){var e=Fu(24);return e.write_shift(4,4),e.write_shift(4,1),Ad(t,e),e}(Zu(e["!ref"]))),Bu(t,650))}function Op(t,e,n){e["!links"].forEach((function(e){if(e[1].Target){var a=Wd(n,-1,e[1].Target.replace(/#.*$/,""),Ud.HLINK);Bu(t,494,function(t,e){var n=Fu(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Ad({s:Gu(t[0]),e:Gu(t[0])},n),wd("rId"+e,n);var a=t[1].Target.indexOf("#");return od((-1==a?"":t[1].Target.slice(a+1))||"",n),od(t[1].Tooltip||"",n),od("",n),n.slice(0,n.l)}(e,a))}})),delete e["!links"]}function Mp(t,e,n){Bu(t,133),Bu(t,137,function(t,e,n){null==n&&(n=Fu(30));var a=924;return(((e||{}).Views||[])[0]||{}).RTL&&(a|=32),n.write_shift(2,a),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Bu(t,138),Bu(t,134)}function Rp(t,e){e["!protect"]&&Bu(t,535,function(t,e){return null==e&&(e=Fu(66)),e.write_shift(2,t.password?Hh(t.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(n){n[1]?e.write_shift(4,null==t[n[0]]||t[n[0]]?0:1):e.write_shift(4,null!=t[n[0]]&&t[n[0]]?0:1)})),e}(e["!protect"]))}function Ip(t,e,n,a){var r=ju(),i=n.SheetNames[t],o=n.Sheets[i]||{},s=i;try{n&&n.Workbook&&(s=n.Workbook.Sheets[t].CodeName||s)}catch(t){}var l=Zu(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(e.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],Bu(r,129),(n.vbaraw||o["!outline"])&&Bu(r,147,function(t,e,n){null==n&&(n=Fu(84+4*t.length));var a=192;e&&(e.above&&(a&=-65),e.left&&(a&=-129)),n.write_shift(1,a);for(var r=1;r<3;++r)n.write_shift(1,0);return Pd({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),gd(t,n),n.slice(0,n.l)}(s,o["!outline"])),Bu(r,148,kp(l)),Mp(r,0,n.Workbook),Np(r,o),function(t,e,n,a){var r,i=Zu(e["!ref"]||"A1"),o="",s=[];Bu(t,145);var l=Array.isArray(e),c=i.e.r;e["!rows"]&&(c=Math.max(i.e.r,e["!rows"].length-1));for(var u=i.s.r;u<=c;++u){o=qu(u),wp(t,e,i,u);var d=!1;if(u<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){u===i.s.r&&(s[h]=Ku(h)),r=s[h]+o;var f=l?(e[u]||[])[h]:e[r];d=!!f&&Tp(t,f,u,h,a,e,d)}}Bu(t,146)}(r,o,0,e),Rp(r,o),function(t,e,n,a){if(e["!autofilter"]){var r=e["!autofilter"],i="string"==typeof r.ref?r.ref:Ju(r.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,s=Xu(i);s.s.r==s.e.r&&(s.e.r=Xu(e["!ref"]).e.r,i=Ju(s));for(var l=0;l<o.length;++l){var c=o[l];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==a){c.Ref="'"+n.SheetNames[a]+"'!"+i;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+n.SheetNames[a]+"'!"+i}),Bu(t,161,Ad(Zu(i))),Bu(t,162)}}(r,o,n,t),Pp(r,o),Op(r,o,a),o["!margins"]&&Bu(r,476,function(t,e){return null==e&&(e=Fu(48)),pp(t),Ep.forEach((function(n){Td(t[n],e)})),e}(o["!margins"])),e&&!e.ignoreEC&&null!=e.ignoreEC||Lp(r,o),function(t,e,n,a){if(e["!comments"].length>0){var r=Wd(a,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Ud.VML);Bu(t,551,wd("rId"+r)),e["!legacy"]=r}}(r,o,t,a),Bu(r,130),r.end()}var Dp=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];var Fp="][*?/\\".split("");function jp(t,e){if(t.length>31){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return Fp.forEach((function(a){if(-1!=t.indexOf(a)){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function Bp(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e=t.Workbook&&t.Workbook.Sheets||[];!function(t,e,n){t.forEach((function(a,r){jp(a);for(var i=0;i<r;++i)if(a==t[i])throw new Error("Duplicate Sheet Name: "+a);if(n){var o=e&&e[r]&&e[r].CodeName||a;if(95==o.charCodeAt(0)&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}}))}(t.SheetNames,e,!!t.vbaraw);for(var n=0;n<t.SheetNames.length;++n)gp(t.Sheets[t.SheetNames[n]],t.SheetNames[n],n)}function zp(t){var e=[Nc];e[e.length]=Xc("workbook",null,{xmlns:Qc[0],"xmlns:r":Zc.r});var n=t.Workbook&&(t.Workbook.Names||[]).length>0,a={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(Dp.forEach((function(e){null!=t.Workbook.WBProps[e[0]]&&t.Workbook.WBProps[e[0]]!=e[1]&&(a[e[0]]=t.Workbook.WBProps[e[0]])})),t.Workbook.WBProps.CodeName&&(a.codeName=t.Workbook.WBProps.CodeName,delete a.CodeName)),e[e.length]=Xc("workbookPr",null,a);var r=t.Workbook&&t.Workbook.Sheets||[],i=0;if(r&&r[0]&&r[0].Hidden){for(e[e.length]="<bookViews>",i=0;i!=t.SheetNames.length&&r[i]&&r[i].Hidden;++i);i==t.SheetNames.length&&(i=0),e[e.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",i=0;i!=t.SheetNames.length;++i){var o={name:Ic(t.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),r[i])switch(r[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden"}e[e.length]=Xc("sheet",null,o)}return e[e.length]="</sheets>",n&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach((function(t){var n={name:t.Name};t.Comment&&(n.comment=t.Comment),null!=t.Sheet&&(n.localSheetId=""+t.Sheet),t.Hidden&&(n.hidden="1"),t.Ref&&(e[e.length]=Xc("definedName",Ic(t.Ref),n))})),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function Up(t,e){return e||(e=Fu(127)),e.write_shift(4,t.Hidden),e.write_shift(4,t.iTabID),wd(t.strRelID,e),od(t.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function Hp(t,e){if(e.Workbook&&e.Workbook.Sheets){for(var n=e.Workbook.Sheets,a=0,r=-1,i=-1;a<n.length;++a)!n[a]||!n[a].Hidden&&-1==r?r=a:1==n[a].Hidden&&-1==i&&(i=a);i>r||(Bu(t,135),Bu(t,158,function(t,e){return e||(e=Fu(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,t),e.write_shift(4,t),e.write_shift(1,120),e.length>e.l?e.slice(0,e.l):e}(r)),Bu(t,136))}}function Vp(t,e){var n=ju();return Bu(n,131),Bu(n,128,function(t,e){e||(e=Fu(127));for(var n=0;4!=n;++n)e.write_shift(4,0);return od("SheetJS",e),od(Bs.version,e),od(Bs.version,e),od("7262",e),e.length>e.l?e.slice(0,e.l):e}()),Bu(n,153,function(t,e){e||(e=Fu(72));var n=0;return t&&t.filterPrivacy&&(n|=8),e.write_shift(4,n),e.write_shift(4,0),gd(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}(t.Workbook&&t.Workbook.WBProps||null)),Hp(n,t),function(t,e){Bu(t,143);for(var n=0;n!=e.SheetNames.length;++n)Bu(t,156,Up({Hidden:e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[n]&&e.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:e.SheetNames[n]}));Bu(t,144)}(n,t),Bu(n,132),n.end()}function Wp(t,e,n,a,r){return(".bin"===e.slice(-4)?Ip:yp)(t,n,a,r)}function qp(t,e,n){return(".bin"===e.slice(-4)?kf:yf)(t,n)}function $p(t,e){var n=[];return t.Props&&n.push(function(t,e){var n=[];return lc(th).map((function(t){for(var e=0;e<Kd.length;++e)if(Kd[e][1]==t)return Kd[e];for(e=0;e<Xd.length;++e)if(Xd[e][1]==t)return Xd[e];throw t})).forEach((function(a){if(null!=t[a[1]]){var r=e&&e.Props&&null!=e.Props[a[1]]?e.Props[a[1]]:t[a[1]];"date"===a[2]&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof r?r=String(r):!0===r||!1===r?r=r?"1":"0":r instanceof Date&&(r=new Date(r).toISOString().replace(/\.\d*Z/,"")),n.push(Gc(th[a[1]]||a[1],r))}})),Xc("DocumentProperties",n.join(""),{xmlns:tu.o})}(t.Props,e)),t.Custprops&&n.push(function(t,e){var n=["Worksheets","SheetNames"],a="CustomDocumentProperties",r=[];return t&&lc(t).forEach((function(e){if(Object.prototype.hasOwnProperty.call(t,e)){for(var a=0;a<Kd.length;++a)if(e==Kd[a][1])return;for(a=0;a<Xd.length;++a)if(e==Xd[a][1])return;for(a=0;a<n.length;++a)if(e==n[a])return;var i=t[e],o="string";"number"==typeof i?(o="float",i=String(i)):!0===i||!1===i?(o="boolean",i=i?"1":"0"):i=String(i),r.push(Xc(Dc(e),i,{"dt:dt":o}))}})),e&&lc(e).forEach((function(n){if(Object.prototype.hasOwnProperty.call(e,n)&&(!t||!Object.prototype.hasOwnProperty.call(t,n))){var a=e[n],i="string";"number"==typeof a?(i="float",a=String(a)):!0===a||!1===a?(i="boolean",a=a?"1":"0"):a instanceof Date?(i="dateTime.tz",a=a.toISOString()):a=String(a),r.push(Xc(Dc(n),a,{"dt:dt":i}))}})),"<"+a+' xmlns="'+tu.o+'">'+r.join("")+"</"+a+">"}(t.Props,t.Custprops)),n.join("")}function Kp(t){return Xc("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+Ef(t.Ref,{r:0,c:0})})}function Gp(t,e,n,a,r,i,o){if(!t||null==t.v&&null==t.f)return"";var s={};if(t.f&&(s["ss:Formula"]="="+Ic(Ef(t.f,o))),t.F&&t.F.slice(0,e.length)==e){var l=Gu(t.F.slice(e.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(t.l&&t.l.Target&&(s["ss:HRef"]=Ic(t.l.Target),t.l.Tooltip&&(s["x:HRefScreenTip"]=Ic(t.l.Tooltip))),n["!merges"])for(var c=n["!merges"],u=0;u!=c.length;++u)c[u].s.c==o.c&&c[u].s.r==o.r&&(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var d="",h="";switch(t.t){case"z":if(!a.sheetStubs)return"";break;case"n":d="Number",h=String(t.v);break;case"b":d="Boolean",h=t.v?"1":"0";break;case"e":d="Error",h=Fd[t.v];break;case"d":d="DateTime",h=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||yl[14]);break;case"s":d="String",h=((t.v||"")+"").replace(Mc,(function(t){return Oc[t]})).replace(Fc,(function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"}))}var f=mp(a.cellXfs,t,a);s["ss:StyleID"]="s"+(21+f),s["ss:Index"]=o.c+1;var p=null!=t.v?h:"",m="z"==t.t?"":'<Data ss:Type="'+d+'">'+p+"</Data>";return(t.c||[]).length>0&&(m+=t.c.map((function(t){var e=Xc("ss:Data",(t.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return Xc("Comment",e,{"ss:Author":t.a})})).join("")),Xc("Cell",m,s)}function Yp(t,e){var n='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=Qh(e.hpt)),e.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(n+=' ss:Hidden="1"')),n+">"}function Xp(t,e,n){var a=[],r=n.SheetNames[t],i=n.Sheets[r],o=i?function(t,e,n,a){if(!t)return"";if(!((a||{}).Workbook||{}).Names)return"";for(var r=a.Workbook.Names,i=[],o=0;o<r.length;++o){var s=r[o];s.Sheet==n&&(s.Name.match(/^_xlfn\./)||i.push(Kp(s)))}return i.join("")}(i,0,t,n):"";return o.length>0&&a.push("<Names>"+o+"</Names>"),o=i?function(t,e,n,a){if(!t["!ref"])return"";var r=Zu(t["!ref"]),i=t["!merges"]||[],o=0,s=[];t["!cols"]&&t["!cols"].forEach((function(t,e){Xh(t);var n=!!t.width,a=fp(e,t),r={"ss:Index":e+1};n&&(r["ss:Width"]=Kh(a.width)),t.hidden&&(r["ss:Hidden"]="1"),s.push(Xc("Column",null,r))}));for(var l=Array.isArray(t),c=r.s.r;c<=r.e.r;++c){for(var u=[Yp(c,(t["!rows"]||[])[c])],d=r.s.c;d<=r.e.c;++d){var h=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>d||i[o].s.r>c||i[o].e.c<d||i[o].e.r<c)){i[o].s.c==d&&i[o].s.r==c||(h=!0);break}if(!h){var f={r:c,c:d},p=Yu(f),m=l?(t[c]||[])[d]:t[p];u.push(Gp(m,p,t,e,0,0,f))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}(i,e):"",o.length>0&&a.push("<Table>"+o+"</Table>"),a.push(function(t,e,n,a){if(!t)return"";var r=[];if(t["!margins"]&&(r.push("<PageSetup>"),t["!margins"].header&&r.push(Xc("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&r.push(Xc("Footer",null,{"x:Margin":t["!margins"].footer})),r.push(Xc("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),r.push("</PageSetup>")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[n])if(a.Workbook.Sheets[n].Hidden)r.push(Xc("Visible",1==a.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<n&&(!a.Workbook.Sheets[i]||a.Workbook.Sheets[i].Hidden);++i);i==n&&r.push("<Selected/>")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&r.push("<DisplayRightToLeft/>"),t["!protect"]&&(r.push(Gc("ProtectContents","True")),t["!protect"].objects&&r.push(Gc("ProtectObjects","True")),t["!protect"].scenarios&&r.push(Gc("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null==t["!protect"].selectUnlockedCells||t["!protect"].selectUnlockedCells||r.push(Gc("EnableSelection","UnlockedCells")):r.push(Gc("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(e){t["!protect"][e[0]]&&r.push("<"+e[1]+"/>")}))),0==r.length?"":Xc("WorksheetOptions",r.join(""),{xmlns:tu.x})}(i,0,t,n)),a.join("")}function Jp(t,e){e||(e={}),t.SSF||(t.SSF=kc(yl)),t.SSF&&(ec(),tc(t.SSF),e.revssf=dc(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],mp(e.cellXfs,{},{revssf:{General:0}}));var n=[];n.push($p(t,e)),n.push(""),n.push(""),n.push("");for(var a=0;a<t.SheetNames.length;++a)n.push(Xc("Worksheet",Xp(a,e,t),{"ss:Name":Ic(t.SheetNames[a])}));return n[2]=function(t,e){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach((function(t,e){var a=[];a.push(Xc("NumberFormat",null,{"ss:Format":Ic(yl[t.numFmtId])}));var r={"ss:ID":"s"+(21+e)};n.push(Xc("Style",a.join(""),r))})),Xc("Styles",n.join(""))}(0,e),n[3]=function(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,n=[],a=0;a<e.length;++a){var r=e[a];null==r.Sheet&&(r.Name.match(/^_xlfn\./)||n.push(Kp(r)))}return Xc("Names",n.join(""))}(t),Nc+Xc("Workbook",n.join(""),{xmlns:tu.ss,"xmlns:o":tu.o,"xmlns:x":tu.x,"xmlns:ss":tu.ss,"xmlns:dt":tu.dt,"xmlns:html":tu.html})}var Zp={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Qp(t,e){var n=e||{},a=rc.utils.cfb_new({root:"R"}),r="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":r="/Workbook",n.biff=8;break;case"biff5":r="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return rc.utils.cfb_add(a,r,um(t,n)),8==n.biff&&(t.Props||t.Custprops)&&function(t,e){var n,a=[],r=[],i=[],o=0,s=cc(Md,"n"),l=cc(Rd,"n");if(t.Props)for(n=lc(t.Props),o=0;o<n.length;++o)(Object.prototype.hasOwnProperty.call(s,n[o])?a:Object.prototype.hasOwnProperty.call(l,n[o])?r:i).push([n[o],t.Props[n[o]]]);if(t.Custprops)for(n=lc(t.Custprops),o=0;o<n.length;++o)Object.prototype.hasOwnProperty.call(t.Props||{},n[o])||(Object.prototype.hasOwnProperty.call(s,n[o])?a:Object.prototype.hasOwnProperty.call(l,n[o])?r:i).push([n[o],t.Custprops[n[o]]]);var c=[];for(o=0;o<i.length;++o)nh.indexOf(i[o][0])>-1||Jd.indexOf(i[o][0])>-1||null!=i[o][1]&&c.push(i[o]);r.length&&rc.utils.cfb_add(e,"/SummaryInformation",ih(r,Zp.SI,l,Rd)),(a.length||c.length)&&rc.utils.cfb_add(e,"/DocumentSummaryInformation",ih(a,Zp.DSI,s,Md,c.length?c:null,Zp.UDI))}(t,a),8==n.biff&&t.vbaraw&&function(t,e){e.FullPaths.forEach((function(n,a){if(0!=a){var r=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==r.slice(-1)&&rc.utils.cfb_add(t,r,e.FileIndex[a].content)}}))}(a,rc.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),a}var tm={0:{f:function(t,e){var n={},a=t.l+e;n.r=t.read_shift(4),t.l+=4;var r=t.read_shift(2);t.l+=1;var i=t.read_shift(1);return t.l=a,7&i&&(n.level=7&i),16&i&&(n.hidden=!0),32&i&&(n.hpt=r/20),n}},1:{f:function(t){return[dd(t)]}},2:{f:function(t){return[dd(t),xd(t),"n"]}},3:{f:function(t){return[dd(t),t.read_shift(1),"e"]}},4:{f:function(t){return[dd(t),t.read_shift(1),"b"]}},5:{f:function(t){return[dd(t),Ed(t),"n"]}},6:{f:function(t){return[dd(t),id(t),"str"]}},7:{f:function(t){return[dd(t),t.read_shift(4),"s"]}},8:{f:function(t,e,n){var a=t.l+e,r=dd(t);r.r=n["!row"];var i=[r,id(t),"str"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},9:{f:function(t,e,n){var a=t.l+e,r=dd(t);r.r=n["!row"];var i=[r,Ed(t),"n"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},10:{f:function(t,e,n){var a=t.l+e,r=dd(t);r.r=n["!row"];var i=[r,t.read_shift(1),"b"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},11:{f:function(t,e,n){var a=t.l+e,r=dd(t);r.r=n["!row"];var i=[r,t.read_shift(1),"e"];if(n.cellFormula){t.l+=2;var o=rp(t,a-t.l,n);i[3]=tp(o,0,r,n.supbooks,n)}else t.l=a;return i}},12:{f:function(t){return[fd(t)]}},13:{f:function(t){return[fd(t),xd(t),"n"]}},14:{f:function(t){return[fd(t),t.read_shift(1),"e"]}},15:{f:function(t){return[fd(t),t.read_shift(1),"b"]}},16:{f:Sp},17:{f:function(t){return[fd(t),id(t),"str"]}},18:{f:function(t){return[fd(t),t.read_shift(4),"s"]}},19:{f:ld},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(t,e,n){var a=t.l+e;t.l+=4,t.l+=1;var r=t.read_shift(4),i=_d(t),o=ip(t,0,n),s=vd(t);t.l=a;var l={Name:i,Ptg:o};return r<268435455&&(l.Sheet=r),s&&(l.Comment=s),l}},40:{},42:{},43:{f:function(t,e,n){var a={};a.sz=t.read_shift(2)/20;var r=function(t){var e=t.read_shift(1);return t.l++,{fBold:1&e,fItalic:2&e,fUnderline:4&e,fStrikeout:8&e,fOutline:16&e,fShadow:32&e,fCondense:64&e,fExtend:128&e}}(t);switch(r.fItalic&&(a.italic=1),r.fCondense&&(a.condense=1),r.fExtend&&(a.extend=1),r.fShadow&&(a.shadow=1),r.fOutline&&(a.outline=1),r.fStrikeout&&(a.strike=1),700===t.read_shift(2)&&(a.bold=1),t.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript"}var i=t.read_shift(1);0!=i&&(a.underline=i);var o=t.read_shift(1);o>0&&(a.family=o);var s=t.read_shift(1);switch(s>0&&(a.charset=s),t.l++,a.color=function(t){var e={},n=t.read_shift(1)>>>1,a=t.read_shift(1),r=t.read_shift(2,"i"),i=t.read_shift(1),o=t.read_shift(1),s=t.read_shift(1);switch(t.l++,n){case 0:e.auto=1;break;case 1:e.index=a;var l=Dd[a];l&&(e.rgb=Wh(l));break;case 2:e.rgb=Wh([i,o,s]);break;case 3:e.theme=a}return 0!=r&&(e.tint=r>0?r/32767:r/32768),e}(t),t.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor"}return a.name=id(t),a}},44:{f:function(t,e){return[t.read_shift(2),id(t)]}},45:{f:of},46:{f:uf},47:{f:function(t,e){var n=t.l+e,a=t.read_shift(2),r=t.read_shift(2);return t.l=n,{ixfe:a,numFmtId:r}}},48:{},49:{f:function(t){return t.read_shift(4,"i")}},50:{},51:{f:function(t){for(var e=[],n=t.read_shift(4);n-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Nh},62:{f:function(t){return[dd(t),ld(t),"is"]}},63:{f:function(t){var e={};e.i=t.read_shift(4);var n={};n.r=t.read_shift(4),n.c=t.read_shift(4),e.r=Yu(n);var a=t.read_shift(1);return 2&a&&(e.l="1"),8&a&&(e.a="1"),e}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Du,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(t){var e=t.read_shift(2);return t.l+=28,{RTL:32&e}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(t,e){var n={},a=t[t.l];return++t.l,n.above=!(64&a),n.left=!(128&a),t.l+=18,n.name=md(t,e-19),n}},148:{f:xp,p:16},151:{f:function(){}},152:{},153:{f:function(t,e){var n={},a=t.read_shift(4);n.defaultThemeVersion=t.read_shift(4);var r=e>8?id(t):"";return r.length>0&&(n.CodeName=r),n.autoCompressPictures=!!(65536&a),n.backupFile=!!(64&a),n.checkCompatibility=!!(4096&a),n.date1904=!!(1&a),n.filterPrivacy=!!(8&a),n.hidePivotFieldList=!!(1024&a),n.promptedSolutions=!!(16&a),n.publishItems=!!(2048&a),n.refreshAllConnections=!!(262144&a),n.saveExternalLinkValues=!!(128&a),n.showBorderUnselectedTables=!!(4&a),n.showInkAnnotation=!!(32&a),n.showObjects=["all","placeholders","none"][a>>13&3],n.showPivotChartFilter=!!(32768&a),n.updateLinks=["userSet","never","always"][a>>8&3],n}},154:{},155:{},156:{f:function(t,e){var n={};return n.Hidden=t.read_shift(4),n.iTabID=t.read_shift(4),n.strRelID=yd(t,e-8),n.name=id(t),n}},157:{},158:{},159:{T:1,f:function(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Cd},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Cp},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:id(t)}}},336:{T:-1},337:{f:function(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:yd},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Eh},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(t,e,n){var a=t.l+e,r=Sd(t),i=t.read_shift(1),o=[r];if(o[2]=i,n.cellFormula){var s=ap(t,a-t.l,n);o[1]=s}else t.l=a;return o}},427:{f:function(t,e,n){var a=t.l+e,r=[Cd(t,16)];if(n.cellFormula){var i=op(t,a-t.l,n);r[1]=i,t.l=a}else t.l=a;return r}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(t){var e={};return Ep.forEach((function(n){e[n]=Ed(t)})),e}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(t,e){var n=t.l+e,a=Cd(t,16),r=vd(t),i=id(t),o=id(t),s=id(t);t.l=n;var l={rfx:a,relId:r,loc:i,display:s};return o&&(l.Tooltip=o),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:yd},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:xf},633:{T:1},634:{T:-1},635:{T:1,f:function(t){var e={};e.iauthor=t.read_shift(4);var n=Cd(t,16);return e.rfx=n.s,e.ref=Yu(n.s),t.l+=16,e}},636:{T:-1},637:{f:cd},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(t,e){return t.l+=10,{name:id(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function em(t,e,n,a){var r=e;if(!isNaN(r)){var i=a||(n||[]).length||0,o=t.next(4);o.write_shift(2,r),o.write_shift(2,i),i>0&&wu(n)&&t.push(n)}}function nm(t,e,n){return t||(t=Fu(7)),t.write_shift(2,e),t.write_shift(2,n),t.write_shift(2,0),t.write_shift(1,0),t}function am(t,e,n,a){if(null!=e.v)switch(e.t){case"d":case"n":var r="d"==e.t?fc(wc(e.v)):e.v;return void(r==(0|r)&&r>=0&&r<65536?em(t,2,function(t,e,n){var a=Fu(9);return nm(a,t,e),a.write_shift(2,n),a}(n,a,r)):em(t,3,function(t,e,n){var a=Fu(15);return nm(a,t,e),a.write_shift(8,n,"f"),a}(n,a,r)));case"b":case"e":return void em(t,5,function(t,e,n,a){var r=Fu(9);return nm(r,t,e),uh(n,a||"b",r),r}(n,a,e.v,e.t));case"s":case"str":return void em(t,4,function(t,e,n){var a=Fu(8+2*n.length);return nm(a,t,e),a.write_shift(1,n.length),a.write_shift(n.length,n,"sbcs"),a.l<a.length?a.slice(0,a.l):a}(n,a,(e.v||"").slice(0,255)))}em(t,1,nm(null,n,a))}function rm(t,e){var n=e||{};null!=Js&&null==n.dense&&(n.dense=Js);for(var a=ju(),r=0,i=0;i<t.SheetNames.length;++i)t.SheetNames[i]==n.sheet&&(r=i);if(0==r&&n.sheet&&t.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return em(a,4==n.biff?1033:3==n.biff?521:9,kh(0,16,n)),function(t,e,n,a){var r,i=Array.isArray(e),o=Zu(e["!ref"]||"A1"),s="",l=[];if(o.e.c>255||o.e.r>16383){if(a.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),r=Ju(o)}for(var c=o.s.r;c<=o.e.r;++c){s=qu(c);for(var u=o.s.c;u<=o.e.c;++u){c===o.s.r&&(l[u]=Ku(u)),r=l[u]+s;var d=i?(e[c]||[])[u]:e[r];d&&am(t,d,c,u)}}}(a,t.Sheets[t.SheetNames[r]],0,n),em(a,10),a.end()}function im(t,e,n){em(t,49,function(t,e){var n=t.name||"Arial",a=e&&5==e.biff,r=Fu(a?15+n.length:16+2*n.length);return r.write_shift(2,20*(t.sz||12)),r.write_shift(4,0),r.write_shift(2,400),r.write_shift(4,0),r.write_shift(2,0),r.write_shift(1,n.length),a||r.write_shift(1,1),r.write_shift((a?1:2)*n.length,n,a?"sbcs":"utf16le"),r}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function om(t,e){if(e){var n=0;e.forEach((function(e,a){++n<=256&&e&&em(t,125,function(t,e){var n=Fu(12);n.write_shift(2,e),n.write_shift(2,e),n.write_shift(2,256*t.width),n.write_shift(2,0);var a=0;return t.hidden&&(a|=1),n.write_shift(1,a),a=t.level||0,n.write_shift(1,a),n.write_shift(2,0),n}(fp(a,e),a))}))}}function sm(t,e,n,a,r){var i=16+mp(r.cellXfs,e,r);if(null!=e.v||e.bf)if(e.bf)em(t,6,ep(e,n,a,0,i));else switch(e.t){case"d":case"n":em(t,515,function(t,e,n,a){var r=Fu(14);return _h(t,e,a,r),Td(n,r),r}(n,a,"d"==e.t?fc(wc(e.v)):e.v,i));break;case"b":case"e":em(t,517,function(t,e,n,a,r,i){var o=Fu(8);return _h(t,e,a,o),uh(n,i,o),o}(n,a,e.v,i,0,e.t));break;case"s":case"str":if(r.bookSST)em(t,253,function(t,e,n,a){var r=Fu(10);return _h(t,e,a,r),r.write_shift(4,n),r}(n,a,hp(r.Strings,e.v,r.revStrings),i));else em(t,516,function(t,e,n,a,r){var i=!r||8==r.biff,o=Fu(+i+8+(1+i)*n.length);return _h(t,e,a,o),o.write_shift(2,n.length),i&&o.write_shift(1,1),o.write_shift((1+i)*n.length,n,i?"utf16le":"sbcs"),o}(n,a,(e.v||"").slice(0,255),i,r));break;default:em(t,513,_h(n,a,i))}else em(t,513,_h(n,a,i))}function lm(t,e,n){var a,r=ju(),i=n.SheetNames[t],o=n.Sheets[i]||{},s=(n||{}).Workbook||{},l=(s.Sheets||[])[t]||{},c=Array.isArray(o),u=8==e.biff,d="",h=[],f=Zu(o["!ref"]||"A1"),p=u?65536:16384;if(f.e.c>255||f.e.r>=p){if(e.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,p-1)}em(r,2057,kh(0,16,e)),em(r,13,ch(1)),em(r,12,ch(100)),em(r,15,sh(!0)),em(r,17,sh(!1)),em(r,16,Td(.001)),em(r,95,sh(!0)),em(r,42,sh(!1)),em(r,43,sh(!1)),em(r,130,ch(1)),em(r,128,function(t){var e=Fu(8);return e.write_shift(4,0),e.write_shift(2,t[0]?t[0]+1:0),e.write_shift(2,t[1]?t[1]+1:0),e}([0,0])),em(r,131,sh(!1)),em(r,132,sh(!1)),u&&om(r,o["!cols"]),em(r,512,function(t,e){var n=8!=e.biff&&e.biff?2:4,a=Fu(2*n+6);return a.write_shift(n,t.s.r),a.write_shift(n,t.e.r+1),a.write_shift(2,t.s.c),a.write_shift(2,t.e.c+1),a.write_shift(2,0),a}(f,e)),u&&(o["!links"]=[]);for(var m=f.s.r;m<=f.e.r;++m){d=qu(m);for(var g=f.s.c;g<=f.e.c;++g){m===f.s.r&&(h[g]=Ku(g)),a=h[g]+d;var v=c?(o[m]||[])[g]:o[a];v&&(sm(r,v,m,g,e),u&&v.l&&o["!links"].push([a,v.l]))}}var b=l.CodeName||l.name||i;return u&&em(r,574,function(t){var e=Fu(18),n=1718;return t&&t.RTL&&(n|=64),e.write_shift(2,n),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}((s.Views||[])[0])),u&&(o["!merges"]||[]).length&&em(r,229,function(t){var e=Fu(2+8*t.length);e.write_shift(2,t.length);for(var n=0;n<t.length;++n)xh(t[n],e);return e}(o["!merges"])),u&&function(t,e){for(var n=0;n<e["!links"].length;++n){var a=e["!links"][n];em(t,440,Th(a)),a[1].Tooltip&&em(t,2048,Ph(a))}delete e["!links"]}(r,o),em(r,442,gh(b)),u&&function(t,e){var n=Fu(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),em(t,2151,n),(n=Fu(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),xh(Zu(e["!ref"]||"A1"),n),n.write_shift(4,4),em(t,2152,n)}(r,o),em(r,10),r.end()}function cm(t,e,n){var a=ju(),r=(t||{}).Workbook||{},i=r.Sheets||[],o=r.WBProps||{},s=8==n.biff,l=5==n.biff;(em(a,2057,kh(0,5,n)),"xla"==n.bookType&&em(a,135),em(a,225,s?ch(1200):null),em(a,193,function(t,e){e||(e=Fu(t));for(var n=0;n<t;++n)e.write_shift(1,0);return e}(2)),l&&em(a,191),l&&em(a,192),em(a,226),em(a,92,function(t,e){var n=!e||8==e.biff,a=Fu(n?112:54);for(a.write_shift(8==e.biff?2:1,7),n&&a.write_shift(1,0),a.write_shift(4,859007059),a.write_shift(4,5458548|(n?0:536870912));a.l<a.length;)a.write_shift(1,n?0:32);return a}(0,n)),em(a,66,ch(s?1200:1252)),s&&em(a,353,ch(0)),s&&em(a,448),em(a,317,function(t){for(var e=Fu(2*t),n=0;n<t;++n)e.write_shift(2,n+1);return e}(t.SheetNames.length)),s&&t.vbaraw&&em(a,211),s&&t.vbaraw)&&em(a,442,gh(o.CodeName||"ThisWorkbook"));em(a,156,ch(17)),em(a,25,sh(!1)),em(a,18,sh(!1)),em(a,19,ch(0)),s&&em(a,431,sh(!1)),s&&em(a,444,ch(0)),em(a,61,function(){var t=Fu(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}()),em(a,64,sh(!1)),em(a,141,ch(0)),em(a,34,sh("true"==function(t){return t.Workbook&&t.Workbook.WBProps&&Bc(t.Workbook.WBProps.date1904)?"true":"false"}(t))),em(a,14,sh(!0)),s&&em(a,439,sh(!1)),em(a,218,ch(0)),im(a,0,n),function(t,e,n){e&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(a){for(var r=a[0];r<=a[1];++r)null!=e[r]&&em(t,1054,Ch(r,e[r],n))}))}(a,t.SSF,n),function(t,e){for(var n=0;n<16;++n)em(t,224,Ah({numFmtId:0,style:!0},0,e));e.cellXfs.forEach((function(n){em(t,224,Ah(n,0,e))}))}(a,n),s&&em(a,352,sh(!1));var c=a.end(),u=ju();s&&em(u,140,function(t){return t||(t=Fu(4)),t.write_shift(2,1),t.write_shift(2,1),t}()),s&&n.Strings&&function(t,e,n,a){var r=a||(n||[]).length||0;if(r<=8224)return em(t,e,n,r);var i=e;if(!isNaN(i)){for(var o=n.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=t.next(4);for(u.write_shift(2,i),u.write_shift(2,c),t.push(n.slice(l,l+c)),l+=c;l<r;){for((u=t.next(4)).write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;u.write_shift(2,c),t.push(n.slice(l,l+c)),l+=c}}}(u,252,function(t,e){var n=Fu(8);n.write_shift(4,t.Count),n.write_shift(4,t.Unique);for(var a=[],r=0;r<t.length;++r)a[r]=hh(t[r]);var i=ll([n].concat(a));return i.parts=[n.length].concat(a.map((function(t){return t.length}))),i}(n.Strings)),em(u,10);var d=u.end(),h=ju(),f=0,p=0;for(p=0;p<t.SheetNames.length;++p)f+=(s?12:11)+(s?2:1)*t.SheetNames[p].length;var m=c.length+f+d.length;for(p=0;p<t.SheetNames.length;++p){em(h,133,Sh({pos:m,hs:(i[p]||{}).Hidden||0,dt:0,name:t.SheetNames[p]},n)),m+=e[p].length}var g=h.end();if(f!=g.length)throw new Error("BS8 "+f+" != "+g.length);var v=[];return c.length&&v.push(c),g.length&&v.push(g),d.length&&v.push(d),ll(v)}function um(t,e){for(var n=0;n<=t.SheetNames.length;++n){var a=t.Sheets[t.SheetNames[n]];if(a&&a["!ref"])Xu(a["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+t.SheetNames[n]+"' extends beyond column IV (255). Data may be lost.")}var r=e||{};switch(r.biff||2){case 8:case 5:return function(t,e){var n=e||{},a=[];t&&!t.SSF&&(t.SSF=kc(yl)),t&&t.SSF&&(ec(),tc(t.SSF),n.revssf=dc(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,zm(n),n.cellXfs=[],mp(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var r=0;r<t.SheetNames.length;++r)a[a.length]=lm(r,n,t);return a.unshift(cm(t,a,n)),ll(a)}(t,e);case 4:case 3:case 2:return rm(t,e)}throw new Error("invalid type "+r.bookType+" for BIFF")}function dm(t,e,n,a){for(var r=t["!merges"]||[],i=[],o=e.s.c;o<=e.e.c;++o){for(var s=0,l=0,c=0;c<r.length;++c)if(!(r[c].s.r>n||r[c].s.c>o||r[c].e.r<n||r[c].e.c<o)){if(r[c].s.r<n||r[c].s.c<o){s=-1;break}s=r[c].e.r-r[c].s.r+1,l=r[c].e.c-r[c].s.c+1;break}if(!(s<0)){var u=Yu({r:n,c:o}),d=a.dense?(t[n]||[])[o]:t[u],h=d&&null!=d.v&&(d.h||jc(d.w||(td(d),d.w)||""))||"",f={};s>1&&(f.rowspan=s),l>1&&(f.colspan=l),a.editable?h='<span contenteditable="true">'+h+"</span>":d&&(f["data-t"]=d&&d.t||"z",null!=d.v&&(f["data-v"]=d.v),null!=d.z&&(f["data-z"]=d.z),d.l&&"#"!=(d.l.Target||"#").charAt(0)&&(h='<a href="'+d.l.Target+'">'+h+"</a>")),f.id=(a.id||"sjs")+"-"+u,i.push(Xc("td",h,f))}}return"<tr>"+i.join("")+"</tr>"}var hm='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',fm="</body></html>";function pm(t,e,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function mm(t,e){var n=e||{},a=null!=n.header?n.header:hm,r=null!=n.footer?n.footer:fm,i=[a],o=Xu(t["!ref"]);n.dense=Array.isArray(t),i.push(pm(0,0,n));for(var s=o.s.r;s<=o.e.r;++s)i.push(dm(t,o,s,n));return i.push("</table>"+r),i.join("")}function gm(t,e,n){var a=n||{};null!=Js&&(a.dense=Js);var r=0,i=0;if(null!=a.origin)if("number"==typeof a.origin)r=a.origin;else{var o="string"==typeof a.origin?Gu(a.origin):a.origin;r=o.r,i=o.c}var s=e.getElementsByTagName("tr"),l=Math.min(a.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r,c:i}};if(t["!ref"]){var u=Xu(t["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==r&&(c.e.r=r=u.e.r+1)}var d=[],h=0,f=t["!rows"]||(t["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,_=0;for(t["!cols"]||(t["!cols"]=[]);p<s.length&&m<l;++p){var y=s[p];if(bm(y)){if(a.display)continue;f[m]={hidden:!0}}var w=y.children;for(g=v=0;g<w.length;++g){var x=w[g];if(!a.display||!bm(x)){var k=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):$c(x.innerHTML),S=x.getAttribute("data-z")||x.getAttribute("z");for(h=0;h<d.length;++h){var C=d[h];C.s.c==v+i&&C.s.r<m+r&&m+r<=C.e.r&&(v=C.e.c+1-i,h=-1)}_=+x.getAttribute("colspan")||1,((b=+x.getAttribute("rowspan")||1)>1||_>1)&&d.push({s:{r:m+r,c:v+i},e:{r:m+r+(b||1)-1,c:v+i+(_||1)-1}});var A={t:"s",v:k},E=x.getAttribute("data-t")||x.getAttribute("t")||"";null!=k&&(0==k.length?A.t=E||"z":a.raw||0==k.trim().length||"s"==E||("TRUE"===k?A={t:"b",v:!0}:"FALSE"===k?A={t:"b",v:!1}:isNaN(Cc(k))?isNaN(Ec(k).getDate())||(A={t:"d",v:wc(k)},a.cellDates||(A={t:"n",v:fc(A.v)}),A.z=a.dateNF||yl[14]):A={t:"n",v:Cc(k)})),void 0===A.z&&null!=S&&(A.z=S);var T="",P=x.getElementsByTagName("A");if(P&&P.length)for(var N=0;N<P.length&&(!P[N].hasAttribute("href")||"#"==(T=P[N].getAttribute("href")).charAt(0));++N);T&&"#"!=T.charAt(0)&&(A.l={Target:T}),a.dense?(t[m+r]||(t[m+r]=[]),t[m+r][v+i]=A):t[Yu({c:v+i,r:m+r})]=A,c.e.c<v+i&&(c.e.c=v+i),v+=_}}++m}return d.length&&(t["!merges"]=(t["!merges"]||[]).concat(d)),c.e.r=Math.max(c.e.r,m-1+r),t["!ref"]=Ju(c),m>=l&&(t["!fullref"]=Ju((c.e.r=s.length-p+m-1+r,c))),t}function vm(t,e){return gm((e||{}).dense?[]:{},t,e)}function bm(t){var e="",n=function(t){return t.ownerDocument.defaultView&&"function"==typeof t.ownerDocument.defaultView.getComputedStyle?t.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(t);return n&&(e=n(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),"none"===e}var _m=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Yc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Nc+e}}(),ym=function(){var t=" <table:table-cell />\n",e=function(e,n,a){var r=[];r.push(' <table:table table:name="'+Ic(n.SheetNames[a])+'" table:style-name="ta1">\n');var i=0,o=0,s=Xu(e["!ref"]||"A1"),l=e["!merges"]||[],c=0,u=Array.isArray(e);if(e["!cols"])for(o=0;o<=s.e.c;++o)r.push(" <table:table-column"+(e["!cols"][o]?' table:style-name="co'+e["!cols"][o].ods+'"':"")+"></table:table-column>\n");var d="",h=e["!rows"]||[];for(i=0;i<s.s.r;++i)d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",r.push(" <table:table-row"+d+"></table:table-row>\n");for(;i<=s.e.r;++i){for(d=h[i]?' table:style-name="ro'+h[i].ods+'"':"",r.push(" <table:table-row"+d+">\n"),o=0;o<s.s.c;++o)r.push(t);for(;o<=s.e.c;++o){var f=!1,p={},m="";for(c=0;c!=l.length;++c)if(!(l[c].s.c>o||l[c].s.r>i||l[c].e.c<o||l[c].e.r<i)){l[c].s.c==o&&l[c].s.r==i||(f=!0),p["table:number-columns-spanned"]=l[c].e.c-l[c].s.c+1,p["table:number-rows-spanned"]=l[c].e.r-l[c].s.r+1;break}if(f)r.push(" <table:covered-table-cell/>\n");else{var g=Yu({r:i,c:o}),v=u?(e[i]||[])[o]:e[g];if(v&&v.f&&(p["table:formula"]=Ic(up(v.f)),v.F&&v.F.slice(0,g.length)==g)){var b=Xu(v.F);p["table:number-matrix-columns-spanned"]=b.e.c-b.s.c+1,p["table:number-matrix-rows-spanned"]=b.e.r-b.s.r+1}if(v){switch(v.t){case"b":m=v.v?"TRUE":"FALSE",p["office:value-type"]="boolean",p["office:boolean-value"]=v.v?"true":"false";break;case"n":m=v.w||String(v.v||0),p["office:value-type"]="float",p["office:value"]=v.v||0;break;case"s":case"str":m=null==v.v?"":v.v,p["office:value-type"]="string";break;case"d":m=v.w||wc(v.v).toISOString(),p["office:value-type"]="date",p["office:date-value"]=wc(v.v).toISOString(),p["table:style-name"]="ce1";break;default:r.push(t);continue}var _=Ic(m).replace(/ +/g,(function(t){return'<text:s text:c="'+t.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(v.l&&v.l.Target){var y=v.l.Target;"#"==(y="#"==y.charAt(0)?"#"+y.slice(1).replace(/\./,"!"):y).charAt(0)||y.match(/^\w+:/)||(y="../"+y),_=Xc("text:a",_,{"xlink:href":y.replace(/&/g,"&")})}r.push(" "+Xc("table:table-cell",Xc("text:p",_,{}),p)+"\n")}else r.push(t)}}r.push(" </table:table-row>\n")}return r.push(" </table:table>\n"),r.join("")};return function(t,n){var a=[Nc],r=Yc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),i=Yc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(a.push("<office:document"+r+i+">\n"),a.push($d().replace(/office:document-meta/g,"office:meta"))):a.push("<office:document-content"+r+">\n"),function(t,e){t.push(" <office:automatic-styles>\n"),t.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),t.push(' <number:month number:style="long"/>\n'),t.push(" <number:text>/</number:text>\n"),t.push(' <number:day number:style="long"/>\n'),t.push(" <number:text>/</number:text>\n"),t.push(" <number:year/>\n"),t.push(" </number:date-style>\n");var n=0;e.SheetNames.map((function(t){return e.Sheets[t]})).forEach((function(e){if(e&&e["!cols"])for(var a=0;a<e["!cols"].length;++a)if(e["!cols"][a]){var r=e["!cols"][a];if(null==r.width&&null==r.wpx&&null==r.wch)continue;Xh(r),r.ods=n;var i=e["!cols"][a].wpx+"px";t.push(' <style:style style:name="co'+n+'" style:family="table-column">\n'),t.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+i+'"/>\n'),t.push(" </style:style>\n"),++n}}));var a=0;e.SheetNames.map((function(t){return e.Sheets[t]})).forEach((function(e){if(e&&e["!rows"])for(var n=0;n<e["!rows"].length;++n)if(e["!rows"][n]){e["!rows"][n].ods=a;var r=e["!rows"][n].hpx+"px";t.push(' <style:style style:name="ro'+a+'" style:family="table-row">\n'),t.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+r+'"/>\n'),t.push(" </style:style>\n"),++a}})),t.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),t.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),t.push(" </style:style>\n"),t.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),t.push(" </office:automatic-styles>\n")}(a,t),a.push(" <office:body>\n"),a.push(" <office:spreadsheet>\n");for(var o=0;o!=t.SheetNames.length;++o)a.push(e(t.Sheets[t.SheetNames[o]],t,o));return a.push(" </office:spreadsheet>\n"),a.push(" </office:body>\n"),"fods"==n.bookType?a.push("</office:document>"):a.push("</office:document-content>"),a.join("")}}();function wm(t,e){if("fods"==e.bookType)return ym(t,e);var n=Pc(),a="",r=[],i=[];return Tc(n,a="mimetype","application/vnd.oasis.opendocument.spreadsheet"),Tc(n,a="content.xml",ym(t,e)),r.push([a,"text/xml"]),i.push([a,"ContentFile"]),Tc(n,a="styles.xml",_m(t,e)),r.push([a,"text/xml"]),i.push([a,"StylesFile"]),Tc(n,a="meta.xml",Nc+$d()),r.push([a,"text/xml"]),i.push([a,"MetadataFile"]),Tc(n,a="manifest.rdf",function(t){var e,n,a=[Nc];a.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var r=0;r!=t.length;++r)a.push(qd(t[r][0],t[r][1])),a.push((e="",n=t[r][0],[' <rdf:Description rdf:about="'+e+'">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+n+'"/>\n'," </rdf:Description>\n"].join("")));return a.push(qd("","Document","pkg")),a.push("</rdf:RDF>"),a.join("")}(i)),r.push([a,"application/rdf+xml"]),Tc(n,a="META-INF/manifest.xml",function(t){var e=[Nc];e.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),e.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<t.length;++n)e.push(' <manifest:file-entry manifest:full-path="'+t[n][0]+'" manifest:media-type="'+t[n][1]+'"/>\n');return e.push("</manifest:manifest>"),e.join("")}(r)),n}function xm(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function km(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):il(qc(t))}function Sm(t){var e=t.reduce((function(t,e){return t+e.length}),0),n=new Uint8Array(e),a=0;return t.forEach((function(t){n.set(t,a),a+=t.length})),n}function Cm(t,e){var n=e?e[0]:0,a=127&t[n];t:if(t[n++]>=128){if(a|=(127&t[n])<<7,t[n++]<128)break t;if(a|=(127&t[n])<<14,t[n++]<128)break t;if(a|=(127&t[n])<<21,t[n++]<128)break t;if(a+=(127&t[n])*Math.pow(2,28),++n,t[n++]<128)break t;if(a+=(127&t[n])*Math.pow(2,35),++n,t[n++]<128)break t;if(a+=(127&t[n])*Math.pow(2,42),++n,t[n++]<128)break t}return e&&(e[0]=n),a}function Am(t){var e=new Uint8Array(7);e[0]=127&t;var n=1;t:if(t>127){if(e[n-1]|=128,e[n]=t>>7&127,++n,t<=16383)break t;if(e[n-1]|=128,e[n]=t>>14&127,++n,t<=2097151)break t;if(e[n-1]|=128,e[n]=t>>21&127,++n,t<=268435455)break t;if(e[n-1]|=128,e[n]=t/256>>>21&127,++n,t<=34359738367)break t;if(e[n-1]|=128,e[n]=t/65536>>>21&127,++n,t<=4398046511103)break t;e[n-1]|=128,e[n]=t/16777216>>>21&127,++n}return e.slice(0,n)}function Em(t){var e=0,n=127&t[e];t:if(t[e++]>=128){if(n|=(127&t[e])<<7,t[e++]<128)break t;if(n|=(127&t[e])<<14,t[e++]<128)break t;if(n|=(127&t[e])<<21,t[e++]<128)break t;n|=(127&t[e])<<28}return n}function Tm(t){for(var e=[],n=[0];n[0]<t.length;){var a,r=n[0],i=Cm(t,n),o=7&i,s=0;if(0==(i=Math.floor(i/8)))break;switch(o){case 0:for(var l=n[0];t[n[0]++]>=128;);a=t.slice(l,n[0]);break;case 5:s=4,a=t.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,a=t.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Cm(t,n),a=t.slice(n[0],n[0]+s),n[0]+=s;break;default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(r))}var c={data:a,type:o};null==e[i]?e[i]=[c]:e[i].push(c)}return e}function Pm(t){var e=[];return t.forEach((function(t,n){t.forEach((function(t){t.data&&(e.push(Am(8*n+t.type)),2==t.type&&e.push(Am(t.data.length)),e.push(t.data))}))})),Sm(e)}function Nm(t){for(var e,n=[],a=[0];a[0]<t.length;){var r=Cm(t,a),i=Tm(t.slice(a[0],a[0]+r));a[0]+=r;var o={id:Em(i[1][0].data),messages:[]};i[2].forEach((function(e){var n=Tm(e.data),r=Em(n[3][0].data);o.messages.push({meta:n,data:t.slice(a[0],a[0]+r)}),a[0]+=r})),(null==(e=i[3])?void 0:e[0])&&(o.merge=Em(i[3][0].data)>>>0>0),n.push(o)}return n}function Lm(t){var e=[];return t.forEach((function(t){var n=[];n[1]=[{data:Am(t.id),type:0}],n[2]=[],null!=t.merge&&(n[3]=[{data:Am(+!!t.merge),type:0}]);var a=[];t.messages.forEach((function(t){a.push(t.data),t.meta[3]=[{type:0,data:Am(t.data.length)}],n[2].push({data:Pm(t.meta),type:2})}));var r=Pm(n);e.push(Am(r.length)),e.push(r),a.forEach((function(t){return e.push(t)}))})),Sm(e)}function Om(t,e){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var n=[0],a=Cm(e,n),r=[];n[0]<e.length;){var i=3&e[n[0]];if(0!=i){var o=0,s=0;if(1==i?(s=4+(e[n[0]]>>2&7),o=(224&e[n[0]++])<<3,o|=e[n[0]++]):(s=1+(e[n[0]++]>>2),2==i?(o=e[n[0]]|e[n[0]+1]<<8,n[0]+=2):(o=(e[n[0]]|e[n[0]+1]<<8|e[n[0]+2]<<16|e[n[0]+3]<<24)>>>0,n[0]+=4)),r=[Sm(r)],0==o)throw new Error("Invalid offset 0");if(o>r[0].length)throw new Error("Invalid offset beyond length");if(s>=o)for(r.push(r[0].slice(-o)),s-=o;s>=r[r.length-1].length;)r.push(r[r.length-1]),s-=r[r.length-1].length;r.push(r[0].slice(-o,-o+s))}else{var l=e[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=e[n[0]],c>1&&(l|=e[n[0]+1]<<8),c>2&&(l|=e[n[0]+2]<<16),c>3&&(l|=e[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}r.push(e.slice(n[0],n[0]+l)),n[0]+=l}}var u=Sm(r);if(u.length!=a)throw new Error("Unexpected length: ".concat(u.length," != ").concat(a));return u}function Mm(t){for(var e=[],n=0;n<t.length;){var a=t[n++],r=t[n]|t[n+1]<<8|t[n+2]<<16;n+=3,e.push(Om(a,t.slice(n,n+r))),n+=r}if(n!==t.length)throw new Error("data is not a valid framed stream!");return Sm(e)}function Rm(t){for(var e=[],n=0;n<t.length;){var a=Math.min(t.length-n,268435455),r=new Uint8Array(4);e.push(r);var i=Am(a),o=i.length;e.push(i),a<=60?(o++,e.push(new Uint8Array([a-1<<2]))):a<=256?(o+=2,e.push(new Uint8Array([240,a-1&255]))):a<=65536?(o+=3,e.push(new Uint8Array([244,a-1&255,a-1>>8&255]))):a<=16777216?(o+=4,e.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(o+=5,e.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),e.push(t.slice(n,n+a)),o+=a,r[0]=0,r[1]=255&o,r[2]=o>>8&255,r[3]=o>>16&255,n+=a}return Sm(e)}function Im(t,e){var n=new Uint8Array(32),a=xm(n),r=12,i=0;switch(n[0]=5,t.t){case"n":n[1]=2,function(t,e,n){var a=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,r=n/Math.pow(10,a-6176);t[e+15]|=a>>7,t[e+14]|=(127&a)<<1;for(var i=0;r>=1;++i,r/=256)t[e+i]=255&r;t[e+15]|=n>=0?0:128}(n,r,t.v),i|=1,r+=16;break;case"b":n[1]=6,a.setFloat64(r,t.v?1:0,!0),i|=2,r+=8;break;case"s":if(-1==e.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));n[1]=3,a.setUint32(r,e.indexOf(t.v),!0),i|=8,r+=4;break;default:throw"unsupported cell type "+t.t}return a.setUint32(8,i,!0),n.slice(0,r)}function Dm(t,e){var n=new Uint8Array(32),a=xm(n),r=12,i=0;switch(n[0]=3,t.t){case"n":n[2]=2,a.setFloat64(r,t.v,!0),i|=32,r+=8;break;case"b":n[2]=6,a.setFloat64(r,t.v?1:0,!0),i|=32,r+=8;break;case"s":if(-1==e.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));n[2]=3,a.setUint32(r,e.indexOf(t.v),!0),i|=16,r+=4;break;default:throw"unsupported cell type "+t.t}return a.setUint32(4,i,!0),n.slice(0,r)}function Fm(t){return Cm(Tm(t)[1][0].data)}function jm(t,e,n){var a,r,i,o;if(!(null==(a=t[6])?void 0:a[0])||!(null==(r=t[7])?void 0:r[0]))throw"Mutation only works on post-BNC storages!";if((null==(o=null==(i=t[8])?void 0:i[0])?void 0:o.data)&&Em(t[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var s=0,l=xm(t[7][0].data),c=0,u=[],d=xm(t[4][0].data),h=0,f=[],p=0;p<e.length;++p)if(null!=e[p]){var m,g;switch(l.setUint16(2*p,c,!0),d.setUint16(2*p,h,!0),typeof e[p]){case"string":m=Im({t:"s",v:e[p]},n),g=Dm({t:"s",v:e[p]},n);break;case"number":m=Im({t:"n",v:e[p]},n),g=Dm({t:"n",v:e[p]},n);break;case"boolean":m=Im({t:"b",v:e[p]},n),g=Dm({t:"b",v:e[p]},n);break;default:throw new Error("Unsupported value "+e[p])}u.push(m),c+=m.length,f.push(g),h+=g.length,++s}else l.setUint16(2*p,65535,!0),d.setUint16(2*p,65535);for(t[2][0].data=Am(s);p<t[7][0].data.length/2;++p)l.setUint16(2*p,65535,!0),d.setUint16(2*p,65535,!0);return t[6][0].data=Sm(u),t[3][0].data=Sm(f),s}function Bm(t){return function(e){for(var n=0;n!=t.length;++n){var a=t[n];void 0===e[a[0]]&&(e[a[0]]=a[1]),"n"===a[2]&&(e[a[0]]=Number(e[a[0]]))}}}function zm(t){Bm([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function Um(t,e){return"ods"==e.bookType?wm(t,e):"numbers"==e.bookType?function(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var a=Xu(n["!ref"]);a.s.r=a.s.c=0;var r=!1;a.e.c>9&&(r=!0,a.e.c=9),a.e.r>49&&(r=!0,a.e.r=49),r&&console.error("The Numbers writer is currently limited to ".concat(Ju(a)));var i=Xm(n,{range:a,header:1}),o=["~Sh33tJ5~"];i.forEach((function(t){return t.forEach((function(t){"string"==typeof t&&o.push(t)}))}));var s={},l=[],c=rc.read(e.numbers,{type:"base64"});c.FileIndex.map((function(t,e){return[t,c.FullPaths[e]]})).forEach((function(t){var e=t[0],n=t[1];2==e.type&&e.name.match(/\.iwa/)&&Nm(Mm(e.content)).forEach((function(t){l.push(t.id),s[t.id]={deps:[],location:n,type:Em(t.messages[0].meta[1][0].data)}}))})),l.sort((function(t,e){return t-e}));var u=l.filter((function(t){return t>1})).map((function(t){return[t,Am(t)]}));c.FileIndex.map((function(t,e){return[t,c.FullPaths[e]]})).forEach((function(t){var e=t[0];t[1],e.name.match(/\.iwa/)&&Nm(Mm(e.content)).forEach((function(t){t.messages.forEach((function(e){u.forEach((function(e){t.messages.some((function(t){return 11006!=Em(t.meta[1][0].data)&&function(t,e){t:for(var n=0;n<=t.length-e.length;++n){for(var a=0;a<e.length;++a)if(t[n+a]!=e[a])continue t;return!0}return!1}(t.data,e[1])}))&&s[e[0]].deps.push(t.id)}))}))}))}));for(var d,h=rc.find(c,s[1].location),f=Nm(Mm(h.content)),p=0;p<f.length;++p){var m=f[p];1==m.id&&(d=m)}var g=Fm(Tm(d.messages[0].data)[1][0].data);for(f=Nm(Mm((h=rc.find(c,s[g].location)).content)),p=0;p<f.length;++p)(m=f[p]).id==g&&(d=m);for(g=Fm(Tm(d.messages[0].data)[2][0].data),f=Nm(Mm((h=rc.find(c,s[g].location)).content)),p=0;p<f.length;++p)(m=f[p]).id==g&&(d=m);for(g=Fm(Tm(d.messages[0].data)[2][0].data),f=Nm(Mm((h=rc.find(c,s[g].location)).content)),p=0;p<f.length;++p)(m=f[p]).id==g&&(d=m);var v=Tm(d.messages[0].data);v[6][0].data=Am(a.e.r+1),v[7][0].data=Am(a.e.c+1);for(var b=Fm(v[46][0].data),_=rc.find(c,s[b].location),y=Nm(Mm(_.content)),w=0;w<y.length&&y[w].id!=b;++w);if(y[w].id!=b)throw"Bad ColumnRowUIDMapArchive";var x=Tm(y[w].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var k=0;k<=a.e.c;++k){var S=[];S[1]=S[2]=[{type:0,data:Am(k+420690)}],x[1].push({type:2,data:Pm(S)}),x[2].push({type:0,data:Am(k)}),x[3].push({type:0,data:Am(k)})}x[4]=[],x[5]=[],x[6]=[];for(var C=0;C<=a.e.r;++C)(S=[])[1]=S[2]=[{type:0,data:Am(C+726270)}],x[4].push({type:2,data:Pm(S)}),x[5].push({type:0,data:Am(C)}),x[6].push({type:0,data:Am(C)});y[w].messages[0].data=Pm(x),_.content=Rm(Lm(y)),_.size=_.content.length,delete v[46];var A=Tm(v[4][0].data);A[7][0].data=Am(a.e.r+1);var E=Fm(Tm(A[1][0].data)[2][0].data);if((y=Nm(Mm((_=rc.find(c,s[E].location)).content)))[0].id!=E)throw"Bad HeaderStorageBucket";var T=Tm(y[0].messages[0].data);for(C=0;C<i.length;++C){var P=Tm(T[2][0].data);P[1][0].data=Am(C),P[4][0].data=Am(i[C].length),T[2][C]={type:T[2][0].type,data:Pm(P)}}y[0].messages[0].data=Pm(T),_.content=Rm(Lm(y)),_.size=_.content.length;var N=Fm(A[2][0].data);if((y=Nm(Mm((_=rc.find(c,s[N].location)).content)))[0].id!=N)throw"Bad HeaderStorageBucket";for(T=Tm(y[0].messages[0].data),k=0;k<=a.e.c;++k)(P=Tm(T[2][0].data))[1][0].data=Am(k),P[4][0].data=Am(a.e.r+1),T[2][k]={type:T[2][0].type,data:Pm(P)};y[0].messages[0].data=Pm(T),_.content=Rm(Lm(y)),_.size=_.content.length;var L=Fm(A[4][0].data);!function(){for(var t,e=rc.find(c,s[L].location),n=Nm(Mm(e.content)),a=0;a<n.length;++a){var r=n[a];r.id==L&&(t=r)}var i=Tm(t.messages[0].data);i[3]=[];var l=[];o.forEach((function(t,e){l[1]=[{type:0,data:Am(e)}],l[2]=[{type:0,data:Am(1)}],l[3]=[{type:2,data:km(t)}],i[3].push({type:2,data:Pm(l)})})),t.messages[0].data=Pm(i);var u=Rm(Lm(n));e.content=u,e.size=e.content.length}();var O=Tm(A[3][0].data),M=O[1][0];delete O[2];var R=Tm(M.data),I=Fm(R[2][0].data);!function(){for(var t,e=rc.find(c,s[I].location),n=Nm(Mm(e.content)),r=0;r<n.length;++r){var l=n[r];l.id==I&&(t=l)}var u=Tm(t.messages[0].data);delete u[6],delete O[7];var d=new Uint8Array(u[5][0].data);u[5]=[];for(var h=0,f=0;f<=a.e.r;++f){var p=Tm(d);h+=jm(p,i[f],o),p[1][0].data=Am(f),u[5].push({data:Pm(p),type:2})}u[1]=[{type:0,data:Am(a.e.c+1)}],u[2]=[{type:0,data:Am(a.e.r+1)}],u[3]=[{type:0,data:Am(h)}],u[4]=[{type:0,data:Am(a.e.r+1)}],t.messages[0].data=Pm(u);var m=Rm(Lm(n));e.content=m,e.size=e.content.length}(),M.data=Pm(R),A[3][0].data=Pm(O),v[4][0].data=Pm(A),d.messages[0].data=Pm(v);var D=Rm(Lm(f));return h.content=D,h.size=h.content.length,c}(t,e):"xlsb"==e.bookType?function(t,e){bf=1024,t&&!t.SSF&&(t.SSF=kc(yl));t&&t.SSF&&(ec(),tc(t.SSF),e.revssf=dc(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF);e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,dp?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n="xlsb"==e.bookType?"bin":"xml",a=Sf.indexOf(e.bookType)>-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};zm(e=e||{});var i=Pc(),o="",s=0;e.cellXfs=[],mp(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});if(o="docProps/core.xml",Tc(i,o,Yd(t.Props,e)),r.coreprops.push(o),Wd(e.rels,2,o,Ud.CORE_PROPS),o="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var l=[],c=0;c<t.SheetNames.length;++c)2!=(t.Workbook.Sheets[c]||{}).Hidden&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,Tc(i,o,Zd(t.Props)),r.extprops.push(o),Wd(e.rels,3,o,Ud.EXT_PROPS),t.Custprops!==t.Props&&lc(t.Custprops||{}).length>0&&(Tc(i,o="docProps/custom.xml",Qd(t.Custprops)),r.custprops.push(o),Wd(e.rels,4,o,Ud.CUST_PROPS));for(s=1;s<=t.SheetNames.length;++s){var u={"!id":{}},d=t.Sheets[t.SheetNames[s-1]];(d||{})["!type"];if(Tc(i,o="xl/worksheets/sheet"+s+"."+n,Wp(s-1,o,e,t,u)),r.sheets.push(o),Wd(e.wbrels,-1,"worksheets/sheet"+s+"."+n,Ud.WS[0]),d){var h=d["!comments"],f=!1,p="";h&&h.length>0&&(Tc(i,p="xl/comments"+s+"."+n,qp(h,p,e)),r.comments.push(p),Wd(u,-1,"../comments"+s+"."+n,Ud.CMNT),f=!0),d["!legacy"]&&f&&Tc(i,"xl/drawings/vmlDrawing"+s+".vml",_f(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}u["!id"].rId1&&Tc(i,Hd(o),Vd(u))}null!=e.Strings&&e.Strings.length>0&&(Tc(i,o="xl/sharedStrings."+n,function(t,e,n){return(".bin"===e.slice(-4)?zh:jh)(t,n)}(e.Strings,o,e)),r.strs.push(o),Wd(e.wbrels,-1,"sharedStrings."+n,Ud.SST));o="xl/workbook."+n,Tc(i,o,function(t,e,n){return(".bin"===e.slice(-4)?Vp:zp)(t,n)}(t,o,e)),r.workbooks.push(o),Wd(e.rels,1,o,Ud.WB),o="xl/theme/theme1.xml",Tc(i,o,mf(t.Themes,e)),r.themes.push(o),Wd(e.wbrels,-1,"theme/theme1.xml",Ud.THEME),o="xl/styles."+n,Tc(i,o,function(t,e,n){return(".bin"===e.slice(-4)?pf:tf)(t,n)}(t,o,e)),r.styles.push(o),Wd(e.wbrels,-1,"styles."+n,Ud.STY),t.vbaraw&&a&&(Tc(i,o="xl/vbaProject.bin",t.vbaraw),r.vba.push(o),Wd(e.wbrels,-1,"vbaProject.bin",Ud.VBA));return o="xl/metadata."+n,Tc(i,o,function(t){return(".bin"===t.slice(-4)?gf:vf)()}(o)),r.metadata.push(o),Wd(e.wbrels,-1,"metadata."+n,Ud.XLMETA),Tc(i,"[Content_Types].xml",zd(r,e)),Tc(i,"_rels/.rels",Vd(e.rels)),Tc(i,"xl/_rels/workbook."+n+".rels",Vd(e.wbrels)),delete e.revssf,delete e.ssf,i}(t,e):Hm(t,e)}function Hm(t,e){bf=1024,t&&!t.SSF&&(t.SSF=kc(yl)),t&&t.SSF&&(ec(),tc(t.SSF),e.revssf=dc(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,dp?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n="xml",a=Sf.indexOf(e.bookType)>-1,r={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};zm(e=e||{});var i=Pc(),o="",s=0;if(e.cellXfs=[],mp(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),Tc(i,o="docProps/core.xml",Yd(t.Props,e)),r.coreprops.push(o),Wd(e.rels,2,o,Ud.CORE_PROPS),o="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var l=[],c=0;c<t.SheetNames.length;++c)2!=(t.Workbook.Sheets[c]||{}).Hidden&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,Tc(i,o,Zd(t.Props)),r.extprops.push(o),Wd(e.rels,3,o,Ud.EXT_PROPS),t.Custprops!==t.Props&&lc(t.Custprops||{}).length>0&&(Tc(i,o="docProps/custom.xml",Qd(t.Custprops)),r.custprops.push(o),Wd(e.rels,4,o,Ud.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},h=t.Sheets[t.SheetNames[s-1]];(h||{})["!type"];if(Tc(i,o="xl/worksheets/sheet"+s+"."+n,yp(s-1,e,t,d)),r.sheets.push(o),Wd(e.wbrels,-1,"worksheets/sheet"+s+"."+n,Ud.WS[0]),h){var f=h["!comments"],p=!1,m="";if(f&&f.length>0){var g=!1;f.forEach((function(t){t[1].forEach((function(t){1==t.T&&(g=!0)}))})),g&&(Tc(i,m="xl/threadedComments/threadedComment"+s+"."+n,wf(f,u,e)),r.threadedcomments.push(m),Wd(d,-1,"../threadedComments/threadedComment"+s+"."+n,Ud.TCMNT)),Tc(i,m="xl/comments"+s+"."+n,yf(f)),r.comments.push(m),Wd(d,-1,"../comments"+s+"."+n,Ud.CMNT),p=!0}h["!legacy"]&&p&&Tc(i,"xl/drawings/vmlDrawing"+s+".vml",_f(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}d["!id"].rId1&&Tc(i,Hd(o),Vd(d))}return null!=e.Strings&&e.Strings.length>0&&(Tc(i,o="xl/sharedStrings."+n,jh(e.Strings,e)),r.strs.push(o),Wd(e.wbrels,-1,"sharedStrings."+n,Ud.SST)),Tc(i,o="xl/workbook."+n,zp(t)),r.workbooks.push(o),Wd(e.rels,1,o,Ud.WB),Tc(i,o="xl/theme/theme1.xml",mf(t.Themes,e)),r.themes.push(o),Wd(e.wbrels,-1,"theme/theme1.xml",Ud.THEME),Tc(i,o="xl/styles."+n,tf(t,e)),r.styles.push(o),Wd(e.wbrels,-1,"styles."+n,Ud.STY),t.vbaraw&&a&&(Tc(i,o="xl/vbaProject.bin",t.vbaraw),r.vba.push(o),Wd(e.wbrels,-1,"vbaProject.bin",Ud.VBA)),Tc(i,o="xl/metadata."+n,vf()),r.metadata.push(o),Wd(e.wbrels,-1,"metadata."+n,Ud.XLMETA),u.length>1&&(Tc(i,o="xl/persons/person.xml",function(t){var e=[Nc,Xc("personList",null,{xmlns:Zc.TCMNT,"xmlns:x":Qc[0]}).replace(/[\/]>/,">")];return t.forEach((function(t,n){e.push(Xc("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))})),e.push("</personList>"),e.join("")}(u)),r.people.push(o),Wd(e.wbrels,-1,"persons/person.xml",Ud.PEOPLE)),Tc(i,"[Content_Types].xml",zd(r,e)),Tc(i,"_rels/.rels",Vd(e.rels)),Tc(i,"xl/_rels/workbook.xml.rels",Vd(e.wbrels)),delete e.revssf,delete e.ssf,i}function Vm(t,e){var n="";switch((e||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":n=tl(t.slice(0,12));break;case"binary":n=t;break;default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function Wm(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return sc(e.file,rc.write(t,{type:el?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return rc.write(t,e)}function qm(t,e){var n={},a=el?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(e.compression&&(n.compression="DEFLATE"),e.password)n.type=a;else switch(e.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":n.type=a;break;default:throw new Error("Unrecognized type "+e.type)}var r=t.FullPaths?rc.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!e.compression}):t.generate(n);if("undefined"!=typeof Deno&&"string"==typeof r){if("binary"==e.type||"base64"==e.type)return r;r=new Uint8Array(ol(r))}return e.password&&"undefined"!=typeof encrypt_agile?Wm(encrypt_agile(r,e.password),e):"file"===e.type?sc(e.file,r):"string"==e.type?Wc(r):r}function $m(t,e,n){n||(n="");var a=n+t;switch(e.type){case"base64":return Qs(qc(a));case"binary":return qc(a);case"string":return t;case"file":return sc(e.file,a,"utf8");case"buffer":return el?nl(a,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(a):$m(a,{type:"binary"}).split("").map((function(t){return t.charCodeAt(0)}))}throw new Error("Unrecognized type "+e.type)}function Km(t,e){switch(e.type){case"string":case"base64":case"binary":for(var n="",a=0;a<t.length;++a)n+=String.fromCharCode(t[a]);return"base64"==e.type?Qs(n):"string"==e.type?Wc(n):n;case"file":return sc(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function Gm(t,e){$s(),Bp(t);var n=kc(e||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var a=Gm(t,n);return n.type="array",ol(a)}var r=0;if(n.sheet&&(r="number"==typeof n.sheet?n.sheet:t.SheetNames.indexOf(n.sheet),!t.SheetNames[r]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return $m(Jp(t,n),n);case"slk":case"sylk":return $m(Oh.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"htm":case"html":return $m(mm(t.Sheets[t.SheetNames[r]],n),n);case"txt":return function(t,e){switch(e.type){case"base64":return Qs(t);case"binary":case"string":return t;case"file":return sc(e.file,t,"binary");case"buffer":return el?nl(t,"binary"):t.split("").map((function(t){return t.charCodeAt(0)}))}throw new Error("Unrecognized type "+e.type)}(tg(t.Sheets[t.SheetNames[r]],n),n);case"csv":return $m(Qm(t.Sheets[t.SheetNames[r]],n),n,"\ufeff");case"dif":return $m(Mh.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"dbf":return Km(Lh.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"prn":return $m(Ih.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"rtf":return $m(Vh.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"eth":return $m(Rh.from_sheet(t.Sheets[t.SheetNames[r]],n),n);case"fods":return $m(wm(t,n),n);case"wk1":return Km(Dh.sheet_to_wk1(t.Sheets[t.SheetNames[r]],n),n);case"wk3":return Km(Dh.book_to_wk3(t,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),Km(um(t,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(t,e){var n=e||{};return Wm(Qp(t,n),n)}(t,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(t,e){var n=kc(e||{});return qm(Um(t,n),n)}(t,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function Ym(t,e,n,a,r,i,o,s){var l=qu(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,h=1===r?[]:{};if(1!==r)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:n,enumerable:!1})}catch(t){h.__rowNum__=n}else h.__rowNum__=n;if(!o||t[n])for(var f=e.s.c;f<=e.e.c;++f){var p=o?t[n][f]:t[a[f]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=i[f]){if(null==m)if("e"==p.t&&null===m)h[i[f]]=null;else if(void 0!==c)h[i[f]]=c;else{if(!u||null!==m)continue;h[i[f]]=null}else h[i[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:td(p,m,s);null!=m&&(d=!1)}}else{if(void 0===c)continue;null!=i[f]&&(h[i[f]]=c)}}return{row:h,isempty:d}}function Xm(t,e){if(null==t||null==t["!ref"])return[];var n={t:"n",v:0},a=0,r=1,i=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=null!=c.range?c.range:t["!ref"];switch(1===c.header?a=1:"A"===c.header?a=2:Array.isArray(c.header)?a=3:null==c.header&&(a=0),typeof u){case"string":l=Zu(u);break;case"number":(l=Zu(t["!ref"])).s.r=u;break;default:l=u}a>0&&(r=0);var d=qu(l.s.r),h=[],f=[],p=0,m=0,g=Array.isArray(t),v=l.s.r,b=0,_={};g&&!t[v]&&(t[v]=[]);var y=c.skipHidden&&t["!cols"]||[],w=c.skipHidden&&t["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(y[b]||{}).hidden)switch(h[b]=Ku(b),n=g?t[v][b]:t[h[b]+d],a){case 1:i[b]=b-l.s.c;break;case 2:i[b]=h[b];break;case 3:i[b]=c.header[b-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=o=td(n,null,c),m=_[o]||0){do{s=o+"_"+m++}while(_[s]);_[o]=m,_[s]=1}else _[o]=1;i[b]=s}for(v=l.s.r+r;v<=l.e.r;++v)if(!(w[v]||{}).hidden){var x=Ym(t,l,v,h,a,i,g,c);(!1===x.isempty||(1===a?!1!==c.blankrows:c.blankrows))&&(f[p++]=x.row)}return f.length=p,f}var Jm=/"/g;function Zm(t,e,n,a,r,i,o,s){for(var l=!0,c=[],u="",d=qu(n),h=e.s.c;h<=e.e.c;++h)if(a[h]){var f=s.dense?(t[n]||[])[h]:t[a[h]+d];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(s.rawNumbers&&"n"==f.t?f.v:td(f,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===r||m===i||34===m||s.forceQuotes){u='"'+u.replace(Jm,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,(u="="+f.f).indexOf(",")>=0&&(u='"'+u.replace(Jm,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(o)}function Qm(t,e){var n=[],a=null==e?{}:e;if(null==t||null==t["!ref"])return"";var r=Zu(t["!ref"]),i=void 0!==a.FS?a.FS:",",o=i.charCodeAt(0),s=void 0!==a.RS?a.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==i?"\\|":i)+"+$"),u="",d=[];a.dense=Array.isArray(t);for(var h=a.skipHidden&&t["!cols"]||[],f=a.skipHidden&&t["!rows"]||[],p=r.s.c;p<=r.e.c;++p)(h[p]||{}).hidden||(d[p]=Ku(p));for(var m=0,g=r.s.r;g<=r.e.r;++g)(f[g]||{}).hidden||null!=(u=Zm(t,r,g,d,o,l,i,a))&&(a.strip&&(u=u.replace(c,"")),(u||!1!==a.blankrows)&&n.push((m++?s:"")+u));return delete a.dense,n.join("")}function tg(t,e){e||(e={}),e.FS="\t",e.RS="\n";var n=Qm(t,e);if(void 0===Gs||"string"==e.type)return n;var a=Gs.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function eg(t,e,n){var a,r=n||{},i=+!r.skipHeader,o=t||{},s=0,l=0;if(o&&null!=r.origin)if("number"==typeof r.origin)s=r.origin;else{var c="string"==typeof r.origin?Gu(r.origin):r.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+e.length-1+i}};if(o["!ref"]){var d=Zu(o["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),-1==s&&(s=d.e.r+1,u.e.r=s+e.length-1+i)}else-1==s&&(s=0,u.e.r=e.length-1+i);var h=r.header||[],f=0;e.forEach((function(t,e){lc(t).forEach((function(n){-1==(f=h.indexOf(n))&&(h[f=h.length]=n);var c=t[n],u="z",d="",p=Yu({c:l+f,r:s+e+i});a=ng(o,p),!c||"object"!=typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",r.cellDates||(u="n",c=fc(c)),d=r.dateNF||yl[14]):null===c&&r.nullError&&(u="e",c=0),a?(a.t=u,a.v=c,delete a.w,delete a.R,d&&(a.z=d)):o[p]=a={t:u,v:c},d&&(a.z=d)):o[p]=c}))})),u.e.c=Math.max(u.e.c,l+h.length-1);var p=qu(s);if(i)for(f=0;f<h.length;++f)o[Ku(f+l)+p]={t:"s",v:h[f]};return o["!ref"]=Ju(u),o}function ng(t,e,n){if("string"==typeof e){if(Array.isArray(t)){var a=Gu(e);return t[a.r]||(t[a.r]=[]),t[a.r][a.c]||(t[a.r][a.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return ng(t,Yu("number"!=typeof e?e:{r:e,c:n||0}))}function ag(){return{SheetNames:[],Sheets:{}}}function rg(t,e,n,a){var r=1;if(!n)for(;r<=65535&&-1!=t.SheetNames.indexOf(n="Sheet"+r);++r,n=void 0);if(!n||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&t.SheetNames.indexOf(n)>=0){var i=n.match(/(^.*?)(\d+)$/);r=i&&+i[2]||0;var o=i&&i[1]||n;for(++r;r<=65535&&-1!=t.SheetNames.indexOf(n=o+r);++r);}if(jp(n),t.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return t.SheetNames.push(n),t.Sheets[n]=e,n}function ig(t,e,n){return e?(t.l={Target:e},n&&(t.l.Tooltip=n)):delete t.l,t}var og={encode_col:Ku,encode_row:qu,encode_cell:Yu,encode_range:Ju,decode_col:$u,decode_row:Wu,split_cell:function(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Gu,decode_range:Xu,format_cell:td,sheet_add_aoa:nd,sheet_add_json:eg,sheet_add_dom:gm,aoa_to_sheet:ad,json_to_sheet:function(t,e){return eg(null,t,e)},table_to_sheet:vm,table_to_book:function(t,e){return ed(vm(t,e),e)},sheet_to_csv:Qm,sheet_to_txt:tg,sheet_to_json:Xm,sheet_to_html:mm,sheet_to_formulae:function(t){var e,n="",a="";if(null==t||null==t["!ref"])return[];var r,i=Zu(t["!ref"]),o="",s=[],l=[],c=Array.isArray(t);for(r=i.s.c;r<=i.e.c;++r)s[r]=Ku(r);for(var u=i.s.r;u<=i.e.r;++u)for(o=qu(u),r=i.s.c;r<=i.e.c;++r)if(n=s[r]+o,a="",void 0!==(e=c?(t[u]||[])[r]:t[n])){if(null!=e.F){if(n=e.F,!e.f)continue;a=e.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=e.f)a=e.f;else{if("z"==e.t)continue;if("n"==e.t&&null!=e.v)a=""+e.v;else if("b"==e.t)a=e.v?"TRUE":"FALSE";else if(void 0!==e.w)a="'"+e.w;else{if(void 0===e.v)continue;a="s"==e.t?"'"+e.v:""+e.v}}l[l.length]=n+"="+a}return l},sheet_to_row_object_array:Xm,sheet_get_cell:ng,book_new:ag,book_append_sheet:rg,book_set_sheet_visibility:function(t,e,n){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var a=function(t,e){if("number"==typeof e){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}if("string"==typeof e){var n=t.SheetNames.indexOf(e);if(n>-1)return n;throw new Error("Cannot find sheet name |"+e+"|")}throw new Error("Cannot find sheet |"+e+"|")}(t,e);switch(t.Workbook.Sheets[a]||(t.Workbook.Sheets[a]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}t.Workbook.Sheets[a].Hidden=n},cell_set_number_format:function(t,e){return t.z=e,t},cell_set_hyperlink:ig,cell_set_internal_link:function(t,e,n){return ig(t,"#"+e,n)},cell_add_comment:function(t,e,n){t.c||(t.c=[]),t.c.push({t:e,a:n||"SheetJS"})},sheet_set_array_formula:function(t,e,n,a){for(var r="string"!=typeof e?e:Zu(e),i="string"==typeof e?e:Ju(e),o=r.s.r;o<=r.e.r;++o)for(var s=r.s.c;s<=r.e.c;++s){var l=ng(t,o,s);l.t="n",l.F=i,delete l.v,o==r.s.r&&s==r.s.c&&(l.f=n,a&&(l.D=!0))}return t},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};Bs.version;var sg=n(4213);function lg(t){return lg="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},lg(t)}const cg={name:"AdminDataTable",props:{headers:{type:Array,default:function(){return[]}},items:{type:Array,default:function(){return[]}},itemsPerPage:{type:Number,default:10},showPagination:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},itemKey:{type:String,default:"id"},emptyText:{type:String,default:"Tiada data"},exportable:{type:Boolean,default:!1},exportFileName:{type:String,default:"table-data"},showIndex:{type:Boolean,default:!0},indexTitle:{type:String,default:"Bil"}},data:function(){return{page:1,localPerPage:this.itemsPerPage,sortKey:null,sortDir:"asc",perPageOptions:[10,25,50,100,500,1e3]}},computed:{totalItems:function(){return this.sortedItems.length},totalPages:function(){return Math.ceil(this.totalItems/this.localPerPage)||1},sortedItems:function(){var t=this.items.slice();if(!this.sortKey)return t;var e=this.sortKey,n="desc"===this.sortDir?-1:1;return t.sort((function(t,a){var r=t[e],i=a[e];return null==r&&null==i?0:null==r?1:null==i?-1:"number"==typeof r&&"number"==typeof i?(r-i)*n:String(r).localeCompare(String(i),void 0,{numeric:!0})*n})),t},displayRows:function(){if(!this.showPagination)return this.sortedItems;var t=(this.page-1)*this.localPerPage;return this.sortedItems.slice(t,t+this.localPerPage)},rangeFrom:function(){return this.totalItems?(this.page-1)*this.localPerPage+1:0},rangeTo:function(){return Math.min(this.page*this.localPerPage,this.totalItems)},tableHeaders:function(){return this.showIndex?[{title:this.indexTitle,key:"__adt_index",sortable:!1}].concat(this.headers):this.headers}},watch:{items:function(){this.page>this.totalPages&&(this.page=Math.max(1,this.totalPages))},itemsPerPage:function(t){this.localPerPage=t}},methods:{rowGlobalIndex:function(t){return this.showPagination?(this.page-1)*this.localPerPage+t+1:t+1},cellTdClass:function(t){var e={};return"__adt_index"===t.key&&(e["admin-data-table__col-index"]=!0),e},cellValue:function(t,e){return t[e]},formatCell:function(t,e){var n=t[e];return null==n?"":n},toggleSort:function(t){this.sortKey===t?this.sortDir="asc"===this.sortDir?"desc":"asc":(this.sortKey=t,this.sortDir="asc")},goPage:function(t){t<1||t>this.totalPages||(this.page=t)},onPerPageChange:function(){this.page=1},isActionColumnKey:function(t){if(!t)return!1;var e=String(t).toLowerCase();return"actions"===e||"action"===e||"opsi"===e||"tindakan"===e},resolveFieldValue:function(t,e){if("#"===e)return"";for(var n=String(e).split("."),a=t,r=0;r<n.length;r++){if(!a||"object"!==lg(a)||!(n[r]in a))return null;a=a[n[r]]}return Array.isArray(a)?a.map((function(t){return t&&"object"===lg(t)&&null!=t.name?t.name:String(t)})).join(", "):a&&"object"===lg(a)&&"name"in a?a.name:a},cellStringForExport:function(t,e,n){if("function"==typeof t.exportValue)return t.exportValue(e,n)||"";if("__adt_index"===t.key||"#"===t.key)return String(n+1);if(this.isActionColumnKey(t.key))return"";var a=this.resolveFieldValue(e,t.key);return null==a?"":String(a)},prepareExportMatrix:function(){var t=[],e=this.tableHeaders.map((function(t){return t.title||t.key})),n=this;return this.sortedItems.forEach((function(e,a){var r=n.tableHeaders.map((function(t){return n.cellStringForExport(t,e,a)}));t.push(r)})),{headerTitles:e,rows:t}},exportEmitError:function(t){this.$emit("export-error",t instanceof Error?t:new Error(String(t)))},exportToCSV:function(){try{var t=this.prepareExportMatrix(),e=[t.headerTitles].concat(t.rows).map((function(t){return t.map((function(t){return'"'+String(t).replace(/"/g,'""')+'"'})).join(",")})).join("\n"),n=new Blob([e],{type:"text/csv;charset=utf-8;"});(0,sg.saveAs)(n,this.exportFileName+".csv")}catch(t){this.exportEmitError(t)}},exportToExcel:function(){try{var t=this.prepareExportMatrix(),e=[t.headerTitles].concat(t.rows),n=og.aoa_to_sheet(e),a=og.book_new();og.book_append_sheet(a,n,"Sheet1");var r=Gm(a,{bookType:"xlsx",type:"array"}),i=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});(0,sg.saveAs)(i,this.exportFileName+".xlsx")}catch(t){this.exportEmitError(t)}},exportToPDF:function(){try{var t=this.prepareExportMatrix(),e=t.headerTitles.length,n=new Gr(e>6?"l":"p","pt","a4"),a=8;e>12?a=6:e>8&&(a=7);var r=e>8?4:8,i={head:[t.headerTitles],body:t.rows,styles:{fontSize:a,cellPadding:r},headStyles:{fillColor:[25,118,210]},margin:{top:20}};e>8&&(i.tableWidth="wrap",i.horizontalPageBreak=!0,i.styles=Object.assign({},i.styles,{minCellWidth:36,overflow:"linebreak"})),function(t,e){Ss(t,_s(t,ls(t,e)))}(n,i),n.save(this.exportFileName+".pdf")}catch(t){this.exportEmitError(t)}},exportToJSON:function(){try{var t=this,e=this.sortedItems.map((function(e,n){var a={};return t.tableHeaders.forEach((function(r){var i=r.title||r.key;if(!t.isActionColumnKey(r.key))if("__adt_index"!==r.key)if("function"!=typeof r.exportValue){for(var o=String(r.key).split("."),s=e,l=0;l<o.length;l++){if(!s||"object"!==lg(s)||!(o[l]in s)){s=null;break}s=s[o[l]]}a[i]=s}else a[i]=r.exportValue(e,n);else a[i]=n+1})),a})),n=JSON.stringify(e,null,2),a=new Blob([n],{type:"application/json"});(0,sg.saveAs)(a,this.exportFileName+".json")}catch(t){this.exportEmitError(t)}}}},ug=cg;var dg=n(5072),hg=n.n(dg),fg=n(6734),pg={insert:"head",singleton:!1};hg()(fg.A,pg);fg.A.locals;var mg=(0,n(4486).A)(ug,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-data-table"},[t.exportable?e("div",{staticClass:"clearfix admin-data-table__toolbar"},[e("div",{staticClass:"btn-group pull-right"},[t._m(0),t._v(" "),e("ul",{staticClass:"dropdown-menu dropdown-menu-right"},[e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToCSV.apply(null,arguments)}}},[t._v("Eksport CSV")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToExcel.apply(null,arguments)}}},[t._v("Eksport Excel")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToPDF.apply(null,arguments)}}},[t._v("Eksport PDF")])]),t._v(" "),e("li",[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.exportToJSON.apply(null,arguments)}}},[t._v("Eksport JSON")])])])])]):t._e(),t._v(" "),e("div",{staticClass:"admin-data-table__shell"},[e("div",{staticClass:"admin-data-table__scroll"},[e("table",{staticClass:"admin-data-table__table table table-hover"},[e("thead",[e("tr",t._l(t.tableHeaders,(function(n){return e("th",{key:n.key,class:{"is-sortable":n.sortable,"admin-data-table__col-index":"__adt_index"===n.key},on:{click:function(e){n.sortable&&t.toggleSort(n.key)}}},[e("div",{staticClass:"admin-data-table__th-inner"},[e("span",{staticClass:"admin-data-table__th-title"},[t._v(t._s(n.title))]),t._v(" "),n.sortable?e("span",{staticClass:"admin-data-table__sort",attrs:{"aria-hidden":"true"}},[t.sortKey===n.key?["asc"===t.sortDir?e("svg",{staticClass:"admin-data-table__sort-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M18 15l-6-6-6 6"}})]):e("svg",{staticClass:"admin-data-table__sort-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{d:"M6 9l6 6 6-6"}})])]:e("span",{staticClass:"admin-data-table__sort-hint"},[e("svg",{staticClass:"admin-data-table__sort-icon admin-data-table__sort-icon--faint",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"}},[e("path",{attrs:{d:"M18 15l-6-6-6 6"}})]),t._v(" "),e("svg",{staticClass:"admin-data-table__sort-icon admin-data-table__sort-icon--faint",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5"}},[e("path",{attrs:{d:"M6 9l6 6 6-6"}})])])],2):t._e()])])})),0)]),t._v(" "),e("tbody",[t.loading?e("tr",{staticClass:"admin-data-table__state-row"},[e("td",{attrs:{colspan:t.tableHeaders.length}},[t._m(1)])]):t.displayRows.length?t._l(t.displayRows,(function(n,a){return e("tr",{key:String(n[t.itemKey])},t._l(t.tableHeaders,(function(r){return e("td",{key:r.key,class:t.cellTdClass(r)},["__adt_index"===r.key?[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.rowGlobalIndex(a))+"\n\t\t\t\t\t\t\t")]:[t._t("item-"+r.key,(function(){return[t._v("\n\t\t\t\t\t\t\t\t\t"+t._s(t.formatCell(n,r.key))+"\n\t\t\t\t\t\t\t\t")]}),{item:n,value:t.cellValue(n,r.key)})]],2)})),0)})):e("tr",{staticClass:"admin-data-table__state-row"},[e("td",{attrs:{colspan:t.tableHeaders.length}},[e("div",{staticClass:"admin-data-table__state"},[e("i",{staticClass:"fa fa-inbox admin-data-table__state-icon"}),t._v(" "),e("div",{staticClass:"admin-data-table__state-title"},[t._v(t._s(t.emptyText))]),t._v(" "),e("div",{staticClass:"admin-data-table__state-hint"},[t._v("Tiada rekod untuk dipaparkan")])])])])],2)])]),t._v(" "),t.showPagination&&!t.loading&&t.totalItems>0?e("div",{staticClass:"admin-data-table__footer"},[e("div",{staticClass:"admin-data-table__footer-left"},[e("label",{staticClass:"admin-data-table__footer-label"},[t._v("Baris setiap halaman")]),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model.number",value:t.localPerPage,expression:"localPerPage",modifiers:{number:!0}}],staticClass:"form-control input-sm admin-data-table__page-size",on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(e){var n="_value"in e?e._value:e.value;return t._n(n)}));t.localPerPage=e.target.multiple?n:n[0]},t.onPerPageChange]}},t._l(t.perPageOptions,(function(n){return e("option",{key:n,domProps:{value:n}},[t._v(t._s(n))])})),0)]),t._v(" "),e("div",{staticClass:"admin-data-table__footer-mid"},[t._v("\n\t\t\t\t"+t._s(t.rangeFrom)+"–"+t._s(t.rangeTo)+" daripada "+t._s(t.totalItems)+"\n\t\t\t")]),t._v(" "),e("nav",{staticClass:"admin-data-table__footer-right",attrs:{"aria-label":"Pagination"}},[e("ul",{staticClass:"pagination pagination-sm admin-data-table__pagination"},[e("li",{class:{disabled:t.page<=1}},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goPage(t.page-1)}}},[t._v("Sebelum")])]),t._v(" "),e("li",{class:{disabled:t.page>=t.totalPages}},[e("a",{attrs:{href:"#"},on:{click:function(e){return e.preventDefault(),t.goPage(t.page+1)}}},[t._v("Seterusnya")])])])])]):t._e()])])}),[function(){var t=this._self._c;return t("button",{staticClass:"btn btn-default btn-sm dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t("i",{staticClass:"fa fa-download"}),this._v(" Eksport "),t("span",{staticClass:"caret"})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"admin-data-table__state"},[e("i",{staticClass:"fa fa-refresh fa-spin admin-data-table__state-icon"}),t._v(" "),e("div",{staticClass:"admin-data-table__state-title"},[t._v("Memuatkan…")])])}],!1,null,"4e8fcc88",null);const gg=mg.exports},3228:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});const a=(0,n(4486).A)({},(function(){return(0,this._self._c)("div",{staticClass:"modal-body"},[this._t("default")],2)}),[],!1,null,null,null).exports},3179:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});const a=(0,n(4486).A)({},(function(){return(0,this._self._c)("div",{staticClass:"modal-footer"},[this._t("default")],2)}),[],!1,null,null,null).exports},8348:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>a});const a=(0,n(4486).A)({},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal"}},[t._v("×")]),t._v(" "),e("h4",[t._t("default")],2)])}),[],!1,null,null,null).exports},8881:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const a={props:["id","aClass"]};var r=n(5072),i=n.n(r),o=n(698),s={insert:"head",singleton:!1};i()(o.A,s);o.A.locals;const l=(0,n(4486).A)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal fade app-modal",attrs:{id:t.id,role:"dialog"}},[e("div",{staticClass:"modal-dialog"},[e("div",{staticClass:"modal-content",class:t.aClass},[t._t("default")],2)])])}),[],!1,null,null,null).exports},7725:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const a={props:{fileId:{default:"fileId"},fileName:{default:"file_name"},imageId:{default:"imageId"},imageSrc:{default:"#"}},methods:{readFile:function(t,e){var n=$("#"+t)[0],a=$("#"+e);if(n.files&&n.files[0]){var r=new FileReader;r.onload=function(t){a.attr("src",t.target.result)},r.readAsDataURL(n.files[0])}}}};var r=n(5072),i=n.n(r),o=n(4829),s={insert:"head",singleton:!1};i()(o.A,s);o.A.locals;const l=(0,n(4486).A)(a,(function(){var t=this,e=t._self._c;return e("center",[e("div",{staticClass:"imgContainer"},[e("input",{staticClass:"file",attrs:{type:"file",id:t.fileId,name:t.fileName},on:{change:function(e){return t.readFile(t.fileId,t.imageId)}}}),t._v(" "),e("img",{staticClass:"imgUpload img-rounded",attrs:{src:t.imageSrc,height:"100%",width:"100%",id:t.imageId}}),t._v(" "),e("span",{staticClass:"imgText"},[t._v("Select Image")])])])}),[],!1,null,null,null).exports},4486:(t,e,n)=>{"use strict";function a(t,e,n,a,r,i,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),a&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,{A:()=>a})},3686:()=>{},2284:(t,e,n)=>{"use strict";function a(t){return a="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},a(t)}n.d(e,{A:()=>a})}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,exports:{}};return r[t].call(n.exports,n,n.exports,o),n.exports}o.m=r,t=[],o.O=(e,n,a,r)=>{if(!n){var i=1/0;for(u=0;u<t.length;u++){for(var[n,a,r]=t[u],s=!0,l=0;l<n.length;l++)(!1&r||i>=r)&&Object.keys(o.O).every((t=>o.O[t](n[l])))?n.splice(l--,1):(s=!1,r<i&&(i=r));if(s){t.splice(u--,1);var c=a();void 0!==c&&(e=c)}}return e}r=r||0;for(var u=t.length;u>0&&t[u-1][2]>r;u--)t[u]=t[u-1];t[u]=[n,a,r]},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},n=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(t,a){if(1&a&&(t=this(t)),8&a)return t;if("object"==typeof t&&t){if(4&a&&t.__esModule)return t;if(16&a&&"function"==typeof t.then)return t}var r=Object.create(null);o.r(r);var i={};e=e||[null,n({}),n([]),n(n)];for(var s=2&a&&t;"object"==typeof s&&!~e.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,o.d(r,i),r},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,n)=>(o.f[n](t,e),e)),[])),o.u=t=>354===t?"js/354.js":418===t?"js/418.js":332===t?"js/332.js":void 0,o.miniCssF=t=>"css/app.css",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a={},o.l=(t,e,n,r)=>{if(a[t])a[t].push(e);else{var i,s;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==t){i=u;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,o.nc&&i.setAttribute("nonce",o.nc),i.src=t),a[t]=[e];var d=(e,n)=>{i.onerror=i.onload=null,clearTimeout(h);var r=a[t];if(delete a[t],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((t=>t(n))),e)return e(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.p="/",(()=>{var t={847:0,252:0};o.f.j=(e,n)=>{var a=o.o(t,e)?t[e]:void 0;if(0!==a)if(a)n.push(a[2]);else if(252!=e){var r=new Promise(((n,r)=>a=t[e]=[n,r]));n.push(a[2]=r);var i=o.p+o.u(e),s=new Error;o.l(i,(n=>{if(o.o(t,e)&&(0!==(a=t[e])&&(t[e]=void 0),a)){var r=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,a[1](s)}}),"chunk-"+e,e)}else t[e]=0},o.O.j=e=>0===t[e];var e=(e,n)=>{var a,r,[i,s,l]=n,c=0;if(i.some((e=>0!==t[e]))){for(a in s)o.o(s,a)&&(o.m[a]=s[a]);if(l)var u=l(o)}for(e&&e(n);c<i.length;c++)r=i[c],o.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return o.O(u)},n=self.webpackChunk=self.webpackChunk||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),o.nc=void 0,o.O(void 0,[252],(()=>o(6198)));var s=o.O(void 0,[252],(()=>o(5908)));s=o.O(s)})(); |