summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbuttle <chris@gatopelao.org>2024-02-26 13:50:13 +0100
committerbuttle <chris@gatopelao.org>2024-02-26 13:51:02 +0100
commit57ea14a64a04e7458dc8af6c16691f7ee4aa2c50 (patch)
tree41b051a088591d50c0aece2acc448f3e718ccad7
parent81bddb009075f4b1f79bbaf7a5516326890d3e05 (diff)
updates data-display componentv3.1.0-dev-2
-rw-r--r--VERSION.txt2
-rw-r--r--liberaforms/static/js/data-display/v2/answers-diff-renderer.js2
-rw-r--r--liberaforms/static/js/data-display/v2/data-display.js2
-rw-r--r--liberaforms/static/js/data-display/v2/graph-renderer.js2
-rw-r--r--liberaforms/static/js/data-display/v2/items-renderer.js2
-rw-r--r--liberaforms/static/js/data-display/v2/pdf-builder.js2
6 files changed, 6 insertions, 6 deletions
diff --git a/VERSION.txt b/VERSION.txt
index 99ca63d9..e3895099 100644
--- a/VERSION.txt
+++ b/VERSION.txt
@@ -1 +1 @@
-3.1.0-dev-1
+3.1.0-dev-2
diff --git a/liberaforms/static/js/data-display/v2/answers-diff-renderer.js b/liberaforms/static/js/data-display/v2/answers-diff-renderer.js
index 9e9098b5..c987e272 100644
--- a/liberaforms/static/js/data-display/v2/answers-diff-renderer.js
+++ b/liberaforms/static/js/data-display/v2/answers-diff-renderer.js
@@ -1 +1 @@
-(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[60],{7813:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.convertChangesToDMP=function(e){for(var n,t,i=[],o=0;o<e.length;o++)t=(n=e[o]).added?1:n.removed?-1:0,i.push([t,n.value]);return i}},5601:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.convertChangesToXML=function(e){for(var n=[],t=0;t<e.length;t++){var i=e[t];i.added?n.push("<ins>"):i.removed&&n.push("<del>"),n.push((o=i.value,void 0,o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),i.added?n.push("</ins>"):i.removed&&n.push("</del>")}var o;return n.join("")}},5153:function(e,n,t){"use strict";n.__esModule=!0,n.arrayDiff=void 0,n.diffArrays=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(7876))&&i.__esModule?i:{default:i},r=n.arrayDiff=new o.default;r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}},7876:function(e,n,t){"use strict";function i(){}function o(e,n,t,i,o){for(var r=0,s=n.length,l=0,a=0;r<s;r++){var d=n[r];if(d.removed){if(d.value=e.join(i.slice(a,a+d.count)),a+=d.count,r&&n[r-1].added){var u=n[r-1];n[r-1]=n[r],n[r]=u}}else{if(!d.added&&o){var f=t.slice(l,l+d.count);f=f.map((function(e,n){var t=i[a+n];return t.length>e.length?t:e})),d.value=e.join(f)}else d.value=e.join(t.slice(l,l+d.count));l+=d.count,d.added||(a+=d.count)}}var c=n[s-1];return s>1&&"string"==typeof c.value&&(c.added||c.removed)&&e.equals("",c.value)&&(n[s-2].value+=c.value,n.pop()),n}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}t(4573),n.__esModule=!0,n.default=i,i.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.callback;"function"==typeof t&&(i=t,t={}),this.options=t;var s=this;function l(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,d=e.length,u=1,f=a+d,c=[{newPos:-1,components:[]}],p=this.extractCommon(c[0],n,e,0);if(c[0].newPos+1>=a&&p+1>=d)return l([{value:this.join(n),count:n.length}]);function h(){for(var t=-1*u;t<=u;t+=2){var i,f=c[t-1],p=c[t+1],h=(p?p.newPos:0)-t;f&&(c[t-1]=void 0);var v=f&&f.newPos+1<a,m=p&&h>=0&&h<d;if(v||m){if(!v||m&&f.newPos<p.newPos?(i=r(p),s.pushComponent(i.components,void 0,!0)):((i=f).newPos++,s.pushComponent(i.components,!0,void 0)),h=s.extractCommon(i,n,e,t),i.newPos+1>=a&&h+1>=d)return l(o(s,i.components,n,e,s.useLongestToken));c[t]=i}else c[t]=void 0}u++}if(i)!function e(){setTimeout((function(){if(u>f)return i();h()||e()}),0)}();else for(;u<=f;){var v=h();if(v)return v}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var o=n.length,r=t.length,s=e.newPos,l=s-i,a=0;s+1<o&&l+1<r&&this.equals(n[s+1],t[l+1]);)s++,l++,a++;return a&&e.components.push({count:a}),e.newPos=s,l},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},5195:function(e,n,t){"use strict";n.__esModule=!0,n.characterDiff=void 0,n.diffChars=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(7876))&&i.__esModule?i:{default:i},r=n.characterDiff=new o.default},4234:function(e,n,t){"use strict";n.__esModule=!0,n.cssDiff=void 0,n.diffCss=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(7876))&&i.__esModule?i:{default:i},r=n.cssDiff=new o.default;r.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},7014:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.jsonDiff=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.diffJson=function(e,n,t){return a.diff(e,n,t)},n.canonicalize=d;var o,r=(o=t(7876))&&o.__esModule?o:{default:o},s=t(8350),l=Object.prototype.toString,a=n.jsonDiff=new r.default;function d(e,n,t,o,r){var s,a;for(n=n||[],t=t||[],o&&(e=o(r,e)),s=0;s<n.length;s+=1)if(n[s]===e)return t[s];if("[object Array]"===l.call(e)){for(n.push(e),a=new Array(e.length),t.push(a),s=0;s<e.length;s+=1)a[s]=d(e[s],n,t,o,r);return n.pop(),t.pop(),a}if(e&&e.toJSON&&(e=e.toJSON()),"object"===(void 0===e?"undefined":i(e))&&null!==e){n.push(e),a={},t.push(a);var u,f=[];for(u in e)e.hasOwnProperty(u)&&f.push(u);for(f.sort(),s=0;s<f.length;s+=1)a[u=f[s]]=d(e[u],n,t,o,u);n.pop(),t.pop()}else a=e;return a}a.useLongestToken=!0,a.tokenize=s.lineDiff.tokenize,a.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,o=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(d(e,null,null,o),o," ")},a.equals=function(e,n){return r.default.prototype.equals.call(a,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))}},8350:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.lineDiff=void 0,n.diffLines=function(e,n,t){return s.diff(e,n,t)},n.diffTrimmedLines=function(e,n,t){var i=(0,r.generateOptions)(t,{ignoreWhitespace:!0});return s.diff(e,n,i)};var i,o=(i=t(7876))&&i.__esModule?i:{default:i},r=t(1816),s=n.lineDiff=new o.default;s.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var o=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),n.push(o))}return n}},949:function(e,n,t){"use strict";n.__esModule=!0,n.sentenceDiff=void 0,n.diffSentences=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(7876))&&i.__esModule?i:{default:i},r=n.sentenceDiff=new o.default;r.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},1909:function(e,n,t){"use strict";n.__esModule=!0,n.wordDiff=void 0,n.diffWords=function(e,n,t){return t=(0,r.generateOptions)(t,{ignoreWhitespace:!0}),a.diff(e,n,t)},n.diffWordsWithSpace=function(e,n,t){return a.diff(e,n,t)};var i,o=(i=t(7876))&&i.__esModule?i:{default:i},r=t(1816),s=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,a=n.wordDiff=new o.default;a.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(n)},a.tokenize=function(e){for(var n=e.split(/(\s+|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&s.test(n[t])&&s.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n}},1881:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.applyPatch=s,n.applyPatches=function(e,n){"string"==typeof e&&(e=(0,o.parsePatch)(e));var t=0;!function i(){var o=e[t++];if(!o)return n.complete();n.loadFile(o,(function(e,t){if(e)return n.complete(e);var r=s(t,o,n);n.patched(o,r,(function(e){if(e)return n.complete(e);i()}))}))}()};var i,o=t(7052),r=(i=t(5942))&&i.__esModule?i:{default:i};function s(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n&&(n=(0,o.parsePatch)(n)),Array.isArray(n)){if(n.length>1)throw new Error("applyPatch only works with a single input.");n=n[0]}var i,s,l=e.split(/\r\n|[\n\v\f\r\x85]/),a=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],d=n.hunks,u=t.compareLine||function(e,n,t,i){return n===i},f=0,c=t.fuzzFactor||0,p=0,h=0;function v(e,n){for(var t=0;t<e.lines.length;t++){var i=e.lines[t],o=i.length>0?i[0]:" ",r=i.length>0?i.substr(1):i;if(" "===o||"-"===o){if(!u(n+1,l[n],o,r)&&++f>c)return!1;n++}}return!0}for(var m=0;m<d.length;m++){for(var g=d[m],w=l.length-g.oldLines,_=0,y=h+g.oldStart-1,b=(0,r.default)(y,p,w);void 0!==_;_=b())if(v(g,y+_)){g.offset=h+=_;break}if(void 0===_)return!1;p=g.offset+g.oldStart+g.oldLines}for(var x=0,S=0;S<d.length;S++){var L=d[S],k=L.oldStart+L.offset+x-1;x+=L.newLines-L.oldLines,k<0&&(k=0);for(var F=0;F<L.lines.length;F++){var M=L.lines[F],C=M.length>0?M[0]:" ",P=M.length>0?M.substr(1):M,D=L.linedelimiters[F];if(" "===C)k++;else if("-"===C)l.splice(k,1),a.splice(k,1);else if("+"===C)l.splice(k,0,P),a.splice(k,0,D),k++;else if("\\"===C){var H=L.lines[F-1]?L.lines[F-1][0]:null;"+"===H?i=!0:"-"===H&&(s=!0)}}}if(i)for(;!l[l.length-1];)l.pop(),a.pop();else s&&(l.push(""),a.push("\n"));for(var T=0;T<l.length-1;T++)l[T]=l[T]+a[T];return l.join("")}},5048:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.structuredPatch=r,n.createTwoFilesPatch=s,n.createPatch=function(e,n,t,i,o,r){return s(e,e,n,t,i,o,r)};var i=t(8350);function o(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function r(e,n,t,r,s,l,a){a||(a={}),void 0===a.context&&(a.context=4);var d=(0,i.diffLines)(t,r,a);function u(e){return e.map((function(e){return" "+e}))}d.push({value:"",lines:[]});for(var f=[],c=0,p=0,h=[],v=1,m=1,g=function(e){var n=d[e],i=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=i,n.added||n.removed){var s;if(!c){var l=d[e-1];c=v,p=m,l&&(h=a.context>0?u(l.lines.slice(-a.context)):[],c-=h.length,p-=h.length)}(s=h).push.apply(s,o(i.map((function(e){return(n.added?"+":"-")+e})))),n.added?m+=i.length:v+=i.length}else{if(c)if(i.length<=2*a.context&&e<d.length-2){var g;(g=h).push.apply(g,o(u(i)))}else{var w,_=Math.min(i.length,a.context);(w=h).push.apply(w,o(u(i.slice(0,_))));var y={oldStart:c,oldLines:v-c+_,newStart:p,newLines:m-p+_,lines:h};if(e>=d.length-2&&i.length<=a.context){var b=/\n$/.test(t),x=/\n$/.test(r);0!==i.length||b?b&&x||h.push("\\ No newline at end of file"):h.splice(y.oldLines,0,"\\ No newline at end of file")}f.push(y),c=0,p=0,h=[]}v+=i.length,m+=i.length}},w=0;w<d.length;w++)g(w);return{oldFileName:e,newFileName:n,oldHeader:s,newHeader:l,hunks:f}}function s(e,n,t,i,o,s,l){var a=r(e,n,t,i,o,s,l),d=[];e===n&&d.push("Index: "+e),d.push("==================================================================="),d.push("--- "+a.oldFileName+(void 0===a.oldHeader?"":"\t"+a.oldHeader)),d.push("+++ "+a.newFileName+(void 0===a.newHeader?"":"\t"+a.newHeader));for(var u=0;u<a.hunks.length;u++){var f=a.hunks[u];d.push("@@ -"+f.oldStart+","+f.oldLines+" +"+f.newStart+","+f.newLines+" @@"),d.push.apply(d,f.lines)}return d.join("\n")+"\n"}},199:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.calcLineCount=l,n.merge=function(e,n,t){e=a(e,t),n=a(n,t);var i={};(e.index||n.index)&&(i.index=e.index||n.index),(e.newFileName||n.newFileName)&&(d(e)?d(n)?(i.oldFileName=u(i,e.oldFileName,n.oldFileName),i.newFileName=u(i,e.newFileName,n.newFileName),i.oldHeader=u(i,e.oldHeader,n.oldHeader),i.newHeader=u(i,e.newHeader,n.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=n.oldFileName||e.oldFileName,i.newFileName=n.newFileName||e.newFileName,i.oldHeader=n.oldHeader||e.oldHeader,i.newHeader=n.newHeader||e.newHeader)),i.hunks=[];for(var o=0,r=0,s=0,l=0;o<e.hunks.length||r<n.hunks.length;){var h=e.hunks[o]||{oldStart:1/0},v=n.hunks[r]||{oldStart:1/0};if(f(h,v))i.hunks.push(c(h,s)),o++,l+=h.newLines-h.oldLines;else if(f(v,h))i.hunks.push(c(v,l)),r++,s+=v.newLines-v.oldLines;else{var m={oldStart:Math.min(h.oldStart,v.oldStart),oldLines:0,newStart:Math.min(h.newStart+s,v.oldStart+l),newLines:0,lines:[]};p(m,h.oldStart,h.lines,v.oldStart,v.lines),r++,o++,i.hunks.push(m)}}return i};var i=t(5048),o=t(7052),r=t(365);function s(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function l(e){var n=x(e.lines),t=n.oldLines,i=n.newLines;void 0!==t?e.oldLines=t:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function a(e,n){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,o.parsePatch)(e)[0];if(!n)throw new Error("Must provide a base reference or pass in a patch");return(0,i.structuredPatch)(void 0,void 0,n,e)}return e}function d(e){return e.newFileName&&e.newFileName!==e.oldFileName}function u(e,n,t){return n===t?n:(e.conflict=!0,{mine:n,theirs:t})}function f(e,n){return e.oldStart<n.oldStart&&e.oldStart+e.oldLines<n.oldStart}function c(e,n){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+n,newLines:e.newLines,lines:e.lines}}function p(e,n,t,i,o){var r={offset:n,lines:t,index:0},a={offset:i,lines:o,index:0};for(g(e,r,a),g(e,a,r);r.index<r.lines.length&&a.index<a.lines.length;){var d=r.lines[r.index],u=a.lines[a.index];if("-"!==d[0]&&"+"!==d[0]||"-"!==u[0]&&"+"!==u[0])if("+"===d[0]&&" "===u[0]){var f;(f=e.lines).push.apply(f,s(_(r)))}else if("+"===u[0]&&" "===d[0]){var c;(c=e.lines).push.apply(c,s(_(a)))}else"-"===d[0]&&" "===u[0]?v(e,r,a):"-"===u[0]&&" "===d[0]?v(e,a,r,!0):d===u?(e.lines.push(d),r.index++,a.index++):m(e,_(r),_(a));else h(e,r,a)}w(e,r),w(e,a),l(e)}function h(e,n,t){var i=_(n),o=_(t);if(y(i)&&y(o)){var l,a;if((0,r.arrayStartsWith)(i,o)&&b(t,i,i.length-o.length))return void(l=e.lines).push.apply(l,s(i));if((0,r.arrayStartsWith)(o,i)&&b(n,o,o.length-i.length))return void(a=e.lines).push.apply(a,s(o))}else if((0,r.arrayEqual)(i,o)){var d;return void(d=e.lines).push.apply(d,s(i))}m(e,i,o)}function v(e,n,t,i){var o,r=_(n),l=function(e,n){for(var t=[],i=[],o=0,r=!1,s=!1;o<n.length&&e.index<e.lines.length;){var l=e.lines[e.index],a=n[o];if("+"===a[0])break;if(r=r||" "!==l[0],i.push(a),o++,"+"===l[0])for(s=!0;"+"===l[0];)t.push(l),l=e.lines[++e.index];a.substr(1)===l.substr(1)?(t.push(l),e.index++):s=!0}if("+"===(n[o]||"")[0]&&r&&(s=!0),s)return t;for(;o<n.length;)i.push(n[o++]);return{merged:i,changes:t}}(t,r);l.merged?(o=e.lines).push.apply(o,s(l.merged)):m(e,i?l:r,i?r:l)}function m(e,n,t){e.conflict=!0,e.lines.push({conflict:!0,mine:n,theirs:t})}function g(e,n,t){for(;n.offset<t.offset&&n.index<n.lines.length;){var i=n.lines[n.index++];e.lines.push(i),n.offset++}}function w(e,n){for(;n.index<n.lines.length;){var t=n.lines[n.index++];e.lines.push(t)}}function _(e){for(var n=[],t=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===t&&"+"===i[0]&&(t="+"),t!==i[0])break;n.push(i),e.index++}return n}function y(e){return e.reduce((function(e,n){return e&&"-"===n[0]}),!0)}function b(e,n,t){for(var i=0;i<t;i++){var o=n[n.length-t+i].substr(1);if(e.lines[e.index+i]!==" "+o)return!1}return e.index+=t,!0}function x(e){var n=0,t=0;return e.forEach((function(e){if("string"!=typeof e){var i=x(e.mine),o=x(e.theirs);void 0!==n&&(i.oldLines===o.oldLines?n+=i.oldLines:n=void 0),void 0!==t&&(i.newLines===o.newLines?t+=i.newLines:t=void 0)}else void 0===t||"+"!==e[0]&&" "!==e[0]||t++,void 0===n||"-"!==e[0]&&" "!==e[0]||n++})),{oldLines:n,newLines:t}}},7052:function(e,n,t){"use strict";t(4573),n.__esModule=!0,n.parsePatch=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],r=0;function s(){var e={};for(o.push(e);r<t.length;){var i=t[r];if(/^(---|\+\+\+|@@)\s/.test(i))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);s&&(e.index=s[1]),r++}for(l(e),l(e),e.hunks=[];r<t.length;){var d=t[r];if(/^(Index:|diff|---|\+\+\+)\s/.test(d))break;if(/^@@/.test(d))e.hunks.push(a());else{if(d&&n.strict)throw new Error("Unknown line "+(r+1)+" "+JSON.stringify(d));r++}}}function l(e){var n=/^(---|\+\+\+)\s+(.*)$/.exec(t[r]);if(n){var i="---"===n[1]?"old":"new",o=n[2].split("\t",2),s=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(s)&&(s=s.substr(1,s.length-2)),e[i+"FileName"]=s,e[i+"Header"]=(o[1]||"").trim(),r++}}function a(){for(var e=r,o=t[r++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},l=0,a=0;r<t.length&&!(0===t[r].indexOf("--- ")&&r+2<t.length&&0===t[r+1].indexOf("+++ ")&&0===t[r+2].indexOf("@@"));r++){var d=0===t[r].length&&r!==t.length-1?" ":t[r][0];if("+"!==d&&"-"!==d&&" "!==d&&"\\"!==d)break;s.lines.push(t[r]),s.linedelimiters.push(i[r]||"\n"),"+"===d?l++:"-"===d?a++:" "===d&&(l++,a++)}if(l||1!==s.newLines||(s.newLines=0),a||1!==s.oldLines||(s.oldLines=0),n.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(a!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}for(;r<t.length;)s();return o}},365:function(e,n){"use strict";function t(e,n){if(n.length>e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}n.__esModule=!0,n.arrayEqual=function(e,n){return e.length===n.length&&t(e,n)},n.arrayStartsWith=t},5942:function(e,n){"use strict";n.__esModule=!0,n.default=function(e,n,t){var i=!0,o=!1,r=!1,s=1;return function l(){if(i&&!r){if(o?s++:i=!1,e+s<=t)return s;r=!0}if(!o)return r||(i=!0),n<=e-s?-s++:(o=!0,l())}}},1816:function(e,n){"use strict";n.__esModule=!0,n.generateOptions=function(e,n){if("function"==typeof e)n.callback=e;else if(e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}},5784:function(e,n,t){"use strict";var i=t(341),o=t(2596),r=t(159),s=t(6229);const l=e=>((0,s.dD)("data-v-731ccbfd"),e=e(),(0,s.Cn)(),e),a={key:0},d={class:"grid mt-2"},u={class:"g-col-12"},f=l((()=>(0,s._)("hr",{class:"mt-4"},null,-1))),c={class:"grid mt-1"},p={class:"g-col-12"},h=l((()=>(0,s._)("hr",{class:"mt-1"},null,-1))),v={class:"grid mt-1"},m={class:"g-col-12"};var g=t(3895),w=t(6767),_=t(2502);const y={class:"form-label"},b=["selected","value"];var x={name:"DiffSelector",components:{},setup(){const e=(0,g.i)();return{editions:(0,s.Fl)((()=>e.items)),loadEdition:(0,s.f3)("loadEdition"),is_selected:function(n){return n==e.meta.selected_edition.id}}}},S=t(6021),L=(0,S.Z)(x,[["render",function(e,n,t,i,o,r){return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s._)("label",y,(0,_.toDisplayString)(e.$t("Select a date")),1),(0,s._)("select",{onChange:n[0]||(n[0]=e=>i.loadEdition(e.target.value)),class:"custom-select form-select",id:"editionSelector","aria-label":"Order data by this field"},[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(i.editions,((n,t)=>((0,s.wg)(),(0,s.iD)("option",{key:n.id,selected:i.is_selected(n.id),value:n.id},(0,_.toDisplayString)(0==t?e.$t("Most recent"):e.$t(n.created)),9,b)))),128))],32)],64)}]]);const k=e=>((0,s.dD)("data-v-5b0c5515"),e=e(),(0,s.Cn)(),e),F=["innerHTML"],M={class:"mt-2"},C=["innerHTML"],P=k((()=>(0,s._)("span",{class:"ds-diff-removed px-2"},null,-1))),D=k((()=>(0,s._)("span",{class:"ds-diff-added px-2"},null,-1)));var H=t(9371),T={name:"EditionInfo",components:{},setup(){const e=(0,g.i)(),{t:n}=(0,H.QT)({useScope:"global"});return{submitted_date:(0,s.Fl)((()=>n("Data submitted on the %date%").replace(/%date%/,e.meta.selected_edition.created))),author:(0,s.Fl)((()=>e.meta.selected_edition.author))}}};t(9506);var N=(0,S.Z)(T,[["render",function(e,n,t,i,o,r){return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s._)("div",{class:"mt-0",innerHTML:i.submitted_date},null,8,F),(0,s._)("div",M,[(0,s._)("span",{class:"author",innerHTML:i.author},null,8,C),(0,s.Uk)("  "),P,(0,s.Uk)(" "+(0,_.toDisplayString)(e.$t("removed"))+" ",1),D,(0,s.Uk)(" "+(0,_.toDisplayString)(e.$t("added")),1)])],64)}],["__scopeId","data-v-5b0c5515"]]);const E={key:0},A=["innerHTML"],W=["innerHTML"];t(4573);const z=t(5195),I=t(1909),O=t(8350),j=t(949),$=t(4234),Z=t(7014),q=t(5153),B=t(1881),Y=t(7052),J=t(199),U=t(5048),R=t(7813),V=t(5601);var G={diffChars:z.diffChars,diffWords:I.diffWords,diffWordsWithSpace:I.diffWordsWithSpace,diffLines:O.diffLines,diffTrimmedLines:O.diffTrimmedLines,diffSentences:j.diffSentences,diffCss:$.diffCss,diffJson:Z.diffJson,diffArrays:q.diffArrays,structuredPatch:U.structuredPatch,createTwoFilesPatch:U.createTwoFilesPatch,createPatch:U.createPatch,applyPatch:B.applyPatch,applyPatches:B.applyPatches,parsePatch:Y.parsePatch,merge:J.merge,convertChangesToDMP:R.convertChangesToDMP,convertChangesToXML:V.convertChangesToXML,canonicalize:Z.canonicalize},X=t(3903),K={name:"FieldDiff",components:{},props:{field:Object,selected_edition:Object,compared_with:Object},setup(e){const n=(0,g.i)(),{t:t}=(0,H.QT)({useScope:"global"}),i="<span class='%class%'>%word%</span>";function o(t){return e.field.name.endsWith("__html")?t.html:n.getFormattedValue({field_name:e.field.name,field_value:t})}function r(e,n){return i.replace(/%class%/,"added"==n?"ds-diff-added":"ds-diff-removed").replace(/%word%/,e)}return{field_diff:(0,s.Fl)((()=>{function t(e){var n="";return e.forEach((e=>{let t=e.added?"ds-diff-added":e.removed?"ds-diff-removed":"",r=i.replace(/%class%/,t).replace(/%word%/,o(e.value));n+=r})),n}let s=function(){let n=e.field;return null===e.selected_edition.data[n.name]?"":(0,X.kE)(n)?String(e.selected_edition.data[n.name]):"string"==typeof e.selected_edition.data[n.name]?e.selected_edition.data[n.name]:""}(),l=function(){let n=e.field;return null===e.compared_with||null===e.compared_with.data[n.name]||void 0===e.compared_with.data[n.name]?"":(0,X.kE)(n)?String(e.compared_with.data[n.name]):"string"==typeof e.compared_with.data[n.name]?e.compared_with.data[n.name]:""}();if(null==e.compared_with)return o(s);if(s==l)return o(s);if((0,X._r)(e.field.name)){let t=s.split(", "),i=l.split(", "),o=n.getFieldStructure(e.field.name).values;var a=[];return o.forEach((e=>{t.includes(e.value)&&i.includes(e.value)?a.push(e.label):!t.includes(e.value)&&i.includes(e.value)?a.push(r(e.label,"removed")):t.includes(e.value)&&!i.includes(e.value)&&a.push(r(e.label,"added"))})),a.join(" ")}return e.field.name.startsWith("file-")?t(G.diffSentences(l,s)):t(G.diffWords(l,s))})),empty_field:"<span class='ds-empty-field'>%empty%</span>".replace(/%empty%/,t("Empty"))}}},Q={name:"AnswerDiff",components:{FieldDiff:(0,S.Z)(K,[["render",function(e,n,t,i,o,r){return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s._)("div",{class:"fw-bold mt-3",innerHTML:t.field.label},null,8,A),(0,s._)("div",{innerHTML:i.field_diff?i.field_diff:i.empty_field,class:"mt-1"},null,8,W)],64)}]])},setup(){const e=(0,g.i)();return{field_index:(0,s.Fl)((()=>e.field_index)),selected_edition:(0,s.Fl)((()=>e.meta.selected_edition)),compared_with:(0,s.Fl)((()=>e.meta.compared_with))}}},ee=(0,S.Z)(Q,[["render",function(e,n,t,i,o,r){const l=(0,s.up)("FieldDiff");return(0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(i.field_index,((e,n)=>((0,s.wg)(),(0,s.iD)("div",{key:n},["marked"!=e.name&&"created"!=e.name?((0,s.wg)(),(0,s.iD)("div",E,[(0,s.Wm)(l,{field:e,selected_edition:i.selected_edition,compared_with:i.compared_with},null,8,["field","selected_edition","compared_with"])])):(0,s.kq)("v-if",!0)])))),128)}]]),ne={name:"AnswersDiff",components:{GoToTop:w.Z,EditionSelector:L,EditionInfo:N,AnswerDiff:ee},setup(){const e=(0,g.i)();e.ui.display_panel=!1,e.display_items_as="diff";const n=(0,r.useMq)(),t=(0,s.Fl)((()=>"xs"==n.current));function i(n){for(var t of e.items)t.id==n&&(e.meta.selected_edition=t);let i=e.items.indexOf(e.meta.selected_edition);i<e.items.length-1?e.meta.compared_with=e.items[i+1]:e.meta.compared_with=null}return(0,s.JJ)("xs_screen",t),(0,s.JJ)("loadEdition",i),(0,s.YP)((()=>e.downloading_items),(()=>{i(e.meta.selected_edition_id)})),{xs_screen:t,is_loading:(0,s.Fl)((()=>e.downloading_items))}}};t(905),t(476);var te=(0,S.Z)(ne,[["render",function(e,n,t,i,o,r){const l=(0,s.up)("EditionSelector"),g=(0,s.up)("EditionInfo"),w=(0,s.up)("AnswerDiff");return i.is_loading?(0,s.kq)("v-if",!0):((0,s.wg)(),(0,s.iD)("div",a,[(0,s._)("div",d,[(0,s._)("div",u,[(0,s.Wm)(l)])]),f,(0,s._)("div",c,[(0,s._)("div",p,[(0,s.Wm)(g)])]),h,(0,s._)("div",v,[(0,s._)("div",m,[(0,s.Wm)(w)])])]))}],["__scopeId","data-v-731ccbfd"]]);document.querySelectorAll("[vue-component=answers-diff-renderer]").forEach((e=>{(0,i.createApp)(te).use(o.Z).use(r.Vue3Mq,{}).mount(e)}))},7349:function(e,n,t){"use strict";t.r(n);var i=t(6738),o=t.n(i),r=t(7705),s=t.n(r)()(o());s.push([e.id,"\n.ds-empty-field {\n font-style: italic;\n}\n",""]),n.default=s},7472:function(e,n,t){"use strict";t.r(n);var i=t(6738),o=t.n(i),r=t(7705),s=t.n(r)()(o());s.push([e.id,"\nhr[data-v-731ccbfd] {\n margin: 0;\n margin-left: -1em;\n margin-right: -1em;\n}\n.ds-loading[data-v-731ccbfd] {\n font-style: italic;\n color: var(--lf-gray-800);\n margin-top: 1.5em;\n}\n.ds-no-data[data-v-731ccbfd] {\n font-style: italic;\n color: var(--lf-gray-600);\n margin-top: 1em;\n font-size: 1.75em;\n}\n",""]),n.default=s},6345:function(e,n,t){"use strict";t.r(n);var i=t(6738),o=t.n(i),r=t(7705),s=t.n(r)()(o());s.push([e.id,"\n.ds-goto-top[data-v-0422979d] {\n z-index: 100;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: fixed;\n top:auto;\n bottom:2em;\n right:1.5em;\n left:auto;\n}\n.ds-goto-top > svg[data-v-0422979d] {\n margin-left: 2px;\n margin-top: 0;\n}\n",""]),n.default=s},3281:function(e,n,t){"use strict";t.r(n);var i=t(6738),o=t.n(i),r=t(7705),s=t.n(r)()(o());s.push([e.id,"\n.author[data-v-5b0c5515] .ds-avatar > img {\n height: 22px;\n width: 22px;\n margin-right: 0.25em;\n vertical-align: bottom;\n}\n\n",""]),n.default=s},6767:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(6229),o=t(2502);const r={ref:"target",id:"go_to_top"};var s=t(2343),l=t(991),a={name:"GoToTop",components:{ChevronUpIcon:t(9404).g8U},setup(e){const n=(0,s.iH)(null),t=(0,l.CDf)(n),o=(0,s.iH)(!1);return(0,i.YP)((()=>t.value),(()=>{if(t.value)o.value=!1;else{let e=document.getElementById("go_to_top");e&&e.getBoundingClientRect().top<0&&(o.value=!0)}}),{immediate:!0}),{target:n,showButton:o,goToTop:function(){window.scrollTo(0,0)},themeColors:function(){let e=document.getElementsByClassName("ds-main-navbar")[0],n=window.getComputedStyle(e).getPropertyValue("background-color"),t=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(t).getPropertyValue("color"),"background-color":n}}()}}};t(9716);var d=(0,t(6021).Z)(a,[["render",function(e,n,t,s,l,a){const d=(0,i.up)("ChevronUpIcon");return(0,i.wg)(),(0,i.iD)("div",r,[s.showButton?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"ds-goto-top",style:(0,o.normalizeStyle)(s.themeColors),onClick:n[0]||(n[0]=e=>s.goToTop())},[(0,i.Wm)(d,{size:"3x"})],4)):(0,i.kq)("v-if",!0)],512)}],["__scopeId","data-v-0422979d"]])},905:function(e,n,t){var i=t(7349);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(4023).Z)("6c2d73b5",i,!1,{})},476:function(e,n,t){var i=t(7472);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(4023).Z)("631d04ea",i,!1,{})},9716:function(e,n,t){var i=t(6345);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(4023).Z)("7ff4776c",i,!1,{})},9506:function(e,n,t){var i=t(3281);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(4023).Z)("270ae63b",i,!1,{})},991:function(e,n,t){"use strict";t.d(n,{h4X:function(){return m},CDf:function(){return g}});var i=t(2343),o=t(6229);function r(e){return!!(0,i.nZ)()&&((0,i.EB)(e),!0)}function s(e){return"function"==typeof e?e():(0,i.SU)(e)}const l="undefined"!=typeof window&&"undefined"!=typeof document,a=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),d=(Object.prototype.toString,()=>{});function u(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const f=/\B([A-Z])/g,c=(u((e=>e.replace(f,"-$1").toLowerCase())),/-(\w)/g);function p(e){var n;const t=s(e);return null!=(n=null==t?void 0:t.$el)?n:t}u((e=>e.replace(c,((e,n)=>n?n.toUpperCase():""))));const h=l?window:void 0;function v(e){const n=function(){const e=(0,i.iH)(!1);return(0,o.FN)()&&(0,o.bv)((()=>{e.value=!0})),e}();return(0,o.Fl)((()=>(n.value,Boolean(e()))))}function m(e,n={width:0,height:0},t={}){const{window:s=h,box:l="content-box"}=t,a=(0,o.Fl)((()=>{var n,t;return null==(t=null==(n=p(e))?void 0:n.namespaceURI)?void 0:t.includes("svg")})),d=(0,i.iH)(n.width),u=(0,i.iH)(n.height),{stop:f}=function(e,n,t={}){const{window:i=h,...s}=t;let l;const a=v((()=>i&&"ResizeObserver"in i)),d=()=>{l&&(l.disconnect(),l=void 0)},u=(0,o.Fl)((()=>Array.isArray(e)?e.map((e=>p(e))):[p(e)])),f=(0,o.YP)(u,(e=>{if(d(),a.value&&i){l=new ResizeObserver(n);for(const n of e)n&&l.observe(n,s)}}),{immediate:!0,flush:"post",deep:!0}),c=()=>{d(),f()};return r(c),{isSupported:a,stop:c}}(e,(([n])=>{const t="border-box"===l?n.borderBoxSize:"content-box"===l?n.contentBoxSize:n.devicePixelContentBoxSize;if(s&&a.value){const n=p(e);if(n){const e=s.getComputedStyle(n);d.value=Number.parseFloat(e.width),u.value=Number.parseFloat(e.height)}}else if(t){const e=Array.isArray(t)?t:[t];d.value=e.reduce(((e,{inlineSize:n})=>e+n),0),u.value=e.reduce(((e,{blockSize:n})=>e+n),0)}else d.value=n.contentRect.width,u.value=n.contentRect.height}),t);!function(e,n=!0,t){!function(e){return e||(0,o.FN)()}()?n?e():(0,o.Y3)(e):(0,o.bv)(e,t)}((()=>{const t=p(e);t&&(d.value="offsetWidth"in t?t.offsetWidth:n.width,u.value="offsetHeight"in t?t.offsetHeight:n.height)}));const c=(0,o.YP)((()=>p(e)),(e=>{d.value=e?n.width:0,u.value=e?n.height:0}));return{width:d,height:u,stop:function(){f(),c()}}}function g(e,n={}){const{window:t=h,scrollTarget:l}=n,u=(0,i.iH)(!1);return function(e,n,t={}){const{root:l,rootMargin:u="0px",threshold:f=.1,window:c=h,immediate:m=!0}=t,g=v((()=>c&&"IntersectionObserver"in c)),w=(0,o.Fl)((()=>{const n=s(e);return(Array.isArray(n)?n:[n]).map(p).filter(a)}));let _=d;const y=(0,i.iH)(m),b=g.value?(0,o.YP)((()=>[w.value,p(l),y.value]),(([e,t])=>{if(_(),!y.value)return;if(!e.length)return;const i=new IntersectionObserver(n,{root:p(t),rootMargin:u,threshold:f});e.forEach((e=>e&&i.observe(e))),_=()=>{i.disconnect(),_=d}}),{immediate:m,flush:"post"}):d;r((()=>{_(),b(),y.value=!1}))}(e,(e=>{let n=u.value,t=0;for(const i of e)i.time>=t&&(t=i.time,n=i.isIntersecting);u.value=n}),{root:l,window:t,threshold:0}),u}l&&window.document,l&&window.navigator,l&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY}},function(e){e(e.s=5784)}]); \ No newline at end of file
+(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[872],{9242:function(e,n){"use strict";n.__esModule=!0,n.convertChangesToDMP=function(e){for(var n,t,i=[],o=0;o<e.length;o++)t=(n=e[o]).added?1:n.removed?-1:0,i.push([t,n.value]);return i}},2042:function(e,n){"use strict";n.__esModule=!0,n.convertChangesToXML=function(e){for(var n=[],t=0;t<e.length;t++){var i=e[t];i.added?n.push("<ins>"):i.removed&&n.push("<del>"),n.push((o=i.value,void 0,o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"))),i.added?n.push("</ins>"):i.removed&&n.push("</del>")}var o;return n.join("")}},6:function(e,n,t){"use strict";n.__esModule=!0,n.arrayDiff=void 0,n.diffArrays=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(590))&&i.__esModule?i:{default:i},r=n.arrayDiff=new o.default;r.tokenize=function(e){return e.slice()},r.join=r.removeEmpty=function(e){return e}},590:function(e,n){"use strict";function t(){}function i(e,n,t,i,o){for(var r=0,s=n.length,a=0,l=0;r<s;r++){var d=n[r];if(d.removed){if(d.value=e.join(i.slice(l,l+d.count)),l+=d.count,r&&n[r-1].added){var u=n[r-1];n[r-1]=n[r],n[r]=u}}else{if(!d.added&&o){var f=t.slice(a,a+d.count);f=f.map((function(e,n){var t=i[l+n];return t.length>e.length?t:e})),d.value=e.join(f)}else d.value=e.join(t.slice(a,a+d.count));a+=d.count,d.added||(l+=d.count)}}var c=n[s-1];return s>1&&"string"==typeof c.value&&(c.added||c.removed)&&e.equals("",c.value)&&(n[s-2].value+=c.value,n.pop()),n}n.__esModule=!0,n.default=t,t.prototype={diff:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.callback;"function"==typeof t&&(o=t,t={}),this.options=t;var r=this;function s(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e));var a=(n=this.removeEmpty(this.tokenize(n))).length,l=e.length,d=1,u=a+l,f=[{newPos:-1,components:[]}],c=this.extractCommon(f[0],n,e,0);if(f[0].newPos+1>=a&&c+1>=l)return s([{value:this.join(n),count:n.length}]);function p(){for(var t=-1*d;t<=d;t+=2){var o,u=f[t-1],c=f[t+1],p=(c?c.newPos:0)-t;u&&(f[t-1]=void 0);var h=u&&u.newPos+1<a,v=c&&p>=0&&p<l;if(h||v){if(!h||v&&u.newPos<c.newPos?(o={newPos:(m=c).newPos,components:m.components.slice(0)},r.pushComponent(o.components,void 0,!0)):((o=u).newPos++,r.pushComponent(o.components,!0,void 0)),p=r.extractCommon(o,n,e,t),o.newPos+1>=a&&p+1>=l)return s(i(r,o.components,n,e,r.useLongestToken));f[t]=o}else f[t]=void 0}var m;d++}if(o)!function e(){setTimeout((function(){if(d>u)return o();p()||e()}),0)}();else for(;d<=u;){var h=p();if(h)return h}},pushComponent:function(e,n,t){var i=e[e.length-1];i&&i.added===n&&i.removed===t?e[e.length-1]={count:i.count+1,added:n,removed:t}:e.push({count:1,added:n,removed:t})},extractCommon:function(e,n,t,i){for(var o=n.length,r=t.length,s=e.newPos,a=s-i,l=0;s+1<o&&a+1<r&&this.equals(n[s+1],t[a+1]);)s++,a++,l++;return l&&e.components.push({count:l}),e.newPos=s,a},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],t=0;t<e.length;t++)e[t]&&n.push(e[t]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},4644:function(e,n,t){"use strict";n.__esModule=!0,n.characterDiff=void 0,n.diffChars=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(590))&&i.__esModule?i:{default:i},r=n.characterDiff=new o.default},4444:function(e,n,t){"use strict";n.__esModule=!0,n.cssDiff=void 0,n.diffCss=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(590))&&i.__esModule?i:{default:i},r=n.cssDiff=new o.default;r.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},7253:function(e,n,t){"use strict";n.__esModule=!0,n.jsonDiff=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.diffJson=function(e,n,t){return l.diff(e,n,t)},n.canonicalize=d;var o,r=(o=t(590))&&o.__esModule?o:{default:o},s=t(9957),a=Object.prototype.toString,l=n.jsonDiff=new r.default;function d(e,n,t,o,r){var s,l;for(n=n||[],t=t||[],o&&(e=o(r,e)),s=0;s<n.length;s+=1)if(n[s]===e)return t[s];if("[object Array]"===a.call(e)){for(n.push(e),l=new Array(e.length),t.push(l),s=0;s<e.length;s+=1)l[s]=d(e[s],n,t,o,r);return n.pop(),t.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===(void 0===e?"undefined":i(e))&&null!==e){n.push(e),l={},t.push(l);var u,f=[];for(u in e)e.hasOwnProperty(u)&&f.push(u);for(f.sort(),s=0;s<f.length;s+=1)l[u=f[s]]=d(e[u],n,t,o,u);n.pop(),t.pop()}else l=e;return l}l.useLongestToken=!0,l.tokenize=s.lineDiff.tokenize,l.castInput=function(e){var n=this.options,t=n.undefinedReplacement,i=n.stringifyReplacer,o=void 0===i?function(e,n){return void 0===n?t:n}:i;return"string"==typeof e?e:JSON.stringify(d(e,null,null,o),o," ")},l.equals=function(e,n){return r.default.prototype.equals.call(l,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))}},9957:function(e,n,t){"use strict";n.__esModule=!0,n.lineDiff=void 0,n.diffLines=function(e,n,t){return s.diff(e,n,t)},n.diffTrimmedLines=function(e,n,t){var i=(0,r.generateOptions)(t,{ignoreWhitespace:!0});return s.diff(e,n,i)};var i,o=(i=t(590))&&i.__esModule?i:{default:i},r=t(6476),s=n.lineDiff=new o.default;s.tokenize=function(e){var n=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var i=0;i<t.length;i++){var o=t[i];i%2&&!this.options.newlineIsToken?n[n.length-1]+=o:(this.options.ignoreWhitespace&&(o=o.trim()),n.push(o))}return n}},4494:function(e,n,t){"use strict";n.__esModule=!0,n.sentenceDiff=void 0,n.diffSentences=function(e,n,t){return r.diff(e,n,t)};var i,o=(i=t(590))&&i.__esModule?i:{default:i},r=n.sentenceDiff=new o.default;r.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},1831:function(e,n,t){"use strict";n.__esModule=!0,n.wordDiff=void 0,n.diffWords=function(e,n,t){return t=(0,r.generateOptions)(t,{ignoreWhitespace:!0}),l.diff(e,n,t)},n.diffWordsWithSpace=function(e,n,t){return l.diff(e,n,t)};var i,o=(i=t(590))&&i.__esModule?i:{default:i},r=t(6476),s=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,a=/\S/,l=n.wordDiff=new o.default;l.equals=function(e,n){return this.options.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e===n||this.options.ignoreWhitespace&&!a.test(e)&&!a.test(n)},l.tokenize=function(e){for(var n=e.split(/(\s+|\b)/),t=0;t<n.length-1;t++)!n[t+1]&&n[t+2]&&s.test(n[t])&&s.test(n[t+2])&&(n[t]+=n[t+2],n.splice(t+1,2),t--);return n}},4886:function(e,n,t){"use strict";n.__esModule=!0,n.applyPatch=s,n.applyPatches=function(e,n){"string"==typeof e&&(e=(0,o.parsePatch)(e));var t=0;!function i(){var o=e[t++];if(!o)return n.complete();n.loadFile(o,(function(e,t){if(e)return n.complete(e);var r=s(t,o,n);n.patched(o,r,(function(e){if(e)return n.complete(e);i()}))}))}()};var i,o=t(8513),r=(i=t(7576))&&i.__esModule?i:{default:i};function s(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n&&(n=(0,o.parsePatch)(n)),Array.isArray(n)){if(n.length>1)throw new Error("applyPatch only works with a single input.");n=n[0]}var i,s,a=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],d=n.hunks,u=t.compareLine||function(e,n,t,i){return n===i},f=0,c=t.fuzzFactor||0,p=0,h=0;function v(e,n){for(var t=0;t<e.lines.length;t++){var i=e.lines[t],o=i.length>0?i[0]:" ",r=i.length>0?i.substr(1):i;if(" "===o||"-"===o){if(!u(n+1,a[n],o,r)&&++f>c)return!1;n++}}return!0}for(var m=0;m<d.length;m++){for(var g=d[m],w=a.length-g.oldLines,y=0,_=h+g.oldStart-1,b=(0,r.default)(_,p,w);void 0!==y;y=b())if(v(g,_+y)){g.offset=h+=y;break}if(void 0===y)return!1;p=g.offset+g.oldStart+g.oldLines}for(var L=0,x=0;x<d.length;x++){var S=d[x],k=S.oldStart+S.offset+L-1;L+=S.newLines-S.oldLines,k<0&&(k=0);for(var E=0;E<S.lines.length;E++){var C=S.lines[E],F=C.length>0?C[0]:" ",M=C.length>0?C.substr(1):C,P=S.linedelimiters[E];if(" "===F)k++;else if("-"===F)a.splice(k,1),l.splice(k,1);else if("+"===F)a.splice(k,0,M),l.splice(k,0,P),k++;else if("\\"===F){var A=S.lines[E-1]?S.lines[E-1][0]:null;"+"===A?i=!0:"-"===A&&(s=!0)}}}if(i)for(;!a[a.length-1];)a.pop(),l.pop();else s&&(a.push(""),l.push("\n"));for(var T=0;T<a.length-1;T++)a[T]=a[T]+l[T];return a.join("")}},5312:function(e,n,t){"use strict";n.__esModule=!0,n.structuredPatch=r,n.createTwoFilesPatch=s,n.createPatch=function(e,n,t,i,o,r){return s(e,e,n,t,i,o,r)};var i=t(9957);function o(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function r(e,n,t,r,s,a,l){l||(l={}),void 0===l.context&&(l.context=4);var d=(0,i.diffLines)(t,r,l);function u(e){return e.map((function(e){return" "+e}))}d.push({value:"",lines:[]});for(var f=[],c=0,p=0,h=[],v=1,m=1,g=function(e){var n=d[e],i=n.lines||n.value.replace(/\n$/,"").split("\n");if(n.lines=i,n.added||n.removed){var s;if(!c){var a=d[e-1];c=v,p=m,a&&(h=l.context>0?u(a.lines.slice(-l.context)):[],c-=h.length,p-=h.length)}(s=h).push.apply(s,o(i.map((function(e){return(n.added?"+":"-")+e})))),n.added?m+=i.length:v+=i.length}else{if(c)if(i.length<=2*l.context&&e<d.length-2){var g;(g=h).push.apply(g,o(u(i)))}else{var w,y=Math.min(i.length,l.context);(w=h).push.apply(w,o(u(i.slice(0,y))));var _={oldStart:c,oldLines:v-c+y,newStart:p,newLines:m-p+y,lines:h};if(e>=d.length-2&&i.length<=l.context){var b=/\n$/.test(t),L=/\n$/.test(r);0!==i.length||b?b&&L||h.push("\\ No newline at end of file"):h.splice(_.oldLines,0,"\\ No newline at end of file")}f.push(_),c=0,p=0,h=[]}v+=i.length,m+=i.length}},w=0;w<d.length;w++)g(w);return{oldFileName:e,newFileName:n,oldHeader:s,newHeader:a,hunks:f}}function s(e,n,t,i,o,s,a){var l=r(e,n,t,i,o,s,a),d=[];e===n&&d.push("Index: "+e),d.push("==================================================================="),d.push("--- "+l.oldFileName+(void 0===l.oldHeader?"":"\t"+l.oldHeader)),d.push("+++ "+l.newFileName+(void 0===l.newHeader?"":"\t"+l.newHeader));for(var u=0;u<l.hunks.length;u++){var f=l.hunks[u];d.push("@@ -"+f.oldStart+","+f.oldLines+" +"+f.newStart+","+f.newLines+" @@"),d.push.apply(d,f.lines)}return d.join("\n")+"\n"}},9650:function(e,n,t){"use strict";n.__esModule=!0,n.calcLineCount=a,n.merge=function(e,n,t){e=l(e,t),n=l(n,t);var i={};(e.index||n.index)&&(i.index=e.index||n.index),(e.newFileName||n.newFileName)&&(d(e)?d(n)?(i.oldFileName=u(i,e.oldFileName,n.oldFileName),i.newFileName=u(i,e.newFileName,n.newFileName),i.oldHeader=u(i,e.oldHeader,n.oldHeader),i.newHeader=u(i,e.newHeader,n.newHeader)):(i.oldFileName=e.oldFileName,i.newFileName=e.newFileName,i.oldHeader=e.oldHeader,i.newHeader=e.newHeader):(i.oldFileName=n.oldFileName||e.oldFileName,i.newFileName=n.newFileName||e.newFileName,i.oldHeader=n.oldHeader||e.oldHeader,i.newHeader=n.newHeader||e.newHeader)),i.hunks=[];for(var o=0,r=0,s=0,a=0;o<e.hunks.length||r<n.hunks.length;){var h=e.hunks[o]||{oldStart:1/0},v=n.hunks[r]||{oldStart:1/0};if(f(h,v))i.hunks.push(c(h,s)),o++,a+=h.newLines-h.oldLines;else if(f(v,h))i.hunks.push(c(v,a)),r++,s+=v.newLines-v.oldLines;else{var m={oldStart:Math.min(h.oldStart,v.oldStart),oldLines:0,newStart:Math.min(h.newStart+s,v.oldStart+a),newLines:0,lines:[]};p(m,h.oldStart,h.lines,v.oldStart,v.lines),r++,o++,i.hunks.push(m)}}return i};var i=t(5312),o=t(8513),r=t(8261);function s(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function a(e){var n=L(e.lines),t=n.oldLines,i=n.newLines;void 0!==t?e.oldLines=t:delete e.oldLines,void 0!==i?e.newLines=i:delete e.newLines}function l(e,n){if("string"==typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,o.parsePatch)(e)[0];if(!n)throw new Error("Must provide a base reference or pass in a patch");return(0,i.structuredPatch)(void 0,void 0,n,e)}return e}function d(e){return e.newFileName&&e.newFileName!==e.oldFileName}function u(e,n,t){return n===t?n:(e.conflict=!0,{mine:n,theirs:t})}function f(e,n){return e.oldStart<n.oldStart&&e.oldStart+e.oldLines<n.oldStart}function c(e,n){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+n,newLines:e.newLines,lines:e.lines}}function p(e,n,t,i,o){var r={offset:n,lines:t,index:0},l={offset:i,lines:o,index:0};for(g(e,r,l),g(e,l,r);r.index<r.lines.length&&l.index<l.lines.length;){var d=r.lines[r.index],u=l.lines[l.index];if("-"!==d[0]&&"+"!==d[0]||"-"!==u[0]&&"+"!==u[0])if("+"===d[0]&&" "===u[0]){var f;(f=e.lines).push.apply(f,s(y(r)))}else if("+"===u[0]&&" "===d[0]){var c;(c=e.lines).push.apply(c,s(y(l)))}else"-"===d[0]&&" "===u[0]?v(e,r,l):"-"===u[0]&&" "===d[0]?v(e,l,r,!0):d===u?(e.lines.push(d),r.index++,l.index++):m(e,y(r),y(l));else h(e,r,l)}w(e,r),w(e,l),a(e)}function h(e,n,t){var i=y(n),o=y(t);if(_(i)&&_(o)){var a,l;if((0,r.arrayStartsWith)(i,o)&&b(t,i,i.length-o.length))return void(a=e.lines).push.apply(a,s(i));if((0,r.arrayStartsWith)(o,i)&&b(n,o,o.length-i.length))return void(l=e.lines).push.apply(l,s(o))}else if((0,r.arrayEqual)(i,o)){var d;return void(d=e.lines).push.apply(d,s(i))}m(e,i,o)}function v(e,n,t,i){var o,r=y(n),a=function(e,n){for(var t=[],i=[],o=0,r=!1,s=!1;o<n.length&&e.index<e.lines.length;){var a=e.lines[e.index],l=n[o];if("+"===l[0])break;if(r=r||" "!==a[0],i.push(l),o++,"+"===a[0])for(s=!0;"+"===a[0];)t.push(a),a=e.lines[++e.index];l.substr(1)===a.substr(1)?(t.push(a),e.index++):s=!0}if("+"===(n[o]||"")[0]&&r&&(s=!0),s)return t;for(;o<n.length;)i.push(n[o++]);return{merged:i,changes:t}}(t,r);a.merged?(o=e.lines).push.apply(o,s(a.merged)):m(e,i?a:r,i?r:a)}function m(e,n,t){e.conflict=!0,e.lines.push({conflict:!0,mine:n,theirs:t})}function g(e,n,t){for(;n.offset<t.offset&&n.index<n.lines.length;){var i=n.lines[n.index++];e.lines.push(i),n.offset++}}function w(e,n){for(;n.index<n.lines.length;){var t=n.lines[n.index++];e.lines.push(t)}}function y(e){for(var n=[],t=e.lines[e.index][0];e.index<e.lines.length;){var i=e.lines[e.index];if("-"===t&&"+"===i[0]&&(t="+"),t!==i[0])break;n.push(i),e.index++}return n}function _(e){return e.reduce((function(e,n){return e&&"-"===n[0]}),!0)}function b(e,n,t){for(var i=0;i<t;i++){var o=n[n.length-t+i].substr(1);if(e.lines[e.index+i]!==" "+o)return!1}return e.index+=t,!0}function L(e){var n=0,t=0;return e.forEach((function(e){if("string"!=typeof e){var i=L(e.mine),o=L(e.theirs);void 0!==n&&(i.oldLines===o.oldLines?n+=i.oldLines:n=void 0),void 0!==t&&(i.newLines===o.newLines?t+=i.newLines:t=void 0)}else void 0===t||"+"!==e[0]&&" "!==e[0]||t++,void 0===n||"-"!==e[0]&&" "!==e[0]||n++})),{oldLines:n,newLines:t}}},8513:function(e,n){"use strict";n.__esModule=!0,n.parsePatch=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=[],r=0;function s(){var e={};for(o.push(e);r<t.length;){var i=t[r];if(/^(---|\+\+\+|@@)\s/.test(i))break;var s=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(i);s&&(e.index=s[1]),r++}for(a(e),a(e),e.hunks=[];r<t.length;){var d=t[r];if(/^(Index:|diff|---|\+\+\+)\s/.test(d))break;if(/^@@/.test(d))e.hunks.push(l());else{if(d&&n.strict)throw new Error("Unknown line "+(r+1)+" "+JSON.stringify(d));r++}}}function a(e){var n=/^(---|\+\+\+)\s+(.*)$/.exec(t[r]);if(n){var i="---"===n[1]?"old":"new",o=n[2].split("\t",2),s=o[0].replace(/\\\\/g,"\\");/^".*"$/.test(s)&&(s=s.substr(1,s.length-2)),e[i+"FileName"]=s,e[i+"Header"]=(o[1]||"").trim(),r++}}function l(){for(var e=r,o=t[r++].split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},a=0,l=0;r<t.length&&!(0===t[r].indexOf("--- ")&&r+2<t.length&&0===t[r+1].indexOf("+++ ")&&0===t[r+2].indexOf("@@"));r++){var d=0===t[r].length&&r!==t.length-1?" ":t[r][0];if("+"!==d&&"-"!==d&&" "!==d&&"\\"!==d)break;s.lines.push(t[r]),s.linedelimiters.push(i[r]||"\n"),"+"===d?a++:"-"===d?l++:" "===d&&(a++,l++)}if(a||1!==s.newLines||(s.newLines=0),l||1!==s.oldLines||(s.oldLines=0),n.strict){if(a!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(l!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}for(;r<t.length;)s();return o}},8261:function(e,n){"use strict";function t(e,n){if(n.length>e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}n.__esModule=!0,n.arrayEqual=function(e,n){return e.length===n.length&&t(e,n)},n.arrayStartsWith=t},7576:function(e,n){"use strict";n.__esModule=!0,n.default=function(e,n,t){var i=!0,o=!1,r=!1,s=1;return function a(){if(i&&!r){if(o?s++:i=!1,e+s<=t)return s;r=!0}if(!o)return r||(i=!0),n<=e-s?-s++:(o=!0,a())}}},6476:function(e,n){"use strict";n.__esModule=!0,n.generateOptions=function(e,n){if("function"==typeof e)n.callback=e;else if(e)for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}},2765:function(e,n,t){"use strict";var i=t(7416),o=t(9677),r=t(9153),s=t(822);const a=e=>((0,s.Qi)("data-v-731ccbfd"),e=e(),(0,s.jt)(),e),l={key:0},d={class:"grid mt-2"},u={class:"g-col-12"},f=a((()=>(0,s.Lk)("hr",{class:"mt-4"},null,-1))),c={class:"grid mt-1"},p={class:"g-col-12"},h=a((()=>(0,s.Lk)("hr",{class:"mt-1"},null,-1))),v={class:"grid mt-1"},m={class:"g-col-12"};var g=t(5624),w=t(7488),y=t(4526);const _={class:"form-label"},b=["selected","value"];var L={name:"DiffSelector",components:{},setup(){const e=(0,g.E)();return{editions:(0,s.EW)((()=>e.items)),loadEdition:(0,s.WQ)("loadEdition"),is_selected:function(n){return n==e.meta.selected_edition.id}}}},x=t(1535),S=(0,x.A)(L,[["render",function(e,n,t,i,o,r){return(0,s.uX)(),(0,s.CE)(s.FK,null,[(0,s.Lk)("label",_,(0,y.toDisplayString)(e.$t("Select a date")),1),(0,s.Lk)("select",{onChange:n[0]||(n[0]=e=>i.loadEdition(e.target.value)),class:"custom-select form-select",id:"editionSelector","aria-label":"Order data by this field"},[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(i.editions,((n,t)=>((0,s.uX)(),(0,s.CE)("option",{key:n.id,selected:i.is_selected(n.id),value:n.id},(0,y.toDisplayString)(0==t?e.$t("Most recent"):e.$t(n.created)),9,b)))),128))],32)],64)}]]);const k=e=>((0,s.Qi)("data-v-5b0c5515"),e=e(),(0,s.jt)(),e),E=["innerHTML"],C={class:"mt-2"},F=["innerHTML"],M=k((()=>(0,s.Lk)("span",{class:"ds-diff-removed px-2"},null,-1))),P=k((()=>(0,s.Lk)("span",{class:"ds-diff-added px-2"},null,-1)));var A=t(6270),T={name:"EditionInfo",components:{},setup(){const e=(0,g.E)(),{t:n}=(0,A.s9)({useScope:"global"});return{submitted_date:(0,s.EW)((()=>n("Data submitted on the %date%").replace(/%date%/,e.meta.selected_edition.created))),author:(0,s.EW)((()=>e.meta.selected_edition.author))}}};t(4383);var W=(0,x.A)(T,[["render",function(e,n,t,i,o,r){return(0,s.uX)(),(0,s.CE)(s.FK,null,[(0,s.Lk)("div",{class:"mt-0",innerHTML:i.submitted_date},null,8,E),(0,s.Lk)("div",C,[(0,s.Lk)("span",{class:"author",innerHTML:i.author},null,8,F),(0,s.eW)("  "),M,(0,s.eW)(" "+(0,y.toDisplayString)(e.$t("removed"))+" ",1),P,(0,s.eW)(" "+(0,y.toDisplayString)(e.$t("added")),1)])],64)}],["__scopeId","data-v-5b0c5515"]]);const N={key:0},D=["innerHTML"],H=["innerHTML"],I=t(4644),z=t(1831),O=t(9957),j=t(4494),R=t(4444),$=t(7253),B=t(6),X=t(4886),q=t(8513),K=t(9650),J=t(5312),V=t(9242),G=t(2042);var Q={diffChars:I.diffChars,diffWords:z.diffWords,diffWordsWithSpace:z.diffWordsWithSpace,diffLines:O.diffLines,diffTrimmedLines:O.diffTrimmedLines,diffSentences:j.diffSentences,diffCss:R.diffCss,diffJson:$.diffJson,diffArrays:B.diffArrays,structuredPatch:J.structuredPatch,createTwoFilesPatch:J.createTwoFilesPatch,createPatch:J.createPatch,applyPatch:X.applyPatch,applyPatches:X.applyPatches,parsePatch:q.parsePatch,merge:K.merge,convertChangesToDMP:V.convertChangesToDMP,convertChangesToXML:G.convertChangesToXML,canonicalize:$.canonicalize},U=t(9819),Y={name:"FieldDiff",components:{},props:{field:Object,selected_edition:Object,compared_with:Object},setup(e){const n=(0,g.E)(),{t:t}=(0,A.s9)({useScope:"global"}),i="<span class='%class%'>%word%</span>";function o(t){return e.field.name.endsWith("__html")?t.html:n.getFormattedValue({field_name:e.field.name,field_value:t})}function r(e,n){return i.replace(/%class%/,"added"==n?"ds-diff-added":"ds-diff-removed").replace(/%word%/,e)}return{field_diff:(0,s.EW)((()=>{function t(e){var n="";return e.forEach((e=>{let t=e.added?"ds-diff-added":e.removed?"ds-diff-removed":"",r=i.replace(/%class%/,t).replace(/%word%/,o(e.value));n+=r})),n}let s=function(){let n=e.field;return null===e.selected_edition.data[n.name]?"":(0,U.kf)(n)?String(e.selected_edition.data[n.name]):"string"==typeof e.selected_edition.data[n.name]?e.selected_edition.data[n.name]:""}(),a=function(){let n=e.field;return null===e.compared_with||null===e.compared_with.data[n.name]||void 0===e.compared_with.data[n.name]?"":(0,U.kf)(n)?String(e.compared_with.data[n.name]):"string"==typeof e.compared_with.data[n.name]?e.compared_with.data[n.name]:""}();if(null==e.compared_with)return o(s);if(s==a)return o(s);if((0,U.vn)(e.field.name)){let t=s.split(", "),i=a.split(", "),o=n.getFieldStructure(e.field.name).values;var l=[];return o.forEach((e=>{t.includes(e.value)&&i.includes(e.value)?l.push(e.label):!t.includes(e.value)&&i.includes(e.value)?l.push(r(e.label,"removed")):t.includes(e.value)&&!i.includes(e.value)&&l.push(r(e.label,"added"))})),l.join(" ")}return e.field.name.startsWith("file-")?t(Q.diffSentences(a,s)):t(Q.diffWords(a,s))})),empty_field:"<span class='ds-empty-field'>%empty%</span>".replace(/%empty%/,t("Empty"))}}},Z={name:"AnswerDiff",components:{FieldDiff:(0,x.A)(Y,[["render",function(e,n,t,i,o,r){return(0,s.uX)(),(0,s.CE)(s.FK,null,[(0,s.Lk)("div",{class:"fw-bold mt-3",innerHTML:t.field.label},null,8,D),(0,s.Lk)("div",{innerHTML:i.field_diff?i.field_diff:i.empty_field,class:"mt-1"},null,8,H)],64)}]])},setup(){const e=(0,g.E)();return{field_index:(0,s.EW)((()=>e.field_index)),selected_edition:(0,s.EW)((()=>e.meta.selected_edition)),compared_with:(0,s.EW)((()=>e.meta.compared_with))}}},ee=(0,x.A)(Z,[["render",function(e,n,t,i,o,r){const a=(0,s.g2)("FieldDiff");return(0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(i.field_index,((e,n)=>((0,s.uX)(),(0,s.CE)("div",{key:n},["marked"!=e.name&&"created"!=e.name?((0,s.uX)(),(0,s.CE)("div",N,[(0,s.bF)(a,{field:e,selected_edition:i.selected_edition,compared_with:i.compared_with},null,8,["field","selected_edition","compared_with"])])):(0,s.Q3)("v-if",!0)])))),128)}]]),ne={name:"AnswersDiff",components:{GoToTop:w.A,EditionSelector:S,EditionInfo:W,AnswerDiff:ee},setup(){const e=(0,g.E)();e.ui.display_panel=!1,e.display_items_as="diff";const n=(0,r.useMq)(),t=(0,s.EW)((()=>"xs"==n.current));function i(n){for(var t of e.items)t.id==n&&(e.meta.selected_edition=t);let i=e.items.indexOf(e.meta.selected_edition);i<e.items.length-1?e.meta.compared_with=e.items[i+1]:e.meta.compared_with=null}return(0,s.Gt)("xs_screen",t),(0,s.Gt)("loadEdition",i),(0,s.wB)((()=>e.downloading_items),(()=>{i(e.meta.selected_edition_id)})),{xs_screen:t,is_loading:(0,s.EW)((()=>e.downloading_items))}}};t(1662),t(2100);var te=(0,x.A)(ne,[["render",function(e,n,t,i,o,r){const a=(0,s.g2)("EditionSelector"),g=(0,s.g2)("EditionInfo"),w=(0,s.g2)("AnswerDiff");return i.is_loading?(0,s.Q3)("v-if",!0):((0,s.uX)(),(0,s.CE)("div",l,[(0,s.Lk)("div",d,[(0,s.Lk)("div",u,[(0,s.bF)(a)])]),f,(0,s.Lk)("div",c,[(0,s.Lk)("div",p,[(0,s.bF)(g)])]),h,(0,s.Lk)("div",v,[(0,s.Lk)("div",m,[(0,s.bF)(w)])])]))}],["__scopeId","data-v-731ccbfd"]]);document.querySelectorAll("[vue-component=answers-diff-renderer]").forEach((e=>{(0,i.createApp)(te).use(o.A).use(r.Vue3Mq,{}).mount(e)}))},7659:function(e,n,t){"use strict";t.r(n);var i=t(9248),o=t.n(i),r=t(9089),s=t.n(r)()(o());s.push([e.id,"\n.ds-empty-field {\n font-style: italic;\n}\n",""]),n.default=s},8021:function(e,n,t){"use strict";t.r(n);var i=t(9248),o=t.n(i),r=t(9089),s=t.n(r)()(o());s.push([e.id,"\nhr[data-v-731ccbfd] {\n margin: 0;\n margin-left: -1em;\n margin-right: -1em;\n}\n.ds-loading[data-v-731ccbfd] {\n font-style: italic;\n color: var(--lf-gray-800);\n margin-top: 1.5em;\n}\n.ds-no-data[data-v-731ccbfd] {\n font-style: italic;\n color: var(--lf-gray-600);\n margin-top: 1em;\n font-size: 1.75em;\n}\n",""]),n.default=s},988:function(e,n,t){"use strict";t.r(n);var i=t(9248),o=t.n(i),r=t(9089),s=t.n(r)()(o());s.push([e.id,"\n.ds-goto-top[data-v-0422979d] {\n z-index: 100;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: fixed;\n top:auto;\n bottom:2em;\n right:1.5em;\n left:auto;\n}\n.ds-goto-top > svg[data-v-0422979d] {\n margin-left: 2px;\n margin-top: 0;\n}\n",""]),n.default=s},3074:function(e,n,t){"use strict";t.r(n);var i=t(9248),o=t.n(i),r=t(9089),s=t.n(r)()(o());s.push([e.id,"\n.author[data-v-5b0c5515] .ds-avatar > img {\n height: 22px;\n width: 22px;\n margin-right: 0.25em;\n vertical-align: bottom;\n}\n\n",""]),n.default=s},7488:function(e,n,t){"use strict";t.d(n,{A:function(){return d}});var i=t(822),o=t(4526);const r={ref:"target",id:"go_to_top"};var s=t(4390),a=t(4023),l={name:"GoToTop",components:{ChevronUpIcon:t(4997).Mtm},setup(e){const n=(0,s.KR)(null),t=(0,a.ITo)(n),o=(0,s.KR)(!1);return(0,i.wB)((()=>t.value),(()=>{if(t.value)o.value=!1;else{let e=document.getElementById("go_to_top");e&&e.getBoundingClientRect().top<0&&(o.value=!0)}}),{immediate:!0}),{target:n,showButton:o,goToTop:function(){window.scrollTo(0,0)},themeColors:function(){let e=document.getElementsByClassName("ds-main-navbar")[0],n=window.getComputedStyle(e).getPropertyValue("background-color"),t=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(t).getPropertyValue("color"),"background-color":n}}()}}};t(842);var d=(0,t(1535).A)(l,[["render",function(e,n,t,s,a,l){const d=(0,i.g2)("ChevronUpIcon");return(0,i.uX)(),(0,i.CE)("div",r,[s.showButton?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"ds-goto-top",style:(0,o.normalizeStyle)(s.themeColors),onClick:n[0]||(n[0]=e=>s.goToTop())},[(0,i.bF)(d,{size:"3x"})],4)):(0,i.Q3)("v-if",!0)],512)}],["__scopeId","data-v-0422979d"]])},1662:function(e,n,t){var i=t(7659);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(8449).A)("6c2d73b5",i,!1,{})},2100:function(e,n,t){var i=t(8021);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(8449).A)("631d04ea",i,!1,{})},842:function(e,n,t){var i=t(988);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(8449).A)("7ff4776c",i,!1,{})},4383:function(e,n,t){var i=t(3074);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,t(8449).A)("270ae63b",i,!1,{})},4023:function(e,n,t){"use strict";t.d(n,{Lhy:function(){return m},ITo:function(){return g}});var i=t(4390),o=t(822);function r(e){return!!(0,i.o5)()&&((0,i.jr)(e),!0)}function s(e){return"function"==typeof e?e():(0,i.R1)(e)}const a="undefined"!=typeof window&&"undefined"!=typeof document,l=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),d=(Object.prototype.toString,()=>{});function u(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const f=/\B([A-Z])/g,c=(u((e=>e.replace(f,"-$1").toLowerCase())),/-(\w)/g);function p(e){var n;const t=s(e);return null!=(n=null==t?void 0:t.$el)?n:t}u((e=>e.replace(c,((e,n)=>n?n.toUpperCase():""))));const h=a?window:void 0;function v(e){const n=function(){const e=(0,i.KR)(!1),n=(0,o.nI)();return n&&(0,o.sV)((()=>{e.value=!0}),n),e}();return(0,o.EW)((()=>(n.value,Boolean(e()))))}function m(e,n={width:0,height:0},t={}){const{window:s=h,box:a="content-box"}=t,l=(0,o.EW)((()=>{var n,t;return null==(t=null==(n=p(e))?void 0:n.namespaceURI)?void 0:t.includes("svg")})),d=(0,i.KR)(n.width),u=(0,i.KR)(n.height),{stop:f}=function(e,n,t={}){const{window:i=h,...s}=t;let a;const l=v((()=>i&&"ResizeObserver"in i)),d=()=>{a&&(a.disconnect(),a=void 0)},u=(0,o.EW)((()=>Array.isArray(e)?e.map((e=>p(e))):[p(e)])),f=(0,o.wB)(u,(e=>{if(d(),l.value&&i){a=new ResizeObserver(n);for(const n of e)n&&a.observe(n,s)}}),{immediate:!0,flush:"post"}),c=()=>{d(),f()};return r(c),{isSupported:l,stop:c}}(e,(([n])=>{const t="border-box"===a?n.borderBoxSize:"content-box"===a?n.contentBoxSize:n.devicePixelContentBoxSize;if(s&&l.value){const n=p(e);if(n){const e=s.getComputedStyle(n);d.value=Number.parseFloat(e.width),u.value=Number.parseFloat(e.height)}}else if(t){const e=Array.isArray(t)?t:[t];d.value=e.reduce(((e,{inlineSize:n})=>e+n),0),u.value=e.reduce(((e,{blockSize:n})=>e+n),0)}else d.value=n.contentRect.width,u.value=n.contentRect.height}),t);!function(e,n=!0,t){!function(e){return e||(0,o.nI)()}()?n?e():(0,o.dY)(e):(0,o.sV)(e,t)}((()=>{const t=p(e);t&&(d.value="offsetWidth"in t?t.offsetWidth:n.width,u.value="offsetHeight"in t?t.offsetHeight:n.height)}));const c=(0,o.wB)((()=>p(e)),(e=>{d.value=e?n.width:0,u.value=e?n.height:0}));return{width:d,height:u,stop:function(){f(),c()}}}function g(e,n={}){const{window:t=h,scrollTarget:a,threshold:u=0}=n,f=(0,i.KR)(!1);return function(e,n,t={}){const{root:a,rootMargin:u="0px",threshold:f=.1,window:c=h,immediate:m=!0}=t,g=v((()=>c&&"IntersectionObserver"in c)),w=(0,o.EW)((()=>{const n=s(e);return(Array.isArray(n)?n:[n]).map(p).filter(l)}));let y=d;const _=(0,i.KR)(m),b=g.value?(0,o.wB)((()=>[w.value,p(a),_.value]),(([e,t])=>{if(y(),!_.value)return;if(!e.length)return;const i=new IntersectionObserver(n,{root:p(t),rootMargin:u,threshold:f});e.forEach((e=>e&&i.observe(e))),y=()=>{i.disconnect(),y=d}}),{immediate:m,flush:"post"}):d;r((()=>{y(),b(),_.value=!1}))}(e,(e=>{let n=f.value,t=0;for(const i of e)i.time>=t&&(t=i.time,n=i.isIntersecting);f.value=n}),{root:a,window:t,threshold:u}),f}a&&window.document,a&&window.navigator,a&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY}},function(e){e(e.s=2765)}]); \ No newline at end of file
diff --git a/liberaforms/static/js/data-display/v2/data-display.js b/liberaforms/static/js/data-display/v2/data-display.js
index 97aa136d..92495501 100644
--- a/liberaforms/static/js/data-display/v2/data-display.js
+++ b/liberaforms/static/js/data-display/v2/data-display.js
@@ -1,2 +1,2 @@
/*! For license information please see data-display.js.LICENSE.txt */
-!function(){var e,t,n,r,o,i={9350:function(e,t,n){"use strict";n.r(t),n.d(t,{BASE_TRANSITION:function(){return u},BindingTypes:function(){return Er},CAMELIZE:function(){return R},CAPITALIZE:function(){return P},CREATE_BLOCK:function(){return c},CREATE_COMMENT:function(){return h},CREATE_ELEMENT_BLOCK:function(){return f},CREATE_ELEMENT_VNODE:function(){return p},CREATE_SLOTS:function(){return T},CREATE_STATIC:function(){return g},CREATE_TEXT:function(){return m},CREATE_VNODE:function(){return d},CompilerDeprecationTypes:function(){return Te},ConstantTypes:function(){return X},DOMDirectiveTransforms:function(){return Yr},DOMErrorCodes:function(){return jr},DOMErrorMessages:function(){return Ur},DOMNodeTransforms:function(){return qr},ElementTypes:function(){return Y},ErrorCodes:function(){return Pe},FRAGMENT:function(){return o},GUARD_REACTIVE_PROPS:function(){return A},IS_MEMO_SAME:function(){return z},IS_REF:function(){return B},KEEP_ALIVE:function(){return s},MERGE_PROPS:function(){return O},NORMALIZE_CLASS:function(){return k},NORMALIZE_PROPS:function(){return N},NORMALIZE_STYLE:function(){return C},Namespaces:function(){return $},NodeTypes:function(){return q},OPEN_BLOCK:function(){return l},POP_SCOPE_ID:function(){return F},PUSH_SCOPE_ID:function(){return M},RENDER_LIST:function(){return w},RENDER_SLOT:function(){return S},RESOLVE_COMPONENT:function(){return v},RESOLVE_DIRECTIVE:function(){return y},RESOLVE_DYNAMIC_COMPONENT:function(){return _},RESOLVE_FILTER:function(){return b},SET_BLOCK_TRACKING:function(){return D},SUSPENSE:function(){return a},TELEPORT:function(){return i},TO_DISPLAY_STRING:function(){return x},TO_HANDLERS:function(){return I},TO_HANDLER_KEY:function(){return L},TRANSITION:function(){return Ir},TRANSITION_GROUP:function(){return Rr},TS_NODE_TYPES:function(){return $e},UNREF:function(){return U},V_MODEL_CHECKBOX:function(){return Tr},V_MODEL_DYNAMIC:function(){return kr},V_MODEL_RADIO:function(){return Sr},V_MODEL_SELECT:function(){return Or},V_MODEL_TEXT:function(){return xr},V_ON_WITH_KEYS:function(){return Nr},V_ON_WITH_MODIFIERS:function(){return Cr},V_SHOW:function(){return Ar},WITH_CTX:function(){return j},WITH_DIRECTIVES:function(){return E},WITH_MEMO:function(){return V},advancePositionWithClone:function(){return rt},advancePositionWithMutation:function(){return ot},assert:function(){return it},baseCompile:function(){return br},baseParse:function(){return nn},buildDirectiveArgs:function(){return Qn},buildProps:function(){return Jn},buildSlots:function(){return Wn},checkCompatEnabled:function(){return Ce},compile:function(){return Xr},convertToBlock:function(){return ge},createArrayExpression:function(){return K},createAssignmentExpression:function(){return fe},createBlockStatement:function(){return ue},createCacheExpression:function(){return se},createCallExpression:function(){return oe},createCompilerError:function(){return Re},createCompoundExpression:function(){return re},createConditionalExpression:function(){return ae},createDOMCompilerError:function(){return Fr},createForLoopParams:function(){return jn},createFunctionExpression:function(){return ie},createIfStatement:function(){return ce},createInterpolation:function(){return ne},createObjectExpression:function(){return Q},createObjectProperty:function(){return ee},createReturnStatement:function(){return pe},createRoot:function(){return J},createSequenceExpression:function(){return de},createSimpleExpression:function(){return te},createStructuralDirectiveTransform:function(){return gn},createTemplateLiteral:function(){return le},createTransformContext:function(){return pn},createVNodeCall:function(){return Z},errorMessages:function(){return Le},extractIdentifiers:function(){return Ve},findDir:function(){return at},findProp:function(){return st},forAliasRE:function(){return Et},generate:function(){return yn},generateCodeFrame:function(){return r.generateCodeFrame},getBaseTransformPreset:function(){return yr},getConstantType:function(){return sn},getMemoedVNodeCall:function(){return bt},getVNodeBlockHelper:function(){return me},getVNodeHelper:function(){return he},hasDynamicKeyVBind:function(){return lt},hasScopeRef:function(){return yt},helperNameMap:function(){return W},injectProp:function(){return gt},isCoreComponent:function(){return Xe},isFunctionType:function(){return ze},isInDestructureAssignment:function(){return Fe},isInNewExpression:function(){return je},isMemberExpression:function(){return nt},isMemberExpressionBrowser:function(){return et},isMemberExpressionNode:function(){return tt},isReferencedIdentifier:function(){return Me},isSimpleIdentifier:function(){return Je},isSlotOutlet:function(){return pt},isStaticArgOf:function(){return ut},isStaticExp:function(){return Ye},isStaticProperty:function(){return We},isStaticPropertyKey:function(){return He},isTemplateNode:function(){return dt},isText:function(){return ct},isVSlot:function(){return ft},locStub:function(){return G},noopDirectiveTransform:function(){return wr},parse:function(){return Gr},parserOptions:function(){return Lr},processExpression:function(){return Cn},processFor:function(){return Mn},processIf:function(){return In},processSlotOutlet:function(){return nr},registerRuntimeHelpers:function(){return H},resolveComponentType:function(){return Gn},stringifyExpression:function(){return Nn},toValidAssetId:function(){return _t},trackSlotScopes:function(){return Bn},trackVForSlotScopes:function(){return Vn},transform:function(){return hn},transformBind:function(){return ir},transformElement:function(){return Xn},transformExpression:function(){return kn},transformModel:function(){return cr},transformOn:function(){return or},transformStyle:function(){return Dr},traverseNode:function(){return mn},unwrapTSNode:function(){return qe},walkBlockDeclarations:function(){return Be},walkFunctionParams:function(){return Ue},walkIdentifiers:function(){return De},warnDeprecation:function(){return Ne}}),n(4573);var r=n(2502);const o=Symbol(""),i=Symbol(""),a=Symbol(""),s=Symbol(""),u=Symbol(""),l=Symbol(""),c=Symbol(""),f=Symbol(""),d=Symbol(""),p=Symbol(""),h=Symbol(""),m=Symbol(""),g=Symbol(""),v=Symbol(""),_=Symbol(""),y=Symbol(""),b=Symbol(""),E=Symbol(""),w=Symbol(""),S=Symbol(""),T=Symbol(""),x=Symbol(""),O=Symbol(""),k=Symbol(""),C=Symbol(""),N=Symbol(""),A=Symbol(""),I=Symbol(""),R=Symbol(""),P=Symbol(""),L=Symbol(""),D=Symbol(""),M=Symbol(""),F=Symbol(""),j=Symbol(""),U=Symbol(""),B=Symbol(""),V=Symbol(""),z=Symbol(""),W={[o]:"Fragment",[i]:"Teleport",[a]:"Suspense",[s]:"KeepAlive",[u]:"BaseTransition",[l]:"openBlock",[c]:"createBlock",[f]:"createElementBlock",[d]:"createVNode",[p]:"createElementVNode",[h]:"createCommentVNode",[m]:"createTextVNode",[g]:"createStaticVNode",[v]:"resolveComponent",[_]:"resolveDynamicComponent",[y]:"resolveDirective",[b]:"resolveFilter",[E]:"withDirectives",[w]:"renderList",[S]:"renderSlot",[T]:"createSlots",[x]:"toDisplayString",[O]:"mergeProps",[k]:"normalizeClass",[C]:"normalizeStyle",[N]:"normalizeProps",[A]:"guardReactiveProps",[I]:"toHandlers",[R]:"camelize",[P]:"capitalize",[L]:"toHandlerKey",[D]:"setBlockTracking",[M]:"pushScopeId",[F]:"popScopeId",[j]:"withCtx",[U]:"unref",[B]:"isRef",[V]:"withMemo",[z]:"isMemoSame"};function H(e){Object.getOwnPropertySymbols(e).forEach((t=>{W[t]=e[t]}))}const $={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},q={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},Y={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},X={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_HOIST:2,2:"CAN_HOIST",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},G={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function J(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:G}}function Z(e,t,n,r,o,i,a,s=!1,u=!1,c=!1,f=G){return e&&(s?(e.helper(l),e.helper(me(e.inSSR,c))):e.helper(he(e.inSSR,c)),a&&e.helper(E)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:a,isBlock:s,disableTracking:u,isComponent:c,loc:f}}function K(e,t=G){return{type:17,loc:t,elements:e}}function Q(e,t=G){return{type:15,loc:t,properties:e}}function ee(e,t){return{type:16,loc:G,key:(0,r.isString)(e)?te(e,!0):e,value:t}}function te(e,t=!1,n=G,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ne(e,t){return{type:5,loc:t,content:(0,r.isString)(e)?te(e,!1,t):e}}function re(e,t=G){return{type:8,loc:t,children:e}}function oe(e,t=[],n=G){return{type:14,loc:n,callee:e,arguments:t}}function ie(e,t,n=!1,r=!1,o=G){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function ae(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:G}}function se(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:G}}function ue(e){return{type:21,body:e,loc:G}}function le(e){return{type:22,elements:e,loc:G}}function ce(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:G}}function fe(e,t){return{type:24,left:e,right:t,loc:G}}function de(e){return{type:25,expressions:e,loc:G}}function pe(e){return{type:26,returns:e,loc:G}}function he(e,t){return e||t?d:p}function me(e,t){return e||t?c:f}function ge(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(he(r,e.isComponent)),t(l),t(me(r,e.isComponent)))}const ve=new Uint8Array([123,123]),_e=new Uint8Array([125,125]);function ye(e){return e>=97&&e<=122||e>=65&&e<=90}function be(e){return 32===e||10===e||9===e||12===e||13===e}function Ee(e){return 47===e||62===e||be(e)}function we(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Se={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},Te={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},xe={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function Oe(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function ke(e,t){const n=Oe("MODE",t),r=Oe(e,t);return 3===n?!0===r:!1!==r}function Ce(e,t,n,...r){return ke(e,t)}function Ne(e,t,n,...r){if("suppress-warning"===Oe(e,t))return;const{message:o,link:i}=xe[e],a=`(deprecation ${e}) ${"function"==typeof o?o(...r):o}${i?`\n Details: ${i}`:""}`,s=new SyntaxError(a);s.code=e,n&&(s.loc=n),t.onWarn(s)}function Ae(e){throw e}function Ie(e){}function Re(e,t,n,r){const o=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return o.code=e,o.loc=t,o}const Pe={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",__EXTEND_POINT__:52,52:"__EXTEND_POINT__"},Le={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:"v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.",45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',52:""};function De(e,t,n=!1,r=[],o=Object.create(null)){}function Me(e,t,n){return!1}function Fe(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1}function je(e){let t=e.length;for(;t--;){const n=e[t];if("NewExpression"===n.type)return!0;if("MemberExpression"!==n.type)break}return!1}function Ue(e,t){for(const n of e.params)for(const e of Ve(n))t(e)}function Be(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(n.declare)continue;for(const e of n.declarations)for(const n of Ve(e.id))t(n)}else if("FunctionDeclaration"===n.type||"ClassDeclaration"===n.type){if(n.declare||!n.id)continue;t(n.id)}else if("ForOfStatement"===n.type||"ForInStatement"===n.type||"ForStatement"===n.type){const e="ForStatement"===n.type?n.init:n.left;if(e&&"VariableDeclaration"===e.type)for(const n of e.declarations)for(const e of Ve(n.id))t(e)}}function Ve(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?Ve(n.argument,t):Ve(n.value,t);break;case"ArrayPattern":e.elements.forEach((e=>{e&&Ve(e,t)}));break;case"RestElement":Ve(e.argument,t);break;case"AssignmentPattern":Ve(e.left,t)}return t}const ze=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),We=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,He=(e,t)=>We(t)&&t.key===e,$e=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function qe(e){return $e.includes(e.type)?qe(e.expression):e}const Ye=e=>4===e.type&&e.isStatic;function Xe(e){switch(e){case"Teleport":case"teleport":return i;case"Suspense":case"suspense":return a;case"KeepAlive":case"keep-alive":return s;case"BaseTransition":case"base-transition":return u}}const Ge=/^\d|[^\$\w]/,Je=e=>!Ge.test(e),Ze=/[A-Za-z_$\xA0-\uFFFF]/,Ke=/[\.\?\w$\xA0-\uFFFF]/,Qe=/\s+[.[]\s*|\s*[.[]\s+/g,et=e=>{e=e.trim().replace(Qe,(e=>e.trim()));let t=0,n=[],r=0,o=0,i=null;for(let a=0;a<e.length;a++){const s=e.charAt(a);switch(t){case 0:if("["===s)n.push(t),t=1,r++;else if("("===s)n.push(t),t=2,o++;else if(!(0===a?Ze:Ke).test(s))return!1;break;case 1:"'"===s||'"'===s||"`"===s?(n.push(t),t=3,i=s):"["===s?r++:"]"===s&&(--r||(t=n.pop()));break;case 2:if("'"===s||'"'===s||"`"===s)n.push(t),t=3,i=s;else if("("===s)o++;else if(")"===s){if(a===e.length-1)return!1;--o||(t=n.pop())}break;case 3:s===i&&(t=n.pop(),i=null)}}return!r&&!o},tt=r.NOOP,nt=et;function rt(e,t,n=t.length){return ot({offset:e.offset,line:e.line,column:e.column},t,n)}function ot(e,t,n=t.length){let r=0,o=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,o=e);return e.offset+=n,e.line+=r,e.column=-1===o?e.column+n:n-o,e}function it(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function at(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&(n||i.exp)&&((0,r.isString)(t)?i.name===t:t.test(i.name)))return i}}function st(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(6===i.type){if(n)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&ut(i.arg,t))return i}}function ut(e,t){return!(!e||!Ye(e)||e.content!==t)}function lt(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function ct(e){return 5===e.type||2===e.type}function ft(e){return 7===e.type&&"slot"===e.name}function dt(e){return 1===e.type&&3===e.tagType}function pt(e){return 1===e.type&&2===e.tagType}const ht=new Set([N,A]);function mt(e,t=[]){if(e&&!(0,r.isString)(e)&&14===e.type){const n=e.callee;if(!(0,r.isString)(n)&&ht.has(n))return mt(e.arguments[0],t.concat(e))}return[e,t]}function gt(e,t,n){let o,i,a=13===e.type?e.props:e.arguments[2],s=[];if(a&&!(0,r.isString)(a)&&14===a.type){const e=mt(a);a=e[0],s=e[1],i=s[s.length-1]}if(null==a||(0,r.isString)(a))o=Q([t]);else if(14===a.type){const e=a.arguments[0];(0,r.isString)(e)||15!==e.type?a.callee===I?o=oe(n.helper(O),[Q([t]),a]):a.arguments.unshift(Q([t])):vt(t,e)||e.properties.unshift(t),!o&&(o=a)}else 15===a.type?(vt(t,a)||a.properties.unshift(t),o=a):(o=oe(n.helper(O),[Q([t]),a]),i&&i.callee===A&&(i=s[s.length-2]));13===e.type?i?i.arguments[0]=o:e.props=o:i?i.arguments[0]=o:e.arguments[2]=o}function vt(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===r))}return n}function _t(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function yt(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&(yt(r.arg,t)||yt(r.exp,t)))return!0}return e.children.some((e=>yt(e,t)));case 11:return!!yt(e.source,t)||e.children.some((e=>yt(e,t)));case 9:return e.branches.some((e=>yt(e,t)));case 10:return!!yt(e.condition,t)||e.children.some((e=>yt(e,t)));case 4:return!e.isStatic&&Je(e.content)&&!!t[e.content];case 8:return e.children.some((e=>(0,r.isObject)(e)&&yt(e,t)));case 5:case 12:return yt(e.content,t);default:return!1}}function bt(e){return 14===e.type&&e.callee===V?e.arguments[1].returns:e}const Et=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,wt={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:r.NO,isPreTag:r.NO,isCustomElement:r.NO,onError:Ae,onWarn:Ie,comments:!1,prefixIdentifiers:!1};let St=wt,Tt=null,xt="",Ot=null,kt=null,Ct="",Nt=-1,At=-1,It=0,Rt=!1,Pt=null;const Lt=[],Dt=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=ve,this.delimiterClose=_e,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=ve,this.delimiterClose=_e}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Ee(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||be(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Se.TitleEnd||this.currentSequence===Se.TextareaEnd&&!this.inSFCRoot?e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Se.Cdata[this.sequenceIndex]?++this.sequenceIndex===Se.Cdata.length&&(this.state=28,this.currentSequence=Se.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Se.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){if(33===e)this.state=22,this.sectionStart=this.index+1;else if(63===e)this.state=24,this.sectionStart=this.index+1;else if(ye(e))if(this.sectionStart=this.index,0===this.mode)this.state=6;else if(this.inSFCRoot)this.state=34;else if(this.inXML)this.state=6;else{const t=32|e;this.state=116===t?30:115===t?29:6}else 47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Ee(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Ee(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(we("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){be(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=ye(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||be(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):be(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):be(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Ee(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Ee(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Ee(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Ee(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Ee(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):be(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):be(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){be(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Se.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===Se.ScriptEnd[3]?this.startSpecial(Se.ScriptEnd,4):t===Se.StyleEnd[3]?this.startSpecial(Se.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){const t=32|e;t===Se.TitleEnd[3]?this.startSpecial(Se.TitleEnd,4):t===Se.TextareaEnd[3]?this.startSpecial(Se.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Se.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Lt,{onerr:tn,ontext(e,t){Bt(jt(e,t),e,t)},ontextentity(e,t,n){Bt(e,t,n)},oninterpolation(e,t){if(Rt)return Bt(jt(e,t),e,t);let n=e+Dt.delimiterOpen.length,r=t-Dt.delimiterClose.length;for(;be(xt.charCodeAt(n));)n++;for(;be(xt.charCodeAt(r-1));)r--;let o=jt(n,r);o.includes("&")&&(o=St.decodeEntities(o,!1)),Jt({type:5,content:en(o,!1,Zt(n,r)),loc:Zt(e,t)})},onopentagname(e,t){const n=jt(e,t);Ot={type:1,tag:n,ns:St.getNamespace(n,Lt[0],St.ns),tagType:0,props:[],children:[],loc:Zt(e-1,t),codegenNode:void 0}},onopentagend(e){Ut(e)},onclosetag(e,t){const n=jt(e,t);if(!St.isVoidTag(n)){let r=!1;for(let e=0;e<Lt.length;e++)if(Lt[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&tn(24,Lt[0].loc.start.offset);for(let n=0;n<=e;n++)Vt(Lt.shift(),t,n<e);break}r||tn(23,zt(e,60))}},onselfclosingtag(e){var t;const n=Ot.tag;Ot.isSelfClosing=!0,Ut(e),(null==(t=Lt[0])?void 0:t.tag)===n&&Vt(Lt.shift(),e)},onattribname(e,t){kt={type:6,name:jt(e,t),nameLoc:Zt(e,t),value:void 0,loc:Zt(e)}},ondirname(e,t){const n=jt(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Rt||""!==r||tn(26,e),Rt||""===r)kt={type:6,name:n,nameLoc:Zt(e,t),value:void 0,loc:Zt(e)};else if(kt={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?["prop"]:[],loc:Zt(e)},"pre"===r){Rt=Dt.inVPre=!0,Pt=Ot;const e=Ot.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=Qt(e[t]))}},ondirarg(e,t){if(e===t)return;const n=jt(e,t);if(Rt)kt.name+=n,Kt(kt.nameLoc,t);else{const r="["!==n[0];kt.arg=en(r?n:n.slice(1,-1),r,Zt(e,t),r?3:0)}},ondirmodifier(e,t){const n=jt(e,t);if(Rt)kt.name+="."+n,Kt(kt.nameLoc,t);else if("slot"===kt.name){const e=kt.arg;e&&(e.content+="."+n,Kt(e.loc,t))}else kt.modifiers.push(n)},onattribdata(e,t){Ct+=jt(e,t),Nt<0&&(Nt=e),At=t},onattribentity(e,t,n){Ct+=e,Nt<0&&(Nt=t),At=n},onattribnameend(e){const t=kt.loc.start.offset,n=jt(t,e);7===kt.type&&(kt.rawName=n),Ot.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&tn(2,t)},onattribend(e,t){if(Ot&&kt){if(Kt(kt.loc,t),0!==e)if(Ct.includes("&")&&(Ct=St.decodeEntities(Ct,!0)),6===kt.type)"class"===kt.name&&(Ct=Gt(Ct).trim()),1!==e||Ct||tn(13,t),kt.value={type:2,content:Ct,loc:1===e?Zt(Nt,At):Zt(Nt-1,At+1)},Dt.inSFCRoot&&"template"===Ot.tag&&"lang"===kt.name&&Ct&&"html"!==Ct&&Dt.enterRCDATA(we("</template"),0);else{let e=0;kt.exp=en(Ct,!1,Zt(Nt,At),0,e),"for"===kt.name&&(kt.forParseResult=function(e){const t=e.loc,n=e.content,r=n.match(Et);if(!r)return;const[,o,i]=r,a=(e,n,r=!1)=>{const o=t.start.offset+n;return en(e,!1,Zt(o,o+e.length),0,r?1:0)},s={source:a(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let u=o.trim().replace(Ft,"").trim();const l=o.indexOf(u),c=u.match(Mt);if(c){u=u.replace(Mt,"").trim();const e=c[1].trim();let t;if(e&&(t=n.indexOf(e,l+u.length),s.key=a(e,t,!0)),c[2]){const r=c[2].trim();r&&(s.index=a(r,n.indexOf(r,s.key?t+e.length:l+u.length),!0))}}return u&&(s.value=a(u,l,!0)),s}(kt.exp));let t=-1;"bind"===kt.name&&(t=kt.modifiers.indexOf("sync"))>-1&&Ce("COMPILER_V_BIND_SYNC",St,kt.loc,kt.rawName)&&(kt.name="model",kt.modifiers.splice(t,1))}7===kt.type&&"pre"===kt.name||Ot.props.push(kt)}Ct="",Nt=At=-1},oncomment(e,t){St.comments&&Jt({type:3,content:jt(e,t),loc:Zt(e-4,t+3)})},onend(){const e=xt.length;for(let t=0;t<Lt.length;t++)Vt(Lt[t],e-1),tn(24,Lt[t].loc.start.offset)},oncdata(e,t){0!==Lt[0].ns?Bt(jt(e,t),e,t):tn(1,e-9)},onprocessinginstruction(e){0===(Lt[0]?Lt[0].ns:St.ns)&&tn(21,e-1)}}),Mt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ft=/^\(|\)$/g;function jt(e,t){return xt.slice(e,t)}function Ut(e){Dt.inSFCRoot&&(Ot.innerLoc=Zt(e+1,e+1)),Jt(Ot);const{tag:t,ns:n}=Ot;0===n&&St.isPreTag(t)&&It++,St.isVoidTag(t)?Vt(Ot,e):(Lt.unshift(Ot),1!==n&&2!==n||(Dt.inXML=!0)),Ot=null}function Bt(e,t,n){var r;{const t=null==(r=Lt[0])?void 0:r.tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=St.decodeEntities(e,!1))}const o=Lt[0]||Tt,i=o.children[o.children.length-1];2===(null==i?void 0:i.type)?(i.content+=e,Kt(i.loc,n)):o.children.push({type:2,content:e,loc:Zt(t,n)})}function Vt(e,t,n=!1){Kt(e.loc,n?zt(t,60):t+1),Dt.inSFCRoot&&(e.children.length?e.innerLoc.end=(0,r.extend)({},e.children[e.children.length-1].loc.end):e.innerLoc.end=(0,r.extend)({},e.innerLoc.start),e.innerLoc.source=jt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i}=e;Rt||("slot"===o?e.tagType=2:Ht(e)?e.tagType=3:function({tag:e,props:t}){var n,r;if(St.isCustomElement(e))return!1;if("component"===e||(r=e.charCodeAt(0))>64&&r<91||Xe(e)||(null==(n=St.isBuiltInComponent)?void 0:n.call(St,e))||St.isNativeTag&&!St.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Ce("COMPILER_IS_ON_ELEMENT",St,n.loc))return!0}}else if("bind"===n.name&&ut(n.arg,"is")&&Ce("COMPILER_IS_ON_ELEMENT",St,n.loc))return!0}return!1}(e)&&(e.tagType=1)),Dt.inRCDATA||(e.children=qt(e.children,e.tag)),0===i&&St.isPreTag(o)&&It--,Pt===e&&(Rt=Dt.inVPre=!1,Pt=null),Dt.inXML&&0===(Lt[0]?Lt[0].ns:St.ns)&&(Dt.inXML=!1);{const t=e.props;if(!Dt.inSFCRoot&&ke("COMPILER_NATIVE_TEMPLATE",St)&&"template"===e.tag&&!Ht(e)){const t=Lt[0]||Tt,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&Ce("COMPILER_INLINE_TEMPLATE",St,n.loc)&&e.children.length&&(n.value={type:2,content:jt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function zt(e,t){let n=e;for(;xt.charCodeAt(n)!==t&&n>=0;)n--;return n}const Wt=new Set(["if","else","else-if","for","slot"]);function Ht({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&Wt.has(t[e].name))return!0;return!1}const $t=/\r\n/g;function qt(e,t){var n,r;const o="preserve"!==St.whitespace;let i=!1;for(let t=0;t<e.length;t++){const a=e[t];if(2===a.type)if(It)a.content=a.content.replace($t,"\n");else if(Yt(a.content)){const s=null==(n=e[t-1])?void 0:n.type,u=null==(r=e[t+1])?void 0:r.type;!s||!u||o&&(3===s&&(3===u||1===u)||1===s&&(3===u||1===u&&Xt(a.content)))?(i=!0,e[t]=null):a.content=" "}else o&&(a.content=Gt(a.content))}if(It&&t&&St.isPreTag(t)){const t=e[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}return i?e.filter(Boolean):e}function Yt(e){for(let t=0;t<e.length;t++)if(!be(e.charCodeAt(t)))return!1;return!0}function Xt(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function Gt(e){let t="",n=!1;for(let r=0;r<e.length;r++)be(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function Jt(e){(Lt[0]||Tt).children.push(e)}function Zt(e,t){return{start:Dt.getPos(e),end:null==t?t:Dt.getPos(t),source:null==t?t:jt(e,t)}}function Kt(e,t){e.end=Dt.getPos(t),e.source=jt(e.start.offset,t)}function Qt(e){const t={type:6,name:e.rawName,nameLoc:Zt(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function en(e,t=!1,n,r=0,o=0){return te(e,t,n,r)}function tn(e,t,n){St.onError(Re(e,Zt(t,t)))}function nn(e,t){if(Dt.reset(),Ot=null,kt=null,Ct="",Nt=-1,At=-1,Lt.length=0,xt=e,St=(0,r.extend)({},wt),t){let e;for(e in t)null!=t[e]&&(St[e]=t[e])}Dt.mode="html"===St.parseMode?1:"sfc"===St.parseMode?2:0,Dt.inXML=1===St.ns||2===St.ns;const n=null==t?void 0:t.delimiters;n&&(Dt.delimiterOpen=we(n[0]),Dt.delimiterClose=we(n[1]));const o=Tt=J([],e);return Dt.parse(xt),o.loc=Zt(0,e.length),o.children=qt(o.children),Tt=null,o}function rn(e,t){an(e,t,on(e,e.children[0]))}function on(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!pt(t)}function an(e,t,n=!1){const{children:o}=e,i=o.length;let a=0;for(let e=0;e<o.length;e++){const r=o[e];if(1===r.type&&0===r.tagType){const e=n?0:sn(r,t);if(e>0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),a++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=dn(e);if((!n||512===n||1===n)&&cn(r,t)>=2){const n=fn(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,an(r,t),e&&t.scopes.vSlot--}else if(11===r.type)an(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e<r.branches.length;e++)an(r.branches[e],t,1===r.branches[e].children.length)}if(a&&t.transformHoist&&t.transformHoist(o,t,e),a&&a===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,r.isArray)(e.codegenNode.children)){const n=t.hoist(K(e.codegenNode.children));t.hmr&&(n.content=`[...${n.content}]`),e.codegenNode.children=n}}function sn(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(dn(i))return n.set(e,0),0;{let r=3;const o=cn(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let o=0;o<e.children.length;o++){const i=sn(e.children[o],t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}if(r>1)for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&"bind"===i.name&&i.exp){const o=sn(i.exp,t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(7===e.props[t].type)return n.set(e,0),0;t.removeHelper(l),t.removeHelper(me(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(he(t.inSSR,i.isComponent))}return n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return sn(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if((0,r.isString)(o)||(0,r.isSymbol)(o))continue;const i=sn(o,t);if(0===i)return 0;i<a&&(a=i)}return a}}const un=new Set([k,C,N,A]);function ln(e,t){if(14===e.type&&!(0,r.isString)(e.callee)&&un.has(e.callee)){const n=e.arguments[0];if(4===n.type)return sn(n,t);if(14===n.type)return ln(n,t)}return 0}function cn(e,t){let n=3;const r=fn(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:i}=e[r],a=sn(o,t);if(0===a)return a;let s;if(a<n&&(n=a),s=4===i.type?sn(i,t):14===i.type?ln(i,t):0,0===s)return s;s<n&&(n=s)}}return n}function fn(e){const t=e.codegenNode;if(13===t.type)return t.props}function dn(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function pn(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:s=[],directiveTransforms:u={},transformHoist:l=null,isBuiltInComponent:c=r.NOOP,isCustomElement:f=r.NOOP,expressionPlugins:d=[],scopeId:p=null,slotted:h=!0,ssr:m=!1,inSSR:g=!1,ssrCssVars:v="",bindingMetadata:_=r.EMPTY_OBJ,inline:y=!1,isTS:b=!1,onError:E=Ae,onWarn:w=Ie,compatConfig:S}){const T=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),x={filename:t,selfName:T&&(0,r.capitalize)((0,r.camelize)(T[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:a,nodeTransforms:s,directiveTransforms:u,transformHoist:l,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:d,scopeId:p,slotted:h,ssr:m,inSSR:g,ssrCssVars:v,bindingMetadata:_,inline:y,isTS:b,onError:E,onWarn:w,compatConfig:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=x.helpers.get(e)||0;return x.helpers.set(e,t+1),e},removeHelper(e){const t=x.helpers.get(e);if(t){const n=t-1;n?x.helpers.set(e,n):x.helpers.delete(e)}},helperString(e){return`_${W[x.helper(e)]}`},replaceNode(e){x.parent.children[x.childIndex]=x.currentNode=e},removeNode(e){const t=x.parent.children,n=e?t.indexOf(e):x.currentNode?x.childIndex:-1;e&&e!==x.currentNode?x.childIndex>n&&(x.childIndex--,x.onNodeRemoved()):(x.currentNode=null,x.onNodeRemoved()),x.parent.children.splice(n,1)},onNodeRemoved:r.NOOP,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,r.isString)(e)&&(e=te(e)),x.hoists.push(e);const t=te(`_hoisted_${x.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return se(x.cached++,e,t)}};return x.filters=new Set,x}function hn(e,t){const n=pn(e,t);mn(e,n),t.hoistStatic&&rn(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:i}=e;if(1===i.length){const n=i[0];if(on(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&ge(r,t),e.codegenNode=r}else e.codegenNode=n}else if(i.length>1){let i=64;r.PatchFlagNames[64],e.codegenNode=Z(t,n(o),void 0,e.children,i+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function mn(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let i=0;i<n.length;i++){const a=n[i](e,t);if(a&&((0,r.isArray)(a)?o.push(...a):o.push(a)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(h);break;case 5:t.ssr||t.helper(x);break;case 9:for(let n=0;n<e.branches.length;n++)mn(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];(0,r.isString)(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,mn(i,t))}}(e,t)}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function gn(e,t){const n=(0,r.isString)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(ft))return;const i=[];for(let a=0;a<o.length;a++){const s=o[a];if(7===s.type&&n(s.name)){o.splice(a,1),a--;const n=t(e,s,r);n&&i.push(n)}}return i}}}const vn="/*#__PURE__*/",_n=e=>`${W[e]}: _${W[e]}`;function yn(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:u="vue",ssrRuntimeModuleName:l="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:u,ssrRuntimeModuleName:l,ssr:c,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${W[e]}`},push(e,t=-2,n){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:a,deindent:s,newline:u,scopeId:l,ssr:c}=n,f=Array.from(e.helpers),v=f.length>0,_=!i&&"module"!==r;if(function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:u}=t,l=s,c=Array.from(e.helpers);c.length>0&&(o(`const _Vue = ${l}\n`,-1),e.hoists.length)&&o(`const { ${[d,p,h,m,g].filter((e=>c.includes(e))).map(_n).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:a}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),Sn(i,t),r())}t.pure=!1}(e.hoists,t),i(),o("return ")}(e,n),o(`function ${c?"ssrRender":"render"}(${(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),_&&(o("with (_ctx) {"),a(),v&&(o(`const { ${f.map(_n).join(", ")} } = _Vue\n`,-1),u())),e.components.length&&(bn(e.components,"component",n),(e.directives.length||e.temps>0)&&u()),e.directives.length&&(bn(e.directives,"directive",n),e.temps>0&&u()),e.filters&&e.filters.length&&(u(),bn(e.filters,"filter",n),u()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),u()),c||o("return "),e.codegenNode?Sn(e.codegenNode,n):o("null"),_&&(s(),o("}")),s(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function bn(e,t,{helper:n,push:r,newline:o,isTS:i}){const a=n("filter"===t?b:"component"===t?v:y);for(let n=0;n<e.length;n++){let s=e[n];const u=s.endsWith("__self");u&&(s=s.slice(0,-6)),r(`const ${_t(s,t)} = ${a}(${JSON.stringify(s)}${u?", true":""})${i?"!":""}`),n<e.length-1&&o()}}function En(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),wn(e,t,n),n&&t.deindent(),t.push("]")}function wn(e,t,n=!1,o=!0){const{push:i,newline:a}=t;for(let s=0;s<e.length;s++){const u=e[s];(0,r.isString)(u)?i(u,-3):(0,r.isArray)(u)?En(u,t):Sn(u,t),s<e.length-1&&(n?(o&&i(","),a()):o&&i(", "))}}function Sn(e,t){if((0,r.isString)(e))t.push(e,-3);else if((0,r.isSymbol)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Sn(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:Tn(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(vn),n(`${r(x)}(`),Sn(e.content,t),n(")")}(e,t);break;case 8:xn(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(vn),n(`${r(h)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:a,children:s,patchFlag:u,dynamicProps:c,directives:f,isBlock:d,disableTracking:p,isComponent:h}=e;f&&n(r(E)+"("),d&&n(`(${r(l)}(${p?"true":""}), `),o&&n(vn);n(r(d?me(t.inSSR,h):he(t.inSSR,h))+"(",-2,e),wn(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([i,a,s,u,c]),t),n(")"),d&&n(")"),f&&(n(", "),Sn(f,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:i}=t,a=(0,r.isString)(e.callee)?e.callee:o(e.callee);i&&n(vn),n(a+"(",-2,e),wn(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let e=0;e<a.length;e++){const{key:r,value:o}=a[e];On(r,t),n(": "),Sn(o,t),e<a.length-1&&(n(","),i())}s&&o(),n(s?"}":" }")}(e,t);break;case 17:!function(e,t){En(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:i}=t,{params:a,returns:s,body:u,newline:l,isSlot:c}=e;c&&n(`_${W[j]}(`),n("(",-2,e),(0,r.isArray)(a)?wn(a,t):a&&Sn(a,t),n(") => "),(l||u)&&(n("{"),o()),s?(l&&n("return "),(0,r.isArray)(s)?En(s,t):Sn(s,t)):u&&Sn(u,t),(l||u)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:a,indent:s,deindent:u,newline:l}=t;if(4===n.type){const e=!Je(n.content);e&&a("("),Tn(n,t),e&&a(")")}else a("("),Sn(n,t),a(")");i&&s(),t.indentLevel++,i||a(" "),a("? "),Sn(r,t),t.indentLevel--,i&&l(),i||a(" "),a(": ");const c=19===o.type;c||t.indentLevel++,Sn(o,t),c||t.indentLevel--,i&&u(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:a}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(D)}(-1),`),a()),n(`_cache[${e.index}] = `),Sn(e.value,t),e.isVNode&&(n(","),a(),n(`${r(D)}(1),`),a(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:wn(e.body,t,!0,!1)}}function Tn(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function xn(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];(0,r.isString)(o)?t.push(o,-3):Sn(o,t)}}function On(e,t){const{push:n}=t;8===e.type?(n("["),xn(e,t),n("]")):e.isStatic?n(Je(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const kn=(e,t)=>{if(5===e.type)e.content=Cn(e.content,t);else if(1===e.type)for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&"for"!==r.name){const e=r.exp,n=r.arg;!e||4!==e.type||"on"===r.name&&n||(r.exp=Cn(e,t,"slot"===r.name)),n&&4===n.type&&!n.isStatic&&(r.arg=Cn(n,t))}}};function Cn(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return e}function Nn(e){return(0,r.isString)(e)?e:4===e.type?e.content:e.children.map(Nn).join("")}const An=gn(/^(if|else|else-if)$/,((e,t,n)=>In(e,t,n,((e,t,r)=>{const o=n.parent.children;let i=o.indexOf(e),a=0;for(;i-- >=0;){const e=o[i];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(r)e.codegenNode=Pn(t,a,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=Pn(t,a+e.branches.length-1,n)}}}))));function In(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Re(28,t.loc)),t.exp=te("true",!1,r)}if("if"===t.name){const o=Rn(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-- >=-1;){const a=o[i];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(Re(30,e.loc)),n.removeNode();const o=Rn(e,t);a.branches.push(o);const i=r&&r(a,o,!1);mn(o,n),i&&i(),n.currentNode=null}else n.onError(Re(30,e.loc));break}n.removeNode(a)}}}}function Rn(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!at(e,"for")?e.children:[e],userKey:st(e,"key"),isTemplateIf:n}}function Pn(e,t,n){return e.condition?ae(e.condition,Ln(e,t,n),oe(n.helper(h),['""',"true"])):Ln(e,t,n)}function Ln(e,t,n){const{helper:i}=n,a=ee("key",te(`${t}`,!1,G,2)),{children:s}=e,u=s[0];if(1!==s.length||1!==u.type){if(1===s.length&&11===u.type){const e=u.codegenNode;return gt(e,a,n),e}{let t=64;return r.PatchFlagNames[64],Z(n,i(o),Q([a]),s,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=u.codegenNode,t=bt(e);return 13===t.type&&ge(t,n),gt(t,a,n),e}}const Dn=gn("for",((e,t,n)=>{const{helper:r,removeHelper:i}=n;return Mn(e,t,n,(t=>{const a=oe(r(w),[t.source]),s=dt(e),u=at(e,"memo"),c=st(e,"key"),f=c&&(6===c.type?te(c.value.content,!0):c.exp),d=c?ee("key",f):null,p=4===t.source.type&&t.source.constType>0,h=p?64:c?128:256;return t.codegenNode=Z(n,r(o),void 0,a,h+"",void 0,void 0,!0,!p,!1,e.loc),()=>{let c;const{children:h}=t,m=1!==h.length||1!==h[0].type,g=pt(e)?e:s&&1===e.children.length&&pt(e.children[0])?e.children[0]:null;if(g?(c=g.codegenNode,s&&d&&gt(c,d,n)):m?c=Z(n,r(o),d?Q([d]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(c=h[0].codegenNode,s&&d&&gt(c,d,n),c.isBlock!==!p&&(c.isBlock?(i(l),i(me(n.inSSR,c.isComponent))):i(he(n.inSSR,c.isComponent))),c.isBlock=!p,c.isBlock?(r(l),r(me(n.inSSR,c.isComponent))):r(he(n.inSSR,c.isComponent))),u){const e=ie(jn(t.parseResult,[te("_cached")]));e.body=ue([re(["const _memo = (",u.exp,")"]),re(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(z)}(_cached, _memo)) return _cached`]),re(["const _item = ",c]),te("_item.memo = _memo"),te("return _item")]),a.arguments.push(e,te("_cache"),te(String(n.cached++)))}else a.arguments.push(ie(jn(t.parseResult),c,!0))}}))}));function Mn(e,t,n,r){if(!t.exp)return void n.onError(Re(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(Re(32,t.loc));Fn(o);const{addIdentifiers:i,removeIdentifiers:a,scopes:s}=n,{source:u,value:l,key:c,index:f}=o,d={type:11,loc:t.loc,source:u,valueAlias:l,keyAlias:c,objectIndexAlias:f,parseResult:o,children:dt(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const p=r&&r(d);return()=>{s.vFor--,p&&p()}}function Fn(e,t){e.finalized||(e.finalized=!0)}function jn({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||te("_".repeat(t+1),!1)))}([e,t,n,...r])}const Un=te("undefined",!1),Bn=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=at(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Vn=(e,t)=>{let n;if(dt(e)&&e.props.some(ft)&&(n=at(e,"for"))){const e=n.forParseResult;if(e){Fn(e);const{value:n,key:r,index:o}=e,{addIdentifiers:i,removeIdentifiers:a}=t;return n&&i(n),r&&i(r),o&&i(o),()=>{n&&a(n),r&&a(r),o&&a(o)}}}},zn=(e,t,n,r)=>ie(e,n,!1,!0,n.length?n[0].loc:r);function Wn(e,t,n=zn){t.helper(j);const{children:r,loc:o}=e,i=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const u=at(e,"slot",!0);if(u){const{arg:e,exp:t}=u;e&&!Ye(e)&&(s=!0),i.push(ee(e||te("default",!0),n(t,void 0,r,o)))}let l=!1,c=!1;const f=[],d=new Set;let p=0;for(let e=0;e<r.length;e++){const o=r[e];let h;if(!dt(o)||!(h=at(o,"slot",!0))){3!==o.type&&f.push(o);continue}if(u){t.onError(Re(37,h.loc));break}l=!0;const{children:m,loc:g}=o,{arg:v=te("default",!0),exp:_,loc:y}=h;let b;Ye(v)?b=v?v.content:"default":s=!0;const E=at(o,"for"),S=n(_,E,m,g);let T,x;if(T=at(o,"if"))s=!0,a.push(ae(T.exp,Hn(v,S,p++),Un));else if(x=at(o,/^else(-if)?$/,!0)){let n,o=e;for(;o--&&(n=r[o],3===n.type););if(n&&dt(n)&&at(n,"if")){r.splice(e,1),e--;let t=a[a.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=x.exp?ae(x.exp,Hn(v,S,p++),Un):Hn(v,S,p++)}else t.onError(Re(30,x.loc))}else if(E){s=!0;const e=E.forParseResult;e?(Fn(e),a.push(oe(t.helper(w),[e.source,ie(jn(e),Hn(v,S),!0)]))):t.onError(Re(32,E.loc))}else{if(b){if(d.has(b)){t.onError(Re(38,y));continue}d.add(b),"default"===b&&(c=!0)}i.push(ee(v,S))}}if(!u){const e=(e,r)=>{const i=n(e,void 0,r,o);return t.compatConfig&&(i.isNonScopedSlot=!0),ee("default",i)};l?f.length&&f.some((e=>qn(e)))&&(c?t.onError(Re(39,f[0].loc)):i.push(e(void 0,f))):i.push(e(void 0,r))}const h=s?2:$n(e.children)?3:1;let m=Q(i.concat(ee("_",te(h+"",!1))),o);return a.length&&(m=oe(t.helper(T),[m,K(a)])),{slots:m,hasDynamicSlots:s}}function Hn(e,t,n){const r=[ee("name",e),ee("fn",t)];return null!=n&&r.push(ee("key",te(String(n),!0))),Q(r)}function $n(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||$n(n.children))return!0;break;case 9:if($n(n.branches))return!0;break;case 10:case 11:if($n(n.children))return!0}}return!1}function qn(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():qn(e.content))}const Yn=new WeakMap,Xn=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,u=1===e.tagType;let l=u?Gn(e,t):`"${n}"`;const c=(0,r.isObject)(l)&&l.callee===_;let f,d,p,h,m,g,v=0,y=c||l===i||l===a||!u&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=Jn(e,t,void 0,u,c);f=n.props,v=n.patchFlag,m=n.dynamicPropNames;const r=n.directives;g=r&&r.length?K(r.map((e=>Qn(e,t)))):void 0,n.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(l===s&&(y=!0,v|=1024),u&&l!==i&&l!==s){const{slots:n,hasDynamicSlots:r}=Wn(e,t);d=n,r&&(v|=1024)}else if(1===e.children.length&&l!==i){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===sn(n,t)&&(v|=1),d=o||2===r?n:e.children}else d=e.children;0!==v&&(p=String(v),m&&m.length&&(h=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(m))),e.codegenNode=Z(t,l,f,d,p,h,g,!!y,!1,u,e.loc)};function Gn(e,t,n=!1){let{tag:r}=e;const o=er(r),i=st(e,"is");if(i)if(o||ke("COMPILER_IS_ON_ELEMENT",t)){const e=6===i.type?i.value&&te(i.value.content,!0):i.exp;if(e)return oe(t.helper(_),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const a=Xe(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(v),t.components.add(r),_t(r,"component"))}function Jn(e,t,n=e.props,o,i,a=!1){const{tag:s,loc:u,children:l}=e;let c=[];const f=[],d=[],p=l.length>0;let h=!1,m=0,g=!1,v=!1,_=!1,y=!1,b=!1,E=!1;const w=[],S=e=>{c.length&&(f.push(Q(Zn(c),u)),c=[]),e&&f.push(e)},T=({key:e,value:n})=>{if(Ye(e)){const a=e.content,s=(0,r.isOn)(a);if(!s||o&&!i||"onclick"===a.toLowerCase()||"onUpdate:modelValue"===a||(0,r.isReservedProp)(a)||(y=!0),s&&(0,r.isReservedProp)(a)&&(E=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&sn(n,t)>0)return;"ref"===a?g=!0:"class"===a?v=!0:"style"===a?_=!0:"key"===a||w.includes(a)||w.push(a),!o||"class"!==a&&"style"!==a||w.includes(a)||w.push(a)}else b=!0};for(let i=0;i<n.length;i++){const l=n[i];if(6===l.type){const{loc:e,name:n,nameLoc:r,value:o}=l;let i=!0;if("ref"===n&&(g=!0,t.scopes.vFor>0&&c.push(ee(te("ref_for",!0),te("true")))),"is"===n&&(er(s)||o&&o.content.startsWith("vue:")||ke("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(ee(te(n,!0,r),te(o?o.content:"",i,o?o.loc:e)))}else{const{name:n,arg:i,exp:g,loc:v,modifiers:_}=l,y="bind"===n,E="on"===n;if("slot"===n){o||t.onError(Re(40,v));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&ut(i,"is")&&(er(s)||ke("COMPILER_IS_ON_ELEMENT",t)))continue;if(E&&a)continue;if((y&&ut(i,"key")||E&&p&&ut(i,"vue:before-update"))&&(h=!0),y&&ut(i,"ref")&&t.scopes.vFor>0&&c.push(ee(te("ref_for",!0),te("true"))),!i&&(y||E)){if(b=!0,g)if(y){if(S(),ke("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(g);continue}f.push(g)}else S({type:14,loc:v,callee:t.helper(I),arguments:o?[g]:[g,"true"]});else t.onError(Re(y?34:35,v));continue}y&&_.includes("prop")&&(m|=32);const w=t.directiveTransforms[n];if(w){const{props:n,needRuntime:o}=w(l,e,t);!a&&n.forEach(T),E&&i&&!Ye(i)?S(Q(n,u)):c.push(...n),o&&(d.push(l),(0,r.isSymbol)(o)&&Yn.set(l,o))}else(0,r.isBuiltInDirective)(n)||(d.push(l),p&&(h=!0))}}let x;if(f.length?(S(),x=f.length>1?oe(t.helper(O),f,u):f[0]):c.length&&(x=Q(Zn(c),u)),b?m|=16:(v&&!o&&(m|=2),_&&!o&&(m|=4),w.length&&(m|=8),y&&(m|=32)),h||0!==m&&32!==m||!(g||E||d.length>0)||(m|=512),!t.inSSR&&x)switch(x.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<x.properties.length;t++){const o=x.properties[t].key;Ye(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=x.properties[e],i=x.properties[n];r?x=oe(t.helper(N),[x]):(o&&!Ye(o.value)&&(o.value=oe(t.helper(k),[o.value])),i&&(_||4===i.value.type&&"["===i.value.content.trim()[0]||17===i.value.type)&&(i.value=oe(t.helper(C),[i.value])));break;case 14:break;default:x=oe(t.helper(N),[oe(t.helper(A),[x])])}return{props:x,directives:d,patchFlag:m,dynamicPropNames:w,shouldUseBlock:h}}function Zn(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const i=e[o];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const a=i.key.content,s=t.get(a);s?("style"===a||"class"===a||(0,r.isOn)(a))&&Kn(s,i):(t.set(a,i),n.push(i))}return n}function Kn(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=K([e.value,t.value],e.loc)}function Qn(e,t){const n=[],r=Yn.get(e);r?n.push(t.helperString(r)):(t.helper(y),t.directives.add(e.name),n.push(_t(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=te("true",!1,o);n.push(Q(e.modifiers.map((e=>ee(e,t))),o))}return K(n,e.loc)}function er(e){return"component"===e||"Component"===e}const tr=(e,t)=>{if(pt(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=nr(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let s=2;i&&(a[2]=i,s=3),n.length&&(a[3]=ie([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=oe(t.helper(S),a,r)}};function nr(e,t){let n,o='"default"';const i=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];6===n.type?n.value&&("name"===n.name?o=JSON.stringify(n.value.content):(n.name=(0,r.camelize)(n.name),i.push(n))):"bind"===n.name&&ut(n.arg,"name")?n.exp&&(o=n.exp):("bind"===n.name&&n.arg&&Ye(n.arg)&&(n.arg.content=(0,r.camelize)(n.arg.content)),i.push(n))}if(i.length>0){const{props:r,directives:o}=Jn(e,t,i,!1,!1);n=r,o.length&&t.onError(Re(36,o[0].loc))}return{slotName:o,slotProps:n}}const rr=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,or=(e,t,n,o)=>{const{loc:i,modifiers:a,arg:s}=e;let u;if(e.exp||a.length||n.onError(Re(35,i)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),u=te(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?(0,r.toHandlerKey)((0,r.camelize)(e)):`on:${e}`,!0,s.loc)}else u=re([`${n.helperString(L)}(`,s,")"]);else u=s,u.children.unshift(`${n.helperString(L)}(`),u.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=nt(l.content),t=!(e||rr.test(l.content)),n=l.content.includes(";");(t||c&&e)&&(l=re([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let f={props:[ee(u,l||te("() => {}",!1,i))]};return o&&(f=o(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach((e=>e.key.isHandlerKey=!0)),f},ir=(e,t,n)=>{const{modifiers:o,loc:i}=e,a=e.arg;let{exp:s}=e;if(!s&&4===a.type){const t=(0,r.camelize)(a.content);s=e.exp=te(t,!1,a.loc)}return 4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=`${a.content} || ""`),o.includes("camel")&&(4===a.type?a.isStatic?a.content=(0,r.camelize)(a.content):a.content=`${n.helperString(R)}(${a.content})`:(a.children.unshift(`${n.helperString(R)}(`),a.children.push(")"))),n.inSSR||(o.includes("prop")&&ar(a,"."),o.includes("attr")&&ar(a,"^")),!s||4===s.type&&!s.content.trim()?(n.onError(Re(34,i)),{props:[ee(a,te("",!0,i))]}):{props:[ee(a,s)]}},ar=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},sr=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(ct(t)){o=!0;for(let o=e+1;o<n.length;o++){const i=n[o];if(!ct(i)){r=void 0;break}r||(r=n[e]=re([t],t.loc)),r.children.push(" + ",i),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(ct(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==sn(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:oe(t.helper(m),o)}}}}},ur=new WeakSet,lr=(e,t)=>{if(1===e.type&&at(e,"once",!0)){if(ur.has(e)||t.inVOnce||t.inSSR)return;return ur.add(e),t.inVOnce=!0,t.helper(D),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},cr=(e,t,n)=>{const{exp:o,arg:i}=e;if(!o)return n.onError(Re(41,e.loc)),fr();const a=o.loc.source,s=4===o.type?o.content:a,u=n.bindingMetadata[a];if("props"===u||"props-aliased"===u)return n.onError(Re(44,o.loc)),fr();if(!s.trim()||!nt(s))return n.onError(Re(42,o.loc)),fr();const l=i||te("modelValue",!0),c=i?Ye(i)?`onUpdate:${(0,r.camelize)(i.content)}`:re(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;f=re([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[ee(l,e.exp),ee(c,f)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Je(e)?e:JSON.stringify(e))+": true")).join(", "),n=i?Ye(i)?`${i.content}Modifiers`:re([i,' + "Modifiers"']):"modelModifiers";d.push(ee(n,te(`{ ${t} }`,!1,e.loc,2)))}return fr(d)};function fr(e=[]){return{props:e}}const dr=/[\w).+\-_$\]]/,pr=(e,t)=>{ke("COMPILER_FILTERS",t)&&(5===e.type&&hr(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&hr(e.exp,t)})))};function hr(e,t){if(4===e.type)mr(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?mr(r,t):8===r.type?hr(e,t):5===r.type&&hr(r.content,t))}}function mr(e,t){const n=e.content;let r,o,i,a,s=!1,u=!1,l=!1,c=!1,f=0,d=0,p=0,h=0,m=[];for(i=0;i<n.length;i++)if(o=r,r=n.charCodeAt(i),s)39===r&&92!==o&&(s=!1);else if(u)34===r&&92!==o&&(u=!1);else if(l)96===r&&92!==o&&(l=!1);else if(c)47===r&&92!==o&&(c=!1);else if(124!==r||124===n.charCodeAt(i+1)||124===n.charCodeAt(i-1)||f||d||p){switch(r){case 34:u=!0;break;case 39:s=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--}if(47===r){let e,t=i-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&dr.test(e)||(c=!0)}}else void 0===a?(h=i+1,a=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===a?a=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i<m.length;i++)a=gr(a,m[i],t);e.content=a}}function gr(e,t,n){n.helper(b);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${_t(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${_t(o,"filter")}(${e}${")"!==i?","+i:i}`}}const vr=new WeakSet,_r=(e,t)=>{if(1===e.type){const n=at(e,"memo");if(!n||vr.has(e))return;return vr.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&ge(r,t),e.codegenNode=oe(t.helper(V),[n.exp,ie(void 0,r),"_cache",String(t.cached++)]))}}};function yr(e){return[[lr,An,_r,Dn,pr,tr,Xn,Bn,sr],{on:or,bind:ir,model:cr}]}function br(e,t={}){const n=t.onError||Ae,o="module"===t.mode;!0===t.prefixIdentifiers?n(Re(47)):o&&n(Re(48)),t.cacheHandlers&&n(Re(49)),t.scopeId&&!o&&n(Re(50));const i=(0,r.extend)({},t,{prefixIdentifiers:!1}),a=(0,r.isString)(e)?nn(e,i):e,[s,u]=yr();return hn(a,(0,r.extend)({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:(0,r.extend)({},u,t.directiveTransforms||{})})),yn(a,i)}const Er={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},wr=()=>({props:[]}),Sr=Symbol(""),Tr=Symbol(""),xr=Symbol(""),Or=Symbol(""),kr=Symbol(""),Cr=Symbol(""),Nr=Symbol(""),Ar=Symbol(""),Ir=Symbol(""),Rr=Symbol("");let Pr;H({[Sr]:"vModelRadio",[Tr]:"vModelCheckbox",[xr]:"vModelText",[Or]:"vModelSelect",[kr]:"vModelDynamic",[Cr]:"withModifiers",[Nr]:"withKeys",[Ar]:"vShow",[Ir]:"Transition",[Rr]:"TransitionGroup"});const Lr={parseMode:"html",isVoidTag:r.isVoidTag,isNativeTag:e=>(0,r.isHTMLTag)(e)||(0,r.isSVGTag)(e)||(0,r.isMathMLTag)(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Pr||(Pr=document.createElement("div")),t?(Pr.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Pr.children[0].getAttribute("foo")):(Pr.innerHTML=e,Pr.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?Ir:"TransitionGroup"===e||"transition-group"===e?Rr:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},Dr=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:te("style",!0,t.loc),exp:Mr(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},Mr=(e,t)=>{const n=(0,r.parseStringStyle)(e);return te(JSON.stringify(n),!1,t,3)};function Fr(e,t){return Re(e,t)}const jr={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},Ur={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Br=(0,r.makeMap)("passive,once,capture"),Vr=(0,r.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),zr=(0,r.makeMap)("left,right"),Wr=(0,r.makeMap)("onkeyup,onkeydown,onkeypress",!0),Hr=(e,t)=>Ye(e)&&"onclick"===e.content.toLowerCase()?te(t,!0):4!==e.type?re(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,$r=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},qr=[Dr],Yr={cloak:wr,html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(53,o)),t.children.length&&(n.onError(Fr(54,o)),t.children.length=0),{props:[ee(te("innerHTML",!0,o),r||te("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(55,o)),t.children.length&&(n.onError(Fr(56,o)),t.children.length=0),{props:[ee(te("textContent",!0),r?sn(r,n)>0?r:oe(n.helperString(x),[r],o):te("",!0))]}},model:(e,t,n)=>{const r=cr(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Fr(58,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||i){let a=xr,s=!1;if("input"===o||i){const r=st(t,"type");if(r){if(7===r.type)a=kr;else if(r.value)switch(r.value.content){case"radio":a=Sr;break;case"checkbox":a=Tr;break;case"file":s=!0,n.onError(Fr(59,e.loc))}}else lt(t)&&(a=kr)}else"select"===o&&(a=Or);s||(r.needRuntime=n.helper(a))}else n.onError(Fr(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>or(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:i,value:a}=t.props[0];const{keyModifiers:s,nonKeyModifiers:u,eventOptionModifiers:l}=((e,t,n,r)=>{const o=[],i=[],a=[];for(let r=0;r<t.length;r++){const s=t[r];"native"===s&&Ce("COMPILER_V_ON_NATIVE",n)||Br(s)?a.push(s):zr(s)?Ye(e)?Wr(e.content)?o.push(s):i.push(s):(o.push(s),i.push(s)):Vr(s)?i.push(s):o.push(s)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:a}})(i,o,n,e.loc);if(u.includes("right")&&(i=Hr(i,"onContextmenu")),u.includes("middle")&&(i=Hr(i,"onMouseup")),u.length&&(a=oe(n.helper(Cr),[a,JSON.stringify(u)])),!s.length||Ye(i)&&!Wr(i.content)||(a=oe(n.helper(Nr),[a,JSON.stringify(s)])),l.length){const e=l.map(r.capitalize).join("");i=Ye(i)?te(`${i.content}${e}`,!0):re(["(",i,`) + "${e}"`])}return{props:[ee(i,a)]}})),show:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(61,o)),{props:[],needRuntime:n.helper(Ar)}}};function Xr(e,t={}){return br(e,(0,r.extend)({},Lr,t,{nodeTransforms:[$r,...qr,...t.nodeTransforms||[]],directiveTransforms:(0,r.extend)({},Yr,t.directiveTransforms||{}),transformHoist:null}))}function Gr(e,t={}){return nn(e,(0,r.extend)({},Lr,t))}},2343:function(e,t,n){"use strict";n.d(t,{$y:function(){return xe},B:function(){return s},BK:function(){return Xe},Bj:function(){return a},EB:function(){return c},ER:function(){return Qe},Fl:function(){return Pe},IU:function(){return Ce},Jd:function(){return E},OT:function(){return Ee},PG:function(){return Te},PQ:function(){return et},SU:function(){return ze},Tn:function(){return We},Um:function(){return be},Vh:function(){return Ze},WL:function(){return $e},X$:function(){return L},X3:function(){return ke},XI:function(){return je},Xl:function(){return Ne},YS:function(){return we},ZM:function(){return Ye},cE:function(){return g},dq:function(){return Me},iH:function(){return Fe},j:function(){return P},lk:function(){return w},nZ:function(){return l},oR:function(){return Ve},qj:function(){return ye},qq:function(){return f},sT:function(){return v},yT:function(){return Oe}}),n(4573);var r=n(2502);let o,i;class a{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}}on(){o=this}off(){o=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function s(e){return new a(e)}function u(e,t=o){t&&t.active&&t.effects.push(e)}function l(){return o}function c(e){o&&o.cleanups.push(e)}class f{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,u(this,r)}get dirty(){if(1===this._dirtyLevel){E();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(d(t.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),w()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=_,t=i;try{return _=!0,i=this,this._runnings++,p(this),this.fn()}finally{h(this),this._runnings--,i=t,_=e}}stop(){var e;this.active&&(p(this),h(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function d(e){return e.value}function p(e){e._trackId++,e._depsLength=0}function h(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)m(e.deps[t],e);e.deps.length=e._depsLength}}function m(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function g(e,t){e.effect instanceof f&&(e=e.effect.fn);const n=new f(e,r.NOOP,(()=>{n.dirty&&n.run()}));t&&((0,r.extend)(n,t),t.scope&&u(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function v(e){e.effect.stop()}let _=!0,y=0;const b=[];function E(){b.push(_),_=!1}function w(){const e=b.pop();_=void 0===e||e}function S(){y++}function T(){for(y--;!y&&O.length;)O.shift()()}function x(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&m(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const O=[];function k(e,t,n){S();for(const n of e.keys())if(n._dirtyLevel<t&&e.get(n)===n._trackId){const e=n._dirtyLevel;n._dirtyLevel=t,0===e&&(n._shouldSchedule=!0,n.trigger())}C(e),T()}function C(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,O.push(t.scheduler))}const N=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},A=new WeakMap,I=Symbol(""),R=Symbol("");function P(e,t,n){if(_&&i){let t=A.get(e);t||A.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=N((()=>t.delete(n)))),x(i,r)}}function L(e,t,n,o,i,a){const s=A.get(e);if(!s)return;let u=[];if("clear"===t)u=[...s.values()];else if("length"===n&&(0,r.isArray)(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!(0,r.isSymbol)(n)&&n>=e)&&u.push(t)}))}else switch(void 0!==n&&u.push(s.get(n)),t){case"add":(0,r.isArray)(e)?(0,r.isIntegerKey)(n)&&u.push(s.get("length")):(u.push(s.get(I)),(0,r.isMap)(e)&&u.push(s.get(R)));break;case"delete":(0,r.isArray)(e)||(u.push(s.get(I)),(0,r.isMap)(e)&&u.push(s.get(R)));break;case"set":(0,r.isMap)(e)&&u.push(s.get(I))}S();for(const e of u)e&&k(e,2);T()}const D=(0,r.makeMap)("__proto__,__v_isRef,__isVue"),M=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.isSymbol)),F=j();function j(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ce(this);for(let e=0,t=this.length;e<t;e++)P(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ce)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){E(),S();const n=Ce(this)[t].apply(this,e);return T(),w(),n}})),e}function U(e){const t=Ce(this);return P(t,0,e),t.hasOwnProperty(e)}class B{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,i=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?_e:ve:i?ge:me).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=(0,r.isArray)(e);if(!o){if(a&&(0,r.hasOwn)(F,t))return Reflect.get(F,t,n);if("hasOwnProperty"===t)return U}const s=Reflect.get(e,t,n);return((0,r.isSymbol)(t)?M.has(t):D(t))?s:(o||P(e,0,t),i?s:Me(s)?a&&(0,r.isIntegerKey)(t)?s:s.value:(0,r.isObject)(s)?o?Ee(s):ye(s):s)}}class V extends B{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._shallow){const t=xe(i);if(Oe(n)||xe(n)||(i=Ce(i),n=Ce(n)),!(0,r.isArray)(e)&&Me(i)&&!Me(n))return!t&&(i.value=n,!0)}const a=(0,r.isArray)(e)&&(0,r.isIntegerKey)(t)?Number(t)<e.length:(0,r.hasOwn)(e,t),s=Reflect.set(e,t,n,o);return e===Ce(o)&&(a?(0,r.hasChanged)(n,i)&&L(e,"set",t,n):L(e,"add",t,n)),s}deleteProperty(e,t){const n=(0,r.hasOwn)(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&L(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return(0,r.isSymbol)(t)&&M.has(t)||P(e,0,t),n}ownKeys(e){return P(e,0,(0,r.isArray)(e)?"length":I),Reflect.ownKeys(e)}}class z extends B{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const W=new V,H=new z,$=new V(!0),q=new z(!0),Y=e=>e,X=e=>Reflect.getPrototypeOf(e);function G(e,t,n=!1,o=!1){const i=Ce(e=e.__v_raw),a=Ce(t);n||((0,r.hasChanged)(t,a)&&P(i,0,t),P(i,0,a));const{has:s}=X(i),u=o?Y:n?Ie:Ae;return s.call(i,t)?u(e.get(t)):s.call(i,a)?u(e.get(a)):void(e!==i&&e.get(t))}function J(e,t=!1){const n=this.__v_raw,o=Ce(n),i=Ce(e);return t||((0,r.hasChanged)(e,i)&&P(o,0,e),P(o,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function Z(e,t=!1){return e=e.__v_raw,!t&&P(Ce(e),0,I),Reflect.get(e,"size",e)}function K(e){e=Ce(e);const t=Ce(this);return X(t).has.call(t,e)||(t.add(e),L(t,"add",e,e)),this}function Q(e,t){t=Ce(t);const n=Ce(this),{has:o,get:i}=X(n);let a=o.call(n,e);a||(e=Ce(e),a=o.call(n,e));const s=i.call(n,e);return n.set(e,t),a?(0,r.hasChanged)(t,s)&&L(n,"set",e,t):L(n,"add",e,t),this}function ee(e){const t=Ce(this),{has:n,get:r}=X(t);let o=n.call(t,e);o||(e=Ce(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&L(t,"delete",e,void 0),i}function te(){const e=Ce(this),t=0!==e.size,n=e.clear();return t&&L(e,"clear",void 0,void 0),n}function ne(e,t){return function(n,r){const o=this,i=o.__v_raw,a=Ce(i),s=t?Y:e?Ie:Ae;return!e&&P(a,0,I),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function re(e,t,n){return function(...o){const i=this.__v_raw,a=Ce(i),s=(0,r.isMap)(a),u="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=i[e](...o),f=n?Y:t?Ie:Ae;return!t&&P(a,0,l?R:I),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:u?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ie(){const e={get(e){return G(this,e)},get size(){return Z(this)},has:J,add:K,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return G(this,e,!1,!0)},get size(){return Z(this)},has:J,add:K,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return G(this,e,!0)},get size(){return Z(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return G(this,e,!0,!0)},get size(){return Z(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)})),[e,n,t,r]}const[ae,se,ue,le]=ie();function ce(e,t){const n=t?e?le:ue:e?se:ae;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.hasOwn)(n,o)&&o in t?n:t,o,i)}const fe={get:ce(!1,!1)},de={get:ce(!1,!0)},pe={get:ce(!0,!1)},he={get:ce(!0,!0)},me=new WeakMap,ge=new WeakMap,ve=new WeakMap,_e=new WeakMap;function ye(e){return xe(e)?e:Se(e,!1,W,fe,me)}function be(e){return Se(e,!1,$,de,ge)}function Ee(e){return Se(e,!0,H,pe,ve)}function we(e){return Se(e,!0,q,he,_e)}function Se(e,t,n,o,i){if(!(0,r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const s=(u=e).__v_skip||!Object.isExtensible(u)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.toRawType)(u));var u;if(0===s)return e;const l=new Proxy(e,2===s?o:n);return i.set(e,l),l}function Te(e){return xe(e)?Te(e.__v_raw):!(!e||!e.__v_isReactive)}function xe(e){return!(!e||!e.__v_isReadonly)}function Oe(e){return!(!e||!e.__v_isShallow)}function ke(e){return Te(e)||xe(e)}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function Ne(e){return(0,r.def)(e,"__v_skip",!0),e}const Ae=e=>(0,r.isObject)(e)?ye(e):e,Ie=e=>(0,r.isObject)(e)?Ee(e):e;class Re{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new f((()=>e(this._value)),(()=>De(this,1)),(()=>this.dep&&C(this.dep))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ce(this);return e._cacheable&&!e.effect.dirty||(0,r.hasChanged)(e._value,e._value=e.effect.run())&&De(e,2),Le(e),e.effect._dirtyLevel>=1&&De(e,1),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Pe(e,t,n=!1){let o,i;const a=(0,r.isFunction)(e);return a?(o=e,i=r.NOOP):(o=e.get,i=e.set),new Re(o,i,a||!i,n)}function Le(e){_&&i&&(e=Ce(e),x(i,e.dep||(e.dep=N((()=>e.dep=void 0),e instanceof Re?e:void 0))))}function De(e,t=2,n){const r=(e=Ce(e)).dep;r&&k(r,t)}function Me(e){return!(!e||!0!==e.__v_isRef)}function Fe(e){return Ue(e,!1)}function je(e){return Ue(e,!0)}function Ue(e,t){return Me(e)?e:new Be(e,t)}class Be{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ce(e),this._value=t?e:Ae(e)}get value(){return Le(this),this._value}set value(e){const t=this.__v_isShallow||Oe(e)||xe(e);e=t?e:Ce(e),(0,r.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ae(e),De(this,2))}}function Ve(e){De(e,2)}function ze(e){return Me(e)?e.value:e}function We(e){return(0,r.isFunction)(e)?e():ze(e)}const He={get:(e,t,n)=>ze(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Me(o)&&!Me(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function $e(e){return Te(e)?e:new Proxy(e,He)}class qe{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Le(this)),(()=>De(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ye(e){return new qe(e)}function Xe(e){const t=(0,r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=Ke(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Ce(this._object),t=this._key,null==(n=A.get(e))?void 0:n.get(t);var e,t,n}}class Je{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Ze(e,t,n){return Me(e)?e:(0,r.isFunction)(e)?new Je(e):(0,r.isObject)(e)&&arguments.length>1?Ke(e,t,n):Fe(e)}function Ke(e,t,n){const r=e[t];return Me(r)?r:new Ge(e,t,n)}const Qe={GET:"get",HAS:"has",ITERATE:"iterate"},et={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"}},6229:function(e,t,n){"use strict";n.d(t,{$d:function(){return d},$y:function(){return r.$y},Ah:function(){return nt},B:function(){return r.B},BK:function(){return r.BK},Bj:function(){return r.Bj},Bz:function(){return _t},C3:function(){return qn},C_:function(){return o.normalizeClass},Cn:function(){return z},EB:function(){return r.EB},EM:function(){return Gt},ER:function(){return r.ER},Eo:function(){return gn},F4:function(){return Kn},FN:function(){return dr},Fl:function(){return Ir},G:function(){return zr},Gn:function(){return wt},HX:function(){return W},HY:function(){return An},Ho:function(){return Qn},IU:function(){return r.IU},JJ:function(){return Yt},Jd:function(){return tt},KU:function(){return f},Ko:function(){return st},LL:function(){return Q},MW:function(){return vt},MX:function(){return Dr},Mr:function(){return Lr},Nv:function(){return ut},OT:function(){return r.OT},Ob:function(){return Ve},P$:function(){return Ne},PG:function(){return r.PG},PQ:function(){return r.PQ},Q2:function(){return ee},Q6:function(){return De},RC:function(){return je},RM:function(){return $r},Rh:function(){return he},Rr:function(){return Tt},S3:function(){return p},SM:function(){return c},SU:function(){return r.SU},Tn:function(){return r.Tn},U2:function(){return Ie},Uc:function(){return fe},Uk:function(){return er},Um:function(){return r.Um},Us:function(){return mn},Vf:function(){return Nt},Vh:function(){return r.Vh},WI:function(){return lt},WL:function(){return r.WL},WY:function(){return yt},Wl:function(){return Et},Wm:function(){return Zn},Wu:function(){return l},X3:function(){return r.X3},XI:function(){return r.XI},Xl:function(){return r.Xl},Xn:function(){return Qe},Y1:function(){return Sr},Y3:function(){return S},Y8:function(){return Oe},YP:function(){return ve},YS:function(){return r.YS},Yq:function(){return ot},Yu:function(){return bt},ZK:function(){return jr},ZM:function(){return r.ZM},Zq:function(){return de},_:function(){return Jn},_A:function(){return o.camelize},aZ:function(){return Me},b9:function(){return St},bT:function(){return it},bv:function(){return Ke},cE:function(){return r.cE},d1:function(){return at},dD:function(){return V},dG:function(){return ar},dl:function(){return We},dq:function(){return r.dq},ec:function(){return Vr},eq:function(){return Wr},f3:function(){return Xt},h:function(){return Pr},hR:function(){return o.toHandlerKey},i8:function(){return Fr},iD:function(){return zn},iH:function(){return r.iH},ic:function(){return et},j4:function(){return Wn},j5:function(){return o.normalizeStyle},kC:function(){return o.capitalize},kq:function(){return nr},l1:function(){return xt},lA:function(){return Hn},lR:function(){return Cn},m0:function(){return pe},mW:function(){return Br},mv:function(){return It},mx:function(){return ft},n4:function(){return ie},nJ:function(){return Ce},nK:function(){return Le},nQ:function(){return Mr},nZ:function(){return r.nZ},oR:function(){return r.oR},of:function(){return Tr},p1:function(){return At},qG:function(){return Pn},qZ:function(){return Bn},qb:function(){return O},qj:function(){return r.qj},qq:function(){return r.qq},ry:function(){return Hr},sT:function(){return r.sT},se:function(){return He},sv:function(){return Rn},tT:function(){return Rr},uE:function(){return tr},u_:function(){return Ct},up:function(){return Z},vl:function(){return rt},vs:function(){return o.normalizeProps},w5:function(){return H},wF:function(){return Ze},wg:function(){return Mn},wy:function(){return we},xv:function(){return In},yT:function(){return r.yT},yX:function(){return me},yg:function(){return Ur},zw:function(){return o.toDisplayString}}),n(4573);var r=n(2343),o=n(2502);const i=[];function a(e,...t){(0,r.Jd)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)f(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${Ar(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Ar(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...s(e.props),i]:[o+i]}(e))})),t}(a)),console.warn(...n)}(0,r.lk)()}function s(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...u(n,e[n]))})),n.length>3&&t.push(" ..."),t}function u(e,t,n){return(0,o.isString)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:(0,r.dq)(t)?(t=u(e,(0,r.IU)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.isFunction)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.IU)(t),n?t:[`${e}=`,t])}function l(e,t){}const c={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"};function f(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){p(e,t,n)}return o}function d(e,t,n,r){if((0,o.isFunction)(e)){const i=f(e,t,n,r);return i&&(0,o.isPromise)(i)&&i.catch((e=>{p(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(d(e[o],t,n,r));return i}function p(e,t,n,r=!0){if(t&&t.vnode,t){let r=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void f(a,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let h=!1,m=!1;const g=[];let v=0;const _=[];let y=null,b=0;const E=Promise.resolve();let w=null;function S(e){const t=w||E;return e?t.then(this?e.bind(this):e):t}function T(e){g.length&&g.includes(e,h&&e.allowRecurse?v+1:v)||(null==e.id?g.push(e):g.splice(function(e){let t=v+1,n=g.length;for(;t<n;){const r=t+n>>>1,o=g[r],i=N(o);i<e||i===e&&o.pre?t=r+1:n=r}return t}(e.id),0,e),x())}function x(){h||m||(m=!0,w=E.then(I))}function O(e){(0,o.isArray)(e)?_.push(...e):y&&y.includes(e,e.allowRecurse?b+1:b)||_.push(e),x()}function k(e,t,n=(h?v+1:0)){for(;n<g.length;n++){const t=g[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;g.splice(n,1),n--,t()}}}function C(e){if(_.length){const e=[...new Set(_)].sort(((e,t)=>N(e)-N(t)));if(_.length=0,y)return void y.push(...e);for(y=e,b=0;b<y.length;b++)y[b]();y=null,b=0}}const N=e=>null==e.id?1/0:e.id,A=(e,t)=>{const n=N(e)-N(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function I(e){m=!1,h=!0,g.sort(A),o.NOOP;try{for(v=0;v<g.length;v++){const e=g[v];e&&!1!==e.active&&f(e,null,14)}}finally{v=0,g.length=0,C(),h=!1,w=null,(g.length||_.length)&&I(e)}}let R,P=[],L=!1;function D(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const a=t.startsWith("update:"),s=a&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:a}=r[e]||o.EMPTY_OBJ;a&&(i=n.map((e=>(0,o.isString)(e)?e.trim():e))),t&&(i=n.map(o.looseToNumber))}let u,l=r[u=(0,o.toHandlerKey)(t)]||r[u=(0,o.toHandlerKey)((0,o.camelize)(t))];!l&&a&&(l=r[u=(0,o.toHandlerKey)((0,o.hyphenate)(t))]),l&&d(l,e,6,i);const c=r[u+"Once"];if(c){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,d(c,e,6,i)}}function M(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const a=e.emits;let s={},u=!1;if(!(0,o.isFunction)(e)){const r=e=>{const n=M(e,t,!0);n&&(u=!0,(0,o.extend)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||u?((0,o.isArray)(a)?a.forEach((e=>s[e]=null)):(0,o.extend)(s,a),(0,o.isObject)(e)&&r.set(e,s),s):((0,o.isObject)(e)&&r.set(e,null),null)}function F(e,t){return!(!e||!(0,o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||(0,o.hasOwn)(e,(0,o.hyphenate)(t))||(0,o.hasOwn)(e,t))}let j=null,U=null;function B(e){const t=j;return j=e,U=e&&e.type.__scopeId||null,t}function V(e){U=e}function z(){U=null}const W=e=>H;function H(e,t=j,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Bn(-1);const o=B(t);let i;try{i=e(...n)}finally{B(o),r._d&&Bn(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function $(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:a,propsOptions:[s],slots:u,attrs:l,emit:c,render:f,renderCache:d,data:h,setupState:m,ctx:g,inheritAttrs:v}=e;let _,y;const b=B(e);try{if(4&n.shapeFlag){const e=i||r,t=e;_=rr(f.call(t,e,d,a,m,h,g)),y=l}else{const e=t;_=rr(e.length>1?e(a,{attrs:l,slots:u,emit:c}):e(a,null)),y=t.props?l:q(l)}}catch(t){Ln.length=0,p(t,e,1),_=Zn(Rn)}let E=_;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=E;e.length&&7&t&&(s&&e.some(o.isModelListener)&&(y=Y(y,s)),E=Qn(E,y))}return n.dirs&&(E=Qn(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),_=E,B(b),_}const q=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},Y=(e,t)=>{const n={};for(const r in e)(0,o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function X(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!F(n,i))return!0}return!1}function G({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const J="components";function Z(e,t){return te(J,e,!0,t)||e}const K=Symbol.for("v-ndc");function Q(e){return(0,o.isString)(e)?te(J,e,!1)||e:e||K}function ee(e){return te("directives",e)}function te(e,t,n=!0,r=!1){const i=j||fr;if(i){const n=i.type;if(e===J){const e=Nr(n,!1);if(e&&(e===t||e===(0,o.camelize)(t)||e===(0,o.capitalize)((0,o.camelize)(t))))return n}const a=ne(i[e]||n[e],t)||ne(i.appContext[e],t);return!a&&r?n:a}}function ne(e,t){return e&&(e[t]||e[(0,o.camelize)(t)]||e[(0,o.capitalize)((0,o.camelize)(t))])}const re=e=>e.__isSuspense;let oe=0;const ie={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,a,s,u,l){if(null==e)!function(e,t,n,r,o,i,a,s,u){const{p:l,o:{createElement:c}}=u,f=c("div"),d=e.suspense=se(e,o,r,t,f,n,i,a,s,u);l(null,d.pendingBranch=e.ssContent,f,null,r,d,i,a),d.deps>0?(ae(e,"onPending"),ae(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,a),ce(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,r,o,i,a,s,u,l);else{if(i&&i.deps>0)return void(t.suspense=e.suspense);!function(e,t,n,r,o,i,a,s,{p:u,um:l,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=d,$n(d,m)?(u(m,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():g&&(v||(u(h,p,n,r,o,null,i,a,s),ce(f,p)))):(f.pendingId=oe++,v?(f.isHydrating=!1,f.activeBranch=m):l(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(u(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0?f.resolve():(u(h,p,n,r,o,null,i,a,s),ce(f,p))):h&&$n(d,h)?(u(h,d,n,r,o,f,i,a,s),f.resolve(!0)):(u(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0&&f.resolve()));else if(h&&$n(d,h))u(h,d,n,r,o,f,i,a,s),ce(f,d);else if(ae(t,"onPending"),f.pendingBranch=d,512&d.shapeFlag?f.pendingId=d.component.suspenseId:f.pendingId=oe++,u(null,d,f.hiddenContainer,null,o,f,i,a,s),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(p)}),e):0===e&&f.fallback(p)}}(e,t,n,r,o,a,s,u,l)}},hydrate:function(e,t,n,r,o,i,a,s,u){const l=t.suspense=se(t,r,n,e.parentNode,document.createElement("div"),null,o,i,a,s,!0),c=u(e,l.pendingBranch=t.ssContent,n,l,i,a);return 0===l.deps&&l.resolve(!1,!0),c},create:se,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=ue(r?n.default:n),e.ssFallback=r?ue(n.fallback):Zn(Rn)}};function ae(e,t){const n=e.props&&e.props[t];(0,o.isFunction)(n)&&n()}function se(e,t,n,r,i,a,s,u,l,c,f=!1){const{p:d,m:h,um:m,n:g,o:{parentNode:v,remove:_}}=c;let y;const b=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);b&&(null==t?void 0:t.pendingBranch)&&(y=t.pendingId,t.deps++);const E=e.props?(0,o.toNumber)(e.props.timeout):void 0,w=a,S={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:oe++,timeout:"number"==typeof E?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:s,effects:u,parentComponent:l,container:c}=S;let f=!1;S.isHydrating?S.isHydrating=!1:e||(f=o&&i.transition&&"out-in"===i.transition.mode,f&&(o.transition.afterLeave=()=>{s===S.pendingId&&(h(i,c,a===w?g(o):a,0),O(u))}),o&&(v(o.el)!==S.hiddenContainer&&(a=g(o)),m(o,l,S,!0)),f||h(i,c,a,0)),ce(S,i),S.pendingBranch=null,S.isInFallback=!1;let d=S.parent,p=!1;for(;d;){if(d.pendingBranch){d.effects.push(...u),p=!0;break}d=d.parent}p||f||O(u),S.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),ae(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=S;ae(t,"onFallback");const a=g(n),s=()=>{S.isInFallback&&(d(null,e,o,a,r,null,i,u,l),ce(S,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=s),S.isInFallback=!0,m(n,r,null,!0),c||s()},move(e,t,n){S.activeBranch&&h(S.activeBranch,e,t,n),S.container=e},next(){return S.activeBranch&&g(S.activeBranch)},registerDep(e,t){const n=!!S.pendingBranch;n&&S.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{p(t,e,0)})).then((o=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;wr(e,o,!1),r&&(i.el=r);const a=!r&&e.subTree.el;t(e,i,v(r||e.subTree.el),r?null:g(e.subTree),S,s,l),a&&_(a),G(e,i.el),n&&0==--S.deps&&S.resolve()}))},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&m(S.activeBranch,n,e,t),S.pendingBranch&&m(S.pendingBranch,n,e,t)}};return S}function ue(e){let t;if((0,o.isFunction)(e)){const n=Un&&e._c;n&&(e._d=!1,Mn()),e=e(),n&&(e._d=!0,t=Dn,Fn())}if((0,o.isArray)(e)){const t=function(e,t=!0){let n;for(let t=0;t<e.length;t++){const r=e[t];if(!Hn(r))return;if(r.type!==Rn||"v-if"===r.children){if(n)return;n=r}}return n}(e);e=t}return e=rr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function le(e,t){t&&t.pendingBranch?(0,o.isArray)(e)?t.effects.push(...e):t.effects.push(e):O(e)}function ce(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,G(r,o))}const fe=Symbol.for("v-scx"),de=()=>Xt(fe);function pe(e,t){return _e(e,null,t)}function he(e,t){return _e(e,null,{flush:"post"})}function me(e,t){return _e(e,null,{flush:"sync"})}const ge={};function ve(e,t,n){return _e(e,t,n)}function _e(e,t,{immediate:n,deep:i,flush:a,once:s,onTrack:u,onTrigger:l}=o.EMPTY_OBJ){if(t&&s){const e=t;t=(...t)=>{e(...t),O()}}const c=fr,p=e=>!0===i?e:Ee(e,!1===i?1:void 0);let h,m,g=!1,v=!1;if((0,r.dq)(e)?(h=()=>e.value,g=(0,r.yT)(e)):(0,r.PG)(e)?(h=()=>p(e),g=!0):(0,o.isArray)(e)?(v=!0,g=e.some((e=>(0,r.PG)(e)||(0,r.yT)(e))),h=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?p(e):(0,o.isFunction)(e)?f(e,c,2):void 0))):h=(0,o.isFunction)(e)?t?()=>f(e,c,2):()=>(m&&m(),d(e,c,3,[y])):o.NOOP,t&&i){const e=h;h=()=>Ee(e())}let _,y=e=>{m=S.onStop=()=>{f(e,c,4),m=S.onStop=void 0}};if(br){if(y=o.NOOP,t?n&&d(t,c,3,[h(),v?[]:void 0,y]):h(),"sync"!==a)return o.NOOP;{const e=de();_=e.__watcherHandles||(e.__watcherHandles=[])}}let b=v?new Array(e.length).fill(ge):ge;const E=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||g||(v?e.some(((e,t)=>(0,o.hasChanged)(e,b[t]))):(0,o.hasChanged)(e,b)))&&(m&&m(),d(t,c,3,[e,b===ge?void 0:v&&b[0]===ge?[]:b,y]),b=e)}else S.run()};let w;E.allowRecurse=!!t,"sync"===a?w=E:"post"===a?w=()=>hn(E,c&&c.suspense):(E.pre=!0,c&&(E.id=c.uid),w=()=>T(E));const S=new r.qq(h,o.NOOP,w),x=(0,r.nZ)(),O=()=>{S.stop(),x&&(0,o.remove)(x.effects,S)};return t?n?E():b=S.run():"post"===a?hn(S.run.bind(S),c&&c.suspense):S.run(),_&&_.push(O),O}function ye(e,t,n){const r=this.proxy,i=(0,o.isString)(e)?e.includes(".")?be(r,e):()=>r[e]:e.bind(r,r);let a;(0,o.isFunction)(t)?a=t:(a=t.handler,n=t);const s=mr(this),u=_e(i,a.bind(r),n);return s(),u}function be(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Ee(e,t,n=0,i){if(!(0,o.isObject)(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((i=i||new Set).has(e))return e;if(i.add(e),(0,r.dq)(e))Ee(e.value,t,n,i);else if((0,o.isArray)(e))for(let r=0;r<e.length;r++)Ee(e[r],t,n,i);else if((0,o.isSet)(e)||(0,o.isMap)(e))e.forEach((e=>{Ee(e,t,n,i)}));else if((0,o.isPlainObject)(e))for(const r in e)Ee(e[r],t,n,i);return e}function we(e,t){if(null===j)return e;const n=kr(j)||j.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,a,s,u=o.EMPTY_OBJ]=t[e];i&&((0,o.isFunction)(i)&&(i={mounted:i,updated:i}),i.deep&&Ee(a),r.push({dir:i,instance:n,value:a,oldValue:void 0,arg:s,modifiers:u}))}return e}function Se(e,t,n,o){const i=e.dirs,a=t&&t.dirs;for(let s=0;s<i.length;s++){const u=i[s];a&&(u.oldValue=a[s].value);let l=u.dir[o];l&&((0,r.Jd)(),d(l,n,8,[e.el,u,e,t]),(0,r.lk)())}}const Te=Symbol("_leaveCb"),xe=Symbol("_enterCb");function Oe(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ke((()=>{e.isMounted=!0})),tt((()=>{e.isUnmounting=!0})),e}const ke=[Function,Array],Ce={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ke,onEnter:ke,onAfterEnter:ke,onEnterCancelled:ke,onBeforeLeave:ke,onLeave:ke,onAfterLeave:ke,onLeaveCancelled:ke,onBeforeAppear:ke,onAppear:ke,onAfterAppear:ke,onAppearCancelled:ke},Ne={name:"BaseTransition",props:Ce,setup(e,{slots:t}){const n=dr(),o=Oe();let i;return()=>{const a=t.default&&De(t.default(),!0);if(!a||!a.length)return;let s=a[0];if(a.length>1){let e=!1;for(const t of a)if(t.type!==Rn){s=t,e=!0;break}}const u=(0,r.IU)(e),{mode:l}=u;if(o.isLeaving)return Re(s);const c=Pe(s);if(!c)return Re(s);const f=Ie(c,u,o,n);Le(c,f);const d=n.subTree,p=d&&Pe(d);let h=!1;const{getTransitionKey:m}=c.type;if(m){const e=m();void 0===i?i=e:e!==i&&(i=e,h=!0)}if(p&&p.type!==Rn&&(!$n(c,p)||h)){const e=Ie(p,u,o,n);if(Le(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Re(s);"in-out"===l&&c.type!==Rn&&(e.delayLeave=(e,t,n)=>{Ae(o,p)[String(p.key)]=p,e[Te]=()=>{t(),e[Te]=void 0,delete f.delayedLeave},f.delayedLeave=n})}return s}}};function Ae(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ie(e,t,n,r){const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:u,onEnter:l,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:_,onAfterAppear:y,onAppearCancelled:b}=t,E=String(e.key),w=Ae(n,e),S=(e,t)=>{e&&d(e,r,9,t)},T=(e,t)=>{const n=t[1];S(e,t),(0,o.isArray)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},x={mode:a,persisted:s,beforeEnter(t){let r=u;if(!n.isMounted){if(!i)return;r=v||u}t[Te]&&t[Te](!0);const o=w[E];o&&$n(e,o)&&o.el[Te]&&o.el[Te](),S(r,[t])},enter(e){let t=l,r=c,o=f;if(!n.isMounted){if(!i)return;t=_||l,r=y||c,o=b||f}let a=!1;const s=e[xe]=t=>{a||(a=!0,S(t?o:r,[e]),x.delayedLeave&&x.delayedLeave(),e[xe]=void 0)};t?T(t,[e,s]):s()},leave(t,r){const o=String(e.key);if(t[xe]&&t[xe](!0),n.isUnmounting)return r();S(p,[t]);let i=!1;const a=t[Te]=n=>{i||(i=!0,r(),S(n?g:m,[t]),t[Te]=void 0,w[o]===e&&delete w[o])};w[o]=e,h?T(h,[t,a]):a()},clone(e){return Ie(e,t,n,r)}};return x}function Re(e){if(Be(e))return(e=Qn(e)).children=null,e}function Pe(e){return Be(e)?e.children?e.children[0]:void 0:e}function Le(e,t){6&e.shapeFlag&&e.component?Le(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function De(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:i);a.type===An?(128&a.patchFlag&&o++,r=r.concat(De(a.children,t,s))):(t||a.type!==Rn)&&r.push(null!=s?Qn(a,{key:s}):a)}if(o>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Me(e,t){return(0,o.isFunction)(e)?(()=>(0,o.extend)({name:e.name},t,{setup:e}))():e}const Fe=e=>!!e.type.__asyncLoader;function je(e){(0,o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:a=200,timeout:s,suspensible:u=!0,onError:l}=e;let c,f=null,d=0;const h=()=>{let e;return f||(e=f=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((d++,f=null,h()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return Me({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const e=fr;if(c)return()=>Ue(c,e);const t=t=>{f=null,p(t,e,13,!i)};if(u&&e.suspense||br)return h().then((t=>()=>Ue(t,e))).catch((e=>(t(e),()=>i?Zn(i,{error:e}):null)));const o=(0,r.iH)(!1),l=(0,r.iH)(),d=(0,r.iH)(!!a);return a&&setTimeout((()=>{d.value=!1}),a),null!=s&&setTimeout((()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),l.value=e}}),s),h().then((()=>{o.value=!0,e.parent&&Be(e.parent.vnode)&&(e.parent.effect.dirty=!0,T(e.parent.update))})).catch((e=>{t(e),l.value=e})),()=>o.value&&c?Ue(c,e):l.value&&i?Zn(i,{error:l.value}):n&&!d.value?Zn(n):void 0}})}function Ue(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,a=Zn(e,r,o);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const Be=e=>e.type.__isKeepAlive,Ve={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=dr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,a=new Set;let s=null;const u=n.suspense,{renderer:{p:l,m:c,um:f,o:{createElement:d}}}=r,p=d("div");function h(e){Ye(e),f(e,n,u,!0)}function m(e){i.forEach(((t,n)=>{const r=Nr(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=i.get(e);s&&$n(t,s)?s&&Ye(s):h(t),i.delete(e),a.delete(e)}r.activate=(e,t,n,r,i)=>{const a=e.component;c(e,t,n,0,u),l(a.vnode,e,t,n,a,u,r,e.slotScopeIds,i),hn((()=>{a.isDeactivated=!1,a.a&&(0,o.invokeArrayFns)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&sr(t,a.parent,e)}),u)},r.deactivate=e=>{const t=e.component;c(e,p,null,1,u),hn((()=>{t.da&&(0,o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&sr(n,t.parent,e),t.isDeactivated=!0}),u)},ve((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>ze(e,t))),t&&m((e=>!ze(t,e)))}),{flush:"post",deep:!0});let v=null;const _=()=>{null!=v&&i.set(v,Xe(n.subTree))};return Ke(_),et(_),tt((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,o=Xe(t);if(e.type!==o.type||e.key!==o.key)h(e);else{Ye(o);const e=o.component.da;e&&hn(e,r)}}))})),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!Hn(r)||!(4&r.shapeFlag||128&r.shapeFlag))return s=null,r;let o=Xe(r);const u=o.type,l=Nr(Fe(o)?o.type.__asyncResolved||{}:u),{include:c,exclude:f,max:d}=e;if(c&&(!l||!ze(c,l))||f&&l&&ze(f,l))return s=o,r;const p=null==o.key?u:o.key,h=i.get(p);return o.el&&(o=Qn(o),128&r.shapeFlag&&(r.ssContent=o)),v=p,h?(o.el=h.el,o.component=h.component,o.transition&&Le(o,o.transition),o.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),d&&a.size>parseInt(d,10)&&g(a.values().next().value)),o.shapeFlag|=256,s=o,re(r.type)?r:o}}};function ze(e,t){return(0,o.isArray)(e)?e.some((e=>ze(e,t))):(0,o.isString)(e)?e.split(",").includes(t):!!(0,o.isRegExp)(e)&&e.test(t)}function We(e,t){$e(e,"a",t)}function He(e,t){$e(e,"da",t)}function $e(e,t,n=fr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Ge(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Be(e.parent.vnode)&&qe(r,t,n,e),e=e.parent}}function qe(e,t,n,r){const i=Ge(t,e,r,!0);nt((()=>{(0,o.remove)(r[t],i)}),n)}function Ye(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Xe(e){return 128&e.shapeFlag?e.ssContent:e}function Ge(e,t,n=fr,o=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)();const i=mr(n),a=d(t,n,e,o);return i(),(0,r.lk)(),a});return o?i.unshift(a):i.push(a),a}}const Je=e=>(t,n=fr)=>(!br||"sp"===e)&&Ge(e,((...e)=>t(...e)),n),Ze=Je("bm"),Ke=Je("m"),Qe=Je("bu"),et=Je("u"),tt=Je("bum"),nt=Je("um"),rt=Je("sp"),ot=Je("rtg"),it=Je("rtc");function at(e,t=fr){Ge("ec",e,t)}function st(e,t,n,r){let i;const a=n&&n[r];if((0,o.isArray)(e)||(0,o.isString)(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,a&&a[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if((0,o.isObject)(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function ut(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,o.isArray)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function lt(e,t,n={},r,o){if(j.isCE||j.parent&&Fe(j.parent)&&j.parent.isCE)return"default"!==t&&(n.name=t),Zn("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),Mn();const a=i&&ct(i(n)),s=Wn(An,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function ct(e){return e.some((e=>!Hn(e)||e.type!==Rn&&!(e.type===An&&!ct(e.children))))?e:null}function ft(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:(0,o.toHandlerKey)(r)]=e[r];return n}const dt=e=>e?vr(e)?kr(e)||e.proxy:dt(e.parent):null,pt=(0,o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dt(e.parent),$root:e=>dt(e.root),$emit:e=>e.emit,$options:e=>Dt(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,T(e.update)}),$nextTick:e=>e.n||(e.n=S.bind(e.proxy)),$watch:e=>ye.bind(e)}),ht=(e,t)=>e!==o.EMPTY_OBJ&&!e.__isScriptSetup&&(0,o.hasOwn)(e,t),mt={get({_:e},t){const{ctx:n,setupState:i,data:a,props:s,accessCache:u,type:l,appContext:c}=e;let f;if("$"!==t[0]){const r=u[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(ht(i,t))return u[t]=1,i[t];if(a!==o.EMPTY_OBJ&&(0,o.hasOwn)(a,t))return u[t]=2,a[t];if((f=e.propsOptions[0])&&(0,o.hasOwn)(f,t))return u[t]=3,s[t];if(n!==o.EMPTY_OBJ&&(0,o.hasOwn)(n,t))return u[t]=4,n[t];Rt&&(u[t]=0)}}const d=pt[t];let p,h;return d?("$attrs"===t&&(0,r.j)(e,"get",t),d(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&(0,o.hasOwn)(n,t)?(u[t]=4,n[t]):(h=c.config.globalProperties,(0,o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return ht(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&(0,o.hasOwn)(r,t)?(r[t]=n,!0):!((0,o.hasOwn)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:a}},s){let u;return!!n[s]||e!==o.EMPTY_OBJ&&(0,o.hasOwn)(e,s)||ht(t,s)||(u=a[0])&&(0,o.hasOwn)(u,s)||(0,o.hasOwn)(r,s)||(0,o.hasOwn)(pt,s)||(0,o.hasOwn)(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},gt=(0,o.extend)({},mt,{get(e,t){if(t!==Symbol.unscopables)return mt.get(e,t,e)},has(e,t){return"_"!==t[0]&&!(0,o.isGloballyAllowed)(t)}});function vt(){return null}function _t(){return null}function yt(e){}function bt(e){}function Et(){return null}function wt(){}function St(e,t){return null}function Tt(){return Ot().slots}function xt(){return Ot().attrs}function Ot(){const e=dr();return e.setupContext||(e.setupContext=Or(e))}function kt(e){return(0,o.isArray)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Ct(e,t){const n=kt(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?(0,o.isArray)(r)||(0,o.isFunction)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Nt(e,t){return e&&t?(0,o.isArray)(e)&&(0,o.isArray)(t)?e.concat(t):(0,o.extend)({},kt(e),kt(t)):e||t}function At(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function It(e){const t=dr();let n=e();return gr(),(0,o.isPromise)(n)&&(n=n.catch((e=>{throw mr(t),e}))),[n,()=>mr(t)]}let Rt=!0;function Pt(e,t,n){d((0,o.isArray)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Lt(e,t,n,r){const i=r.includes(".")?be(n,r):()=>n[r];if((0,o.isString)(e)){const n=t[e];(0,o.isFunction)(n)&&ve(i,n)}else if((0,o.isFunction)(e))ve(i,e.bind(n));else if((0,o.isObject)(e))if((0,o.isArray)(e))e.forEach((e=>Lt(e,t,n,r)));else{const r=(0,o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.isFunction)(r)&&ve(i,r,e)}}function Dt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,u=a.get(t);let l;return u?l=u:i.length||n||r?(l={},i.length&&i.forEach((e=>Mt(l,e,s,!0))),Mt(l,t,s)):l=t,(0,o.isObject)(t)&&a.set(t,l),l}function Mt(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Mt(e,i,n,!0),o&&o.forEach((t=>Mt(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=Ft[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Ft={data:jt,props:zt,emits:zt,methods:Vt,computed:Vt,beforeCreate:Bt,created:Bt,beforeMount:Bt,mounted:Bt,beforeUpdate:Bt,updated:Bt,beforeDestroy:Bt,beforeUnmount:Bt,destroyed:Bt,unmounted:Bt,activated:Bt,deactivated:Bt,errorCaptured:Bt,serverPrefetch:Bt,components:Vt,directives:Vt,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,o.extend)(Object.create(null),e);for(const r in t)n[r]=Bt(e[r],t[r]);return n},provide:jt,inject:function(e,t){return Vt(Ut(e),Ut(t))}};function jt(e,t){return t?e?function(){return(0,o.extend)((0,o.isFunction)(e)?e.call(this,this):e,(0,o.isFunction)(t)?t.call(this,this):t)}:t:e}function Ut(e){if((0,o.isArray)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bt(e,t){return e?[...new Set([].concat(e,t))]:t}function Vt(e,t){return e?(0,o.extend)(Object.create(null),e,t):t}function zt(e,t){return e?(0,o.isArray)(e)&&(0,o.isArray)(t)?[...new Set([...e,...t])]:(0,o.extend)(Object.create(null),kt(e),kt(null!=t?t:{})):t}function Wt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ht=0;function $t(e,t){return function(n,r=null){(0,o.isFunction)(n)||(n=(0,o.extend)({},n)),null==r||(0,o.isObject)(r)||(r=null);const i=Wt(),a=new WeakSet;let s=!1;const u=i.app={_uid:Ht++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Fr,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&(0,o.isFunction)(e.install)?(a.add(e),e.install(u,...t)):(0,o.isFunction)(e)&&(a.add(e),e(u,...t))),u},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),u},component(e,t){return t?(i.components[e]=t,u):i.components[e]},directive(e,t){return t?(i.directives[e]=t,u):i.directives[e]},mount(o,a,l){if(!s){const c=Zn(n,r);return c.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),a&&t?t(c,o):e(c,o,l),s=!0,u._container=o,o.__vue_app__=u,kr(c.component)||c.component.proxy}},unmount(){s&&(e(null,u._container),delete u._container.__vue_app__)},provide(e,t){return i.provides[e]=t,u},runWithContext(e){qt=u;try{return e()}finally{qt=null}}};return u}}let qt=null;function Yt(e,t){if(fr){let n=fr.provides;const r=fr.parent&&fr.parent.provides;r===n&&(n=fr.provides=Object.create(r)),n[e]=t}}function Xt(e,t,n=!1){const r=fr||j;if(r||qt){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:qt._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.isFunction)(t)?t.call(r&&r.proxy):t}}function Gt(){return!!(fr||j||qt)}function Jt(e,t,n,i){const[a,s]=e.propsOptions;let u,l=!1;if(t)for(let r in t){if((0,o.isReservedProp)(r))continue;const c=t[r];let f;a&&(0,o.hasOwn)(a,f=(0,o.camelize)(r))?s&&s.includes(f)?(u||(u={}))[f]=c:n[f]=c:F(e.emitsOptions,r)||r in i&&c===i[r]||(i[r]=c,l=!0)}if(s){const t=(0,r.IU)(n),i=u||o.EMPTY_OBJ;for(let r=0;r<s.length;r++){const u=s[r];n[u]=Zt(a,t,u,i[u],e,!(0,o.hasOwn)(i,u))}}return l}function Zt(e,t,n,r,i,a){const s=e[n];if(null!=s){const e=(0,o.hasOwn)(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&!s.skipFactory&&(0,o.isFunction)(e)){const{propsDefaults:o}=i;if(n in o)r=o[n];else{const a=mr(i);r=o[n]=e.call(null,t),a()}}else r=e}s[0]&&(a&&!e?r=!1:!s[1]||""!==r&&r!==(0,o.hyphenate)(n)||(r=!0))}return r}function Kt(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const a=e.props,s={},u=[];let l=!1;if(!(0,o.isFunction)(e)){const r=e=>{l=!0;const[n,r]=Kt(e,t,!0);(0,o.extend)(s,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!l)return(0,o.isObject)(e)&&r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if((0,o.isArray)(a))for(let e=0;e<a.length;e++){const t=(0,o.camelize)(a[e]);Qt(t)&&(s[t]=o.EMPTY_OBJ)}else if(a)for(const e in a){const t=(0,o.camelize)(e);if(Qt(t)){const n=a[e],r=s[t]=(0,o.isArray)(n)||(0,o.isFunction)(n)?{type:n}:(0,o.extend)({},n);if(r){const e=nn(Boolean,r.type),n=nn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||(0,o.hasOwn)(r,"default"))&&u.push(t)}}}const c=[s,u];return(0,o.isObject)(e)&&r.set(e,c),c}function Qt(e){return"$"!==e[0]}function en(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function tn(e,t){return en(e)===en(t)}function nn(e,t){return(0,o.isArray)(t)?t.findIndex((t=>tn(t,e))):(0,o.isFunction)(t)&&tn(t,e)?0:-1}const rn=e=>"_"===e[0]||"$stable"===e,on=e=>(0,o.isArray)(e)?e.map(rr):[rr(e)],an=(e,t,n)=>{if(t._n)return t;const r=H(((...e)=>on(t(...e))),n);return r._c=!1,r},sn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(rn(n))continue;const i=e[n];if((0,o.isFunction)(i))t[n]=an(0,i,r);else if(null!=i){const e=on(i);t[n]=()=>e}}},un=(e,t)=>{const n=on(t);e.slots.default=()=>n};function ln(e,t,n,i,a=!1){if((0,o.isArray)(e))return void e.forEach(((e,r)=>ln(e,t&&((0,o.isArray)(t)?t[r]:t),n,i,a)));if(Fe(i)&&!a)return;const s=4&i.shapeFlag?kr(i.component)||i.component.proxy:i.el,u=a?null:s,{i:l,r:c}=e,d=t&&t.r,p=l.refs===o.EMPTY_OBJ?l.refs={}:l.refs,h=l.setupState;if(null!=d&&d!==c&&((0,o.isString)(d)?(p[d]=null,(0,o.hasOwn)(h,d)&&(h[d]=null)):(0,r.dq)(d)&&(d.value=null)),(0,o.isFunction)(c))f(c,l,12,[u,p]);else{const t=(0,o.isString)(c),i=(0,r.dq)(c),l=e.f;if(t||i){const r=()=>{if(l){const n=t?(0,o.hasOwn)(h,c)?h[c]:p[c]:c.value;a?(0,o.isArray)(n)&&(0,o.remove)(n,s):(0,o.isArray)(n)?n.includes(s)||n.push(s):t?(p[c]=[s],(0,o.hasOwn)(h,c)&&(h[c]=p[c])):(c.value=[s],e.k&&(p[e.k]=c.value))}else t?(p[c]=u,(0,o.hasOwn)(h,c)&&(h[c]=u)):i&&(c.value=u,e.k&&(p[e.k]=u))};a||l?r():(r.id=-1,hn(r,n))}}}let cn=!1;const fn=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,dn=e=>8===e.nodeType;function pn(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:u,remove:l,insert:c,createComment:f}}=e,d=(n,r,o,l,f,b=!1)=>{const E=dn(n)&&"["===n.data,w=()=>g(n,r,o,l,f,E),{type:S,ref:T,shapeFlag:x,patchFlag:O}=r;let k=n.nodeType;r.el=n,-2===O&&(b=!1,r.dynamicChildren=null);let C=null;switch(S){case In:3!==k?""===r.children?(c(r.el=i(""),u(n),n),C=n):C=w():(n.data!==r.children&&(cn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&a("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),n.data=r.children),C=s(n));break;case Rn:y(n)?(C=s(n),_(r.el=n.content.firstChild,n,o)):C=8!==k||E?w():s(n);break;case Pn:if(E&&(k=(n=s(n)).nodeType),1===k||3===k){C=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===C.nodeType?C.outerHTML:C.data),t===r.staticCount-1&&(r.anchor=C),C=s(C);return E?s(C):C}w();break;case An:C=E?m(n,r,o,l,f,b):w();break;default:if(1&x)C=1===k&&r.type.toLowerCase()===n.tagName.toLowerCase()||y(n)?p(n,r,o,l,f,b):w();else if(6&x){r.slotScopeIds=f;const e=u(n);if(C=E?v(n):dn(n)&&"teleport start"===n.data?v(n,n.data,"teleport end"):s(n),t(r,e,null,o,l,fn(e),b),Fe(r)){let t;E?(t=Zn(An),t.anchor=C?C.previousSibling:e.lastChild):t=3===n.nodeType?er(""):Zn("div"),t.el=n,r.component.subTree=t}}else 64&x?C=8!==k?w():r.type.hydrate(n,r,o,l,f,b,e,h):128&x?C=r.type.hydrate(n,r,o,l,fn(u(n)),f,b,e,d):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&a("Invalid HostVNode type:",S,`(${typeof S})`)}return null!=T&&ln(T,null,l,r),C},p=(e,t,n,i,s,u)=>{u=u||!!t.dynamicChildren;const{type:c,props:f,patchFlag:d,shapeFlag:p,dirs:m,transition:g}=t,v="input"===c||"option"===c;if(v||-1!==d){m&&Se(t,null,n,"created");let c,b=!1;if(y(e)){b=bn(i,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;b&&g.beforeEnter(r),_(r,e,n),t.el=e=r}if(16&p&&(!f||!f.innerHTML&&!f.textContent)){let r=h(e.firstChild,t,e,n,i,s,u),o=!1;for(;r;){cn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(a("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0);const t=r;r=r.nextSibling,l(t)}}else 8&p&&e.textContent!==t.children&&(cn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&a("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),e.textContent=t.children);if(f)if(v||!u||48&d)for(const t in f)(v&&(t.endsWith("value")||"indeterminate"===t)||(0,o.isOn)(t)&&!(0,o.isReservedProp)(t)||"."===t[0])&&r(e,t,null,f[t],void 0,void 0,n);else f.onClick&&r(e,"onClick",null,f.onClick,void 0,void 0,n);(c=f&&f.onVnodeBeforeMount)&&sr(c,n,t),m&&Se(t,null,n,"beforeMount"),((c=f&&f.onVnodeMounted)||m||b)&&le((()=>{c&&sr(c,n,t),b&&g.enter(e),m&&Se(t,null,n,"mounted")}),i)}return e.nextSibling},h=(e,t,r,o,i,s,u)=>{u=u||!!t.dynamicChildren;const l=t.children,c=l.length;let f=!1;for(let t=0;t<c;t++){const c=u?l[t]:l[t]=rr(l[t]);if(e)e=d(e,c,o,i,s,u);else{if(c.type===In&&!c.children)continue;cn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!f&&(a("Hydration children mismatch on",r,"\nServer rendered element contains fewer child nodes than client vdom."),f=!0),n(null,c,r,null,o,i,fn(r),s)}}return e},m=(e,t,n,r,o,i)=>{const{slotScopeIds:a}=t;a&&(o=o?o.concat(a):a);const l=u(e),d=h(s(e),t,l,n,r,o,i);return d&&dn(d)&&"]"===d.data?s(t.anchor=d):(cn=!0,c(t.anchor=f("]"),l,d),d)},g=(e,t,r,o,i,c)=>{if(cn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&a("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":dn(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),t.el=null,c){const t=v(e);for(;;){const n=s(e);if(!n||n===t)break;l(n)}}const f=s(e),d=u(e);return l(e),n(null,t,d,f,r,o,fn(d),i),f},v=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=s(e))&&dn(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return s(e);r--}return e},_=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&a("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),C(),void(t._vnode=e);cn=!1,d(t.firstChild,e,null,null,null),C(),t._vnode=e,cn&&console.error("Hydration completed but contains mismatches.")},d]}const hn=le;function mn(e){return vn(e)}function gn(e){return vn(e,pn)}function vn(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&((0,o.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),(0,o.getGlobalThis)().__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:s,createText:u,createComment:l,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=o.NOOP,insertStaticContent:m}=e,_=(e,t,n,r=null,o=null,i=null,a,s=null,u=!!t.dynamicChildren)=>{if(e===t)return;e&&!$n(e,t)&&(r=Z(e),W(e,o,i,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);const{type:l,ref:c,shapeFlag:f}=t;switch(l){case In:y(e,t,n,r);break;case Rn:b(e,t,n,r);break;case Pn:null==e&&E(t,n,r,a);break;case An:R(e,t,n,r,o,i,a,s,u);break;default:1&f?w(e,t,n,r,o,i,a,s,u):6&f?P(e,t,n,r,o,i,a,s,u):(64&f||128&f)&&l.process(e,t,n,r,o,i,a,s,u,ee)}null!=c&&o&&ln(c,e&&e.ref,i,t||e,!t)},y=(e,t,r,o)=>{if(null==e)n(t.el=u(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},b=(e,t,r,o)=>{null==e?n(t.el=l(t.children||""),r,o):t.el=e.el},E=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},w=(e,t,n,r,o,i,a,s,u)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?S(t,n,r,o,i,a,s,u):N(e,t,o,i,a,s,u)},S=(e,t,r,i,u,l,c,d)=>{let p,h;const{props:m,shapeFlag:g,transition:v,dirs:_}=e;if(p=e.el=s(e.type,l,m&&m.is,m),8&g?f(p,e.children):16&g&&O(e.children,p,null,i,u,_n(e,l),c,d),_&&Se(e,null,i,"created"),x(p,e,e.scopeId,c,i),m){for(const t in m)"value"===t||(0,o.isReservedProp)(t)||a(p,t,null,m[t],l,e.children,i,u,J);"value"in m&&a(p,"value",null,m.value,l),(h=m.onVnodeBeforeMount)&&sr(h,i,e)}_&&Se(e,null,i,"beforeMount");const y=bn(u,v);y&&v.beforeEnter(p),n(p,t,r),((h=m&&m.onVnodeMounted)||y||_)&&hn((()=>{h&&sr(h,i,e),y&&v.enter(p),_&&Se(e,null,i,"mounted")}),u)},x=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t<r.length;t++)h(e,r[t]);if(o&&t===o.subTree){const t=o.vnode;x(e,t,t.scopeId,t.slotScopeIds,o.parent)}},O=(e,t,n,r,o,i,a,s,u=0)=>{for(let l=u;l<e.length;l++){const u=e[l]=s?or(e[l]):rr(e[l]);_(null,u,t,n,r,o,i,a,s)}},N=(e,t,n,r,i,s,u)=>{const l=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let g;if(n&&yn(n,!1),(g=m.onVnodeBeforeUpdate)&&sr(g,n,t,e),p&&Se(t,e,n,"beforeUpdate"),n&&yn(n,!0),d?A(e.dynamicChildren,d,l,n,r,_n(t,i),s):u||U(e,t,l,null,n,r,_n(t,i),s,!1),c>0){if(16&c)I(l,t,h,m,n,r,i);else if(2&c&&h.class!==m.class&&a(l,"class",null,m.class,i),4&c&&a(l,"style",h.style,m.style,i),8&c){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const s=o[t],u=h[s],c=m[s];c===u&&"value"!==s||a(l,s,u,c,i,e.children,n,r,J)}}1&c&&e.children!==t.children&&f(l,t.children)}else u||null!=d||I(l,t,h,m,n,r,i);((g=m.onVnodeUpdated)||p)&&hn((()=>{g&&sr(g,n,t,e),p&&Se(t,e,n,"updated")}),r)},A=(e,t,n,r,o,i,a)=>{for(let s=0;s<t.length;s++){const u=e[s],l=t[s],c=u.el&&(u.type===An||!$n(u,l)||70&u.shapeFlag)?d(u.el):n;_(u,l,c,null,r,o,i,a,!0)}},I=(e,t,n,r,i,s,u)=>{if(n!==r){if(n!==o.EMPTY_OBJ)for(const l in n)(0,o.isReservedProp)(l)||l in r||a(e,l,n[l],null,u,t.children,i,s,J);for(const l in r){if((0,o.isReservedProp)(l))continue;const c=r[l],f=n[l];c!==f&&"value"!==l&&a(e,l,f,c,u,t.children,i,s,J)}"value"in r&&a(e,"value",n.value,r.value,u)}},R=(e,t,r,o,i,a,s,l,c)=>{const f=t.el=e?e.el:u(""),d=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(f,r,o),n(d,r,o),O(t.children||[],r,d,i,a,s,l,c)):p>0&&64&p&&h&&e.dynamicChildren?(A(e.dynamicChildren,h,r,i,a,s,l),(null!=t.key||i&&t===i.subTree)&&En(e,t,!0)):U(e,t,r,d,i,a,s,l,c)},P=(e,t,n,r,o,i,a,s,u)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,u):L(t,n,r,o,i,a,u):D(e,t,u)},L=(e,t,n,r,o,i,a)=>{const s=e.component=cr(e,r,o);if(Be(e)&&(s.ctx.renderer=ee),Er(s),s.asyncDep){if(o&&o.registerDep(s,M),!e.el){const e=s.subTree=Zn(Rn);b(null,e,t,n)}}else M(s,e,t,n,o,i,a)},D=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:u}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&u>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||X(r,a,l):!!a);if(1024&u)return!0;if(16&u)return r?X(r,a,l):!!a;if(8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!F(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void j(r,t,n);r.next=t,function(e){const t=g.indexOf(e);t>v&&g.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},M=(e,t,n,i,a,s,u)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:c}=e;{const n=wn(e);if(n)return t&&(t.el=c.el,j(e,t,u)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let f,p=t;yn(e,!1),t?(t.el=c.el,j(e,t,u)):t=c,n&&(0,o.invokeArrayFns)(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&sr(f,i,t,c),yn(e,!0);const h=$(e),m=e.subTree;e.subTree=h,_(m,h,d(m.el),Z(m),e,a,s),t.el=h.el,null===p&&G(e,h.el),r&&hn(r,a),(f=t.props&&t.props.onVnodeUpdated)&&hn((()=>sr(f,i,t,c)),a)}else{let r;const{el:u,props:l}=t,{bm:c,m:f,parent:d}=e,p=Fe(t);if(yn(e,!1),c&&(0,o.invokeArrayFns)(c),!p&&(r=l&&l.onVnodeBeforeMount)&&sr(r,d,t),yn(e,!0),u&&ne){const n=()=>{e.subTree=$(e),ne(u,e.subTree,e,a,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const r=e.subTree=$(e);_(null,r,n,i,e,a,s),t.el=r.el}if(f&&hn(f,a),!p&&(r=l&&l.onVnodeMounted)){const e=t;hn((()=>sr(r,d,e)),a)}(256&t.shapeFlag||d&&Fe(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&hn(e.a,a),e.isMounted=!0,t=n=i=null}},c=e.effect=new r.qq(l,o.NOOP,(()=>T(f)),e.scope),f=e.update=()=>{c.dirty&&c.run()};f.id=e.uid,yn(e,!0),f()},j=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:a,attrs:s,vnode:{patchFlag:u}}=e,l=(0,r.IU)(a),[c]=e.propsOptions;let f=!1;if(!(i||u>0)||16&u){let r;Jt(e,t,a,s)&&(f=!0);for(const i in l)t&&((0,o.hasOwn)(t,i)||(r=(0,o.hyphenate)(i))!==i&&(0,o.hasOwn)(t,r))||(c?!n||void 0===n[i]&&void 0===n[r]||(a[i]=Zt(c,l,i,void 0,e,!0)):delete a[i]);if(s!==l)for(const e in s)t&&(0,o.hasOwn)(t,e)||(delete s[e],f=!0)}else if(8&u){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(F(e.emitsOptions,i))continue;const u=t[i];if(c)if((0,o.hasOwn)(s,i))u!==s[i]&&(s[i]=u,f=!0);else{const t=(0,o.camelize)(i);a[t]=Zt(c,l,t,u,e,!1)}else u!==s[i]&&(s[i]=u,f=!0)}}f&&(0,r.X$)(e,"set","$attrs")}(e,t.props,i,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let a=!0,s=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:((0,o.extend)(i,t),n||1!==e||delete i._):(a=!t.$stable,sn(t,i)),s=t}else t&&(un(e,t),s={default:1});if(a)for(const e in i)rn(e)||null!=s[e]||delete i[e]})(e,t.children,n),(0,r.Jd)(),k(e),(0,r.lk)()},U=(e,t,n,r,o,i,a,s,u=!1)=>{const l=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void V(l,d,n,r,o,i,a,s,u);if(256&p)return void B(l,d,n,r,o,i,a,s,u)}8&h?(16&c&&J(l,o,i),d!==l&&f(n,d)):16&c?16&h?V(l,d,n,r,o,i,a,s,u):J(l,o,i,!0):(8&c&&f(n,""),16&h&&O(d,n,r,o,i,a,s,u))},B=(e,t,n,r,i,a,s,u,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const c=e.length,f=t.length,d=Math.min(c,f);let p;for(p=0;p<d;p++){const r=t[p]=l?or(t[p]):rr(t[p]);_(e[p],r,n,null,i,a,s,u,l)}c>f?J(e,i,a,!0,!1,d):O(t,n,r,i,a,s,u,l,d)},V=(e,t,n,r,i,a,s,u,l)=>{let c=0;const f=t.length;let d=e.length-1,p=f-1;for(;c<=d&&c<=p;){const r=e[c],o=t[c]=l?or(t[c]):rr(t[c]);if(!$n(r,o))break;_(r,o,n,null,i,a,s,u,l),c++}for(;c<=d&&c<=p;){const r=e[d],o=t[p]=l?or(t[p]):rr(t[p]);if(!$n(r,o))break;_(r,o,n,null,i,a,s,u,l),d--,p--}if(c>d){if(c<=p){const e=p+1,o=e<f?t[e].el:r;for(;c<=p;)_(null,t[c]=l?or(t[c]):rr(t[c]),n,o,i,a,s,u,l),c++}}else if(c>p)for(;c<=d;)W(e[c],i,a,!0),c++;else{const h=c,m=c,g=new Map;for(c=m;c<=p;c++){const e=t[c]=l?or(t[c]):rr(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=p-m+1;let E=!1,w=0;const S=new Array(b);for(c=0;c<b;c++)S[c]=0;for(c=h;c<=d;c++){const r=e[c];if(y>=b){W(r,i,a,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(v=m;v<=p;v++)if(0===S[v-m]&&$n(r,t[v])){o=v;break}void 0===o?W(r,i,a,!0):(S[o-m]=c+1,o>=w?w=o:E=!0,_(r,t[o],n,null,i,a,s,u,l),y++)}const T=E?function(e){const t=e.slice(),n=[0];let r,o,i,a,s;const u=e.length;for(r=0;r<u;r++){const u=e[r];if(0!==u){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<u?i=s+1:a=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}(S):o.EMPTY_ARR;for(v=T.length-1,c=b-1;c>=0;c--){const e=m+c,o=t[e],d=e+1<f?t[e+1].el:r;0===S[c]?_(null,o,n,d,i,a,s,u,l):E&&(v<0||c!==T[v]?z(o,n,d,2):v--)}}},z=(e,t,r,o,i=null)=>{const{el:a,type:s,transition:u,children:l,shapeFlag:c}=e;if(6&c)z(e.component.subTree,t,r,o);else if(128&c)e.suspense.move(t,r,o);else if(64&c)s.move(e,t,r,ee);else if(s!==An)if(s!==Pn)if(2!==o&&1&c&&u)if(0===o)u.beforeEnter(a),n(a,t,r),hn((()=>u.enter(a)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=u,s=()=>n(a,t,r),l=()=>{e(a,(()=>{s(),i&&i()}))};o?o(a,s,l):l()}else n(a,t,r);else(({el:e,anchor:t},r,o)=>{let i;for(;e&&e!==t;)i=p(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);else{n(a,t,r);for(let e=0;e<l.length;e++)z(l[e],t,r,o);n(e.anchor,t,r)}},W=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:s,children:u,dynamicChildren:l,shapeFlag:c,patchFlag:f,dirs:d}=e;if(null!=s&&ln(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&d,h=!Fe(e);let m;if(h&&(m=a&&a.onVnodeBeforeUnmount)&&sr(m,t,e),6&c)Y(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&Se(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,ee,r):l&&(i!==An||f>0&&64&f)?J(l,t,n,!1,!0):(i===An&&384&f||!o&&16&c)&&J(u,t,n),r&&H(e)}(h&&(m=a&&a.onVnodeUnmounted)||p)&&hn((()=>{m&&sr(m,t,e),p&&Se(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===An)return void q(n,r);if(t===Pn)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),i(e),e=n;i(t)})(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},q=(e,t)=>{let n;for(;e!==t;)n=p(e),i(e),e=n;i(t)},Y=(e,t,n)=>{const{bum:r,scope:i,update:a,subTree:s,um:u}=e;r&&(0,o.invokeArrayFns)(r),i.stop(),a&&(a.active=!1,W(s,e,t,n)),u&&hn(u,t),hn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a<e.length;a++)W(e[a],t,n,r,o)},Z=e=>6&e.shapeFlag?Z(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el);let K=!1;const Q=(e,t,n)=>{null==e?t._vnode&&W(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),K||(K=!0,k(),C(),K=!1),t._vnode=e},ee={p:_,um:W,m:z,r:H,mt:L,mc:O,pc:U,pbc:A,n:Z,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:Q,hydrate:te,createApp:$t(Q,te)}}function _n({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function yn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function bn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function En(e,t,n=!1){const r=e.children,i=t.children;if((0,o.isArray)(r)&&(0,o.isArray)(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=or(i[e]),o.el=t.el),n||En(t,o)),o.type===In&&(o.el=t.el)}}function wn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wn(t)}const Sn=e=>e&&(e.disabled||""===e.disabled),Tn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,xn=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,On=(e,t)=>{const n=e&&e.to;if((0,o.isString)(n)){if(t){return t(n)}return null}return n};function kn(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:u,children:l,props:c}=e,f=2===i;if(f&&r(a,t,n),(!f||Sn(c))&&16&u)for(let e=0;e<l.length;e++)o(l[e],t,n,2);f&&r(s,t,n)}const Cn={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,u,l){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:m,createComment:g}}=l,v=Sn(t.props);let{shapeFlag:_,children:y,dynamicChildren:b}=t;if(null==e){const e=t.el=m(""),l=t.anchor=m("");p(e,n,r),p(l,n,r);const f=t.target=On(t.props,h),d=t.targetAnchor=m("");f&&(p(d,f),"svg"===a||Tn(f)?a="svg":("mathml"===a||xn(f))&&(a="mathml"));const g=(e,t)=>{16&_&&c(y,e,t,o,i,a,s,u)};v?g(n,l):f&&g(f,d)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=Sn(e.props),g=m?n:c,_=m?r:p;if("svg"===a||Tn(c)?a="svg":("mathml"===a||xn(c))&&(a="mathml"),b?(d(e.dynamicChildren,b,g,o,i,a,s),En(e,t,!0)):u||f(e,t,g,_,o,i,a,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):kn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=On(t.props,h);e&&kn(t,e,null,l,0)}else m&&kn(t,c,p,l,1)}Nn(t)},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:u,anchor:l,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),a&&i(l),16&s){const e=a||!Sn(d);for(let r=0;r<u.length;r++){const i=u[r];o(i,t,n,e,!!i.dynamicChildren)}}},move:kn,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:u}},l){const c=t.target=On(t.props,u);if(c){const u=c._lpa||c.firstChild;if(16&t.shapeFlag)if(Sn(t.props))t.anchor=l(a(e),t,s(e),n,r,o,i),t.targetAnchor=u;else{t.anchor=a(e);let s=u;for(;s;)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,c._lpa=t.targetAnchor&&a(t.targetAnchor);break}l(u,t,c,n,r,o,i)}Nn(t)}return t.anchor&&a(t.anchor)}};function Nn(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const An=Symbol.for("v-fgt"),In=Symbol.for("v-txt"),Rn=Symbol.for("v-cmt"),Pn=Symbol.for("v-stc"),Ln=[];let Dn=null;function Mn(e=!1){Ln.push(Dn=e?null:[])}function Fn(){Ln.pop(),Dn=Ln[Ln.length-1]||null}let jn,Un=1;function Bn(e){Un+=e}function Vn(e){return e.dynamicChildren=Un>0?Dn||o.EMPTY_ARR:null,Fn(),Un>0&&Dn&&Dn.push(e),e}function zn(e,t,n,r,o,i){return Vn(Jn(e,t,n,r,o,i,!0))}function Wn(e,t,n,r,o){return Vn(Zn(e,t,n,r,o,!0))}function Hn(e){return!!e&&!0===e.__v_isVNode}function $n(e,t){return e.type===t.type&&e.key===t.key}function qn(e){jn=e}const Yn="__vInternal",Xn=({key:e})=>null!=e?e:null,Gn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,o.isString)(e)||(0,r.dq)(e)||(0,o.isFunction)(e)?{i:j,r:e,k:t,f:!!n}:e:null);function Jn(e,t=null,n=null,r=0,i=null,a=(e===An?0:1),s=!1,u=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xn(t),ref:t&&Gn(t),scopeId:U,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:j};return u?(ir(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=(0,o.isString)(n)?8:16),Un>0&&!s&&Dn&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&Dn.push(l),l}const Zn=function(e,t=null,n=null,i=0,a=null,s=!1){if(e&&e!==K||(e=Rn),Hn(e)){const r=Qn(e,t,!0);return n&&ir(r,n),Un>0&&!s&&Dn&&(6&r.shapeFlag?Dn[Dn.indexOf(e)]=r:Dn.push(r)),r.patchFlag|=-2,r}if(u=e,(0,o.isFunction)(u)&&"__vccOpts"in u&&(e=e.__vccOpts),t){t=Kn(t);let{class:e,style:n}=t;e&&!(0,o.isString)(e)&&(t.class=(0,o.normalizeClass)(e)),(0,o.isObject)(n)&&((0,r.X3)(n)&&!(0,o.isArray)(n)&&(n=(0,o.extend)({},n)),t.style=(0,o.normalizeStyle)(n))}var u;return Jn(e,t,n,i,a,(0,o.isString)(e)?1:re(e)?128:(e=>e.__isTeleport)(e)?64:(0,o.isObject)(e)?4:(0,o.isFunction)(e)?2:0,s,!0)};function Kn(e){return e?(0,r.X3)(e)||Yn in e?(0,o.extend)({},e):e:null}function Qn(e,t,n=!1){const{props:r,ref:i,patchFlag:a,children:s}=e,u=t?ar(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Xn(u),ref:t&&t.ref?n&&i?(0,o.isArray)(i)?i.concat(Gn(t)):[i,Gn(t)]:Gn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==An?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qn(e.ssContent),ssFallback:e.ssFallback&&Qn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function er(e=" ",t=0){return Zn(In,null,e,t)}function tr(e,t){const n=Zn(Pn,null,e);return n.staticCount=t,n}function nr(e="",t=!1){return t?(Mn(),Wn(Rn,null,e)):Zn(Rn,null,e)}function rr(e){return null==e||"boolean"==typeof e?Zn(Rn):(0,o.isArray)(e)?Zn(An,null,e.slice()):"object"==typeof e?or(e):Zn(In,null,String(e))}function or(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Qn(e)}function ir(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ir(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Yn in t?3===r&&j&&(1===j.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=j}}else(0,o.isFunction)(t)?(t={default:t,_ctx:j},n=32):(t=String(t),64&r?(n=16,t=[er(t)]):n=8);e.children=t,e.shapeFlag|=n}function ar(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,o.normalizeClass)([t.class,r.class]));else if("style"===e)t.style=(0,o.normalizeStyle)([t.style,r.style]);else if((0,o.isOn)(e)){const n=t[e],i=r[e];!i||n===i||(0,o.isArray)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function sr(e,t,n,r=null){d(e,t,7,[n,r])}const ur=Wt();let lr=0;function cr(e,t,n){const i=e.type,a=(t?t.appContext:e.appContext)||ur,s={uid:lr++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kt(i,a),emitsOptions:M(i,a),emit:null,emitted:null,propsDefaults:o.EMPTY_OBJ,inheritAttrs:i.inheritAttrs,ctx:o.EMPTY_OBJ,data:o.EMPTY_OBJ,props:o.EMPTY_OBJ,attrs:o.EMPTY_OBJ,slots:o.EMPTY_OBJ,refs:o.EMPTY_OBJ,setupState:o.EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=D.bind(null,s),e.ce&&e.ce(s),s}let fr=null;const dr=()=>fr||j;let pr,hr;{const e=(0,o.getGlobalThis)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};pr=t("__VUE_INSTANCE_SETTERS__",(e=>fr=e)),hr=t("__VUE_SSR_SETTERS__",(e=>br=e))}const mr=e=>{const t=fr;return pr(e),e.scope.on(),()=>{e.scope.off(),pr(t)}},gr=()=>{fr&&fr.scope.off(),pr(null)};function vr(e){return 4&e.vnode.shapeFlag}let _r,yr,br=!1;function Er(e,t=!1){t&&hr(t);const{props:n,children:i}=e.vnode,a=vr(e);!function(e,t,n,i=!1){const a={},s={};(0,o.def)(s,Yn,1),e.propsDefaults=Object.create(null),Jt(e,t,a,s);for(const t in e.propsOptions[0])t in a||(a[t]=void 0);n?e.props=i?a:(0,r.Um)(a):e.type.props?e.props=a:e.props=s,e.attrs=s}(e,n,a,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,o.def)(t,"_",n)):sn(t,e.slots={})}else e.slots={},t&&un(e,t);(0,o.def)(e.slots,Yn,1)})(e,i);const s=a?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,mt));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Or(e):null,a=mr(e);(0,r.Jd)();const s=f(i,e,0,[e.props,n]);if((0,r.lk)(),a(),(0,o.isPromise)(s)){if(s.then(gr,gr),t)return s.then((n=>{wr(e,n,t)})).catch((t=>{p(t,e,0)}));e.asyncDep=s}else wr(e,s,t)}else xr(e,t)}(e,t):void 0;return t&&hr(!1),s}function wr(e,t,n){(0,o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.isObject)(t)&&(e.setupState=(0,r.WL)(t)),xr(e,n)}function Sr(e){_r=e,yr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,gt))}}const Tr=()=>!_r;function xr(e,t,n){const i=e.type;if(!e.render){if(!t&&_r&&!i.render){const t=i.template||Dt(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=i,u=(0,o.extend)((0,o.extend)({isCustomElement:n,delimiters:a},r),s);i.render=_r(t,u)}}e.render=i.render||o.NOOP,yr&&yr(e)}{const t=mr(e);(0,r.Jd)();try{!function(e){const t=Dt(e),n=e.proxy,i=e.ctx;Rt=!1,t.beforeCreate&&Pt(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:u,watch:l,provide:c,inject:f,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:v,deactivated:_,beforeDestroy:y,beforeUnmount:b,destroyed:E,unmounted:w,render:S,renderTracked:T,renderTriggered:x,errorCaptured:O,serverPrefetch:k,expose:C,inheritAttrs:N,components:A,directives:I,filters:R}=t;if(f&&function(e,t,n=o.NOOP){(0,o.isArray)(e)&&(e=Ut(e));for(const n in e){const i=e[n];let a;a=(0,o.isObject)(i)?"default"in i?Xt(i.from||n,i.default,!0):Xt(i.from||n):Xt(i),(0,r.dq)(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[n]=a}}(f,i,null),u)for(const e in u){const t=u[e];(0,o.isFunction)(t)&&(i[e]=t.bind(n))}if(a){const t=a.call(n,n);(0,o.isObject)(t)&&(e.data=(0,r.qj)(t))}if(Rt=!0,s)for(const e in s){const t=s[e],r=(0,o.isFunction)(t)?t.bind(n,n):(0,o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP,a=!(0,o.isFunction)(t)&&(0,o.isFunction)(t.set)?t.set.bind(n):o.NOOP,u=Ir({get:r,set:a});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>u.value,set:e=>u.value=e})}if(l)for(const e in l)Lt(l[e],i,n,e);if(c){const e=(0,o.isFunction)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Yt(t,e[t])}))}function P(e,t){(0,o.isArray)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Pt(d,e,"c"),P(Ze,p),P(Ke,h),P(Qe,m),P(et,g),P(We,v),P(He,_),P(at,O),P(it,T),P(ot,x),P(tt,b),P(nt,w),P(rt,k),(0,o.isArray)(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=N&&(e.inheritAttrs=N),A&&(e.components=A),I&&(e.directives=I)}(e)}finally{(0,r.lk)(),t()}}}function Or(e){return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return(0,r.j)(e,"get","$attrs"),t[n]}}))}(e)},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function kr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in pt?pt[n](e):void 0},has(e,t){return t in e||t in pt}}))}const Cr=/(?:^|[-_])(\w)/g;function Nr(e,t=!0){return(0,o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Ar(e,t,n=!1){let r=Nr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Cr,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const Ir=(e,t)=>(0,r.Fl)(e,t,br);function Rr(e,t,n=o.EMPTY_OBJ){const i=dr(),a=(0,o.camelize)(t),s=(0,o.hyphenate)(t),u=(0,r.ZM)(((r,u)=>{let l;return me((()=>{const n=e[t];(0,o.hasChanged)(l,n)&&(l=n,u())})),{get(){return r(),n.get?n.get(l):l},set(e){const r=i.vnode.props;r&&(t in r||a in r||s in r)&&(`onUpdate:${t}`in r||`onUpdate:${a}`in r||`onUpdate:${s}`in r)||!(0,o.hasChanged)(e,l)||(l=e,u()),i.emit(`update:${t}`,n.set?n.set(e):e)}}})),l="modelValue"===t?"modelModifiers":`${t}Modifiers`;return u[Symbol.iterator]=()=>{let t=0;return{next(){return t<2?{value:t++?e[l]||{}:u,done:!1}:{done:!0}}}},u}function Pr(e,t,n){const r=arguments.length;return 2===r?(0,o.isObject)(t)&&!(0,o.isArray)(t)?Hn(t)?Zn(e,null,[t]):Zn(e,t):Zn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Hn(n)&&(n=[n]),Zn(e,t,n))}function Lr(){}function Dr(e,t,n,r){const o=n[r];if(o&&Mr(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function Mr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if((0,o.hasChanged)(n[e],t[e]))return!1;return Un>0&&Dn&&Dn.push(e),!0}const Fr="3.4.15",jr=o.NOOP,Ur={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."},Br=R,Vr=function e(t,n){var r,o;R=t,R?(R.enabled=!0,P.forEach((({event:e,args:t})=>R.emit(e,...t))),P=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{R||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,L=!0,P=[])}),3e3)):(L=!0,P=[])},zr={createComponentInstance:cr,setupComponent:Er,renderComponentRoot:$,setCurrentRenderingInstance:B,isVNode:Hn,normalizeVNode:rr},Wr=null,Hr=null,$r=null},341:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseTransition:function(){return r.P$},BaseTransitionPropsValidators:function(){return r.nJ},Comment:function(){return r.sv},DeprecationTypes:function(){return r.RM},EffectScope:function(){return r.Bj},ErrorCodes:function(){return r.SM},ErrorTypeStrings:function(){return r.yg},Fragment:function(){return r.HY},KeepAlive:function(){return r.Ob},ReactiveEffect:function(){return r.qq},Static:function(){return r.qG},Suspense:function(){return r.n4},Teleport:function(){return r.lR},Text:function(){return r.xv},TrackOpTypes:function(){return r.ER},Transition:function(){return d},TransitionGroup:function(){return te},TriggerOpTypes:function(){return r.PQ},VueElement:function(){return G},assertNumber:function(){return r.Wu},callWithAsyncErrorHandling:function(){return r.$d},callWithErrorHandling:function(){return r.KU},camelize:function(){return r._A},capitalize:function(){return r.kC},cloneVNode:function(){return r.Ho},compatUtils:function(){return r.ry},computed:function(){return r.Fl},createApp:function(){return Re},createBlock:function(){return r.j4},createCommentVNode:function(){return r.kq},createElementBlock:function(){return r.iD},createElementVNode:function(){return r._},createHydrationRenderer:function(){return r.Eo},createPropsRestProxy:function(){return r.p1},createRenderer:function(){return r.Us},createSSRApp:function(){return Pe},createSlots:function(){return r.Nv},createStaticVNode:function(){return r.uE},createTextVNode:function(){return r.Uk},createVNode:function(){return r.Wm},customRef:function(){return r.ZM},defineAsyncComponent:function(){return r.RC},defineComponent:function(){return r.aZ},defineCustomElement:function(){return q},defineEmits:function(){return r.Bz},defineExpose:function(){return r.WY},defineModel:function(){return r.Gn},defineOptions:function(){return r.Yu},defineProps:function(){return r.MW},defineSSRCustomElement:function(){return Y},defineSlots:function(){return r.Wl},devtools:function(){return r.mW},effect:function(){return r.cE},effectScope:function(){return r.B},getCurrentInstance:function(){return r.FN},getCurrentScope:function(){return r.nZ},getTransitionRawChildren:function(){return r.Q6},guardReactiveProps:function(){return r.F4},h:function(){return r.h},handleError:function(){return r.S3},hasInjectionContext:function(){return r.EM},hydrate:function(){return Ie},initCustomFormatter:function(){return r.Mr},initDirectivesForSSR:function(){return Fe},inject:function(){return r.f3},isMemoSame:function(){return r.nQ},isProxy:function(){return r.X3},isReactive:function(){return r.PG},isReadonly:function(){return r.$y},isRef:function(){return r.dq},isRuntimeOnly:function(){return r.of},isShallow:function(){return r.yT},isVNode:function(){return r.lA},markRaw:function(){return r.Xl},mergeDefaults:function(){return r.u_},mergeModels:function(){return r.Vf},mergeProps:function(){return r.dG},nextTick:function(){return r.Y3},normalizeClass:function(){return r.C_},normalizeProps:function(){return r.vs},normalizeStyle:function(){return r.j5},onActivated:function(){return r.dl},onBeforeMount:function(){return r.wF},onBeforeUnmount:function(){return r.Jd},onBeforeUpdate:function(){return r.Xn},onDeactivated:function(){return r.se},onErrorCaptured:function(){return r.d1},onMounted:function(){return r.bv},onRenderTracked:function(){return r.bT},onRenderTriggered:function(){return r.Yq},onScopeDispose:function(){return r.EB},onServerPrefetch:function(){return r.vl},onUnmounted:function(){return r.Ah},onUpdated:function(){return r.ic},openBlock:function(){return r.wg},popScopeId:function(){return r.Cn},provide:function(){return r.JJ},proxyRefs:function(){return r.WL},pushScopeId:function(){return r.dD},queuePostFlushCb:function(){return r.qb},reactive:function(){return r.qj},readonly:function(){return r.OT},ref:function(){return r.iH},registerRuntimeCompiler:function(){return r.Y1},render:function(){return Ae},renderList:function(){return r.Ko},renderSlot:function(){return r.WI},resolveComponent:function(){return r.up},resolveDirective:function(){return r.Q2},resolveDynamicComponent:function(){return r.LL},resolveFilter:function(){return r.eq},resolveTransitionHooks:function(){return r.U2},setBlockTracking:function(){return r.qZ},setDevtoolsHook:function(){return r.ec},setTransitionHooks:function(){return r.nK},shallowReactive:function(){return r.Um},shallowReadonly:function(){return r.YS},shallowRef:function(){return r.XI},ssrContextKey:function(){return r.Uc},ssrUtils:function(){return r.G},stop:function(){return r.sT},toDisplayString:function(){return r.zw},toHandlerKey:function(){return r.hR},toHandlers:function(){return r.mx},toRaw:function(){return r.IU},toRef:function(){return r.Vh},toRefs:function(){return r.BK},toValue:function(){return r.Tn},transformVNodeArgs:function(){return r.C3},triggerRef:function(){return r.oR},unref:function(){return r.SU},useAttrs:function(){return r.l1},useCssModule:function(){return J},useCssVars:function(){return R},useModel:function(){return r.tT},useSSRContext:function(){return r.Zq},useSlots:function(){return r.Rr},useTransitionState:function(){return r.Y8},vModelCheckbox:function(){return ce},vModelDynamic:function(){return ve},vModelRadio:function(){return de},vModelSelect:function(){return pe},vModelText:function(){return le},vShow:function(){return N},version:function(){return r.i8},warn:function(){return r.ZK},watch:function(){return r.YP},watchEffect:function(){return r.m0},watchPostEffect:function(){return r.Rh},watchSyncEffect:function(){return r.yX},withAsyncContext:function(){return r.mv},withCtx:function(){return r.w5},withDefaults:function(){return r.b9},withDirectives:function(){return r.wy},withKeys:function(){return Te},withMemo:function(){return r.MX},withModifiers:function(){return we},withScopeId:function(){return r.HX}}),n(4573);var r=n(6229),o=n(2502),i=n(2343);const a="undefined"!=typeof document?document:null,s=a&&a.createElement("template"),u={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?a.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?a.createElementNS("http://www.w3.org/1998/Math/MathML",e):a.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>a.createTextNode(e),createComment:e=>a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{s.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const o=s.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},l="transition",c="animation",f=Symbol("_vtc"),d=(e,{slots:t})=>(0,r.h)(r.P$,v(e),t);d.displayName="Transition";const p={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},h=d.props=(0,o.extend)({},r.nJ,p),m=(e,t=[])=>{(0,o.isArray)(e)?e.forEach((e=>e(...t))):e&&e(...t)},g=e=>!!e&&((0,o.isArray)(e)?e.some((e=>e.length>1)):e.length>1);function v(e){const t={};for(const n in e)n in p||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:c=s,appearToClass:f=u,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,w=function(e){if(null==e)return null;if((0,o.isObject)(e))return[_(e.enter),_(e.leave)];{const t=_(e);return[t,t]}}(i),T=w&&w[0],x=w&&w[1],{onBeforeEnter:O,onEnter:C,onEnterCancelled:N,onLeave:A,onLeaveCancelled:I,onBeforeAppear:R=O,onAppear:P=C,onAppearCancelled:L=N}=t,D=(e,t,n)=>{b(e,t?f:u),b(e,t?c:s),n&&n()},M=(e,t)=>{e._isLeaving=!1,b(e,d),b(e,v),b(e,h),t&&t()},F=e=>(t,n)=>{const o=e?P:C,i=()=>D(t,e,n);m(o,[t,i]),E((()=>{b(t,e?l:a),y(t,e?f:u),g(o)||S(t,r,T,i)}))};return(0,o.extend)(t,{onBeforeEnter(e){m(O,[e]),y(e,a),y(e,s)},onBeforeAppear(e){m(R,[e]),y(e,l),y(e,c)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>M(e,t);y(e,d),k(),y(e,h),E((()=>{e._isLeaving&&(b(e,d),y(e,v),g(A)||S(e,r,x,n))})),m(A,[e,n])},onEnterCancelled(e){D(e,!1),m(N,[e])},onAppearCancelled(e){D(e,!0),m(L,[e])},onLeaveCancelled(e){M(e),m(I,[e])}})}function _(e){return(0,o.toNumber)(e)}function y(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[f]||(e[f]=new Set)).add(t)}function b(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[f];n&&(n.delete(t),n.size||(e[f]=void 0))}function E(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let w=0;function S(e,t,n,r){const o=e._endId=++w,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:u}=T(e,t);if(!a)return r();const l=a+"end";let c=0;const f=()=>{e.removeEventListener(l,d),i()},d=t=>{t.target===e&&++c>=u&&f()};setTimeout((()=>{c<u&&f()}),s+1),e.addEventListener(l,d)}function T(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r("transitionDelay"),i=r("transitionDuration"),a=x(o,i),s=r("animationDelay"),u=r("animationDuration"),f=x(s,u);let d=null,p=0,h=0;return t===l?a>0&&(d=l,p=a,h=i.length):t===c?f>0&&(d=c,p=f,h=u.length):(p=Math.max(a,f),d=p>0?a>f?l:c:null,h=d?d===l?i.length:u.length:0),{type:d,timeout:p,propCount:h,hasTransform:d===l&&/\b(transform|all)(,|$)/.test(r("transitionProperty").toString())}}function x(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>O(t)+O(e[n]))))}function O(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function k(){return document.body.offsetHeight}const C=Symbol("_vod"),N={beforeMount(e,{value:t},{transition:n}){e[C]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):A(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),A(e,!0),r.enter(e)):r.leave(e,(()=>{A(e,!1)})):A(e,t))},beforeUnmount(e,{value:t}){A(e,t)}};function A(e,t){e.style.display=t?e[C]:"none"}const I=Symbol("");function R(e){const t=(0,r.FN)();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>L(e,n)))},o=()=>{const r=e(t.proxy);P(t.subTree,r),n(r)};(0,r.Rh)(o),(0,r.bv)((()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,r.Ah)((()=>e.disconnect()))}))}function P(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{P(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)L(e.el,t);else if(e.type===r.HY)e.children.forEach((e=>P(e,t)));else if(e.type===r.qG){let{el:n,anchor:r}=e;for(;n&&(L(n,t),n!==r);)n=n.nextSibling}}function L(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[I]=r}}const D=/\s*!important$/;function M(e,t,n){if((0,o.isArray)(n))n.forEach((n=>M(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=j[t];if(n)return n;let r=(0,o.camelize)(t);if("filter"!==r&&r in e)return j[t]=r;r=(0,o.capitalize)(r);for(let n=0;n<F.length;n++){const o=F[n]+r;if(o in e)return j[t]=o}return t}(e,t);D.test(n)?e.setProperty((0,o.hyphenate)(r),n.replace(D,""),"important"):e[r]=n}}const F=["Webkit","Moz","ms"],j={},U="http://www.w3.org/1999/xlink";function B(e,t,n,r){e.addEventListener(t,n,r)}const V=Symbol("_vei");const z=/(?:Once|Passive|Capture)$/;let W=0;const H=Promise.resolve(),$=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function q(e,t){const n=(0,r.aZ)(e);class o extends G{constructor(e){super(n,e,t)}}return o.def=n,o}const Y=e=>q(e,Ie),X="undefined"!=typeof HTMLElement?HTMLElement:class{};class G extends X{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),(0,r.Y3)((()=>{this._connected||(Ae(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let i;if(n&&!(0,o.isArray)(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=(0,o.toNumber)(this._props[e])),(i||(i=Object.create(null)))[(0,o.camelize)(e)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=(0,o.isArray)(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(o.camelize))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=(0,o.camelize)(e);this._numberProps&&this._numberProps[n]&&(t=(0,o.toNumber)(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,o.hyphenate)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,o.hyphenate)(e),t+""):t||this.removeAttribute((0,o.hyphenate)(e))))}_update(){Ae(this._createVNode(),this.shadowRoot)}_createVNode(){const e=(0,r.Wm)(this._def,(0,o.extend)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),(0,o.hyphenate)(e)!==e&&t((0,o.hyphenate)(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof G){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function J(e="$style"){{const t=(0,r.FN)();if(!t)return o.EMPTY_OBJ;const n=t.type.__cssModules;if(!n)return o.EMPTY_OBJ;return n[e]||o.EMPTY_OBJ}}const Z=new WeakMap,K=new WeakMap,Q=Symbol("_moveCb"),ee=Symbol("_enterCb"),te={name:"TransitionGroup",props:(0,o.extend)({},h,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.FN)(),o=(0,r.Y8)();let a,s;return(0,r.ic)((()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[f];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=T(r);return i.removeChild(r),a}(a[0].el,n.vnode.el,t))return;a.forEach(ne),a.forEach(re);const r=a.filter(oe);k(),r.forEach((e=>{const n=e.el,r=n.style;y(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[Q]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[Q]=null,b(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const u=(0,i.IU)(e),l=v(u);let c=u.tag||r.HY;a=s,s=t.default?(0,r.Q6)(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&(0,r.nK)(t,(0,r.U2)(t,l,o,n))}if(a)for(let e=0;e<a.length;e++){const t=a[e];(0,r.nK)(t,(0,r.U2)(t,l,o,n)),Z.set(t,t.el.getBoundingClientRect())}return(0,r.Wm)(c,null,s)}}};function ne(e){const t=e.el;t[Q]&&t[Q](),t[ee]&&t[ee]()}function re(e){K.set(e,e.el.getBoundingClientRect())}function oe(e){const t=Z.get(e),n=K.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}const ie=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,o.isArray)(t)?e=>(0,o.invokeArrayFns)(t,e):t};function ae(e){e.target.composing=!0}function se(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ue=Symbol("_assign"),le={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ue]=ie(i);const a=r||i.props&&"number"===i.props.type;B(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=(0,o.looseToNumber)(r)),e[ue](r)})),n&&B(e,"change",(()=>{e.value=e.value.trim()})),t||(B(e,"compositionstart",ae),B(e,"compositionend",se),B(e,"change",se))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},a){if(e[ue]=ie(a),e.composing)return;const s=null==t?"":t;if((i||"number"===e.type?(0,o.looseToNumber)(e.value):e.value)!==s){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===s)return}e.value=s}}},ce={deep:!0,created(e,t,n){e[ue]=ie(n),B(e,"change",(()=>{const t=e._modelValue,n=me(e),r=e.checked,i=e[ue];if((0,o.isArray)(t)){const e=(0,o.looseIndexOf)(t,n),a=-1!==e;if(r&&!a)i(t.concat(n));else if(!r&&a){const n=[...t];n.splice(e,1),i(n)}}else if((0,o.isSet)(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ge(e,r))}))},mounted:fe,beforeUpdate(e,t,n){e[ue]=ie(n),fe(e,t,n)}};function fe(e,{value:t,oldValue:n},r){e._modelValue=t,(0,o.isArray)(t)?e.checked=(0,o.looseIndexOf)(t,r.props.value)>-1:(0,o.isSet)(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=(0,o.looseEqual)(t,ge(e,!0)))}const de={created(e,{value:t},n){e.checked=(0,o.looseEqual)(t,n.props.value),e[ue]=ie(n),B(e,"change",(()=>{e[ue](me(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[ue]=ie(r),t!==n&&(e.checked=(0,o.looseEqual)(t,r.props.value))}},pe={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const a=(0,o.isSet)(t);B(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,o.looseToNumber)(me(e)):me(e)));e[ue](e.multiple?a?new Set(t):t:t[0]),e._assigning=!0,(0,r.Y3)((()=>{e._assigning=!1}))})),e[ue]=ie(i)},mounted(e,{value:t,oldValue:n,modifiers:{number:r}}){he(e,t,n,r)},beforeUpdate(e,t,n){e[ue]=ie(n)},updated(e,{value:t,oldValue:n,modifiers:{number:r}}){e._assigning||he(e,t,n,r)}};function he(e,t,n,r){const i=e.multiple,a=(0,o.isArray)(t);if((!i||a||(0,o.isSet)(t))&&(!a||!(0,o.looseEqual)(t,n))){for(let n=0,s=e.options.length;n<s;n++){const s=e.options[n],u=me(s);if(i)if(a){const e=typeof u;s.selected="string"===e||"number"===e?t.includes(r?(0,o.looseToNumber)(u):u):(0,o.looseIndexOf)(t,u)>-1}else s.selected=t.has(u);else if((0,o.looseEqual)(me(s),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))}i||-1===e.selectedIndex||(e.selectedIndex=-1)}}function me(e){return"_value"in e?e._value:e.value}function ge(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ve={created(e,t,n){ye(e,t,n,null,"created")},mounted(e,t,n){ye(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ye(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ye(e,t,n,r,"updated")}};function _e(e,t){switch(e){case"SELECT":return pe;case"TEXTAREA":return le;default:switch(t){case"checkbox":return ce;case"radio":return de;default:return le}}}function ye(e,t,n,r,o){const i=_e(e.tagName,n.props&&n.props.type)[o];i&&i(e,t,n,r)}const be=["ctrl","shift","alt","meta"],Ee={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>be.some((n=>e[`${n}Key`]&&!t.includes(n)))},we=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Ee[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Se={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Te=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,o.hyphenate)(n.key);return t.some((e=>e===r||Se[e]===r))?e(n):void 0})},xe=(0,o.extend)({patchProp:(e,t,n,i,a,s,u,l,c)=>{const d="svg"===a;"class"===t?function(e,t,n){const r=e[f];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,d):"style"===t?function(e,t,n){const r=e.style,i=r.display,a=(0,o.isString)(n);if(n&&!a){if(t&&!(0,o.isString)(t))for(const e in t)null==n[e]&&M(r,e,"");for(const e in n)M(r,e,n[e])}else if(a){if(t!==n){const e=r[I];e&&(n+=";"+e),r.cssText=n}}else t&&e.removeAttribute("style");C in e&&(r.display=i)}(e,n,i):(0,o.isOn)(t)?(0,o.isModelListener)(t)||function(e,t,n,i,a=null){const s=e[V]||(e[V]={}),u=s[t];if(i&&u)u.value=i;else{const[n,l]=function(e){let t;if(z.test(e)){let n;for(t={};n=e.match(z);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):(0,o.hyphenate)(e.slice(2)),t]}(t);if(i){const u=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,r.$d)(function(e,t){if((0,o.isArray)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=W||(H.then((()=>W=0)),W=Date.now()),n}(i,a);B(e,n,u,l)}else u&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,u,l),s[t]=void 0)}}(e,t,0,i,u):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&$(t)&&(0,o.isFunction)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!$(t)||!(0,o.isString)(n))&&t in e}(e,t,i,d))?function(e,t,n,r,i,a,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,i,a),void(e[t]=null==n?"":n);const u=e.tagName;if("value"===t&&"PROGRESS"!==u&&!u.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===u?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,o.includeBooleanAttr)(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,i,s,u,l,c):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(U,t.slice(6,t.length)):e.setAttributeNS(U,t,n);else{const r=(0,o.isSpecialBooleanAttr)(t);null==n||r&&!(0,o.includeBooleanAttr)(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,i,d))}},u);let Oe,ke=!1;function Ce(){return Oe||(Oe=(0,r.Us)(xe))}function Ne(){return Oe=ke?Oe:(0,r.Eo)(xe),ke=!0,Oe}const Ae=(...e)=>{Ce().render(...e)},Ie=(...e)=>{Ne().hydrate(...e)},Re=(...e)=>{const t=Ce().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=De(e);if(!r)return;const i=t._component;(0,o.isFunction)(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,Le(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t},Pe=(...e)=>{const t=Ne().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=De(e);if(t)return n(t,!0,Le(t))},t};function Le(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function De(e){return(0,o.isString)(e)?document.querySelector(e):e}let Me=!1;const Fe=()=>{Me||(Me=!0,le.getSSRProps=({value:e})=>({value:e}),de.getSSRProps=({value:e},t)=>{if(t.props&&(0,o.looseEqual)(t.props.value,e))return{checked:!0}},ce.getSSRProps=({value:e},t)=>{if((0,o.isArray)(e)){if(t.props&&(0,o.looseIndexOf)(e,t.props.value)>-1)return{checked:!0}}else if((0,o.isSet)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ve.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=_e(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},N.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})}},2502:function(e,t,n){"use strict";function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(t),n.d(t,{EMPTY_ARR:function(){return i},EMPTY_OBJ:function(){return o},NO:function(){return s},NOOP:function(){return a},PatchFlagNames:function(){return X},PatchFlags:function(){return Y},ShapeFlags:function(){return G},SlotFlags:function(){return J},camelize:function(){return P},capitalize:function(){return M},def:function(){return B},escapeHtml:function(){return xe},escapeHtmlComment:function(){return ke},extend:function(){return c},genPropsAccessExp:function(){return q},generateCodeFrame:function(){return ee},getGlobalThis:function(){return H},hasChanged:function(){return j},hasOwn:function(){return p},hyphenate:function(){return D},includeBooleanAttr:function(){return ge},invokeArrayFns:function(){return U},isArray:function(){return h},isBooleanAttr:function(){return me},isBuiltInDirective:function(){return A},isDate:function(){return v},isFunction:function(){return y},isGloballyAllowed:function(){return K},isGloballyWhitelisted:function(){return Q},isHTMLTag:function(){return le},isIntegerKey:function(){return C},isKnownHtmlAttr:function(){return Ee},isKnownSvgAttr:function(){return we},isMap:function(){return m},isMathMLTag:function(){return fe},isModelListener:function(){return l},isObject:function(){return w},isOn:function(){return u},isPlainObject:function(){return k},isPromise:function(){return S},isRegExp:function(){return _},isRenderableAttrValue:function(){return Se},isReservedProp:function(){return N},isSSRSafeAttrName:function(){return ye},isSVGTag:function(){return ce},isSet:function(){return g},isSpecialBooleanAttr:function(){return he},isString:function(){return b},isSymbol:function(){return E},isVoidTag:function(){return de},looseEqual:function(){return Ce},looseIndexOf:function(){return Ne},looseToNumber:function(){return V},makeMap:function(){return r},normalizeClass:function(){return se},normalizeProps:function(){return ue},normalizeStyle:function(){return te},objectToString:function(){return T},parseStringStyle:function(){return ie},propsToAttrMap:function(){return be},remove:function(){return f},slotFlagsText:function(){return Z},stringifyStyle:function(){return ae},toDisplayString:function(){return Ae},toHandlerKey:function(){return F},toNumber:function(){return z},toRawType:function(){return O},toTypeString:function(){return x}}),n(4573);const o={},i=[],a=()=>{},s=()=>!1,u=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,f=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,m=e=>"[object Map]"===x(e),g=e=>"[object Set]"===x(e),v=e=>"[object Date]"===x(e),_=e=>"[object RegExp]"===x(e),y=e=>"function"==typeof e,b=e=>"string"==typeof e,E=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,S=e=>(w(e)||y(e))&&y(e.then)&&y(e.catch),T=Object.prototype.toString,x=e=>T.call(e),O=e=>x(e).slice(8,-1),k=e=>"[object Object]"===x(e),C=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,N=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),I=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},R=/-(\w)/g,P=I((e=>e.replace(R,((e,t)=>t?t.toUpperCase():"")))),L=/\B([A-Z])/g,D=I((e=>e.replace(L,"-$1").toLowerCase())),M=I((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=I((e=>e?`on${M(e)}`:"")),j=(e,t)=>!Object.is(e,t),U=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},B=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t},z=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let W;const H=()=>W||(W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),$=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function q(e){return $.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}const Y={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},X={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},G={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},Z={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},K=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Q=K;function ee(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter(((e,t)=>t%2==1));r=r.filter(((e,t)=>t%2==0));let i=0;const a=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+(o[e]&&o[e].length||0),i>=t){for(let s=e-2;s<=e+2||n>i;s++){if(s<0||s>=r.length)continue;const u=s+1;a.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[s]}`);const l=r[s].length,c=o[s]&&o[s].length||0;if(s===e){const e=t-(i-(l+c)),r=Math.max(1,n>i?l-e:n-t);a.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(s>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);a.push(" | "+"^".repeat(e))}i+=l+c}}break}return a.join("\n")}function te(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=b(r)?ie(r):te(r);if(o)for(const e in o)t[e]=o[e]}return t}if(b(e)||w(e))return e}const ne=/;(?![^(]*\))/g,re=/:([^]+)/,oe=/\/\*[^]*?\*\//g;function ie(e){const t={};return e.replace(oe,"").split(ne).forEach((e=>{if(e){const n=e.split(re);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ae(e){let t="";if(!e||b(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:D(n);(b(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t}function se(e){let t="";if(b(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const r=se(e[n]);r&&(t+=r+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ue(e){if(!e)return null;let{class:t,style:n}=e;return t&&!b(t)&&(e.class=se(t)),n&&(e.style=te(n)),e}const le=r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),ce=r("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),fe=r("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),de=r("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),pe="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",he=r(pe),me=r(pe+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ge(e){return!!e||""===e}const ve=/[>/="'\u0009\u000a\u000c\u0020]/,_e={};function ye(e){if(_e.hasOwnProperty(e))return _e[e];const t=ve.test(e);return t&&console.error(`unsafe attribute name: ${e}`),_e[e]=!t}const be={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Ee=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),we=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Se(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const Te=/["'&<>]/;function xe(e){const t=""+e,n=Te.exec(t);if(!n)return t;let r,o,i="",a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==o&&(i+=t.slice(a,o)),a=o+1,i+=r}return a!==o?i+t.slice(a,o):i}const Oe=/^-?>|<!--|-->|--!>|<!-$/g;function ke(e){return e.replace(Oe,"")}function Ce(e,t){if(e===t)return!0;let n=v(e),r=v(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=E(e),r=E(t),n||r)return e===t;if(n=h(e),r=h(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ce(e[r],t[r]);return n}(e,t);if(n=w(e),r=w(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!Ce(e[n],t[n]))return!1}}return String(e)===String(t)}function Ne(e,t){return e.findIndex((e=>Ce(e,t)))}const Ae=e=>b(e)?e:null==e?"":h(e)||w(e)&&(e.toString===T||!y(e.toString))?JSON.stringify(e,Ie,2):String(e),Ie=(e,t)=>t&&t.__v_isRef?Ie(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[Re(t,r)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Re(e)))}:E(t)?Re(t):!w(t)||h(t)||k(t)?t:String(t),Re=(e,t="")=>{var n;return E(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},9404:function(e,t,n){"use strict";n.d(t,{Hf3:function(){return i},W1M:function(){return p},XHJ:function(){return m},_8t:function(){return l},b0D:function(){return g},dY8:function(){return c},g8U:function(){return u},kQJ:function(){return d},plf:function(){return a},tSX:function(){return h},v4q:function(){return s},veu:function(){return o},zPP:function(){return f}});var r=n(6229),o={name:"ArrowDownIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-arrow-down"},Object.assign({},o)),[(0,r.Wm)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,r.Wm)("polyline",{points:"19 12 12 19 5 12"})])}}},i={name:"ArrowUpIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-arrow-up"},Object.assign({},o)),[(0,r.Wm)("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),(0,r.Wm)("polyline",{points:"5 12 12 5 19 12"})])}}},a={name:"BookmarkIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-bookmark"},Object.assign({},o)),[(0,r.Wm)("path",{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"})])}}},s={name:"ChevronDownIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-down"},Object.assign({},o)),[(0,r.Wm)("polyline",{points:"6 9 12 15 18 9"})])}}},u={name:"ChevronUpIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-up"},Object.assign({},o)),[(0,r.Wm)("polyline",{points:"18 15 12 9 6 15"})])}}},l={name:"DownloadIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-download"},Object.assign({},o)),[(0,r.Wm)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,r.Wm)("polyline",{points:"7 10 12 15 17 10"}),(0,r.Wm)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})])}}},c={name:"EditIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-edit"},Object.assign({},o)),[(0,r.Wm)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,r.Wm)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})])}}},f={name:"FileTextIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-file-text"},Object.assign({},o)),[(0,r.Wm)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,r.Wm)("polyline",{points:"14 2 14 8 20 8"}),(0,r.Wm)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,r.Wm)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,r.Wm)("polyline",{points:"10 9 9 9 8 9"})])}}},d={name:"RotateCcwIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-rotate-ccw"},Object.assign({},o)),[(0,r.Wm)("polyline",{points:"1 4 1 10 7 10"}),(0,r.Wm)("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})])}}},p={name:"SearchIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-search"},Object.assign({},o)),[(0,r.Wm)("circle",{cx:"11",cy:"11",r:"8"}),(0,r.Wm)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})])}}},h={name:"SkipBackIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-skip-back"},Object.assign({},o)),[(0,r.Wm)("polygon",{points:"19 20 9 12 19 4 19 20"}),(0,r.Wm)("line",{x1:"5",y1:"19",x2:"5",y2:"5"})])}}},m={name:"TrashIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-trash"},Object.assign({},o)),[(0,r.Wm)("polyline",{points:"3 6 5 6 21 6"}),(0,r.Wm)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})])}}},g={name:"XIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.Wm)("svg",(0,r.dG)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x"},Object.assign({},o)),[(0,r.Wm)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.Wm)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})])}}}},4559:function(e,t,n){e.exports=n(9335)},1786:function(e,t,n){"use strict";n(2241);var r=n(8266),o=n(5608),i=n(1758),a=n(9568),s=n(3943),u=n(8201),l=n(1745),c=n(4765),f=n(2477),d=n(4132),p=n(4392);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,g=e.headers,v=e.responseType;function _(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+E)}var w=s(e.baseURL,e.url);function S(){if(y){var r="getAllResponseHeaders"in y?u(y.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};o((function(e){t(e),_()}),(function(e){n(e),_()}),i),y=null}}if(y.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(S)},y.onabort=function(){y&&(n(new f("Request aborted",f.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,y)),y=null},r.isStandardBrowserEnv()){var T=(e.withCredentials||l(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;T&&(g[e.xsrfHeaderName]=T)}"setRequestHeader"in y&&r.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),v&&"json"!==v&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(n(!e||e&&e.type?new d:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var x=p(w);x&&-1===["http","https","file"].indexOf(x)?n(new f("Unsupported protocol "+x+":",f.ERR_BAD_REQUEST,e)):y.send(m)}))}},9335:function(e,t,n){"use strict";var r=n(8266),o=n(4345),i=n(7929),a=n(650),s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(3101));s.Axios=i,s.CanceledError=n(4132),s.CancelToken=n(7510),s.isCancel=n(8825),s.VERSION=n(992).version,s.toFormData=n(2011),s.AxiosError=n(2477),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(4346),s.isAxiosError=n(3276),e.exports=s,e.exports.default=s},7510:function(e,t,n){"use strict";n(4573);var r=n(4132);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},4132:function(e,t,n){"use strict";var r=n(2477);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(8266).inherits(o,r,{__CANCEL__:!0}),e.exports=o},8825:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},7929:function(e,t,n){"use strict";n(4573);var r=n(8266),o=n(9568),i=n(5758),a=n(6029),s=n(650),u=n(3943),l=n(123),c=l.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},2477:function(e,t,n){"use strict";var r=n(8266);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,a={};["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"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,a,s,u){var l=Object.create(i);return r.toFlatObject(e,l,(function(e){return e!==Error.prototype})),o.call(l,e.message,t,n,a,s),l.name=e.name,u&&Object.assign(l,u),l},e.exports=o},5758:function(e,t,n){"use strict";n(4573);var r=n(8266);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},3943:function(e,t,n){"use strict";var r=n(406),o=n(5027);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},6029:function(e,t,n){"use strict";var r=n(8266),o=n(2661),i=n(8825),a=n(3101),s=n(4132);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},650:function(e,t,n){"use strict";var r=n(8266);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function u(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,o=t(e);r.isUndefined(o)&&t!==u||(n[e]=o)})),n}},5608:function(e,t,n){"use strict";var r=n(2477);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},2661:function(e,t,n){"use strict";var r=n(8266),o=n(3101);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},3101:function(e,t,n){"use strict";var r=n(8266),o=n(1490),i=n(2477),a=n(4765),s=n(2011),u={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(1786)),c),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,u&&new u)}return i||"application/json"===a?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(4689)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(u)})),e.exports=f},4765:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},992:function(e){e.exports={version:"0.27.2"}},4345:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},9568:function(e,t,n){"use strict";n(4573);var r=n(8266);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},5027:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},1758:function(e,t,n){"use strict";n(4573);var r=n(8266);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},406:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},3276:function(e,t,n){"use strict";var r=n(8266);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},1745:function(e,t,n){"use strict";var r=n(8266);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},1490:function(e,t,n){"use strict";var r=n(8266);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},4689:function(e){e.exports=null},8201:function(e,t,n){"use strict";var r=n(8266),o=["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"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},4392:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},4346:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2011:function(e,t,n){"use strict";n(4573);var r=n(8266);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,a){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+a);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var s,u=a?a+"."+i:i;if(n&&!a&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(s=r.toArray(n)))return void s.forEach((function(e){!r.isUndefined(e)&&t.append(u,o(e))}));e(n,u)}})),n.pop()}else t.append(a,o(i))}(e),t}},123:function(e,t,n){"use strict";var r=n(992).version,o=n(2477),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],s=t[a];if(s){var u=e[a],l=void 0===u||s(u,a,e);if(!0!==l)throw new o("option "+a+" must be "+l,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},8266:function(e,t,n){"use strict";var r,o=n(4345),i=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function l(e){return void 0===e}var c=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),m=s("Blob"),g=s("FileList");function v(e){return"[object Function]"===i.call(e)}var _=s("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,E=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:u,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:l,isDate:p,isFile:h,isBlob:m,isFunction:v,isStream:function(e){return f(e)&&v(e.pipe)},isURLSearchParams:_,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:y,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)y(arguments[r],n);return t},extend:function(e,t,n){return y(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,a={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=r[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:E,isFileList:g}},8257:function(e,t,n){var r=n(9212),o=n(5637),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},9882:function(e,t,n){var r=n(9212),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},4761:function(e,t,n){var r=n(2447),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},2569:function(e,t,n){var r=n(794),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},5766:function(e,t,n){var r=n(2977),o=n(6782),i=n(1825),a=function(e){return function(t,n,a){var s,u=r(t),l=i(u),c=o(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},8173:function(e,t,n){"use strict";var r=n(8494),o=n(4521),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},6917:function(e,t,n){var r=n(7386);e.exports=r([].slice)},9624:function(e,t,n){var r=n(7386),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},3058:function(e,t,n){var r=n(8191),o=n(9212),i=n(9624),a=n(3649)("toStringTag"),s=Object,u="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:u?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},3478:function(e,t,n){var r=n(2870),o=n(929),i=n(6683),a=n(4615);e.exports=function(e,t,n){for(var s=o(t),u=a.f,l=i.f,c=0;c<s.length;c++){var f=s[c];r(e,f)||n&&r(n,f)||u(e,f,l(t,f))}}},57:function(e,t,n){var r=n(8494),o=n(4615),i=n(4677);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},4677:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3746:function(e,t,n){var r=n(9212),o=n(4615),i=n(9594),a=n(2296);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&i(n,l,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},2296:function(e,t,n){var r=n(7583),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},8494:function(e,t,n){var r=n(6544);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2952:function(e){var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},6668:function(e,t,n){var r=n(7583),o=n(794),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},6768:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},5331:function(e){e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},7020:function(e,t,n){var r=n(6918);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5354:function(e,t,n){var r=n(9624),o=n(7583);e.exports="process"==r(o.process)},6918:function(e,t,n){var r=n(5897);e.exports=r("navigator","userAgent")||""},4061:function(e,t,n){var r,o,i=n(7583),a=n(6918),s=i.process,u=i.Deno,l=s&&s.versions||u&&u.version,c=l&&l.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},5690:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},668:function(e,t,n){var r=n(7386),o=Error,i=r("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,s,"");return e}},7263:function(e,t,n){var r=n(7583),o=n(6683).f,i=n(57),a=n(3746),s=n(2296),u=n(3478),l=n(4451);e.exports=function(e,t){var n,c,f,d,p,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(p=o(n,c))&&p.value:n[c],!l(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,c,d,e)}}},6544:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},1611:function(e,t,n){var r=n(8987),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},2938:function(e,t,n){var r=n(7386),o=n(8257),i=n(8987),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},8987:function(e,t,n){var r=n(6544);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8262:function(e,t,n){var r=n(8987),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},4340:function(e,t,n){var r=n(8494),o=n(2870),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},7386:function(e,t,n){var r=n(8987),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5897:function(e,t,n){var r=n(7583),o=n(9212),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},911:function(e,t,n){var r=n(8257),o=n(8505);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},7583:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2870:function(e,t,n){var r=n(7386),o=n(1324),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},4639:function(e){e.exports={}},482:function(e,t,n){var r=n(5897);e.exports=r("document","documentElement")},275:function(e,t,n){var r=n(8494),o=n(6544),i=n(6668);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5044:function(e,t,n){var r=n(7386),o=n(6544),i=n(9624),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},434:function(e,t,n){var r=n(9212),o=n(794),i=n(7496);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},9734:function(e,t,n){var r=n(7386),o=n(9212),i=n(1314),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2743:function(e,t,n){var r,o,i,a=n(5307),s=n(7583),u=n(7386),l=n(794),c=n(57),f=n(2870),d=n(1314),p=n(9137),h=n(4639),m="Object already initialized",g=s.TypeError,v=s.WeakMap;if(a||d.state){var _=d.state||(d.state=new v),y=u(_.get),b=u(_.has),E=u(_.set);r=function(e,t){if(b(_,e))throw g(m);return t.facade=e,E(_,e,t),t},o=function(e){return y(_,e)||{}},i=function(e){return b(_,e)}}else{var w=p("state");h[w]=!0,r=function(e,t){if(f(e,w))throw g(m);return t.facade=e,c(e,w,t),t},o=function(e){return f(e,w)?e[w]:{}},i=function(e){return f(e,w)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},4521:function(e,t,n){var r=n(9624);e.exports=Array.isArray||function(e){return"Array"==r(e)}},9212:function(e,t,n){var r=n(2952),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4451:function(e,t,n){var r=n(6544),o=n(9212),i=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n==c||n!=l&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=a.data={},l=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},8505:function(e){e.exports=function(e){return null==e}},794:function(e,t,n){var r=n(9212),o=n(2952),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},6268:function(e){e.exports=!1},5871:function(e,t,n){var r=n(5897),o=n(9212),i=n(2447),a=n(7786),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},1825:function(e,t,n){var r=n(97);e.exports=function(e){return r(e.length)}},9594:function(e,t,n){var r=n(6544),o=n(9212),i=n(2870),a=n(8494),s=n(4340).CONFIGURABLE,u=n(9734),l=n(2743),c=l.enforce,f=l.get,d=Object.defineProperty,p=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?d(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&i(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&f(this).source||u(this)}),"toString")},9021:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},2764:function(e,t,n){var r=n(8320);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},4615:function(e,t,n){var r=n(8494),o=n(275),i=n(7670),a=n(2569),s=n(8734),u=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return l(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},6683:function(e,t,n){var r=n(8494),o=n(8262),i=n(112),a=n(4677),s=n(2977),u=n(8734),l=n(2870),c=n(275),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),c)try{return f(e,t)}catch(e){}if(l(e,t))return a(!o(i.f,e,t),e[t])}},9275:function(e,t,n){var r=n(8356),o=n(5690).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},4012:function(e,t){t.f=Object.getOwnPropertySymbols},2447:function(e,t,n){var r=n(7386);e.exports=r({}.isPrototypeOf)},8356:function(e,t,n){var r=n(7386),o=n(2870),i=n(2977),a=n(5766).indexOf,s=n(4639),u=r([].push);e.exports=function(e,t){var n,r=i(e),l=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&u(c,n);for(;t.length>l;)o(r,n=t[l++])&&(~a(c,n)||u(c,n));return c}},112:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7496:function(e,t,n){var r=n(7386),o=n(2569),i=n(9882);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},6252:function(e,t,n){var r=n(8262),o=n(9212),i=n(794),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},929:function(e,t,n){var r=n(5897),o=n(7386),i=n(9275),a=n(4012),s=n(2569),u=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?u(t,n(e)):t}},3955:function(e,t,n){var r=n(8505),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},9137:function(e,t,n){var r=n(7836),o=n(8284),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},1314:function(e,t,n){var r=n(7583),o=n(2296),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},7836:function(e,t,n){var r=n(6268),o=n(1314);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE",source:"https://github.com/zloirock/core-js"})},4193:function(e,t,n){var r=n(4061),o=n(6544);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8117:function(e,t,n){var r,o,i,a,s=n(7583),u=n(1611),l=n(2938),c=n(9212),f=n(2870),d=n(6544),p=n(482),h=n(6917),m=n(6668),g=n(7520),v=n(7020),_=n(5354),y=s.setImmediate,b=s.clearImmediate,E=s.process,w=s.Dispatch,S=s.Function,T=s.MessageChannel,x=s.String,O=0,k={};try{r=s.location}catch(e){}var C=function(e){if(f(k,e)){var t=k[e];delete k[e],t()}},N=function(e){return function(){C(e)}},A=function(e){C(e.data)},I=function(e){s.postMessage(x(e),r.protocol+"//"+r.host)};y&&b||(y=function(e){g(arguments.length,1);var t=c(e)?e:S(e),n=h(arguments,1);return k[++O]=function(){u(t,void 0,n)},o(O),O},b=function(e){delete k[e]},_?o=function(e){E.nextTick(N(e))}:w&&w.now?o=function(e){w.now(N(e))}:T&&!v?(a=(i=new T).port2,i.port1.onmessage=A,o=l(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(I)?(o=I,s.addEventListener("message",A,!1)):o="onreadystatechange"in m("script")?function(e){p.appendChild(m("script")).onreadystatechange=function(){p.removeChild(this),C(e)}}:function(e){setTimeout(N(e),0)}),e.exports={set:y,clear:b}},6782:function(e,t,n){var r=n(7486),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},2977:function(e,t,n){var r=n(5044),o=n(3955);e.exports=function(e){return r(o(e))}},7486:function(e,t,n){var r=n(9021);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},97:function(e,t,n){var r=n(7486),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},1324:function(e,t,n){var r=n(3955),o=Object;e.exports=function(e){return o(r(e))}},2670:function(e,t,n){var r=n(8262),o=n(794),i=n(5871),a=n(911),s=n(6252),u=n(3649),l=TypeError,c=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,u=a(e,c);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!o(n)||i(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},8734:function(e,t,n){var r=n(2670),o=n(5871);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},8191:function(e,t,n){var r={};r[n(3649)("toStringTag")]="z",e.exports="[object z]"===String(r)},8320:function(e,t,n){var r=n(3058),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},5637:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8284:function(e,t,n){var r=n(7386),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},7786:function(e,t,n){var r=n(4193);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7670:function(e,t,n){var r=n(8494),o=n(6544);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7520:function(e){var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},5307:function(e,t,n){var r=n(7583),o=n(9212),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},3649:function(e,t,n){var r=n(7583),o=n(7836),i=n(2870),a=n(8284),s=n(4193),u=n(7786),l=o("wks"),c=r.Symbol,f=c&&c.for,d=u?c:c&&c.withoutSetter||a;e.exports=function(e){if(!i(l,e)||!s&&"string"!=typeof l[e]){var t="Symbol."+e;s&&i(c,e)?l[e]=c[e]:l[e]=u&&f?f(t):d(t)}return l[e]}},4573:function(e,t,n){"use strict";var r=n(7263),o=n(1324),i=n(1825),a=n(8173),s=n(6768),u=n(6544)((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||l},{push:function(e){var t=o(this),n=i(t),r=arguments.length;s(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return a(t,n),n}})},4229:function(e,t,n){var r=n(7263),o=n(7583),i=n(8117).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},2241:function(e,t,n){"use strict";var r=n(7263),o=n(7583),i=n(5897),a=n(4677),s=n(4615).f,u=n(2870),l=n(4761),c=n(434),f=n(2764),d=n(5331),p=n(668),h=n(8494),m=n(6268),g="DOMException",v=i("Error"),_=i(g),y=function(){l(this,b);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new _(t,n),o=v(t);return o.name=g,s(r,"stack",a(1,p(o.stack,1))),c(r,this,y),r},b=y.prototype=_.prototype,E="stack"in v(g),w="stack"in new _(1,2),S=_&&h&&Object.getOwnPropertyDescriptor(o,g),T=!(!S||S.writable&&S.configurable),x=E&&!T&&!w;r({global:!0,constructor:!0,forced:m||x},{DOMException:x?y:_});var O=i(g),k=O.prototype;if(k.constructor!==O)for(var C in m||s(k,"constructor",a(1,O)),d)if(u(d,C)){var N=d[C],A=N.s;u(O,A)||s(O,A,a(6,N.c))}},8192:function(e,t,n){n(4229),n(5373)},5373:function(e,t,n){var r=n(7263),o=n(7583),i=n(8117).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},7705:function(e,t,n){"use strict";n(4573),e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},6738:function(e){"use strict";e.exports=function(e){return e[1]}},7808:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var i={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var u={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?f(u,(function(e){return e.test(s)})):c(u,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(l):l,a=n.valueCallback?n.valueCallback(a):a;var d=t.slice(s.length);return{value:a,rest:d}}}function c(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function f(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var d,p={ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],o=e.match(d.parsePattern);if(!o)return null;var i=d.valueCallback?d.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},h={code:"en-US",formatDistance:function(e,t,n){var o,i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:p,options:{weekStartsOn:0,firstWeekContainsDate:1}}},4072:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r={};function o(){return r}},5010:function(e,t){"use strict";var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},o={p:r,P:function(e,t){var o,i=e.match(/(P+)(p+)?/)||[],a=i[1],s=i[2];if(!s)return n(e,t);switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}};t.Z=o},7500:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},1047:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(4265),o=n(7906),i=n(4369),a=n(8755);function s(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=(0,o.Z)(n);return r}var u=6048e5;function l(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e),n=(0,o.Z)(t).getTime()-s(t).getTime();return Math.round(n/u)+1}},4369:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(4265),o=n(8755),i=n(7906);function a(e){(0,o.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,i.Z)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var l=(0,i.Z)(u);return t.getTime()>=s.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},4710:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(4265),o=n(7760),i=n(4590),a=n(8755),s=n(506),u=n(4072);function l(e,t){var n,r,l,c,f,d,p,h;(0,a.Z)(1,arguments);var m=(0,u.j)(),g=(0,s.Z)(null!==(n=null!==(r=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==r?r:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,i.Z)(e,t),_=new Date(0);_.setUTCFullYear(v,0,g),_.setUTCHours(0,0,0,0);var y=(0,o.Z)(_,t);return y}var c=6048e5;function f(e,t){(0,a.Z)(1,arguments);var n=(0,r.Z)(e),i=(0,o.Z)(n,t).getTime()-l(n,t).getTime();return Math.round(i/c)+1}},4590:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(4265),o=n(8755),i=n(7760),a=n(506),s=n(4072);function u(e,t){var n,u,l,c,f,d,p,h;(0,o.Z)(1,arguments);var m=(0,r.Z)(e),g=m.getUTCFullYear(),v=(0,s.j)(),_=(0,a.Z)(null!==(n=null!==(u=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:v.firstWeekContainsDate)&&void 0!==u?u:null===(p=v.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(g+1,0,_),y.setUTCHours(0,0,0,0);var b=(0,i.Z)(y,t),E=new Date(0);E.setUTCFullYear(g,0,_),E.setUTCHours(0,0,0,0);var w=(0,i.Z)(E,t);return m.getTime()>=b.getTime()?g+1:m.getTime()>=w.getTime()?g:g-1}},845:function(e,t,n){"use strict";n.d(t,{Do:function(){return a},Iu:function(){return i},qp:function(){return s}});var r=["D","DD"],o=["YY","YYYY"];function i(e){return-1!==r.indexOf(e)}function a(e){return-1!==o.indexOf(e)}function s(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},8755:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},7906:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(4265),o=n(8755);function i(e){(0,o.Z)(1,arguments);var t=1,n=(0,r.Z)(e),i=n.getUTCDay(),a=(i<t?7:0)+i-t;return n.setUTCDate(n.getUTCDate()-a),n.setUTCHours(0,0,0,0),n}},7760:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(4265),o=n(8755),i=n(506),a=n(4072);function s(e,t){var n,s,u,l,c,f,d,p;(0,o.Z)(1,arguments);var h=(0,a.j)(),m=(0,i.Z)(null!==(n=null!==(s=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==u?u:h.weekStartsOn)&&void 0!==s?s:null===(d=h.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.Z)(e),v=g.getUTCDay(),_=(v<m?7:0)+v-m;return g.setUTCDate(g.getUTCDate()-_),g.setUTCHours(0,0,0,0),g}},506:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return r}})},3429:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(506),o=n(4265),i=n(8755);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(e).getTime(),a=(0,r.Z)(t);return new Date(n+a)}},6896:function(e,t,n){"use strict";n.d(t,{qk:function(){return i},vh:function(){return o},yJ:function(){return r}}),Math.pow(10,8);var r=6e4,o=36e5,i=1e3},56:function(e,t,n){"use strict";n.d(t,{Z:function(){return F}});var r=n(6800),o=n(9071),i=n(4265),a=n(8755),s=864e5,u=n(1047),l=n(4369),c=n(4710),f=n(4590);function d(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var p=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return d("yy"===t?r%100:r,t.length)},h=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):d(n+1,2)},m=function(e,t){return d(e.getUTCDate(),t.length)},g=function(e,t){return d(e.getUTCHours()%12||12,t.length)},v=function(e,t){return d(e.getUTCHours(),t.length)},_=function(e,t){return d(e.getUTCMinutes(),t.length)},y=function(e,t){return d(e.getUTCSeconds(),t.length)},b=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return d(Math.floor(r*Math.pow(10,n-3)),t.length)},E={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return p(e,t)},Y:function(e,t,n,r){var o=(0,f.Z)(e,r),i=o>0?o:1-o;return"YY"===t?d(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):d(i,t.length)},R:function(e,t){return d((0,l.Z)(e),t.length)},u:function(e,t){return d(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return d(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return d(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return d(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,c.Z)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):d(o,t.length)},I:function(e,t,n){var r=(0,u.Z)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):d(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m(e,t)},D:function(e,t,n){var r=function(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/s)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):d(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return d(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return d(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return d(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return g(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):v(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):d(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):_(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):y(e,t)},S:function(e,t){return b(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return S(o);case"XXXX":case"XX":return T(o);default:return T(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return S(o);case"xxxx":case"xx":return T(o);default:return T(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(o,":");default:return"GMT"+T(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(o,":");default:return"GMT"+T(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return d(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return d((r._originalDate||e).getTime(),t.length)}};function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+d(i,2)}function S(e,t){return e%60==0?(e>0?"-":"+")+d(Math.abs(e)/60,2):T(e,t)}function T(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+d(Math.floor(o/60),2)+n+d(o%60,2)}var x=E,O=n(5010),k=n(7500),C=n(845),N=n(506),A=n(4072),I=n(7808),R=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,L=/^'([^]*?)'?$/,D=/''/g,M=/[a-zA-Z]/;function F(e,t,n){var s,u,l,c,f,d,p,h,m,g,v,_,y,b,E,w,S,T;(0,a.Z)(2,arguments);var L=String(t),D=(0,A.j)(),F=null!==(s=null!==(u=null==n?void 0:n.locale)&&void 0!==u?u:D.locale)&&void 0!==s?s:I.Z,U=(0,N.Z)(null!==(l=null!==(c=null!==(f=null!==(d=null==n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:null==n||null===(p=n.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==f?f:D.firstWeekContainsDate)&&void 0!==c?c:null===(m=D.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==l?l:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var B=(0,N.Z)(null!==(v=null!==(_=null!==(y=null!==(b=null==n?void 0:n.weekStartsOn)&&void 0!==b?b:null==n||null===(E=n.locale)||void 0===E||null===(w=E.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==y?y:D.weekStartsOn)&&void 0!==_?_:null===(S=D.locale)||void 0===S||null===(T=S.options)||void 0===T?void 0:T.weekStartsOn)&&void 0!==v?v:0);if(!(B>=0&&B<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var V=(0,i.Z)(e);if(!(0,r.Z)(V))throw new RangeError("Invalid time value");var z=(0,k.Z)(V),W=(0,o.Z)(V,z),H={firstWeekContainsDate:U,weekStartsOn:B,locale:F,_originalDate:V},$=L.match(P).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,O.Z[t])(e,F.formatLong):e})).join("").match(R).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return j(r);var i=x[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!(0,C.Do)(r)||(0,C.qp)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,C.Iu)(r)||(0,C.qp)(r,t,String(e)),i(W,r,F.localize,H);if(o.match(M))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return $}function j(e){var t=e.match(L);return t?t[1].replace(D,"'"):e}},6800:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1311),o=n(8755);function i(e){return(0,o.Z)(1,arguments),e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}var a=n(4265);function s(e){if((0,o.Z)(1,arguments),!i(e)&&"number"!=typeof e)return!1;var t=(0,a.Z)(e);return!isNaN(Number(t))}},5162:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6896),o=n(8755),i=n(506);function a(e,t){var n;(0,o.Z)(1,arguments);var r=(0,i.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,s=f(e);if(s.date){var u=d(s.date,r);a=p(u.restDateString,u.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var l,c=a.getTime(),h=0;if(s.time&&(h=m(s.time),isNaN(h)))return new Date(NaN);if(!s.timezone){var g=new Date(c+h),_=new Date(0);return _.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),_.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),_}return l=v(s.timezone),isNaN(l)?new Date(NaN):new Date(c+h+l)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=s.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function d(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}function p(e,t){if(null===t)return new Date(NaN);var n=e.match(u);if(!n)return new Date(NaN);var r=!!n[4],o=h(n[1]),i=h(n[2])-1,a=h(n[3]),s=h(n[4]),l=h(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,s,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(_[t]||(y(e)?29:28))}(t,i,a)&&function(e,t){return t>=1&&t<=(y(e)?366:365)}(t,o)?(c.setUTCFullYear(t,i,Math.max(o,a)),c):new Date(NaN)}function h(e){return e?parseInt(e):1}function m(e){var t=e.match(l);if(!t)return NaN;var n=g(t[1]),o=g(t[2]),i=g(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i)?n*r.vh+o*r.yJ+1e3*i:NaN}function g(e){return e&&parseFloat(e.replace(",","."))||0}function v(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(o*r.vh+i*r.yJ):NaN}var _=[31,null,31,30,31,30,31,31,30,31,30,31];function y(e){return e%400==0||e%4==0&&e%100!=0}},9071:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3429),o=n(8755),i=n(506);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(t);return(0,r.Z)(e,-n)}},4265:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1311),o=n(8755);function i(e){(0,o.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},1762:function(e,t,n){var r;void 0===(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="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,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=i.URL||i.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?o(u):r(u.href)?t(e,n,a):o(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),n);else if(r(e))t(e,n,i);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,u=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&u||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var f=i.URL||i.webkitURL,d=f.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});i.saveAs=s.saveAs=s,e.exports=s}.apply(t,[]))||(e.exports=r)},3974:function(e,t,n){var r;e=n.nmd(e),n(4573),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",u=32,l=128,c=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",_="[object Date]",y="[object Error]",b="[object Function]",E="[object GeneratorFunction]",w="[object Map]",S="[object Number]",T="[object Object]",x="[object Promise]",O="[object RegExp]",k="[object Set]",C="[object String]",N="[object Symbol]",A="[object WeakMap]",I="[object ArrayBuffer]",R="[object DataView]",P="[object Float32Array]",L="[object Float64Array]",D="[object Int8Array]",M="[object Int16Array]",F="[object Int32Array]",j="[object Uint8Array]",U="[object Uint8ClampedArray]",B="[object Uint16Array]",V="[object Uint32Array]",z=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Y=RegExp($.source),X=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xe="["+Te+"]",Oe="["+Ee+"]",ke="\\d+",Ce="["+we+"]",Ne="[^\\ud800-\\udfff"+Te+ke+"\\u2700-\\u27bf"+we+Se+"]",Ae="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Se+"]",De="(?:"+Ce+"|"+Ne+")",Me="(?:"+Le+"|"+Ne+")",Fe="(?:['’](?:d|ll|m|re|s|t|ve))?",je="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+Oe+"|"+Ae+")?",Be="[\\ufe0e\\ufe0f]?",Ve=Be+Ue+"(?:\\u200d(?:"+[Ie,Re,Pe].join("|")+")"+Be+Ue+")*",ze="(?:"+["[\\u2700-\\u27bf]",Re,Pe].join("|")+")"+Ve,We="(?:"+[Ie+Oe+"?",Oe,Re,Pe,"[\\ud800-\\udfff]"].join("|")+")",He=RegExp("['’]","g"),$e=RegExp(Oe,"g"),qe=RegExp(Ae+"(?="+Ae+")|"+We+Ve,"g"),Ye=RegExp([Le+"?"+Ce+"+"+Fe+"(?="+[xe,Le,"$"].join("|")+")",Me+"+"+je+"(?="+[xe,Le+De,"$"].join("|")+")",Le+"?"+De+"+"+Fe,Le+"+"+je,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ke,ze].join("|"),"g"),Xe=RegExp("[\\u200d\\ud800-\\udfff"+Ee+"\\ufe0e\\ufe0f]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Ke={};Ke[P]=Ke[L]=Ke[D]=Ke[M]=Ke[F]=Ke[j]=Ke[U]=Ke[B]=Ke[V]=!0,Ke[m]=Ke[g]=Ke[I]=Ke[v]=Ke[R]=Ke[_]=Ke[y]=Ke[b]=Ke[w]=Ke[S]=Ke[T]=Ke[O]=Ke[k]=Ke[C]=Ke[A]=!1;var Qe={};Qe[m]=Qe[g]=Qe[I]=Qe[R]=Qe[v]=Qe[_]=Qe[P]=Qe[L]=Qe[D]=Qe[M]=Qe[F]=Qe[w]=Qe[S]=Qe[T]=Qe[O]=Qe[k]=Qe[C]=Qe[N]=Qe[j]=Qe[U]=Qe[B]=Qe[V]=!0,Qe[y]=Qe[b]=Qe[A]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,st=at&&e&&!e.nodeType&&e,ut=st&&st.exports===at,lt=ut&&rt.process,ct=function(){try{return st&&st.require&&st.require("util").types||lt&&lt.binding&&lt.binding("util")}catch(e){}}(),ft=ct&&ct.isArrayBuffer,dt=ct&&ct.isDate,pt=ct&&ct.isMap,ht=ct&&ct.isRegExp,mt=ct&&ct.isSet,gt=ct&&ct.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function _t(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function wt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function St(e,t){return!(null==e||!e.length)&&Pt(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function kt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ct(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var At=Ft("length");function It(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Rt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Pt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Rt(e,Dt,n)}function Lt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Dt(e){return e!=e}function Mt(e,t){var n=null==e?0:e.length;return n?Bt(e,t)/n:d}function Ft(e){return function(t){return null==t?o:t[e]}}function jt(e){return function(t){return null==e?o:e[t]}}function Ut(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Bt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Vt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function zt(e){return e?e.slice(0,sn(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Ht(e,t){return xt(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function qt(e,t){for(var n=-1,r=e.length;++n<r&&Pt(t,e[n],0)>-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Pt(t,e[n],0)>-1;);return n}function Xt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gt=jt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Jt=jt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Zt(e){return"\\"+et[e]}function Kt(e){return Xe.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Kt(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):At(e)}function an(e){return Kt(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function sn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var un=jt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ln=function e(t){var n,r=(t=null==t?it:ln.defaults(it.Object(),t,ln.pick(it,Je))).Array,oe=t.Date,Ee=t.Error,we=t.Function,Se=t.Math,Te=t.Object,xe=t.RegExp,Oe=t.String,ke=t.TypeError,Ce=r.prototype,Ne=we.prototype,Ae=Te.prototype,Ie=t["__core-js_shared__"],Re=Ne.toString,Pe=Ae.hasOwnProperty,Le=0,De=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=Ae.toString,Fe=Re.call(Te),je=it._,Ue=xe("^"+Re.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ut?t.Buffer:o,Ve=t.Symbol,ze=t.Uint8Array,We=Be?Be.allocUnsafe:o,qe=en(Te.getPrototypeOf,Te),Xe=Te.create,et=Ae.propertyIsEnumerable,rt=Ce.splice,ot=Ve?Ve.isConcatSpreadable:o,at=Ve?Ve.iterator:o,st=Ve?Ve.toStringTag:o,lt=function(){try{var e=ci(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,At=oe&&oe.now!==it.Date.now&&oe.now,jt=t.setTimeout!==it.setTimeout&&t.setTimeout,cn=Se.ceil,fn=Se.floor,dn=Te.getOwnPropertySymbols,pn=Be?Be.isBuffer:o,hn=t.isFinite,mn=Ce.join,gn=en(Te.keys,Te),vn=Se.max,_n=Se.min,yn=oe.now,bn=t.parseInt,En=Se.random,wn=Ce.reverse,Sn=ci(t,"DataView"),Tn=ci(t,"Map"),xn=ci(t,"Promise"),On=ci(t,"Set"),kn=ci(t,"WeakMap"),Cn=ci(Te,"create"),Nn=kn&&new kn,An={},In=Ui(Sn),Rn=Ui(Tn),Pn=Ui(xn),Ln=Ui(On),Dn=Ui(kn),Mn=Ve?Ve.prototype:o,Fn=Mn?Mn.valueOf:o,jn=Mn?Mn.toString:o;function Un(e){if(ns(e)&&!$a(e)&&!(e instanceof Wn)){if(e instanceof zn)return e;if(Pe.call(e,"__wrapped__"))return Bi(e)}return new zn(e)}var Bn=function(){function e(){}return function(t){if(!ts(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Vn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new $n(e);this.size=t.size}function Gn(e,t){var n=$a(e),r=!n&&Ha(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&cs(e),a=n||r||o||i,s=a?Vt(e.length,Oe):[],u=s.length;for(var l in e)!t&&!Pe.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||vi(l,u))||s.push(l);return s}function Jn(e){var t=e.length;return t?e[qr(0,t-1)]:o}function Zn(e,t){return Li(Co(e),ar(t,0,e.length))}function Kn(e){return Li(Co(e))}function Qn(e,t,n){(n!==o&&!Va(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Pe.call(e,t)&&Va(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Va(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&No(t,Rs(t),e)}function or(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:ks(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,a){var s,u=1&t,l=2&t,c=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var f=$a(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Co(e,s)}else{var d=pi(e),p=d==b||d==E;if(Ga(e))return wo(e,u);if(d==T||d==m||p&&!i){if(s=l||p?{}:mi(e),!u)return l?function(e,t){return No(e,di(e),t)}(e,function(e,t){return e&&No(t,Ps(t),e)}(s,e)):function(e,t){return No(e,fi(e),t)}(e,rr(s,e))}else{if(!Qe[d])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case I:return So(e);case v:case _:return new o(+e);case R:return function(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case P:case L:case D:case M:case F:case j:case U:case B:case V:return To(e,n);case w:return new o;case S:case C:return new o(e);case O:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new o;case N:return r=e,Fn?Te(Fn.call(r)):{}}}(e,d,u)}}a||(a=new Xn);var h=a.get(e);if(h)return h;a.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,sr(r,t,n,o,e,a))}));var g=f?o:(c?l?ri:ni:l?Ps:Rs)(e);return yt(g||e,(function(r,o){g&&(r=e[o=r]),er(s,o,sr(r,t,n,o,e,a))})),s}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new ke(i);return Ai((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=St,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=xt(t,Wt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=$t,a=!1,t=new Yn(t));e:for(;++o<s;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=l;d--;)if(t[d]===f)continue e;u.push(c)}else i(t,f,r)||u.push(c)}return u}Un.templateSettings={escape:G,evaluate:J,interpolate:Z,variable:"",imports:{_:Un}},Un.prototype=Vn.prototype,Un.prototype.constructor=Un,zn.prototype=Bn(Vn.prototype),zn.prototype.constructor=zn,Wn.prototype=Bn(Vn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Cn){var n=t[e];return n===a?o:n}return Pe.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==o:Pe.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cn&&t===o?a:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},$n.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},$n.prototype.has=function(e){return tr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(Tn||$n),string:new Hn}},qn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ui(this,e).get(e)},qn.prototype.has=function(e){return ui(this,e).has(e)},qn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new $n,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ro(yr),dr=Ro(br,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function hr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!ls(s):n(s,u)))var u=s,l=a}return l}function mr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function gr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=gi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?gr(s,t-1,n,r,o):Ot(o,s):r||(o[o.length]=s)}return o}var vr=Po(),_r=Po(!0);function yr(e,t){return e&&vr(e,t,Rs)}function br(e,t){return e&&_r(e,t,Rs)}function Er(e,t){return wt(t,(function(t){return Ka(e[t])}))}function wr(e,t){for(var n=0,r=(t=_o(t,e)).length;null!=e&&n<r;)e=e[ji(t[n++])];return n&&n==r?e:o}function Sr(e,t,n){var r=t(e);return $a(e)?r:Ot(r,n(e))}function Tr(e){return null==e?e===o?"[object Undefined]":"[object Null]":st&&st in Te(e)?function(e){var t=Pe.call(e,st),n=e[st];try{e[st]=o;var r=!0}catch(e){}var i=Me.call(e);return r&&(t?e[st]=n:delete e[st]),i}(e):function(e){return Me.call(e)}(e)}function xr(e,t){return e>t}function Or(e,t){return null!=e&&Pe.call(e,t)}function kr(e,t){return null!=e&&t in Te(e)}function Cr(e,t,n){for(var i=n?Tt:St,a=e[0].length,s=e.length,u=s,l=r(s),c=1/0,f=[];u--;){var d=e[u];u&&t&&(d=xt(d,Wt(t))),c=_n(d.length,c),l[u]=!n&&(t||a>=120&&d.length>=120)?new Yn(u&&d):o}d=e[0];var p=-1,h=l[0];e:for(;++p<a&&f.length<c;){var m=d[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?$t(h,g):i(f,g,n))){for(u=s;--u;){var v=l[u];if(!(v?$t(v,g):i(e[u],g,n)))continue e}h&&h.push(g),f.push(m)}}return f}function Nr(e,t,n){var r=null==(e=Oi(e,t=_o(t,e)))?e:e[ji(Zi(t))];return null==r?o:vt(r,e,n)}function Ar(e){return ns(e)&&Tr(e)==m}function Ir(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=$a(e),u=$a(t),l=s?g:pi(e),c=u?g:pi(t),f=(l=l==m?T:l)==T,d=(c=c==m?T:c)==T,p=l==c;if(p&&Ga(e)){if(!Ga(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new Xn),s||cs(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case v:case _:case S:return Va(+e,+t);case y:return e.name==t.name&&e.message==t.message;case O:case C:return e==t+"";case w:var s=Qt;case k:var u=1&r;if(s||(s=nn),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=ei(s(e),s(t),r,o,i,a);return a.delete(e),c;case N:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,n,r,i,a);if(!(1&n)){var h=f&&Pe.call(e,"__wrapped__"),b=d&&Pe.call(t,"__wrapped__");if(h||b){var E=h?e.value():e,x=b?t.value():t;return a||(a=new Xn),i(E,x,n,r,a)}}return!!p&&(a||(a=new Xn),function(e,t,n,r,i,a){var s=1&n,u=ni(e),l=u.length;if(l!=ni(t).length&&!s)return!1;for(var c=l;c--;){var f=u[c];if(!(s?f in t:Pe.call(t,f)))return!1}var d=a.get(e),p=a.get(t);if(d&&p)return d==t&&p==e;var h=!0;a.set(e,t),a.set(t,e);for(var m=s;++c<l;){var g=e[f=u[c]],v=t[f];if(r)var _=s?r(v,g,f,t,e,a):r(g,v,f,e,t,a);if(!(_===o?g===v||i(g,v,n,r,a):_)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,i,a))}(e,t,n,r,Ir,i))}function Rr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Te(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var l=(u=n[i])[0],c=e[l],f=u[1];if(s&&u[2]){if(c===o&&!(l in e))return!1}else{var d=new Xn;if(r)var p=r(c,f,l,e,t,d);if(!(p===o?Ir(f,c,3,r,d):p))return!1}}return!0}function Pr(e){return!(!ts(e)||(t=e,De&&De in t))&&(Ka(e)?Ue:me).test(Ui(e));var t}function Lr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?$a(e)?Ur(e[0],e[1]):jr(e):pu(e)}function Dr(e){if(!wi(e))return gn(e);var t=[];for(var n in Te(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e,t){return e<t}function Fr(e,t){var n=-1,o=Ya(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function jr(e){var t=li(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(n){return n===e||Rr(n,e,t)}}function Ur(e,t){return yi(e)&&Si(t)?Ti(ji(e),t):function(n){var r=ks(n,e);return r===o&&r===t?Cs(n,e):Ir(t,r,3)}}function Br(e,t,n,r,i){e!==t&&vr(t,(function(a,s){if(i||(i=new Xn),ts(a))!function(e,t,n,r,i,a,s){var u=Ci(e,n),l=Ci(t,n),c=s.get(l);if(c)Qn(e,n,c);else{var f=a?a(u,l,n+"",e,t,s):o,d=f===o;if(d){var p=$a(l),h=!p&&Ga(l),m=!p&&!h&&cs(l);f=l,p||h||m?$a(u)?f=u:Xa(u)?f=Co(u):h?(d=!1,f=wo(l,!0)):m?(d=!1,f=To(l,!0)):f=[]:is(l)||Ha(l)?(f=u,Ha(u)?f=_s(u):ts(u)&&!Ka(u)||(f=mi(l))):d=!1}d&&(s.set(l,f),i(f,l,r,a,s),s.delete(l)),Qn(e,n,f)}}(e,t,s,n,Br,r,i);else{var u=r?r(Ci(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Qn(e,s,u)}}),Ps)}function Vr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function zr(e,t,n){t=t.length?xt(t,(function(e){return $a(e)?function(t){return wr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;t=xt(t,Wt(si()));var o=Fr(e,(function(e,n,o){var i=xt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var u=xo(o[r],i[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Wr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=wr(e,a);n(s,a)&&Zr(i,_o(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Lt:Pt,i=-1,a=t.length,s=e;for(e===t&&(t=Co(t)),n&&(s=xt(e,Wt(n)));++i<a;)for(var u=0,l=t[i],c=n?n(l):l;(u=o(s,c,u,r))>-1;)s!==e&&rt.call(s,u,1),rt.call(e,u,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?rt.call(e,o,1):lo(e,o)}}return e}function qr(e,t){return e+fn(En()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ii(xi(e,t,ou),e+"")}function Gr(e){return Jn(Vs(e))}function Jr(e,t){var n=Vs(e);return Li(n,ar(t,0,n.length))}function Zr(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=_o(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var l=ji(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var f=u[l];(c=r?r(f,l,u):o)===o&&(c=ts(f)?f:vi(t[i+1])?[]:{})}er(u,l,c),u=u[l]}return e}var Kr=Nn?function(e,t){return Nn.set(e,t),e}:ou,Qr=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:ou;function eo(e){return Li(Vs(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ls(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ou,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,u=null===t,l=ls(t),c=t===o;i<a;){var f=fn((i+a)/2),d=n(e[f]),p=d!==o,h=null===d,m=d==d,g=ls(d);if(s)var v=r||m;else v=c?m&&(r||p):u?m&&p&&(r||!h):l?m&&p&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);v?i=f+1:a=f}return _n(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Va(s,u)){var u=s;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:ls(e)?d:+e}function so(e){if("string"==typeof e)return e;if($a(e))return xt(e,so)+"";if(ls(e))return jn?jn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=St,i=e.length,a=!0,s=[],u=s;if(n)a=!1,o=Tt;else if(i>=200){var l=t?null:Xo(e);if(l)return nn(l);a=!1,o=$t,u=new Yn}else u=t?[]:s;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),s.push(c)}else o(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function lo(e,t){return null==(e=Oi(e,t=_o(t,e)))||delete e[ji(Zi(t))]}function co(e,t,n,r){return Zr(e,t,n(wr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function po(e,t){var n=e;return n instanceof Wn&&(n=n.value()),kt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function ho(e,t,n){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],u=-1;++u<o;)u!=i&&(a[i]=cr(a[i]||s,e[u],t,n));return uo(gr(a,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function go(e){return Xa(e)?e:[]}function vo(e){return"function"==typeof e?e:ou}function _o(e,t){return $a(e)?e:yi(e,t)?[e]:Fi(ys(e))}var yo=Xr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var Eo=ct||function(e){return it.clearTimeout(e)};function wo(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function So(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function To(e,t){var n=t?So(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=ls(e),s=t!==o,u=null===t,l=t==t,c=ls(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!l)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,u=-1,l=t.length,c=vn(a-s,0),f=r(l+c),d=!o;++u<l;)f[u]=t[u];for(;++i<s;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[u++]=e[i++];return f}function ko(e,t,n,o){for(var i=-1,a=e.length,s=-1,u=n.length,l=-1,c=t.length,f=vn(a-u,0),d=r(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<u;)(p||i<a)&&(d[h+n[s]]=e[i++]);return d}function Co(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function No(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=r?r(n[u],e[u],u,n,e):o;l===o&&(l=e[u]),i?or(n,u,l):er(n,u,l)}return n}function Ao(e,t){return function(n,r){var o=$a(n)?_t:nr,i=t?t():{};return o(n,e,si(r,2),i)}}function Io(e){return Xr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&_i(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Te(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ro(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Te(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Po(e){return function(t,n,r){for(var o=-1,i=Te(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}function Lo(e){return function(t){var n=Kt(t=ys(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?bo(n,1).join(""):t.slice(1);return r[e]()+i}}function Do(e){return function(t){return kt(Ks(Hs(t).replace(He,"")),e,"")}}function Mo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function Fo(e){return function(t,n,r){var i=Te(t);if(!Ya(t)){var a=si(n,3);t=Rs(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function jo(e){return ti((function(t){var n=t.length,r=n,a=zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new ke(i);if(a&&!u&&"wrapper"==ii(s))var u=new zn([],!0)}for(r=u?r:n;++r<n;){var l=ii(s=t[r]),c="wrapper"==l?oi(s):o;u=c&&bi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ii(c[0])].apply(u,c[3]):1==s.length&&bi(s)?u[l]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&$a(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Uo(e,t,n,i,a,s,u,c,f,d){var p=t&l,h=1&t,m=2&t,g=24&t,v=512&t,_=m?o:Mo(e);return function o(){for(var l=arguments.length,y=r(l),b=l;b--;)y[b]=arguments[b];if(g)var E=ai(o),w=Xt(y,E);if(i&&(y=Oo(y,i,a,g)),s&&(y=ko(y,s,u,g)),l-=w,g&&l<d){var S=tn(y,E);return qo(e,t,Uo,o.placeholder,n,y,S,c,f,d-l)}var T=h?n:this,x=m?T[e]:e;return l=y.length,c?y=ki(y,c):v&&l>1&&y.reverse(),p&&f<l&&(y.length=f),this&&this!==it&&this instanceof o&&(x=_||Mo(x)),x.apply(T,y)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return yr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Vo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function zo(e){return ti((function(t){return t=xt(t,Wt(si())),Xr((function(n){var r=this;return e(t,(function(e){return vt(e,r,n)}))}))}))}function Wo(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,cn(e/on(t)));return Kt(t)?bo(an(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,i){return i&&"number"!=typeof i&&_i(t,n,i)&&(n=i=o),t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n,o){for(var i=-1,a=vn(cn((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:hs(i),e)}}function $o(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function qo(e,t,n,r,i,a,s,l,c,f){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var p=[e,t,i,d?a:o,d?s:o,d?o:a,d?o:s,l,c,f],h=n.apply(o,p);return bi(e)&&Ni(h,p),h.placeholder=r,Ri(h,e,t)}function Yo(e){var t=Se[e];return function(e,n){if(e=vs(e),(n=null==n?0:_n(ms(n),292))&&hn(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=On&&1/nn(new On([,-0]))[1]==c?function(e){return new On(e)}:lu;function Go(e){return function(t){var n=pi(t);return n==w?Qt(t):n==k?rn(t):function(e,t){return xt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,c,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new ke(i);var m=a?a.length:0;if(m||(t&=-97,a=c=o),d=d===o?d:vn(ms(d),0),p=p===o?p:ms(p),m-=c?c.length:0,64&t){var g=a,v=c;a=c=o}var _=h?o:oi(e),y=[e,t,n,a,c,g,v,f,d,p];if(_&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==l&&8==n||r==l&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?Oo(c,u,t[4]):u,e[4]=c?tn(e[3],s):t[4]}(u=t[5])&&(c=e[5],e[5]=c?ko(c,u,t[6]):u,e[6]=c?tn(e[5],s):t[6]),(u=t[7])&&(e[7]=u),r&l&&(e[8]=null==e[8]?t[8]:_n(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,_),e=y[0],t=y[1],n=y[2],a=y[3],c=y[4],!(p=y[9]=y[9]===o?h?0:e.length:vn(y[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var i=Mo(e);return function a(){for(var s=arguments.length,u=r(s),l=s,c=ai(a);l--;)u[l]=arguments[l];var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:tn(u,c);return(s-=f.length)<n?qo(e,t,Uo,a.placeholder,o,u,f,o,o,n-s):vt(this&&this!==it&&this instanceof a?i:e,this,u)}}(e,t,p):t!=u&&33!=t||c.length?Uo.apply(o,y):function(e,t,n,o){var i=1&t,a=Mo(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=o.length,f=r(c+u),d=this&&this!==it&&this instanceof t?a:e;++l<c;)f[l]=o[l];for(;u--;)f[l++]=arguments[++s];return vt(d,i?n:this,f)}}(e,t,n,a);else var b=function(e,t,n){var r=1&t,o=Mo(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ri((_?Kr:Ni)(b,y),e,t)}function Zo(e,t,n,r){return e===o||Va(e,Ae[n])&&!Pe.call(r,n)?t:e}function Ko(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Br(e,t,o,Ko,a),a.delete(t)),e}function Qo(e){return is(e)?o:e}function ei(e,t,n,r,i,a){var s=1&n,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++d<u;){var m=e[d],g=t[d];if(r)var v=s?r(g,m,d,t,e,a):r(m,g,d,e,t,a);if(v!==o){if(v)continue;p=!1;break}if(h){if(!Nt(t,(function(e,t){if(!$t(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ti(e){return Ii(xi(e,o,qi),e+"")}function ni(e){return Sr(e,Rs,fi)}function ri(e){return Sr(e,Ps,di)}var oi=Nn?function(e){return Nn.get(e)}:lu;function ii(e){for(var t=e.name+"",n=An[t],r=Pe.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Pe.call(Un,"placeholder")?Un:e).placeholder}function si(){var e=Un.iteratee||iu;return e=e===iu?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function li(e){for(var t=Rs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Si(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Pr(n)?n:o}var fi=dn?function(e){return null==e?[]:(e=Te(e),wt(dn(e),(function(t){return et.call(e,t)})))}:gu,di=dn?function(e){for(var t=[];e;)Ot(t,fi(e)),e=qe(e);return t}:gu,pi=Tr;function hi(e,t,n){for(var r=-1,o=(t=_o(t,e)).length,i=!1;++r<o;){var a=ji(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&vi(a,o)&&($a(e)||Ha(e))}function mi(e){return"function"!=typeof e.constructor||wi(e)?{}:Bn(qe(e))}function gi(e){return $a(e)||Ha(e)||!!(ot&&e&&e[ot])}function vi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function _i(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&vi(t,n.length):"string"==r&&t in n)&&Va(n[t],e)}function yi(e,t){if($a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||Q.test(e)||!K.test(e)||null!=t&&e in Te(t)}function bi(e){var t=ii(e),n=Un[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(Sn&&pi(new Sn(new ArrayBuffer(1)))!=R||Tn&&pi(new Tn)!=w||xn&&pi(xn.resolve())!=x||On&&pi(new On)!=k||kn&&pi(new kn)!=A)&&(pi=function(e){var t=Tr(e),n=t==T?e.constructor:o,r=n?Ui(n):"";if(r)switch(r){case In:return R;case Rn:return w;case Pn:return x;case Ln:return k;case Dn:return A}return t});var Ei=Ie?Ka:vu;function wi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Si(e){return e==e&&!ts(e)}function Ti(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Te(n))}}function xi(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=vn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(s),vt(e,this,u)}}function Oi(e,t){return t.length<2?e:wr(e,to(t,0,-1))}function ki(e,t){for(var n=e.length,r=_n(t.length,n),i=Co(e);r--;){var a=t[r];e[r]=vi(a,n)?i[a]:o}return e}function Ci(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ni=Pi(Kr),Ai=jt||function(e,t){return it.setTimeout(e,t)},Ii=Pi(Qr);function Ri(e,t,n){var r=t+"";return Ii(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return yt(h,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),n)))}function Pi(e){var t=0,n=0;return function(){var r=yn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=qr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Di,Mi,Fi=(Di=Da((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Mi.size&&Mi.clear(),e})),Mi=Di.cache,Di);function ji(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ui(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Wn)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=Co(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Vi=Xr((function(e,t){return Xa(e)?cr(e,gr(t,1,Xa,!0)):[]})),zi=Xr((function(e,t){var n=Zi(t);return Xa(n)&&(n=o),Xa(e)?cr(e,gr(t,1,Xa,!0),si(n,2)):[]})),Wi=Xr((function(e,t){var n=Zi(t);return Xa(n)&&(n=o),Xa(e)?cr(e,gr(t,1,Xa,!0),o,n):[]}));function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=vn(r+o,0)),Rt(e,si(t,3),o)}function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ms(n),i=n<0?vn(r+i,0):_n(i,r-1)),Rt(e,si(t,3),i,!0)}function qi(e){return null!=e&&e.length?gr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Xi=Xr((function(e){var t=xt(e,go);return t.length&&t[0]===e[0]?Cr(t):[]})),Gi=Xr((function(e){var t=Zi(e),n=xt(e,go);return t===Zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Cr(n,si(t,2)):[]})),Ji=Xr((function(e){var t=Zi(e),n=xt(e,go);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Cr(n,o,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ki=Xr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return $r(e,xt(t,(function(e){return vi(e,n)?+e:e})).sort(xo)),r}));function ta(e){return null==e?e:wn.call(e)}var na=Xr((function(e){return uo(gr(e,1,Xa,!0))})),ra=Xr((function(e){var t=Zi(e);return Xa(t)&&(t=o),uo(gr(e,1,Xa,!0),si(t,2))})),oa=Xr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,uo(gr(e,1,Xa,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=wt(e,(function(e){if(Xa(e))return t=vn(e.length,t),!0})),Vt(t,(function(t){return xt(e,Ft(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:xt(n,(function(e){return vt(t,o,e)}))}var sa=Xr((function(e,t){return Xa(e)?cr(e,t):[]})),ua=Xr((function(e){return ho(wt(e,Xa))})),la=Xr((function(e){var t=Zi(e);return Xa(t)&&(t=o),ho(wt(e,Xa),si(t,2))})),ca=Xr((function(e){var t=Zi(e);return t="function"==typeof t?t:o,ho(wt(e,Xa),o,t)})),fa=Xr(ia),da=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function pa(e){var t=Un(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:o}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ga=Ao((function(e,t,n){Pe.call(e,n)?++e[n]:or(e,n,1)})),va=Fo(Hi),_a=Fo($i);function ya(e,t){return($a(e)?yt:fr)(e,si(t,3))}function ba(e,t){return($a(e)?bt:dr)(e,si(t,3))}var Ea=Ao((function(e,t,n){Pe.call(e,n)?e[n].push(t):or(e,n,[t])})),wa=Xr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ya(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?vt(t,e,n):Nr(e,t,n)})),a})),Sa=Ao((function(e,t,n){or(e,n,t)}));function Ta(e,t){return($a(e)?xt:Fr)(e,si(t,3))}var xa=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Oa=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,gr(t,1),[])})),ka=At||function(){return it.Date.now()};function Ca(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,l,o,o,o,o,t)}function Na(e,t){var n;if("function"!=typeof t)throw new ke(i);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=Xr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Aa));r|=u}return Jo(e,r,t,n,o)})),Ia=Xr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(Ia));r|=u}return Jo(t,r,e,n,o)}));function Ra(e,t,n){var r,a,s,u,l,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new ke(i);function m(t){var n=r,i=a;return r=a=o,f=t,u=e.apply(i,n)}function g(e){return f=e,l=Ai(_,t),d?m(e):u}function v(e){var n=e-c;return c===o||n>=t||n<0||p&&e-f>=s}function _(){var e=ka();if(v(e))return y(e);l=Ai(_,function(e){var n=t-(e-c);return p?_n(n,s-(e-f)):n}(e))}function y(e){return l=o,h&&r?m(e):(r=a=o,u)}function b(){var e=ka(),n=v(e);if(r=arguments,a=this,c=e,n){if(l===o)return g(c);if(p)return Eo(l),l=Ai(_,t),m(c)}return l===o&&(l=Ai(_,t)),u}return t=vs(t)||0,ts(n)&&(d=!!n.leading,s=(p="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){l!==o&&Eo(l),f=0,r=c=a=l=o},b.flush=function(){return l===o?u:y(ka())},b}var Pa=Xr((function(e,t){return lr(e,1,t)})),La=Xr((function(e,t,n){return lr(e,vs(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||qn),n}function Ma(e){if("function"!=typeof e)throw new ke(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=qn;var Fa=yo((function(e,t){var n=(t=1==t.length&&$a(t[0])?xt(t[0],Wt(si())):xt(gr(t,1),Wt(si()))).length;return Xr((function(r){for(var o=-1,i=_n(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return vt(e,this,r)}))})),ja=Xr((function(e,t){var n=tn(t,ai(ja));return Jo(e,u,o,t,n)})),Ua=Xr((function(e,t){var n=tn(t,ai(Ua));return Jo(e,64,o,t,n)})),Ba=ti((function(e,t){return Jo(e,256,o,o,o,t)}));function Va(e,t){return e===t||e!=e&&t!=t}var za=$o(xr),Wa=$o((function(e,t){return e>=t})),Ha=Ar(function(){return arguments}())?Ar:function(e){return ns(e)&&Pe.call(e,"callee")&&!et.call(e,"callee")},$a=r.isArray,qa=ft?Wt(ft):function(e){return ns(e)&&Tr(e)==I};function Ya(e){return null!=e&&es(e.length)&&!Ka(e)}function Xa(e){return ns(e)&&Ya(e)}var Ga=pn||vu,Ja=dt?Wt(dt):function(e){return ns(e)&&Tr(e)==_};function Za(e){if(!ns(e))return!1;var t=Tr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Ka(e){if(!ts(e))return!1;var t=Tr(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=pt?Wt(pt):function(e){return ns(e)&&pi(e)==w};function os(e){return"number"==typeof e||ns(e)&&Tr(e)==S}function is(e){if(!ns(e)||Tr(e)!=T)return!1;var t=qe(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Fe}var as=ht?Wt(ht):function(e){return ns(e)&&Tr(e)==O},ss=mt?Wt(mt):function(e){return ns(e)&&pi(e)==k};function us(e){return"string"==typeof e||!$a(e)&&ns(e)&&Tr(e)==C}function ls(e){return"symbol"==typeof e||ns(e)&&Tr(e)==N}var cs=gt?Wt(gt):function(e){return ns(e)&&es(e.length)&&!!Ke[Tr(e)]},fs=$o(Mr),ds=$o((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ya(e))return us(e)?an(e):Co(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=pi(e);return(t==w?Qt:t==k?nn:Vs)(e)}function hs(e){return e?(e=vs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?ar(ms(e),0,p):0}function vs(e){if("number"==typeof e)return e;if(ls(e))return d;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zt(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):pe.test(e)?d:+e}function _s(e){return No(e,Ps(e))}function ys(e){return null==e?"":so(e)}var bs=Io((function(e,t){if(wi(t)||Ya(t))No(t,Rs(t),e);else for(var n in t)Pe.call(t,n)&&er(e,n,t[n])})),Es=Io((function(e,t){No(t,Ps(t),e)})),ws=Io((function(e,t,n,r){No(t,Ps(t),e,r)})),Ss=Io((function(e,t,n,r){No(t,Rs(t),e,r)})),Ts=ti(ir),xs=Xr((function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&_i(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),u=-1,l=s.length;++u<l;){var c=s[u],f=e[c];(f===o||Va(f,Ae[c])&&!Pe.call(e,c))&&(e[c]=a[c])}return e})),Os=Xr((function(e){return e.push(o,Ko),vt(Ds,o,e)}));function ks(e,t,n){var r=null==e?o:wr(e,t);return r===o?n:r}function Cs(e,t){return null!=e&&hi(e,t,kr)}var Ns=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),tu(ou)),As=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),si),Is=Xr(Nr);function Rs(e){return Ya(e)?Gn(e):Dr(e)}function Ps(e){return Ya(e)?Gn(e,!0):function(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=wi(e),n=[];for(var r in e)("constructor"!=r||!t&&Pe.call(e,r))&&n.push(r);return n}(e)}var Ls=Io((function(e,t,n){Br(e,t,n)})),Ds=Io((function(e,t,n,r){Br(e,t,n,r)})),Ms=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=xt(t,(function(t){return t=_o(t,e),r||(r=t.length>1),t})),No(e,ri(e),n),r&&(n=sr(n,7,Qo));for(var o=t.length;o--;)lo(n,t[o]);return n})),Fs=ti((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function js(e,t){if(null==e)return{};var n=xt(ri(e),(function(e){return[e]}));return t=si(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Go(Rs),Bs=Go(Ps);function Vs(e){return null==e?[]:Ht(e,Rs(e))}var zs=Do((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Zs(ys(e).toLowerCase())}function Hs(e){return(e=ys(e))&&e.replace(_e,Gt).replace($e,"")}var $s=Do((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Do((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Lo("toLowerCase"),Xs=Do((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gs=Do((function(e,t,n){return e+(n?" ":"")+Zs(t)})),Js=Do((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Lo("toUpperCase");function Ks(e,t,n){return e=ys(e),(t=n?o:t)===o?function(e){return Ge.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Qs=Xr((function(e,t){try{return vt(e,o,t)}catch(e){return Za(e)?e:new Ee(e)}})),eu=ti((function(e,t){return yt(t,(function(t){t=ji(t),or(e,t,Aa(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=jo(),ru=jo(!0);function ou(e){return e}function iu(e){return Lr("function"==typeof e?e:sr(e,1))}var au=Xr((function(e,t){return function(n){return Nr(n,e,t)}})),su=Xr((function(e,t){return function(n){return Nr(e,n,t)}}));function uu(e,t,n){var r=Rs(t),o=Er(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,Rs(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Ka(e);return yt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Co(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function lu(){}var cu=zo(xt),fu=zo(Et),du=zo(Nt);function pu(e){return yi(e)?Ft(ji(e)):function(e){return function(t){return wr(t,e)}}(e)}var hu=Ho(),mu=Ho(!0);function gu(){return[]}function vu(){return!1}var _u,yu=Vo((function(e,t){return e+t}),0),bu=Yo("ceil"),Eu=Vo((function(e,t){return e/t}),1),wu=Yo("floor"),Su=Vo((function(e,t){return e*t}),1),Tu=Yo("round"),xu=Vo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new ke(i);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Ca,Un.assign=bs,Un.assignIn=Es,Un.assignInWith=ws,Un.assignWith=Ss,Un.at=Ts,Un.before=Na,Un.bind=Aa,Un.bindAll=eu,Un.bindKey=Ia,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]},Un.chain=pa,Un.chunk=function(e,t,n){t=(n?_i(e,t,n):t===o)?1:vn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(cn(i/t));a<i;)u[s++]=to(e,a,a+=t);return u},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ot($a(n)?Co(n):[n],gr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?xt(e,(function(e){if("function"!=typeof e[1])throw new ke(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(vt(o[0],this,n))return vt(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Rs(e);return function(n){return ur(n,e,t)}}(sr(e,1))},Un.constant=tu,Un.countBy=ga,Un.create=function(e,t){var n=Bn(e);return null==t?n:rr(n,t)},Un.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=Jo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=Ra,Un.defaults=xs,Un.defaultsDeep=Os,Un.defer=Pa,Un.delay=La,Un.difference=Vi,Un.differenceBy=zi,Un.differenceWith=Wi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:ms(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:ms(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&_i(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ms(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ms(r))<0&&(r+=i),r=n>r?0:gs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return($a(e)?wt:mr)(e,si(t,3))},Un.flatMap=function(e,t){return gr(Ta(e,t),1)},Un.flatMapDeep=function(e,t){return gr(Ta(e,t),c)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:ms(n),gr(Ta(e,t),n)},Un.flatten=qi,Un.flattenDeep=function(e){return null!=e&&e.length?gr(e,c):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===o?1:ms(t)):[]},Un.flip=function(e){return Jo(e,512)},Un.flow=nu,Un.flowRight=ru,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:Er(e,Rs(e))},Un.functionsIn=function(e){return null==e?[]:Er(e,Ps(e))},Un.groupBy=Ea,Un.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Un.intersection=Xi,Un.intersectionBy=Gi,Un.intersectionWith=Ji,Un.invert=Ns,Un.invertBy=As,Un.invokeMap=wa,Un.iteratee=iu,Un.keyBy=Sa,Un.keys=Rs,Un.keysIn=Ps,Un.map=Ta,Un.mapKeys=function(e,t){var n={};return t=si(t,3),yr(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=si(t,3),yr(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Un.matches=function(e){return jr(sr(e,1))},Un.matchesProperty=function(e,t){return Ur(e,sr(t,1))},Un.memoize=Da,Un.merge=Ls,Un.mergeWith=Ds,Un.method=au,Un.methodOf=su,Un.mixin=uu,Un.negate=Ma,Un.nthArg=function(e){return e=ms(e),Xr((function(t){return Vr(t,e)}))},Un.omit=Ms,Un.omitBy=function(e,t){return js(e,Ma(si(t)))},Un.once=function(e){return Na(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:($a(t)||(t=null==t?[]:[t]),$a(n=r?o:n)||(n=null==n?[]:[n]),zr(e,t,n))},Un.over=cu,Un.overArgs=Fa,Un.overEvery=fu,Un.overSome=du,Un.partial=ja,Un.partialRight=Ua,Un.partition=xa,Un.pick=Fs,Un.pickBy=js,Un.property=pu,Un.propertyOf=function(e){return function(t){return null==e?o:wr(e,t)}},Un.pull=Ki,Un.pullAll=Qi,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,si(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Un.pullAt=ea,Un.range=hu,Un.rangeRight=mu,Un.rearg=Ba,Un.reject=function(e,t){return($a(e)?wt:mr)(e,Ma(si(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return $r(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new ke(i);return Xr(e,t=t===o?t:ms(t))},Un.reverse=ta,Un.sampleSize=function(e,t,n){return t=(n?_i(e,t,n):t===o)?1:ms(t),($a(e)?Zn:Jr)(e,t)},Un.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Un.shuffle=function(e){return($a(e)?Kn:eo)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&_i(e,t,n)?(t=0,n=r):(t=null==t?0:ms(t),n=n===o?r:ms(n)),to(e,t,n)):[]},Un.sortBy=Oa,Un.sortedUniq=function(e){return e&&e.length?io(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?io(e,si(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&_i(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=so(t))&&Kt(e)?bo(an(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new ke(i);return t=null==t?0:vn(ms(t),0),Xr((function(n){var r=n[t],o=bo(n,0,t);return r&&Ot(o,r),vt(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:ms(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:ms(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?fo(e,si(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?fo(e,si(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ke(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ra(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ha,Un.toArray=ps,Un.toPairs=Us,Un.toPairsIn=Bs,Un.toPath=function(e){return $a(e)?xt(e,ji):ls(e)?[e]:Co(Fi(ys(e)))},Un.toPlainObject=_s,Un.transform=function(e,t,n){var r=$a(e),o=r||Ga(e)||cs(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Ka(i)?Bn(qe(e)):{}}return(o?yt:yr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return Ca(e,1)},Un.union=na,Un.unionBy=ra,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?uo(e):[]},Un.uniqBy=function(e,t){return e&&e.length?uo(e,si(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Un.unset=function(e,t){return null==e||lo(e,t)},Un.unzip=ia,Un.unzipWith=aa,Un.update=function(e,t,n){return null==e?e:co(e,t,vo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,vo(n),r)},Un.values=Vs,Un.valuesIn=function(e){return null==e?[]:Ht(e,Ps(e))},Un.without=sa,Un.words=Ks,Un.wrap=function(e,t){return ja(vo(t),e)},Un.xor=ua,Un.xorBy=la,Un.xorWith=ca,Un.zip=fa,Un.zipObject=function(e,t){return mo(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return mo(e||[],t||[],Zr)},Un.zipWith=da,Un.entries=Us,Un.entriesIn=Bs,Un.extend=Es,Un.extendWith=ws,uu(Un,Un),Un.add=yu,Un.attempt=Qs,Un.camelCase=zs,Un.capitalize=Ws,Un.ceil=bu,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),ar(vs(e),t,n)},Un.clone=function(e){return sr(e,4)},Un.cloneDeep=function(e){return sr(e,5)},Un.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||ur(e,t,Rs(t))},Un.deburr=Hs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=Eu,Un.endsWith=function(e,t,n){e=ys(e),t=so(t);var r=e.length,i=n=n===o?r:ar(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Va,Un.escape=function(e){return(e=ys(e))&&X.test(e)?e.replace(q,Jt):e},Un.escapeRegExp=function(e){return(e=ys(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=$a(e)?Et:pr;return n&&_i(e,t,n)&&(t=o),r(e,si(t,3))},Un.find=va,Un.findIndex=Hi,Un.findKey=function(e,t){return It(e,si(t,3),yr)},Un.findLast=_a,Un.findLastIndex=$i,Un.findLastKey=function(e,t){return It(e,si(t,3),br)},Un.floor=wu,Un.forEach=ya,Un.forEachRight=ba,Un.forIn=function(e,t){return null==e?e:vr(e,si(t,3),Ps)},Un.forInRight=function(e,t){return null==e?e:_r(e,si(t,3),Ps)},Un.forOwn=function(e,t){return e&&yr(e,si(t,3))},Un.forOwnRight=function(e,t){return e&&br(e,si(t,3))},Un.get=ks,Un.gt=za,Un.gte=Wa,Un.has=function(e,t){return null!=e&&hi(e,t,Or)},Un.hasIn=Cs,Un.head=Yi,Un.identity=ou,Un.includes=function(e,t,n,r){e=Ya(e)?e:Vs(e),n=n&&!r?ms(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Pt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ms(n);return o<0&&(o=vn(r+o,0)),Pt(e,t,o)},Un.inRange=function(e,t,n){return t=hs(t),n===o?(n=t,t=0):n=hs(n),function(e,t,n){return e>=_n(t,n)&&e<vn(t,n)}(e=vs(e),t,n)},Un.invoke=Is,Un.isArguments=Ha,Un.isArray=$a,Un.isArrayBuffer=qa,Un.isArrayLike=Ya,Un.isArrayLikeObject=Xa,Un.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Tr(e)==v},Un.isBuffer=Ga,Un.isDate=Ja,Un.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&($a(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||cs(e)||Ha(e)))return!e.length;var t=pi(e);if(t==w||t==k)return!e.size;if(wi(e))return!Dr(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Ir(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Ir(e,t,o,n):!!r},Un.isError=Za,Un.isFinite=function(e){return"number"==typeof e&&hn(e)},Un.isFunction=Ka,Un.isInteger=Qa,Un.isLength=es,Un.isMap=rs,Un.isMatch=function(e,t){return e===t||Rr(e,t,li(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Rr(e,t,li(t),n)},Un.isNaN=function(e){return os(e)&&e!=+e},Un.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=os,Un.isObject=ts,Un.isObjectLike=ns,Un.isPlainObject=is,Un.isRegExp=as,Un.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=f},Un.isSet=ss,Un.isString=us,Un.isSymbol=ls,Un.isTypedArray=cs,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return ns(e)&&pi(e)==A},Un.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Tr(e)},Un.join=function(e,t){return null==e?"":mn.call(e,t)},Un.kebabCase=$s,Un.last=Zi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ms(n))<0?vn(r+i,0):_n(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Rt(e,Dt,i,!0)},Un.lowerCase=qs,Un.lowerFirst=Ys,Un.lt=fs,Un.lte=ds,Un.max=function(e){return e&&e.length?hr(e,ou,xr):o},Un.maxBy=function(e,t){return e&&e.length?hr(e,si(t,2),xr):o},Un.mean=function(e){return Mt(e,ou)},Un.meanBy=function(e,t){return Mt(e,si(t,2))},Un.min=function(e){return e&&e.length?hr(e,ou,Mr):o},Un.minBy=function(e,t){return e&&e.length?hr(e,si(t,2),Mr):o},Un.stubArray=gu,Un.stubFalse=vu,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Su,Un.nth=function(e,t){return e&&e.length?Vr(e,ms(t)):o},Un.noConflict=function(){return it._===this&&(it._=je),this},Un.noop=lu,Un.now=ka,Un.pad=function(e,t,n){e=ys(e);var r=(t=ms(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Wo(fn(o),n)+e+Wo(cn(o),n)},Un.padEnd=function(e,t,n){e=ys(e);var r=(t=ms(t))?on(e):0;return t&&r<t?e+Wo(t-r,n):e},Un.padStart=function(e,t,n){e=ys(e);var r=(t=ms(t))?on(e):0;return t&&r<t?Wo(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(ys(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_i(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=hs(e),t===o?(t=e,e=0):t=hs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=En();return _n(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return qr(e,t)},Un.reduce=function(e,t,n){var r=$a(e)?kt:Ut,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Un.reduceRight=function(e,t,n){var r=$a(e)?Ct:Ut,o=arguments.length<3;return r(e,si(t,4),n,o,dr)},Un.repeat=function(e,t,n){return t=(n?_i(e,t,n):t===o)?1:ms(t),Yr(ys(e),t)},Un.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[ji(t[r])];a===o&&(r=i,a=n),e=Ka(a)?a.call(e):a}return e},Un.round=Tu,Un.runInContext=e,Un.sample=function(e){return($a(e)?Jn:Gr)(e)},Un.size=function(e){if(null==e)return 0;if(Ya(e))return us(e)?on(e):e.length;var t=pi(e);return t==w||t==k?e.size:Dr(e).length},Un.snakeCase=Xs,Un.some=function(e,t,n){var r=$a(e)?Nt:no;return n&&_i(e,t,n)&&(t=o),r(e,si(t,3))},Un.sortedIndex=function(e,t){return ro(e,t)},Un.sortedIndexBy=function(e,t,n){return oo(e,t,si(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Va(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ro(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return oo(e,t,si(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Va(e[n],t))return n}return-1},Un.startCase=Gs,Un.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:ar(ms(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Un.subtract=xu,Un.sum=function(e){return e&&e.length?Bt(e,ou):0},Un.sumBy=function(e,t){return e&&e.length?Bt(e,si(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&_i(e,t,n)&&(t=o),e=ys(e),t=ws({},t,r,Zo);var i,a,s=ws({},t.imports,r.imports,Zo),u=Rs(s),l=Ht(s,u),c=0,f=t.interpolate||ye,d="__p += '",p=xe((t.escape||ye).source+"|"+f.source+"|"+(f===Z?fe:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),h="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";e.replace(p,(function(t,n,r,o,s,u){return r||(r=o),d+=e.slice(c,u).replace(be,Zt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var m=Pe.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(z,""):d).replace(W,"$1").replace(H,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Qs((function(){return we(u,h+"return "+d).apply(o,l)}));if(g.source=d,Za(g))throw g;return g},Un.times=function(e,t){if((e=ms(e))<1||e>f)return[];var n=p,r=_n(e,p);t=si(t),e-=p;for(var o=Vt(r,t);++n<e;)t(n);return o},Un.toFinite=hs,Un.toInteger=ms,Un.toLength=gs,Un.toLower=function(e){return ys(e).toLowerCase()},Un.toNumber=vs,Un.toSafeInteger=function(e){return e?ar(ms(e),-9007199254740991,f):0===e?e:0},Un.toString=ys,Un.toUpper=function(e){return ys(e).toUpperCase()},Un.trim=function(e,t,n){if((e=ys(e))&&(n||t===o))return zt(e);if(!e||!(t=so(t)))return e;var r=an(e),i=an(t);return bo(r,qt(r,i),Yt(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.slice(0,sn(e)+1);if(!e||!(t=so(t)))return e;var r=an(e);return bo(r,0,Yt(r,an(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=an(e);return bo(r,qt(r,an(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?ms(t.length):n,r="omission"in t?so(t.omission):r}var a=(e=ys(e)).length;if(Kt(e)){var s=an(e);a=s.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var l=s?bo(s,0,u).join(""):e.slice(0,u);if(i===o)return l+r;if(s&&(u+=l.length-u),as(i)){if(e.slice(u).search(i)){var c,f=l;for(i.global||(i=xe(i.source,ys(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;l=l.slice(0,d===o?u:d)}}else if(e.indexOf(so(i),u)!=u){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},Un.unescape=function(e){return(e=ys(e))&&Y.test(e)?e.replace($,un):e},Un.uniqueId=function(e){var t=++Le;return ys(e)+t},Un.upperCase=Js,Un.upperFirst=Zs,Un.each=ya,Un.eachRight=ba,Un.first=Yi,uu(Un,(_u={},yr(Un,(function(e,t){Pe.call(Un.prototype,t)||(_u[t]=e)})),_u),{chain:!1}),Un.VERSION="4.17.21",yt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),yt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:vn(ms(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=_n(n,r.__takeCount__):r.__views__.push({size:_n(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),yt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),yt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),yt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ou)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Nr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ma(si(e)))},Wn.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(p)},yr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Wn,l=s[0],c=u||$a(t),f=function(e){var t=i.apply(Un,Ot([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=u&&!p;if(!a&&c){t=m?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:ha,args:[f],thisArg:o}),new zn(g,d)}return h&&m?e.apply(this,s):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),yt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply($a(o)?o:[],e)}return this[n]((function(n){return t.apply($a(n)?n:[],e)}))}})),yr(Wn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Pe.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Uo(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Co(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Co(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Co(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$a(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=_n(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,p=_n(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return po(e,this.__actions__);var h=[];e:for(;u--&&d<p;){for(var m=-1,g=e[l+=t];++m<f;){var v=c[m],_=v.iteratee,y=v.type,b=_(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}h[d++]=g}return h},Un.prototype.at=ma,Un.prototype.chain=function(){return pa(this)},Un.prototype.commit=function(){return new zn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:o}),new zn(t,this.__chain__)}return this.thru(ta)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return po(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,at&&(Un.prototype[at]=function(){return this}),Un}();it._=ln,(r=function(){return ln}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},9371:function(e,t,n){"use strict";n.d(t,{o:function(){return Et},QT:function(){return wt}}),n(4573);const r="undefined"!=typeof window,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=e=>o?Symbol(e):e,a=e=>"number"==typeof e&&isFinite(e),s=e=>"[object RegExp]"===w(e),u=e=>S(e)&&0===Object.keys(e).length;function l(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const c=Object.assign;let f;const d=()=>f||(f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});function p(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const h=Object.prototype.hasOwnProperty;function m(e,t){return h.call(e,t)}const g=Array.isArray,v=e=>"function"==typeof e,_=e=>"string"==typeof e,y=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,E=Object.prototype.toString,w=e=>E.call(e),S=e=>"[object Object]"===w(e),T=14;function x(e,t,n={}){const{domain:r,messages:o,args:i}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=r,a}function O(e){throw e}function k(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const C=" ",N="\n",A=String.fromCharCode(8232),I=String.fromCharCode(8233);function R(e){const t=e;let n=0,r=1,o=1,i=0;const a=e=>"\r"===t[e]&&t[e+1]===N,s=e=>t[e]===I,u=e=>t[e]===A,l=e=>a(e)||s(e)||u(e)?N:t[e];function c(){return i=0,(a(e=n)||(e=>t[e]===N)(e)||s(e)||u(e))&&(r++,o=0),a(n)&&n++,n++,o++,t[n];var e}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>i,charAt:l,currentChar:()=>l(n),currentPeek:()=>l(n+i),next:c,peek:function(){return a(n+i)&&i++,i++,t[n+i]},reset:function(){n=0,r=1,o=1,i=0},resetPeek:function(e=0){i=e},skipToPeek:function(){const e=n+i;for(;e!==n;)c();i=0}}}const P=void 0;function L(e,t={}){const n=!1!==t.location,r=R(e),o=()=>r.index(),i=()=>({line:r.line(),column:r.column(),offset:r.index()}),a=i(),s=o(),u={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},l=()=>u,{onError:c}=t;function f(e,t,n,...r){const o=l();if(t.column+=n,t.offset+=n,c){const n=x(e,k(o.startLoc,t),{domain:"tokenizer",args:r});c(n)}}function d(e,t,r){e.endLoc=i(),e.currentType=t;const o={type:t};return n&&(o.loc=k(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const p=e=>d(e,14);function h(e,t){return e.currentChar()===t?(e.next(),t):(f(1,i(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===C||e.currentPeek()===N;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function _(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,r="",o=!1)=>{const i=e.currentPeek();return"{"===i?"%"!==r&&t:"@"!==i&&i?"%"===i?(e.peek(),n(t,"%",!0)):"|"===i?!("%"!==r&&!o&&(r===C||r===N)):i===C?(e.peek(),n(!0,C,o)):i!==N||(e.peek(),n(!0,N,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function b(e,t){const n=e.currentChar();return n===P?P:t(n)?(e.next(),n):null}function E(e){return b(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function w(e){return b(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function S(e){return b(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=w(e);)n+=t;return n}function O(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!y(e))break;t+=n,e.next()}else if(n===C||n===N)if(y(e))t+=n,e.next();else{if(_(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function A(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return f(4,i(),0,t),""}}function I(e,t,n){h(e,t);let r="";for(let o=0;o<n;o++){const n=S(e);if(!n){f(5,i(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function L(e){g(e);const t=h(e,"|");return g(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&f(9,i(),0),e.next(),n=d(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&f(8,i(),0),e.next(),n=d(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&f(7,i(),0),n=M(e,t)||p(t),t.braceNest=0,n;default:let r=!0,o=!0,a=!0;if(_(e))return t.braceNest>0&&f(7,i(),0),n=d(t,1,L(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return f(7,i(),0),t.braceNest=0,F(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,5,function(e){g(e);let t="",n="";for(;t=E(e);)n+=t;return e.currentChar()===P&&f(7,i(),0),n}(e)),g(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${T(e)}`):t+=T(e),e.currentChar()===P&&f(7,i(),0),t}(e)),g(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=d(t,7,function(e){g(e),h(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==N;for(;t=b(e,r);)n+="\\"===t?A(e):t;const o=e.currentChar();return o===N||o===P?(f(3,i(),0),o===N&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}(e)),g(e),n;if(!r&&!o&&!a)return n=d(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==C&&e!==N;for(;t=b(e,r);)n+=t;return n}(e)),f(2,i(),0,n.value),g(e),n}return n}function M(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==N&&o!==C||f(10,i(),0),o){case"@":return e.next(),r=d(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),d(t,9,".");case":":return g(e),e.next(),d(t,10,":");default:return _(e)?(r=d(t,1,L(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),M(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),d(t,12,function(e){let t="",n="";for(;t=E(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===C||!t)&&(t===N?(e.peek(),r()):v(t))},o=r();return e.resetPeek(),o}(e,t)?(g(e),"{"===o?D(e,t)||r:d(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===C?r:o===N?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&f(10,i(),0),t.braceNest=0,t.inLinked=!1,F(e,t))}}function F(e,t){let n={type:14};if(t.braceNest>0)return D(e,t)||p(t);if(t.inLinked)return M(e,t)||p(t);switch(e.currentChar()){case"{":return D(e,t)||p(t);case"}":return f(6,i(),0),e.next(),d(t,3,"}");case"@":return M(e,t)||p(t);default:if(_(e))return n=d(t,1,L(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=m(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?d(t,0,O(e)):d(t,4,function(e){g(e);const t=e.currentChar();return"%"!==t&&f(1,i(),0,t),e.next(),"%"}(e));if(y(e))return d(t,0,O(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=u;return u.lastType=e,u.lastOffset=t,u.lastStartLoc=n,u.lastEndLoc=a,u.offset=o(),u.startLoc=i(),r.currentChar()===P?d(u,14):F(r,u)},currentOffset:o,currentPosition:i,context:l}}const D=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function M(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function F(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,t,r,o,...i){const a=e.currentPosition();if(a.offset+=o,a.column+=o,n){const e=x(t,k(r,a),{domain:"parser",args:i});n(e)}}function o(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function i(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function a(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=o(5,r,a);return s.index=parseInt(t,10),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function u(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=o(4,r,a);return s.key=t,e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:a}=n,s=o(9,r,a);return s.value=t.replace(D,M),e.nextToken(),i(s,e.currentOffset(),e.currentPosition()),s}function f(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:s}=n,u=o(8,a,s);return 12!==t.type?(r(e,12,n.lastStartLoc,0),u.value="",i(u,a,s),{nextConsumeToken:t,node:u}):(null==t.value&&r(e,T,n.lastStartLoc,0,j(t)),u.value=t.value||"",i(u,e.currentOffset(),e.currentPosition()),{node:u})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&r(e,T,t.lastStartLoc,0,j(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&r(e,T,t.lastStartLoc,0,j(a)),n.key=function(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}(e,a.value||"");break;case 5:null==a.value&&r(e,T,t.lastStartLoc,0,j(a)),n.key=u(e,a.value||"");break;case 6:null==a.value&&r(e,T,t.lastStartLoc,0,j(a)),n.key=s(e,a.value||"");break;case 7:null==a.value&&r(e,T,t.lastStartLoc,0,j(a)),n.key=l(e,a.value||"");break;default:r(e,13,t.lastStartLoc,0);const c=e.context(),f=o(7,c.offset,c.startLoc);return f.value="",i(f,c.offset,c.startLoc),n.key=f,i(n,c.offset,c.startLoc),{nextConsumeToken:a,node:n}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let c=null;do{const o=c||e.nextToken();switch(c=null,o.type){case 0:null==o.value&&r(e,T,t.lastStartLoc,0,j(o)),n.items.push(a(e,o.value||""));break;case 6:null==o.value&&r(e,T,t.lastStartLoc,0,j(o)),n.items.push(s(e,o.value||""));break;case 5:null==o.value&&r(e,T,t.lastStartLoc,0,j(o)),n.items.push(u(e,o.value||""));break;case 7:null==o.value&&r(e,T,t.lastStartLoc,0,j(o)),n.items.push(l(e,o.value||""));break;case 8:const i=f(e);n.items.push(i.node),c=i.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return i(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const a=L(n,c({},e)),s=a.context(),u=o(0,s.offset,s.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=function(e){const t=e.context(),{offset:n,startLoc:a}=t,s=d(e);return 14===t.currentType?s:function(e,t,n,a){const s=e.context();let u=0===a.items.length;const l=o(1,t,n);l.cases=[],l.cases.push(a);do{const t=d(e);u||(u=0===t.items.length),l.cases.push(t)}while(14!==s.currentType);return u&&r(e,11,n,0),i(l,e.currentOffset(),e.currentPosition()),l}(e,n,a,s)}(a),14!==s.currentType&&r(a,T,s.lastStartLoc,0,n[s.offset]||""),i(u,a.currentOffset(),a.currentPosition()),u}}}function j(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function U(e,t){for(let n=0;n<e.length;n++)B(e[n],t)}function B(e,t){switch(e.type){case 1:U(e.cases,t),t.helper("plural");break;case 2:U(e.items,t);break;case 6:B(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function V(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?V(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(V(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(V(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),V(e,t.key),t.modifier?(e.push(", "),V(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}function z(e,t={}){const n=c({},t),r=F(n).parse(e);return function(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&B(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}(r,n),((e,t={})=>{const n=_(t.mode)?t.mode:"normal",r=_(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],u=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:i}=t,a={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};function s(e,t){a.code+=e}function u(e,t=!0){const n=t?o:"";s(i?n+" ".repeat(e):n)}return{context:()=>a,push:s,indent:function(e=!0){const t=++a.indentLevel;e&&u(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&u(t)},newline:function(){u(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:i,needIndent:a});u.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(a),s.length>0&&(u.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),u.newline()),u.push("return "),V(u,e),u.deindent(a),u.push("}");const{code:l,map:c}=u.context();return{ast:e,code:l,map:c?c.toJSON():void 0}})(r,n)}const W=[];W[0]={w:[0],i:[3,0],"[":[4],o:[7]},W[1]={w:[1],".":[2],"[":[4],o:[7]},W[2]={w:[2],i:[3,0],0:[3,0]},W[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},W[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},W[5]={"'":[4,0],o:8,l:[5,0]},W[6]={'"':[4,0],o:8,l:[6,0]};const H=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function $(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}const q=new Map;function Y(e,t){return b(e)?e[t]:null}const X=e=>e,G=e=>"",J=e=>0===e.length?"":e.join(""),Z=e=>null==e?"":g(e)||S(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function K(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}let Q=null;const ee=te("function:translate");function te(e){return t=>Q&&Q.emit(e,t)}function ne(e,t,n){return[...new Set([n,...g(t)?t:b(t)?Object.keys(t):_(t)?[t]:[n]])]}function re(e,t,n){const r=_(n)?n:se,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let e=[n];for(;g(e);)e=oe(i,e,t);const a=g(t)||!S(t)?t:t.default?t.default:null;e=_(a)?[a]:a,g(e)&&oe(i,e,!1),o.__localeChainCache.set(r,i)}return i}function oe(e,t,n){let r=!0;for(let o=0;o<t.length&&y(r);o++){const i=t[o];_(i)&&(r=ie(e,t[o],n))}return r}function ie(e,t,n){let r;const o=t.split("-");do{r=ae(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function ae(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(g(n)||S(n))&&n[o]&&(r=n[o])}return r}const se="en-US",ue=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let le,ce,fe,de=null;const pe=e=>{de=e};let he=null;const me=e=>{he=e};let ge=0;function ve(e,t,n,r,o){const{missing:i,onWarn:a}=e;if(null!==i){const r=i(e,n,t,o);return _(r)?r:t}return t}function _e(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const ye=e=>e;let be=Object.create(null),Ee=15;const we=()=>++Ee,Se={INVALID_ARGUMENT:Ee,INVALID_DATE_ARGUMENT:we(),INVALID_ISO_DATE_ARGUMENT:we(),__EXTEND_POINT__:we()};function Te(e){return x(e,null,void 0)}const xe=()=>"",Oe=e=>v(e);function ke(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:u}=e,[l,f]=Ae(...t),d=(y(f.missingWarn)?f.missingWarn:e.missingWarn,y(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,y(f.escapeParameter)?f.escapeParameter:e.escapeParameter),h=!!f.resolvedMessage,m=_(f.default)||y(f.default)?y(f.default)?i?l:()=>l:f.default:n?i?l:()=>l:"",E=n||""!==m,w=_(f.locale)?f.locale:e.locale;d&&function(e){g(e.list)?e.list=e.list.map((e=>_(e)?p(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=p(e.named[t]))}))}(f);let[T,x,O]=h?[l,w,u[w]||{}]:Ce(e,l,w,s),k=T,C=l;if(h||_(k)||Oe(k)||E&&(k=m,C=k),!(h||(_(k)||Oe(k))&&_(x)))return o?-1:l;let N=!1;const A=Oe(k)?k:Ne(e,l,x,k,C,(()=>{N=!0}));if(N)return k;const I=function(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:u,fallbackWarn:l,missingWarn:c,fallbackContext:f}=e,d={locale:t,modifiers:o,pluralRules:i,messages:r=>{let o=s(n,r);if(null==o&&f){const[,,e]=Ce(f,r,t,u);o=s(e,r)}if(_(o)){let n=!1;const i=Ne(e,r,t,o,r,(()=>{n=!0}));return n?xe:i}return Oe(o)?o:xe}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),a(r.plural)&&(d.pluralIndex=r.plural),d}(e,x,O,f),R=function(e,t,n){return t(n)}(0,A,function(e={}){const t=e.locale,n=function(e){const t=a(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(a(e.named.count)||a(e.named.n))?a(e.named.count)?e.named.count:a(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&_(t)&&v(e.pluralRules[t])?e.pluralRules[t]:K,o=b(e.pluralRules)&&_(t)&&v(e.pluralRules[t])?K:void 0,i=e.list||[],s=e.named||{};function u(t){return(v(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):G)}a(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);const l=S(e.processor)&&v(e.processor.normalize)?e.processor.normalize:J,c=S(e.processor)&&v(e.processor.interpolate)?e.processor.interpolate:Z,f={list:e=>i[e],named:e=>s[e],plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,o]=n;let i="text",a="";1===n.length?b(r)?(a=r.modifier||a,i=r.type||i):_(r)&&(a=r||a):2===n.length&&(_(r)&&(a=r||a),_(o)&&(i=o||i));let s=u(t)(f);return"vnode"===i&&g(s)&&a&&(s=s[0]),a?(l=a,e.modifiers?e.modifiers[l]:X)(s,i):s;var l},message:u,type:S(e.processor)&&_(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l};return f}(I)),P=r?r(R,l):R;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:_(l)?l:Oe(k)?k.key:"",locale:x||(Oe(k)?k.locale:""),format:_(k)?k:Oe(k)?k.source:"",message:P};t.meta=c({},e.__meta,de||{}),ee(t)}return P}function Ce(e,t,n,r,o,i){const{messages:a,onWarn:s,messageResolver:u,localeFallbacker:l}=e,c=l(e,r,n);let f,d={},p=null,h=n,m=null;for(let n=0;n<c.length&&(f=m=c[n],d=a[f]||{},null===(p=u(d,t))&&(p=d[t]),!_(p)&&!v(p));n++){const n=ve(e,t,f,0,"translate");n!==t&&(p=n),h=m}return[p,f,d]}function Ne(e,t,n,r,o,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Oe(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==a){const e=()=>r;return e.locale=n,e.key=t,e}const u=a(r,function(e,t,n,r,o,i){return{warnHtmlMessage:o,onError:e=>{throw i&&i(e),e},onCacheKey:e=>((e,t,n)=>{return r={l:e,k:t,s:n},JSON.stringify(r).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027");var r})(t,n,e)}}(0,n,o,0,s,i));return u.locale=n,u.key=t,u.source=r,u}function Ae(...e){const[t,n,r]=e,o={};if(!_(t)&&!a(t)&&!Oe(t))throw Te(Se.INVALID_ARGUMENT);const i=a(t)?String(t):(Oe(t),t);return a(n)?o.plural=n:_(n)?o.default=n:S(n)&&!u(n)?o.named=n:g(n)&&(o.list=n),a(r)?o.plural=r:_(r)?o.default=r:S(r)&&c(o,r),[i,o]}const Ie="undefined"!=typeof Intl;function Re(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,f,d,p]=Le(...t),h=(y(d.missingWarn)?d.missingWarn:e.missingWarn,y(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),m=_(d.locale)?d.locale:e.locale,g=a(e,o,m);if(!_(l)||""===l)return new Intl.DateTimeFormat(m,p).format(f);let v,b={},E=null,w=m,T=null;for(let t=0;t<g.length&&(v=T=g[t],b=n[v]||{},E=b[l],!S(E));t++)ve(e,l,v,0,"datetime format"),w=T;if(!S(E)||!_(v))return r?-1:l;let x=`${v}__${l}`;u(p)||(x=`${x}__${JSON.stringify(p)}`);let O=s.get(x);return O||(O=new Intl.DateTimeFormat(v,c({},E,p)),s.set(x,O)),h?O.formatToParts(f):O.format(f)}Ie&&Intl.DateTimeFormat,Ie&&Intl.NumberFormat;const Pe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Le(...e){const[t,n,r,o]=e,i={};let s,u={};if(_(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Te(Se.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Te(Se.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===w(t)){if(isNaN(t.getTime()))throw Te(Se.INVALID_DATE_ARGUMENT);s=t}else{if(!a(t))throw Te(Se.INVALID_ARGUMENT);s=t}return _(n)?i.key=n:S(n)&&Object.keys(n).forEach((e=>{Pe.includes(e)?u[e]=n[e]:i[e]=n[e]})),_(r)?i.locale=r:S(r)&&(u=r),S(o)&&(u=o),[i.key||"",s,i,u]}function De(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Me(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,f,d,p]=je(...t),h=(y(d.missingWarn)?d.missingWarn:e.missingWarn,y(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),m=_(d.locale)?d.locale:e.locale,g=a(e,o,m);if(!_(l)||""===l)return new Intl.NumberFormat(m,p).format(f);let v,b={},E=null,w=m,T=null;for(let t=0;t<g.length&&(v=T=g[t],b=n[v]||{},E=b[l],!S(E));t++)ve(e,l,v,0,"number format"),w=T;if(!S(E)||!_(v))return r?-1:l;let x=`${v}__${l}`;u(p)||(x=`${x}__${JSON.stringify(p)}`);let O=s.get(x);return O||(O=new Intl.NumberFormat(v,c({},E,p)),s.set(x,O)),h?O.formatToParts(f):O.format(f)}const Fe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function je(...e){const[t,n,r,o]=e,i={};let s={};if(!a(t))throw Te(Se.INVALID_ARGUMENT);const u=t;return _(n)?i.key=n:S(n)&&Object.keys(n).forEach((e=>{Fe.includes(e)?s[e]=n[e]:i[e]=n[e]})),_(r)?i.locale=r:S(r)&&(s=r),S(o)&&(s=o),[i.key||"",u,i,s]}function Ue(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(d().__INTLIFY_PROD_DEVTOOLS__=!1);var Be=n(6229),Ve=n(2343);let ze=7;const We=()=>++ze;We(),We(),We(),We(),We(),We();let He=15;const $e=()=>++He,qe={UNEXPECTED_RETURN_TYPE:He,INVALID_ARGUMENT:$e(),MUST_BE_CALL_SETUP_TOP:$e(),NOT_INSLALLED:$e(),NOT_AVAILABLE_IN_LEGACY_MODE:$e(),REQUIRED_VALUE:$e(),INVALID_VALUE:$e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:$e(),NOT_INSLALLED_WITH_PROVIDE:$e(),UNEXPECTED_ERROR:$e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:$e(),BRIDGE_SUPPORT_VUE_2_ONLY:$e(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:$e(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:$e(),__EXTEND_POINT__:$e()};function Ye(e,...t){return x(e,null,void 0)}const Xe=i("__transrateVNode"),Ge=i("__datetimeParts"),Je=i("__numberParts"),Ze=i("__setPluralRules");i("__intlifyMeta");const Ke=i("__injectWithOption");function Qe(e){if(!b(e))return e;for(const t in e)if(m(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e;for(let e=0;e<r;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[r]]=e[t],delete e[t],b(o[n[r]])&&Qe(o[n[r]])}else b(e[t])&&Qe(e[t]);return e}function et(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=t,a=S(n)?n:g(r)?{}:{[e]:{}};if(g(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(a[t]=a[t]||{},nt(n,a[t])):nt(n,a)}else _(e)&&nt(JSON.parse(e),a)})),null==o&&i)for(const e in a)m(a,e)&&Qe(a[e]);return a}const tt=e=>!b(e)||g(e);function nt(e,t){if(tt(e)||tt(t))throw Ye(qe.INVALID_VALUE);for(const n in e)m(e,n)&&(tt(e[n])||tt(t[n])?t[n]=e[n]:nt(e[n],t[n]))}function rt(e){return e.type}function ot(e,t,n){let r=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=et(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);if(o.length&&o.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function it(e){return(0,Be.Wm)(Be.xv,null,e,0)}const at="__INTLIFY_META__";let st=0;function ut(e){return(t,n,r,o)=>e(n,r,(0,Be.FN)()||void 0,o)}function lt(e={},t){const{__root:n}=e,o=void 0===n;let i=!y(e.inheritLocale)||e.inheritLocale;const u=(0,Ve.iH)(n&&i?n.locale.value:_(e.locale)?e.locale:se),f=(0,Ve.iH)(n&&i?n.fallbackLocale.value:_(e.fallbackLocale)||g(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:u.value),d=(0,Ve.iH)(et(u.value,e)),p=(0,Ve.iH)(S(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),h=(0,Ve.iH)(S(e.numberFormats)?e.numberFormats:{[u.value]:{}});let m=n?n.missingWarn:!y(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,E=n?n.fallbackWarn:!y(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,w=n?n.fallbackRoot:!y(e.fallbackRoot)||e.fallbackRoot,T=!!e.fallbackFormat,x=v(e.missing)?e.missing:null,O=v(e.missing)?ut(e.missing):null,k=v(e.postTranslation)?e.postTranslation:null,C=n?n.warnHtmlMessage:!y(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter;const A=n?n.modifiers:S(e.modifiers)?e.modifiers:{};let I,R=e.pluralRules||n&&n.pluralRules;I=(()=>{o&&me(null);const t={version:"9.2.2",locale:u.value,fallbackLocale:f.value,messages:d.value,modifiers:A,pluralRules:R,missing:null===O?void 0:O,missingWarn:m,fallbackWarn:E,fallbackFormat:T,unresolving:!0,postTranslation:null===k?void 0:k,warnHtmlMessage:C,escapeParameter:N,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=p.value,t.numberFormats=h.value,t.__datetimeFormatters=S(I)?I.__datetimeFormatters:void 0,t.__numberFormatters=S(I)?I.__numberFormatters:void 0;const n=function(e={}){const t=_(e.version)?e.version:"9.2.2",n=_(e.locale)?e.locale:se,r=g(e.fallbackLocale)||S(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=S(e.messages)?e.messages:{[n]:{}},i=S(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=S(e.numberFormats)?e.numberFormats:{[n]:{}},u=c({},e.modifiers||{},{upper:(e,t)=>"text"===t&&_(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&_(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&_(e)?ue(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?ue(e.children):e}),f=e.pluralRules||{},d=v(e.missing)?e.missing:null,p=!y(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!y(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,E=!!e.unresolving,w=v(e.postTranslation)?e.postTranslation:null,T=S(e.processor)?e.processor:null,x=!y(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,k=v(e.messageCompiler)?e.messageCompiler:le,C=v(e.messageResolver)?e.messageResolver:ce||Y,N=v(e.localeFallbacker)?e.localeFallbacker:fe||ne,A=b(e.fallbackContext)?e.fallbackContext:void 0,I=v(e.onWarn)?e.onWarn:l,R=e,P=b(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,L=b(R.__numberFormatters)?R.__numberFormatters:new Map,D=b(R.__meta)?R.__meta:{};ge++;const M={version:t,cid:ge,locale:n,fallbackLocale:r,messages:o,modifiers:u,pluralRules:f,missing:d,missingWarn:p,fallbackWarn:h,fallbackFormat:m,unresolving:E,postTranslation:w,processor:T,warnHtmlMessage:x,escapeParameter:O,messageCompiler:k,messageResolver:C,localeFallbacker:N,fallbackContext:A,onWarn:I,__meta:D};return M.datetimeFormats=i,M.numberFormats=a,M.__datetimeFormatters=P,M.__numberFormatters=L,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Q&&Q.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(M,t,D),M}(t);return o&&me(n),n})(),_e(I,u.value,f.value);const P=(0,Be.Fl)({get:()=>u.value,set:e=>{u.value=e,I.locale=u.value}}),L=(0,Be.Fl)({get:()=>f.value,set:e=>{f.value=e,I.fallbackLocale=f.value,_e(I,u.value,e)}}),D=(0,Be.Fl)((()=>d.value)),M=(0,Be.Fl)((()=>p.value)),F=(0,Be.Fl)((()=>h.value)),j=(e,t,r,i,s,l)=>{let c;if(u.value,f.value,d.value,p.value,h.value,__INTLIFY_PROD_DEVTOOLS__)try{pe((()=>{const e=(0,Be.FN)();let t=null;return e&&(t=rt(e)[at])?{[at]:t}:null})()),o||(I.fallbackContext=n?he:void 0),c=e(I)}finally{pe(null),o||(I.fallbackContext=void 0)}else c=e(I);if(a(c)&&-1===c){const[e,r]=t();return n&&w?i(n):s(e)}if(l(c))return c;throw Ye(qe.UNEXPECTED_RETURN_TYPE)};function U(...e){return j((t=>Reflect.apply(ke,null,[t,...e])),(()=>Ae(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>_(e)))}const B={normalize:function(e){return e.map((e=>_(e)||a(e)||y(e)?it(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return d.value[e]||{}}st++,n&&r&&((0,Be.YP)(n.locale,(e=>{i&&(u.value=e,I.locale=e,_e(I,u.value,f.value))})),(0,Be.YP)(n.fallbackLocale,(e=>{i&&(f.value=e,I.fallbackLocale=e,_e(I,u.value,f.value))})));const z={id:st,locale:P,fallbackLocale:L,get inheritLocale(){return i},set inheritLocale(e){i=e,e&&n&&(u.value=n.locale.value,f.value=n.fallbackLocale.value,_e(I,u.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:D,get modifiers(){return A},get pluralRules(){return R||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(e){m=e,I.missingWarn=m},get fallbackWarn(){return E},set fallbackWarn(e){E=e,I.fallbackWarn=E},get fallbackRoot(){return w},set fallbackRoot(e){w=e},get fallbackFormat(){return T},set fallbackFormat(e){T=e,I.fallbackFormat=T},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,I.warnHtmlMessage=e},get escapeParameter(){return N},set escapeParameter(e){N=e,I.escapeParameter=e},t:U,getLocaleMessage:V,setLocaleMessage:function(e,t){d.value[e]=t,I.messages=d.value},mergeLocaleMessage:function(e,t){d.value[e]=d.value[e]||{},nt(t,d.value[e]),I.messages=d.value},getPostTranslationHandler:function(){return v(k)?k:null},setPostTranslationHandler:function(e){k=e,I.postTranslation=e},getMissingHandler:function(){return x},setMissingHandler:function(e){null!==e&&(O=ut(e)),x=e,I.missing=O},[Ze]:function(e){R=e,I.pluralRules=R}};return z.datetimeFormats=M,z.numberFormats=F,z.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Ye(qe.INVALID_ARGUMENT);return U(t,n,c({resolvedMessage:!0},r||{}))},z.te=function(e,t){const n=V(_(t)?t:u.value);return null!==I.messageResolver(n,e)},z.tm=function(e){const t=function(e){let t=null;const n=re(I,f.value,u.value);for(let r=0;r<n.length;r++){const o=d.value[n[r]]||{},i=I.messageResolver(o,e);if(null!=i){t=i;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},z.d=function(...e){return j((t=>Reflect.apply(Re,null,[t,...e])),(()=>Le(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>_(e)))},z.n=function(...e){return j((t=>Reflect.apply(Me,null,[t,...e])),(()=>je(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>_(e)))},z.getDateTimeFormat=function(e){return p.value[e]||{}},z.setDateTimeFormat=function(e,t){p.value[e]=t,I.datetimeFormats=p.value,De(I,e,t)},z.mergeDateTimeFormat=function(e,t){p.value[e]=c(p.value[e]||{},t),I.datetimeFormats=p.value,De(I,e,t)},z.getNumberFormat=function(e){return h.value[e]||{}},z.setNumberFormat=function(e,t){h.value[e]=t,I.numberFormats=h.value,Ue(I,e,t)},z.mergeNumberFormat=function(e,t){h.value[e]=c(h.value[e]||{},t),I.numberFormats=h.value,Ue(I,e,t)},z[Ke]=e.__injectWithOption,z[Xe]=function(...e){return j((t=>{let n;const r=t;try{r.processor=B,n=Reflect.apply(ke,null,[r,...e])}finally{r.processor=null}return n}),(()=>Ae(...e)),0,(t=>t[Xe](...e)),(e=>[it(e)]),(e=>g(e)))},z[Ge]=function(...e){return j((t=>Reflect.apply(Re,null,[t,...e])),(()=>Le(...e)),0,(t=>t[Ge](...e)),(()=>[]),(e=>_(e)||g(e)))},z[Je]=function(...e){return j((t=>Reflect.apply(Me,null,[t,...e])),(()=>je(...e)),0,(t=>t[Je](...e)),(()=>[]),(e=>_(e)||g(e)))},z}function ct(e={},t){{const t=lt(function(e){const t=_(e.locale)?e.locale:se,n=_(e.fallbackLocale)||g(e.fallbackLocale)||S(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=v(e.missing)?e.missing:void 0,o=!y(e.silentTranslationWarn)&&!s(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!y(e.silentFallbackWarn)&&!s(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!y(e.fallbackRoot)||e.fallbackRoot,u=!!e.formatFallbackMessages,l=S(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,d=v(e.postTranslation)?e.postTranslation:void 0,p=!_(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,m=!y(e.sync)||e.sync;let b=e.messages;if(S(e.sharedMessages)){const t=e.sharedMessages;b=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return c(r,t[n]),e}),b||{})}const{__i18n:E,__root:w,__injectWithOption:T}=e,x=e.datetimeFormats,O=e.numberFormats;return{locale:t,fallbackLocale:n,messages:b,flatJson:e.flatJson,datetimeFormats:x,numberFormats:O,missing:r,missingWarn:o,fallbackWarn:i,fallbackRoot:a,fallbackFormat:u,modifiers:l,pluralRules:f,postTranslation:d,warnHtmlMessage:p,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:m,__i18n:E,__root:w,__injectWithOption:T}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return y(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=y(e)?!e:e},get silentFallbackWarn(){return y(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=y(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,i={};let a=null,s=null;if(!_(n))throw Ye(qe.INVALID_ARGUMENT);const u=n;return _(r)?i.locale=r:g(r)?a=r:S(r)&&(s=r),g(o)?a=o:S(o)&&(s=o),Reflect.apply(t.t,t,[u,a||s||{},i])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,r,o]=e,i={plural:1};let s=null,u=null;if(!_(n))throw Ye(qe.INVALID_ARGUMENT);const l=n;return _(r)?i.locale=r:a(r)?i.plural=r:g(r)?s=r:S(r)&&(u=r),_(o)?i.locale=o:g(o)?s=o:S(o)&&(u=o),Reflect.apply(t.t,t,[l,s||u||{},i])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex(e,t){return-1},__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}}const ft={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function dt(e){return Be.HY}const pt={name:"i18n-t",props:c({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>a(e)||!isNaN(e)}},ft),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||wt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter((e=>"_"!==e)),a={};e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=_(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){return 1===t.length&&"default"===t[0]?(e.default?e.default():[]).reduce(((e,t)=>[...e,...g(t.children)?t.children:[t]]),[]):t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,i),u=o[Xe](e.keypath,s,a),l=c({},r),f=_(e.tag)||b(e.tag)?e.tag:dt();return(0,Be.h)(f,l,u)}}};function ht(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),_(e.format)?t.key=e.format:b(e.format)&&(_(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?c({},t,{[r]:e.format[r]}):t),{}));const s=r(e.value,t,a);let u=[t.key];g(s)?u=s.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];var i;return g(i=r)&&!_(i[0])&&(r[0].key=`${e.type}-${t}`),r})):_(s)&&(u=[s]);const l=c({},i),f=_(e.tag)||b(e.tag)?e.tag:dt();return(0,Be.h)(f,l,u)}}const mt={name:"i18n-n",props:c({value:{type:Number,required:!0},format:{type:[String,Object]}},ft),setup(e,t){const n=e.i18n||wt({useScope:"parent",__useComponent:!0});return ht(e,t,Fe,((...e)=>n[Je](...e)))}},gt={name:"i18n-d",props:c({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ft),setup(e,t){const n=e.i18n||wt({useScope:"parent",__useComponent:!0});return ht(e,t,Pe,((...e)=>n[Ge](...e)))}};function vt(e){if(_(e))return{path:e};if(S(e)){if(!("path"in e))throw Ye(qe.REQUIRED_VALUE);return e}throw Ye(qe.INVALID_VALUE)}function _t(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,s={},u=r||{};return _(n)&&(s.locale=n),a(o)&&(s.plural=o),a(i)&&(s.plural=i),[t,u,s]}function yt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Ze](t.pluralizationRules||e.pluralizationRules);const n=et(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const bt=i("global-vue-i18n");function Et(e={},t){const n=__VUE_I18N_LEGACY_API__&&y(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,o=!y(e.globalInjection)||e.globalInjection,a=!__VUE_I18N_LEGACY_API__||!n||!!e.allowComposition,s=new Map,[u,l]=function(e,t,n){const r=(0,Ve.B)();{const n=__VUE_I18N_LEGACY_API__&&t?r.run((()=>ct(e))):r.run((()=>lt(e)));if(null==n)throw Ye(qe.UNEXPECTED_ERROR);return[r,n]}}(e,n),c=i("");{const e={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return a},async install(t,...i){t.__VUE_I18N_SYMBOL__=c,t.provide(t.__VUE_I18N_SYMBOL__,e),!n&&o&&function(e,t){const n=Object.create(null);St.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Ye(qe.UNEXPECTED_ERROR);const o=(0,Ve.dq)(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,Tt.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Ye(qe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}(t,e.global),__VUE_I18N_FULL_INSTALL__&&function(e,t,...n){const o=S(n[0])?n[0]:{},i=!!o.useI18nComponentName;(!y(o.globalInstall)||o.globalInstall)&&(e.component(i?"i18n":pt.name,pt),e.component(mt.name,mt),e.component(gt.name,gt)),e.directive("t",function(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw Ye(qe.UNEXPECTED_ERROR);const i=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),a=vt(o);return[Reflect.apply(i.t,i,[..._t(a)]),i]};return{created:(n,o)=>{const[i,a]=t(o);r&&e.global===a&&(n.__i18nWatcher=(0,Be.YP)(a.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),n.__composer=a,n.textContent=i},unmounted:e=>{r&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=vt(t);e.textContent=Reflect.apply(n.t,n,[..._t(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}(t,e,...i),__VUE_I18N_LEGACY_API__&&n&&t.mixin(function(e,t,n){return{beforeCreate(){const r=(0,Be.FN)();if(!r)throw Ye(qe.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const n=o.i18n;o.__i18n&&(n.__i18n=o.__i18n),n.__root=t,this===this.$root?this.$i18n=yt(e,n):(n.__injectWithOption=!0,this.$i18n=ct(n))}else o.__i18n?this===this.$root?this.$i18n=yt(e,o):this.$i18n=ct({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;o.__i18nGlobal&&ot(t,o,o),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){},unmounted(){const e=(0,Be.FN)();if(!e)throw Ye(qe.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(l,l.__composer,e));const a=t.unmount;t.unmount=()=>{e.dispose(),a()}},get global(){return l},dispose(){u.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return e}}function wt(e={}){const t=(0,Be.FN)();if(null==t)throw Ye(qe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ye(qe.NOT_INSLALLED);const n=function(e){{const t=(0,Be.f3)(e.isCE?bt:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ye(e.isCE?qe.NOT_INSLALLED_WITH_PROVIDE:qe.UNEXPECTED_ERROR);return t}}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),o=rt(t),i=function(e,t){return u(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if(__VUE_I18N_LEGACY_API__&&"legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw Ye(qe.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,t,n,r={}){const o="local"===t,i=(0,Ve.XI)(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Ye(qe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=!y(r.inheritLocale)||r.inheritLocale,u=(0,Ve.iH)(o&&a?n.locale.value:_(r.locale)?r.locale:se),l=(0,Ve.iH)(o&&a?n.fallbackLocale.value:_(r.fallbackLocale)||g(r.fallbackLocale)||S(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:u.value),c=(0,Ve.iH)(et(u.value,r)),f=(0,Ve.iH)(S(r.datetimeFormats)?r.datetimeFormats:{[u.value]:{}}),d=(0,Ve.iH)(S(r.numberFormats)?r.numberFormats:{[u.value]:{}}),p=o?n.missingWarn:!y(r.missingWarn)&&!s(r.missingWarn)||r.missingWarn,h=o?n.fallbackWarn:!y(r.fallbackWarn)&&!s(r.fallbackWarn)||r.fallbackWarn,m=o?n.fallbackRoot:!y(r.fallbackRoot)||r.fallbackRoot,b=!!r.fallbackFormat,E=v(r.missing)?r.missing:null,w=v(r.postTranslation)?r.postTranslation:null,T=o?n.warnHtmlMessage:!y(r.warnHtmlMessage)||r.warnHtmlMessage,x=!!r.escapeParameter,O=o?n.modifiers:S(r.modifiers)?r.modifiers:{},k=r.pluralRules||o&&n.pluralRules;function C(e){return u.value,l.value,c.value,f.value,d.value,e()}const N={get id(){return i.value?i.value.id:-1},locale:(0,Be.Fl)({get:()=>i.value?i.value.locale.value:u.value,set:e=>{i.value&&(i.value.locale.value=e),u.value=e}}),fallbackLocale:(0,Be.Fl)({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),l.value=e}}),messages:(0,Be.Fl)((()=>i.value?i.value.messages.value:c.value)),datetimeFormats:(0,Be.Fl)((()=>f.value)),numberFormats:(0,Be.Fl)((()=>d.value)),get inheritLocale(){return i.value?i.value.inheritLocale:a},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:O},get pluralRules(){return i.value?i.value.pluralRules:k},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:p},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:b},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:T},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:x},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:function(...e){return i.value?C((()=>Reflect.apply(i.value.t,null,[...e]))):C((()=>""))},getPostTranslationHandler:function(){return i.value?i.value.getPostTranslationHandler():w},setPostTranslationHandler:function(e){i.value&&i.value.setPostTranslationHandler(e)},getMissingHandler:function(){return i.value?i.value.getMissingHandler():E},setMissingHandler:function(e){i.value&&i.value.setMissingHandler(e)},rt:function(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""},d:function(...e){return i.value?C((()=>Reflect.apply(i.value.d,null,[...e]))):C((()=>""))},n:function(...e){return i.value?C((()=>Reflect.apply(i.value.n,null,[...e]))):C((()=>""))},tm:function(e){return i.value?i.value.tm(e):{}},te:function(e,t){return!!i.value&&i.value.te(e,t)},getLocaleMessage:function(e){return i.value?i.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){i.value&&(i.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){i.value&&i.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return i.value?i.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){i.value&&(i.value.setDateTimeFormat(e,t),f.value[e]=t)},mergeDateTimeFormat:function(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return i.value?i.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){i.value&&(i.value.setNumberFormat(e,t),d.value[e]=t)},mergeNumberFormat:function(e,t){i.value&&i.value.mergeNumberFormat(e,t)}};return(0,Be.wF)((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Ye(qe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=i.value=e.proxy.$i18n.__composer;"global"===t?(u.value=n.locale.value,l.value=n.fallbackLocale.value,c.value=n.messages.value,f.value=n.datetimeFormats.value,d.value=n.numberFormats.value):o&&function(e){e.locale.value=u.value,e.fallbackLocale.value=l.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(d.value).forEach((t=>{e.mergeNumberFormat(t,d.value[t])})),e.escapeParameter=x,e.fallbackFormat=b,e.fallbackRoot=m,e.fallbackWarn=h,e.missingWarn=p,e.warnHtmlMessage=T}(n)})),N}(t,i,r,e)}if("global"===i)return ot(r,e,o),r;if("parent"===i){let o=function(e,t,n=!1){let r=null;const o=t.root;let i=t.parent;for(;null!=i;){const t=e;if("composition"===e.mode)r=t.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(i);null!=e&&(r=e.__composer,n&&r&&!r[Ke]&&(r=null))}if(null!=r)break;if(o===i)break;i=i.parent}return r}(n,t,e.__useComponent);return null==o&&(o=r),o}const a=n;let l=a.__getInstance(t);if(null==l){const n=c({},e);"__i18n"in o&&(n.__i18n=o.__i18n),r&&(n.__root=r),l=lt(n),function(e,t,n){(0,Be.bv)((()=>{}),t),(0,Be.Ah)((()=>{e.__deleteInstance(t)}),t)}(a,t),a.__setInstance(t,l)}return l}const St=["locale","fallbackLocale","availableLocales"],Tt=["t","rt","d","n","tm"];var xt,Ot;if(xt=function(e,t={}){{const n=(t.onCacheKey||ye)(e),r=be[n];if(r)return r;let o=!1;const i=t.onError||O;t.onError=e=>{o=!0,i(e)};const{code:a}=z(e,t),s=new Function(`return ${a}`)();return o?s:be[n]=s}},le=xt,ce=function(e,t){if(!b(e))return null;let n=q.get(t);if(n||(n=function(e){const t=[];let n,r,o,i,a,s,u,l=-1,c=0,f=0;const d=[];function p(){const t=e[l+1];if(5===c&&"'"===t||6===c&&'"'===t)return l++,o="\\"+t,d[0](),!0}for(d[0]=()=>{void 0===r?r=o:r+=o},d[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},d[2]=()=>{d[0](),f++},d[3]=()=>{if(f>0)f--,c=4,d[0]();else{if(f=0,void 0===r)return!1;if(r=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,H.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(r),!1===r)return!1;d[1]()}};null!==c;)if(l++,n=e[l],"\\"!==n||!p()){if(i=$(n),u=W[c],a=u[i]||u.l||8,8===a)return;if(c=a[0],void 0!==a[1]&&(s=d[a[1]],s&&(o=n,!1===s())))return;if(7===c)return t}}(t),n&&q.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;for(;i<r;){const e=o[n[i]];if(void 0===e)return null;o=e,i++}return o},fe=re,function(){let e=!1;"boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,d().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(e=!0,d().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(d().__INTLIFY_PROD_DEVTOOLS__=!1)}(),__INTLIFY_PROD_DEVTOOLS__){const e=d();e.__INTLIFY__=!0,Ot=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,Q=Ot}},6021:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},5214:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9350),o=n(341),i=n(2502);function a(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var s=a(o);const u=new WeakMap;function l(e,t){if(!i.isString(e)){if(!e.nodeType)return i.NOOP;e=e.innerHTML}const n=e,o=function(e){let t=u.get(null!=e?e:i.EMPTY_OBJ);return t||(t=Object.create(null),u.set(null!=e?e:i.EMPTY_OBJ,t)),t}(t),a=o[n];if(a)return a;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const l=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},t);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:c}=r.compile(e,l),f=new Function("Vue",c)(s);return f._rc=!0,o[n]=f}o.registerRuntimeCompiler(l),t.compile=l,Object.keys(o).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=o[e])}))},2632:function(e,t,n){"use strict";e.exports=n(5214)},159:function(e,t,n){"use strict";n(4573),Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=n(2632),o=r.ref([]),i=r.ref(null),a=r.ref(null),s=r.ref(null),u=r.ref(null),l=r.reactive({current:""}),c=[],f=r.ref(!1),d=r.readonly(o),p=r.readonly(i),h=r.readonly(a),m=r.readonly(s),g=r.readonly(u),v=r.readonly(l),_=(e=p.value)=>{l.current=e;const t=d.value.findIndex((t=>t.name===e)),n=d.value.map((e=>e.name));for(let r=0;r<n.length;r++){if(r>0&&r<n.length-1){const e=n[r]+"Minus",o=n[r]+"Plus";l[e]=t<=r,l[o]=t>=r}l[n[r]]=n[r]===e}},y=(e=h.value)=>{l.orientation=e,l.isLandscape="landscape"===e,l.isPortrait="portrait"===e},b=(e=m.value||"light")=>{l.theme=e,l.isDark="dark"===e,l.isLight="light"===e},E=(e=g.value||"no-preference")=>{l.motionPreference=e,l.isMotion="no-preference"===e,l.isInert="reduce"===e};function w(e,t){if(typeof window>"u"||!window.matchMedia)return!1;if(typeof window<"u"&&!window.matchMedia)return console.error("Vue3 Mq: No MatchMedia support detected in this browser. Responsive breakpoints not available."),!1;{f.value=!0;const n=window.matchMedia(e),r=({matches:e})=>{e&&t()};c.push({mql:n,cb:r}),n.addEventListener&&"function"==typeof n.addEventListener?n.addEventListener("change",r):n.addListener(r),r(n)}}const S=e=>d.value.some((t=>t.name===e)),T=(e,t)=>{const n=t.value.map((e=>e.name));if(e){if(Array.isArray(e))return e.filter((e=>S(e)));if("string"==typeof e&&/\w+\+$/.test(e)){if(e=e.replace(/\+$/,""),!1===S(e))return console.error(`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`),n;const r=t.value.findIndex((t=>t.name===e));return t.value.slice(r).map((e=>e.name))}if("string"==typeof e&&/\w+-$/.test(e)){if(e=e.replace(/-$/,""),!1===S(e))return console.error(`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`),n;const r=t.value.findIndex((t=>t.name===e));return t.value.slice(0,r+1).map((e=>e.name))}if("string"==typeof e&&/^\w+-\w+$/.test(e)){const[r,o]=e.split("-");if(!1===S(r))return console.error(`Vue3 Mq: ${r} is not a valid breakpoint key. Invalid range.`),n;if(!1===S(o))return console.error(`Vue3 Mq: ${o} is not a valid breakpoint key. Invalid range.`),n;const i=t.value.findIndex((e=>e.name===r)),a=t.value.findIndex((e=>e.name===o));return t.value.slice(i,a+1).map((e=>e.name))}return"string"==typeof e&&!0===S(e)?[e]:n}return n},x=(e,t)=>{const n=[];return e||t?(e&&n.push("landscape"),t&&n.push("portrait"),n):["landscape","portrait"]},O=(e,t)=>{const n=[];return t||e?(t&&n.push("light"),e&&n.push("dark"),n):["light","dark"]},k=(e,t)=>{const n=[];return e||t?(e&&n.push("reduce"),t&&n.push("no-preference"),n):["reduce","no-preference"]},C=Object.freeze(Object.defineProperty({__proto__:null,bootstrap5:{xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},bootstrap4:{xs:0,sm:576,md:768,lg:992,xl:1200},bootstrap3:{xs:0,sm:768,md:992,lg:1200},vuetify:{xs:0,sm:600,md:960,lg:1264,xl:1904},tailwind:{xs:0,sm:640,md:768,lg:1024,xl:1280,xxl:1536},devices:{phone:0,tablet:768,laptop:1370,desktop:1906},wordpress:{mobile:0,small:600,medium:782,large:960,xlarge:1080,wide:1280,huge:1440}},Symbol.toStringTag,{value:"Module"})),N=e=>{if(!e||"object"!=typeof e)return!1;const t=[];for(let n in e){const r=parseFloat(e[n]);n&&"string"==typeof n?/^[^a-z]/i.test(n)||/[^a-zA-Z0-9_]/.test(n)?console.warn(`Vue3 Mq: "${n}" is an invalid breakpoint key. Breakpoint keys must start with a letter and contain only alphanumeric characters and underscores. Skipping.`):!r&&0!==r||isNaN(r)||r<0?console.warn(`Vue3 Mq: "${n}: ${e[n]}" is not a valid breakpoint. Breakpoints should be a number of zero or above. Skipping.`):t.push({name:n,min:r}):console.warn(`Vue3 Mq: Invalid or missing breakpoint key (${JSON.stringify(n)}). Skipping.`)}return t.some((e=>0===e.min))||console.warn("Vue3 Mq: You have not declared a breakpoint with a minimum value of 0. There may be screen sizes to which Vue3Mq does not respond."),new Set(t.map((e=>e.min))).size<t.length&&console.warn("Vue3 Mq: Your breakpoint configuration contains duplicate values. Behaviour may be unpredictable."),0!==t.length&&t.sort(((e,t)=>e.min-t.min))},A=e=>{const t=e.split(":"),n={};for(let e of t)!1!==/\D/.test(e)&&(["landscape","portrait"].includes(e)?n.slotOrientation=e:["light","dark"].includes(e)?n.slotTheme=e:["inert","motion"].includes(e)?n.slotMotion=e:n.slotBp=e);return n},I={name:"fade",mode:"out-in"},R={name:"MqResponsive",props:{target:[String,Array],landscape:{type:Boolean,default:!1},portrait:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},light:{type:Boolean,default:!1},inert:{type:Boolean,default:!1},motion:{type:Boolean,default:!1},tag:{type:String,default:"div"},listTag:{type:String,default:"div"},group:{type:Boolean,default:!1}},setup(e,{attrs:t,emit:n,slots:o}){const i=r.computed((()=>T(e.target,d))),a=r.computed((()=>x(e.landscape,e.portrait))),s=r.computed((()=>O(e.dark,e.light))),u=r.computed((()=>k(e.inert,e.motion))),l=r.computed((()=>i.value.includes(v.current)&&a.value.includes(v.orientation)&&s.value.includes(v.theme)&&u.value.includes(v.motionPreference)));return o.default?()=>l.value?r.h(e.tag,{...t},o.default()):void 0:()=>{const n=Object.assign({},I,t,{tag:e.tag}),i=e.group?r.TransitionGroup:r.Transition;return r.h(i,n,(()=>(t=>{if(!e.group&&o.length>0)return o;const n=[];for(let e in o){const{slotBp:i,slotOrientation:a,slotTheme:s,slotMotion:u}=A(e),l=r.computed((()=>T(i,d))),c=r.computed((()=>x("landscape"===a,"portrait"===a))),f=r.computed((()=>O("dark"===s,"light"===s))),p=r.computed((()=>k("inert"===u,"motion"===u)));!0===r.computed((()=>l.value.includes(v.current)&&c.value.includes(v.orientation)&&f.value.includes(v.theme)&&p.value.includes(v.motionPreference))).value&&n.push(r.h(t||o[e],{key:e},t?o[e]():void 0))}return n.length>0?n:void 0})(e.listTag)))}}};function P({breakpoints:e,preset:t}){const n=!!t&&(e=>{if("string"==typeof e&&C[e])return C[e];{const t=Object.keys(C);return console.error(`Vue3 Mq: "${e}" is not a valid preset. Available options are: ${t.join(", ")}`),!1}})(t),r=!!e&&N(e);if(!1===n&&!r)throw new TypeError("Vue3 Mq: You must provide a valid preset, or valid breakpoint settings.");(e=>{o.value=e})(r||N(n)),function(){for(;c.length>0;){const e=c.shift();if(e&&"object"==typeof e){const{mql:t,cb:n}=e;t.addEventListener&&"function"==typeof t.addEventListener?t.removeEventListener("change",n):t.removeListener(n)}}}(),(()=>{const e=Object.keys(l);for(let t of e)delete l[t];_(),y(),b(),E()})();const i=d.value.reduce(((e,t,n,r)=>{const o=`(min-width: ${t.min}px)`,i=n<r.length-1?`(max-width: ${r[n+1].min-1}px)`:null,a=o+(i?" and "+i:"");return Object.assign(e,{[t.name]:a})}),{});for(const e in i)w(i[e],(()=>{_(e)}));["portrait","landscape"].forEach((e=>{w(`(orientation: ${e})`,(()=>{y(e)}))})),["light","dark"].forEach((e=>{w(`(prefers-color-scheme: ${e})`,(()=>{b(e)}))})),["reduce","no-preference"].forEach((e=>{w(`(prefers-reduced-motion: ${e})`,(()=>{E(e)}))}))}const L={install:(e,{preset:t="bootstrap5",breakpoints:n,defaultBreakpoint:r,defaultOrientation:o="landscape",defaultMotion:l="no-preference",defaultTheme:c}={})=>{try{const f=(e=>!1===["landscape","portrait"].includes(e)?(console.error(`Vue3 Mq: "${e}" is not a valid default orientation. Reverting to unset value.`),null):e)(o),d=((e=null)=>!1===["dark","light"].includes(e)&&null!==e?(console.error(`Vue3 Mq: "${e}" is not a valid default theme. Reverting to unset value.`),null):e)(c),p=((e=null)=>!1===["no-preference","reduce"].includes(e)&&null!==e?(console.error(`Vue3 Mq: "${e}" is not a valid default motion preference. Reverting to unset value.`),null):e)(l);(e=>{i.value=e})(r),(e=>{a.value=e})(f),(e=>{s.value=e})(d),(e=>{u.value=e})(p),e.provide("mq",v),e.provide("updateBreakpoints",P),P({breakpoints:n,preset:t})}catch(e){console.error(e)}}};t.MqResponsive=R,t.Vue3Mq=L,t.availableBreakpoints=d,t.updateBreakpoints=P,t.useMq=function(){const e=r.inject("mq");if(e)return e;throw new Error("Vue3Mq is not installed in this app. Please follow the installation instructions and try again.")}},2596:function(e,t,n){"use strict";var r=n(9371);t.Z=(0,r.o)({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en",messages:function(){const e=n(2740),t={};return e.keys().forEach((n=>{const r=n.match(/([A-Za-z0-9-_]+)\./i);if(r&&r.length>1){const o=r[1];t[o]=e(n)}})),t}()})},3903:function(e,t,n){"use strict";n.d(t,{_r:function(){return i},kE:function(){return a},xT:function(){return o}});var r=n(3554);function o(e,t,n){return"marked"==t||"created"==t?e=r.ZP.sortBy(e,t):e.sort((function(e,n){if(t.endsWith("__html"))var r=e.data[t].value,o=n.data[t].value;else r=e.data[t],o=n.data[t];return void 0!==r&&r?void 0===o?1:(isNaN(r)?(r=r.toLowerCase(),o=o.toLowerCase()):(r=parseInt(r),o=parseInt(o)),r<o?-1:1):-1})),1==n?e:e.reverse()}function i(e){return!!(e.startsWith("checkbox")||e.startsWith("radio-group")||e.startsWith("select"))}function a(e){return e.name.startsWith("number")}},3895:function(e,t,n){"use strict";n.d(t,{i:function(){return d}}),n(4573);var r=n(2415),o=n(9371),i=n(4559),a=n.n(i),s=n(3903),u=n(56),l=n(5162),c=n(3554),f=n(3974);const d=(0,r.Q_)("dataDisplayStore",{state:()=>({downloading_items:!0,ui_language:"en",endpoint:null,ui:{display_panel:!0,numeric_totals:!1,extended_filters:!1,pdf_builder:!1},item_endpoint:null,items:[],data_type:null,search_text:"",searched_items:[],deleted_fields:[],default_field_index:[],meta:{ascending:!0},user_prefs:{},page:1,page_length:10,card_batch:1,card_batch_length:20,can_edit:!1,show_modes:!1,show_other_options:!1,has_row_controls:!1,delete_item_initiated:null,include_deleted_fields:!1,display_items_as:"grid",enabled_exports:[],extended_filters:{},pdf_prefs:{default:!0,selected_fields:[],portrait:!1,font_size:8,page_size:"A4"}}),getters:{itemsToDisplay:e=>{var t=e.searched_items.length||e.search_text?e.searched_items:e.items;let n=Object.keys(e.extended_filters);if(0==n.length)return t;var r=[];return Object.entries(t).forEach((t=>{for(const[o,i]of Object.entries(t[1].data)){if(!n.includes(o))continue;let a=i.split(", "),s=e.extended_filters[o];if((0,f.intersectionBy)(a,s).length){r.push(t[1]);break}}})),r},paginatedItems:e=>{let t=(e.page-1)*e.page_length;return e.itemsToDisplay.slice(t,t+e.page_length)},paginatedCards:e=>{let t=e.itemsToDisplay;var n=(e.card_batch+1)*e.card_batch_length;return n>t.length&&(n=t.length),t.slice(0,n)},first_field:e=>"marked"!=e.user_prefs.field_index[0].name?e.user_prefs.field_index[0]:e.user_prefs.field_index[1],getFormattedValue:e=>t=>{var n=t.field_name,r=t.field_value;if(void 0===r)return"Empty";if("boolean"==typeof r)return r?"True":"False";if("marked"==n)return r?"True":"False";if("created"==n)return(0,u.Z)((0,l.Z)(r),"yyyy-MM-dd kk:mm:ss");if((0,s._r)(n)){var o=[];if(r.split(", ").forEach((t=>{var r=e.getOptionLabel({field_name:n,option_value:t});o.push(r)})),o.length>0)return o.join(", ")}return""===r?"Empty":r},getFieldLabel:e=>t=>{var n=e.field_index.find((e=>e.name===t));return void 0!==n?n.label:null},all_multichoice_fields:e=>{if(void 0===e.meta.form_structure)return[];var t=[];return e.meta.form_structure.forEach((e=>{e.name&&(0,s._r)(e.name)&&t.push(e)})),t},getFieldOptions:e=>t=>{if(!(0,s._r)(t))return[];let n=e.getFieldStructure(t);var r=[];for(let e in n.values)r.push(n.values[e]);return r},getOptionLabel:e=>t=>{var n=t.field_name,r=t.option_value,o=e.getFieldStructure(n),i=r;return void 0===o||o.values.forEach((e=>{e.value==r&&(i=e.label)})),i},field_index:e=>e.include_deleted_fields&&e.deleted_fields.length?e.user_prefs.field_index.concat(e.deleted_fields):e.user_prefs.field_index,getFieldStructure:e=>t=>c.ZP.findWhere(e.meta.form_structure,{name:t}),isFieldDeletedField:e=>t=>null!=e.deleted_fields.find((e=>e.name==t))},actions:{setLanguage(e){const{locale:t}=(0,o.QT)({useScope:"global"});t.value=e,this.ui_language=e},async downloadItems(){let e="https://dev-localhost.localdomain/"+this.endpoint;await a().get(e).then((e=>{this.meta=e.data.meta,this.deleted_fields=this.meta.deleted_fields,this.item_endpoint=this.meta.item_endpoint,this.data_type=this.meta.data_type,this.can_edit=this.meta.can_edit,this.show_modes=!0===this.meta.show_modes,this.enabled_exports=void 0!==this.meta.enabled_exports?this.meta.enabled_exports:[],this.default_field_index=this.meta.default_field_index,this.user_prefs=e.data.user_prefs,null!==this.user_prefs.pdf&&(this.pdf_prefs=this.user_prefs.pdf),this.extended_filters=void 0!==e.data.user_prefs.extended_filters?e.data.user_prefs.extended_filters:{};var t=(0,s.xT)(e.data.items,this.user_prefs.order_by,this.user_prefs.ascending);this.items=t,this.has_row_controls="answer"==this.data_type,this.downloading_items=!1})).catch((e=>{console.log(e)})).finally((()=>{this.downloading_items=!1}))},setOrderBy(e){this.user_prefs.order_by=e,this.page=1,this.items=(0,s.xT)(this.items,this.user_prefs.order_by,this.user_prefs.ascending),a().post(this.endpoint+"/order-by-field",{order_by_field_name:e}).then((function(e){})).catch((function(e){console.log(e)}))},setAscending(e){this.user_prefs.ascending=e,this.page=1,this.items=(0,s.xT)(this.items,this.user_prefs.order_by,this.user_prefs.ascending),this.searched_items.length&&(this.searched_items=(0,s.xT)(this.searched_items,this.user_prefs.order_by,this.user_prefs.ascending)),a().post(this.endpoint+"/toggle-ascending").then((function(e){})).catch((function(e){console.log(e)}))}}})},3811:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\n.modal-title {\n line-height: var(--lf-modal-title-line-height);\n font-size: 1.25rem !important;\n font-weight: lighter !important;\n}\n\n",""]),t.default=a},4584:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\n.ds-controls-height[data-v-5a3c677a] {\n min-height: 31px !important;\n}\n.ds-controls-title svg[data-v-5a3c677a] {\n color: var(--lf-link-color);\n cursor: pointer;\n}\n",""]),t.default=a},5807:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\n.ds-mt-n1[data-v-e627cbac] {\n margin-top: -1em;\n}\n.ds-controls-height[data-v-e627cbac] {\n min-height: 31px !important;\n}\n\n",""]),t.default=a},869:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\n.ds-controls-title svg {\n color: var(--lf-link-color);\n cursor: pointer;\n}\n.ds-button-container {\n display: flex;\n flex-wrap: wrap;\n gap: 0.25rem;\n}\n.ds-button-container > button {\n margin-top: 1em;\n}\n",""]),t.default=a},1511:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\na[data-v-441891a4] {\n color: var(--bs-body-color);\n text-decoration: none;\n}\n.ds-export-button[data-v-441891a4] {\n margin-left: .5rem;\n}\n",""]),t.default=a},746:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\n.ds-controls-height[data-v-2f6340bc] {\n min-height: 31px !important;\n}\n.ds-controls-title svg[data-v-2f6340bc] {\n color: var(--lf-link-color);\n cursor: pointer;\n}\n",""]),t.default=a},4459:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\n.ds-mt-n1[data-v-142a5867] {\n margin-top: -1em !important;\n}\n",""]),t.default=a},4926:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\n.ds-filter-label[data-v-46321830] {\n align-items: center;\n padding: 0.375rem 0.75rem;\n background-color: var(--lf-gray-100);\n border: 1px solid var(--lf-gray-300);\n white-space: nowrap;\n}\n.ds-option-filter[data-v-46321830] {\n white-space: nowrap;\n}\n\n",""]),t.default=a},3524:function(e,t,n){"use strict";n.r(t);var r=n(6738),o=n.n(r),i=n(7705),a=n.n(i)()(o());a.push([e.id,"\nhr[data-v-758fefef] {\n margin: 0;\n margin-left: -1em;\n margin-right: -1em;\n}\n",""]),t.default=a},6204:function(e,t,n){var r=n(3811);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("8b6504ce",r,!1,{})},3978:function(e,t,n){var r=n(4584);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("5d07e9e4",r,!1,{})},2416:function(e,t,n){var r=n(5807);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("e4559334",r,!1,{})},7959:function(e,t,n){var r=n(869);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("030e343a",r,!1,{})},2276:function(e,t,n){var r=n(1511);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("511d1eda",r,!1,{})},7481:function(e,t,n){var r=n(746);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("44757bb2",r,!1,{})},4261:function(e,t,n){var r=n(4459);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("7b05ff2c",r,!1,{})},922:function(e,t,n){var r=n(4926);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("4da611a5",r,!1,{})},340:function(e,t,n){var r=n(3524);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4023).Z)("b145d0e4",r,!1,{})},4023:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.d(t,{Z:function(){return h}}),n(4573);var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,u=0,l=!1,c=function(){},f=null,d="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){l=n,f=o||{};var a=r(e,t);return m(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o];(u=i[s.id]).refs--,n.push(u)}for(t?m(a=r(e,t)):a=[],o=0;o<n.length;o++){var u;if(0===(u=n[o]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete i[u.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(v(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(v(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(l)return c;r.parentNode.removeChild(r)}if(p){var o=u++;r=s||(s=g()),t=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=g(),t=E.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var _,y=(_=[],function(e,t){return _[e]=t,_.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function E(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute(d,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},2740:function(e,t,n){var r={"./ca.json":7958,"./cs.json":3031,"./de.json":3517,"./en.json":1700,"./eo.json":3310,"./es.json":6980,"./eu.json":2552,"./fr.json":6493,"./it.json":7253,"./pl.json":4112,"./pt_BR.json":1460,"./ru.json":5749,"./zh_Hans.json":4638,"./zh_Hant.json":1392};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2740},1311:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},3554:function(e,t,n){"use strict";n.d(t,{ZP:function(){return Wn}});var r={};n.r(r),n.d(r,{VERSION:function(){return o},after:function(){return Lt},all:function(){return en},allKeys:function(){return ge},any:function(){return tn},assign:function(){return Le},before:function(){return Dt},bind:function(){return wt},bindAll:function(){return xt},chain:function(){return _t},chunk:function(){return jn},clone:function(){return je},collect:function(){return Xt},compact:function(){return kn},compose:function(){return Pt},constant:function(){return K},contains:function(){return nn},countBy:function(){return vn},create:function(){return Fe},debounce:function(){return At},default:function(){return Vn},defaults:function(){return De},defer:function(){return Ct},delay:function(){return kt},detect:function(){return $t},difference:function(){return Nn},drop:function(){return xn},each:function(){return Yt},escape:function(){return at},every:function(){return en},extend:function(){return Pe},extendOwn:function(){return Le},filter:function(){return Kt},find:function(){return $t},findIndex:function(){return Ut},findKey:function(){return Ft},findLastIndex:function(){return Bt},findWhere:function(){return qt},first:function(){return Tn},flatten:function(){return Cn},foldl:function(){return Jt},foldr:function(){return Zt},forEach:function(){return Yt},functions:function(){return Ie},get:function(){return We},groupBy:function(){return mn},has:function(){return He},head:function(){return Tn},identity:function(){return $e},include:function(){return nn},includes:function(){return nn},indexBy:function(){return gn},indexOf:function(){return Wt},initial:function(){return Sn},inject:function(){return Jt},intersection:function(){return Pn},invert:function(){return Ae},invoke:function(){return rn},isArguments:function(){return G},isArray:function(){return q},isArrayBuffer:function(){return F},isBoolean:function(){return C},isDataView:function(){return $},isDate:function(){return P},isElement:function(){return N},isEmpty:function(){return ue},isEqual:function(){return me},isError:function(){return D},isFinite:function(){return J},isFunction:function(){return B},isMap:function(){return Te},isMatch:function(){return le},isNaN:function(){return Z},isNull:function(){return O},isNumber:function(){return R},isObject:function(){return x},isRegExp:function(){return L},isSet:function(){return Oe},isString:function(){return I},isSymbol:function(){return M},isTypedArray:function(){return oe},isUndefined:function(){return k},isWeakMap:function(){return xe},isWeakSet:function(){return ke},iteratee:function(){return Je},keys:function(){return se},last:function(){return On},lastIndexOf:function(){return Ht},map:function(){return Xt},mapObject:function(){return Ke},matcher:function(){return qe},matches:function(){return qe},max:function(){return sn},memoize:function(){return Ot},methods:function(){return Ie},min:function(){return un},mixin:function(){return Bn},negate:function(){return Rt},noop:function(){return Qe},now:function(){return rt},object:function(){return Mn},omit:function(){return wn},once:function(){return Mt},pairs:function(){return Ne},partial:function(){return Et},partition:function(){return _n},pick:function(){return En},pluck:function(){return on},property:function(){return Ye},propertyOf:function(){return et},random:function(){return nt},range:function(){return Fn},reduce:function(){return Jt},reduceRight:function(){return Zt},reject:function(){return Qt},rest:function(){return xn},restArguments:function(){return T},result:function(){return mt},sample:function(){return fn},select:function(){return Kt},shuffle:function(){return dn},size:function(){return yn},some:function(){return tn},sortBy:function(){return pn},sortedIndex:function(){return Vt},tail:function(){return xn},take:function(){return Tn},tap:function(){return Ue},template:function(){return ht},templateSettings:function(){return ut},throttle:function(){return Nt},times:function(){return tt},toArray:function(){return cn},toPath:function(){return Be},transpose:function(){return Ln},unescape:function(){return st},union:function(){return Rn},uniq:function(){return In},unique:function(){return In},uniqueId:function(){return vt},unzip:function(){return Ln},values:function(){return Ce},where:function(){return an},without:function(){return An},wrap:function(){return It},zip:function(){return Dn}}),n(4573);var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,s=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,l=a.push,c=a.slice,f=s.toString,d=s.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,_=p&&ArrayBuffer.isView,y=isNaN,b=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function T(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function x(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function O(e){return null===e}function k(e){return void 0===e}function C(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)}function N(e){return!(!e||1!==e.nodeType)}function A(e){var t="[object "+e+"]";return function(e){return f.call(e)===t}}var I=A("String"),R=A("Number"),P=A("Date"),L=A("RegExp"),D=A("Error"),M=A("Symbol"),F=A("ArrayBuffer"),j=A("Function"),U=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof U&&(j=function(e){return"function"==typeof e||!1});var B=j,V=A("Object"),z=h&&V(new DataView(new ArrayBuffer(8))),W="undefined"!=typeof Map&&V(new Map),H=A("DataView"),$=z?function(e){return null!=e&&B(e.getInt8)&&F(e.buffer)}:H,q=m||A("Array");function Y(e,t){return null!=e&&d.call(e,t)}var X=A("Arguments");!function(){X(arguments)||(X=function(e){return Y(e,"callee")})}();var G=X;function J(e){return!M(e)&&b(e)&&!isNaN(parseFloat(e))}function Z(e){return R(e)&&y(e)}function K(e){return function(){return e}}function Q(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=S}}function ee(e){return function(t){return null==t?void 0:t[e]}}var te=ee("byteLength"),ne=Q(te),re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,oe=p?function(e){return _?_(e)&&!$(e):ne(e)&&re.test(f.call(e))}:K(!1),ie=ee("length");function ae(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=w.length,r=e.constructor,o=B(r)&&r.prototype||s,i="constructor";for(Y(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=w[n])in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function se(e){if(!x(e))return[];if(g)return g(e);var t=[];for(var n in e)Y(e,n)&&t.push(n);return E&&ae(e,t),t}function ue(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&(q(e)||I(e)||G(e))?0===t:0===ie(se(e))}function le(e,t){var n=se(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0}function ce(e){return e instanceof ce?e:this instanceof ce?void(this._wrapped=e):new ce(e)}function fe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ce.VERSION=o,ce.prototype.value=function(){return this._wrapped},ce.prototype.valueOf=ce.prototype.toJSON=ce.prototype.value,ce.prototype.toString=function(){return String(this._wrapped)};var de="[object DataView]";function pe(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&he(e,t,n,r)}function he(e,t,n,r){e instanceof ce&&(e=e._wrapped),t instanceof ce&&(t=t._wrapped);var o=f.call(e);if(o!==f.call(t))return!1;if(z&&"[object Object]"==o&&$(e)){if(!$(t))return!1;o=de}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return u.valueOf.call(e)===u.valueOf.call(t);case"[object ArrayBuffer]":case de:return he(fe(e),fe(t),n,r)}var i="[object Array]"===o;if(!i&&oe(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(B(a)&&a instanceof a&&B(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),i){if((l=e.length)!==t.length)return!1;for(;l--;)if(!pe(e[l],t[l],n,r))return!1}else{var c,d=se(e);if(l=d.length,se(t).length!==l)return!1;for(;l--;)if(!Y(t,c=d[l])||!pe(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function me(e,t){return pe(e,t)}function ge(e){if(!x(e))return[];var t=[];for(var n in e)t.push(n);return E&&ae(e,t),t}function ve(e){var t=ie(e);return function(n){if(null==n)return!1;var r=ge(n);if(ie(r))return!1;for(var o=0;o<t;o++)if(!B(n[e[o]]))return!1;return e!==we||!B(n[_e])}}var _e="forEach",ye=["clear","delete"],be=["get","has","set"],Ee=ye.concat(_e,be),we=ye.concat(be),Se=["add"].concat(ye,_e,"has"),Te=W?ve(Ee):A("Map"),xe=W?ve(we):A("WeakMap"),Oe=W?ve(Se):A("Set"),ke=A("WeakSet");function Ce(e){for(var t=se(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function Ne(e){for(var t=se(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function Ae(e){for(var t={},n=se(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function Ie(e){var t=[];for(var n in e)B(e[n])&&t.push(n);return t.sort()}function Re(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),s=a.length,u=0;u<s;u++){var l=a[u];t&&void 0!==n[l]||(n[l]=i[l])}return n}}var Pe=Re(ge),Le=Re(se),De=Re(ge,!0);function Me(e){if(!x(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Fe(e,t){var n=Me(e);return t&&Le(n,t),n}function je(e){return x(e)?q(e)?e.slice():Pe({},e):e}function Ue(e,t){return t(e),e}function Be(e){return q(e)?e:[e]}function Ve(e){return ce.toPath(e)}function ze(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function We(e,t,n){var r=ze(e,Ve(t));return k(r)?n:r}function He(e,t){for(var n=(t=Ve(t)).length,r=0;r<n;r++){var o=t[r];if(!Y(e,o))return!1;e=e[o]}return!!n}function $e(e){return e}function qe(e){return e=Le({},e),function(t){return le(t,e)}}function Ye(e){return e=Ve(e),function(t){return ze(t,e)}}function Xe(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}}function Ge(e,t,n){return null==e?$e:B(e)?Xe(e,t,n):x(e)&&!q(e)?qe(e):Ye(e)}function Je(e,t){return Ge(e,t,1/0)}function Ze(e,t,n){return ce.iteratee!==Je?ce.iteratee(e,t):Ge(e,t,n)}function Ke(e,t,n){t=Ze(t,n);for(var r=se(e),o=r.length,i={},a=0;a<o;a++){var s=r[a];i[s]=t(e[s],s,e)}return i}function Qe(){}function et(e){return null==e?Qe:function(t){return We(e,t)}}function tt(e,t,n){var r=Array(Math.max(0,e));t=Xe(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ce.toPath=Be,ce.iteratee=Je;var rt=Date.now||function(){return(new Date).getTime()};function ot(e){var t=function(t){return e[t]},n="(?:"+se(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}var it={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},at=ot(it),st=ot(Ae(it)),ut=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},lt=/(.)^/,ct={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ft=/\\|'|\r|\n|\u2028|\u2029/g;function dt(e){return"\\"+ct[e]}var pt=/^\s*(\w|\$)+\s*$/;function ht(e,t,n){!t&&n&&(t=n),t=De({},t,ce.templateSettings);var r=RegExp([(t.escape||lt).source,(t.interpolate||lt).source,(t.evaluate||lt).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,(function(t,n,r,a,s){return i+=e.slice(o,s).replace(ft,dt),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t})),i+="';\n";var a,s=t.variable;if(s){if(!pt.test(s))throw new Error("variable is not a bare identifier: "+s)}else i="with(obj||{}){\n"+i+"}\n",s="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(s,"_",i)}catch(e){throw e.source=i,e}var u=function(e){return a.call(this,e,ce)};return u.source="function("+s+"){\n"+i+"}",u}function mt(e,t,n){var r=(t=Ve(t)).length;if(!r)return B(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=B(i)?i.call(e):i}return e}var gt=0;function vt(e){var t=++gt+"";return e?e+t:t}function _t(e){var t=ce(e);return t._chain=!0,t}function yt(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=Me(e.prototype),a=e.apply(i,o);return x(a)?a:i}var bt=T((function(e,t){var n=bt.placeholder,r=function(){for(var o=0,i=t.length,a=Array(i),s=0;s<i;s++)a[s]=t[s]===n?arguments[o++]:t[s];for(;o<arguments.length;)a.push(arguments[o++]);return yt(e,r,this,this,a)};return r}));bt.placeholder=ce;var Et=bt,wt=T((function(e,t,n){if(!B(e))throw new TypeError("Bind must be called on a function");var r=T((function(o){return yt(e,r,t,this,n.concat(o))}));return r})),St=Q(ie);function Tt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var o=r.length,i=0,a=ie(e);i<a;i++){var s=e[i];if(St(s)&&(q(s)||G(s)))if(t>1)Tt(s,t-1,n,r),o=r.length;else for(var u=0,l=s.length;u<l;)r[o++]=s[u++];else n||(r[o++]=s)}return r}var xt=T((function(e,t){var n=(t=Tt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=wt(e[r],e)}return e}));function Ot(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return Y(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}var kt=T((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Ct=Et(kt,ce,1);function Nt(e,t,n){var r,o,i,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:rt(),r=null,a=e.apply(o,i),r||(o=i=null)},l=function(){var l=rt();s||!1!==n.leading||(s=l);var c=t-(l-s);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),s=l,a=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=o=i=null},l}function At(e,t,n){var r,o,i,a,s,u=function(){var l=rt()-o;t>l?r=setTimeout(u,t-l):(r=null,n||(a=e.apply(s,i)),r||(i=s=null))},l=T((function(l){return s=this,i=l,o=rt(),r||(r=setTimeout(u,t),n&&(a=e.apply(s,i))),a}));return l.cancel=function(){clearTimeout(r),r=i=s=null},l}function It(e,t){return Et(t,e)}function Rt(e){return function(){return!e.apply(this,arguments)}}function Pt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Lt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Dt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Mt=Et(Dt,2);function Ft(e,t,n){t=Ze(t,n);for(var r,o=se(e),i=0,a=o.length;i<a;i++)if(t(e[r=o[i]],r,e))return r}function jt(e){return function(t,n,r){n=Ze(n,r);for(var o=ie(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}var Ut=jt(1),Bt=jt(-1);function Vt(e,t,n,r){for(var o=(n=Ze(n,r,1))(t),i=0,a=ie(e);i<a;){var s=Math.floor((i+a)/2);n(e[s])<o?i=s+1:a=s}return i}function zt(e,t,n){return function(r,o,i){var a=0,s=ie(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(c.call(r,a,s),Z))>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(r[i]===o)return i;return-1}}var Wt=zt(1,Ut,Vt),Ht=zt(-1,Bt);function $t(e,t,n){var r=(St(e)?Ut:Ft)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function qt(e,t){return $t(e,qe(t))}function Yt(e,t,n){var r,o;if(t=Xe(t,n),St(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=se(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function Xt(e,t,n){t=Ze(t,n);for(var r=!St(e)&&se(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=t(e[s],s,e)}return i}function Gt(e){var t=function(t,n,r,o){var i=!St(t)&&se(t),a=(i||t).length,s=e>0?0:a-1;for(o||(r=t[i?i[s]:s],s+=e);s>=0&&s<a;s+=e){var u=i?i[s]:s;r=n(r,t[u],u,t)}return r};return function(e,n,r,o){var i=arguments.length>=3;return t(e,Xe(n,o,4),r,i)}}var Jt=Gt(1),Zt=Gt(-1);function Kt(e,t,n){var r=[];return t=Ze(t,n),Yt(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Qt(e,t,n){return Kt(e,Rt(Ze(t)),n)}function en(e,t,n){t=Ze(t,n);for(var r=!St(e)&&se(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0}function tn(e,t,n){t=Ze(t,n);for(var r=!St(e)&&se(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1}function nn(e,t,n,r){return St(e)||(e=Ce(e)),("number"!=typeof n||r)&&(n=0),Wt(e,t,n)>=0}var rn=T((function(e,t,n){var r,o;return B(t)?o=t:(t=Ve(t),r=t.slice(0,-1),t=t[t.length-1]),Xt(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=ze(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function on(e,t){return Xt(e,Ye(t))}function an(e,t){return Kt(e,qe(t))}function sn(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ce(e)).length;s<u;s++)null!=(r=e[s])&&r>i&&(i=r);else t=Ze(t,n),Yt(e,(function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)}));return i}function un(e,t,n){var r,o,i=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,u=(e=St(e)?e:Ce(e)).length;s<u;s++)null!=(r=e[s])&&r<i&&(i=r);else t=Ze(t,n),Yt(e,(function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)}));return i}var ln=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function cn(e){return e?q(e)?c.call(e):I(e)?e.match(ln):St(e)?Xt(e,$e):Ce(e):[]}function fn(e,t,n){if(null==t||n)return St(e)||(e=Ce(e)),e[nt(e.length-1)];var r=cn(e),o=ie(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,a=0;a<t;a++){var s=nt(a,i),u=r[a];r[a]=r[s],r[s]=u}return r.slice(0,t)}function dn(e){return fn(e,1/0)}function pn(e,t,n){var r=0;return t=Ze(t,n),on(Xt(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function hn(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Ze(r,o),Yt(n,(function(t,o){var a=r(t,o,n);e(i,t,a)})),i}}var mn=hn((function(e,t,n){Y(e,n)?e[n].push(t):e[n]=[t]})),gn=hn((function(e,t,n){e[n]=t})),vn=hn((function(e,t,n){Y(e,n)?e[n]++:e[n]=1})),_n=hn((function(e,t,n){e[n?0:1].push(t)}),!0);function yn(e){return null==e?0:St(e)?e.length:se(e).length}function bn(e,t,n){return t in n}var En=T((function(e,t){var n={},r=t[0];if(null==e)return n;B(r)?(t.length>1&&(r=Xe(r,t[1])),t=ge(e)):(r=bn,t=Tt(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var a=t[o],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),wn=T((function(e,t){var n,r=t[0];return B(r)?(r=Rt(r),t.length>1&&(n=t[1])):(t=Xt(Tt(t,!1,!1),String),r=function(e,n){return!nn(t,n)}),En(e,r,n)}));function Sn(e,t,n){return c.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Tn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Sn(e,e.length-t)}function xn(e,t,n){return c.call(e,null==t||n?1:t)}function On(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:xn(e,Math.max(0,e.length-t))}function kn(e){return Kt(e,Boolean)}function Cn(e,t){return Tt(e,t,!1)}var Nn=T((function(e,t){return t=Tt(t,!0,!0),Kt(e,(function(e){return!nn(t,e)}))})),An=T((function(e,t){return Nn(e,t)}));function In(e,t,n,r){C(t)||(r=n,n=t,t=!1),null!=n&&(n=Ze(n,r));for(var o=[],i=[],a=0,s=ie(e);a<s;a++){var u=e[a],l=n?n(u,a,e):u;t&&!n?(a&&i===l||o.push(u),i=l):n?nn(i,l)||(i.push(l),o.push(u)):nn(o,u)||o.push(u)}return o}var Rn=T((function(e){return In(Tt(e,!0,!0))}));function Pn(e){for(var t=[],n=arguments.length,r=0,o=ie(e);r<o;r++){var i=e[r];if(!nn(t,i)){var a;for(a=1;a<n&&nn(arguments[a],i);a++);a===n&&t.push(i)}}return t}function Ln(e){for(var t=e&&sn(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=on(e,r);return n}var Dn=T(Ln);function Mn(e,t){for(var n={},r=0,o=ie(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Fn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function jn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(c.call(e,r,r+=t));return n}function Un(e,t){return e._chain?ce(t).chain():t}function Bn(e){return Yt(Ie(e),(function(t){var n=ce[t]=e[t];ce.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),Un(this,n.apply(ce,e))}})),ce}Yt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];ce.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Un(this,n)}})),Yt(["concat","join","slice"],(function(e){var t=a[e];ce.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Un(this,e)}}));var Vn=ce,zn=Bn(r);zn._=zn;var Wn=zn},2415:function(e,t,n){"use strict";n.d(t,{WB:function(){return y},Q_:function(){return C}});var r=n(2343),o=n(6229);let i;n(4573);const a=e=>i=e,s=Symbol();function u(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var l;!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(l||(l={}));const c="undefined"!=typeof window,f=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function d(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){v(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function p(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function h(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const m="object"==typeof navigator?navigator:{userAgent:""},g=(()=>/Macintosh/.test(m.userAgent)&&/AppleWebKit/.test(m.userAgent)&&!/Safari/.test(m.userAgent))(),v=c?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!g?function(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"==typeof e?(r.href=e,r.origin!==location.origin?p(r.href)?d(e,t,n):(r.target="_blank",h(r)):h(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){h(r)}),0))}:"msSaveOrOpenBlob"in m?function(e,t="download",n){if("string"==typeof e)if(p(e))d(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){h(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return d(e,t,n);const o="application/octet-stream"===e.type,i=/constructor/i.test(String(f.HTMLElement))||"safari"in f,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&i||g)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw r=null,new Error("Wrong reader.result type");e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{},{assign:_}=Object;function y(){const e=(0,r.B)(!0),t=e.run((()=>(0,r.iH)({})));let n=[],o=[];const i=(0,r.Xl)({install(e){a(i),i._a=e,e.provide(s,i),e.config.globalProperties.$pinia=i,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const b=()=>{};function E(e,t,n,o=b){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&(0,r.nZ)()&&(0,r.EB)(i),i}function w(e,...t){e.slice().forEach((e=>{e(...t)}))}const S=e=>e();function T(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],i=e[n];u(i)&&u(o)&&e.hasOwnProperty(n)&&!(0,r.dq)(o)&&!(0,r.PG)(o)?e[n]=T(i,o):e[n]=o}return e}const x=Symbol(),{assign:O}=Object;function k(e,t,n={},i,s,c){let f;const d=O({actions:{}},n),p={deep:!0};let h,m,g,v=[],_=[];const y=i.state.value[e];let k;function C(t){let n;h=m=!1,"function"==typeof t?(t(i.state.value[e]),n={type:l.patchFunction,storeId:e,events:g}):(T(i.state.value[e],t),n={type:l.patchObject,payload:t,storeId:e,events:g});const r=k=Symbol();(0,o.Y3)().then((()=>{k===r&&(h=!0)})),m=!0,w(v,n,i.state.value[e])}c||y||(i.state.value[e]={}),(0,r.iH)({});const N=c?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{O(e,t)}))}:b;function A(t,n){return function(){a(i);const r=Array.from(arguments),o=[],s=[];function u(e){o.push(e)}function l(e){s.push(e)}let c;w(_,{args:r,name:t,store:R,after:u,onError:l});try{c=n.apply(this&&this.$id===e?this:R,r)}catch(e){throw w(s,e),e}return c instanceof Promise?c.then((e=>(w(o,e),e))).catch((e=>(w(s,e),Promise.reject(e)))):(w(o,c),c)}}const I={_p:i,$id:e,$onAction:E.bind(null,_),$patch:C,$reset:N,$subscribe(t,n={}){const r=E(v,t,n.detached,(()=>a())),a=f.run((()=>(0,o.YP)((()=>i.state.value[e]),(r=>{("sync"===n.flush?m:h)&&t({storeId:e,type:l.direct,events:g},r)}),O({},p,n))));return r},$dispose:function(){f.stop(),v=[],_=[],i._s.delete(e)}},R=(0,r.qj)(I);i._s.set(e,R);const P=(i._a&&i._a.runWithContext||S)((()=>i._e.run((()=>(f=(0,r.B)()).run(t)))));for(const t in P){const n=P[t];if((0,r.dq)(n)&&(D=n,!(0,r.dq)(D)||!D.effect)||(0,r.PG)(n))c||(!y||u(L=n)&&L.hasOwnProperty(x)||((0,r.dq)(n)?n.value=y[t]:T(n,y[t])),i.state.value[e][t]=n);else if("function"==typeof n){const e=A(t,n);P[t]=e,d.actions[t]=n}}var L,D;return O(R,P),O((0,r.IU)(R),P),Object.defineProperty(R,"$state",{get:()=>i.state.value[e],set:e=>{C((t=>{O(t,e)}))}}),i._p.forEach((e=>{O(R,f.run((()=>e({store:R,app:i._a,pinia:i,options:d}))))})),y&&c&&n.hydrate&&n.hydrate(R.$state,y),h=!0,m=!0,R}function C(e,t,n){let u,l;const c="function"==typeof t;function f(e,n){const f=(0,o.EM)();return(e=e||(f?(0,o.f3)(s,null):null))&&a(e),(e=i)._s.has(u)||(c?k(u,t,l,e):function(e,t,n,i){const{state:s,actions:u,getters:l}=t,c=n.state.value[e];let f;f=k(e,(function(){c||(n.state.value[e]=s?s():{});const t=(0,r.BK)(n.state.value[e]);return O(t,u,Object.keys(l||{}).reduce(((t,i)=>(t[i]=(0,r.Xl)((0,o.Fl)((()=>{a(n);const t=n._s.get(e);return l[i].call(t,t)}))),t)),{}))}),t,n,0,!0)}(u,l,e)),e._s.get(u)}return"string"==typeof e?(u=e,l=c?n:t):(l=e,u=e.id),f.$id=u,f}},7958:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Mostrant {filtered} de {total}","Mark for reference":"Anotar","Marked":"Anotat","Delete answer":"Esborra resposta","Loading...":"Carregant...","No data":"Sense dades","Close":"Tancar","Edit":"Editar","Save":"Desar","Copy":"Copiar","Export":"Exportar","Expand filter options":"Expandir opcions de filtre","Collapse filter options":"Col·lapsar opcions de filtre","Graphs":"Gràfics","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtrar ...","Filter text":"Filtrar text","Clear filter":"Netejar filtre","Order by":"Ordenar por","Order data by this field":"Endreçar dades per aquest camp","Toggle ascending order":"Alternar ordre ascendent","First field":"Primer camp","Select first field to display":"Seleccionar el primer camp a mostrar","Reset":"Reiniciar","Table":"Graella","Cards":"Tarjetes","Delete all":"Esborrar tot","Deleted fields":"Camps esborrats","True":"Cert","False":"Fals","Previous":"Anterior","Next":"Següent","Name":"Nom","Created":"Creat","Author":"Autor","Public":"Públic","Last answer":"Darrera resposta","Answers":"Respostes","Users":"Usuaris","User name":"Nom d\'usuari","Enabled":"Habilitat","Email":"Correu electrònic","Forms":"Formularis","Admin":"Admin","Shared":"Compartit","Empty":"Buit","Expand":"Expandir","Collapse":"Colapsar","Portrait":"Retrat","Landscape":"Paisatge","Font size":"Mida de la lletra","Select font size":"Seleccionar la mida de la lletra","Page":"Pàgina","Page orientation":"Page orientation","Export these fields":"Exporta aquests camps","Only export marked":"Exportar només els anotats","Download PDF":"Descarregar PDF","Cancel":"Cancel·lar","Totals":"Total","Role":"Rol","Disk usage":"Ús del disc","Options":"Opcions"}')},3031:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Mark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"Export these fields","Only export marked":"","Download PDF":"","Cancel":"","Totals":""}')},3517:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Anzeige {filtered} von {total}","Mark for reference":"Als Referenz markieren","Delete answer":"Antwort löschen","Loading...":"Wird geladen …","No data":"Keine Daten","Close":"Schließen","Edit":"Bearbeiten","Save":"Speichern","Copy":"Copy","Export":"Export","Expand filter options":"Filteroptionen erweitern","Collapse filter options":"Filteroptionen einklappen","Graphs":"Schaubilder","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtern …","Filter text":"Text filtern","Clear filter":"Filter löschen","Order by":"Sortieren nach","Order data by this field":"Daten nach diesem Feld sortieren","Toggle ascending order":"Aufsteigende Reihenfolge umschalten","First field":"Erstes Feld","Select first field to display":"Wählen Sie das erste Feld, das angezeigt werden soll","Reset":"Zurücksetzen","Table":"Tabelle","Cards":"Karten","Delete all":"Alle löschen","Deleted fields":"Gelöschte Felder","True":"Wahr","False":"Falsch","Previous":"Vorherige","Next":"Nächste","Name":"Name","Created":"Erstellt","Author":"Autor","Public":"Öffentlich","Last answer":"Letzte Antwort","Answers":"Antworten","Users":"Benutzer","User name":"Benutzername","Enabled":"Aktiviert","Email":"E-Mail","Forms":"Formulare","Admin":"Admin","Shared":"Geteilt","Empty":"Leer","Expand":"Erweitern","Collapse":"Einklappen","Portrait":"Porträt","Landscape":"Landschaft","Font size":"Schriftgröße","Select font size":"Schriftgröße auswählen","Page":"Seite","Page orientation":"Page orientation","Export these fields":"Export these fields","Download PDF":"","Cancel":"","Only export marked":"","Marked":""}')},1700:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Displaying {filtered} of {total}","Mark for reference":"Mark for reference","Marked":"Marked","Delete answer":"Delete answer","Loading...":"Loading...","No data":"No data","Close":"Close","Edit":"Edit","Save":"Save","Copy":"Copy","Export":"Export","Expand filter options":"Expand filter options","Collapse filter options":"Collapse filter options","Graphs":"Graphs","CSV":"CSV","JSON":"JSON","PDF":"PDF","Search":"Search","Clear filter":"Clear filter","Order by":"Order by","Order data by this field":"Order data by this field","Toggle ascending order":"Toggle ascending order","First field":"First field","Select first field to display":"Select first field to display","Reset":"Reset","Table":"Table","Cards":"Cards","Options":"Options","Delete":"Delete","Delete options":"Delete options","Delete all":"Delete all","Include deleted fields":"Include deleted fields","This cannot be undone!":"This cannot be undone!","Show more":"Show more","True":"True","False":"False","Previous":"Previous","Next":"Next","Displaying {number} of {total}":"Displaying {number} of {total}","Name":"Name","Created":"Created","Author":"Author","Public":"Public","Last answer":"Last answer","Answers":"Answers","Users":"Users","User name":"User name","Enabled":"Enabled","Email":"Email","Role":"Role","Disk usage":"Disk usage","Forms":"Forms","Admin":"Admin","Shared":"Shared","Empty":"Empty","Expand":"Expand","Collapse":"Collapse","Portrait":"Portrait","Landscape":"Landscape","Font size":"Font size","Select font size":"Select font size","Page":"Page","Page orientation":"Page orientation","Export these fields":"Export these fields","Only export marked":"Only export marked","Download PDF":"Download PDF","Cancel":"Cancel","Total":"Total","Totals":"Totals","Most recent":"Most recent","Data submitted on the %date%":"Data submitted on the %date%","Filters":"Filters","Clear":"Clear","Select a field option":"Select a field","Select field options":"Select field options","All fields":"All fields","Chronology":"Chronology","Numbers":"Numbers"}')},3310:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Montrante {filtered} el {total}","Mark for reference":"Marki por referenco","Marked":"Markita","Delete answer":"Forviŝi respondon","Loading...":"Ŝargante…","No data":"Neniu dateno","Close":"Fermi","Edit":"Redakti","Save":"Konservi","Copy":"Copy","Export":"Export","Expand filter options":"Etendi filtrilajn opciojn","Collapse filter options":"Maletendi filtrilajn opciojn","Graphs":"Grafoj","CSV":"Kome disigitaj valoroj","JSON":"JSON","PDF":"PDF","Filter ...":"Filtri…","Filter text":"Filtri tekston","Clear filter":"Forigi filtrilon","Order by":"Ordigi laŭ","Order data by this field":"Ordigi datenojn laŭ ĉi tiu kampo","Toggle ascending order":"Baskuligi kreskan ordon","First field":"Unua kampo","Select first field to display":"Elektu unue montrotan kampon","Reset":"Restarigi","Table":"Tabelo","Cards":"Kartoj","Delete all":"Forviŝi ĉiujn","Deleted fields":"Forviŝitaj kampoj","True":"Vera","False":"Malvera","Previous":"Antaŭa","Next":"Sekva","Name":"Nomo","Created":"Kreita","Author":"Aŭtoro","Public":"Publika","Last answer":"Lasta respondo","Answers":"Respondoj","Users":"Uzantoj","User name":"Salutnomo","Enabled":"Ŝaltita","Email":"Retpoŝta adreso","Forms":"Formularoj","Admin":"Administro","Shared":"Kunhavigita","Empty":"Malplena","Expand":"Etendi","Collapse":"Maletendi","Portrait":"Vertikala","Landscape":"Horizontala","Font size":"Grando de tiparoj","Select font size":"Elekti grandon de tiparoj","Page":"Paĝo","Page orientation":"Page orientation","Export these fields":"Export these fields","Only export marked":"Nur elporti markitaĵojn","Cancel":"Nuligi","Download PDF":"Elŝuti PDF-dosieron","Totals":"Sumoj","Role":"Rolo","Disk usage":"Diska uzado"}')},6980:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Mostrando {filtered} de {total}","Mark for reference":"Marcar como referencia","Marked":"Marcado","Delete answer":"Eliminar respuesta","Loading...":"Cargando…","No data":"Sin datos","Close":"Cerrar","Edit":"Editar","Save":"Guardar","Copy":"Copiar","Export":"Exportar","Expand filter options":"Expandir opciones de filtro","Collapse filter options":"Contraer opciones de filtro","Graphs":"Gráficos","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"FIltrar …","Filter text":"Filtrar texto","Clear filter":"Limpiar filtro","Order by":"Ordenar por","Order data by this field":"Ordenar los datos según este campo","Toggle ascending order":"Conmutar orden ascendente","First field":"Primer campo","Select first field to display":"Seleccionar el primer campo a mostrar","Reset":"Restablecer","Table":"Tabla","Cards":"Tarjetas","Delete all":"Eliminar todos","Deleted fields":"Campos eliminados","True":"Cierto","False":"Falso","Previous":"Anterior","Next":"Siguiente","Name":"Nombre","Created":"Creado","Author":"Autora","Public":"Público","Last answer":"Última respuesta","Answers":"Respuestas","Users":"Usuarios","User name":"Nombre de usuaria","Enabled":"Habilitado","Email":"Correo electrónico","Forms":"Formularios","Admin":"Admin","Shared":"Compartido","Empty":"Vacío","Expand":"Expandir","Collapse":"Contraer","Portrait":"Vertical","Landscape":"Horizontal","Font size":"Tamaño de letra","Select font size":"Seleccionar el tamaño de la letra","Page":"Página","Page orientation":"Page orientation","Export these fields":"Export these fields","Only export marked":"Solamente exportar marcados","Download PDF":"Descargar PDF","Cancel":"Cancelar","Totals":"Totales","Role":"Rol","Disk usage":"Uso de disco"}')},2552:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"{total}(e)tik {filtered} erakusten","Mark for reference":"Markatu erreferentzia gisa","Marked":"Markatuta","Delete answer":"Ezabatu erantzuna","Loading...":"Kargatzen...","No data":"Daturik ez","Close":"Itxi","Edit":"Editatu","Save":"Gorde","Copy":"Kopiatu","Export":"Esportatu","Expand filter options":"Hedatu iragazteko aukerak","Collapse filter options":"Tolestu iragazki-aukerak","Graphs":"Grafikoak","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Iragazi ...","Filter text":"Iragazi testua","Clear filter":"Garbitu iragazkia","Order by":"Ordenatu honela:","Order data by this field":"Ordenatu datuak eremu honen arabera","Toggle ascending order":"Txandakatu goranzko eta beheranzko ordena","First field":"Lehen eremua","Select first field to display":"Aukeratu zein eremu bistaratu lehenengo","Reset":"Berrezarri","Table":"Taula","Cards":"Txartelak","Delete all":"Ezabatu guztiak","Deleted fields":"Ezabatutako eremuak","True":"Egia","False":"Gezurra","Previous":"Aurrekoa","Next":"Hurrengoa","Name":"Izena","Created":"Sortuta","Author":"Egilea","Public":"Publikoa","Last answer":"Azken erantzuna","Answers":"Erantzunak","Users":"Erabiltzaileak","User name":"Erabiltzaile-izena","Enabled":"Gaituta","Email":"Eposta","Forms":"Galdetegiak","Admin":"Administratzailea","Shared":"Partekatua","Empty":"Hutsik","Expand":"Hedatu","Collapse":"Tolestu","Portrait":"Bertikala","Landscape":"Horizontala","Font size":"Letraren tamaina","Select font size":"Aukeratu letraren tamaina","Page":"Orrialdea","Page orientation":"Orriaren orientazioa","Export these fields":"Eremu hauek esportatu","Only export marked":"Markatutakoak soilik esportatu","Download PDF":"Deskargatu PDFa","Cancel":"Utzi","Totals":"Guztira","Disk usage":"Diskaren erabilera","Role":"Rola","Options":"Aukerak"}')},6493:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Affichage {filtered} de {total}","Mark for reference":"Marquer pour référence","Delete answer":"Supprimer la réponse","Loading...":"Chargement…","No data":"Aucune donnée","Close":"Fermer","Edit":"Modifier","Save":"Enregistrer","Copy":"Copy","Export":"Export","Expand filter options":"Développer les options de filtrage","Collapse filter options":"Réduire les options de filtrage","Graphs":"Graphiques","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtre…","Filter text":"Filtrer le texte","Clear filter":"Effacer le filtre","Order by":"Ordonner par","Order data by this field":"Ordonner les données par ce champ","Toggle ascending order":"Activer/désactiver l\'ordre croissant","First field":"Premier champ","Select first field to display":"Sélectionnez le premier champ à afficher","Reset":"Réinitialiser","Table":"Tableau","Cards":"Cartes","Delete all":"Tout supprimer","Deleted fields":"Champs supprimés","True":"Vrai","False":"Faux","Previous":"Précédent","Next":"Suivant","Name":"Nom","Created":"Créé","Author":"Auteur","Public":"Public","Last answer":"Dernière réponse","Answers":"Réponses","Users":"Utilisateurs","User name":"Nom d\'utilisateur","Enabled":"Activé","Email":"Courriel","Forms":"Formulaires","Admin":"Admin","Shared":"Partagé","Empty":"Vide","Expand":"Développer","Collapse":"Réduire","Portrait":"Portrait","Landscape":"Paysage","Font size":"Taille de la police","Select font size":"Sélectionnez la taille de la police","Page":"Page","Page orientation":"Page orientation","Export these fields":"Export these fields","Marked":"Marqué","Only export marked":"Exporter seulement les marqués","Cancel":"Annuler","Download PDF":"Télécharger le PDF","Role":"Rôle","Disk usage":"Utilisation du disque","Totals":"Totaux"}')},7253:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Visualizzazione {filtered} di {total}","Mark for reference":"Segna come riferimento","Delete answer":"Elimina la risposta","Loading...":"Caricamento…","No data":"Nessuna informazione","Close":"Chiudi","Edit":"Modifica","Save":"Salva","Copy":"Copy","Export":"Export","Expand filter options":"Espandi le opzioni di filtraggio","Collapse filter options":"Chiudi le opzioni di filtraggio","Graphs":"Grafici","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtra …","Filter text":"Filtra il testo","Clear filter":"Resetta il filtro","Order by":"Ordina per","Order data by this field":"Ordina i dati secondo questo campo","Toggle ascending order":"Cambia l’ordine","First field":"Primo campo","Select first field to display":"Seleziona il primo campo da mostrare","Reset":"Reset","Table":"Tabella","Cards":"Schede","Delete all":"Elimina tutti","Deleted fields":"Campi eliminati","True":"Vero","False":"Falso","Previous":"Precedente","Next":"Successivo","Name":"Nome","Created":"Creato","Author":"Autore","Public":"Pubblico","Last answer":"Ultima risposta","Answers":"Risposte","Users":"Utenti","User name":"Nome dell’utente","Enabled":"Attivato","Email":"E-mail","Forms":"Moduli","Admin":"Amministratore","Shared":"Condivisa","Empty":"Vuota","Expand":"Espendi","Collapse":"Chiudi","Portrait":"Verticale","Landscape":"Orizzontale","Font size":"Dimensione del font","Select font size":"Seleziona la dimensione del font","Page":"Formato pagina","Page orientation":"Page orientation","Export these fields":"Export these fields","Cancel":"Cancella","Only export marked":"Esporta solo gli elementi segnati","Marked":"Segnato","Download PDF":"Scarica il PDF","Role":"Ruolo","Disk usage":"Utilizzo della memoria","Totals":"Totale"}')},4112:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Wyświetlono {filtered} z {total}","Mark for reference":"Oznaczenie do wglądu","Marked":"Oznaczone","Delete answer":"Usuń odpowiedź","Loading...":"Ładowanie...","No data":"Brak danych","Close":"Zamknij","Edit":"Edytuj","Save":"Zapisz","Copy":"Copy","Export":"Export","Expand filter options":"Rozwiń opcje filtrowania","Collapse filter options":"Zwiń opcje filtrowania","Graphs":"Wykresy","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtruj...","Filter text":"Filtruj tekst","Clear filter":"Wyczyść filtrowanie","Order by":"Sortuj według","Order data by this field":"Posortuj dane według tego pola","Toggle ascending order":"Przełącz kolejność rosnącą","First field":"Pierwsze pole","Select first field to display":"Wybierz pierwsze pole do wyświetlenia","Reset":"Resetuj","Table":"Tabela","Cards":"Karty","Delete all":"Usuń wszystko","Deleted fields":"Usunięte pola","True":"Prawda","False":"Fałsz","Previous":"Poprzedni","Next":"Następny","Name":"Nazwa","Created":"Utworzono","Author":"Autor","Public":"Publiczne","Last answer":"Ostatnia odpowiedź","Answers":"Odpowiedzi","Users":"Użytkownicy","User name":"Nazwa użytkownika","Enabled":"Włączone","Email":"E-mail","Role":"Funkcja","Disk usage":"Wykorzystanie dysku","Forms":"Formularze","Admin":"Administrator","Shared":"Udostępnione","Empty":"Puste","Expand":"Rozwiń","Collapse":"Zwiń","Portrait":"Portret","Landscape":"Krajobraz","Font size":"Rozmiar czcionki","Select font size":"Wybierz rozmiar czcionki","Page":"Strona","Page orientation":"Page orientation","Export these fields":"Export these fields","Only export marked":"Oznaczony jako tylko do eksportu","Download PDF":"Pobierz PDF","Cancel":"Anuluj","Totals":"Razem"}')},1460:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Mark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"","Only export marked":"","Download PDF":"","Cancel":"","Totals":""}')},5749:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Отображение {filtered} значения {total}","Mark for reference":"Пометка для справки","Marked":"Отмечено!","Delete answer":"Удалить ответ","Loading...":"Загрузка…","No data":"Нет данных","Close":"Закрыть","Edit":"Редактировать","Save":"Сохранить (Save)","Copy":"Копировать (Copy)","Export":"Экспортировать","Expand filter options":"Расширение параметров фильтра","Collapse filter options":"Параметры фильтра сворачивания","Graphs":"Графики","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Фильтр...","Filter text":"Фильтровать текст","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Options":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"Последний ответ","Answers":"Ответы","Users":"Пользователи","User name":"Имя пользователя","Enabled":"Включено","Email":"Электронная почта","Role":"Роль","Disk usage":"Использование диска","Forms":"Формы","Admin":"Администратор","Shared":"Общий","Empty":"Пусто","Expand":"Развернуть","Collapse":"Коллапс","Portrait":"Портрет","Landscape":"Альбом","Font size":"Размер шрифта","Select font size":"Выбрать размер шрифта","Page":"Страница","Page orientation":"","Export these fields":"Экспорт этих областей","Only export marked":"Только экспорт","Download PDF":"Скачать PDF","Cancel":"Отмена","Totals":"Итого"}')},4638:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Mark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"","Only export marked":"","Download PDF":"","Cancel":"","Totals":""}')},1392:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Mark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"","Only export marked":"","Download PDF":"","Cancel":"","Totals":""}')}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,e=[],s.O=function(t,n,r,o){if(!n){var i=1/0;for(c=0;c<e.length;c++){n=e[c][0],r=e[c][1],o=e[c][2];for(var a=!0,u=0;u<n.length;u++)(!1&o||i>=o)&&Object.keys(s.O).every((function(e){return s.O[e](n[u])}))?n.splice(u--,1):(a=!1,o<i&&(i=o));if(a){e.splice(c--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o]},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);s.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},s.d(o,i),o},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,n){return s.f[n](e,t),t}),[]))},s.u=function(e){return e+".js"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="data-display:",s.l=function(e,t,n,i){if(r[e])r[e].push(t);else{var a,u;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var f=l[c];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==o+n){a=f;break}}a||(u=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",o+n),a.src=e),r[e]=[t];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),u&&document.head.appendChild(a)}},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e}(),function(){var e={827:0};s.f.j=function(t,n){var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=s.p+s.u(t),a=new Error;s.l(i,(function(n){if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}},s.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,i=n[0],a=n[1],u=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(u)var c=u(s)}for(t&&t(n);l<i.length;l++)o=i[l],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return s.O(c)},n=self.webpackChunkdata_display=self.webpackChunkdata_display||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var u={};!function(){"use strict";var e=s(341),t=s(2415),n=s(2596),r=s(159),o=s(6229),i={name:"SlideUpDown",props:{active:Boolean,duration:{type:Number,default:500},tag:{type:String,default:"div"},useHidden:{type:Boolean,default:!0}},data:()=>({style:{},initial:!1,hidden:!1}),watch:{active(){this.layout()}},render(){return(0,o.h)(this.tag,{...this.attrs,style:this.style,ref:"container",onTransitionend:this.onTransitionEnd},this.$slots.default())},mounted(){this.layout(),this.initial=!0},created(){this.hidden=!this.active},computed:{el(){return this.$refs.container},attrs(){const e={"aria-hidden":!this.active,"aria-expanded":this.active};return this.useHidden&&(e.hidden=this.hidden),e}},methods:{layout(){this.active?(this.hidden=!1,this.$emit("open-start"),this.initial&&this.setHeight("0px",(()=>this.el.scrollHeight+"px"))):(this.$emit("close-start"),this.setHeight(this.el.scrollHeight+"px",(()=>"0px")))},asap(e){this.initial?this.$nextTick(e):e()},setHeight(e,t){this.style={height:e},this.asap((()=>{this.__=this.el.scrollHeight,this.style={height:t(),overflow:"hidden","transition-property":"height","transition-duration":this.duration+"ms"}}))},onTransitionEnd(e){e.target===this.el&&(this.active?(this.style={},this.$emit("open-end")):(this.style={height:"0",overflow:"hidden"},this.hidden=!0,this.$emit("close-end")))}}},a=s(2502);const u={key:0},l={key:0,class:"ds-loading"};var c=s(4559),f=s.n(c),d=s(3895);const p={class:""},h={class:"mt-3"},m={key:0,class:"mt-3 ds-controls-height"},g={class:"ds-button-container"},v={class:"mt-4"},y={class:"mt-2 ds-button-container"},b={key:0,class:"mt-3"},E={key:1,class:"mt-3"},w={key:2,class:"mt-3"},S=["innerHTML"],T={class:"ds-controls-height ds-button-container"},x={key:0},O={class:"mt-3"},k={class:"d-flex flex-wrap flex-md-nowrap align-items-center justify-content-between"},C=["innerHTML"],N={class:"ds-controls-height ds-button-container"},A={key:0,class:"mt-2 ds-controls-height ds-button-container"},I={key:1,class:"mt-2"},R={key:2,class:"mt-2"},P={class:"mt-3"},L={class:"mt-3"},D={class:"mt-3"},M=["innerHTML"],F={class:"mt-2"},j=["innerHTML"];var U=s(9371),B=s(2343),V=s(9404);const z={class:"grid ds-container-filters"},W={key:0,class:"g-col-12 g-col-md-4"},H={class:"g-col-12 g-col-md-4"},$={class:"input-group flex-nowrap"},q={class:"input-group-text"},Y=["selected","value"],X={class:"g-col-12 g-col-md-4"},G={class:"input-group flex-nowrap"},J={class:"input-group-text"},Z=["selected","value"];s(3554);var K=s(3903);const Q={class:"input-group"},ee=["placeholder"],te=["aria-label"],ne=["aria-label"];var re={name:"SearchText",components:{SearchIcon:V.W1M,SkipBackIcon:V.tSX},setup(){const e=(0,d.i)(),t=(0,B.iH)("");return(0,o.YP)((0,o.Fl)((()=>t.value)),(()=>{""==t.value&&(e.search_text=t.value,e.searched_items=[])})),{search_text:t,searchText:function(){let n=t.value.toLowerCase();var r=_.filter(e.items,(function(t){if(-1!==t.created.indexOf(n))return t;for(var r in t.data){var o=t.data[r];if(void 0!==o.value&&(o=o.value),o=e.getFormattedValue({field_name:r,field_value:o}),-1!==(o=String(o).toLowerCase()).indexOf(n))return t}}));e.search_text=t.value,e.searched_items=r},clearText:function(){t.value=""}}}},oe=s(6021),ie=(0,oe.Z)(re,[["render",function(t,n,r,i,a,s){const u=(0,o.up)("SkipBackIcon"),l=(0,o.up)("SearchIcon");return(0,o.wg)(),(0,o.iD)("div",Q,[(0,o.wy)((0,o._)("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>i.search_text=e),class:"form-control",onKeyup:n[1]||(n[1]=(0,e.withKeys)((e=>i.searchText()),["enter"])),placeholder:t.$t("Search"),"aria-describedby":"button-to-search"},null,40,ee),[[e.vModelText,i.search_text]]),(0,o._)("button",{class:"btn btn-outline-secondary appended-button",id:"button-to-clear-search",type:"button","aria-label":t.$t("Clear"),onClick:n[2]||(n[2]=e=>i.clearText())},[(0,o.Wm)(u,{size:"1.1x","aria-label":t.$t("Clear")},null,8,["aria-label"])],8,te),(0,o._)("button",{class:"btn btn-outline-secondary appended-button",id:"button-to-search",type:"button","aria-label":t.$t("Search"),onClick:n[3]||(n[3]=e=>i.searchText())},[(0,o.Wm)(l,{size:"1.1x","aria-label":t.$t("Search")},null,8,["aria-label"])],8,ne)])}]]),ae={name:"ItemControls",components:{SearchText:ie,XIcon:V.b0D,ArrowUpIcon:V.Hf3,ArrowDownIcon:V.veu,RotateCcwIcon:V.kQJ},setup(){const e=(0,d.i)(),{t:t}=(0,U.QT)({useScope:"global"}),n=(0,B.iH)(e.user_prefs.ascending),r=(0,o.Fl)((()=>"marked"!=e.user_prefs.field_index[0].name?e.user_prefs.field_index[0]:e.user_prefs.field_index[1]));return{xs_screen:(0,o.f3)("xs_screen"),default_field_index:e.default_field_index,order_by:(0,o.Fl)((()=>e.user_prefs.order_by)),first_field:r,setOrderBy:e.setOrderBy,changeIndex:function(t){let n=t.target.value;var r=JSON.parse(JSON.stringify(e.user_prefs.field_index)),o=null;e.has_row_controls&&(o=r.shift());let i=r.findIndex((e=>e.name===n));var a=r[i];r.splice(i,1),r.splice(0,0,a),o&&r.splice(0,0,o),e.user_prefs.field_index=r,f().post(e.endpoint+"/change-index",{field_index:r}).then((function(t){e.user_prefs.field_index=t.data.field_index})).catch((function(e){console.log(e)}))},resetFieldIndex:function(){e.user_prefs.field_index=e.default_field_index,f().post(e.endpoint+"/reset-index").then((function(t){e.user_prefs.field_index=t.data.field_index})).catch((function(e){console.log(e)})).finally((function(){}))},toggleAscending:function(t){n.value=!n.value,e.setAscending(n.value)},ascending:n,getFieldLabel:function(n,r){return"answer"==e.data_type?"marked"==n||"created"==n?t(r):r:t(r)}}}},se=(0,oe.Z)(ae,[["render",function(e,t,n,r,i,s){const u=(0,o.up)("SearchText"),l=(0,o.up)("ArrowDownIcon"),c=(0,o.up)("ArrowUpIcon"),f=(0,o.up)("RotateCcwIcon");return(0,o.wg)(),(0,o.iD)("div",z,[(0,o.kq)(" filter "),r.xs_screen?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("div",W,[(0,o.Wm)(u)])),(0,o.kq)(" order by "),(0,o._)("div",H,[(0,o._)("div",$,[(0,o._)("span",q,(0,a.toDisplayString)(e.$t("Order by")),1),(0,o._)("select",{onChange:t[0]||(t[0]=e=>r.setOrderBy(e.target.value)),class:"custom-select form-select",id:"fieldSelector","aria-label":"Order data by this field"},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(r.default_field_index,(e=>((0,o.wg)(),(0,o.iD)("option",{key:e.name,selected:r.order_by===e.name,value:e.name},(0,a.toDisplayString)(r.getFieldLabel(e.name,e.label)),9,Y)))),128))],32),(0,o._)("button",{type:"button",onClick:t[1]||(t[1]=(...e)=>r.toggleAscending&&r.toggleAscending(...e)),"aria-label":"Toggle ascending order",class:"btn btn-outline-secondary appended-button"},[r.ascending?((0,o.wg)(),(0,o.j4)(l,{key:0,size:"1.1x","aria-label":"Descending"})):((0,o.wg)(),(0,o.j4)(c,{key:1,size:"1.1x","aria-label":"Ascending"}))])])]),(0,o.kq)(" first field "),(0,o._)("div",X,[(0,o._)("div",G,[(0,o._)("span",J,(0,a.toDisplayString)(e.$t("First field")),1),(0,o._)("select",{onChange:t[2]||(t[2]=e=>r.changeIndex(e)),class:"custom-select form-select",id:"fieldSelector","aria-label":"Select first field to display"},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(r.default_field_index,(e=>((0,o.wg)(),(0,o.iD)(o.HY,{key:e.name},["marked"!=e.name?((0,o.wg)(),(0,o.iD)("option",{key:0,selected:r.first_field.name===e.name,value:e.name},(0,a.toDisplayString)(r.getFieldLabel(e.name,e.label)),9,Z)):(0,o.kq)("v-if",!0)],64)))),128))],32),(0,o._)("button",{class:"btn btn-outline-secondary appended-button",type:"button",onClick:t[3]||(t[3]=e=>r.resetFieldIndex())},[(0,o.Wm)(f,{size:"1.1x","aria-label":"Reset columns"})])])])])}]]);const ue={key:0};s(4573);var le=s(1762);function ce(){}function fe(){fe.init.call(this)}function de(e){return void 0===e._maxListeners?fe.defaultMaxListeners:e._maxListeners}function pe(e,t,n){if(t)e.call(n);else for(var r=e.length,o=Ee(e,r),i=0;i<r;++i)o[i].call(n)}function he(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=Ee(e,o),a=0;a<o;++a)i[a].call(n,r)}function me(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,a=Ee(e,i),s=0;s<i;++s)a[s].call(n,r,o)}function ge(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var a=e.length,s=Ee(e,a),u=0;u<a;++u)s[u].call(n,r,o,i)}function ve(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=Ee(e,o),a=0;a<o;++a)i[a].apply(n,r)}function _e(e,t,n,r){var o,i,a,s;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]):(i=e._events=new ce,e._eventsCount=0),a){if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),!a.warned&&(o=de(e))&&o>0&&a.length>o){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,"function"==typeof console.warn?console.warn(s):console.log(s)}}else a=i[t]=n,++e._eventsCount;return e}function ye(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function be(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function Ee(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}s(8192),ce.prototype=Object.create(null),fe.EventEmitter=fe,fe.usingDomains=!1,fe.prototype.domain=void 0,fe.prototype._events=void 0,fe.prototype._maxListeners=void 0,fe.defaultMaxListeners=10,fe.init=function(){this.domain=null,fe.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ce,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},fe.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},fe.prototype.getMaxListeners=function(){return de(this)},fe.prototype.emit=function(e){var t,n,r,o,i,a,s,u="error"===e;if(a=this._events)u=u&&null==a.error;else if(!u)return!1;if(s=this.domain,u){if(t=arguments[1],!s){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=a[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:pe(n,c,this);break;case 2:he(n,c,this,arguments[1]);break;case 3:me(n,c,this,arguments[1],arguments[2]);break;case 4:ge(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];ve(n,c,this,o)}return!0},fe.prototype.addListener=function(e,t){return _e(this,e,t,!1)},fe.prototype.on=fe.prototype.addListener,fe.prototype.prependListener=function(e,t){return _e(this,e,t,!0)},fe.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,ye(this,e,t)),this},fe.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,ye(this,e,t)),this},fe.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new ce:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new ce,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,a||t)}return this},fe.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new ce,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new ce:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new ce,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},fe.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},fe.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):be.call(e,t)},fe.prototype.listenerCount=be,fe.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var we="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Se=[],Te=[],xe="undefined"!=typeof Uint8Array?Uint8Array:Array,Oe=!1;function ke(){Oe=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Se[t]=e[t],Te[e.charCodeAt(t)]=t;Te["-".charCodeAt(0)]=62,Te["_".charCodeAt(0)]=63}function Ce(e,t,n){for(var r,o,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(Se[(o=r)>>18&63]+Se[o>>12&63]+Se[o>>6&63]+Se[63&o]);return i.join("")}function Ne(e){var t;Oe||ke();for(var n=e.length,r=n%3,o="",i=[],a=16383,s=0,u=n-r;s<u;s+=a)i.push(Ce(e,s,s+a>u?u:s+a));return 1===r?(t=e[n-1],o+=Se[t>>2],o+=Se[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=Se[t>>10],o+=Se[t>>4&63],o+=Se[t<<2&63],o+="="),i.push(o),i.join("")}function Ae(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=l}return(p?-1:1)*a*Math.pow(2,i-r)}function Ie(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*m}var Re={}.toString,Pe=Array.isArray||function(e){return"[object Array]"==Re.call(e)};function Le(){return Me.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function De(e,t){if(Le()<t)throw new RangeError("Invalid typed array length");return Me.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Me.prototype:(null===e&&(e=new Me(t)),e.length=t),e}function Me(e,t,n){if(!(Me.TYPED_ARRAY_SUPPORT||this instanceof Me))return new Me(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Ue(this,e)}return Fe(this,e,t,n)}function Fe(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),Me.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Me.prototype:e=Be(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!Me.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|We(t,n),o=(e=De(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(ze(t)){var n=0|Ve(t.length);return 0===(e=De(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?De(e,0):Be(e,t);if("Buffer"===t.type&&Pe(t.data))return Be(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function je(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Ue(e,t){if(je(t),e=De(e,t<0?0:0|Ve(t)),!Me.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function Be(e,t){var n=t.length<0?0:0|Ve(t.length);e=De(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Ve(e){if(e>=Le())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Le().toString(16)+" bytes");return 0|e}function ze(e){return!(null==e||!e._isBuffer)}function We(e,t){if(ze(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return mt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return gt(e).length;default:if(r)return mt(e).length;t=(""+t).toLowerCase(),r=!0}}function He(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return it(this,t,n);case"utf8":case"utf-8":return tt(this,t,n);case"ascii":return rt(this,t,n);case"latin1":case"binary":return ot(this,t,n);case"base64":return et(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function $e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function qe(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Me.from(t,r)),ze(t))return 0===t.length?-1:Ye(e,t,n,r,o);if("number"==typeof t)return t&=255,Me.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Ye(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Ye(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(l(e,i+d)!==l(t,d)){f=!1;break}if(f)return i}return-1}function Xe(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function Ge(e,t,n,r){return vt(mt(t,e.length-n),e,n,r)}function Je(e,t,n,r){return vt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ze(e,t,n,r){return Je(e,t,n,r)}function Ke(e,t,n,r){return vt(gt(t),e,n,r)}function Qe(e,t,n,r){return vt(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function et(e,t,n){return 0===t&&n===e.length?Ne(e):Ne(e.slice(t,n))}function tt(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,l=e[o],c=null,f=l>239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=nt)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=nt));return n}(r)}Me.TYPED_ARRAY_SUPPORT=void 0===we.TYPED_ARRAY_SUPPORT||we.TYPED_ARRAY_SUPPORT,Le(),Me.poolSize=8192,Me._augment=function(e){return e.__proto__=Me.prototype,e},Me.from=function(e,t,n){return Fe(null,e,t,n)},Me.TYPED_ARRAY_SUPPORT&&(Me.prototype.__proto__=Uint8Array.prototype,Me.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Me[Symbol.species]),Me.alloc=function(e,t,n){return function(e,t,n,r){return je(t),t<=0?De(e,t):void 0!==n?"string"==typeof r?De(e,t).fill(n,r):De(e,t).fill(n):De(e,t)}(null,e,t,n)},Me.allocUnsafe=function(e){return Ue(null,e)},Me.allocUnsafeSlow=function(e){return Ue(null,e)},Me.isBuffer=_t,Me.compare=function(e,t){if(!ze(e)||!ze(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},Me.isEncoding=function(e){switch(String(e).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}},Me.concat=function(e,t){if(!Pe(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Me.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Me.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!ze(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},Me.byteLength=We,Me.prototype._isBuffer=!0,Me.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)$e(this,t,t+1);return this},Me.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)$e(this,t,t+3),$e(this,t+1,t+2);return this},Me.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)$e(this,t,t+7),$e(this,t+1,t+6),$e(this,t+2,t+5),$e(this,t+3,t+4);return this},Me.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?tt(this,0,e):He.apply(this,arguments)},Me.prototype.equals=function(e){if(!ze(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Me.compare(this,e)},Me.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Me.prototype.compare=function(e,t,n,r,o){if(!ze(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){i=u[c],a=l[c];break}return i<a?-1:a<i?1:0},Me.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Me.prototype.indexOf=function(e,t,n){return qe(this,e,t,n,!0)},Me.prototype.lastIndexOf=function(e,t,n){return qe(this,e,t,n,!1)},Me.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return Xe(this,e,t,n);case"utf8":case"utf-8":return Ge(this,e,t,n);case"ascii":return Je(this,e,t,n);case"latin1":case"binary":return Ze(this,e,t,n);case"base64":return Ke(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qe(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var nt=4096;function rt(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function ot(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function it(e,t,n){var r,o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",a=t;a<n;++a)i+=(r=e[a])<16?"0"+r.toString(16):r.toString(16);return i}function at(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function st(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function ut(e,t,n,r,o,i){if(!ze(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function lt(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function ct(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function ft(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function dt(e,t,n,r,o){return o||ft(e,0,n,4),Ie(e,t,n,r,23,4),n+4}function pt(e,t,n,r,o){return o||ft(e,0,n,8),Ie(e,t,n,r,52,8),n+8}Me.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Me.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Me.prototype;else{var o=t-e;n=new Me(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Me.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||st(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},Me.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||st(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Me.prototype.readUInt8=function(e,t){return t||st(e,1,this.length),this[e]},Me.prototype.readUInt16LE=function(e,t){return t||st(e,2,this.length),this[e]|this[e+1]<<8},Me.prototype.readUInt16BE=function(e,t){return t||st(e,2,this.length),this[e]<<8|this[e+1]},Me.prototype.readUInt32LE=function(e,t){return t||st(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Me.prototype.readUInt32BE=function(e,t){return t||st(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Me.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||st(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},Me.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||st(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Me.prototype.readInt8=function(e,t){return t||st(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Me.prototype.readInt16LE=function(e,t){t||st(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Me.prototype.readInt16BE=function(e,t){t||st(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Me.prototype.readInt32LE=function(e,t){return t||st(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Me.prototype.readInt32BE=function(e,t){return t||st(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Me.prototype.readFloatLE=function(e,t){return t||st(e,4,this.length),Ae(this,e,!0,23,4)},Me.prototype.readFloatBE=function(e,t){return t||st(e,4,this.length),Ae(this,e,!1,23,4)},Me.prototype.readDoubleLE=function(e,t){return t||st(e,8,this.length),Ae(this,e,!0,52,8)},Me.prototype.readDoubleBE=function(e,t){return t||st(e,8,this.length),Ae(this,e,!1,52,8)},Me.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||ut(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},Me.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||ut(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Me.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,1,255,0),Me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Me.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,2,65535,0),Me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lt(this,e,t,!0),t+2},Me.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,2,65535,0),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lt(this,e,t,!1),t+2},Me.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,4,4294967295,0),Me.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ct(this,e,t,!0),t+4},Me.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,4,4294967295,0),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ct(this,e,t,!1),t+4},Me.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);ut(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Me.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);ut(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Me.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,1,127,-128),Me.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Me.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,2,32767,-32768),Me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):lt(this,e,t,!0),t+2},Me.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,2,32767,-32768),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):lt(this,e,t,!1),t+2},Me.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,4,2147483647,-2147483648),Me.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ct(this,e,t,!0),t+4},Me.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ut(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Me.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ct(this,e,t,!1),t+4},Me.prototype.writeFloatLE=function(e,t,n){return dt(this,e,t,!0,n)},Me.prototype.writeFloatBE=function(e,t,n){return dt(this,e,t,!1,n)},Me.prototype.writeDoubleLE=function(e,t,n){return pt(this,e,t,!0,n)},Me.prototype.writeDoubleBE=function(e,t,n){return pt(this,e,t,!1,n)},Me.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Me.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},Me.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Me.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=ze(e)?e:mt(new Me(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var ht=/[^+\/0-9A-Za-z-_]/g;function mt(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=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((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function gt(e){return function(e){var t,n,r,o,i,a;Oe||ke();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new xe(3*s/4-i),r=i>0?s-4:s;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)o=Te[e.charCodeAt(t)]<<18|Te[e.charCodeAt(t+1)]<<12|Te[e.charCodeAt(t+2)]<<6|Te[e.charCodeAt(t+3)],a[u++]=o>>16&255,a[u++]=o>>8&255,a[u++]=255&o;return 2===i?(o=Te[e.charCodeAt(t)]<<2|Te[e.charCodeAt(t+1)]>>4,a[u++]=255&o):1===i&&(o=Te[e.charCodeAt(t)]<<10|Te[e.charCodeAt(t+1)]<<4|Te[e.charCodeAt(t+2)]>>2,a[u++]=o>>8&255,a[u++]=255&o),a}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ht,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function vt(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function _t(e){return null!=e&&(!!e._isBuffer||yt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&yt(e.slice(0,0))}(e))}function yt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function bt(){throw new Error("setTimeout has not been defined")}function Et(){throw new Error("clearTimeout has not been defined")}var wt=bt,St=Et;function Tt(e){if(wt===setTimeout)return setTimeout(e,0);if((wt===bt||!wt)&&setTimeout)return wt=setTimeout,setTimeout(e,0);try{return wt(e,0)}catch(t){try{return wt.call(null,e,0)}catch(t){return wt.call(this,e,0)}}}"function"==typeof we.setTimeout&&(wt=setTimeout),"function"==typeof we.clearTimeout&&(St=clearTimeout);var xt,Ot=[],kt=!1,Ct=-1;function Nt(){kt&&xt&&(kt=!1,xt.length?Ot=xt.concat(Ot):Ct=-1,Ot.length&&At())}function At(){if(!kt){var e=Tt(Nt);kt=!0;for(var t=Ot.length;t;){for(xt=Ot,Ot=[];++Ct<t;)xt&&xt[Ct].run();Ct=-1,t=Ot.length}xt=null,kt=!1,function(e){if(St===clearTimeout)return clearTimeout(e);if((St===Et||!St)&&clearTimeout)return St=clearTimeout,clearTimeout(e);try{St(e)}catch(t){try{return St.call(null,e)}catch(t){return St.call(this,e)}}}(e)}}function It(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ot.push(new Rt(e,t)),1!==Ot.length||kt||Tt(At)}function Rt(e,t){this.fun=e,this.array=t}function Pt(){}Rt.prototype.run=function(){this.fun.apply(null,this.array)};var Lt=Pt,Dt=Pt,Mt=Pt,Ft=Pt,jt=Pt,Ut=Pt,Bt=Pt,Vt=we.performance||{},zt=Vt.now||Vt.mozNow||Vt.msNow||Vt.oNow||Vt.webkitNow||function(){return(new Date).getTime()},Wt=new Date,Ht={nextTick:It,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Lt,addListener:Dt,once:Mt,off:Ft,removeListener:jt,removeAllListeners:Ut,emit:Bt,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*zt.call(Vt),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Wt)/1e3}},$t="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},qt=/%[sdj%]/g;function Yt(e){if(!an(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Zt(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(qt,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<o;a=r[++n])on(a)||!ln(a)?i+=" "+a:i+=" "+Zt(a);return i}function Xt(e,t){if(sn(we.process))return function(){return Xt(e,t).apply(this,arguments)};if(!0===Ht.noDeprecation)return e;var n=!1;return function(){if(!n){if(Ht.throwDeprecation)throw new Error(t);Ht.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}var Gt,Jt={};function Zt(e,t){var n={seen:[],stylize:Qt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),rn(t)?n.showHidden=t:t&&hn(n,t),sn(n.showHidden)&&(n.showHidden=!1),sn(n.depth)&&(n.depth=2),sn(n.colors)&&(n.colors=!1),sn(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Kt),en(n,e,n.depth)}function Kt(e,t){var n=Zt.styles[t];return n?"["+Zt.colors[n][0]+"m"+e+"["+Zt.colors[n][1]+"m":e}function Qt(e,t){return e}function en(e,t,n){if(e.customInspect&&t&&dn(t.inspect)&&t.inspect!==Zt&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return an(r)||(r=en(e,r,n)),r}var o=function(e,t){if(sn(t))return e.stylize("undefined","undefined");if(an(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return"number"==typeof t?e.stylize(""+t,"number"):rn(t)?e.stylize(""+t,"boolean"):on(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var i=Object.keys(t),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),fn(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return tn(t);if(0===i.length){if(dn(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(un(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(cn(t))return e.stylize(Date.prototype.toString.call(t),"date");if(fn(t))return tn(t)}var u,l,c="",f=!1,d=["{","}"];return u=t,Array.isArray(u)&&(f=!0,d=["[","]"]),dn(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),un(t)&&(c=" "+RegExp.prototype.toString.call(t)),cn(t)&&(c=" "+Date.prototype.toUTCString.call(t)),fn(t)&&(c=" "+tn(t)),0!==i.length||f&&0!=t.length?n<0?un(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=f?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)mn(t,String(a))?i.push(nn(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(nn(e,t,n,r,o,!0))})),i}(e,t,n,a,i):i.map((function(r){return nn(e,t,n,a,r,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function tn(e){return"["+Error.prototype.toString.call(e)+"]"}function nn(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),mn(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=on(n)?en(e,u.value,null):en(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),sn(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function rn(e){return"boolean"==typeof e}function on(e){return null===e}function an(e){return"string"==typeof e}function sn(e){return void 0===e}function un(e){return ln(e)&&"[object RegExp]"===pn(e)}function ln(e){return"object"==typeof e&&null!==e}function cn(e){return ln(e)&&"[object Date]"===pn(e)}function fn(e){return ln(e)&&("[object Error]"===pn(e)||e instanceof Error)}function dn(e){return"function"==typeof e}function pn(e){return Object.prototype.toString.call(e)}function hn(e,t){if(!t||!ln(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function mn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gn(){this.head=null,this.tail=null,this.length=0}Zt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Zt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},gn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},gn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},gn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},gn.prototype.clear=function(){this.head=this.tail=null,this.length=0},gn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},gn.prototype.concat=function(e){if(0===this.length)return Me.alloc(0);if(1===this.length)return this.head.data;for(var t=Me.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var vn=Me.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _n(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!vn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=bn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=En;break;default:return void(this.write=yn)}this.charBuffer=new Me(6),this.charReceived=0,this.charLength=0}function yn(e){return e.toString(this.encoding)}function bn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function En(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}_n.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,o=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),o=(t+=e.toString(this.encoding,0,o)).length-1,(r=t.charCodeAt(o))>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}return t},_n.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},_n.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t},xn.ReadableState=Tn;var wn,Sn=(wn="stream",sn(Gt)&&(Gt=Ht.env.NODE_DEBUG||""),wn=wn.toUpperCase(),Jt[wn]||(new RegExp("\\b"+wn+"\\b","i").test(Gt)?Jt[wn]=function(){var e=Yt.apply(null,arguments);console.error("%s %d: %s",wn,0,e)}:Jt[wn]=function(){}),Jt[wn]);function Tn(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Qn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new gn,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new _n(e.encoding),this.encoding=e.encoding)}function xn(e){if(!(this instanceof xn))return new xn(e);this._readableState=new Tn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),fe.call(this)}function On(e,t,n,r,o){var i=function(e,t){var n=null;return _t(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(i)e.emit("error",i);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Nn(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&o){var s=new Error("stream.unshift() after end event");e.emit("error",s)}else{var u;!t.decoder||o||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),o||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Nn(e))),function(e,t){t.readingMore||(t.readingMore=!0,It(In,e,t))}(e,t)}else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}$t(xn,fe),xn.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=Me.from(e,t),t=""),On(this,n,e,t,!1)},xn.prototype.unshift=function(e){return On(this,this._readableState,e,"",!0)},xn.prototype.isPaused=function(){return!1===this._readableState.flowing},xn.prototype.setEncoding=function(e){return this._readableState.decoder=new _n(e),this._readableState.encoding=e,this};var kn=8388608;function Cn(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=kn?e=kn:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Nn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Sn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?It(An,e):An(e))}function An(e){Sn("emit readable"),e.emit("readable"),Ln(e)}function In(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(Sn("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function Rn(e){Sn("readable nexttick read 0"),e.read(0)}function Pn(e,t){t.reading||(Sn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Ln(e),t.flowing&&!t.reading&&e.read(0)}function Ln(e){var t=e._readableState;for(Sn("flow",t.flowing);t.flowing&&null!==e.read(););}function Dn(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;for(e-=o.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0==(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=Me.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0==(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function Mn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,It(Fn,t,e))}function Fn(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function jn(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Un(){}function Bn(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function Vn(e,t){Object.defineProperty(this,"buffer",{get:Xt((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Qn&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?It(o,r):o(r),e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,o);else{var i=qn(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||$n(e,n),r?It(Hn,e,n,i,o):Hn(e,n,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Gn(this)}function zn(e){if(!(this instanceof zn||this instanceof Qn))return new zn(e);this._writableState=new Vn(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),fe.call(this)}function Wn(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function Hn(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),Xn(e,t)}function $n(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var a=0;n;)o[a]=n,n=n.next,a+=1;Wn(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new Gn(t)}else{for(;n;){var s=n.chunk,u=n.encoding,l=n.callback;if(Wn(e,t,!1,t.objectMode?1:s.length,s,u,l),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function qn(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Yn(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function Xn(e,t){var n=qn(t);return n&&(0===t.pendingcb?(Yn(e,t),t.finished=!0,e.emit("finish")):Yn(e,t)),n}function Gn(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}xn.prototype.read=function(e){Sn("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Sn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?Mn(this):Nn(this),null;if(0===(e=Cn(e,t))&&t.ended)return 0===t.length&&Mn(this),null;var r,o=t.needReadable;return Sn("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&Sn("length less than watermark",o=!0),t.ended||t.reading?Sn("reading or ended",o=!1):o&&(Sn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Cn(n,t))),null===(r=e>0?Dn(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&Mn(this)),null!==r&&this.emit("data",r),r},xn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},xn.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Sn("pipe count=%d opts=%j",r.pipesCount,t);var o=t&&!1===t.end?l:a;function i(e){Sn("onunpipe"),e===n&&l()}function a(){Sn("onend"),e.end()}r.endEmitted?It(o):n.once("end",o),e.on("unpipe",i);var s=function(e){return function(){var t=e._readableState;Sn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Ln(e))}}(n);e.on("drain",s);var u=!1;function l(){Sn("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",s),e.removeListener("error",d),e.removeListener("unpipe",i),n.removeListener("end",a),n.removeListener("end",l),n.removeListener("data",f),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function f(t){Sn("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==jn(r.pipes,e))&&!u&&(Sn("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function d(t){Sn("onerror",t),m(),e.removeListener("error",d),0===("error",e.listeners("error").length)&&e.emit("error",t)}function p(){e.removeListener("finish",h),m()}function h(){Sn("onfinish"),e.removeListener("close",p),m()}function m(){Sn("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events.error?Array.isArray(e._events.error)?e._events.error.unshift(n):e._events.error=[n,e._events.error]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(Sn("pipe resume"),n.resume()),e},xn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this);return this}var i=jn(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},xn.prototype.on=function(e,t){var n=fe.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Nn(this):It(Rn,this))}return n},xn.prototype.addListener=xn.prototype.on,xn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Sn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,It(Pn,e,t))}(this,e)),this},xn.prototype.pause=function(){return Sn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Sn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},xn.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var o in e.on("end",(function(){if(Sn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(o){Sn("wrapped data"),t.decoder&&(o=t.decoder.write(o)),t.objectMode&&null==o||(t.objectMode||o&&o.length)&&(r.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));return function(t,n){for(var o=0,i=t.length;o<i;o++)a=t[o],e.on(a,r.emit.bind(r,a));var a}(["error","close","destroy","pause","resume"]),r._read=function(t){Sn("wrapped _read",t),n&&(n=!1,e.resume())},r},xn._fromList=Dn,zn.WritableState=Vn,$t(zn,fe),Vn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},zn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},zn.prototype.write=function(e,t,n){var r=this._writableState,o=!1;return"function"==typeof t&&(n=t,t=null),Me.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=Un),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),It(t,n)}(this,n):function(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):Me.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),It(r,i),o=!1),o}(this,r,e,n)&&(r.pendingcb++,o=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Me.from(t,n)),t}(t,n,r),Me.isBuffer(n)&&(r="buffer");var i=t.objectMode?1:n.length;t.length+=i;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new Bn(n,r,o),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Wn(e,t,!1,i,n,r,o);return a}(this,r,e,t,n)),o},zn.prototype.cork=function(){this._writableState.corked++},zn.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||$n(this,e))},zn.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},zn.prototype._write=function(e,t,n){n(new Error("not implemented"))},zn.prototype._writev=null,zn.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,Xn(e,t),n&&(t.finished?It(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},$t(Qn,xn);for(var Jn=Object.keys(zn.prototype),Zn=0;Zn<Jn.length;Zn++){var Kn=Jn[Zn];Qn.prototype[Kn]||(Qn.prototype[Kn]=zn.prototype[Kn])}function Qn(e){if(!(this instanceof Qn))return new Qn(e);xn.call(this,e),zn.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",er)}function er(){this.allowHalfOpen||this._writableState.ended||It(tr,this)}function tr(e){e.end()}function nr(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),o(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function rr(e){if(!(this instanceof rr))return new rr(e);Qn.call(this,e),this._transformState=new nr(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){or(t,e)})):or(t)}))}function or(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function ir(e){if(!(this instanceof ir))return new ir(e);rr.call(this,e)}function ar(){fe.call(this)}$t(rr,Qn),rr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Qn.prototype.push.call(this,e,t)},rr.prototype._transform=function(e,t,n){throw new Error("Not implemented")},rr.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},rr.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},$t(ir,rr),ir.prototype._transform=function(e,t,n){n(null,e)},$t(ar,fe),ar.Readable=xn,ar.Writable=zn,ar.Duplex=Qn,ar.Transform=rr,ar.PassThrough=ir,ar.Stream=ar,ar.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",s));var i=!1;function a(){i||(i=!0,e.end())}function s(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===fe.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",s),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e};class sr extends Error{constructor(e,t,...n){Array.isArray(t)&&(t=t.join(" ")),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,sr),this.code=e;for(const e of n)for(const t in e){const n=e[t];this[t]=_t(n)?n.toString():null==n?n:JSON.parse(JSON.stringify(n))}}}const ur=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},lr=".".charCodeAt(0),cr=/\\(\\)?/g,fr=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),dr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pr=/^\w*$/,hr=function(e){const t=typeof e;return"symbol"===t||"object"===t&&e&&"[object Symbol]"===function(e){return Object.prototype.toString.call(e)}(e)},mr=function(e){if("string"==typeof e||hr(e))return e;const t=`${e}`;return"0"==t&&1/e==-INFINITY?"-0":t},gr=function(e,t){let n=0;const r=(t=function(e,t){return Array.isArray(e)?e:function(e,t){if(Array.isArray(e))return!1;const n=typeof e;return!("number"!==n&&"symbol"!==n&&"boolean"!==n&&e&&!hr(e))||pr.test(e)||!dr.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:function(e){const t=[];return e.charCodeAt(0)===lr&&t.push(""),e.replace(fr,(function(e,n,r,o){let i=e;r?i=o.replace(cr,"$1"):n&&(i=n.trim()),t.push(i)})),t}(e)}(t,e)).length;for(;null!=e&&n<r;)e=e[mr(t[n++])];return n&&n===r?e:void 0},vr=function(e){if(null==e)return[void 0,void 0];if("object"!=typeof e)return[Error('Invalid option "columns": expect an array or an object')];if(Array.isArray(e)){const t=[];for(const n of e)if("string"==typeof n)t.push({key:n,header:n});else{if("object"!=typeof n||null===n||Array.isArray(n))return[Error("Invalid column definition: expect a string or an object")];if(!n.key)return[Error('Invalid column definition: property "key" is required')];void 0===n.header&&(n.header=n.key),t.push(n)}e=t}else{const t=[];for(const n in e)t.push({key:n,header:e[n]});e=t}return[void 0,e]},_r=function(e){const t={};for(const r in e)t[(n=r,n.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})))]=e[r];var n;if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)return[new sr("CSV_OPTION_BOOLEAN_INVALID_TYPE",["option `bom` is optional and must be a boolean value,",`got ${JSON.stringify(t.bom)}`])];if(void 0===t.delimiter||null===t.delimiter)t.delimiter=",";else if(_t(t.delimiter))t.delimiter=t.delimiter.toString();else if("string"!=typeof t.delimiter)return[new sr("CSV_OPTION_DELIMITER_INVALID_TYPE",["option `delimiter` must be a buffer or a string,",`got ${JSON.stringify(t.delimiter)}`])];if(void 0===t.quote||null===t.quote)t.quote='"';else if(!0===t.quote)t.quote='"';else if(!1===t.quote)t.quote="";else if(_t(t.quote))t.quote=t.quote.toString();else if("string"!=typeof t.quote)return[new sr("CSV_OPTION_QUOTE_INVALID_TYPE",["option `quote` must be a boolean, a buffer or a string,",`got ${JSON.stringify(t.quote)}`])];if(void 0!==t.quoted&&null!==t.quoted||(t.quoted=!1),void 0===t.escape_formulas||null===t.escape_formulas)t.escape_formulas=!1;else if("boolean"!=typeof t.escape_formulas)return[new sr("CSV_OPTION_ESCAPE_FORMULAS_INVALID_TYPE",["option `escape_formulas` must be a boolean,",`got ${JSON.stringify(t.escape_formulas)}`])];if(void 0!==t.quoted_empty&&null!==t.quoted_empty||(t.quoted_empty=void 0),void 0===t.quoted_match||null===t.quoted_match||!1===t.quoted_match?t.quoted_match=null:Array.isArray(t.quoted_match)||(t.quoted_match=[t.quoted_match]),t.quoted_match)for(const e of t.quoted_match){const t=e instanceof RegExp;if("string"!=typeof e&&!t)return[Error(`Invalid Option: quoted_match must be a string or a regex, got ${JSON.stringify(e)}`)]}if(void 0!==t.quoted_string&&null!==t.quoted_string||(t.quoted_string=!1),void 0!==t.eof&&null!==t.eof||(t.eof=!0),void 0===t.escape||null===t.escape)t.escape='"';else if(_t(t.escape))t.escape=t.escape.toString();else if("string"!=typeof t.escape)return[Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`)];if(t.escape.length>1)return[Error(`Invalid Option: escape must be one character, got ${t.escape.length} characters`)];void 0!==t.header&&null!==t.header||(t.header=!1);const[r,o]=vr(t.columns);if(void 0!==r)return[r];if(t.columns=o,void 0!==t.quoted&&null!==t.quoted||(t.quoted=!1),void 0!==t.cast&&null!==t.cast||(t.cast={}),void 0!==t.cast.bigint&&null!==t.cast.bigint||(t.cast.bigint=e=>""+e),void 0!==t.cast.boolean&&null!==t.cast.boolean||(t.cast.boolean=e=>e?"1":""),void 0!==t.cast.date&&null!==t.cast.date||(t.cast.date=e=>""+e.getTime()),void 0!==t.cast.number&&null!==t.cast.number||(t.cast.number=e=>""+e),void 0!==t.cast.object&&null!==t.cast.object||(t.cast.object=e=>JSON.stringify(e)),void 0!==t.cast.string&&null!==t.cast.string||(t.cast.string=function(e){return e}),void 0!==t.on_record&&"function"!=typeof t.on_record)return[Error('Invalid Option: "on_record" must be a function.')];if(void 0===t.record_delimiter||null===t.record_delimiter)t.record_delimiter="\n";else if(_t(t.record_delimiter))t.record_delimiter=t.record_delimiter.toString();else if("string"!=typeof t.record_delimiter)return[Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(t.record_delimiter)}`)];switch(t.record_delimiter){case"unix":t.record_delimiter="\n";break;case"mac":t.record_delimiter="\r";break;case"windows":t.record_delimiter="\r\n";break;case"ascii":t.record_delimiter="";break;case"unicode":t.record_delimiter="\u2028"}return[void 0,t]},yr=Me.from([239,187,191]);class br extends rr{constructor(e={}){super({writableObjectMode:!0,...e});const[t,n]=_r(e);if(void 0!==t)throw t;this.options=n,this.state={stop:!1},this.info={records:0},this.api=function(e,t,n){return{options:e,state:t,info:n,__transform:function(e,t){if(!Array.isArray(e)&&"object"!=typeof e)return Error(`Invalid Record: expect an array or an object, got ${JSON.stringify(e)}`);if(0===this.info.records)if(Array.isArray(e)){if(!0===this.options.header&&void 0===this.options.columns)return Error("Undiscoverable Columns: header option requires column option or object records")}else if(void 0===this.options.columns){const[t,n]=vr(Object.keys(e));if(t)return;this.options.columns=n}if(0===this.info.records){this.bom(t);const e=this.headers(t);if(e)return e}try{this.options.on_record&&this.options.on_record(e,this.info.records)}catch(n){return n}let n,r;if(this.options.eof){if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;r+=this.options.record_delimiter}else{if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;(this.options.header||this.info.records)&&(r=this.options.record_delimiter+r)}this.info.records++,t(r)},stringify:function(e,t=!1){if("object"!=typeof e)return[void 0,e];const{columns:n}=this.options,r=[];if(Array.isArray(e)){n&&e.splice(n.length);for(let n=0;n<e.length;n++){const o=e[n],[i,a]=this.__cast(o,{index:n,column:n,records:this.info.records,header:t});if(i)return[i];r[n]=[a,o]}}else for(let o=0;o<n.length;o++){const i=gr(e,n[o].key),[a,s]=this.__cast(i,{index:o,column:n[o].key,records:this.info.records,header:t});if(a)return[a];r[o]=[s,i]}let o="";for(let e=0;e<r.length;e++){let t,n,[i,a]=r[e];if("string"==typeof i)t=this.options;else if(ur(i)){if(t=i,i=t.value,delete t.value,"string"!=typeof i&&null!=i&&n)return[Error(`Invalid Casting Value: returned value must return a string, null or undefined, got ${JSON.stringify(i)}`)];if(t={...this.options,...t},[n,t]=_r(t),void 0!==n)return[n]}else{if(null!=i)return[Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(i)}`)];t=this.options}const{delimiter:s,escape:u,quote:l,quoted:c,quoted_empty:f,quoted_string:d,quoted_match:p,record_delimiter:h,escape_formulas:m}=t;if(""===i&&""===a){let e=p&&p.filter((e=>"string"==typeof e?-1!==i.indexOf(e):e.test(i)));e=e&&e.length>0,!0===(e||!0===f||!0===d&&!1!==f)&&(i=l+i+l),o+=i}else if(i){if("string"!=typeof i)return[Error(`Formatter must return a string, null or undefined, got ${JSON.stringify(i)}`)];const e=s.length&&i.indexOf(s)>=0,t=""!==l&&i.indexOf(l)>=0,n=i.indexOf(u)>=0&&u!==l,r=i.indexOf(h)>=0,f=d&&"string"==typeof a;let g=p&&p.filter((e=>"string"==typeof e?-1!==i.indexOf(e):e.test(i)));if(g=g&&g.length>0,m)switch(i[0]){case"=":case"+":case"-":case"@":case"\t":case"\r":case"=":case"+":case"-":case"@":i=`'${i}`}const v=!0===t||e||r||c||f||g;if(!0===v&&!0===n){const e="\\"===u?new RegExp(u+u,"g"):new RegExp(u,"g");i=i.replace(e,u+u)}if(!0===t){const e=new RegExp(l,"g");i=i.replace(e,u+l)}!0===v&&(i=l+i+l),o+=i}else(!0===f||""===a&&!0===d&&!1!==f)&&(o+=l+l);e!==r.length-1&&(o+=s)}return[void 0,o]},bom:function(e){!0===this.options.bom&&e(yr)},headers:function(e){if(!1===this.options.header)return;if(void 0===this.options.columns)return;let t,n=this.options.columns.map((e=>e.header));if(this.options.eof?([t,n]=this.stringify(n,!0),n+=this.options.record_delimiter):[t,n]=this.stringify(n),t)return t;e(n)},__cast:function(e,t){const n=typeof e;try{return"string"===n?[void 0,this.options.cast.string(e,t)]:"bigint"===n?[void 0,this.options.cast.bigint(e,t)]:"number"===n?[void 0,this.options.cast.number(e,t)]:"boolean"===n?[void 0,this.options.cast.boolean(e,t)]:e instanceof Date?[void 0,this.options.cast.date(e,t)]:"object"===n&&null!==e?[void 0,this.options.cast.object(e,t)]:[void 0,e,e]}catch(e){return[e]}}}}(this.options,this.state,this.info),this.api.options.on_record=(...e)=>{this.emit("record",...e)}}_transform(e,t,n){if(!0===this.state.stop)return;const r=this.api.__transform(e,this.push.bind(this));void 0!==r&&(this.state.stop=!0),n(r)}_flush(e){if(!0!==this.state.stop){if(0===this.info.records){this.api.bom(this.push.bind(this));const t=this.api.headers(this.push.bind(this));t&&e(t)}e()}}}var Er={name:"ExportOptions",components:{DownloadIcon:V._8t,FileTextIcon:V.zPP},setup(){const e=(0,d.i)();return{enabled_exports:e.enabled_exports,generateJSON:function(){var t=[];let n=e.itemsToDisplay,r=e.field_index;n.forEach((n=>{var o=new Object;for(let t=0;t<r.length;t++){var i=r[t];if("marked"==i.name)o.marked=n.marked;else if("created"==i.name)o.created=n.created;else{var a=void 0===n.data[i.name]?"":n.data[i.name];if(i.name.startsWith("checkbox")||i.name.startsWith("radio-group")||i.name.startsWith("select")){var s=[];a.split(", ").forEach((t=>{var n=e.getOptionLabel({field_name:i.name,option_value:t});s.push(n)})),o[i.label]=s.join(", ")}else o[i.label]=a}}t.push(JSON.stringify(o))}));var o=new Blob(t,{type:"application/json;charset=utf-8"});(0,le.saveAs)(o,e.meta.title+".json")},generateCSV:function(){var t=[];let n=e.field_index;n.forEach(((e,n)=>{t.push(e.label)}));const r=function(){let e,t,n;for(const r in arguments){const o=arguments[r],i=typeof o;if(void 0===e&&Array.isArray(o))e=o;else if(void 0===t&&ur(o))t=o;else{if(void 0!==n||"function"!==i)throw new sr("CSV_INVALID_ARGUMENT",["Invalid argument:",`got ${JSON.stringify(o)} at index ${r}`]);n=o}}const r=new br(t);if(n){const e=[];r.on("readable",(function(){let t;for(;null!==(t=this.read());)e.push(t)})),r.on("error",(function(e){n(e)})),r.on("end",(function(){try{n(void 0,e.join(""))}catch(e){return void n(e)}}))}if(void 0!==e){const t=function(){for(const t of e)r.write(t);r.end()};"function"==typeof setImmediate?setImmediate(t):setTimeout(t,0)}return r}({header:!0,columns:t});e.itemsToDisplay.forEach(((t,o)=>{var i=[];n.forEach(((n,r)=>{if("marked"==n.name)i.push(e.getFormattedValue({field_name:"marked",field_value:t.marked}));else if("created"==n.name)i.push(e.getFormattedValue({field_name:"created",field_value:t.created}));else if(void 0!==t.data[n.name]){var o=t.data[n.name];n.name.endsWith("__html")&&(o=t.data[n.name].value);let r={field_name:n.name,field_value:o};i.push(e.getFormattedValue(r))}else i.push("Empty")})),r.write(i)}));let o=r.read().toString(),i=new Blob([o],{type:"text/csv;charset=utf-8"});var a=e.meta.title+".csv";"user"==e.data_type&&(a="users.csv"),(0,le.saveAs)(i,a)},togglePdfBuilder:function(){e.ui.pdf_builder=!e.ui.pdf_builder}}}};s(2276);var wr=(0,oe.Z)(Er,[["render",function(e,t,n,r,i,s){const u=(0,o.up)("DownloadIcon"),l=(0,o.up)("FileTextIcon");return r.enabled_exports.length?((0,o.wg)(),(0,o.iD)("div",ue,[(0,o._)("strong",null,(0,a.toDisplayString)(e.$t("Export")),1),(0,o.Uk)(": "),r.enabled_exports.includes("csv")?((0,o.wg)(),(0,o.iD)("button",{key:0,class:"ds-export-button",onClick:t[0]||(t[0]=(...e)=>r.generateCSV&&r.generateCSV(...e))},[(0,o.Wm)(u,{"aria-hidden":"true",size:"1x"}),(0,o.Uk)(" CSV ")])):(0,o.kq)("v-if",!0),r.enabled_exports.includes("json")?((0,o.wg)(),(0,o.iD)("button",{key:1,class:"ds-export-button",onClick:t[1]||(t[1]=(...e)=>r.generateJSON&&r.generateJSON(...e))},[(0,o.Wm)(u,{"aria-hidden":"true",size:"1x"}),(0,o.Uk)(" JSON ")])):(0,o.kq)("v-if",!0),r.enabled_exports.includes("pdf")?((0,o.wg)(),(0,o.iD)("button",{key:2,class:"ds-export-button",onClick:t[2]||(t[2]=(...e)=>r.togglePdfBuilder&&r.togglePdfBuilder(...e))},[(0,o.Wm)(l,{"aria-hidden":"true",size:"1x"}),(0,o.Uk)(" PDF ")])):(0,o.kq)("v-if",!0)])):(0,o.kq)("v-if",!0)}],["__scopeId","data-v-441891a4"]]),Sr={name:"DisplayModes",components:{},setup(){const e=(0,d.i)(),t=(0,o.f3)("xs_screen"),n=e.data_type,r=(0,B.iH)(e.display_items_as);return"answer"==n&&"grid"==r.value&&t.value&&(r.value="cards"),{xs_screen:t,displayItemsAs:function(n){r.value=n,e.ui.extended_filters=!1,e.ui.pdf_builder=!1,"cards"==n&&t.value?e.display_items_as="grid":e.display_items_as=n,f().patch(e.endpoint+"/set-landing-page",JSON.stringify({page:e.display_items_as}),{headers:{"Content-Type":"application/json"}}).then((function(e){})).catch((function(e){console.log(e)}))},button_classes:(0,o.Fl)((()=>e.ui.pdf_builder?{cards:"btn-outline-secondary",grid:"btn-outline-secondary",graphs:"btn-outline-secondary"}:{cards:"cards"==r.value?"btn-primary":"btn-outline-secondary",grid:"grid"==r.value?"btn-primary":"btn-outline-secondary",graphs:"graphs"==r.value?"btn-primary":"btn-outline-secondary"})),data_type:n}}};s(3978);var Tr=(0,oe.Z)(Sr,[["render",function(e,t,n,r,i,s){return(0,o.wg)(),(0,o.iD)(o.HY,null,[r.xs_screen?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("button",{key:0,class:(0,a.normalizeClass)(["btn btn-sm",r.button_classes.grid]),onClick:t[0]||(t[0]=e=>r.displayItemsAs("grid"))},(0,a.toDisplayString)(e.$t("Table")),3)),"answer"!=r.data_type&&r.xs_screen?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("button",{key:1,class:(0,a.normalizeClass)(["btn btn-sm",r.button_classes.cards]),onClick:t[1]||(t[1]=e=>r.displayItemsAs("cards"))},(0,a.toDisplayString)(e.$t("Cards")),3)),"answer"==r.data_type?((0,o.wg)(),(0,o.iD)("button",{key:2,class:(0,a.normalizeClass)(["btn btn-sm",r.button_classes.graphs]),onClick:t[2]||(t[2]=e=>r.displayItemsAs("graphs"))},(0,a.toDisplayString)(e.$t("Graphs")),3)):(0,o.kq)("v-if",!0)],64)}],["__scopeId","data-v-5a3c677a"]]);const xr=["disabled"],Or={key:0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-check"},kr=[(e=>((0,o.dD)("data-v-2f6340bc"),e=e(),(0,o.Cn)(),e))((()=>(0,o._)("polyline",{points:"20 6 9 17 4 12"},null,-1)))];var Cr={name:"OtherOptions",components:{},setup(){const e=(0,d.i)(),{t:t}=(0,U.QT)({useScope:"global"}),n=(0,o.f3)("has_items"),r=(0,o.Fl)((()=>{if(void 0===e.extended_filters)return t("Filters");var n=0;return Object.keys(e.extended_filters).forEach((t=>{n+=e.extended_filters[t].length})),0==n?t("Filters"):t("Filters")+" ("+n+")"})),i=(0,o.Fl)((()=>{console.log("has_numeric_fields");for(let t in e.meta.form_structure)if(console.log("store.form_structure[field]",e.meta.form_structure[t]),(0,K.kE)(e.meta.form_structure[t]))return!0;return!1}));return{has_items:n,can_edit:e.can_edit,data_type:e.data_type,has_deleted_fields:e.deleted_fields.length,delete_options:e.can_edit||e.deleted_fields,show_options:(0,o.Fl)((()=>e.show_other_options)),deleted_fields_enabled:(0,o.Fl)((()=>e.include_deleted_fields)),total_filters:r,has_multichoice_fields:(0,o.Fl)((()=>e.all_multichoice_fields.length)),has_numeric_fields:i,toggleOptions:function(){e.show_other_options=!e.show_other_options},displayDeletedFields:function(){e.include_deleted_fields=!e.include_deleted_fields,e.searched_items=[]},toggleItemFilters:function(){e.ui.extended_filters=!e.ui.extended_filters,e.ui.numeric_totals=!1},toggleNumericTotals:function(){e.ui.numeric_totals=!e.ui.numeric_totals,e.ui.extended_filters=!1},total_items:(0,o.Fl)((()=>e.items.length))}}};s(7481);var Nr=(0,oe.Z)(Cr,[["render",function(e,t,n,r,i,s){return(0,o.wg)(),(0,o.iD)(o.HY,null,[r.total_items&&"answer"==r.data_type&&r.has_multichoice_fields?((0,o.wg)(),(0,o.iD)("button",{key:0,class:"btn btn-sm btn-outline-secondary",onClick:t[0]||(t[0]=e=>r.toggleItemFilters())},(0,a.toDisplayString)(r.total_filters),1)):(0,o.kq)("v-if",!0),r.total_items&&"answer"==r.data_type&&r.has_numeric_fields?((0,o.wg)(),(0,o.iD)("button",{key:1,class:"btn btn-sm btn-outline-secondary",onClick:t[1]||(t[1]=e=>r.toggleNumericTotals())},(0,a.toDisplayString)(e.$t("Numbers")),1)):(0,o.kq)("v-if",!0),r.delete_options?((0,o.wg)(),(0,o.iD)("button",{key:2,class:"btn btn-sm btn-outline-secondary",disabled:!r.has_items,onClick:t[2]||(t[2]=e=>r.toggleOptions())},(0,a.toDisplayString)(e.$t("Delete options")),9,xr)):(0,o.kq)("v-if",!0),r.has_deleted_fields&&r.has_items?((0,o.wg)(),(0,o.iD)("button",{key:3,class:"btn btn-sm btn-outline-secondary",onClick:t[3]||(t[3]=e=>r.displayDeletedFields())},[(0,o.Uk)((0,a.toDisplayString)(e.$t("Include deleted fields"))+" ",1),r.deleted_fields_enabled?((0,o.wg)(),(0,o.iD)("svg",Or,kr)):(0,o.kq)("v-if",!0)])):(0,o.kq)("v-if",!0)],64)}],["__scopeId","data-v-2f6340bc"]]);const Ar=["href"];var Ir={name:"DeleteAllItems",components:{},setup(){const e=(0,d.i)(),{t:t}=(0,U.QT)({useScope:"global"}),n=(0,o.Fl)((()=>{let n=e.items.length;return n==e.itemsToDisplay.length?t("Delete all"):t("Delete all")+" ("+n+")"}));return{endpoint:e.endpoint,button_text:n}}},Rr=(0,oe.Z)(Ir,[["render",function(e,t,n,r,i,s){return(0,o.wg)(),(0,o.iD)("a",{class:"btn btn-sm btn-outline-danger modes",role:"button",href:r.endpoint+"/delete-all-items"},(0,a.toDisplayString)(r.button_text),9,Ar)}]]);const Pr=(e=>((0,o.dD)("data-v-758fefef"),e=e(),(0,o.Cn)(),e))((()=>(0,o._)("hr",{class:"mt-3"},null,-1))),Lr=e=>((0,o.dD)("data-v-142a5867"),e=e(),(0,o.Cn)(),e),Dr={class:"ds-controls-height ds-button-container ds-mt-n1"},Mr={key:0},Fr={class:"modal-dialog modal-lg",role:"document"},jr={class:"modal-content"},Ur={class:"modal-header"},Br={key:0,class:"modal-title"},Vr={key:1,class:"modal-title"},zr=[Lr((()=>(0,o._)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x","aria-hidden":"true"},[(0,o._)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,o._)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)))],Wr={key:0,class:"modal-body"},Hr=["onClick"],$r={key:1,class:"modal-body"},qr={class:"fw-bold"},Yr={class:"mt-2"},Xr={class:"modal-footer"},Gr=Lr((()=>(0,o._)("div",{class:"modal-backdrop fade show"},null,-1))),Jr={class:"mt-2"},Zr=["id","value","checked","onClick"],Kr=["for"];var Qr={name:"FieldFilter",components:{},props:{field:Object},setup(e){const t=(0,d.i)(),n=(0,o.f3)("filters");return{getFieldOptions:function(){let n=t.getFieldStructure(e.field.name);if(n.values)return n.values},isSelected:(0,o.Fl)((()=>t=>Boolean(n.value[e.field.name]&&n.value[e.field.name].includes(t)))),toggleFilter:(0,o.f3)("toggleFilter")}}},eo={name:"AddFieldFilter",components:{FieldFilter:(0,oe.Z)(Qr,[["render",function(e,t,n,r,i,s){return(0,o.wg)(),(0,o.iD)("div",Jr,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(r.getFieldOptions(),(e=>((0,o.wg)(),(0,o.iD)("div",{class:"form-check",key:e.value},[(0,o._)("input",{type:"checkbox",class:"form-check-input",id:"check"+e.value,value:e.value,checked:r.isSelected(e.value),onClick:t=>r.toggleFilter(n.field.name,e.value)},null,8,Zr),(0,o._)("label",{for:"check"+e.value,class:"form-check-label"},(0,a.toDisplayString)(e.label),9,Kr)])))),128))])}]])},props:{edit_field:Object},emits:["cancelEdition","saveFilters"],setup(e,{emit:t}){const n=(0,d.i)(),r=(0,B.iH)(!1),i=(0,B.qj)({name:"",label:""}),a=(0,o.f3)("filters");(0,o.YP)((()=>e.edit_field.name),(()=>{e.edit_field.name&&(i.name=e.edit_field.name,i.label=e.edit_field.label,r.value=!0)}));const s=(0,o.Fl)((()=>e=>Boolean(a.value[e]&&a.value[e].length))),u=(0,o.Fl)((()=>{var e=[];return n.field_index.forEach((t=>{(0,K._r)(t.name)&&(_.find(n.deleted_fields,(function(e){return e.name==t.name}))||e.push(t))})),e}));return{show_modal:r,closeModal:function(){r.value=!1,t("cancelEdition")},field_index:u,selected_field:i,isFiltered:s,selectField:function(e){i.name=e.name,i.label=e.label},showAllFields:function(){i.name="",i.label=""},saveFilters:function(){r.value=!1,t("saveFilters")},clearAll:function(){a.value={},n.ui.extended_filters=!1,t("saveFilters")},closeFilters:function(){n.ui.extended_filters=!1}}}};s(4261);var to=(0,oe.Z)(eo,[["render",function(t,n,r,i,s,u){const l=(0,o.up)("FieldFilter");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("div",Dr,[(0,o._)("button",{class:"btn btn-sm btn-outline-primary",onClick:n[0]||(n[0]=e=>i.show_modal=!0)},(0,a.toDisplayString)(t.$t("Add filters")),1),(0,o._)("button",{class:"btn btn-sm btn-outline-secondary",onClick:n[1]||(n[1]=e=>i.clearAll())},(0,a.toDisplayString)(t.$t("Clear")),1),(0,o._)("button",{class:"btn btn-sm btn-outline-secondary",onClick:n[2]||(n[2]=e=>i.closeFilters())},(0,a.toDisplayString)(t.$t("Close")),1)]),i.show_modal?((0,o.wg)(),(0,o.iD)("div",Mr,[(0,o._)("div",{class:"modal fade show d-block",onKeydown:n[7]||(n[7]=(0,e.withKeys)((e=>i.closeModal()),["esc"])),tabindex:"-1",role:"dialog"},[(0,o._)("div",Fr,[(0,o._)("div",jr,[(0,o._)("div",Ur,[i.selected_field.name?((0,o.wg)(),(0,o.iD)("h5",Br,(0,a.toDisplayString)(t.$t("Select field options")),1)):((0,o.wg)(),(0,o.iD)("h5",Vr,(0,a.toDisplayString)(t.$t("Select a field")),1)),(0,o._)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close",onClick:n[3]||(n[3]=e=>i.closeModal())},zr)]),i.selected_field.name?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("div",Wr,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(i.field_index,(e=>((0,o.wg)(),(0,o.iD)("div",{key:"selector"+e.name,onClick:t=>i.selectField(e),class:"mt-1"},[(0,o._)("span",{class:(0,a.normalizeClass)(["badge rounded-pill",1==i.isFiltered(e.name)?"bg-success":"bg-secondary"])},(0,a.toDisplayString)(t.$t("filtered")),3),(0,o.Uk)(" "+(0,a.toDisplayString)(e.label),1)],8,Hr)))),128))])),i.selected_field.name?((0,o.wg)(),(0,o.iD)("div",$r,[(0,o._)("div",qr,(0,a.toDisplayString)(i.selected_field.label),1),(0,o._)("div",Yr,[(0,o.Wm)(l,{field:i.selected_field},null,8,["field"])])])):(0,o.kq)("v-if",!0),(0,o._)("div",Xr,[i.selected_field.name?((0,o.wg)(),(0,o.iD)("button",{key:0,type:"button",class:"btn btn-outline-primary",onClick:n[4]||(n[4]=e=>i.showAllFields())},(0,a.toDisplayString)(t.$t("All fields")),1)):(0,o.kq)("v-if",!0),(0,o._)("button",{type:"button",class:"btn btn-primary",onClick:n[5]||(n[5]=e=>i.saveFilters())},(0,a.toDisplayString)(t.$t("Save")),1),(0,o._)("button",{type:"button",class:"btn btn-secondary",onClick:n[6]||(n[6]=e=>i.closeModal())},(0,a.toDisplayString)(t.$t("Cancel")),1)])])])],32),Gr])):(0,o.kq)("v-if",!0)],64)}],["__scopeId","data-v-142a5867"]]);const no={class:"my-2 fw-bold"},ro={class:"mt-1"},oo=["onClick"],io={class:"ds-filter-label"};var ao={name:"FilterDisplay",components:{TrashIcon:V.XHJ,EditIcon:V.dY8},props:{field:Object},setup(e){const t=(0,d.i)();return(0,o.Fl)((()=>t.getFieldLabel(e.field.name))),{options:(0,o.Fl)((()=>{var n=[];if(void 0!==t.extended_filters[e.field.name]){let r=t.extended_filters[e.field.name];t.getFieldOptions(e.field.name).forEach((e=>{r.includes(e.value)&&n.push(e)}))}return n})),deleteFilter:(0,o.f3)("deleteFilter"),editFilter:(0,o.f3)("editFilter")}}};s(922);var so={name:"FiltersDisplay",components:{FilterDisplay:(0,oe.Z)(ao,[["render",function(e,t,n,r,i,s){const u=(0,o.up)("TrashIcon"),l=(0,o.up)("EditIcon");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("div",no,(0,a.toDisplayString)(n.field.label),1),(0,o._)("div",ro,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(r.options,(e=>((0,o.wg)(),(0,o.iD)("div",{class:"mt-1 input-group ds-option-filter",key:e.value},[(0,o._)("button",{type:"button",class:"btn btn-sm btn-outline-danger",onClick:t=>r.deleteFilter(n.field.name,e.value)},[(0,o.Wm)(u,{size:"1.25x"})],8,oo),(0,o._)("button",{type:"button",class:"btn btn-sm btn-outline-secondary",onClick:t[0]||(t[0]=e=>r.editFilter(n.field.name))},[(0,o.Wm)(l,{size:"1.25x"})]),(0,o._)("span",io,(0,a.toDisplayString)(e.label),1)])))),128))])],64)}],["__scopeId","data-v-46321830"]])},setup(){const e=(0,d.i)();return{field_index:(0,o.Fl)((()=>{var t=[];for(let n in e.extended_filters)t.push({name:n,label:e.getFieldLabel(n)});return t}))}}},uo={name:"ItemFilters",components:{AddFieldFilter:to,FiltersDisplay:(0,oe.Z)(so,[["render",function(e,t,n,r,i,a){const s=(0,o.up)("FilterDisplay");return(0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(r.field_index,(e=>((0,o.wg)(),(0,o.iD)("div",{key:e.name},[(0,o.Wm)(s,{field:e},null,8,["field"])])))),128)}]])},setup(){const e=(0,d.i)(),t=(0,B.iH)({}),n=(0,B.iH)({});function r(){n.value=JSON.parse(JSON.stringify(e.extended_filters)),console.log("reset filters.value",n.value)}function i(e,r){if(t.value={},void 0===n.value[e]&&(n.value[e]=[]),n.value[e].includes(r)){let t=n.value[e].indexOf(r);t>-1&&(n.value[e].splice(t,1),0==n.value[e]&&delete n.value[e])}else n.value[e].push(r)}function a(){e.extended_filters=JSON.parse(JSON.stringify(n.value)),f().patch(e.endpoint+"/set-filters",JSON.stringify({extended_filters:e.extended_filters}),{headers:{"Content-Type":"application/json"}}).then((function(e){})).catch((function(e){console.log(e)})),s()}function s(){t.value={},r()}return(0,o.JJ)("filters",n),r(),(0,o.JJ)("toggleFilter",i),(0,o.JJ)("editFilter",(function(n){let r=e.getFieldLabel(n);t.value={name:n,label:r}})),(0,o.JJ)("deleteFilter",(function(e,t){i(e,t),a()})),{edit_field:t,saveFilters:a,cancelEdition:s}}};s(340);const lo={class:"mt-2"},co={class:"fw-bold"};var fo={name:"NumericTotals",components:{},setup(){const e=(0,d.i)();return{close:function(){e.ui.numeric_totals=!1},totals:(0,o.Fl)((()=>{var t={};return e.itemsToDisplay.forEach((e=>{let n=Object.keys(e.data);for(let r in n){let o=n[r];o.startsWith("number")&&(Object.keys(t).includes(o)||(t[o]=0),t[o]=t[o]+Number(e.data[o]))}})),t})),getLabel:e.getFieldLabel}}},po={name:"DisplayPanel",components:{ItemControls:se,ExportOptions:wr,DisplayModes:Tr,OtherOptions:Nr,DeleteAllItems:Rr,ItemFilters:(0,oe.Z)(uo,[["render",function(e,t,n,r,i,a){const s=(0,o.up)("AddFieldFilter"),u=(0,o.up)("FiltersDisplay");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o.Wm)(s,{edit_field:r.edit_field,onCancelEdition:r.cancelEdition,onSaveFilters:r.saveFilters},null,8,["edit_field","onCancelEdition","onSaveFilters"]),(0,o.Wm)(u),Pr],64)}],["__scopeId","data-v-758fefef"]]),SearchText:ie,NumericTotals:(0,oe.Z)(fo,[["render",function(e,t,n,r,i,s){return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("button",{class:"btn btn-sm btn-outline-secondary",onClick:t[0]||(t[0]=e=>r.close())},(0,a.toDisplayString)(e.$t("Close")),1),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(Object.entries(r.totals),(([e,t],n)=>((0,o.wg)(),(0,o.iD)("div",{key:n},[(0,o._)("div",lo,[(0,o._)("span",co,(0,a.toDisplayString)(r.getLabel(e)),1),(0,o.Uk)(" "+(0,a.toDisplayString)(t),1)])])))),128))],64)}]]),ChevronDownIcon:V.v4q,ChevronUpIcon:V.g8U},setup(){const e=(0,d.i)(),t=(0,o.f3)("xs_screen"),{t:n}=(0,U.QT)({useScope:"global"});(0,o.JJ)("has_items",(0,o.Fl)((()=>e.itemsToDisplay.length)));const r=(0,B.iH)(!t.value),i=(0,o.Fl)((()=>t.value?"mb-3":"answer"==e.data_type?"d-flex align-items-center justify-content-between":e.enabled_exports.length?"d-flex align-items-center justify-content-end":"mt-1")),a=(0,o.Fl)((()=>!("grid"==e.display_items_as&&!t.value&&e.items.length==e.itemsToDisplay.length&&!Object.keys(e.extended_filters).length))),s=(0,o.Fl)((()=>{let t=e.items.length;if(0==t)return n("No data");let r=e.itemsToDisplay.length;return Object.keys(e.extended_filters).length||e.searched_items.length||e.search_text?n("Filtered {number} of {total}").replace("{number}",r).replace("{total}",t):"user"==e.data_type&&r==t?n("Total users: {total}").replace("{total}",t):"form"==e.data_type&&r==t?n("Total forms: {total}").replace("{total}",t):"answer"==e.data_type&&r==t?n("Total answers: {total}").replace("{total}",t):n("Displaying {number} of {total}").replace("{number}",r).replace("{total}",t)}));return{xs_screen:t,controlGroupClasses:i,data_type:e.data_type,can_edit:e.can_edit,show_options:r,show_other_options:(0,o.Fl)((()=>e.show_other_options)),enable_exports:e.enabled_exports.length,extended_filters:(0,o.Fl)((()=>e.ui.extended_filters)),show_numeric_totals:(0,o.Fl)((()=>e.ui.numeric_totals)),show_displaying_of:a,displaying_total_of:s}}};s(2416),s(7959);var ho={name:"DataDisplay",components:{DisplayPanel:(0,oe.Z)(po,[["render",function(e,t,n,r,i,s){const u=(0,o.up)("SearchText"),l=(0,o.up)("ChevronDownIcon"),c=(0,o.up)("ChevronUpIcon"),f=(0,o.up)("ExportOptions"),d=(0,o.up)("DisplayModes"),_=(0,o.up)("ItemControls"),U=(0,o.up)("OtherOptions"),B=(0,o.up)("DeleteAllItems"),V=(0,o.up)("ItemFilters"),z=(0,o.up)("NumericTotals"),W=(0,o.up)("slide-up-down");return"answer"==r.data_type?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[r.xs_screen?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[(0,o._)("div",p,[(0,o.Wm)(u)]),(0,o._)("div",h,[(0,o._)("a",{class:"toggle-panel-btn",onClick:t[0]||(t[0]=e=>r.show_options=!r.show_options)},[0==r.show_options?((0,o.wg)(),(0,o.j4)(l,{key:0,size:"1.5x","aria-hidden":"true"})):((0,o.wg)(),(0,o.j4)(c,{key:1,class:"expand_panel_icon",size:"1.5x","aria-hidden":"true"})),(0,o._)("span",null,(0,a.toDisplayString)(e.$t("Options")),1)])]),(0,o.kq)(" options start "),(0,o.Wm)(W,{active:r.show_options,duration:200},{default:(0,o.w5)((()=>[r.enable_exports?((0,o.wg)(),(0,o.iD)("div",m,[(0,o.Wm)(f)])):(0,o.kq)("v-if",!0),(0,o._)("div",g,[(0,o.Wm)(d)]),(0,o._)("div",v,[(0,o.Wm)(_),(0,o._)("div",y,[(0,o.Wm)(U)]),r.show_other_options&&r.can_edit?((0,o.wg)(),(0,o.iD)("div",b,[(0,o.Wm)(B)])):(0,o.kq)("v-if",!0),r.extended_filters?((0,o.wg)(),(0,o.iD)("div",E,[(0,o.Wm)(V)])):(0,o.kq)("v-if",!0),r.show_numeric_totals?((0,o.wg)(),(0,o.iD)("div",w,[(0,o.Wm)(z)])):(0,o.kq)("v-if",!0)])])),_:1},8,["active"]),(0,o.kq)(" options end "),(0,o._)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,S)],64)):(0,o.kq)("v-if",!0),r.xs_screen?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)(o.HY,{key:1},[(0,o._)("div",{class:(0,a.normalizeClass)([r.controlGroupClasses,"ds-mt-n1"])},[(0,o._)("div",T,[(0,o.Wm)(d)]),r.enable_exports?((0,o.wg)(),(0,o.iD)("div",x,[(0,o.Wm)(f)])):(0,o.kq)("v-if",!0)],2),(0,o._)("div",O,[(0,o.Wm)(_)]),(0,o._)("div",k,[(0,o._)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,C),(0,o._)("div",N,[(0,o.Wm)(U)])]),r.show_other_options&&r.can_edit?((0,o.wg)(),(0,o.iD)("div",A,[(0,o.Wm)(B)])):(0,o.kq)("v-if",!0),r.extended_filters?((0,o.wg)(),(0,o.iD)("div",I,[(0,o.Wm)(V)])):(0,o.kq)("v-if",!0),r.show_numeric_totals?((0,o.wg)(),(0,o.iD)("div",R,[(0,o.Wm)(z)])):(0,o.kq)("v-if",!0)],64))],64)):r.xs_screen?((0,o.wg)(),(0,o.iD)(o.HY,{key:1},[(0,o.kq)(" end render data_type = answers "),(0,o._)("div",null,[(0,o.Wm)(u)]),(0,o._)("div",P,[(0,o._)("a",{class:"toggle-panel-btn",onClick:t[1]||(t[1]=e=>r.show_options=!r.show_options)},[(0,o._)("span",null,(0,a.toDisplayString)(e.$t("Options")),1),0==r.show_options?((0,o.wg)(),(0,o.j4)(l,{key:0,size:"1.5x","aria-hidden":"true"})):((0,o.wg)(),(0,o.j4)(c,{key:1,class:"expand_panel_icon",size:"1.5x","aria-hidden":"true"}))])]),(0,o.Wm)(W,{active:r.show_options,duration:200},{default:(0,o.w5)((()=>[(0,o._)("div",null,[(0,o._)("div",L,[(0,o.Wm)(_)]),(0,o._)("div",D,[(0,o.Wm)(d)])])])),_:1},8,["active"]),(0,o._)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,M)],64)):((0,o.wg)(),(0,o.iD)(o.HY,{key:2},[r.enable_exports?((0,o.wg)(),(0,o.iD)("div",{key:0,class:(0,a.normalizeClass)([r.controlGroupClasses,"mb-3"])},[(0,o.Wm)(f)],2)):(0,o.kq)("v-if",!0),(0,o._)("div",F,[(0,o.Wm)(_)]),(0,o._)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,j)],64))}],["__scopeId","data-v-e627cbac"]])},setup(){const e=(0,d.i)();e.setLanguage((0,o.f3)("ui_language")),f().defaults.headers.common["X-CSRF-TOKEN"]=(0,o.f3)("csrf_token"),e.endpoint=(0,o.f3)("endpoint"),e.enable_exports=(0,o.f3)("enable_exports");let t=(0,o.f3)("display_as");e.display_items_as=t||"grid",e.downloadItems();const n=(0,r.useMq)(),i=(0,o.Fl)((()=>"xs"==n.current));return(0,o.JJ)("xs_screen",i),{is_loading:(0,o.Fl)((()=>e.downloading_items)),show_display_panel:(0,o.Fl)((()=>e.ui.display_panel))}}};s(6204);var mo=(0,oe.Z)(ho,[["render",function(e,t,n,r,i,s){const c=(0,o.up)("DisplayPanel");return r.show_display_panel?((0,o.wg)(),(0,o.iD)("div",u,[!0===r.is_loading?((0,o.wg)(),(0,o.iD)("div",l,(0,a.toDisplayString)(e.$t("Loading...")),1)):((0,o.wg)(),(0,o.j4)(c,{key:1}))])):(0,o.kq)("v-if",!0)}]]);document.querySelectorAll("[vue-component=data-display]").forEach((o=>{(0,e.createApp)(mo).use(n.Z).use((0,t.WB)()).use(r.Vue3Mq,{}).component("slide-up-down",i).provide("endpoint",o.dataset.endpoint).provide("csrf_token",o.dataset.csrf_token).provide("ui_language",o.dataset.ui_language).provide("display_as",o.dataset.display_as).provide("enable_exports",o.dataset.enable_exports).mount(o)}))}(),u=s.O(u)}(); \ No newline at end of file
+!function(){var e,t,n,r,o,i={5930:function(e,t,n){"use strict";n.r(t),n.d(t,{BASE_TRANSITION:function(){return u},BindingTypes:function(){return Er},CAMELIZE:function(){return L},CAPITALIZE:function(){return R},CREATE_BLOCK:function(){return c},CREATE_COMMENT:function(){return h},CREATE_ELEMENT_BLOCK:function(){return f},CREATE_ELEMENT_VNODE:function(){return p},CREATE_SLOTS:function(){return T},CREATE_STATIC:function(){return g},CREATE_TEXT:function(){return m},CREATE_VNODE:function(){return d},CompilerDeprecationTypes:function(){return Te},ConstantTypes:function(){return G},DOMDirectiveTransforms:function(){return Xr},DOMErrorCodes:function(){return Ur},DOMErrorMessages:function(){return jr},DOMNodeTransforms:function(){return Yr},ElementTypes:function(){return X},ErrorCodes:function(){return Re},FRAGMENT:function(){return o},GUARD_REACTIVE_PROPS:function(){return k},IS_MEMO_SAME:function(){return $},IS_REF:function(){return B},KEEP_ALIVE:function(){return a},MERGE_PROPS:function(){return x},NORMALIZE_CLASS:function(){return N},NORMALIZE_PROPS:function(){return A},NORMALIZE_STYLE:function(){return C},Namespaces:function(){return H},NodeTypes:function(){return Y},OPEN_BLOCK:function(){return l},POP_SCOPE_ID:function(){return F},PUSH_SCOPE_ID:function(){return M},RENDER_LIST:function(){return w},RENDER_SLOT:function(){return S},RESOLVE_COMPONENT:function(){return v},RESOLVE_DIRECTIVE:function(){return y},RESOLVE_DYNAMIC_COMPONENT:function(){return _},RESOLVE_FILTER:function(){return b},SET_BLOCK_TRACKING:function(){return D},SUSPENSE:function(){return s},TELEPORT:function(){return i},TO_DISPLAY_STRING:function(){return O},TO_HANDLERS:function(){return I},TO_HANDLER_KEY:function(){return P},TRANSITION:function(){return Ir},TRANSITION_GROUP:function(){return Lr},TS_NODE_TYPES:function(){return He},UNREF:function(){return j},V_MODEL_CHECKBOX:function(){return Tr},V_MODEL_DYNAMIC:function(){return Nr},V_MODEL_RADIO:function(){return Sr},V_MODEL_SELECT:function(){return xr},V_MODEL_TEXT:function(){return Or},V_ON_WITH_KEYS:function(){return Ar},V_ON_WITH_MODIFIERS:function(){return Cr},V_SHOW:function(){return kr},WITH_CTX:function(){return U},WITH_DIRECTIVES:function(){return E},WITH_MEMO:function(){return V},advancePositionWithClone:function(){return rt},advancePositionWithMutation:function(){return ot},assert:function(){return it},baseCompile:function(){return br},baseParse:function(){return nn},buildDirectiveArgs:function(){return Zn},buildProps:function(){return Jn},buildSlots:function(){return zn},checkCompatEnabled:function(){return Ce},compile:function(){return Gr},convertToBlock:function(){return ge},createArrayExpression:function(){return Q},createAssignmentExpression:function(){return fe},createBlockStatement:function(){return ue},createCacheExpression:function(){return ae},createCallExpression:function(){return oe},createCompilerError:function(){return Le},createCompoundExpression:function(){return re},createConditionalExpression:function(){return se},createDOMCompilerError:function(){return Fr},createForLoopParams:function(){return Un},createFunctionExpression:function(){return ie},createIfStatement:function(){return ce},createInterpolation:function(){return ne},createObjectExpression:function(){return Z},createObjectProperty:function(){return ee},createReturnStatement:function(){return pe},createRoot:function(){return J},createSequenceExpression:function(){return de},createSimpleExpression:function(){return te},createStructuralDirectiveTransform:function(){return gn},createTemplateLiteral:function(){return le},createTransformContext:function(){return pn},createVNodeCall:function(){return K},errorMessages:function(){return Pe},extractIdentifiers:function(){return Ve},findDir:function(){return st},findProp:function(){return at},forAliasRE:function(){return Et},generate:function(){return yn},generateCodeFrame:function(){return r.generateCodeFrame},getBaseTransformPreset:function(){return yr},getConstantType:function(){return an},getMemoedVNodeCall:function(){return bt},getVNodeBlockHelper:function(){return me},getVNodeHelper:function(){return he},hasDynamicKeyVBind:function(){return lt},hasScopeRef:function(){return yt},helperNameMap:function(){return z},injectProp:function(){return gt},isCoreComponent:function(){return Ge},isFunctionType:function(){return $e},isInDestructureAssignment:function(){return Fe},isInNewExpression:function(){return Ue},isMemberExpression:function(){return nt},isMemberExpressionBrowser:function(){return et},isMemberExpressionNode:function(){return tt},isReferencedIdentifier:function(){return Me},isSimpleIdentifier:function(){return Je},isSlotOutlet:function(){return pt},isStaticArgOf:function(){return ut},isStaticExp:function(){return Xe},isStaticProperty:function(){return ze},isStaticPropertyKey:function(){return We},isTemplateNode:function(){return dt},isText:function(){return ct},isVSlot:function(){return ft},locStub:function(){return q},noopDirectiveTransform:function(){return wr},parse:function(){return qr},parserOptions:function(){return Pr},processExpression:function(){return Cn},processFor:function(){return Mn},processIf:function(){return In},processSlotOutlet:function(){return nr},registerRuntimeHelpers:function(){return W},resolveComponentType:function(){return qn},stringifyExpression:function(){return An},toValidAssetId:function(){return _t},trackSlotScopes:function(){return Bn},trackVForSlotScopes:function(){return Vn},transform:function(){return hn},transformBind:function(){return ir},transformElement:function(){return Gn},transformExpression:function(){return Nn},transformModel:function(){return cr},transformOn:function(){return or},transformStyle:function(){return Dr},traverseNode:function(){return mn},unwrapTSNode:function(){return Ye},walkBlockDeclarations:function(){return Be},walkFunctionParams:function(){return je},walkIdentifiers:function(){return De},warnDeprecation:function(){return Ae}});var r=n(4526);const o=Symbol(""),i=Symbol(""),s=Symbol(""),a=Symbol(""),u=Symbol(""),l=Symbol(""),c=Symbol(""),f=Symbol(""),d=Symbol(""),p=Symbol(""),h=Symbol(""),m=Symbol(""),g=Symbol(""),v=Symbol(""),_=Symbol(""),y=Symbol(""),b=Symbol(""),E=Symbol(""),w=Symbol(""),S=Symbol(""),T=Symbol(""),O=Symbol(""),x=Symbol(""),N=Symbol(""),C=Symbol(""),A=Symbol(""),k=Symbol(""),I=Symbol(""),L=Symbol(""),R=Symbol(""),P=Symbol(""),D=Symbol(""),M=Symbol(""),F=Symbol(""),U=Symbol(""),j=Symbol(""),B=Symbol(""),V=Symbol(""),$=Symbol(""),z={[o]:"Fragment",[i]:"Teleport",[s]:"Suspense",[a]:"KeepAlive",[u]:"BaseTransition",[l]:"openBlock",[c]:"createBlock",[f]:"createElementBlock",[d]:"createVNode",[p]:"createElementVNode",[h]:"createCommentVNode",[m]:"createTextVNode",[g]:"createStaticVNode",[v]:"resolveComponent",[_]:"resolveDynamicComponent",[y]:"resolveDirective",[b]:"resolveFilter",[E]:"withDirectives",[w]:"renderList",[S]:"renderSlot",[T]:"createSlots",[O]:"toDisplayString",[x]:"mergeProps",[N]:"normalizeClass",[C]:"normalizeStyle",[A]:"normalizeProps",[k]:"guardReactiveProps",[I]:"toHandlers",[L]:"camelize",[R]:"capitalize",[P]:"toHandlerKey",[D]:"setBlockTracking",[M]:"pushScopeId",[F]:"popScopeId",[U]:"withCtx",[j]:"unref",[B]:"isRef",[V]:"withMemo",[$]:"isMemoSame"};function W(e){Object.getOwnPropertySymbols(e).forEach((t=>{z[t]=e[t]}))}const H={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Y={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},X={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},G={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_HOIST:2,2:"CAN_HOIST",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},q={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function J(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:q}}function K(e,t,n,r,o,i,s,a=!1,u=!1,c=!1,f=q){return e&&(a?(e.helper(l),e.helper(me(e.inSSR,c))):e.helper(he(e.inSSR,c)),s&&e.helper(E)),{type:13,tag:t,props:n,children:r,patchFlag:o,dynamicProps:i,directives:s,isBlock:a,disableTracking:u,isComponent:c,loc:f}}function Q(e,t=q){return{type:17,loc:t,elements:e}}function Z(e,t=q){return{type:15,loc:t,properties:e}}function ee(e,t){return{type:16,loc:q,key:(0,r.isString)(e)?te(e,!0):e,value:t}}function te(e,t=!1,n=q,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function ne(e,t){return{type:5,loc:t,content:(0,r.isString)(e)?te(e,!1,t):e}}function re(e,t=q){return{type:8,loc:t,children:e}}function oe(e,t=[],n=q){return{type:14,loc:n,callee:e,arguments:t}}function ie(e,t=void 0,n=!1,r=!1,o=q){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:o}}function se(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:q}}function ae(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:q}}function ue(e){return{type:21,body:e,loc:q}}function le(e){return{type:22,elements:e,loc:q}}function ce(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:q}}function fe(e,t){return{type:24,left:e,right:t,loc:q}}function de(e){return{type:25,expressions:e,loc:q}}function pe(e){return{type:26,returns:e,loc:q}}function he(e,t){return e||t?d:p}function me(e,t){return e||t?c:f}function ge(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(he(r,e.isComponent)),t(l),t(me(r,e.isComponent)))}const ve=new Uint8Array([123,123]),_e=new Uint8Array([125,125]);function ye(e){return e>=97&&e<=122||e>=65&&e<=90}function be(e){return 32===e||10===e||9===e||12===e||13===e}function Ee(e){return 47===e||62===e||be(e)}function we(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Se={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},Te={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},Oe={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function xe(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function Ne(e,t){const n=xe("MODE",t),r=xe(e,t);return 3===n?!0===r:!1!==r}function Ce(e,t,n,...r){return Ne(e,t)}function Ae(e,t,n,...r){if("suppress-warning"===xe(e,t))return;const{message:o,link:i}=Oe[e],s=`(deprecation ${e}) ${"function"==typeof o?o(...r):o}${i?`\n Details: ${i}`:""}`,a=new SyntaxError(s);a.code=e,n&&(a.loc=n),t.onWarn(a)}function ke(e){throw e}function Ie(e){}function Le(e,t,n,r){const o=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return o.code=e,o.loc=t,o}const Re={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},Pe={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:"v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.",45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function De(e,t,n=!1,r=[],o=Object.create(null)){}function Me(e,t,n){return!1}function Fe(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1}function Ue(e){let t=e.length;for(;t--;){const n=e[t];if("NewExpression"===n.type)return!0;if("MemberExpression"!==n.type)break}return!1}function je(e,t){for(const n of e.params)for(const e of Ve(n))t(e)}function Be(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(n.declare)continue;for(const e of n.declarations)for(const n of Ve(e.id))t(n)}else if("FunctionDeclaration"===n.type||"ClassDeclaration"===n.type){if(n.declare||!n.id)continue;t(n.id)}else if("ForOfStatement"===n.type||"ForInStatement"===n.type||"ForStatement"===n.type){const e="ForStatement"===n.type?n.init:n.left;if(e&&"VariableDeclaration"===e.type)for(const n of e.declarations)for(const e of Ve(n.id))t(e)}}function Ve(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":for(const n of e.properties)"RestElement"===n.type?Ve(n.argument,t):Ve(n.value,t);break;case"ArrayPattern":e.elements.forEach((e=>{e&&Ve(e,t)}));break;case"RestElement":Ve(e.argument,t);break;case"AssignmentPattern":Ve(e.left,t)}return t}const $e=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),ze=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,We=(e,t)=>ze(t)&&t.key===e,He=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Ye(e){return He.includes(e.type)?Ye(e.expression):e}const Xe=e=>4===e.type&&e.isStatic;function Ge(e){switch(e){case"Teleport":case"teleport":return i;case"Suspense":case"suspense":return s;case"KeepAlive":case"keep-alive":return a;case"BaseTransition":case"base-transition":return u}}const qe=/^\d|[^\$\w]/,Je=e=>!qe.test(e),Ke=/[A-Za-z_$\xA0-\uFFFF]/,Qe=/[\.\?\w$\xA0-\uFFFF]/,Ze=/\s+[.[]\s*|\s*[.[]\s+/g,et=e=>{e=e.trim().replace(Ze,(e=>e.trim()));let t=0,n=[],r=0,o=0,i=null;for(let s=0;s<e.length;s++){const a=e.charAt(s);switch(t){case 0:if("["===a)n.push(t),t=1,r++;else if("("===a)n.push(t),t=2,o++;else if(!(0===s?Ke:Qe).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(t),t=3,i=a):"["===a?r++:"]"===a&&(--r||(t=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(t),t=3,i=a;else if("("===a)o++;else if(")"===a){if(s===e.length-1)return!1;--o||(t=n.pop())}break;case 3:a===i&&(t=n.pop(),i=null)}}return!r&&!o},tt=r.NOOP,nt=et;function rt(e,t,n=t.length){return ot({offset:e.offset,line:e.line,column:e.column},t,n)}function ot(e,t,n=t.length){let r=0,o=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,o=e);return e.offset+=n,e.line+=r,e.column=-1===o?e.column+n:n-o,e}function it(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function st(e,t,n=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&(n||i.exp)&&((0,r.isString)(t)?i.name===t:t.test(i.name)))return i}}function at(e,t,n=!1,r=!1){for(let o=0;o<e.props.length;o++){const i=e.props[o];if(6===i.type){if(n)continue;if(i.name===t&&(i.value||r))return i}else if("bind"===i.name&&(i.exp||r)&&ut(i.arg,t))return i}}function ut(e,t){return!(!e||!Xe(e)||e.content!==t)}function lt(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function ct(e){return 5===e.type||2===e.type}function ft(e){return 7===e.type&&"slot"===e.name}function dt(e){return 1===e.type&&3===e.tagType}function pt(e){return 1===e.type&&2===e.tagType}const ht=new Set([A,k]);function mt(e,t=[]){if(e&&!(0,r.isString)(e)&&14===e.type){const n=e.callee;if(!(0,r.isString)(n)&&ht.has(n))return mt(e.arguments[0],t.concat(e))}return[e,t]}function gt(e,t,n){let o,i,s=13===e.type?e.props:e.arguments[2],a=[];if(s&&!(0,r.isString)(s)&&14===s.type){const e=mt(s);s=e[0],a=e[1],i=a[a.length-1]}if(null==s||(0,r.isString)(s))o=Z([t]);else if(14===s.type){const e=s.arguments[0];(0,r.isString)(e)||15!==e.type?s.callee===I?o=oe(n.helper(x),[Z([t]),s]):s.arguments.unshift(Z([t])):vt(t,e)||e.properties.unshift(t),!o&&(o=s)}else 15===s.type?(vt(t,s)||s.properties.unshift(t),o=s):(o=oe(n.helper(x),[Z([t]),s]),i&&i.callee===k&&(i=a[a.length-2]));13===e.type?i?i.arguments[0]=o:e.props=o:i?i.arguments[0]=o:e.arguments[2]=o}function vt(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===r))}return n}function _t(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function yt(e,t){if(!e||0===Object.keys(t).length)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&(yt(r.arg,t)||yt(r.exp,t)))return!0}return e.children.some((e=>yt(e,t)));case 11:return!!yt(e.source,t)||e.children.some((e=>yt(e,t)));case 9:return e.branches.some((e=>yt(e,t)));case 10:return!!yt(e.condition,t)||e.children.some((e=>yt(e,t)));case 4:return!e.isStatic&&Je(e.content)&&!!t[e.content];case 8:return e.children.some((e=>(0,r.isObject)(e)&&yt(e,t)));case 5:case 12:return yt(e.content,t);default:return!1}}function bt(e){return 14===e.type&&e.callee===V?e.arguments[1].returns:e}const Et=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,wt={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:r.NO,isPreTag:r.NO,isCustomElement:r.NO,onError:ke,onWarn:Ie,comments:!1,prefixIdentifiers:!1};let St=wt,Tt=null,Ot="",xt=null,Nt=null,Ct="",At=-1,kt=-1,It=0,Lt=!1,Rt=null;const Pt=[],Dt=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=ve,this.delimiterClose=_e,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=ve,this.delimiterClose=_e}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){const o=this.newlines[r];if(e>o){t=r+2,n=e-o;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Ee(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||be(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Se.TitleEnd||this.currentSequence===Se.TextareaEnd&&!this.inSFCRoot?e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===Se.Cdata[this.sequenceIndex]?++this.sequenceIndex===Se.Cdata.length&&(this.state=28,this.currentSequence=Se.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Se.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):ye(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Ee(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Ee(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(we("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){be(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=ye(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||be(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):be(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):be(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Ee(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Ee(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Ee(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Ee(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Ee(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):be(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):be(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){be(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=Se.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Se.ScriptEnd[3]?this.startSpecial(Se.ScriptEnd,4):e===Se.StyleEnd[3]?this.startSpecial(Se.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Se.TitleEnd[3]?this.startSpecial(Se.TitleEnd,4):e===Se.TextareaEnd[3]?this.startSpecial(Se.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===Se.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(Pt,{onerr:tn,ontext(e,t){Bt(Ut(e,t),e,t)},ontextentity(e,t,n){Bt(e,t,n)},oninterpolation(e,t){if(Lt)return Bt(Ut(e,t),e,t);let n=e+Dt.delimiterOpen.length,r=t-Dt.delimiterClose.length;for(;be(Ot.charCodeAt(n));)n++;for(;be(Ot.charCodeAt(r-1));)r--;let o=Ut(n,r);o.includes("&")&&(o=St.decodeEntities(o,!1)),Jt({type:5,content:en(o,!1,Kt(n,r)),loc:Kt(e,t)})},onopentagname(e,t){const n=Ut(e,t);xt={type:1,tag:n,ns:St.getNamespace(n,Pt[0],St.ns),tagType:0,props:[],children:[],loc:Kt(e-1,t),codegenNode:void 0}},onopentagend(e){jt(e)},onclosetag(e,t){const n=Ut(e,t);if(!St.isVoidTag(n)){let r=!1;for(let e=0;e<Pt.length;e++)if(Pt[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&tn(24,Pt[0].loc.start.offset);for(let n=0;n<=e;n++)Vt(Pt.shift(),t,n<e);break}r||tn(23,$t(e,60))}},onselfclosingtag(e){var t;const n=xt.tag;xt.isSelfClosing=!0,jt(e),(null==(t=Pt[0])?void 0:t.tag)===n&&Vt(Pt.shift(),e)},onattribname(e,t){Nt={type:6,name:Ut(e,t),nameLoc:Kt(e,t),value:void 0,loc:Kt(e)}},ondirname(e,t){const n=Ut(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Lt||""!==r||tn(26,e),Lt||""===r)Nt={type:6,name:n,nameLoc:Kt(e,t),value:void 0,loc:Kt(e)};else if(Nt={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?["prop"]:[],loc:Kt(e)},"pre"===r){Lt=Dt.inVPre=!0,Rt=xt;const e=xt.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=Zt(e[t]))}},ondirarg(e,t){if(e===t)return;const n=Ut(e,t);if(Lt)Nt.name+=n,Qt(Nt.nameLoc,t);else{const r="["!==n[0];Nt.arg=en(r?n:n.slice(1,-1),r,Kt(e,t),r?3:0)}},ondirmodifier(e,t){const n=Ut(e,t);if(Lt)Nt.name+="."+n,Qt(Nt.nameLoc,t);else if("slot"===Nt.name){const e=Nt.arg;e&&(e.content+="."+n,Qt(e.loc,t))}else Nt.modifiers.push(n)},onattribdata(e,t){Ct+=Ut(e,t),At<0&&(At=e),kt=t},onattribentity(e,t,n){Ct+=e,At<0&&(At=t),kt=n},onattribnameend(e){const t=Nt.loc.start.offset,n=Ut(t,e);7===Nt.type&&(Nt.rawName=n),xt.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&tn(2,t)},onattribend(e,t){if(xt&&Nt){if(Qt(Nt.loc,t),0!==e)if(Ct.includes("&")&&(Ct=St.decodeEntities(Ct,!0)),6===Nt.type)"class"===Nt.name&&(Ct=qt(Ct).trim()),1!==e||Ct||tn(13,t),Nt.value={type:2,content:Ct,loc:1===e?Kt(At,kt):Kt(At-1,kt+1)},Dt.inSFCRoot&&"template"===xt.tag&&"lang"===Nt.name&&Ct&&"html"!==Ct&&Dt.enterRCDATA(we("</template"),0);else{let e=0;Nt.exp=en(Ct,!1,Kt(At,kt),0,e),"for"===Nt.name&&(Nt.forParseResult=function(e){const t=e.loc,n=e.content,r=n.match(Et);if(!r)return;const[,o,i]=r,s=(e,n,r=!1)=>{const o=t.start.offset+n;return en(e,!1,Kt(o,o+e.length),0,r?1:0)},a={source:s(i.trim(),n.indexOf(i,o.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let u=o.trim().replace(Ft,"").trim();const l=o.indexOf(u),c=u.match(Mt);if(c){u=u.replace(Mt,"").trim();const e=c[1].trim();let t;if(e&&(t=n.indexOf(e,l+u.length),a.key=s(e,t,!0)),c[2]){const r=c[2].trim();r&&(a.index=s(r,n.indexOf(r,a.key?t+e.length:l+u.length),!0))}}return u&&(a.value=s(u,l,!0)),a}(Nt.exp));let t=-1;"bind"===Nt.name&&(t=Nt.modifiers.indexOf("sync"))>-1&&Ce("COMPILER_V_BIND_SYNC",St,Nt.loc,Nt.rawName)&&(Nt.name="model",Nt.modifiers.splice(t,1))}7===Nt.type&&"pre"===Nt.name||xt.props.push(Nt)}Ct="",At=kt=-1},oncomment(e,t){St.comments&&Jt({type:3,content:Ut(e,t),loc:Kt(e-4,t+3)})},onend(){const e=Ot.length;for(let t=0;t<Pt.length;t++)Vt(Pt[t],e-1),tn(24,Pt[t].loc.start.offset)},oncdata(e,t){0!==Pt[0].ns?Bt(Ut(e,t),e,t):tn(1,e-9)},onprocessinginstruction(e){0===(Pt[0]?Pt[0].ns:St.ns)&&tn(21,e-1)}}),Mt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ft=/^\(|\)$/g;function Ut(e,t){return Ot.slice(e,t)}function jt(e){Dt.inSFCRoot&&(xt.innerLoc=Kt(e+1,e+1)),Jt(xt);const{tag:t,ns:n}=xt;0===n&&St.isPreTag(t)&&It++,St.isVoidTag(t)?Vt(xt,e):(Pt.unshift(xt),1!==n&&2!==n||(Dt.inXML=!0)),xt=null}function Bt(e,t,n){var r;{const t=null==(r=Pt[0])?void 0:r.tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=St.decodeEntities(e,!1))}const o=Pt[0]||Tt,i=o.children[o.children.length-1];2===(null==i?void 0:i.type)?(i.content+=e,Qt(i.loc,n)):o.children.push({type:2,content:e,loc:Kt(t,n)})}function Vt(e,t,n=!1){Qt(e.loc,n?$t(t,60):t+1),Dt.inSFCRoot&&(e.children.length?e.innerLoc.end=(0,r.extend)({},e.children[e.children.length-1].loc.end):e.innerLoc.end=(0,r.extend)({},e.innerLoc.start),e.innerLoc.source=Ut(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:o,ns:i}=e;Lt||("slot"===o?e.tagType=2:Wt(e)?e.tagType=3:function({tag:e,props:t}){var n,r;if(St.isCustomElement(e))return!1;if("component"===e||(r=e.charCodeAt(0))>64&&r<91||Ge(e)||(null==(n=St.isBuiltInComponent)?void 0:n.call(St,e))||St.isNativeTag&&!St.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Ce("COMPILER_IS_ON_ELEMENT",St,n.loc))return!0}}else if("bind"===n.name&&ut(n.arg,"is")&&Ce("COMPILER_IS_ON_ELEMENT",St,n.loc))return!0}return!1}(e)&&(e.tagType=1)),Dt.inRCDATA||(e.children=Yt(e.children,e.tag)),0===i&&St.isPreTag(o)&&It--,Rt===e&&(Lt=Dt.inVPre=!1,Rt=null),Dt.inXML&&0===(Pt[0]?Pt[0].ns:St.ns)&&(Dt.inXML=!1);{const t=e.props;if(!Dt.inSFCRoot&&Ne("COMPILER_NATIVE_TEMPLATE",St)&&"template"===e.tag&&!Wt(e)){const t=Pt[0]||Tt,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&Ce("COMPILER_INLINE_TEMPLATE",St,n.loc)&&e.children.length&&(n.value={type:2,content:Ut(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function $t(e,t){let n=e;for(;Ot.charCodeAt(n)!==t&&n>=0;)n--;return n}const zt=new Set(["if","else","else-if","for","slot"]);function Wt({tag:e,props:t}){if("template"===e)for(let e=0;e<t.length;e++)if(7===t[e].type&&zt.has(t[e].name))return!0;return!1}const Ht=/\r\n/g;function Yt(e,t){var n,r;const o="preserve"!==St.whitespace;let i=!1;for(let t=0;t<e.length;t++){const s=e[t];if(2===s.type)if(It)s.content=s.content.replace(Ht,"\n");else if(Xt(s.content)){const a=null==(n=e[t-1])?void 0:n.type,u=null==(r=e[t+1])?void 0:r.type;!a||!u||o&&(3===a&&(3===u||1===u)||1===a&&(3===u||1===u&&Gt(s.content)))?(i=!0,e[t]=null):s.content=" "}else o&&(s.content=qt(s.content))}if(It&&t&&St.isPreTag(t)){const t=e[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}return i?e.filter(Boolean):e}function Xt(e){for(let t=0;t<e.length;t++)if(!be(e.charCodeAt(t)))return!1;return!0}function Gt(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function qt(e){let t="",n=!1;for(let r=0;r<e.length;r++)be(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function Jt(e){(Pt[0]||Tt).children.push(e)}function Kt(e,t){return{start:Dt.getPos(e),end:null==t?t:Dt.getPos(t),source:null==t?t:Ut(e,t)}}function Qt(e,t){e.end=Dt.getPos(t),e.source=Ut(e.start.offset,t)}function Zt(e){const t={type:6,name:e.rawName,nameLoc:Kt(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function en(e,t=!1,n,r=0,o=0){return te(e,t,n,r)}function tn(e,t,n){St.onError(Le(e,Kt(t,t)))}function nn(e,t){if(Dt.reset(),xt=null,Nt=null,Ct="",At=-1,kt=-1,Pt.length=0,Ot=e,St=(0,r.extend)({},wt),t){let e;for(e in t)null!=t[e]&&(St[e]=t[e])}Dt.mode="html"===St.parseMode?1:"sfc"===St.parseMode?2:0,Dt.inXML=1===St.ns||2===St.ns;const n=null==t?void 0:t.delimiters;n&&(Dt.delimiterOpen=we(n[0]),Dt.delimiterClose=we(n[1]));const o=Tt=J([],e);return Dt.parse(Ot),o.loc=Kt(0,e.length),o.children=Yt(o.children),Tt=null,o}function rn(e,t){sn(e,t,on(e,e.children[0]))}function on(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!pt(t)}function sn(e,t,n=!1){const{children:o}=e,i=o.length;let s=0;for(let e=0;e<o.length;e++){const r=o[e];if(1===r.type&&0===r.tagType){const e=n?0:an(r,t);if(e>0){if(e>=2){r.codegenNode.patchFlag="-1",r.codegenNode=t.hoist(r.codegenNode),s++;continue}}else{const e=r.codegenNode;if(13===e.type){const n=dn(e);if((!n||512===n||1===n)&&cn(r,t)>=2){const n=fn(r);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}if(1===r.type){const e=1===r.tagType;e&&t.scopes.vSlot++,sn(r,t),e&&t.scopes.vSlot--}else if(11===r.type)sn(r,t,1===r.children.length);else if(9===r.type)for(let e=0;e<r.branches.length;e++)sn(r.branches[e],t,1===r.branches[e].children.length)}if(s&&t.transformHoist&&t.transformHoist(o,t,e),s&&s===i&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&(0,r.isArray)(e.codegenNode.children)){const n=t.hoist(Q(e.codegenNode.children));t.hmr&&(n.content=`[...${n.content}]`),e.codegenNode.children=n}}function an(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const o=n.get(e);if(void 0!==o)return o;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag)return 0;if(dn(i))return n.set(e,0),0;{let r=3;const o=cn(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let o=0;o<e.children.length;o++){const i=an(e.children[o],t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}if(r>1)for(let o=0;o<e.props.length;o++){const i=e.props[o];if(7===i.type&&"bind"===i.name&&i.exp){const o=an(i.exp,t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(7===e.props[t].type)return n.set(e,0),0;t.removeHelper(l),t.removeHelper(me(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(he(t.inSSR,i.isComponent))}return n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return an(e.content,t);case 4:return e.constType;case 8:let s=3;for(let n=0;n<e.children.length;n++){const o=e.children[n];if((0,r.isString)(o)||(0,r.isSymbol)(o))continue;const i=an(o,t);if(0===i)return 0;i<s&&(s=i)}return s}}const un=new Set([N,C,A,k]);function ln(e,t){if(14===e.type&&!(0,r.isString)(e.callee)&&un.has(e.callee)){const n=e.arguments[0];if(4===n.type)return an(n,t);if(14===n.type)return ln(n,t)}return 0}function cn(e,t){let n=3;const r=fn(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:o,value:i}=e[r],s=an(o,t);if(0===s)return s;let a;if(s<n&&(n=s),a=4===i.type?an(i,t):14===i.type?ln(i,t):0,0===a)return a;a<n&&(n=a)}}return n}function fn(e){const t=e.codegenNode;if(13===t.type)return t.props}function dn(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function pn(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:o=!1,hmr:i=!1,cacheHandlers:s=!1,nodeTransforms:a=[],directiveTransforms:u={},transformHoist:l=null,isBuiltInComponent:c=r.NOOP,isCustomElement:f=r.NOOP,expressionPlugins:d=[],scopeId:p=null,slotted:h=!0,ssr:m=!1,inSSR:g=!1,ssrCssVars:v="",bindingMetadata:_=r.EMPTY_OBJ,inline:y=!1,isTS:b=!1,onError:E=ke,onWarn:w=Ie,compatConfig:S}){const T=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),O={filename:t,selfName:T&&(0,r.capitalize)((0,r.camelize)(T[1])),prefixIdentifiers:n,hoistStatic:o,hmr:i,cacheHandlers:s,nodeTransforms:a,directiveTransforms:u,transformHoist:l,isBuiltInComponent:c,isCustomElement:f,expressionPlugins:d,scopeId:p,slotted:h,ssr:m,inSSR:g,ssrCssVars:v,bindingMetadata:_,inline:y,isTS:b,onError:E,onWarn:w,compatConfig:S,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=O.helpers.get(e)||0;return O.helpers.set(e,t+1),e},removeHelper(e){const t=O.helpers.get(e);if(t){const n=t-1;n?O.helpers.set(e,n):O.helpers.delete(e)}},helperString(e){return`_${z[O.helper(e)]}`},replaceNode(e){O.parent.children[O.childIndex]=O.currentNode=e},removeNode(e){const t=O.parent.children,n=e?t.indexOf(e):O.currentNode?O.childIndex:-1;e&&e!==O.currentNode?O.childIndex>n&&(O.childIndex--,O.onNodeRemoved()):(O.currentNode=null,O.onNodeRemoved()),O.parent.children.splice(n,1)},onNodeRemoved:r.NOOP,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){(0,r.isString)(e)&&(e=te(e)),O.hoists.push(e);const t=te(`_hoisted_${O.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1){return ae(O.cached++,e,t)}};return O.filters=new Set,O}function hn(e,t){const n=pn(e,t);mn(e,n),t.hoistStatic&&rn(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:i}=e;if(1===i.length){const n=i[0];if(on(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&ge(r,t),e.codegenNode=r}else e.codegenNode=n}else if(i.length>1){let i=64;r.PatchFlagNames[64],e.codegenNode=K(t,n(o),void 0,e.children,i+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function mn(e,t){t.currentNode=e;const{nodeTransforms:n}=t,o=[];for(let i=0;i<n.length;i++){const s=n[i](e,t);if(s&&((0,r.isArray)(s)?o.push(...s):o.push(s)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(h);break;case 5:t.ssr||t.helper(O);break;case 9:for(let n=0;n<e.branches.length;n++)mn(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const o=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];(0,r.isString)(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=o,mn(i,t))}}(e,t)}t.currentNode=e;let i=o.length;for(;i--;)o[i]()}function gn(e,t){const n=(0,r.isString)(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:o}=e;if(3===e.tagType&&o.some(ft))return;const i=[];for(let s=0;s<o.length;s++){const a=o[s];if(7===a.type&&n(a.name)){o.splice(s,1),s--;const n=t(e,a,r);n&&i.push(n)}}return i}}}const vn="/*#__PURE__*/",_n=e=>`${z[e]}: _${z[e]}`;function yn(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:o="template.vue.html",scopeId:i=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:u="vue",ssrRuntimeModuleName:l="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:d=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:o,scopeId:i,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:u,ssrRuntimeModuleName:l,ssr:c,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${z[e]}`},push(e,t=-2,n){p.code+=e},indent(){h(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:h(--p.indentLevel)},newline(){h(p.indentLevel)}};function h(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:o,prefixIdentifiers:i,indent:s,deindent:a,newline:u,scopeId:l,ssr:c}=n,f=Array.from(e.helpers),v=f.length>0,_=!i&&"module"!==r;if(function(e,t){const{ssr:n,prefixIdentifiers:r,push:o,newline:i,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:u}=t,l=a,c=Array.from(e.helpers);c.length>0&&(o(`const _Vue = ${l}\n`,-1),e.hoists.length)&&o(`const { ${[d,p,h,m,g].filter((e=>c.includes(e))).map(_n).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r,helper:o,scopeId:i,mode:s}=t;r();for(let o=0;o<e.length;o++){const i=e[o];i&&(n(`const _hoisted_${o+1} = `),Sn(i,t),r())}t.pure=!1}(e.hoists,t),i(),o("return ")}(e,n),o(`function ${c?"ssrRender":"render"}(${(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),s(),_&&(o("with (_ctx) {"),s(),v&&(o(`const { ${f.map(_n).join(", ")} } = _Vue\n`,-1),u())),e.components.length&&(bn(e.components,"component",n),(e.directives.length||e.temps>0)&&u()),e.directives.length&&(bn(e.directives,"directive",n),e.temps>0&&u()),e.filters&&e.filters.length&&(u(),bn(e.filters,"filter",n),u()),e.temps>0){o("let ");for(let t=0;t<e.temps;t++)o(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(o("\n",0),u()),c||o("return "),e.codegenNode?Sn(e.codegenNode,n):o("null"),_&&(a(),o("}")),a(),o("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function bn(e,t,{helper:n,push:r,newline:o,isTS:i}){const s=n("filter"===t?b:"component"===t?v:y);for(let n=0;n<e.length;n++){let a=e[n];const u=a.endsWith("__self");u&&(a=a.slice(0,-6)),r(`const ${_t(a,t)} = ${s}(${JSON.stringify(a)}${u?", true":""})${i?"!":""}`),n<e.length-1&&o()}}function En(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),wn(e,t,n),n&&t.deindent(),t.push("]")}function wn(e,t,n=!1,o=!0){const{push:i,newline:s}=t;for(let a=0;a<e.length;a++){const u=e[a];(0,r.isString)(u)?i(u,-3):(0,r.isArray)(u)?En(u,t):Sn(u,t),a<e.length-1&&(n?(o&&i(","),s()):o&&i(", "))}}function Sn(e,t){if((0,r.isString)(e))t.push(e,-3);else if((0,r.isSymbol)(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Sn(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:Tn(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(vn),n(`${r(O)}(`),Sn(e.content,t),n(")")}(e,t);break;case 8:On(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:o}=t;o&&n(vn),n(`${r(h)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:o}=t,{tag:i,props:s,children:a,patchFlag:u,dynamicProps:c,directives:f,isBlock:d,disableTracking:p,isComponent:h}=e;f&&n(r(E)+"("),d&&n(`(${r(l)}(${p?"true":""}), `),o&&n(vn);n(r(d?me(t.inSSR,h):he(t.inSSR,h))+"(",-2,e),wn(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([i,s,a,u,c]),t),n(")"),d&&n(")"),f&&(n(", "),Sn(f,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:o,pure:i}=t,s=(0,r.isString)(e.callee)?e.callee:o(e.callee);i&&n(vn),n(s+"(",-2,e),wn(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:o,newline:i}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const a=s.length>1||!1;n(a?"{":"{ "),a&&r();for(let e=0;e<s.length;e++){const{key:r,value:o}=s[e];xn(r,t),n(": "),Sn(o,t),e<s.length-1&&(n(","),i())}a&&o(),n(a?"}":" }")}(e,t);break;case 17:!function(e,t){En(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:o,deindent:i}=t,{params:s,returns:a,body:u,newline:l,isSlot:c}=e;c&&n(`_${z[U]}(`),n("(",-2,e),(0,r.isArray)(s)?wn(s,t):s&&Sn(s,t),n(") => "),(l||u)&&(n("{"),o()),a?(l&&n("return "),(0,r.isArray)(a)?En(a,t):Sn(a,t)):u&&Sn(u,t),(l||u)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:o,newline:i}=e,{push:s,indent:a,deindent:u,newline:l}=t;if(4===n.type){const e=!Je(n.content);e&&s("("),Tn(n,t),e&&s(")")}else s("("),Sn(n,t),s(")");i&&a(),t.indentLevel++,i||s(" "),s("? "),Sn(r,t),t.indentLevel--,i&&l(),i||s(" "),s(": ");const c=19===o.type;c||t.indentLevel++,Sn(o,t),c||t.indentLevel--,i&&u(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:o,deindent:i,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(o(),n(`${r(D)}(-1),`),s()),n(`_cache[${e.index}] = `),Sn(e.value,t),e.isVNode&&(n(","),s(),n(`${r(D)}(1),`),s(),n(`_cache[${e.index}]`),i()),n(")")}(e,t);break;case 21:wn(e.body,t,!0,!1)}}function Tn(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function On(e,t){for(let n=0;n<e.children.length;n++){const o=e.children[n];(0,r.isString)(o)?t.push(o,-3):Sn(o,t)}}function xn(e,t){const{push:n}=t;8===e.type?(n("["),On(e,t),n("]")):e.isStatic?n(Je(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const Nn=(e,t)=>{if(5===e.type)e.content=Cn(e.content,t);else if(1===e.type)for(let n=0;n<e.props.length;n++){const r=e.props[n];if(7===r.type&&"for"!==r.name){const e=r.exp,n=r.arg;!e||4!==e.type||"on"===r.name&&n||(r.exp=Cn(e,t,"slot"===r.name)),n&&4===n.type&&!n.isStatic&&(r.arg=Cn(n,t))}}};function Cn(e,t,n=!1,r=!1,o=Object.create(t.identifiers)){return e}function An(e){return(0,r.isString)(e)?e:4===e.type?e.content:e.children.map(An).join("")}const kn=gn(/^(if|else|else-if)$/,((e,t,n)=>In(e,t,n,((e,t,r)=>{const o=n.parent.children;let i=o.indexOf(e),s=0;for(;i-- >=0;){const e=o[i];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(r)e.codegenNode=Rn(t,s,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=Rn(t,s+e.branches.length-1,n)}}}))));function In(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Le(28,t.loc)),t.exp=te("true",!1,r)}if("if"===t.name){const o=Ln(e,t),i={type:9,loc:e.loc,branches:[o]};if(n.replaceNode(i),r)return r(i,o,!0)}else{const o=n.parent.children;let i=o.indexOf(e);for(;i-- >=-1;){const s=o[i];if(s&&3===s.type)n.removeNode(s);else{if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(Le(30,e.loc)),n.removeNode();const o=Ln(e,t);s.branches.push(o);const i=r&&r(s,o,!1);mn(o,n),i&&i(),n.currentNode=null}else n.onError(Le(30,e.loc));break}n.removeNode(s)}}}}function Ln(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!st(e,"for")?e.children:[e],userKey:at(e,"key"),isTemplateIf:n}}function Rn(e,t,n){return e.condition?se(e.condition,Pn(e,t,n),oe(n.helper(h),['""',"true"])):Pn(e,t,n)}function Pn(e,t,n){const{helper:i}=n,s=ee("key",te(`${t}`,!1,q,2)),{children:a}=e,u=a[0];if(1!==a.length||1!==u.type){if(1===a.length&&11===u.type){const e=u.codegenNode;return gt(e,s,n),e}{let t=64;return r.PatchFlagNames[64],K(n,i(o),Z([s]),a,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=u.codegenNode,t=bt(e);return 13===t.type&&ge(t,n),gt(t,s,n),e}}const Dn=gn("for",((e,t,n)=>{const{helper:r,removeHelper:i}=n;return Mn(e,t,n,(t=>{const s=oe(r(w),[t.source]),a=dt(e),u=st(e,"memo"),c=at(e,"key"),f=c&&(6===c.type?te(c.value.content,!0):c.exp),d=c?ee("key",f):null,p=4===t.source.type&&t.source.constType>0,h=p?64:c?128:256;return t.codegenNode=K(n,r(o),void 0,s,h+"",void 0,void 0,!0,!p,!1,e.loc),()=>{let c;const{children:h}=t,m=1!==h.length||1!==h[0].type,g=pt(e)?e:a&&1===e.children.length&&pt(e.children[0])?e.children[0]:null;if(g?(c=g.codegenNode,a&&d&&gt(c,d,n)):m?c=K(n,r(o),d?Z([d]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(c=h[0].codegenNode,a&&d&&gt(c,d,n),c.isBlock!==!p&&(c.isBlock?(i(l),i(me(n.inSSR,c.isComponent))):i(he(n.inSSR,c.isComponent))),c.isBlock=!p,c.isBlock?(r(l),r(me(n.inSSR,c.isComponent))):r(he(n.inSSR,c.isComponent))),u){const e=ie(Un(t.parseResult,[te("_cached")]));e.body=ue([re(["const _memo = (",u.exp,")"]),re(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString($)}(_cached, _memo)) return _cached`]),re(["const _item = ",c]),te("_item.memo = _memo"),te("return _item")]),s.arguments.push(e,te("_cache"),te(String(n.cached++)))}else s.arguments.push(ie(Un(t.parseResult),c,!0))}}))}));function Mn(e,t,n,r){if(!t.exp)return void n.onError(Le(31,t.loc));const o=t.forParseResult;if(!o)return void n.onError(Le(32,t.loc));Fn(o);const{addIdentifiers:i,removeIdentifiers:s,scopes:a}=n,{source:u,value:l,key:c,index:f}=o,d={type:11,loc:t.loc,source:u,valueAlias:l,keyAlias:c,objectIndexAlias:f,parseResult:o,children:dt(e)?e.children:[e]};n.replaceNode(d),a.vFor++;const p=r&&r(d);return()=>{a.vFor--,p&&p()}}function Fn(e,t){e.finalized||(e.finalized=!0)}function Un({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||te("_".repeat(t+1),!1)))}([e,t,n,...r])}const jn=te("undefined",!1),Bn=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=st(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Vn=(e,t)=>{let n;if(dt(e)&&e.props.some(ft)&&(n=st(e,"for"))){const e=n.forParseResult;if(e){Fn(e);const{value:n,key:r,index:o}=e,{addIdentifiers:i,removeIdentifiers:s}=t;return n&&i(n),r&&i(r),o&&i(o),()=>{n&&s(n),r&&s(r),o&&s(o)}}}},$n=(e,t,n,r)=>ie(e,n,!1,!0,n.length?n[0].loc:r);function zn(e,t,n=$n){t.helper(U);const{children:r,loc:o}=e,i=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const u=st(e,"slot",!0);if(u){const{arg:e,exp:t}=u;e&&!Xe(e)&&(a=!0),i.push(ee(e||te("default",!0),n(t,void 0,r,o)))}let l=!1,c=!1;const f=[],d=new Set;let p=0;for(let e=0;e<r.length;e++){const o=r[e];let h;if(!dt(o)||!(h=st(o,"slot",!0))){3!==o.type&&f.push(o);continue}if(u){t.onError(Le(37,h.loc));break}l=!0;const{children:m,loc:g}=o,{arg:v=te("default",!0),exp:_,loc:y}=h;let b;Xe(v)?b=v?v.content:"default":a=!0;const E=st(o,"for"),S=n(_,E,m,g);let T,O;if(T=st(o,"if"))a=!0,s.push(se(T.exp,Wn(v,S,p++),jn));else if(O=st(o,/^else(-if)?$/,!0)){let n,o=e;for(;o--&&(n=r[o],3===n.type););if(n&&dt(n)&&st(n,"if")){r.splice(e,1),e--;let t=s[s.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=O.exp?se(O.exp,Wn(v,S,p++),jn):Wn(v,S,p++)}else t.onError(Le(30,O.loc))}else if(E){a=!0;const e=E.forParseResult;e?(Fn(e),s.push(oe(t.helper(w),[e.source,ie(Un(e),Wn(v,S),!0)]))):t.onError(Le(32,E.loc))}else{if(b){if(d.has(b)){t.onError(Le(38,y));continue}d.add(b),"default"===b&&(c=!0)}i.push(ee(v,S))}}if(!u){const e=(e,r)=>{const i=n(e,void 0,r,o);return t.compatConfig&&(i.isNonScopedSlot=!0),ee("default",i)};l?f.length&&f.some((e=>Yn(e)))&&(c?t.onError(Le(39,f[0].loc)):i.push(e(void 0,f))):i.push(e(void 0,r))}const h=a?2:Hn(e.children)?3:1;let m=Z(i.concat(ee("_",te(h+"",!1))),o);return s.length&&(m=oe(t.helper(T),[m,Q(s)])),{slots:m,hasDynamicSlots:a}}function Wn(e,t,n){const r=[ee("name",e),ee("fn",t)];return null!=n&&r.push(ee("key",te(String(n),!0))),Z(r)}function Hn(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||Hn(n.children))return!0;break;case 9:if(Hn(n.branches))return!0;break;case 10:case 11:if(Hn(n.children))return!0}}return!1}function Yn(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():Yn(e.content))}const Xn=new WeakMap,Gn=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:o}=e,u=1===e.tagType;let l=u?qn(e,t):`"${n}"`;const c=(0,r.isObject)(l)&&l.callee===_;let f,d,p,h,m,g,v=0,y=c||l===i||l===s||!u&&("svg"===n||"foreignObject"===n);if(o.length>0){const n=Jn(e,t,void 0,u,c);f=n.props,v=n.patchFlag,m=n.dynamicPropNames;const r=n.directives;g=r&&r.length?Q(r.map((e=>Zn(e,t)))):void 0,n.shouldUseBlock&&(y=!0)}if(e.children.length>0)if(l===a&&(y=!0,v|=1024),u&&l!==i&&l!==a){const{slots:n,hasDynamicSlots:r}=zn(e,t);d=n,r&&(v|=1024)}else if(1===e.children.length&&l!==i){const n=e.children[0],r=n.type,o=5===r||8===r;o&&0===an(n,t)&&(v|=1),d=o||2===r?n:e.children}else d=e.children;0!==v&&(p=String(v),m&&m.length&&(h=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(m))),e.codegenNode=K(t,l,f,d,p,h,g,!!y,!1,u,e.loc)};function qn(e,t,n=!1){let{tag:r}=e;const o=er(r),i=at(e,"is");if(i)if(o||Ne("COMPILER_IS_ON_ELEMENT",t)){const e=6===i.type?i.value&&te(i.value.content,!0):i.exp;if(e)return oe(t.helper(_),[e])}else 6===i.type&&i.value.content.startsWith("vue:")&&(r=i.value.content.slice(4));const s=Ge(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(v),t.components.add(r),_t(r,"component"))}function Jn(e,t,n=e.props,o,i,s=!1){const{tag:a,loc:u,children:l}=e;let c=[];const f=[],d=[],p=l.length>0;let h=!1,m=0,g=!1,v=!1,_=!1,y=!1,b=!1,E=!1;const w=[],S=e=>{c.length&&(f.push(Z(Kn(c),u)),c=[]),e&&f.push(e)},T=({key:e,value:n})=>{if(Xe(e)){const s=e.content,a=(0,r.isOn)(s);if(!a||o&&!i||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||(0,r.isReservedProp)(s)||(y=!0),a&&(0,r.isReservedProp)(s)&&(E=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&an(n,t)>0)return;"ref"===s?g=!0:"class"===s?v=!0:"style"===s?_=!0:"key"===s||w.includes(s)||w.push(s),!o||"class"!==s&&"style"!==s||w.includes(s)||w.push(s)}else b=!0};for(let i=0;i<n.length;i++){const l=n[i];if(6===l.type){const{loc:e,name:n,nameLoc:r,value:o}=l;let i=!0;if("ref"===n&&(g=!0,t.scopes.vFor>0&&c.push(ee(te("ref_for",!0),te("true")))),"is"===n&&(er(a)||o&&o.content.startsWith("vue:")||Ne("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(ee(te(n,!0,r),te(o?o.content:"",i,o?o.loc:e)))}else{const{name:n,arg:i,exp:g,loc:v,modifiers:_}=l,y="bind"===n,E="on"===n;if("slot"===n){o||t.onError(Le(40,v));continue}if("once"===n||"memo"===n)continue;if("is"===n||y&&ut(i,"is")&&(er(a)||Ne("COMPILER_IS_ON_ELEMENT",t)))continue;if(E&&s)continue;if((y&&ut(i,"key")||E&&p&&ut(i,"vue:before-update"))&&(h=!0),y&&ut(i,"ref")&&t.scopes.vFor>0&&c.push(ee(te("ref_for",!0),te("true"))),!i&&(y||E)){if(b=!0,g)if(y){if(S(),Ne("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(g);continue}f.push(g)}else S({type:14,loc:v,callee:t.helper(I),arguments:o?[g]:[g,"true"]});else t.onError(Le(y?34:35,v));continue}y&&_.includes("prop")&&(m|=32);const w=t.directiveTransforms[n];if(w){const{props:n,needRuntime:o}=w(l,e,t);!s&&n.forEach(T),E&&i&&!Xe(i)?S(Z(n,u)):c.push(...n),o&&(d.push(l),(0,r.isSymbol)(o)&&Xn.set(l,o))}else(0,r.isBuiltInDirective)(n)||(d.push(l),p&&(h=!0))}}let O;if(f.length?(S(),O=f.length>1?oe(t.helper(x),f,u):f[0]):c.length&&(O=Z(Kn(c),u)),b?m|=16:(v&&!o&&(m|=2),_&&!o&&(m|=4),w.length&&(m|=8),y&&(m|=32)),h||0!==m&&32!==m||!(g||E||d.length>0)||(m|=512),!t.inSSR&&O)switch(O.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<O.properties.length;t++){const o=O.properties[t].key;Xe(o)?"class"===o.content?e=t:"style"===o.content&&(n=t):o.isHandlerKey||(r=!0)}const o=O.properties[e],i=O.properties[n];r?O=oe(t.helper(A),[O]):(o&&!Xe(o.value)&&(o.value=oe(t.helper(N),[o.value])),i&&(_||4===i.value.type&&"["===i.value.content.trim()[0]||17===i.value.type)&&(i.value=oe(t.helper(C),[i.value])));break;case 14:break;default:O=oe(t.helper(A),[oe(t.helper(k),[O])])}return{props:O,directives:d,patchFlag:m,dynamicPropNames:w,shouldUseBlock:h}}function Kn(e){const t=new Map,n=[];for(let o=0;o<e.length;o++){const i=e[o];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const s=i.key.content,a=t.get(s);a?("style"===s||"class"===s||(0,r.isOn)(s))&&Qn(a,i):(t.set(s,i),n.push(i))}return n}function Qn(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Q([e.value,t.value],e.loc)}function Zn(e,t){const n=[],r=Xn.get(e);r?n.push(t.helperString(r)):(t.helper(y),t.directives.add(e.name),n.push(_t(e.name,"directive")));const{loc:o}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=te("true",!1,o);n.push(Z(e.modifiers.map((e=>ee(e,t))),o))}return Q(n,e.loc)}function er(e){return"component"===e||"Component"===e}const tr=(e,t)=>{if(pt(e)){const{children:n,loc:r}=e,{slotName:o,slotProps:i}=nr(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",o,"{}","undefined","true"];let a=2;i&&(s[2]=i,a=3),n.length&&(s[3]=ie([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=oe(t.helper(S),s,r)}};function nr(e,t){let n,o='"default"';const i=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];if(6===n.type)n.value&&("name"===n.name?o=JSON.stringify(n.value.content):(n.name=(0,r.camelize)(n.name),i.push(n)));else if("bind"===n.name&&ut(n.arg,"name")){if(n.exp)o=n.exp;else if(n.arg&&4===n.arg.type){const e=(0,r.camelize)(n.arg.content);o=n.exp=te(e,!1,n.arg.loc)}}else"bind"===n.name&&n.arg&&Xe(n.arg)&&(n.arg.content=(0,r.camelize)(n.arg.content)),i.push(n)}if(i.length>0){const{props:r,directives:o}=Jn(e,t,i,!1,!1);n=r,o.length&&t.onError(Le(36,o[0].loc))}return{slotName:o,slotProps:n}}const rr=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,or=(e,t,n,o)=>{const{loc:i,modifiers:s,arg:a}=e;let u;if(e.exp||s.length||n.onError(Le(35,i)),4===a.type)if(a.isStatic){let e=a.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),u=te(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?(0,r.toHandlerKey)((0,r.camelize)(e)):`on:${e}`,!0,a.loc)}else u=re([`${n.helperString(P)}(`,a,")"]);else u=a,u.children.unshift(`${n.helperString(P)}(`),u.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=nt(l.content),t=!(e||rr.test(l.content)),n=l.content.includes(";");(t||c&&e)&&(l=re([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let f={props:[ee(u,l||te("() => {}",!1,i))]};return o&&(f=o(f)),c&&(f.props[0].value=n.cache(f.props[0].value)),f.props.forEach((e=>e.key.isHandlerKey=!0)),f},ir=(e,t,n)=>{const{modifiers:o,loc:i}=e,s=e.arg;let{exp:a}=e;if(a&&4===a.type&&!a.content.trim()&&(a=void 0),!a){if(4!==s.type||!s.isStatic)return n.onError(Le(52,s.loc)),{props:[ee(s,te("",!0,i))]};const t=(0,r.camelize)(s.content);a=e.exp=te(t,!1,s.loc)}return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),o.includes("camel")&&(4===s.type?s.isStatic?s.content=(0,r.camelize)(s.content):s.content=`${n.helperString(L)}(${s.content})`:(s.children.unshift(`${n.helperString(L)}(`),s.children.push(")"))),n.inSSR||(o.includes("prop")&&sr(s,"."),o.includes("attr")&&sr(s,"^")),{props:[ee(s,a)]}},sr=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},ar=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,o=!1;for(let e=0;e<n.length;e++){const t=n[e];if(ct(t)){o=!0;for(let o=e+1;o<n.length;o++){const i=n[o];if(!ct(i)){r=void 0;break}r||(r=n[e]=re([t],t.loc)),r.children.push(" + ",i),n.splice(o,1),o--}}}if(o&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(ct(r)||8===r.type){const o=[];2===r.type&&" "===r.content||o.push(r),t.ssr||0!==an(r,t)||o.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:oe(t.helper(m),o)}}}}},ur=new WeakSet,lr=(e,t)=>{if(1===e.type&&st(e,"once",!0)){if(ur.has(e)||t.inVOnce||t.inSSR)return;return ur.add(e),t.inVOnce=!0,t.helper(D),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},cr=(e,t,n)=>{const{exp:o,arg:i}=e;if(!o)return n.onError(Le(41,e.loc)),fr();const s=o.loc.source,a=4===o.type?o.content:s,u=n.bindingMetadata[s];if("props"===u||"props-aliased"===u)return n.onError(Le(44,o.loc)),fr();if(!a.trim()||!nt(a))return n.onError(Le(42,o.loc)),fr();const l=i||te("modelValue",!0),c=i?Xe(i)?`onUpdate:${(0,r.camelize)(i.content)}`:re(['"onUpdate:" + ',i]):"onUpdate:modelValue";let f;f=re([(n.isTS?"($event: any)":"$event")+" => ((",o,") = $event)"]);const d=[ee(l,e.exp),ee(c,f)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Je(e)?e:JSON.stringify(e))+": true")).join(", "),n=i?Xe(i)?`${i.content}Modifiers`:re([i,' + "Modifiers"']):"modelModifiers";d.push(ee(n,te(`{ ${t} }`,!1,e.loc,2)))}return fr(d)};function fr(e=[]){return{props:e}}const dr=/[\w).+\-_$\]]/,pr=(e,t)=>{Ne("COMPILER_FILTERS",t)&&(5===e.type&&hr(e.content,t),1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&hr(e.exp,t)})))};function hr(e,t){if(4===e.type)mr(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"==typeof r&&(4===r.type?mr(r,t):8===r.type?hr(e,t):5===r.type&&hr(r.content,t))}}function mr(e,t){const n=e.content;let r,o,i,s,a=!1,u=!1,l=!1,c=!1,f=0,d=0,p=0,h=0,m=[];for(i=0;i<n.length;i++)if(o=r,r=n.charCodeAt(i),a)39===r&&92!==o&&(a=!1);else if(u)34===r&&92!==o&&(u=!1);else if(l)96===r&&92!==o&&(l=!1);else if(c)47===r&&92!==o&&(c=!1);else if(124!==r||124===n.charCodeAt(i+1)||124===n.charCodeAt(i-1)||f||d||p){switch(r){case 34:u=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--}if(47===r){let e,t=i-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&dr.test(e)||(c=!0)}}else void 0===s?(h=i+1,s=n.slice(0,i).trim()):g();function g(){m.push(n.slice(h,i).trim()),h=i+1}if(void 0===s?s=n.slice(0,i).trim():0!==h&&g(),m.length){for(i=0;i<m.length;i++)s=gr(s,m[i],t);e.content=s}}function gr(e,t,n){n.helper(b);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${_t(t,"filter")}(${e})`;{const o=t.slice(0,r),i=t.slice(r+1);return n.filters.add(o),`${_t(o,"filter")}(${e}${")"!==i?","+i:i}`}}const vr=new WeakSet,_r=(e,t)=>{if(1===e.type){const n=st(e,"memo");if(!n||vr.has(e))return;return vr.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&ge(r,t),e.codegenNode=oe(t.helper(V),[n.exp,ie(void 0,r),"_cache",String(t.cached++)]))}}};function yr(e){return[[lr,kn,_r,Dn,pr,tr,Gn,Bn,ar],{on:or,bind:ir,model:cr}]}function br(e,t={}){const n=t.onError||ke,o="module"===t.mode;!0===t.prefixIdentifiers?n(Le(47)):o&&n(Le(48)),t.cacheHandlers&&n(Le(49)),t.scopeId&&!o&&n(Le(50));const i=(0,r.extend)({},t,{prefixIdentifiers:!1}),s=(0,r.isString)(e)?nn(e,i):e,[a,u]=yr();return hn(s,(0,r.extend)({},i,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:(0,r.extend)({},u,t.directiveTransforms||{})})),yn(s,i)}const Er={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},wr=()=>({props:[]}),Sr=Symbol(""),Tr=Symbol(""),Or=Symbol(""),xr=Symbol(""),Nr=Symbol(""),Cr=Symbol(""),Ar=Symbol(""),kr=Symbol(""),Ir=Symbol(""),Lr=Symbol("");let Rr;W({[Sr]:"vModelRadio",[Tr]:"vModelCheckbox",[Or]:"vModelText",[xr]:"vModelSelect",[Nr]:"vModelDynamic",[Cr]:"withModifiers",[Ar]:"withKeys",[kr]:"vShow",[Ir]:"Transition",[Lr]:"TransitionGroup"});const Pr={parseMode:"html",isVoidTag:r.isVoidTag,isNativeTag:e=>(0,r.isHTMLTag)(e)||(0,r.isSVGTag)(e)||(0,r.isMathMLTag)(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Rr||(Rr=document.createElement("div")),t?(Rr.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Rr.children[0].getAttribute("foo")):(Rr.innerHTML=e,Rr.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?Ir:"TransitionGroup"===e||"transition-group"===e?Lr:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},Dr=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:te("style",!0,t.loc),exp:Mr(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},Mr=(e,t)=>{const n=(0,r.parseStringStyle)(e);return te(JSON.stringify(n),!1,t,3)};function Fr(e,t){return Le(e,t)}const Ur={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},jr={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Br=(0,r.makeMap)("passive,once,capture"),Vr=(0,r.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),$r=(0,r.makeMap)("left,right"),zr=(0,r.makeMap)("onkeyup,onkeydown,onkeypress",!0),Wr=(e,t)=>Xe(e)&&"onclick"===e.content.toLowerCase()?te(t,!0):4!==e.type?re(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Hr=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Yr=[Dr],Xr={cloak:wr,html:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(53,o)),t.children.length&&(n.onError(Fr(54,o)),t.children.length=0),{props:[ee(te("innerHTML",!0,o),r||te("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(55,o)),t.children.length&&(n.onError(Fr(56,o)),t.children.length=0),{props:[ee(te("textContent",!0),r?an(r,n)>0?r:oe(n.helperString(O),[r],o):te("",!0))]}},model:(e,t,n)=>{const r=cr(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Fr(58,e.arg.loc));const{tag:o}=t,i=n.isCustomElement(o);if("input"===o||"textarea"===o||"select"===o||i){let s=Or,a=!1;if("input"===o||i){const r=at(t,"type");if(r){if(7===r.type)s=Nr;else if(r.value)switch(r.value.content){case"radio":s=Sr;break;case"checkbox":s=Tr;break;case"file":a=!0,n.onError(Fr(59,e.loc))}}else lt(t)&&(s=Nr)}else"select"===o&&(s=xr);a||(r.needRuntime=n.helper(s))}else n.onError(Fr(57,e.loc));return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>or(e,t,n,(t=>{const{modifiers:o}=e;if(!o.length)return t;let{key:i,value:s}=t.props[0];const{keyModifiers:a,nonKeyModifiers:u,eventOptionModifiers:l}=((e,t,n,r)=>{const o=[],i=[],s=[];for(let r=0;r<t.length;r++){const a=t[r];"native"===a&&Ce("COMPILER_V_ON_NATIVE",n)||Br(a)?s.push(a):$r(a)?Xe(e)?zr(e.content)?o.push(a):i.push(a):(o.push(a),i.push(a)):Vr(a)?i.push(a):o.push(a)}return{keyModifiers:o,nonKeyModifiers:i,eventOptionModifiers:s}})(i,o,n,e.loc);if(u.includes("right")&&(i=Wr(i,"onContextmenu")),u.includes("middle")&&(i=Wr(i,"onMouseup")),u.length&&(s=oe(n.helper(Cr),[s,JSON.stringify(u)])),!a.length||Xe(i)&&!zr(i.content)||(s=oe(n.helper(Ar),[s,JSON.stringify(a)])),l.length){const e=l.map(r.capitalize).join("");i=Xe(i)?te(`${i.content}${e}`,!0):re(["(",i,`) + "${e}"`])}return{props:[ee(i,s)]}})),show:(e,t,n)=>{const{exp:r,loc:o}=e;return r||n.onError(Fr(61,o)),{props:[],needRuntime:n.helper(kr)}}};function Gr(e,t={}){return br(e,(0,r.extend)({},Pr,t,{nodeTransforms:[Hr,...Yr,...t.nodeTransforms||[]],directiveTransforms:(0,r.extend)({},Xr,t.directiveTransforms||{}),transformHoist:null}))}function qr(e,t={}){return nn(e,(0,r.extend)({},Pr,t))}},4390:function(e,t,n){"use strict";n.d(t,{BA:function(){return $e},C4:function(){return E},EW:function(){return Le},Gc:function(){return ye},IG:function(){return Ce},IJ:function(){return Fe},KR:function(){return Me},Kh:function(){return _e},PP:function(){return Ze},Pr:function(){return We},QW:function(){return Xe},QZ:function(){return g},R1:function(){return Ve},Tm:function(){return Te},Ul:function(){return Qe},X2:function(){return f},bl:function(){return w},ds:function(){return v},fE:function(){return Oe},g8:function(){return Se},hZ:function(){return R},i9:function(){return De},jr:function(){return c},ju:function(){return xe},lW:function(){return Je},mu:function(){return Be},nD:function(){return Ee},o5:function(){return l},rY:function(){return Ye},tB:function(){return be},u4:function(){return L},uY:function(){return a},ux:function(){return Ne},yC:function(){return s}});var r=n(4526);let o,i;class s{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=o,!e&&o&&(this.index=(o.scopes||(o.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=o;try{return o=this,e()}finally{o=t}}}on(){o=this}off(){o=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function a(e){return new s(e)}function u(e,t=o){t&&t.active&&t.effects.push(e)}function l(){return o}function c(e){o&&o.cleanups.push(e)}class f{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,u(this,r)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,E();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(d(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),w()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=_,t=i;try{return _=!0,i=this,this._runnings++,p(this),this.fn()}finally{h(this),this._runnings--,i=t,_=e}}stop(){var e;this.active&&(p(this),h(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function d(e){return e.value}function p(e){e._trackId++,e._depsLength=0}function h(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)m(e.deps[t],e);e.deps.length=e._depsLength}}function m(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function g(e,t){e.effect instanceof f&&(e=e.effect.fn);const n=new f(e,r.NOOP,(()=>{n.dirty&&n.run()}));t&&((0,r.extend)(n,t),t.scope&&u(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function v(e){e.effect.stop()}let _=!0,y=0;const b=[];function E(){b.push(_),_=!1}function w(){const e=b.pop();_=void 0===e||e}function S(){y++}function T(){for(y--;!y&&x.length;)x.shift()()}function O(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&m(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const x=[];function N(e,t,n){S();for(const n of e.keys()){let r;n._dirtyLevel<t&&(null!=r?r:r=e.get(n)===n._trackId)&&(n._shouldSchedule||(n._shouldSchedule=0===n._dirtyLevel),n._dirtyLevel=t),n._shouldSchedule&&(null!=r?r:r=e.get(n)===n._trackId)&&(n.trigger(),n._runnings&&!n.allowRecurse||2===n._dirtyLevel||(n._shouldSchedule=!1,n.scheduler&&x.push(n.scheduler)))}T()}const C=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},A=new WeakMap,k=Symbol(""),I=Symbol("");function L(e,t,n){if(_&&i){let t=A.get(e);t||A.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=C((()=>t.delete(n)))),O(i,r)}}function R(e,t,n,o,i,s){const a=A.get(e);if(!a)return;let u=[];if("clear"===t)u=[...a.values()];else if("length"===n&&(0,r.isArray)(e)){const e=Number(o);a.forEach(((t,n)=>{("length"===n||!(0,r.isSymbol)(n)&&n>=e)&&u.push(t)}))}else switch(void 0!==n&&u.push(a.get(n)),t){case"add":(0,r.isArray)(e)?(0,r.isIntegerKey)(n)&&u.push(a.get("length")):(u.push(a.get(k)),(0,r.isMap)(e)&&u.push(a.get(I)));break;case"delete":(0,r.isArray)(e)||(u.push(a.get(k)),(0,r.isMap)(e)&&u.push(a.get(I)));break;case"set":(0,r.isMap)(e)&&u.push(a.get(k))}S();for(const e of u)e&&N(e,4);T()}const P=(0,r.makeMap)("__proto__,__v_isRef,__isVue"),D=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.isSymbol)),M=F();function F(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ne(this);for(let e=0,t=this.length;e<t;e++)L(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Ne)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){E(),S();const n=Ne(this)[t].apply(this,e);return T(),w(),n}})),e}function U(e){const t=Ne(this);return L(t,0,e),t.hasOwnProperty(e)}class j{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?ve:ge:i?me:he).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=(0,r.isArray)(e);if(!o){if(s&&(0,r.hasOwn)(M,t))return Reflect.get(M,t,n);if("hasOwnProperty"===t)return U}const a=Reflect.get(e,t,n);return((0,r.isSymbol)(t)?D.has(t):P(t))?a:(o||L(e,0,t),i?a:De(a)?s&&(0,r.isIntegerKey)(t)?a:a.value:(0,r.isObject)(a)?o?be(a):_e(a):a)}}class B extends j{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._isShallow){const t=Te(i);if(Oe(n)||Te(n)||(i=Ne(i),n=Ne(n)),!(0,r.isArray)(e)&&De(i)&&!De(n))return!t&&(i.value=n,!0)}const s=(0,r.isArray)(e)&&(0,r.isIntegerKey)(t)?Number(t)<e.length:(0,r.hasOwn)(e,t),a=Reflect.set(e,t,n,o);return e===Ne(o)&&(s?(0,r.hasChanged)(n,i)&&R(e,"set",t,n):R(e,"add",t,n)),a}deleteProperty(e,t){const n=(0,r.hasOwn)(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&R(e,"delete",t,void 0),o}has(e,t){const n=Reflect.has(e,t);return(0,r.isSymbol)(t)&&D.has(t)||L(e,0,t),n}ownKeys(e){return L(e,0,(0,r.isArray)(e)?"length":k),Reflect.ownKeys(e)}}class V extends j{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const $=new B,z=new V,W=new B(!0),H=new V(!0),Y=e=>e,X=e=>Reflect.getPrototypeOf(e);function G(e,t,n=!1,o=!1){const i=Ne(e=e.__v_raw),s=Ne(t);n||((0,r.hasChanged)(t,s)&&L(i,0,t),L(i,0,s));const{has:a}=X(i),u=o?Y:n?ke:Ae;return a.call(i,t)?u(e.get(t)):a.call(i,s)?u(e.get(s)):void(e!==i&&e.get(t))}function q(e,t=!1){const n=this.__v_raw,o=Ne(n),i=Ne(e);return t||((0,r.hasChanged)(e,i)&&L(o,0,e),L(o,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function J(e,t=!1){return e=e.__v_raw,!t&&L(Ne(e),0,k),Reflect.get(e,"size",e)}function K(e){e=Ne(e);const t=Ne(this);return X(t).has.call(t,e)||(t.add(e),R(t,"add",e,e)),this}function Q(e,t){t=Ne(t);const n=Ne(this),{has:o,get:i}=X(n);let s=o.call(n,e);s||(e=Ne(e),s=o.call(n,e));const a=i.call(n,e);return n.set(e,t),s?(0,r.hasChanged)(t,a)&&R(n,"set",e,t):R(n,"add",e,t),this}function Z(e){const t=Ne(this),{has:n,get:r}=X(t);let o=n.call(t,e);o||(e=Ne(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&R(t,"delete",e,void 0),i}function ee(){const e=Ne(this),t=0!==e.size,n=e.clear();return t&&R(e,"clear",void 0,void 0),n}function te(e,t){return function(n,r){const o=this,i=o.__v_raw,s=Ne(i),a=t?Y:e?ke:Ae;return!e&&L(s,0,k),i.forEach(((e,t)=>n.call(r,a(e),a(t),o)))}}function ne(e,t,n){return function(...o){const i=this.__v_raw,s=Ne(i),a=(0,r.isMap)(s),u="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=i[e](...o),f=n?Y:t?ke:Ae;return!t&&L(s,0,l?I:k),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:u?[f(e[0]),f(e[1])]:f(e),done:t}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function oe(){const e={get(e){return G(this,e)},get size(){return J(this)},has:q,add:K,set:Q,delete:Z,clear:ee,forEach:te(!1,!1)},t={get(e){return G(this,e,!1,!0)},get size(){return J(this)},has:q,add:K,set:Q,delete:Z,clear:ee,forEach:te(!1,!0)},n={get(e){return G(this,e,!0)},get size(){return J(this,!0)},has(e){return q.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:te(!0,!1)},r={get(e){return G(this,e,!0,!0)},get size(){return J(this,!0)},has(e){return q.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:te(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=ne(o,!1,!1),n[o]=ne(o,!0,!1),t[o]=ne(o,!1,!0),r[o]=ne(o,!0,!0)})),[e,n,t,r]}const[ie,se,ae,ue]=oe();function le(e,t){const n=t?e?ue:ae:e?se:ie;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.hasOwn)(n,o)&&o in t?n:t,o,i)}const ce={get:le(!1,!1)},fe={get:le(!1,!0)},de={get:le(!0,!1)},pe={get:le(!0,!0)},he=new WeakMap,me=new WeakMap,ge=new WeakMap,ve=new WeakMap;function _e(e){return Te(e)?e:we(e,!1,$,ce,he)}function ye(e){return we(e,!1,W,fe,me)}function be(e){return we(e,!0,z,de,ge)}function Ee(e){return we(e,!0,H,pe,ve)}function we(e,t,n,o,i){if(!(0,r.isObject)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const a=(u=e).__v_skip||!Object.isExtensible(u)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.toRawType)(u));var u;if(0===a)return e;const l=new Proxy(e,2===a?o:n);return i.set(e,l),l}function Se(e){return Te(e)?Se(e.__v_raw):!(!e||!e.__v_isReactive)}function Te(e){return!(!e||!e.__v_isReadonly)}function Oe(e){return!(!e||!e.__v_isShallow)}function xe(e){return Se(e)||Te(e)}function Ne(e){const t=e&&e.__v_raw;return t?Ne(t):e}function Ce(e){return Object.isExtensible(e)&&(0,r.def)(e,"__v_skip",!0),e}const Ae=e=>(0,r.isObject)(e)?_e(e):e,ke=e=>(0,r.isObject)(e)?be(e):e;class Ie{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new f((()=>e(this._value)),(()=>Pe(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Ne(this);return e._cacheable&&!e.effect.dirty||!(0,r.hasChanged)(e._value,e._value=e.effect.run())||Pe(e,4),Re(e),e.effect._dirtyLevel>=2&&Pe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Le(e,t,n=!1){let o,i;const s=(0,r.isFunction)(e);return s?(o=e,i=r.NOOP):(o=e.get,i=e.set),new Ie(o,i,s||!i,n)}function Re(e){var t;_&&i&&(e=Ne(e),O(i,null!=(t=e.dep)?t:e.dep=C((()=>e.dep=void 0),e instanceof Ie?e:void 0)))}function Pe(e,t=4,n){const r=(e=Ne(e)).dep;r&&N(r,t)}function De(e){return!(!e||!0!==e.__v_isRef)}function Me(e){return Ue(e,!1)}function Fe(e){return Ue(e,!0)}function Ue(e,t){return De(e)?e:new je(e,t)}class je{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ne(e),this._value=t?e:Ae(e)}get value(){return Re(this),this._value}set value(e){const t=this.__v_isShallow||Oe(e)||Te(e);e=t?e:Ne(e),(0,r.hasChanged)(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ae(e),Pe(this,4))}}function Be(e){Pe(e,4)}function Ve(e){return De(e)?e.value:e}function $e(e){return(0,r.isFunction)(e)?e():Ve(e)}const ze={get:(e,t,n)=>Ve(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return De(o)&&!De(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function We(e){return Se(e)?e:new Proxy(e,ze)}class He{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Re(this)),(()=>Pe(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ye(e){return new He(e)}function Xe(e){const t=(0,r.isArray)(e)?new Array(e.length):{};for(const n in e)t[n]=Ke(e,n);return t}class Ge{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Ne(this._object),t=this._key,null==(n=A.get(e))?void 0:n.get(t);var e,t,n}}class qe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Je(e,t,n){return De(e)?e:(0,r.isFunction)(e)?new qe(e):(0,r.isObject)(e)&&arguments.length>1?Ke(e,t,n):Me(e)}function Ke(e,t,n){const r=e[t];return De(r)?r:new Ge(e,t,n)}const Qe={GET:"get",HAS:"has",ITERATE:"iterate"},Ze={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"}},822:function(e,t,n){"use strict";n.d(t,{$V:function(){return je},$u:function(){return tt},$y:function(){return ee},BA:function(){return r.BA},Bs:function(){return Br},C4:function(){return o.normalizeClass},CE:function(){return Hn},Df:function(){return Me},Dl:function(){return x},E:function(){return Lt},E3:function(){return nr},EW:function(){return Dr},EY:function(){return Pn},FK:function(){return Rn},Fv:function(){return or},Fw:function(){return de},GM:function(){return Et},Gc:function(){return r.Gc},Gt:function(){return Gt},Gw:function(){return Yr},Gy:function(){return Ne},H4:function(){return p},HF:function(){return At},Ht:function(){return Ot},IG:function(){return r.IG},IJ:function(){return r.IJ},Ic:function(){return et},Im:function(){return In},K9:function(){return _n},KC:function(){return Qe},KR:function(){return r.KR},Kh:function(){return r.Kh},LJ:function(){return Xr},LM:function(){return pe},Lk:function(){return Zn},Lu:function(){return wt},MZ:function(){return De},Mw:function(){return Dn},NP:function(){return St},Ng:function(){return tr},OA:function(){return xt},OW:function(){return Le},PP:function(){return r.PP},PR:function(){return $e},PS:function(){return Jt},PT:function(){return o.camelize},Pr:function(){return r.Pr},Q3:function(){return ir},QP:function(){return Ae},QW:function(){return r.QW},QZ:function(){return r.QZ},Qi:function(){return V},R1:function(){return r.R1},R8:function(){return $r},RG:function(){return ct},SS:function(){return ot},Tb:function(){return dt},Tm:function(){return r.Tm},Tr:function(){return o.normalizeStyle},U4:function(){return l},U_:function(){return ge},Ul:function(){return r.Ul},Vq:function(){return zn},WQ:function(){return qt},Wv:function(){return Yn},X2:function(){return r.X2},Y4:function(){return He},Y5:function(){return Gr},YY:function(){return z},Yj:function(){return _t},ZH:function(){return o.capitalize},ZQ:function(){return zr},_B:function(){return o.normalizeProps},aT:function(){return qr},bF:function(){return er},bU:function(){return jr},bj:function(){return it},bn:function(){return It},bo:function(){return Se},ci:function(){return yn},dA:function(){return Nr},dY:function(){return S},ds:function(){return r.ds},eW:function(){return rr},eX:function(){return lt},fE:function(){return r.fE},fn:function(){return Mr},g2:function(){return Q},g8:function(){return r.g8},gN:function(){return te},gW:function(){return qn},gh:function(){return f},h:function(){return Fr},hi:function(){return rt},i9:function(){return r.i9},iD:function(){return Hr},jC:function(){return Mn},jr:function(){return r.jr},jt:function(){return $},ju:function(){return r.ju},k6:function(){return W},lW:function(){return r.lW},lt:function(){return Wr},mu:function(){return r.mu},n:function(){return We},nD:function(){return r.nD},nI:function(){return mr},nT:function(){return he},o5:function(){return r.o5},p9:function(){return me},pI:function(){return ut},pM:function(){return Fe},pR:function(){return ke},qG:function(){return at},qL:function(){return d},qP:function(){return yt},qR:function(){return st},rE:function(){return Vr},rO:function(){return Tt},rU:function(){return o.toHandlerKey},rY:function(){return r.rY},sV:function(){return Ze},tB:function(){return r.tB},tC:function(){return xr},tG:function(){return c},tY:function(){return se},uX:function(){return jn},uY:function(){return r.uY},ux:function(){return r.ux},v6:function(){return lr},v_:function(){return o.toDisplayString},vv:function(){return Xn},wB:function(){return _e},wk:function(){return bt},xo:function(){return nt},y$:function(){return Ur},yC:function(){return r.yC},zz:function(){return kt}});var r=n(4390),o=n(4526);const i=[];function s(e,...t){(0,r.C4)();const n=i.length?i[i.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=function(){let e=i[i.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)f(o,n,11,[e+t.join(""),n&&n.proxy,s.map((({vnode:e})=>`at <${Pr(n,e.type)}>`)).join("\n"),s]);else{const n=[`[Vue warn]: ${e}`,...t];s.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Pr(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...a(e.props),i]:[o+i]}(e))})),t}(s)),console.warn(...n)}(0,r.bl)()}function a(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...u(n,e[n]))})),n.length>3&&t.push(" ..."),t}function u(e,t,n){return(0,o.isString)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:(0,r.i9)(t)?(t=u(e,(0,r.ux)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.isFunction)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.ux)(t),n?t:[`${e}=`,t])}function l(e,t){}const c={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"};function f(e,t,n,r){try{return r?e(...r):e()}catch(e){p(e,t,n)}}function d(e,t,n,r){if((0,o.isFunction)(e)){const i=f(e,t,n,r);return i&&(0,o.isPromise)(i)&&i.catch((e=>{p(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(d(e[o],t,n,r));return i}function p(e,t,n,r=!0){if(t&&t.vnode,t){let r=t.parent;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const s=t.appContext.config.errorHandler;if(s)return void f(s,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let h=!1,m=!1;const g=[];let v=0;const _=[];let y=null,b=0;const E=Promise.resolve();let w=null;function S(e){const t=w||E;return e?t.then(this?e.bind(this):e):t}function T(e){g.length&&g.includes(e,h&&e.allowRecurse?v+1:v)||(null==e.id?g.push(e):g.splice(function(e){let t=v+1,n=g.length;for(;t<n;){const r=t+n>>>1,o=g[r],i=A(o);i<e||i===e&&o.pre?t=r+1:n=r}return t}(e.id),0,e),O())}function O(){h||m||(m=!0,w=E.then(I))}function x(e){(0,o.isArray)(e)?_.push(...e):y&&y.includes(e,e.allowRecurse?b+1:b)||_.push(e),O()}function N(e,t,n=(h?v+1:0)){for(;n<g.length;n++){const t=g[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;g.splice(n,1),n--,t()}}}function C(e){if(_.length){const e=[...new Set(_)].sort(((e,t)=>A(e)-A(t)));if(_.length=0,y)return void y.push(...e);for(y=e,b=0;b<y.length;b++)y[b]();y=null,b=0}}const A=e=>null==e.id?1/0:e.id,k=(e,t)=>{const n=A(e)-A(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function I(e){m=!1,h=!0,g.sort(k),o.NOOP;try{for(v=0;v<g.length;v++){const e=g[v];e&&!1!==e.active&&f(e,null,14)}}finally{v=0,g.length=0,C(),h=!1,w=null,(g.length||_.length)&&I(e)}}let L,R=[],P=!1;function D(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||o.EMPTY_OBJ;let i=n;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:s}=r[e]||o.EMPTY_OBJ;s&&(i=n.map((e=>(0,o.isString)(e)?e.trim():e))),t&&(i=n.map(o.looseToNumber))}let u,l=r[u=(0,o.toHandlerKey)(t)]||r[u=(0,o.toHandlerKey)((0,o.camelize)(t))];!l&&s&&(l=r[u=(0,o.toHandlerKey)((0,o.hyphenate)(t))]),l&&d(l,e,6,i);const c=r[u+"Once"];if(c){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,d(c,e,6,i)}}function M(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const s=e.emits;let a={},u=!1;if(!(0,o.isFunction)(e)){const r=e=>{const n=M(e,t,!0);n&&(u=!0,(0,o.extend)(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return s||u?((0,o.isArray)(s)?s.forEach((e=>a[e]=null)):(0,o.extend)(a,s),(0,o.isObject)(e)&&r.set(e,a),a):((0,o.isObject)(e)&&r.set(e,null),null)}function F(e,t){return!(!e||!(0,o.isOn)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.hasOwn)(e,t[0].toLowerCase()+t.slice(1))||(0,o.hasOwn)(e,(0,o.hyphenate)(t))||(0,o.hasOwn)(e,t))}let U=null,j=null;function B(e){const t=U;return U=e,j=e&&e.type.__scopeId||null,t}function V(e){j=e}function $(){j=null}const z=e=>W;function W(e,t=U,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&zn(-1);const o=B(t);let i;try{i=e(...n)}finally{B(o),r._d&&zn(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function H(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[a],slots:u,attrs:l,emit:c,render:f,renderCache:d,data:h,setupState:m,ctx:g,inheritAttrs:v}=e;let _,y;const b=B(e);try{if(4&n.shapeFlag){const e=i||r,t=e;_=sr(f.call(t,e,d,s,m,h,g)),y=l}else{const e=t;_=sr(e.length>1?e(s,{attrs:l,slots:u,emit:c}):e(s,null)),y=t.props?l:Y(l)}}catch(t){Fn.length=0,p(t,e,1),_=er(Dn)}let E=_;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=E;e.length&&7&t&&(a&&e.some(o.isModelListener)&&(y=X(y,a)),E=nr(E,y))}return n.dirs&&(E=nr(E),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),_=E,B(b),_}const Y=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.isOn)(n))&&((t||(t={}))[n]=e[n]);return t},X=(e,t)=>{const n={};for(const r in e)(0,o.isModelListener)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function G(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!F(n,i))return!0}return!1}function q({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const J="components",K="directives";function Q(e,t){return ne(J,e,!0,t)||e}const Z=Symbol.for("v-ndc");function ee(e){return(0,o.isString)(e)?ne(J,e,!1)||e:e||Z}function te(e){return ne(K,e)}function ne(e,t,n=!0,r=!1){const i=U||hr;if(i){const n=i.type;if(e===J){const e=Rr(n,!1);if(e&&(e===t||e===(0,o.camelize)(t)||e===(0,o.capitalize)((0,o.camelize)(t))))return n}const s=re(i[e]||n[e],t)||re(i.appContext[e],t);return!s&&r?n:s}}function re(e,t){return e&&(e[t]||e[(0,o.camelize)(t)]||e[(0,o.capitalize)((0,o.camelize)(t))])}const oe=e=>e.__isSuspense;let ie=0;const se={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,i,s,a,u,l){if(null==e)!function(e,t,n,r,o,i,s,a,u){const{p:l,o:{createElement:c}}=u,f=c("div"),d=e.suspense=ue(e,o,r,t,f,n,i,s,a,u);l(null,d.pendingBranch=e.ssContent,f,null,r,d,i,s),d.deps>0?(ae(e,"onPending"),ae(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,i,s),fe(d,e.ssFallback)):d.resolve(!1,!0)}(t,n,r,o,i,s,a,u,l);else{if(i&&i.deps>0)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,o,i,s,a,{p:u,um:l,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:g,isHydrating:v}=f;if(m)f.pendingBranch=d,Gn(d,m)?(u(m,d,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0?f.resolve():g&&(v||(u(h,p,n,r,o,null,i,s,a),fe(f,p)))):(f.pendingId=ie++,v?(f.isHydrating=!1,f.activeBranch=m):l(m,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),g?(u(null,d,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0?f.resolve():(u(h,p,n,r,o,null,i,s,a),fe(f,p))):h&&Gn(d,h)?(u(h,d,n,r,o,f,i,s,a),f.resolve(!0)):(u(null,d,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0&&f.resolve()));else if(h&&Gn(d,h))u(h,d,n,r,o,f,i,s,a),fe(f,d);else if(ae(t,"onPending"),f.pendingBranch=d,512&d.shapeFlag?f.pendingId=d.component.suspenseId:f.pendingId=ie++,u(null,d,f.hiddenContainer,null,o,f,i,s,a),f.deps<=0)f.resolve();else{const{timeout:e,pendingId:t}=f;e>0?setTimeout((()=>{f.pendingId===t&&f.fallback(p)}),e):0===e&&f.fallback(p)}}(e,t,n,r,o,s,a,u,l)}},hydrate:function(e,t,n,r,o,i,s,a,u){const l=t.suspense=ue(t,r,n,e.parentNode,document.createElement("div"),null,o,i,s,a,!0),c=u(e,l.pendingBranch=t.ssContent,n,l,i,s);return 0===l.deps&&l.resolve(!1,!0),c},create:ue,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=le(r?n.default:n),e.ssFallback=r?le(n.fallback):er(Dn)}};function ae(e,t){const n=e.props&&e.props[t];(0,o.isFunction)(n)&&n()}function ue(e,t,n,r,i,s,a,u,l,c,f=!1){const{p:d,m:h,um:m,n:g,o:{parentNode:v,remove:_}}=c;let y;const b=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);b&&(null==t?void 0:t.pendingBranch)&&(y=t.pendingId,t.deps++);const E=e.props?(0,o.toNumber)(e.props.timeout):void 0,w=s,S={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:ie++,timeout:"number"==typeof E?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:o,pendingBranch:i,pendingId:a,effects:u,parentComponent:l,container:c}=S;let f=!1;S.isHydrating?S.isHydrating=!1:e||(f=o&&i.transition&&"out-in"===i.transition.mode,f&&(o.transition.afterLeave=()=>{a===S.pendingId&&(h(i,c,s===w?g(o):s,0),x(u))}),o&&(v(o.el)!==S.hiddenContainer&&(s=g(o)),m(o,l,S,!0)),f||h(i,c,s,0)),fe(S,i),S.pendingBranch=null,S.isInFallback=!1;let d=S.parent,p=!1;for(;d;){if(d.pendingBranch){d.effects.push(...u),p=!0;break}d=d.parent}p||f||x(u),S.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),ae(r,"onResolve")},fallback(e){if(!S.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,namespace:i}=S;ae(t,"onFallback");const s=g(n),a=()=>{S.isInFallback&&(d(null,e,o,s,r,null,i,u,l),fe(S,e))},c=e.transition&&"out-in"===e.transition.mode;c&&(n.transition.afterLeave=a),S.isInFallback=!0,m(n,r,null,!0),c||a()},move(e,t,n){S.activeBranch&&h(S.activeBranch,e,t,n),S.container=e},next(){return S.activeBranch&&g(S.activeBranch)},registerDep(e,t){const n=!!S.pendingBranch;n&&S.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{p(t,e,0)})).then((o=>{if(e.isUnmounted||S.isUnmounted||S.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:i}=e;Or(e,o,!1),r&&(i.el=r);const s=!r&&e.subTree.el;t(e,i,v(r||e.subTree.el),r?null:g(e.subTree),S,a,l),s&&_(s),q(e,i.el),n&&0==--S.deps&&S.resolve()}))},unmount(e,t){S.isUnmounted=!0,S.activeBranch&&m(S.activeBranch,n,e,t),S.pendingBranch&&m(S.pendingBranch,n,e,t)}};return S}function le(e){let t;if((0,o.isFunction)(e)){const n=$n&&e._c;n&&(e._d=!1,jn()),e=e(),n&&(e._d=!0,t=Un,Bn())}if((0,o.isArray)(e)){const t=function(e,t=!0){let n;for(let t=0;t<e.length;t++){const r=e[t];if(!Xn(r))return;if(r.type!==Dn||"v-if"===r.children){if(n)return;n=r}}return n}(e);e=t}return e=sr(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function ce(e,t){t&&t.pendingBranch?(0,o.isArray)(e)?t.effects.push(...e):t.effects.push(e):x(e)}function fe(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)o=(t=t.component.subTree).el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,q(r,o))}const de=Symbol.for("v-scx"),pe=()=>qt(de);function he(e,t){return ye(e,null,t)}function me(e,t){return ye(e,null,{flush:"post"})}function ge(e,t){return ye(e,null,{flush:"sync"})}const ve={};function _e(e,t,n){return ye(e,t,n)}function ye(e,t,{immediate:n,deep:i,flush:s,once:a,onTrack:u,onTrigger:l}=o.EMPTY_OBJ){if(t&&a){const e=t;t=(...t)=>{e(...t),x()}}const c=hr,p=e=>!0===i?e:we(e,!1===i?1:void 0);let h,m,g=!1,v=!1;if((0,r.i9)(e)?(h=()=>e.value,g=(0,r.fE)(e)):(0,r.g8)(e)?(h=()=>p(e),g=!0):(0,o.isArray)(e)?(v=!0,g=e.some((e=>(0,r.g8)(e)||(0,r.fE)(e))),h=()=>e.map((e=>(0,r.i9)(e)?e.value:(0,r.g8)(e)?p(e):(0,o.isFunction)(e)?f(e,c,2):void 0))):h=(0,o.isFunction)(e)?t?()=>f(e,c,2):()=>(m&&m(),d(e,c,3,[y])):o.NOOP,t&&i){const e=h;h=()=>we(e())}let _,y=e=>{m=S.onStop=()=>{f(e,c,4),m=S.onStop=void 0}};if(Sr){if(y=o.NOOP,t?n&&d(t,c,3,[h(),v?[]:void 0,y]):h(),"sync"!==s)return o.NOOP;{const e=pe();_=e.__watcherHandles||(e.__watcherHandles=[])}}let b=v?new Array(e.length).fill(ve):ve;const E=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||g||(v?e.some(((e,t)=>(0,o.hasChanged)(e,b[t]))):(0,o.hasChanged)(e,b)))&&(m&&m(),d(t,c,3,[e,b===ve?void 0:v&&b[0]===ve?[]:b,y]),b=e)}else S.run()};let w;E.allowRecurse=!!t,"sync"===s?w=E:"post"===s?w=()=>vn(E,c&&c.suspense):(E.pre=!0,c&&(E.id=c.uid),w=()=>T(E));const S=new r.X2(h,o.NOOP,w),O=(0,r.o5)(),x=()=>{S.stop(),O&&(0,o.remove)(O.effects,S)};return t?n?E():b=S.run():"post"===s?vn(S.run.bind(S),c&&c.suspense):S.run(),_&&_.push(x),x}function be(e,t,n){const r=this.proxy,i=(0,o.isString)(e)?e.includes(".")?Ee(r,e):()=>r[e]:e.bind(r,r);let s;(0,o.isFunction)(t)?s=t:(s=t.handler,n=t);const a=_r(this),u=ye(i,s.bind(r),n);return a(),u}function Ee(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function we(e,t,n=0,i){if(!(0,o.isObject)(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((i=i||new Set).has(e))return e;if(i.add(e),(0,r.i9)(e))we(e.value,t,n,i);else if((0,o.isArray)(e))for(let r=0;r<e.length;r++)we(e[r],t,n,i);else if((0,o.isSet)(e)||(0,o.isMap)(e))e.forEach((e=>{we(e,t,n,i)}));else if((0,o.isPlainObject)(e))for(const r in e)we(e[r],t,n,i);return e}function Se(e,t){if(null===U)return e;const n=kr(U)||U.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,s,a,u=o.EMPTY_OBJ]=t[e];i&&((0,o.isFunction)(i)&&(i={mounted:i,updated:i}),i.deep&&we(s),r.push({dir:i,instance:n,value:s,oldValue:void 0,arg:a,modifiers:u}))}return e}function Te(e,t,n,o){const i=e.dirs,s=t&&t.dirs;for(let a=0;a<i.length;a++){const u=i[a];s&&(u.oldValue=s[a].value);let l=u.dir[o];l&&((0,r.C4)(),d(l,n,8,[e.el,u,e,t]),(0,r.bl)())}}const Oe=Symbol("_leaveCb"),xe=Symbol("_enterCb");function Ne(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ze((()=>{e.isMounted=!0})),nt((()=>{e.isUnmounting=!0})),e}const Ce=[Function,Array],Ae={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ce,onEnter:Ce,onAfterEnter:Ce,onEnterCancelled:Ce,onBeforeLeave:Ce,onLeave:Ce,onAfterLeave:Ce,onLeaveCancelled:Ce,onBeforeAppear:Ce,onAppear:Ce,onAfterAppear:Ce,onAppearCancelled:Ce},ke={name:"BaseTransition",props:Ae,setup(e,{slots:t}){const n=mr(),o=Ne();return()=>{const i=t.default&&Me(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==Dn){s=t,e=!0;break}}const a=(0,r.ux)(e),{mode:u}=a;if(o.isLeaving)return Re(s);const l=Pe(s);if(!l)return Re(s);const c=Le(l,a,o,n);De(l,c);const f=n.subTree,d=f&&Pe(f);if(d&&d.type!==Dn&&!Gn(l,d)){const e=Le(d,a,o,n);if(De(d,e),"out-in"===u)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Re(s);"in-out"===u&&l.type!==Dn&&(e.delayLeave=(e,t,n)=>{Ie(o,d)[String(d.key)]=d,e[Oe]=()=>{t(),e[Oe]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return s}}};function Ie(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Le(e,t,n,r){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:u,onEnter:l,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:v,onAppear:_,onAfterAppear:y,onAppearCancelled:b}=t,E=String(e.key),w=Ie(n,e),S=(e,t)=>{e&&d(e,r,9,t)},T=(e,t)=>{const n=t[1];S(e,t),(0,o.isArray)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},O={mode:s,persisted:a,beforeEnter(t){let r=u;if(!n.isMounted){if(!i)return;r=v||u}t[Oe]&&t[Oe](!0);const o=w[E];o&&Gn(e,o)&&o.el[Oe]&&o.el[Oe](),S(r,[t])},enter(e){let t=l,r=c,o=f;if(!n.isMounted){if(!i)return;t=_||l,r=y||c,o=b||f}let s=!1;const a=e[xe]=t=>{s||(s=!0,S(t?o:r,[e]),O.delayedLeave&&O.delayedLeave(),e[xe]=void 0)};t?T(t,[e,a]):a()},leave(t,r){const o=String(e.key);if(t[xe]&&t[xe](!0),n.isUnmounting)return r();S(p,[t]);let i=!1;const s=t[Oe]=n=>{i||(i=!0,r(),S(n?g:m,[t]),t[Oe]=void 0,w[o]===e&&delete w[o])};w[o]=e,h?T(h,[t,s]):s()},clone(e){return Le(e,t,n,r)}};return O}function Re(e){if(Ve(e))return(e=nr(e)).children=null,e}function Pe(e){return Ve(e)?e.children?e.children[0]:void 0:e}function De(e,t){6&e.shapeFlag&&e.component?De(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Me(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=null==n?s.key:String(n)+String(null!=s.key?s.key:i);s.type===Rn?(128&s.patchFlag&&o++,r=r.concat(Me(s.children,t,a))):(t||s.type!==Dn)&&r.push(null!=a?nr(s,{key:a}):s)}if(o>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function Fe(e,t){return(0,o.isFunction)(e)?(()=>(0,o.extend)({name:e.name},t,{setup:e}))():e}const Ue=e=>!!e.type.__asyncLoader;function je(e){(0,o.isFunction)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,timeout:a,suspensible:u=!0,onError:l}=e;let c,f=null,d=0;const h=()=>{let e;return f||(e=f=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((d++,f=null,h()))),(()=>n(e)),d+1)}));throw e})).then((t=>e!==f&&f?f:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const e=hr;if(c)return()=>Be(c,e);const t=t=>{f=null,p(t,e,13,!i)};if(u&&e.suspense||Sr)return h().then((t=>()=>Be(t,e))).catch((e=>(t(e),()=>i?er(i,{error:e}):null)));const o=(0,r.KR)(!1),l=(0,r.KR)(),d=(0,r.KR)(!!s);return s&&setTimeout((()=>{d.value=!1}),s),null!=a&&setTimeout((()=>{if(!o.value&&!l.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),l.value=e}}),a),h().then((()=>{o.value=!0,e.parent&&Ve(e.parent.vnode)&&(e.parent.effect.dirty=!0,T(e.parent.update))})).catch((e=>{t(e),l.value=e})),()=>o.value&&c?Be(c,e):l.value&&i?er(i,{error:l.value}):n&&!d.value?er(n):void 0}})}function Be(e,t){const{ref:n,props:r,children:o,ce:i}=t.vnode,s=er(e,r,o);return s.ref=n,s.ce=i,delete t.vnode.ce,s}const Ve=e=>e.type.__isKeepAlive,$e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=mr(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,s=new Set;let a=null;const u=n.suspense,{renderer:{p:l,m:c,um:f,o:{createElement:d}}}=r,p=d("div");function h(e){Ge(e),f(e,n,u,!0)}function m(e){i.forEach(((t,n)=>{const r=Rr(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=i.get(e);a&&Gn(t,a)?a&&Ge(a):h(t),i.delete(e),s.delete(e)}r.activate=(e,t,n,r,i)=>{const s=e.component;c(e,t,n,0,u),l(s.vnode,e,t,n,s,u,r,e.slotScopeIds,i),vn((()=>{s.isDeactivated=!1,s.a&&(0,o.invokeArrayFns)(s.a);const t=e.props&&e.props.onVnodeMounted;t&&cr(t,s.parent,e)}),u)},r.deactivate=e=>{const t=e.component;c(e,p,null,1,u),vn((()=>{t.da&&(0,o.invokeArrayFns)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&cr(n,t.parent,e),t.isDeactivated=!0}),u)},_e((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>ze(e,t))),t&&m((e=>!ze(t,e)))}),{flush:"post",deep:!0});let v=null;const _=()=>{null!=v&&i.set(v,qe(n.subTree))};return Ze(_),tt(_),nt((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,o=qe(t);if(e.type!==o.type||e.key!==o.key)h(e);else{Ge(o);const e=o.component.da;e&&vn(e,r)}}))})),()=>{if(v=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return a=null,n;if(!Xn(r)||!(4&r.shapeFlag||128&r.shapeFlag))return a=null,r;let o=qe(r);const u=o.type,l=Rr(Ue(o)?o.type.__asyncResolved||{}:u),{include:c,exclude:f,max:d}=e;if(c&&(!l||!ze(c,l))||f&&l&&ze(f,l))return a=o,r;const p=null==o.key?u:o.key,h=i.get(p);return o.el&&(o=nr(o),128&r.shapeFlag&&(r.ssContent=o)),v=p,h?(o.el=h.el,o.component=h.component,o.transition&&De(o,o.transition),o.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),d&&s.size>parseInt(d,10)&&g(s.values().next().value)),o.shapeFlag|=256,a=o,oe(r.type)?r:o}}};function ze(e,t){return(0,o.isArray)(e)?e.some((e=>ze(e,t))):(0,o.isString)(e)?e.split(",").includes(t):!!(0,o.isRegExp)(e)&&e.test(t)}function We(e,t){Ye(e,"a",t)}function He(e,t){Ye(e,"da",t)}function Ye(e,t,n=hr){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Je(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ve(e.parent.vnode)&&Xe(r,t,n,e),e=e.parent}}function Xe(e,t,n,r){const i=Je(t,e,r,!0);rt((()=>{(0,o.remove)(r[t],i)}),n)}function Ge(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function qe(e){return 128&e.shapeFlag?e.ssContent:e}function Je(e,t,n=hr,o=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.C4)();const i=_r(n),s=d(t,n,e,o);return i(),(0,r.bl)(),s});return o?i.unshift(s):i.push(s),s}}const Ke=e=>(t,n=hr)=>(!Sr||"sp"===e)&&Je(e,((...e)=>t(...e)),n),Qe=Ke("bm"),Ze=Ke("m"),et=Ke("bu"),tt=Ke("u"),nt=Ke("bum"),rt=Ke("um"),ot=Ke("sp"),it=Ke("rtg"),st=Ke("rtc");function at(e,t=hr){Je("ec",e,t)}function ut(e,t,n,r){let i;const s=n&&n[r];if((0,o.isArray)(e)||(0,o.isString)(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,s&&s[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,s&&s[n])}else if((0,o.isObject)(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,o=n.length;r<o;r++){const o=n[r];i[r]=t(e[o],o,r,s&&s[r])}}else i=[];return n&&(n[r]=i),i}function lt(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,o.isArray)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function ct(e,t,n={},r,o){if(U.isCE||U.parent&&Ue(U.parent)&&U.parent.isCE)return"default"!==t&&(n.name=t),er("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),jn();const s=i&&ft(i(n)),a=Yn(Rn,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&1===e._?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function ft(e){return e.some((e=>!Xn(e)||e.type!==Dn&&!(e.type===Rn&&!ft(e.children))))?e:null}function dt(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:(0,o.toHandlerKey)(r)]=e[r];return n}const pt=e=>e?br(e)?kr(e)||e.proxy:pt(e.parent):null,ht=(0,o.extend)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>pt(e.parent),$root:e=>pt(e.root),$emit:e=>e.emit,$options:e=>Mt(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,T(e.update)}),$nextTick:e=>e.n||(e.n=S.bind(e.proxy)),$watch:e=>be.bind(e)}),mt=(e,t)=>e!==o.EMPTY_OBJ&&!e.__isScriptSetup&&(0,o.hasOwn)(e,t),gt={get({_:e},t){const{ctx:n,setupState:i,data:s,props:a,accessCache:u,type:l,appContext:c}=e;let f;if("$"!==t[0]){const r=u[t];if(void 0!==r)switch(r){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(mt(i,t))return u[t]=1,i[t];if(s!==o.EMPTY_OBJ&&(0,o.hasOwn)(s,t))return u[t]=2,s[t];if((f=e.propsOptions[0])&&(0,o.hasOwn)(f,t))return u[t]=3,a[t];if(n!==o.EMPTY_OBJ&&(0,o.hasOwn)(n,t))return u[t]=4,n[t];Rt&&(u[t]=0)}}const d=ht[t];let p,h;return d?("$attrs"===t&&(0,r.u4)(e,"get",t),d(e)):(p=l.__cssModules)&&(p=p[t])?p:n!==o.EMPTY_OBJ&&(0,o.hasOwn)(n,t)?(u[t]=4,n[t]):(h=c.config.globalProperties,(0,o.hasOwn)(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return mt(i,t)?(i[t]=n,!0):r!==o.EMPTY_OBJ&&(0,o.hasOwn)(r,t)?(r[t]=n,!0):!((0,o.hasOwn)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(s[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let u;return!!n[a]||e!==o.EMPTY_OBJ&&(0,o.hasOwn)(e,a)||mt(t,a)||(u=s[0])&&(0,o.hasOwn)(u,a)||(0,o.hasOwn)(r,a)||(0,o.hasOwn)(ht,a)||(0,o.hasOwn)(i.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,o.hasOwn)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},vt=(0,o.extend)({},gt,{get(e,t){if(t!==Symbol.unscopables)return gt.get(e,t,e)},has(e,t){return"_"!==t[0]&&!(0,o.isGloballyAllowed)(t)}});function _t(){return null}function yt(){return null}function bt(e){}function Et(e){}function wt(){return null}function St(){}function Tt(e,t){return null}function Ot(){return Nt().slots}function xt(){return Nt().attrs}function Nt(){const e=mr();return e.setupContext||(e.setupContext=Ar(e))}function Ct(e){return(0,o.isArray)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function At(e,t){const n=Ct(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?(0,o.isArray)(r)||(0,o.isFunction)(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function kt(e,t){return e&&t?(0,o.isArray)(e)&&(0,o.isArray)(t)?e.concat(t):(0,o.extend)({},Ct(e),Ct(t)):e||t}function It(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Lt(e){const t=mr();let n=e();return yr(),(0,o.isPromise)(n)&&(n=n.catch((e=>{throw _r(t),e}))),[n,()=>_r(t)]}let Rt=!0;function Pt(e,t,n){d((0,o.isArray)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Dt(e,t,n,r){const i=r.includes(".")?Ee(n,r):()=>n[r];if((0,o.isString)(e)){const n=t[e];(0,o.isFunction)(n)&&_e(i,n)}else if((0,o.isFunction)(e))_e(i,e.bind(n));else if((0,o.isObject)(e))if((0,o.isArray)(e))e.forEach((e=>Dt(e,t,n,r)));else{const r=(0,o.isFunction)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.isFunction)(r)&&_e(i,r,e)}}function Mt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,u=s.get(t);let l;return u?l=u:i.length||n||r?(l={},i.length&&i.forEach((e=>Ft(l,e,a,!0))),Ft(l,t,a)):l=t,(0,o.isObject)(t)&&s.set(t,l),l}function Ft(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Ft(e,i,n,!0),o&&o.forEach((t=>Ft(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=Ut[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const Ut={data:jt,props:zt,emits:zt,methods:$t,computed:$t,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:$t,directives:$t,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,o.extend)(Object.create(null),e);for(const r in t)n[r]=Vt(e[r],t[r]);return n},provide:jt,inject:function(e,t){return $t(Bt(e),Bt(t))}};function jt(e,t){return t?e?function(){return(0,o.extend)((0,o.isFunction)(e)?e.call(this,this):e,(0,o.isFunction)(t)?t.call(this,this):t)}:t:e}function Bt(e){if((0,o.isArray)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Vt(e,t){return e?[...new Set([].concat(e,t))]:t}function $t(e,t){return e?(0,o.extend)(Object.create(null),e,t):t}function zt(e,t){return e?(0,o.isArray)(e)&&(0,o.isArray)(t)?[...new Set([...e,...t])]:(0,o.extend)(Object.create(null),Ct(e),Ct(null!=t?t:{})):t}function Wt(){return{app:null,config:{isNativeTag:o.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ht=0;function Yt(e,t){return function(n,r=null){(0,o.isFunction)(n)||(n=(0,o.extend)({},n)),null==r||(0,o.isObject)(r)||(r=null);const i=Wt(),s=new WeakSet;let a=!1;const u=i.app={_uid:Ht++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Vr,get config(){return i.config},set config(e){},use(e,...t){return s.has(e)||(e&&(0,o.isFunction)(e.install)?(s.add(e),e.install(u,...t)):(0,o.isFunction)(e)&&(s.add(e),e(u,...t))),u},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),u},component(e,t){return t?(i.components[e]=t,u):i.components[e]},directive(e,t){return t?(i.directives[e]=t,u):i.directives[e]},mount(o,s,l){if(!a){const c=er(n,r);return c.appContext=i,!0===l?l="svg":!1===l&&(l=void 0),s&&t?t(c,o):e(c,o,l),a=!0,u._container=o,o.__vue_app__=u,kr(c.component)||c.component.proxy}},unmount(){a&&(e(null,u._container),delete u._container.__vue_app__)},provide(e,t){return i.provides[e]=t,u},runWithContext(e){const t=Xt;Xt=u;try{return e()}finally{Xt=t}}};return u}}let Xt=null;function Gt(e,t){if(hr){let n=hr.provides;const r=hr.parent&&hr.parent.provides;r===n&&(n=hr.provides=Object.create(r)),n[e]=t}}function qt(e,t,n=!1){const r=hr||U;if(r||Xt){const i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Xt._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,o.isFunction)(t)?t.call(r&&r.proxy):t}}function Jt(){return!!(hr||U||Xt)}function Kt(e,t,n,i){const[s,a]=e.propsOptions;let u,l=!1;if(t)for(let r in t){if((0,o.isReservedProp)(r))continue;const c=t[r];let f;s&&(0,o.hasOwn)(s,f=(0,o.camelize)(r))?a&&a.includes(f)?(u||(u={}))[f]=c:n[f]=c:F(e.emitsOptions,r)||r in i&&c===i[r]||(i[r]=c,l=!0)}if(a){const t=(0,r.ux)(n),i=u||o.EMPTY_OBJ;for(let r=0;r<a.length;r++){const u=a[r];n[u]=Qt(s,t,u,i[u],e,!(0,o.hasOwn)(i,u))}}return l}function Qt(e,t,n,r,i,s){const a=e[n];if(null!=a){const e=(0,o.hasOwn)(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&!a.skipFactory&&(0,o.isFunction)(e)){const{propsDefaults:o}=i;if(n in o)r=o[n];else{const s=_r(i);r=o[n]=e.call(null,t),s()}}else r=e}a[0]&&(s&&!e?r=!1:!a[1]||""!==r&&r!==(0,o.hyphenate)(n)||(r=!0))}return r}function Zt(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,a={},u=[];let l=!1;if(!(0,o.isFunction)(e)){const r=e=>{l=!0;const[n,r]=Zt(e,t,!0);(0,o.extend)(a,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!l)return(0,o.isObject)(e)&&r.set(e,o.EMPTY_ARR),o.EMPTY_ARR;if((0,o.isArray)(s))for(let e=0;e<s.length;e++){const t=(0,o.camelize)(s[e]);en(t)&&(a[t]=o.EMPTY_OBJ)}else if(s)for(const e in s){const t=(0,o.camelize)(e);if(en(t)){const n=s[e],r=a[t]=(0,o.isArray)(n)||(0,o.isFunction)(n)?{type:n}:(0,o.extend)({},n);if(r){const e=rn(Boolean,r.type),n=rn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||(0,o.hasOwn)(r,"default"))&&u.push(t)}}}const c=[a,u];return(0,o.isObject)(e)&&r.set(e,c),c}function en(e){return"$"!==e[0]&&!(0,o.isReservedProp)(e)}function tn(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function nn(e,t){return tn(e)===tn(t)}function rn(e,t){return(0,o.isArray)(t)?t.findIndex((t=>nn(t,e))):(0,o.isFunction)(t)&&nn(t,e)?0:-1}const on=e=>"_"===e[0]||"$stable"===e,sn=e=>(0,o.isArray)(e)?e.map(sr):[sr(e)],an=(e,t,n)=>{if(t._n)return t;const r=W(((...e)=>sn(t(...e))),n);return r._c=!1,r},un=(e,t,n)=>{const r=e._ctx;for(const n in e){if(on(n))continue;const i=e[n];if((0,o.isFunction)(i))t[n]=an(0,i,r);else if(null!=i){const e=sn(i);t[n]=()=>e}}},ln=(e,t)=>{const n=sn(t);e.slots.default=()=>n},cn=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.ux)(t),(0,o.def)(t,"_",n)):un(t,e.slots={})}else e.slots={},t&&ln(e,t);(0,o.def)(e.slots,Jn,1)},fn=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,a=o.EMPTY_OBJ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?s=!1:((0,o.extend)(i,t),n||1!==e||delete i._):(s=!t.$stable,un(t,i)),a=t}else t&&(ln(e,t),a={default:1});if(s)for(const e in i)on(e)||null!=a[e]||delete i[e]};function dn(e,t,n,i,s=!1){if((0,o.isArray)(e))return void e.forEach(((e,r)=>dn(e,t&&((0,o.isArray)(t)?t[r]:t),n,i,s)));if(Ue(i)&&!s)return;const a=4&i.shapeFlag?kr(i.component)||i.component.proxy:i.el,u=s?null:a,{i:l,r:c}=e,d=t&&t.r,p=l.refs===o.EMPTY_OBJ?l.refs={}:l.refs,h=l.setupState;if(null!=d&&d!==c&&((0,o.isString)(d)?(p[d]=null,(0,o.hasOwn)(h,d)&&(h[d]=null)):(0,r.i9)(d)&&(d.value=null)),(0,o.isFunction)(c))f(c,l,12,[u,p]);else{const t=(0,o.isString)(c),i=(0,r.i9)(c);if(t||i){const r=()=>{if(e.f){const n=t?(0,o.hasOwn)(h,c)?h[c]:p[c]:c.value;s?(0,o.isArray)(n)&&(0,o.remove)(n,a):(0,o.isArray)(n)?n.includes(a)||n.push(a):t?(p[c]=[a],(0,o.hasOwn)(h,c)&&(h[c]=p[c])):(c.value=[a],e.k&&(p[e.k]=c.value))}else t?(p[c]=u,(0,o.hasOwn)(h,c)&&(h[c]=u)):i&&(c.value=u,e.k&&(p[e.k]=u))};u?(r.id=-1,vn(r,n)):r()}}}let pn=!1;const hn=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,mn=e=>8===e.nodeType;function gn(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:u,remove:l,insert:c,createComment:f}}=e,d=(n,r,o,l,f,b=!1)=>{const E=mn(n)&&"["===n.data,w=()=>g(n,r,o,l,f,E),{type:S,ref:T,shapeFlag:O,patchFlag:x}=r;let N=n.nodeType;r.el=n,-2===x&&(b=!1,r.dynamicChildren=null);let C=null;switch(S){case Pn:3!==N?""===r.children?(c(r.el=i(""),u(n),n),C=n):C=w():(n.data!==r.children&&(pn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),n.data=r.children),C=a(n));break;case Dn:y(n)?(C=a(n),_(r.el=n.content.firstChild,n,o)):C=8!==N||E?w():a(n);break;case Mn:if(E&&(N=(n=a(n)).nodeType),1===N||3===N){C=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=1===C.nodeType?C.outerHTML:C.data),t===r.staticCount-1&&(r.anchor=C),C=a(C);return E?a(C):C}w();break;case Rn:C=E?m(n,r,o,l,f,b):w();break;default:if(1&O)C=1===N&&r.type.toLowerCase()===n.tagName.toLowerCase()||y(n)?p(n,r,o,l,f,b):w();else if(6&O){r.slotScopeIds=f;const e=u(n);if(C=E?v(n):mn(n)&&"teleport start"===n.data?v(n,n.data,"teleport end"):a(n),t(r,e,null,o,l,hn(e),b),Ue(r)){let t;E?(t=er(Rn),t.anchor=C?C.previousSibling:e.lastChild):t=3===n.nodeType?rr(""):er("div"),t.el=n,r.component.subTree=t}}else 64&O?C=8!==N?w():r.type.hydrate(n,r,o,l,f,b,e,h):128&O?C=r.type.hydrate(n,r,o,l,hn(u(n)),f,b,e,d):__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Invalid HostVNode type:",S,`(${typeof S})`)}return null!=T&&dn(T,null,l,r),C},p=(e,t,n,i,a,u)=>{u=u||!!t.dynamicChildren;const{type:c,props:f,patchFlag:d,shapeFlag:p,dirs:m,transition:g}=t,v="input"===c||"option"===c;if(v||-1!==d){m&&Te(t,null,n,"created");let c,b=!1;if(y(e)){b=Sn(i,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;b&&g.beforeEnter(r),_(r,e,n),t.el=e=r}if(16&p&&(!f||!f.innerHTML&&!f.textContent)){let r=h(e.firstChild,t,e,n,i,a,u),o=!1;for(;r;){pn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!o&&(s("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),o=!0);const t=r;r=r.nextSibling,l(t)}}else 8&p&&e.textContent!==t.children&&(pn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Hydration text content mismatch on",e,`\n - rendered on server: ${e.textContent}\n - expected on client: ${t.children}`),e.textContent=t.children);if(f)if(v||!u||48&d)for(const t in f)(v&&(t.endsWith("value")||"indeterminate"===t)||(0,o.isOn)(t)&&!(0,o.isReservedProp)(t)||"."===t[0])&&r(e,t,null,f[t],void 0,void 0,n);else f.onClick&&r(e,"onClick",null,f.onClick,void 0,void 0,n);(c=f&&f.onVnodeBeforeMount)&&cr(c,n,t),m&&Te(t,null,n,"beforeMount"),((c=f&&f.onVnodeMounted)||m||b)&&ce((()=>{c&&cr(c,n,t),b&&g.enter(e),m&&Te(t,null,n,"mounted")}),i)}return e.nextSibling},h=(e,t,r,o,i,a,u)=>{u=u||!!t.dynamicChildren;const l=t.children,c=l.length;let f=!1;for(let t=0;t<c;t++){const c=u?l[t]:l[t]=sr(l[t]);if(e)e=d(e,c,o,i,a,u);else{if(c.type===Pn&&!c.children)continue;pn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&!f&&(s("Hydration children mismatch on",r,"\nServer rendered element contains fewer child nodes than client vdom."),f=!0),n(null,c,r,null,o,i,hn(r),a)}}return e},m=(e,t,n,r,o,i)=>{const{slotScopeIds:s}=t;s&&(o=o?o.concat(s):s);const l=u(e),d=h(a(e),t,l,n,r,o,i);return d&&mn(d)&&"]"===d.data?a(t.anchor=d):(pn=!0,c(t.anchor=f("]"),l,d),d)},g=(e,t,r,o,i,c)=>{if(pn=!0,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":mn(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),t.el=null,c){const t=v(e);for(;;){const n=a(e);if(!n||n===t)break;l(n)}}const f=a(e),d=u(e);return l(e),n(null,t,d,f,r,o,hn(d),i),f},v=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=a(e))&&mn(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return a(e);r--}return e},_=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let o=n;for(;o;)o.vnode.el===t&&(o.vnode.el=o.subTree.el=e),o=o.parent},y=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&s("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),C(),void(t._vnode=e);pn=!1,d(t.firstChild,e,null,null,null),C(),t._vnode=e,pn&&console.error("Hydration completed but contains mismatches.")},d]}const vn=ce;function _n(e){return bn(e)}function yn(e){return bn(e,gn)}function bn(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&((0,o.getGlobalThis)().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),(0,o.getGlobalThis)().__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:a,createText:u,createComment:l,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:h=o.NOOP,insertStaticContent:m}=e,_=(e,t,n,r=null,o=null,i=null,s=void 0,a=null,u=!!t.dynamicChildren)=>{if(e===t)return;e&&!Gn(e,t)&&(r=K(e),z(e,o,i,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);const{type:l,ref:c,shapeFlag:f}=t;switch(l){case Pn:y(e,t,n,r);break;case Dn:b(e,t,n,r);break;case Mn:null==e&&E(t,n,r,s);break;case Rn:L(e,t,n,r,o,i,s,a,u);break;default:1&f?w(e,t,n,r,o,i,s,a,u):6&f?R(e,t,n,r,o,i,s,a,u):(64&f||128&f)&&l.process(e,t,n,r,o,i,s,a,u,ee)}null!=c&&o&&dn(c,e&&e.ref,i,t||e,!t)},y=(e,t,r,o)=>{if(null==e)n(t.el=u(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},b=(e,t,r,o)=>{null==e?n(t.el=l(t.children||""),r,o):t.el=e.el},E=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},w=(e,t,n,r,o,i,s,a,u)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?S(t,n,r,o,i,s,a,u):A(e,t,o,i,s,a,u)},S=(e,t,r,i,u,l,c,d)=>{let p,h;const{props:m,shapeFlag:g,transition:v,dirs:_}=e;if(p=e.el=a(e.type,l,m&&m.is,m),8&g?f(p,e.children):16&g&&x(e.children,p,null,i,u,En(e,l),c,d),_&&Te(e,null,i,"created"),O(p,e,e.scopeId,c,i),m){for(const t in m)"value"===t||(0,o.isReservedProp)(t)||s(p,t,null,m[t],l,e.children,i,u,J);"value"in m&&s(p,"value",null,m.value,l),(h=m.onVnodeBeforeMount)&&cr(h,i,e)}_&&Te(e,null,i,"beforeMount");const y=Sn(u,v);y&&v.beforeEnter(p),n(p,t,r),((h=m&&m.onVnodeMounted)||y||_)&&vn((()=>{h&&cr(h,i,e),y&&v.enter(p),_&&Te(e,null,i,"mounted")}),u)},O=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t<r.length;t++)h(e,r[t]);if(o&&t===o.subTree){const t=o.vnode;O(e,t,t.scopeId,t.slotScopeIds,o.parent)}},x=(e,t,n,r,o,i,s,a,u=0)=>{for(let l=u;l<e.length;l++){const u=e[l]=a?ar(e[l]):sr(e[l]);_(null,u,t,n,r,o,i,s,a)}},A=(e,t,n,r,i,a,u)=>{const l=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const h=e.props||o.EMPTY_OBJ,m=t.props||o.EMPTY_OBJ;let g;if(n&&wn(n,!1),(g=m.onVnodeBeforeUpdate)&&cr(g,n,t,e),p&&Te(t,e,n,"beforeUpdate"),n&&wn(n,!0),d?k(e.dynamicChildren,d,l,n,r,En(t,i),a):u||j(e,t,l,null,n,r,En(t,i),a,!1),c>0){if(16&c)I(l,t,h,m,n,r,i);else if(2&c&&h.class!==m.class&&s(l,"class",null,m.class,i),4&c&&s(l,"style",h.style,m.style,i),8&c){const o=t.dynamicProps;for(let t=0;t<o.length;t++){const a=o[t],u=h[a],c=m[a];c===u&&"value"!==a||s(l,a,u,c,i,e.children,n,r,J)}}1&c&&e.children!==t.children&&f(l,t.children)}else u||null!=d||I(l,t,h,m,n,r,i);((g=m.onVnodeUpdated)||p)&&vn((()=>{g&&cr(g,n,t,e),p&&Te(t,e,n,"updated")}),r)},k=(e,t,n,r,o,i,s)=>{for(let a=0;a<t.length;a++){const u=e[a],l=t[a],c=u.el&&(u.type===Rn||!Gn(u,l)||70&u.shapeFlag)?d(u.el):n;_(u,l,c,null,r,o,i,s,!0)}},I=(e,t,n,r,i,a,u)=>{if(n!==r){if(n!==o.EMPTY_OBJ)for(const l in n)(0,o.isReservedProp)(l)||l in r||s(e,l,n[l],null,u,t.children,i,a,J);for(const l in r){if((0,o.isReservedProp)(l))continue;const c=r[l],f=n[l];c!==f&&"value"!==l&&s(e,l,f,c,u,t.children,i,a,J)}"value"in r&&s(e,"value",n.value,r.value,u)}},L=(e,t,r,o,i,s,a,l,c)=>{const f=t.el=e?e.el:u(""),d=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(f,r,o),n(d,r,o),x(t.children||[],r,d,i,s,a,l,c)):p>0&&64&p&&h&&e.dynamicChildren?(k(e.dynamicChildren,h,r,i,s,a,l),(null!=t.key||i&&t===i.subTree)&&Tn(e,t,!0)):j(e,t,r,d,i,s,a,l,c)},R=(e,t,n,r,o,i,s,a,u)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,s,u):P(t,n,r,o,i,s,u):D(e,t,u)},P=(e,t,n,r,o,i,s)=>{const a=e.component=pr(e,r,o);if(Ve(e)&&(a.ctx.renderer=ee),Tr(a),a.asyncDep){if(o&&o.registerDep(a,M),!e.el){const e=a.subTree=er(Dn);b(null,e,t,n)}}else M(a,e,t,n,o,i,s)},D=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:u}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&u>=0))return!(!o&&!a||a&&a.$stable)||r!==s&&(r?!s||G(r,s,l):!!s);if(1024&u)return!0;if(16&u)return r?G(r,s,l):!!s;if(8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==r[n]&&!F(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void U(r,t,n);r.next=t,function(e){const t=g.indexOf(e);t>v&&g.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},M=(e,t,n,i,s,a,u)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:i,vnode:c}=e;{const n=On(e);if(n)return t&&(t.el=c.el,U(e,t,u)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let f,p=t;wn(e,!1),t?(t.el=c.el,U(e,t,u)):t=c,n&&(0,o.invokeArrayFns)(n),(f=t.props&&t.props.onVnodeBeforeUpdate)&&cr(f,i,t,c),wn(e,!0);const h=H(e),m=e.subTree;e.subTree=h,_(m,h,d(m.el),K(m),e,s,a),t.el=h.el,null===p&&q(e,h.el),r&&vn(r,s),(f=t.props&&t.props.onVnodeUpdated)&&vn((()=>cr(f,i,t,c)),s)}else{let r;const{el:u,props:l}=t,{bm:c,m:f,parent:d}=e,p=Ue(t);if(wn(e,!1),c&&(0,o.invokeArrayFns)(c),!p&&(r=l&&l.onVnodeBeforeMount)&&cr(r,d,t),wn(e,!0),u&&ne){const n=()=>{e.subTree=H(e),ne(u,e.subTree,e,s,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const r=e.subTree=H(e);_(null,r,n,i,e,s,a),t.el=r.el}if(f&&vn(f,s),!p&&(r=l&&l.onVnodeMounted)){const e=t;vn((()=>cr(r,d,e)),s)}(256&t.shapeFlag||d&&Ue(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&vn(e.a,s),e.isMounted=!0,t=n=i=null}},c=e.effect=new r.X2(l,o.NOOP,(()=>T(f)),e.scope),f=e.update=()=>{c.dirty&&c.run()};f.id=e.uid,wn(e,!0),f()},U=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:a,vnode:{patchFlag:u}}=e,l=(0,r.ux)(s),[c]=e.propsOptions;let f=!1;if(!(i||u>0)||16&u){let r;Kt(e,t,s,a)&&(f=!0);for(const i in l)t&&((0,o.hasOwn)(t,i)||(r=(0,o.hyphenate)(i))!==i&&(0,o.hasOwn)(t,r))||(c?!n||void 0===n[i]&&void 0===n[r]||(s[i]=Qt(c,l,i,void 0,e,!0)):delete s[i]);if(a!==l)for(const e in a)t&&(0,o.hasOwn)(t,e)||(delete a[e],f=!0)}else if(8&u){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let i=n[r];if(F(e.emitsOptions,i))continue;const u=t[i];if(c)if((0,o.hasOwn)(a,i))u!==a[i]&&(a[i]=u,f=!0);else{const t=(0,o.camelize)(i);s[t]=Qt(c,l,t,u,e,!1)}else u!==a[i]&&(a[i]=u,f=!0)}}f&&(0,r.hZ)(e,"set","$attrs")}(e,t.props,i,n),fn(e,t.children,n),(0,r.C4)(),N(e),(0,r.bl)()},j=(e,t,n,r,o,i,s,a,u=!1)=>{const l=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void V(l,d,n,r,o,i,s,a,u);if(256&p)return void B(l,d,n,r,o,i,s,a,u)}8&h?(16&c&&J(l,o,i),d!==l&&f(n,d)):16&c?16&h?V(l,d,n,r,o,i,s,a,u):J(l,o,i,!0):(8&c&&f(n,""),16&h&&x(d,n,r,o,i,s,a,u))},B=(e,t,n,r,i,s,a,u,l)=>{e=e||o.EMPTY_ARR,t=t||o.EMPTY_ARR;const c=e.length,f=t.length,d=Math.min(c,f);let p;for(p=0;p<d;p++){const r=t[p]=l?ar(t[p]):sr(t[p]);_(e[p],r,n,null,i,s,a,u,l)}c>f?J(e,i,s,!0,!1,d):x(t,n,r,i,s,a,u,l,d)},V=(e,t,n,r,i,s,a,u,l)=>{let c=0;const f=t.length;let d=e.length-1,p=f-1;for(;c<=d&&c<=p;){const r=e[c],o=t[c]=l?ar(t[c]):sr(t[c]);if(!Gn(r,o))break;_(r,o,n,null,i,s,a,u,l),c++}for(;c<=d&&c<=p;){const r=e[d],o=t[p]=l?ar(t[p]):sr(t[p]);if(!Gn(r,o))break;_(r,o,n,null,i,s,a,u,l),d--,p--}if(c>d){if(c<=p){const e=p+1,o=e<f?t[e].el:r;for(;c<=p;)_(null,t[c]=l?ar(t[c]):sr(t[c]),n,o,i,s,a,u,l),c++}}else if(c>p)for(;c<=d;)z(e[c],i,s,!0),c++;else{const h=c,m=c,g=new Map;for(c=m;c<=p;c++){const e=t[c]=l?ar(t[c]):sr(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const b=p-m+1;let E=!1,w=0;const S=new Array(b);for(c=0;c<b;c++)S[c]=0;for(c=h;c<=d;c++){const r=e[c];if(y>=b){z(r,i,s,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(v=m;v<=p;v++)if(0===S[v-m]&&Gn(r,t[v])){o=v;break}void 0===o?z(r,i,s,!0):(S[o-m]=c+1,o>=w?w=o:E=!0,_(r,t[o],n,null,i,s,a,u,l),y++)}const T=E?function(e){const t=e.slice(),n=[0];let r,o,i,s,a;const u=e.length;for(r=0;r<u;r++){const u=e[r];if(0!==u){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<u?i=a+1:s=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}(S):o.EMPTY_ARR;for(v=T.length-1,c=b-1;c>=0;c--){const e=m+c,o=t[e],d=e+1<f?t[e+1].el:r;0===S[c]?_(null,o,n,d,i,s,a,u,l):E&&(v<0||c!==T[v]?$(o,n,d,2):v--)}}},$=(e,t,r,o,i=null)=>{const{el:s,type:a,transition:u,children:l,shapeFlag:c}=e;if(6&c)$(e.component.subTree,t,r,o);else if(128&c)e.suspense.move(t,r,o);else if(64&c)a.move(e,t,r,ee);else if(a!==Rn)if(a!==Mn)if(2!==o&&1&c&&u)if(0===o)u.beforeEnter(s),n(s,t,r),vn((()=>u.enter(s)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=u,a=()=>n(s,t,r),l=()=>{e(s,(()=>{a(),i&&i()}))};o?o(s,a,l):l()}else n(s,t,r);else(({el:e,anchor:t},r,o)=>{let i;for(;e&&e!==t;)i=p(e),n(e,r,o),e=i;n(t,r,o)})(e,t,r);else{n(s,t,r);for(let e=0;e<l.length;e++)$(l[e],t,r,o);n(e.anchor,t,r)}},z=(e,t,n,r=!1,o=!1)=>{const{type:i,props:s,ref:a,children:u,dynamicChildren:l,shapeFlag:c,patchFlag:f,dirs:d}=e;if(null!=a&&dn(a,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&d,h=!Ue(e);let m;if(h&&(m=s&&s.onVnodeBeforeUnmount)&&cr(m,t,e),6&c)X(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&Te(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,ee,r):l&&(i!==Rn||f>0&&64&f)?J(l,t,n,!1,!0):(i===Rn&&384&f||!o&&16&c)&&J(u,t,n),r&&W(e)}(h&&(m=s&&s.onVnodeUnmounted)||p)&&vn((()=>{m&&cr(m,t,e),p&&Te(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Rn)return void Y(n,r);if(t===Mn)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),i(e),e=n;i(t)})(e);const s=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},Y=(e,t)=>{let n;for(;e!==t;)n=p(e),i(e),e=n;i(t)},X=(e,t,n)=>{const{bum:r,scope:i,update:s,subTree:a,um:u}=e;r&&(0,o.invokeArrayFns)(r),i.stop(),s&&(s.active=!1,z(a,e,t,n)),u&&vn(u,t),vn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},J=(e,t,n,r=!1,o=!1,i=0)=>{for(let s=i;s<e.length;s++)z(e[s],t,n,r,o)},K=e=>6&e.shapeFlag?K(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el);let Q=!1;const Z=(e,t,n)=>{null==e?t._vnode&&z(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),Q||(Q=!0,N(),C(),Q=!1),t._vnode=e},ee={p:_,um:z,m:$,r:W,mt:P,mc:x,pc:j,pbc:k,n:K,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:Z,hydrate:te,createApp:Yt(Z,te)}}function En({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function wn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Sn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tn(e,t,n=!1){const r=e.children,i=t.children;if((0,o.isArray)(r)&&(0,o.isArray)(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=ar(i[e]),o.el=t.el),n||Tn(t,o)),o.type===Pn&&(o.el=t.el)}}function On(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:On(t)}const xn=e=>e&&(e.disabled||""===e.disabled),Nn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Cn=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,An=(e,t)=>{const n=e&&e.to;if((0,o.isString)(n)){if(t){return t(n)}return null}return n};function kn(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:u,children:l,props:c}=e,f=2===i;if(f&&r(s,t,n),(!f||xn(c))&&16&u)for(let e=0;e<l.length;e++)o(l[e],t,n,2);f&&r(a,t,n)}const In={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,s,a,u,l){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:m,createComment:g}}=l,v=xn(t.props);let{shapeFlag:_,children:y,dynamicChildren:b}=t;if(null==e){const e=t.el=m(""),l=t.anchor=m("");p(e,n,r),p(l,n,r);const f=t.target=An(t.props,h),d=t.targetAnchor=m("");f&&(p(d,f),"svg"===s||Nn(f)?s="svg":("mathml"===s||Cn(f))&&(s="mathml"));const g=(e,t)=>{16&_&&c(y,e,t,o,i,s,a,u)};v?g(n,l):f&&g(f,d)}else{t.el=e.el;const r=t.anchor=e.anchor,c=t.target=e.target,p=t.targetAnchor=e.targetAnchor,m=xn(e.props),g=m?n:c,_=m?r:p;if("svg"===s||Nn(c)?s="svg":("mathml"===s||Cn(c))&&(s="mathml"),b?(d(e.dynamicChildren,b,g,o,i,s,a),Tn(e,t,!0)):u||f(e,t,g,_,o,i,s,a,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):kn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=An(t.props,h);e&&kn(t,e,null,l,0)}else m&&kn(t,c,p,l,1)}Ln(t)},remove(e,t,n,r,{um:o,o:{remove:i}},s){const{shapeFlag:a,children:u,anchor:l,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),s&&i(l),16&a){const e=s||!xn(d);for(let r=0;r<u.length;r++){const i=u[r];o(i,t,n,e,!!i.dynamicChildren)}}},move:kn,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:s,parentNode:a,querySelector:u}},l){const c=t.target=An(t.props,u);if(c){const u=c._lpa||c.firstChild;if(16&t.shapeFlag)if(xn(t.props))t.anchor=l(s(e),t,a(e),n,r,o,i),t.targetAnchor=u;else{t.anchor=s(e);let a=u;for(;a;)if(a=s(a),a&&8===a.nodeType&&"teleport anchor"===a.data){t.targetAnchor=a,c._lpa=t.targetAnchor&&s(t.targetAnchor);break}l(u,t,c,n,r,o,i)}Ln(t)}return t.anchor&&s(t.anchor)}};function Ln(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Rn=Symbol.for("v-fgt"),Pn=Symbol.for("v-txt"),Dn=Symbol.for("v-cmt"),Mn=Symbol.for("v-stc"),Fn=[];let Un=null;function jn(e=!1){Fn.push(Un=e?null:[])}function Bn(){Fn.pop(),Un=Fn[Fn.length-1]||null}let Vn,$n=1;function zn(e){$n+=e}function Wn(e){return e.dynamicChildren=$n>0?Un||o.EMPTY_ARR:null,Bn(),$n>0&&Un&&Un.push(e),e}function Hn(e,t,n,r,o,i){return Wn(Zn(e,t,n,r,o,i,!0))}function Yn(e,t,n,r,o){return Wn(er(e,t,n,r,o,!0))}function Xn(e){return!!e&&!0===e.__v_isVNode}function Gn(e,t){return e.type===t.type&&e.key===t.key}function qn(e){Vn=e}const Jn="__vInternal",Kn=({key:e})=>null!=e?e:null,Qn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?(0,o.isString)(e)||(0,r.i9)(e)||(0,o.isFunction)(e)?{i:U,r:e,k:t,f:!!n}:e:null);function Zn(e,t=null,n=null,r=0,i=null,s=(e===Rn?0:1),a=!1,u=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kn(t),ref:t&&Qn(t),scopeId:j,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:U};return u?(ur(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=(0,o.isString)(n)?8:16),$n>0&&!a&&Un&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&Un.push(l),l}const er=function(e,t=null,n=null,i=0,s=null,a=!1){if(e&&e!==Z||(e=Dn),Xn(e)){const r=nr(e,t,!0);return n&&ur(r,n),$n>0&&!a&&Un&&(6&r.shapeFlag?Un[Un.indexOf(e)]=r:Un.push(r)),r.patchFlag|=-2,r}if(u=e,(0,o.isFunction)(u)&&"__vccOpts"in u&&(e=e.__vccOpts),t){t=tr(t);let{class:e,style:n}=t;e&&!(0,o.isString)(e)&&(t.class=(0,o.normalizeClass)(e)),(0,o.isObject)(n)&&((0,r.ju)(n)&&!(0,o.isArray)(n)&&(n=(0,o.extend)({},n)),t.style=(0,o.normalizeStyle)(n))}var u;return Zn(e,t,n,i,s,(0,o.isString)(e)?1:oe(e)?128:(e=>e.__isTeleport)(e)?64:(0,o.isObject)(e)?4:(0,o.isFunction)(e)?2:0,a,!0)};function tr(e){return e?(0,r.ju)(e)||Jn in e?(0,o.extend)({},e):e:null}function nr(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:a}=e,u=t?lr(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Kn(u),ref:t&&t.ref?n&&i?(0,o.isArray)(i)?i.concat(Qn(t)):[i,Qn(t)]:Qn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Rn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function rr(e=" ",t=0){return er(Pn,null,e,t)}function or(e,t){const n=er(Mn,null,e);return n.staticCount=t,n}function ir(e="",t=!1){return t?(jn(),Yn(Dn,null,e)):er(Dn,null,e)}function sr(e){return null==e||"boolean"==typeof e?er(Dn):(0,o.isArray)(e)?er(Rn,null,e.slice()):"object"==typeof e?ar(e):er(Pn,null,String(e))}function ar(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:nr(e)}function ur(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.isArray)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ur(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Jn in t?3===r&&U&&(1===U.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=U}}else(0,o.isFunction)(t)?(t={default:t,_ctx:U},n=32):(t=String(t),64&r?(n=16,t=[rr(t)]):n=8);e.children=t,e.shapeFlag|=n}function lr(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,o.normalizeClass)([t.class,r.class]));else if("style"===e)t.style=(0,o.normalizeStyle)([t.style,r.style]);else if((0,o.isOn)(e)){const n=t[e],i=r[e];!i||n===i||(0,o.isArray)(n)&&n.includes(i)||(t[e]=n?[].concat(n,i):i)}else""!==e&&(t[e]=r[e])}return t}function cr(e,t,n,r=null){d(e,t,7,[n,r])}const fr=Wt();let dr=0;function pr(e,t,n){const i=e.type,s=(t?t.appContext:e.appContext)||fr,a={uid:dr++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zt(i,s),emitsOptions:M(i,s),emit:null,emitted:null,propsDefaults:o.EMPTY_OBJ,inheritAttrs:i.inheritAttrs,ctx:o.EMPTY_OBJ,data:o.EMPTY_OBJ,props:o.EMPTY_OBJ,attrs:o.EMPTY_OBJ,slots:o.EMPTY_OBJ,refs:o.EMPTY_OBJ,setupState:o.EMPTY_OBJ,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=D.bind(null,a),e.ce&&e.ce(a),a}let hr=null;const mr=()=>hr||U;let gr,vr;{const e=(0,o.getGlobalThis)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};gr=t("__VUE_INSTANCE_SETTERS__",(e=>hr=e)),vr=t("__VUE_SSR_SETTERS__",(e=>Sr=e))}const _r=e=>{const t=hr;return gr(e),e.scope.on(),()=>{e.scope.off(),gr(t)}},yr=()=>{hr&&hr.scope.off(),gr(null)};function br(e){return 4&e.vnode.shapeFlag}let Er,wr,Sr=!1;function Tr(e,t=!1){t&&vr(t);const{props:n,children:i}=e.vnode,s=br(e);!function(e,t,n,i=!1){const s={},a={};(0,o.def)(a,Jn,1),e.propsDefaults=Object.create(null),Kt(e,t,s,a);for(const t in e.propsOptions[0])t in s||(s[t]=void 0);n?e.props=i?s:(0,r.Gc)(s):e.type.props?e.props=s:e.props=a,e.attrs=a}(e,n,s,t),cn(e,i);const a=s?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.IG)(new Proxy(e.ctx,gt));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?Ar(e):null,s=_r(e);(0,r.C4)();const a=f(i,e,0,[e.props,n]);if((0,r.bl)(),s(),(0,o.isPromise)(a)){if(a.then(yr,yr),t)return a.then((n=>{Or(e,n,t)})).catch((t=>{p(t,e,0)}));e.asyncDep=a}else Or(e,a,t)}else Cr(e,t)}(e,t):void 0;return t&&vr(!1),a}function Or(e,t,n){(0,o.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.isObject)(t)&&(e.setupState=(0,r.Pr)(t)),Cr(e,n)}function xr(e){Er=e,wr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,vt))}}const Nr=()=>!Er;function Cr(e,t,n){const i=e.type;if(!e.render){if(!t&&Er&&!i.render){const t=i.template||Mt(e).template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:s,compilerOptions:a}=i,u=(0,o.extend)((0,o.extend)({isCustomElement:n,delimiters:s},r),a);i.render=Er(t,u)}}e.render=i.render||o.NOOP,wr&&wr(e)}{const t=_r(e);(0,r.C4)();try{!function(e){const t=Mt(e),n=e.proxy,i=e.ctx;Rt=!1,t.beforeCreate&&Pt(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:u,watch:l,provide:c,inject:f,created:d,beforeMount:p,mounted:h,beforeUpdate:m,updated:g,activated:v,deactivated:_,beforeDestroy:y,beforeUnmount:b,destroyed:E,unmounted:w,render:S,renderTracked:T,renderTriggered:O,errorCaptured:x,serverPrefetch:N,expose:C,inheritAttrs:A,components:k,directives:I,filters:L}=t;if(f&&function(e,t,n=o.NOOP){(0,o.isArray)(e)&&(e=Bt(e));for(const n in e){const i=e[n];let s;s=(0,o.isObject)(i)?"default"in i?qt(i.from||n,i.default,!0):qt(i.from||n):qt(i),(0,r.i9)(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(f,i,null),u)for(const e in u){const t=u[e];(0,o.isFunction)(t)&&(i[e]=t.bind(n))}if(s){const t=s.call(n,n);(0,o.isObject)(t)&&(e.data=(0,r.Kh)(t))}if(Rt=!0,a)for(const e in a){const t=a[e],r=(0,o.isFunction)(t)?t.bind(n,n):(0,o.isFunction)(t.get)?t.get.bind(n,n):o.NOOP,s=!(0,o.isFunction)(t)&&(0,o.isFunction)(t.set)?t.set.bind(n):o.NOOP,u=Dr({get:r,set:s});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>u.value,set:e=>u.value=e})}if(l)for(const e in l)Dt(l[e],i,n,e);if(c){const e=(0,o.isFunction)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Gt(t,e[t])}))}function R(e,t){(0,o.isArray)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Pt(d,e,"c"),R(Qe,p),R(Ze,h),R(et,m),R(tt,g),R(We,v),R(He,_),R(at,x),R(st,T),R(it,O),R(nt,b),R(rt,w),R(ot,N),(0,o.isArray)(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===o.NOOP&&(e.render=S),null!=A&&(e.inheritAttrs=A),k&&(e.components=k),I&&(e.directives=I)}(e)}finally{(0,r.bl)(),t()}}}function Ar(e){return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return(0,r.u4)(e,"get","$attrs"),t[n]}}))}(e)},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function kr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.Pr)((0,r.IG)(e.exposed)),{get(t,n){return n in t?t[n]:n in ht?ht[n](e):void 0},has(e,t){return t in e||t in ht}}))}const Ir=/(?:^|[-_])(\w)/g,Lr=e=>e.replace(Ir,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Rr(e,t=!0){return(0,o.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}function Pr(e,t,n=!1){let r=Rr(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?Lr(r):n?"App":"Anonymous"}const Dr=(e,t)=>(0,r.EW)(e,t,Sr);function Mr(e,t,n=o.EMPTY_OBJ){const i=mr(),s=(0,o.camelize)(t),a=(0,o.hyphenate)(t),u=(0,r.rY)(((r,u)=>{let l;return ge((()=>{const n=e[t];(0,o.hasChanged)(l,n)&&(l=n,u())})),{get(){return r(),n.get?n.get(l):l},set(e){const r=i.vnode.props;r&&(t in r||s in r||a in r)&&(`onUpdate:${t}`in r||`onUpdate:${s}`in r||`onUpdate:${a}`in r)||!(0,o.hasChanged)(e,l)||(l=e,u()),i.emit(`update:${t}`,n.set?n.set(e):e)}}})),l="modelValue"===t?"modelModifiers":`${t}Modifiers`;return u[Symbol.iterator]=()=>{let t=0;return{next(){return t<2?{value:t++?e[l]||{}:u,done:!1}:{done:!0}}}},u}function Fr(e,t,n){const r=arguments.length;return 2===r?(0,o.isObject)(t)&&!(0,o.isArray)(t)?Xn(t)?er(e,null,[t]):er(e,t):er(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Xn(n)&&(n=[n]),er(e,t,n))}function Ur(){}function jr(e,t,n,r){const o=n[r];if(o&&Br(o,e))return o;const i=t();return i.memo=e.slice(),n[r]=i}function Br(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if((0,o.hasChanged)(n[e],t[e]))return!1;return $n>0&&Un&&Un.push(e),!0}const Vr="3.4.20",$r=o.NOOP,zr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."},Wr=L,Hr=function e(t,n){var r,o;L=t,L?(L.enabled=!0,R.forEach((({event:e,args:t})=>L.emit(e,...t))),R=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(o=null==(r=window.navigator)?void 0:r.userAgent)?void 0:o.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{L||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,P=!0,R=[])}),3e3)):(P=!0,R=[])},Yr={createComponentInstance:pr,setupComponent:Tr,renderComponentRoot:H,setCurrentRenderingInstance:B,isVNode:Xn,normalizeVNode:sr},Xr=null,Gr=null,qr=null},7416:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseTransition:function(){return r.pR},BaseTransitionPropsValidators:function(){return r.QP},Comment:function(){return r.Mw},DeprecationTypes:function(){return r.aT},EffectScope:function(){return r.yC},ErrorCodes:function(){return r.tG},ErrorTypeStrings:function(){return r.ZQ},Fragment:function(){return r.FK},KeepAlive:function(){return r.PR},ReactiveEffect:function(){return r.X2},Static:function(){return r.jC},Suspense:function(){return r.tY},Teleport:function(){return r.Im},Text:function(){return r.EY},TrackOpTypes:function(){return r.Ul},Transition:function(){return d},TransitionGroup:function(){return oe},TriggerOpTypes:function(){return r.PP},VueElement:function(){return Q},assertNumber:function(){return r.U4},callWithAsyncErrorHandling:function(){return r.qL},callWithErrorHandling:function(){return r.gh},camelize:function(){return r.PT},capitalize:function(){return r.ZH},cloneVNode:function(){return r.E3},compatUtils:function(){return r.Y5},computed:function(){return r.EW},createApp:function(){return De},createBlock:function(){return r.Wv},createCommentVNode:function(){return r.Q3},createElementBlock:function(){return r.CE},createElementVNode:function(){return r.Lk},createHydrationRenderer:function(){return r.ci},createPropsRestProxy:function(){return r.bn},createRenderer:function(){return r.K9},createSSRApp:function(){return Me},createSlots:function(){return r.eX},createStaticVNode:function(){return r.Fv},createTextVNode:function(){return r.eW},createVNode:function(){return r.bF},customRef:function(){return r.rY},defineAsyncComponent:function(){return r.$V},defineComponent:function(){return r.pM},defineCustomElement:function(){return q},defineEmits:function(){return r.qP},defineExpose:function(){return r.wk},defineModel:function(){return r.NP},defineOptions:function(){return r.GM},defineProps:function(){return r.Yj},defineSSRCustomElement:function(){return J},defineSlots:function(){return r.Lu},devtools:function(){return r.lt},effect:function(){return r.QZ},effectScope:function(){return r.uY},getCurrentInstance:function(){return r.nI},getCurrentScope:function(){return r.o5},getTransitionRawChildren:function(){return r.Df},guardReactiveProps:function(){return r.Ng},h:function(){return r.h},handleError:function(){return r.H4},hasInjectionContext:function(){return r.PS},hydrate:function(){return Pe},initCustomFormatter:function(){return r.y$},initDirectivesForSSR:function(){return Be},inject:function(){return r.WQ},isMemoSame:function(){return r.Bs},isProxy:function(){return r.ju},isReactive:function(){return r.g8},isReadonly:function(){return r.Tm},isRef:function(){return r.i9},isRuntimeOnly:function(){return r.dA},isShallow:function(){return r.fE},isVNode:function(){return r.vv},markRaw:function(){return r.IG},mergeDefaults:function(){return r.HF},mergeModels:function(){return r.zz},mergeProps:function(){return r.v6},nextTick:function(){return r.dY},normalizeClass:function(){return r.C4},normalizeProps:function(){return r._B},normalizeStyle:function(){return r.Tr},onActivated:function(){return r.n},onBeforeMount:function(){return r.KC},onBeforeUnmount:function(){return r.xo},onBeforeUpdate:function(){return r.Ic},onDeactivated:function(){return r.Y4},onErrorCaptured:function(){return r.qG},onMounted:function(){return r.sV},onRenderTracked:function(){return r.qR},onRenderTriggered:function(){return r.bj},onScopeDispose:function(){return r.jr},onServerPrefetch:function(){return r.SS},onUnmounted:function(){return r.hi},onUpdated:function(){return r.$u},openBlock:function(){return r.uX},popScopeId:function(){return r.jt},provide:function(){return r.Gt},proxyRefs:function(){return r.Pr},pushScopeId:function(){return r.Qi},queuePostFlushCb:function(){return r.Dl},reactive:function(){return r.Kh},readonly:function(){return r.tB},ref:function(){return r.KR},registerRuntimeCompiler:function(){return r.tC},render:function(){return Re},renderList:function(){return r.pI},renderSlot:function(){return r.RG},resolveComponent:function(){return r.g2},resolveDirective:function(){return r.gN},resolveDynamicComponent:function(){return r.$y},resolveFilter:function(){return r.LJ},resolveTransitionHooks:function(){return r.OW},setBlockTracking:function(){return r.Vq},setDevtoolsHook:function(){return r.iD},setTransitionHooks:function(){return r.MZ},shallowReactive:function(){return r.Gc},shallowReadonly:function(){return r.nD},shallowRef:function(){return r.IJ},ssrContextKey:function(){return r.Fw},ssrUtils:function(){return r.Gw},stop:function(){return r.ds},toDisplayString:function(){return r.v_},toHandlerKey:function(){return r.rU},toHandlers:function(){return r.Tb},toRaw:function(){return r.ux},toRef:function(){return r.lW},toRefs:function(){return r.QW},toValue:function(){return r.BA},transformVNodeArgs:function(){return r.gW},triggerRef:function(){return r.mu},unref:function(){return r.R1},useAttrs:function(){return r.OA},useCssModule:function(){return Z},useCssVars:function(){return R},useModel:function(){return r.fn},useSSRContext:function(){return r.LM},useSlots:function(){return r.Ht},useTransitionState:function(){return r.Gy},vModelCheckbox:function(){return pe},vModelDynamic:function(){return be},vModelRadio:function(){return me},vModelSelect:function(){return ge},vModelText:function(){return de},vShow:function(){return k},version:function(){return r.rE},warn:function(){return r.R8},watch:function(){return r.wB},watchEffect:function(){return r.nT},watchPostEffect:function(){return r.p9},watchSyncEffect:function(){return r.U_},withAsyncContext:function(){return r.E},withCtx:function(){return r.k6},withDefaults:function(){return r.rO},withDirectives:function(){return r.bo},withKeys:function(){return Ne},withMemo:function(){return r.bU},withModifiers:function(){return Oe},withScopeId:function(){return r.YY}});var r=n(822),o=n(4526),i=n(4390);const s="undefined"!=typeof document?document:null,a=s&&s.createElement("template"),u={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o="svg"===t?s.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?s.createElementNS("http://www.w3.org/1998/Math/MathML",e):s.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>s.createTextNode(e),createComment:e=>s.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>s.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{a.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const o=a.content;if("svg"===r||"mathml"===r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},l="transition",c="animation",f=Symbol("_vtc"),d=(e,{slots:t})=>(0,r.h)(r.pR,v(e),t);d.displayName="Transition";const p={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},h=d.props=(0,o.extend)({},r.QP,p),m=(e,t=[])=>{(0,o.isArray)(e)?e.forEach((e=>e(...t))):e&&e(...t)},g=e=>!!e&&((0,o.isArray)(e)?e.some((e=>e.length>1)):e.length>1);function v(e){const t={};for(const n in e)n in p||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=a,appearToClass:f=u,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,w=function(e){if(null==e)return null;if((0,o.isObject)(e))return[_(e.enter),_(e.leave)];{const t=_(e);return[t,t]}}(i),T=w&&w[0],O=w&&w[1],{onBeforeEnter:x,onEnter:C,onEnterCancelled:A,onLeave:k,onLeaveCancelled:I,onBeforeAppear:L=x,onAppear:R=C,onAppearCancelled:P=A}=t,D=(e,t,n)=>{b(e,t?f:u),b(e,t?c:a),n&&n()},M=(e,t)=>{e._isLeaving=!1,b(e,d),b(e,v),b(e,h),t&&t()},F=e=>(t,n)=>{const o=e?R:C,i=()=>D(t,e,n);m(o,[t,i]),E((()=>{b(t,e?l:s),y(t,e?f:u),g(o)||S(t,r,T,i)}))};return(0,o.extend)(t,{onBeforeEnter(e){m(x,[e]),y(e,s),y(e,a)},onBeforeAppear(e){m(L,[e]),y(e,l),y(e,c)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>M(e,t);y(e,d),N(),y(e,h),E((()=>{e._isLeaving&&(b(e,d),y(e,v),g(k)||S(e,r,O,n))})),m(k,[e,n])},onEnterCancelled(e){D(e,!1),m(A,[e])},onAppearCancelled(e){D(e,!0),m(P,[e])},onLeaveCancelled(e){M(e),m(I,[e])}})}function _(e){return(0,o.toNumber)(e)}function y(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[f]||(e[f]=new Set)).add(t)}function b(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[f];n&&(n.delete(t),n.size||(e[f]=void 0))}function E(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let w=0;function S(e,t,n,r){const o=e._endId=++w,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:u}=T(e,t);if(!s)return r();const l=s+"end";let c=0;const f=()=>{e.removeEventListener(l,d),i()},d=t=>{t.target===e&&++c>=u&&f()};setTimeout((()=>{c<u&&f()}),a+1),e.addEventListener(l,d)}function T(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${l}Delay`),i=r(`${l}Duration`),s=O(o,i),a=r(`${c}Delay`),u=r(`${c}Duration`),f=O(a,u);let d=null,p=0,h=0;return t===l?s>0&&(d=l,p=s,h=i.length):t===c?f>0&&(d=c,p=f,h=u.length):(p=Math.max(s,f),d=p>0?s>f?l:c:null,h=d?d===l?i.length:u.length:0),{type:d,timeout:p,propCount:h,hasTransform:d===l&&/\b(transform|all)(,|$)/.test(r(`${l}Property`).toString())}}function O(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>x(t)+x(e[n]))))}function x(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function N(){return document.body.offsetHeight}const C=Symbol("_vod"),A=Symbol("_vsh"),k={beforeMount(e,{value:t},{transition:n}){e[C]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):I(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),I(e,!0),r.enter(e)):r.leave(e,(()=>{I(e,!1)})):I(e,t))},beforeUnmount(e,{value:t}){I(e,t)}};function I(e,t){e.style.display=t?e[C]:"none",e[A]=!t}const L=Symbol("");function R(e){const t=(0,r.nI)();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>D(e,n)))},o=()=>{const r=e(t.proxy);P(t.subTree,r),n(r)};(0,r.p9)(o),(0,r.sV)((()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,r.hi)((()=>e.disconnect()))}))}function P(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{P(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)D(e.el,t);else if(e.type===r.FK)e.children.forEach((e=>P(e,t)));else if(e.type===r.jC){let{el:n,anchor:r}=e;for(;n&&(D(n,t),n!==r);)n=n.nextSibling}}function D(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[L]=r}}const M=/(^|;)\s*display\s*:/,F=/\s*!important$/;function U(e,t,n){if((0,o.isArray)(n))n.forEach((n=>U(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=B[t];if(n)return n;let r=(0,o.camelize)(t);if("filter"!==r&&r in e)return B[t]=r;r=(0,o.capitalize)(r);for(let n=0;n<j.length;n++){const o=j[n]+r;if(o in e)return B[t]=o}return t}(e,t);F.test(n)?e.setProperty((0,o.hyphenate)(r),n.replace(F,""),"important"):e[r]=n}}const j=["Webkit","Moz","ms"],B={},V="http://www.w3.org/1999/xlink";function $(e,t,n,r){e.addEventListener(t,n,r)}const z=Symbol("_vei");const W=/(?:Once|Passive|Capture)$/;let H=0;const Y=Promise.resolve(),X=()=>H||(Y.then((()=>H=0)),H=Date.now()),G=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;function q(e,t){const n=(0,r.pM)(e);class o extends Q{constructor(e){super(n,e,t)}}return o.def=n,o}const J=e=>q(e,Pe),K="undefined"!=typeof HTMLElement?HTMLElement:class{};class Q extends K{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),(0,r.dY)((()=>{this._connected||(Re(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:r}=e;let i;if(n&&!(0,o.isArray)(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=(0,o.toNumber)(this._props[e])),(i||(i=Object.create(null)))[(0,o.camelize)(e)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(r),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=(0,o.isArray)(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(const e of n.map(o.camelize))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.getAttribute(e);const n=(0,o.camelize)(e);this._numberProps&&this._numberProps[n]&&(t=(0,o.toNumber)(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,o.hyphenate)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,o.hyphenate)(e),t+""):t||this.removeAttribute((0,o.hyphenate)(e))))}_update(){Re(this._createVNode(),this.shadowRoot)}_createVNode(){const e=(0,r.bF)(this._def,(0,o.extend)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),(0,o.hyphenate)(e)!==e&&t((0,o.hyphenate)(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof Q){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Z(e="$style"){{const t=(0,r.nI)();if(!t)return o.EMPTY_OBJ;const n=t.type.__cssModules;if(!n)return o.EMPTY_OBJ;return n[e]||o.EMPTY_OBJ}}const ee=new WeakMap,te=new WeakMap,ne=Symbol("_moveCb"),re=Symbol("_enterCb"),oe={name:"TransitionGroup",props:(0,o.extend)({},h,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.nI)(),o=(0,r.Gy)();let s,a;return(0,r.$u)((()=>{if(!s.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),o=e[f];o&&o.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=T(r);return i.removeChild(r),s}(s[0].el,n.vnode.el,t))return;s.forEach(ie),s.forEach(se);const r=s.filter(ae);N(),r.forEach((e=>{const n=e.el,r=n.style;y(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n[ne]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n[ne]=null,b(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const u=(0,i.ux)(e),l=v(u);let c=u.tag||r.FK;s=a,a=t.default?(0,r.Df)(t.default()):[];for(let e=0;e<a.length;e++){const t=a[e];null!=t.key&&(0,r.MZ)(t,(0,r.OW)(t,l,o,n))}if(s)for(let e=0;e<s.length;e++){const t=s[e];(0,r.MZ)(t,(0,r.OW)(t,l,o,n)),ee.set(t,t.el.getBoundingClientRect())}return(0,r.bF)(c,null,a)}}};function ie(e){const t=e.el;t[ne]&&t[ne](),t[re]&&t[re]()}function se(e){te.set(e,e.el.getBoundingClientRect())}function ae(e){const t=ee.get(e),n=te.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}const ue=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,o.isArray)(t)?e=>(0,o.invokeArrayFns)(t,e):t};function le(e){e.target.composing=!0}function ce(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const fe=Symbol("_assign"),de={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[fe]=ue(i);const s=r||i.props&&"number"===i.props.type;$(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),s&&(r=(0,o.looseToNumber)(r)),e[fe](r)})),n&&$(e,"change",(()=>{e.value=e.value.trim()})),t||($(e,"compositionstart",le),$(e,"compositionend",ce),$(e,"change",ce))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},s){if(e[fe]=ue(s),e.composing)return;const a=null==t?"":t;if((i||"number"===e.type?(0,o.looseToNumber)(e.value):e.value)!==a){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===a)return}e.value=a}}},pe={deep:!0,created(e,t,n){e[fe]=ue(n),$(e,"change",(()=>{const t=e._modelValue,n=_e(e),r=e.checked,i=e[fe];if((0,o.isArray)(t)){const e=(0,o.looseIndexOf)(t,n),s=-1!==e;if(r&&!s)i(t.concat(n));else if(!r&&s){const n=[...t];n.splice(e,1),i(n)}}else if((0,o.isSet)(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ye(e,r))}))},mounted:he,beforeUpdate(e,t,n){e[fe]=ue(n),he(e,t,n)}};function he(e,{value:t,oldValue:n},r){e._modelValue=t,(0,o.isArray)(t)?e.checked=(0,o.looseIndexOf)(t,r.props.value)>-1:(0,o.isSet)(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=(0,o.looseEqual)(t,ye(e,!0)))}const me={created(e,{value:t},n){e.checked=(0,o.looseEqual)(t,n.props.value),e[fe]=ue(n),$(e,"change",(()=>{e[fe](_e(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[fe]=ue(r),t!==n&&(e.checked=(0,o.looseEqual)(t,r.props.value))}},ge={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const s=(0,o.isSet)(t);$(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,o.looseToNumber)(_e(e)):_e(e)));e[fe](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,(0,r.dY)((()=>{e._assigning=!1}))})),e[fe]=ue(i)},mounted(e,{value:t,modifiers:{number:n}}){ve(e,t,n)},beforeUpdate(e,t,n){e[fe]=ue(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ve(e,t,n)}};function ve(e,t,n){const r=e.multiple,i=(0,o.isArray)(t);if(!r||i||(0,o.isSet)(t)){for(let s=0,a=e.options.length;s<a;s++){const a=e.options[s],u=_e(a);if(r)if(i){const e=typeof u;a.selected="string"===e||"number"===e?t.includes(n?(0,o.looseToNumber)(u):u):(0,o.looseIndexOf)(t,u)>-1}else a.selected=t.has(u);else if((0,o.looseEqual)(_e(a),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function _e(e){return"_value"in e?e._value:e.value}function ye(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const be={created(e,t,n){we(e,t,n,null,"created")},mounted(e,t,n){we(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){we(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){we(e,t,n,r,"updated")}};function Ee(e,t){switch(e){case"SELECT":return ge;case"TEXTAREA":return de;default:switch(t){case"checkbox":return pe;case"radio":return me;default:return de}}}function we(e,t,n,r,o){const i=Ee(e.tagName,n.props&&n.props.type)[o];i&&i(e,t,n,r)}const Se=["ctrl","shift","alt","meta"],Te={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Se.some((n=>e[`${n}Key`]&&!t.includes(n)))},Oe=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Te[t[e]];if(r&&r(n,t))return}return e(n,...r)})},xe={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ne=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,o.hyphenate)(n.key);return t.some((e=>e===r||xe[e]===r))?e(n):void 0})},Ce=(0,o.extend)({patchProp:(e,t,n,i,s,a,u,l,c)=>{const d="svg"===s;"class"===t?function(e,t,n){const r=e[f];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,d):"style"===t?function(e,t,n){const r=e.style,i=(0,o.isString)(n);let s=!1;if(n&&!i){if(t)if((0,o.isString)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&U(r,t,"")}else for(const e in t)null==n[e]&&U(r,e,"");for(const e in n)"display"===e&&(s=!0),U(r,e,n[e])}else if(i){if(t!==n){const e=r[L];e&&(n+=";"+e),r.cssText=n,s=M.test(n)}}else t&&e.removeAttribute("style");C in e&&(e[C]=s?r.display:"",e[A]&&(r.display="none"))}(e,n,i):(0,o.isOn)(t)?(0,o.isModelListener)(t)||function(e,t,n,i,s=null){const a=e[z]||(e[z]={}),u=a[t];if(i&&u)u.value=i;else{const[n,l]=function(e){let t;if(W.test(e)){let n;for(t={};n=e.match(W);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):(0,o.hyphenate)(e.slice(2)),t]}(t);if(i){const u=a[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,r.qL)(function(e,t){if((0,o.isArray)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=X(),n}(i,s);$(e,n,u,l)}else u&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,u,l),a[t]=void 0)}}(e,t,0,i,u):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&G(t)&&(0,o.isFunction)(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!G(t)||!(0,o.isString)(n))&&t in e}(e,t,i,d))?function(e,t,n,r,i,s,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,i,s),void(e[t]=null==n?"":n);const u=e.tagName;if("value"===t&&"PROGRESS"!==u&&!u.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===u?e.getAttribute("value")||"":e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let l=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,o.includeBooleanAttr)(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,i,a,u,l,c):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(V,t.slice(6,t.length)):e.setAttributeNS(V,t,n);else{const r=(0,o.isSpecialBooleanAttr)(t);null==n||r&&!(0,o.includeBooleanAttr)(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,i,d))}},u);let Ae,ke=!1;function Ie(){return Ae||(Ae=(0,r.K9)(Ce))}function Le(){return Ae=ke?Ae:(0,r.ci)(Ce),ke=!0,Ae}const Re=(...e)=>{Ie().render(...e)},Pe=(...e)=>{Le().hydrate(...e)},De=(...e)=>{const t=Ie().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Ue(e);if(!r)return;const i=t._component;(0,o.isFunction)(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,Fe(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t},Me=(...e)=>{const t=Le().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Ue(e);if(t)return n(t,!0,Fe(t))},t};function Fe(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Ue(e){return(0,o.isString)(e)?document.querySelector(e):e}let je=!1;const Be=()=>{je||(je=!0,de.getSSRProps=({value:e})=>({value:e}),me.getSSRProps=({value:e},t)=>{if(t.props&&(0,o.looseEqual)(t.props.value,e))return{checked:!0}},pe.getSSRProps=({value:e},t)=>{if((0,o.isArray)(e)){if(t.props&&(0,o.looseIndexOf)(e,t.props.value)>-1)return{checked:!0}}else if((0,o.isSet)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},be.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Ee(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},k.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})}},4526:function(e,t,n){"use strict";function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}n.r(t),n.d(t,{EMPTY_ARR:function(){return i},EMPTY_OBJ:function(){return o},NO:function(){return a},NOOP:function(){return s},PatchFlagNames:function(){return G},PatchFlags:function(){return X},ShapeFlags:function(){return q},SlotFlags:function(){return J},camelize:function(){return R},capitalize:function(){return M},def:function(){return B},escapeHtml:function(){return xe},escapeHtmlComment:function(){return Ce},extend:function(){return c},genPropsAccessExp:function(){return Y},generateCodeFrame:function(){return te},getGlobalThis:function(){return W},hasChanged:function(){return U},hasOwn:function(){return p},hyphenate:function(){return D},includeBooleanAttr:function(){return ve},invokeArrayFns:function(){return j},isArray:function(){return h},isBooleanAttr:function(){return ge},isBuiltInDirective:function(){return k},isDate:function(){return v},isFunction:function(){return y},isGloballyAllowed:function(){return Q},isGloballyWhitelisted:function(){return Z},isHTMLTag:function(){return ce},isIntegerKey:function(){return C},isKnownHtmlAttr:function(){return we},isKnownSvgAttr:function(){return Se},isMap:function(){return m},isMathMLTag:function(){return de},isModelListener:function(){return l},isObject:function(){return w},isOn:function(){return u},isPlainObject:function(){return N},isPromise:function(){return S},isRegExp:function(){return _},isRenderableAttrValue:function(){return Te},isReservedProp:function(){return A},isSSRSafeAttrName:function(){return be},isSVGTag:function(){return fe},isSet:function(){return g},isSpecialBooleanAttr:function(){return me},isString:function(){return b},isSymbol:function(){return E},isVoidTag:function(){return pe},looseEqual:function(){return Ae},looseIndexOf:function(){return ke},looseToNumber:function(){return V},makeMap:function(){return r},normalizeClass:function(){return ue},normalizeProps:function(){return le},normalizeStyle:function(){return ne},objectToString:function(){return T},parseStringStyle:function(){return se},propsToAttrMap:function(){return Ee},remove:function(){return f},slotFlagsText:function(){return K},stringifyStyle:function(){return ae},toDisplayString:function(){return Ie},toHandlerKey:function(){return F},toNumber:function(){return $},toRawType:function(){return x},toTypeString:function(){return O}});const o={},i=[],s=()=>{},a=()=>!1,u=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith("onUpdate:"),c=Object.assign,f=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,m=e=>"[object Map]"===O(e),g=e=>"[object Set]"===O(e),v=e=>"[object Date]"===O(e),_=e=>"[object RegExp]"===O(e),y=e=>"function"==typeof e,b=e=>"string"==typeof e,E=e=>"symbol"==typeof e,w=e=>null!==e&&"object"==typeof e,S=e=>(w(e)||y(e))&&y(e.then)&&y(e.catch),T=Object.prototype.toString,O=e=>T.call(e),x=e=>O(e).slice(8,-1),N=e=>"[object Object]"===O(e),C=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=r("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),I=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},L=/-(\w)/g,R=I((e=>e.replace(L,((e,t)=>t?t.toUpperCase():"")))),P=/\B([A-Z])/g,D=I((e=>e.replace(P,"-$1").toLowerCase())),M=I((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=I((e=>e?`on${M(e)}`:"")),U=(e,t)=>!Object.is(e,t),j=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},B=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let z;const W=()=>z||(z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),H=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Y(e){return H.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}const X={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",HOISTED:-1,"-1":"HOISTED",BAIL:-2,"-2":"BAIL"},G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},q={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},J={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},K={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Q=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"),Z=Q,ee=2;function te(e,t=0,n=e.length){let r=e.split(/(\r?\n)/);const o=r.filter(((e,t)=>t%2==1));r=r.filter(((e,t)=>t%2==0));let i=0;const s=[];for(let e=0;e<r.length;e++)if(i+=r[e].length+(o[e]&&o[e].length||0),i>=t){for(let a=e-ee;a<=e+ee||n>i;a++){if(a<0||a>=r.length)continue;const u=a+1;s.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[a]}`);const l=r[a].length,c=o[a]&&o[a].length||0;if(a===e){const e=t-(i-(l+c)),r=Math.max(1,n>i?l-e:n-t);s.push(" | "+" ".repeat(e)+"^".repeat(r))}else if(a>e){if(n>i){const e=Math.max(Math.min(n-i,l),1);s.push(" | "+"^".repeat(e))}i+=l+c}}break}return s.join("\n")}function ne(e){if(h(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=b(r)?se(r):ne(r);if(o)for(const e in o)t[e]=o[e]}return t}if(b(e)||w(e))return e}const re=/;(?![^(]*\))/g,oe=/:([^]+)/,ie=/\/\*[^]*?\*\//g;function se(e){const t={};return e.replace(ie,"").split(re).forEach((e=>{if(e){const n=e.split(oe);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ae(e){let t="";if(!e||b(e))return t;for(const n in e){const r=e[n],o=n.startsWith("--")?n:D(n);(b(r)||"number"==typeof r)&&(t+=`${o}:${r};`)}return t}function ue(e){let t="";if(b(e))t=e;else if(h(e))for(let n=0;n<e.length;n++){const r=ue(e[n]);r&&(t+=r+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function le(e){if(!e)return null;let{class:t,style:n}=e;return t&&!b(t)&&(e.class=ue(t)),n&&(e.style=ne(n)),e}const ce=r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),fe=r("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),de=r("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),pe=r("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),he="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",me=r(he),ge=r(he+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ve(e){return!!e||""===e}const _e=/[>/="'\u0009\u000a\u000c\u0020]/,ye={};function be(e){if(ye.hasOwnProperty(e))return ye[e];const t=_e.test(e);return t&&console.error(`unsafe attribute name: ${e}`),ye[e]=!t}const Ee={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},we=r("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Se=r("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Te(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t}const Oe=/["'&<>]/;function xe(e){const t=""+e,n=Oe.exec(t);if(!n)return t;let r,o,i="",s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}s!==o&&(i+=t.slice(s,o)),s=o+1,i+=r}return s!==o?i+t.slice(s,o):i}const Ne=/^-?>|<!--|-->|--!>|<!-$/g;function Ce(e){return e.replace(Ne,"")}function Ae(e,t){if(e===t)return!0;let n=v(e),r=v(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=E(e),r=E(t),n||r)return e===t;if(n=h(e),r=h(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ae(e[r],t[r]);return n}(e,t);if(n=w(e),r=w(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!Ae(e[n],t[n]))return!1}}return String(e)===String(t)}function ke(e,t){return e.findIndex((e=>Ae(e,t)))}const Ie=e=>b(e)?e:null==e?"":h(e)||w(e)&&(e.toString===T||!y(e.toString))?JSON.stringify(e,Le,2):String(e),Le=(e,t)=>t&&t.__v_isRef?Le(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[Re(t,r)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Re(e)))}:E(t)?Re(t):!w(t)||h(t)||N(t)?t:String(t),Re=(e,t="")=>{var n;return E(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},4997:function(e,t,n){"use strict";n.d(t,{D3D:function(){return a},Kpk:function(){return i},Mtm:function(){return u},SSf:function(){return h},WIv:function(){return p},ZLN:function(){return o},_wB:function(){return d},cFy:function(){return s},dsF:function(){return f},qUP:function(){return c},s3U:function(){return l},ucK:function(){return m},uv5:function(){return g}});var r=n(822),o={name:"ArrowDownIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-arrow-down"},Object.assign({},o)),[(0,r.bF)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,r.bF)("polyline",{points:"19 12 12 19 5 12"})])}}},i={name:"ArrowUpIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-arrow-up"},Object.assign({},o)),[(0,r.bF)("line",{x1:"12",y1:"19",x2:"12",y2:"5"}),(0,r.bF)("polyline",{points:"5 12 12 5 19 12"})])}}},s={name:"BookmarkIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-bookmark"},Object.assign({},o)),[(0,r.bF)("path",{d:"M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"})])}}},a={name:"ChevronDownIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-down"},Object.assign({},o)),[(0,r.bF)("polyline",{points:"6 9 12 15 18 9"})])}}},u={name:"ChevronUpIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-up"},Object.assign({},o)),[(0,r.bF)("polyline",{points:"18 15 12 9 6 15"})])}}},l={name:"DownloadIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-download"},Object.assign({},o)),[(0,r.bF)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,r.bF)("polyline",{points:"7 10 12 15 17 10"}),(0,r.bF)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})])}}},c={name:"EditIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-edit"},Object.assign({},o)),[(0,r.bF)("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),(0,r.bF)("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})])}}},f={name:"FileTextIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-file-text"},Object.assign({},o)),[(0,r.bF)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,r.bF)("polyline",{points:"14 2 14 8 20 8"}),(0,r.bF)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,r.bF)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,r.bF)("polyline",{points:"10 9 9 9 8 9"})])}}},d={name:"RotateCcwIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-rotate-ccw"},Object.assign({},o)),[(0,r.bF)("polyline",{points:"1 4 1 10 7 10"}),(0,r.bF)("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"})])}}},p={name:"SearchIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-search"},Object.assign({},o)),[(0,r.bF)("circle",{cx:"11",cy:"11",r:"8"}),(0,r.bF)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})])}}},h={name:"SkipBackIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-skip-back"},Object.assign({},o)),[(0,r.bF)("polygon",{points:"19 20 9 12 19 4 19 20"}),(0,r.bF)("line",{x1:"5",y1:"19",x2:"5",y2:"5"})])}}},m={name:"TrashIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-trash"},Object.assign({},o)),[(0,r.bF)("polyline",{points:"3 6 5 6 21 6"}),(0,r.bF)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})])}}},g={name:"XIcon",props:{size:{type:String,default:"16",validator:function(e){return!isNaN(e)||e.length>=2&&!isNaN(e.slice(0,e.length-1))&&"x"===e.slice(-1)}}},setup:function(e,t){var n="x"===e.size.slice(-1)?e.size.slice(0,e.size.length-1)+"em":parseInt(e.size)+"px",o=Object.assign({},t.attrs);return o.width=o.width||n,o.height=o.height||n,function(){return(0,r.bF)("svg",(0,r.v6)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x"},Object.assign({},o)),[(0,r.bF)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,r.bF)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})])}}}},8266:function(e,t,n){e.exports=n(9092)},2585:function(e,t,n){"use strict";var r=n(9279),o=n(3769),i=n(8595),s=n(9275),a=n(7090),u=n(177),l=n(5077),c=n(59),f=n(2778),d=n(6198),p=n(7671);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,g=e.headers,v=e.responseType;function _(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+E)}var w=a(e.baseURL,e.url);function S(){if(y){var r="getAllResponseHeaders"in y?u(y.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};o((function(e){t(e),_()}),(function(e){n(e),_()}),i),y=null}}if(y.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(S)},y.onabort=function(){y&&(n(new f("Request aborted",f.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,y,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,y)),y=null},r.isStandardBrowserEnv()){var T=(e.withCredentials||l(w))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;T&&(g[e.xsrfHeaderName]=T)}"setRequestHeader"in y&&r.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),v&&"json"!==v&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){y&&(n(!e||e&&e.type?new d:e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var O=p(w);O&&-1===["http","https","file"].indexOf(O)?n(new f("Unsupported protocol "+O+":",f.ERR_BAD_REQUEST,e)):y.send(m)}))}},9092:function(e,t,n){"use strict";var r=n(9279),o=n(8337),i=n(8062),s=n(2018),a=function e(t){var n=new i(t),a=o(i.prototype.request,n);return r.extend(a,i.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(8785));a.Axios=i,a.CanceledError=n(6198),a.CancelToken=n(8294),a.isCancel=n(6747),a.VERSION=n(6532).version,a.toFormData=n(5765),a.AxiosError=n(2778),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(2225),a.isAxiosError=n(2446),e.exports=a,e.exports.default=a},8294:function(e,t,n){"use strict";var r=n(6198);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},6198:function(e,t,n){"use strict";var r=n(2778);function o(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(9279).inherits(o,r,{__CANCEL__:!0}),e.exports=o},6747:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},8062:function(e,t,n){"use strict";var r=n(9279),o=n(9275),i=n(5132),s=n(6839),a=n(2018),u=n(7090),l=n(2370),c=l.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[s,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{i=s(d)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=a(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},2778:function(e,t,n){"use strict";var r=n(9279);function o(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}r.inherits(o,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,s={};["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"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(o,s),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,n,s,a,u){var l=Object.create(i);return r.toFlatObject(e,l,(function(e){return e!==Error.prototype})),o.call(l,e.message,t,n,s,a),l.name=e.name,u&&Object.assign(l,u),l},e.exports=o},5132:function(e,t,n){"use strict";var r=n(9279);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},7090:function(e,t,n){"use strict";var r=n(4238),o=n(2015);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},6839:function(e,t,n){"use strict";var r=n(9279),o=n(5636),i=n(6747),s=n(8785),a=n(6198);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},2018:function(e,t,n){"use strict";var r=n(9279);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function u(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||i,o=t(e);r.isUndefined(o)&&t!==u||(n[e]=o)})),n}},3769:function(e,t,n){"use strict";var r=n(2778);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},5636:function(e,t,n){"use strict";var r=n(9279),o=n(8785);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},8785:function(e,t,n){"use strict";var r=n(9279),o=n(3661),i=n(2778),s=n(59),a=n(5765),u={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,f={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(2585)),c),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=r.isObject(e),s=t&&t["Content-Type"];if((n=r.isFileList(e))||i&&"multipart/form-data"===s){var u=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,u&&new u)}return i||"application/json"===s?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw i.from(e,i.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3843)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(u)})),e.exports=f},59:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},6532:function(e){e.exports={version:"0.27.2"}},8337:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},9275:function(e,t,n){"use strict";var r=n(9279);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2015:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},8595:function(e,t,n){"use strict";var r=n(9279);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4238:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},2446:function(e,t,n){"use strict";var r=n(9279);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},5077:function(e,t,n){"use strict";var r=n(9279);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},3661:function(e,t,n){"use strict";var r=n(9279);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},3843:function(e){e.exports=null},177:function(e,t,n){"use strict";var r=n(9279),o=["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"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},7671:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},2225:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},5765:function(e,t,n){"use strict";var r=n(9279);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(r.isPlainObject(i)||r.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),r.forEach(i,(function(n,i){if(!r.isUndefined(n)){var a,u=s?s+"."+i:i;if(n&&!s&&"object"==typeof n)if(r.endsWith(i,"{}"))n=JSON.stringify(n);else if(r.endsWith(i,"[]")&&(a=r.toArray(n)))return void a.forEach((function(e){!r.isUndefined(e)&&t.append(u,o(e))}));e(n,u)}})),n.pop()}else t.append(s,o(i))}(e),t}},2370:function(e,t,n){"use strict";var r=n(6532).version,o=n(2778),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new o(i(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var s=r[i],a=t[s];if(a){var u=e[s],l=void 0===u||a(u,s,e);if(!0!==l)throw new o("option "+s+" must be "+l,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:i}},9279:function(e,t,n){"use strict";var r,o=n(8337),i=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function l(e){return void 0===e}var c=a("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=a("Date"),h=a("File"),m=a("Blob"),g=a("FileList");function v(e){return"[object Function]"===i.call(e)}var _=a("URLSearchParams");function y(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,E=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:u,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:l,isDate:p,isFile:h,isBlob:m,isFunction:v,isStream:function(e){return f(e)&&v(e.pipe)},isURLSearchParams:_,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:y,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)y(arguments[r],n);return t},extend:function(e,t,n){return y(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,s={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=r[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:E,isFileList:g}},1520:function(e,t,n){var r=n(1059),o=n(6017);e.exports=function(e){if(r(e))return e;throw TypeError(o(e)+" is not a function")}},9149:function(e,t,n){var r=n(6352);e.exports=function(e){if(r(e))return e;throw TypeError(String(e)+" is not an object")}},6307:function(e,t,n){var r=n(7655),o=n(328),i=n(6808),s=function(e){return function(t,n,s){var a,u=r(t),l=i(u),c=o(s,l);if(e&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},2774:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},7198:function(e,t,n){var r=n(6867),o=n(1441),i=n(6633),s=n(2867);e.exports=function(e,t){for(var n=o(t),a=s.f,u=i.f,l=0;l<n.length;l++){var c=n[l];r(e,c)||a(e,c,u(t,c))}}},2949:function(e,t,n){var r=n(3622),o=n(2867),i=n(8066);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},8066:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3622:function(e,t,n){var r=n(9105);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2609:function(e,t,n){var r=n(8461),o=n(6352),i=r.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},57:function(e,t,n){var r=n(9734);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},150:function(e,t,n){var r=n(2774),o=n(8461);e.exports="process"==r(o.process)},9734:function(e,t,n){var r=n(1961);e.exports=r("navigator","userAgent")||""},1442:function(e,t,n){var r,o,i=n(8461),s=n(9734),a=i.process,u=i.Deno,l=a&&a.versions||u&&u.version,c=l&&l.v8;c?o=(r=c.split("."))[0]<4?1:r[0]+r[1]:s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},2429:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7740:function(e,t,n){var r=n(8461),o=n(6633).f,i=n(2949),s=n(6052),a=n(1450),u=n(7198),l=n(6450);e.exports=function(e,t){var n,c,f,d,p,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||a(h,{}):(r[h]||{}).prototype)for(c in t){if(d=t[c],f=e.noTargetGet?(p=o(n,c))&&p.value:n[c],!l(m?c:h+(g?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),s(n,c,d,e)}}},9105:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},5866:function(e,t,n){var r=n(1520);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},3496:function(e,t,n){var r=n(3622),o=n(6867),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function(){}.name,l=a&&(!r||r&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:l}},1961:function(e,t,n){var r=n(8461),o=n(1059);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},9260:function(e,t,n){var r=n(1520);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},8461:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6867:function(e,t,n){var r=n(5555),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(r(e),t)}},4507:function(e){e.exports={}},9939:function(e,t,n){var r=n(1961);e.exports=r("document","documentElement")},8319:function(e,t,n){var r=n(3622),o=n(9105),i=n(2609);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9553:function(e,t,n){var r=n(9105),o=n(2774),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},2588:function(e,t,n){var r=n(1059),o=n(8047),i=Function.toString;r(o.inspectSource)||(o.inspectSource=function(e){return i.call(e)}),e.exports=o.inspectSource},7515:function(e,t,n){var r,o,i,s=n(6201),a=n(8461),u=n(6352),l=n(2949),c=n(6867),f=n(8047),d=n(617),p=n(4507),h="Object already initialized",m=a.WeakMap;if(s||f.state){var g=f.state||(f.state=new m),v=g.get,_=g.has,y=g.set;r=function(e,t){if(_.call(g,e))throw new TypeError(h);return t.facade=e,y.call(g,e,t),t},o=function(e){return v.call(g,e)||{}},i=function(e){return _.call(g,e)}}else{var b=d("state");p[b]=!0,r=function(e,t){if(c(e,b))throw new TypeError(h);return t.facade=e,l(e,b,t),t},o=function(e){return c(e,b)?e[b]:{}},i=function(e){return c(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},1059:function(e){e.exports=function(e){return"function"==typeof e}},6450:function(e,t,n){var r=n(9105),o=n(1059),i=/#|\.prototype\./,s=function(e,t){var n=u[a(e)];return n==c||n!=l&&(o(t)?r(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=s.data={},l=s.NATIVE="N",c=s.POLYFILL="P";e.exports=s},6352:function(e,t,n){var r=n(1059);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},9565:function(e){e.exports=!1},183:function(e,t,n){var r=n(1059),o=n(1961),i=n(7478);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=o("Symbol");return r(t)&&Object(e)instanceof t}},6808:function(e,t,n){var r=n(8972);e.exports=function(e){return r(e.length)}},1630:function(e,t,n){var r=n(1442),o=n(9105);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},6201:function(e,t,n){var r=n(8461),o=n(1059),i=n(2588),s=r.WeakMap;e.exports=o(s)&&/native code/.test(i(s))},2867:function(e,t,n){var r=n(3622),o=n(8319),i=n(9149),s=n(4303),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(i(e),t=s(t),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},6633:function(e,t,n){var r=n(3622),o=n(6224),i=n(8066),s=n(7655),a=n(4303),u=n(6867),l=n(8319),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=s(e),t=a(t),l)try{return c(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},8286:function(e,t,n){var r=n(5774),o=n(2429).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5907:function(e,t){t.f=Object.getOwnPropertySymbols},5774:function(e,t,n){var r=n(6867),o=n(7655),i=n(6307).indexOf,s=n(4507);e.exports=function(e,t){var n,a=o(e),u=0,l=[];for(n in a)!r(s,n)&&r(a,n)&&l.push(n);for(;t.length>u;)r(a,n=t[u++])&&(~i(l,n)||l.push(n));return l}},6224:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},3508:function(e,t,n){var r=n(1059),o=n(6352);e.exports=function(e,t){var n,i;if("string"===t&&r(n=e.toString)&&!o(i=n.call(e)))return i;if(r(n=e.valueOf)&&!o(i=n.call(e)))return i;if("string"!==t&&r(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},1441:function(e,t,n){var r=n(1961),o=n(8286),i=n(5907),s=n(9149);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=i.f;return n?t.concat(n(e)):t}},6052:function(e,t,n){var r=n(8461),o=n(1059),i=n(6867),s=n(2949),a=n(1450),u=n(2588),l=n(7515),c=n(3496).CONFIGURABLE,f=l.get,d=l.enforce,p=String(String).split("String");(e.exports=function(e,t,n,u){var l,f=!!u&&!!u.unsafe,h=!!u&&!!u.enumerable,m=!!u&&!!u.noTargetGet,g=u&&void 0!==u.name?u.name:t;o(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||c&&n.name!==g)&&s(n,"name",g),(l=d(n)).source||(l.source=p.join("string"==typeof g?g:""))),e!==r?(f?!m&&e[t]&&(h=!0):delete e[t],h?e[t]=n:s(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||u(this)}))},376:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},1450:function(e,t,n){var r=n(8461);e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},617:function(e,t,n){var r=n(415),o=n(2546),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},8047:function(e,t,n){var r=n(8461),o=n(1450),i="__core-js_shared__",s=r[i]||o(i,{});e.exports=s},415:function(e,t,n){var r=n(9565),o=n(8047);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},1351:function(e,t,n){var r,o,i,s,a=n(8461),u=n(1059),l=n(9105),c=n(5866),f=n(9939),d=n(2609),p=n(57),h=n(150),m=a.setImmediate,g=a.clearImmediate,v=a.process,_=a.MessageChannel,y=a.Dispatch,b=0,E={},w="onreadystatechange";try{r=a.location}catch(e){}var S=function(e){if(E.hasOwnProperty(e)){var t=E[e];delete E[e],t()}},T=function(e){return function(){S(e)}},O=function(e){S(e.data)},x=function(e){a.postMessage(String(e),r.protocol+"//"+r.host)};m&&g||(m=function(e){for(var t=[],n=arguments.length,r=1;n>r;)t.push(arguments[r++]);return E[++b]=function(){(u(e)?e:Function(e)).apply(void 0,t)},o(b),b},g=function(e){delete E[e]},h?o=function(e){v.nextTick(T(e))}:y&&y.now?o=function(e){y.now(T(e))}:_&&!p?(s=(i=new _).port2,i.port1.onmessage=O,o=c(s.postMessage,s,1)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&r&&"file:"!==r.protocol&&!l(x)?(o=x,a.addEventListener("message",O,!1)):o=w in d("script")?function(e){f.appendChild(d("script"))[w]=function(){f.removeChild(this),S(e)}}:function(e){setTimeout(T(e),0)}),e.exports={set:m,clear:g}},328:function(e,t,n){var r=n(9637),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},7655:function(e,t,n){var r=n(9553),o=n(376);e.exports=function(e){return r(o(e))}},9637:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var r=+e;return r!=r||0===r?0:(r>0?n:t)(r)}},8972:function(e,t,n){var r=n(9637),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5555:function(e,t,n){var r=n(376);e.exports=function(e){return Object(r(e))}},6443:function(e,t,n){var r=n(6352),o=n(183),i=n(9260),s=n(3508),a=n(4761)("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,u=i(e,a);if(u){if(void 0===t&&(t="default"),n=u.call(e,t),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4303:function(e,t,n){var r=n(6443),o=n(183);e.exports=function(e){var t=r(e,"string");return o(t)?t:String(t)}},6017:function(e){e.exports=function(e){try{return String(e)}catch(e){return"Object"}}},2546:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},7478:function(e,t,n){var r=n(1630);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4761:function(e,t,n){var r=n(8461),o=n(415),i=n(6867),s=n(2546),a=n(1630),u=n(7478),l=o("wks"),c=r.Symbol,f=u?c:c&&c.withoutSetter||s;e.exports=function(e){return i(l,e)&&(a||"string"==typeof l[e])||(a&&i(c,e)?l[e]=c[e]:l[e]=f("Symbol."+e)),l[e]}},8318:function(e,t,n){var r=n(7740),o=n(8461),i=n(1351);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},9089:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},9248:function(e){"use strict";e.exports=function(e){return e[1]}},3509:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var i={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function a(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,a=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[a]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var u={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:a({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:a({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:a({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:a({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:a({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function l(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s,a=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(a))return n}(u):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(a))return n}(u);return s=e.valueCallback?e.valueCallback(l):l,{value:s=n.valueCallback?n.valueCallback(s):s,rest:t.slice(a.length)}}}var c,f={ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(c.matchPattern);if(!n)return null;var r=n[0],o=e.match(c.parsePattern);if(!o)return null;var i=c.valueCallback?c.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},d={code:"en-US",formatDistance:function(e,t,n){var o,i=r[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:function(e,t,n,r){return s[e]},localize:u,match:f,options:{weekStartsOn:0,firstWeekContainsDate:1}}},1547:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r={};function o(){return r}},9971:function(e,t){"use strict";var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},o={p:r,P:function(e,t){var o,i=e.match(/(P+)(p+)?/)||[],s=i[1],a=i[2];if(!a)return n(e,t);switch(s){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(s,t)).replace("{{time}}",r(a,t))}};t.A=o},2891:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{A:function(){return r}})},5480:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(7128),o=n(2208),i=n(6148),s=n(1926),a=6048e5;function u(e){(0,s.A)(1,arguments);var t=(0,r.A)(e),n=(0,o.A)(t).getTime()-function(e){(0,s.A)(1,arguments);var t=(0,i.A)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),(0,o.A)(n)}(t).getTime();return Math.round(n/a)+1}},6148:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7128),o=n(1926),i=n(2208);function s(e){(0,o.A)(1,arguments);var t=(0,r.A)(e),n=t.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(n+1,0,4),s.setUTCHours(0,0,0,0);var a=(0,i.A)(s),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var l=(0,i.A)(u);return t.getTime()>=a.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},6536:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(7128),o=n(4139),i=n(5437),s=n(1926),a=n(7007),u=n(1547),l=6048e5;function c(e,t){(0,s.A)(1,arguments);var n=(0,r.A)(e),c=(0,o.A)(n,t).getTime()-function(e,t){var n,r,l,c,f,d,p,h;(0,s.A)(1,arguments);var m=(0,u.q)(),g=(0,a.A)(null!==(n=null!==(r=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==r?r:null===(p=m.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1),v=(0,i.A)(e,t),_=new Date(0);return _.setUTCFullYear(v,0,g),_.setUTCHours(0,0,0,0),(0,o.A)(_,t)}(n,t).getTime();return Math.round(c/l)+1}},5437:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(7128),o=n(1926),i=n(4139),s=n(7007),a=n(1547);function u(e,t){var n,u,l,c,f,d,p,h;(0,o.A)(1,arguments);var m=(0,r.A)(e),g=m.getUTCFullYear(),v=(0,a.q)(),_=(0,s.A)(null!==(n=null!==(u=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(f=t.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==l?l:v.firstWeekContainsDate)&&void 0!==u?u:null===(p=v.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(g+1,0,_),y.setUTCHours(0,0,0,0);var b=(0,i.A)(y,t),E=new Date(0);E.setUTCFullYear(g,0,_),E.setUTCHours(0,0,0,0);var w=(0,i.A)(E,t);return m.getTime()>=b.getTime()?g+1:m.getTime()>=w.getTime()?g:g-1}},2218:function(e,t,n){"use strict";n.d(t,{ef:function(){return i},lJ:function(){return a},xM:function(){return s}});var r=["D","DD"],o=["YY","YYYY"];function i(e){return-1!==r.indexOf(e)}function s(e){return-1!==o.indexOf(e)}function a(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},1926:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{A:function(){return r}})},2208:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(7128),o=n(1926);function i(e){(0,o.A)(1,arguments);var t=(0,r.A)(e),n=t.getUTCDay(),i=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}},4139:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(7128),o=n(1926),i=n(7007),s=n(1547);function a(e,t){var n,a,u,l,c,f,d,p;(0,o.A)(1,arguments);var h=(0,s.q)(),m=(0,i.A)(null!==(n=null!==(a=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t||null===(c=t.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==u?u:h.weekStartsOn)&&void 0!==a?a:null===(d=h.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=(0,r.A)(e),v=g.getUTCDay(),_=(v<m?7:0)+v-m;return g.setUTCDate(g.getUTCDate()-_),g.setUTCHours(0,0,0,0),g}},7007:function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{A:function(){return r}})},8550:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7007),o=n(7128),i=n(1926);function s(e,t){(0,i.A)(2,arguments);var n=(0,o.A)(e).getTime(),s=(0,r.A)(t);return new Date(n+s)}},7910:function(e,t,n){"use strict";n.d(t,{Cg:function(){return r},_m:function(){return i},s0:function(){return o}}),Math.pow(10,8);var r=6e4,o=36e5,i=1e3},6061:function(e,t,n){"use strict";n.d(t,{A:function(){return M}});var r=n(8213),o=n(7287),i=n(7128),s=n(1926),a=n(5480),u=n(6148),l=n(6536),c=n(5437);function f(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var d=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return f("yy"===t?r%100:r,t.length)},p=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):f(n+1,2)},h=function(e,t){return f(e.getUTCDate(),t.length)},m=function(e,t){return f(e.getUTCHours()%12||12,t.length)},g=function(e,t){return f(e.getUTCHours(),t.length)},v=function(e,t){return f(e.getUTCMinutes(),t.length)},_=function(e,t){return f(e.getUTCSeconds(),t.length)},y=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return f(Math.floor(r*Math.pow(10,n-3)),t.length)},b={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return d(e,t)},Y:function(e,t,n,r){var o=(0,c.A)(e,r),i=o>0?o:1-o;return"YY"===t?f(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):f(i,t.length)},R:function(e,t){return f((0,u.A)(e),t.length)},u:function(e,t){return f(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return f(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return f(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return p(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return f(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=(0,l.A)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):f(o,t.length)},I:function(e,t,n){var r=(0,a.A)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):f(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h(e,t)},D:function(e,t,n){var r=function(e){(0,s.A)(1,arguments);var t=(0,i.A)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):f(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return f(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return f(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return f(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return m(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):g(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):f(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):v(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):_(e,t)},S:function(e,t){return y(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return w(o);case"XXXX":case"XX":return S(o);default:return S(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return w(o);case"xxxx":case"xx":return S(o);default:return S(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+E(o,":");default:return"GMT"+S(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+E(o,":");default:return"GMT"+S(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return f(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return f((r._originalDate||e).getTime(),t.length)}};function E(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var s=t||"";return n+String(o)+s+f(i,2)}function w(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):S(e,t)}function S(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+f(Math.floor(o/60),2)+n+f(o%60,2)}var T=b,O=n(9971),x=n(2891),N=n(2218),C=n(7007),A=n(1547),k=n(3509),I=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R=/^'([^]*?)'?$/,P=/''/g,D=/[a-zA-Z]/;function M(e,t,n){var a,u,l,c,f,d,p,h,m,g,v,_,y,b,E,w,S,M;(0,s.A)(2,arguments);var F=String(t),U=(0,A.q)(),j=null!==(a=null!==(u=null==n?void 0:n.locale)&&void 0!==u?u:U.locale)&&void 0!==a?a:k.A,B=(0,C.A)(null!==(l=null!==(c=null!==(f=null!==(d=null==n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:null==n||null===(p=n.locale)||void 0===p||null===(h=p.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==f?f:U.firstWeekContainsDate)&&void 0!==c?c:null===(m=U.locale)||void 0===m||null===(g=m.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==l?l:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var V=(0,C.A)(null!==(v=null!==(_=null!==(y=null!==(b=null==n?void 0:n.weekStartsOn)&&void 0!==b?b:null==n||null===(E=n.locale)||void 0===E||null===(w=E.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==y?y:U.weekStartsOn)&&void 0!==_?_:null===(S=U.locale)||void 0===S||null===(M=S.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==v?v:0);if(!(V>=0&&V<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!j.localize)throw new RangeError("locale must contain localize property");if(!j.formatLong)throw new RangeError("locale must contain formatLong property");var $=(0,i.A)(e);if(!(0,r.A)($))throw new RangeError("Invalid time value");var z=(0,x.A)($),W=(0,o.A)($,z),H={firstWeekContainsDate:B,weekStartsOn:V,locale:j,_originalDate:$};return F.match(L).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,O.A[t])(e,j.formatLong):e})).join("").match(I).map((function(r){if("''"===r)return"'";var o,i,s=r[0];if("'"===s)return(i=(o=r).match(R))?i[1].replace(P,"'"):o;var a=T[s];if(a)return null!=n&&n.useAdditionalWeekYearTokens||!(0,N.xM)(r)||(0,N.lJ)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,N.ef)(r)||(0,N.lJ)(r,t,String(e)),a(W,r,j.localize,H);if(s.match(D))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return r})).join("")}},8213:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(901),o=n(1926),i=n(7128);function s(e){if((0,o.A)(1,arguments),!function(e){return(0,o.A)(1,arguments),e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=(0,i.A)(e);return!isNaN(Number(t))}},2529:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(7910),o=n(1926),i=n(7007);function s(e,t){var n;(0,o.A)(1,arguments);var s=(0,i.A)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var m,g=function(e){var t,n={},r=e.split(a.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],a.timeZoneDelimiter.test(n.date)&&(n.date=e.split(a.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=a.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e);if(g.date){var v=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,s);m=function(e,t){if(null===t)return new Date(NaN);var n=e.match(u);if(!n)return new Date(NaN);var r=!!n[4],o=f(n[1]),i=f(n[2])-1,s=f(n[3]),a=f(n[4]),l=f(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,a,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*(t-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}(t,a,l):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(p[t]||(h(e)?29:28))}(t,i,s)&&function(e,t){return t>=1&&t<=(h(e)?366:365)}(t,o)?(c.setUTCFullYear(t,i,Math.max(o,s)),c):new Date(NaN)}(v.restDateString,v.year)}if(!m||isNaN(m.getTime()))return new Date(NaN);var _,y=m.getTime(),b=0;if(g.time&&(b=function(e){var t=e.match(l);if(!t)return NaN;var n=d(t[1]),o=d(t[2]),i=d(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i)?n*r.s0+o*r.Cg+1e3*i:NaN}(g.time),isNaN(b)))return new Date(NaN);if(!g.timezone){var E=new Date(y+b),w=new Date(0);return w.setFullYear(E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate()),w.setHours(E.getUTCHours(),E.getUTCMinutes(),E.getUTCSeconds(),E.getUTCMilliseconds()),w}return _=function(e){if("Z"===e)return 0;var t=e.match(c);if(!t)return 0;var n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(o*r.s0+i*r.Cg):NaN}(g.timezone),isNaN(_)?new Date(NaN):new Date(y+b+_)}var a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){return e?parseInt(e):1}function d(e){return e&&parseFloat(e.replace(",","."))||0}var p=[31,null,31,30,31,30,31,31,30,31,30,31];function h(e){return e%400==0||e%4==0&&e%100!=0}},7287:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(8550),o=n(1926),i=n(7007);function s(e,t){(0,o.A)(2,arguments);var n=(0,i.A)(t);return(0,r.A)(e,-n)}},7128:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(901),o=n(1926);function i(e){(0,o.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},6638:function(e,t,n){var r,o;void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){a(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="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=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,n,s){var a=i.URL||i.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?o(u):r(u.href)?t(e,n,s):o(u,u.target="_blank")):(u.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(u.href)}),4e4),setTimeout((function(){o(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,i){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,i),n);else if(r(e))t(e,n,i);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){o(s)}))}}:function(e,n,r,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var a="application/octet-stream"===e.type,u=/constructor/i.test(i.HTMLElement)||i.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&u||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var f=i.URL||i.webkitURL,d=f.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});i.saveAs=a.saveAs=a,e.exports=a})?r.apply(t,[]):r)||(e.exports=o)},6820:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,l=128,c=1/0,f=9007199254740991,d=NaN,p=4294967295,h=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",v="[object Boolean]",_="[object Date]",y="[object Error]",b="[object Function]",E="[object GeneratorFunction]",w="[object Map]",S="[object Number]",T="[object Object]",O="[object Promise]",x="[object RegExp]",N="[object Set]",C="[object String]",A="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",L="[object DataView]",R="[object Float32Array]",P="[object Float64Array]",D="[object Int8Array]",M="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",j="[object Uint8ClampedArray]",B="[object Uint16Array]",V="[object Uint32Array]",$=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,X=RegExp(H.source),G=RegExp(Y.source),q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",we="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\ufe0e\\ufe0f",Ne="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+Ee+"]",Ae="["+Ne+"]",ke="["+we+"]",Ie="\\d+",Le="["+Se+"]",Re="["+Te+"]",Pe="[^"+Ee+Ne+Ie+Se+Te+Oe+"]",De="\\ud83c[\\udffb-\\udfff]",Me="[^"+Ee+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+Oe+"]",Be="\\u200d",Ve="(?:"+Re+"|"+Pe+")",$e="(?:"+je+"|"+Pe+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",He="(?:"+ke+"|"+De+")?",Ye="["+xe+"]?",Xe=Ye+He+"(?:"+Be+"(?:"+[Me,Fe,Ue].join("|")+")"+Ye+He+")*",Ge="(?:"+[Le,Fe,Ue].join("|")+")"+Xe,qe="(?:"+[Me+ke+"?",ke,Fe,Ue,Ce].join("|")+")",Je=RegExp("['’]","g"),Ke=RegExp(ke,"g"),Qe=RegExp(De+"(?="+De+")|"+qe+Xe,"g"),Ze=RegExp([je+"?"+Re+"+"+ze+"(?="+[Ae,je,"$"].join("|")+")",$e+"+"+We+"(?="+[Ae,je+Ve,"$"].join("|")+")",je+"?"+Ve+"+"+ze,je+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ge].join("|"),"g"),et=RegExp("["+Be+Ee+we+xe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[R]=ot[P]=ot[D]=ot[M]=ot[F]=ot[U]=ot[j]=ot[B]=ot[V]=!0,ot[m]=ot[g]=ot[I]=ot[v]=ot[L]=ot[_]=ot[y]=ot[b]=ot[w]=ot[S]=ot[T]=ot[x]=ot[N]=ot[C]=ot[k]=!1;var it={};it[m]=it[g]=it[I]=it[L]=it[v]=it[_]=it[R]=it[P]=it[D]=it[M]=it[F]=it[w]=it[S]=it[T]=it[x]=it[N]=it[C]=it[A]=it[U]=it[j]=it[B]=it[V]=!0,it[y]=it[b]=it[k]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,lt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ct="object"==typeof self&&self&&self.Object===Object&&self,ft=lt||ct||Function("return this")(),dt=t&&!t.nodeType&&t,pt=dt&&e&&!e.nodeType&&e,ht=pt&&pt.exports===dt,mt=ht&&lt.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&&gt.isArrayBuffer,_t=gt&&gt.isDate,yt=gt&&gt.isMap,bt=gt&&gt.isRegExp,Et=gt&&gt.isSet,wt=gt&&gt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function xt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ct(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function At(e,t){return!(null==e||!e.length)&&jt(e,t,0)>-1}function kt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function It(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Lt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Rt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Pt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Mt=zt("length");function Ft(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ut(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function jt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ut(e,Vt,n)}function Bt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function $t(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:d}function zt(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Ht(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return e?e.slice(0,dn(e)+1).replace(re,""):e}function qt(e){return function(t){return e(t)}}function Jt(e,t){return It(t,(function(t){return e[t]}))}function Kt(e,t){return e.has(t)}function Qt(e,t){for(var n=-1,r=e.length;++n<r&&jt(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&jt(t,e[n],0)>-1;);return n}var en=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function cn(e){return rn(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Mt(e)}function fn(e){return rn(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var pn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,oe=t.Date,Ee=t.Error,we=t.Function,Se=t.Math,Te=t.Object,Oe=t.RegExp,xe=t.String,Ne=t.TypeError,Ce=r.prototype,Ae=we.prototype,ke=Te.prototype,Ie=t["__core-js_shared__"],Le=Ae.toString,Re=ke.hasOwnProperty,Pe=0,De=(n=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=ke.toString,Fe=Le.call(Te),Ue=ft._,je=Oe("^"+Le.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?t.Buffer:o,Ve=t.Symbol,$e=t.Uint8Array,ze=Be?Be.allocUnsafe:o,We=sn(Te.getPrototypeOf,Te),He=Te.create,Ye=ke.propertyIsEnumerable,Xe=Ce.splice,Ge=Ve?Ve.isConcatSpreadable:o,qe=Ve?Ve.iterator:o,Qe=Ve?Ve.toStringTag:o,et=function(){try{var e=li(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,lt=oe&&oe.now!==ft.Date.now&&oe.now,ct=t.setTimeout!==ft.setTimeout&&t.setTimeout,dt=Se.ceil,pt=Se.floor,mt=Te.getOwnPropertySymbols,gt=Be?Be.isBuffer:o,Mt=t.isFinite,Wt=Ce.join,mn=sn(Te.keys,Te),gn=Se.max,vn=Se.min,_n=oe.now,yn=t.parseInt,bn=Se.random,En=Ce.reverse,wn=li(t,"DataView"),Sn=li(t,"Map"),Tn=li(t,"Promise"),On=li(t,"Set"),xn=li(t,"WeakMap"),Nn=li(Te,"create"),Cn=xn&&new xn,An={},kn=Fi(wn),In=Fi(Sn),Ln=Fi(Tn),Rn=Fi(On),Pn=Fi(xn),Dn=Ve?Ve.prototype:o,Mn=Dn?Dn.valueOf:o,Fn=Dn?Dn.toString:o;function Un(e){if(ea(e)&&!zs(e)&&!(e instanceof $n)){if(e instanceof Vn)return e;if(Re.call(e,"__wrapped__"))return Ui(e)}return new Vn(e)}var jn=function(){function e(){}return function(t){if(!Zs(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Bn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Gn(e,t){var n=zs(e),r=!n&&$s(e),o=!n&&!r&&Xs(e),i=!n&&!r&&!o&&ua(e),s=n||r||o||i,a=s?Xt(e.length,xe):[],u=a.length;for(var l in e)!t&&!Re.call(e,l)||s&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||gi(l,u))||a.push(l);return a}function qn(e){var t=e.length;return t?e[Hr(0,t-1)]:o}function Jn(e,t){return Li(No(e),ir(t,0,e.length))}function Kn(e){return Li(No(e))}function Qn(e,t,n){(n!==o&&!js(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Zn(e,t,n){var r=e[t];Re.call(e,t)&&js(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(js(e[n][0],t))return n;return-1}function tr(e,t,n,r){return cr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function nr(e,t){return e&&Co(t,ka(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:Oa(e,t[n]);return s}function ir(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,i,s){var a,u=1&t,l=2&t,c=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!Zs(e))return e;var f=zs(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return No(e,a)}else{var d=di(e),p=d==b||d==E;if(Xs(e))return Eo(e,u);if(d==T||d==m||p&&!i){if(a=l||p?{}:hi(e),!u)return l?function(e,t){return Co(e,fi(e),t)}(e,function(e,t){return e&&Co(t,Ia(t),e)}(a,e)):function(e,t){return Co(e,ci(e),t)}(e,nr(a,e))}else{if(!it[d])return i?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case I:return wo(e);case v:case _:return new o(+e);case L:return function(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case P:case D:case M:case F:case U:case j:case B:case V:return So(e,n);case w:return new o;case S:case C:return new o(e);case x:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case N:return new o;case A:return r=e,Mn?Te(Mn.call(r)):{}}}(e,d,u)}}s||(s=new Xn);var h=s.get(e);if(h)return h;s.set(e,a),ia(e)?e.forEach((function(r){a.add(sr(r,t,n,r,e,s))})):ta(e)&&e.forEach((function(r,o){a.set(o,sr(r,t,n,o,e,s))}));var g=f?o:(c?l?ni:ti:l?Ia:ka)(e);return Ot(g||e,(function(r,o){g&&(r=e[o=r]),Zn(a,o,sr(r,t,n,o,e,s))})),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ne(i);return Ci((function(){e.apply(o,n)}),t)}function lr(e,t,n,r){var o=-1,i=At,s=!0,a=e.length,u=[],l=t.length;if(!a)return u;n&&(t=It(t,qt(n))),r?(i=kt,s=!1):t.length>=200&&(i=Kt,s=!1,t=new Yn(t));e:for(;++o<a;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,s&&f==f){for(var d=l;d--;)if(t[d]===f)continue e;u.push(c)}else i(t,f,r)||u.push(c)}return u}Un.templateSettings={escape:q,evaluate:J,interpolate:K,variable:"",imports:{_:Un}},Un.prototype=Bn.prototype,Un.prototype.constructor=Un,Vn.prototype=jn(Bn.prototype),Vn.prototype.constructor=Vn,$n.prototype=jn(Bn.prototype),$n.prototype.constructor=$n,zn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},zn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zn.prototype.get=function(e){var t=this.__data__;if(Nn){var n=t[e];return n===s?o:n}return Re.call(t,e)?t[e]:o},zn.prototype.has=function(e){var t=this.__data__;return Nn?t[e]!==o:Re.call(t,e)},zn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nn&&t===o?s:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(Sn||Wn),string:new zn}},Hn.prototype.delete=function(e){var t=ai(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return ai(this,e).get(e)},Hn.prototype.has=function(e){return ai(this,e).has(e)},Hn.prototype.set=function(e,t){var n=ai(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(e,t),this.size=n.size,this};var cr=Io(_r),fr=Io(yr,!0);function dr(e,t){var n=!0;return cr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(u===o?a==a&&!aa(a):n(a,u)))var u=a,l=s}return l}function hr(e,t){var n=[];return cr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=mi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?mr(a,t-1,n,r,o):Lt(o,a):r||(o[o.length]=a)}return o}var gr=Lo(),vr=Lo(!0);function _r(e,t){return e&&gr(e,t,ka)}function yr(e,t){return e&&vr(e,t,ka)}function br(e,t){return Ct(t,(function(t){return Js(e[t])}))}function Er(e,t){for(var n=0,r=(t=vo(t,e)).length;null!=e&&n<r;)e=e[Mi(t[n++])];return n&&n==r?e:o}function wr(e,t,n){var r=t(e);return zs(e)?r:Lt(r,n(e))}function Sr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in Te(e)?function(e){var t=Re.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(e){}var i=Me.call(e);return r&&(t?e[Qe]=n:delete e[Qe]),i}(e):function(e){return Me.call(e)}(e)}function Tr(e,t){return e>t}function Or(e,t){return null!=e&&Re.call(e,t)}function xr(e,t){return null!=e&&t in Te(e)}function Nr(e,t,n){for(var i=n?kt:At,s=e[0].length,a=e.length,u=a,l=r(a),c=1/0,f=[];u--;){var d=e[u];u&&t&&(d=It(d,qt(t))),c=vn(d.length,c),l[u]=!n&&(t||s>=120&&d.length>=120)?new Yn(u&&d):o}d=e[0];var p=-1,h=l[0];e:for(;++p<s&&f.length<c;){var m=d[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?Kt(h,g):i(f,g,n))){for(u=a;--u;){var v=l[u];if(!(v?Kt(v,g):i(e[u],g,n)))continue e}h&&h.push(g),f.push(m)}}return f}function Cr(e,t,n){var r=null==(e=Oi(e,t=vo(t,e)))?e:e[Mi(qi(t))];return null==r?o:St(r,e,n)}function Ar(e){return ea(e)&&Sr(e)==m}function kr(e,t,n,r,i){return e===t||(null==e||null==t||!ea(e)&&!ea(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var a=zs(e),u=zs(t),l=a?g:di(e),c=u?g:di(t),f=(l=l==m?T:l)==T,d=(c=c==m?T:c)==T,p=l==c;if(p&&Xs(e)){if(!Xs(t))return!1;a=!0,f=!1}if(p&&!f)return s||(s=new Xn),a||ua(e)?Zo(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new $e(e),new $e(t)));case v:case _:case S:return js(+e,+t);case y:return e.name==t.name&&e.message==t.message;case x:case C:return e==t+"";case w:var a=on;case N:var u=1&r;if(a||(a=un),e.size!=t.size&&!u)return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var c=Zo(a(e),a(t),r,o,i,s);return s.delete(e),c;case A:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,l,n,r,i,s);if(!(1&n)){var h=f&&Re.call(e,"__wrapped__"),b=d&&Re.call(t,"__wrapped__");if(h||b){var E=h?e.value():e,O=b?t.value():t;return s||(s=new Xn),i(E,O,n,r,s)}}return!!p&&(s||(s=new Xn),function(e,t,n,r,i,s){var a=1&n,u=ti(e),l=u.length;if(l!=ti(t).length&&!a)return!1;for(var c=l;c--;){var f=u[c];if(!(a?f in t:Re.call(t,f)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=!0;s.set(e,t),s.set(t,e);for(var m=a;++c<l;){var g=e[f=u[c]],v=t[f];if(r)var _=a?r(v,g,f,t,e,s):r(g,v,f,e,t,s);if(!(_===o?g===v||i(g,v,n,r,s):_)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,r,i,s))}(e,t,n,r,kr,i))}function Ir(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Te(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<s;){var l=(u=n[i])[0],c=e[l],f=u[1];if(a&&u[2]){if(c===o&&!(l in e))return!1}else{var d=new Xn;if(r)var p=r(c,f,l,e,t,d);if(!(p===o?kr(f,c,3,r,d):p))return!1}}return!0}function Lr(e){return!(!Zs(e)||(t=e,De&&De in t))&&(Js(e)?je:me).test(Fi(e));var t}function Rr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?zs(e)?Ur(e[0],e[1]):Fr(e):fu(e)}function Pr(e){if(!Ei(e))return mn(e);var t=[];for(var n in Te(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Mr(e,t){var n=-1,o=Hs(e)?r(e.length):[];return cr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Fr(e){var t=ui(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Ir(n,e,t)}}function Ur(e,t){return _i(e)&&wi(t)?Si(Mi(e),t):function(n){var r=Oa(n,e);return r===o&&r===t?xa(n,e):kr(t,r,3)}}function jr(e,t,n,r,i){e!==t&&gr(t,(function(s,a){if(i||(i=new Xn),Zs(s))!function(e,t,n,r,i,s,a){var u=xi(e,n),l=xi(t,n),c=a.get(l);if(c)Qn(e,n,c);else{var f=s?s(u,l,n+"",e,t,a):o,d=f===o;if(d){var p=zs(l),h=!p&&Xs(l),m=!p&&!h&&ua(l);f=l,p||h||m?zs(u)?f=u:Ys(u)?f=No(u):h?(d=!1,f=Eo(l,!0)):m?(d=!1,f=So(l,!0)):f=[]:ra(l)||$s(l)?(f=u,$s(u)?f=ga(u):Zs(u)&&!Js(u)||(f=hi(l))):d=!1}d&&(a.set(l,f),i(f,l,r,s,a),a.delete(l)),Qn(e,n,f)}}(e,t,a,n,jr,r,i);else{var u=r?r(xi(e,a),s,a+"",e,t,i):o;u===o&&(u=s),Qn(e,a,u)}}),Ia)}function Br(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?It(t,(function(e){return zs(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=It(t,qt(si()));var o=Mr(e,(function(e,n,o){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;++r<s;){var u=To(o[r],i[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function $r(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Er(e,s);n(a,s)&&Jr(i,vo(s,e),a)}return i}function zr(e,t,n,r){var o=r?Bt:jt,i=-1,s=t.length,a=e;for(e===t&&(t=No(t)),n&&(a=It(e,qt(n)));++i<s;)for(var u=0,l=t[i],c=n?n(l):l;(u=o(a,c,u,r))>-1;)a!==e&&Xe.call(a,u,1),Xe.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;gi(o)?Xe.call(e,o,1):uo(e,o)}}return e}function Hr(e,t){return e+pt(bn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ai(Ti(e,t,nu),e+"")}function Gr(e){return qn(ja(e))}function qr(e,t){var n=ja(e);return Li(n,ir(t,0,n.length))}function Jr(e,t,n,r){if(!Zs(e))return e;for(var i=-1,s=(t=vo(t,e)).length,a=s-1,u=e;null!=u&&++i<s;){var l=Mi(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var f=u[l];(c=r?r(f,l,u):o)===o&&(c=Zs(f)?f:gi(t[i+1])?[]:{})}Zn(u,l,c),u=u[l]}return e}var Kr=Cn?function(e,t){return Cn.set(e,t),e}:nu,Qr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Za(t),writable:!0})}:nu;function Zr(e){return Li(ja(e))}function eo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function to(e,t){var n;return cr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!aa(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,u=null===t,l=aa(t),c=t===o;i<s;){var f=pt((i+s)/2),d=n(e[f]),p=d!==o,h=null===d,m=d==d,g=aa(d);if(a)var v=r||m;else v=c?m&&(r||p):u?m&&p&&(r||!h):l?m&&p&&!h&&(r||!g):!h&&!g&&(r?d<=t:d<t);v?i=f+1:s=f}return vn(s,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!js(a,u)){var u=a;i[o++]=0===s?0:s}}return i}function io(e){return"number"==typeof e?e:aa(e)?d:+e}function so(e){if("string"==typeof e)return e;if(zs(e))return It(e,so)+"";if(aa(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ao(e,t,n){var r=-1,o=At,i=e.length,s=!0,a=[],u=a;if(n)s=!1,o=kt;else if(i>=200){var l=t?null:Xo(e);if(l)return un(l);s=!1,o=Kt,u=new Yn}else u=t?[]:a;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,s&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),a.push(c)}else o(u,f,n)||(u!==a&&u.push(f),a.push(c))}return a}function uo(e,t){return null==(e=Oi(e,t=vo(t,e)))||delete e[Mi(qi(t))]}function lo(e,t,n,r){return Jr(e,t,n(Er(e,t)),r)}function co(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?eo(e,r?0:i,r?i+1:o):eo(e,r?i+1:0,r?o:i)}function fo(e,t){var n=e;return n instanceof $n&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?ao(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],u=-1;++u<o;)u!=i&&(s[i]=lr(s[i]||a,e[u],t,n));return ao(mr(s,1),t,n)}function ho(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var u=r<s?t[r]:o;n(a,e[r],u)}return a}function mo(e){return Ys(e)?e:[]}function go(e){return"function"==typeof e?e:nu}function vo(e,t){return zs(e)?e:_i(e,t)?[e]:Di(va(e))}var _o=Xr;function yo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var bo=st||function(e){return ft.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function wo(e){var t=new e.constructor(e.byteLength);return new $e(t).set(new $e(e)),t}function So(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=aa(e),a=t!==o,u=null===t,l=t==t,c=aa(t);if(!u&&!c&&!s&&e>t||s&&a&&l&&!u&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!s&&!c&&e<t||c&&n&&i&&!r&&!s||u&&n&&i||!a&&i||!l)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,s=e.length,a=n.length,u=-1,l=t.length,c=gn(s-a,0),f=r(l+c),d=!o;++u<l;)f[u]=t[u];for(;++i<a;)(d||i<s)&&(f[n[i]]=e[i]);for(;c--;)f[u++]=e[i++];return f}function xo(e,t,n,o){for(var i=-1,s=e.length,a=-1,u=n.length,l=-1,c=t.length,f=gn(s-u,0),d=r(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++a<u;)(p||i<s)&&(d[h+n[a]]=e[i++]);return d}function No(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Co(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var u=t[s],l=r?r(n[u],e[u],u,n,e):o;l===o&&(l=e[u]),i?rr(n,u,l):Zn(n,u,l)}return n}function Ao(e,t){return function(n,r){var o=zs(n)?Tt:tr,i=t?t():{};return o(n,e,si(r,2),i)}}function ko(e){return Xr((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&vi(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Te(t);++r<i;){var u=n[r];u&&e(t,u,r,s)}return t}))}function Io(e,t){return function(n,r){if(null==n)return n;if(!Hs(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Te(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Te(t),s=r(t),a=s.length;a--;){var u=s[e?a:++o];if(!1===n(i[u],u,i))break}return t}}function Ro(e){return function(t){var n=rn(t=va(t))?fn(t):o,r=n?n[0]:t.charAt(0),i=n?yo(n,1).join(""):t.slice(1);return r[e]()+i}}function Po(e){return function(t){return Rt(Ja($a(t).replace(Je,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return Zs(r)?r:n}}function Mo(e){return function(t,n,r){var i=Te(t);if(!Hs(t)){var s=si(n,3);t=ka(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function Fo(e){return ei((function(t){var n=t.length,r=n,s=Vn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Ne(i);if(s&&!u&&"wrapper"==oi(a))var u=new Vn([],!0)}for(r=u?r:n;++r<n;){var l=oi(a=t[r]),c="wrapper"==l?ri(a):o;u=c&&yi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[oi(c[0])].apply(u,c[3]):1==a.length&&yi(a)?u[l]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&zs(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Uo(e,t,n,i,s,a,u,c,f,d){var p=t&l,h=1&t,m=2&t,g=24&t,v=512&t,_=m?o:Do(e);return function l(){for(var y=arguments.length,b=r(y),E=y;E--;)b[E]=arguments[E];if(g)var w=ii(l),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(i&&(b=Oo(b,i,s,g)),a&&(b=xo(b,a,u,g)),y-=S,g&&y<d){var T=an(b,w);return Ho(e,t,Uo,l.placeholder,n,b,T,c,f,d-y)}var O=h?n:this,x=m?O[e]:e;return y=b.length,c?b=function(e,t){for(var n=e.length,r=vn(t.length,n),i=No(e);r--;){var s=t[r];e[r]=gi(s,n)?i[s]:o}return e}(b,c):v&&y>1&&b.reverse(),p&&f<y&&(b.length=f),this&&this!==ft&&this instanceof l&&(x=_||Do(x)),x.apply(O,b)}}function jo(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Bo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=so(n),r=so(r)):(n=io(n),r=io(r)),i=e(n,r)}return i}}function Vo(e){return ei((function(t){return t=It(t,qt(si())),Xr((function(n){var r=this;return e(t,(function(e){return St(e,r,n)}))}))}))}function $o(e,t){var n=(t=t===o?" ":so(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,dt(e/cn(t)));return rn(t)?yo(fn(r),0,e).join(""):r.slice(0,e)}function zo(e){return function(t,n,i){return i&&"number"!=typeof i&&vi(t,n,i)&&(n=i=o),t=da(t),n===o?(n=t,t=0):n=da(n),function(e,t,n,o){for(var i=-1,s=gn(dt((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:da(i),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Ho(e,t,n,r,i,s,a,l,c,f){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var p=[e,t,i,d?s:o,d?a:o,d?o:s,d?o:a,l,c,f],h=n.apply(o,p);return yi(e)&&Ni(h,p),h.placeholder=r,ki(h,e,t)}function Yo(e){var t=Se[e];return function(e,n){if(e=ma(e),(n=null==n?0:vn(pa(n),292))&&Mt(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=On&&1/un(new On([,-0]))[1]==c?function(e){return new On(e)}:au;function Go(e){return function(t){var n=di(t);return n==w?on(t):n==N?ln(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function qo(e,t,n,s,c,f,d,p){var h=2&t;if(!h&&"function"!=typeof e)throw new Ne(i);var m=s?s.length:0;if(m||(t&=-97,s=c=o),d=d===o?d:gn(pa(d),0),p=p===o?p:pa(p),m-=c?c.length:0,64&t){var g=s,v=c;s=c=o}var _=h?o:ri(e),y=[e,t,n,s,c,g,v,f,d,p];if(_&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==l&&8==n||r==l&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?Oo(c,u,t[4]):u,e[4]=c?an(e[3],a):t[4]}(u=t[5])&&(c=e[5],e[5]=c?xo(c,u,t[6]):u,e[6]=c?an(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&l&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(y,_),e=y[0],t=y[1],n=y[2],s=y[3],c=y[4],!(p=y[9]=y[9]===o?h?0:e.length:gn(y[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var i=Do(e);return function s(){for(var a=arguments.length,u=r(a),l=a,c=ii(s);l--;)u[l]=arguments[l];var f=a<3&&u[0]!==c&&u[a-1]!==c?[]:an(u,c);return(a-=f.length)<n?Ho(e,t,Uo,s.placeholder,o,u,f,o,o,n-a):St(this&&this!==ft&&this instanceof s?i:e,this,u)}}(e,t,p):t!=u&&33!=t||c.length?Uo.apply(o,y):function(e,t,n,o){var i=1&t,s=Do(e);return function t(){for(var a=-1,u=arguments.length,l=-1,c=o.length,f=r(c+u),d=this&&this!==ft&&this instanceof t?s:e;++l<c;)f[l]=o[l];for(;u--;)f[l++]=arguments[++a];return St(d,i?n:this,f)}}(e,t,n,s);else var b=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return ki((_?Kr:Ni)(b,y),e,t)}function Jo(e,t,n,r){return e===o||js(e,ke[n])&&!Re.call(r,n)?t:e}function Ko(e,t,n,r,i,s){return Zs(e)&&Zs(t)&&(s.set(t,e),jr(e,t,o,Ko,s),s.delete(t)),e}function Qo(e){return ra(e)?o:e}function Zo(e,t,n,r,i,s){var a=1&n,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var c=s.get(e),f=s.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&n?new Yn:o;for(s.set(e,t),s.set(t,e);++d<u;){var m=e[d],g=t[d];if(r)var v=a?r(g,m,d,t,e,s):r(m,g,d,e,t,s);if(v!==o){if(v)continue;p=!1;break}if(h){if(!Dt(t,(function(e,t){if(!Kt(h,t)&&(m===e||i(m,e,n,r,s)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function ei(e){return Ai(Ti(e,o,Wi),e+"")}function ti(e){return wr(e,ka,ci)}function ni(e){return wr(e,Ia,fi)}var ri=Cn?function(e){return Cn.get(e)}:au;function oi(e){for(var t=e.name+"",n=An[t],r=Re.call(An,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Re.call(Un,"placeholder")?Un:e).placeholder}function si(){var e=Un.iteratee||ru;return e=e===ru?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function ai(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ui(e){for(var t=ka(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,wi(o)]}return t}function li(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Lr(n)?n:o}var ci=mt?function(e){return null==e?[]:(e=Te(e),Ct(mt(e),(function(t){return Ye.call(e,t)})))}:hu,fi=mt?function(e){for(var t=[];e;)Lt(t,ci(e)),e=We(e);return t}:hu,di=Sr;function pi(e,t,n){for(var r=-1,o=(t=vo(t,e)).length,i=!1;++r<o;){var s=Mi(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Qs(o)&&gi(s,o)&&(zs(e)||$s(e))}function hi(e){return"function"!=typeof e.constructor||Ei(e)?{}:jn(We(e))}function mi(e){return zs(e)||$s(e)||!!(Ge&&e&&e[Ge])}function gi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!Zs(n))return!1;var r=typeof t;return!!("number"==r?Hs(n)&&gi(t,n.length):"string"==r&&t in n)&&js(n[t],e)}function _i(e,t){if(zs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!aa(e))||Z.test(e)||!Q.test(e)||null!=t&&e in Te(t)}function yi(e){var t=oi(e),n=Un[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var r=ri(n);return!!r&&e===r[0]}(wn&&di(new wn(new ArrayBuffer(1)))!=L||Sn&&di(new Sn)!=w||Tn&&di(Tn.resolve())!=O||On&&di(new On)!=N||xn&&di(new xn)!=k)&&(di=function(e){var t=Sr(e),n=t==T?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case kn:return L;case In:return w;case Ln:return O;case Rn:return N;case Pn:return k}return t});var bi=Ie?Js:mu;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ke)}function wi(e){return e==e&&!Zs(e)}function Si(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Te(n))}}function Ti(e,t,n){return t=gn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=gn(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(a),St(e,this,u)}}function Oi(e,t){return t.length<2?e:Er(e,eo(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ni=Ii(Kr),Ci=ct||function(e,t){return ft.setTimeout(e,t)},Ai=Ii(Qr);function ki(e,t,n){var r=t+"";return Ai(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(h,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Ii(e){var t=0,n=0;return function(){var r=_n(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=Hr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Ri,Pi,Di=(Ri=Rs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Pi.size&&Pi.clear(),e})),Pi=Ri.cache,Ri);function Mi(e){if("string"==typeof e||aa(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ui(e){if(e instanceof $n)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=No(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ji=Xr((function(e,t){return Ys(e)?lr(e,mr(t,1,Ys,!0)):[]})),Bi=Xr((function(e,t){var n=qi(t);return Ys(n)&&(n=o),Ys(e)?lr(e,mr(t,1,Ys,!0),si(n,2)):[]})),Vi=Xr((function(e,t){var n=qi(t);return Ys(n)&&(n=o),Ys(e)?lr(e,mr(t,1,Ys,!0),o,n):[]}));function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:pa(n);return o<0&&(o=gn(r+o,0)),Ut(e,si(t,3),o)}function zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=pa(n),i=n<0?gn(r+i,0):vn(i,r-1)),Ut(e,si(t,3),i,!0)}function Wi(e){return null!=e&&e.length?mr(e,1):[]}function Hi(e){return e&&e.length?e[0]:o}var Yi=Xr((function(e){var t=It(e,mo);return t.length&&t[0]===e[0]?Nr(t):[]})),Xi=Xr((function(e){var t=qi(e),n=It(e,mo);return t===qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Nr(n,si(t,2)):[]})),Gi=Xr((function(e){var t=qi(e),n=It(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Nr(n,o,t):[]}));function qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ji=Xr(Ki);function Ki(e,t){return e&&e.length&&t&&t.length?zr(e,t):e}var Qi=ei((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,It(t,(function(e){return gi(e,n)?+e:e})).sort(To)),r}));function Zi(e){return null==e?e:En.call(e)}var es=Xr((function(e){return ao(mr(e,1,Ys,!0))})),ts=Xr((function(e){var t=qi(e);return Ys(t)&&(t=o),ao(mr(e,1,Ys,!0),si(t,2))})),ns=Xr((function(e){var t=qi(e);return t="function"==typeof t?t:o,ao(mr(e,1,Ys,!0),o,t)}));function rs(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(Ys(e))return t=gn(e.length,t),!0})),Xt(t,(function(t){return It(e,zt(t))}))}function os(e,t){if(!e||!e.length)return[];var n=rs(e);return null==t?n:It(n,(function(e){return St(t,o,e)}))}var is=Xr((function(e,t){return Ys(e)?lr(e,t):[]})),ss=Xr((function(e){return po(Ct(e,Ys))})),as=Xr((function(e){var t=qi(e);return Ys(t)&&(t=o),po(Ct(e,Ys),si(t,2))})),us=Xr((function(e){var t=qi(e);return t="function"==typeof t?t:o,po(Ct(e,Ys),o,t)})),ls=Xr(rs),cs=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,os(e,n)}));function fs(e){var t=Un(e);return t.__chain__=!0,t}function ds(e,t){return t(e)}var ps=ei((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof $n&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ds,args:[i],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),hs=Ao((function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)})),ms=Mo($i),gs=Mo(zi);function vs(e,t){return(zs(e)?Ot:cr)(e,si(t,3))}function _s(e,t){return(zs(e)?xt:fr)(e,si(t,3))}var ys=Ao((function(e,t,n){Re.call(e,n)?e[n].push(t):rr(e,n,[t])})),bs=Xr((function(e,t,n){var o=-1,i="function"==typeof t,s=Hs(e)?r(e.length):[];return cr(e,(function(e){s[++o]=i?St(t,e,n):Cr(e,t,n)})),s})),Es=Ao((function(e,t,n){rr(e,n,t)}));function ws(e,t){return(zs(e)?It:Mr)(e,si(t,3))}var Ss=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ts=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,mr(t,1),[])})),Os=lt||function(){return ft.Date.now()};function xs(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,qo(e,l,o,o,o,o,t)}function Ns(e,t){var n;if("function"!=typeof t)throw new Ne(i);return e=pa(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Cs=Xr((function(e,t,n){var r=1;if(n.length){var o=an(n,ii(Cs));r|=u}return qo(e,r,t,n,o)})),As=Xr((function(e,t,n){var r=3;if(n.length){var o=an(n,ii(As));r|=u}return qo(t,r,e,n,o)}));function ks(e,t,n){var r,s,a,u,l,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ne(i);function m(t){var n=r,i=s;return r=s=o,f=t,u=e.apply(i,n)}function g(e){var n=e-c;return c===o||n>=t||n<0||p&&e-f>=a}function v(){var e=Os();if(g(e))return _(e);l=Ci(v,function(e){var n=t-(e-c);return p?vn(n,a-(e-f)):n}(e))}function _(e){return l=o,h&&r?m(e):(r=s=o,u)}function y(){var e=Os(),n=g(e);if(r=arguments,s=this,c=e,n){if(l===o)return function(e){return f=e,l=Ci(v,t),d?m(e):u}(c);if(p)return bo(l),l=Ci(v,t),m(c)}return l===o&&(l=Ci(v,t)),u}return t=ma(t)||0,Zs(n)&&(d=!!n.leading,a=(p="maxWait"in n)?gn(ma(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){l!==o&&bo(l),f=0,r=c=s=l=o},y.flush=function(){return l===o?u:_(Os())},y}var Is=Xr((function(e,t){return ur(e,1,t)})),Ls=Xr((function(e,t,n){return ur(e,ma(t)||0,n)}));function Rs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Rs.Cache||Hn),n}function Ps(e){if("function"!=typeof e)throw new Ne(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Rs.Cache=Hn;var Ds=_o((function(e,t){var n=(t=1==t.length&&zs(t[0])?It(t[0],qt(si())):It(mr(t,1),qt(si()))).length;return Xr((function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return St(e,this,r)}))})),Ms=Xr((function(e,t){var n=an(t,ii(Ms));return qo(e,u,o,t,n)})),Fs=Xr((function(e,t){var n=an(t,ii(Fs));return qo(e,64,o,t,n)})),Us=ei((function(e,t){return qo(e,256,o,o,o,t)}));function js(e,t){return e===t||e!=e&&t!=t}var Bs=Wo(Tr),Vs=Wo((function(e,t){return e>=t})),$s=Ar(function(){return arguments}())?Ar:function(e){return ea(e)&&Re.call(e,"callee")&&!Ye.call(e,"callee")},zs=r.isArray,Ws=vt?qt(vt):function(e){return ea(e)&&Sr(e)==I};function Hs(e){return null!=e&&Qs(e.length)&&!Js(e)}function Ys(e){return ea(e)&&Hs(e)}var Xs=gt||mu,Gs=_t?qt(_t):function(e){return ea(e)&&Sr(e)==_};function qs(e){if(!ea(e))return!1;var t=Sr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Js(e){if(!Zs(e))return!1;var t=Sr(e);return t==b||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ks(e){return"number"==typeof e&&e==pa(e)}function Qs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Zs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=yt?qt(yt):function(e){return ea(e)&&di(e)==w};function na(e){return"number"==typeof e||ea(e)&&Sr(e)==S}function ra(e){if(!ea(e)||Sr(e)!=T)return!1;var t=We(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Fe}var oa=bt?qt(bt):function(e){return ea(e)&&Sr(e)==x},ia=Et?qt(Et):function(e){return ea(e)&&di(e)==N};function sa(e){return"string"==typeof e||!zs(e)&&ea(e)&&Sr(e)==C}function aa(e){return"symbol"==typeof e||ea(e)&&Sr(e)==A}var ua=wt?qt(wt):function(e){return ea(e)&&Qs(e.length)&&!!ot[Sr(e)]},la=Wo(Dr),ca=Wo((function(e,t){return e<=t}));function fa(e){if(!e)return[];if(Hs(e))return sa(e)?fn(e):No(e);if(qe&&e[qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[qe]());var t=di(e);return(t==w?on:t==N?un:ja)(e)}function da(e){return e?(e=ma(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function pa(e){var t=da(e),n=t%1;return t==t?n?t-n:t:0}function ha(e){return e?ir(pa(e),0,p):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return d;if(Zs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=he.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):pe.test(e)?d:+e}function ga(e){return Co(e,Ia(e))}function va(e){return null==e?"":so(e)}var _a=ko((function(e,t){if(Ei(t)||Hs(t))Co(t,ka(t),e);else for(var n in t)Re.call(t,n)&&Zn(e,n,t[n])})),ya=ko((function(e,t){Co(t,Ia(t),e)})),ba=ko((function(e,t,n,r){Co(t,Ia(t),e,r)})),Ea=ko((function(e,t,n,r){Co(t,ka(t),e,r)})),wa=ei(or),Sa=Xr((function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=Ia(s),u=-1,l=a.length;++u<l;){var c=a[u],f=e[c];(f===o||js(f,ke[c])&&!Re.call(e,c))&&(e[c]=s[c])}return e})),Ta=Xr((function(e){return e.push(o,Ko),St(Ra,o,e)}));function Oa(e,t,n){var r=null==e?o:Er(e,t);return r===o?n:r}function xa(e,t){return null!=e&&pi(e,t,xr)}var Na=jo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Za(nu)),Ca=jo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),si),Aa=Xr(Cr);function ka(e){return Hs(e)?Gn(e):Pr(e)}function Ia(e){return Hs(e)?Gn(e,!0):function(e){if(!Zs(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var La=ko((function(e,t,n){jr(e,t,n)})),Ra=ko((function(e,t,n,r){jr(e,t,n,r)})),Pa=ei((function(e,t){var n={};if(null==e)return n;var r=!1;t=It(t,(function(t){return t=vo(t,e),r||(r=t.length>1),t})),Co(e,ni(e),n),r&&(n=sr(n,7,Qo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Da=ei((function(e,t){return null==e?{}:function(e,t){return $r(e,t,(function(t,n){return xa(e,n)}))}(e,t)}));function Ma(e,t){if(null==e)return{};var n=It(ni(e),(function(e){return[e]}));return t=si(t),$r(e,n,(function(e,n){return t(e,n[0])}))}var Fa=Go(ka),Ua=Go(Ia);function ja(e){return null==e?[]:Jt(e,ka(e))}var Ba=Po((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return qa(va(e).toLowerCase())}function $a(e){return(e=va(e))&&e.replace(_e,en).replace(Ke,"")}var za=Po((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Wa=Po((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ha=Ro("toLowerCase"),Ya=Po((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xa=Po((function(e,t,n){return e+(n?" ":"")+qa(t)})),Ga=Po((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),qa=Ro("toUpperCase");function Ja(e,t,n){return e=va(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ka=Xr((function(e,t){try{return St(e,o,t)}catch(e){return qs(e)?e:new Ee(e)}})),Qa=ei((function(e,t){return Ot(t,(function(t){t=Mi(t),rr(e,t,Cs(e[t],e))})),e}));function Za(e){return function(){return e}}var eu=Fo(),tu=Fo(!0);function nu(e){return e}function ru(e){return Rr("function"==typeof e?e:sr(e,1))}var ou=Xr((function(e,t){return function(n){return Cr(n,e,t)}})),iu=Xr((function(e,t){return function(n){return Cr(e,n,t)}}));function su(e,t,n){var r=ka(t),o=br(t,r);null!=n||Zs(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=br(t,ka(t)));var i=!(Zs(n)&&"chain"in n&&!n.chain),s=Js(e);return Ot(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=No(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function au(){}var uu=Vo(It),lu=Vo(Nt),cu=Vo(Dt);function fu(e){return _i(e)?zt(Mi(e)):function(e){return function(t){return Er(t,e)}}(e)}var du=zo(),pu=zo(!0);function hu(){return[]}function mu(){return!1}var gu,vu=Bo((function(e,t){return e+t}),0),_u=Yo("ceil"),yu=Bo((function(e,t){return e/t}),1),bu=Yo("floor"),Eu=Bo((function(e,t){return e*t}),1),wu=Yo("round"),Su=Bo((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ne(i);return e=pa(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=xs,Un.assign=_a,Un.assignIn=ya,Un.assignInWith=ba,Un.assignWith=Ea,Un.at=wa,Un.before=Ns,Un.bind=Cs,Un.bindAll=Qa,Un.bindKey=As,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},Un.chain=fs,Un.chunk=function(e,t,n){t=(n?vi(e,t,n):t===o)?1:gn(pa(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,u=r(dt(i/t));s<i;)u[a++]=eo(e,s,s+=t);return u},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Lt(zs(n)?No(n):[n],mr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=si();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new Ne(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(St(o[0],this,n))return St(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=ka(e);return function(n){return ar(n,e,t)}}(sr(e,1))},Un.constant=Za,Un.countBy=hs,Un.create=function(e,t){var n=jn(e);return null==t?n:nr(n,t)},Un.curry=function e(t,n,r){var i=qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=qo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=ks,Un.defaults=Sa,Un.defaultsDeep=Ta,Un.defer=Is,Un.delay=Ls,Un.difference=ji,Un.differenceBy=Bi,Un.differenceWith=Vi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:pa(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:pa(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?co(e,si(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?co(e,si(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&vi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=pa(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:pa(r))<0&&(r+=i),r=n>r?0:ha(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(zs(e)?Ct:hr)(e,si(t,3))},Un.flatMap=function(e,t){return mr(ws(e,t),1)},Un.flatMapDeep=function(e,t){return mr(ws(e,t),c)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:pa(n),mr(ws(e,t),n)},Un.flatten=Wi,Un.flattenDeep=function(e){return null!=e&&e.length?mr(e,c):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:pa(t)):[]},Un.flip=function(e){return qo(e,512)},Un.flow=eu,Un.flowRight=tu,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:br(e,ka(e))},Un.functionsIn=function(e){return null==e?[]:br(e,Ia(e))},Un.groupBy=ys,Un.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Un.intersection=Yi,Un.intersectionBy=Xi,Un.intersectionWith=Gi,Un.invert=Na,Un.invertBy=Ca,Un.invokeMap=bs,Un.iteratee=ru,Un.keyBy=Es,Un.keys=ka,Un.keysIn=Ia,Un.map=ws,Un.mapKeys=function(e,t){var n={};return t=si(t,3),_r(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=si(t,3),_r(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},Un.matches=function(e){return Fr(sr(e,1))},Un.matchesProperty=function(e,t){return Ur(e,sr(t,1))},Un.memoize=Rs,Un.merge=La,Un.mergeWith=Ra,Un.method=ou,Un.methodOf=iu,Un.mixin=su,Un.negate=Ps,Un.nthArg=function(e){return e=pa(e),Xr((function(t){return Br(t,e)}))},Un.omit=Pa,Un.omitBy=function(e,t){return Ma(e,Ps(si(t)))},Un.once=function(e){return Ns(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(zs(t)||(t=null==t?[]:[t]),zs(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Un.over=uu,Un.overArgs=Ds,Un.overEvery=lu,Un.overSome=cu,Un.partial=Ms,Un.partialRight=Fs,Un.partition=Ss,Un.pick=Da,Un.pickBy=Ma,Un.property=fu,Un.propertyOf=function(e){return function(t){return null==e?o:Er(e,t)}},Un.pull=Ji,Un.pullAll=Ki,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?zr(e,t,si(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?zr(e,t,o,n):e},Un.pullAt=Qi,Un.range=du,Un.rangeRight=pu,Un.rearg=Us,Un.reject=function(e,t){return(zs(e)?Ct:hr)(e,Ps(si(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=si(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return Wr(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Ne(i);return Xr(e,t=t===o?t:pa(t))},Un.reverse=Zi,Un.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:pa(t),(zs(e)?Jn:qr)(e,t)},Un.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Jr(e,t,n,r)},Un.shuffle=function(e){return(zs(e)?Kn:Zr)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vi(e,t,n)?(t=0,n=r):(t=null==t?0:pa(t),n=n===o?r:pa(n)),eo(e,t,n)):[]},Un.sortBy=Ts,Un.sortedUniq=function(e){return e&&e.length?oo(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?oo(e,si(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&vi(e,t,n)&&(t=n=o),(n=n===o?p:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=so(t))&&rn(e)?yo(fn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ne(i);return t=null==t?0:gn(pa(t),0),Xr((function(n){var r=n[t],o=yo(n,0,t);return r&&Lt(o,r),St(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:pa(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:pa(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?co(e,si(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?co(e,si(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ne(i);return Zs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ks(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=ds,Un.toArray=fa,Un.toPairs=Fa,Un.toPairsIn=Ua,Un.toPath=function(e){return zs(e)?It(e,Mi):aa(e)?[e]:No(Di(va(e)))},Un.toPlainObject=ga,Un.transform=function(e,t,n){var r=zs(e),o=r||Xs(e)||ua(e);if(t=si(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Zs(e)&&Js(i)?jn(We(e)):{}}return(o?Ot:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return xs(e,1)},Un.union=es,Un.unionBy=ts,Un.unionWith=ns,Un.uniq=function(e){return e&&e.length?ao(e):[]},Un.uniqBy=function(e,t){return e&&e.length?ao(e,si(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?ao(e,o,t):[]},Un.unset=function(e,t){return null==e||uo(e,t)},Un.unzip=rs,Un.unzipWith=os,Un.update=function(e,t,n){return null==e?e:lo(e,t,go(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:lo(e,t,go(n),r)},Un.values=ja,Un.valuesIn=function(e){return null==e?[]:Jt(e,Ia(e))},Un.without=is,Un.words=Ja,Un.wrap=function(e,t){return Ms(go(t),e)},Un.xor=ss,Un.xorBy=as,Un.xorWith=us,Un.zip=ls,Un.zipObject=function(e,t){return ho(e||[],t||[],Zn)},Un.zipObjectDeep=function(e,t){return ho(e||[],t||[],Jr)},Un.zipWith=cs,Un.entries=Fa,Un.entriesIn=Ua,Un.extend=ya,Un.extendWith=ba,su(Un,Un),Un.add=vu,Un.attempt=Ka,Un.camelCase=Ba,Un.capitalize=Va,Un.ceil=_u,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ma(n))==n?n:0),t!==o&&(t=(t=ma(t))==t?t:0),ir(ma(e),t,n)},Un.clone=function(e){return sr(e,4)},Un.cloneDeep=function(e){return sr(e,5)},Un.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||ar(e,t,ka(t))},Un.deburr=$a,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=yu,Un.endsWith=function(e,t,n){e=va(e),t=so(t);var r=e.length,i=n=n===o?r:ir(pa(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=js,Un.escape=function(e){return(e=va(e))&&G.test(e)?e.replace(Y,tn):e},Un.escapeRegExp=function(e){return(e=va(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=zs(e)?Nt:dr;return n&&vi(e,t,n)&&(t=o),r(e,si(t,3))},Un.find=ms,Un.findIndex=$i,Un.findKey=function(e,t){return Ft(e,si(t,3),_r)},Un.findLast=gs,Un.findLastIndex=zi,Un.findLastKey=function(e,t){return Ft(e,si(t,3),yr)},Un.floor=bu,Un.forEach=vs,Un.forEachRight=_s,Un.forIn=function(e,t){return null==e?e:gr(e,si(t,3),Ia)},Un.forInRight=function(e,t){return null==e?e:vr(e,si(t,3),Ia)},Un.forOwn=function(e,t){return e&&_r(e,si(t,3))},Un.forOwnRight=function(e,t){return e&&yr(e,si(t,3))},Un.get=Oa,Un.gt=Bs,Un.gte=Vs,Un.has=function(e,t){return null!=e&&pi(e,t,Or)},Un.hasIn=xa,Un.head=Hi,Un.identity=nu,Un.includes=function(e,t,n,r){e=Hs(e)?e:ja(e),n=n&&!r?pa(n):0;var o=e.length;return n<0&&(n=gn(o+n,0)),sa(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&jt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:pa(n);return o<0&&(o=gn(r+o,0)),jt(e,t,o)},Un.inRange=function(e,t,n){return t=da(t),n===o?(n=t,t=0):n=da(n),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(e=ma(e),t,n)},Un.invoke=Aa,Un.isArguments=$s,Un.isArray=zs,Un.isArrayBuffer=Ws,Un.isArrayLike=Hs,Un.isArrayLikeObject=Ys,Un.isBoolean=function(e){return!0===e||!1===e||ea(e)&&Sr(e)==v},Un.isBuffer=Xs,Un.isDate=Gs,Un.isElement=function(e){return ea(e)&&1===e.nodeType&&!ra(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Hs(e)&&(zs(e)||"string"==typeof e||"function"==typeof e.splice||Xs(e)||ua(e)||$s(e)))return!e.length;var t=di(e);if(t==w||t==N)return!e.size;if(Ei(e))return!Pr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return kr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?kr(e,t,o,n):!!r},Un.isError=qs,Un.isFinite=function(e){return"number"==typeof e&&Mt(e)},Un.isFunction=Js,Un.isInteger=Ks,Un.isLength=Qs,Un.isMap=ta,Un.isMatch=function(e,t){return e===t||Ir(e,t,ui(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Ir(e,t,ui(t),n)},Un.isNaN=function(e){return na(e)&&e!=+e},Un.isNative=function(e){if(bi(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=na,Un.isObject=Zs,Un.isObjectLike=ea,Un.isPlainObject=ra,Un.isRegExp=oa,Un.isSafeInteger=function(e){return Ks(e)&&e>=-9007199254740991&&e<=f},Un.isSet=ia,Un.isString=sa,Un.isSymbol=aa,Un.isTypedArray=ua,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return ea(e)&&di(e)==k},Un.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==Sr(e)},Un.join=function(e,t){return null==e?"":Wt.call(e,t)},Un.kebabCase=za,Un.last=qi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=pa(n))<0?gn(r+i,0):vn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ut(e,Vt,i,!0)},Un.lowerCase=Wa,Un.lowerFirst=Ha,Un.lt=la,Un.lte=ca,Un.max=function(e){return e&&e.length?pr(e,nu,Tr):o},Un.maxBy=function(e,t){return e&&e.length?pr(e,si(t,2),Tr):o},Un.mean=function(e){return $t(e,nu)},Un.meanBy=function(e,t){return $t(e,si(t,2))},Un.min=function(e){return e&&e.length?pr(e,nu,Dr):o},Un.minBy=function(e,t){return e&&e.length?pr(e,si(t,2),Dr):o},Un.stubArray=hu,Un.stubFalse=mu,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Eu,Un.nth=function(e,t){return e&&e.length?Br(e,pa(t)):o},Un.noConflict=function(){return ft._===this&&(ft._=Ue),this},Un.noop=au,Un.now=Os,Un.pad=function(e,t,n){e=va(e);var r=(t=pa(t))?cn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return $o(pt(o),n)+e+$o(dt(o),n)},Un.padEnd=function(e,t,n){e=va(e);var r=(t=pa(t))?cn(e):0;return t&&r<t?e+$o(t-r,n):e},Un.padStart=function(e,t,n){e=va(e);var r=(t=pa(t))?cn(e):0;return t&&r<t?$o(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),yn(va(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=da(e),t===o?(t=e,e=0):t=da(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=bn();return vn(e+i*(t-e+at("1e-"+((i+"").length-1))),t)}return Hr(e,t)},Un.reduce=function(e,t,n){var r=zs(e)?Rt:Ht,o=arguments.length<3;return r(e,si(t,4),n,o,cr)},Un.reduceRight=function(e,t,n){var r=zs(e)?Pt:Ht,o=arguments.length<3;return r(e,si(t,4),n,o,fr)},Un.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===o)?1:pa(t),Yr(va(e),t)},Un.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=vo(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[Mi(t[r])];s===o&&(r=i,s=n),e=Js(s)?s.call(e):s}return e},Un.round=wu,Un.runInContext=e,Un.sample=function(e){return(zs(e)?qn:Gr)(e)},Un.size=function(e){if(null==e)return 0;if(Hs(e))return sa(e)?cn(e):e.length;var t=di(e);return t==w||t==N?e.size:Pr(e).length},Un.snakeCase=Ya,Un.some=function(e,t,n){var r=zs(e)?Dt:to;return n&&vi(e,t,n)&&(t=o),r(e,si(t,3))},Un.sortedIndex=function(e,t){return no(e,t)},Un.sortedIndexBy=function(e,t,n){return ro(e,t,si(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&js(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return no(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ro(e,t,si(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(js(e[n],t))return n}return-1},Un.startCase=Xa,Un.startsWith=function(e,t,n){return e=va(e),n=null==n?0:ir(pa(n),0,e.length),t=so(t),e.slice(n,n+t.length)==t},Un.subtract=Su,Un.sum=function(e){return e&&e.length?Yt(e,nu):0},Un.sumBy=function(e,t){return e&&e.length?Yt(e,si(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&vi(e,t,n)&&(t=o),e=va(e),t=ba({},t,r,Jo);var i,s,a=ba({},t.imports,r.imports,Jo),u=ka(a),l=Jt(a,u),c=0,f=t.interpolate||ye,d="__p += '",p=Oe((t.escape||ye).source+"|"+f.source+"|"+(f===K?fe:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(p,(function(t,n,r,o,a,u){return r||(r=o),d+=e.slice(c,u).replace(be,nn),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace($,""):d).replace(z,"$1").replace(W,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Ka((function(){return we(u,h+"return "+d).apply(o,l)}));if(g.source=d,qs(g))throw g;return g},Un.times=function(e,t){if((e=pa(e))<1||e>f)return[];var n=p,r=vn(e,p);t=si(t),e-=p;for(var o=Xt(r,t);++n<e;)t(n);return o},Un.toFinite=da,Un.toInteger=pa,Un.toLength=ha,Un.toLower=function(e){return va(e).toLowerCase()},Un.toNumber=ma,Un.toSafeInteger=function(e){return e?ir(pa(e),-9007199254740991,f):0===e?e:0},Un.toString=va,Un.toUpper=function(e){return va(e).toUpperCase()},Un.trim=function(e,t,n){if((e=va(e))&&(n||t===o))return Gt(e);if(!e||!(t=so(t)))return e;var r=fn(e),i=fn(t);return yo(r,Qt(r,i),Zt(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===o))return e.slice(0,dn(e)+1);if(!e||!(t=so(t)))return e;var r=fn(e);return yo(r,0,Zt(r,fn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=va(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=so(t)))return e;var r=fn(e);return yo(r,Qt(r,fn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(Zs(t)){var i="separator"in t?t.separator:i;n="length"in t?pa(t.length):n,r="omission"in t?so(t.omission):r}var s=(e=va(e)).length;if(rn(e)){var a=fn(e);s=a.length}if(n>=s)return e;var u=n-cn(r);if(u<1)return r;var l=a?yo(a,0,u).join(""):e.slice(0,u);if(i===o)return l+r;if(a&&(u+=l.length-u),oa(i)){if(e.slice(u).search(i)){var c,f=l;for(i.global||(i=Oe(i.source,va(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;l=l.slice(0,d===o?u:d)}}else if(e.indexOf(so(i),u)!=u){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},Un.unescape=function(e){return(e=va(e))&&X.test(e)?e.replace(H,pn):e},Un.uniqueId=function(e){var t=++Pe;return va(e)+t},Un.upperCase=Ga,Un.upperFirst=qa,Un.each=vs,Un.eachRight=_s,Un.first=Hi,su(Un,(gu={},_r(Un,(function(e,t){Re.call(Un.prototype,t)||(gu[t]=e)})),gu),{chain:!1}),Un.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Ot(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===o?1:gn(pa(n),0);var r=this.__filtered__&&!t?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(nu)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Cr(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(Ps(si(e)))},$n.prototype.slice=function(e,t){e=pa(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=pa(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(p)},_r($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof $n,l=a[0],c=u||zs(t),f=function(e){var t=i.apply(Un,Lt([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=s&&!d,m=u&&!p;if(!s&&c){t=m?t:new $n(this);var g=e.apply(t,a);return g.__actions__.push({func:ds,args:[f],thisArg:o}),new Vn(g,d)}return h&&m?e.apply(this,a):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(zs(o)?o:[],e)}return this[n]((function(n){return t.apply(zs(n)?n:[],e)}))}})),_r($n.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Re.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Uo(o,2).name]=[{name:"wrapper",func:o}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=No(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=No(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=No(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=vn(t,e+s);break;case"takeRight":e=gn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,u=a-s,l=r?a:s-1,c=this.__iteratees__,f=c.length,d=0,p=vn(u,this.__takeCount__);if(!n||!r&&o==u&&p==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&d<p;){for(var m=-1,g=e[l+=t];++m<f;){var v=c[m],_=v.iteratee,y=v.type,b=_(g);if(2==y)g=b;else if(!b){if(1==y)continue e;break e}}h[d++]=g}return h},Un.prototype.at=ps,Un.prototype.chain=function(){return fs(this)},Un.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Ui(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ds,args:[Zi],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(Zi)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,qe&&(Un.prototype[qe]=function(){return this}),Un}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},1535:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}},5118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5930),o=n(7416),i=n(4526);function s(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var a=s(o);const u=new WeakMap;function l(e,t){if(!i.isString(e)){if(!e.nodeType)return i.NOOP;e=e.innerHTML}const n=e,o=function(e){let t=u.get(null!=e?e:i.EMPTY_OBJ);return t||(t=Object.create(null),u.set(null!=e?e:i.EMPTY_OBJ,t)),t}(t),s=o[n];if(s)return s;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const l=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},t);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:c}=r.compile(e,l),f=new Function("Vue",c)(a);return f._rc=!0,o[n]=f}o.registerRuntimeCompiler(l),t.compile=l,Object.keys(o).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(t,e)||(t[e]=o[e])}))},4468:function(e,t,n){"use strict";e.exports=n(5118)},9153:function(e,t,n){"use strict";Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=n(4468),o=r.ref([]),i=r.ref(null),s=r.ref(null),a=r.ref(null),u=r.ref(null),l=r.reactive({current:""}),c=[],f=r.ref(!1),d=r.readonly(o),p=r.readonly(i),h=r.readonly(s),m=r.readonly(a),g=r.readonly(u),v=r.readonly(l),_=(e=p.value)=>{l.current=e;const t=d.value.findIndex((t=>t.name===e)),n=d.value.map((e=>e.name));for(let r=0;r<n.length;r++){if(r>0&&r<n.length-1){const e=n[r]+"Minus",o=n[r]+"Plus";l[e]=t<=r,l[o]=t>=r}l[n[r]]=n[r]===e}},y=(e=h.value)=>{l.orientation=e,l.isLandscape="landscape"===e,l.isPortrait="portrait"===e},b=(e=m.value||"light")=>{l.theme=e,l.isDark="dark"===e,l.isLight="light"===e},E=(e=g.value||"no-preference")=>{l.motionPreference=e,l.isMotion="no-preference"===e,l.isInert="reduce"===e};function w(e,t){if(typeof window>"u"||!window.matchMedia)return!1;if(typeof window<"u"&&!window.matchMedia)return console.error("Vue3 Mq: No MatchMedia support detected in this browser. Responsive breakpoints not available."),!1;{f.value=!0;const n=window.matchMedia(e),r=({matches:e})=>{e&&t()};c.push({mql:n,cb:r}),n.addEventListener&&"function"==typeof n.addEventListener?n.addEventListener("change",r):n.addListener(r),r(n)}}const S=e=>d.value.some((t=>t.name===e)),T=(e,t)=>{const n=t.value.map((e=>e.name));if(e){if(Array.isArray(e))return e.filter((e=>S(e)));if("string"==typeof e&&/\w+\+$/.test(e)){if(e=e.replace(/\+$/,""),!1===S(e))return console.error(`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`),n;const r=t.value.findIndex((t=>t.name===e));return t.value.slice(r).map((e=>e.name))}if("string"==typeof e&&/\w+-$/.test(e)){if(e=e.replace(/-$/,""),!1===S(e))return console.error(`Vue3 Mq: ${e} is not a valid breakpoint key. Invalid range.`),n;const r=t.value.findIndex((t=>t.name===e));return t.value.slice(0,r+1).map((e=>e.name))}if("string"==typeof e&&/^\w+-\w+$/.test(e)){const[r,o]=e.split("-");if(!1===S(r))return console.error(`Vue3 Mq: ${r} is not a valid breakpoint key. Invalid range.`),n;if(!1===S(o))return console.error(`Vue3 Mq: ${o} is not a valid breakpoint key. Invalid range.`),n;const i=t.value.findIndex((e=>e.name===r)),s=t.value.findIndex((e=>e.name===o));return t.value.slice(i,s+1).map((e=>e.name))}return"string"==typeof e&&!0===S(e)?[e]:n}return n},O=(e,t)=>{const n=[];return e||t?(e&&n.push("landscape"),t&&n.push("portrait"),n):["landscape","portrait"]},x=(e,t)=>{const n=[];return t||e?(t&&n.push("light"),e&&n.push("dark"),n):["light","dark"]},N=(e,t)=>{const n=[];return e||t?(e&&n.push("reduce"),t&&n.push("no-preference"),n):["reduce","no-preference"]},C=Object.freeze(Object.defineProperty({__proto__:null,bootstrap5:{xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},bootstrap4:{xs:0,sm:576,md:768,lg:992,xl:1200},bootstrap3:{xs:0,sm:768,md:992,lg:1200},vuetify:{xs:0,sm:600,md:960,lg:1264,xl:1904},tailwind:{xs:0,sm:640,md:768,lg:1024,xl:1280,xxl:1536},devices:{phone:0,tablet:768,laptop:1370,desktop:1906},wordpress:{mobile:0,small:600,medium:782,large:960,xlarge:1080,wide:1280,huge:1440}},Symbol.toStringTag,{value:"Module"})),A=e=>{if(!e||"object"!=typeof e)return!1;const t=[];for(let n in e){const r=parseFloat(e[n]);n&&"string"==typeof n?/^[^a-z]/i.test(n)||/[^a-zA-Z0-9_]/.test(n)?console.warn(`Vue3 Mq: "${n}" is an invalid breakpoint key. Breakpoint keys must start with a letter and contain only alphanumeric characters and underscores. Skipping.`):!r&&0!==r||isNaN(r)||r<0?console.warn(`Vue3 Mq: "${n}: ${e[n]}" is not a valid breakpoint. Breakpoints should be a number of zero or above. Skipping.`):t.push({name:n,min:r}):console.warn(`Vue3 Mq: Invalid or missing breakpoint key (${JSON.stringify(n)}). Skipping.`)}return t.some((e=>0===e.min))||console.warn("Vue3 Mq: You have not declared a breakpoint with a minimum value of 0. There may be screen sizes to which Vue3Mq does not respond."),new Set(t.map((e=>e.min))).size<t.length&&console.warn("Vue3 Mq: Your breakpoint configuration contains duplicate values. Behaviour may be unpredictable."),0!==t.length&&t.sort(((e,t)=>e.min-t.min))},k=e=>{const t=e.split(":"),n={};for(let e of t)!1!==/\D/.test(e)&&(["landscape","portrait"].includes(e)?n.slotOrientation=e:["light","dark"].includes(e)?n.slotTheme=e:["inert","motion"].includes(e)?n.slotMotion=e:n.slotBp=e);return n},I={name:"fade",mode:"out-in"},L={name:"MqResponsive",props:{target:[String,Array],landscape:{type:Boolean,default:!1},portrait:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},light:{type:Boolean,default:!1},inert:{type:Boolean,default:!1},motion:{type:Boolean,default:!1},tag:{type:String,default:"div"},listTag:{type:String,default:"div"},group:{type:Boolean,default:!1}},setup(e,{attrs:t,emit:n,slots:o}){const i=r.computed((()=>T(e.target,d))),s=r.computed((()=>O(e.landscape,e.portrait))),a=r.computed((()=>x(e.dark,e.light))),u=r.computed((()=>N(e.inert,e.motion))),l=r.computed((()=>i.value.includes(v.current)&&s.value.includes(v.orientation)&&a.value.includes(v.theme)&&u.value.includes(v.motionPreference)));return o.default?()=>l.value?r.h(e.tag,{...t},o.default()):void 0:()=>{const n=Object.assign({},I,t,{tag:e.tag}),i=e.group?r.TransitionGroup:r.Transition;return r.h(i,n,(()=>(t=>{if(!e.group&&o.length>0)return o;const n=[];for(let e in o){const{slotBp:i,slotOrientation:s,slotTheme:a,slotMotion:u}=k(e),l=r.computed((()=>T(i,d))),c=r.computed((()=>O("landscape"===s,"portrait"===s))),f=r.computed((()=>x("dark"===a,"light"===a))),p=r.computed((()=>N("inert"===u,"motion"===u)));!0===r.computed((()=>l.value.includes(v.current)&&c.value.includes(v.orientation)&&f.value.includes(v.theme)&&p.value.includes(v.motionPreference))).value&&n.push(r.h(t||o[e],{key:e},t?o[e]():void 0))}return n.length>0?n:void 0})(e.listTag)))}}};function R({breakpoints:e,preset:t}){const n=!!t&&(e=>{if("string"==typeof e&&C[e])return C[e];{const t=Object.keys(C);return console.error(`Vue3 Mq: "${e}" is not a valid preset. Available options are: ${t.join(", ")}`),!1}})(t),r=!!e&&A(e);if(!1===n&&!r)throw new TypeError("Vue3 Mq: You must provide a valid preset, or valid breakpoint settings.");(e=>{o.value=e})(r||A(n)),function(){for(;c.length>0;){const e=c.shift();if(e&&"object"==typeof e){const{mql:t,cb:n}=e;t.addEventListener&&"function"==typeof t.addEventListener?t.removeEventListener("change",n):t.removeListener(n)}}}(),(()=>{const e=Object.keys(l);for(let t of e)delete l[t];_(),y(),b(),E()})();const i=d.value.reduce(((e,t,n,r)=>{const o=`(min-width: ${t.min}px)`,i=n<r.length-1?`(max-width: ${r[n+1].min-1}px)`:null,s=o+(i?" and "+i:"");return Object.assign(e,{[t.name]:s})}),{});for(const e in i)w(i[e],(()=>{_(e)}));["portrait","landscape"].forEach((e=>{w(`(orientation: ${e})`,(()=>{y(e)}))})),["light","dark"].forEach((e=>{w(`(prefers-color-scheme: ${e})`,(()=>{b(e)}))})),["reduce","no-preference"].forEach((e=>{w(`(prefers-reduced-motion: ${e})`,(()=>{E(e)}))}))}const P={install:(e,{preset:t="bootstrap5",breakpoints:n,defaultBreakpoint:r,defaultOrientation:o="landscape",defaultMotion:l="no-preference",defaultTheme:c,global:f=!1}={})=>{try{const d=(e=>!1===["landscape","portrait"].includes(e)?(console.error(`Vue3 Mq: "${e}" is not a valid default orientation. Reverting to unset value.`),null):e)(o),p=((e=null)=>!1===["dark","light"].includes(e)&&null!==e?(console.error(`Vue3 Mq: "${e}" is not a valid default theme. Reverting to unset value.`),null):e)(c),h=((e=null)=>!1===["no-preference","reduce"].includes(e)&&null!==e?(console.error(`Vue3 Mq: "${e}" is not a valid default motion preference. Reverting to unset value.`),null):e)(l);(e=>{i.value=e})(r),(e=>{s.value=e})(d),(e=>{a.value=e})(p),(e=>{u.value=e})(h),e.provide("mq",v),e.provide("updateBreakpoints",R),!0===f&&(e.component("MqResponsive",MqResponsive),e.config.globalProperties.$mq=v),R({breakpoints:n,preset:t})}catch(e){console.error(e)}}};t.MqResponsive=L,t.Vue3Mq=P,t.availableBreakpoints=d,t.updateBreakpoints=R,t.useMq=function(){const e=r.inject("mq");if(e)return e;throw new Error("Vue3Mq is not installed in this app. Please follow the installation instructions and try again.")}},9677:function(e,t,n){"use strict";var r=n(6270);t.A=(0,r.hU)({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en",messages:function(){const e=n(2013),t={};return e.keys().forEach((n=>{const r=n.match(/([A-Za-z0-9-_]+)\./i);if(r&&r.length>1){const o=r[1];t[o]=e(n)}})),t}()})},9819:function(e,t,n){"use strict";n.d(t,{TT:function(){return o},kf:function(){return s},vn:function(){return i}});var r=n(3147);function o(e,t,n){return"marked"==t||"created"==t?e=r.Ay.sortBy(e,t):e.sort((function(e,n){if(t.endsWith("__html"))var r=e.data[t].value,o=n.data[t].value;else r=e.data[t],o=n.data[t];return void 0!==r&&r?void 0===o?1:(isNaN(r)?(r=r.toLowerCase(),o=o.toLowerCase()):(r=parseInt(r),o=parseInt(o)),r<o?-1:1):-1})),1==n?e:e.reverse()}function i(e){return!!(e.startsWith("checkbox")||e.startsWith("radio-group")||e.startsWith("select"))}function s(e){return e.name.startsWith("number")}},5624:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(5106),o=n(6270),i=n(8266),s=n.n(i),a=n(9819),u=n(6061),l=n(2529),c=n(3147),f=n(6820);const d=(0,r.nY)("dataDisplayStore",{state:()=>({downloading_items:!0,ui_language:"en",endpoint:null,ui:{display_panel:!0,numeric_totals:!1,extended_filters:!1,pdf_builder:!1},item_endpoint:null,items:[],data_type:null,search_text:"",searched_items:[],deleted_fields:[],default_field_index:[],meta:{ascending:!0},user_prefs:{},page:1,page_length:10,card_batch:1,card_batch_length:20,can_edit:!1,show_modes:!1,show_other_options:!1,has_row_controls:!1,delete_item_initiated:null,include_deleted_fields:!1,display_items_as:"grid",enabled_exports:[],extended_filters:{},pdf_prefs:{default:!0,selected_fields:[],portrait:!1,font_size:8,page_size:"A4"}}),getters:{itemsToDisplay:e=>{var t=e.searched_items.length||e.search_text?e.searched_items:e.items;let n=Object.keys(e.extended_filters);if(0==n.length)return t;var r=[];return Object.entries(t).forEach((t=>{for(const[o,i]of Object.entries(t[1].data)){if(!n.includes(o))continue;let s=i.split(", "),a=e.extended_filters[o];if((0,f.intersectionBy)(s,a).length){r.push(t[1]);break}}})),r},paginatedItems:e=>{let t=(e.page-1)*e.page_length;return e.itemsToDisplay.slice(t,t+e.page_length)},paginatedCards:e=>{let t=e.itemsToDisplay;var n=(e.card_batch+1)*e.card_batch_length;return n>t.length&&(n=t.length),t.slice(0,n)},first_field:e=>"marked"!=e.user_prefs.field_index[0].name?e.user_prefs.field_index[0]:e.user_prefs.field_index[1],getFormattedValue:e=>t=>{var n=t.field_name,r=t.field_value;if(void 0===r)return"Empty";if("boolean"==typeof r)return r?"True":"False";if("marked"==n)return r?"True":"False";if("created"==n)return(0,u.A)((0,l.A)(r),"yyyy-MM-dd kk:mm:ss");if((0,a.vn)(n)){var o=[];if(r.split(", ").forEach((t=>{var r=e.getOptionLabel({field_name:n,option_value:t});o.push(r)})),o.length>0)return o.join(", ")}return""===r?"Empty":r},getFieldLabel:e=>t=>{var n=e.field_index.find((e=>e.name===t));return void 0!==n?n.label:null},all_multichoice_fields:e=>{if(void 0===e.meta.form_structure)return[];var t=[];return e.meta.form_structure.forEach((e=>{e.name&&(0,a.vn)(e.name)&&t.push(e)})),t},getFieldOptions:e=>t=>{if(!(0,a.vn)(t))return[];let n=e.getFieldStructure(t);var r=[];for(let e in n.values)r.push(n.values[e]);return r},getOptionLabel:e=>t=>{var n=t.field_name,r=t.option_value,o=e.getFieldStructure(n),i=r;return void 0===o||o.values.forEach((e=>{e.value==r&&(i=e.label)})),i},field_index:e=>e.include_deleted_fields&&e.deleted_fields.length?e.user_prefs.field_index.concat(e.deleted_fields):e.user_prefs.field_index,getFieldStructure:e=>t=>c.Ay.findWhere(e.meta.form_structure,{name:t}),isFieldDeletedField:e=>t=>null!=e.deleted_fields.find((e=>e.name==t))},actions:{setLanguage(e){const{locale:t}=(0,o.s9)({useScope:"global"});t.value=e,this.ui_language=e},async downloadItems(){let e=this.endpoint;await s().get(e).then((e=>{this.meta=e.data.meta,this.deleted_fields=this.meta.deleted_fields,this.item_endpoint=this.meta.item_endpoint,this.data_type=this.meta.data_type,this.can_edit=this.meta.can_edit,this.show_modes=!0===this.meta.show_modes,this.enabled_exports=void 0!==this.meta.enabled_exports?this.meta.enabled_exports:[],this.default_field_index=this.meta.default_field_index,this.user_prefs=e.data.user_prefs,null!==this.user_prefs.pdf&&(this.pdf_prefs=this.user_prefs.pdf),this.extended_filters=void 0!==e.data.user_prefs.extended_filters?e.data.user_prefs.extended_filters:{};var t=(0,a.TT)(e.data.items,this.user_prefs.order_by,this.user_prefs.ascending);this.items=t,this.has_row_controls="answer"==this.data_type,this.downloading_items=!1})).catch((e=>{console.log(e)})).finally((()=>{this.downloading_items=!1}))},setOrderBy(e){this.user_prefs.order_by=e,this.page=1,this.items=(0,a.TT)(this.items,this.user_prefs.order_by,this.user_prefs.ascending),s().post(this.endpoint+"/order-by-field",{order_by_field_name:e}).then((function(e){})).catch((function(e){console.log(e)}))},setAscending(e){this.user_prefs.ascending=e,this.page=1,this.items=(0,a.TT)(this.items,this.user_prefs.order_by,this.user_prefs.ascending),this.searched_items.length&&(this.searched_items=(0,a.TT)(this.searched_items,this.user_prefs.order_by,this.user_prefs.ascending)),s().post(this.endpoint+"/toggle-ascending").then((function(e){})).catch((function(e){console.log(e)}))}}})},8789:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\n.modal-title {\n line-height: var(--lf-modal-title-line-height);\n font-size: 1.25rem !important;\n font-weight: lighter !important;\n}\n\n",""]),t.default=s},3855:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\n.ds-controls-height[data-v-5a3c677a] {\n min-height: 31px !important;\n}\n.ds-controls-title svg[data-v-5a3c677a] {\n color: var(--lf-link-color);\n cursor: pointer;\n}\n",""]),t.default=s},4211:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\n.ds-mt-n1[data-v-e627cbac] {\n margin-top: -1em;\n}\n.ds-controls-height[data-v-e627cbac] {\n min-height: 31px !important;\n}\n\n",""]),t.default=s},6081:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\n.ds-controls-title svg {\n color: var(--lf-link-color);\n cursor: pointer;\n}\n.ds-button-container {\n display: flex;\n flex-wrap: wrap;\n gap: 0.25rem;\n}\n.ds-button-container > button {\n margin-top: 1em;\n}\n",""]),t.default=s},4666:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\na[data-v-441891a4] {\n color: var(--bs-body-color);\n text-decoration: none;\n}\n.ds-export-button[data-v-441891a4] {\n margin-left: .5rem;\n}\n",""]),t.default=s},4966:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\n.ds-controls-height[data-v-2f6340bc] {\n min-height: 31px !important;\n}\n.ds-controls-title svg[data-v-2f6340bc] {\n color: var(--lf-link-color);\n cursor: pointer;\n}\n",""]),t.default=s},4421:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\n.ds-mt-n1[data-v-142a5867] {\n margin-top: -1em !important;\n}\n",""]),t.default=s},3229:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\n.ds-filter-label[data-v-46321830] {\n align-items: center;\n padding: 0.375rem 0.75rem;\n background-color: var(--lf-gray-100);\n border: 1px solid var(--lf-gray-300);\n white-space: nowrap;\n}\n.ds-option-filter[data-v-46321830] {\n white-space: nowrap;\n}\n\n",""]),t.default=s},1232:function(e,t,n){"use strict";n.r(t);var r=n(9248),o=n.n(r),i=n(9089),s=n.n(i)()(o());s.push([e.id,"\nhr[data-v-758fefef] {\n margin: 0;\n margin-left: -1em;\n margin-right: -1em;\n}\n",""]),t.default=s},7916:function(e,t,n){var r=n(8789);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("8b6504ce",r,!1,{})},4192:function(e,t,n){var r=n(3855);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("5d07e9e4",r,!1,{})},480:function(e,t,n){var r=n(4211);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("e4559334",r,!1,{})},582:function(e,t,n){var r=n(6081);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("030e343a",r,!1,{})},1803:function(e,t,n){var r=n(4666);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("511d1eda",r,!1,{})},1865:function(e,t,n){var r=n(4966);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("44757bb2",r,!1,{})},6178:function(e,t,n){var r=n(4421);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("7b05ff2c",r,!1,{})},3104:function(e,t,n){var r=n(3229);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("4da611a5",r,!1,{})},681:function(e,t,n){var r=n(1232);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(8449).A)("b145d0e4",r,!1,{})},8449:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],s=i[0],a={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.d(t,{A:function(){return h}});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,l=!1,c=function(){},f=null,d="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){l=n,f=o||{};var s=r(e,t);return m(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o];(u=i[a.id]).refs--,n.push(u)}for(t?m(s=r(e,t)):s=[],o=0;o<n.length;o++){var u;if(0===(u=n[o]).refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete i[u.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(v(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(v(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(l)return c;r.parentNode.removeChild(r)}if(p){var o=u++;r=a||(a=g()),t=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=g(),t=E.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var _,y=(_=[],function(e,t){return _[e]=t,_.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function E(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute(d,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},2013:function(e,t,n){var r={"./ca.json":8434,"./cs.json":9504,"./de.json":369,"./en.json":389,"./eo.json":9946,"./es.json":8302,"./eu.json":2704,"./fr.json":5222,"./it.json":4895,"./oc.json":3484,"./pl.json":9026,"./pt_BR.json":6611,"./ru.json":671,"./zh_Hans.json":641,"./zh_Hant.json":6984};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2013},901:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:function(){return r}})},3147:function(e,t,n){"use strict";n.d(t,{Ay:function(){return zn}});var r={};n.r(r),n.d(r,{VERSION:function(){return o},after:function(){return Pt},all:function(){return en},allKeys:function(){return ge},any:function(){return tn},assign:function(){return Pe},before:function(){return Dt},bind:function(){return wt},bindAll:function(){return Ot},chain:function(){return _t},chunk:function(){return Un},clone:function(){return Ue},collect:function(){return Gt},compact:function(){return Nn},compose:function(){return Rt},constant:function(){return Q},contains:function(){return nn},countBy:function(){return vn},create:function(){return Fe},debounce:function(){return kt},default:function(){return Vn},defaults:function(){return De},defer:function(){return Ct},delay:function(){return Nt},detect:function(){return Ht},difference:function(){return An},drop:function(){return On},each:function(){return Xt},escape:function(){return st},every:function(){return en},extend:function(){return Re},extendOwn:function(){return Pe},filter:function(){return Qt},find:function(){return Ht},findIndex:function(){return jt},findKey:function(){return Ft},findLastIndex:function(){return Bt},findWhere:function(){return Yt},first:function(){return Tn},flatten:function(){return Cn},foldl:function(){return Jt},foldr:function(){return Kt},forEach:function(){return Xt},functions:function(){return Ie},get:function(){return ze},groupBy:function(){return mn},has:function(){return We},head:function(){return Tn},identity:function(){return He},include:function(){return nn},includes:function(){return nn},indexBy:function(){return gn},indexOf:function(){return zt},initial:function(){return Sn},inject:function(){return Jt},intersection:function(){return Rn},invert:function(){return ke},invoke:function(){return rn},isArguments:function(){return q},isArray:function(){return Y},isArrayBuffer:function(){return F},isBoolean:function(){return C},isDataView:function(){return H},isDate:function(){return R},isElement:function(){return A},isEmpty:function(){return ue},isEqual:function(){return me},isError:function(){return D},isFinite:function(){return J},isFunction:function(){return B},isMap:function(){return Te},isMatch:function(){return le},isNaN:function(){return K},isNull:function(){return x},isNumber:function(){return L},isObject:function(){return O},isRegExp:function(){return P},isSet:function(){return xe},isString:function(){return I},isSymbol:function(){return M},isTypedArray:function(){return oe},isUndefined:function(){return N},isWeakMap:function(){return Oe},isWeakSet:function(){return Ne},iteratee:function(){return Je},keys:function(){return ae},last:function(){return xn},lastIndexOf:function(){return Wt},map:function(){return Gt},mapObject:function(){return Qe},matcher:function(){return Ye},matches:function(){return Ye},max:function(){return an},memoize:function(){return xt},methods:function(){return Ie},min:function(){return un},mixin:function(){return Bn},negate:function(){return Lt},noop:function(){return Ze},now:function(){return rt},object:function(){return Mn},omit:function(){return wn},once:function(){return Mt},pairs:function(){return Ae},partial:function(){return Et},partition:function(){return _n},pick:function(){return En},pluck:function(){return on},property:function(){return Xe},propertyOf:function(){return et},random:function(){return nt},range:function(){return Fn},reduce:function(){return Jt},reduceRight:function(){return Kt},reject:function(){return Zt},rest:function(){return On},restArguments:function(){return T},result:function(){return mt},sample:function(){return fn},select:function(){return Qt},shuffle:function(){return dn},size:function(){return yn},some:function(){return tn},sortBy:function(){return pn},sortedIndex:function(){return Vt},tail:function(){return On},take:function(){return Tn},tap:function(){return je},template:function(){return ht},templateSettings:function(){return ut},throttle:function(){return At},times:function(){return tt},toArray:function(){return cn},toPath:function(){return Be},transpose:function(){return Pn},unescape:function(){return at},union:function(){return Ln},uniq:function(){return In},unique:function(){return In},uniqueId:function(){return vt},unzip:function(){return Pn},values:function(){return Ce},where:function(){return sn},without:function(){return kn},wrap:function(){return It},zip:function(){return Dn}});var o="1.13.6",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},s=Array.prototype,a=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,l=s.push,c=s.slice,f=a.toString,d=a.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,m=Array.isArray,g=Object.keys,v=Object.create,_=p&&ArrayBuffer.isView,y=isNaN,b=isFinite,E=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=Math.pow(2,53)-1;function T(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(o=0;o<t;o++)i[o]=arguments[o];return i[t]=r,e.apply(this,i)}}function O(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function x(e){return null===e}function N(e){return void 0===e}function C(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)}function A(e){return!(!e||1!==e.nodeType)}function k(e){var t="[object "+e+"]";return function(e){return f.call(e)===t}}var I=k("String"),L=k("Number"),R=k("Date"),P=k("RegExp"),D=k("Error"),M=k("Symbol"),F=k("ArrayBuffer"),U=k("Function"),j=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&(U=function(e){return"function"==typeof e||!1});var B=U,V=k("Object"),$=h&&V(new DataView(new ArrayBuffer(8))),z="undefined"!=typeof Map&&V(new Map),W=k("DataView"),H=$?function(e){return null!=e&&B(e.getInt8)&&F(e.buffer)}:W,Y=m||k("Array");function X(e,t){return null!=e&&d.call(e,t)}var G=k("Arguments");!function(){G(arguments)||(G=function(e){return X(e,"callee")})}();var q=G;function J(e){return!M(e)&&b(e)&&!isNaN(parseFloat(e))}function K(e){return L(e)&&y(e)}function Q(e){return function(){return e}}function Z(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=S}}function ee(e){return function(t){return null==t?void 0:t[e]}}var te=ee("byteLength"),ne=Z(te),re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,oe=p?function(e){return _?_(e)&&!H(e):ne(e)&&re.test(f.call(e))}:Q(!1),ie=ee("length");function se(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return!0===t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=w.length,r=e.constructor,o=B(r)&&r.prototype||a,i="constructor";for(X(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=w[n])in e&&e[i]!==o[i]&&!t.contains(i)&&t.push(i)}function ae(e){if(!O(e))return[];if(g)return g(e);var t=[];for(var n in e)X(e,n)&&t.push(n);return E&&se(e,t),t}function ue(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&(Y(e)||I(e)||q(e))?0===t:0===ie(ae(e))}function le(e,t){var n=ae(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var s=n[i];if(t[s]!==o[s]||!(s in o))return!1}return!0}function ce(e){return e instanceof ce?e:this instanceof ce?void(this._wrapped=e):new ce(e)}function fe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ce.VERSION=o,ce.prototype.value=function(){return this._wrapped},ce.prototype.valueOf=ce.prototype.toJSON=ce.prototype.value,ce.prototype.toString=function(){return String(this._wrapped)};var de="[object DataView]";function pe(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&he(e,t,n,r)}function he(e,t,n,r){e instanceof ce&&(e=e._wrapped),t instanceof ce&&(t=t._wrapped);var o=f.call(e);if(o!==f.call(t))return!1;if($&&"[object Object]"==o&&H(e)){if(!H(t))return!1;o=de}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return u.valueOf.call(e)===u.valueOf.call(t);case"[object ArrayBuffer]":case de:return he(fe(e),fe(t),n,r)}var i="[object Array]"===o;if(!i&&oe(e)){if(te(e)!==te(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!(B(s)&&s instanceof s&&B(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),i){if((l=e.length)!==t.length)return!1;for(;l--;)if(!pe(e[l],t[l],n,r))return!1}else{var c,d=ae(e);if(l=d.length,ae(t).length!==l)return!1;for(;l--;)if(!X(t,c=d[l])||!pe(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function me(e,t){return pe(e,t)}function ge(e){if(!O(e))return[];var t=[];for(var n in e)t.push(n);return E&&se(e,t),t}function ve(e){var t=ie(e);return function(n){if(null==n)return!1;var r=ge(n);if(ie(r))return!1;for(var o=0;o<t;o++)if(!B(n[e[o]]))return!1;return e!==we||!B(n[_e])}}var _e="forEach",ye=["clear","delete"],be=["get","has","set"],Ee=ye.concat(_e,be),we=ye.concat(be),Se=["add"].concat(ye,_e,"has"),Te=z?ve(Ee):k("Map"),Oe=z?ve(we):k("WeakMap"),xe=z?ve(Se):k("Set"),Ne=k("WeakSet");function Ce(e){for(var t=ae(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r}function Ae(e){for(var t=ae(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r}function ke(e){for(var t={},n=ae(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t}function Ie(e){var t=[];for(var n in e)B(e[n])&&t.push(n);return t.sort()}function Le(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],s=e(i),a=s.length,u=0;u<a;u++){var l=s[u];t&&void 0!==n[l]||(n[l]=i[l])}return n}}var Re=Le(ge),Pe=Le(ae),De=Le(ge,!0);function Me(e){if(!O(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function Fe(e,t){var n=Me(e);return t&&Pe(n,t),n}function Ue(e){return O(e)?Y(e)?e.slice():Re({},e):e}function je(e,t){return t(e),e}function Be(e){return Y(e)?e:[e]}function Ve(e){return ce.toPath(e)}function $e(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function ze(e,t,n){var r=$e(e,Ve(t));return N(r)?n:r}function We(e,t){for(var n=(t=Ve(t)).length,r=0;r<n;r++){var o=t[r];if(!X(e,o))return!1;e=e[o]}return!!n}function He(e){return e}function Ye(e){return e=Pe({},e),function(t){return le(t,e)}}function Xe(e){return e=Ve(e),function(t){return $e(t,e)}}function Ge(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}}function qe(e,t,n){return null==e?He:B(e)?Ge(e,t,n):O(e)&&!Y(e)?Ye(e):Xe(e)}function Je(e,t){return qe(e,t,1/0)}function Ke(e,t,n){return ce.iteratee!==Je?ce.iteratee(e,t):qe(e,t,n)}function Qe(e,t,n){t=Ke(t,n);for(var r=ae(e),o=r.length,i={},s=0;s<o;s++){var a=r[s];i[a]=t(e[a],a,e)}return i}function Ze(){}function et(e){return null==e?Ze:function(t){return ze(e,t)}}function tt(e,t,n){var r=Array(Math.max(0,e));t=Ge(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r}function nt(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ce.toPath=Be,ce.iteratee=Je;var rt=Date.now||function(){return(new Date).getTime()};function ot(e){var t=function(t){return e[t]},n="(?:"+ae(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}}var it={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},st=ot(it),at=ot(ke(it)),ut=ce.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},lt=/(.)^/,ct={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ft=/\\|'|\r|\n|\u2028|\u2029/g;function dt(e){return"\\"+ct[e]}var pt=/^\s*(\w|\$)+\s*$/;function ht(e,t,n){!t&&n&&(t=n),t=De({},t,ce.templateSettings);var r=RegExp([(t.escape||lt).source,(t.interpolate||lt).source,(t.evaluate||lt).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,(function(t,n,r,s,a){return i+=e.slice(o,a).replace(ft,dt),o=a+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(i+="';\n"+s+"\n__p+='"),t})),i+="';\n";var s,a=t.variable;if(a){if(!pt.test(a))throw new Error("variable is not a bare identifier: "+a)}else i="with(obj||{}){\n"+i+"}\n",a="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{s=new Function(a,"_",i)}catch(e){throw e.source=i,e}var u=function(e){return s.call(this,e,ce)};return u.source="function("+a+"){\n"+i+"}",u}function mt(e,t,n){var r=(t=Ve(t)).length;if(!r)return B(n)?n.call(e):n;for(var o=0;o<r;o++){var i=null==e?void 0:e[t[o]];void 0===i&&(i=n,o=r),e=B(i)?i.call(e):i}return e}var gt=0;function vt(e){var t=++gt+"";return e?e+t:t}function _t(e){var t=ce(e);return t._chain=!0,t}function yt(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=Me(e.prototype),s=e.apply(i,o);return O(s)?s:i}var bt=T((function(e,t){var n=bt.placeholder,r=function(){for(var o=0,i=t.length,s=Array(i),a=0;a<i;a++)s[a]=t[a]===n?arguments[o++]:t[a];for(;o<arguments.length;)s.push(arguments[o++]);return yt(e,r,this,this,s)};return r}));bt.placeholder=ce;var Et=bt,wt=T((function(e,t,n){if(!B(e))throw new TypeError("Bind must be called on a function");var r=T((function(o){return yt(e,r,t,this,n.concat(o))}));return r})),St=Z(ie);function Tt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var o=r.length,i=0,s=ie(e);i<s;i++){var a=e[i];if(St(a)&&(Y(a)||q(a)))if(t>1)Tt(a,t-1,n,r),o=r.length;else for(var u=0,l=a.length;u<l;)r[o++]=a[u++];else n||(r[o++]=a)}return r}var Ot=T((function(e,t){var n=(t=Tt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=wt(e[r],e)}return e}));function xt(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return X(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n}var Nt=T((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Ct=Et(Nt,ce,1);function At(e,t,n){var r,o,i,s,a=0;n||(n={});var u=function(){a=!1===n.leading?0:rt(),r=null,s=e.apply(o,i),r||(o=i=null)},l=function(){var l=rt();a||!1!==n.leading||(a=l);var c=t-(l-a);return o=this,i=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),a=l,s=e.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(u,c)),s};return l.cancel=function(){clearTimeout(r),a=0,r=o=i=null},l}function kt(e,t,n){var r,o,i,s,a,u=function(){var l=rt()-o;t>l?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(a,i)),r||(i=a=null))},l=T((function(l){return a=this,i=l,o=rt(),r||(r=setTimeout(u,t),n&&(s=e.apply(a,i))),s}));return l.cancel=function(){clearTimeout(r),r=i=a=null},l}function It(e,t){return Et(t,e)}function Lt(e){return function(){return!e.apply(this,arguments)}}function Rt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Pt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Dt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Mt=Et(Dt,2);function Ft(e,t,n){t=Ke(t,n);for(var r,o=ae(e),i=0,s=o.length;i<s;i++)if(t(e[r=o[i]],r,e))return r}function Ut(e){return function(t,n,r){n=Ke(n,r);for(var o=ie(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}var jt=Ut(1),Bt=Ut(-1);function Vt(e,t,n,r){for(var o=(n=Ke(n,r,1))(t),i=0,s=ie(e);i<s;){var a=Math.floor((i+s)/2);n(e[a])<o?i=a+1:s=a}return i}function $t(e,t,n){return function(r,o,i){var s=0,a=ie(r);if("number"==typeof i)e>0?s=i>=0?i:Math.max(i+a,s):a=i>=0?Math.min(i+1,a):i+a+1;else if(n&&i&&a)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=t(c.call(r,s,a),K))>=0?i+s:-1;for(i=e>0?s:a-1;i>=0&&i<a;i+=e)if(r[i]===o)return i;return-1}}var zt=$t(1,jt,Vt),Wt=$t(-1,Bt);function Ht(e,t,n){var r=(St(e)?jt:Ft)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Yt(e,t){return Ht(e,Ye(t))}function Xt(e,t,n){var r,o;if(t=Ge(t,n),St(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=ae(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e}function Gt(e,t,n){t=Ke(t,n);for(var r=!St(e)&&ae(e),o=(r||e).length,i=Array(o),s=0;s<o;s++){var a=r?r[s]:s;i[s]=t(e[a],a,e)}return i}function qt(e){return function(t,n,r,o){var i=arguments.length>=3;return function(t,n,r,o){var i=!St(t)&&ae(t),s=(i||t).length,a=e>0?0:s-1;for(o||(r=t[i?i[a]:a],a+=e);a>=0&&a<s;a+=e){var u=i?i[a]:a;r=n(r,t[u],u,t)}return r}(t,Ge(n,o,4),r,i)}}var Jt=qt(1),Kt=qt(-1);function Qt(e,t,n){var r=[];return t=Ke(t,n),Xt(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function Zt(e,t,n){return Qt(e,Lt(Ke(t)),n)}function en(e,t,n){t=Ke(t,n);for(var r=!St(e)&&ae(e),o=(r||e).length,i=0;i<o;i++){var s=r?r[i]:i;if(!t(e[s],s,e))return!1}return!0}function tn(e,t,n){t=Ke(t,n);for(var r=!St(e)&&ae(e),o=(r||e).length,i=0;i<o;i++){var s=r?r[i]:i;if(t(e[s],s,e))return!0}return!1}function nn(e,t,n,r){return St(e)||(e=Ce(e)),("number"!=typeof n||r)&&(n=0),zt(e,t,n)>=0}var rn=T((function(e,t,n){var r,o;return B(t)?o=t:(t=Ve(t),r=t.slice(0,-1),t=t[t.length-1]),Gt(e,(function(e){var i=o;if(!i){if(r&&r.length&&(e=$e(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function on(e,t){return Gt(e,Xe(t))}function sn(e,t){return Qt(e,Ye(t))}function an(e,t,n){var r,o,i=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,u=(e=St(e)?e:Ce(e)).length;a<u;a++)null!=(r=e[a])&&r>i&&(i=r);else t=Ke(t,n),Xt(e,(function(e,n,r){((o=t(e,n,r))>s||o===-1/0&&i===-1/0)&&(i=e,s=o)}));return i}function un(e,t,n){var r,o,i=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,u=(e=St(e)?e:Ce(e)).length;a<u;a++)null!=(r=e[a])&&r<i&&(i=r);else t=Ke(t,n),Xt(e,(function(e,n,r){((o=t(e,n,r))<s||o===1/0&&i===1/0)&&(i=e,s=o)}));return i}var ln=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function cn(e){return e?Y(e)?c.call(e):I(e)?e.match(ln):St(e)?Gt(e,He):Ce(e):[]}function fn(e,t,n){if(null==t||n)return St(e)||(e=Ce(e)),e[nt(e.length-1)];var r=cn(e),o=ie(r);t=Math.max(Math.min(t,o),0);for(var i=o-1,s=0;s<t;s++){var a=nt(s,i),u=r[s];r[s]=r[a],r[a]=u}return r.slice(0,t)}function dn(e){return fn(e,1/0)}function pn(e,t,n){var r=0;return t=Ke(t,n),on(Gt(e,(function(e,n,o){return{value:e,index:r++,criteria:t(e,n,o)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function hn(e,t){return function(n,r,o){var i=t?[[],[]]:{};return r=Ke(r,o),Xt(n,(function(t,o){var s=r(t,o,n);e(i,t,s)})),i}}var mn=hn((function(e,t,n){X(e,n)?e[n].push(t):e[n]=[t]})),gn=hn((function(e,t,n){e[n]=t})),vn=hn((function(e,t,n){X(e,n)?e[n]++:e[n]=1})),_n=hn((function(e,t,n){e[n?0:1].push(t)}),!0);function yn(e){return null==e?0:St(e)?e.length:ae(e).length}function bn(e,t,n){return t in n}var En=T((function(e,t){var n={},r=t[0];if(null==e)return n;B(r)?(t.length>1&&(r=Ge(r,t[1])),t=ge(e)):(r=bn,t=Tt(t,!1,!1),e=Object(e));for(var o=0,i=t.length;o<i;o++){var s=t[o],a=e[s];r(a,s,e)&&(n[s]=a)}return n})),wn=T((function(e,t){var n,r=t[0];return B(r)?(r=Lt(r),t.length>1&&(n=t[1])):(t=Gt(Tt(t,!1,!1),String),r=function(e,n){return!nn(t,n)}),En(e,r,n)}));function Sn(e,t,n){return c.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Tn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Sn(e,e.length-t)}function On(e,t,n){return c.call(e,null==t||n?1:t)}function xn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:On(e,Math.max(0,e.length-t))}function Nn(e){return Qt(e,Boolean)}function Cn(e,t){return Tt(e,t,!1)}var An=T((function(e,t){return t=Tt(t,!0,!0),Qt(e,(function(e){return!nn(t,e)}))})),kn=T((function(e,t){return An(e,t)}));function In(e,t,n,r){C(t)||(r=n,n=t,t=!1),null!=n&&(n=Ke(n,r));for(var o=[],i=[],s=0,a=ie(e);s<a;s++){var u=e[s],l=n?n(u,s,e):u;t&&!n?(s&&i===l||o.push(u),i=l):n?nn(i,l)||(i.push(l),o.push(u)):nn(o,u)||o.push(u)}return o}var Ln=T((function(e){return In(Tt(e,!0,!0))}));function Rn(e){for(var t=[],n=arguments.length,r=0,o=ie(e);r<o;r++){var i=e[r];if(!nn(t,i)){var s;for(s=1;s<n&&nn(arguments[s],i);s++);s===n&&t.push(i)}}return t}function Pn(e){for(var t=e&&an(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=on(e,r);return n}var Dn=T(Pn);function Mn(e,t){for(var n={},r=0,o=ie(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Fn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o}function Un(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(c.call(e,r,r+=t));return n}function jn(e,t){return e._chain?ce(t).chain():t}function Bn(e){return Xt(Ie(e),(function(t){var n=ce[t]=e[t];ce.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),jn(this,n.apply(ce,e))}})),ce}Xt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=s[e];ce.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),jn(this,n)}})),Xt(["concat","join","slice"],(function(e){var t=s[e];ce.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),jn(this,e)}}));var Vn=ce,$n=Bn(r);$n._=$n;var zn=$n},5106:function(e,t,n){"use strict";n.d(t,{Ey:function(){return K},nY:function(){return ae}});var r=n(4390),o=n(822),i=!1;function s(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function a(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const u="function"==typeof Proxy,l="devtools-plugin:setup";let c,f,d;class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(e){}this.fallbacks={getSettings(){return o},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}o=e},now(){return void 0!==c||("undefined"!=typeof window&&window.performance?(c=!0,f=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(c=!0,f=globalThis.perf_hooks.performance):c=!1),c?f.now():Date.now();var e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function h(e,t){const n=e,r=a(),o=a().__VUE_DEVTOOLS_GLOBAL_HOOK__,i=u&&n.enableEarlyProxy;if(!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const e=i?new p(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit(l,e,t)}const m=e=>d=e,g=Symbol();function v(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var _;!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(_||(_={}));const y="undefined"!=typeof window,b=!1,E=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function w(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){N(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function S(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function T(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const O="object"==typeof navigator?navigator:{userAgent:""},x=(()=>/Macintosh/.test(O.userAgent)&&/AppleWebKit/.test(O.userAgent)&&!/Safari/.test(O.userAgent))(),N=y?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!x?function(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"==typeof e?(r.href=e,r.origin!==location.origin?S(r.href)?w(e,t,n):(r.target="_blank",T(r)):T(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){T(r)}),0))}:"msSaveOrOpenBlob"in O?function(e,t="download",n){if("string"==typeof e)if(S(e))w(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){T(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return w(e,t,n);const o="application/octet-stream"===e.type,i=/constructor/i.test(String(E.HTMLElement))||"safari"in E,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&i||x)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw r=null,new Error("Wrong reader.result type");e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{};function C(e,t){const n="🍍 "+e;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,t):"error"===t?console.error(n):"warn"===t?console.warn(n):console.log(n)}function A(e){return"_a"in e&&"install"in e}function k(){if(!("clipboard"in navigator))return C("Your browser doesn't support the Clipboard API","error"),!0}function I(e){return!!(e instanceof Error&&e.message.toLowerCase().includes("document is not focused"))&&(C('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let L;function R(e,t){for(const n in t){const r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function P(e){return{_custom:{display:e}}}const D="🍍 Pinia (root)",M="_root";function F(e){return A(e)?{id:M,label:D}:{id:e.$id,label:e.$id}}function U(e){return e?Array.isArray(e)?e.reduce(((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:P(e.type),key:P(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function j(e){switch(e){case _.direct:return"mutation";case _.patchFunction:case _.patchObject:return"$patch";default:return"unknown"}}let B=!0;const V=[],$="pinia:mutations",z="pinia",{assign:W}=Object,H=e=>"🍍 "+e;function Y(e,t){h({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:V,app:e},(n=>{"function"!=typeof n.now&&C("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:$,label:"Pinia 🍍",color:15064968}),n.addInspector({id:z,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(e){if(!k())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),C("Global state copied to clipboard.")}catch(e){if(I(e))return;C("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(e){if(!k())try{R(e,JSON.parse(await navigator.clipboard.readText())),C("Global state pasted from clipboard.")}catch(e){if(I(e))return;C("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(e){try{N(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){C("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(e){try{const t=(L||(L=document.createElement("input"),L.type="file",L.accept=".json"),function(){return new Promise(((e,t)=>{L.onchange=async()=>{const t=L.files;if(!t)return e(null);const n=t.item(0);return e(n?{text:await n.text(),file:n}:null)},L.oncancel=()=>e(null),L.onerror=t,L.click()}))}),n=await t();if(!n)return;const{text:r,file:o}=n;R(e,JSON.parse(r)),C(`Global state imported from "${o.name}".`)}catch(e){C("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}(t),n.sendInspectorTree(z),n.sendInspectorState(z)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:e=>{const n=t._s.get(e);n?"function"!=typeof n.$reset?C(`Cannot reset "${e}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),C(`Store "${e}" reset.`)):C(`Cannot reset "${e}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((e,t)=>{const n=e.componentInstance&&e.componentInstance.proxy;if(n&&n._pStores){const t=e.componentInstance.proxy._pStores;Object.values(t).forEach((t=>{e.instanceData.state.push({type:H(t.$id),key:"state",editable:!0,value:t._isOptionsAPI?{_custom:{value:(0,r.ux)(t.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce(((e,n)=>(e[n]=t.$state[n],e)),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:H(t.$id),key:"getters",editable:!1,value:t._getters.reduce(((e,n)=>{try{e[n]=t[n]}catch(t){e[n]=t}return e}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===e&&n.inspectorId===z){let e=[t];e=e.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?e.filter((e=>"$id"in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):D.toLowerCase().includes(n.filter.toLowerCase()))):e).map(F)}})),n.on.getInspectorState((n=>{if(n.app===e&&n.inspectorId===z){const e=n.nodeId===M?t:t._s.get(n.nodeId);if(!e)return;e&&(n.state=function(e){if(A(e)){const t=Array.from(e._s.keys()),n=e._s,r={state:t.map((t=>({editable:!0,key:t,value:e.state.value[t]}))),getters:t.filter((e=>n.get(e)._getters)).map((e=>{const t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce(((e,n)=>(e[n]=t[n],e)),{})}}))};return r}const t={state:Object.keys(e.$state).map((t=>({editable:!0,key:t,value:e.$state[t]})))};return e._getters&&e._getters.length&&(t.getters=e._getters.map((t=>({editable:!1,key:t,value:e[t]})))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map((t=>({editable:!0,key:t,value:e[t]})))),t}(e))}})),n.on.editInspectorState(((n,r)=>{if(n.app===e&&n.inspectorId===z){const e=n.nodeId===M?t:t._s.get(n.nodeId);if(!e)return C(`store "${n.nodeId}" not found`,"error");const{path:r}=n;A(e)?r.unshift("state"):1===r.length&&e._customProperties.has(r[0])&&!(r[0]in e.$state)||r.unshift("$state"),B=!1,n.set(e,r,n.state.value),B=!0}})),n.on.editComponentState((e=>{if(e.type.startsWith("🍍")){const n=e.type.replace(/^🍍\s*/,""),r=t._s.get(n);if(!r)return C(`store "${n}" not found`,"error");const{path:o}=e;if("state"!==o[0])return C(`Invalid path for store "${n}":\n${o}\nOnly state can be modified.`);o[0]="$state",B=!1,e.set(r,o,e.state.value),B=!0}}))}))}let X,G=0;function q(e,t,n){const o=t.reduce(((t,n)=>(t[n]=(0,r.ux)(e)[n],t)),{});for(const t in o)e[t]=function(){const r=G,i=n?new Proxy(e,{get(...e){return X=r,Reflect.get(...e)},set(...e){return X=r,Reflect.set(...e)}}):e;X=r;const s=o[t].apply(i,arguments);return X=void 0,s}}function J({app:e,store:t,options:n}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!n.state,q(t,Object.keys(n.actions),t._isOptionsAPI);const i=t._hotUpdate;(0,r.ux)(t)._hotUpdate=function(e){i.apply(this,arguments),q(t,Object.keys(e._hmrPayload.actions),!!t._isOptionsAPI)},function(e,t){V.includes(H(t.$id))||V.push(H(t.$id)),h({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:V,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(e=>{const n="function"==typeof e.now?e.now.bind(e):Date.now;t.$onAction((({after:r,onError:o,name:i,args:s})=>{const a=G++;e.addTimelineEvent({layerId:$,event:{time:n(),title:"🛫 "+i,subtitle:"start",data:{store:P(t.$id),action:P(i),args:s},groupId:a}}),r((r=>{X=void 0,e.addTimelineEvent({layerId:$,event:{time:n(),title:"🛬 "+i,subtitle:"end",data:{store:P(t.$id),action:P(i),args:s,result:r},groupId:a}})})),o((r=>{X=void 0,e.addTimelineEvent({layerId:$,event:{time:n(),logType:"error",title:"💥 "+i,subtitle:"end",data:{store:P(t.$id),action:P(i),args:s,error:r},groupId:a}})}))}),!0),t._customProperties.forEach((i=>{(0,o.wB)((()=>(0,r.R1)(t[i])),((t,r)=>{e.notifyComponentUpdate(),e.sendInspectorState(z),B&&e.addTimelineEvent({layerId:$,event:{time:n(),title:"Change",subtitle:i,data:{newValue:t,oldValue:r},groupId:X}})}),{deep:!0})})),t.$subscribe((({events:r,type:o},i)=>{if(e.notifyComponentUpdate(),e.sendInspectorState(z),!B)return;const s={time:n(),title:j(o),data:W({store:P(t.$id)},U(r)),groupId:X};o===_.patchFunction?s.subtitle="⤵️":o===_.patchObject?s.subtitle="🧩":r&&!Array.isArray(r)&&(s.subtitle=r.type),r&&(s.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),e.addTimelineEvent({layerId:$,event:s})}),{detached:!0,flush:"sync"});const i=t._hotUpdate;t._hotUpdate=(0,r.IG)((r=>{i(r),e.addTimelineEvent({layerId:$,event:{time:n(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:P(t.$id),info:P("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree(z),e.sendInspectorState(z)}));const{$dispose:s}=t;t.$dispose=()=>{s(),e.notifyComponentUpdate(),e.sendInspectorTree(z),e.sendInspectorState(z),e.getSettings().logStoreChanges&&C(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree(z),e.sendInspectorState(z),e.getSettings().logStoreChanges&&C(`"${t.$id}" store installed 🆕`)}))}(e,t)}function K(){const e=(0,r.uY)(!0),t=e.run((()=>(0,r.KR)({})));let n=[],o=[];const s=(0,r.IG)({install(e){m(s),i||(s._a=e,e.provide(g,s),e.config.globalProperties.$pinia=s,b&&Y(e,s),o.forEach((e=>n.push(e))),o=[])},use(e){return this._a||i?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return b&&"undefined"!=typeof Proxy&&s.use(J),s}const Q=()=>{};function Z(e,t,n,o=Q){e.push(t);const i=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&(0,r.o5)()&&(0,r.jr)(i),i}function ee(e,...t){e.slice().forEach((e=>{e(...t)}))}const te=e=>e();function ne(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],i=e[n];v(i)&&v(o)&&e.hasOwnProperty(n)&&!(0,r.i9)(o)&&!(0,r.g8)(o)?e[n]=ne(i,o):e[n]=o}return e}const re=Symbol(),oe=new WeakMap,{assign:ie}=Object;function se(e,t,n={},a,u,l){let c;const f=ie({actions:{}},n),d={deep:!0};let p,h,g,y=[],E=[];const w=a.state.value[e];l||w||(i?s(a.state.value,e,{}):a.state.value[e]={});const S=(0,r.KR)({});let T;function O(t){let n;p=h=!1,"function"==typeof t?(t(a.state.value[e]),n={type:_.patchFunction,storeId:e,events:g}):(ne(a.state.value[e],t),n={type:_.patchObject,payload:t,storeId:e,events:g});const r=T=Symbol();(0,o.dY)().then((()=>{T===r&&(p=!0)})),h=!0,ee(y,n,a.state.value[e])}const x=l?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ie(e,t)}))}:Q;function N(t,n){return function(){m(a);const r=Array.from(arguments),o=[],i=[];let s;ee(E,{args:r,name:t,store:k,after:function(e){o.push(e)},onError:function(e){i.push(e)}});try{s=n.apply(this&&this.$id===e?this:k,r)}catch(e){throw ee(i,e),e}return s instanceof Promise?s.then((e=>(ee(o,e),e))).catch((e=>(ee(i,e),Promise.reject(e)))):(ee(o,s),s)}}const C=(0,r.IG)({actions:{},getters:{},state:[],hotState:S}),A={_p:a,$id:e,$onAction:Z.bind(null,E),$patch:O,$reset:x,$subscribe(t,n={}){const r=Z(y,t,n.detached,(()=>i())),i=c.run((()=>(0,o.wB)((()=>a.state.value[e]),(r=>{("sync"===n.flush?h:p)&&t({storeId:e,type:_.direct,events:g},r)}),ie({},d,n))));return r},$dispose:function(){c.stop(),y=[],E=[],a._s.delete(e)}};i&&(A._r=!1);const k=(0,r.Kh)(b?ie({_hmrPayload:C,_customProperties:(0,r.IG)(new Set)},A):A);a._s.set(e,k);const I=(a._a&&a._a.runWithContext||te)((()=>a._e.run((()=>(c=(0,r.uY)()).run(t)))));for(const t in I){const n=I[t];if((0,r.i9)(n)&&(R=n,!(0,r.i9)(R)||!R.effect)||(0,r.g8)(n))l||(!w||(L=n,i?oe.has(L):v(L)&&L.hasOwnProperty(re))||((0,r.i9)(n)?n.value=w[t]:ne(n,w[t])),i?s(a.state.value[e],t,n):a.state.value[e][t]=n);else if("function"==typeof n){const e=N(t,n);i?s(I,t,e):I[t]=e,f.actions[t]=n}}var L,R;if(i?Object.keys(I).forEach((e=>{s(k,e,I[e])})):(ie(k,I),ie((0,r.ux)(k),I)),Object.defineProperty(k,"$state",{get:()=>a.state.value[e],set:e=>{O((t=>{ie(t,e)}))}}),b){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(k,t,ie({value:k[t]},e))}))}return i&&(k._r=!0),a._p.forEach((e=>{if(b){const t=c.run((()=>e({store:k,app:a._a,pinia:a,options:f})));Object.keys(t||{}).forEach((e=>k._customProperties.add(e))),ie(k,t)}else ie(k,c.run((()=>e({store:k,app:a._a,pinia:a,options:f}))))})),w&&l&&n.hydrate&&n.hydrate(k.$state,w),p=!0,h=!0,k}function ae(e,t,n){let a,u;const l="function"==typeof t;function c(e,n){const c=(0,o.PS)();return(e=e||(c?(0,o.WQ)(g,null):null))&&m(e),(e=d)._s.has(a)||(l?se(a,t,u,e):function(e,t,n,a){const{state:u,actions:l,getters:c}=t,f=n.state.value[e];let d;d=se(e,(function(){f||(i?s(n.state.value,e,u?u():{}):n.state.value[e]=u?u():{});const t=(0,r.QW)(n.state.value[e]);return ie(t,l,Object.keys(c||{}).reduce(((t,s)=>(t[s]=(0,r.IG)((0,o.EW)((()=>{m(n);const t=n._s.get(e);if(!i||t._r)return c[s].call(t,t)}))),t)),{}))}),t,n,0,!0)}(a,u,e)),e._s.get(a)}return"string"==typeof e?(a=e,u=l?n:t):(u=e,a=e.id),c.$id=a,c}},6270:function(e,t,n){"use strict";n.d(t,{hU:function(){return sn},s9:function(){return an}});const r="undefined"!=typeof window,o=(e,t=!1)=>t?Symbol.for(e):Symbol(e),i=(e,t,n)=>s({l:e,k:t,s:n}),s=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),a=e=>"number"==typeof e&&isFinite(e),u=e=>"[object Date]"===T(e),l=e=>"[object RegExp]"===T(e),c=e=>O(e)&&0===Object.keys(e).length,f=Object.assign;let d;const p=()=>d||(d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function h(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function g(e,t){return m.call(e,t)}const v=Array.isArray,_=e=>"function"==typeof e,y=e=>"string"==typeof e,b=e=>"boolean"==typeof e,E=e=>null!==e&&"object"==typeof e,w=e=>E(e)&&_(e.then)&&_(e.catch),S=Object.prototype.toString,T=e=>S.call(e),O=e=>{if(!E(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function x(e){let t=e;return()=>++t}function N(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const C=e=>!E(e)||v(e);function A(e,t){if(C(e)||C(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{C(e[r])||C(t[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}}function k(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const I=/\{([0-9a-zA-Z]+)\}/g,L=Object.assign,R=e=>"string"==typeof e,P=e=>null!==e&&"object"==typeof e;function D(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}const M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},F={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function U(e,t,n={}){const{domain:r,messages:o,args:i}=n,s=function(e,...t){return 1===t.length&&P(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(I,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}((o||F)[e]||"",...i||[]),a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=r,a}function j(e){throw e}const B=" ",V="\r",$="\n",z=String.fromCharCode(8232),W=String.fromCharCode(8233);function H(e){const t=e;let n=0,r=1,o=1,i=0;const s=e=>t[e]===V&&t[e+1]===$,a=e=>t[e]===W,u=e=>t[e]===z,l=e=>s(e)||a(e)||u(e)?$:t[e];function c(){return i=0,(s(e=n)||(e=>t[e]===$)(e)||a(e)||u(e))&&(r++,o=0),s(n)&&n++,n++,o++,t[n];var e}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>i,charAt:l,currentChar:()=>l(n),currentPeek:()=>l(n+i),next:c,peek:function(){return s(n+i)&&i++,i++,t[n+i]},reset:function(){n=0,r=1,o=1,i=0},resetPeek:function(e=0){i=e},skipToPeek:function(){const e=n+i;for(;e!==n;)c();i=0}}}const Y=void 0,X=".",G="'",q="tokenizer";function J(e,t={}){const n=!1!==t.location,r=H(e),o=()=>r.index(),i=()=>({line:r.line(),column:r.column(),offset:r.index()}),s=i(),a=o(),u={currentType:14,offset:a,startLoc:s,endLoc:s,lastType:14,lastOffset:a,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},l=()=>u,{onError:c}=t;function f(e,t,r,...o){const i=l();if(t.column+=r,t.offset+=r,c){const r=U(e,n?k(i.startLoc,t):null,{domain:q,args:o});c(r)}}function d(e,t,r){e.endLoc=i(),e.currentType=t;const o={type:t};return n&&(o.loc=k(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const p=e=>d(e,14);function h(e,t){return e.currentChar()===t?(e.next(),t):(f(M.EXPECTED_TOKEN,i(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===B||e.currentPeek()===$;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function v(e){if(e===Y)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function _(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,r="",o=!1)=>{const i=e.currentPeek();return"{"===i?"%"!==r&&t:"@"!==i&&i?"%"===i?(e.peek(),n(t,"%",!0)):"|"===i?!("%"!==r&&!o&&(r===B||r===$)):i===B?(e.peek(),n(!0,B,o)):i!==$||(e.peek(),n(!0,$,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function b(e,t){const n=e.currentChar();return n===Y?Y:t(n)?(e.next(),n):null}function E(e){return b(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function w(e){return b(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function S(e){return b(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function T(e){let t="",n="";for(;t=w(e);)n+=t;return n}function O(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!y(e))break;t+=n,e.next()}else if(n===B||n===$)if(y(e))t+=n,e.next();else{if(_(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function x(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return N(e,t,4);case"U":return N(e,t,6);default:return f(M.UNKNOWN_ESCAPE_SEQUENCE,i(),0,t),""}}function N(e,t,n){h(e,t);let r="";for(let o=0;o<n;o++){const n=S(e);if(!n){f(M.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function C(e){g(e);const t=h(e,"|");return g(e),t}function A(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&f(M.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),e.next(),n=d(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&f(M.EMPTY_PLACEHOLDER,i(),0),e.next(),n=d(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&f(M.UNTERMINATED_CLOSING_BRACE,i(),0),n=I(e,t)||p(t),t.braceNest=0,n;default:let r=!0,o=!0,s=!0;if(_(e))return t.braceNest>0&&f(M.UNTERMINATED_CLOSING_BRACE,i(),0),n=d(t,1,C(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return f(M.UNTERMINATED_CLOSING_BRACE,i(),0),t.braceNest=0,L(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,5,function(e){g(e);let t="",n="";for(;t=E(e);)n+=t;return e.currentChar()===Y&&f(M.UNTERMINATED_CLOSING_BRACE,i(),0),n}(e)),g(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===Y)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}(e,t))return n=d(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${T(e)}`):t+=T(e),e.currentChar()===Y&&f(M.UNTERMINATED_CLOSING_BRACE,i(),0),t}(e)),g(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=e.currentPeek()===G;return e.resetPeek(),r}(e,t))return n=d(t,7,function(e){g(e),h(e,"'");let t="",n="";const r=e=>e!==G&&e!==$;for(;t=b(e,r);)n+="\\"===t?x(e):t;const o=e.currentChar();return o===$||o===Y?(f(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),o===$&&(e.next(),h(e,"'")),n):(h(e,"'"),n)}(e)),g(e),n;if(!r&&!o&&!s)return n=d(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==B&&e!==$;for(;t=b(e,r);)n+=t;return n}(e)),f(M.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,n.value),g(e),n}return n}function I(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==$&&o!==B||f(M.INVALID_LINKED_FORMAT,i(),0),o){case"@":return e.next(),r=d(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),d(t,9,".");case":":return g(e),e.next(),d(t,10,":");default:return _(e)?(r=d(t,1,C(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),I(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=v(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),d(t,12,function(e){let t="",n="";for(;t=E(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?v(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===B||!t)&&(t===$?(e.peek(),r()):v(t))},o=r();return e.resetPeek(),o}(e,t)?(g(e),"{"===o?A(e,t)||r:d(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&"("!==o&&")"!==o&&o?o===B?r:o===$||o===X?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&f(M.INVALID_LINKED_FORMAT,i(),0),t.braceNest=0,t.inLinked=!1,L(e,t))}}function L(e,t){let n={type:14};if(t.braceNest>0)return A(e,t)||p(t);if(t.inLinked)return I(e,t)||p(t);switch(e.currentChar()){case"{":return A(e,t)||p(t);case"}":return f(M.UNBALANCED_CLOSING_BRACE,i(),0),e.next(),d(t,3,"}");case"@":return I(e,t)||p(t);default:if(_(e))return n=d(t,1,C(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:o}=function(e){const t=m(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return o?d(t,0,O(e)):d(t,4,function(e){g(e);const t=e.currentChar();return"%"!==t&&f(M.EXPECTED_TOKEN,i(),0,t),e.next(),"%"}(e));if(y(e))return d(t,0,O(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=u;return u.lastType=e,u.lastOffset=t,u.lastStartLoc=n,u.lastEndLoc=s,u.offset=o(),u.startLoc=i(),r.currentChar()===Y?d(u,14):L(r,u)},currentOffset:o,currentPosition:i,context:l}}const K="parser",Q=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Z(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ee(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,r,o,i,...s){const a=e.currentPosition();if(a.offset+=i,a.column+=i,n){const e=U(r,t?k(o,a):null,{domain:K,args:s});n(e)}}function o(e,n,r){const o={type:e};return t&&(o.start=n,o.end=n,o.loc={start:r,end:r}),o}function i(e,n,r,o){o&&(e.type=o),t&&(e.end=n,e.loc&&(e.loc.end=r))}function s(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}function a(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=o(5,r,s);return a.index=parseInt(t,10),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function u(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=o(4,r,s);return a.key=t,e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:s}=n,a=o(9,r,s);return a.value=t.replace(Q,Z),e.nextToken(),i(a,e.currentOffset(),e.currentPosition()),a}function c(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let s=e.nextToken();if(9===s.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:s,lastStartLoc:a}=n,u=o(8,s,a);return 12!==t.type?(r(e,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),u.value="",i(u,s,a),{nextConsumeToken:t,node:u}):(null==t.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,te(t)),u.value=t.value||"",i(u,e.currentOffset(),e.currentPosition()),{node:u})}(e);n.modifier=t.node,s=t.nextConsumeToken||e.nextToken()}switch(10!==s.type&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(s)),s=e.nextToken(),2===s.type&&(s=e.nextToken()),s.type){case 11:null==s.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(s)),n.key=function(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,i(r,e.currentOffset(),e.currentPosition()),r}(e,s.value||"");break;case 5:null==s.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(s)),n.key=u(e,s.value||"");break;case 6:null==s.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(s)),n.key=a(e,s.value||"");break;case 7:null==s.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(s)),n.key=l(e,s.value||"");break;default:r(e,M.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const c=e.context(),f=o(7,c.offset,c.startLoc);return f.value="",i(f,c.offset,c.startLoc),n.key=f,i(n,c.offset,c.startLoc),{nextConsumeToken:s,node:n}}return i(n,e.currentOffset(),e.currentPosition()),{node:n}}function f(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let f=null;do{const o=f||e.nextToken();switch(f=null,o.type){case 0:null==o.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(o)),n.items.push(s(e,o.value||""));break;case 6:null==o.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(o)),n.items.push(a(e,o.value||""));break;case 5:null==o.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(o)),n.items.push(u(e,o.value||""));break;case 7:null==o.value&&r(e,M.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,te(o)),n.items.push(l(e,o.value||""));break;case 8:const i=c(e);n.items.push(i.node),f=i.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return i(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const s=J(n,L({},e)),a=s.context(),u=o(0,a.offset,a.startLoc);return t&&u.loc&&(u.loc.source=n),u.body=function(e){const t=e.context(),{offset:n,startLoc:s}=t,a=f(e);return 14===t.currentType?a:function(e,t,n,s){const a=e.context();let u=0===s.items.length;const l=o(1,t,n);l.cases=[],l.cases.push(s);do{const t=f(e);u||(u=0===t.items.length),l.cases.push(t)}while(14!==a.currentType);return u&&r(e,M.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),i(l,e.currentOffset(),e.currentPosition()),l}(e,n,s,a)}(s),e.onCacheKey&&(u.cacheKey=e.onCacheKey(n)),14!==a.currentType&&r(s,M.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,n[a.offset]||""),i(u,s.currentOffset(),s.currentPosition()),u}}}function te(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function ne(e,t){for(let n=0;n<e.length;n++)re(e[n],t)}function re(e,t){switch(e.type){case 1:ne(e.cases,t),t.helper("plural");break;case 2:ne(e.items,t);break;case 6:re(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function oe(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=D(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}const ie="minifier";function se(e){switch(e.t=e.type,e.type){case 0:const t=e;se(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,r=n.cases;for(let e=0;e<r.length;e++)se(r[e]);n.c=r,delete n.cases;break;case 2:const o=e,i=o.items;for(let e=0;e<i.length;e++)se(i[e]);o.i=i,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const s=e;s.value&&(s.v=s.value,delete s.value);break;case 6:const a=e;se(a.key),a.k=a.key,delete a.key,a.modifier&&(se(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const u=e;u.i=u.index,delete u.index;break;case 4:const l=e;l.k=l.key,delete l.key;break;default:throw U(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ie,args:[e.type]})}delete e.type}function ae(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?ae(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;n<o&&(ae(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let n=0;n<o&&(ae(e,t.items[n]),n!==o-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ae(e,t.key),t.modifier?(e.push(", "),ae(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;default:throw U(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:"parser",args:[t.type]})}}const ue=(e,t={})=>{const n=R(t.mode)?t.mode:"normal",r=R(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,i=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,a=e.helpers||[],u=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:i}=t,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};function a(e,t){s.code+=e}function u(e,t=!0){const n=t?o:"";a(i?n+" ".repeat(e):n)}return!1!==t.location&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:a,indent:function(e=!0){const t=++s.indentLevel;e&&u(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&u(t)},newline:function(){u(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:i,needIndent:s});u.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(s),a.length>0&&(u.push(`const { ${D(a.map((e=>`${e}: _${e}`)),", ")} } = ctx`),u.newline()),u.push("return "),ae(u,e),u.deindent(s),u.push("}"),delete e.helpers;const{code:l,map:c}=u.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function le(e,t={}){const n=L({},t),r=!!n.jit,o=!!n.minify,i=null==n.optimize||n.optimize,s=ee(n).parse(e);return r?(i&&function(e){const t=e.body;2===t.type?oe(t):t.cases.forEach((e=>oe(e)))}(s),o&&se(s),{ast:s,code:""}):(function(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&re(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}(s,n),ue(s,n))}const ce=[];ce[0]={w:[0],i:[3,0],"[":[4],o:[7]},ce[1]={w:[1],".":[2],"[":[4],o:[7]},ce[2]={w:[2],i:[3,0],0:[3,0]},ce[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},ce[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},ce[5]={"'":[4,0],o:8,l:[5,0]},ce[6]={'"':[4,0],o:8,l:[6,0]};const fe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function de(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}const pe=new Map;function he(e,t){return E(e)?e[t]:null}const me=e=>e,ge=e=>"",ve="text",_e=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}(e),ye=e=>null==e?"":v(e)||O(e)&&e.toString===S?JSON.stringify(e,null,2):String(e);function be(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}let Ee=null;const we=Se("function:translate");function Se(e){return t=>Ee&&Ee.emit(e,t)}const Te=M.__EXTEND_POINT__,Oe=x(Te),xe={INVALID_ARGUMENT:Te,INVALID_DATE_ARGUMENT:Oe(),INVALID_ISO_DATE_ARGUMENT:Oe(),NOT_SUPPORT_NON_STRING_MESSAGE:Oe(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Oe(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Oe(),NOT_SUPPORT_LOCALE_TYPE:Oe(),__EXTEND_POINT__:Oe()};function Ne(e){return U(e,null,void 0)}function Ce(e,t){return null!=t.locale?ke(t.locale):ke(e.locale)}let Ae;function ke(e){if(y(e))return e;if(_(e)){if(e.resolvedOnce&&null!=Ae)return Ae;if("Function"===e.constructor.name){const t=e();if(w(t))throw Ne(xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Ae=t}throw Ne(xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Ne(xe.NOT_SUPPORT_LOCALE_TYPE)}function Ie(e,t,n){return[...new Set([n,...v(t)?t:E(t)?Object.keys(t):y(t)?[t]:[n]])]}function Le(e,t,n){const r=y(n)?n:Ue,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let e=[n];for(;v(e);)e=Re(i,e,t);const s=v(t)||!O(t)?t:t.default?t.default:null;e=y(s)?[s]:s,v(e)&&Re(i,e,!1),o.__localeChainCache.set(r,i)}return i}function Re(e,t,n){let r=!0;for(let o=0;o<t.length&&b(r);o++){const i=t[o];y(i)&&(r=Pe(e,t[o],n))}return r}function Pe(e,t,n){let r;const o=t.split("-");do{r=De(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function De(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(v(n)||O(n))&&n[o]&&(r=n[o])}return r}xe.INVALID_ARGUMENT,xe.INVALID_DATE_ARGUMENT,xe.INVALID_ISO_DATE_ARGUMENT,xe.NOT_SUPPORT_NON_STRING_MESSAGE,xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE,xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,xe.NOT_SUPPORT_LOCALE_TYPE;const Me="9.9.1",Fe=-1,Ue="en-US",je="",Be=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Ve,$e,ze;function We(e){Ve=e}let He=null;const Ye=e=>{He=e},Xe=()=>He;let Ge=null;const qe=e=>{Ge=e},Je=()=>Ge;let Ke=0;function Qe(e,t,n,r,o){const{missing:i,onWarn:s}=e;if(null!==i){const r=i(e,n,t,o);return y(r)?r:t}return t}function Ze(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function et(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,tt(e,n)]),[]))}return tt(e,n)}(t,e)}function tt(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,nt(e,n)]),[]);return e.normalize(n)}}function nt(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const o=t;return o.v||o.value;case 4:const i=t;return e.interpolate(e.named(i.k||i.key));case 5:const s=t;return e.interpolate(e.list(null!=s.i?s.i:s.index));case 6:const a=t,u=a.m||a.modifier;return e.linked(nt(e,a.k||a.key),u?nt(e,u):void 0,e.type);case 7:const l=t;return l.v||l.value;case 8:const c=t;return c.v||c.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const rt=e=>e;let ot=Object.create(null);const it=e=>E(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function st(e,t={}){let n=!1;const r=t.onError||j;return t.onError=e=>{n=!0,r(e)},{...le(e,t),detectError:n}}const at=()=>"",ut=e=>_(e);function lt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:u}=e,[l,c]=dt(...t),d=(b(c.missingWarn)?c.missingWarn:e.missingWarn,b(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,b(c.escapeParameter)?c.escapeParameter:e.escapeParameter),p=!!c.resolvedMessage,m=y(c.default)||b(c.default)?b(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",g=n||""!==m,w=Ce(e,c);d&&function(e){v(e.list)?e.list=e.list.map((e=>y(e)?h(e):e)):E(e.named)&&Object.keys(e.named).forEach((t=>{y(e.named[t])&&(e.named[t]=h(e.named[t]))}))}(c);let[S,T,x]=p?[l,w,u[w]||{}]:ct(e,l,w,s),N=S,C=l;if(p||y(N)||it(N)||ut(N)||g&&(N=m,C=N),!(p||(y(N)||it(N)||ut(N))&&y(T)))return o?Fe:l;let A=!1;const k=ut(N)?N:ft(e,l,T,N,C,(()=>{A=!0}));if(A)return N;const I=function(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:u,fallbackWarn:l,missingWarn:c,fallbackContext:f}=e,d={locale:t,modifiers:o,pluralRules:i,messages:r=>{let o=s(n,r);if(null==o&&f){const[,,e]=ct(f,r,t,u);o=s(e,r)}if(y(o)||it(o)){let n=!1;const i=ft(e,r,t,o,r,(()=>{n=!0}));return n?at:i}return ut(o)?o:at}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),a(r.plural)&&(d.pluralIndex=r.plural),d}(e,T,x,c),L=function(e,t,n){return t(n)}(0,k,function(e={}){const t=e.locale,n=function(e){const t=a(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(a(e.named.count)||a(e.named.n))?a(e.named.count)?e.named.count:a(e.named.n)?e.named.n:t:t}(e),r=E(e.pluralRules)&&y(t)&&_(e.pluralRules[t])?e.pluralRules[t]:be,o=E(e.pluralRules)&&y(t)&&_(e.pluralRules[t])?be:void 0,i=e.list||[],s=e.named||{};function u(t){return(_(e.messages)?e.messages(t):!!E(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):ge)}a(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);const l=O(e.processor)&&_(e.processor.normalize)?e.processor.normalize:_e,c=O(e.processor)&&_(e.processor.interpolate)?e.processor.interpolate:ye,d={list:e=>i[e],named:e=>s[e],plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,o]=n;let i="text",s="";1===n.length?E(r)?(s=r.modifier||s,i=r.type||i):y(r)&&(s=r||s):2===n.length&&(y(r)&&(s=r||s),y(o)&&(i=o||i));const a=u(t)(d),l="vnode"===i&&v(a)&&s?a[0]:a;return s?(c=s,e.modifiers?e.modifiers[c]:me)(l,i):l;var c},message:u,type:O(e.processor)&&y(e.processor.type)?e.processor.type:ve,interpolate:c,normalize:l,values:f({},i,s)};return d}(I)),R=r?r(L,l):L;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:y(l)?l:ut(N)?N.key:"",locale:T||(ut(N)?N.locale:""),format:y(N)?N:ut(N)?N.source:"",message:R};t.meta=f({},e.__meta,Xe()||{}),we(t)}return R}function ct(e,t,n,r,o,i){const{messages:s,onWarn:a,messageResolver:u,localeFallbacker:l}=e,c=l(e,r,n);let f,d={},p=null,h=n,m=null;for(let n=0;n<c.length&&(f=m=c[n],d=s[f]||{},null===(p=u(d,t))&&(p=d[t]),!(y(p)||it(p)||ut(p)));n++){const n=Qe(e,t,f,0,"translate");n!==t&&(p=n),h=m}return[p,f,d]}function ft(e,t,n,r,o,s){const{messageCompiler:a,warnHtmlMessage:u}=e;if(ut(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==a){const e=()=>r;return e.locale=n,e.key=t,e}const l=a(r,function(e,t,n,r,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>i(t,n,e)}}(0,n,o,0,u,s));return l.locale=n,l.key=t,l.source=r,l}function dt(...e){const[t,n,r]=e,o={};if(!(y(t)||a(t)||ut(t)||it(t)))throw Ne(xe.INVALID_ARGUMENT);const i=a(t)?String(t):(ut(t),t);return a(n)?o.plural=n:y(n)?o.default=n:O(n)&&!c(n)?o.named=n:v(n)&&(o.list=n),a(r)?o.plural=r:y(r)?o.default=r:O(r)&&f(o,r),[i,o]}const pt="undefined"!=typeof Intl;function ht(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=e,{__datetimeFormatters:a}=e,[u,l,d,p]=gt(...t),h=(b(d.missingWarn)?d.missingWarn:e.missingWarn,b(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),m=Ce(e,d),g=s(e,o,m);if(!y(u)||""===u)return new Intl.DateTimeFormat(m,p).format(l);let v,_={},E=null,w=m,S=null;for(let t=0;t<g.length&&(v=S=g[t],_=n[v]||{},E=_[u],!O(E));t++)Qe(e,u,v,0,"datetime format"),w=S;if(!O(E)||!y(v))return r?Fe:u;let T=`${v}__${u}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let x=a.get(T);return x||(x=new Intl.DateTimeFormat(v,f({},E,p)),a.set(T,x)),h?x.formatToParts(l):x.format(l)}pt&&Intl.DateTimeFormat,pt&&Intl.NumberFormat;const mt=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function gt(...e){const[t,n,r,o]=e,i={};let s,l={};if(y(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Ne(xe.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();s=new Date(n);try{s.toISOString()}catch(e){throw Ne(xe.INVALID_ISO_DATE_ARGUMENT)}}else if(u(t)){if(isNaN(t.getTime()))throw Ne(xe.INVALID_DATE_ARGUMENT);s=t}else{if(!a(t))throw Ne(xe.INVALID_ARGUMENT);s=t}return y(n)?i.key=n:O(n)&&Object.keys(n).forEach((e=>{mt.includes(e)?l[e]=n[e]:i[e]=n[e]})),y(r)?i.locale=r:O(r)&&(l=r),O(o)&&(l=o),[i.key||"",s,i,l]}function vt(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function _t(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=e,{__numberFormatters:a}=e,[u,l,d,p]=bt(...t),h=(b(d.missingWarn)?d.missingWarn:e.missingWarn,b(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,!!d.part),m=Ce(e,d),g=s(e,o,m);if(!y(u)||""===u)return new Intl.NumberFormat(m,p).format(l);let v,_={},E=null,w=m,S=null;for(let t=0;t<g.length&&(v=S=g[t],_=n[v]||{},E=_[u],!O(E));t++)Qe(e,u,v,0,"number format"),w=S;if(!O(E)||!y(v))return r?Fe:u;let T=`${v}__${u}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let x=a.get(T);return x||(x=new Intl.NumberFormat(v,f({},E,p)),a.set(T,x)),h?x.formatToParts(l):x.format(l)}const yt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function bt(...e){const[t,n,r,o]=e,i={};let s={};if(!a(t))throw Ne(xe.INVALID_ARGUMENT);const u=t;return y(n)?i.key=n:O(n)&&Object.keys(n).forEach((e=>{yt.includes(e)?s[e]=n[e]:i[e]=n[e]})),y(r)?i.locale=r:O(r)&&(s=r),O(o)&&(s=o),[i.key||"",u,i,s]}function Et(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(p().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!=typeof __INTLIFY_JIT_COMPILATION__&&(p().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(p().__INTLIFY_DROP_MESSAGE_COMPILER__=!1);var wt=n(822),St=n(4390);const Tt="9.9.1",Ot=x(8);Ot(),Ot(),Ot(),Ot(),Ot(),Ot(),Ot(),Ot();const xt=xe.__EXTEND_POINT__,Nt=x(xt),Ct={UNEXPECTED_RETURN_TYPE:xt,INVALID_ARGUMENT:Nt(),MUST_BE_CALL_SETUP_TOP:Nt(),NOT_INSTALLED:Nt(),NOT_AVAILABLE_IN_LEGACY_MODE:Nt(),REQUIRED_VALUE:Nt(),INVALID_VALUE:Nt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Nt(),NOT_INSTALLED_WITH_PROVIDE:Nt(),UNEXPECTED_ERROR:Nt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Nt(),BRIDGE_SUPPORT_VUE_2_ONLY:Nt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Nt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Nt(),__EXTEND_POINT__:Nt()};function At(e,...t){return U(e,null,void 0)}Ct.UNEXPECTED_RETURN_TYPE,Ct.INVALID_ARGUMENT,Ct.MUST_BE_CALL_SETUP_TOP,Ct.NOT_INSTALLED,Ct.UNEXPECTED_ERROR,Ct.NOT_AVAILABLE_IN_LEGACY_MODE,Ct.REQUIRED_VALUE,Ct.INVALID_VALUE,Ct.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Ct.NOT_INSTALLED_WITH_PROVIDE,Ct.NOT_COMPATIBLE_LEGACY_VUE_I18N,Ct.BRIDGE_SUPPORT_VUE_2_ONLY,Ct.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION,Ct.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const kt=o("__translateVNode"),It=o("__datetimeParts"),Lt=o("__numberParts"),Rt=o("__setPluralRules");o("__intlifyMeta");const Pt=o("__injectWithOption"),Dt=o("__dispose");function Mt(e){if(!E(e))return e;for(const t in e)if(g(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e,i=!1;for(let e=0;e<r;e++){if(n[e]in o||(o[n[e]]={}),!E(o[n[e]])){i=!0;break}o=o[n[e]]}i||(o[n[r]]=e[t],delete e[t]),E(o[n[r]])&&Mt(o[n[r]])}else E(e[t])&&Mt(e[t]);return e}function Ft(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=t,s=O(n)?n:v(r)?{}:{[e]:{}};if(v(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},A(n,s[t])):A(n,s)}else y(e)&&A(JSON.parse(e),s)})),null==o&&i)for(const e in s)g(s,e)&&Mt(s[e]);return s}function Ut(e){return e.type}function jt(e,t,n){let r=E(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Ft(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);if(o.length&&o.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),E(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(E(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Bt(e){return(0,wt.bF)(wt.EY,null,e,0)}const Vt="__INTLIFY_META__",$t=()=>[],zt=()=>!1;let Wt=0;function Ht(e){return(t,n,r,o)=>e(n,r,(0,wt.nI)()||void 0,o)}const Yt=()=>{const e=(0,wt.nI)();let t=null;return e&&(t=Ut(e)[Vt])?{[Vt]:t}:null};function Xt(e={},t){const{__root:n,__injectWithOption:o}=e,i=void 0===n,s=e.flatJson,u=r?St.KR:St.IJ;let c=!b(e.inheritLocale)||e.inheritLocale;const d=u(n&&c?n.locale.value:y(e.locale)?e.locale:Ue),p=u(n&&c?n.fallbackLocale.value:y(e.fallbackLocale)||v(e.fallbackLocale)||O(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:d.value),h=u(Ft(d.value,e)),m=u(O(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),w=u(O(e.numberFormats)?e.numberFormats:{[d.value]:{}});let S=n?n.missingWarn:!b(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,T=n?n.fallbackWarn:!b(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,x=n?n.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,C=!!e.fallbackFormat,k=_(e.missing)?e.missing:null,I=_(e.missing)?Ht(e.missing):null,L=_(e.postTranslation)?e.postTranslation:null,R=n?n.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,P=!!e.escapeParameter;const D=n?n.modifiers:O(e.modifiers)?e.modifiers:{};let M,F=e.pluralRules||n&&n.pluralRules;M=(()=>{i&&qe(null);const t={version:Tt,locale:d.value,fallbackLocale:p.value,messages:h.value,modifiers:D,pluralRules:F,missing:null===I?void 0:I,missingWarn:S,fallbackWarn:T,fallbackFormat:C,unresolving:!0,postTranslation:null===L?void 0:L,warnHtmlMessage:R,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=m.value,t.numberFormats=w.value,t.__datetimeFormatters=O(M)?M.__datetimeFormatters:void 0,t.__numberFormatters=O(M)?M.__numberFormatters:void 0;const n=function(e={}){const t=_(e.onWarn)?e.onWarn:N,n=y(e.version)?e.version:Me,r=y(e.locale)||_(e.locale)?e.locale:Ue,o=_(r)?Ue:r,i=v(e.fallbackLocale)||O(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o,s=O(e.messages)?e.messages:{[o]:{}},a=O(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},u=O(e.numberFormats)?e.numberFormats:{[o]:{}},c=f({},e.modifiers||{},{upper:(e,t)=>"text"===t&&y(e)?e.toUpperCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&y(e)?e.toLowerCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&y(e)?Be(e):"vnode"===t&&E(e)&&"__v_isVNode"in e?Be(e.children):e}),d=e.pluralRules||{},p=_(e.missing)?e.missing:null,h=!b(e.missingWarn)&&!l(e.missingWarn)||e.missingWarn,m=!b(e.fallbackWarn)&&!l(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,w=!!e.unresolving,S=_(e.postTranslation)?e.postTranslation:null,T=O(e.processor)?e.processor:null,x=!b(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,A=_(e.messageCompiler)?e.messageCompiler:Ve,k=_(e.messageResolver)?e.messageResolver:$e||he,I=_(e.localeFallbacker)?e.localeFallbacker:ze||Ie,L=E(e.fallbackContext)?e.fallbackContext:void 0,R=e,P=E(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,D=E(R.__numberFormatters)?R.__numberFormatters:new Map,M=E(R.__meta)?R.__meta:{};Ke++;const F={version:n,cid:Ke,locale:r,fallbackLocale:i,messages:s,modifiers:c,pluralRules:d,missing:p,missingWarn:h,fallbackWarn:m,fallbackFormat:g,unresolving:w,postTranslation:S,processor:T,warnHtmlMessage:x,escapeParameter:C,messageCompiler:A,messageResolver:k,localeFallbacker:I,fallbackContext:L,onWarn:t,__meta:M};return F.datetimeFormats=a,F.numberFormats=u,F.__datetimeFormatters=P,F.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){Ee&&Ee.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(F,n,M),F}(t);return i&&qe(n),n})(),Ze(M,d.value,p.value);const U=(0,wt.EW)({get:()=>d.value,set:e=>{d.value=e,M.locale=d.value}}),j=(0,wt.EW)({get:()=>p.value,set:e=>{p.value=e,M.fallbackLocale=p.value,Ze(M,d.value,e)}}),B=(0,wt.EW)((()=>h.value)),V=(0,wt.EW)((()=>m.value)),$=(0,wt.EW)((()=>w.value)),z=(e,t,r,o,s,u)=>{let l;d.value,p.value,h.value,m.value,w.value;try{__INTLIFY_PROD_DEVTOOLS__&&Ye(Yt()),i||(M.fallbackContext=n?Je():void 0),l=e(M)}finally{__INTLIFY_PROD_DEVTOOLS__&&Ye(null),i||(M.fallbackContext=void 0)}if("translate exists"!==r&&a(l)&&l===Fe||"translate exists"===r&&!l){const[e,r]=t();return n&&x?o(n):s(e)}if(u(l))return l;throw At(Ct.UNEXPECTED_RETURN_TYPE)};function W(...e){return z((t=>Reflect.apply(lt,null,[t,...e])),(()=>dt(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>y(e)))}const H={normalize:function(e){return e.map((e=>y(e)||a(e)||b(e)?Bt(String(e)):e))},interpolate:e=>e,type:"vnode"};function Y(e){return h.value[e]||{}}Wt++,n&&r&&((0,wt.wB)(n.locale,(e=>{c&&(d.value=e,M.locale=e,Ze(M,d.value,p.value))})),(0,wt.wB)(n.fallbackLocale,(e=>{c&&(p.value=e,M.fallbackLocale=e,Ze(M,d.value,p.value))})));const X={id:Wt,locale:U,fallbackLocale:j,get inheritLocale(){return c},set inheritLocale(e){c=e,e&&n&&(d.value=n.locale.value,p.value=n.fallbackLocale.value,Ze(M,d.value,p.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:B,get modifiers(){return D},get pluralRules(){return F||{}},get isGlobal(){return i},get missingWarn(){return S},set missingWarn(e){S=e,M.missingWarn=S},get fallbackWarn(){return T},set fallbackWarn(e){T=e,M.fallbackWarn=T},get fallbackRoot(){return x},set fallbackRoot(e){x=e},get fallbackFormat(){return C},set fallbackFormat(e){C=e,M.fallbackFormat=C},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,M.warnHtmlMessage=e},get escapeParameter(){return P},set escapeParameter(e){P=e,M.escapeParameter=e},t:W,getLocaleMessage:Y,setLocaleMessage:function(e,t){if(s){const n={[e]:t};for(const e in n)g(n,e)&&Mt(n[e]);t=n[e]}h.value[e]=t,M.messages=h.value},mergeLocaleMessage:function(e,t){h.value[e]=h.value[e]||{};const n={[e]:t};if(s)for(const e in n)g(n,e)&&Mt(n[e]);A(t=n[e],h.value[e]),M.messages=h.value},getPostTranslationHandler:function(){return _(L)?L:null},setPostTranslationHandler:function(e){L=e,M.postTranslation=e},getMissingHandler:function(){return k},setMissingHandler:function(e){null!==e&&(I=Ht(e)),k=e,M.missing=I},[Rt]:function(e){F=e,M.pluralRules=F}};return X.datetimeFormats=V,X.numberFormats=$,X.rt=function(...e){const[t,n,r]=e;if(r&&!E(r))throw At(Ct.INVALID_ARGUMENT);return W(t,n,f({resolvedMessage:!0},r||{}))},X.te=function(e,t){return z((()=>{if(!e)return!1;const n=Y(y(t)?t:d.value),r=M.messageResolver(n,e);return it(r)||ut(r)||y(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),zt,(e=>b(e)))},X.tm=function(e){const t=function(e){let t=null;const n=Le(M,p.value,d.value);for(let r=0;r<n.length;r++){const o=h.value[n[r]]||{},i=M.messageResolver(o,e);if(null!=i){t=i;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},X.d=function(...e){return z((t=>Reflect.apply(ht,null,[t,...e])),(()=>gt(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>je),(e=>y(e)))},X.n=function(...e){return z((t=>Reflect.apply(_t,null,[t,...e])),(()=>bt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>je),(e=>y(e)))},X.getDateTimeFormat=function(e){return m.value[e]||{}},X.setDateTimeFormat=function(e,t){m.value[e]=t,M.datetimeFormats=m.value,vt(M,e,t)},X.mergeDateTimeFormat=function(e,t){m.value[e]=f(m.value[e]||{},t),M.datetimeFormats=m.value,vt(M,e,t)},X.getNumberFormat=function(e){return w.value[e]||{}},X.setNumberFormat=function(e,t){w.value[e]=t,M.numberFormats=w.value,Et(M,e,t)},X.mergeNumberFormat=function(e,t){w.value[e]=f(w.value[e]||{},t),M.numberFormats=w.value,Et(M,e,t)},X[Pt]=o,X[kt]=function(...e){return z((t=>{let n;const r=t;try{r.processor=H,n=Reflect.apply(lt,null,[r,...e])}finally{r.processor=null}return n}),(()=>dt(...e)),"translate",(t=>t[kt](...e)),(e=>[Bt(e)]),(e=>v(e)))},X[It]=function(...e){return z((t=>Reflect.apply(ht,null,[t,...e])),(()=>gt(...e)),"datetime format",(t=>t[It](...e)),$t,(e=>y(e)||v(e)))},X[Lt]=function(...e){return z((t=>Reflect.apply(_t,null,[t,...e])),(()=>bt(...e)),"number format",(t=>t[Lt](...e)),$t,(e=>y(e)||v(e)))},X}function Gt(e={},t){{const t=Xt(function(e){const t=y(e.locale)?e.locale:Ue,n=y(e.fallbackLocale)||v(e.fallbackLocale)||O(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=_(e.missing)?e.missing:void 0,o=!b(e.silentTranslationWarn)&&!l(e.silentTranslationWarn)||!e.silentTranslationWarn,i=!b(e.silentFallbackWarn)&&!l(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!b(e.fallbackRoot)||e.fallbackRoot,a=!!e.formatFallbackMessages,u=O(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,d=_(e.postTranslation)?e.postTranslation:void 0,p=!y(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,m=!b(e.sync)||e.sync;let g=e.messages;if(O(e.sharedMessages)){const t=e.sharedMessages;g=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return f(r,t[n]),e}),g||{})}const{__i18n:E,__root:w,__injectWithOption:S}=e,T=e.datetimeFormats,x=e.numberFormats;return{locale:t,fallbackLocale:n,messages:g,flatJson:e.flatJson,datetimeFormats:T,numberFormats:x,missing:r,missingWarn:o,fallbackWarn:i,fallbackRoot:s,fallbackFormat:a,modifiers:u,pluralRules:c,postTranslation:d,warnHtmlMessage:p,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:m,__i18n:E,__root:w,__injectWithOption:S}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return b(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=b(e)?!e:e},get silentFallbackWarn(){return b(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=b(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,i={};let s=null,a=null;if(!y(n))throw At(Ct.INVALID_ARGUMENT);const u=n;return y(r)?i.locale=r:v(r)?s=r:O(r)&&(a=r),v(o)?s=o:O(o)&&(a=o),Reflect.apply(t.t,t,[u,s||a||{},i])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,r,o]=e,i={plural:1};let s=null,u=null;if(!y(n))throw At(Ct.INVALID_ARGUMENT);const l=n;return y(r)?i.locale=r:a(r)?i.plural=r:v(r)?s=r:O(r)&&(u=r),y(o)?i.locale=o:v(o)?s=o:O(o)&&(u=o),Reflect.apply(t.t,t,[l,s||u||{},i])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex(e,t){return-1}};return r.__extender=n,r}}const qt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Jt(e){return wt.FK}const Kt=(0,wt.pM)({name:"i18n-t",props:f({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>a(e)||!isNaN(e)}},qt),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||an({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=y(e.plural)?+e.plural:e.plural);const a=function({slots:e},t){return 1===t.length&&"default"===t[0]?(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===wt.FK?t.children:[t]]),[]):t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,i),u=o[kt](e.keypath,a,s),l=f({},r),c=y(e.tag)||E(e.tag)?e.tag:Jt();return(0,wt.h)(c,l,u)}}});function Qt(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),y(e.format)?t.key=e.format:E(e.format)&&(y(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?f({},t,{[r]:e.format[r]}):t),{}));const a=r(e.value,t,s);let u=[t.key];v(a)?u=a.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:a}):[e.value];var i;return v(i=r)&&!y(i[0])&&(r[0].key=`${e.type}-${t}`),r})):y(a)&&(u=[a]);const l=f({},i),c=y(e.tag)||E(e.tag)?e.tag:Jt();return(0,wt.h)(c,l,u)}}const Zt=(0,wt.pM)({name:"i18n-n",props:f({value:{type:Number,required:!0},format:{type:[String,Object]}},qt),setup(e,t){const n=e.i18n||an({useScope:"parent",__useComponent:!0});return Qt(e,t,yt,((...e)=>n[Lt](...e)))}}),en=(0,wt.pM)({name:"i18n-d",props:f({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qt),setup(e,t){const n=e.i18n||an({useScope:"parent",__useComponent:!0});return Qt(e,t,mt,((...e)=>n[It](...e)))}});function tn(e){if(y(e))return{path:e};if(O(e)){if(!("path"in e))throw At(Ct.REQUIRED_VALUE);return e}throw At(Ct.INVALID_VALUE)}function nn(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,s={},u=r||{};return y(n)&&(s.locale=n),a(o)&&(s.plural=o),a(i)&&(s.plural=i),[t,u,s]}function rn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Rt](t.pluralizationRules||e.pluralizationRules);const n=Ft(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const on=o("global-vue-i18n");function sn(e={},t){const n=__VUE_I18N_LEGACY_API__&&b(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,i=!b(e.globalInjection)||e.globalInjection,s=!__VUE_I18N_LEGACY_API__||!n||!!e.allowComposition,a=new Map,[u,l]=function(e,t,n){const r=(0,St.uY)();{const n=__VUE_I18N_LEGACY_API__&&t?r.run((()=>Gt(e))):r.run((()=>Xt(e)));if(null==n)throw At(Ct.UNEXPECTED_ERROR);return[r,n]}}(e,n),c=o("");{const e={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(t,...o){if(t.__VUE_I18N_SYMBOL__=c,t.provide(t.__VUE_I18N_SYMBOL__,e),O(o[0])){const t=o[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let s=null;!n&&i&&(s=function(e,t){const n=Object.create(null);un.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw At(Ct.UNEXPECTED_ERROR);const o=(0,St.i9)(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,ln.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw At(Ct.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}));return()=>{delete e.config.globalProperties.$i18n,ln.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}(t,e.global)),__VUE_I18N_FULL_INSTALL__&&function(e,t,...n){const o=O(n[0])?n[0]:{},i=!!o.useI18nComponentName;(!b(o.globalInstall)||o.globalInstall)&&([i?"i18n":Kt.name,"I18nT"].forEach((t=>e.component(t,Kt))),[Zt.name,"I18nN"].forEach((t=>e.component(t,Zt))),[en.name,"I18nD"].forEach((t=>e.component(t,en)))),e.directive("t",function(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw At(Ct.UNEXPECTED_ERROR);const i=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),s=tn(o);return[Reflect.apply(i.t,i,[...nn(s)]),i]};return{created:(n,o)=>{const[i,s]=t(o);r&&e.global===s&&(n.__i18nWatcher=(0,wt.wB)(s.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),n.__composer=s,n.textContent=i},unmounted:e=>{r&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=tn(t);e.textContent=Reflect.apply(n.t,n,[...nn(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}(t,e,...o),__VUE_I18N_LEGACY_API__&&n&&t.mixin(function(e,t,n){return{beforeCreate(){const r=(0,wt.nI)();if(!r)throw At(Ct.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=rn(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Gt(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=rn(e,o);else{this.$i18n=Gt({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&jt(t,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const e=(0,wt.nI)();if(!e)throw At(Ct.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}(l,l.__composer,e));const a=t.unmount;t.unmount=()=>{s&&s(),e.dispose(),a()}},get global(){return l},dispose(){u.stop()},__instances:a,__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return e}}function an(e={}){const t=(0,wt.nI)();if(null==t)throw At(Ct.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw At(Ct.NOT_INSTALLED);const n=function(e){{const t=(0,wt.WQ)(e.isCE?on:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw At(e.isCE?Ct.NOT_INSTALLED_WITH_PROVIDE:Ct.UNEXPECTED_ERROR);return t}}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),o=Ut(t),i=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if(__VUE_I18N_LEGACY_API__&&"legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw At(Ct.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,t,n,r={}){const o="local"===t,i=(0,St.IJ)(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw At(Ct.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=b(r.inheritLocale)?r.inheritLocale:!y(r.locale),a=(0,St.KR)(!o||s?n.locale.value:y(r.locale)?r.locale:Ue),u=(0,St.KR)(!o||s?n.fallbackLocale.value:y(r.fallbackLocale)||v(r.fallbackLocale)||O(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:a.value),c=(0,St.KR)(Ft(a.value,r)),f=(0,St.KR)(O(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),d=(0,St.KR)(O(r.numberFormats)?r.numberFormats:{[a.value]:{}}),p=o?n.missingWarn:!b(r.missingWarn)&&!l(r.missingWarn)||r.missingWarn,h=o?n.fallbackWarn:!b(r.fallbackWarn)&&!l(r.fallbackWarn)||r.fallbackWarn,m=o?n.fallbackRoot:!b(r.fallbackRoot)||r.fallbackRoot,g=!!r.fallbackFormat,E=_(r.missing)?r.missing:null,w=_(r.postTranslation)?r.postTranslation:null,S=o?n.warnHtmlMessage:!b(r.warnHtmlMessage)||r.warnHtmlMessage,T=!!r.escapeParameter,x=o?n.modifiers:O(r.modifiers)?r.modifiers:{},N=r.pluralRules||o&&n.pluralRules;function C(e){return a.value,u.value,c.value,f.value,d.value,e()}const A={get id(){return i.value?i.value.id:-1},locale:(0,wt.EW)({get:()=>i.value?i.value.locale.value:a.value,set:e=>{i.value&&(i.value.locale.value=e),a.value=e}}),fallbackLocale:(0,wt.EW)({get:()=>i.value?i.value.fallbackLocale.value:u.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),u.value=e}}),messages:(0,wt.EW)((()=>i.value?i.value.messages.value:c.value)),datetimeFormats:(0,wt.EW)((()=>f.value)),numberFormats:(0,wt.EW)((()=>d.value)),get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:x},get pluralRules(){return i.value?i.value.pluralRules:N},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:p},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:h},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:S},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:T},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:function(...e){return i.value?C((()=>Reflect.apply(i.value.t,null,[...e]))):C((()=>""))},getPostTranslationHandler:function(){return i.value?i.value.getPostTranslationHandler():w},setPostTranslationHandler:function(e){i.value&&i.value.setPostTranslationHandler(e)},getMissingHandler:function(){return i.value?i.value.getMissingHandler():E},setMissingHandler:function(e){i.value&&i.value.setMissingHandler(e)},rt:function(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""},d:function(...e){return i.value?C((()=>Reflect.apply(i.value.d,null,[...e]))):C((()=>""))},n:function(...e){return i.value?C((()=>Reflect.apply(i.value.n,null,[...e]))):C((()=>""))},tm:function(e){return i.value?i.value.tm(e):{}},te:function(e,t){return!!i.value&&i.value.te(e,t)},getLocaleMessage:function(e){return i.value?i.value.getLocaleMessage(e):{}},setLocaleMessage:function(e,t){i.value&&(i.value.setLocaleMessage(e,t),c.value[e]=t)},mergeLocaleMessage:function(e,t){i.value&&i.value.mergeLocaleMessage(e,t)},getDateTimeFormat:function(e){return i.value?i.value.getDateTimeFormat(e):{}},setDateTimeFormat:function(e,t){i.value&&(i.value.setDateTimeFormat(e,t),f.value[e]=t)},mergeDateTimeFormat:function(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)},getNumberFormat:function(e){return i.value?i.value.getNumberFormat(e):{}},setNumberFormat:function(e,t){i.value&&(i.value.setNumberFormat(e,t),d.value[e]=t)},mergeNumberFormat:function(e,t){i.value&&i.value.mergeNumberFormat(e,t)}};return(0,wt.KC)((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw At(Ct.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=i.value=e.proxy.$i18n.__composer;"global"===t?(a.value=n.locale.value,u.value=n.fallbackLocale.value,c.value=n.messages.value,f.value=n.datetimeFormats.value,d.value=n.numberFormats.value):o&&function(e){e.locale.value=a.value,e.fallbackLocale.value=u.value,Object.keys(c.value).forEach((t=>{e.mergeLocaleMessage(t,c.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(d.value).forEach((t=>{e.mergeNumberFormat(t,d.value[t])})),e.escapeParameter=T,e.fallbackFormat=g,e.fallbackRoot=m,e.fallbackWarn=h,e.missingWarn=p,e.warnHtmlMessage=S}(n)})),A}(t,i,r,e)}if("global"===i)return jt(r,e,o),r;if("parent"===i){let o=function(e,t,n=!1){let r=null;const o=t.root;let i=function(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}(t,n);for(;null!=i;){const t=e;if("composition"===e.mode)r=t.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(i);null!=e&&(r=e.__composer,n&&r&&!r[Pt]&&(r=null))}if(null!=r)break;if(o===i)break;i=i.parent}return r}(n,t,e.__useComponent);return null==o&&(o=r),o}const s=n;let a=s.__getInstance(t);if(null==a){const n=f({},e);"__i18n"in o&&(n.__i18n=o.__i18n),r&&(n.__root=r),a=Xt(n),s.__composerExtend&&(a[Dt]=s.__composerExtend(a)),function(e,t,n){(0,wt.sV)((()=>{}),t),(0,wt.hi)((()=>{const r=n;e.__deleteInstance(t);const o=r[Dt];o&&(o(),delete r[Dt])}),t)}(s,t,a),s.__setInstance(t,a)}return a}const un=["locale","fallbackLocale","availableLocales"],ln=["t","rt","d","n","tm","te"];var cn;if("boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(p().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(p().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_JIT_COMPILATION__&&(p().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!=typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(p().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(p().__INTLIFY_PROD_DEVTOOLS__=!1),__INTLIFY_JIT_COMPILATION__?We((function(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&y(e)){!b(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||rt)(e),r=ot[n];if(r)return r;const{ast:o,detectError:i}=st(e,{...t,location:!1,jit:!0}),s=et(o);return i?s:ot[n]=s}{const t=e.cacheKey;return t?ot[t]||(ot[t]=et(e)):et(e)}})):We(((e,t)=>{if(!y(e))throw Ne(xe.NOT_SUPPORT_NON_STRING_MESSAGE);{!b(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||rt)(e),r=ot[n];if(r)return r;const{code:o,detectError:i}=st(e,t),s=new Function(`return ${o}`)();return i?s:ot[n]=s}})),$e=function(e,t){if(!E(e))return null;let n=pe.get(t);if(n||(n=function(e){const t=[];let n,r,o,i,s,a,u,l=-1,c=0,f=0;const d=[];function p(){const t=e[l+1];if(5===c&&"'"===t||6===c&&'"'===t)return l++,o="\\"+t,d[0](),!0}for(d[0]=()=>{void 0===r?r=o:r+=o},d[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},d[2]=()=>{d[0](),f++},d[3]=()=>{if(f>0)f--,c=4,d[0]();else{if(f=0,void 0===r)return!1;if(r=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,fe.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(r),!1===r)return!1;d[1]()}};null!==c;)if(l++,n=e[l],"\\"!==n||!p()){if(i=de(n),u=ce[c],s=u[i]||u.l||8,8===s)return;if(c=s[0],void 0!==s[1]&&(a=d[s[1]],a&&(o=n,!1===a())))return;if(7===c)return t}}(t),n&&pe.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;for(;i<r;){const e=o[n[i]];if(void 0===e)return null;if(_(o))return null;o=e,i++}return o},ze=Le,__INTLIFY_PROD_DEVTOOLS__){const e=p();e.__INTLIFY__=!0,cn=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,Ee=cn}},8434:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Mostrant {filtered} de {total}","Bookmark for reference":"Anotar","Marked":"Anotat","Delete answer":"Esborra resposta","Loading...":"Carregant...","No data":"Sense dades","Close":"Tanca","Edit":"Editar","Save":"Desar","Copy":"Copia","Export":"Exportar","Expand filter options":"Expandir opcions de filtre","Collapse filter options":"Col·lapsar opcions de filtre","Graphs":"Gràfics","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtrar ...","Filter text":"Filtrar text","Clear filter":"Netejar filtre","Order by":"Ordenar por","Order data by this field":"Endreçar dades per aquest camp","Toggle ascending order":"Alternar ordre ascendent","First field":"Primer camp","Select first field to display":"Seleccionar el primer camp a mostrar","Reset":"Reiniciar","Table":"Graella","Cards":"Tarjetes","Options":"Opcions","Delete all":"Esborrar tot","Deleted fields":"Camps esborrats","True":"Cert","False":"Fals","Previous":"Anterior","Next":"Següent","Name":"Nom","Created":"Creat","Author":"Autor","Public":"Públic","Last answer":"Darrera resposta","Answers":"Respostes","Users":"Usuaris","User name":"Nom d\'usuari","Enabled":"Habilitat","Email":"Correu electrònic","Forms":"Formularis","Admin":"Admin","Shared":"Compartit","Empty":"Buit","Expand":"Expandir","Collapse":"Colapsar","Portrait":"Retrat","Landscape":"Paisatge","Font size":"Mida de la lletra","Select font size":"Seleccionar la mida de la lletra","Page":"Pàgina","Page orientation":"Page orientation","Export these fields":"Exporta aquests camps","Only export bookmarked":"Exportar només els anotats","Download PDF":"Descarregar PDF","Cancel":"Cancel·lar","Totals":"Total","Role":"Rol","Disk usage":"Ús del disc"}')},9504:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Bookmark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Options":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"Export these fields","Only export bookmarked":"","Download PDF":"","Cancel":"","Totals":""}')},369:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Anzeige {filtered} von {total}","Bookmark for reference":"Als Referenz markieren","Delete answer":"Antwort löschen","Loading...":"Wird geladen …","No data":"Keine Daten","Close":"Schließen","Edit":"Bearbeiten","Save":"Speichern","Copy":"Copy","Export":"Export","Expand filter options":"Filteroptionen erweitern","Collapse filter options":"Filteroptionen einklappen","Graphs":"Schaubilder","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtern …","Filter text":"Text filtern","Clear filter":"Filter löschen","Order by":"Sortieren nach","Order data by this field":"Daten nach diesem Feld sortieren","Toggle ascending order":"Aufsteigende Reihenfolge umschalten","First field":"Erstes Feld","Select first field to display":"Wählen Sie das erste Feld, das angezeigt werden soll","Reset":"Zurücksetzen","Table":"Tabelle","Cards":"Karten","Options":"","Delete all":"Alle löschen","Deleted fields":"Gelöschte Felder","True":"Wahr","False":"Falsch","Previous":"Vorherige","Next":"Nächste","Name":"Name","Created":"Erstellt","Author":"Autor","Public":"Öffentlich","Last answer":"Letzte Antwort","Answers":"Antworten","Users":"Benutzer","User name":"Benutzername","Enabled":"Aktiviert","Email":"E-Mail","Forms":"Formulare","Admin":"Admin","Shared":"Geteilt","Empty":"Leer","Expand":"Erweitern","Collapse":"Einklappen","Portrait":"Porträt","Landscape":"Landschaft","Font size":"Schriftgröße","Select font size":"Schriftgröße auswählen","Page":"Seite","Page orientation":"Page orientation","Export these fields":"Export these fields","Download PDF":"","Cancel":"","Only export bookmarked":"","Marked":""}')},389:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Displaying {filtered} of {total}","Bookmark for reference":"Bookmark for reference","Marked":"Marked","Delete answer":"Delete answer","Loading...":"Loading...","No data":"No data","Close":"Close","Edit":"Edit","Save":"Save","Copy":"Copy","Export":"Export","Expand filter options":"Expand filter options","Collapse filter options":"Collapse filter options","Graphs":"Graphs","CSV":"CSV","JSON":"JSON","PDF":"PDF","Search":"Search","Clear filter":"Clear filter","Order by":"Order by","Order data by this field":"Order data by this field","Toggle ascending order":"Toggle ascending order","First field":"First field","Select first field to display":"Select first field to display","Reset":"Reset","Table":"Table","Cards":"Cards","Options":"Options","Delete":"Delete","Delete options":"Delete options","Delete all":"Delete all","Include deleted fields":"Include deleted fields","This cannot be undone!":"This cannot be undone!","Show more":"Show more","True":"True","False":"False","Previous":"Previous","Next":"Next","Displaying {number} of {total}":"Displaying {number} of {total}","Name":"Name","Created":"Created","Author":"Author","Public":"Public","Last answer":"Last answer","Answers":"Answers","Users":"Users","User name":"User name","Enabled":"Enabled","Email":"Email","Role":"Role","Disk usage":"Disk usage","Forms":"Forms","Admin":"Admin","Shared":"Shared","Empty":"Empty","Expand":"Expand","Collapse":"Collapse","Portrait":"Portrait","Landscape":"Landscape","Font size":"Font size","Select font size":"Select font size","Page":"Page","Page orientation":"Page orientation","Export these fields":"Export these fields","Only export bookmarked":"Only export bookmarked","Download PDF":"Download PDF","Cancel":"Cancel","Total":"Total","Totals":"Totals","Most recent":"Most recent","Data submitted on the %date%":"Data submitted on the %date%","Filters":"Filters","Clear":"Clear","Select a field option":"Select a field","Select field options":"Select field options","All fields":"All fields","Chronology":"Chronology","Numbers":"Numbers"}')},9946:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Montrante {filtered} el {total}","Bookmark for reference":"Marki por referenco","Marked":"Markita","Delete answer":"Forviŝi respondon","Loading...":"Ŝargante…","No data":"Neniu dateno","Close":"Fermi","Edit":"Redakti","Save":"Konservi","Copy":"Kopii","Export":"Export","Expand filter options":"Etendi filtrilajn opciojn","Collapse filter options":"Maletendi filtrilajn opciojn","Graphs":"Grafoj","CSV":"Kome disigitaj valoroj","JSON":"JSON","PDF":"PDF","Filter ...":"Filtri…","Filter text":"Filtri tekston","Clear filter":"Forigi filtrilon","Order by":"Ordigi laŭ","Order data by this field":"Ordigi datenojn laŭ ĉi tiu kampo","Toggle ascending order":"Baskuligi kreskan ordon","First field":"Unua kampo","Select first field to display":"Elektu unue montrotan kampon","Reset":"Restarigi","Table":"Tabelo","Cards":"Kartoj","Options":"Opcioj","Delete all":"Forviŝi ĉiujn","Deleted fields":"Forviŝitaj kampoj","True":"Vera","False":"Malvera","Previous":"Antaŭa","Next":"Sekva","Name":"Nomo","Created":"Kreita","Author":"Aŭtoro","Public":"Publika","Last answer":"Lasta respondo","Answers":"Respondoj","Users":"Uzantoj","User name":"Salutnomo","Enabled":"Ŝaltita","Email":"Retpoŝtadreso","Forms":"Formularoj","Admin":"Administro","Shared":"Kunhavigita","Empty":"Malplena","Expand":"Etendi","Collapse":"Maletendi","Portrait":"Vertikala","Landscape":"Horizontala","Font size":"Grando de tiparoj","Select font size":"Elekti grandon de tiparoj","Page":"Paĝo","Page orientation":"Page orientation","Export these fields":"Nur elporti markitaĵojn","Only export bookmarked":"Nur elporti markitaĵojn","Cancel":"Nuligi","Download PDF":"Elŝuti PDF-dosieron","Totals":"Sumoj","Role":"Rolo","Disk usage":"Diska uzado"}')},8302:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Mostrando {filtered} de {total}","Bookmark for reference":"Marcar como referencia","Marked":"Marcado","Delete answer":"Eliminar respuesta","Loading...":"Cargando…","No data":"Sin datos","Close":"Cerrar","Edit":"Editar","Save":"Guardar","Copy":"Copiar","Export":"Exportar","Expand filter options":"Expandir opciones de filtro","Collapse filter options":"Contraer opciones de filtro","Graphs":"Gráficos","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"FIltrar …","Filter text":"Filtrar texto","Clear filter":"Limpiar filtro","Order by":"Ordenar por","Order data by this field":"Ordenar los datos según este campo","Toggle ascending order":"Conmutar orden ascendente","First field":"Primer campo","Select first field to display":"Seleccionar el primer campo a mostrar","Reset":"Restablecer","Table":"Tabla","Cards":"Tarjetas","Options":"Opciones","Delete all":"Eliminar todos","Deleted fields":"Campos eliminados","True":"Cierto","False":"Falso","Previous":"Anterior","Next":"Siguiente","Name":"Nombre","Created":"Creado","Author":"Autor","Public":"Público","Last answer":"Última respuesta","Answers":"Respuestas","Users":"Usuarios","User name":"Nombre de usuaria","Enabled":"Habilitado","Email":"Correo electrónico","Forms":"Formularios","Admin":"Admin","Shared":"Compartido","Empty":"Vacío","Expand":"Expandir","Collapse":"Contraer","Portrait":"Vertical","Landscape":"Horizontal","Font size":"Tamaño de letra","Select font size":"Seleccionar el tamaño de la letra","Page":"Página","Page orientation":"Page orientation","Export these fields":"Exportar estos campos","Only export bookmarked":"Solamente exportar marcados","Download PDF":"Descargar PDF","Cancel":"Cancelar","Totals":"Totales","Role":"Rol","Disk usage":"Uso de disco"}')},2704:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"{total}(e)tik {filtered} erakusten","Bookmark for reference":"Markatu erreferentzia gisa","Marked":"Markatuta","Delete answer":"Ezabatu erantzuna","Loading...":"Kargatzen...","No data":"Daturik ez","Close":"Itxi","Edit":"Editatu","Save":"Gorde","Copy":"Kopiatu","Export":"Esportatu","Expand filter options":"Hedatu iragazteko aukerak","Collapse filter options":"Tolestu iragazki-aukerak","Graphs":"Grafikoak","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Iragazi ...","Filter text":"Iragazi testua","Clear filter":"Garbitu iragazkia","Order by":"Ordenatu honela:","Order data by this field":"Ordenatu datuak eremu honen arabera","Toggle ascending order":"Txandakatu goranzko eta beheranzko ordena","First field":"Lehen eremua","Select first field to display":"Aukeratu zein eremu bistaratu lehenengo","Reset":"Berrezarri","Table":"Taula","Cards":"Txartelak","Options":"Aukerak","Delete all":"Ezabatu guztiak","Deleted fields":"Ezabatutako eremuak","True":"Egia","False":"Gezurra","Previous":"Aurrekoa","Next":"Hurrengoa","Name":"Izena","Created":"Sortuta","Author":"Egilea","Public":"Publikoa","Last answer":"Azken erantzuna","Answers":"Erantzunak","Users":"Erabiltzaileak","User name":"Erabiltzaile-izena","Enabled":"Gaituta","Email":"Eposta","Forms":"Galdetegiak","Admin":"Administratzailea","Shared":"Partekatua","Empty":"Hutsik","Expand":"Hedatu","Collapse":"Tolestu","Portrait":"Bertikala","Landscape":"Horizontala","Font size":"Letraren tamaina","Select font size":"Aukeratu letraren tamaina","Page":"Orrialdea","Page orientation":"Orriaren orientazioa","Export these fields":"Eremu hauek esportatu","Only export bookmarked":"Markatutakoak soilik esportatu","Download PDF":"Deskargatu PDFa","Cancel":"Utzi","Totals":"Guztira","Disk usage":"Diskaren erabilera","Role":"Rola"}')},5222:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Affichage {filtered} de {total}","Bookmark for reference":"Marquer pour référence","Delete answer":"Supprimer la réponse","Loading...":"Chargement…","No data":"Aucune donnée","Close":"Fermer","Edit":"Modifier","Save":"Enregistrer","Copy":"Copy","Export":"Export","Expand filter options":"Développer les options de filtrage","Collapse filter options":"Réduire les options de filtrage","Graphs":"Graphiques","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtre…","Filter text":"Filtrer le texte","Clear filter":"Effacer le filtre","Order by":"Ordonner par","Order data by this field":"Ordonner les données par ce champ","Toggle ascending order":"Activer/désactiver l\'ordre croissant","First field":"Premier champ","Select first field to display":"Sélectionnez le premier champ à afficher","Reset":"Réinitialiser","Table":"Tableau","Cards":"Cartes","Options":"","Delete all":"Tout supprimer","Deleted fields":"Champs supprimés","True":"Vrai","False":"Faux","Previous":"Précédent","Next":"Suivant","Name":"Nom","Created":"Créé","Author":"Auteur","Public":"Public","Last answer":"Dernière réponse","Answers":"Réponses","Users":"Utilisateurs","User name":"Nom d\'utilisateur","Enabled":"Activé","Email":"Courriel","Forms":"Formulaires","Admin":"Admin","Shared":"Partagé","Empty":"Vide","Expand":"Développer","Collapse":"Réduire","Portrait":"Portrait","Landscape":"Paysage","Font size":"Taille de la police","Select font size":"Sélectionnez la taille de la police","Page":"Page","Page orientation":"Page orientation","Export these fields":"Export these fields","Marked":"Marqué","Only export bookmarked":"Exporter seulement les marqués","Cancel":"Annuler","Download PDF":"Télécharger le PDF","Role":"Rôle","Disk usage":"Utilisation du disque","Totals":"Totaux"}')},4895:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Visualizzazione {filtered} di {total}","Bookmark for reference":"Segna come riferimento","Delete answer":"Elimina la risposta","Loading...":"Caricamento…","No data":"Nessuna informazione","Close":"Chiudi","Edit":"Modifica","Save":"Salva","Copy":"Copy","Export":"Export","Expand filter options":"Espandi le opzioni di filtraggio","Collapse filter options":"Chiudi le opzioni di filtraggio","Graphs":"Grafici","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtra …","Filter text":"Filtra il testo","Clear filter":"Resetta il filtro","Order by":"Ordina per","Order data by this field":"Ordina i dati secondo questo campo","Toggle ascending order":"Cambia l’ordine","First field":"Primo campo","Select first field to display":"Seleziona il primo campo da mostrare","Reset":"Reset","Table":"Tabella","Cards":"Schede","Options":"","Delete all":"Elimina tutti","Deleted fields":"Campi eliminati","True":"Vero","False":"Falso","Previous":"Precedente","Next":"Successivo","Name":"Nome","Created":"Creato","Author":"Autore","Public":"Pubblico","Last answer":"Ultima risposta","Answers":"Risposte","Users":"Utenti","User name":"Nome dell’utente","Enabled":"Attivato","Email":"E-mail","Forms":"Moduli","Admin":"Amministratore","Shared":"Condivisa","Empty":"Vuota","Expand":"Espendi","Collapse":"Chiudi","Portrait":"Verticale","Landscape":"Orizzontale","Font size":"Dimensione del font","Select font size":"Seleziona la dimensione del font","Page":"Formato pagina","Page orientation":"Page orientation","Export these fields":"Export these fields","Cancel":"Cancella","Only export bookmarked":"Esporta solo gli elementi segnati","Marked":"Segnato","Download PDF":"Scarica il PDF","Role":"Ruolo","Disk usage":"Utilizzo della memoria","Totals":"Totale"}')},3484:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Afichatge {filtered} de {total}","Bookmark for reference":"Marcar coma referéncia","Marked":"Marcat","Delete answer":"Suprimir la responsa","Loading...":"Cargament…","No data":"Cap de donada","Close":"Tampar","Edit":"Modificar","Save":"Enregistrar","Copy":"Copiar","Export":"Exportar","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"Alternar òrdre ascendent","First field":"Primièr camp","Select first field to display":"Seleccionar lo primièr camp d’afichar","Reset":"Reinicializar","Table":"Tablèu","Cards":"Cartas","Options":"Opcions","Delete all":"Tot suprimir","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"Public","Last answer":"Darrièra responsa","Answers":"Responsas","Users":"Utilizaires","User name":"Nom d’utilizaire","Enabled":"Activat","Email":"Corrièl","Role":"Ròtle","Disk usage":"Utilizacion disc","Forms":"Formularis","Admin":"Admin","Shared":"Partejat","Empty":"Void","Expand":"Desplegar","Collapse":"Reduire","Portrait":"Retrach","Landscape":"Paisatge","Font size":"Talha de letra","Select font size":"Seleccionar la talha de letra","Page":"Pagina","Page orientation":"Orientacion pagina","Export these fields":"Exportar aquestes camps","Only export bookmarked":"Exportar sonque los marcapaginas","Download PDF":"Telecargar lo PDF","Cancel":"Anullar","Totals":"Total"}')},9026:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Wyświetlono {filtered} z {total}","Bookmark for reference":"Oznaczenie do wglądu","Marked":"Oznaczone","Delete answer":"Usuń odpowiedź","Loading...":"Ładowanie...","No data":"Brak danych","Close":"Zamknij","Edit":"Edytuj","Save":"Zapisz","Copy":"Copy","Export":"Export","Expand filter options":"Rozwiń opcje filtrowania","Collapse filter options":"Zwiń opcje filtrowania","Graphs":"Wykresy","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Filtruj...","Filter text":"Filtruj tekst","Clear filter":"Wyczyść filtrowanie","Order by":"Sortuj według","Order data by this field":"Posortuj dane według tego pola","Toggle ascending order":"Przełącz kolejność rosnącą","First field":"Pierwsze pole","Select first field to display":"Wybierz pierwsze pole do wyświetlenia","Reset":"Resetuj","Table":"Tabela","Cards":"Karty","Options":"","Delete all":"Usuń wszystko","Deleted fields":"Usunięte pola","True":"Prawda","False":"Fałsz","Previous":"Poprzedni","Next":"Następny","Name":"Nazwa","Created":"Utworzono","Author":"Autor","Public":"Publiczne","Last answer":"Ostatnia odpowiedź","Answers":"Odpowiedzi","Users":"Użytkownicy","User name":"Nazwa użytkownika","Enabled":"Włączone","Email":"E-mail","Role":"Funkcja","Disk usage":"Wykorzystanie dysku","Forms":"Formularze","Admin":"Administrator","Shared":"Udostępnione","Empty":"Puste","Expand":"Rozwiń","Collapse":"Zwiń","Portrait":"Portret","Landscape":"Krajobraz","Font size":"Rozmiar czcionki","Select font size":"Wybierz rozmiar czcionki","Page":"Strona","Page orientation":"Page orientation","Export these fields":"Export these fields","Only export bookmarked":"Oznaczony jako tylko do eksportu","Download PDF":"Pobierz PDF","Cancel":"Anuluj","Totals":"Razem"}')},6611:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Bookmark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Options":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"","Only export bookmarked":"","Download PDF":"","Cancel":"","Totals":""}')},671:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"Отображение {filtered} значения {total}","Marked":"Отмечено!","Delete answer":"Удалить ответ","Loading...":"Загрузка…","No data":"Нет данных","Close":"Закрыть","Edit":"Редактировать","Save":"Сохранить (Save)","Copy":"Копировать (Copy)","Export":"Экспортировать","Expand filter options":"Расширение параметров фильтра","Collapse filter options":"Параметры фильтра сворачивания","Graphs":"Графики","CSV":"CSV","JSON":"JSON","PDF":"PDF","Filter ...":"Фильтр...","Filter text":"Фильтровать текст","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Options":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"Последний ответ","Answers":"Ответы","Users":"Пользователи","User name":"Имя пользователя","Enabled":"Включено","Email":"Электронная почта","Role":"Роль","Disk usage":"Использование диска","Forms":"Формы","Admin":"Администратор","Shared":"Общий","Empty":"Пусто","Expand":"Развернуть","Collapse":"Коллапс","Portrait":"Портрет","Landscape":"Альбом","Font size":"Размер шрифта","Select font size":"Выбрать размер шрифта","Page":"Страница","Page orientation":"","Export these fields":"Экспорт этих областей","Download PDF":"Скачать PDF","Cancel":"Отмена","Totals":"Итого"}')},641:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Bookmark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Options":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"","Only export bookmarked":"","Download PDF":"","Cancel":"","Totals":""}')},6984:function(e){"use strict";e.exports=JSON.parse('{"Displaying {filtered} of {total}":"","Bookmark for reference":"","Marked":"","Delete answer":"","Loading...":"","No data":"","Close":"","Edit":"","Save":"","Copy":"Copy","Export":"Export","Expand filter options":"","Collapse filter options":"","Graphs":"","CSV":"","JSON":"","PDF":"","Filter ...":"","Filter text":"","Clear filter":"","Order by":"","Order data by this field":"","Toggle ascending order":"","First field":"","Select first field to display":"","Reset":"","Table":"","Cards":"","Options":"","Delete all":"","Deleted fields":"","True":"","False":"","Previous":"","Next":"","Name":"","Created":"","Author":"","Public":"","Last answer":"","Answers":"","Users":"","User name":"","Enabled":"","Email":"","Role":"","Disk usage":"","Forms":"","Admin":"","Shared":"","Empty":"","Expand":"","Collapse":"","Portrait":"","Landscape":"","Font size":"","Select font size":"","Page":"","Page orientation":"","Export these fields":"","Only export bookmarked":"","Download PDF":"","Cancel":"","Totals":""}')}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=i,e=[],a.O=function(t,n,r,o){if(!n){var i=1/0;for(c=0;c<e.length;c++){n=e[c][0],r=e[c][1],o=e[c][2];for(var s=!0,u=0;u<n.length;u++)(!1&o||i>=o)&&Object.keys(a.O).every((function(e){return a.O[e](n[u])}))?n.splice(u--,1):(s=!1,o<i&&(i=o));if(s){e.splice(c--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o]},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},a.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);a.r(o);var i={};t=t||[null,n({}),n([]),n(n)];for(var s=2&r&&e;"object"==typeof s&&!~t.indexOf(s);s=n(s))Object.getOwnPropertyNames(s).forEach((function(t){i[t]=function(){return e[t]}}));return i.default=function(){return e},a.d(o,i),o},a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce((function(t,n){return a.f[n](e,t),t}),[]))},a.u=function(e){return e+".js"},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="data-display:",a.l=function(e,t,n,i){if(r[e])r[e].push(t);else{var s,u;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var f=l[c];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==o+n){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",o+n),s.src=e),r[e]=[t];var d=function(t,n){s.onerror=s.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((function(e){return e(n)})),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),u&&document.head.appendChild(s)}},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e}(),function(){var e={274:0};a.f.j=function(t,n){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(function(n){if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}},a.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,i=n[0],s=n[1],u=n[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(u)var c=u(a)}for(t&&t(n);l<i.length;l++)o=i[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(c)},n=self.webpackChunkdata_display=self.webpackChunkdata_display||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var u={};!function(){"use strict";var e=a(7416),t=a(5106),n=a(9677),r=a(9153),o=a(822),i={name:"SlideUpDown",props:{active:Boolean,duration:{type:Number,default:500},tag:{type:String,default:"div"},useHidden:{type:Boolean,default:!0}},data:()=>({style:{},initial:!1,hidden:!1}),watch:{active(){this.layout()}},render(){return(0,o.h)(this.tag,{...this.attrs,style:this.style,ref:"container",onTransitionend:this.onTransitionEnd},this.$slots.default())},mounted(){this.layout(),this.initial=!0},created(){this.hidden=!this.active},computed:{el(){return this.$refs.container},attrs(){const e={"aria-hidden":!this.active,"aria-expanded":this.active};return this.useHidden&&(e.hidden=this.hidden),e}},methods:{layout(){this.active?(this.hidden=!1,this.$emit("open-start"),this.initial&&this.setHeight("0px",(()=>this.el.scrollHeight+"px"))):(this.$emit("close-start"),this.setHeight(this.el.scrollHeight+"px",(()=>"0px")))},asap(e){this.initial?this.$nextTick(e):e()},setHeight(e,t){this.style={height:e},this.asap((()=>{this.__=this.el.scrollHeight,this.style={height:t(),overflow:"hidden","transition-property":"height","transition-duration":this.duration+"ms"}}))},onTransitionEnd(e){e.target===this.el&&(this.active?(this.style={},this.$emit("open-end")):(this.style={height:"0",overflow:"hidden"},this.hidden=!0,this.$emit("close-end")))}}},s=a(4526);const u={key:0},l={key:0,class:"ds-loading"};var c=a(8266),f=a.n(c),d=a(5624);const p={class:""},h={class:"mt-3"},m={key:0,class:"mt-3 ds-controls-height"},g={class:"ds-button-container"},v={class:"mt-4"},y={class:"mt-2 ds-button-container"},b={key:0,class:"mt-3"},E={key:1,class:"mt-3"},w={key:2,class:"mt-3"},S=["innerHTML"],T={class:"ds-controls-height ds-button-container"},O={key:0},x={class:"mt-3"},N={class:"d-flex flex-wrap flex-md-nowrap align-items-center justify-content-between"},C=["innerHTML"],A={class:"ds-controls-height ds-button-container"},k={key:0,class:"mt-2 ds-controls-height ds-button-container"},I={key:1,class:"mt-2"},L={key:2,class:"mt-2"},R={class:"mt-3"},P={class:"mt-3"},D={class:"mt-3"},M=["innerHTML"],F={class:"mt-2"},U=["innerHTML"];var j=a(6270),B=a(4390),V=a(4997);const $={class:"grid ds-container-filters"},z={key:0,class:"g-col-12 g-col-md-4"},W={class:"g-col-12 g-col-md-4"},H={class:"input-group flex-nowrap"},Y={class:"input-group-text"},X=["selected","value"],G={class:"g-col-12 g-col-md-4"},q={class:"input-group flex-nowrap"},J={class:"input-group-text"},K=["selected","value"];a(3147);var Q=a(9819);const Z={class:"input-group"},ee=["placeholder"],te=["aria-label"],ne=["aria-label"];var re={name:"SearchText",components:{SearchIcon:V.WIv,SkipBackIcon:V.SSf},setup(){const e=(0,d.E)(),t=(0,B.KR)("");return(0,o.wB)((0,o.EW)((()=>t.value)),(()=>{""==t.value&&(e.search_text=t.value,e.searched_items=[])})),{search_text:t,searchText:function(){let n=t.value.toLowerCase();var r=_.filter(e.items,(function(t){if(-1!==t.created.indexOf(n))return t;for(var r in t.data){var o=t.data[r];if(void 0!==o.value&&(o=o.value),o=e.getFormattedValue({field_name:r,field_value:o}),-1!==(o=String(o).toLowerCase()).indexOf(n))return t}}));e.search_text=t.value,e.searched_items=r},clearText:function(){t.value=""}}}},oe=a(1535),ie=(0,oe.A)(re,[["render",function(t,n,r,i,s,a){const u=(0,o.g2)("SkipBackIcon"),l=(0,o.g2)("SearchIcon");return(0,o.uX)(),(0,o.CE)("div",Z,[(0,o.bo)((0,o.Lk)("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>i.search_text=e),class:"form-control",onKeyup:n[1]||(n[1]=(0,e.withKeys)((e=>i.searchText()),["enter"])),placeholder:t.$t("Search"),"aria-describedby":"button-to-search"},null,40,ee),[[e.vModelText,i.search_text]]),(0,o.Lk)("button",{class:"btn btn-outline-secondary appended-button",id:"button-to-clear-search",type:"button","aria-label":t.$t("Clear"),onClick:n[2]||(n[2]=e=>i.clearText())},[(0,o.bF)(u,{size:"1.1x","aria-label":t.$t("Clear")},null,8,["aria-label"])],8,te),(0,o.Lk)("button",{class:"btn btn-outline-secondary appended-button",id:"button-to-search",type:"button","aria-label":t.$t("Search"),onClick:n[3]||(n[3]=e=>i.searchText())},[(0,o.bF)(l,{size:"1.1x","aria-label":t.$t("Search")},null,8,["aria-label"])],8,ne)])}]]),se={name:"ItemControls",components:{SearchText:ie,XIcon:V.uv5,ArrowUpIcon:V.Kpk,ArrowDownIcon:V.ZLN,RotateCcwIcon:V._wB},setup(){const e=(0,d.E)(),{t:t}=(0,j.s9)({useScope:"global"}),n=(0,B.KR)(e.user_prefs.ascending),r=(0,o.EW)((()=>"marked"!=e.user_prefs.field_index[0].name?e.user_prefs.field_index[0]:e.user_prefs.field_index[1]));return{xs_screen:(0,o.WQ)("xs_screen"),default_field_index:e.default_field_index,order_by:(0,o.EW)((()=>e.user_prefs.order_by)),first_field:r,setOrderBy:e.setOrderBy,changeIndex:function(t){let n=t.target.value;var r=JSON.parse(JSON.stringify(e.user_prefs.field_index)),o=null;e.has_row_controls&&(o=r.shift());let i=r.findIndex((e=>e.name===n));var s=r[i];r.splice(i,1),r.splice(0,0,s),o&&r.splice(0,0,o),e.user_prefs.field_index=r,f().post(e.endpoint+"/change-index",{field_index:r}).then((function(t){e.user_prefs.field_index=t.data.field_index})).catch((function(e){console.log(e)}))},resetFieldIndex:function(){e.user_prefs.field_index=e.default_field_index,f().post(e.endpoint+"/reset-index").then((function(t){e.user_prefs.field_index=t.data.field_index})).catch((function(e){console.log(e)})).finally((function(){}))},toggleAscending:function(t){n.value=!n.value,e.setAscending(n.value)},ascending:n,getFieldLabel:function(n,r){return"answer"==e.data_type?"marked"==n||"created"==n?t(r):r:t(r)}}}},ae=(0,oe.A)(se,[["render",function(e,t,n,r,i,a){const u=(0,o.g2)("SearchText"),l=(0,o.g2)("ArrowDownIcon"),c=(0,o.g2)("ArrowUpIcon"),f=(0,o.g2)("RotateCcwIcon");return(0,o.uX)(),(0,o.CE)("div",$,[(0,o.Q3)(" filter "),r.xs_screen?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)("div",z,[(0,o.bF)(u)])),(0,o.Q3)(" order by "),(0,o.Lk)("div",W,[(0,o.Lk)("div",H,[(0,o.Lk)("span",Y,(0,s.toDisplayString)(e.$t("Order by")),1),(0,o.Lk)("select",{onChange:t[0]||(t[0]=e=>r.setOrderBy(e.target.value)),class:"custom-select form-select",id:"fieldSelector","aria-label":"Order data by this field"},[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(r.default_field_index,(e=>((0,o.uX)(),(0,o.CE)("option",{key:e.name,selected:r.order_by===e.name,value:e.name},(0,s.toDisplayString)(r.getFieldLabel(e.name,e.label)),9,X)))),128))],32),(0,o.Lk)("button",{type:"button",onClick:t[1]||(t[1]=(...e)=>r.toggleAscending&&r.toggleAscending(...e)),"aria-label":"Toggle ascending order",class:"btn btn-outline-secondary appended-button"},[r.ascending?((0,o.uX)(),(0,o.Wv)(l,{key:0,size:"1.1x","aria-label":"Descending"})):((0,o.uX)(),(0,o.Wv)(c,{key:1,size:"1.1x","aria-label":"Ascending"}))])])]),(0,o.Q3)(" first field "),(0,o.Lk)("div",G,[(0,o.Lk)("div",q,[(0,o.Lk)("span",J,(0,s.toDisplayString)(e.$t("First field")),1),(0,o.Lk)("select",{onChange:t[2]||(t[2]=e=>r.changeIndex(e)),class:"custom-select form-select",id:"fieldSelector","aria-label":"Select first field to display"},[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(r.default_field_index,(e=>((0,o.uX)(),(0,o.CE)(o.FK,{key:e.name},["marked"!=e.name?((0,o.uX)(),(0,o.CE)("option",{key:0,selected:r.first_field.name===e.name,value:e.name},(0,s.toDisplayString)(r.getFieldLabel(e.name,e.label)),9,K)):(0,o.Q3)("v-if",!0)],64)))),128))],32),(0,o.Lk)("button",{class:"btn btn-outline-secondary appended-button",type:"button",onClick:t[3]||(t[3]=e=>r.resetFieldIndex())},[(0,o.bF)(f,{size:"1.1x","aria-label":"Reset columns"})])])])])}]]);const ue={key:0};var le=a(6638);function ce(){}function fe(){fe.init.call(this)}function de(e){return void 0===e._maxListeners?fe.defaultMaxListeners:e._maxListeners}function pe(e,t,n,r){var o,i,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((i=e._events)?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]):(i=e._events=new ce,e._eventsCount=0),s){if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),!s.warned&&(o=de(e))&&o>0&&s.length>o){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,"function"==typeof console.warn?console.warn(a):console.log(a)}}else s=i[t]=n,++e._eventsCount;return e}function he(e,t,n){var r=!1;function o(){e.removeListener(t,o),r||(r=!0,n.apply(e,arguments))}return o.listener=n,o}function me(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function ge(e,t){for(var n=new Array(t);t--;)n[t]=e[t];return n}a(8318),ce.prototype=Object.create(null),fe.EventEmitter=fe,fe.usingDomains=!1,fe.prototype.domain=void 0,fe.prototype._events=void 0,fe.prototype._maxListeners=void 0,fe.defaultMaxListeners=10,fe.init=function(){this.domain=null,fe.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new ce,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},fe.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},fe.prototype.getMaxListeners=function(){return de(this)},fe.prototype.emit=function(e){var t,n,r,o,i,s,a,u="error"===e;if(s=this._events)u=u&&null==s.error;else if(!u)return!1;if(a=this.domain,u){if(t=arguments[1],!a){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=a,t.domainThrown=!1,a.emit("error",t),!1}if(!(n=s[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,o=ge(e,r),i=0;i<r;++i)o[i].call(n)}(n,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var o=e.length,i=ge(e,o),s=0;s<o;++s)i[s].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(e,t,n,r,o){if(t)e.call(n,r,o);else for(var i=e.length,s=ge(e,i),a=0;a<i;++a)s[a].call(n,r,o)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,o,i){if(t)e.call(n,r,o,i);else for(var s=e.length,a=ge(e,s),u=0;u<s;++u)a[u].call(n,r,o,i)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];!function(e,t,n,r){if(t)e.apply(n,r);else for(var o=e.length,i=ge(e,o),s=0;s<o;++s)i[s].apply(n,r)}(n,c,this,o)}return!0},fe.prototype.addListener=function(e,t){return pe(this,e,t,!1)},fe.prototype.on=fe.prototype.addListener,fe.prototype.prependListener=function(e,t){return pe(this,e,t,!0)},fe.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,he(this,e,t)),this},fe.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,he(this,e,t)),this},fe.prototype.removeListener=function(e,t){var n,r,o,i,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0==--this._eventsCount?this._events=new ce:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){s=n[i].listener,o=i;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new ce,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}(n,o);r.removeListener&&this.emit("removeListener",e,s||t)}return this},fe.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new ce,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new ce:delete n[e]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new ce,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},fe.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(t):[]},fe.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):me.call(e,t)},fe.prototype.listenerCount=me,fe.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var ve="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},_e=[],ye=[],be="undefined"!=typeof Uint8Array?Uint8Array:Array,Ee=!1;function we(){Ee=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)_e[t]=e[t],ye[e.charCodeAt(t)]=t;ye["-".charCodeAt(0)]=62,ye["_".charCodeAt(0)]=63}function Se(e,t,n){for(var r,o,i=[],s=t;s<n;s+=3)r=(e[s]<<16)+(e[s+1]<<8)+e[s+2],i.push(_e[(o=r)>>18&63]+_e[o>>12&63]+_e[o>>6&63]+_e[63&o]);return i.join("")}function Te(e){var t;Ee||we();for(var n=e.length,r=n%3,o="",i=[],s=16383,a=0,u=n-r;a<u;a+=s)i.push(Se(e,a,a+s>u?u:a+s));return 1===r?(t=e[n-1],o+=_e[t>>2],o+=_e[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=_e[t>>10],o+=_e[t>>4&63],o+=_e[t<<2&63],o+="="),i.push(o),i.join("")}function Oe(e,t,n,r,o){var i,s,a=8*o-r-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=256*s+e[t+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=l}return(p?-1:1)*s*Math.pow(2,i-r)}function xe(e,t,n,r,o,i){var s,a,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[n+p]=255&a,p+=h,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;e[n+p]=255&s,p+=h,s/=256,l-=8);e[n+p-h]|=128*m}var Ne={}.toString,Ce=Array.isArray||function(e){return"[object Array]"==Ne.call(e)};function Ae(){return Ie.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ke(e,t){if(Ae()<t)throw new RangeError("Invalid typed array length");return Ie.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Ie.prototype:(null===e&&(e=new Ie(t)),e.length=t),e}function Ie(e,t,n){if(!(Ie.TYPED_ARRAY_SUPPORT||this instanceof Ie))return new Ie(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return Pe(this,e)}return Le(this,e,t,n)}function Le(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),Ie.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Ie.prototype:e=De(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!Ie.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|Ue(t,n),o=(e=ke(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(Fe(t)){var n=0|Me(t.length);return 0===(e=ke(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?ke(e,0):De(e,t);if("Buffer"===t.type&&Ce(t.data))return De(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function Re(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function Pe(e,t){if(Re(t),e=ke(e,t<0?0:0|Me(t)),!Ie.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function De(e,t){var n=t.length<0?0:0|Me(t.length);e=ke(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function Me(e){if(e>=Ae())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ae().toString(16)+" bytes");return 0|e}function Fe(e){return!(null==e||!e._isBuffer)}function Ue(e,t){if(Fe(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ct(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ft(e).length;default:if(r)return ct(e).length;t=(""+t).toLowerCase(),r=!0}}function je(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return et(this,t,n);case"utf8":case"utf-8":return Je(this,t,n);case"ascii":return Qe(this,t,n);case"latin1":case"binary":return Ze(this,t,n);case"base64":return qe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return tt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Be(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Ve(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=Ie.from(t,r)),Fe(t))return 0===t.length?-1:$e(e,t,n,r,o);if("number"==typeof t)return t&=255,Ie.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):$e(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function $e(e,t,n,r,o){var i,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=n;i<a;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(n+u>a&&(n=a-u),i=n;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(l(e,i+d)!==l(t,d)){f=!1;break}if(f)return i}return-1}function ze(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function We(e,t,n,r){return dt(ct(t,e.length-n),e,n,r)}function He(e,t,n,r){return dt(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Ye(e,t,n,r){return He(e,t,n,r)}function Xe(e,t,n,r){return dt(ft(t),e,n,r)}function Ge(e,t,n,r){return dt(function(e,t){for(var n,r,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function qe(e,t,n){return 0===t&&n===e.length?Te(e):Te(e.slice(t,n))}function Je(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,s,a,u,l=e[o],c=null,f=l>239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&l)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=Ke)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Ke));return n}(r)}Ie.TYPED_ARRAY_SUPPORT=void 0===ve.TYPED_ARRAY_SUPPORT||ve.TYPED_ARRAY_SUPPORT,Ae(),Ie.poolSize=8192,Ie._augment=function(e){return e.__proto__=Ie.prototype,e},Ie.from=function(e,t,n){return Le(null,e,t,n)},Ie.TYPED_ARRAY_SUPPORT&&(Ie.prototype.__proto__=Uint8Array.prototype,Ie.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Ie[Symbol.species]),Ie.alloc=function(e,t,n){return function(e,t,n,r){return Re(t),t<=0?ke(e,t):void 0!==n?"string"==typeof r?ke(e,t).fill(n,r):ke(e,t).fill(n):ke(e,t)}(null,e,t,n)},Ie.allocUnsafe=function(e){return Pe(null,e)},Ie.allocUnsafeSlow=function(e){return Pe(null,e)},Ie.isBuffer=pt,Ie.compare=function(e,t){if(!Fe(e)||!Fe(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},Ie.isEncoding=function(e){switch(String(e).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}},Ie.concat=function(e,t){if(!Ce(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Ie.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Ie.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(!Fe(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},Ie.byteLength=Ue,Ie.prototype._isBuffer=!0,Ie.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Be(this,t,t+1);return this},Ie.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Be(this,t,t+3),Be(this,t+1,t+2);return this},Ie.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Be(this,t,t+7),Be(this,t+1,t+6),Be(this,t+2,t+5),Be(this,t+3,t+4);return this},Ie.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Je(this,0,e):je.apply(this,arguments)},Ie.prototype.equals=function(e){if(!Fe(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Ie.compare(this,e)},Ie.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},Ie.prototype.compare=function(e,t,n,r,o){if(!Fe(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),u=this.slice(r,o),l=e.slice(t,n),c=0;c<a;++c)if(u[c]!==l[c]){i=u[c],s=l[c];break}return i<s?-1:s<i?1:0},Ie.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},Ie.prototype.indexOf=function(e,t,n){return Ve(this,e,t,n,!0)},Ie.prototype.lastIndexOf=function(e,t,n){return Ve(this,e,t,n,!1)},Ie.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return ze(this,e,t,n);case"utf8":case"utf-8":return We(this,e,t,n);case"ascii":return He(this,e,t,n);case"latin1":case"binary":return Ye(this,e,t,n);case"base64":return Xe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Ie.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ke=4096;function Qe(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function Ze(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function et(e,t,n){var r,o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var i="",s=t;s<n;++s)i+=(r=e[s])<16?"0"+r.toString(16):r.toString(16);return i}function tt(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function nt(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function rt(e,t,n,r,o,i){if(!Fe(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function ot(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function it(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function st(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function at(e,t,n,r,o){return o||st(e,0,n,4),xe(e,t,n,r,23,4),n+4}function ut(e,t,n,r,o){return o||st(e,0,n,8),xe(e,t,n,r,52,8),n+8}Ie.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),Ie.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=Ie.prototype;else{var o=t-e;n=new Ie(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},Ie.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||nt(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},Ie.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||nt(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Ie.prototype.readUInt8=function(e,t){return t||nt(e,1,this.length),this[e]},Ie.prototype.readUInt16LE=function(e,t){return t||nt(e,2,this.length),this[e]|this[e+1]<<8},Ie.prototype.readUInt16BE=function(e,t){return t||nt(e,2,this.length),this[e]<<8|this[e+1]},Ie.prototype.readUInt32LE=function(e,t){return t||nt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ie.prototype.readUInt32BE=function(e,t){return t||nt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ie.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||nt(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},Ie.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||nt(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Ie.prototype.readInt8=function(e,t){return t||nt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ie.prototype.readInt16LE=function(e,t){t||nt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ie.prototype.readInt16BE=function(e,t){t||nt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ie.prototype.readInt32LE=function(e,t){return t||nt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ie.prototype.readInt32BE=function(e,t){return t||nt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ie.prototype.readFloatLE=function(e,t){return t||nt(e,4,this.length),Oe(this,e,!0,23,4)},Ie.prototype.readFloatBE=function(e,t){return t||nt(e,4,this.length),Oe(this,e,!1,23,4)},Ie.prototype.readDoubleLE=function(e,t){return t||nt(e,8,this.length),Oe(this,e,!0,52,8)},Ie.prototype.readDoubleBE=function(e,t){return t||nt(e,8,this.length),Oe(this,e,!1,52,8)},Ie.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||rt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},Ie.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||rt(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Ie.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,1,255,0),Ie.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ie.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,2,65535,0),Ie.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ot(this,e,t,!0),t+2},Ie.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,2,65535,0),Ie.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ot(this,e,t,!1),t+2},Ie.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,4,4294967295,0),Ie.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):it(this,e,t,!0),t+4},Ie.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,4,4294967295,0),Ie.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):it(this,e,t,!1),t+4},Ie.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);rt(this,e,t,n,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},Ie.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);rt(this,e,t,n,o-1,-o)}var i=n-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+n},Ie.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,1,127,-128),Ie.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ie.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,2,32767,-32768),Ie.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):ot(this,e,t,!0),t+2},Ie.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,2,32767,-32768),Ie.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):ot(this,e,t,!1),t+2},Ie.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,4,2147483647,-2147483648),Ie.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):it(this,e,t,!0),t+4},Ie.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||rt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ie.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):it(this,e,t,!1),t+4},Ie.prototype.writeFloatLE=function(e,t,n){return at(this,e,t,!0,n)},Ie.prototype.writeFloatBE=function(e,t,n){return at(this,e,t,!1,n)},Ie.prototype.writeDoubleLE=function(e,t,n){return ut(this,e,t,!0,n)},Ie.prototype.writeDoubleBE=function(e,t,n){return ut(this,e,t,!1,n)},Ie.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!Ie.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},Ie.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!Ie.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var s=Fe(e)?e:ct(new Ie(e,r).toString()),a=s.length;for(i=0;i<n-t;++i)this[i+t]=s[i%a]}return this};var lt=/[^+\/0-9A-Za-z-_]/g;function ct(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=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((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function ft(e){return function(e){var t,n,r,o,i,s;Ee||we();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[a-2]?2:"="===e[a-1]?1:0,s=new be(3*a/4-i),r=i>0?a-4:a;var u=0;for(t=0,n=0;t<r;t+=4,n+=3)o=ye[e.charCodeAt(t)]<<18|ye[e.charCodeAt(t+1)]<<12|ye[e.charCodeAt(t+2)]<<6|ye[e.charCodeAt(t+3)],s[u++]=o>>16&255,s[u++]=o>>8&255,s[u++]=255&o;return 2===i?(o=ye[e.charCodeAt(t)]<<2|ye[e.charCodeAt(t+1)]>>4,s[u++]=255&o):1===i&&(o=ye[e.charCodeAt(t)]<<10|ye[e.charCodeAt(t+1)]<<4|ye[e.charCodeAt(t+2)]>>2,s[u++]=o>>8&255,s[u++]=255&o),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(lt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function dt(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function pt(e){return null!=e&&(!!e._isBuffer||ht(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&ht(e.slice(0,0))}(e))}function ht(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function mt(){throw new Error("setTimeout has not been defined")}function gt(){throw new Error("clearTimeout has not been defined")}var vt=mt,_t=gt;function yt(e){if(vt===setTimeout)return setTimeout(e,0);if((vt===mt||!vt)&&setTimeout)return vt=setTimeout,setTimeout(e,0);try{return vt(e,0)}catch(t){try{return vt.call(null,e,0)}catch(t){return vt.call(this,e,0)}}}"function"==typeof ve.setTimeout&&(vt=setTimeout),"function"==typeof ve.clearTimeout&&(_t=clearTimeout);var bt,Et=[],wt=!1,St=-1;function Tt(){wt&&bt&&(wt=!1,bt.length?Et=bt.concat(Et):St=-1,Et.length&&Ot())}function Ot(){if(!wt){var e=yt(Tt);wt=!0;for(var t=Et.length;t;){for(bt=Et,Et=[];++St<t;)bt&&bt[St].run();St=-1,t=Et.length}bt=null,wt=!1,function(e){if(_t===clearTimeout)return clearTimeout(e);if((_t===gt||!_t)&&clearTimeout)return _t=clearTimeout,clearTimeout(e);try{return _t(e)}catch(t){try{return _t.call(null,e)}catch(t){return _t.call(this,e)}}}(e)}}function xt(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Et.push(new Nt(e,t)),1!==Et.length||wt||yt(Ot)}function Nt(e,t){this.fun=e,this.array=t}function Ct(){}Nt.prototype.run=function(){this.fun.apply(null,this.array)};var At=Ct,kt=Ct,It=Ct,Lt=Ct,Rt=Ct,Pt=Ct,Dt=Ct,Mt=ve.performance||{},Ft=Mt.now||Mt.mozNow||Mt.msNow||Mt.oNow||Mt.webkitNow||function(){return(new Date).getTime()},Ut=new Date,jt={nextTick:xt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:At,addListener:kt,once:It,off:Lt,removeListener:Rt,removeAllListeners:Pt,emit:Dt,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*Ft.call(Mt),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ut)/1e3}},Bt="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Vt=/%[sdj%]/g;function $t(e){if(!en(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Yt(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(Vt,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),s=r[n];n<o;s=r[++n])Zt(s)||!rn(s)?i+=" "+s:i+=" "+Yt(s);return i}function zt(e,t){if(tn(ve.process))return function(){return zt(e,t).apply(this,arguments)};if(!0===jt.noDeprecation)return e;var n=!1;return function(){if(!n){if(jt.throwDeprecation)throw new Error(t);jt.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}}var Wt,Ht={};function Yt(e,t){var n={seen:[],stylize:Gt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Qt(t)?n.showHidden=t:t&&function(e,t){if(!t||!rn(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]]}(n,t),tn(n.showHidden)&&(n.showHidden=!1),tn(n.depth)&&(n.depth=2),tn(n.colors)&&(n.colors=!1),tn(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Xt),qt(n,e,n.depth)}function Xt(e,t){var n=Yt.styles[t];return n?"["+Yt.colors[n][0]+"m"+e+"["+Yt.colors[n][1]+"m":e}function Gt(e,t){return e}function qt(e,t,n){if(e.customInspect&&t&&an(t.inspect)&&t.inspect!==Yt&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return en(r)||(r=qt(e,r,n)),r}var o=function(e,t){if(tn(t))return e.stylize("undefined","undefined");if(en(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return"number"==typeof t?e.stylize(""+t,"number"):Qt(t)?e.stylize(""+t,"boolean"):Zt(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var i=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),sn(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Jt(t);if(0===i.length){if(an(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(nn(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(on(t))return e.stylize(Date.prototype.toString.call(t),"date");if(sn(t))return Jt(t)}var u,l,c="",f=!1,d=["{","}"];return u=t,Array.isArray(u)&&(f=!0,d=["[","]"]),an(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),nn(t)&&(c=" "+RegExp.prototype.toString.call(t)),on(t)&&(c=" "+Date.prototype.toUTCString.call(t)),sn(t)&&(c=" "+Jt(t)),0!==i.length||f&&0!=t.length?n<0?nn(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=f?function(e,t,n,r,o){for(var i=[],s=0,a=t.length;s<a;++s)ln(t,String(s))?i.push(Kt(e,t,n,r,String(s),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(Kt(e,t,n,r,o,!0))})),i}(e,t,n,s,i):i.map((function(r){return Kt(e,t,n,s,r,f)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,d)):d[0]+c+d[1]}function Jt(e){return"["+Error.prototype.toString.call(e)+"]"}function Kt(e,t,n,r,o,i){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),ln(r,o)||(s="["+o+"]"),a||(e.seen.indexOf(u.value)<0?(a=Zt(n)?qt(e,u.value,null):qt(e,u.value,n-1)).indexOf("\n")>-1&&(a=i?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),tn(s)){if(i&&o.match(/^\d+$/))return a;(s=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function Qt(e){return"boolean"==typeof e}function Zt(e){return null===e}function en(e){return"string"==typeof e}function tn(e){return void 0===e}function nn(e){return rn(e)&&"[object RegExp]"===un(e)}function rn(e){return"object"==typeof e&&null!==e}function on(e){return rn(e)&&"[object Date]"===un(e)}function sn(e){return rn(e)&&("[object Error]"===un(e)||e instanceof Error)}function an(e){return"function"==typeof e}function un(e){return Object.prototype.toString.call(e)}function ln(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function cn(){this.head=null,this.tail=null,this.length=0}Yt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Yt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},cn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},cn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},cn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},cn.prototype.clear=function(){this.head=this.tail=null,this.length=0},cn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},cn.prototype.concat=function(e){if(0===this.length)return Ie.alloc(0);if(1===this.length)return this.head.data;for(var t=Ie.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var fn=Ie.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function dn(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!fn(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=hn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=mn;break;default:return void(this.write=pn)}this.charBuffer=new Ie(6),this.charReceived=0,this.charLength=0}function pn(e){return e.toString(this.encoding)}function hn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function mn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}dn.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,o=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),o=(t+=e.toString(this.encoding,0,o)).length-1,(r=t.charCodeAt(o))>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}return t},dn.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},dn.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}return t},yn.ReadableState=_n;var gn,vn=(gn="stream",tn(Wt)&&(Wt=jt.env.NODE_DEBUG||""),gn=gn.toUpperCase(),Ht[gn]||(new RegExp("\\b"+gn+"\\b","i").test(Wt)?Ht[gn]=function(){var e=$t.apply(null,arguments);console.error("%s %d: %s",gn,0,e)}:Ht[gn]=function(){}),Ht[gn]);function _n(e,t){e=e||{},this.objectMode=!!e.objectMode,t instanceof Xn&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.buffer=new cn,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new dn(e.encoding),this.encoding=e.encoding)}function yn(e){if(!(this instanceof yn))return new yn(e);this._readableState=new _n(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),fe.call(this)}function bn(e,t,n,r,o){var i=function(e,t){var n=null;return pt(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(t,n);if(i)e.emit("error",i);else if(null===n)t.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Sn(e)}}(e,t);else if(t.objectMode||n&&n.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(t.endEmitted&&o){var a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var u;!t.decoder||o||r||(n=t.decoder.write(n),u=!t.objectMode&&0===n.length),o||(t.reading=!1),u||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Sn(e))),function(e,t){t.readingMore||(t.readingMore=!0,xt(On,e,t))}(e,t)}else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}Bt(yn,fe),yn.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=Ie.from(e,t),t=""),bn(this,n,e,t,!1)},yn.prototype.unshift=function(e){return bn(this,this._readableState,e,"",!0)},yn.prototype.isPaused=function(){return!1===this._readableState.flowing},yn.prototype.setEncoding=function(e){return this._readableState.decoder=new dn(e),this._readableState.encoding=e,this};var En=8388608;function wn(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=En?e=En:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function Sn(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(vn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?xt(Tn,e):Tn(e))}function Tn(e){vn("emit readable"),e.emit("readable"),Cn(e)}function On(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(vn("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function xn(e){vn("readable nexttick read 0"),e.read(0)}function Nn(e,t){t.reading||(vn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Cn(e),t.flowing&&!t.reading&&e.read(0)}function Cn(e){var t=e._readableState;for(vn("flow",t.flowing);t.flowing&&null!==e.read(););}function An(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;for(e-=o.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0==(e-=s)){s===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=Ie.allocUnsafe(e),r=t.head,o=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,s),0==(e-=s)){s===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++o}return t.length-=o,n}(e,t),r}(e,t.buffer,t.decoder),n);var n}function kn(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,xt(In,t,e))}function In(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Ln(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Rn(){}function Pn(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function Dn(e,t){Object.defineProperty(this,"buffer",{get:zt((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),e=e||{},this.objectMode=!!e.objectMode,t instanceof Xn&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,r=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?xt(o,r):o(r),e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,o);else{var i=Bn(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||jn(e,n),r?xt(Un,e,n,i,o):Un(e,n,i,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new zn(this)}function Mn(e){if(!(this instanceof Mn||this instanceof Xn))return new Mn(e);this._writableState=new Dn(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),fe.call(this)}function Fn(e,t,n,r,o,i,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function Un(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),$n(e,t)}function jn(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0;n;)o[s]=n,n=n.next,s+=1;Fn(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new zn(t)}else{for(;n;){var a=n.chunk,u=n.encoding,l=n.callback;if(Fn(e,t,!1,t.objectMode?1:a.length,a,u,l),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function Bn(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Vn(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function $n(e,t){var n=Bn(t);return n&&(0===t.pendingcb?(Vn(e,t),t.finished=!0,e.emit("finish")):Vn(e,t)),n}function zn(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var o=r.callback;e.pendingcb--,o(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}yn.prototype.read=function(e){vn("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return vn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?kn(this):Sn(this),null;if(0===(e=wn(e,t))&&t.ended)return 0===t.length&&kn(this),null;var r,o=t.needReadable;return vn("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&vn("length less than watermark",o=!0),t.ended||t.reading?vn("reading or ended",o=!1):o&&(vn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=wn(n,t))),null===(r=e>0?An(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&kn(this)),null!==r&&this.emit("data",r),r},yn.prototype._read=function(e){this.emit("error",new Error("not implemented"))},yn.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,vn("pipe count=%d opts=%j",r.pipesCount,t);var o=t&&!1===t.end?l:s;function i(e){vn("onunpipe"),e===n&&l()}function s(){vn("onend"),e.end()}r.endEmitted?xt(o):n.once("end",o),e.on("unpipe",i);var a=function(e){return function(){var t=e._readableState;vn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,Cn(e))}}(n);e.on("drain",a);var u=!1;function l(){vn("cleanup"),e.removeListener("close",p),e.removeListener("finish",h),e.removeListener("drain",a),e.removeListener("error",d),e.removeListener("unpipe",i),n.removeListener("end",s),n.removeListener("end",l),n.removeListener("data",f),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||a()}var c=!1;function f(t){vn("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Ln(r.pipes,e))&&!u&&(vn("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function d(t){vn("onerror",t),m(),e.removeListener("error",d),0===("error",e.listeners("error").length)&&e.emit("error",t)}function p(){e.removeListener("finish",h),m()}function h(){vn("onfinish"),e.removeListener("close",p),m()}function m(){vn("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",d),e.once("close",p),e.once("finish",h),e.emit("pipe",n),r.flowing||(vn("pipe resume"),n.resume()),e},yn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this);return this}var i=Ln(t.pipes,e);return-1===i||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},yn.prototype.on=function(e,t){var n=fe.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Sn(this):xt(xn,this))}return n},yn.prototype.addListener=yn.prototype.on,yn.prototype.resume=function(){var e=this._readableState;return e.flowing||(vn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,xt(Nn,e,t))}(this,e)),this},yn.prototype.pause=function(){return vn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(vn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},yn.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var o in e.on("end",(function(){if(vn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)})),e.on("data",(function(o){vn("wrapped data"),t.decoder&&(o=t.decoder.write(o)),t.objectMode&&null==o||(t.objectMode||o&&o.length)&&(r.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));return function(t,n){for(var o=0,i=t.length;o<i;o++)s=t[o],e.on(s,r.emit.bind(r,s));var s}(["error","close","destroy","pause","resume"]),r._read=function(t){vn("wrapped _read",t),n&&(n=!1,e.resume())},r},yn._fromList=An,Mn.WritableState=Dn,Bt(Mn,fe),Dn.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},Mn.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Mn.prototype.write=function(e,t,n){var r=this._writableState,o=!1;return"function"==typeof t&&(n=t,t=null),Ie.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=Rn),r.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),xt(t,n)}(this,n):function(e,t,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):Ie.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),xt(r,i),o=!1),o}(this,r,e,n)&&(r.pendingcb++,o=function(e,t,n,r,o){n=function(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=Ie.from(t,n)),t}(t,n,r),Ie.isBuffer(n)&&(r="buffer");var i=t.objectMode?1:n.length;t.length+=i;var s=t.length<t.highWaterMark;if(s||(t.needDrain=!0),t.writing||t.corked){var a=t.lastBufferedRequest;t.lastBufferedRequest=new Pn(n,r,o),a?a.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Fn(e,t,!1,i,n,r,o);return s}(this,r,e,t,n)),o},Mn.prototype.cork=function(){this._writableState.corked++},Mn.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||jn(this,e))},Mn.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Mn.prototype._write=function(e,t,n){n(new Error("not implemented"))},Mn.prototype._writev=null,Mn.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,$n(e,t),n&&(t.finished?xt(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n)},Bt(Xn,yn);for(var Wn=Object.keys(Mn.prototype),Hn=0;Hn<Wn.length;Hn++){var Yn=Wn[Hn];Xn.prototype[Yn]||(Xn.prototype[Yn]=Mn.prototype[Yn])}function Xn(e){if(!(this instanceof Xn))return new Xn(e);yn.call(this,e),Mn.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Gn)}function Gn(){this.allowHalfOpen||this._writableState.ended||xt(qn,this)}function qn(e){e.end()}function Jn(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var o=r.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n),o(t);var i=e._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&e._read(i.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Kn(e){if(!(this instanceof Kn))return new Kn(e);Xn.call(this,e),this._transformState=new Jn(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e){Qn(t,e)})):Qn(t)}))}function Qn(e,t){if(t)return e.emit("error",t);var n=e._writableState,r=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(r.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}function Zn(e){if(!(this instanceof Zn))return new Zn(e);Kn.call(this,e)}function er(){fe.call(this)}Bt(Kn,Xn),Kn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Xn.prototype.push.call(this,e,t)},Kn.prototype._transform=function(e,t,n){throw new Error("Not implemented")},Kn.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Kn.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Bt(Zn,Kn),Zn.prototype._transform=function(e,t,n){n(null,e)},Bt(er,fe),er.Readable=yn,er.Writable=Mn,er.Duplex=Xn,er.Transform=Kn,er.PassThrough=Zn,er.Stream=er,er.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",a));var i=!1;function s(){i||(i=!0,e.end())}function a(){i||(i=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===fe.listenerCount(this,"error"))throw e}function l(){n.removeListener("data",r),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("error",u),e.on("error",u),n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e};class tr extends Error{constructor(e,t,...n){Array.isArray(t)&&(t=t.join(" ")),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,tr),this.code=e;for(const e of n)for(const t in e){const n=e[t];this[t]=pt(n)?n.toString():null==n?n:JSON.parse(JSON.stringify(n))}}}const nr=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},rr=".".charCodeAt(0),or=/\\(\\)?/g,ir=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ar=/^\w*$/,ur=function(e){const t=typeof e;return"symbol"===t||"object"===t&&e&&"[object Symbol]"===function(e){return Object.prototype.toString.call(e)}(e)},lr=function(e){if("string"==typeof e||ur(e))return e;const t=`${e}`;return"0"==t&&1/e==-INFINITY?"-0":t},cr=function(e,t){let n=0;const r=(t=function(e,t){return Array.isArray(e)?e:function(e,t){if(Array.isArray(e))return!1;const n=typeof e;return!("number"!==n&&"symbol"!==n&&"boolean"!==n&&e&&!ur(e))||ar.test(e)||!sr.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:function(e){const t=[];return e.charCodeAt(0)===rr&&t.push(""),e.replace(ir,(function(e,n,r,o){let i=e;r?i=o.replace(or,"$1"):n&&(i=n.trim()),t.push(i)})),t}(e)}(t,e)).length;for(;null!=e&&n<r;)e=e[lr(t[n++])];return n&&n===r?e:void 0},fr=function(e){if(null==e)return[void 0,void 0];if("object"!=typeof e)return[Error('Invalid option "columns": expect an array or an object')];if(Array.isArray(e)){const t=[];for(const n of e)if("string"==typeof n)t.push({key:n,header:n});else{if("object"!=typeof n||null===n||Array.isArray(n))return[Error("Invalid column definition: expect a string or an object")];if(!n.key)return[Error('Invalid column definition: property "key" is required')];void 0===n.header&&(n.header=n.key),t.push(n)}e=t}else{const t=[];for(const n in e)t.push({key:n,header:e[n]});e=t}return[void 0,e]},dr=function(e){const t={};for(const r in e)t[(n=r,n.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})))]=e[r];var n;if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)return[new tr("CSV_OPTION_BOOLEAN_INVALID_TYPE",["option `bom` is optional and must be a boolean value,",`got ${JSON.stringify(t.bom)}`])];if(void 0===t.delimiter||null===t.delimiter)t.delimiter=",";else if(pt(t.delimiter))t.delimiter=t.delimiter.toString();else if("string"!=typeof t.delimiter)return[new tr("CSV_OPTION_DELIMITER_INVALID_TYPE",["option `delimiter` must be a buffer or a string,",`got ${JSON.stringify(t.delimiter)}`])];if(void 0===t.quote||null===t.quote)t.quote='"';else if(!0===t.quote)t.quote='"';else if(!1===t.quote)t.quote="";else if(pt(t.quote))t.quote=t.quote.toString();else if("string"!=typeof t.quote)return[new tr("CSV_OPTION_QUOTE_INVALID_TYPE",["option `quote` must be a boolean, a buffer or a string,",`got ${JSON.stringify(t.quote)}`])];if(void 0!==t.quoted&&null!==t.quoted||(t.quoted=!1),void 0===t.escape_formulas||null===t.escape_formulas)t.escape_formulas=!1;else if("boolean"!=typeof t.escape_formulas)return[new tr("CSV_OPTION_ESCAPE_FORMULAS_INVALID_TYPE",["option `escape_formulas` must be a boolean,",`got ${JSON.stringify(t.escape_formulas)}`])];if(void 0!==t.quoted_empty&&null!==t.quoted_empty||(t.quoted_empty=void 0),void 0===t.quoted_match||null===t.quoted_match||!1===t.quoted_match?t.quoted_match=null:Array.isArray(t.quoted_match)||(t.quoted_match=[t.quoted_match]),t.quoted_match)for(const e of t.quoted_match){const t=e instanceof RegExp;if("string"!=typeof e&&!t)return[Error(`Invalid Option: quoted_match must be a string or a regex, got ${JSON.stringify(e)}`)]}if(void 0!==t.quoted_string&&null!==t.quoted_string||(t.quoted_string=!1),void 0!==t.eof&&null!==t.eof||(t.eof=!0),void 0===t.escape||null===t.escape)t.escape='"';else if(pt(t.escape))t.escape=t.escape.toString();else if("string"!=typeof t.escape)return[Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`)];if(t.escape.length>1)return[Error(`Invalid Option: escape must be one character, got ${t.escape.length} characters`)];void 0!==t.header&&null!==t.header||(t.header=!1);const[r,o]=fr(t.columns);if(void 0!==r)return[r];if(t.columns=o,void 0!==t.quoted&&null!==t.quoted||(t.quoted=!1),void 0!==t.cast&&null!==t.cast||(t.cast={}),void 0!==t.cast.bigint&&null!==t.cast.bigint||(t.cast.bigint=e=>""+e),void 0!==t.cast.boolean&&null!==t.cast.boolean||(t.cast.boolean=e=>e?"1":""),void 0!==t.cast.date&&null!==t.cast.date||(t.cast.date=e=>""+e.getTime()),void 0!==t.cast.number&&null!==t.cast.number||(t.cast.number=e=>""+e),void 0!==t.cast.object&&null!==t.cast.object||(t.cast.object=e=>JSON.stringify(e)),void 0!==t.cast.string&&null!==t.cast.string||(t.cast.string=function(e){return e}),void 0!==t.on_record&&"function"!=typeof t.on_record)return[Error('Invalid Option: "on_record" must be a function.')];if(void 0===t.record_delimiter||null===t.record_delimiter)t.record_delimiter="\n";else if(pt(t.record_delimiter))t.record_delimiter=t.record_delimiter.toString();else if("string"!=typeof t.record_delimiter)return[Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(t.record_delimiter)}`)];switch(t.record_delimiter){case"unix":t.record_delimiter="\n";break;case"mac":t.record_delimiter="\r";break;case"windows":t.record_delimiter="\r\n";break;case"ascii":t.record_delimiter="";break;case"unicode":t.record_delimiter="\u2028"}return[void 0,t]},pr=Ie.from([239,187,191]);class hr extends Kn{constructor(e={}){super({writableObjectMode:!0,...e});const[t,n]=dr(e);if(void 0!==t)throw t;this.options=n,this.state={stop:!1},this.info={records:0},this.api=function(e,t,n){return{options:e,state:t,info:n,__transform:function(e,t){if(!Array.isArray(e)&&"object"!=typeof e)return Error(`Invalid Record: expect an array or an object, got ${JSON.stringify(e)}`);if(0===this.info.records)if(Array.isArray(e)){if(!0===this.options.header&&void 0===this.options.columns)return Error("Undiscoverable Columns: header option requires column option or object records")}else if(void 0===this.options.columns){const[t,n]=fr(Object.keys(e));if(t)return;this.options.columns=n}if(0===this.info.records){this.bom(t);const e=this.headers(t);if(e)return e}try{this.options.on_record&&this.options.on_record(e,this.info.records)}catch(n){return n}let n,r;if(this.options.eof){if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;r+=this.options.record_delimiter}else{if([n,r]=this.stringify(e),n)return n;if(void 0===r)return;(this.options.header||this.info.records)&&(r=this.options.record_delimiter+r)}this.info.records++,t(r)},stringify:function(e,t=!1){if("object"!=typeof e)return[void 0,e];const{columns:n}=this.options,r=[];if(Array.isArray(e)){n&&e.splice(n.length);for(let n=0;n<e.length;n++){const o=e[n],[i,s]=this.__cast(o,{index:n,column:n,records:this.info.records,header:t});if(i)return[i];r[n]=[s,o]}}else for(let o=0;o<n.length;o++){const i=cr(e,n[o].key),[s,a]=this.__cast(i,{index:o,column:n[o].key,records:this.info.records,header:t});if(s)return[s];r[o]=[a,i]}let o="";for(let e=0;e<r.length;e++){let t,n,[i,s]=r[e];if("string"==typeof i)t=this.options;else if(nr(i)){if(t=i,i=t.value,delete t.value,"string"!=typeof i&&null!=i&&n)return[Error(`Invalid Casting Value: returned value must return a string, null or undefined, got ${JSON.stringify(i)}`)];if(t={...this.options,...t},[n,t]=dr(t),void 0!==n)return[n]}else{if(null!=i)return[Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(i)}`)];t=this.options}const{delimiter:a,escape:u,quote:l,quoted:c,quoted_empty:f,quoted_string:d,quoted_match:p,record_delimiter:h,escape_formulas:m}=t;if(""===i&&""===s){let e=p&&p.filter((e=>"string"==typeof e?-1!==i.indexOf(e):e.test(i)));e=e&&e.length>0,!0===(e||!0===f||!0===d&&!1!==f)&&(i=l+i+l),o+=i}else if(i){if("string"!=typeof i)return[Error(`Formatter must return a string, null or undefined, got ${JSON.stringify(i)}`)];const e=a.length&&i.indexOf(a)>=0,t=""!==l&&i.indexOf(l)>=0,n=i.indexOf(u)>=0&&u!==l,r=i.indexOf(h)>=0,f=d&&"string"==typeof s;let g=p&&p.filter((e=>"string"==typeof e?-1!==i.indexOf(e):e.test(i)));if(g=g&&g.length>0,m)switch(i[0]){case"=":case"+":case"-":case"@":case"\t":case"\r":case"=":case"+":case"-":case"@":i=`'${i}`}const v=!0===t||e||r||c||f||g;if(!0===v&&!0===n){const e="\\"===u?new RegExp(u+u,"g"):new RegExp(u,"g");i=i.replace(e,u+u)}if(!0===t){const e=new RegExp(l,"g");i=i.replace(e,u+l)}!0===v&&(i=l+i+l),o+=i}else(!0===f||""===s&&!0===d&&!1!==f)&&(o+=l+l);e!==r.length-1&&(o+=a)}return[void 0,o]},bom:function(e){!0===this.options.bom&&e(pr)},headers:function(e){if(!1===this.options.header)return;if(void 0===this.options.columns)return;let t,n=this.options.columns.map((e=>e.header));if(this.options.eof?([t,n]=this.stringify(n,!0),n+=this.options.record_delimiter):[t,n]=this.stringify(n),t)return t;e(n)},__cast:function(e,t){const n=typeof e;try{return"string"===n?[void 0,this.options.cast.string(e,t)]:"bigint"===n?[void 0,this.options.cast.bigint(e,t)]:"number"===n?[void 0,this.options.cast.number(e,t)]:"boolean"===n?[void 0,this.options.cast.boolean(e,t)]:e instanceof Date?[void 0,this.options.cast.date(e,t)]:"object"===n&&null!==e?[void 0,this.options.cast.object(e,t)]:[void 0,e,e]}catch(e){return[e]}}}}(this.options,this.state,this.info),this.api.options.on_record=(...e)=>{this.emit("record",...e)}}_transform(e,t,n){if(!0===this.state.stop)return;const r=this.api.__transform(e,this.push.bind(this));void 0!==r&&(this.state.stop=!0),n(r)}_flush(e){if(!0!==this.state.stop){if(0===this.info.records){this.api.bom(this.push.bind(this));const t=this.api.headers(this.push.bind(this));t&&e(t)}e()}}}var mr={name:"ExportOptions",components:{DownloadIcon:V.s3U,FileTextIcon:V.dsF},setup(){const e=(0,d.E)();return{enabled_exports:e.enabled_exports,generateJSON:function(){var t=[];let n=e.itemsToDisplay,r=e.field_index;n.forEach((n=>{var o=new Object;for(let t=0;t<r.length;t++){var i=r[t];if("marked"==i.name)o.marked=n.marked;else if("created"==i.name)o.created=n.created;else{var s=void 0===n.data[i.name]?"":n.data[i.name];if(i.name.startsWith("checkbox")||i.name.startsWith("radio-group")||i.name.startsWith("select")){var a=[];s.split(", ").forEach((t=>{var n=e.getOptionLabel({field_name:i.name,option_value:t});a.push(n)})),o[i.label]=a.join(", ")}else o[i.label]=s}}t.push(JSON.stringify(o))}));var o=new Blob(t,{type:"application/json;charset=utf-8"});(0,le.saveAs)(o,e.meta.title+".json")},generateCSV:function(){var t=[];let n=e.field_index;n.forEach(((e,n)=>{t.push(e.label)}));const r=function(){let e,t,n;for(const r in arguments){const o=arguments[r],i=typeof o;if(void 0===e&&Array.isArray(o))e=o;else if(void 0===t&&nr(o))t=o;else{if(void 0!==n||"function"!==i)throw new tr("CSV_INVALID_ARGUMENT",["Invalid argument:",`got ${JSON.stringify(o)} at index ${r}`]);n=o}}const r=new hr(t);if(n){const e=[];r.on("readable",(function(){let t;for(;null!==(t=this.read());)e.push(t)})),r.on("error",(function(e){n(e)})),r.on("end",(function(){try{n(void 0,e.join(""))}catch(e){return void n(e)}}))}if(void 0!==e){const t=function(){for(const t of e)r.write(t);r.end()};"function"==typeof setImmediate?setImmediate(t):setTimeout(t,0)}return r}({header:!0,columns:t});e.itemsToDisplay.forEach(((t,o)=>{var i=[];n.forEach(((n,r)=>{if("marked"==n.name)i.push(e.getFormattedValue({field_name:"marked",field_value:t.marked}));else if("created"==n.name)i.push(e.getFormattedValue({field_name:"created",field_value:t.created}));else if(void 0!==t.data[n.name]){var o=t.data[n.name];n.name.endsWith("__html")&&(o=t.data[n.name].value);let r={field_name:n.name,field_value:o};i.push(e.getFormattedValue(r))}else i.push("Empty")})),r.write(i)}));let o=r.read().toString(),i=new Blob([o],{type:"text/csv;charset=utf-8"});var s=e.meta.title+".csv";"user"==e.data_type&&(s="users.csv"),(0,le.saveAs)(i,s)},togglePdfBuilder:function(){e.ui.pdf_builder=!e.ui.pdf_builder}}}};a(1803);var gr=(0,oe.A)(mr,[["render",function(e,t,n,r,i,a){const u=(0,o.g2)("DownloadIcon"),l=(0,o.g2)("FileTextIcon");return r.enabled_exports.length?((0,o.uX)(),(0,o.CE)("div",ue,[(0,o.Lk)("strong",null,(0,s.toDisplayString)(e.$t("Export")),1),(0,o.eW)(": "),r.enabled_exports.includes("csv")?((0,o.uX)(),(0,o.CE)("button",{key:0,class:"ds-export-button",onClick:t[0]||(t[0]=(...e)=>r.generateCSV&&r.generateCSV(...e))},[(0,o.bF)(u,{"aria-hidden":"true",size:"1x"}),(0,o.eW)(" CSV ")])):(0,o.Q3)("v-if",!0),r.enabled_exports.includes("json")?((0,o.uX)(),(0,o.CE)("button",{key:1,class:"ds-export-button",onClick:t[1]||(t[1]=(...e)=>r.generateJSON&&r.generateJSON(...e))},[(0,o.bF)(u,{"aria-hidden":"true",size:"1x"}),(0,o.eW)(" JSON ")])):(0,o.Q3)("v-if",!0),r.enabled_exports.includes("pdf")?((0,o.uX)(),(0,o.CE)("button",{key:2,class:"ds-export-button",onClick:t[2]||(t[2]=(...e)=>r.togglePdfBuilder&&r.togglePdfBuilder(...e))},[(0,o.bF)(l,{"aria-hidden":"true",size:"1x"}),(0,o.eW)(" PDF ")])):(0,o.Q3)("v-if",!0)])):(0,o.Q3)("v-if",!0)}],["__scopeId","data-v-441891a4"]]),vr={name:"DisplayModes",components:{},setup(){const e=(0,d.E)(),t=(0,o.WQ)("xs_screen"),n=e.data_type,r=(0,B.KR)(e.display_items_as);return"answer"==n&&"grid"==r.value&&t.value&&(r.value="cards"),{xs_screen:t,displayItemsAs:function(n){r.value=n,e.ui.extended_filters=!1,e.ui.pdf_builder=!1,"cards"==n&&t.value?e.display_items_as="grid":e.display_items_as=n,f().patch(e.endpoint+"/set-landing-page",JSON.stringify({page:e.display_items_as}),{headers:{"Content-Type":"application/json"}}).then((function(e){})).catch((function(e){console.log(e)}))},button_classes:(0,o.EW)((()=>e.ui.pdf_builder?{cards:"btn-outline-secondary",grid:"btn-outline-secondary",graphs:"btn-outline-secondary"}:{cards:"cards"==r.value?"btn-primary":"btn-outline-secondary",grid:"grid"==r.value?"btn-primary":"btn-outline-secondary",graphs:"graphs"==r.value?"btn-primary":"btn-outline-secondary"})),data_type:n}}};a(4192);var _r=(0,oe.A)(vr,[["render",function(e,t,n,r,i,a){return(0,o.uX)(),(0,o.CE)(o.FK,null,[r.xs_screen?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)("button",{key:0,class:(0,s.normalizeClass)(["btn btn-sm",r.button_classes.grid]),onClick:t[0]||(t[0]=e=>r.displayItemsAs("grid"))},(0,s.toDisplayString)(e.$t("Table")),3)),"answer"!=r.data_type&&r.xs_screen?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)("button",{key:1,class:(0,s.normalizeClass)(["btn btn-sm",r.button_classes.cards]),onClick:t[1]||(t[1]=e=>r.displayItemsAs("cards"))},(0,s.toDisplayString)(e.$t("Cards")),3)),"answer"==r.data_type?((0,o.uX)(),(0,o.CE)("button",{key:2,class:(0,s.normalizeClass)(["btn btn-sm",r.button_classes.graphs]),onClick:t[2]||(t[2]=e=>r.displayItemsAs("graphs"))},(0,s.toDisplayString)(e.$t("Graphs")),3)):(0,o.Q3)("v-if",!0)],64)}],["__scopeId","data-v-5a3c677a"]]);const yr=["disabled"],br={key:0,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-check"},Er=[(e=>((0,o.Qi)("data-v-2f6340bc"),e=e(),(0,o.jt)(),e))((()=>(0,o.Lk)("polyline",{points:"20 6 9 17 4 12"},null,-1)))];var wr={name:"OtherOptions",components:{},setup(){const e=(0,d.E)(),{t:t}=(0,j.s9)({useScope:"global"}),n=(0,o.WQ)("has_items"),r=(0,o.EW)((()=>{if(void 0===e.extended_filters)return t("Filters");var n=0;return Object.keys(e.extended_filters).forEach((t=>{n+=e.extended_filters[t].length})),0==n?t("Filters"):t("Filters")+" ("+n+")"})),i=(0,o.EW)((()=>{console.log("has_numeric_fields");for(let t in e.meta.form_structure)if(console.log("store.form_structure[field]",e.meta.form_structure[t]),(0,Q.kf)(e.meta.form_structure[t]))return!0;return!1}));return{has_items:n,can_edit:e.can_edit,data_type:e.data_type,has_deleted_fields:e.deleted_fields.length,delete_options:e.can_edit||e.deleted_fields,show_options:(0,o.EW)((()=>e.show_other_options)),deleted_fields_enabled:(0,o.EW)((()=>e.include_deleted_fields)),total_filters:r,has_multichoice_fields:(0,o.EW)((()=>e.all_multichoice_fields.length)),has_numeric_fields:i,toggleOptions:function(){e.show_other_options=!e.show_other_options},displayDeletedFields:function(){e.include_deleted_fields=!e.include_deleted_fields,e.searched_items=[]},toggleItemFilters:function(){e.ui.extended_filters=!e.ui.extended_filters,e.ui.numeric_totals=!1},toggleNumericTotals:function(){e.ui.numeric_totals=!e.ui.numeric_totals,e.ui.extended_filters=!1},total_items:(0,o.EW)((()=>e.items.length))}}};a(1865);var Sr=(0,oe.A)(wr,[["render",function(e,t,n,r,i,a){return(0,o.uX)(),(0,o.CE)(o.FK,null,[r.total_items&&"answer"==r.data_type&&r.has_multichoice_fields?((0,o.uX)(),(0,o.CE)("button",{key:0,class:"btn btn-sm btn-outline-secondary",onClick:t[0]||(t[0]=e=>r.toggleItemFilters())},(0,s.toDisplayString)(r.total_filters),1)):(0,o.Q3)("v-if",!0),r.total_items&&"answer"==r.data_type&&r.has_numeric_fields?((0,o.uX)(),(0,o.CE)("button",{key:1,class:"btn btn-sm btn-outline-secondary",onClick:t[1]||(t[1]=e=>r.toggleNumericTotals())},(0,s.toDisplayString)(e.$t("Numbers")),1)):(0,o.Q3)("v-if",!0),r.delete_options?((0,o.uX)(),(0,o.CE)("button",{key:2,class:"btn btn-sm btn-outline-secondary",disabled:!r.has_items,onClick:t[2]||(t[2]=e=>r.toggleOptions())},(0,s.toDisplayString)(e.$t("Delete options")),9,yr)):(0,o.Q3)("v-if",!0),r.has_deleted_fields&&r.has_items?((0,o.uX)(),(0,o.CE)("button",{key:3,class:"btn btn-sm btn-outline-secondary",onClick:t[3]||(t[3]=e=>r.displayDeletedFields())},[(0,o.eW)((0,s.toDisplayString)(e.$t("Include deleted fields"))+" ",1),r.deleted_fields_enabled?((0,o.uX)(),(0,o.CE)("svg",br,Er)):(0,o.Q3)("v-if",!0)])):(0,o.Q3)("v-if",!0)],64)}],["__scopeId","data-v-2f6340bc"]]);const Tr=["href"];var Or={name:"DeleteAllItems",components:{},setup(){const e=(0,d.E)(),{t:t}=(0,j.s9)({useScope:"global"}),n=(0,o.EW)((()=>{let n=e.items.length;return n==e.itemsToDisplay.length?t("Delete all"):t("Delete all")+" ("+n+")"}));return{endpoint:e.endpoint,button_text:n}}},xr=(0,oe.A)(Or,[["render",function(e,t,n,r,i,a){return(0,o.uX)(),(0,o.CE)("a",{class:"btn btn-sm btn-outline-danger modes",role:"button",href:r.endpoint+"/delete-all-items"},(0,s.toDisplayString)(r.button_text),9,Tr)}]]);const Nr=(e=>((0,o.Qi)("data-v-758fefef"),e=e(),(0,o.jt)(),e))((()=>(0,o.Lk)("hr",{class:"mt-3"},null,-1))),Cr=e=>((0,o.Qi)("data-v-142a5867"),e=e(),(0,o.jt)(),e),Ar={class:"ds-controls-height ds-button-container ds-mt-n1"},kr={key:0},Ir={class:"modal-dialog modal-lg",role:"document"},Lr={class:"modal-content"},Rr={class:"modal-header"},Pr={key:0,class:"modal-title"},Dr={key:1,class:"modal-title"},Mr=[Cr((()=>(0,o.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x","aria-hidden":"true"},[(0,o.Lk)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,o.Lk)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)))],Fr={key:0,class:"modal-body"},Ur=["onClick"],jr={key:1,class:"modal-body"},Br={class:"fw-bold"},Vr={class:"mt-2"},$r={class:"modal-footer"},zr=Cr((()=>(0,o.Lk)("div",{class:"modal-backdrop fade show"},null,-1))),Wr={class:"mt-2"},Hr=["id","value","checked","onClick"],Yr=["for"];var Xr={name:"FieldFilter",components:{},props:{field:Object},setup(e){const t=(0,d.E)(),n=(0,o.WQ)("filters");return{getFieldOptions:function(){let n=t.getFieldStructure(e.field.name);if(n.values)return n.values},isSelected:(0,o.EW)((()=>t=>Boolean(n.value[e.field.name]&&n.value[e.field.name].includes(t)))),toggleFilter:(0,o.WQ)("toggleFilter")}}},Gr={name:"AddFieldFilter",components:{FieldFilter:(0,oe.A)(Xr,[["render",function(e,t,n,r,i,a){return(0,o.uX)(),(0,o.CE)("div",Wr,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(r.getFieldOptions(),(e=>((0,o.uX)(),(0,o.CE)("div",{class:"form-check",key:e.value},[(0,o.Lk)("input",{type:"checkbox",class:"form-check-input",id:"check"+e.value,value:e.value,checked:r.isSelected(e.value),onClick:t=>r.toggleFilter(n.field.name,e.value)},null,8,Hr),(0,o.Lk)("label",{for:"check"+e.value,class:"form-check-label"},(0,s.toDisplayString)(e.label),9,Yr)])))),128))])}]])},props:{edit_field:Object},emits:["cancelEdition","saveFilters"],setup(e,{emit:t}){const n=(0,d.E)(),r=(0,B.KR)(!1),i=(0,B.Kh)({name:"",label:""}),s=(0,o.WQ)("filters");(0,o.wB)((()=>e.edit_field.name),(()=>{e.edit_field.name&&(i.name=e.edit_field.name,i.label=e.edit_field.label,r.value=!0)}));const a=(0,o.EW)((()=>e=>Boolean(s.value[e]&&s.value[e].length))),u=(0,o.EW)((()=>{var e=[];return n.field_index.forEach((t=>{(0,Q.vn)(t.name)&&(_.find(n.deleted_fields,(function(e){return e.name==t.name}))||e.push(t))})),e}));return{show_modal:r,closeModal:function(){r.value=!1,t("cancelEdition")},field_index:u,selected_field:i,isFiltered:a,selectField:function(e){i.name=e.name,i.label=e.label},showAllFields:function(){i.name="",i.label=""},saveFilters:function(){r.value=!1,t("saveFilters")},clearAll:function(){s.value={},n.ui.extended_filters=!1,t("saveFilters")},closeFilters:function(){n.ui.extended_filters=!1}}}};a(6178);var qr=(0,oe.A)(Gr,[["render",function(t,n,r,i,a,u){const l=(0,o.g2)("FieldFilter");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.Lk)("div",Ar,[(0,o.Lk)("button",{class:"btn btn-sm btn-outline-primary",onClick:n[0]||(n[0]=e=>i.show_modal=!0)},(0,s.toDisplayString)(t.$t("Add filters")),1),(0,o.Lk)("button",{class:"btn btn-sm btn-outline-secondary",onClick:n[1]||(n[1]=e=>i.clearAll())},(0,s.toDisplayString)(t.$t("Clear")),1),(0,o.Lk)("button",{class:"btn btn-sm btn-outline-secondary",onClick:n[2]||(n[2]=e=>i.closeFilters())},(0,s.toDisplayString)(t.$t("Close")),1)]),i.show_modal?((0,o.uX)(),(0,o.CE)("div",kr,[(0,o.Lk)("div",{class:"modal fade show d-block",onKeydown:n[7]||(n[7]=(0,e.withKeys)((e=>i.closeModal()),["esc"])),tabindex:"-1",role:"dialog"},[(0,o.Lk)("div",Ir,[(0,o.Lk)("div",Lr,[(0,o.Lk)("div",Rr,[i.selected_field.name?((0,o.uX)(),(0,o.CE)("h5",Pr,(0,s.toDisplayString)(t.$t("Select field options")),1)):((0,o.uX)(),(0,o.CE)("h5",Dr,(0,s.toDisplayString)(t.$t("Select a field")),1)),(0,o.Lk)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close",onClick:n[3]||(n[3]=e=>i.closeModal())},Mr)]),i.selected_field.name?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)("div",Fr,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(i.field_index,(e=>((0,o.uX)(),(0,o.CE)("div",{key:"selector"+e.name,onClick:t=>i.selectField(e),class:"mt-1"},[(0,o.Lk)("span",{class:(0,s.normalizeClass)(["badge rounded-pill",1==i.isFiltered(e.name)?"bg-success":"bg-secondary"])},(0,s.toDisplayString)(t.$t("filtered")),3),(0,o.eW)(" "+(0,s.toDisplayString)(e.label),1)],8,Ur)))),128))])),i.selected_field.name?((0,o.uX)(),(0,o.CE)("div",jr,[(0,o.Lk)("div",Br,(0,s.toDisplayString)(i.selected_field.label),1),(0,o.Lk)("div",Vr,[(0,o.bF)(l,{field:i.selected_field},null,8,["field"])])])):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",$r,[i.selected_field.name?((0,o.uX)(),(0,o.CE)("button",{key:0,type:"button",class:"btn btn-outline-primary",onClick:n[4]||(n[4]=e=>i.showAllFields())},(0,s.toDisplayString)(t.$t("All fields")),1)):(0,o.Q3)("v-if",!0),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",onClick:n[5]||(n[5]=e=>i.saveFilters())},(0,s.toDisplayString)(t.$t("Save")),1),(0,o.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:n[6]||(n[6]=e=>i.closeModal())},(0,s.toDisplayString)(t.$t("Cancel")),1)])])])],32),zr])):(0,o.Q3)("v-if",!0)],64)}],["__scopeId","data-v-142a5867"]]);const Jr={class:"my-2 fw-bold"},Kr={class:"mt-1"},Qr=["onClick"],Zr={class:"ds-filter-label"};var eo={name:"FilterDisplay",components:{TrashIcon:V.ucK,EditIcon:V.qUP},props:{field:Object},setup(e){const t=(0,d.E)();return(0,o.EW)((()=>t.getFieldLabel(e.field.name))),{options:(0,o.EW)((()=>{var n=[];if(void 0!==t.extended_filters[e.field.name]){let r=t.extended_filters[e.field.name];t.getFieldOptions(e.field.name).forEach((e=>{r.includes(e.value)&&n.push(e)}))}return n})),deleteFilter:(0,o.WQ)("deleteFilter"),editFilter:(0,o.WQ)("editFilter")}}};a(3104);var to={name:"FiltersDisplay",components:{FilterDisplay:(0,oe.A)(eo,[["render",function(e,t,n,r,i,a){const u=(0,o.g2)("TrashIcon"),l=(0,o.g2)("EditIcon");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.Lk)("div",Jr,(0,s.toDisplayString)(n.field.label),1),(0,o.Lk)("div",Kr,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(r.options,(e=>((0,o.uX)(),(0,o.CE)("div",{class:"mt-1 input-group ds-option-filter",key:e.value},[(0,o.Lk)("button",{type:"button",class:"btn btn-sm btn-outline-danger",onClick:t=>r.deleteFilter(n.field.name,e.value)},[(0,o.bF)(u,{size:"1.25x"})],8,Qr),(0,o.Lk)("button",{type:"button",class:"btn btn-sm btn-outline-secondary",onClick:t[0]||(t[0]=e=>r.editFilter(n.field.name))},[(0,o.bF)(l,{size:"1.25x"})]),(0,o.Lk)("span",Zr,(0,s.toDisplayString)(e.label),1)])))),128))])],64)}],["__scopeId","data-v-46321830"]])},setup(){const e=(0,d.E)();return{field_index:(0,o.EW)((()=>{var t=[];for(let n in e.extended_filters)t.push({name:n,label:e.getFieldLabel(n)});return t}))}}},no={name:"ItemFilters",components:{AddFieldFilter:qr,FiltersDisplay:(0,oe.A)(to,[["render",function(e,t,n,r,i,s){const a=(0,o.g2)("FilterDisplay");return(0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(r.field_index,(e=>((0,o.uX)(),(0,o.CE)("div",{key:e.name},[(0,o.bF)(a,{field:e},null,8,["field"])])))),128)}]])},setup(){const e=(0,d.E)(),t=(0,B.KR)({}),n=(0,B.KR)({});function r(){n.value=JSON.parse(JSON.stringify(e.extended_filters)),console.log("reset filters.value",n.value)}function i(e,r){if(t.value={},void 0===n.value[e]&&(n.value[e]=[]),n.value[e].includes(r)){let t=n.value[e].indexOf(r);t>-1&&(n.value[e].splice(t,1),0==n.value[e]&&delete n.value[e])}else n.value[e].push(r)}function s(){e.extended_filters=JSON.parse(JSON.stringify(n.value)),f().patch(e.endpoint+"/set-filters",JSON.stringify({extended_filters:e.extended_filters}),{headers:{"Content-Type":"application/json"}}).then((function(e){})).catch((function(e){console.log(e)})),a()}function a(){t.value={},r()}return(0,o.Gt)("filters",n),r(),(0,o.Gt)("toggleFilter",i),(0,o.Gt)("editFilter",(function(n){let r=e.getFieldLabel(n);t.value={name:n,label:r}})),(0,o.Gt)("deleteFilter",(function(e,t){i(e,t),s()})),{edit_field:t,saveFilters:s,cancelEdition:a}}};a(681);const ro={class:"mt-2"},oo={class:"fw-bold"};var io={name:"NumericTotals",components:{},setup(){const e=(0,d.E)();return{close:function(){e.ui.numeric_totals=!1},totals:(0,o.EW)((()=>{var t={};return e.itemsToDisplay.forEach((e=>{let n=Object.keys(e.data);for(let r in n){let o=n[r];o.startsWith("number")&&(Object.keys(t).includes(o)||(t[o]=0),t[o]=t[o]+Number(e.data[o]))}})),t})),getLabel:e.getFieldLabel}}},so={name:"DisplayPanel",components:{ItemControls:ae,ExportOptions:gr,DisplayModes:_r,OtherOptions:Sr,DeleteAllItems:xr,ItemFilters:(0,oe.A)(no,[["render",function(e,t,n,r,i,s){const a=(0,o.g2)("AddFieldFilter"),u=(0,o.g2)("FiltersDisplay");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.bF)(a,{edit_field:r.edit_field,onCancelEdition:r.cancelEdition,onSaveFilters:r.saveFilters},null,8,["edit_field","onCancelEdition","onSaveFilters"]),(0,o.bF)(u),Nr],64)}],["__scopeId","data-v-758fefef"]]),SearchText:ie,NumericTotals:(0,oe.A)(io,[["render",function(e,t,n,r,i,a){return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.Lk)("button",{class:"btn btn-sm btn-outline-secondary",onClick:t[0]||(t[0]=e=>r.close())},(0,s.toDisplayString)(e.$t("Close")),1),((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(Object.entries(r.totals),(([e,t],n)=>((0,o.uX)(),(0,o.CE)("div",{key:n},[(0,o.Lk)("div",ro,[(0,o.Lk)("span",oo,(0,s.toDisplayString)(r.getLabel(e)),1),(0,o.eW)(" "+(0,s.toDisplayString)(t),1)])])))),128))],64)}]]),ChevronDownIcon:V.D3D,ChevronUpIcon:V.Mtm},setup(){const e=(0,d.E)(),t=(0,o.WQ)("xs_screen"),{t:n}=(0,j.s9)({useScope:"global"});(0,o.Gt)("has_items",(0,o.EW)((()=>e.itemsToDisplay.length)));const r=(0,B.KR)(!t.value),i=(0,o.EW)((()=>t.value?"mb-3":"answer"==e.data_type?"d-flex align-items-center justify-content-between":e.enabled_exports.length?"d-flex align-items-center justify-content-end":"mt-1")),s=(0,o.EW)((()=>!("grid"==e.display_items_as&&!t.value&&e.items.length==e.itemsToDisplay.length&&!Object.keys(e.extended_filters).length))),a=(0,o.EW)((()=>{let t=e.items.length;if(0==t)return n("No data");let r=e.itemsToDisplay.length;return Object.keys(e.extended_filters).length||e.searched_items.length||e.search_text?n("Filtered {number} of {total}").replace("{number}",r).replace("{total}",t):"user"==e.data_type&&r==t?n("Total users: {total}").replace("{total}",t):"form"==e.data_type&&r==t?n("Total forms: {total}").replace("{total}",t):"answer"==e.data_type&&r==t?n("Total answers: {total}").replace("{total}",t):n("Displaying {number} of {total}").replace("{number}",r).replace("{total}",t)}));return{xs_screen:t,controlGroupClasses:i,data_type:e.data_type,can_edit:e.can_edit,show_options:r,show_other_options:(0,o.EW)((()=>e.show_other_options)),enable_exports:e.enabled_exports.length,extended_filters:(0,o.EW)((()=>e.ui.extended_filters)),show_numeric_totals:(0,o.EW)((()=>e.ui.numeric_totals)),show_displaying_of:s,displaying_total_of:a}}};a(480),a(582);var ao={name:"DataDisplay",components:{DisplayPanel:(0,oe.A)(so,[["render",function(e,t,n,r,i,a){const u=(0,o.g2)("SearchText"),l=(0,o.g2)("ChevronDownIcon"),c=(0,o.g2)("ChevronUpIcon"),f=(0,o.g2)("ExportOptions"),d=(0,o.g2)("DisplayModes"),_=(0,o.g2)("ItemControls"),j=(0,o.g2)("OtherOptions"),B=(0,o.g2)("DeleteAllItems"),V=(0,o.g2)("ItemFilters"),$=(0,o.g2)("NumericTotals"),z=(0,o.g2)("slide-up-down");return"answer"==r.data_type?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[r.xs_screen?((0,o.uX)(),(0,o.CE)(o.FK,{key:0},[(0,o.Lk)("div",p,[(0,o.bF)(u)]),(0,o.Lk)("div",h,[(0,o.Lk)("a",{class:"toggle-panel-btn",onClick:t[0]||(t[0]=e=>r.show_options=!r.show_options)},[0==r.show_options?((0,o.uX)(),(0,o.Wv)(l,{key:0,size:"1.5x","aria-hidden":"true"})):((0,o.uX)(),(0,o.Wv)(c,{key:1,class:"expand_panel_icon",size:"1.5x","aria-hidden":"true"})),(0,o.Lk)("span",null,(0,s.toDisplayString)(e.$t("Options")),1)])]),(0,o.Q3)(" options start "),(0,o.bF)(z,{active:r.show_options,duration:200},{default:(0,o.k6)((()=>[r.enable_exports?((0,o.uX)(),(0,o.CE)("div",m,[(0,o.bF)(f)])):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",g,[(0,o.bF)(d)]),(0,o.Lk)("div",v,[(0,o.bF)(_),(0,o.Lk)("div",y,[(0,o.bF)(j)]),r.show_other_options&&r.can_edit?((0,o.uX)(),(0,o.CE)("div",b,[(0,o.bF)(B)])):(0,o.Q3)("v-if",!0),r.extended_filters?((0,o.uX)(),(0,o.CE)("div",E,[(0,o.bF)(V)])):(0,o.Q3)("v-if",!0),r.show_numeric_totals?((0,o.uX)(),(0,o.CE)("div",w,[(0,o.bF)($)])):(0,o.Q3)("v-if",!0)])])),_:1},8,["active"]),(0,o.Q3)(" options end "),(0,o.Lk)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,S)],64)):(0,o.Q3)("v-if",!0),r.xs_screen?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.Lk)("div",{class:(0,s.normalizeClass)([r.controlGroupClasses,"ds-mt-n1"])},[(0,o.Lk)("div",T,[(0,o.bF)(d)]),r.enable_exports?((0,o.uX)(),(0,o.CE)("div",O,[(0,o.bF)(f)])):(0,o.Q3)("v-if",!0)],2),(0,o.Lk)("div",x,[(0,o.bF)(_)]),(0,o.Lk)("div",N,[(0,o.Lk)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,C),(0,o.Lk)("div",A,[(0,o.bF)(j)])]),r.show_other_options&&r.can_edit?((0,o.uX)(),(0,o.CE)("div",k,[(0,o.bF)(B)])):(0,o.Q3)("v-if",!0),r.extended_filters?((0,o.uX)(),(0,o.CE)("div",I,[(0,o.bF)(V)])):(0,o.Q3)("v-if",!0),r.show_numeric_totals?((0,o.uX)(),(0,o.CE)("div",L,[(0,o.bF)($)])):(0,o.Q3)("v-if",!0)],64))],64)):r.xs_screen?((0,o.uX)(),(0,o.CE)(o.FK,{key:1},[(0,o.Q3)(" end render data_type = answers "),(0,o.Lk)("div",null,[(0,o.bF)(u)]),(0,o.Lk)("div",R,[(0,o.Lk)("a",{class:"toggle-panel-btn",onClick:t[1]||(t[1]=e=>r.show_options=!r.show_options)},[(0,o.Lk)("span",null,(0,s.toDisplayString)(e.$t("Options")),1),0==r.show_options?((0,o.uX)(),(0,o.Wv)(l,{key:0,size:"1.5x","aria-hidden":"true"})):((0,o.uX)(),(0,o.Wv)(c,{key:1,class:"expand_panel_icon",size:"1.5x","aria-hidden":"true"}))])]),(0,o.bF)(z,{active:r.show_options,duration:200},{default:(0,o.k6)((()=>[(0,o.Lk)("div",null,[(0,o.Lk)("div",P,[(0,o.bF)(_)]),(0,o.Lk)("div",D,[(0,o.bF)(d)])])])),_:1},8,["active"]),(0,o.Lk)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,M)],64)):((0,o.uX)(),(0,o.CE)(o.FK,{key:2},[r.enable_exports?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,s.normalizeClass)([r.controlGroupClasses,"mb-3"])},[(0,o.bF)(f)],2)):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",F,[(0,o.bF)(_)]),(0,o.Lk)("div",{innerHTML:r.displaying_total_of,class:"mt-3"},null,8,U)],64))}],["__scopeId","data-v-e627cbac"]])},setup(){const e=(0,d.E)();e.setLanguage((0,o.WQ)("ui_language")),f().defaults.headers.common["X-CSRF-TOKEN"]=(0,o.WQ)("csrf_token"),e.endpoint=(0,o.WQ)("endpoint"),e.enable_exports=(0,o.WQ)("enable_exports");let t=(0,o.WQ)("display_as");e.display_items_as=t||"grid",e.downloadItems();const n=(0,r.useMq)(),i=(0,o.EW)((()=>"xs"==n.current));return(0,o.Gt)("xs_screen",i),{is_loading:(0,o.EW)((()=>e.downloading_items)),show_display_panel:(0,o.EW)((()=>e.ui.display_panel))}}};a(7916);var uo=(0,oe.A)(ao,[["render",function(e,t,n,r,i,a){const c=(0,o.g2)("DisplayPanel");return r.show_display_panel?((0,o.uX)(),(0,o.CE)("div",u,[!0===r.is_loading?((0,o.uX)(),(0,o.CE)("div",l,(0,s.toDisplayString)(e.$t("Loading...")),1)):((0,o.uX)(),(0,o.Wv)(c,{key:1}))])):(0,o.Q3)("v-if",!0)}]]);document.querySelectorAll("[vue-component=data-display]").forEach((o=>{(0,e.createApp)(uo).use(n.A).use((0,t.Ey)()).use(r.Vue3Mq,{}).component("slide-up-down",i).provide("endpoint",o.dataset.endpoint).provide("csrf_token",o.dataset.csrf_token).provide("ui_language",o.dataset.ui_language).provide("display_as",o.dataset.display_as).provide("enable_exports",o.dataset.enable_exports).mount(o)}))}(),u=a.O(u)}(); \ No newline at end of file
diff --git a/liberaforms/static/js/data-display/v2/graph-renderer.js b/liberaforms/static/js/data-display/v2/graph-renderer.js
index 13781da3..571530cf 100644
--- a/liberaforms/static/js/data-display/v2/graph-renderer.js
+++ b/liberaforms/static/js/data-display/v2/graph-renderer.js
@@ -1,2 +1,2 @@
/*! For license information please see graph-renderer.js.LICENSE.txt */
-(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[504],{6865:function(t,e,i){"use strict";var n=i(341),s=i(2596),o=i(159),r=i(6229),a=i(2502);const l={key:0},h={class:"grid mt-3"},c={class:"g-col-12"},u={key:1,class:"mt-3"},d={class:"grid"};i(4573);var f=i(3895),g=i(6767);const p={class:"ds-link"},m={class:"ds-link"},b={key:0,class:"ds-chart-container",style:{height:"350px"}};var x=i(4559),y=i.n(x),v=i(8270);function _(t){return t+.5|0}const w=(t,e,i)=>Math.max(Math.min(t,i),e);function k(t){return w(_(2.55*t),0,255)}function M(t){return w(_(255*t),0,255)}function S(t){return w(_(t/2.55)/100,0,1)}function T(t){return w(_(100*t),0,100)}const D={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},P=[..."0123456789ABCDEF"],C=t=>P[15&t],O=t=>P[(240&t)>>4]+P[15&t],A=t=>(240&t)>>4==(15&t);const L=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function E(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function R(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function I(t,e,i){const n=E(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function Z(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),r=(s+o)/2;let a,l,h;return s!==o&&(h=s-o,l=r>.5?h/(2-s-o):h/(s+o),a=function(t,e,i,n,s){return t===s?(e-i)/n+(e<i?6:0):e===s?(i-t)/n+2:(t-e)/n+4}(e,i,n,h,s),a=60*a+.5),[0|a,l||0,r]}function F(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(M)}function z(t,e,i){return F(E,t,e,i)}function N(t){return(t%360+360)%360}const H={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"},V={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 B;const W=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,j=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,U=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Y(t,e,i){if(t){let n=Z(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=z(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function $(t,e){return t?Object.assign(e||{},t):t}function q(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=M(t[3]))):(e=$(t,{r:0,g:0,b:0,a:1})).a=M(e.a),e}function X(t){return"r"===t.charAt(0)?function(t){const e=W.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?k(t):w(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?k(i):w(i,0,255)),n=255&(e[4]?k(n):w(n,0,255)),s=255&(e[6]?k(s):w(s,0,255)),{r:i,g:n,b:s,a:o}}}(t):function(t){const e=L.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?k(+e[5]):M(+e[5]));const s=N(+e[2]),o=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return F(I,t,e,i)}(s,o,r):"hsv"===e[1]?function(t,e,i){return F(R,t,e,i)}(s,o,r):z(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}(t)}class G{constructor(t){if(t instanceof G)return t;const e=typeof t;let i;var n,s,o;"object"===e?i=q(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?s={r:255&17*D[n[1]],g:255&17*D[n[2]],b:255&17*D[n[3]],a:5===o?17*D[n[4]]:255}:7!==o&&9!==o||(s={r:D[n[1]]<<4|D[n[2]],g:D[n[3]]<<4|D[n[4]],b:D[n[5]]<<4|D[n[6]],a:9===o?D[n[7]]<<4|D[n[8]]:255})),i=s||function(t){B||(B=function(){const t={},e=Object.keys(V),i=Object.keys(H);let n,s,o,r,a;for(n=0;n<e.length;n++){for(r=a=e[n],s=0;s<i.length;s++)o=i[s],a=a.replace(o,H[o]);o=parseInt(V[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),B.transparent=[0,0,0,0]);const e=B[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||X(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=$(this._rgb);return t&&(t.a=S(t.a)),t}set rgb(t){this._rgb=q(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${S(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>A(t.r)&&A(t.g)&&A(t.b)&&A(t.a))(t)?C:O,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Z(t),i=e[0],n=T(e[1]),s=T(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${S(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const o=e===s?.5:e,r=2*o-1,a=i.a-n.a,l=((r*a==-1?r:(r+a)/(1+r*a))+1)/2;s=1-l,i.r=255&l*i.r+s*n.r+.5,i.g=255&l*i.g+s*n.g+.5,i.b=255&l*i.b+s*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=U(S(t.r)),s=U(S(t.g)),o=U(S(t.b));return{r:M(j(n+i*(U(S(e.r))-n))),g:M(j(s+i*(U(S(e.g))-s))),b:M(j(o+i*(U(S(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new G(this.rgb)}alpha(t){return this._rgb.a=M(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_(.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 Y(this._rgb,2,t),this}darken(t){return Y(this._rgb,2,-t),this}saturate(t){return Y(this._rgb,1,t),this}desaturate(t){return Y(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Z(t);i[0]=N(i[0]+e),i=z(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Q(){}const K=(()=>{let t=0;return()=>t++})();function J(t){return null==t}function tt(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 et(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function it(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function nt(t,e){return it(t)?t:e}function st(t,e){return void 0===t?e:t}const ot=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function rt(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function at(t,e,i,n){let s,o,r;if(tt(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s<o;s++)e.call(i,t[s],s);else if(et(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(i,t[r[s]],r[s])}function lt(t,e){let i,n,s,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],o=e[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function ht(t){if(tt(t))return t.map(ht);if(et(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=ht(t[i[s]]);return e}return t}function ct(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ut(t,e,i,n){if(!ct(t))return;const s=e[t],o=i[t];et(s)&&et(o)?dt(s,o,n):e[t]=ht(o)}function dt(t,e,i){const n=tt(e)?e:[e],s=n.length;if(!et(t))return t;const o=(i=i||{}).merger||ut;let r;for(let e=0;e<s;++e){if(r=n[e],!et(r))continue;const s=Object.keys(r);for(let e=0,n=s.length;e<n;++e)o(s[e],t,r,i)}return t}function ft(t,e){return dt(t,e,{merger:gt})}function gt(t,e,i){if(!ct(t))return;const n=e[t],s=i[t];et(n)&&et(s)?ft(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ht(s))}const pt={"":t=>t,x:t=>t.x,y:t=>t.y};function mt(t,e){const i=pt[e]||(pt[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function bt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const xt=t=>void 0!==t,yt=t=>"function"==typeof t,vt=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},_t=Math.PI,wt=2*_t,kt=wt+_t,Mt=Number.POSITIVE_INFINITY,St=_t/180,Tt=_t/2,Dt=_t/4,Pt=2*_t/3,Ct=Math.log10,Ot=Math.sign;function At(t,e,i){return Math.abs(t-e)<i}function Lt(t){const e=Math.round(t);t=At(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(Ct(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function Et(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Rt(t,e,i){let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function It(t){return t*(_t/180)}function Zt(t){return t*(180/_t)}function Ft(t){if(!it(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function zt(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*_t&&(o+=wt),{angle:o,distance:s}}function Nt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ht(t,e){return(t-e+kt)%wt-_t}function Vt(t){return(t%wt+wt)%wt}function Bt(t,e,i,n){const s=Vt(t),o=Vt(e),r=Vt(i),a=Vt(o-s),l=Vt(r-s),h=Vt(s-o),c=Vt(s-r);return s===o||s===r||n&&o===r||a>l&&h<c}function Wt(t,e,i){return Math.max(e,Math.min(i,t))}function jt(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function Ut(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,o=0;for(;s-o>1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const Yt=(t,e,i,n)=>Ut(t,i,n?n=>{const s=t[n][e];return s<i||s===i&&t[n+1][e]===i}:n=>t[n][e]<i),$t=(t,e,i)=>Ut(t,i,(n=>t[n][e]>=i)),qt=["push","pop","shift","splice","unshift"];function Xt(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(qt.forEach((e=>{delete t[e]})),delete t._chartjs)}function Gt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Qt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Kt(t,e){let i=[],n=!1;return function(...s){i=s,n||(n=!0,Qt.call(window,(()=>{n=!1,t.apply(e,i)})))}}const Jt=t=>"start"===t?"left":"end"===t?"right":"center",te=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function ee(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:h,max:c,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=Wt(Math.min(Yt(a,l,h).lo,i?n:Yt(e,l,r.getPixelForValue(h)).lo),0,n-1)),o=d?Wt(Math.max(Yt(a,r.axis,c,!0).hi+1,i?0:Yt(e,l,r.getPixelForValue(c),!0).hi+1),s,n)-s:n-s}return{start:s,count:o}}function ie(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}const ne=t=>0===t||1===t,se=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*wt/i),oe=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*wt/i)+1,re={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*Tt),easeOutSine:t=>Math.sin(t*Tt),easeInOutSine:t=>-.5*(Math.cos(_t*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=>ne(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=>ne(t)?t:se(t,.075,.3),easeOutElastic:t=>ne(t)?t:oe(t,.075,.3),easeInOutElastic(t){const e=.1125;return ne(t)?t:t<.5?.5*se(2*t,e,.45):.5+.5*oe(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-re.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*re.easeInBounce(2*t):.5*re.easeOutBounce(2*t-1)+.5};function ae(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function le(t){return ae(t)?t:new G(t)}function he(t){return ae(t)?t:new G(t).saturate(.5).darken(.1).hexString()}const ce=["x","y","borderWidth","radius","tension"],ue=["color","borderColor","backgroundColor"],de=new Map;function fe(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=de.get(i);return n||(n=new Intl.NumberFormat(t,e),de.set(i,n)),n}(e,i).format(t)}const ge={values(t){return tt(t)?t:""+t},numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const r=Ct(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),fe(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(Ct(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?ge.numeric.call(this,t,e,i):""}};var pe={formatters:ge};const me=Object.create(null),be=Object.create(null);function xe(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function ye(t,e,i){return"string"==typeof e?dt(xe(t,e),i):dt(xe(t,""),e)}class ve{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)=>he(e.backgroundColor),this.hoverBorderColor=(t,e)=>he(e.borderColor),this.hoverColor=(t,e)=>he(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 ye(this,t,e)}get(t){return xe(this,t)}describe(t,e){return ye(be,t,e)}override(t,e){return ye(me,t,e)}route(t,e,i,n){const s=xe(this,t),o=xe(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return et(t)?Object.assign({},e,t):st(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach((t=>t(this)))}}var _e=new ve({_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:ue},numbers:{type:"number",properties:ce}}),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:pe.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 we(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function ke(t,e,i,n){let s=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const a=i.length;let l,h,c,u,d;for(l=0;l<a;l++)if(u=i[l],null==u||tt(u)){if(tt(u))for(h=0,c=u.length;h<c;h++)d=u[h],null==d||tt(d)||(r=we(t,s,o,r,d))}else r=we(t,s,o,r,u);t.restore();const f=o.length/2;if(f>i.length){for(l=0;l<f;l++)delete s[o[l]];o.splice(0,f)}return r}function Me(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function Se(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Te(t,e,i,n){De(t,e,i,n,null)}function De(t,e,i,n,s){let o,r,a,l,h,c,u,d;const f=e.pointStyle,g=e.rotation,p=e.radius;let m=(g||0)*St;if(f&&"object"==typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,n),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),f){default:s?t.ellipse(i,n,s/2,p,0,0,wt):t.arc(i,n,p,0,wt),t.closePath();break;case"triangle":c=s?s/2:p,t.moveTo(i+Math.sin(m)*c,n-Math.cos(m)*p),m+=Pt,t.lineTo(i+Math.sin(m)*c,n-Math.cos(m)*p),m+=Pt,t.lineTo(i+Math.sin(m)*c,n-Math.cos(m)*p),t.closePath();break;case"rectRounded":h=.516*p,l=p-h,r=Math.cos(m+Dt)*l,u=Math.cos(m+Dt)*(s?s/2-h:l),a=Math.sin(m+Dt)*l,d=Math.sin(m+Dt)*(s?s/2-h:l),t.arc(i-u,n-a,h,m-_t,m-Tt),t.arc(i+d,n-r,h,m-Tt,m),t.arc(i+u,n+a,h,m,m+Tt),t.arc(i-d,n+r,h,m+Tt,m+_t),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,c=s?s/2:l,t.rect(i-c,n-l,2*c,2*l);break}m+=Dt;case"rectRot":u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+d,n-r),t.lineTo(i+u,n+a),t.lineTo(i-d,n+r),t.closePath();break;case"crossRot":m+=Dt;case"cross":u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r);break;case"star":u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r),m+=Dt,u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r);break;case"line":r=s?s/2:Math.cos(m)*p,a=Math.sin(m)*p,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(m)*(s?s/2:p),n+Math.sin(m)*p);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Pe(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Ce(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Oe(t){t.restore()}function Ae(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Le(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function Ee(t,e,i,n,s){if(s.strikethrough||s.underline){const o=t.measureText(n),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=s.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,c),t.lineTo(a,c),t.stroke()}}function Re(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Ie(t,e,i,n,s,o={}){const r=tt(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,h;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),J(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,o),l=0;l<r.length;++l)h=r[l],o.backdrop&&Re(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),J(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(h,i,n,o.maxWidth)),t.fillText(h,i,n,o.maxWidth),Ee(t,i,n,h,o),n+=Number(s.lineHeight);t.restore()}function Ze(t,e){const{x:i,y:n,w:s,h:o,radius:r}=e;t.arc(i+r.topLeft,n+r.topLeft,r.topLeft,1.5*_t,_t,!0),t.lineTo(i,n+o-r.bottomLeft),t.arc(i+r.bottomLeft,n+o-r.bottomLeft,r.bottomLeft,_t,Tt,!0),t.lineTo(i+s-r.bottomRight,n+o),t.arc(i+s-r.bottomRight,n+o-r.bottomRight,r.bottomRight,Tt,0,!0),t.lineTo(i+s,n+r.topRight),t.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-Tt,!0),t.lineTo(i+r.topLeft,n)}const Fe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ze=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ne(t,e){const i=(""+t).match(Fe);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}function He(t,e){const i={},n=et(e),s=n?Object.keys(e):e,o=et(t)?n?i=>st(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=+o(t)||0;return i}function Ve(t){return He(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Be(t){return He(t,["topLeft","topRight","bottomLeft","bottomRight"])}function We(t){const e=Ve(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function je(t,e){t=t||{},e=e||_e.font;let i=st(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=st(t.style,e.style);n&&!(""+n).match(ze)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:st(t.family,e.family),lineHeight:Ne(st(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:st(t.weight,e.weight),string:""};return s.string=function(t){return!t||J(t.size)||J(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function Ue(t,e,i,n){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),a=!1),void 0!==i&&tt(r)&&(r=r[i%r.length],a=!1),void 0!==r))return n&&!a&&(n.cacheable=!1),r}function Ye(t,e){return Object.assign(Object.create(t),e)}function $e(t,e=[""],i,n,s=(()=>t[0])){const o=i||t;void 0===n&&(n=si("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:s,override:i=>$e([i,...t],e,o,n)};return new Proxy(r,{deleteProperty(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get(i,n){return Ke(i,n,(()=>function(t,e,i,n){let s;for(const o of e)if(s=si(Ge(o,t),i),void 0!==s)return Qe(t,s)?ii(i,n,t,s):s}(n,e,t,i)))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return oi(t).includes(e)},ownKeys(t){return oi(t)},set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function qe(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Xe(t,n),setContext:e=>qe(t,e,i,n),override:s=>qe(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty(e,i){return delete e[i],delete t[i],!0},get(t,e,i){return Ke(t,e,(()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=t;let a=n[e];return yt(a)&&r.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,r||n);return a.delete(t),Qe(t,l)&&(l=ii(s._scopes,s,t,l)),l}(e,a,t,i)),tt(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=i;if(void 0!==o.index&&n(t))return e[o.index%e.length];if(et(e[0])){const i=e,n=s._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=ii(n,s,t,l);e.push(qe(i,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable)),Qe(e,a)&&(a=qe(a,s,o&&o[e],r)),a}(t,e,i)))},getOwnPropertyDescriptor(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,i){return Reflect.has(t,i)},ownKeys(){return Reflect.ownKeys(t)},set(e,i,n){return t[i]=n,delete e[i],!0}})}function Xe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:yt(i)?i:()=>i,isIndexable:yt(n)?n:()=>n}}const Ge=(t,e)=>t?t+bt(e):e,Qe=(t,e)=>et(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ke(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function Je(t,e,i){return yt(t)?t(e,i):t}const ti=(t,e)=>!0===t?e:"string"==typeof t?mt(e,t):void 0;function ei(t,e,i,n,s){for(const o of e){const e=ti(i,o);if(e){t.add(e);const o=Je(e._fallback,i,s);if(void 0!==o&&o!==i&&o!==n)return o}else if(!1===e&&void 0!==n&&i!==n)return null}return!1}function ii(t,e,i,n){const s=e._rootScopes,o=Je(e._fallback,i,n),r=[...t,...s],a=new Set;a.add(n);let l=ni(a,r,i,o||i,n);return null!==l&&(void 0===o||o===i||(l=ni(a,r,o,l,n),null!==l))&&$e(Array.from(a),[""],s,o,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];return tt(s)&&et(i)?i:s||{}}(e,i,n)))}function ni(t,e,i,n,s){for(;i;)i=ei(t,e,i,n,s);return i}function si(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function oi(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function ri(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(n);let a,l,h,c;for(a=0,l=n;a<l;++a)h=a+i,c=e[h],r[a]={r:s.parse(mt(c,o),h)};return r}const ai=Number.EPSILON||1e-14,li=(t,e)=>e<t.length&&!t[e].skip&&t[e],hi=t=>"x"===t?"y":"x";function ci(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=Nt(o,s),l=Nt(r,o);let h=a/(a+l),c=l/(a+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const u=n*h,d=n*c;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function ui(t,e,i){return Math.max(Math.min(t,i),e)}function di(t,e,i,n,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=hi(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,h=li(t,0);for(r=0;r<n;++r)if(a=l,l=h,h=li(t,r+1),l){if(h){const t=h[e]-l[e];s[r]=0!==t?(h[i]-l[i])/t:0}o[r]=a?h?Ot(s[r-1])!==Ot(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,i){const n=t.length;let s,o,r,a,l,h=li(t,0);for(let c=0;c<n-1;++c)l=h,h=li(t,c+1),l&&h&&(At(e[c],0,ai)?i[c]=i[c+1]=0:(s=i[c]/e[c],o=i[c+1]/e[c],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),i[c]=s*r*e[c],i[c+1]=o*r*e[c])))}(t,s,o),function(t,e,i="x"){const n=hi(i),s=t.length;let o,r,a,l=li(t,0);for(let h=0;h<s;++h){if(r=a,a=l,l=li(t,h+1),!a)continue;const s=a[i],c=a[n];r&&(o=(s-r[i])/3,a[`cp1${i}`]=s-o,a[`cp1${n}`]=c-o*e[h]),l&&(o=(l[i]-s)/3,a[`cp2${i}`]=s+o,a[`cp2${n}`]=c+o*e[h])}}(t,o,e)}(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=ci(i,a,t[Math.min(o+1,r-(n?0:1))%r],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,s,o,r,a=Pe(t[0],e);for(i=0,n=t.length;i<n;++i)r=o,o=a,a=i<n-1&&Pe(t[i+1],e),o&&(s=t[i],r&&(s.cp1x=ui(s.cp1x,e.left,e.right),s.cp1y=ui(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=ui(s.cp2x,e.left,e.right),s.cp2y=ui(s.cp2y,e.top,e.bottom)))}(t,i)}function fi(){return"undefined"!=typeof window&&"undefined"!=typeof document}function gi(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function pi(t,e,i){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const mi=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),bi=["top","right","bottom","left"];function xi(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=bi[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function yi(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=mi(i),o="border-box"===s.boxSizing,r=xi(s,"padding"),a=xi(s,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let r,a,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:r,y:a,box:l}}(t,i),u=r.left+(c&&a.left),d=r.top+(c&&a.top);let{width:f,height:g}=e;return o&&(f-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-u)/f*i.width/n),y:Math.round((h-d)/g*i.height/n)}}const vi=t=>Math.round(10*t)/10;function _i(t,e,i){const n=e||1,s=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const wi=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};fi()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function ki(t,e){const i=function(t,e){return mi(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Mi(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Si(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function Ti(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Mi(t,s,i),a=Mi(s,o,i),l=Mi(o,e,i),h=Mi(r,a,i),c=Mi(a,l,i);return Mi(h,c,i)}function Di(t,e,i){return t?function(t,e){return{x(i){return t+t+e-i},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}}(e,i):{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}}function Pi(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Ci(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Oi(t){return"angle"===t?{between:Bt,compare:Ht,normalize:Vt}:{between:jt,compare:(t,e)=>t-e,normalize:t=>t}}function Ai({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function Li(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:h}=Oi(n),{start:c,end:u,loop:d,style:f}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=Oi(n),l=e.length;let h,c,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,h=0,c=l;h<c&&r(a(e[u%l][n]),s,o);++h)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,i),g=[];let p,m,b,x=!1,y=null;for(let t=c,i=c;t<=u;++t)m=e[t%r],m.skip||(p=h(m[n]),p!==b&&(x=l(p,s,o),null===y&&(x||l(s,b,p)&&0!==a(s,b))&&(y=0===a(p,s)?t:i),null!==y&&(!x||0===a(o,p)||l(o,b,p))&&(g.push(Ai({start:y,end:t,loop:d,count:r,style:f})),y=null),i=t,b=p));return null!==y&&g.push(Ai({start:y,end:u,loop:d,count:r,style:f})),g}function Ei(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const o=Li(n[s],t.points,e);o.length&&i.push(...o)}return i}function Ri(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ii(t,e){if(!e)return!1;const i=[],n=function(t,e){return ae(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}class Zi{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],o=e.duration;s.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Qt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}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 i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Fi=new Zi;const zi="transparent",Ni={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const n=le(t||zi),s=n.valid&&le(e||zi);return s&&s.valid?s.mix(n,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class Hi{constructor(t,e,i,n){const s=e[i];n=Ue([t.to,n,s,t.from]);const o=Ue([t.from,s,n]);this._active=!0,this._fn=t.fn||Ni[t.type||typeof o],this._easing=re[t.easing]||re.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=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Ue([t.to,e,n,t.from]),this._from=Ue([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<i),!this._active)return this._target[n]=r,void this._notify(!0);e<0?this._target[n]=s:(a=e/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class Vi{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!et(t))return;const e=Object.keys(_e.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const s=t[n];if(!et(s))return;const o={};for(const t of e)o[t]=s[t];(tt(s.properties)&&s.properties||[n]).forEach((t=>{t!==n&&i.has(t)||i.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const s=t[n[e]];s&&s.active()&&i.push(s.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const h=e[l];let c=s[l];const u=i.get(l);if(c){if(u&&c.active()){c.update(u,h,r);continue}c.cancel()}u&&u.duration?(s[l]=c=new Hi(u,t,l,h),n.push(c)):t[l]=h}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Fi.add(this._chart,i),!0):void 0}}function Bi(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function Wi(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function ji(t,e,i,n={}){const s=t.keys,o="single"===n.mode;let r,a,l,h;if(null!==e){for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===i){if(n.all)continue;break}h=t.values[l],it(h)&&(o||0===e||Ot(e)===Ot(h))&&(e+=h)}return e}}function Ui(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Yi(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function $i(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function qi(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,h=r.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,r,n),u=e.length;let d;for(let t=0;t<u;++t){const i=e[t],{[l]:o,[h]:u}=i;d=(i._stacks||(i._stacks={}))[h]=Yi(s,c,o),d[a]=u,d._top=$i(d,r,!0,n.type),d._bottom=$i(d,r,!1,n.type),(d._visualValues||(d._visualValues={}))[a]=u}}function Xi(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Gi(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[i]&&delete e[n]._visualValues[i]}}}const Qi=t=>"reset"===t||"none"===t,Ki=(t,e)=>e?t:Object.assign({},t);class Ji{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=Ui(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&&Gi(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=st(i.xAxisID,Xi(t,"x")),o=e.yAxisID=st(i.yAxisID,Xi(t,"y")),r=e.rAxisID=st(i.rAxisID,Xi(t,"r")),a=e.indexAxis,l=e.iAxisID=n(a,s,o,r),h=e.vAxisID=n(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}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&&Xt(this._data,this),t._stacked&&Gi(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(et(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n],i[n]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){Xt(i,this);const t=this._cachedMeta;Gi(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(n=e)._chartjs?n._chartjs.listeners.push(this):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),qt.forEach((t=>{const e="_onData"+bt(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const s=i.apply(this,t);return n._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),s}})})))),this._syncList=[],this._data=e}var n}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=Ui(e.vScale,e),e.stack!==i.stack&&(n=!0,Gi(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&qi(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,r=s.axis;let a,l,h,c=0===t&&e===n.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,h=n;else{h=tt(n[t])?this.parseArrayData(i,n,t,e):et(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===l[r]||u&&l[r]<u[r];for(a=0;a<e;++a)i._parsed[a+t]=l=h[a],c&&(s()&&(c=!1),u=l);i._sorted=c}o&&qi(this,h)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),h=s===o,c=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,c[u]={[r]:h||s.parse(l[f],f),[a]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,n){const{xScale:s,yScale:o}=t,r=new Array(n);let a,l,h,c;for(a=0,l=n;a<l;++a)h=a+i,c=e[h],r[a]={x:s.parse(c[0],h),y:o.parse(c[1],h)};return r}parseObjectData(t,e,i,n){const{xScale:s,yScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l=new Array(n);let h,c,u,d;for(h=0,c=n;h<c;++h)u=h+i,d=e[u],l[h]={x:s.parse(mt(d,r),u),y:o.parse(mt(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,o=e[t.axis];return ji({keys:Wi(n,!0),values:e._stacks[t.axis]._visualValues},o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let o=null===s?NaN:s;const r=n&&i._stacks[e.axis];n&&r&&(n.values=r,o=ji(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&t===i.iScale,o=n.length,r=this._getOtherScale(t),a=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Wi(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:c}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(r);let u,d;function f(){d=n[u];const e=d[r.axis];return!it(d[t.axis])||h>e||c<e}for(u=0;u<o&&(f()||(this.updateRangeFromParsed(l,t,d,a),!s));++u);if(s)for(u=o-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n][t.axis],it(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,n,s;return et(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}(st(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=Bi(t,i),s=Bi(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||n.length-r,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,s,r,a),h=r;h<r+a;++h){const e=n[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,s))}for(h=0;h<o.length;++h)o[h].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const n=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,i){return Ye(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=n.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return Ye(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const n="active"===e,s=this._cachedDataOpts,o=t+"-"+e,r=s[o],a=this.enableOptionSharing&&xt(i);if(r)return Ki(r,a);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=n?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),h),d=Object.keys(_e.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(i,n,e)),c);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(Ki(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new Vi(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Qi(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){Qi(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Qi(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"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,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e,i=!0){const n=this._cachedMeta,s=n.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&Gi(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}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 i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function tn(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;e<s;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=Gt(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(xt(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(n=0,s=i.length;n<s;++n)o=e.getPixelForValue(i[n]),l();for(r=void 0,n=0,s=e.ticks.length;n<s;++n)o=e.getPixelForTick(n),l();return a}function en(t,e,i,n){return tt(t)?function(t,e,i,n){const s=i.parse(t[0],n),o=i.parse(t[1],n),r=Math.min(s,o),a=Math.max(s,o);let l=r,h=a;Math.abs(r)>Math.abs(a)&&(l=a,h=r),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:s,end:o,min:r,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function nn(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let h,c,u,d;for(h=i,c=i+n;h<c;++h)d=e[h],u={},u[s.axis]=a||s.parse(r[h],h),l.push(en(d,u,o,h));return l}function sn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function on(t,e,i,n){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:a,reverse:l,top:h,bottom:c}=function(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",o="start"):(s="start",o="end"),{start:i,end:n,reverse:e,top:s,bottom:o}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=h:(i._bottom||0)===n?s=c:(o[rn(c,r,a,l)]=!0,s=h)),o[rn(s,r,a,l)]=!0,t.borderSkipped=o}function rn(t,e,i,n){var s,o,r;return n?(r=i,t=an(t=(s=t)===(o=e)?r:s===r?o:s,i,e)):t=an(t,e,i),t}function an(t,e,i){return"start"===t?e:"end"===t?i:t}function ln(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}(0,v.Z)(Ji,"defaults",{}),(0,v.Z)(Ji,"datasetElementType",null),(0,v.Z)(Ji,"dataElementType",null);class hn extends Ji{parsePrimitiveData(t,e,i,n){return nn(t,e,i,n)}parseArrayData(t,e,i,n){return nn(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,h="x"===o.axis?r:a,c=[];let u,d,f,g;for(u=i,d=i+n;u<d;++u)g=e[u],f={},f[s.axis]=s.parse(mt(g,l),u),c.push(en(mt(g,h),f,o,u));return c}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),o=s._custom,r=sn(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}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,i,n){const s="reset"===n,{index:o,_cachedMeta:{vScale:r}}=this,a=r.getBasePixel(),l=r.isHorizontal(),h=this._getRuler(),{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,n);for(let d=e;d<e+i;d++){const e=this.getParsed(d),i=s||J(e[r.axis])?{base:a,head:a}:this._calculateBarValuePixels(d),f=this._calculateBarIndexPixels(d,h),g=(e._stacks||{})[r.axis],p={horizontal:l,base:i.base,enableBorderRadius:!g||sn(e._custom)||o===g._top||o===g._bottom,x:l?i.head:f.center,y:l?f.center:i.head,height:l?f.size:Math.abs(i.size),width:l?Math.abs(i.size):f.size};u&&(p.options=c||this.resolveDataElementOptions(d,t[d].active?"active":n));const m=p.options||t[d].options;on(p,m,g,o),ln(p,m,h.ratio),this.updateElement(t[d],d,p,n)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),s=i.options.stacked,o=[],r=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if(J(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!r(i))&&((!1===s||-1===o.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s<o;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=t.barThickness;return{min:r||tn(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:n},options:{base:s,minBarLength:o}}=this,r=s||0,a=this.getParsed(t),l=a._custom,h=sn(l);let c,u,d=a[e.axis],f=0,g=i?this.applyStack(e,a,i):d;g!==d&&(f=g-d,g=d),h&&(d=l.barStart,g=l.barEnd-l.barStart,0!==d&&Ot(d)!==Ot(l.barEnd)&&(f=0),f+=d);const p=J(s)||h?f:s;let m=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):m,u=c-m,Math.abs(u)<o){u=function(t,e,i){return 0!==t?Ot(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(u,e,r)*o,d===r&&(m-=u/2);const t=e.getPixelForDecimal(0),s=e.getPixelForDecimal(1),l=Math.min(t,s),f=Math.max(t,s);m=Math.max(Math.min(m,f),l),c=m+u,i&&!h&&(a._stacks[e.axis]._visualValues[n]=e.getValueForPixel(c)-e.getValueForPixel(m))}if(m===e.getPixelForValue(r)){const t=Ot(u)*e.getLineWidthForValue(r)/2;m+=t,u-=t}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=st(n.maxBarThickness,1/0);let r,a;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=i.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const h=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/n,ratio:i.barPercentage,start:h}}(t,e,n,i):function(t,e,i,n){const s=i.barThickness;let o,r;return J(s)?(o=e.min*i.categoryPercentage,r=i.barPercentage):(o=s*n,r=1),{chunk:o/n,ratio:r,start:e.pixels[t]-o/2}}(t,e,n,i),h=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);r=l.start+l.chunk*h+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),a=Math.min(o,e.min*e.ratio);return{base:r-a/2,head:r+a/2,center:r,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}}(0,v.Z)(hn,"id","bar"),(0,v.Z)(hn,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),(0,v.Z)(hn,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class cn extends Ji{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+i).radius;return s}parseArrayData(t,e,i,n){const s=super.parseArrayData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=st(n[2],this.resolveDataElementOptions(t+i).radius)}return s}parseObjectData(t,e,i,n){const s=super.parseObjectData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=st(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+r+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),h=o.axis,c=r.axis;for(let u=e;u<e+i;u++){const e=t[u],i=!s&&this.getParsed(u),d={},f=d[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),g=d[c]=s?r.getBasePixel():r.getPixelForValue(i[c]);d.skip=isNaN(f)||isNaN(g),l&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":n),s&&(d.options.radius=0)),this.updateElement(e,u,d,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=st(i&&i._custom,s),n}}(0,v.Z)(cn,"id","bubble"),(0,v.Z)(cn,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),(0,v.Z)(cn,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class un extends Ji{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 i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,o,r=t=>+i[t];if(et(i[t])){const{key:t="value"}=this._parsing;r=e=>+mt(i[e],t)}for(s=t,o=t+e;s<o;++s)n._parsed[s]=r(s)}}_getRotation(){return It(this.options.rotation-90)}_getCircumference(){return It(this.options.circumference)}_getRotationExtents(){let t=wt,e=-wt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),o=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,s=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(i.width,i.height)-o)/2,0),a=Math.min((h=r,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:+l/h),1);var l,h;const c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:g,offsetX:p,offsetY:m}=function(t,e,i){let n=1,s=1,o=0,r=0;if(e<wt){const a=t,l=a+e,h=Math.cos(a),c=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,n)=>Bt(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),g=(t,e,n)=>Bt(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),p=f(0,h,u),m=f(Tt,c,d),b=g(_t,h,u),x=g(_t+Tt,c,d);n=(p-b)/2,s=(m-x)/2,o=-(p+b)/2,r=-(m+x)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}(d,u,a),b=(i.width-o)/f,x=(i.height-o)/g,y=Math.max(Math.min(b,x)/2,0),v=ot(this.options.radius,y),_=(v-Math.max(v*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*v,this.offsetY=m*v,n.total=this.calculateTotal(),this.outerRadius=v-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/wt)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,h=(r.top+r.bottom)/2,c=s&&a.animateScale,u=c?0:this.innerRadius,d=c?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,n);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,s);for(p=e;p<e+i;++p){const e=this._circumference(p,s),i=t[p],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:u};g&&(o.options=f||this.resolveDataElementOptions(p,i.active?"active":n)),m+=e,this.updateElement(i,p,o,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?wt*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=fe(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,r=o.controller;break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)a=r.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(st(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}(0,v.Z)(un,"id","doughnut"),(0,v.Z)(un,"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"}),(0,v.Z)(un,"descriptors",{_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),(0,v.Z)(un,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,s)=>{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}});class dn extends Ji{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:r,count:a}=ee(e,n,o);this._drawStart=r,this._drawCount=a,ie(e)&&(r=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(n,r,a,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:c}=this._getSharedOptions(e,n),u=o.axis,d=r.axis,{spanGaps:f,segment:g}=this.options,p=Et(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||s||"none"===n,b=e+i,x=t.length;let y=e>0&&this.getParsed(e-1);for(let i=0;i<x;++i){const f=t[i],x=m?f:{};if(i<e||i>=b){x.skip=!0;continue}const v=this.getParsed(i),_=J(v[d]),w=x[u]=o.getPixelForValue(v[u],i),k=x[d]=s||_?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,v,a):v[d],i);x.skip=isNaN(w)||isNaN(k)||_,x.stop=i>0&&Math.abs(v[u]-y[u])>p,g&&(x.parsed=v,x.raw=l.data[i]),c&&(x.options=h||this.resolveDataElementOptions(i,f.active?"active":n)),m||this.updateElement(f,i,x,n),y=v}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}(0,v.Z)(dn,"id","line"),(0,v.Z)(dn,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),(0,v.Z)(dn,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class fn extends Ji{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=fe(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return ri.bind(this)(t,e,i,n)}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,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,h=a.yCenter,c=a.getIndexAngle(0)-.5*_t;let u,d=c;const f=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,n,f);for(u=e;u<e+i;u++){const e=t[u];let i=d,g=d+this._computeAngle(u,n,f),p=o.getDataVisibility(u)?a.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=g,s&&(r.animateScale&&(p=0),r.animateRotate&&(i=g=c));const m={x:l,y:h,innerRadius:0,outerRadius:p,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(u,e.active?"active":n)};this.updateElement(e,u,m,n)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?It(this.resolveDataElementOptions(t,e).angle||i):0}}(0,v.Z)(fn,"id","polarArea"),(0,v.Z)(fn,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),(0,v.Z)(fn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,s)=>{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class gn extends un{}(0,v.Z)(gn,"id","pie"),(0,v.Z)(gn,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class pn extends Ji{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return ri.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let r=e;r<e+i;r++){const e=t[r],i=this.resolveDataElementOptions(r,e.active?"active":n),a=s.getPointPositionForValue(r,this.getParsed(r).r),l=o?s.xCenter:a.x,h=o?s.yCenter:a.y,c={x:l,y:h,angle:a.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,r,c,n)}}}(0,v.Z)(pn,"id","radar"),(0,v.Z)(pn,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),(0,v.Z)(pn,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class mn extends Ji{getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+r+", "+a+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,n=this.chart._animationsDisabled;let{start:s,count:o}=ee(e,i,n);if(this._drawStart=s,this._drawCount=o,ie(e)&&(s=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:s,_dataset:o}=e;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(s,void 0,{animated:!n,options:r},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,s,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,h=this.resolveDataElementOptions(e,n),c=this.getSharedOptions(h),u=this.includeOptions(n,c),d=o.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=Et(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===n;let x=e>0&&this.getParsed(e-1);for(let h=e;h<e+i;++h){const e=t[h],i=this.getParsed(h),g=b?e:{},y=J(i[f]),v=g[d]=o.getPixelForValue(i[d],h),_=g[f]=s||y?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,i,a):i[f],h);g.skip=isNaN(v)||isNaN(_)||y,g.stop=h>0&&Math.abs(i[d]-x[d])>m,p&&(g.parsed=i,g.raw=l.data[h]),u&&(g.options=c||this.resolveDataElementOptions(h,e.active?"active":n)),b||this.updateElement(e,h,g,n),x=i}this.updateSharedOptions(c,n,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}function bn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}(0,v.Z)(mn,"id","scatter"),(0,v.Z)(mn,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),(0,v.Z)(mn,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});class xn{static override(t){Object.assign(xn.prototype,t)}constructor(t){(0,v.Z)(this,"options",void 0),this.options=t||{}}init(){}formats(){return bn()}parse(){return bn()}format(){return bn()}add(){return bn()}diff(){return bn()}startOf(){return bn()}endOf(){return bn()}}var yn={_date:xn};function vn(t,e,i,n){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&r&&o.length){const t=a._reversePixels?$t:Yt;if(!n)return t(o,e,i);if(s._sharedOptions){const n=o[0],s="function"==typeof n.getRange&&n.getRange(e);if(s){const n=t(o,e,i-s),r=t(o,e,i+s);return{lo:n.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function _n(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:a}=o[t],{lo:l,hi:h}=vn(o[t],e,r,s);for(let t=l;t<=h;++t){const e=a[t];e.skip||n(e,i,t)}}}function wn(t,e,i,n,s){const o=[];return s||t.isPointInArea(e)?(_n(t,i,e,(function(i,r,a){(s||Pe(i,t.chartArea,0))&&i.inRange(e.x,e.y,n)&&o.push({element:i,datasetIndex:r,index:a})}),!0),o):o}function kn(t,e,i,n,s,o){return o||t.isPointInArea(e)?"r"!==i||n?function(t,e,i,n,s,o){let r=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return _n(t,i,e,(function(i,h,c){const u=i.inRange(e.x,e.y,s);if(n&&!u)return;const d=i.getCenterPoint(s);if(!o&&!t.isPointInArea(d)&&!u)return;const f=a(e,d);f<l?(r=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&r.push({element:i,datasetIndex:h,index:c})})),r}(t,e,i,n,s,o):function(t,e,i,n){let s=[];return _n(t,i,e,(function(t,i,o){const{startAngle:r,endAngle:a}=t.getProps(["startAngle","endAngle"],n),{angle:l}=zt(t,{x:e.x,y:e.y});Bt(l,r,a)&&s.push({element:t,datasetIndex:i,index:o})})),s}(t,e,i,s):[]}function Mn(t,e,i,n,s){const o=[],r="x"===i?"inXRange":"inYRange";let a=!1;return _n(t,i,e,((t,n,l)=>{t[r](e[i],s)&&(o.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,s))})),n&&!a?[]:o}var Sn={evaluateInteractionItems:_n,modes:{index(t,e,i,n){const s=yi(e,t),o=i.axis||"x",r=i.includeInvisible||!1,a=i.intersect?wn(t,s,o,n,r):kn(t,s,o,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,n){const s=yi(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;let a=i.intersect?wn(t,s,o,n,r):kn(t,s,o,!1,n,r);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t<i.length;++t)a.push({element:i[t],datasetIndex:e,index:t})}return a},point(t,e,i,n){return wn(t,yi(e,t),i.axis||"xy",n,i.includeInvisible||!1)},nearest(t,e,i,n){const s=yi(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;return kn(t,s,o,i.intersect,n,r)},x(t,e,i,n){return Mn(t,yi(e,t),"x",i.intersect,n)},y(t,e,i,n){return Mn(t,yi(e,t),"y",i.intersect,n)}}};const Tn=["left","top","right","bottom"];function Dn(t,e){return t.filter((t=>t.pos===e))}function Pn(t,e){return t.filter((t=>-1===Tn.indexOf(t.pos)&&t.box.axis===e))}function Cn(t,e){return t.sort(((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight}))}function On(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function An(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 Ln(t,e,i,n){const{pos:s,box:o}=i,r=t.maxPadding;if(!et(s)){i.size&&(t[s]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[s]+=i.size}o.getPadding&&An(r,o.getPadding());const a=Math.max(0,e.outerWidth-On(r,t,"left","right")),l=Math.max(0,e.outerHeight-On(r,t,"top","bottom")),h=a!==t.w,c=l!==t.h;return t.w=a,t.h=l,i.horizontal?{same:h,other:c}:{same:c,other:h}}function En(t,e){const i=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}(t?["left","right"]:["top","bottom"])}function Rn(t,e,i,n){const s=[];let o,r,a,l,h,c;for(o=0,r=t.length,h=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,En(a.horizontal,e));const{same:r,other:u}=Ln(e,i,a,n);h|=r&&s.length,c=c||u,l.fullSize||s.push(a)}return h&&Rn(s,e,i,n)||c}function In(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function Zn(t,e,i,n){const s=i.padding;let{x:o,y:r}=e;for(const a of t){const t=a.box,l=n[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/l.weight||1;if(a.horizontal){const n=e.w*h,o=l.size||t.height;xt(l.start)&&(r=l.start),t.fullSize?In(t,s.left,r,i.outerWidth-s.right-s.left,o):In(t,e.left+l.placed,r,n,o),l.start=r,l.placed+=n,r=t.bottom}else{const n=e.h*h,r=l.size||t.width;xt(l.start)&&(o=l.start),t.fullSize?In(t,o,s.top,r,i.outerHeight-s.bottom-s.top):In(t,o,e.top+l.placed,r,n),l.start=o,l.placed+=n,o=t.right}}e.x=o,e.y=r}var Fn={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 i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,n){if(!t)return;const s=We(t.options.layout.padding),o=Math.max(e-s.width,0),r=Math.max(i-s.height,0),a=function(t){const e=function(t){const e=[];let i,n,s,o,r,a;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),i=Cn(e.filter((t=>t.box.fullSize)),!0),n=Cn(Dn(e,"left"),!0),s=Cn(Dn(e,"right")),o=Cn(Dn(e,"top"),!0),r=Cn(Dn(e,"bottom")),a=Pn(e,"x"),l=Pn(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Dn(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,h=a.horizontal;at(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/c,hBoxMaxHeight:r/2}),d=Object.assign({},s);An(d,We(n));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),g=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!Tn.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=i[a.stack],h=l&&a.stackWeight/l.weight;a.horizontal?(a.width=h?h*n:r&&e.availableWidth,a.height=s):(a.width=n,a.height=h?h*s:r&&e.availableHeight)}return i}(l.concat(h),u);Rn(a.fullSize,f,u,g),Rn(l,f,u,g),Rn(h,f,u,g)&&Rn(l,f,u,g),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),Zn(a.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,Zn(a.rightAndBottom,f,u,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},at(a.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class zn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class Nn extends zn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Hn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vn=t=>null===t||""===t,Bn=!!wi&&{passive:!0};function Wn(t,e,i){t.canvas.removeEventListener(e,i,Bn)}function jn(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Un(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||jn(i.addedNodes,n),e=e&&!jn(i.removedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}function Yn(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||jn(i.removedNodes,n),e=e&&!jn(i.addedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}const $n=new Map;let qn=0;function Xn(){const t=window.devicePixelRatio;t!==qn&&(qn=t,$n.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Gn(t,e,i){const n=t.canvas,s=n&&gi(n);if(!s)return;const o=Kt(((t,e)=>{const n=s.clientWidth;i(t,e),n<s.clientWidth&&i()}),window),r=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)}));return r.observe(s),function(t,e){$n.size||window.addEventListener("resize",Xn),$n.set(t,e)}(t,o),r}function Qn(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){$n.delete(t),$n.size||window.removeEventListener("resize",Xn)}(t)}function Kn(t,e,i){const n=t.canvas,s=Kt((e=>{null!==t.ctx&&i(function(t,e){const i=Hn[t.type]||t.type,{x:n,y:s}=yi(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))}),t);return function(t,e,i){t.addEventListener(e,i,Bn)}(n,e,s),s}class Jn extends zn{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t.$chartjs={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Vn(s)){const e=ki(t,"width");void 0!==e&&(t.width=e)}if(Vn(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ki(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach((t=>{const n=i[t];J(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:Un,detach:Yn,resize:Gn}[e]||Kn;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];n&&(({attach:Qn,detach:Qn,resize:Qn}[e]||Wn)(t,e,n),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return function(t,e,i,n){const s=mi(t),o=xi(s,"margin"),r=pi(s.maxWidth,t,"clientWidth")||Mt,a=pi(s.maxHeight,t,"clientHeight")||Mt,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=gi(t);if(o){const t=o.getBoundingClientRect(),r=mi(o),a=xi(r,"border","width"),l=xi(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=pi(r.maxWidth,o,"clientWidth"),s=pi(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||Mt,maxHeight:s||Mt}}(t,e,i);let{width:h,height:c}=l;if("content-box"===s.boxSizing){const t=xi(s,"border","width"),e=xi(s,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,n?h/n:c-o.height),h=vi(Math.min(h,r,l.maxWidth)),c=vi(Math.min(c,a,l.maxHeight)),h&&!c&&(c=vi(h/2)),(void 0!==e||void 0!==i)&&n&&l.height&&c>l.height&&(c=l.height,h=vi(Math.floor(c*n))),{width:h,height:c}}(t,e,i,n)}isAttached(t){const e=gi(t);return!(!e||!e.isConnected)}}class ts{constructor(){(0,v.Z)(this,"x",void 0),(0,v.Z)(this,"y",void 0),(0,v.Z)(this,"active",!1),(0,v.Z)(this,"options",void 0),(0,v.Z)(this,"$animations",void 0)}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Et(this.x)&&Et(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach((t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),n}}function es(t,e,i,n,s){const o=st(n,0),r=Math.min(st(s,t.length),t.length);let a,l,h,c=0;for(i=Math.ceil(i),s&&(a=s-n,i=a/Math.floor(a/i)),h=o;h<0;)c++,h=Math.round(o+c*i);for(l=Math.max(o,0);l<r;l++)l===h&&(e.push(t[l]),c++,h=Math.round(o+c*i))}(0,v.Z)(ts,"defaults",{}),(0,v.Z)(ts,"defaultRoutes",void 0);const is=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,ns=(t,e)=>Math.min(e||t,t);function ss(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;o<s;o+=n)i.push(t[Math.floor(o)]);return i}function os(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,h=t.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(h-o,r-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(s-1))/2,h+=s<e?l:-l,h<o-a||h>r+a)))return h}function rs(t){return t.drawTicks?t.tickLength:0}function as(t,e){if(!t.display)return 0;const i=je(t.font,e),n=We(t.padding);return(tt(t.text)?t.text.length:1)*i.lineHeight+n.height}function ls(t,e,i){let n=Jt(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class hs extends ts{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:i,_suggestedMax:n}=this;return t=nt(t,Number.POSITIVE_INFINITY),e=nt(e,Number.NEGATIVE_INFINITY),i=nt(i,Number.POSITIVE_INFINITY),n=nt(n,Number.NEGATIVE_INFINITY),{min:nt(t,i),max:nt(e,n),minDefined:it(t),maxDefined:it(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),o||(n=Math.max(n,e.max));return i=o&&i>n?n:i,n=s&&i>n?i:n,{min:nt(i,nt(n,i)),max:nt(n,nt(i,n))}}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(){rt(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:n,max:s}=t,o=ot(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r<this.ticks.length;this._convertTicksToLabels(a?ss(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const i=t.options.ticks,n=function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),s=Math.min(i.maxTicksLimit||n,n),o=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],r=o.length,a=o[0],l=o[r-1],h=[];if(r>s)return function(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=i[o*n])}(e,h,o,r/s),h;const c=function(t,e,i){const n=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),s=e.length/i;if(!n)return Math.max(s,1);const o=function(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n==0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(o,e,s);if(r>0){let t,i;const n=r>1?Math.round((l-a)/(r-1)):null;for(es(e,h,c,J(n)?0:a-n,a),t=0,i=r-1;t<i;t++)es(e,h,c,o[t],o[t+1]);return es(e,h,c,l,J(n)?e.length:l+n),h}return es(e,h,c),h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){rt(this.options.afterUpdate,[this])}beforeSetDimensions(){rt(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(){rt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),rt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){rt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,s;for(i=0,n=t.length;i<n;i++)s=t[i],s.label=rt(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){rt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){rt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=ns(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,s=e.maxRotation;let o,r,a,l=n;if(!this._isVisible()||!e.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const h=this._getLabelSizes(),c=h.widest.width,u=h.highest.height,d=Wt(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:d/(i-1),c+6>o&&(o=d/(i-(t.offset?.5:1)),r=this.maxHeight-rs(t.grid)-e.padding-as(t.title,this.chart.options.font),a=Math.sqrt(c*c+u*u),l=Zt(Math.min(Math.asin(Wt((h.highest.height+6)/o,-1,1)),Math.asin(Wt(r/a,-1,1))-Math.asin(Wt(u/a,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){rt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){rt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=as(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=rs(s)+o):(t.height=this.maxHeight,t.width=rs(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),a=2*i.padding,l=It(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(r){const e=i.mirror?0:c*s.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:h*s.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,c,h)}}this._handleMargins(),r?(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,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,u=0;a?l?(c=n*t.width,u=i*e.height):(c=i*t.height,u=n*e.width):"start"===s?u=e.width:"end"===s?c=t.width:"inner"!==s&&(c=t.width/2,u=e.width/2),this.paddingLeft=Math.max((c-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_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(){rt(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,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)J(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=ss(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:n,_longestTextCache:s}=this,o=[],r=[],a=Math.floor(e/ns(e,i));let l,h,c,u,d,f,g,p,m,b,x,y=0,v=0;for(l=0;l<e;l+=a){if(u=t[l].label,d=this._resolveTickFontOptions(l),n.font=f=d.string,g=s[f]=s[f]||{data:{},gc:[]},p=d.lineHeight,m=b=0,J(u)||tt(u)){if(tt(u))for(h=0,c=u.length;h<c;++h)x=u[h],J(x)||tt(x)||(m=we(n,g.data,g.gc,m,x),b+=p)}else m=we(n,g.data,g.gc,m,u),b=p;o.push(m),r.push(b),y=Math.max(m,y),v=Math.max(b,v)}!function(t,e){at(t,(t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}}))}(s,e);const _=o.indexOf(y),w=r.indexOf(v),k=t=>({width:o[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(_),highest:k(w),widths:o,heights:r}}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 Wt(this._alignToPixels?Me(this.chart,e,0):e,-32768,32767)}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 i=e[t];return i.$context||(i.$context=function(t,e,i){return Ye(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=Ye(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=It(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,r=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*i>r*n?r/i:a/n:a*n<r*i?a/i:r/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:o,border:r}=n,a=s.offset,l=this.isHorizontal(),h=this.ticks.length+(a?1:0),c=rs(s),u=[],d=r.setContext(this.getContext()),f=d.display?d.width:0,g=f/2,p=function(t){return Me(i,t,f)};let m,b,x,y,v,_,w,k,M,S,T,D;if("top"===o)m=p(this.bottom),_=this.bottom-c,k=m-g,S=p(t.top)+g,D=t.bottom;else if("bottom"===o)m=p(this.top),S=t.top,D=p(t.bottom)-g,_=m+g,k=this.top+c;else if("left"===o)m=p(this.right),v=this.right-c,w=m-g,M=p(t.left)+g,T=t.right;else if("right"===o)m=p(this.left),M=t.left,T=p(t.right)-g,v=m+g,w=this.left+c;else if("x"===e){if("center"===o)m=p((t.top+t.bottom)/2+.5);else if(et(o)){const t=Object.keys(o)[0],e=o[t];m=p(this.chart.scales[t].getPixelForValue(e))}S=t.top,D=t.bottom,_=m+g,k=_+c}else if("y"===e){if("center"===o)m=p((t.left+t.right)/2);else if(et(o)){const t=Object.keys(o)[0],e=o[t];m=p(this.chart.scales[t].getPixelForValue(e))}v=m-g,w=v-c,M=t.left,T=t.right}const P=st(n.ticks.maxTicksLimit,h),C=Math.max(1,Math.ceil(h/P));for(b=0;b<h;b+=C){const t=this.getContext(b),e=s.setContext(t),n=r.setContext(t),o=e.lineWidth,h=e.color,c=n.dash||[],d=n.dashOffset,f=e.tickWidth,g=e.tickColor,p=e.tickBorderDash||[],m=e.tickBorderDashOffset;x=os(this,b,a),void 0!==x&&(y=Me(i,x,o),l?v=w=M=T=y:_=k=S=D=y,u.push({tx1:v,ty1:_,tx2:w,ty2:k,x1:M,y1:S,x2:T,y2:D,width:o,color:h,borderDash:c,borderDashOffset:d,tickWidth:f,tickColor:g,tickBorderDash:p,tickBorderDashOffset:m}))}return this._ticksLength=h,this._borderValue=m,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:n,ticks:s}=i,o=this.isHorizontal(),r=this.ticks,{align:a,crossAlign:l,padding:h,mirror:c}=s,u=rs(i.grid),d=u+h,f=c?-h:d,g=-It(this.labelRotation),p=[];let m,b,x,y,v,_,w,k,M,S,T,D,P="middle";if("top"===n)_=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===n)_=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,v=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,v=t.x}else if("x"===e){if("center"===n)_=(t.top+t.bottom)/2+d;else if(et(n)){const t=Object.keys(n)[0],e=n[t];_=this.chart.scales[t].getPixelForValue(e)+d}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)v=(t.left+t.right)/2-d;else if(et(n)){const t=Object.keys(n)[0],e=n[t];v=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?P="top":"end"===a&&(P="bottom"));const C=this._getLabelSizes();for(m=0,b=r.length;m<b;++m){x=r[m],y=x.label;const t=s.setContext(this.getContext(m));k=this.getPixelForTick(m)+s.labelOffset,M=this._resolveTickFontOptions(m),S=M.lineHeight,T=tt(y)?y.length:1;const e=T/2,i=t.color,a=t.textStrokeColor,h=t.textStrokeWidth;let u,d=w;if(o?(v=k,"inner"===w&&(d=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),D="top"===n?"near"===l||0!==g?-T*S+S/2:"center"===l?-C.highest.height/2-e*S+S:-C.highest.height+S/2:"near"===l||0!==g?S/2:"center"===l?C.highest.height/2-e*S:C.highest.height-T*S,c&&(D*=-1),0===g||t.showLabelBackdrop||(v+=S/2*Math.sin(g))):(_=k,D=(1-T)*S/2),t.showLabelBackdrop){const e=We(t.backdropPadding),i=C.heights[m],n=C.widths[m];let s=D-e.top,o=0-e.left;switch(P){case"middle":s-=i/2;break;case"bottom":s-=i}switch(w){case"center":o-=n/2;break;case"right":o-=n;break;case"inner":m===b-1?o-=n:m>0&&(o-=n/2)}u={left:o,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}p.push({label:y,font:M,textOffset:D,options:{rotation:g,color:i,strokeColor:a,strokeWidth:h,textAlign:d,textBaseline:P,translation:[v,_],backdrop:u}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-It(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+s,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+s,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l=this.right)):a="right",{textAlign:a,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:i,top:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s<o;++s){const t=n[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({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:i,grid:n}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,h,c,u;this.isHorizontal()?(l=Me(t,this.left,o)-o/2,h=Me(t,this.right,r)+r/2,c=u=a):(c=Me(t,this.top,o)-o/2,u=Me(t,this.bottom,r)+r/2,l=h=a),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(l,c),e.lineTo(h,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Ce(e,i);const n=this.getLabelItems(t);for(const t of n){const i=t.options,n=t.font;Ie(e,t.label,0,t.textOffset,n,i)}i&&Oe(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const s=je(i.font),o=We(i.padding),r=i.align;let a=s.lineHeight/2;"bottom"===e||"center"===e||et(e)?(a+=o.bottom,tt(i.text)&&(a+=s.lineHeight*(i.text.length-1))):a+=o.top;const{titleX:l,titleY:h,maxWidth:c,rotation:u}=function(t,e,i,n){const{top:s,left:o,bottom:r,right:a,chart:l}=t,{chartArea:h,scales:c}=l;let u,d,f,g=0;const p=r-s,m=a-o;if(t.isHorizontal()){if(d=te(n,o,a),et(i)){const t=Object.keys(i)[0],n=i[t];f=c[t].getPixelForValue(n)+p-e}else f="center"===i?(h.bottom+h.top)/2+p-e:is(t,i,e);u=a-o}else{if(et(i)){const t=Object.keys(i)[0],n=i[t];d=c[t].getPixelForValue(n)-m+e}else d="center"===i?(h.left+h.right)/2-m+e:is(t,i,e);f=te(n,r,s),g="left"===i?-Tt:Tt}return{titleX:d,titleY:f,maxWidth:u,rotation:g}}(this,a,e,r);Ie(t,i.text,0,0,s,{color:i.color,maxWidth:c,rotation:u,textAlign:ls(r,e,n),textBaseline:"middle",translation:[l,h]})}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,i=st(t.grid&&t.grid.z,-1),n=st(t.border&&t.border.z,0);return this._isVisible()&&this.draw===hs.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[i]!==this.id||t&&o.type!==t||n.push(o)}return n}_resolveTickFontOptions(t){return je(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class cs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,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 i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const n=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in n||(n[s]=t,function(t,e,i){const n=dt(Object.create(null),[i?_e.get(i):{},_e.get(e),t.defaults]);_e.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),r=e[i].split("."),a=r.pop(),l=r.join(".");_e.route(o,s,l,a)}))}(e,t.defaultRoutes),t.descriptors&&_e.describe(e,t.descriptors)}(t,o,i),this.override&&_e.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in _e[n]&&(delete _e[n][i],this.override&&delete me[i])}}class us{constructor(){this.controllers=new cs(Ji,"datasets",!0),this.elements=new cs(ts,"elements"),this.plugins=new cs(Object,"plugins"),this.scales=new cs(hs,"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,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):at(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const n=bt(t);rt(i["before"+n],[],i),e[t](i),rt(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}}var ds=new us;class fs{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin;if(!1===rt(t[i],[e,n,s.options],t)&&n.cancelable)return!1}return!0}invalidate(){J(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 i=t&&t.config,n=st(i.options&&i.options.plugins,{}),s=function(t){const e={},i=[],n=Object.keys(ds.plugins.items);for(let t=0;t<n.length;t++)i.push(ds.getPlugin(n[t]));const s=t.plugins||[];for(let t=0;t<s.length;t++){const n=s[t];-1===i.indexOf(n)&&(i.push(n),e[n.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==n||e?function(t,{plugins:e,localIds:i},n,s){const o=[],r=t.getContext();for(const a of e){const e=a.id,l=gs(n[e],s);null!==l&&o.push({plugin:a,options:ps(t.config,{plugin:a,local:i[e]},l,r)})}return o}(t,s,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function gs(t,e){return e||!1!==t?!0===t?{}:t:null}function ps(t,{plugin:e,local:i},n,s){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(n,o);return i&&e.defaults&&r.push(e.defaults),t.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ms(t,e){const i=_e.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function bs(t){if("x"===t||"y"===t||"r"===t)return t}function xs(t,...e){if(bs(t))return t;for(const n of e){const e=n.axis||("top"===(i=n.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&bs(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function ys(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function vs(t){const e=t.options||(t.options={});e.plugins=st(e.plugins,{}),e.scales=function(t,e){const i=me[t.type]||{scales:{}},n=e.scales||{},s=ms(t.type,e),o=Object.create(null);return Object.keys(n).forEach((e=>{const r=n[e];if(!et(r))return console.error(`Invalid scale configuration for scale: ${e}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=xs(e,r,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return ys(t,"x",i[0])||ys(t,"y",i[0])}return{}}(e,t),_e.scales[r.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,s),h=i.scales||{};o[e]=ft(Object.create(null),[{axis:a},r,h[a],h[l]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,r=i.indexAxis||ms(s,e),a=(me[s]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),s=i[e+"AxisID"]||e;o[s]=o[s]||Object.create(null),ft(o[s],[{axis:e},n[s],a[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];ft(e,[_e.scales[e.type],_e.scale])})),o}(t,e)}function _s(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ws=new Map,ks=new Set;function Ms(t,e){let i=ws.get(t);return i||(i=e(),ws.set(t,i),ks.add(i)),i}const Ss=(t,e,i)=>{const n=mt(e,i);void 0!==n&&t.add(n)};class Ts{constructor(t){this._config=function(t){return(t=t||{}).data=_s(t.data),vs(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=_s(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(),vs(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ms(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Ms(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Ms(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Ms(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),r=o.get(e);if(r)return r;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>Ss(a,t,e)))),e.forEach((t=>Ss(a,n,t))),e.forEach((t=>Ss(a,me[s]||{},t))),e.forEach((t=>Ss(a,_e,t))),e.forEach((t=>Ss(a,be,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),ks.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,me[e]||{},_e.datasets[e]||{},{type:e},_e,be]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=Ds(this._resolverCache,t,n);let a=o;(function(t,e){const{isScriptable:i,isIndexable:n}=Xe(t);for(const s of e){const e=i(s),o=n(s),r=(o||e)&&t[s];if(e&&(yt(r)||Ps(r))||o&&tt(r))return!0}return!1})(o,e)&&(s.$shared=!1,a=qe(o,i=yt(i)?i():i,this.createResolver(t,i,r)));for(const t of e)s[t]=a[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=Ds(this._resolverCache,t,i);return et(e)?qe(s,e,void 0,n):s}}function Ds(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);return o||(o={resolver:$e(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(s,o)),o}const Ps=t=>et(t)&&Object.getOwnPropertyNames(t).some((e=>yt(t[e]))),Cs=["top","bottom","left","right","chartArea"];function Os(t,e){return"top"===t||"bottom"===t||-1===Cs.indexOf(t)&&"x"===e}function As(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Ls(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),rt(i&&i.onComplete,[t],e)}function Es(t){const e=t.chart,i=e.options.animation;rt(i&&i.onProgress,[t],e)}function Rs(t){return fi()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Is={},Zs=t=>{const e=Rs(t);return Object.values(Is).filter((t=>t.canvas===e)).pop()};function Fs(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}function zs(t,e,i){return t.options.clip?t[i]:e[i]}class Ns{static register(...t){ds.add(...t),Hs()}static unregister(...t){ds.remove(...t),Hs()}constructor(t,e){const i=this.config=new Ts(e),n=Rs(t),s=Zs(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!fi()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Nn:Jn}(n)),this.platform.updateConfig(i);const r=this.platform.acquireContext(n,o.aspectRatio),a=r&&r.canvas,l=a&&a.height,h=a&&a.width;this.id=K(),this.ctx=r,this.canvas=a,this.width=h,this.height=l,this._options=o,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 fs,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Is[this.id]=this,r&&a?(Fi.listen(this,"complete",Ls),Fi.listen(this,"progress",Es),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:i,height:n,_aspectRatio:s}=this;return J(t)?e&&s?s:n?i/n: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 ds}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():_i(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Se(this.canvas,this.ctx),this}stop(){return Fi.stop(this),this}resize(t,e){Fi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,_i(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),rt(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){at(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const i=e[t],n=xs(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),at(s,(e=>{const s=e.options,o=s.id,r=xs(o,s),a=st(s.type,e.dtype);void 0!==s.position&&Os(s.position,r)===Os(e.dposition)||(s.position=e.dposition),n[o]=!0;let l=null;o in i&&i[o].type===a?l=i[o]:(l=new(ds.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(s,t)})),at(n,((t,e)=>{t||delete i[e]})),at(i,(t=>{Fn.configure(this,t,t.options),Fn.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(As("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i<n;i++){const n=e[i];let s=this.getDatasetMeta(i);const o=n.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=o,s.indexAxis=n.indexAxis||ms(o,this.options),s.order=n.order||0,s.index=i,s.label=""+n.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const e=ds.getController(o),{datasetElementType:n,dataElementType:r}=_e.datasets[o];Object.assign(e,{dataElementType:ds.getElement(r),datasetElementType:n&&ds.getElement(n)}),s.controller=new e(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){at(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 i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!n&&-1===s.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),n||at(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(As("z","_idx"));const{_active:r,_lastEvent:a}=this;a?this._eventHandler(a,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){at(this.scales,(t=>{Fn.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);vt(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e)Fs(t,n,"_removeElements"===i?-s:s)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;t<e;t++)if(!vt(n,i(t)))return;return Array.from(n).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;Fn.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],at(this.boxes,(t=>{i&&"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,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,yt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Fi.has(this)?this.attached&&!Fi.running(this)&&Fi.start(this):(this.draw(),Ls({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}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,i=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];t&&!s.visible||i.push(s)}return i}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,i=t._clip,n=!i.disabled,s=function(t,e){const{xScale:i,yScale:n}=t;return i&&n?{left:zs(i,e,"left"),right:zs(i,e,"right"),top:zs(n,e,"top"),bottom:zs(n,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(n&&Ce(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&Oe(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Pe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=Sn.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={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},i.push(n)),n}getContext(){return this.$context||(this.$context=Ye(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.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,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);xt(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update((e=>e.datasetIndex===t?n: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(),Fi.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(),Se(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Is[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,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};at(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){at(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},at(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!lt(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,o=e,r=this._getActiveElements(t,n,i,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,rt(s.onHover,[t,r,this],this),a&&rt(s.onClick,[t,r,this],this));const h=!lt(r,n);return(h||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}function Hs(){return at(Ns.instances,(t=>t._plugins.invalidate()))}function Vs(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function Bs(t,e,i,n,s,o){const{x:r,y:a,startAngle:l,pixelMargin:h,innerRadius:c}=e,u=Math.max(e.outerRadius+n+i-h,0),d=c>0?c+n+i+h:0;let f=0;const g=s-l;if(n){const t=((c>0?c-n:0)+(u>0?u-n:0))/2;f=(g-(0!==t?g*t/(t+n):g))/2}const p=(g-Math.max(.001,g*u-i/_t)/u)/2,m=l+p+f,b=s-p-f,{outerStart:x,outerEnd:y,innerStart:v,innerEnd:_}=function(t,e,i,n){const s=He(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,r=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return Wt(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:Wt(s.innerStart,0,r),innerEnd:Wt(s.innerEnd,0,r)}}(e,d,u,b-m),w=u-x,k=u-y,M=m+x/w,S=b-y/k,T=d+v,D=d+_,P=m+v/T,C=b-_/D;if(t.beginPath(),o){const e=(M+S)/2;if(t.arc(r,a,u,M,e),t.arc(r,a,u,e,S),y>0){const e=Vs(k,S,r,a);t.arc(e.x,e.y,y,S,b+Tt)}const i=Vs(D,b,r,a);if(t.lineTo(i.x,i.y),_>0){const e=Vs(D,C,r,a);t.arc(e.x,e.y,_,b+Tt,C+Math.PI)}const n=(b-_/d+(m+v/d))/2;if(t.arc(r,a,d,b-_/d,n,!0),t.arc(r,a,d,n,m+v/d,!0),v>0){const e=Vs(T,P,r,a);t.arc(e.x,e.y,v,P+Math.PI,m-Tt)}const s=Vs(w,m,r,a);if(t.lineTo(s.x,s.y),x>0){const e=Vs(w,M,r,a);t.arc(e.x,e.y,x,m-Tt,M)}}else{t.moveTo(r,a);const e=Math.cos(M)*u+r,i=Math.sin(M)*u+a;t.lineTo(e,i);const n=Math.cos(S)*u+r,s=Math.sin(S)*u+a;t.lineTo(n,s)}t.closePath()}(0,v.Z)(Ns,"defaults",_e),(0,v.Z)(Ns,"instances",Is),(0,v.Z)(Ns,"overrides",me),(0,v.Z)(Ns,"registry",ds),(0,v.Z)(Ns,"version","4.4.1"),(0,v.Z)(Ns,"getChart",Zs);class Ws extends ts{constructor(t){super(),(0,v.Z)(this,"circumference",void 0),(0,v.Z)(this,"endAngle",void 0),(0,v.Z)(this,"fullCircles",void 0),(0,v.Z)(this,"innerRadius",void 0),(0,v.Z)(this,"outerRadius",void 0),(0,v.Z)(this,"pixelMargin",void 0),(0,v.Z)(this,"startAngle",void 0),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,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=zt(n,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=(this.options.spacing+this.options.borderWidth)/2,d=st(c,a-r)>=wt||Bt(s,r,a),f=jt(o,l+u,h+u);return d&&f}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,h=(n+s)/2,c=(o+r+l+a)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>wt?Math.floor(i/wt):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const r=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(r)*n,Math.sin(r)*n);const a=n*(1-Math.sin(Math.min(_t,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let l=e.endAngle;if(o){Bs(t,e,i,n,l,s);for(let e=0;e<o;++e)t.fill();isNaN(a)||(l=r+(a%wt||wt))}Bs(t,e,i,n,l,s),t.fill()}(t,this,a,s,o),function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=e,{borderWidth:h,borderJoinStyle:c,borderDash:u,borderDashOffset:d}=l,f="inner"===l.borderAlign;if(!h)return;t.setLineDash(u||[]),t.lineDashOffset=d,f?(t.lineWidth=2*h,t.lineJoin=c||"round"):(t.lineWidth=h,t.lineJoin=c||"bevel");let g=e.endAngle;if(o){Bs(t,e,i,n,g,s);for(let e=0;e<o;++e)t.stroke();isNaN(a)||(g=r+(a%wt||wt))}f&&function(t,e,i){const{startAngle:n,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=e;let h=s/a;t.beginPath(),t.arc(o,r,a,n-h,i+h),l>s?(h=s/l,t.arc(o,r,l,i+h,n-h,!0)):t.arc(o,r,s,i+Tt,n-Tt),t.closePath(),t.clip()}(t,e,g),o||(Bs(t,e,i,n,g,s),t.stroke())}(t,this,a,s,o),t.restore()}}function js(t,e,i=e){t.lineCap=st(i.borderCapStyle,e.borderCapStyle),t.setLineDash(st(i.borderDash,e.borderDash)),t.lineDashOffset=st(i.borderDashOffset,e.borderDashOffset),t.lineJoin=st(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=st(i.borderWidth,e.borderWidth),t.strokeStyle=st(i.borderColor,e.borderColor)}function Us(t,e,i){t.lineTo(i.x,i.y)}function Ys(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),h=Math.min(o,a),c=s<r&&o<r||s>a&&o>a;return{count:n,start:l,loop:e.loop,ilen:h<l&&!c?n+h-l:h-l}}function $s(t,e,i,n){const{points:s,options:o}=e,{count:r,start:a,loop:l,ilen:h}=Ys(s,i,n),c=function(t){return t.stepped?Ae:t.tension||"monotone"===t.cubicInterpolationMode?Le:Us}(o);let u,d,f,{move:g=!0,reverse:p}=n||{};for(u=0;u<=h;++u)d=s[(a+(p?h-u:u))%r],d.skip||(g?(t.moveTo(d.x,d.y),g=!1):c(t,f,d,p,o.stepped),f=d);return l&&(d=s[(a+(p?h:0))%r],c(t,f,d,p,o.stepped)),!!l}function qs(t,e,i,n){const s=e.points,{count:o,start:r,ilen:a}=Ys(s,i,n),{move:l=!0,reverse:h}=n||{};let c,u,d,f,g,p,m=0,b=0;const x=t=>(r+(h?a-t:t))%o,y=()=>{f!==g&&(t.lineTo(m,g),t.lineTo(m,f),t.lineTo(m,p))};for(l&&(u=s[x(0)],t.moveTo(u.x,u.y)),c=0;c<=a;++c){if(u=s[x(c)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(i<f?f=i:i>g&&(g=i),m=(b*m+e)/++b):(y(),t.lineTo(e,i),d=n,b=0,f=g=i),p=i}y()}function Xs(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?$s:qs}(0,v.Z)(Ws,"id","arc"),(0,v.Z)(Ws,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),(0,v.Z)(Ws,"defaultRoutes",{backgroundColor:"backgroundColor"}),(0,v.Z)(Ws,"descriptors",{_scriptable:!0,_indexable:t=>"borderDash"!==t});const Gs="function"==typeof Path2D;class Qs extends ts{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 i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;di(this._points,i,t,n,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 i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);return function(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),o=Ri(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=i.length,h=[];let c=o,u=e[0].start,d=u;function f(t,e,n,s){const o=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:n,style:s}),c=s,u=e%l)}}for(const t of e){u=a?u:t.start;let e,o=i[u%l];for(d=u+1;d<=t.end;d++){const a=i[d%l];e=Ri(n.setContext(Ye(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),Ii(e,c)&&f(u,d-1,t.loop,c),o=a,c=e}u<d-1&&f(u,d-1,t.loop,c)}return h}(t,e,i,n):e}(t,!0===n?[{start:r,end:a,loop:o}]:function(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}(i,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),i,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,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,o=Ei(this,{property:e,start:n,end:n});if(!o.length)return;const r=[],a=function(t){return t.stepped?Si:t.tension||"monotone"===t.cubicInterpolationMode?Ti:Mi}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],u=s[h],d=s[c];if(u===d){r.push(u);continue}const f=a(u,d,Math.abs((n-u[e])/(d[e]-u[e])),i.stepped);f[e]=t[e],r.push(f)}return 1===r.length?r[0]:r}pathSegment(t,e,i){return Xs(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=Xs(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const r of n)o&=s(t,this,r,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),function(t,e,i,n){Gs&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),js(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,r=Xs(e);for(const a of s)js(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Ks(t,e,i,n){const s=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<s.radius+s.hitRadius}(0,v.Z)(Qs,"id","line"),(0,v.Z)(Qs,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),(0,v.Z)(Qs,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),(0,v.Z)(Qs,"descriptors",{_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t});class Js extends ts{constructor(t){super(),(0,v.Z)(this,"parsed",void 0),(0,v.Z)(this,"skip",void 0),(0,v.Z)(this,"stop",void 0),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return Ks(this,t,"x",e)}inYRange(t,e){return Ks(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Pe(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Te(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function to(t,e){const{x:i,y:n,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,h,c,u;return t.horizontal?(u=r/2,a=Math.min(i,s),l=Math.max(i,s),h=n-u,c=n+u):(u=o/2,a=i-u,l=i+u,h=Math.min(n,s),c=Math.max(n,s)),{left:a,top:h,right:l,bottom:c}}function eo(t,e,i,n){return t?0:Wt(e,i,n)}function io(t,e,i,n){const s=null===e,o=null===i,r=t&&!(s&&o)&&to(t,n);return r&&(s||jt(e,r.left,r.right))&&(o||jt(i,r.top,r.bottom))}function no(t,e){t.rect(e.x,e.y,e.w,e.h)}function so(t,e,i={}){const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,r=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}(0,v.Z)(Js,"id","point"),(0,v.Z)(Js,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),(0,v.Z)(Js,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class oo extends ts{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:i,backgroundColor:n}}=this,{inner:s,outer:o}=function(t){const e=to(t),i=e.right-e.left,n=e.bottom-e.top,s=function(t,e,i){const n=t.options.borderWidth,s=t.borderSkipped,o=Ve(n);return{t:eo(s.top,o.top,0,i),r:eo(s.right,o.right,0,e),b:eo(s.bottom,o.bottom,0,i),l:eo(s.left,o.left,0,e)}}(t,i/2,n/2),o=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=Be(s),r=Math.min(e,i),a=t.borderSkipped,l=n||et(s);return{topLeft:eo(!l||a.top||a.left,o.topLeft,0,r),topRight:eo(!l||a.top||a.right,o.topRight,0,r),bottomLeft:eo(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:eo(!l||a.bottom||a.right,o.bottomRight,0,r)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:i-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}(this),r=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?Ze:no;var a;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),r(t,so(o,e,s)),t.clip(),r(t,so(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),r(t,so(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return io(this,t,e,i)}inXRange(t,e){return io(this,t,null,e)}inYRange(t,e){return io(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function ro(t,e,i,n){if(n)return;let s=e[t],o=i[t];return"angle"===t&&(s=Vt(s),o=Vt(o)),{property:t,start:s,end:o}}function ao(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function lo(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function ho(t,e){let i=[],n=!1;return tt(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=ao(t,e,s);const r=s[t],a=s[e];null!==n?(o.push({x:r.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:r.y}),o.push({x:i,y:a.y}))})),o}(t,e),i.length?new Qs({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function co(t){return t&&!1!==t.fill}function uo(t,e,i){let n=t[e].fill;const s=[e];let o;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!it(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;s.push(n),n=o.fill}return!1}function fo(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=st(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(et(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return it(s)&&Math.floor(s)===s?function(t,e,i,n){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=n)&&i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function go(t,e,i){const n=[];for(let s=0;s<i.length;s++){const o=i[s],{first:r,last:a,point:l}=po(o,e,"x");if(!(!l||r&&a))if(r)n.unshift(l);else if(t.push(l),!a)break}t.push(...n)}function po(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const s=n[i],o=t.segments,r=t.points;let a=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],n=r[e.start][i],h=r[e.end][i];if(jt(s,n,h)){a=s===n,l=s===h;break}}return{first:a,last:l,point:n}}(0,v.Z)(oo,"id","bar"),(0,v.Z)(oo,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),(0,v.Z)(oo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class mo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:s,radius:o}=this;return e=e||{start:0,end:wt},t.arc(n,s,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,s=t.angle;return{x:e+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function bo(t,e,i){const n=function(t){const{chart:e,fill:i,line:n}=t;if(it(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,s=[],o=n.segments,r=n.points,a=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let t=0;t<n.length;t++){const s=n[t];if(s.index===e)break;s.hidden||i.unshift(s.dataset)}return i}(e,i);a.push(ho({x:null,y:e.bottom},n));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)go(s,r[t],a)}return new Qs({points:s,options:{}})}(t);if("shape"===i)return!0;const s=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,n=e.options,s=e.getLabels().length,o=n.reverse?e.max:e.min,r=function(t,e,i){let n;return n="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:et(t)?t.value:e.getBaseValue(),n}(i,e,o),a=[];if(n.grid.circular){const t=e.getPointPositionForValue(0,o);return new mo({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<s;++t)a.push(e.getPointPositionForValue(t,r));return a}(t):function(t){const{scale:e={},fill:i}=t,n=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:et(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(it(n)){const t=e.isHorizontal();return{x:t?n:null,y:t?null:n}}return null}(t)}(t);return s instanceof mo?s:ho(s,n)}(e),{line:s,scale:o,axis:r}=e,a=s.options,l=a.fill,h=a.backgroundColor,{above:c=h,below:u=h}=l||{};n&&s.points.length&&(Ce(t,i),function(t,e){const{line:i,target:n,above:s,below:o,area:r,scale:a}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==s&&(xo(t,n,r.top),yo(t,{line:i,target:n,color:s,scale:a,property:l}),t.restore(),t.save(),xo(t,n,r.bottom)),yo(t,{line:i,target:n,color:o,scale:a,property:l}),t.restore()}(t,{line:s,target:n,above:c,below:u,area:i,scale:o,axis:r}),Oe(t))}function xo(t,e,i){const{segments:n,points:s}=e;let o=!0,r=!1;t.beginPath();for(const a of n){const{start:n,end:l}=a,h=s[n],c=s[ao(n,l,s)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),r=!!e.pathSegment(t,a,{move:r}),r?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function yo(t,e){const{line:i,target:n,property:s,color:o,scale:r}=e,a=function(t,e,i){const n=t.segments,s=t.points,o=e.points,r=[];for(const t of n){let{start:n,end:a}=t;a=ao(n,a,s);const l=ro(i,s[n],s[a],t.loop);if(!e.segments){r.push({source:t,target:l,start:s[n],end:s[a]});continue}const h=Ei(e,l);for(const e of h){const n=ro(i,o[e.start],o[e.end],e.loop),a=Li(t,s,n);for(const t of a)r.push({source:t,target:e,start:{[i]:lo(l,n,"start",Math.max)},end:{[i]:lo(l,n,"end",Math.min)}})}}return r}(i,n,s);for(const{source:e,target:l,start:h,end:c}of a){const{style:{backgroundColor:a=o}={}}=e,u=!0!==n;t.save(),t.fillStyle=a,vo(t,r,u&&ro(s,h,c)),t.beginPath();const d=!!i.pathSegment(t,e);let f;if(u){d?t.closePath():_o(t,n,c,s);const e=!!n.pathSegment(t,l,{move:d,reverse:!0});f=d&&e,f||_o(t,n,h,s)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function vo(t,e,i){const{top:n,bottom:s}=e.chart.chartArea,{property:o,start:r,end:a}=i||{};"x"===o&&(t.beginPath(),t.rect(r,n,a-r,s-n),t.clip())}function _o(t,e,i,n){const s=e.interpolate(i,n);s&&t.lineTo(s.x,s.y)}var wo={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,s=[];let o,r,a,l;for(r=0;r<n;++r)o=t.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof Qs&&(l={visible:t.isDatasetVisible(r),index:r,fill:fo(a,r,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,s.push(l);for(r=0;r<n;++r)l=s[r],l&&!1!==l.fill&&(l.fill=uo(s,r,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&i.fill&&bo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;co(i)&&bo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;co(n)&&"beforeDatasetDraw"===i.drawTime&&bo(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const ko=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class Mo extends ts{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,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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=rt(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,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 i=t.labels,n=je(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:r,itemHeight:a}=ko(i,s);let l,h;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,s,r,a)+10):(h=this.maxHeight,l=this._fitCols(o,n,r,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],h=n+r;let c=t;s.textAlign="left",s.textBaseline="middle";let u=-1,d=-h;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+s.measureText(t.text).width;(0===f||l[l.length-1]+g+2*r>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,d+=h,u++),a[f]={left:0,top:d,row:u,width:g,height:n},l[l.length-1]+=g+r})),c}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=r,u=0,d=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:p,itemHeight:m}=function(t,e,i,n,s){const o=function(t,e,i,n){let s=t.text;return s&&"string"!=typeof s&&(s=s.reduce(((t,e)=>t.length>e.length?t:e))),e+i.size/2+n.measureText(s).width}(n,t,e,i),r=function(t,e,i){let n=t;return"string"!=typeof e.text&&(n=So(e,i)),n}(s,n,e.lineHeight);return{itemWidth:o,itemHeight:r}}(i,e,s,t,n);o>0&&d+m+2*r>h&&(c+=u+r,l.push({width:u,height:d}),f+=u+r,g++,u=d=0),a[o]={left:f,top:d,col:g,width:p,height:m},u=Math.max(u,p),d+=m+r})),c+=u,l.push({width:u,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,o=Di(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=te(i,this.left+n,this.right-this.lineWidths[s]);for(const a of e)s!==a.row&&(s=a.row,r=te(i,this.left+n,this.right-this.lineWidths[s])),a.top+=this.top+t+n,a.left=o.leftForLtr(o.x(r),a.width),r+=a.width+n}else{let s=0,r=te(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const a of e)a.col!==s&&(s=a.col,r=te(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),a.top=r,a.left+=this.left+n,a.left=o.leftForLtr(o.x(a.left),a.width),r+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ce(t,this),this._draw(),Oe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:o}=t,r=_e.color,a=Di(t.rtl,this.left,this.width),l=je(o.font),{padding:h}=o,c=l.size,u=c/2;let d;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:g,itemHeight:p}=ko(o,c),m=this.isHorizontal(),b=this._computeTitleHeight();d=m?{x:te(s,this.left+h,this.right-i[0]),y:this.top+h+b,line:0}:{x:this.left+h,y:te(s,this.top+b+h,this.bottom-e[0].height),line:0},Pi(this.ctx,t.textDirection);const x=p+h;this.legendItems.forEach(((y,v)=>{n.strokeStyle=y.fontColor,n.fillStyle=y.fontColor;const _=n.measureText(y.text).width,w=a.textAlign(y.textAlign||(y.textAlign=o.textAlign)),k=f+u+_;let M=d.x,S=d.y;if(a.setWidth(this.width),m?v>0&&M+k+h>this.right&&(S=d.y+=x,d.line++,M=d.x=te(s,this.left+h,this.right-i[d.line])):v>0&&S+x>this.bottom&&(M=d.x=M+e[d.line].width+h,d.line++,S=d.y=te(s,this.top+b+h,this.bottom-e[d.line].height)),function(t,e,i){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;n.save();const s=st(i.lineWidth,1);if(n.fillStyle=st(i.fillStyle,r),n.lineCap=st(i.lineCap,"butt"),n.lineDashOffset=st(i.lineDashOffset,0),n.lineJoin=st(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=st(i.strokeStyle,r),n.setLineDash(st(i.lineDash,[])),o.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},l=a.xPlus(t,f/2);De(n,r,l,e+u,o.pointStyleWidth&&f)}else{const o=e+Math.max((c-g)/2,0),r=a.leftForLtr(t,f),l=Be(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?Ze(n,{x:r,y:o,w:f,h:g,radius:l}):n.rect(r,o,f,g),n.fill(),0!==s&&n.stroke()}n.restore()}(a.x(M),S,y),M=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(w,M+f+u,m?M+k:this.right,t.rtl),function(t,e,i){Ie(n,i.text,t,e+p/2,l,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(M),S,y),m)d.x+=k+h;else if("string"!=typeof y.text){const t=l.lineHeight;d.y+=So(y,t)+h}else d.y+=x})),Ci(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=je(e.font),n=We(e.padding);if(!e.display)return;const s=Di(t.rtl,this.left,this.width),o=this.ctx,r=e.position,a=i.size/2,l=n.top+a;let h,c=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+l,c=te(t.align,c,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+te(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=te(r,c,c+u);o.textAlign=s.textAlign(Jt(r)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Ie(o,e.text,d,h,i)}_computeTitleHeight(){const t=this.options.title,e=je(t.font),i=We(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(jt(t,this.left,this.right)&&jt(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(n=s[i],jt(t,n.left,n.left+n.width)&&jt(e,n.top,n.top+n.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,r=(s=i,null!==(n=o)&&null!==s&&n.datasetIndex===s.datasetIndex&&n.index===s.index);o&&!r&&rt(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!r&&rt(e.onHover,[t,i,this],this)}else i&&rt(e.onClick,[t,i,this],this);var n,s}}function So(t,e){return e*(t.text?t.text.length:0)}var To={id:"legend",_element:Mo,start(t,e,i){const n=t.legend=new Mo({ctx:t.ctx,options:i,chart:t});Fn.configure(t,n,i),Fn.addBox(t,n)},stop(t){Fn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;Fn.configure(t,n,i),n.options=i},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,i){const n=e.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),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:i,pointStyle:n,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(i?0:void 0),h=We(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:r&&(a||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 Do extends ts{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 i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=tt(i.text)?i.text.length:1;this._padding=We(i.padding);const s=n*je(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:o}=this,r=o.align;let a,l,h,c=0;return this.isHorizontal()?(l=te(r,i,s),h=e+t,a=s-i):("left"===o.position?(l=i+t,h=te(r,n,e),c=-.5*_t):(l=s-t,h=te(r,e,n),c=.5*_t),a=n-e),{titleX:l,titleY:h,maxWidth:a,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=je(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:r,rotation:a}=this._drawArgs(n);Ie(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:a,textAlign:Jt(e.align),textBaseline:"middle",translation:[s,o]})}}const Po=new WeakMap;var Co={id:"subtitle",start(t,e,i){const n=new Do({ctx:t.ctx,options:i,chart:t});Fn.configure(t,n,i),Fn.addBox(t,n),Po.set(t,n)},stop(t){Fn.removeBox(t,Po.get(t)),Po.delete(t)},beforeUpdate(t,e,i){const n=Po.get(t);Fn.configure(t,n,i),n.options=i},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 Oo={average(t){if(!t.length)return!1;let e,i,n=0,s=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,s+=t.y,++o}}return{x:n/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=Nt(e,n.getCenterPoint());t<a&&(a=t,s=n)}}if(s){const t=s.tooltipPosition();o=t.x,r=t.y}return{x:o,y:r}}};function Ao(t,e){return e&&(tt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Lo(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Eo(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function Ro(t,e){const i=t.chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=je(e.bodyFont),h=je(e.titleFont),c=je(e.footerFont),u=o.length,d=s.length,f=n.length,g=We(e.padding);let p=g.height,m=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b&&(p+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing),d&&(p+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=h.string,at(t.title,y),i.font=l.string,at(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,at(n,(t=>{at(t.before,y),at(t.lines,y),at(t.after,y)})),x=0,i.font=c.string,at(t.footer,y),i.restore(),m+=g.width,{width:m,height:p}}function Io(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let h="center";return"center"===n?h=s<=(a+l)/2?"left":"right":s<=o/2?h="left":s>=r-o/2&&(h="right"),function(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(h,t,e,i)&&(h="center"),h}function Zo(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Io(t,e,i,n),yAlign:n}}function Fo(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=i,h=s+o,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=Be(r);let g=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const p=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,l,h);return"center"===l?"left"===a?g+=h:"right"===a&&(g-=h):"left"===a?g-=Math.max(c,d)+s:"right"===a&&(g+=Math.max(u,f)+s),{x:Wt(g,0,n.width-e.width),y:Wt(p,0,n.height-e.height)}}function zo(t,e,i){const n=We(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function No(t){return Ao([],Lo(t))}function Ho(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Vo={beforeTitle:Q,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:Q,beforeBody:Q,beforeLabel:Q,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 i=t.formattedValue;return J(i)||(e+=i),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:Q,afterBody:Q,beforeFooter:Q,footer:Q,afterFooter:Q};function Bo(t,e,i,n){const s=t[e].call(i,n);return void 0===s?Vo[e].call(i,n):s}class Wo extends ts{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,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new Vi(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(this,Ye(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,n=Bo(i,"beforeTitle",this,t),s=Bo(i,"title",this,t),o=Bo(i,"afterTitle",this,t);let r=[];return r=Ao(r,Lo(n)),r=Ao(r,Lo(s)),r=Ao(r,Lo(o)),r}getBeforeBody(t,e){return No(Bo(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,n=[];return at(t,(t=>{const e={before:[],lines:[],after:[]},s=Ho(i,t);Ao(e.before,Lo(Bo(s,"beforeLabel",this,t))),Ao(e.lines,Bo(s,"label",this,t)),Ao(e.after,Lo(Bo(s,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return No(Bo(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=Bo(i,"beforeFooter",this,t),s=Bo(i,"footer",this,t),o=Bo(i,"afterFooter",this,t);let r=[];return r=Ao(r,Lo(n)),r=Ao(r,Lo(s)),r=Ao(r,Lo(o)),r}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;r<a;++r)l.push(Eo(this.chart,e[r]));return t.filter&&(l=l.filter(((e,n,s)=>t.filter(e,n,s,i)))),t.itemSort&&(l=l.sort(((e,n)=>t.itemSort(e,n,i)))),at(l,(e=>{const i=Ho(t.callbacks,e);n.push(Bo(i,"labelColor",this,e)),s.push(Bo(i,"labelPointStyle",this,e)),o.push(Bo(i,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=Oo[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Ro(this,i),r=Object.assign({},t,e),a=Zo(this.chart,i,r),l=Fo(i,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:r}=i,{topLeft:a,topRight:l,bottomLeft:h,bottomRight:c}=Be(r),{x:u,y:d}=t,{width:f,height:g}=e;let p,m,b,x,y,v;return"center"===s?(y=d+g/2,"left"===n?(p=u,m=p-o,x=y+o,v=y-o):(p=u+f,m=p+o,x=y-o,v=y+o),b=p):(m="left"===n?u+Math.max(a,h)+o:"right"===n?u+f-Math.max(l,c)-o:this.caretX,"top"===s?(x=d,y=x-o,p=m-o,b=m+o):(x=d+g,y=x+o,p=m+o,b=m-o),v=x),{x1:p,x2:m,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,r,a;if(s){const l=Di(i.rtl,this.x,this.width);for(t.x=zo(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=je(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a<s;++a)e.fillText(n[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,a+1===s&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,e,i,n,s){const o=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:a,boxWidth:l}=s,h=je(s.bodyFont),c=zo(this,"left",s),u=n.x(c),d=a<h.lineHeight?(h.lineHeight-a)/2:0,f=e.y+d;if(s.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=n.leftForLtr(u,l)+l/2,h=f+a/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Te(t,e,i,h),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Te(t,e,i,h)}else{t.lineWidth=et(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=n.leftForLtr(u,l),i=n.leftForLtr(n.xPlus(u,1),l-2),r=Be(o.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Ze(t,{x:e,y:f,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Ze(t,{x:i,y:f+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,f,l,a),t.strokeRect(e,f,l,a),t.fillStyle=o.backgroundColor,t.fillRect(i,f+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:h}=i,c=je(i.bodyFont);let u=c.lineHeight,d=0;const f=Di(i.rtl,this.x,this.width),g=function(i){e.fillText(i,f.x(t.x+d),t.y+u/2),t.y+=u+s},p=f.textAlign(o);let m,b,x,y,v,_,w;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=zo(this,p,i),e.fillStyle=i.bodyColor,at(this.beforeBody,g),d=r&&"right"!==p?"center"===o?l/2+h:l+2+h:0,y=0,_=n.length;y<_;++y){for(m=n[y],b=this.labelTextColors[y],e.fillStyle=b,at(m.before,g),x=m.lines,r&&x.length&&(this._drawColorBox(e,t,y,f,i),u=Math.max(c.lineHeight,a)),v=0,w=x.length;v<w;++v)g(x[v]),u=c.lineHeight;at(m.after,g)}d=0,u=c.lineHeight,at(this.afterBody,g),t.y-=s}drawFooter(t,e,i){const n=this.footer,s=n.length;let o,r;if(s){const a=Di(i.rtl,this.x,this.width);for(t.x=zo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",o=je(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,r=0;r<s;++r)e.fillText(n[r],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:s,yAlign:o}=this,{x:r,y:a}=t,{width:l,height:h}=i,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=Be(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(r+c,a),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+l-u,a),e.quadraticCurveTo(r+l,a,r+l,a+u),"center"===o&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(r+l,a+h-f),e.quadraticCurveTo(r+l,a+h,r+l-f,a+h),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+d,a+h),e.quadraticCurveTo(r,a+h,r,a+h-d),"center"===o&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(r,a+c),e.quadraticCurveTo(r,a,r+c,a),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=Oo[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Ro(this,t),r=Object.assign({},i,this._size),a=Zo(e,t,r),l=Fo(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=We(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),Pi(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),Ci(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),s=!lt(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),r=this._positionChanged(o,t),a=e||!lt(o,s)||r;return a&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=Oo[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}(0,v.Z)(Wo,"positioners",Oo);var jo={id:"tooltip",_element:Wo,positioners:Oo,afterInit(t,e,i){i&&(t.tooltip=new Wo({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:Vo},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"]};function Uo(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Yo extends hs{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:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(J(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:Wt(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,i,n){const s=t.indexOf(e);return-1===s?((t,e,i,n)=>("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n):s!==t.lastIndexOf(e)?i:s}(i,t,st(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){return Uo.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}}function $o(t,e,{horizontal:i,minRotation:n}){const s=It(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}(0,v.Z)(Yo,"id","category"),(0,v.Z)(Yo,"defaults",{ticks:{callback:Uo}});class qo extends hs{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 J(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=Ot(n),e=Ot(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(n===s){let e=0===s?1:Math.abs(.05*s);r(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:s,min:o,max:r,precision:a,count:l,maxTicks:h,maxDigits:c,includeBounds:u}=t,d=s||1,f=h-1,{min:g,max:p}=e,m=!J(o),b=!J(r),x=!J(l),y=(p-g)/(c+1);let v,_,w,k,M=Lt((p-g)/f/d)*d;if(M<1e-14&&!m&&!b)return[{value:g},{value:p}];k=Math.ceil(p/M)-Math.floor(g/M),k>f&&(M=Lt(k*M/f/d)*d),J(a)||(v=Math.pow(10,a),M=Math.ceil(M*v)/v),"ticks"===n?(_=Math.floor(g/M)*M,w=Math.ceil(p/M)*M):(_=g,w=p),m&&b&&s&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-o)/s,M/1e3)?(k=Math.round(Math.min((r-o)/M,h)),M=(r-o)/k,_=o,w=r):x?(_=m?o:_,w=b?r:w,k=l-1,M=(w-_)/k):(k=(w-_)/M,k=At(k,Math.round(k),M/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(Ft(M),Ft(_));v=Math.pow(10,J(a)?S:a),_=Math.round(_*v)/v,w=Math.round(w*v)/v;let T=0;for(m&&(u&&_!==o?(i.push({value:o}),_<o&&T++,At(Math.round((_+T*M)*v)/v,o,$o(o,y,t))&&T++):_<o&&T++);T<k;++T){const t=Math.round((_+T*M)*v)/v;if(b&&t>r)break;i.push({value:t})}return b&&u&&w!==r?i.length&&At(i[i.length-1].value,r,$o(r,y,t))?i[i.length-1].value=r:i.push({value:r}):b&&w!==r||i.push({value:w}),i}({maxTicks:i,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&&Rt(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return fe(t,this.chart.options.locale,this.options.ticks.format)}}class Xo extends qo{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=it(t)?t:0,this.max=it(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=It(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}(0,v.Z)(Xo,"id","linear"),(0,v.Z)(Xo,"defaults",{ticks:{callback:pe.formatters.numeric}});const Go=t=>Math.floor(Ct(t)),Qo=(t,e)=>Math.pow(10,Go(t)+e);function Ko(t){return 1==t/Math.pow(10,Go(t))}function Jo(t,e,i){const n=Math.pow(10,i),s=Math.floor(t/n);return Math.ceil(e/n)-s}class tr extends hs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=qo.prototype.parse.apply(this,[t,e]);if(0!==i)return it(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=it(t)?Math.max(0,t):null,this.max=it(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!it(this._userMin)&&(this.min=t===Qo(this.min,0)?Qo(this.min,-1):Qo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t;i===n&&(i<=0?(s(1),o(10)):(s(Qo(i,-1)),o(Qo(n,1)))),i<=0&&s(Qo(n,-1)),n<=0&&o(Qo(i,1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,{min:e,max:i}){e=nt(t.min,e);const n=[],s=Go(e);let o=function(t,e){let i=Go(e-t);for(;Jo(t,e,i)>10;)i++;for(;Jo(t,e,i)<10;)i--;return Math.min(i,Go(t))}(e,i),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=s>o?Math.pow(10,s):0,h=Math.round((e-l)*r)/r,c=Math.floor((e-l)/a/10)*a*10;let u=Math.floor((h-c)/Math.pow(10,o)),d=nt(t.min,Math.round((l+c+u*Math.pow(10,o))*r)/r);for(;d<i;)n.push({value:d,major:Ko(d),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(o++,u=2,r=o>=0?1:r),d=Math.round((l+c+u*Math.pow(10,o))*r)/r;const f=nt(t.max,d);return n.push({value:f,major:Ko(f),significand:u}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Rt(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":fe(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ct(t),this._valueRange=Ct(this.max)-Ct(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ct(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function er(t){const e=t.ticks;if(e.display&&t.display){const t=We(e.backdropPadding);return st(e.font&&e.font.size,_e.font.size)+t.height}return 0}function ir(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}function nr(t,e,i,n,s){const o=Math.abs(Math.sin(i)),r=Math.abs(Math.cos(i));let a=0,l=0;n.start<e.l?(a=(e.l-n.start)/o,t.l=Math.min(t.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(l=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function sr(t,e,i){const n=t.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=i,l=t.getPointPosition(e,n+s+r,o),h=Math.round(Zt(Vt(l.angle+Tt))),c=function(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}(l.y,a.h,h),u=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(h),d=(f=l.x,g=a.w,"right"===(p=u)?f-=g:"center"===p&&(f-=g/2),f);var f,g,p;return{visible:!0,x:l.x,y:c,textAlign:u,left:d,top:c,right:d+a.w,bottom:c+a.h}}function or(t,e){if(!e)return!0;const{left:i,top:n,right:s,bottom:o}=t;return!(Pe({x:i,y:n},e)||Pe({x:i,y:o},e)||Pe({x:s,y:n},e)||Pe({x:s,y:o},e))}function rr(t,e,i){const{left:n,top:s,right:o,bottom:r}=i,{backdropColor:a}=e;if(!J(a)){const i=Be(e.borderRadius),l=We(e.backdropPadding);t.fillStyle=a;const h=n-l.left,c=s-l.top,u=o-n+l.width,d=r-s+l.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),Ze(t,{x:h,y:c,w:u,h:d,radius:i}),t.fill()):t.fillRect(h,c,u,d)}}function ar(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,wt);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o<n;o++)i=t.getPointPosition(o,e),s.lineTo(i.x,i.y)}}(0,v.Z)(tr,"id","logarithmic"),(0,v.Z)(tr,"defaults",{ticks:{callback:pe.formatters.logarithmic,major:{enabled:!0}}});class lr extends qo{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=We(er(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=it(t)&&!isNaN(t)?t:0,this.max=it(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/er(this.options))}generateTickLabels(t){qo.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=rt(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(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},i=Object.assign({},e),n=[],s=[],o=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?_t/o:0;for(let u=0;u<o;u++){const o=r.setContext(t.getPointLabelContext(u));s[u]=o.padding;const d=t.getPointPosition(u,t.drawingArea+s[u],a),f=je(o.font),g=(l=t.ctx,h=f,c=tt(c=t._pointLabels[u])?c:[c],{w:ke(l,h.string,c),h:c.length*h.lineHeight});n[u]=g;const p=Vt(t.getIndexAngle(u)+a),m=Math.round(Zt(p));nr(i,e,p,ir(m,d.x,g.w,0,180),ir(m,d.y,g.h,90,270))}var l,h,c;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const n=[],s=t._pointLabels.length,o=t.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:er(o)/2,additionalAngle:r?_t/s:0};let h;for(let o=0;o<s;o++){l.padding=i[o],l.size=e[o];const s=sr(t,o,l);n.push(s),"auto"===a&&(s.visible=or(s,h),s.visible&&(h=s))}return n}(t,n,s)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return Vt(t*(wt/(this._pointLabels.length||1))+It(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(J(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(J(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 i=e[t];return function(t,e,i){return Ye(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const n=this.getIndexAngle(t)-Tt+i;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}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:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),ar(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n,border:s}=e,o=this._pointLabels.length;let r,a,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){const e=t._pointLabelItems[s];if(!e.visible)continue;const o=n.setContext(t.getPointLabelContext(s));rr(i,o,e);const r=je(o.font),{x:a,y:l,textAlign:h}=e;Ie(i,t._pointLabels[s],a,l+r.lineHeight/2,r,{color:o.color,textAlign:h,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),r=n.setContext(i),l=s.setContext(i);!function(t,e,i,n,s){const o=t.ctx,r=e.circular,{color:a,lineWidth:l}=e;!r&&!n||!a||!l||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(s.dash),o.lineDashOffset=s.dashOffset,o.beginPath(),ar(t,i,r,n),o.closePath(),o.stroke(),o.restore())}(this,r,a,o,l)}})),i.display){for(t.save(),r=o-1;r>=0;r--){const n=i.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=n;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),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,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const a=i.setContext(this.getContext(r)),l=je(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=We(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}Ie(t,n.label,0,-s,l,{color:a.color,strokeColor:a.textStrokeColor,strokeWidth:a.textStrokeWidth})})),t.restore()}drawTitle(){}}(0,v.Z)(lr,"id","radialLinear"),(0,v.Z)(lr,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:pe.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),(0,v.Z)(lr,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),(0,v.Z)(lr,"descriptors",{angleLines:{_fallback:"grid"}});const hr={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}},cr=Object.keys(hr);function ur(t,e){return t-e}function dr(t,e){if(J(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof n&&(r=n(r)),it(r)||(r="string"==typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!Et(o)&&!0!==o?i.startOf(r,s):i.startOf(r,"isoWeek",o)),+r)}function fr(t,e,i,n){const s=cr.length;for(let o=cr.indexOf(t);o<s-1;++o){const t=hr[cr[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return cr[o]}return cr[s-1]}function gr(t,e,i){if(i){if(i.length){const{lo:n,hi:s}=Ut(i,e);t[i[n]>=e?i[n]:i[s]]=!0}}else t[e]=!0}function pr(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,n.push({value:a,major:!1});return 0!==o&&i?function(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}(t,n,s,i):n}class mr extends hs{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 i=t.time||(t.time={}),n=this._adapter=new yn._date(t.adapters.date);n.init(e),ft(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:dr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=it(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=it(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=function(t,e,i){let n=0,s=t.length;for(;n<s&&t[n]<e;)n++;for(;s>n&&t[s-1]>i;)s--;return n>0||s<t.length?t.slice(n,s):t}(n,s,this.max);return this._unit=e.unit||(i.autoSkip?fr(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,n,s){for(let o=cr.length-1;o>=cr.indexOf(i);o--){const i=cr[o];if(hr[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return cr[i?cr.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=cr.indexOf(t)+1,i=cr.length;e<i;++e)if(hr[cr[e]].common)return cr[e]}(this._unit):void 0,this.initOffsets(n),t.reverse&&o.reverse(),pr(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Wt(n,0,o),s=Wt(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||fr(s.minUnit,e,i,this._getLabelCapacity(e)),r=st(n.ticks.stepSize,1),a="week"===o&&s.isoWeekday,l=Et(a)||!0===a,h={};let c,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":o),t.diff(i,e,o)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+o);const f="data"===n.ticks.source&&this.getDataTimestamps();for(c=d,u=0;c<i;c=+t.add(c,r,o),u++)gr(h,c,f);return c!==i&&"ticks"!==n.bounds&&1!==u||gr(h,c,f),Object.keys(h).sort(ur).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,n=this._unit,s=e||i[n];return this._adapter.format(t,s)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.ticks.callback;if(o)return rt(o,[t,e,i],this);const r=s.time.displayFormats,a=this._unit,l=this._majorUnit,h=a&&r[a],c=l&&r[l],u=i[e],d=l&&c&&u&&u.major;return this._adapter.format(t,n||(d?c:h))}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,n=It(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),o=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:i*s+r*o,h:i*o+r*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,pr(this,[t],this._majorUnit),n),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(dr(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Gt(t.sort(ur))}}function br(t,e,i){let n,s,o,r,a=0,l=t.length-1;i?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=Yt(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=Yt(t,"time",e)),({time:n,pos:o}=t[a]),({time:s,pos:r}=t[l]));const h=s-n;return h?o+(r-o)*(e-n)/h:o}(0,v.Z)(mr,"id","time"),(0,v.Z)(mr,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class xr extends mr{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=br(e,this.min),this._tableRange=br(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,h;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;o<r;++o)h=n[o+1],a=n[o-1],l=n[o],Math.round((h+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(br(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return br(this._table,i*this._tableRange+this._minPos,!0)}}(0,v.Z)(xr,"id","timeseries"),(0,v.Z)(xr,"defaults",mr.defaults);var yr=i(4265),vr=i(1311);function _r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function wr(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return _r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return r=t.done,t},e:function(t){a=!0,o=t},f:function(){try{r||null==i.return||i.return()}finally{if(a)throw o}}}}var kr=i(7808),Mr=i(9071);function Sr(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}var Tr=i(5010),Dr=i(7500),Pr=i(845),Cr=i(506),Or=i(8755);function Ar(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lr(t,e){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lr(t,e)}function Er(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lr(t,e)}function Rr(t){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rr(t)}function Ir(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ir=function(){return!!t})()}function Zr(t,e){if(e&&("object"===(0,vr.Z)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ar(t)}function Fr(t){var e=Ir();return function(){var i,n=Rr(t);if(e){var s=Rr(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return Zr(this,i)}}function zr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Nr=i(9266);function Hr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(0,Nr.Z)(n.key),n)}}function Vr(t,e,i){return e&&Hr(t.prototype,e),i&&Hr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var Br=function(){function t(){zr(this,t),(0,v.Z)(this,"priority",void 0),(0,v.Z)(this,"subPriority",0)}return Vr(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),Wr=function(t){Er(i,t);var e=Fr(i);function i(t,n,s,o,r){var a;return zr(this,i),(a=e.call(this)).value=t,a.validateValue=n,a.setValue=s,a.priority=o,r&&(a.subPriority=r),a}return Vr(i,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),i}(Br),jr=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",10),(0,v.Z)(Ar(t),"subPriority",-1),t}return Vr(i,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),i}(Br),Ur=function(){function t(){zr(this,t),(0,v.Z)(this,"incompatibleTokens",void 0),(0,v.Z)(this,"priority",void 0),(0,v.Z)(this,"subPriority",void 0)}return Vr(t,[{key:"run",value:function(t,e,i,n){var s=this.parse(t,e,i,n);return s?{setter:new Wr(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(t,e,i){return!0}}]),t}(),Yr=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",140),(0,v.Z)(Ar(t),"incompatibleTokens",["R","u","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),$r=i(6896),qr=/^(1[0-2]|0?\d)/,Xr=/^(3[0-1]|[0-2]?\d)/,Gr=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Qr=/^(5[0-3]|[0-4]?\d)/,Kr=/^(2[0-3]|[0-1]?\d)/,Jr=/^(2[0-4]|[0-1]?\d)/,ta=/^(1[0-1]|0?\d)/,ea=/^(1[0-2]|0?\d)/,ia=/^[0-5]?\d/,na=/^[0-5]?\d/,sa=/^\d/,oa=/^\d{1,2}/,ra=/^\d{1,3}/,aa=/^\d{1,4}/,la=/^-?\d+/,ha=/^-?\d/,ca=/^-?\d{1,2}/,ua=/^-?\d{1,3}/,da=/^-?\d{1,4}/,fa=/^([+-])(\d{2})(\d{2})?|Z/,ga=/^([+-])(\d{2})(\d{2})|Z/,pa=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ma=/^([+-])(\d{2}):(\d{2})|Z/,ba=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function xa(t,e){return t?{value:e(t.value),rest:t.rest}:t}function ya(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function va(t,e){var i=e.match(t);if(!i)return null;if("Z"===i[0])return{value:0,rest:e.slice(1)};var n="+"===i[1]?1:-1,s=i[2]?parseInt(i[2],10):0,o=i[3]?parseInt(i[3],10):0,r=i[5]?parseInt(i[5],10):0;return{value:n*(s*$r.vh+o*$r.yJ+r*$r.qk),rest:e.slice(i[0].length)}}function _a(t){return ya(la,t)}function wa(t,e){switch(t){case 1:return ya(sa,e);case 2:return ya(oa,e);case 3:return ya(ra,e);case 4:return ya(aa,e);default:return ya(new RegExp("^\\d{1,"+t+"}"),e)}}function ka(t,e){switch(t){case 1:return ya(ha,e);case 2:return ya(ca,e);case 3:return ya(ua,e);case 4:return ya(da,e);default:return ya(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Ma(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Sa(t,e){var i,n=e>0,s=n?e:1-e;if(s<=50)i=t||100;else{var o=s+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?i:1-i}function Ta(t){return t%400==0||t%4==0&&t%100!=0}var Da=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",130),(0,v.Z)(Ar(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return xa(wa(4,t),n);case"yo":return xa(i.ordinalNumber(t,{unit:"year"}),n);default:return xa(wa(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var n=t.getUTCFullYear();if(i.isTwoDigitYear){var s=Sa(i.year,n);return t.setUTCFullYear(s,0,1),t.setUTCHours(0,0,0,0),t}var o="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Pa=i(4590),Ca=i(7760),Oa=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",130),(0,v.Z)(Ar(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return xa(wa(4,t),n);case"Yo":return xa(i.ordinalNumber(t,{unit:"year"}),n);default:return xa(wa(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,n){var s=(0,Pa.Z)(t,n);if(i.isTwoDigitYear){var o=Sa(i.year,s);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),(0,Ca.Z)(t,n)}var r="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(r,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),(0,Ca.Z)(t,n)}}]),i}(Ur),Aa=i(7906),La=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",130),(0,v.Z)(Ar(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e){return ka("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var n=new Date(0);return n.setUTCFullYear(i,0,4),n.setUTCHours(0,0,0,0),(0,Aa.Z)(n)}}]),i}(Ur),Ea=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",130),(0,v.Z)(Ar(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e){return ka("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Ra=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",120),(0,v.Z)(Ar(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return wa(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Ia=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",120),(0,v.Z)(Ar(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return wa(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Za=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,v.Z)(Ar(t),"priority",110),t}return Vr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return t-1};switch(e){case"M":return xa(ya(qr,t),n);case"MM":return xa(wa(2,t),n);case"Mo":return xa(i.ordinalNumber(t,{unit:"month"}),n);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Fa=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",110),(0,v.Z)(Ar(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return t-1};switch(e){case"L":return xa(ya(qr,t),n);case"LL":return xa(wa(2,t),n);case"Lo":return xa(i.ordinalNumber(t,{unit:"month"}),n);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),za=i(4710),Na=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",100),(0,v.Z)(Ar(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"w":return ya(Qr,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,n){return(0,Ca.Z)(function(t,e,i){(0,Or.Z)(2,arguments);var n=(0,yr.Z)(t),s=(0,Cr.Z)(e),o=(0,za.Z)(n,i)-s;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,i,n),n)}}]),i}(Ur),Ha=i(1047),Va=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",100),(0,v.Z)(Ar(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"I":return ya(Qr,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return(0,Aa.Z)(function(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,Cr.Z)(e),s=(0,Ha.Z)(i)-n;return i.setUTCDate(i.getUTCDate()-7*s),i}(t,i))}}]),i}(Ur),Ba=[31,28,31,30,31,30,31,31,30,31,30,31],Wa=[31,29,31,30,31,30,31,31,30,31,30,31],ja=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",90),(0,v.Z)(Ar(t),"subPriority",1),(0,v.Z)(Ar(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"d":return ya(Xr,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){var i=Ta(t.getUTCFullYear()),n=t.getUTCMonth();return i?e>=1&&e<=Wa[n]:e>=1&&e<=Ba[n]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Ua=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",90),(0,v.Z)(Ar(t),"subpriority",1),(0,v.Z)(Ar(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return ya(Gr,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return Ta(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Ya=i(4072);function $a(t,e,i){var n,s,o,r,a,l,h,c;(0,Or.Z)(2,arguments);var u=(0,Ya.j)(),d=(0,Cr.Z)(null!==(n=null!==(s=null!==(o=null!==(r=null==i?void 0:i.weekStartsOn)&&void 0!==r?r:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==s?s:null===(h=u.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=(0,yr.Z)(t),g=(0,Cr.Z)(e),p=f.getUTCDay(),m=g%7,b=(m+7)%7,x=(b<d?7:0)+g-p;return f.setUTCDate(f.getUTCDate()+x),f}var qa=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",90),(0,v.Z)(Ar(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,n){return(t=$a(t,i,n)).setUTCHours(0,0,0,0),t}}]),i}(Ur),Xa=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",90),(0,v.Z)(Ar(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i,n){var s=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return xa(wa(e.length,t),s);case"eo":return xa(i.ordinalNumber(t,{unit:"day"}),s);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,n){return(t=$a(t,i,n)).setUTCHours(0,0,0,0),t}}]),i}(Ur),Ga=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",90),(0,v.Z)(Ar(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i,n){var s=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return xa(wa(e.length,t),s);case"co":return xa(i.ordinalNumber(t,{unit:"day"}),s);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,n){return(t=$a(t,i,n)).setUTCHours(0,0,0,0),t}}]),i}(Ur),Qa=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",90),(0,v.Z)(Ar(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return wa(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return xa(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return xa(i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return xa(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);default:return xa(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){(0,Or.Z)(2,arguments);var i=(0,Cr.Z)(e);i%7==0&&(i-=7);var n=1,s=(0,yr.Z)(t),o=s.getUTCDay(),r=((i%7+7)%7<n?7:0)+i-o;return s.setUTCDate(s.getUTCDate()+r),s}(t,i),t.setUTCHours(0,0,0,0),t}}]),i}(Ur),Ka=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",80),(0,v.Z)(Ar(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Ma(i),0,0,0),t}}]),i}(Ur),Ja=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",80),(0,v.Z)(Ar(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Ma(i),0,0,0),t}}]),i}(Ur),tl=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",80),(0,v.Z)(Ar(t),"incompatibleTokens",["a","b","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Ma(i),0,0,0),t}}]),i}(Ur),el=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",70),(0,v.Z)(Ar(t),"incompatibleTokens",["H","K","k","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"h":return ya(ea,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var n=t.getUTCHours()>=12;return n&&i<12?t.setUTCHours(i+12,0,0,0):n||12!==i?t.setUTCHours(i,0,0,0):t.setUTCHours(0,0,0,0),t}}]),i}(Ur),il=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",70),(0,v.Z)(Ar(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"H":return ya(Kr,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),i}(Ur),nl=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",70),(0,v.Z)(Ar(t),"incompatibleTokens",["h","H","k","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"K":return ya(ta,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.getUTCHours()>=12&&i<12?t.setUTCHours(i+12,0,0,0):t.setUTCHours(i,0,0,0),t}}]),i}(Ur),sl=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",70),(0,v.Z)(Ar(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"k":return ya(Jr,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){var n=i<=24?i%24:i;return t.setUTCHours(n,0,0,0),t}}]),i}(Ur),ol=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",60),(0,v.Z)(Ar(t),"incompatibleTokens",["t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"m":return ya(ia,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),i}(Ur),rl=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",50),(0,v.Z)(Ar(t),"incompatibleTokens",["t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e,i){switch(e){case"s":return ya(na,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return wa(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),i}(Ur),al=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",30),(0,v.Z)(Ar(t),"incompatibleTokens",["t","T"]),t}return Vr(i,[{key:"parse",value:function(t,e){return xa(wa(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),i}(Ur),ll=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",10),(0,v.Z)(Ar(t),"incompatibleTokens",["t","T","x"]),t}return Vr(i,[{key:"parse",value:function(t,e){switch(e){case"X":return va(fa,t);case"XX":return va(ga,t);case"XXXX":return va(pa,t);case"XXXXX":return va(ba,t);default:return va(ma,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),i}(Ur),hl=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",10),(0,v.Z)(Ar(t),"incompatibleTokens",["t","T","X"]),t}return Vr(i,[{key:"parse",value:function(t,e){switch(e){case"x":return va(fa,t);case"xx":return va(ga,t);case"xxxx":return va(pa,t);case"xxxxx":return va(ba,t);default:return va(ma,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),i}(Ur),cl=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",40),(0,v.Z)(Ar(t),"incompatibleTokens","*"),t}return Vr(i,[{key:"parse",value:function(t){return _a(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),i}(Ur),ul=function(t){Er(i,t);var e=Fr(i);function i(){var t;zr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.Z)(Ar(t),"priority",20),(0,v.Z)(Ar(t),"incompatibleTokens","*"),t}return Vr(i,[{key:"parse",value:function(t){return _a(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),i}(Ur),dl={G:new Yr,y:new Da,Y:new Oa,R:new La,u:new Ea,Q:new Ra,q:new Ia,M:new Za,L:new Fa,w:new Na,I:new Va,d:new ja,D:new Ua,E:new qa,e:new Xa,c:new Ga,i:new Qa,a:new Ka,b:new Ja,B:new tl,h:new el,H:new il,K:new nl,k:new sl,m:new ol,s:new rl,S:new al,X:new ll,x:new hl,t:new cl,T:new ul},fl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pl=/^'([^]*?)'?$/,ml=/''/g,bl=/\S/,xl=/[a-zA-Z]/;function yl(t){return t.match(pl)[1].replace(ml,"'")}var vl=i(5162),_l=i(6800),wl=i(56),kl=i(3429),Ml=36e5;function Sl(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,Cr.Z)(e);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}function Tl(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,Cr.Z)(e);if(isNaN(n))return new Date(NaN);if(!n)return i;var s=i.getDate(),o=new Date(i.getTime());o.setMonth(i.getMonth()+n+1,0);var r=o.getDate();return s>=r?o:(i.setFullYear(o.getFullYear(),o.getMonth(),s),i)}function Dl(t,e){return(0,Or.Z)(2,arguments),(0,yr.Z)(t).getTime()-(0,yr.Z)(e).getTime()}var Pl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function Cl(t){return t?Pl[t]:Pl.trunc}function Ol(t,e,i){(0,Or.Z)(2,arguments);var n=Dl(t,e)/$r.yJ;return Cl(null==i?void 0:i.roundingMethod)(n)}function Al(t,e,i){(0,Or.Z)(2,arguments);var n=Dl(t,e)/$r.vh;return Cl(null==i?void 0:i.roundingMethod)(n)}function Ll(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setHours(0,0,0,0),e}var El=864e5;function Rl(t,e){(0,Or.Z)(2,arguments);var i=Ll(t),n=Ll(e),s=i.getTime()-(0,Dr.Z)(i),o=n.getTime()-(0,Dr.Z)(n);return Math.round((s-o)/El)}function Il(t,e){var i=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return i<0?-1:i>0?1:i}function Zl(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,yr.Z)(e),s=Il(i,n),o=Math.abs(Rl(i,n));i.setDate(i.getDate()-s*o);var r=Number(Il(i,n)===-s),a=s*(o-r);return 0===a?0:a}function Fl(t,e,i){(0,Or.Z)(2,arguments);var n=Zl(t,e)/7;return Cl(null==i?void 0:i.roundingMethod)(n)}function zl(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,yr.Z)(e),s=i.getFullYear()-n.getFullYear(),o=i.getMonth()-n.getMonth();return 12*s+o}function Nl(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,yr.Z)(e),s=i.getTime()-n.getTime();return s<0?-1:s>0?1:s}function Hl(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setHours(23,59,59,999),e}function Vl(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t),i=e.getMonth();return e.setFullYear(e.getFullYear(),i+1,0),e.setHours(23,59,59,999),e}function Bl(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return Hl(e).getTime()===Vl(e).getTime()}function Wl(t,e){(0,Or.Z)(2,arguments);var i,n=(0,yr.Z)(t),s=(0,yr.Z)(e),o=Nl(n,s),r=Math.abs(zl(n,s));if(r<1)i=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*r);var a=Nl(n,s)===-o;Bl((0,yr.Z)(t))&&1===r&&1===Nl(t,s)&&(a=!1),i=o*(r-Number(a))}return 0===i?0:i}function jl(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,yr.Z)(e);return i.getFullYear()-n.getFullYear()}function Ul(t,e){(0,Or.Z)(2,arguments);var i=(0,yr.Z)(t),n=(0,yr.Z)(e),s=Nl(i,n),o=Math.abs(jl(i,n));i.setFullYear(1584),n.setFullYear(1584);var r=Nl(i,n)===-s,a=s*(o-Number(r));return 0===a?0:a}function Yl(t,e){var i,n,s,o,r,a,l,h;(0,Or.Z)(1,arguments);var c=(0,Ya.j)(),u=(0,Cr.Z)(null!==(i=null!==(n=null!==(s=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(r=e.locale)||void 0===r||null===(a=r.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:c.weekStartsOn)&&void 0!==n?n:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,yr.Z)(t),f=d.getDay(),g=(f<u?7:0)+f-u;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}const $l={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};yn._date.override({_id:"date-fns",formats:function(){return $l},parse:function(t,e){if(null==t)return null;const i=typeof t;return"number"===i||t instanceof Date?t=(0,yr.Z)(t):"string"===i&&(t="string"==typeof e?function(t,e,i,n){var s,o,r,a,l,h,c,u,d,f,g,p,m,b,x,y,v,_;(0,Or.Z)(3,arguments);var w=String(t),k=String(e),M=(0,Ya.j)(),S=null!==(s=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:M.locale)&&void 0!==s?s:kr.Z;if(!S.match)throw new RangeError("locale must contain match property");var T=(0,Cr.Z)(null!==(r=null!==(a=null!==(l=null!==(h=null==n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:M.firstWeekContainsDate)&&void 0!==a?a:null===(d=M.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==r?r:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=(0,Cr.Z)(null!==(g=null!==(p=null!==(m=null!==(b=null==n?void 0:n.weekStartsOn)&&void 0!==b?b:null==n||null===(x=n.locale)||void 0===x||null===(y=x.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:M.weekStartsOn)&&void 0!==p?p:null===(v=M.locale)||void 0===v||null===(_=v.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==g?g:0);if(!(D>=0&&D<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===w?(0,yr.Z)(i):new Date(NaN);var P,C={firstWeekContainsDate:T,weekStartsOn:D,locale:S},O=[new jr],A=k.match(gl).map((function(t){var e=t[0];return e in Tr.Z?(0,Tr.Z[e])(t,S.formatLong):t})).join("").match(fl),L=[],E=wr(A);try{var R=function(){var e=P.value;null!=n&&n.useAdditionalWeekYearTokens||!(0,Pr.Do)(e)||(0,Pr.qp)(e,k,t),null!=n&&n.useAdditionalDayOfYearTokens||!(0,Pr.Iu)(e)||(0,Pr.qp)(e,k,t);var i=e[0],s=dl[i];if(s){var o=s.incompatibleTokens;if(Array.isArray(o)){var r=L.find((function(t){return o.includes(t.token)||t.token===i}));if(r)throw new RangeError("The format string mustn't contain `".concat(r.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===s.incompatibleTokens&&L.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));L.push({token:i,fullToken:e});var a=s.run(w,e,S.match,C);if(!a)return{v:new Date(NaN)};O.push(a.setter),w=a.rest}else{if(i.match(xl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=yl(e)),0!==w.indexOf(e))return{v:new Date(NaN)};w=w.slice(e.length)}};for(E.s();!(P=E.n()).done;){var I=R();if("object"===(0,vr.Z)(I))return I.v}}catch(t){E.e(t)}finally{E.f()}if(w.length>0&&bl.test(w))return new Date(NaN);var Z=O.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return O.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),F=(0,yr.Z)(i);if(isNaN(F.getTime()))return new Date(NaN);var z,N=(0,Mr.Z)(F,(0,Dr.Z)(F)),H={},V=wr(Z);try{for(V.s();!(z=V.n()).done;){var B=z.value;if(!B.validate(N,C))return new Date(NaN);var W=B.set(N,H,C);Array.isArray(W)?(N=W[0],Sr(H,W[1])):N=W}}catch(t){V.e(t)}finally{V.f()}return N}(t,e,new Date,this.options):(0,vl.Z)(t,this.options)),(0,_l.Z)(t)?t.getTime():null},format:function(t,e){return(0,wl.Z)(t,e,this.options)},add:function(t,e,i){switch(i){case"millisecond":return(0,kl.Z)(t,e);case"second":return function(t,e){(0,Or.Z)(2,arguments);var i=(0,Cr.Z)(e);return(0,kl.Z)(t,1e3*i)}(t,e);case"minute":return function(t,e){(0,Or.Z)(2,arguments);var i=(0,Cr.Z)(e);return(0,kl.Z)(t,6e4*i)}(t,e);case"hour":return function(t,e){(0,Or.Z)(2,arguments);var i=(0,Cr.Z)(e);return(0,kl.Z)(t,i*Ml)}(t,e);case"day":return Sl(t,e);case"week":return function(t,e){(0,Or.Z)(2,arguments);var i=(0,Cr.Z)(e);return Sl(t,7*i)}(t,e);case"month":return Tl(t,e);case"quarter":return function(t,e){(0,Or.Z)(2,arguments);var i=(0,Cr.Z)(e);return Tl(t,3*i)}(t,e);case"year":return function(t,e){(0,Or.Z)(2,arguments);var i=(0,Cr.Z)(e);return Tl(t,12*i)}(t,e);default:return t}},diff:function(t,e,i){switch(i){case"millisecond":return Dl(t,e);case"second":return function(t,e,i){(0,Or.Z)(2,arguments);var n=Dl(t,e)/1e3;return Cl(null==i?void 0:i.roundingMethod)(n)}(t,e);case"minute":return Ol(t,e);case"hour":return Al(t,e);case"day":return Zl(t,e);case"week":return Fl(t,e);case"month":return Wl(t,e);case"quarter":return function(t,e,i){(0,Or.Z)(2,arguments);var n=Wl(t,e)/3;return Cl(null==i?void 0:i.roundingMethod)(n)}(t,e);case"year":return Ul(t,e);default:return 0}},startOf:function(t,e,i){switch(e){case"second":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setMilliseconds(0),e}(t);case"minute":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setSeconds(0,0),e}(t);case"hour":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setMinutes(0,0,0),e}(t);case"day":return Ll(t);case"week":return Yl(t);case"isoWeek":return Yl(t,{weekStartsOn:+i});case"month":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setDate(1),e.setHours(0,0,0,0),e}(t);case"quarter":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t),i=e.getMonth(),n=i-i%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}(t);case"year":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t),i=new Date(0);return i.setFullYear(e.getFullYear(),0,1),i.setHours(0,0,0,0),i}(t);default:return t}},endOf:function(t,e){switch(e){case"second":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setMilliseconds(999),e}(t);case"minute":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setSeconds(59,999),e}(t);case"hour":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t);return e.setMinutes(59,59,999),e}(t);case"day":return Hl(t);case"week":return function(t,e){var i,n,s,o,r,a,l,h;(0,Or.Z)(1,arguments);var c=(0,Ya.j)(),u=(0,Cr.Z)(null!==(i=null!==(n=null!==(s=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(r=e.locale)||void 0===r||null===(a=r.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:c.weekStartsOn)&&void 0!==n?n:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,yr.Z)(t),f=d.getDay(),g=6+(f<u?-7:0)-(f-u);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}(t);case"month":return Vl(t);case"quarter":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t),i=e.getMonth(),n=i-i%3+3;return e.setMonth(n,0),e.setHours(23,59,59,999),e}(t);case"year":return function(t){(0,Or.Z)(1,arguments);var e=(0,yr.Z)(t),i=e.getFullYear();return e.setFullYear(i+1,0,0),e.setHours(23,59,59,999),e}(t);default:return t}}});var ql=i(2343);const Xl={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},Gl={ariaLabel:{type:String},ariaDescribedby:{type:String}},Ql={type:{type:String,required:!0},...Xl,...Gl},Kl="2"===r.i8[0]?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Jl(t){return(0,ql.X3)(t)?(0,ql.IU)(t):t}function th(t,e){t.labels=e}function eh(t,e,i){const n=[];t.datasets=e.map((e=>{const s=t.datasets.find((t=>t[i]===e[i]));return s&&e.data&&!n.includes(s)?(n.push(s),Object.assign(s,e),s):{...e}}))}const ih=(0,r.aZ)({props:Ql,setup(t,e){let{expose:i,slots:n}=e;const s=(0,ql.iH)(null),o=(0,ql.XI)(null);return i({chart:o}),(0,r.bv)((()=>{if(!s.value)return;const{type:e,data:i,options:n,plugins:r,datasetIdKey:a}=t,l=function(t,e){const i={labels:[],datasets:[]};return th(i,t.labels),eh(i,t.datasets,e),i}(i,a),h=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return(0,ql.X3)(e)?new Proxy(t,{}):t}(l,i);o.value=new Ns(s.value,{type:e,data:h,options:{...n},plugins:r})})),(0,r.Jd)((()=>{const t=(0,ql.IU)(o.value);t&&(t.destroy(),o.value=null)})),(0,r.YP)([()=>t.options,()=>t.data],((e,i)=>{let[n,s]=e,[a,l]=i;const h=(0,ql.IU)(o.value);if(!h)return;let c=!1;if(n){const t=Jl(n),e=Jl(a);t&&t!==e&&(function(t,e){const i=t.options;i&&e&&Object.assign(i,e)}(h,t),c=!0)}if(s){const e=Jl(s.labels),i=Jl(l.labels),n=Jl(s.datasets),o=Jl(l.datasets);e!==i&&(th(h.config.data,e),c=!0),n&&n!==o&&(eh(h.config.data,n,t.datasetIdKey),c=!0)}c&&(0,r.Y3)((()=>{(e=>{e.update(t.updateMode)})(h)}))}),{deep:!0}),()=>(0,r.h)("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[(0,r.h)("p",{},[n.default?n.default():""])])}});function nh(t,e){return Ns.register(e),(0,r.aZ)({props:Xl,setup(e,i){let{expose:n}=i;const s=(0,ql.XI)(null),o=t=>{s.value=t?.chart};return n({chart:s}),()=>(0,r.h)(ih,Kl({ref:o},{type:t,...e}))}})}const sh=nh("bar",hn),oh=nh("line",dn);var rh=i(9404),ah=i(3903),lh={name:"ChronoAnswers",components:{Line:oh,ChevronUpIcon:rh.g8U,ChevronDownIcon:rh.v4q},setup(){const t=(0,f.i)();Ns.register(jo,mr,wo,Qs,Js,Yo,Xo);const e=(0,r.Fl)((()=>(0,ah.xT)(t.itemsToDisplay,"created",!0))),i=(0,r.Fl)((()=>{let t=e.value;var i=1,n=[];return t.forEach((t=>{n.push({x:t.created,y:i}),i+=1})),n}));return{time_range:(0,r.Fl)((()=>{if(!e.value.length)return"";let t=new Date(e.value[0].created);if(1==e.value.length)return(0,wl.Z)(t,"yyyy-LL-dd HH:mm");let i=new Date(e.value[e.value.length-1].created),n=(0,wl.Z)(t,"yyyy-LL-dd"),s=(0,wl.Z)(i,"yyyy-LL-dd");return n==s?n:n+" - "+s})),data:i,time_unit:(0,r.Fl)((()=>{if(1==t.items.length)return console.log("one item"),"second";let i=e.value.length?new Date(e.value[0].created):void 0,n=new Date(e.value[e.value.length-1].created);return void 0!==i&&void 0!==n?Ol(n,i)<1?"second":Al(n,i)<1?"minute":Zl(n,i)<1?"hour":Fl(n,i)<1?"day":Wl(n,i)<1?"week":Ul(n,i)<1?"month":"year":"day"})),point_radius:(0,r.Fl)((()=>{var t=8;let i=e.value.length;return t=i>10?7:t,t=i>30?6:t,t=i>60?5:t,i>90?3:t})),color:"rgba(0, 190, 0, 1)",show_graph:(0,r.Fl)((()=>t.user_prefs.show_chrono_graph)),toggleGraph:function(){t.user_prefs.show_chrono_graph=!t.user_prefs.show_chrono_graph,y().patch(t.endpoint+"/toggle-chrono-graph",JSON.stringify({visible:t.user_prefs.show_chrono_graph}),{headers:{"Content-Type":"application/json"}}).then((function(t){})).catch((function(t){console.log(t)}))}}}},hh=(i(9103),i(6021)),ch=(0,hh.Z)(lh,[["render",function(t,e,i,n,s,o){const l=(0,r.up)("ChevronUpIcon"),h=(0,r.up)("ChevronDownIcon"),c=(0,r.up)("Line");return(0,r.wg)(),(0,r.iD)(r.HY,null,[(0,r._)("span",{onClick:e[0]||(e[0]=t=>n.toggleGraph())},[(0,r._)("span",p,[n.show_graph?((0,r.wg)(),(0,r.j4)(l,{key:0,size:"1.5x"})):((0,r.wg)(),(0,r.j4)(h,{key:1,size:"1.5x"}))]),(0,r._)("span",m,(0,a.toDisplayString)(t.$t("Chronology")),1),(0,r.Uk)(" "+(0,a.toDisplayString)(n.time_range),1)]),n.show_graph?((0,r.wg)(),(0,r.iD)("div",b,[(0,r.Wm)(c,{data:{datasets:[{data:n.data,backgroundColor:n.color,borderColor:n.color,pointRadius:n.point_radius,pointHitRadius:15,pointBorderWidth:0,pointHoverRadius:8}]},options:{responsive:!0,maintainAspectRatio:!1,animation:!1,scales:{x:{type:"time",time:{unit:n.time_unit,displayFormats:{second:"kk:mm:ss",minute:"kk:mm",hour:"kk:mm",day:"yyyy-MM-dd",week:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy-MM"}},distribution:"linear"},y:{beginAtZero:!1,min:1,ticks:{precision:0}}},animation:!1,plugins:{legend:{display:!1}}}},null,8,["data","options"])])):(0,r.kq)("v-if",!0)],64)}],["__scopeId","data-v-37d63335"]]),uh=i(9371),dh={name:"BarChart",components:{Bar:sh},props:{field:Object,field_type:String,color_code:String},setup(t){const e=(0,f.i)(),{t:i}=(0,uh.QT)({useScope:"global"}),n=(0,ql.iH)(null);function s(t,e){return t.length<e?t:t.slice(0,e-2)+".."}function o(){let e="numeric"==t.field_type?3:t.field.values.length;var i=45;return e>12&&(i=185),e>6&&(i=115),s(t.field.label,i)}function a(){var i=void 0,s=0,o=0;e.itemsToDisplay.forEach((e=>{let n=e.data;if(void 0!==n[t.field.name]){let e=Number(n[t.field.name]);NaN!=e&&((void 0===i||e<i)&&(i=e),e>s&&(s=e),o+=e)}})),n.value=(0,ah.kE)(t.field)?o:null,i=void 0!==i?i:0;let r=e.itemsToDisplay.length?o/e.itemsToDisplay.length:0;return[i,r,s]}return Ns.register(Co,jo,To,oo,Yo,Xo),{chartOptions:(0,r.Fl)((()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,scales:{y:{beginAtZero:!0,ticks:{precision:0}}},plugins:{legend:{onHover:function(t){t.native.target.style.cursor="pointer"},onLeave:function(t){t.native.target.style.cursor="default"},labels:{boxWidth:20,usePointStyle:!0,pointStyle:"rectRounded"}},subtitle:{display:Boolean(n.value),text:i("Total")+": "+n.value,position:"bottom",padding:2,font:{size:13}}}}))),chartData:(0,r.Fl)((()=>{return{labels:"multi"==t.field_type?(n=[],Object.values(t.field.values).forEach(((t,e)=>{let i=s(t.label,24);n.push(i)})),n):["Minimum","Average","Maximum"],datasets:[{label:o(),backgroundColor:t.color_code,fill:!0,borderWidth:0,barPercentage:1,data:"multi"==t.field_type?(i=[],Object.values(t.field.values).forEach(((t,e)=>{i.push(0)})),e.itemsToDisplay.forEach((e=>{let n=e.data;if(void 0!==n[t.field.name]&&n[t.field.name]){let e=n[t.field.name].split(", ");Object.values(t.field.values).forEach(((t,n)=>{e.includes(t.value)&&(i[n]+=1)}))}})),i):a()}]};var i,n}))}}},fh={name:"GraphRenderer",components:{ChronoAnswers:ch,BarChart:(0,hh.Z)(dh,[["render",function(t,e,i,n,s,o){const a=(0,r.up)("Bar");return(0,r.wg)(),(0,r.j4)(a,{options:n.chartOptions,data:n.chartData},null,8,["options","data"])}]]),GoToTop:g.Z},setup(){const t=(0,f.i)(),e=(0,o.useMq)(),i=(0,r.Fl)((()=>"xs"==e.current));(0,r.JJ)("xs_screen",i);var n={},s=0;const a=["rgba(233, 132, 0, 0.7)","rgba(182, 0, 181, 0.7)","rgba(255, 0, 0, 0.7)","rgba(0, 123 ,255, 0.7)","rgba(0, 190, 0, 0.7)"],l=(0,r.Fl)((()=>{var e=[];return t.field_index.forEach((i=>{t.meta.form_structure.forEach((t=>{i.name==t.name&&void 0!==t.type&&("checkbox-group"!=t.type&&"radio-group"!=t.type&&"select"!=t.type||e.push(t),i.name==t.name&&void 0!==t.type&&"number"==t.type&&e.push(t))}))})),e}));return{xs_screen:i,is_loading:(0,r.Fl)((()=>t.downloading_items)),fields:l,display_items_as:(0,r.Fl)((()=>t.display_items_as)),total_items:(0,r.Fl)((()=>t.items.length)),getColorCode:function(t){return Object.keys(n).includes(t)||((s+=1)==a.length&&(s=0),n[t]=a[s]),n[t]},getFieldType:function(t){return t.startsWith("number")?"numeric":"multi"},chartClasses:function(t){if(void 0===t)return"g-col-md-4";let e=t.length;return e>8?"g-col-md-12":e>6?"g-col-md-8":"g-col-md-4"},is_filtered:(0,r.Fl)((()=>t.items.length!=t.itemsToDisplay.length)),pdf_builder_mode:(0,r.Fl)((()=>t.ui.pdf_builder))}}};i(6570);const gh=(0,hh.Z)(fh,[["render",function(t,e,i,n,s,o){const f=(0,r.up)("GoToTop"),g=(0,r.up)("ChronoAnswers"),p=(0,r.up)("BarChart");return n.is_loading||"graphs"!=n.display_items_as||n.pdf_builder_mode?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("div",l,[n.xs_screen?((0,r.wg)(),(0,r.j4)(f,{key:0})):(0,r.kq)("v-if",!0),(0,r._)("div",h,[(0,r._)("div",c,[(0,r.Wm)(g)])]),n.fields.length?((0,r.wg)(),(0,r.iD)("div",u,[(0,r._)("div",d,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(n.fields,((t,e)=>((0,r.wg)(),(0,r.iD)("div",{key:"bar"+e,class:(0,a.normalizeClass)([n.chartClasses(t.values),"g-col-12 mt-3 ds-chart-container"])},[(0,r.Wm)(p,{field:t,field_type:n.getFieldType(t.name),color_code:n.getColorCode(t.name)},null,8,["field","field_type","color_code"])],2)))),128))])])):(0,r.kq)("v-if",!0)]))}],["__scopeId","data-v-5cd41c32"]]);var ph=gh;document.querySelectorAll("[vue-component=graph-renderer]").forEach((t=>{(0,n.createApp)(ph).use(s.Z).use(o.Vue3Mq,{}).mount(t)}))},6345:function(t,e,i){"use strict";i.r(e);var n=i(6738),s=i.n(n),o=i(7705),r=i.n(o)()(s());r.push([t.id,"\n.ds-goto-top[data-v-0422979d] {\n z-index: 100;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: fixed;\n top:auto;\n bottom:2em;\n right:1.5em;\n left:auto;\n}\n.ds-goto-top > svg[data-v-0422979d] {\n margin-left: 2px;\n margin-top: 0;\n}\n",""]),e.default=r},5105:function(t,e,i){"use strict";i.r(e);var n=i(6738),s=i.n(n),o=i(7705),r=i.n(o)()(s());r.push([t.id,"\n.ds-loading[data-v-5cd41c32] {\n font-style: italic;\n color: var(--lf-gray-800);\n margin-top: 1.5em;\n}\n.ds-no-data[data-v-5cd41c32] {\n font-style: italic;\n color: var(--lf-gray-600);\n margin-top: 1em;\n font-size: 1.75em;\n}\n.ds-chart-container[data-v-5cd41c32] {\n height: 250px;\n max-height: 250px !important;\n width: calc(100% - 0.5rem) !important;\n}\n/*\n.ds-items-total {\n font-size: 0.9em;\n}\n*/\n",""]),e.default=r},853:function(t,e,i){"use strict";i.r(e);var n=i(6738),s=i.n(n),o=i(7705),r=i.n(o)()(s());r.push([t.id,"\n.ds-link[data-v-37d63335] {\n color: var(--lf-link-color);\n text-decoration: underline;\n cursor: pointer;\n}\n",""]),e.default=r},6767:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var n=i(6229),s=i(2502);const o={ref:"target",id:"go_to_top"};var r=i(2343),a=i(991),l={name:"GoToTop",components:{ChevronUpIcon:i(9404).g8U},setup(t){const e=(0,r.iH)(null),i=(0,a.CDf)(e),s=(0,r.iH)(!1);return(0,n.YP)((()=>i.value),(()=>{if(i.value)s.value=!1;else{let t=document.getElementById("go_to_top");t&&t.getBoundingClientRect().top<0&&(s.value=!0)}}),{immediate:!0}),{target:e,showButton:s,goToTop:function(){window.scrollTo(0,0)},themeColors:function(){let t=document.getElementsByClassName("ds-main-navbar")[0],e=window.getComputedStyle(t).getPropertyValue("background-color"),i=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(i).getPropertyValue("color"),"background-color":e}}()}}};i(9716);var h=(0,i(6021).Z)(l,[["render",function(t,e,i,r,a,l){const h=(0,n.up)("ChevronUpIcon");return(0,n.wg)(),(0,n.iD)("div",o,[r.showButton?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"ds-goto-top",style:(0,s.normalizeStyle)(r.themeColors),onClick:e[0]||(e[0]=t=>r.goToTop())},[(0,n.Wm)(h,{size:"3x"})],4)):(0,n.kq)("v-if",!0)],512)}],["__scopeId","data-v-0422979d"]])},9716:function(t,e,i){var n=i(6345);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals),(0,i(4023).Z)("7ff4776c",n,!1,{})},6570:function(t,e,i){var n=i(5105);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals),(0,i(4023).Z)("42daddae",n,!1,{})},9103:function(t,e,i){var n=i(853);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals),(0,i(4023).Z)("19a46f86",n,!1,{})},991:function(t,e,i){"use strict";i.d(e,{h4X:function(){return m},CDf:function(){return b}});var n=i(2343),s=i(6229);function o(t){return!!(0,n.nZ)()&&((0,n.EB)(t),!0)}function r(t){return"function"==typeof t?t():(0,n.SU)(t)}const a="undefined"!=typeof window&&"undefined"!=typeof document,l=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),t=>null!=t),h=(Object.prototype.toString,()=>{});function c(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}const u=/\B([A-Z])/g,d=(c((t=>t.replace(u,"-$1").toLowerCase())),/-(\w)/g);function f(t){var e;const i=r(t);return null!=(e=null==i?void 0:i.$el)?e:i}c((t=>t.replace(d,((t,e)=>e?e.toUpperCase():""))));const g=a?window:void 0;function p(t){const e=function(){const t=(0,n.iH)(!1);return(0,s.FN)()&&(0,s.bv)((()=>{t.value=!0})),t}();return(0,s.Fl)((()=>(e.value,Boolean(t()))))}function m(t,e={width:0,height:0},i={}){const{window:r=g,box:a="content-box"}=i,l=(0,s.Fl)((()=>{var e,i;return null==(i=null==(e=f(t))?void 0:e.namespaceURI)?void 0:i.includes("svg")})),h=(0,n.iH)(e.width),c=(0,n.iH)(e.height),{stop:u}=function(t,e,i={}){const{window:n=g,...r}=i;let a;const l=p((()=>n&&"ResizeObserver"in n)),h=()=>{a&&(a.disconnect(),a=void 0)},c=(0,s.Fl)((()=>Array.isArray(t)?t.map((t=>f(t))):[f(t)])),u=(0,s.YP)(c,(t=>{if(h(),l.value&&n){a=new ResizeObserver(e);for(const e of t)e&&a.observe(e,r)}}),{immediate:!0,flush:"post",deep:!0}),d=()=>{h(),u()};return o(d),{isSupported:l,stop:d}}(t,(([e])=>{const i="border-box"===a?e.borderBoxSize:"content-box"===a?e.contentBoxSize:e.devicePixelContentBoxSize;if(r&&l.value){const e=f(t);if(e){const t=r.getComputedStyle(e);h.value=Number.parseFloat(t.width),c.value=Number.parseFloat(t.height)}}else if(i){const t=Array.isArray(i)?i:[i];h.value=t.reduce(((t,{inlineSize:e})=>t+e),0),c.value=t.reduce(((t,{blockSize:e})=>t+e),0)}else h.value=e.contentRect.width,c.value=e.contentRect.height}),i);!function(t,e=!0,i){!function(t){return t||(0,s.FN)()}()?e?t():(0,s.Y3)(t):(0,s.bv)(t,i)}((()=>{const i=f(t);i&&(h.value="offsetWidth"in i?i.offsetWidth:e.width,c.value="offsetHeight"in i?i.offsetHeight:e.height)}));const d=(0,s.YP)((()=>f(t)),(t=>{h.value=t?e.width:0,c.value=t?e.height:0}));return{width:h,height:c,stop:function(){u(),d()}}}function b(t,e={}){const{window:i=g,scrollTarget:a}=e,c=(0,n.iH)(!1);return function(t,e,i={}){const{root:a,rootMargin:c="0px",threshold:u=.1,window:d=g,immediate:m=!0}=i,b=p((()=>d&&"IntersectionObserver"in d)),x=(0,s.Fl)((()=>{const e=r(t);return(Array.isArray(e)?e:[e]).map(f).filter(l)}));let y=h;const v=(0,n.iH)(m),_=b.value?(0,s.YP)((()=>[x.value,f(a),v.value]),(([t,i])=>{if(y(),!v.value)return;if(!t.length)return;const n=new IntersectionObserver(e,{root:f(i),rootMargin:c,threshold:u});t.forEach((t=>t&&n.observe(t))),y=()=>{n.disconnect(),y=h}}),{immediate:m,flush:"post"}):h;o((()=>{y(),_(),v.value=!1}))}(t,(t=>{let e=c.value,i=0;for(const n of t)n.time>=i&&(i=n.time,e=n.isIntersecting);c.value=e}),{root:a,window:i,threshold:0}),c}a&&window.document,a&&window.navigator,a&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY},8270:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(9266);function s(t,e,i){return(e=(0,n.Z)(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},9266:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(1311);function s(t){var e=function(t,e){if("object"!=(0,n.Z)(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e);if("object"!=(0,n.Z)(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==(0,n.Z)(e)?e:String(e)}}},function(t){t(t.s=6865)}]); \ No newline at end of file
+(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[471],{2179:function(t,e,i){"use strict";var n=i(7416),s=i(9677),o=i(9153),r=i(822),a=i(4526);const l={key:0},h={class:"grid mt-3"},c={class:"g-col-12"},u={key:1,class:"mt-3"},d={class:"grid"};var f=i(5624),g=i(7488);const p={class:"ds-link"},m={class:"ds-link"},b={key:0,class:"ds-chart-container",style:{height:"350px"}};var x=i(8266),y=i.n(x),v=i(3718);function _(t){return t+.5|0}const w=(t,e,i)=>Math.max(Math.min(t,i),e);function k(t){return w(_(2.55*t),0,255)}function M(t){return w(_(255*t),0,255)}function A(t){return w(_(t/2.55)/100,0,1)}function S(t){return w(_(100*t),0,100)}const T={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},D=[..."0123456789ABCDEF"],C=t=>D[15&t],P=t=>D[(240&t)>>4]+D[15&t],O=t=>(240&t)>>4==(15&t);const E=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function L(t,e,i){const n=e*Math.min(i,1-i),s=(e,s=(e+t/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[s(0),s(8),s(4)]}function R(t,e,i){const n=(n,s=(n+t/60)%6)=>i-i*e*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function I(t,e,i){const n=L(t,1,.5);let s;for(e+i>1&&(s=1/(e+i),e*=s,i*=s),s=0;s<3;s++)n[s]*=1-e-i,n[s]+=e;return n}function F(t){const e=t.r/255,i=t.g/255,n=t.b/255,s=Math.max(e,i,n),o=Math.min(e,i,n),r=(s+o)/2;let a,l,h;return s!==o&&(h=s-o,l=r>.5?h/(2-s-o):h/(s+o),a=function(t,e,i,n,s){return t===s?(e-i)/n+(e<i?6:0):e===s?(i-t)/n+2:(t-e)/n+4}(e,i,n,h,s),a=60*a+.5),[0|a,l||0,r]}function z(t,e,i,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,n)).map(M)}function N(t,e,i){return z(L,t,e,i)}function W(t){return(t%360+360)%360}const V={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"},B={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 H;const j=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,U=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Y=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function $(t,e,i){if(t){let n=F(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*i,0===e?360:1)),n=N(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function q(t,e){return t?Object.assign(e||{},t):t}function X(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=M(t[3]))):(e=q(t,{r:0,g:0,b:0,a:1})).a=M(e.a),e}function K(t){return"r"===t.charAt(0)?function(t){const e=j.exec(t);let i,n,s,o=255;if(e){if(e[7]!==i){const t=+e[7];o=e[8]?k(t):w(255*t,0,255)}return i=+e[1],n=+e[3],s=+e[5],i=255&(e[2]?k(i):w(i,0,255)),n=255&(e[4]?k(n):w(n,0,255)),s=255&(e[6]?k(s):w(s,0,255)),{r:i,g:n,b:s,a:o}}}(t):function(t){const e=E.exec(t);let i,n=255;if(!e)return;e[5]!==i&&(n=e[6]?k(+e[5]):M(+e[5]));const s=W(+e[2]),o=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return z(I,t,e,i)}(s,o,r):"hsv"===e[1]?function(t,e,i){return z(R,t,e,i)}(s,o,r):N(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}(t)}class Q{constructor(t){if(t instanceof Q)return t;const e=typeof t;let i;var n,s,o;"object"===e?i=X(t):"string"===e&&(o=(n=t).length,"#"===n[0]&&(4===o||5===o?s={r:255&17*T[n[1]],g:255&17*T[n[2]],b:255&17*T[n[3]],a:5===o?17*T[n[4]]:255}:7!==o&&9!==o||(s={r:T[n[1]]<<4|T[n[2]],g:T[n[3]]<<4|T[n[4]],b:T[n[5]]<<4|T[n[6]],a:9===o?T[n[7]]<<4|T[n[8]]:255})),i=s||function(t){H||(H=function(){const t={},e=Object.keys(B),i=Object.keys(V);let n,s,o,r,a;for(n=0;n<e.length;n++){for(r=a=e[n],s=0;s<i.length;s++)o=i[s],a=a.replace(o,V[o]);o=parseInt(B[r],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),H.transparent=[0,0,0,0]);const e=H[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||K(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=q(this._rgb);return t&&(t.a=A(t.a)),t}set rgb(t){this._rgb=X(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?(t=this._rgb,e=(t=>O(t.r)&&O(t.g)&&O(t.b)&&O(t.a))(t)?C:P,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=F(t),i=e[0],n=S(e[1]),s=S(e[2]);return t.a<255?`hsla(${i}, ${n}%, ${s}%, ${A(t.a)})`:`hsl(${i}, ${n}%, ${s}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,n=t.rgb;let s;const o=e===s?.5:e,r=2*o-1,a=i.a-n.a,l=((r*a==-1?r:(r+a)/(1+r*a))+1)/2;s=1-l,i.r=255&l*i.r+s*n.r+.5,i.g=255&l*i.g+s*n.g+.5,i.b=255&l*i.b+s*n.b+.5,i.a=o*i.a+(1-o)*n.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const n=Y(A(t.r)),s=Y(A(t.g)),o=Y(A(t.b));return{r:M(U(n+i*(Y(A(e.r))-n))),g:M(U(s+i*(Y(A(e.g))-s))),b:M(U(o+i*(Y(A(e.b))-o))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Q(this.rgb)}alpha(t){return this._rgb.a=M(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=_(.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 $(this._rgb,2,t),this}darken(t){return $(this._rgb,2,-t),this}saturate(t){return $(this._rgb,1,t),this}desaturate(t){return $(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=F(t);i[0]=W(i[0]+e),i=N(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function G(){}const Z=(()=>{let t=0;return()=>t++})();function J(t){return null==t}function tt(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 et(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function it(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function nt(t,e){return it(t)?t:e}function st(t,e){return void 0===t?e:t}const ot=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function rt(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function at(t,e,i,n){let s,o,r;if(tt(t))if(o=t.length,n)for(s=o-1;s>=0;s--)e.call(i,t[s],s);else for(s=0;s<o;s++)e.call(i,t[s],s);else if(et(t))for(r=Object.keys(t),o=r.length,s=0;s<o;s++)e.call(i,t[r[s]],r[s])}function lt(t,e){let i,n,s,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(s=t[i],o=e[i],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function ht(t){if(tt(t))return t.map(ht);if(et(t)){const e=Object.create(null),i=Object.keys(t),n=i.length;let s=0;for(;s<n;++s)e[i[s]]=ht(t[i[s]]);return e}return t}function ct(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function ut(t,e,i,n){if(!ct(t))return;const s=e[t],o=i[t];et(s)&&et(o)?dt(s,o,n):e[t]=ht(o)}function dt(t,e,i){const n=tt(e)?e:[e],s=n.length;if(!et(t))return t;const o=(i=i||{}).merger||ut;let r;for(let e=0;e<s;++e){if(r=n[e],!et(r))continue;const s=Object.keys(r);for(let e=0,n=s.length;e<n;++e)o(s[e],t,r,i)}return t}function ft(t,e){return dt(t,e,{merger:gt})}function gt(t,e,i){if(!ct(t))return;const n=e[t],s=i[t];et(n)&&et(s)?ft(n,s):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ht(s))}const pt={"":t=>t,x:t=>t.x,y:t=>t.y};function mt(t,e){const i=pt[e]||(pt[e]=function(t){const e=function(t){const e=t.split("."),i=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function bt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const xt=t=>void 0!==t,yt=t=>"function"==typeof t,vt=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},_t=Math.PI,wt=2*_t,kt=wt+_t,Mt=Number.POSITIVE_INFINITY,At=_t/180,St=_t/2,Tt=_t/4,Dt=2*_t/3,Ct=Math.log10,Pt=Math.sign;function Ot(t,e,i){return Math.abs(t-e)<i}function Et(t){const e=Math.round(t);t=Ot(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(Ct(t))),n=t/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function Lt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Rt(t,e,i){let n,s,o;for(n=0,s=t.length;n<s;n++)o=t[n][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function It(t){return t*(_t/180)}function Ft(t){return t*(180/_t)}function zt(t){if(!it(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Nt(t,e){const i=e.x-t.x,n=e.y-t.y,s=Math.sqrt(i*i+n*n);let o=Math.atan2(n,i);return o<-.5*_t&&(o+=wt),{angle:o,distance:s}}function Wt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Vt(t,e){return(t-e+kt)%wt-_t}function Bt(t){return(t%wt+wt)%wt}function Ht(t,e,i,n){const s=Bt(t),o=Bt(e),r=Bt(i),a=Bt(o-s),l=Bt(r-s),h=Bt(s-o),c=Bt(s-r);return s===o||s===r||n&&o===r||a>l&&h<c}function jt(t,e,i){return Math.max(e,Math.min(i,t))}function Ut(t,e,i,n=1e-6){return t>=Math.min(e,i)-n&&t<=Math.max(e,i)+n}function Yt(t,e,i){i=i||(i=>t[i]<e);let n,s=t.length-1,o=0;for(;s-o>1;)n=o+s>>1,i(n)?o=n:s=n;return{lo:o,hi:s}}const $t=(t,e,i,n)=>Yt(t,i,n?n=>{const s=t[n][e];return s<i||s===i&&t[n+1][e]===i}:n=>t[n][e]<i),qt=(t,e,i)=>Yt(t,i,(n=>t[n][e]>=i)),Xt=["push","pop","shift","splice","unshift"];function Kt(t,e){const i=t._chartjs;if(!i)return;const n=i.listeners,s=n.indexOf(e);-1!==s&&n.splice(s,1),n.length>0||(Xt.forEach((e=>{delete t[e]})),delete t._chartjs)}function Qt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Gt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Zt(t,e){let i=[],n=!1;return function(...s){i=s,n||(n=!0,Gt.call(window,(()=>{n=!1,t.apply(e,i)})))}}const Jt=t=>"start"===t?"left":"end"===t?"right":"center",te=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function ee(t,e,i){const n=e.length;let s=0,o=n;if(t._sorted){const{iScale:r,_parsed:a}=t,l=r.axis,{min:h,max:c,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=jt(Math.min($t(a,l,h).lo,i?n:$t(e,l,r.getPixelForValue(h)).lo),0,n-1)),o=d?jt(Math.max($t(a,r.axis,c,!0).hi+1,i?0:$t(e,l,r.getPixelForValue(c),!0).hi+1),s,n)-s:n-s}return{start:s,count:o}}function ie(t){const{xScale:e,yScale:i,_scaleRanges:n}=t,s={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!n)return t._scaleRanges=s,!0;const o=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,s),o}const ne=t=>0===t||1===t,se=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*wt/i),oe=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*wt/i)+1,re={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*St),easeOutSine:t=>Math.sin(t*St),easeInOutSine:t=>-.5*(Math.cos(_t*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=>ne(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=>ne(t)?t:se(t,.075,.3),easeOutElastic:t=>ne(t)?t:oe(t,.075,.3),easeInOutElastic(t){const e=.1125;return ne(t)?t:t<.5?.5*se(2*t,e,.45):.5+.5*oe(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-re.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*re.easeInBounce(2*t):.5*re.easeOutBounce(2*t-1)+.5};function ae(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function le(t){return ae(t)?t:new Q(t)}function he(t){return ae(t)?t:new Q(t).saturate(.5).darken(.1).hexString()}const ce=["x","y","borderWidth","radius","tension"],ue=["color","borderColor","backgroundColor"],de=new Map;function fe(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let n=de.get(i);return n||(n=new Intl.NumberFormat(t,e),de.set(i,n)),n}(e,i).format(t)}const ge={values(t){return tt(t)?t:""+t},numeric(t,e,i){if(0===t)return"0";const n=this.chart.options.locale;let s,o=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(s="scientific"),o=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const r=Ct(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),fe(t,n,l)},logarithmic(t,e,i){if(0===t)return"0";const n=i[e].significand||t/Math.pow(10,Math.floor(Ct(t)));return[1,2,3,5,10,15].includes(n)||e>.8*i.length?ge.numeric.call(this,t,e,i):""}};var pe={formatters:ge};const me=Object.create(null),be=Object.create(null);function xe(t,e){if(!e)return t;const i=e.split(".");for(let e=0,n=i.length;e<n;++e){const n=i[e];t=t[n]||(t[n]=Object.create(null))}return t}function ye(t,e,i){return"string"==typeof e?dt(xe(t,e),i):dt(xe(t,""),e)}class ve{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)=>he(e.backgroundColor),this.hoverBorderColor=(t,e)=>he(e.borderColor),this.hoverColor=(t,e)=>he(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 ye(this,t,e)}get(t){return xe(this,t)}describe(t,e){return ye(be,t,e)}override(t,e){return ye(me,t,e)}route(t,e,i,n){const s=xe(this,t),o=xe(this,i),r="_"+e;Object.defineProperties(s,{[r]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=o[n];return et(t)?Object.assign({},e,t):st(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach((t=>t(this)))}}var _e=new ve({_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:ue},numbers:{type:"number",properties:ce}}),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:pe.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 we(t,e,i,n,s){let o=e[s];return o||(o=e[s]=t.measureText(s).width,i.push(s)),o>n&&(n=o),n}function ke(t,e,i,n){let s=(n=n||{}).data=n.data||{},o=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(s=n.data={},o=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let r=0;const a=i.length;let l,h,c,u,d;for(l=0;l<a;l++)if(u=i[l],null==u||tt(u)){if(tt(u))for(h=0,c=u.length;h<c;h++)d=u[h],null==d||tt(d)||(r=we(t,s,o,r,d))}else r=we(t,s,o,r,u);t.restore();const f=o.length/2;if(f>i.length){for(l=0;l<f;l++)delete s[o[l]];o.splice(0,f)}return r}function Me(t,e,i){const n=t.currentDevicePixelRatio,s=0!==i?Math.max(i/2,.5):0;return Math.round((e-s)*n)/n+s}function Ae(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function Se(t,e,i,n){Te(t,e,i,n,null)}function Te(t,e,i,n,s){let o,r,a,l,h,c,u,d;const f=e.pointStyle,g=e.rotation,p=e.radius;let m=(g||0)*At;if(f&&"object"==typeof f&&(o=f.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(i,n),t.rotate(m),t.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),f){default:s?t.ellipse(i,n,s/2,p,0,0,wt):t.arc(i,n,p,0,wt),t.closePath();break;case"triangle":c=s?s/2:p,t.moveTo(i+Math.sin(m)*c,n-Math.cos(m)*p),m+=Dt,t.lineTo(i+Math.sin(m)*c,n-Math.cos(m)*p),m+=Dt,t.lineTo(i+Math.sin(m)*c,n-Math.cos(m)*p),t.closePath();break;case"rectRounded":h=.516*p,l=p-h,r=Math.cos(m+Tt)*l,u=Math.cos(m+Tt)*(s?s/2-h:l),a=Math.sin(m+Tt)*l,d=Math.sin(m+Tt)*(s?s/2-h:l),t.arc(i-u,n-a,h,m-_t,m-St),t.arc(i+d,n-r,h,m-St,m),t.arc(i+u,n+a,h,m,m+St),t.arc(i-d,n+r,h,m+St,m+_t),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*p,c=s?s/2:l,t.rect(i-c,n-l,2*c,2*l);break}m+=Tt;case"rectRot":u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+d,n-r),t.lineTo(i+u,n+a),t.lineTo(i-d,n+r),t.closePath();break;case"crossRot":m+=Tt;case"cross":u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r);break;case"star":u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r),m+=Tt,u=Math.cos(m)*(s?s/2:p),r=Math.cos(m)*p,a=Math.sin(m)*p,d=Math.sin(m)*(s?s/2:p),t.moveTo(i-u,n-a),t.lineTo(i+u,n+a),t.moveTo(i+d,n-r),t.lineTo(i-d,n+r);break;case"line":r=s?s/2:Math.cos(m)*p,a=Math.sin(m)*p,t.moveTo(i-r,n-a),t.lineTo(i+r,n+a);break;case"dash":t.moveTo(i,n),t.lineTo(i+Math.cos(m)*(s?s/2:p),n+Math.sin(m)*p);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function De(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Ce(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Pe(t){t.restore()}function Oe(t,e,i,n,s){if(!e)return t.lineTo(i.x,i.y);if("middle"===s){const n=(e.x+i.x)/2;t.lineTo(n,e.y),t.lineTo(n,i.y)}else"after"===s!=!!n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function Ee(t,e,i,n){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function Le(t,e,i,n,s){if(s.strikethrough||s.underline){const o=t.measureText(n),r=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=i-o.actualBoundingBoxAscent,h=i+o.actualBoundingBoxDescent,c=s.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=s.decorationWidth||2,t.moveTo(r,c),t.lineTo(a,c),t.stroke()}}function Re(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Ie(t,e,i,n,s,o={}){const r=tt(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,h;for(t.save(),t.font=s.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),J(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,o),l=0;l<r.length;++l)h=r[l],o.backdrop&&Re(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),J(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(h,i,n,o.maxWidth)),t.fillText(h,i,n,o.maxWidth),Le(t,i,n,h,o),n+=Number(s.lineHeight);t.restore()}function Fe(t,e){const{x:i,y:n,w:s,h:o,radius:r}=e;t.arc(i+r.topLeft,n+r.topLeft,r.topLeft,1.5*_t,_t,!0),t.lineTo(i,n+o-r.bottomLeft),t.arc(i+r.bottomLeft,n+o-r.bottomLeft,r.bottomLeft,_t,St,!0),t.lineTo(i+s-r.bottomRight,n+o),t.arc(i+s-r.bottomRight,n+o-r.bottomRight,r.bottomRight,St,0,!0),t.lineTo(i+s,n+r.topRight),t.arc(i+s-r.topRight,n+r.topRight,r.topRight,0,-St,!0),t.lineTo(i+r.topLeft,n)}const ze=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Ne=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function We(t,e){const i=(""+t).match(ze);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const Ve=t=>+t||0;function Be(t,e){const i={},n=et(e),s=n?Object.keys(e):e,o=et(t)?n?i=>st(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of s)i[t]=Ve(o(t));return i}function He(t){return Be(t,{top:"y",right:"x",bottom:"y",left:"x"})}function je(t){return Be(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ue(t){const e=He(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ye(t,e){t=t||{},e=e||_e.font;let i=st(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let n=st(t.style,e.style);n&&!(""+n).match(Ne)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const s={family:st(t.family,e.family),lineHeight:We(st(t.lineHeight,e.lineHeight),i),size:i,style:n,weight:st(t.weight,e.weight),string:""};return s.string=function(t){return!t||J(t.size)||J(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(s),s}function $e(t,e,i,n){let s,o,r,a=!0;for(s=0,o=t.length;s<o;++s)if(r=t[s],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),a=!1),void 0!==i&&tt(r)&&(r=r[i%r.length],a=!1),void 0!==r))return n&&!a&&(n.cacheable=!1),r}function qe(t,e){return Object.assign(Object.create(t),e)}function Xe(t,e=[""],i,n,s=(()=>t[0])){const o=i||t;void 0===n&&(n=oi("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:n,_getTarget:s,override:i=>Xe([i,...t],e,o,n)};return new Proxy(r,{deleteProperty(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get(i,n){return Je(i,n,(()=>function(t,e,i,n){let s;for(const o of e)if(s=oi(Ge(o,t),i),void 0!==s)return Ze(t,s)?ni(i,n,t,s):s}(n,e,t,i)))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return ri(t).includes(e)},ownKeys(t){return ri(t)},set(t,e,i){const n=t._storage||(t._storage=s());return t[e]=n[e]=i,delete t._keys,!0}})}function Ke(t,e,i,n){const s={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Qe(t,n),setContext:e=>Ke(t,e,i,n),override:s=>Ke(t.override(s),e,i,n)};return new Proxy(s,{deleteProperty(e,i){return delete e[i],delete t[i],!0},get(t,e,i){return Je(t,e,(()=>function(t,e,i){const{_proxy:n,_context:s,_subProxy:o,_descriptors:r}=t;let a=n[e];return yt(a)&&r.isScriptable(e)&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=i;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,r||n);return a.delete(t),Ze(t,l)&&(l=ni(s._scopes,s,t,l)),l}(e,a,t,i)),tt(a)&&a.length&&(a=function(t,e,i,n){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=i;if(void 0!==o.index&&n(t))return e[o.index%e.length];if(et(e[0])){const i=e,n=s._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=ni(n,s,t,l);e.push(Ke(i,o,r&&r[t],a))}}return e}(e,a,t,r.isIndexable)),Ze(e,a)&&(a=Ke(a,s,o&&o[e],r)),a}(t,e,i)))},getOwnPropertyDescriptor(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,i){return Reflect.has(t,i)},ownKeys(){return Reflect.ownKeys(t)},set(e,i,n){return t[i]=n,delete e[i],!0}})}function Qe(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:n=e.indexable,_allKeys:s=e.allKeys}=t;return{allKeys:s,scriptable:i,indexable:n,isScriptable:yt(i)?i:()=>i,isIndexable:yt(n)?n:()=>n}}const Ge=(t,e)=>t?t+bt(e):e,Ze=(t,e)=>et(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Je(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=i();return t[e]=n,n}function ti(t,e,i){return yt(t)?t(e,i):t}const ei=(t,e)=>!0===t?e:"string"==typeof t?mt(e,t):void 0;function ii(t,e,i,n,s){for(const o of e){const e=ei(i,o);if(e){t.add(e);const o=ti(e._fallback,i,s);if(void 0!==o&&o!==i&&o!==n)return o}else if(!1===e&&void 0!==n&&i!==n)return null}return!1}function ni(t,e,i,n){const s=e._rootScopes,o=ti(e._fallback,i,n),r=[...t,...s],a=new Set;a.add(n);let l=si(a,r,i,o||i,n);return null!==l&&(void 0===o||o===i||(l=si(a,r,o,l,n),null!==l))&&Xe(Array.from(a),[""],s,o,(()=>function(t,e,i){const n=t._getTarget();e in n||(n[e]={});const s=n[e];return tt(s)&&et(i)?i:s||{}}(e,i,n)))}function si(t,e,i,n,s){for(;i;)i=ii(t,e,i,n,s);return i}function oi(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function ri(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function ai(t,e,i,n){const{iScale:s}=t,{key:o="r"}=this._parsing,r=new Array(n);let a,l,h,c;for(a=0,l=n;a<l;++a)h=a+i,c=e[h],r[a]={r:s.parse(mt(c,o),h)};return r}const li=Number.EPSILON||1e-14,hi=(t,e)=>e<t.length&&!t[e].skip&&t[e],ci=t=>"x"===t?"y":"x";function ui(t,e,i,n){const s=t.skip?e:t,o=e,r=i.skip?e:i,a=Wt(o,s),l=Wt(r,o);let h=a/(a+l),c=l/(a+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const u=n*h,d=n*c;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function di(t,e,i){return Math.max(Math.min(t,i),e)}function fi(t,e,i,n,s){let o,r,a,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=ci(e),n=t.length,s=Array(n).fill(0),o=Array(n);let r,a,l,h=hi(t,0);for(r=0;r<n;++r)if(a=l,l=h,h=hi(t,r+1),l){if(h){const t=h[e]-l[e];s[r]=0!==t?(h[i]-l[i])/t:0}o[r]=a?h?Pt(s[r-1])!==Pt(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}!function(t,e,i){const n=t.length;let s,o,r,a,l,h=hi(t,0);for(let c=0;c<n-1;++c)l=h,h=hi(t,c+1),l&&h&&(Ot(e[c],0,li)?i[c]=i[c+1]=0:(s=i[c]/e[c],o=i[c+1]/e[c],a=Math.pow(s,2)+Math.pow(o,2),a<=9||(r=3/Math.sqrt(a),i[c]=s*r*e[c],i[c+1]=o*r*e[c])))}(t,s,o),function(t,e,i="x"){const n=ci(i),s=t.length;let o,r,a,l=hi(t,0);for(let h=0;h<s;++h){if(r=a,a=l,l=hi(t,h+1),!a)continue;const s=a[i],c=a[n];r&&(o=(s-r[i])/3,a[`cp1${i}`]=s-o,a[`cp1${n}`]=c-o*e[h]),l&&(o=(l[i]-s)/3,a[`cp2${i}`]=s+o,a[`cp2${n}`]=c+o*e[h])}}(t,o,e)}(t,s);else{let i=n?t[t.length-1]:t[0];for(o=0,r=t.length;o<r;++o)a=t[o],l=ui(i,a,t[Math.min(o+1,r-(n?0:1))%r],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,i=a}e.capBezierPoints&&function(t,e){let i,n,s,o,r,a=De(t[0],e);for(i=0,n=t.length;i<n;++i)r=o,o=a,a=i<n-1&&De(t[i+1],e),o&&(s=t[i],r&&(s.cp1x=di(s.cp1x,e.left,e.right),s.cp1y=di(s.cp1y,e.top,e.bottom)),a&&(s.cp2x=di(s.cp2x,e.left,e.right),s.cp2y=di(s.cp2y,e.top,e.bottom)))}(t,i)}function gi(){return"undefined"!=typeof window&&"undefined"!=typeof document}function pi(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function mi(t,e,i){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}const bi=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),xi=["top","right","bottom","left"];function yi(t,e,i){const n={};i=i?"-"+i:"";for(let s=0;s<4;s++){const o=xi[s];n[o]=parseFloat(t[e+"-"+o+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const vi=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function _i(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:n}=e,s=bi(i),o="border-box"===s.boxSizing,r=yi(s,"padding"),a=yi(s,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,n=i&&i.length?i[0]:t,{offsetX:s,offsetY:o}=n;let r,a,l=!1;if(vi(s,o,t.target))r=s,a=o;else{const t=e.getBoundingClientRect();r=n.clientX-t.left,a=n.clientY-t.top,l=!0}return{x:r,y:a,box:l}}(t,i),u=r.left+(c&&a.left),d=r.top+(c&&a.top);let{width:f,height:g}=e;return o&&(f-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-u)/f*i.width/n),y:Math.round((h-d)/g*i.height/n)}}const wi=t=>Math.round(10*t)/10;function ki(t,e,i){const n=e||1,s=Math.floor(t.height*n),o=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||r.height!==s||r.width!==o)&&(t.currentDevicePixelRatio=n,r.height=s,r.width=o,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Mi=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};gi()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Ai(t,e){const i=function(t,e){return bi(t).getPropertyValue(e)}(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Si(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Ti(t,e,i,n){return{x:t.x+i*(e.x-t.x),y:"middle"===n?i<.5?t.y:e.y:"after"===n?i<1?t.y:e.y:i>0?e.y:t.y}}function Di(t,e,i,n){const s={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},r=Si(t,s,i),a=Si(s,o,i),l=Si(o,e,i),h=Si(r,a,i),c=Si(a,l,i);return Si(h,c,i)}function Ci(t,e,i){return t?function(t,e){return{x(i){return t+t+e-i},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}}(e,i):{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}}function Pi(t,e){let i,n;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Oi(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Ei(t){return"angle"===t?{between:Ht,compare:Vt,normalize:Bt}:{between:Ut,compare:(t,e)=>t-e,normalize:t=>t}}function Li({start:t,end:e,count:i,loop:n,style:s}){return{start:t%i,end:e%i,loop:n&&(e-t+1)%i==0,style:s}}function Ri(t,e,i){if(!i)return[t];const{property:n,start:s,end:o}=i,r=e.length,{compare:a,between:l,normalize:h}=Ei(n),{start:c,end:u,loop:d,style:f}=function(t,e,i){const{property:n,start:s,end:o}=i,{between:r,normalize:a}=Ei(n),l=e.length;let h,c,{start:u,end:d,loop:f}=t;if(f){for(u+=l,d+=l,h=0,c=l;h<c&&r(a(e[u%l][n]),s,o);++h)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:f,style:t.style}}(t,e,i),g=[];let p,m,b,x=!1,y=null;for(let t=c,i=c;t<=u;++t)m=e[t%r],m.skip||(p=h(m[n]),p!==b&&(x=l(p,s,o),null===y&&(x||l(s,b,p)&&0!==a(s,b))&&(y=0===a(p,s)?t:i),null!==y&&(!x||0===a(o,p)||l(o,b,p))&&(g.push(Li({start:y,end:t,loop:d,count:r,style:f})),y=null),i=t,b=p));return null!==y&&g.push(Li({start:y,end:u,loop:d,count:r,style:f})),g}function Ii(t,e){const i=[],n=t.segments;for(let s=0;s<n.length;s++){const o=Ri(n[s],t.points,e);o.length&&i.push(...o)}return i}function Fi(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function zi(t,e){if(!e)return!1;const i=[],n=function(t,e){return ae(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}class Ni{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const s=e.listeners[n],o=e.duration;s.forEach((n=>n({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Gt.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,n)=>{if(!i.running||!i.items.length)return;const s=i.items;let o,r=s.length-1,a=!1;for(;r>=0;--r)o=s[r],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),a=!0):(s[r]=s[s.length-1],s.pop());a&&(n.draw(),this._notify(n,i,t,"progress")),s.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=s.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}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 i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Wi=new Ni;const Vi="transparent",Bi={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const n=le(t||Vi),s=n.valid&&le(e||Vi);return s&&s.valid?s.mix(n,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class Hi{constructor(t,e,i,n){const s=e[i];n=$e([t.to,n,s,t.from]);const o=$e([t.from,s,n]);this._active=!0,this._fn=t.fn||Bi[t.type||typeof o],this._easing=re[t.easing]||re.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=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=$e([t.to,e,n,t.from]),this._from=$e([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,s=this._from,o=this._loop,r=this._to;let a;if(this._active=s!==r&&(o||e<i),!this._active)return this._target[n]=r,void this._notify(!0);e<0?this._target[n]=s:(a=e/i%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[n]=this._fn(s,r,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class ji{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!et(t))return;const e=Object.keys(_e.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const s=t[n];if(!et(s))return;const o={};for(const t of e)o[t]=s[t];(tt(s.properties)&&s.properties||[n]).forEach((t=>{t!==n&&i.has(t)||i.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,n=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!n)return[];const s=this._createAnimations(n,i);return i.$shared&&function(t,e){const i=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const s=t[n[e]];s&&s.active()&&i.push(s.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),s}_createAnimations(t,e){const i=this._properties,n=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),r=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){n.push(...this._animateOptions(t,e));continue}const h=e[l];let c=s[l];const u=i.get(l);if(c){if(u&&c.active()){c.update(u,h,r);continue}c.cancel()}u&&u.duration?(s[l]=c=new Hi(u,t,l,h),n.push(c)):t[l]=h}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Wi.add(this._chart,i),!0):void 0}}function Ui(t,e){const i=t&&t.options||{},n=i.reverse,s=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:n?o:s,end:n?s:o}}function Yi(t,e){const i=[],n=t._getSortedDatasetMetas(e);let s,o;for(s=0,o=n.length;s<o;++s)i.push(n[s].index);return i}function $i(t,e,i,n={}){const s=t.keys,o="single"===n.mode;let r,a,l,h;if(null!==e){for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===i){if(n.all)continue;break}h=t.values[l],it(h)&&(o||0===e||Pt(e)===Pt(h))&&(e+=h)}return e}}function qi(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function Xi(t,e,i){const n=t[e]||(t[e]={});return n[i]||(n[i]={})}function Ki(t,e,i,n){for(const s of e.getMatchingVisibleMetas(n).reverse()){const e=t[s.index];if(i&&e>0||!i&&e<0)return s.index}return null}function Qi(t,e){const{chart:i,_cachedMeta:n}=t,s=i._stacks||(i._stacks={}),{iScale:o,vScale:r,index:a}=n,l=o.axis,h=r.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,r,n),u=e.length;let d;for(let t=0;t<u;++t){const i=e[t],{[l]:o,[h]:u}=i;d=(i._stacks||(i._stacks={}))[h]=Xi(s,c,o),d[a]=u,d._top=Ki(d,r,!0,n.type),d._bottom=Ki(d,r,!1,n.type),(d._visualValues||(d._visualValues={}))[a]=u}}function Gi(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function Zi(t,e){const i=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][i])return;delete e[n][i],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[i]&&delete e[n]._visualValues[i]}}}const Ji=t=>"reset"===t||"none"===t,tn=(t,e)=>e?t:Object.assign({},t);class en{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=qi(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&&Zi(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,n)=>"x"===t?e:"r"===t?n:i,s=e.xAxisID=st(i.xAxisID,Gi(t,"x")),o=e.yAxisID=st(i.yAxisID,Gi(t,"y")),r=e.rAxisID=st(i.rAxisID,Gi(t,"r")),a=e.indexAxis,l=e.iAxisID=n(a,s,o,r),h=e.vAxisID=n(a,o,s,r);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}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&&Kt(this._data,this),t._stacked&&Zi(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(et(e))this._data=function(t){const e=Object.keys(t),i=new Array(e.length);let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n],i[n]={x:o,y:t[o]};return i}(e);else if(i!==e){if(i){Kt(i,this);const t=this._cachedMeta;Zi(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(n=e)._chartjs?n._chartjs.listeners.push(this):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),Xt.forEach((t=>{const e="_onData"+bt(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const s=i.apply(this,t);return n._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),s}})})))),this._syncList=[],this._data=e}var n}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let n=!1;this._dataCheck();const s=e._stacked;e._stacked=qi(e.vScale,e),e.stack!==i.stack&&(n=!0,Zi(e),e.stack=i.stack),this._resyncElements(t),(n||s!==e._stacked)&&Qi(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:n}=this,{iScale:s,_stacked:o}=i,r=s.axis;let a,l,h,c=0===t&&e===n.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=n,i._sorted=!0,h=n;else{h=tt(n[t])?this.parseArrayData(i,n,t,e):et(n[t])?this.parseObjectData(i,n,t,e):this.parsePrimitiveData(i,n,t,e);const s=()=>null===l[r]||u&&l[r]<u[r];for(a=0;a<e;++a)i._parsed[a+t]=l=h[a],c&&(s()&&(c=!1),u=l);i._sorted=c}o&&Qi(this,h)}parsePrimitiveData(t,e,i,n){const{iScale:s,vScale:o}=t,r=s.axis,a=o.axis,l=s.getLabels(),h=s===o,c=new Array(n);let u,d,f;for(u=0,d=n;u<d;++u)f=u+i,c[u]={[r]:h||s.parse(l[f],f),[a]:o.parse(e[f],f)};return c}parseArrayData(t,e,i,n){const{xScale:s,yScale:o}=t,r=new Array(n);let a,l,h,c;for(a=0,l=n;a<l;++a)h=a+i,c=e[h],r[a]={x:s.parse(c[0],h),y:o.parse(c[1],h)};return r}parseObjectData(t,e,i,n){const{xScale:s,yScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l=new Array(n);let h,c,u,d;for(h=0,c=n;h<c;++h)u=h+i,d=e[u],l[h]={x:s.parse(mt(d,r),u),y:o.parse(mt(d,a),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const n=this.chart,s=this._cachedMeta,o=e[t.axis];return $i({keys:Yi(n,!0),values:e._stacks[t.axis]._visualValues},o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,n){const s=i[e.axis];let o=null===s?NaN:s;const r=n&&i._stacks[e.axis];n&&r&&(n.values=r,o=$i(n,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,n=i._parsed,s=i._sorted&&t===i.iScale,o=n.length,r=this._getOtherScale(t),a=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:Yi(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:c}=function(t){const{min:e,max:i,minDefined:n,maxDefined:s}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:s?i:Number.POSITIVE_INFINITY}}(r);let u,d;function f(){d=n[u];const e=d[r.axis];return!it(d[t.axis])||h>e||c<e}for(u=0;u<o&&(f()||(this.updateRangeFromParsed(l,t,d,a),!s));++u);if(s)for(u=o-1;u>=0;--u)if(!f()){this.updateRangeFromParsed(l,t,d,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let n,s,o;for(n=0,s=e.length;n<s;++n)o=e[n][t.axis],it(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,n=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:n?""+n.getLabelForValue(s[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,n,s;return et(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}(st(this.options.clip,function(t,e,i){if(!1===i)return!1;const n=Ui(t,i),s=Ui(e,i);return{top:s.end,right:n.end,bottom:s.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,n=i.data||[],s=e.chartArea,o=[],r=this._drawStart||0,a=this._drawCount||n.length-r,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,s,r,a),h=r;h<r+a;++h){const e=n[h];e.hidden||(e.active&&l?o.push(e):e.draw(t,s))}for(h=0;h<o.length;++h)o[h].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const n=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,i){return qe(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=n.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return qe(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=n,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const n="active"===e,s=this._cachedDataOpts,o=t+"-"+e,r=s[o],a=this.enableOptionSharing&&xt(i);if(r)return tn(r,a);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=n?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),h),d=Object.keys(_e.elements[t]),f=l.resolveNamedOptions(u,d,(()=>this.getContext(i,n,e)),c);return f.$shared&&(f.$shared=a,s[o]=Object.freeze(tn(f,a))),f}_resolveAnimations(t,e,i){const n=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,r=s[o];if(r)return r;let a;if(!1!==n.options.animation){const n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),o=n.getOptionScopes(this.getDataset(),s);a=n.createResolver(o,this.getContext(t,i,e))}const l=new ji(n,a&&a.animations);return a&&a._cacheable&&(s[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ji(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),n=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==n;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,n){Ji(n)?Object.assign(t,i):this._resolveAnimations(e,n).update(t,i)}updateSharedOptions(t,e,i){t&&!Ji(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,n){t.active=n;const s=this.getStyle(e,n);this._resolveAnimations(e,i,n).update(t,{options:!n&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"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,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const n=i.length,s=e.length,o=Math.min(s,n);o&&this.parse(0,o),s>n?this._insertElements(n,s-n,t):s<n&&this._removeElements(s,n-s)}_insertElements(t,e,i=!0){const n=this._cachedMeta,s=n.data,o=t+e;let r;const a=t=>{for(t.length+=e,r=t.length-1;r>=o;r--)t[r]=t[r-e]};for(a(s),r=t;r<o;++r)s[r]=new this.dataElementType;this._parsing&&a(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,n){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const n=i._parsed.splice(t,e);i._stacked&&Zi(i,n)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,n]=t;this[e](i,n)}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 i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function nn(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,s=i.length;e<s;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=Qt(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,s,o,r,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(xt(r)&&(a=Math.min(a,Math.abs(o-r)||a)),r=o)};for(n=0,s=i.length;n<s;++n)o=e.getPixelForValue(i[n]),l();for(r=void 0,n=0,s=e.ticks.length;n<s;++n)o=e.getPixelForTick(n),l();return a}function sn(t,e,i,n){return tt(t)?function(t,e,i,n){const s=i.parse(t[0],n),o=i.parse(t[1],n),r=Math.min(s,o),a=Math.max(s,o);let l=r,h=a;Math.abs(r)>Math.abs(a)&&(l=a,h=r),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:s,end:o,min:r,max:a}}(t,e,i,n):e[i.axis]=i.parse(t,n),e}function on(t,e,i,n){const s=t.iScale,o=t.vScale,r=s.getLabels(),a=s===o,l=[];let h,c,u,d;for(h=i,c=i+n;h<c;++h)d=e[h],u={},u[s.axis]=a||s.parse(r[h],h),l.push(sn(d,u,o,h));return l}function rn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function an(t,e,i,n){let s=e.borderSkipped;const o={};if(!s)return void(t.borderSkipped=o);if(!0===s)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:a,reverse:l,top:h,bottom:c}=function(t){let e,i,n,s,o;return t.horizontal?(e=t.base>t.x,i="left",n="right"):(e=t.base<t.y,i="bottom",n="top"),e?(s="end",o="start"):(s="start",o="end"),{start:i,end:n,reverse:e,top:s,bottom:o}}(t);"middle"===s&&i&&(t.enableBorderRadius=!0,(i._top||0)===n?s=h:(i._bottom||0)===n?s=c:(o[ln(c,r,a,l)]=!0,s=h)),o[ln(s,r,a,l)]=!0,t.borderSkipped=o}function ln(t,e,i,n){var s,o,r;return n?(r=i,t=hn(t=(s=t)===(o=e)?r:s===r?o:s,i,e)):t=hn(t,e,i),t}function hn(t,e,i){return"start"===t?e:"end"===t?i:t}function cn(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}(0,v.A)(en,"defaults",{}),(0,v.A)(en,"datasetElementType",null),(0,v.A)(en,"dataElementType",null);class un extends en{parsePrimitiveData(t,e,i,n){return on(t,e,i,n)}parseArrayData(t,e,i,n){return on(t,e,i,n)}parseObjectData(t,e,i,n){const{iScale:s,vScale:o}=t,{xAxisKey:r="x",yAxisKey:a="y"}=this._parsing,l="x"===s.axis?r:a,h="x"===o.axis?r:a,c=[];let u,d,f,g;for(u=i,d=i+n;u<d;++u)g=e[u],f={},f[s.axis]=s.parse(mt(g,l),u),c.push(sn(mt(g,h),f,o,u));return c}updateRangeFromParsed(t,e,i,n){super.updateRangeFromParsed(t,e,i,n);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:n}=e,s=this.getParsed(t),o=s._custom,r=rn(o)?"["+o.start+", "+o.end+"]":""+n.getLabelForValue(s[n.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:r}}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,i,n){const s="reset"===n,{index:o,_cachedMeta:{vScale:r}}=this,a=r.getBasePixel(),l=r.isHorizontal(),h=this._getRuler(),{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,n);for(let d=e;d<e+i;d++){const e=this.getParsed(d),i=s||J(e[r.axis])?{base:a,head:a}:this._calculateBarValuePixels(d),f=this._calculateBarIndexPixels(d,h),g=(e._stacks||{})[r.axis],p={horizontal:l,base:i.base,enableBorderRadius:!g||rn(e._custom)||o===g._top||o===g._bottom,x:l?i.head:f.center,y:l?f.center:i.head,height:l?f.size:Math.abs(i.size),width:l?Math.abs(i.size):f.size};u&&(p.options=c||this.resolveDataElementOptions(d,t[d].active?"active":n));const m=p.options||t[d].options;an(p,m,g,o),cn(p,m,h.ratio),this.updateElement(t[d],d,p,n)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),s=i.options.stacked,o=[],r=t=>{const i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if(J(n)||isNaN(n))return!0};for(const i of n)if((void 0===e||!r(i))&&((!1===s||-1===o.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&o.push(i.stack),i.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const n=this._getStacks(t,i),s=void 0!==e?n.indexOf(e):-1;return-1===s?n.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,n=[];let s,o;for(s=0,o=e.data.length;s<o;++s)n.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const r=t.barThickness;return{min:r||nn(e),pixels:n,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:n},options:{base:s,minBarLength:o}}=this,r=s||0,a=this.getParsed(t),l=a._custom,h=rn(l);let c,u,d=a[e.axis],f=0,g=i?this.applyStack(e,a,i):d;g!==d&&(f=g-d,g=d),h&&(d=l.barStart,g=l.barEnd-l.barStart,0!==d&&Pt(d)!==Pt(l.barEnd)&&(f=0),f+=d);const p=J(s)||h?f:s;let m=e.getPixelForValue(p);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(f+g):m,u=c-m,Math.abs(u)<o){u=function(t,e,i){return 0!==t?Pt(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(u,e,r)*o,d===r&&(m-=u/2);const t=e.getPixelForDecimal(0),s=e.getPixelForDecimal(1),l=Math.min(t,s),f=Math.max(t,s);m=Math.max(Math.min(m,f),l),c=m+u,i&&!h&&(a._stacks[e.axis]._visualValues[n]=e.getValueForPixel(c)-e.getValueForPixel(m))}if(m===e.getPixelForValue(r)){const t=Pt(u)*e.getLineWidthForValue(r)/2;m+=t,u-=t}return{size:u,base:m,head:c,center:c+u/2}}_calculateBarIndexPixels(t,e){const i=e.scale,n=this.options,s=n.skipNull,o=st(n.maxBarThickness,1/0);let r,a;if(e.grouped){const i=s?this._getStackCount(t):e.stackCount,l="flex"===n.barThickness?function(t,e,i,n){const s=e.pixels,o=s[t];let r=t>0?s[t-1]:null,a=t<s.length-1?s[t+1]:null;const l=i.categoryPercentage;null===r&&(r=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-r);const h=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/n,ratio:i.barPercentage,start:h}}(t,e,n,i):function(t,e,i,n){const s=i.barThickness;let o,r;return J(s)?(o=e.min*i.categoryPercentage,r=i.barPercentage):(o=s*n,r=1),{chunk:o/n,ratio:r,start:e.pixels[t]-o/2}}(t,e,n,i),h=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);r=l.start+l.chunk*h+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),a=Math.min(o,e.min*e.ratio);return{base:r-a/2,head:r+a/2,center:r,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,n=i.length;let s=0;for(;s<n;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}}(0,v.A)(un,"id","bar"),(0,v.A)(un,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),(0,v.A)(un,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class dn extends en{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,n){const s=super.parsePrimitiveData(t,e,i,n);for(let t=0;t<s.length;t++)s[t]._custom=this.resolveDataElementOptions(t+i).radius;return s}parseArrayData(t,e,i,n){const s=super.parseArrayData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=st(n[2],this.resolveDataElementOptions(t+i).radius)}return s}parseObjectData(t,e,i,n){const s=super.parseObjectData(t,e,i,n);for(let t=0;t<s.length;t++){const n=e[i+t];s[t]._custom=st(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y),l=o._custom;return{label:i[t]||"",value:"("+r+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r}=this._cachedMeta,{sharedOptions:a,includeOptions:l}=this._getSharedOptions(e,n),h=o.axis,c=r.axis;for(let u=e;u<e+i;u++){const e=t[u],i=!s&&this.getParsed(u),d={},f=d[h]=s?o.getPixelForDecimal(.5):o.getPixelForValue(i[h]),g=d[c]=s?r.getBasePixel():r.getPixelForValue(i[c]);d.skip=isNaN(f)||isNaN(g),l&&(d.options=a||this.resolveDataElementOptions(u,e.active?"active":n),s&&(d.options.radius=0)),this.updateElement(e,u,d,n)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));const s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=st(i&&i._custom,s),n}}(0,v.A)(dn,"id","bubble"),(0,v.A)(dn,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),(0,v.A)(dn,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});class fn extends en{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 i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,o,r=t=>+i[t];if(et(i[t])){const{key:t="value"}=this._parsing;r=e=>+mt(i[e],t)}for(s=t,o=t+e;s<o;++s)n._parsed[s]=r(s)}}_getRotation(){return It(this.options.rotation-90)}_getCircumference(){return It(this.options.circumference)}_getRotationExtents(){let t=wt,e=-wt;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const n=this.chart.getDatasetMeta(i).controller,s=n._getRotation(),o=n._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,n=this._cachedMeta,s=n.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,r=Math.max((Math.min(i.width,i.height)-o)/2,0),a=Math.min((h=r,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:+l/h),1);var l,h;const c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:g,offsetX:p,offsetY:m}=function(t,e,i){let n=1,s=1,o=0,r=0;if(e<wt){const a=t,l=a+e,h=Math.cos(a),c=Math.sin(a),u=Math.cos(l),d=Math.sin(l),f=(t,e,n)=>Ht(t,a,l,!0)?1:Math.max(e,e*i,n,n*i),g=(t,e,n)=>Ht(t,a,l,!0)?-1:Math.min(e,e*i,n,n*i),p=f(0,h,u),m=f(St,c,d),b=g(_t,h,u),x=g(_t+St,c,d);n=(p-b)/2,s=(m-x)/2,o=-(p+b)/2,r=-(m+x)/2}return{ratioX:n,ratioY:s,offsetX:o,offsetY:r}}(d,u,a),b=(i.width-o)/f,x=(i.height-o)/g,y=Math.max(Math.min(b,x)/2,0),v=ot(this.options.radius,y),_=(v-Math.max(v*a,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*v,this.offsetY=m*v,n.total=this.calculateTotal(),this.outerRadius=v-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/wt)}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.chartArea,a=o.options.animation,l=(r.left+r.right)/2,h=(r.top+r.bottom)/2,c=s&&a.animateScale,u=c?0:this.innerRadius,d=c?0:this.outerRadius,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,n);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,s);for(p=e;p<e+i;++p){const e=this._circumference(p,s),i=t[p],o={x:l+this.offsetX,y:h+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:d,innerRadius:u};g&&(o.options=f||this.resolveDataElementOptions(p,i.active?"active":n)),m+=e,this.updateElement(i,p,o,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,n=0;for(i=0;i<e.length;i++){const s=t._parsed[i];null===s||isNaN(s)||!this.chart.getDataVisibility(i)||e[i].hidden||(n+=Math.abs(s))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?wt*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=fe(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let n,s,o,r,a;if(!t)for(n=0,s=i.data.datasets.length;n<s;++n)if(i.isDatasetVisible(n)){o=i.getDatasetMeta(n),t=o.data,r=o.controller;break}if(!t)return 0;for(n=0,s=t.length;n<s;++n)a=r.resolveDataElementOptions(n),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,n=t.length;i<n;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(st(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}(0,v.A)(fn,"id","doughnut"),(0,v.A)(fn,"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"}),(0,v.A)(fn,"descriptors",{_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),(0,v.A)(fn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,s)=>{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}});class gn extends en{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:r,count:a}=ee(e,n,o);this._drawStart=r,this._drawCount=a,ie(e)&&(r=0,a=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:l},t),this.updateElements(n,r,a,t)}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:c}=this._getSharedOptions(e,n),u=o.axis,d=r.axis,{spanGaps:f,segment:g}=this.options,p=Lt(f)?f:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||s||"none"===n,b=e+i,x=t.length;let y=e>0&&this.getParsed(e-1);for(let i=0;i<x;++i){const f=t[i],x=m?f:{};if(i<e||i>=b){x.skip=!0;continue}const v=this.getParsed(i),_=J(v[d]),w=x[u]=o.getPixelForValue(v[u],i),k=x[d]=s||_?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,v,a):v[d],i);x.skip=isNaN(w)||isNaN(k)||_,x.stop=i>0&&Math.abs(v[u]-y[u])>p,g&&(x.parsed=v,x.raw=l.data[i]),c&&(x.options=h||this.resolveDataElementOptions(i,f.active?"active":n)),m||this.updateElement(f,i,x,n),y=v}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}(0,v.A)(gn,"id","line"),(0,v.A)(gn,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),(0,v.A)(gn,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class pn extends en{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=fe(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return ai.bind(this)(t,e,i,n)}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,i)=>{const n=this.getParsed(i).r;!isNaN(n)&&this.chart.getDataVisibility(i)&&(n<e.min&&(e.min=n),n>e.max&&(e.max=n))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(n/2,0),o=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,n){const s="reset"===n,o=this.chart,r=o.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,h=a.yCenter,c=a.getIndexAngle(0)-.5*_t;let u,d=c;const f=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,n,f);for(u=e;u<e+i;u++){const e=t[u];let i=d,g=d+this._computeAngle(u,n,f),p=o.getDataVisibility(u)?a.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=g,s&&(r.animateScale&&(p=0),r.animateRotate&&(i=g=c));const m={x:l,y:h,innerRadius:0,outerRadius:p,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(u,e.active?"active":n)};this.updateElement(e,u,m,n)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?It(this.resolveDataElementOptions(t,e).angle||i):0}}(0,v.A)(pn,"id","polarArea"),(0,v.A)(pn,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),(0,v.A)(pn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:n}}=t.legend.options;return e.labels.map(((e,s)=>{const o=t.getDatasetMeta(0).controller.getStyle(s);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:n,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(s),index:s}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class mn extends fn{}(0,v.A)(mn,"id","pie"),(0,v.A)(mn,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class bn extends en{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return ai.bind(this)(t,e,i,n)}update(t){const e=this._cachedMeta,i=e.dataset,n=e.data||[],s=e.iScale.getLabels();if(i.points=n,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:s.length===n.length,options:e};this.updateElement(i,void 0,o,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,i,n){const s=this._cachedMeta.rScale,o="reset"===n;for(let r=e;r<e+i;r++){const e=t[r],i=this.resolveDataElementOptions(r,e.active?"active":n),a=s.getPointPositionForValue(r,this.getParsed(r).r),l=o?s.xCenter:a.x,h=o?s.yCenter:a.y,c={x:l,y:h,angle:a.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,r,c,n)}}}(0,v.A)(bn,"id","radar"),(0,v.A)(bn,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),(0,v.A)(bn,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class xn extends en{getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:n,yScale:s}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+r+", "+a+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,n=this.chart._animationsDisabled;let{start:s,count:o}=ee(e,i,n);if(this._drawStart=s,this._drawCount=o,ie(e)&&(s=0,o=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:s,_dataset:o}=e;s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=i;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(s,void 0,{animated:!n,options:r},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,s,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,n){const s="reset"===n,{iScale:o,vScale:r,_stacked:a,_dataset:l}=this._cachedMeta,h=this.resolveDataElementOptions(e,n),c=this.getSharedOptions(h),u=this.includeOptions(n,c),d=o.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=Lt(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||s||"none"===n;let x=e>0&&this.getParsed(e-1);for(let h=e;h<e+i;++h){const e=t[h],i=this.getParsed(h),g=b?e:{},y=J(i[f]),v=g[d]=o.getPixelForValue(i[d],h),_=g[f]=s||y?r.getBasePixel():r.getPixelForValue(a?this.applyStack(r,i,a):i[f],h);g.skip=isNaN(v)||isNaN(_)||y,g.stop=h>0&&Math.abs(i[d]-x[d])>m,p&&(g.parsed=i,g.raw=l.data[h]),u&&(g.options=c||this.resolveDataElementOptions(h,e.active?"active":n)),b||this.updateElement(e,h,g,n),x=i}this.updateSharedOptions(c,n,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,n=i.options&&i.options.borderWidth||0;if(!e.length)return n;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,s,o)/2}}function yn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}(0,v.A)(xn,"id","scatter"),(0,v.A)(xn,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),(0,v.A)(xn,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});class vn{static override(t){Object.assign(vn.prototype,t)}constructor(t){(0,v.A)(this,"options",void 0),this.options=t||{}}init(){}formats(){return yn()}parse(){return yn()}format(){return yn()}add(){return yn()}diff(){return yn()}startOf(){return yn()}endOf(){return yn()}}var _n={_date:vn};function wn(t,e,i,n){const{controller:s,data:o,_sorted:r}=t,a=s._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&r&&o.length){const t=a._reversePixels?qt:$t;if(!n)return t(o,e,i);if(s._sharedOptions){const n=o[0],s="function"==typeof n.getRange&&n.getRange(e);if(s){const n=t(o,e,i-s),r=t(o,e,i+s);return{lo:n.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function kn(t,e,i,n,s){const o=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:a}=o[t],{lo:l,hi:h}=wn(o[t],e,r,s);for(let t=l;t<=h;++t){const e=a[t];e.skip||n(e,i,t)}}}function Mn(t,e,i,n,s){const o=[];return s||t.isPointInArea(e)?(kn(t,i,e,(function(i,r,a){(s||De(i,t.chartArea,0))&&i.inRange(e.x,e.y,n)&&o.push({element:i,datasetIndex:r,index:a})}),!0),o):o}function An(t,e,i,n,s,o){return o||t.isPointInArea(e)?"r"!==i||n?function(t,e,i,n,s,o){let r=[];const a=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,n){const s=e?Math.abs(t.x-n.x):0,o=i?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(i);let l=Number.POSITIVE_INFINITY;return kn(t,i,e,(function(i,h,c){const u=i.inRange(e.x,e.y,s);if(n&&!u)return;const d=i.getCenterPoint(s);if(!o&&!t.isPointInArea(d)&&!u)return;const f=a(e,d);f<l?(r=[{element:i,datasetIndex:h,index:c}],l=f):f===l&&r.push({element:i,datasetIndex:h,index:c})})),r}(t,e,i,n,s,o):function(t,e,i,n){let s=[];return kn(t,i,e,(function(t,i,o){const{startAngle:r,endAngle:a}=t.getProps(["startAngle","endAngle"],n),{angle:l}=Nt(t,{x:e.x,y:e.y});Ht(l,r,a)&&s.push({element:t,datasetIndex:i,index:o})})),s}(t,e,i,s):[]}function Sn(t,e,i,n,s){const o=[],r="x"===i?"inXRange":"inYRange";let a=!1;return kn(t,i,e,((t,n,l)=>{t[r](e[i],s)&&(o.push({element:t,datasetIndex:n,index:l}),a=a||t.inRange(e.x,e.y,s))})),n&&!a?[]:o}var Tn={evaluateInteractionItems:kn,modes:{index(t,e,i,n){const s=_i(e,t),o=i.axis||"x",r=i.includeInvisible||!1,a=i.intersect?Mn(t,s,o,n,r):An(t,s,o,!1,n,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,n){const s=_i(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;let a=i.intersect?Mn(t,s,o,n,r):An(t,s,o,!1,n,r);if(a.length>0){const e=a[0].datasetIndex,i=t.getDatasetMeta(e).data;a=[];for(let t=0;t<i.length;++t)a.push({element:i[t],datasetIndex:e,index:t})}return a},point(t,e,i,n){return Mn(t,_i(e,t),i.axis||"xy",n,i.includeInvisible||!1)},nearest(t,e,i,n){const s=_i(e,t),o=i.axis||"xy",r=i.includeInvisible||!1;return An(t,s,o,i.intersect,n,r)},x(t,e,i,n){return Sn(t,_i(e,t),"x",i.intersect,n)},y(t,e,i,n){return Sn(t,_i(e,t),"y",i.intersect,n)}}};const Dn=["left","top","right","bottom"];function Cn(t,e){return t.filter((t=>t.pos===e))}function Pn(t,e){return t.filter((t=>-1===Dn.indexOf(t.pos)&&t.box.axis===e))}function On(t,e){return t.sort(((t,i)=>{const n=e?i:t,s=e?t:i;return n.weight===s.weight?n.index-s.index:n.weight-s.weight}))}function En(t,e,i,n){return Math.max(t[i],e[i])+Math.max(t[n],e[n])}function Ln(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 Rn(t,e,i,n){const{pos:s,box:o}=i,r=t.maxPadding;if(!et(s)){i.size&&(t[s]-=i.size);const e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[s]+=i.size}o.getPadding&&Ln(r,o.getPadding());const a=Math.max(0,e.outerWidth-En(r,t,"left","right")),l=Math.max(0,e.outerHeight-En(r,t,"top","bottom")),h=a!==t.w,c=l!==t.h;return t.w=a,t.h=l,i.horizontal?{same:h,other:c}:{same:c,other:h}}function In(t,e){const i=e.maxPadding;return function(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],i[t])})),n}(t?["left","right"]:["top","bottom"])}function Fn(t,e,i,n){const s=[];let o,r,a,l,h,c;for(o=0,r=t.length,h=0;o<r;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,In(a.horizontal,e));const{same:r,other:u}=Rn(e,i,a,n);h|=r&&s.length,c=c||u,l.fullSize||s.push(a)}return h&&Fn(s,e,i,n)||c}function zn(t,e,i,n,s){t.top=i,t.left=e,t.right=e+n,t.bottom=i+s,t.width=n,t.height=s}function Nn(t,e,i,n){const s=i.padding;let{x:o,y:r}=e;for(const a of t){const t=a.box,l=n[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/l.weight||1;if(a.horizontal){const n=e.w*h,o=l.size||t.height;xt(l.start)&&(r=l.start),t.fullSize?zn(t,s.left,r,i.outerWidth-s.right-s.left,o):zn(t,e.left+l.placed,r,n,o),l.start=r,l.placed+=n,r=t.bottom}else{const n=e.h*h,r=l.size||t.width;xt(l.start)&&(o=l.start),t.fullSize?zn(t,o,s.top,r,i.outerHeight-s.bottom-s.top):zn(t,o,e.top+l.placed,r,n),l.start=o,l.placed+=n,o=t.right}}e.x=o,e.y=r}var Wn={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 i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,n){if(!t)return;const s=Ue(t.options.layout.padding),o=Math.max(e-s.width,0),r=Math.max(i-s.height,0),a=function(t){const e=function(t){const e=[];let i,n,s,o,r,a;for(i=0,n=(t||[]).length;i<n;++i)s=t[i],({position:o,options:{stack:r,stackWeight:a=1}}=s),e.push({index:i,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return e}(t),i=On(e.filter((t=>t.box.fullSize)),!0),n=On(Cn(e,"left"),!0),s=On(Cn(e,"right")),o=On(Cn(e,"top"),!0),r=On(Cn(e,"bottom")),a=Pn(e,"x"),l=Pn(e,"y");return{fullSize:i,leftAndTop:n.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Cn(e,"chartArea"),vertical:n.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}(t.boxes),l=a.vertical,h=a.horizontal;at(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/c,hBoxMaxHeight:r/2}),d=Object.assign({},s);Ln(d,Ue(n));const f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),g=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:n,stackWeight:s}=i;if(!t||!Dn.includes(n))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:s}=e;let o,r,a;for(o=0,r=t.length;o<r;++o){a=t[o];const{fullSize:r}=a.box,l=i[a.stack],h=l&&a.stackWeight/l.weight;a.horizontal?(a.width=h?h*n:r&&e.availableWidth,a.height=s):(a.width=n,a.height=h?h*s:r&&e.availableHeight)}return i}(l.concat(h),u);Fn(a.fullSize,f,u,g),Fn(l,f,u,g),Fn(h,f,u,g)&&Fn(l,f,u,g),function(t){const e=t.maxPadding;function i(i){const n=Math.max(e[i]-t[i],0);return t[i]+=n,n}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),Nn(a.leftAndTop,f,u,g),f.x+=f.w,f.y+=f.h,Nn(a.rightAndBottom,f,u,g),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},at(a.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Vn{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,n){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):i)}}isAttached(t){return!0}updateConfig(t){}}class Bn extends Vn{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Hn="$chartjs",jn={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Un=t=>null===t||""===t,Yn=!!Mi&&{passive:!0};function $n(t,e,i){t.canvas.removeEventListener(e,i,Yn)}function qn(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Xn(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||qn(i.addedNodes,n),e=e&&!qn(i.removedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}function Kn(t,e,i){const n=t.canvas,s=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||qn(i.removedNodes,n),e=e&&!qn(i.addedNodes,n);e&&i()}));return s.observe(document,{childList:!0,subtree:!0}),s}const Qn=new Map;let Gn=0;function Zn(){const t=window.devicePixelRatio;t!==Gn&&(Gn=t,Qn.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Jn(t,e,i){const n=t.canvas,s=n&&pi(n);if(!s)return;const o=Zt(((t,e)=>{const n=s.clientWidth;i(t,e),n<s.clientWidth&&i()}),window),r=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,n=e.contentRect.height;0===i&&0===n||o(i,n)}));return r.observe(s),function(t,e){Qn.size||window.addEventListener("resize",Zn),Qn.set(t,e)}(t,o),r}function ts(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){Qn.delete(t),Qn.size||window.removeEventListener("resize",Zn)}(t)}function es(t,e,i){const n=t.canvas,s=Zt((e=>{null!==t.ctx&&i(function(t,e){const i=jn[t.type]||t.type,{x:n,y:s}=_i(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}(e,t))}),t);return function(t,e,i){t.addEventListener(e,i,Yn)}(n,e,s),s}class is extends Vn{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[Hn]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",Un(s)){const e=Ai(t,"width");void 0!==e&&(t.width=e)}if(Un(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Ai(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Hn])return!1;const i=e[Hn].initial;["height","width"].forEach((t=>{const n=i[t];J(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=i.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[Hn],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),s={attach:Xn,detach:Kn,resize:Jn}[e]||es;n[e]=s(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),n=i[e];n&&(({attach:ts,detach:ts,resize:ts}[e]||$n)(t,e,n),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return function(t,e,i,n){const s=bi(t),o=yi(s,"margin"),r=mi(s.maxWidth,t,"clientWidth")||Mt,a=mi(s.maxHeight,t,"clientHeight")||Mt,l=function(t,e,i){let n,s;if(void 0===e||void 0===i){const o=pi(t);if(o){const t=o.getBoundingClientRect(),r=bi(o),a=yi(r,"border","width"),l=yi(r,"padding");e=t.width-l.width-a.width,i=t.height-l.height-a.height,n=mi(r.maxWidth,o,"clientWidth"),s=mi(r.maxHeight,o,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:n||Mt,maxHeight:s||Mt}}(t,e,i);let{width:h,height:c}=l;if("content-box"===s.boxSizing){const t=yi(s,"border","width"),e=yi(s,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-o.width),c=Math.max(0,n?h/n:c-o.height),h=wi(Math.min(h,r,l.maxWidth)),c=wi(Math.min(c,a,l.maxHeight)),h&&!c&&(c=wi(h/2)),(void 0!==e||void 0!==i)&&n&&l.height&&c>l.height&&(c=l.height,h=wi(Math.floor(c*n))),{width:h,height:c}}(t,e,i,n)}isAttached(t){const e=pi(t);return!(!e||!e.isConnected)}}class ns{constructor(){(0,v.A)(this,"x",void 0),(0,v.A)(this,"y",void 0),(0,v.A)(this,"active",!1),(0,v.A)(this,"options",void 0),(0,v.A)(this,"$animations",void 0)}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Lt(this.x)&&Lt(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const n={};return t.forEach((t=>{n[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),n}}function ss(t,e,i,n,s){const o=st(n,0),r=Math.min(st(s,t.length),t.length);let a,l,h,c=0;for(i=Math.ceil(i),s&&(a=s-n,i=a/Math.floor(a/i)),h=o;h<0;)c++,h=Math.round(o+c*i);for(l=Math.max(o,0);l<r;l++)l===h&&(e.push(t[l]),c++,h=Math.round(o+c*i))}(0,v.A)(ns,"defaults",{}),(0,v.A)(ns,"defaultRoutes",void 0);const os=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,rs=(t,e)=>Math.min(e||t,t);function as(t,e){const i=[],n=t.length/e,s=t.length;let o=0;for(;o<s;o+=n)i.push(t[Math.floor(o)]);return i}function ls(t,e,i){const n=t.ticks.length,s=Math.min(e,n-1),o=t._startPixel,r=t._endPixel,a=1e-6;let l,h=t.getPixelForTick(s);if(!(i&&(l=1===n?Math.max(h-o,r-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(s-1))/2,h+=s<e?l:-l,h<o-a||h>r+a)))return h}function hs(t){return t.drawTicks?t.tickLength:0}function cs(t,e){if(!t.display)return 0;const i=Ye(t.font,e),n=Ue(t.padding);return(tt(t.text)?t.text.length:1)*i.lineHeight+n.height}function us(t,e,i){let n=Jt(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class ds extends ns{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:i,_suggestedMax:n}=this;return t=nt(t,Number.POSITIVE_INFINITY),e=nt(e,Number.NEGATIVE_INFINITY),i=nt(i,Number.POSITIVE_INFINITY),n=nt(n,Number.NEGATIVE_INFINITY),{min:nt(t,i),max:nt(e,n),minDefined:it(t),maxDefined:it(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:i,max:n};const r=this.getMatchingVisibleMetas();for(let a=0,l=r.length;a<l;++a)e=r[a].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),o||(n=Math.max(n,e.max));return i=o&&i>n?n:i,n=s&&i>n?i:n,{min:nt(i,nt(n,i)),max:nt(n,nt(i,n))}}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(){rt(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:n,grace:s,ticks:o}=this.options,r=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:n,max:s}=t,o=ot(e,(s-n)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(n,-Math.abs(o)),max:r(s,o)}}(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=r<this.ticks.length;this._convertTicksToLabels(a?as(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const i=t.options.ticks,n=function(t){const e=t.options.offset,i=t._tickSize(),n=t._length/i+(e?0:1),s=t._maxLength/i;return Math.floor(Math.min(n,s))}(t),s=Math.min(i.maxTicksLimit||n,n),o=i.major.enabled?function(t){const e=[];let i,n;for(i=0,n=t.length;i<n;i++)t[i].major&&e.push(i);return e}(e):[],r=o.length,a=o[0],l=o[r-1],h=[];if(r>s)return function(t,e,i,n){let s,o=0,r=i[0];for(n=Math.ceil(n),s=0;s<t.length;s++)s===r&&(e.push(t[s]),o++,r=i[o*n])}(e,h,o,r/s),h;const c=function(t,e,i){const n=function(t){const e=t.length;let i,n;if(e<2)return!1;for(n=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==n)return!1;return n}(t),s=e.length/i;if(!n)return Math.max(s,1);const o=function(t){const e=[],i=Math.sqrt(t);let n;for(n=1;n<i;n++)t%n==0&&(e.push(n),e.push(t/n));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(o,e,s);if(r>0){let t,i;const n=r>1?Math.round((l-a)/(r-1)):null;for(ss(e,h,c,J(n)?0:a-n,a),t=0,i=r-1;t<i;t++)ss(e,h,c,o[t],o[t+1]);return ss(e,h,c,l,J(n)?e.length:l+n),h}return ss(e,h,c),h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){rt(this.options.afterUpdate,[this])}beforeSetDimensions(){rt(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(){rt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),rt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){rt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,n,s;for(i=0,n=t.length;i<n;i++)s=t[i],s.label=rt(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){rt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){rt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=rs(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,s=e.maxRotation;let o,r,a,l=n;if(!this._isVisible()||!e.display||n>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=n);const h=this._getLabelSizes(),c=h.widest.width,u=h.highest.height,d=jt(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:d/(i-1),c+6>o&&(o=d/(i-(t.offset?.5:1)),r=this.maxHeight-hs(t.grid)-e.padding-cs(t.title,this.chart.options.font),a=Math.sqrt(c*c+u*u),l=Ft(Math.min(Math.asin(jt((h.highest.height+6)/o,-1,1)),Math.asin(jt(r/a,-1,1))-Math.asin(jt(u/a,-1,1)))),l=Math.max(n,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){rt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){rt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,o=this._isVisible(),r=this.isHorizontal();if(o){const o=cs(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=hs(s)+o):(t.height=this.maxHeight,t.width=hs(s)+o),i.display&&this.ticks.length){const{first:e,last:n,widest:s,highest:o}=this._getLabelSizes(),a=2*i.padding,l=It(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(r){const e=i.mirror?0:c*s.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=i.mirror?0:h*s.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,n,c,h)}}this._handleMargins(),r?(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,i,n){const{ticks:{align:s,padding:o},position:r}=this.options,a=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,u=0;a?l?(c=n*t.width,u=i*e.height):(c=i*t.height,u=n*e.width):"start"===s?u=e.width:"end"===s?c=t.width:"inner"!==s&&(c=t.width/2,u=e.width/2),this.paddingLeft=Math.max((c-r+o)*this.width/(this.width-r),0),this.paddingRight=Math.max((u-h+o)*this.width/(this.width-h),0)}else{let i=e.height/2,n=t.height/2;"start"===s?(i=0,n=t.height):"end"===s&&(i=e.height,n=0),this.paddingTop=i+o,this.paddingBottom=n+o}}_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(){rt(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,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)J(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=as(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:n,_longestTextCache:s}=this,o=[],r=[],a=Math.floor(e/rs(e,i));let l,h,c,u,d,f,g,p,m,b,x,y=0,v=0;for(l=0;l<e;l+=a){if(u=t[l].label,d=this._resolveTickFontOptions(l),n.font=f=d.string,g=s[f]=s[f]||{data:{},gc:[]},p=d.lineHeight,m=b=0,J(u)||tt(u)){if(tt(u))for(h=0,c=u.length;h<c;++h)x=u[h],J(x)||tt(x)||(m=we(n,g.data,g.gc,m,x),b+=p)}else m=we(n,g.data,g.gc,m,u),b=p;o.push(m),r.push(b),y=Math.max(m,y),v=Math.max(b,v)}!function(t,e){at(t,(t=>{const i=t.gc,n=i.length/2;let s;if(n>e){for(s=0;s<n;++s)delete t.data[i[s]];i.splice(0,n)}}))}(s,e);const _=o.indexOf(y),w=r.indexOf(v),k=t=>({width:o[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(_),highest:k(w),widths:o,heights:r}}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 jt(this._alignToPixels?Me(this.chart,e,0):e,-32768,32767)}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 i=e[t];return i.$context||(i.$context=function(t,e,i){return qe(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=qe(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=It(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,r=s?s.widest.width+o:0,a=s?s.highest.height+o:0;return this.isHorizontal()?a*i>r*n?r/i:a/n:a*n<r*i?a/i:r/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,n=this.options,{grid:s,position:o,border:r}=n,a=s.offset,l=this.isHorizontal(),h=this.ticks.length+(a?1:0),c=hs(s),u=[],d=r.setContext(this.getContext()),f=d.display?d.width:0,g=f/2,p=function(t){return Me(i,t,f)};let m,b,x,y,v,_,w,k,M,A,S,T;if("top"===o)m=p(this.bottom),_=this.bottom-c,k=m-g,A=p(t.top)+g,T=t.bottom;else if("bottom"===o)m=p(this.top),A=t.top,T=p(t.bottom)-g,_=m+g,k=this.top+c;else if("left"===o)m=p(this.right),v=this.right-c,w=m-g,M=p(t.left)+g,S=t.right;else if("right"===o)m=p(this.left),M=t.left,S=p(t.right)-g,v=m+g,w=this.left+c;else if("x"===e){if("center"===o)m=p((t.top+t.bottom)/2+.5);else if(et(o)){const t=Object.keys(o)[0],e=o[t];m=p(this.chart.scales[t].getPixelForValue(e))}A=t.top,T=t.bottom,_=m+g,k=_+c}else if("y"===e){if("center"===o)m=p((t.left+t.right)/2);else if(et(o)){const t=Object.keys(o)[0],e=o[t];m=p(this.chart.scales[t].getPixelForValue(e))}v=m-g,w=v-c,M=t.left,S=t.right}const D=st(n.ticks.maxTicksLimit,h),C=Math.max(1,Math.ceil(h/D));for(b=0;b<h;b+=C){const t=this.getContext(b),e=s.setContext(t),n=r.setContext(t),o=e.lineWidth,h=e.color,c=n.dash||[],d=n.dashOffset,f=e.tickWidth,g=e.tickColor,p=e.tickBorderDash||[],m=e.tickBorderDashOffset;x=ls(this,b,a),void 0!==x&&(y=Me(i,x,o),l?v=w=M=S=y:_=k=A=T=y,u.push({tx1:v,ty1:_,tx2:w,ty2:k,x1:M,y1:A,x2:S,y2:T,width:o,color:h,borderDash:c,borderDashOffset:d,tickWidth:f,tickColor:g,tickBorderDash:p,tickBorderDashOffset:m}))}return this._ticksLength=h,this._borderValue=m,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:n,ticks:s}=i,o=this.isHorizontal(),r=this.ticks,{align:a,crossAlign:l,padding:h,mirror:c}=s,u=hs(i.grid),d=u+h,f=c?-h:d,g=-It(this.labelRotation),p=[];let m,b,x,y,v,_,w,k,M,A,S,T,D="middle";if("top"===n)_=this.bottom-f,w=this._getXAxisLabelAlignment();else if("bottom"===n)_=this.top+f,w=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,v=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(u);w=t.textAlign,v=t.x}else if("x"===e){if("center"===n)_=(t.top+t.bottom)/2+d;else if(et(n)){const t=Object.keys(n)[0],e=n[t];_=this.chart.scales[t].getPixelForValue(e)+d}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)v=(t.left+t.right)/2-d;else if(et(n)){const t=Object.keys(n)[0],e=n[t];v=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===a?D="top":"end"===a&&(D="bottom"));const C=this._getLabelSizes();for(m=0,b=r.length;m<b;++m){x=r[m],y=x.label;const t=s.setContext(this.getContext(m));k=this.getPixelForTick(m)+s.labelOffset,M=this._resolveTickFontOptions(m),A=M.lineHeight,S=tt(y)?y.length:1;const e=S/2,i=t.color,a=t.textStrokeColor,h=t.textStrokeWidth;let u,d=w;if(o?(v=k,"inner"===w&&(d=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),T="top"===n?"near"===l||0!==g?-S*A+A/2:"center"===l?-C.highest.height/2-e*A+A:-C.highest.height+A/2:"near"===l||0!==g?A/2:"center"===l?C.highest.height/2-e*A:C.highest.height-S*A,c&&(T*=-1),0===g||t.showLabelBackdrop||(v+=A/2*Math.sin(g))):(_=k,T=(1-S)*A/2),t.showLabelBackdrop){const e=Ue(t.backdropPadding),i=C.heights[m],n=C.widths[m];let s=T-e.top,o=0-e.left;switch(D){case"middle":s-=i/2;break;case"bottom":s-=i}switch(w){case"center":o-=n/2;break;case"right":o-=n;break;case"inner":m===b-1?o-=n:m>0&&(o-=n/2)}u={left:o,top:s,width:n+e.width,height:i+e.height,color:t.backdropColor}}p.push({label:y,font:M,textOffset:T,options:{rotation:g,color:i,strokeColor:a,strokeWidth:h,textAlign:d,textBaseline:D,translation:[v,_],backdrop:u}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-It(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:n,padding:s}}=this.options,o=t+s,r=this._getLabelSizes().widest.width;let a,l;return"left"===e?n?(l=this.right+s,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l+=r)):(l=this.right-o,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l=this.left)):"right"===e?n?(l=this.left+s,"near"===i?a="right":"center"===i?(a="center",l-=r/2):(a="left",l-=r)):(l=this.left+o,"near"===i?a="left":"center"===i?(a="center",l+=r/2):(a="right",l=this.right)):a="right",{textAlign:a,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:i,top:n,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,n,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const r=(t,e,n)=>{n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=n.length;s<o;++s){const t=n[s];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({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:i,grid:n}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,h,c,u;this.isHorizontal()?(l=Me(t,this.left,o)-o/2,h=Me(t,this.right,r)+r/2,c=u=a):(c=Me(t,this.top,o)-o/2,u=Me(t,this.bottom,r)+r/2,l=h=a),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(l,c),e.lineTo(h,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Ce(e,i);const n=this.getLabelItems(t);for(const t of n){const i=t.options,n=t.font;Ie(e,t.label,0,t.textOffset,n,i)}i&&Pe(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;const s=Ye(i.font),o=Ue(i.padding),r=i.align;let a=s.lineHeight/2;"bottom"===e||"center"===e||et(e)?(a+=o.bottom,tt(i.text)&&(a+=s.lineHeight*(i.text.length-1))):a+=o.top;const{titleX:l,titleY:h,maxWidth:c,rotation:u}=function(t,e,i,n){const{top:s,left:o,bottom:r,right:a,chart:l}=t,{chartArea:h,scales:c}=l;let u,d,f,g=0;const p=r-s,m=a-o;if(t.isHorizontal()){if(d=te(n,o,a),et(i)){const t=Object.keys(i)[0],n=i[t];f=c[t].getPixelForValue(n)+p-e}else f="center"===i?(h.bottom+h.top)/2+p-e:os(t,i,e);u=a-o}else{if(et(i)){const t=Object.keys(i)[0],n=i[t];d=c[t].getPixelForValue(n)-m+e}else d="center"===i?(h.left+h.right)/2-m+e:os(t,i,e);f=te(n,r,s),g="left"===i?-St:St}return{titleX:d,titleY:f,maxWidth:u,rotation:g}}(this,a,e,r);Ie(t,i.text,0,0,s,{color:i.color,maxWidth:c,rotation:u,textAlign:us(r,e,n),textBaseline:"middle",translation:[l,h]})}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,i=st(t.grid&&t.grid.z,-1),n=st(t.border&&t.border.z,0);return this._isVisible()&&this.draw===ds.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",n=[];let s,o;for(s=0,o=e.length;s<o;++s){const o=e[s];o[i]!==this.id||t&&o.type!==t||n.push(o)}return n}_resolveTickFontOptions(t){return Ye(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class fs{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,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 i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const n=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in n||(n[s]=t,function(t,e,i){const n=dt(Object.create(null),[i?_e.get(i):{},_e.get(e),t.defaults]);_e.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const n=i.split("."),s=n.pop(),o=[t].concat(n).join("."),r=e[i].split("."),a=r.pop(),l=r.join(".");_e.route(o,s,l,a)}))}(e,t.defaultRoutes),t.descriptors&&_e.describe(e,t.descriptors)}(t,o,i),this.override&&_e.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in _e[n]&&(delete _e[n][i],this.override&&delete me[i])}}class gs{constructor(){this.controllers=new fs(en,"datasets",!0),this.elements=new fs(ns,"elements"),this.plugins=new fs(Object,"plugins"),this.scales=new fs(ds,"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,i){[...e].forEach((e=>{const n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):at(e,(e=>{const n=i||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,i){const n=bt(t);rt(i["before"+n],[],i),e[t](i),rt(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+i+".");return n}}var ps=new gs;class ms{constructor(){this._init=[]}notify(t,e,i,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=n?this._descriptors(t).filter(n):this._descriptors(t),o=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,n){n=n||{};for(const s of t){const t=s.plugin;if(!1===rt(t[i],[e,n,s.options],t)&&n.cancelable)return!1}return!0}invalidate(){J(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 i=t&&t.config,n=st(i.options&&i.options.plugins,{}),s=function(t){const e={},i=[],n=Object.keys(ps.plugins.items);for(let t=0;t<n.length;t++)i.push(ps.getPlugin(n[t]));const s=t.plugins||[];for(let t=0;t<s.length;t++){const n=s[t];-1===i.indexOf(n)&&(i.push(n),e[n.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==n||e?function(t,{plugins:e,localIds:i},n,s){const o=[],r=t.getContext();for(const a of e){const e=a.id,l=bs(n[e],s);null!==l&&o.push({plugin:a,options:xs(t.config,{plugin:a,local:i[e]},l,r)})}return o}(t,s,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,i),t,"stop"),this._notify(n(i,e),t,"start")}}function bs(t,e){return e||!1!==t?!0===t?{}:t:null}function xs(t,{plugin:e,local:i},n,s){const o=t.pluginScopeKeys(e),r=t.getOptionScopes(n,o);return i&&e.defaults&&r.push(e.defaults),t.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ys(t,e){const i=_e.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function vs(t){if("x"===t||"y"===t||"r"===t)return t}function _s(t,...e){if(vs(t))return t;for(const n of e){const e=n.axis||("top"===(i=n.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&vs(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function ws(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function ks(t){const e=t.options||(t.options={});e.plugins=st(e.plugins,{}),e.scales=function(t,e){const i=me[t.type]||{scales:{}},n=e.scales||{},s=ys(t.type,e),o=Object.create(null);return Object.keys(n).forEach((e=>{const r=n[e];if(!et(r))return console.error(`Invalid scale configuration for scale: ${e}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=_s(e,r,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return ws(t,"x",i[0])||ws(t,"y",i[0])}return{}}(e,t),_e.scales[r.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,s),h=i.scales||{};o[e]=ft(Object.create(null),[{axis:a},r,h[a],h[l]])})),t.data.datasets.forEach((i=>{const s=i.type||t.type,r=i.indexAxis||ys(s,e),a=(me[s]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),s=i[e+"AxisID"]||e;o[s]=o[s]||Object.create(null),ft(o[s],[{axis:e},n[s],a[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];ft(e,[_e.scales[e.type],_e.scale])})),o}(t,e)}function Ms(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const As=new Map,Ss=new Set;function Ts(t,e){let i=As.get(t);return i||(i=e(),As.set(t,i),Ss.add(i)),i}const Ds=(t,e,i)=>{const n=mt(e,i);void 0!==n&&t.add(n)};class Cs{constructor(t){this._config=function(t){return(t=t||{}).data=Ms(t.data),ks(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=Ms(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(),ks(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Ts(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Ts(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Ts(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Ts(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let n=i.get(t);return n&&!e||(n=new Map,i.set(t,n)),n}getOptionScopes(t,e,i){const{options:n,type:s}=this,o=this._cachedScopes(t,i),r=o.get(e);if(r)return r;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>Ds(a,t,e)))),e.forEach((t=>Ds(a,n,t))),e.forEach((t=>Ds(a,me[s]||{},t))),e.forEach((t=>Ds(a,_e,t))),e.forEach((t=>Ds(a,be,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),Ss.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,me[e]||{},_e.datasets[e]||{},{type:e},_e,be]}resolveNamedOptions(t,e,i,n=[""]){const s={$shared:!0},{resolver:o,subPrefixes:r}=Ps(this._resolverCache,t,n);let a=o;(function(t,e){const{isScriptable:i,isIndexable:n}=Qe(t);for(const s of e){const e=i(s),o=n(s),r=(o||e)&&t[s];if(e&&(yt(r)||Os(r))||o&&tt(r))return!0}return!1})(o,e)&&(s.$shared=!1,a=Ke(o,i=yt(i)?i():i,this.createResolver(t,i,r)));for(const t of e)s[t]=a[t];return s}createResolver(t,e,i=[""],n){const{resolver:s}=Ps(this._resolverCache,t,i);return et(e)?Ke(s,e,void 0,n):s}}function Ps(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));const s=i.join();let o=n.get(s);return o||(o={resolver:Xe(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},n.set(s,o)),o}const Os=t=>et(t)&&Object.getOwnPropertyNames(t).some((e=>yt(t[e]))),Es=["top","bottom","left","right","chartArea"];function Ls(t,e){return"top"===t||"bottom"===t||-1===Es.indexOf(t)&&"x"===e}function Rs(t,e){return function(i,n){return i[t]===n[t]?i[e]-n[e]:i[t]-n[t]}}function Is(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),rt(i&&i.onComplete,[t],e)}function Fs(t){const e=t.chart,i=e.options.animation;rt(i&&i.onProgress,[t],e)}function zs(t){return gi()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ns={},Ws=t=>{const e=zs(t);return Object.values(Ns).filter((t=>t.canvas===e)).pop()};function Vs(t,e,i){const n=Object.keys(t);for(const s of n){const n=+s;if(n>=e){const o=t[s];delete t[s],(i>0||n>e)&&(t[n+i]=o)}}}function Bs(t,e,i){return t.options.clip?t[i]:e[i]}class Hs{static register(...t){ps.add(...t),js()}static unregister(...t){ps.remove(...t),js()}constructor(t,e){const i=this.config=new Cs(e),n=zs(t),s=Ws(n);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!gi()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Bn:is}(n)),this.platform.updateConfig(i);const r=this.platform.acquireContext(n,o.aspectRatio),a=r&&r.canvas,l=a&&a.height,h=a&&a.width;this.id=Z(),this.ctx=r,this.canvas=a,this.width=h,this.height=l,this._options=o,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 ms,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...n){return e?(clearTimeout(i),i=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Ns[this.id]=this,r&&a?(Wi.listen(this,"complete",Is),Wi.listen(this,"progress",Fs),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:i,height:n,_aspectRatio:s}=this;return J(t)?e&&s?s:n?i/n: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 ps}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ki(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ae(this.canvas,this.ctx),this}stop(){return Wi.stop(this),this}resize(t,e){Wi.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(n,t,e,s),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ki(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),rt(i.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){at(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const i=e[t],n=_s(t,i),s="r"===n,o="x"===n;return{options:i,dposition:s?"chartArea":o?"bottom":"left",dtype:s?"radialLinear":o?"category":"linear"}})))),at(s,(e=>{const s=e.options,o=s.id,r=_s(o,s),a=st(s.type,e.dtype);void 0!==s.position&&Ls(s.position,r)===Ls(e.dposition)||(s.position=e.dposition),n[o]=!0;let l=null;o in i&&i[o].type===a?l=i[o]:(l=new(ps.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(s,t)})),at(n,((t,e)=>{t||delete i[e]})),at(i,(t=>{Wn.configure(this,t,t.options),Wn.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Rs("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,n;for(this._removeUnreferencedMetasets(),i=0,n=e.length;i<n;i++){const n=e[i];let s=this.getDatasetMeta(i);const o=n.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=o,s.indexAxis=n.indexAxis||ys(o,this.options),s.order=n.order||0,s.index=i,s.label=""+n.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const e=ps.getController(o),{datasetElementType:n,dataElementType:r}=_e.datasets[o];Object.assign(e,{dataElementType:ps.getElement(r),datasetElementType:n&&ps.getElement(n)}),s.controller=new e(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){at(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 i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!n&&-1===s.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),n||at(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Rs("z","_idx"));const{_active:r,_lastEvent:a}=this;a?this._eventHandler(a,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){at(this.scales,(t=>{Wn.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);vt(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:n,count:s}of e)Vs(t,n,"_removeElements"===i?-s:s)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=i(0);for(let t=1;t<e;t++)if(!vt(n,i(t)))return;return Array.from(n).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;Wn.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],at(this.boxes,(t=>{i&&"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,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,yt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),n={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(i.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Wi.has(this)?this.attached&&!Wi.running(this)&&Wi.start(this):(this.draw(),Is({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}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,i=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];t&&!s.visible||i.push(s)}return i}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,i=t._clip,n=!i.disabled,s=function(t,e){const{xScale:i,yScale:n}=t;return i&&n?{left:Bs(i,e,"left"),right:Bs(i,e,"right"),top:Bs(n,e,"top"),bottom:Bs(n,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(n&&Ce(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&Pe(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return De(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,n){const s=Tn.modes[e];return"function"==typeof s?s(this,t,i,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let n=i.filter((t=>t&&t._dataset===e)).pop();return n||(n={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},i.push(n)),n}getContext(){return this.$context||(this.$context=qe(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.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,i){const n=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,n);xt(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update((e=>e.datasetIndex===t?n: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(),Wi.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(),Ae(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Ns[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,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};at(this.options.events,(t=>i(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,n)=>{e.addEventListener(this,i,n),t[i]=n},n=(i,n)=>{t[i]&&(e.removeEventListener(this,i,n),delete t[i])},s=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const r=()=>{n("attach",r),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():o()}unbindEvents(){at(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},at(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const n=i?"set":"remove";let s,o,r,a;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+n+"DatasetHoverStyle"]()),r=0,a=t.length;r<a;++r){o=t[r];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[n+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!lt(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const n=this.options.hover,s=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=s(e,t),r=i?t:s(t,e);o.length&&this.updateHoverStyle(o,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,n))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,n),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:n=[],options:s}=this,o=e,r=this._getActiveElements(t,n,i,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,n){return i&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,i,a);i&&(this._lastEvent=null,rt(s.onHover,[t,r,this],this),a&&rt(s.onClick,[t,r,this],this));const h=!lt(r,n);return(h||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,n){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,n)}}function js(){return at(Hs.instances,(t=>t._plugins.invalidate()))}function Us(t,e,i,n){return{x:i+t*Math.cos(e),y:n+t*Math.sin(e)}}function Ys(t,e,i,n,s,o){const{x:r,y:a,startAngle:l,pixelMargin:h,innerRadius:c}=e,u=Math.max(e.outerRadius+n+i-h,0),d=c>0?c+n+i+h:0;let f=0;const g=s-l;if(n){const t=((c>0?c-n:0)+(u>0?u-n:0))/2;f=(g-(0!==t?g*t/(t+n):g))/2}const p=(g-Math.max(.001,g*u-i/_t)/u)/2,m=l+p+f,b=s-p-f,{outerStart:x,outerEnd:y,innerStart:v,innerEnd:_}=function(t,e,i,n){const s=Be(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(i-e)/2,r=Math.min(o,n*e/2),a=t=>{const e=(i-Math.min(o,t))*n/2;return jt(t,0,Math.min(o,e))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:jt(s.innerStart,0,r),innerEnd:jt(s.innerEnd,0,r)}}(e,d,u,b-m),w=u-x,k=u-y,M=m+x/w,A=b-y/k,S=d+v,T=d+_,D=m+v/S,C=b-_/T;if(t.beginPath(),o){const e=(M+A)/2;if(t.arc(r,a,u,M,e),t.arc(r,a,u,e,A),y>0){const e=Us(k,A,r,a);t.arc(e.x,e.y,y,A,b+St)}const i=Us(T,b,r,a);if(t.lineTo(i.x,i.y),_>0){const e=Us(T,C,r,a);t.arc(e.x,e.y,_,b+St,C+Math.PI)}const n=(b-_/d+(m+v/d))/2;if(t.arc(r,a,d,b-_/d,n,!0),t.arc(r,a,d,n,m+v/d,!0),v>0){const e=Us(S,D,r,a);t.arc(e.x,e.y,v,D+Math.PI,m-St)}const s=Us(w,m,r,a);if(t.lineTo(s.x,s.y),x>0){const e=Us(w,M,r,a);t.arc(e.x,e.y,x,m-St,M)}}else{t.moveTo(r,a);const e=Math.cos(M)*u+r,i=Math.sin(M)*u+a;t.lineTo(e,i);const n=Math.cos(A)*u+r,s=Math.sin(A)*u+a;t.lineTo(n,s)}t.closePath()}(0,v.A)(Hs,"defaults",_e),(0,v.A)(Hs,"instances",Ns),(0,v.A)(Hs,"overrides",me),(0,v.A)(Hs,"registry",ps),(0,v.A)(Hs,"version","4.4.1"),(0,v.A)(Hs,"getChart",Ws);class $s extends ns{constructor(t){super(),(0,v.A)(this,"circumference",void 0),(0,v.A)(this,"endAngle",void 0),(0,v.A)(this,"fullCircles",void 0),(0,v.A)(this,"innerRadius",void 0),(0,v.A)(this,"outerRadius",void 0),(0,v.A)(this,"pixelMargin",void 0),(0,v.A)(this,"startAngle",void 0),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,i){const n=this.getProps(["x","y"],i),{angle:s,distance:o}=Nt(n,{x:t,y:e}),{startAngle:r,endAngle:a,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=(this.options.spacing+this.options.borderWidth)/2,d=st(c,a-r)>=wt||Ht(s,r,a),f=Ut(o,l+u,h+u);return d&&f}getCenterPoint(t){const{x:e,y:i,startAngle:n,endAngle:s,innerRadius:o,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:l}=this.options,h=(n+s)/2,c=(o+r+l+a)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,n=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>wt?Math.floor(i/wt):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const r=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(r)*n,Math.sin(r)*n);const a=n*(1-Math.sin(Math.min(_t,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a}=e;let l=e.endAngle;if(o){Ys(t,e,i,n,l,s);for(let e=0;e<o;++e)t.fill();isNaN(a)||(l=r+(a%wt||wt))}Ys(t,e,i,n,l,s),t.fill()}(t,this,a,s,o),function(t,e,i,n,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=e,{borderWidth:h,borderJoinStyle:c,borderDash:u,borderDashOffset:d}=l,f="inner"===l.borderAlign;if(!h)return;t.setLineDash(u||[]),t.lineDashOffset=d,f?(t.lineWidth=2*h,t.lineJoin=c||"round"):(t.lineWidth=h,t.lineJoin=c||"bevel");let g=e.endAngle;if(o){Ys(t,e,i,n,g,s);for(let e=0;e<o;++e)t.stroke();isNaN(a)||(g=r+(a%wt||wt))}f&&function(t,e,i){const{startAngle:n,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=e;let h=s/a;t.beginPath(),t.arc(o,r,a,n-h,i+h),l>s?(h=s/l,t.arc(o,r,l,i+h,n-h,!0)):t.arc(o,r,s,i+St,n-St),t.closePath(),t.clip()}(t,e,g),o||(Ys(t,e,i,n,g,s),t.stroke())}(t,this,a,s,o),t.restore()}}function qs(t,e,i=e){t.lineCap=st(i.borderCapStyle,e.borderCapStyle),t.setLineDash(st(i.borderDash,e.borderDash)),t.lineDashOffset=st(i.borderDashOffset,e.borderDashOffset),t.lineJoin=st(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=st(i.borderWidth,e.borderWidth),t.strokeStyle=st(i.borderColor,e.borderColor)}function Xs(t,e,i){t.lineTo(i.x,i.y)}function Ks(t,e,i={}){const n=t.length,{start:s=0,end:o=n-1}=i,{start:r,end:a}=e,l=Math.max(s,r),h=Math.min(o,a),c=s<r&&o<r||s>a&&o>a;return{count:n,start:l,loop:e.loop,ilen:h<l&&!c?n+h-l:h-l}}function Qs(t,e,i,n){const{points:s,options:o}=e,{count:r,start:a,loop:l,ilen:h}=Ks(s,i,n),c=function(t){return t.stepped?Oe:t.tension||"monotone"===t.cubicInterpolationMode?Ee:Xs}(o);let u,d,f,{move:g=!0,reverse:p}=n||{};for(u=0;u<=h;++u)d=s[(a+(p?h-u:u))%r],d.skip||(g?(t.moveTo(d.x,d.y),g=!1):c(t,f,d,p,o.stepped),f=d);return l&&(d=s[(a+(p?h:0))%r],c(t,f,d,p,o.stepped)),!!l}function Gs(t,e,i,n){const s=e.points,{count:o,start:r,ilen:a}=Ks(s,i,n),{move:l=!0,reverse:h}=n||{};let c,u,d,f,g,p,m=0,b=0;const x=t=>(r+(h?a-t:t))%o,y=()=>{f!==g&&(t.lineTo(m,g),t.lineTo(m,f),t.lineTo(m,p))};for(l&&(u=s[x(0)],t.moveTo(u.x,u.y)),c=0;c<=a;++c){if(u=s[x(c)],u.skip)continue;const e=u.x,i=u.y,n=0|e;n===d?(i<f?f=i:i>g&&(g=i),m=(b*m+e)/++b):(y(),t.lineTo(e,i),d=n,b=0,f=g=i),p=i}y()}function Zs(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?Qs:Gs}(0,v.A)($s,"id","arc"),(0,v.A)($s,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),(0,v.A)($s,"defaultRoutes",{backgroundColor:"backgroundColor"}),(0,v.A)($s,"descriptors",{_scriptable:!0,_indexable:t=>"borderDash"!==t});const Js="function"==typeof Path2D;class to extends ns{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 i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const n=i.spanGaps?this._loop:this._fullLoop;fi(this._points,i,t,n,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 i=t.points,n=t.options.spanGaps,s=i.length;if(!s)return[];const o=!!t._loop,{start:r,end:a}=function(t,e,i,n){let s=0,o=e-1;if(i&&!n)for(;s<e&&!t[s].skip;)s++;for(;s<e&&t[s].skip;)s++;for(s%=e,i&&(o+=s);o>s&&t[o%e].skip;)o--;return o%=e,{start:s,end:o}}(i,s,o,n);return function(t,e,i,n){return n&&n.setContext&&i?function(t,e,i,n){const s=t._chart.getContext(),o=Fi(t.options),{_datasetIndex:r,options:{spanGaps:a}}=t,l=i.length,h=[];let c=o,u=e[0].start,d=u;function f(t,e,n,s){const o=a?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=o;for(;i[e%l].skip;)e+=o;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:n,style:s}),c=s,u=e%l)}}for(const t of e){u=a?u:t.start;let e,o=i[u%l];for(d=u+1;d<=t.end;d++){const a=i[d%l];e=Fi(n.setContext(qe(s,{type:"segment",p0:o,p1:a,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:r}))),zi(e,c)&&f(u,d-1,t.loop,c),o=a,c=e}u<d-1&&f(u,d-1,t.loop,c)}return h}(t,e,i,n):e}(t,!0===n?[{start:r,end:a,loop:o}]:function(t,e,i,n){const s=t.length,o=[];let r,a=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%s];i.skip||i.stop?l.skip||(n=!1,o.push({start:e%s,end:(r-1)%s,loop:n}),e=a=i.stop?r:null):(a=r,l.skip&&(e=r)),l=i}return null!==a&&o.push({start:e%s,end:a%s,loop:n}),o}(i,r,a<r?a+s:a,!!t._fullLoop&&0===r&&a===s-1),i,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,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,n=t[e],s=this.points,o=Ii(this,{property:e,start:n,end:n});if(!o.length)return;const r=[],a=function(t){return t.stepped?Ti:t.tension||"monotone"===t.cubicInterpolationMode?Di:Si}(i);let l,h;for(l=0,h=o.length;l<h;++l){const{start:h,end:c}=o[l],u=s[h],d=s[c];if(u===d){r.push(u);continue}const f=a(u,d,Math.abs((n-u[e])/(d[e]-u[e])),i.stepped);f[e]=t[e],r.push(f)}return 1===r.length?r[0]:r}pathSegment(t,e,i){return Zs(this)(t,this,e,i)}path(t,e,i){const n=this.segments,s=Zs(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const r of n)o&=s(t,this,r,{start:e,end:e+i-1});return!!o}draw(t,e,i,n){const s=this.options||{};(this.points||[]).length&&s.borderWidth&&(t.save(),function(t,e,i,n){Js&&!e.options.segment?function(t,e,i,n){let s=e._path;s||(s=e._path=new Path2D,e.path(s,i,n)&&s.closePath()),qs(t,e.options),t.stroke(s)}(t,e,i,n):function(t,e,i,n){const{segments:s,options:o}=e,r=Zs(e);for(const a of s)qs(t,o,a.style),t.beginPath(),r(t,e,a,{start:i,end:i+n-1})&&t.closePath(),t.stroke()}(t,e,i,n)}(t,this,i,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function eo(t,e,i,n){const s=t.options,{[i]:o}=t.getProps([i],n);return Math.abs(e-o)<s.radius+s.hitRadius}(0,v.A)(to,"id","line"),(0,v.A)(to,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),(0,v.A)(to,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),(0,v.A)(to,"descriptors",{_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t});class io extends ns{constructor(t){super(),(0,v.A)(this,"parsed",void 0),(0,v.A)(this,"skip",void 0),(0,v.A)(this,"stop",void 0),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const n=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return eo(this,t,"x",e)}inYRange(t,e){return eo(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!De(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Se(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function no(t,e){const{x:i,y:n,base:s,width:o,height:r}=t.getProps(["x","y","base","width","height"],e);let a,l,h,c,u;return t.horizontal?(u=r/2,a=Math.min(i,s),l=Math.max(i,s),h=n-u,c=n+u):(u=o/2,a=i-u,l=i+u,h=Math.min(n,s),c=Math.max(n,s)),{left:a,top:h,right:l,bottom:c}}function so(t,e,i,n){return t?0:jt(e,i,n)}function oo(t,e,i,n){const s=null===e,o=null===i,r=t&&!(s&&o)&&no(t,n);return r&&(s||Ut(e,r.left,r.right))&&(o||Ut(i,r.top,r.bottom))}function ro(t,e){t.rect(e.x,e.y,e.w,e.h)}function ao(t,e,i={}){const n=t.x!==i.x?-e:0,s=t.y!==i.y?-e:0,o=(t.x+t.w!==i.x+i.w?e:0)-n,r=(t.y+t.h!==i.y+i.h?e:0)-s;return{x:t.x+n,y:t.y+s,w:t.w+o,h:t.h+r,radius:t.radius}}(0,v.A)(io,"id","point"),(0,v.A)(io,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),(0,v.A)(io,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class lo extends ns{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:i,backgroundColor:n}}=this,{inner:s,outer:o}=function(t){const e=no(t),i=e.right-e.left,n=e.bottom-e.top,s=function(t,e,i){const n=t.options.borderWidth,s=t.borderSkipped,o=He(n);return{t:so(s.top,o.top,0,i),r:so(s.right,o.right,0,e),b:so(s.bottom,o.bottom,0,i),l:so(s.left,o.left,0,e)}}(t,i/2,n/2),o=function(t,e,i){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=je(s),r=Math.min(e,i),a=t.borderSkipped,l=n||et(s);return{topLeft:so(!l||a.top||a.left,o.topLeft,0,r),topRight:so(!l||a.top||a.right,o.topRight,0,r),bottomLeft:so(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:so(!l||a.bottom||a.right,o.bottomRight,0,r)}}(t,i/2,n/2);return{outer:{x:e.left,y:e.top,w:i,h:n,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:i-s.l-s.r,h:n-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}(this),r=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?Fe:ro;var a;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),r(t,ao(o,e,s)),t.clip(),r(t,ao(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),r(t,ao(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return oo(this,t,e,i)}inXRange(t,e){return oo(this,t,null,e)}inYRange(t,e){return oo(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:n,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+n)/2:e,y:s?i:(i+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function ho(t,e,i,n){if(n)return;let s=e[t],o=i[t];return"angle"===t&&(s=Bt(s),o=Bt(o)),{property:t,start:s,end:o}}function co(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function uo(t,e,i,n){return t&&e?n(t[i],e[i]):t?t[i]:e?e[i]:0}function fo(t,e){let i=[],n=!1;return tt(t)?(n=!0,i=t):i=function(t,e){const{x:i=null,y:n=null}=t||{},s=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=co(t,e,s);const r=s[t],a=s[e];null!==n?(o.push({x:r.x,y:n}),o.push({x:a.x,y:n})):null!==i&&(o.push({x:i,y:r.y}),o.push({x:i,y:a.y}))})),o}(t,e),i.length?new to({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function go(t){return t&&!1!==t.fill}function po(t,e,i){let n=t[e].fill;const s=[e];let o;if(!i)return n;for(;!1!==n&&-1===s.indexOf(n);){if(!it(n))return n;if(o=t[n],!o)return!1;if(o.visible)return n;s.push(n),n=o.fill}return!1}function mo(t,e,i){const n=function(t){const e=t.options,i=e.fill;let n=st(i&&i.target,i);return void 0===n&&(n=!!e.backgroundColor),!1!==n&&null!==n&&(!0===n?"origin":n)}(t);if(et(n))return!isNaN(n.value)&&n;let s=parseFloat(n);return it(s)&&Math.floor(s)===s?function(t,e,i,n){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=n)&&i}(n[0],e,s,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function bo(t,e,i){const n=[];for(let s=0;s<i.length;s++){const o=i[s],{first:r,last:a,point:l}=xo(o,e,"x");if(!(!l||r&&a))if(r)n.unshift(l);else if(t.push(l),!a)break}t.push(...n)}function xo(t,e,i){const n=t.interpolate(e,i);if(!n)return{};const s=n[i],o=t.segments,r=t.points;let a=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],n=r[e.start][i],h=r[e.end][i];if(Ut(s,n,h)){a=s===n,l=s===h;break}}return{first:a,last:l,point:n}}(0,v.A)(lo,"id","bar"),(0,v.A)(lo,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),(0,v.A)(lo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});class yo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:n,y:s,radius:o}=this;return e=e||{start:0,end:wt},t.arc(n,s,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:n}=this,s=t.angle;return{x:e+Math.cos(s)*n,y:i+Math.sin(s)*n,angle:s}}}function vo(t,e,i){const n=function(t){const{chart:e,fill:i,line:n}=t;if(it(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:n}=t,s=[],o=n.segments,r=n.points,a=function(t,e){const i=[],n=t.getMatchingVisibleMetas("line");for(let t=0;t<n.length;t++){const s=n[t];if(s.index===e)break;s.hidden||i.unshift(s.dataset)}return i}(e,i);a.push(fo({x:null,y:e.bottom},n));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)bo(s,r[t],a)}return new to({points:s,options:{}})}(t);if("shape"===i)return!0;const s=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,n=e.options,s=e.getLabels().length,o=n.reverse?e.max:e.min,r=function(t,e,i){let n;return n="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:et(t)?t.value:e.getBaseValue(),n}(i,e,o),a=[];if(n.grid.circular){const t=e.getPointPositionForValue(0,o);return new yo({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<s;++t)a.push(e.getPointPositionForValue(t,r));return a}(t):function(t){const{scale:e={},fill:i}=t,n=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:et(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(it(n)){const t=e.isHorizontal();return{x:t?n:null,y:t?null:n}}return null}(t)}(t);return s instanceof yo?s:fo(s,n)}(e),{line:s,scale:o,axis:r}=e,a=s.options,l=a.fill,h=a.backgroundColor,{above:c=h,below:u=h}=l||{};n&&s.points.length&&(Ce(t,i),function(t,e){const{line:i,target:n,above:s,below:o,area:r,scale:a}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&o!==s&&(_o(t,n,r.top),wo(t,{line:i,target:n,color:s,scale:a,property:l}),t.restore(),t.save(),_o(t,n,r.bottom)),wo(t,{line:i,target:n,color:o,scale:a,property:l}),t.restore()}(t,{line:s,target:n,above:c,below:u,area:i,scale:o,axis:r}),Pe(t))}function _o(t,e,i){const{segments:n,points:s}=e;let o=!0,r=!1;t.beginPath();for(const a of n){const{start:n,end:l}=a,h=s[n],c=s[co(n,l,s)];o?(t.moveTo(h.x,h.y),o=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),r=!!e.pathSegment(t,a,{move:r}),r?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function wo(t,e){const{line:i,target:n,property:s,color:o,scale:r}=e,a=function(t,e,i){const n=t.segments,s=t.points,o=e.points,r=[];for(const t of n){let{start:n,end:a}=t;a=co(n,a,s);const l=ho(i,s[n],s[a],t.loop);if(!e.segments){r.push({source:t,target:l,start:s[n],end:s[a]});continue}const h=Ii(e,l);for(const e of h){const n=ho(i,o[e.start],o[e.end],e.loop),a=Ri(t,s,n);for(const t of a)r.push({source:t,target:e,start:{[i]:uo(l,n,"start",Math.max)},end:{[i]:uo(l,n,"end",Math.min)}})}}return r}(i,n,s);for(const{source:e,target:l,start:h,end:c}of a){const{style:{backgroundColor:a=o}={}}=e,u=!0!==n;t.save(),t.fillStyle=a,ko(t,r,u&&ho(s,h,c)),t.beginPath();const d=!!i.pathSegment(t,e);let f;if(u){d?t.closePath():Mo(t,n,c,s);const e=!!n.pathSegment(t,l,{move:d,reverse:!0});f=d&&e,f||Mo(t,n,h,s)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function ko(t,e,i){const{top:n,bottom:s}=e.chart.chartArea,{property:o,start:r,end:a}=i||{};"x"===o&&(t.beginPath(),t.rect(r,n,a-r,s-n),t.clip())}function Mo(t,e,i,n){const s=e.interpolate(i,n);s&&t.lineTo(s.x,s.y)}var Ao={id:"filler",afterDatasetsUpdate(t,e,i){const n=(t.data.datasets||[]).length,s=[];let o,r,a,l;for(r=0;r<n;++r)o=t.getDatasetMeta(r),a=o.dataset,l=null,a&&a.options&&a instanceof to&&(l={visible:t.isDatasetVisible(r),index:r,fill:mo(a,r,n),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,s.push(l);for(r=0;r<n;++r)l=s[r],l&&!1!==l.fill&&(l.fill=po(s,r,i.propagate))},beforeDraw(t,e,i){const n="beforeDraw"===i.drawTime,s=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),n&&i.fill&&vo(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const n=t.getSortedVisibleDatasetMetas();for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;go(i)&&vo(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const n=e.meta.$filler;go(n)&&"beforeDatasetDraw"===i.drawTime&&vo(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const So=(t,e)=>{let{boxHeight:i=e,boxWidth:n=e}=t;return t.usePointStyle&&(i=Math.min(i,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(e,i)}};class To extends ns{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,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,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=rt(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,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 i=t.labels,n=Ye(i.font),s=n.size,o=this._computeTitleHeight(),{boxWidth:r,itemHeight:a}=So(i,s);let l,h;e.font=n.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,s,r,a)+10):(h=this.maxHeight,l=this._fitCols(o,n,r,a)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,n){const{ctx:s,maxWidth:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.lineWidths=[0],h=n+r;let c=t;s.textAlign="left",s.textBaseline="middle";let u=-1,d=-h;return this.legendItems.forEach(((t,f)=>{const g=i+e/2+s.measureText(t.text).width;(0===f||l[l.length-1]+g+2*r>o)&&(c+=h,l[l.length-(f>0?0:1)]=0,d+=h,u++),a[f]={left:0,top:d,row:u,width:g,height:n},l[l.length-1]+=g+r})),c}_fitCols(t,e,i,n){const{ctx:s,maxHeight:o,options:{labels:{padding:r}}}=this,a=this.legendHitBoxes=[],l=this.columnSizes=[],h=o-t;let c=r,u=0,d=0,f=0,g=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:p,itemHeight:m}=function(t,e,i,n,s){const o=function(t,e,i,n){let s=t.text;return s&&"string"!=typeof s&&(s=s.reduce(((t,e)=>t.length>e.length?t:e))),e+i.size/2+n.measureText(s).width}(n,t,e,i),r=function(t,e,i){let n=t;return"string"!=typeof e.text&&(n=Do(e,i)),n}(s,n,e.lineHeight);return{itemWidth:o,itemHeight:r}}(i,e,s,t,n);o>0&&d+m+2*r>h&&(c+=u+r,l.push({width:u,height:d}),f+=u+r,g++,u=d=0),a[o]={left:f,top:d,col:g,width:p,height:m},u=Math.max(u,p),d+=m+r})),c+=u,l.push({width:u,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,o=Ci(s,this.left,this.width);if(this.isHorizontal()){let s=0,r=te(i,this.left+n,this.right-this.lineWidths[s]);for(const a of e)s!==a.row&&(s=a.row,r=te(i,this.left+n,this.right-this.lineWidths[s])),a.top+=this.top+t+n,a.left=o.leftForLtr(o.x(r),a.width),r+=a.width+n}else{let s=0,r=te(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(const a of e)a.col!==s&&(s=a.col,r=te(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),a.top=r,a.left+=this.left+n,a.left=o.leftForLtr(o.x(a.left),a.width),r+=a.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ce(t,this),this._draw(),Pe(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:n}=this,{align:s,labels:o}=t,r=_e.color,a=Ci(t.rtl,this.left,this.width),l=Ye(o.font),{padding:h}=o,c=l.size,u=c/2;let d;this.drawTitle(),n.textAlign=a.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:g,itemHeight:p}=So(o,c),m=this.isHorizontal(),b=this._computeTitleHeight();d=m?{x:te(s,this.left+h,this.right-i[0]),y:this.top+h+b,line:0}:{x:this.left+h,y:te(s,this.top+b+h,this.bottom-e[0].height),line:0},Pi(this.ctx,t.textDirection);const x=p+h;this.legendItems.forEach(((y,v)=>{n.strokeStyle=y.fontColor,n.fillStyle=y.fontColor;const _=n.measureText(y.text).width,w=a.textAlign(y.textAlign||(y.textAlign=o.textAlign)),k=f+u+_;let M=d.x,A=d.y;if(a.setWidth(this.width),m?v>0&&M+k+h>this.right&&(A=d.y+=x,d.line++,M=d.x=te(s,this.left+h,this.right-i[d.line])):v>0&&A+x>this.bottom&&(M=d.x=M+e[d.line].width+h,d.line++,A=d.y=te(s,this.top+b+h,this.bottom-e[d.line].height)),function(t,e,i){if(isNaN(f)||f<=0||isNaN(g)||g<0)return;n.save();const s=st(i.lineWidth,1);if(n.fillStyle=st(i.fillStyle,r),n.lineCap=st(i.lineCap,"butt"),n.lineDashOffset=st(i.lineDashOffset,0),n.lineJoin=st(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=st(i.strokeStyle,r),n.setLineDash(st(i.lineDash,[])),o.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},l=a.xPlus(t,f/2);Te(n,r,l,e+u,o.pointStyleWidth&&f)}else{const o=e+Math.max((c-g)/2,0),r=a.leftForLtr(t,f),l=je(i.borderRadius);n.beginPath(),Object.values(l).some((t=>0!==t))?Fe(n,{x:r,y:o,w:f,h:g,radius:l}):n.rect(r,o,f,g),n.fill(),0!==s&&n.stroke()}n.restore()}(a.x(M),A,y),M=((t,e,i,n)=>t===(n?"left":"right")?i:"center"===t?(e+i)/2:e)(w,M+f+u,m?M+k:this.right,t.rtl),function(t,e,i){Ie(n,i.text,t,e+p/2,l,{strikethrough:i.hidden,textAlign:a.textAlign(i.textAlign)})}(a.x(M),A,y),m)d.x+=k+h;else if("string"!=typeof y.text){const t=l.lineHeight;d.y+=Do(y,t)+h}else d.y+=x})),Oi(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Ye(e.font),n=Ue(e.padding);if(!e.display)return;const s=Ci(t.rtl,this.left,this.width),o=this.ctx,r=e.position,a=i.size/2,l=n.top+a;let h,c=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+l,c=te(t.align,c,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+te(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=te(r,c,c+u);o.textAlign=s.textAlign(Jt(r)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Ie(o,e.text,d,h,i)}_computeTitleHeight(){const t=this.options.title,e=Ye(t.font),i=Ue(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if(Ut(t,this.left,this.right)&&Ut(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(n=s[i],Ut(t,n.left,n.left+n.width)&&Ut(e,n.top,n.top+n.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,r=(s=i,null!==(n=o)&&null!==s&&n.datasetIndex===s.datasetIndex&&n.index===s.index);o&&!r&&rt(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!r&&rt(e.onHover,[t,i,this],this)}else i&&rt(e.onClick,[t,i,this],this);var n,s}}function Do(t,e){return e*(t.text?t.text.length:0)}var Co={id:"legend",_element:To,start(t,e,i){const n=t.legend=new To({ctx:t.ctx,options:i,chart:t});Wn.configure(t,n,i),Wn.addBox(t,n)},stop(t){Wn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const n=t.legend;Wn.configure(t,n,i),n.options=i},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,i){const n=e.datasetIndex,s=i.chart;s.isDatasetVisible(n)?(s.hide(n),e.hidden=!0):(s.show(n),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:i,pointStyle:n,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(i?0:void 0),h=Ue(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:n||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:r&&(a||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 Po extends ns{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 i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=tt(i.text)?i.text.length:1;this._padding=Ue(i.padding);const s=n*Ye(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:n,right:s,options:o}=this,r=o.align;let a,l,h,c=0;return this.isHorizontal()?(l=te(r,i,s),h=e+t,a=s-i):("left"===o.position?(l=i+t,h=te(r,n,e),c=-.5*_t):(l=s-t,h=te(r,e,n),c=.5*_t),a=n-e),{titleX:l,titleY:h,maxWidth:a,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Ye(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:r,rotation:a}=this._drawArgs(n);Ie(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:a,textAlign:Jt(e.align),textBaseline:"middle",translation:[s,o]})}}const Oo=new WeakMap;var Eo={id:"subtitle",start(t,e,i){const n=new Po({ctx:t.ctx,options:i,chart:t});Wn.configure(t,n,i),Wn.addBox(t,n),Oo.set(t,n)},stop(t){Wn.removeBox(t,Oo.get(t)),Oo.delete(t)},beforeUpdate(t,e,i){const n=Oo.get(t);Wn.configure(t,n,i),n.options=i},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 Lo={average(t){if(!t.length)return!1;let e,i,n=0,s=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();n+=t.x,s+=t.y,++o}}return{x:n/o,y:s/o}},nearest(t,e){if(!t.length)return!1;let i,n,s,o=e.x,r=e.y,a=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){const n=t[i].element;if(n&&n.hasValue()){const t=Wt(e,n.getCenterPoint());t<a&&(a=t,s=n)}}if(s){const t=s.tooltipPosition();o=t.x,r=t.y}return{x:o,y:r}}};function Ro(t,e){return e&&(tt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Io(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Fo(t,e){const{element:i,datasetIndex:n,index:s}=e,o=t.getDatasetMeta(n).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:t,label:r,parsed:o.getParsed(s),raw:t.data.datasets[n].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:n,element:i}}function zo(t,e){const i=t.chart.ctx,{body:n,footer:s,title:o}=t,{boxWidth:r,boxHeight:a}=e,l=Ye(e.bodyFont),h=Ye(e.titleFont),c=Ye(e.footerFont),u=o.length,d=s.length,f=n.length,g=Ue(e.padding);let p=g.height,m=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b&&(p+=f*(e.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(b-f)*l.lineHeight+(b-1)*e.bodySpacing),d&&(p+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let x=0;const y=function(t){m=Math.max(m,i.measureText(t).width+x)};return i.save(),i.font=h.string,at(t.title,y),i.font=l.string,at(t.beforeBody.concat(t.afterBody),y),x=e.displayColors?r+2+e.boxPadding:0,at(n,(t=>{at(t.before,y),at(t.lines,y),at(t.after,y)})),x=0,i.font=c.string,at(t.footer,y),i.restore(),m+=g.width,{width:m,height:p}}function No(t,e,i,n){const{x:s,width:o}=i,{width:r,chartArea:{left:a,right:l}}=t;let h="center";return"center"===n?h=s<=(a+l)/2?"left":"right":s<=o/2?h="left":s>=r-o/2&&(h="right"),function(t,e,i,n){const{x:s,width:o}=n,r=i.caretSize+i.caretPadding;return"left"===t&&s+o+r>e.width||"right"===t&&s-o-r<0||void 0}(h,t,e,i)&&(h="center"),h}function Wo(t,e,i){const n=i.yAlign||e.yAlign||function(t,e){const{y:i,height:n}=e;return i<n/2?"top":i>t.height-n/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||No(t,e,i,n),yAlign:n}}function Vo(t,e,i,n){const{caretSize:s,caretPadding:o,cornerRadius:r}=t,{xAlign:a,yAlign:l}=i,h=s+o,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=je(r);let g=function(t,e){let{x:i,width:n}=t;return"right"===e?i-=n:"center"===e&&(i-=n/2),i}(e,a);const p=function(t,e,i){let{y:n,height:s}=t;return"top"===e?n+=i:n-="bottom"===e?s+i:s/2,n}(e,l,h);return"center"===l?"left"===a?g+=h:"right"===a&&(g-=h):"left"===a?g-=Math.max(c,d)+s:"right"===a&&(g+=Math.max(u,f)+s),{x:jt(g,0,n.width-e.width),y:jt(p,0,n.height-e.height)}}function Bo(t,e,i){const n=Ue(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function Ho(t){return Ro([],Io(t))}function jo(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Uo={beforeTitle:G,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,n=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return i[e.dataIndex]}return""},afterTitle:G,beforeBody:G,beforeLabel:G,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 i=t.formattedValue;return J(i)||(e+=i),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:G,afterBody:G,beforeFooter:G,footer:G,afterFooter:G};function Yo(t,e,i,n){const s=t[e].call(i,n);return void 0===s?Uo[e].call(i,n):s}class $o extends ns{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,i=this.options.setContext(this.getContext()),n=i.enabled&&e.options.animation&&i.animations,s=new ji(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=(this,qe(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:i}=e,n=Yo(i,"beforeTitle",this,t),s=Yo(i,"title",this,t),o=Yo(i,"afterTitle",this,t);let r=[];return r=Ro(r,Io(n)),r=Ro(r,Io(s)),r=Ro(r,Io(o)),r}getBeforeBody(t,e){return Ho(Yo(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,n=[];return at(t,(t=>{const e={before:[],lines:[],after:[]},s=jo(i,t);Ro(e.before,Io(Yo(s,"beforeLabel",this,t))),Ro(e.lines,Yo(s,"label",this,t)),Ro(e.after,Io(Yo(s,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return Ho(Yo(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,n=Yo(i,"beforeFooter",this,t),s=Yo(i,"footer",this,t),o=Yo(i,"afterFooter",this,t);let r=[];return r=Ro(r,Io(n)),r=Ro(r,Io(s)),r=Ro(r,Io(o)),r}_createItems(t){const e=this._active,i=this.chart.data,n=[],s=[],o=[];let r,a,l=[];for(r=0,a=e.length;r<a;++r)l.push(Fo(this.chart,e[r]));return t.filter&&(l=l.filter(((e,n,s)=>t.filter(e,n,s,i)))),t.itemSort&&(l=l.sort(((e,n)=>t.itemSort(e,n,i)))),at(l,(e=>{const i=jo(t.callbacks,e);n.push(Yo(i,"labelColor",this,e)),s.push(Yo(i,"labelPointStyle",this,e)),o.push(Yo(i,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),n=this._active;let s,o=[];if(n.length){const t=Lo[i.position].call(this,n,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=zo(this,i),r=Object.assign({},t,e),a=Wo(this.chart,i,r),l=Vo(i,r,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,s={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,n){const s=this.getCaretPosition(t,i,n);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:n,yAlign:s}=this,{caretSize:o,cornerRadius:r}=i,{topLeft:a,topRight:l,bottomLeft:h,bottomRight:c}=je(r),{x:u,y:d}=t,{width:f,height:g}=e;let p,m,b,x,y,v;return"center"===s?(y=d+g/2,"left"===n?(p=u,m=p-o,x=y+o,v=y-o):(p=u+f,m=p+o,x=y-o,v=y+o),b=p):(m="left"===n?u+Math.max(a,h)+o:"right"===n?u+f-Math.max(l,c)-o:this.caretX,"top"===s?(x=d,y=x-o,p=m-o,b=m+o):(x=d+g,y=x+o,p=m+o,b=m-o),v=x),{x1:p,x2:m,x3:b,y1:x,y2:y,y3:v}}drawTitle(t,e,i){const n=this.title,s=n.length;let o,r,a;if(s){const l=Ci(i.rtl,this.x,this.width);for(t.x=Bo(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",o=Ye(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,a=0;a<s;++a)e.fillText(n[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+r,a+1===s&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,e,i,n,s){const o=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:a,boxWidth:l}=s,h=Ye(s.bodyFont),c=Bo(this,"left",s),u=n.x(c),d=a<h.lineHeight?(h.lineHeight-a)/2:0,f=e.y+d;if(s.usePointStyle){const e={radius:Math.min(l,a)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=n.leftForLtr(u,l)+l/2,h=f+a/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,Se(t,e,i,h),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Se(t,e,i,h)}else{t.lineWidth=et(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=n.leftForLtr(u,l),i=n.leftForLtr(n.xPlus(u,1),l-2),r=je(o.borderRadius);Object.values(r).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Fe(t,{x:e,y:f,w:l,h:a,radius:r}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Fe(t,{x:i,y:f+1,w:l-2,h:a-2,radius:r}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,f,l,a),t.strokeRect(e,f,l,a),t.fillStyle=o.backgroundColor,t.fillRect(i,f+1,l-2,a-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:n}=this,{bodySpacing:s,bodyAlign:o,displayColors:r,boxHeight:a,boxWidth:l,boxPadding:h}=i,c=Ye(i.bodyFont);let u=c.lineHeight,d=0;const f=Ci(i.rtl,this.x,this.width),g=function(i){e.fillText(i,f.x(t.x+d),t.y+u/2),t.y+=u+s},p=f.textAlign(o);let m,b,x,y,v,_,w;for(e.textAlign=o,e.textBaseline="middle",e.font=c.string,t.x=Bo(this,p,i),e.fillStyle=i.bodyColor,at(this.beforeBody,g),d=r&&"right"!==p?"center"===o?l/2+h:l+2+h:0,y=0,_=n.length;y<_;++y){for(m=n[y],b=this.labelTextColors[y],e.fillStyle=b,at(m.before,g),x=m.lines,r&&x.length&&(this._drawColorBox(e,t,y,f,i),u=Math.max(c.lineHeight,a)),v=0,w=x.length;v<w;++v)g(x[v]),u=c.lineHeight;at(m.after,g)}d=0,u=c.lineHeight,at(this.afterBody,g),t.y-=s}drawFooter(t,e,i){const n=this.footer,s=n.length;let o,r;if(s){const a=Ci(i.rtl,this.x,this.width);for(t.x=Bo(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=a.textAlign(i.footerAlign),e.textBaseline="middle",o=Ye(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,r=0;r<s;++r)e.fillText(n[r],a.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){const{xAlign:s,yAlign:o}=this,{x:r,y:a}=t,{width:l,height:h}=i,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:f}=je(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(r+c,a),"top"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+l-u,a),e.quadraticCurveTo(r+l,a,r+l,a+u),"center"===o&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(r+l,a+h-f),e.quadraticCurveTo(r+l,a+h,r+l-f,a+h),"bottom"===o&&this.drawCaret(t,e,i,n),e.lineTo(r+d,a+h),e.quadraticCurveTo(r,a+h,r,a+h-d),"center"===o&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(r,a+c),e.quadraticCurveTo(r,a,r+c,a),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,n=i&&i.x,s=i&&i.y;if(n||s){const i=Lo[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=zo(this,t),r=Object.assign({},i,this._size),a=Wo(e,t,r),l=Vo(t,r,a,e);n._to===l.x&&s._to===l.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Ue(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),Pi(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),Oi(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,n=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),s=!lt(i,n),o=this._positionChanged(n,e);(s||o)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),r=this._positionChanged(o,t),a=e||!lt(o,s)||r;return a&&(this._active=o,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),a}_getActiveElements(t,e,i,n){const s=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:n,options:s}=this,o=Lo[s.position].call(this,t,e);return!1!==o&&(i!==o.x||n!==o.y)}}(0,v.A)($o,"positioners",Lo);var qo={id:"tooltip",_element:$o,positioners:Lo,afterInit(t,e,i){i&&(t.tooltip=new $o({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:Uo},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"]};function Xo(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Ko extends ds{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:i,label:n}of e)t[i]===n&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(J(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:jt(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,i,n){const s=t.indexOf(e);return-1===s?((t,e,i,n)=>("string"==typeof e?(i=t.push(e)-1,n.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,n):s!==t.lastIndexOf(e)?i:s}(i,t,st(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(n=this.getLabels().length-1)),this.min=i,this.max=n}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,n=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)n.push({value:i});return n}getLabelForValue(t){return Xo.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}}function Qo(t,e,{horizontal:i,minRotation:n}){const s=It(n),o=(i?Math.sin(s):Math.cos(s))||.001,r=.75*e*(""+t).length;return Math.min(e/o,r)}(0,v.A)(Ko,"id","category"),(0,v.A)(Ko,"defaults",{ticks:{callback:Xo}});class Go extends ds{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 J(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:n,max:s}=this;const o=t=>n=e?n:t,r=t=>s=i?s:t;if(t){const t=Pt(n),e=Pt(s);t<0&&e<0?r(0):t>0&&e>0&&o(0)}if(n===s){let e=0===s?1:Math.abs(.05*s);r(s+e),t||o(n-e)}this.min=n,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const n=function(t,e){const i=[],{bounds:n,step:s,min:o,max:r,precision:a,count:l,maxTicks:h,maxDigits:c,includeBounds:u}=t,d=s||1,f=h-1,{min:g,max:p}=e,m=!J(o),b=!J(r),x=!J(l),y=(p-g)/(c+1);let v,_,w,k,M=Et((p-g)/f/d)*d;if(M<1e-14&&!m&&!b)return[{value:g},{value:p}];k=Math.ceil(p/M)-Math.floor(g/M),k>f&&(M=Et(k*M/f/d)*d),J(a)||(v=Math.pow(10,a),M=Math.ceil(M*v)/v),"ticks"===n?(_=Math.floor(g/M)*M,w=Math.ceil(p/M)*M):(_=g,w=p),m&&b&&s&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-o)/s,M/1e3)?(k=Math.round(Math.min((r-o)/M,h)),M=(r-o)/k,_=o,w=r):x?(_=m?o:_,w=b?r:w,k=l-1,M=(w-_)/k):(k=(w-_)/M,k=Ot(k,Math.round(k),M/1e3)?Math.round(k):Math.ceil(k));const A=Math.max(zt(M),zt(_));v=Math.pow(10,J(a)?A:a),_=Math.round(_*v)/v,w=Math.round(w*v)/v;let S=0;for(m&&(u&&_!==o?(i.push({value:o}),_<o&&S++,Ot(Math.round((_+S*M)*v)/v,o,Qo(o,y,t))&&S++):_<o&&S++);S<k;++S){const t=Math.round((_+S*M)*v)/v;if(b&&t>r)break;i.push({value:t})}return b&&u&&w!==r?i.length&&Ot(i[i.length-1].value,r,Qo(r,y,t))?i[i.length-1].value=r:i.push({value:r}):b&&w!==r||i.push({value:w}),i}({maxTicks:i,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&&Rt(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const n=(i-e)/Math.max(t.length-1,1)/2;e-=n,i+=n}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return fe(t,this.chart.options.locale,this.options.ticks.format)}}class Zo extends Go{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=it(t)?t:0,this.max=it(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=It(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}(0,v.A)(Zo,"id","linear"),(0,v.A)(Zo,"defaults",{ticks:{callback:pe.formatters.numeric}});const Jo=t=>Math.floor(Ct(t)),tr=(t,e)=>Math.pow(10,Jo(t)+e);function er(t){return 1==t/Math.pow(10,Jo(t))}function ir(t,e,i){const n=Math.pow(10,i),s=Math.floor(t/n);return Math.ceil(e/n)-s}class nr extends ds{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Go.prototype.parse.apply(this,[t,e]);if(0!==i)return it(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=it(t)?Math.max(0,t):null,this.max=it(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!it(this._userMin)&&(this.min=t===tr(this.min,0)?tr(this.min,-1):tr(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,n=this.max;const s=e=>i=t?i:e,o=t=>n=e?n:t;i===n&&(i<=0?(s(1),o(10)):(s(tr(i,-1)),o(tr(n,1)))),i<=0&&s(tr(n,-1)),n<=0&&o(tr(i,1)),this.min=i,this.max=n}buildTicks(){const t=this.options,e=function(t,{min:e,max:i}){e=nt(t.min,e);const n=[],s=Jo(e);let o=function(t,e){let i=Jo(e-t);for(;ir(t,e,i)>10;)i++;for(;ir(t,e,i)<10;)i--;return Math.min(i,Jo(t))}(e,i),r=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=s>o?Math.pow(10,s):0,h=Math.round((e-l)*r)/r,c=Math.floor((e-l)/a/10)*a*10;let u=Math.floor((h-c)/Math.pow(10,o)),d=nt(t.min,Math.round((l+c+u*Math.pow(10,o))*r)/r);for(;d<i;)n.push({value:d,major:er(d),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(o++,u=2,r=o>=0?1:r),d=Math.round((l+c+u*Math.pow(10,o))*r)/r;const f=nt(t.max,d);return n.push({value:f,major:er(f),significand:u}),n}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Rt(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":fe(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ct(t),this._valueRange=Ct(this.max)-Ct(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ct(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function sr(t){const e=t.ticks;if(e.display&&t.display){const t=Ue(e.backdropPadding);return st(e.font&&e.font.size,_e.font.size)+t.height}return 0}function or(t,e,i,n,s){return t===n||t===s?{start:e-i/2,end:e+i/2}:t<n||t>s?{start:e-i,end:e}:{start:e,end:e+i}}function rr(t,e,i,n,s){const o=Math.abs(Math.sin(i)),r=Math.abs(Math.cos(i));let a=0,l=0;n.start<e.l?(a=(e.l-n.start)/o,t.l=Math.min(t.l,e.l-a)):n.end>e.r&&(a=(n.end-e.r)/o,t.r=Math.max(t.r,e.r+a)),s.start<e.t?(l=(e.t-s.start)/r,t.t=Math.min(t.t,e.t-l)):s.end>e.b&&(l=(s.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function ar(t,e,i){const n=t.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=i,l=t.getPointPosition(e,n+s+r,o),h=Math.round(Ft(Bt(l.angle+St))),c=function(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}(l.y,a.h,h),u=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(h),d=(f=l.x,g=a.w,"right"===(p=u)?f-=g:"center"===p&&(f-=g/2),f);var f,g,p;return{visible:!0,x:l.x,y:c,textAlign:u,left:d,top:c,right:d+a.w,bottom:c+a.h}}function lr(t,e){if(!e)return!0;const{left:i,top:n,right:s,bottom:o}=t;return!(De({x:i,y:n},e)||De({x:i,y:o},e)||De({x:s,y:n},e)||De({x:s,y:o},e))}function hr(t,e,i){const{left:n,top:s,right:o,bottom:r}=i,{backdropColor:a}=e;if(!J(a)){const i=je(e.borderRadius),l=Ue(e.backdropPadding);t.fillStyle=a;const h=n-l.left,c=s-l.top,u=o-n+l.width,d=r-s+l.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),Fe(t,{x:h,y:c,w:u,h:d,radius:i}),t.fill()):t.fillRect(h,c,u,d)}}function cr(t,e,i,n){const{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,wt);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let o=1;o<n;o++)i=t.getPointPosition(o,e),s.lineTo(i.x,i.y)}}(0,v.A)(nr,"id","logarithmic"),(0,v.A)(nr,"defaults",{ticks:{callback:pe.formatters.logarithmic,major:{enabled:!0}}});class ur extends Go{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=Ue(sr(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=it(t)&&!isNaN(t)?t:0,this.max=it(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/sr(this.options))}generateTickLabels(t){Go.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=rt(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(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},i=Object.assign({},e),n=[],s=[],o=t._pointLabels.length,r=t.options.pointLabels,a=r.centerPointLabels?_t/o:0;for(let u=0;u<o;u++){const o=r.setContext(t.getPointLabelContext(u));s[u]=o.padding;const d=t.getPointPosition(u,t.drawingArea+s[u],a),f=Ye(o.font),g=(l=t.ctx,h=f,c=tt(c=t._pointLabels[u])?c:[c],{w:ke(l,h.string,c),h:c.length*h.lineHeight});n[u]=g;const p=Bt(t.getIndexAngle(u)+a),m=Math.round(Ft(p));rr(i,e,p,or(m,d.x,g.w,0,180),or(m,d.y,g.h,90,270))}var l,h,c;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const n=[],s=t._pointLabels.length,o=t.options,{centerPointLabels:r,display:a}=o.pointLabels,l={extra:sr(o)/2,additionalAngle:r?_t/s:0};let h;for(let o=0;o<s;o++){l.padding=i[o],l.size=e[o];const s=ar(t,o,l);n.push(s),"auto"===a&&(s.visible=lr(s,h),s.visible&&(h=s))}return n}(t,n,s)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,n))}getIndexAngle(t){return Bt(t*(wt/(this._pointLabels.length||1))+It(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(J(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(J(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 i=e[t];return function(t,e,i){return qe(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const n=this.getIndexAngle(t)-St+i;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}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:i,right:n,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:n,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),cr(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:n,border:s}=e,o=this._pointLabels.length;let r,a,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){const e=t._pointLabelItems[s];if(!e.visible)continue;const o=n.setContext(t.getPointLabelContext(s));hr(i,o,e);const r=Ye(o.font),{x:a,y:l,textAlign:h}=e;Ie(i,t._pointLabels[s],a,l+r.lineHeight/2,r,{color:o.color,textAlign:h,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach(((t,e)=>{if(0!==e){a=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),r=n.setContext(i),l=s.setContext(i);!function(t,e,i,n,s){const o=t.ctx,r=e.circular,{color:a,lineWidth:l}=e;!r&&!n||!a||!l||i<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(s.dash),o.lineDashOffset=s.dashOffset,o.beginPath(),cr(t,i,r,n),o.closePath(),o.stroke(),o.restore())}(this,r,a,o,l)}})),i.display){for(t.save(),r=o-1;r>=0;r--){const n=i.setContext(this.getPointLabelContext(r)),{color:s,lineWidth:o}=n;o&&s&&(t.lineWidth=o,t.strokeStyle=s,t.setLineDash(n.borderDash),t.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(r,a),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,i=e.ticks;if(!i.display)return;const n=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((n,r)=>{if(0===r&&!e.reverse)return;const a=i.setContext(this.getContext(r)),l=Ye(a.font);if(s=this.getDistanceFromCenterForValue(this.ticks[r].value),a.showLabelBackdrop){t.font=l.string,o=t.measureText(n.label).width,t.fillStyle=a.backdropColor;const e=Ue(a.backdropPadding);t.fillRect(-o/2-e.left,-s-l.size/2-e.top,o+e.width,l.size+e.height)}Ie(t,n.label,0,-s,l,{color:a.color,strokeColor:a.textStrokeColor,strokeWidth:a.textStrokeWidth})})),t.restore()}drawTitle(){}}(0,v.A)(ur,"id","radialLinear"),(0,v.A)(ur,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:pe.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),(0,v.A)(ur,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),(0,v.A)(ur,"descriptors",{angleLines:{_fallback:"grid"}});const dr={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}},fr=Object.keys(dr);function gr(t,e){return t-e}function pr(t,e){if(J(e))return null;const i=t._adapter,{parser:n,round:s,isoWeekday:o}=t._parseOpts;let r=e;return"function"==typeof n&&(r=n(r)),it(r)||(r="string"==typeof n?i.parse(r,n):i.parse(r)),null===r?null:(s&&(r="week"!==s||!Lt(o)&&!0!==o?i.startOf(r,s):i.startOf(r,"isoWeek",o)),+r)}function mr(t,e,i,n){const s=fr.length;for(let o=fr.indexOf(t);o<s-1;++o){const t=dr[fr[o]],s=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(s*t.size))<=n)return fr[o]}return fr[s-1]}function br(t,e,i){if(i){if(i.length){const{lo:n,hi:s}=Yt(i,e);t[i[n]>=e?i[n]:i[s]]=!0}}else t[e]=!0}function xr(t,e,i){const n=[],s={},o=e.length;let r,a;for(r=0;r<o;++r)a=e[r],s[a]=r,n.push({value:a,major:!1});return 0!==o&&i?function(t,e,i,n){const s=t._adapter,o=+s.startOf(e[0].value,n),r=e[e.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,n))l=i[a],l>=0&&(e[l].major=!0);return e}(t,n,s,i):n}class yr extends ds{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 i=t.time||(t.time={}),n=this._adapter=new _n._date(t.adapters.date);n.init(e),ft(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:pr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:n,max:s,minDefined:o,maxDefined:r}=this.getUserBounds();function a(t){o||isNaN(t.min)||(n=Math.min(n,t.min)),r||isNaN(t.max)||(s=Math.max(s,t.max))}o&&r||(a(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||a(this.getMinMax(!1))),n=it(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=it(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const s=this.min,o=function(t,e,i){let n=0,s=t.length;for(;n<s&&t[n]<e;)n++;for(;s>n&&t[s-1]>i;)s--;return n>0||s<t.length?t.slice(n,s):t}(n,s,this.max);return this._unit=e.unit||(i.autoSkip?mr(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function(t,e,i,n,s){for(let o=fr.length-1;o>=fr.indexOf(i);o--){const i=fr[o];if(dr[i].common&&t._adapter.diff(s,n,i)>=e-1)return i}return fr[i?fr.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=fr.indexOf(t)+1,i=fr.length;e<i;++e)if(dr[fr[e]].common)return fr[e]}(this._unit):void 0,this.initOffsets(n),t.reverse&&o.reverse(),xr(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=jt(n,0,o),s=jt(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,e=this.min,i=this.max,n=this.options,s=n.time,o=s.unit||mr(s.minUnit,e,i,this._getLabelCapacity(e)),r=st(n.ticks.stepSize,1),a="week"===o&&s.isoWeekday,l=Lt(a)||!0===a,h={};let c,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",a)),d=+t.startOf(d,l?"day":o),t.diff(i,e,o)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+o);const f="data"===n.ticks.source&&this.getDataTimestamps();for(c=d,u=0;c<i;c=+t.add(c,r,o),u++)br(h,c,f);return c!==i&&"ticks"!==n.bounds&&1!==u||br(h,c,f),Object.keys(h).sort(gr).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,n=this._unit,s=e||i[n];return this._adapter.format(t,s)}_tickFormatFunction(t,e,i,n){const s=this.options,o=s.ticks.callback;if(o)return rt(o,[t,e,i],this);const r=s.time.displayFormats,a=this._unit,l=this._majorUnit,h=a&&r[a],c=l&&r[l],u=i[e],d=l&&c&&u&&u.major;return this._adapter.format(t,n||(d?c:h))}generateTickLabels(t){let e,i,n;for(e=0,i=t.length;e<i;++e)n=t[e],n.label=this._tickFormatFunction(n.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,n=It(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),o=Math.sin(n),r=this._resolveTickFontOptions(0).size;return{w:i*s+r*o,h:i*o+r*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,n=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,xr(this,[t],this._majorUnit),n),o=this._getLabelSize(s),r=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(t=0,e=n.length;t<e;++t)i=i.concat(n[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const n=this.getLabels();for(e=0,i=n.length;e<i;++e)t.push(pr(this,n[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Qt(t.sort(gr))}}function vr(t,e,i){let n,s,o,r,a=0,l=t.length-1;i?(e>=t[a].pos&&e<=t[l].pos&&({lo:a,hi:l}=$t(t,"pos",e)),({pos:n,time:o}=t[a]),({pos:s,time:r}=t[l])):(e>=t[a].time&&e<=t[l].time&&({lo:a,hi:l}=$t(t,"time",e)),({time:n,pos:o}=t[a]),({time:s,pos:r}=t[l]));const h=s-n;return h?o+(r-o)*(e-n)/h:o}(0,v.A)(yr,"id","time"),(0,v.A)(yr,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});class _r extends yr{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=vr(e,this.min),this._tableRange=vr(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,n=[],s=[];let o,r,a,l,h;for(o=0,r=t.length;o<r;++o)l=t[o],l>=e&&l<=i&&n.push(l);if(n.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,r=n.length;o<r;++o)h=n[o+1],a=n[o-1],l=n[o],Math.round((h+a)/2)!==l&&s.push({time:l,pos:o/(r-1)});return s}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(vr(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return vr(this._table,i*this._tableRange+this._minPos,!0)}}(0,v.A)(_r,"id","timeseries"),(0,v.A)(_r,"defaults",yr.defaults);var wr=i(7128),kr=i(901);function Mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ar(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Mr(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Mr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,s=function(){};return{s:s,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return r=t.done,t},e:function(t){a=!0,o=t},f:function(){try{r||null==i.return||i.return()}finally{if(a)throw o}}}}var Sr=i(3509),Tr=i(7287);function Dr(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}var Cr=i(9971),Pr=i(2891),Or=i(2218),Er=i(7007),Lr=i(1926);function Rr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ir(t,e){return Ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ir(t,e)}function Fr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ir(t,e)}function zr(t){return zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zr(t)}function Nr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=zr(t);if(e){var s=zr(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return function(t,e){if(e&&("object"===(0,kr.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Rr(t)}(this,i)}}function Wr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Vr=i(581);function Br(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(0,Vr.A)(n.key),n)}}function Hr(t,e,i){return e&&Br(t.prototype,e),i&&Br(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var jr=function(){function t(){Wr(this,t),(0,v.A)(this,"priority",void 0),(0,v.A)(this,"subPriority",0)}return Hr(t,[{key:"validate",value:function(t,e){return!0}}]),t}(),Ur=function(t){Fr(i,t);var e=Nr(i);function i(t,n,s,o,r){var a;return Wr(this,i),(a=e.call(this)).value=t,a.validateValue=n,a.setValue=s,a.priority=o,r&&(a.subPriority=r),a}return Hr(i,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),i}(jr),Yr=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",10),(0,v.A)(Rr(t),"subPriority",-1),t}return Hr(i,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),i}(jr),$r=function(){function t(){Wr(this,t),(0,v.A)(this,"incompatibleTokens",void 0),(0,v.A)(this,"priority",void 0),(0,v.A)(this,"subPriority",void 0)}return Hr(t,[{key:"run",value:function(t,e,i,n){var s=this.parse(t,e,i,n);return s?{setter:new Ur(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(t,e,i){return!0}}]),t}(),qr=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",140),(0,v.A)(Rr(t),"incompatibleTokens",["R","u","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),i}($r),Xr=i(7910),Kr=/^(1[0-2]|0?\d)/,Qr=/^(3[0-1]|[0-2]?\d)/,Gr=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Zr=/^(5[0-3]|[0-4]?\d)/,Jr=/^(2[0-3]|[0-1]?\d)/,ta=/^(2[0-4]|[0-1]?\d)/,ea=/^(1[0-1]|0?\d)/,ia=/^(1[0-2]|0?\d)/,na=/^[0-5]?\d/,sa=/^[0-5]?\d/,oa=/^\d/,ra=/^\d{1,2}/,aa=/^\d{1,3}/,la=/^\d{1,4}/,ha=/^-?\d+/,ca=/^-?\d/,ua=/^-?\d{1,2}/,da=/^-?\d{1,3}/,fa=/^-?\d{1,4}/,ga=/^([+-])(\d{2})(\d{2})?|Z/,pa=/^([+-])(\d{2})(\d{2})|Z/,ma=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ba=/^([+-])(\d{2}):(\d{2})|Z/,xa=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function ya(t,e){return t?{value:e(t.value),rest:t.rest}:t}function va(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function _a(t,e){var i=e.match(t);if(!i)return null;if("Z"===i[0])return{value:0,rest:e.slice(1)};var n="+"===i[1]?1:-1,s=i[2]?parseInt(i[2],10):0,o=i[3]?parseInt(i[3],10):0,r=i[5]?parseInt(i[5],10):0;return{value:n*(s*Xr.s0+o*Xr.Cg+r*Xr._m),rest:e.slice(i[0].length)}}function wa(t){return va(ha,t)}function ka(t,e){switch(t){case 1:return va(oa,e);case 2:return va(ra,e);case 3:return va(aa,e);case 4:return va(la,e);default:return va(new RegExp("^\\d{1,"+t+"}"),e)}}function Ma(t,e){switch(t){case 1:return va(ca,e);case 2:return va(ua,e);case 3:return va(da,e);case 4:return va(fa,e);default:return va(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Aa(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Sa(t,e){var i,n=e>0,s=n?e:1-e;if(s<=50)i=t||100;else{var o=s+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?i:1-i}function Ta(t){return t%400==0||t%4==0&&t%100!=0}var Da=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",130),(0,v.A)(Rr(t),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return ya(ka(4,t),n);case"yo":return ya(i.ordinalNumber(t,{unit:"year"}),n);default:return ya(ka(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var n=t.getUTCFullYear();if(i.isTwoDigitYear){var s=Sa(i.year,n);return t.setUTCFullYear(s,0,1),t.setUTCHours(0,0,0,0),t}var o="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}}]),i}($r),Ca=i(5437),Pa=i(4139),Oa=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",130),(0,v.A)(Rr(t),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return ya(ka(4,t),n);case"Yo":return ya(i.ordinalNumber(t,{unit:"year"}),n);default:return ya(ka(e.length,t),n)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,n){var s=(0,Ca.A)(t,n);if(i.isTwoDigitYear){var o=Sa(i.year,s);return t.setUTCFullYear(o,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),(0,Pa.A)(t,n)}var r="era"in e&&1!==e.era?1-i.year:i.year;return t.setUTCFullYear(r,0,n.firstWeekContainsDate),t.setUTCHours(0,0,0,0),(0,Pa.A)(t,n)}}]),i}($r),Ea=i(2208),La=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",130),(0,v.A)(Rr(t),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e){return Ma("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var n=new Date(0);return n.setUTCFullYear(i,0,4),n.setUTCHours(0,0,0,0),(0,Ea.A)(n)}}]),i}($r),Ra=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",130),(0,v.A)(Rr(t),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e){return Ma("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),i}($r),Ia=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",120),(0,v.A)(Rr(t),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return ka(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),i}($r),Fa=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",120),(0,v.A)(Rr(t),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return ka(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),i}($r),za=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),(0,v.A)(Rr(t),"priority",110),t}return Hr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return t-1};switch(e){case"M":return ya(va(Kr,t),n);case"MM":return ya(ka(2,t),n);case"Mo":return ya(i.ordinalNumber(t,{unit:"month"}),n);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),i}($r),Na=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",110),(0,v.A)(Rr(t),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return t-1};switch(e){case"L":return ya(va(Kr,t),n);case"LL":return ya(ka(2,t),n);case"Lo":return ya(i.ordinalNumber(t,{unit:"month"}),n);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),i}($r),Wa=i(6536),Va=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",100),(0,v.A)(Rr(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"w":return va(Zr,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,n){return(0,Pa.A)(function(t,e,i){(0,Lr.A)(2,arguments);var n=(0,wr.A)(t),s=(0,Er.A)(e),o=(0,Wa.A)(n,i)-s;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,i,n),n)}}]),i}($r),Ba=i(5480),Ha=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",100),(0,v.A)(Rr(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"I":return va(Zr,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return(0,Ea.A)(function(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,Er.A)(e),s=(0,Ba.A)(i)-n;return i.setUTCDate(i.getUTCDate()-7*s),i}(t,i))}}]),i}($r),ja=[31,28,31,30,31,30,31,31,30,31,30,31],Ua=[31,29,31,30,31,30,31,31,30,31,30,31],Ya=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",90),(0,v.A)(Rr(t),"subPriority",1),(0,v.A)(Rr(t),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"d":return va(Qr,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){var i=Ta(t.getUTCFullYear()),n=t.getUTCMonth();return i?e>=1&&e<=Ua[n]:e>=1&&e<=ja[n]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),i}($r),$a=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",90),(0,v.A)(Rr(t),"subpriority",1),(0,v.A)(Rr(t),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return va(Gr,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return Ta(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),i}($r),qa=i(1547);function Xa(t,e,i){var n,s,o,r,a,l,h,c;(0,Lr.A)(2,arguments);var u=(0,qa.q)(),d=(0,Er.A)(null!==(n=null!==(s=null!==(o=null!==(r=null==i?void 0:i.weekStartsOn)&&void 0!==r?r:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==s?s:null===(h=u.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=(0,wr.A)(t),g=(0,Er.A)(e),p=((g%7+7)%7<d?7:0)+g-f.getUTCDay();return f.setUTCDate(f.getUTCDate()+p),f}var Ka=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",90),(0,v.A)(Rr(t),"incompatibleTokens",["D","i","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,n){return(t=Xa(t,i,n)).setUTCHours(0,0,0,0),t}}]),i}($r),Qa=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",90),(0,v.A)(Rr(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i,n){var s=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return ya(ka(e.length,t),s);case"eo":return ya(i.ordinalNumber(t,{unit:"day"}),s);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,n){return(t=Xa(t,i,n)).setUTCHours(0,0,0,0),t}}]),i}($r),Ga=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",90),(0,v.A)(Rr(t),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i,n){var s=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return ya(ka(e.length,t),s);case"co":return ya(i.ordinalNumber(t,{unit:"day"}),s);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,n){return(t=Xa(t,i,n)).setUTCHours(0,0,0,0),t}}]),i}($r),Za=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",90),(0,v.A)(Rr(t),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){var n=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ka(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return ya(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return ya(i.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return ya(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n);default:return ya(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),n)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){(0,Lr.A)(2,arguments);var i=(0,Er.A)(e);i%7==0&&(i-=7);var n=(0,wr.A)(t),s=((i%7+7)%7<1?7:0)+i-n.getUTCDay();return n.setUTCDate(n.getUTCDate()+s),n}(t,i),t.setUTCHours(0,0,0,0),t}}]),i}($r),Ja=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",80),(0,v.A)(Rr(t),"incompatibleTokens",["b","B","H","k","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Aa(i),0,0,0),t}}]),i}($r),tl=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",80),(0,v.A)(Rr(t),"incompatibleTokens",["a","B","H","k","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Aa(i),0,0,0),t}}]),i}($r),el=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",80),(0,v.A)(Rr(t),"incompatibleTokens",["a","b","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Aa(i),0,0,0),t}}]),i}($r),il=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",70),(0,v.A)(Rr(t),"incompatibleTokens",["H","K","k","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"h":return va(ia,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var n=t.getUTCHours()>=12;return n&&i<12?t.setUTCHours(i+12,0,0,0):n||12!==i?t.setUTCHours(i,0,0,0):t.setUTCHours(0,0,0,0),t}}]),i}($r),nl=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",70),(0,v.A)(Rr(t),"incompatibleTokens",["a","b","h","K","k","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"H":return va(Jr,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),i}($r),sl=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",70),(0,v.A)(Rr(t),"incompatibleTokens",["h","H","k","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"K":return va(ea,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.getUTCHours()>=12&&i<12?t.setUTCHours(i+12,0,0,0):t.setUTCHours(i,0,0,0),t}}]),i}($r),ol=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",70),(0,v.A)(Rr(t),"incompatibleTokens",["a","b","h","H","K","t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"k":return va(ta,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){var n=i<=24?i%24:i;return t.setUTCHours(n,0,0,0),t}}]),i}($r),rl=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",60),(0,v.A)(Rr(t),"incompatibleTokens",["t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"m":return va(na,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),i}($r),al=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",50),(0,v.A)(Rr(t),"incompatibleTokens",["t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e,i){switch(e){case"s":return va(sa,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return ka(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),i}($r),ll=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",30),(0,v.A)(Rr(t),"incompatibleTokens",["t","T"]),t}return Hr(i,[{key:"parse",value:function(t,e){return ya(ka(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),i}($r),hl=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",10),(0,v.A)(Rr(t),"incompatibleTokens",["t","T","x"]),t}return Hr(i,[{key:"parse",value:function(t,e){switch(e){case"X":return _a(ga,t);case"XX":return _a(pa,t);case"XXXX":return _a(ma,t);case"XXXXX":return _a(xa,t);default:return _a(ba,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),i}($r),cl=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",10),(0,v.A)(Rr(t),"incompatibleTokens",["t","T","X"]),t}return Hr(i,[{key:"parse",value:function(t,e){switch(e){case"x":return _a(ga,t);case"xx":return _a(pa,t);case"xxxx":return _a(ma,t);case"xxxxx":return _a(xa,t);default:return _a(ba,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),i}($r),ul=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",40),(0,v.A)(Rr(t),"incompatibleTokens","*"),t}return Hr(i,[{key:"parse",value:function(t){return wa(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),i}($r),dl=function(t){Fr(i,t);var e=Nr(i);function i(){var t;Wr(this,i);for(var n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return t=e.call.apply(e,[this].concat(s)),(0,v.A)(Rr(t),"priority",20),(0,v.A)(Rr(t),"incompatibleTokens","*"),t}return Hr(i,[{key:"parse",value:function(t){return wa(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),i}($r),fl={G:new qr,y:new Da,Y:new Oa,R:new La,u:new Ra,Q:new Ia,q:new Fa,M:new za,L:new Na,w:new Va,I:new Ha,d:new Ya,D:new $a,E:new Ka,e:new Qa,c:new Ga,i:new Za,a:new Ja,b:new tl,B:new el,h:new il,H:new nl,K:new sl,k:new ol,m:new rl,s:new al,S:new ll,X:new hl,x:new cl,t:new ul,T:new dl},gl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ml=/^'([^]*?)'?$/,bl=/''/g,xl=/\S/,yl=/[a-zA-Z]/;var vl=i(2529),_l=i(8213),wl=i(6061),kl=i(8550);function Ml(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,Er.A)(e);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}function Al(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,Er.A)(e);if(isNaN(n))return new Date(NaN);if(!n)return i;var s=i.getDate(),o=new Date(i.getTime());return o.setMonth(i.getMonth()+n+1,0),s>=o.getDate()?o:(i.setFullYear(o.getFullYear(),o.getMonth(),s),i)}function Sl(t,e){return(0,Lr.A)(2,arguments),(0,wr.A)(t).getTime()-(0,wr.A)(e).getTime()}var Tl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Dl="trunc";function Cl(t){return t?Tl[t]:Tl[Dl]}function Pl(t,e,i){(0,Lr.A)(2,arguments);var n=Sl(t,e)/Xr.Cg;return Cl(null==i?void 0:i.roundingMethod)(n)}function Ol(t,e,i){(0,Lr.A)(2,arguments);var n=Sl(t,e)/Xr.s0;return Cl(null==i?void 0:i.roundingMethod)(n)}function El(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setHours(0,0,0,0),e}var Ll=864e5;function Rl(t,e){var i=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return i<0?-1:i>0?1:i}function Il(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,wr.A)(e),s=Rl(i,n),o=Math.abs(function(t,e){(0,Lr.A)(2,arguments);var i=El(t),n=El(e),s=i.getTime()-(0,Pr.A)(i),o=n.getTime()-(0,Pr.A)(n);return Math.round((s-o)/Ll)}(i,n));i.setDate(i.getDate()-s*o);var r=s*(o-Number(Rl(i,n)===-s));return 0===r?0:r}function Fl(t,e,i){(0,Lr.A)(2,arguments);var n=Il(t,e)/7;return Cl(null==i?void 0:i.roundingMethod)(n)}function zl(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,wr.A)(e),s=i.getTime()-n.getTime();return s<0?-1:s>0?1:s}function Nl(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setHours(23,59,59,999),e}function Wl(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t),i=e.getMonth();return e.setFullYear(e.getFullYear(),i+1,0),e.setHours(23,59,59,999),e}function Vl(t,e){(0,Lr.A)(2,arguments);var i,n=(0,wr.A)(t),s=(0,wr.A)(e),o=zl(n,s),r=Math.abs(function(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,wr.A)(e);return 12*(i.getFullYear()-n.getFullYear())+(i.getMonth()-n.getMonth())}(n,s));if(r<1)i=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*r);var a=zl(n,s)===-o;(function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return Nl(e).getTime()===Wl(e).getTime()})((0,wr.A)(t))&&1===r&&1===zl(t,s)&&(a=!1),i=o*(r-Number(a))}return 0===i?0:i}function Bl(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,wr.A)(e),s=zl(i,n),o=Math.abs(function(t,e){(0,Lr.A)(2,arguments);var i=(0,wr.A)(t),n=(0,wr.A)(e);return i.getFullYear()-n.getFullYear()}(i,n));i.setFullYear(1584),n.setFullYear(1584);var r=zl(i,n)===-s,a=s*(o-Number(r));return 0===a?0:a}function Hl(t,e){var i,n,s,o,r,a,l,h;(0,Lr.A)(1,arguments);var c=(0,qa.q)(),u=(0,Er.A)(null!==(i=null!==(n=null!==(s=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(r=e.locale)||void 0===r||null===(a=r.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:c.weekStartsOn)&&void 0!==n?n:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,wr.A)(t),f=d.getDay(),g=(f<u?7:0)+f-u;return d.setDate(d.getDate()-g),d.setHours(0,0,0,0),d}const jl={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};_n._date.override({_id:"date-fns",formats:function(){return jl},parse:function(t,e){if(null==t)return null;const i=typeof t;return"number"===i||t instanceof Date?t=(0,wr.A)(t):"string"===i&&(t="string"==typeof e?function(t,e,i,n){var s,o,r,a,l,h,c,u,d,f,g,p,m,b,x,y,v,_;(0,Lr.A)(3,arguments);var w=String(t),k=String(e),M=(0,qa.q)(),A=null!==(s=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:M.locale)&&void 0!==s?s:Sr.A;if(!A.match)throw new RangeError("locale must contain match property");var S=(0,Er.A)(null!==(r=null!==(a=null!==(l=null!==(h=null==n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:M.firstWeekContainsDate)&&void 0!==a?a:null===(d=M.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==r?r:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=(0,Er.A)(null!==(g=null!==(p=null!==(m=null!==(b=null==n?void 0:n.weekStartsOn)&&void 0!==b?b:null==n||null===(x=n.locale)||void 0===x||null===(y=x.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:M.weekStartsOn)&&void 0!==p?p:null===(v=M.locale)||void 0===v||null===(_=v.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==g?g:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===k)return""===w?(0,wr.A)(i):new Date(NaN);var D,C={firstWeekContainsDate:S,weekStartsOn:T,locale:A},P=[new Yr],O=k.match(pl).map((function(t){var e=t[0];return e in Cr.A?(0,Cr.A[e])(t,A.formatLong):t})).join("").match(gl),E=[],L=Ar(O);try{var R=function(){var e=D.value;null!=n&&n.useAdditionalWeekYearTokens||!(0,Or.xM)(e)||(0,Or.lJ)(e,k,t),null!=n&&n.useAdditionalDayOfYearTokens||!(0,Or.ef)(e)||(0,Or.lJ)(e,k,t);var i=e[0],s=fl[i];if(s){var o=s.incompatibleTokens;if(Array.isArray(o)){var r=E.find((function(t){return o.includes(t.token)||t.token===i}));if(r)throw new RangeError("The format string mustn't contain `".concat(r.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===s.incompatibleTokens&&E.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));E.push({token:i,fullToken:e});var a=s.run(w,e,A.match,C);if(!a)return{v:new Date(NaN)};P.push(a.setter),w=a.rest}else{if(i.match(yl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(ml)[1].replace(bl,"'")),0!==w.indexOf(e))return{v:new Date(NaN)};w=w.slice(e.length)}};for(L.s();!(D=L.n()).done;){var I=R();if("object"===(0,kr.A)(I))return I.v}}catch(t){L.e(t)}finally{L.f()}if(w.length>0&&xl.test(w))return new Date(NaN);var F=P.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return P.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),z=(0,wr.A)(i);if(isNaN(z.getTime()))return new Date(NaN);var N,W=(0,Tr.A)(z,(0,Pr.A)(z)),V={},B=Ar(F);try{for(B.s();!(N=B.n()).done;){var H=N.value;if(!H.validate(W,C))return new Date(NaN);var j=H.set(W,V,C);Array.isArray(j)?(W=j[0],Dr(V,j[1])):W=j}}catch(t){B.e(t)}finally{B.f()}return W}(t,e,new Date,this.options):(0,vl.A)(t,this.options)),(0,_l.A)(t)?t.getTime():null},format:function(t,e){return(0,wl.A)(t,e,this.options)},add:function(t,e,i){switch(i){case"millisecond":return(0,kl.A)(t,e);case"second":return function(t,e){(0,Lr.A)(2,arguments);var i=(0,Er.A)(e);return(0,kl.A)(t,1e3*i)}(t,e);case"minute":return function(t,e){(0,Lr.A)(2,arguments);var i=(0,Er.A)(e);return(0,kl.A)(t,6e4*i)}(t,e);case"hour":return function(t,e){(0,Lr.A)(2,arguments);var i=(0,Er.A)(e);return(0,kl.A)(t,36e5*i)}(t,e);case"day":return Ml(t,e);case"week":return function(t,e){return(0,Lr.A)(2,arguments),Ml(t,7*(0,Er.A)(e))}(t,e);case"month":return Al(t,e);case"quarter":return function(t,e){return(0,Lr.A)(2,arguments),Al(t,3*(0,Er.A)(e))}(t,e);case"year":return function(t,e){return(0,Lr.A)(2,arguments),Al(t,12*(0,Er.A)(e))}(t,e);default:return t}},diff:function(t,e,i){switch(i){case"millisecond":return Sl(t,e);case"second":return function(t,e,i){(0,Lr.A)(2,arguments);var n=Sl(t,e)/1e3;return Cl(null==i?void 0:i.roundingMethod)(n)}(t,e);case"minute":return Pl(t,e);case"hour":return Ol(t,e);case"day":return Il(t,e);case"week":return Fl(t,e);case"month":return Vl(t,e);case"quarter":return function(t,e,i){(0,Lr.A)(2,arguments);var n=Vl(t,e)/3;return Cl(null==i?void 0:i.roundingMethod)(n)}(t,e);case"year":return Bl(t,e);default:return 0}},startOf:function(t,e,i){switch(e){case"second":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setMilliseconds(0),e}(t);case"minute":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setSeconds(0,0),e}(t);case"hour":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setMinutes(0,0,0),e}(t);case"day":return El(t);case"week":return Hl(t);case"isoWeek":return Hl(t,{weekStartsOn:+i});case"month":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setDate(1),e.setHours(0,0,0,0),e}(t);case"quarter":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t),i=e.getMonth(),n=i-i%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}(t);case"year":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t),i=new Date(0);return i.setFullYear(e.getFullYear(),0,1),i.setHours(0,0,0,0),i}(t);default:return t}},endOf:function(t,e){switch(e){case"second":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setMilliseconds(999),e}(t);case"minute":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setSeconds(59,999),e}(t);case"hour":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t);return e.setMinutes(59,59,999),e}(t);case"day":return Nl(t);case"week":return function(t,e){var i,n,s,o,r,a,l,h;(0,Lr.A)(1,arguments);var c=(0,qa.q)(),u=(0,Er.A)(null!==(i=null!==(n=null!==(s=null!==(o=null==e?void 0:e.weekStartsOn)&&void 0!==o?o:null==e||null===(r=e.locale)||void 0===r||null===(a=r.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==s?s:c.weekStartsOn)&&void 0!==n?n:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,wr.A)(t),f=d.getDay(),g=6+(f<u?-7:0)-(f-u);return d.setDate(d.getDate()+g),d.setHours(23,59,59,999),d}(t);case"month":return Wl(t);case"quarter":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t),i=e.getMonth(),n=i-i%3+3;return e.setMonth(n,0),e.setHours(23,59,59,999),e}(t);case"year":return function(t){(0,Lr.A)(1,arguments);var e=(0,wr.A)(t),i=e.getFullYear();return e.setFullYear(i+1,0,0),e.setHours(23,59,59,999),e}(t);default:return t}}});var Ul=i(4390);const Yl={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},$l={ariaLabel:{type:String},ariaDescribedby:{type:String}},ql={type:{type:String,required:!0},...Yl,...$l},Xl="2"===r.rE[0]?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Kl(t){return(0,Ul.ju)(t)?(0,Ul.ux)(t):t}function Ql(t,e){t.labels=e}function Gl(t,e,i){const n=[];t.datasets=e.map((e=>{const s=t.datasets.find((t=>t[i]===e[i]));return s&&e.data&&!n.includes(s)?(n.push(s),Object.assign(s,e),s):{...e}}))}const Zl=(0,r.pM)({props:ql,setup(t,e){let{expose:i,slots:n}=e;const s=(0,Ul.KR)(null),o=(0,Ul.IJ)(null);return i({chart:o}),(0,r.sV)((()=>{if(!s.value)return;const{type:e,data:i,options:n,plugins:r,datasetIdKey:a}=t,l=function(t,e){const i={labels:[],datasets:[]};return Ql(i,t.labels),Gl(i,t.datasets,e),i}(i,a),h=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return(0,Ul.ju)(e)?new Proxy(t,{}):t}(l,i);o.value=new Hs(s.value,{type:e,data:h,options:{...n},plugins:r})})),(0,r.xo)((()=>{const t=(0,Ul.ux)(o.value);t&&(t.destroy(),o.value=null)})),(0,r.wB)([()=>t.options,()=>t.data],((e,i)=>{let[n,s]=e,[a,l]=i;const h=(0,Ul.ux)(o.value);if(!h)return;let c=!1;if(n){const t=Kl(n),e=Kl(a);t&&t!==e&&(function(t,e){const i=t.options;i&&e&&Object.assign(i,e)}(h,t),c=!0)}if(s){const e=Kl(s.labels),i=Kl(l.labels),n=Kl(s.datasets),o=Kl(l.datasets);e!==i&&(Ql(h.config.data,e),c=!0),n&&n!==o&&(Gl(h.config.data,n,t.datasetIdKey),c=!0)}c&&(0,r.dY)((()=>{(e=>{e.update(t.updateMode)})(h)}))}),{deep:!0}),()=>(0,r.h)("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[(0,r.h)("p",{},[n.default?n.default():""])])}});function Jl(t,e){return Hs.register(e),(0,r.pM)({props:Yl,setup(e,i){let{expose:n}=i;const s=(0,Ul.IJ)(null),o=t=>{s.value=t?.chart};return n({chart:s}),()=>(0,r.h)(Zl,Xl({ref:o},{type:t,...e}))}})}const th=Jl("bar",un),eh=Jl("line",gn);var ih=i(4997),nh=i(9819),sh={name:"ChronoAnswers",components:{Line:eh,ChevronUpIcon:ih.Mtm,ChevronDownIcon:ih.D3D},setup(){const t=(0,f.E)();Hs.register(qo,yr,Ao,to,io,Ko,Zo);const e=(0,r.EW)((()=>(0,nh.TT)(t.itemsToDisplay,"created",!0))),i=(0,r.EW)((()=>{let t=e.value;var i=1,n=[];return t.forEach((t=>{n.push({x:t.created,y:i}),i+=1})),n}));return{time_range:(0,r.EW)((()=>{if(!e.value.length)return"";let t=new Date(e.value[0].created);if(1==e.value.length)return(0,wl.A)(t,"yyyy-LL-dd HH:mm");let i=new Date(e.value[e.value.length-1].created),n=(0,wl.A)(t,"yyyy-LL-dd"),s=(0,wl.A)(i,"yyyy-LL-dd");return n==s?n:n+" - "+s})),data:i,time_unit:(0,r.EW)((()=>{if(1==t.items.length)return console.log("one item"),"second";let i=e.value.length?new Date(e.value[0].created):void 0,n=new Date(e.value[e.value.length-1].created);return void 0!==i&&void 0!==n?Pl(n,i)<1?"second":Ol(n,i)<1?"minute":Il(n,i)<1?"hour":Fl(n,i)<1?"day":Vl(n,i)<1?"week":Bl(n,i)<1?"month":"year":"day"})),point_radius:(0,r.EW)((()=>{var t=8;let i=e.value.length;return t=i>10?7:t,t=i>30?6:t,t=i>60?5:t,i>90?3:t})),color:"rgba(0, 190, 0, 1)",show_graph:(0,r.EW)((()=>t.user_prefs.show_chrono_graph)),toggleGraph:function(){t.user_prefs.show_chrono_graph=!t.user_prefs.show_chrono_graph,y().patch(t.endpoint+"/toggle-chrono-graph",JSON.stringify({visible:t.user_prefs.show_chrono_graph}),{headers:{"Content-Type":"application/json"}}).then((function(t){})).catch((function(t){console.log(t)}))}}}},oh=(i(574),i(1535)),rh=(0,oh.A)(sh,[["render",function(t,e,i,n,s,o){const l=(0,r.g2)("ChevronUpIcon"),h=(0,r.g2)("ChevronDownIcon"),c=(0,r.g2)("Line");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("span",{onClick:e[0]||(e[0]=t=>n.toggleGraph())},[(0,r.Lk)("span",p,[n.show_graph?((0,r.uX)(),(0,r.Wv)(l,{key:0,size:"1.5x"})):((0,r.uX)(),(0,r.Wv)(h,{key:1,size:"1.5x"}))]),(0,r.Lk)("span",m,(0,a.toDisplayString)(t.$t("Chronology")),1),(0,r.eW)(" "+(0,a.toDisplayString)(n.time_range),1)]),n.show_graph?((0,r.uX)(),(0,r.CE)("div",b,[(0,r.bF)(c,{data:{datasets:[{data:n.data,backgroundColor:n.color,borderColor:n.color,pointRadius:n.point_radius,pointHitRadius:15,pointBorderWidth:0,pointHoverRadius:8}]},options:{responsive:!0,maintainAspectRatio:!1,animation:!1,scales:{x:{type:"time",time:{unit:n.time_unit,displayFormats:{second:"kk:mm:ss",minute:"kk:mm",hour:"kk:mm",day:"yyyy-MM-dd",week:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy-MM"}},distribution:"linear"},y:{beginAtZero:!1,min:1,ticks:{precision:0}}},animation:!1,plugins:{legend:{display:!1}}}},null,8,["data","options"])])):(0,r.Q3)("v-if",!0)],64)}],["__scopeId","data-v-37d63335"]]),ah=i(6270),lh={name:"BarChart",components:{Bar:th},props:{field:Object,field_type:String,color_code:String},setup(t){const e=(0,f.E)(),{t:i}=(0,ah.s9)({useScope:"global"}),n=(0,Ul.KR)(null);function s(t,e){return t.length<e?t:t.slice(0,e-2)+".."}function o(){let e="numeric"==t.field_type?3:t.field.values.length;var i=45;return e>12&&(i=185),e>6&&(i=115),s(t.field.label,i)}function a(){var i=void 0,s=0,o=0;e.itemsToDisplay.forEach((e=>{let n=e.data;if(void 0!==n[t.field.name]){let e=Number(n[t.field.name]);NaN!=e&&((void 0===i||e<i)&&(i=e),e>s&&(s=e),o+=e)}})),n.value=(0,nh.kf)(t.field)?o:null,i=void 0!==i?i:0;let r=e.itemsToDisplay.length?o/e.itemsToDisplay.length:0;return[i,r,s]}return Hs.register(Eo,qo,Co,lo,Ko,Zo),{chartOptions:(0,r.EW)((()=>({responsive:!0,maintainAspectRatio:!1,animation:!1,scales:{y:{beginAtZero:!0,ticks:{precision:0}}},plugins:{legend:{onHover:function(t){t.native.target.style.cursor="pointer"},onLeave:function(t){t.native.target.style.cursor="default"},labels:{boxWidth:20,usePointStyle:!0,pointStyle:"rectRounded"}},subtitle:{display:Boolean(n.value),text:i("Total")+": "+n.value,position:"bottom",padding:2,font:{size:13}}}}))),chartData:(0,r.EW)((()=>{return{labels:"multi"==t.field_type?(n=[],Object.values(t.field.values).forEach(((t,e)=>{let i=s(t.label,24);n.push(i)})),n):["Minimum","Average","Maximum"],datasets:[{label:o(),backgroundColor:t.color_code,fill:!0,borderWidth:0,barPercentage:1,data:"multi"==t.field_type?(i=[],Object.values(t.field.values).forEach(((t,e)=>{i.push(0)})),e.itemsToDisplay.forEach((e=>{let n=e.data;if(void 0!==n[t.field.name]&&n[t.field.name]){let e=n[t.field.name].split(", ");Object.values(t.field.values).forEach(((t,n)=>{e.includes(t.value)&&(i[n]+=1)}))}})),i):a()}]};var i,n}))}}},hh={name:"GraphRenderer",components:{ChronoAnswers:rh,BarChart:(0,oh.A)(lh,[["render",function(t,e,i,n,s,o){const a=(0,r.g2)("Bar");return(0,r.uX)(),(0,r.Wv)(a,{options:n.chartOptions,data:n.chartData},null,8,["options","data"])}]]),GoToTop:g.A},setup(){const t=(0,f.E)(),e=(0,o.useMq)(),i=(0,r.EW)((()=>"xs"==e.current));(0,r.Gt)("xs_screen",i);var n={},s=0;const a=["rgba(233, 132, 0, 0.7)","rgba(182, 0, 181, 0.7)","rgba(255, 0, 0, 0.7)","rgba(0, 123 ,255, 0.7)","rgba(0, 190, 0, 0.7)"],l=(0,r.EW)((()=>{var e=[];return t.field_index.forEach((i=>{t.meta.form_structure.forEach((t=>{i.name==t.name&&void 0!==t.type&&("checkbox-group"!=t.type&&"radio-group"!=t.type&&"select"!=t.type||e.push(t),i.name==t.name&&void 0!==t.type&&"number"==t.type&&e.push(t))}))})),e}));return{xs_screen:i,is_loading:(0,r.EW)((()=>t.downloading_items)),fields:l,display_items_as:(0,r.EW)((()=>t.display_items_as)),total_items:(0,r.EW)((()=>t.items.length)),getColorCode:function(t){return Object.keys(n).includes(t)||((s+=1)==a.length&&(s=0),n[t]=a[s]),n[t]},getFieldType:function(t){return t.startsWith("number")?"numeric":"multi"},chartClasses:function(t){if(void 0===t)return"g-col-md-4";let e=t.length;return e>8?"g-col-md-12":e>6?"g-col-md-8":"g-col-md-4"},is_filtered:(0,r.EW)((()=>t.items.length!=t.itemsToDisplay.length)),pdf_builder_mode:(0,r.EW)((()=>t.ui.pdf_builder))}}};i(7126);const ch=(0,oh.A)(hh,[["render",function(t,e,i,n,s,o){const f=(0,r.g2)("GoToTop"),g=(0,r.g2)("ChronoAnswers"),p=(0,r.g2)("BarChart");return n.is_loading||"graphs"!=n.display_items_as||n.pdf_builder_mode?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",l,[n.xs_screen?((0,r.uX)(),(0,r.Wv)(f,{key:0})):(0,r.Q3)("v-if",!0),(0,r.Lk)("div",h,[(0,r.Lk)("div",c,[(0,r.bF)(g)])]),n.fields.length?((0,r.uX)(),(0,r.CE)("div",u,[(0,r.Lk)("div",d,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(n.fields,((t,e)=>((0,r.uX)(),(0,r.CE)("div",{key:"bar"+e,class:(0,a.normalizeClass)([n.chartClasses(t.values),"g-col-12 mt-3 ds-chart-container"])},[(0,r.bF)(p,{field:t,field_type:n.getFieldType(t.name),color_code:n.getColorCode(t.name)},null,8,["field","field_type","color_code"])],2)))),128))])])):(0,r.Q3)("v-if",!0)]))}],["__scopeId","data-v-5cd41c32"]]);var uh=ch;document.querySelectorAll("[vue-component=graph-renderer]").forEach((t=>{(0,n.createApp)(uh).use(s.A).use(o.Vue3Mq,{}).mount(t)}))},988:function(t,e,i){"use strict";i.r(e);var n=i(9248),s=i.n(n),o=i(9089),r=i.n(o)()(s());r.push([t.id,"\n.ds-goto-top[data-v-0422979d] {\n z-index: 100;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: fixed;\n top:auto;\n bottom:2em;\n right:1.5em;\n left:auto;\n}\n.ds-goto-top > svg[data-v-0422979d] {\n margin-left: 2px;\n margin-top: 0;\n}\n",""]),e.default=r},6003:function(t,e,i){"use strict";i.r(e);var n=i(9248),s=i.n(n),o=i(9089),r=i.n(o)()(s());r.push([t.id,"\n.ds-loading[data-v-5cd41c32] {\n font-style: italic;\n color: var(--lf-gray-800);\n margin-top: 1.5em;\n}\n.ds-no-data[data-v-5cd41c32] {\n font-style: italic;\n color: var(--lf-gray-600);\n margin-top: 1em;\n font-size: 1.75em;\n}\n.ds-chart-container[data-v-5cd41c32] {\n height: 250px;\n max-height: 250px !important;\n width: calc(100% - 0.5rem) !important;\n}\n/*\n.ds-items-total {\n font-size: 0.9em;\n}\n*/\n",""]),e.default=r},6493:function(t,e,i){"use strict";i.r(e);var n=i(9248),s=i.n(n),o=i(9089),r=i.n(o)()(s());r.push([t.id,"\n.ds-link[data-v-37d63335] {\n color: var(--lf-link-color);\n text-decoration: underline;\n cursor: pointer;\n}\n",""]),e.default=r},7488:function(t,e,i){"use strict";i.d(e,{A:function(){return h}});var n=i(822),s=i(4526);const o={ref:"target",id:"go_to_top"};var r=i(4390),a=i(4023),l={name:"GoToTop",components:{ChevronUpIcon:i(4997).Mtm},setup(t){const e=(0,r.KR)(null),i=(0,a.ITo)(e),s=(0,r.KR)(!1);return(0,n.wB)((()=>i.value),(()=>{if(i.value)s.value=!1;else{let t=document.getElementById("go_to_top");t&&t.getBoundingClientRect().top<0&&(s.value=!0)}}),{immediate:!0}),{target:e,showButton:s,goToTop:function(){window.scrollTo(0,0)},themeColors:function(){let t=document.getElementsByClassName("ds-main-navbar")[0],e=window.getComputedStyle(t).getPropertyValue("background-color"),i=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(i).getPropertyValue("color"),"background-color":e}}()}}};i(842);var h=(0,i(1535).A)(l,[["render",function(t,e,i,r,a,l){const h=(0,n.g2)("ChevronUpIcon");return(0,n.uX)(),(0,n.CE)("div",o,[r.showButton?((0,n.uX)(),(0,n.CE)("div",{key:0,class:"ds-goto-top",style:(0,s.normalizeStyle)(r.themeColors),onClick:e[0]||(e[0]=t=>r.goToTop())},[(0,n.bF)(h,{size:"3x"})],4)):(0,n.Q3)("v-if",!0)],512)}],["__scopeId","data-v-0422979d"]])},842:function(t,e,i){var n=i(988);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals),(0,i(8449).A)("7ff4776c",n,!1,{})},7126:function(t,e,i){var n=i(6003);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals),(0,i(8449).A)("42daddae",n,!1,{})},574:function(t,e,i){var n=i(6493);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals),(0,i(8449).A)("19a46f86",n,!1,{})},4023:function(t,e,i){"use strict";i.d(e,{Lhy:function(){return m},ITo:function(){return b}});var n=i(4390),s=i(822);function o(t){return!!(0,n.o5)()&&((0,n.jr)(t),!0)}function r(t){return"function"==typeof t?t():(0,n.R1)(t)}const a="undefined"!=typeof window&&"undefined"!=typeof document,l=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),t=>null!=t),h=(Object.prototype.toString,()=>{});function c(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}const u=/\B([A-Z])/g,d=(c((t=>t.replace(u,"-$1").toLowerCase())),/-(\w)/g);function f(t){var e;const i=r(t);return null!=(e=null==i?void 0:i.$el)?e:i}c((t=>t.replace(d,((t,e)=>e?e.toUpperCase():""))));const g=a?window:void 0;function p(t){const e=function(){const t=(0,n.KR)(!1),e=(0,s.nI)();return e&&(0,s.sV)((()=>{t.value=!0}),e),t}();return(0,s.EW)((()=>(e.value,Boolean(t()))))}function m(t,e={width:0,height:0},i={}){const{window:r=g,box:a="content-box"}=i,l=(0,s.EW)((()=>{var e,i;return null==(i=null==(e=f(t))?void 0:e.namespaceURI)?void 0:i.includes("svg")})),h=(0,n.KR)(e.width),c=(0,n.KR)(e.height),{stop:u}=function(t,e,i={}){const{window:n=g,...r}=i;let a;const l=p((()=>n&&"ResizeObserver"in n)),h=()=>{a&&(a.disconnect(),a=void 0)},c=(0,s.EW)((()=>Array.isArray(t)?t.map((t=>f(t))):[f(t)])),u=(0,s.wB)(c,(t=>{if(h(),l.value&&n){a=new ResizeObserver(e);for(const e of t)e&&a.observe(e,r)}}),{immediate:!0,flush:"post"}),d=()=>{h(),u()};return o(d),{isSupported:l,stop:d}}(t,(([e])=>{const i="border-box"===a?e.borderBoxSize:"content-box"===a?e.contentBoxSize:e.devicePixelContentBoxSize;if(r&&l.value){const e=f(t);if(e){const t=r.getComputedStyle(e);h.value=Number.parseFloat(t.width),c.value=Number.parseFloat(t.height)}}else if(i){const t=Array.isArray(i)?i:[i];h.value=t.reduce(((t,{inlineSize:e})=>t+e),0),c.value=t.reduce(((t,{blockSize:e})=>t+e),0)}else h.value=e.contentRect.width,c.value=e.contentRect.height}),i);!function(t,e=!0,i){!function(t){return t||(0,s.nI)()}()?e?t():(0,s.dY)(t):(0,s.sV)(t,i)}((()=>{const i=f(t);i&&(h.value="offsetWidth"in i?i.offsetWidth:e.width,c.value="offsetHeight"in i?i.offsetHeight:e.height)}));const d=(0,s.wB)((()=>f(t)),(t=>{h.value=t?e.width:0,c.value=t?e.height:0}));return{width:h,height:c,stop:function(){u(),d()}}}function b(t,e={}){const{window:i=g,scrollTarget:a,threshold:c=0}=e,u=(0,n.KR)(!1);return function(t,e,i={}){const{root:a,rootMargin:c="0px",threshold:u=.1,window:d=g,immediate:m=!0}=i,b=p((()=>d&&"IntersectionObserver"in d)),x=(0,s.EW)((()=>{const e=r(t);return(Array.isArray(e)?e:[e]).map(f).filter(l)}));let y=h;const v=(0,n.KR)(m),_=b.value?(0,s.wB)((()=>[x.value,f(a),v.value]),(([t,i])=>{if(y(),!v.value)return;if(!t.length)return;const n=new IntersectionObserver(e,{root:f(i),rootMargin:c,threshold:u});t.forEach((t=>t&&n.observe(t))),y=()=>{n.disconnect(),y=h}}),{immediate:m,flush:"post"}):h;o((()=>{y(),_(),v.value=!1}))}(t,(t=>{let e=u.value,i=0;for(const n of t)n.time>=i&&(i=n.time,e=n.isIntersecting);u.value=e}),{root:a,window:i,threshold:c}),u}a&&window.document,a&&window.navigator,a&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY},3718:function(t,e,i){"use strict";i.d(e,{A:function(){return s}});var n=i(581);function s(t,e,i){return(e=(0,n.A)(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},581:function(t,e,i){"use strict";i.d(e,{A:function(){return s}});var n=i(901);function s(t){var e=function(t,e){if("object"!==(0,n.A)(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!==(0,n.A)(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===(0,n.A)(e)?e:String(e)}}},function(t){t(t.s=2179)}]); \ No newline at end of file
diff --git a/liberaforms/static/js/data-display/v2/items-renderer.js b/liberaforms/static/js/data-display/v2/items-renderer.js
index a299d358..a54a40a5 100644
--- a/liberaforms/static/js/data-display/v2/items-renderer.js
+++ b/liberaforms/static/js/data-display/v2/items-renderer.js
@@ -1,2 +1,2 @@
/*! For license information please see items-renderer.js.LICENSE.txt */
-(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[187],{3150:function(e,t,n){var i;n(4573),i=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var i=n(279),a=n.n(i),o=n(370),l=n.n(o),r=n(817),d=n.n(r);function s(e){try{return document.execCommand(e)}catch(e){return!1}}var c=function(e){var t=d()(e);return s("cut"),t},u=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var i=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(i,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var i=d()(n);return s("copy"),n.remove(),i},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=u(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=u(e.value,t):(n=d()(e),s("copy")),n};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(d,e);var t,n,i,a,o,r=(a=d,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(a);if(o){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(this,e)});function d(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(n=r.call(this)).resolveOptions(t),n.listenClick(e),n}return t=d,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=l()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,i=e.container,a=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==a){if(!a||"object"!==p(a)||1!==a.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&a.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(a.hasAttribute("readonly")||a.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?f(o,{container:i}):a?"cut"===n?c(a):f(a,{container:i}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(i?"success":"error",{action:n,text:i,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],i=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return c(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&_(t.prototype,n),i&&_(t,i),d}(a()),w=b},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function a(e,t,n,i,a){var l=o.apply(this,arguments);return e.addEventListener(n,l,a),{destroy:function(){e.removeEventListener(n,l,a)}}}function o(e,t,n,a){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&a.call(e,n)}}e.exports=function(e,t,n,i,o){return"function"==typeof e.addEventListener?a.apply(null,arguments):"function"==typeof n?a.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return a(e,t,n,i,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),a=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(i.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(i.string(e))return function(e,t,n){return a(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),a=document.createRange();a.selectNodeContents(e),i.removeAllRanges(),i.addRange(a),t=i.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function a(){i.off(e,a),t.apply(n,arguments)}return a._=t,this.on(e,a,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=n.length;i<a;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],a=[];if(i&&t)for(var o=0,l=i.length;o<l;o++)i[o].fn!==t&&i[o].fn._!==t&&a.push(i[o]);return a.length?n[e]=a:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=i()},6809:function(e,t,n){"use strict";var i=n(341),a=n(2596),o=n(159),l=n(6229);const r={key:0},d={key:1,class:"mt-3"},s={key:2,class:"mt-3"},c={key:3,class:"mt-3"};var u=n(2343),f=n(3895),p=n(2502);const m={key:0},_={class:"table-responsive",ref:"gridRef"},g={class:"table"},v=["onClick"],h=["aria-label"],y=["onClick","title"];var b=n(9371),w=n(991),k=(n(3903),n(9404));const x={key:0,class:"d-flex align-items-center justify-content-end mb-2"},C={class:"page_count_display me-2"},D={"aria-label":"Paginate items"},S={class:"pagination pagination-sm mb-0"},F=["onClick"],T=[(e=>((0,l.dD)("data-v-41ea2cb1"),e=e(),(0,l.Cn)(),e))((()=>(0,l._)("a",{class:"page-link"}," ... ",-1)))];var M={name:"ItemPagination",components:{},setup(){const e=(0,f.i)(),t=(0,l.Fl)((()=>{let t=e.itemsToDisplay.length;return Math.ceil(t/e.page_length)}));return{is_loading:(0,l.Fl)((()=>e.downloading_items)),page_number:(0,l.Fl)((()=>e.page)),total_pages:t,getPaginationText:function(){e.page,e.page;var t=e.itemsToDisplay.length;if(t<e.page_length)var n=t;else{var i=e.page*e.page_length;i=i>t?t:i,n=(e.page-1)*e.page_length+1+" - "+i}return"Displaying {filtered} of {total}".replace(/{filtered}/,n).replace(/{total}/,t)},showPageButton:function(t){if(this.total_pages<=7)return!0;if(t==e.page||1==t||t==this.total_pages)return!0;if(t<=5&&e.page<4)return!0;if(6==t&&e.page<5)return!1;if(t>=this.total_pages-4&&e.page>this.total_pages-3)return!0;if(t==this.total_pages-5&&e.page>this.total_pages-4)return!1;if(e.page>=4){if(t==e.page-1||t==e.page+1)return!0;if(t==e.page-2||t==e.page+2)return!1}return null},decrementPage:function(){e.page>1&&(e.page=e.page-1)},incrementPage:function(){e.page<this.total_pages&&(e.page=e.page+1)},setPage:function(t){e.page=t}}}},E=(n(1621),n(6021)),I=(0,E.Z)(M,[["render",function(e,t,n,i,a,o){return!1===i.is_loading?((0,l.wg)(),(0,l.iD)("div",x,[(0,l._)("small",C,(0,p.toDisplayString)(i.getPaginationText()),1),(0,l._)("nav",D,[(0,l._)("ul",S,[(0,l._)("li",{class:(0,p.normalizeClass)(["page-item",{disabled:1==i.page_number}])},[(0,l._)("a",{class:"page-link",onClick:t[0]||(t[0]=(...e)=>i.decrementPage&&i.decrementPage(...e))},(0,p.toDisplayString)(e.$t("Previous")),1)],2),((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(i.total_pages,(e=>((0,l.wg)(),(0,l.iD)(l.HY,null,[!0===i.showPageButton(e)?((0,l.wg)(),(0,l.iD)("li",{key:0,class:(0,p.normalizeClass)(["page-item",{active:e==i.page_number}])},[(0,l._)("a",{class:"page-link",onClick:t=>i.setPage(e)},(0,p.toDisplayString)(e),9,F)],2)):!1===i.showPageButton(e)?((0,l.wg)(),(0,l.iD)("li",{key:1,class:(0,p.normalizeClass)(["page-item disabled",{active:e==i.page_number}])},T,2)):(0,l.kq)("v-if",!0)],64)))),256)),(0,l._)("li",{class:(0,p.normalizeClass)(["page-item",{disabled:i.page_number==i.total_pages}])},[(0,l._)("a",{class:"page-link",onClick:t[1]||(t[1]=(...e)=>i.incrementPage&&i.incrementPage(...e))},(0,p.toDisplayString)(e.$t("Next")),1)],2)])])])):(0,l.kq)("v-if",!0)}],["__scopeId","data-v-41ea2cb1"]]);const H={key:0,class:"p-0 stickyColumn first_sticky_col"},z=["innerHTML"],P=["innerHTML"];var O={name:"FieldRender",components:{},props:{field_name:String,field_value:void 0,item_id:Number},setup(e){const t=(0,f.i)(),n=(0,l.f3)("showFieldEditor");return{fieldValue:(0,l.Fl)((()=>{if(e.field_name.endsWith("__html"))return e.field_value.html;let n={field_name:e.field_name,field_value:e.field_value};return t.getFormattedValue(n)})),fieldClasses:(0,l.Fl)((()=>{if("boolean"==typeof e.field_value)return e.field_value?"badge rounded-pill bg-success":"badge rounded-pill bg-secondary";var n="";return"answer"==t.data_type&&"created"!==e.field_name&&(n="ds-with-pointer"),void 0!==e.field_value&&""!==e.field_value||(n+=" ds-empty-field"),n})),with_modal:(0,l.Fl)((()=>"answer"==t.data_type&&"marked"!==e.field_name&&"created"!==e.field_name&&!e.field_name.startsWith("file-")&&!e.field_name.endsWith("__html"))),showModal:function(){n({item_id:e.item_id,field_name:e.field_name,field_value:e.field_value})}}}};n(8199),n(8725);var j=(0,E.Z)(O,[["render",function(e,t,n,i,a,o){return i.with_modal?((0,l.wg)(),(0,l.iD)("span",{key:0,innerHTML:i.fieldValue,class:(0,p.normalizeClass)([i.fieldClasses,"ds-field-value"]),onClick:t[0]||(t[0]=e=>i.showModal())},null,10,z)):((0,l.wg)(),(0,l.iD)("span",{key:1,innerHTML:i.fieldValue,class:(0,p.normalizeClass)([i.fieldClasses,"ds-field-value"])},null,10,P))}],["__scopeId","data-v-73a7d0c6"]]);const L=["aria-label"],R=["aria-label"];var B=n(4559),A=n.n(B),q={name:"RowControls",components:{BookmarkIcon:k.plf,TrashIcon:k.XHJ},props:{item_id:Number,marked:Boolean,is_card:Boolean},setup(e){const t=(0,f.i)(),n=(0,l.Fl)((()=>t.show_other_options));return{controlClass:(0,l.Fl)((()=>1==e.is_card?t.show_other_options?"card-controls expanded":"card-controls notExpanded":t.show_other_options?"grid-controls expanded":"grid-controls notExpanded")),toggleBookmarked:function(n){let i=t.items.find((t=>t.id==e.item_id));i&&(i.marked=!i.marked,A().post(t.item_endpoint+e.item_id+"/mark").then((function(e){i.marked=e.data.marked})).catch((e=>{i.marked=!i.marked,console.log(e)})))},with_other_options:n,initiateDelete:function(){t.delete_item_initiated=e.item_id}}}};n(5815);var Z=(0,E.Z)(q,[["render",function(e,t,n,i,a,o){const r=(0,l.up)("BookmarkIcon"),d=(0,l.up)("TrashIcon");return(0,l.wg)(),(0,l.iD)("div",{class:(0,p.normalizeClass)(["rowControls",i.controlClass])},[(0,l._)("button",{class:(0,p.normalizeClass)({"bg-success text-white":n.marked,"ds-card-button":n.is_card}),onClick:t[0]||(t[0]=(...e)=>i.toggleBookmarked&&i.toggleBookmarked(...e)),"aria-label":e.$t("Mark for reference")},[(0,l.Wm)(r,{size:"1.3x"})],10,L),i.with_other_options?((0,l.wg)(),(0,l.iD)("button",{key:0,class:(0,p.normalizeClass)(["ds-delete-button",{"ds-card-button":1==n.is_card}]),"aria-label":e.$t("Delete answer"),onClick:t[1]||(t[1]=e=>i.initiateDelete())},[(0,l.Wm)(d,{size:"1.3x"})],10,R)):(0,l.kq)("v-if",!0)],2)}],["__scopeId","data-v-dad6cfb0"]]),W={name:"GridRow",components:{RowControls:Z,FieldRender:j},props:{item:Object,field_index:Object,make_sticky:Boolean,sticky_column_classes:String,sticky_col_width:Object,column_width:Object,highlighted_row:Number},setup(e){const t=(0,f.i)();var n=(0,u.iH)(!1);return(0,l.YP)((()=>e.highlighted_row),(()=>{n.value=e.item.id==e.highlighted_row})),{make_sticky:(0,l.Fl)((()=>e.make_sticky)),sticky_column_classes:(0,l.Fl)((()=>e.sticky_column_classes)),sticky_col_width:e.sticky_col_width,column_width:(0,l.Fl)((()=>e.column_width)),is_highlighted:n,data_type:(0,l.Fl)((()=>t.data_type))}}},N={name:"ItemsGrid",components:{ItemPagination:I,GridRow:(0,E.Z)(W,[["render",function(e,t,n,i,a,o){const r=(0,l.up)("RowControls"),d=(0,l.up)("FieldRender");return(0,l.wg)(),(0,l.iD)("tr",{class:(0,p.normalizeClass)([i.is_highlighted?"ds-highlighted":""])},[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.field_index,((e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,null,["marked"==e.name?((0,l.wg)(),(0,l.iD)("td",H,[(0,l.Wm)(r,{item_id:n.item.id,marked:n.item.marked},null,8,["item_id","marked"])])):((0,l.wg)(),(0,l.iD)("td",{key:1,class:(0,p.normalizeClass)([1==t&&i.make_sticky?i.sticky_column_classes:"",i.is_highlighted?"highlighted":""])},[(0,l._)("div",{style:(0,p.normalizeStyle)([1==t&&i.make_sticky?i.sticky_col_width:i.column_width])},[(0,l.Wm)(d,{field_name:e.name,field_value:"created"==e.name?n.item.created:n.item.data[e.name],item_id:n.item.id},null,8,["field_name","field_value","item_id"])],4)],2))],64)))),256))],2)}]]),ArrowDownIcon:k.veu,BookmarkIcon:k.plf},setup(){const e=(0,f.i)(),t=e.data_type,n=(0,u.iH)(0),{t:i}=(0,b.QT)({useScope:"global"}),a=(0,l.Fl)((()=>e.field_index)),o=(0,u.iH)(null),{width:r}=(0,w.h4X)(o),d=(0,u.iH)({width:"","min-width":"","max-width":""});var s=!1,c=(0,u.iH)(!1);(0,l.bv)((()=>{!function(){let n=r.value,i=e.field_index.length;var a=0;e.has_row_controls&&(a=38,i-=1);var o=(n-a-18*i)/i;"answer"==t&&(s=!0,o<130?(o=130,c.value=!0):o=240),d.value="answer"==t&&s?{"max-width":o+"px"}:{}}()}));const p=(0,l.Fl)((()=>e.show_other_options?"stickyColumn sticky_data_col sticky_data_col_with_controls_expanded":e.has_row_controls?"stickyColumn sticky_data_col sticky_data_col_with_controls":""));return{gridRef:o,grid_column_width:d,items:(0,l.Fl)((()=>e.paginatedItems)),field_index:a,setOrder:function(t){e.user_prefs.order_by!=t?e.setOrderBy(t):e.setAscending(!e.user_prefs.ascending)},isFieldDeletedField:e.isFieldDeletedField,getFieldLabel:function(t,n){return"answer"==e.data_type?"marked"==t||"created"==t?i(n):n:i(n)},make_sticky:c,sticky_column_classes:p,sticky_col_width:{width:"168px","min-width":"168px","max-width":"168px"},data_type:t,highlighted_row:n,display_items_as:(0,l.Fl)((()=>e.display_items_as))}}};n(3858);var Y=(0,E.Z)(N,[["render",function(e,t,n,i,a,o){const r=(0,l.up)("BookmarkIcon"),d=(0,l.up)("GridRow"),s=(0,l.up)("ItemPagination");return"grid"==i.display_items_as?((0,l.wg)(),(0,l.iD)("div",m,[(0,l._)("div",_,[(0,l._)("table",g,[(0,l._)("thead",null,[(0,l._)("tr",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(i.field_index,((t,n)=>((0,l.wg)(),(0,l.iD)(l.HY,null,["marked"==t.name?((0,l.wg)(),(0,l.iD)("th",{key:n,onClick:e=>i.setOrder(t.name),class:"stickyColumn widthZero first_sticky_col",scope:"col"},[(0,l._)("div",{class:"ds-marked-col-header","aria-label":e.$t("Marked")},[(0,l.Wm)(r,{size:"1.25x","aria-hidden":"true"})],8,h)],8,v)):((0,l.wg)(),(0,l.iD)("th",{key:n+100,class:(0,p.normalizeClass)([1==n&&i.make_sticky?i.sticky_column_classes:""]),scope:"col"},[(0,l._)("div",{style:(0,p.normalizeStyle)([1==n&&i.make_sticky?i.sticky_col_width:i.grid_column_width]),onClick:e=>i.setOrder(t.name),class:(0,p.normalizeClass)({"ds-deleted-field-label":i.isFieldDeletedField(t.name)}),title:i.getFieldLabel(t.name,t.label)},(0,p.toDisplayString)(i.getFieldLabel(t.name,t.label)),15,y)],2))],64)))),256))])]),(0,l._)("tbody",null,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(i.items,(e=>((0,l.wg)(),(0,l.j4)(d,{key:e.id,item:e,field_index:i.field_index,highlighted_row:i.highlighted_row,onClick:t=>i.highlighted_row=e.id,column_width:i.grid_column_width,make_sticky:i.make_sticky,sticky_column_classes:i.sticky_column_classes,sticky_col_width:i.sticky_col_width},null,8,["item","field_index","highlighted_row","onClick","column_width","make_sticky","sticky_column_classes","sticky_col_width"])))),128))])])],512),(0,l.Wm)(s)])):(0,l.kq)("v-if",!0)}]]);const $={key:0,class:"my-0"},K={class:"card-header d-flex justify-content-between align-items-baseline"},U=["innerHTML"],V=["aria-label"],G=["aria-label"],J={class:"list-group list-group-flush"};var X={name:"ItemCard",components:{RowControls:Z,FieldRender:j,ChevronUpIcon:k.g8U,ChevronDownIcon:k.v4q},props:{item:Object,field_index:Object,expand_all:Boolean},setup(e){const t=(0,f.i)(),n=(0,u.iH)(!1);return{card_title:(0,l.Fl)((()=>{let n=t.first_field,i="created"==n.name?e.item.created:e.item.data[n.name];if(void 0===i||""===i)return'<span class="ds-empty-field">Empty</span>';let a={field_name:n.name,field_value:i},o=t.getFormattedValue(a);var l=o;return null!=o.html&&(l=o.html),String(l).replace(/href=(["'])((?:\\1|(?:(?!\1)).)*)(\1)/gm,"")})),expanded:n,expand_all:(0,l.Fl)((()=>e.expand_all)),isFieldDeletedField:t.isFieldDeletedField,data_type:t.data_type}}};n(67);var Q={name:"ItemsCards",components:{ItemCard:(0,E.Z)(X,[["render",function(e,t,n,i,a,o){const r=(0,l.up)("RowControls"),d=(0,l.up)("ChevronDownIcon"),s=(0,l.up)("ChevronUpIcon"),c=(0,l.up)("FieldRender");return(0,l.wg)(),(0,l.iD)("div",{class:(0,p.normalizeClass)(["card",i.expanded?"active":""])},[(0,l._)("div",K,["answer"==i.data_type?((0,l.wg)(),(0,l.j4)(r,{key:0,item_id:n.item.id,marked:n.item.marked},null,8,["item_id","marked"])):(0,l.kq)("v-if",!0),(0,l._)("div",{onClick:t[0]||(t[0]=e=>i.expanded=!i.expanded),class:"ds-card-title px-2 flex-grow-1 text-truncate",innerHTML:i.card_title},null,8,U),0==i.expanded?((0,l.wg)(),(0,l.iD)("button",{key:1,class:"card-controls ds-expand-button",onClick:t[1]||(t[1]=e=>i.expanded=!i.expanded),"aria-label":e.$t("Expand")},[(0,l.Wm)(d,{size:"1.5x","aria-hidden":"true"})],8,V)):((0,l.wg)(),(0,l.iD)("button",{key:2,class:"card-controls ds-expand-button",onClick:t[2]||(t[2]=e=>i.expanded=!i.expanded),"aria-label":e.$t("Collapse")},[(0,l.Wm)(s,{size:"1.5x","aria-hidden":"true"})],8,G))]),1==i.expanded?((0,l.wg)(),(0,l.iD)("div",{key:0,class:(0,p.normalizeClass)([{"card-data-flex-container":1==i.expand_all},"card-body"])},[(0,l._)("ul",J,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(n.field_index,((e,t)=>((0,l.wg)(),(0,l.iD)(l.HY,{key:"field"+t},["marked"!=e.name?((0,l.wg)(),(0,l.iD)("li",{key:0,class:(0,p.normalizeClass)([{"card-data-flex":1==i.expand_all},"list-group-item px-2"])},[(0,l._)("span",{class:(0,p.normalizeClass)(["fw-bold",{deletedFieldLabel:i.isFieldDeletedField(e.name)}])},(0,p.toDisplayString)(e.label),3),(0,l.Wm)(c,{field_name:e.name,field_value:"created"==e.name?n.item.created:n.item.data[e.name],item_id:n.item.id,edit_mode:(e.name,!1)},null,8,["field_name","field_value","item_id","edit_mode"])],2)):(0,l.kq)("v-if",!0)],64)))),128))])],2)):(0,l.kq)("v-if",!0)],2)}],["__scopeId","data-v-2b53e1d2"]]),ChevronUpIcon:k.g8U},setup(){const e=(0,f.i)(),t=(0,l.f3)("xs_screen"),n=(0,u.iH)(!1),i=(0,u.iH)(!1),a=(0,l.Fl)((()=>e.field_index));return{xs_screen:t,show_goto_top:n,goto_top:i,siteThemeColors:(0,l.Fl)((()=>{let e=document.getElementsByClassName("ds-main-navbar")[0],t=window.getComputedStyle(e).getPropertyValue("background-color"),n=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(n).getPropertyValue("color"),"background-color":t}})),field_index:a,more_cards_to_load:(0,l.Fl)((()=>e.paginatedCards.length<e.itemsToDisplay.length)),LoadMoreCards:function(){e.card_batch=e.card_batch+1},items:(0,l.Fl)((()=>e.paginatedCards)),total_items:(0,l.Fl)((()=>e.itemsToDisplay.length)),display_items_as:(0,l.Fl)((()=>e.display_items_as))}}};n(7030);var ee=(0,E.Z)(Q,[["render",function(e,t,n,i,a,o){const r=(0,l.up)("ItemCard");return"cards"==i.display_items_as||i.xs_screen?((0,l.wg)(),(0,l.iD)("div",$,[(0,l._)("div",{class:(0,p.normalizeClass)(["ds-card-list",i.xs_screen?"mt-4":"mt-3"])},[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(i.items,(e=>((0,l.wg)(),(0,l.j4)(r,{key:e.id,item:e,field_index:i.field_index,expand_all:!1},null,8,["item","field_index"])))),128))],2),i.more_cards_to_load?((0,l.wg)(),(0,l.iD)("div",{key:0,class:"mt-3 ds-more-cards",onClick:t[0]||(t[0]=e=>i.LoadMoreCards())},(0,p.toDisplayString)(e.$t("Show more")),1)):(0,l.kq)("v-if",!0)])):(0,l.kq)("v-if",!0)}]]);const te={key:0},ne={class:"modal-dialog",role:"document"},ie={class:"modal-content"},ae={class:"modal-header"},oe={class:"modal-title"},le=[(0,l._)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x","aria-hidden":"true"},[(0,l._)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,l._)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)],re={class:"modal-body"},de={key:0,class:"form-group"},se=["type"],ce=["value"],ue={class:"form-check"},fe=["id","value"],pe=["for"],me={class:"form-check"},_e=["id","value"],ge=["for"],ve=["innerHTML"],he={key:2},ye={key:0,class:"ds-empty-field"},be={key:1},we={class:"modal-footer"},ke=(0,l._)("div",{class:"modal-backdrop fade show"},null,-1);n(4573);var xe=n(3150),Ce={name:"FieldModal",components:{},props:{data:Object,show_modal:Boolean},emits:["closeFieldModal"],setup(e,{emit:t}){const n=(0,f.i)(),i=(0,u.iH)(!1),a=(0,u.iH)([]),o=(0,u.iH)([]),r=(0,u.iH)(null),d=n.can_edit,{toClipboard:s}={toClipboard(e,t){return new Promise(((n,i)=>{const a=document.createElement("button"),o=new xe(a,{text:()=>e,action:()=>"copy",container:void 0!==t?t:document.body});o.on("success",(e=>{o.destroy(),n(e)})),o.on("error",(e=>{o.destroy(),i(e)})),document.body.appendChild(a),a.click(),document.body.removeChild(a)}))}};var c={};function p(){i.value=!1,c={},t("closeFieldModal")}return(0,l.YP)((()=>JSON.stringify(e.data)),(t=>{let i=n.getFieldStructure(e.data.field_name);c=void 0!==i?i:{type:null},r.value=c.type,a.value=[],o.value=[],("select"==r.value||"checkbox-group"==r.value||"radio-group"==r.value)&&(void 0!==e.data.field_value&&(o.value=e.data.field_value.split(", ")),c.values.forEach((e=>{a.value.push({value:e.value,label:e.label})})))})),{show_modal:(0,l.Fl)((()=>e.show_modal)),can_edit:d,edit_mode:i,formatted_field_value:function(){if(!e.data.field_value)return e.data.field_value;if(e.data.field_name.startsWith("checkbox")){var t=e.data.field_value.split(", "),i="<ul>";return t.forEach((t=>{var a=n.getOptionLabel({field_name:e.data.field_name,option_value:t});i=i+'<li style="margin-left: -1.3em;">'+a+"</li>"})),i+="</ul>"}if(e.data.field_name.startsWith("radio-group")||e.data.field_name.startsWith("select")){var a=n.getOptionLabel({field_name:e.data.field_name,option_value:e.data.field_value});if(a)return a}return e.data.field_value},field_type:r,field_options:a,multi_choice:o,closeModal:p,saveField:function(){let t=e.data.item_id;var i=n.items.find((e=>e.id===t)),a="";if(void 0!==i){"checkbox-group"==r.value?(o.value.length>0&&""===o.value[0].trim()&&(o.value=o.value.slice(1)),a=o.value.join(", ")):a="number"==r.value?void 0!==e.data.field_value?e.data.field_value:"":void 0!==e.data.field_value?e.data.field_value.trim():"";let c=e.data.field_name;var l=i.data[c],d=!0;if(c.startsWith("checkbox")&&""===a?delete i.data[c]:i.data[c]==a?d=!1:i.data[c]=a,d){var s=JSON.stringify({item_data:i.data});A().patch(n.item_endpoint+t+"/save",s,{headers:{"Content-Type":"application/json"}}).then((e=>{1==e.data.saved&&(i.data=e.data.data)})).catch((e=>{console.log(e),i.data[c]=l}))}}p()},copyToClipboard:async e=>{try{await s(e)}catch(e){console.error(e)}p()}}}},De=(0,E.Z)(Ce,[["render",function(e,t,n,a,o,r){return a.show_modal?((0,l.wg)(),(0,l.iD)("div",te,[(0,l._)("div",{class:"modal fade show d-block",onKeydown:t[12]||(t[12]=(0,i.withKeys)((e=>a.closeModal()),["esc"])),tabindex:"-1",role:"dialog"},[(0,l._)("div",ne,[(0,l._)("div",ie,[(0,l._)("div",ae,[(0,l._)("h5",oe,(0,p.toDisplayString)(e.$t(n.data.field_label)),1),(0,l._)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close",onClick:t[0]||(t[0]=e=>a.closeModal())},le)]),(0,l._)("div",re,[a.edit_mode?((0,l.wg)(),(0,l.iD)("div",de,["text"==a.field_type||"date"==a.field_type||"number"==a.field_type?(0,l.wy)(((0,l.wg)(),(0,l.iD)("input",{key:0,type:a.field_type,class:"form-control",onKeyup:t[1]||(t[1]=(0,i.withKeys)((e=>a.saveField()),["enter"])),"onUpdate:modelValue":t[2]||(t[2]=e=>n.data.field_value=e)},null,40,se)),[[i.vModelDynamic,n.data.field_value]]):"select"==a.field_type?(0,l.wy)(((0,l.wg)(),(0,l.iD)("select",{key:1,"onUpdate:modelValue":t[3]||(t[3]=e=>n.data.field_value=e),class:"form-control form-select"},[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(a.field_options,(e=>((0,l.wg)(),(0,l.iD)("option",{value:e.value},(0,p.toDisplayString)(e.label),9,ce)))),256))],512)),[[i.vModelSelect,n.data.field_value]]):"checkbox-group"==a.field_type?((0,l.wg)(!0),(0,l.iD)(l.HY,{key:2},(0,l.Ko)(a.field_options,(e=>((0,l.wg)(),(0,l.iD)("div",ue,[(0,l.wy)((0,l._)("input",{type:"checkbox",class:"form-check-input",id:e.value,value:e.value,"onUpdate:modelValue":t[4]||(t[4]=e=>a.multi_choice=e)},null,8,fe),[[i.vModelCheckbox,a.multi_choice]]),(0,l._)("label",{for:e.value,class:"form-check-label"},(0,p.toDisplayString)(e.label),9,pe)])))),256)):"radio-group"==a.field_type?((0,l.wg)(!0),(0,l.iD)(l.HY,{key:3},(0,l.Ko)(a.field_options,(e=>((0,l.wg)(),(0,l.iD)("div",me,[(0,l.wy)((0,l._)("input",{type:"radio",class:"form-check-input",name:"RadioGroup",id:e.value,value:e.value,"onUpdate:modelValue":t[5]||(t[5]=e=>n.data.field_value=e)},null,8,_e),[[i.vModelRadio,n.data.field_value]]),(0,l._)("label",{for:e.value,class:"form-check-label"},(0,p.toDisplayString)(e.label),9,ge)])))),256)):"textarea"==a.field_type?(0,l.wy)(((0,l.wg)(),(0,l.iD)("textarea",{key:4,class:"form-control",rows:"6",onKeyup:t[6]||(t[6]=(0,i.withKeys)((e=>a.saveField()),["enter"])),"onUpdate:modelValue":t[7]||(t[7]=e=>n.data.field_value=e)},"\n ",544)),[[i.vModelText,n.data.field_value]]):(0,l.kq)("v-if",!0)])):n.data.field_name.startsWith("checkbox")?((0,l.wg)(),(0,l.iD)("div",{key:1,innerHTML:a.formatted_field_value()},null,8,ve)):((0,l.wg)(),(0,l.iD)("div",he,[n.data.field_value?((0,l.wg)(),(0,l.iD)("span",be,(0,p.toDisplayString)(a.formatted_field_value()),1)):((0,l.wg)(),(0,l.iD)("span",ye,(0,p.toDisplayString)(e.$t("Empty")),1))]))]),(0,l._)("div",we,[a.edit_mode||!n.data.field_value||"text"!=a.field_type&&"date"!=a.field_type&&"number"!=a.field_type&&"textarea"!=a.field_type?(0,l.kq)("v-if",!0):((0,l.wg)(),(0,l.iD)("button",{key:0,onClick:t[8]||(t[8]=e=>a.copyToClipboard(n.data.field_value)),type:"button",class:"btn btn-outline-primary"},(0,p.toDisplayString)(e.$t("Copy")),1)),a.can_edit&&!a.edit_mode?((0,l.wg)(),(0,l.iD)("button",{key:1,type:"button",class:"btn btn-outline-primary","data-dismiss":"modal",onClick:t[9]||(t[9]=e=>a.edit_mode=!0)},(0,p.toDisplayString)(e.$t("Edit")),1)):(0,l.kq)("v-if",!0),a.edit_mode?((0,l.wg)(),(0,l.iD)("button",{key:2,type:"button",class:"btn btn-primary",onClick:t[10]||(t[10]=e=>a.saveField())},(0,p.toDisplayString)(e.$t("Save")),1)):(0,l.kq)("v-if",!0),(0,l._)("button",{type:"button",class:"btn btn-secondary",onClick:t[11]||(t[11]=e=>a.closeModal())},(0,p.toDisplayString)(a.edit_mode?e.$t("Cancel"):e.$t("Close")),1)])])])],32),ke])):(0,l.kq)("v-if",!0)}]]);const Se={class:"modal-dialog"},Fe={class:"modal-content"},Te={class:"modal-header"},Me={class:"modal-title",id:"delete-modal-label"},Ee=[(0,l._)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x","aria-hidden":"true"},[(0,l._)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,l._)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)],Ie={class:"modal-body"},He={class:"modal-footer"},ze=(0,l._)("div",{class:"modal-backdrop fade show"},null,-1);var Pe={name:"DeleteItemModal",components:{},setup(){const e=(0,f.i)(),t=e.delete_item_initiated;return{deleteItem:function(){let n=e.item_endpoint+t+"/delete";A().delete(n).then((n=>{if(1==n.data.deleted&&(function(){let n=e.items.findIndex((e=>e.id===t));if(e.items.splice(n,1),e.meta.total=e.meta.total-1,e.searched_items){let n=e.searched_items.findIndex((e=>e.id===t));e.searched_items.splice(n,1)}}(),0!=n.data.remove_alert)){let e=document.getElementById(n.data.remove_alert.disk_alert);if(null!==e){e.remove();let t=document.getElementById(n.data.remove_alert.alerts);0==t.querySelectorAll("li").length&&t.remove()}}})).catch((e=>{console.log(e)})).finally((()=>{this.closeModal()}))},closeModal:function(){e.delete_item_initiated=null}}}},Oe={name:"ItemsRenderer",components:{ItemsGrid:Y,ItemsCards:ee,FieldModal:De,DeleteItemModal:(0,E.Z)(Pe,[["render",function(e,t,n,a,o,r){return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l._)("div",{tabindex:"-1","aria-labelledby":"delete-modal-label","aria-hidden":"true",class:"modal fade d-block show",onKeydown:t[3]||(t[3]=(0,i.withKeys)((e=>a.closeModal()),["esc"])),role:"dialog"},[(0,l._)("div",Se,[(0,l._)("div",Fe,[(0,l._)("div",Te,[(0,l._)("h5",Me,(0,p.toDisplayString)(e.$t("Delete answer")),1),(0,l._)("button",{type:"button","aria-label":"Close",onClick:t[0]||(t[0]=e=>a.closeModal())},Ee)]),(0,l._)("div",Ie,(0,p.toDisplayString)(e.$t("This cannot be undone!")),1),(0,l._)("div",He,[(0,l._)("button",{type:"button",class:"btn btn-danger",onClick:t[1]||(t[1]=e=>a.deleteItem())},(0,p.toDisplayString)(e.$t("Delete")),1),(0,l._)("button",{type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=e=>a.closeModal())},(0,p.toDisplayString)(e.$t("Cancel")),1)])])])],32),ze],64)}]]),GoToTop:n(6767).Z},setup(){const e=(0,f.i)(),t=(0,o.useMq)(),n=(0,l.Fl)((()=>"xs"==t.current));(0,l.JJ)("xs_screen",n);const i=(0,u.iH)(!1),a=(0,u.qj)({field_name:"",field_value:"",field_label:"",item_id:null});return(0,l.JJ)("showFieldEditor",(function(t){e.isFieldDeletedField(t.field_name)||(void 0!==t&&(a.item_id=t.item_id,a.field_name=t.field_name,a.field_value=t.field_value,a.field_label=e.getFieldLabel(t.field_name)),i.value=!0)})),{xs_screen:n,total_items:(0,l.Fl)((()=>e.items.length)),field_modal_data:a,show_field_modal:i,closeFieldModal:function(e){i.value=!1},is_loading:(0,l.Fl)((()=>e.downloading_items)),display_items_as:(0,l.Fl)((()=>e.display_items_as)),delete_item_initiated:(0,l.Fl)((()=>e.delete_item_initiated)),pdf_builder_mode:(0,l.Fl)((()=>e.ui.pdf_builder))}}};n(1308),n(1105);var je=(0,E.Z)(Oe,[["render",function(e,t,n,i,a,o){const u=(0,l.up)("GoToTop"),f=(0,l.up)("ItemsCards"),p=(0,l.up)("ItemsGrid"),m=(0,l.up)("FieldModal"),_=(0,l.up)("DeleteItemModal");return i.is_loading||i.pdf_builder_mode||"grid"!=i.display_items_as&&"cards"!=i.display_items_as?(0,l.kq)("v-if",!0):((0,l.wg)(),(0,l.iD)("div",r,[i.xs_screen?((0,l.wg)(),(0,l.j4)(u,{key:0})):(0,l.kq)("v-if",!0),i.xs_screen?((0,l.wg)(),(0,l.iD)("div",d,[(0,l.Wm)(f)])):"cards"==i.display_items_as?((0,l.wg)(),(0,l.iD)("div",s,[(0,l.Wm)(f)])):"grid"==i.display_items_as?((0,l.wg)(),(0,l.iD)("div",c,[(0,l.Wm)(p)])):(0,l.kq)("v-if",!0),(0,l.Wm)(m,{show_modal:i.show_field_modal,data:i.field_modal_data,onCloseFieldModal:i.closeFieldModal},null,8,["show_modal","data","onCloseFieldModal"]),i.delete_item_initiated?((0,l.wg)(),(0,l.j4)(_,{key:4})):(0,l.kq)("v-if",!0)]))}],["__scopeId","data-v-4491ebec"]]);document.querySelectorAll("[vue-component=items-renderer]").forEach((e=>{(0,i.createApp)(je).use(a.Z).use(o.Vue3Mq,{}).mount(e)}))},6345:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.ds-goto-top[data-v-0422979d] {\n z-index: 100;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: fixed;\n top:auto;\n bottom:2em;\n right:1.5em;\n left:auto;\n}\n.ds-goto-top > svg[data-v-0422979d] {\n margin-left: 2px;\n margin-top: 0;\n}\n",""]),t.default=l},1701:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.ds-empty-field {\n font-style: italic;\n}\n",""]),t.default=l},9659:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.ds-loading[data-v-4491ebec] {\n font-style: italic;\n color: var(--lf-gray-800);\n margin-top: 1.5em;\n}\n.ds-no-data[data-v-4491ebec] {\n font-style: italic;\n color: var(--lf-gray-600);\n margin-top: 1em;\n font-size: 1.75em;\n}\n",""]),t.default=l},4653:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.ds-empty-field[data-v-73a7d0c6] {\n font-style: italic;\n}\n.ds-with-pointer[data-v-73a7d0c6] {\n cursor: pointer;\n}\n",""]),t.default=l},5527:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.ds-field-value > a > span.ds-avatar > img {\n height: 22px;\n width: 22px;\n margin-right: 0.25em;\n}\n",""]),t.default=l},5817:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.ds-card-title[data-v-2b53e1d2] {\n cursor: pointer;\n}\n.card-header[data-v-2b53e1d2]:hover {\n background-color: var(--lf-gray-100);\n}\nbutton.ds-expand-button[data-v-2b53e1d2] {\n min-height: 36px;\n max-height: 36px;\n min-width: 30px;\n}\n.deletedFieldLabel[data-v-2b53e1d2] {\n color: var(--lf-danger);\n}\n\n\n",""]),t.default=l},9195:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.pagination[data-v-41ea2cb1] {\n cursor: pointer;\n}\n",""]),t.default=l},8142:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.ds-more-cards {\n color: var(--lf-link-color);\n text-decoration: underline;\n cursor: pointer;\n}\n.ds-card-list .card {\n border-top: 1px solid var(--lf-gray-300);\n}\n.ds-card-list li > span:first-child {\n margin-right: 0.5em;\n}\n.ds-card-list .card-header {\n padding: 0;\n border-bottom: 0;\n}\n.ds-card-list .card-header .ds-avatar > img {\n height: 22px !important;\n width: 22px !important;\n}\n.ds-card-list .card.active {\n /* border-top: 1px solid var(--lf-gray-400); */\n}\n.ds-card-list .card.active .card-header {\n background-color: var(--lf-gray-200);\n border-bottom: var(--lf-card-border-width) solid var(--lf-card-border-color);\n}\n.ds-card-list .card:not(:first-child) {\n margin-top: 0.5em;\n}\n.ds-card-list .card-body {\n padding: 0; /*var(--lf-card-spacer-y) calc(var(--lf-card-spacer-x) / 2);*/\n}\n",""]),t.default=l},8921:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\ntable, caption, tbody, tfoot, thead, tr, th, td {\n margin: 0;\n padding: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\ntable {\n border: 1px solid var(--lf-gray-300);\n border-collapse: collapse;\n}\ntable th {\n cursor: pointer;\n}\nth {\n font-weight: bold;\n}\nth:not(.stickyColumn), td:not(.stickyColumn) {\n border-right: 1px solid var(--lf-gray-300);\n}\nth > div, td > div {\n white-space: nowrap;\n overflow: hidden;\n\ttext-overflow: ellipsis;\n}\n.widthZero {\n width: 0;\n}\n.stickyColumn {\n background-color: var(--lf-gray-100) !important;\n position: -webkit-sticky;\n position: sticky;\n outline: 1px solid var(--lf-gray-400);\n z-index: 2;\n}\n.first_sticky_col {\n left: 0px;\n}\n@-moz-document url-prefix() {\n.first_sticky_col {\n left: 1px;\n}\n}\n.sticky_data_col_with_controls {\n left: 40px;\n}\n@-moz-document url-prefix() {\n.sticky_data_col_with_controls {\n left: 41px;\n}\n}\n.sticky_data_col_with_controls_expanded {\n left: 82px;\n}\n.ds-marked-col-header {\n margin-left: 2px;\n}\n.ds-deleted-field-label {\n color: var(--lf-danger);\n}\n",""]),t.default=l},3507:function(e,t,n){"use strict";n.r(t);var i=n(6738),a=n.n(i),o=n(7705),l=n.n(o)()(a());l.push([e.id,"\n.grid-controls.notExpanded[data-v-dad6cfb0] {\n min-width: 38px;\n max-width: 38px;\n}\n.grid-controls.expanded[data-v-dad6cfb0] {\n min-width: 80px;\n max-width: 80px;\n}\n.card-controls[data-v-dad6cfb0] {\n min-height: 30px;\n max-height: 30px;\n}\n.card-controls.notExpanded[data-v-dad6cfb0] {\n min-width: 38px;\n max-width: 38px;\n margin-left: -8px;\n}\n.card-controls.expanded[data-v-dad6cfb0] {\n min-width: 84px;\n max-width: 84px;\n margin-left: -8px;\n}\nbutton[data-v-dad6cfb0] {\n min-height: 38px;\n max-height: 38px;\n min-width: 38px;\n text-align: center;\n}\nbutton.ds-card-button[data-v-dad6cfb0] {\n min-height: 30px;\n max-height: 30px;\n min-width: 30px;\n border: 1px solid var(--lf-gray-400);\n}\nbutton.ds-delete-button[data-v-dad6cfb0] {\n color: var(--lf-danger);\n}\n",""]),t.default=l},6767:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(6229),a=n(2502);const o={ref:"target",id:"go_to_top"};var l=n(2343),r=n(991),d={name:"GoToTop",components:{ChevronUpIcon:n(9404).g8U},setup(e){const t=(0,l.iH)(null),n=(0,r.CDf)(t),a=(0,l.iH)(!1);return(0,i.YP)((()=>n.value),(()=>{if(n.value)a.value=!1;else{let e=document.getElementById("go_to_top");e&&e.getBoundingClientRect().top<0&&(a.value=!0)}}),{immediate:!0}),{target:t,showButton:a,goToTop:function(){window.scrollTo(0,0)},themeColors:function(){let e=document.getElementsByClassName("ds-main-navbar")[0],t=window.getComputedStyle(e).getPropertyValue("background-color"),n=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(n).getPropertyValue("color"),"background-color":t}}()}}};n(9716);var s=(0,n(6021).Z)(d,[["render",function(e,t,n,l,r,d){const s=(0,i.up)("ChevronUpIcon");return(0,i.wg)(),(0,i.iD)("div",o,[l.showButton?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"ds-goto-top",style:(0,a.normalizeStyle)(l.themeColors),onClick:t[0]||(t[0]=e=>l.goToTop())},[(0,i.Wm)(s,{size:"3x"})],4)):(0,i.kq)("v-if",!0)],512)}],["__scopeId","data-v-0422979d"]])},9716:function(e,t,n){var i=n(6345);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("7ff4776c",i,!1,{})},1308:function(e,t,n){var i=n(1701);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("c1fe3d46",i,!1,{})},1105:function(e,t,n){var i=n(9659);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("ab55919a",i,!1,{})},8199:function(e,t,n){var i=n(4653);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("1ce56211",i,!1,{})},8725:function(e,t,n){var i=n(5527);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("a6f0c286",i,!1,{})},67:function(e,t,n){var i=n(5817);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("7211b378",i,!1,{})},1621:function(e,t,n){var i=n(9195);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("79fbf6ca",i,!1,{})},7030:function(e,t,n){var i=n(8142);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("a877c564",i,!1,{})},3858:function(e,t,n){var i=n(8921);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("01fce602",i,!1,{})},5815:function(e,t,n){var i=n(3507);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals),(0,n(4023).Z)("0c212c80",i,!1,{})},991:function(e,t,n){"use strict";n.d(t,{h4X:function(){return g},CDf:function(){return v}});var i=n(2343),a=n(6229);function o(e){return!!(0,i.nZ)()&&((0,i.EB)(e),!0)}function l(e){return"function"==typeof e?e():(0,i.SU)(e)}const r="undefined"!=typeof window&&"undefined"!=typeof document,d=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),s=(Object.prototype.toString,()=>{});function c(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const u=/\B([A-Z])/g,f=(c((e=>e.replace(u,"-$1").toLowerCase())),/-(\w)/g);function p(e){var t;const n=l(e);return null!=(t=null==n?void 0:n.$el)?t:n}c((e=>e.replace(f,((e,t)=>t?t.toUpperCase():""))));const m=r?window:void 0;function _(e){const t=function(){const e=(0,i.iH)(!1);return(0,a.FN)()&&(0,a.bv)((()=>{e.value=!0})),e}();return(0,a.Fl)((()=>(t.value,Boolean(e()))))}function g(e,t={width:0,height:0},n={}){const{window:l=m,box:r="content-box"}=n,d=(0,a.Fl)((()=>{var t,n;return null==(n=null==(t=p(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")})),s=(0,i.iH)(t.width),c=(0,i.iH)(t.height),{stop:u}=function(e,t,n={}){const{window:i=m,...l}=n;let r;const d=_((()=>i&&"ResizeObserver"in i)),s=()=>{r&&(r.disconnect(),r=void 0)},c=(0,a.Fl)((()=>Array.isArray(e)?e.map((e=>p(e))):[p(e)])),u=(0,a.YP)(c,(e=>{if(s(),d.value&&i){r=new ResizeObserver(t);for(const t of e)t&&r.observe(t,l)}}),{immediate:!0,flush:"post",deep:!0}),f=()=>{s(),u()};return o(f),{isSupported:d,stop:f}}(e,(([t])=>{const n="border-box"===r?t.borderBoxSize:"content-box"===r?t.contentBoxSize:t.devicePixelContentBoxSize;if(l&&d.value){const t=p(e);if(t){const e=l.getComputedStyle(t);s.value=Number.parseFloat(e.width),c.value=Number.parseFloat(e.height)}}else if(n){const e=Array.isArray(n)?n:[n];s.value=e.reduce(((e,{inlineSize:t})=>e+t),0),c.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else s.value=t.contentRect.width,c.value=t.contentRect.height}),n);!function(e,t=!0,n){!function(e){return e||(0,a.FN)()}()?t?e():(0,a.Y3)(e):(0,a.bv)(e,n)}((()=>{const n=p(e);n&&(s.value="offsetWidth"in n?n.offsetWidth:t.width,c.value="offsetHeight"in n?n.offsetHeight:t.height)}));const f=(0,a.YP)((()=>p(e)),(e=>{s.value=e?t.width:0,c.value=e?t.height:0}));return{width:s,height:c,stop:function(){u(),f()}}}function v(e,t={}){const{window:n=m,scrollTarget:r}=t,c=(0,i.iH)(!1);return function(e,t,n={}){const{root:r,rootMargin:c="0px",threshold:u=.1,window:f=m,immediate:g=!0}=n,v=_((()=>f&&"IntersectionObserver"in f)),h=(0,a.Fl)((()=>{const t=l(e);return(Array.isArray(t)?t:[t]).map(p).filter(d)}));let y=s;const b=(0,i.iH)(g),w=v.value?(0,a.YP)((()=>[h.value,p(r),b.value]),(([e,n])=>{if(y(),!b.value)return;if(!e.length)return;const i=new IntersectionObserver(t,{root:p(n),rootMargin:c,threshold:u});e.forEach((e=>e&&i.observe(e))),y=()=>{i.disconnect(),y=s}}),{immediate:g,flush:"post"}):s;o((()=>{y(),w(),b.value=!1}))}(e,(e=>{let t=c.value,n=0;for(const i of e)i.time>=n&&(n=i.time,t=i.isIntersecting);c.value=t}),{root:r,window:n,threshold:0}),c}r&&window.document,r&&window.navigator,r&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY}},function(e){e(e.s=6809)}]); \ No newline at end of file
+(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[575],{7393:function(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}});var a=n(279),o=n.n(a),i=n(370),l=n.n(i),r=n(817),d=n.n(r);function s(e){try{return document.execCommand(e)}catch(e){return!1}}var c=function(e){var t=d()(e);return s("cut"),t},u=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(a,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var a=d()(n);return s("copy"),n.remove(),a},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=u(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=u(e.value,t):(n=d()(e),s("copy")),n};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function _(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function y(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(d,e);var t,n,a,o,i,r=(o=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(o);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function d(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(n=r.call(this)).resolveOptions(t),n.listenClick(e),n}return t=d,n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=l()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,a=e.container,o=e.target,i=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?f(i,{container:a}):o?"cut"===n?c(o):f(o,{container:a}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(a?"success":"error",{action:n,text:a,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],a=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return f(e,t)}},{key:"cut",value:function(e){return c(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&_(t.prototype,n),a&&_(t,a),d}(o()),b=g},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var a=n(828);function o(e,t,n,a,o){var l=i.apply(this,arguments);return e.addEventListener(n,l,o),{destroy:function(){e.removeEventListener(n,l,o)}}}function i(e,t,n,o){return function(n){n.delegateTarget=a(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=function(e,t,n,a,i){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,a,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var a=n(879),o=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!a.string(t))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(a.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(a.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var a=window.getSelection(),o=document.createRange();o.selectNodeContents(e),a.removeAllRanges(),a.addRange(o),t=a.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var a=this;function o(){a.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),a=0,o=n.length;a<o;a++)n[a].fn.apply(n[a].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),a=n[e],o=[];if(a&&t)for(var i=0,l=a.length;i<l;i++)a[i].fn!==t&&a[i].fn._!==t&&o.push(a[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(686)}().default},e.exports=t()},8355:function(e,t,n){"use strict";var a=n(7416),o=n(9677),i=n(9153),l=n(822);const r={key:0},d={key:1,class:"mt-3"},s={key:2,class:"mt-3"},c={key:3,class:"mt-3"};var u=n(4390),f=n(5624),p=n(4526);const m={key:0},_={class:"table-responsive",ref:"gridRef"},v={class:"table"},h=["onClick"],y=["aria-label"],g=["onClick","title"];var b=n(6270),k=n(4023),w=(n(9819),n(4997));const x={key:0,class:"d-flex align-items-center justify-content-end mb-2"},C={class:"page_count_display me-2"},E={"aria-label":"Paginate items"},L={class:"pagination pagination-sm mb-0"},S=["onClick"],F=[(e=>((0,l.Qi)("data-v-41ea2cb1"),e=e(),(0,l.jt)(),e))((()=>(0,l.Lk)("a",{class:"page-link"}," ... ",-1)))];var I={name:"ItemPagination",components:{},setup(){const e=(0,f.E)(),t=(0,l.EW)((()=>{let t=e.itemsToDisplay.length;return Math.ceil(t/e.page_length)}));return{is_loading:(0,l.EW)((()=>e.downloading_items)),page_number:(0,l.EW)((()=>e.page)),total_pages:t,getPaginationText:function(){e.page,e.page;var t=e.itemsToDisplay.length;if(t<e.page_length)var n=t;else{var a=e.page*e.page_length;a=a>t?t:a,n=(e.page-1)*e.page_length+1+" - "+a}return"Displaying {filtered} of {total}".replace(/{filtered}/,n).replace(/{total}/,t)},showPageButton:function(t){if(this.total_pages<=7)return!0;if(t==e.page||1==t||t==this.total_pages)return!0;if(t<=5&&e.page<4)return!0;if(6==t&&e.page<5)return!1;if(t>=this.total_pages-4&&e.page>this.total_pages-3)return!0;if(t==this.total_pages-5&&e.page>this.total_pages-4)return!1;if(e.page>=4){if(t==e.page-1||t==e.page+1)return!0;if(t==e.page-2||t==e.page+2)return!1}return null},decrementPage:function(){e.page>1&&(e.page=e.page-1)},incrementPage:function(){e.page<this.total_pages&&(e.page=e.page+1)},setPage:function(t){e.page=t}}}},M=(n(1950),n(1535)),T=(0,M.A)(I,[["render",function(e,t,n,a,o,i){return!1===a.is_loading?((0,l.uX)(),(0,l.CE)("div",x,[(0,l.Lk)("small",C,(0,p.toDisplayString)(a.getPaginationText()),1),(0,l.Lk)("nav",E,[(0,l.Lk)("ul",L,[(0,l.Lk)("li",{class:(0,p.normalizeClass)(["page-item",{disabled:1==a.page_number}])},[(0,l.Lk)("a",{class:"page-link",onClick:t[0]||(t[0]=(...e)=>a.decrementPage&&a.decrementPage(...e))},(0,p.toDisplayString)(e.$t("Previous")),1)],2),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(a.total_pages,(e=>((0,l.uX)(),(0,l.CE)(l.FK,null,[!0===a.showPageButton(e)?((0,l.uX)(),(0,l.CE)("li",{key:0,class:(0,p.normalizeClass)(["page-item",{active:e==a.page_number}])},[(0,l.Lk)("a",{class:"page-link",onClick:t=>a.setPage(e)},(0,p.toDisplayString)(e),9,S)],2)):!1===a.showPageButton(e)?((0,l.uX)(),(0,l.CE)("li",{key:1,class:(0,p.normalizeClass)(["page-item disabled",{active:e==a.page_number}])},F,2)):(0,l.Q3)("v-if",!0)],64)))),256)),(0,l.Lk)("li",{class:(0,p.normalizeClass)(["page-item",{disabled:a.page_number==a.total_pages}])},[(0,l.Lk)("a",{class:"page-link",onClick:t[1]||(t[1]=(...e)=>a.incrementPage&&a.incrementPage(...e))},(0,p.toDisplayString)(e.$t("Next")),1)],2)])])])):(0,l.Q3)("v-if",!0)}],["__scopeId","data-v-41ea2cb1"]]);const X={key:0,class:"p-0 stickyColumn first_sticky_col"},A=["innerHTML"],R=["innerHTML"];var W={name:"FieldRender",components:{},props:{field_name:String,field_value:void 0,item_id:Number},setup(e){const t=(0,f.E)(),n=(0,l.WQ)("showFieldEditor");return{fieldValue:(0,l.EW)((()=>{if(e.field_name.endsWith("__html"))return e.field_value.html;let n={field_name:e.field_name,field_value:e.field_value};return t.getFormattedValue(n)})),fieldClasses:(0,l.EW)((()=>{if("boolean"==typeof e.field_value)return e.field_value?"badge rounded-pill bg-success":"badge rounded-pill bg-secondary";var n="";return"answer"==t.data_type&&"created"!==e.field_name&&(n="ds-with-pointer"),void 0!==e.field_value&&""!==e.field_value||(n+=" ds-empty-field"),n})),with_modal:(0,l.EW)((()=>"answer"==t.data_type&&"marked"!==e.field_name&&"created"!==e.field_name&&!e.field_name.startsWith("file-")&&!e.field_name.endsWith("__html"))),showModal:function(){n({item_id:e.item_id,field_name:e.field_name,field_value:e.field_value})}}}};n(5549),n(1999);var D=(0,M.A)(W,[["render",function(e,t,n,a,o,i){return a.with_modal?((0,l.uX)(),(0,l.CE)("span",{key:0,innerHTML:a.fieldValue,class:(0,p.normalizeClass)([a.fieldClasses,"ds-field-value"]),onClick:t[0]||(t[0]=e=>a.showModal())},null,10,A)):((0,l.uX)(),(0,l.CE)("span",{key:1,innerHTML:a.fieldValue,class:(0,p.normalizeClass)([a.fieldClasses,"ds-field-value"])},null,10,R))}],["__scopeId","data-v-73a7d0c6"]]);const K=["aria-label"],z=["aria-label"];var O=n(8266),B=n.n(O),P={name:"RowControls",components:{BookmarkIcon:w.cFy,TrashIcon:w.ucK},props:{item_id:Number,marked:Boolean,is_card:Boolean},setup(e){const t=(0,f.E)(),n=(0,l.EW)((()=>t.show_other_options));return{controlClass:(0,l.EW)((()=>1==e.is_card?t.show_other_options?"card-controls expanded":"card-controls notExpanded":t.show_other_options?"grid-controls expanded":"grid-controls notExpanded")),toggleBookmarked:function(n){let a=t.items.find((t=>t.id==e.item_id));a&&(a.marked=!a.marked,B().post(t.item_endpoint+e.item_id+"/mark").then((function(e){a.marked=e.data.marked})).catch((e=>{a.marked=!a.marked,console.log(e)})))},with_other_options:n,initiateDelete:function(){t.delete_item_initiated=e.item_id}}}};n(9070);var j=(0,M.A)(P,[["render",function(e,t,n,a,o,i){const r=(0,l.g2)("BookmarkIcon"),d=(0,l.g2)("TrashIcon");return(0,l.uX)(),(0,l.CE)("div",{class:(0,p.normalizeClass)(["rowControls",a.controlClass])},[(0,l.Lk)("button",{class:(0,p.normalizeClass)({"bg-success text-white":n.marked,"ds-card-button":n.is_card}),onClick:t[0]||(t[0]=(...e)=>a.toggleBookmarked&&a.toggleBookmarked(...e)),"aria-label":e.$t("Mark for reference")},[(0,l.bF)(r,{size:"1.3x"})],10,K),a.with_other_options?((0,l.uX)(),(0,l.CE)("button",{key:0,class:(0,p.normalizeClass)(["ds-delete-button",{"ds-card-button":1==n.is_card}]),"aria-label":e.$t("Delete answer"),onClick:t[1]||(t[1]=e=>a.initiateDelete())},[(0,l.bF)(d,{size:"1.3x"})],10,z)):(0,l.Q3)("v-if",!0)],2)}],["__scopeId","data-v-dad6cfb0"]]),N={name:"GridRow",components:{RowControls:j,FieldRender:D},props:{item:Object,field_index:Object,make_sticky:Boolean,sticky_column_classes:String,sticky_col_width:Object,column_width:Object,highlighted_row:Number},setup(e){const t=(0,f.E)();var n=(0,u.KR)(!1);return(0,l.wB)((()=>e.highlighted_row),(()=>{n.value=e.item.id==e.highlighted_row})),{make_sticky:(0,l.EW)((()=>e.make_sticky)),sticky_column_classes:(0,l.EW)((()=>e.sticky_column_classes)),sticky_col_width:e.sticky_col_width,column_width:(0,l.EW)((()=>e.column_width)),is_highlighted:n,data_type:(0,l.EW)((()=>t.data_type))}}},Q={name:"ItemsGrid",components:{ItemPagination:T,GridRow:(0,M.A)(N,[["render",function(e,t,n,a,o,i){const r=(0,l.g2)("RowControls"),d=(0,l.g2)("FieldRender");return(0,l.uX)(),(0,l.CE)("tr",{class:(0,p.normalizeClass)([a.is_highlighted?"ds-highlighted":""])},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(n.field_index,((e,t)=>((0,l.uX)(),(0,l.CE)(l.FK,null,["marked"==e.name?((0,l.uX)(),(0,l.CE)("td",X,[(0,l.bF)(r,{item_id:n.item.id,marked:n.item.marked},null,8,["item_id","marked"])])):((0,l.uX)(),(0,l.CE)("td",{key:1,class:(0,p.normalizeClass)([1==t&&a.make_sticky?a.sticky_column_classes:"",a.is_highlighted?"highlighted":""])},[(0,l.Lk)("div",{style:(0,p.normalizeStyle)([1==t&&a.make_sticky?a.sticky_col_width:a.column_width])},[(0,l.bF)(d,{field_name:e.name,field_value:"created"==e.name?n.item.created:n.item.data[e.name],item_id:n.item.id},null,8,["field_name","field_value","item_id"])],4)],2))],64)))),256))],2)}]]),ArrowDownIcon:w.ZLN,BookmarkIcon:w.cFy},setup(){const e=(0,f.E)(),t=e.data_type,n=(0,u.KR)(0),{t:a}=(0,b.s9)({useScope:"global"}),o=(0,l.EW)((()=>e.field_index)),i=(0,u.KR)(null),{width:r}=(0,k.Lhy)(i),d=(0,u.KR)({width:"","min-width":"","max-width":""});var s=!1,c=(0,u.KR)(!1);(0,l.sV)((()=>{!function(){let n=r.value,a=e.field_index.length;var o=0;e.has_row_controls&&(o=38,a-=1);var i=(n-o-18*a)/a;"answer"==t&&(s=!0,i<130?(i=130,c.value=!0):i=240),d.value="answer"==t&&s?{"max-width":i+"px"}:{}}()}));const p=(0,l.EW)((()=>e.show_other_options?"stickyColumn sticky_data_col sticky_data_col_with_controls_expanded":e.has_row_controls?"stickyColumn sticky_data_col sticky_data_col_with_controls":""));return{gridRef:i,grid_column_width:d,items:(0,l.EW)((()=>e.paginatedItems)),field_index:o,setOrder:function(t){e.user_prefs.order_by!=t?e.setOrderBy(t):e.setAscending(!e.user_prefs.ascending)},isFieldDeletedField:e.isFieldDeletedField,getFieldLabel:function(t,n){return"answer"==e.data_type?"marked"==t||"created"==t?a(n):n:a(n)},make_sticky:c,sticky_column_classes:p,sticky_col_width:{width:"168px","min-width":"168px","max-width":"168px"},data_type:t,highlighted_row:n,display_items_as:(0,l.EW)((()=>e.display_items_as))}}};n(8656);var $=(0,M.A)(Q,[["render",function(e,t,n,a,o,i){const r=(0,l.g2)("BookmarkIcon"),d=(0,l.g2)("GridRow"),s=(0,l.g2)("ItemPagination");return"grid"==a.display_items_as?((0,l.uX)(),(0,l.CE)("div",m,[(0,l.Lk)("div",_,[(0,l.Lk)("table",v,[(0,l.Lk)("thead",null,[(0,l.Lk)("tr",null,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(a.field_index,((t,n)=>((0,l.uX)(),(0,l.CE)(l.FK,null,["marked"==t.name?((0,l.uX)(),(0,l.CE)("th",{key:n,onClick:e=>a.setOrder(t.name),class:"stickyColumn widthZero first_sticky_col",scope:"col"},[(0,l.Lk)("div",{class:"ds-marked-col-header","aria-label":e.$t("Marked")},[(0,l.bF)(r,{size:"1.25x","aria-hidden":"true"})],8,y)],8,h)):((0,l.uX)(),(0,l.CE)("th",{key:n+100,class:(0,p.normalizeClass)([1==n&&a.make_sticky?a.sticky_column_classes:""]),scope:"col"},[(0,l.Lk)("div",{style:(0,p.normalizeStyle)([1==n&&a.make_sticky?a.sticky_col_width:a.grid_column_width]),onClick:e=>a.setOrder(t.name),class:(0,p.normalizeClass)({"ds-deleted-field-label":a.isFieldDeletedField(t.name)}),title:a.getFieldLabel(t.name,t.label)},(0,p.toDisplayString)(a.getFieldLabel(t.name,t.label)),15,g)],2))],64)))),256))])]),(0,l.Lk)("tbody",null,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(a.items,(e=>((0,l.uX)(),(0,l.Wv)(d,{key:e.id,item:e,field_index:a.field_index,highlighted_row:a.highlighted_row,onClick:t=>a.highlighted_row=e.id,column_width:a.grid_column_width,make_sticky:a.make_sticky,sticky_column_classes:a.sticky_column_classes,sticky_col_width:a.sticky_col_width},null,8,["item","field_index","highlighted_row","onClick","column_width","make_sticky","sticky_column_classes","sticky_col_width"])))),128))])])],512),(0,l.bF)(s)])):(0,l.Q3)("v-if",!0)}]]);const V={key:0,class:"my-0"},H={class:"card-header d-flex justify-content-between align-items-baseline"},G=["innerHTML"],U=["aria-label"],q=["aria-label"],Y={class:"list-group list-group-flush"};var Z={name:"ItemCard",components:{RowControls:j,FieldRender:D,ChevronUpIcon:w.Mtm,ChevronDownIcon:w.D3D},props:{item:Object,field_index:Object,expand_all:Boolean},setup(e){const t=(0,f.E)(),n=(0,u.KR)(!1);return{card_title:(0,l.EW)((()=>{let n=t.first_field,a="created"==n.name?e.item.created:e.item.data[n.name];if(void 0===a||""===a)return'<span class="ds-empty-field">Empty</span>';let o={field_name:n.name,field_value:a},i=t.getFormattedValue(o);var l=i;return null!=i.html&&(l=i.html),String(l).replace(/href=(["'])((?:\\1|(?:(?!\1)).)*)(\1)/gm,"")})),expanded:n,expand_all:(0,l.EW)((()=>e.expand_all)),isFieldDeletedField:t.isFieldDeletedField,data_type:t.data_type}}};n(1691);var J={name:"ItemsCards",components:{ItemCard:(0,M.A)(Z,[["render",function(e,t,n,a,o,i){const r=(0,l.g2)("RowControls"),d=(0,l.g2)("ChevronDownIcon"),s=(0,l.g2)("ChevronUpIcon"),c=(0,l.g2)("FieldRender");return(0,l.uX)(),(0,l.CE)("div",{class:(0,p.normalizeClass)(["card",a.expanded?"active":""])},[(0,l.Lk)("div",H,["answer"==a.data_type?((0,l.uX)(),(0,l.Wv)(r,{key:0,item_id:n.item.id,marked:n.item.marked},null,8,["item_id","marked"])):(0,l.Q3)("v-if",!0),(0,l.Lk)("div",{onClick:t[0]||(t[0]=e=>a.expanded=!a.expanded),class:"ds-card-title px-2 flex-grow-1 text-truncate",innerHTML:a.card_title},null,8,G),0==a.expanded?((0,l.uX)(),(0,l.CE)("button",{key:1,class:"card-controls ds-expand-button",onClick:t[1]||(t[1]=e=>a.expanded=!a.expanded),"aria-label":e.$t("Expand")},[(0,l.bF)(d,{size:"1.5x","aria-hidden":"true"})],8,U)):((0,l.uX)(),(0,l.CE)("button",{key:2,class:"card-controls ds-expand-button",onClick:t[2]||(t[2]=e=>a.expanded=!a.expanded),"aria-label":e.$t("Collapse")},[(0,l.bF)(s,{size:"1.5x","aria-hidden":"true"})],8,q))]),1==a.expanded?((0,l.uX)(),(0,l.CE)("div",{key:0,class:(0,p.normalizeClass)([{"card-data-flex-container":1==a.expand_all},"card-body"])},[(0,l.Lk)("ul",Y,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(n.field_index,((e,t)=>((0,l.uX)(),(0,l.CE)(l.FK,{key:"field"+t},["marked"!=e.name?((0,l.uX)(),(0,l.CE)("li",{key:0,class:(0,p.normalizeClass)([{"card-data-flex":1==a.expand_all},"list-group-item px-2"])},[(0,l.Lk)("span",{class:(0,p.normalizeClass)(["fw-bold",{deletedFieldLabel:a.isFieldDeletedField(e.name)}])},(0,p.toDisplayString)(e.label),3),(0,l.bF)(c,{field_name:e.name,field_value:"created"==e.name?n.item.created:n.item.data[e.name],item_id:n.item.id,edit_mode:(e.name,!1)},null,8,["field_name","field_value","item_id","edit_mode"])],2)):(0,l.Q3)("v-if",!0)],64)))),128))])],2)):(0,l.Q3)("v-if",!0)],2)}],["__scopeId","data-v-2b53e1d2"]]),ChevronUpIcon:w.Mtm},setup(){const e=(0,f.E)(),t=(0,l.WQ)("xs_screen"),n=(0,u.KR)(!1),a=(0,u.KR)(!1),o=(0,l.EW)((()=>e.field_index));return{xs_screen:t,show_goto_top:n,goto_top:a,siteThemeColors:(0,l.EW)((()=>{let e=document.getElementsByClassName("ds-main-navbar")[0],t=window.getComputedStyle(e).getPropertyValue("background-color"),n=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(n).getPropertyValue("color"),"background-color":t}})),field_index:o,more_cards_to_load:(0,l.EW)((()=>e.paginatedCards.length<e.itemsToDisplay.length)),LoadMoreCards:function(){e.card_batch=e.card_batch+1},items:(0,l.EW)((()=>e.paginatedCards)),total_items:(0,l.EW)((()=>e.itemsToDisplay.length)),display_items_as:(0,l.EW)((()=>e.display_items_as))}}};n(3703);var ee=(0,M.A)(J,[["render",function(e,t,n,a,o,i){const r=(0,l.g2)("ItemCard");return"cards"==a.display_items_as||a.xs_screen?((0,l.uX)(),(0,l.CE)("div",V,[(0,l.Lk)("div",{class:(0,p.normalizeClass)(["ds-card-list",a.xs_screen?"mt-4":"mt-3"])},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(a.items,(e=>((0,l.uX)(),(0,l.Wv)(r,{key:e.id,item:e,field_index:a.field_index,expand_all:!1},null,8,["item","field_index"])))),128))],2),a.more_cards_to_load?((0,l.uX)(),(0,l.CE)("div",{key:0,class:"mt-3 ds-more-cards",onClick:t[0]||(t[0]=e=>a.LoadMoreCards())},(0,p.toDisplayString)(e.$t("Show more")),1)):(0,l.Q3)("v-if",!0)])):(0,l.Q3)("v-if",!0)}]]);const te={key:0},ne={class:"modal-dialog",role:"document"},ae={class:"modal-content"},oe={class:"modal-header"},ie={class:"modal-title"},le=[(0,l.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x","aria-hidden":"true"},[(0,l.Lk)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,l.Lk)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)],re={class:"modal-body"},de={key:0,class:"form-group"},se=["type"],ce=["value"],ue={class:"form-check"},fe=["id","value"],pe=["for"],me={class:"form-check"},_e=["id","value"],ve=["for"],he=["innerHTML"],ye={key:2},ge={key:0,class:"ds-empty-field"},be={key:1},ke={class:"modal-footer"},we=(0,l.Lk)("div",{class:"modal-backdrop fade show"},null,-1);var xe=n(7393),Ce={name:"FieldModal",components:{},props:{data:Object,show_modal:Boolean},emits:["closeFieldModal"],setup(e,{emit:t}){const n=(0,f.E)(),a=(0,u.KR)(!1),o=(0,u.KR)([]),i=(0,u.KR)([]),r=(0,u.KR)(null),d=n.can_edit,{toClipboard:s}={toClipboard(e,t){return new Promise(((n,a)=>{const o=document.createElement("button"),i=new xe(o,{text:()=>e,action:()=>"copy",container:void 0!==t?t:document.body});i.on("success",(e=>{i.destroy(),n(e)})),i.on("error",(e=>{i.destroy(),a(e)})),document.body.appendChild(o),o.click(),document.body.removeChild(o)}))}};var c={};function p(){a.value=!1,c={},t("closeFieldModal")}return(0,l.wB)((()=>JSON.stringify(e.data)),(t=>{let a=n.getFieldStructure(e.data.field_name);c=void 0!==a?a:{type:null},r.value=c.type,o.value=[],i.value=[],("select"==r.value||"checkbox-group"==r.value||"radio-group"==r.value)&&(void 0!==e.data.field_value&&(i.value=e.data.field_value.split(", ")),c.values.forEach((e=>{o.value.push({value:e.value,label:e.label})})))})),{show_modal:(0,l.EW)((()=>e.show_modal)),can_edit:d,edit_mode:a,formatted_field_value:function(){if(!e.data.field_value)return e.data.field_value;if(e.data.field_name.startsWith("checkbox")){var t=e.data.field_value.split(", "),a="<ul>";return t.forEach((t=>{var o=n.getOptionLabel({field_name:e.data.field_name,option_value:t});a=a+'<li style="margin-left: -1.3em;">'+o+"</li>"})),a+="</ul>"}if(e.data.field_name.startsWith("radio-group")||e.data.field_name.startsWith("select")){var o=n.getOptionLabel({field_name:e.data.field_name,option_value:e.data.field_value});if(o)return o}return e.data.field_value},field_type:r,field_options:o,multi_choice:i,closeModal:p,saveField:function(){let t=e.data.item_id;var a=n.items.find((e=>e.id===t)),o="";if(void 0!==a){"checkbox-group"==r.value?(i.value.length>0&&""===i.value[0].trim()&&(i.value=i.value.slice(1)),o=i.value.join(", ")):o="number"==r.value?void 0!==e.data.field_value?e.data.field_value:"":void 0!==e.data.field_value?e.data.field_value.trim():"";let c=e.data.field_name;var l=a.data[c],d=!0;if(c.startsWith("checkbox")&&""===o?delete a.data[c]:a.data[c]==o?d=!1:a.data[c]=o,d){var s=JSON.stringify({item_data:a.data});B().patch(n.item_endpoint+t+"/save",s,{headers:{"Content-Type":"application/json"}}).then((e=>{1==e.data.saved&&(a.data=e.data.data)})).catch((e=>{console.log(e),a.data[c]=l}))}}p()},copyToClipboard:async e=>{try{await s(e)}catch(e){console.error(e)}p()}}}},Ee=(0,M.A)(Ce,[["render",function(e,t,n,o,i,r){return o.show_modal?((0,l.uX)(),(0,l.CE)("div",te,[(0,l.Lk)("div",{class:"modal fade show d-block",onKeydown:t[12]||(t[12]=(0,a.withKeys)((e=>o.closeModal()),["esc"])),tabindex:"-1",role:"dialog"},[(0,l.Lk)("div",ne,[(0,l.Lk)("div",ae,[(0,l.Lk)("div",oe,[(0,l.Lk)("h5",ie,(0,p.toDisplayString)(e.$t(n.data.field_label)),1),(0,l.Lk)("button",{type:"button",class:"close","data-dismiss":"modal","aria-label":"Close",onClick:t[0]||(t[0]=e=>o.closeModal())},le)]),(0,l.Lk)("div",re,[o.edit_mode?((0,l.uX)(),(0,l.CE)("div",de,["text"==o.field_type||"date"==o.field_type||"number"==o.field_type?(0,l.bo)(((0,l.uX)(),(0,l.CE)("input",{key:0,type:o.field_type,class:"form-control",onKeyup:t[1]||(t[1]=(0,a.withKeys)((e=>o.saveField()),["enter"])),"onUpdate:modelValue":t[2]||(t[2]=e=>n.data.field_value=e)},null,40,se)),[[a.vModelDynamic,n.data.field_value]]):"select"==o.field_type?(0,l.bo)(((0,l.uX)(),(0,l.CE)("select",{key:1,"onUpdate:modelValue":t[3]||(t[3]=e=>n.data.field_value=e),class:"form-control form-select"},[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(o.field_options,(e=>((0,l.uX)(),(0,l.CE)("option",{value:e.value},(0,p.toDisplayString)(e.label),9,ce)))),256))],512)),[[a.vModelSelect,n.data.field_value]]):"checkbox-group"==o.field_type?((0,l.uX)(!0),(0,l.CE)(l.FK,{key:2},(0,l.pI)(o.field_options,(e=>((0,l.uX)(),(0,l.CE)("div",ue,[(0,l.bo)((0,l.Lk)("input",{type:"checkbox",class:"form-check-input",id:e.value,value:e.value,"onUpdate:modelValue":t[4]||(t[4]=e=>o.multi_choice=e)},null,8,fe),[[a.vModelCheckbox,o.multi_choice]]),(0,l.Lk)("label",{for:e.value,class:"form-check-label"},(0,p.toDisplayString)(e.label),9,pe)])))),256)):"radio-group"==o.field_type?((0,l.uX)(!0),(0,l.CE)(l.FK,{key:3},(0,l.pI)(o.field_options,(e=>((0,l.uX)(),(0,l.CE)("div",me,[(0,l.bo)((0,l.Lk)("input",{type:"radio",class:"form-check-input",name:"RadioGroup",id:e.value,value:e.value,"onUpdate:modelValue":t[5]||(t[5]=e=>n.data.field_value=e)},null,8,_e),[[a.vModelRadio,n.data.field_value]]),(0,l.Lk)("label",{for:e.value,class:"form-check-label"},(0,p.toDisplayString)(e.label),9,ve)])))),256)):"textarea"==o.field_type?(0,l.bo)(((0,l.uX)(),(0,l.CE)("textarea",{key:4,class:"form-control",rows:"6",onKeyup:t[6]||(t[6]=(0,a.withKeys)((e=>o.saveField()),["enter"])),"onUpdate:modelValue":t[7]||(t[7]=e=>n.data.field_value=e)},"\n ",544)),[[a.vModelText,n.data.field_value]]):(0,l.Q3)("v-if",!0)])):n.data.field_name.startsWith("checkbox")?((0,l.uX)(),(0,l.CE)("div",{key:1,innerHTML:o.formatted_field_value()},null,8,he)):((0,l.uX)(),(0,l.CE)("div",ye,[n.data.field_value?((0,l.uX)(),(0,l.CE)("span",be,(0,p.toDisplayString)(o.formatted_field_value()),1)):((0,l.uX)(),(0,l.CE)("span",ge,(0,p.toDisplayString)(e.$t("Empty")),1))]))]),(0,l.Lk)("div",ke,[o.edit_mode||!n.data.field_value||"text"!=o.field_type&&"date"!=o.field_type&&"number"!=o.field_type&&"textarea"!=o.field_type?(0,l.Q3)("v-if",!0):((0,l.uX)(),(0,l.CE)("button",{key:0,onClick:t[8]||(t[8]=e=>o.copyToClipboard(n.data.field_value)),type:"button",class:"btn btn-outline-primary"},(0,p.toDisplayString)(e.$t("Copy")),1)),o.can_edit&&!o.edit_mode?((0,l.uX)(),(0,l.CE)("button",{key:1,type:"button",class:"btn btn-outline-primary","data-dismiss":"modal",onClick:t[9]||(t[9]=e=>o.edit_mode=!0)},(0,p.toDisplayString)(e.$t("Edit")),1)):(0,l.Q3)("v-if",!0),o.edit_mode?((0,l.uX)(),(0,l.CE)("button",{key:2,type:"button",class:"btn btn-primary",onClick:t[10]||(t[10]=e=>o.saveField())},(0,p.toDisplayString)(e.$t("Save")),1)):(0,l.Q3)("v-if",!0),(0,l.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[11]||(t[11]=e=>o.closeModal())},(0,p.toDisplayString)(o.edit_mode?e.$t("Cancel"):e.$t("Close")),1)])])])],32),we])):(0,l.Q3)("v-if",!0)}]]);const Le={class:"modal-dialog"},Se={class:"modal-content"},Fe={class:"modal-header"},Ie={class:"modal-title",id:"delete-modal-label"},Me=[(0,l.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-x","aria-hidden":"true"},[(0,l.Lk)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,l.Lk)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)],Te={class:"modal-body"},Xe={class:"modal-footer"},Ae=(0,l.Lk)("div",{class:"modal-backdrop fade show"},null,-1);var Re={name:"DeleteItemModal",components:{},setup(){const e=(0,f.E)(),t=e.delete_item_initiated;return{deleteItem:function(){let n=e.item_endpoint+t+"/delete";B().delete(n).then((n=>{if(1==n.data.deleted&&(function(){let n=e.items.findIndex((e=>e.id===t));if(e.items.splice(n,1),e.meta.total=e.meta.total-1,e.searched_items){let n=e.searched_items.findIndex((e=>e.id===t));e.searched_items.splice(n,1)}}(),0!=n.data.remove_alert)){let e=document.getElementById(n.data.remove_alert.disk_alert);if(null!==e){e.remove();let t=document.getElementById(n.data.remove_alert.alerts);0==t.querySelectorAll("li").length&&t.remove()}}})).catch((e=>{console.log(e)})).finally((()=>{this.closeModal()}))},closeModal:function(){e.delete_item_initiated=null}}}},We={name:"ItemsRenderer",components:{ItemsGrid:$,ItemsCards:ee,FieldModal:Ee,DeleteItemModal:(0,M.A)(Re,[["render",function(e,t,n,o,i,r){return(0,l.uX)(),(0,l.CE)(l.FK,null,[(0,l.Lk)("div",{tabindex:"-1","aria-labelledby":"delete-modal-label","aria-hidden":"true",class:"modal fade d-block show",onKeydown:t[3]||(t[3]=(0,a.withKeys)((e=>o.closeModal()),["esc"])),role:"dialog"},[(0,l.Lk)("div",Le,[(0,l.Lk)("div",Se,[(0,l.Lk)("div",Fe,[(0,l.Lk)("h5",Ie,(0,p.toDisplayString)(e.$t("Delete answer")),1),(0,l.Lk)("button",{type:"button","aria-label":"Close",onClick:t[0]||(t[0]=e=>o.closeModal())},Me)]),(0,l.Lk)("div",Te,(0,p.toDisplayString)(e.$t("This cannot be undone!")),1),(0,l.Lk)("div",Xe,[(0,l.Lk)("button",{type:"button",class:"btn btn-danger",onClick:t[1]||(t[1]=e=>o.deleteItem())},(0,p.toDisplayString)(e.$t("Delete")),1),(0,l.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=e=>o.closeModal())},(0,p.toDisplayString)(e.$t("Cancel")),1)])])])],32),Ae],64)}]]),GoToTop:n(7488).A},setup(){const e=(0,f.E)(),t=(0,i.useMq)(),n=(0,l.EW)((()=>"xs"==t.current));(0,l.Gt)("xs_screen",n);const a=(0,u.KR)(!1),o=(0,u.Kh)({field_name:"",field_value:"",field_label:"",item_id:null});return(0,l.Gt)("showFieldEditor",(function(t){e.isFieldDeletedField(t.field_name)||(void 0!==t&&(o.item_id=t.item_id,o.field_name=t.field_name,o.field_value=t.field_value,o.field_label=e.getFieldLabel(t.field_name)),a.value=!0)})),{xs_screen:n,total_items:(0,l.EW)((()=>e.items.length)),field_modal_data:o,show_field_modal:a,closeFieldModal:function(e){a.value=!1},is_loading:(0,l.EW)((()=>e.downloading_items)),display_items_as:(0,l.EW)((()=>e.display_items_as)),delete_item_initiated:(0,l.EW)((()=>e.delete_item_initiated)),pdf_builder_mode:(0,l.EW)((()=>e.ui.pdf_builder))}}};n(3911),n(437);var De=(0,M.A)(We,[["render",function(e,t,n,a,o,i){const u=(0,l.g2)("GoToTop"),f=(0,l.g2)("ItemsCards"),p=(0,l.g2)("ItemsGrid"),m=(0,l.g2)("FieldModal"),_=(0,l.g2)("DeleteItemModal");return a.is_loading||a.pdf_builder_mode||"grid"!=a.display_items_as&&"cards"!=a.display_items_as?(0,l.Q3)("v-if",!0):((0,l.uX)(),(0,l.CE)("div",r,[a.xs_screen?((0,l.uX)(),(0,l.Wv)(u,{key:0})):(0,l.Q3)("v-if",!0),a.xs_screen?((0,l.uX)(),(0,l.CE)("div",d,[(0,l.bF)(f)])):"cards"==a.display_items_as?((0,l.uX)(),(0,l.CE)("div",s,[(0,l.bF)(f)])):"grid"==a.display_items_as?((0,l.uX)(),(0,l.CE)("div",c,[(0,l.bF)(p)])):(0,l.Q3)("v-if",!0),(0,l.bF)(m,{show_modal:a.show_field_modal,data:a.field_modal_data,onCloseFieldModal:a.closeFieldModal},null,8,["show_modal","data","onCloseFieldModal"]),a.delete_item_initiated?((0,l.uX)(),(0,l.Wv)(_,{key:4})):(0,l.Q3)("v-if",!0)]))}],["__scopeId","data-v-4491ebec"]]);document.querySelectorAll("[vue-component=items-renderer]").forEach((e=>{(0,a.createApp)(De).use(o.A).use(i.Vue3Mq,{}).mount(e)}))},988:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.ds-goto-top[data-v-0422979d] {\n z-index: 100;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n position: fixed;\n top:auto;\n bottom:2em;\n right:1.5em;\n left:auto;\n}\n.ds-goto-top > svg[data-v-0422979d] {\n margin-left: 2px;\n margin-top: 0;\n}\n",""]),t.default=l},9654:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.ds-empty-field {\n font-style: italic;\n}\n",""]),t.default=l},1176:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.ds-loading[data-v-4491ebec] {\n font-style: italic;\n color: var(--lf-gray-800);\n margin-top: 1.5em;\n}\n.ds-no-data[data-v-4491ebec] {\n font-style: italic;\n color: var(--lf-gray-600);\n margin-top: 1em;\n font-size: 1.75em;\n}\n",""]),t.default=l},1368:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.ds-empty-field[data-v-73a7d0c6] {\n font-style: italic;\n}\n.ds-with-pointer[data-v-73a7d0c6] {\n cursor: pointer;\n}\n",""]),t.default=l},1198:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.ds-field-value > a > span.ds-avatar > img {\n height: 22px;\n width: 22px;\n margin-right: 0.25em;\n}\n",""]),t.default=l},2016:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.ds-card-title[data-v-2b53e1d2] {\n cursor: pointer;\n}\n.card-header[data-v-2b53e1d2]:hover {\n background-color: var(--lf-gray-100);\n}\nbutton.ds-expand-button[data-v-2b53e1d2] {\n min-height: 36px;\n max-height: 36px;\n min-width: 30px;\n}\n.deletedFieldLabel[data-v-2b53e1d2] {\n color: var(--lf-danger);\n}\n\n\n",""]),t.default=l},9705:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.pagination[data-v-41ea2cb1] {\n cursor: pointer;\n}\n",""]),t.default=l},440:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.ds-more-cards {\n color: var(--lf-link-color);\n text-decoration: underline;\n cursor: pointer;\n}\n.ds-card-list .card {\n border-top: 1px solid var(--lf-gray-300);\n}\n.ds-card-list li > span:first-child {\n margin-right: 0.5em;\n}\n.ds-card-list .card-header {\n padding: 0;\n border-bottom: 0;\n}\n.ds-card-list .card-header .ds-avatar > img {\n height: 22px !important;\n width: 22px !important;\n}\n.ds-card-list .card.active {\n /* border-top: 1px solid var(--lf-gray-400); */\n}\n.ds-card-list .card.active .card-header {\n background-color: var(--lf-gray-200);\n border-bottom: var(--lf-card-border-width) solid var(--lf-card-border-color);\n}\n.ds-card-list .card:not(:first-child) {\n margin-top: 0.5em;\n}\n.ds-card-list .card-body {\n padding: 0; /*var(--lf-card-spacer-y) calc(var(--lf-card-spacer-x) / 2);*/\n}\n",""]),t.default=l},5185:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\ntable, caption, tbody, tfoot, thead, tr, th, td {\n margin: 0;\n padding: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n}\ntable {\n border: 1px solid var(--lf-gray-300);\n border-collapse: collapse;\n}\ntable th {\n cursor: pointer;\n}\nth {\n font-weight: bold;\n}\nth:not(.stickyColumn), td:not(.stickyColumn) {\n border-right: 1px solid var(--lf-gray-300);\n}\nth > div, td > div {\n white-space: nowrap;\n overflow: hidden;\n\ttext-overflow: ellipsis;\n}\n.widthZero {\n width: 0;\n}\n.stickyColumn {\n background-color: var(--lf-gray-100) !important;\n position: -webkit-sticky;\n position: sticky;\n outline: 1px solid var(--lf-gray-400);\n z-index: 2;\n}\n.first_sticky_col {\n left: 0px;\n}\n@-moz-document url-prefix() {\n.first_sticky_col {\n left: 1px;\n}\n}\n.sticky_data_col_with_controls {\n left: 40px;\n}\n@-moz-document url-prefix() {\n.sticky_data_col_with_controls {\n left: 41px;\n}\n}\n.sticky_data_col_with_controls_expanded {\n left: 82px;\n}\n.ds-marked-col-header {\n margin-left: 2px;\n}\n.ds-deleted-field-label {\n color: var(--lf-danger);\n}\n",""]),t.default=l},1731:function(e,t,n){"use strict";n.r(t);var a=n(9248),o=n.n(a),i=n(9089),l=n.n(i)()(o());l.push([e.id,"\n.grid-controls.notExpanded[data-v-dad6cfb0] {\n min-width: 38px;\n max-width: 38px;\n}\n.grid-controls.expanded[data-v-dad6cfb0] {\n min-width: 80px;\n max-width: 80px;\n}\n.card-controls[data-v-dad6cfb0] {\n min-height: 30px;\n max-height: 30px;\n}\n.card-controls.notExpanded[data-v-dad6cfb0] {\n min-width: 38px;\n max-width: 38px;\n margin-left: -8px;\n}\n.card-controls.expanded[data-v-dad6cfb0] {\n min-width: 84px;\n max-width: 84px;\n margin-left: -8px;\n}\nbutton[data-v-dad6cfb0] {\n min-height: 38px;\n max-height: 38px;\n min-width: 38px;\n text-align: center;\n}\nbutton.ds-card-button[data-v-dad6cfb0] {\n min-height: 30px;\n max-height: 30px;\n min-width: 30px;\n border: 1px solid var(--lf-gray-400);\n}\nbutton.ds-delete-button[data-v-dad6cfb0] {\n color: var(--lf-danger);\n}\n",""]),t.default=l},7488:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var a=n(822),o=n(4526);const i={ref:"target",id:"go_to_top"};var l=n(4390),r=n(4023),d={name:"GoToTop",components:{ChevronUpIcon:n(4997).Mtm},setup(e){const t=(0,l.KR)(null),n=(0,r.ITo)(t),o=(0,l.KR)(!1);return(0,a.wB)((()=>n.value),(()=>{if(n.value)o.value=!1;else{let e=document.getElementById("go_to_top");e&&e.getBoundingClientRect().top<0&&(o.value=!0)}}),{immediate:!0}),{target:t,showButton:o,goToTop:function(){window.scrollTo(0,0)},themeColors:function(){let e=document.getElementsByClassName("ds-main-navbar")[0],t=window.getComputedStyle(e).getPropertyValue("background-color"),n=document.getElementsByClassName("navbar-brand")[0];return{color:window.getComputedStyle(n).getPropertyValue("color"),"background-color":t}}()}}};n(842);var s=(0,n(1535).A)(d,[["render",function(e,t,n,l,r,d){const s=(0,a.g2)("ChevronUpIcon");return(0,a.uX)(),(0,a.CE)("div",i,[l.showButton?((0,a.uX)(),(0,a.CE)("div",{key:0,class:"ds-goto-top",style:(0,o.normalizeStyle)(l.themeColors),onClick:t[0]||(t[0]=e=>l.goToTop())},[(0,a.bF)(s,{size:"3x"})],4)):(0,a.Q3)("v-if",!0)],512)}],["__scopeId","data-v-0422979d"]])},842:function(e,t,n){var a=n(988);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("7ff4776c",a,!1,{})},3911:function(e,t,n){var a=n(9654);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("c1fe3d46",a,!1,{})},437:function(e,t,n){var a=n(1176);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("ab55919a",a,!1,{})},5549:function(e,t,n){var a=n(1368);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("1ce56211",a,!1,{})},1999:function(e,t,n){var a=n(1198);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("a6f0c286",a,!1,{})},1691:function(e,t,n){var a=n(2016);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("7211b378",a,!1,{})},1950:function(e,t,n){var a=n(9705);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("79fbf6ca",a,!1,{})},3703:function(e,t,n){var a=n(440);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("a877c564",a,!1,{})},8656:function(e,t,n){var a=n(5185);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("01fce602",a,!1,{})},9070:function(e,t,n){var a=n(1731);a.__esModule&&(a=a.default),"string"==typeof a&&(a=[[e.id,a,""]]),a.locals&&(e.exports=a.locals),(0,n(8449).A)("0c212c80",a,!1,{})},4023:function(e,t,n){"use strict";n.d(t,{Lhy:function(){return v},ITo:function(){return h}});var a=n(4390),o=n(822);function i(e){return!!(0,a.o5)()&&((0,a.jr)(e),!0)}function l(e){return"function"==typeof e?e():(0,a.R1)(e)}const r="undefined"!=typeof window&&"undefined"!=typeof document,d=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),s=(Object.prototype.toString,()=>{});function c(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const u=/\B([A-Z])/g,f=(c((e=>e.replace(u,"-$1").toLowerCase())),/-(\w)/g);function p(e){var t;const n=l(e);return null!=(t=null==n?void 0:n.$el)?t:n}c((e=>e.replace(f,((e,t)=>t?t.toUpperCase():""))));const m=r?window:void 0;function _(e){const t=function(){const e=(0,a.KR)(!1),t=(0,o.nI)();return t&&(0,o.sV)((()=>{e.value=!0}),t),e}();return(0,o.EW)((()=>(t.value,Boolean(e()))))}function v(e,t={width:0,height:0},n={}){const{window:l=m,box:r="content-box"}=n,d=(0,o.EW)((()=>{var t,n;return null==(n=null==(t=p(e))?void 0:t.namespaceURI)?void 0:n.includes("svg")})),s=(0,a.KR)(t.width),c=(0,a.KR)(t.height),{stop:u}=function(e,t,n={}){const{window:a=m,...l}=n;let r;const d=_((()=>a&&"ResizeObserver"in a)),s=()=>{r&&(r.disconnect(),r=void 0)},c=(0,o.EW)((()=>Array.isArray(e)?e.map((e=>p(e))):[p(e)])),u=(0,o.wB)(c,(e=>{if(s(),d.value&&a){r=new ResizeObserver(t);for(const t of e)t&&r.observe(t,l)}}),{immediate:!0,flush:"post"}),f=()=>{s(),u()};return i(f),{isSupported:d,stop:f}}(e,(([t])=>{const n="border-box"===r?t.borderBoxSize:"content-box"===r?t.contentBoxSize:t.devicePixelContentBoxSize;if(l&&d.value){const t=p(e);if(t){const e=l.getComputedStyle(t);s.value=Number.parseFloat(e.width),c.value=Number.parseFloat(e.height)}}else if(n){const e=Array.isArray(n)?n:[n];s.value=e.reduce(((e,{inlineSize:t})=>e+t),0),c.value=e.reduce(((e,{blockSize:t})=>e+t),0)}else s.value=t.contentRect.width,c.value=t.contentRect.height}),n);!function(e,t=!0,n){!function(e){return e||(0,o.nI)()}()?t?e():(0,o.dY)(e):(0,o.sV)(e,n)}((()=>{const n=p(e);n&&(s.value="offsetWidth"in n?n.offsetWidth:t.width,c.value="offsetHeight"in n?n.offsetHeight:t.height)}));const f=(0,o.wB)((()=>p(e)),(e=>{s.value=e?t.width:0,c.value=e?t.height:0}));return{width:s,height:c,stop:function(){u(),f()}}}function h(e,t={}){const{window:n=m,scrollTarget:r,threshold:c=0}=t,u=(0,a.KR)(!1);return function(e,t,n={}){const{root:r,rootMargin:c="0px",threshold:u=.1,window:f=m,immediate:v=!0}=n,h=_((()=>f&&"IntersectionObserver"in f)),y=(0,o.EW)((()=>{const t=l(e);return(Array.isArray(t)?t:[t]).map(p).filter(d)}));let g=s;const b=(0,a.KR)(v),k=h.value?(0,o.wB)((()=>[y.value,p(r),b.value]),(([e,n])=>{if(g(),!b.value)return;if(!e.length)return;const a=new IntersectionObserver(t,{root:p(n),rootMargin:c,threshold:u});e.forEach((e=>e&&a.observe(e))),g=()=>{a.disconnect(),g=s}}),{immediate:v,flush:"post"}):s;i((()=>{g(),k(),b.value=!1}))}(e,(e=>{let t=u.value,n=0;for(const a of e)a.time>=n&&(n=a.time,t=a.isIntersecting);u.value=t}),{root:r,window:n,threshold:c}),u}r&&window.document,r&&window.navigator,r&&window.location,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self,Number.POSITIVE_INFINITY}},function(e){e(e.s=8355)}]); \ No newline at end of file
diff --git a/liberaforms/static/js/data-display/v2/pdf-builder.js b/liberaforms/static/js/data-display/v2/pdf-builder.js
index dc02ab2e..87a63dff 100644
--- a/liberaforms/static/js/data-display/v2/pdf-builder.js
+++ b/liberaforms/static/js/data-display/v2/pdf-builder.js
@@ -1,2 +1,2 @@
/*! For license information please see pdf-builder.js.LICENSE.txt */
-(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[500],{2499:function(t,e,n){var r=n(9594),i=n(4615);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},1118:function(t,e,n){"use strict";var r=n(2569);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},3710:function(t,e,n){var r=n(7583),i=n(8494),a=n(2499),o=n(1118),s=n(6544),l=r.RegExp,u=l.prototype;i&&s((function(){var t=!0;try{l(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(a.hasIndices="d"),a)i(o,a[o]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(e)!==r||n!==r}))&&a(u,"flags",{configurable:!0,get:o})},7085:function(t,e,n){var r;n(4573),"undefined"!=typeof globalThis?globalThis:void 0!==this||("undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g),r=function(t){return function(){"use strict";var e={172:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return n=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])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CellHookData=e.HookData=void 0;var i=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.pageCount=this.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()};e.HookData=i;var a=function(t){function e(e,n,r,i,a,o){var s=t.call(this,e,n,o)||this;return s.cell=r,s.row=i,s.column=a,s.section=i.section,s}return r(e,t),e}(i);e.CellHookData=a},340:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(136),a=n(744),o=n(776),s=n(664),l=n(972);e.default=function(t){t.API.autoTable=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];1===e.length?t=e[0]:(console.error("Use of deprecated autoTable initiation"),(t=e[2]||{}).columns=e[0],t.body=e[1]);var r=(0,o.parseInput)(this,t),i=(0,l.createTable)(this,r);return(0,s.drawTable)(this,i),this},t.API.lastAutoTable=!1,t.API.previousAutoTable=!1,t.API.autoTable.previous=!1,t.API.autoTableText=function(t,e,n,r){(0,i.default)(t,e,n,r,this)},t.API.autoTableSetDefaults=function(t){return a.DocHandler.setDefaults(t,this),this},t.autoTableSetDefaults=function(t,e){a.DocHandler.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 i=new a.DocHandler(this),o=(0,r.parseHtml)(i,t,window,e,!1),s=o.head,l=o.body;return{columns:(null===(n=s[0])||void 0===n?void 0:n.map((function(t){return t.content})))||[],rows:l,data:l}},t.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var t=this.lastAutoTable;return t&&t.finalY?t.finalY:0},t.API.autoTableAddPageContent=function(e){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),t.API.autoTable.globalDefaults||(t.API.autoTable.globalDefaults={}),t.API.autoTable.globalDefaults.addPageContent=e,this},t.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},136:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){r=r||{};var a=i.internal.scaleFactor,o=i.internal.getFontSize()/a,s=o*(i.getLineHeightFactor?i.getLineHeightFactor():1.15),l="",u=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(u=(l="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=o*(2-1.15),"middle"===r.valign?n-=u/2*s:"bottom"===r.valign&&(n-=u*s),"center"===r.halign||"right"===r.halign){var c=o;if("center"===r.halign&&(c*=.5),l&&u>=1){for(var h=0;h<l.length;h++)i.text(l[h],e-i.getStringUnitWidth(l[h])*c,n),n+=s;return i}e-=i.getStringUnitWidth(t)*c}return"justify"===r.halign?i.text(t,e,n,{maxWidth:r.maxWidth||100,align:"justify"}):i.text(t,e,n),i}},420:function(t,e){function n(t,e){var n=t>0,r=e||0===e;return n&&r?"DF":n?"S":r?"F":null}function r(t,e){var n,r,i,a;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!==(r=t.top)&&void 0!==r?r:e,right:null!==(i=t.right)&&void 0!==i?i:e,bottom:null!==(a=t.bottom)&&void 0!==a?a:e}):("number"!=typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}Object.defineProperty(e,"__esModule",{value:!0}),e.getPageAvailableWidth=e.parseSpacing=e.getFillStyle=e.addTableBorder=e.getStringWidth=void 0,e.getStringWidth=function(t,e,n){return n.applyStyles(e,!0),(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0)},e.addTableBorder=function(t,e,r,i){var a=e.settings.tableLineWidth,o=e.settings.tableLineColor;t.applyStyles({lineWidth:a,lineColor:o});var s=n(a,!1);s&&t.rect(r.x,r.y,e.getWidth(t.pageSize().width),i.y-r.y,s)},e.getFillStyle=n,e.parseSpacing=r,e.getPageAvailableWidth=function(t,e){var n=r(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)}},796:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return n=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])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.getTheme=e.defaultStyles=e.HtmlRowInput=void 0;var i=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return r(e,t),e}(Array);e.HtmlRowInput=i,e.defaultStyles=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}},e.getTheme=function(t){return{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"}}}[t]}},903:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseCss=void 0;var r=n(420);function i(t,e){var n=a(t,e);if(!n)return null;var r=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var i=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])];return 0===parseInt(r[4])||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function a(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:a(t.parentElement,e):n}e.parseCss=function(t,e,n,a,o){var s={},l=96/72,u=i(e,(function(t){return o.getComputedStyle(t).backgroundColor}));null!=u&&(s.fillColor=u);var c=i(e,(function(t){return o.getComputedStyle(t).color}));null!=c&&(s.textColor=c);var h=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],i=96/(72/e),a=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,o=n.map((function(t){return parseInt(t||"0")/i})),s=(0,r.parseSpacing)(o,0);return a>s.top&&(s.top=a),a>s.bottom&&(s.bottom=a),s}(a,n);h&&(s.cellPadding=h);var f="borderTopColor",d=l*n,p=a.borderTopWidth;if(a.borderBottomWidth===p&&a.borderRightWidth===p&&a.borderLeftWidth===p){var g=(parseFloat(p)||0)/d;g&&(s.lineWidth=g)}else s.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},s.lineWidth.top||(s.lineWidth.right?f="borderRightColor":s.lineWidth.bottom?f="borderBottomColor":s.lineWidth.left&&(f="borderLeftColor"));console.log(s.lineWidth);var m=i(e,(function(t){return o.getComputedStyle(t)[f]}));null!=m&&(s.lineColor=m);var v=["left","right","center","justify"];-1!==v.indexOf(a.textAlign)&&(s.halign=a.textAlign),-1!==(v=["middle","bottom","top"]).indexOf(a.verticalAlign)&&(s.valign=a.verticalAlign);var b=parseInt(a.fontSize||"");isNaN(b)||(s.fontSize=b/l);var y=function(t){var e="";return("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold"),"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic"),e}(a);y&&(s.fontStyle=y);var w=(a.fontFamily||"").toLowerCase();return-1!==t.indexOf(w)&&(s.font=w),s}},744:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DocHandler=void 0;var n={},r=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:n=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 r,i,a;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 u=this.getFontList()[l];u&&-1===u.indexOf(s)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(u[0]),s=u[0])}if(this.jsPDFDocument.setFont(l,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var c=t.unifyColor(e.fillColor);c&&(r=this.jsPDFDocument).setFillColor.apply(r,c),(c=t.unifyColor(e.textColor))&&(i=this.jsPDFDocument).setTextColor.apply(i,c),(c=t.unifyColor(e.lineColor))&&(a=this.jsPDFDocument).setDrawColor.apply(a,c),"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,r,i){return this.jsPDFDocument.rect(t,e,n,r,i)},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 n||{}},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}();e.DocHandler=r},4:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseHtml=void 0;var r=n(903),i=n(796);function a(t,e,n,a,s,l){for(var u=new i.HtmlRowInput(a),c=0;c<a.cells.length;c++){var h=a.cells[c],f=n.getComputedStyle(h);if(s||"none"!==f.display){var d=void 0;l&&(d=(0,r.parseCss)(t,h,e,f,n)),u.push({rowSpan:h.rowSpan,colSpan:h.colSpan,styles:d,_element:h,content:o(h)})}}var p=n.getComputedStyle(a);if(u.length>0&&(s||"none"!==p.display))return u}function o(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||""}e.parseHtml=function(t,e,n,r,i){var o,s,l;void 0===r&&(r=!1),void 0===i&&(i=!1),l="string"==typeof e?n.document.querySelector(e):e;var u=Object.keys(t.getFontList()),c=t.scaleFactor(),h=[],f=[],d=[];if(!l)return console.error("Html table could not be found with input: ",e),{head:h,body:f,foot:d};for(var p=0;p<l.rows.length;p++){var g=l.rows[p],m=null===(s=null===(o=null==g?void 0:g.parentElement)||void 0===o?void 0:o.tagName)||void 0===s?void 0:s.toLowerCase(),v=a(u,c,n,g,r,i);v&&("thead"===m?h.push(v):"tfoot"===m?d.push(v):f.push(v))}return{head:h,body:f,foot:d}}},776:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseInput=void 0;var r=n(4),i=n(356),a=n(420),o=n(744),s=n(792);function l(t,e,n){var r=t[0]||e[0]||n[0]||[],i=[];return Object.keys(r).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!=typeof(e=Array.isArray(r)?r[parseInt(t)]:r[t])||Array.isArray(e)||(n=(null==e?void 0:e.colSpan)||1);for(var a=0;a<n;a++){var o={dataKey:Array.isArray(r)?i.length:t+(a>0?"_".concat(a):"")};i.push(o)}})),i}e.parseInput=function(t,e){var n=new o.DocHandler(t),u=n.getDocumentOptions(),c=n.getGlobalOptions();(0,s.default)(n,c,u,e);var h,f=(0,i.assign)({},c,u,e);"undefined"!=typeof window&&(h=window);var d=function(t,e,n){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(a){if("columnStyles"===a){var o=t[a],s=e[a],l=n[a];r.columnStyles=(0,i.assign)({},o,s,l)}else{var u=[t,e,n].map((function(t){return t[a]||{}}));r[a]=(0,i.assign)({},u[0],u[1],u[2])}},o=0,s=Object.keys(r);o<s.length;o++)a(s[o]);return r}(c,u,e),p=function(t,e,n){for(var r={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},i=0,a=[t,e,n];i<a.length;i++){var o=a[i];o.didParseCell&&r.didParseCell.push(o.didParseCell),o.willDrawCell&&r.willDrawCell.push(o.willDrawCell),o.didDrawCell&&r.didDrawCell.push(o.didDrawCell),o.willDrawPage&&r.willDrawPage.push(o.willDrawPage),o.didDrawPage&&r.didDrawPage.push(o.didDrawPage)}return r}(c,u,e),g=function(t,e){var n,r,i,o,s,l,u,c,h,f,d,p,g,m,v=(0,a.parseSpacing)(e.margin,40/t.scaleFactor()),b=null!==(n=function(t,e){var n=t.getLastAutoTable(),r=t.scaleFactor(),i=t.pageNumber(),a=!1;return n&&n.startPageNumber&&(a=n.startPageNumber+n.pageNumber-1===i),"number"==typeof e?e:null!=e&&!1!==e||!a||null==(null==n?void 0:n.finalY)?null:n.finalY+20/r}(t,e.startY))&&void 0!==n?n:v.top;g=!0===e.showFoot?"everyPage":!1===e.showFoot?"never":null!==(r=e.showFoot)&&void 0!==r?r:"everyPage",m=!0===e.showHead?"everyPage":!1===e.showHead?"never":null!==(i=e.showHead)&&void 0!==i?i:"everyPage";var y=null!==(o=e.useCss)&&void 0!==o&&o,w=e.theme||(y?"plain":"striped"),x=!!e.horizontalPageBreak,A=null!==(s=e.horizontalPageBreakRepeat)&&void 0!==s?s:null;return{includeHiddenHtml:null!==(l=e.includeHiddenHtml)&&void 0!==l&&l,useCss:y,theme:w,startY:b,margin:v,pageBreak:null!==(u=e.pageBreak)&&void 0!==u?u:"auto",rowPageBreak:null!==(c=e.rowPageBreak)&&void 0!==c?c:"auto",tableWidth:null!==(h=e.tableWidth)&&void 0!==h?h:"auto",showHead:m,showFoot:g,tableLineWidth:null!==(f=e.tableLineWidth)&&void 0!==f?f:0,tableLineColor:null!==(d=e.tableLineColor)&&void 0!==d?d:200,horizontalPageBreak:x,horizontalPageBreakRepeat:A,horizontalPageBreakBehaviour:null!==(p=e.horizontalPageBreakBehaviour)&&void 0!==p?p:"afterAllRows"}}(n,f),m=function(t,e,n){var i=e.head||[],a=e.body||[],o=e.foot||[];if(e.html){var s=e.includeHiddenHtml;if(n){var u=(0,r.parseHtml)(t,e.html,n,s,e.useCss)||{};i=u.head||i,a=u.body||i,o=u.foot||i}else console.error("Cannot parse html in non browser environment")}return{columns:e.columns||l(i,a,o),head:i,body:a,foot:o}}(n,f,h);return{id:e.tableId,content:m,hooks:p,styles:d,settings:g}}},792:function(t,e){function n(t){t.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),t.minCellHeight||(t.minCellHeight=t.rowHeight)):t.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),t.cellWidth||(t.cellWidth=t.columnWidth))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,i){for(var a=function(e){e&&"object"!=typeof e&&console.error("The options parameter should be of type object, is: "+typeof e),void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==e.margins&&(void 0===e.margin&&(e.margin=e.margins),console.error("Use of deprecated option: margins, use margin instead.")),e.startY&&"number"!=typeof e.startY&&(console.error("Invalid value for startY option",e.startY),delete e.startY),!e.didDrawPage&&(e.afterPageContent||e.beforePageContent||e.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),e.didDrawPage=function(n){t.applyStyles(t.userStyles),e.beforePageContent&&e.beforePageContent(n),t.applyStyles(t.userStyles),e.afterPageContent&&e.afterPageContent(n),t.applyStyles(t.userStyles),e.afterPageAdd&&n.pageNumber>1&&n.afterPageAdd(n),t.applyStyles(t.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(t){e[t]&&console.error('The "'.concat(t,'" hook has changed in version 3.0, check the changelog for how to migrate.'))})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(t){var n=t[0],r=t[1];e[r]&&(console.error("Use of deprecated option ".concat(r,". Use ").concat(n," instead")),e[n]=e[r])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(t){var n="string"==typeof t?t:t[0],r="string"==typeof t?t:t[1];void 0!==e[n]&&(void 0===e.styles[r]&&(e.styles[r]=e[n]),console.error("Use of deprecated option: "+n+", use the style "+r+" instead."))}));for(var r=0,i=["styles","bodyStyles","headStyles","footStyles"];r<i.length;r++)n(e[i[r]]||{});for(var a=e.columnStyles||{},o=0,s=Object.keys(a);o<s.length;o++)n(a[s[o]]||{})},o=0,s=[e,r,i];o<s.length;o++)a(s[o])}},260:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Column=e.Cell=e.Row=e.Table=void 0;var r=n(796),i=n(172),a=n(420),o=function(){function t(t,e){this.pageNumber=1,this.pageCount=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,r,a,o){for(var s=0,l=e;s<l.length;s++){var u=!1===(0,l[s])(new i.CellHookData(t,this,n,r,a,o));if(n.text=Array.isArray(n.text)?n.text:[n.text],u)return!1}return!0},t.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,r=this.hooks.didDrawPage;n<r.length;n++)(0,r[n])(new i.HookData(t,this,e))},t.prototype.callWillDrawPageHooks=function(t,e){for(var n=0,r=this.hooks.willDrawPage;n<r.length;n++)(0,r[n])(new i.HookData(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}();e.Table=o;var s=function(){function t(t,e,n,i,a){void 0===a&&(a=!1),this.height=0,this.raw=t,t instanceof r.HtmlRowInput&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=i,this.spansMultiplePages=a}return t.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce((function(t,n){var r;return Math.max(t,(null===(r=e.cells[n.index])||void 0===r?void 0:r.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,r){var i=n.cells[r.index];if(!i)return 0;var a=e.getLineHeight(i.styles.fontSize),o=i.padding("vertical")+a;return o>t?o:t}),0)},t}();e.Row=s;var l=function(){function t(t,e,n){var r,i;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 a=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,a=null!==(i=null!==(r=t.content)&&void 0!==r?r:t.title)&&void 0!==i?i:t,t._element&&(this.raw=t._element));var o=null!=a?""+a:"";this.text=o.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 r=this.width-this.padding("horizontal");e=this.x+r/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=(0,a.parseSpacing)(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}();e.Cell=l;var u=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,r=t.allRows();n<r.length;n++){var i=r[n].cells[this.index];i&&"number"==typeof i.styles.cellWidth&&(e=Math.max(e,i.styles.cellWidth))}return e},t}();e.Column=u},356:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.assign=void 0,e.assign=function(t,e,n,r,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var a=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)&&(a[l]=s[l])}return a}},972:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createTable=void 0;var r=n(744),i=n(260),a=n(324),o=n(796),s=n(356);function l(t,e,n,r,a,o){var s={};return e.map((function(e,l){for(var u=0,h={},f=0,d=0,p=0,g=n;p<g.length;p++){var m=g[p];if(null==s[m.index]||0===s[m.index].left)if(0===d){var v,b={};"object"!=typeof(v=Array.isArray(e)?e[m.index-f-u]:e[m.dataKey])||Array.isArray(v)||(b=(null==v?void 0:v.styles)||{});var y=c(t,m,l,a,r,o,b),w=new i.Cell(v,y,t);h[m.dataKey]=w,h[m.index]=w,d=w.colSpan-1,s[m.index]={left:w.rowSpan-1,times:d}}else d--,f++;else s[m.index].left--,d=s[m.index].times,u++}return new i.Row(e,l,t,h)}))}function u(t,e){var n={};return t.forEach((function(t){if(null!=t.raw){var r=function(t,e){if("head"===t){if("object"==typeof e)return e.header||e.title||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!=r&&(n[t.dataKey]=r)}})),Object.keys(n).length>0?n:null}function c(t,e,n,r,i,a,l){var u,c=(0,o.getTheme)(r);"head"===t?u=i.headStyles:"body"===t?u=i.bodyStyles:"foot"===t&&(u=i.footStyles);var h=(0,s.assign)({},c.table,c[t],i.styles,u),f=i.columnStyles[e.dataKey]||i.columnStyles[e.index]||{},d="body"===t?f:{},p="body"===t&&n%2==0?(0,s.assign)({},c.alternateRow,i.alternateRowStyles):{},g=(0,o.defaultStyles)(a),m=(0,s.assign)({},g,h,p,d);return(0,s.assign)(m,l)}e.createTable=function(t,e){var n=new r.DocHandler(t),o=function(t,e){var n,r=t.content,a=function(t){return t.map((function(t,e){var n,r,a;return a="object"==typeof t&&null!==(r=null!==(n=t.dataKey)&&void 0!==n?n:t.key)&&void 0!==r?r:e,new i.Column(a,t,e)}))}(r.columns);0===r.head.length&&(n=u(a,"head"))&&r.head.push(n),0===r.foot.length&&(n=u(a,"foot"))&&r.foot.push(n);var o=t.settings.theme,s=t.styles;return{columns:a,head:l("head",r.head,a,s,o,e),body:l("body",r.body,a,s,o,e),foot:l("foot",r.foot,a,s,o,e)}}(e,n.scaleFactor()),s=new i.Table(e,o);return(0,a.calculateWidths)(n,s),n.applyStyles(n.userStyles),s}},664:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addPage=e.drawTable=void 0;var r=n(420),i=n(260),a=n(744),o=n(356),s=n(136),l=n(224);function u(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),"firstPage"!==i.showHead&&"everyPage"!==i.showHead||e.head.forEach((function(i){return p(t,e,i,n,r)}))}function c(t,e,n,r,i,a){t.applyStyles(t.userStyles),a=null!=a?a:e.body.length;var o=Math.min(n+a,e.body.length),s=-1;return e.body.slice(n,o).forEach((function(a,o){var l=n+o===e.body.length-1,u=m(t,e,l,r);a.canEntireRowFit(u,i)&&(p(t,e,a,r,i),s=n+o)})),s}function h(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),"lastPage"!==i.showFoot&&"everyPage"!==i.showFoot||e.foot.forEach((function(i){return p(t,e,i,n,r)}))}function f(t,e,n){var r=n.getLineHeight(t.styles.fontSize),i=t.padding("vertical"),a=Math.floor((e-i)/r);return Math.max(0,a)}function d(t,e,n,r,a,s,l){var u=m(t,e,r,s);if(n.canEntireRowFit(u,l))p(t,e,n,s,l);else if(function(t,e,n,r){var i=t.pageSize().height,a=r.settings.margin,o=i-(a.top+a.bottom);"body"===e.section&&(o-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var s=e.getMinimumRowHeight(r.columns,t),l=s<n;if(s>o)return console.error("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 u=e.hasRowSpan(r.columns);return e.getMaxCellHeight(r.columns)>o?(u&&console.error("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):!u&&"avoid"!==r.settings.rowPageBreak}(t,n,u,e)){var c=function(t,e,n,r){var a={};t.spansMultiplePages=!0,t.height=0;for(var s=0,l=0,u=n.columns;l<u.length;l++){var c=u[l];if(y=t.cells[c.index]){Array.isArray(y.text)||(y.text=[y.text]);var h=new i.Cell(y.raw,y.styles,y.section);(h=(0,o.assign)(h,y)).text=[];var d=f(y,e,r);y.text.length>d&&(h.text=y.text.splice(d,y.text.length));var p=r.scaleFactor(),g=r.getLineHeightFactor();y.contentHeight=y.getContentHeight(p,g),y.contentHeight>=e&&(y.contentHeight=e,h.styles.minCellHeight-=e),y.contentHeight>t.height&&(t.height=y.contentHeight),h.contentHeight=h.getContentHeight(p,g),h.contentHeight>s&&(s=h.contentHeight),a[c.index]=h}}var m=new i.Row(t.raw,-1,t.section,a,!0);m.height=s;for(var v=0,b=n.columns;v<b.length;v++){var y;c=b[v],(h=m.cells[c.index])&&(h.height=m.height),(y=t.cells[c.index])&&(y.height=t.height)}return m}(n,u,e,t);p(t,e,n,s,l),v(t,e,a,s,l),d(t,e,c,r,a,s,l)}else v(t,e,a,s,l),d(t,e,n,r,a,s,l)}function p(t,e,n,r,i){r.x=e.settings.margin.left;for(var a=0,o=i;a<o.length;a++){var l=o[a],u=n.cells[l.index];if(u)if(t.applyStyles(u.styles),u.x=r.x,u.y=r.y,!1!==e.callCellHooks(t,e.hooks.willDrawCell,u,n,l,r)){g(t,u,r);var c=u.getTextPos();(0,s.default)(u.text,c.x,c.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,u,n,l,r),r.x+=l.width}else r.x+=l.width;else r.x+=l.width}r.y+=n.height}function g(t,e,n){var i=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),"number"==typeof i.lineWidth){var a=(0,r.getFillStyle)(i.lineWidth,i.fillColor);a&&t.rect(e.x,n.y,e.width,e.height,a)}else"object"==typeof i.lineWidth&&(i.fillColor&&t.rect(e.x,n.y,e.width,e.height,"F"),function(t,e,n,r){var i,a,o,s;function l(e,n,r,i,a){t.getDocument().setLineWidth(e),t.getDocument().line(n,r,i,a,"S")}r.top&&(i=n.x,a=n.y,o=n.x+e.width,s=n.y,r.right&&(o+=.5*r.right),r.left&&(i-=.5*r.left),l(r.top,i,a,o,s)),r.bottom&&(i=n.x,a=n.y+e.height,o=n.x+e.width,s=n.y+e.height,r.right&&(o+=.5*r.right),r.left&&(i-=.5*r.left),l(r.bottom,i,a,o,s)),r.left&&(i=n.x,a=n.y,o=n.x,s=n.y+e.height,r.top&&(a-=.5*r.top),r.bottom&&(s+=.5*r.bottom),l(r.left,i,a,o,s)),r.right&&(i=n.x+e.width,a=n.y,o=n.x+e.width,s=n.y+e.height,r.top&&(a-=.5*r.top),r.bottom&&(s+=.5*r.bottom),l(r.right,i,a,o,s))}(t,e,n,i.lineWidth))}function m(t,e,n,r){var i=e.settings.margin.bottom,a=e.settings.showFoot;return("everyPage"===a||"lastPage"===a&&n)&&(i+=e.getFootHeight(e.columns)),t.pageSize().height-r.y-i}function v(t,e,n,i,a,o){void 0===a&&(a=[]),void 0===o&&(o=!1),t.applyStyles(t.userStyles),"everyPage"!==e.settings.showFoot||o||e.foot.forEach((function(n){return p(t,e,n,i,a)})),e.callEndPageHooks(t,i);var s=e.settings.margin;(0,r.addTableBorder)(t,e,n,i),b(t),e.pageNumber++,e.pageCount++,i.x=s.left,i.y=s.top,n.y=s.top,e.callWillDrawPageHooks(t,i),"everyPage"===e.settings.showHead&&(e.head.forEach((function(n){return p(t,e,n,i,a)})),t.applyStyles(t.userStyles))}function b(t){var e=t.pageNumber();return t.setPage(e+1),t.pageNumber()===e&&(t.addPage(),!0)}e.drawTable=function(t,e){var n=e.settings,i=n.startY,s=n.margin,f={x:s.left,y:i},g=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),m=i+s.bottom+g;"avoid"===n.pageBreak&&(m+=e.body.reduce((function(t,e){return t+e.height}),0));var y=new a.DocHandler(t);("always"===n.pageBreak||null!=n.startY&&m>y.pageSize().height)&&(b(y),f.y=s.top),e.callWillDrawPageHooks(y,f);var w=(0,o.assign)({},f);e.startPageNumber=y.pageNumber(),n.horizontalPageBreak?function(t,e,n,r){var i=(0,l.calculateAllColumnsCanFitInPage)(t,e);if("afterAllRows"===e.settings.horizontalPageBreakBehaviour)i.forEach((function(i,a){t.applyStyles(t.userStyles),a>0?v(t,e,n,r,i.columns,!0):u(t,e,r,i.columns),function(t,e,n,r,i){t.applyStyles(t.userStyles),e.body.forEach((function(a,o){var s=o===e.body.length-1;d(t,e,a,s,n,r,i)}))}(t,e,n,r,i.columns),h(t,e,r,i.columns)}));else for(var a=-1,o=i[0],s=function(){var s=a;if(o){t.applyStyles(t.userStyles);var l=o.columns;a>=0?v(t,e,n,r,l,!0):u(t,e,r,l),s=c(t,e,a+1,r,l),h(t,e,r,l)}var f=s-a;i.slice(1).forEach((function(i){t.applyStyles(t.userStyles),v(t,e,n,r,i.columns,!0),c(t,e,a+1,r,i.columns,f),h(t,e,r,i.columns)})),a=s};a<e.body.length-1;)s()}(y,e,w,f):(y.applyStyles(y.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return p(y,e,t,f,e.columns)})),y.applyStyles(y.userStyles),e.body.forEach((function(t,n){var r=n===e.body.length-1;d(y,e,t,r,w,f,e.columns)})),y.applyStyles(y.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return p(y,e,t,f,e.columns)}))),(0,r.addTableBorder)(y,e,w,f),e.callEndPageHooks(y,f),e.finalY=f.y,t.lastAutoTable=e,t.previousAutoTable=e,t.autoTable&&(t.autoTable.previous=e),y.applyStyles(y.userStyles)},e.addPage=v},224:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateAllColumnsCanFitInPage=void 0;var r=n(420);function i(t,e,n){var i;void 0===n&&(n={});var a=(0,r.getPageAvailableWidth)(t,e),o=new Map,s=[],l=[],u=[];e.settings.horizontalPageBreakRepeat,Array.isArray(e.settings.horizontalPageBreakRepeat)?u=e.settings.horizontalPageBreakRepeat:"string"!=typeof e.settings.horizontalPageBreakRepeat&&"number"!=typeof e.settings.horizontalPageBreakRepeat||(u=[e.settings.horizontalPageBreakRepeat]),u.forEach((function(t){var n=e.columns.find((function(e){return e.dataKey===t||e.index===t}));n&&!o.has(n.index)&&(o.set(n.index,!0),s.push(n.index),l.push(e.columns[n.index]),a-=n.wrappedWidth)}));for(var c=!0,h=null!==(i=null==n?void 0:n.start)&&void 0!==i?i:0;h<e.columns.length;)if(o.has(h))h++;else{var f=e.columns[h].wrappedWidth;if(!(c||a>=f))break;c=!1,s.push(h),l.push(e.columns[h]),a-=f,h++}return{colIndexes:s,columns:l,lastIndex:h-1}}e.calculateAllColumnsCanFitInPage=function(t,e){for(var n=[],r=0;r<e.columns.length;r++){var a=i(t,e,{start:r});a.columns.length&&(n.push(a),r=a.lastIndex)}return n}},324:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsize=e.resizeColumns=e.calculateWidths=void 0;var r=n(420);function i(t,e,n){for(var r=e,a=t.reduce((function(t,e){return t+e.wrappedWidth}),0),o=0;o<t.length;o++){var s=t[o],l=r*(s.wrappedWidth/a),u=s.width+l,c=n(s),h=u<c?c:u;e-=h-s.width,s.width=h}if(e=Math.round(1e10*e)/1e10){var f=t.filter((function(t){return!(e<0)||t.width>n(t)}));f.length&&(e=i(f,e,n))}return e}function a(t,e,n,i,a){return t.map((function(t){return function(t,e,n,i,a){var o=1e4*i.scaleFactor();if((e=Math.ceil(e*o)/o)>=(0,r.getStringWidth)(t,n,i))return t;for(;e<(0,r.getStringWidth)(t+a,n,i)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+a}(t,e,n,i,a)}))}e.calculateWidths=function(t,e){!function(t,e){var n=t.scaleFactor(),i=e.settings.horizontalPageBreak,a=(0,r.getPageAvailableWidth)(t,e);e.allRows().forEach((function(o){for(var s=0,l=e.columns;s<l.length;s++){var u=l[s],c=o.cells[u.index];if(c){var h=e.hooks.didParseCell;e.callCellHooks(t,h,c,o,u,null);var f=c.padding("horizontal");c.contentWidth=(0,r.getStringWidth)(c.text,c.styles,t)+f;var d=(0,r.getStringWidth)(c.text.join(" ").split(/\s+/),c.styles,t);if(c.minReadableWidth=d+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===i)c.contentWidth>a?(c.minWidth=a,c.wrappedWidth=a):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var p=10/n;c.minWidth=c.styles.minCellWidth||p,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,r=e.columns;n<r.length;n++){var i=r[n],a=t.cells[i.index];if(a&&1===a.colSpan)i.wrappedWidth=Math.max(i.wrappedWidth,a.wrappedWidth),i.minWidth=Math.max(i.minWidth,a.minWidth),i.minReadableWidth=Math.max(i.minReadableWidth,a.minReadableWidth);else{var o=e.styles.columnStyles[i.dataKey]||e.styles.columnStyles[i.index]||{},s=o.cellWidth||o.minCellWidth;s&&"number"==typeof s&&(i.minWidth=s,i.wrappedWidth=s)}a&&(a.colSpan>1&&!i.minWidth&&(i.minWidth=a.minWidth),a.colSpan>1&&!i.wrappedWidth&&(i.wrappedWidth=a.minWidth))}}))}(t,e);var n=[],o=0;e.columns.forEach((function(t){var r=t.getMaxCustomCellWidth(e);r?t.width=r:(t.width=t.wrappedWidth,n.push(t)),o+=t.width}));var s=e.getWidth(t.pageSize().width)-o;s&&(s=i(n,s,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),s&&(s=i(n,s,(function(t){return t.minWidth}))),s=Math.abs(s),!e.settings.horizontalPageBreak&&s>.1/t.scaleFactor()&&(s=s<1?s:Math.round(s),console.warn("Of the table content, ".concat(s," units width could not fit page"))),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var r=e[n],i=null,a=0,o=0,s=0;s<t.columns.length;s++){var l=t.columns[s];if((o-=1)>1&&t.columns[s+1])a+=l.width,delete r.cells[l.index];else if(i){var u=i;delete r.cells[l.index],i=null,u.width=l.width+a}else{if(!(u=r.cells[l.index]))continue;if(o=u.colSpan,a=0,u.colSpan>1){i=u,a+=l.width;continue}u.width=l.width+a}}}(e),function(t,e){for(var n={count:0,height:0},r=0,i=t.allRows();r<i.length;r++){for(var o=i[r],s=0,l=t.columns;s<l.length;s++){var u=l[s],c=o.cells[u.index];if(c){e.applyStyles(c.styles,!0);var h=c.width-c.padding("horizontal");if("linebreak"===c.styles.overflow)c.text=e.splitTextToSize(c.text,h+1/e.scaleFactor(),{fontSize:c.styles.fontSize});else if("ellipsize"===c.styles.overflow)c.text=a(c.text,h,c.styles,e,"...");else if("hidden"===c.styles.overflow)c.text=a(c.text,h,c.styles,e,"");else if("function"==typeof c.styles.overflow){var f=c.styles.overflow(c.text,h);c.text="string"==typeof f?[f]:f}c.contentHeight=c.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var d=c.contentHeight/c.rowSpan;c.rowSpan>1&&n.count*n.height<d*c.rowSpan?n={height:d,count:c.rowSpan}:n&&n.count>0&&n.height>d&&(d=n.height),d>o.height&&(o.height=d)}}n.count--}}(e,t),function(t){for(var e={},n=1,r=t.allRows(),i=0;i<r.length;i++)for(var a=r[i],o=0,s=t.columns;o<s.length;o++){var l=s[o],u=e[l.index];if(n>1)n--,delete a.cells[l.index];else if(u)u.cell.height+=a.height,n=u.cell.colSpan,delete a.cells[l.index],u.left--,u.left<=1&&delete e[l.index];else{var c=a.cells[l.index];if(!c)continue;if(c.height=a.height,c.rowSpan>1){var h=r.length-i,f=c.rowSpan>h?h:c.rowSpan;e[l.index]={cell:c,left:f,row:a}}}}}(e)},e.resizeColumns=i,e.ellipsize=a},964:function(e){if(void 0===t){var n=new Error("Cannot find module 'undefined'");throw n.code="MODULE_NOT_FOUND",n}e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={exports:{}};return e[t].call(a.exports,a,a.exports,r),a.exports}var i={};return function(){var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.Cell=t.Column=t.Row=t.Table=t.CellHookData=t.__drawTable=t.__createTable=t.applyPlugin=void 0;var e=r(340),n=r(776),a=r(664),o=r(972),s=r(260);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return s.Table}});var l=r(172);Object.defineProperty(t,"CellHookData",{enumerable:!0,get:function(){return l.CellHookData}});var u=r(260);function c(t){(0,e.default)(t)}Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return u.Cell}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return u.Column}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return u.Row}}),t.applyPlugin=c,t.__createTable=function(t,e){var r=(0,n.parseInput)(t,e);return(0,o.createTable)(t,r)},t.__drawTable=function(t,e){(0,a.drawTable)(t,e)};try{var h=r(964);h.jsPDF&&(h=h.jsPDF),c(h)}catch(t){}t.default=function(t,e){var r=(0,n.parseInput)(t,e),i=(0,o.createTable)(t,r);(0,a.drawTable)(t,i)}}(),i}()},t.exports=r(function(){try{return n(4058)}catch(t){}}())},4058:function(t,e,n){"use strict";n.r(e),n.d(e,{AcroForm:function(){return de},AcroFormAppearance:function(){return ue},AcroFormButton:function(){return ne},AcroFormCheckBox:function(){return oe},AcroFormChoiceField:function(){return $t},AcroFormComboBox:function(){return te},AcroFormEditBox:function(){return ee},AcroFormListBox:function(){return Qt},AcroFormPasswordField:function(){return le},AcroFormPushButton:function(){return re},AcroFormRadioButton:function(){return ie},AcroFormTextField:function(){return se},GState:function(){return wt},ShadingPattern:function(){return At},TilingPattern:function(){return Nt},default:function(){return hn},jsPDF:function(){return Lt}}),n(4573),n(3710);var r=n(1311),i=Uint8Array,a=Uint16Array,o=Uint32Array,s=new i([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 i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var n=new a(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var i=new o(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return[n,i]},h=c(s,2),f=h[0],d=h[1];f[28]=258,d[258]=28;for(var p=c(l,0),g=p[0],m=p[1],v=new a(32768),b=0;b<32768;++b){var y=(43690&b)>>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,v[b]=((65280&y)>>>8|(255&y)<<8)>>>1}var w=function(t,e,n){for(var r=t.length,i=0,o=new a(e);i<r;++i)++o[t[i]-1];var s,l=new a(e);for(i=0;i<e;++i)l[i]=l[i-1]+o[i-1]<<1;if(n){s=new a(1<<e);var u=15-e;for(i=0;i<r;++i)if(t[i])for(var c=i<<4|t[i],h=e-t[i],f=l[t[i]-1]++<<h,d=f|(1<<h)-1;f<=d;++f)s[v[f]>>>u]=c}else for(s=new a(r),i=0;i<r;++i)s[i]=v[l[t[i]-1]++]>>>15-t[i];return s},x=new i(288);for(b=0;b<144;++b)x[b]=8;for(b=144;b<256;++b)x[b]=9;for(b=256;b<280;++b)x[b]=7;for(b=280;b<288;++b)x[b]=8;var A=new i(32);for(b=0;b<32;++b)A[b]=5;var N=w(x,9,0),L=w(x,9,1),S=w(A,5,0),_=w(A,5,1),P=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},k=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},C=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},F=function(t){return(t/8>>0)+(7&t&&1)},I=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof a?a:t instanceof o?o:i)(n-e);return r.set(t.subarray(e,n)),r},j=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},D=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},O=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var o=n.length,s=n.slice();if(!o)return[new i(0),0];if(1==o){var l=new i(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var u=n[0],c=n[1],h=0,f=1,d=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};f!=o-1;)u=n[n[h].f<n[d].f?h++:d++],c=n[h!=f&&n[h].f<n[d].f?h++:d++],n[f++]={s:-1,f:u.f+c.f,l:u,r:c};var p=s[0].s;for(r=1;r<o;++r)s[r].s>p&&(p=s[r].s);var g=new a(p+1),m=M(n[f-1],g,0);if(m>e){r=0;var v=0,b=m-e,y=1<<b;for(s.sort((function(t,e){return g[e.s]-g[t.s]||t.f-e.f}));r<o;++r){var w=s[r].s;if(!(g[w]>e))break;v+=y-(1<<m-g[w]),g[w]=e}for(v>>>=b;v>0;){var x=s[r].s;g[x]<e?v-=1<<e-g[x]++-1:++r}for(;r>=0&&v;--r){var A=s[r].s;g[A]==e&&(--g[A],++v)}m=e}return[new i(g),m]},M=function(t,e,n){return-1==t.s?Math.max(M(t.l,e,n+1),M(t.r,e,n+1)):e[t.s]=n},B=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new a(++e),r=0,i=t[0],o=1,s=function(t){n[r++]=t},l=1;l<=e;++l)if(t[l]==i&&l!=e)++o;else{if(!i&&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(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=t[l]}return[n.subarray(0,r),e]},T=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},E=function(t,e,n){var r=n.length,i=F(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<r;++a)t[i+a+4]=n[a];return 8*(i+4+r)},R=function(t,e,n,r,i,o,c,h,f,d,p){j(e,p++,n),++i[256];for(var g=O(i,15),m=g[0],v=g[1],b=O(o,15),y=b[0],L=b[1],_=B(m),P=_[0],k=_[1],C=B(y),F=C[0],I=C[1],M=new a(19),R=0;R<P.length;++R)M[31&P[R]]++;for(R=0;R<F.length;++R)M[31&F[R]]++;for(var q=O(M,7),z=q[0],U=q[1],W=19;W>4&&!z[u[W-1]];--W);var H,V,G,Y,J=d+5<<3,X=T(i,x)+T(o,A)+c,K=T(i,m)+T(o,y)+c+14+3*W+T(M,z)+(2*M[16]+3*M[17]+7*M[18]);if(J<=X&&J<=K)return E(e,p,t.subarray(f,f+d));if(j(e,p,1+(K<X)),p+=2,K<X){H=w(m,v,0),V=m,G=w(y,L,0),Y=y;var Z=w(z,U,0);for(j(e,p,k-257),j(e,p+5,I-1),j(e,p+10,W-4),p+=14,R=0;R<W;++R)j(e,p+3*R,z[u[R]]);p+=3*W;for(var $=[P,F],Q=0;Q<2;++Q){var tt=$[Q];for(R=0;R<tt.length;++R){var et=31&tt[R];j(e,p,Z[et]),p+=z[et],et>15&&(j(e,p,tt[R]>>>5&127),p+=tt[R]>>>12)}}}else H=N,V=x,G=S,Y=A;for(R=0;R<h;++R)if(r[R]>255){et=r[R]>>>18&31,D(e,p,H[et+257]),p+=V[et+257],et>7&&(j(e,p,r[R]>>>23&31),p+=s[et]);var nt=31&r[R];D(e,p,G[nt]),p+=Y[nt],nt>3&&(D(e,p,r[R]>>>5&8191),p+=l[nt])}else D(e,p,H[r[R]]),p+=V[r[R]];return D(e,p,H[256]),p+V[256]},q=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new i(0),U=function(t,e,n,r,u){return function(t,e,n,r,u,c){var h=t.length,f=new i(r+h+5*(1+Math.floor(h/7e3))+u),p=f.subarray(r,f.length-u),g=0;if(!e||h<8)for(var v=0;v<=h;v+=65535){var b=v+65535;b<h?g=E(p,g,t.subarray(v,b)):(p[v]=c,g=E(p,g,t.subarray(v,h)))}else{for(var y=q[e-1],w=y>>>13,x=8191&y,A=(1<<n)-1,N=new a(32768),L=new a(A+1),S=Math.ceil(n/3),_=2*S,P=function(e){return(t[e]^t[e+1]<<S^t[e+2]<<_)&A},k=new o(25e3),C=new a(288),j=new a(32),D=0,O=0,M=(v=0,0),B=0,T=0;v<h;++v){var U=P(v),W=32767&v,H=L[U];if(N[W]=H,L[U]=W,B<=v){var V=h-v;if((D>7e3||M>24576)&&V>423){g=R(t,p,0,k,C,j,O,M,T,v-T,g),M=D=O=0,T=v;for(var G=0;G<286;++G)C[G]=0;for(G=0;G<30;++G)j[G]=0}var Y=2,J=0,X=x,K=W-H&32767;if(V>2&&U==P(v-K))for(var Z=Math.min(w,V)-1,$=Math.min(32767,v),Q=Math.min(258,V);K<=$&&--X&&W!=H;){if(t[v+Y]==t[v+Y-K]){for(var tt=0;tt<Q&&t[v+tt]==t[v+tt-K];++tt);if(tt>Y){if(Y=tt,J=K,tt>Z)break;var et=Math.min(K,tt-2),nt=0;for(G=0;G<et;++G){var rt=v-K+G+32768&32767,it=rt-N[rt]+32768&32767;it>nt&&(nt=it,H=rt)}}}K+=(W=H)-(H=N[W])+32768&32767}if(J){k[M++]=268435456|d[Y]<<18|m[J];var at=31&d[Y],ot=31&m[J];O+=s[at]+l[ot],++C[257+at],++j[ot],B=v+Y,++D}else k[M++]=t[v],++C[t[v]]}}g=R(t,p,c,k,C,j,O,M,T,v-T,g),c||(g=E(p,g,z))}return I(f,0,r+F(g)+u)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!u)};function W(t,e){void 0===e&&(e={});var n=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,a=n.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)i+=r+=n[o];r%=65521,i%=65521}t=r,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}}();n.p(t);var r=U(t,e,2,4);return function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)}(r,e),function(t,e,n){for(;n;++e)t[e]=n,n>>>=8}(r,r.length-4,n.d()),r}function H(t,e){return function(t,e,n){var r=t.length,a=!e||n,o=!n||n.i;n||(n={}),e||(e=new i(3*r));var c=function(t){var n=e.length;if(t>n){var r=new i(Math.max(2*n,t));r.set(e),e=r}},h=n.f||0,d=n.p||0,p=n.b||0,m=n.l,v=n.d,b=n.m,y=n.n,x=8*r;do{if(!m){n.f=h=k(t,d,1);var A=k(t,d+1,3);if(d+=3,!A){var N=t[(z=F(d)+4)-4]|t[z-3]<<8,S=z+N;if(S>r){if(o)throw"unexpected EOF";break}a&&c(p+N),e.set(t.subarray(z,S),p),n.b=p+=N,n.p=d=8*S;continue}if(1==A)m=L,v=_,b=9,y=5;else{if(2!=A)throw"invalid block type";var j=k(t,d,31)+257,D=k(t,d+10,15)+4,O=j+k(t,d+5,31)+1;d+=14;for(var M=new i(O),B=new i(19),T=0;T<D;++T)B[u[T]]=k(t,d+3*T,7);d+=3*D;var E=P(B),R=(1<<E)-1;if(!o&&d+O*(E+7)>x)break;var q=w(B,E,1);for(T=0;T<O;){var z,U=q[k(t,d,R)];if(d+=15&U,(z=U>>>4)<16)M[T++]=z;else{var W=0,H=0;for(16==z?(H=3+k(t,d,3),d+=2,W=M[T-1]):17==z?(H=3+k(t,d,7),d+=3):18==z&&(H=11+k(t,d,127),d+=7);H--;)M[T++]=W}}var V=M.subarray(0,j),G=M.subarray(j);b=P(V),y=P(G),m=w(V,b,1),v=w(G,y,1)}if(d>x)throw"unexpected EOF"}a&&c(p+131072);for(var Y=(1<<b)-1,J=(1<<y)-1,X=b+y+18;o||d+X<x;){var K=(W=m[C(t,d)&Y])>>>4;if((d+=15&W)>x)throw"unexpected EOF";if(!W)throw"invalid length/literal";if(K<256)e[p++]=K;else{if(256==K){m=null;break}var Z=K-254;if(K>264){var $=s[T=K-257];Z=k(t,d,(1<<$)-1)+f[T],d+=$}var Q=v[C(t,d)&J],tt=Q>>>4;if(!Q)throw"invalid distance";if(d+=15&Q,G=g[tt],tt>3&&($=l[tt],G+=C(t,d)&(1<<$)-1,d+=$),d>x)throw"unexpected EOF";a&&c(p+131072);for(var et=p+Z;p<et;p+=4)e[p]=e[p-G],e[p+1]=e[p+1-G],e[p+2]=e[p+2-G],e[p+3]=e[p+3-G];p=et}}n.l=m,n.p=d,n.b=p,m&&(h=1,n.m=b,n.d=v,n.n=y)}while(!h);return p==e.length?e:I(e,0,p)}((function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"}(t),t.subarray(2,-4)),e)}var V=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function G(){V.console&&"function"==typeof V.console.log&&V.console.log.apply(V.console,arguments)}var Y={log:G,warn:function(t){V.console&&("function"==typeof V.console.warn?V.console.warn.apply(V.console,arguments):G.call(null,arguments))},error:function(t){V.console&&("function"==typeof V.console.error?V.console.error.apply(V.console,arguments):G(t))}};function J(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Q(r.response,e,n)},r.onerror=function(){Y.error("could not download file")},r.send()}function X(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function K(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 Z,$,Q=V.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.Z)(window))||window!==V?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=V.URL||V.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?X(i.href)?J(t,e,n):K(i,i.target="_blank"):K(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){K(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(X(t))J(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){K(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,r.Z)(e)&&(Y.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,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return J(t,e,n);var a="application/octet-stream"===t.type,o=/constructor/i.test(V.HTMLElement)||V.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.Z)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var u=V.URL||V.webkitURL,c=u.createObjectURL(t);i?i.location=c:location.href=c,i=null,setTimeout((function(){u.revokeObjectURL(c)}),4e4)}});function tt(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)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(t);o&&(e=a(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}}function et(t,e){var n=t[0],r=t[1],i=t[2],a=t[3];n=rt(n,r,i,a,e[0],7,-680876936),a=rt(a,n,r,i,e[1],12,-389564586),i=rt(i,a,n,r,e[2],17,606105819),r=rt(r,i,a,n,e[3],22,-1044525330),n=rt(n,r,i,a,e[4],7,-176418897),a=rt(a,n,r,i,e[5],12,1200080426),i=rt(i,a,n,r,e[6],17,-1473231341),r=rt(r,i,a,n,e[7],22,-45705983),n=rt(n,r,i,a,e[8],7,1770035416),a=rt(a,n,r,i,e[9],12,-1958414417),i=rt(i,a,n,r,e[10],17,-42063),r=rt(r,i,a,n,e[11],22,-1990404162),n=rt(n,r,i,a,e[12],7,1804603682),a=rt(a,n,r,i,e[13],12,-40341101),i=rt(i,a,n,r,e[14],17,-1502002290),n=it(n,r=rt(r,i,a,n,e[15],22,1236535329),i,a,e[1],5,-165796510),a=it(a,n,r,i,e[6],9,-1069501632),i=it(i,a,n,r,e[11],14,643717713),r=it(r,i,a,n,e[0],20,-373897302),n=it(n,r,i,a,e[5],5,-701558691),a=it(a,n,r,i,e[10],9,38016083),i=it(i,a,n,r,e[15],14,-660478335),r=it(r,i,a,n,e[4],20,-405537848),n=it(n,r,i,a,e[9],5,568446438),a=it(a,n,r,i,e[14],9,-1019803690),i=it(i,a,n,r,e[3],14,-187363961),r=it(r,i,a,n,e[8],20,1163531501),n=it(n,r,i,a,e[13],5,-1444681467),a=it(a,n,r,i,e[2],9,-51403784),i=it(i,a,n,r,e[7],14,1735328473),n=at(n,r=it(r,i,a,n,e[12],20,-1926607734),i,a,e[5],4,-378558),a=at(a,n,r,i,e[8],11,-2022574463),i=at(i,a,n,r,e[11],16,1839030562),r=at(r,i,a,n,e[14],23,-35309556),n=at(n,r,i,a,e[1],4,-1530992060),a=at(a,n,r,i,e[4],11,1272893353),i=at(i,a,n,r,e[7],16,-155497632),r=at(r,i,a,n,e[10],23,-1094730640),n=at(n,r,i,a,e[13],4,681279174),a=at(a,n,r,i,e[0],11,-358537222),i=at(i,a,n,r,e[3],16,-722521979),r=at(r,i,a,n,e[6],23,76029189),n=at(n,r,i,a,e[9],4,-640364487),a=at(a,n,r,i,e[12],11,-421815835),i=at(i,a,n,r,e[15],16,530742520),n=ot(n,r=at(r,i,a,n,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ot(a,n,r,i,e[7],10,1126891415),i=ot(i,a,n,r,e[14],15,-1416354905),r=ot(r,i,a,n,e[5],21,-57434055),n=ot(n,r,i,a,e[12],6,1700485571),a=ot(a,n,r,i,e[3],10,-1894986606),i=ot(i,a,n,r,e[10],15,-1051523),r=ot(r,i,a,n,e[1],21,-2054922799),n=ot(n,r,i,a,e[8],6,1873313359),a=ot(a,n,r,i,e[15],10,-30611744),i=ot(i,a,n,r,e[6],15,-1560198380),r=ot(r,i,a,n,e[13],21,1309151649),n=ot(n,r,i,a,e[4],6,-145523070),a=ot(a,n,r,i,e[11],10,-1120210379),i=ot(i,a,n,r,e[2],15,718787259),r=ot(r,i,a,n,e[9],21,-343485551),t[0]=pt(n,t[0]),t[1]=pt(r,t[1]),t[2]=pt(i,t[2]),t[3]=pt(a,t[3])}function nt(t,e,n,r,i,a){return e=pt(pt(e,t),pt(r,a)),pt(e<<i|e>>>32-i,n)}function rt(t,e,n,r,i,a,o){return nt(e&n|~e&r,t,e,i,a,o)}function it(t,e,n,r,i,a,o){return nt(e&r|n&~r,t,e,i,a,o)}function at(t,e,n,r,i,a,o){return nt(e^n^r,t,e,i,a,o)}function ot(t,e,n,r,i,a,o){return nt(n^(e|~r),t,e,i,a,o)}function st(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)et(r,lt(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(et(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,et(r,i),r}function lt(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}Z=V.atob.bind(V),$=V.btoa.bind(V);var ut="0123456789abcdef".split("");function ct(t){for(var e="",n=0;n<4;n++)e+=ut[t>>8*n+4&15]+ut[t>>8*n&15];return e}function ht(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function ft(t){return st(t).map(ht).join("")}var dt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=ct(t[e]);return t.join("")}(st("hello"));function pt(t,e){if(dt){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function gt(t,e){var n,r,i,a;if(t!==n){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+o.charCodeAt(l))%256,s[l]=s[u],s[u]=c}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(l=0;l<h;l++)d=(d+(c=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=c,o=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(l)^o);return p}var mt={print:4,modify:8,copy:16,"annot-forms":32};function vt(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==mt.perm)throw new Error("Invalid permission: "+t);i+=mt[t]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=ft(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=gt(this.encryptionKey,this.padding)}function bt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function yt(t){if("object"!==(0,r.Z)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},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 r=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[n]){var o=e[n][a];try{o[0].apply(t,r)}catch(n){V.console&&Y.error("jsPDF PubSub Error",n.message,n)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function wt(t){if(!(this instanceof wt))return new wt(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 xt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function At(t,e,n,r,i){if(!(this instanceof At))return new At(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,xt.call(this,r,i)}function Nt(t,e,n,r,i){if(!(this instanceof Nt))return new Nt(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,xt.call(this,r,i)}function Lt(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],s=[],l=1,u=16,c="S",h=null;"object"===(0,r.Z)(t=t||{})&&(n=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,null!==(h=t.encryption||null)&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),c=t.defaultPathOperation||"S"),s=t.filters||(!0===o?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=yt;var g="1.3",m=p.__private__.getPdfVersion=function(){return g};p.__private__.setPdfVersion=function(t){g=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]};a=a||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},w=y.COMPAT;function x(){this.saveGraphicsState(),it(new Vt(_t,0,0,-_t,0,qn()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),c="n",w=y.ADVANCED}function A(){this.restoreGraphicsState(),c="S",w=y.COMPAT}var N=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===y.COMPAT;return e&&x.call(this),"function"!=typeof t||(t(this),e&&A.call(this)),this},p.compatAPI=function(t){var e=w===y.ADVANCED;return e&&A.call(this),"function"!=typeof t||(t(this),e&&x.call(this)),this},p.isAdvancedAPI=function(){return w===y.ADVANCED};var L,S=function(t){if(w!==y.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},_=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};L=p.hpf=p.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return _(t,u)}:"smart"===u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return _(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return _(t,16)};var P=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return _(t,2)},k=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return _(t,3)},C=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return w===y.COMPAT?t*_t:w===y.ADVANCED?t:void 0},F=function(t){return w===y.COMPAT?qn()-t:w===y.ADVANCED?t:void 0},I=function(t){return C(F(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var j,D="00000000000000000000000000000000",O=p.__private__.getFileId=function(){return D},M=p.__private__.setFileId=function(t){return D=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():D.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==h&&(Ye=new vt(h.userPermissions,h.userPassword,h.ownerPassword,D)),D};p.setFileId=function(t){return M(t),this},p.getFileId=function(){return O()};var B=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[n,z(r),"'",z(i),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),a].join("")},T=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,a,o,0)},E=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=B(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 j=e},R=p.__private__.getCreationDate=function(t){var e=j;return"jsDate"===t&&(e=T(j)),e};p.setCreationDate=function(t){return E(t),this},p.getCreationDate=function(t){return R(t)};var q,z=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},U=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},W=0,H=[],G=[],J=0,X=[],K=[],Z=!1,et=G,nt=function(){W=0,J=0,G=[],H=[],X=[],Qt=Kt(),te=Kt()};p.__private__.setCustomOutputDestination=function(t){Z=!0,et=t};var rt=function(t){Z||(et=t)};p.__private__.resetCustomOutputDestination=function(){Z=!1,et=G};var it=p.__private__.out=function(t){return t=t.toString(),J+=t.length+1,et.push(t),et},at=p.__private__.write=function(t){return it(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},ot=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},st=[["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 st};var lt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return lt=w===y.ADVANCED?t/_t:t,this};var ut,ct=p.__private__.getFontSize=p.getFontSize=function(){return w===y.COMPAT?lt:lt*_t},ht=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return ht=t,this},p.__private__.getR2L=p.getR2L=function(){return ht};var ft,dt=p.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))ut=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.');ut=t}else ut=parseInt(t,10)};p.__private__.getZoomMode=function(){return ut};var pt,gt=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.');ft=t};p.__private__.getPageMode=function(){return ft};var mt=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.');pt=t};p.__private__.getLayoutMode=function(){return pt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return dt(t),mt(e),gt(n),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[t]},p.__private__.getDocumentProperties=function(){return xt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in xt)xt.hasOwnProperty(e)&&t[e]&&(xt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[t]=e};var St,_t,Pt,kt,Ct,Ft={},It={},jt=[],Dt={},Ot={},Mt={},Bt={},Tt=null,Et=0,Rt=[],qt=new yt(p),zt=t.hotfixes||[],Ut={},Wt={},Ht=[],Vt=function t(e,n,r,i,a,o){if(!(this instanceof t))return new t(e,n,r,i,a,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,n,r,i,a,o]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(L).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,n,r,i,a,o)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Vt(o,0,0,l,0,0),translate:new Vt(1,0,0,1,i,a),rotate:new Vt(t,e,-e,t,0,0),skew:new Vt(1,0,s,1,0,0)}},Vt.prototype.toString=function(t){return this.join(" ")},Vt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=1/(t*r-e*n),s=r*o,l=-e*o,u=-n*o,c=t*o;return new Vt(s,l,u,c,-s*i-u*a,-l*i-c*a)},Vt.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 jn(e,n)},Vt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new jn(t.x+t.w,t.y+t.h));return new Dn(e.x,e.y,n.x-e.x,n.y-e.y)},Vt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty;return new Vt(t,e,n,r,i,a)},p.Matrix=Vt;var Gt=p.matrixMult=function(t,e){return e.multiply(t)},Yt=new Vt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Yt;var Jt=function(t,e){if(!Ot[t]){var n=(e instanceof At?"Sh":"P")+(Object.keys(Dt).length+1).toString(10);e.id=n,Ot[t]=n,Dt[n]=e,qt.publish("addPattern",e)}};p.ShadingPattern=At,p.TilingPattern=Nt,p.addShadingPattern=function(t,e){return S("addShadingPattern()"),Jt(t,e),this},p.beginTilingPattern=function(t){S("beginTilingPattern()"),Mn(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){S("endTilingPattern()"),e.stream=K[q].join("\n"),Jt(t,e),qt.publish("endTilingPattern",e),Ht.pop().restore()};var Xt=p.__private__.newObject=function(){var t=Kt();return Zt(t,!0),t},Kt=p.__private__.newObjectDeferred=function(){return W++,H[W]=function(){return J},W},Zt=function(t,e){return e="boolean"==typeof e&&e,H[t]=J,e&&it(t+" 0 obj"),t},$t=p.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return X.push(t),t},Qt=Kt(),te=Kt(),ee=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 r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},ne=p.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,a=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 tt(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&n===i&&i===a)e="string"==typeof n?n+" "+s[0]:2===t.precision?P(n/255)+" "+s[0]:k(n/255)+" "+s[0];else if(void 0===o||"object"===(0,r.Z)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof n?[n,i,a,s[1]].join(" "):2===t.precision?[P(n/255),P(i/255),P(a/255),s[1]].join(" "):[k(n/255),k(i/255),k(a/255),s[1]].join(" ")}else e="string"==typeof n?[n,i,a,o,s[2]].join(" "):2===t.precision?[P(n),P(i),P(a),P(o),s[2]].join(" "):[k(n),k(i),k(a),k(o),s[2]].join(" ");return e},re=p.__private__.getFilters=function(){return s},ie=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==h&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==h&&(s=Ye.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],c=(l=void 0!==Lt.API.processDataByFilters?Lt.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var f=0;f<u.length;f+=1)if("DecodeParms"===u[f].key){for(var d=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)d.push("null");d.push(u[f].value),u[f].value="["+d.join(" ")+"]"}}it("<<");for(var g=0;g<u.length;g++)it("/"+u[g].key+" "+u[g].value);it(">>"),0!==l.data.length&&(it("stream"),it(s(l.data)),it("endstream"))},ae=p.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Zt(r,!0),it("<</Type /Page"),it("/Parent "+t.rootDictionaryObjId+" 0 R"),it("/Resources "+t.resourceDictionaryObjId+" 0 R"),it("/MediaBox ["+parseFloat(L(t.mediaBox.bottomLeftX))+" "+parseFloat(L(t.mediaBox.bottomLeftY))+" "+L(t.mediaBox.topRightX)+" "+L(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&it("/CropBox ["+L(t.cropBox.bottomLeftX)+" "+L(t.cropBox.bottomLeftY)+" "+L(t.cropBox.topRightX)+" "+L(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&it("/BleedBox ["+L(t.bleedBox.bottomLeftX)+" "+L(t.bleedBox.bottomLeftY)+" "+L(t.bleedBox.topRightX)+" "+L(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&it("/TrimBox ["+L(t.trimBox.bottomLeftX)+" "+L(t.trimBox.bottomLeftY)+" "+L(t.trimBox.topRightX)+" "+L(t.trimBox.topRightY)+"]"),null!==t.artBox&&it("/ArtBox ["+L(t.artBox.bottomLeftX)+" "+L(t.artBox.bottomLeftY)+" "+L(t.artBox.topRightX)+" "+L(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&it("/UserUnit "+t.userUnit),qt.publish("putPage",{objId:r,pageContext:Rt[e],pageNumber:e,page:n}),it("/Contents "+i+" 0 R"),it(">>"),it("endobj");var a=n.join("\n");return w===y.ADVANCED&&(a+="\nQ"),Zt(i,!0),ie({data:a,filters:re(),objectId:i}),it("endobj"),r},oe=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Et;t++)Rt[t].objId=Kt(),Rt[t].contentsObjId=Kt();for(t=1;t<=Et;t++)n.push(ae({number:t,data:K[t],objId:Rt[t].objId,contentsObjId:Rt[t].contentsObjId,mediaBox:Rt[t].mediaBox,cropBox:Rt[t].cropBox,bleedBox:Rt[t].bleedBox,trimBox:Rt[t].trimBox,artBox:Rt[t].artBox,userUnit:Rt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));Zt(Qt,!0),it("<</Type /Pages");var r="/Kids [";for(e=0;e<Et;e++)r+=n[e]+" 0 R ";it(r+"]"),it("/Count "+Et),it(">>"),it("endobj"),qt.publish("postPutPages")},se=function(t){qt.publish("putFont",{font:t,out:it,newObject:Xt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),it("<<"),it("/Type /Font"),it("/BaseFont /"+bt(t.postScriptName)),it("/Subtype /Type1"),"string"==typeof t.encoding&&it("/Encoding /"+t.encoding),it("/FirstChar 32"),it("/LastChar 255"),it(">>"),it("endobj"))},le=function(){for(var t in Ft)Ft.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(Ft[t])},ue=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[L(t.x),L(t.y),L(t.x+t.width),L(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),it("endobj")},ce=function(){for(var t in Ut)Ut.hasOwnProperty(t)&&ue(Ut[t])},he=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}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,u=0;u<r.length;u++){for(n=r[u];n>t[l+1].offset;)l++;var c=t[l].offset,h=(n-c)/(t[l+1].offset-c),f=t[l].color,d=t[l+1].color;s+=U(Math.round((1-h)*f[0]+h*d[0]).toString(16))+U(Math.round((1-h)*f[1]+h*d[1]).toString(16))+U(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()},fe=function(t,e){e||(e=21);var n=Xt(),r=he(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),it("endobj"),t.objectNumber=Xt(),it("<< /ShadingType "+t.type),it("/ColorSpace /DeviceRGB");var a="/Coords ["+L(parseFloat(t.coords[0]))+" "+L(parseFloat(t.coords[1]))+" ";2===t.type?a+=L(parseFloat(t.coords[2]))+" "+L(parseFloat(t.coords[3])):a+=L(parseFloat(t.coords[2]))+" "+L(parseFloat(t.coords[3]))+" "+L(parseFloat(t.coords[4]))+" "+L(parseFloat(t.coords[5])),it(a+="]"),t.matrix&&it("/Matrix ["+t.matrix.toString()+"]"),it("/Function "+n+" 0 R"),it("/Extend [true true]"),it(">>"),it("endobj")},de=function(t,e){var n=Kt(),r=Xt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(L).join(" ")+"]"}),i.push({key:"XStep",value:L(t.xStep)}),i.push({key:"YStep",value:L(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),it("endobj")},pe=function(t){var e;for(e in Dt)Dt.hasOwnProperty(e)&&(Dt[e]instanceof At?fe(Dt[e]):Dt[e]instanceof Nt&&de(Dt[e],t))},ge=function(t){for(var e in t.objectNumber=Xt(),it("<<"),t)switch(e){case"opacity":it("/ca "+P(t[e]));break;case"stroke-opacity":it("/CA "+P(t[e]))}it(">>"),it("endobj")},me=function(){var t;for(t in Mt)Mt.hasOwnProperty(t)&&ge(Mt[t])},ve=function(){for(var t in it("/XObject <<"),Ut)Ut.hasOwnProperty(t)&&Ut[t].objectNumber>=0&&it("/"+t+" "+Ut[t].objectNumber+" 0 R");qt.publish("putXobjectDict"),it(">>")},be=function(){Ye.oid=Xt(),it("<<"),it("/Filter /Standard"),it("/V "+Ye.v),it("/R "+Ye.r),it("/U <"+Ye.toHexString(Ye.U)+">"),it("/O <"+Ye.toHexString(Ye.O)+">"),it("/P "+Ye.P),it(">>"),it("endobj")},ye=function(){for(var t in it("/Font <<"),Ft)Ft.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&it("/"+t+" "+Ft[t].objectNumber+" 0 R");it(">>")},we=function(){if(Object.keys(Dt).length>0){for(var t in it("/Shading <<"),Dt)Dt.hasOwnProperty(t)&&Dt[t]instanceof At&&Dt[t].objectNumber>=0&&it("/"+t+" "+Dt[t].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),it(">>")}},xe=function(t){if(Object.keys(Dt).length>0){for(var e in it("/Pattern <<"),Dt)Dt.hasOwnProperty(e)&&Dt[e]instanceof p.TilingPattern&&Dt[e].objectNumber>=0&&Dt[e].objectNumber<t&&it("/"+e+" "+Dt[e].objectNumber+" 0 R");qt.publish("putTilingPatternDict"),it(">>")}},Ae=function(){if(Object.keys(Mt).length>0){var t;for(t in it("/ExtGState <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&it("/"+t+" "+Mt[t].objectNumber+" 0 R");qt.publish("putGStateDict"),it(">>")}},Ne=function(t){Zt(t.resourcesOid,!0),it("<<"),it("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),xe(t.objectOid),Ae(),ve(),it(">>"),it("endobj")},Le=function(){var t=[];le(),me(),ce(),pe(t),qt.publish("putResources"),t.forEach(Ne),Ne({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources")},Se=function(){qt.publish("putAdditionalObjects");for(var t=0;t<X.length;t++){var e=X[t];Zt(e.objId,!0),it(e.content),it("endobj")}qt.publish("postPutAdditionalObjects")},_e=function(t){It[t.fontName]=It[t.fontName]||{},It[t.fontName][t.fontStyle]=t.id},Pe=function(t,e,n,r,i){var a={id:"F"+(Object.keys(Ft).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return qt.publish("addFont",{font:a,instance:this}),Ft[a.id]=a,_e(a),a.id},ke=function(t){for(var e=0,n=st.length;e<n;e++){var r=Pe.call(this,t[e][0],t[e][1],t[e][2],st[e][3],!0);!1===f&&(d[r]=!0);var i=t[e][0].split("-");_e({id:r,fontName:i[0],fontStyle:i[1]||""})}qt.publish("addFonts",{fonts:Ft,dictionary:It})},Ce=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!V.console)throw new Error(n);V.console.error(n,t),V.alert&&alert(n)}},t.foo.bar=t,t.foo},Fe=function(t,e){var n,r,i,a,o,s,l,u,c;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&Ft[St].metadata&&Ft[St].metadata[i]&&Ft[St].metadata[i].encoding&&(a=Ft[St].metadata[i].encoding,!o&&Ft[St].encoding&&(o=Ft[St].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(l=!1,s=[],n=0,r=t.length;n<r;n++)(u=o[t.charCodeAt(n)])?s.push(String.fromCharCode(u)):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,r=t.length;n<r;n++){if((c=(u=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(c),s.push(u-(c<<8))}return String.fromCharCode.apply(void 0,s)},Ie=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return Fe(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},je=p.__private__.beginPage=function(t){K[++Et]=[],Rt[Et]={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])}},Me(Et),rt(K[q])},De=function(t,e){var r,i,o;switch(n=e||n,"string"==typeof t&&(r=b(t.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(t)&&(i=t[0]*_t,o=t[1]*_t),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(Y.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),a=[i,o],n.substr(0,1)){case"l":o>i&&(a=[o,i]);break;case"p":i>o&&(a=[o,i])}je(a),gn(dn),it(Nn),0!==Cn&&it(Cn+" J"),0!==Fn&&it(Fn+" j"),qt.publish("addPage",{pageNumber:Et})},Oe=function(t){t>0&&t<=Et&&(K.splice(t,1),Rt.splice(t,1),Et--,q>Et&&(q=Et),this.setPage(q))},Me=function(t){t>0&&t<=Et&&(q=t)},Be=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return K.length-1},Te=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Ft[St].fontName,e=void 0!==e?e:Ft[St].fontStyle,r=t.toLowerCase(),void 0!==It[r]&&void 0!==It[r][e]?i=It[r][e]:void 0!==It[t]&&void 0!==It[t][e]?i=It[t][e]:!1===n.disableWarning&&Y.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=It.times[e])&&(i=It.times.normal),i},Ee=p.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var n in null!==h&&(e=Ye.encryptor(t,0)),it("<<"),it("/Producer ("+Ie(e("jsPDF "+Lt.version))+")"),xt)xt.hasOwnProperty(n)&&xt[n]&&it("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Ie(e(xt[n]))+")");it("/CreationDate ("+Ie(e(j))+")"),it(">>"),it("endobj")},Re=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Xt(),it("<<"),it("/Type /Catalog"),it("/Pages "+e+" 0 R"),ut||(ut="fullwidth"),ut){case"fullwidth":it("/OpenAction [3 0 R /FitH null]");break;case"fullheight":it("/OpenAction [3 0 R /FitV null]");break;case"fullpage":it("/OpenAction [3 0 R /Fit]");break;case"original":it("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ut;"%"===n.substr(n.length-1)&&(ut=parseInt(ut)/100),"number"==typeof ut&&it("/OpenAction [3 0 R /XYZ null null "+P(ut)+"]")}switch(pt||(pt="continuous"),pt){case"continuous":it("/PageLayout /OneColumn");break;case"single":it("/PageLayout /SinglePage");break;case"two":case"twoleft":it("/PageLayout /TwoColumnLeft");break;case"tworight":it("/PageLayout /TwoColumnRight")}ft&&it("/PageMode /"+ft),qt.publish("putCatalog"),it(">>"),it("endobj")},qe=p.__private__.putTrailer=function(){it("trailer"),it("<<"),it("/Size "+(W+1)),it("/Root "+W+" 0 R"),it("/Info "+(W-1)+" 0 R"),null!==h&&it("/Encrypt "+Ye.oid+" 0 R"),it("/ID [ <"+D+"> <"+D+"> ]"),it(">>")},ze=p.__private__.putHeader=function(){it("%PDF-"+g),it("%ºß¬à")},Ue=p.__private__.putXRef=function(){var t="0000000000";it("xref"),it("0 "+(W+1)),it("0000000000 65535 f ");for(var e=1;e<=W;e++)"function"==typeof H[e]?it((t+H[e]()).slice(-10)+" 00000 n "):void 0!==H[e]?it((t+H[e]).slice(-10)+" 00000 n "):it("0000000000 00000 n ")},We=p.__private__.buildDocument=function(){nt(),rt(G),qt.publish("buildDocument"),ze(),oe(),Se(),Le(),null!==h&&be(),Ee(),Re();var t=J;return Ue(),qe(),it("startxref"),it(""+t),it("%%EOF"),rt(K[q]),G.join("\n")},He=p.__private__.getBlob=function(t){return new Blob([ot(t)],{type:"application/pdf"})},Ve=p.output=p.__private__.output=Ce((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return We();case"save":p.save(e.filename);break;case"arraybuffer":return ot(We());case"blob":return He(We());case"bloburi":case"bloburl":if(void 0!==V.URL&&"function"==typeof V.URL.createObjectURL)return V.URL&&V.URL.createObjectURL(He(We()))||void 0;Y.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=We();try{n=$(r)}catch(t){n=$(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(V)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,a="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+i+'"'+a+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=V.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(V)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',u=V.open();if(null!==u){u.document.write(l);var c=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=e.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(V))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var h='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',f=V.open();if(null!==f&&(f.document.write(h),f.document.title=e.filename),f||"undefined"==typeof safari)return f;break;case"datauri":case"dataurl":return V.document.location.href=this.output("datauristring",e);default:return null}})),Ge=function(t){return!0===Array.isArray(zt)&&zt.indexOf(t)>-1};switch(i){case"pt":_t=1;break;case"mm":_t=72/25.4;break;case"cm":_t=72/2.54;break;case"in":_t=72;break;case"px":_t=1==Ge("px_scaling")?.75:96/72;break;case"pc":case"em":_t=12;break;case"ex":_t=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);_t=i}var Ye=null;E(),M();var Je=function(t){return null!==h?Ye.encryptor(t,0):function(t){return t}},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:Rt[t].objId,pageNumber:t,pageContext:Rt[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 Rt)if(Rt[e].objId===t)break;return Xe(e)},Ze=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Rt[q].objId,pageNumber:q,pageContext:Rt[q]}};p.addPage=function(){return De.apply(this,arguments),this},p.setPage=function(){return Me.apply(this,arguments),rt.call(this,K[q]),this},p.insertPage=function(t){return this.addPage(),this.movePage(q,t),this},p.movePage=function(t,e){var n,r;if(t>e){n=K[t],r=Rt[t];for(var i=t;i>e;i--)K[i]=K[i-1],Rt[i]=Rt[i-1];K[e]=n,Rt[e]=r,this.setPage(e)}else if(t<e){n=K[t],r=Rt[t];for(var a=t;a<e;a++)K[a]=K[a+1],Rt[a]=Rt[a+1];K[e]=n,Rt[e]=r,this.setPage(e)}return this},p.deletePage=function(){return Oe.apply(this,arguments),this},p.__private__.text=p.text=function(t,e,n,i,a){var o,s,l,u,c,h,f,p,g,m=(i=i||{}).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 Vt==0?(l=arguments[4],u=arguments[5],"object"===(0,r.Z)(f=arguments[3])&&null!==f||("string"==typeof l&&(u=l,l=null),"string"==typeof f&&(u=f,f=null),"number"==typeof f&&(l=f,f=null),i={flags:f,angle:l,align:u})):(S("The transform parameter of text() with a Matrix value"),g=a),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return m;var b="",x=!1,A="number"==typeof i.lineHeightFactor?i.lineHeightFactor:fn,N=m.internal.scaleFactor;function _(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),Ie(t,f)}function P(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function k(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,a=t.concat(),o=[],s=a.length;s--;)"string"==typeof(r=a.shift())?o.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),o.push([i[0],i[1],i[2]]));n=o}return n}var F=!1,I=!0;if("string"==typeof t)F=!0;else if(Array.isArray(t)){var j=t.concat();s=[];for(var D,O=j.length;O--;)("string"!=typeof(D=j.shift())||Array.isArray(D)&&"string"!=typeof D[0])&&(I=!1);F=I}if(!1===F)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 M=lt/m.internal.scaleFactor,B=M*(A-1);switch(i.baseline){case"bottom":n-=B;break;case"top":n+=M-B;break;case"hanging":n+=M-2*B;break;case"middle":n+=M/2-B}if((h=i.maxWidth||0)>0&&("string"==typeof t?t=m.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(m.splitTextToSize(e,h))}),[]))),o={text:t,x:e,y:n,options:i,mutex:{pdfEscape:Ie,activeFontKey:St,fonts:Ft,activeFontSize:lt}},qt.publish("preProcessText",o),t=o.text,l=(i=o.options).angle,g instanceof Vt==0&&l&&"number"==typeof l){l*=Math.PI/180,0===i.rotationDirection&&(l=-l),w===y.ADVANCED&&(l=-l);var T=Math.cos(l),E=Math.sin(l);g=new Vt(T,E,-E,T,0,0)}else l&&l instanceof Vt&&(g=l);w!==y.ADVANCED||g||(g=Yt),void 0!==(c=i.charSpace||Pn)&&(b+=L(C(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=i.horizontalScale)&&(b+=L(100*p)+" Tz\n"),i.lang;var R=-1,q=void 0!==i.renderingMode?i.renderingMode:i.stroke,z=m.internal.getCurrentPageInfo().pageContext;switch(q){case 0:case!1:case"fill":R=0;break;case 1:case!0:case"stroke":R=1;break;case 2:case"fillThenStroke":R=2;break;case 3:case"invisible":R=3;break;case 4:case"fillAndAddForClipping":R=4;break;case 5:case"strokeAndAddPathForClipping":R=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":R=6;break;case 7:case"addToPathForClipping":R=7}var U=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==R?b+=R+" Tr\n":-1!==U&&(b+="0 Tr\n"),-1!==R&&(z.usedRenderingMode=R),u=i.align||"left";var W,H=lt*A,V=m.internal.pageSize.getWidth(),G=Ft[St];c=i.charSpace||Pn,h=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var Y=[];if("[object Array]"===Object.prototype.toString.call(t)){var J;s=P(t),"left"!==u&&(W=s.map((function(t){return m.getStringUnitWidth(t,{font:G,charSpace:c,fontSize:lt,doKerning:!1})*lt/N})));var X,K=0;if("right"===u){e-=W[0],t=[],O=s.length;for(var Z=0;Z<O;Z++)0===Z?(X=yn(e),J=wn(n)):(X=C(K-W[Z]),J=-H),t.push([s[Z],X,J]),K=W[Z]}else if("center"===u){e-=W[0]/2,t=[],O=s.length;for(var $=0;$<O;$++)0===$?(X=yn(e),J=wn(n)):(X=C((K-W[$])/2),J=-H),t.push([s[$],X,J]),K=W[$]}else if("left"===u){t=[],O=s.length;for(var Q=0;Q<O;Q++)t.push(s[Q])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],O=s.length,h=0!==h?h:V;for(var tt=0;tt<O;tt++)J=0===tt?wn(n):-H,X=0===tt?yn(e):0,tt<O-1?Y.push(L(C((h-W[tt])/(s[tt].split(" ").length-1)))):Y.push(0),t.push([s[tt],X,J])}}var et="boolean"==typeof i.R2L?i.R2L:ht;!0===et&&(t=k(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:i,mutex:{pdfEscape:Ie,activeFontKey:St,fonts:Ft,activeFontSize:lt}},qt.publish("postProcessText",o),t=o.text,x=o.mutex.isHex||!1;var nt=Ft[St].encoding;"WinAnsiEncoding"!==nt&&"StandardEncoding"!==nt||(t=k(t,(function(t,e,n){return[_(t),e,n]}))),s=P(t),t=[];for(var rt,at,ot,st=0,ut=1,ct=Array.isArray(s[0])?ut:st,ft="",dt=function(t,e,n){var r="";return n instanceof Vt?(n="number"==typeof i.angle?Gt(n,new Vt(1,0,0,1,t,e)):Gt(new Vt(1,0,0,1,t,e),n),w===y.ADVANCED&&(n=Gt(new Vt(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=L(t)+" "+L(e)+" Td\n",r},pt=0;pt<s.length;pt++){switch(ft="",ct){case ut:ot=(x?"<":"(")+s[pt][0]+(x?">":")"),rt=parseFloat(s[pt][1]),at=parseFloat(s[pt][2]);break;case st:ot=(x?"<":"(")+s[pt]+(x?">":")"),rt=yn(e),at=wn(n)}void 0!==Y&&void 0!==Y[pt]&&(ft=Y[pt]+" Tw\n"),0===pt?t.push(ft+dt(rt,at,g)+ot):ct===st?t.push(ft+ot):ct===ut&&t.push(ft+dt(rt,at,g)+ot)}t=ct===st?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var gt="BT\n/";return gt+=St+" "+lt+" Tf\n",gt+=L(lt*A)+" TL\n",gt+=Sn+"\n",gt+=b,gt+=t,it(gt+="ET"),d[St]=!0,m};var $e=p.__private__.clip=p.clip=function(t){return it("evenodd"===t?"W*":"W"),this};p.clipEvenOdd=function(){return $e("evenodd")},p.__private__.discardPath=p.discardPath=function(){return it("n"),this};var Qe=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 Qe(t)&&(c=t),this};var tn=p.__private__.getStyle=p.getStyle=function(t){var e=c;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},en=p.close=function(){return it("h"),this};p.stroke=function(){return it("S"),this},p.fill=function(t){return nn("f",t),this},p.fillEvenOdd=function(t){return nn("f*",t),this},p.fillStroke=function(t){return nn("B",t),this},p.fillStrokeEvenOdd=function(t){return nn("B*",t),this};var nn=function(t,e){"object"===(0,r.Z)(e)?on(e,t):it(t)},rn=function(t){null===t||w===y.ADVANCED&&void 0===t||(t=tn(t),it(t))};function an(t,e,n,r,i){var a=new Nt(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);a.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Jt(o,a),a}var on=function(t,e){var n=Ot[t.key],r=Dt[n];if(r instanceof At)it("q"),it(sn(e)),r.gState&&p.setGState(r.gState),it(t.matrix.toString()+" cm"),it("/"+n+" sh"),it("Q");else if(r instanceof Nt){var i=new Vt(1,0,0,-1,0,qn());t.matrix&&(i=i.multiply(t.matrix||Yt),n=an.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),it("q"),it("/Pattern cs"),it("/"+n+" scn"),r.gState&&p.setGState(r.gState),it(e),it("Q")}},sn=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"}},ln=p.moveTo=function(t,e){return it(L(C(t))+" "+L(I(e))+" m"),this},un=p.lineTo=function(t,e){return it(L(C(t))+" "+L(I(e))+" l"),this},cn=p.curveTo=function(t,e,n,r,i,a){return it([L(C(t)),L(I(e)),L(C(n)),L(I(r)),L(C(i)),L(I(a)),"c"].join(" ")),this};p.__private__.line=p.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.line");return w===y.COMPAT?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},p.__private__.lines=p.lines=function(t,e,n,r,i,a){var o,s,l,u,c,h,f,d,p,g,m,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),r=r||[1,1],a=a||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Qe(i)||"boolean"!=typeof a)throw new Error("Invalid arguments passed to jsPDF.lines");for(ln(e,n),o=r[0],s=r[1],u=t.length,g=e,m=n,l=0;l<u;l++)2===(c=t[l]).length?(g=c[0]*o+g,m=c[1]*s+m,un(g,m)):(h=c[0]*o+g,f=c[1]*s+m,d=c[2]*o+g,p=c[3]*s+m,g=c[4]*o+g,m=c[5]*s+m,cn(h,f,d,p,g,m));return a&&en(),rn(i),this},p.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":ln(r[0],r[1]);break;case"l":un(r[0],r[1]);break;case"c":cn.apply(this,r);break;case"h":en()}}return this},p.__private__.rect=p.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.rect");return w===y.COMPAT&&(r=-r),it([L(C(t)),L(I(e)),L(C(n)),L(C(r)),"re"].join(" ")),rn(i),this},p.__private__.triangle=p.triangle=function(t,e,n,r,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,a-r],[t-i,e-a]],t,e,[1,1],o,!0),this},p.__private__.roundedRect=p.roundedRect=function(t,e,n,r,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Qe(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),a=Math.min(a,.5*r),this.lines([[n-2*i,0],[i*s,0,i,a-a*s,i,a],[0,r-2*a],[0,a*s,-i*s,a,-i,a],[2*i-n,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-r],[0,-a*s,i*s,-a,i,-a]],t+i,e,[1,1],o,!0),this},p.__private__.ellipse=p.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var a=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return ln(t+n,e),cn(t+n,e-o,t+a,e-r,t,e-r),cn(t-a,e-r,t-n,e-o,t-n,e),cn(t-n,e+o,t-a,e+r,t,e+r),cn(t+a,e+r,t+n,e+o,t+n,e),rn(i),this},p.__private__.circle=p.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Qe(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},p.setFont=function(t,e,n){return n&&(e=N(e,n)),St=Te(t,e,{disableWarning:!1}),this};var hn=p.__private__.getFont=p.getFont=function(){return Ft[Te.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var t,e,n={};for(t in It)if(It.hasOwnProperty(t))for(e in n[t]=[],It[t])It[t].hasOwnProperty(e)&&n[t].push(e);return n},p.addFont=function(t,e,n,r,i){var a=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==a.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==a.indexOf(arguments[3])&&(n=N(n,r)),i=i||"Identity-H",Pe.call(this,t,e,n,i)};var fn,dn=t.lineWidth||.200025,pn=p.__private__.getLineWidth=p.getLineWidth=function(){return dn},gn=p.__private__.setLineWidth=p.setLineWidth=function(t){return dn=t,it(L(C(t))+" w"),this};p.__private__.setLineDash=Lt.API.setLineDash=Lt.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 L(C(t))})).join(" "),e=L(C(e)),it("["+t+"] "+e+" d"),this};var mn=p.__private__.getLineHeight=p.getLineHeight=function(){return lt*fn};p.__private__.getLineHeight=p.getLineHeight=function(){return lt*fn};var vn=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(fn=t),this},bn=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return fn};vn(t.lineHeight);var yn=p.__private__.getHorizontalCoordinate=function(t){return C(t)},wn=p.__private__.getVerticalCoordinate=function(t){return w===y.ADVANCED?t:Rt[q].mediaBox.topRightY-Rt[q].mediaBox.bottomLeftY-C(t)},xn=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(t){return L(yn(t))},An=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(t){return L(wn(t))},Nn=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ee(Nn)},p.__private__.setStrokeColor=p.setDrawColor=function(t,e,n,r){return Nn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),it(Nn),this};var Ln=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ee(Ln)},p.__private__.setFillColor=p.setFillColor=function(t,e,n,r){return Ln=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),it(Ln),this};var Sn=t.textColor||"0 g",_n=p.__private__.getTextColor=p.getTextColor=function(){return ee(Sn)};p.__private__.setTextColor=p.setTextColor=function(t,e,n,r){return Sn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var Pn=t.charSpace,kn=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Pn||0)};p.__private__.setCharSpace=p.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Pn=t,this};var Cn=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 Cn=e,it(e+" J"),this};var Fn=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 Fn=e,it(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 it(L(C(t))+" M"),this},p.GState=wt,p.setGState=function(t){(t="string"==typeof t?Mt[Bt[t]]:In(null,t)).equals(Tt)||(it("/"+t.id+" gs"),Tt=t)};var In=function(t,e){if(!t||!Bt[t]){var n=!1;for(var r in Mt)if(Mt.hasOwnProperty(r)&&Mt[r].equals(e)){n=!0;break}if(n)e=Mt[r];else{var i="GS"+(Object.keys(Mt).length+1).toString(10);Mt[i]=e,e.id=i}return t&&(Bt[t]=e.id),qt.publish("addGState",e),e}};p.addGState=function(t,e){return In(t,e),this},p.saveGraphicsState=function(){return it("q"),jt.push({key:St,size:lt,color:Sn}),this},p.restoreGraphicsState=function(){it("Q");var t=jt.pop();return St=t.key,lt=t.size,Sn=t.color,Tt=null,this},p.setCurrentTransformationMatrix=function(t){return it(t.toString()+" cm"),this},p.comment=function(t){return it("#"+t),this};var jn=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 r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},Dn=function(t,e,n,r){jn.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var a=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}}),this},On=function(){this.page=Et,this.currentPage=q,this.pages=K.slice(0),this.pagesContext=Rt.slice(0),this.x=Pt,this.y=kt,this.matrix=Ct,this.width=En(q),this.height=qn(q),this.outputDestination=et,this.id="",this.objectNumber=-1};On.prototype.restore=function(){Et=this.page,q=this.currentPage,Rt=this.pagesContext,K=this.pages,Pt=this.x,kt=this.y,Ct=this.matrix,Rn(q,this.width),zn(q,this.height),et=this.outputDestination};var Mn=function(t,e,n,r,i){Ht.push(new On),Et=q=0,K=[],Pt=t,kt=e,Ct=i,je([n,r])},Bn=function(t){if(Wt[t])Ht.pop().restore();else{var e=new On,n="Xo"+(Object.keys(Ut).length+1).toString(10);e.id=n,Wt[t]=n,Ut[n]=e,qt.publish("addFormObject",e),Ht.pop().restore()}};for(var Tn in p.beginFormObject=function(t,e,n,r,i){return Mn(t,e,n,r,i),this},p.endFormObject=function(t){return Bn(t),this},p.doFormObject=function(t,e){var n=Ut[Wt[t]];return it("q"),it(e.toString()+" cm"),it("/"+n.id+" Do"),it("Q"),this},p.getFormObject=function(t){var e=Ut[Wt[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?(Q(He(We()),t),"function"==typeof Q.unload&&V.setTimeout&&setTimeout(Q.unload,911),this):new Promise((function(e,n){try{var r=Q(He(We()),t);"function"==typeof Q.unload&&V.setTimeout&&setTimeout(Q.unload,911),e(r)}catch(t){n(t.message)}}))},Lt.API)Lt.API.hasOwnProperty(Tn)&&("events"===Tn&&Lt.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(qt,Lt.API.events):p[Tn]=Lt.API[Tn]);var En=p.getPageWidth=function(t){return(Rt[t=t||q].mediaBox.topRightX-Rt[t].mediaBox.bottomLeftX)/_t},Rn=p.setPageWidth=function(t,e){Rt[t].mediaBox.topRightX=e*_t+Rt[t].mediaBox.bottomLeftX},qn=p.getPageHeight=function(t){return(Rt[t=t||q].mediaBox.topRightY-Rt[t].mediaBox.bottomLeftY)/_t},zn=p.setPageHeight=function(t,e){Rt[t].mediaBox.topRightY=e*_t+Rt[t].mediaBox.bottomLeftY};return p.internal={pdfEscape:Ie,getStyle:tn,getFont:hn,getFontSize:ct,getCharSpace:kn,getTextColor:_n,getLineHeight:mn,getLineHeightFactor:bn,getLineWidth:pn,write:at,getHorizontalCoordinate:yn,getVerticalCoordinate:wn,getCoordinateString:xn,getVerticalCoordinateString:An,collections:{},newObject:Xt,newAdditionalObject:$t,newObjectDeferred:Kt,newObjectDeferredBegin:Zt,getFilters:re,putStream:ie,events:qt,scaleFactor:_t,pageSize:{getWidth:function(){return En(q)},setWidth:function(t){Rn(q,t)},getHeight:function(){return qn(q)},setHeight:function(t){zn(q,t)}},encryptionOptions:h,encryption:Ye,getEncryptor:Je,output:Ve,getNumberOfPages:Be,pages:K,out:it,f2:P,f3:k,getPageInfo:Xe,getPageInfoByObjId:Ke,getCurrentPageInfo:Ze,getPDFVersion:m,Point:jn,Rectangle:Dn,Matrix:Vt,hasHotfix:Ge},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return En(q)},set:function(t){Rn(q,t)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return qn(q)},set:function(t){zn(q,t)},enumerable:!0,configurable:!0}),ke.call(p,st),St="F1",De(a,n),qt.publish("initialized"),p}vt.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},vt.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},vt.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("")},vt.prototype.processOwnerPassword=function(t,e){return gt(ft(e).substr(0,5),t)},vt.prototype.encryptor=function(t,e){var n=ft(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return gt(n,t)}},wt.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||(0,r.Z)(t)!==(0,r.Z)(this))return!1;var i=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;i++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&i--;return 0===i},Lt.API={events:[]},Lt.version="2.5.1";var St=Lt.API,_t=1,Pt=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kt=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ct=function(t){return t.toFixed(2)},Ft=function(t){return t.toFixed(5)};St.__acroform__={};var It=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},jt=function(t){return t*_t},Dt=function(t){var e=new Xt,n=ue.internal.getHeight(t)||0,r=ue.internal.getWidth(t)||0;return e.BBox=[0,0,Number(Ct(r)),Number(Ct(n))],e},Ot=St.__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},Mt=St.__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)},Bt=St.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},Tt=St.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Bt(t,e-1)},Et=St.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ot(t,e-1)},Rt=St.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Mt(t,e-1)},qt=St.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],a=t[1],o=t[2],s=t[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(a+s)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(a)||0,[Number(Ct(l.lowerLeft_X)),Number(Ct(l.lowerLeft_Y)),Number(Ct(l.upperRight_X)),Number(Ct(l.upperRight_Y))]},zt=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=Ut(t,n),i=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("/"+i+" "+Ct(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=Dt(t);return a.scope=t.scope,a.stream=e.join("\n"),a}},Ut=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map((function(t){return t.split("\n")})):i.map((function(t){return[t]}));var a=n,o=ue.internal.getHeight(t)||0;o=o<0?-o:o;var s=ue.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(e,n,r){if(e+1<i.length){var a=n+" "+i[e+1][0];return Wt(a,t,r).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var u,c,h=Wt("3",t,a).height,f=t.multiline?o-a:(o-h)/2,d=f+=2,p=0,g=0,m=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+Wt(e,t,a=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var w=!1;if(1!==i[y].length&&m!==i[y].length-1){if((h+2)*(b+2)+2>o)continue t;v+=i[y][m],w=!0,g=y,y--}else{v=" "==(v+=i[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x=parseInt(y),A=l(x,v,a),N=y>=i.length-1;if(A&&!N){v+=" ",m=0;continue}if(A||N){if(N)g=x;else if(t.multiline&&(h+2)*(b+2)+2>o)continue t}else{if(!t.multiline)continue t;if((h+2)*(b+2)+2>o)continue t;g=x}}for(var L="",S=p;S<=g;S++){var _=i[S];if(t.multiline){if(S===g){L+=_[m]+" ",m=(m+1)%_.length;continue}if(S===p){L+=_[_.length-1]+" ";continue}}L+=_[0]+" "}switch(L=" "==L.substr(L.length-1)?L.substr(0,L.length-1):L,c=Wt(L,t,a).width,t.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;default:u=2}e+=Ct(u)+" "+Ct(d)+" Td\n",e+="("+Pt(L)+") Tj\n",e+=-Ct(u)+" 0 Td\n",d=-(a+2),c=0,p=w?g:g+1,b++,v=""}break}return r.text=e,r.fontSize=a,r},Wt=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},Ht={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Vt=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)},Gt=St.__acroform__.arrayToPdfArray=function(t,e,n){var i=function(t){return t};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(0!==o&&(a+=" "),(0,r.Z)(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==e&&n&&(i=n.internal.getEncryptor(e)),a+="("+Pt(i(t[o].toString()))+")"):a+=t[o].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Yt=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+Pt(r(t))+")"},Jt=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})};Jt.prototype.toString=function(){return this.objId+" 0 R"},Jt.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Jt.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 r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:Gt(i,this.objId,this.scope)}):i instanceof Jt?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var Xt=function(){Jt.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}})};It(Xt,Jt);var Kt=function(){Jt.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)),"("+Pt(e(t))+")"}},set:function(e){t=e}})};It(Kt,Jt);var Zt=function t(){Jt.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(Tt(e,3))},set:function(t){!0===Boolean(t)?this.F=Et(e,3):this.F=Rt(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 r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof ae)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Pt(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(t){a=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 u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/_t:u},set:function(t){u=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof ae||this instanceof se))return Yt(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ne==0?Yt(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof ne==0?"("===t.substr(0,1)?kt(t.substr(1,t.length-2)):kt(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ne==1?kt(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof ne==1?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ne==0?Yt(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof ne==0?"("===t.substr(0,1)?kt(t.substr(1,t.length-2)):kt(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ne==1?kt(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof ne==1?"/"+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,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=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(Tt(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,1):this.Ff=Rt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,2):this.Ff=Rt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,3):this.Ff=Rt(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){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:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};It(Zt,Jt);var $t=function(){Zt.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 Gt(e,this.objId,this.scope)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),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(Tt(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,18):this.Ff=Rt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=Et(this.Ff,19):this.Ff=Rt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Et(this.Ff,20),e.sort()):this.Ff=Rt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,22):this.Ff=Rt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,23):this.Ff=Rt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,27):this.Ff=Rt(this.Ff,27)}}),this.hasAppearanceStream=!1};It($t,Zt);var Qt=function(){$t.call(this),this.fontName="helvetica",this.combo=!1};It(Qt,$t);var te=function(){Qt.call(this),this.combo=!0};It(te,Qt);var ee=function(){te.call(this),this.edit=!0};It(ee,te);var ne=function(){Zt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,15):this.Ff=Rt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,16):this.Ff=Rt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,17):this.Ff=Rt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,26):this.Ff=Rt(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,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+Pt(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===(0,r.Z)(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){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};It(ne,Zt);var re=function(){ne.call(this),this.pushButton=!0};It(re,ne);var ie=function(){ne.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:[]}})};It(ie,ne);var ae=function(){var t,e;Zt.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,i={};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("<<"),i)n.push("/"+e+" ("+Pt(t(i[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===(0,r.Z)(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ue.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};It(ae,Zt),ie.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()}},ie.prototype.createOption=function(t){var e=new ae;return e.Parent=this,e.optionName=t,this.Kids.push(e),ce.call(this.scope,e),e};var oe=function(){ne.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ue.CheckBox.createAppearanceStream()};It(oe,ne);var se=function(){Zt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,13):this.Ff=Rt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,21):this.Ff=Rt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,23):this.Ff=Rt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,24):this.Ff=Rt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,25):this.Ff=Rt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,26):this.Ff=Rt(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}})};It(se,Zt);var le=function(){se.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Tt(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=Et(this.Ff,14):this.Ff=Rt(this.Ff,14)}}),this.password=!0};It(le,se);var ue={CheckBox:{createAppearanceStream:function(){return{N:{On:ue.CheckBox.YesNormal},D:{On:ue.CheckBox.YesPushDown,Off:ue.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Dt(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=Ut(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+Ct(ue.internal.getWidth(t))+" "+Ct(ue.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+Ct(a.fontSize)+" Tf "+i),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=Dt(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],a=ue.internal.getHeight(t),o=ue.internal.getWidth(t),s=Ut(t,t.caption);return i.push("1 g"),i.push("0 0 "+Ct(o)+" "+Ct(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Ct(o-1)+" "+Ct(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+Ct(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=Dt(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ct(ue.internal.getWidth(t))+" "+Ct(ue.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:ue.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=ue.RadioButton.Circle.YesNormal,e.D[t]=ue.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Dt(t);e.scope=t.scope;var n=[],r=ue.internal.getWidth(t)<=ue.internal.getHeight(t)?ue.internal.getWidth(t)/4:ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=ue.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Ft(ue.internal.getWidth(t)/2)+" "+Ft(ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Dt(t);e.scope=t.scope;var n=[],r=ue.internal.getWidth(t)<=ue.internal.getHeight(t)?ue.internal.getWidth(t)/4:ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*ue.internal.Bezier_C).toFixed(5)),o=Number((r*ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ft(ue.internal.getWidth(t)/2)+" "+Ft(ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Ft(ue.internal.getWidth(t)/2)+" "+Ft(ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=Dt(t);e.scope=t.scope;var n=[],r=ue.internal.getWidth(t)<=ue.internal.getHeight(t)?ue.internal.getWidth(t)/4:ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ft(ue.internal.getWidth(t)/2)+" "+Ft(ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:ue.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=ue.RadioButton.Cross.YesNormal,e.D[t]=ue.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Dt(t);e.scope=t.scope;var n=[],r=ue.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+Ct(ue.internal.getWidth(t)-2)+" "+Ct(ue.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(Ct(r.x1.x)+" "+Ct(r.x1.y)+" m"),n.push(Ct(r.x2.x)+" "+Ct(r.x2.y)+" l"),n.push(Ct(r.x4.x)+" "+Ct(r.x4.y)+" m"),n.push(Ct(r.x3.x)+" "+Ct(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Dt(t);e.scope=t.scope;var n=ue.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ct(ue.internal.getWidth(t))+" "+Ct(ue.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ct(ue.internal.getWidth(t)-2)+" "+Ct(ue.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Ct(n.x1.x)+" "+Ct(n.x1.y)+" m"),r.push(Ct(n.x2.x)+" "+Ct(n.x2.y)+" l"),r.push(Ct(n.x4.x)+" "+Ct(n.x4.y)+" m"),r.push(Ct(n.x3.x)+" "+Ct(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=Dt(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ct(ue.internal.getWidth(t))+" "+Ct(ue.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}};ue.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=ue.internal.getWidth(t),n=ue.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},ue.internal.getWidth=function(t){var e=0;return"object"===(0,r.Z)(t)&&(e=jt(t.Rect[2])),e},ue.internal.getHeight=function(t){var e=0;return"object"===(0,r.Z)(t)&&(e=jt(t.Rect[3])),e};var ce=St.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(Zt.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Ht)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");_t=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Kt,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 r=e[n];r.objId=void 0,r.hasAnnotation&&Vt(r,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 i 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(i)){var a=t[i],o=[],s=a.Rect;if(a.Rect&&(a.Rect=qt(a.Rect,e)),e.internal.newObjectDeferredBegin(a.objId,!0),a.DA=ue.createDefaultAppearanceStream(a),"object"===(0,r.Z)(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var l=zt(a);o.push({key:"AP",value:"<</N "+l+">>"}),e.internal.acroformPlugin.xForms.push(l)}if(a.appearanceStreamContent){var u="";for(var c in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(c)){var h=a.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var f=h[i];"function"==typeof f&&(f=f.call(e,a)),u+="/"+i+" "+f+" ",e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=h)&&(f=f.call(e,a)),u+="/"+i+" "+f,e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:a.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var i=n,a=t[n];e.internal.newObjectDeferredBegin(a.objId,!0),"object"===(0,r.Z)(a)&&"function"==typeof a.putStream&&a.putStream(),delete t[i]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof Zt))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};St.AcroFormChoiceField=$t,St.AcroFormListBox=Qt,St.AcroFormComboBox=te,St.AcroFormEditBox=ee,St.AcroFormButton=ne,St.AcroFormPushButton=re,St.AcroFormRadioButton=ie,St.AcroFormCheckBox=oe,St.AcroFormTextField=se,St.AcroFormPasswordField=le,St.AcroFormAppearance=ue,St.AcroForm={ChoiceField:$t,ListBox:Qt,ComboBox:te,EditBox:ee,Button:ne,PushButton:re,RadioButton:ie,CheckBox:oe,TextField:se,PasswordField:le,Appearance:ue},Lt.AcroForm={ChoiceField:$t,ListBox:Qt,ComboBox:te,EditBox:ee,Button:ne,PushButton:re,RadioButton:ie,CheckBox:oe,TextField:se,PasswordField:le,Appearance:ue};var he,fe,de=Lt.AcroForm;function pe(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,r){var i,a,o,s,l,u=e;if("RGBA"===(r=r||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(N(t))for(l in n)for(o=n[l],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t[a]){s=!1;break}if(!0===s){u=l;break}}else for(l in n)for(o=n[l],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t.charCodeAt(a)){s=!1;break}if(!0===s){u=l;break}}return u===e&&r!==e&&(u=r),u},a=function t(e){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?a.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]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var o="",s=0,l=e.transparency.length;s<l;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";a.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var c="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,h={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:c,data:e.sMask};"filter"in e&&(h.filter=e.filter),t.call(this,h)}if(e.colorSpace===v.INDEXED){var f=this.internal.newObject();r({data:S(new Uint8Array(e.palette)),objectId:f}),n("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)a.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var r in e)n("/I"+(t=e[r]).index,t.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var t=this.internal.collections.addImage_images;return l.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"===(0,r.Z)(t)&&1===t.nodeType},d=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return Z(unescape(r).split("base64,").pop());var i=t.loadFile(r,!0);if(void 0!==i)return i}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 a;switch(n){case"PNG":a="image/png";break;case"WEBP":a="image/webp";break;default:a="image/jpeg"}return Z(e.toDataURL(a,1).split("base64,").pop())}},p=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},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]},m=function(t,e,n,r,i,a){var o=g.call(this,n,r,i),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=u.call(this);if(n=o[0],r=o[1],c[i.index]=i,a){a*=Math.PI/180;var h=Math.cos(a),f=Math.sin(a),d=function(t){return t.toFixed(4)},p=[d(h),d(f),d(-1*f),d(h),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,s(t),l(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(t),l(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},v=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 b=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(N(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},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){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},A=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return A()&&t instanceof ArrayBuffer};var N=t.__addimage__.isArrayBufferView=function(t){return A()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},L=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},S=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=N(t)?t:new Uint8Array(t),r=0;r<n.length;r+=8192)e+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return e};t.addImage=function(){var t,n,i,a,o,s,u,c,h;if("number"==typeof arguments[1]?(n=e,i=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],u=arguments[5],c=arguments[6],h=arguments[7]):(n=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],u=arguments[6],c=arguments[7],h=arguments[8]),"object"===(0,r.Z)(t=arguments[0])&&!f(t)&&"imageData"in t){var d=t;t=d.imageData,n=d.format||n||e,i=d.x||i||0,a=d.y||a||0,o=d.w||d.width||o,s=d.h||d.height||s,u=d.alias||u,c=d.compression||c,h=d.rotation||d.angle||h}var p=this.internal.getFilters();if(void 0===c&&-1!==p.indexOf("FlateEncode")&&(c="SLOW"),isNaN(i)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var g=_.call(this,t,n,u,c);return m.call(this,i,a,o,s,g,h),this};var _=function(n,r,a,o){var s,l,u;if("string"==typeof n&&i(n)===e){n=unescape(n);var g=P(n,!1);(""!==g||void 0!==(g=t.loadFile(n,!0)))&&(n=g)}if(f(n)&&(n=d(n,r)),r=i(n,r),!h(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(u=a)||0===u.length)&&(a=function(t){return"string"==typeof t||N(t)?y(t):N(t.data)?y(t.data):null}(n)),(s=p.call(this,a))||(A()&&(n instanceof Uint8Array||"RGBA"===r||(l=n,n=L(n))),s=this["process"+r.toUpperCase()](n,c.call(this),a,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:b.NONE}(o),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},P=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var r,i="";if("string"==typeof t){r=null!==(n=x(t))?n.data:t;try{i=Z(r)}catch(t){if(e)throw w(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(n){var r,a,o="";if(f(n)&&(n=d(n)),"string"==typeof n&&i(n)===e&&(""===(o=P(n,!1))&&(o=t.loadFile(n)||""),n=o),a=i(n),!h(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if(!A()||n instanceof Uint8Array||(n=L(n)),!(r=this["process"+a.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=a,r}}(Lt.API),he=Lt.API,fe=function(t){if(void 0!==t&&""!=t)return!0},Lt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),he.events.push(["putPage",function(t){for(var e,n,r,i=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,l=!1,u=0;u<s.length&&!l;u++)switch((e=s[u]).type){case"link":(fe(e.options.url)||fe(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var c=0;c<s.length;c++){e=s[c];var h=this.internal.pdfEscape,f=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(d.objId),m=e.title||"Note";r="<</Type /Annot /Subtype /Text "+(n="/Rect ["+i(e.bounds.x)+" "+a(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y)+"] ")+"/Contents ("+h(g(e.contents))+")",r+=" /Popup "+p.objId+" 0 R",r+=" /P "+o.objId+" 0 R",r+=" /T ("+h(g(m))+") >>",d.content=r;var v=d.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+i(e.bounds.x+30)+" "+a(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+a(e.bounds.y)+"] ")+" /Parent "+v,e.open&&(r+=" /Open true"),r+=" >>",p.content=r,this.internal.write(d.objId,"0 R",p.objId,"0 R");break;case"freetext":n="/Rect ["+i(e.bounds.x)+" "+a(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y+e.bounds.h)+"] ";var b=e.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(f(e.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",r="",e.options.url)r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(f(e.options.url))+") >>";else if(e.options.pageNumber)switch(r="<</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":r+=" /Fit]";break;case"FitH":r+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,r+=" /FitV "+e.options.left+"]";break;default:var w=a(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),r+=" /XYZ "+e.options.left+" "+w+" "+e.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),he.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)}},he.link=function(t,e,n,r,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+n),h:s(e+r)},options:i,type:"link"})},he.textWithLink=function(t,e,n,r){var i,a,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){a=r.maxWidth;var l=this.splitTextToSize(t,a).length;i=Math.ceil(s*l)}else a=o,i=s;return this.text(t,e,n,r),n+=.2*s,"center"===r.align&&(e-=o/2),"right"===r.align&&(e-=o),this.link(e,n-s,a,i,r),o},he.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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=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)&&a(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&a(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",a=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(a++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,a=0),e===t.length-1&&(r=n,i+=t.charAt(e-(a-1)),e-=a-1,a=0)):(r=n,i+=t.charAt(e-a),e-=a,a=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===a(t)?-1:!u(t)||!o(e)&&!o(n)||!o(n)&&s(e)||s(t)&&!o(e)||s(t)&&l(e)||s(t)&&s(e)?0:c(t)&&o(e)&&!s(e)&&o(n)&&u(n)?3:s(t)||!o(n)?1:2:-1},d=function(t){var n=0,r=0,i=0,a="",s="",l="",u=(t=t||"").split("\\s+"),c=[];for(n=0;n<u.length;n+=1){for(c.push(""),r=0;r<u[n].length;r+=1)a=u[n][r],s=u[n][r-1],l=u[n][r+1],o(a)?(i=f(a,s,l),c[n]+=-1!==i?String.fromCharCode(e[a.charCodeAt(0)][i]):a):c[n]+=a;c[n]=h(c[n])}return c.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 r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([d(e[r][0]),e[r][1],e[r][2]]):n.push([d(e[r])]);t=n}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(Lt.API),Lt.API.autoPrint=function(t){var e;return"javascript"===((t=t||{}).variant=t.variant||"non-conform",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 r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=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}])}(Lt.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,i=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(),a.call(this))},a=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 r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(t){a=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 i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),r=e.font||this.getFont(),a=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,u=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 c=e.maxWidth;c>0?"string"==typeof t?t=this.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,c))}),[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)o<(l=this.getStringUnitWidth(t[h],{font:r})*n)&&(o=l);return 0!==o&&(s=t.length),{w:o/=a,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/a,0)}},t.cellAddPage=function(){i.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]),i.call(this);var r=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===t.lineNumber?(t.x=(r.x||0)+(r.width||0),t.y=r.y||0):r.y+r.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=r.y+r.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-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,c,h){if(i.call(this),!u)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],b=[],y={},w={},x=[],A=[],N=(h=h||{}).autoSize||!1,L=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,_=h.margins||Object.assign({width:this.getPageWidth()},e),P="number"==typeof h.padding?h.padding:3,k=h.headerBackgroundColor||"#c8c8c8",C=h.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=C,this.setFontSize(S),null==c)v=m=Object.keys(u[0]),b=m.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===(0,r.Z)(c[0]))for(m=c.map((function(t){return t.name})),v=c.map((function(t){return t.prompt||t.name||""})),b=c.map((function(t){return t.align||"left"})),f=0;f<c.length;f+=1)w[c[f].name]=c[f].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(v=m=c,b=m.map((function(){return"left"})));if(N||Array.isArray(c)&&"string"==typeof c[0])for(f=0;f<m.length;f+=1){for(y[g=m[f]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)x.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,x)+P+P,x=[]}if(L){var F={};for(f=0;f<m.length;f+=1)F[m[f]]={},F[m[f]].text=v[f],F[m[f]].align=b[f];var I=l.call(this,F,w);A=m.map((function(e){return new o(t,n,w[e],I,F[e].text,void 0,F[e].align)})),this.setTableHeaderRow(A),this.printHeaderRow(1,!1)}var j=c.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(f=0;f<u.length;f+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:f,data:u[f]},this);var D=l.call(this,u[f],w);for(p=0;p<m.length;p+=1){var O=u[f][m[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:f,col:p,data:O},this),s.call(this,new o(t,n,w[m[p]],D,O,f+2,j[m[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,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/i+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,l.push(r)),r.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(c)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(Lt.API);var ge={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},me=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ve=pe(me),be=[100,200,300,400,500,600,700,800,900],ye=pe(be);function we(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return ge[t=t||"normal"]?t:"normal"}(t.style),r=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),i=function(t){return"number"==typeof ve[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function xe(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var Ae={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ne={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Le(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Se(t){return t.trimLeft()}function _e(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 Pe(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 ke,Ce,Fe,Ie=["times"];!function(t){var e,n,i,a,o,s,l,u,c,h=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 u,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 f(this),e=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,c=new h}]);var f=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 r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(t){isNaN(t)||(a=t)}}),Object.defineProperty(this,"margin",{get:function(){return c.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]),c.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 c},set:function(t){t instanceof h&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=d(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=d(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 f=null;function p(t,e){if(null===f){var n=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var r=null;switch(t){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:t},e.push(r))}))})),e}(t.getFontList());f=function(t){for(var e={},n=0;n<t.length;++n){var r=we(t[n]),i=r.family,a=r.stretch,o=r.style,s=r.weight;e[i]=e[i]||{},e[i][a]=e[i][a]||{},e[i][a][o]=e[i][a][o]||{},e[i][a][o][s]=r}return e}(n.concat(e))}return f}var g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(t){f=null,g=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-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],a=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,n,r=[],i=t.trim();if(""===i)return Ie;if(i in Ne)return[Ne[i]];for(;""!==i;){switch(n=null,e=(i=Se(i)).charAt(0)){case'"':case"'":n=_e(i.substring(1),e);break;default:n=Pe(i)}if(null===n)return Ie;if(r.push(n[0]),""!==(i=Se(n[1]))&&","!==i.charAt(0))return Ie;i=i.replace(/^,/,"")}return r}(a);if(this.fontFaces){var l=function(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Ae,n.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(i[(a=we(e[s])).family]&&(a.family=i[a.family]),t.hasOwnProperty(a.family)){o=t[a.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+Le(a)+"' and default family '"+r+"'.");if(o=function(t,e){if(e[t])return e[t];var n=ve[t],r=n<=ve.normal?-1:1,i=xe(e,me,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(a.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=ge[t],r=0;r<n.length;++r)if(e[n[r]])return e[n[r]];throw new Error("Could not find a matching font-style for "+t)}(a.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=ye[t],r=xe(e,be,n,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Le(a)+"'.");return o}(p(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(l.ref.name,l.ref.style)}else{var u="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var c="",h={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"},f=0;f<s.length;f++){if(void 0!==this.pdf.internal.getFont(s[f],u,{noFallback:!0,disableWarning:!0})){c=s[f];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[f],"bold",{noFallback:!0,disableWarning:!0}))c=s[f],u="bold";else if(void 0!==this.pdf.internal.getFont(s[f],"normal",{noFallback:!0,disableWarning:!0})){c=s[f],u="normal";break}}if(""===c)for(var d=0;d<s.length;d++)if(h[s[d]]){c=h[s[d]];break}c=""===c?"Times":c,this.pdf.setFont(c,u)}}}}),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,E.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,E.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};f.prototype.setLineDash=function(t){this.lineDash=t},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){x.call(this,"fill",!1)},f.prototype.stroke=function(){x.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw Y.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)},f.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,r.Z)(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)},f.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw Y.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)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},f.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw Y.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(n,r)),a=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:a.x,y1:a.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},f.prototype.bezierCurveTo=function(t,e,n,r,i,a){if(isNaN(i)||isNaN(a)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(i,a)),l=this.ctx.transform.applyToPoint(new s(t,e)),u=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:u.x,y2:u.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},f.prototype.arc=function(t,e,n,r,i,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw Y.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(a=Boolean(a),!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)),u=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:a})},f.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},f.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.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+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},f.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},f.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},f.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.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,r))},f.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 r=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},f.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)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(t){var e,n,r,i;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,r=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==a)e=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=1;else if(null!==(a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new tt(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},g=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw Y.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!p.call(this)){var i=M(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:n,scale:a,angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw Y.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){r=isNaN(r)?void 0:r;var i=M(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;C.call(this,{text:t,x:e,y:n,scale:a,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.measureText=function(t){if("string"!=typeof t)throw Y.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,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor,a=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new a({width:i*=Math.round(96*n/72*1e4)/1e4})},f.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw Y.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(t){if(isNaN(t))throw Y.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new u(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},f.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw Y.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(t,e,n,r,i,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a))throw Y.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new u(t,e,n,r,i,a);this.ctx.transform=this.ctx.transform.multiply(o)},f.prototype.setTransform=function(t,e,n,r,i,a){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new u(t,e,n,r,i,a)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(t,e,n,r,i,a,o,s,c){var h=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==r&&void 0!==s&&(p=s/r,g=c/i,f=h.width/r*s/r,d=h.height/i*c/i),void 0===a&&(a=e,o=n,e=0,n=0),void 0!==r&&void 0===s&&(s=r,c=i),void 0===r&&void 0===s&&(s=h.width,c=h.height);for(var b,x=this.ctx.transform.decompose(),N=M(x.rotate.shx),L=new u,S=(L=(L=(L=L.multiply(x.translate)).multiply(x.skew)).multiply(x.scale)).applyToRectangle(new l(a-e*p,o-n*g,r*f,i*d)),_=v.call(this,S),P=[],k=0;k<_.length;k+=1)-1===P.indexOf(_[k])&&P.push(_[k]);if(w(P),this.autoPaging)for(var C=P[0],F=P[P.length-1],I=C;I<F+1;I++){this.pdf.setPage(I);var j=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=1===I?this.posY+this.margin[0]:this.margin[0],O=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],B=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],T=1===I?0:O+(I-2)*B;if(0!==this.ctx.clip_path.length){var E=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(b,this.posX+this.margin[3],-T+D+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=E}var R=JSON.parse(JSON.stringify(S));R=y([R],this.posX+this.margin[3],-T+D+this.ctx.prevPageLastElemOffset)[0];var q=(I>C||I<F)&&m.call(this);q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],j,B,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",R.x,R.y,R.w,R.h,null,null,N),q&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,N)};var v=function(t,e,n){var r=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+i)/n)+1);break;case"arc":r.push(Math.floor((t.y+i-t.radius)/n)+1),r.push(Math.floor((t.y+i+t.radius)/n)+1);break;case"qct":var a=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((a.y+i)/n)+1),r.push(Math.floor((a.y+a.h+i)/n)+1);break;case"bct":var o=T(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"rect":r.push(Math.floor((t.y+i)/n)+1),r.push(Math.floor((t.y+t.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)b.call(this);return r},b=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=a},y=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;default:t[r].x+=e,t[r].y+=n}return t},w=function(t){return t.sort((function(t,e){return t-e}))},x=function(t,e){for(var n,r,i=this.fillStyle,a=this.strokeStyle,o=this.lineCap,s=this.lineWidth,l=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var p=v.call(this,h[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var x=0;x<f.length;x++)for(;this.pdf.internal.getNumberOfPages()<f[x];)b.call(this);if(w(f),this.autoPaging)for(var N=f[0],L=f[f.length-1],S=N;S<L+1;S++){this.pdf.setPage(S),this.fillStyle=i,this.strokeStyle=a,this.lineCap=o,this.lineWidth=l,this.lineJoin=u;var _=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===S?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],C=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],F=1===S?0:k+(S-2)*C;if(0!==this.ctx.clip_path.length){var I=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-F+P+this.ctx.prevPageLastElemOffset),A.call(this,t,!0),this.path=I}if(r=JSON.parse(JSON.stringify(c)),this.path=y(r,this.posX+this.margin[3],-F+P+this.ctx.prevPageLastElemOffset),!1===e||0===S){var j=(S>N||S<L)&&m.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,C,null).clip().discardPath()),A.call(this,t,e),j&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=l,A.call(this,t,e),this.lineWidth=s;this.path=c},A=function(t,e){if(("stroke"!==t||e||!g.call(this))&&("stroke"===t||e||!p.call(this))){for(var n,r,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var l=i.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(n=[s.x-a[o-1].x,s.y-a[o-1].y],l>0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(s);break}break;case"bct":n=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(n);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),c=a[o-1].y+2/3*(s.y1-a[o-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,m=s.y;n=[u-a[o-1].x,c-a[o-1].y,h-a[o-1].x,f-a[o-1].y,d-a[o-1].x,m-a[o-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var v=!1,b=0;b<i.length;b++)if(i[b].arc)for(var y=i[b].abs,w=0;w<y.length;w++){var x=y[w];"arc"===x.type?S.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,e,!v):F.call(this,x.x,x.y),v=!0}else if(!0===i[b].close)this.pdf.internal.out("h"),v=!1;else if(!0!==i[b].begin){var A=i[b].start.x,N=i[b].start.y;I.call(this,i[b].deltas,A,N),v=!0}r&&_.call(this,r),e&&P.call(this)}},N=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}},L=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.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},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,e,n,r,i,a,o,s,l){for(var u=D.call(this,n,r,i,a),c=0;c<u.length;c++){var h=u[c];0===c&&(l?k.call(this,h.x1+t,h.y1+e):F.call(this,h.x1+t,h.y1+e)),j.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?P.call(this):_.call(this,o)},_=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},P=function(){this.pdf.clip(),this.pdf.discardPath()},k=function(t,e){this.pdf.internal.out(n(t)+" "+i(e)+" m")},C=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var n=this.pdf.getTextDimensions(t.text),r=N.call(this,t.y),i=L.call(this,r)-n.h,a=this.ctx.transform.applyToPoint(new s(t.x,r)),o=this.ctx.transform.decompose(),c=new u;c=(c=(c=c.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var h,f,d,p=this.ctx.transform.applyToRectangle(new l(t.x,r,n.w,n.h)),g=c.applyToRectangle(new l(t.x,i,n.w,n.h)),b=v.call(this,g),x=[],S=0;S<b.length;S+=1)-1===x.indexOf(b[S])&&x.push(b[S]);if(w(x),this.autoPaging)for(var _=x[0],P=x[x.length-1],k=_;k<P+1;k++){this.pdf.setPage(k);var C=1===k?this.posY+this.margin[0]:this.margin[0],F=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[2],j=I-this.margin[0],D=this.pdf.internal.pageSize.width-this.margin[1],O=D-this.margin[3],M=1===k?0:F+(k-2)*j;if(0!==this.ctx.clip_path.length){var B=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(h,this.posX+this.margin[3],-1*M+C),A.call(this,"fill",!0),this.path=B}var T=y([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-M+C+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var E="text"!==this.autoPaging;if(E||T.y+T.h<=I){if(E||T.y>=C&&T.x<=D){var R=E?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||D-T.x)[0],q=y([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-M+C+this.ctx.prevPageLastElemOffset)[0],z=E&&(k>_||k<P)&&m.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,j,null).clip().discardPath()),this.pdf.text(R,q.x,q.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else T.y<I&&(this.ctx.prevPageLastElemOffset+=I-T.y);t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,a.x+this.posX,a.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},F=function(t,e,r,a){r=r||0,a=a||0,this.pdf.internal.out(n(t+r)+" "+i(e+a)+" l")},I=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},j=function(t,n,r,i,s,l,u,c){this.pdf.internal.out([e(a(r+t)),e(o(i+n)),e(a(s+t)),e(o(l+n)),e(a(u+t)),e(o(c+n)),"c"].join(" "))},D=function(t,e,n,r){for(var i=2*Math.PI,a=Math.PI/2;e>n;)e-=i;var o=Math.abs(n-e);o<i&&r&&(o=i-o);for(var s=[],l=r?-1:1,u=e;o>1e-5;){var c=u+l*Math.min(o,a);s.push(O.call(this,t,u,c)),o-=Math.abs(c-u),u=c}return s},O=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),a=t*Math.sin(r),o=i,s=-a,l=o*o+s*s,u=l+o*i+s*a,c=4/3*(Math.sqrt(2*l*u)-u)/(o*a-s*i),h=o-c*s,f=s+c*o,d=h,p=-f,g=r+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*m-f*v,y2:h*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},M=function(t){return 180*t/Math.PI},B=function(t,e,n,r,i,a){var o=t+.5*(n-t),s=e+.5*(r-e),u=i+.5*(n-i),c=a+.5*(r-a),h=Math.min(t,i,o,u),f=Math.max(t,i,o,u),d=Math.min(e,a,s,c),p=Math.max(e,a,s,c);return new l(h,d,f-h,p-d)},T=function(t,e,n,r,i,a,o,s){var u,c,h,f,d,p,g,m,v,b,y,w,x,A,N=n-t,L=r-e,S=i-n,_=a-r,P=o-i,k=s-a;for(c=0;c<41;c++)v=(g=(h=t+(u=c/40)*N)+u*((d=n+u*S)-h))+u*(d+u*(i+u*P-d)-g),b=(m=(f=e+u*L)+u*((p=r+u*_)-f))+u*(p+u*(a+u*k-p)-m),0==c?(y=v,w=b,x=v,A=b):(y=Math.min(y,v),w=Math.min(w,b),x=Math.max(x,v),A=Math.max(A,b));return new l(Math.round(y),Math.round(w),Math.round(x-y),Math.round(A-w))},E=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)}}}(Lt.API),function(t){var e=function(t){var e,n,r,i,a,o,s,l,u,c;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(a=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(o=(a=((a=((a=((a=(a-(c=a%85))/85)-(u=a%85))/85)-(l=a%85))/85)-(s=a%85))/85)%85,n.push(o+33,s+33,l+33,u+33,c+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,r,i,a,o=String,s="length",l=255,u="charCodeAt",c="slice",h="replace";for(t[c](-2),t=t[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,a=(t+=e="uuuuu"[c](t[s]%5||5))[s];a>i;i+=5)n=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),r.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()}(r,e[s]),o.fromCharCode.apply(o,r)},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="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},i=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=W(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,a){var o=0,s=t||"",l=[];for("string"==typeof(a=a||[])&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=r(s),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(Lt.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,a=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(a(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return a(r.responseText)}(t,e,n)}catch(t){}return r}(t,e,n)},t.loadImageFile=t.loadFile}(Lt.API),function(t){function e(){return(V.html2canvas?Promise.resolve(V.html2canvas):n.e(101).then(n.t.bind(n,5101,23))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function i(){return(V.DOMPurify?Promise.resolve(V.DOMPurify):n.e(199).then(n.t.bind(n,1199,23))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var a=function(t){var e=(0,r.Z)(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 r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},s=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(t,e){return t.__proto__=e||s.prototype,t},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(a(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(i).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.")}}))},s.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.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var 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=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r}(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"}))},s.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)}))},s.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,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.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 a=0;a<n.length;++a){var o=n[a],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e.context2d.save(!0),t(this.prop.container,i)})).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)}))},s.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}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},s.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},s.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.'}}))},s.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)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(t){if("object"!==a(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in s.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)}))},s.prototype.get=function(t,e){return this.then((function(){var n=t in s.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},s.prototype.setMargin=function(t){return this.then((function(){switch(a(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)},s.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||Lt.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}))},s.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},s.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}))}))},s.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),i=n.call(r,t,e);return s.convert(i,this.__proto__)},s.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},s.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},s.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return s.convert(e,this)},s.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},s.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Lt.getPageSize=function(t,e,n){if("object"===(0,r.Z)(t)){var i=t;t=i.orientation,e=i.unit||e,n=i.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var a,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":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+e}var l,u=0,c=0;if(s.hasOwnProperty(o))u=s[o][1]/a,c=s[o][0]/a;else try{u=n[1],c=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",c>u&&(l=c,c=u,u=l);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>c&&(l=c,c=u,u=l)}return{width:c,height:u,unit:e,k:a,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(we):null;var n=new s(e);return e.worker?n:n.from(t).doCallback()}}(Lt.API),Lt.API.addJS=function(t){return Fe=t,this.internal.events.subscribe("postPutResources",(function(){ke=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ke+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ce=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Fe+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==ke&&void 0!==Ce&&this.internal.out("/Names <</JavaScript "+ke+" 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 r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var a=r[i],o=n.exec(a);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(i=0;i<l;i++){var c=t.internal.newObject();u.push(c);var h=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+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 r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},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,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.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}}])}(Lt.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,r,i,a,o){var s,l=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=r,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),a={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}r=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return a}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).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}u={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:r}}return u}}(Lt.API);var je,De,Oe,Me,Be,Te=function(){var t,e,n;function r(t){var e,n,r,i,a,o,s,l,u,c,h,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},a=this.readUInt16(),i=this.readUInt16()||100,o.delay=1e3*a/i,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((c=r-this.transparency.indexed.length)>0)for(d=0;0<=c?d<c:d>c;0<=c?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(h=this.read(e)).indexOf(0),l=String.fromCharCode.apply(String,h.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(a,o,s,l){var u,c,h,f,d,p,g,m,v,b,y,w,x,A,N,L,S,_,P,k,C,F=Math.ceil((i.width-a)/s),I=Math.ceil((i.height-o)/l),j=i.width==F&&i.height==I;for(A=e*F,w=j?n:new Uint8Array(A*I),p=t.length,x=0,c=0;x<I&&r<p;){switch(t[r++]){case 0:for(f=S=0;S<A;f=S+=1)w[c++]=t[r++];break;case 1:for(f=_=0;_<A;f=_+=1)u=t[r++],d=f<e?0:w[c-e],w[c++]=(u+d)%256;break;case 2:for(f=P=0;P<A;f=P+=1)u=t[r++],h=(f-f%e)/e,N=x&&w[(x-1)*A+h*e+f%e],w[c++]=(N+u)%256;break;case 3:for(f=k=0;k<A;f=k+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[c-e],N=x&&w[(x-1)*A+h*e+f%e],w[c++]=(u+Math.floor((d+N)/2))%256;break;case 4:for(f=C=0;C<A;f=C+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[c-e],0===x?N=L=0:(N=w[(x-1)*A+h*e+f%e],L=h&&w[(x-1)*A+(h-1)*e+f%e]),g=d+N-L,m=Math.abs(g-d),b=Math.abs(g-N),y=Math.abs(g-L),v=m<=b&&m<=y?d:b<=y?N:L,w[c++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!j){var D=((o+x*l)*i.width+a)*e,O=x*A;for(f=0;f<F;f+=1){for(var M=0;M<e;M+=1)n[D++]=w[O++];D+=(s-1)*e}}x++}}return t=H(t),1==i.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),n},r.prototype.decodePalette=function(){var t,e,n,r,i,a,o,s,l;for(n=this.palette,a=this.transparency.indexed||[],i=new Uint8Array((a.length||0)+n.length),r=0,t=0,e=o=0,s=n.length;o<s;e=o+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(l=a[t++])?l:255;return i},r.prototype.copyToImageData=function(t,e){var n,r,i,a,o,s,l,u,c,h,f;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),u=(i=t.data||t).length,o=c||e,a=s=0,1===r)for(;a<u;)l=c?4*e[a/4]:s,h=o[l++],i[a++]=h,i[a++]=h,i[a++]=h,i[a++]=n?o[l++]:255,s=l;else for(;a<u;)l=c?4*e[a/4]:s,i[a++]=o[l++],i[a++]=o[l++],i[a++]=o[l++],i[a++]=n?o[l++]:255,s=l},r.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var i=function(){if("[object Window]"===Object.prototype.toString.call(V)){try{e=V.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return i(),t=function(t){var r;if(!0===i())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(e){var n,r,i,a,o,s,l,u;if(this.animation){for(u=[],r=o=0,s=(l=this.animation.frames).length;o<s;r=++o)n=l[r],i=e.createImageData(n.width,n.height),a=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,a),n.imageData=i,u.push(n.image=t(i));return u}},r.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(t){var e,n,r,i,a,o,s=this;return n=0,o=this.animation,i=o.numFrames,r=o.frames,a=o.numPlays,(e=function(){var o,l;if(o=n++%i,l=r[o],s.renderFrame(t,o),i>1&&n/i<a)return s.animation._timeout=setTimeout(e,l.delay)})()},r.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},r.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},r}();function Ee(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,r=t[e++]|t[e++]<<8,i=t[e++],a=i>>7,o=1<<1+(7&i);t[e++],t[e++];var s=null,l=null;a&&(s=e,l=o,e+=3*o);var u=!0,c=[],h=0,f=null,d=0,p=null;for(this.width=n,this.height=r;u&&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(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];h=t[e++]|t[e++]<<8,f=t[e++],0==(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,A=1<<1+(7&w),N=s,L=l,S=!1;w>>7&&(S=!0,N=e,L=A,e+=3*A);var _=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}c.push({x:m,y:v,width:b,height:y,has_local_palette:S,palette_offset:N,palette_size:L,data_offset:_,data_length:e-_,transparent_index:f,interlaced:!!x,delay:h,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=c.length)throw new Error("Frame index out of range.");return c[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Re(t,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*c;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*c+4*n*(m-1),p=f+(u+c)*(m<<1),m>>=1)),y===l)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],A=t[s+3*y+2];r[p++]=A,r[p++]=x,r[p++]=w,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Re(t,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*c;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*c+4*n*(m-1),p=f+(u+c)*(m<<1),m>>=1)),y===l)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],A=t[s+3*y+2];r[p++]=w,r[p++]=x,r[p++]=A,r[p++]=255}--h}}}function Re(t,e,n,r){for(var i=t[e++],a=1<<i,o=a+1,s=o+1,l=i+1,u=(1<<l)-1,c=0,h=0,f=0,d=t[e++],p=new Int32Array(4096),g=null;;){for(;c<16&&0!==d;)h|=t[e++]<<c,c+=8,1===d?d=t[e++]:--d;if(c<l)break;var m=h&u;if(h>>=l,c-=l,m!==a){if(m===o)break;for(var v=m<s?m:g,b=0,y=v;y>a;)y=p[y]>>8,++b;var w=y;if(f+b+(v!==m?1:0)>r)return void Y.log("Warning, gif stream longer than expected.");n[f++]=w;var x=f+=b;for(v!==m&&(n[f++]=w),y=v;b--;)y=p[y],n[--x]=255&y,y>>=8;null!==g&&s<4096&&(p[s++]=g<<8|w,s>=u+1&&l<12&&(++l,u=u<<1|1)),g=m}else s=o+1,u=(1<<(l=i+1))-1,g=null}return f!==r&&Y.log("Warning, gif stream shorter than expected."),n}function qe(t){var e,n,r,i,a,o=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),h=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),A=new Array(2048),N=[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],L=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[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 j(t,e){for(var n=0,r=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=a,r++,n++;n*=2}return i}function D(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(O(255),O(0)):O(m),v=7,m=0)}function O(t){g.push(t)}function M(t){O(t>>8&255),O(255&t)}function B(t,e,n,r,i){for(var a,o=i[0],s=i[240],l=function(t,e){var n,r,i,a,o,s,l,u,c,h,f=0;for(c=0;c<8;++c){n=t[f],r=t[f+1],i=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],l=t[f+6];var p=n+(u=t[f+7]),g=n-u,m=r+l,v=r-l,b=i+s,y=i-s,w=a+o,x=a-o,A=p+w,N=p-w,L=m+b,S=m-b;t[f]=A+L,t[f+4]=A-L;var _=.707106781*(S+N);t[f+2]=N+_,t[f+6]=N-_;var P=.382683433*((A=x+y)-(S=v+g)),k=.5411961*A+P,C=1.306562965*S+P,F=.707106781*(L=y+v),I=g+F,j=g-F;t[f+5]=j+k,t[f+3]=j-k,t[f+1]=I+C,t[f+7]=I-C,f+=8}for(f=0,c=0;c<8;++c){n=t[f],r=t[f+8],i=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],l=t[f+48];var D=n+(u=t[f+56]),O=n-u,M=r+l,B=r-l,T=i+s,E=i-s,R=a+o,q=a-o,z=D+R,U=D-R,W=M+T,H=M-T;t[f]=z+W,t[f+32]=z-W;var V=.707106781*(H+U);t[f+16]=U+V,t[f+48]=U-V;var G=.382683433*((z=q+E)-(H=B+O)),Y=.5411961*z+G,J=1.306562965*H+G,X=.707106781*(W=E+B),K=O+X,Z=O-X;t[f+40]=Z+Y,t[f+24]=Z-Y,t[f+8]=K+J,t[f+56]=K-J,f++}for(c=0;c<64;++c)h=t[c]*e[c],d[c]=h>0?h+.5|0:h-.5|0;return d}(t,e),u=0;u<64;++u)p[N[u]]=l[u];var c=p[0]-n;n=p[0],0==c?D(r[0]):(D(r[f[a=32767+c]]),D(h[a]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return D(o),n;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)D(s);y&=15}a=32767+p[v],D(i[(y<<4)+f[a]]),D(h[a]),v++}return 63!=g&&D(o),n}function T(t){t=Math.min(Math.max(t,1),100),a!=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 r=o((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[N[n]]=r}for(var i=[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],a=0;a<64;a++){var h=o((i[a]*t+50)/100);h=Math.min(Math.max(h,1),255),l[N[a]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[N[d]]*f[p]*f[g]*8),c[d]=1/(l[N[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t)}this.encode=function(t,a){a&&T(a),g=new Array,m=0,v=7,M(65496),M(65504),M(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),M(1),M(1),O(0),O(0),function(){M(65499),M(132),O(0);for(var t=0;t<64;t++)O(s[t]);O(1);for(var e=0;e<64;e++)O(l[e])}(),function(t,e){M(65472),M(17),O(8),M(e),M(t),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(t.width,t.height),function(){M(65476),M(418),O(0);for(var t=0;t<16;t++)O(L[t+1]);for(var e=0;e<=11;e++)O(S[e]);O(16);for(var n=0;n<16;n++)O(_[n+1]);for(var r=0;r<=161;r++)O(P[r]);O(1);for(var i=0;i<16;i++)O(k[i+1]);for(var a=0;a<=11;a++)O(C[a]);O(17);for(var o=0;o<16;o++)O(F[o+1]);for(var s=0;s<=161;s++)O(I[s])}(),M(65498),M(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var o=0,h=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,x,N,j,E,R,q,z,U=t.data,W=t.width,H=t.height,V=4*W,G=0;G<H;){for(d=0;d<V;){for(j=V*G+d,R=-1,q=0,z=0;z<64;z++)E=j+(q=z>>3)*V+(R=4*(7&z)),G+q>=H&&(E-=V*(G+1+q-H)),d+R>=V&&(E-=d+R-V+4),p=U[E++],x=U[E++],N=U[E++],b[z]=(A[p]+A[x+256>>0]+A[N+512>>0]>>16)-128,y[z]=(A[p+768>>0]+A[x+1024>>0]+A[N+1280>>0]>>16)-128,w[z]=(A[p+1280>>0]+A[x+1536>>0]+A[N+1792>>0]>>16)-128;o=B(b,u,o,e,r),h=B(y,c,h,n,i),f=B(w,c,f,n,i),d+=32}G+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,D(Y)}return M(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=j(L,S),n=j(k,C),r=j(_,P),i=j(F,I),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)f[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)f[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)A[t]=19595*t,A[t+256>>0]=38470*t,A[t+512>>0]=7471*t+32768,A[t+768>>0]=-11059*t,A[t+1024>>0]=-21709*t,A[t+1280>>0]=32768*t+8421375,A[t+1536>>0]=-27439*t,A[t+1792>>0]=-5329*t}(),T(t)}function ze(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 Ue(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var a=0;a<i;a++)t[e+a]=n[r+a]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function a(t){return new Int32Array(t)}function o(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,r,i){for(var a=i[r],o=0;o<a&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));o++)t(n[o],r+1,i)}(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 u(t,n,r,i,a){e(!(i%r));do{t[n+(i-=r)]=a}while(0<i)}function c(t,n,r,i,o){if(e(2328>=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(t,n,r,i,o,s){var c,f,d=n,p=1<<r,g=a(16),m=a(16);for(e(0!=o),e(null!=i),e(null!=t),e(0<r),f=0;f<o;++f){if(15<i[f])return 0;++g[i[f]]}if(g[0]==o)return 0;for(m[1]=0,c=1;15>c;++c){if(g[c]>1<<c)return 0;m[c+1]=m[c]+g[c]}for(f=0;f<o;++f)c=i[f],0<i[f]&&(s[m[c]++]=f);if(1==m[15])return(i=new h).g=0,i.value=s[0],u(t,d,1,p,i),p;var v,b=-1,y=p-1,w=0,x=1,A=1,N=1<<r;for(f=0,c=1,o=2;c<=r;++c,o<<=1){if(x+=A<<=1,0>(A-=g[c]))return 0;for(;0<g[c];--g[c])(i=new h).g=c,i.value=s[f++],u(t,d+w,o,N,i),w=l(w,c)}for(c=r+1,o=2;15>=c;++c,o<<=1){if(x+=A<<=1,0>(A-=g[c]))return 0;for(;0<g[c];--g[c]){if(i=new h,(w&y)!=b){for(d+=N,v=1<<(b=c)-r;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=N=1<<(v=b-r),t[n+(b=w&y)].g=v+r,t[n+b].value=d-n-b}i.g=c-r,i.value=s[f++],u(t,d+(w>>r),o,N,i),w=l(w,c)}}return x!=2*m[15]-1?0:p}(t,n,r,i,o,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,h),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Rn,f)}function p(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,_(t)}function g(t,e){for(var n=0;0<e--;)n|=k(t,128)<<e;return n}function m(t,e){var n=g(t,e);return P(t)?-n:n}function v(t,n,r,i){var a,o=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),a=0;a<i;++a)o+=n[r+a]<<8*a;t.Ra=o,t.bb=i,t.oa=n,t.pa=r}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;N(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=zn){var r=A(t)&qn[n];return t.u+=n,b(t),r}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function A(t){return t.Ra>>>(t.u&Un-1)>>>0}function N(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Un}function L(t,e){t.u=e,t.h=N(t)}function S(t){t.u>=Wn&&(e(t.u>=Wn),b(t))}function _(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 P(t){return g(t,1)}function k(t,e){var n=t.Ca;0>t.b&&_(t);var r=t.b,i=n*e>>>8,a=(t.I>>>r>i)+0;for(a?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Hn[r],t.b-=r,t.Ca=(n<<r)-1,a}function C(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function F(t,e){return t[e+0]<<0|t[e+1]<<8}function I(t,e){return F(t,e)|t[e+2]<<16}function j(t,e){return F(t,e)|F(t,e+2)<<16}function D(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=a(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function O(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function B(t,n,r,i){e(null!=r),e(null!=i);var a=r[0],o=i[0];return 0==a&&(a=(t*o+n/2)/n),0==o&&(o=(n*a+t/2)/t),0>=a||0>=o?0:(r[0]=a,i[0]=o,1)}function T(t,e){return t+(1<<e)-1>>>e}function E(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function R(e,n){t[n]=function(n,r,i,a,o,s,l){var u;for(u=0;u<o;++u){var c=t[e](s[l+u-1],i,a+u);s[l+u]=E(n[r+u],c)}}}function q(){this.ud=this.hd=this.jd=0}function z(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function U(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function W(t,e){return U(t+(t-e+.5>>1))}function H(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function V(t,e,n,r,i,a,o){for(r=a[o-1],n=0;n<i;++n)a[o+n]=r=E(t[e+n],r)}function G(t,e,n,r,i){var a;for(a=0;a<n;++a){var o=t[e+a],s=o>>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));r[i+a]=(4278255360&o)+l>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function J(t,e,n,r,i,a){var o;for(o=0;o<r;++o){var s=e[n+o],l=s>>>8,u=s,c=255&(c=(c=s>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(c<<24>>24)>>>5)),i[a+o]=(4278255360&s)+(c<<16)+u}}function X(e,n,r,i,a){t[n]=function(t,e,n,r,o,s,l,u,c){for(r=l;r<u;++r)for(l=0;l<c;++l)o[s++]=a(n[i(t[e++])])},t[e]=function(e,n,o,s,l,u,c){var h=8>>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>h)for(e=(1<<e.b)-1,p=(1<<h)-1;n<o;++n){var g,m=0;for(g=0;g<f;++g)g&e||(m=i(s[l++])),u[c++]=a(d[m&p]),m>>=h}else t["VP8LMapColor"+r](s,l,d,p,u,c,n,o,f)}}function K(t,e,n,r,i){for(n=e+n;e<n;){var a=t[e++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=a>>0&255}}function Z(t,e,n,r,i){for(n=e+n;e<n;){var a=t[e++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=a>>0&255,r[i++]=a>>24&255}}function $(t,e,n,r,i){for(n=e+n;e<n;){var a=(o=t[e++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;r[i++]=a,r[i++]=o}}function Q(t,e,n,r,i){for(n=e+n;e<n;){var a=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=a,r[i++]=o}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var a=t[e++];r[i++]=a>>0&255,r[i++]=a>>8&255,r[i++]=a>>16&255}}function et(t,e,n,i,a,o){if(0==o)for(n=e+n;e<n;)C(i,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else r(i,a,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 rt(t){return t==Wr||t==Hr||t==Vr||t==Gr}function it(){this.eb=[],this.size=this.A=this.fb=0}function at(){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 it,this.f.kb=new at,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 ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ct(t,e){var n=t.T,i=e.ba.f.RGBA,a=i.eb,o=i.fb+t.ka*i.A,s=vi[e.ba.S],l=t.y,u=t.O,c=t.f,h=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,b=t.ka,y=t.ka+t.T,w=t.U,x=w+1>>1;for(0==b?s(l,u,null,null,c,h,f,d,c,h,f,d,a,o,null,null,w):(s(e.ec,e.fc,l,u,p,g,m,v,c,h,f,d,a,o-i.A,a,o,w),++n);b+2<y;b+=2)p=c,g=h,m=f,v=d,h+=t.Rc,d+=t.Rc,o+=2*i.A,s(l,(u+=2*t.fa)-t.fa,l,u,p,g,m,v,c,h,f,d,a,o-i.A,a,o,w);return u+=t.fa,t.j+y<t.o?(r(e.ec,e.fc,l,u,w),r(e.cc,e.dc,c,h,x),r(e.Mc,e.Nc,f,d,x),n--):1&y||s(l,u,null,null,c,h,f,d,c,h,f,d,a,o+i.A,null,null,w),n}function ht(t,n,r){var i=t.F,a=[t.J];if(null!=i){var o=t.U,s=n.ba.S,l=s==qr||s==Vr;n=n.ba.f.RGBA;var u=[0],c=t.ka;u[0]=t.T,t.Kb&&(0==c?--u[0]:(--c,a[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-c));var h=n.eb;c=n.fb+c*n.A,t=Sr(i,a[0],t.width,o,u,h,c+(l?0:3),n.A),e(r==u),t&&rt(s)&&Nr(h,c,l,o,u,n.A)}return 0}function ft(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==Tr||n==Rr||n==qr||n==zr||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Bn(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&yn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=ut,t.Kb){if(n=t.U+1>>1,e.memory=a(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=ct,yn()}}else alert("todo:EmitYUV");i&&(e.Jb=ht,r&&vn())}if(r&&!Ii){for(t=0;256>t;++t)ji[t]=89858*(t-128)+_i>>Si,Mi[t]=-22014*(t-128)+_i,Oi[t]=-45773*(t-128),Di[t]=113618*(t-128)+_i>>Si;for(t=Pi;t<ki;++t)e=76283*(t-16)+_i>>Si,Bi[t-Pi]=Vt(e,255),Ti[t-Pi]=Vt(e+8>>4,15);Ii=1}return 1}function dt(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function pt(t){t.ma.memory=null}function gt(t,e,n,r){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,r[0]=y(t,1),0!=y(t,3)?0:!t.h)}function mt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+y(e,n)+1}function vt(t,e){return 120<e?e-120:1<=(n=((n=$r[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function bt(t,e,n){var r=A(n),i=t[e+=255&r].g-8;return 0<i&&(L(n,n.u+8),r=A(n),e+=t[e].value,e+=r&(1<<i)-1),L(n,n.u+t[e].g),t[e].value}function yt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function wt(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function xt(t,n,i,a){var o=t.ab,s=t.c*n,l=t.C;n=l+n;var u=i,c=a;for(a=t.Ta,i=t.Ua;0<o--;){var h=t.gc[o],f=l,d=n,p=u,g=c,m=(c=a,u=i,h.Ea);switch(e(f<d),e(d<=h.nc),h.hc){case 2:Yn(p,g,(d-f)*m,c,u);break;case 0:var v=f,b=d,y=c,w=u,x=(_=h).Ea;0==v&&(Vn(p,g,null,null,1,y,w),V(p,g+1,0,0,x-1,y,w+1),g+=x,w+=x,++v);for(var A=1<<_.b,N=A-1,L=T(x,_.b),S=_.K,_=_.w+(v>>_.b)*L;v<b;){var P=S,k=_,C=1;for(Gn(p,g,y,w-x,1,y,w);C<x;){var F=(C&~N)+A;F>x&&(F=x),(0,$n[P[k++]>>8&15])(p,g+ +C,y,w+C-x,F-C,y,w+C),C=F}g+=x,w+=x,++v&N||(_+=L)}d!=h.nc&&r(c,u-m,c,u+(d-f-1)*m,m);break;case 1:for(m=p,b=g,x=(p=h.Ea)-(w=p&~(y=(g=1<<h.b)-1)),v=T(p,h.b),A=h.K,h=h.w+(f>>h.b)*v;f<d;){for(N=A,L=h,S=new q,_=b+w,P=b+p;b<_;)Y(N[L++],S),Qn(S,m,b,g,c,u),b+=g,u+=g;b<P&&(Y(N[L++],S),Qn(S,m,b,x,c,u),b+=x,u+=x),++f&y||(h+=v)}break;case 3:if(p==c&&g==u&&0<h.b){for(b=c,p=m=u+(d-f)*m-(w=(d-f)*T(h.Ea,h.b)),g=c,y=u,v=[],w=(x=w)-1;0<=w;--w)v[w]=g[y+w];for(w=x-1;0<=w;--w)b[p+w]=v[w];Jn(h,f,d,c,m,c,u)}else Jn(h,f,d,p,g,c,u)}u=a,c=i}c!=i&&r(a,i,u,c,s)}function At(t,n){var r=t.V,i=t.Ba+t.c*t.C,a=n-t.C;if(e(n<=t.l.o),e(16>=a),0<a){var o=t.l,s=t.Ta,l=t.Ua,u=o.width;if(xt(t,a,r,i),a=l=[l],e((r=t.C)<(i=n)),e(o.v<o.va),i>o.o&&(i=o.o),r<o.j){var c=o.j-r;r=o.j,a[0]+=c*u}if(r>=i?r=0:(a[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=i-r,r=1),r){if(l=l[0],11>(r=t.ca).S){var h=r.f.RGBA,f=(i=r.S,a=o.U,o=o.T,c=h.eb,h.A),d=o;for(h=h.fb+t.Ma*h.A;0<d--;){var p=s,g=l,m=a,v=c,b=h;switch(i){case Br:tr(p,g,m,v,b);break;case Tr:er(p,g,m,v,b);break;case Wr:er(p,g,m,v,b),Nr(v,b,0,m,1,0);break;case Er:ir(p,g,m,v,b);break;case Rr:et(p,g,m,v,b,1);break;case Hr:et(p,g,m,v,b,1),Nr(v,b,0,m,1,0);break;case qr:et(p,g,m,v,b,0);break;case Vr:et(p,g,m,v,b,0),Nr(v,b,1,m,1,0);break;case zr:nr(p,g,m,v,b);break;case Gr:nr(p,g,m,v,b),Lr(v,b,m,1,0);break;case Ur:rr(p,g,m,v,b);break;default:e(0)}l+=u,h+=f}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function Nt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Lt(t,n,r,i,a,o){if(0!=t.Z){var s=t.qd,l=t.rd;for(e(null!=mi[t.Z]);n<r;++n)mi[t.Z](s,l,i,a,i,a,o),s=i,l=a,a+=o;t.qd=s,t.rd=l}}function St(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var a=t.l.width,o=r.ca,s=r.tb+a*i,l=t.V,u=t.Ba+t.c*i,c=t.gc;e(1==t.ab),e(3==c[0].hc),Kn(c[0],i,n,l,u,o,s),Lt(r,i,n,o,s,a)}t.C=t.Ma=n}function _t(t,n,r,i,a,o,s){var l=t.$/i,u=t.$%i,c=t.m,h=t.s,f=r+t.$,d=f;a=r+i*a;var p=r+i*o,g=280+h.ua,m=t.Pb?l:16777216,v=0<h.ua?h.Wa:null,b=h.wc,y=f<p?wt(h,u,l):null;e(t.C<o),e(p<=a);var w=!1;t:for(;;){for(;w||f<p;){var x=0;if(l>=m){var _=f-r;e((m=t).Pb),m.wd=m.m,m.xd=_,0<m.s.ua&&O(m.s.Wa,m.s.vb),m=l+ti}if(u&b||(y=wt(h,u,l)),e(null!=y),y.Qb&&(n[f]=y.qb,w=!0),!w)if(S(c),y.jc){x=c,_=n;var P=f,k=y.pd[A(x)&Rn-1];e(y.jc),256>k.g?(L(x,x.u+k.g),_[P]=k.value,x=0):(L(x,x.u+k.g-256),e(256<=k.value),x=k.value),0==x&&(w=!0)}else x=bt(y.G[0],y.H[0],c);if(c.h)break;if(w||256>x){if(!w)if(y.nd)n[f]=(y.qb|x<<8)>>>0;else{if(S(c),w=bt(y.G[1],y.H[1],c),S(c),_=bt(y.G[2],y.H[2],c),P=bt(y.G[3],y.H[3],c),c.h)break;n[f]=(P<<24|w<<16|x<<8|_)>>>0}if(w=!1,++f,++u>=i&&(u=0,++l,null!=s&&l<=o&&!(l%16)&&s(t,l),null!=v))for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=mt(x-256,c),_=bt(y.G[4],y.H[4],c),S(c),_=vt(i,_=mt(_,c)),c.h)break;if(f-r<_||a-f<x)break t;for(P=0;P<x;++P)n[f+P]=n[f+P-_];for(f+=x,u+=x;u>=i;)u-=i,++l,null!=s&&l<=o&&!(l%16)&&s(t,l);if(e(f<=a),u&b&&(y=wt(h,u,l)),null!=v)for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<g))break t;for(w=x-280,e(null!=v);d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=f,e(!(w>>>(_=v).Xa)),n[x]=_.X[w],w=!0}w||e(c.h==N(c))}if(t.Pb&&c.h&&f<a)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&O(t.s.vb,t.s.Wa);else{if(c.h)break t;null!=s&&s(t,l>o?o:l),t.a=0,t.$=f-r}return 1}return t.a=3,0}function Pt(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 kt(){var e=new sn;return null==e?null:(e.a=0,e.xb=gi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Yn=G,Qn=J,tr=K,er=Z,nr=$,rr=Q,ir=tt,t.VP8LMapColor32b=Xn,t.VP8LMapColor8b=Zn,e)}function Ct(t,n,r,s,l){var u=1,f=[t],p=[n],g=s.m,m=s.s,v=null,b=0;t:for(;;){if(r)for(;u&&y(g,1);){var w=f,x=p,N=s,_=1,P=N.m,k=N.gc[N.ab],C=y(P,2);if(N.Oc&1<<C)u=0;else{switch(N.Oc|=1<<C,k.hc=C,k.Ea=w[0],k.nc=x[0],k.K=[null],++N.ab,e(4>=N.ab),C){case 0:case 1:k.b=y(P,3)+2,_=Ct(T(k.Ea,k.b),T(k.nc,k.b),0,N,k.K),k.K=k.K[0];break;case 3:var F,I=y(P,8)+1,j=16<I?0:4<I?1:2<I?2:3;if(w[0]=T(k.Ea,j),k.b=j,F=_=Ct(I,1,0,N,k.K)){var O,M=I,B=k,R=1<<(8>>B.b),q=a(R);if(null==q)F=0;else{var z=B.K[0],U=B.w;for(q[0]=B.K[0][0],O=1;O<1*M;++O)q[O]=E(z[U+O],q[O-1]);for(;O<4*R;++O)q[O]=0;B.K[0]=null,B.K[0]=q,F=1}}_=F;break;case 2:break;default:e(0)}u=_}}if(f=f[0],p=p[0],u&&y(g,1)&&!(u=1<=(b=y(g,4))&&11>=b)){s.a=3;break t}var W;if(W=u)e:{var H,V,G,Y=s,J=f,X=p,K=b,Z=r,$=Y.m,Q=Y.s,tt=[null],et=1,nt=0,rt=Qr[K];n:for(;;){if(Z&&y($,1)){var it=y($,3)+2,at=T(J,it),ot=T(X,it),st=at*ot;if(!Ct(at,ot,0,Y,tt))break n;for(tt=tt[0],Q.xc=it,H=0;H<st;++H){var lt=tt[H]>>8&65535;tt[H]=lt,lt>=et&&(et=lt+1)}}if($.h)break n;for(V=0;5>V;++V){var ut=Xr[V];!V&&0<K&&(ut+=1<<K),nt<ut&&(nt=ut)}var ct=o(et*rt,h),ht=et,ft=o(ht,d);if(null==ft)var dt=null;else e(65536>=ht),dt=ft;var pt=a(nt);if(null==dt||null==pt||null==ct){Y.a=1;break n}var gt=ct;for(H=G=0;H<et;++H){var mt=dt[H],vt=mt.G,bt=mt.H,wt=0,xt=1,At=0;for(V=0;5>V;++V){ut=Xr[V],vt[V]=gt,bt[V]=G,!V&&0<K&&(ut+=1<<K);r:{var Nt,Lt=ut,St=Y,kt=pt,Ft=gt,It=G,jt=0,Dt=St.m,Ot=y(Dt,1);if(i(kt,0,0,Lt),Ot){var Mt=y(Dt,1)+1,Bt=y(Dt,1),Tt=y(Dt,0==Bt?1:8);kt[Tt]=1,2==Mt&&(kt[Tt=y(Dt,8)]=1);var Et=1}else{var Rt=a(19),qt=y(Dt,4)+4;if(19<qt){St.a=3;var zt=0;break r}for(Nt=0;Nt<qt;++Nt)Rt[Zr[Nt]]=y(Dt,3);var Ut=void 0,Wt=void 0,Ht=St,Vt=Rt,Gt=Lt,Yt=kt,Jt=0,Xt=Ht.m,Kt=8,Zt=o(128,h);i:for(;c(Zt,0,7,Vt,19);){if(y(Xt,1)){var $t=2+2*y(Xt,3);if((Ut=2+y(Xt,$t))>Gt)break i}else Ut=Gt;for(Wt=0;Wt<Gt&&Ut--;){S(Xt);var Qt=Zt[0+(127&A(Xt))];L(Xt,Xt.u+Qt.g);var te=Qt.value;if(16>te)Yt[Wt++]=te,0!=te&&(Kt=te);else{var ee=16==te,ne=te-16,re=Jr[ne],ie=y(Xt,Yr[ne])+re;if(Wt+ie>Gt)break i;for(var ae=ee?Kt:0;0<ie--;)Yt[Wt++]=ae}}Jt=1;break i}Jt||(Ht.a=3),Et=Jt}(Et=Et&&!Dt.h)&&(jt=c(Ft,It,8,kt,Lt)),Et&&0!=jt?zt=jt:(St.a=3,zt=0)}if(0==zt)break n;if(xt&&1==Kr[V]&&(xt=0==gt[G].g),wt+=gt[G].g,G+=zt,3>=V){var oe,se=pt[0];for(oe=1;oe<ut;++oe)pt[oe]>se&&(se=pt[oe]);At+=se}}if(mt.nd=xt,mt.Qb=0,xt&&(mt.qb=(vt[3][bt[3]+0].value<<24|vt[1][bt[1]+0].value<<16|vt[2][bt[2]+0].value)>>>0,0==wt&&256>vt[0][bt[0]+0].value&&(mt.Qb=1,mt.qb+=vt[0][bt[0]+0].value<<8)),mt.jc=!mt.Qb&&6>At,mt.jc){var le,ue=mt;for(le=0;le<Rn;++le){var ce=le,he=ue.pd[ce],fe=ue.G[0][ue.H[0]+ce];256<=fe.value?(he.g=fe.g+256,he.value=fe.value):(he.g=0,he.value=0,ce>>=yt(fe,8,he),ce>>=yt(ue.G[1][ue.H[1]+ce],16,he),ce>>=yt(ue.G[2][ue.H[2]+ce],0,he),yt(ue.G[3][ue.H[3]+ce],24,he))}}}Q.vc=tt,Q.Wb=et,Q.Ya=dt,Q.yc=ct,W=1;break e}W=0}if(!(u=W)){s.a=3;break t}if(0<b){if(m.ua=1<<b,!D(m.Wa,b)){s.a=1,u=0;break t}}else m.ua=0;var de=s,pe=f,ge=p,me=de.s,ve=me.xc;if(de.c=pe,de.i=ge,me.md=T(pe,ve),me.wc=0==ve?-1:(1<<ve)-1,r){s.xb=pi;break t}if(null==(v=a(f*p))){s.a=1,u=0;break t}u=(u=_t(s,v,0,f,p,p,null))&&!g.h;break t}return u?(null!=l?l[0]=v:(e(null==v),e(r)),s.$=0,r||Pt(m)):Pt(m),u}function Ft(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=a(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function It(t,n){var r=t.C,i=n-r,a=t.V,o=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var s=16<i?16:i,l=t.l.ma,u=t.l.width,c=u*s,h=l.ca,f=l.tb+u*r,d=t.Ta,p=t.Ua;xt(t,s,a,o),_r(d,p,h,f,c),Lt(l,r,r+s,h,f,u),i-=s,a+=s*t.c,r+=s}e(r==n),t.C=t.Ma=n}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Dt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ot(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var t=[];return function t(e,n,r){for(var i=r[n],a=0;a<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));a++)t(e[a],n+1,r)}(t,0,[3,11]),t}()}function Bt(){this.jb=a(3),this.Wc=s([4,8],Mt),this.Xc=s([4,17],Mt)}function Tt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Et(){this.ld=this.La=this.dd=this.tc=0}function Rt(){this.Na=this.la=0}function qt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function zt(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ut(){this.uc=this.M=this.Nb=0,this.wa=Array(new Et),this.Y=0,this.ya=Array(new zt),this.aa=0,this.l=new Gt}function Wt(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Ht(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Dt,this.ed=new Tt,this.Qa=new Ot,this.Ic=this.$c=this.Aa=0,this.D=new Ut,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,qt),this.Pa=new Bt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Wt),this.Hd=0,this.rb=Array(new Rt),this.sb=0,this.wa=Array(new Et),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 zt),this.L=this.aa=0,this.gd=s([4,2],Et),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 Vt(t,e){return 0>t?0:t>e?e:t}function Gt(){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 Yt(){var t=new Ht;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ri||(ri=Zt)),t}function Jt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Xt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Kt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Jt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,a=n.w,o=n.ha;if(4>o)return Jt(t,7,"Truncated header.");var s=r[a+0]|r[a+1]<<8|r[a+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 Jt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Jt(t,4,"Frame not displayable.");a+=3,o-=3;var u=t.Kc;if(l.Rb){if(7>o)return Jt(t,7,"cannot parse picture header");if(!Xt(r,a,o))return Jt(t,3,"Bad code word");u.c=16383&(r[a+4]<<8|r[a+3]),u.Td=r[a+4]>>6,u.i=16383&(r[a+6]<<8|r[a+5]),u.Ud=r[a+6]>>6,a+=7,o-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(l.ub>o)return Jt(t,7,"bad partition length");p(s=t.m,r,a,l.ub),a+=l.ub,o-=l.ub,l.Rb&&(u.Ld=P(s),u.Kd=P(s)),u=t.Qa;var c,h=t.Pa;if(e(null!=s),e(null!=u),u.Cb=P(s),u.Cb){if(u.Bb=P(s),P(s)){for(u.Fb=P(s),c=0;4>c;++c)u.Zb[c]=P(s)?m(s,7):0;for(c=0;4>c;++c)u.Lb[c]=P(s)?m(s,6):0}if(u.Bb)for(c=0;3>c;++c)h.jb[c]=P(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Jt(t,3,"cannot parse segment header");if((u=t.ed).zd=P(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=P(s),u.Pc&&P(s)){for(h=0;4>h;++h)P(s)&&(u.vd[h]=m(s,6));for(h=0;4>h;++h)P(s)&&(u.od[h]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Jt(t,3,"cannot parse filter header");var f=o;if(o=c=a,a=c+f,u=f,t.Xb=(1<<g(t.m,2))-1,f<3*(h=t.Xb))r=7;else{for(c+=3*h,u-=3*h,f=0;f<h;++f){var d=r[o+0]|r[o+1]<<8|r[o+2]<<16;d>u&&(d=u),p(t.Jc[+f],r,c,d),c+=d,u-=d,o+=3}p(t.Jc[+h],r,c,u),r=c<a?0:5}if(0!=r)return Jt(t,r,"cannot parse partitions");for(r=g(c=t.m,7),o=P(c)?m(c,4):0,a=P(c)?m(c,4):0,u=P(c)?m(c,4):0,h=P(c)?m(c,4):0,c=P(c)?m(c,4):0,f=t.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=r)}else{if(0<d){t.pb[d]=t.pb[0];continue}v=r}var b=t.pb[d];b.Sc[0]=ei[Vt(v+o,127)],b.Sc[1]=ni[Vt(v+0,127)],b.Eb[0]=2*ei[Vt(v+a,127)],b.Eb[1]=101581*ni[Vt(v+u,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ei[Vt(v+h,117)],b.Qc[1]=ni[Vt(v+c,127)],b.lc=v+c}if(!l.Rb)return Jt(t,4,"Not a key frame.");for(P(s),l=t.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(a=0;3>a;++a)for(u=0;11>u;++u)h=k(s,ui[r][o][a][u])?g(s,8):si[r][o][a][u],l.Wc[r][o].Yb[a][u]=h;for(o=0;17>o;++o)l.Xc[r][o]=l.Wc[r][ci[o]]}return t.kc=P(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function Zt(t,e,n,r,i,a,o){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!k(t,s[n+0]))return i;for(;!k(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var l=e[i+1].Yb;if(k(t,s[n+2])){var u=t,c=0;if(k(u,(f=s)[(h=n)+3]))if(k(u,f[h+6])){for(s=0,h=2*(c=k(u,f[h+8]))+(f=k(u,f[h+9+c])),c=0,f=ii[h];f[s];++s)c+=c+k(u,f[s]);c+=3+(8<<h)}else k(u,f[h+7])?(c=7+2*k(u,165),c+=k(u,145)):c=5+k(u,159);else c=k(u,f[h+4])?3+k(u,f[h+5]):2;s=l[2]}else c=1,s=l[1];l=o+ai[i],0>(u=t).b&&_(u);var h,f=u.b,d=(h=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(h+1&d)<<f,a[l]=((c^d)-d)*r[(0<i)+0]}return 16}function $t(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,n){if(null==t)return 0;if(null==n)return Jt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Kt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=Ri[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 u;if(t.Qa.Cb){var c=t.Qa.Lb[s];t.Qa.Fb||(c+=l.Tb)}else c=l.Tb;for(u=0;1>=u;++u){var h=t.gd[s][u],f=c;if(l.Pc&&(f+=l.vd[0],u&&(f+=l.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<l.wb&&(d=4<l.wb?d>>2:d>>1)>9-l.wb&&(d=9-l.wb),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:15<=f?1:0}else h.tc=0;h.La=u}}}s=0}else Jt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=zi);t:{s=t.Ic,l=4*(d=t.za);var p=32*d,g=d+1,m=0<t.L?d*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*d;if((h=l+832+(u=3*(16*s+Ri[t.L])/2*p)+(c=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=h)s=0;else{if(h>t.Vb){if(t.Vb=0,t.Ec=a(h),t.Fc=0,null==t.Ec){s=Jt(t,1,"no memory during frame initialization.");break t}t.Vb=h}h=t.Ec,f=t.Fc,t.Ac=h,t.Bc=f,f+=l,t.Gd=o(p,Wt),t.Hd=0,t.rb=o(g+1,Rt),t.sb=1,t.wa=m?o(m,Et):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=h,t.pc=f,f+=832,t.ya=o(v,zt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=Ri[t.L])*t.R,p=p/2*t.B,t.sa=h,t.ta=f+d,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,f+=u,t.mb=c?h:null,t.nb=c?f:null,e(f+c<=t.Fc+t.Vb),$t(t),i(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,!Ir){for(s=-255;255>=s;++s)Pr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)kr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Cr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Fr[255+s]=0>s?0:255<s?255:s;Ir=1}ar=ue,or=ae,lr=oe,ur=se,cr=le,sr=ie,hr=Je,fr=Xe,dr=$e,pr=Qe,gr=Ke,mr=Ze,vr=tn,br=en,yr=Ue,wr=We,xr=He,Ar=Ve,fi[0]=Le,fi[1]=he,fi[2]=Ae,fi[3]=Ne,fi[4]=Se,fi[5]=Pe,fi[6]=_e,fi[7]=ke,fi[8]=Fe,fi[9]=Ce,hi[0]=ve,hi[1]=de,hi[2]=pe,hi[3]=ge,hi[4]=be,hi[5]=ye,hi[6]=we,di[0]=Oe,di[1]=fe,di[2]=Ie,di[3]=je,di[4]=Be,di[5]=Me,di[6]=Te,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,u=t;for(o=0;o<u.za;++o){var c=l,h=u,f=h.Ac,d=h.Bc+4*o,p=h.zc,g=h.ya[h.aa+o];if(h.Qa.Bb?g.$b=k(c,h.Pa.jb[0])?2+k(c,h.Pa.jb[2]):k(c,h.Pa.jb[1]):g.$b=0,h.kc&&(g.Ad=k(c,h.Bd)),g.Za=!k(c,145)+0,g.Za){var m=g.Ob,v=0;for(h=0;4>h;++h){var b,y=p[0+h];for(b=0;4>b;++b){y=li[f[d+b]][y];for(var w=oi[k(c,y[0])];0<w;)w=oi[2*w+k(c,y[w])];y=-w,f[d+b]=y}r(m,v,f,d,4),v+=4,p[0+h]=y}}else y=k(c,156)?k(c,128)?1:3:k(c,163)?2:0,g.Ob[0]=y,i(f,d,y,4),i(p,0,y,4);g.Dd=k(c,142)?k(c,114)?k(c,183)?1:3:2:0}if(u.m.Ka)return Jt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,c=(l=t).rb[l.sb-1],f=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],d=l.kc?o.Ad:0)c.la=f.la=0,o.Za||(c.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var x,A;if(c=f,f=u,d=l.Pa.Xc,p=l.ya[l.aa+l.ja],g=l.pb[p.$b],h=p.ad,m=0,v=l.rb[l.sb-1],y=b=0,i(h,m,0,384),p.Za)var N=0,L=d[3];else{w=a(16);var S=c.Na+v.Na;if(S=ri(f,d[1],S,g.Eb,0,w,0),c.Na=v.Na=(0<S)+0,1<S)ar(w,0,h,m);else{var _=w[0]+3>>3;for(w=0;256>w;w+=16)h[m+w]=_}N=1,L=d[0]}var P=15&c.la,C=15&v.la;for(w=0;4>w;++w){var F=1&C;for(_=A=0;4>_;++_)P=P>>1|(F=(S=ri(f,L,S=F+(1&P),g.Sc,N,h,m))>N)<<7,A=A<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;P>>=4,C=C>>1|F<<7,b=(b<<8|A)>>>0}for(L=P,N=C>>4,x=0;4>x;x+=2){for(A=0,P=c.la>>4+x,C=v.la>>4+x,w=0;2>w;++w){for(F=1&C,_=0;2>_;++_)S=F+(1&P),P=P>>1|(F=0<(S=ri(f,d[2],S,g.Qc,0,h,m)))<<3,A=A<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;P>>=2,C=C>>1|F<<5}y|=A<<4*x,L|=P<<4<<x,N|=(240&C)<<x}c.la=L,v.la=N,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!d),u.Ka)return Jt(t,7,"Premature end-of-file encountered.")}if($t(t),l=n,u=1,o=(s=t).D,c=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=c,On(s,o),u=1,o=(A=s.D).Nb,c=(y=Ri[s.L])*s.R,f=y/2*s.B,w=16*o*s.R,_=8*o*s.B,d=s.sa,p=s.ta-c+w,g=s.qa,h=s.ra-f+_,m=s.Ha,v=s.Ia-f+_,C=0==(P=A.M),b=P>=s.Va-1,2==s.Aa&&On(s,A),A.uc)for(F=(S=s).D.M,e(S.D.uc),A=S.yb;A<S.Hb;++A){N=A,L=F;var I=(j=(z=S).D).Nb;x=z.R;var j=j.wa[j.Y+N],D=z.sa,O=z.ta+16*I*x+16*N,M=j.dd,B=j.tc;if(0!=B)if(e(3<=B),1==z.L)0<N&&wr(D,O,x,B+4),j.La&&Ar(D,O,x,B),0<L&&yr(D,O,x,B+4),j.La&&xr(D,O,x,B);else{var T=z.B,E=z.qa,R=z.ra+8*I*T+8*N,q=z.Ha,z=z.Ia+8*I*T+8*N;I=j.ld,0<N&&(fr(D,O,x,B+4,M,I),pr(E,R,q,z,T,B+4,M,I)),j.La&&(mr(D,O,x,B,M,I),br(E,R,q,z,T,B,M,I)),0<L&&(hr(D,O,x,B+4,M,I),dr(E,R,q,z,T,B+4,M,I)),j.La&&(gr(D,O,x,B,M,I),vr(E,R,q,z,T,B,M,I))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(A=16*P,P=16*(P+1),C?(l.y=s.sa,l.O=s.ta+w,l.f=s.qa,l.N=s.ra+_,l.ea=s.Ha,l.W=s.Ia+_):(A-=y,l.y=d,l.O=p,l.f=g,l.N=h,l.ea=m,l.W=v),b||(P-=y),P>l.o&&(P=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&A<P&&(l.J=fn(s,l,A,P-A),l.F=s.mb,null==l.F&&0==l.F.length)){u=Jt(s,3,"Could not decode alpha data.");break t}A<l.j&&(y=l.j-A,A=l.j,e(!(1&y)),l.O+=s.R*y,l.N+=s.B*(y>>1),l.W+=s.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),A<P&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=A-l.j,l.U=l.va-l.v,l.T=P-A,u=l.put(l))}o+1!=s.Ic||b||(r(s.sa,s.ta-c,d,p+16*s.R,c),r(s.qa,s.ra-f,g,h+8*s.B,f),r(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!u)return Jt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function te(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function ee(t,e,n,r,i,a){te(t,e,0,n,r+i),te(t,e,1,n,r+a),te(t,e,2,n,r-a),te(t,e,3,n,r-i)}function ne(t){return(20091*t>>16)+t}function re(t,e,n,r){var i,o=0,s=a(16);for(i=0;4>i;++i){var l=t[e+0]+t[e+8],u=t[e+0]-t[e+8],c=(35468*t[e+4]>>16)-ne(t[e+12]),h=ne(t[e+4])+(35468*t[e+12]>>16);s[o+0]=l+h,s[o+1]=u+c,s[o+2]=u-c,s[o+3]=l-h,o+=4,e++}for(i=o=0;4>i;++i)l=(t=s[o+0]+4)+s[o+8],u=t-s[o+8],c=(35468*s[o+4]>>16)-ne(s[o+12]),te(n,r,0,0,l+(h=ne(s[o+4])+(35468*s[o+12]>>16))),te(n,r,1,0,u+c),te(n,r,2,0,u-c),te(n,r,3,0,l-h),o++,r+=32}function ie(t,e,n,r){var i=t[e+0]+4,a=35468*t[e+4]>>16,o=ne(t[e+4]),s=35468*t[e+1]>>16;ee(n,r,0,i+o,t=ne(t[e+1]),s),ee(n,r,1,i+a,t,s),ee(n,r,2,i-a,t,s),ee(n,r,3,i-o,t,s)}function ae(t,e,n,r,i){re(t,e,n,r),i&&re(t,e+16,n,r+4)}function oe(t,e,n,r){or(t,e+0,n,r,1),or(t,e+32,n,r+128,1)}function se(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(n,r,e,i,t)}function le(t,e,n,r){t[e+0]&&ur(t,e+0,n,r),t[e+16]&&ur(t,e+16,n,r+4),t[e+32]&&ur(t,e+32,n,r+128),t[e+48]&&ur(t,e+48,n,r+128+4)}function ue(t,e,n,r){var i,o=a(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],l=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],c=t[e+0+i]-t[e+12+i];o[0+i]=s+l,o[8+i]=s-l,o[4+i]=c+u,o[12+i]=c-u}for(i=0;4>i;++i)s=(t=o[0+4*i]+3)+o[3+4*i],l=o[1+4*i]+o[2+4*i],u=o[1+4*i]-o[2+4*i],c=t-o[3+4*i],n[r+0]=s+l>>3,n[r+16]=c+u>>3,n[r+32]=s-l>>3,n[r+48]=c-u>>3,r+=64}function ce(t,e,n){var r,i=e-32,a=Or,o=255-t[i-1];for(r=0;r<n;++r){var s,l=a,u=o+t[e-1];for(s=0;s<n;++s)t[e+s]=l[u+t[i+s]];e+=32}}function he(t,e){ce(t,e,4)}function fe(t,e){ce(t,e,8)}function de(t,e){ce(t,e,16)}function pe(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function ge(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function me(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function ve(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];me(r>>5,t,e)}function be(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];me(r>>4,t,e)}function ye(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];me(r>>4,t,e)}function we(t,e){me(128,t,e)}function xe(t,e,n){return t+2*e+n+2>>2}function Ae(t,e){var n,i=e-32;for(i=new Uint8Array([xe(t[i-1],t[i+0],t[i+1]),xe(t[i+0],t[i+1],t[i+2]),xe(t[i+1],t[i+2],t[i+3]),xe(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function Ne(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],a=t[e-1+96];C(t,e+0,16843009*xe(t[e-1-32],n,r)),C(t,e+32,16843009*xe(n,r,i)),C(t,e+64,16843009*xe(r,i,a)),C(t,e+96,16843009*xe(i,a,a))}function Le(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function Se(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+96]=xe(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=xe(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=xe(a,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=xe(o,a,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=xe(s,o,a),t[e+3+32]=t[e+2+0]=xe(l,s,o),t[e+3+0]=xe(u,l,s)}function _e(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],a=t[e+4-32],o=t[e+5-32],s=t[e+6-32],l=t[e+7-32];t[e+0+0]=xe(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=xe(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=xe(r,i,a),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=xe(i,a,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=xe(a,o,s),t[e+3+64]=t[e+2+96]=xe(o,s,l),t[e+3+96]=xe(s,l,l)}function Pe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=a+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+u+1>>1,t[e+0+96]=xe(i,r,n),t[e+0+64]=xe(r,n,a),t[e+0+32]=t[e+1+96]=xe(n,a,o),t[e+1+32]=t[e+2+96]=xe(a,o,s),t[e+2+32]=t[e+3+96]=xe(o,s,l),t[e+3+32]=xe(s,l,u)}function ke(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],a=t[e+3-32],o=t[e+4-32],s=t[e+5-32],l=t[e+6-32],u=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+a+1>>1,t[e+3+0]=t[e+2+64]=a+o+1>>1,t[e+0+32]=xe(n,r,i),t[e+1+32]=t[e+0+96]=xe(r,i,a),t[e+2+32]=t[e+1+96]=xe(i,a,o),t[e+3+32]=t[e+2+96]=xe(a,o,s),t[e+3+64]=xe(o,s,l),t[e+3+96]=xe(s,l,u)}function Ce(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+a+1>>1,t[e+1+0]=xe(n,r,i),t[e+3+0]=t[e+1+32]=xe(r,i,a),t[e+3+32]=t[e+1+64]=xe(i,a,a),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=a}function Fe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1+96],o=t[e-1-32],s=t[e+0-32],l=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=a+i+1>>1,t[e+3+0]=xe(s,l,u),t[e+2+0]=xe(o,s,l),t[e+1+0]=t[e+3+32]=xe(n,o,s),t[e+1+32]=t[e+3+64]=xe(r,n,o),t[e+1+64]=t[e+3+96]=xe(i,r,n),t[e+1+96]=xe(a,i,r)}function Ie(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function je(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function De(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function Oe(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];De(r>>4,t,e)}function Me(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];De(r>>3,t,e)}function Be(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];De(r>>3,t,e)}function Te(t,e){De(128,t,e)}function Ee(t,e,n){var r=t[e-n],i=t[e+0],a=3*(i-r)+jr[1020+t[e-2*n]-t[e+n]],o=Dr[112+(a+4>>3)];t[e-n]=Or[255+r+Dr[112+(a+3>>3)]],t[e+0]=Or[255+i-o]}function Re(t,e,n,r){var i=t[e+0],a=t[e+n];return Mr[255+t[e-2*n]-t[e-n]]>r||Mr[255+a-i]>r}function qe(t,e,n,r){return 4*Mr[255+t[e-n]-t[e+0]]+Mr[255+t[e-2*n]-t[e+n]]<=r}function ze(t,e,n,r,i){var a=t[e-3*n],o=t[e-2*n],s=t[e-n],l=t[e+0],u=t[e+n],c=t[e+2*n],h=t[e+3*n];return 4*Mr[255+s-l]+Mr[255+o-u]>r?0:Mr[255+t[e-4*n]-a]<=i&&Mr[255+a-o]<=i&&Mr[255+o-s]<=i&&Mr[255+h-c]<=i&&Mr[255+c-u]<=i&&Mr[255+u-l]<=i}function Ue(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)qe(t,e+r,n,i)&&Ee(t,e+r,n)}function We(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)qe(t,e+r*n,1,i)&&Ee(t,e+r*n,1)}function He(t,e,n,r){var i;for(i=3;0<i;--i)Ue(t,e+=4*n,n,r)}function Ve(t,e,n,r){var i;for(i=3;0<i;--i)We(t,e+=4,n,r)}function Ge(t,e,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(ze(t,e,n,a,o))if(Re(t,e,n,s))Ee(t,e,n);else{var l=t,u=e,c=n,h=l[u-2*c],f=l[u-c],d=l[u+0],p=l[u+c],g=l[u+2*c],m=27*(b=jr[1020+3*(d-f)+jr[1020+h-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;l[u-3*c]=Or[255+l[u-3*c]+b],l[u-2*c]=Or[255+h+v],l[u-c]=Or[255+f+m],l[u+0]=Or[255+d-m],l[u+c]=Or[255+p-v],l[u+2*c]=Or[255+g-b]}e+=r}}function Ye(t,e,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(ze(t,e,n,a,o))if(Re(t,e,n,s))Ee(t,e,n);else{var l=t,u=e,c=n,h=l[u-c],f=l[u+0],d=l[u+c],p=Dr[112+(4+(g=3*(f-h))>>3)],g=Dr[112+(g+3>>3)],m=p+1>>1;l[u-2*c]=Or[255+l[u-2*c]+m],l[u-c]=Or[255+h+g],l[u+0]=Or[255+f-p],l[u+c]=Or[255+d-m]}e+=r}}function Je(t,e,n,r,i,a){Ge(t,e,n,1,16,r,i,a)}function Xe(t,e,n,r,i,a){Ge(t,e,1,n,16,r,i,a)}function Ke(t,e,n,r,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4*n,n,1,16,r,i,a)}function Ze(t,e,n,r,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4,1,n,16,r,i,a)}function $e(t,e,n,r,i,a,o,s){Ge(t,e,i,1,8,a,o,s),Ge(n,r,i,1,8,a,o,s)}function Qe(t,e,n,r,i,a,o,s){Ge(t,e,1,i,8,a,o,s),Ge(n,r,1,i,8,a,o,s)}function tn(t,e,n,r,i,a,o,s){Ye(t,e+4*i,i,1,8,a,o,s),Ye(n,r+4*i,i,1,8,a,o,s)}function en(t,e,n,r,i,a,o,s){Ye(t,e+4,1,i,8,a,o,s),Ye(n,r+4,1,i,8,a,o,s)}function nn(){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 rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function sn(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=o(4,an),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function un(t,e,n,r,i,a,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)i[a+e]=t+n[r+e]&255,t=i[a+e]}function cn(t,e,n,r,i,a,o){var s;if(null==t)un(null,null,n,r,i,a,o);else for(s=0;s<o;++s)i[a+s]=t[e+s]+n[r+s]&255}function hn(t,e,n,r,i,a,o){if(null==t)un(null,null,n,r,i,a,o);else{var s,l=t[e+0],u=l,c=l;for(s=0;s<o;++s)u=c+(l=t[e+s])-u,c=n[r+s]+(-256&u?0>u?0:255:u)&255,u=l,i[a+s]=c}}function fn(t,n,i,o){var s=n.width,l=n.o;if(e(null!=t&&null!=n),0>i||0>=o||i+o>l)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new ln,(u=null==t.ga)||(u=n.width*n.o,e(0==t.Gb.length),t.Gb=a(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var c=t.Fa,h=t.P,f=t.qc,d=t.mb,p=t.nb,g=h+1,m=f-1,b=u.l;if(e(null!=c&&null!=d&&null!=n),mi[0]=null,mi[1]=un,mi[2]=cn,mi[3]=hn,u.ca=d,u.tb=p,u.c=n.width,u.i=n.height,e(0<u.c&&0<u.i),1>=f)n=0;else if(u.$a=c[h+0]>>0&3,u.Z=c[h+0]>>2&3,u.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)n=0;else if(b.put=dt,b.ac=ft,b.bc=pt,b.ma=u,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,u.$a)t:{e(1==u.$a),n=kt();e:for(;;){if(null==n){n=0;break t}if(e(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,v(n.m,c,g,m),!Ct(u.c,u.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&Nt(n.s)?(u.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=a(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Ft(n,u.c)),!n)break e;n=1;break t}u.mc=null,n=0}else n=m>=u.c*u.i;u=!n}if(u)return null;1!=t.ga.Lc?t.Ga=0:o=l-i}e(null!=t.ga),e(i+o<=l);t:{if(n=(c=t.ga).c,l=c.l.o,0==c.$a){if(g=t.rc,m=t.Vc,b=t.Fa,h=t.P+1+i*n,f=t.mb,d=t.nb+i*n,e(h<=t.P+t.qc),0!=c.Z)for(e(null!=mi[c.Z]),u=0;u<o;++u)mi[c.Z](g,m,b,h,f,d,n),g=f,m=d,d+=n,h+=n;else for(u=0;u<o;++u)r(f,d,b,h,n),g=f,m=d,d+=n,h+=n;t.rc=g,t.Vc=m}else{if(e(null!=c.mc),n=i+o,e(null!=(u=c.mc)),e(n<=u.i),u.C>=n)n=1;else if(c.ic||vn(),c.ic){c=u.V,g=u.Ba,m=u.c;var y=u.i,w=(b=1,h=u.$/m,f=u.$%m,d=u.m,p=u.s,u.$),x=m*y,A=m*n,L=p.wc,_=w<A?wt(p,f,h):null;e(w<=x),e(n<=y),e(Nt(p));e:for(;;){for(;!d.h&&w<A;){if(f&L||(_=wt(p,f,h)),e(null!=_),S(d),256>(y=bt(_.G[0],_.H[0],d)))c[g+w]=y,++w,++f>=m&&(f=0,++h<=n&&!(h%16)&&St(u,h));else{if(!(280>y)){b=0;break e}y=mt(y-256,d);var P,k=bt(_.G[4],_.H[4],d);if(S(d),!(w>=(k=vt(m,k=mt(k,d)))&&x-w>=y)){b=0;break e}for(P=0;P<y;++P)c[g+w+P]=c[g+w+P-k];for(w+=y,f+=y;f>=m;)f-=m,++h<=n&&!(h%16)&&St(u,h);w<A&&f&L&&(_=wt(p,f,h))}e(d.h==N(d))}St(u,h>n?n:h);break e}!b||d.h&&w<x?(b=0,u.a=d.h?5:3):u.$=w,n=b}else n=_t(u,u.V,u.Ba,u.c,u.i,n,It);if(!n){o=0;break t}}i+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+i*s}function dn(t,e,n,r,i,a){for(;0<i--;){var o,s=t,l=e+(n?1:0),u=t,c=e+(n?0:3);for(o=0;o<r;++o){var h=u[c+4*o];255!=h&&(h*=32897,s[l+4*o+0]=s[l+4*o+0]*h>>23,s[l+4*o+1]=s[l+4*o+1]*h>>23,s[l+4*o+2]=s[l+4*o+2]*h>>23)}e+=a}}function pn(t,e,n,r,i){for(;0<r--;){var a;for(a=0;a<n;++a){var o=t[e+2*a+0],s=15&(u=t[e+2*a+1]),l=4369*s,u=(240&u|u>>4)*l>>16;t[e+2*a+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,t[e+2*a+1]=240&u|s}e+=i}}function gn(t,e,n,r,i,a,o,s){var l,u,c=255;for(u=0;u<i;++u){for(l=0;l<r;++l){var h=t[e+l];a[o+4*l]=h,c&=h}e+=n,o+=s}return 255!=c}function mn(t,e,n,r,i){var a;for(a=0;a<i;++a)n[r+a]=t[e+a]>>8}function vn(){Nr=dn,Lr=pn,Sr=gn,_r=mn}function bn(n,r,i){t[n]=function(t,n,a,o,s,l,u,c,h,f,d,p,g,m,v,b,y){var w,x=y-1>>1,A=s[l+0]|u[c+0]<<16,N=h[f+0]|d[p+0]<<16;e(null!=t);var L=3*A+N+131074>>2;for(r(t[n+0],255&L,L>>16,g,m),null!=a&&(L=3*N+A+131074>>2,r(a[o+0],255&L,L>>16,v,b)),w=1;w<=x;++w){var S=s[l+w]|u[c+w]<<16,_=h[f+w]|d[p+w]<<16,P=A+S+N+_+524296,k=P+2*(S+N)>>3;L=k+A>>1,A=(P=P+2*(A+_)>>3)+S>>1,r(t[n+2*w-1],255&L,L>>16,g,m+(2*w-1)*i),r(t[n+2*w-0],255&A,A>>16,g,m+(2*w-0)*i),null!=a&&(L=P+N>>1,A=k+_>>1,r(a[o+2*w-1],255&L,L>>16,v,b+(2*w-1)*i),r(a[o+2*w+0],255&A,A>>16,v,b+(2*w+0)*i)),A=S,N=_}1&y||(L=3*A+N+131074>>2,r(t[n+y-1],255&L,L>>16,g,m+(y-1)*i),null!=a&&(L=3*N+A+131074>>2,r(a[o+y-1],255&L,L>>16,v,b+(y-1)*i)))}}function yn(){vi[Br]=bi,vi[Tr]=wi,vi[Er]=yi,vi[Rr]=xi,vi[qr]=Ai,vi[zr]=Ni,vi[Ur]=Li,vi[Wr]=wi,vi[Hr]=xi,vi[Vr]=Ai,vi[Gr]=Ni}function wn(t){return t&~Fi?0>t?0:255:t>>Ci}function xn(t,e){return wn((19077*t>>8)+(26149*e>>8)-14234)}function An(t,e,n){return wn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function Nn(t,e){return wn((19077*t>>8)+(33050*e>>8)-17685)}function Ln(t,e,n,r,i){r[i+0]=xn(t,n),r[i+1]=An(t,e,n),r[i+2]=Nn(t,e)}function Sn(t,e,n,r,i){r[i+0]=Nn(t,e),r[i+1]=An(t,e,n),r[i+2]=xn(t,n)}function _n(t,e,n,r,i){var a=An(t,e,n);e=a<<3&224|Nn(t,e)>>3,r[i+0]=248&xn(t,n)|a>>5,r[i+1]=e}function Pn(t,e,n,r,i){var a=240&Nn(t,e)|15;r[i+0]=240&xn(t,n)|An(t,e,n)>>4,r[i+1]=a}function kn(t,e,n,r,i){r[i+0]=255,Ln(t,e,n,r,i+1)}function Cn(t,e,n,r,i){Sn(t,e,n,r,i),r[i+3]=255}function Fn(t,e,n,r,i){Ln(t,e,n,r,i),r[i+3]=255}function Vt(t,e){return 0>t?0:t>e?e:t}function In(e,n,r){t[e]=function(t,e,i,a,o,s,l,u,c){for(var h=u+(-2&c)*r;u!=h;)n(t[e+0],i[a+0],o[s+0],l,u),n(t[e+1],i[a+0],o[s+0],l,u+r),e+=2,++a,++s,u+=2*r;1&c&&n(t[e+0],i[a+0],o[s+0],l,u)}}function jn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function Dn(t,e,n,r,i){switch(t>>>30){case 3:or(e,n,r,i,0);break;case 2:sr(e,n,r,i);break;case 1:ur(e,n,r,i)}}function On(t,e){var n,a,o=e.M,s=e.Nb,l=t.oc,u=t.pc+40,c=t.oc,h=t.pc+584,f=t.oc,d=t.pc+600;for(n=0;16>n;++n)l[u+32*n-1]=129;for(n=0;8>n;++n)c[h+32*n-1]=129,f[d+32*n-1]=129;for(0<o?l[u-1-32]=c[h-1-32]=f[d-1-32]=129:(i(l,u-32-1,127,21),i(c,h-32-1,127,9),i(f,d-32-1,127,9)),a=0;a<t.za;++a){var p=e.ya[e.aa+a];if(0<a){for(n=-1;16>n;++n)r(l,u+32*n-4,l,u+32*n+12,4);for(n=-1;8>n;++n)r(c,h+32*n-4,c,h+32*n+4,4),r(f,d+32*n-4,f,d+32*n+4,4)}var g=t.Gd,m=t.Hd+a,v=p.ad,b=p.Hc;if(0<o&&(r(l,u-32,g[m].y,0,16),r(c,h-32,g[m].f,0,8),r(f,d-32,g[m].ea,0,8)),p.Za){var y=l,w=u-32+16;for(0<o&&(a>=t.za-1?i(y,w,g[m].y[15],4):r(y,w,g[m+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,b<<=2)y=l,w=u+Ei[n],fi[p.Ob[n]](y,w),Dn(b,v,16*+n,y,w)}else if(y=jn(a,o,p.Ob[0]),hi[y](l,u),0!=b)for(n=0;16>n;++n,b<<=2)Dn(b,v,16*+n,l,u+Ei[n]);for(n=p.Gc,y=jn(a,o,p.Dd),di[y](c,h),di[y](f,d),b=v,y=c,w=h,255&(p=n>>0)&&(170&p?lr(b,256,y,w):cr(b,256,y,w)),p=f,b=d,255&(n>>=8)&&(170&n?lr(v,320,p,b):cr(v,320,p,b)),o<t.Ub-1&&(r(g[m].y,0,l,u+480,16),r(g[m].f,0,c,h+224,8),r(g[m].ea,0,f,d+224,8)),n=8*s*t.B,g=t.sa,m=t.ta+16*a+16*s*t.R,v=t.qa,p=t.ra+8*a+n,b=t.Ha,y=t.Ia+8*a+n,n=0;16>n;++n)r(g,m+n*t.R,l,u+32*n,16);for(n=0;8>n;++n)r(v,p+n*t.B,c,h+32*n,8),r(b,y+n*t.B,f,d+32*n,8)}}function Mn(t,r,i,a,o,s,l,u,c){var h=[0],f=[0],d=0,p=null!=c?c.kd:0,g=null!=c?c:new rn;if(null==t||12>i)return 7;g.data=t,g.w=r,g.ha=i,r=[r],i=[i],g.gb=[g.gb];t:{var m=r,b=i,y=g.gb;if(e(null!=t),e(null!=b),e(null!=y),y[0]=0,12<=b[0]&&!n(t,m[0],"RIFF")){if(n(t,m[0]+8,"WEBP")){y=3;break t}var w=j(t,m[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>b[0]-8){y=7;break t}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var A=t;b=r,y=i;var N=h,L=f,S=m=[0];if((k=d=[d])[0]=0,8>y[0])y=7;else{if(!n(A,b[0],"VP8X")){if(10!=j(A,b[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var _=j(A,b[0]+8),P=1+I(A,b[0]+12);if(2147483648<=P*(A=1+I(A,b[0]+15))){y=3;break t}null!=S&&(S[0]=_),null!=N&&(N[0]=P),null!=L&&(L[0]=A),b[0]+=18,y[0]-=18,k[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=b),null!=u&&(u[0]=0),l=h[0],m=f[0],d&&b&&null==c){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!n(t,r[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{_=t,y=r,w=i;var k=g.gb;N=g.na,L=g.P,S=g.Sa,P=22,e(null!=_),e(null!=w),A=y[0];var C=w[0];for(e(null!=N),e(null!=S),N[0]=null,L[0]=null,S[0]=0;;){if(y[0]=A,w[0]=C,8>C){y=7;break t}var F=j(_,A+4);if(4294967286<F){y=3;break t}var D=8+F+1&-2;if(P+=D,0<k&&P>k){y=3;break t}if(!n(_,A,"VP8 ")||!n(_,A,"VP8L")){y=0;break t}if(C[0]<D){y=7;break t}n(_,A,"ALPH")||(N[0]=_,L[0]=A+8,S[0]=F),A+=D,C-=D}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(k=t,y=r,w=i,N=g.gb[0],L=g.Ja,S=g.xa,_=y[0],A=!n(k,_,"VP8 "),P=!n(k,_,"VP8L"),e(null!=k),e(null!=w),e(null!=L),e(null!=S),8>w[0])y=7;else{if(A||P){if(k=j(k,_+4),12<=N&&k>N-12){y=3;break t}if(p&&k>w[0]-8){y=7;break t}L[0]=k,y[0]+=8,w[0]-=8,S[0]=P}else S[0]=5<=w[0]&&47==k[_+0]&&!(k[_+4]>>5),L[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],r=r[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||b||(u[0]=g.xa?2:1),l=[l],m=[m],g.xa){if(5>i){y=7;break}u=l,p=m,b=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(w=[0],k=[0],N=[0],v(L=new x,t,r,i),gt(L,w,k,N)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=k[0]),null!=b&&(b[0]=N[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!Xt(t,r+3,i-3)?t=0:(p=t[r+0]|t[r+1]<<8|t[r+2]<<16,b=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!t?t=0:(l&&(l[0]=b),u&&(u[0]=t),t=1))}if(!t)return 3;if(l=l[0],m=m[0],d&&(h[0]!=l||f[0]!=m))return 3;null!=c&&(c[0]=g,c.offset=r-c.w,e(4294967286>r-c.w),e(c.offset==c.ha-i));break}return 0==y||7==y&&d&&null==c?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=a&&(a[0]=l),null!=o&&(o[0]=m),0):y}function Bn(t,e,n){var r=e.width,i=e.height,a=0,o=0,s=r,l=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,l=t.bd,a=t.v,o=t.j,11>n||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=l||a+s>r||o+l>i))return 0;if(e.v=a,e.j=o,e.va=a+s,e.o=o+l,e.U=s,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!B(s,l,n=[t.ib],a=[t.hb]))return 0;e.ib=n[0],e.hb=a[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function Tn(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 En(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,o=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=i||0>=o||s+i>t||l+o>e)return 2;t=i,e=o}if(n.da){if(!B(t,e,i=[n.ib],o=[n.hb]))return 2;t=i[0],e=o[0]}}r.width=t,r.height=e;t:{var u=r.width,c=r.height;if(t=r.S,0>=u||0>=c||!(t>=Br&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=o=i=e=0;var h=(l=u*Ui[t])*c;if(11>t||(o=(c+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*c)),null==(c=a(h+2*o+s))){t=1;break t}r.sd=c,11>t?((u=r.f.RGBA).eb=c,u.fb=0,u.A=l,u.size=h):((u=r.f.kb).y=c,u.O=0,u.fa=l,u.Fd=h,u.f=c,u.N=0+h,u.Ab=e,u.Cd=o,u.ea=c,u.W=0+h+o,u.Db=e,u.Ed=o,12==t&&(u.F=c,u.J=0+h+2*o),u.Tc=s,u.lb=i)}if(e=1,i=r.S,o=r.width,s=r.height,i>=Br&&13>i)if(11>i)t=r.f.RGBA,e&=(l=Math.abs(t.A))*(s-1)+o<=t.size,e&=l>=o*Ui[i],e&=null!=t.eb;else{t=r.f.kb,l=(o+1)/2,h=(s+1)/2,u=Math.abs(t.fa),c=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+o;e&=u*(s-1)+o<=t.Fd,e&=c*(h-1)+l<=t.Cd,e=(e&=f*(h-1)+l<=t.Ed)&u>=o&c>=l&f>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Tn(r)),t}var Rn=64,qn=[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,Wn=8,Hn=[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];R("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 z(z(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return z(t,e[n-1])},t.Predictor7=function(t,e,n){return z(t,e[n+0])},t.Predictor8=function(t,e,n){return z(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return z(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return z(z(t,e[n-1]),z(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=H(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+H(r>>16&255,t>>16&255,e>>16&255)+H(r>>8&255,t>>8&255,e>>8&255)+H(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(U((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|U((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|U((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|U((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(W((t=z(t,e[n+0]))>>24&255,r>>24&255)<<24|W(t>>16&255,r>>16&255)<<16|W(t>>8&255,r>>8&255)<<8|W(t>>0&255,r>>0&255))>>>0};var Vn=t.PredictorAdd0;t.PredictorAdd1=V,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var Gn=t.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Yn,Jn=t.ColorIndexInverseTransform,Xn=t.MapARGB,Kn=t.VP8LColorIndexInverseTransformAlpha,Zn=t.MapAlpha,$n=t.VP8LPredictorsAdd=[];$n.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Qn,tr,er,nr,rr,ir,ar,or,sr,lr,ur,cr,hr,fr,dr,pr,gr,mr,vr,br,yr,wr,xr,Ar,Nr,Lr,Sr,_r,Pr=a(511),kr=a(2041),Cr=a(225),Fr=a(767),Ir=0,jr=kr,Dr=Cr,Or=Fr,Mr=Pr,Br=0,Tr=1,Er=2,Rr=3,qr=4,zr=5,Ur=6,Wr=7,Hr=8,Vr=9,Gr=10,Yr=[2,3,7],Jr=[3,3,11],Xr=[280,256,256,256,40],Kr=[0,1,1,1,0],Zr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],$r=[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],Qr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[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],ni=[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],ri=null,ii=[[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]],ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[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]]]],li=[[[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]]],ui=[[[[255,255,255,255,255,255,255,255,255,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]]]],ci=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hi=[],fi=[],di=[],pi=1,gi=2,mi=[],vi=[];bn("UpsampleRgbLinePair",Ln,3),bn("UpsampleBgrLinePair",Sn,3),bn("UpsampleRgbaLinePair",Fn,4),bn("UpsampleBgraLinePair",Cn,4),bn("UpsampleArgbLinePair",kn,4),bn("UpsampleRgba4444LinePair",Pn,2),bn("UpsampleRgb565LinePair",_n,2);var bi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,wi=t.UpsampleRgbaLinePair,xi=t.UpsampleBgraLinePair,Ai=t.UpsampleArgbLinePair,Ni=t.UpsampleRgba4444LinePair,Li=t.UpsampleRgb565LinePair,Si=16,_i=1<<Si-1,Pi=-227,ki=482,Ci=6,Fi=(256<<Ci)-1,Ii=0,ji=a(256),Di=a(256),Oi=a(256),Mi=a(256),Bi=a(ki-Pi),Ti=a(ki-Pi);In("YuvToRgbRow",Ln,3),In("YuvToBgrRow",Sn,3),In("YuvToRgbaRow",Fn,4),In("YuvToBgraRow",Cn,4),In("YuvToArgbRow",kn,4),In("YuvToRgba4444Row",Pn,2),In("YuvToRgb565Row",_n,2);var Ei=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ri=[0,2,8],qi=[8,7,6,4,4,2,2,2,1,1,1,1],zi=1;this.WebPDecodeRGBA=function(t,n,r,i,a){var o=Tr,s=new nn,l=new ot;s.ba=l,l.S=o,l.width=[l.width],l.height=[l.height];var u=l.width,c=l.height,h=new st;if(null==h||null==t)var f=2;else e(null!=h),f=Mn(t,n,r,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=f?u=0:(null!=u&&(u[0]=h.width[0]),null!=c&&(c[0]=h.height[0]),u=1),u){l.width=l.width[0],l.height=l.height[0],null!=i&&(i[0]=l.width),null!=a&&(a[0]=l.height);t:{if(i=new Gt,(a=new rn).data=t,a.w=n,a.ha=r,a.kd=1,n=[0],e(null!=a),(0==(t=Mn(a.data,a.w,a.ha,null,null,null,n,null,a))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),i.data=a.data,i.w=a.w+a.offset,i.ha=a.ha-a.offset,i.put=dt,i.ac=ft,i.bc=pt,i.ma=s,a.xa){if(null==(t=kt())){s=1;break t}if(function(t,n){var r=[0],i=[0],a=[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),!gt(t.m,r,i,a)){t.a=3;break e}if(t.xb=gi,n.width=r[0],n.height=i[0],!Ct(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(n=En(i.width,i.height,s.Oa,s.ba))){e:{i=t;n:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(r=i.l)),e(null!=(a=r.ma)),0!=i.xb){if(i.ca=a.ba,i.tb=a.tb,e(null!=i.ca),!Bn(a.Oa,r,Rr)){i.a=2;break n}if(!Ft(i,r.width))break n;if(r.da)break n;if((r.da||rt(i.ca.S))&&vn(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&vn()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!D(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!_t(i,i.V,i.Ba,i.c,i.i,r.o,At))break n;a.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(n=t.a)}else n=t.a}else{if(null==(t=new Yt)){s=1;break t}if(t.Fa=a.na,t.P=a.P,t.qc=a.Sa,Kt(t,i)){if(0==(n=En(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,r=s.Oa,e(null!=(a=t)),null!=r){if(0<(u=0>(u=r.Md)?0:100<u?255:255*u/100)){for(c=h=0;4>c;++c)12>(f=a.pb[c]).lc&&(f.ia=u*qi[0>f.lc?0:f.lc]>>3),h|=f.ia;h&&(alert("todo:VP8InitRandom"),a.ia=1)}a.Ga=r.Id,100<a.Ga?a.Ga=100:0>a.Ga&&(a.Ga=0)}Qt(t,i)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=Tn(s.ba))}s=n}o=0!=s?null:11>o?l.f.RGBA.eb:l.f.kb.y}else o=null;return o};var Ui=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}function c(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function h(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var f=[0],d=[0],p=[],g=new l,m=t,v=function(t,e){var n={},r=0,i=!1,a=0,o=0;if(n.frames=[],!function(t,e,n,r){for(var i=0;i<4;i++)if(t[e+i]!="RIFF".charCodeAt(i))return!0;return!1}(t,e)){var s,l;for(h(t,e+=4),e+=8;e<t.length;){var f=u(t,e),d=h(t,e+=4);e+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(v=n.frames[r]).src_off=i?o:e-8,v.src_size=a+d+8,r++,i&&(i=!1,a=0,o=0);break;case"VP8X":(v=n.header={}).feature_flags=t[e];var g=e+4;v.canvas_width=1+c(t,g),g+=3,v.canvas_height=1+c(t,g),g+=3;break;case"ALPH":i=!0,a=p+8,o=e-8;break;case"ANIM":(v=n.header).bgcolor=h(t,e),g=e+4,v.loop_count=(s=t)[(l=g)+0]<<0|s[l+1]<<8,g+=2;break;case"ANMF":var m,v;(v=n.frames[r]={}).offset_x=2*c(t,e),e+=3,v.offset_y=2*c(t,e),e+=3,v.width=1+c(t,e),e+=3,v.height=1+c(t,e),e+=3,v.duration=c(t,e),e+=3,m=t[e++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(e+=p)}return n}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],d=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],A=g.WebPDecodeRGBA(m,x.src_off,x.src_size,d,f);x.rgba=A,x.imgwidth=d[0],x.imgheight=f[0];for(var N=0;N<d[0]*f[0]*4;N++)p[N]=A[N];return this.width=d,this.height=f,this.data=p,this}!function(t){var e=function(e,r,l,u){var c=4,h=a;switch(u){case t.image_compression.FAST:c=1,h=i;break;case t.image_compression.MEDIUM:c=6,h=o;break;case t.image_compression.SLOW:c=9,h=s}var f=W(e=n(e,r,l,h),{level:c});return t.__addimage__.arrayBufferToBinaryString(f)},n=function(t,e,n,r){for(var i,a,o,s=t.length/e,l=new Uint8Array(t.length+s),h=u(),f=0;f<s;f+=1){if(o=f*e,i=t.subarray(o,o+e),r)l.set(r(i,n,a),o+f);else{for(var d,p=h.length,g=[];d<p;d+=1)g[d]=h[d](i,n,a);var m=c(g.concat());l.set(g[m],o+f)}a=i}return l},r=function(t){var e=Array.apply([],t);return e.unshift(0),e},i=function(t,e){var n,r=[],i=t.length;r[0]=1;for(var a=0;a<i;a+=1)n=t[a-e]||0,r[a+1]=t[a]-n+256&255;return r},a=function(t,e,n){var r,i=[],a=t.length;i[0]=2;for(var o=0;o<a;o+=1)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},o=function(t,e,n){var r,i,a=[],o=t.length;a[0]=3;for(var s=0;s<o;s+=1)r=t[s-e]||0,i=n&&n[s]||0,a[s+1]=t[s]+256-(r+i>>>1)&255;return a},s=function(t,e,n){var r,i,a,o,s=[],u=t.length;s[0]=4;for(var c=0;c<u;c+=1)r=t[c-e]||0,i=n&&n[c]||0,a=n&&n[c-e]||0,o=l(r,i,a),s[c+1]=t[c]-o+256&255;return s},l=function(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),a=Math.abs(t+e-n-n);return r<=i&&r<=a?t:i<=a?e:n},u=function(){return[r,i,a,o,s]},c=function(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))};t.processPNG=function(n,r,i,a){var o,s,l,u,c,h,f,d,p,g,m,v,b,y,w,x=this.decode.FLATE_DECODE,A="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(l=new Te(n)).imgData,s=l.bits,o=l.colorSpace,c=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits){p=(d=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*l.colors),g=new Uint8Array(p);var N,L=l.pixelBitlength-l.bits;for(y=0,w=0;y<p;y++){for(b=d[y],N=0;N<L;)m[w++]=b>>>N&255,N+=l.bits;g[y]=b>>>N&255}}if(16===l.bits){p=(d=new Uint32Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*(32/l.pixelBitlength)*l.colors),g=new Uint8Array(p*(32/l.pixelBitlength)),v=l.colors>1,y=0,w=0;for(var S=0;y<p;)b=d[y++],m[w++]=b>>>0&255,v&&(m[w++]=b>>>16&255,b=d[y++],m[w++]=b>>>0&255),g[S++]=b>>>16&255;s=8}a!==t.image_compression.NONE?(n=e(m,l.width*l.colors,l.colors,a),f=e(g,l.width,1,a)):(n=m,f=g,x=void 0)}if(3===l.colorType&&(o=this.color_spaces.INDEXED,h=l.palette,l.transparency.indexed)){var _=l.transparency.indexed,P=0;for(y=0,p=_.length;y<p;++y)P+=_[y];if((P/=255)==p-1&&-1!==_.indexOf(0))u=[_.indexOf(0)];else if(P!==p){for(d=l.decodePixels(),g=new Uint8Array(d.length),y=0,p=d.length;y<p;y++)g[y]=_[d[y]];f=e(g,l.width,1)}}var k=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(a);return x===this.decode.FLATE_DECODE&&(A="/Predictor "+k+" "),A+="/Colors "+c+" /BitsPerComponent "+s+" /Columns "+l.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:i,data:n,index:r,filter:x,decodeParameters:A,transparency:u,palette:h,sMask:f,predictor:k,width:l.width,height:l.height,bitsPerComponent:s,colorSpace:o}}}}(Lt.API),function(t){t.processGIF89A=function(e,n,r,i){var a=new Ee(e),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:o,height:s},c=new qe(100).encode(u,100);return t.processJPEG.call(this,c,n,r,i)},t.processGIF87A=t.processGIF89A}(Lt.API),ze.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),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ze.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){Y.log("bit decode error:"+t)}},ze.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>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)}},ze.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,l=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},ze.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,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}0!==t&&(this.pos+=4-t)}},ze.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,l=(a>>10&e)/e*255|0,u=a>>15?255:0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=s,this.data[c+2]=o,this.data[c+3]=u}this.pos+=t}},ze.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){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,u=(o>>11)/e*255|0,c=i*this.width*4+4*a;this.data[c]=u,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=255}this.pos+=t}},ze.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 r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},ze.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 r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},ze.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var a=new ze(e,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new qe(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Lt.API),Ue.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var a=new Ue(e,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new qe(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Lt.API),Lt.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,u=0;u<i;u+=4){var c=r[u],h=r[u+1],f=r[u+2],d=r[u+3];a[s++]=c,a[s++]=h,a[s++]=f,o[l++]=d}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Lt.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},je=Lt.API,De=je.getCharWidthsArray=function(t,e){var n,i,a=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,c=e.kerning?e.kerning:a.metadata.Unicode.kerning,h=c.fof?c.fof:1,f=!1!==e.doKerning,d=0,p=t.length,g=0,m=l[0]||u,v=[];for(n=0;n<p;n++)i=t.charCodeAt(n),"function"==typeof a.metadata.widthOfString?v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+s*(1e3/o)||0)/1e3):(d=f&&"object"===(0,r.Z)(c[i])&&!isNaN(parseInt(c[i][g],10))?c[i][g]/h:0,v.push((l[i]||m)/u+d)),g=i;return v},Oe=je.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return je.processArabic&&(t=je.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:De.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Me=function(t,e,n,r){for(var i=[],a=0,o=t.length,s=0;a!==o&&s+e[a]<n;)s+=e[a],a++;i.push(t.slice(0,a));var l=a;for(s=0;a!==o;)s+e[a]>r&&(i.push(t.slice(l,a)),s=0,l=a),s+=e[a],a++;return l!==a&&i.push(t.slice(l,a)),i},Be=function(t,e,n){n||(n={});var r,i,a,o,s,l,u,c=[],h=[c],f=n.textIndent||0,d=0,p=0,g=t.split(" "),m=De.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?g[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),b=[];g.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])})),g=b,l=Oe.apply(this,[v,n])}for(a=0,o=g.length;a<o;a++){var y=0;if(r=g[a],l&&"\n"==r[0]&&(r=r.substr(1),y=1),f+d+(p=(i=De.apply(this,[r,n])).reduce((function(t,e){return t+e}),0))>e||y){if(p>e){for(s=Me.apply(this,[r,i,e-(f+d),e]),c.push(s.shift()),c=[s.pop()];s.length;)h.push([s.shift()]);p=i.slice(r.length-(c[0]?c[0].length:0)).reduce((function(t,e){return t+e}),0)}else c=[r];h.push(c),f=p+l,d=m}else c.push(r),f+=d+p,d=m}return u=l?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(u)},je.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,u=[];for(s=0,l=r.length;s<l;s++)u=u.concat(Be.apply(this,[r[s],o,a]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},i={},a=0;a<e.length;a++)n[e[a]]="0123456789abcdef"[a],i["0123456789abcdef"[a]]=e[a];var o=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var e,n,a,l,u=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=o(c).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof e)e<0?(a=o(e).slice(3),l="-"):(a=o(e).slice(2),l=""),a=l+a.slice(0,-1)+i[a.slice(-1)];else{if("object"!==(0,r.Z)(e))throw new Error("Don't know what to do with value type "+(0,r.Z)(e)+".");a=s(e)}u.push(n+a)}return u.push("}"),u.join("")},l=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,a,o={},s=1,l=o,u=[],c="",h="",f=t.length-1,d=1;d<f;d+=1)"'"==(a=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(a):"{"==a?(u.push([l,i]),l={},i=void 0):"}"==a?((r=u.pop())[0][r[1]]=l,i=void 0,l=r[0]):"-"==a?s=-1:void 0===i?n.hasOwnProperty(a)?(c+=n[a],i=parseInt(c,16)*s,s=1,c=""):c+=a:n.hasOwnProperty(a)?(h+=n[a],l[i]=parseInt(h,16)*s,s=1,i=void 0,h=""):h+=a;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},h={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};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 r=c.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(Lt.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(void 0===a)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===a.existsFileInVFS(i.postScriptName)?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(Z(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(Lt),function(t){function e(){return(V.canvg?Promise.resolve(V.canvg):n.e(244).then(n.bind(n,2244))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}Lt.API.addSvgAsImage=function(t,n,r,i,a,o,s,l){if(isNaN(n)||isNaN(r))throw Y.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Y.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=a;var c=u.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return e().then((function(e){return e.fromString(c,t,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){f.addImage(u.toDataURL("image/jpeg",1),n,r,i,a,s,l)}))}}(),Lt.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 r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},Lt.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var i,a,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),u=[],c=0,h=0,f=0;function d(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=l.length;for(f=0;f<p;f+=1)n[l[f]].value=n[l[f]].defaultValue,n[l[f]].explicitSet=!1}if("object"===(0,r.Z)(t))for(a in t)if(o=t[a],d(l,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(c=0;c<o.length;c+=1)if(i=!0,1===o[c].length&&"number"==typeof o[c][0])u.push(String(o[c]-1));else if(o[c].length>1){for(h=0;h<o[c].length;h+=1)"number"!=typeof o[c][h]&&(i=!1);!0===i&&u.push([o[c][0]-1,o[c][1]-1].join(" "))}n[a].value="["+u.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].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},function(t){var e=function(){var t='<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>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),a=unescape(encodeURIComponent("</x:xmpmeta>")),o=n.length+r.length+i.length+e.length+a.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+a),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(Lt.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],a=[""],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==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return a.join("");n=n.toString(16),a.push(i[4-n.length],n)}return a.join("")},r=function(t){var e,n,r,i,a,o,s;for(a="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],o=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=n[o],r.length>=100&&(a+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">"));return r.length&&(a+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),a+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,a=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),u="",c=0;c<l.length;c++)u+=String.fromCharCode(l[c]);var h=a();o({data:u,addLength1:!0,objectId:h}),i("endobj");var f=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i("endobj");var d=a();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+bt(n.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var p=a();i("<<"),i("/Type /Font"),i("/BaseFont /"+bt(n.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=a(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+f+" 0 R"),i("/BaseFont /"+bt(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,a=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",u=0;u<s.length;u++)l+=String.fromCharCode(s[u]);var c=a();o({data:l,addLength1:!0,objectId:c}),i("endobj");var h=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var f=a();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+c+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+bt(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=a();for(var d=0;d<n.metadata.hmtx.widths.length;d++)n.metadata.hmtx.widths[d]=parseInt(n.metadata.hmtx.widths[d]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+bt(n.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,a=t.y,o=t.options||{},s=t.mutex||{},l=s.pdfEscape,u=s.activeFontKey,c=s.fonts,h=u,f="",d=0,p="",g=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:r,x:i,y:a,options:o,mutex:s};for(p=r,h=u,Array.isArray(r)&&(p=r[0]),d=0;d<p.length;d+=1)c[h].metadata.hasOwnProperty("cmap")&&(e=c[h].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===g?m=l(f,h).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=n(f,c[h])),s.isHex=!0,{text:m,x:i,y:a,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var a=0;for(a=0;a<e.length;a+=1)Array.isArray(e[a])&&3===e[a].length?n.push([i(Object.assign({},r,{text:e[a][0]})).text,e[a][1],e[a][2]]):n.push(i(Object.assign({},r,{text:e[a]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(Lt),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}}(Lt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,a,o,s,l,u=e,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[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]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=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)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),n=e>>8,r=d[n];return void 0!==r?u[256*r+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},y=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},w=function(t,e,o,s){var l,u,c,h,f=e[s];switch(f){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":case"BN":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(u=e[s+1])&&"AN"!==u?f="N":m&&(u="AN"),f=u===l?u:"N";break;case"ES":f="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]){f="EN";break}if(m){f="N";break}for(c=s+1,h=e.length;c<h&&"ET"===e[c];)c++;f=c<h&&"EN"===e[c]?"EN":"N";break;case"NSM":if(i&&!a){for(h=e.length,c=s+1;c<h&&"NSM"===e[c];)c++;if(c<h){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(l=e[c],p&&("R"===l||"AL"===l)){f="R";break}}}f=s<1||"B"===(l=e[s-1])?"N":o[s-1];break;case"B":m=!1,n=!0,f=v;break;case"S":r=!0,f="N"}return f},x=function(t,e,n){var r=t.split("");return n&&A(r,n,{hiLevel:v}),r.reverse(),e&&e.reverse(),r.join("")},A=function(t,e,i){var a,o,s,l,u,d=-1,p=t.length,g=0,y=[],x=v?h:c,A=[];for(m=!1,n=!1,r=!1,o=0;o<p;o++)A[o]=b(t[o]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,A,y,s),a=240&(g=x[u][f[y[s]]]),g&=15,e[s]=l=x[g][5],a>0)if(16===a){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(x[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=l;d=-1}"B"===A[s]&&(e[s]=0),i.hiLevel|=l}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=v;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=v}}(A,e,p)},N=function(t,e,r,i,a){if(!(a.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(r&&r.reverse());for(var o,s,l,u,c=e.length,h=0;h<c;){if(i[h]>=t){for(l=h+1;l<c&&i[l]>=t;)l++;for(u=h,s=l-1;u<s;u++,s--)o=e[u],e[u]=e[s],e[s]=o,r&&(o=r[u],r[u]=r[s],r[s]=o);h=l}h++}}},L=function(t,e,n){var r=t.split(""),i={hiLevel:v};return n||(n=[]),A(r,n,i),function(t,e,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=p.indexOf(t[i]))>=0&&(t[i]=p[r+1])}(r,n,i),N(2,r,e,n,i),N(1,r,e,n,i),r.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===a&&(a=y(t)),void 0===s&&(s=y(t))}(t,e),i||!o||s)if(i&&o&&a^s)v=a?1:0,t=x(t,e,n);else if(!i&&o&&s)v=a?1:0,t=L(t,e,n),t=x(t,e);else if(!i||a||o||s){if(i&&!o&&a^s)t=x(t,e),a?(v=0,t=L(t,e,n)):(v=1,t=L(t,e,n),t=x(t,e));else if(i&&a&&!o&&s)v=1,t=L(t,e,n),t=x(t,e);else if(!i&&!o&&a^s){var r=l;a?(v=1,t=L(t,e,n),v=0,l=!1,t=L(t,e,n),l=r):(v=0,t=L(t,e,n),t=x(t,e),v=1,l=!1,t=L(t,e,n),l=r,t=x(t,e))}}else v=0,t=L(t,e,n);else v=a?1:0,t=L(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,a=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,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var a=0;for(i=[],a=0;a<e.length;a+=1)"[object Array]"===Object.prototype.toString.call(e[a])?i.push([n.doBidiReorder(e[a][0]),e[a][1],e[a][2]]):i.push([n.doBidiReorder(e[a])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(Lt),Lt.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new He(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new cn(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Ve(this.contents),this.head=new Je(this),this.name=new en(this),this.cmap=new Ke(this),this.toUnicode={},this.hhea=new Ze(this),this.maxp=new nn(this),this.hmtx=new rn(this),this.post=new Qe(this),this.os2=new $e(this),this.loca=new un(this),this.glyf=new on(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,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(e=r>>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===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,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 r,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return a*(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 We,He=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,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,a,o,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*a+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,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),Ve=function(){var t;function e(t){var e,n,r;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,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++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,r,i,a,o,s,l,u,c,h,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),c=16*Math.floor(Math.log(f)/s),a=Math.floor(c/s),u=16*f-c,(r=new He).writeInt(this.scalarType),r.writeShort(f),r.writeShort(c),r.writeShort(a),r.writeShort(u),i=16*f,l=r.pos+i,o=null,d=[],e)for(h=e[p],r.writeString(p),r.writeInt(t(h)),r.writeInt(l),r.writeInt(h.length),d=d.concat(h),"head"===p&&(o=l),l+=h.length;l%4;)d.push(0),l++;return r.write(d),n=2981146554-t(r.data),r.pos=o+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=an.call(t);t.length%4;)t.push(0);for(r=new He(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),Ge={}.hasOwnProperty,Ye=function(t,e){for(var n in e)Ge.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};We=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 Je=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="head",e.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()},e.prototype.encode=function(t){var e;return(e=new He).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},e}(),Xe=function(){function t(t,e){var n,r,i,a,o,s,l,u,c,h,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),c=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(f=t.readUInt16(),h=f/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:e>r;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],n=v=d=p[s];d<=g?v<=g:v>=g;n=d<=g?++v:--v)0===u[s]?a=n+l[s]:0!==(a=o[u[s]/2+(n-d)-(h-s)]||0)&&(a+=l[s]),this.codeMap[n]=65535&a}t.pos=c}return t.encode=function(t,e){var n,r,i,a,o,s,l,u,c,h,f,d,p,g,m,v,b,y,w,x,A,N,L,S,_,P,k,C,F,I,j,D,O,M,B,T,E,R,q,z,U,W,H,V,G,Y;switch(C=new He,a=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},i={},F=0,O=a.length;F<O;F++)null==v[H=t[r=a[F]]]&&(v[H]=++p),i[r]={old:t[r],new:v[t[r]]},g[r]=v[t[r]];return C.writeUInt16(1),C.writeUInt16(0),C.writeUInt32(12),C.writeUInt16(0),C.writeUInt16(262),C.writeUInt16(0),C.write(g),{charMap:i,subtable:C.data,maxGlyphID:p+1};case"unicode":for(P=[],c=[],b=0,v={},n={},m=l=null,I=0,M=a.length;I<M;I++)null==v[w=t[r=a[I]]]&&(v[w]=++b),n[r]={old:w,new:v[w]},o=v[w]-r,null!=m&&o===l||(m&&c.push(m),P.push(r),l=o),m=r;for(m&&c.push(m),c.push(65535),P.push(65535),S=2*(L=P.length),N=2*Math.pow(Math.log(L)/Math.LN2,2),h=Math.log(N/2)/Math.LN2,A=2*L-N,s=[],x=[],f=[],d=j=0,B=P.length;j<B;d=++j){if(_=P[d],u=c[d],65535===_){s.push(0),x.push(0);break}if(_-(k=n[_].new)>=32768)for(s.push(0),x.push(2*(f.length+L-d)),r=D=_;_<=u?D<=u:D>=u;r=_<=u?++D:--D)f.push(n[r].new);else s.push(k-_),x.push(0)}for(C.writeUInt16(3),C.writeUInt16(1),C.writeUInt32(12),C.writeUInt16(4),C.writeUInt16(16+8*L+2*f.length),C.writeUInt16(0),C.writeUInt16(S),C.writeUInt16(N),C.writeUInt16(h),C.writeUInt16(A),U=0,T=c.length;U<T;U++)r=c[U],C.writeUInt16(r);for(C.writeUInt16(0),W=0,E=P.length;W<E;W++)r=P[W],C.writeUInt16(r);for(V=0,R=s.length;V<R;V++)o=s[V],C.writeUInt16(o);for(G=0,q=x.length;G<q;G++)y=x[G],C.writeUInt16(y);for(Y=0,z=f.length;Y<z;Y++)p=f[Y],C.writeUInt16(p);return{charMap:n,subtable:C.data,maxGlyphID:b+1}}},t}(),Ke=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new Xe(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=Xe.encode(t,e),(r=new He).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),Ze=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="hhea",e.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()},e}(),$e=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="OS/2",e.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()},e}(),Qe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r;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 i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),tn=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},en=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,a,o,s,l,u,c,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)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={},i=u=0,c=n.length;u<c;i=++u)r=n[i],t.pos=r.offset,l=t.readString(r.length),a=new tn(l,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(a);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]},e}(),nn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="maxp",e.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()},e}(),rn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,a,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(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],e=a=0;0<=r?a<r:a>r;e=0<=r?++a:--a)s.push(this.widths.push(n));return s},e.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]}},e}(),an=[].slice,on=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,a,o,s,l,u,c;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,a=(o=new He(e.read(r))).readShort(),l=o.readShort(),c=o.readShort(),s=o.readShort(),u=o.readShort(),this.cache[t]=-1===a?new ln(o,l,c,s,u):new sn(o,a,l,c,s,u),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o<s;o++)r=t[e[o]],i.push(a.length),r&&(a=a.concat(r.encode(n)));return i.push(a.length),{table:a,offsets:i}},e}(),sn=function(){function t(t,e,n,r,i,a){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),ln=function(){function t(t,e,n,r,i){var a,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new He(an.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),un=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="loca",e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,a=0;a<n.length;++a)if(n[a]=r,i<e.length&&e[i]==a){++i,n[a]=r;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(r+=s)}for(var l=new Array(4*n.length),u=0;u<n.length;++u)l[4*u+3]=255&n[u],l[4*u+2]=(65280&n[u])>>8,l[4*u+1]=(16711680&n[u])>>16,l[4*u]=(4278190080&n[u])>>24;return l},e}(),cn=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,a,o,s;for(r={},a=0,o=t.length;a<o;a++)r[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,a,o,s,l,u,c,h,f,d,p,g,m;for(r in n=Ke.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=n.charMap)f[(s=m[r]).old]=s.new;for(d in h=n.maxGlyphID,a)d in f||(f[d]=h++);return u=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),c=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=c.length;t<e;t++)o=c[t],n.push(u[o]);return n}(),i=this.font.glyf.encode(a,p,f),l=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.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&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();Lt.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 r,i,a,o;if(Array.isArray(n))return"["+function(){var t,i,a;for(a=[],t=0,i=n.length;t<i;t++)r=n[t],a.push(e.convert(r));return a}().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(i in a=["<<"],n)o=n[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+n},e}();var hn=Lt},8899:function(t,e,n){"use strict";var r=n(341),i=n(2596),a=n(159),o=n(6229),s=n(2502);const l={key:0,class:"mt-3"},u={class:"grid"},c={class:"g-col-12 g-col-lg-3"},h={class:"card"},f={class:"card-header"},d={class:"card-body"},p={class:""},g={for:"fontSize",class:"form-label"},m=["selected","value"],v={class:"mt-4"},b={for:"pageSize",class:"form-label"},y=["selected","value"],w={class:"mt-4"},x={class:"form-label"},A=(t=>((0,o.dD)("data-v-25514be7"),t=t(),(0,o.Cn)(),t))((()=>(0,o._)("br",null,null,-1))),N={class:"form-check form-check-inline"},L=["checked"],S={class:"form-check-label",for:"inlineRadio1"},_={class:"form-check form-check-inline"},P=["checked"],k={class:"form-check-label",for:"inlineRadio2"},C={class:"form-check mt-4"},F={class:"form-check-label",for:"exportMarkedRegisters"},I={class:"g-col-12 g-col-lg-9"},j={class:"card"},D={class:"card-header"},O={class:"card-body"},M={class:"form-check mb-1"},B=["id","value","checked","onClick"],T=["for"],E={class:"grid"},R={class:"g-col-12 ds-button-container"},q=["disabled"];n(4573);var z=n(4559),U=n.n(z),W=n(9371),H=n(4058),V=(n(7085),n(2343)),G=n(3895),Y={name:"PDFBuilder",components:{BookmarkIcon:n(9404).plf},setup(){const t=(0,G.i)(),{t:e}=(0,W.QT)({useScope:"global"}),n=(0,a.useMq)(),r=(0,o.Fl)((()=>"xs"==n.current));(0,o.JJ)("xs_screen",r);const i=(0,V.iH)(!1),s=(0,V.qj)(JSON.parse(JSON.stringify(t.pdf_prefs)));(0,o.YP)((()=>t.pdf_prefs.default),(e=>{s.selected_fields=JSON.parse(JSON.stringify(t.pdf_prefs.selected_fields)),s.font_size=t.pdf_prefs.font_size,s.page_size=t.pdf_prefs.page_size,s.portrait=t.pdf_prefs.portrait}));const l=(0,o.Fl)((()=>{var e=t.field_index;if(0==s.selected_fields.length)for(let t in e)"marked"!=e[t].name&&h(e[t].name);return e}));function u(){let e=/<a\s+(?:[^>]*?\s+)?href=(["'])(.*?)\1/;var n=[];for(let u in t.itemsToDisplay){var r=t.itemsToDisplay[u];if(!i.value||1==r.marked){var a=[];for(let n in l.value){var o=l.value[n];if(s.selected_fields.includes(o.name)){if("marked"==o.name||"created"==o.name){let e={field_name:o.name,field_value:r[o.name]};a.push(t.getFormattedValue(e));continue}if(o.name.startsWith("file-")){if(void 0!==r.data[o.name]){let t=r.data[o.name].match(e);null!=t?a.push(t[2]):a.push("")}else a.push("");continue}if(!r.data[o.name]){a.push("");continue}let n={field_name:o.name,field_value:r.data[o.name]};a.push(t.getFormattedValue(n))}}n.push(a)}}return n}const c=(0,o.Fl)((()=>t=>s.selected_fields.includes(t)));function h(t){s.selected_fields.includes(t)?s.selected_fields.splice(s.selected_fields.indexOf(t),1):s.selected_fields.push(t)}return{xs_screen:r,field_index:l,prefs:s,show_builder:(0,o.Fl)((()=>t.ui.pdf_builder)),togglePdfBuilder:function(){t.ui.pdf_builder=!t.ui.pdf_builder},toggleSelectedField:h,is_selected:c,only_marked_items:i,page_sizes:{a4:"A4",a3:"A3",letter:"Letter",ledger:"Ledger"},font_sizes:["10","9","8","7","6","5"],isFieldDeletedField:t.isFieldDeletedField,generatePDF:function n(){console.log("generatePDF",n),console.log("field_index",l.value);const r=new H.default({orientation:s.portrait?"p":"l",format:s.page_size});var i,a="{total_pages_count_string}",o=t.meta.title,c=e("Page");r.autoTable({theme:"grid",headStyles:{fontWeight:"normal",overflow:"ellipsize",fontSize:s.font_size,fillColor:"#666"},bodyStyles:{fontSize:s.font_size},head:(i=[],l.value.forEach(((t,e)=>{s.selected_fields.includes(t.name)&&i.push(t.label)})),[i]),body:u(),didDrawPage:function(t){r.setFontSize(14),r.setTextColor(32,32,32),r.text(o,t.settings.margin.left+0,12);var e=c+" "+r.internal.getNumberOfPages();"function"==typeof r.putTotalPages&&(e=e+" of "+a),r.setFontSize(10);let n=r.internal.pageSize,i=n.height?n.height:n.getHeight();r.text(e,t.settings.margin.left,i-10)}}),"function"==typeof r.putTotalPages&&r.putTotalPages(a),r.save(o+".pdf"),s.default=!1,t.pdf_prefs=s,U().patch(t.endpoint+"/set-pdf-preferences",JSON.stringify({prefs:t.pdf_prefs}),{headers:{"Content-Type":"application/json"}}).then((function(t){})).catch((function(t){console.log(t)}))}}}};n(5627),n(8786);var J=(0,n(6021).Z)(Y,[["render",function(t,e,n,i,a,z){const U=(0,o.up)("BookmarkIcon");return i.show_builder?((0,o.wg)(),(0,o.iD)("div",l,[(0,o._)("div",u,[(0,o._)("div",c,[(0,o._)("div",h,[(0,o._)("div",f,[(0,o._)("h4",null,(0,s.toDisplayString)(t.$t("Options")),1)]),(0,o._)("div",d,[(0,o._)("div",p,[(0,o._)("label",g,(0,s.toDisplayString)(t.$t("Font size")),1),(0,o._)("select",{onChange:e[0]||(e[0]=t=>i.prefs.font_size=t.target.value),class:"form-select",id:"fontSize","aria-label":"Select font size"},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(i.font_sizes,(t=>((0,o.wg)(),(0,o.iD)("option",{key:t,selected:i.prefs.font_size===t,value:t},(0,s.toDisplayString)(t),9,m)))),128))],32)]),(0,o._)("div",v,[(0,o._)("label",b,(0,s.toDisplayString)(t.$t("Page")),1),(0,o._)("select",{onChange:e[1]||(e[1]=t=>i.prefs.page_size=t.target.value),class:"form-select",id:"pageSize","aria-label":"Select page size"},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(i.page_sizes,((t,e,n)=>((0,o.wg)(),(0,o.iD)("option",{selected:i.prefs.page_size===e,value:e},(0,s.toDisplayString)(t),9,y)))),256))],32)]),(0,o._)("div",w,[(0,o._)("label",x,(0,s.toDisplayString)(t.$t("Page orientation")),1),A,(0,o._)("div",N,[(0,o._)("input",{class:"form-check-input",type:"radio",id:"inlineRadio1",onChange:e[2]||(e[2]=t=>i.prefs.portrait=!i.prefs.portrait),checked:0==i.prefs.portrait},null,40,L),(0,o._)("label",S,(0,s.toDisplayString)(t.$t("Landscape")),1)]),(0,o._)("div",_,[(0,o._)("input",{class:"form-check-input",type:"radio",id:"inlineRadio2",onChange:e[3]||(e[3]=t=>i.prefs.portrait=!i.prefs.portrait),checked:1==i.prefs.portrait},null,40,P),(0,o._)("label",k,(0,s.toDisplayString)(t.$t("Portrait")),1)])]),(0,o._)("div",C,[(0,o.wy)((0,o._)("input",{class:"form-check-input",type:"checkbox",id:"exportMarkedRegisters","onUpdate:modelValue":e[4]||(e[4]=t=>i.only_marked_items=t),onClick:e[5]||(e[5]=t=>i.only_marked_items=!i.only_marked_items)},null,512),[[r.vModelCheckbox,i.only_marked_items]]),(0,o._)("label",F,[(0,o.Uk)((0,s.toDisplayString)(t.$t("Only export bookmarked"))+" ",1),(0,o.Wm)(U,{size:"1.1x"})])])])])]),(0,o._)("div",I,[(0,o._)("div",j,[(0,o._)("div",D,[(0,o._)("h4",null,(0,s.toDisplayString)(t.$t("Export these fields")),1)]),(0,o._)("div",O,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(i.field_index,((t,e)=>((0,o.wg)(),(0,o.iD)("div",M,[((0,o.wg)(),(0,o.iD)("input",{id:e,key:t.name,type:"checkbox",class:"form-check-input",value:t.name,checked:1==i.is_selected(t.name),onClick:e=>i.toggleSelectedField(t.name)},null,8,B)),(0,o._)("label",{for:e,class:(0,s.normalizeClass)(["form-check-label",{"ds-deleted-field-label":i.isFieldDeletedField(t.name)}])},(0,s.toDisplayString)(t.label),11,T)])))),256))])])])]),(0,o._)("div",E,[(0,o._)("div",R,[(0,o._)("button",{class:"btn btn-primary",disabled:0==i.prefs.selected_fields.length,onClick:e[6]||(e[6]=(...t)=>i.generatePDF&&i.generatePDF(...t))},(0,s.toDisplayString)(t.$t("Download PDF")),9,q),(0,o._)("button",{class:"btn btn-outline-primary",onClick:e[7]||(e[7]=(...t)=>i.togglePdfBuilder&&i.togglePdfBuilder(...t))},(0,s.toDisplayString)(t.$t("Cancel")),1)])])])):(0,o.kq)("v-if",!0)}],["__scopeId","data-v-25514be7"]]);document.querySelectorAll("[vue-component=pdf-builder]").forEach((t=>{(0,r.createApp)(J).use(i.Z).use(a.Vue3Mq,{}).mount(t)}))},6082:function(t,e,n){"use strict";n.r(e);var r=n(6738),i=n.n(r),a=n(7705),o=n.n(a)()(i());o.push([t.id,"\n.ds-empty-field {\n font-style: italic;\n}\n.ds-deleted-field-label {\n color: var(--lf-danger);\n}\n",""]),e.default=o},6475:function(t,e,n){"use strict";n.r(e);var r=n(6738),i=n.n(r),a=n(7705),o=n.n(a)()(i());o.push([t.id,"\n.card[data-v-25514be7] {\n border-top: 1px solid var(--lf-gray-300);\n}\n",""]),e.default=o},5627:function(t,e,n){var r=n(6082);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(4023).Z)("3328e5c9",r,!1,{})},8786:function(t,e,n){var r=n(6475);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(4023).Z)("44881e9a",r,!1,{})}},function(t){t(t.s=8899)}]); \ No newline at end of file
+(self.webpackChunkdata_display=self.webpackChunkdata_display||[]).push([[701],{8853:function(t,e,n){"use strict";var r=n(9149);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},9681:function(t,e,n){var r=n(3622),i=n(2867),a=n(8853),o=n(9105);r&&o((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(RegExp.prototype,"flags",{configurable:!0,get:a})},1934:function(t,e,n){var r;"undefined"!=typeof globalThis?globalThis:void 0!==this||("undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g),r=function(t){return function(){"use strict";var e={172:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return n=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])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.CellHookData=e.HookData=void 0;var i=function(t,e,n){this.table=e,this.pageNumber=e.pageNumber,this.pageCount=this.pageNumber,this.settings=e.settings,this.cursor=n,this.doc=t.getDocument()};e.HookData=i;var a=function(t){function e(e,n,r,i,a,o){var s=t.call(this,e,n,o)||this;return s.cell=r,s.row=i,s.column=a,s.section=i.section,s}return r(e,t),e}(i);e.CellHookData=a},340:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=n(136),a=n(744),o=n(776),s=n(664),l=n(972);e.default=function(t){t.API.autoTable=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];1===e.length?t=e[0]:(console.error("Use of deprecated autoTable initiation"),(t=e[2]||{}).columns=e[0],t.body=e[1]);var r=(0,o.parseInput)(this,t),i=(0,l.createTable)(this,r);return(0,s.drawTable)(this,i),this},t.API.lastAutoTable=!1,t.API.previousAutoTable=!1,t.API.autoTable.previous=!1,t.API.autoTableText=function(t,e,n,r){(0,i.default)(t,e,n,r,this)},t.API.autoTableSetDefaults=function(t){return a.DocHandler.setDefaults(t,this),this},t.autoTableSetDefaults=function(t,e){a.DocHandler.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 i=new a.DocHandler(this),o=(0,r.parseHtml)(i,t,window,e,!1),s=o.head,l=o.body;return{columns:(null===(n=s[0])||void 0===n?void 0:n.map((function(t){return t.content})))||[],rows:l,data:l}},t.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var t=this.lastAutoTable;return t&&t.finalY?t.finalY:0},t.API.autoTableAddPageContent=function(e){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),t.API.autoTable.globalDefaults||(t.API.autoTable.globalDefaults={}),t.API.autoTable.globalDefaults.addPageContent=e,this},t.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},136:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){r=r||{};var a=i.internal.scaleFactor,o=i.internal.getFontSize()/a,s=o*(i.getLineHeightFactor?i.getLineHeightFactor():1.15),l="",u=1;if("middle"!==r.valign&&"bottom"!==r.valign&&"center"!==r.halign&&"right"!==r.halign||(u=(l="string"==typeof t?t.split(/\r\n|\r|\n/g):t).length||1),n+=o*(2-1.15),"middle"===r.valign?n-=u/2*s:"bottom"===r.valign&&(n-=u*s),"center"===r.halign||"right"===r.halign){var c=o;if("center"===r.halign&&(c*=.5),l&&u>=1){for(var h=0;h<l.length;h++)i.text(l[h],e-i.getStringUnitWidth(l[h])*c,n),n+=s;return i}e-=i.getStringUnitWidth(t)*c}return"justify"===r.halign?i.text(t,e,n,{maxWidth:r.maxWidth||100,align:"justify"}):i.text(t,e,n),i}},420:function(t,e){function n(t,e){var n=t>0,r=e||0===e;return n&&r?"DF":n?"S":r?"F":null}function r(t,e){var n,r,i,a;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!==(r=t.top)&&void 0!==r?r:e,right:null!==(i=t.right)&&void 0!==i?i:e,bottom:null!==(a=t.bottom)&&void 0!==a?a:e}):("number"!=typeof t&&(t=e),{top:t,right:t,bottom:t,left:t})}Object.defineProperty(e,"__esModule",{value:!0}),e.getPageAvailableWidth=e.parseSpacing=e.getFillStyle=e.addTableBorder=e.getStringWidth=void 0,e.getStringWidth=function(t,e,n){return n.applyStyles(e,!0),(Array.isArray(t)?t:[t]).map((function(t){return n.getTextWidth(t)})).reduce((function(t,e){return Math.max(t,e)}),0)},e.addTableBorder=function(t,e,r,i){var a=e.settings.tableLineWidth,o=e.settings.tableLineColor;t.applyStyles({lineWidth:a,lineColor:o});var s=n(a,!1);s&&t.rect(r.x,r.y,e.getWidth(t.pageSize().width),i.y-r.y,s)},e.getFillStyle=n,e.parseSpacing=r,e.getPageAvailableWidth=function(t,e){var n=r(e.settings.margin,0);return t.pageSize().width-(n.left+n.right)}},796:function(t,e){var n,r=this&&this.__extends||(n=function(t,e){return n=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])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.getTheme=e.defaultStyles=e.HtmlRowInput=void 0;var i=function(t){function e(e){var n=t.call(this)||this;return n._element=e,n}return r(e,t),e}(Array);e.HtmlRowInput=i,e.defaultStyles=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}},e.getTheme=function(t){return{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"}}}[t]}},903:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseCss=void 0;var r=n(420);function i(t,e){var n=a(t,e);if(!n)return null;var r=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!r||!Array.isArray(r))return null;var i=[parseInt(r[1]),parseInt(r[2]),parseInt(r[3])];return 0===parseInt(r[4])||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function a(t,e){var n=e(t);return"rgba(0, 0, 0, 0)"===n||"transparent"===n||"initial"===n||"inherit"===n?null==t.parentElement?null:a(t.parentElement,e):n}e.parseCss=function(t,e,n,a,o){var s={},l=96/72,u=i(e,(function(t){return o.getComputedStyle(t).backgroundColor}));null!=u&&(s.fillColor=u);var c=i(e,(function(t){return o.getComputedStyle(t).color}));null!=c&&(s.textColor=c);var h=function(t,e){var n=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],i=96/(72/e),a=(parseInt(t.lineHeight)-parseInt(t.fontSize))/e/2,o=n.map((function(t){return parseInt(t||"0")/i})),s=(0,r.parseSpacing)(o,0);return a>s.top&&(s.top=a),a>s.bottom&&(s.bottom=a),s}(a,n);h&&(s.cellPadding=h);var f="borderTopColor",d=l*n,p=a.borderTopWidth;if(a.borderBottomWidth===p&&a.borderRightWidth===p&&a.borderLeftWidth===p){var g=(parseFloat(p)||0)/d;g&&(s.lineWidth=g)}else s.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},s.lineWidth.top||(s.lineWidth.right?f="borderRightColor":s.lineWidth.bottom?f="borderBottomColor":s.lineWidth.left&&(f="borderLeftColor"));console.log(s.lineWidth);var m=i(e,(function(t){return o.getComputedStyle(t)[f]}));null!=m&&(s.lineColor=m);var v=["left","right","center","justify"];-1!==v.indexOf(a.textAlign)&&(s.halign=a.textAlign),-1!==(v=["middle","bottom","top"]).indexOf(a.verticalAlign)&&(s.valign=a.verticalAlign);var b=parseInt(a.fontSize||"");isNaN(b)||(s.fontSize=b/l);var y=function(t){var e="";return("bold"===t.fontWeight||"bolder"===t.fontWeight||parseInt(t.fontWeight)>=700)&&(e="bold"),"italic"!==t.fontStyle&&"oblique"!==t.fontStyle||(e+="italic"),e}(a);y&&(s.fontStyle=y);var w=(a.fontFamily||"").toLowerCase();return-1!==t.indexOf(w)&&(s.font=w),s}},744:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DocHandler=void 0;var n={},r=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:n=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 r,i,a;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 u=this.getFontList()[l];u&&-1===u.indexOf(s)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(u[0]),s=u[0])}if(this.jsPDFDocument.setFont(l,s),e.fontSize&&this.jsPDFDocument.setFontSize(e.fontSize),!n){var c=t.unifyColor(e.fillColor);c&&(r=this.jsPDFDocument).setFillColor.apply(r,c),(c=t.unifyColor(e.textColor))&&(i=this.jsPDFDocument).setTextColor.apply(i,c),(c=t.unifyColor(e.lineColor))&&(a=this.jsPDFDocument).setDrawColor.apply(a,c),"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,r,i){return this.jsPDFDocument.rect(t,e,n,r,i)},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 n||{}},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}();e.DocHandler=r},4:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseHtml=void 0;var r=n(903),i=n(796);function a(t,e,n,a,s,l){for(var u=new i.HtmlRowInput(a),c=0;c<a.cells.length;c++){var h=a.cells[c],f=n.getComputedStyle(h);if(s||"none"!==f.display){var d=void 0;l&&(d=(0,r.parseCss)(t,h,e,f,n)),u.push({rowSpan:h.rowSpan,colSpan:h.colSpan,styles:d,_element:h,content:o(h)})}}var p=n.getComputedStyle(a);if(u.length>0&&(s||"none"!==p.display))return u}function o(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||""}e.parseHtml=function(t,e,n,r,i){var o,s,l;void 0===r&&(r=!1),void 0===i&&(i=!1),l="string"==typeof e?n.document.querySelector(e):e;var u=Object.keys(t.getFontList()),c=t.scaleFactor(),h=[],f=[],d=[];if(!l)return console.error("Html table could not be found with input: ",e),{head:h,body:f,foot:d};for(var p=0;p<l.rows.length;p++){var g=l.rows[p],m=null===(s=null===(o=null==g?void 0:g.parentElement)||void 0===o?void 0:o.tagName)||void 0===s?void 0:s.toLowerCase(),v=a(u,c,n,g,r,i);v&&("thead"===m?h.push(v):"tfoot"===m?d.push(v):f.push(v))}return{head:h,body:f,foot:d}}},776:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.parseInput=void 0;var r=n(4),i=n(356),a=n(420),o=n(744),s=n(792);e.parseInput=function(t,e){var n=new o.DocHandler(t),l=n.getDocumentOptions(),u=n.getGlobalOptions();(0,s.default)(n,u,l,e);var c,h=(0,i.assign)({},u,l,e);"undefined"!=typeof window&&(c=window);var f=function(t,e,n){for(var r={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(a){if("columnStyles"===a){var o=t[a],s=e[a],l=n[a];r.columnStyles=(0,i.assign)({},o,s,l)}else{var u=[t,e,n].map((function(t){return t[a]||{}}));r[a]=(0,i.assign)({},u[0],u[1],u[2])}},o=0,s=Object.keys(r);o<s.length;o++)a(s[o]);return r}(u,l,e),d=function(t,e,n){for(var r={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},i=0,a=[t,e,n];i<a.length;i++){var o=a[i];o.didParseCell&&r.didParseCell.push(o.didParseCell),o.willDrawCell&&r.willDrawCell.push(o.willDrawCell),o.didDrawCell&&r.didDrawCell.push(o.didDrawCell),o.willDrawPage&&r.willDrawPage.push(o.willDrawPage),o.didDrawPage&&r.didDrawPage.push(o.didDrawPage)}return r}(u,l,e),p=function(t,e){var n,r,i,o,s,l,u,c,h,f,d,p,g,m,v=(0,a.parseSpacing)(e.margin,40/t.scaleFactor()),b=null!==(n=function(t,e){var n=t.getLastAutoTable(),r=t.scaleFactor(),i=t.pageNumber(),a=!1;return n&&n.startPageNumber&&(a=n.startPageNumber+n.pageNumber-1===i),"number"==typeof e?e:null!=e&&!1!==e||!a||null==(null==n?void 0:n.finalY)?null:n.finalY+20/r}(t,e.startY))&&void 0!==n?n:v.top;g=!0===e.showFoot?"everyPage":!1===e.showFoot?"never":null!==(r=e.showFoot)&&void 0!==r?r:"everyPage",m=!0===e.showHead?"everyPage":!1===e.showHead?"never":null!==(i=e.showHead)&&void 0!==i?i:"everyPage";var y=null!==(o=e.useCss)&&void 0!==o&&o,w=e.theme||(y?"plain":"striped"),x=!!e.horizontalPageBreak,L=null!==(s=e.horizontalPageBreakRepeat)&&void 0!==s?s:null;return{includeHiddenHtml:null!==(l=e.includeHiddenHtml)&&void 0!==l&&l,useCss:y,theme:w,startY:b,margin:v,pageBreak:null!==(u=e.pageBreak)&&void 0!==u?u:"auto",rowPageBreak:null!==(c=e.rowPageBreak)&&void 0!==c?c:"auto",tableWidth:null!==(h=e.tableWidth)&&void 0!==h?h:"auto",showHead:m,showFoot:g,tableLineWidth:null!==(f=e.tableLineWidth)&&void 0!==f?f:0,tableLineColor:null!==(d=e.tableLineColor)&&void 0!==d?d:200,horizontalPageBreak:x,horizontalPageBreakRepeat:L,horizontalPageBreakBehaviour:null!==(p=e.horizontalPageBreakBehaviour)&&void 0!==p?p:"afterAllRows"}}(n,h),g=function(t,e,n){var i=e.head||[],a=e.body||[],o=e.foot||[];if(e.html){var s=e.includeHiddenHtml;if(n){var l=(0,r.parseHtml)(t,e.html,n,s,e.useCss)||{};i=l.head||i,a=l.body||i,o=l.foot||i}else console.error("Cannot parse html in non browser environment")}var u=e.columns||function(t,e,n){var r=t[0]||e[0]||n[0]||[],i=[];return Object.keys(r).filter((function(t){return"_element"!==t})).forEach((function(t){var e,n=1;"object"!=typeof(e=Array.isArray(r)?r[parseInt(t)]:r[t])||Array.isArray(e)||(n=(null==e?void 0:e.colSpan)||1);for(var a=0;a<n;a++){var o={dataKey:Array.isArray(r)?i.length:t+(a>0?"_".concat(a):"")};i.push(o)}})),i}(i,a,o);return{columns:u,head:i,body:a,foot:o}}(n,h,c);return{id:e.tableId,content:g,hooks:d,styles:f,settings:p}}},792:function(t,e){function n(t){t.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),t.minCellHeight||(t.minCellHeight=t.rowHeight)):t.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),t.cellWidth||(t.cellWidth=t.columnWidth))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,i){for(var a=function(e){e&&"object"!=typeof e&&console.error("The options parameter should be of type object, is: "+typeof e),void 0!==e.extendWidth&&(e.tableWidth=e.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),void 0!==e.margins&&(void 0===e.margin&&(e.margin=e.margins),console.error("Use of deprecated option: margins, use margin instead.")),e.startY&&"number"!=typeof e.startY&&(console.error("Invalid value for startY option",e.startY),delete e.startY),!e.didDrawPage&&(e.afterPageContent||e.beforePageContent||e.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),e.didDrawPage=function(n){t.applyStyles(t.userStyles),e.beforePageContent&&e.beforePageContent(n),t.applyStyles(t.userStyles),e.afterPageContent&&e.afterPageContent(n),t.applyStyles(t.userStyles),e.afterPageAdd&&n.pageNumber>1&&n.afterPageAdd(n),t.applyStyles(t.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach((function(t){e[t]&&console.error('The "'.concat(t,'" hook has changed in version 3.0, check the changelog for how to migrate.'))})),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach((function(t){var n=t[0],r=t[1];e[r]&&(console.error("Use of deprecated option ".concat(r,". Use ").concat(n," instead")),e[n]=e[r])})),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach((function(t){var n="string"==typeof t?t:t[0],r="string"==typeof t?t:t[1];void 0!==e[n]&&(void 0===e.styles[r]&&(e.styles[r]=e[n]),console.error("Use of deprecated option: "+n+", use the style "+r+" instead."))}));for(var r=0,i=["styles","bodyStyles","headStyles","footStyles"];r<i.length;r++)n(e[i[r]]||{});for(var a=e.columnStyles||{},o=0,s=Object.keys(a);o<s.length;o++)n(a[s[o]]||{})},o=0,s=[e,r,i];o<s.length;o++)a(s[o])}},260:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Column=e.Cell=e.Row=e.Table=void 0;var r=n(796),i=n(172),a=n(420),o=function(){function t(t,e){this.pageNumber=1,this.pageCount=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,r,a,o){for(var s=0,l=e;s<l.length;s++){var u=!1===(0,l[s])(new i.CellHookData(t,this,n,r,a,o));if(n.text=Array.isArray(n.text)?n.text:[n.text],u)return!1}return!0},t.prototype.callEndPageHooks=function(t,e){t.applyStyles(t.userStyles);for(var n=0,r=this.hooks.didDrawPage;n<r.length;n++)(0,r[n])(new i.HookData(t,this,e))},t.prototype.callWillDrawPageHooks=function(t,e){for(var n=0,r=this.hooks.willDrawPage;n<r.length;n++)(0,r[n])(new i.HookData(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}();e.Table=o;var s=function(){function t(t,e,n,i,a){void 0===a&&(a=!1),this.height=0,this.raw=t,t instanceof r.HtmlRowInput&&(this.raw=t._element,this.element=t._element),this.index=e,this.section=n,this.cells=i,this.spansMultiplePages=a}return t.prototype.getMaxCellHeight=function(t){var e=this;return t.reduce((function(t,n){var r;return Math.max(t,(null===(r=e.cells[n.index])||void 0===r?void 0:r.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,r){var i=n.cells[r.index];if(!i)return 0;var a=e.getLineHeight(i.styles.fontSize),o=i.padding("vertical")+a;return o>t?o:t}),0)},t}();e.Row=s;var l=function(){function t(t,e,n){var r,i;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 a=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,a=null!==(i=null!==(r=t.content)&&void 0!==r?r:t.title)&&void 0!==i?i:t,t._element&&(this.raw=t._element));var o=null!=a?""+a:"";this.text=o.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 r=this.width-this.padding("horizontal");e=this.x+r/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=(0,a.parseSpacing)(this.styles.cellPadding,0);return"vertical"===t?e.top+e.bottom:"horizontal"===t?e.left+e.right:e[t]},t}();e.Cell=l;var u=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,r=t.allRows();n<r.length;n++){var i=r[n].cells[this.index];i&&"number"==typeof i.styles.cellWidth&&(e=Math.max(e,i.styles.cellWidth))}return e},t}();e.Column=u},356:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.assign=void 0,e.assign=function(t,e,n,r,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var a=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)&&(a[l]=s[l])}return a}},972:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createTable=void 0;var r=n(744),i=n(260),a=n(324),o=n(796),s=n(356);function l(t,e,n,r,a,o){var s={};return e.map((function(e,l){for(var u=0,h={},f=0,d=0,p=0,g=n;p<g.length;p++){var m=g[p];if(null==s[m.index]||0===s[m.index].left)if(0===d){var v,b={};"object"!=typeof(v=Array.isArray(e)?e[m.index-f-u]:e[m.dataKey])||Array.isArray(v)||(b=(null==v?void 0:v.styles)||{});var y=c(t,m,l,a,r,o,b),w=new i.Cell(v,y,t);h[m.dataKey]=w,h[m.index]=w,d=w.colSpan-1,s[m.index]={left:w.rowSpan-1,times:d}}else d--,f++;else s[m.index].left--,d=s[m.index].times,u++}return new i.Row(e,l,t,h)}))}function u(t,e){var n={};return t.forEach((function(t){if(null!=t.raw){var r=function(t,e){if("head"===t){if("object"==typeof e)return e.header||e.title||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!=r&&(n[t.dataKey]=r)}})),Object.keys(n).length>0?n:null}function c(t,e,n,r,i,a,l){var u,c=(0,o.getTheme)(r);"head"===t?u=i.headStyles:"body"===t?u=i.bodyStyles:"foot"===t&&(u=i.footStyles);var h=(0,s.assign)({},c.table,c[t],i.styles,u),f=i.columnStyles[e.dataKey]||i.columnStyles[e.index]||{},d="body"===t?f:{},p="body"===t&&n%2==0?(0,s.assign)({},c.alternateRow,i.alternateRowStyles):{},g=(0,o.defaultStyles)(a),m=(0,s.assign)({},g,h,p,d);return(0,s.assign)(m,l)}e.createTable=function(t,e){var n=new r.DocHandler(t),o=function(t,e){var n,r=t.content,a=function(t){return t.map((function(t,e){var n,r,a;return a="object"==typeof t&&null!==(r=null!==(n=t.dataKey)&&void 0!==n?n:t.key)&&void 0!==r?r:e,new i.Column(a,t,e)}))}(r.columns);0===r.head.length&&(n=u(a,"head"))&&r.head.push(n),0===r.foot.length&&(n=u(a,"foot"))&&r.foot.push(n);var o=t.settings.theme,s=t.styles;return{columns:a,head:l("head",r.head,a,s,o,e),body:l("body",r.body,a,s,o,e),foot:l("foot",r.foot,a,s,o,e)}}(e,n.scaleFactor()),s=new i.Table(e,o);return(0,a.calculateWidths)(n,s),n.applyStyles(n.userStyles),s}},664:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.addPage=e.drawTable=void 0;var r=n(420),i=n(260),a=n(744),o=n(356),s=n(136),l=n(224);function u(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),"firstPage"!==i.showHead&&"everyPage"!==i.showHead||e.head.forEach((function(i){return p(t,e,i,n,r)}))}function c(t,e,n,r,i,a){t.applyStyles(t.userStyles),a=null!=a?a:e.body.length;var o=Math.min(n+a,e.body.length),s=-1;return e.body.slice(n,o).forEach((function(a,o){var l=n+o===e.body.length-1,u=m(t,e,l,r);a.canEntireRowFit(u,i)&&(p(t,e,a,r,i),s=n+o)})),s}function h(t,e,n,r){var i=e.settings;t.applyStyles(t.userStyles),"lastPage"!==i.showFoot&&"everyPage"!==i.showFoot||e.foot.forEach((function(i){return p(t,e,i,n,r)}))}function f(t,e,n){var r=n.getLineHeight(t.styles.fontSize),i=t.padding("vertical"),a=Math.floor((e-i)/r);return Math.max(0,a)}function d(t,e,n,r,a,s,l){var u=m(t,e,r,s);if(n.canEntireRowFit(u,l))p(t,e,n,s,l);else if(function(t,e,n,r){var i=t.pageSize().height,a=r.settings.margin,o=i-(a.top+a.bottom);"body"===e.section&&(o-=r.getHeadHeight(r.columns)+r.getFootHeight(r.columns));var s=e.getMinimumRowHeight(r.columns,t),l=s<n;if(s>o)return console.error("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 u=e.hasRowSpan(r.columns);return e.getMaxCellHeight(r.columns)>o?(u&&console.error("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):!u&&"avoid"!==r.settings.rowPageBreak}(t,n,u,e)){var c=function(t,e,n,r){var a={};t.spansMultiplePages=!0,t.height=0;for(var s=0,l=0,u=n.columns;l<u.length;l++){var c=u[l];if(y=t.cells[c.index]){Array.isArray(y.text)||(y.text=[y.text]);var h=new i.Cell(y.raw,y.styles,y.section);(h=(0,o.assign)(h,y)).text=[];var d=f(y,e,r);y.text.length>d&&(h.text=y.text.splice(d,y.text.length));var p=r.scaleFactor(),g=r.getLineHeightFactor();y.contentHeight=y.getContentHeight(p,g),y.contentHeight>=e&&(y.contentHeight=e,h.styles.minCellHeight-=e),y.contentHeight>t.height&&(t.height=y.contentHeight),h.contentHeight=h.getContentHeight(p,g),h.contentHeight>s&&(s=h.contentHeight),a[c.index]=h}}var m=new i.Row(t.raw,-1,t.section,a,!0);m.height=s;for(var v=0,b=n.columns;v<b.length;v++){var y;c=b[v],(h=m.cells[c.index])&&(h.height=m.height),(y=t.cells[c.index])&&(y.height=t.height)}return m}(n,u,e,t);p(t,e,n,s,l),v(t,e,a,s,l),d(t,e,c,r,a,s,l)}else v(t,e,a,s,l),d(t,e,n,r,a,s,l)}function p(t,e,n,r,i){r.x=e.settings.margin.left;for(var a=0,o=i;a<o.length;a++){var l=o[a],u=n.cells[l.index];if(u)if(t.applyStyles(u.styles),u.x=r.x,u.y=r.y,!1!==e.callCellHooks(t,e.hooks.willDrawCell,u,n,l,r)){g(t,u,r);var c=u.getTextPos();(0,s.default)(u.text,c.x,c.y,{halign:u.styles.halign,valign:u.styles.valign,maxWidth:Math.ceil(u.width-u.padding("left")-u.padding("right"))},t.getDocument()),e.callCellHooks(t,e.hooks.didDrawCell,u,n,l,r),r.x+=l.width}else r.x+=l.width;else r.x+=l.width}r.y+=n.height}function g(t,e,n){var i=e.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),"number"==typeof i.lineWidth){var a=(0,r.getFillStyle)(i.lineWidth,i.fillColor);a&&t.rect(e.x,n.y,e.width,e.height,a)}else"object"==typeof i.lineWidth&&(i.fillColor&&t.rect(e.x,n.y,e.width,e.height,"F"),function(t,e,n,r){var i,a,o,s;function l(e,n,r,i,a){t.getDocument().setLineWidth(e),t.getDocument().line(n,r,i,a,"S")}r.top&&(i=n.x,a=n.y,o=n.x+e.width,s=n.y,r.right&&(o+=.5*r.right),r.left&&(i-=.5*r.left),l(r.top,i,a,o,s)),r.bottom&&(i=n.x,a=n.y+e.height,o=n.x+e.width,s=n.y+e.height,r.right&&(o+=.5*r.right),r.left&&(i-=.5*r.left),l(r.bottom,i,a,o,s)),r.left&&(i=n.x,a=n.y,o=n.x,s=n.y+e.height,r.top&&(a-=.5*r.top),r.bottom&&(s+=.5*r.bottom),l(r.left,i,a,o,s)),r.right&&(i=n.x+e.width,a=n.y,o=n.x+e.width,s=n.y+e.height,r.top&&(a-=.5*r.top),r.bottom&&(s+=.5*r.bottom),l(r.right,i,a,o,s))}(t,e,n,i.lineWidth))}function m(t,e,n,r){var i=e.settings.margin.bottom,a=e.settings.showFoot;return("everyPage"===a||"lastPage"===a&&n)&&(i+=e.getFootHeight(e.columns)),t.pageSize().height-r.y-i}function v(t,e,n,i,a,o){void 0===a&&(a=[]),void 0===o&&(o=!1),t.applyStyles(t.userStyles),"everyPage"!==e.settings.showFoot||o||e.foot.forEach((function(n){return p(t,e,n,i,a)})),e.callEndPageHooks(t,i);var s=e.settings.margin;(0,r.addTableBorder)(t,e,n,i),b(t),e.pageNumber++,e.pageCount++,i.x=s.left,i.y=s.top,n.y=s.top,e.callWillDrawPageHooks(t,i),"everyPage"===e.settings.showHead&&(e.head.forEach((function(n){return p(t,e,n,i,a)})),t.applyStyles(t.userStyles))}function b(t){var e=t.pageNumber();return t.setPage(e+1),t.pageNumber()===e&&(t.addPage(),!0)}e.drawTable=function(t,e){var n=e.settings,i=n.startY,s=n.margin,f={x:s.left,y:i},g=e.getHeadHeight(e.columns)+e.getFootHeight(e.columns),m=i+s.bottom+g;"avoid"===n.pageBreak&&(m+=e.body.reduce((function(t,e){return t+e.height}),0));var y=new a.DocHandler(t);("always"===n.pageBreak||null!=n.startY&&m>y.pageSize().height)&&(b(y),f.y=s.top),e.callWillDrawPageHooks(y,f);var w=(0,o.assign)({},f);e.startPageNumber=y.pageNumber(),n.horizontalPageBreak?function(t,e,n,r){var i=(0,l.calculateAllColumnsCanFitInPage)(t,e);if("afterAllRows"===e.settings.horizontalPageBreakBehaviour)i.forEach((function(i,a){t.applyStyles(t.userStyles),a>0?v(t,e,n,r,i.columns,!0):u(t,e,r,i.columns),function(t,e,n,r,i){t.applyStyles(t.userStyles),e.body.forEach((function(a,o){var s=o===e.body.length-1;d(t,e,a,s,n,r,i)}))}(t,e,n,r,i.columns),h(t,e,r,i.columns)}));else for(var a=-1,o=i[0],s=function(){var s=a;if(o){t.applyStyles(t.userStyles);var l=o.columns;a>=0?v(t,e,n,r,l,!0):u(t,e,r,l),s=c(t,e,a+1,r,l),h(t,e,r,l)}var f=s-a;i.slice(1).forEach((function(i){t.applyStyles(t.userStyles),v(t,e,n,r,i.columns,!0),c(t,e,a+1,r,i.columns,f),h(t,e,r,i.columns)})),a=s};a<e.body.length-1;)s()}(y,e,w,f):(y.applyStyles(y.userStyles),"firstPage"!==n.showHead&&"everyPage"!==n.showHead||e.head.forEach((function(t){return p(y,e,t,f,e.columns)})),y.applyStyles(y.userStyles),e.body.forEach((function(t,n){var r=n===e.body.length-1;d(y,e,t,r,w,f,e.columns)})),y.applyStyles(y.userStyles),"lastPage"!==n.showFoot&&"everyPage"!==n.showFoot||e.foot.forEach((function(t){return p(y,e,t,f,e.columns)}))),(0,r.addTableBorder)(y,e,w,f),e.callEndPageHooks(y,f),e.finalY=f.y,t.lastAutoTable=e,t.previousAutoTable=e,t.autoTable&&(t.autoTable.previous=e),y.applyStyles(y.userStyles)},e.addPage=v},224:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateAllColumnsCanFitInPage=void 0;var r=n(420);function i(t,e,n){var i;void 0===n&&(n={});var a=(0,r.getPageAvailableWidth)(t,e),o=new Map,s=[],l=[],u=[];e.settings.horizontalPageBreakRepeat,Array.isArray(e.settings.horizontalPageBreakRepeat)?u=e.settings.horizontalPageBreakRepeat:"string"!=typeof e.settings.horizontalPageBreakRepeat&&"number"!=typeof e.settings.horizontalPageBreakRepeat||(u=[e.settings.horizontalPageBreakRepeat]),u.forEach((function(t){var n=e.columns.find((function(e){return e.dataKey===t||e.index===t}));n&&!o.has(n.index)&&(o.set(n.index,!0),s.push(n.index),l.push(e.columns[n.index]),a-=n.wrappedWidth)}));for(var c=!0,h=null!==(i=null==n?void 0:n.start)&&void 0!==i?i:0;h<e.columns.length;)if(o.has(h))h++;else{var f=e.columns[h].wrappedWidth;if(!(c||a>=f))break;c=!1,s.push(h),l.push(e.columns[h]),a-=f,h++}return{colIndexes:s,columns:l,lastIndex:h-1}}e.calculateAllColumnsCanFitInPage=function(t,e){for(var n=[],r=0;r<e.columns.length;r++){var a=i(t,e,{start:r});a.columns.length&&(n.push(a),r=a.lastIndex)}return n}},324:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsize=e.resizeColumns=e.calculateWidths=void 0;var r=n(420);function i(t,e,n){for(var r=e,a=t.reduce((function(t,e){return t+e.wrappedWidth}),0),o=0;o<t.length;o++){var s=t[o],l=r*(s.wrappedWidth/a),u=s.width+l,c=n(s),h=u<c?c:u;e-=h-s.width,s.width=h}if(e=Math.round(1e10*e)/1e10){var f=t.filter((function(t){return!(e<0)||t.width>n(t)}));f.length&&(e=i(f,e,n))}return e}function a(t,e,n,i,a){return t.map((function(t){return function(t,e,n,i,a){var o=1e4*i.scaleFactor();if((e=Math.ceil(e*o)/o)>=(0,r.getStringWidth)(t,n,i))return t;for(;e<(0,r.getStringWidth)(t+a,n,i)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+a}(t,e,n,i,a)}))}e.calculateWidths=function(t,e){!function(t,e){var n=t.scaleFactor(),i=e.settings.horizontalPageBreak,a=(0,r.getPageAvailableWidth)(t,e);e.allRows().forEach((function(o){for(var s=0,l=e.columns;s<l.length;s++){var u=l[s],c=o.cells[u.index];if(c){var h=e.hooks.didParseCell;e.callCellHooks(t,h,c,o,u,null);var f=c.padding("horizontal");c.contentWidth=(0,r.getStringWidth)(c.text,c.styles,t)+f;var d=(0,r.getStringWidth)(c.text.join(" ").split(/\s+/),c.styles,t);if(c.minReadableWidth=d+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===i)c.contentWidth>a?(c.minWidth=a,c.wrappedWidth=a):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var p=10/n;c.minWidth=c.styles.minCellWidth||p,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),e.allRows().forEach((function(t){for(var n=0,r=e.columns;n<r.length;n++){var i=r[n],a=t.cells[i.index];if(a&&1===a.colSpan)i.wrappedWidth=Math.max(i.wrappedWidth,a.wrappedWidth),i.minWidth=Math.max(i.minWidth,a.minWidth),i.minReadableWidth=Math.max(i.minReadableWidth,a.minReadableWidth);else{var o=e.styles.columnStyles[i.dataKey]||e.styles.columnStyles[i.index]||{},s=o.cellWidth||o.minCellWidth;s&&"number"==typeof s&&(i.minWidth=s,i.wrappedWidth=s)}a&&(a.colSpan>1&&!i.minWidth&&(i.minWidth=a.minWidth),a.colSpan>1&&!i.wrappedWidth&&(i.wrappedWidth=a.minWidth))}}))}(t,e);var n=[],o=0;e.columns.forEach((function(t){var r=t.getMaxCustomCellWidth(e);r?t.width=r:(t.width=t.wrappedWidth,n.push(t)),o+=t.width}));var s=e.getWidth(t.pageSize().width)-o;s&&(s=i(n,s,(function(t){return Math.max(t.minReadableWidth,t.minWidth)}))),s&&(s=i(n,s,(function(t){return t.minWidth}))),s=Math.abs(s),!e.settings.horizontalPageBreak&&s>.1/t.scaleFactor()&&(s=s<1?s:Math.round(s),console.warn("Of the table content, ".concat(s," units width could not fit page"))),function(t){for(var e=t.allRows(),n=0;n<e.length;n++)for(var r=e[n],i=null,a=0,o=0,s=0;s<t.columns.length;s++){var l=t.columns[s];if((o-=1)>1&&t.columns[s+1])a+=l.width,delete r.cells[l.index];else if(i){var u=i;delete r.cells[l.index],i=null,u.width=l.width+a}else{if(!(u=r.cells[l.index]))continue;if(o=u.colSpan,a=0,u.colSpan>1){i=u,a+=l.width;continue}u.width=l.width+a}}}(e),function(t,e){for(var n={count:0,height:0},r=0,i=t.allRows();r<i.length;r++){for(var o=i[r],s=0,l=t.columns;s<l.length;s++){var u=l[s],c=o.cells[u.index];if(c){e.applyStyles(c.styles,!0);var h=c.width-c.padding("horizontal");if("linebreak"===c.styles.overflow)c.text=e.splitTextToSize(c.text,h+1/e.scaleFactor(),{fontSize:c.styles.fontSize});else if("ellipsize"===c.styles.overflow)c.text=a(c.text,h,c.styles,e,"...");else if("hidden"===c.styles.overflow)c.text=a(c.text,h,c.styles,e,"");else if("function"==typeof c.styles.overflow){var f=c.styles.overflow(c.text,h);c.text="string"==typeof f?[f]:f}c.contentHeight=c.getContentHeight(e.scaleFactor(),e.getLineHeightFactor());var d=c.contentHeight/c.rowSpan;c.rowSpan>1&&n.count*n.height<d*c.rowSpan?n={height:d,count:c.rowSpan}:n&&n.count>0&&n.height>d&&(d=n.height),d>o.height&&(o.height=d)}}n.count--}}(e,t),function(t){for(var e={},n=1,r=t.allRows(),i=0;i<r.length;i++)for(var a=r[i],o=0,s=t.columns;o<s.length;o++){var l=s[o],u=e[l.index];if(n>1)n--,delete a.cells[l.index];else if(u)u.cell.height+=a.height,n=u.cell.colSpan,delete a.cells[l.index],u.left--,u.left<=1&&delete e[l.index];else{var c=a.cells[l.index];if(!c)continue;if(c.height=a.height,c.rowSpan>1){var h=r.length-i,f=c.rowSpan>h?h:c.rowSpan;e[l.index]={cell:c,left:f,row:a}}}}}(e)},e.resizeColumns=i,e.ellipsize=a},964:function(e){if(void 0===t){var n=new Error("Cannot find module 'undefined'");throw n.code="MODULE_NOT_FOUND",n}e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var a=n[t]={exports:{}};return e[t].call(a.exports,a,a.exports,r),a.exports}var i={};return function(){var t=i;Object.defineProperty(t,"__esModule",{value:!0}),t.Cell=t.Column=t.Row=t.Table=t.CellHookData=t.__drawTable=t.__createTable=t.applyPlugin=void 0;var e=r(340),n=r(776),a=r(664),o=r(972),s=r(260);Object.defineProperty(t,"Table",{enumerable:!0,get:function(){return s.Table}});var l=r(172);Object.defineProperty(t,"CellHookData",{enumerable:!0,get:function(){return l.CellHookData}});var u=r(260);function c(t){(0,e.default)(t)}Object.defineProperty(t,"Cell",{enumerable:!0,get:function(){return u.Cell}}),Object.defineProperty(t,"Column",{enumerable:!0,get:function(){return u.Column}}),Object.defineProperty(t,"Row",{enumerable:!0,get:function(){return u.Row}}),t.applyPlugin=c,t.__createTable=function(t,e){var r=(0,n.parseInput)(t,e);return(0,o.createTable)(t,r)},t.__drawTable=function(t,e){(0,a.drawTable)(t,e)};try{var h=r(964);h.jsPDF&&(h=h.jsPDF),c(h)}catch(t){}t.default=function(t,e){var r=(0,n.parseInput)(t,e),i=(0,o.createTable)(t,r);(0,a.drawTable)(t,i)}}(),i}()},t.exports=r(function(){try{return n(8104)}catch(t){}}())},8104:function(t,e,n){"use strict";n.r(e),n.d(e,{AcroForm:function(){return de},AcroFormAppearance:function(){return ue},AcroFormButton:function(){return ne},AcroFormCheckBox:function(){return oe},AcroFormChoiceField:function(){return Zt},AcroFormComboBox:function(){return te},AcroFormEditBox:function(){return ee},AcroFormListBox:function(){return Qt},AcroFormPasswordField:function(){return le},AcroFormPushButton:function(){return re},AcroFormRadioButton:function(){return ie},AcroFormTextField:function(){return se},GState:function(){return wt},ShadingPattern:function(){return Lt},TilingPattern:function(){return At},default:function(){return hn},jsPDF:function(){return Nt}}),n(9681);var r=n(901),i=Uint8Array,a=Uint16Array,o=Uint32Array,s=new i([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 i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var n=new a(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var i=new o(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return[n,i]},h=c(s,2),f=h[0],d=h[1];f[28]=258,d[258]=28;for(var p=c(l,0),g=p[0],m=p[1],v=new a(32768),b=0;b<32768;++b){var y=(43690&b)>>>1|(21845&b)<<1;y=(61680&(y=(52428&y)>>>2|(13107&y)<<2))>>>4|(3855&y)<<4,v[b]=((65280&y)>>>8|(255&y)<<8)>>>1}var w=function(t,e,n){for(var r=t.length,i=0,o=new a(e);i<r;++i)++o[t[i]-1];var s,l=new a(e);for(i=0;i<e;++i)l[i]=l[i-1]+o[i-1]<<1;if(n){s=new a(1<<e);var u=15-e;for(i=0;i<r;++i)if(t[i])for(var c=i<<4|t[i],h=e-t[i],f=l[t[i]-1]++<<h,d=f|(1<<h)-1;f<=d;++f)s[v[f]>>>u]=c}else for(s=new a(r),i=0;i<r;++i)s[i]=v[l[t[i]-1]++]>>>15-t[i];return s},x=new i(288);for(b=0;b<144;++b)x[b]=8;for(b=144;b<256;++b)x[b]=9;for(b=256;b<280;++b)x[b]=7;for(b=280;b<288;++b)x[b]=8;var L=new i(32);for(b=0;b<32;++b)L[b]=5;var A=w(x,9,0),N=w(x,9,1),S=w(L,5,0),_=w(L,5,1),P=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},k=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},F=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},C=function(t){return(t/8>>0)+(7&t&&1)},I=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var r=new(t instanceof a?a:t instanceof o?o:i)(n-e);return r.set(t.subarray(e,n)),r},j=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},O=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},D=function(t,e){for(var n=[],r=0;r<t.length;++r)t[r]&&n.push({s:r,f:t[r]});var o=n.length,s=n.slice();if(!o)return[new i(0),0];if(1==o){var l=new i(n[0].s+1);return l[n[0].s]=1,[l,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var u=n[0],c=n[1],h=0,f=1,d=2;for(n[0]={s:-1,f:u.f+c.f,l:u,r:c};f!=o-1;)u=n[n[h].f<n[d].f?h++:d++],c=n[h!=f&&n[h].f<n[d].f?h++:d++],n[f++]={s:-1,f:u.f+c.f,l:u,r:c};var p=s[0].s;for(r=1;r<o;++r)s[r].s>p&&(p=s[r].s);var g=new a(p+1),m=B(n[f-1],g,0);if(m>e){r=0;var v=0,b=m-e,y=1<<b;for(s.sort((function(t,e){return g[e.s]-g[t.s]||t.f-e.f}));r<o;++r){var w=s[r].s;if(!(g[w]>e))break;v+=y-(1<<m-g[w]),g[w]=e}for(v>>>=b;v>0;){var x=s[r].s;g[x]<e?v-=1<<e-g[x]++-1:++r}for(;r>=0&&v;--r){var L=s[r].s;g[L]==e&&(--g[L],++v)}m=e}return[new i(g),m]},B=function(t,e,n){return-1==t.s?Math.max(B(t.l,e,n+1),B(t.r,e,n+1)):e[t.s]=n},M=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new a(++e),r=0,i=t[0],o=1,s=function(t){n[r++]=t},l=1;l<=e;++l)if(t[l]==i&&l!=e)++o;else{if(!i&&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(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=t[l]}return[n.subarray(0,r),e]},E=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},T=function(t,e,n){var r=n.length,i=C(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<r;++a)t[i+a+4]=n[a];return 8*(i+4+r)},R=function(t,e,n,r,i,o,c,h,f,d,p){j(e,p++,n),++i[256];for(var g=D(i,15),m=g[0],v=g[1],b=D(o,15),y=b[0],N=b[1],_=M(m),P=_[0],k=_[1],F=M(y),C=F[0],I=F[1],B=new a(19),R=0;R<P.length;++R)B[31&P[R]]++;for(R=0;R<C.length;++R)B[31&C[R]]++;for(var q=D(B,7),z=q[0],U=q[1],W=19;W>4&&!z[u[W-1]];--W);var H,V,G,Y,J=d+5<<3,X=E(i,x)+E(o,L)+c,K=E(i,m)+E(o,y)+c+14+3*W+E(B,z)+(2*B[16]+3*B[17]+7*B[18]);if(J<=X&&J<=K)return T(e,p,t.subarray(f,f+d));if(j(e,p,1+(K<X)),p+=2,K<X){H=w(m,v,0),V=m,G=w(y,N,0),Y=y;var $=w(z,U,0);for(j(e,p,k-257),j(e,p+5,I-1),j(e,p+10,W-4),p+=14,R=0;R<W;++R)j(e,p+3*R,z[u[R]]);p+=3*W;for(var Z=[P,C],Q=0;Q<2;++Q){var tt=Z[Q];for(R=0;R<tt.length;++R){var et=31&tt[R];j(e,p,$[et]),p+=z[et],et>15&&(j(e,p,tt[R]>>>5&127),p+=tt[R]>>>12)}}}else H=A,V=x,G=S,Y=L;for(R=0;R<h;++R)if(r[R]>255){et=r[R]>>>18&31,O(e,p,H[et+257]),p+=V[et+257],et>7&&(j(e,p,r[R]>>>23&31),p+=s[et]);var nt=31&r[R];O(e,p,G[nt]),p+=Y[nt],nt>3&&(O(e,p,r[R]>>>5&8191),p+=l[nt])}else O(e,p,H[r[R]]),p+=V[r[R]];return O(e,p,H[256]),p+V[256]},q=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new i(0),U=function(t,e,n,r,u){return function(t,e,n,r,u,c){var h=t.length,f=new i(r+h+5*(1+Math.floor(h/7e3))+u),p=f.subarray(r,f.length-u),g=0;if(!e||h<8)for(var v=0;v<=h;v+=65535){var b=v+65535;b<h?g=T(p,g,t.subarray(v,b)):(p[v]=c,g=T(p,g,t.subarray(v,h)))}else{for(var y=q[e-1],w=y>>>13,x=8191&y,L=(1<<n)-1,A=new a(32768),N=new a(L+1),S=Math.ceil(n/3),_=2*S,P=function(e){return(t[e]^t[e+1]<<S^t[e+2]<<_)&L},k=new o(25e3),F=new a(288),j=new a(32),O=0,D=0,B=(v=0,0),M=0,E=0;v<h;++v){var U=P(v),W=32767&v,H=N[U];if(A[W]=H,N[U]=W,M<=v){var V=h-v;if((O>7e3||B>24576)&&V>423){g=R(t,p,0,k,F,j,D,B,E,v-E,g),B=O=D=0,E=v;for(var G=0;G<286;++G)F[G]=0;for(G=0;G<30;++G)j[G]=0}var Y=2,J=0,X=x,K=W-H&32767;if(V>2&&U==P(v-K))for(var $=Math.min(w,V)-1,Z=Math.min(32767,v),Q=Math.min(258,V);K<=Z&&--X&&W!=H;){if(t[v+Y]==t[v+Y-K]){for(var tt=0;tt<Q&&t[v+tt]==t[v+tt-K];++tt);if(tt>Y){if(Y=tt,J=K,tt>$)break;var et=Math.min(K,tt-2),nt=0;for(G=0;G<et;++G){var rt=v-K+G+32768&32767,it=rt-A[rt]+32768&32767;it>nt&&(nt=it,H=rt)}}}K+=(W=H)-(H=A[W])+32768&32767}if(J){k[B++]=268435456|d[Y]<<18|m[J];var at=31&d[Y],ot=31&m[J];D+=s[at]+l[ot],++F[257+at],++j[ot],M=v+Y,++O}else k[B++]=t[v],++F[t[v]]}}g=R(t,p,c,k,F,j,D,B,E,v-E,g),c||(g=T(p,g,z))}return I(f,0,r+C(g)+u)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!u)};function W(t,e){void 0===e&&(e={});var n=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,a=n.length,o=0;o!=a;){for(var s=Math.min(o+5552,a);o<s;++o)i+=r+=n[o];r%=65521,i%=65521}t=r,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}}();n.p(t);var r=U(t,e,2,4);return function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)}(r,e),function(t,e,n){for(;n;++e)t[e]=n,n>>>=8}(r,r.length-4,n.d()),r}function H(t,e){return function(t,e,n){var r=t.length,a=!e||n,o=!n||n.i;n||(n={}),e||(e=new i(3*r));var c=function(t){var n=e.length;if(t>n){var r=new i(Math.max(2*n,t));r.set(e),e=r}},h=n.f||0,d=n.p||0,p=n.b||0,m=n.l,v=n.d,b=n.m,y=n.n,x=8*r;do{if(!m){n.f=h=k(t,d,1);var L=k(t,d+1,3);if(d+=3,!L){var A=t[(z=C(d)+4)-4]|t[z-3]<<8,S=z+A;if(S>r){if(o)throw"unexpected EOF";break}a&&c(p+A),e.set(t.subarray(z,S),p),n.b=p+=A,n.p=d=8*S;continue}if(1==L)m=N,v=_,b=9,y=5;else{if(2!=L)throw"invalid block type";var j=k(t,d,31)+257,O=k(t,d+10,15)+4,D=j+k(t,d+5,31)+1;d+=14;for(var B=new i(D),M=new i(19),E=0;E<O;++E)M[u[E]]=k(t,d+3*E,7);d+=3*O;var T=P(M),R=(1<<T)-1;if(!o&&d+D*(T+7)>x)break;var q=w(M,T,1);for(E=0;E<D;){var z,U=q[k(t,d,R)];if(d+=15&U,(z=U>>>4)<16)B[E++]=z;else{var W=0,H=0;for(16==z?(H=3+k(t,d,3),d+=2,W=B[E-1]):17==z?(H=3+k(t,d,7),d+=3):18==z&&(H=11+k(t,d,127),d+=7);H--;)B[E++]=W}}var V=B.subarray(0,j),G=B.subarray(j);b=P(V),y=P(G),m=w(V,b,1),v=w(G,y,1)}if(d>x)throw"unexpected EOF"}a&&c(p+131072);for(var Y=(1<<b)-1,J=(1<<y)-1,X=b+y+18;o||d+X<x;){var K=(W=m[F(t,d)&Y])>>>4;if((d+=15&W)>x)throw"unexpected EOF";if(!W)throw"invalid length/literal";if(K<256)e[p++]=K;else{if(256==K){m=null;break}var $=K-254;if(K>264){var Z=s[E=K-257];$=k(t,d,(1<<Z)-1)+f[E],d+=Z}var Q=v[F(t,d)&J],tt=Q>>>4;if(!Q)throw"invalid distance";if(d+=15&Q,G=g[tt],tt>3&&(Z=l[tt],G+=F(t,d)&(1<<Z)-1,d+=Z),d>x)throw"unexpected EOF";a&&c(p+131072);for(var et=p+$;p<et;p+=4)e[p]=e[p-G],e[p+1]=e[p+1-G],e[p+2]=e[p+2-G],e[p+3]=e[p+3-G];p=et}}n.l=m,n.p=d,n.b=p,m&&(h=1,n.m=b,n.d=v,n.n=y)}while(!h);return p==e.length?e:I(e,0,p)}((function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"}(t),t.subarray(2,-4)),e)}var V=function(){return"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:this}();function G(){V.console&&"function"==typeof V.console.log&&V.console.log.apply(V.console,arguments)}var Y={log:G,warn:function(t){V.console&&("function"==typeof V.console.warn?V.console.warn.apply(V.console,arguments):G.call(null,arguments))},error:function(t){V.console&&("function"==typeof V.console.error?V.console.error.apply(V.console,arguments):G(t))}};function J(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Q(r.response,e,n)},r.onerror=function(){Y.error("could not download file")},r.send()}function X(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function K(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 $,Z,Q=V.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,r.A)(window))||window!==V?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=V.URL||V.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?X(i.href)?J(t,e,n):K(i,i.target="_blank"):K(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){K(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(X(t))J(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){K(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==(0,r.A)(e)&&(Y.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,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return J(t,e,n);var a="application/octet-stream"===t.type,o=/constructor/i.test(V.HTMLElement)||V.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,r.A)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var u=V.URL||V.webkitURL,c=u.createObjectURL(t);i?i.location=c:location.href=c,i=null,setTimeout((function(){u.revokeObjectURL(c)}),4e4)}});function tt(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)]}}],r=0;r<n.length;r++){var i=n[r].re,a=n[r].process,o=i.exec(t);o&&(e=a(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}}function et(t,e){var n=t[0],r=t[1],i=t[2],a=t[3];n=rt(n,r,i,a,e[0],7,-680876936),a=rt(a,n,r,i,e[1],12,-389564586),i=rt(i,a,n,r,e[2],17,606105819),r=rt(r,i,a,n,e[3],22,-1044525330),n=rt(n,r,i,a,e[4],7,-176418897),a=rt(a,n,r,i,e[5],12,1200080426),i=rt(i,a,n,r,e[6],17,-1473231341),r=rt(r,i,a,n,e[7],22,-45705983),n=rt(n,r,i,a,e[8],7,1770035416),a=rt(a,n,r,i,e[9],12,-1958414417),i=rt(i,a,n,r,e[10],17,-42063),r=rt(r,i,a,n,e[11],22,-1990404162),n=rt(n,r,i,a,e[12],7,1804603682),a=rt(a,n,r,i,e[13],12,-40341101),i=rt(i,a,n,r,e[14],17,-1502002290),n=it(n,r=rt(r,i,a,n,e[15],22,1236535329),i,a,e[1],5,-165796510),a=it(a,n,r,i,e[6],9,-1069501632),i=it(i,a,n,r,e[11],14,643717713),r=it(r,i,a,n,e[0],20,-373897302),n=it(n,r,i,a,e[5],5,-701558691),a=it(a,n,r,i,e[10],9,38016083),i=it(i,a,n,r,e[15],14,-660478335),r=it(r,i,a,n,e[4],20,-405537848),n=it(n,r,i,a,e[9],5,568446438),a=it(a,n,r,i,e[14],9,-1019803690),i=it(i,a,n,r,e[3],14,-187363961),r=it(r,i,a,n,e[8],20,1163531501),n=it(n,r,i,a,e[13],5,-1444681467),a=it(a,n,r,i,e[2],9,-51403784),i=it(i,a,n,r,e[7],14,1735328473),n=at(n,r=it(r,i,a,n,e[12],20,-1926607734),i,a,e[5],4,-378558),a=at(a,n,r,i,e[8],11,-2022574463),i=at(i,a,n,r,e[11],16,1839030562),r=at(r,i,a,n,e[14],23,-35309556),n=at(n,r,i,a,e[1],4,-1530992060),a=at(a,n,r,i,e[4],11,1272893353),i=at(i,a,n,r,e[7],16,-155497632),r=at(r,i,a,n,e[10],23,-1094730640),n=at(n,r,i,a,e[13],4,681279174),a=at(a,n,r,i,e[0],11,-358537222),i=at(i,a,n,r,e[3],16,-722521979),r=at(r,i,a,n,e[6],23,76029189),n=at(n,r,i,a,e[9],4,-640364487),a=at(a,n,r,i,e[12],11,-421815835),i=at(i,a,n,r,e[15],16,530742520),n=ot(n,r=at(r,i,a,n,e[2],23,-995338651),i,a,e[0],6,-198630844),a=ot(a,n,r,i,e[7],10,1126891415),i=ot(i,a,n,r,e[14],15,-1416354905),r=ot(r,i,a,n,e[5],21,-57434055),n=ot(n,r,i,a,e[12],6,1700485571),a=ot(a,n,r,i,e[3],10,-1894986606),i=ot(i,a,n,r,e[10],15,-1051523),r=ot(r,i,a,n,e[1],21,-2054922799),n=ot(n,r,i,a,e[8],6,1873313359),a=ot(a,n,r,i,e[15],10,-30611744),i=ot(i,a,n,r,e[6],15,-1560198380),r=ot(r,i,a,n,e[13],21,1309151649),n=ot(n,r,i,a,e[4],6,-145523070),a=ot(a,n,r,i,e[11],10,-1120210379),i=ot(i,a,n,r,e[2],15,718787259),r=ot(r,i,a,n,e[9],21,-343485551),t[0]=pt(n,t[0]),t[1]=pt(r,t[1]),t[2]=pt(i,t[2]),t[3]=pt(a,t[3])}function nt(t,e,n,r,i,a){return e=pt(pt(e,t),pt(r,a)),pt(e<<i|e>>>32-i,n)}function rt(t,e,n,r,i,a,o){return nt(e&n|~e&r,t,e,i,a,o)}function it(t,e,n,r,i,a,o){return nt(e&r|n&~r,t,e,i,a,o)}function at(t,e,n,r,i,a,o){return nt(e^n^r,t,e,i,a,o)}function ot(t,e,n,r,i,a,o){return nt(n^(e|~r),t,e,i,a,o)}function st(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)et(r,lt(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(et(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,et(r,i),r}function lt(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}$=V.atob.bind(V),Z=V.btoa.bind(V);var ut="0123456789abcdef".split("");function ct(t){for(var e="",n=0;n<4;n++)e+=ut[t>>8*n+4&15]+ut[t>>8*n&15];return e}function ht(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function ft(t){return st(t).map(ht).join("")}var dt="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=ct(t[e]);return t.join("")}(st("hello"));function pt(t,e){if(dt){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function gt(t,e){var n,r,i,a;if(t!==n){for(var o=(i=t,a=1+(256/t.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+o.charCodeAt(l))%256,s[l]=s[u],s[u]=c}n=t,r=s}else s=r;var h=e.length,f=0,d=0,p="";for(l=0;l<h;l++)d=(d+(c=s[f=(f+1)%256]))%256,s[f]=s[d],s[d]=c,o=s[(s[f]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(l)^o);return p}var mt={print:4,modify:8,copy:16,"annot-forms":32};function vt(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==mt.perm)throw new Error("Invalid permission: "+t);i+=mt[t]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=ft(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=gt(this.encryptionKey,this.padding)}function bt(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function yt(t){if("object"!==(0,r.A)(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},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 r=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[n]){var o=e[n][a];try{o[0].apply(t,r)}catch(n){V.console&&Y.error("jsPDF PubSub Error",n.message,n)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function wt(t){if(!(this instanceof wt))return new wt(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 xt(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Lt(t,e,n,r,i){if(!(this instanceof Lt))return new Lt(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,xt.call(this,r,i)}function At(t,e,n,r,i){if(!(this instanceof At))return new At(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,xt.call(this,r,i)}function Nt(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],s=[],l=1,u=16,c="S",h=null;"object"===(0,r.A)(t=t||{})&&(n=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,null!==(h=t.encryption||null)&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),c=t.defaultPathOperation||"S"),s=t.filters||(!0===o?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,d={},p={internal:{},__private__:{}};p.__private__.PubSub=yt;var g="1.3",m=p.__private__.getPdfVersion=function(){return g};p.__private__.setPdfVersion=function(t){g=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]};a=a||"a4";var y="compat",w="advanced",x=y;function L(){this.saveGraphicsState(),rt(new Ht(St,0,0,-St,0,Ln()*St).toString()+" cm"),this.setFontSize(this.getFontSize()/St),c="n",x=w}function A(){this.restoreGraphicsState(),c="S",x=y}var N=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=x===y;return e&&L.call(this),"function"!=typeof t||(t(this),e&&A.call(this)),this},p.compatAPI=function(t){var e=x===w;return e&&A.call(this),"function"!=typeof t||(t(this),e&&L.call(this)),this},p.isAdvancedAPI=function(){return x===w};var S,_=function(t){if(x!==w)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},P=p.roundToPrecision=p.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};S=p.hpf=p.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,u)}:"smart"===u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return P(t,16)};var k=p.f2=p.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return P(t,2)},F=p.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return P(t,3)},C=p.scale=p.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return x===y?t*St:x===w?t:void 0},I=function(t){return C(function(t){return x===y?Ln()-t:x===w?t:void 0}(t))};p.__private__.setPrecision=p.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var j,O="00000000000000000000000000000000",D=p.__private__.getFileId=function(){return O},B=p.__private__.setFileId=function(t){return O=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():O.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==h&&(Ie=new vt(h.userPermissions,h.userPassword,h.ownerPassword,O)),O};p.setFileId=function(t){return B(t),this},p.getFileId=function(){return D()};var M=p.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),a=[n,z(r),"'",z(i),"'"].join("");return["D:",t.getFullYear(),z(t.getMonth()+1),z(t.getDate()),z(t.getHours()),z(t.getMinutes()),z(t.getSeconds()),a].join("")},E=p.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),a=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,a,o,0)},T=p.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=M(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 j=e},R=p.__private__.getCreationDate=function(t){var e=j;return"jsDate"===t&&(e=E(j)),e};p.setCreationDate=function(t){return T(t),this},p.getCreationDate=function(t){return R(t)};var q,z=p.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},U=p.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},W=0,H=[],G=[],J=0,X=[],K=[],$=!1,et=G;p.__private__.setCustomOutputDestination=function(t){$=!0,et=t};var nt=function(t){$||(et=t)};p.__private__.resetCustomOutputDestination=function(){$=!1,et=G};var rt=p.__private__.out=function(t){return t=t.toString(),J+=t.length+1,et.push(t),et},it=p.__private__.write=function(t){return rt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},at=p.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},ot=[["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 ot};var st=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(t){return st=x===w?t/St:t,this};var lt,ut=p.__private__.getFontSize=p.getFontSize=function(){return x===y?st:st*St},ct=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(t){return ct=t,this},p.__private__.getR2L=p.getR2L=function(){return ct};var ht,ft=p.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))lt=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.');lt=t}else lt=parseInt(t,10)};p.__private__.getZoomMode=function(){return lt};var dt,pt=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.');ht=t};p.__private__.getPageMode=function(){return ht};var gt=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.');dt=t};p.__private__.getLayoutMode=function(){return dt},p.__private__.setDisplayMode=p.setDisplayMode=function(t,e,n){return ft(t),gt(e),pt(n),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(t){if(-1===Object.keys(mt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return mt[t]},p.__private__.getDocumentProperties=function(){return mt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(t){for(var e in mt)mt.hasOwnProperty(e)&&t[e]&&(mt[e]=t[e]);return this},p.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(mt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[t]=e};var xt,St,_t,Pt,kt,Ft={},Ct={},It=[],jt={},Ot={},Dt={},Bt={},Mt=null,Et=0,Tt=[],Rt=new yt(p),qt=t.hotfixes||[],zt={},Ut={},Wt=[],Ht=function t(e,n,r,i,a,o){if(!(this instanceof t))return new t(e,n,r,i,a,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,n,r,i,a,o]};Object.defineProperty(Ht.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ht.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ht.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ht.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ht.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ht.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ht.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Ht.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Ht.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Ht.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Ht.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Ht.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Ht.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ht.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ht.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ht.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ht.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(t)},Ht.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,a=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Ht(e,n,r,i,a,o)},Ht.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*r;n-=t*s,r-=e*s;var l=Math.sqrt(n*n+r*r);return s/=l,t*(r/=l)<e*(n/=l)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Ht(o,0,0,l,0,0),translate:new Ht(1,0,0,1,i,a),rotate:new Ht(t,e,-e,t,0,0),skew:new Ht(1,0,s,1,0,0)}},Ht.prototype.toString=function(t){return this.join(" ")},Ht.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty,o=1/(t*r-e*n),s=r*o,l=-e*o,u=-n*o,c=t*o;return new Ht(s,l,u,c,-s*i-u*a,-l*i-c*a)},Ht.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 gn(e,n)},Ht.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new gn(t.x+t.w,t.y+t.h));return new mn(e.x,e.y,n.x-e.x,n.y-e.y)},Ht.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,a=this.ty;return new Ht(t,e,n,r,i,a)},p.Matrix=Ht;var Vt=p.matrixMult=function(t,e){return e.multiply(t)},Gt=new Ht(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Gt;var Yt=function(t,e){if(!Ot[t]){var n=(e instanceof Lt?"Sh":"P")+(Object.keys(jt).length+1).toString(10);e.id=n,Ot[t]=n,jt[n]=e,Rt.publish("addPattern",e)}};p.ShadingPattern=Lt,p.TilingPattern=At,p.addShadingPattern=function(t,e){return _("addShadingPattern()"),Yt(t,e),this},p.beginTilingPattern=function(t){_("beginTilingPattern()"),bn(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){_("endTilingPattern()"),e.stream=K[q].join("\n"),Yt(t,e),Rt.publish("endTilingPattern",e),Wt.pop().restore()};var Jt,Xt=p.__private__.newObject=function(){var t=Kt();return $t(t,!0),t},Kt=p.__private__.newObjectDeferred=function(){return W++,H[W]=function(){return J},W},$t=function(t,e){return e="boolean"==typeof e&&e,H[t]=J,e&&rt(t+" 0 obj"),t},Zt=p.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return X.push(t),t},Qt=Kt(),te=Kt(),ee=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 r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},ne=p.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,a=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 tt(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&n===i&&i===a)e="string"==typeof n?n+" "+s[0]:2===t.precision?k(n/255)+" "+s[0]:F(n/255)+" "+s[0];else if(void 0===o||"object"===(0,r.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof n?[n,i,a,s[1]].join(" "):2===t.precision?[k(n/255),k(i/255),k(a/255),s[1]].join(" "):[F(n/255),F(i/255),F(a/255),s[1]].join(" ")}else e="string"==typeof n?[n,i,a,o,s[2]].join(" "):2===t.precision?[k(n),k(i),k(a),k(o),s[2]].join(" "):[F(n),F(i),F(a),F(o),s[2]].join(" ");return e},re=p.__private__.getFilters=function(){return s},ie=p.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==h&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==h&&(s=Ie.encryptor(o,0));var l={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],c=(l=void 0!==Nt.API.processDataByFilters?Nt.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==l.data.length&&(u.push({key:"Length",value:l.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var f=0;f<u.length;f+=1)if("DecodeParms"===u[f].key){for(var d=[],p=0;p<l.reverseChain.split("/").length-1;p+=1)d.push("null");d.push(u[f].value),u[f].value="["+d.join(" ")+"]"}}rt("<<");for(var g=0;g<u.length;g++)rt("/"+u[g].key+" "+u[g].value);rt(">>"),0!==l.data.length&&(rt("stream"),rt(s(l.data)),rt("endstream"))},ae=p.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;$t(r,!0),rt("<</Type /Page"),rt("/Parent "+t.rootDictionaryObjId+" 0 R"),rt("/Resources "+t.resourceDictionaryObjId+" 0 R"),rt("/MediaBox ["+parseFloat(S(t.mediaBox.bottomLeftX))+" "+parseFloat(S(t.mediaBox.bottomLeftY))+" "+S(t.mediaBox.topRightX)+" "+S(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&rt("/CropBox ["+S(t.cropBox.bottomLeftX)+" "+S(t.cropBox.bottomLeftY)+" "+S(t.cropBox.topRightX)+" "+S(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&rt("/BleedBox ["+S(t.bleedBox.bottomLeftX)+" "+S(t.bleedBox.bottomLeftY)+" "+S(t.bleedBox.topRightX)+" "+S(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&rt("/TrimBox ["+S(t.trimBox.bottomLeftX)+" "+S(t.trimBox.bottomLeftY)+" "+S(t.trimBox.topRightX)+" "+S(t.trimBox.topRightY)+"]"),null!==t.artBox&&rt("/ArtBox ["+S(t.artBox.bottomLeftX)+" "+S(t.artBox.bottomLeftY)+" "+S(t.artBox.topRightX)+" "+S(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&rt("/UserUnit "+t.userUnit),Rt.publish("putPage",{objId:r,pageContext:Tt[e],pageNumber:e,page:n}),rt("/Contents "+i+" 0 R"),rt(">>"),rt("endobj");var a=n.join("\n");return x===w&&(a+="\nQ"),$t(i,!0),ie({data:a,filters:re(),objectId:i}),rt("endobj"),r},oe=p.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Et;t++)Tt[t].objId=Kt(),Tt[t].contentsObjId=Kt();for(t=1;t<=Et;t++)n.push(ae({number:t,data:K[t],objId:Tt[t].objId,contentsObjId:Tt[t].contentsObjId,mediaBox:Tt[t].mediaBox,cropBox:Tt[t].cropBox,bleedBox:Tt[t].bleedBox,trimBox:Tt[t].trimBox,artBox:Tt[t].artBox,userUnit:Tt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));$t(Qt,!0),rt("<</Type /Pages");var r="/Kids [";for(e=0;e<Et;e++)r+=n[e]+" 0 R ";rt(r+"]"),rt("/Count "+Et),rt(">>"),rt("endobj"),Rt.publish("postPutPages")},se=function(t){Rt.publish("putFont",{font:t,out:rt,newObject:Xt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Xt(),rt("<<"),rt("/Type /Font"),rt("/BaseFont /"+bt(t.postScriptName)),rt("/Subtype /Type1"),"string"==typeof t.encoding&&rt("/Encoding /"+t.encoding),rt("/FirstChar 32"),rt("/LastChar 255"),rt(">>"),rt("endobj"))},le=function(t){t.objectNumber=Xt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[S(t.x),S(t.y),S(t.x+t.width),S(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),rt("endobj")},ue=function(t,e){e||(e=21);var n=Xt(),r=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}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,u=0;u<r.length;u++){for(n=r[u];n>t[l+1].offset;)l++;var c=t[l].offset,h=(n-c)/(t[l+1].offset-c),f=t[l].color,d=t[l+1].color;s+=U(Math.round((1-h)*f[0]+h*d[0]).toString(16))+U(Math.round((1-h)*f[1]+h*d[1]).toString(16))+U(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()}(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),rt("endobj"),t.objectNumber=Xt(),rt("<< /ShadingType "+t.type),rt("/ColorSpace /DeviceRGB");var a="/Coords ["+S(parseFloat(t.coords[0]))+" "+S(parseFloat(t.coords[1]))+" ";2===t.type?a+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3])):a+=S(parseFloat(t.coords[2]))+" "+S(parseFloat(t.coords[3]))+" "+S(parseFloat(t.coords[4]))+" "+S(parseFloat(t.coords[5])),rt(a+="]"),t.matrix&&rt("/Matrix ["+t.matrix.toString()+"]"),rt("/Function "+n+" 0 R"),rt("/Extend [true true]"),rt(">>"),rt("endobj")},ce=function(t,e){var n=Kt(),r=Xt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(S).join(" ")+"]"}),i.push({key:"XStep",value:S(t.xStep)}),i.push({key:"YStep",value:S(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),rt("endobj")},he=function(t){for(var e in t.objectNumber=Xt(),rt("<<"),t)switch(e){case"opacity":rt("/ca "+k(t[e]));break;case"stroke-opacity":rt("/CA "+k(t[e]))}rt(">>"),rt("endobj")},fe=function(t){$t(t.resourcesOid,!0),rt("<<"),rt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in rt("/Font <<"),Ft)Ft.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&rt("/"+t+" "+Ft[t].objectNumber+" 0 R");rt(">>")}(),function(){if(Object.keys(jt).length>0){for(var t in rt("/Shading <<"),jt)jt.hasOwnProperty(t)&&jt[t]instanceof Lt&&jt[t].objectNumber>=0&&rt("/"+t+" "+jt[t].objectNumber+" 0 R");Rt.publish("putShadingPatternDict"),rt(">>")}}(),function(t){if(Object.keys(jt).length>0){for(var e in rt("/Pattern <<"),jt)jt.hasOwnProperty(e)&&jt[e]instanceof p.TilingPattern&&jt[e].objectNumber>=0&&jt[e].objectNumber<t&&rt("/"+e+" "+jt[e].objectNumber+" 0 R");Rt.publish("putTilingPatternDict"),rt(">>")}}(t.objectOid),function(){if(Object.keys(Dt).length>0){var t;for(t in rt("/ExtGState <<"),Dt)Dt.hasOwnProperty(t)&&Dt[t].objectNumber>=0&&rt("/"+t+" "+Dt[t].objectNumber+" 0 R");Rt.publish("putGStateDict"),rt(">>")}}(),function(){for(var t in rt("/XObject <<"),zt)zt.hasOwnProperty(t)&&zt[t].objectNumber>=0&&rt("/"+t+" "+zt[t].objectNumber+" 0 R");Rt.publish("putXobjectDict"),rt(">>")}(),rt(">>"),rt("endobj")},de=function(t){Ct[t.fontName]=Ct[t.fontName]||{},Ct[t.fontName][t.fontStyle]=t.id},pe=function(t,e,n,r,i){var a={id:"F"+(Object.keys(Ft).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Rt.publish("addFont",{font:a,instance:this}),Ft[a.id]=a,de(a),a.id},ge=p.__private__.pdfEscape=p.pdfEscape=function(t,e){return function(t,e){var n,r,i,a,o,s,l,u,c;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&Ft[xt].metadata&&Ft[xt].metadata[i]&&Ft[xt].metadata[i].encoding&&(a=Ft[xt].metadata[i].encoding,!o&&Ft[xt].encoding&&(o=Ft[xt].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(l=!1,s=[],n=0,r=t.length;n<r;n++)(u=o[t.charCodeAt(n)])?s.push(String.fromCharCode(u)):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,r=t.length;n<r;n++){if((c=(u=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(c),s.push(u-(c<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},me=p.__private__.beginPage=function(t){K[++Et]=[],Tt[Et]={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])}},ye(Et),nt(K[q])},ve=function(t,e){var r,i,o;switch(n=e||n,"string"==typeof t&&(r=b(t.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(t)&&(i=t[0]*St,o=t[1]*St),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(Y.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),a=[i,o],n.substr(0,1)){case"l":o>i&&(a=[o,i]);break;case"p":i>o&&(a=[o,i])}me(a),$e(Xe),rt(on),0!==fn&&rt(fn+" J"),0!==dn&&rt(dn+" j"),Rt.publish("addPage",{pageNumber:Et})},be=function(t){t>0&&t<=Et&&(K.splice(t,1),Tt.splice(t,1),Et--,q>Et&&(q=Et),this.setPage(q))},ye=function(t){t>0&&t<=Et&&(q=t)},we=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return K.length-1},xe=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Ft[xt].fontName,e=void 0!==e?e:Ft[xt].fontStyle,r=t.toLowerCase(),void 0!==Ct[r]&&void 0!==Ct[r][e]?i=Ct[r][e]:void 0!==Ct[t]&&void 0!==Ct[t][e]?i=Ct[t][e]:!1===n.disableWarning&&Y.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Ct.times[e])&&(i=Ct.times.normal),i},Le=p.__private__.putInfo=function(){var t=Xt(),e=function(t){return t};for(var n in null!==h&&(e=Ie.encryptor(t,0)),rt("<<"),rt("/Producer ("+ge(e("jsPDF "+Nt.version))+")"),mt)mt.hasOwnProperty(n)&&mt[n]&&rt("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+ge(e(mt[n]))+")");rt("/CreationDate ("+ge(e(j))+")"),rt(">>"),rt("endobj")},Ae=p.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Xt(),rt("<<"),rt("/Type /Catalog"),rt("/Pages "+e+" 0 R"),lt||(lt="fullwidth"),lt){case"fullwidth":rt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":rt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":rt("/OpenAction [3 0 R /Fit]");break;case"original":rt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+lt;"%"===n.substr(n.length-1)&&(lt=parseInt(lt)/100),"number"==typeof lt&&rt("/OpenAction [3 0 R /XYZ null null "+k(lt)+"]")}switch(dt||(dt="continuous"),dt){case"continuous":rt("/PageLayout /OneColumn");break;case"single":rt("/PageLayout /SinglePage");break;case"two":case"twoleft":rt("/PageLayout /TwoColumnLeft");break;case"tworight":rt("/PageLayout /TwoColumnRight")}ht&&rt("/PageMode /"+ht),Rt.publish("putCatalog"),rt(">>"),rt("endobj")},Ne=p.__private__.putTrailer=function(){rt("trailer"),rt("<<"),rt("/Size "+(W+1)),rt("/Root "+W+" 0 R"),rt("/Info "+(W-1)+" 0 R"),null!==h&&rt("/Encrypt "+Ie.oid+" 0 R"),rt("/ID [ <"+O+"> <"+O+"> ]"),rt(">>")},Se=p.__private__.putHeader=function(){rt("%PDF-"+g),rt("%ºß¬à")},_e=p.__private__.putXRef=function(){var t="0000000000";rt("xref"),rt("0 "+(W+1)),rt("0000000000 65535 f ");for(var e=1;e<=W;e++)"function"==typeof H[e]?rt((t+H[e]()).slice(-10)+" 00000 n "):void 0!==H[e]?rt((t+H[e]).slice(-10)+" 00000 n "):rt("0000000000 00000 n ")},Pe=p.__private__.buildDocument=function(){W=0,J=0,G=[],H=[],X=[],Qt=Kt(),te=Kt(),nt(G),Rt.publish("buildDocument"),Se(),oe(),function(){Rt.publish("putAdditionalObjects");for(var t=0;t<X.length;t++){var e=X[t];$t(e.objId,!0),rt(e.content),rt("endobj")}Rt.publish("postPutAdditionalObjects")}(),function(){var t=[];(function(){for(var t in Ft)Ft.hasOwnProperty(t)&&(!1===f||!0===f&&d.hasOwnProperty(t))&&se(Ft[t])})(),function(){var t;for(t in Dt)Dt.hasOwnProperty(t)&&he(Dt[t])}(),function(){for(var t in zt)zt.hasOwnProperty(t)&&le(zt[t])}(),function(t){var e;for(e in jt)jt.hasOwnProperty(e)&&(jt[e]instanceof Lt?ue(jt[e]):jt[e]instanceof At&&ce(jt[e],t))}(t),Rt.publish("putResources"),t.forEach(fe),fe({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Rt.publish("postPutResources")}(),null!==h&&(Ie.oid=Xt(),rt("<<"),rt("/Filter /Standard"),rt("/V "+Ie.v),rt("/R "+Ie.r),rt("/U <"+Ie.toHexString(Ie.U)+">"),rt("/O <"+Ie.toHexString(Ie.O)+">"),rt("/P "+Ie.P),rt(">>"),rt("endobj")),Le(),Ae();var t=J;return _e(),Ne(),rt("startxref"),rt(""+t),rt("%%EOF"),nt(K[q]),G.join("\n")},ke=p.__private__.getBlob=function(t){return new Blob([at(t)],{type:"application/pdf"})},Fe=p.output=p.__private__.output=(Jt=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Pe();case"save":p.save(e.filename);break;case"arraybuffer":return at(Pe());case"blob":return ke(Pe());case"bloburi":case"bloburl":if(void 0!==V.URL&&"function"==typeof V.URL.createObjectURL)return V.URL&&V.URL.createObjectURL(ke(Pe()))||void 0;Y.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=Pe();try{n=Z(r)}catch(t){n=Z(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(V)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,a="");var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+i+'"'+a+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=V.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(V)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',u=V.open();if(null!==u){u.document.write(l);var c=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=e.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(V))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var h='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',f=V.open();if(null!==f&&(f.document.write(h),f.document.title=e.filename),f||"undefined"==typeof safari)return f;break;case"datauri":case"dataurl":return V.document.location.href=this.output("datauristring",e);default:return null}},Jt.foo=function(){try{return Jt.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(!V.console)throw new Error(e);V.console.error(e,n),V.alert&&alert(e)}},Jt.foo.bar=Jt,Jt.foo),Ce=function(t){return!0===Array.isArray(qt)&&qt.indexOf(t)>-1};switch(i){case"pt":St=1;break;case"mm":St=72/25.4;break;case"cm":St=72/2.54;break;case"in":St=72;break;case"px":St=1==Ce("px_scaling")?.75:96/72;break;case"pc":case"em":St=12;break;case"ex":St=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);St=i}var Ie=null;T(),B();var je=p.__private__.getPageInfo=p.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Tt[t].objId,pageNumber:t,pageContext:Tt[t]}},Oe=p.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Tt)if(Tt[e].objId===t)break;return je(e)},De=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Tt[q].objId,pageNumber:q,pageContext:Tt[q]}};p.addPage=function(){return ve.apply(this,arguments),this},p.setPage=function(){return ye.apply(this,arguments),nt.call(this,K[q]),this},p.insertPage=function(t){return this.addPage(),this.movePage(q,t),this},p.movePage=function(t,e){var n,r;if(t>e){n=K[t],r=Tt[t];for(var i=t;i>e;i--)K[i]=K[i-1],Tt[i]=Tt[i-1];K[e]=n,Tt[e]=r,this.setPage(e)}else if(t<e){n=K[t],r=Tt[t];for(var a=t;a<e;a++)K[a]=K[a+1],Tt[a]=Tt[a+1];K[e]=n,Tt[e]=r,this.setPage(e)}return this},p.deletePage=function(){return be.apply(this,arguments),this},p.__private__.text=p.text=function(t,e,n,i,a){var o,s,l,u,c,h,f,p,g,m=(i=i||{}).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 Ht==0?(l=arguments[4],u=arguments[5],"object"===(0,r.A)(f=arguments[3])&&null!==f||("string"==typeof l&&(u=l,l=null),"string"==typeof f&&(u=f,f=null),"number"==typeof f&&(l=f,f=null),i={flags:f,angle:l,align:u})):(_("The transform parameter of text() with a Matrix value"),g=a),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return m;var b,y="",L="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Je,A=m.internal.scaleFactor;function N(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),ge(t,f)}function P(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function k(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,a=t.concat(),o=[],s=a.length;s--;)"string"==typeof(r=a.shift())?o.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),o.push([i[0],i[1],i[2]]));n=o}return n}var F=!1,I=!0;if("string"==typeof t)F=!0;else if(Array.isArray(t)){var j=t.concat();s=[];for(var O,D=j.length;D--;)("string"!=typeof(O=j.shift())||Array.isArray(O)&&"string"!=typeof O[0])&&(I=!1);F=I}if(!1===F)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 B=st/m.internal.scaleFactor,M=B*(L-1);switch(i.baseline){case"bottom":n-=M;break;case"top":n+=B-M;break;case"hanging":n+=B-2*M;break;case"middle":n+=B/2-M}if((h=i.maxWidth||0)>0&&("string"==typeof t?t=m.splitTextToSize(t,h):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(m.splitTextToSize(e,h))}),[]))),o={text:t,x:e,y:n,options:i,mutex:{pdfEscape:ge,activeFontKey:xt,fonts:Ft,activeFontSize:st}},Rt.publish("preProcessText",o),t=o.text,l=(i=o.options).angle,g instanceof Ht==0&&l&&"number"==typeof l){l*=Math.PI/180,0===i.rotationDirection&&(l=-l),x===w&&(l=-l);var E=Math.cos(l),T=Math.sin(l);g=new Ht(E,T,-T,E,0,0)}else l&&l instanceof Ht&&(g=l);x!==w||g||(g=Gt),void 0!==(c=i.charSpace||cn)&&(y+=S(C(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=i.horizontalScale)&&(y+=S(100*p)+" Tz\n"),i.lang;var R=-1,q=void 0!==i.renderingMode?i.renderingMode:i.stroke,z=m.internal.getCurrentPageInfo().pageContext;switch(q){case 0:case!1:case"fill":R=0;break;case 1:case!0:case"stroke":R=1;break;case 2:case"fillThenStroke":R=2;break;case 3:case"invisible":R=3;break;case 4:case"fillAndAddForClipping":R=4;break;case 5:case"strokeAndAddPathForClipping":R=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":R=6;break;case 7:case"addToPathForClipping":R=7}var U=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==R?y+=R+" Tr\n":-1!==U&&(y+="0 Tr\n"),-1!==R&&(z.usedRenderingMode=R),u=i.align||"left";var W,H=st*L,V=m.internal.pageSize.getWidth(),G=Ft[xt];c=i.charSpace||cn,h=i.maxWidth||0,f=Object.assign({autoencode:!0,noBOM:!0},i.flags);var Y=[];if("[object Array]"===Object.prototype.toString.call(t)){var J;s=P(t),"left"!==u&&(W=s.map((function(t){return m.getStringUnitWidth(t,{font:G,charSpace:c,fontSize:st,doKerning:!1})*st/A})));var X,K=0;if("right"===u){e-=W[0],t=[],D=s.length;for(var $=0;$<D;$++)0===$?(X=en(e),J=nn(n)):(X=C(K-W[$]),J=-H),t.push([s[$],X,J]),K=W[$]}else if("center"===u){e-=W[0]/2,t=[],D=s.length;for(var Z=0;Z<D;Z++)0===Z?(X=en(e),J=nn(n)):(X=C((K-W[Z])/2),J=-H),t.push([s[Z],X,J]),K=W[Z]}else if("left"===u){t=[],D=s.length;for(var Q=0;Q<D;Q++)t.push(s[Q])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],D=s.length,h=0!==h?h:V;for(var tt=0;tt<D;tt++)J=0===tt?nn(n):-H,X=0===tt?en(e):0,tt<D-1?Y.push(S(C((h-W[tt])/(s[tt].split(" ").length-1)))):Y.push(0),t.push([s[tt],X,J])}}!0===("boolean"==typeof i.R2L?i.R2L:ct)&&(t=k(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:i,mutex:{pdfEscape:ge,activeFontKey:xt,fonts:Ft,activeFontSize:st}},Rt.publish("postProcessText",o),t=o.text,b=o.mutex.isHex||!1;var et=Ft[xt].encoding;"WinAnsiEncoding"!==et&&"StandardEncoding"!==et||(t=k(t,(function(t,e,n){return[N(t),e,n]}))),s=P(t),t=[];for(var nt,it,at,ot=Array.isArray(s[0])?1:0,lt="",ut=function(t,e,n){var r="";return n instanceof Ht?(n="number"==typeof i.angle?Vt(n,new Ht(1,0,0,1,t,e)):Vt(new Ht(1,0,0,1,t,e),n),x===w&&(n=Vt(new Ht(1,0,0,-1,0,0),n)),r=n.join(" ")+" Tm\n"):r=S(t)+" "+S(e)+" Td\n",r},ht=0;ht<s.length;ht++){switch(lt="",ot){case 1:at=(b?"<":"(")+s[ht][0]+(b?">":")"),nt=parseFloat(s[ht][1]),it=parseFloat(s[ht][2]);break;case 0:at=(b?"<":"(")+s[ht]+(b?">":")"),nt=en(e),it=nn(n)}void 0!==Y&&void 0!==Y[ht]&&(lt=Y[ht]+" Tw\n"),0===ht?t.push(lt+ut(nt,it,g)+at):0===ot?t.push(lt+at):1===ot&&t.push(lt+ut(nt,it,g)+at)}t=0===ot?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var ft="BT\n/";return ft+=xt+" "+st+" Tf\n",ft+=S(st*L)+" TL\n",ft+=ln+"\n",ft+=y,ft+=t,rt(ft+="ET"),d[xt]=!0,m};var Be=p.__private__.clip=p.clip=function(t){return rt("evenodd"===t?"W*":"W"),this};p.clipEvenOdd=function(){return Be("evenodd")},p.__private__.discardPath=p.discardPath=function(){return rt("n"),this};var Me=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 Me(t)&&(c=t),this};var Ee=p.__private__.getStyle=p.getStyle=function(t){var e=c;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 rt("h"),this};p.stroke=function(){return rt("S"),this},p.fill=function(t){return Re("f",t),this},p.fillEvenOdd=function(t){return Re("f*",t),this},p.fillStroke=function(t){return Re("B",t),this},p.fillStrokeEvenOdd=function(t){return Re("B*",t),this};var Re=function(t,e){"object"===(0,r.A)(e)?Ue(e,t):rt(t)},qe=function(t){null===t||x===w&&void 0===t||(t=Ee(t),rt(t))};function ze(t,e,n,r,i){var a=new At(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);a.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Yt(o,a),a}var Ue=function(t,e){var n=Ot[t.key],r=jt[n];if(r instanceof Lt)rt("q"),rt(We(e)),r.gState&&p.setGState(r.gState),rt(t.matrix.toString()+" cm"),rt("/"+n+" sh"),rt("Q");else if(r instanceof At){var i=new Ht(1,0,0,-1,0,Ln());t.matrix&&(i=i.multiply(t.matrix||Gt),n=ze.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),rt("q"),rt("/Pattern cs"),rt("/"+n+" scn"),r.gState&&p.setGState(r.gState),rt(e),rt("Q")}},We=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"}},He=p.moveTo=function(t,e){return rt(S(C(t))+" "+S(I(e))+" m"),this},Ve=p.lineTo=function(t,e){return rt(S(C(t))+" "+S(I(e))+" l"),this},Ge=p.curveTo=function(t,e,n,r,i,a){return rt([S(C(t)),S(I(e)),S(C(n)),S(I(r)),S(C(i)),S(I(a)),"c"].join(" ")),this};p.__private__.line=p.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Me(i))throw new Error("Invalid arguments passed to jsPDF.line");return x===y?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},p.__private__.lines=p.lines=function(t,e,n,r,i,a){var o,s,l,u,c,h,f,d,p,g,m,v;if("number"==typeof t&&(v=n,n=e,e=t,t=v),r=r||[1,1],a=a||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Me(i)||"boolean"!=typeof a)throw new Error("Invalid arguments passed to jsPDF.lines");for(He(e,n),o=r[0],s=r[1],u=t.length,g=e,m=n,l=0;l<u;l++)2===(c=t[l]).length?(g=c[0]*o+g,m=c[1]*s+m,Ve(g,m)):(h=c[0]*o+g,f=c[1]*s+m,d=c[2]*o+g,p=c[3]*s+m,g=c[4]*o+g,m=c[5]*s+m,Ge(h,f,d,p,g,m));return a&&Te(),qe(i),this},p.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":He(r[0],r[1]);break;case"l":Ve(r[0],r[1]);break;case"c":Ge.apply(this,r);break;case"h":Te()}}return this},p.__private__.rect=p.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Me(i))throw new Error("Invalid arguments passed to jsPDF.rect");return x===y&&(r=-r),rt([S(C(t)),S(I(e)),S(C(n)),S(C(r)),"re"].join(" ")),qe(i),this},p.__private__.triangle=p.triangle=function(t,e,n,r,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Me(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,a-r],[t-i,e-a]],t,e,[1,1],o,!0),this},p.__private__.roundedRect=p.roundedRect=function(t,e,n,r,i,a,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a)||!Me(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),a=Math.min(a,.5*r),this.lines([[n-2*i,0],[i*s,0,i,a-a*s,i,a],[0,r-2*a],[0,a*s,-i*s,a,-i,a],[2*i-n,0],[-i*s,0,-i,-a*s,-i,-a],[0,2*a-r],[0,-a*s,i*s,-a,i,-a]],t+i,e,[1,1],o,!0),this},p.__private__.ellipse=p.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Me(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var a=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return He(t+n,e),Ge(t+n,e-o,t+a,e-r,t,e-r),Ge(t-a,e-r,t-n,e-o,t-n,e),Ge(t-n,e+o,t-a,e+r,t,e+r),Ge(t+a,e+r,t+n,e+o,t+n,e),qe(i),this},p.__private__.circle=p.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Me(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},p.setFont=function(t,e,n){return n&&(e=N(e,n)),xt=xe(t,e,{disableWarning:!1}),this};var Ye=p.__private__.getFont=p.getFont=function(){return Ft[xe.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var t,e,n={};for(t in Ct)if(Ct.hasOwnProperty(t))for(e in n[t]=[],Ct[t])Ct[t].hasOwnProperty(e)&&n[t].push(e);return n},p.addFont=function(t,e,n,r,i){var a=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==a.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==a.indexOf(arguments[3])&&(n=N(n,r)),pe.call(this,t,e,n,i=i||"Identity-H")};var Je,Xe=t.lineWidth||.200025,Ke=p.__private__.getLineWidth=p.getLineWidth=function(){return Xe},$e=p.__private__.setLineWidth=p.setLineWidth=function(t){return Xe=t,rt(S(C(t))+" w"),this};p.__private__.setLineDash=Nt.API.setLineDash=Nt.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 S(C(t))})).join(" "),e=S(C(e)),rt("["+t+"] "+e+" d"),this};var Ze=p.__private__.getLineHeight=p.getLineHeight=function(){return st*Je};p.__private__.getLineHeight=p.getLineHeight=function(){return st*Je};var Qe=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Je=t),this},tn=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Je};Qe(t.lineHeight);var en=p.__private__.getHorizontalCoordinate=function(t){return C(t)},nn=p.__private__.getVerticalCoordinate=function(t){return x===w?t:Tt[q].mediaBox.topRightY-Tt[q].mediaBox.bottomLeftY-C(t)},rn=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(t){return S(en(t))},an=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(t){return S(nn(t))},on=t.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return ee(on)},p.__private__.setStrokeColor=p.setDrawColor=function(t,e,n,r){return on=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),rt(on),this};var sn=t.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return ee(sn)},p.__private__.setFillColor=p.setFillColor=function(t,e,n,r){return sn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),rt(sn),this};var ln=t.textColor||"0 g",un=p.__private__.getTextColor=p.getTextColor=function(){return ee(ln)};p.__private__.setTextColor=p.setTextColor=function(t,e,n,r){return ln=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var cn=t.charSpace,hn=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(cn||0)};p.__private__.setCharSpace=p.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return cn=t,this};var fn=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(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 fn=e,rt(e+" J"),this};var dn=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 dn=e,rt(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 rt(S(C(t))+" M"),this},p.GState=wt,p.setGState=function(t){(t="string"==typeof t?Dt[Bt[t]]:pn(null,t)).equals(Mt)||(rt("/"+t.id+" gs"),Mt=t)};var pn=function(t,e){if(!t||!Bt[t]){var n=!1;for(var r in Dt)if(Dt.hasOwnProperty(r)&&Dt[r].equals(e)){n=!0;break}if(n)e=Dt[r];else{var i="GS"+(Object.keys(Dt).length+1).toString(10);Dt[i]=e,e.id=i}return t&&(Bt[t]=e.id),Rt.publish("addGState",e),e}};p.addGState=function(t,e){return pn(t,e),this},p.saveGraphicsState=function(){return rt("q"),It.push({key:xt,size:st,color:ln}),this},p.restoreGraphicsState=function(){rt("Q");var t=It.pop();return xt=t.key,st=t.size,ln=t.color,Mt=null,this},p.setCurrentTransformationMatrix=function(t){return rt(t.toString()+" cm"),this},p.comment=function(t){return rt("#"+t),this};var gn=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 r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},mn=function(t,e,n,r){gn.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var a=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return a},set:function(t){isNaN(t)||(a=parseFloat(t))}}),this},vn=function(){this.page=Et,this.currentPage=q,this.pages=K.slice(0),this.pagesContext=Tt.slice(0),this.x=_t,this.y=Pt,this.matrix=kt,this.width=wn(q),this.height=Ln(q),this.outputDestination=et,this.id="",this.objectNumber=-1};vn.prototype.restore=function(){Et=this.page,q=this.currentPage,Tt=this.pagesContext,K=this.pages,_t=this.x,Pt=this.y,kt=this.matrix,xn(q,this.width),An(q,this.height),et=this.outputDestination};var bn=function(t,e,n,r,i){Wt.push(new vn),Et=q=0,K=[],_t=t,Pt=e,kt=i,me([n,r])};for(var yn in p.beginFormObject=function(t,e,n,r,i){return bn(t,e,n,r,i),this},p.endFormObject=function(t){return function(t){if(Ut[t])Wt.pop().restore();else{var e=new vn,n="Xo"+(Object.keys(zt).length+1).toString(10);e.id=n,Ut[t]=n,zt[n]=e,Rt.publish("addFormObject",e),Wt.pop().restore()}}(t),this},p.doFormObject=function(t,e){var n=zt[Ut[t]];return rt("q"),rt(e.toString()+" cm"),rt("/"+n.id+" Do"),rt("Q"),this},p.getFormObject=function(t){var e=zt[Ut[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?(Q(ke(Pe()),t),"function"==typeof Q.unload&&V.setTimeout&&setTimeout(Q.unload,911),this):new Promise((function(e,n){try{var r=Q(ke(Pe()),t);"function"==typeof Q.unload&&V.setTimeout&&setTimeout(Q.unload,911),e(r)}catch(t){n(t.message)}}))},Nt.API)Nt.API.hasOwnProperty(yn)&&("events"===yn&&Nt.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(Rt,Nt.API.events):p[yn]=Nt.API[yn]);var wn=p.getPageWidth=function(t){return(Tt[t=t||q].mediaBox.topRightX-Tt[t].mediaBox.bottomLeftX)/St},xn=p.setPageWidth=function(t,e){Tt[t].mediaBox.topRightX=e*St+Tt[t].mediaBox.bottomLeftX},Ln=p.getPageHeight=function(t){return(Tt[t=t||q].mediaBox.topRightY-Tt[t].mediaBox.bottomLeftY)/St},An=p.setPageHeight=function(t,e){Tt[t].mediaBox.topRightY=e*St+Tt[t].mediaBox.bottomLeftY};return p.internal={pdfEscape:ge,getStyle:Ee,getFont:Ye,getFontSize:ut,getCharSpace:hn,getTextColor:un,getLineHeight:Ze,getLineHeightFactor:tn,getLineWidth:Ke,write:it,getHorizontalCoordinate:en,getVerticalCoordinate:nn,getCoordinateString:rn,getVerticalCoordinateString:an,collections:{},newObject:Xt,newAdditionalObject:Zt,newObjectDeferred:Kt,newObjectDeferredBegin:$t,getFilters:re,putStream:ie,events:Rt,scaleFactor:St,pageSize:{getWidth:function(){return wn(q)},setWidth:function(t){xn(q,t)},getHeight:function(){return Ln(q)},setHeight:function(t){An(q,t)}},encryptionOptions:h,encryption:Ie,getEncryptor:function(t){return null!==h?Ie.encryptor(t,0):function(t){return t}},output:Fe,getNumberOfPages:we,pages:K,out:rt,f2:k,f3:F,getPageInfo:je,getPageInfoByObjId:Oe,getCurrentPageInfo:De,getPDFVersion:m,Point:gn,Rectangle:mn,Matrix:Ht,hasHotfix:Ce},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return wn(q)},set:function(t){xn(q,t)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return Ln(q)},set:function(t){An(q,t)},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=ot.length;e<n;e++){var r=pe.call(this,t[e][0],t[e][1],t[e][2],ot[e][3],!0);!1===f&&(d[r]=!0);var i=t[e][0].split("-");de({id:r,fontName:i[0],fontStyle:i[1]||""})}Rt.publish("addFonts",{fonts:Ft,dictionary:Ct})}.call(p,ot),xt="F1",ve(a,n),Rt.publish("initialized"),p}vt.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},vt.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},vt.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("")},vt.prototype.processOwnerPassword=function(t,e){return gt(ft(e).substr(0,5),t)},vt.prototype.encryptor=function(t,e){var n=ft(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return gt(n,t)}},wt.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||(0,r.A)(t)!==(0,r.A)(this))return!1;var i=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;i++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&i--;return 0===i},Nt.API={events:[]},Nt.version="2.5.1";var St=Nt.API,_t=1,Pt=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kt=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ft=function(t){return t.toFixed(2)},Ct=function(t){return t.toFixed(5)};St.__acroform__={};var It=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},jt=function(t){return t*_t},Ot=function(t){var e=new Xt,n=ue.internal.getHeight(t)||0,r=ue.internal.getWidth(t)||0;return e.BBox=[0,0,Number(Ft(r)),Number(Ft(n))],e},Dt=St.__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},Bt=St.__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)},Mt=St.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},Et=St.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Mt(t,e-1)},Tt=St.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Dt(t,e-1)},Rt=St.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Bt(t,e-1)},qt=St.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],a=t[1],o=t[2],s=t[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=r(a+s)||0,l.upperRight_X=n(i+o)||0,l.upperRight_Y=r(a)||0,[Number(Ft(l.lowerLeft_X)),Number(Ft(l.lowerLeft_Y)),Number(Ft(l.upperRight_X)),Number(Ft(l.upperRight_Y))]},zt=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=Ut(t,n),i=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("/"+i+" "+Ft(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=Ot(t);return a.scope=t.scope,a.stream=e.join("\n"),a}},Ut=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map((function(t){return t.split("\n")})):i.map((function(t){return[t]}));var a=n,o=ue.internal.getHeight(t)||0;o=o<0?-o:o;var s=ue.internal.getWidth(t)||0;s=s<0?-s:s;var l=function(e,n,r){if(e+1<i.length){var a=n+" "+i[e+1][0];return Wt(a,t,r).width<=s-4}return!1};a++;t:for(;a>0;){e="",a--;var u,c,h=Wt("3",t,a).height,f=t.multiline?o-a:(o-h)/2,d=f+=2,p=0,g=0,m=0;if(a<=0){e="(...) Tj\n",e+="% Width of Text: "+Wt(e,t,a=12).width+", FieldWidth:"+s+"\n";break}for(var v="",b=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var w=!1;if(1!==i[y].length&&m!==i[y].length-1){if((h+2)*(b+2)+2>o)continue t;v+=i[y][m],w=!0,g=y,y--}else{v=" "==(v+=i[y][m]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var x=parseInt(y),L=l(x,v,a),A=y>=i.length-1;if(L&&!A){v+=" ",m=0;continue}if(L||A){if(A)g=x;else if(t.multiline&&(h+2)*(b+2)+2>o)continue t}else{if(!t.multiline)continue t;if((h+2)*(b+2)+2>o)continue t;g=x}}for(var N="",S=p;S<=g;S++){var _=i[S];if(t.multiline){if(S===g){N+=_[m]+" ",m=(m+1)%_.length;continue}if(S===p){N+=_[_.length-1]+" ";continue}}N+=_[0]+" "}switch(N=" "==N.substr(N.length-1)?N.substr(0,N.length-1):N,c=Wt(N,t,a).width,t.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;default:u=2}e+=Ft(u)+" "+Ft(d)+" Td\n",e+="("+Pt(N)+") Tj\n",e+=-Ft(u)+" 0 Td\n",d=-(a+2),c=0,p=w?g:g+1,b++,v=""}break}return r.text=e,r.fontSize=a,r},Wt=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},Ht={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Vt=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)},Gt=St.__acroform__.arrayToPdfArray=function(t,e,n){var i=function(t){return t};if(Array.isArray(t)){for(var a="[",o=0;o<t.length;o++)switch(0!==o&&(a+=" "),(0,r.A)(t[o])){case"boolean":case"number":case"object":a+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==e&&n&&(i=n.internal.getEncryptor(e)),a+="("+Pt(i(t[o].toString()))+")"):a+=t[o].toString()}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Yt=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+Pt(r(t))+")"},Jt=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})};Jt.prototype.toString=function(){return this.objId+" 0 R"},Jt.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Jt.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 r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:Gt(i,this.objId,this.scope)}):i instanceof Jt?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var Xt=function(){Jt.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}})};It(Xt,Jt);var Kt=function(){Jt.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)),"("+Pt(e(t))+")"}},set:function(e){t=e}})};It(Kt,Jt);var $t=function t(){Jt.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(Et(e,3))},set:function(t){!0===Boolean(t)?this.F=Tt(e,3):this.F=Rt(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 r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof ae)return;a="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Pt(e(a))+")"},set:function(t){a=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(t){a=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 u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/_t:u},set:function(t){u=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof ae||this instanceof se))return Yt(h,this.objId,this.scope)},set:function(t){t=t.toString(),h=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ne==0?Yt(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof ne==0?"("===t.substr(0,1)?kt(t.substr(1,t.length-2)):kt(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ne==1?kt(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof ne==1?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ne==0?Yt(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof ne==0?"("===t.substr(0,1)?kt(t.substr(1,t.length-2)):kt(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ne==1?kt(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof ne==1?"/"+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,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=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(Et(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,1):this.Ff=Rt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,2):this.Ff=Rt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,3):this.Ff=Rt(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');m=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(m){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:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};It($t,Jt);var Zt=function(){$t.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 Gt(e,this.objId,this.scope)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),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(Et(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,18):this.Ff=Rt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=Tt(this.Ff,19):this.Ff=Rt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Tt(this.Ff,20),e.sort()):this.Ff=Rt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,22):this.Ff=Rt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,23):this.Ff=Rt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,27):this.Ff=Rt(this.Ff,27)}}),this.hasAppearanceStream=!1};It(Zt,$t);var Qt=function(){Zt.call(this),this.fontName="helvetica",this.combo=!1};It(Qt,Zt);var te=function(){Qt.call(this),this.combo=!0};It(te,Qt);var ee=function(){te.call(this),this.edit=!0};It(ee,te);var ne=function(){$t.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,15):this.Ff=Rt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,16):this.Ff=Rt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,17):this.Ff=Rt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,26):this.Ff=Rt(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,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+Pt(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===(0,r.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){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};It(ne,$t);var re=function(){ne.call(this),this.pushButton=!0};It(re,ne);var ie=function(){ne.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:[]}})};It(ie,ne);var ae=function(){var t,e;$t.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,i={};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("<<"),i)n.push("/"+e+" ("+Pt(t(i[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===(0,r.A)(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ue.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};It(ae,$t),ie.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()}},ie.prototype.createOption=function(t){var e=new ae;return e.Parent=this,e.optionName=t,this.Kids.push(e),ce.call(this.scope,e),e};var oe=function(){ne.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ue.CheckBox.createAppearanceStream()};It(oe,ne);var se=function(){$t.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,13):this.Ff=Rt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,21):this.Ff=Rt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,23):this.Ff=Rt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,24):this.Ff=Rt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,25):this.Ff=Rt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,26):this.Ff=Rt(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}})};It(se,$t);var le=function(){se.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Et(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=Tt(this.Ff,14):this.Ff=Rt(this.Ff,14)}}),this.password=!0};It(le,se);var ue={CheckBox:{createAppearanceStream:function(){return{N:{On:ue.CheckBox.YesNormal},D:{On:ue.CheckBox.YesPushDown,Off:ue.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Ot(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=Ut(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+Ft(ue.internal.getWidth(t))+" "+Ft(ue.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+Ft(a.fontSize)+" Tf "+i),n.push("BT"),n.push(a.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=Ot(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],a=ue.internal.getHeight(t),o=ue.internal.getWidth(t),s=Ut(t,t.caption);return i.push("1 g"),i.push("0 0 "+Ft(o)+" "+Ft(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Ft(o-1)+" "+Ft(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+Ft(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=Ot(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ft(ue.internal.getWidth(t))+" "+Ft(ue.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:ue.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=ue.RadioButton.Circle.YesNormal,e.D[t]=ue.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Ot(t);e.scope=t.scope;var n=[],r=ue.internal.getWidth(t)<=ue.internal.getHeight(t)?ue.internal.getWidth(t)/4:ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=ue.internal.Bezier_C,a=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Ct(ue.internal.getWidth(t)/2)+" "+Ct(ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Ot(t);e.scope=t.scope;var n=[],r=ue.internal.getWidth(t)<=ue.internal.getHeight(t)?ue.internal.getWidth(t)/4:ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*ue.internal.Bezier_C).toFixed(5)),o=Number((r*ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ct(ue.internal.getWidth(t)/2)+" "+Ct(ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Ct(ue.internal.getWidth(t)/2)+" "+Ct(ue.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=Ot(t);e.scope=t.scope;var n=[],r=ue.internal.getWidth(t)<=ue.internal.getHeight(t)?ue.internal.getWidth(t)/4:ue.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*ue.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ct(ue.internal.getWidth(t)/2)+" "+Ct(ue.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:ue.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=ue.RadioButton.Cross.YesNormal,e.D[t]=ue.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Ot(t);e.scope=t.scope;var n=[],r=ue.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+Ft(ue.internal.getWidth(t)-2)+" "+Ft(ue.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(Ft(r.x1.x)+" "+Ft(r.x1.y)+" m"),n.push(Ft(r.x2.x)+" "+Ft(r.x2.y)+" l"),n.push(Ft(r.x4.x)+" "+Ft(r.x4.y)+" m"),n.push(Ft(r.x3.x)+" "+Ft(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=Ot(t);e.scope=t.scope;var n=ue.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+Ft(ue.internal.getWidth(t))+" "+Ft(ue.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Ft(ue.internal.getWidth(t)-2)+" "+Ft(ue.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Ft(n.x1.x)+" "+Ft(n.x1.y)+" m"),r.push(Ft(n.x2.x)+" "+Ft(n.x2.y)+" l"),r.push(Ft(n.x4.x)+" "+Ft(n.x4.y)+" m"),r.push(Ft(n.x3.x)+" "+Ft(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=Ot(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Ft(ue.internal.getWidth(t))+" "+Ft(ue.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}};ue.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=ue.internal.getWidth(t),n=ue.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},ue.internal.getWidth=function(t){var e=0;return"object"===(0,r.A)(t)&&(e=jt(t.Rect[2])),e},ue.internal.getHeight=function(t){var e=0;return"object"===(0,r.A)(t)&&(e=jt(t.Rect[3])),e};var ce=St.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($t.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Ht)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");_t=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new Kt,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 r=e[n];r.objId=void 0,r.hasAnnotation&&Vt(r,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 i 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(i)){var a=t[i],o=[],s=a.Rect;if(a.Rect&&(a.Rect=qt(a.Rect,e)),e.internal.newObjectDeferredBegin(a.objId,!0),a.DA=ue.createDefaultAppearanceStream(a),"object"===(0,r.A)(a)&&"function"==typeof a.getKeyValueListForStream&&(o=a.getKeyValueListForStream()),a.Rect=s,a.hasAppearanceStream&&!a.appearanceStreamContent){var l=zt(a);o.push({key:"AP",value:"<</N "+l+">>"}),e.internal.acroformPlugin.xForms.push(l)}if(a.appearanceStreamContent){var u="";for(var c in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(c)){var h=a.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var f=h[i];"function"==typeof f&&(f=f.call(e,a)),u+="/"+i+" "+f+" ",e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f)}}else"function"==typeof(f=h)&&(f=f.call(e,a)),u+="/"+i+" "+f,e.internal.acroformPlugin.xForms.indexOf(f)>=0||e.internal.acroformPlugin.xForms.push(f);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:a.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var i=n,a=t[n];e.internal.newObjectDeferredBegin(a.objId,!0),"object"===(0,r.A)(a)&&"function"==typeof a.putStream&&a.putStream(),delete t[i]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof $t))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};St.AcroFormChoiceField=Zt,St.AcroFormListBox=Qt,St.AcroFormComboBox=te,St.AcroFormEditBox=ee,St.AcroFormButton=ne,St.AcroFormPushButton=re,St.AcroFormRadioButton=ie,St.AcroFormCheckBox=oe,St.AcroFormTextField=se,St.AcroFormPasswordField=le,St.AcroFormAppearance=ue,St.AcroForm={ChoiceField:Zt,ListBox:Qt,ComboBox:te,EditBox:ee,Button:ne,PushButton:re,RadioButton:ie,CheckBox:oe,TextField:se,PasswordField:le,Appearance:ue},Nt.AcroForm={ChoiceField:Zt,ListBox:Qt,ComboBox:te,EditBox:ee,Button:ne,PushButton:re,RadioButton:ie,CheckBox:oe,TextField:se,PasswordField:le,Appearance:ue};var he,fe,de=Nt.AcroForm;function pe(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,r){var i,a,o,s,l,u=e;if("RGBA"===(r=r||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(A(t))for(l in n)for(o=n[l],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t[a]){s=!1;break}if(!0===s){u=l;break}}else for(l in n)for(o=n[l],i=0;i<o.length;i+=1){for(s=!0,a=0;a<o[i].length;a+=1)if(void 0!==o[i][a]&&o[i][a]!==t.charCodeAt(a)){s=!1;break}if(!0===s){u=l;break}}return u===e&&r!==e&&(u=r),u},a=function t(e){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.width}),a.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?a.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]"}):(a.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&a.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var o="",s=0,l=e.transparency.length;s<l;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";a.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&a.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:u,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var c="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,h={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:c,data:e.sMask};"filter"in e&&(h.filter=e.filter),t.call(this,h)}if(e.colorSpace===v.INDEXED){var f=this.internal.newObject();r({data:S(new Uint8Array(e.palette)),objectId:f}),n("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)a.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var r in e)n("/I"+(t=e[r]).index,t.objectId,"0","R")},l=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var t=this.internal.collections.addImage_images;return l.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"===(0,r.A)(t)&&1===t.nodeType},d=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return $(unescape(r).split("base64,").pop());var i=t.loadFile(r,!0);if(void 0!==i)return i}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 a;switch(n){case"PNG":a="image/png";break;case"WEBP":a="image/webp";break;default:a="image/jpeg"}return $(e.toDataURL(a,1).split("base64,").pop())}},p=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},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]},m=function(t,e,n,r,i,a){var o=g.call(this,n,r,i),s=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=u.call(this);if(n=o[0],r=o[1],c[i.index]=i,a){a*=Math.PI/180;var h=Math.cos(a),f=Math.sin(a),d=function(t){return t.toFixed(4)},p=[d(h),d(f),d(-1*f),d(h),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,s(t),l(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(t),l(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},v=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 b=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(A(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},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){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},L=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return L()&&t instanceof ArrayBuffer};var A=t.__addimage__.isArrayBufferView=function(t){return L()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},N=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},S=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=A(t)?t:new Uint8Array(t),r=0;r<n.length;r+=8192)e+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return e};t.addImage=function(){var t,n,i,a,o,s,u,c,h;if("number"==typeof arguments[1]?(n=e,i=arguments[1],a=arguments[2],o=arguments[3],s=arguments[4],u=arguments[5],c=arguments[6],h=arguments[7]):(n=arguments[1],i=arguments[2],a=arguments[3],o=arguments[4],s=arguments[5],u=arguments[6],c=arguments[7],h=arguments[8]),"object"===(0,r.A)(t=arguments[0])&&!f(t)&&"imageData"in t){var d=t;t=d.imageData,n=d.format||n||e,i=d.x||i||0,a=d.y||a||0,o=d.w||d.width||o,s=d.h||d.height||s,u=d.alias||u,c=d.compression||c,h=d.rotation||d.angle||h}var p=this.internal.getFilters();if(void 0===c&&-1!==p.indexOf("FlateEncode")&&(c="SLOW"),isNaN(i)||isNaN(a))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var g=_.call(this,t,n,u,c);return m.call(this,i,a,o,s,g,h),this};var _=function(n,r,a,o){var s,l,u;if("string"==typeof n&&i(n)===e){n=unescape(n);var g=P(n,!1);(""!==g||void 0!==(g=t.loadFile(n,!0)))&&(n=g)}if(f(n)&&(n=d(n,r)),r=i(n,r),!h(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if((null==(u=a)||0===u.length)&&(a=function(t){return"string"==typeof t||A(t)?y(t):A(t.data)?y(t.data):null}(n)),(s=p.call(this,a))||(L()&&(n instanceof Uint8Array||"RGBA"===r||(l=n,n=N(n))),s=this["process"+r.toUpperCase()](n,c.call(this),a,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:b.NONE}(o),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},P=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var r,i="";if("string"==typeof t){r=null!==(n=x(t))?n.data:t;try{i=$(r)}catch(t){if(e)throw w(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(n){var r,a,o="";if(f(n)&&(n=d(n)),"string"==typeof n&&i(n)===e&&(""===(o=P(n,!1))&&(o=t.loadFile(n)||""),n=o),a=i(n),!h(a))throw new Error("addImage does not support files of type '"+a+"', please ensure that a plugin for '"+a+"' support is added.");if(!L()||n instanceof Uint8Array||(n=N(n)),!(r=this["process"+a.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return r.fileType=a,r}}(Nt.API),he=Nt.API,fe=function(t){if(void 0!==t&&""!=t)return!0},Nt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),he.events.push(["putPage",function(t){for(var e,n,r,i=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,l=!1,u=0;u<s.length&&!l;u++)switch((e=s[u]).type){case"link":(fe(e.options.url)||fe(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var c=0;c<s.length;c++){e=s[c];var h=this.internal.pdfEscape,f=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(d.objId),m=e.title||"Note";r="<</Type /Annot /Subtype /Text "+(n="/Rect ["+i(e.bounds.x)+" "+a(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y)+"] ")+"/Contents ("+h(g(e.contents))+")",r+=" /Popup "+p.objId+" 0 R",r+=" /P "+o.objId+" 0 R",r+=" /T ("+h(g(m))+") >>",d.content=r;var v=d.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+i(e.bounds.x+30)+" "+a(e.bounds.y+e.bounds.h)+" "+i(e.bounds.x+e.bounds.w+30)+" "+a(e.bounds.y)+"] ")+" /Parent "+v,e.open&&(r+=" /Open true"),r+=" >>",p.content=r,this.internal.write(d.objId,"0 R",p.objId,"0 R");break;case"freetext":n="/Rect ["+i(e.bounds.x)+" "+a(e.bounds.y)+" "+i(e.bounds.x+e.bounds.w)+" "+a(e.bounds.y+e.bounds.h)+"] ";var b=e.color||"#000000";r="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(f(e.contents))+")",r+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+b+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",r="",e.options.url)r="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(f(e.options.url))+") >>";else if(e.options.pageNumber)switch(r="<</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":r+=" /Fit]";break;case"FitH":r+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,r+=" /FitV "+e.options.left+"]";break;default:var w=a(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),r+=" /XYZ "+e.options.left+" "+w+" "+e.options.zoom+"]"}""!=r&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),he.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)}},he.link=function(t,e,n,r,i){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+n),h:s(e+r)},options:i,type:"link"})},he.textWithLink=function(t,e,n,r){var i,a,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){a=r.maxWidth;var l=this.splitTextToSize(t,a).length;i=Math.ceil(s*l)}else a=o,i=s;return this.text(t,e,n,r),n+=.2*s,"center"===r.align&&(e-=o/2),"right"===r.align&&(e-=o),this.link(e,n-s,a,i,r),o},he.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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var a=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)&&a(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&a(t)&&e[t.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&a(t)&&4==e[t.charCodeAt(0)].length},h=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",a=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(a++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,a=0),e===t.length-1&&(r=n,i+=t.charAt(e-(a-1)),e-=a-1,a=0)):(r=n,i+=t.charAt(e-a),e-=a,a=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===a(t)?-1:!u(t)||!o(e)&&!o(n)||!o(n)&&s(e)||s(t)&&!o(e)||s(t)&&l(e)||s(t)&&s(e)?0:c(t)&&o(e)&&!s(e)&&o(n)&&u(n)?3:s(t)||!o(n)?1:2:-1},d=function(t){var n=0,r=0,i=0,a="",s="",l="",u=(t=t||"").split("\\s+"),c=[];for(n=0;n<u.length;n+=1){for(c.push(""),r=0;r<u[n].length;r+=1)a=u[n][r],s=u[n][r-1],l=u[n][r+1],o(a)?(i=f(a,s,l),c[n]+=-1!==i?String.fromCharCode(e[a.charCodeAt(0)][i]):a):c[n]+=a;c[n]=h(c[n])}return c.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 r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([d(e[r][0]),e[r][1],e[r][2]]):n.push([d(e[r])]);t=n}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(Nt.API),Nt.API.autoPrint=function(t){var e;return"javascript"===((t=t||{}).variant=t.variant||"non-conform",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 r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=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}])}(Nt.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,i=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(),a.call(this))},a=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 r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return a},set:function(t){a=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 i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),r=e.font||this.getFont(),a=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,l=0,u=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 c=e.maxWidth;c>0?"string"==typeof t?t=this.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,c))}),[])):t=Array.isArray(t)?t:[t];for(var h=0;h<t.length;h++)o<(l=this.getStringUnitWidth(t[h],{font:r})*n)&&(o=l);return 0!==o&&(s=t.length),{w:o/=a,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/a,0)}},t.cellAddPage=function(){i.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]),i.call(this);var r=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==r.lineNumber&&(r.lineNumber===t.lineNumber?(t.x=(r.x||0)+(r.width||0),t.y=r.y||0):r.y+r.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=r.y+r.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-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,c,h){if(i.call(this),!u)throw new Error("No data for PDF table.");var f,d,p,g,m=[],v=[],b=[],y={},w={},x=[],L=[],A=(h=h||{}).autoSize||!1,N=!1!==h.printHeaders,S=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,_=h.margins||Object.assign({width:this.getPageWidth()},e),P="number"==typeof h.padding?h.padding:3,k=h.headerBackgroundColor||"#c8c8c8",F=h.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=N,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=F,this.setFontSize(S),null==c)v=m=Object.keys(u[0]),b=m.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===(0,r.A)(c[0]))for(m=c.map((function(t){return t.name})),v=c.map((function(t){return t.prompt||t.name||""})),b=c.map((function(t){return t.align||"left"})),f=0;f<c.length;f+=1)w[c[f].name]=c[f].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(v=m=c,b=m.map((function(){return"left"})));if(A||Array.isArray(c)&&"string"==typeof c[0])for(f=0;f<m.length;f+=1){for(y[g=m[f]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(v[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)x.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,x)+P+P,x=[]}if(N){var C={};for(f=0;f<m.length;f+=1)C[m[f]]={},C[m[f]].text=v[f],C[m[f]].align=b[f];var I=l.call(this,C,w);L=m.map((function(e){return new o(t,n,w[e],I,C[e].text,void 0,C[e].align)})),this.setTableHeaderRow(L),this.printHeaderRow(1,!1)}var j=c.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(f=0;f<u.length;f+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:f,data:u[f]},this);var O=l.call(this,u[f],w);for(p=0;p<m.length;p+=1){var D=u[f][m[p]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:f,col:p,data:D},this),s.call(this,new o(t,n,w[m[p]],O,D,f+2,j[m[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,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/i+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var r;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){r=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(r.y=this.internal.__cell__.margins.top||0,l.push(r)),r.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,r),this.setTextColor(c)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(Nt.API);var ge={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},me=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ve=pe(me),be=[100,200,300,400,500,600,700,800,900],ye=pe(be);function we(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return ge[t=t||"normal"]?t:"normal"}(t.style),r=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),i=function(t){return"number"==typeof ve[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function xe(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var Le={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ae={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ne(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Se(t){return t.trimLeft()}function _e(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 Pe(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 ke,Fe,Ce,Ie=["times"];!function(t){var e,n,i,a,o,s,l,u,c,h=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 u,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 f(this),e=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,u=this.internal.Matrix,c=new h}]);var f=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 r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a},set:function(t){isNaN(t)||(a=t)}}),Object.defineProperty(this,"margin",{get:function(){return c.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]),c.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 c},set:function(t){t instanceof h&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=d(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=d(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 f=null;function p(t,e){if(null===f){var n=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var r=null;switch(t){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:t},e.push(r))}))})),e}(t.getFontList());f=function(t){for(var e={},n=0;n<t.length;++n){var r=we(t[n]),i=r.family,a=r.stretch,o=r.style,s=r.weight;e[i]=e[i]||{},e[i][a]=e[i][a]||{},e[i][a][o]=e[i][a][o]||{},e[i][a][o][s]=r}return e}(n.concat(e))}return f}var g=null;Object.defineProperty(this,"fontFaces",{get:function(){return g},set:function(t){f=null,g=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-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],a=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,n,r=[],i=t.trim();if(""===i)return Ie;if(i in Ae)return[Ae[i]];for(;""!==i;){switch(n=null,e=(i=Se(i)).charAt(0)){case'"':case"'":n=_e(i.substring(1),e);break;default:n=Pe(i)}if(null===n)return Ie;if(r.push(n[0]),""!==(i=Se(n[1]))&&","!==i.charAt(0))return Ie;i=i.replace(/^,/,"")}return r}(a);if(this.fontFaces){var l=function(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Le,n.genericFontFamilies||{}),a=null,o=null,s=0;s<e.length;++s)if(i[(a=we(e[s])).family]&&(a.family=i[a.family]),t.hasOwnProperty(a.family)){o=t[a.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+Ne(a)+"' and default family '"+r+"'.");if(o=function(t,e){if(e[t])return e[t];var n=ve[t],r=n<=ve.normal?-1:1,i=xe(e,me,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(a.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=ge[t],r=0;r<n.length;++r)if(e[n[r]])return e[n[r]];throw new Error("Could not find a matching font-style for "+t)}(a.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=ye[t],r=xe(e,be,n,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Ne(a)+"'.");return o}(p(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(l.ref.name,l.ref.style)}else{var u="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(u="bold"),"italic"===n&&(u+="italic"),0===u.length&&(u="normal");for(var c="",h={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"},f=0;f<s.length;f++){if(void 0!==this.pdf.internal.getFont(s[f],u,{noFallback:!0,disableWarning:!0})){c=s[f];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[f],"bold",{noFallback:!0,disableWarning:!0}))c=s[f],u="bold";else if(void 0!==this.pdf.internal.getFont(s[f],"normal",{noFallback:!0,disableWarning:!0})){c=s[f],u="normal";break}}if(""===c)for(var d=0;d<s.length;d++)if(h[s[d]]){c=h[s[d]];break}c=""===c?"Times":c,this.pdf.setFont(c,u)}}}}),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,T.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,T.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};f.prototype.setLineDash=function(t){this.lineDash=t},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){x.call(this,"fill",!1)},f.prototype.stroke=function(){x.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw Y.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)},f.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,r.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)},f.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw Y.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)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),x.call(this,null,!0)},f.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw Y.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(n,r)),a=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:a.x,y1:a.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},f.prototype.bezierCurveTo=function(t,e,n,r,i,a){if(isNaN(i)||isNaN(a)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(i,a)),l=this.ctx.transform.applyToPoint(new s(t,e)),u=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:u.x,y2:u.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},f.prototype.arc=function(t,e,n,r,i,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw Y.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(a=Boolean(a),!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)),u=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-u.x,2)+Math.pow(l.y-u.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:a})},f.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},f.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.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+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},f.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},f.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},f.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw Y.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,r))},f.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 r=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},f.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)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(t){var e,n,r,i;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,r=0,i=0;else{var a=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==a)e=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=1;else if(null!==(a=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]),i=parseFloat(a[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new tt(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},g=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw Y.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!p.call(this)){var i=B(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;F.call(this,{text:t,x:e,y:n,scale:a,angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw Y.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){r=isNaN(r)?void 0:r;var i=B(this.ctx.transform.rotation),a=this.ctx.transform.scaleX;F.call(this,{text:t,x:e,y:n,scale:a,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.measureText=function(t){if("string"!=typeof t)throw Y.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,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},f.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw Y.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new u(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(t){if(isNaN(t))throw Y.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new u(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},f.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw Y.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new u(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(t,e,n,r,i,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(a))throw Y.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new u(t,e,n,r,i,a);this.ctx.transform=this.ctx.transform.multiply(o)},f.prototype.setTransform=function(t,e,n,r,i,a){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,a=isNaN(a)?0:a,this.ctx.transform=new u(t,e,n,r,i,a)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(t,e,n,r,i,a,o,s,c){var h=this.pdf.getImageProperties(t),f=1,d=1,p=1,g=1;void 0!==r&&void 0!==s&&(p=s/r,g=c/i,f=h.width/r*s/r,d=h.height/i*c/i),void 0===a&&(a=e,o=n,e=0,n=0),void 0!==r&&void 0===s&&(s=r,c=i),void 0===r&&void 0===s&&(s=h.width,c=h.height);for(var b,x=this.ctx.transform.decompose(),A=B(x.rotate.shx),N=new u,S=(N=(N=(N=N.multiply(x.translate)).multiply(x.skew)).multiply(x.scale)).applyToRectangle(new l(a-e*p,o-n*g,r*f,i*d)),_=v.call(this,S),P=[],k=0;k<_.length;k+=1)-1===P.indexOf(_[k])&&P.push(_[k]);if(w(P),this.autoPaging)for(var F=P[0],C=P[P.length-1],I=F;I<C+1;I++){this.pdf.setPage(I);var j=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],O=1===I?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],M=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],E=1===I?0:D+(I-2)*M;if(0!==this.ctx.clip_path.length){var T=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(b,this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset),L.call(this,"fill",!0),this.path=T}var R=JSON.parse(JSON.stringify(S));R=y([R],this.posX+this.margin[3],-E+O+this.ctx.prevPageLastElemOffset)[0];var q=(I>F||I<C)&&m.call(this);q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],j,M,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",R.x,R.y,R.w,R.h,null,null,A),q&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,A)};var v=function(t,e,n){var r=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+i)/n)+1);break;case"arc":r.push(Math.floor((t.y+i-t.radius)/n)+1),r.push(Math.floor((t.y+i+t.radius)/n)+1);break;case"qct":var a=M(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((a.y+i)/n)+1),r.push(Math.floor((a.y+a.h+i)/n)+1);break;case"bct":var o=E(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"rect":r.push(Math.floor((t.y+i)/n)+1),r.push(Math.floor((t.y+t.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)b.call(this);return r},b=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,a=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=a},y=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;default:t[r].x+=e,t[r].y+=n}return t},w=function(t){return t.sort((function(t,e){return t-e}))},x=function(t,e){for(var n,r,i=this.fillStyle,a=this.strokeStyle,o=this.lineCap,s=this.lineWidth,l=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),f=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var p=v.call(this,h[d]),g=0;g<p.length;g+=1)-1===f.indexOf(p[g])&&f.push(p[g]);for(var x=0;x<f.length;x++)for(;this.pdf.internal.getNumberOfPages()<f[x];)b.call(this);if(w(f),this.autoPaging)for(var A=f[0],N=f[f.length-1],S=A;S<N+1;S++){this.pdf.setPage(S),this.fillStyle=i,this.strokeStyle=a,this.lineCap=o,this.lineWidth=l,this.lineJoin=u;var _=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===S?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],F=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],C=1===S?0:k+(S-2)*F;if(0!==this.ctx.clip_path.length){var I=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(n,this.posX+this.margin[3],-C+P+this.ctx.prevPageLastElemOffset),L.call(this,t,!0),this.path=I}if(r=JSON.parse(JSON.stringify(c)),this.path=y(r,this.posX+this.margin[3],-C+P+this.ctx.prevPageLastElemOffset),!1===e||0===S){var j=(S>A||S<N)&&m.call(this);j&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,F,null).clip().discardPath()),L.call(this,t,e),j&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=l,L.call(this,t,e),this.lineWidth=s;this.path=c},L=function(t,e){if(("stroke"!==t||e||!g.call(this))&&("stroke"===t||e||!p.call(this))){for(var n,r,i=[],a=this.path,o=0;o<a.length;o++){var s=a[o];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var l=i.length;if(a[o-1]&&!isNaN(a[o-1].x)&&(n=[s.x-a[o-1].x,s.y-a[o-1].y],l>0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(s);break}break;case"bct":n=[s.x1-a[o-1].x,s.y1-a[o-1].y,s.x2-a[o-1].x,s.y2-a[o-1].y,s.x-a[o-1].x,s.y-a[o-1].y],i[i.length-1].deltas.push(n);break;case"qct":var u=a[o-1].x+2/3*(s.x1-a[o-1].x),c=a[o-1].y+2/3*(s.y1-a[o-1].y),h=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),d=s.x,m=s.y;n=[u-a[o-1].x,c-a[o-1].y,h-a[o-1].x,f-a[o-1].y,d-a[o-1].x,m-a[o-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var v=!1,b=0;b<i.length;b++)if(i[b].arc)for(var y=i[b].abs,w=0;w<y.length;w++){var x=y[w];"arc"===x.type?S.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,e,!v):C.call(this,x.x,x.y),v=!0}else if(!0===i[b].close)this.pdf.internal.out("h"),v=!1;else if(!0!==i[b].begin){var L=i[b].start.x,A=i[b].start.y;I.call(this,i[b].deltas,L,A),v=!0}r&&_.call(this,r),e&&P.call(this)}},A=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}},N=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.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},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,e,n,r,i,a,o,s,l){for(var u=O.call(this,n,r,i,a),c=0;c<u.length;c++){var h=u[c];0===c&&(l?k.call(this,h.x1+t,h.y1+e):C.call(this,h.x1+t,h.y1+e)),j.call(this,t,e,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?P.call(this):_.call(this,o)},_=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},P=function(){this.pdf.clip(),this.pdf.discardPath()},k=function(t,e){this.pdf.internal.out(n(t)+" "+i(e)+" m")},F=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;default:e="left"}var n=this.pdf.getTextDimensions(t.text),r=A.call(this,t.y),i=N.call(this,r)-n.h,a=this.ctx.transform.applyToPoint(new s(t.x,r)),o=this.ctx.transform.decompose(),c=new u;c=(c=(c=c.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var h,f,d,p=this.ctx.transform.applyToRectangle(new l(t.x,r,n.w,n.h)),g=c.applyToRectangle(new l(t.x,i,n.w,n.h)),b=v.call(this,g),x=[],S=0;S<b.length;S+=1)-1===x.indexOf(b[S])&&x.push(b[S]);if(w(x),this.autoPaging)for(var _=x[0],P=x[x.length-1],k=_;k<P+1;k++){this.pdf.setPage(k);var F=1===k?this.posY+this.margin[0]:this.margin[0],C=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[2],j=I-this.margin[0],O=this.pdf.internal.pageSize.width-this.margin[1],D=O-this.margin[3],B=1===k?0:C+(k-2)*j;if(0!==this.ctx.clip_path.length){var M=this.path;h=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(h,this.posX+this.margin[3],-1*B+F),L.call(this,"fill",!0),this.path=M}var E=y([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-B+F+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var T="text"!==this.autoPaging;if(T||E.y+E.h<=I){if(T||E.y>=F&&E.x<=O){var R=T?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||O-E.x)[0],q=y([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-B+F+this.ctx.prevPageLastElemOffset)[0],z=T&&(k>_||k<P)&&m.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],D,j,null).clip().discardPath()),this.pdf.text(R,q.x,q.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else E.y<I&&(this.ctx.prevPageLastElemOffset+=I-E.y);t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)}else t.scale>=.01&&(f=this.pdf.internal.getFontSize(),this.pdf.setFontSize(f*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,a.x+this.posX,a.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(f),this.lineWidth=d)},C=function(t,e,r,a){r=r||0,a=a||0,this.pdf.internal.out(n(t+r)+" "+i(e+a)+" l")},I=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},j=function(t,n,r,i,s,l,u,c){this.pdf.internal.out([e(a(r+t)),e(o(i+n)),e(a(s+t)),e(o(l+n)),e(a(u+t)),e(o(c+n)),"c"].join(" "))},O=function(t,e,n,r){for(var i=2*Math.PI,a=Math.PI/2;e>n;)e-=i;var o=Math.abs(n-e);o<i&&r&&(o=i-o);for(var s=[],l=r?-1:1,u=e;o>1e-5;){var c=u+l*Math.min(o,a);s.push(D.call(this,t,u,c)),o-=Math.abs(c-u),u=c}return s},D=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),a=t*Math.sin(r),o=i,s=-a,l=o*o+s*s,u=l+o*i+s*a,c=4/3*(Math.sqrt(2*l*u)-u)/(o*a-s*i),h=o-c*s,f=s+c*o,d=h,p=-f,g=r+e,m=Math.cos(g),v=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:h*m-f*v,y2:h*v+f*m,x3:d*m-p*v,y3:d*v+p*m,x4:t*Math.cos(n),y4:t*Math.sin(n)}},B=function(t){return 180*t/Math.PI},M=function(t,e,n,r,i,a){var o=t+.5*(n-t),s=e+.5*(r-e),u=i+.5*(n-i),c=a+.5*(r-a),h=Math.min(t,i,o,u),f=Math.max(t,i,o,u),d=Math.min(e,a,s,c),p=Math.max(e,a,s,c);return new l(h,d,f-h,p-d)},E=function(t,e,n,r,i,a,o,s){var u,c,h,f,d,p,g,m,v,b,y,w,x,L,A=n-t,N=r-e,S=i-n,_=a-r,P=o-i,k=s-a;for(c=0;c<41;c++)v=(g=(h=t+(u=c/40)*A)+u*((d=n+u*S)-h))+u*(d+u*(i+u*P-d)-g),b=(m=(f=e+u*N)+u*((p=r+u*_)-f))+u*(p+u*(a+u*k-p)-m),0==c?(y=v,w=b,x=v,L=b):(y=Math.min(y,v),w=Math.min(w,b),x=Math.max(x,v),L=Math.max(L,b));return new l(Math.round(y),Math.round(w),Math.round(x-y),Math.round(L-w))},T=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)}}}(Nt.API),function(t){var e=function(t){var e,n,r,i,a,o,s,l,u,c;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(a=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(o=(a=((a=((a=((a=(a-(c=a%85))/85)-(u=a%85))/85)-(l=a%85))/85)-(s=a%85))/85)%85,n.push(o+33,s+33,l+33,u+33,c+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,r,i,a,o=String,s="length",l=255,u="charCodeAt",c="slice",h="replace";for(t[c](-2),t=t[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),r=[],i=0,a=(t+=e="uuuuu"[c](t[s]%5||5))[s];a>i;i+=5)n=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),r.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()}(r,e[s]),o.fromCharCode.apply(o,r)},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="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},i=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=W(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,a){var o=0,s=t||"",l=[];for("string"==typeof(a=a||[])&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=r(s),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(Nt.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,a=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(a(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return a(r.responseText)}(t,e,n)}catch(t){}return r}(t,e,n)},t.loadImageFile=t.loadFile}(Nt.API),function(t){function e(){return(V.html2canvas?Promise.resolve(V.html2canvas):n.e(939).then(n.t.bind(n,2939,23))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function i(){return(V.DOMPurify?Promise.resolve(V.DOMPurify):n.e(897).then(n.t.bind(n,1897,23))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var a=function(t){var e=(0,r.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 r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},s=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(t,e){return t.__proto__=e||s.prototype,t},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(a(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(i).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.")}}))},s.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.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var 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=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r}(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"}))},s.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)}))},s.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,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.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 a=0;a<n.length;++a){var o=n[a],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e.context2d.save(!0),t(this.prop.container,i)})).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)}))},s.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}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},s.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},s.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.'}}))},s.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)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(t){if("object"!==a(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in s.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)}))},s.prototype.get=function(t,e){return this.then((function(){var n=t in s.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},s.prototype.setMargin=function(t){return this.then((function(){switch(a(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)},s.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||Nt.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}))},s.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},s.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}))}))},s.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),i=n.call(r,t,e);return s.convert(i,this.__proto__)},s.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},s.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},s.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return s.convert(e,this)},s.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},s.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Nt.getPageSize=function(t,e,n){if("object"===(0,r.A)(t)){var i=t;t=i.orientation,e=i.unit||e,n=i.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var a,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":a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+e}var l,u=0,c=0;if(s.hasOwnProperty(o))u=s[o][1]/a,c=s[o][0]/a;else try{u=n[1],c=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",c>u&&(l=c,c=u,u=l);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>c&&(l=c,c=u,u=l)}return{width:c,height:u,unit:e,k:a,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(we):null;var n=new s(e);return e.worker?n:n.from(t).doCallback()}}(Nt.API),Nt.API.addJS=function(t){return Ce=t,this.internal.events.subscribe("postPutResources",(function(){ke=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ke+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Fe=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ce+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==ke&&void 0!==Fe&&this.internal.out("/Names <</JavaScript "+ke+" 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 r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var a=r[i],o=n.exec(a);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(i=0;i<l;i++){var c=t.internal.newObject();u.push(c);var h=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+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 r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},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,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var a=this.count=this.count_r({count:0},i);if(a>0&&this.line("/Count "+a),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.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}}])}(Nt.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,r,i,a,o){var s,l=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,a={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=r,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),a={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}r=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return a}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).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}u={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:l,index:n,alias:r}}return u}}(Nt.API);var je,Oe,De,Be,Me,Ee=function(){var t,e,n;function r(t){var e,n,r,i,a,o,s,l,u,c,h,f,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},a=this.readUInt16(),i=this.readUInt16()||100,o.delay=1e3*a/i,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((c=r-this.transparency.indexed.length)>0)for(d=0;0<=c?d<c:d>c;0<=c?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(h=this.read(e)).indexOf(0),l=String.fromCharCode.apply(String,h.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,h.slice(s+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(a,o,s,l){var u,c,h,f,d,p,g,m,v,b,y,w,x,L,A,N,S,_,P,k,F,C=Math.ceil((i.width-a)/s),I=Math.ceil((i.height-o)/l),j=i.width==C&&i.height==I;for(L=e*C,w=j?n:new Uint8Array(L*I),p=t.length,x=0,c=0;x<I&&r<p;){switch(t[r++]){case 0:for(f=S=0;S<L;f=S+=1)w[c++]=t[r++];break;case 1:for(f=_=0;_<L;f=_+=1)u=t[r++],d=f<e?0:w[c-e],w[c++]=(u+d)%256;break;case 2:for(f=P=0;P<L;f=P+=1)u=t[r++],h=(f-f%e)/e,A=x&&w[(x-1)*L+h*e+f%e],w[c++]=(A+u)%256;break;case 3:for(f=k=0;k<L;f=k+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[c-e],A=x&&w[(x-1)*L+h*e+f%e],w[c++]=(u+Math.floor((d+A)/2))%256;break;case 4:for(f=F=0;F<L;f=F+=1)u=t[r++],h=(f-f%e)/e,d=f<e?0:w[c-e],0===x?A=N=0:(A=w[(x-1)*L+h*e+f%e],N=h&&w[(x-1)*L+(h-1)*e+f%e]),g=d+A-N,m=Math.abs(g-d),b=Math.abs(g-A),y=Math.abs(g-N),v=m<=b&&m<=y?d:b<=y?A:N,w[c++]=(u+v)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!j){var O=((o+x*l)*i.width+a)*e,D=x*L;for(f=0;f<C;f+=1){for(var B=0;B<e;B+=1)n[O++]=w[D++];O+=(s-1)*e}}x++}}return t=H(t),1==i.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),n},r.prototype.decodePalette=function(){var t,e,n,r,i,a,o,s,l;for(n=this.palette,a=this.transparency.indexed||[],i=new Uint8Array((a.length||0)+n.length),r=0,t=0,e=o=0,s=n.length;o<s;e=o+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(l=a[t++])?l:255;return i},r.prototype.copyToImageData=function(t,e){var n,r,i,a,o,s,l,u,c,h,f;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),u=(i=t.data||t).length,o=c||e,a=s=0,1===r)for(;a<u;)l=c?4*e[a/4]:s,h=o[l++],i[a++]=h,i[a++]=h,i[a++]=h,i[a++]=n?o[l++]:255,s=l;else for(;a<u;)l=c?4*e[a/4]:s,i[a++]=o[l++],i[a++]=o[l++],i[a++]=o[l++],i[a++]=n?o[l++]:255,s=l},r.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var i=function(){if("[object Window]"===Object.prototype.toString.call(V)){try{e=V.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return i(),t=function(t){var r;if(!0===i())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(e){var n,r,i,a,o,s,l,u;if(this.animation){for(u=[],r=o=0,s=(l=this.animation.frames).length;o<s;r=++o)n=l[r],i=e.createImageData(n.width,n.height),a=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,a),n.imageData=i,u.push(n.image=t(i));return u}},r.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(t){var e,n,r,i,a,o,s=this;return n=0,o=this.animation,i=o.numFrames,r=o.frames,a=o.numPlays,(e=function(){var o,l;if(o=n++%i,l=r[o],s.renderFrame(t,o),i>1&&n/i<a)return s.animation._timeout=setTimeout(e,l.delay)})()},r.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},r.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},r}();function Te(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,r=t[e++]|t[e++]<<8,i=t[e++],a=i>>7,o=1<<1+(7&i);t[e++],t[e++];var s=null,l=null;a&&(s=e,l=o,e+=3*o);var u=!0,c=[],h=0,f=null,d=0,p=null;for(this.width=n,this.height=r;u&&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(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];h=t[e++]|t[e++]<<8,f=t[e++],0==(1&g)&&(f=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,L=1<<1+(7&w),A=s,N=l,S=!1;w>>7&&(S=!0,A=e,N=L,e+=3*L);var _=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}c.push({x:m,y:v,width:b,height:y,has_local_palette:S,palette_offset:A,palette_size:N,data_offset:_,data_length:e-_,transparent_index:f,interlaced:!!x,delay:h,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=c.length)throw new Error("Frame index out of range.");return c[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Re(t,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*c;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*c+4*n*(m-1),p=f+(u+c)*(m<<1),m>>=1)),y===l)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],L=t[s+3*y+2];r[p++]=L,r[p++]=x,r[p++]=w,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),a=i.width*i.height,o=new Uint8Array(a);Re(t,i.data_offset,o,a);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var u=i.width,c=n-u,h=u,f=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),p=f,g=4*c;!0===i.interlaced&&(g+=4*n*7);for(var m=8,v=0,b=o.length;v<b;++v){var y=o[v];if(0===h&&(h=u,(p+=g)>=d&&(g=4*c+4*n*(m-1),p=f+(u+c)*(m<<1),m>>=1)),y===l)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],L=t[s+3*y+2];r[p++]=w,r[p++]=x,r[p++]=L,r[p++]=255}--h}}}function Re(t,e,n,r){for(var i=t[e++],a=1<<i,o=a+1,s=o+1,l=i+1,u=(1<<l)-1,c=0,h=0,f=0,d=t[e++],p=new Int32Array(4096),g=null;;){for(;c<16&&0!==d;)h|=t[e++]<<c,c+=8,1===d?d=t[e++]:--d;if(c<l)break;var m=h&u;if(h>>=l,c-=l,m!==a){if(m===o)break;for(var v=m<s?m:g,b=0,y=v;y>a;)y=p[y]>>8,++b;var w=y;if(f+b+(v!==m?1:0)>r)return void Y.log("Warning, gif stream longer than expected.");n[f++]=w;var x=f+=b;for(v!==m&&(n[f++]=w),y=v;b--;)y=p[y],n[--x]=255&y,y>>=8;null!==g&&s<4096&&(p[s++]=g<<8|w,s>=u+1&&l<12&&(++l,u=u<<1|1)),g=m}else s=o+1,u=(1<<(l=i+1))-1,g=null}return f!==r&&Y.log("Warning, gif stream shorter than expected."),n}function qe(t){var e,n,r,i,a,o=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),h=new Array(65535),f=new Array(65535),d=new Array(64),p=new Array(64),g=[],m=0,v=7,b=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),L=new Array(2048),A=[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],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[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 j(t,e){for(var n=0,r=0,i=new Array,a=1;a<=16;a++){for(var o=1;o<=t[a];o++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=a,r++,n++;n*=2}return i}function O(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(m|=1<<v),n--,--v<0&&(255==m?(D(255),D(0)):D(m),v=7,m=0)}function D(t){g.push(t)}function B(t){D(t>>8&255),D(255&t)}function M(t,e,n,r,i){for(var a,o=i[0],s=i[240],l=function(t,e){var n,r,i,a,o,s,l,u,c,h,f=0;for(c=0;c<8;++c){n=t[f],r=t[f+1],i=t[f+2],a=t[f+3],o=t[f+4],s=t[f+5],l=t[f+6];var p=n+(u=t[f+7]),g=n-u,m=r+l,v=r-l,b=i+s,y=i-s,w=a+o,x=a-o,L=p+w,A=p-w,N=m+b,S=m-b;t[f]=L+N,t[f+4]=L-N;var _=.707106781*(S+A);t[f+2]=A+_,t[f+6]=A-_;var P=.382683433*((L=x+y)-(S=v+g)),k=.5411961*L+P,F=1.306562965*S+P,C=.707106781*(N=y+v),I=g+C,j=g-C;t[f+5]=j+k,t[f+3]=j-k,t[f+1]=I+F,t[f+7]=I-F,f+=8}for(f=0,c=0;c<8;++c){n=t[f],r=t[f+8],i=t[f+16],a=t[f+24],o=t[f+32],s=t[f+40],l=t[f+48];var O=n+(u=t[f+56]),D=n-u,B=r+l,M=r-l,E=i+s,T=i-s,R=a+o,q=a-o,z=O+R,U=O-R,W=B+E,H=B-E;t[f]=z+W,t[f+32]=z-W;var V=.707106781*(H+U);t[f+16]=U+V,t[f+48]=U-V;var G=.382683433*((z=q+T)-(H=M+D)),Y=.5411961*z+G,J=1.306562965*H+G,X=.707106781*(W=T+M),K=D+X,$=D-X;t[f+40]=$+Y,t[f+24]=$-Y,t[f+8]=K+J,t[f+56]=K-J,f++}for(c=0;c<64;++c)h=t[c]*e[c],d[c]=h>0?h+.5|0:h-.5|0;return d}(t,e),u=0;u<64;++u)p[A[u]]=l[u];var c=p[0]-n;n=p[0],0==c?O(r[0]):(O(r[f[a=32767+c]]),O(h[a]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return O(o),n;for(var m,v=1;v<=g;){for(var b=v;0==p[v]&&v<=g;)++v;var y=v-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)O(s);y&=15}a=32767+p[v],O(i[(y<<4)+f[a]]),O(h[a]),v++}return 63!=g&&O(o),n}function E(t){t=Math.min(Math.max(t,1),100),a!=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 r=o((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[A[n]]=r}for(var i=[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],a=0;a<64;a++){var h=o((i[a]*t+50)/100);h=Math.min(Math.max(h,1),255),l[A[a]]=h}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[A[d]]*f[p]*f[g]*8),c[d]=1/(l[A[d]]*f[p]*f[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),a=t)}this.encode=function(t,a){a&&E(a),g=new Array,m=0,v=7,B(65496),B(65504),B(16),D(74),D(70),D(73),D(70),D(0),D(1),D(1),D(0),B(1),B(1),D(0),D(0),function(){B(65499),B(132),D(0);for(var t=0;t<64;t++)D(s[t]);D(1);for(var e=0;e<64;e++)D(l[e])}(),function(t,e){B(65472),B(17),D(8),B(e),B(t),D(3),D(1),D(17),D(0),D(2),D(17),D(1),D(3),D(17),D(1)}(t.width,t.height),function(){B(65476),B(418),D(0);for(var t=0;t<16;t++)D(N[t+1]);for(var e=0;e<=11;e++)D(S[e]);D(16);for(var n=0;n<16;n++)D(_[n+1]);for(var r=0;r<=161;r++)D(P[r]);D(1);for(var i=0;i<16;i++)D(k[i+1]);for(var a=0;a<=11;a++)D(F[a]);D(17);for(var o=0;o<16;o++)D(C[o+1]);for(var s=0;s<=161;s++)D(I[s])}(),B(65498),B(12),D(3),D(1),D(0),D(2),D(17),D(3),D(17),D(0),D(63),D(0);var o=0,h=0,f=0;m=0,v=7,this.encode.displayName="_encode_";for(var d,p,x,A,j,T,R,q,z,U=t.data,W=t.width,H=t.height,V=4*W,G=0;G<H;){for(d=0;d<V;){for(j=V*G+d,R=-1,q=0,z=0;z<64;z++)T=j+(q=z>>3)*V+(R=4*(7&z)),G+q>=H&&(T-=V*(G+1+q-H)),d+R>=V&&(T-=d+R-V+4),p=U[T++],x=U[T++],A=U[T++],b[z]=(L[p]+L[x+256>>0]+L[A+512>>0]>>16)-128,y[z]=(L[p+768>>0]+L[x+1024>>0]+L[A+1280>>0]>>16)-128,w[z]=(L[p+1280>>0]+L[x+1536>>0]+L[A+1792>>0]>>16)-128;o=M(b,u,o,e,r),h=M(y,c,h,n,i),f=M(w,c,f,n,i),d+=32}G+=8}if(v>=0){var Y=[];Y[1]=v+1,Y[0]=(1<<v+1)-1,O(Y)}return B(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=j(N,S),n=j(k,F),r=j(_,P),i=j(C,I),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)f[32767+r]=n,h[32767+r]=[],h[32767+r][1]=n,h[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)f[32767+i]=n,h[32767+i]=[],h[32767+i][1]=n,h[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)L[t]=19595*t,L[t+256>>0]=38470*t,L[t+512>>0]=7471*t+32768,L[t+768>>0]=-11059*t,L[t+1024>>0]=-21709*t,L[t+1280>>0]=32768*t+8421375,L[t+1536>>0]=-27439*t,L[t+1792>>0]=-5329*t}(),E(t)}function ze(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 Ue(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var a=0;a<i;a++)t[e+a]=n[r+a]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function a(t){return new Int32Array(t)}function o(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,r,i){for(var a=i[r],o=0;o<a&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));o++)t(n[o],r+1,i)}(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 u(t,n,r,i,a){e(!(i%r));do{t[n+(i-=r)]=a}while(0<i)}function c(t,n,r,i,o){if(e(2328>=o),512>=o)var s=a(512);else if(null==(s=a(o)))return 0;return function(t,n,r,i,o,s){var c,f,d=n,p=1<<r,g=a(16),m=a(16);for(e(0!=o),e(null!=i),e(null!=t),e(0<r),f=0;f<o;++f){if(15<i[f])return 0;++g[i[f]]}if(g[0]==o)return 0;for(m[1]=0,c=1;15>c;++c){if(g[c]>1<<c)return 0;m[c+1]=m[c]+g[c]}for(f=0;f<o;++f)c=i[f],0<i[f]&&(s[m[c]++]=f);if(1==m[15])return(i=new h).g=0,i.value=s[0],u(t,d,1,p,i),p;var v,b=-1,y=p-1,w=0,x=1,L=1,A=1<<r;for(f=0,c=1,o=2;c<=r;++c,o<<=1){if(x+=L<<=1,0>(L-=g[c]))return 0;for(;0<g[c];--g[c])(i=new h).g=c,i.value=s[f++],u(t,d+w,o,A,i),w=l(w,c)}for(c=r+1,o=2;15>=c;++c,o<<=1){if(x+=L<<=1,0>(L-=g[c]))return 0;for(;0<g[c];--g[c]){if(i=new h,(w&y)!=b){for(d+=A,v=1<<(b=c)-r;15>b&&!(0>=(v-=g[b]));)++b,v<<=1;p+=A=1<<(v=b-r),t[n+(b=w&y)].g=v+r,t[n+b].value=d-n-b}i.g=c-r,i.value=s[f++],u(t,d+(w>>r),o,A,i),w=l(w,c)}}return x!=2*m[15]-1?0:p}(t,n,r,i,o,s)}function h(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,h),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Rn,f)}function p(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,_(t)}function g(t,e){for(var n=0;0<e--;)n|=k(t,128)<<e;return n}function m(t,e){var n=g(t,e);return P(t)?-n:n}function v(t,n,r,i){var a,o=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),a=0;a<i;++a)o+=n[r+a]<<8*a;t.Ra=o,t.bb=i,t.oa=n,t.pa=r}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;A(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=zn){var r=L(t)&qn[n];return t.u+=n,b(t),r}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(t){return t.Ra>>>(t.u&Un-1)>>>0}function A(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Un}function N(t,e){t.u=e,t.h=A(t)}function S(t){t.u>=Wn&&(e(t.u>=Wn),b(t))}function _(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 P(t){return g(t,1)}function k(t,e){var n=t.Ca;0>t.b&&_(t);var r=t.b,i=n*e>>>8,a=(t.I>>>r>i)+0;for(a?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Hn[r],t.b-=r,t.Ca=(n<<r)-1,a}function F(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function C(t,e){return t[e+0]<<0|t[e+1]<<8}function I(t,e){return C(t,e)|t[e+2]<<16}function j(t,e){return C(t,e)|C(t,e+2)<<16}function O(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=a(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function D(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function B(){this.X=[],this.Xa=this.Mb=0}function M(t,n,r,i){e(null!=r),e(null!=i);var a=r[0],o=i[0];return 0==a&&(a=(t*o+n/2)/n),0==o&&(o=(n*a+t/2)/t),0>=a||0>=o?0:(r[0]=a,i[0]=o,1)}function E(t,e){return t+(1<<e)-1>>>e}function T(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function R(e,n){t[n]=function(n,r,i,a,o,s,l){var u;for(u=0;u<o;++u){var c=t[e](s[l+u-1],i,a+u);s[l+u]=T(n[r+u],c)}}}function q(){this.ud=this.hd=this.jd=0}function z(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function U(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function W(t,e){return U(t+(t-e+.5>>1))}function H(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function V(t,e,n,r,i,a,o){for(r=a[o-1],n=0;n<i;++n)a[o+n]=r=T(t[e+n],r)}function G(t,e,n,r,i){var a;for(a=0;a<n;++a){var o=t[e+a],s=o>>8&255,l=16711935&(l=(l=16711935&o)+((s<<16)+s));r[i+a]=(4278255360&o)+l>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function J(t,e,n,r,i,a){var o;for(o=0;o<r;++o){var s=e[n+o],l=s>>>8,u=s,c=255&(c=(c=s>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(c<<24>>24)>>>5)),i[a+o]=(4278255360&s)+(c<<16)+u}}function X(e,n,r,i,a){t[n]=function(t,e,n,r,o,s,l,u,c){for(r=l;r<u;++r)for(l=0;l<c;++l)o[s++]=a(n[i(t[e++])])},t[e]=function(e,n,o,s,l,u,c){var h=8>>e.b,f=e.Ea,d=e.K[0],p=e.w;if(8>h)for(e=(1<<e.b)-1,p=(1<<h)-1;n<o;++n){var g,m=0;for(g=0;g<f;++g)g&e||(m=i(s[l++])),u[c++]=a(d[m&p]),m>>=h}else t["VP8LMapColor"+r](s,l,d,p,u,c,n,o,f)}}function K(t,e,n,r,i){for(n=e+n;e<n;){var a=t[e++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=a>>0&255}}function $(t,e,n,r,i){for(n=e+n;e<n;){var a=t[e++];r[i++]=a>>16&255,r[i++]=a>>8&255,r[i++]=a>>0&255,r[i++]=a>>24&255}}function Z(t,e,n,r,i){for(n=e+n;e<n;){var a=(o=t[e++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;r[i++]=a,r[i++]=o}}function Q(t,e,n,r,i){for(n=e+n;e<n;){var a=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=a,r[i++]=o}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var a=t[e++];r[i++]=a>>0&255,r[i++]=a>>8&255,r[i++]=a>>16&255}}function et(t,e,n,i,a,o){if(0==o)for(n=e+n;e<n;)F(i,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),a+=32;else r(i,a,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 rt(t){return t==Wr||t==Hr||t==Vr||t==Gr}function it(){this.eb=[],this.size=this.A=this.fb=0}function at(){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 it,this.f.kb=new at,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 ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ct(t,e){var n=t.T,i=e.ba.f.RGBA,a=i.eb,o=i.fb+t.ka*i.A,s=vi[e.ba.S],l=t.y,u=t.O,c=t.f,h=t.N,f=t.ea,d=t.W,p=e.cc,g=e.dc,m=e.Mc,v=e.Nc,b=t.ka,y=t.ka+t.T,w=t.U,x=w+1>>1;for(0==b?s(l,u,null,null,c,h,f,d,c,h,f,d,a,o,null,null,w):(s(e.ec,e.fc,l,u,p,g,m,v,c,h,f,d,a,o-i.A,a,o,w),++n);b+2<y;b+=2)p=c,g=h,m=f,v=d,h+=t.Rc,d+=t.Rc,o+=2*i.A,s(l,(u+=2*t.fa)-t.fa,l,u,p,g,m,v,c,h,f,d,a,o-i.A,a,o,w);return u+=t.fa,t.j+y<t.o?(r(e.ec,e.fc,l,u,w),r(e.cc,e.dc,c,h,x),r(e.Mc,e.Nc,f,d,x),n--):1&y||s(l,u,null,null,c,h,f,d,c,h,f,d,a,o+i.A,null,null,w),n}function ht(t,n,r){var i=t.F,a=[t.J];if(null!=i){var o=t.U,s=n.ba.S,l=s==qr||s==Vr;n=n.ba.f.RGBA;var u=[0],c=t.ka;u[0]=t.T,t.Kb&&(0==c?--u[0]:(--c,a[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-c));var h=n.eb;c=n.fb+c*n.A,t=Sr(i,a[0],t.width,o,u,h,c+(l?0:3),n.A),e(r==u),t&&rt(s)&&Ar(h,c,l,o,u,n.A)}return 0}function ft(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==Er||n==Rr||n==qr||n==zr||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Mn(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&yn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=ut,t.Kb){if(n=t.U+1>>1,e.memory=a(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=ct,yn()}}else alert("todo:EmitYUV");i&&(e.Jb=ht,r&&vn())}if(r&&!Ii){for(t=0;256>t;++t)ji[t]=89858*(t-128)+_i>>Si,Bi[t]=-22014*(t-128)+_i,Di[t]=-45773*(t-128),Oi[t]=113618*(t-128)+_i>>Si;for(t=Pi;t<ki;++t)e=76283*(t-16)+_i>>Si,Mi[t-Pi]=Vt(e,255),Ei[t-Pi]=Vt(e+8>>4,15);Ii=1}return 1}function dt(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function pt(t){t.ma.memory=null}function gt(t,e,n,r){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,r[0]=y(t,1),0!=y(t,3)?0:!t.h)}function mt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+y(e,n)+1}function vt(t,e){return 120<e?e-120:1<=(n=((n=Zr[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function bt(t,e,n){var r=L(n),i=t[e+=255&r].g-8;return 0<i&&(N(n,n.u+8),r=L(n),e+=t[e].value,e+=r&(1<<i)-1),N(n,n.u+t[e].g),t[e].value}function yt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function wt(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function xt(t,n,i,a){var o=t.ab,s=t.c*n,l=t.C;n=l+n;var u=i,c=a;for(a=t.Ta,i=t.Ua;0<o--;){var h=t.gc[o],f=l,d=n,p=u,g=c,m=(c=a,u=i,h.Ea);switch(e(f<d),e(d<=h.nc),h.hc){case 2:Yn(p,g,(d-f)*m,c,u);break;case 0:var v=f,b=d,y=c,w=u,x=(_=h).Ea;0==v&&(Vn(p,g,null,null,1,y,w),V(p,g+1,0,0,x-1,y,w+1),g+=x,w+=x,++v);for(var L=1<<_.b,A=L-1,N=E(x,_.b),S=_.K,_=_.w+(v>>_.b)*N;v<b;){var P=S,k=_,F=1;for(Gn(p,g,y,w-x,1,y,w);F<x;){var C=(F&~A)+L;C>x&&(C=x),(0,Zn[P[k++]>>8&15])(p,g+ +F,y,w+F-x,C-F,y,w+F),F=C}g+=x,w+=x,++v&A||(_+=N)}d!=h.nc&&r(c,u-m,c,u+(d-f-1)*m,m);break;case 1:for(m=p,b=g,x=(p=h.Ea)-(w=p&~(y=(g=1<<h.b)-1)),v=E(p,h.b),L=h.K,h=h.w+(f>>h.b)*v;f<d;){for(A=L,N=h,S=new q,_=b+w,P=b+p;b<_;)Y(A[N++],S),Qn(S,m,b,g,c,u),b+=g,u+=g;b<P&&(Y(A[N++],S),Qn(S,m,b,x,c,u),b+=x,u+=x),++f&y||(h+=v)}break;case 3:if(p==c&&g==u&&0<h.b){for(b=c,p=m=u+(d-f)*m-(w=(d-f)*E(h.Ea,h.b)),g=c,y=u,v=[],w=(x=w)-1;0<=w;--w)v[w]=g[y+w];for(w=x-1;0<=w;--w)b[p+w]=v[w];Jn(h,f,d,c,m,c,u)}else Jn(h,f,d,p,g,c,u)}u=a,c=i}c!=i&&r(a,i,u,c,s)}function Lt(t,n){var r=t.V,i=t.Ba+t.c*t.C,a=n-t.C;if(e(n<=t.l.o),e(16>=a),0<a){var o=t.l,s=t.Ta,l=t.Ua,u=o.width;if(xt(t,a,r,i),a=l=[l],e((r=t.C)<(i=n)),e(o.v<o.va),i>o.o&&(i=o.o),r<o.j){var c=o.j-r;r=o.j,a[0]+=c*u}if(r>=i?r=0:(a[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=i-r,r=1),r){if(l=l[0],11>(r=t.ca).S){var h=r.f.RGBA,f=(i=r.S,a=o.U,o=o.T,c=h.eb,h.A),d=o;for(h=h.fb+t.Ma*h.A;0<d--;){var p=s,g=l,m=a,v=c,b=h;switch(i){case Mr:tr(p,g,m,v,b);break;case Er:er(p,g,m,v,b);break;case Wr:er(p,g,m,v,b),Ar(v,b,0,m,1,0);break;case Tr:ir(p,g,m,v,b);break;case Rr:et(p,g,m,v,b,1);break;case Hr:et(p,g,m,v,b,1),Ar(v,b,0,m,1,0);break;case qr:et(p,g,m,v,b,0);break;case Vr:et(p,g,m,v,b,0),Ar(v,b,1,m,1,0);break;case zr:nr(p,g,m,v,b);break;case Gr:nr(p,g,m,v,b),Nr(v,b,m,1,0);break;case Ur:rr(p,g,m,v,b);break;default:e(0)}l+=u,h+=f}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function At(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Nt(t,n,r,i,a,o){if(0!=t.Z){var s=t.qd,l=t.rd;for(e(null!=mi[t.Z]);n<r;++n)mi[t.Z](s,l,i,a,i,a,o),s=i,l=a,a+=o;t.qd=s,t.rd=l}}function St(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var a=t.l.width,o=r.ca,s=r.tb+a*i,l=t.V,u=t.Ba+t.c*i,c=t.gc;e(1==t.ab),e(3==c[0].hc),Kn(c[0],i,n,l,u,o,s),Nt(r,i,n,o,s,a)}t.C=t.Ma=n}function _t(t,n,r,i,a,o,s){var l=t.$/i,u=t.$%i,c=t.m,h=t.s,f=r+t.$,d=f;a=r+i*a;var p=r+i*o,g=280+h.ua,m=t.Pb?l:16777216,v=0<h.ua?h.Wa:null,b=h.wc,y=f<p?wt(h,u,l):null;e(t.C<o),e(p<=a);var w=!1;t:for(;;){for(;w||f<p;){var x=0;if(l>=m){var _=f-r;e((m=t).Pb),m.wd=m.m,m.xd=_,0<m.s.ua&&D(m.s.Wa,m.s.vb),m=l+ti}if(u&b||(y=wt(h,u,l)),e(null!=y),y.Qb&&(n[f]=y.qb,w=!0),!w)if(S(c),y.jc){x=c,_=n;var P=f,k=y.pd[L(x)&Rn-1];e(y.jc),256>k.g?(N(x,x.u+k.g),_[P]=k.value,x=0):(N(x,x.u+k.g-256),e(256<=k.value),x=k.value),0==x&&(w=!0)}else x=bt(y.G[0],y.H[0],c);if(c.h)break;if(w||256>x){if(!w)if(y.nd)n[f]=(y.qb|x<<8)>>>0;else{if(S(c),w=bt(y.G[1],y.H[1],c),S(c),_=bt(y.G[2],y.H[2],c),P=bt(y.G[3],y.H[3],c),c.h)break;n[f]=(P<<24|w<<16|x<<8|_)>>>0}if(w=!1,++f,++u>=i&&(u=0,++l,null!=s&&l<=o&&!(l%16)&&s(t,l),null!=v))for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else if(280>x){if(x=mt(x-256,c),_=bt(y.G[4],y.H[4],c),S(c),_=vt(i,_=mt(_,c)),c.h)break;if(f-r<_||a-f<x)break t;for(P=0;P<x;++P)n[f+P]=n[f+P-_];for(f+=x,u+=x;u>=i;)u-=i,++l,null!=s&&l<=o&&!(l%16)&&s(t,l);if(e(f<=a),u&b&&(y=wt(h,u,l)),null!=v)for(;d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x}else{if(!(x<g))break t;for(w=x-280,e(null!=v);d<f;)x=n[d++],v.X[(506832829*x&4294967295)>>>v.Mb]=x;x=f,e(!(w>>>(_=v).Xa)),n[x]=_.X[w],w=!0}w||e(c.h==A(c))}if(t.Pb&&c.h&&f<a)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&D(t.s.vb,t.s.Wa);else{if(c.h)break t;null!=s&&s(t,l>o?o:l),t.a=0,t.$=f-r}return 1}return t.a=3,0}function Pt(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 kt(){var e=new sn;return null==e?null:(e.a=0,e.xb=gi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Yn=G,Qn=J,tr=K,er=$,nr=Z,rr=Q,ir=tt,t.VP8LMapColor32b=Xn,t.VP8LMapColor8b=$n,e)}function Ft(t,n,r,s,l){var u=1,f=[t],p=[n],g=s.m,m=s.s,v=null,b=0;t:for(;;){if(r)for(;u&&y(g,1);){var w=f,x=p,A=s,_=1,P=A.m,k=A.gc[A.ab],F=y(P,2);if(A.Oc&1<<F)u=0;else{switch(A.Oc|=1<<F,k.hc=F,k.Ea=w[0],k.nc=x[0],k.K=[null],++A.ab,e(4>=A.ab),F){case 0:case 1:k.b=y(P,3)+2,_=Ft(E(k.Ea,k.b),E(k.nc,k.b),0,A,k.K),k.K=k.K[0];break;case 3:var C,I=y(P,8)+1,j=16<I?0:4<I?1:2<I?2:3;if(w[0]=E(k.Ea,j),k.b=j,C=_=Ft(I,1,0,A,k.K)){var D,B=I,M=k,R=1<<(8>>M.b),q=a(R);if(null==q)C=0;else{var z=M.K[0],U=M.w;for(q[0]=M.K[0][0],D=1;D<1*B;++D)q[D]=T(z[U+D],q[D-1]);for(;D<4*R;++D)q[D]=0;M.K[0]=null,M.K[0]=q,C=1}}_=C;break;case 2:break;default:e(0)}u=_}}if(f=f[0],p=p[0],u&&y(g,1)&&!(u=1<=(b=y(g,4))&&11>=b)){s.a=3;break t}var W;if(W=u)e:{var H,V,G,Y=s,J=f,X=p,K=b,$=r,Z=Y.m,Q=Y.s,tt=[null],et=1,nt=0,rt=Qr[K];n:for(;;){if($&&y(Z,1)){var it=y(Z,3)+2,at=E(J,it),ot=E(X,it),st=at*ot;if(!Ft(at,ot,0,Y,tt))break n;for(tt=tt[0],Q.xc=it,H=0;H<st;++H){var lt=tt[H]>>8&65535;tt[H]=lt,lt>=et&&(et=lt+1)}}if(Z.h)break n;for(V=0;5>V;++V){var ut=Xr[V];!V&&0<K&&(ut+=1<<K),nt<ut&&(nt=ut)}var ct=o(et*rt,h),ht=et,ft=o(ht,d);if(null==ft)var dt=null;else e(65536>=ht),dt=ft;var pt=a(nt);if(null==dt||null==pt||null==ct){Y.a=1;break n}var gt=ct;for(H=G=0;H<et;++H){var mt=dt[H],vt=mt.G,bt=mt.H,wt=0,xt=1,Lt=0;for(V=0;5>V;++V){ut=Xr[V],vt[V]=gt,bt[V]=G,!V&&0<K&&(ut+=1<<K);r:{var At,Nt=ut,St=Y,kt=pt,Ct=gt,It=G,jt=0,Ot=St.m,Dt=y(Ot,1);if(i(kt,0,0,Nt),Dt){var Bt=y(Ot,1)+1,Mt=y(Ot,1),Et=y(Ot,0==Mt?1:8);kt[Et]=1,2==Bt&&(kt[Et=y(Ot,8)]=1);var Tt=1}else{var Rt=a(19),qt=y(Ot,4)+4;if(19<qt){St.a=3;var zt=0;break r}for(At=0;At<qt;++At)Rt[$r[At]]=y(Ot,3);var Ut=void 0,Wt=void 0,Ht=St,Vt=Rt,Gt=Nt,Yt=kt,Jt=0,Xt=Ht.m,Kt=8,$t=o(128,h);i:for(;c($t,0,7,Vt,19);){if(y(Xt,1)){var Zt=2+2*y(Xt,3);if((Ut=2+y(Xt,Zt))>Gt)break i}else Ut=Gt;for(Wt=0;Wt<Gt&&Ut--;){S(Xt);var Qt=$t[0+(127&L(Xt))];N(Xt,Xt.u+Qt.g);var te=Qt.value;if(16>te)Yt[Wt++]=te,0!=te&&(Kt=te);else{var ee=16==te,ne=te-16,re=Jr[ne],ie=y(Xt,Yr[ne])+re;if(Wt+ie>Gt)break i;for(var ae=ee?Kt:0;0<ie--;)Yt[Wt++]=ae}}Jt=1;break i}Jt||(Ht.a=3),Tt=Jt}(Tt=Tt&&!Ot.h)&&(jt=c(Ct,It,8,kt,Nt)),Tt&&0!=jt?zt=jt:(St.a=3,zt=0)}if(0==zt)break n;if(xt&&1==Kr[V]&&(xt=0==gt[G].g),wt+=gt[G].g,G+=zt,3>=V){var oe,se=pt[0];for(oe=1;oe<ut;++oe)pt[oe]>se&&(se=pt[oe]);Lt+=se}}if(mt.nd=xt,mt.Qb=0,xt&&(mt.qb=(vt[3][bt[3]+0].value<<24|vt[1][bt[1]+0].value<<16|vt[2][bt[2]+0].value)>>>0,0==wt&&256>vt[0][bt[0]+0].value&&(mt.Qb=1,mt.qb+=vt[0][bt[0]+0].value<<8)),mt.jc=!mt.Qb&&6>Lt,mt.jc){var le,ue=mt;for(le=0;le<Rn;++le){var ce=le,he=ue.pd[ce],fe=ue.G[0][ue.H[0]+ce];256<=fe.value?(he.g=fe.g+256,he.value=fe.value):(he.g=0,he.value=0,ce>>=yt(fe,8,he),ce>>=yt(ue.G[1][ue.H[1]+ce],16,he),ce>>=yt(ue.G[2][ue.H[2]+ce],0,he),yt(ue.G[3][ue.H[3]+ce],24,he))}}}Q.vc=tt,Q.Wb=et,Q.Ya=dt,Q.yc=ct,W=1;break e}W=0}if(!(u=W)){s.a=3;break t}if(0<b){if(m.ua=1<<b,!O(m.Wa,b)){s.a=1,u=0;break t}}else m.ua=0;var de=s,pe=f,ge=p,me=de.s,ve=me.xc;if(de.c=pe,de.i=ge,me.md=E(pe,ve),me.wc=0==ve?-1:(1<<ve)-1,r){s.xb=pi;break t}if(null==(v=a(f*p))){s.a=1,u=0;break t}u=(u=_t(s,v,0,f,p,p,null))&&!g.h;break t}return u?(null!=l?l[0]=v:(e(null==v),e(r)),s.$=0,r||Pt(m)):Pt(m),u}function Ct(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=a(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function It(t,n){var r=t.C,i=n-r,a=t.V,o=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var s=16<i?16:i,l=t.l.ma,u=t.l.width,c=u*s,h=l.ca,f=l.tb+u*r,d=t.Ta,p=t.Ua;xt(t,s,a,o),_r(d,p,h,f,c),Nt(l,r,r+s,h,f,u),i-=s,a+=s*t.c,r+=s}e(r==n),t.C=t.Ma=n}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Ot(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Dt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Bt(){this.Yb=function(){var t=[];return function t(e,n,r){for(var i=r[n],a=0;a<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));a++)t(e[a],n+1,r)}(t,0,[3,11]),t}()}function Mt(){this.jb=a(3),this.Wc=s([4,8],Bt),this.Xc=s([4,17],Bt)}function Et(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Tt(){this.ld=this.La=this.dd=this.tc=0}function Rt(){this.Na=this.la=0}function qt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function zt(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ut(){this.uc=this.M=this.Nb=0,this.wa=Array(new Tt),this.Y=0,this.ya=Array(new zt),this.aa=0,this.l=new Gt}function Wt(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Ht(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Ot,this.ed=new Et,this.Qa=new Dt,this.Ic=this.$c=this.Aa=0,this.D=new Ut,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,qt),this.Pa=new Mt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Wt),this.Hd=0,this.rb=Array(new Rt),this.sb=0,this.wa=Array(new Tt),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 zt),this.L=this.aa=0,this.gd=s([4,2],Tt),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 Vt(t,e){return 0>t?0:t>e?e:t}function Gt(){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 Yt(){var t=new Ht;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ri||(ri=$t)),t}function Jt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Xt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Kt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Jt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,a=n.w,o=n.ha;if(4>o)return Jt(t,7,"Truncated header.");var s=r[a+0]|r[a+1]<<8|r[a+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 Jt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Jt(t,4,"Frame not displayable.");a+=3,o-=3;var u=t.Kc;if(l.Rb){if(7>o)return Jt(t,7,"cannot parse picture header");if(!Xt(r,a,o))return Jt(t,3,"Bad code word");u.c=16383&(r[a+4]<<8|r[a+3]),u.Td=r[a+4]>>6,u.i=16383&(r[a+6]<<8|r[a+5]),u.Ud=r[a+6]>>6,a+=7,o-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,n.width=u.c,n.height=u.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(l.ub>o)return Jt(t,7,"bad partition length");p(s=t.m,r,a,l.ub),a+=l.ub,o-=l.ub,l.Rb&&(u.Ld=P(s),u.Kd=P(s)),u=t.Qa;var c,h=t.Pa;if(e(null!=s),e(null!=u),u.Cb=P(s),u.Cb){if(u.Bb=P(s),P(s)){for(u.Fb=P(s),c=0;4>c;++c)u.Zb[c]=P(s)?m(s,7):0;for(c=0;4>c;++c)u.Lb[c]=P(s)?m(s,6):0}if(u.Bb)for(c=0;3>c;++c)h.jb[c]=P(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Jt(t,3,"cannot parse segment header");if((u=t.ed).zd=P(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=P(s),u.Pc&&P(s)){for(h=0;4>h;++h)P(s)&&(u.vd[h]=m(s,6));for(h=0;4>h;++h)P(s)&&(u.od[h]=m(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Jt(t,3,"cannot parse filter header");var f=o;if(o=c=a,a=c+f,u=f,t.Xb=(1<<g(t.m,2))-1,f<3*(h=t.Xb))r=7;else{for(c+=3*h,u-=3*h,f=0;f<h;++f){var d=r[o+0]|r[o+1]<<8|r[o+2]<<16;d>u&&(d=u),p(t.Jc[+f],r,c,d),c+=d,u-=d,o+=3}p(t.Jc[+h],r,c,u),r=c<a?0:5}if(0!=r)return Jt(t,r,"cannot parse partitions");for(r=g(c=t.m,7),o=P(c)?m(c,4):0,a=P(c)?m(c,4):0,u=P(c)?m(c,4):0,h=P(c)?m(c,4):0,c=P(c)?m(c,4):0,f=t.Qa,d=0;4>d;++d){if(f.Cb){var v=f.Zb[d];f.Fb||(v+=r)}else{if(0<d){t.pb[d]=t.pb[0];continue}v=r}var b=t.pb[d];b.Sc[0]=ei[Vt(v+o,127)],b.Sc[1]=ni[Vt(v+0,127)],b.Eb[0]=2*ei[Vt(v+a,127)],b.Eb[1]=101581*ni[Vt(v+u,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ei[Vt(v+h,117)],b.Qc[1]=ni[Vt(v+c,127)],b.lc=v+c}if(!l.Rb)return Jt(t,4,"Not a key frame.");for(P(s),l=t.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(a=0;3>a;++a)for(u=0;11>u;++u)h=k(s,ui[r][o][a][u])?g(s,8):si[r][o][a][u],l.Wc[r][o].Yb[a][u]=h;for(o=0;17>o;++o)l.Xc[r][o]=l.Wc[r][ci[o]]}return t.kc=P(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function $t(t,e,n,r,i,a,o){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!k(t,s[n+0]))return i;for(;!k(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var l=e[i+1].Yb;if(k(t,s[n+2])){var u=t,c=0;if(k(u,(f=s)[(h=n)+3]))if(k(u,f[h+6])){for(s=0,h=2*(c=k(u,f[h+8]))+(f=k(u,f[h+9+c])),c=0,f=ii[h];f[s];++s)c+=c+k(u,f[s]);c+=3+(8<<h)}else k(u,f[h+7])?(c=7+2*k(u,165),c+=k(u,145)):c=5+k(u,159);else c=k(u,f[h+4])?3+k(u,f[h+5]):2;s=l[2]}else c=1,s=l[1];l=o+ai[i],0>(u=t).b&&_(u);var h,f=u.b,d=(h=u.Ca>>1)-(u.I>>f)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(h+1&d)<<f,a[l]=((c^d)-d)*r[(0<i)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,n){if(null==t)return 0;if(null==n)return Jt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Kt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=Ri[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 u;if(t.Qa.Cb){var c=t.Qa.Lb[s];t.Qa.Fb||(c+=l.Tb)}else c=l.Tb;for(u=0;1>=u;++u){var h=t.gd[s][u],f=c;if(l.Pc&&(f+=l.vd[0],u&&(f+=l.od[0])),0<(f=0>f?0:63<f?63:f)){var d=f;0<l.wb&&(d=4<l.wb?d>>2:d>>1)>9-l.wb&&(d=9-l.wb),1>d&&(d=1),h.dd=d,h.tc=2*f+d,h.ld=40<=f?2:15<=f?1:0}else h.tc=0;h.La=u}}}s=0}else Jt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=zi);t:{s=t.Ic,l=4*(d=t.za);var p=32*d,g=d+1,m=0<t.L?d*(0<t.Aa?2:1):0,v=(2==t.Aa?2:1)*d;if((h=l+832+(u=3*(16*s+Ri[t.L])/2*p)+(c=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=h)s=0;else{if(h>t.Vb){if(t.Vb=0,t.Ec=a(h),t.Fc=0,null==t.Ec){s=Jt(t,1,"no memory during frame initialization.");break t}t.Vb=h}h=t.Ec,f=t.Fc,t.Ac=h,t.Bc=f,f+=l,t.Gd=o(p,Wt),t.Hd=0,t.rb=o(g+1,Rt),t.sb=1,t.wa=m?o(m,Tt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=h,t.pc=f,f+=832,t.ya=o(v,zt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=Ri[t.L])*t.R,p=p/2*t.B,t.sa=h,t.ta=f+d,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,f+=u,t.mb=c?h:null,t.nb=c?f:null,e(f+c<=t.Fc+t.Vb),Zt(t),i(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,!Ir){for(s=-255;255>=s;++s)Pr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)kr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Fr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Cr[255+s]=0>s?0:255<s?255:s;Ir=1}ar=ue,or=ae,lr=oe,ur=se,cr=le,sr=ie,hr=Je,fr=Xe,dr=Ze,pr=Qe,gr=Ke,mr=$e,vr=tn,br=en,yr=Ue,wr=We,xr=He,Lr=Ve,fi[0]=Ne,fi[1]=he,fi[2]=Le,fi[3]=Ae,fi[4]=Se,fi[5]=Pe,fi[6]=_e,fi[7]=ke,fi[8]=Ce,fi[9]=Fe,hi[0]=ve,hi[1]=de,hi[2]=pe,hi[3]=ge,hi[4]=be,hi[5]=ye,hi[6]=we,di[0]=De,di[1]=fe,di[2]=Ie,di[3]=je,di[4]=Me,di[5]=Be,di[6]=Ee,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,u=t;for(o=0;o<u.za;++o){var c=l,h=u,f=h.Ac,d=h.Bc+4*o,p=h.zc,g=h.ya[h.aa+o];if(h.Qa.Bb?g.$b=k(c,h.Pa.jb[0])?2+k(c,h.Pa.jb[2]):k(c,h.Pa.jb[1]):g.$b=0,h.kc&&(g.Ad=k(c,h.Bd)),g.Za=!k(c,145)+0,g.Za){var m=g.Ob,v=0;for(h=0;4>h;++h){var b,y=p[0+h];for(b=0;4>b;++b){y=li[f[d+b]][y];for(var w=oi[k(c,y[0])];0<w;)w=oi[2*w+k(c,y[w])];y=-w,f[d+b]=y}r(m,v,f,d,4),v+=4,p[0+h]=y}}else y=k(c,156)?k(c,128)?1:3:k(c,163)?2:0,g.Ob[0]=y,i(f,d,y,4),i(p,0,y,4);g.Dd=k(c,142)?k(c,114)?k(c,183)?1:3:2:0}if(u.m.Ka)return Jt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,c=(l=t).rb[l.sb-1],f=l.rb[l.sb+l.ja],o=l.ya[l.aa+l.ja],d=l.kc?o.Ad:0)c.la=f.la=0,o.Za||(c.Na=f.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var x,L;if(c=f,f=u,d=l.Pa.Xc,p=l.ya[l.aa+l.ja],g=l.pb[p.$b],h=p.ad,m=0,v=l.rb[l.sb-1],y=b=0,i(h,m,0,384),p.Za)var A=0,N=d[3];else{w=a(16);var S=c.Na+v.Na;if(S=ri(f,d[1],S,g.Eb,0,w,0),c.Na=v.Na=(0<S)+0,1<S)ar(w,0,h,m);else{var _=w[0]+3>>3;for(w=0;256>w;w+=16)h[m+w]=_}A=1,N=d[0]}var P=15&c.la,F=15&v.la;for(w=0;4>w;++w){var C=1&F;for(_=L=0;4>_;++_)P=P>>1|(C=(S=ri(f,N,S=C+(1&P),g.Sc,A,h,m))>A)<<7,L=L<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;P>>=4,F=F>>1|C<<7,b=(b<<8|L)>>>0}for(N=P,A=F>>4,x=0;4>x;x+=2){for(L=0,P=c.la>>4+x,F=v.la>>4+x,w=0;2>w;++w){for(C=1&F,_=0;2>_;++_)S=C+(1&P),P=P>>1|(C=0<(S=ri(f,d[2],S,g.Qc,0,h,m)))<<3,L=L<<2|(3<S?3:1<S?2:0!=h[m+0]),m+=16;P>>=2,F=F>>1|C<<5}y|=L<<4*x,N|=P<<4<<x,A|=(240&F)<<x}c.la=N,v.la=A,p.Hc=b,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(b|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[o.$b][o.Za],l.wa[l.Y+l.ja].La|=!d),u.Ka)return Jt(t,7,"Premature end-of-file encountered.")}if(Zt(t),l=n,u=1,o=(s=t).D,c=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=c,Dn(s,o),u=1,o=(L=s.D).Nb,c=(y=Ri[s.L])*s.R,f=y/2*s.B,w=16*o*s.R,_=8*o*s.B,d=s.sa,p=s.ta-c+w,g=s.qa,h=s.ra-f+_,m=s.Ha,v=s.Ia-f+_,F=0==(P=L.M),b=P>=s.Va-1,2==s.Aa&&Dn(s,L),L.uc)for(C=(S=s).D.M,e(S.D.uc),L=S.yb;L<S.Hb;++L){A=L,N=C;var I=(j=(z=S).D).Nb;x=z.R;var j=j.wa[j.Y+A],O=z.sa,D=z.ta+16*I*x+16*A,B=j.dd,M=j.tc;if(0!=M)if(e(3<=M),1==z.L)0<A&&wr(O,D,x,M+4),j.La&&Lr(O,D,x,M),0<N&&yr(O,D,x,M+4),j.La&&xr(O,D,x,M);else{var E=z.B,T=z.qa,R=z.ra+8*I*E+8*A,q=z.Ha,z=z.Ia+8*I*E+8*A;I=j.ld,0<A&&(fr(O,D,x,M+4,B,I),pr(T,R,q,z,E,M+4,B,I)),j.La&&(mr(O,D,x,M,B,I),br(T,R,q,z,E,M,B,I)),0<N&&(hr(O,D,x,M+4,B,I),dr(T,R,q,z,E,M+4,B,I)),j.La&&(gr(O,D,x,M,B,I),vr(T,R,q,z,E,M,B,I))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(L=16*P,P=16*(P+1),F?(l.y=s.sa,l.O=s.ta+w,l.f=s.qa,l.N=s.ra+_,l.ea=s.Ha,l.W=s.Ia+_):(L-=y,l.y=d,l.O=p,l.f=g,l.N=h,l.ea=m,l.W=v),b||(P-=y),P>l.o&&(P=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&L<P&&(l.J=fn(s,l,L,P-L),l.F=s.mb,null==l.F&&0==l.F.length)){u=Jt(s,3,"Could not decode alpha data.");break t}L<l.j&&(y=l.j-L,L=l.j,e(!(1&y)),l.O+=s.R*y,l.N+=s.B*(y>>1),l.W+=s.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),L<P&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=L-l.j,l.U=l.va-l.v,l.T=P-L,u=l.put(l))}o+1!=s.Ic||b||(r(s.sa,s.ta-c,d,p+16*s.R,c),r(s.qa,s.ra-f,g,h+8*s.B,f),r(s.Ha,s.Ia-f,m,v+8*s.B,f))}if(!u)return Jt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function te(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function ee(t,e,n,r,i,a){te(t,e,0,n,r+i),te(t,e,1,n,r+a),te(t,e,2,n,r-a),te(t,e,3,n,r-i)}function ne(t){return(20091*t>>16)+t}function re(t,e,n,r){var i,o=0,s=a(16);for(i=0;4>i;++i){var l=t[e+0]+t[e+8],u=t[e+0]-t[e+8],c=(35468*t[e+4]>>16)-ne(t[e+12]),h=ne(t[e+4])+(35468*t[e+12]>>16);s[o+0]=l+h,s[o+1]=u+c,s[o+2]=u-c,s[o+3]=l-h,o+=4,e++}for(i=o=0;4>i;++i)l=(t=s[o+0]+4)+s[o+8],u=t-s[o+8],c=(35468*s[o+4]>>16)-ne(s[o+12]),te(n,r,0,0,l+(h=ne(s[o+4])+(35468*s[o+12]>>16))),te(n,r,1,0,u+c),te(n,r,2,0,u-c),te(n,r,3,0,l-h),o++,r+=32}function ie(t,e,n,r){var i=t[e+0]+4,a=35468*t[e+4]>>16,o=ne(t[e+4]),s=35468*t[e+1]>>16;ee(n,r,0,i+o,t=ne(t[e+1]),s),ee(n,r,1,i+a,t,s),ee(n,r,2,i-a,t,s),ee(n,r,3,i-o,t,s)}function ae(t,e,n,r,i){re(t,e,n,r),i&&re(t,e+16,n,r+4)}function oe(t,e,n,r){or(t,e+0,n,r,1),or(t,e+32,n,r+128,1)}function se(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(n,r,e,i,t)}function le(t,e,n,r){t[e+0]&&ur(t,e+0,n,r),t[e+16]&&ur(t,e+16,n,r+4),t[e+32]&&ur(t,e+32,n,r+128),t[e+48]&&ur(t,e+48,n,r+128+4)}function ue(t,e,n,r){var i,o=a(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],l=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],c=t[e+0+i]-t[e+12+i];o[0+i]=s+l,o[8+i]=s-l,o[4+i]=c+u,o[12+i]=c-u}for(i=0;4>i;++i)s=(t=o[0+4*i]+3)+o[3+4*i],l=o[1+4*i]+o[2+4*i],u=o[1+4*i]-o[2+4*i],c=t-o[3+4*i],n[r+0]=s+l>>3,n[r+16]=c+u>>3,n[r+32]=s-l>>3,n[r+48]=c-u>>3,r+=64}function ce(t,e,n){var r,i=e-32,a=Dr,o=255-t[i-1];for(r=0;r<n;++r){var s,l=a,u=o+t[e-1];for(s=0;s<n;++s)t[e+s]=l[u+t[i+s]];e+=32}}function he(t,e){ce(t,e,4)}function fe(t,e){ce(t,e,8)}function de(t,e){ce(t,e,16)}function pe(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function ge(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function me(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function ve(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];me(r>>5,t,e)}function be(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];me(r>>4,t,e)}function ye(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];me(r>>4,t,e)}function we(t,e){me(128,t,e)}function xe(t,e,n){return t+2*e+n+2>>2}function Le(t,e){var n,i=e-32;for(i=new Uint8Array([xe(t[i-1],t[i+0],t[i+1]),xe(t[i+0],t[i+1],t[i+2]),xe(t[i+1],t[i+2],t[i+3]),xe(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function Ae(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],a=t[e-1+96];F(t,e+0,16843009*xe(t[e-1-32],n,r)),F(t,e+32,16843009*xe(n,r,i)),F(t,e+64,16843009*xe(r,i,a)),F(t,e+96,16843009*xe(i,a,a))}function Ne(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function Se(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+96]=xe(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=xe(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=xe(a,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=xe(o,a,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=xe(s,o,a),t[e+3+32]=t[e+2+0]=xe(l,s,o),t[e+3+0]=xe(u,l,s)}function _e(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],a=t[e+4-32],o=t[e+5-32],s=t[e+6-32],l=t[e+7-32];t[e+0+0]=xe(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=xe(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=xe(r,i,a),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=xe(i,a,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=xe(a,o,s),t[e+3+64]=t[e+2+96]=xe(o,s,l),t[e+3+96]=xe(s,l,l)}function Pe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1-32],o=t[e+0-32],s=t[e+1-32],l=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=a+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+u+1>>1,t[e+0+96]=xe(i,r,n),t[e+0+64]=xe(r,n,a),t[e+0+32]=t[e+1+96]=xe(n,a,o),t[e+1+32]=t[e+2+96]=xe(a,o,s),t[e+2+32]=t[e+3+96]=xe(o,s,l),t[e+3+32]=xe(s,l,u)}function ke(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],a=t[e+3-32],o=t[e+4-32],s=t[e+5-32],l=t[e+6-32],u=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+a+1>>1,t[e+3+0]=t[e+2+64]=a+o+1>>1,t[e+0+32]=xe(n,r,i),t[e+1+32]=t[e+0+96]=xe(r,i,a),t[e+2+32]=t[e+1+96]=xe(i,a,o),t[e+3+32]=t[e+2+96]=xe(a,o,s),t[e+3+64]=xe(o,s,l),t[e+3+96]=xe(s,l,u)}function Fe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+a+1>>1,t[e+1+0]=xe(n,r,i),t[e+3+0]=t[e+1+32]=xe(r,i,a),t[e+3+32]=t[e+1+64]=xe(i,a,a),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=a}function Ce(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],a=t[e-1+96],o=t[e-1-32],s=t[e+0-32],l=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=a+i+1>>1,t[e+3+0]=xe(s,l,u),t[e+2+0]=xe(o,s,l),t[e+1+0]=t[e+3+32]=xe(n,o,s),t[e+1+32]=t[e+3+64]=xe(r,n,o),t[e+1+64]=t[e+3+96]=xe(i,r,n),t[e+1+96]=xe(a,i,r)}function Ie(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function je(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function Oe(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function De(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];Oe(r>>4,t,e)}function Be(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];Oe(r>>3,t,e)}function Me(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];Oe(r>>3,t,e)}function Ee(t,e){Oe(128,t,e)}function Te(t,e,n){var r=t[e-n],i=t[e+0],a=3*(i-r)+jr[1020+t[e-2*n]-t[e+n]],o=Or[112+(a+4>>3)];t[e-n]=Dr[255+r+Or[112+(a+3>>3)]],t[e+0]=Dr[255+i-o]}function Re(t,e,n,r){var i=t[e+0],a=t[e+n];return Br[255+t[e-2*n]-t[e-n]]>r||Br[255+a-i]>r}function qe(t,e,n,r){return 4*Br[255+t[e-n]-t[e+0]]+Br[255+t[e-2*n]-t[e+n]]<=r}function ze(t,e,n,r,i){var a=t[e-3*n],o=t[e-2*n],s=t[e-n],l=t[e+0],u=t[e+n],c=t[e+2*n],h=t[e+3*n];return 4*Br[255+s-l]+Br[255+o-u]>r?0:Br[255+t[e-4*n]-a]<=i&&Br[255+a-o]<=i&&Br[255+o-s]<=i&&Br[255+h-c]<=i&&Br[255+c-u]<=i&&Br[255+u-l]<=i}function Ue(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)qe(t,e+r,n,i)&&Te(t,e+r,n)}function We(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)qe(t,e+r*n,1,i)&&Te(t,e+r*n,1)}function He(t,e,n,r){var i;for(i=3;0<i;--i)Ue(t,e+=4*n,n,r)}function Ve(t,e,n,r){var i;for(i=3;0<i;--i)We(t,e+=4,n,r)}function Ge(t,e,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(ze(t,e,n,a,o))if(Re(t,e,n,s))Te(t,e,n);else{var l=t,u=e,c=n,h=l[u-2*c],f=l[u-c],d=l[u+0],p=l[u+c],g=l[u+2*c],m=27*(b=jr[1020+3*(d-f)+jr[1020+h-p]])+63>>7,v=18*b+63>>7,b=9*b+63>>7;l[u-3*c]=Dr[255+l[u-3*c]+b],l[u-2*c]=Dr[255+h+v],l[u-c]=Dr[255+f+m],l[u+0]=Dr[255+d-m],l[u+c]=Dr[255+p-v],l[u+2*c]=Dr[255+g-b]}e+=r}}function Ye(t,e,n,r,i,a,o,s){for(a=2*a+1;0<i--;){if(ze(t,e,n,a,o))if(Re(t,e,n,s))Te(t,e,n);else{var l=t,u=e,c=n,h=l[u-c],f=l[u+0],d=l[u+c],p=Or[112+(4+(g=3*(f-h))>>3)],g=Or[112+(g+3>>3)],m=p+1>>1;l[u-2*c]=Dr[255+l[u-2*c]+m],l[u-c]=Dr[255+h+g],l[u+0]=Dr[255+f-p],l[u+c]=Dr[255+d-m]}e+=r}}function Je(t,e,n,r,i,a){Ge(t,e,n,1,16,r,i,a)}function Xe(t,e,n,r,i,a){Ge(t,e,1,n,16,r,i,a)}function Ke(t,e,n,r,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4*n,n,1,16,r,i,a)}function $e(t,e,n,r,i,a){var o;for(o=3;0<o;--o)Ye(t,e+=4,1,n,16,r,i,a)}function Ze(t,e,n,r,i,a,o,s){Ge(t,e,i,1,8,a,o,s),Ge(n,r,i,1,8,a,o,s)}function Qe(t,e,n,r,i,a,o,s){Ge(t,e,1,i,8,a,o,s),Ge(n,r,1,i,8,a,o,s)}function tn(t,e,n,r,i,a,o,s){Ye(t,e+4*i,i,1,8,a,o,s),Ye(n,r+4*i,i,1,8,a,o,s)}function en(t,e,n,r,i,a,o,s){Ye(t,e+4,1,i,8,a,o,s),Ye(n,r+4,1,i,8,a,o,s)}function nn(){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 rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new B,this.vb=new B,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function sn(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=o(4,an),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function un(t,e,n,r,i,a,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)i[a+e]=t+n[r+e]&255,t=i[a+e]}function cn(t,e,n,r,i,a,o){var s;if(null==t)un(null,null,n,r,i,a,o);else for(s=0;s<o;++s)i[a+s]=t[e+s]+n[r+s]&255}function hn(t,e,n,r,i,a,o){if(null==t)un(null,null,n,r,i,a,o);else{var s,l=t[e+0],u=l,c=l;for(s=0;s<o;++s)u=c+(l=t[e+s])-u,c=n[r+s]+(-256&u?0>u?0:255:u)&255,u=l,i[a+s]=c}}function fn(t,n,i,o){var s=n.width,l=n.o;if(e(null!=t&&null!=n),0>i||0>=o||i+o>l)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new ln,(u=null==t.ga)||(u=n.width*n.o,e(0==t.Gb.length),t.Gb=a(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var c=t.Fa,h=t.P,f=t.qc,d=t.mb,p=t.nb,g=h+1,m=f-1,b=u.l;if(e(null!=c&&null!=d&&null!=n),mi[0]=null,mi[1]=un,mi[2]=cn,mi[3]=hn,u.ca=d,u.tb=p,u.c=n.width,u.i=n.height,e(0<u.c&&0<u.i),1>=f)n=0;else if(u.$a=c[h+0]>>0&3,u.Z=c[h+0]>>2&3,u.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||h)n=0;else if(b.put=dt,b.ac=ft,b.bc=pt,b.ma=u,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,u.$a)t:{e(1==u.$a),n=kt();e:for(;;){if(null==n){n=0;break t}if(e(null!=u),u.mc=n,n.c=u.c,n.i=u.i,n.l=u.l,n.l.ma=u,n.l.width=u.c,n.l.height=u.i,n.a=0,v(n.m,c,g,m),!Ft(u.c,u.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&At(n.s)?(u.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=a(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(u.ic=0,n=Ct(n,u.c)),!n)break e;n=1;break t}u.mc=null,n=0}else n=m>=u.c*u.i;u=!n}if(u)return null;1!=t.ga.Lc?t.Ga=0:o=l-i}e(null!=t.ga),e(i+o<=l);t:{if(n=(c=t.ga).c,l=c.l.o,0==c.$a){if(g=t.rc,m=t.Vc,b=t.Fa,h=t.P+1+i*n,f=t.mb,d=t.nb+i*n,e(h<=t.P+t.qc),0!=c.Z)for(e(null!=mi[c.Z]),u=0;u<o;++u)mi[c.Z](g,m,b,h,f,d,n),g=f,m=d,d+=n,h+=n;else for(u=0;u<o;++u)r(f,d,b,h,n),g=f,m=d,d+=n,h+=n;t.rc=g,t.Vc=m}else{if(e(null!=c.mc),n=i+o,e(null!=(u=c.mc)),e(n<=u.i),u.C>=n)n=1;else if(c.ic||vn(),c.ic){c=u.V,g=u.Ba,m=u.c;var y=u.i,w=(b=1,h=u.$/m,f=u.$%m,d=u.m,p=u.s,u.$),x=m*y,L=m*n,N=p.wc,_=w<L?wt(p,f,h):null;e(w<=x),e(n<=y),e(At(p));e:for(;;){for(;!d.h&&w<L;){if(f&N||(_=wt(p,f,h)),e(null!=_),S(d),256>(y=bt(_.G[0],_.H[0],d)))c[g+w]=y,++w,++f>=m&&(f=0,++h<=n&&!(h%16)&&St(u,h));else{if(!(280>y)){b=0;break e}y=mt(y-256,d);var P,k=bt(_.G[4],_.H[4],d);if(S(d),!(w>=(k=vt(m,k=mt(k,d)))&&x-w>=y)){b=0;break e}for(P=0;P<y;++P)c[g+w+P]=c[g+w+P-k];for(w+=y,f+=y;f>=m;)f-=m,++h<=n&&!(h%16)&&St(u,h);w<L&&f&N&&(_=wt(p,f,h))}e(d.h==A(d))}St(u,h>n?n:h);break e}!b||d.h&&w<x?(b=0,u.a=d.h?5:3):u.$=w,n=b}else n=_t(u,u.V,u.Ba,u.c,u.i,n,It);if(!n){o=0;break t}}i+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+i*s}function dn(t,e,n,r,i,a){for(;0<i--;){var o,s=t,l=e+(n?1:0),u=t,c=e+(n?0:3);for(o=0;o<r;++o){var h=u[c+4*o];255!=h&&(h*=32897,s[l+4*o+0]=s[l+4*o+0]*h>>23,s[l+4*o+1]=s[l+4*o+1]*h>>23,s[l+4*o+2]=s[l+4*o+2]*h>>23)}e+=a}}function pn(t,e,n,r,i){for(;0<r--;){var a;for(a=0;a<n;++a){var o=t[e+2*a+0],s=15&(u=t[e+2*a+1]),l=4369*s,u=(240&u|u>>4)*l>>16;t[e+2*a+0]=(240&o|o>>4)*l>>16&240|(15&o|o<<4)*l>>16>>4&15,t[e+2*a+1]=240&u|s}e+=i}}function gn(t,e,n,r,i,a,o,s){var l,u,c=255;for(u=0;u<i;++u){for(l=0;l<r;++l){var h=t[e+l];a[o+4*l]=h,c&=h}e+=n,o+=s}return 255!=c}function mn(t,e,n,r,i){var a;for(a=0;a<i;++a)n[r+a]=t[e+a]>>8}function vn(){Ar=dn,Nr=pn,Sr=gn,_r=mn}function bn(n,r,i){t[n]=function(t,n,a,o,s,l,u,c,h,f,d,p,g,m,v,b,y){var w,x=y-1>>1,L=s[l+0]|u[c+0]<<16,A=h[f+0]|d[p+0]<<16;e(null!=t);var N=3*L+A+131074>>2;for(r(t[n+0],255&N,N>>16,g,m),null!=a&&(N=3*A+L+131074>>2,r(a[o+0],255&N,N>>16,v,b)),w=1;w<=x;++w){var S=s[l+w]|u[c+w]<<16,_=h[f+w]|d[p+w]<<16,P=L+S+A+_+524296,k=P+2*(S+A)>>3;N=k+L>>1,L=(P=P+2*(L+_)>>3)+S>>1,r(t[n+2*w-1],255&N,N>>16,g,m+(2*w-1)*i),r(t[n+2*w-0],255&L,L>>16,g,m+(2*w-0)*i),null!=a&&(N=P+A>>1,L=k+_>>1,r(a[o+2*w-1],255&N,N>>16,v,b+(2*w-1)*i),r(a[o+2*w+0],255&L,L>>16,v,b+(2*w+0)*i)),L=S,A=_}1&y||(N=3*L+A+131074>>2,r(t[n+y-1],255&N,N>>16,g,m+(y-1)*i),null!=a&&(N=3*A+L+131074>>2,r(a[o+y-1],255&N,N>>16,v,b+(y-1)*i)))}}function yn(){vi[Mr]=bi,vi[Er]=wi,vi[Tr]=yi,vi[Rr]=xi,vi[qr]=Li,vi[zr]=Ai,vi[Ur]=Ni,vi[Wr]=wi,vi[Hr]=xi,vi[Vr]=Li,vi[Gr]=Ai}function wn(t){return t&~Ci?0>t?0:255:t>>Fi}function xn(t,e){return wn((19077*t>>8)+(26149*e>>8)-14234)}function Ln(t,e,n){return wn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function An(t,e){return wn((19077*t>>8)+(33050*e>>8)-17685)}function Nn(t,e,n,r,i){r[i+0]=xn(t,n),r[i+1]=Ln(t,e,n),r[i+2]=An(t,e)}function Sn(t,e,n,r,i){r[i+0]=An(t,e),r[i+1]=Ln(t,e,n),r[i+2]=xn(t,n)}function _n(t,e,n,r,i){var a=Ln(t,e,n);e=a<<3&224|An(t,e)>>3,r[i+0]=248&xn(t,n)|a>>5,r[i+1]=e}function Pn(t,e,n,r,i){var a=240&An(t,e)|15;r[i+0]=240&xn(t,n)|Ln(t,e,n)>>4,r[i+1]=a}function kn(t,e,n,r,i){r[i+0]=255,Nn(t,e,n,r,i+1)}function Fn(t,e,n,r,i){Sn(t,e,n,r,i),r[i+3]=255}function Cn(t,e,n,r,i){Nn(t,e,n,r,i),r[i+3]=255}function Vt(t,e){return 0>t?0:t>e?e:t}function In(e,n,r){t[e]=function(t,e,i,a,o,s,l,u,c){for(var h=u+(-2&c)*r;u!=h;)n(t[e+0],i[a+0],o[s+0],l,u),n(t[e+1],i[a+0],o[s+0],l,u+r),e+=2,++a,++s,u+=2*r;1&c&&n(t[e+0],i[a+0],o[s+0],l,u)}}function jn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function On(t,e,n,r,i){switch(t>>>30){case 3:or(e,n,r,i,0);break;case 2:sr(e,n,r,i);break;case 1:ur(e,n,r,i)}}function Dn(t,e){var n,a,o=e.M,s=e.Nb,l=t.oc,u=t.pc+40,c=t.oc,h=t.pc+584,f=t.oc,d=t.pc+600;for(n=0;16>n;++n)l[u+32*n-1]=129;for(n=0;8>n;++n)c[h+32*n-1]=129,f[d+32*n-1]=129;for(0<o?l[u-1-32]=c[h-1-32]=f[d-1-32]=129:(i(l,u-32-1,127,21),i(c,h-32-1,127,9),i(f,d-32-1,127,9)),a=0;a<t.za;++a){var p=e.ya[e.aa+a];if(0<a){for(n=-1;16>n;++n)r(l,u+32*n-4,l,u+32*n+12,4);for(n=-1;8>n;++n)r(c,h+32*n-4,c,h+32*n+4,4),r(f,d+32*n-4,f,d+32*n+4,4)}var g=t.Gd,m=t.Hd+a,v=p.ad,b=p.Hc;if(0<o&&(r(l,u-32,g[m].y,0,16),r(c,h-32,g[m].f,0,8),r(f,d-32,g[m].ea,0,8)),p.Za){var y=l,w=u-32+16;for(0<o&&(a>=t.za-1?i(y,w,g[m].y[15],4):r(y,w,g[m+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,b<<=2)y=l,w=u+Ti[n],fi[p.Ob[n]](y,w),On(b,v,16*+n,y,w)}else if(y=jn(a,o,p.Ob[0]),hi[y](l,u),0!=b)for(n=0;16>n;++n,b<<=2)On(b,v,16*+n,l,u+Ti[n]);for(n=p.Gc,y=jn(a,o,p.Dd),di[y](c,h),di[y](f,d),b=v,y=c,w=h,255&(p=n>>0)&&(170&p?lr(b,256,y,w):cr(b,256,y,w)),p=f,b=d,255&(n>>=8)&&(170&n?lr(v,320,p,b):cr(v,320,p,b)),o<t.Ub-1&&(r(g[m].y,0,l,u+480,16),r(g[m].f,0,c,h+224,8),r(g[m].ea,0,f,d+224,8)),n=8*s*t.B,g=t.sa,m=t.ta+16*a+16*s*t.R,v=t.qa,p=t.ra+8*a+n,b=t.Ha,y=t.Ia+8*a+n,n=0;16>n;++n)r(g,m+n*t.R,l,u+32*n,16);for(n=0;8>n;++n)r(v,p+n*t.B,c,h+32*n,8),r(b,y+n*t.B,f,d+32*n,8)}}function Bn(t,r,i,a,o,s,l,u,c){var h=[0],f=[0],d=0,p=null!=c?c.kd:0,g=null!=c?c:new rn;if(null==t||12>i)return 7;g.data=t,g.w=r,g.ha=i,r=[r],i=[i],g.gb=[g.gb];t:{var m=r,b=i,y=g.gb;if(e(null!=t),e(null!=b),e(null!=y),y[0]=0,12<=b[0]&&!n(t,m[0],"RIFF")){if(n(t,m[0]+8,"WEBP")){y=3;break t}var w=j(t,m[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>b[0]-8){y=7;break t}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var L=t;b=r,y=i;var A=h,N=f,S=m=[0];if((k=d=[d])[0]=0,8>y[0])y=7;else{if(!n(L,b[0],"VP8X")){if(10!=j(L,b[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var _=j(L,b[0]+8),P=1+I(L,b[0]+12);if(2147483648<=P*(L=1+I(L,b[0]+15))){y=3;break t}null!=S&&(S[0]=_),null!=A&&(A[0]=P),null!=N&&(N[0]=L),b[0]+=18,y[0]-=18,k[0]=1}y=0}}if(d=d[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=b),null!=u&&(u[0]=0),l=h[0],m=f[0],d&&b&&null==c){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!n(t,r[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{_=t,y=r,w=i;var k=g.gb;A=g.na,N=g.P,S=g.Sa,P=22,e(null!=_),e(null!=w),L=y[0];var F=w[0];for(e(null!=A),e(null!=S),A[0]=null,N[0]=null,S[0]=0;;){if(y[0]=L,w[0]=F,8>F){y=7;break t}var C=j(_,L+4);if(4294967286<C){y=3;break t}var O=8+C+1&-2;if(P+=O,0<k&&P>k){y=3;break t}if(!n(_,L,"VP8 ")||!n(_,L,"VP8L")){y=0;break t}if(F[0]<O){y=7;break t}n(_,L,"ALPH")||(A[0]=_,N[0]=L+8,S[0]=C),L+=O,F-=O}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(k=t,y=r,w=i,A=g.gb[0],N=g.Ja,S=g.xa,_=y[0],L=!n(k,_,"VP8 "),P=!n(k,_,"VP8L"),e(null!=k),e(null!=w),e(null!=N),e(null!=S),8>w[0])y=7;else{if(L||P){if(k=j(k,_+4),12<=A&&k>A-12){y=3;break t}if(p&&k>w[0]-8){y=7;break t}N[0]=k,y[0]+=8,w[0]-=8,S[0]=P}else S[0]=5<=w[0]&&47==k[_+0]&&!(k[_+4]>>5),N[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],r=r[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||b||(u[0]=g.xa?2:1),l=[l],m=[m],g.xa){if(5>i){y=7;break}u=l,p=m,b=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(w=[0],k=[0],A=[0],v(N=new x,t,r,i),gt(N,w,k,A)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=k[0]),null!=b&&(b[0]=A[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=m,null==t||10>i||!Xt(t,r+3,i-3)?t=0:(p=t[r+0]|t[r+1]<<8|t[r+2]<<16,b=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!b||!t?t=0:(l&&(l[0]=b),u&&(u[0]=t),t=1))}if(!t)return 3;if(l=l[0],m=m[0],d&&(h[0]!=l||f[0]!=m))return 3;null!=c&&(c[0]=g,c.offset=r-c.w,e(4294967286>r-c.w),e(c.offset==c.ha-i));break}return 0==y||7==y&&d&&null==c?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=a&&(a[0]=l),null!=o&&(o[0]=m),0):y}function Mn(t,e,n){var r=e.width,i=e.height,a=0,o=0,s=r,l=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,l=t.bd,a=t.v,o=t.j,11>n||(a&=-2,o&=-2),0>a||0>o||0>=s||0>=l||a+s>r||o+l>i))return 0;if(e.v=a,e.j=o,e.va=a+s,e.o=o+l,e.U=s,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!M(s,l,n=[t.ib],a=[t.hb]))return 0;e.ib=n[0],e.hb=a[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function En(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 Tn(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,o=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=i||0>=o||s+i>t||l+o>e)return 2;t=i,e=o}if(n.da){if(!M(t,e,i=[n.ib],o=[n.hb]))return 2;t=i[0],e=o[0]}}r.width=t,r.height=e;t:{var u=r.width,c=r.height;if(t=r.S,0>=u||0>=c||!(t>=Mr&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=o=i=e=0;var h=(l=u*Ui[t])*c;if(11>t||(o=(c+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*c)),null==(c=a(h+2*o+s))){t=1;break t}r.sd=c,11>t?((u=r.f.RGBA).eb=c,u.fb=0,u.A=l,u.size=h):((u=r.f.kb).y=c,u.O=0,u.fa=l,u.Fd=h,u.f=c,u.N=0+h,u.Ab=e,u.Cd=o,u.ea=c,u.W=0+h+o,u.Db=e,u.Ed=o,12==t&&(u.F=c,u.J=0+h+2*o),u.Tc=s,u.lb=i)}if(e=1,i=r.S,o=r.width,s=r.height,i>=Mr&&13>i)if(11>i)t=r.f.RGBA,e&=(l=Math.abs(t.A))*(s-1)+o<=t.size,e&=l>=o*Ui[i],e&=null!=t.eb;else{t=r.f.kb,l=(o+1)/2,h=(s+1)/2,u=Math.abs(t.fa),c=Math.abs(t.Ab);var f=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+o;e&=u*(s-1)+o<=t.Fd,e&=c*(h-1)+l<=t.Cd,e=(e&=f*(h-1)+l<=t.Ed)&u>=o&c>=l&f>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=o,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=En(r)),t}var Rn=64,qn=[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,Wn=8,Hn=[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];R("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 z(z(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return z(t,e[n-1])},t.Predictor7=function(t,e,n){return z(t,e[n+0])},t.Predictor8=function(t,e,n){return z(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return z(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return z(z(t,e[n-1]),z(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=H(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+H(r>>16&255,t>>16&255,e>>16&255)+H(r>>8&255,t>>8&255,e>>8&255)+H(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(U((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|U((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|U((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|U((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(W((t=z(t,e[n+0]))>>24&255,r>>24&255)<<24|W(t>>16&255,r>>16&255)<<16|W(t>>8&255,r>>8&255)<<8|W(t>>0&255,r>>0&255))>>>0};var Vn=t.PredictorAdd0;t.PredictorAdd1=V,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var Gn=t.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Yn,Jn=t.ColorIndexInverseTransform,Xn=t.MapARGB,Kn=t.VP8LColorIndexInverseTransformAlpha,$n=t.MapAlpha,Zn=t.VP8LPredictorsAdd=[];Zn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Qn,tr,er,nr,rr,ir,ar,or,sr,lr,ur,cr,hr,fr,dr,pr,gr,mr,vr,br,yr,wr,xr,Lr,Ar,Nr,Sr,_r,Pr=a(511),kr=a(2041),Fr=a(225),Cr=a(767),Ir=0,jr=kr,Or=Fr,Dr=Cr,Br=Pr,Mr=0,Er=1,Tr=2,Rr=3,qr=4,zr=5,Ur=6,Wr=7,Hr=8,Vr=9,Gr=10,Yr=[2,3,7],Jr=[3,3,11],Xr=[280,256,256,256,40],Kr=[0,1,1,1,0],$r=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zr=[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],Qr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[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],ni=[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],ri=null,ii=[[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]],ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[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]]]],li=[[[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]]],ui=[[[[255,255,255,255,255,255,255,255,255,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]]]],ci=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],hi=[],fi=[],di=[],pi=1,gi=2,mi=[],vi=[];bn("UpsampleRgbLinePair",Nn,3),bn("UpsampleBgrLinePair",Sn,3),bn("UpsampleRgbaLinePair",Cn,4),bn("UpsampleBgraLinePair",Fn,4),bn("UpsampleArgbLinePair",kn,4),bn("UpsampleRgba4444LinePair",Pn,2),bn("UpsampleRgb565LinePair",_n,2);var bi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,wi=t.UpsampleRgbaLinePair,xi=t.UpsampleBgraLinePair,Li=t.UpsampleArgbLinePair,Ai=t.UpsampleRgba4444LinePair,Ni=t.UpsampleRgb565LinePair,Si=16,_i=1<<Si-1,Pi=-227,ki=482,Fi=6,Ci=(256<<Fi)-1,Ii=0,ji=a(256),Oi=a(256),Di=a(256),Bi=a(256),Mi=a(ki-Pi),Ei=a(ki-Pi);In("YuvToRgbRow",Nn,3),In("YuvToBgrRow",Sn,3),In("YuvToRgbaRow",Cn,4),In("YuvToBgraRow",Fn,4),In("YuvToArgbRow",kn,4),In("YuvToRgba4444Row",Pn,2),In("YuvToRgb565Row",_n,2);var Ti=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ri=[0,2,8],qi=[8,7,6,4,4,2,2,2,1,1,1,1],zi=1;this.WebPDecodeRGBA=function(t,n,r,i,a){var o=Er,s=new nn,l=new ot;s.ba=l,l.S=o,l.width=[l.width],l.height=[l.height];var u=l.width,c=l.height,h=new st;if(null==h||null==t)var f=2;else e(null!=h),f=Bn(t,n,r,h.width,h.height,h.Pd,h.Qd,h.format,null);if(0!=f?u=0:(null!=u&&(u[0]=h.width[0]),null!=c&&(c[0]=h.height[0]),u=1),u){l.width=l.width[0],l.height=l.height[0],null!=i&&(i[0]=l.width),null!=a&&(a[0]=l.height);t:{if(i=new Gt,(a=new rn).data=t,a.w=n,a.ha=r,a.kd=1,n=[0],e(null!=a),(0==(t=Bn(a.data,a.w,a.ha,null,null,null,n,null,a))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),i.data=a.data,i.w=a.w+a.offset,i.ha=a.ha-a.offset,i.put=dt,i.ac=ft,i.bc=pt,i.ma=s,a.xa){if(null==(t=kt())){s=1;break t}if(function(t,n){var r=[0],i=[0],a=[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),!gt(t.m,r,i,a)){t.a=3;break e}if(t.xb=gi,n.width=r[0],n.height=i[0],!Ft(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(n=Tn(i.width,i.height,s.Oa,s.ba))){e:{i=t;n:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(r=i.l)),e(null!=(a=r.ma)),0!=i.xb){if(i.ca=a.ba,i.tb=a.tb,e(null!=i.ca),!Mn(a.Oa,r,Rr)){i.a=2;break n}if(!Ct(i,r.width))break n;if(r.da)break n;if((r.da||rt(i.ca.S))&&vn(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&vn()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!O(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!_t(i,i.V,i.Ba,i.c,i.i,r.o,Lt))break n;a.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(n=t.a)}else n=t.a}else{if(null==(t=new Yt)){s=1;break t}if(t.Fa=a.na,t.P=a.P,t.qc=a.Sa,Kt(t,i)){if(0==(n=Tn(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,r=s.Oa,e(null!=(a=t)),null!=r){if(0<(u=0>(u=r.Md)?0:100<u?255:255*u/100)){for(c=h=0;4>c;++c)12>(f=a.pb[c]).lc&&(f.ia=u*qi[0>f.lc?0:f.lc]>>3),h|=f.ia;h&&(alert("todo:VP8InitRandom"),a.ia=1)}a.Ga=r.Id,100<a.Ga?a.Ga=100:0>a.Ga&&(a.Ga=0)}Qt(t,i)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=En(s.ba))}s=n}o=0!=s?null:11>o?l.f.RGBA.eb:l.f.kb.y}else o=null;return o};var Ui=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}function c(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function h(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var f=[0],d=[0],p=[],g=new l,m=t,v=function(t,e){var n={},r=0,i=!1,a=0,o=0;if(n.frames=[],!function(t,e,n,r){for(var i=0;i<4;i++)if(t[e+i]!="RIFF".charCodeAt(i))return!0;return!1}(t,e)){var s,l;for(h(t,e+=4),e+=8;e<t.length;){var f=u(t,e),d=h(t,e+=4);e+=4;var p=d+(1&d);switch(f){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(v=n.frames[r]).src_off=i?o:e-8,v.src_size=a+d+8,r++,i&&(i=!1,a=0,o=0);break;case"VP8X":(v=n.header={}).feature_flags=t[e];var g=e+4;v.canvas_width=1+c(t,g),g+=3,v.canvas_height=1+c(t,g),g+=3;break;case"ALPH":i=!0,a=p+8,o=e-8;break;case"ANIM":(v=n.header).bgcolor=h(t,e),g=e+4,v.loop_count=(s=t)[(l=g)+0]<<0|s[l+1]<<8,g+=2;break;case"ANMF":var m,v;(v=n.frames[r]={}).offset_x=2*c(t,e),e+=3,v.offset_y=2*c(t,e),e+=3,v.width=1+c(t,e),e+=3,v.height=1+c(t,e),e+=3,v.duration=c(t,e),e+=3,m=t[e++],v.dispose=1&m,v.blend=m>>1&1}"ANMF"!=f&&(e+=p)}return n}}(m,0);v.response=m,v.rgbaoutput=!0,v.dataurl=!1;var b=v.header?v.header:null,y=v.frames?v.frames:null;if(b){b.loop_counter=b.loop_count,f=[b.canvas_height],d=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],L=g.WebPDecodeRGBA(m,x.src_off,x.src_size,d,f);x.rgba=L,x.imgwidth=d[0],x.imgheight=f[0];for(var A=0;A<d[0]*f[0]*4;A++)p[A]=L[A];return this.width=d,this.height=f,this.data=p,this}!function(t){var e=function(e,r,l,u){var c=4,h=a;switch(u){case t.image_compression.FAST:c=1,h=i;break;case t.image_compression.MEDIUM:c=6,h=o;break;case t.image_compression.SLOW:c=9,h=s}var f=W(e=n(e,r,l,h),{level:c});return t.__addimage__.arrayBufferToBinaryString(f)},n=function(t,e,n,r){for(var i,a,o,s=t.length/e,l=new Uint8Array(t.length+s),h=u(),f=0;f<s;f+=1){if(o=f*e,i=t.subarray(o,o+e),r)l.set(r(i,n,a),o+f);else{for(var d,p=h.length,g=[];d<p;d+=1)g[d]=h[d](i,n,a);var m=c(g.concat());l.set(g[m],o+f)}a=i}return l},r=function(t){var e=Array.apply([],t);return e.unshift(0),e},i=function(t,e){var n,r=[],i=t.length;r[0]=1;for(var a=0;a<i;a+=1)n=t[a-e]||0,r[a+1]=t[a]-n+256&255;return r},a=function(t,e,n){var r,i=[],a=t.length;i[0]=2;for(var o=0;o<a;o+=1)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},o=function(t,e,n){var r,i,a=[],o=t.length;a[0]=3;for(var s=0;s<o;s+=1)r=t[s-e]||0,i=n&&n[s]||0,a[s+1]=t[s]+256-(r+i>>>1)&255;return a},s=function(t,e,n){var r,i,a,o,s=[],u=t.length;s[0]=4;for(var c=0;c<u;c+=1)r=t[c-e]||0,i=n&&n[c]||0,a=n&&n[c-e]||0,o=l(r,i,a),s[c+1]=t[c]-o+256&255;return s},l=function(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),a=Math.abs(t+e-n-n);return r<=i&&r<=a?t:i<=a?e:n},u=function(){return[r,i,a,o,s]},c=function(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))};t.processPNG=function(n,r,i,a){var o,s,l,u,c,h,f,d,p,g,m,v,b,y,w,x=this.decode.FLATE_DECODE,L="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(l=new Ee(n)).imgData,s=l.bits,o=l.colorSpace,c=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits){p=(d=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*l.colors),g=new Uint8Array(p);var A,N=l.pixelBitlength-l.bits;for(y=0,w=0;y<p;y++){for(b=d[y],A=0;A<N;)m[w++]=b>>>A&255,A+=l.bits;g[y]=b>>>A&255}}if(16===l.bits){p=(d=new Uint32Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*(32/l.pixelBitlength)*l.colors),g=new Uint8Array(p*(32/l.pixelBitlength)),v=l.colors>1,y=0,w=0;for(var S=0;y<p;)b=d[y++],m[w++]=b>>>0&255,v&&(m[w++]=b>>>16&255,b=d[y++],m[w++]=b>>>0&255),g[S++]=b>>>16&255;s=8}a!==t.image_compression.NONE?(n=e(m,l.width*l.colors,l.colors,a),f=e(g,l.width,1,a)):(n=m,f=g,x=void 0)}if(3===l.colorType&&(o=this.color_spaces.INDEXED,h=l.palette,l.transparency.indexed)){var _=l.transparency.indexed,P=0;for(y=0,p=_.length;y<p;++y)P+=_[y];if((P/=255)==p-1&&-1!==_.indexOf(0))u=[_.indexOf(0)];else if(P!==p){for(d=l.decodePixels(),g=new Uint8Array(d.length),y=0,p=d.length;y<p;y++)g[y]=_[d[y]];f=e(g,l.width,1)}}var k=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(a);return x===this.decode.FLATE_DECODE&&(L="/Predictor "+k+" "),L+="/Colors "+c+" /BitsPerComponent "+s+" /Columns "+l.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:i,data:n,index:r,filter:x,decodeParameters:L,transparency:u,palette:h,sMask:f,predictor:k,width:l.width,height:l.height,bitsPerComponent:s,colorSpace:o}}}}(Nt.API),function(t){t.processGIF89A=function(e,n,r,i){var a=new Te(e),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:o,height:s},c=new qe(100).encode(u,100);return t.processJPEG.call(this,c,n,r,i)},t.processGIF87A=t.processGIF89A}(Nt.API),ze.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),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ze.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){Y.log("bit decode error:"+t)}},ze.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>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)}},ze.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var a=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=a>>4,l=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},ze.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,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}0!==t&&(this.pos+=4-t)}},ze.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,s=(a>>5&e)/e*255|0,l=(a>>10&e)/e*255|0,u=a>>15?255:0,c=r*this.width*4+4*i;this.data[c]=l,this.data[c+1]=s,this.data[c+2]=o,this.data[c+3]=u}this.pos+=t}},ze.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){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,u=(o>>11)/e*255|0,c=i*this.width*4+4*a;this.data[c]=u,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=255}this.pos+=t}},ze.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 r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},ze.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 r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},ze.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var a=new ze(e,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new qe(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Nt.API),Ue.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var a=new Ue(e,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new qe(100).encode(l,100);return t.processJPEG.call(this,u,n,r,i)}}(Nt.API),Nt.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,u=0;u<i;u+=4){var c=r[u],h=r[u+1],f=r[u+2],d=r[u+3];a[s++]=c,a[s++]=h,a[s++]=f,o[l++]=d}var p=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:p,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Nt.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},je=Nt.API,Oe=je.getCharWidthsArray=function(t,e){var n,i,a=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),l=e.widths?e.widths:a.metadata.Unicode.widths,u=l.fof?l.fof:1,c=e.kerning?e.kerning:a.metadata.Unicode.kerning,h=c.fof?c.fof:1,f=!1!==e.doKerning,d=0,p=t.length,g=0,m=l[0]||u,v=[];for(n=0;n<p;n++)i=t.charCodeAt(n),"function"==typeof a.metadata.widthOfString?v.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(i))+s*(1e3/o)||0)/1e3):(d=f&&"object"===(0,r.A)(c[i])&&!isNaN(parseInt(c[i][g],10))?c[i][g]/h:0,v.push((l[i]||m)/u+d)),g=i;return v},De=je.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return je.processArabic&&(t=je.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:Oe.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Be=function(t,e,n,r){for(var i=[],a=0,o=t.length,s=0;a!==o&&s+e[a]<n;)s+=e[a],a++;i.push(t.slice(0,a));var l=a;for(s=0;a!==o;)s+e[a]>r&&(i.push(t.slice(l,a)),s=0,l=a),s+=e[a],a++;return l!==a&&i.push(t.slice(l,a)),i},Me=function(t,e,n){n||(n={});var r,i,a,o,s,l,u,c=[],h=[c],f=n.textIndent||0,d=0,p=0,g=t.split(" "),m=Oe.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?g[0].length+2:n.lineIndent||0){var v=Array(l).join(" "),b=[];g.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])})),g=b,l=De.apply(this,[v,n])}for(a=0,o=g.length;a<o;a++){var y=0;if(r=g[a],l&&"\n"==r[0]&&(r=r.substr(1),y=1),f+d+(p=(i=Oe.apply(this,[r,n])).reduce((function(t,e){return t+e}),0))>e||y){if(p>e){for(s=Be.apply(this,[r,i,e-(f+d),e]),c.push(s.shift()),c=[s.pop()];s.length;)h.push([s.shift()]);p=i.slice(r.length-(c[0]?c[0].length:0)).reduce((function(t,e){return t+e}),0)}else c=[r];h.push(c),f=p+l,d=m}else c.push(r),f+=d+p,d=m}return u=l?function(t,e){return(e?v:"")+t.join(" ")}:function(t){return t.join(" ")},h.map(u)},je.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),a=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;a.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=n.lineIndent;var s,l,u=[];for(s=0,l=r.length;s<l;s++)u=u.concat(Me.apply(this,[r[s],o,a]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},i={},a=0;a<16;a++)n[e[a]]="0123456789abcdef"[a],i["0123456789abcdef"[a]]=e[a];var o=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var e,n,a,l,u=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=o(c).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof e)e<0?(a=o(e).slice(3),l="-"):(a=o(e).slice(2),l=""),a=l+a.slice(0,-1)+i[a.slice(-1)];else{if("object"!==(0,r.A)(e))throw new Error("Don't know what to do with value type "+(0,r.A)(e)+".");a=s(e)}u.push(n+a)}return u.push("}"),u.join("")},l=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,a,o={},s=1,l=o,u=[],c="",h="",f=t.length-1,d=1;d<f;d+=1)"'"==(a=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(a):"{"==a?(u.push([l,i]),l={},i=void 0):"}"==a?((r=u.pop())[0][r[1]]=l,i=void 0,l=r[0]):"-"==a?s=-1:void 0===i?n.hasOwnProperty(a)?(c+=n[a],i=parseInt(c,16)*s,s=1,c=""):c+=a:n.hasOwnProperty(a)?(h+=n[a],l[i]=parseInt(h,16)*s,s=1,i=void 0,h=""):h+=a;return o},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},h={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};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 r=c.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(Nt.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,a=n.instance;if(!i.isStandardFont){if(void 0===a)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===a.existsFileInVFS(i.postScriptName)?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e($(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(Nt),function(t){function e(){return(V.canvg?Promise.resolve(V.canvg):n.e(714).then(n.bind(n,6714))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}Nt.API.addSvgAsImage=function(t,n,r,i,a,o,s,l){if(isNaN(n)||isNaN(r))throw Y.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Y.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=a;var c=u.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return e().then((function(e){return e.fromString(c,t,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){f.addImage(u.toDataURL("image/jpeg",1),n,r,i,a,s,l)}))}}(),Nt.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 r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},Nt.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var i,a,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),u=[],c=0,h=0,f=0;function d(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=l.length;for(f=0;f<p;f+=1)n[l[f]].value=n[l[f]].defaultValue,n[l[f]].explicitSet=!1}if("object"===(0,r.A)(t))for(a in t)if(o=t[a],d(l,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(c=0;c<o.length;c+=1)if(i=!0,1===o[c].length&&"number"==typeof o[c][0])u.push(String(o[c]-1));else if(o[c].length>1){for(h=0;h<o[c].length;h+=1)"number"!=typeof o[c][h]&&(i=!1);!0===i&&u.push([o[c][0]-1,o[c][1]-1].join(" "))}n[a].value="["+u.join(" ")+"]"}else n[a].value=n[a].defaultValue;n[a].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},function(t){var e=function(){var t='<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>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),a=unescape(encodeURIComponent("</x:xmpmeta>")),o=n.length+r.length+i.length+e.length+a.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+a),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(Nt.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],a=[""],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==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return a.join("");n=n.toString(16),a.push(i[4-n.length],n)}return a.join("")},r=function(t){var e,n,r,i,a,o,s;for(a="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],o=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=n[o],r.length>=100&&(a+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">"));return r.length&&(a+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),a+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,a=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),u="",c=0;c<l.length;c++)u+=String.fromCharCode(l[c]);var h=a();o({data:u,addLength1:!0,objectId:h}),i("endobj");var f=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i("endobj");var d=a();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+bt(n.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var p=a();i("<<"),i("/Type /Font"),i("/BaseFont /"+bt(n.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=a(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+f+" 0 R"),i("/BaseFont /"+bt(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,a=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",u=0;u<s.length;u++)l+=String.fromCharCode(s[u]);var c=a();o({data:l,addLength1:!0,objectId:c}),i("endobj");var h=a();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var f=a();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+c+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+bt(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=a();for(var d=0;d<n.metadata.hmtx.widths.length;d++)n.metadata.hmtx.widths[d]=parseInt(n.metadata.hmtx.widths[d]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+bt(n.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,a=t.y,o=t.options||{},s=t.mutex||{},l=s.pdfEscape,u=s.activeFontKey,c=s.fonts,h=u,f="",d=0,p="",g=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:r,x:i,y:a,options:o,mutex:s};for(p=r,h=u,Array.isArray(r)&&(p=r[0]),d=0;d<p.length;d+=1)c[h].metadata.hasOwnProperty("cmap")&&(e=c[h].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?f+=p[d]:f+="";var m="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===g?m=l(f,h).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(m=n(f,c[h])),s.isHex=!0,{text:m,x:i,y:a,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var a=0;for(a=0;a<e.length;a+=1)Array.isArray(e[a])&&3===e[a].length?n.push([i(Object.assign({},r,{text:e[a][0]})).text,e[a][1],e[a][2]]):n.push(i(Object.assign({},r,{text:e[a]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(Nt),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}}(Nt.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,a,o,s,l,u=e,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[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]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=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)$/),m=!1,v=0;this.__bidiEngine__={};var b=function(t){var e=t.charCodeAt(),n=e>>8,r=d[n];return void 0!==r?u[256*r+(255&e)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},y=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},w=function(t,e,o,s){var l,u,c,h,f=e[s];switch(f){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(f="AN");break;case"AL":m=!0,f="R";break;case"WS":case"BN":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(l=o[s-1])&&"AN"!==l||"EN"!==(u=e[s+1])&&"AN"!==u?f="N":m&&(u="AN"),f=u===l?u:"N";break;case"ES":f="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]){f="EN";break}if(m){f="N";break}for(c=s+1,h=e.length;c<h&&"ET"===e[c];)c++;f=c<h&&"EN"===e[c]?"EN":"N";break;case"NSM":if(i&&!a){for(h=e.length,c=s+1;c<h&&"NSM"===e[c];)c++;if(c<h){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(l=e[c],p&&("R"===l||"AL"===l)){f="R";break}}}f=s<1||"B"===(l=e[s-1])?"N":o[s-1];break;case"B":m=!1,n=!0,f=v;break;case"S":r=!0,f="N"}return f},x=function(t,e,n){var r=t.split("");return n&&L(r,n,{hiLevel:v}),r.reverse(),e&&e.reverse(),r.join("")},L=function(t,e,i){var a,o,s,l,u,d=-1,p=t.length,g=0,y=[],x=v?h:c,L=[];for(m=!1,n=!1,r=!1,o=0;o<p;o++)L[o]=b(t[o]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,L,y,s),a=240&(g=x[u][f[y[s]]]),g&=15,e[s]=l=x[g][5],a>0)if(16===a){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(x[g][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=l;d=-1}"B"===L[s]&&(e[s]=0),i.hiLevel|=l}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=v;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=v}}(L,e,p)},A=function(t,e,r,i,a){if(!(a.hiLevel<t)){if(1===t&&1===v&&!n)return e.reverse(),void(r&&r.reverse());for(var o,s,l,u,c=e.length,h=0;h<c;){if(i[h]>=t){for(l=h+1;l<c&&i[l]>=t;)l++;for(u=h,s=l-1;u<s;u++,s--)o=e[u],e[u]=e[s],e[s]=o,r&&(o=r[u],r[u]=r[s],r[s]=o);h=l}h++}}},N=function(t,e,n){var r=t.split(""),i={hiLevel:v};return n||(n=[]),L(r,n,i),function(t,e,n){if(0!==n.hiLevel&&l)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=p.indexOf(t[i]))>=0&&(t[i]=p[r+1])}(r,n,i),A(2,r,e,n,i),A(1,r,e,n,i),r.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===a&&(a=y(t)),void 0===s&&(s=y(t))}(t,e),i||!o||s)if(i&&o&&a^s)v=a?1:0,t=x(t,e,n);else if(!i&&o&&s)v=a?1:0,t=N(t,e,n),t=x(t,e);else if(!i||a||o||s){if(i&&!o&&a^s)t=x(t,e),a?(v=0,t=N(t,e,n)):(v=1,t=N(t,e,n),t=x(t,e));else if(i&&a&&!o&&s)v=1,t=N(t,e,n),t=x(t,e);else if(!i&&!o&&a^s){var r=l;a?(v=1,t=N(t,e,n),v=0,l=!1,t=N(t,e,n),l=r):(v=0,t=N(t,e,n),t=x(t,e),v=1,l=!1,t=N(t,e,n),l=r,t=x(t,e))}}else v=0,t=N(t,e,n);else v=a?1:0,t=N(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,a=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,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var a=0;for(i=[],a=0;a<e.length;a+=1)"[object Array]"===Object.prototype.toString.call(e[a])?i.push([n.doBidiReorder(e[a][0]),e[a][1],e[a][2]]):i.push([n.doBidiReorder(e[a])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(Nt),Nt.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new He(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new cn(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new Ve(this.contents),this.head=new Je(this),this.name=new en(this),this.cmap=new Ke(this),this.toUnicode={},this.hhea=new $e(this),this.maxp=new nn(this),this.hmtx=new rn(this),this.post=new Qe(this),this.os2=new Ze(this),this.loca=new un(this),this.glyf=new on(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,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(e=r>>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===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,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 r,i,a,o;for(a=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=t.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return a*(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 We,He=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,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,a,o,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*a+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,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),Ve=function(){var t;function e(t){var e,n,r;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,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++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,r,i,a,o,s,l,u,c,h,f,d,p;for(p in f=Object.keys(e).length,s=Math.log(2),c=16*Math.floor(Math.log(f)/s),a=Math.floor(c/s),u=16*f-c,(r=new He).writeInt(this.scalarType),r.writeShort(f),r.writeShort(c),r.writeShort(a),r.writeShort(u),i=16*f,l=r.pos+i,o=null,d=[],e)for(h=e[p],r.writeString(p),r.writeInt(t(h)),r.writeInt(l),r.writeInt(h.length),d=d.concat(h),"head"===p&&(o=l),l+=h.length;l%4;)d.push(0),l++;return r.write(d),n=2981146554-t(r.data),r.pos=o+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=an.call(t);t.length%4;)t.push(0);for(r=new He(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),Ge={}.hasOwnProperty,Ye=function(t,e){for(var n in e)Ge.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};We=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 Je=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="head",e.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()},e.prototype.encode=function(t){var e;return(e=new He).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},e}(),Xe=function(){function t(t,e){var n,r,i,a,o,s,l,u,c,h,f,d,p,g,m,v,b;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),c=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(f=t.readUInt16(),h=f/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=h?e<h:e>h;s=0<=h?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:e>r;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=m=0,b=i.length;m<b;s=++m)for(g=i[s],n=v=d=p[s];d<=g?v<=g:v>=g;n=d<=g?++v:--v)0===u[s]?a=n+l[s]:0!==(a=o[u[s]/2+(n-d)-(h-s)]||0)&&(a+=l[s]),this.codeMap[n]=65535&a}t.pos=c}return t.encode=function(t,e){var n,r,i,a,o,s,l,u,c,h,f,d,p,g,m,v,b,y,w,x,L,A,N,S,_,P,k,F,C,I,j,O,D,B,M,E,T,R,q,z,U,W,H,V,G,Y;switch(F=new He,a=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),v={0:0},i={},C=0,D=a.length;C<D;C++)null==v[H=t[r=a[C]]]&&(v[H]=++p),i[r]={old:t[r],new:v[t[r]]},g[r]=v[t[r]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(g),{charMap:i,subtable:F.data,maxGlyphID:p+1};case"unicode":for(P=[],c=[],b=0,v={},n={},m=l=null,I=0,B=a.length;I<B;I++)null==v[w=t[r=a[I]]]&&(v[w]=++b),n[r]={old:w,new:v[w]},o=v[w]-r,null!=m&&o===l||(m&&c.push(m),P.push(r),l=o),m=r;for(m&&c.push(m),c.push(65535),P.push(65535),S=2*(N=P.length),A=2*Math.pow(Math.log(N)/Math.LN2,2),h=Math.log(A/2)/Math.LN2,L=2*N-A,s=[],x=[],f=[],d=j=0,M=P.length;j<M;d=++j){if(_=P[d],u=c[d],65535===_){s.push(0),x.push(0);break}if(_-(k=n[_].new)>=32768)for(s.push(0),x.push(2*(f.length+N-d)),r=O=_;_<=u?O<=u:O>=u;r=_<=u?++O:--O)f.push(n[r].new);else s.push(k-_),x.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*N+2*f.length),F.writeUInt16(0),F.writeUInt16(S),F.writeUInt16(A),F.writeUInt16(h),F.writeUInt16(L),U=0,E=c.length;U<E;U++)r=c[U],F.writeUInt16(r);for(F.writeUInt16(0),W=0,T=P.length;W<T;W++)r=P[W],F.writeUInt16(r);for(V=0,R=s.length;V<R;V++)o=s[V],F.writeUInt16(o);for(G=0,q=x.length;G<q;G++)y=x[G],F.writeUInt16(y);for(Y=0,z=f.length;Y<z;Y++)p=f[Y],F.writeUInt16(p);return{charMap:n,subtable:F.data,maxGlyphID:b+1}}},t}(),Ke=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new Xe(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=Xe.encode(t,e),(r=new He).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),$e=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="hhea",e.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()},e}(),Ze=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="OS/2",e.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()},e}(),Qe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r;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 i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),tn=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},en=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,a,o,s,l,u,c,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)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={},i=u=0,c=n.length;u<c;i=++u)r=n[i],t.pos=r.offset,l=t.readString(r.length),a=new tn(l,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(a);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]},e}(),nn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="maxp",e.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()},e}(),rn=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,a,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(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],e=a=0;0<=r?a<r:a>r;e=0<=r?++a:--a)s.push(this.widths.push(n));return s},e.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]}},e}(),an=[].slice,on=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,a,o,s,l,u,c;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,a=(o=new He(e.read(r))).readShort(),l=o.readShort(),c=o.readShort(),s=o.readShort(),u=o.readShort(),this.cache[t]=-1===a?new ln(o,l,c,s,u):new sn(o,a,l,c,s,u),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,a,o,s;for(a=[],i=[],o=0,s=e.length;o<s;o++)r=t[e[o]],i.push(a.length),r&&(a=a.concat(r.encode(n)));return i.push(a.length),{table:a,offsets:i}},e}(),sn=function(){function t(t,e,n,r,i,a){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),ln=function(){function t(t,e,n,r,i){var a,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new He(an.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),un=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return Ye(e,We),e.prototype.tag="loca",e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,a=0;a<n.length;++a)if(n[a]=r,i<e.length&&e[i]==a){++i,n[a]=r;var o=this.offsets[a],s=this.offsets[a+1]-o;s>0&&(r+=s)}for(var l=new Array(4*n.length),u=0;u<n.length;++u)l[4*u+3]=255&n[u],l[4*u+2]=(65280&n[u])>>8,l[4*u+1]=(16711680&n[u])>>16,l[4*u]=(4278190080&n[u])>>24;return l},e}(),cn=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,a,o,s;for(r={},a=0,o=t.length;a<o;a++)r[i=t[a]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,a,o,s,l,u,c,h,f,d,p,g,m;for(r in n=Ke.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(t),f={0:0},m=n.charMap)f[(s=m[r]).old]=s.new;for(d in h=n.maxGlyphID,a)d in f||(f[d]=h++);return u=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),c=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=c.length;t<e;t++)o=c[t],n.push(u[o]);return n}(),i=this.font.glyf.encode(a,p,f),l=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.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&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();Nt.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 r,i,a,o;if(Array.isArray(n))return"["+function(){var t,i,a;for(a=[],t=0,i=n.length;t<i;t++)r=n[t],a.push(e.convert(r));return a}().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(i in a=["<<"],n)o=n[i],a.push("/"+i+" "+e.convert(o));return a.push(">>"),a.join("\n")}return""+n},e}();var hn=Nt},5375:function(t,e,n){"use strict";var r=n(7416),i=n(9677),a=n(9153),o=n(822),s=n(4526);const l={key:0,class:"mt-3"},u={class:"grid"},c={class:"g-col-12 g-col-lg-3"},h={class:"card"},f={class:"card-header"},d={class:"card-body"},p={class:""},g={for:"fontSize",class:"form-label"},m=["selected","value"],v={class:"mt-4"},b={for:"pageSize",class:"form-label"},y=["selected","value"],w={class:"mt-4"},x={class:"form-label"},L=(t=>((0,o.Qi)("data-v-25514be7"),t=t(),(0,o.jt)(),t))((()=>(0,o.Lk)("br",null,null,-1))),A={class:"form-check form-check-inline"},N=["checked"],S={class:"form-check-label",for:"inlineRadio1"},_={class:"form-check form-check-inline"},P=["checked"],k={class:"form-check-label",for:"inlineRadio2"},F={class:"form-check mt-4"},C={class:"form-check-label",for:"exportMarkedRegisters"},I={class:"g-col-12 g-col-lg-9"},j={class:"card"},O={class:"card-header"},D={class:"card-body"},B={class:"form-check mb-1"},M=["id","value","checked","onClick"],E=["for"],T={class:"grid"},R={class:"g-col-12 ds-button-container"},q=["disabled"];var z=n(8266),U=n.n(z),W=n(6270),H=n(8104),V=(n(1934),n(4390)),G=n(5624),Y={name:"PDFBuilder",components:{BookmarkIcon:n(4997).cFy},setup(){const t=(0,G.E)(),{t:e}=(0,W.s9)({useScope:"global"}),n=(0,a.useMq)(),r=(0,o.EW)((()=>"xs"==n.current));(0,o.Gt)("xs_screen",r);const i=(0,V.KR)(!1),s=(0,V.Kh)(JSON.parse(JSON.stringify(t.pdf_prefs)));(0,o.wB)((()=>t.pdf_prefs.default),(e=>{s.selected_fields=JSON.parse(JSON.stringify(t.pdf_prefs.selected_fields)),s.font_size=t.pdf_prefs.font_size,s.page_size=t.pdf_prefs.page_size,s.portrait=t.pdf_prefs.portrait}));const l=(0,o.EW)((()=>{var e=t.field_index;if(0==s.selected_fields.length)for(let t in e)"marked"!=e[t].name&&h(e[t].name);return e}));function u(){let e=/<a\s+(?:[^>]*?\s+)?href=(["'])(.*?)\1/;var n=[];for(let u in t.itemsToDisplay){var r=t.itemsToDisplay[u];if(!i.value||1==r.marked){var a=[];for(let n in l.value){var o=l.value[n];if(s.selected_fields.includes(o.name)){if("marked"==o.name||"created"==o.name){let e={field_name:o.name,field_value:r[o.name]};a.push(t.getFormattedValue(e));continue}if(o.name.startsWith("file-")){if(void 0!==r.data[o.name]){let t=r.data[o.name].match(e);null!=t?a.push(t[2]):a.push("")}else a.push("");continue}if(!r.data[o.name]){a.push("");continue}let n={field_name:o.name,field_value:r.data[o.name]};a.push(t.getFormattedValue(n))}}n.push(a)}}return n}const c=(0,o.EW)((()=>t=>s.selected_fields.includes(t)));function h(t){s.selected_fields.includes(t)?s.selected_fields.splice(s.selected_fields.indexOf(t),1):s.selected_fields.push(t)}return{xs_screen:r,field_index:l,prefs:s,show_builder:(0,o.EW)((()=>t.ui.pdf_builder)),togglePdfBuilder:function(){t.ui.pdf_builder=!t.ui.pdf_builder},toggleSelectedField:h,is_selected:c,only_marked_items:i,page_sizes:{a4:"A4",a3:"A3",letter:"Letter",ledger:"Ledger"},font_sizes:["10","9","8","7","6","5"],isFieldDeletedField:t.isFieldDeletedField,generatePDF:function n(){console.log("generatePDF",n),console.log("field_index",l.value);const r=new H.default({orientation:s.portrait?"p":"l",format:s.page_size});var i,a="{total_pages_count_string}",o=t.meta.title,c=e("Page");r.autoTable({theme:"grid",headStyles:{fontWeight:"normal",overflow:"ellipsize",fontSize:s.font_size,fillColor:"#666"},bodyStyles:{fontSize:s.font_size},head:(i=[],l.value.forEach(((t,e)=>{s.selected_fields.includes(t.name)&&i.push(t.label)})),[i]),body:u(),didDrawPage:function(t){r.setFontSize(14),r.setTextColor(32,32,32),r.text(o,t.settings.margin.left+0,12);var e=c+" "+r.internal.getNumberOfPages();"function"==typeof r.putTotalPages&&(e=e+" of "+a),r.setFontSize(10);let n=r.internal.pageSize,i=n.height?n.height:n.getHeight();r.text(e,t.settings.margin.left,i-10)}}),"function"==typeof r.putTotalPages&&r.putTotalPages(a),r.save(o+".pdf"),s.default=!1,t.pdf_prefs=s,U().patch(t.endpoint+"/set-pdf-preferences",JSON.stringify({prefs:t.pdf_prefs}),{headers:{"Content-Type":"application/json"}}).then((function(t){})).catch((function(t){console.log(t)}))}}}};n(7227),n(633);var J=(0,n(1535).A)(Y,[["render",function(t,e,n,i,a,z){const U=(0,o.g2)("BookmarkIcon");return i.show_builder?((0,o.uX)(),(0,o.CE)("div",l,[(0,o.Lk)("div",u,[(0,o.Lk)("div",c,[(0,o.Lk)("div",h,[(0,o.Lk)("div",f,[(0,o.Lk)("h4",null,(0,s.toDisplayString)(t.$t("Options")),1)]),(0,o.Lk)("div",d,[(0,o.Lk)("div",p,[(0,o.Lk)("label",g,(0,s.toDisplayString)(t.$t("Font size")),1),(0,o.Lk)("select",{onChange:e[0]||(e[0]=t=>i.prefs.font_size=t.target.value),class:"form-select",id:"fontSize","aria-label":"Select font size"},[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(i.font_sizes,(t=>((0,o.uX)(),(0,o.CE)("option",{key:t,selected:i.prefs.font_size===t,value:t},(0,s.toDisplayString)(t),9,m)))),128))],32)]),(0,o.Lk)("div",v,[(0,o.Lk)("label",b,(0,s.toDisplayString)(t.$t("Page")),1),(0,o.Lk)("select",{onChange:e[1]||(e[1]=t=>i.prefs.page_size=t.target.value),class:"form-select",id:"pageSize","aria-label":"Select page size"},[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(i.page_sizes,((t,e,n)=>((0,o.uX)(),(0,o.CE)("option",{selected:i.prefs.page_size===e,value:e},(0,s.toDisplayString)(t),9,y)))),256))],32)]),(0,o.Lk)("div",w,[(0,o.Lk)("label",x,(0,s.toDisplayString)(t.$t("Page orientation")),1),L,(0,o.Lk)("div",A,[(0,o.Lk)("input",{class:"form-check-input",type:"radio",id:"inlineRadio1",onChange:e[2]||(e[2]=t=>i.prefs.portrait=!i.prefs.portrait),checked:0==i.prefs.portrait},null,40,N),(0,o.Lk)("label",S,(0,s.toDisplayString)(t.$t("Landscape")),1)]),(0,o.Lk)("div",_,[(0,o.Lk)("input",{class:"form-check-input",type:"radio",id:"inlineRadio2",onChange:e[3]||(e[3]=t=>i.prefs.portrait=!i.prefs.portrait),checked:1==i.prefs.portrait},null,40,P),(0,o.Lk)("label",k,(0,s.toDisplayString)(t.$t("Portrait")),1)])]),(0,o.Lk)("div",F,[(0,o.bo)((0,o.Lk)("input",{class:"form-check-input",type:"checkbox",id:"exportMarkedRegisters","onUpdate:modelValue":e[4]||(e[4]=t=>i.only_marked_items=t),onClick:e[5]||(e[5]=t=>i.only_marked_items=!i.only_marked_items)},null,512),[[r.vModelCheckbox,i.only_marked_items]]),(0,o.Lk)("label",C,[(0,o.eW)((0,s.toDisplayString)(t.$t("Only export bookmarked"))+" ",1),(0,o.bF)(U,{size:"1.1x"})])])])])]),(0,o.Lk)("div",I,[(0,o.Lk)("div",j,[(0,o.Lk)("div",O,[(0,o.Lk)("h4",null,(0,s.toDisplayString)(t.$t("Export these fields")),1)]),(0,o.Lk)("div",D,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(i.field_index,((t,e)=>((0,o.uX)(),(0,o.CE)("div",B,[((0,o.uX)(),(0,o.CE)("input",{id:e,key:t.name,type:"checkbox",class:"form-check-input",value:t.name,checked:1==i.is_selected(t.name),onClick:e=>i.toggleSelectedField(t.name)},null,8,M)),(0,o.Lk)("label",{for:e,class:(0,s.normalizeClass)(["form-check-label",{"ds-deleted-field-label":i.isFieldDeletedField(t.name)}])},(0,s.toDisplayString)(t.label),11,E)])))),256))])])])]),(0,o.Lk)("div",T,[(0,o.Lk)("div",R,[(0,o.Lk)("button",{class:"btn btn-primary",disabled:0==i.prefs.selected_fields.length,onClick:e[6]||(e[6]=(...t)=>i.generatePDF&&i.generatePDF(...t))},(0,s.toDisplayString)(t.$t("Download PDF")),9,q),(0,o.Lk)("button",{class:"btn btn-outline-primary",onClick:e[7]||(e[7]=(...t)=>i.togglePdfBuilder&&i.togglePdfBuilder(...t))},(0,s.toDisplayString)(t.$t("Cancel")),1)])])])):(0,o.Q3)("v-if",!0)}],["__scopeId","data-v-25514be7"]]);document.querySelectorAll("[vue-component=pdf-builder]").forEach((t=>{(0,r.createApp)(J).use(i.A).use(a.Vue3Mq,{}).mount(t)}))},7312:function(t,e,n){"use strict";n.r(e);var r=n(9248),i=n.n(r),a=n(9089),o=n.n(a)()(i());o.push([t.id,"\n.ds-empty-field {\n font-style: italic;\n}\n.ds-deleted-field-label {\n color: var(--lf-danger);\n}\n",""]),e.default=o},9478:function(t,e,n){"use strict";n.r(e);var r=n(9248),i=n.n(r),a=n(9089),o=n.n(a)()(i());o.push([t.id,"\n.card[data-v-25514be7] {\n border-top: 1px solid var(--lf-gray-300);\n}\n",""]),e.default=o},7227:function(t,e,n){var r=n(7312);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(8449).A)("3328e5c9",r,!1,{})},633:function(t,e,n){var r=n(9478);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(8449).A)("44881e9a",r,!1,{})}},function(t){t(t.s=5375)}]); \ No newline at end of file