/*! For license information please see app.js.LICENSE.txt */
(()=>{var t,e={213:(t,e,n)=>{"use strict";var i=n(9692),o=n.n(i);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var a=i&&i.prototype instanceof c?i:c,u=Object.create(a.prototype);return s(u,"_invoke",function(n,i,o){var r,a,s,c=0,u=o||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,a=0,s=t,d.n=n,l}};function f(n,i){for(a=n,s=i,e=0;!h&&c&&!o&&e<u.length;e++){var o,r=u[e],f=d.p,p=r[2];n>3?(o=p===i)&&(s=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=t):r[0]<=f&&((o=n<2&&f<r[1])?(a=0,d.v=i,d.n=r[1]):f<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,d.n=p,a=0))}if(o||n>1)return l;throw h=!0,i}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),a=u,s=p;(e=a<2?t:s)||!h;){r||(a?a<3?(a>1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(c=2,r){if(a||(o="next"),e=r[o]){if(!(e=e.call(r,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,a<2&&(a=0)}else 1===a&&(e=r.return)&&e.call(r),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);r=t}else if((e=(h=d.n<0)?s:n.call(i,d))!==l)break}catch(e){r=t,a=1,s=e}finally{c=1}}return{value:e,done:h}}}(n,o,r),!0),u}var l={};function c(){}function u(){}function h(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(s(e={},i,function(){return this}),e),f=h.prototype=c.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=h,s(f,"constructor",h),s(h,"constructor",u),u.displayName="GeneratorFunction",s(h,o,"GeneratorFunction"),s(f),s(f,o,"Generator"),s(f,i,function(){return this}),s(f,"toString",function(){return"[object Generator]"}),(a=function(){return{w:r,m:p}})()}function s(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,e,n,i){function r(e,n){s(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},s(t,e,n,i)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,o)}function d(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function a(t){h(r,i,o,a,s,"next",t)}function s(t){h(r,i,o,a,s,"throw",t)}a(void 0)})}}function f(){((arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||document).querySelectorAll(".v1-merged-image").forEach(function(t){!function(t){p.apply(this,arguments)}(t)})}function p(){return(p=d(a().m(function t(e){var n,i,o,r,s,l,c,u;return a().w(function(t){for(;;)switch(t.p=t.n){case 0:if(t.p=0,"true"!==e.dataset.processed){t.n=1;break}return t.a(2);case 1:if(e.dataset.processed="true",n="v1img-"+Date.now()+"-"+Math.random().toString(36).substr(2,9),e.dataset.debugId=n,i=JSON.parse(e.dataset.imageUrls||"[]"),o=e.dataset.direction||"horizontal",i&&0!==i.length){t.n=2;break}return t.a(2);case 2:return t.n=3,m(i);case 3:if(0!==(r=t.v).length){t.n=4;break}return t.a(2);case 4:s=v(r,o),(l=document.createElement("img")).src=s.toDataURL("image/jpeg",.9),l.className="shindanResult_image",l.style.cssText="max-width: 100%; height: auto; display: inline-block;",(c=e.parentElement)&&"shindanResult"===c.id&&new MutationObserver(function(t){t.forEach(function(t){t.type})}).observe(c,{childList:!0,subtree:!0}),e.replaceWith(l),(u=function(t){setTimeout(function(){l.parentElement,document.querySelectorAll('.v1-merged-image[data-debug-id="'.concat(n,'"]')).length},t)})(100),u(1e3),u(3e3),t.n=6;break;case 5:t.p=5,t.v,e.remove();case 6:return t.a(2)}},t,null,[[0,5]])}))).apply(this,arguments)}function m(t){return g.apply(this,arguments)}function g(){return(g=d(a().m(function t(e){var n,i;return a().w(function(t){for(;;)switch(t.n){case 0:return n=e.map(function(t){return e=t,new Promise(function(t,n){var i=new Image;i.crossOrigin="anonymous",i.onload=function(){t(i)},i.onerror=function(t){n(new Error("Failed to load image: ".concat(e)))},i.src=e});var e}),t.n=1,Promise.allSettled(n);case 1:return i=t.v,t.a(2,i.filter(function(t){return"fulfilled"===t.status}).map(function(t){return t.value}))}},t)}))).apply(this,arguments)}function v(t,e){if(0===t.length)throw new Error("No images to merge");if(1===t.length)return function(t){var e=document.createElement("canvas");e.width=t.naturalWidth||t.width,e.height=t.naturalHeight||t.height;var n=e.getContext("2d");return n.drawImage(t,0,0),e}(t[0]);var n=t.map(function(t){return{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height,img:t}}),i=0,o=0,r=0,a=0;n.forEach(function(t){i=Math.max(i,t.width),o=Math.max(o,t.height)});var s=n.map(function(t){var n=t.width,s=t.height;if("horizontal"===e){if(t.height<o){var l=o/t.height;s=o,n=t.width*l}r+=n}else{if(t.width<i){var u=i/t.width;n=i,s=t.height*u}a+=s}return c(c({},t),{},{newWidth:n,newHeight:s})});"horizontal"===e?a=o:r=i;var l=1200;if(r>l||a>l){var u=r>a?l/r:l/a;r*=u,a*=u,s.forEach(function(t){t.newWidth*=u,t.newHeight*=u})}var h=document.createElement("canvas");h.width=r,h.height=a;var d=h.getContext("2d");d.fillStyle="#FFFFFF",d.fillRect(0,0,r,a);var f=0,p=0;return s.forEach(function(t){d.drawImage(t.img,f,p,t.newWidth,t.newHeight),"horizontal"===e?f+=t.newWidth:p+=t.newHeight}),h}window.renderV1MergedImages=f;n(6365);var y=n(5072),b=n.n(y),x=n(6613),w={insert:"head",singleton:!1};b()(x.A,w);x.A.locals;n(3258);function _(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return k(c,"_invoke",function(n,i,o){var r,s,l,c=0,u=o||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,s=0,l=t,d.n=n,a}};function f(n,i){for(s=n,l=i,e=0;!h&&c&&!o&&e<u.length;e++){var o,r=u[e],f=d.p,p=r[2];n>3?(o=p===i)&&(l=r[(s=r[4])?5:(s=3,3)],r[4]=r[5]=t):r[0]<=f&&((o=n<2&&f<r[1])?(s=0,d.v=i,d.n=r[1]):f<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,d.n=p,s=0))}if(o||n>1)return a;throw h=!0,i}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,l=p;(e=s<2?t:l)||!h;){r||(s?s<3?(s>1&&(d.n=-1),f(s,l)):d.n=l:d.v=l);try{if(c=2,r){if(s||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=r.return)&&e.call(r),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);r=t}else if((e=(h=d.n<0)?l:n.call(i,d))!==a)break}catch(e){r=t,s=1,l=e}finally{c=1}}return{value:e,done:h}}}(n,o,r),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(k(e={},i,function(){return this}),e),h=c.prototype=s.prototype=Object.create(u);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,k(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=c,k(h,"constructor",c),k(c,"constructor",l),l.displayName="GeneratorFunction",k(c,o,"GeneratorFunction"),k(h),k(h,o,"Generator"),k(h,i,function(){return this}),k(h,"toString",function(){return"[object Generator]"}),(_=function(){return{w:r,m:d}})()}function k(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}k=function(t,e,n,i){function r(e,n){k(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},k(t,e,n,i)}function E(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,o)}function T(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function a(t){E(r,i,o,a,s,"next",t)}function s(t){E(r,i,o,a,s,"throw",t)}a(void 0)})}}n(9692),window.renderV1MergedImages=f,window.spinner="spinner-third",window.btn_spinner='<span class="spinner mr-2"><i class="fa-solid fa-'+spinner+' fa-fw fa-spin"></i></span>',window.block_spinner='<div class="block-spinner p-3 text-muted text-center"><i class="fa-solid fa-'+spinner+' fa-2x fa-spin"></i></div>',window.block_spinner_sm='<div class="block-spinner-sm p-3 text-muted text-center"><i class="fa-solid fa-'+spinner+' fa-spin"></i></div>',window.fadeTime="fast",window.twemoji_asset="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/";window.onfocus=function(){0},window.onblur=function(){0},window.parseJson=function(t){var e={},n=0;for(n=0;n<t.length;n++)e[t[n].name]=t[n].value;return e},$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}),window.isMobileDevice=function(){var t=navigator.userAgent||navigator.vendor||window.opera;return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(t)},$(function(){if($("#shindanResultContent").length>0){repalce_nbsp_shindanResult(),setTimeout(function(){"function"==typeof window.initV1Charts&&window.initV1Charts(!1,null,"result")},100),setTimeout(function(){"function"==typeof window.renderV1MergedImages&&window.renderV1MergedImages()},150);var t="undefined"!=typeof shindan_exact_type&&"name2"===shindan_exact_type;t||void 0===window.result_remaining_tasks||0!==window.result_remaining_tasks||$(".shindan-share-overlay").removeClass("shindan-share-overlay")}else setTimeout(function(){"function"==typeof window.initV1Charts&&(document.querySelectorAll('.canvas_block[data-chart-version="v1"]').length>0&&window.initV1Charts(!0,null,"timeline"))},100),setTimeout(function(){"function"==typeof window.renderV1MergedImages&&window.renderV1MergedImages()},150);var e=function(t){var e=$(t);if(e.length){var n=e.text(),i=e.val();n&&i!==n&&e.val(n)}};e("#share-copytext-shindanresult-textarea"),e("#copy-textarea-140"),e("#copy-textarea-all"),repalce_nbsp_textarea(),$('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="popover"]').popover(),shindanDescriptionsHeight(),auth_check&¬ificationIcon&&("check"==notificationIcon?$.ajax({url:"/mypage/checkMyNotification",type:"POST",dataType:"json"}).done(function(t){t.notification&&$.each(t.notification,function(t,e){$("#"+t).append(e)})}).fail(function(){}):notificationIcon&&$.each(notificationIcon,function(t,e){$("#"+t).append(e)})),$(".modal").on("show.bs.modal",function(t){$(".tooltip").tooltip("hide")});var n=0,i=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;$(".modal").on("show.bs.modal",function(t){i&&(n=window.scrollY||window.pageYOffset,document.body.classList.add("modal-open-ios"),document.body.style.top="-".concat(n,"px"),document.activeElement&&document.activeElement.blur&&document.activeElement.blur())}),$(".modal").on("shown.bs.modal",function(){$(this).on("touchmove.modalScroll",function(t){var e=t.target;$(e).closest(".modal-body, .modal-dialog-scrollable, .preview-table-wrapper").length>0||t.preventDefault()})}),$(".modal").on("hidden.bs.modal",function(){$(this).off("touchmove.modalScroll"),i&&(document.body.classList.remove("modal-open-ios"),document.body.style.top="",window.scrollTo(0,n))});var r,a,s="data-nested-modal-z";$(document).on("show.bs.modal",".modal",function(){var t=$(".modal.show").length;if(t){var e=1050+10*t;$(this).css("z-index",e).attr(s,e),setTimeout(function(){$(".modal-backdrop").not("[".concat(s,"]")).last().css("z-index",e-5).attr(s,e)},0)}}),$(document).on("hidden.bs.modal",".modal",function(){var t=$(this).attr(s);t&&($(".modal-backdrop[".concat(s,'="').concat(t,'"]')).css("z-index","").removeAttr(s),$(this).css("z-index","").removeAttr(s)),$(".modal.show").length&&$("body").addClass("modal-open")}),"undefined"!=typeof createCompleteModal&&createCompleteModal&&$("#modal-create_completed").modal("show"),lazyload(),"undefined"==typeof no_twemoji&&twemoji.parse(document.body,{base:twemoji_asset}),navigator.share&&$("#btn-group-webshareapi-container").show(),o()($("textarea")),updateTimestamps(),r=timeZone,a=Intl.DateTimeFormat().resolvedOptions().timeZone,!timeZoneSkip&&a&&"Etc/Unknown"!=a&&r!==a&&$.ajax({type:"POST",url:"/saveTimeZone",data:{timeZone:a},success:function(t){},error:function(){}})}),window.onload=function(t){renderAllV2TimelineResults(),adjustTimelineHeight()},window.repalce_nbsp_shindanResult=function(){$("#shindanResultContent").each(function(){var t=$(this).html();$(this).html(t.replace(/ /g," "))})},window.repalce_nbsp_textarea=function(){$("textarea").each(function(){var t=$(this).html();$(this).html(t.replace(/ /g," "))})},window.repalce_nbsp=function(){repalce_nbsp_shindanResult(),repalce_nbsp_textarea()},window.record_campaigns_share_click=function(t,e,n){$.ajax({type:"POST",url:"/campaigns/share_click",data:{campaign_id:t,to:n,shindan_id:e},success:function(t){},error:function(){}})};window.addEventListener("pageshow",function(t){"undefined"!=typeof shindanProgress&&1==shindanProgress&&t.persisted&&0}),window.addEventListener("pagehide",function(t){null!==K&&(clearInterval(K),K=null)}),window.htmlspecialchars=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/["&'<>]/g,function(t){return{"&":"&","'":"'",'"':""","<":"<",">":">"}[t]})},window.htmlspecialchars_decode=function(t,e){var n=0,i=0,o=!1;void 0===e&&(e=2),t=t.toString().replace(/</g,"<").replace(/>/g,">");var r={ENT_NOQUOTES:0,ENT_HTML_QUOTE_SINGLE:1,ENT_HTML_QUOTE_DOUBLE:2,ENT_COMPAT:2,ENT_QUOTES:3,ENT_IGNORE:4};if(0===e&&(o=!0),"number"!=typeof e){for(e=[].concat(e),i=0;i<e.length;i++)0===r[e[i]]?o=!0:r[e[i]]&&(n|=r[e[i]]);e=n}return e&r.ENT_HTML_QUOTE_SINGLE&&(t=t.replace(/�*39;/g,"'")),o||(t=t.replace(/"/g,'"')),t=t.replace(/&/g,"&")},$(document).on("click",".shareModal",function(){$("#shareModal").modal("show")}),$(document).on("click","#share-copytext",function(){var t=$("#copyContent").find(".active").find("textarea").attr("id");navigator.clipboard.writeText($("#"+t).val()).then(function(){showAlertToast(clipboardtext_success,"success")}),$("#shareModal").modal("hide")}),$(document).on("click","#copy-shindanUrl",function(){navigator.clipboard.writeText($("#copy-shindanUrl").val()).then(function(){showAlertToast(clipboardtext_success,"success")})}),$(document).on("click",".clipboardtext",function(){var t=$(this).data("clipboardtext");null==navigator.clipboard?window.clipboardData.setData("Text",t):navigator.clipboard.writeText(t).then(function(){showAlertToast(clipboardtext_success,"success")})}),$(".modal").on("show.bs.modal",function(t){$("#toast-container").empty()}),window.showAlertToast=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3,i=Date.now();"success"==e&&(e="success");var o='<div id="toast-'+i+'" class="toast1 fixed-top hide"><div class="toast2 px-3"><div class="toast3 alert alert-'+e+' p-4 align-content-center"><div class="d-flex justify-content-between align-items-start"><div class="toast-message d-inline-block pr-4 text-break">'+t+'</div><button data-toast_id="'+i+'" type="button" class="close close-toast" aria-label="Close">×</button></div></div></div>';$("#toast-container").html(o),setTimeout(function(){$("#toast-"+i).removeClass("hide")},100),setTimeout(function(){$("#toast-"+i).addClass("hide"),setTimeout(function(){$("#toast-"+i).remove()},1e3)},n)},$(document).on("click",".close-toast",function(){var t=$(this).data("toast_id");$("#toast-"+t).remove()}),$(function(){var t=!("undefined"==typeof shindanResult||!0!==shindanResult||!$("#shindanResultBlock").length||0===$("#etc_buttons").length),e=0,n=0,i=0,o=0,r=$(window).height(),a=!1;$(window).on("scroll",function(){a||(window.requestAnimationFrame(function(){e=$(window).scrollTop(),t&&(o=$("#share_buttons_block").offset().top+$("#share_buttons_block").outerHeight(),i=e+r/3*2),Math.abs(n-e)>=50&&(e>n&&e>10?"1"==$("#head-navbar").attr("autoHide")&&($("#head-navbar").addClass("hide"),$("#head-shindan-title").removeClass("hide")):"1"==$("#head-navbar").attr("autoHide")&&($("#head-navbar").removeClass("hide"),$("#head-shindan-title").addClass("hide")),t&&(i>o?$("#foot-sharebar").removeClass("hide"):$("#foot-sharebar").addClass("hide")),n=e),a=!1}),a=!0)})});var S=!1,C=!1;$(window).on("load scroll",function(){C||(window.requestAnimationFrame(function(){if("undefined"!=typeof shindanLists&&1==shindanLists){if(void 0===t)var t="";A($("#shindansRelatedListsContainer"))&&!shindanListsDisplayed&&$.ajax({url:"/shindansRelatedListsAll",type:"POST",dataType:"json",data:{shindanListsTarget,shindan_info}}).done(function(t){$.each(t,function(t,e){e.html.title&&$("#shindansRelatedLists-"+t+"-title").html(e.html.title).hide().fadeIn(fadeTime),e.html.content&&$("#shindansRelatedLists-"+t).html(e.html.content).hide().fadeIn(fadeTime)}),$('[data-toggle="tooltip"]').tooltip(),shindanListsDisplayed=!0,lazyload(),twemoji.parse(document.getElementById("shindansRelatedListsContainer"),{base:twemoji_asset})}).fail(function(){})}"undefined"!=typeof shindanResult&&!0===shindanResult&&0==S&&A($("#shindanResultContent"))&&setTimeout(function(){if("undefined"!=typeof chartParams&&"function"==typeof window.drawChart){var t=Object.keys(chartParams).length;$.each(chartParams,function(e,n){window.drawChart(e,n,t)})}else"undefined"!=typeof chartParams&&window.drawChart;shindanEffects(),S=!0},700),C=!1}),C=!0)}),$(document).on("click",".shindansRelatedLists-tab",function(){var t=$(this).attr("id").replace("shindansRelatedLists-tab-","");-1==$.inArray(t,shindanListsDisplayedSub)&&($("#shindansRelatedLists-"+t).html(block_spinner),function(t){$.ajax({url:"/shindansRelatedLists",type:"POST",dataType:"json",data:{mode:t,shindan_info}}).done(function(e){e.html.content?$("#shindansRelatedLists-"+t).html(e.html.content).hide().fadeIn(fadeTime):$("#shindansRelatedLists-"+t).empty(),$('[data-toggle="tooltip"]').tooltip(),lazyload(),twemoji.parse(document.getElementById("shindansRelatedListsContainer"),{base:twemoji_asset})}).fail(function(){$("#shindansRelatedLists-"+t).empty()})}(t),shindanListsDisplayedSub.push(t))});var D=[];function A(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0===t.length)return!1;var n=$(t).attr("id");if(e&&$.inArray(n,D)>=0)return!1;var i=$(window).scrollTop(),o=i+$(window).height(),r=t.offset().top-$(window).height(),a=r+t.height()+$(window).height();return o>r&&i<a&&(e&&D.push(n),!0)}function M(t){$(".user-avatar-"+t.account_id).attr("src",t.avatar),$(".user-name"+t.account_id).text(t.name),$(".user-screen_name"+t.account_id).text(t.screen_name),$(".user-description"+t.account_id).text(t.description)}function P(){$(".modal").hasClass("show")&&$(".modal").modal("hide"),$("#needLoginModal").modal("show")}function O(t){$("#modal-common-title").html(t.title),$("#modal-common-body").html(t.body),$("#modal-common-btn").html(t.btn)}if($(document).on("click","#next-shindan-list",function(){if("undefined"!=typeof nextPageUrl){if($(this).children("i").remove(),$(this).prepend(btn_spinner).prop("disabled",!0),void 0!==$(this).data("lastnumber"))var t=$(this).data("lastnumber");else t=0;$.ajax({type:"post",url:htmlspecialchars_decode(nextPageUrl,3),data:{lastnumber:t,request_type:"async"},dataType:"json",success:function(t){$("#next-shindan-list-block").remove(),$(t.html).appendTo("#shindan-index").hide().fadeIn(fadeTime),nextPageUrl=t.nextPageUrl,lazyload(),$('[data-toggle="tooltip"]').tooltip(),twemoji.parse(document.getElementById("shindan-index"),{base:twemoji_asset})}})}}),$(document).on("click","#next-users",function(){var t=$(this).data("nextpageurl"),e=$(this).data("rownumber"),n=$(this).data("insert_target");$(this).children("i").remove(),$(this).prepend(btn_spinner).prop("disabled",!0),$.ajax({type:"post",url:htmlspecialchars_decode(t,3),data:{rownumber:e},dataType:"json",success:function(t){$("#next-users-block").remove();var e=n?"#"+n:"#users-index";$(t.html).appendTo(e).hide().fadeIn(fadeTime),lazyload(),$('[data-toggle="tooltip"]').tooltip(),twemoji.parse(document.getElementById(e.replace(/^#/,"")),{base:twemoji_asset})}})}),$(document).on("click","#next-results",function(){"undefined"!=typeof nextPageUrl&&($(this).children("i").remove(),$(this).prepend(btn_spinner).prop("disabled",!0),$.ajax({type:"post",url:htmlspecialchars_decode(nextPageUrl,3),dataType:"json",success:function(t){if($("#next-results-block").remove(),$(t.html).appendTo("#results-rows").hide().fadeIn(fadeTime),nextPageUrl=t.nextPageUrl,lazyload(),adjustTimelineHeight(),$('[data-toggle="tooltip"]').tooltip(),updateTimestamps(),twemoji.parse(document.getElementById("results-rows"),{base:twemoji_asset}),renderAllV2TimelineResults(),"function"==typeof window.initV1Charts){var e=document.getElementById("results-rows");if(e)e.querySelectorAll('.canvas_block[data-chart-version="v1"]').length>0&&window.initV1Charts(!0,e,"timeline")}}}))}),$(document).on("click",".next-page",function(){$(this).children("i").remove(),$(this).prepend(btn_spinner).prop("disabled",!0);var t=$(this).data("url"),e=$(this).closest(".next-page-container");$.ajax({type:"post",url:htmlspecialchars_decode(t,3),dataType:"json",success:function(t){var n=$(t.html).hide();e.replaceWith(n),n.fadeIn(fadeTime),lazyload(),updateTimestamps(),$('[data-toggle="tooltip"]').tooltip(),twemoji.parse(n[0],{base:twemoji_asset}),renderAllV2TimelineResults()}})}),$(function(){"undefined"!=typeof chartPage&&1==chartPage&&$.ajax({type:"post",url:"/getChart",data:{chart},dataType:"json",success:function(t){$("#chartWrapper").html(t.string);var e=t.chartScripts,n=Object.keys(e).length;$.each(e,function(t,e){window.drawChart(t,e,n)})}})}),$(document).on("click","#auth_misskey_go",function(){var t=$("#auth_misskey_server").val();if(0==/^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]*\.)+[a-zA-Z]{2,}$/.test(t)||0==t.length){var e=$(this).data("domain_error");return $("#auth_misskey_go_error").text(e),!1}var n=$(this).data("route"),i=$(this).data("action"),o=document.createElement("form");o.action=i,o.method="post";var r=document.createElement("input");r.type="hidden",r.name="route",r.value=n;var a=document.createElement("input");a.type="hidden",a.name="host",a.value=t;var s=document.createElement("input");s.type="hidden",s.name="_token",s.value=$('meta[name="csrf-token"]').attr("content"),o.appendChild(r),o.appendChild(a),o.appendChild(s),document.body.appendChild(o),o.submit()}),$(document).on("click","#auth_mastodon_go",function(){var t=$("#auth_mastodon_server").val();if(0==/^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]*\.)+[a-zA-Z]{2,}$/.test(t)||0==t.length){var e=$(this).data("domain_error");return $("#auth_mastodon_go_error").text(e),!1}var n=$(this).data("action"),i=document.createElement("form");i.action=n,i.method="post";var o=document.createElement("input");o.type="hidden",o.name="host",o.value=t;var r=document.createElement("input");r.type="hidden",r.name="_token",r.value=$('meta[name="csrf-token"]').attr("content"),i.appendChild(o),i.appendChild(r),document.body.appendChild(i),i.submit()}),$(document).on("click",".inPageLink",function(){var t=$(this).attr("href"),e=$("#"==t||""==t?"html":t).offset().top-15;return $("body,html").animate({scrollTop:e},400,"swing"),!1}),$(document).on("click",".user-modal-show",function(){var t=$(this).data("account_id"),e=$(this).data("mode");$("#modal-user-card").empty(),$.ajax({url:"/getUserCard",type:"POST",dataType:"json",data:{account_id:t,mode:e}}).done(function(e){e.status?(e.userData&&M(e.userData),$("#modal-user-card").html(e.html),$("#modal-user").modal("show"),$('[data-toggle="tooltip"]').tooltip(),lazyload(),twemoji.parse(document.getElementById("modal-user-card"),{base:twemoji_asset})):($("#user-row-"+t).find("a,.a").addClass(["text-muted-more","disabled"]).removeClass("user-modal-show"),$("#user-row-"+t).find("button").prop("disabled",!0),showAlertToast(e.message,"danger"))}).fail(function(){showAlertToast("Error","danger")})}),$(document).on("click",".btn-action-user",function(){var t=$(this).data("account_id"),e=$(this).data("action");$(this).prop("disabled",!0),$.ajax({url:"/userAction",type:"POST",dataType:"json",data:{account_id:t,action:e},context:$(this)}).done(function(e){if("needLogin"==e.status)return $(this).prop("disabled",!1),P(),!1;"follow"==e.actionType&&($(".btn-action-user-follow-"+t).data("action",e.nextAction),$(".btn-action-user-follow-"+t).removeClass(e.removeClass),$(".btn-action-user-follow-"+t).addClass(e.addClass),$(".btn-action-user-follow-"+t).html(e.html),e.myFollowIcon?$(".user-screen_name-"+t).before(e.myFollowIcon):$(".user-followIcon-"+t).remove()),"mute"==e.actionType&&($(".btn-action-user-mute-"+t).data("action",e.nextAction),$(".btn-action-user-mute-"+t).html(e.html),e.myMuteIcon?$(".user-screen_name-"+t).before(e.myMuteIcon):$(".user-muteIcon-"+t).remove()),"danger"==e.status&&showAlertToast(e.message,"danger"),e.noUser?($("#user-row-"+t).find("a").addClass(["text-muted-more","disabled"]).removeClass("user-modal-show"),$("#user-row-"+t).find("button").prop("disabled",!0)):$(this).prop("disabled",!1),e.userData&&M(e.userData)}).fail(function(){showAlertToast("Error","danger"),$(this).prop("disabled",!1)})}),$(document).on({mouseenter:function(){$(this).addClass("btn-dark"),$(this).removeClass("btn-light"),$(this).children(".btn-front").hide(),$(this).children(".btn-back").show()},mouseleave:function(){$(this).addClass("btn-light"),$(this).removeClass("btn-dark"),$(this).children(".btn-back").hide(),$(this).children(".btn-front").show()}},".btn-following"),$(document).on({mouseenter:function(){$(this).addClass("btn-light"),$(this).removeClass("btn-danger"),$(this).children(".btn-front").hide(),$(this).children(".btn-back").show()},mouseleave:function(){$(this).addClass("btn-danger"),$(this).removeClass("btn-light"),$(this).children(".btn-back").hide(),$(this).children(".btn-front").show()}},".btn-muting"),$(document).on("click",".favorite-modal-show",function(){var t=$(this).data("shindan_id"),e=$(this).hasClass("result-action-btn")?"regular":"light";$.ajax({url:"/getFavoriteInfo",type:"POST",dataType:"json",data:{shindan_id:t},context:$(this)}).done(function(t){$("#modal-favorite-title").html(t.title),$("#modal-favorite-body").html(t.body),$("#modal-favorite-btn").html(t.btn),$("#modal-favorite").data("icon-weight",e),t.modal_common&&O(t.modal_common),$("#modal-favorite").modal("show")}).fail(function(){showAlertToast("Error","danger")})}),$(document).on("click",".favorite-delete-confirm",function(){var t=$(this).data("shindan_id");$.ajax({url:"/deleteFavoriteConfirm",type:"POST",dataType:"json",data:{shindan_id:t}}).done(function(t){t.modal_common&&O(t.modal_common),$("#modal-common").modal("show")}).fail(function(){showAlertToast("Error","danger")})}),$(document).on("click","#saveFavorite",function(){var t=$(this).data("shindan_id"),e=$("#addFavoriteTags").val(),n=$("#modal-favorite").data("icon-weight")||"light";if($("#addFavorite_private").prop("checked"))var i=!0;else i=!1;$.ajax({url:"/saveFavorite",type:"POST",dataType:"json",data:{shindan_id:t,favorite_tag:e,favorite_private:i,icon_weight:n},context:$(this)}).done(function(e){$(".label-favorite-container-index-"+t).html(e.favoriteLabelIndex),$(".label-favorite-container-shindan-"+t).html(e.favoriteLabelShindan),$(".favorite-btn-"+t).addClass(e.favoriteButton.btn_class_add),$(".favorite-btn-"+t).removeClass(e.favoriteButton.btn_class_remove),$(".favorite-icon-"+t).addClass(e.favoriteButton.icon_class_add),$(".favorite-icon-"+t).removeClass(e.favoriteButton.icon_class_remove),$(".favorite-text-"+t).text(e.favoriteButton.text),$(".favorite-num-"+t).text(e.favoritesNum),$(".favorite-roundnum-"+t).html(e.favoritesRoundNum),$(".favorite-btn-"+t).attr("title",e.favoriteButton.long_text),$(".favorite-btn-"+t).attr("data-original-title",e.favoriteButton.long_text),$(".favorite-roundnum-withMargin-"+t).html(e.favoritesRoundNumWithMargin),$(".favorite-long_text-"+t).text(e.favoriteButton.long_text),showAlertToast(e.message,"success")}).fail(function(){showAlertToast("Error","danger")})}),$(document).on("click","#deleteFavoriteConfirm",function(){$("#modal-common").modal("show")}),$(document).on("click","#deleteFavoriteSubmit",function(){var t=$(this).data("shindan_id"),e=$("#modal-favorite").data("icon-weight")||$("#modal-common").data("icon-weight")||"light";$.ajax({url:"/deleteFavorite",type:"POST",dataType:"json",data:{shindan_id:t,icon_weight:e},context:$(this)}).done(function(e){$(".label-favorite-container-index-"+t).html(e.favoriteLabelIndex),$(".label-favorite-container-shindan-"+t).html(e.favoriteLabelShindan),$("#favorite-shindan-row-"+t).fadeOut(1500),setTimeout(function(){$("#favorite-shindan-row-"+t).remove()},2e3),$(".favorite-btn-"+t).addClass(e.favoriteButton.btn_class_add),$(".favorite-btn-"+t).removeClass(e.favoriteButton.btn_class_remove),$(".favorite-icon-"+t).addClass(e.favoriteButton.icon_class_add),$(".favorite-icon-"+t).removeClass(e.favoriteButton.icon_class_remove),$(".favorite-text-"+t).text(e.favoriteButton.text),$(".favorite-num-"+t).text(e.favoritesNum),$(".favorite-btn-"+t).attr("title",e.favoriteButton.long_text),$(".favorite-btn-"+t).attr("data-original-title",e.favoriteButton.long_text),$(".favorite-roundnum-withMargin-"+t).html(e.favoritesRoundNumWithMargin),$(".favorite-long_text-"+t).text(e.favoriteButton.long_text),showAlertToast(e.message,"success")}).fail(function(){showAlertToast("Error","danger")})}),"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)try{for(var L in document.styleSheets){var I=document.styleSheets[L];if(I.rules)for(var R=I.rules.length-1;R>=0;R--)I.rules[R].selectorText&&I.rules[R].selectorText.match(":hover")&&!/keephover\b/.test(I.rules[R].selectorText)&&I.deleteRule(R)}}catch(t){}function j(){return F.apply(this,arguments)}function F(){return(F=T(_().m(function t(){var e,n;return _().w(function(t){for(;;)switch(t.p=t.n){case 0:if("undefined"==typeof ogp_prepare_data||!ogp_prepare_data||ogp_prepare_data.saved){t.n=4;break}return t.p=1,t.n=2,$.ajax({url:"/api/ogp-data/save",method:"POST",data:{hash:ogp_prepare_data.hash,shindan_id:ogp_prepare_data.shindan_id,data:ogp_prepare_data.data,type:ogp_prepare_data.type||"chart",_token:$('meta[name="csrf-token"]').attr("content")}});case 2:return t.v.is_new,ogp_prepare_data.saved=!0,("chart"===ogp_prepare_data.type||"image"===ogp_prepare_data.type||"canvas"===ogp_prepare_data.type||"mixed"===ogp_prepare_data.type)&&"undefined"!=typeof shindan_id&&shindan_id&&ogp_prepare_data.hash&&(e="/".concat(shindan_id,"/ogp_").concat(ogp_prepare_data.hash,"_natural.jpg"),"".concat(window.location.origin,"/").concat(shindan_id,"/ogp_").concat(ogp_prepare_data.hash,"_natural.jpg"),n="/".concat(shindan_id,"/ogp_").concat(ogp_prepare_data.hash,".jpg"),"".concat(window.location.origin,"/").concat(shindan_id,"/ogp_").concat(ogp_prepare_data.hash,".jpg"),Date.now(),Promise.all([fetch(e,{method:"GET",mode:"no-cors",cache:"force-cache"}),fetch(n,{method:"GET",mode:"no-cors",cache:"force-cache"})]).then(function(){Date.now()}).catch(function(t){})),t.a(2,!0);case 3:return t.p=3,t.v,t.a(2,!1);case 4:return t.a(2,!1)}},t,null,[[1,3]])}))).apply(this,arguments)}function N(t,e){if(navigator.share){var n=htmlspecialchars_decode(e,3);"undefined"!=typeof ogp_prepare_data&&ogp_prepare_data&&ogp_prepare_data.hash&&(n=n.replace(/(https?:\/\/[^\s]+)/g,function(t){var e=t,n=(e=(e=e.replace(/[?&]o=[^&]*/g,"")).replace(/&+/g,"&").replace(/\?&/,"?").replace(/&$/,"")).includes("?")?"&":"?";return e+n+"o="+ogp_prepare_data.hash})),navigator.share({title:htmlspecialchars_decode(t,3),text:n})}else alert("This button is not available on this browser.")}function B(t,e){Kakao.Link.sendDefault({objectType:"text",text:htmlspecialchars_decode(e,3),link:{mobileWebUrl:t,webUrl:t},buttons:[{title:"진단",link:{mobileWebUrl:t,webUrl:t}}]})}$(document).on("change","#TosAgreement",function(){$(this).prop("checked")?$("#save").prop("disabled",!1):$("#save").prop("disabled",!0)}),$(document).on("click",".share-to",function(){var t=T(_().m(function t(e){var n,i,o,r,a,s,l,c,u,h,d,f,p,m,g,v,y,b,x,w,k=this;return _().w(function(t){for(;;)switch(t.n){case 0:if(n=$(this).data("share_target"),$(this).attr("href"),"dropdownShare"!==$(this).attr("id")){t.n=1;break}return t.a(2);case 1:if("x-twitter"!==n){t.n=2;break}return"undefined"!=typeof ogp_prepare_data&&ogp_prepare_data&&!ogp_prepare_data.saved&&j(),dataLayer.push({event:"Share","share-action":n}),"undefined"!=typeof campaign_id&&campaign_id&&record_campaigns_share_click(campaign_id,shindan_id,n),at("x"),t.a(2);case 2:return e.preventDefault(),$(this).attr("data-share_url"),t.n=3,j();case 3:"etc"!=n&&(dataLayer.push({event:"Share","share-action":n}),"undefined"!=typeof campaign_id&&campaign_id&&record_campaigns_share_click(campaign_id,shindan_id,n)),w=n,t.n="copy"===w||"action-copy"===w?4:"x-twitter"===w?5:"facebook"===w?6:"line"===w?7:"mixi"===w?8:"weibo"===w?9:"mastodon"===w?10:"taittsuu"===w?11:"bluesky"===w?12:"threads"===w?13:"misskey"===w?14:"kakaotalk"===w?15:"webshareapi"===w?16:"result_image"===w?17:"etc"===w?18:19;break;case 4:return navigator.clipboard.writeText($("#share-copytext-shindanresult-textarea").val()).then(function(){U($(k),clipboardtext_result_success),q($(k)),V($(k))}),at("copy"),t.a(3,20);case 5:case 19:return t.a(3,20);case 6:return isMobileDevice()?location.href=$(this).data("share_url"):(i=window.screenTop+window.innerHeight/2-300,o=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+i+", left="+o+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("facebook"),t.a(3,20);case 7:return isMobileDevice()?location.href=$(this).data("share_url"):(r=window.screenTop+window.innerHeight/2-300,a=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+r+", left="+a+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("line"),t.a(3,20);case 8:return isMobileDevice()?location.href=$(this).data("share_url"):(s=window.screenTop+window.innerHeight/2-300,l=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+s+", left="+l+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("mixi"),t.a(3,20);case 9:return isMobileDevice()?location.href=$(this).data("share_url"):(c=window.screenTop+window.innerHeight/2-300,u=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+c+", left="+u+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("weibo"),t.a(3,20);case 10:return isMobileDevice()?location.href=$(this).data("share_url"):(h=window.screenTop+window.innerHeight/2-300,d=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+h+", left="+d+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("mastodon"),t.a(3,20);case 11:return isMobileDevice()?location.href=$(this).data("share_url"):(f=window.screenTop+window.innerHeight/2-300,p=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+f+", left="+p+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("taittsuu"),t.a(3,20);case 12:return isMobileDevice()?location.href=$(this).data("share_url"):(m=window.screenTop+window.innerHeight/2-300,g=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+m+", left="+g+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("bluesky"),t.a(3,20);case 13:return isMobileDevice()?location.href=$(this).data("share_url"):(v=window.screenTop+window.innerHeight/2-300,y=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+v+", left="+y+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("threads"),t.a(3,20);case 14:return isMobileDevice()?location.href=$(this).data("share_url"):(b=window.screenTop+window.innerHeight/2-300,x=window.screenLeft+window.innerWidth/2-300,window.open($(this).data("share_url"),"shareWindow","width=600, height=600, top="+b+", left="+x+" ,scrollbars=no,status=no,toolbar=no,location=no,menubar=no,resizable=yes").focus()),at("misskey"),t.a(3,20);case 15:return B($(this).data("share_url"),decodeURIComponent($(this).data("share_text"))),at("kakao"),t.a(3,20);case 16:return N(decodeURIComponent($(this).data("share_title")),decodeURIComponent($(this).data("share_text"))),at("webshareapi"),t.a(3,20);case 17:return at("result_image"),t.a(3,20);case 18:return $("#shareModal").modal("show"),t.a(3,20);case 20:return t.a(2)}},t,this)}));return function(e){return t.apply(this,arguments)}}()),$(document).on("click",".btn-modal-terms_of_service",function(){$.ajax({url:"/modal_terms_of_service",type:"POST",dataType:"html"}).done(function(t){$("#modal-terms_of_service-body").html(t),$("#modal-terms_of_service").modal()}).fail(function(){})}),$(document).on("click",".btn-modal-privacy_policy",function(){$.ajax({url:"/modal_privacy_policy",type:"POST",dataType:"html"}).done(function(t){$("#modal-privacy_policy-body").html(t),$("#modal-privacy_policy").modal()}).fail(function(){})}),window.setLoadAllCallback=function(t,e){for(var n=0,i=0;i<t.length;++i)t[i].onload=function(){++n==t.length&&e(t)}},window.setCanvas=function(t,e){var n=document.getElementById(t),i=n.getContext("2d");if(i.clearRect(0,0,n.width,n.height),e){var o=new Image;o.crossOrigin="Anonymous",o.src=e,o.onload=function(){var t=n.width/o.width,e=o.width*t,r=o.height*t;i.drawImage(o,0,0,e,r)}}},window.setCanvasBgColor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000",n=document.getElementById(t),i=n.getContext("2d");i.fillStyle=e,i.fillRect(0,0,n.width,n.height)},window.drawShindanTitleText=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:81,o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>8&&void 0!==arguments[8]&&arguments[8],l=document.getElementById(t),c=l.getContext("2d");if(c.clearRect(0,0,l.width,l.height),0!=i){var u=l.width,h=l.height,d={x:u/2,y:h/2},f=i;!function(){var h=.68*u;c.font=i+"px "+n;if(e&&e.title){if(isEn(e.title))var p=e.title_array_sp;else p=e.title_array;p.length;var m="",g="",v=[];$.each(p,function(t,e){g=m+e,c.measureText(g).width>h&&(v.push(m),m="",g="",0),m+=e}),v.push(m);var y=0,b=!1,x=[];$.each(v,function(t,e){if(y+=1,""!=e){if(c.measureText(e).width>h){var n=Array.from(e),i="",o="";$.each(n,function(t,e){o=i+e,c.measureText(o).width<=h?i+=e:(i=Array.from(i).slice(0,-1).join("")+"…",b=t)}),e=i}if(x.push(e),b)return!1}});for(var w=x.length,_=x.length>5?5:x.length;_>0&&f*(_-1)*1.3+f>.68*l.height;)_-=1;var k=_,E=[],T=(y=0,0),S=!1;$.each(x,function(t,e){y++,e=e.trim(),y==k&&w>k&&(e=Array.from(e).slice(0,-1).join("")+"...",S=!0);var n=c.measureText(e);if(n.width>T&&(T=n.width),E.push(e),S)return!1});var C=0;1==k?(c.textAlign="center",C=d.x):(c.textAlign="left",C=(u-T)/2),c.textBaseline="middle",D("line"),D("text"),s&&setTimeout(function(){!function(t){var e={};e.shindan_id=shindanTitleShindanId,e.image=$("#"+t).get(0).toDataURL("image/png"),$.ajax({url:"/shindanTitleUpload",type:"POST",data:e,success:function(t){$("#shindanTitleCanvasWrapper").remove()},error:function(){}})}(t)},1e3)}function D(t){var e=d.y-Math.round((f*k+Math.round(1.3*f-f)*(k-1))/2)+f/2;y=0,$.each(E,function(n,i){if(y++,"line"==t&&r>0&&(c.strokeStyle=a,c.lineWidth=r,c.strokeText(i,C,e)),"text"==t&&(c.fillStyle=o,c.fillText(i,C,e)),e+=1.3*f,y>=k)return!1})}}()}},window.isEn=function(t){if(!t||"string"!=typeof t)return!1;for(var e=!0,n=0;n<t.length;n++)if(t.charCodeAt(n)>=256){e=!1;break}return e},$(document).on("click","#rti_page",function(){var t="width=".concat(400,",height=").concat(800,",resizable=yes,scrollbars=yes"),e=(window.open("","ResultWindow",t),$("<form>",{method:"POST",action:"/resultToImage",target:"ResultWindow",style:"display: none;"})),n=$('meta[name="csrf-token"]').attr("content");n&&e.append($("<input>",{type:"hidden",name:"_token",value:n})),e.append($("<input>",{type:"hidden",name:"saveResultData",value:saveResultData})),e.append($("<input>",{type:"hidden",name:"shindan_id",value:shindan_id})),$("body").append(e),e.trigger("submit"),e.remove()}),$(document).on("click",".selectResultVisibility",function(){var t=$(this).data("value"),e=$(this).data("icon"),n=$(this).data("text");setResultVisibility(t,e,n)}),window.setResultVisibility=function(t,e,n){var i=t,o='<i class="fa-light fa-'+e+' fa-fw"></i>',r=n?'<span class="ml-icon">'+n+"</span>":"";$("#saveShindanResultPrivate").val(i),$("#dropdownResultPrivate").html(o+r),$(".selectResultVisibility").removeClass("active"),$("#selectResultVisibility-"+i).addClass("active")},$(document).on("focus keydown","#post-comment",function(t){if(!auth_check)return $(this).val(""),$(this).trigger("blur"),void $("#login-modal").modal("show")}),$(document).on("click",".insert-text",function(){var t=$(this).data("text"),e=$(this).data("target"),n=$("#"+e);if(n.length>0&&(n.is("input")||n.is("textarea"))){var i=n[0].selectionStart,o=n[0].selectionEnd,r=n.val(),a=r.substring(0,i)+t+r.substring(o);n.val(a),n[0].selectionStart=n[0].selectionEnd=i+t.length,n.focus()}}),$(document).ready(function(){var t,e;e=$(window).width(),(t=e>=750?750:e>=728&&e<750?728:e>=336&&e<728?336:300)!=Number(adSlotWidth)&&$.ajax({type:"POST",url:"/setAdSlotWidth",data:{adSlotWidth:t}}),function(){var t=window.navigator.userAgent.toLowerCase(),e=-1!==t.indexOf("iphone")||-1!==t.indexOf("ipad")||-1!==t.indexOf("ipod");if("undefined"==typeof Notification||!("PushManager"in window))return void(e&&(parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||!1)>=16.4&&($(".webpush_subscribe_container").show(),z=!0));$(".webpush_subscribe_container").show();"serviceWorker"in navigator&&window.addEventListener("load",function(){var t=this;navigator.serviceWorker.register("/sw.js").then(function(e){t.registration=e}).catch(function(t){})});"granted"===Notification.permission&&($(".webpush_subscribe_infomation").hide(),z=!1)}()}),window.effectShuffle=function(t,e,n,i){setTimeout(function(){var i=$("#effect_shuffle_"+t),o=e;i.shuffleLetters({text:o,step:Number(n)})},Number(i))},window.shindanEffects=function(){$(".timeline-result .shindanEffects, .v1-minimal-result .shindanEffects, .saveResultPreview .shindanEffects").not("[data-rendered]").each(function(){var t=$(this).next("noscript").text();t&&$(this).text(t),$(this).next("noscript").remove(),$(this).attr("data-rendered","true")});var t=$(".shindanEffects").not(".timeline-result .shindanEffects, .v1-minimal-result .shindanEffects, .saveResultPreview .shindanEffects").not("[data-rendered]");if(t.length){var e=Promise.resolve();setTimeout(function(){$.each(t,function(n,i){var o=n+1==t.length;e=e.then(shindanEffectsLoop.bind(this,n,i,o))})},100)}},window.shindanEffectsLoop=function(t,e,n){return new Promise(function(t,i){function o(n){setTimeout(function(){return $(e).removeClass("typewritercursor"),$(e).attr("data-rendered","true"),window.result_remaining_tasks+=-1,0===window.result_remaining_tasks&&$(".shindan-share-overlay").removeClass("shindan-share-overlay"),t()},n)}$(e).hasClass("typewritercursor")||$(e).addClass("typewritercursor");var r=n?3e3:0;setTimeout(function(){"ef_typing"==$(e).data("mode")?$.each($(e).data("text"),function(t,n){setTimeout(function(){$(e).append(n),$(e).data("text").length==Number(t)+1&&o(r),twemoji.parse(document.getElementById("shindanResult"),{base:twemoji_asset})},Number($(e).data("interval"))*t)}):"ef_shuffle"==$(e).data("mode")&&$(e).shuffleLetters({text:JSON.parse($(e).data("text")),step:Number(JSON.parse($(e).data("step"))),callback:function(){o(r)}})},Number($(e).data("timeout")))})},$(document).on("click",".campaign_banner",function(){$.ajax({type:"POST",url:"/campaigns/banner_click",data:{campaign_id:$(this).data("campaign_id"),shindan_id},context:$(this),success:function(t){window.location.href=$(this).data("url")},error:function(){}})}),window.shindanDescriptionsHeight=function(){var t=document.querySelector("#shindanDescription");if(t){var e=$("#shindanDescription").prop("scrollHeight"),n=window.getComputedStyle(t).maxHeight;e>parseInt(n)&&($("#shindanDescriptionReadMoreBtn").show(),$("#shindanDescriptionGradient").show())}$(document).on("click",".shindanDescriptionReadMoreBtn",function(){$("#shindanDescription")&&($("#shindanDescription").toggleClass("is-open"),$("#shindanDescriptionGradient").toggle(),$(".shindanDescriptionReadMoreBtn").toggle())})};var z=!1;var W=!1;function H(t){var e=["#FF6B6B","#4ECDC4","#45B7D1","#FFA07A","#98D8C8","#F7DC6F","#BB8FCE","#85C1E2"];setTimeout(function(){var n=t.find(".fa-heart");if(0!==n.length)for(var i=n[0].getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop,a=i.left+o+i.width/2,s=i.top+r+i.height/2,l=Math.max(30,2*i.width),c=function(){var t=document.createElement("div");t.className="like-particle";var n=e[Math.floor(Math.random()*e.length)];t.style.backgroundColor=n;var i=2*Math.PI*u/12,o=Math.cos(i)*l,r=Math.sin(i)*l;t.style.left=a-4.5+"px",t.style.top=s-4.5+"px",t.style.setProperty("--tx",o+"px"),t.style.setProperty("--ty",r+"px"),document.body.appendChild(t),setTimeout(function(){t.remove()},700)},u=0;u<12;u++)c()},250)}function V(t){var e=t.find(".result-action-btn-icon i").first();if(0===e.length&&(e=t.find(".btn-function-icon i").first()),0===e.length&&(e=t.find("i").first()),0!==e.length){var n=e.attr("class");e.attr("class","fa-solid fa-check fa-fw"),e.css("color","#17a2b8"),setTimeout(function(){e.attr("class",n),e.css("color","")},1500)}}function U(t,e){t.tooltip&&t.tooltip("hide");var n=document.createElement("div");n.className="copy-success-popover",n.textContent=e;var i=t[0].getBoundingClientRect(),o=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;n.style.visibility="hidden",document.body.appendChild(n);var a,s=n.getBoundingClientRect(),l=i.left+o+i.width/2,c=i.top+r-s.height- -2,u=window.innerWidth,h=s.width/2;a=l-h<o+10?o+10:l+h>o+u-10?o+u-s.width-10:l-h,n.style.left=a+"px",n.style.top=c+"px";var d=l-a;n.style.setProperty("--arrow-left",d+"px"),n.style.visibility="visible",setTimeout(function(){n.classList.add("show")},10),setTimeout(function(){n.classList.remove("show"),setTimeout(function(){n.remove()},300)},1500)}function q(t){var e=t.find(".result-action-btn-icon i").first();0===e.length&&(e=t.find(".btn-function-icon i").first()),0===e.length&&(e=t.find("i").first());for(var n=(e.length>0?e[0]:t[0]).getBoundingClientRect(),i=window.pageXOffset||document.documentElement.scrollLeft,o=window.pageYOffset||document.documentElement.scrollTop,r=n.left+i+n.width/2,a=n.top+o+n.height/2,s=2*Math.max(30,2*n.width),l=0;l<3;l++)setTimeout(function(){var t=document.createElement("div");t.className="copy-ripple",t.style.left=r+"px",t.style.top=a+"px",t.style.setProperty("--final-size",s+"px"),document.body.appendChild(t),setTimeout(function(){t.remove()},800)},100*l)}function Y(){if(!$("#timelinePostComment").data("posted")&&!$("#timelinePostExpanded").hasClass("show")){if("undefined"!=typeof saveResultPreviewHtml&&saveResultPreviewHtml){$("#timelinePostPreview").html(saveResultPreviewHtml);var t=document.querySelector("#timelinePostPreview .v2-timeline-result:not([data-rendered])");if(t&&"function"==typeof renderTimelineResult){var e=t.dataset.blocks,n=t.dataset.context;if(e&&n)try{var i=JSON.parse(e),o=JSON.parse(n);renderTimelineResult(t,{blocks:i,context:o},"timeline").then(function(){t.setAttribute("data-rendered","true")})}catch(t){}}if("function"==typeof initV1Charts){var r=document.getElementById("timelinePostPreview");r&&initV1Charts(!0,r,"timeline")}var a=document.getElementById("timelinePostPreview");a&&f(a),"function"==typeof window.shindanEffects&&window.shindanEffects(),"function"==typeof lazyload&&lazyload()}if($("#timelinePostExpanded").addClass("show"),$("#timelinePostExpandedBottom").addClass("show"),$("#timelinePostComment").addClass("expanded"),$("#timelinePostComment").data("guest"))$("#timelinePostComment").prop("disabled",!0),$("#timelineDropdownPrivate").prop("disabled",!0),$("#timelineEmojiButtons").addClass("disabled"),$("#timelineEmojiButtons button").prop("disabled",!0);else{var s=$("#timelinePostComment").data("nice-comment-placeholder");s&&$("#timelinePostComment").attr("placeholder",s)}$("#timelineModalOverlay").addClass("show")}}function X(t,e,n){if("ja"!==n&&"cn"!==n||1!==parseInt(e))window.location.href=t;else{var i=$('meta[name="csrf-token"]').attr("content"),o=document.createElement("form");o.action="/changeLocale",o.method="POST";var r=document.createElement("input");r.type="hidden",r.name="_token",r.value=i,o.appendChild(r);var a=document.createElement("input");a.type="hidden",a.name="locale",a.value=n,o.appendChild(a),document.body.appendChild(o),o.submit()}}$(document).on("click",".webpush_subscribe",function(){W||$.ajax({url:"/webpush/getModal",type:"POST",dataType:"json"}).done(function(t){$("#webpush_modal_title").html(t.title),$("#webpush_modal_body").html(t.body),W=!0,z&&($("#webpush_subscribe_button").prop("disabled",!0),$("#webpush_addhome_ios").show())}),$("#webpush_modal").modal("show")}),$(document).on("click","#webpush_subscribe_button",function(){$.ajax({url:"/webpush/getMessage",type:"POST",dataType:"json",async:!1}).done(function(t){var e=t,n=!1,i=!1;if("undefined"==typeof Notification&&(n=e.unavailable,i="danger"),"denied"===Notification.permission&&(n=e.denied,i="warning"),"granted"===Notification.permission&&(n=e.granted,i="success"),"PushManager"in window||(n=e.unavailable,i="danger"),n)return showAlertToast(n,i),void $("#webpush_modal").modal("hide");var o={userVisibleOnly:!0},r=webpush_vapid_public_key;r&&(o.applicationServerKey=function(t){for(var e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),i=window.atob(n),o=new Uint8Array(i.length),r=0;r<i.length;++r)o[r]=i.charCodeAt(r);return o}(r)),registration.pushManager.subscribe(o).then(function(t){$("#webpush_subscribe_button").prop("disabled",!0);var n=document.querySelector('meta[name="csrf-token"]').getAttribute("content");fetch("/webpush/subscribe",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","X-CSRF-Token":n},body:JSON.stringify(t)}).then(function(){showAlertToast(e.done,"success"),$("#webpush_subscribe_button").prop("disabled",!1),$("#webpush_modal").modal("hide")})})})}),$(document).on("focus","#timelinePostComment",function(){Y()}),$(document).on("click","#timelinePostComment",function(t){t.stopPropagation(),Y()}),$(document).on("click","#timelinePostClose",function(){$("#timelinePostExpanded").removeClass("show"),$("#timelinePostExpandedBottom").removeClass("show"),$("#timelinePostComment").removeClass("expanded").val("").blur(),$("#timelineModalOverlay").removeClass("show"),$("#timelinePostComment").data("guest")&&($("#timelinePostComment").prop("disabled",!1),$("#timelineDropdownPrivate").prop("disabled",!1),$("#timelineEmojiButtons").removeClass("disabled"),$("#timelineEmojiButtons button").prop("disabled",!1));var t=$("#timelinePostComment").data("original-placeholder");t&&$("#timelinePostComment").attr("placeholder",t)}),$(document).on("click","#timelineModalOverlay",function(){$("#timelinePostExpanded").removeClass("show"),$("#timelinePostExpandedBottom").removeClass("show"),$("#timelinePostComment").removeClass("expanded").val("").blur(),$("#timelineModalOverlay").removeClass("show"),$("#timelinePostComment").data("guest")&&($("#timelinePostComment").prop("disabled",!1),$("#timelineDropdownPrivate").prop("disabled",!1),$("#timelineEmojiButtons").removeClass("disabled"),$("#timelineEmojiButtons button").prop("disabled",!1));var t=$("#timelinePostComment").data("original-placeholder");t&&$("#timelinePostComment").attr("placeholder",t)}),$(document).on("click",".timeline-visibility-item",function(){var t=$(this).data("value"),e=$(this).data("icon"),n=$(this).data("text");$("#timelinePostPrivate").val(t),$("#timelineDropdownPrivate").html('<i class="fa-solid fa-'.concat(e,'"></i> <span id="timelinePrivateText">').concat(n,"</span>"))}),$(document).on("submit","#timelinePostForm",function(t){if(t.preventDefault(),"undefined"==typeof auth_check||auth_check){var e=$("#timelinePostSubmit"),n={comment:$("#timelinePostComment").val(),private:$("#timelinePostPrivate").val()};"undefined"!=typeof shindan_id&&"undefined"!=typeof saveResultData?(n.shindan_id=shindan_id,n.saveResult=saveResultData,e.prop("disabled",!0),$.ajax({url:"/saveResult",type:"POST",dataType:"json",data:n}).done(function(t){if("success"===t.status){if($(".timeline-modal-body").scrollTop(0),t.html){var n=$(t.html),i=$("#timelineModalRows");i.length>0&&(i.prepend(n),$("#timelineEmptyMessage").hide(),"function"==typeof updateTimestamps&&updateTimestamps(),n.css({"background-color":"#fffacd",transition:"background-color 3s ease-out"}),n.addClass("new-post-highlight"),n.hide().fadeIn(500,function(){var t=this;"undefined"!=typeof twemoji&&twemoji.parse(this,{base:twemoji_asset}),setTimeout(function(){$(t).css("background-color","transparent")},100)}),"function"==typeof initializeTimelineResults&&initializeTimelineResults(n.get(0)),"function"==typeof lazyload&&lazyload(),setTimeout(function(){n.removeClass("new-post-highlight"),"function"==typeof adjustTimelineHeight&&adjustTimelineHeight()},3e3))}else if(t.private_label){var o=$("#timelineModalRows");if(o.length>0&&t.message){var r=$('<div class="alert alert-success alert-dismissible fade show rounded-0 mb-3" role="alert">'+t.message+'<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button></div>');o.prepend(r)}}$("#timelinePostExpanded").removeClass("show"),$("#timelinePostExpandedBottom").removeClass("show"),$("#timelinePostComment").removeClass("expanded").val("").blur(),$("#timelineModalOverlay").removeClass("show");var a=$("#timelinePostComment").data("posted-placeholder");a&&$("#timelinePostComment").attr("placeholder",a),$("#timelinePostComment").prop("disabled",!0).data("posted",!0)}else if(showAlertToast(t.message,t.status,1e4),t.duplicate){$("#timelinePostExpanded").removeClass("show"),$("#timelinePostExpandedBottom").removeClass("show"),$("#timelinePostComment").removeClass("expanded").val("").blur(),$("#timelineModalOverlay").removeClass("show");var s=$("#timelinePostComment").data("posted-placeholder");s&&$("#timelinePostComment").attr("placeholder",s),$("#timelinePostComment").prop("disabled",!0).data("posted",!0)}else{$("#timelinePostExpanded").removeClass("show"),$("#timelinePostExpandedBottom").removeClass("show"),$("#timelinePostComment").removeClass("expanded").val("").blur(),$("#timelineModalOverlay").removeClass("show");var l=$("#timelinePostComment").data("original-placeholder");l&&$("#timelinePostComment").attr("placeholder",l)}e.prop("disabled",!1)}).fail(function(t){if(401===t.status){$("#login-modal").modal("show");var n=t.responseJSON&&t.responseJSON.message?t.responseJSON.message:"ログインが必要です";showAlertToast(n,"warning")}else if(t.responseJSON&&t.responseJSON.errors){var i="";$.each(t.responseJSON.errors,function(t,e){i+=e.join(" ")+" "}),showAlertToast(i.trim(),"danger")}else showAlertToast("エラーが発生しました","danger");e.prop("disabled",!1)})):showAlertToast("診断データが見つかりません","danger")}else $("#login-modal").modal("show")}),$(document).on("click",".reaction-btn",T(_().m(function t(){var e,n,i,o,r;return _().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e=$(this).data("id"),n=$(this).data("m"),i=$(this).data("zero"),(o=$(this)).tooltip("hide"),!o.prop("disabled")){t.n=1;break}return t.a(2);case 1:if("s"===n||"announcement"===n||auth_check){t.n=2;break}return $("#login-modal").modal("show"),t.a(2);case 2:if(o.prop("disabled",!0),"s"!==n&&"announcement"!==n||auth_check){t.n=6;break}return t.p=3,t.n=4,it(o,e,n);case 4:return t.p=4,o.prop("disabled",!1),t.f(4);case 5:return t.a(2);case 6:r=o.data("icon-weight")||"light",$.ajax({url:"/reactions/post",type:"POST",dataType:"json",data:{id:e,m:n,zero:i,icon_weight:r}}).done(function(t){var i=$(".reaction-btn-"+n+"-"+e);if(i.hasClass("result-action-btn")){$(".reaction-iconwrapper-"+n+"-"+e).html(t.icon);var o=$(".reaction-num-"+n+"-"+e);if((parseInt(t.num.replace(/[^0-9]/g,""))||0)>0)o.html(t.num);else{var r=o.data("like-text")||"いいね";o.html(r)}var a="fa-beat",s=$(".reaction-icon-"+n+"-"+e),l=1==t.status?"1.5":".5";s.addClass(a).css("--fa-beat-scale",l),1==t.status&&H(i),setTimeout(function(){s.removeClass(a).css("--fa-beat-scale",""),i.attr("data-original-title",t.title)},1e3)}else{$(".reaction-iconwrapper-"+n+"-"+e).html(t.icon),$(".reaction-num-"+n+"-"+e).html(t.num);var c="fa-beat",u=$(".reaction-icon-"+n+"-"+e);0===u.length&&(u=$(".reaction-iconwrapper-"+n+"-"+e).find(".fa-heart"));var h=1==t.status?"1.5":".5";u.addClass(c).css("--fa-beat-scale",h),1==t.status&&H(i),setTimeout(function(){u.removeClass(c).css("--fa-beat-scale",""),i.attr("title",t.title).tooltip("dispose").tooltip()},1e3)}}).fail(function(t){var e;if(419===t.status){var n,i=(null===(n=window.guestReactionMessages)||void 0===n?void 0:n.needReload)||"ページを再読み込みしてください";showAlertToast(i,"danger",5e3)}else 403===t.status&&null!==(e=t.responseJSON)&&void 0!==e&&e.message&&showAlertToast(t.responseJSON.message,"danger",5e3)}).always(function(){o.prop("disabled",!1)});case 7:return t.a(2)}},t,this,[[3,,4,5]])}))),$(document).on("click",".password-toggle",function(){var t=$(this).data("changeto"),e=htmlspecialchars_decode($(this).data("password_text_show")),n=htmlspecialchars_decode($(this).data("password_text_hide")),i=$(this).data("target");"show"==t&&($(this).html(n),$(this).data("changeto","hide"),$(i).attr("type","text")),"hide"==t&&($(this).html(e),$(this).data("changeto","show"),$(i).attr("type","password")),$(i).trigger("focus")}),window.validateUserInputs=function(){var t=!0;return $(".shindanUserInput").each(function(){if(!this.checkValidity())return t=!1,this.reportValidity(),!1}),t},window.replaceUserInputs=function(t){if(0!==$(".replaceUserInput_"+t).length){var e={};$(".shindanUserInput").each(function(){var t=$(this).data("variable"),n=$(this).val(),i=$(this).data("nameinput"),o=$(this).data("user_input_number"),r=1==i&&0==n.length?$("#randname").val():n;e[o]={variable:t,value:r,number:o}}),Object.values(e).forEach(function(e){$(".replaceUserInput_"+t).each(function(){var t,n=$(this).html(),i=1===$(this).data("replace_user_input_bold")?" font-weight-bold":"";t=$(this).find(".replaced_userInput_"+e.number).length>0?$(this).find(".replaced_userInput_"+e.number).prop("outerHTML"):e.variable;var o='<span class="replaced_userInput_'+e.number+i+'">'+htmlspecialchars(e.value)+"</span>";n=n.replaceAll(t,o),$(this).html(n)})})}},window.shortenText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=[],o="";if(t.length>e){for(var r=0;r<(e-1)/e;r++)i.push(t.substr(r*e,e));o=i.join()+n}else o=t;return o},window.renderAllV2TimelineResults=function(){if(window.renderTimelineResult){var t=document.querySelectorAll(".v2-timeline-result:not([data-rendered])"),e=Array.from(t).filter(function(t){return null!==t.offsetParent});if(e.length>0){var n=e.map(function(){var t=T(_().m(function t(e){var n,i,o,r,a;return _().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=e.querySelector("div[data-blocks]")){t.n=1;break}return t.a(2);case 1:if(i=n.dataset.blocks,o=n.dataset.context,!i||!o){t.n=5;break}return t.p=2,r=JSON.parse(i),a=JSON.parse(o),t.n=3,window.renderTimelineResult(n,{blocks:r,context:a});case 3:e.setAttribute("data-rendered","true"),t.n=5;break;case 4:t.p=4,t.v;case 5:return t.a(2)}},t,null,[[2,4]])}));return function(e){return t.apply(this,arguments)}}());Promise.all(n).then(function(){adjustTimelineHeight();var t=document.querySelector(".result-action-buttons");t&&t._recalculatePosition&&t._recalculatePosition()})}else{"function"==typeof adjustTimelineHeight&&adjustTimelineHeight();var i=document.querySelector(".result-action-buttons");i&&i._recalculatePosition&&i._recalculatePosition()}}else"function"==typeof adjustTimelineHeight&&adjustTimelineHeight()},window.initializeTimelineResults=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||document;renderAllV2TimelineResults();var e=".timeline-result, .saveResultPreview";(t.querySelectorAll?t.querySelectorAll(e):$(t).find(e).toArray()).forEach(function(t){"function"==typeof initV1Charts&&initV1Charts(!0,t,"timeline"),f(t)})},window.adjustTimelineHeight=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;$(".timeline-text-comment-block").each(function(){t&&$(this).closest(t).length>0||($(this).closest(".new-post-highlight").length>0||$(this).prop("scrollHeight")>500&&$(this).find(".tweet-show-more-background,.tweet-show-more-background-comment").show())}),$(".tweet-show-more-btn").click(function(){$(this).closest(".timeline-text-comment-block").addClass("expanded")}),$(".tweet-show-less-btn").click(function(){$(this).closest(".timeline-text-comment-block").removeClass("expanded")})},window.adjustShindanTimelineHeight=function(){},$(document).on("click",".close_modal",function(){var t=$(this).data("target");$(t).modal("hide")});var G=document.querySelector("#languageSelector");G&&(G.addEventListener("click",function(t){t.stopPropagation()}),G.addEventListener("change",function(t){var e=this.options[this.selectedIndex];X(e.value,e.dataset.change_locale,e.dataset.locale)})),$(document).on("click",".btn-change_locale",function(){X($(this).data("url"),$(this).data("change_locale"),$(this).data("locale"))});var Z=!1;function J(t,e,n){var i="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),i="; expires="+o.toUTCString()}document.cookie=t+"="+(e||"")+i+"; path=/"}$(document).on("click",".openSpeakModal",function(){Z||initializeVoiceFunction();var t=$(this).data("text"),e=$(this).data("language"),n=htmlspecialchars(decodeURIComponent(t)).replace(/\n/g,"<br>").replace(/ /g," ").replace(/http[s]?:\/\/[\w-._~:\/?#[\]@!&$'()*+,;=%]+/g,"");$("#speakModalText").html(n),$("#speakBlock").attr("data-text",t).attr("data-language",e),$("#speakModal").modal("show")}),window.initializeVoiceFunction=function(){var t=null,e=null,n=document.getElementById("speakBlock"),i=document.getElementById("speakButton"),o=document.getElementById("speakerSelect"),r=document.getElementById("styleSelect"),a=document.getElementById("speakButtonIcon"),s=n.dataset.default_audio,l=n.dataset.text_play,c=n.dataset.text_load+"...",u=n.dataset.text_stop,h='<i class="fa-solid fa-volume fa-fw mr-2"></i>'+l,d='<i class="fa-solid fa-compact-disc fa-spin fa-fw mr-2"></i>'+u,f='<i class="fa-solid fa-spinner fa-spin fa-fw mr-2"></i>'+c,p=[],m=new Option(s,-1);o.add(m);var g=new Option("-",-1);function v(t){r.innerHTML="",0===t.length?(r.add(g),r.classList.add("d-none")):(t.forEach(function(t){var e=new Option(t.name,t.id);r.add(e)}),r.classList.remove("d-none"))}function y(){a.innerHTML=d,i.disabled=!1,$(".form-speaker-select").prop("disabled",!0)}function b(){a.innerHTML=h,i.disabled=!1,$(".form-speaker-select").prop("disabled",!1)}function x(){window.speechSynthesis.speaking&&window.speechSynthesis.cancel(),t&&!t.paused&&(t.pause(),t.currentTime=0),b()}r.add(g),fetch("http://localhost:50021/speakers").then(function(t){return t.json()}).then(function(t){(p=t).forEach(function(t){var e=new Option("VOICEVOX:"+t.name,t.speaker_uuid);o.add(e)});var e=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return null}("__audio_speaker");if(e){var n=e.split(",");if(2===n.length){var i=n[0],a=n[1];o.value=i,o.dispatchEvent(new Event("change")),setTimeout(function(){return r.value=a},0)}}else{o.value="388f246b-8c41-4ac1-8e2d-5d79f3ff56d9",o.dispatchEvent(new Event("change")),setTimeout(function(){return r.value=3},0)}-1==o.value?o.classList.remove("d-none"):(o.classList.remove("d-none"),r.classList.remove("d-none"))}).catch(function(t){}),o.addEventListener("change",function(t){if("-1"===t.target.value)v([]);else{var e=p.find(function(e){return e.speaker_uuid===t.target.value});e&&v(e.styles)}}),i.addEventListener("click",function(){var s,l=r.value,c=n.dataset.text,u=n.dataset.language,h=decodeURIComponent(c).replace(/\n/g,", ").replace(/http[s]?:\/\/[\w-._~:\/?#[\]@!$&'()*+,;=%]+/g," ");if(e&&e.abort(),"-1"!==l)if(!t||t.paused){a.innerHTML=f,i.disabled=!0,$(".form-speaker-select").prop("disabled",!0);var d=(e=new AbortController).signal,p="http://localhost:50021/audio_query?text=".concat(encodeURIComponent(h),"&speaker=").concat(l);fetch(p,{method:"POST",signal:d}).then(function(t){return t.json()}).then(function(t){return fetch("http://localhost:50021/synthesis?speaker=".concat(l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),signal:d})}).then(function(t){return t.blob()}).then(function(e){var n=URL.createObjectURL(e);t=new Audio(n),y(),t.play(),window.dataLayer.push({event:"audio_playing",selectedSpeaker:o.options[o.selectedIndex].text+":"+r.options[r.selectedIndex].text}),t.onended=function(){b(),J("__audio_speaker",o.value+","+r.value,365)}}).catch(function(t){t.name,b()})}else x();else if("speechSynthesis"in window){if(window.speechSynthesis.speaking&&!window.speechSynthesis.paused)return void x();var m=new SpeechSynthesisUtterance(h);u.length>0&&(s=u,window.speechSynthesis.getVoices().some(function(t){return t.lang===s}))&&(m.lang=u),m.onstart=function(){window.dataLayer.push({event:"audio_playing",selectedSpeaker:o.options[o.selectedIndex].text+":"+r.options[r.selectedIndex].text}),y()},m.onend=function(){b(),J("__audio_speaker",l,365)},window.speechSynthesis.speak(m)}else alert("Your browser does not support the speech synthesis API.")}),$("#speakModal").on("hide.bs.modal",function(){e&&(e.abort(),e=null),x()}),b(),Z=!0};var Q={ja:{seconds:"秒",minutes:"分",hours:"時間",days:"日",weeks:"週間",months:"月",years:"年",moreThanMonth:"1ヶ月+",moreThanYear:"1年+",date:function(t,e,n,i,o){return"".concat(e,"-").concat(n)},fullDate:function(t,e,n,i,o){return"".concat(t,"-").concat(e,"-").concat(n)}},en:{seconds:"s",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",moreThanMonth:"1mo+",moreThanYear:"1y+",date:function(t,e,n,i,o){return"".concat(e,"-").concat(n)},fullDate:function(t,e,n,i,o){return"".concat(t,"-").concat(e,"-").concat(n)}},kr:{seconds:"초",minutes:"분",hours:"시간",days:"일",weeks:"주",months:"개월",years:"년",moreThanMonth:"1개월 이상",moreThanYear:"1년 이상",date:function(t,e,n,i,o){return"".concat(e,"-").concat(n)},fullDate:function(t,e,n,i,o){return"".concat(t,"-").concat(e,"-").concat(n)}},cn:{seconds:"秒",minutes:"分",hours:"小时",days:"天",weeks:"周",months:"月",years:"年",moreThanMonth:"1个月以上",moreThanYear:"1年以上",date:function(t,e,n,i,o){return"".concat(e,"-").concat(n)},fullDate:function(t,e,n,i,o){return"".concat(t,"-").concat(e,"-").concat(n)}},th:{seconds:"วินาที",minutes:"นาที",hours:"ชั่วโมง",days:"วัน",weeks:"สัปดาห์",months:"เดือน",years:"ปี",moreThanMonth:"1เดือน+",moreThanYear:"1ปี+",date:function(t,e,n,i,o){return"".concat(e,"-").concat(n)},fullDate:function(t,e,n,i,o){return"".concat(t,"-").concat(e,"-").concat(n)}}};var K=null;function tt(t){t.find(".validation-errors").remove()}function et(t){var e=t.data("comment-id"),n=t.data("parent-id"),i=t.data("reply-to"),o=t.data("type"),r=t.data("id"),a=t.data("single"),s=$("#"+("reply-form-"+a+"-"+e));if(s.children().length>0)s.empty();else{var l=$("#original-comment-form").clone();l.removeAttr("id").css("display","block");var c=l.find("form"),u=c.find('input[name="content"]'),h="comment-input-"+e;u.attr("id",h),i?u.attr("placeholder","To: "+i):u.removeAttr("placeholder"),c.find('input[name="reply_to_comment_id"]').remove(),c.find('input[name="parent_comment_id"]').remove(),c.find('input[name="type"]').remove(),c.find('input[name="id"]').remove(),c.find('input[name="single"]').remove(),c.append('<input type="hidden" name="reply_to_comment_id" value="'+e+'">'),c.append('<input type="hidden" name="parent_comment_id" value="'+n+'">'),c.append('<input type="hidden" name="type" value="'+o+'">'),c.append('<input type="hidden" name="id" value="'+r+'">'),c.append('<input type="hidden" name="single" value="'+a+'">'),l.find(".insert-text").attr("data-target",h),s.html(l)}}function nt(t){var e;(e=t.hasClass("comment-item")?t:t.find(".comment-item")).addClass("comment-highlighted"),setTimeout(function(){e.css({transition:"background-color 5s ease-in-out","background-color":"transparent"}),setTimeout(function(){e.removeClass("comment-highlighted").css({transition:"","background-color":""})},5e3)},100)}function it(t,e,n){return ot.apply(this,arguments)}function ot(){return(ot=T(_().m(function t(e,n,i){var o,r,a,s,l,c,u,h,d,f,p,m,g,v,y,b,x,w,k,E,T,S,C,D,A,M;return _().w(function(t){for(;;)switch(t.p=t.n){case 0:if(e.tooltip("hide"),void 0!==window.anonymousReaction){t.n=1;break}return t.a(2);case 1:if(o=window.anonymousReaction,r=o.saveAnonymousReaction,a=o.deleteAnonymousReaction,s=o.isItemLiked,l="s"===i?"shindan":i,t.p=2,!(c=s(l,n))){t.n=5;break}return t.n=3,a(l,n);case 3:if((u=t.v).success||"Reaction not found"!==u.message){t.n=4;break}return h="shindan"===l?"liked_shindans":"liked_announcements",d=(d=JSON.parse(localStorage.getItem(h)||"[]")).filter(function(t){return t!==n}),localStorage.setItem(h,JSON.stringify(d)),rt(e,i,n,!1,u.total_reactions),t.a(2);case 4:t.n=8;break;case 5:return t.n=6,r(l,n);case 6:if((u=t.v).success||"ALREADY_REACTED"!==u.error_code){t.n=7;break}return f="shindan"===l?"liked_shindans":"liked_announcements",(p=JSON.parse(localStorage.getItem(f)||"[]")).includes(n)||(p.push(n),localStorage.setItem(f,JSON.stringify(p))),rt(e,i,n,!0,u.total_reactions),t.a(2);case 7:u.success&&"shindan"===l&&!sessionStorage.getItem("guest_reaction_toast_shown")&&(y=((null===(m=window.guestReactionMessages)||void 0===m?void 0:m.success)||"ゲストとしていいねしました")+'<br><span class="small">'+((null===(g=window.guestReactionMessages)||void 0===g?void 0:g.loginPrompt)||"ログインするといいねした診断を管理できます")+'</span><br><span class="alert-link cursor-pointer" data-toggle="modal" data-target="#login-modal">'+((null===(v=window.guestReactionMessages)||void 0===v?void 0:v.loginButton)||"ログイン/新規登録")+"</span>",showAlertToast(y,"success",8e3),sessionStorage.setItem("guest_reaction_toast_shown","true"));case 8:u.success&&rt(e,i,n,!c,u.total_reactions),t.n=10;break;case 9:t.p=9,(M=t.v).response&&429===M.response.status?(w='<br><span class="alert-link cursor-pointer" data-toggle="modal" data-target="#login-modal">'+((null===(b=window.guestReactionMessages)||void 0===b?void 0:b.errorLoginPrompt)||"ログインをすると、制限なくいいねをすることができます")+"</span>",k=((null===(x=window.guestReactionMessages)||void 0===x?void 0:x.rateLimitError)||"短時間に多くのリクエストが送信されました。しばらく待ってから再度お試しください。")+w,showAlertToast(k,"danger",8e3)):M.response&&403===M.response.status?M.response.data&&"NEED_RELOAD"===M.response.data.error_code?(T=(null===(E=window.guestReactionMessages)||void 0===E?void 0:E.needReload)||"ページを再読み込みしてください",showAlertToast(T,"danger",5e3)):(C=(null===(S=M.response.data)||void 0===S?void 0:S.error)||"エラーが発生しました",showAlertToast(C,"danger",5e3)):(A='<br><span class="alert-link cursor-pointer" data-toggle="modal" data-target="#login-modal">'+((null===(D=window.guestReactionMessages)||void 0===D?void 0:D.errorLoginPrompt)||"ログインをすると、制限なくいいねをすることができます")+"</span>",showAlertToast("エラーが発生しました。ページを再読み込みしてください。"+A,"danger",8e3));case 10:return t.a(2)}},t,null,[[2,9]])}))).apply(this,arguments)}function rt(t,e,n,i,o){var r,a,s=$(".reaction-iconwrapper-"+e+"-"+n),l=$(".reaction-num-"+e+"-"+n),c=t.data("icon-weight")||"light";i?s.html('<i class="fa-solid fa-fw fa-heart icon-myreaction reaction-icon-'+e+"-"+n+'"></i>'):s.html('<i class="fa-'+c+" fa-fw fa-heart reaction-icon-"+e+"-"+n+'"></i>');var u=i?(null===(r=window.guestReactionMessages)||void 0===r?void 0:r.tooltipUnlike)||"いいねを取り消す":(null===(a=window.guestReactionMessages)||void 0===a?void 0:a.tooltipLike)||"診断にいいねする";t.attr("title",u),t.attr("data-original-title",u);var h=t.data("bs.tooltip");if(h&&(h.config.title=u),t.hasClass("result-action-btn"))if(o>0)l.html(o);else{var d=l.data("like-text")||"いいね";l.html(d)}else o>0?l.html('<span><span class="roundNumber">'+o+'</span><span class="numelar"></span></span>'):l.html('<span><span class="roundNumber">0</span><span class="numelar"></span></span>');var f=$(".reaction-icon-"+e+"-"+n),p="fa-beat",m=i?"1.5":".5";f.addClass(p).css("--fa-beat-scale",m),i&&H(t),setTimeout(function(){f.removeClass(p).css("--fa-beat-scale","")},1e3)}function at(t){"undefined"!=typeof shindan_id&&$.ajax({type:"POST",url:"/stats/share",data:{shindan_id,share_target:t,_token:$('meta[name="csrf-token"]').attr("content")},success:function(t){},error:function(t,e,n){}})}window.updateTimestamps=function(){$(".timeline-timestamp").not(".shindan-timeline-timestamp").each(function(){var t=function(t,e){var n=new Date,i=new Date(1e3*t),o=n-i,r=Math.ceil(o/1e3),a=Math.ceil(o/6e4),s=Math.ceil(o/36e5),l=(Math.ceil(o/864e5),Q[e]);return o<6e4?"".concat(r).concat(l.seconds):o<36e5?"".concat(a).concat(l.minutes):o<864e5?"".concat(s).concat(l.hours):o<31536e6?l.date(i.getFullYear(),i.getMonth()+1,i.getDate(),i.getHours(),i.getMinutes()):l.fullDate(i.getFullYear(),i.getMonth()+1,i.getDate(),i.getHours(),i.getMinutes())}($(this).data("timestamp"),locale);$(this).text(t)}),$(".shindan-timeline-timestamp").each(function(){var t=function(t,e){var n=new Date-new Date(1e3*t),i=Math.floor(n/1e3),o=Math.floor(n/6e4),r=Math.floor(n/36e5),a=Math.floor(n/864e5),s=Math.floor(n/6048e5),l=Q[e];return n<6e4?"".concat(i).concat(l.seconds):n<36e5?"".concat(o).concat(l.minutes):n<864e5?"".concat(r).concat(l.hours):n<6048e5?"".concat(a).concat(l.days):n<2592e6?"".concat(s).concat(l.weeks):n<31536e6?l.moreThanMonth:l.moreThanYear}($(this).data("timestamp"),locale);$(this).text(t)}),$('[data-toggle="tooltip"]').each(function(){$(this).data("bs.tooltip")||$(this).tooltip()}),null===K&&(K=setInterval(updateTimestamps,3e4))},window.updateShindanTimestamps=function(){updateTimestamps()},window.turnstileCallback_shindan=function(t){$(".shindanBtnTurnStile").prop("disabled",!1),$("#shindanSubmitSpinner").remove()},window.customConfirm=function(t){return new Promise(function(e,n){document.getElementById("customConfirmMessage").innerText=t,$("#customConfirmModal").modal("show");var i=document.getElementById("customConfirmOk"),o=document.getElementById("customConfirmCancel"),r=function(){e(!0),s()},a=function(){e(!1),s()};function s(){i.removeEventListener("click",r),o.removeEventListener("click",a),$("#customConfirmModal").modal("hide")}i.addEventListener("click",r),o.addEventListener("click",a)})},$(document).on("submit",".new-comment-form, .reply-comment-form",function(t){t.preventDefault();var e=$(this),n=e.find('button[type="submit"]');tt(e),n.prop("disabled",!0),$.ajax({url:e.attr("action"),type:"POST",data:e.serialize(),success:function(t){if(e.hasClass("new-comment-form")){var n=$(t.html).hide().prependTo("#comments-list").fadeIn();nt(n),twemoji.parse(n[0],{base:twemoji_asset})}else if(e.hasClass("reply-comment-form")){var i="replies-list-"+e.find('input[name="parent_comment_id"]').val(),o=$("#"+i),r=null;if(0===o.length)o=$("<div>",{id:i,class:"replies-list"}),e.closest(".comment-item").after(o),o.append(t.html),r=o.children().last();else if(e.closest("#"+i).length>0){var a=e.closest(".comment-item");a.after(t.html),r=a.next()}else o.prepend(t.html),r=o.children().first();r.hide().fadeIn(),nt(r),r.each(function(){twemoji.parse(this,{base:twemoji_asset})})}updateTimestamps(),e.find('input[name="content"]').val(""),e.hide()},error:function(t){if(422===t.status){var n=t.responseJSON.errors;!function(t,e){tt(t);var n=$('<div class="validation-errors text-danger small mt-1"></div>');$.each(e,function(t,e){$.each(e,function(t,e){n.append("<div>"+e+"</div>")})}),t.append(n)}(e,n)}else alert("error")},complete:function(){n.prop("disabled",!1)}})}),$(document).on("click",".btn-reply",function(){auth_check?et($(this)):P()}),$(document).on("click",".order-button",function(t){var e=$(this).data("order"),n=$(this).data("mode");if(!("themes"!==n&&"search"!==n||"popular"!==e&&"favorites"!==e||auth_check))return t.preventDefault(),P(),!1}),$(document).on("click","#load-more-comments",function(){var t=$(this),e=t.data("page"),n=t.data("type"),i=t.data("id");$.ajax({url:"/comments/getComments",type:"POST",data:{type:n,id:i,page:e,_token:$('meta[name="csrf-token"]').attr("content")},success:function(e){var n=$(e.html).hide().appendTo("#comments-list").fadeIn();nt(n),n.each(function(){twemoji.parse(this,{base:twemoji_asset})}),updateTimestamps(),e.next_page?t.data("page",e.next_page):t.remove()},error:function(){alert("コメントの読み込みに失敗しました。")}})}),$(document).on("click",".load-more-replies",function(){var t=$(this).data("parent-id"),e=$(this).data("type"),n=$(this).data("id"),i=$(this).data("single"),o=$(this).data("page"),r=$(this);$.ajax({url:"/comments/getReplies",type:"POST",data:{parent_id:t,page:o,type:e,id:n,single:i,_token:$('meta[name="csrf-token"]').attr("content")},success:function(e){r.remove();var n=$(e.html).hide().appendTo("#replies-list-"+t).fadeIn(100);nt(n),n.each(function(){twemoji.parse(this,{base:twemoji_asset})}),updateTimestamps(),e.next?$('.load-more-replies[data-parent-id="'+t+'"]').data("page",o+1):$('.load-more-replies[data-parent-id="'+t+'"]').remove()},error:function(){alert("返信の読み込みに失敗しました。")}})}),$(document).on("click",".comment-delete-btn",T(_().m(function t(){var e,n,i;return _().w(function(t){for(;;)switch(t.n){case 0:return e=$(this),n=e.data("comment_id"),i=confirm_delete,t.n=1,customConfirm(i);case 1:t.v&&$.ajax({url:"/comments/delete",type:"POST",data:{id:n,_token:$('meta[name="csrf-token"]').attr("content")}}).done(function(t){"success"==t.status&&($("#comment-"+n).addClass("comment-highlighted").fadeOut(1500),setTimeout(function(){$("#comment-"+n).remove()},1500)),showAlertToast(t.message,t.status)}).fail(function(){showAlertToast("Error","danger")});case 2:return t.a(2)}},t,this)}))),$(document).on("click",".comment-single-btn",T(_().m(function t(){var e,n,i;return _().w(function(t){for(;;)switch(t.n){case 0:e=$(this),n=e.data("id"),i=!!e.hasClass("comment-single-hide-reply"),$(".tooltip").tooltip("hide"),$.ajax({url:"/comments/getSingleComment",type:"POST",data:{id:n,_token:$('meta[name="csrf-token"]').attr("content")}}).done(function(t){if(t.html){if($("#modal-singleComment-body").html(t.html),!i){var e=$("#modal-singleComment-body").find('.btn-reply[data-comment-id="'+n+'"]');et($(e))}$("#modal-singleComment").one("shown.bs.modal",function(){"function"==typeof initializeTimelineResults&&initializeTimelineResults($("#modal-singleComment-body")[0])}),$("#modal-singleComment").modal("show"),$('[data-toggle="tooltip"]').tooltip(),updateTimestamps(),lazyload(),twemoji.parse($("#modal-singleComment")[0],{base:twemoji_asset})}else showAlertToast(t.error,"danger")}).fail(function(){showAlertToast("Error","danger")});case 1:return t.a(2)}},t,this)}))),$(".modal-comment").on("shown.bs.modal",function(){$(this).find(".modal-body").scrollTop(0),$(this).find(".modal-comment-meta-container").scrollTop(0)}),$(document).on("click",".comment-multi-btn",T(_().m(function t(){var e,n,i;return _().w(function(t){for(;;)switch(t.n){case 0:e=$(this),n=e.data("id"),i=e.data("type"),$(".tooltip").tooltip("hide"),$.ajax({url:"/comments/getMultiComment",type:"POST",data:{id:n,type:i,_token:$('meta[name="csrf-token"]').attr("content")}}).done(function(t){t.html?($("#modal-multiComment-body").html(t.html),$("#modal-multiComment").one("shown.bs.modal",function(){"function"==typeof initializeTimelineResults&&initializeTimelineResults($("#modal-multiComment-body")[0])}),$("#modal-multiComment").modal("show"),$('[data-toggle="tooltip"]').tooltip(),updateTimestamps(),lazyload(),twemoji.parse($("#modal-multiComment-body")[0],{base:twemoji_asset})):showAlertToast(t.error,"danger")}).fail(function(){showAlertToast("Error","danger")});case 1:return t.a(2)}},t,this)}))),$(document).on("click",".btn-report",function(){var t=$(this),e=t.data("type"),n=t.data("id"),i=t.data("content"),o=document.createElement("form");o.action="/report",o.method="POST",o.style.display="none";var r=document.createElement("input");r.type="hidden",r.name="type",r.value=e,o.appendChild(r);var a=document.createElement("input");a.type="hidden",a.name="id",a.value=n,o.appendChild(a);var s=document.createElement("input");s.type="hidden",s.name="content",s.value=i,o.appendChild(s);var l=document.createElement("input");l.type="hidden",l.name="_token",l.value=$('meta[name="csrf-token"]').attr("content"),o.appendChild(l),document.body.appendChild(o),o.submit()}),$(document).ready(function(){$(document).on("click",".btn-timeline-modal",function(){$(this).tooltip("hide"),$("#timelineModal").modal("show")}),$("#timelineModal").on("shown.bs.modal",function(){$('[id^="sas_relative_container_"]').hide(),"function"==typeof updateTimestamps&&updateTimestamps(),"function"==typeof adjustTimelineHeight&&adjustTimelineHeight(),requestAnimationFrame(function(){var t=document.getElementById("timelineModal");"function"==typeof renderAllV2TimelineResults&&renderAllV2TimelineResults(),"function"==typeof window.initV1Charts&&window.initV1Charts(!0,t,"timeline"),"function"==typeof window.shindanEffects&&window.shindanEffects(),"undefined"!=typeof Chart&&Chart.instances&&Chart.helpers.each(Chart.instances,function(t){return t.resize()})});var t=document.querySelectorAll("#timelineModal .shindan-chart-block canvas:not([data-chart-rendered])");t.length>0&&"function"==typeof window.drawChartV2&&t.forEach(function(t){var e=t.closest(".shindan-chart-block");if(e&&e.dataset.chart)try{var n=JSON.parse(e.dataset.chart);window.drawChartV2(t.id,n)}catch(t){}}),0===$("#timelineModalRows").children().length&&$("#timelinePostComment").trigger("focus")}),$("#timelineModal").on("hidden.bs.modal",function(){$('[id^="sas_relative_container_"]').show()}),$(document).on("click","#timelineModalContent #loadMoreShindanTimeline",function(){var t=$(this).data("page"),e=$(this);e.children("i").remove(),e.prepend('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>'),$.ajax({url:"/loadMoreShindanTimeline",type:"POST",dataType:"json",data:{shindan_info,page:t}}).done(function(t){void 0!==t.html&&($("#loadMoreShindanTimelineContainer").remove(),$("#timelineModalRows").append(t.html),$('[data-toggle="tooltip"]').tooltip(),"function"==typeof updateTimestamps&&updateTimestamps(),"function"==typeof lazyload&&lazyload(),"undefined"!=typeof twemoji&&document.getElementById("timelineModalRows")&&twemoji.parse(document.getElementById("timelineModalRows"),{base:twemoji_asset}),"function"==typeof renderAllV2TimelineResults&&renderAllV2TimelineResults(),"function"==typeof window.initV1Charts&&window.initV1Charts(!0,document.getElementById("timelineModal"),"timeline"),"function"==typeof window.shindanEffects&&window.shindanEffects())}).fail(function(t){e.remove()})})}),$(function(){"undefined"!=typeof ogp_prepare_data&&ogp_prepare_data&&ogp_prepare_data.hash&&function(){if("undefined"!=typeof ogp_prepare_data&&ogp_prepare_data&&ogp_prepare_data.hash){$(".share-to").each(function(){$(this).data("share_target");var t=$(this).attr("href");if(t){var e=t;if(t.includes("twitter.com/intent/tweet")||t.includes("x.com/intent/tweet")||t.includes("x.com/intent/post"))e=t.replace(/(text=.*?)(https%3A%2F%2F(?:[a-z0-9-]+\.)?shindanmaker\.com%2F\d+)(%3F[^&]*)?/gi,function(t,e,n,i){var o=i?i.replace(/%3Fo%3D[^&%]*/gi,"").replace(/%26o%3D[^&%]*/gi,"").replace(/%26+/g,"%26").replace(/^%3F%26/,"%3F").replace(/^%26/,"").replace(/%26$/,""):"";return e+n+o+(o?"%26":"%3F")+"o%3D"+ogp_prepare_data.hash});else{var n=(e=t.replace(/[?&]o=[^&]*/g,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/&$/,"")).includes("?")?"&":"?";e=e+n+"o="+ogp_prepare_data.hash}$(this).attr("href",e)}var i=$(this).attr("data-share_url");if(i){var o=i;o=(o=o.replace(/(https%3A%2F%2F(?:[a-z0-9-]+\.)?shindanmaker\.com%2F\d+)(%3F[^&]*)?/gi,function(t,e,n){var i=n?n.replace(/%3Fo%3D[^%&]*/gi,"").replace(/%26o%3D[^%&]*/gi,"").replace(/%26+/g,"%26").replace(/^%3F%26/,"%3F").replace(/%26$/,""):"";return e+i+(i?"%26":"%3F")+"o%3D"+ogp_prepare_data.hash})).replace(/(https:\/\/(?:[a-z0-9-]+\.)?shindanmaker\.com\/\d+)(\?[^&\s]*)?/gi,function(t,e,n){var i=n?n.replace(/[?&]o=[^&]*/g,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/&$/,""):"";return e+i+(i.length>1?"&":"?")+"o="+ogp_prepare_data.hash}),$(this).attr("data-share_url",o)}});var t=/(https:\/\/(?:[a-z0-9-]+\.)?shindanmaker\.com\/\d+)(\?[^\s]*)?/,e=function(e){if(e.length){var n=e.val().replace(t,function(t,e,n){var i=n?n.replace(/[?&]o=[^&]*/g,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/&$/,""):"";return e+i+(i.length>1?"&":"?")+"o="+ogp_prepare_data.hash});e.val(n)}};e($("#share-copytext-shindanresult-textarea")),e($("#copy-textarea-140")),e($("#copy-textarea-all"))}}()}),$(function(){$(document).on("click","a[data-affiliate-hashid]",function(t){var e=$(this).data("affiliate-hashid");if(e){var n=$('meta[name="csrf-token"]').attr("content");if(n){var i="/api/affiliate/track-click/".concat(e),o=new FormData;o.append("_token",n),navigator.sendBeacon?navigator.sendBeacon(i,o):fetch(i,{method:"POST",body:o,keepalive:!0}).catch(function(){})}}})})},251:(t,e)=>{e.read=function(t,e,n,i,o){var r,a,s=8*o-i-1,l=(1<<s)-1,c=l>>1,u=-7,h=n?o-1:0,d=n?-1:1,f=t[e+h];for(h+=d,r=f&(1<<-u)-1,f>>=-u,u+=s;u>0;r=256*r+t[e+h],h+=d,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=i;u>0;a=256*a+t[e+h],h+=d,u-=8);if(0===r)r=1-c;else{if(r===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),r-=c}return(f?-1:1)*a*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var a,s,l,c=8*r-o-1,u=(1<<c)-1,h=u>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,o),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;t[n+f]=255&s,f+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*m}},1184:()=>{!function(t){function e(t,e){var n="";"lowerLetter"==t||"upperLetter"==t||"symbol"==t?n=e+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςτυφχψωАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя":"emoji"==t?n=e+"😄😃😀😊👲👳👮👷💂👶👦👧👨😺😸😻😽👹🙈💀👽💩🔥✨🌟💫💥💢💦👂👀👄👝👓🌂💄💛❤💔":"zenkaku"==t&&(n=e+"あいうえおかがきぎくぐけげこごさざしじすずせぜそぞただちぢつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをんアイウエオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴ,.?/\\(^)![]{}*&^%$#'\:一右雨円王音下火花貝学気九休玉金空月犬見五口校左三山子四糸字耳七車手十出女小上森人水正生青夕石赤千川先早草足村大男竹中虫町天田土二日入年白八百文木本名目立力林六引羽雲園遠何科夏家歌画回会海絵外角楽活間丸岩顔汽記帰弓牛魚京強教近兄形計元言原戸古午後語工公広交光考行高黄合谷国黒今才細作算止市矢姉思紙寺自時室社弱首秋週春書少場色食心กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ아이우에오카키쿠케코사시스세소타치츠테토나니누네노하히후헤호마미무메모야유요라리루레로와오가기구게고자지즈제조다지즈데도바비부베보파피푸페포ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");var i=n.split(/(?![\uDC00-\uDFFF])/);return i[Math.floor(Math.random()*i.length)]}t.fn.shuffleLetters=function(n){var i=t.extend({step:10,fps:16,text:"",callback:function(){}},n),o="";return this.each(function(){var n=t(this),r="";if(n.data("animated"))return!0;n.data("animated",!0),i.text?(r=i.text.split(/(?![\uDC00-\uDFFF])/),o=i.text):(r=n.text().split(/(?![\uDC00-\uDFFF])/),o=n.text());for(var a=[],s=[],l=0;l<r.length;l++){var c=r[l];" "!=c?(/[a-z]/.test(c)?a[l]="lowerLetter":/[A-Z]/.test(c)?a[l]="upperLetter":/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED8\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8])/g.test(c)?a[l]="emoji":/^[^\x01-\x7E\xA1-\xDF]/.test(c)?a[l]="zenkaku":a[l]="symbol",s.push(l)):a[l]="space"}n.html(""),function t(l){var c,u=s.length,h=r.slice(0);if(l>u)return n.data("animated",!1),void i.callback(n);for(c=Math.max(l,0);c<u;c++)c<l+i.step?h[s[c]]=e(a[s[c]],o):h[s[c]]="";n.text(h.join("")),setTimeout(function(){t(l+1),1e3/i.fps},1e3/i.fps),twemoji.parse(document.getElementById("shindanResult"),{base:twemoji_asset})}(-i.step)})}}(jQuery)},1688:()=>{},2035:()=>{},2754:function(t,e,n){!function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(e),r=i(n);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l.apply(this,arguments)}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,u(t,e)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}var h="transitionend",d=1e6,f=1e3;function p(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()}function m(){return{bindType:h,delegateType:h,handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function g(t){var e=this,n=!1;return o.default(this).one(y.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||y.triggerTransitionEnd(e)},t),this}function v(){o.default.fn.emulateTransitionEnd=g,o.default.event.special[y.TRANSITION_END]=m()}var y={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(Math.random()*d)}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o.default(t).css("transition-duration"),n=o.default(t).css("transition-delay"),i=parseFloat(e),r=parseFloat(n);return i||r?(e=e.split(",")[0],n=n.split(",")[0],(parseFloat(e)+parseFloat(n))*f):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o.default(t).trigger(h)},supportsTransitionEnd:function(){return Boolean(h)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],a=r&&y.isElement(r)?"element":p(r);if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?y.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.default.fn.jquery.split(" ")[0].split("."),e=1,n=2,i=9,r=1,a=4;if(t[0]<n&&t[1]<i||t[0]===e&&t[1]===i&&t[2]<r||t[0]>=a)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};y.jQueryDetection(),v();var b="alert",x="4.6.2",w="bs.alert",_="."+w,k=".data-api",E=o.default.fn[b],T="alert",S="fade",C="show",D="close"+_,A="closed"+_,M="click"+_+k,P='[data-dismiss="alert"]',O=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.default.removeData(this._element,w),this._element=null},e._getRootElement=function(t){var e=y.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest("."+T)[0]),n},e._triggerCloseEvent=function(t){var e=o.default.Event(D);return o.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(o.default(t).removeClass(C),o.default(t).hasClass(S)){var n=y.getTransitionDurationFromElement(t);o.default(t).one(y.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){o.default(t).detach().trigger(A).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this),i=n.data(w);i||(i=new t(this),n.data(w,i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return x}}]),t}();o.default(document).on(M,P,O._handleDismiss(new O)),o.default.fn[b]=O._jQueryInterface,o.default.fn[b].Constructor=O,o.default.fn[b].noConflict=function(){return o.default.fn[b]=E,O._jQueryInterface};var L="button",I="4.6.2",R="bs.button",$="."+R,j=".data-api",F=o.default.fn[L],N="active",B="btn",z="focus",W="click"+$+j,H="focus"+$+j+" blur"+$+j,V="load"+$+j,U='[data-toggle^="button"]',q='[data-toggle="buttons"]',Y='[data-toggle="button"]',X='[data-toggle="buttons"] .btn',G='input:not([type="hidden"])',Z=".active",J=".btn",Q=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest(q)[0];if(n){var i=this._element.querySelector(G);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(N))t=!1;else{var r=n.querySelector(Z);r&&o.default(r).removeClass(N)}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains(N)),this.shouldAvoidTriggerChange||o.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(N)),t&&o.default(this._element).toggleClass(N))},e.dispose=function(){o.default.removeData(this._element,R),this._element=null},t._jQueryInterface=function(e,n){return this.each(function(){var i=o.default(this),r=i.data(R);r||(r=new t(this),i.data(R,r)),r.shouldAvoidTriggerChange=n,"toggle"===e&&r[e]()})},s(t,null,[{key:"VERSION",get:function(){return I}}]),t}();o.default(document).on(W,U,function(t){var e=t.target,n=e;if(o.default(e).hasClass(B)||(e=o.default(e).closest(J)[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector(G);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||Q._jQueryInterface.call(o.default(e),"toggle","INPUT"===n.tagName)}}).on(H,U,function(t){var e=o.default(t.target).closest(J)[0];o.default(e).toggleClass(z,/^focus(in)?$/.test(t.type))}),o.default(window).on(V,function(){for(var t=[].slice.call(document.querySelectorAll(X)),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector(G);o.checked||o.hasAttribute("checked")?i.classList.add(N):i.classList.remove(N)}for(var r=0,a=(t=[].slice.call(document.querySelectorAll(Y))).length;r<a;r++){var s=t[r];"true"===s.getAttribute("aria-pressed")?s.classList.add(N):s.classList.remove(N)}}),o.default.fn[L]=Q._jQueryInterface,o.default.fn[L].Constructor=Q,o.default.fn[L].noConflict=function(){return o.default.fn[L]=F,Q._jQueryInterface};var K="carousel",tt="4.6.2",et="bs.carousel",nt="."+et,it=".data-api",ot=o.default.fn[K],rt=37,at=39,st=500,lt=40,ct="carousel",ut="active",ht="slide",dt="carousel-item-right",ft="carousel-item-left",pt="carousel-item-next",mt="carousel-item-prev",gt="pointer-event",vt="next",yt="prev",bt="left",xt="right",wt="slide"+nt,_t="slid"+nt,kt="keydown"+nt,Et="mouseenter"+nt,Tt="mouseleave"+nt,St="touchstart"+nt,Ct="touchmove"+nt,Dt="touchend"+nt,At="pointerdown"+nt,Mt="pointerup"+nt,Pt="dragstart"+nt,Ot="load"+nt+it,Lt="click"+nt+it,It=".active",Rt=".active.carousel-item",$t=".carousel-item",jt=".carousel-item img",Ft=".carousel-item-next, .carousel-item-prev",Nt=".carousel-indicators",Bt="[data-slide], [data-slide-to]",zt='[data-ride="carousel"]',Wt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Ht={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Vt={TOUCH:"touch",PEN:"pen"},Ut=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Nt),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(vt)},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(yt)},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(Ft)&&(y.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(Rt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one(_t,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=t>n?vt:yt;this._slide(i,this._items[t])}},e.dispose=function(){o.default(this._element).off(nt),o.default.removeData(this._element,et),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=l({},Wt,t),y.typeCheckConfig(K,t,Ht),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=lt)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on(kt,function(e){return t._keydown(e)}),"hover"===this._config.pause&&o.default(this._element).on(Et,function(e){return t.pause(e)}).on(Tt,function(e){return t.cycle(e)}),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&Vt[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t.touchDeltaX=e.originalEvent.touches&&e.originalEvent.touches.length>1?0:e.originalEvent.touches[0].clientX-t.touchStartX},i=function(e){t._pointerEvent&&Vt[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},st+t._config.interval))};o.default(this._element.querySelectorAll(jt)).on(Pt,function(t){return t.preventDefault()}),this._pointerEvent?(o.default(this._element).on(At,function(t){return e(t)}),o.default(this._element).on(Mt,function(t){return i(t)}),this._element.classList.add(gt)):(o.default(this._element).on(St,function(t){return e(t)}),o.default(this._element).on(Ct,function(t){return n(t)}),o.default(this._element).on(Dt,function(t){return i(t)}))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case rt:t.preventDefault(),this.prev();break;case at:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll($t)):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===vt,i=t===yt,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var a=(o+(t===yt?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(Rt)),r=o.default.Event(wt,{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(It));o.default(e).removeClass(ut);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass(ut)}},e._updateInterval=function(){var t=this._activeElement||this._element.querySelector(Rt);if(t){var e=parseInt(t.getAttribute("data-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}},e._slide=function(t,e){var n,i,r,a=this,s=this._element.querySelector(Rt),l=this._getItemIndex(s),c=e||s&&this._getItemByDirection(t,s),u=this._getItemIndex(c),h=Boolean(this._interval);if(t===vt?(n=ft,i=pt,r=bt):(n=dt,i=mt,r=xt),c&&o.default(c).hasClass(ut))this._isSliding=!1;else if(!this._triggerSlideEvent(c,r).isDefaultPrevented()&&s&&c){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(c),this._activeElement=c;var d=o.default.Event(_t,{relatedTarget:c,direction:r,from:l,to:u});if(o.default(this._element).hasClass(ht)){o.default(c).addClass(i),y.reflow(c),o.default(s).addClass(n),o.default(c).addClass(n);var f=y.getTransitionDurationFromElement(s);o.default(s).one(y.TRANSITION_END,function(){o.default(c).removeClass(n+" "+i).addClass(ut),o.default(s).removeClass(ut+" "+i+" "+n),a._isSliding=!1,setTimeout(function(){return o.default(a._element).trigger(d)},0)}).emulateTransitionEnd(f)}else o.default(s).removeClass(ut),o.default(c).addClass(ut),this._isSliding=!1,o.default(this._element).trigger(d);h&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this).data(et),i=l({},Wt,o.default(this).data());"object"==typeof e&&(i=l({},i,e));var r="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data(et,n)),"number"==typeof e)n.to(e);else if("string"==typeof r){if(void 0===n[r])throw new TypeError('No method named "'+r+'"');n[r]()}else i.interval&&i.ride&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=y.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass(ct)){var r=l({},o.default(i).data(),o.default(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),t._jQueryInterface.call(o.default(i),r),a&&o.default(i).data(et).to(a),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return tt}},{key:"Default",get:function(){return Wt}}]),t}();o.default(document).on(Lt,Bt,Ut._dataApiClickHandler),o.default(window).on(Ot,function(){for(var t=[].slice.call(document.querySelectorAll(zt)),e=0,n=t.length;e<n;e++){var i=o.default(t[e]);Ut._jQueryInterface.call(i,i.data())}}),o.default.fn[K]=Ut._jQueryInterface,o.default.fn[K].Constructor=Ut,o.default.fn[K].noConflict=function(){return o.default.fn[K]=ot,Ut._jQueryInterface};var qt="collapse",Yt="4.6.2",Xt="bs.collapse",Gt="."+Xt,Zt=".data-api",Jt=o.default.fn[qt],Qt="show",Kt="collapse",te="collapsing",ee="collapsed",ne="width",ie="height",oe="show"+Gt,re="shown"+Gt,ae="hide"+Gt,se="hidden"+Gt,le="click"+Gt+Zt,ce=".show, .collapsing",ue='[data-toggle="collapse"]',he={toggle:!0,parent:""},de={toggle:"boolean",parent:"(string|element)"},fe=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ue)),i=0,o=n.length;i<o;i++){var r=n[i],a=y.getSelectorFromElement(r),s=[].slice.call(document.querySelectorAll(a)).filter(function(e){return e===t});null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass(Qt)?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!(this._isTransitioning||o.default(this._element).hasClass(Qt)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(ce)).filter(function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(Kt)})).length&&(e=null),e&&(n=o.default(e).not(this._selector).data(Xt))&&n._isTransitioning))){var r=o.default.Event(oe);if(o.default(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),"hide"),n||o.default(e).data(Xt,null));var a=this._getDimension();o.default(this._element).removeClass(Kt).addClass(te),this._element.style[a]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass(ee).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){o.default(i._element).removeClass(te).addClass(Kt+" "+Qt),i._element.style[a]="",i.setTransitioning(!1),o.default(i._element).trigger(re)},l="scroll"+(a[0].toUpperCase()+a.slice(1)),c=y.getTransitionDurationFromElement(this._element);o.default(this._element).one(y.TRANSITION_END,s).emulateTransitionEnd(c),this._element.style[a]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass(Qt)){var e=o.default.Event(ae);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",y.reflow(this._element),o.default(this._element).addClass(te).removeClass(Kt+" "+Qt);var i=this._triggerArray.length;if(i>0)for(var r=0;r<i;r++){var a=this._triggerArray[r],s=y.getSelectorFromElement(a);null!==s&&(o.default([].slice.call(document.querySelectorAll(s))).hasClass(Qt)||o.default(a).addClass(ee).attr("aria-expanded",!1))}this.setTransitioning(!0);var l=function(){t.setTransitioning(!1),o.default(t._element).removeClass(te).addClass(Kt).trigger(se)};this._element.style[n]="";var c=y.getTransitionDurationFromElement(this._element);o.default(this._element).one(y.TRANSITION_END,l).emulateTransitionEnd(c)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){o.default.removeData(this._element,Xt),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=l({},he,t)).toggle=Boolean(t.toggle),y.typeCheckConfig(qt,t,de),t},e._getDimension=function(){return o.default(this._element).hasClass(ne)?ne:ie},e._getParent=function(){var e,n=this;y.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',r=[].slice.call(e.querySelectorAll(i));return o.default(r).each(function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),e},e._addAriaAndCollapsedClass=function(t,e){var n=o.default(t).hasClass(Qt);e.length&&o.default(e).toggleClass(ee,!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=y.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this),i=n.data(Xt),r=l({},he,n.data(),"object"==typeof e&&e?e:{});if(!i&&r.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(r.toggle=!1),i||(i=new t(this,r),n.data(Xt,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s(t,null,[{key:"VERSION",get:function(){return Yt}},{key:"Default",get:function(){return he}}]),t}();o.default(document).on(le,ue,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=o.default(this),n=y.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));o.default(i).each(function(){var t=o.default(this),n=t.data(Xt)?"toggle":e.data();fe._jQueryInterface.call(t,n)})}),o.default.fn[qt]=fe._jQueryInterface,o.default.fn[qt].Constructor=fe,o.default.fn[qt].noConflict=function(){return o.default.fn[qt]=Jt,fe._jQueryInterface};var pe="dropdown",me="4.6.2",ge="bs.dropdown",ve="."+ge,ye=".data-api",be=o.default.fn[pe],xe=27,we=32,_e=9,ke=38,Ee=40,Te=3,Se=new RegExp(ke+"|"+Ee+"|"+xe),Ce="disabled",De="show",Ae="dropup",Me="dropright",Pe="dropleft",Oe="dropdown-menu-right",Le="position-static",Ie="hide"+ve,Re="hidden"+ve,$e="show"+ve,je="shown"+ve,Fe="click"+ve,Ne="click"+ve+ye,Be="keydown"+ve+ye,ze="keyup"+ve+ye,We='[data-toggle="dropdown"]',He=".dropdown form",Ve=".dropdown-menu",Ue=".navbar-nav",qe=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ye="top-start",Xe="top-end",Ge="bottom-start",Ze="bottom-end",Je="right-start",Qe="left-start",Ke={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},tn={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},en=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!o.default(this._element).hasClass(Ce)){var e=o.default(this._menu).hasClass(De);t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||o.default(this._element).hasClass(Ce)||o.default(this._menu).hasClass(De))){var n={relatedTarget:this._element},i=o.default.Event($e,n),a=t._getParentFromElement(this._element);if(o.default(a).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===r.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var s=this._element;"parent"===this._config.reference?s=a:y.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&o.default(a).addClass(Le),this._popper=new r.default(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===o.default(a).closest(Ue).length&&o.default(document.body).children().on("mouseover",null,o.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),o.default(this._menu).toggleClass(De),o.default(a).toggleClass(De).trigger(o.default.Event(je,n))}}},e.hide=function(){if(!this._element.disabled&&!o.default(this._element).hasClass(Ce)&&o.default(this._menu).hasClass(De)){var e={relatedTarget:this._element},n=o.default.Event(Ie,e),i=t._getParentFromElement(this._element);o.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),o.default(this._menu).toggleClass(De),o.default(i).toggleClass(De).trigger(o.default.Event(Re,e)))}},e.dispose=function(){o.default.removeData(this._element,ge),o.default(this._element).off(ve),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;o.default(this._element).on(Fe,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=l({},this.constructor.Default,o.default(this._element).data(),t),y.typeCheckConfig(pe,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Ve))}return this._menu},e._getPlacement=function(){var t=o.default(this._element.parentNode),e=Ge;return t.hasClass(Ae)?e=o.default(this._menu).hasClass(Oe)?Xe:Ye:t.hasClass(Me)?e=Je:t.hasClass(Pe)?e=Qe:o.default(this._menu).hasClass(Oe)&&(e=Ze),e},e._detectNavbar=function(){return o.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this).data(ge);if(n||(n=new t(this,"object"==typeof e?e:null),o.default(this).data(ge,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||e.which!==Te&&("keyup"!==e.type||e.which===_e))for(var n=[].slice.call(document.querySelectorAll(We)),i=0,r=n.length;i<r;i++){var a=t._getParentFromElement(n[i]),s=o.default(n[i]).data(ge),l={relatedTarget:n[i]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var c=s._menu;if(o.default(a).hasClass(De)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&e.which===_e)&&o.default.contains(a,e.target))){var u=o.default.Event(Ie,l);o.default(a).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),n[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),o.default(c).removeClass(De),o.default(a).removeClass(De).trigger(o.default.Event(Re,l)))}}}},t._getParentFromElement=function(t){var e,n=y.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?e.which===we||e.which!==xe&&(e.which!==Ee&&e.which!==ke||o.default(e.target).closest(Ve).length):!Se.test(e.which))&&!this.disabled&&!o.default(this).hasClass(Ce)){var n=t._getParentFromElement(this),i=o.default(n).hasClass(De);if(i||e.which!==xe){if(e.preventDefault(),e.stopPropagation(),!i||e.which===xe||e.which===we)return e.which===xe&&o.default(n.querySelector(We)).trigger("focus"),void o.default(this).trigger("click");var r=[].slice.call(n.querySelectorAll(qe)).filter(function(t){return o.default(t).is(":visible")});if(0!==r.length){var a=r.indexOf(e.target);e.which===ke&&a>0&&a--,e.which===Ee&&a<r.length-1&&a++,a<0&&(a=0),r[a].focus()}}}},s(t,null,[{key:"VERSION",get:function(){return me}},{key:"Default",get:function(){return Ke}},{key:"DefaultType",get:function(){return tn}}]),t}();o.default(document).on(Be,We,en._dataApiKeydownHandler).on(Be,Ve,en._dataApiKeydownHandler).on(Ne+" "+ze,en._clearMenus).on(Ne,We,function(t){t.preventDefault(),t.stopPropagation(),en._jQueryInterface.call(o.default(this),"toggle")}).on(Ne,He,function(t){t.stopPropagation()}),o.default.fn[pe]=en._jQueryInterface,o.default.fn[pe].Constructor=en,o.default.fn[pe].noConflict=function(){return o.default.fn[pe]=be,en._jQueryInterface};var nn="modal",on="4.6.2",rn="bs.modal",an="."+rn,sn=".data-api",ln=o.default.fn[nn],cn=27,un="modal-dialog-scrollable",hn="modal-scrollbar-measure",dn="modal-backdrop",fn="modal-open",pn="fade",mn="show",gn="modal-static",vn="hide"+an,yn="hidePrevented"+an,bn="hidden"+an,xn="show"+an,wn="shown"+an,_n="focusin"+an,kn="resize"+an,En="click.dismiss"+an,Tn="keydown.dismiss"+an,Sn="mouseup.dismiss"+an,Cn="mousedown.dismiss"+an,Dn="click"+an+sn,An=".modal-dialog",Mn=".modal-body",Pn='[data-toggle="modal"]',On='[data-dismiss="modal"]',Ln=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",In=".sticky-top",Rn={backdrop:!0,keyboard:!0,focus:!0,show:!0},$n={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},jn=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(An),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=o.default.Event(xn,{relatedTarget:t});o.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,o.default(this._element).hasClass(pn)&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default(this._element).on(En,On,function(t){return e.hide(t)}),o.default(this._dialog).on(Cn,function(){o.default(e._element).one(Sn,function(t){o.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=o.default.Event(vn);if(o.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=o.default(this._element).hasClass(pn);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),o.default(document).off(_n),o.default(this._element).removeClass(mn),o.default(this._element).off(En),o.default(this._dialog).off(Cn),i){var r=y.getTransitionDurationFromElement(this._element);o.default(this._element).one(y.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(r)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return o.default(t).off(an)}),o.default(document).off(_n),o.default.removeData(this._element,rn),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=l({},Rn,t),y.typeCheckConfig(nn,t,$n),t},e._triggerBackdropTransition=function(){var t=this,e=o.default.Event(yn);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add(gn);var i=y.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(y.TRANSITION_END),o.default(this._element).one(y.TRANSITION_END,function(){t._element.classList.remove(gn),n||o.default(t._element).one(y.TRANSITION_END,function(){t._element.style.overflowY=""}).emulateTransitionEnd(t._element,i)}).emulateTransitionEnd(i),this._element.focus()}},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass(pn),i=this._dialog?this._dialog.querySelector(Mn):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),o.default(this._dialog).hasClass(un)&&i?i.scrollTop=0:this._element.scrollTop=0,n&&y.reflow(this._element),o.default(this._element).addClass(mn),this._config.focus&&this._enforceFocus();var r=o.default.Event(wn,{relatedTarget:t}),a=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(r)};if(n){var s=y.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(y.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},e._enforceFocus=function(){var t=this;o.default(document).off(_n).on(_n,function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on(Tn,function(e){t._config.keyboard&&e.which===cn?(e.preventDefault(),t.hide()):t._config.keyboard||e.which!==cn||t._triggerBackdropTransition()}):this._isShown||o.default(this._element).off(Tn)},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on(kn,function(e){return t.handleUpdate(e)}):o.default(window).off(kn)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){o.default(document.body).removeClass(fn),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger(bn)})},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass(pn)?pn:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=dn,n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on(En,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())}),n&&y.reflow(this._backdrop),o.default(this._backdrop).addClass(mn),!t)return;if(!n)return void t();var i=y.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(y.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass(mn);var r=function(){e._removeBackdrop(),t&&t()};if(o.default(this._element).hasClass(pn)){var a=y.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(y.TRANSITION_END,r).emulateTransitionEnd(a)}else r()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(Ln)),n=[].slice.call(document.querySelectorAll(In));o.default(e).each(function(e,n){var i=n.style.paddingRight,r=o.default(n).css("padding-right");o.default(n).data("padding-right",i).css("padding-right",parseFloat(r)+t._scrollbarWidth+"px")}),o.default(n).each(function(e,n){var i=n.style.marginRight,r=o.default(n).css("margin-right");o.default(n).data("margin-right",i).css("margin-right",parseFloat(r)-t._scrollbarWidth+"px")});var i=document.body.style.paddingRight,r=o.default(document.body).css("padding-right");o.default(document.body).data("padding-right",i).css("padding-right",parseFloat(r)+this._scrollbarWidth+"px")}o.default(document.body).addClass(fn)},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(Ln));o.default(t).each(function(t,e){var n=o.default(e).data("padding-right");o.default(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+In));o.default(e).each(function(t,e){var n=o.default(e).data("margin-right");void 0!==n&&o.default(e).css("margin-right",n).removeData("margin-right")});var n=o.default(document.body).data("padding-right");o.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className=hn,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each(function(){var i=o.default(this).data(rn),r=l({},Rn,o.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,r),o.default(this).data(rn,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else r.show&&i.show(n)})},s(t,null,[{key:"VERSION",get:function(){return on}},{key:"Default",get:function(){return Rn}}]),t}();o.default(document).on(Dn,Pn,function(t){var e,n=this,i=y.getSelectorFromElement(this);i&&(e=document.querySelector(i));var r=o.default(e).data(rn)?"toggle":l({},o.default(e).data(),o.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=o.default(e).one(xn,function(t){t.isDefaultPrevented()||a.one(bn,function(){o.default(n).is(":visible")&&n.focus()})});jn._jQueryInterface.call(o.default(e),r,this)}),o.default.fn[nn]=jn._jQueryInterface,o.default.fn[nn].Constructor=jn,o.default.fn[nn].noConflict=function(){return o.default.fn[nn]=ln,jn._jQueryInterface};var Fn=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Nn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Bn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,zn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Wn(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===Fn.indexOf(n)||Boolean(Bn.test(t.nodeValue)||zn.test(t.nodeValue));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,r=i.length;o<r;o++)if(i[o].test(n))return!0;return!1}function Hn(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),r=[].slice.call(i.body.querySelectorAll("*")),a=function(t,n){var i=r[t],a=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var s=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach(function(t){Wn(t,l)||i.removeAttribute(t.nodeName)})},s=0,l=r.length;s<l;s++)a(s);return i.body.innerHTML}var Vn="tooltip",Un="4.6.2",qn="bs.tooltip",Yn="."+qn,Xn=o.default.fn[Vn],Gn="bs-tooltip",Zn=new RegExp("(^|\\s)"+Gn+"\\S+","g"),Jn=["sanitize","whiteList","sanitizeFn"],Qn="fade",Kn="show",ti="show",ei="out",ni=".tooltip-inner",ii=".arrow",oi="hover",ri="focus",ai="click",si="manual",li={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ci={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:Nn,popperConfig:null},ui={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},hi={HIDE:"hide"+Yn,HIDDEN:"hidden"+Yn,SHOW:"show"+Yn,SHOWN:"shown"+Yn,INSERTED:"inserted"+Yn,CLICK:"click"+Yn,FOCUSIN:"focusin"+Yn,FOCUSOUT:"focusout"+Yn,MOUSEENTER:"mouseenter"+Yn,MOUSELEAVE:"mouseleave"+Yn},di=function(){function t(t,e){if(void 0===r.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(o.default(this.getTipElement()).hasClass(Kn))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&o.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===o.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=y.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var a=this.getTipElement(),s=y.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&o.default(a).addClass(Qn);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();o.default(a).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(a).appendTo(u),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new r.default(this.element,a,this._getPopperConfig(c)),o.default(a).addClass(Kn),o.default(a).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&o.default(document.body).children().on("mouseover",null,o.default.noop);var h=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),e===ei&&t._leave(null,t)};if(o.default(this.tip).hasClass(Qn)){var d=y.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(y.TRANSITION_END,h).emulateTransitionEnd(d)}else h()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==ti&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if(o.default(n).removeClass(Kn),"ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),this._activeTrigger[ai]=!1,this._activeTrigger[ri]=!1,this._activeTrigger[oi]=!1,o.default(this.tip).hasClass(Qn)){var a=y.getTransitionDurationFromElement(n);o.default(n).one(y.TRANSITION_END,r).emulateTransitionEnd(a)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(Gn+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(ni)),this.getTitle()),o.default(t).removeClass(Qn+" "+Kn)},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Hn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:ii},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:y.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container)},e._getAttachment=function(t){return li[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(e!==si){var n=e===oi?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===oi?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,function(e){return t._enter(e)}).on(i,t.config.selector,function(e){return t._leave(e)})}}),this._hideModalHandler=function(){t.element&&t.hide()},o.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?ri:oi]=!0),o.default(e.getTipElement()).hasClass(Kn)||e._hoverState===ti?e._hoverState=ti:(clearTimeout(e._timeout),e._hoverState=ti,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===ti&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?ri:oi]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ei,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===ei&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach(function(t){-1!==Jn.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),y.typeCheckConfig(Vn,t,this.constructor.DefaultType),t.sanitize&&(t.template=Hn(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(Zn);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(o.default(t).removeClass(Qn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this),i=n.data(qn),r="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,r),n.data(qn,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s(t,null,[{key:"VERSION",get:function(){return Un}},{key:"Default",get:function(){return ci}},{key:"NAME",get:function(){return Vn}},{key:"DATA_KEY",get:function(){return qn}},{key:"Event",get:function(){return hi}},{key:"EVENT_KEY",get:function(){return Yn}},{key:"DefaultType",get:function(){return ui}}]),t}();o.default.fn[Vn]=di._jQueryInterface,o.default.fn[Vn].Constructor=di,o.default.fn[Vn].noConflict=function(){return o.default.fn[Vn]=Xn,di._jQueryInterface};var fi="popover",pi="4.6.2",mi="bs.popover",gi="."+mi,vi=o.default.fn[fi],yi="bs-popover",bi=new RegExp("(^|\\s)"+yi+"\\S+","g"),xi="fade",wi="show",_i=".popover-header",ki=".popover-body",Ei=l({},di.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ti=l({},di.DefaultType,{content:"(string|element|function)"}),Si={HIDE:"hide"+gi,HIDDEN:"hidden"+gi,SHOW:"show"+gi,SHOWN:"shown"+gi,INSERTED:"inserted"+gi,CLICK:"click"+gi,FOCUSIN:"focusin"+gi,FOCUSOUT:"focusout"+gi,MOUSEENTER:"mouseenter"+gi,MOUSELEAVE:"mouseleave"+gi},Ci=function(t){function e(){return t.apply(this,arguments)||this}c(e,t);var n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass(yi+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},n.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(_i),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(ki),e),t.removeClass(xi+" "+wi)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(bi);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each(function(){var n=o.default(this).data(mi),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,i),o.default(this).data(mi,n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},s(e,null,[{key:"VERSION",get:function(){return pi}},{key:"Default",get:function(){return Ei}},{key:"NAME",get:function(){return fi}},{key:"DATA_KEY",get:function(){return mi}},{key:"Event",get:function(){return Si}},{key:"EVENT_KEY",get:function(){return gi}},{key:"DefaultType",get:function(){return Ti}}]),e}(di);o.default.fn[fi]=Ci._jQueryInterface,o.default.fn[fi].Constructor=Ci,o.default.fn[fi].noConflict=function(){return o.default.fn[fi]=vi,Ci._jQueryInterface};var Di="scrollspy",Ai="4.6.2",Mi="bs.scrollspy",Pi="."+Mi,Oi=".data-api",Li=o.default.fn[Di],Ii="dropdown-item",Ri="active",$i="activate"+Pi,ji="scroll"+Pi,Fi="load"+Pi+Oi,Ni="offset",Bi="position",zi='[data-spy="scroll"]',Wi=".nav, .list-group",Hi=".nav-link",Vi=".nav-item",Ui=".list-group-item",qi=".dropdown",Yi=".dropdown-item",Xi=".dropdown-toggle",Gi={offset:10,method:"auto",target:""},Zi={offset:"number",method:"string",target:"(string|element)"},Ji=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Hi+","+this._config.target+" "+Ui+","+this._config.target+" "+Yi,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on(ji,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?Ni:Bi,n="auto"===this._config.method?e:this._config.method,i=n===Bi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,r=y.getSelectorFromElement(t);if(r&&(e=document.querySelector(r)),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[o.default(e)[n]().top+i,r]}return null}).filter(Boolean).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){o.default.removeData(this._element,Mi),o.default(this._scrollElement).off(Pi),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=l({},Gi,"object"==typeof t&&t?t:{})).target&&y.isElement(t.target)){var e=o.default(t.target).attr("id");e||(e=y.getUID(Di),o.default(t.target).attr("id",e)),t.target="#"+e}return y.typeCheckConfig(Di,t,Zi),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'}),n=o.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(Ii)?(n.closest(qi).find(Xi).addClass(Ri),n.addClass(Ri)):(n.addClass(Ri),n.parents(Wi).prev(Hi+", "+Ui).addClass(Ri),n.parents(Wi).prev(Vi).children(Hi).addClass(Ri)),o.default(this._scrollElement).trigger($i,{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(Ri)}).forEach(function(t){return t.classList.remove(Ri)})},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this).data(Mi);if(n||(n=new t(this,"object"==typeof e&&e),o.default(this).data(Mi,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},s(t,null,[{key:"VERSION",get:function(){return Ai}},{key:"Default",get:function(){return Gi}}]),t}();o.default(window).on(Fi,function(){for(var t=[].slice.call(document.querySelectorAll(zi)),e=t.length;e--;){var n=o.default(t[e]);Ji._jQueryInterface.call(n,n.data())}}),o.default.fn[Di]=Ji._jQueryInterface,o.default.fn[Di].Constructor=Ji,o.default.fn[Di].noConflict=function(){return o.default.fn[Di]=Li,Ji._jQueryInterface};var Qi="tab",Ki="4.6.2",to="bs.tab",eo="."+to,no=".data-api",io=o.default.fn[Qi],oo="dropdown-menu",ro="active",ao="disabled",so="fade",lo="show",co="hide"+eo,uo="hidden"+eo,ho="show"+eo,fo="shown"+eo,po="click"+eo+no,mo=".dropdown",go=".nav, .list-group",vo=".active",yo="> li > .active",bo='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',xo=".dropdown-toggle",wo="> .dropdown-menu .active",_o=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass(ro)||o.default(this._element).hasClass(ao)||this._element.hasAttribute("disabled"))){var e,n,i=o.default(this._element).closest(go)[0],r=y.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?yo:vo;n=(n=o.default.makeArray(o.default(i).find(a)))[n.length-1]}var s=o.default.Event(co,{relatedTarget:this._element}),l=o.default.Event(ho,{relatedTarget:n});if(n&&o.default(n).trigger(s),o.default(this._element).trigger(l),!l.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,i);var c=function(){var e=o.default.Event(uo,{relatedTarget:t._element}),i=o.default.Event(fo,{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,c):c()}}},e.dispose=function(){o.default.removeData(this._element,to),this._element=null},e._activate=function(t,e,n){var i=this,r=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default(e).children(vo):o.default(e).find(yo))[0],a=n&&r&&o.default(r).hasClass(so),s=function(){return i._transitionComplete(t,r,n)};if(r&&a){var l=y.getTransitionDurationFromElement(r);o.default(r).removeClass(lo).one(y.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass(ro);var i=o.default(e.parentNode).find(wo)[0];i&&o.default(i).removeClass(ro),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}o.default(t).addClass(ro),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),y.reflow(t),t.classList.contains(so)&&t.classList.add(lo);var r=t.parentNode;if(r&&"LI"===r.nodeName&&(r=r.parentNode),r&&o.default(r).hasClass(oo)){var a=o.default(t).closest(mo)[0];if(a){var s=[].slice.call(a.querySelectorAll(xo));o.default(s).addClass(ro)}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this),i=n.data(to);if(i||(i=new t(this),n.data(to,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},s(t,null,[{key:"VERSION",get:function(){return Ki}}]),t}();o.default(document).on(po,bo,function(t){t.preventDefault(),_o._jQueryInterface.call(o.default(this),"show")}),o.default.fn[Qi]=_o._jQueryInterface,o.default.fn[Qi].Constructor=_o,o.default.fn[Qi].noConflict=function(){return o.default.fn[Qi]=io,_o._jQueryInterface};var ko="toast",Eo="4.6.2",To="bs.toast",So="."+To,Co=o.default.fn[ko],Do="fade",Ao="hide",Mo="show",Po="showing",Oo="click.dismiss"+So,Lo="hide"+So,Io="hidden"+So,Ro="show"+So,$o="shown"+So,jo='[data-dismiss="toast"]',Fo={animation:!0,autohide:!0,delay:500},No={animation:"boolean",autohide:"boolean",delay:"number"},Bo=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event(Ro);if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add(Do);var n=function(){t._element.classList.remove(Po),t._element.classList.add(Mo),o.default(t._element).trigger($o),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))};if(this._element.classList.remove(Ao),y.reflow(this._element),this._element.classList.add(Po),this._config.animation){var i=y.getTransitionDurationFromElement(this._element);o.default(this._element).one(y.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains(Mo)){var t=o.default.Event(Lo);o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Mo)&&this._element.classList.remove(Mo),o.default(this._element).off(Oo),o.default.removeData(this._element,To),this._element=null,this._config=null},e._getConfig=function(t){return t=l({},Fo,o.default(this._element).data(),"object"==typeof t&&t?t:{}),y.typeCheckConfig(ko,t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;o.default(this._element).on(Oo,jo,function(){return t.hide()})},e._close=function(){var t=this,e=function(){t._element.classList.add(Ao),o.default(t._element).trigger(Io)};if(this._element.classList.remove(Mo),this._config.animation){var n=y.getTransitionDurationFromElement(this._element);o.default(this._element).one(y.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each(function(){var n=o.default(this),i=n.data(To);if(i||(i=new t(this,"object"==typeof e&&e),n.data(To,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}})},s(t,null,[{key:"VERSION",get:function(){return Eo}},{key:"DefaultType",get:function(){return No}},{key:"Default",get:function(){return Fo}}]),t}();o.default.fn[ko]=Bo._jQueryInterface,o.default.fn[ko].Constructor=Bo,o.default.fn[ko].noConflict=function(){return o.default.fn[ko]=Co,Bo._jQueryInterface},t.Alert=O,t.Button=Q,t.Carousel=Ut,t.Collapse=fe,t.Dropdown=en,t.Modal=jn,t.Popover=Ci,t.Scrollspy=Ji,t.Tab=_o,t.Toast=Bo,t.Tooltip=di,t.Util=y,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(4692),n(8851))},3258:function(t,e,n){var i,o,r;o=[n(4692)],void 0===(r="function"==typeof(i=function(t){function e(e){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(e)}return e.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},e.prototype.option=function(e){t.extend(this.options,e)},e.prototype.imageCountLabel=function(t,e){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,e)},e.prototype.init=function(){var e=this;t(document).ready(function(){e.enable(),e.build()})},e.prototype.enable=function(){var e=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(n){return e.start(t(n.currentTarget)),!1})},e.prototype.build=function(){if(!(t("#lightbox").length>0)){var e=this;t('<div id="lightboxOverlay" tabindex="-1" class="lightboxOverlay"></div><div id="lightbox" tabindex="-1" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=""/><div class="lb-nav"><a class="lb-prev" role="button" tabindex="0" aria-label="Previous image" href="" ></a><a class="lb-next" role="button" tabindex="0" aria-label="Next image" href="" ></a></div><div class="lb-loader"><a class="lb-cancel" role="button" tabindex="0"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close" role="button" tabindex="0"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return e.end(),!1}),this.$lightbox.hide().on("click",function(n){"lightbox"===t(n.target).attr("id")&&e.end()}),this.$outerContainer.on("click",function(n){return"lightbox"===t(n.target).attr("id")&&e.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===e.currentImageIndex?e.changeImage(e.album.length-1):e.changeImage(e.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return e.currentImageIndex===e.album.length-1?e.changeImage(0):e.changeImage(e.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(t){3===t.which&&(e.$nav.css("pointer-events","none"),e.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(e),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click keyup",function(t){if("click"===t.type||"keyup"===t.type&&(13===t.which||32===t.which))return e.end(),!1})}},e.prototype.start=function(e){var n=this,i=t(window);i.on("resize",t.proxy(this.sizeOverlay,this)),this.sizeOverlay(),this.album=[];var o=0;function r(t){n.album.push({alt:t.attr("data-alt"),link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var a,s=e.attr("data-lightbox");if(s){a=t(e.prop("tagName")+'[data-lightbox="'+s+'"]');for(var l=0;l<a.length;l=++l)r(t(a[l])),a[l]===e[0]&&(o=l)}else if("lightbox"===e.attr("rel"))r(e);else{a=t(e.prop("tagName")+'[rel="'+e.attr("rel")+'"]');for(var c=0;c<a.length;c=++c)r(t(a[c])),a[c]===e[0]&&(o=c)}var u=i.scrollTop()+this.options.positionFromTop,h=i.scrollLeft();this.$lightbox.css({top:u+"px",left:h+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&t("body").addClass("lb-disable-scrolling"),this.changeImage(o)},e.prototype.changeImage=function(e){var n=this,i=this.album[e].link,o=i.split(".").slice(-1)[0],r=this.$lightbox.find(".lb-image");this.disableKeyboardNav(),this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var a=new Image;a.onload=function(){var s,l,c,u,h,d;r.attr({alt:n.album[e].alt,src:i}),t(a),r.width(a.width),r.height(a.height);var f=a.width/a.height;d=t(window).width(),h=t(window).height(),u=d-n.containerPadding.left-n.containerPadding.right-n.imageBorderWidth.left-n.imageBorderWidth.right-20,c=h-n.containerPadding.top-n.containerPadding.bottom-n.imageBorderWidth.top-n.imageBorderWidth.bottom-n.options.positionFromTop-70,"svg"===o?(f>=1?(l=u,s=parseInt(u/f,10)):(l=parseInt(c/f,10),s=c),r.width(l),r.height(s)):(n.options.fitImagesInViewport?(n.options.maxWidth&&n.options.maxWidth<u&&(u=n.options.maxWidth),n.options.maxHeight&&n.options.maxHeight<c&&(c=n.options.maxHeight)):(u=n.options.maxWidth||a.width||u,c=n.options.maxHeight||a.height||c),(a.width>u||a.height>c)&&(a.width/u>a.height/c?(l=u,s=parseInt(a.height/(a.width/l),10),r.width(l),r.height(s)):(s=c,l=parseInt(a.width/(a.height/s),10),r.width(l),r.height(s)))),n.sizeContainer(r.width(),r.height())},a.src=this.album[e].link,this.currentImageIndex=e},e.prototype.sizeOverlay=function(){var e=this;setTimeout(function(){e.$overlay.width(t(document).width()).height(t(document).height())},0)},e.prototype.sizeContainer=function(t,e){var n=this,i=this.$outerContainer.outerWidth(),o=this.$outerContainer.outerHeight(),r=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,a=e+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;function s(){n.$lightbox.find(".lb-dataContainer").width(r),n.$lightbox.find(".lb-prevLink").height(a),n.$lightbox.find(".lb-nextLink").height(a),n.$overlay.trigger("focus"),n.showImage()}i!==r||o!==a?this.$outerContainer.animate({width:r,height:a},this.options.resizeDuration,"swing",function(){s()}):s()},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},e.prototype.updateDetails=function(){var t=this;if(void 0!==this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var e=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?e.text(this.album[this.currentImageIndex].title):e.html(this.album[this.currentImageIndex].title),e.fadeIn("fast")}if(this.album.length>1&&this.options.showImageNumberLabel){var n=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(n).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return t.sizeOverlay()})},e.prototype.preloadNeighboringImages=function(){this.album.length>this.currentImageIndex+1&&((new Image).src=this.album[this.currentImageIndex+1].link),this.currentImageIndex>0&&((new Image).src=this.album[this.currentImageIndex-1].link)},e.prototype.enableKeyboardNav=function(){this.$lightbox.on("keyup.keyboard",t.proxy(this.keyboardAction,this)),this.$overlay.on("keyup.keyboard",t.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){this.$lightbox.off(".keyboard"),this.$overlay.off(".keyboard")},e.prototype.keyboardAction=function(t){var e=27,n=37,i=39,o=t.keyCode;o===e?(t.stopPropagation(),this.end()):o===n?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):o===i&&(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},e.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),this.options.disableScrolling&&t("body").removeClass("lb-disable-scrolling")},new e})?i.apply(e,o):i)||(t.exports=r)},3573:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:r}}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 a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,n,i){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function s(t,e,n,i,o,r,a,s){return!(t+n/2<o-a/2||t-n/2>o+a/2||e+i/2<r-s/2||e-i/2>r+s/2)}function l(t,e,n,i,o,r,a){var s=Math.max(t-n/2,Math.min(o,t+n/2))-o,l=Math.max(e-i/2,Math.min(r,e+i/2))-r;return s*s+l*l<a*a}function c(t,e,n,i,o,r,a){for(var s=6*a,l=28*a,c=Math.min(80*a,i/(o*r)*.9),u=Math.max(l,c),h=null;u>=s;){t.font="bold ".concat(u,"px sans-serif");var d=v(e),f=[];if(2===r&&d.length>=4)if(d.every(function(t){return 1===t.length&&!t.match(/[a-zA-Z0-9]/)})&&d.length%2==0){var p=d.length/2,m=d.slice(0,p).join(""),g=d.slice(p).join(""),y=t.measureText(m).width,b=t.measureText(g).width;y<=.95*n&&b<=.95*n&&(f=[m,g])}if(0===f.length){for(var x="",w=0;w<d.length;w++){var _=d[w],k=x?x+_:_;if(t.measureText(k).width>.95*n)if(x)f.push(x.trim()),x=_;else if(_.length>1)if(/^[a-zA-Z]+$/.test(_)){for(var E="",T=0;T<_.length;T++){var S=_[T],C=E+S+"-";t.measureText(C).width>.95*n&&E.length>0?(f.push(E+"-"),E=S):E+=S}x=E}else for(var D=0;D<_.length;D++){var A=_[D],M=x+A;t.measureText(M).width>.95*n?x?(f.push(x),x=A):(f.push(A),x=""):x=M}else f.push(_),x="";else x=k}x&&f.push(x.trim())}var P=u*o*f.length;if(f.length<=r&&P<=.95*i){h={lines:f,fontSize:u};break}u-=1}h||(t.font="bold ".concat(s,"px sans-serif"),h={lines:[e.substring(0,10)+"..."],fontSize:s});return h}function u(t,e,n){var i=t.x-t.width/2,o=t.x+t.width/2,r=t.y-t.height/2,a=t.y+t.height/2,s=e.x-e.width/2,l=e.x+e.width/2,c=e.y-e.height/2,u=e.y+e.height/2;return!(o+n<s||i-n>l||a+n<c||r-n>u)}function h(t,e,n,i,o){for(var r=t.x-t.width/2-o,a=t.x+t.width/2+o,s=t.y-t.height/2-o,l=t.y+t.height/2+o,c=0;c<=20;c++){var u=c/20,h=(1-u)*(1-u)*e.x+2*(1-u)*u*n.x+u*u*i.x,d=(1-u)*(1-u)*e.y+2*(1-u)*u*n.y+u*u*i.y;if(h>=r&&h<=a&&d>=s&&d<=l)return!0}return!1}function d(t,e,i,o,r){for(var a=0,s=0;s<i;s++){a+=100*f(t,e[s])}for(var l=0;l<e.length;l++)if(l!==i){var c=e[l];a+=p(t,c.arrowStart,c.arrowControl,c.arrowEnd)}var u,h=n(o);try{for(h.s();!(u=h.n()).done;){a+=200*m(t,u.value)}}catch(t){h.e(t)}finally{h.f()}return a}function f(t,e){var n=t.x-t.width/2,i=t.x+t.width/2,o=t.y-t.height/2,r=t.y+t.height/2,a=e.x-e.width/2,s=e.x+e.width/2,l=e.y-e.height/2,c=e.y+e.height/2;return Math.max(0,Math.min(i,s)-Math.max(n,a))*Math.max(0,Math.min(r,c)-Math.max(o,l))}function p(t,e,n,i){for(var o=t.x-t.width/2,r=t.x+t.width/2,a=t.y-t.height/2,s=t.y+t.height/2,l=0,c=0;c<20;c++){var u=c/20,h=(c+1)/20,d=(1-u)*(1-u)*e.x+2*(1-u)*u*n.x+u*u*i.x,f=(1-u)*(1-u)*e.y+2*(1-u)*u*n.y+u*u*i.y,p=(1-h)*(1-h)*e.x+2*(1-h)*h*n.x+h*h*i.x,m=(1-h)*(1-h)*e.y+2*(1-h)*h*n.y+h*h*i.y;if(d>=o&&d<=r&&f>=a&&f<=s||p>=o&&p<=r&&m>=a&&m<=s)l+=Math.sqrt((p-d)*(p-d)+(m-f)*(m-f))}return l}function m(t,e){var n=t.x-e.x,i=t.y-e.y,o=Math.sqrt(n*n+i*i),r=Math.sqrt(t.width/2*(t.width/2)+t.height/2*(t.height/2)),a=e.radius+r;return o>=a?0:a-o}function g(t,e,n){var i=t.x-e.x,o=t.y-e.y,r=Math.sqrt(i*i+o*o),a=Math.sqrt(t.width/2*(t.width/2)+t.height/2*(t.height/2));return r<e.radius+a+n}function v(t){for(var e=Array.from(t),n=[],i=0;i<e.length;){var o=e[i];if(/[a-zA-Z0-9]/.test(o)){var r=o;for(i++;i<e.length&&/[a-zA-Z0-9]/.test(e[i]);)r+=e[i],i++;n.push(r)}else{var a=o;for(i++;i<e.length&&/[\u0E31\u0E33-\u0E3A\u0E47-\u0E4E]/.test(e[i]);)a+=e[i],i++;n.push(a)}}return n}function y(t){var e,n,i;if(t.startsWith("#")){var o=t.slice(1);3===o.length?(e=parseInt(o[0]+o[0],16),n=parseInt(o[1]+o[1],16),i=parseInt(o[2]+o[2],16)):(e=parseInt(o.slice(0,2),16),n=parseInt(o.slice(2,4),16),i=parseInt(o.slice(4,6),16))}else{if(!t.startsWith("rgb"))return!1;var r=t.match(/\d+/g);e=parseInt(r[0]),n=parseInt(r[1]),i=parseInt(r[2])}var a=e/255,s=n/255,l=i/255;return.2126*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.0722*(l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4))>.5}function b(t,e,n){t/=255,e/=255,n/=255;var i,o,r=Math.max(t,e,n),a=Math.min(t,e,n),s=(r+a)/2;if(r===a)i=o=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case t:i=((e-n)/l+(e<n?6:0))/6;break;case e:i=((n-t)/l+2)/6;break;case n:i=((t-e)/l+4)/6}}return{h:Math.round(360*i),s:Math.round(100*o),l:Math.round(100*s)}}function x(t,e,n){var i,o,r;if(t/=360,n/=100,0===(e/=100))i=o=r=n;else{var a=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=a(l,s,t+1/3),o=a(l,s,t),r=a(l,s,t-1/3)}return{r:Math.round(255*i),g:Math.round(255*o),b:Math.round(255*r)}}function w(t,e){var n,i,o;if(t.startsWith("#")){var r=t.slice(1);3===r.length?(n=parseInt(r[0]+r[0],16),i=parseInt(r[1]+r[1],16),o=parseInt(r[2]+r[2],16)):(n=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16))}else{if(!t.startsWith("rgb"))return"#000000";var a=t.match(/\d+/g);n=parseInt(a[0]),i=parseInt(a[1]),o=parseInt(a[2])}var s=b(n,i,o);s.l=Math.max(0,s.l*(1-e));var l=x(s.h,s.s,s.l);return"#".concat(l.r.toString(16).padStart(2,"0")).concat(l.g.toString(16).padStart(2,"0")).concat(l.b.toString(16).padStart(2,"0"))}var _={drawCorrelationChart:function(t,e){var i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"number"==typeof a&&(a={scale:a});var f=a&&a.ctx?a.ctx:t.getContext("2d");if(!f)throw new Error("Canvas 2D context is required");var p=t.width,m=t.height,v=null!==(i=a.baseDisplayWidth)&&void 0!==i?i:500,b="number"==typeof a.scale?a.scale:Math.max(1,p/v),x=!1!==a.resizeCanvas,_=a.backgroundColor||"#ffffff",k=a.verticalAlign||"top",E=null!==(o=a.offsetY)&&void 0!==o?o:0;f.clearRect(0,0,p,m);var T=e.correlationData||{},S=T.characters||[],C=T.centerCharacter;if(0===S.length)return f.fillStyle="#666",f.font="28px sans-serif",f.textAlign="center",f.textBaseline="middle",void f.fillText("登場人物を追加してください",p/2,m/2);var D,A=p/2,M=m/2,P=void 0!==C&&C>=0&&C<S.length,O=S.length;D=1===O?65*b:2===O?60*b:3===O?55*b:4===O?50*b:5===O?45*b:40*b;var L=[];if(P){var I=S[C],R=S.filter(function(t,e){return e!==C}),$=Math.min(p,m)/2.8;L.push(r(r({},I),{},{x:A,y:M,originalIndex:C,isCenter:!0,radius:D})),R.forEach(function(t,e){var n=e/R.length*2*Math.PI-Math.PI/2,i=A+$*Math.cos(n),o=M+$*Math.sin(n),a=S.findIndex(function(e){return e===t});L.push(r(r({},t),{},{x:i,y:o,originalIndex:a,isCenter:!1,radius:D}))})}else{var j=p/2-D-(6===O?40:0),F=S.map(function(t,e){var n=e/S.length*2*Math.PI-Math.PI/2,i=j*Math.cos(n),o=j*Math.sin(n);return 6===S.length&&(1!==e&&2!==e&&4!==e&&5!==e||(i*=1.15)),{x:i,y:o,char:t,index:e}}),N=D+1*b,B=1/0,z=-1/0,W=1/0,H=-1/0;F.forEach(function(t){B=Math.min(B,t.x-N),z=Math.max(z,t.x+N),W=Math.min(W,t.y-N),H=Math.max(H,t.y+N)});var V=A-(B+z)/2,U=M-(W+H)/2;F.forEach(function(t){L.push(r(r({},t.char),{},{x:t.x+V,y:t.y+U,originalIndex:t.index,isCenter:!1,radius:D}))})}var q=1*b,Y=1/0,X=-1/0,G=1/0,Z=-1/0;L.forEach(function(t){var e=t.radius+q;Y=Math.min(Y,t.x-e),X=Math.max(X,t.x+e),G=Math.min(G,t.y-e),Z=Math.max(Z,t.y+e)});var J=X-Y,Q=Z-G,K=E+Q,tt=m;if(x){var et=Math.max(1,Math.ceil(K));et!==t.height&&(t.height=et),tt=m=t.height}else tt=m;(f=a&&a.ctx?a.ctx:t.getContext("2d")).fillStyle=_,f.fillRect(0,0,p,tt);var nt=Math.max(0,tt-K),it=0;"center"===k?it=nt/2:"bottom"===k&&(it=nt);var ot=E-G+it;L.forEach(function(t){t.y+=ot});var rt=new Set;L.forEach(function(t){t.feelings&&0!==t.feelings.length&&t.feelings.forEach(function(e){var n=parseInt(e.target);if(!isNaN(n)){var i=L.find(function(t){return t.originalIndex===n});if(i&&i.feelings)if(i.feelings.some(function(e){return parseInt(e.target)===t.originalIndex})){var o=[Math.min(t.originalIndex,n),Math.max(t.originalIndex,n)].join("-");rt.add(o)}}})});var at=[];return L.forEach(function(t){t.feelings&&0!==t.feelings.length&&t.feelings.forEach(function(e){var n=parseInt(e.target);if(!isNaN(n)){var i=L.find(function(t){return t.originalIndex===n});if(i){var o=e.emotion||"";if(""!==o.trim()){var r=[Math.min(t.originalIndex,n),Math.max(t.originalIndex,n)].join("-"),a=rt.has(r),s=a&&t.originalIndex>n,l=function(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=e.x,l=e.y,c=n.x,u=n.y,h=c-s,d=u-l,f=Math.sqrt(h*h+d*d);if(0===f)return;var p,m,g=h/f,v=d/f,b=4*o,x=-v*b,_=g*b,k=e.radius+1*o,E=n.radius+1*o,T=s+g*k+x,S=l+v*k+_,C=c-g*E+x,D=u-v*E+_,A=(T+C)/2,M=(S+D)/2;if(r){var P,O,L=Math.min(.25*f,50*o);e.originalIndex<n.originalIndex?(P=e,O=n):(P=n,O=e);var I=O.x-P.x,R=O.y-P.y,$=Math.sqrt(I*I+R*R);if(0===$)p=A,m=M;else{var j=a?-1:1;p=A+-(R/$)*L*j,m=M+I/$*L*j}}else{var F=-v,N=g,B=Math.min(.15*f,30*o);p=A+F*B,m=M+N*B}var z=e.color||"#666",W=y(z)?w(z,.3):z;t.strokeStyle="#ffffff",t.lineWidth=6*o,t.beginPath(),t.moveTo(T,S),t.quadraticCurveTo(p,m,C,D),t.stroke(),t.globalAlpha=.7,t.strokeStyle=W,t.lineWidth=2*o,t.beginPath(),t.moveTo(T,S),t.quadraticCurveTo(p,m,C,D),t.stroke();var H=14*o,V=Math.atan2(D-m,C-p);t.globalAlpha=1,t.fillStyle="#ffffff",t.strokeStyle="#ffffff",t.lineWidth=2*o,t.beginPath(),t.moveTo(C,D),t.lineTo(C-H*Math.cos(V-Math.PI/6),D-H*Math.sin(V-Math.PI/6)),t.lineTo(C-H*Math.cos(V+Math.PI/6),D-H*Math.sin(V+Math.PI/6)),t.closePath(),t.fill(),t.stroke(),t.globalAlpha=.7,t.fillStyle=W,t.beginPath(),t.moveTo(C,D),t.lineTo(C-H*Math.cos(V-Math.PI/6),D-H*Math.sin(V-Math.PI/6)),t.lineTo(C-H*Math.cos(V+Math.PI/6),D-H*Math.sin(V+Math.PI/6)),t.closePath(),t.fill(),t.globalAlpha=1;var U=.5;return{x:(1-U)*(1-U)*T+2*(1-U)*U*p+U*U*C,y:(1-U)*(1-U)*S+2*(1-U)*U*m+U*U*D,emotion:i,color:z,scale:o,arrowStart:{x:T,y:S},arrowControl:{x:p,y:m},arrowEnd:{x:C,y:D},fromIndex:e.originalIndex,toIndex:n.originalIndex}}(f,t,i,o,b,a,s);l&&at.push(l)}}}})}),function(t,e,i,o,a,f,p){var m,v;f<=2?(m=90*a,v=50*a):3===f?(m=75*a,v=42*a):4===f?(m=68*a,v=38*a):(m=60*a,v=35*a);for(var b=1.1,x=2,_=e.map(function(e){var n=e.emotion;t.font="bold 28px sans-serif";var i=10*t.measureText("あ").width;if(t.measureText(n).width>i){for(var o=n;t.measureText(o+"...").width>i&&o.length>0;)o=o.substring(0,o.length-1);n=o+"..."}var s=c(t,n,m,v,b,x,a);return r(r({},e),{},{lines:s.lines,fontSize:s.fontSize,lineHeight:b,width:m,height:v,x:e.x,y:e.y,arrowStart:e.arrowStart,arrowControl:e.arrowControl,arrowEnd:e.arrowEnd,fromIndex:e.fromIndex,toIndex:e.toIndex})}),k=0;k<_.length;k++)for(var E=_[k],T=k+1;T<_.length;T++){var S=_[T];if(E.fromIndex===S.toIndex&&E.toIndex===S.fromIndex){var C=E.arrowStart.x,D=E.arrowStart.y,A=E.arrowControl.x,M=E.arrowControl.y,P=E.arrowEnd.x,O=E.arrowEnd.y,L=.25*C+.5*A+.25*P,I=.25*D+.5*M+.25*O,R=S.arrowStart.x,$=S.arrowStart.y,j=S.arrowControl.x,F=S.arrowControl.y,N=S.arrowEnd.x,B=S.arrowEnd.y,z=.25*R+.5*j+.25*N,W=.25*$+.5*F+.25*B,H=C-L,V=D-I,U=R-z,q=$-W,Y=.3;if(E.x=L+H*Y,E.y=I+V*Y,S.x=z+U*Y,S.y=W+q*Y,f<=3){var X=-2*(1-Y)*C+2*(1-2*Y)*A+2*Y*P,G=-2*(1-Y)*D+2*(1-2*Y)*M+2*Y*O,Z=Math.sqrt(X*X+G*G),J=-G/Z,Q=X/Z,K=-2*(1-Y)*R+2*(1-2*Y)*j+2*Y*N,tt=-2*(1-Y)*$+2*(1-2*Y)*F+2*Y*B,et=Math.sqrt(K*K+tt*tt),nt=-tt/et,it=K/et,ot=void 0;ot=2===f?20*a:15*a,E.x+=J*ot,E.y+=Q*ot,S.x+=nt*ot,S.y+=it*ot}E.isMutualEmotion=!0,S.isMutualEmotion=!0}}for(var rt=2*a,at=5*a,st=0;st<_.length;st++){for(var lt=_[st],ct=lt.x,ut=lt.y,ht=!1,dt=0;dt<st;dt++){if(u(lt,_[dt],rt)){ht=!0;break}}if(!lt.isMutualEmotion||ht){for(var ft=!1,pt=0;pt<_.length;pt++)if(st!==pt){var mt=_[pt];if(h(lt,mt.arrowStart,mt.arrowControl,mt.arrowEnd,at)){ft=!0;break}}var gt,vt=!1,yt=n(p);try{for(yt.s();!(gt=yt.n()).done;){if(g(lt,gt.value,rt)){vt=!0;break}}}catch(t){yt.e(t)}finally{yt.f()}if(ht||ft||vt){for(var bt=null,xt=1/0,wt=0,_t=[.5,.4,.6,.3,.7,.2,.8,.1,.9,.45,.55,.35,.65,.25,.75,.15,.85,.05,.95];wt<_t.length;wt++){var kt=_t[wt],Et=lt.arrowStart.x,Tt=lt.arrowStart.y,St=lt.arrowControl.x,Ct=lt.arrowControl.y,Dt=(1-kt)*(1-kt)*Et+2*(1-kt)*kt*St+kt*kt*lt.arrowEnd.x,At=(1-kt)*(1-kt)*Tt+2*(1-kt)*kt*Ct+kt*kt*lt.arrowEnd.y;lt.x=Dt,lt.y=At;var Mt=d(lt,_,st,p,at);if(0===Mt){bt={x:Dt,y:At},xt=0;break}Mt<xt&&(xt=Mt,bt={x:Dt,y:At})}bt?(lt.x=bt.x,lt.y=bt.y):(lt.x=ct,lt.y=ut)}}}(function(t,e,i,o,r,a,u,h){for(var d=1.8,f=.05,p=e.map(function(t,e){return{index:e,width:t.width,height:t.height,fontSize:t.fontSize,lines:t.lines,emotion:t.emotion,x:t.x,y:t.y}}),m=1,g=p.map(function(t){return{index:t.index,width:t.width,height:t.height,fontSize:t.fontSize,lines:t.lines}}),v=1+f;v<=d;v+=f){var y,b=!1,x=[],w=n(p);try{for(w.s();!(y=w.n()).done;){var _=y.value,k=_.width*v,E=_.height*v,T=c(t,_.emotion,k,E,r,a,o);x.push({index:_.index,width:k,height:E,fontSize:T.fontSize,lines:T.lines,x:_.x,y:_.y})}}catch(t){w.e(t)}finally{w.f()}for(var S=0;S<x.length;S++){for(var C=x[S],D=S+1;D<x.length;D++){var A=x[D];if(s(C.x,C.y,C.width,C.height,A.x,A.y,A.width,A.height)){b=!0;break}}if(b)break;if(!b){var M,P=n(i);try{for(P.s();!(M=P.n()).done;){var O=M.value,L=O.radius||40*o;if(l(C.x,C.y,C.width,C.height,O.x,O.y,L)){b=!0;break}}}catch(t){P.e(t)}finally{P.f()}}if(!b){var I=C.x-C.width/2,R=C.x+C.width/2,$=C.y-C.height/2,j=C.y+C.height/2;(I<0||R>u||$<0||j>h)&&(b=!0)}if(b)break}if(b)break;m=v,g=x}(100*(m-1)).toFixed(0);g.forEach(function(t){p[t.index];e[t.index].width=t.width,e[t.index].height=t.height,e[t.index].fontSize=t.fontSize,e[t.index].lines=t.lines})})(t,_,p,a,b,x,i,o),_.forEach(function(e){var n=e.x,i=e.y,o=e.lines,r=e.fontSize,a=e.lineHeight,s=e.color,l=e.width;e.height;t.font="bold ".concat(r,"px sans-serif"),t.textAlign="left",t.textBaseline="middle";var c=i-r*a*o.length/2+r/2,u=n-l/2;o.forEach(function(e,n){var i=c+r*a*n,o=y(s)?w(s,.6):s;t.strokeStyle="#ffffff",t.lineWidth=Math.max(4,.25*r),t.lineJoin="round",t.strokeText(e,u,i),t.fillStyle=o,t.fillText(e,u,i)})})}(f,at,p,tt,b,O,L),L.forEach(function(t){!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=e.x,o=e.y,r=e.radius,a=e.color||"#666";t.fillStyle=a,t.strokeStyle=w(a,.4),t.lineWidth=1*n,t.beginPath(),t.arc(i,o,r,0,2*Math.PI),t.fill(),t.stroke();var s=e.name||"";if(!s)return;var l=12;s.length>l&&(s=s.slice(0,l)+"...");var c=2*r*.85,u=2*r*.7,h=e.isCenter?32*n:28*n,d=10*n,f=y(a)?"#000000":"#ffffff";if(t.fillStyle=f,t.textAlign="center",t.textBaseline="middle",s.length>5){for(var p=Math.ceil(s.length/2),m=s.slice(0,p),g=s.slice(p),v=!1;h>d&&!v;){t.font="bold ".concat(h,"px sans-serif");var b=t.measureText(m).width,x=t.measureText(g).width;Math.max(b,x)<=c&&2.2*h<=u?v=!0:h-=1}t.font="bold ".concat(h,"px sans-serif");var _=.6*h;t.fillStyle=f,t.fillText(m,i,o-_),t.fillText(g,i,o+_)}else{for(var k=!1;h>d&&!k;){t.font="bold ".concat(h,"px sans-serif"),t.measureText(s).width<=c?k=!0:h-=1}t.font="bold ".concat(h,"px sans-serif"),t.fillStyle=f,t.fillText(s,i,o)}}(f,t,b)}),{width:t.width,height:t.height,chartWidth:J,chartHeight:Q,offsetY:E,scale:b}},calculateTitleSize:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:12;if(!t)return{displayTitle:"",fontSize:n};var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(o||"undefined"!=typeof document&&"function"==typeof document.createElement&&(o=document.createElement("canvas").getContext("2d")),!o)return{displayTitle:t.length>20?t.substring(0,20)+"…":t,fontSize:i};var r=n;o.font="bold ".concat(r,"px sans-serif");var a=t,s=o.measureText(a).width;if(s>e)for(;a.length>0;){var l=(a=a.slice(0,-1))+"…";if((s=o.measureText(l).width)<=e){a=l;break}}for(o.font="bold ".concat(r,"px sans-serif"),s=o.measureText(a).width;s>e&&r>i;)r-=1,o.font="bold ".concat(r,"px sans-serif"),s=o.measureText(a).width;return{displayTitle:a,fontSize:r}}};t.exports&&(t.exports=_),"undefined"!=typeof window&&(window.correlationChartCommon=_)},3647:()=>{},4417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},4634:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},4692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(i,o){"use strict";var r=[],a=Object.getPrototypeOf,s=r.slice,l=r.flat?function(t){return r.flat.call(t)}:function(t){return r.concat.apply([],t)},c=r.push,u=r.indexOf,h={},d=h.toString,f=h.hasOwnProperty,p=f.toString,m=p.call(Object),g={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,n){var i,o,r=(n=n||b).createElement("script");if(r.text=t,e)for(i in x)(o=e[i]||e.getAttribute&&e.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[d.call(t)]||"object":typeof t}var k="3.7.1",E=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:k,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},T.extend=T.fn.extend=function(){var t,e,n,i,o,r,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(c&&i&&(T.isPlainObject(i)||(o=Array.isArray(i)))?(n=a[e],r=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,a[e]=T.extend(c,r,i)):void 0!==i&&(a[e]=i));return a},T.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t))&&(!(e=a(t))||"function"==typeof(n=f.call(e,"constructor")&&e.constructor)&&p.call(n)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){w(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(S(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,o=t.nodeType;if(!o)for(;e=t[i++];)n+=T.text(e);return 1===o||11===o?t.textContent:9===o?t.documentElement.textContent:3===o||4===o?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?T.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!E.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,a=!n;o<r;o++)!e(t[o],o)!==a&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,a=[];if(S(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&a.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&a.push(o);return l(a)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=r[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){h["[object "+e+"]"]=e.toLowerCase()});var D=r.pop,A=r.sort,M=r.splice,P="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(L,I)};var R=b,$=c;!function(){var t,e,n,o,a,l,c,h,d,p,m=$,v=T.expando,y=0,b=0,x=tt(),w=tt(),_=tt(),k=tt(),E=function(t,e){return t===e&&(a=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+P+"*("+L+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+P+"*\\]",j=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",F=new RegExp(P+"+","g"),N=new RegExp("^"+P+"*,"+P+"*"),B=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),z=new RegExp(P+"|>"),W=new RegExp(j),H=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),Z=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){lt()},Q=dt(function(t){return!0===t.disabled&&C(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(r=s.call(R.childNodes),R.childNodes),r[R.childNodes.length].nodeType}catch(t){m={apply:function(t,e){$.apply(t,s.call(e))},call:function(t){$.apply(t,s.call(arguments,1))}}}function K(t,e,n,i){var o,r,a,s,c,u,f,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,h)){if(11!==y&&(c=Y.exec(t)))if(o=c[1]){if(9===y){if(!(a=e.getElementById(o)))return n;if(a.id===o)return m.call(n,a),n}else if(p&&(a=p.getElementById(o))&&K.contains(e,a)&&a.id===o)return m.call(n,a),n}else{if(c[2])return m.apply(n,e.getElementsByTagName(t)),n;if((o=c[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(o)),n}if(!(k[t+" "]||d&&d.test(t))){if(f=t,p=e,1===y&&(z.test(t)||B.test(t))){for((p=X.test(t)&&st(e.parentNode)||e)==e&&g.scope||((s=e.getAttribute("id"))?s=T.escapeSelector(s):e.setAttribute("id",s=v)),r=(u=ut(t)).length;r--;)u[r]=(s?"#"+s:":scope")+" "+ht(u[r]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){k(t,!0)}finally{s===v&&e.removeAttribute("id")}}}return yt(t.replace(O,"$1"),e,n,i)}function tt(){var t=[];return function n(i,o){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=o}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return C(e,"input")&&e.type===t}}function ot(t){return function(e){return(C(e,"input")||C(e,"button"))&&e.type===t}}function rt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Q(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et(function(e){return e=+e,et(function(n,i){for(var o,r=t([],n.length,e),a=r.length;a--;)n[o=r[a]]&&(n[o]=!(i[o]=n[o]))})})}function st(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:R;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,h=!T.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",J),g.getById=nt(function(t){return c.appendChild(t).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length}),g.disconnectedMatch=nt(function(t){return p.call(t,"*")}),g.scope=nt(function(){return l.querySelectorAll(":scope")}),g.cssHas=nt(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace(G,Z);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(G,Z);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},d=[],nt(function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+P+"*(?:value|"+S+")"),t.querySelectorAll("[id~="+v+"-]").length||d.push("~="),t.querySelectorAll("a#"+v+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")}),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),E=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==R&&K.contains(R,t)?-1:e===l||e.ownerDocument==R&&K.contains(R,e)?1:o?u.call(o,t)-u.call(o,e):0:4&n?-1:1)},l):l}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(lt(t),h&&!k[e+" "]&&(!d||!d.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){k(e,!0)}return K(e,l,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),T.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=l&<(t);var i=e.attrHandle[n.toLowerCase()],o=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!h):void 0;return void 0!==o?o:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],i=0,r=0;if(a=!g.sortStable,o=!g.sortStable&&s.call(t,0),A.call(t,E),a){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)M.call(t,n[i],1)}return o=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(s.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(G,Z),t[3]=(t[3]||t[4]||t[5]||"").replace(G,Z),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(G,Z).toLowerCase();return"*"===t?function(){return!0}:function(t){return C(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+P+")"+t+"("+P+"|$)"))&&x(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var o=K.attr(i,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&o.indexOf(n)>-1:"$="===e?n&&o.slice(-n.length)===n:"~="===e?(" "+o.replace(F," ")+" ").indexOf(n)>-1:"|="===e&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,d,f,p=r!==a?"nextSibling":"previousSibling",m=e.parentNode,g=s&&e.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(m){if(r){for(;p;){for(h=e;h=h[p];)if(s?C(h,g):1===h.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&b){for(x=(d=(c=(u=m[v]||(m[v]={}))[t]||[])[0]===y&&c[1])&&c[2],h=d&&m.childNodes[d];h=++d&&h&&h[p]||(x=d=0)||f.pop();)if(1===h.nodeType&&++x&&h===e){u[t]=[y,d,x];break}}else if(b&&(x=d=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===x)for(;(h=++d&&h&&h[p]||(x=d=0)||f.pop())&&(!(s?C(h,g):1===h.nodeType)||!++x||(b&&((u=h[v]||(h[v]={}))[t]=[y,x]),h!==e)););return(x-=o)===i||x%i===0&&x/i>=0}}},PSEUDO:function(t,n){var i,o=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return o[v]?o(n):o.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var i,r=o(t,n),a=r.length;a--;)t[i=u.call(t,r[a])]=!(e[i]=r[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:et(function(t){var e=[],n=[],i=vt(t.replace(O,"$1"));return i[v]?et(function(t,e,n,o){for(var r,a=i(t,null,o,[]),s=t.length;s--;)(r=a[s])&&(t[s]=!(e[s]=r))}):function(t,o,r){return e[0]=t,i(e,null,r,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return K(t,e).length>0}}),contains:et(function(t){return t=t.replace(G,Z),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}}),lang:et(function(t){return H.test(t||"")||K.error("unsupported lang: "+t),t=t.replace(G,Z).toLowerCase(),function(e){var n;do{if(n=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:rt(!1),disabled:rt(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return q.test(t.nodeName)},input:function(t){return U.test(t.nodeName)},button:function(t){return C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at(function(){return[0]}),last:at(function(t,e){return[e-1]}),eq:at(function(t,e,n){return[n<0?n+e:n]}),even:at(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:at(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:at(function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:at(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=ot(t);function ct(){}function ut(t,n){var i,o,r,a,s,l,c,u=w[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=e.preFilter;s;){for(a in i&&!(o=N.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(r=[])),i=!1,(o=B.exec(s))&&(i=o.shift(),r.push({value:i,type:o[0].replace(O," ")}),s=s.slice(i.length)),e.filter)!(o=V[a].exec(s))||c[a]&&!(o=c[a](o))||(i=o.shift(),r.push({value:i,type:a,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?K.error(t):w(t,l).slice(0)}function ht(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function dt(t,e,n){var i=e.dir,o=e.next,r=o||i,a=n&&"parentNode"===r,s=b++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,o);return!1}:function(e,n,l){var c,u,h=[y,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(u=e[v]||(e[v]={}),o&&C(e,o))e=e[i]||e;else{if((c=u[r])&&c[0]===y&&c[1]===s)return h[2]=c[2];if(u[r]=h,h[2]=t(e,n,l))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,o){for(var r,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(r=t[s])&&(n&&!n(r,i,o)||(a.push(r),c&&e.push(s)));return a}function mt(t,e,n,i,o,r){return i&&!i[v]&&(i=mt(i)),o&&!o[v]&&(o=mt(o,r)),et(function(r,a,s,l){var c,h,d,f,p=[],g=[],v=a.length,y=r||function(t,e,n){for(var i=0,o=e.length;i<o;i++)K(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),b=!t||!r&&e?y:pt(y,p,t,s,l);if(n?n(b,f=o||(r?t:v||i)?[]:a,s,l):f=b,i)for(c=pt(f,g),i(c,[],s,l),h=c.length;h--;)(d=c[h])&&(f[g[h]]=!(b[g[h]]=d));if(r){if(o||t){if(o){for(c=[],h=f.length;h--;)(d=f[h])&&c.push(b[h]=d);o(null,f=[],c,l)}for(h=f.length;h--;)(d=f[h])&&(c=o?u.call(r,d):p[h])>-1&&(r[c]=!(a[c]=d))}}else f=pt(f===a?f.splice(v,f.length):f),o?o(null,a,f,l):m.apply(a,f)})}function gt(t){for(var i,o,r,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],c=s?1:0,h=dt(function(t){return t===i},l,!0),d=dt(function(t){return u.call(i,t)>-1},l,!0),f=[function(t,e,o){var r=!s&&(o||e!=n)||((i=e).nodeType?h(t,e,o):d(t,e,o));return i=null,r}];c<a;c++)if(o=e.relative[t[c].type])f=[dt(ft(f),o)];else{if((o=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(r=++c;r<a&&!e.relative[t[r].type];r++);return mt(c>1&&ft(f),c>1&&ht(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(O,"$1"),o,c<r&>(t.slice(c,r)),r<a&>(t=t.slice(r)),r<a&&ht(t))}f.push(o)}return ft(f)}function vt(t,i){var o,r=[],a=[],s=_[t+" "];if(!s){for(i||(i=ut(t)),o=i.length;o--;)(s=gt(i[o]))[v]?r.push(s):a.push(s);s=_(t,function(t,i){var o=i.length>0,r=t.length>0,a=function(a,s,c,u,d){var f,p,g,v=0,b="0",x=a&&[],w=[],_=n,k=a||r&&e.find.TAG("*",d),E=y+=null==_?1:Math.random()||.1,S=k.length;for(d&&(n=s==l||s||d);b!==S&&null!=(f=k[b]);b++){if(r&&f){for(p=0,s||f.ownerDocument==l||(lt(f),c=!h);g=t[p++];)if(g(f,s||l,c)){m.call(u,f);break}d&&(y=E)}o&&((f=!g&&f)&&v--,a&&x.push(f))}if(v+=b,o&&b!==v){for(p=0;g=i[p++];)g(x,w,s,c);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=D.call(u));w=pt(w)}m.apply(u,w),d&&!a&&w.length>0&&v+i.length>1&&T.uniqueSort(u)}return d&&(y=E,n=_),x};return o?et(a):a}(a,r)),s.selector=t}return s}function yt(t,n,i,o){var r,a,s,l,c,u="function"==typeof t&&t,d=!o&&ut(t=u.selector||t);if(i=i||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&h&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(G,Z),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(r=V.needsContext.test(t)?0:a.length;r--&&(s=a[r],!e.relative[l=s.type]);)if((c=e.find[l])&&(o=c(s.matches[0].replace(G,Z),X.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(r,1),!(t=o.length&&ht(a)))return m.apply(i,o),i;break}}return(u||vt(t,d))(o,n,!h,i,!n||X.test(t)&&st(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,g.sortStable=v.split("").sort(E).join("")===v,lt(),g.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))}),T.find=K,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,K.compile=vt,K.select=yt,K.setDocument=lt,K.tokenize=ut,K.escape=T.escapeSelector,K.getText=T.text,K.isXML=T.isXMLDoc,K.selectors=T.expr,K.support=T.support,K.uniqueSort=T.uniqueSort}();var j=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&T(t).is(n))break;i.push(t)}return i},F=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},N=T.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return v(e)?T.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?T.grep(t,function(t){return t===e!==n}):"string"!=typeof e?T.grep(t,function(t){return u.call(e,t)>-1!==n}):T.filter(e,t,n)}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<i;e++)if(T.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)T.find(t,o[e],n);return i>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&N.test(t)?T(t):t||[],!1).length}});var W,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||W,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:H.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),B.test(i[1])&&T.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=b.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,W=T(b);var V=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function q(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,r=[],a="string"!=typeof t&&T(t);if(!N.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?T.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?u.call(T(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,"parentNode")},parentsUntil:function(t,e,n){return j(t,"parentNode",n)},next:function(t){return q(t,"nextSibling")},prev:function(t){return q(t,"previousSibling")},nextAll:function(t){return j(t,"nextSibling")},prevAll:function(t){return j(t,"previousSibling")},nextUntil:function(t,e,n){return j(t,"nextSibling",n)},prevUntil:function(t,e,n){return j(t,"previousSibling",n)},siblings:function(t){return F((t.parentNode||{}).firstChild,t)},children:function(t){return F(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},function(t,e){T.fn[t]=function(n,i){var o=T.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=T.filter(i,o)),this.length>1&&(U[t]||T.uniqueSort(o),V.test(t)&&o.reverse()),this.pushStack(o)}});var Y=/[^\x20\t\r\n\f]+/g;function X(t){return t}function G(t){throw t}function Z(t,e,n,i){var o;try{t&&v(o=t.promise)?o.call(t).done(e).fail(n):t&&v(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(Y)||[],function(t,n){e[n]=!0}),e}(t):T.extend({},t);var e,n,i,o,r=[],a=[],s=-1,l=function(){for(o=o||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!e&&(s=r.length-1,a.push(n)),function e(n){T.each(n,function(n,i){v(i)?t.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==_(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return T.each(arguments,function(t,e){for(var n;(n=T.inArray(e,r,n))>-1;)r.splice(n,1),n<=s&&s--}),this},has:function(t){return t?T.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=a=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=a=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return T.Deferred(function(n){T.each(e,function(e,i){var o=v(t[i[4]])&&t[i[4]];r[i[1]](function(){var t=o&&o.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(t,n,o){var r=0;function a(t,e,n,o){return function(){var s=this,l=arguments,c=function(){var i,c;if(!(t<r)){if((i=n.apply(s,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?o?c.call(i,a(r,e,X,o),a(r,e,G,o)):(r++,c.call(i,a(r,e,X,o),a(r,e,G,o),a(r,e,X,e.notifyWith))):(n!==X&&(s=void 0,l=[i]),(o||e.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,u.error),t+1>=r&&(n!==G&&(s=void 0,l=[i]),e.rejectWith(s,l))}};t?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),i.setTimeout(u))}}return T.Deferred(function(i){e[0][3].add(a(0,i,v(o)?o:X,i.notifyWith)),e[1][3].add(a(0,i,v(t)?t:X)),e[2][3].add(a(0,i,v(n)?n:G))}).promise()},promise:function(t){return null!=t?T.extend(t,o):o}},r={};return T.each(e,function(t,i){var a=i[2],s=i[5];o[i[1]]=a.add,s&&a.add(function(){n=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=a.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,n=e,i=Array(n),o=s.call(arguments),r=T.Deferred(),a=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?s.call(arguments):n,--e||r.resolveWith(i,o)}};if(e<=1&&(Z(t,r.done(a(n)).resolve,r.reject,!e),"pending"===r.state()||v(o[n]&&o[n].then)))return r.then();for(;n--;)Z(o[n],a(n),r.reject);return r.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&J.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){i.setTimeout(function(){throw t})};var Q=T.Deferred();function K(){b.removeEventListener("DOMContentLoaded",K),i.removeEventListener("load",K),T.ready()}T.fn.ready=function(t){return Q.then(t).catch(function(t){T.readyException(t)}),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||Q.resolveWith(b,[T]))}}),T.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",K),i.addEventListener("load",K));var tt=function(t,e,n,i,o,r,a){var s=0,l=t.length,c=null==n;if("object"===_(n))for(s in o=!0,n)tt(t,e,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,v(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(T(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return o?t:c?e.call(t):l?e(t[0],n):r},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function ot(t){return t.replace(et,"ms-").replace(nt,it)}var rt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function at(){this.expando=T.expando+at.uid++}at.uid=1,at.prototype={cache:function(t){var e=t[this.expando];return e||(e={},rt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[ot(e)]=n;else for(i in e)o[ot(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ot(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(ot):(e=ot(e))in i?[e]:e.match(Y)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||T.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var st=new at,lt=new at,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function ht(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return lt.hasData(t)||st.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return st.access(t,e,n)},_removeData:function(t,e){st.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0===t){if(this.length&&(o=lt.get(r),1===r.nodeType&&!st.get(r,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=ot(i.slice(5)),ht(r,i,o[i]));st.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){lt.set(this,t)}):tt(this,function(e){var n;if(r&&void 0===e)return void 0!==(n=lt.get(r,t))||void 0!==(n=ht(r,t))?n:void 0;this.each(function(){lt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){lt.remove(this,t)})}}),T.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=st.get(t,e),n&&(!i||Array.isArray(n)?i=st.access(t,e,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,o=n.shift(),r=T._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,function(){T.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:T.Callbacks("once memory").add(function(){st.remove(t,[e+"queue",n])})})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each(function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=T.Deferred(),r=this,a=this.length,s=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st.get(r[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=b.documentElement,gt=function(t){return T.contains(t.ownerDocument,t)},vt={composed:!0};mt.getRootNode&&(gt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===T.css(t,"display")};function bt(t,e,n,i){var o,r,a=20,s=i?function(){return i.cur()}:function(){return T.css(t,e,"")},l=s(),c=n&&n[3]||(T.cssNumber[e]?"":"px"),u=t.nodeType&&(T.cssNumber[e]||"px"!==c&&+l)&&ft.exec(T.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)T.style(t,e,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;u*=2,T.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var xt={};function wt(t){var e,n=t.ownerDocument,i=t.nodeName,o=xt[i];return o||(e=n.body.appendChild(n.createElement(i)),o=T.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),xt[i]=o,o)}function _t(t,e){for(var n,i,o=[],r=0,a=t.length;r<a;r++)(i=t[r]).style&&(n=i.style.display,e?("none"===n&&(o[r]=st.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&yt(i)&&(o[r]=wt(i))):"none"!==n&&(o[r]="none",st.set(i,"display",n)));for(r=0;r<a;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}T.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){yt(this)?T(this).show():T(this).hide()})}});var kt,Et,Tt=/^(?:checkbox|radio)$/i,St=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;kt=b.createDocumentFragment().appendChild(b.createElement("div")),(Et=b.createElement("input")).setAttribute("type","radio"),Et.setAttribute("checked","checked"),Et.setAttribute("name","t"),kt.appendChild(Et),g.checkClone=kt.cloneNode(!0).cloneNode(!0).lastChild.checked,kt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!kt.cloneNode(!0).lastChild.defaultValue,kt.innerHTML="<option></option>",g.option=!!kt.lastChild;var Dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function At(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?T.merge([t],n):n}function Mt(t,e){for(var n=0,i=t.length;n<i;n++)st.set(t[n],"globalEval",!e||st.get(e[n],"globalEval"))}Dt.tbody=Dt.tfoot=Dt.colgroup=Dt.caption=Dt.thead,Dt.th=Dt.td,g.option||(Dt.optgroup=Dt.option=[1,"<select multiple='multiple'>","</select>"]);var Pt=/<|&#?\w+;/;function Ot(t,e,n,i,o){for(var r,a,s,l,c,u,h=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===_(r))T.merge(d,r.nodeType?[r]:r);else if(Pt.test(r)){for(a=a||h.appendChild(e.createElement("div")),s=(St.exec(r)||["",""])[1].toLowerCase(),l=Dt[s]||Dt._default,a.innerHTML=l[1]+T.htmlPrefilter(r)+l[2],u=l[0];u--;)a=a.lastChild;T.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(e.createTextNode(r));for(h.textContent="",f=0;r=d[f++];)if(i&&T.inArray(r,i)>-1)o&&o.push(r);else if(c=gt(r),a=At(h.appendChild(r),"script"),c&&Mt(a),n)for(u=0;r=a[u++];)Ct.test(r.type||"")&&n.push(r);return h}var Lt=/^([^.]*)(?:\.(.+)|)/;function It(){return!0}function Rt(){return!1}function $t(t,e,n,i,o,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)$t(t,s,n,i,e[s],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Rt;else if(!o)return t;return 1===r&&(a=o,o=function(t){return T().off(t),a.apply(this,arguments)},o.guid=a.guid||(a.guid=T.guid++)),t.each(function(){T.event.add(this,e,o,i,n)})}function jt(t,e,n){n?(st.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,i=st.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=s.call(arguments),st.set(this,e,i),this[e](),n=st.get(this,e),st.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(st.set(this,e,T.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=It)}})):void 0===st.get(t,e)&&T.event.add(t,e,It)}T.event={global:{},add:function(t,e,n,i,o){var r,a,s,l,c,u,h,d,f,p,m,g=st.get(t);if(rt(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&T.find.matchesSelector(mt,o),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(Y)||[""]).length;c--;)f=m=(s=Lt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(h=T.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=T.event.special[f]||{},u=T.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:p.join(".")},r),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[f]=!0)},remove:function(t,e,n,i,o){var r,a,s,l,c,u,h,d,f,p,m,g=st.hasData(t)&&st.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(Y)||[""]).length;c--;)if(f=m=(s=Lt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(h=T.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=d.length;r--;)u=d[r],!o&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,g.handle)||T.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)T.event.remove(t,f+e[c],n,i,!0);T.isEmptyObject(l)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,a,s=new Array(arguments.length),l=T.event.fix(t),c=(st.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,c),e=0;(o=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((T.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,o,r,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(r=[],a={},n=0;n<l;n++)void 0===a[o=(i=e[n]).selector+" "]&&(a[o]=i.needsContext?T(o,this).index(c)>-1:T.find(o,this,null,[c]).length),a[o]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&C(e,"input")&&jt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&C(e,"input")&&jt(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&C(e,"input")&&st.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?It:Rt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Rt,isPropagationStopped:Rt,isImmediatePropagationStopped:Rt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=It,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=It,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=It,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(b.documentMode){var n=st.get(this,"handle"),i=T.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var i;if(jt(this,t,!0),!b.documentMode)return!1;(i=st.get(this,e))||this.addEventListener(e,n),st.set(this,e,(i||0)+1)},trigger:function(){return jt(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=st.get(this,e)-1)?st.set(this,e,t):(this.removeEventListener(e,n),st.remove(this,e))},_default:function(e){return st.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,o=b.documentMode?this:i,r=st.get(o,e);r||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),st.set(o,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=b.documentMode?this:i,r=st.get(o,e)-1;r?st.set(o,e,r):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),st.remove(o,e))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,o=t.handleObj;return i&&(i===this||T.contains(this,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),T.fn.extend({on:function(t,e,n,i){return $t(this,t,e,n,i)},one:function(t,e,n,i){return $t(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Rt),this.each(function(){T.event.remove(this,t,n,e)})}});var Ft=/<script|<style|<link/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,Bt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Wt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,i,o,r,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(o in st.remove(e,"handle events"),s)for(n=0,i=s[o].length;n<i;n++)T.event.add(e,o,s[o][n]);lt.hasData(t)&&(r=lt.access(t),a=T.extend({},r),lt.set(e,a))}}function Ut(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function qt(t,e,n,i){e=l(e);var o,r,a,s,c,u,h=0,d=t.length,f=d-1,p=e[0],m=v(p);if(m||d>1&&"string"==typeof p&&!g.checkClone&&Nt.test(p))return t.each(function(o){var r=t.eq(o);m&&(e[0]=p.call(this,o,r.html())),qt(r,e,n,i)});if(d&&(r=(o=Ot(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(s=(a=T.map(At(o,"script"),Wt)).length;h<d;h++)c=o,h!==f&&(c=T.clone(c,!0,!0),s&&T.merge(a,At(c,"script"))),n.call(t[h],c,h);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,Ht),h=0;h<s;h++)c=a[h],Ct.test(c.type||"")&&!st.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Bt,""),c,u))}return t}function Yt(t,e,n){for(var i,o=e?T.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||T.cleanData(At(i)),i.parentNode&&(n&>(i)&&Mt(At(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,o,r,a,s=t.cloneNode(!0),l=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=At(s),i=0,o=(r=At(t)).length;i<o;i++)Ut(r[i],a[i]);if(e)if(n)for(r=r||At(t),a=a||At(s),i=0,o=r.length;i<o;i++)Vt(r[i],a[i]);else Vt(t,s);return(a=At(s,"script")).length>0&&Mt(a,!l&&At(t,"script")),s},cleanData:function(t){for(var e,n,i,o=T.event.special,r=0;void 0!==(n=t[r]);r++)if(rt(n)){if(e=n[st.expando]){if(e.events)for(i in e.events)o[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[st.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return qt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)})},prepend:function(){return qt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return qt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return qt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(At(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ft.test(t)&&!Dt[(St.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(At(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return qt(this,arguments,function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(At(this)),n&&n.replaceChild(e,this))},t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){T.fn[t]=function(t){for(var n,i=[],o=T(t),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),T(o[a])[e](n),c.apply(i,n.get());return this.pushStack(i)}});var Xt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Gt=/^--/,Zt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Jt=function(t,e,n){var i,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in i=n.call(t),e)t.style[o]=r[o];return i},Qt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var i,o,r,a,s=Gt.test(e),l=t.style;return(n=n||Zt(t))&&(a=n.getPropertyValue(e)||n[e],s&&a&&(a=a.replace(O,"$1")||void 0),""!==a||gt(t)||(a=T.style(t,e)),!g.pixelBoxStyles()&&Xt.test(a)&&Qt.test(e)&&(i=l.width,o=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=i,l.minWidth=o,l.maxWidth=r)),void 0!==a?a+"":a}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",a=36===e(t.right),o=36===e(t.width),u.style.position="absolute",r=12===e(u.offsetWidth/3),mt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,o,r,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,e,n,o;return null==s&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),o=i.getComputedStyle(e),s=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),s}}))}();var ee=["Webkit","Moz","ms"],ne=b.createElement("div").style,ie={};function oe(t){var e=T.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var re=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,o,r){var a="width"===e?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=T.css(t,n+pt[a],!0,o)),i?("content"===n&&(l-=T.css(t,"padding"+pt[a],!0,o)),"margin"!==n&&(l-=T.css(t,"border"+pt[a]+"Width",!0,o))):(l+=T.css(t,"padding"+pt[a],!0,o),"padding"!==n?l+=T.css(t,"border"+pt[a]+"Width",!0,o):s+=T.css(t,"border"+pt[a]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-s-.5))||0),l+c}function ue(t,e,n){var i=Zt(t),o=(!g.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,i),r=o,a=Kt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(t,"display",!1,i))&&t.getClientRects().length&&(o="border-box"===T.css(t,"boxSizing",!1,i),(r=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ce(t,e,n||(o?"border":"content"),r,i,a)+"px"}function he(t,e,n,i,o){return new he.prototype.init(t,e,n,i,o)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,s=ot(e),l=Gt.test(e),c=t.style;if(l||(e=oe(s)),a=T.cssHooks[e]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(t,!1,i))?o:c[e];"string"===(r=typeof n)&&(o=ft.exec(n))&&o[1]&&(n=bt(t,e,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(T.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var o,r,a,s=ot(e);return Gt.test(e)||(e=oe(s)),(a=T.cssHooks[e]||T.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=Kt(t,e,i)),"normal"===o&&e in se&&(o=se[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),T.each(["height","width"],function(t,e){T.cssHooks[e]={get:function(t,n,i){if(n)return!re.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):Jt(t,ae,function(){return ue(t,e,i)})},set:function(t,n,i){var o,r=Zt(t),a=!g.scrollboxSize()&&"absolute"===r.position,s=(a||i)&&"border-box"===T.css(t,"boxSizing",!1,r),l=i?ce(t,e,i,s,r):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-ce(t,e,"border",!1,r)-.5)),l&&(o=ft.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),le(0,n,l)}}}),T.cssHooks.marginLeft=te(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(t,e){T.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+pt[i]+e]=r[i]||r[i-2]||r[0];return o}},"margin"!==t&&(T.cssHooks[t+e].set=le)}),T.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var i,o,r={},a=0;if(Array.isArray(e)){for(i=Zt(t),o=e.length;a<o;a++)r[e[a]]=T.css(t,e[a],!1,i);return r}return void 0!==n?T.style(t,e,n):T.css(t,e)},t,e,arguments.length>1)}}),T.Tween=he,he.prototype={constructor:he,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(T.cssNumber[n]?"":"px")},cur:function(){var t=he.propHooks[this.prop];return t&&t.get?t.get(this):he.propHooks._default.get(this)},run:function(t){var e,n=he.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):he.propHooks._default.set(this),this}},he.prototype.init.prototype=he.prototype,he.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},he.propHooks.scrollTop=he.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=he.prototype.init,T.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ge):i.setTimeout(ge,T.fx.interval),T.fx.tick())}function ve(){return i.setTimeout(function(){de=void 0}),de=Date.now()}function ye(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=pt[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function be(t,e,n){for(var i,o=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,e,t))return i}function xe(t,e,n){var i,o,r=0,a=xe.prefilters.length,s=T.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=de||ve(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),r=0,a=c.tweens.length;r<a;r++)c.tweens[r].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=T.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var n,i,o,r,a;for(n in t)if(o=e[i=ot(n)],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(a=T.cssHooks[i])&&"expand"in a)for(n in r=a.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(u,c.opts.specialEasing);r<a;r++)if(i=xe.prefilters[r].call(c,t,u,c.opts))return v(i.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return T.map(u,be,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(xe,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(Y);for(var n,i=0,o=t.length;i<o;i++)n=t[i],xe.tweeners[n]=xe.tweeners[n]||[],xe.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,a,s,l,c,u,h="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&yt(t),g=st.get(t,"fxshow");for(i in n.queue||(null==(a=T._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,T.queue(t,"fx").length||a.empty.fire()})})),e)if(o=e[i],pe.test(o)){if(delete e[i],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||T.style(t,i)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(f))for(i in h&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=st.get(t,"display")),"none"===(u=T.css(t,"display"))&&(c?u=c:(_t([t],!0),c=t.style.display||c,u=T.css(t,"display"),_t([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(t,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=st.access(t,"fxshow",{display:c}),r&&(g.hidden=!m),m&&_t([t],!0),d.done(function(){for(i in m||_t([t]),st.remove(t,"fxshow"),f)T.style(t,i,f[i])})),l=be(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=T.isEmptyObject(t),r=T.speed(e,n,i),a=function(){var e=xe(this,T.extend({},t),r);(o||st.get(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",r=T.timers,a=st.get(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&me.test(o)&&i(a[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||T.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=st.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=T.timers,a=i?i.length:0;for(n.finish=!0,T.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),T.each(["toggle","show","hide"],function(t,e){var n=T.fn[e];T.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,o)}}),T.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){T.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),de=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){fe||(fe=!0,ge())},T.fx.stop=function(){fe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var o=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(o)}})},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var we,_e=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?T.prop(t,e,n):(1===r&&T.isXMLDoc(t)||(o=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(Y);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||T.find.attr;_e[e]=function(t,e,i){var o,r,a=e.toLowerCase();return i||(r=_e[a],_e[a]=o,o=null!=n(t,e,i)?a:null,_e[a]=r),o}});var ke=/^(?:input|select|textarea|button)$/i,Ee=/^(?:a|area)$/i;function Te(t){return(t.match(Y)||[]).join(" ")}function Se(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&T.isXMLDoc(t)||(e=T.propFix[e]||e,o=T.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||Ee.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,i,o,r,a;return v(t)?this.each(function(e){T(this).addClass(t.call(this,e,Se(this)))}):(e=Ce(t)).length?this.each(function(){if(i=Se(this),n=1===this.nodeType&&" "+Te(i)+" "){for(r=0;r<e.length;r++)o=e[r],n.indexOf(" "+o+" ")<0&&(n+=o+" ");a=Te(n),i!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,i,o,r,a;return v(t)?this.each(function(e){T(this).removeClass(t.call(this,e,Se(this)))}):arguments.length?(e=Ce(t)).length?this.each(function(){if(i=Se(this),n=1===this.nodeType&&" "+Te(i)+" "){for(r=0;r<e.length;r++)for(o=e[r];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");a=Te(n),i!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,i,o,r,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(n){T(this).toggleClass(t.call(this,n,Se(this),e),e)}):"boolean"==typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each(function(){if(s)for(r=T(this),o=0;o<n.length;o++)i=n[o],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==t&&"boolean"!==a||((i=Se(this))&&st.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":st.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Te(Se(n))+" ").indexOf(e)>-1)return!0;return!1}});var De=/\r/g;T.fn.extend({val:function(t){var e,n,i,o=this[0];return arguments.length?(i=v(t),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?t.call(this,n,T(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,function(t){return null==t?"":t+""})),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(De,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?r+1:o.length;for(i=r<0?l:a?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=T(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,o=t.options,r=T.makeArray(e),a=o.length;a--;)((i=o[a]).selected=T.inArray(T.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ae=i.location,Me={guid:Date.now()},Pe=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,Le=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,o){var r,a,s,l,c,u,h,d,p=[n||b],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Oe.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[T.expando]?t:new T.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),h=T.event.special[m]||{},o||!h.trigger||!1!==h.trigger.apply(n,e))){if(!o&&!h.noBubble&&!y(n)){for(l=h.delegateType||m,Oe.test(l+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||i)}for(r=0;(a=p[r++])&&!t.isPropagationStopped();)d=a,t.type=r>1?l:h.bindType||m,(u=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&u.apply(a,e),(u=c&&a[c])&&u.apply&&rt(a)&&(t.result=u.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),e)||!rt(n)||c&&v(n[m])&&!y(n)&&((s=n[c])&&(n[c]=null),T.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,Le),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,Le),T.event.triggered=void 0,s&&(n[c]=s)),t.result}},simulate:function(t,e,n){var i=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(i,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var Ie=/\[\]$/,Re=/\r?\n/g,$e=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Fe(t,e,n,i){var o;if(Array.isArray(e))T.each(e,function(e,o){n||Ie.test(t)?i(t,o):Fe(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,n,i)});else if(n||"object"!==_(e))i(t,e);else for(o in e)Fe(t+"["+o+"]",e[o],n,i)}T.param=function(t,e){var n,i=[],o=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){o(this.name,this.value)});else for(n in t)Fe(n,t[n],e,o);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&je.test(this.nodeName)&&!$e.test(t)&&(this.checked||!Tt.test(t))}).map(function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(t){return{name:e.name,value:t.replace(Re,"\r\n")}}):{name:e.name,value:n.replace(Re,"\r\n")}}).get()}});var Ne=/%20/g,Be=/#.*$/,ze=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ue={},qe={},Ye="*/".concat("*"),Xe=b.createElement("a");function Ge(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(Y)||[];if(v(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ze(t,e,n,i){var o={},r=t===qe;function a(s){var l;return o[s]=!0,T.each(t[s]||[],function(t,s){var c=s(e,n,i);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)}),l}return a(e.dataTypes[0])||!o["*"]&&a("*")}function Je(t,e){var n,i,o=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&T.extend(!0,t,i),t}Xe.href=Ae.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ae.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ae.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,T.ajaxSettings),e):Je(T.ajaxSettings,t)},ajaxPrefilter:Ge(Ue),ajaxTransport:Ge(qe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o,r,a,s,l,c,u,h,d,f=T.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?T(p):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),y=f.statusCode||{},x={},w={},_="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=We.exec(r);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(t,e){return null==c&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),E(0,e),this}};if(g.promise(k),f.url=((t||f.url||Ae.href)+"").replace(Ve,Ae.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Y)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Xe.protocol+"//"+Xe.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),Ze(Ue,f,e,k),c)return k;for(h in(u=T.event&&f.global)&&0===T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!He.test(f.type),o=f.url.replace(Be,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ne,"+")):(d=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Pe.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(ze,"$1"),d=(Pe.test(o)?"&":"?")+"_="+Me.guid+++d),f.url=o+d),f.ifModified&&(T.lastModified[o]&&k.setRequestHeader("If-Modified-Since",T.lastModified[o]),T.etag[o]&&k.setRequestHeader("If-None-Match",T.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ye+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||c))return k.abort();if(_="abort",v.add(f.complete),k.done(f.success),k.fail(f.error),n=Ze(qe,f,e,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,f]),c)return k;f.async&&f.timeout>0&&(s=i.setTimeout(function(){k.abort("timeout")},f.timeout));try{c=!1,n.send(x,E)}catch(t){if(c)throw t;E(-1,t)}}else E(-1,"No Transport");function E(t,e,a,l){var h,d,b,x,w,_=e;c||(c=!0,s&&i.clearTimeout(s),n=void 0,r=l||"",k.readyState=t>0?4:0,h=t>=200&&t<300||304===t,a&&(x=function(t,e,n){for(var i,o,r,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,k,a)),!h&&T.inArray("script",f.dataTypes)>-1&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,n,i){var o,r,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(f,x,k,h),h?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(T.lastModified[o]=w),(w=k.getResponseHeader("etag"))&&(T.etag[o]=w)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=x.state,d=x.data,h=!(b=x.error))):(b=_,!t&&_||(_="error",t<0&&(t=0))),k.status=t,k.statusText=(e||_)+"",h?g.resolveWith(p,[d,_,k]):g.rejectWith(p,[k,_,b]),k.statusCode(y),y=void 0,u&&m.trigger(h?"ajaxSuccess":"ajaxError",[k,f,h?d:b]),v.fireWith(p,[k,_]),u&&(m.trigger("ajaxComplete",[k,f]),--T.active||T.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,e){T[e]=function(t,n,i,o){return v(n)&&(o=o||i,i=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:o,data:n,success:i},T.isPlainObject(t)&&t))}}),T.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return v(t)?this.each(function(e){T(this).wrapInner(t.call(this,e))}):this.each(function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=v(t);return this.each(function(n){T(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Qe={0:200,1223:204},Ke=T.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,T.ajaxTransport(function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(o,r){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Qe[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),T.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,o){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||T.expando+"_"+Me.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var o,r,a,s=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nn,"$1"+o):!1!==t.jsonp&&(t.url+=(Pe.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return a||T.error(o+" was not called"),a[0]},t.dataTypes[0]="json",r=i[o],i[o]=function(){a=arguments},n.always(function(){void 0===r?T(i).removeProp(o):i[o]=r,t[o]&&(t.jsonpCallback=e.jsonpCallback,en.push(o)),a&&v(r)&&r(a[0]),a=r=void 0}),"script"}),g.createHTMLDocument=((tn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),r=!n&&[],(o=B.exec(t))?[e.createElement(o[1])]:(o=Ot([t],e,r),r&&r.length&&T(r).remove(),T.merge([],o.childNodes)));var i,o,r},T.fn.load=function(t,e,n){var i,o,r,a=this,s=t.indexOf(" ");return s>-1&&(i=Te(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&T.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(t,e,n){var i,o,r,a,s,l,c=T.css(t,"position"),u=T(t),h={};"static"===c&&(t.style.position="relative"),s=u.offset(),r=T.css(t,"top"),l=T.css(t,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(a=(i=u.position()).top,o=i.left):(a=parseFloat(r)||0,o=parseFloat(l)||0),v(e)&&(e=e.call(t,n,T.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+o),"using"in e?e.using.call(t,h):u.css(h)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===T.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),o.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-T.css(i,"marginTop",!0),left:e.left-o.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||mt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;T.fn[t]=function(i){return tt(this,function(t,i,o){var r;if(y(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o},t,i,arguments.length)}}),T.each(["top","left"],function(t,e){T.cssHooks[e]=te(g.pixelPosition,function(t,n){if(n)return n=Kt(t,e),Xt.test(n)?T(t).position()[e]+"px":n})}),T.each({Height:"height",Width:"width"},function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){T.fn[i]=function(o,r){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===r?"margin":"border");return tt(this,function(e,n,o){var r;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?T.css(e,n,s):T.style(e,n,o,s)},e,a?o:void 0,a)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var on=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=s.call(arguments,2),o=function(){return t.apply(e||this,i.concat(s.call(arguments)))},o.guid=t.guid=t.guid||T.guid++,o},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=v,T.isWindow=y,T.camelCase=ot,T.type=_,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(on,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var rn=i.jQuery,an=i.$;return T.noConflict=function(t){return i.$===T&&(i.$=an),t&&i.jQuery===T&&(i.jQuery=rn),T},void 0===o&&(i.jQuery=i.$=T),T})},5072:(t,e,n)=>{"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],l=e.base?r[0]+e.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var h=s(u),d={css:r[1],media:r[2],sourceMap:r[3]};-1!==h?(a[h].references++,a[h].updater(d)):a.push({identifier:u,updater:g(d,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}if(Object.keys(i).forEach(function(t){e.setAttribute(t,i[t])}),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,h=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=h(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function f(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var p=null,m=0;function g(t,e){var n,i,o;if(e.singleton){var r=m++;n=p||(p=c(e)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=c(e),i=f.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=r}}}},5604:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="/images/vendor/lightbox2/dist/next.png?62074ac70bd3cfc10445d325a205a3cf"},5606:t=>{var e,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(t){n=r}}();var s,l=[],c=!1,u=-1;function h(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&d())}function d(){if(!c){var t=a(h);c=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{return n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||c||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},5775:()=>{},5995:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="/images/vendor/lightbox2/dist/close.png?0cfd6489536ec0987466795401497368"},6269:()=>{},6314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n}).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},6365:function(t,e,n){var i;i=void 0!==n.g?n.g:this.window||this.global,t.exports=function(t){"use strict";t=window;const e={src:"data-src",srcset:"data-srcset",selector:".lazyload",root:null,rootMargin:"0px",threshold:0},n=function(){let t={},e=!1,i=0,o=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],i++);let r=function(i){for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e&&"[object Object]"===Object.prototype.toString.call(i[o])?t[o]=n(!0,t[o],i[o]):t[o]=i[o])};for(;i<o;i++)r(arguments[i]);return t};function i(t,i){this.settings=n(e,i||{}),this.images=t||document.querySelectorAll(this.settings.selector),this.observer=null,this.init()}if(i.prototype={init:function(){if(!t.IntersectionObserver)return void this.loadImages();let e=this,n={root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]};this.observer=new IntersectionObserver(function(t){Array.prototype.forEach.call(t,function(t){if(t.isIntersecting){e.observer.unobserve(t.target);let n=t.target.getAttribute(e.settings.src),i=t.target.getAttribute(e.settings.srcset);"img"===t.target.tagName.toLowerCase()?(n&&(t.target.src=n),i&&(t.target.srcset=i)):t.target.style.backgroundImage="url("+n+")"}})},n),Array.prototype.forEach.call(this.images,function(t){e.observer.observe(t)})},loadAndDestroy:function(){this.settings&&(this.loadImages(),this.destroy())},loadImages:function(){if(!this.settings)return;let t=this;Array.prototype.forEach.call(this.images,function(e){let n=e.getAttribute(t.settings.src),i=e.getAttribute(t.settings.srcset);"img"===e.tagName.toLowerCase()?(n&&(e.src=n),i&&(e.srcset=i)):e.style.backgroundImage="url('"+n+"')"})},destroy:function(){this.settings&&(this.observer.disconnect(),this.settings=null)}},t.lazyload=function(t,e){return new i(t,e)},t.jQuery){const e=t.jQuery;e.fn.lazyload=function(t){return(t=t||{}).attribute=t.attribute||"data-src",new i(e.makeArray(this),t),this}}return i}(i)},6425:(t,e,n)=>{"use strict";var i=n(5606),o=n(8287).hp;function r(t,e){return function(){return t.apply(e,arguments)}}const{toString:a}=Object.prototype,{getPrototypeOf:s}=Object,{iterator:l,toStringTag:c}=Symbol,u=(h=Object.create(null),t=>{const e=a.call(t);return h[e]||(h[e]=e.slice(8,-1).toLowerCase())});var h;const d=t=>(t=t.toLowerCase(),e=>u(e)===t),f=t=>e=>typeof e===t,{isArray:p}=Array,m=f("undefined");function g(t){return null!==t&&!m(t)&&null!==t.constructor&&!m(t.constructor)&&b(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const v=d("ArrayBuffer");const y=f("string"),b=f("function"),x=f("number"),w=t=>null!==t&&"object"==typeof t,_=t=>{if("object"!==u(t))return!1;const e=s(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||c in t||l in t)},k=d("Date"),E=d("File"),T=d("Blob"),S=d("FileList"),C=d("URLSearchParams"),[D,A,M,P]=["ReadableStream","Request","Response","Headers"].map(d);function O(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let i,o;if("object"!=typeof t&&(t=[t]),p(t))for(i=0,o=t.length;i<o;i++)e.call(null,t[i],i,t);else{if(g(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let a;for(i=0;i<r;i++)a=o[i],e.call(null,t[a],a,t)}}function L(t,e){if(g(t))return null;e=e.toLowerCase();const n=Object.keys(t);let i,o=n.length;for(;o-- >0;)if(i=n[o],e===i.toLowerCase())return i;return null}const I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,R=t=>!m(t)&&t!==I;const $=(j="undefined"!=typeof Uint8Array&&s(Uint8Array),t=>j&&t instanceof j);var j;const F=d("HTMLFormElement"),N=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),B=d("RegExp"),z=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};O(n,(n,o)=>{let r;!1!==(r=e(n,o,t))&&(i[o]=r||n)}),Object.defineProperties(t,i)};const W=d("AsyncFunction"),H=(V="function"==typeof setImmediate,U=b(I.postMessage),V?setImmediate:U?(q=`axios@${Math.random()}`,Y=[],I.addEventListener("message",({source:t,data:e})=>{t===I&&e===q&&Y.length&&Y.shift()()},!1),t=>{Y.push(t),I.postMessage(q,"*")}):t=>setTimeout(t));var V,U,q,Y;const X="undefined"!=typeof queueMicrotask?queueMicrotask.bind(I):void 0!==i&&i.nextTick||H;var G={isArray:p,isArrayBuffer:v,isBuffer:g,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||b(t.append)&&("formdata"===(e=u(t))||"object"===e&&b(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&v(t.buffer),e},isString:y,isNumber:x,isBoolean:t=>!0===t||!1===t,isObject:w,isPlainObject:_,isEmptyObject:t=>{if(!w(t)||g(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:D,isRequest:A,isResponse:M,isHeaders:P,isUndefined:m,isDate:k,isFile:E,isBlob:T,isRegExp:B,isFunction:b,isStream:t=>w(t)&&b(t.pipe),isURLSearchParams:C,isTypedArray:$,isFileList:S,forEach:O,merge:function t(){const{caseless:e,skipUndefined:n}=R(this)&&this||{},i={},o=(o,r)=>{const a=e&&L(i,r)||r;_(i[a])&&_(o)?i[a]=t(i[a],o):_(o)?i[a]=t({},o):p(o)?i[a]=o.slice():n&&m(o)||(i[a]=o)};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],o);return i},extend:(t,e,n,{allOwnKeys:i}={})=>(O(e,(e,i)=>{n&&b(e)?t[i]=r(e,n):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,i)=>{let o,r,a;const l={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),r=o.length;r-- >0;)a=o[r],i&&!i(a,t,e)||l[a]||(e[a]=t[a],l[a]=!0);t=!1!==n&&s(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:u,kindOfTest:d,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return-1!==i&&i===n},toArray:t=>{if(!t)return null;if(p(t))return t;let e=t.length;if(!x(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[l]).call(t);let i;for(;(i=n.next())&&!i.done;){const n=i.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const i=[];for(;null!==(n=t.exec(e));)i.push(n);return i},isHTMLForm:F,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:z,freezeMethods:t=>{z(t,(e,n)=>{if(b(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=t[n];b(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},i=t=>{t.forEach(t=>{n[t]=!0})};return p(t)?i(t):i(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:L,global:I,isContextDefined:R,isSpecCompliantForm:function(t){return!!(t&&b(t.append)&&"FormData"===t[c]&&t[l])},toJSONObject:t=>{const e=new Array(10),n=(t,i)=>{if(w(t)){if(e.indexOf(t)>=0)return;if(g(t))return t;if(!("toJSON"in t)){e[i]=t;const o=p(t)?[]:{};return O(t,(t,e)=>{const r=n(t,i+1);!m(r)&&(o[e]=r)}),e[i]=void 0,o}}return t};return n(t,0)},isAsyncFn:W,isThenable:t=>t&&(w(t)||b(t))&&b(t.then)&&b(t.catch),setImmediate:H,asap:X,isIterable:t=>null!=t&&b(t[l])};function Z(t,e,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(Z,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:G.toJSONObject(this.config),code:this.code,status:this.status}}});const J=Z.prototype,Q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Q[t]={value:t}}),Object.defineProperties(Z,Q),Object.defineProperty(J,"isAxiosError",{value:!0}),Z.from=(t,e,n,i,o,r)=>{const a=Object.create(J);G.toFlatObject(t,a,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);const s=t&&t.message?t.message:"Error",l=null==e&&t?t.code:e;return Z.call(a,s,l,n,i,o),t&&null==a.cause&&Object.defineProperty(a,"cause",{value:t,configurable:!0}),a.name=t&&t.name||"Error",r&&Object.assign(a,r),a};function K(t){return G.isPlainObject(t)||G.isArray(t)}function tt(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function et(t,e,n){return t?t.concat(e).map(function(t,e){return t=tt(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}const nt=G.toFlatObject(G,{},null,function(t){return/^is[A-Z]/.test(t)});function it(t,e,n){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const i=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!G.isUndefined(e[t])})).metaTokens,r=n.visitor||u,a=n.dots,s=n.indexes,l=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(e);if(!G.isFunction(r))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(G.isDate(t))return t.toISOString();if(G.isBoolean(t))return t.toString();if(!l&&G.isBlob(t))throw new Z("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(t)||G.isTypedArray(t)?l&&"function"==typeof Blob?new Blob([t]):o.from(t):t}function u(t,n,o){let r=t;if(t&&!o&&"object"==typeof t)if(G.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if(G.isArray(t)&&function(t){return G.isArray(t)&&!t.some(K)}(t)||(G.isFileList(t)||G.endsWith(n,"[]"))&&(r=G.toArray(t)))return n=tt(n),r.forEach(function(t,i){!G.isUndefined(t)&&null!==t&&e.append(!0===s?et([n],i,a):null===s?n:n+"[]",c(t))}),!1;return!!K(t)||(e.append(et(o,n,a),c(t)),!1)}const h=[],d=Object.assign(nt,{defaultVisitor:u,convertValue:c,isVisitable:K});if(!G.isObject(t))throw new TypeError("data must be an object");return function t(n,i){if(!G.isUndefined(n)){if(-1!==h.indexOf(n))throw Error("Circular reference detected in "+i.join("."));h.push(n),G.forEach(n,function(n,o){!0===(!(G.isUndefined(n)||null===n)&&r.call(e,n,G.isString(o)?o.trim():o,i,d))&&t(n,i?i.concat(o):[o])}),h.pop()}}(t),e}function ot(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function rt(t,e){this._pairs=[],t&&it(t,this,e)}const at=rt.prototype;function st(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lt(t,e,n){if(!e)return t;const i=n&&n.encode||st;G.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let r;if(r=o?o(e,n):G.isURLSearchParams(e)?e.toString():new rt(e,n).toString(i),r){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}at.append=function(t,e){this._pairs.push([t,e])},at.toString=function(t){const e=t?function(e){return t.call(this,e,ot)}:ot;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var ct=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){G.forEach(this.handlers,function(e){null!==e&&t(e)})}},ut={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ht={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:rt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const dt="undefined"!=typeof window&&"undefined"!=typeof document,ft="object"==typeof navigator&&navigator||void 0,pt=dt&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),mt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gt=dt&&window.location.href||"http://localhost";var vt={...Object.freeze({__proto__:null,hasBrowserEnv:dt,hasStandardBrowserWebWorkerEnv:mt,hasStandardBrowserEnv:pt,navigator:ft,origin:gt}),...ht};function yt(t){function e(t,n,i,o){let r=t[o++];if("__proto__"===r)return!0;const a=Number.isFinite(+r),s=o>=t.length;if(r=!r&&G.isArray(i)?i.length:r,s)return G.hasOwnProp(i,r)?i[r]=[i[r],n]:i[r]=n,!a;i[r]&&G.isObject(i[r])||(i[r]=[]);return e(t,n,i[r],o)&&G.isArray(i[r])&&(i[r]=function(t){const e={},n=Object.keys(t);let i;const o=n.length;let r;for(i=0;i<o;i++)r=n[i],e[r]=t[r];return e}(i[r])),!a}if(G.isFormData(t)&&G.isFunction(t.entries)){const n={};return G.forEachEntry(t,(t,i)=>{e(function(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),i,n,0)}),n}return null}const bt={transitional:ut,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,o=G.isObject(t);o&&G.isHTMLForm(t)&&(t=new FormData(t));if(G.isFormData(t))return i?JSON.stringify(yt(t)):t;if(G.isArrayBuffer(t)||G.isBuffer(t)||G.isStream(t)||G.isFile(t)||G.isBlob(t)||G.isReadableStream(t))return t;if(G.isArrayBufferView(t))return t.buffer;if(G.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return it(t,new vt.classes.URLSearchParams,{visitor:function(t,e,n,i){return vt.isNode&&G.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((r=G.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return it(r?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||i?(e.setContentType("application/json",!1),function(t,e,n){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||bt.transitional,n=e&&e.forcedJSONParsing,i="json"===this.responseType;if(G.isResponse(t)||G.isReadableStream(t))return t;if(t&&G.isString(t)&&(n&&!this.responseType||i)){const n=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(t){if(n){if("SyntaxError"===t.name)throw Z.from(t,Z.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],t=>{bt.headers[t]={}});var xt=bt;const wt=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const _t=Symbol("internals");function kt(t){return t&&String(t).trim().toLowerCase()}function Et(t){return!1===t||null==t?t:G.isArray(t)?t.map(Et):String(t)}function Tt(t,e,n,i,o){return G.isFunction(i)?i.call(this,e,n):(o&&(e=n),G.isString(e)?G.isString(i)?-1!==e.indexOf(i):G.isRegExp(i)?i.test(e):void 0:void 0)}class St{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function o(t,e,n){const o=kt(e);if(!o)throw new Error("header name must be a non-empty string");const r=G.findKey(i,o);(!r||void 0===i[r]||!0===n||void 0===n&&!1!==i[r])&&(i[r||e]=Et(t))}const r=(t,e)=>G.forEach(t,(t,n)=>o(t,n,e));if(G.isPlainObject(t)||t instanceof this.constructor)r(t,e);else if(G.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))r((t=>{const e={};let n,i,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),i=t.substring(o+1).trim(),!n||e[n]&&wt[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e})(t),e);else if(G.isObject(t)&&G.isIterable(t)){let n,i,o={};for(const e of t){if(!G.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[i=e[0]]=(n=o[i])?G.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}r(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=kt(t)){const n=G.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}(t);if(G.isFunction(e))return e.call(this,t,n);if(G.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=kt(t)){const n=G.findKey(this,t);return!(!n||void 0===this[n]||e&&!Tt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function o(t){if(t=kt(t)){const o=G.findKey(n,t);!o||e&&!Tt(0,n[o],o,e)||(delete n[o],i=!0)}}return G.isArray(t)?t.forEach(o):o(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const o=e[n];t&&!Tt(0,this[o],o,t,!0)||(delete this[o],i=!0)}return i}normalize(t){const e=this,n={};return G.forEach(this,(i,o)=>{const r=G.findKey(n,o);if(r)return e[r]=Et(i),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=Et(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return G.forEach(this,(n,i)=>{null!=n&&!1!==n&&(e[i]=t&&G.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[_t]=this[_t]={accessors:{}}).accessors,n=this.prototype;function i(t){const i=kt(t);e[i]||(!function(t,e){const n=G.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(t,n,o){return this[i].call(this,e,t,n,o)},configurable:!0})})}(n,t),e[i]=!0)}return G.isArray(t)?t.forEach(i):i(t),this}}St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(St.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),G.freezeMethods(St);var Ct=St;function Dt(t,e){const n=this||xt,i=e||n,o=Ct.from(i.headers);let r=i.data;return G.forEach(t,function(t){r=t.call(n,r,o.normalize(),e?e.status:void 0)}),o.normalize(),r}function At(t){return!(!t||!t.__CANCEL__)}function Mt(t,e,n){Z.call(this,null==t?"canceled":t,Z.ERR_CANCELED,e,n),this.name="CanceledError"}function Pt(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}G.inherits(Mt,Z,{__CANCEL__:!0});const Ot=(t,e,n=3)=>{let i=0;const o=function(t,e){t=t||10;const n=new Array(t),i=new Array(t);let o,r=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),c=i[a];o||(o=l),n[r]=s,i[r]=l;let u=a,h=0;for(;u!==r;)h+=n[u++],u%=t;if(r=(r+1)%t,r===a&&(a=(a+1)%t),l-o<e)return;const d=c&&l-c;return d?Math.round(1e3*h/d):void 0}}(50,250);return function(t,e){let n,i,o=0,r=1e3/e;const a=(e,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=r?a(t,e):(n=t,i||(i=setTimeout(()=>{i=null,a(n)},r-s)))},()=>n&&a(n)]}(n=>{const r=n.loaded,a=n.lengthComputable?n.total:void 0,s=r-i,l=o(s);i=r;t({loaded:r,total:a,progress:a?r/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&r<=a?(a-r)/l:void 0,event:n,lengthComputable:null!=a,[e?"download":"upload"]:!0})},n)},Lt=(t,e)=>{const n=null!=t;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},It=t=>(...e)=>G.asap(()=>t(...e));var Rt=vt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,vt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,$t=vt.hasStandardBrowserEnv?{write(t,e,n,i,o,r){const a=[t+"="+encodeURIComponent(e)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(i)&&a.push("path="+i),G.isString(o)&&a.push("domain="+o),!0===r&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function jt(t,e,n){let i=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(i||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ft=t=>t instanceof Ct?{...t}:t;function Nt(t,e){e=e||{};const n={};function i(t,e,n,i){return G.isPlainObject(t)&&G.isPlainObject(e)?G.merge.call({caseless:i},t,e):G.isPlainObject(e)?G.merge({},e):G.isArray(e)?e.slice():e}function o(t,e,n,o){return G.isUndefined(e)?G.isUndefined(t)?void 0:i(void 0,t,0,o):i(t,e,0,o)}function r(t,e){if(!G.isUndefined(e))return i(void 0,e)}function a(t,e){return G.isUndefined(e)?G.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function s(n,o,r){return r in e?i(n,o):r in t?i(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e,n)=>o(Ft(t),Ft(e),0,!0)};return G.forEach(Object.keys({...t,...e}),function(i){const r=l[i]||o,a=r(t[i],e[i],i);G.isUndefined(a)&&r!==s||(n[i]=a)}),n}var Bt=t=>{const e=Nt({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:r,headers:a,auth:s}=e;if(e.headers=a=Ct.from(a),e.url=lt(jt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),G.isFormData(n))if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(G.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,n])=>{e.includes(t.toLowerCase())&&a.set(t,n)})}if(vt.hasStandardBrowserEnv&&(i&&G.isFunction(i)&&(i=i(e)),i||!1!==i&&Rt(e.url))){const t=o&&r&&$t.read(r);t&&a.set(o,t)}return e};var zt="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const i=Bt(t);let o=i.data;const r=Ct.from(i.headers).normalize();let a,s,l,c,u,{responseType:h,onUploadProgress:d,onDownloadProgress:f}=i;function p(){c&&c(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=Ct.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Pt(function(t){e(t),p()},function(t){n(t),p()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:t,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Z("Request aborted",Z.ECONNABORTED,t,m)),m=null)},m.onerror=function(e){const i=new Z(e&&e.message?e.message:"Network Error",Z.ERR_NETWORK,t,m);i.event=e||null,n(i),m=null},m.ontimeout=function(){let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const o=i.transitional||ut;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),n(new Z(e,o.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,t,m)),m=null},void 0===o&&r.setContentType(null),"setRequestHeader"in m&&G.forEach(r.toJSON(),function(t,e){m.setRequestHeader(e,t)}),G.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),h&&"json"!==h&&(m.responseType=i.responseType),f&&([l,u]=Ot(f,!0),m.addEventListener("progress",l)),d&&m.upload&&([s,c]=Ot(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(i.cancelToken||i.signal)&&(a=e=>{m&&(n(!e||e.type?new Mt(null,t,m):e),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const v=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(i.url);v&&-1===vt.protocols.indexOf(v)?n(new Z("Unsupported protocol "+v+":",Z.ERR_BAD_REQUEST,t)):m.send(o||null)})};var Wt=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,i=new AbortController;const o=function(t){if(!n){n=!0,a();const e=t instanceof Error?t:this.reason;i.abort(e instanceof Z?e:new Mt(e instanceof Error?e.message:e))}};let r=e&&setTimeout(()=>{r=null,o(new Z(`timeout ${e} of ms exceeded`,Z.ETIMEDOUT))},e);const a=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));const{signal:s}=i;return s.unsubscribe=()=>G.asap(a),s}};const Ht=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let i,o=0;for(;o<n;)i=o+e,yield t.slice(o,i),o=i},Vt=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Ut=(t,e,n,i)=>{const o=async function*(t,e){for await(const n of Vt(t))yield*Ht(n,e)}(t,e);let r,a=0,s=t=>{r||(r=!0,i&&i(t))};return new ReadableStream({async pull(t){try{const{done:e,value:i}=await o.next();if(e)return s(),void t.close();let r=i.byteLength;if(n){let t=a+=r;n(t)}t.enqueue(new Uint8Array(i))}catch(t){throw s(t),t}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},{isFunction:qt}=G,Yt=(({Request:t,Response:e})=>({Request:t,Response:e}))(G.global),{ReadableStream:Xt,TextEncoder:Gt}=G.global,Zt=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},Jt=t=>{t=G.merge.call({skipUndefined:!0},Yt,t);const{fetch:e,Request:n,Response:i}=t,o=e?qt(e):"function"==typeof fetch,r=qt(n),a=qt(i);if(!o)return!1;const s=o&&qt(Xt),l=o&&("function"==typeof Gt?(c=new Gt,t=>c.encode(t)):async t=>new Uint8Array(await new n(t).arrayBuffer()));var c;const u=r&&s&&Zt(()=>{let t=!1;const e=new n(vt.origin,{body:new Xt,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),h=a&&s&&Zt(()=>G.isReadableStream(new i("").body)),d={stream:h&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!d[t]&&(d[t]=(e,n)=>{let i=e&&e[t];if(i)return i.call(e);throw new Z(`Response type '${t}' is not supported`,Z.ERR_NOT_SUPPORT,n)})});const f=async(t,e)=>{const i=G.toFiniteNumber(t.getContentLength());return null==i?(async t=>{if(null==t)return 0;if(G.isBlob(t))return t.size;if(G.isSpecCompliantForm(t)){const e=new n(vt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return G.isArrayBufferView(t)||G.isArrayBuffer(t)?t.byteLength:(G.isURLSearchParams(t)&&(t+=""),G.isString(t)?(await l(t)).byteLength:void 0)})(e):i};return async t=>{let{url:o,method:a,data:s,signal:l,cancelToken:c,timeout:p,onDownloadProgress:m,onUploadProgress:g,responseType:v,headers:y,withCredentials:b="same-origin",fetchOptions:x}=Bt(t),w=e||fetch;v=v?(v+"").toLowerCase():"text";let _=Wt([l,c&&c.toAbortSignal()],p),k=null;const E=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let T;try{if(g&&u&&"get"!==a&&"head"!==a&&0!==(T=await f(y,s))){let t,e=new n(o,{method:"POST",body:s,duplex:"half"});if(G.isFormData(s)&&(t=e.headers.get("content-type"))&&y.setContentType(t),e.body){const[t,n]=Lt(T,Ot(It(g)));s=Ut(e.body,65536,t,n)}}G.isString(b)||(b=b?"include":"omit");const e=r&&"credentials"in n.prototype,l={...x,signal:_,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:e?b:void 0};k=r&&new n(o,l);let c=await(r?w(k,x):w(o,l));const p=h&&("stream"===v||"response"===v);if(h&&(m||p&&E)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const e=G.toFiniteNumber(c.headers.get("content-length")),[n,o]=m&&Lt(e,Ot(It(m),!0))||[];c=new i(Ut(c.body,65536,n,()=>{o&&o(),E&&E()}),t)}v=v||"text";let S=await d[G.findKey(d,v)||"text"](c,t);return!p&&E&&E(),await new Promise((e,n)=>{Pt(e,n,{data:S,headers:Ct.from(c.headers),status:c.status,statusText:c.statusText,config:t,request:k})})}catch(e){if(E&&E(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,t,k),{cause:e.cause||e});throw Z.from(e,e&&e.code,t,k)}}},Qt=new Map,Kt=t=>{let e=t?t.env:{};const{fetch:n,Request:i,Response:o}=e,r=[i,o,n];let a,s,l=r.length,c=Qt;for(;l--;)a=r[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Jt(e)),c=s;return s};Kt();const te={http:null,xhr:zt,fetch:{get:Kt}};G.forEach(te,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const ee=t=>`- ${t}`,ne=t=>G.isFunction(t)||null===t||!1===t;var ie=(t,e)=>{t=G.isArray(t)?t:[t];const{length:n}=t;let i,o;const r={};for(let a=0;a<n;a++){let n;if(i=t[a],o=i,!ne(i)&&(o=te[(n=String(i)).toLowerCase()],void 0===o))throw new Z(`Unknown adapter '${n}'`);if(o&&(G.isFunction(o)||(o=o.get(e))))break;r[n||"#"+a]=o}if(!o){const t=Object.entries(r).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new Z("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(ee).join("\n"):" "+ee(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function oe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Mt(null,t)}function re(t){oe(t),t.headers=Ct.from(t.headers),t.data=Dt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return ie(t.adapter||xt.adapter,t)(t).then(function(e){return oe(t),e.data=Dt.call(t,t.transformResponse,e),e.headers=Ct.from(e.headers),e},function(e){return At(e)||(oe(t),e&&e.response&&(e.response.data=Dt.call(t,t.transformResponse,e.response),e.response.headers=Ct.from(e.response.headers))),Promise.reject(e)})}const ae="1.12.2",se={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{se[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const le={};se.transitional=function(t,e,n){return(i,o,r)=>{if(!1===t)throw new Z(function(t,e){return"[Axios v"+ae+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}(o," has been removed"+(e?" in "+e:"")),Z.ERR_DEPRECATED);return e&&!le[o]&&(le[o]=!0),!t||t(i,o,r)}},se.spelling=function(t){return(t,e)=>!0};var ce={assertOptions:function(t,e,n){if("object"!=typeof t)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let o=i.length;for(;o-- >0;){const r=i[o],a=e[r];if(a){const e=t[r],n=void 0===e||a(e,r,t);if(!0!==n)throw new Z("option "+r+" must be "+n,Z.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Z("Unknown option "+r,Z.ERR_BAD_OPTION)}},validators:se};const ue=ce.validators;class he{constructor(t){this.defaults=t||{},this.interceptors={request:new ct,response:new ct}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Nt(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:o}=e;void 0!==n&&ce.assertOptions(n,{silentJSONParsing:ue.transitional(ue.boolean),forcedJSONParsing:ue.transitional(ue.boolean),clarifyTimeoutError:ue.transitional(ue.boolean)},!1),null!=i&&(G.isFunction(i)?e.paramsSerializer={serialize:i}:ce.assertOptions(i,{encode:ue.function,serialize:ue.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ce.assertOptions(e,{baseUrl:ue.spelling("baseURL"),withXsrfToken:ue.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let r=o&&G.merge(o.common,o[e.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=Ct.concat(r,o);const a=[];let s=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))});const l=[];let c;this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)});let u,h=0;if(!s){const t=[re.bind(this),void 0];for(t.unshift(...a),t.push(...l),u=t.length,c=Promise.resolve(e);h<u;)c=c.then(t[h++],t[h++]);return c}u=a.length;let d=e;for(;h<u;){const t=a[h++],e=a[h++];try{d=t(d)}catch(t){e.call(this,t);break}}try{c=re.call(this,d)}catch(t){return Promise.reject(t)}for(h=0,u=l.length;h<u;)c=c.then(l[h++],l[h++]);return c}getUri(t){return lt(jt((t=Nt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(t){he.prototype[t]=function(e,n){return this.request(Nt(n||{},{method:t,url:e,data:(n||{}).data}))}}),G.forEach(["post","put","patch"],function(t){function e(e){return function(n,i,o){return this.request(Nt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}he.prototype[t]=e(),he.prototype[t+"Form"]=e(!0)});var de=he;class fe{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const i=new Promise(t=>{n.subscribe(t),e=t}).then(t);return i.cancel=function(){n.unsubscribe(e)},i},t(function(t,i,o){n.reason||(n.reason=new Mt(t,i,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new fe(function(e){t=e}),cancel:t}}}var pe=fe;const me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(me).forEach(([t,e])=>{me[e]=t});var ge=me;const ve=function t(e){const n=new de(e),i=r(de.prototype.request,n);return G.extend(i,de.prototype,n,{allOwnKeys:!0}),G.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return t(Nt(e,n))},i}(xt);ve.Axios=de,ve.CanceledError=Mt,ve.CancelToken=pe,ve.isCancel=At,ve.VERSION=ae,ve.toFormData=it,ve.AxiosError=Z,ve.Cancel=ve.CanceledError,ve.all=function(t){return Promise.all(t)},ve.spread=function(t){return function(e){return t.apply(null,e)}},ve.isAxiosError=function(t){return G.isObject(t)&&!0===t.isAxiosError},ve.mergeConfig=Nt,ve.AxiosHeaders=Ct,ve.formToJSON=t=>yt(G.isHTMLForm(t)?new FormData(t):t),ve.getAdapter=ie,ve.HttpStatusCode=ge,ve.default=ve,t.exports=ve},6613:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var i=n(6314),o=n.n(i),r=n(4417),a=n.n(r),s=n(8288),l=n(9056),c=n(5604),u=n(5995),h=o()(function(t){return t[1]}),d=a()(s.A),f=a()(l.A),p=a()(c.A),m=a()(u.A);h.push([t.id,'body.lb-disable-scrolling{overflow:hidden}.lightboxOverlay{background-color:#000;display:none;left:0;opacity:.8;position:absolute;top:0;z-index:9999}.lightbox{font-weight:400;left:0;line-height:0;outline:none;position:absolute;text-align:center;width:100%;z-index:10000}.lightbox .lb-image{border:4px solid #fff;border-radius:3px;display:block;height:auto;max-height:none;max-width:inherit}.lightbox a img{border:none}.lb-outerContainer{background-color:#fff;border-radius:4px;height:250px;margin:0 auto;position:relative;width:250px}.lb-outerContainer:after{clear:both;content:"";display:table}.lb-loader{height:25%;left:0;line-height:0;position:absolute;text-align:center;top:43%;width:100%}.lb-cancel{background:url('+d+') no-repeat;display:block;height:32px;margin:0 auto;width:32px}.lb-nav{height:100%;left:0;position:absolute;top:0;width:100%;z-index:10}.lb-container>.nav{left:0}.lb-nav a{background-image:url("data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==");outline:none}.lb-next,.lb-prev{cursor:pointer;display:block;height:100%}.lb-nav a.lb-prev{background:url('+f+") left 48% no-repeat;float:left;left:0;opacity:0;transition:opacity .6s;width:34%}.lb-nav a.lb-prev:hover{opacity:1}.lb-nav a.lb-next{background:url("+p+') right 48% no-repeat;float:right;opacity:0;right:0;transition:opacity .6s;width:64%}.lb-nav a.lb-next:hover{opacity:1}.lb-dataContainer{border-bottom-left-radius:4px;border-bottom-right-radius:4px;margin:0 auto;padding-top:5px;width:100%}.lb-dataContainer:after{clear:both;content:"";display:table}.lb-data{color:#ccc;padding:0 4px}.lb-data .lb-details{float:left;line-height:1.1em;text-align:left;width:85%}.lb-data .lb-caption{font-size:13px;font-weight:700;line-height:1em}.lb-data .lb-caption a{color:#4ae}.lb-data .lb-number{clear:left;color:#999;display:block;font-size:12px;padding-bottom:1em}.lb-data .lb-close{background:url('+m+") 100% 0 no-repeat;display:block;float:right;height:30px;opacity:.7;outline:none;text-align:right;transition:opacity .2s;width:30px}.lb-data .lb-close:hover{cursor:pointer;opacity:1}",""]);const g=h},7059:(t,e,n)=>{"use strict";function i(){}n.d(e,{P:()=>wa});const o=function(){let t=0;return function(){return t++}}();function r(t){return null==t}function a(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 s(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const l=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function c(t,e){return l(t)?t:e}function u(t,e){return void 0===t?e:t}const h=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function d(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function f(t,e,n,i){let o,r,l;if(a(t))if(r=t.length,i)for(o=r-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<r;o++)e.call(n,t[o],o);else if(s(t))for(l=Object.keys(t),r=l.length,o=0;o<r;o++)e.call(n,t[l[o]],l[o])}function p(t,e){let n,i,o,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],r=e[n],o.datasetIndex!==r.datasetIndex||o.index!==r.index)return!1;return!0}function m(t){if(a(t))return t.map(m);if(s(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=m(t[n[o]]);return e}return t}function g(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function v(t,e,n,i){if(!g(t))return;const o=e[t],r=n[t];s(o)&&s(r)?y(o,r,i):e[t]=m(r)}function y(t,e,n){const i=a(e)?e:[e],o=i.length;if(!s(t))return t;const r=(n=n||{}).merger||v;for(let a=0;a<o;++a){if(!s(e=i[a]))continue;const o=Object.keys(e);for(let i=0,a=o.length;i<a;++i)r(o[i],t,e,n)}return t}function b(t,e){return y(t,e,{merger:x})}function x(t,e,n){if(!g(t))return;const i=e[t],o=n[t];s(i)&&s(o)?b(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=m(o))}const w={"":t=>t,x:t=>t.x,y:t=>t.y};function _(t,e){const n=w[e]||(w[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function k(t){return t.charAt(0).toUpperCase()+t.slice(1)}const E=t=>void 0!==t,T=t=>"function"==typeof t,S=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const C=Math.PI,D=2*C,A=D+C,M=Number.POSITIVE_INFINITY,P=C/180,O=C/2,L=C/4,I=2*C/3,R=Math.log10,$=Math.sign;function j(t){const e=Math.round(t);t=N(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(R(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function F(t){return!isNaN(parseFloat(t))&&isFinite(t)}function N(t,e,n){return Math.abs(t-e)<n}function B(t,e,n){let i,o,r;for(i=0,o=t.length;i<o;i++)r=t[i][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function z(t){return t*(C/180)}function W(t){return t*(180/C)}function H(t){if(!l(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function V(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*C&&(r+=D),{angle:r,distance:o}}function U(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function q(t,e){return(t-e+A)%D-C}function Y(t){return(t%D+D)%D}function X(t,e,n,i){const o=Y(t),r=Y(e),a=Y(n),s=Y(r-o),l=Y(a-o),c=Y(o-r),u=Y(o-a);return o===r||o===a||i&&r===a||s>l&&c<u}function G(t,e,n){return Math.max(e,Math.min(n,t))}function Z(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function J(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,r=0;for(;o-r>1;)i=r+o>>1,n(i)?r=i:o=i;return{lo:r,hi:o}}const Q=(t,e,n,i)=>J(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),K=(t,e,n)=>J(t,n,i=>t[i][e]>=n);const tt=["push","pop","shift","splice","unshift"];function et(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(tt.forEach(e=>{delete t[e]}),delete t._chartjs)}function nt(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const it="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ot(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let o=!1,r=[];return function(...n){r=i(n),o||(o=!0,it.call(window,()=>{o=!1,t.apply(e,r)}))}}const rt=t=>"start"===t?"left":"end"===t?"right":"center",at=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function st(t,e,n){const i=e.length;let o=0,r=i;if(t._sorted){const{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:u,minDefined:h,maxDefined:d}=a.getUserBounds();h&&(o=G(Math.min(Q(s,a.axis,c).lo,n?i:Q(e,l,a.getPixelForValue(c)).lo),0,i-1)),r=d?G(Math.max(Q(s,a.axis,u,!0).hi+1,n?0:Q(e,l,a.getPixelForValue(u),!0).hi+1),o,i)-o:i-o}return{start:o,count:r}}function lt(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const r=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),r}const ct=t=>0===t||1===t,ut=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*D/n),ht=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*D/n)+1,dt={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*O),easeOutSine:t=>Math.sin(t*O),easeInOutSine:t=>-.5*(Math.cos(C*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=>ct(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=>ct(t)?t:ut(t,.075,.3),easeOutElastic:t=>ct(t)?t:ht(t,.075,.3),easeInOutElastic(t){const e=.1125;return ct(t)?t:t<.5?.5*ut(2*t,e,.45):.5+.5*ht(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-dt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*dt.easeInBounce(2*t):.5*dt.easeOutBounce(2*t-1)+.5};function ft(t){return t+.5|0}const pt=(t,e,n)=>Math.max(Math.min(t,n),e);function mt(t){return pt(ft(2.55*t),0,255)}function gt(t){return pt(ft(255*t),0,255)}function vt(t){return pt(ft(t/2.55)/100,0,1)}function yt(t){return pt(ft(100*t),0,100)}const bt={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},xt=[..."0123456789ABCDEF"],wt=t=>xt[15&t],_t=t=>xt[(240&t)>>4]+xt[15&t],kt=t=>(240&t)>>4==(15&t);function Et(t){var e=(t=>kt(t.r)&&kt(t.g)&&kt(t.b)&&kt(t.a))(t)?wt:_t;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Tt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function St(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Ct(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function Dt(t,e,n){const i=St(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function At(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),r=Math.min(e,n,i),a=(o+r)/2;let s,l,c;return o!==r&&(c=o-r,l=a>.5?c/(2-o-r):c/(o+r),s=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),s=60*s+.5),[0|s,l||0,a]}function Mt(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(gt)}function Pt(t,e,n){return Mt(St,t,e,n)}function Ot(t){return(t%360+360)%360}function Lt(t){const e=Tt.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?mt(+e[5]):gt(+e[5]));const o=Ot(+e[2]),r=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Mt(Dt,t,e,n)}(o,r,a):"hsv"===e[1]?function(t,e,n){return Mt(Ct,t,e,n)}(o,r,a):Pt(o,r,a),{r:n[0],g:n[1],b:n[2],a:i}}const It={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"},Rt={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 $t;function jt(t){$t||($t=function(){const t={},e=Object.keys(Rt),n=Object.keys(It);let i,o,r,a,s;for(i=0;i<e.length;i++){for(a=s=e[i],o=0;o<n.length;o++)r=n[o],s=s.replace(r,It[r]);r=parseInt(Rt[a],16),t[s]=[r>>16&255,r>>8&255,255&r]}return t}(),$t.transparent=[0,0,0,0]);const e=$t[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Ft=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Nt=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Bt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function zt(t,e,n){if(t){let i=At(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Pt(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Wt(t,e){return t?Object.assign(e||{},t):t}function Ht(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=gt(t[3]))):(e=Wt(t,{r:0,g:0,b:0,a:1})).a=gt(e.a),e}function Vt(t){return"r"===t.charAt(0)?function(t){const e=Ft.exec(t);let n,i,o,r=255;if(e){if(e[7]!==n){const t=+e[7];r=e[8]?mt(t):pt(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?mt(n):pt(n,0,255)),i=255&(e[4]?mt(i):pt(i,0,255)),o=255&(e[6]?mt(o):pt(o,0,255)),{r:n,g:i,b:o,a:r}}}(t):Lt(t)}class Ut{constructor(t){if(t instanceof Ut)return t;const e=typeof t;let n;var i,o,r;"object"===e?n=Ht(t):"string"===e&&(r=(i=t).length,"#"===i[0]&&(4===r||5===r?o={r:255&17*bt[i[1]],g:255&17*bt[i[2]],b:255&17*bt[i[3]],a:5===r?17*bt[i[4]]:255}:7!==r&&9!==r||(o={r:bt[i[1]]<<4|bt[i[2]],g:bt[i[3]]<<4|bt[i[4]],b:bt[i[5]]<<4|bt[i[6]],a:9===r?bt[i[7]]<<4|bt[i[8]]:255})),n=o||jt(t)||Vt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Wt(this._rgb);return t&&(t.a=vt(t.a)),t}set rgb(t){this._rgb=Ht(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${vt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?Et(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=At(t),n=e[0],i=yt(e[1]),o=yt(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${vt(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const r=e===o?.5:e,a=2*r-1,s=n.a-i.a,l=((a*s===-1?a:(a+s)/(1+a*s))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Bt(vt(t.r)),o=Bt(vt(t.g)),r=Bt(vt(t.b));return{r:gt(Nt(i+n*(Bt(vt(e.r))-i))),g:gt(Nt(o+n*(Bt(vt(e.g))-o))),b:gt(Nt(r+n*(Bt(vt(e.b))-r))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Ut(this.rgb)}alpha(t){return this._rgb.a=gt(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ft(.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 zt(this._rgb,2,t),this}darken(t){return zt(this._rgb,2,-t),this}saturate(t){return zt(this._rgb,1,t),this}desaturate(t){return zt(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=At(t);n[0]=Ot(n[0]+e),n=Pt(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function qt(t){return new Ut(t)}function Yt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Xt(t){return Yt(t)?t:qt(t)}function Gt(t){return Yt(t)?t:qt(t).saturate(.5).darken(.1).hexString()}const Zt=Object.create(null),Jt=Object.create(null);function Qt(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Kt(t,e,n){return"string"==typeof e?y(Qt(t,e),n):y(Qt(t,""),e)}var te=new class{constructor(t){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)=>Gt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Gt(e.borderColor),this.hoverColor=(t,e)=>Gt(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)}set(t,e){return Kt(this,t,e)}get(t){return Qt(this,t)}describe(t,e){return Kt(Jt,t,e)}override(t,e){return Kt(Zt,t,e)}route(t,e,n,i){const o=Qt(this,t),r=Qt(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=r[i];return s(t)?Object.assign({},e,t):u(t,e)},set(t){this[a]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function ee(t,e,n,i,o){let r=e[o];return r||(r=e[o]=t.measureText(o).width,n.push(o)),r>i&&(i=r),i}function ne(t,e,n,i){let o=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},r=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let s=0;const l=n.length;let c,u,h,d,f;for(c=0;c<l;c++)if(d=n[c],null!=d&&!0!==a(d))s=ee(t,o,r,s,d);else if(a(d))for(u=0,h=d.length;u<h;u++)f=d[u],null==f||a(f)||(s=ee(t,o,r,s,f));t.restore();const p=r.length/2;if(p>n.length){for(c=0;c<p;c++)delete o[r[c]];r.splice(0,p)}return s}function ie(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function oe(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function re(t,e,n,i){ae(t,e,n,i,null)}function ae(t,e,n,i,o){let r,a,s,l,c,u;const h=e.pointStyle,d=e.rotation,f=e.radius;let p=(d||0)*P;if(h&&"object"==typeof h&&(r=h.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return t.save(),t.translate(n,i),t.rotate(p),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,f,0,0,D):t.arc(n,i,f,0,D),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(p)*f,i-Math.cos(p)*f),p+=I,t.lineTo(n+Math.sin(p)*f,i-Math.cos(p)*f),p+=I,t.lineTo(n+Math.sin(p)*f,i-Math.cos(p)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,a=Math.cos(p+L)*l,s=Math.sin(p+L)*l,t.arc(n-a,i-s,c,p-C,p-O),t.arc(n+s,i-a,c,p-O,p),t.arc(n+a,i+s,c,p,p+O),t.arc(n-s,i+a,c,p+O,p+C),t.closePath();break;case"rect":if(!d){l=Math.SQRT1_2*f,u=o?o/2:l,t.rect(n-u,i-l,2*u,2*l);break}p+=L;case"rectRot":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,i-s),t.lineTo(n+s,i-a),t.lineTo(n+a,i+s),t.lineTo(n-s,i+a),t.closePath();break;case"crossRot":p+=L;case"cross":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"star":a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a),p+=L,a=Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s),t.moveTo(n+s,i-a),t.lineTo(n-s,i+a);break;case"line":a=o?o/2:Math.cos(p)*f,s=Math.sin(p)*f,t.moveTo(n-a,i-s),t.lineTo(n+a,i+s);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(p)*f,i+Math.sin(p)*f)}t.fill(),e.borderWidth>0&&t.stroke()}}function se(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function le(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ce(t){t.restore()}function ue(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function he(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function de(t,e,n,i,o,s={}){const l=a(e)?e:[e],c=s.strokeWidth>0&&""!==s.strokeColor;let u,h;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]);r(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,s),u=0;u<l.length;++u)h=l[u],c&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),r(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(h,n,i,s.maxWidth)),t.fillText(h,n,i,s.maxWidth),fe(t,n,i,h,s),i+=o.lineHeight;t.restore()}function fe(t,e,n,i,o){if(o.strikethrough||o.underline){const r=t.measureText(i),a=e-r.actualBoundingBoxLeft,s=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function pe(t,e){const{x:n,y:i,w:o,h:r,radius:a}=e;t.arc(n+a.topLeft,i+a.topLeft,a.topLeft,-O,C,!0),t.lineTo(n,i+r-a.bottomLeft),t.arc(n+a.bottomLeft,i+r-a.bottomLeft,a.bottomLeft,C,O,!0),t.lineTo(n+o-a.bottomRight,i+r),t.arc(n+o-a.bottomRight,i+r-a.bottomRight,a.bottomRight,O,0,!0),t.lineTo(n+o,i+a.topRight),t.arc(n+o-a.topRight,i+a.topRight,a.topRight,0,-O,!0),t.lineTo(n+a.topLeft,i)}const me=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ge=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ve(t,e){const n=(""+t).match(me);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const ye=t=>+t||0;function be(t,e){const n={},i=s(e),o=i?Object.keys(e):e,r=s(t)?i?n=>u(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=ye(r(t));return n}function xe(t){return be(t,{top:"y",right:"x",bottom:"y",left:"x"})}function we(t){return be(t,["topLeft","topRight","bottomLeft","bottomRight"])}function _e(t){const e=xe(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ke(t,e){t=t||{},e=e||te.font;let n=u(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=u(t.style,e.style);i&&!(""+i).match(ge)&&(i="");const o={family:u(t.family,e.family),lineHeight:ve(u(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:u(t.weight,e.weight),string:""};return o.string=function(t){return!t||r(t.size)||r(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Ee(t,e,n,i){let o,r,s,l=!0;for(o=0,r=t.length;o<r;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),l=!1),void 0!==n&&a(s)&&(s=s[n%s.length],l=!1),void 0!==s))return i&&!l&&(i.cacheable=!1),s}function Te(t,e){return Object.assign(Object.create(t),e)}function Se(t,e=[""],n=t,i,o=()=>t[0]){E(i)||(i=je("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>Se([o,...t],e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Pe(n,i,()=>function(t,e,n,i){let o;for(const r of e)if(o=je(Ae(r,t),n),E(o))return Me(t,o)?Re(n,i,t,o):o}(i,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Fe(t).includes(e),ownKeys:t=>Fe(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function Ce(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:De(t,i),setContext:e=>Ce(t,e,n,i),override:o=>Ce(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Pe(t,e,()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:r,_descriptors:l}=t;let c=i[e];T(c)&&l.isScriptable(e)&&(c=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t),e=e(r,a||i),s.delete(t),Me(t,e)&&(e=Re(o._scopes,o,t,e));return e}(e,c,t,n));a(c)&&c.length&&(c=function(t,e,n,i){const{_proxy:o,_context:r,_subProxy:a,_descriptors:l}=n;if(E(r.index)&&i(t))e=e[r.index%e.length];else if(s(e[0])){const n=e,i=o._scopes.filter(t=>t!==n);e=[];for(const s of n){const n=Re(i,o,t,s);e.push(Ce(n,r,a&&a[t],l))}}return e}(e,c,t,l.isIndexable));Me(e,c)&&(c=Ce(c,o,r&&r[e],l));return c}(t,e,n)),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function De(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:T(n)?n:()=>n,isIndexable:T(i)?i:()=>i}}const Ae=(t,e)=>t?t+k(e):e,Me=(t,e)=>s(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Pe(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function Oe(t,e,n){return T(t)?t(e,n):t}const Le=(t,e)=>!0===t?e:"string"==typeof t?_(e,t):void 0;function Ie(t,e,n,i,o){for(const r of e){const e=Le(n,r);if(e){t.add(e);const r=Oe(e._fallback,n,o);if(E(r)&&r!==n&&r!==i)return r}else if(!1===e&&E(i)&&n!==i)return null}return!1}function Re(t,e,n,i){const o=e._rootScopes,r=Oe(e._fallback,n,i),l=[...t,...o],c=new Set;c.add(i);let u=$e(c,l,n,r||n,i);return null!==u&&((!E(r)||r===n||(u=$e(c,l,r,u,i),null!==u))&&Se(Array.from(c),[""],o,r,()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];if(a(o)&&s(n))return n;return o}(e,n,i)))}function $e(t,e,n,i,o){for(;n;)n=Ie(t,e,n,i,o);return n}function je(t,e){for(const n of e){if(!n)continue;const e=n[t];if(E(e))return e}}function Fe(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Ne(t,e,n,i){const{iScale:o}=t,{key:r="r"}=this._parsing,a=new Array(i);let s,l,c,u;for(s=0,l=i;s<l;++s)c=s+n,u=e[c],a[s]={r:o.parse(_(u,r),c)};return a}const Be=Number.EPSILON||1e-14,ze=(t,e)=>e<t.length&&!t[e].skip&&t[e],We=t=>"x"===t?"y":"x";function He(t,e,n,i){const o=t.skip?e:t,r=e,a=n.skip?e:n,s=U(r,o),l=U(a,r);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=i*c,d=i*u;return{previous:{x:r.x-h*(a.x-o.x),y:r.y-h*(a.y-o.y)},next:{x:r.x+d*(a.x-o.x),y:r.y+d*(a.y-o.y)}}}function Ve(t,e="x"){const n=We(e),i=t.length,o=Array(i).fill(0),r=Array(i);let a,s,l,c=ze(t,0);for(a=0;a<i;++a)if(s=l,l=c,c=ze(t,a+1),l){if(c){const t=c[e]-l[e];o[a]=0!==t?(c[n]-l[n])/t:0}r[a]=s?c?$(o[a-1])!==$(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,n){const i=t.length;let o,r,a,s,l,c=ze(t,0);for(let u=0;u<i-1;++u)l=c,c=ze(t,u+1),l&&c&&(N(e[u],0,Be)?n[u]=n[u+1]=0:(o=n[u]/e[u],r=n[u+1]/e[u],s=Math.pow(o,2)+Math.pow(r,2),s<=9||(a=3/Math.sqrt(s),n[u]=o*a*e[u],n[u+1]=r*a*e[u])))}(t,o,r),function(t,e,n="x"){const i=We(n),o=t.length;let r,a,s,l=ze(t,0);for(let c=0;c<o;++c){if(a=s,s=l,l=ze(t,c+1),!s)continue;const o=s[n],u=s[i];a&&(r=(o-a[n])/3,s[`cp1${n}`]=o-r,s[`cp1${i}`]=u-r*e[c]),l&&(r=(l[n]-o)/3,s[`cp2${n}`]=o+r,s[`cp2${i}`]=u+r*e[c])}}(t,r,e)}function Ue(t,e,n){return Math.max(Math.min(t,n),e)}function qe(t,e,n,i,o){let r,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)Ve(t,o);else{let n=i?t[t.length-1]:t[0];for(r=0,a=t.length;r<a;++r)s=t[r],l=He(n,s,t[Math.min(r+1,a-(i?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,i,o,r,a,s=se(t[0],e);for(n=0,i=t.length;n<i;++n)a=r,r=s,s=n<i-1&&se(t[n+1],e),r&&(o=t[n],a&&(o.cp1x=Ue(o.cp1x,e.left,e.right),o.cp1y=Ue(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Ue(o.cp2x,e.left,e.right),o.cp2y=Ue(o.cp2y,e.top,e.bottom)))}(t,n)}function Ye(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Xe(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ge(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const Ze=t=>window.getComputedStyle(t,null);const Je=["top","right","bottom","left"];function Qe(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const r=Je[o];i[r]=parseFloat(t[e+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Ke(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Ze(n),r="border-box"===o.boxSizing,a=Qe(o,"padding"),s=Qe(o,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:r}=i;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,r,t.target))a=o,s=r;else{const t=e.getBoundingClientRect();a=i.clientX-t.left,s=i.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),h=a.left+(u&&s.left),d=a.top+(u&&s.top);let{width:f,height:p}=e;return r&&(f-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/f*n.width/i),y:Math.round((c-d)/p*n.height/i)}}const tn=t=>Math.round(10*t)/10;function en(t,e,n,i){const o=Ze(t),r=Qe(o,"margin"),a=Ge(o.maxWidth,t,"clientWidth")||M,s=Ge(o.maxHeight,t,"clientHeight")||M,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const r=Xe(t);if(r){const t=r.getBoundingClientRect(),a=Ze(r),s=Qe(a,"border","width"),l=Qe(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,i=Ge(a.maxWidth,r,"clientWidth"),o=Ge(a.maxHeight,r,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||M,maxHeight:o||M}}(t,e,n);let{width:c,height:u}=l;if("content-box"===o.boxSizing){const t=Qe(o,"border","width"),e=Qe(o,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-r.width),u=Math.max(0,i?Math.floor(c/i):u-r.height),c=tn(Math.min(c,a,l.maxWidth)),u=tn(Math.min(u,s,l.maxHeight)),c&&!u&&(u=tn(c/2)),{width:c,height:u}}function nn(t,e,n){const i=e||1,o=Math.floor(t.height*i),r=Math.floor(t.width*i);t.height=o/i,t.width=r/i;const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||a.height!==o||a.width!==r)&&(t.currentDevicePixelRatio=i,a.height=o,a.width=r,t.ctx.setTransform(i,0,0,i,0,0),!0)}const on=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function rn(t,e){const n=function(t,e){return Ze(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function an(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function sn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function ln(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},a=an(t,o,n),s=an(o,r,n),l=an(r,e,n),c=an(a,s,n),u=an(s,l,n);return an(c,u,n)}const cn=new Map;function un(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=cn.get(n);return i||(i=new Intl.NumberFormat(t,e),cn.set(n,i)),i}(e,n).format(t)}function hn(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function dn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function fn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function pn(t){return"angle"===t?{between:X,compare:q,normalize:Y}:{between:Z,compare:(t,e)=>t-e,normalize:t=>t}}function mn({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function gn(t,e,n){if(!n)return[t];const{property:i,start:o,end:r}=n,a=e.length,{compare:s,between:l,normalize:c}=pn(i),{start:u,end:h,loop:d,style:f}=function(t,e,n){const{property:i,start:o,end:r}=n,{between:a,normalize:s}=pn(i),l=e.length;let c,u,{start:h,end:d,loop:f}=t;if(f){for(h+=l,d+=l,c=0,u=l;c<u&&a(s(e[h%l][i]),o,r);++c)h--,d--;h%=l,d%=l}return d<h&&(d+=l),{start:h,end:d,loop:f,style:t.style}}(t,e,n),p=[];let m,g,v,y=!1,b=null;const x=()=>y||l(o,v,m)&&0!==s(o,v),w=()=>!y||0===s(r,m)||l(r,v,m);for(let t=u,n=u;t<=h;++t)g=e[t%a],g.skip||(m=c(g[i]),m!==v&&(y=l(m,o,r),null===b&&x()&&(b=0===s(m,o)?t:n),null!==b&&w()&&(p.push(mn({start:b,end:t,loop:d,count:a,style:f})),b=null),n=t,v=m));return null!==b&&p.push(mn({start:b,end:h,loop:d,count:a,style:f})),p}function vn(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const r=gn(i[o],t.points,e);r.length&&n.push(...r)}return n}function yn(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),r=bn(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let u=r,h=e[0].start,d=h;function f(t,e,i,o){const r=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=r;for(;n[e%l].skip;)e+=r;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),u=o,h=e%l)}}for(const t of e){h=s?h:t.start;let e,r=n[h%l];for(d=h+1;d<=t.end;d++){const s=n[d%l];e=bn(i.setContext(Te(o,{type:"segment",p0:r,p1:s,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),xn(e,u)&&f(h,d-1,t.loop,u),r=s,u=e}h<d-1&&f(h,d-1,t.loop,u)}return c}(t,e,n,i):e}function bn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function xn(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var wn=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],r=e.duration;o.forEach(i=>i({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(n-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=it.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let r,a=o.length-1,s=!1;for(;a>=0;--a)r=o[a],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const _n="transparent",kn={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Xt(t||_n),o=i.valid&&Xt(e||_n);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class En{constructor(t,e,n,i){const o=e[n];i=Ee([t.to,i,o,t.from]);const r=Ee([t.from,o,i]);this._active=!0,this._fn=t.fn||kn[t.type||typeof r],this._easing=dt[t.easing]||dt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,r=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ee([t.to,e,i,t.from]),this._from=Ee([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,r=this._loop,a=this._to;let s;if(this._active=o!==a&&(r||e<n),!this._active)return this._target[i]=a,void this._notify(!0);e<0?this._target[i]=o:(s=e/n%2,s=r&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,n)=>{t.push({res:e,rej:n})})}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}te.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Tn=Object.keys(te.animation);te.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),te.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),te.describe("animations",{_fallback:"animation"}),te.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}}}});class Sn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!s(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const i=t[n];if(!s(i))return;const o={};for(const t of Tn)o[t]=i[t];(a(i.properties)&&i.properties||[n]).forEach(t=>{t!==n&&e.has(t)||e.set(t,o)})})}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then(()=>{t.options=n},()=>{}),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now();let s;for(s=r.length-1;s>=0;--s){const l=r[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=o[l];const h=n.get(l);if(u){if(h&&u.active()){u.update(h,c,a);continue}u.cancel()}h&&h.duration?(o[l]=u=new En(h,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(wn.add(this._chart,n),!0):void 0}}function Cn(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,r=void 0===n.max?e:0;return{start:i?r:o,end:i?o:r}}function Dn(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,r;for(o=0,r=i.length;o<r;++o)n.push(i[o].index);return n}function An(t,e,n,i={}){const o=t.keys,r="single"===i.mode;let a,s,c,u;if(null!==e){for(a=0,s=o.length;a<s;++a){if(c=+o[a],c===n){if(i.all)continue;break}u=t.values[c],l(u)&&(r||0===e||$(e)===$(u))&&(e+=u)}return e}}function Mn(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Pn(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function On(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function Ln(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:r,vScale:a,index:s}=i,l=r.axis,c=a.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(r,a,i),h=e.length;let d;for(let t=0;t<h;++t){const n=e[t],{[l]:r,[c]:h}=n;d=(n._stacks||(n._stacks={}))[c]=Pn(o,u,r),d[s]=h,d._top=On(d,a,!0,i.type),d._bottom=On(d,a,!1,i.type)}}function In(t,e){const n=t.scales;return Object.keys(n).filter(t=>n[t].axis===e).shift()}function Rn(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const $n=t=>"reset"===t||"none"===t,jn=(t,e)=>e?t:Object.assign({},t);class Fn{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.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Mn(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Rn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=u(n.xAxisID,In(t,"x")),r=e.yAxisID=u(n.yAxisID,In(t,"y")),a=e.rAxisID=u(n.rAxisID,In(t,"r")),s=e.indexAxis,l=e.iAxisID=i(s,o,r,a),c=e.vAxisID=i(s,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&et(this._data,this),t._stacked&&Rn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(s(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i],n[i]={x:r,y:t[r]};return n}(e);else if(n!==e){if(n){et(n,this);const t=this._cachedMeta;Rn(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(i=e)._chartjs?i._chartjs.listeners.push(o):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),tt.forEach(t=>{const e="_onData"+k(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[e]&&n[e](...t)}),o}})}))),this._syncList=[],this._data=e}var i,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Mn(e.vScale,e),e.stack!==n.stack&&(i=!0,Rn(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&Ln(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:r}=n,l=o.axis;let c,u,h,d=0===t&&e===i.length||n._sorted,f=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,h=i;else{h=a(i[t])?this.parseArrayData(n,i,t,e):s(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===u[l]||f&&u[l]<f[l];for(c=0;c<e;++c)n._parsed[c+t]=u=h[c],d&&(o()&&(d=!1),f=u);n._sorted=d}r&&Ln(this,h)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:r}=t,a=o.axis,s=r.axis,l=o.getLabels(),c=o===r,u=new Array(i);let h,d,f;for(h=0,d=i;h<d;++h)f=h+n,u[h]={[a]:c||o.parse(l[f],f),[s]:r.parse(e[f],f)};return u}parseArrayData(t,e,n,i){const{xScale:o,yScale:r}=t,a=new Array(i);let s,l,c,u;for(s=0,l=i;s<l;++s)c=s+n,u=e[c],a[s]={x:o.parse(u[0],c),y:r.parse(u[1],c)};return a}parseObjectData(t,e,n,i){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,u,h,d;for(c=0,u=i;c<u;++c)h=c+n,d=e[h],l[c]={x:o.parse(_(d,a),h),y:r.parse(_(d,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,r=e[t.axis];return An({keys:Dn(i,!0),values:e._stacks[t.axis]},r,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let r=null===o?NaN:o;const a=i&&n._stacks[e.axis];i&&a&&(i.values=a,r=An(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,r=i.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Dn(n,!0),values:null})(e,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:h}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(a);let d,f;function p(){f=i[d];const e=f[a.axis];return!l(f[t.axis])||u>e||h<e}for(d=0;d<r&&(p()||(this.updateRangeFromParsed(c,t,f,s),!o));++d);if(o)for(d=r-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,t,f,s);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,r;for(i=0,o=e.length;i<o;++i)r=e[i][t.axis],l(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return s(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(u(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Cn(t,n),o=Cn(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,r=[],a=this._drawStart||0,s=this._drawCount||i.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,a,s),c=a;c<a+s;++c){const e=i[c];e.hidden||(e.active&&l?r.push(e):e.draw(t,o))}for(c=0;c<r.length;++c)r[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return Te(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return Te(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,r=t+"-"+e,a=o[r],s=this.enableOptionSharing&&E(n);if(a)return jn(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),d=Object.keys(te.elements[t]),f=l.resolveNamedOptions(h,d,()=>this.getContext(n,i),u);return f.$shared&&(f.$shared=s,o[r]=Object.freeze(jn(f,s))),f}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let s;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),r=i.getOptionScopes(this.getDataset(),o);s=i.createResolver(r,this.getContext(t,n,e))}const l=new Sn(i,s&&s.animations);return s&&s._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||$n(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),r=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:r}}updateElement(t,e,n,i){$n(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!$n(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,r=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=r;a--)t[a]=t[a-e]};for(s(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Rn(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Nn(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=nt(i.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let i,o,r,a,s=e._length;const l=()=>{32767!==r&&-32768!==r&&(E(a)&&(s=Math.min(s,Math.abs(r-a)||s)),a=r)};for(i=0,o=n.length;i<o;++i)r=e.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=e.ticks.length;i<o;++i)r=e.getPixelForTick(i),l();return s}function Bn(t,e,n,i){return a(t)?function(t,e,n,i){const o=n.parse(t[0],i),r=n.parse(t[1],i),a=Math.min(o,r),s=Math.max(o,r);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:r,min:a,max:s}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function zn(t,e,n,i){const o=t.iScale,r=t.vScale,a=o.getLabels(),s=o===r,l=[];let c,u,h,d;for(c=n,u=n+i;c<u;++c)d=e[c],h={},h[o.axis]=s||o.parse(a[c],c),l.push(Bn(d,h,r,c));return l}function Wn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Hn(t,e,n,i){let o=e.borderSkipped;const r={};if(!o)return void(t.borderSkipped=r);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(t){let e,n,i,o,r;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",r="start"):(o="start",r="end"),{start:n,end:i,reverse:e,top:o,bottom:r}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=u:(r[Vn(u,a,s,l)]=!0,o=c)),r[Vn(o,a,s,l)]=!0,t.borderSkipped=r}function Vn(t,e,n,i){var o,r,a;return i?(a=n,t=Un(t=(o=t)===(r=e)?a:o===a?r:o,n,e)):t=Un(t,e,n),t}function Un(t,e,n){return"start"===t?e:"end"===t?n:t}function qn(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Fn.defaults={},Fn.prototype.datasetElementType=null,Fn.prototype.dataElementType=null;class Yn extends Fn{parsePrimitiveData(t,e,n,i){return zn(t,e,n,i)}parseArrayData(t,e,n,i){return zn(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===o.axis?a:s,c="x"===r.axis?a:s,u=[];let h,d,f,p;for(h=n,d=n+i;h<d;++h)p=e[h],f={},f[o.axis]=o.parse(_(p,l),h),u.push(Bn(_(p,c),f,r,h));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),r=o._custom,a=Wn(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,i);for(let f=e;f<e+n;f++){const e=this.getParsed(f),n=o||r(e[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,u),m=(e._stacks||{})[s.axis],g={horizontal:c,base:n.base,enableBorderRadius:!m||Wn(e._custom)||a===m._top||a===m._bottom,x:c?n.head:p.center,y:c?p.center:n.head,height:c?p.size:Math.abs(n.size),width:c?Math.abs(n.size):p.size};d&&(g.options=h||this.resolveDataElementOptions(f,t[f].active?"active":i));const v=g.options||t[f].options;Hn(g,v,m,a),qn(g,v,u.ratio),this.updateElement(t[f],f,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),o=n.options.stacked,a=[],s=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(r(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!s(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,r;for(o=0,r=e.data.length;o<r;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const a=t.barThickness;return{min:a||Nn(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,s=this.getParsed(t),l=s._custom,c=Wn(l);let u,h,d=s[e.axis],f=0,p=n?this.applyStack(e,s,n):d;p!==d&&(f=p-d,p=d),c&&(d=l.barStart,p=l.barEnd-l.barStart,0!==d&&$(d)!==$(l.barEnd)&&(f=0),f+=d);const m=r(i)||c?f:i;let g=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(f+p):g,h=u-g,Math.abs(h)<o){h=function(t,e,n){return 0!==t?$(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(h,e,a)*o,d===a&&(g-=h/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),r=Math.max(t,n);g=Math.max(Math.min(g,r),i),u=g+h}if(g===e.getPixelForValue(a)){const t=$(h)*e.getLineWidthForValue(a)/2;g+=t,h-=t}return{size:h,base:g,head:u,center:u+h/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=u(i.maxBarThickness,1/0);let s,l;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,c="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,r=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===a&&(a=r-(null===s?e.end-e.start:s-r)),null===s&&(s=r+r-a);const c=r-(r-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,s;return r(o)?(a=e.min*n.categoryPercentage,s=n.barPercentage):(a=o*i,s=1),{chunk:a/i,ratio:s,start:e.pixels[t]-a/2}}(t,e,i,n),u=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=c.start+c.chunk*u+c.chunk/2,l=Math.min(a,c.chunk*c.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),l=Math.min(a,e.min*e.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Yn.id="bar",Yn.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Yn.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Xn extends Fn{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=u(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=u(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),r=n.getLabelForValue(o.x),a=i.getLabelForValue(o.y),s=o._custom;return{label:e.label,value:"("+r+", "+a+(s?", "+s:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:r,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,i),c=r.axis,u=a.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),d={},f=d[c]=o?r.getPixelForDecimal(.5):r.getPixelForValue(n[c]),p=d[u]=o?a.getBasePixel():a.getPixelForValue(n[u]);d.skip=isNaN(f)||isNaN(p),l&&(d.options=s||this.resolveDataElementOptions(h,e.active?"active":i),o&&(d.options.radius=0)),this.updateElement(e,h,d,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=u(n&&n._custom,o),i}}Xn.id="bubble",Xn.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Xn.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Gn extends Fn{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,r,a=t=>+n[t];if(s(n[t])){const{key:t="value"}=this._parsing;a=e=>+_(n[e],t)}for(o=t,r=t+e;o<r;++o)i._parsed[o]=a(o)}}_getRotation(){return z(this.options.rotation-90)}_getCircumference(){return z(this.options.circumference)}_getRotationExtents(){let t=D,e=-D;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-r)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:g,offsetY:v}=function(t,e,n){let i=1,o=1,r=0,a=0;if(e<D){const s=t,l=s+e,c=Math.cos(s),u=Math.sin(s),h=Math.cos(l),d=Math.sin(l),f=(t,e,i)=>X(t,s,l,!0)?1:Math.max(e,e*n,i,i*n),p=(t,e,i)=>X(t,s,l,!0)?-1:Math.min(e,e*n,i,i*n),m=f(0,c,h),g=f(O,u,d),v=p(C,c,h),y=p(C+O,u,d);i=(m-v)/2,o=(g-y)/2,r=-(m+v)/2,a=-(g+y)/2}return{ratioX:i,ratioY:o,offsetX:r,offsetY:a}}(f,d,s),y=(n.width-r)/p,b=(n.height-r)/m,x=Math.max(Math.min(y,b)/2,0),w=h(this.options.radius,x),_=(w-Math.max(w*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=v*w,i.total=this.calculateTotal(),this.outerRadius=w-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/D)}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.chartArea,s=r.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=o&&s.animateScale,h=u?0:this.innerRadius,d=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,i);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:d,innerRadius:h};p&&(r.options=f||this.resolveDataElementOptions(m,n.active?"active":i)),g+=e,this.updateElement(n,m,r,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?D*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=un(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,r,a,s;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),t=r.data,a=r.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)s=a.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(u(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Gn.id="doughnut",Gn.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"},Gn.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Gn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return a(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Zn extends Fn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,r=this.chart._animationsDisabled;let{start:a,count:s}=st(e,i,r);this._drawStart=a,this._drawCount=s,lt(e)&&(a=0,s=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:l},t),this.updateElements(i,a,s,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,i),d=a.axis,f=s.axis,{spanGaps:p,segment:m}=this.options,g=F(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||o||"none"===i;let y=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),b=v?e:{},x=r(n[f]),w=b[d]=a.getPixelForValue(n[d],p),_=b[f]=o||x?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,n,l):n[f],p);b.skip=isNaN(w)||isNaN(_)||x,b.stop=p>0&&Math.abs(n[d]-y[d])>g,m&&(b.parsed=n,b.raw=c.data[p]),h&&(b.options=u||this.resolveDataElementOptions(p,e.active?"active":i)),v||this.updateElement(e,p,b,i),y=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),r=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Zn.id="line",Zn.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Zn.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Jn extends Fn{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=un(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Ne.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),r=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,n,i){const o="reset"===i,r=this.chart,a=r.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*C;let h,d=u;const f=360/this.countVisibleElements();for(h=0;h<e;++h)d+=this._computeAngle(h,i,f);for(h=e;h<e+n;h++){const e=t[h];let n=d,p=d+this._computeAngle(h,i,f),m=r.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;d=p,o&&(a.animateScale&&(m=0),a.animateRotate&&(n=p=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,g,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?z(this.resolveDataElementOptions(t,e).angle||n):0}}Jn.id="polarArea",Jn.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Jn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}})}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Qn extends Gn{}Qn.id="pie",Qn.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Kn extends Fn{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Ne.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const r={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,r,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,r="reset"===i;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":i),s=o.getPointPositionForValue(a,this.getParsed(a).r),l=r?o.xCenter:s.x,c=r?o.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,a,u,i)}}}Kn.id="radar",Kn.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Kn.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ti{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return F(this.x)&&F(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach(t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]}),i}}ti.defaults={},ti.defaultRoutes=void 0;const ei={values:t=>a(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,r=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),r=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=R(Math.abs(r)),s=Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),un(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(R(t)));return 1===i||2===i||5===i?ei.numeric.call(this,t,e,n):""}};var ni={formatters:ei};function ii(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return function(t,e,n,i){let o,r=0,a=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===a&&(e.push(t[o]),r++,a=n[r*i])}(e,c,o,a/i),c;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const r=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i===0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort((t,e)=>t-e).pop(),e}(i);for(let t=0,e=r.length-1;t<e;t++){const e=r[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((l-s)/(a-1)):null;for(oi(e,c,u,r(i)?0:s-i,s),t=0,n=a-1;t<n;t++)oi(e,c,u,o[t],o[t+1]);return oi(e,c,u,l,r(i)?e.length:l+i),c}return oi(e,c,u),c}function oi(t,e,n,i,o){const r=u(i,0),a=Math.min(u(o,t.length),t.length);let s,l,c,h=0;for(n=Math.ceil(n),o&&(s=o-i,n=s/Math.floor(s/n)),c=r;c<0;)h++,c=Math.round(r+h*n);for(l=Math.max(r,0);l<a;l++)l===c&&(e.push(t[l]),h++,c=Math.round(r+h*n))}te.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:ni.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),te.route("scale.ticks","color","","color"),te.route("scale.grid","color","","borderColor"),te.route("scale.grid","borderColor","","borderColor"),te.route("scale.title","color","","color"),te.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),te.describe("scales",{_fallback:"scale"}),te.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const ri=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function ai(t,e){const n=[],i=t.length/e,o=t.length;let r=0;for(;r<o;r+=i)n.push(t[Math.floor(r)]);return n}function si(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),r=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-r,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<r-s||c>a+s)))return c}function li(t){return t.drawTicks?t.tickLength:0}function ci(t,e){if(!t.display)return 0;const n=ke(t.font,e),i=_e(t.padding);return(a(t.text)?t.text.length:1)*n.lineHeight+i.height}function ui(t,e,n){let i=rt(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class hi extends ti{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=c(t,Number.POSITIVE_INFINITY),e=c(e,Number.NEGATIVE_INFINITY),n=c(n,Number.POSITIVE_INFINITY),i=c(i,Number.NEGATIVE_INFINITY),{min:c(t,n),max:c(e,i),minDefined:l(t),maxDefined:l(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:r}=this.getUserBounds();if(o&&r)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),r||(i=Math.max(i,e.max));return n=r&&n>i?i:n,i=o&&n>i?n:i,{min:c(n,c(i,n)),max:c(i,c(n,i))}}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||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){d(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,r=h(e,(o-i)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(i,-Math.abs(r)),max:a(o,r)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?ai(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=ii(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){d(this.options.afterUpdate,[this])}beforeSetDimensions(){d(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(){d(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),d(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){d(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=d(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){d(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){d(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let r,a,s,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,d=G(this.chart.width-u,0,this.maxWidth);r=t.offset?this.maxWidth/n:d/(n-1),u+6>r&&(r=d/(n-(t.offset?.5:1)),a=this.maxHeight-li(t.grid)-e.padding-ci(t.title,this.chart.options.font),s=Math.sqrt(u*u+h*h),l=W(Math.min(Math.asin(G((c.highest.height+6)/r,-1,1)),Math.asin(G(a/s,-1,1))-Math.asin(G(h/s,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){d(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){d(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const r=ci(i,e.options.font);if(a?(t.width=this.maxWidth,t.height=li(o)+r):(t.height=this.maxHeight,t.width=li(o)+r),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:r}=this._getLabelSizes(),s=2*n.padding,l=z(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*o.width+c*r.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*o.width+u*r.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:o,padding:r},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;s?l?(u=i*t.width,h=n*e.height):(u=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?u=t.width:"inner"!==o&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-a+r)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+r)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_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(){d(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)r(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=ai(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],s=[];let l,c,u,h,d,p,m,g,v,y,b,x=0,w=0;for(l=0;l<e;++l){if(h=t[l].label,d=this._resolveTickFontOptions(l),n.font=p=d.string,m=i[p]=i[p]||{data:{},gc:[]},g=d.lineHeight,v=y=0,r(h)||a(h)){if(a(h))for(c=0,u=h.length;c<u;++c)b=h[c],r(b)||a(b)||(v=ee(n,m.data,m.gc,v,b),y+=g)}else v=ee(n,m.data,m.gc,v,h),y=g;o.push(v),s.push(y),x=Math.max(v,x),w=Math.max(y,w)}!function(t,e){f(t,t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}})}(i,e);const _=o.indexOf(x),k=s.indexOf(w),E=t=>({width:o[t]||0,height:s[t]||0});return{first:E(0),last:E(e-1),widest:E(_),highest:E(k),widths:o,heights:s}}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 G(this._alignToPixels?ie(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 n=e[t];return n.$context||(n.$context=function(t,e,n){return Te(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Te(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=z(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,s=o?o.highest.height+r:0;return this.isHorizontal()?s*n>a*i?a/n:s/i:s*i<a*n?s/n:a/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:r}=i,a=o.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),h=li(o),d=[],f=o.setContext(this.getContext()),p=f.drawBorder?f.borderWidth:0,m=p/2,g=function(t){return ie(n,t,p)};let v,y,b,x,w,_,k,E,T,S,C,D;if("top"===r)v=g(this.bottom),_=this.bottom-h,E=v-m,S=g(t.top)+m,D=t.bottom;else if("bottom"===r)v=g(this.top),S=t.top,D=g(t.bottom)-m,_=v+m,E=this.top+h;else if("left"===r)v=g(this.right),w=this.right-h,k=v-m,T=g(t.left)+m,C=t.right;else if("right"===r)v=g(this.left),T=t.left,C=g(t.right)-m,w=v+m,k=this.left+h;else if("x"===e){if("center"===r)v=g((t.top+t.bottom)/2+.5);else if(s(r)){const t=Object.keys(r)[0],e=r[t];v=g(this.chart.scales[t].getPixelForValue(e))}S=t.top,D=t.bottom,_=v+m,E=_+h}else if("y"===e){if("center"===r)v=g((t.left+t.right)/2);else if(s(r)){const t=Object.keys(r)[0],e=r[t];v=g(this.chart.scales[t].getPixelForValue(e))}w=v-m,k=w-h,T=t.left,C=t.right}const A=u(i.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/A));for(y=0;y<c;y+=M){const t=o.setContext(this.getContext(y)),e=t.lineWidth,i=t.color,r=t.borderDash||[],s=t.borderDashOffset,c=t.tickWidth,u=t.tickColor,h=t.tickBorderDash||[],f=t.tickBorderDashOffset;b=si(this,y,a),void 0!==b&&(x=ie(n,b,e),l?w=k=T=C=x:_=E=S=D=x,d.push({tx1:w,ty1:_,tx2:k,ty2:E,x1:T,y1:S,x2:C,y2:D,width:e,color:i,borderDash:r,borderDashOffset:s,tickWidth:c,tickColor:u,tickBorderDash:h,tickBorderDashOffset:f}))}return this._ticksLength=c,this._borderValue=v,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,r=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:u,padding:h,mirror:d}=o,f=li(n.grid),p=f+h,m=d?-h:p,g=-z(this.labelRotation),v=[];let y,b,x,w,_,k,E,T,S,C,D,A,M="middle";if("top"===i)k=this.bottom-m,E=this._getXAxisLabelAlignment();else if("bottom"===i)k=this.top+m,E=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(f);E=t.textAlign,_=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(f);E=t.textAlign,_=t.x}else if("x"===e){if("center"===i)k=(t.top+t.bottom)/2+p;else if(s(i)){const t=Object.keys(i)[0],e=i[t];k=this.chart.scales[t].getPixelForValue(e)+p}E=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)_=(t.left+t.right)/2-p;else if(s(i)){const t=Object.keys(i)[0],e=i[t];_=this.chart.scales[t].getPixelForValue(e)}E=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===c?M="top":"end"===c&&(M="bottom"));const P=this._getLabelSizes();for(y=0,b=l.length;y<b;++y){x=l[y],w=x.label;const t=o.setContext(this.getContext(y));T=this.getPixelForTick(y)+o.labelOffset,S=this._resolveTickFontOptions(y),C=S.lineHeight,D=a(w)?w.length:1;const e=D/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,f=E;if(r?(_=T,"inner"===E&&(f=y===b-1?this.options.reverse?"left":"right":0===y?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===u||0!==g?-D*C+C/2:"center"===u?-P.highest.height/2-e*C+C:-P.highest.height+C/2:"near"===u||0!==g?C/2:"center"===u?P.highest.height/2-e*C:P.highest.height-D*C,d&&(A*=-1)):(k=T,A=(1-D)*C/2),t.showLabelBackdrop){const e=_e(t.backdropPadding),n=P.heights[y],i=P.widths[y];let o=k+A-e.top,r=_-e.left;switch(M){case"middle":o-=n/2;break;case"bottom":o-=n}switch(E){case"center":r-=i/2;break;case"right":r-=i}h={left:r,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}v.push({rotation:g,label:w,font:S,color:n,strokeColor:s,strokeWidth:c,textOffset:A,textAlign:f,textBaseline:M,translation:[_,k],backdrop:h})}return v}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-z(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,r=t+o,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?i?(l=this.right+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-r,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+r,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,r),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(e=>e.value===t);if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,r=i.length;o<r;++o){const t=i[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({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:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const r=n.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let s,l,c,u;this.isHorizontal()?(s=ie(t,this.left,o)-o/2,l=ie(t,this.right,r)+r/2,c=u=a):(c=ie(t,this.top,o)-o/2,u=ie(t,this.bottom,r)+r/2,s=l=a),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(s,c),e.lineTo(l,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&le(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,r;for(o=0,r=i.length;o<r;++o){const t=i[o],n=t.font,r=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),de(e,r,0,t.textOffset,n,t)}n&&ce(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=ke(n.font),r=_e(n.padding),l=n.align;let c=o.lineHeight/2;"bottom"===e||"center"===e||s(e)?(c+=r.bottom,a(n.text)&&(c+=o.lineHeight*(n.text.length-1))):c+=r.top;const{titleX:u,titleY:h,maxWidth:d,rotation:f}=function(t,e,n,i){const{top:o,left:r,bottom:a,right:l,chart:c}=t,{chartArea:u,scales:h}=c;let d,f,p,m=0;const g=a-o,v=l-r;if(t.isHorizontal()){if(f=at(i,r,l),s(n)){const t=Object.keys(n)[0],i=n[t];p=h[t].getPixelForValue(i)+g-e}else p="center"===n?(u.bottom+u.top)/2+g-e:ri(t,n,e);d=l-r}else{if(s(n)){const t=Object.keys(n)[0],i=n[t];f=h[t].getPixelForValue(i)-v+e}else f="center"===n?(u.left+u.right)/2-v+e:ri(t,n,e);p=at(i,a,o),m="left"===n?-O:O}return{titleX:f,titleY:p,maxWidth:d,rotation:m}}(this,c,e,l);de(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:f,textAlign:ui(l,e,i),textBaseline:"middle",translation:[u,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,n=u(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===hi.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,r;for(o=0,r=e.length;o<r;++o){const r=e[o];r[n]!==this.id||t&&r.type!==t||i.push(r)}return i}_resolveTickFontOptions(t){return ke(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class di{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=y(Object.create(null),[n?te.get(n):{},te.get(e),t.defaults]);te.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(n=>{const i=n.split("."),o=i.pop(),r=[t].concat(i).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");te.route(r,o,l,s)})}(e,t.defaultRoutes);t.descriptors&&te.describe(e,t.descriptors)}(t,r,n),this.override&&te.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in te[i]&&(delete te[i][n],this.override&&delete Zt[n])}}var fi=new class{constructor(){this.controllers=new di(Fn,"datasets",!0),this.elements=new di(ti,"elements"),this.plugins=new di(Object,"plugins"),this.scales=new di(hi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach(e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):f(e,e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)})})}_exec(t,e,n){const i=k(t);d(n["before"+i],[],n),e[t](n),d(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class pi extends Fn{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:r}=st(e,n,i);if(this._drawStart=o,this._drawCount=r,lt(e)&&(o=0,r=n.length),this.options.showLine){const{dataset:o,_dataset:r}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!r._decimated,o.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:a},t)}this.updateElements(n,o,r,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=fi.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,i),h=this.getSharedOptions(u),d=this.includeOptions(i,h),f=a.axis,p=s.axis,{spanGaps:m,segment:g}=this.options,v=F(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let u=e;u<e+n;++u){const e=t[u],n=this.getParsed(u),m=y?e:{},x=r(n[p]),w=m[f]=a.getPixelForValue(n[f],u),_=m[p]=o||x?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,n,l):n[p],u);m.skip=isNaN(w)||isNaN(_)||x,m.stop=u>0&&Math.abs(n[f]-b[f])>v,g&&(m.parsed=n,m.raw=c.data[u]),d&&(m.options=h||this.resolveDataElementOptions(u,e.active?"active":i)),y||this.updateElement(e,u,m,i),b=n}this.updateSharedOptions(h,i,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),r=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,r)/2}}pi.id="scatter",pi.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},pi.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var mi=Object.freeze({__proto__:null,BarController:Yn,BubbleController:Xn,DoughnutController:Gn,LineController:Zn,PolarAreaController:Jn,PieController:Qn,RadarController:Kn,ScatterController:pi});function gi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class vi{constructor(t){this.options=t||{}}init(t){}formats(){return gi()}parse(t,e){return gi()}format(t,e){return gi()}add(t,e,n){return gi()}diff(t,e,n){return gi()}startOf(t,e,n){return gi()}endOf(t,e){return gi()}}vi.override=function(t){Object.assign(vi.prototype,t)};var yi={_date:vi};function bi(t,e,n,i){const{controller:o,data:r,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&r.length){const t=s._reversePixels?K:Q;if(!i)return t(r,e,n);if(o._sharedOptions){const i=r[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(r,e,n-o),a=t(r,e,n+o);return{lo:i.lo,hi:a.hi}}}}return{lo:0,hi:r.length-1}}function xi(t,e,n,i,o){const r=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=r.length;t<n;++t){const{index:n,data:s}=r[t],{lo:l,hi:c}=bi(r[t],e,a,o);for(let t=l;t<=c;++t){const e=s[t];e.skip||i(e,n,t)}}}function wi(t,e,n,i,o){const r=[];if(!o&&!t.isPointInArea(e))return r;return xi(t,n,e,function(n,a,s){(o||se(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&r.push({element:n,datasetIndex:a,index:s})},!0),r}function _i(t,e,n,i,o,r){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,r=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}(n);let l=Number.POSITIVE_INFINITY;return xi(t,n,e,function(n,c,u){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const d=n.getCenterPoint(o);if(!(!!r||t.isPointInArea(d))&&!h)return;const f=s(e,d);f<l?(a=[{element:n,datasetIndex:c,index:u}],l=f):f===l&&a.push({element:n,datasetIndex:c,index:u})}),a}function ki(t,e,n,i,o,r){return r||t.isPointInArea(e)?"r"!==n||i?_i(t,e,n,i,o,r):function(t,e,n,i){let o=[];return xi(t,n,e,function(t,n,r){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],i),{angle:l}=V(t,{x:e.x,y:e.y});X(l,a,s)&&o.push({element:t,datasetIndex:n,index:r})}),o}(t,e,n,o):[]}function Ei(t,e,n,i,o){const r=[],a="x"===n?"inXRange":"inYRange";let s=!1;return xi(t,n,e,(t,i,l)=>{t[a](e[n],o)&&(r.push({element:t,datasetIndex:i,index:l}),s=s||t.inRange(e.x,e.y,o))}),i&&!s?[]:r}var Ti={evaluateInteractionItems:xi,modes:{index(t,e,n,i){const o=Ke(e,t),r=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?wi(t,o,r,i,a):ki(t,o,r,!1,i,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,n,i){const o=Ke(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?wi(t,o,r,i,a):ki(t,o,r,!1,i,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,i)=>wi(t,Ke(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=Ke(e,t),r=n.axis||"xy",a=n.includeInvisible||!1;return ki(t,o,r,n.intersect,i,a)},x:(t,e,n,i)=>Ei(t,Ke(e,t),"x",n.intersect,i),y:(t,e,n,i)=>Ei(t,Ke(e,t),"y",n.intersect,i)}};const Si=["left","top","right","bottom"];function Ci(t,e){return t.filter(t=>t.pos===e)}function Di(t,e){return t.filter(t=>-1===Si.indexOf(t.pos)&&t.box.axis===e)}function Ai(t,e){return t.sort((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function Mi(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!Si.includes(i))continue;const r=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let r,a,s;for(r=0,a=t.length;r<a;++r){s=t[r];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:a&&e.availableWidth,s.height=o):(s.width=i,s.height=c?c*o:a&&e.availableHeight)}return n}function Pi(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Oi(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 Li(t,e,n,i){const{pos:o,box:r}=n,a=t.maxPadding;if(!s(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?r.height:r.width),n.size=e.size/e.count,t[o]+=n.size}r.getPadding&&Oi(a,r.getPadding());const l=Math.max(0,e.outerWidth-Pi(a,t,"left","right")),c=Math.max(0,e.outerHeight-Pi(a,t,"top","bottom")),u=l!==t.w,h=c!==t.h;return t.w=l,t.h=c,n.horizontal?{same:u,other:h}:{same:h,other:u}}function Ii(t,e){const n=e.maxPadding;function i(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function Ri(t,e,n,i){const o=[];let r,a,s,l,c,u;for(r=0,a=t.length,c=0;r<a;++r){s=t[r],l=s.box,l.update(s.width||e.w,s.height||e.h,Ii(s.horizontal,e));const{same:a,other:h}=Li(e,n,s,i);c|=a&&o.length,u=u||h,l.fullSize||o.push(s)}return c&&Ri(o,e,n,i)||u}function $i(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function ji(t,e,n,i){const o=n.padding;let{x:r,y:a}=e;for(const s of t){const t=s.box,l=i[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=e.w*c,r=l.size||t.height;E(l.start)&&(a=l.start),t.fullSize?$i(t,o.left,a,n.outerWidth-o.right-o.left,r):$i(t,e.left+l.placed,a,i,r),l.start=a,l.placed+=i,a=t.bottom}else{const i=e.h*c,a=l.size||t.width;E(l.start)&&(r=l.start),t.fullSize?$i(t,r,o.top,a,n.outerHeight-o.bottom-o.top):$i(t,r,e.top+l.placed,a,i),l.start=r,l.placed+=i,r=t.right}}e.x=r,e.y=a}te.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Fi={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=_e(t.options.layout.padding),r=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=function(t){const e=function(t){const e=[];let n,i,o,r,a,s;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:r,options:{stack:a,stackWeight:s=1}}=o),e.push({index:n,box:o,pos:r,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&r+a,stackWeight:s});return e}(t),n=Ai(e.filter(t=>t.box.fullSize),!0),i=Ai(Ci(e,"left"),!0),o=Ai(Ci(e,"right")),r=Ai(Ci(e,"top"),!0),a=Ai(Ci(e,"bottom")),s=Di(e,"x"),l=Di(e,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:Ci(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:r.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;f(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const u=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:r,availableHeight:a,vBoxMaxWidth:r/2/u,hBoxMaxHeight:a/2}),d=Object.assign({},o);Oi(d,_e(i));const p=Object.assign({maxPadding:d,w:r,h:a,x:o.left,y:o.top},o),m=Mi(l.concat(c),h);Ri(s.fullSize,p,h,m),Ri(l,p,h,m),Ri(c,p,h,m)&&Ri(l,p,h,m),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),ji(s.leftAndTop,p,h,m),p.x+=p.w,p.y+=p.h,ji(s.rightAndBottom,p,h,m),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},f(s.chartArea,e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Ni{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Bi extends Ni{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const zi="$chartjs",Wi={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Hi=t=>null===t||""===t;const Vi=!!on&&{passive:!0};function Ui(t,e,n){t.canvas.removeEventListener(e,n,Vi)}function qi(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Yi(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||qi(n.addedNodes,i),e=e&&!qi(n.removedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function Xi(t,e,n){const i=t.canvas,o=new MutationObserver(t=>{let e=!1;for(const n of t)e=e||qi(n.removedNodes,i),e=e&&!qi(n.addedNodes,i);e&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const Gi=new Map;let Zi=0;function Ji(){const t=window.devicePixelRatio;t!==Zi&&(Zi=t,Gi.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Qi(t,e,n){const i=t.canvas,o=i&&Xe(i);if(!o)return;const r=ot((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()},window),a=new ResizeObserver(t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||r(n,i)});return a.observe(o),function(t,e){Gi.size||window.addEventListener("resize",Ji),Gi.set(t,e)}(t,r),a}function Ki(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Gi.delete(t),Gi.size||window.removeEventListener("resize",Ji)}(t)}function to(t,e,n){const i=t.canvas,o=ot(e=>{null!==t.ctx&&n(function(t,e){const n=Wi[t.type]||t.type,{x:i,y:o}=Ke(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))},t,t=>{const e=t[0];return[e,e.offsetX,e.offsetY]});return function(t,e,n){t.addEventListener(e,n,Vi)}(i,e,o),o}class eo extends Ni{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[zi]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Hi(o)){const e=rn(t,"width");void 0!==e&&(t.width=e)}if(Hi(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=rn(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[zi])return!1;const n=e[zi].initial;["height","width"].forEach(t=>{const i=n[t];r(i)?e.removeAttribute(t):e.setAttribute(t,i)});const i=n.style||{};return Object.keys(i).forEach(t=>{e.style[t]=i[t]}),e.width=e.width,delete e[zi],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:Yi,detach:Xi,resize:Qi}[e]||to;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];if(!i)return;({attach:Ki,detach:Ki,resize:Ki}[e]||Ui)(t,e,i),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return en(t,e,n,i)}isAttached(t){const e=Xe(t);return!(!e||!e.isConnected)}}class no{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===d(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){r(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=u(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(fi.plugins.items);for(let t=0;t<i.length;t++)n.push(fi.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const r=[],a=t.getContext();for(const s of e){const e=s.id,l=io(i[e],o);null!==l&&r.push({plugin:s,options:oo(t.config,{plugin:s,local:n[e]},l,a)})}return r}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function io(t,e){return e||!1!==t?!0===t?{}:t:null}function oo(t,{plugin:e,local:n},i,o){const r=t.pluginScopeKeys(e),a=t.getOptionScopes(i,r);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ro(t,e){const n=te.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function ao(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function so(t){const e=t.options||(t.options={});e.plugins=u(e.plugins,{}),e.scales=function(t,e){const n=Zt[t.type]||{scales:{}},i=e.scales||{},o=ro(t.type,e),r=Object.create(null),a=Object.create(null);return Object.keys(i).forEach(t=>{const e=i[t];if(!s(e))return;if(e._proxy)return;const l=ao(t,e),c=function(t,e){return t===e?"_index_":"_value_"}(l,o),u=n.scales||{};r[l]=r[l]||t,a[t]=b(Object.create(null),[{axis:l},e,u[l],u[c]])}),t.data.datasets.forEach(n=>{const o=n.type||t.type,s=n.indexAxis||ro(o,e),l=(Zt[o]||{}).scales||{};Object.keys(l).forEach(t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),o=n[e+"AxisID"]||r[e]||e;a[o]=a[o]||Object.create(null),b(a[o],[{axis:e},i[o],l[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];b(e,[te.scales[e.type],te.scale])}),a}(t,e)}function lo(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const co=new Map,uo=new Set;function ho(t,e){let n=co.get(t);return n||(n=e(),co.set(t,n),uo.add(n)),n}const fo=(t,e,n)=>{const i=_(e,n);void 0!==i&&t.add(i)};class po{constructor(t){this._config=function(t){return(t=t||{}).data=lo(t.data),so(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=lo(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(),so(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ho(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return ho(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return ho(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return ho(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,r=this._cachedScopes(t,n),a=r.get(e);if(a)return a;const s=new Set;e.forEach(e=>{t&&(s.add(t),e.forEach(e=>fo(s,t,e))),e.forEach(t=>fo(s,i,t)),e.forEach(t=>fo(s,Zt[o]||{},t)),e.forEach(t=>fo(s,te,t)),e.forEach(t=>fo(s,Jt,t))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),uo.has(e)&&r.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Zt[e]||{},te.datasets[e]||{},{type:e},te,Jt]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:r,subPrefixes:s}=mo(this._resolverCache,t,i);let l=r;if(function(t,e){const{isScriptable:n,isIndexable:i}=De(t);for(const o of e){const e=n(o),r=i(o),s=(r||e)&&t[o];if(e&&(T(s)||go(s))||r&&a(s))return!0}return!1}(r,e)){o.$shared=!1;l=Ce(r,n=T(n)?n():n,this.createResolver(t,n,s))}for(const t of e)o[t]=l[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=mo(this._resolverCache,t,n);return s(e)?Ce(o,e,void 0,i):o}}function mo(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let r=i.get(o);if(!r){r={resolver:Se(e,n),subPrefixes:n.filter(t=>!t.toLowerCase().includes("hover"))},i.set(o,r)}return r}const go=t=>s(t)&&Object.getOwnPropertyNames(t).reduce((e,n)=>e||T(t[n]),!1);const vo=["top","bottom","left","right","chartArea"];function yo(t,e){return"top"===t||"bottom"===t||-1===vo.indexOf(t)&&"x"===e}function bo(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function xo(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),d(n&&n.onComplete,[t],e)}function wo(t){const e=t.chart,n=e.options.animation;d(n&&n.onProgress,[t],e)}function _o(t){return Ye()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ko={},Eo=t=>{const e=_o(t);return Object.values(ko).filter(t=>t.canvas===e).pop()};function To(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const r=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=r)}}}class So{constructor(t,e){const n=this.config=new po(e),i=_o(t),r=Eo(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Ye()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Bi:eo}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;this.id=o(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,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 no,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],ko[this.id]=this,s&&l&&(wn.listen(this,"complete",xo),wn.listen(this,"progress",wo),this._initialize(),this.attached&&this.update())}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:o}=this;return r(t)?e&&o?o:i?n/i: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}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():nn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return oe(this.canvas,this.ctx),this}stop(){return wn.stop(this),this}resize(t,e){wn.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,nn(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),d(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){f(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce((t,e)=>(t[e]=!1,t),{});let o=[];e&&(o=o.concat(Object.keys(e).map(t=>{const n=e[t],i=ao(t,n),o="r"===i,r="x"===i;return{options:n,dposition:o?"chartArea":r?"bottom":"left",dtype:o?"radialLinear":r?"category":"linear"}}))),f(o,e=>{const o=e.options,r=o.id,a=ao(r,o),s=u(o.type,e.dtype);void 0!==o.position&&yo(o.position,a)===yo(e.dposition)||(o.position=e.dposition),i[r]=!0;let l=null;if(r in n&&n[r].type===s)l=n[r];else{l=new(fi.getScale(s))({id:r,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(o,t)}),f(i,(t,e)=>{t||delete n[e]}),f(n,t=>{Fi.configure(this,t,t.options),Fi.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort((t,e)=>t.index-e.index),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(bo("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,n)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const r=i.type||this.config.type;if(o.type&&o.type!==r&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=r,o.indexAxis=i.indexAxis||ro(r,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=fi.getController(r),{datasetElementType:i,dataElementType:a}=te.datasets[r];Object.assign(e.prototype,{dataElementType:fi.getElement(a),datasetElementType:i&&fi.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){f(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),r=Math.max(+e.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),i||f(o,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bo("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){f(this.scales,t=>{Fi.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);S(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e){To(t,i,"_removeElements"===n?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),i=n(0);for(let t=1;t<e;t++)if(!S(i,n(t)))return;return Array.from(i).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;Fi.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],f(this.boxes,t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,T(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(wn.has(this)?this.attached&&!wn.running(this)&&wn.start(this):(this.draw(),xo({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,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,o=this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(i&&le(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&ce(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return se(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=Ti.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter(t=>t&&t._dataset===e).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=Te(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);E(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),r.update(o,{visible:n}),this.update(e=>e.datasetIndex===t?i: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(),wn.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(),oe(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete ko[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};f(this.options.events,t=>n(t,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let r;const a=()=>{i("attach",a),this.attached=!0,this.resize(),n("resize",o),n("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){f(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},f(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,r,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){r=t[a];const e=r&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map(({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}});!p(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),r=o(e,t),a=n?t:o(t,e);r.length&&this.updateHoverStyle(r,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,r=e,a=this._getActiveElements(t,i,n,r),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,d(o.onHover,[t,a,this],this),s&&d(o.onClick,[t,a,this],this));const c=!p(a,i);return(c||e)&&(this._active=a,this._updateHoverStyles(a,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const Co=()=>f(So.instances,t=>t._plugins.invalidate()),Do=!0;function Ao(t,e,n){const{startAngle:i,pixelMargin:o,x:r,y:a,outerRadius:s,innerRadius:l}=e;let c=o/s;t.beginPath(),t.arc(r,a,s,i-c,n+c),l>o?(c=o/l,t.arc(r,a,l,n+c,i-c,!0)):t.arc(r,a,o,n+O,i-O),t.closePath(),t.clip()}function Mo(t,e,n,i){const o=be(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(n-e)/2,a=Math.min(r,i*e/2),s=t=>{const e=(n-Math.min(r,t))*i/2;return G(t,0,Math.min(r,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:G(o.innerStart,0,a),innerEnd:G(o.innerEnd,0,a)}}function Po(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Oo(t,e,n,i,o,r){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=e,h=Math.max(e.outerRadius+i+n-c,0),d=u>0?u+i+n+c:0;let f=0;const p=o-l;if(i){const t=((u>0?u-i:0)+(h>0?h-i:0))/2;f=(p-(0!==t?p*t/(t+i):p))/2}const m=(p-Math.max(.001,p*h-n/C)/h)/2,g=l+m+f,v=o-m-f,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:w}=Mo(e,d,h,v-g),_=h-y,k=h-b,E=g+y/_,T=v-b/k,S=d+x,D=d+w,A=g+x/S,M=v-w/D;if(t.beginPath(),r){if(t.arc(a,s,h,E,T),b>0){const e=Po(k,T,a,s);t.arc(e.x,e.y,b,T,v+O)}const e=Po(D,v,a,s);if(t.lineTo(e.x,e.y),w>0){const e=Po(D,M,a,s);t.arc(e.x,e.y,w,v+O,M+Math.PI)}if(t.arc(a,s,d,v-w/d,g+x/d,!0),x>0){const e=Po(S,A,a,s);t.arc(e.x,e.y,x,A+Math.PI,g-O)}const n=Po(_,g,a,s);if(t.lineTo(n.x,n.y),y>0){const e=Po(_,E,a,s);t.arc(e.x,e.y,y,g-O,E)}}else{t.moveTo(a,s);const e=Math.cos(E)*h+a,n=Math.sin(E)*h+s;t.lineTo(e,n);const i=Math.cos(T)*h+a,o=Math.sin(T)*h+s;t.lineTo(i,o)}t.closePath()}function Lo(t,e,n,i,o,r){const{options:a}=e,{borderWidth:s,borderJoinStyle:l}=a,c="inner"===a.borderAlign;s&&(c?(t.lineWidth=2*s,t.lineJoin=l||"round"):(t.lineWidth=s,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:r,pixelMargin:a,fullCircles:s}=e,l=Math.max(e.outerRadius-a,0),c=e.innerRadius+a;let u;for(n&&Ao(t,e,r+D),t.beginPath(),t.arc(i,o,c,r+D,r,!0),u=0;u<s;++u)t.stroke();for(t.beginPath(),t.arc(i,o,l,r,r+D),u=0;u<s;++u)t.stroke()}(t,e,c),c&&Ao(t,e,o),Oo(t,e,n,i,o,r),t.stroke())}Object.defineProperties(So,{defaults:{enumerable:Do,value:te},instances:{enumerable:Do,value:ko},overrides:{enumerable:Do,value:Zt},registry:{enumerable:Do,value:fi},version:{enumerable:Do,value:"3.9.1"},getChart:{enumerable:Do,value:Eo},register:{enumerable:Do,value:(...t)=>{fi.add(...t),Co()}},unregister:{enumerable:Do,value:(...t)=>{fi.remove(...t),Co()}}});class Io extends ti{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.getProps(["x","y"],n),{angle:o,distance:r}=V(i,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=this.options.spacing/2,f=u(h,s-a)>=D||X(o,a,s),p=Z(r,l+d,c+d);return f&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:r,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:s,spacing:l}=this.options,c=(i+o)/2,u=(r+a+l+s)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>D?Math.floor(n/D):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(i){a=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*a,Math.sin(e)*a),this.circumference>=C&&(a=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const s=function(t,e,n,i,o){const{fullCircles:r,startAngle:a,circumference:s}=e;let l=e.endAngle;if(r){Oo(t,e,n,i,a+D,o);for(let e=0;e<r;++e)t.fill();isNaN(s)||(l=a+s%D,s%D===0&&(l+=D))}return Oo(t,e,n,i,l,o),t.fill(),l}(t,this,a,o,r);Lo(t,this,a,o,s,r),t.restore()}}function Ro(t,e,n=e){t.lineCap=u(n.borderCapStyle,e.borderCapStyle),t.setLineDash(u(n.borderDash,e.borderDash)),t.lineDashOffset=u(n.borderDashOffset,e.borderDashOffset),t.lineJoin=u(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=u(n.borderWidth,e.borderWidth),t.strokeStyle=u(n.borderColor,e.borderColor)}function $o(t,e,n){t.lineTo(n.x,n.y)}function jo(t,e,n={}){const i=t.length,{start:o=0,end:r=i-1}=n,{start:a,end:s}=e,l=Math.max(o,a),c=Math.min(r,s),u=o<a&&r<a||o>s&&r>s;return{count:i,start:l,loop:e.loop,ilen:c<l&&!u?i+c-l:c-l}}function Fo(t,e,n,i){const{points:o,options:r}=e,{count:a,start:s,loop:l,ilen:c}=jo(o,n,i),u=function(t){return t.stepped?ue:t.tension||"monotone"===t.cubicInterpolationMode?he:$o}(r);let h,d,f,{move:p=!0,reverse:m}=i||{};for(h=0;h<=c;++h)d=o[(s+(m?c-h:h))%a],d.skip||(p?(t.moveTo(d.x,d.y),p=!1):u(t,f,d,m,r.stepped),f=d);return l&&(d=o[(s+(m?c:0))%a],u(t,f,d,m,r.stepped)),!!l}function No(t,e,n,i){const o=e.points,{count:r,start:a,ilen:s}=jo(o,n,i),{move:l=!0,reverse:c}=i||{};let u,h,d,f,p,m,g=0,v=0;const y=t=>(a+(c?s-t:t))%r,b=()=>{f!==p&&(t.lineTo(g,p),t.lineTo(g,f),t.lineTo(g,m))};for(l&&(h=o[y(0)],t.moveTo(h.x,h.y)),u=0;u<=s;++u){if(h=o[y(u)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===d?(n<f?f=n:n>p&&(p=n),g=(v*g+e)/++v):(b(),t.lineTo(e,n),d=i,v=0,f=p=n),m=n}b()}function Bo(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?No:Fo}Io.id="arc",Io.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Io.defaultRoutes={backgroundColor:"backgroundColor"};const zo="function"==typeof Path2D;function Wo(t,e,n,i){zo&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Ro(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:r}=e,a=Bo(e);for(const s of o)Ro(t,r,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}class Ho extends ti{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;qe(this._points,n,t,i,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const r=!!t._loop,{start:a,end:s}=function(t,e,n,i){let o=0,r=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(r+=o);r>o&&t[r%e].skip;)r--;return r%=e,{start:o,end:r}}(n,o,r,i);return yn(t,!0===i?[{start:a,end:s,loop:r}]:function(t,e,n,i){const o=t.length,r=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%o];n.skip||n.stop?l.skip||(i=!1,r.push({start:e%o,end:(a-1)%o,loop:i}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&r.push({start:e%o,end:s%o,loop:i}),r}(n,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,r=vn(this,{property:e,start:i,end:i});if(!r.length)return;const a=[],s=function(t){return t.stepped?sn:t.tension||"monotone"===t.cubicInterpolationMode?ln:an}(n);let l,c;for(l=0,c=r.length;l<c;++l){const{start:c,end:u}=r[l],h=o[c],d=o[u];if(h===d){a.push(h);continue}const f=s(h,d,Math.abs((i-h[e])/(d[e]-h[e])),n.stepped);f[e]=t[e],a.push(f)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return Bo(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Bo(this);let r=this._loop;e=e||0,n=n||this.points.length-e;for(const a of i)r&=o(t,this,a,{start:e,end:e+n-1});return!!r}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Wo(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Vo(t,e,n,i){const o=t.options,{[n]:r}=t.getProps([n],i);return Math.abs(e-r)<o.radius+o.hitRadius}Ho.id="line",Ho.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Ho.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Ho.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Uo extends ti{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:o,y:r}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Vo(this,t,"x",e)}inYRange(t,e){return Vo(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!se(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,re(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function qo(t,e){const{x:n,y:i,base:o,width:r,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,h;return t.horizontal?(h=a/2,s=Math.min(n,o),l=Math.max(n,o),c=i-h,u=i+h):(h=r/2,s=n-h,l=n+h,c=Math.min(i,o),u=Math.max(i,o)),{left:s,top:c,right:l,bottom:u}}function Yo(t,e,n,i){return t?0:G(e,n,i)}function Xo(t){const e=qo(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,r=xe(i);return{t:Yo(o.top,r.top,0,n),r:Yo(o.right,r.right,0,e),b:Yo(o.bottom,r.bottom,0,n),l:Yo(o.left,r.left,0,e)}}(t,n/2,i/2),r=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,r=we(o),a=Math.min(e,n),l=t.borderSkipped,c=i||s(o);return{topLeft:Yo(!c||l.top||l.left,r.topLeft,0,a),topRight:Yo(!c||l.top||l.right,r.topRight,0,a),bottomLeft:Yo(!c||l.bottom||l.left,r.bottomLeft,0,a),bottomRight:Yo(!c||l.bottom||l.right,r.bottomRight,0,a)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:r},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,r.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(o.b,o.r))}}}}function Go(t,e,n,i){const o=null===e,r=null===n,a=t&&!(o&&r)&&qo(t,i);return a&&(o||Z(e,a.left,a.right))&&(r||Z(n,a.top,a.bottom))}function Zo(t,e){t.rect(e.x,e.y,e.w,e.h)}function Jo(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-i,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+r,h:t.h+a,radius:t.radius}}Uo.id="point",Uo.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Uo.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Qo extends ti{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:o,outer:r}=Xo(this),a=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?pe:Zo;var s;t.save(),r.w===o.w&&r.h===o.h||(t.beginPath(),a(t,Jo(r,e,o)),t.clip(),a(t,Jo(o,-e,r)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,Jo(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Go(this,t,e,n)}inXRange(t,e){return Go(this,t,null,e)}inYRange(t,e){return Go(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Qo.id="bar",Qo.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Qo.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Ko=Object.freeze({__proto__:null,ArcElement:Io,LineElement:Ho,PointElement:Uo,BarElement:Qo});function tr(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function er(t){t.data.datasets.forEach(t=>{tr(t)})}var nr={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void er(t);const i=t.width;t.data.datasets.forEach((e,o)=>{const{_data:a,indexAxis:s}=e,l=t.getDatasetMeta(o),c=a||e.data;if("y"===Ee([s,t.options.indexAxis]))return;if(!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type)return;if(t.options.parsing)return;let{start:h,count:d}=function(t,e){const n=e.length;let i,o=0;const{iScale:r}=t,{min:a,max:s,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(o=G(Q(e,r.axis,a).lo,0,n-1)),i=c?G(Q(e,r.axis,s).hi+1,o,n)-o:n-o,{start:o,count:i}}(l,c);if(d<=(n.threshold||4*i))return void tr(e);let f;switch(r(a)&&(e._data=c,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":f=function(t,e,n,i,o){const r=o.samples||i;if(r>=n)return t.slice(e,e+n);const a=[],s=(n-2)/(r-2);let l=0;const c=e+n-1;let u,h,d,f,p,m=e;for(a[l++]=t[m],u=0;u<r-2;u++){let i,o=0,r=0;const c=Math.floor((u+1)*s)+1+e,g=Math.min(Math.floor((u+2)*s)+1,n)+e,v=g-c;for(i=c;i<g;i++)o+=t[i].x,r+=t[i].y;o/=v,r/=v;const y=Math.floor(u*s)+1+e,b=Math.min(Math.floor((u+1)*s)+1,n)+e,{x,y:w}=t[m];for(d=f=-1,i=y;i<b;i++)f=.5*Math.abs((x-o)*(t[i].y-w)-(x-t[i].x)*(r-w)),f>d&&(d=f,h=t[i],p=i);a[l++]=h,m=p}return a[l++]=t[c],a}(c,h,d,i,n);break;case"min-max":f=function(t,e,n,i){let o,a,s,l,c,u,h,d,f,p,m=0,g=0;const v=[],y=e+n-1,b=t[e].x,x=t[y].x-b;for(o=e;o<e+n;++o){a=t[o],s=(a.x-b)/x*i,l=a.y;const e=0|s;if(e===c)l<f?(f=l,u=o):l>p&&(p=l,h=o),m=(g*m+a.x)/++g;else{const n=o-1;if(!r(u)&&!r(h)){const e=Math.min(u,h),i=Math.max(u,h);e!==d&&e!==n&&v.push({...t[e],x:m}),i!==d&&i!==n&&v.push({...t[i],x:m})}o>0&&n!==d&&v.push(t[n]),v.push(a),c=e,g=0,f=p=l,u=h=d=o}}return v}(c,h,d,i);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=f})},destroy(t){er(t)}};function ir(t,e,n,i){if(i)return;let o=e[t],r=n[t];return"angle"===t&&(o=Y(o),r=Y(r)),{property:t,start:o,end:r}}function or(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function rr(t,e,n,i){return t&&e?i(t[n],e[n]):t?t[n]:e?e[n]:0}function ar(t,e){let n=[],i=!1;return a(t)?(i=!0,n=t):n=function(t,e){const{x:n=null,y:i=null}=t||{},o=e.points,r=[];return e.segments.forEach(({start:t,end:e})=>{e=or(t,e,o);const a=o[t],s=o[e];null!==i?(r.push({x:a.x,y:i}),r.push({x:s.x,y:i})):null!==n&&(r.push({x:n,y:a.y}),r.push({x:n,y:s.y}))}),r}(t,e),n.length?new Ho({points:n,options:{tension:0},_loop:i,_fullLoop:i}):null}function sr(t){return t&&!1!==t.fill}function lr(t,e,n){let i=t[e].fill;const o=[e];let r;if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!l(i))return i;if(r=t[i],!r)return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function cr(t,e,n){const i=function(t){const e=t.options,n=e.fill;let i=u(n&&n.target,n);void 0===i&&(i=!!e.backgroundColor);if(!1===i||null===i)return!1;if(!0===i)return"origin";return i}(t);if(s(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return l(o)&&Math.floor(o)===o?function(t,e,n,i){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=i)return!1;return n}(i[0],e,o,n):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function ur(t,e,n){const i=[];for(let o=0;o<n.length;o++){const r=n[o],{first:a,last:s,point:l}=hr(r,e,"x");if(!(!l||a&&s))if(a)i.unshift(l);else if(t.push(l),!s)break}t.push(...i)}function hr(t,e,n){const i=t.interpolate(e,n);if(!i)return{};const o=i[n],r=t.segments,a=t.points;let s=!1,l=!1;for(let t=0;t<r.length;t++){const e=r[t],i=a[e.start][n],c=a[e.end][n];if(Z(o,i,c)){s=o===i,l=o===c;break}}return{first:s,last:l,point:i}}class dr{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:i,y:o,radius:r}=this;return e=e||{start:0,end:D},t.arc(i,o,r,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:i}=this,o=t.angle;return{x:e+Math.cos(o)*i,y:n+Math.sin(o)*i,angle:o}}}function fr(t){const{chart:e,fill:n,line:i}=t;if(l(n))return function(t,e){const n=t.getDatasetMeta(e),i=n&&t.isDatasetVisible(e);return i?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:i}=t,o=[],r=i.segments,a=i.points,s=function(t,e){const n=[],i=t.getMatchingVisibleMetas("line");for(let t=0;t<i.length;t++){const o=i[t];if(o.index===e)break;o.hidden||n.unshift(o.dataset)}return n}(e,n);s.push(ar({x:null,y:e.bottom},i));for(let t=0;t<r.length;t++){const e=r[t];for(let t=e.start;t<=e.end;t++)ur(o,a[t],s)}return new Ho({points:o,options:{}})}(t);if("shape"===n)return!0;const o=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,i=e.options,o=e.getLabels().length,r=i.reverse?e.max:e.min,a=function(t,e,n){let i;return i="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:s(t)?t.value:e.getBaseValue(),i}(n,e,r),l=[];if(i.grid.circular){const t=e.getPointPositionForValue(0,r);return new dr({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<o;++t)l.push(e.getPointPositionForValue(t,a));return l}(t);return function(t){const{scale:e={},fill:n}=t,i=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:s(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(l(i)){const t=e.isHorizontal();return{x:t?i:null,y:t?null:i}}return null}(t)}(t);return o instanceof dr?o:ar(o,i)}function pr(t,e,n){const i=fr(e),{line:o,scale:r,axis:a}=e,s=o.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:h=c}=l||{};i&&o.points.length&&(le(t,n),function(t,e){const{line:n,target:i,above:o,below:r,area:a,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&r!==o&&(mr(t,i,a.top),gr(t,{line:n,target:i,color:o,scale:s,property:l}),t.restore(),t.save(),mr(t,i,a.bottom));gr(t,{line:n,target:i,color:r,scale:s,property:l}),t.restore()}(t,{line:o,target:i,above:u,below:h,area:n,scale:r,axis:a}),ce(t))}function mr(t,e,n){const{segments:i,points:o}=e;let r=!0,a=!1;t.beginPath();for(const s of i){const{start:i,end:l}=s,c=o[i],u=o[or(i,l,o)];r?(t.moveTo(c.x,c.y),r=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function gr(t,e){const{line:n,target:i,property:o,color:r,scale:a}=e,s=function(t,e,n){const i=t.segments,o=t.points,r=e.points,a=[];for(const t of i){let{start:i,end:s}=t;s=or(i,s,o);const l=ir(n,o[i],o[s],t.loop);if(!e.segments){a.push({source:t,target:l,start:o[i],end:o[s]});continue}const c=vn(e,l);for(const e of c){const i=ir(n,r[e.start],r[e.end],e.loop),s=gn(t,o,i);for(const t of s)a.push({source:t,target:e,start:{[n]:rr(l,i,"start",Math.max)},end:{[n]:rr(l,i,"end",Math.min)}})}}return a}(n,i,o);for(const{source:e,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=r}={}}=e,h=!0!==i;t.save(),t.fillStyle=s,vr(t,a,h&&ir(o,c,u)),t.beginPath();const d=!!n.pathSegment(t,e);let f;if(h){d?t.closePath():yr(t,i,u,o);const e=!!i.pathSegment(t,l,{move:d,reverse:!0});f=d&&e,f||yr(t,i,c,o)}t.closePath(),t.fill(f?"evenodd":"nonzero"),t.restore()}}function vr(t,e,n){const{top:i,bottom:o}=e.chart.chartArea,{property:r,start:a,end:s}=n||{};"x"===r&&(t.beginPath(),t.rect(a,i,s-a,o-i),t.clip())}function yr(t,e,n,i){const o=e.interpolate(n,i);o&&t.lineTo(o.x,o.y)}var br={id:"filler",afterDatasetsUpdate(t,e,n){const i=(t.data.datasets||[]).length,o=[];let r,a,s,l;for(a=0;a<i;++a)r=t.getDatasetMeta(a),s=r.dataset,l=null,s&&s.options&&s instanceof Ho&&(l={visible:t.isDatasetVisible(a),index:a,fill:cr(s,a,i),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:s}),r.$filler=l,o.push(l);for(a=0;a<i;++a)l=o[a],l&&!1!==l.fill&&(l.fill=lr(o,a,n.propagate))},beforeDraw(t,e,n){const i="beforeDraw"===n.drawTime,o=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let e=o.length-1;e>=0;--e){const n=o[e].$filler;n&&(n.line.updateControlPoints(r,n.axis),i&&n.fill&&pr(t.ctx,n,r))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;sr(n)&&pr(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const i=e.meta.$filler;sr(i)&&"beforeDatasetDraw"===n.drawTime&&pr(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const xr=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class wr extends ti{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=d(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,n)=>t.sort(e,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,i=ke(n.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=xr(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,o,a,s)+10):(c=this.maxHeight,l=this._fitCols(r,o,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+a;let u=t;o.textAlign="left",o.textBaseline="middle";let h=-1,d=-c;return this.legendItems.forEach((t,f)=>{const p=n+e/2+o.measureText(t.text).width;(0===f||l[l.length-1]+p+2*a>r)&&(u+=c,l[l.length-(f>0?0:1)]=0,d+=c,h++),s[f]={left:0,top:d,row:h,width:p,height:i},l[l.length-1]+=p+a}),u}_fitCols(t,e,n,i){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-t;let u=a,h=0,d=0,f=0,p=0;return this.legendItems.forEach((t,r)=>{const m=n+e/2+o.measureText(t.text).width;r>0&&d+i+2*a>c&&(u+=h+a,l.push({width:h,height:d}),f+=h+a,p++,h=d=0),s[r]={left:f,top:d,col:p,width:m,height:i},h=Math.max(h,m),d+=i+a}),u+=h,l.push({width:h,height:d}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,r=hn(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=at(n,this.left+i,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=at(n,this.left+i,this.right-this.lineWidths[o])),s.top+=this.top+t+i,s.left=r.leftForLtr(r.x(a),s.width),a+=s.width+i}else{let o=0,a=at(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=at(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+i,s.left=r.leftForLtr(r.x(s.left),s.width),a+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;le(t,this),this._draw(),ce(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:r}=t,a=te.color,s=hn(t.rtl,this.left,this.width),l=ke(r.font),{color:c,padding:h}=r,d=l.size,f=d/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:m,boxHeight:g,itemHeight:v}=xr(r,d),y=this.isHorizontal(),b=this._computeTitleHeight();p=y?{x:at(o,this.left+h,this.right-n[0]),y:this.top+h+b,line:0}:{x:this.left+h,y:at(o,this.top+b+h,this.bottom-e[0].height),line:0},dn(this.ctx,t.textDirection);const x=v+h;this.legendItems.forEach((w,_)=>{i.strokeStyle=w.fontColor||c,i.fillStyle=w.fontColor||c;const k=i.measureText(w.text).width,E=s.textAlign(w.textAlign||(w.textAlign=r.textAlign)),T=m+f+k;let S=p.x,C=p.y;s.setWidth(this.width),y?_>0&&S+T+h>this.right&&(C=p.y+=x,p.line++,S=p.x=at(o,this.left+h,this.right-n[p.line])):_>0&&C+x>this.bottom&&(S=p.x=S+e[p.line].width+h,p.line++,C=p.y=at(o,this.top+b+h,this.bottom-e[p.line].height));!function(t,e,n){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;i.save();const o=u(n.lineWidth,1);if(i.fillStyle=u(n.fillStyle,a),i.lineCap=u(n.lineCap,"butt"),i.lineDashOffset=u(n.lineDashOffset,0),i.lineJoin=u(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=u(n.strokeStyle,a),i.setLineDash(u(n.lineDash,[])),r.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=s.xPlus(t,m/2);ae(i,a,l,e+f,r.pointStyleWidth&&m)}else{const r=e+Math.max((d-g)/2,0),a=s.leftForLtr(t,m),l=we(n.borderRadius);i.beginPath(),Object.values(l).some(t=>0!==t)?pe(i,{x:a,y:r,w:m,h:g,radius:l}):i.rect(a,r,m,g),i.fill(),0!==o&&i.stroke()}i.restore()}(s.x(S),C,w),S=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(E,S+m+f,y?S+T:this.right,t.rtl),function(t,e,n){de(i,n.text,t,e+v/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(S),C,w),y?p.x+=T+h:p.y+=x}),fn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=ke(e.font),i=_e(e.padding);if(!e.display)return;const o=hn(t.rtl,this.left,this.width),r=this.ctx,a=e.position,s=n.size/2,l=i.top+s;let c,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,u=at(t.align,u,this.right-h);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+at(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=at(a,u,u+h);r.textAlign=o.textAlign(rt(a)),r.textBaseline="middle",r.strokeStyle=e.color,r.fillStyle=e.color,r.font=n.string,de(r,e.text,d,c,n)}_computeTitleHeight(){const t=this.options.title,e=ke(t.font),n=_e(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(Z(t,this.left,this.right)&&Z(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],Z(t,i.left,i.left+i.width)&&Z(e,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,a=(o=n,null!==(i=r)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);r&&!a&&d(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&d(e.onHover,[t,n,this],this)}else n&&d(e.onClick,[t,n,this],this);var i,o}}var _r={id:"legend",_element:wr,start(t,e,n){const i=t.legend=new wr({ctx:t.ctx,options:n,chart:t});Fi.configure(t,i,n),Fi.addBox(t,i)},stop(t){Fi.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Fi.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:r}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const a=t.controller.getStyle(n?0:void 0),s=_e(a.borderWidth);return{text:e[t.index].label,fillStyle:a.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:a.borderColor,pointStyle:i||a.pointStyle,rotation:a.rotation,textAlign:o||a.textAlign,borderRadius:0,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 kr extends ti{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=a(n.text)?n.text.length:1;this._padding=_e(n.padding);const o=i*ke(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:o,options:r}=this,a=r.align;let s,l,c,u=0;return this.isHorizontal()?(l=at(a,n,o),c=e+t,s=o-n):("left"===r.position?(l=n+t,c=at(a,i,e),u=-.5*C):(l=o-t,c=at(a,e,i),u=.5*C),s=i-e),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=ke(e.font),i=n.lineHeight/2+this._padding.top,{titleX:o,titleY:r,maxWidth:a,rotation:s}=this._drawArgs(i);de(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:s,textAlign:rt(e.align),textBaseline:"middle",translation:[o,r]})}}var Er={id:"title",_element:kr,start(t,e,n){!function(t,e){const n=new kr({ctx:t.ctx,options:e,chart:t});Fi.configure(t,n,e),Fi.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;Fi.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;Fi.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Tr=new WeakMap;var Sr={id:"subtitle",start(t,e,n){const i=new kr({ctx:t.ctx,options:n,chart:t});Fi.configure(t,i,n),Fi.addBox(t,i),Tr.set(t,i)},stop(t){Fi.removeBox(t,Tr.get(t)),Tr.delete(t)},beforeUpdate(t,e,n){const i=Tr.get(t);Fi.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Cr={average(t){if(!t.length)return!1;let e,n,i=0,o=0,r=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++r}}return{x:i/r,y:o/r}},nearest(t,e){if(!t.length)return!1;let n,i,o,r=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=U(e,i.getCenterPoint());t<s&&(s=t,o=i)}}if(o){const t=o.tooltipPosition();r=t.x,a=t.y}return{x:r,y:a}}};function Dr(t,e){return e&&(a(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ar(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Mr(t,e){const{element:n,datasetIndex:i,index:o}=e,r=t.getDatasetMeta(i).controller,{label:a,value:s}=r.getLabelAndValue(o);return{chart:t,label:a,parsed:r.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:s,dataset:r.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function Pr(t,e){const n=t.chart.ctx,{body:i,footer:o,title:r}=t,{boxWidth:a,boxHeight:s}=e,l=ke(e.bodyFont),c=ke(e.titleFont),u=ke(e.footerFont),h=r.length,d=o.length,p=i.length,m=_e(e.padding);let g=m.height,v=0,y=i.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),y){g+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(y-p)*l.lineHeight+(y-1)*e.bodySpacing}d&&(g+=e.footerMarginTop+d*u.lineHeight+(d-1)*e.footerSpacing);let b=0;const x=function(t){v=Math.max(v,n.measureText(t).width+b)};return n.save(),n.font=c.string,f(t.title,x),n.font=l.string,f(t.beforeBody.concat(t.afterBody),x),b=e.displayColors?a+2+e.boxPadding:0,f(i,t=>{f(t.before,x),f(t.lines,x),f(t.after,x)}),b=0,n.font=u.string,f(t.footer,x),n.restore(),v+=m.width,{width:v,height:g}}function Or(t,e,n,i){const{x:o,width:r}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return"center"===i?c=o<=(s+l)/2?"left":"right":o<=r/2?c="left":o>=a-r/2&&(c="right"),function(t,e,n,i){const{x:o,width:r}=i,a=n.caretSize+n.caretPadding;return"left"===t&&o+r+a>e.width||"right"===t&&o-r-a<0||void 0}(c,t,e,n)&&(c="center"),c}function Lr(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Or(t,e,n,i),yAlign:i}}function Ir(t,e,n,i){const{caretSize:o,caretPadding:r,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=o+r,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=we(a);let p=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,s);const m=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,d)+o:"right"===s&&(p+=Math.max(h,f)+o),{x:G(p,0,i.width-e.width),y:G(m,0,i.height-e.height)}}function Rr(t,e,n){const i=_e(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function $r(t){return Dr([],Ar(t))}function jr(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class Fr extends ti{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||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new Sn(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,Te(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),r=n.afterTitle.apply(this,[t]);let a=[];return a=Dr(a,Ar(i)),a=Dr(a,Ar(o)),a=Dr(a,Ar(r)),a}getBeforeBody(t,e){return $r(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return f(t,t=>{const e={before:[],lines:[],after:[]},o=jr(n,t);Dr(e.before,Ar(o.beforeLabel.call(this,t))),Dr(e.lines,o.label.call(this,t)),Dr(e.after,Ar(o.afterLabel.call(this,t))),i.push(e)}),i}getAfterBody(t,e){return $r(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),r=n.afterFooter.apply(this,[t]);let a=[];return a=Dr(a,Ar(i)),a=Dr(a,Ar(o)),a=Dr(a,Ar(r)),a}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],r=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(Mr(this.chart,e[a]));return t.filter&&(l=l.filter((e,i,o)=>t.filter(e,i,o,n))),t.itemSort&&(l=l.sort((e,i)=>t.itemSort(e,i,n))),f(l,e=>{const n=jr(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),r.push(n.labelTextColor.call(this,e))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,r=[];if(i.length){const t=Cr[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const e=this._size=Pr(this,n),a=Object.assign({},t,e),s=Lr(this.chart,n,a),l=Ir(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=we(a),{x:h,y:d}=t,{width:f,height:p}=e;let m,g,v,y,b,x;return"center"===o?(b=d+p/2,"left"===i?(m=h,g=m-r,y=b+r,x=b-r):(m=h+f,g=m+r,y=b-r,x=b+r),v=m):(g="left"===i?h+Math.max(s,c)+r:"right"===i?h+f-Math.max(l,u)-r:this.caretX,"top"===o?(y=d,b=y-r,m=g-r,v=g+r):(y=d+p,b=y+r,m=g+r,v=g-r),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(t,e,n){const i=this.title,o=i.length;let r,a,s;if(o){const l=hn(n.rtl,this.x,this.width);for(t.x=Rr(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",r=ke(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=r.string,s=0;s<o;++s)e.fillText(i[s],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,s+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,i,o){const r=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:l,boxWidth:c,boxPadding:u}=o,h=ke(o.bodyFont),d=Rr(this,"left",o),f=i.x(d),p=l<h.lineHeight?(h.lineHeight-l)/2:0,m=e.y+p;if(o.usePointStyle){const e={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=i.leftForLtr(f,c)+c/2,s=m+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,re(t,e,n,s),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,re(t,e,n,s)}else{t.lineWidth=s(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const e=i.leftForLtr(f,c-u),n=i.leftForLtr(i.xPlus(f,1),c-u-2),a=we(r.borderRadius);Object.values(a).some(t=>0!==t)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,pe(t,{x:e,y:m,w:c,h:l,radius:a}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),pe(t,{x:n,y:m+1,w:c-2,h:l-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,m,c,l),t.strokeRect(e,m,c,l),t.fillStyle=r.backgroundColor,t.fillRect(n,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=ke(n.bodyFont);let h=u.lineHeight,d=0;const p=hn(n.rtl,this.x,this.width),m=function(n){e.fillText(n,p.x(t.x+d),t.y+h/2),t.y+=h+o},g=p.textAlign(r);let v,y,b,x,w,_,k;for(e.textAlign=r,e.textBaseline="middle",e.font=u.string,t.x=Rr(this,g,n),e.fillStyle=n.bodyColor,f(this.beforeBody,m),d=a&&"right"!==g?"center"===r?l/2+c:l+2+c:0,x=0,_=i.length;x<_;++x){for(v=i[x],y=this.labelTextColors[x],e.fillStyle=y,f(v.before,m),b=v.lines,a&&b.length&&(this._drawColorBox(e,t,x,p,n),h=Math.max(u.lineHeight,s)),w=0,k=b.length;w<k;++w)m(b[w]),h=u.lineHeight;f(v.after,m)}d=0,h=u.lineHeight,f(this.afterBody,m),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let r,a;if(o){const s=hn(n.rtl,this.x,this.width);for(t.x=Rr(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",r=ke(n.footerFont),e.fillStyle=n.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(i[a],s.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:r}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:f}=we(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+l-h,s),e.quadraticCurveTo(a+l,s,a+l,s+h),"center"===r&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(a+l,s+c-f),e.quadraticCurveTo(a+l,s+c,a+l-f,s+c),"bottom"===r&&this.drawCaret(t,e,n,i),e.lineTo(a+d,s+c),e.quadraticCurveTo(a,s+c,a,s+c-d),"center"===r&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=Cr[t.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=Pr(this,t),a=Object.assign({},n,this._size),s=Lr(e,t,a),l=Ir(t,a,s,e);i._to===l.x&&o._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=_e(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),dn(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),fn(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map(({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}),o=!p(n,i),r=this._positionChanged(i,e);(o||r)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,n),a=this._positionChanged(r,t),s=e||!p(r,o)||a;return s&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const r=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&r.reverse(),r}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,r=Cr[o.position].call(this,t,e);return!1!==r&&(n!==r.x||i!==r.y)}}Fr.positioners=Cr;var Nr={id:"tooltip",_element:Fr,positioners:Cr,afterInit(t,e,n){n&&(t.tooltip=new Fr({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:i,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:i,beforeBody:i,beforeLabel:i,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return r(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:i,afterBody:i,beforeFooter:i,footer:i,afterFooter:i}},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"]},Br=Object.freeze({__proto__:null,Decimation:nr,Filler:br,Legend:_r,SubTitle:Sr,Title:Er,Tooltip:Nr});function zr(t,e,n,i){const o=t.indexOf(e);if(-1===o)return((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i);return o!==t.lastIndexOf(e)?n:o}class Wr extends hi{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(r(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:G(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:zr(n,t,u(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]: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 Hr(t,e){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:h,includeBounds:d}=t,f=o||1,p=u-1,{min:m,max:g}=e,v=!r(a),y=!r(s),b=!r(c),x=(g-m)/(h+1);let w,_,k,E,T=j((g-m)/p/f)*f;if(T<1e-14&&!v&&!y)return[{value:m},{value:g}];E=Math.ceil(g/T)-Math.floor(m/T),E>p&&(T=j(E*T/p/f)*f),r(l)||(w=Math.pow(10,l),T=Math.ceil(T*w)/w),"ticks"===i?(_=Math.floor(m/T)*T,k=Math.ceil(g/T)*T):(_=m,k=g),v&&y&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((s-a)/o,T/1e3)?(E=Math.round(Math.min((s-a)/T,u)),T=(s-a)/E,_=a,k=s):b?(_=v?a:_,k=y?s:k,E=c-1,T=(k-_)/E):(E=(k-_)/T,E=N(E,Math.round(E),T/1e3)?Math.round(E):Math.ceil(E));const S=Math.max(H(T),H(_));w=Math.pow(10,r(l)?S:l),_=Math.round(_*w)/w,k=Math.round(k*w)/w;let C=0;for(v&&(d&&_!==a?(n.push({value:a}),_<a&&C++,N(Math.round((_+C*T)*w)/w,a,Vr(a,x,t))&&C++):_<a&&C++);C<E;++C)n.push({value:Math.round((_+C*T)*w)/w});return y&&d&&k!==s?n.length&&N(n[n.length-1].value,s,Vr(s,x,t))?n[n.length-1].value=s:n.push({value:s}):y&&k!==s||n.push({value:k}),n}function Vr(t,e,{horizontal:n,minRotation:i}){const o=z(i),r=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/r,a)}Wr.id="category",Wr.defaults={ticks:{callback:Wr.prototype.getLabelForValue}};class Ur extends hi{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 r(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const r=t=>i=e?i:t,a=t=>o=n?o:t;if(t){const t=$(i),e=$(o);t<0&&e<0?a(0):t>0&&e>0&&r(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),a(o+e),t||r(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=Hr({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&B(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return un(t,this.chart.options.locale,this.options.ticks.format)}}class qr extends Ur{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=l(t)?t:0,this.max=l(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=z(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Yr(t){return 1===t/Math.pow(10,Math.floor(R(t)))}qr.id="linear",qr.defaults={ticks:{callback:ni.formatters.numeric}};class Xr extends hi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=Ur.prototype.parse.apply(this,[t,e]);if(0!==n)return l(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=l(t)?Math.max(0,t):null,this.max=l(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,r=t=>i=e?i:t,a=(t,e)=>Math.pow(10,Math.floor(R(t))+e);n===i&&(n<=0?(o(1),r(10)):(o(a(n,-1)),r(a(i,1)))),n<=0&&o(a(i,-1)),i<=0&&r(a(n,1)),this._zero&&this.min!==this._suggestedMin&&n===a(this.min,0)&&o(a(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(R(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let r=c(t.min,Math.pow(10,Math.floor(R(e.min)))),a=Math.floor(R(r)),s=Math.floor(r/Math.pow(10,a)),l=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:r,major:Yr(r)}),++s,10===s&&(s=1,++a,l=a>=0?1:l),r=Math.round(s*Math.pow(10,a)*l)/l}while(a<n||a===n&&s<i);const u=c(t.max,r);return o.push({value:u,major:Yr(r)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&B(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":un(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=R(t),this._valueRange=R(this.max)-R(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(R(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Gr(t){const e=t.ticks;if(e.display&&t.display){const t=_e(e.backdropPadding);return u(e.font&&e.font.size,te.font.size)+t.height}return 0}function Zr(t,e,n){return n=a(n)?n:[n],{w:ne(t,e.string,n),h:n.length*e.lineHeight}}function Jr(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function Qr(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),i=[],o=[],r=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?C/r:0;for(let l=0;l<r;l++){const r=a.setContext(t.getPointLabelContext(l));o[l]=r.padding;const c=t.getPointPosition(l,t.drawingArea+o[l],s),u=ke(r.font),h=Zr(t.ctx,u,t._pointLabels[l]);i[l]=h;const d=Y(t.getIndexAngle(l)+s),f=Math.round(W(d));Kr(n,e,d,Jr(f,c.x,h.w,0,180),Jr(f,c.y,h.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,r=t.options,a=Gr(r)/2,s=t.drawingArea,l=r.pointLabels.centerPointLabels?C/o:0;for(let r=0;r<o;r++){const o=t.getPointPosition(r,s+a+n[r],l),c=Math.round(W(Y(o.angle+O))),u=e[r],h=na(o.y,u.h,c),d=ta(c),f=ea(o.x,u.w,d);i.push({x:o.x,y:h,textAlign:d,left:f,top:h,right:f+u.w,bottom:h+u.h})}return i}(t,i,o)}function Kr(t,e,n,i,o){const r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;i.start<e.l?(s=(e.l-i.start)/r,t.l=Math.min(t.l,e.l-s)):i.end>e.r&&(s=(i.end-e.r)/r,t.r=Math.max(t.r,e.r+s)),o.start<e.t?(l=(e.t-o.start)/a,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function ta(t){return 0===t||180===t?"center":t<180?"left":"right"}function ea(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function na(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function ia(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,D);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let r=1;r<i;r++)n=t.getPointPosition(r,e),o.lineTo(n.x,n.y)}}Xr.id="logarithmic",Xr.defaults={ticks:{callback:ni.formatters.logarithmic,major:{enabled:!0}}};class oa extends Ur{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=_e(Gr(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=l(t)&&!isNaN(t)?t:0,this.max=l(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Gr(this.options))}generateTickLabels(t){Ur.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const n=d(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?Qr(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return Y(t*(D/(this._pointLabels.length||1))+z(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(r(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(r(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return Te(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-O+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),ia(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let a,s,l;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=ke(e.font),{x:s,y:l,textAlign:c,left:u,top:h,right:d,bottom:f}=t._pointLabelItems[o],{backdropColor:p}=e;if(!r(p)){const t=we(e.borderRadius),i=_e(e.backdropPadding);n.fillStyle=p;const o=u-i.left,r=h-i.top,a=d-u+i.width,s=f-h+i.height;Object.values(t).some(t=>0!==t)?(n.beginPath(),pe(n,{x:o,y:r,w:a,h:s,radius:t}),n.fill()):n.fillRect(o,r,a,s)}de(n,t._pointLabels[o],s,l+a.lineHeight/2,a,{color:e.color,textAlign:c,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach((t,e)=>{if(0!==e){s=this.getDistanceFromCenterForValue(t.value);!function(t,e,n,i){const o=t.ctx,r=e.circular,{color:a,lineWidth:s}=e;!r&&!i||!a||!s||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=s,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),ia(t,n,r,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),s,o)}}),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:r}=i;r&&o&&(t.lineWidth=r,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,s=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((i,a)=>{if(0===a&&!e.reverse)return;const s=n.setContext(this.getContext(a)),l=ke(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=l.string,r=t.measureText(i.label).width,t.fillStyle=s.backdropColor;const e=_e(s.backdropPadding);t.fillRect(-r/2-e.left,-o-l.size/2-e.top,r+e.width,l.size+e.height)}de(t,i.label,0,-o,l,{color:s.color})}),t.restore()}drawTitle(){}}oa.id="radialLinear",oa.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ni.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},oa.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},oa.descriptors={angleLines:{_fallback:"grid"}};const ra={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}},aa=Object.keys(ra);function sa(t,e){return t-e}function la(t,e){if(r(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let s=e;return"function"==typeof i&&(s=i(s)),l(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!F(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function ca(t,e,n,i){const o=aa.length;for(let r=aa.indexOf(t);r<o-1;++r){const t=ra[aa[r]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return aa[r]}return aa[o-1]}function ua(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=J(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function ha(t,e,n){const i=[],o={},r=e.length;let a,s;for(a=0;a<r;++a)s=e[a],o[s]=a,i.push({value:s,major:!1});return 0!==r&&n?function(t,e,n,i){const o=t._adapter,r=+o.startOf(e[0].value,i),a=e[e.length-1].value;let s,l;for(s=r;s<=a;s=+o.add(s,1,i))l=n[s],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class da extends hi{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const n=t.time||(t.time={}),i=this._adapter=new yi._date(t.adapters.date);i.init(e),b(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:la(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function s(t){r||isNaN(t.min)||(i=Math.min(i,t.min)),a||isNaN(t.max)||(o=Math.max(o,t.max))}r&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),i=l(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=l(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,r=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?ca(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let r=aa.length-1;r>=aa.indexOf(n);r--){const n=aa[r];if(ra[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return aa[n?aa.indexOf(n):0]}(this,r.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=aa.indexOf(t)+1,n=aa.length;e<n;++e)if(ra[aa[e]].common)return aa[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&r.reverse(),ha(this,r,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;i=G(i,0,r),o=G(o,0,r),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,r=o.unit||ca(o.minUnit,e,n,this._getLabelCapacity(e)),a=u(o.stepSize,1),s="week"===r&&o.isoWeekday,l=F(s)||!0===s,c={};let h,d,f=e;if(l&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,l?"day":r),t.diff(n,e,r)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+r);const p="data"===i.ticks.source&&this.getDataTimestamps();for(h=f,d=0;h<n;h=+t.add(h,a,r),d++)ua(c,h,p);return h!==n&&"ticks"!==i.bounds&&1!==d||ua(c,h,p),Object.keys(c).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,r=o.time.displayFormats,a=this._unit,s=this._majorUnit,l=a&&r[a],c=s&&r[s],u=n[e],h=s&&c&&u&&u.major,f=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?d(p,[f,e,n],this):f}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=z(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),r=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:n*o+a*r,h:n*r+a*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,ha(this,[t],this._majorUnit),i),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(la(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return nt(t.sort(sa))}}function fa(t,e,n){let i,o,r,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=Q(t,"pos",e)),({pos:i,time:r}=t[s]),({pos:o,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=Q(t,"time",e)),({time:i,pos:r}=t[s]),({time:o,pos:a}=t[l]));const c=o-i;return c?r+(a-r)*(e-i)/c:r}da.id="time",da.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class pa extends da{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=fa(e,this.min),this._tableRange=fa(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let r,a,s,l,c;for(r=0,a=t.length;r<a;++r)l=t[r],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(r=0,a=i.length;r<a;++r)c=i[r+1],s=i[r-1],l=i[r],Math.round((c+s)/2)!==l&&o.push({time:l,pos:r/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(fa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return fa(this._table,n*this._tableRange+this._minPos,!0)}}pa.id="timeseries",pa.defaults=da.defaults;const ma=[mi,Ko,Br,Object.freeze({__proto__:null,CategoryScale:Wr,LinearScale:qr,LogarithmicScale:Xr,RadialLinearScale:oa,TimeScale:da,TimeSeriesScale:pa})];So.register(...ma);const ga=So;var va=n(3573);function ya(t){var e=t.title,n=t.displayWidth,i=t.scale,o=void 0===i?2:i,r=t.ctx,a=t.fontRatio,s=void 0===a?.06:a,l=t.minFontSize,c=void 0===l?18:l,u=t.maxFontSize,h=void 0===u?45:u,d=t.leftPadding,f=void 0===d?0:d,p=t.topPadding,m=void 0===p?0:p,g=t.bottomSpacing,v=void 0===g?"default":g;if(!e)return{displayTitle:"",fontPx:0,fontDisplay:0,leftPx:0,topPx:0,bottomPx:0,totalHeightPx:0,totalHeightDisplay:0};var y,b=Math.min(Math.max(Math.round(n*s),c),h),x=b*o;y="compact"===v?Math.round(.3*x):"number"==typeof v?v*o:Math.round(.5*x);var w=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:12;if(!t)return{displayTitle:"",fontSize:n};var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(o||"undefined"!=typeof document&&"function"==typeof document.createElement&&(o=document.createElement("canvas").getContext("2d")),!o)return{displayTitle:t.length>20?t.substring(0,20)+"…":t,fontSize:i};var r=n;o.font="bold ".concat(r,"px sans-serif");var a=t,s=o.measureText(a).width;if(s>e)for(;a.length>0;){var l=(a=a.slice(0,-1))+"…";if((s=o.measureText(l).width)<=e){a=l;break}}for(o.font="bold ".concat(r,"px sans-serif"),s=o.measureText(a).width;s>e&&r>i;)r-=1,o.font="bold ".concat(r,"px sans-serif"),s=o.measureText(a).width;return{displayTitle:a,fontSize:r}}(e,Math.max(10,n-2*f)*o,x,c*o,r),_=m*o,k=_+x+y;return{displayTitle:w.displayTitle,fontPx:x,fontDisplay:b,leftPx:f*o,leftDisplay:f,topPx:_,topDisplay:m,bottomPx:y,bottomDisplay:y/o,totalHeightPx:k,totalHeightDisplay:k/o}}var ba=n.n(va)().drawCorrelationChart;function xa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!t.startsWith("#")){var n=document.createElement("canvas");n.width=n.height=1;var i=n.getContext("2d");i.fillStyle=t;var o=i.fillStyle;if(!o.startsWith("#"))return 1===e||t.includes("rgba")?t:t.replace("rgb","rgba").replace(")",", ".concat(e,")"));t=o}var r=parseInt(t.slice(1,3),16),a=parseInt(t.slice(3,5),16),s=parseInt(t.slice(5,7),16);return"rgba(".concat(r,", ").concat(a,", ").concat(s,", ").concat(e,")")}function wa(t,e){var n=document.getElementById(t);return n?(n.chart&&(n.chart.destroy(),n.chart=null),function(t,e){var n=t.parentElement,i=window.getComputedStyle(n),o=parseFloat(i.paddingLeft)||0,r=parseFloat(i.paddingRight)||0,a=n.clientWidth-o-r;if(a<=0)return;var s=Math.min(a,600),l=2*s;if(e.displayWidth=s,e.scale=2,t.style.width=s+"px",t.style.maxWidth="100%",t.style.height="auto","scatter"===e.chartType){var c=t.getContext("2d"),u=ya({title:e.title,displayWidth:s,scale:2,ctx:c});t.width=l,t.height=l+u.totalHeightPx}else if("table"===e.chartType){var h=e.title?1.1:1;t.width=l,t.height=l*h}else if("correlation"===e.chartType){var d=t.getContext("2d"),f=ya({title:e.title,displayWidth:s,scale:2,ctx:d,bottomSpacing:"compact"});t.width=l,t.height=l+f.totalHeightPx}else t.width=l,t.height=l/5*4;switch(e.chartType){case"scatter":return function(t,e){var n,i,o,r,a,s,l,c,u=t.getContext("2d"),h=t.width,d=t.height,f=function(t){var e=.022*h,n=Math.max(.4,1-.018*(t-10)),i=2*(Math.round(e*n*10)/10),o=Math.max(.02*h,16);return i=Math.max(i,o),i=Math.min(i,60)},p=(f(10),ya({title:e.title,displayWidth:e.displayWidth,scale:e.scale,ctx:u})),m=p.totalHeightPx,g=.02*h,v=function(t){if(!t)return 0;var e=Array.isArray(t)?t:[t];return f(e.length)},y=v(null===(n=e.labels)||void 0===n?void 0:n.left),b=v(null===(i=e.labels)||void 0===i?void 0:i.right),x=null!==(o=e.labels)&&void 0!==o&&o.top?Math.min(e.labels.top.length,30):0,w=null!==(r=e.labels)&&void 0!==r&&r.bottom?Math.min(e.labels.bottom.length,30):0,_=x>0?f(x):0,k=w>0?f(w):0,E=y>0?1.5*y:0,T=b>0?1.5*b:0,S=_>0?1.3*_:0,C=k>0?1.3*k:0,D=Math.max(g,Math.max(E,T)),A=Math.max(g,Math.max(S,C)),M=d-m,P=Math.min(h-2*D,M-2*A),O=D,L=m+A,I=O+P,R=L+P,$={x:O+P/2,y:L+P/2};u.fillStyle="white",u.fillRect(0,0,h,d),p.displayTitle&&(u.font="bold ".concat(p.fontPx,"px sans-serif"),u.fillStyle="#333333",u.textAlign="left",u.textBaseline="top",u.fillText(p.displayTitle,p.leftPx,p.topPx));u.strokeStyle="#AAA",u.lineWidth=.8,u.beginPath(),u.moveTo(O,$.y),u.lineTo(I,$.y),u.moveTo($.x,L),u.lineTo($.x,R),u.stroke(),u.fillStyle="#222";var j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return t.length>e?t.substring(0,e):t};if(null!==(a=e.labels)&&void 0!==a&&a.left){var F=Array.isArray(e.labels.left)?e.labels.left:[e.labels.left],N=F.length,B=f(N);u.font="".concat(B,"px sans-serif"),u.textAlign="center",u.textBaseline="middle";var z=O-.5*B,W=1.1*B,H=F.length*W,V=$.y-H/2+W/2;F.forEach(function(t,e){u.fillText(t,z,V+W*e)})}if(null!==(s=e.labels)&&void 0!==s&&s.right){var U=Array.isArray(e.labels.right)?e.labels.right:[e.labels.right],q=U.length,Y=f(q);u.font="".concat(Y,"px sans-serif"),u.textAlign="center",u.textBaseline="middle";var X=I+.5*Y,G=1.1*Y,Z=U.length*G,J=$.y-Z/2+G/2;U.forEach(function(t,e){u.fillText(t,X,J+G*e)})}if(null!==(l=e.labels)&&void 0!==l&&l.top){var Q=j(e.labels.top),K=Q.length,tt=f(K);u.font="".concat(tt,"px sans-serif"),u.textAlign="center",u.textBaseline="bottom";var et=.3*tt;u.fillText(Q,$.x,L-et)}if(null!==(c=e.labels)&&void 0!==c&&c.bottom){var nt=j(e.labels.bottom),it=nt.length,ot=f(it);u.font="".concat(ot,"px sans-serif"),u.textAlign="center",u.textBaseline="top";var rt=.3*ot;u.fillText(nt,$.x,R+rt)}var at=.033*e.displayWidth*e.scale,st=parseFloat(e.x)||0,lt=parseFloat(e.y)||0,ct=(st+100)/200,ut=(100-lt)/200,ht=Math.round(P*ct+O),dt=Math.round(P*ut+L),ft=e.color||"#ff6384";u.beginPath(),u.arc(ht,dt,at,0,2*Math.PI),u.fillStyle="#FFFFFF",u.fill(),u.beginPath(),u.arc(ht,dt,.85*at,0,2*Math.PI),u.fillStyle=ft,u.fill()}(t,e),null;case"table":return function(t,e){var n=t.getContext("2d"),i=t.width,o=t.height,r=ya({title:e.title,displayWidth:e.displayWidth,scale:e.scale,ctx:n}),a=r.totalHeightPx,s=2,l=o-a,c=Math.min(i-2*s,l-2*s),u=s,h=a+s;if(!e.data||!Array.isArray(e.data)||0===e.data.length)return n.fillStyle="#f8f9fa",n.fillRect(0,0,i,o),n.fillStyle="#dc3545",n.font="28px sans-serif",n.textAlign="center",n.textBaseline="middle",void n.fillText("テーブルデータがありません",i/2,o/2);var d=e.data.length,f=e.data[0]?e.data[0].length:0;if(0===d||0===f)return;var p=c/f,m=c/d,g=function(t,e){return t&&""!==t?"_randomColor_"===t||t.includes("${")?"#000000":/^#[0-9A-Fa-f]{3,8}$/.test(t)||/^rgb/.test(t)||/^[a-zA-Z]+$/.test(t)?t:"#000000":e},v=function(t,e,n){if(!t)return"";t=String(t).replace(/\[.*?\]/g,"");var i,o=Math.min(e,n);return i=o<60?10:o<100?15:o<200?20:30,t.length>i&&(t=t.substring(0,i)),t},y=function(t,e,i){if(n.font="".concat(i,"px sans-serif"),n.measureText(t).width<=e)return[t];for(var o=[],r="",a=0;a<t.length;a++){var s=r+t[a];n.measureText(s).width>e?r?(o.push(r),r=t[a]):o.push(t[a]):r=s}return r&&o.push(r),o},b=g(e.borderColor,"#BBBBBB"),x=g(e.textColor,"#000000"),w=g(e.backgroundColor,"#FFFFFF");n.fillStyle=w,n.fillRect(0,0,i,o),r.displayTitle&&(n.font="bold ".concat(r.fontPx,"px sans-serif"),n.fillStyle="#333333",n.textAlign="left",n.textBaseline="top",n.fillText(r.displayTitle,r.leftPx,r.topPx));n.strokeStyle=b,n.lineWidth=3,n.strokeRect(u,h,c,c);for(var _=0;_<d;_++)for(var k=function(){var t=e.data[_][E]||{},i=u+E*p,o=h+_*m,r=g(t.bgcolor,w),a=g(t.color,x);r!==w&&(n.fillStyle=r,n.fillRect(i,o,p,m)),n.strokeStyle=b,n.lineWidth=1,n.strokeRect(i,o,p,m);var s=v(t.text,p,m);if(s){var l,c=.05*p,d=p-2*c,f=m-2*c,k=Math.min(p,m);l=k<60?.28:k<100?.32:k<200?.35:.38;for(var T=Math.min(m*l,40),S=y(s,d,T),C=1.2*T,D=S.length*C;D>f&&T>8;)C=1.2*(T-=3),D=(S=y(s,d,T)).length*C;n.fillStyle=a,n.font="".concat(T,"px sans-serif"),n.textAlign="center",n.textBaseline="middle";var A=o+m/2-D/2+C/2;S.forEach(function(t,e){var o=A+e*C;n.fillText(t,i+p/2,o)})}},E=0;E<f;E++)k()}(t,e),null;case"correlation":var p=t.getContext("2d"),m=ya({title:e.title,displayWidth:e.displayWidth,scale:e.scale,ctx:p,bottomSpacing:"compact"});return ba(t,e,{verticalAlign:"top",offsetY:m.totalHeightPx}),m.displayTitle&&(p.font="bold ".concat(m.fontPx,"px sans-serif"),p.fillStyle="#333333",p.textAlign="left",p.textBaseline="top",p.fillText(m.displayTitle,m.leftPx,m.topPx)),t.dataset.chartRendered="true",null;default:var g=function(t,e){var n=e.displayWidth,i=Math.round(.04*n);i=Math.max(10,Math.min(i,17));var o,r,a,s=Math.round(1.3*i);if(s=Math.max(13,Math.min(s,22)),ga.defaults.font.size=i,"radar"===e.chartType){var l=e.color||"#ff6384";o=xa(l,.2),r=l,a=4}else if("line"===e.chartType){var c=e.color||"#ff6384";o=xa(c,.2),r=c,a=4}else if("bar"===e.chartType||"pie"===e.chartType){for(var u,h=e.colors||["#ff6384","#36a2eb","#ffce56","#4bc0c0","#9966ff"],d=(null===(u=e.data)||void 0===u?void 0:u.length)||0,f=[],p=0;p<d;p++)p<h.length?f.push(h[p]):f.push(h[p%h.length]);o="pie"===e.chartType?f:f.map(function(t){return xa(t,.8)}),r=f,a="pie"===e.chartType?.2:e.borderWidth||2}var m=e.data||[];if("pie"===e.chartType&&e.total&&e.total>0){var g=m.reduce(function(t,e){return t+(parseFloat(e)||0)},0);if(g>0){for(var v=e.total/g,y=[],b=0,x=0;x<m.length-1;x++){var w=parseFloat(m[x])||0,_=Math.round(w*v*10)/10;y.push(_),b+=_}if(m.length>0){var k=Math.round(10*(e.total-b))/10;y.push(k)}m=y}}var E={data:m,backgroundColor:o,borderColor:r,borderWidth:a,pointBackgroundColor:r,pointBorderColor:r,pointBorderWidth:2,pointRadius:5,pointHoverRadius:5};"line"===e.chartType&&(E.fill=!0,E.tension=.4);var T=t.getContext("2d"),S=ya({title:e.title,displayWidth:e.displayWidth,scale:e.scale,ctx:T}),C={type:e.chartType,data:{labels:e.labels||[],datasets:[E]},options:{responsive:!0,animation:!1!==e.animation&&{duration:1500},layout:{padding:{top:S.totalHeightDisplay||0,left:0,right:0,bottom:0}},plugins:{legend:{display:"pie"===e.chartType||(e.showLegend||!1),position:e.legendPosition||("pie"===e.chartType?"right":"top")},title:{display:!1}}},plugins:[{id:"customTitle",afterDraw:function(t){if(S.displayTitle){var e=t.ctx;e.save(),e.font="bold ".concat(S.fontDisplay,"px sans-serif"),e.fillStyle="#333333",e.textAlign="left",e.textBaseline="top",e.fillText(S.displayTitle,S.leftDisplay,S.topDisplay),e.restore()}}}]};C.data.labels&&Array.isArray(C.data.labels)&&(C.data.labels=C.data.labels.map(function(t){return"string"==typeof t&&t.length>10?t.substring(0,10)+"...":t}));if("radar"===e.chartType){var D={beginAtZero:!0,min:0,maxTicksLimit:6,color:"#999999",font:{size:i,family:"sans-serif"}};void 0!==e.max&&null!==e.max&&""!==e.max&&(D.max=Number(e.max)),void 0!==e.stepSize&&null!==e.stepSize&&""!==e.stepSize&&(D.stepSize=parseFloat(e.stepSize)),C.options.scales={r:{beginAtZero:!0,min:0,max:D.max,ticks:D,grid:{color:"rgba(0,0,0,0.1)"},pointLabels:{font:{size:s},color:"#222222"}}}}if("bar"===e.chartType||"line"===e.chartType){var A={maxTicksLimit:6,color:"#999999",font:{size:i}};void 0!==e.stepSize&&null!==e.stepSize&&""!==e.stepSize&&(A.stepSize=parseFloat(e.stepSize));var M={ticks:A};void 0!==e.min&&null!==e.min&&""!==e.min?(M.min=parseInt(e.min,10),M.beginAtZero=0===parseInt(e.min,10)):M.beginAtZero=!0,void 0!==e.max&&null!==e.max&&""!==e.max&&(M.max=parseInt(e.max,10)),C.options.scales={x:{ticks:{color:"#666666",font:{size:i}}},y:M}}try{var P=new ga(t,C);return t.chart=P,P}catch(t){return null}}(t,e);return t.dataset.chartRendered="true",g}}(n,e)):null}"undefined"!=typeof window&&(window.drawChartV2=wa)},7188:()=>{},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,r=s(t),a=r[0],l=r[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,l)),u=0,h=l>0?a-4:a;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===l&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===l&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,i=t.length,o=i%3,r=[],a=16383,s=0,l=i-o;s<l;s+=a)r.push(c(t,s,s+a>l?l:s+a));1===o?(e=t[i-1],r.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[i-2]<<8)+t[i-1],r.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return r.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=r[a],i[r.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function c(t,e,n){for(var i,o=[],r=e;r<n;r+=3)i=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(255&t[r+2]),o.push(l(i));return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},7952:(t,e,n)=>{"use strict";var i={};n.r(i),n.d(i,{clearGuestReactionsOnLogin:()=>Xe,deleteAnonymousReaction:()=>Be,initAnonymousReaction:()=>Ze,isItemLiked:()=>qe,isShindanLiked:()=>Ye,restoreGuestLikedState:()=>Je,saveAnonymousReaction:()=>Fe,showGuestReactionPopover:()=>Ge});var o=n(7059);function r(t){return JSON.stringify(t).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}var a=n(8878);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=v(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return u(c,"_invoke",function(n,i,o){var r,s,l,c=0,u=o||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,s=0,l=t,d.n=n,a}};function f(n,i){for(s=n,l=i,e=0;!h&&c&&!o&&e<u.length;e++){var o,r=u[e],f=d.p,p=r[2];n>3?(o=p===i)&&(l=r[(s=r[4])?5:(s=3,3)],r[4]=r[5]=t):r[0]<=f&&((o=n<2&&f<r[1])?(s=0,d.v=i,d.n=r[1]):f<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,d.n=p,s=0))}if(o||n>1)return a;throw h=!0,i}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,l=p;(e=s<2?t:l)||!h;){r||(s?s<3?(s>1&&(d.n=-1),f(s,l)):d.n=l:d.v=l);try{if(c=2,r){if(s||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=r.return)&&e.call(r),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);r=t}else if((e=(h=d.n<0)?l:n.call(i,d))!==a)break}catch(e){r=t,s=1,l=e}finally{c=1}}return{value:e,done:h}}}(n,o,r),!0),c}var a={};function s(){}function l(){}function h(){}e=Object.getPrototypeOf;var d=[][i]?e(e([][i]())):(u(e={},i,function(){return this}),e),f=h.prototype=s.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,u(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=h,u(f,"constructor",h),u(h,"constructor",l),l.displayName="GeneratorFunction",u(h,o,"GeneratorFunction"),u(f),u(f,o,"Generator"),u(f,i,function(){return this}),u(f,"toString",function(){return"[object Generator]"}),(c=function(){return{w:r,m:p}})()}function u(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}u=function(t,e,n,i){function r(e,n){u(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},u(t,e,n,i)}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach(function(e){f(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function f(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function m(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}function g(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function b(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,o)}function x(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function a(t){b(r,i,o,a,s,"next",t)}function s(t){b(r,i,o,a,s,"throw",t)}a(void 0)})}}var w="100%",_="500px",k="100%",E="280px",T="220px",S="3000px",C="250px",D="720px";function A(t){return"function"==typeof window.htmlspecialchars?window.htmlspecialchars(t):"string"!=typeof t?"":t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function M(){return new Promise(function(t){return requestAnimationFrame(t)})}function P(t){return O.apply(this,arguments)}function O(){return(O=x(c().m(function t(e){var n,i,o,r,a,s;return c().w(function(t){for(;;)switch(t.n){case 0:n=1e3,i=10,o=Date.now();case 1:if(!(Date.now()-o<n)){t.n=8;break}return t.n=2,M();case 2:if(!((r=e.querySelectorAll(".typing-effect-block, .shuffle-effect-block, .text-block, .vertical-block")).length>0)){t.n=6;break}if((a=r[0]).isConnected){t.n=4;break}return t.n=3,new Promise(function(t){return setTimeout(t,i)});case 3:return t.a(3,1);case 4:if(""===(s=window.getComputedStyle(a)).opacity||""===s.display){t.n=5;break}return t.a(2,!0);case 5:case 6:return t.n=7,new Promise(function(t){return setTimeout(t,i)});case 7:t.n=1;break;case 8:return t.a(2,!1)}},t)}))).apply(this,arguments)}function L(t){if("undefined"!=typeof Intl&&Intl.Segmenter){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t);return Array.from(e,function(t){return t.segment})}for(var n=[],i=0;i<t.length;){var o=t[i],r=t.charCodeAt(i);if(r>=55296&&r<=56319&&i+1<t.length){var a=t.charCodeAt(i+1);a>=56320&&a<=57343&&(o=t[i]+t[i+1],i++)}for(;i+1<t.length;){var s=t[i+1],l=t.charCodeAt(i+1);if(l>=3633&&l<=3642||l>=3655&&l<=3662)o+=s,i++;else if(""===s){if(o+=s,++i+1<t.length){var c=t[i+1],u=t.charCodeAt(i+1);if(u>=55296&&u<=56319&&i+2<t.length){var h=t.charCodeAt(i+2);h>=56320&&h<=57343&&(c=t[i+1]+t[i+2],i++)}o+=c,i++}}else{if(65038!==l&&65039!==l)break;o+=s,i++}}n.push(o),i++}return n}function I(t){return new Promise(function(e){if(t.element&&t.content)if(t.element.isConnected){for(;t.element.firstChild;)t.element.removeChild(t.element.firstChild);t.element.style.display="inline",t.element.style.verticalAlign="top";var n=document.createElement("span");if(n.className="typing-cursor",n.textContent="│",n.style.display="inline",n.style.animation="blink 0.6s infinite",n.style.fontWeight="normal",n.style.marginLeft="1px",n.style.color="#000000",n.style.fontFamily="monospace",n.style.fontSize="1.1em",n.style.verticalAlign="baseline",t.element.appendChild(n),!document.querySelector("#typing-cursor-style")){var i=document.createElement("style");i.id="typing-cursor-style",i.textContent="\n @keyframes blink {\n 0%, 49% { opacity: 1; }\n 50%, 100% { opacity: 0; }\n }\n ",document.head.appendChild(i)}var o=document.createElement("span");o.className="typing-text-container",t.element.insertBefore(o,n);var r=t.content.split("\n"),a=[];if(r.forEach(function(t,e){e>0&&a.push({type:"br"}),L(t).forEach(function(t){a.push({type:"char",value:t})})}),0===a.length)return n.style.display="none",void e();var s=0,l=(Date.now(),function(){if(s<a.length){if(!t.element.isConnected)return void e();var i=a[s];"br"===i.type?o.appendChild(document.createElement("br")):o.appendChild(document.createTextNode(i.value)),1===++s||a.length,setTimeout(l,t.interval||100)}else{Date.now();setTimeout(function(){n&&n.parentNode&&(n.style.display="none"),e()},500)}});setTimeout(l,t.delay||0)}else e();else e()})}var R=new Map;var j="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",F="あいうえおかがきぎくぐけげこごさざしじすずせぜそぞただちぢつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん",N="アイウエオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴ",B="一右雨円王音下火花貝学気九休玉金空月犬見五口校左三山子四糸字耳七車手十出女小上森人水正生青夕石赤千川先早草足村大男竹中虫町天田土二日入年白八百文木本名目立力林六",z="😄😃😀😊👲👳👮👷💂👶👦👧👨😺😸😻😽👹🙈💀👽💩🔥✨🌟💫💥💢💦👂👀👄👝👓🌂💄💛❤💔",W=",.?/\(^)![]{}*&^%$#':";function H(t,e){if("space"===t)return" ";var n="";switch(t){case"latin":n=j;break;case"hiragana":case"katakana":case"kanji":n=F+N+B;break;case"emoji":n=z;break;default:n=W+j}n+=e;var i=Array.from(n);return i[Math.floor(Math.random()*i.length)]}function V(t){return new Promise(function(e){if(t.element&&t.content){for(;t.element.firstChild;)t.element.removeChild(t.element.firstChild);t.element.style.display="inline",t.element.style.verticalAlign="top";var n=Math.min(Math.max(t.duration||10,5),100),i=Math.min(Math.max(t.delay||0,0),5e3),o=t.fps||16,r=t.element.id||"shuffle-".concat(Date.now());t.element.id||(t.element.id=r),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(t){var e=R.get(t);e&&(clearTimeout(e),R.delete(t))}else R.forEach(function(t){clearTimeout(t)}),R.clear()}(r);for(var a=t.content,s=L(a),l=s.map(function(t){return" "===(e=t)?"space":/[a-zA-Z0-9]/.test(e)?"latin":/[\u3040-\u309F]/.test(e)?"hiragana":/[\u30A0-\u30FF]/.test(e)?"katakana":/[\u4E00-\u9FFF]/.test(e)?"kanji":/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED8\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8])/.test(e)?"emoji":"symbols";var e}),c=[],u=0;u<s.length;u++)"\n"!==s[u]&&"space"!==l[u]&&c.push(u);if(0===c.length)return t.element.textContent=a,void e();for(var h=new Array(s.length).fill(!1),d=0;d<s.length;d++)"\n"!==s[d]&&"space"!==l[d]||(h[d]=!0);var f,p=0,m=0,v=function(){var t=document.getElementById(r);if(!t)return R.delete(r),void e();if(m>=c.length)return t.textContent=a,R.delete(r),void e();p>0&&p%n===0&&(h[c[m]]=!0,m++);for(var i=g(s),u=0;u<s.length;u++)h[u]||"\n"===s[u]||(i[u]=H(l[u],s[u]));t.innerHTML="";for(var d="",y=0;y<i.length;y++)"\n"===i[y]?(d&&(t.appendChild(document.createTextNode(d)),d=""),t.appendChild(document.createElement("br"))):d+=i[y];d&&t.appendChild(document.createTextNode(d)),p++,f=setTimeout(v,o),R.set(r,f)};setTimeout(v,i)}else e()})}function U(t,e){return new Promise(function(n,i){if(window.drawChartV2)q(t,e,n,i);else{var o=document.createElement("script");o.src="/js/chart2.js",o.onload=function(){window.drawChartV2?q(t,e,n,i):i(new Error("drawChartV2 not found after loading chart2.js"))},o.onerror=function(){return i(new Error("Failed to load chart2.js"))},document.head.appendChild(o)}})}function q(t,e,n,i){try{var o=window.drawChartV2(t,e);if(o&&o.options){var r,a=(null===(r=o.options.animation)||void 0===r?void 0:r.duration)||1e3;setTimeout(function(){n()},a)}else setTimeout(function(){n()},1e3)}catch(t){i(t)}}function Y(t){return X.apply(this,arguments)}function X(){return(X=x(c().m(function t(e){var n,i,o,r,a,l,u,h,d;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:if(0!==(n=e.querySelectorAll(".shindan-chart-block")).length){t.n=1;break}return t.a(2);case 1:i=s(n),t.p=2,i.s();case 3:if((o=i.n()).done){t.n=12;break}if(r=o.value,t.p=4,r.dataset.chart){t.n=5;break}return t.a(3,11);case 5:return a=JSON.parse(r.dataset.chart),l=r.dataset.chartIndex||"0",u="chart-for-image-".concat(Date.now(),"-").concat(l),(h=document.createElement("canvas")).id=u,h.style.maxWidth=E,h.style.height="auto",h.style.margin="0 auto",h.style.display="block",r.appendChild(h),t.n=6,M();case 6:if(document.getElementById(u)){t.n=7;break}return t.a(3,11);case 7:if(window.drawChartV2){t.n=8;break}return t.n=8,new Promise(function(t){var e=setInterval(function(){window.drawChartV2&&(clearInterval(e),t())},100)});case 8:return t.n=9,U(u,a);case 9:t.n=11;break;case 10:t.p=10,t.v;case 11:t.n=3;break;case 12:t.n=14;break;case 13:t.p=13,d=t.v,i.e(d);case 14:return t.p=14,i.f(),t.f(14);case 15:return t.a(2)}},t,null,[[4,10],[2,13,14,15]])}))).apply(this,arguments)}function G(t){return Z.apply(this,arguments)}function Z(){return Z=x(c().m(function t(e){var n,i,o,r,l,u,h,d,f,p,m,g,v=arguments;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=v.length>1&&void 0!==v[1]?v[1]:{},0!==(i=e.querySelectorAll(".shindan-canvas-block")).length){t.n=1;break}return t.a(2);case 1:o=s(i),t.p=2,o.s();case 3:if((r=o.n()).done){t.n=10;break}if(l=r.value,t.p=4,l.dataset.canvasConfig){t.n=5;break}return t.a(3,9);case 5:return d=JSON.parse(l.dataset.canvasConfig),l.dataset.canvasIndex||"0",f=l.dataset.shindanId||l.getAttribute("data-shindan-id"),(p=document.createElement("canvas")).className="canvas-diagnosis-canvas",p.width=(null===(u=d.canvas)||void 0===u?void 0:u.width)||1200,p.height=(null===(h=d.canvas)||void 0===h?void 0:h.height)||630,p.style.maxWidth=T,p.style.height="auto",p.style.margin="0 auto",p.style.display="block",l.appendChild(p),t.n=6,M();case 6:return m=n,0===Object.keys(m).length&&f&&(m=nt(d,f)),t.n=7,(0,a.drawCanvasDiagnosis)(p,d,{imageMap:m});case 7:t.n=9;break;case 8:t.p=8,t.v;case 9:t.n=3;break;case 10:t.n=12;break;case 11:t.p=11,g=t.v,o.e(g);case 12:return t.p=12,o.f(),t.f(12);case 13:return t.a(2)}},t,null,[[4,8],[2,11,12,13]])})),Z.apply(this,arguments)}var J=function(){return t=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e,this.containerId=e.id,this.options=d({autoStart:!0,sequential:!0,observerThreshold:.1,onComplete:null,onStart:null},n),this.blocks=[],this.currentIndex=0,this.isRunning=!1,this.hasStarted=!1,this.observer=null},e=[{key:"getContainer",value:function(){if(this.containerId){var t=document.getElementById(this.containerId);if(t)return t}return this.container}},{key:"getOrderValue",value:function(t){var e=t.dataset.order;if(null==e||""===e)return 999999;var n=parseInt(e,10);return isNaN(n)?999999:n}},{key:"getBlockElement",value:function(t){var e=this.getContainer();if(!e)return null;var n=e.querySelector('[data-order="'.concat(t.order,'"]'));return n&&n.isConnected?n:null}},{key:"init",value:(y=x(c().m(function t(){return c().w(function(t){for(;;)switch(t.n){case 0:if(this.getContainer(),this.collectBlocks(),0!==this.blocks.length){t.n=1;break}return this.options.onComplete&&"function"==typeof this.options.onComplete&&this.options.onComplete(),t.a(2);case 1:this.start();case 2:return t.a(2)}},t,this)})),function(){return y.apply(this,arguments)})},{key:"setupIntersectionObserver",value:function(){var t=this,e={root:null,rootMargin:"0px",threshold:this.options.observerThreshold};this.observer=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&!t.hasStarted&&t.start()})},e),this.observer.observe(this.container)}},{key:"start",value:function(){this.hasStarted||this.isRunning||(this.hasStarted=!0,this.isRunning=!0,this.sequenceStartTime=Date.now(),this.options.onStart&&this.options.onStart(),this.executeNext(),this.observer&&(this.observer.disconnect(),this.observer=null))}},{key:"collectBlocks",value:function(){var t=this,e=[],n=new Set,i=this.getContainer(),o=i.querySelectorAll(".text-block"),r=i.querySelectorAll(".shindan-chart-block"),a=i.querySelectorAll(".typing-effect-block"),s=i.querySelectorAll(".shuffle-effect-block"),l=i.querySelectorAll(".image-block"),c=i.querySelectorAll(".image-merge-block"),u=i.querySelectorAll(".user-input-block"),h=i.querySelectorAll(".formatted-text-block"),d=i.querySelectorAll(".vertical-block");o.forEach(function(i){n.has(i)||i.parentElement&&i.parentElement.classList.contains("text-block")||(n.add(i),e.push({type:"text",element:i,order:t.getOrderValue(i)}))}),r.forEach(function(n){e.push({type:"chart",element:n,order:t.getOrderValue(n)})}),a.forEach(function(n,i){var o=n.dataset.content||"",r=n.dataset.brPlaceholder;n.isConnected;var a=o;if(r&&o){var s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),l=new RegExp(s,"g");a=o.replace(l,"\n")}e.push({type:"typing",element:n,content:a,interval:parseInt(n.dataset.interval)||100,delay:parseInt(n.dataset.delay)||0,order:t.getOrderValue(n)})}),s.forEach(function(n){var i=n.dataset.content||"",o=n.dataset.brPlaceholder,r=i;if(o&&i){var a=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=new RegExp(a,"g");r=i.replace(s,"\n")}e.push({type:"shuffle",element:n,content:r,duration:parseInt(n.dataset.duration)||30,delay:parseInt(n.dataset.delay)||0,order:t.getOrderValue(n)})}),l.forEach(function(n){e.push({type:"image",element:n,order:t.getOrderValue(n)})}),c.forEach(function(n){e.push({type:"image_merge",element:n,order:t.getOrderValue(n)})}),u.forEach(function(n){e.push({type:"userInput",element:n,order:t.getOrderValue(n)})}),h.forEach(function(n){e.push({type:"formattedText",element:n,order:t.getOrderValue(n)})}),d.forEach(function(n){e.push({type:"vertical",element:n,order:t.getOrderValue(n)})}),i.querySelectorAll(".shindan-canvas-block").forEach(function(n){e.push({type:"canvas",element:n,order:t.getOrderValue(n)})}),i.querySelectorAll(".media-block").forEach(function(n){var i=n.classList.contains("url-block");e.push({type:i?"url":"media",element:n,order:t.getOrderValue(n)})}),e.sort(function(t,e){return t.order-e.order}),this.blocks=e}},{key:"executeNext",value:(v=x(c().m(function t(){var e,n;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!(this.currentIndex>=this.blocks.length)){t.n=1;break}if(this.isRunning=!1,Date.now()-(this.sequenceStartTime||0)<1e3&&this.blocks.length,this.options.onComplete&&"function"==typeof this.options.onComplete)try{this.options.onComplete()}catch(t){}return t.a(2);case 1:e=this.blocks[this.currentIndex],t.p=2,n=e.type,t.n="text"===n?3:"chart"===n?5:"typing"===n?7:"shuffle"===n?9:"image"===n||"image_merge"===n?11:"url"===n?13:"media"===n?15:"userInput"===n?17:"formattedText"===n?19:"vertical"===n?21:"canvas"===n?23:25;break;case 3:return t.n=4,this.executeText(e);case 4:return t.a(3,26);case 5:return t.n=6,this.executeChart(e);case 6:return t.a(3,26);case 7:return t.n=8,this.executeTyping(e);case 8:return t.a(3,26);case 9:return t.n=10,this.executeShuffle(e);case 10:return t.a(3,26);case 11:return t.n=12,this.executeImage(e);case 12:return t.a(3,26);case 13:return t.n=14,this.executeText(e);case 14:return t.a(3,26);case 15:return t.n=16,this.executeMedia(e);case 16:return t.a(3,26);case 17:return t.n=18,this.executeUserInput(e);case 18:return t.a(3,26);case 19:return t.n=20,this.executeFormattedText(e);case 20:return t.a(3,26);case 21:return t.n=22,this.executeVertical(e);case 22:return t.a(3,26);case 23:return t.n=24,this.executeCanvas(e);case 24:return t.a(3,26);case 25:case 26:t.n=28;break;case 27:t.p=27,t.v;case 28:if(this.currentIndex++,!this.options.sequential){t.n=29;break}return t.n=29,this.executeNext();case 29:return t.a(2)}},t,this,[[2,27]])})),function(){return v.apply(this,arguments)})},{key:"executeText",value:(g=x(c().m(function t(e){var n;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,0)});case 2:return t.a(2)}},t,this)})),function(t){return g.apply(this,arguments)})},{key:"executeVertical",value:(m=x(c().m(function t(e){var n;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,0)});case 2:return t.a(2)}},t,this)})),function(t){return m.apply(this,arguments)})},{key:"executeChart",value:(f=x(c().m(function t(e){var n,i,o;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,50)});case 2:if(!(i=n.querySelector("canvas"))||!i.id){t.n=7;break}return o=JSON.parse(n.dataset.chart||"{}"),t.p=3,t.n=4,U(i.id,o);case 4:t.n=6;break;case 5:t.p=5,t.v;case 6:t.n=8;break;case 7:case 8:return t.a(2)}},t,this,[[3,5]])})),function(t){return f.apply(this,arguments)})},{key:"executeCanvas",value:(h=x(c().m(function t(e){var n,i,o,r,s,l;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:if(n.style.opacity="1",i=n.querySelector("canvas")){t.n=2;break}return t.a(2);case 2:return o=JSON.parse(n.dataset.canvasConfig||"{}"),(r=n.getAttribute("data-shindan-id"))||(s=n.closest("[data-shindan-id]"))&&(r=s.getAttribute("data-shindan-id")),t.p=3,l=this.options.canvasImageMap&&Object.keys(this.options.canvasImageMap).length>0?this.options.canvasImageMap:nt(o,r),t.n=4,(0,a.drawCanvasDiagnosis)(i,o,{imageMap:l});case 4:t.n=6;break;case 5:t.p=5,t.v;case 6:return t.a(2)}},t,this,[[3,5]])})),function(t){return h.apply(this,arguments)})},{key:"executeTyping",value:(u=x(c().m(function t(e){var n,i;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.transition="opacity 0.5s ease-in-out",n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,500)});case 2:return Date.now(),i={element:n,content:e.content,interval:e.interval,delay:e.delay},t.n=3,I(i);case 3:Date.now(),e.content.length,e.interval;case 4:return t.a(2)}},t,this)})),function(t){return u.apply(this,arguments)})},{key:"executeShuffle",value:(l=x(c().m(function t(e){var n,i;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.transition="opacity 0.5s ease-in-out",n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,500)});case 2:return i={element:n,content:e.content,duration:e.duration,delay:e.delay,fps:e.fps},t.n=3,V(i);case 3:return t.a(2)}},t,this)})),function(t){return l.apply(this,arguments)})},{key:"executeImage",value:(s=x(c().m(function t(e){var n;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.transition="opacity 0.5s ease-in-out",n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,500)});case 2:return t.a(2)}},t,this)})),function(t){return s.apply(this,arguments)})},{key:"executeMedia",value:(r=x(c().m(function t(e){var n;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.transition="opacity 0.5s ease-in-out",n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,500)});case 2:return t.a(2)}},t,this)})),function(t){return r.apply(this,arguments)})},{key:"executeUserInput",value:(o=x(c().m(function t(e){var n;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,0)});case 2:return t.a(2)}},t,this)})),function(t){return o.apply(this,arguments)})},{key:"executeFormattedText",value:(i=x(c().m(function t(e){var n;return c().w(function(t){for(;;)switch(t.n){case 0:if(n=this.getBlockElement(e)){t.n=1;break}return t.a(2);case 1:return n.style.opacity="1",t.n=2,new Promise(function(t){return setTimeout(t,0)});case 2:return t.a(2)}},t,this)})),function(t){return i.apply(this,arguments)})}],e&&p(t.prototype,e),n&&p(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n,i,o,r,s,l,u,h,f,m,g,v,y}();function Q(t,e){var n='<div class="alert alert-danger">';n+='<ul class="mb-0">',e.forEach(function(t){n+="<li>".concat(A(t),"</li>")}),n+="</ul>",n+="</div>",t.innerHTML=n}function K(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.showLogs,i=void 0!==n&&n,o=e.isPreview,a=void 0!==o&&o,s=e.translations,c=void 0===s?{}:s,u=e.useSequencer,h=void 0!==u&&u,d=e.forImage,f=void 0!==d&&d,p=e.disableEffects,m=void 0!==p&&p,g=e.isTimeline,v=void 0!==g&&g,y=e.isSplitMode,b=void 0!==y&&y,x="";a&&(x='<div id="title_and_result" class="font-140">',x+='<div id="shindanResultBlock">',x+='<span id="shindanResultTitle" class="h5 d-block text-center font-weight-bold pb-3 mb-0">',x+=A(c.result_title||"診断結果"),x+="</span>",x+='<span id="shindanResultContainer" class="d-block py-4 px-3 px-sm-4 text-break">',x+='<span id="shindanResultContent">',x+='<span id="shindanResult" class="text-left d-block">');var M=[],P=t.blocks||t.result_blocks;if(P&&Array.isArray(P)){var O=P[P.length-1];O&&"text"===O.type&&O.content&&(O.content=O.content.trimEnd());var L=!1;P.forEach(function(t,e){if(t&&t.type)if("line_break"===t.type&&L)L=!1;else{var n=h&&!f?"0":"1";switch(t.type){case"line_break":x+="<br>",L=!1;break;case"text":var i=A(t.content||"");x+='<span class="text-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">').concat(i.replace(/\n/g,"<br>"),"</span>"),L=!1;break;case"user_input":var o=t.value||"",a="";a=t.styles&&t.styles.bold?'<span class="font-weight-bold">'.concat(A(o),"</span>"):A(o),x+='<span class="user-input-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">').concat(a,"</span>"),L=!1;break;case"formatted_text":var s=A(t.content||"");if(t.format&&"object"===l(t.format)){var c=[];if(t.format.fontFamily&&c.push("font-family: ".concat(t.format.fontFamily)),t.format.fontSize){c.push("font-size: ".concat(t.format.fontSize));var u=t.format.fontSize,d="1.5";if(u.includes("em")){var p=parseFloat(u);p>=2?d="1.2":p>=1.5&&(d="1.3")}else if(u.includes("px")){var g=parseFloat(u);g>=32?d="1.2":g>=24&&(d="1.3")}c.push("line-height: ".concat(d))}t.format.color&&c.push("color: ".concat(t.format.color)),t.format.fontWeight&&c.push("font-weight: ".concat(t.format.fontWeight)),t.format.fontStyle&&c.push("font-style: ".concat(t.format.fontStyle)),t.format.textDecoration&&c.push("text-decoration: ".concat(t.format.textDecoration)),c.length>0&&(s='<span style="'.concat(c.join("; "),'">').concat(s,"</span>"))}x+='<span class="formatted-text-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'; display: inline; vertical-align: top;">').concat(s,"</span>"),L=!1;break;case"vertical":var y=t.vertical||t.content||"";x+='<span class="vertical-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'; white-space: pre-wrap;">').concat(A(y),"</span>"),L=!1;break;case"chart":var M=t.config||{};if(x+='<div class="shindan-chart-block canvas_block my-3 mx-auto" style="max-width: '.concat(f?T:_,"; opacity: ").concat(n,'" data-chart-version="v2" data-chart="').concat(r(M),'" data-order="').concat(e,'" data-chart-index="').concat(e,'">'),!f){var P=function(t,e){var n="".concat(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"chart","_v2_").concat(e);return{html:'<canvas id="'.concat(n,'" width="1" height="200" style="max-width: 100%; height: auto;"></canvas>'),chartInfo:{canvasId:n,config:t.config||t.data}}}(t,e);x+=P.html}x+="</div>",L=!0;break;case"canvas":var O=t.config||{canvas:{},objects:[]},I=O.canvas.width||1200,R=O.canvas.height||630,$=f?T:k,j=f?"none":D,F=t.shindan_id||"";if(x+='<div class="shindan-canvas-block canvas_block my-3 mx-auto" style="max-width: '.concat($,"; opacity: ").concat(n,'; display: flex; justify-content: center;" data-canvas-config="').concat(r(O),'" data-shindan-id="').concat(F,'" data-order="').concat(e,'" data-canvas-index="').concat(e,'">'),!f){var N="none"!==j?"max-width: 100%; max-height: ".concat(j,"; height: auto;"):"max-width: 100%; height: auto;";x+='<canvas class="canvas-diagnosis-canvas" width="'.concat(I,'" height="').concat(R,'" style="').concat(N,'"></canvas>')}x+="</div>",L=!0;break;case"typing_effect":var B=t.content||"",z=t.interval||100,W=t.delay||0;if(f||m)x+='<span class="text-block" data-order="'.concat(e,'" style="opacity: 1">').concat(A(B).replace(/\n/g,"<br>"),"</span>");else{var H="typing_effect_".concat(e),V="__BR_".concat(e,"__"),U=B.replace(/\n/g,V);x+='<span id="'.concat(H,'" class="typing-effect-block" data-order="').concat(e,'" style="opacity: ').concat(n,'" '),x+='data-content="'.concat(A(U),'" '),x+='data-br-placeholder="'.concat(A(V),'" '),x+='data-interval="'.concat(z,'" '),x+='data-delay="'.concat(W,'"></span>')}L=!1;break;case"shuffle_effect":var q=t.content||"",Y=t.duration||30,X=t.delay||0;if(f||m)x+='<span class="text-block" data-order="'.concat(e,'" style="opacity: 1">').concat(A(q).replace(/\n/g,"<br>"),"</span>");else{var G="shuffle_effect_".concat(e),Z="__BR_".concat(e,"__"),J=q.replace(/\n/g,Z);x+='<span id="'.concat(G,'" class="shuffle-effect-block" data-order="').concat(e,'" style="opacity: ').concat(n,'" '),x+='data-content="'.concat(A(J),'" '),x+='data-br-placeholder="'.concat(A(Z),'" '),x+='data-duration="'.concat(Y,'" '),x+='data-delay="'.concat(X,'"></span>')}L=!1;break;case"image":var Q=t.image_url||"",K=f||v?E:w,tt=f&&b?"width: auto; height: auto; max-width: ".concat(K,"; max-height: ").concat(C,"; object-fit: contain; display: block; margin: 10px auto;"):f?"width: auto; height: auto; max-width: ".concat(K,"; display: block; margin: 10px auto;"):"width: auto; height: auto; max-width: ".concat(K,"; max-height: ").concat(S,"; object-fit: contain; display: block; margin: 10px auto;");x+='<span class="image-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+='<img src="'.concat(A(Q),'" alt="').concat(A(""),'" style="').concat(tt,'">'),x+="</span>",L=!0;break;case"youtube":var et=t.video_id||"";if(f||v){var nt="https://img.youtube.com/vi/".concat(et,"/mqdefault.jpg");x+='<span class="media-block youtube-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+='<img src="'.concat(nt,'" alt="YouTube動画" style="max-width: 280px; cursor: pointer; display: block; margin: 10px auto;">'),x+="</span>"}else x+='<span class="media-block youtube-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+='<iframe width="560" height="315" src="https://www.youtube.com/embed/'.concat(et,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="display: block; margin: 10px auto;"></iframe>'),x+="</span>";L=!0;break;case"niconico":var it=t.video_id||"",ot=t.url||"";if(f||v)x+='<span class="media-block niconico-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+=A(ot),x+="</span>",L=!1;else{var rt="niconico_".concat(e,"_").concat(Date.now());x+='<span class="media-block niconico-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+='<div id="'.concat(rt,'" data-niconico-id="').concat(A(it),'" class="niconico-embed-container" style="display: flex; justify-content: center; margin: 10px 0;"></div>'),x+='<noscript><a href="https://www.nicovideo.jp/watch/'.concat(it,'">').concat(A(ot),"</a></noscript>"),x+="</span>",L=!0}break;case"external_image":var at=t.thumbnail_url||t.large_url||"",st=t.service||"image",lt=t.jump_url||t.url||"";f?(x+='<span class="media-block external-image-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+='<img src="'.concat(A(at),'" alt="').concat(A(st),'" style="max-width: 280px; display: block; margin: 10px auto;">'),x+="</span>"):(x+='<span class="media-block external-image-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+='<a href="'.concat(A(lt),'" target="_blank" style="display: block; text-align: center; margin: 10px 0;">'),x+='<img src="'.concat(A(at),'" alt="').concat(A(st),'" style="max-width: 100%; cursor: pointer;">'),x+="</a>",x+="</span>"),L=!0;break;case"url":var ct=t.url||"",ut=t.is_internal?ct:t.jump_url||ct;f||v?(x+='<span class="media-block url-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+=A(ct),x+="</span>"):(x+='<span class="media-block url-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),x+='<a href="'.concat(A(ut),'" target="_blank" style="color: #0066cc;">').concat(A(ct),"</a>"),x+="</span>"),L=!1;break;case"image_merge":t.image_ids||t.images,t.layout;var ht=f||v?E:w,dt=f&&b?"width: auto; max-width: ".concat(ht,"; max-height: ").concat(C,"; object-fit: contain; height: auto; display: block; margin: 10px auto;"):f?"width: auto; max-width: ".concat(ht,"; height: auto; display: block; margin: 10px auto;"):"width: auto; max-width: ".concat(ht,"; max-height: ").concat(S,"; object-fit: contain; height: auto; display: block; margin: 10px auto;");x+='<span class="image-merge-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">'),t.image_url&&(x+='<img src="'.concat(A(t.image_url),'" alt="" style="').concat(dt,'" />')),x+="</span>",L=!0;break;case"format_start":var ft=t.format_id||"fmt_".concat(e),pt=[];t.styles&&(t.styles.fontFamily&&pt.push("font-family: ".concat(t.styles.fontFamily)),t.styles.fontSize&&pt.push("font-size: ".concat(t.styles.fontSize)),t.styles.color&&pt.push("color: ".concat(t.styles.color)),t.styles.fontWeight&&pt.push("font-weight: ".concat(t.styles.fontWeight)),t.styles.fontStyle&&pt.push("font-style: ".concat(t.styles.fontStyle)),t.styles.textDecoration&&pt.push("text-decoration: ".concat(t.styles.textDecoration)));var mt=pt.length>0?' style="'.concat(pt.join("; "),'"'):"";x+='<span class="format-block format-start" data-format-id="'.concat(ft,'"').concat(mt,">"),L=!1;break;case"format_end":x+="</span>",L=!1;break;default:x+='<span class="text-block" data-order="'.concat(e,'" style="opacity: ').concat(n,'">').concat(A(JSON.stringify(t)),"</span>"),L=!1}}})}return a&&(x+="</span>",x+="</span>",x+="</span>",x+="</div>",x+="</div>"),i&&M.length>0&&(x+='<div class="mt-3 text-center">',x+="<button class=\"btn btn-sm btn-outline-secondary\" onclick=\"document.getElementById('transformation-logs-container').classList.toggle('d-none')\">",x+='<i class="fas fa-chevron-down"></i> ',x+="<span>変換ログを表示</span>",x+="</button>",x+="</div>",x+='<div id="transformation-logs-container" class="mt-3 p-3 bg-light rounded d-none">',x+='<h6 class="font-weight-bold mb-3">変換プロセス</h6>',x+='<div class="small">',M.forEach(function(t){var e="error"===t.type?"text-danger":"warning"===t.type?"text-warning":"text-primary";x+='<div class="mb-2 border-bottom pb-2">',x+='<div class="d-flex justify-content-between">',x+='<span class="'.concat(e,' font-weight-bold">').concat(A(t.title),"</span>"),x+='<span class="text-muted">'.concat(A(t.timestamp),"</span>"),x+="</div>",x+="<div>".concat(A(t.message),"</div>"),t.details&&(x+='<div class="ml-3 mt-1 text-muted">',x+="<div>".concat(A(JSON.stringify(t.details,null,2)),"</div>"),x+="</div>"),x+="</div>"}),x+="</div>",x+="</div>"),x}function tt(t,e){return et.apply(this,arguments)}function et(){return et=x(c().m(function t(e,n){var i,r,l,u,h,f,p,m,g,v,y,b,x,w,_,k,E,T,S,C,D,A,M,O,L,I,R,$,j,F=arguments;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:if(i=F.length>2&&void 0!==F[2]?F[2]:"default",r=F.length>3&&void 0!==F[3]?F[3]:{},e){t.n=1;break}return t.a(2);case 1:if(h=d(d(d({},u=(l={default:{enableEffects:!0,enableSequencer:!0,chartSize:"normal",imageSize:"normal",showLogs:!1,isPreview:!1,forImage:!1,disableEffects:!1},saved:{enableEffects:!0,enableSequencer:!0,chartSize:"normal",imageSize:"normal",showLogs:!1,isPreview:!1,forImage:!1,disableEffects:!1},timeline:{enableEffects:!1,enableSequencer:!1,chartSize:"small",imageSize:"small",maxImageHeight:1e3,showLogs:!1,isPreview:!1,forImage:!1,disableEffects:!0,compact:!0},image:{enableEffects:!1,enableSequencer:!1,chartSize:"normal",imageSize:"normal",showLogs:!1,isPreview:!1,forImage:!0,disableEffects:!0},preview:{enableEffects:!0,enableSequencer:!0,chartSize:"normal",imageSize:"normal",showLogs:!1,isPreview:!0,forImage:!1,disableEffects:!1}})[i]||l.default),r),{},{useSequencer:void 0!==r.useSequencer?r.useSequencer:u.enableSequencer,autoStartSequence:void 0===r.autoStartSequence||r.autoStartSequence}),!(n.errors&&n.errors.length>0)){t.n=2;break}return Q(e,n.errors),t.a(2);case 2:if(n&&(n.blocks||n.result_blocks)){t.n=3;break}return e.innerHTML='<div class="text-center text-muted">診断結果がありません</div>',t.a(2);case 3:if(f=K(n,{showLogs:h.showLogs,isPreview:h.isPreview,translations:h.translations||{},useSequencer:h.useSequencer,forImage:h.forImage,disableEffects:h.disableEffects,isTimeline:"timeline"===i,isSplitMode:h.isSplitMode||!1}),e.innerHTML=f,!h.forImage){t.n=6;break}return t.n=4,Y(e);case 4:return t.n=5,G(e,h.canvasImageMap||{});case 5:t.n=27;break;case 6:return t.n=7,P(e);case 7:return t.n=8,new Promise(function(t){return setTimeout(t,100)});case 8:if("timeline"!==i){t.n=25;break}if(!((p=e.querySelectorAll(".shindan-chart-block")).length>0)){t.n=13;break}m=0,g=10;case 9:if(!(m<g)){t.n=12;break}if(y=p[0],!(((null===(v=y.parentElement)||void 0===v?void 0:v.clientWidth)||0)>0)){t.n=10;break}return t.a(3,12);case 10:return t.n=11,new Promise(function(t){return setTimeout(t,50)});case 11:m++,t.n=9;break;case 12:b=s(p);try{for(b.s();!(x=b.n()).done;){w=x.value;try{_=JSON.parse(w.dataset.chart),k="chart-timeline-".concat(Math.random().toString(36).substring(2,11),"-").concat(Array.from(p).indexOf(w)),(E=w.querySelector("canvas"))&&E.remove(),(T=document.createElement("canvas")).id=k,w.appendChild(T),(0,o.P)(k,d(d({},_),{},{animation:!1}))}catch(t){}}}catch(t){b.e(t)}finally{b.f()}case 13:if(!((S=e.querySelectorAll(".shindan-canvas-block")).length>0)){t.n=24;break}C=s(S),t.p=14,C.s();case 15:if((D=C.n()).done){t.n=21;break}if(A=D.value,t.p=16,M=A.querySelector("canvas")){t.n=17;break}return t.a(3,20);case 17:return O=JSON.parse(A.dataset.canvasConfig||"{}"),(L=A.getAttribute("data-shindan-id"))||(I=A.closest("[data-shindan-id]"))&&(L=I.getAttribute("data-shindan-id")),R=nt(O,L),t.n=18,(0,a.drawCanvasDiagnosis)(M,O,{imageMap:R});case 18:t.n=20;break;case 19:t.p=19,t.v;case 20:t.n=15;break;case 21:t.n=23;break;case 22:t.p=22,j=t.v,C.e(j);case 23:return t.p=23,C.f(),t.f(23);case 24:e.querySelectorAll("img").forEach(function(t){t.style.maxWidth="100%",t.style.maxHeight=h.maxImageHeight+"px",t.style.objectFit="contain"}),t.n=27;break;case 25:return $=new J(e,{autoStart:void 0===h.autoStartSequence||h.autoStartSequence,sequential:h.useSequencer||!1,onStart:h.onSequenceStart,onComplete:h.onSequenceComplete,canvasImageMap:h.canvasImageMap||{}}),t.n=26,$.init();case 26:e.querySelectorAll(".niconico-embed-container").length>0&&setTimeout(function(){document.querySelectorAll(".niconico-embed-container").forEach(function(t){var e=t.dataset.niconicoId;if(e&&"true"!==t.dataset.initialized){var n=document.createElement("script");n.type="application/javascript",n.src="https://embed.nicovideo.jp/watch/".concat(e,"/script?w=640&h=360"),n.onload=function(){t.dataset.initialized="true"},n.onerror=function(){t.innerHTML='<a href="https://www.nicovideo.jp/watch/'.concat(e,'" target="_blank" style="color: #0066cc;">ニコニコ動画を見る: ').concat(e,"</a>")},t.appendChild(n)}})},200);case 27:case 28:return t.a(2)}},t,null,[[16,19],[14,22,23,24]])})),et.apply(this,arguments)}function nt(t,e){var n=window.canvasImageBasePath,i={};return t.objects&&t.objects.forEach(function(t){var o,r;if("image"===t.type&&"static"===(null===(o=t.params)||void 0===o?void 0:o.sourceType)&&null!==(r=t.params)&&void 0!==r&&r.imageData){var a=t.params.imageData;if(a.startsWith("data:"))return;a.startsWith("canvas/")&&n&&e&&(i[a]="".concat(n,"/").concat(e,"/").concat(a))}}),i}function it(){return it=x(c().m(function t(e,n){var i,o=arguments;return c().w(function(t){for(;;)if(0===t.n)return i=o.length>2&&void 0!==o[2]?o[2]:{},t.a(2,tt(e,n,"timeline",i))},t)})),it.apply(this,arguments)}var ot="5.0.1";function rt(t,e){return new Promise(n=>setTimeout(n,t,e))}function at(){return new Promise(t=>{const e=new MessageChannel;e.port1.onmessage=()=>t(),e.port2.postMessage(null)})}function st(t){return!!t&&"function"==typeof t.then}function lt(t,e){try{const n=t();st(n)?n.then(t=>e(!0,t),t=>e(!1,t)):e(!0,n)}catch(t){e(!1,t)}}async function ct(t,e,n=16){const i=Array(t.length);let o=Date.now();for(let r=0;r<t.length;++r){i[r]=e(t[r],r);const a=Date.now();a>=o+n&&(o=a,await at())}return i}function ut(t){return t.then(void 0,()=>{}),t}function ht(t){return parseInt(t)}function dt(t){return parseFloat(t)}function ft(t,e){return"number"==typeof t&&isNaN(t)?e:t}function pt(t){return t.reduce((t,e)=>t+(e?1:0),0)}function mt(t,e=1){if(Math.abs(e)>=1)return Math.round(t/e)*e;{const n=1/e;return Math.round(t*n)/n}}function gt(t,e){const n=t[0]>>>16,i=65535&t[0],o=t[1]>>>16,r=65535&t[1],a=e[0]>>>16,s=65535&e[0],l=e[1]>>>16;let c=0,u=0,h=0,d=0;d+=r+(65535&e[1]),h+=d>>>16,d&=65535,h+=o+l,u+=h>>>16,h&=65535,u+=i+s,c+=u>>>16,u&=65535,c+=n+a,c&=65535,t[0]=c<<16|u,t[1]=h<<16|d}function vt(t,e){const n=t[0]>>>16,i=65535&t[0],o=t[1]>>>16,r=65535&t[1],a=e[0]>>>16,s=65535&e[0],l=e[1]>>>16,c=65535&e[1];let u=0,h=0,d=0,f=0;f+=r*c,d+=f>>>16,f&=65535,d+=o*c,h+=d>>>16,d&=65535,d+=r*l,h+=d>>>16,d&=65535,h+=i*c,u+=h>>>16,h&=65535,h+=o*l,u+=h>>>16,h&=65535,h+=r*s,u+=h>>>16,h&=65535,u+=n*c+i*l+o*s+r*a,u&=65535,t[0]=u<<16|h,t[1]=d<<16|f}function yt(t,e){const n=t[0];32===(e%=64)?(t[0]=t[1],t[1]=n):e<32?(t[0]=n<<e|t[1]>>>32-e,t[1]=t[1]<<e|n>>>32-e):(e-=32,t[0]=t[1]<<e|n>>>32-e,t[1]=n<<e|t[1]>>>32-e)}function bt(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function xt(t,e){t[0]^=e[0],t[1]^=e[1]}const wt=[4283543511,3981806797],_t=[3301882366,444984403];function kt(t){const e=[0,t[0]>>>1];xt(t,e),vt(t,wt),e[1]=t[0]>>>1,xt(t,e),vt(t,_t),e[1]=t[0]>>>1,xt(t,e)}const Et=[2277735313,289559509],Tt=[1291169091,658871167],St=[0,5],Ct=[0,1390208809],Dt=[0,944331445];function At(t,e){const n=function(t){const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(i>127)return(new TextEncoder).encode(t);e[n]=i}return e}(t);e=e||0;const i=[0,n.length],o=i[1]%16,r=i[1]-o,a=[0,e],s=[0,e],l=[0,0],c=[0,0];let u;for(u=0;u<r;u+=16)l[0]=n[u+4]|n[u+5]<<8|n[u+6]<<16|n[u+7]<<24,l[1]=n[u]|n[u+1]<<8|n[u+2]<<16|n[u+3]<<24,c[0]=n[u+12]|n[u+13]<<8|n[u+14]<<16|n[u+15]<<24,c[1]=n[u+8]|n[u+9]<<8|n[u+10]<<16|n[u+11]<<24,vt(l,Et),yt(l,31),vt(l,Tt),xt(a,l),yt(a,27),gt(a,s),vt(a,St),gt(a,Ct),vt(c,Tt),yt(c,33),vt(c,Et),xt(s,c),yt(s,31),gt(s,a),vt(s,St),gt(s,Dt);l[0]=0,l[1]=0,c[0]=0,c[1]=0;const h=[0,0];switch(o){case 15:h[1]=n[u+14],bt(h,48),xt(c,h);case 14:h[1]=n[u+13],bt(h,40),xt(c,h);case 13:h[1]=n[u+12],bt(h,32),xt(c,h);case 12:h[1]=n[u+11],bt(h,24),xt(c,h);case 11:h[1]=n[u+10],bt(h,16),xt(c,h);case 10:h[1]=n[u+9],bt(h,8),xt(c,h);case 9:h[1]=n[u+8],xt(c,h),vt(c,Tt),yt(c,33),vt(c,Et),xt(s,c);case 8:h[1]=n[u+7],bt(h,56),xt(l,h);case 7:h[1]=n[u+6],bt(h,48),xt(l,h);case 6:h[1]=n[u+5],bt(h,40),xt(l,h);case 5:h[1]=n[u+4],bt(h,32),xt(l,h);case 4:h[1]=n[u+3],bt(h,24),xt(l,h);case 3:h[1]=n[u+2],bt(h,16),xt(l,h);case 2:h[1]=n[u+1],bt(h,8),xt(l,h);case 1:h[1]=n[u],xt(l,h),vt(l,Et),yt(l,31),vt(l,Tt),xt(a,l)}return xt(a,i),xt(s,i),gt(a,s),gt(s,a),kt(a),kt(s),gt(a,s),gt(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function Mt(t){return"function"!=typeof t}function Pt(t,e,n,i){const o=Object.keys(t).filter(t=>!function(t,e){for(let n=0,i=t.length;n<i;++n)if(t[n]===e)return!0;return!1}(n,t)),r=ut(ct(o,n=>function(t,e){const n=ut(new Promise(n=>{const i=Date.now();lt(t.bind(null,e),(...t)=>{const e=Date.now()-i;if(!t[0])return n(()=>({error:t[1],duration:e}));const o=t[1];if(Mt(o))return n(()=>({value:o,duration:e}));n(()=>new Promise(t=>{const n=Date.now();lt(o,(...i)=>{const o=e+Date.now()-n;if(!i[0])return t({error:i[1],duration:o});t({value:i[1],duration:o})})}))})}));return function(){return n.then(t=>t())}}(t[n],e),i));return async function(){const t=await r,e=await ct(t,t=>ut(t()),i),n=await Promise.all(e),a={};for(let t=0;t<o.length;++t)a[o[t]]=n[t];return a}}function Ot(){const t=window,e=navigator;return pt(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function Lt(){const t=window,e=navigator;return pt(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===(e.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function It(){const t=window;return pt(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===navigator.vendor.indexOf("Apple"),"RGBColor"in t,"WebKitMediaKeys"in t])>=4}function Rt(){const t=window,{HTMLElement:e,Document:n}=t;return pt(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),n&&"pointerLockElement"in n.prototype])>=4}function $t(){const t=window;return e=t.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(t.browser);var e}function jt(){var t,e;const n=window;return pt(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Ft(){const t=window,e=navigator,{CSS:n,HTMLButtonElement:i}=t;return pt([!("getStorageUpdates"in e),i&&"popover"in i.prototype,"CSSCounterStyleRule"in t,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function Nt(){const t=Lt(),e=jt(),n=window,i=navigator,o="connection";return t?pt([!("SharedWorker"in n),i[o]&&"ontypechange"in i[o],!("sinkId"in new Audio)])>=2:!!e&&pt(["onorientationchange"in n,"orientation"in n,/android/i.test(i.appVersion)])>=2}function Bt(t){const e=new Error(t);return e.name=t,e}async function zt(t,e,n=50){var i,o,r;const a=document;for(;!a.body;)await rt(n);const s=a.createElement("iframe");try{for((await new Promise((t,n)=>{let i=!1;const o=()=>{i=!0,t()};s.onload=o,s.onerror=t=>{i=!0,n(t)};const{style:r}=s;r.setProperty("display","block","important"),r.position="absolute",r.top="0",r.left="0",r.visibility="hidden",e&&"srcdoc"in s?s.srcdoc=e:s.src="about:blank",a.body.appendChild(s);const l=()=>{var t,e;i||("complete"===(null===(e=null===(t=s.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?o():setTimeout(l,10))};l()}));!(null===(o=null===(i=s.contentWindow)||void 0===i?void 0:i.document)||void 0===o?void 0:o.body);)await rt(n);return await t(s,s.contentWindow)}finally{null===(r=s.parentNode)||void 0===r||r.removeChild(s)}}function Wt(t){const[e,n]=function(t){var e,n;const i=`Unexpected syntax '${t}'`,o=/^\s*([a-z-]*)(.*)$/i.exec(t),r=o[1]||void 0,a={},s=/([.:#][\w-]+|\[.+?\])/gi,l=(t,e)=>{a[t]=a[t]||[],a[t].push(e)};for(;;){const t=s.exec(o[2]);if(!t)break;const r=t[0];switch(r[0]){case".":l("class",r.slice(1));break;case"#":l("id",r.slice(1));break;case"[":{const t=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(r);if(!t)throw new Error(i);l(t[1],null!==(n=null!==(e=t[4])&&void 0!==e?e:t[5])&&void 0!==n?n:"");break}default:throw new Error(i)}}return[r,a]}(t),i=document.createElement(null!=e?e:"div");for(const t of Object.keys(n)){const e=n[t].join(" ");"style"===t?Ht(i.style,e):i.setAttribute(t,e)}return i}function Ht(t,e){for(const n of e.split(";")){const e=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(n);if(e){const[,n,i,,o]=e;t.setProperty(n,i,o||"")}}}const Vt=["monospace","sans-serif","serif"],Ut=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function qt(t){return t.toDataURL()}let Yt,Xt;function Gt(){return function(){if(void 0!==Xt)return;const t=()=>{const e=Zt();Jt(e)?Xt=setTimeout(t,2500):(Yt=e,Xt=void 0)};t()}(),async()=>{let t=Zt();if(Jt(t)){if(Yt)return[...Yt];(function(){const t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null})()&&(await function(){const t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}(),t=Zt())}return Jt(t)||(Yt=t),t}}function Zt(){const t=screen;return[ft(dt(t.availTop),null),ft(dt(t.width)-dt(t.availWidth)-ft(dt(t.availLeft),0),null),ft(dt(t.height)-dt(t.availHeight)-ft(dt(t.availTop),0),null),ft(dt(t.availLeft),null)]}function Jt(t){for(let e=0;e<4;++e)if(t[e])return!1;return!0}function Qt(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function Kt(t){return matchMedia(`(inverted-colors: ${t})`).matches}function te(t){return matchMedia(`(forced-colors: ${t})`).matches}function ee(t){return matchMedia(`(prefers-contrast: ${t})`).matches}function ne(t){return matchMedia(`(prefers-reduced-motion: ${t})`).matches}function ie(t){return matchMedia(`(prefers-reduced-transparency: ${t})`).matches}function oe(t){return matchMedia(`(dynamic-range: ${t})`).matches}const re=Math,ae=()=>0;const se="mmMwWLliI0fiflO&1",le={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};const ce=function(){let t=window;for(;;){const e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};const ue=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),he=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),de=["FRAGMENT_SHADER","VERTEX_SHADER"],fe=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],pe="WEBGL_debug_renderer_info";function me(t){if(t.webgl)return t.webgl.context;const e=document.createElement("canvas");let n;e.addEventListener("webglCreateContextError",()=>n=void 0);for(const t of["webgl","experimental-webgl"]){try{n=e.getContext(t)}catch(t){}if(n)break}return t.webgl={context:n},n}function ge(t,e,n){const i=t.getShaderPrecisionFormat(t[e],t[n]);return i?[i.rangeMin,i.rangeMax,i.precision]:[]}function ve(t){return Object.keys(t.__proto__).filter(ye)}function ye(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function be(){return jt()}function xe(){return Lt()||It()}function we(t){return"function"==typeof t.getParameter}const _e={fonts:function(){return zt(async(t,{document:e})=>{const n=e.body;n.style.fontSize="48px";const i=e.createElement("div");i.style.setProperty("visibility","hidden","important");const o={},r={},a=t=>{const n=e.createElement("span"),{style:o}=n;return o.position="absolute",o.top="0",o.left="0",o.fontFamily=t,n.textContent="mmMwWLliI0O&1",i.appendChild(n),n},s=(t,e)=>a(`'${t}',${e}`),l=Vt.map(a),c=(()=>{const t={};for(const e of Ut)t[e]=Vt.map(t=>s(e,t));return t})();n.appendChild(i);for(let t=0;t<Vt.length;t++)o[Vt[t]]=l[t].offsetWidth,r[Vt[t]]=l[t].offsetHeight;return Ut.filter(t=>{return e=c[t],Vt.some((t,n)=>e[n].offsetWidth!==o[t]||e[n].offsetHeight!==r[t]);var e})})},domBlockers:async function({debug:t}={}){if(!It()&&!Nt())return;const e=function(){const t=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',t("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",t("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",t("LnNwb25zb3JpdA=="),".ylamainos",t("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",t("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",t("LmhlYWRlci1ibG9ja2VkLWFk"),t("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",t("I2FkXzMwMFgyNTA="),t("I2Jhbm5lcmZsb2F0MjI="),t("I2NhbXBhaWduLWJhbm5lcg=="),t("I0FkLUNvbnRlbnQ=")],adGuardChinese:[t("LlppX2FkX2FfSA=="),t("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",t("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),t("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",t("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",t("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",t("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),t("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),t("LmFkZ29vZ2xl"),t("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[t("YW1wLWF1dG8tYWRz"),t("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",t("I2FkX2ludmlld19hcmVh")],adGuardRussian:[t("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),t("LnJlY2xhbWE="),'div[id^="smi2adblock"]',t("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[t("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),t("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",t("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),t("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),t("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",t("I3Jla2xhbWk="),t("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),t("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),t("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[t("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",t("LndpZGdldF9wb19hZHNfd2lkZ2V0"),t("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",t("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[t("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),t("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",t("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",t("I3Jla2xhbW5pLWJveA=="),t("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",t("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[t("I2FkdmVydGVudGll"),t("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",t("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",t("LnNwb25zb3JsaW5rZ3J1ZW4="),t("I3dlcmJ1bmdza3k="),t("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),t("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[t("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",t("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[t("LnJla2xhbW9zX3RhcnBhcw=="),t("LnJla2xhbW9zX251b3JvZG9z"),t("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),t("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),t("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[t("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[t("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),t("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",t("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[t("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),t("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),t("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",t("LmFkX19tYWlu"),t("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[t("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[t("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),t("I2xpdmVyZUFkV3JhcHBlcg=="),t("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),t("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[t("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",t("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),t("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),t("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[t("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),t("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),t("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",t("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),t("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),t("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),t("ZGl2I3NrYXBpZWNfYWQ=")],ro:[t("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),t("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[t("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),t("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),t("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",t("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),t("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",t("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}(),n=Object.keys(e),i=[].concat(...n.map(t=>e[t])),o=await async function(t){var e;const n=document,i=n.createElement("div"),o=new Array(t.length),r={};Qt(i);for(let e=0;e<t.length;++e){const r=Wt(t[e]);"DIALOG"===r.tagName&&r.show();const a=n.createElement("div");Qt(a),a.appendChild(r),i.appendChild(a),o[e]=r}for(;!n.body;)await rt(50);n.body.appendChild(i);try{for(let e=0;e<t.length;++e)o[e].offsetParent||(r[t[e]]=!0)}finally{null===(e=i.parentNode)||void 0===e||e.removeChild(i)}return r}(i);t&&function(t,e){let n="DOM blockers debug:\n```";for(const i of Object.keys(t)){n+=`\n${i}:`;for(const o of t[i])n+=`\n ${e[o]?"🚫":"➡️"} ${o}`}}(e,o);const r=n.filter(t=>{const n=e[t];return pt(n.map(t=>o[t]))>.6*n.length});return r.sort(),r},fontPreferences:function(){return function(t,e=4e3){return zt((n,i)=>{const o=i.document,r=o.body,a=r.style;a.width=`${e}px`,a.webkitTextSizeAdjust=a.textSizeAdjust="none",Lt()?r.style.zoom=""+1/i.devicePixelRatio:It()&&(r.style.zoom="reset");const s=o.createElement("div");return s.textContent=[...Array(e/20|0)].map(()=>"word").join(" "),r.appendChild(s),t(o,r)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((t,e)=>{const n={},i={};for(const i of Object.keys(le)){const[o={},r=se]=le[i],a=t.createElement("span");a.textContent=r,a.style.whiteSpace="nowrap";for(const t of Object.keys(o)){const e=o[t];void 0!==e&&(a.style[t]=e)}n[i]=a,e.append(t.createElement("br"),a)}for(const t of Object.keys(le))i[t]=n[t].getBoundingClientRect().width;return i})},audio:function(){return It()&&Ft()&&$t()||Lt()&&function(){const t=navigator,e=window,n=Audio.prototype,{visualViewport:i}=e;return pt(["srLatency"in n,"srChannelCount"in n,"devicePosture"in t,i&&"segments"in i,"getTextInformation"in Image.prototype])>=3}()&&function(){const t=window,{URLPattern:e}=t;return pt(["union"in Set.prototype,"Iterator"in t,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){const t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(It()&&!Rt()&&!function(){const t=window;return pt(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;const n=4500,i=new e(1,5e3,44100),o=i.createOscillator();o.type="triangle",o.frequency.value=1e4;const r=i.createDynamicsCompressor();r.threshold.value=-50,r.knee.value=40,r.ratio.value=12,r.attack.value=0,r.release.value=.25,o.connect(r),r.connect(i.destination),o.start(0);const[a,s]=function(t){const e=3,n=500,i=500,o=5e3;let r=()=>{};const a=new Promise((a,s)=>{let l=!1,c=0,u=0;t.oncomplete=t=>a(t.renderedBuffer);const h=()=>{setTimeout(()=>s(Bt("timeout")),Math.min(i,u+o-Date.now()))},d=()=>{try{const i=t.startRendering();switch(st(i)&&ut(i),t.state){case"running":u=Date.now(),l&&h();break;case"suspended":document.hidden||c++,l&&c>=e?s(Bt("suspended")):setTimeout(d,n)}}catch(t){s(t)}};d(),r=()=>{l||(l=!0,u>0&&h())}});return[a,r]}(i),l=ut(a.then(t=>function(t){let e=0;for(let n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(n)),t=>{if("timeout"===t.name||"suspended"===t.name)return-3;throw t}));return()=>(s(),l)}()},screenFrame:function(){if(It()&&Ft()&&$t())return()=>Promise.resolve(void 0);const t=Gt();return async()=>{const e=await t(),n=t=>null===t?null:mt(t,10);return[n(e[0]),n(e[1]),n(e[2]),n(e[3])]}},canvas:function(){return function(t){let e,n,i=!1;const[o,r]=function(){const t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}();!function(t,e){return!(!e||!t.toDataURL)}(o,r)?e=n="unsupported":(i=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(r),t?e=n="skipped":[e,n]=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';const n=`Cwm fjordbank gly ${String.fromCharCode(55357,56835)}`;e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(t,e);const n=qt(t),i=qt(t);if(n!==i)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(const[t,n,i]of[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]])e.fillStyle=t,e.beginPath(),e.arc(n,i,40,0,2*Math.PI,!0),e.closePath(),e.fill();e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);const o=qt(t);return[o,n]}(o,r));return{winding:i,geometry:e,text:n}}(It()&&Ft()&&$t())},osCpu:function(){return navigator.oscpu},languages:function(){const t=navigator,e=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&e.push([n]),Array.isArray(t.languages))Lt()&&function(){const t=window;return pt([!("MediaSettingsRange"in t),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3}()||e.push(t.languages);else if("string"==typeof t.languages){const n=t.languages;n&&e.push(n.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return ft(dt(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(It()&&Ft()&&$t()))return function(){const t=screen,e=t=>ft(ht(t),null),n=[e(t.width),e(t.height)];return n.sort().reverse(),n}()},hardwareConcurrency:function(){return ft(ht(navigator.hardwareConcurrency),void 0)},timezone:function(){var t;const e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){const t=(new e).resolvedOptions().timeZone;if(t)return t}const n=-function(){const t=(new Date).getFullYear();return Math.max(dt(new Date(t,0,1).getTimezoneOffset()),dt(new Date(t,6,1).getTimezoneOffset()))}();return`UTC${n>=0?"+":""}${n}`},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){if(!Ot()&&!function(){const t=window,e=navigator;return pt(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!Ot()}())try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){const{platform:t}=navigator;return"MacIntel"===t&&It()&&!Rt()?function(){if("iPad"===navigator.platform)return!0;const t=screen,e=t.width/t.height;return pt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){const t=navigator.plugins;if(!t)return;const e=[];for(let n=0;n<t.length;++n){const i=t[n];if(!i)continue;const o=[];for(let t=0;t<i.length;++t){const e=i[t];o.push({type:e.type,suffixes:e.suffixes})}e.push({name:i.name,description:i.description,mimeTypes:o})}return e},touchSupport:function(){const t=navigator;let e,n=0;void 0!==t.maxTouchPoints?n=ht(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(n=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:n,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){const t=[];for(const e of["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"]){const n=window[e];n&&"object"==typeof n&&t.push(e)}return t.sort()},cookiesEnabled:function(){const t=document;try{t.cookie="cookietest=1; SameSite=Strict;";const e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(const t of["rec2020","p3","srgb"])if(matchMedia(`(color-gamut: ${t})`).matches)return t},invertedColors:function(){return!!Kt("inverted")||!Kt("none")&&void 0},forcedColors:function(){return!!te("active")||!te("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(let t=0;t<=100;++t)if(matchMedia(`(max-monochrome: ${t})`).matches)return t;throw new Error("Too high value")}},contrast:function(){return ee("no-preference")?0:ee("high")||ee("more")?1:ee("low")||ee("less")?-1:ee("forced")?10:void 0},reducedMotion:function(){return!!ne("reduce")||!ne("no-preference")&&void 0},reducedTransparency:function(){return!!ie("reduce")||!ie("no-preference")&&void 0},hdr:function(){return!!oe("high")||!oe("standard")&&void 0},math:function(){const t=re.acos||ae,e=re.acosh||ae,n=re.asin||ae,i=re.asinh||ae,o=re.atanh||ae,r=re.atan||ae,a=re.sin||ae,s=re.sinh||ae,l=re.cos||ae,c=re.cosh||ae,u=re.tan||ae,h=re.tanh||ae,d=re.exp||ae,f=re.expm1||ae,p=re.log1p||ae;return{acos:t(.12312423423423424),acosh:e(1e308),acoshPf:(m=1e154,re.log(m+re.sqrt(m*m-1))),asin:n(.12312423423423424),asinh:i(1),asinhPf:(t=>re.log(t+re.sqrt(t*t+1)))(1),atanh:o(.5),atanhPf:(t=>re.log((1+t)/(1-t))/2)(.5),atan:r(.5),sin:a(-1e300),sinh:s(1),sinhPf:(t=>re.exp(t)-1/re.exp(t)/2)(1),cos:l(10.000000000123),cosh:c(1),coshPf:(t=>(re.exp(t)+1/re.exp(t))/2)(1),tan:u(-1e300),tanh:h(1),tanhPf:(t=>(re.exp(2*t)-1)/(re.exp(2*t)+1))(1),exp:d(1),expm1:f(1),expm1Pf:(t=>re.exp(t)-1)(1),log1p:p(10),log1pPf:(t=>re.log(1+t))(10),powPI:(t=>re.pow(re.PI,t))(-100)};var m},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){const t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){const{ApplePaySession:t}=window;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(ce())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t;const e=document.createElement("a"),n=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){if(!(Nt()||It()))return-2;if(!window.AudioContext)return-1;const t=(new AudioContext).baseLatency;return null==t?-1:isFinite(t)?t:-3},dateTimeLocale:function(){if(!window.Intl)return-1;const t=window.Intl.DateTimeFormat;if(!t)return-2;const e=t().resolvedOptions().locale;return e||""===e?e:-3},webGlBasics:function({cache:t}){var e,n,i,o,r,a;const s=me(t);if(!s)return-1;if(!we(s))return-2;const l=be()?null:s.getExtension(pe);return{version:(null===(e=s.getParameter(s.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(n=s.getParameter(s.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:l?null===(i=s.getParameter(l.UNMASKED_VENDOR_WEBGL))||void 0===i?void 0:i.toString():"",renderer:(null===(o=s.getParameter(s.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:l?null===(r=s.getParameter(l.UNMASKED_RENDERER_WEBGL))||void 0===r?void 0:r.toString():"",shadingLanguageVersion:(null===(a=s.getParameter(s.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||""}},webGlExtensions:function({cache:t}){const e=me(t);if(!e)return-1;if(!we(e))return-2;const n=e.getSupportedExtensions(),i=e.getContextAttributes(),o=[],r=[],a=[],s=[],l=[];if(i)for(const t of Object.keys(i))r.push(`${t}=${i[t]}`);const c=ve(e);for(const t of c){const n=e[t];a.push(`${t}=${n}${ue.has(n)?`=${e.getParameter(n)}`:""}`)}if(n)for(const t of n){if(t===pe&&be()||"WEBGL_polygon_mode"===t&&xe())continue;const n=e.getExtension(t);if(n)for(const t of ve(n)){const i=n[t];s.push(`${t}=${i}${he.has(i)?`=${e.getParameter(i)}`:""}`)}else o.push(t)}for(const t of de)for(const n of fe){const i=ge(e,t,n);l.push(`${t}.${n}=${i.join(",")}`)}return s.sort(),a.sort(),{contextAttributes:r,parameters:a,shaderPrecisions:l,extensions:n,extensionParameters:s,unsupportedExtensions:o}}};function ke(t){const e=function(t){if(Nt())return.4;if(It())return!Rt()||Ft()&&$t()?.3:.5;const e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),n=function(t){return mt(.99+.01*t,1e-4)}(e);return{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,`${n}`)}}function Ee(t){return At(function(t){let e="";for(const n of Object.keys(t).sort()){const i=t[n],o="error"in i?"error":JSON.stringify(i.value);e+=`${e?"|":""}${n.replace(/([:|\\])/g,"\\$1")}:${o}`}return e}(t))}function Te(t=50){return function(t,e=1/0){const{requestIdleCallback:n}=window;return n?new Promise(t=>n.call(window,()=>t(),{timeout:e})):rt(Math.min(t,e))}(t,2*t)}function Se(t,e){Date.now();return{async get(n){Date.now();const i=function(t){let e;const n=ke(t);return{get visitorId(){return void 0===e&&(e=Ee(this.components)),e},set visitorId(t){e=t},confidence:n,components:t,version:ot}}(await t());return e||null==n||n.debug,i}}}var Ce={load:async function(t={}){var e;(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{const t=new XMLHttpRequest;t.open("get",`https://m1.openfpcdn.io/fingerprintjs/v${ot}/npm-monitoring`,!0),t.send()}catch(t){}}();const{delayFallback:n,debug:i}=t;await Te(n);return Se(function(t){return Pt(_e,t,[])}({cache:{},debug:i}),i)},hashComponents:Ee,componentsToDebugString:function(t){return JSON.stringify(t,(t,e)=>{return e instanceof Error?{name:(n=e).name,message:n.message,stack:null===(i=n.stack)||void 0===i?void 0:i.split("\n"),...n}:e;var n,i},2)}};function De(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return Ae(c,"_invoke",function(n,i,o){var r,s,l,c=0,u=o||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,s=0,l=t,d.n=n,a}};function f(n,i){for(s=n,l=i,e=0;!h&&c&&!o&&e<u.length;e++){var o,r=u[e],f=d.p,p=r[2];n>3?(o=p===i)&&(l=r[(s=r[4])?5:(s=3,3)],r[4]=r[5]=t):r[0]<=f&&((o=n<2&&f<r[1])?(s=0,d.v=i,d.n=r[1]):f<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,d.n=p,s=0))}if(o||n>1)return a;throw h=!0,i}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,l=p;(e=s<2?t:l)||!h;){r||(s?s<3?(s>1&&(d.n=-1),f(s,l)):d.n=l:d.v=l);try{if(c=2,r){if(s||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=r.return)&&e.call(r),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);r=t}else if((e=(h=d.n<0)?l:n.call(i,d))!==a)break}catch(e){r=t,s=1,l=e}finally{c=1}}return{value:e,done:h}}}(n,o,r),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(Ae(e={},i,function(){return this}),e),h=c.prototype=s.prototype=Object.create(u);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Ae(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=c,Ae(h,"constructor",c),Ae(c,"constructor",l),l.displayName="GeneratorFunction",Ae(c,o,"GeneratorFunction"),Ae(h),Ae(h,o,"Generator"),Ae(h,i,function(){return this}),Ae(h,"toString",function(){return"[object Generator]"}),(De=function(){return{w:r,m:d}})()}function Ae(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Ae=function(t,e,n,i){function r(e,n){Ae(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},Ae(t,e,n,i)}function Me(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,o)}var Pe=null;function Oe(){return Le.apply(this,arguments)}function Le(){var t;return t=De().m(function t(){var e,n;return De().w(function(t){for(;;)switch(t.n){case 0:return Pe||(Pe=Ce.load()),t.n=1,Pe;case 1:return e=t.v,t.n=2,e.get();case 2:return n=t.v,t.a(2,n.visitorId)}},t)}),Le=function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function a(t){Me(r,i,o,a,s,"next",t)}function s(t){Me(r,i,o,a,s,"throw",t)}a(void 0)})},Le.apply(this,arguments)}function Ie(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function r(n,i,o,r){var l=i&&i.prototype instanceof s?i:s,c=Object.create(l.prototype);return Re(c,"_invoke",function(n,i,o){var r,s,l,c=0,u=o||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,s=0,l=t,d.n=n,a}};function f(n,i){for(s=n,l=i,e=0;!h&&c&&!o&&e<u.length;e++){var o,r=u[e],f=d.p,p=r[2];n>3?(o=p===i)&&(l=r[(s=r[4])?5:(s=3,3)],r[4]=r[5]=t):r[0]<=f&&((o=n<2&&f<r[1])?(s=0,d.v=i,d.n=r[1]):f<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,d.n=p,s=0))}if(o||n>1)return a;throw h=!0,i}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),s=u,l=p;(e=s<2?t:l)||!h;){r||(s?s<3?(s>1&&(d.n=-1),f(s,l)):d.n=l:d.v=l);try{if(c=2,r){if(s||(o="next"),e=r[o]){if(!(e=e.call(r,l)))throw TypeError("iterator result is not an object");if(!e.done)return e;l=e.value,s<2&&(s=0)}else 1===s&&(e=r.return)&&e.call(r),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);r=t}else if((e=(h=d.n<0)?l:n.call(i,d))!==a)break}catch(e){r=t,s=1,l=e}finally{c=1}}return{value:e,done:h}}}(n,o,r),!0),c}var a={};function s(){}function l(){}function c(){}e=Object.getPrototypeOf;var u=[][i]?e(e([][i]())):(Re(e={},i,function(){return this}),e),h=c.prototype=s.prototype=Object.create(u);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,Re(t,o,"GeneratorFunction")),t.prototype=Object.create(h),t}return l.prototype=c,Re(h,"constructor",c),Re(c,"constructor",l),l.displayName="GeneratorFunction",Re(c,o,"GeneratorFunction"),Re(h),Re(h,o,"Generator"),Re(h,i,function(){return this}),Re(h,"toString",function(){return"[object Generator]"}),(Ie=function(){return{w:r,m:d}})()}function Re(t,e,n,i){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}Re=function(t,e,n,i){function r(e,n){Re(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},Re(t,e,n,i)}function $e(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,o)}function je(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function a(t){$e(r,i,o,a,s,"next",t)}function s(t){$e(r,i,o,a,s,"throw",t)}a(void 0)})}}function Fe(t,e){return Ne.apply(this,arguments)}function Ne(){return(Ne=je(Ie().m(function t(e,n){var i,o;return Ie().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,Oe();case 1:return i=t.v,t.n=2,axios.post("/api/anonymous-reactions",{reactionable_type:e,reactionable_id:n,fingerprint:i});case 2:return(o=t.v).data.success&&He(e,n),t.a(2,o.data)}},t)}))).apply(this,arguments)}function Be(t,e){return ze.apply(this,arguments)}function ze(){return(ze=je(Ie().m(function t(e,n){var i,o,r;return Ie().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.n=1,Oe();case 1:return i=t.v,t.p=2,t.n=3,axios.delete("/api/anonymous-reactions/".concat(e,"/").concat(n),{data:{fingerprint:i}});case 3:return(o=t.v).data.success&&Ve(e,n),t.a(2,o.data);case 4:if(t.p=4,!(r=t.v).response||400!==r.response.status){t.n=5;break}return t.a(2,r.response.data);case 5:throw r;case 6:return t.a(2)}},t,null,[[2,4]])}))).apply(this,arguments)}function We(t){return"shindan"===t?"liked_shindans":"liked_announcements"}function He(t,e){var n=We(t),i=Ue(t);i.includes(e)||(i.push(e),localStorage.setItem(n,JSON.stringify(i)))}function Ve(t,e){var n=We(t),i=Ue(t);i=i.filter(function(t){return t!==e}),localStorage.setItem(n,JSON.stringify(i))}function Ue(t){var e=We(t);try{var n=localStorage.getItem(e);return n?JSON.parse(n):[]}catch(t){return[]}}function qe(t,e){return Ue(t).includes(e)}function Ye(t){return qe("shindan",t)}function Xe(){"undefined"!=typeof auth_check&&auth_check&&(localStorage.removeItem("liked_shindans"),localStorage.removeItem("liked_announcements"),sessionStorage.removeItem("guest_reaction_popover_shown"))}function Ge(t){var e,n,i;if(!sessionStorage.getItem("guest_reaction_popover_shown")){t.data("bs.tooltip")&&t.tooltip("dispose");var o='\n <div class="text-center">\n <div class="mb-2">\n <i class="fas fa-check-circle text-success"></i> '.concat((null===(e=window.guestReactionMessages)||void 0===e?void 0:e.success)||"ゲストとしていいねしました",'\n </div>\n <div class="small text-muted mb-2">\n ').concat((null===(n=window.guestReactionMessages)||void 0===n?void 0:n.loginPrompt)||"ログインするといいねした診断を管理できます",'\n </div>\n <a href="#" class="btn btn-sm btn-primary guest-reaction-login-link">\n ').concat((null===(i=window.guestReactionMessages)||void 0===i?void 0:i.loginButton)||"ログイン/新規登録","\n </a>\n </div>\n "),r=t.hasClass("result-action-btn")?"bottom":"top";t.popover({content:o,html:!0,placement:r,trigger:"manual",template:'<div class="popover guest-reaction-popover" role="tooltip"><div class="arrow"></div><div class="popover-body"></div></div>',container:"body"}).popover("show"),setTimeout(function(){var e;t.popover("hide"),t.popover("dispose");var n=(null===(e=window.guestReactionMessages)||void 0===e?void 0:e.tooltipUnlike)||"いいねを取り消す";t.attr("title",n).tooltip()},3e3),sessionStorage.setItem("guest_reaction_popover_shown","true")}}function Ze(){Xe(),"undefined"!=typeof auth_check&&auth_check||Je(),$(document).on("click",".guest-reaction-login-link",function(t){t.preventDefault(),$(".popover").remove(),$("#login-modal").modal("show")})}function Je(){var t=Ue("shindan");t.length>0&&document.querySelectorAll('.reaction-btn[data-m="s"]').forEach(function(e){var n=parseInt(e.dataset.id);if(t.includes(n)){var i,o=$(e),r=$(e).find(".reaction-iconwrapper-s-"+n);r.length>0&&r.html('<i class="fa-solid fa-fw fa-heart icon-myreaction reaction-icon-s-'+n+'"></i>');var a=(null===(i=window.guestReactionMessages)||void 0===i?void 0:i.tooltipUnlike)||"いいねを取り消す",s=o.data("bs.tooltip");s&&(s.config.title=a,o.attr("title",a),o.attr("data-original-title",a))}});var e=Ue("announcement");e.length>0&&document.querySelectorAll('.reaction-btn[data-m="announcement"]').forEach(function(t){var n=parseInt(t.dataset.id);if(e.includes(n)){var i,o=$(t),r=$(t).find(".reaction-iconwrapper-announcement-"+n);r.length>0&&r.html('<i class="fa-solid fa-fw fa-heart icon-myreaction reaction-icon-announcement-'+n+'"></i>');var a=(null===(i=window.guestReactionMessages)||void 0===i?void 0:i.tooltipUnlike)||"いいねを取り消す",s=o.data("bs.tooltip");s&&(s.config.title=a,o.attr("title",a),o.attr("data-original-title",a))}})}n(8290),n(213),n(1184),window.renderTimelineResult=function(t,e){return it.apply(this,arguments)},window.anonymousReaction=i,document.addEventListener("DOMContentLoaded",function(){Ze()})},8287:(t,e,n)=>{"use strict";var i=n(7526),o=n(251),r=n(4634);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return c(this,t,e,n)}function c(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=d(t,e);return t}(t,e,n,i):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,n);t=s(t,i);var o=t.write(e,n);o!==i&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?s(t,0):d(t,e);if("Buffer"===e.type&&r(e.data))return d(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(u(e),t=s(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(i)return z(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return D(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function v(t,e,n,i,o){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:y(t,e,n,i,o);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,i,o){var r,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var u=-1;for(r=n;r<s;r++)if(c(t,r)===c(e,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===l)return u*a}else-1!==u&&(r-=r-u),u=-1}else for(n+l>s&&(n=s-l),r=n;r>=0;r--){for(var h=!0,d=0;d<l;d++)if(c(t,r+d)!==c(e,d)){h=!1;break}if(h)return r}return-1}function b(t,e,n,i){n=Number(n)||0;var o=t.length-n;i?(i=Number(i))>o&&(i=o):i=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function x(t,e,n,i){return H(z(e,t.length-n),t,n,i)}function w(t,e,n,i){return H(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function _(t,e,n,i){return w(t,e,n,i)}function k(t,e,n,i){return H(W(e),t,n,i)}function E(t,e,n,i){return H(function(t,e){for(var n,i,o,r=[],a=0;a<t.length&&!((e-=2)<0);++a)i=(n=t.charCodeAt(a))>>8,o=n%256,r.push(o),r.push(i);return r}(e,t.length-n),t,n,i)}function T(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o<n;){var r,a,s,l,c=t[o],u=null,h=c>239?4:c>223?3:c>191?2:1;if(o+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:128==(192&(r=t[o+1]))&&(l=(31&c)<<6|63&r)>127&&(u=l);break;case 3:r=t[o+1],a=t[o+2],128==(192&r)&&128==(192&a)&&(l=(15&c)<<12|(63&r)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:r=t[o+1],a=t[o+2],s=t[o+3],128==(192&r)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&r)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=h}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=C));return n}(i)}e.hp=l,e.IS=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,i){return u(e),e<=0?s(t,e):void 0!==n?"string"==typeof i?s(t,e).fill(n,i):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return h(null,t)},l.allocUnsafeSlow=function(t){return h(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,o=0,r=Math.min(n,i);o<r;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!r(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=l.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):m.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.IS;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,i,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var r=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(r,a),c=this.slice(i,o),u=t.slice(e,n),h=0;h<s;++h)if(c[h]!==u[h]){r=c[h],a=u[h];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return _(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function D(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(127&t[o]);return i}function A(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(t[o]);return i}function M(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=e;r<n;++r)o+=B(t[r]);return o}function P(t,e,n){for(var i=t.slice(e,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function O(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,i,o,r){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<r)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function I(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o<r;++o)t[n+o]=(e&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function R(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o<r;++o)t[n+o]=e>>>8*(i?o:3-o)&255}function $(t,e,n,i,o,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(t,e,n,i,r){return r||$(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function F(t,e,n,i,r){return r||$(t,0,n,8),o.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var o=e-t;n=new l(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return i},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},l.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var i=e,o=1,r=this[t+--i];i>0&&(o*=256);)r+=this[t+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[e]=255&t;++r<n&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||L(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var r=0,a=1,s=0;for(this[e]=255&t;++r<n&&(a*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/a|0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var r=n-1,a=1,s=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/a|0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var o,r=i-n;if(this===t&&n<e&&e<i)for(o=r-1;o>=0;--o)t[o+e]=this[o+n];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+r),e);return r},l.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var r;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r<n;++r)this[r]=t;else{var a=l.isBuffer(t)?t:z(new l(t,i).toString()),s=a.length;for(r=0;r<n-e;++r)this[r+e]=a[r%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function B(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var i=t.length,o=null,r=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function W(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function H(t,e,n,i){for(var o=0;o<i&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}},8288:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="/images/vendor/lightbox2/dist/loading.gif?f657825a2eeed04632b01ed85f528407"},8290:(t,e,n)=>{try{window.Popper=n(8851).default,window.$=window.jQuery=n(4692),n(2754)}catch(t){}window.axios=n(6425),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest"},8851:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>at});var i="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(i&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var r=i&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},o))}};function a(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:c(l(t))}function u(t){return t&&t.referenceNode?t.referenceNode:t}var h=i&&!(!window.MSInputMethodContext||!document.documentMode),d=i&&/MSIE 10/.test(navigator.userAgent);function f(t){return 11===t?h:10===t?d:h||d}function p(t){if(!t)return document.documentElement;for(var e=f(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function m(t){return null!==t.parentNode?m(t.parentNode):t}function g(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(l):l;var c=m(t);return c.host?g(c.host,e):g(t,m(e).host)}function v(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function y(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function b(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],f(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function x(t){var e=t.body,n=t.documentElement,i=f(10)&&getComputedStyle(n);return{height:b("Height",e,n,i),width:b("Width",e,n,i)}}var w=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),_=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function E(t){return k({},t,{right:t.left+t.width,bottom:t.top+t.height})}function T(t){var e={};try{if(f(10)){e=t.getBoundingClientRect();var n=v(t,"top"),i=v(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?x(t.ownerDocument):{},a=r.width||t.clientWidth||o.width,l=r.height||t.clientHeight||o.height,c=t.offsetWidth-a,u=t.offsetHeight-l;if(c||u){var h=s(t);c-=y(h,"x"),u-=y(h,"y"),o.width-=c,o.height-=u}return E(o)}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=f(10),o="HTML"===e.nodeName,r=T(t),a=T(e),l=c(t),u=s(e),h=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=E({top:r.top-a.top-h,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&o){var m=parseFloat(u.marginTop),g=parseFloat(u.marginLeft);p.top-=h-m,p.bottom-=h-m,p.left-=d-g,p.right-=d-g,p.marginTop=m,p.marginLeft=g}return(i&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=v(e,"top"),o=v(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}(p,e)),p}function C(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=l(t);return!!n&&C(n)}function D(t){if(!t||!t.parentElement||f())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function A(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?D(t):g(t,u(e));if("viewport"===i)r=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=S(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left");return E({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:o,height:r})}(a,o);else{var s=void 0;"scrollParent"===i?"BODY"===(s=c(l(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===i?t.ownerDocument.documentElement:i;var h=S(s,a,o);if("HTML"!==s.nodeName||C(a))r=h;else{var d=x(t.ownerDocument),f=d.height,p=d.width;r.top+=h.top-h.marginTop,r.bottom=f+h.top,r.left+=h.left-h.marginLeft,r.right=p+h.left}}var m="number"==typeof(n=n||0);return r.left+=m?n:n.left||0,r.top+=m?n:n.top||0,r.right-=m?n:n.right||0,r.bottom-=m?n:n.bottom||0,r}function M(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=A(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return k({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),u=c.length>0?c[0].key:l[0].key,h=t.split("-")[1];return u+(h?"-"+h:"")}function P(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return S(n,i?D(e):g(e,u(n)),i)}function O(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function I(t,e,n){n=n.split("-")[0];var i=O(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=e[a]+e[l]/2-i[l]/2,o[s]=n===s?e[s]-i[c]:e[L(s)],o}function R(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function $(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=R(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function;var n=t.function||t.fn;t.enabled&&a(n)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=n(e,t))}),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=M(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=I(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=$(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function F(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function N(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],r=o?""+o+n:t;if(void 0!==document.body.style[r])return r}return null}function B(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[N("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function z(t){var e=t.ownerDocument;return e?e.defaultView:window}function W(t,e,n,i){var o="BODY"===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),o||W(c(r.parentNode),e,n,i),i.push(r)}function H(t,e,n,i){n.updateBound=i,z(t).addEventListener("resize",n.updateBound,{passive:!0});var o=c(t);return W(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function U(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,z(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Y(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&q(e[n])&&(i="px"),t.style[n]=e[n]+i})}var X=i&&/Firefox/i.test(navigator.userAgent);function G(t,e,n){var i=R(t,function(t){return t.name===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!o);return o}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],J=Z.slice(3);function Q(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=J.indexOf(t),i=J.slice(n+1).concat(J.slice(0,n));return e?i.reverse():i}var K="flip",tt="clockwise",et="counterclockwise";function nt(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(R(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&a[s].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map(function(t,i){var o=(1===i?!r:r)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],a=o[2];if(!r)return t;if(0===a.indexOf("%")){return E("%p"===a?n:i)[e]/100*r}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,o,e,n)})}),c.forEach(function(t,e){t.forEach(function(n,i){q(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))})}),o}var it={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:_({},l,r[l]),end:_({},l,r[l]+r[c]-a[c])};t.offsets.popper=k({},a,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,a=o.reference,s=i.split("-")[0],l=void 0;return l=q(+n)?[+n,0]:nt(n,r,a,s),"left"===s?(r.top+=l[0],r.left-=l[1]):"right"===s?(r.top+=l[0],r.left+=l[1]):"top"===s?(r.left+=l[0],r.top-=l[1]):"bottom"===s&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var i=N("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[i];o.top="",o.left="",o[i]="";var l=A(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=a,o[i]=s,e.boundaries=l;var c=e.priority,u=t.offsets.popper,h={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),_({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),_({},n,i)}};return c.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=k({},u,h[e](t))}),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<r(i[l])&&(t.offsets.popper[l]=r(i[l])-n[c]),n[l]>r(i[s])&&(t.offsets.popper[l]=r(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!G(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",h=c?"Top":"Left",d=h.toLowerCase(),f=c?"left":"top",p=c?"bottom":"right",m=O(i)[u];l[p]-m<a[d]&&(t.offsets.popper[d]-=a[d]-(l[p]-m)),l[d]+m>a[p]&&(t.offsets.popper[d]+=l[d]+m-a[p]),t.offsets.popper=E(t.offsets.popper);var g=l[d]+l[u]/2-m/2,v=s(t.instance.popper),y=parseFloat(v["margin"+h]),b=parseFloat(v["border"+h+"Width"]),x=g-t.offsets.popper[d]-y-b;return x=Math.max(Math.min(a[u]-m,x),0),t.arrowElement=i,t.offsets.arrow=(_(n={},d,Math.round(x)),_(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(F(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=A(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=L(i),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case K:a=[i,o];break;case tt:a=Q(i);break;case et:a=Q(i,!0);break;default:a=e.behavior}return a.forEach(function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],o=L(i);var c=t.offsets.popper,u=t.offsets.reference,h=Math.floor,d="left"===i&&h(c.right)>h(u.left)||"right"===i&&h(c.left)<h(u.right)||"top"===i&&h(c.bottom)>h(u.top)||"bottom"===i&&h(c.top)<h(u.bottom),f=h(c.left)<h(n.left),p=h(c.right)>h(n.right),m=h(c.top)<h(n.top),g=h(c.bottom)>h(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(y&&"start"===r&&f||y&&"end"===r&&p||!y&&"start"===r&&m||!y&&"end"===r&&g),x=!!e.flipVariationsByContent&&(y&&"start"===r&&p||y&&"end"===r&&f||!y&&"start"===r&&g||!y&&"end"===r&&m),w=b||x;(d||v||w)&&(t.flipped=!0,(d||v)&&(i=a[l+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=k({},t.offsets.popper,I(t.instance.popper,t.offsets.reference,t.placement)),t=$(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=r[n]-(s?o[a?"width":"height"]:0),t.placement=L(e),t.offsets.popper=E(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!G(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=R(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=R(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration,a=void 0!==r?r:e.gpuAcceleration,s=p(t.instance.popper),l=T(s),c={position:o.position},u=function(t,e){var n=t.offsets,i=n.popper,o=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},l=r(o.width),c=r(i.width),u=-1!==["left","right"].indexOf(t.placement),h=-1!==t.placement.indexOf("-"),d=e?u||h||l%2==c%2?r:a:s,f=e?r:s;return{left:d(l%2==1&&c%2==1&&!h&&e?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:d(i.right)}}(t,window.devicePixelRatio<2||!X),h="bottom"===n?"top":"bottom",d="right"===i?"left":"right",f=N("transform"),m=void 0,g=void 0;if(g="bottom"===h?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&f)c[f]="translate3d("+m+"px, "+g+"px, 0)",c[h]=0,c[d]=0,c.willChange="transform";else{var v="bottom"===h?-1:1,y="right"===d?-1:1;c[h]=g*v,c[d]=m*y,c.willChange=h+", "+d}var b={"x-placement":t.placement};return t.attributes=k({},b,t.attributes),t.styles=k({},c,t.styles),t.arrowStyles=k({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return Y(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&Y(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){var r=P(o,e,t,n.positionFixed),a=M(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),Y(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:it},rt=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=r(this.update.bind(this)),this.options=k({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=k({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return k({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&a(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return w(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return U.call(this)}}]),t}();rt.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,rt.placements=Z,rt.Defaults=ot;const at=rt},8878:t=>{function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(){var t,e,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function s(n,o,r,a){var s=o&&o.prototype instanceof c?o:c,u=Object.create(s.prototype);return i(u,"_invoke",function(n,i,o){var r,a,s,c=0,u=o||[],h=!1,d={p:0,n:0,v:t,a:f,f:f.bind(t,4),d:function(e,n){return r=e,a=0,s=t,d.n=n,l}};function f(n,i){for(a=n,s=i,e=0;!h&&c&&!o&&e<u.length;e++){var o,r=u[e],f=d.p,p=r[2];n>3?(o=p===i)&&(s=r[(a=r[4])?5:(a=3,3)],r[4]=r[5]=t):r[0]<=f&&((o=n<2&&f<r[1])?(a=0,d.v=i,d.n=r[1]):f<p&&(o=n<3||r[0]>i||i>p)&&(r[4]=n,r[5]=i,d.n=p,a=0))}if(o||n>1)return l;throw h=!0,i}return function(o,u,p){if(c>1)throw TypeError("Generator is already running");for(h&&1===u&&f(u,p),a=u,s=p;(e=a<2?t:s)||!h;){r||(a?a<3?(a>1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(c=2,r){if(a||(o="next"),e=r[o]){if(!(e=e.call(r,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,a<2&&(a=0)}else 1===a&&(e=r.return)&&e.call(r),a<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),a=1);r=t}else if((e=(h=d.n<0)?s:n.call(i,d))!==l)break}catch(e){r=t,a=1,s=e}finally{c=1}}return{value:e,done:h}}}(n,r,a),!0),u}var l={};function c(){}function u(){}function h(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(i(e={},r,function(){return this}),e),f=h.prototype=c.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,i(t,a,"GeneratorFunction")),t.prototype=Object.create(f),t}return u.prototype=h,i(f,"constructor",h),i(h,"constructor",u),u.displayName="GeneratorFunction",i(h,a,"GeneratorFunction"),i(f),i(f,a,"Generator"),i(f,r,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(n=function(){return{w:s,m:p}})()}function i(t,e,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}i=function(t,e,n,o){function a(e,n){i(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(a("next",0),a("throw",1),a("return",2))},i(t,e,n,o)}function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,r=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw r}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(i,o)}function c(t){return function(){var e=this,n=arguments;return new Promise(function(i,o){var r=t.apply(e,n);function a(t){l(r,i,o,a,s,"next",t)}function s(t){l(r,i,o,a,s,"throw",t)}a(void 0)})}}var u=[{key:"ogp",label:"OGP",width:1200,height:630,aspectRatio:1200/630,icon:"fas fa-fw fa-rectangle-wide"},{key:"4:3",label:"4:3",width:1200,height:900,aspectRatio:1200/900,icon:"fas fa-fw fa-rectangle-wide"},{key:"square",label:"1:1",width:1200,height:1200,aspectRatio:1,icon:"fas fa-fw fa-square"},{key:"3:4",label:"3:4",width:900,height:1200,aspectRatio:.75,icon:"fas fa-fw fa-rectangle-vertical"}];function h(t,e){return d.apply(this,arguments)}function d(){return d=c(n().m(function t(e,i){var a,s,l,c,u,h,d,f,g,v,y,b,x,w,_,k,E=arguments;return n().w(function(t){for(;;)switch(t.p=t.n){case 0:if(s=(a=E.length>2&&void 0!==E[2]?E[2]:{}).ctx||e.getContext("2d")){t.n=1;break}throw new Error("Canvas 2D context is required");case 1:if(l=i.canvas||{},c=i.objects||[],"undefined"==typeof document){t.n=2;break}if(!((u=D(c)).fonts.length>0)){t.n=2;break}return t.n=2,A(u);case 2:h=e.width,d=e.height,f=h/(l.width||1200),g=d/(l.height||630),v=a.scale||Math.min(f,g),s.fillStyle=l.backgroundColor||"#ffffff",s.fillRect(0,0,h,d),y=o(c).sort(function(t,e){return(parseInt(t.zIndex)||0)-(parseInt(e.zIndex)||0)}),b=r(y),t.p=3,b.s();case 4:if((x=b.n()).done){t.n=13;break}if(!1!==(w=x.value).visible&&"false"!==w.visible&&"0"!==w.visible){t.n=5;break}return t.a(3,12);case 5:t.p=5,_=w.type,t.n="shape"===_?6:"image"===_?7:"text"===_?9:10;break;case 6:return p(s,w.params,v,a),t.a(3,10);case 7:return t.n=8,m(s,w.params,v,a);case 8:return t.a(3,10);case 9:return S(s,w.params,v),t.a(3,10);case 10:t.n=12;break;case 11:t.p=11,t.v;case 12:t.n=4;break;case 13:t.n=15;break;case 14:t.p=14,k=t.v,b.e(k);case 15:return t.p=15,b.f(),t.f(15);case 16:return t.a(2)}},t,null,[[5,11],[3,14,15,16]])})),d.apply(this,arguments)}var f={speechBubble:"M 10 5 Q 5 5 5 10 L 5 60 Q 5 65 10 65 L 45 65 L 50 73 L 55 65 L 90 65 Q 95 65 95 60 L 95 10 Q 95 5 90 5 Z",roundBubble:"M 50 5 C 85 5 95 20 95 35 C 95 50 85 65 55 65 L 50 73 L 45 65 C 15 65 5 50 5 35 C 5 20 15 5 50 5 Z",shoutBubble:"M 91.1 37.1 L 97.5 33.4 L 91.1 29.7 L 97.3 25.2 L 90.3 22.2 L 96.1 16.9 L 88.8 15.7 L 93.0 8.2 L 84.6 10.4 L 84.8 3.4 L 76.5 7.5 L 75.4 1.7 L 68.3 7.1 L 65.4 1.9 L 59.2 7.1 L 55.0 2.3 L 50.0 7.1 L 45.0 2.3 L 40.8 7.1 L 34.6 1.9 L 31.7 7.1 L 24.6 1.7 L 23.5 7.5 L 15.2 3.4 L 15.4 10.4 L 7.0 8.2 L 11.2 15.7 L 3.9 16.9 L 9.7 22.2 L 2.7 25.2 L 8.9 29.7 L 2.5 33.4 L 8.9 37.1 L 2.7 42.3 L 9.7 44.5 L 3.9 51.1 L 11.2 51.2 L 7.0 58.6 L 15.4 56.4 L 15.2 63.5 L 23.5 59.3 L 24.6 65.2 L 31.7 59.7 L 34.6 65.0 L 40.8 59.7 L 45.0 64.6 L 50.0 59.7 L 55.0 64.6 L 59.2 59.7 L 65.4 65.0 L 68.3 59.7 L 75.4 65.2 L 76.5 59.3 L 84.8 63.5 L 84.6 56.4 L 93.0 58.6 L 88.8 51.2 L 96.1 51.1 L 90.3 44.5 L 97.3 42.3 Z",thoughtBubble:"M 20 5 L 80 5 Q 88 5 88 12 Q 95 12 95 20 L 95 50 Q 95 58 88 58 Q 88 65 80 65 L 20 65 Q 12 65 12 58 Q 5 58 5 50 L 5 20 Q 5 12 12 12 Q 12 5 20 5 Z M 47 68 C 43 68 43 72 47 72 C 51 72 51 68 47 68 Z M 50 73 C 47 73 47 76 50 76 C 53 76 53 73 50 73 Z",roundedRectBubble:"M 15 10 L 85 10 Q 95 10 95 20 L 95 45 Q 95 55 85 55 L 15 55 L 5 55 L 5 20 Q 5 10 15 10 Z",circle:"M 50 5 C 75 5 95 25 95 50 C 95 75 75 95 50 95 C 25 95 5 75 5 50 C 5 25 25 5 50 5 Z",triangle:"M 50 5 L 95 85 L 5 85 Z",rect:null,hexagon:"M 50 5 L 93 27 L 93 73 L 50 95 L 7 73 L 7 27 Z",star:"M 50 5 L 61 35 L 95 38 L 70 58 L 78 90 L 50 72 L 22 90 L 30 58 L 5 38 L 39 35 Z",heart:"M 50 88 Q 10 55 10 30 Q 10 10 30 10 Q 45 10 50 25 Q 55 10 70 10 Q 90 10 90 30 Q 90 55 50 88 Z"};function p(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=(parseFloat(e.x)||0)*n,r=(parseFloat(e.y)||0)*n,a=(parseFloat(e.width)||100)*n,s=(parseFloat(e.height)||100)*n,l=parseFloat(e.rotation)||0,c=e.shapeType||"rect";if(t.save(),t.translate(o,r),t.rotate(l*Math.PI/180),"rect"!==c&&f[c]){var u=f[c],h=a/100,d=s/100;t.scale(h,d);var p=i.Path2D||("undefined"!=typeof Path2D?Path2D:null);if(p){var m=new p(u);e.fill&&(t.fillStyle=e.fill,t.fill(m));var g=parseFloat(e.strokeWidth)||0;if(e.stroke&&g>0){t.restore(),t.save(),t.translate(o,r),t.rotate(l*Math.PI/180);var v=new p,y=u.match(/[MLQCZ][^MLQCZ]*/gi);y&&y.forEach(function(t){var e=t[0].toUpperCase(),n=t.slice(1).trim().split(/[\s,]+/).map(parseFloat).filter(function(t){return!isNaN(t)});switch(e){case"M":n.length>=2&&v.moveTo(n[0]*h,n[1]*d);break;case"L":n.length>=2&&v.lineTo(n[0]*h,n[1]*d);break;case"Q":n.length>=4&&v.quadraticCurveTo(n[0]*h,n[1]*d,n[2]*h,n[3]*d);break;case"C":n.length>=6&&v.bezierCurveTo(n[0]*h,n[1]*d,n[2]*h,n[3]*d,n[4]*h,n[5]*d);break;case"Z":v.closePath()}}),t.strokeStyle=e.stroke,t.lineWidth=g*n,t.stroke(v)}}else{!function(t,e){t.beginPath();var n=e.match(/[MLQCZ][^MLQCZ]*/gi);n&&n.forEach(function(e){var n=e[0].toUpperCase(),i=e.slice(1).trim().split(/[\s,]+/).map(parseFloat).filter(function(t){return!isNaN(t)});switch(n){case"M":i.length>=2&&t.moveTo(i[0],i[1]);break;case"L":i.length>=2&&t.lineTo(i[0],i[1]);break;case"Q":i.length>=4&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case"C":i.length>=6&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"Z":t.closePath()}})}(t,u),e.fill&&(t.fillStyle=e.fill,t.fill());var b=parseFloat(e.strokeWidth)||0;if(e.stroke&&b>0){t.restore(),t.save(),t.translate(o,r),t.rotate(l*Math.PI/180),t.beginPath();var x=u.match(/[MLQCZ][^MLQCZ]*/gi);x&&x.forEach(function(e){var n=e[0].toUpperCase(),i=e.slice(1).trim().split(/[\s,]+/).map(parseFloat).filter(function(t){return!isNaN(t)});switch(n){case"M":i.length>=2&&t.moveTo(i[0]*h,i[1]*d);break;case"L":i.length>=2&&t.lineTo(i[0]*h,i[1]*d);break;case"Q":i.length>=4&&t.quadraticCurveTo(i[0]*h,i[1]*d,i[2]*h,i[3]*d);break;case"C":i.length>=6&&t.bezierCurveTo(i[0]*h,i[1]*d,i[2]*h,i[3]*d,i[4]*h,i[5]*d);break;case"Z":t.closePath()}}),t.strokeStyle=e.stroke,t.lineWidth=b*n,t.stroke()}}}else{t.beginPath(),t.rect(0,0,a,s),e.fill&&(t.fillStyle=e.fill,t.fill());var w=parseFloat(e.strokeWidth)||0;e.stroke&&w>0&&(t.strokeStyle=e.stroke,t.lineWidth=w*n,t.stroke())}t.restore()}function m(t,e,n){return g.apply(this,arguments)}function g(){return g=c(n().m(function t(e,i,o){var r,a,s,l,c,u,h,d,f,p,m,g,y,b,x,w,_=arguments;return n().w(function(t){for(;;)switch(t.n){case 0:if(r=_.length>3&&void 0!==_[3]?_[3]:{},a=(parseFloat(i.x)||0)*o,s=(parseFloat(i.y)||0)*o,l=(parseFloat(i.width)||100)*o,c=(parseFloat(i.height)||100)*o,u=null,h=r.imageMap||{},"static"!==i.sourceType||!i.imageData){t.n=1;break}u=h[i.imageData]||i.imageData,t.n=4;break;case 1:if("dynamic"!==i.sourceType||!i.imageSource){t.n=4;break}if(!r.getImageUrl){t.n=3;break}return t.n=2,r.getImageUrl(i.imageSource);case 2:u=t.v,t.n=4;break;case 3:return e.fillStyle="#e9ecef",e.fillRect(a,s,l,c),e.fillStyle="#6c757d",e.font="".concat(12*o,"px sans-serif"),e.textAlign="center",e.textBaseline="middle",e.fillText("画像",a+l/2,s+c/2),t.a(2);case 4:if(u){t.n=5;break}return e.fillStyle="#e9ecef",e.fillRect(a,s,l,c),t.a(2);case 5:return t.n=6,v(u,r);case 6:(d=t.v)&&("circle"===(f=i.shape||"rectangle")||"ellipse"===f?(e.save(),e.beginPath(),"circle"===f?(p=Math.min(l,c)/2,m=a+l/2,g=s+c/2,e.arc(m,g,p,0,2*Math.PI)):(y=a+l/2,b=s+c/2,x=l/2,w=c/2,e.ellipse(y,b,x,w,0,0,2*Math.PI)),e.clip(),e.drawImage(d,a,s,l,c),e.restore()):e.drawImage(d,a,s,l,c));case 7:return t.a(2)}},t)})),g.apply(this,arguments)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n){if(e.loadImage){var i=setTimeout(function(){n(null)},1e4);e.loadImage(t).then(function(t){clearTimeout(i),n(t)}).catch(function(t){clearTimeout(i),n(null)})}else{if("undefined"!=typeof Image){var o=new Image;return t.startsWith("data:")||t.startsWith("blob:")||t.includes("localhost")||t.startsWith("/storage/")||(o.crossOrigin="anonymous"),o.onload=function(){return n(o)},o.onerror=function(){return n(null)},void(o.src=t)}n(null)}})}function y(t,e,n,i,o,r,a,s){for(var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1.4,c=o;c>8;){var u="";a&&(u+="bold "),s&&(u+="italic "),u+="".concat(c,'px "').concat(r,'", sans-serif'),t.font=u;var h=c*l;if(C(t,e,n).length*h<=i)return c;c-=1}return 8}function b(t,e,n,i,o,a,s,l){for(var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1.4,u=o;u>8;){var h="";s&&(h+="bold "),l&&(h+="italic "),h+="".concat(u,'px "').concat(a,'", sans-serif'),t.font=h;var d=C(t,e,i),f=u*c;if(d.length*f>n)u-=1;else{var p,m=0,g=r(d);try{for(g.s();!(p=g.n()).done;){var v,y=w(p.value),b=0,x=r(y);try{for(x.s();!(v=x.n()).done;){var _=v.value;b+=t.measureText(_).width}}catch(t){x.e(t)}finally{x.f()}b>m&&(m=b)}}catch(t){g.e(t)}finally{g.f()}if(m<=i)return u;u-=1}}return 8}var x={charSpacing:1,lineSpacing:1.4};function w(t){if("undefined"!=typeof Intl&&Intl.Segmenter){var e=new Intl.Segmenter("ja",{granularity:"grapheme"});return Array.from(e.segment(t),function(t){return t.segment})}return o(t)}var _={rotate90:["「","」","『","』","(",")","(",")","【","】","[","]","[","]","〈","〉","《","》","<",">","<",">","{","}","{","}","ー","-","―","─","〜","~","—","…","‥",":",";"],rotate90Pattern:/^[\x20-\x7E]$/,topRight:["、","。",",","."],smallKana:["ぁ","ぃ","ぅ","ぇ","ぉ","っ","ゃ","ゅ","ょ","ゎ","ァ","ィ","ゥ","ェ","ォ","ッ","ャ","ュ","ョ","ヮ"]};function k(t){return _.rotate90.includes(t)||_.rotate90Pattern&&_.rotate90Pattern.test(t)?90:0}function E(t,e){return _.topRight.includes(t)?{x:.6*e,y:.58*-e}:_.smallKana.includes(t)?{x:.05*e,y:.25*-e}:{x:0,y:0}}function T(t,e,n){var i=(e.x||0)*n,a=(e.y||0)*n,s=(e.width||200)*n,l=(e.height||50)*n,c=e.text||"",u=(e.fontSize||16)*n,h=e.font||"Noto Sans JP",d=e.color||"#000000",f=e.textAlign||"left",p=e.verticalAlign||"top",m=b(t,c,s,l,u,h,e.bold,e.italic,e.lineHeight||1.4),g="";e.bold&&(g+="bold "),e.italic&&(g+="italic "),g+="".concat(m,'px "').concat(h,'", sans-serif'),t.font=g,t.fillStyle=d;var v=e.strokeWidth>0&&e.strokeColor;v&&(t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeWidth*n,t.lineJoin="round",t.miterLimit=2);var y=C(t,c,l),x=m*(e.lineHeight||1.4),_=y.map(function(e){var n,i=0,o=r(w(e));try{for(o.s();!(n=o.n()).done;){var a=n.value;i+=t.measureText(a).width}}catch(t){o.e(t)}finally{o.f()}return i}),T=y.length*x,S=Math.max.apply(Math,o(_)),D=i+s,A=a;"center"===f?A=a+(l-S)/2:"right"===f&&(A=a+l-S),"middle"===p?D=i+s-(s-T)/2:"bottom"===p&&(D=i+T),y.forEach(function(e,n){for(var i=D-(n+.5)*x,o=w(e),r=A,a=0;a<o.length;a++){var s=o[a],l=t.measureText(s).width,c=r+l/2,u=k(s),h=E(s,m),d=i+h.x,f=c+h.y;r+=l,t.save(),t.textBaseline="middle",t.textAlign="center",0!==u?(t.translate(d,f),t.rotate(u*Math.PI/180),v&&t.strokeText(s,0,0),t.fillText(s,0,0)):(v&&t.strokeText(s,d,f),t.fillText(s,d,f)),t.restore()}})}function S(t,e,n){if("vertical"===e.direction)return T(t,e,n);var i=(parseFloat(e.x)||0)*n,o=(parseFloat(e.y)||0)*n,r=(parseFloat(e.width)||200)*n,a=(parseFloat(e.height)||50)*n,s=e.text||"",l=(parseFloat(e.fontSize)||16)*n,c=e.font||"Noto Sans JP",u=e.color||"#000000",h=e.textAlign||"left",d=e.verticalAlign||"top",f=parseFloat(e.lineHeight)||1.4,p=y(t,s,r,a,l,c,e.bold,e.italic,f),m="";e.bold&&(m+="bold "),e.italic&&(m+="italic "),m+="".concat(p,'px "').concat(c,'", sans-serif'),t.font=m,t.fillStyle=u,t.textBaseline="top";var g=i;"center"===h?(t.textAlign="center",g=i+r/2):"right"===h?(t.textAlign="right",g=i+r):t.textAlign="left";var v=o,b=p*f,x=C(t,s,r),w=x.length*b;"middle"===d?v=o+(a-w)/2:"bottom"===d&&(v=o+a-w);var _=parseFloat(e.strokeWidth)||0;if(_>0&&e.strokeColor&&(t.strokeStyle=e.strokeColor,t.lineWidth=_*n,t.lineJoin="round",t.miterLimit=2,x.forEach(function(e,n){t.strokeText(e,g,v+n*b)})),x.forEach(function(e,n){t.fillText(e,g,v+n*b)}),e.underline){t.beginPath();var k=t.measureText(s),E=g;"center"===h?E=g-k.width/2:"right"===h&&(E=g-k.width),t.moveTo(E,v+p+2*n),t.lineTo(E+k.width,v+p+2*n),t.strokeStyle=u,t.lineWidth=1*n,t.stroke()}}function C(t,e,n){var i=[];return e.split("\n").forEach(function(e){if(""!==e){var o="";e.split("").forEach(function(e){var r=o+e;t.measureText(r).width>n&&""!==o?(i.push(o),o=e):o=r}),o&&i.push(o)}else i.push("")}),i.length>0?i:[""]}function D(t){var e={};return t.forEach(function(t){var n;if("text"===t.type&&null!==(n=t.params)&&void 0!==n&&n.font&&"_randomFont_"!==t.params.font){var i=t.params.font,o=t.params.text||"";e[i]||(e[i]=""),e[i]+=o}}),{fonts:Object.keys(e),fontTexts:e}}function A(t){return M.apply(this,arguments)}function M(){return(M=c(n().m(function t(e){var i,o,r,a,s;return n().w(function(t){for(;;)switch(t.n){case 0:if(i=e.fonts,o=e.fontTexts,0!==i.length){t.n=1;break}return t.a(2);case 1:if(r=i.map(function(t){return t.replace(/ /g,"+")}).join("&family="),a="https://fonts.googleapis.com/css2?family=".concat(r,"&display=swap"),!(s=document.getElementById("canvas-diagnosis-fonts"))||s.href!==a){t.n=3;break}return t.n=2,P(o);case 2:case 5:return t.a(2);case 3:return s&&s.remove(),t.n=4,new Promise(function(t){var e=document.createElement("link");e.id="canvas-diagnosis-fonts",e.rel="stylesheet",e.href=a,e.onload=function(){return t()},e.onerror=function(){t()},document.head.appendChild(e)});case 4:return t.n=5,P(o)}},t)}))).apply(this,arguments)}function P(t){return O.apply(this,arguments)}function O(){return(O=c(n().m(function t(i){var o;return n().w(function(t){for(;;)switch(t.n){case 0:return o=Object.entries(i).map(function(t){var n=e(t,2),i=n[0],o=n[1];return Promise.all([16,32,64,128].map(function(t){return document.fonts.load("".concat(t,'px "').concat(i,'"'),o).catch(function(t){})}))}),t.n=1,Promise.all(o);case 1:return t.n=2,document.fonts.ready;case 2:return t.a(2)}},t)}))).apply(this,arguments)}t.exports&&(t.exports={canvasSizeOptions:u,drawCanvasDiagnosis:h,drawShape:p,drawImage:m,drawText:S,drawVerticalText:T,wrapText:C,loadImage:v,shapeTypePaths:f,shapeTypeBounds:{speechBubble:{width:90,height:68},roundBubble:{width:90,height:68},shoutBubble:{width:95,height:63.5},thoughtBubble:{width:90,height:71},roundedRectBubble:{width:90,height:45},circle:{width:90,height:90},triangle:{width:90,height:80},rect:{width:100,height:100},hexagon:{width:86,height:90},star:{width:90,height:85},heart:{width:80,height:78}},verticalTextRules:_,getCharRotation:k,getCharOffset:E,calculateFitFontSize:y,calculateFitFontSizeVertical:b,TEXT_SPACING:x,splitGraphemes:w}),"undefined"!=typeof window&&(window.canvasDiagnosisCommon={canvasSizeOptions:u,drawCanvasDiagnosis:h,drawShape:p,drawImage:m,drawText:S,drawVerticalText:T,wrapText:C,loadImage:v,shapeTypePaths:f,verticalTextRules:_,getCharRotation:k,getCharOffset:E,calculateFitFontSize:y,calculateFitFontSizeVertical:b,TEXT_SPACING:x,splitGraphemes:w})},9056:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="/images/vendor/lightbox2/dist/prev.png?0edc57ccafb3ea81859786274edf7897"},9692:function(t,e){var n,i,o;i=[t,e],n=function(t,e){"use strict";var n,i,o="function"==typeof Map?new Map:(n=[],i=[],{has:function(t){return n.indexOf(t)>-1},get:function(t){return i[n.indexOf(t)]},set:function(t,e){-1===n.indexOf(t)&&(n.push(t),i.push(e))},delete:function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i.splice(e,1))}}),r=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){r=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function a(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!o.has(t)){var e=null,n=null,i=null,a=function(){t.clientWidth!==n&&d()},s=function(e){window.removeEventListener("resize",a,!1),t.removeEventListener("input",d,!1),t.removeEventListener("keyup",d,!1),t.removeEventListener("autosize:destroy",s,!1),t.removeEventListener("autosize:update",d,!1),Object.keys(e).forEach(function(n){t.style[n]=e[n]}),o.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",s,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),t.addEventListener("input",d,!1),t.addEventListener("autosize:update",d,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",o.set(t,{destroy:s,update:d}),l()}function l(){var n=window.getComputedStyle(t,null);"vertical"===n.resize?t.style.resize="none":"both"===n.resize&&(t.style.resize="horizontal"),e="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(e)&&(e=0),d()}function c(e){var n=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=n,t.style.overflowY=e}function u(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}function h(){if(0!==t.scrollHeight){var i=u(t),o=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+e+"px",n=t.clientWidth,i.forEach(function(t){t.node.scrollTop=t.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function d(){h();var e=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(o<e?"hidden"===n.overflowY&&(c("scroll"),h(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),h(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),i!==o){i=o;var a=r("autosize:resized");try{t.dispatchEvent(a)}catch(t){}}}}function s(t){var e=o.get(t);e&&e.destroy()}function l(t){var e=o.get(t);e&&e.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(t){return t}).destroy=function(t){return t},c.update=function(t){return t}):((c=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return a(t,e)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],s),t},c.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],l),t}),e.default=c,t.exports=e.default},void 0===(o="function"==typeof n?n.apply(e,i):n)||(t.exports=o)}},n={};function i(t){var o=n[t];if(void 0!==o)return o.exports;var r=n[t]={id:t,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.exports}i.m=e,t=[],i.O=(e,n,o,r)=>{if(!n){var a=1/0;for(u=0;u<t.length;u++){for(var[n,o,r]=t[u],s=!0,l=0;l<n.length;l++)(!1&r||a>=r)&&Object.keys(i.O).every(t=>i.O[t](n[l]))?n.splice(l--,1):(s=!1,r<a&&(a=r));if(s){t.splice(u--,1);var c=o();void 0!==c&&(e=c)}}return e}r=r||0;for(var u=t.length;u>0&&t[u-1][2]>r;u--)t[u]=t[u-1];t[u]=[n,o,r]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={847:0,984:0,786:0,723:0,856:0,252:0,329:0,413:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var o,r,[a,s,l]=n,c=0;if(a.some(e=>0!==t[e])){for(o in s)i.o(s,o)&&(i.m[o]=s[o]);if(l)var u=l(i)}for(e&&e(n);c<a.length;c++)r=a[c],i.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return i.O(u)},n=self.webpackChunkshindan_v2=self.webpackChunkshindan_v2||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0,i.O(void 0,[786,723,856,252,329,413],()=>i(7952)),i.O(void 0,[786,723,856,252,329,413],()=>i(1688)),i.O(void 0,[786,723,856,252,329,413],()=>i(5775)),i.O(void 0,[786,723,856,252,329,413],()=>i(3647)),i.O(void 0,[786,723,856,252,329,413],()=>i(2035)),i.O(void 0,[786,723,856,252,329,413],()=>i(7188));var o=i.O(void 0,[786,723,856,252,329,413],()=>i(6269));o=i.O(o)})();